# Upgrading

Canonical URL: https://developers.iagenify.com/sdk/upgrading/
Language: en

What changed in the public surface, what replaced it, and how to move an older integration across without guessing.

Status: 0.2.2 · pre-1.0

## What the version means {#versioning}

The package is `0.2.2`. Below 1.0, a minor bump can carry a breaking change to the public surface, and each one is listed in the changelog with the call that replaces it. Anything documented here is covered by tests before release; anything not documented is internal and can move without notice.

## 0.2.2 — credential boundary {#v022}

Profile metadata still updates through `api.auth.updateProfile()`. Password changes no longer do: the SDK rejects them locally with `password_change_private`, and the API independently enforces the same boundary.

```javascript
await api.auth.updateProfile({ ville: "Tunis" }); // supported

await api.auth.updateProfile({ password: nextPassword });
// throws: code === "password_change_private", status === 403
```

> **Move password forms to account settings**
>
> Do not replace this with a raw HTTP request. A program credential must not be able to replace the human account credential. Send the user to the signed-in account settings instead.

## Renamed and removed {#renames}

These are the calls most likely to appear in an older integration.

| Was | Use | What to change |
| --- | --- | --- |
| pc.skills · pc.subagents | api.agents.skills · api.agents.subagents | Skills and sub-agents belong to the account, not to one machine. They now follow you to every device, including those with no disk. |
| pc.commands | a skill | Slash commands are gone. A skill is a document of instructions, loaded when a request matches its description. |
| api.agents.mcp | api.mcp | An MCP server is a connection of the account that agents use, not a document belonging to an agent. |
| the email tool | send_mail | One tool for one action. send_mail adds the chosen mailbox, copies, attachments and the signature. |
| iagenify_token cookie · ?api_key= | the Authorization header | A key in a URL ends up in logs, referrers and browser history. |

## Same call, different behaviour {#behaviour}

Two cases where nothing in your code has to change, but what you get back does.

> **storage.remove() no longer refuses the default**
>
> Older versions answered storage_is_default. The default is now handed over to another storage, and storage.list() tells you which one took it. A branch handling that refusal can go.

> **hosts.usage().quotaBytes answers a different question**
>
> It returns the account's Object Storage quota, because what a host keeps online is charged there. Same name, same type, different meaning: a dashboard comparing it against a hosting limit is now comparing the wrong two numbers.

## Knowing whether a library loaded {#library}

An agent reports where its skills and sub-agents came from, and why a source gave nothing. Worth logging once if you use them.

```javascript
const agent = api.agents.create({ runtime: "local", machine: pc, model });

await agent.run({ message: "..." });

console.log(agent.libraryStatus);
// { skills: "none" }                     no library here — the normal case
// { skills: "storage_not_local" }        this machine cannot hold one
// {}                                     loaded
```

`"none"` means there is no source on this machine. A code means a source refused, and that is the one worth acting on.

## A safe upgrade {#checklist}

- Read the changelog from your current version forward. It is ordered, and each entry names what replaced what.
- Point a staging instance at `baseUrl` first and run your own suite before production.
- Grep your code for the left-hand column of the table above.
- Log `agent.libraryStatus` once if you use skills or sub-agents.
- Check any dashboard reading `hosts.usage()`.

- [Changelog](/sdk/meta/changelog): Every released version, what changed, and what replaced it.

```python
api.auth.update_profile({"ville": "Tunis"})  # supported

api.auth.update_profile({"password": next_password})
# raises IaGenifyError: code == "password_change_private", status == 403
```

```python
agent = api.agents.create(runtime="local", machine=pc, model=model)

agent.run(message="...")

# The Python agent reads the account's skills and sub-agents when it is created;
# an empty list means none are saved yet.
print(agent.skills, agent.subagents)
```
