Modules
The intellia modules command group manages the modules registry — bundles
of existing app site and/or workflow roots,
registered as a single catalogue entry. See Modules for the
concept.
Registering a public module — one that enters the catalogue every
organization installs from — is restricted to Hutly’s internal authoring
organization, and to a Hutly superadmin. A module with an intellia- slug is a
first-party module, which must be public and declare a family (see
Naming and the reserved namespace). A
private module is registered by an Admin or Owner of the organization it
belongs to, and is visible and installable only there. list is available to
any organization browsing the catalogue.
Naming and the reserved namespace
Names starting with intellia belong to Intellia’s own modules. Only a
first-party module may create an agent, knowledge base, workflow, schedule or
webhook slug starting with intellia-, or a table name starting with
intellia_. A first-party
module:
- has a slug starting with
intellia-, such asintellia-erp-base; - is
visibility: public; - declares
familyinmodule.yaml(1–16 lowercase letters or digits, starting with a letter), and names every object under it:intellia-<family>-…for slugs andintellia_<family>_…for tables.
A module can also carry releaseNotes in module.yaml: optional text, up to
4000 characters, stored with the version a deploy creates. A deploy whose
content is unchanged keeps the version and does not store edited notes. When an
organisation has changed a resource the version also changes,
intellia modules updates list and the modules page show the notes of every version
it has not taken.
Any other module, public or private, names its objects after its own slug, <slug>-… for slugs and
<slug_with_underscores>_… for tables, so a module acme-crm has workflows such
as acme-crm-sync and tables such as acme_crm_lead. intellia modules check
reports an object outside that prefix as an error. Registering the module
returns it as a warning instead and still registers the module, because an
existing workflow’s slug cannot change. An object of any other module whose
name starts with intellia is refused.
When you name an agent, knowledge base, schedule, webhook or workflow
“Intellia …” without giving it a slug, the platform derives a slug with its
kind in front, such as agent-intellia-helper or workflow-intellia-sync. A
slug or table name you type yourself in the reserved space is refused.
Each module owns the reserved objects it installs, and neither a deploy nor an activation takes over another module’s object. A first-party deploy adopts a reserved object this module installed or one no module installed. Activation adopts only the reserved objects this module installed, plus a dependency’s table, which it adopts as it stands.
| Error | Meaning |
|---|---|
reserved_namespace |
A slug or table name you supplied is in the reserved space, and its detail field says which name to change; or a module slug starts with intellia- but the module is not public. |
module_object_taken |
A reserved object of that name already belongs to another module, or to this organization (owner names it). |
module_namespace_violation |
A first-party module has objects outside intellia-<family>- / intellia_<family>_, or another module has objects starting with intellia (names lists them). |
module_family_required |
A first-party module has no family in module.yaml. |
module_dependency_missing |
A dependency kept from the module’s last registration is no longer registered. Remove it from dependsOn; write dependsOn: [] to clear the stored edges, since an absent key keeps the last registration’s edges. |
module_bundle_unresolved |
A first-party module’s closure, or the closure of a dependency (reason names it), could not be assembled, so nothing was registered. |
module_deploy_header_invalid |
The first-party deploy claim names a slug outside the reserved space, or came from a sandbox token. |
intellia modules define
Register a module. Its version goes up only when its content changed since the
last registration. Every --root must reference an app site or
workflow that already exists in the org, and carries its own required
description.
intellia modules define \
--slug acme-portal \
--name "Acme Portal" \
--description "Bundles the Acme storefront site with its nightly sync workflow." \
--root "app_site:3f9e2b3a-2222-4c11-9b8e-111111111111:the storefront" \
--root "workflow:7c1d44f0-3333-4d22-8c9f-222222222222:nightly sync"
intellia modules define \
--slug acme-portal \
--name "Acme Portal" \
--description "Bundles the Acme storefront site with its nightly sync workflow." \
--visibility private \
--category "e-commerce" \
--tags "portal,acme" \
--root "app_site:3f9e2b3a-2222-4c11-9b8e-111111111111:the storefront" \
--pretty| Option | Description |
|---|---|
--slug <slug> |
Module slug, unique in the public catalogue and within your org (required) |
--name <name> |
Module display name (required) |
--description <description> |
Module description (required) |
--visibility <visibility> |
public or private; omit to keep the stored value (a new module is private). public requires Hutly’s internal authoring org and a Hutly superadmin; an intellia- slug requires public |
--category <category> |
Optional category |
--tags <csv> |
Comma-separated tags |
--root <spec> |
Root as <kind>:<resourceId>:<description> — kind is app_site, workflow or agent — or table:<tableName>:<description> (repeatable) |
--pretty |
Pretty-print JSON output |
intellia modules get
Fetch a single module by id, including its roots.
intellia modules get 3f9e2b3a-2222-4c11-9b8e-111111111111
intellia modules get 3f9e2b3a-2222-4c11-9b8e-111111111111 --pretty| Option | Description |
|---|---|
--pretty |
Pretty-print JSON output |
intellia modules list
List the platform-wide public catalogue — every public module, regardless
of which organization authored it — plus your own organization’s modules if
it’s an authoring organization (including any private ones it owns).
intellia modules list
intellia modules list --pretty| Option | Description |
|---|---|
--pretty |
Pretty-print JSON output |
intellia modules project
Project a registered module’s source into a portable, reviewable YAML tree on
disk — everything the module bundles (app sites, apps, workflows, tables,
agents, knowledge bases), rewritten as !ref-linked files under --out. This
does not deploy, activate, or install anything; it only writes the tree so it
can be reviewed, diffed, or checked into version control. Deploying a
projected tree back into an organization is a later capability.
When the module has a captured source bundle (see deploy below), project
unpacks that bundle directly instead of re-projecting from live records — the
authored tree (comments, structure, anything the DB projection can’t
recover) wins, and a drift warning prints if a workflow or table in the
module was edited after the capture. Projection from live records is the
fallback, used only when no bundle exists (a module predating source
capture). Pass --projected to force live-record projection regardless of a
captured bundle.
intellia modules project 3f9e2b3a-2222-4c11-9b8e-111111111111 --out ./acme-portal
intellia modules project 3f9e2b3a-2222-4c11-9b8e-111111111111 --out ./acme-portal --projected| Option | Description |
|---|---|
--out <dir> |
Output directory for the projected source tree (required) |
--projected |
Skip the captured source bundle and always project from live records |
--pretty |
Pretty-print JSON output |
When falling back to live-record projection, the emitted tree follows a fixed layout:
acme-portal/
module.yaml # module metadata, dependsOn, and roots, each a !ref
app-sites/<slug>.yaml # one file per app_site root: its own site, or attachTo a dependency's site
apps/<app-slug>/
manifest.yaml # the app's manifest, refs rewritten to !ref
<artifact filename> # the app's artifact bytes
workflows/ # every workflow the module's roots pull in
tables/ # table roots, and shared tables referenced by those workflows
agents/ # agent roots, and shared agents referenced by those workflows
knowledge-bases/ # shared knowledge bases referenced by those workflows
functions/ # inline function code from those workflows (if any)
scripts/ # inline bash-step code from those workflows (if any)App artifact bytes are not returned inline by the API — the module’s source
bundle carries a presigned S3 URL per artifact, and the CLI downloads the
bytes directly from S3 into apps/<app-slug>/<filename>.
A projected tree holds only the module’s own resources. When one of its pages calls a workflow that a module it depends on installs, the page’s manifest names that workflow by its slug and the module, instead of pointing at a file:
workflows:
- !ref ../../workflows/post-entry.yaml
- slug: get-my-roles
module: erp-baseDeploy needs no copy of the dependency’s tree for this. It checks that the
module is in dependsOn, that it is registered in the organisation, and that
it installed a workflow with that slug, and stops before writing anything
when one of those does not hold. A !ref into a dependency’s own tree beside
this one still works.
An agent or workflow of this module may also run a dependency’s workflow
through a !ref into that module’s tree, for example an agent root’s
workflows tool:
tools:
- toolCode: workflows
configuration:
workflowIds:
- !ref ../../erp-accounts/workflows/save-bill.yamlDeploy does not publish that file as this module’s, and does not read or write
ids in it. It finds what the dependency installed in the target organisation,
by the file’s slug (tags resolved), and checks that the dependency installed
it. Only workflows can be shared this way: activation binds them to the
dependency’s install, while another module’s agent, knowledge base, webhook or
schedule would be copied as this module’s, so deploy refuses a reference to
one. Before anything is pushed, deploy also stops when that module is not in
dependsOn or has not installed the workflow there (“deploy module X to this
organisation first”). References inside !included fragments count too. Uploaded-origin activation cannot
use another module’s workflows; deploy to the registry instead.
intellia modules adopt
Write a module around live resources no module owns yet: an app site and its
pages, the workflows the pages call, and the tables they use. Where project
starts from a registered module, adopt starts from what is running in the
organisation. It reads the organisation and writes local files only; deploy
the result with intellia modules deploy when you are ready.
intellia modules adopt --app-site acme-portal --out ./acme-portal
intellia modules adopt --app-site acme-portal --slug acme --out ./acme-portal
intellia modules adopt --workflow 3f9e2b3a-2222-4c11-9b8e-111111111111 --table acme_leads --out ./acme-leads| Option | Description |
|---|---|
--out <dir> |
Directory to write the module tree into; must be empty or new unless --force (required) |
--app-site <id|slug> |
App site to adopt, with its pages (repeatable) |
--table <name> |
Table to adopt as a root (repeatable) |
--workflow <id|slug> |
Workflow to adopt as a root (repeatable) |
--slug <slug> |
Slug of the app’s module; workflows are never split, so it is their namespace, usually not the site’s slug (default: the namespace its workflows share; with no workflows, the one most of the tables it uses share) |
--force |
Replace the output directory’s contents (see below) |
--skip-integration-triggers |
Project the module even though a workflow is bound to an integration trigger, which has no YAML deploy shape and cannot be projected |
--pretty |
Pretty-print JSON output |
You need an organisation admin role: adopt reads the organisation’s
inventory to see which resources a module already owns.
What it finds. For each page of an adopted site, adopt reads the
approved manifest of the version the site serves, not the latest version. The
workflows that manifest binds are adopted, and so is every workflow they
chain into, plus the tables the manifests declare and the tables those
workflows name. A table or workflow the pages do not reach goes in with
--table or --workflow. A workflow that picks its table at runtime (a
$.… or {{…}} table name) is noted in the output, and no table is adopted
for it. A workflow that belongs to another organisation stops the command;
one that only a chained workflow points at, and that is not in this
organisation, stays a reference by id and is noted.
What it writes.
acme-portal/
module.yaml # slug, roots, and dependsOn
app-sites/<slug>.yaml # the site, each page in the `app:` form
apps/<app-dir>/ # the app's source, from the source bundle
workflows/ # the workflows and their triggers
tables/ # one file per table, named from the table
agents/ # the site's assistant, and agents the workflows useWith one module the tree sits directly in --out. When tables fall in a
namespace other than the app’s, they go into their own module, and the app’s
module lists it in dependsOn; with more than one module, each lives in
--out/<slug>/. The JSON result lists every module, deployOrder, the files
written, warnings, and notes.
What it warns about. adopt writes what it can, and each of these is a
warning in the result, carrying the advice the old refusal gave:
- Resources a module already owns. An owned table or workflow a page or
workflow reaches is not written; the adopted module depends on the owner
instead, and the output notes it. One the command names with
--tableor--workflow, an owned app site, or an owned page of one, is written anyway: work from the owning module’s source (intellia source list module <moduleId>) if you meant to change it there. - A slug that is already one of the organisation’s modules; deploying would
overwrite it. Pass
--slugwith an unused one. - A table named exactly the module’s slug, which no module owns under the
<slug>_<noun>rule; rename it. - A module whose name build output would take (
dist) is written to<name>-module. - An agent whose workflows tool names a workflow of this organisation that the
module does not hold. It stays a reference by id; add it with
--workflow. - A page whose version has no approved manifest, or a malformed one; the page is left out.
- A link or other special file in an app’s source, which is not copied; each one is named.
- Modules that depend on each other, which then deploy in slug order.
Two things still stop it. A workflow that belongs to another organisation is
refused by the API, and adopt reports that as it is. A page with no source
bundle stops the command, writing nothing: adopt copies each app’s source
from the bundle captured for the version the site serves, and
intellia app build captures one, so rebuild the app, put the new version on
the site, and run adopt again. A source bundle that is not safe to extract
stops it with source_bundle_unsafe.
An app module with no site, workflow or table in it is left out, and the output says so.
The slug. The module is named by --slug. Without it, when adopted
workflows exist, it is the namespace they all share (every workflow slug starts
with <namespace>-); when they share none, adopt warns and falls back as below. With no workflows, it is the
namespace (the part of the name before the first _) most of the tables the
app uses or --table names share, ties going to the alphabetically first;
tables reached only through a foreign key do not count. Failing all of those,
it is the first site’s slug. Tables whose name starts with the module’s table prefix,
or whose namespace is the slug, stay in the app’s module. Workflows are never
split, so --slug must be their namespace (the part before the first -),
usually not the site’s slug; a --slug that does not prefix every adopted
workflow draws a warning, and the workflows are written into that module anyway.
--force. Without it, --out must be empty or new. With it, adopt
replaces the directory’s contents, but only when the directory is one module
(module.yaml at its top) or a directory of modules (every entry a directory
holding module.yaml). It refuses a directory that holds .git, or whose
immediate child directory holds .git, and the system temporary directory and
any directory that contains it. The new tree is built in a staging directory
inside --out and swapped in; if the swap fails, the old contents are put
back.
The check. adopt ends by running intellia modules check on what it
wrote. The check reads each app’s approved manifest, and the downloaded source
is never run, so adopt itself executes none of it. A later
intellia modules check or intellia modules deploy evaluates the app’s
intellia.manifest.ts, so review the downloaded source before you run either. Its
warnings join the result’s warnings. If the check finds problems, adopt
exits 1 with module_file_invalid and the problems; the tree stays written, so you can fix it and run
intellia modules check again.
Called through intellia mcp, adopt always asks for confirmation, because
it writes local files.
intellia modules deploy
Deploy a projected module tree (the layout project emits) into the
configured organization and register it. This is the code/CI authoring
channel — the transport the deploy-modules CI action uses to publish
curated modules committed under modules/ into Hutly’s internal authoring
org. It is not required for every module; a module authored interactively (via
Sammy) is registered directly with define.
intellia modules deploy ./acme-portal
intellia modules deploy ./acme-portal --prettyDeploy walks the tree in dependency order:
- Site checks — before anything is written, deploy reads every app site
the tree declares and refuses the whole deploy when the site belongs to
another module, when a declared path already holds a page another module
registered or an unregistered page whose content differs from the tree, or
when an
attachTosite’s owner has not recorded its page paths. - Workflow closure — every workflow the tree contains (the module’s own
workflow roots plus any workflow an app manifest references), reusing the
standard workflow deploy so tables, agents, and knowledge bases the
workflows pull in are deployed and the state machines published. A
manifest workflow that belongs to another module’s tree is not deployed
here; that module deploys it.
Every agent under
agents/and everykind: agentroot, wherever it sits in the tree, is deployed too. From CLI 1.19.0 an agent’s tools are attached after the workflows they!refare deployed, so aworkflowstool’s!ref ../workflows/<file>.yamlresolves on a first deploy. A tool still naming a file with no id stops the deploy instead of sending a local path, and a tool whose configuration changed is sent again. Every table undertables/is deployed first, in foreign-key order. From CLI 1.20.0 akind: tableroot names one of them: it must point at a file directly undertables/, and registers by the table’sname. - App sites and apps — for each app_site, its artifact is published, its
embedded manifest approved (the server resolves the manifest’s workflow
slugs to the ids just deployed), and each app attached at its path. An
attachTofile adds its apps to the named dependency module’s site, which must already be deployed, and never renames or reconfigures that site. A re-deploy that changes nothing keeps the registry version with any CLI, since the version ignores artifact version ids. From CLI 1.11.1, a page whose built file matches the artifact version it already serves also keeps that version instead of appending an identical one. - Registry — the module is registered with its roots resolved to the ids
deployed above, in
module.yamlorder. Deploy then checks that the platform recorded the page paths it sent, and stops withModule "<module>" registered, but the platform did not record its app page paths, …when the platform is older than the CLI. Registering also gives the authoring org the starter rows a table’sseed:declares, the rows a consumer org gets at activation, and like activation it writes them only into a table that is still empty. A table that could not be seeded comes back as a warning naming it.
Deploy is idempotent by natural key: workflows match by slug, tables by
name, agents and knowledge bases by slug, app_sites by slug, apps by path. A
re-deploy removes a page its tree no longer has only when this module
registered that page on its last deploy, or, on a site the module owns but has
no record of yet, when no other module registered it. Pages another module
added to the same site stay. The module upserts by its organization and slug.
The committed tree stays id-free — a re-run against the same org updates every
resource in place and produces no duplicates. A tree that declares
visibility: public in its module.yaml can only be deployed into Hutly’s
internal authoring org. Each app site goes in one file; a tree that declares
the same site in two files stops at load.
These refusals stop the deploy before anything is written:
| Message | What to do |
|---|---|
App site "<site>" is owned by module "<module>"; choose another site slug |
Give this module’s site its own slug. |
Module "<module>" is not registered in this organisation; deploy "<module>" first |
Deploy the module you attach to, then this one. |
App site "<site>" is not owned by module "<module>"; attach to a site "<module>" owns |
Name a site the dependency owns in attachTo. |
App site "<site>" of module "<module>" has no recorded page paths; deploy "<module>" with CLI 1.10.0 or newer first |
Re-deploy the owner with this CLI. |
Deploy the owner of a site that other modules attach to with CLI 1.10.0 or
newer. An older CLI sends no page paths, so register refuses it with
module_attach_owner_paths_required, and before that refusal it has already
removed every page on the site that is not in its own tree, other modules'
pages included.
A live page at one of the module’s paths is updated in place and registered to
the module, whoever made it, on the module’s own site and on a site it attaches
to alike. A page another module registered stays that module’s: the CLI leaves
it unwritten and warns with the path and the module, then the platform refuses
the registration with module_app_path_claimed, which names the path and the
module, and the deploy reports that error as it is. Move this module’s page to
a free path.
A first-party tree declares its family next to its visibility:
slug: intellia-erp-base
visibility: public
family: erpA bridge joins two optional modules, for example stock and sales. It
declares both in dependsOn and sets bridge: true in module.yaml. The
in-app catalogue leaves a bridge out; the in-app installer adds it to an
install plan once every module it depends on is installed or being installed
(an older installed version is upgraded alongside), so it arrives with
whichever of them comes last.
Omitting bridge keeps the stored value.
Taking a table over
A first-party module can take a table over from a module it depends on, so
that the giving module can stop declaring it. This needs CLI 1.17.0 or newer. Rows, ids and shape stay; only
the owner changes. The receiving module names each table in module.yaml and
declares it in its own tables/ as usual:
slug: intellia-erp-stock-sales
bridge: true
dependsOn:
- intellia-erp-sales
- intellia-erp-stock
takesOver:
- table: intellia_erp_delivery
from: intellia-erp-sales
- table: intellia_erp_delivery_line
from: intellia-erp-salesThe platform checks, at register and at activation:
- the receiver, the giver and the table are all in the reserved
intellianamespace (module_takeover_first_party_only); - the giver is a dependency of the receiver, directly or through another
module (
module_takeover_not_dependency); - the receiver’s closure declares the table (
module_takeover_not_declared); - the giver owns the table, or the receiver already does
(
module_takeover_not_owner, naming the owner).
Where it applies:
- Deploy. A table the giver still owns is pushed after register has moved
it, and the module then registers again, so the version records the new
shape. A destructive change to the table needs
--allow-destructive, as for any table. - Activation and upgrade. The table is brought up to the receiver’s declaration additively, then moved. A tightening step stops the activation and leaves the table with the giver. In an org without the table, the receiver creates it.
- Install plan. The receiver runs after the giver, which is in its
dependency chain, so the giver’s upgrade (which may stop declaring the table)
comes first and the table keeps its owner until the receiver’s step moves it.
The receiver’s plan member lists the tables it takes in
takesOver.
Each move is recorded with the organisation, table, both modules, the user, and whether a deploy or an activation made it. A re-run moves nothing and records nothing.
Afterwards the giver may not name the table, in tables/ or in a tool:
its deploy is refused with module_object_taken naming the receiver, and so is
its activation. intellia modules check reports a giver in the same tree that
still names a table another module takes over.
define has no --family option, so a first-party module is first registered
with deploy; a later define keeps the stored family. Before writing
anything, deploy stops a tree whose slug, visibility and family do not agree
(see Naming and the reserved namespace).
After deploying, modules deploy captures the deployed directory as a source
bundle — registered against the module, every app_site it deployed, and every
artifact version it published — so intellia source list <kind> <id> /
intellia source pull <kind> <id> -o <dir> can recover the exact authored tree
later. Capture defaults to the nearest ancestor directory holding
module.yaml or .intelliarc.yaml; use --source-root to capture a different
directory instead. A module whose workflow TypeScript imports files from
outside its own directory — a shared contracts/ folder in a repo of several
modules — must deploy with --source-root <repo root>, or the captured
bundle omits those files and source pull cannot rebuild the workflows.
| Option | Description |
|---|---|
--source-root <path> |
Directory to capture as the source bundle (default: nearest module.yaml/.intelliarc.yaml ancestor) |
--pretty |
Pretty-print JSON output |
intellia modules activation (step-by-step)
Drive a module activation session one step at a time. This is the
underlying machine intellia modules activate
walks automatically; use the activation subcommands directly when a hole
needs interactive resolution (a missing secret or integration) between
begin and deploy. See Modules for the concept.
intellia modules activation begin <moduleId>
Begin an activation session for a registry module. <moduleId> is a module
id from the catalogue (intellia modules list). Prints { sessionId, preview },
where preview carries the module summary, any unresolved holes
(secrets/integrations), and the derivedSlug (empty for workflow-only
modules).
intellia modules activation begin 3f9e2b3a-2222-4c11-9b8e-111111111111intellia modules activation get <sessionId>
Print an activation session’s current state, including its step
(preview → holes → configure → accepted → deploying →
done/failed).
intellia modules activation get 7c1d44f0-3333-4d22-8c9f-222222222222intellia modules activation holes <sessionId>
Recompute and print the session’s unresolved holes (secrets/integrations still required before the session can be accepted).
intellia modules activation holes 7c1d44f0-3333-4d22-8c9f-222222222222A module webhook that verifies signatures needs its signing secret, the secret
the sender signs its calls with. Until the webhook it installs as has one
linked that is still in your vault, it shows as a secret hole whose ref is webhookSignature:<webhook slug> and whose webhook names the webhook. Resolve it with a secret from
your vault, and activation links that secret together with the check:
intellia modules activation resolve 7c1d44f0-3333-4d22-8c9f-222222222222 \
--kind secret --ref webhookSignature:xero-changes --consumer-id <vault secret id>intellia modules activation configure <sessionId>
Set the activated module’s app_site slug and any params. Omit --slug for a
workflow-only module (no app_site to slug).
intellia modules activation configure 7c1d44f0-3333-4d22-8c9f-222222222222 \
--slug acme-portal \
--params '{"region":"au"}'| Option | Description |
|---|---|
--slug <slug> |
app_site slug for the activated module (optional; provide it for modules that carry an app_site) |
--params <json> |
JSON-encoded params object |
intellia modules activation accept <sessionId>
Accept the session. This is a strict gate — it rejects (409,
activation_holes_unresolved) if any holes remain unresolved.
On success the session advances to accepted.
intellia modules activation accept 7c1d44f0-3333-4d22-8c9f-222222222222intellia modules activation deploy <sessionId>
Start the async clone of the module’s resources into the org. The session
moves to deploying, then done or failed as the worker progresses; poll
with activation get to watch it land.
intellia modules activation deploy 7c1d44f0-3333-4d22-8c9f-222222222222intellia modules activate
One-shot activation walker: begin → (holes gate) → configure →
accept → deploy → poll until the session reaches done or failed.
<target> is either:
- a registry moduleId — the standard catalogue path, or
- an existing directory — an uploaded-origin module tree (the layout
intellia modules projectemits, typically after Sammy has edited it). Uploaded origin currently supports workflows and agents only; a tree that also bundles tables, knowledge bases, or app_site apps fails loud rather than activating a partial module.
If the session has unresolved holes, the command stops and prints the
activation subcommands needed to resolve them and continue manually — a
one-shot activation cannot resolve holes interactively.
intellia modules activate 3f9e2b3a-2222-4c11-9b8e-111111111111
intellia modules activate ./acme-portal| Option | Description |
|---|---|
--pretty |
Pretty-print JSON output |
Activating over existing tables
When a module’s table already exists in the organisation, activation compares
the two schemas. Identical tables are adopted as they are. If the module’s
version adds to the table — a new column, index, unique constraint or foreign
key, a default, a description, or a required flag being dropped — activation
applies those changes and reports each one in the activation’s warnings, for
example: Table "stock_ledger" was updated to the module's schema: Add column "qty".
Activation never removes anything. Columns, unique constraints and indexes on the organisation’s table that the module does not declare are left in place, so a customer’s own columns survive re-activation, and a module version that no longer declares a column leaves that column and its values where they are.
What activation does not apply is a tightening of something the module declares: making a column required, changing which table a column links to, or dropping a foreign key the organisation added to a column the module declares without one. The activation fails once, names every such step, and does not retry:
Cannot activate: table "stock_ledger" in this organisation needs changes that
activation does not make on its own — Make "qty" required. Apply them with
`intellia tables push` or remove the table, then re-activate.
Two other conflicts fail once the same way, with the server’s reason after the table name, and do not retry: a column whose type or Data Dictionary link differs from the module’s, and a unique constraint, foreign key or required new column that the table’s existing rows violate:
Cannot activate: table "stock_ledger" in this organisation — Cannot add a
unique constraint on (sku): 3 duplicate group(s) exist. Remove the
duplicates first.
intellia modules check reports the same
judgement from the declarations alone before anything is deployed, and names
what a dependent module leaves in place, for example leaves in place: column "legacy".
Re-activating an installed module
Re-activating a module to upgrade it keeps what your organisation changed. Workflows, agents, app pages, schedules and webhooks that you edited are left as they are, and the activation result lists each one that was kept. Ones you did not touch are updated to the module’s new version. For an app page the module’s new version still lands in the app’s version history, so you can switch to it later; a page switched to it takes the module’s later upgrades again. A page, schedule or webhook the module no longer ships is removed, and so are the handlers it added to a Stripe connection it no longer listens on, unless you changed them, in which case they stay, the result says so, and the module stops tracking them. What you deleted stays deleted: a schedule, webhook or app page never comes back, and the result says each one was left deleted. Reconnecting Stripe is not a deletion: the module’s handlers move to the new connection’s webhook on the next activation. A workflow, agent, table or knowledge base you deleted comes back only when something the module still ships uses it, such as a schedule, webhook, app, agent or another workflow, and the result names what uses it. A schedule or webhook whose handlers went with it gets them back, and the rest of it takes the module’s version unless you changed it. Once a module version stops shipping something you deleted, it is forgotten. A kept webhook never loses its linked signing secret. Adding your own signature check to a webhook counts as a change, so the webhook is kept and a module version that declares a check never replaces yours. If the module now declares a signature check that your kept webhook lacks, the upgrade adds the check. Activation asks for the signing secret of any signed webhook that has none linked, or whose linked secret was deleted from your vault, and links it with the check, so the check never ships without it; a secret you linked is never replaced while it is in your vault. If a webhook still ends up with the module’s check and no signing secret, it refuses deliveries, and every upgrade says so until an admin links one. An install that predates this behaviour updates as before on its first upgrade, and your edits are kept from the next one.
intellia modules hide <moduleId> / intellia modules unhide <moduleId>
Toggle an activated module’s visibility for the org, without deactivating
it. hide moves it to the hidden state; unhide moves it back to
active.
intellia modules hide 3f9e2b3a-2222-4c11-9b8e-111111111111
intellia modules unhide 3f9e2b3a-2222-4c11-9b8e-111111111111| Option | Description |
|---|---|
--pretty |
Pretty-print JSON output |
intellia modules policy <moduleId> [untouched|frozen]
Print an installed module’s update policy, or set it. untouched, the
default, updates what your organisation has not changed. frozen applies no
updates: activating a newer version of the module is refused, and so is
updating a module that needs a newer version of it. Installing, hiding,
keeping your own versions and intellia modules updates use still work. Setting the policy takes an org admin or
owner.
intellia modules policy 3f9e2b3a-2222-4c11-9b8e-111111111111
intellia modules policy 3f9e2b3a-2222-4c11-9b8e-111111111111 frozen| Option | Description |
|---|---|
--pretty |
Pretty-print JSON output |
intellia modules updates list [--module <moduleId>]
List what your organisation changed and kept that a newer version of the
module also changed, for each module you have not hidden. Each item names the
resource, its kind (app, workflow, agent, schedule or webhook), the versions
since and at, the offerId of the version it offers, and the module’s
release notes for every version in between; notes is null when the module
gave none. An app also carries its
path and moduleVersionId, the artifact version the module offers. A
workflow or agent also carries copyId, the identity of your organisation’s
copy as listed, which accept sends back. Plain keep hides only the update:
a changed workflow or agent you kept without accepting it is then listed with no
offerId until it is accepted with intellia modules updates accept. Any other
item you chose to keep stays off the list until the module changes that resource
again.
The list also names each assistant or action of the module your organisation
changed with no update pending. The module’s assistant stops running a workflow
or agent once it is changed outside the module, until an owner or admin accepts
that version. Such an item has offerId null, since and at both the
installed version, and no release notes.
intellia modules updates list --module 3f9e2b3a-2222-4c11-9b8e-111111111111
intellia modules updates list --pretty| Option | Description |
|---|---|
--module <moduleId> |
Only this module’s updates |
--pretty |
Pretty-print JSON output |
intellia modules updates keep <moduleId> <key>
Keep your organisation’s version of a resource over one update of the module. key
is the item’s key from intellia modules updates list, and --offer its
offerId, so a newer version the module offered since you read the list is
refused with 409 offer_changed instead of kept unseen. Without --offer the
command acts on the offer on the list now and says so. Keeping it again does
nothing; an item with no update answers 404 no_update. Keeping does not let
the module’s assistant run a changed workflow or agent; accept does. Takes an
org admin or owner.
intellia modules updates keep 3f9e2b3a-2222-4c11-9b8e-111111111111 scheduleSlug:intellia-erp-base-reconcile --offer 7d2c…| Option | Description |
|---|---|
--offer <offerId> |
The item’s offerId from the list you reviewed; without it, the offer on the list now |
--pretty |
Pretty-print JSON output |
intellia modules updates accept <moduleId> <key> --copy-id <copyId>
Accept your organisation’s own version of a workflow or agent it changed, so
the module’s assistant runs it again. An owner or admin does this after reading
the change. --copy-id is the item’s copyId from
intellia modules updates list: only that copy is accepted, and a copy changed
since you read the list is refused with 409 proposal_changed. With no update
pending the item’s offerId is null and you send none; while an update is
open, --offer-id keeps your version over it too, and accepting without it is
refused with 409 update_pending. A changed workflow must be published before
it can be accepted; a draft is refused with 409 workflow_unpublished. While an
update of the module is running,
accepting is refused with 409 update_running: try again when it finishes. An
app, schedule or webhook has no copy to accept and answers 400
invalid_field. Takes an org admin or owner.
intellia modules updates accept 3f9e2b3a-2222-4c11-9b8e-111111111111 workflowId:upload:workflows/create-quote.ts --copy-id 5be0…| Option | Description |
|---|---|
--copy-id <copyId> |
The item’s copyId from the list you reviewed (required) |
--offer-id <offerId> |
The item’s offerId, when it has an update pending |
--pretty |
Pretty-print JSON output |
intellia modules updates use <moduleId> <key>
Point an app page at the module’s version, replacing your organisation’s change
to it. Only app pages can be switched this way; any other kind answers 400
not_an_app. It works on a frozen module too: freezing stops updates nobody
asked for, and this is your organisation asking for the module’s version.
--offer works as for keep. Takes an org admin or owner.
intellia modules updates use 3f9e2b3a-2222-4c11-9b8e-111111111111 'siteApp:6c1d…:/invoices' --offer 9a41…| Option | Description |
|---|---|
--offer <offerId> |
The item’s offerId from the list you reviewed; without it, the offer on the list now |
--pretty |
Pretty-print JSON output |
intellia modules updates proposal <moduleId> <key>
Read the merge of the module’s change into your organisation’s own copy of a
workflow or an agent, without changing anything. It lists moduleChanges (what
the module changed since the version your copy came from), clientChanges
(what your organisation changed) and conflicts (where both changed the same
thing, with the base, client and module value), and carries the offerId
and proposalId that merge takes. When the version your copy came from is no
longer on record, available is false and unavailableReason says so. For an
app page it lists no changes: available says whether the page can be merged
from source, and source names the three versions merge-source merges. A schedule or webhook answers
400 not_mergeable; an item with no update
answers 404 no_update. The modules page shows the same merge under Review
the merge.
intellia modules updates proposal 3f9e2b3a-2222-4c11-9b8e-111111111111 workflowId:upload:workflows/invoice-run.yaml| Option | Description |
|---|---|
--pretty |
Pretty-print JSON output |
intellia modules updates merge-source <moduleId> <key>
Merge the module’s change to an app page into your organisation’s version, from
source. It downloads the source of three versions (the module version your page
came from, the module’s new version and your page’s version), merges them file
by file into a folder beside --out and moves it into place at the end, so a
failed run leaves --out untouched; --out must be new or empty. It prints one JSON document:
the artifactId, appSiteId, appId and path of the page, baseVersion and
moduleVersion, the offerId and proposalId that merge takes,
moduleChanged and clientChanged (the files each side changed) and
conflicts. Each conflict has a path and a kind: content, binary,
generated, deleted-by-you, deleted-by-module or added-by-both. A
generated conflict is a lockfile or a file under .hutly/generated/ that both
sides changed; it is never merged line by line, and yarn install and the
build regenerate it. Your organisation’s side is kept for every conflict; the module’s copy of each conflicting file is
under <dir>/.intellia/merge/module/<path> and the base under
<dir>/.intellia/merge/base/<path>. It changes nothing on the platform.
When your page or the module version it came from was published without its
source, the update can’t be merged and the command prints why and exits 1.
Make your change again on the module’s new version instead: download it with
intellia artifact download <artifactId> --version-id <moduleVersionId> --out <dir>.html --with-source <dir>.
The same applies when it says the three source trees don’t share a folder
layout: your version was built without --source-root at the module source’s
root, so its files don’t line up with the module’s.
Build the merged source with
intellia app build --dir <dir>/modules/<module>/apps/<app> --source-root <dir> --append-to <artifactId>,
approve it with intellia artifact pin <artifactId> --approve, then apply it
with merge --version-id.
intellia modules updates merge-source 3f9e2b3a-2222-4c11-9b8e-111111111111 'siteApp:6c1d…:/invoices' --out ./invoices-merge| Option | Description |
|---|---|
--out <dir> |
A new or empty folder to write the merged source into (required) |
--pretty |
Pretty-print JSON output |
intellia modules updates merge <moduleId> <key>
Apply the merge you reviewed to your organisation’s workflow, agent or app
page. For a workflow or an agent the proposal’s merge is applied. For an app
page, --version-id names the version you built from merge-source and
approved; the page then serves it. --offer-id and --proposal-id are
required and come from the proposal or merge-source you read: a newer version the
module offered since is refused with 409 offer_changed, and an edit to your
copy since (for an app, the page serving another version) is refused with 409
proposal_changed, so a merge never lands unseen. Where you and the module
changed the same thing the merge keeps your value; to settle a conflict another
way, edit your own workflow or agent, then read the proposal again. A merged
workflow that would not be valid, or an app version built without
--source-root, is refused with 422 merge_invalid; an app version you have
not approved is refused with 409 app_manifest_not_approved. The result stays your
organisation’s own, so the module’s next change to it lists again. Takes an org
admin or owner.
intellia modules updates merge 3f9e2b3a-2222-4c11-9b8e-111111111111 workflowId:upload:workflows/invoice-run.yaml --offer-id 7d2c… --proposal-id b41f…| Option | Description |
|---|---|
--offer-id <offerId> |
The proposal’s offerId (required) |
--proposal-id <proposalId> |
The proposal’s proposalId (required) |
--version-id <versionId> |
App pages only: the version you built from the merged source |
--pretty |
Pretty-print JSON output |