What the version means
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
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.
await api.auth.updateProfile({ ville: "Tunis" }); // supported
await api.auth.updateProfile({ password: nextPassword });
// throws: code === "password_change_private", status === 403api.auth.update_profile({"ville": "Tunis"}) # supported
api.auth.update_profile({"password": next_password})
# raises IaGenifyError: code == "password_change_private", status == 403Do 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
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
Two cases where nothing in your code has to change, but what you get back does.
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.
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
An agent reports where its skills and sub-agents came from, and why a source gave nothing. Worth logging once if you use them.
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
// {} loadedagent = 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)"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
- Read the changelog from your current version forward. It is ordered, and each entry names what replaced what.
- Point a staging instance at
baseUrlfirst and run your own suite before production. - Grep your code for the left-hand column of the table above.
- Log
agent.libraryStatusonce if you use skills or sub-agents. - Check any dashboard reading
hosts.usage().