@inventarch/workspace-runtime 2.0.0 → 3.1.0
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/README.md +3 -1
- package/SPEC.md +17 -1
- package/dist/bind.d.ts +87 -0
- package/dist/bind.d.ts.map +1 -0
- package/dist/bind.js +75 -0
- package/dist/bind.js.map +1 -0
- package/dist/corpus.js +3 -3
- package/dist/corpus.js.map +1 -1
- package/dist/generate/agent-profile.d.ts +10 -0
- package/dist/generate/agent-profile.d.ts.map +1 -0
- package/dist/generate/agent-profile.js +219 -0
- package/dist/generate/agent-profile.js.map +1 -0
- package/dist/generate/definitions.d.ts +26 -0
- package/dist/generate/definitions.d.ts.map +1 -0
- package/dist/generate/definitions.js +97 -0
- package/dist/generate/definitions.js.map +1 -0
- package/dist/generate/format.d.ts +74 -0
- package/dist/generate/format.d.ts.map +1 -0
- package/dist/generate/format.js +151 -0
- package/dist/generate/format.js.map +1 -0
- package/dist/generate/hook.d.ts +51 -0
- package/dist/generate/hook.d.ts.map +1 -0
- package/dist/generate/hook.js +122 -0
- package/dist/generate/hook.js.map +1 -0
- package/dist/generate/index.d.ts +9 -0
- package/dist/generate/index.d.ts.map +1 -0
- package/dist/generate/index.js +8 -0
- package/dist/generate/index.js.map +1 -0
- package/dist/generate/playbook.d.ts +10 -0
- package/dist/generate/playbook.d.ts.map +1 -0
- package/dist/generate/playbook.js +74 -0
- package/dist/generate/playbook.js.map +1 -0
- package/dist/generate/plugin.d.ts +20 -0
- package/dist/generate/plugin.d.ts.map +1 -0
- package/dist/generate/plugin.js +116 -0
- package/dist/generate/plugin.js.map +1 -0
- package/dist/host-plugin/compare.d.ts +15 -0
- package/dist/host-plugin/compare.d.ts.map +1 -0
- package/dist/host-plugin/compare.js +117 -0
- package/dist/host-plugin/compare.js.map +1 -0
- package/dist/host-plugin/errors.d.ts +8 -0
- package/dist/host-plugin/errors.d.ts.map +1 -0
- package/dist/host-plugin/errors.js +11 -0
- package/dist/host-plugin/errors.js.map +1 -0
- package/dist/host-plugin/frontmatter.d.ts +29 -0
- package/dist/host-plugin/frontmatter.d.ts.map +1 -0
- package/dist/host-plugin/frontmatter.js +114 -0
- package/dist/host-plugin/frontmatter.js.map +1 -0
- package/dist/host-plugin/index.d.ts +7 -0
- package/dist/host-plugin/index.d.ts.map +1 -0
- package/dist/host-plugin/index.js +7 -0
- package/dist/host-plugin/index.js.map +1 -0
- package/dist/host-plugin/inventory.d.ts +31 -0
- package/dist/host-plugin/inventory.d.ts.map +1 -0
- package/dist/host-plugin/inventory.js +120 -0
- package/dist/host-plugin/inventory.js.map +1 -0
- package/dist/host-plugin/json.d.ts +8 -0
- package/dist/host-plugin/json.d.ts.map +1 -0
- package/dist/host-plugin/json.js +18 -0
- package/dist/host-plugin/json.js.map +1 -0
- package/dist/host-plugin/lower.d.ts +47 -0
- package/dist/host-plugin/lower.d.ts.map +1 -0
- package/dist/host-plugin/lower.js +484 -0
- package/dist/host-plugin/lower.js.map +1 -0
- package/dist/host-plugin/manifest.d.ts +21 -0
- package/dist/host-plugin/manifest.d.ts.map +1 -0
- package/dist/host-plugin/manifest.js +40 -0
- package/dist/host-plugin/manifest.js.map +1 -0
- package/dist/installed-source-policy.js +2 -2
- package/dist/installed-source-policy.js.map +1 -1
- package/dist/projection-host.js +1 -1
- package/dist/record-fields.d.ts +12 -0
- package/dist/record-fields.d.ts.map +1 -0
- package/dist/record-fields.js +14 -0
- package/dist/record-fields.js.map +1 -0
- package/dist/resource-context.d.ts.map +1 -1
- package/dist/resource-context.js +4 -3
- package/dist/resource-context.js.map +1 -1
- package/dist/resource-sources.d.ts.map +1 -1
- package/dist/resource-sources.js +3 -0
- package/dist/resource-sources.js.map +1 -1
- package/package.json +25 -9
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The generic workspace runtime: workspace capture and adoption (`captureWorkspace`, `adoptWorkspace`, `verifyCapture`, `Corpus`), captured resources and native resource context, projections and prose catalogs, managed publication and candidate validation, captured template rendering, lifecycle rows, profiles and transport, the authoring index and manifest, the installed catalog digest and installed source policy, source policies, the local store adapter and installed adapter verification. [SPEC.md](SPEC.md) owns the boundary.
|
|
4
4
|
|
|
5
|
-
Consumers import the package root for capture, publication, candidate validation and the installed implementation digest, and the public subpaths (`/resources`, `/projections`, `/templates`, `/lifecycle`, `/lifecycle-profile`, `/authoring`, `/authoring-manifest`, `/sources`, `/local-store`, `/adapters`, `/corpus`, `/installed-catalog`, `/authoring-types`, `/authoring-format`, `/resource-format`, `/resource-sources`, `/task-capture-format`, `/candidate`, `/publication`) for the rest. `./internal/*` entries exist for every emitted module and are not a stable contract.
|
|
5
|
+
Consumers import the package root for capture, publication, candidate validation and the installed implementation digest, and the public subpaths (`/resources`, `/projections`, `/templates`, `/lifecycle`, `/lifecycle-profile`, `/authoring`, `/authoring-manifest`, `/sources`, `/local-store`, `/adapters`, `/corpus`, `/installed-catalog`, `/authoring-types`, `/authoring-format`, `/resource-format`, `/resource-sources`, `/task-capture-format`, `/candidate`, `/publication`) for the rest. `./internal/*` entries exist for every emitted top-level module and are not a stable contract. `./internal/generate` serves the host generators, which render host files and definitions from a workspace's authored records and report each authored record they do not render with the reason: `generateAgentProfiles` one claude agent file per authored `@agent-profile` (SPEC W01), `generatePlaybookSkills` one skill per authored `@playbook` for claude or codex (W02), `generateHookSet` the authored `@hook` declarations the `@mandate` edit guard can decide (W03), and `generateDefinitions` the authored `@operation` and `@harness` definitions (W04), and `renderPlugin` the host plugin a product `@distribution` describes (W05). `./internal/host-plugin` serves `ia init --from` and `ia project --product plugin`: it reads a host plugin, lowers it into records and compares a rendered plugin with the original (W06), and like every `./internal/*` entry it is not a stable contract.
|
|
6
6
|
|
|
7
7
|
This package never imports `@inventarch/agent-composition-system`. The composition compiler lives there and depends on this package.
|
|
8
|
+
|
|
9
|
+
Nothing applies these outputs yet: the CLI's single projection writer takes them up in milestone generation-binding task host-consumes-generated-set. An operation's handler and validator ids are catalog keys, never imported or executed here. A profile that names no mandate falls back to the authored mandates that bind its agent, as the edit guard judges it.
|
package/SPEC.md
CHANGED
|
@@ -2,10 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
## Boundary
|
|
4
4
|
|
|
5
|
-
`@inventarch/workspace-runtime` is the generic workspace runtime. It owns workspace capture and adoption, captured resources, projections, publication and candidates, templates, lifecycle, authoring index and manifest, installed catalog and source policy, sources, the local store and adapters. The composition compiler (catalog, compile, compiled, execution, fields, inputs, installed read, task capture, task context declaration, task teaching closure, draft tools) stays in `@inventarch/agent-composition-system`, which depends on this package. There is no reverse edge: no module here imports `@inventarch/agent-composition-system`, and `tests/boundary.test.ts` fails if one appears.
|
|
5
|
+
`@inventarch/workspace-runtime` is the generic workspace runtime. It owns workspace capture and adoption, captured resources, projections, publication and candidates, templates, lifecycle, authoring index and manifest, installed catalog and source policy, sources, the local store and adapters, and the host files and definitions generated from authored records (W01 to W04), the host plugin rendered from a product `@distribution` (W05) and the lowering of a host plugin into records (W06). The composition compiler (catalog, compile, compiled, execution, fields, inputs, installed read, task capture, task context declaration, task teaching closure, draft tools) stays in `@inventarch/agent-composition-system`, which depends on this package. There is no reverse edge: no module here imports `@inventarch/agent-composition-system`, and `tests/boundary.test.ts` fails if one appears.
|
|
6
6
|
|
|
7
7
|
`installedImplementationDigest` pins the installed bytes of this package and its fixed first-party dependencies. An upper package pins its own installed entrypoint by passing it as an additional entry; the entries are never record- or model-supplied paths. Each pinned package directory is walked within the steward hook implementation bounds (depth 16, 2,000 entries, 8 MiB per code file and 32 MiB per package); a larger tree or a nonregular code file is refused with `IA-CORPUS-DENIED`, never truncated, and `tests/installed-catalog.test.ts` exercises each bound. Each code file is opened once and read through the descriptor whose size was bounded; a file that grows while it is read, or an entry swapped for a link, socket or device after its directory was read, is refused with the same code.
|
|
8
8
|
|
|
9
|
+
## Host generation
|
|
10
|
+
|
|
11
|
+
W01. Agent files from authored agent profiles (2026-10-09, revised 2026-10-11; position-and-projection §4; milestone generation-binding task generation-agent-profile, plan amendments C1, C5, C6, C7 and C12, operator decision OD4, review findings A-R3, A-R6 to A-R9, A-RC2 to A-RC5 and N1 to N5): `src/generate/agent-profile.ts`, exported through `src/generate/index.ts` on the `./internal/generate` subpath only, publishes `generateAgentProfiles(reader, within, host)`, which returns a frozen `GeneratedSet`, `{files, unsupported}`: `files` the `GeneratedFile` rows `{path, text, identity, word: 'agent-profile'}`, `unsupported` the `UnsupportedRecord` rows `{identity, word, reason}` the projection receipt's `unsupported` section holds. Only `@agent-profile` records at band 100 that the scope token `within` admits are read, by identity; a profile below band 100, where an installed or adopted base places its records, renders nothing and is not reported, and no system steward renders, a steward being an `@agent` (design §4). For `codex` every authored profile is an unsupported row: a codex agent needs an entry in `.codex/config.toml`, which holds the owned MCP block (C12). For `claude` each profile renders `.claude/agents/<profile name>.md`, unless it is reported instead: its name is no portable host name (`safeName`: lower-case letters, digits and single hyphens, a letter first and no hyphen last, at most 64 characters, no Windows device name, `com0` and `lpt0` included); its capabilities allow no host tool (claude gives an agent with no tool list every tool, so only an unwritten file grants nothing); the composition compiler would refuse its capability closure (`closureRefusal`: an inclusion cycle, or an included capability with an effect its includer does not declare, the compiler holding each capability's own `execution.effects` as the ceiling of what it includes); or its text is not inert prose (projection-host's `inert`: no executable dynamic context, no active HTML, no unbalanced code span or fence), judged on each authored value before rendering, so the reason names what the record itself holds, and on the rendered file. One record's refusal never fails the others. Any other host is IA-PROJECTION-INPUT-INVALID, and for either host an unknown or stale token keeps its database code. A profile's capability closure is its `composition.capabilities` and every capability they include through `composition.includes`, each once (`capabilityClosure`). The file is YAML frontmatter: `name` the JSON-quoted profile name; `description` the JSON-quoted `meaning.says` of its `composition.agent` when the workspace authors that `@agent`, else the profile's own, so an installed or adopted base's text never decides when claude delegates; and `tools`, the claude names of the host tools the `execution.effects` of the profile's own `composition.capabilities` cover (each bounds what it includes, so the closure adds none) through `PROSE_EFFECT_TOOLS` (`read` covers Read, Grep and Glob; no other effect maps a tool), first-stated and each once, as one JSON-quoted comma-separated string. Then a blank line and runtime's `PACKET_MARKER` on its own line (C5), and a body read only from the records the profile's own fields reference, each resolved through the same token: the title, the profile's `meaning.says`, its identity and its agent's; `## Mandate`; `## Voice`, when `composition.voice` is set, its identity and each `communication.*` field; `## Tools`, one line per capability of the closure naming its operations, effects and host tools, after a line for each `composition.capabilities` reference no admitted capability answers; and `## Delegates`, one line per `composition.delegates` reference, never refused. `## Mandate` holds the profile's own `composition.mandate` as one list item, its identity, with `authority.participant`, `moves`, `scope`, `excluded-words`, `covers` and each `execution.limit-*` it states nested beneath it, as authored and never judged. A profile that names none falls back to C1: the authored mandates `governingMandates(reader, within, {actor})` returns for its `composition.agent` that bind it (`binds !== false`, so a mandate naming no participant is included, unless it states neither scope nor covers and so governs no path), each as such a group, after a line labelling them as the fallback and saying the guard refuses the agent where a mandate that binds another participant governs and none of these grants the move; the agent is the one a subagent acts as for the edit guard (OD4), so the file states what that guard enforces. Every rendered profile separately explains that CLI commands choose an authored workspace participant or steward and that omitting `--actor` uses the workspace's default actor, rather than selecting the profile's agent. When none binds the line says so; when C1 cannot read a mandate (IA-RUNTIME-REQUEST-INVALID) or the agent is not an admitted `@agent`, the line says the fallback is unavailable and why. The fallback is resolved only for a rendered profile that needs it. When the profile's own mandate names a participant other than its agent, a nested line says so: the edit guard judges the agent by the mandates that bind it. Free text is written with runtime's packet helpers (`inline`, `code` and `prose` on `./internal/packet-host`): on one line, each bare IA word token a code span in the body; every C0 or C1 control but tab and the folded line breaks, the Unicode line and paragraph separators and the bidirectional controls become spaces; `<!--` is written `<!--`, a `!` that a rendered code span would follow `!`, and a leading `<` `<`, so no authored value starts a YAML or Markdown line, equals a marker line, opens a comment that hides what follows, reads as dynamic context or opens an HTML block. A reference is printed as the identity it resolves to, or as authored with `not admitted in this scope` where its fields would be read; a field contributes only its unconditional values. The text is a function of the scope's records alone: no absolute path, time, scope token, revision or package version. Generation reuses the prose catalog, the effect table, `inert` and `nativeValue`, not `compileProjection`'s descriptor and publication machinery (C6). Nothing applies the files yet: task host-consumes-generated-set hands them to `applyHostProjection` and lists them in the receipt (C4). `tests/generate-agent-profile.test.ts` lays apps/cli's composition fixture (`tests/fixtures/composition-workspace`, C7) over the conformance corpus adopted at band 90 and pins: the fixture profile's exact file, its own mandate's other-participant line included, and an empty unsupported list, frozen; the fallback naming the mandates that bind the reviewer agent and not the demo participant's, a participant-less mandate included and one that locates nowhere left out, the line for none binding, and an unavailable fallback for an admitted empty move list and for an unadmitted agent, while a profile that names its mandate and a workspace with no profile never resolve it; a named mandate's nested bounds; delegates; unsupported rows for profiles allowed no host tool, for unportable names and for text that runs a command or holds active HTML, the others still rendered; IA words, controls, separators and comment openers in free text, and an adopted agent's text kept out of the description; one tools line per capability, the tools of a profile whose capability includes another, and a closure the compiler refuses (a cycle, an undeclared included effect) reported; a `!` before a rendered span and a leading `<?` escaped, and a lone backtick reported by the value's own reason; narrowed scopes; an adopted profile rendering and reporting nothing for either host; this repository's own `example-profile`; codex reporting every profile, an unknown host refused, a forged or stale token refused; and equal bytes at two roots and under a second token.
|
|
12
|
+
|
|
13
|
+
W02. Skills from authored playbooks (2026-10-09, revised 2026-10-11; position-and-projection §4; milestone generation-binding task generation-playbook-skill, plan amendments C6, C7, C8 and C12, review findings A-R3, A-R6, N1 and N5): `src/generate/playbook.ts`, on the same subpath, publishes `generatePlaybookSkills(reader, within, host)`, which returns a frozen `GeneratedSet` with `word: 'playbook'`. Only `@playbook` records at band 100 that the token admits are read, by identity (C8, operator decision OD3): a playbook below band 100 renders nothing and stays the cells `ia position` delivers. For either host each renders one skill, `.claude/skills/<playbook name>/SKILL.md` for `claude` and `.agents/skills/<playbook name>/SKILL.md` for `codex`, with the same text, unless it is an unsupported row instead: its name is no portable host name (`safeName`), it is named `ia-authoring`, the one skill the packet renders for each host and the projection writer owns (a record's name is lowercase, so no spelling escapes this), or its text is not inert prose. The file is YAML frontmatter (`name` and `description`, the JSON-quoted name and `meaning.says`), a blank line and `PACKET_MARKER` on its own line, the title and identity, then one `## <phase>` section per phase in the cycle order orient, plan, act, learn (the language's `PHASES`), a phase with no cell left out: the primary primitive's cell first and marked `(primary)`, then the others in authored order, each with its condition's terms when it has one and its text written as W01 writes free text. The text is a function of the playbook's record alone. Nothing applies the files yet (C4). `tests/generate-playbook.test.ts` pins the fixture playbook's exact skill for both hosts, conditions and phase order, adopted playbooks rendering and reporting nothing, the reserved name reported for either host, unportable names and non-inert cells reported with the fixture's own skill still rendered, IA words and comment openers in cells, this repository's own `example-method`, refused hosts and tokens, and equal bytes at two roots.
|
|
14
|
+
|
|
15
|
+
W03. Hook declarations from authored hooks (2026-10-11; milestone generation-binding plan amendments C9, C10 and C12, review findings A-R6, G-R4, G-R7 and H-N2): `src/generate/hook.ts`, on the same subpath, publishes `generateHookSet(reader, within, host)`, which returns a frozen `{hooks, unsupported}`, `generateHooks(reader, within, host)` (its `hooks`), `hookDeclaration(node)`, and `HOOK_IDENTITY`, `HOOK_IDENTITY_LIMIT` and `registrableHook(identity)`. Only `@hook` records at band 100 are read, by identity. `hookDeclaration` narrows one to what the `@mandate` edit guard decides, a frozen `HostHookDeclaration` `{identity, event: 'PreToolUse', tools, paths, message}`: `hook.event` PreToolUse, `hook.tools` one or more of Write, Edit and MultiEdit (deduplicated, canonical spelling), `hook.paths` one to 64 workspace-relative path selections in the G06c dialect written with `/` (`registrableSelection`: none empty, absolute, escaping, longer than 512 characters, holding a `.` or `..` segment or an empty one but the last, backslashed, or holding a C0, DEL or C1 control, a bidirectional control or a Unicode line or paragraph separator; `HOOK_SELECTION_LIMIT` and `HOOK_SELECTION_LENGTH`, the bounds distribution's hook registration holds its rows to), a message that is not blank, and an identity a registration can carry on the guard's command line (`registrableHook`: a canonical `system/kind/facet/name` of the language's lower-cased name characters, at most 512 characters). A hook's name is not a host path, so `safeName` does not apply. A hook that selects no path could never deny, so it is refused rather than registered as a guard that guards nothing. Anything else is IA-PROJECTION-INPUT-INVALID naming what is unsupported. `generateHookSet` registers each hook `hookDeclaration` accepts, up to `HOOK_LIMIT` (64), and reports each it refuses, and each accepted one past that bound, as an unsupported row with its reason, so one unsupported record never blocks the others; for `codex` it registers none and reports each (C12: Codex hooks are unsupported). Tool values are never read as a regex or shell text, and nothing authored but the identity reaches a registered group: the tools and paths are validated, and the paths recorded in the registration's ownership state (distribution's guard-registration). The guard decides only the edits a hook's paths and tools select (C10): a workspace protects its governing records, the `.ia/src` sources of its hooks, mandates and profiles, by selecting them, as `paths [".ia/src/**"]` does. Steward-hook's `--hook` mode reads the record through the same `hookDeclaration`, so the guard refuses what registration reports. `tests/generate-playbook.test.ts` pins the fixture hook, codex reporting it, an adopted hook neither registered nor reported, and other tools, an escaping selection, a C1 or bidirectional control in a selection, 65 selections, a 600-character selection, a 65th hook, another event, an empty path list and a blank message each reported, with `hookDeclaration` refusing the same record, and one unsupported hook leaving the others registered and the definitions rendering.
|
|
16
|
+
|
|
17
|
+
W04. Operation and harness definitions (2026-10-11; milestone generation-binding plan amendment C11, review findings A-R5, A-R9, A-R10, A-RC5 and N7): `src/generate/definitions.ts`, on the same subpath, publishes `generateDefinitions(reader, within, host)`, which returns frozen `PacketDefinition` rows (runtime's union of `{word: 'operation', definition: OperationDefinition}` and `{word: 'harness', definition: HarnessDefinition}`), the authored (band 100) `@operation` records first, then the `@harness` records, each by identity. An operation's definition is its name, `meaning.says`, `execution.handler`, `execution.input`, `execution.output` and `execution.effects`, a field it does not state absent; the handler and the two validator ids are catalog keys an installed implementation answers, copied as authored and never imported, resolved, served or executed here (milestone 7 owns execution; the MCP door serves no new tool). A harness's definition is its name, `meaning.says`, `composition.workspace`, `execution.host-profile`, `composition.profiles`, `composition.bindings` and its registration set: the agent files rendered for its profiles, the skills rendered for the playbooks of their capability closure (W01; a closure the compiler refuses selects none), and the registered hooks its bindings' `binding.target` names, as identities and paths. A record the host does not render or register selects nothing, so hook or agent support never fails the definitions. `tests/generate-playbook.test.ts` pins both fixture rows exactly, the codex registration set, a harness whose profile reaches a playbook only through an include selecting exactly that skill and nothing of the fixture's, and nothing once the include closes a cycle, and this repository's `read-captured-source` row with handler `captured-source-read-v1` and its input and output validator ids.
|
|
18
|
+
|
|
19
|
+
W05. Host plugin from a product distribution (2026-10-14; plan host-authoring-kit-s1 task A8, spec host-authoring-kit §5): `src/generate/plugin.ts`, on the `./internal/generate` subpath, publishes `renderPlugin(reader, within, resources, assets)`, which returns the frozen `PluginFile` rows `{path, bytes}` of one plugin directory, sorted by path, with no marker line. It reads the one authored (band 100) `@distribution` that states `product.name`; none or several is IA-PLUGIN-PRODUCT. One plugin carries every host the product's `product.hosts` lists: for each, the manifest `pluginManifest(product, host)` builds (`.claude-plugin/plugin.json`, `.codex-plugin/plugin.json`, `.grok-plugin/plugin.json`, two-space JSON with a final newline). A product that lists no host is IA-PLUGIN-PRODUCT, so no plugin is rendered without a manifest. Each authored `@capability` with an invocation mode `model` or `user` renders `skills/<name>/SKILL.md`: frontmatter (`name`, `description` from `meaning.says`, `disable-model-invocation: true` for `user`, `argument-hint`) through `emitFrontmatter`, then its one inline body resource byte for byte, then its installed references at their output paths. Each authored `@agent-profile` with an invocation mode renders `agents/<name>.md`: `name`, `description`, `tools` (the claude names of the effects of its capabilities, `Read, Grep, Glob` for `read`, through `toolsOf`), `model` from `execution.model-profile`, `color` from `presentation.color` and `effort` from `execution.effort`, then its inline body. A mode `none` renders nothing; `delegated` is IA-PROJECT-FEATURE ("not rendered by this version of ia"), as is a profile whose capabilities allow no host tool. Assets are copied at their output paths. An output path that is not relative, POSIX and free of empty, `.` and `..` segments, two sources for one path, a skill or profile without exactly one inline body, or a capability reference no admitted record answers is IA-PLUGIN-PRODUCT. `tests/generate-plugin.test.ts` pins the manifests and a user-invoked skill, a profile without an invocation rendering nothing, an agent file with its tools, references and assets, the duplicate and unportable paths, the Claude manifest's fields, a delegated capability, and a product with an empty or absent host list refused.
|
|
20
|
+
|
|
21
|
+
W06. Host plugin lowering and comparison (2026-10-14; plan host-authoring-kit-s1 tasks A4 to A6 and A10, spec host-authoring-kit §5.2): `src/host-plugin/*`, on the `./internal/host-plugin` subpath only, which is not a stable contract. `errors.ts` holds `HostPluginError` and its codes. `frontmatter.ts` reads and writes the strict frontmatter subset (plain, double- and single-quoted strings, booleans and one-line lists of plain items; anything else, CRLF, a byte-order mark or non-UTF-8 bytes is unresolved, never normalized). `inventory.ts` reads a plugin directory (`readEntries`, `inventoryOf`, `readPlugin`): every regular file by sorted POSIX path, refusing a link, a `.git` or `node_modules` entry in any letter case, a non-regular file and more than 1,000 files or 16 MiB with IA-PLUGIN-INPUT, and classifying manifests, skills with their owned files, agents and other files; hooks, MCP and LSP configuration and `commands/` are unresolved. `manifest.ts` publishes `pluginManifest(product, host)`, the pure builder of the manifest object each host's `plugin.json` holds, which W05 writes and lowering compares against. `lower.ts` publishes `lowerPlugin(inventory, system)`, a frozen `LoweringPlan` of files, records, assets, the `ia.lowering-map.v1` map (every file and every accepted frontmatter key one disposition: field, resource, asset or derived; an agent's `name` derived as `@agent-profile <name>`, `model` to `execution.model-profile`, `effort` to `execution.effort`, `color` to `presentation.color`), `MIGRATION.md` generated from it, and the unresolved entries. Lowering admits only what W05 writes back: an agent's `tools` only as one string whose `split(', ')` rejoins to exactly the original; each manifest only when it equals, by `isDeepStrictEqual`, what `pluginManifest` builds for the lowered product, a Codex manifest's absent hook map excepted (each difference an unresolved entry naming the manifest and the key path); no explicit `disable-model-invocation: false`, which W05 omits (the reason says to remove the key). Its lowered system requires `agent-composition-system`, `agent-system`, `compliance-system`, `learning-system` and `workspace-system`, sorted, so trigger `@contract`, `@case` and `@observation` records can be authored in it. Every unresolved message says what "is not lowered by this version of ia", never a plan slice. `compare.ts` publishes `comparePlugin(original, rendered)` and `DIFF_RULES`: each file identical, ruled by named rules (`frontmatter-scalar-style`, `frontmatter-field-order`, `frontmatter-default-omitted`, `tool-order`, `manifest-format`, `codex-hooks-suppressed`), drift, missing or extra. `tests/host-plugin.test.ts` pins the frontmatter subset, the inventory and its refusals, lowering the sample byte for byte, each unresolved construct, the manifest builder against the sample, the tools forms and manifest variants lowering refuses or accepts, the agent dispositions, the wording and the comparison rules.
|
|
22
|
+
|
|
23
|
+
W02. Execution binding (milestone generation-binding task execution-binding-host-entry, plan amendments C16 and C24): `src/bind.ts` (`./bind`) joins each `@execution-binding` with the installed-implementation catalog's operation rows, typed by `@inventarch/db/distribution`'s `InstalledOperation`. `executionBindings(reader)` reads every admitted binding with its unconditional `binding.kind`, `binding.implementation` and `binding.target`, a stated target kept as the reference written and the identity it resolves to, null when no admitted record answers it (`BindingTarget`; review finding B2-R1: a stated target is never read as no target); `bindExecution(binding, catalog)` returns `bound` only when the catalog is present, lists the implementation as available, the binding is an operation binding and its target, when it states one, resolves to the operation the implementation serves; `unavailable` when there is no catalog, it does not list the implementation, lists it unavailable, the kind has no catalog section, the stated target resolves to no admitted record (so the canonical `read-captured-source-binding`, copied into an `ia init` consumer that admits no `@operation read-captured-source`, is unavailable there) or the implementation serves another operation; `revoked`, an error, when the catalog revokes it or failed verification. The catalog is the one `@inventarch/distribution` read from the verified host payload; this package never imports the composition system, and nothing is loaded or executed.
|
|
24
|
+
|
|
9
25
|
## Dependency policy
|
|
10
26
|
|
|
11
27
|
| Package | May import |
|
package/dist/bind.d.ts
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { ReadHandle } from '@inventarch/db';
|
|
2
|
+
import type { InstalledOperation } from '@inventarch/db/distribution';
|
|
3
|
+
import type { Node } from '@inventarch/graph';
|
|
4
|
+
import type { CompiledValue } from '@inventarch/language';
|
|
5
|
+
/**
|
|
6
|
+
* Execution binding against the installed-implementation catalog (milestone generation-binding, original task
|
|
7
|
+
* execution-binding-host-entry; plan amendments C16 and C24). An `@execution-binding` names the implementation it
|
|
8
|
+
* selects (`binding.implementation`), its kind and, optionally, its target; the host's catalog says which operation
|
|
9
|
+
* implementations its payload actually ships. This module joins the two and nothing else: it never loads, imports,
|
|
10
|
+
* serves or executes an implementation (milestone 7 runs operations), and it reads only the records and the catalog
|
|
11
|
+
* it is given. The catalog comes from the materialized host payload, read by `@inventarch/distribution`'s
|
|
12
|
+
* `readInstalledImplementations`, which already checked every available operation's shipped handler bytes against
|
|
13
|
+
* their pins; this package cannot import the composition system that holds the handlers (tools/dependencies/check.ts).
|
|
14
|
+
*
|
|
15
|
+
* Results are distinct, and only `bound` is ever a pass:
|
|
16
|
+
* - `bound`: the catalog is present, lists the implementation as available (its shipped bytes matched their pins when
|
|
17
|
+
* the catalog was read), the binding is an operation binding, and its target, when it states one, resolves to an
|
|
18
|
+
* admitted record that is the operation the implementation serves.
|
|
19
|
+
* - `unavailable`: there is no catalog, it does not list the implementation, it lists it as unavailable (a
|
|
20
|
+
* metadata-only declaration or missing handler bytes), the binding is of a kind no installed catalog section
|
|
21
|
+
* provides, it states a target that resolves to no admitted record (review finding B2-R1: a typo is never a pass),
|
|
22
|
+
* or the implementation serves another operation. Nothing is wrong with the host; nothing is bound.
|
|
23
|
+
* - `revoked`, an error: the catalog revokes the implementation, or the catalog failed verification (bytes or pins that
|
|
24
|
+
* no longer match), so the implementation it vouched for is not the one installed. A revoked binding must block,
|
|
25
|
+
* where an unavailable one is only not bound.
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The catalog a binding is joined against: `present`, its operation rows as `@inventarch/db/distribution` shapes them
|
|
29
|
+
* and its reader verified them against the payload (review finding B-N9: one shape for reader and binder),
|
|
30
|
+
* `unavailable` (no catalog, or none this workspace joined) with the reason, or `damaged` (it failed verification)
|
|
31
|
+
* with the reason.
|
|
32
|
+
*/
|
|
33
|
+
export type BindingCatalog = {
|
|
34
|
+
readonly status: 'present';
|
|
35
|
+
readonly operations: readonly InstalledOperation[];
|
|
36
|
+
} | {
|
|
37
|
+
readonly status: 'unavailable';
|
|
38
|
+
readonly reason: string;
|
|
39
|
+
} | {
|
|
40
|
+
readonly status: 'damaged';
|
|
41
|
+
readonly reason: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* `binding.target` as a binding states it (review finding B2-R1): the reference as written and the identity of the
|
|
45
|
+
* admitted record it resolves to, null when none answers it. A stated target and a resolved one are kept apart, so an
|
|
46
|
+
* unresolved target is never read as no target.
|
|
47
|
+
*/
|
|
48
|
+
export interface BindingTarget {
|
|
49
|
+
readonly reference: string;
|
|
50
|
+
readonly identity: string | null;
|
|
51
|
+
}
|
|
52
|
+
/** An `@execution-binding` as the binder reads it: its unconditional binding fields, its target resolved. */
|
|
53
|
+
export interface ExecutionBinding {
|
|
54
|
+
readonly identity: string;
|
|
55
|
+
readonly kind: string | null;
|
|
56
|
+
readonly implementation: string | null;
|
|
57
|
+
/** The target the binding states, resolved; null only when it states none. */
|
|
58
|
+
readonly target: BindingTarget | null;
|
|
59
|
+
}
|
|
60
|
+
export type BindingStatus = 'bound' | 'unavailable' | 'revoked';
|
|
61
|
+
export interface BindingResult {
|
|
62
|
+
readonly identity: string;
|
|
63
|
+
readonly implementation: string | null;
|
|
64
|
+
readonly status: BindingStatus;
|
|
65
|
+
/** One line: why the binding has this result. */
|
|
66
|
+
readonly reason: string;
|
|
67
|
+
/** For a bound binding: the handler, its shipped bytes' SHA-256 and the descriptor version the catalog lists. */
|
|
68
|
+
readonly handler?: string;
|
|
69
|
+
readonly digest?: string;
|
|
70
|
+
readonly version?: number;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* `record`'s binding fields, with a stated `binding.target` resolved through `resolve`. Without a resolver, or for a
|
|
74
|
+
* value that is not a reference, a stated target resolves to nothing, so the binding cannot bind.
|
|
75
|
+
*/
|
|
76
|
+
export declare function executionBindingOf(record: Node, resolve?: (value: Extract<CompiledValue, {
|
|
77
|
+
kind: 'ref';
|
|
78
|
+
}>) => string | null): ExecutionBinding;
|
|
79
|
+
/**
|
|
80
|
+
* Every admitted `@execution-binding` `reader` holds, by identity, with its target resolved in the same view. It reads
|
|
81
|
+
* the root view without a scope token, so a workspace with admission errors still reports the bindings admission
|
|
82
|
+
* admitted. Reads only.
|
|
83
|
+
*/
|
|
84
|
+
export declare function executionBindings(reader: ReadHandle): readonly ExecutionBinding[];
|
|
85
|
+
/** `binding` joined against `catalog` (see the module comment for what each result means). Executes nothing. */
|
|
86
|
+
export declare function bindExecution(binding: ExecutionBinding, catalog: BindingCatalog): BindingResult;
|
|
87
|
+
//# sourceMappingURL=bind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bind.d.ts","sourceRoot":"","sources":["../src/bind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GACtB;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,kBAAkB,EAAE,CAAA;CAAE,GAClF;IAAE,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC3D;IAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AACD,6GAA6G;AAC7G,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;CACvC;AACD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,CAAC;AAChE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,iDAAiD;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,iHAAiH;IACjH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAcD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,IAAI,EACZ,OAAO,GAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,EAAE;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,KAAK,MAAM,GAAG,IAAiB,GACtF,gBAAgB,CAWlB;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,gBAAgB,EAAE,CAWjF;AAED,gHAAgH;AAChH,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,cAAc,GAAG,aAAa,CAqC/F"}
|
package/dist/bind.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { fieldsAt } from './record-fields.js';
|
|
2
|
+
/** The catalog sections a binding kind joins against; only operations have installed implementations so far. */
|
|
3
|
+
const OPERATION_KIND = 'operation';
|
|
4
|
+
/** The first unconditional value `record` states at `field` (review finding B2-N11: the package's one field reader). */
|
|
5
|
+
const firstValue = (record, field) => fieldsAt(record, field)[0]?.value;
|
|
6
|
+
const textOf = (value) => value !== undefined && 'text' in value && typeof value.text === 'string' ? value.text : null;
|
|
7
|
+
const referenceText = (value) => value.kind === 'ref'
|
|
8
|
+
? `@${value.discriminator} ${value.name}${value.fragment === undefined ? '' : `#${value.fragment}`}`
|
|
9
|
+
: (textOf(value) ?? `(a ${value.kind} value)`);
|
|
10
|
+
/**
|
|
11
|
+
* `record`'s binding fields, with a stated `binding.target` resolved through `resolve`. Without a resolver, or for a
|
|
12
|
+
* value that is not a reference, a stated target resolves to nothing, so the binding cannot bind.
|
|
13
|
+
*/
|
|
14
|
+
export function executionBindingOf(record, resolve = () => null) {
|
|
15
|
+
const target = firstValue(record, 'binding.target');
|
|
16
|
+
return {
|
|
17
|
+
identity: record.identity,
|
|
18
|
+
kind: textOf(firstValue(record, 'binding.kind')),
|
|
19
|
+
implementation: textOf(firstValue(record, 'binding.implementation')),
|
|
20
|
+
target: target === undefined
|
|
21
|
+
? null
|
|
22
|
+
: { reference: referenceText(target), identity: target.kind === 'ref' ? resolve(target) : null },
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Every admitted `@execution-binding` `reader` holds, by identity, with its target resolved in the same view. It reads
|
|
27
|
+
* the root view without a scope token, so a workspace with admission errors still reports the bindings admission
|
|
28
|
+
* admitted. Reads only.
|
|
29
|
+
*/
|
|
30
|
+
export function executionBindings(reader) {
|
|
31
|
+
return reader
|
|
32
|
+
.records()
|
|
33
|
+
.filter((record) => record.discriminator === 'execution-binding')
|
|
34
|
+
.sort((a, b) => (a.identity < b.identity ? -1 : a.identity > b.identity ? 1 : 0))
|
|
35
|
+
.map((record) => executionBindingOf(record, (value) => {
|
|
36
|
+
const resolved = reader.resolve(value);
|
|
37
|
+
return resolved.ok ? resolved.identity : null;
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
/** `binding` joined against `catalog` (see the module comment for what each result means). Executes nothing. */
|
|
41
|
+
export function bindExecution(binding, catalog) {
|
|
42
|
+
const { identity, implementation } = binding;
|
|
43
|
+
const result = (status, reason) => ({
|
|
44
|
+
identity,
|
|
45
|
+
implementation,
|
|
46
|
+
status,
|
|
47
|
+
reason,
|
|
48
|
+
});
|
|
49
|
+
if (implementation === null)
|
|
50
|
+
return result('unavailable', 'the binding names no implementation');
|
|
51
|
+
if (binding.kind !== OPERATION_KIND)
|
|
52
|
+
return result('unavailable', `the installed catalog lists operation implementations only, none of kind ${binding.kind ?? '(none stated)'}`);
|
|
53
|
+
if (catalog.status === 'damaged')
|
|
54
|
+
return result('revoked', `the installed-implementation catalog failed verification: ${catalog.reason}`);
|
|
55
|
+
if (catalog.status === 'unavailable')
|
|
56
|
+
return result('unavailable', catalog.reason);
|
|
57
|
+
const operation = catalog.operations.find((row) => row.id === implementation);
|
|
58
|
+
if (operation === undefined)
|
|
59
|
+
return result('unavailable', `the installed catalog lists no implementation ${implementation}`);
|
|
60
|
+
if (operation.status === 'revoked')
|
|
61
|
+
return result('revoked', `the installed catalog revokes ${implementation}: ${operation.reason}`);
|
|
62
|
+
if (operation.status === 'unavailable')
|
|
63
|
+
return result('unavailable', `${implementation} is unavailable on this host: ${operation.reason}`);
|
|
64
|
+
if (binding.target !== null && binding.target.identity === null)
|
|
65
|
+
return result('unavailable', `binding.target ${binding.target.reference} resolves to no admitted record`);
|
|
66
|
+
if (binding.target !== null && binding.target.identity !== operation.operation)
|
|
67
|
+
return result('unavailable', `${implementation} serves ${operation.operation}, not ${binding.target.identity}`);
|
|
68
|
+
return {
|
|
69
|
+
...result('bound', `${implementation} ships handler ${operation.handler} (bytes ${operation.digest.slice(0, 12)}); nothing was executed`),
|
|
70
|
+
handler: operation.handler,
|
|
71
|
+
digest: operation.digest,
|
|
72
|
+
version: operation.version,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=bind.js.map
|
package/dist/bind.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1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M,KAAK,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,SAAS;QAC5E,OAAO,MAAM,CAAC,aAAa,EAAE,GAAG,cAAc,WAAW,SAAS,CAAC,SAAS,SAAS,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IAClH,OAAO;QACL,GAAG,MAAM,CACP,OAAO,EACP,GAAG,cAAc,kBAAkB,SAAS,CAAC,OAAO,WAAW,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CACtH;QACD,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,MAAM,EAAE,SAAS,CAAC,MAAM;QACxB,OAAO,EAAE,SAAS,CAAC,OAAO;KAC3B,CAAC;AACJ,CAAC"}
|
package/dist/corpus.js
CHANGED
|
@@ -41,9 +41,9 @@ export function verifyCapture(input) {
|
|
|
41
41
|
fail('Unsafe, duplicate or oversized captured source');
|
|
42
42
|
const placement = source.location.placement;
|
|
43
43
|
if (placement.reach !== '' ||
|
|
44
|
-
!['authored', 'adopted', 'floor'].includes(placement.kind) ||
|
|
45
|
-
placement.band !== { authored: 100, adopted: 90, floor: 10 }[placement.kind])
|
|
46
|
-
fail('This capture profile supports whole-workspace authored/adopted/floor sources only');
|
|
44
|
+
!['authored', 'adopted', 'open', 'floor'].includes(placement.kind) ||
|
|
45
|
+
placement.band !== { authored: 100, adopted: 90, open: 50, floor: 10 }[placement.kind])
|
|
46
|
+
fail('This capture profile supports whole-workspace authored/adopted/open/floor sources only');
|
|
47
47
|
paths.add(key);
|
|
48
48
|
bytes += size;
|
|
49
49
|
}
|
package/dist/corpus.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corpus.js","sourceRoot":"","sources":["../src/corpus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM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AE,IAAI,CAAC,IAAI;qBAChB;oBACH,CAAC,CAAC,IAAI,CAAC;gBACT,IAAI,IAAI;oBAAE,SAAS,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YACrD,CAAC;;gBAAM,IAAI,CAAC,0BAA0B,CAAC,CAAC;YACxC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACpC,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI;gBAAE,IAAI,CAAC,0CAA0C,CAAC,CAAC;YAC1F,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,EAAE,CAAC;QAC1F,CAAC;KACF,CAAC;IACF,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReadHandle } from '@inventarch/db';
|
|
2
|
+
import type { PacketHost } from '@inventarch/runtime';
|
|
3
|
+
import type { GeneratedSet } from './format.js';
|
|
4
|
+
/**
|
|
5
|
+
* The agent files of the authored `@agent-profile` records the scope token `within` admits, by identity, and an
|
|
6
|
+
* unsupported row for each one not rendered (see above); for codex, a row for each. An unknown host is
|
|
7
|
+
* IA-PROJECTION-INPUT-INVALID, and for either host an unknown or stale token keeps its database code.
|
|
8
|
+
*/
|
|
9
|
+
export declare function generateAgentProfiles(reader: ReadHandle, within: string, host: PacketHost): GeneratedSet;
|
|
10
|
+
//# sourceMappingURL=agent-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-profile.d.ts","sourceRoot":"","sources":["../../src/generate/agent-profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAqBtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAkDhD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,YAAY,CA4ExG"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { governingMandates, PACKET_MARKER, RuntimeError } from '@inventarch/runtime';
|
|
2
|
+
import { inputFailure } from '../projection-format.js';
|
|
3
|
+
import { claudeProseCatalog, nativeValue, PROSE_EFFECT_TOOLS } from '../projection-host.js';
|
|
4
|
+
import { frozen } from '../resource-format.js';
|
|
5
|
+
import { authoredOf, capabilityClosure, closureRefusal, code, fieldsOf, inline, knownHost, list, perRecord, prose, safeName, section, stated, textsAt, valuesAt, } from './format.js';
|
|
6
|
+
/**
|
|
7
|
+
* Generation of host agent files from authored `@agent-profile` records (milestone generation-binding, task
|
|
8
|
+
* generation-agent-profile; plan amendments C1, C5, C6 and C12). Each band-100 profile in the scope renders one claude
|
|
9
|
+
* agent file, `.claude/agents/<profile name>.md`: YAML frontmatter naming the profile, describing it and listing the host
|
|
10
|
+
* tools its capabilities allow, the packet's marker on its own line, then the profile's mandate bounds, voice, tools and
|
|
11
|
+
* delegates, read from the records the profile's own fields reference. The Tools section lists the profile's capabilities
|
|
12
|
+
* and every one they include (`composition.includes`); the frontmatter's tools are the profile's own capabilities'
|
|
13
|
+
* effects, which the composition compiler holds as the ceiling of what each includes (review finding A-RC5).
|
|
14
|
+
*
|
|
15
|
+
* A profile is not rendered, and is reported as an unsupported row naming it and the reason, when its name is not a
|
|
16
|
+
* portable host name, when its capabilities allow no host tool (claude reads an agent with no tool list as one given every
|
|
17
|
+
* tool, so only a file left unwritten grants nothing), when the compiler would refuse its capability closure (an
|
|
18
|
+
* inclusion cycle, or an included capability with effects its includer does not declare), or when its text, an authored
|
|
19
|
+
* value's own or as rendered, is not inert prose. Codex renders none and reports
|
|
20
|
+
* each: a codex agent needs an entry in `.codex/config.toml`, which holds the owned MCP block (C12). A profile below band
|
|
21
|
+
* 100, an installed or adopted base, renders nothing, and no system steward does, a steward being an `@agent` (design
|
|
22
|
+
* §4); a workspace that authors public systems, as this repository does, renders their profiles. The bytes are a function
|
|
23
|
+
* of the scope's records alone: no absolute path, time or scope token is written.
|
|
24
|
+
*
|
|
25
|
+
* The mandate bounds are the profile's own `composition.mandate`. A profile that names none falls back to the authored
|
|
26
|
+
* mandates C1 says bind its `composition.agent` (review finding A-R8): the agent a subagent acts as for edits the guard
|
|
27
|
+
* selects (OD4), so the file states what the guard enforces; CLI commands independently choose a
|
|
28
|
+
* workspace participant or steward. A participant-less mandate that states neither
|
|
29
|
+
* scope nor covers locates nowhere and is left out (A-RC4). The fallback is resolved only for a rendered profile that
|
|
30
|
+
* needs it, and a mandate C1 cannot read makes it unavailable, which the file says, never failing the render. A profile's
|
|
31
|
+
* own mandate that names another participant is rendered with a line saying the guard does not judge this agent by it.
|
|
32
|
+
*
|
|
33
|
+
* Nothing applies these files yet: milestone generation-binding task host-consumes-generated-set hands them to the one
|
|
34
|
+
* projection writer.
|
|
35
|
+
*/
|
|
36
|
+
/**
|
|
37
|
+
* The claude host's tool names by tool id, the prose catalog's default selections. The generated files carry no profile
|
|
38
|
+
* pin, so the implementation digest the catalog requires is a placeholder that no file names.
|
|
39
|
+
*/
|
|
40
|
+
const CLAUDE_TOOLS = new Map(claudeProseCatalog('0'.repeat(64)).tools.map((tool) => [tool.id, tool.name]));
|
|
41
|
+
/**
|
|
42
|
+
* The claude names of the host tools `effects` cover through the prose profiles' table, in first-stated order, each
|
|
43
|
+
* once. The same table is the ceiling `compileProjection` holds an agent's tools to.
|
|
44
|
+
*/
|
|
45
|
+
const hostTools = (effects) => [
|
|
46
|
+
...new Set(effects.flatMap((effect) => PROSE_EFFECT_TOOLS.get(effect) ?? []).map((id) => CLAUDE_TOOLS.get(id) ?? id)),
|
|
47
|
+
];
|
|
48
|
+
const CODEX = 'Codex agents are unsupported: a codex agent needs an entry in .codex/config.toml, which holds the owned MCP block';
|
|
49
|
+
/**
|
|
50
|
+
* The agent files of the authored `@agent-profile` records the scope token `within` admits, by identity, and an
|
|
51
|
+
* unsupported row for each one not rendered (see above); for codex, a row for each. An unknown host is
|
|
52
|
+
* IA-PROJECTION-INPUT-INVALID, and for either host an unknown or stale token keeps its database code.
|
|
53
|
+
*/
|
|
54
|
+
export function generateAgentProfiles(reader, within, host) {
|
|
55
|
+
knownHost(host);
|
|
56
|
+
// The token is read before the codex answer, so codex refuses a token claude would refuse.
|
|
57
|
+
const records = reader.records({ within }), profiles = authoredOf(records, 'agent-profile');
|
|
58
|
+
if (host === 'codex')
|
|
59
|
+
return frozen({
|
|
60
|
+
files: [],
|
|
61
|
+
unsupported: profiles.map((profile) => ({
|
|
62
|
+
identity: profile.identity,
|
|
63
|
+
word: 'agent-profile',
|
|
64
|
+
reason: CODEX,
|
|
65
|
+
})),
|
|
66
|
+
});
|
|
67
|
+
const nodes = new Map(records.map((node) => [node.identity, node]));
|
|
68
|
+
/** The admitted record a reference resolves to in the scope, or undefined. */
|
|
69
|
+
const target = (value) => {
|
|
70
|
+
if (value.kind !== 'ref')
|
|
71
|
+
return undefined;
|
|
72
|
+
const resolved = reader.resolve(value, { within });
|
|
73
|
+
return resolved.ok ? nodes.get(resolved.identity) : undefined;
|
|
74
|
+
};
|
|
75
|
+
/** A reference printed as the identity it resolves to, or as authored when none admitted answers it. */
|
|
76
|
+
const named = (value) => code(target(value)?.identity ?? nativeValue(value));
|
|
77
|
+
/** C1's fallback for a profile that names no mandate: the authored mandates that bind `agent`, or why there are none. */
|
|
78
|
+
const fallback = (agent) => {
|
|
79
|
+
const intro = 'This profile names no mandate.';
|
|
80
|
+
if (agent?.discriminator !== 'agent')
|
|
81
|
+
return [`${intro} Fallback unavailable: its composition.agent is not an admitted @agent in this scope.`];
|
|
82
|
+
try {
|
|
83
|
+
// A mandate that names no participant and neither scope nor covers locates nowhere, so it governs no path the
|
|
84
|
+
// agent edits: it is left out (review finding A-RC4).
|
|
85
|
+
const binding = governingMandates(reader, within, { actor: agent.identity }).filter((mandate) => mandate.binds !== false &&
|
|
86
|
+
(mandate.participant !== undefined || mandate.scope.length > 0 || (mandate.covers ?? []).length > 0));
|
|
87
|
+
if (binding.length === 0)
|
|
88
|
+
return [
|
|
89
|
+
`${intro} Fallback: no authored mandate binds its agent ${code(agent.identity)}; wherever a mandate governs, the edit guard refuses it.`,
|
|
90
|
+
];
|
|
91
|
+
return [
|
|
92
|
+
`${intro} Fallback: the authored mandates that bind its agent ${code(agent.identity)}, each with where it governs; the edit guard judges the agent by these, and refuses it where a mandate that binds another participant governs and none of these grants the move.`,
|
|
93
|
+
'',
|
|
94
|
+
...binding.flatMap((mandate) => mandateLines(nodes.get(mandate.identity), named)),
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
catch (error) {
|
|
98
|
+
if (!(error instanceof RuntimeError))
|
|
99
|
+
throw error;
|
|
100
|
+
return [`${intro} Fallback unavailable: ${inline(error.message)}`];
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
return perRecord('agent-profile', profiles, (profile) => {
|
|
104
|
+
const path = `.claude/agents/${safeName(profile.name)}.md`, roots = valuesAt(profile, 'composition.capabilities'), capabilities = capabilityClosure(roots, target), refused = closureRefusal(roots, target);
|
|
105
|
+
// A closure the composition compiler refuses is reported; otherwise each capability's own effects are the ceiling of
|
|
106
|
+
// what it includes, so the profile's capabilities' own effects are its tools (review finding A-RC5).
|
|
107
|
+
if (refused !== undefined)
|
|
108
|
+
inputFailure(`${profile.identity} renders no agent: ${refused}, which the composition compiler refuses`);
|
|
109
|
+
const tools = hostTools(roots.flatMap((capability) => {
|
|
110
|
+
const node = target(capability);
|
|
111
|
+
return node?.discriminator === 'capability' ? textsAt(node, 'execution.effects') : [];
|
|
112
|
+
}));
|
|
113
|
+
if (tools.length === 0)
|
|
114
|
+
inputFailure(`${profile.identity} renders no agent: its capabilities allow no host tool, and claude gives an agent with no tool list every tool`);
|
|
115
|
+
return {
|
|
116
|
+
path,
|
|
117
|
+
text: agentFile(profile, tools, roots, capabilities, target, named, fallback),
|
|
118
|
+
identity: profile.identity,
|
|
119
|
+
word: 'agent-profile',
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function agentFile(profile, tools, roots, capabilities, target, named, fallback) {
|
|
124
|
+
const agent = valuesAt(profile, 'composition.agent')[0], agentNode = agent === undefined ? undefined : target(agent), says = textsAt(profile, 'meaning.says')[0];
|
|
125
|
+
// The description is the agent's own only when the workspace authors that agent: an installed or adopted base's text
|
|
126
|
+
// never decides when claude delegates to an authored profile (review finding N4).
|
|
127
|
+
const description = (agentNode !== undefined && agentNode.band === 100 ? textsAt(agentNode, 'meaning.says')[0] : undefined) ??
|
|
128
|
+
says ??
|
|
129
|
+
'';
|
|
130
|
+
// Every frontmatter value is JSON-quoted, so a name YAML reads as a keyword (`true`, `null`) stays a string; the
|
|
131
|
+
// tools are one comma-separated string, as `compileProjection` writes an agent's.
|
|
132
|
+
const out = [
|
|
133
|
+
'---',
|
|
134
|
+
`name: ${JSON.stringify(profile.name)}`,
|
|
135
|
+
`description: ${JSON.stringify(inline(description))}`,
|
|
136
|
+
`tools: ${JSON.stringify(tools.join(', '))}`,
|
|
137
|
+
'---',
|
|
138
|
+
'',
|
|
139
|
+
PACKET_MARKER,
|
|
140
|
+
'',
|
|
141
|
+
`# ${profile.name}`,
|
|
142
|
+
...(says === undefined ? [] : ['', prose(says)]),
|
|
143
|
+
'',
|
|
144
|
+
`- profile ${code(profile.identity)}`,
|
|
145
|
+
...(agent === undefined
|
|
146
|
+
? []
|
|
147
|
+
: [`- agent ${named(agent)}${agentNode === undefined ? ': not admitted in this scope' : ''}`]),
|
|
148
|
+
'',
|
|
149
|
+
"CLI commands choose an authored workspace participant or steward. Omitting --actor uses the workspace's default actor; it does not select this profile's agent.",
|
|
150
|
+
];
|
|
151
|
+
// The mandate bounds: the authority and limits of the mandate the profile itself names, else C1's fallback.
|
|
152
|
+
const mandate = valuesAt(profile, 'composition.mandate')[0], mandateNode = mandate === undefined ? undefined : target(mandate);
|
|
153
|
+
out.push(...section('Mandate', mandate === undefined
|
|
154
|
+
? fallback(agentNode)
|
|
155
|
+
: mandateNode === undefined
|
|
156
|
+
? [`- ${named(mandate)}: not admitted in this scope`]
|
|
157
|
+
: [...mandateLines(mandateNode, named), ...otherParticipant(mandateNode, agentNode, target)]));
|
|
158
|
+
const voice = valuesAt(profile, 'composition.voice')[0];
|
|
159
|
+
if (voice !== undefined) {
|
|
160
|
+
const voiceNode = target(voice);
|
|
161
|
+
out.push(...section('Voice', [
|
|
162
|
+
`- ${named(voice)}${voiceNode === undefined ? ': not admitted in this scope' : ''}`,
|
|
163
|
+
...(voiceNode === undefined
|
|
164
|
+
? []
|
|
165
|
+
: fieldsOf(voiceNode, 'communication').map((f) => `- ${f.key}: ${prose(nativeValue(f.value))}`)),
|
|
166
|
+
]));
|
|
167
|
+
}
|
|
168
|
+
// The tools: each capability's operations, and the host tools its effects cover through the prose profiles' table,
|
|
169
|
+
// for the profile's capabilities and every one they include. A reference no admitted capability answers is named.
|
|
170
|
+
out.push(...section('Tools', [
|
|
171
|
+
...roots.flatMap((capability) => target(capability)?.discriminator === 'capability'
|
|
172
|
+
? []
|
|
173
|
+
: [`- ${named(capability)}: not admitted in this scope`]),
|
|
174
|
+
...capabilities.map((node) => {
|
|
175
|
+
const effects = textsAt(node, 'execution.effects');
|
|
176
|
+
return `- ${code(node.identity)}: operations ${list(valuesAt(node, 'composition.operations').map(named))}; effects ${list(effects.map(inline))}; host tools ${list(hostTools(effects))}`;
|
|
177
|
+
}),
|
|
178
|
+
]));
|
|
179
|
+
const delegates = valuesAt(profile, 'composition.delegates');
|
|
180
|
+
if (delegates.length > 0)
|
|
181
|
+
out.push(...section('Delegates', delegates.map((delegate) => `- ${named(delegate)}`)));
|
|
182
|
+
return `${out.join('\n')}\n`;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* A mandate as one list item, its identity, with each authority field and `execution.limit-*` it states, as authored,
|
|
186
|
+
* nested beneath it, so several mandates read apart.
|
|
187
|
+
*/
|
|
188
|
+
function mandateLines(mandate, named) {
|
|
189
|
+
const fields = [];
|
|
190
|
+
const participant = valuesAt(mandate, 'authority.participant');
|
|
191
|
+
if (participant.length > 0)
|
|
192
|
+
fields.push(`participant ${list(participant.map(named))}`);
|
|
193
|
+
if (stated(mandate, 'authority.moves'))
|
|
194
|
+
fields.push(`moves ${list(textsAt(mandate, 'authority.moves').map(inline))}`);
|
|
195
|
+
if (stated(mandate, 'authority.scope'))
|
|
196
|
+
fields.push(`scope ${list(valuesAt(mandate, 'authority.scope').map(named))}`);
|
|
197
|
+
if (stated(mandate, 'authority.excluded-words'))
|
|
198
|
+
fields.push(`excluded words ${list(textsAt(mandate, 'authority.excluded-words').map(inline))}`);
|
|
199
|
+
if (stated(mandate, 'authority.covers'))
|
|
200
|
+
fields.push(`covers ${list(textsAt(mandate, 'authority.covers').map(code))}`);
|
|
201
|
+
for (const field of fieldsOf(mandate, 'execution'))
|
|
202
|
+
if (field.key.startsWith('limit-'))
|
|
203
|
+
fields.push(`${field.key} ${prose(nativeValue(field.value))}`);
|
|
204
|
+
return [`- ${code(mandate.identity)}`, ...fields.map((line) => ` - ${line}`)];
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* The profile's own mandate names another participant than the profile's agent: its bounds are rendered as the plan says,
|
|
208
|
+
* and a nested line says the edit guard does not judge this agent by it (review finding
|
|
209
|
+
* A-RC4).
|
|
210
|
+
*/
|
|
211
|
+
function otherParticipant(mandate, agent, target) {
|
|
212
|
+
const participant = valuesAt(mandate, 'authority.participant')[0], bound = participant === undefined ? undefined : target(participant);
|
|
213
|
+
if (bound === undefined || agent === undefined || bound.identity === agent.identity)
|
|
214
|
+
return [];
|
|
215
|
+
return [
|
|
216
|
+
` - binds ${code(bound.identity)}, not this profile's agent ${code(agent.identity)}: the edit guard judges the agent by the mandates that bind it`,
|
|
217
|
+
];
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=agent-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-profile.js","sourceRoot":"","sources":["../../src/generate/agent-profile.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAErF,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,SAAS,EACT,IAAI,EACJ,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,OAAO,EACP,QAAQ,GACT,MAAM,aAAa,CAAC;AAGrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;GAGG;AACH,MAAM,YAAY,GAAgC,IAAI,GAAG,CACvD,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAC7E,CAAC;AACF;;;GAGG;AACH,MAAM,SAAS,GAAG,CAAC,OAA0B,EAAqB,EAAE,CAAC;IACnE,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,GAAG,CAAC,MAA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C,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;IAChF,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;QAChD,IAAI,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC;YAAE,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IACrG,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC;AACjF,CAAC;AAED;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,OAAa,EACb,KAAuB,EACvB,MAAkD;IAElD,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC,EAC/D,KAAK,GAAG,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ;QAAE,OAAO,EAAE,CAAC;IAC/F,OAAO;QACL,aAAa,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,8BAA8B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,gEAAgE;KACpJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReadHandle } from '@inventarch/db';
|
|
2
|
+
import type { HostHookDeclaration, PacketDefinition, PacketHost } from '@inventarch/runtime';
|
|
3
|
+
import type { GeneratedFile, UnsupportedRecord } from './format.js';
|
|
4
|
+
/**
|
|
5
|
+
* Everything a host generates from the workspace's authored records, computed once (milestone generation-binding task
|
|
6
|
+
* host-consumes-generated-set): the agent and skill files, the hook declarations it registers, a row for each authored
|
|
7
|
+
* record it does not render or register, and the operation and harness definitions, whose harness registration sets
|
|
8
|
+
* select only from these files and hooks. The projection writer applies exactly this set, and its receipt lists each
|
|
9
|
+
* harness's registrations as that apply left them (a hook it registered no group for is not listed; review finding H-R7).
|
|
10
|
+
*/
|
|
11
|
+
export interface HostSet {
|
|
12
|
+
/** The generated agent files, then the skills, each group by identity. */
|
|
13
|
+
readonly files: readonly GeneratedFile[];
|
|
14
|
+
readonly hooks: readonly HostHookDeclaration[];
|
|
15
|
+
/** The agent profiles, then the playbooks, then the hooks not rendered or registered, each with the reason. */
|
|
16
|
+
readonly unsupported: readonly UnsupportedRecord[];
|
|
17
|
+
readonly definitions: readonly PacketDefinition[];
|
|
18
|
+
}
|
|
19
|
+
/** The host set for `host` through the scope token `within` (see `HostSet`). */
|
|
20
|
+
export declare function generateHostSet(reader: ReadHandle, within: string, host: PacketHost): HostSet;
|
|
21
|
+
/**
|
|
22
|
+
* Definitions of authored `@operation` and `@harness` records (milestone generation-binding, task
|
|
23
|
+
* generation-operation-harness; plan amendment C11), for the receipt's `definitions` section: `generateHostSet`'s.
|
|
24
|
+
*/
|
|
25
|
+
export declare function generateDefinitions(reader: ReadHandle, within: string, host: PacketHost): readonly PacketDefinition[];
|
|
26
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/generate/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,KAAK,EAEV,mBAAmB,EAEnB,gBAAgB,EAChB,UAAU,EACX,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKpE;;;;;;GAMG;AACH,MAAM,WAAW,OAAO;IACtB,0EAA0E;IAC1E,QAAQ,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,CAAC;IACzC,QAAQ,CAAC,KAAK,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC/C,+GAA+G;IAC/G,QAAQ,CAAC,WAAW,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACnD,QAAQ,CAAC,WAAW,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACnD;AACD,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAW7F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,SAAS,gBAAgB,EAAE,CAErH"}
|