Features

Library and Sharing

Where a package lives, how it reaches other spaces, and who decides whether a space runs it.

Packages (agents, skills, integrations) belong to the organization, but they are authored in one space, offered to others, and switched on space by space. Three ideas separate those steps.

IdeaQuestion it answersDecided by
HomeWhich space owns the package and governs editing, publishing, renaming and deleting it?<type>:write in the home space
ShareWhich other team spaces may use it?<type>:share in the home space
ActivationDoes this space run it right now?The recipient space, with agents:configure (agents), skills:write or integrations:install

Sharing is the audience of a team space; the organization offer (below) is the audience of the whole organization. A share lands switched on only where the sharer holds the activation permission in the target, and switched off otherwise. A space keeps the decision to run a package its members did not switch on themselves.

A personal space takes only what its owner creates, what the organization offers (in either mode) and what the platform activates by default. Anything else is refused with 409 personal_space_takes_offers_only. Switching a package off is always allowed.

Home

The space where you create a package becomes its home. Every organization package has one, and a package that belongs to no team lives in the default space.

  • Only people who can write in the home space edit its draft, publish or restore versions, or delete it. Being in another space that uses it grants nothing.
  • Outside its home, a package runs its latest published version. The draft runs only for people who can write it.
  • GET /api/packages/{scope}/{name}/home locates a package from its id alone: its type, whether you may edit, delete or share it, and the spaces you can read it from. The CLI uses it.
  • PUT /api/packages/{scope}/{name}/home moves the home. You must hold the type's write permission in both spaces. The destination can never be a personal space.
curl -X PUT https://your-instance/api/packages/@acme/support-triage/home \
  -H "Cookie: ..." -H "X-Org-Id: <org id>" -H "X-Space-Id: spc_..." \
  -H "Content-Type: application/json" \
  -d '{ "home_space_id": "spc_...", "keep_in_previous_home": true }'

By default (keep_in_previous_home: true) the space the package leaves keeps reading and running it through an automatic share, so its schedules do not stop. Set it to false to withdraw that placement. If the organization offers the package, the old home keeps its local settings and schedules under the offer. Otherwise its settings are deleted and its schedules are disabled. The new home activates the package, unless that space had switched it off on purpose.

Sharing

A share targets a team space. There is no sharing with a person: a personal space is reached through the organization offer.

curl -X POST https://your-instance/api/packages/@acme/support-triage/shares \
  -H "Cookie: ..." -H "X-Org-Id: <org id>" -H "X-Space-Id: spc_..." \
  -H "Content-Type: application/json" \
  -d '{ "spaceId": "spc_..." }'
  • spaceId names a team space you can reach. A personal space is 409 personal_space_takes_offers_only.
  • The package must have a published version. An offer of an unpublished package is 409 package_has_no_version.
  • You can only target a space you can reach, and not the package's own home (409 share_target_is_home).
  • Sharing the same pair twice is idempotent.
  • GET /api/packages/{scope}/{name}/shares lists the audience. DELETE /api/packages/{scope}/{name}/shares/{spaceId} withdraws that share. If the organization still offers the package, the space keeps its local activation decision. spaceId is the id of the space that holds the share. The sharer (holding <type>:share in the home space) or the recipient space (holding the type's deactivation permission there) may withdraw it, and every enabled schedule there is disabled with disabled_reason: package_removed if the space loses the package.
  • The share permission belongs to the admin and builder presets, and API keys never carry it.

Offer to the organization

An organization owner or admin can offer a package to the organization from its catalog entry, in one of two modes: PUT /api/packages/{scope}/{name}/org-offer with the required body { "org_offer": "available" | "on_by_default" }.

  • available: the package is placed in every space of the organization, personal ones included, and stays off until a space switches it on. It costs nothing until then.
  • on_by_default: the package is active in every space without a row of its own. A space can switch it off locally.

DELETE on the same path withdraws the offer. The PUT response carries org_offer ("available", "on_by_default" or null) and warnings. Offering an agent does not offer what it needs: warnings holds one integration_not_offered item per declared integration that is neither offered nor active by default, and the dashboard proposes to offer them too. An organization package requires a published version and sharing permission in its home space.

Offering an integration lets each member use their own eligible connection. Giving colleagues access to an account takes a separate action on that connection. A member who already owns an organization-scoped connection can use it in their personal space as soon as the integration is active there.

Withdrawing an offer removes the placements and settings that depended on it and disables their schedules. An explicit share into a team space survives. A schedule disabled by withdrawal can be enabled again once the agent is active there.

Placement and activation

A package is placed in a space when it is homed there, shared with it, offered to its organization, or shipped with the platform (system packages are placed everywhere). A placed package is active when the space has switched it on. Only active packages can be launched there.

# Activate (idempotent: 201 when this call switched it on, 200 if it already was)
curl -X POST https://your-instance/api/spaces/spc_.../packages \
  -H "Cookie: ..." -H "X-Org-Id: <org id>" -H "Content-Type: application/json" \
  -d '{ "packageId": "@acme/support-triage" }'

# Deactivate (204). The space's settings for it are kept.
curl -X DELETE https://your-instance/api/spaces/spc_.../packages/@acme/support-triage \
  -H "Cookie: ..." -H "X-Org-Id: <org id>"
  • Activation is the one door for every package type, integrations included. It needs the type's activation permission in the target space. That requirement is waived in your own personal space, where only a package that space may take can be activated: ownership is the authorization, which is how a guest takes up a package offered to them.
  • If the package is not placed in the space yet, activation can create the offer in the same step, when you also hold <type>:share in the home space. An API key activates only what is already placed.
  • Deactivation never deletes anything. The space keeps its model, proxy, generation settings and stored input values, so activating the package again restores them. Only withdrawing the share removes them.
  • PATCH /api/spaces/{id}/packages/{scope}/{name} configures a placed package (modelId, proxyId and generation_config). It has no enabled field: activation is its own act.
  • A deactivated agent answers 404 agent_not_active_in_space on launch and schedule creation, while its detail and runs stay readable. A schedule of a deactivated agent produces visible failed runs and stays armed, so reactivating resumes it.

Each placement reports via (home, shared, organization, system) and state (active, inactive, none). inactive means the space's own row says off, either switched off or placed by someone who could not switch it on there. none means no row and a deployment default of off.

The library views

EndpointWhoWhat it shows
GET /api/libraryAny member (Preview), graded by the spaces and types they readThe packages of the organization and the system, grouped by type, with the map of the spaces each is placed in and whether it runs.
GET /api/spaces/{id}/libraryReaders of that spaceThe packages placed in this space with their state and the switch, plus the ones you could still place here.

In the web app, both are the Catalog in the sidebar (Preview), with one page per kind of package (agents, skills, integrations) and two views: Discover and By space. API keys receive a 403 on GET /api/library.

The agents, skills, and integrations lists of a space show only what the space can launch, meaning active packages. The library endpoints show what is placed, active or not. Each view only lists the spaces and types you may read.

On this page