Getting started

Upgrading

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

0.2.2pre-1.0
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

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 === 403
api.auth.update_profile({"ville": "Tunis"})  # supported

api.auth.update_profile({"password": next_password})
# raises IaGenifyError: 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

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

WasUseWhat to change
pc.skills · pc.subagentsapi.agents.skills · api.agents.subagentsSkills and sub-agents belong to the account, not to one machine. They now follow you to every device, including those with no disk.
pc.commandsa skillSlash commands are gone. A skill is a document of instructions, loaded when a request matches its description.
api.agents.mcpapi.mcpAn MCP server is a connection of the account that agents use, not a document belonging to an agent.
the email toolsend_mailOne tool for one action. send_mail adds the chosen mailbox, copies, attachments and the signature.
iagenify_token cookie · ?api_key=the Authorization headerA 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.

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

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
// {}                                     loaded
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)

"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 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().