@inventarch/cli 3.1.1 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LANGUAGE.md +2 -2
- package/README.md +1 -0
- package/SPEC.md +8 -7
- package/assets/base/62ecd5092f364b40e335e9e509ef512ac8030eb5689e72a5d0ff1e073cb13cfb.ia.tgz +0 -0
- package/assets/base.json +3 -3
- package/assets/host/ed8afd3c7350bb1d131c5b0324979b83698718f57fdce4ebc5dbf56e43998506.tgz +0 -0
- package/assets/host.json +3 -3
- package/assets/vocabulary.json +14 -14
- package/dist/args.d.ts +1 -1
- package/dist/args.d.ts.map +1 -1
- package/dist/briefing.d.ts +8 -3
- package/dist/briefing.d.ts.map +1 -1
- package/dist/briefing.js +10 -3
- package/dist/briefing.js.map +1 -1
- package/dist/capture.d.ts +4 -2
- package/dist/capture.d.ts.map +1 -1
- package/dist/capture.js +6 -4
- package/dist/capture.js.map +1 -1
- package/dist/channel.d.ts +4 -1
- package/dist/channel.d.ts.map +1 -1
- package/dist/channel.js +4 -1
- package/dist/channel.js.map +1 -1
- package/dist/claude-cli.d.ts +3 -3
- package/dist/claude-cli.js +7 -7
- package/dist/commands.d.ts +2 -2
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +5 -5
- package/dist/commands.js.map +1 -1
- package/dist/compile.d.ts +1 -1
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +1 -1
- package/dist/compile.js.map +1 -1
- package/dist/consumer.d.ts +29 -22
- package/dist/consumer.d.ts.map +1 -1
- package/dist/consumer.js +33 -29
- package/dist/consumer.js.map +1 -1
- package/dist/decline.js +3 -3
- package/dist/decline.js.map +1 -1
- package/dist/distribute.d.ts +18 -15
- package/dist/distribute.d.ts.map +1 -1
- package/dist/distribute.js +23 -20
- package/dist/distribute.js.map +1 -1
- package/dist/doctor-user.d.ts +2 -2
- package/dist/doctor-user.d.ts.map +1 -1
- package/dist/doctor-user.js +8 -8
- package/dist/doctor-user.js.map +1 -1
- package/dist/doctor.d.ts +2 -2
- package/dist/doctor.d.ts.map +1 -1
- package/dist/doctor.js +18 -11
- package/dist/doctor.js.map +1 -1
- package/dist/format.d.ts +2 -2
- package/dist/format.d.ts.map +1 -1
- package/dist/format.js +3 -3
- package/dist/format.js.map +1 -1
- package/dist/home-remedy.d.ts +1 -1
- package/dist/home-remedy.d.ts.map +1 -1
- package/dist/home-remedy.js +2 -2
- package/dist/home-remedy.js.map +1 -1
- package/dist/host-projection.d.ts +1 -1
- package/dist/host-projection.js +4 -4
- package/dist/host-projection.js.map +1 -1
- package/dist/host.d.ts +17 -17
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +40 -40
- package/dist/host.js.map +1 -1
- package/dist/init.d.ts +14 -13
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +32 -30
- package/dist/init.js.map +1 -1
- package/dist/main.d.ts +1 -1
- package/dist/main.js +4 -4
- package/dist/main.js.map +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/next.js +1 -1
- package/dist/pack.d.ts +1 -1
- package/dist/pack.d.ts.map +1 -1
- package/dist/pack.js +6 -6
- package/dist/pack.js.map +1 -1
- package/dist/position.d.ts +1 -1
- package/dist/position.js +1 -1
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +2 -1
- package/dist/preview.js.map +1 -1
- package/dist/project.d.ts +3 -3
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +12 -11
- package/dist/project.js.map +1 -1
- package/dist/read.d.ts +1 -1
- package/dist/read.js +1 -1
- package/dist/render.d.ts +29 -28
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +25 -24
- package/dist/render.js.map +1 -1
- package/dist/session.js +3 -3
- package/dist/user-host.d.ts +1 -1
- package/dist/user-host.js +5 -5
- package/dist/user-host.js.map +1 -1
- package/dist/validate.d.ts +1 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +2 -2
- package/dist/validate.js.map +1 -1
- package/dist/vocabulary.d.ts +1 -1
- package/dist/vocabulary.d.ts.map +1 -1
- package/package.json +6 -6
- package/assets/base/df626d1dc4949649ba7203842b29b4f064e0552e8db8c2c41ff74b6462b81b75.ia.tgz +0 -0
- package/assets/host/f91ffe4c2071b196e925e93507bd661b3e09f5dc75392f7d6453fdbec5e28d62.tgz +0 -0
package/LANGUAGE.md
CHANGED
|
@@ -22,7 +22,7 @@ Spec source locators do not load documents. Resource capture and disclosure requ
|
|
|
22
22
|
| @convention | governance-system | Declares a convention in the shared governance shape. |
|
|
23
23
|
| @decision | work-system | Represents a choice that is needed or has been made: the question, options and decider, and once made, the choice and rationale. |
|
|
24
24
|
| @dimension | taxonomy | Defines a supported record dimension used by conditions and lookup. |
|
|
25
|
-
| @distribution | workspace-system | Declares root records from which a distributable closure is selected. |
|
|
25
|
+
| @distribution | workspace-system | Declares root records from which a distributable closure is selected, and optionally the host plugin product it describes. |
|
|
26
26
|
| @execution-binding | agent-composition-system | Connects a native target to a host-installed entry or operation descriptor. |
|
|
27
27
|
| @harness | agent-composition-system | Composes profiles and execution bindings in a workspace under a host contract. |
|
|
28
28
|
| @hook | hook-authoring-system | Represents a host event, tool/path selection and guard message. Registration and executing a guard require a host adapter. |
|
|
@@ -40,7 +40,7 @@ Spec source locators do not load documents. Resource capture and disclosure requ
|
|
|
40
40
|
| @placement | taxonomy | Defines source authority and reach metadata. |
|
|
41
41
|
| @plan | work-system | Represents an arrangement of milestones toward an intent; it heads the work hierarchy and has no parent. Plans do not nest. |
|
|
42
42
|
| @playbook | governance-system | Represents a procedure as phase/primitive cells. Cell delivery is generic; the authored method belongs to its author. |
|
|
43
|
-
| @predicate | taxonomy | Defines a directed relationship and its
|
|
43
|
+
| @predicate | taxonomy | Defines a directed relationship, its inverse spelling and its present phrase. |
|
|
44
44
|
| @primitive | taxonomy | Defines a cognitive primitive coordinate; a cell is selected using its phase and primitive. |
|
|
45
45
|
| @principle | governance-system | Declares a governing rationale in the shared governance shape. |
|
|
46
46
|
| @run | session-system | Represents a governed run identity, declared phase, status and owner. Declaration does not start execution. |
|
package/README.md
CHANGED
|
@@ -54,6 +54,7 @@ Automation should read the exit value together with the diagnostic code:
|
|
|
54
54
|
| `1` | Validation errors, and refusals such as a mandate refusal or a stale `--digest` |
|
|
55
55
|
| `2` | Usage errors |
|
|
56
56
|
| `3` | Unavailable inputs and local operational refusals |
|
|
57
|
+
| `4` | `install`, `update` or `restore` could not reach or read a remote registry or archive |
|
|
57
58
|
| `130` | Interrupted |
|
|
58
59
|
|
|
59
60
|
### ✍️ Authoring and checking
|
package/SPEC.md
CHANGED
|
@@ -24,7 +24,7 @@ Owner migrations and grants are explicit source changes followed by `ia validate
|
|
|
24
24
|
|
|
25
25
|
| Command | Behavior |
|
|
26
26
|
| --- | --- |
|
|
27
|
-
| `init [directory]` | Preview a workspace, or create it with `--apply`; `--host none` omits host registration and `--id <provider/name>` sets the package id (default `local/<directory name>`). `--from <plugin-directory>` lowers a Claude, Codex or Grok plugin into the new workspace as a kit, in place of `--system` (see [Host plugins](#host-plugins)). `--decline today` or `--decline forever` records that a repository should not be initialized, and `--forget-decline` removes that record. The target is positional, so `--root` is refused. The default starter (2026-10-09) is three records at placement authored (band 100) in `.ia/src/workspace.ia`, each with only the fields its schema declares: `@workspace <name>` (`composition.systems` naming every system the bundled base installs, `composition.sources [".ia/src @authored"]`, `composition.steward @agent <name>`), its participant `@agent <name>` ("The IDE agent operating in the <name> workspace, any vendor.", `governance.applies []`) and `@mandate <name>-mandate` (`governance.requires "Claim no host permission or execution from this mandate."`, `authority.participant @agent <name>`, `authority.moves [Observation, Verification, Synthesis, Delegation, Execution]`, `authority.scope [@workspace <name>]`). The record names are the workspace's; the package id's provider never prefixes them. With `--from` the starter is these three records plus the lowered kit: its `@system` and steward, its records, its resources and its assets, so it is no longer three records alone (see [Host plugins](#host-plugins)). `.ia/.gitignore` holding `work/` and `distributions/` is written only where none exists; an existing one is left as it is and reported, never a conflict. No local `@system` and no `@distribution` are written, so the release descriptor names no `distribution`. `--system`, for a repository that will own vocabulary, also writes `.ia/src/systems/<name>/system.ia` (the 1.x `@system <name>`, requiring `agent-system`, `work-system` and `workspace-system`, and its `@agent <name>-steward`) and `.ia/src/systems/<name>/records/distribution.ia` (`@distribution <name>-distribution` with `distribution.records [@system <name>]`), and the descriptor names that distribution, read from the compiled graph, so `pack` releases the system folder; its `@workspace` composes the local system after the base's (2026-10-09), so `composition.systems` ends with `@system <name>` and the position packet renders a pointer line for it. The apply runs install, author (create-only: a starter file already present with the same bytes is skipped), admission (zero error findings, and each starter record compiled at its path), descriptor (the completion point), then two effects reported apart: capture, the `capture` verb's own write of `.ia/work/snapshot/current.json` through the database, and, only with `--host`, project, the `host <host> --apply` path, whose projection `applyHostProjection` writes. An interruption before the descriptor names the rerun of `init`, which skips completed steps. Past the descriptor an effect that fails or is interrupted leaves every earlier result in place and says so, opening its next action with the sentence saying the workspace is initialized: a capture that fails is refused as `capture` refuses it, with its code, location and repair, then `capture --root <root>`, and without `--host` an interruption there names `capture --root <root>`. With `--host` the project effect runs after a capture that failed too, because the packet reads the live revision rather than the capture, and that capture refusal then says the projection is written; an interruption before the capture, or a host step that refuses, names `host <host> --root <root> --apply` (or `ia host`'s own remedy, rooted), saying whether the capture was taken. With `--json` the plan lists the steps `install`, `author`, `admission`, `descriptor`, `capture` and, with `--host`, `project`, and the starter's `system`, `paths`, `records` (each as `@<word> <name>`) and `ignore` (`{path, status}`, `create` or `present`); `applied` adds `distribution` (null without `--system`), `authored` (the starter records' identities in file order: three, six with `--system`, or three plus the lowered kit's with `--from`), `ignore` (`written` or `present`) and `effects`, `{capture: {revision, records}, project: {host, files, receipt} | 'skipped'}`, where `files` are the receipt's files with their SHA-256 and `receipt` is its path. The human report says the same: the records authored, the ignore file, the capture's records and revision, and the projected files and receipt or that project was skipped. `--migrate` (2026-10-09) rewrites a workspace a 1.1.0 `init` wrote (1.0 and 1.1 write the same starter) into this starter, keeping its descriptor's id. It takes `--system`, `--apply`, `--json` and `--yes`; `--id`, `--host` and the decline options with it are usage (exit 2). A 1.1.0 starter is one folder in `.ia/src/systems/`, its local system `<name>`, holding only `system.ia`, with exactly `@system <name>`, which registers no word, and `@agent <name>-steward`, and `records/*.ia`, of which `records/workspace.ia` holds exactly `@workspace <name>` and `@distribution <name>-distribution`, the distribution `.ia/release.json` names. The three records use fields only the base this CLI bundles declares (`composition.sources`, `composition.steward` and the `@mandate`'s `authority`), so a workspace whose installed `inventarch/language` is another archive has it replaced, which needs a lock holding that one base alone. Plan and apply run one preflight before anything is written: any other shape, a nested folder or another file or record included, and a base to replace in a lock that holds anything else, is refused as `IA-CLI-CONFLICT` (exit 3) naming `init --help`; a workspace that does not admit is refused as `IA-CLI-CONFLICT` naming `validate --root <root>`; with a host's projection state present, a pending host journal is refused with the journal's code, located at it, naming its recovery on the distribution binary, then the rerun; and each destination that already exists (`.ia/src/workspace.ia`, or `.ia/src/<file>.ia` for a moved file), each record the workspace keeps that holds the word and name of a starter record the migration authors anew (`@agent <name>` or `@mandate <name>-mandate`, which would tie with it), located at that record's file, and each host whose projection state exists and whose guard retirement or file plan the planners refuse, such as a file without a marker at a target path, is a conflict. The plan lists the conflicts, the base install, every move, write and delete, the empty folders included, and each registered host's guard retirement and file actions, planned for the migrated records: every rendered file carries the workspace revision, which the migration changes, so none is `unchanged`. It is exit 0. `--apply` refuses a plan with conflicts and writes nothing: a destination or record collision as `IA-CLI-CONFLICT` naming `init <directory> --migrate`, whose plan lists each one; a projection conflict alone keeps the planner's code, located at its file, and names `host <host> --root <root>`, whose plan names each file it refuses. The apply first installs the bundled base where the plan says so, offline and as `init` installs it, while the records are still the 1.1.0 starter's, which the installer admits against it before activating it; an interruption there names the rerun of the migration, which installs the base again only if the bundled one is still not installed. It then moves every other `records/<file>.ia` byte for byte to `.ia/src/<file>.ia`, where its records keep their identities, since a record's word and not its folder decides its system; writes `.ia/src/workspace.ia` with the three starter records, keeping the 1.x `@workspace`'s name and `composition.systems` without the local system and adding `composition.sources` and `composition.steward`, and `.ia/.gitignore` where none exists; deletes `records/workspace.ia`, `system.ia` and the three folders they leave empty; and rewrites the descriptor without `distribution` and with the bundled base's dependency row, as `init` writes it, in place of the installed base's, keeping every other row. With `--system` it keeps `system.ia` as it is, writes `records/distribution.ia` as `init --system` does, rooted at `[@system <name>]`, composes the local system and keeps the descriptor's distribution, so `pack` still releases the folder; the descriptor is left byte for byte, whatever its formatting, when its base row is already the bundled base's. Admission then reads the starter identities and each moved file's, and the two effects follow: the capture, and for each host whose projection state exists its projection through `applyHostProjection`, which retires the 1.x steward guard and deletes the owned steward agent files. A file step that fails says which writes and deletes it made, the base install included, since nothing is rolled back, and names `validate --root <root>`, or, when the base install is all it made and the records are still the 1.1.0 starter's, the rerun of the migration; a migrated workspace that fails admission names `validate --root <root>` too, saying neither effect ran; an effect that fails or is interrupted leaves every earlier result in place, says so, and names its own command, `capture --root <root>` or `host <host> --root <root> --apply`. With `--json` the plan holds `migrate` (`1.1.0`), `id`, `name`, `system`, `base` (`{id, installed, bundled}`, each `{version, archive}`), `conflicts` (`{path, reason}`, with `host` and `code` for a projection), `steps` (`install` first only when the base is replaced), `moves` (`{from, to, identities}`), `writes`, `records`, `systems`, `removes` (`{path, identities}` in delete order, a folder as `<path>/` with no identities), `ignore`, `descriptor` (`{path, before, after, dependencies: {before, after}}`) and `hosts` (`{host, guard, files}`), and `applied` is `{status: 'migrated', id, base: 'installed' | 'present', distribution, authored, moved, removed, ignore, effects: {capture, project: [{host, files, receipt, guard, removed}]}}`, `removed` being the plan's `removes` paths. |
|
|
27
|
+
| `init [directory]` | Preview a workspace, or create it with `--apply`; `--host none` omits host registration and `--id <provider/name>` sets the package id (default `local/<directory name>`). `--from <plugin-directory>` lowers a Claude, Codex or Grok plugin into the new workspace as a kit, in place of `--system` (see [Host plugins](#host-plugins)). `--decline today` or `--decline forever` records that a repository should not be initialized, and `--forget-decline` removes that record. The target is positional, so `--root` is refused. The default starter (2026-10-09) is three records at placement authored (band 100) in `.ia/src/workspace.ia`, each with only the fields its schema declares: `@workspace <name>` (`composition.systems` naming every system the bundled base installs, `composition.sources [".ia/src @authored"]`, `composition.steward @agent <name>`), its participant `@agent <name>` ("The IDE agent operating in the <name> workspace, any vendor.", `governance.applies []`) and `@mandate <name>-mandate` (`governance.requires "Claim no host permission or execution from this mandate."`, `authority.participant @agent <name>`, `authority.moves [Observation, Verification, Synthesis, Delegation, Execution]`, `authority.scope [@workspace <name>]`). The record names are the workspace's; the package id's provider never prefixes them. With `--from` the starter is these three records plus the lowered kit: its `@system` and steward, its records, its resources and its assets, so it is no longer three records alone (see [Host plugins](#host-plugins)). `.ia/.gitignore` holding `work/` and `distributions/` is written only where none exists; an existing one is left as it is and reported, never a conflict. No local `@system` and no `@distribution` are written, so the release descriptor names no `distribution`. `--system`, for a repository that will own vocabulary, also writes `.ia/src/systems/<name>/system.ia` (the 1.x `@system <name>`, requiring `agent-system`, `work-system` and `workspace-system`, and its `@agent <name>-steward`) and `.ia/src/systems/<name>/records/distribution.ia` (`@distribution <name>-distribution` with `distribution.records [@system <name>]`), and the descriptor names that distribution, read from the compiled graph, so `pack` releases the system folder; its `@workspace` composes the local system after the base's (2026-10-09), so `composition.systems` ends with `@system <name>` and the position packet renders a pointer line for it. The apply runs install, author (create-only: a starter file already present with the same bytes is skipped), admission (zero error findings, and each starter record compiled at its path), descriptor (the completion point), then two effects reported apart: capture, the `capture` verb's own write of `.ia/work/snapshot/current.json` through the database, and, only with `--host`, project, the `host <host> --apply` path, whose projection `applyHostProjection` writes. An interruption before the descriptor names the rerun of `init`, which skips completed steps. Past the descriptor an effect that fails or is interrupted leaves every earlier result in place and says so, opening its next action with the sentence saying the workspace is initialized: a capture that fails is refused as `capture` refuses it, with its code, location and repair, then `capture --root <root>`, and without `--host` an interruption there names `capture --root <root>`. With `--host` the project effect runs after a capture that failed too, because the packet reads the live revision rather than the capture, and that capture refusal then says the projection is written; an interruption before the capture, or a host step that refuses, names `host <host> --root <root> --apply` (or `ia host`'s own remedy, rooted), saying whether the capture was taken. With `--json` the plan lists the steps `install`, `author`, `admission`, `descriptor`, `capture` and, with `--host`, `project`, and the starter's `system`, `paths`, `records` (each as `@<word> <name>`) and `ignore` (`{path, status}`, `create` or `present`); `applied` adds `distribution` (null without `--system`), `authored` (the starter records' identities in file order: three, six with `--system`, or three plus the lowered kit's with `--from`), `ignore` (`written` or `present`) and `effects`, `{capture: {revision, records}, project: {host, files, receipt} | 'skipped'}`, where `files` are the receipt's files with their SHA-256 and `receipt` is its path. The human report says the same: the records authored, the ignore file, the capture's records and revision, and the projected files and receipt or that project was skipped. `--migrate` (2026-10-09) rewrites a workspace a 1.1.0 `init` wrote (1.0 and 1.1 write the same starter) into this starter, keeping its descriptor's id. It takes `--system`, `--apply`, `--json` and `--yes`; `--id`, `--host` and the decline options with it are usage (exit 2). A 1.1.0 starter is one folder in `.ia/src/systems/`, its local system `<name>`, holding only `system.ia`, with exactly `@system <name>`, which registers no word, and `@agent <name>-steward`, and `records/*.ia`, of which `records/workspace.ia` holds exactly `@workspace <name>` and `@distribution <name>-distribution`, the distribution `.ia/release.json` names. The three records use fields only the base this CLI bundles declares (`composition.sources`, `composition.steward` and the `@mandate`'s `authority`), so a workspace whose installed `inventarch/language` is another archive has it replaced, which needs a lock holding that one base alone. Plan and apply run one preflight before anything is written: any other shape, a nested folder or another file or record included, and a base to replace in a lock that holds anything else, is refused as `IA-CLI-CONFLICT` (exit 3) naming `init --help`; a workspace that does not admit is refused as `IA-CLI-CONFLICT` naming `validate --root <root>`; with a host's projection state present, a pending host journal is refused with the journal's code, located at it, naming its recovery, `ia recover host`, `guard` or `lifecycle` with `--root <root>`, then the rerun; and each destination that already exists (`.ia/src/workspace.ia`, or `.ia/src/<file>.ia` for a moved file), each record the workspace keeps that holds the word and name of a starter record the migration authors anew (`@agent <name>` or `@mandate <name>-mandate`, which would tie with it), located at that record's file, and each host whose projection state exists and whose guard retirement or file plan the planners refuse, such as a file without a marker at a target path, is a conflict, as are edited starter or distribution text and a kept record that refers to a local identity the migration deletes (see [Migration recovery and portability](#migration-recovery-and-portability)). The plan lists the conflicts, the base install, every move, write and delete, the empty folders included, and each registered host's guard retirement and file actions, planned for the migrated records: every rendered file carries the workspace revision, which the migration changes, so none is `unchanged`. It is exit 0. `--apply` refuses a plan with conflicts and writes nothing: a destination or record collision as `IA-CLI-CONFLICT` naming `init <directory> --migrate`, whose plan lists each one; a projection conflict alone keeps the planner's code, located at its file, and names `host <host> --root <root>`, whose plan names each file it refuses. The apply first installs the bundled base where the plan says so, offline and as `init` installs it, while the records are still the 1.1.0 starter's, which the installer admits against it before activating it; an interruption there names the rerun of the migration, which installs the base again only if the bundled one is still not installed. It then moves every other `records/<file>.ia` byte for byte to `.ia/src/<file>.ia`, where its records keep their identities, since a record's word and not its folder decides its system; writes `.ia/src/workspace.ia` with the three starter records, keeping the 1.x `@workspace`'s name and `composition.systems` without the local system and adding `composition.sources` and `composition.steward`, and `.ia/.gitignore` where none exists, as [Migration recovery and portability](#migration-recovery-and-portability) qualifies; deletes `records/workspace.ia`, `system.ia` and the three folders they leave empty; and rewrites the descriptor without `distribution` and with the bundled base's dependency row, as `init` writes it, in place of the installed base's, keeping every other row. With `--system` it keeps `system.ia` as it is, writes `records/distribution.ia` as `init --system` does, rooted at `[@system <name>]`, composes the local system and keeps the descriptor's distribution, so `pack` still releases the folder; the descriptor is left byte for byte, whatever its formatting, when its base row is already the bundled base's. Admission then reads the starter identities and each moved file's, and the two effects follow: the capture, and for each host whose projection state exists its projection through `applyHostProjection`, which retires the 1.x steward guard and deletes the owned steward agent files. A file step that fails or is interrupted says that the migration is recorded in `.ia/migration.json` and that nothing was rolled back, and names the rerun of the migration, which resumes from the journal; a migrated workspace that fails admission names `validate --root <root>`, saying neither effect ran; an effect that fails or is interrupted leaves every earlier result in place, says so, and names the rerun of the migration, with host transaction recovery first when one is pending. With `--json` the plan holds `migrate` (`1.1.0`), `id`, `name`, `system`, `base` (`{id, installed, bundled}`, each `{version, archive}`), `conflicts` (`{path, reason}`, with `host` and `code` for a projection), `steps` (`install` first only when the base is replaced), `moves` (`{from, to, identities}`), `writes`, `records`, `systems`, `removes` (`{path, identities}` in delete order, a folder as `<path>/` with no identities), `ignore`, `descriptor` (`{path, before, after, dependencies: {before, after}}`) and `hosts` (`{host, guard, files}`), and `applied` is `{status: 'migrated', id, base: 'installed' | 'present', distribution, authored, moved, removed, ignore, effects: {capture, project: [{host, files, receipt, guard, removed}]}}`, `removed` being the plan's `removes` paths. |
|
|
28
28
|
| `validate [path...]` | Check the selected workspace records against language and declared contracts; report attributable diagnostics. A `composition.sources` entry that names no root, and a path selection that selects nothing, are each reported as an `IA-COMP-FIELD-VALUE` warning at the line that states it; admission does not change. These are the findings `ia-distribution validate` reports, from the same validation service. `--severity` sets the lowest severity reported and `--max-findings` the number rendered (default 50). Execution bindings and checks are reported as below; a revoked binding or check exits 1 without being a finding. |
|
|
29
29
|
| `preview <word> [<name> [<field>=<value>...]]` | Show what one edit of the workspace's own records would compile to, and write nothing (2026-10-11; mode validate, move Verification). `ia preview <word> <name> [<field>=<value>...] [--at <path>]` drafts a new record (language `draftSource`, every value first judged by the strict `encodeValue`) and appends it to `--at` or `<first authored root>/<word>.ia`, the first root the repository's `@workspace` declares at authored placement inside `.ia/src`; `ia preview system <name>` is init's starter system at `.ia/src/systems/<name>/system.ia` and takes no field or `--at`; `--relate <owned> <spelling> <target>` adds one row to the record's `relationships` section; `--set <owned> <section.key>=<value>` sets one field, and `+=` adds one item to a list field, creating it when absent. A field is `<section>.<key>`, or a key one field of the schema alone has, and one given twice in either spelling is refused; the shell's split of a value is joined again with single spaces. Owned is a record at authored placement (band 100) whose file lies under an authored root of the repository's `@workspace`, inside `.ia/src` and outside the floor, named by canonical identity or `@word name`; `--at` is relative to the root and must lie under such a root, and is judged as the volume spells it: an existing part of it spelled otherwise (a case variant, an 8.3 short name) refuses, naming the volume's spelling, before the mandate profile or the ownership check reads it. The edit is language's (`appendRecord`, `addRelationship`, `setField`), spliced into the file as it is: other lines keep their bytes and line endings, a byte-order mark stays, and only the edited record is formatted. It compiles through db's draft overlay against one editor snapshot of the workspace and prints the record before and after, the base and candidate revisions, every record of the file with its digest before and after, the file's current sha256 (an absent file reads as empty), and the findings that count against the candidate: the edited or new record's own, and any the base does not hold, matched in the target file by code and record and elsewhere by code, path, line and message, so an error already in another record does not. The editor snapshot admits checks structurally, as `validate` admits them, and lists no evidence (2026-10-11; `AUTHORING` in `src/session.ts`): a `@check` naming one evaluator that is not built in is an owned record the edit forms can name and a new one drafts clean, a check naming none still counts against the candidate, and the base revision printed is the evidence-free one every strict reader reports. A record other than the target whose digest would change refuses the preview. `ia preview <word>` prints the word's lowering (kind, category, facets, primitive, move, artifact set), schema, default file and digest (for `system`, the per-system file), the consent rows that name it or that its own system's ledger can apply to it, and an example command. Exit 0 for a clean candidate and for word guidance, 1 for a candidate with errors. Refusals: a malformed form or an unknown relationship verb is usage (IA-CLI-USAGE, exit 2); an unknown word or field, a value of another type or carrying syntax, a field given twice, a duplicate row, item or record, a nested record, a system already in force (IA-CLI-EDIT-INVALID), no admitted record answering a name (IA-CLI-EDIT-MISSING), a record or path the workspace does not own (IA-CLI-EDIT-UNOWNED), a `@mandate` that binds the acting participant, before or after the edit (its participant is the actor, or it names none and its scope names the workspace or it claims paths), or whose authority the runtime cannot read, naming the governance position and saying a human or another participant makes that change (IA-CLI-EDIT-MANDATE; moves pool across the mandates that bind an actor), a row the two-sided consent rule refuses, naming the system whose ledger refuses it (IA-LANG-EDGE-UNCONSENTED), and the mandate profile's refusals (IA-RUNTIME-MANDATE-MOVE, -WORD, -ACTOR, and IA-RUNTIME-REQUEST-INVALID for a mandate authority the runtime cannot read) exit 1; another spelling of a path, an unsafe path (db's rule, and DEL, a C1 control, a line or paragraph separator or a bidirectional control, which the CLI refuses besides) or a link on the way (IA-DB-PATH-UNSAFE), an unreadable target (IA-DB-SOURCE-UNAVAILABLE), a target that changed while read (IA-DB-SOURCE-CHANGED), a path the draft overlay refuses (IA-DB-DRAFT-INVALID), and a workspace that does not open (as `ia validate` refuses it) exit 3. IA-CLI-EDIT-MANDATE retains its narrower preview rule. The writing command additionally reserves administrative words as described below; a preview is not authorization to write. A next command that would repeat a value holding shell syntax names the word's preview instead. |
|
|
30
30
|
| `author <word> <name> [<field>=<value>...] --digest <sha256>` | Write what the same `ia preview` form showed (2026-10-11; mode author, move Synthesis). Every preview form for a non-administrative record has an author form with the same arguments and `--digest <sha256>`, the target file's sha256 the preview printed (an absent file and an empty one read alike); the candidate is compiled again against one editor snapshot, opened as `preview` opens it (checks admitted structurally, no evidence listed), judged for the author mode, and written only when the file is still the one the digest names and the candidate is clean. The record written carries one attribution comment above it, `# authored-by @agent <participant> under @mandate <name> at <authored revision>`: the acting participant, the first governing mandate that binds it and grants Synthesis, and the workspace's authored revision (db `authoredRevision`) the candidate was compiled against; a second author replaces the comment rather than stacking one, and no capture membership records it. An existing file is read again through db's opened-handle reader just before the write and written by the distribution's `replace` (a temporary file and a rename, every component checked for links), keeping its permission bits; a new file by `createFile`, which refuses an entry that appeared since. `ia author` refuses administrative words as described below, including the system starter and its implicit agent. Every successful author names its next command (`ia validate`) judged by the profile that allowed it, as a refusal's next is: the governance position where the profile refuses that command, and a named actor carried as the participant it resolved. The output is the record written, the file's sha256 before and after, the authored revision and the revision of the workspace with what was written, the findings, and `ia validate` as the next command. Refusals are preview's for the same form, plus: a missing or malformed `--digest` (IA-CLI-USAGE, exit 2, naming the preview), judged after the profile and the candidate, so a mandate refusal comes first and the preview named is one the profile allows, else the governance position; a file that is not the one the digest names, or that changed, appeared or disappeared while authored (IA-CLI-EDIT-STALE, exit 1); a candidate with an error that counts against it (IA-CLI-EDIT-UNCLEAN, exit 1); a write the volume refuses (the distribution's IA-DIST code, or IA-CLI-FAILED for a raw volume error such as EPERM, exit 3, naming the repair and the preview). Each names the preview of the same form, and every refusal writes nothing. |
|
|
@@ -35,10 +35,10 @@ Owner migrations and grants are explicit source changes followed by `ia validate
|
|
|
35
35
|
| `read <locator>` | Print the body behind a locator (runtime SPEC, body reader): text and its digest, never a certification. A locator is a record's full `system/kind/facet/name` identity; that identity with `#<phase>/<Primitive>` for the text of the record's cells at that address (a playbook's step) or `#<REQ-ID>` for one requirement's text; or `<path>:<line>`, the last colon splitting the path from a positive line, for the innermost admitted record whose source span holds that line of a workspace source. A cell or requirement locator reads that text, never a document. Otherwise a record whose word carries a source locator, and which states it, reads the document it names: `work.source` on `@spec`, `@plan`, `@milestone`, `@task` and `@decision`, `reference.document` on `@authoring-guide` and `template.resource` on `@template`. The path is read relative to the tree holding the record's source: the workspace root for the workspace's own `.ia/src`, a package's or an installed store's directory, and for an adopted mount the directory `.ia/workspace.json` binds it to, whose documents its revision pin does not cover. It is read through the workspace file reader `capture` uses, which refuses a path through a link or junction, a missing, non-regular or hard-linked file, a name that is not portable and a file over 4 MiB. A source locator `<path>#<anchor>` on a markdown file (`.md` or `.markdown`, in any case) reads only the section from the ATX heading whose anchor is `<anchor>` to the next heading of the same or a higher level, headings in fenced code ignored. The anchor is GitHub's for a plain-text heading (a repeated heading takes `-1`, `-2` and so on in document order, and a leading byte order mark is not part of the first heading); underscore emphasis, entity and character references, inline HTML and reference links are not rendered first, so such a heading may have another anchor on GitHub, and setext headings and headings in list items or block quotes are not read. Any other record reads its own body: its `meaning.says` (a `@system`'s head `describes`; a `@schema`, which states neither, has an empty body). Sections, fields and relationships stay in `inspect`. The output names `record` or `document` with the document's path, the SHA-256 of the body's UTF-8 bytes and the line `body not certified by this read`, the identity, locator and path printed with each terminal control character as visible escape text, then prints the body as read, byte for byte, terminal control characters included: the body is the source's own text, which `--json` carries as JSON escapes it; with `--json` it is `{version: 1, locator, identity, kind, path, digest, body, certified: false}`, where `locator` is the locator as given, `kind` is `record` or `document`, `path` is present for a document only and `digest` is the full SHA-256. A read opens the workspace without the db cache and writes nothing. A malformed locator refuses with `IA-CLI-USAGE` (exit 2) before anything is read and names `ia read --help`. The other refusals carry the runtime's codes: a locator no admitted record answers is `IA-RUNTIME-READ-UNADMITTED` (exit 1). For an identity a source holds whose record admission refused it reads `in this workspace's sources, but admission refused it` and names `ia validate`; for one no source holds it reads `not in this workspace's sources` and names the read of the nearest admitted identity when one is near, as `ia inspect` names the inspection, else `ia inspect` for the overview; for a line it names what the file holds: a source whose records admission refused names `ia validate`, a source whose admitted records span other lines names `ia inspect --path <file>`, and a file with no record of the workspace's sources names the overview. A cell or requirement the record lacks is `IA-RUNTIME-READ-FRAGMENT` (exit 1), naming `ia inspect <identity>`; a document path that names no file or is outside the workspace or the record's tree, a URL, which a read never fetches, a file the reader refuses or cannot find, bytes that are not UTF-8, an anchor on a file that is not markdown and an anchor no heading has are `IA-RUNTIME-READ-UNREACHABLE` (exit 3), naming `ia inspect <identity>`, which locates the record whose locator needs the repair (and the file to restore, when there is one); and a record at runtime placement (band 0) is `IA-RUNTIME-READ-PLACEMENT` (exit 3) unless `--include-runtime` is given, naming the same read with that flag. The workspace session this release opens admits no source at runtime placement, so through `ia read` the flag changes nothing yet. The `<path>` of `<path>:<line>` is relative to the workspace root, as every source path the toolchain names is; an absolute path inside the root is read as the root-relative path it names, by the rule `position --seat` reads a location with (runtime `rootRelative`): an in-root name that only begins with `..`, such as `..cache`, is inside the root, and the root itself reads as `.`, the workspace root, which is a directory and no source; any other path names no admitted record. These refusals name the `ia inspect` and `ia validate` commands above, which locate the record or the finding, rather than `ia scope --seat <qname> --shape context`. |
|
|
36
36
|
| `position` | Print the position body for a scope key: the runtime's `position` through the whole-workspace scope (runtime SPEC R14 to R17), as the consumer verb beside the frozen `ia scope` route, never a machine route. The key is K = (seat, shape, phase, depth, budget, word), read from `--seat <id\|path>`, `--shape <H>`, `--phase <P>`, `--depth <d>`, `--budget <n>` and `--word <w>` only, so no request text reaches it: no flag is K0, the repository's `@workspace` at shape context, phase orient, depth 0 and budget 0, its pointers and tallies only; a key naming any part takes the runtime's defaults for the rest (context, the anchor phase of the shape's primitive, depth 1, budget 16). A `--seat` that spells a canonical `system/kind/facet/name` identity is that record; any other is a location, a workspace-relative path or an absolute one inside the root, read by the rule `read` reads a line locator's path with (the root itself is the workspace root), and `./` makes a path spelled as an identity a location. A depth or budget of digits is that number; the closed sets and caps are the runtime's. The output is the seat with the body's revision; the key used, the capture's freshness (`current`, `stale` or `no-capture`: a position needs no capture; `stale` names `ia capture`, with `--root` as given, as the command that captures this revision), the body's digest and its counts; the loaded records, the pointers and their tallies past 48, the rules and playbooks that apply by word (a field match, not a row) with their tallies, the playbook cells, the blocking rules reserved outside the budget, the mandates, the frontier tallies and the unknowns, each record with its word, owner system, band, hop, how it was first reached and its owner system's steward; and the two widening keys as commands with `--root` as given: `ia position` one hop deeper, every part spelled (absent at depth 2), and the re-seat template `ia position --seat <identity> …` at depth 1 and budget 16, for any pointer or applies-by-word entry. `--word` restricts what loads, the pointers, their tallies and the frontier to records of that word, and never the reserved rules, the applies-by-word section, its cells or the mandates (runtime SPEC R15 and R17), so a word hides no blocking rule. Every string of the human output, what a source authored included (a cell's text, a finding's message, identities and paths), is printed with each terminal control character (C0, DEL or C1) as visible escape text, never as the control, as `ia next` prints its report; colour adds only the renderer's own styling. With `--json` it is `{version: 1, ok: true, body, digest, hostNote}`, the Door's `position` result byte for byte. A position exits 0, opens the workspace without the db cache and writes nothing. The refusals carry the runtime's code, `IA-RUNTIME-REQUEST-INVALID`, and its message, and each names one command, with `--root` as given where that command takes one: a shape or phase outside its closed set, or a depth or budget outside its cap, is refused before the workspace is read, at exit 2, naming this call again with the closed set (`<context\|governance\|execution\|sequence\|learning>` or `<orient\|plan\|act\|learn>`) or the cap (2 or 64) in that part's place; a word the closure does not register (exit 1, the message listing those it does) names `ia vocabulary`, which opens no workspace and so takes no `--root`; and a seat the workspace does not admit, a path outside it and a seat at runtime placement (exit 1, located at the workspace with a seat identity as identity) name `ia position`, K0, except a runtime-placed seat that is the repository's own `@workspace`, which names `ia inspect`. |
|
|
37
37
|
| `next` | Print one plan's delivery view (runtime SPEC R18), computed per read and never stored. The plan is the one `--seat` names: a `@plan`, or the plan a `@milestone`'s `work.plan` names, or that of a `@task`'s `work.milestone`; without `--seat`, the only `@plan` the workspace authors (band 100). The view is the runtime's `deliveryView` through the whole-workspace scope (runtime SPEC R18): the plan, its revision and a summary of how many tasks have exit evidence and which is next; its milestones, each satisfied or not with the reason (its own exit evidence, or every task's) and its status as self-declared; its tasks in one prerequisites-first order (a task follows the tasks and milestones it and its milestone require, ties by milestone, then task), each with its verdict line, `exit evidence recorded (<observation>, evaluator <evaluator>[, self-attributed | , self-attribution unknown])`, `no declared blocker` or `blocked (<basis>; …)`, its `work.status` printed as self-declared and never a basis, one `requires` line per effective prerequisite with its basis, and its five state lines (intent, definition, realizable, realized, worked); the review items with their owner; and, when a task has no declared blocker, the command the view names for it, `ia position --seat <task> --shape sequence`, with `--root` as given. Exit evidence is a success `@observation` on the task whose `subject-revision` is its current digest; a task's own status is never evidence, so a plan whose tasks are `closed` with no observation prints each `status closed (self-declared)` and a task that requires one `blocked (task <t>: no exit evidence)`, which is the honest answer. A relation row that carries a condition, such as `requires @task guide when phase is act`, counts only where it holds at the coordinate the scope binds, decided as graph traversal decides it (runtime SPEC R18): the record that states the row decides its provenance and artifact-set terms, and a severity term only where its own severity decides it at every coordinate, while a term on an axis the scope binds no value for, the phase on the whole-workspace scope `ia next` reads and the severity on every scope, leaves the row conditional with an unknown basis, never met; a row whose condition fails is no row. The Door's `next` decides a phase term through a token bound to a phase. With `--json` it is `{version: 1, ok: true, view}`, `view` being the Door's `next` result byte for byte. A view exits 0, whatever its verdicts and review items. The workspace opens without the db cache and nothing is written. The refusals carry the runtime's codes and messages at exit 1, located at the workspace with the seat as identity, and each names one command with `--root` as given: IA-RUNTIME-NEXT-SEAT for a seat the workspace does not admit names `ia validate` for a record admission refused, else, as `ia inspect` names the nearest admitted identity, `ia next --seat <nearest>` for the nearest admitted `@plan`, `@milestone` or `@task` when one is near, else the view without a seat, and for a record that is no `@plan`, `@milestone` or `@task` names `ia position --seat <seat>`, as the runtime does; the view without a seat is `ia next` when the workspace authors one `@plan` at band 100, `ia next --seat <the first>` when it authors several, and with none what IA-RUNTIME-NEXT-NO-PLAN names without a seat; IA-RUNTIME-NEXT-NO-PLAN names `ia validate` when admission refused a `@plan` a source holds (without a seat, any `@plan`; with one, the `@milestone` a `@task` seat's `work.milestone` names, or the `@plan` that `work.plan` names on its milestone or on a `@milestone` seat), else, without a seat in a workspace that registers `@plan`, `ia preview plan` where the acting participant's profile allows Verification and `@plan` (else the governance position), else the records to author, then `ia next` again with the seat given; IA-RUNTIME-NEXT-AMBIGUOUS, the plans listed in the message, names `ia next --seat <the first>`; and IA-RUNTIME-NEXT-CYCLE, the require rows listed in the message and the refusal located at the first, names `ia position --seat <record> --shape sequence` at the record the runtime names, the cycle's first task by milestone then task, else the first milestone a row requires. `ia next --help`, which the runtime's IA-RUNTIME-NEXT-NO-PLAN names to Door and MCP callers, says under `--seat` which records make a plan. It is the Door's `next` operation as a consumer verb, never a machine route. |
|
|
38
|
-
| `project <claude\|codex>` | With `--product plugin`, render the host plugin a lowered workspace describes instead (see [Host plugins](#host-plugins)); without it, `--out`, `--check` and `--compare` are usage (`IA-CLI-USAGE`, exit 2), refused before anything is read and naming the `--product plugin --check` form. Otherwise, plan, or with `--apply` write, the workspace projection alone (2026-10-09; runtime SPEC R19 and R20): the position packet of the admitted records rendered by the host's adapter for the consumer target, the files the workspace projection below describes. It plans by default, as `host` does, and the plan writes nothing, the IA home included: the packet's entry count (runtime R19's `entryCount`, 37 on a fresh init) and digest, the file plan (`create`, `update`, `unchanged`, `remove` for an owned and marked 1.x steward file, `foreign` for any other `.claude/agents/*.md` file, left in place) and the steward-guard retirement (`guard: 'retire'`), planned by the same `projectionElement` as `host`'s projection element. `--apply` plans again (`replanProjection`, shared with `host --apply`) with the rendering its gated plan session made, writes it through `applyHostProjection`, and prints the receipt: its files with their SHA-256, the legacy files removed, the foreign files and the retirement. A file changed since the plan still refuses, but a source or mandate change made while the confirmation question waits is not picked up, and `ia doctor` then reports the projection outdated. It registers no MCP server and no hook, and needs no capture, because the packet reads the live revision. With `--json` it prints `{version: 1, command: 'project', root, host, apply, plan: {entries, packetDigest, files, guard, conflict}, applied?}`, `applied` being the receipt written; with a conflict `files` is empty and `guard` null, because the apply refuses it and so writes and retires nothing. A file without the generated marker at a path the adapter writes, an owned file or guard group changed by hand, or an ownership state that cannot be read makes a successful plan that names the file and its repair (`conflict: {code, path, reason}`), and `--apply` refuses it with that code, located at the file, before it asks anything or writes, naming the repair, then `ia project <host>`. A host other than `claude` or `codex` is `IA-CLI-USAGE` (exit 2) before anything is read, naming `ia project claude`, and a root without `.ia/release.json` is `IA-CLI-CONFLICT` naming `ia init` of the root as given. The `ia project`, `ia validate` and `ia init` commands a next action names carry the root as given; a pending host journal (`IA-DIST-RECOVERY-REQUIRED`, plan and apply) or a host lock held at apply (`IA-DIST-INSTALL-BUSY`) names its `ia
|
|
38
|
+
| `project <claude\|codex>` | With `--product plugin`, render the host plugin a lowered workspace describes instead (see [Host plugins](#host-plugins)); without it, `--out`, `--check` and `--compare` are usage (`IA-CLI-USAGE`, exit 2), refused before anything is read and naming the `--product plugin --check` form. Otherwise, plan, or with `--apply` write, the workspace projection alone (2026-10-09; runtime SPEC R19 and R20): the position packet of the admitted records rendered by the host's adapter for the consumer target, the files the workspace projection below describes. It plans by default, as `host` does, and the plan writes nothing, the IA home included: the packet's entry count (runtime R19's `entryCount`, 37 on a fresh init) and digest, the file plan (`create`, `update`, `unchanged`, `remove` for an owned and marked 1.x steward file, `foreign` for any other `.claude/agents/*.md` file, left in place) and the steward-guard retirement (`guard: 'retire'`), planned by the same `projectionElement` as `host`'s projection element. `--apply` plans again (`replanProjection`, shared with `host --apply`) with the rendering its gated plan session made, writes it through `applyHostProjection`, and prints the receipt: its files with their SHA-256, the legacy files removed, the foreign files and the retirement. A file changed since the plan still refuses, but a source or mandate change made while the confirmation question waits is not picked up, and `ia doctor` then reports the projection outdated. It registers no MCP server and creates no hook registration; once `host --apply` has registered the workspace's hooks, it keeps those groups in step with the authored `@hook` records, and without a registration it lists every `@hook` as not taken. It needs no capture, because the packet reads the live revision. With `--json` it prints `{version: 1, command: 'project', root, host, apply, plan: {entries, packetDigest, files, guard, hooks, unsupported, conflict}, applied?}`, `applied` being the receipt written; with a conflict `files` is empty and `guard` null, because the apply refuses it and so writes and retires nothing. A file without the generated marker at a path the adapter writes, an owned file or guard group changed by hand, or an ownership state that cannot be read makes a successful plan that names the file and its repair (`conflict: {code, path, reason}`), and `--apply` refuses it with that code, located at the file, before it asks anything or writes, naming the repair, then `ia project <host>`. A host other than `claude` or `codex` is `IA-CLI-USAGE` (exit 2) before anything is read, naming `ia project claude`, and a root without `.ia/release.json` is `IA-CLI-CONFLICT` naming `ia init` of the root as given. The `ia project`, `ia validate` and `ia init` commands a next action names carry the root as given; a pending host journal (`IA-DIST-RECOVERY-REQUIRED`, plan and apply) or a host lock held at apply (`IA-DIST-INSTALL-BUSY`) names its recovery, `ia recover host`, `guard` or `lifecycle` with `--root <root>`, using the resolved root, which recovery requires to be absolute, as `host` does, and a workspace whose sources cannot be opened names the resolved root, as every workspace verb does. |
|
|
39
39
|
| `vocabulary [word]` | Read the catalogue shipped with the package, including schemas (`--schema`) and worked examples (`--example`); `--domain`, `--kind` and `--search` filter it. No workspace is opened, so `--root` is refused. |
|
|
40
40
|
|
|
41
|
-
Workspace discovery uses the nearest ancestor containing `.ia/src`, with `--root` selecting an explicit root where supported. Native syntax is `#! ia 1.0`. Initialization writes the three starter records, an ignore file and the release descriptor, installs the pinned bundled language base, `inventarch/language`, at the
|
|
41
|
+
Workspace discovery uses the nearest ancestor containing `.ia/src`, with `--root` selecting an explicit root where supported. Native syntax is `#! ia 1.0`. Initialization writes the three starter records, an ignore file and the release descriptor, installs the pinned bundled language base, `inventarch/language`, at the native version its content selected within the npm major, supplying the eleven public systems while retaining IA syntax 1.0, and captures the workspace; `--system` adds a consumer-local system and its distribution, and `--migrate` rewrites a 1.1.0 starter into this shape. A new consumer distribution starts at its own 0.1.0 version, independently of the CLI version.
|
|
42
42
|
|
|
43
43
|
## Host plugins
|
|
44
44
|
|
|
@@ -79,7 +79,7 @@ The generated set (2026-10-11): `renderProjectionFor` holds the packet and works
|
|
|
79
79
|
|
|
80
80
|
## Automation and limits
|
|
81
81
|
|
|
82
|
-
`--help` and per-command help describe the accepted argument grammar. Consumer `--json` output is a single structured value without interactive prompts; applying without a terminal or with `--json` requires `--yes`. `--no-color` (or `NO_COLOR`), `--color`, `--ascii` and `--quiet` adjust human-readable output. Validation errors exit 1 (warnings alone exit 0), usage failures exit 2, unavailable inputs and local operational refusals exit 3, and interruption exits 130. Automation should inspect the structured diagnostic code and exit value together.
|
|
82
|
+
`--help` and per-command help describe the accepted argument grammar. Consumer `--json` output is a single structured value without interactive prompts; applying without a terminal or with `--json` requires `--yes`. `--no-color` (or `NO_COLOR`), `--color`, `--ascii` and `--quiet` adjust human-readable output. Validation errors exit 1 (warnings alone exit 0), usage failures exit 2, unavailable inputs and local operational refusals exit 3, a remote registry or archive that `install`, `update` or `restore` cannot reach or read exits 4 (`IA-DIST-ARTIFACT-UNAVAILABLE`, or a remote `IA-DIST-LIMIT-EXCEEDED`), and interruption exits 130. Automation should inspect the structured diagnostic code and exit value together.
|
|
83
83
|
|
|
84
84
|
Every consumer refusal names one next command. With `--json` a refusal is `{version: 1, ok: false, code, message, exit, where, next}` and `next` is always a non-empty string; human output prints the same text on the `→` line, where the command it quotes is never broken across lines and runs past the line width when it must. The text quotes exactly one command and spells no other command or option outside it. That command is `ia …`, except that a recovery or a directory registry repair names `ia-distribution …`, the binary of `@inventarch/distribution`; a global install of `@inventarch/cli` does not put that binary on `PATH`, so such a command runs only where `@inventarch/distribution` is installed as well. The command carries the values this invocation supplied that it needs, such as the root (`ia init`'s `<directory>` included), the host, the package ids, the registry or catalog source, the descriptor or `--force`, so it runs from the directory the refused command ran in. Except where an unknown or interrupted command keeps the invocation as typed (below), a command that reruns the refused one repeats no output flag such as `--json` or `--quiet`, and one that runs the refused `ia install` or `ia update` again names its plan, without `--apply`: the plan applies nothing, although acquiring may fill the archive cache and `--plan-out` writes the plan file. A rerun of `ia restore`, which has no preview, carries `--apply --yes`; the rerun after deleting a cached archive drops `--offline`, so the archive is fetched again. A placeholder such as `<directory>`, `<path>`, `<file>` or `<url|dir>` stands only for the value the user has to correct or supply. A manual step the CLI cannot take, such as deleting or moving a named file, replacing a link under `.ia/src`, mapping a provider in `.ia/registries.json` or setting `IA_HOME`, may come first, and an explanation may follow. An unknown command names the nearest one with the rest of the invocation as typed, keeping only `--root` and `--params` for a machine operation. A workspace whose sources cannot be read (a link or alias under `.ia/src`, a source that changed during the read) names that repair and then `ia validate` with that root, which confirms the workspace opens. A service refusal that carries no next action of its own names the refused command's `--help` for a usage error, `ia validate` for a record finding (`IA-COMP-*`, `IA-GRAPH-*`, `IA-LANG-*`) and `ia doctor` for any other code, each with the root the invocation gave: its `--root`, or `ia init`'s `<directory>`. An interrupted command (`IA-CLI-INTERRUPTED`, exit 130) carries `next` in its JSON object and on its one stderr line: the rerun that finishes work already written, or otherwise the same invocation as typed, with any `--apply`, `--yes` and `--json` it was given. A file the invocation named that is not there (a `--descriptor`, `--catalog` or `--requests` file) names the same command with that one value as `<file>`. The machine protocol below is unchanged; its failures are the door's own one-line JSON and carry no `next`, so "every refusal names one next command" holds for the consumer commands. `@inventarch/cli/internal/consumer` keeps its 1.x forms: the `Refusal` constructor's `where` and `next` default to null, `refusalOf(error)` without the refused invocation returns a null `next` as before, and `renderRefusal` gives a refusal without a next action the fallback above, so `--json` `next` is always a string; every construction site in this CLI names its next action, which its tests enforce. `PlanRequest.reruns` in `@inventarch/cli/internal/distribute` is optional, and without it a plan's remedies are spelled from the request.
|
|
85
85
|
|
|
@@ -102,12 +102,13 @@ A path selection is the text a record states to claim locations: `covers` on a `
|
|
|
102
102
|
|
|
103
103
|
Package tests cover parsing, JSON output, initialization and recovery, workspace inspection and formatting, distribution planning/application, host registration, installation and recovery, and the program lookup above. Repository qualification separately exercises built and installed artifacts. External registry publication and each host's own runtime behavior require separate evidence.
|
|
104
104
|
|
|
105
|
+
## Projection upgrade repair
|
|
105
106
|
|
|
106
|
-
|
|
107
|
+
Both Claude settings locations are checked for an unmatched IA guard before steward files change. An unowned guard refuses at its settings file and names removal of only that group. Receipt and pending-evidence path kinds, ancestors and writability are checked before retirement. A digest-validated `<host>-receipt-pending.json` preserves retirement intent and accepted removal hashes across interrupted applies; a successful receipt consumes that evidence, and a final receipt digest recognizes publication completed before pending cleanup. A subsequent ordinary successful apply retains last-apply semantics. Doctor reports observed changed files even without a receipt. Pending host journals name their recovery before any file remedy; raw filesystem permissions and locks name writability/lock repair, never deletion of settings. Install/update/remove previews include `projectionFiles` rows for removed and foreign legacy files in JSON and text.
|
|
107
108
|
|
|
108
|
-
##
|
|
109
|
+
## Migration recovery and portability
|
|
109
110
|
|
|
110
|
-
|
|
111
|
+
This section completes the `init --migrate` row of the command table. `init --migrate` refuses edited legacy workspace or distribution text before writing: stock text with a changed `composition.systems` list is supported, but authored prose, answers, comments, relationships and distribution customization require an explicit authored migration. Plan lists the exact conflicting file; apply leaves its bytes intact. Kept records whose fields or relationships reference the local system, steward or distribution that plain migration would delete are conflicts naming both identities and the source file; `--system` retains those identities. Stock deletion without `--system` remains intentional.
|
|
111
112
|
|
|
112
113
|
Before any migration mutation, `migration-journal.ts` writes `.ia/migration.json`, an operation record bound to the absolute root, `--system` choice and exact bundled base. It holds the original plan, exact before/after file bytes and SHA-256 digests, directory removals and a durable cursor. Plan and resume verify the journal schema and digest, all completed states and pending preconditions before writes; only the cursor operation may already match its after state, covering termination between mutation and cursor publication. Edited destinations, corrupt journal data, changed flags, links and mismatched base refuse. Every file operation rechecks these states. The journal records initial host receipt digests and exact planned removal digests. A migrated receipt is recovered only when its render fields, current file digests, removed files and guard outcome match the plan; completed receipt digests prevent a later edit from being adopted, and successful receipts are preserved on resume. The journal survives descriptor, admission, capture and projection; file/effect interruption names the same migration apply command, with host transaction recovery first when required. A successful migration clears the journal only after all effects complete. Admission errors still require repairing the findings before the migration can finish. No rollback or adoption of matching files without the operation journal is implied.
|
|
113
114
|
|
|
Binary file
|
package/assets/base.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "inventarch/language",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"archive": "
|
|
5
|
-
"manifest": "
|
|
3
|
+
"version": "3.1.2",
|
|
4
|
+
"archive": "62ecd5092f364b40e335e9e509ef512ac8030eb5689e72a5d0ff1e073cb13cfb",
|
|
5
|
+
"manifest": "3692c75c7b51852351560fa09dc831eb5854e33e2fb6e37cdf0b6bfc8bdb02f2"
|
|
6
6
|
}
|
|
Binary file
|
package/assets/host.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"release": "
|
|
3
|
-
"archive": "
|
|
2
|
+
"release": "eeee0fe0a20dac8589166b9001d9c656d01139828f0aa3907b11bcd6d2f8d2a8",
|
|
3
|
+
"archive": "ed8afd3c7350bb1d131c5b0324979b83698718f57fdce4ebc5dbf56e43998506",
|
|
4
4
|
"files": 1600,
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 9504963
|
|
6
6
|
}
|
package/assets/vocabulary.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 1,
|
|
3
3
|
"language": "ia 1.0",
|
|
4
4
|
"status": "public IA 1.0 language contract",
|
|
5
|
-
"sourceDigest": "
|
|
5
|
+
"sourceDigest": "c1ca45affdfc693efa6c81991722055ab5db711234d70d3aee151b9d97531d69",
|
|
6
6
|
"words": [
|
|
7
7
|
{
|
|
8
8
|
"word": "agent",
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
"distribution"
|
|
1309
1309
|
],
|
|
1310
1310
|
"identity": "workspace-system/definition/<facet>/<name>",
|
|
1311
|
-
"description": "Declares root records from which a distributable closure is selected.",
|
|
1311
|
+
"description": "Declares root records from which a distributable closure is selected, and optionally the host plugin product it describes.",
|
|
1312
1312
|
"schema": {
|
|
1313
1313
|
"name": "distribution",
|
|
1314
1314
|
"path": ".ia/src/systems/workspace-system/schemas/distribution.schema.ia",
|
|
@@ -2449,11 +2449,11 @@
|
|
|
2449
2449
|
"edges": []
|
|
2450
2450
|
},
|
|
2451
2451
|
"kernelMembers": [
|
|
2452
|
-
"
|
|
2453
|
-
"
|
|
2454
|
-
"
|
|
2455
|
-
"
|
|
2456
|
-
"
|
|
2452
|
+
"Delegation",
|
|
2453
|
+
"Execution",
|
|
2454
|
+
"Observation",
|
|
2455
|
+
"Synthesis",
|
|
2456
|
+
"Verification"
|
|
2457
2457
|
],
|
|
2458
2458
|
"consumer": "language/schema admission; graph resolution; explicitly selected domain consumer for stronger semantics"
|
|
2459
2459
|
},
|
|
@@ -3033,7 +3033,7 @@
|
|
|
3033
3033
|
"predicate"
|
|
3034
3034
|
],
|
|
3035
3035
|
"identity": "taxonomy/definition/<facet>/<name>",
|
|
3036
|
-
"description": "Defines a directed relationship and its
|
|
3036
|
+
"description": "Defines a directed relationship, its inverse spelling and its present phrase.",
|
|
3037
3037
|
"schema": {
|
|
3038
3038
|
"name": "kernel-predicate",
|
|
3039
3039
|
"path": ".ia/src/floor/kernel.schema.ia",
|
|
@@ -3151,12 +3151,12 @@
|
|
|
3151
3151
|
"edges": []
|
|
3152
3152
|
},
|
|
3153
3153
|
"kernelMembers": [
|
|
3154
|
-
"
|
|
3155
|
-
"
|
|
3156
|
-
"
|
|
3157
|
-
"
|
|
3158
|
-
"
|
|
3159
|
-
"
|
|
3154
|
+
"Attention",
|
|
3155
|
+
"Decision",
|
|
3156
|
+
"Escalation",
|
|
3157
|
+
"Inference",
|
|
3158
|
+
"Learning",
|
|
3159
|
+
"Memory"
|
|
3160
3160
|
],
|
|
3161
3161
|
"consumer": "language/schema admission; graph resolution; explicitly selected domain consumer for stronger semantics"
|
|
3162
3162
|
},
|
package/dist/args.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface OptionSpec {
|
|
|
29
29
|
readonly conflicts?: readonly string[];
|
|
30
30
|
/** §2.2: `--schema` and `--example` are meaningless without the word they describe. */
|
|
31
31
|
readonly needsPositional?: boolean;
|
|
32
|
-
/**
|
|
32
|
+
/** `--requests` carries the set the positionals would have carried. */
|
|
33
33
|
readonly excludesPositionals?: boolean;
|
|
34
34
|
/** §2.1 rejects the common `--root` for `ia init`; the reason is stated rather than spelled as "unknown". */
|
|
35
35
|
readonly refuse?: string;
|
package/dist/args.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,qBAAa,UAAW,SAAQ,KAAK;IACnC,QAAQ,CAAC,IAAI,kBAAkB;gBACnB,OAAO,EAAE,MAAM;CAI5B;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;IACnC,2FAA2F;IAC3F,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,iFAAiF;IACjF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,uFAAuF;IACvF,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC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AAC,GAAG,EAAE,MAAM,CAAC;CACtB;AACD,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;CACtC;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,+CAA+C;IAC/C,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACzC,uDAAuD;IACvD,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACrD,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,MAAM,EAAE,CAAC;IACnD,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;CAC9D;AAGD,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,cAAsC,CAAC;AAC5G,eAAO,MAAM,IAAI,gBAAiB,CAAC;AAInC,gGAAgG;AAChG,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,CA+FnF"}
|
package/dist/briefing.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* docs/specs/host-plugin-distribution/README.md §8.2: what the session hook tells the model and the user.
|
|
3
3
|
* A pure function of facts `ia doctor` already gathered, so every row of §8.2 is a unit test. At most one notice:
|
|
4
4
|
* version skew, then an interrupted installation or a stale or missing host, then a decline reminder, then an update.
|
|
5
|
-
* Dates are the user's local calendar date, as the `declined-today` expiry is (§
|
|
5
|
+
* Dates are the user's local calendar date, as the `declined-today` expiry is (§7.2).
|
|
6
6
|
*
|
|
7
|
-
* `nextActions` is §7.3's `[{intent, argv, host}]`: `host` is the adapter row's own invocation where
|
|
7
|
+
* `nextActions` is §7.3's `[{intent, argv, host}]`: `host` is the adapter row's own invocation where the row
|
|
8
8
|
* declares one (Claude's `/ia:init`), otherwise the plain command. The Claude plugin is a Claude concern, so its version
|
|
9
9
|
* skew is reported only to a host whose row installs a plugin; a host with no workspace set (§4, Cursor) is never told
|
|
10
10
|
* its registration is missing, because `ia host` would refuse to write one. When doctor could not observe the host set
|
|
@@ -29,7 +29,7 @@ export interface NextAction {
|
|
|
29
29
|
readonly host: string;
|
|
30
30
|
}
|
|
31
31
|
export interface Session {
|
|
32
|
-
/** Lines for the model (§8.
|
|
32
|
+
/** Lines for the model (§8.2: the hook's `additionalContext`). */
|
|
33
33
|
readonly context: readonly string[];
|
|
34
34
|
/** The one line the user sees, or null in the §8.2 states where the user sees nothing. */
|
|
35
35
|
readonly notice: string | null;
|
|
@@ -63,6 +63,11 @@ export interface BriefInput {
|
|
|
63
63
|
readonly hostDetail: string | null;
|
|
64
64
|
/** The pending row's remedy when an interrupted installation needs recovery, else null. */
|
|
65
65
|
readonly recovery: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* True when a registered hook group was deleted, changed or duplicated by hand: an apply refuses to put it back on
|
|
68
|
+
* its own, so the briefing names `ia host <host> --remove --apply` first, as doctor's row does.
|
|
69
|
+
*/
|
|
70
|
+
readonly removeFirst?: boolean;
|
|
66
71
|
readonly updates: {
|
|
67
72
|
readonly latest: string | null;
|
|
68
73
|
readonly behind: number | null;
|
package/dist/briefing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"briefing.d.ts","sourceRoot":"","sources":["../src/briefing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CA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AAI,IAAI,MAAM,KAAG,MAAkD,CAAC;AAE1F,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,CAmHnH"}
|
package/dist/briefing.js
CHANGED
|
@@ -24,7 +24,7 @@ export function brief(input) {
|
|
|
24
24
|
if (notice === null)
|
|
25
25
|
notice = text;
|
|
26
26
|
};
|
|
27
|
-
// §8.2
|
|
27
|
+
// §8.2: the plugin the user runs was rendered by another ia; re-rendering it is the whole remedy.
|
|
28
28
|
if (hostRow(input.host)?.user === 'plugin' && input.plugin !== null && input.plugin.cli !== input.version) {
|
|
29
29
|
const user = ['ia', 'host', input.host, '--user', '--apply'];
|
|
30
30
|
first(`IA: the plugin was installed by ia ${input.plugin.cli} but ia is ${input.version}; run ${command(user)}`);
|
|
@@ -49,7 +49,7 @@ export function brief(input) {
|
|
|
49
49
|
context.push('The user declined initialization here today. Do not offer it again.');
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
|
-
// §8.
|
|
52
|
+
// §8.2: an instruction to the model, not a mechanical guarantee.
|
|
53
53
|
const init = action('init', ['ia', 'init', input.supplied ?? '.']);
|
|
54
54
|
context.push(`${rooted ? `${input.supplied} is` : 'This directory is'} not an InventArch workspace. Do not search the filesystem for other .ia trees or IA tooling. Offer initialization only if the user's request involves InventArch, .ia records or their governance; then use ${init.host === command(init.argv) ? `"${init.host}"` : init.host}.`);
|
|
55
55
|
actions.push(init);
|
|
@@ -75,6 +75,13 @@ export function brief(input) {
|
|
|
75
75
|
context.push(`Host ${label} has no workspace registration in this ia.`);
|
|
76
76
|
else if (input.hostStatus === 'registered')
|
|
77
77
|
context.push(`Host ${label}: registered.`);
|
|
78
|
+
else if (input.hostStatus === 'stale' && input.removeFirst === true) {
|
|
79
|
+
const remove = [...apply.slice(0, -1), '--remove', '--apply'];
|
|
80
|
+
const both = `${command(remove)}, then ${command(apply)}`;
|
|
81
|
+
first(`IA: a ${label} hook group for this workspace was changed or deleted by hand; run ${both}`);
|
|
82
|
+
context.push(`Host ${label}: stale${input.hostDetail === null ? '' : ` — ${input.hostDetail}`}. Run ${both}.`);
|
|
83
|
+
actions.push(action('host', remove), action('host', apply));
|
|
84
|
+
}
|
|
78
85
|
else {
|
|
79
86
|
if (input.hostStatus === 'stale') {
|
|
80
87
|
first(`IA: the ${label} host registration for this workspace is stale; run ${command(apply)}`);
|
|
@@ -87,7 +94,7 @@ export function brief(input) {
|
|
|
87
94
|
actions.push(action('host', apply));
|
|
88
95
|
}
|
|
89
96
|
}
|
|
90
|
-
// §8.2
|
|
97
|
+
// §8.2's update row and §11: only from the cache doctor already read; the hook, not doctor, limits it to once a day.
|
|
91
98
|
const updates = input.updates;
|
|
92
99
|
const newer = updates !== null && updates.latest !== null && updates.latest !== input.version;
|
|
93
100
|
if (updates !== null && (newer || (updates.behind ?? 0) > 0)) {
|
package/dist/briefing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"briefing.js","sourceRoot":"","sources":["../src/briefing.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnF,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"briefing.js","sourceRoot":"","sources":["../src/briefing.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnF,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;A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|
@@ -63,10 +63,12 @@ export declare function buildSnapshot(session: Session): Pick<CaptureView, 'snap
|
|
|
63
63
|
* tests/capture.test.ts holds this set to the codes packages/language/src/scanner and parser spell.
|
|
64
64
|
*/
|
|
65
65
|
export declare const SYNTAX_CODES: ReadonlySet<string>;
|
|
66
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* SPEC `capture`: the first error by which a floor or seed input fails to parse, or undefined when every one parsed.
|
|
68
|
+
*/
|
|
67
69
|
export declare const unparsedSeed: (diagnostics: readonly Finding[]) => Finding | undefined;
|
|
68
70
|
/**
|
|
69
|
-
* Admits the workspace at `root` and writes its snapshot pair through db D08a, unless
|
|
71
|
+
* Admits the workspace at `root` and writes its snapshot pair through db D08a, unless a SPEC `capture` refusal answers
|
|
70
72
|
* first. `given` is the `--root` the invocation typed, which the `ia validate` a refusal names carries. `gate`,
|
|
71
73
|
* when given, judges the admitting session before anything is read from it.
|
|
72
74
|
*/
|
package/dist/capture.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../src/capture.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAGzF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,KAAK,EAAE,YAAY,EAAS,MAAM,aAAa,CAAC;AAevD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C,KAAK,SAAS,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAClD,KAAK,OAAO,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7C,eAAO,MAAM,eAAe,kBAAiB,CAAC;AAC9C,eAAO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AAE,MAAM,GAAG,WAAW,CAAC;CACrC;AAKD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAO/C,CAAC;AACH;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAAG,WAAW,CAUnH;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAO,GAAG,OAAO,CAsBlG;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAoBnD"}
|
package/dist/capture.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* The effect is reported apart from validation. Its counts compare each record's digest with the prior capture's
|
|
16
16
|
* `current.json`, so a capture with no edit since the last one reports nothing changed. The admission findings are
|
|
17
17
|
* written into the snapshot and counted in the report, and an error makes the exit class 1. Two cases refuse before
|
|
18
|
-
* anything is written
|
|
18
|
+
* anything is written (SPEC `capture`), so both files stay as they were: a root with no `@workspace` of its own,
|
|
19
19
|
* and a floor or seed input (the floor, an installed or an adopted source) that fails to parse. Every other finding there
|
|
20
20
|
* (unresolved references, colliding identities, unconsented rows, a keyword two systems register) stays a finding, as it
|
|
21
21
|
* does in a source the workspace authors.
|
|
@@ -94,7 +94,9 @@ export const SYNTAX_CODES = new Set([
|
|
|
94
94
|
'IA-LANG-REF-MALFORMED',
|
|
95
95
|
'IA-LANG-FIELD-KEY-MISSING',
|
|
96
96
|
]);
|
|
97
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* SPEC `capture`: the first error by which a floor or seed input fails to parse, or undefined when every one parsed.
|
|
99
|
+
*/
|
|
98
100
|
export const unparsedSeed = (diagnostics) => diagnostics.find((finding) => finding.severity === 'error' &&
|
|
99
101
|
SYNTAX_CODES.has(finding.code) &&
|
|
100
102
|
SEEDED.some((prefix) => finding.path.startsWith(prefix)));
|
|
@@ -133,7 +135,7 @@ function captureRefusal(root, given, admitted) {
|
|
|
133
135
|
? `Restore the authored @workspace source under .ia/src from source control, then run "ia position --root ${quote(root)}" to inspect this initialized workspace.`
|
|
134
136
|
: `Run "ia init ${quote(root)}" to see what a new workspace there would contain.`);
|
|
135
137
|
}
|
|
136
|
-
/** Admits the workspace at `root` and builds the snapshot to write, unless
|
|
138
|
+
/** Admits the workspace at `root` and builds the snapshot to write, unless a SPEC `capture` refusal answers first. */
|
|
137
139
|
function capturable(root, given, gate) {
|
|
138
140
|
const admitted = admit(root, gate);
|
|
139
141
|
const refused = captureRefusal(root, given, admitted);
|
|
@@ -143,7 +145,7 @@ function capturable(root, given, gate) {
|
|
|
143
145
|
return built;
|
|
144
146
|
}
|
|
145
147
|
/**
|
|
146
|
-
* Admits the workspace at `root` and writes its snapshot pair through db D08a, unless
|
|
148
|
+
* Admits the workspace at `root` and writes its snapshot pair through db D08a, unless a SPEC `capture` refusal answers
|
|
147
149
|
* first. `given` is the `--root` the invocation typed, which the `ia validate` a refusal names carries. `gate`,
|
|
148
150
|
* when given, judges the admitting session before anything is read from it.
|
|
149
151
|
*/
|
package/dist/capture.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../src/capture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,YAAY,GACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,mC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O,EAAE,QAAQ,CAAC,CAC/B,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,cAAc,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;IACD,MAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACnC,OAAO,OAAO;QACZ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE;QAChF,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AAClE,CAAC"}
|
package/dist/channel.d.ts
CHANGED
|
@@ -14,7 +14,10 @@ export type Channel = {
|
|
|
14
14
|
};
|
|
15
15
|
export type Git = (cwd: string, args: readonly string[]) => string | null;
|
|
16
16
|
export declare const runGit: Git;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* §5's channels, in the order they are tested: under node_modules is npm; inside this repository's own work tree is a
|
|
19
|
+
* checkout.
|
|
20
|
+
*/
|
|
18
21
|
export declare function detectChannel(packageRoot: string, git?: Git): Channel;
|
|
19
22
|
/** §5's update instruction for the channel, as the hook and doctor print it. */
|
|
20
23
|
export declare function updateInstruction(channel: Channel): string;
|