@robota-sdk/agent-product 3.0.0-beta.86 → 3.0.0-beta.88
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/CHANGELOG.md +48 -6
- package/README.md +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js.map +1 -1
- package/package.json +14 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# @robota-sdk/agent-product
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.88
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @robota-sdk/agent-framework@3.0.0-beta.88
|
|
8
|
+
- @robota-sdk/agent-capability-pack@3.0.0-beta.88
|
|
9
|
+
- @robota-sdk/agent-preset@3.0.0-beta.88
|
|
10
|
+
- @robota-sdk/agent-core@3.0.0-beta.88
|
|
11
|
+
- @robota-sdk/agent-interface-transport@3.0.0-beta.88
|
|
12
|
+
|
|
13
|
+
## 3.0.0-beta.87
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Release the migrated Robota product with its public SDK namespace, robota command, compatible SDK exports, internal product configuration, and verified CLI startup and delivery corrections.
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- Updated dependencies [66af868]
|
|
20
|
+
- Updated dependencies [7d9cc66]
|
|
21
|
+
- Updated dependencies [7d9cc66]
|
|
22
|
+
- Updated dependencies [7d9cc66]
|
|
23
|
+
- Updated dependencies [7d9cc66]
|
|
24
|
+
- Updated dependencies [7d9cc66]
|
|
25
|
+
- Updated dependencies [7d9cc66]
|
|
26
|
+
- Updated dependencies [7d9cc66]
|
|
27
|
+
- Updated dependencies [7d9cc66]
|
|
28
|
+
- Updated dependencies [7d9cc66]
|
|
29
|
+
- Updated dependencies [7d9cc66]
|
|
30
|
+
- Updated dependencies [7d9cc66]
|
|
31
|
+
- Updated dependencies [7d9cc66]
|
|
32
|
+
- Updated dependencies [7d9cc66]
|
|
33
|
+
- Updated dependencies [7d9cc66]
|
|
34
|
+
- Updated dependencies [7d9cc66]
|
|
35
|
+
- Updated dependencies [7d9cc66]
|
|
36
|
+
- Updated dependencies [7d9cc66]
|
|
37
|
+
- Updated dependencies [7d9cc66]
|
|
38
|
+
- Updated dependencies [7d9cc66]
|
|
39
|
+
- @robota-sdk/agent-capability-pack@3.0.0-beta.87
|
|
40
|
+
- @robota-sdk/agent-core@3.0.0-beta.87
|
|
41
|
+
- @robota-sdk/agent-framework@3.0.0-beta.87
|
|
42
|
+
- @robota-sdk/agent-interface-transport@3.0.0-beta.87
|
|
43
|
+
- @robota-sdk/agent-preset@3.0.0-beta.87
|
|
44
|
+
|
|
3
45
|
## 3.0.0-beta.86
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
|
@@ -141,9 +183,9 @@
|
|
|
141
183
|
construction to `agent-framework`'s `buildRuntimeSession` seam (never re-implemented). Its neutrality is
|
|
142
184
|
enforced by three mechanical guards (dependency-graph neutrality, purity/no-IO, no product-name
|
|
143
185
|
conditionals), coupling the amended project-structure L129 carve-out to the guards.
|
|
144
|
-
- **`@robota-sdk/pack-coding`** (new) —
|
|
186
|
+
- **`@robota-sdk/pack-coding`** (new) — Robota's coding capability as one `ICapabilityPack` (the built-in
|
|
145
187
|
coding tools, the `/shell` + `/editor` command modules, and the coding subagents) — the additive-axis
|
|
146
|
-
proof and
|
|
188
|
+
proof and Robota's first pack.
|
|
147
189
|
- **`@robota-sdk/agent-preset`** — adds `createPresetRegistry`, a per-call instance-scoped resolver that
|
|
148
190
|
never mutates the module-level external-preset global (consumed by `assembleProduct`).
|
|
149
191
|
|
|
@@ -167,7 +209,7 @@
|
|
|
167
209
|
project/user definitions > injected > built-in. `AgentDefinitionLoader` now dedupes within that tier
|
|
168
210
|
(first wins). Absent ⇒ unchanged behavior.
|
|
169
211
|
- **`@robota-sdk/agent-transport` / `@robota-sdk/agent-transport-tui`** — forward the optional
|
|
170
|
-
`agentDefinitions` through the headless and TUI channels so every
|
|
212
|
+
`agentDefinitions` through the headless and TUI channels so every Robota surface carries the seam.
|
|
171
213
|
- **`@robota-sdk/agent-cli`** — `robota`'s identity (branding, provider surface, presets,
|
|
172
214
|
`packs: [codingPack]`, base command modules, injected transports/runners/subagent factory) is declared as
|
|
173
215
|
data in a product profile and folded by `assembleProduct`. The coding command modules (`/shell`,
|
|
@@ -229,7 +271,7 @@
|
|
|
229
271
|
existing `presets` + `defaultPresetId` shape behaves exactly as before.
|
|
230
272
|
- **`@robota-sdk/agent-cli`** — `resolveCliPreset` is replaced by `resolveShellPreset(externalPresets,
|
|
231
273
|
args, settingsPreset)`, which builds the per-call registry, resolves over it, and returns
|
|
232
|
-
`{ registry, presetId, context, options }` as one value. `
|
|
274
|
+
`{ registry, presetId, context, options }` as one value. `createSelectedProductProfile` takes that whole value,
|
|
233
275
|
so the shell cannot hand the kernel a registry, id, or override context other than the ones it actually
|
|
234
276
|
resolved with. `robota`'s startup path no longer reads `agent-preset`'s module-global resolver; that
|
|
235
277
|
registry remains only as the in-session `/preset` DISCOVERY surface, which is executed inside the
|
|
@@ -237,7 +279,7 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
|
|
|
237
279
|
`loadExternalPresets()` call, so they cannot disagree.
|
|
238
280
|
|
|
239
281
|
End-user `robota` behavior is unchanged: the same preset resolves to the same options, external presets
|
|
240
|
-
in
|
|
282
|
+
in `$PRODUCT_USER_STATE_DIR/presets/*.json` remain visible to both `--preset <id>` and `/preset`, and the assembled
|
|
241
283
|
command-module set, provider surface, tool set, subagent roster, and permission posture are untouched.
|
|
242
284
|
|
|
243
285
|
- 2d3b2c0: ARCH-027 makes product and capability-pack composition contracts exhaustive and observable. Capability
|
|
@@ -250,7 +292,7 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
|
|
|
250
292
|
require `packId`.
|
|
251
293
|
|
|
252
294
|
- 90e7a10: The default background observer warning code and exported `OBSERVER_FAILURE_WARNING_CODE` value
|
|
253
|
-
change from `
|
|
295
|
+
change from `PRODUCT_BACKGROUND_OBSERVER_FAILURE` to `BACKGROUND_OBSERVER_FAILURE`. Hosts matching
|
|
254
296
|
the old warning code should match the new neutral code or provide `observerFailureWarningCode` in
|
|
255
297
|
their background manager or session options. The Robota CLI supplies its existing code explicitly
|
|
256
298
|
across print, goal, serve, MCP, and TUI sessions.
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ The **product-assembly kernel** for the Robota SDK.
|
|
|
4
4
|
|
|
5
5
|
`assembleProduct(profile)` is a **pure, deterministic, IO-free fold** over an `IProductProfile` — the
|
|
6
6
|
composition mechanism a third party imports to build their OWN product on Robota's published runtime.
|
|
7
|
-
|
|
7
|
+
Product identity and its runtime settings are supplied by the host; an external repo can define its own profile.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
package/dist/node/index.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ import { IPreset, IPresetRegistry, IResolvePresetContext, IResolvedPresetOptions
|
|
|
7
7
|
/**
|
|
8
8
|
* A declarative "this is my product" object — the sole argument of {@link assembleProduct}. Everything
|
|
9
9
|
* product-specific lives here as DATA (identity, provider, presets, packs, injected plumbing); the
|
|
10
|
-
* assembler hard-codes no product's choices.
|
|
10
|
+
* assembler hard-codes no product's choices. the configured CLI is one profile among many; an external host brings
|
|
11
11
|
* its own.
|
|
12
12
|
*
|
|
13
13
|
* The responsibility split (ARCH-005): **preset = behavior/persona**, **pack = capability**, **profile =
|
|
@@ -40,7 +40,7 @@ interface IProductProfile {
|
|
|
40
40
|
providerSettings?: IProviderDefinitionConfig;
|
|
41
41
|
/**
|
|
42
42
|
* OPTIONAL injected provider override for advanced/test consumers — a pre-built provider that takes
|
|
43
|
-
* precedence over {@link providerSettings}.
|
|
43
|
+
* precedence over {@link providerSettings}. the configured CLI uses it for `--session-log` replay, where the
|
|
44
44
|
* provider answers from a recorded log instead of a vendor definition.
|
|
45
45
|
*/
|
|
46
46
|
provider?: IAIProvider;
|
|
@@ -65,7 +65,7 @@ interface IProductProfile {
|
|
|
65
65
|
*
|
|
66
66
|
* This is the seam for a shell that must resolve a preset BEFORE it can build the profile — a preset
|
|
67
67
|
* can carry the `model` and `agentName` the profile itself is constructed from, so "resolve, then
|
|
68
|
-
* assemble" is a real ordering constraint, not a
|
|
68
|
+
* assemble" is a real ordering constraint, not a product-specific quirk. Handing the registry in (rather than the
|
|
69
69
|
* presets) is what keeps that pre-assembly resolution and `assembleProduct`'s own resolution on ONE
|
|
70
70
|
* registry instead of two equivalent-but-separate ones (ARCH-008). R8 is unaffected: the registry is
|
|
71
71
|
* still instance-scoped and no module-level state is read or mutated.
|
package/dist/node/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { ITransportRegistryView } from "@robota-sdk/agent-interface-transport";
|
|
|
7
7
|
/**
|
|
8
8
|
* A declarative "this is my product" object — the sole argument of {@link assembleProduct}. Everything
|
|
9
9
|
* product-specific lives here as DATA (identity, provider, presets, packs, injected plumbing); the
|
|
10
|
-
* assembler hard-codes no product's choices.
|
|
10
|
+
* assembler hard-codes no product's choices. the configured CLI is one profile among many; an external host brings
|
|
11
11
|
* its own.
|
|
12
12
|
*
|
|
13
13
|
* The responsibility split (ARCH-005): **preset = behavior/persona**, **pack = capability**, **profile =
|
|
@@ -40,7 +40,7 @@ interface IProductProfile {
|
|
|
40
40
|
providerSettings?: IProviderDefinitionConfig;
|
|
41
41
|
/**
|
|
42
42
|
* OPTIONAL injected provider override for advanced/test consumers — a pre-built provider that takes
|
|
43
|
-
* precedence over {@link providerSettings}.
|
|
43
|
+
* precedence over {@link providerSettings}. the configured CLI uses it for `--session-log` replay, where the
|
|
44
44
|
* provider answers from a recorded log instead of a vendor definition.
|
|
45
45
|
*/
|
|
46
46
|
provider?: IAIProvider;
|
|
@@ -65,7 +65,7 @@ interface IProductProfile {
|
|
|
65
65
|
*
|
|
66
66
|
* This is the seam for a shell that must resolve a preset BEFORE it can build the profile — a preset
|
|
67
67
|
* can carry the `model` and `agentName` the profile itself is constructed from, so "resolve, then
|
|
68
|
-
* assemble" is a real ordering constraint, not a
|
|
68
|
+
* assemble" is a real ordering constraint, not a product-specific quirk. Handing the registry in (rather than the
|
|
69
69
|
* presets) is what keeps that pre-assembly resolution and `assembleProduct`'s own resolution on ONE
|
|
70
70
|
* registry instead of two equivalent-but-separate ones (ARCH-008). R8 is unaffected: the registry is
|
|
71
71
|
* still instance-scoped and no module-level state is read or mutated.
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/assemble-product.ts"],"sourcesContent":["import { mergeCapabilityPacks } from '@robota-sdk/agent-capability-pack';\nimport { createProviderFromConfig } from '@robota-sdk/agent-core';\nimport { buildRuntimeSession } from '@robota-sdk/agent-framework';\nimport { createPresetRegistry } from '@robota-sdk/agent-preset';\n\nimport type { IAssembledProduct, IBuildRuntimeInput, IProductProfile } from './product-profile.js';\nimport type { TCompositionFieldPolicy } from '@robota-sdk/agent-capability-pack';\nimport type {\n FunctionTool,\n IAIProvider,\n IToolWithEventService,\n TPermissionMode,\n} from '@robota-sdk/agent-core';\nimport type {\n IAgentDefinition,\n ICommandHostAdapters,\n ICommandModule,\n TInteractiveSessionOptions,\n} from '@robota-sdk/agent-framework';\nimport type { IPresetRegistry, IResolvedPresetOptions } from '@robota-sdk/agent-preset';\n\nexport const PRODUCT_PROFILE_FIELD_POLICIES = {\n id: 'surfaced',\n agentName: 'surfaced',\n version: 'surfaced',\n providerDefinitions: 'consumed-and-surfaced',\n providerSettings: 'consumed',\n provider: 'consumed-and-surfaced',\n providerErrorGuidance: 'consumed',\n promptFileReferenceTag: 'consumed',\n modelCommandToolPrefix: 'consumed',\n subagentHookEnvironmentNames: 'consumed',\n observerFailureWarningCode: 'consumed',\n presets: 'consumed',\n presetRegistry: 'consumed-and-surfaced',\n defaultPresetId: 'consumed-and-surfaced',\n presetContext: 'consumed',\n packs: 'consumed',\n baseCommandModules: 'consumed',\n backgroundTaskRunners: 'surfaced',\n subagentRunnerFactory: 'surfaced',\n transports: 'consumed-and-surfaced',\n} as const satisfies Record<keyof IProductProfile, TCompositionFieldPolicy>;\n\n/** The product-owned materials the assembler overlays onto the shell-supplied session options. */\ninterface IOverlayMaterials {\n provider: IAIProvider | undefined;\n providerErrorGuidance: IProductProfile['providerErrorGuidance'];\n promptFileReferenceTag: IProductProfile['promptFileReferenceTag'];\n modelCommandToolPrefix: IProductProfile['modelCommandToolPrefix'];\n subagentHookEnvironmentNames: IProductProfile['subagentHookEnvironmentNames'];\n observerFailureWarningCode: IProductProfile['observerFailureWarningCode'];\n commandModules: readonly ICommandModule[];\n tools: readonly FunctionTool[];\n subagents: readonly IAgentDefinition[];\n defaultPermissionMode: TPermissionMode | undefined;\n /** ARCH-009: the instance preset registry, so `/preset` discovers this product's presets. */\n presetRegistry: IPresetRegistry;\n}\n\n/**\n * Overlay the assembled command modules, pack tools, and pack subagents onto the shell's session options.\n * The injected pre-built-session path gets command modules only (its session already owns its tools); the\n * standard construction path also receives the additive pack tools and — via the framework's\n * `agentDefinitions` injection seam (ARCH-005 S2, owner Decision 2) — the merged pack subagents, so a\n * pack's subagents actually reach the runtime instead of being inert material. `agentDefinitions` is left\n * UNSET when no pack contributes one, so the framework's own built-ins + discovery are unchanged.\n *\n * The default preset's `permissionMode` is applied only when the shell left it unset.\n */\nfunction overlaySessionOptions(\n base: TInteractiveSessionOptions,\n materials: IOverlayMaterials,\n): TInteractiveSessionOptions {\n const provider = base.provider ?? materials.provider;\n const providerErrorGuidance = base.providerErrorGuidance ?? materials.providerErrorGuidance;\n const promptFileReferenceTag = base.promptFileReferenceTag ?? materials.promptFileReferenceTag;\n const modelCommandToolPrefix = base.modelCommandToolPrefix ?? materials.modelCommandToolPrefix;\n const subagentHookEnvironmentNames =\n base.subagentHookEnvironmentNames ?? materials.subagentHookEnvironmentNames;\n const observerFailureWarningCode =\n base.observerFailureWarningCode ?? materials.observerFailureWarningCode;\n const permissionModeOverlay =\n base.permissionMode === undefined && materials.defaultPermissionMode !== undefined\n ? { permissionMode: materials.defaultPermissionMode }\n : {};\n // ARCH-007: the shell may hand in a selection it has ALREADY narrowed — `robota` applies its preset's\n // enabled/disabledCommandModules delta to the merged `base ⊕ packs` superset before calling the seam\n // (the spec's composition order: the merge widens, the preset delta narrows). Overwriting it here would\n // silently undo that narrowing, so the assembled set is overlaid only when the caller left it unset —\n // the same \"only when the shell left it unset\" rule `permissionMode` already follows.\n const commandModules = base.commandModules ?? materials.commandModules;\n // ARCH-009: MERGED into the shell's bag, never substituted for it. The shell wires its own adapters\n // there (remote control, process, settings) and the registry stands beside them; replacing the bag\n // would silently drop capabilities this assembler knows nothing about. Both arms get it — an\n // injected session is exactly the embedded-host case the item is about.\n const commandHostAdapters: ICommandHostAdapters = {\n ...base.commandHostAdapters,\n presetRegistry: materials.presetRegistry,\n };\n\n if ('session' in base) {\n return {\n ...base,\n provider,\n ...(providerErrorGuidance !== undefined ? { providerErrorGuidance } : {}),\n ...(promptFileReferenceTag !== undefined ? { promptFileReferenceTag } : {}),\n ...(modelCommandToolPrefix !== undefined ? { modelCommandToolPrefix } : {}),\n ...(subagentHookEnvironmentNames !== undefined ? { subagentHookEnvironmentNames } : {}),\n ...(observerFailureWarningCode !== undefined ? { observerFailureWarningCode } : {}),\n commandModules,\n commandHostAdapters,\n ...permissionModeOverlay,\n };\n }\n\n if (provider === undefined) {\n throw new Error(\n 'assembleProduct: no provider available — the profile carried neither `providerSettings` nor an injected `provider`, and the session options supplied none.',\n );\n }\n\n return {\n ...base,\n provider,\n ...(providerErrorGuidance !== undefined ? { providerErrorGuidance } : {}),\n ...(promptFileReferenceTag !== undefined ? { promptFileReferenceTag } : {}),\n ...(modelCommandToolPrefix !== undefined ? { modelCommandToolPrefix } : {}),\n ...(subagentHookEnvironmentNames !== undefined ? { subagentHookEnvironmentNames } : {}),\n ...(observerFailureWarningCode !== undefined ? { observerFailureWarningCode } : {}),\n commandModules,\n commandHostAdapters,\n additionalTools: [\n ...(base.additionalTools ?? []),\n ...(materials.tools as readonly IToolWithEventService[]),\n ],\n ...(materials.subagents.length > 0 ? { agentDefinitions: materials.subagents } : {}),\n ...permissionModeOverlay,\n };\n}\n\n/**\n * The single product-composition function — a PURE, deterministic, IO-free fold over `IProductProfile`.\n *\n * `assembleProduct` is a **peer** of the repo's already-blessed pure folds (`resolvePreset`,\n * `mergeSettings`, `mergeCapabilityPacks`): it reads only its argument, calls only pure sub-folds and the\n * framework's runtime-construction seam, and hard-codes **no** product's choices — there is ZERO\n * product-specific branching (no `if (profile.id === '…')` ever). Everything product-specific arrives as\n * `profile` DATA. This property is what makes the `agent-product` carve-out safe under the amended\n * project-structure L129 rule, and it is enforced by the three composition-neutrality guards\n * (dependency-graph neutrality, purity/no-IO, no product-name conditionals).\n *\n * What it does:\n * 1. Builds a PER-CALL instance-scoped preset registry over `profile.presets` (R8) — or adopts the\n * instance the caller already built and handed in as `profile.presetRegistry` (ARCH-008). Either way it\n * never mutates agent-preset's module-level `externalPresets` global, so two products in one process do\n * not share one registry and repeat calls do not accumulate. `defaultPresetId` is resolved over that\n * registry with `profile.presetContext`, so the product's `defaultPreset` is the caller's resolution.\n * 2. Merges the additive capability packs onto `profile.baseCommandModules` via `mergeCapabilityPacks`\n * (base ⊕ packs, with a rejection channel — never a silent override).\n * 3. Constructs the provider from `profile.providerDefinitions` + the shell's already-resolved\n * `profile.providerSettings` (owner Decision 1) via agent-core's pure `createProviderFromConfig`; an\n * injected `profile.provider` overrides it.\n * 4. Produces `buildRuntimeOptions`/`buildRuntime`, which DELEGATE runtime construction to\n * `agent-framework`'s `buildRuntimeSession` seam (R2, RUNTIME-001 SSOT) — never re-implementing runtime\n * assembly — overlaying the assembled modules, pack tools, and pack subagents (`agentDefinitions`).\n *\n * Settings/args/env resolution and concrete transports/presentation stay in the shell; `assembleProduct`\n * receives already-resolved data and returns neutral materials the shell binds its own transport over.\n */\nexport function assembleProduct(profile: IProductProfile): IAssembledProduct {\n // (1) Per-call instance-scoped preset registry — pure w.r.t. process state (R8). A caller that had to\n // resolve a preset BEFORE it could build this profile (a preset can carry the `model`/`agentName` the\n // profile is constructed from) hands its own instance in as `presetRegistry`; the assembler then uses\n // THAT one rather than building a second, equivalent registry, so there is exactly one resolution path\n // (ARCH-008). Either way the registry is instance-scoped — no module-level state is read or mutated.\n const presets = profile.presetRegistry ?? createPresetRegistry(profile.presets ?? []);\n const defaultPreset: IResolvedPresetOptions | undefined =\n profile.defaultPresetId !== undefined\n ? presets.resolvePreset(profile.defaultPresetId, profile.presetContext)\n : undefined;\n\n // (2) Additive capability merge — base ⊕ packs, deterministic, with a rejection channel.\n const { merged, acceptedPacks, rejected, rejectedPacks } = mergeCapabilityPacks(\n profile.baseCommandModules ?? [],\n profile.packs ?? [],\n );\n\n // (3) Provider construction — IN-KERNEL, from the profile's definitions + the shell's ALREADY-RESOLVED\n // settings (owner Decision 1). `createProviderFromConfig` is a pure `config → IAIProvider` factory that\n // lives in `@robota-sdk/agent-core` (relocated there by ARCH-PROVIDER-003), an ALLOWED dependency layer,\n // so this reads no fs/env and the fold stays pure. An injected `profile.provider` wins (advanced/test\n // override, e.g. `--session-log` replay); with neither, no provider is constructed and the consumer\n // supplies one in the `buildRuntime` session options (the Mode A shape).\n const provider =\n profile.provider ??\n (profile.providerSettings !== undefined\n ? createProviderFromConfig(profile.providerSettings, profile.providerDefinitions)\n : undefined);\n\n // (4) The runtime-construction delegate — DELEGATES to the framework seam, never re-implements.\n const buildRuntimeOptions = (input: IBuildRuntimeInput): TInteractiveSessionOptions =>\n overlaySessionOptions(input.session, {\n provider,\n providerErrorGuidance: profile.providerErrorGuidance,\n promptFileReferenceTag: profile.promptFileReferenceTag,\n modelCommandToolPrefix: profile.modelCommandToolPrefix,\n subagentHookEnvironmentNames: profile.subagentHookEnvironmentNames,\n observerFailureWarningCode: profile.observerFailureWarningCode,\n commandModules: merged.commandModules,\n tools: merged.tools,\n subagents: merged.subagents,\n defaultPermissionMode: defaultPreset?.permissionMode,\n // ARCH-009: the instance registry reaches the SESSION through the host-adapter bag, so\n // `/preset` discovers through the same presets this product resolved with. It was already\n // assembled here and surfaced on the product; what was missing was the last hop, which is why\n // `/preset` read a module global and why two products in one process shared one mutable list.\n presetRegistry: presets,\n });\n\n return {\n id: profile.id,\n ...(profile.agentName !== undefined ? { agentName: profile.agentName } : {}),\n ...(profile.version !== undefined ? { version: profile.version } : {}),\n ...(provider !== undefined ? { provider } : {}),\n providerDefinitions: profile.providerDefinitions,\n commandModules: merged.commandModules,\n tools: merged.tools,\n subagents: merged.subagents,\n acceptedPacks,\n rejectedCapabilities: rejected,\n rejectedPacks,\n presets,\n resolvePreset: (id, context) => presets.resolvePreset(id, context),\n ...(profile.defaultPresetId !== undefined ? { defaultPresetId: profile.defaultPresetId } : {}),\n ...(defaultPreset !== undefined ? { defaultPreset } : {}),\n backgroundTaskRunners: profile.backgroundTaskRunners ?? [],\n ...(profile.subagentRunnerFactory !== undefined\n ? { subagentRunnerFactory: profile.subagentRunnerFactory }\n : {}),\n ...(profile.transports !== undefined\n ? {\n transports:\n typeof profile.transports === 'function' ? profile.transports() : profile.transports,\n }\n : {}),\n buildRuntimeOptions,\n buildRuntime: (input) => buildRuntimeSession(buildRuntimeOptions(input)),\n };\n}\n"],"mappings":"6QAsEA,SAAS,EACP,EACA,EAC4B,CAC5B,IAAM,EAAW,EAAK,UAAY,EAAU,SACtC,EAAwB,EAAK,uBAAyB,EAAU,sBAChE,EAAyB,EAAK,wBAA0B,EAAU,uBAClE,EAAyB,EAAK,wBAA0B,EAAU,uBAClE,EACJ,EAAK,8BAAgC,EAAU,6BAC3C,EACJ,EAAK,4BAA8B,EAAU,2BACzC,EACJ,EAAK,iBAAmB,IAAA,IAAa,EAAU,wBAA0B,IAAA,GACrE,CAAE,eAAgB,EAAU,qBAAsB,EAClD,CAAC,EAMD,EAAiB,EAAK,gBAAkB,EAAU,eAKlD,EAA4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CACF"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/assemble-product.ts"],"sourcesContent":["import { mergeCapabilityPacks } from '@robota-sdk/agent-capability-pack';\nimport { createProviderFromConfig } from '@robota-sdk/agent-core';\nimport { buildRuntimeSession } from '@robota-sdk/agent-framework';\nimport { createPresetRegistry } from '@robota-sdk/agent-preset';\n\nimport type { IAssembledProduct, IBuildRuntimeInput, IProductProfile } from './product-profile.js';\nimport type { TCompositionFieldPolicy } from '@robota-sdk/agent-capability-pack';\nimport type {\n FunctionTool,\n IAIProvider,\n IToolWithEventService,\n TPermissionMode,\n} from '@robota-sdk/agent-core';\nimport type {\n IAgentDefinition,\n ICommandHostAdapters,\n ICommandModule,\n TInteractiveSessionOptions,\n} from '@robota-sdk/agent-framework';\nimport type { IPresetRegistry, IResolvedPresetOptions } from '@robota-sdk/agent-preset';\n\nexport const PRODUCT_PROFILE_FIELD_POLICIES = {\n id: 'surfaced',\n agentName: 'surfaced',\n version: 'surfaced',\n providerDefinitions: 'consumed-and-surfaced',\n providerSettings: 'consumed',\n provider: 'consumed-and-surfaced',\n providerErrorGuidance: 'consumed',\n promptFileReferenceTag: 'consumed',\n modelCommandToolPrefix: 'consumed',\n subagentHookEnvironmentNames: 'consumed',\n observerFailureWarningCode: 'consumed',\n presets: 'consumed',\n presetRegistry: 'consumed-and-surfaced',\n defaultPresetId: 'consumed-and-surfaced',\n presetContext: 'consumed',\n packs: 'consumed',\n baseCommandModules: 'consumed',\n backgroundTaskRunners: 'surfaced',\n subagentRunnerFactory: 'surfaced',\n transports: 'consumed-and-surfaced',\n} as const satisfies Record<keyof IProductProfile, TCompositionFieldPolicy>;\n\n/** The product-owned materials the assembler overlays onto the shell-supplied session options. */\ninterface IOverlayMaterials {\n provider: IAIProvider | undefined;\n providerErrorGuidance: IProductProfile['providerErrorGuidance'];\n promptFileReferenceTag: IProductProfile['promptFileReferenceTag'];\n modelCommandToolPrefix: IProductProfile['modelCommandToolPrefix'];\n subagentHookEnvironmentNames: IProductProfile['subagentHookEnvironmentNames'];\n observerFailureWarningCode: IProductProfile['observerFailureWarningCode'];\n commandModules: readonly ICommandModule[];\n tools: readonly FunctionTool[];\n subagents: readonly IAgentDefinition[];\n defaultPermissionMode: TPermissionMode | undefined;\n /** ARCH-009: the instance preset registry, so `/preset` discovers this product's presets. */\n presetRegistry: IPresetRegistry;\n}\n\n/**\n * Overlay the assembled command modules, pack tools, and pack subagents onto the shell's session options.\n * The injected pre-built-session path gets command modules only (its session already owns its tools); the\n * standard construction path also receives the additive pack tools and — via the framework's\n * `agentDefinitions` injection seam (ARCH-005 S2, owner Decision 2) — the merged pack subagents, so a\n * pack's subagents actually reach the runtime instead of being inert material. `agentDefinitions` is left\n * UNSET when no pack contributes one, so the framework's own built-ins + discovery are unchanged.\n *\n * The default preset's `permissionMode` is applied only when the shell left it unset.\n */\nfunction overlaySessionOptions(\n base: TInteractiveSessionOptions,\n materials: IOverlayMaterials,\n): TInteractiveSessionOptions {\n const provider = base.provider ?? materials.provider;\n const providerErrorGuidance = base.providerErrorGuidance ?? materials.providerErrorGuidance;\n const promptFileReferenceTag = base.promptFileReferenceTag ?? materials.promptFileReferenceTag;\n const modelCommandToolPrefix = base.modelCommandToolPrefix ?? materials.modelCommandToolPrefix;\n const subagentHookEnvironmentNames =\n base.subagentHookEnvironmentNames ?? materials.subagentHookEnvironmentNames;\n const observerFailureWarningCode =\n base.observerFailureWarningCode ?? materials.observerFailureWarningCode;\n const permissionModeOverlay =\n base.permissionMode === undefined && materials.defaultPermissionMode !== undefined\n ? { permissionMode: materials.defaultPermissionMode }\n : {};\n // ARCH-007: the shell may hand in a selection it has ALREADY narrowed — the configured shell applies its preset's\n // enabled/disabledCommandModules delta to the merged `base ⊕ packs` superset before calling the seam\n // (the spec's composition order: the merge widens, the preset delta narrows). Overwriting it here would\n // silently undo that narrowing, so the assembled set is overlaid only when the caller left it unset —\n // the same \"only when the shell left it unset\" rule `permissionMode` already follows.\n const commandModules = base.commandModules ?? materials.commandModules;\n // ARCH-009: MERGED into the shell's bag, never substituted for it. The shell wires its own adapters\n // there (remote control, process, settings) and the registry stands beside them; replacing the bag\n // would silently drop capabilities this assembler knows nothing about. Both arms get it — an\n // injected session is exactly the embedded-host case the item is about.\n const commandHostAdapters: ICommandHostAdapters = {\n ...base.commandHostAdapters,\n presetRegistry: materials.presetRegistry,\n };\n\n if ('session' in base) {\n return {\n ...base,\n provider,\n ...(providerErrorGuidance !== undefined ? { providerErrorGuidance } : {}),\n ...(promptFileReferenceTag !== undefined ? { promptFileReferenceTag } : {}),\n ...(modelCommandToolPrefix !== undefined ? { modelCommandToolPrefix } : {}),\n ...(subagentHookEnvironmentNames !== undefined ? { subagentHookEnvironmentNames } : {}),\n ...(observerFailureWarningCode !== undefined ? { observerFailureWarningCode } : {}),\n commandModules,\n commandHostAdapters,\n ...permissionModeOverlay,\n };\n }\n\n if (provider === undefined) {\n throw new Error(\n 'assembleProduct: no provider available — the profile carried neither `providerSettings` nor an injected `provider`, and the session options supplied none.',\n );\n }\n\n return {\n ...base,\n provider,\n ...(providerErrorGuidance !== undefined ? { providerErrorGuidance } : {}),\n ...(promptFileReferenceTag !== undefined ? { promptFileReferenceTag } : {}),\n ...(modelCommandToolPrefix !== undefined ? { modelCommandToolPrefix } : {}),\n ...(subagentHookEnvironmentNames !== undefined ? { subagentHookEnvironmentNames } : {}),\n ...(observerFailureWarningCode !== undefined ? { observerFailureWarningCode } : {}),\n commandModules,\n commandHostAdapters,\n additionalTools: [\n ...(base.additionalTools ?? []),\n ...(materials.tools as readonly IToolWithEventService[]),\n ],\n ...(materials.subagents.length > 0 ? { agentDefinitions: materials.subagents } : {}),\n ...permissionModeOverlay,\n };\n}\n\n/**\n * The single product-composition function — a PURE, deterministic, IO-free fold over `IProductProfile`.\n *\n * `assembleProduct` is a **peer** of the repo's already-blessed pure folds (`resolvePreset`,\n * `mergeSettings`, `mergeCapabilityPacks`): it reads only its argument, calls only pure sub-folds and the\n * framework's runtime-construction seam, and hard-codes **no** product's choices — there is ZERO\n * product-specific branching (no `if (profile.id === '…')` ever). Everything product-specific arrives as\n * `profile` DATA. This property is what makes the `agent-product` carve-out safe under the amended\n * project-structure L129 rule, and it is enforced by the three composition-neutrality guards\n * (dependency-graph neutrality, purity/no-IO, no product-name conditionals).\n *\n * What it does:\n * 1. Builds a PER-CALL instance-scoped preset registry over `profile.presets` (R8) — or adopts the\n * instance the caller already built and handed in as `profile.presetRegistry` (ARCH-008). Either way it\n * never mutates agent-preset's module-level `externalPresets` global, so two products in one process do\n * not share one registry and repeat calls do not accumulate. `defaultPresetId` is resolved over that\n * registry with `profile.presetContext`, so the product's `defaultPreset` is the caller's resolution.\n * 2. Merges the additive capability packs onto `profile.baseCommandModules` via `mergeCapabilityPacks`\n * (base ⊕ packs, with a rejection channel — never a silent override).\n * 3. Constructs the provider from `profile.providerDefinitions` + the shell's already-resolved\n * `profile.providerSettings` (owner Decision 1) via agent-core's pure `createProviderFromConfig`; an\n * injected `profile.provider` overrides it.\n * 4. Produces `buildRuntimeOptions`/`buildRuntime`, which DELEGATE runtime construction to\n * `agent-framework`'s `buildRuntimeSession` seam (R2, RUNTIME-001 SSOT) — never re-implementing runtime\n * assembly — overlaying the assembled modules, pack tools, and pack subagents (`agentDefinitions`).\n *\n * Settings/args/env resolution and concrete transports/presentation stay in the shell; `assembleProduct`\n * receives already-resolved data and returns neutral materials the shell binds its own transport over.\n */\nexport function assembleProduct(profile: IProductProfile): IAssembledProduct {\n // (1) Per-call instance-scoped preset registry — pure w.r.t. process state (R8). A caller that had to\n // resolve a preset BEFORE it could build this profile (a preset can carry the `model`/`agentName` the\n // profile is constructed from) hands its own instance in as `presetRegistry`; the assembler then uses\n // THAT one rather than building a second, equivalent registry, so there is exactly one resolution path\n // (ARCH-008). Either way the registry is instance-scoped — no module-level state is read or mutated.\n const presets = profile.presetRegistry ?? createPresetRegistry(profile.presets ?? []);\n const defaultPreset: IResolvedPresetOptions | undefined =\n profile.defaultPresetId !== undefined\n ? presets.resolvePreset(profile.defaultPresetId, profile.presetContext)\n : undefined;\n\n // (2) Additive capability merge — base ⊕ packs, deterministic, with a rejection channel.\n const { merged, acceptedPacks, rejected, rejectedPacks } = mergeCapabilityPacks(\n profile.baseCommandModules ?? [],\n profile.packs ?? [],\n );\n\n // (3) Provider construction — IN-KERNEL, from the profile's definitions + the shell's ALREADY-RESOLVED\n // settings (owner Decision 1). `createProviderFromConfig` is a pure `config → IAIProvider` factory that\n // lives in `@robota-sdk/agent-core` (relocated there by ARCH-PROVIDER-003), an ALLOWED dependency layer,\n // so this reads no fs/env and the fold stays pure. An injected `profile.provider` wins (advanced/test\n // override, e.g. `--session-log` replay); with neither, no provider is constructed and the consumer\n // supplies one in the `buildRuntime` session options (the Mode A shape).\n const provider =\n profile.provider ??\n (profile.providerSettings !== undefined\n ? createProviderFromConfig(profile.providerSettings, profile.providerDefinitions)\n : undefined);\n\n // (4) The runtime-construction delegate — DELEGATES to the framework seam, never re-implements.\n const buildRuntimeOptions = (input: IBuildRuntimeInput): TInteractiveSessionOptions =>\n overlaySessionOptions(input.session, {\n provider,\n providerErrorGuidance: profile.providerErrorGuidance,\n promptFileReferenceTag: profile.promptFileReferenceTag,\n modelCommandToolPrefix: profile.modelCommandToolPrefix,\n subagentHookEnvironmentNames: profile.subagentHookEnvironmentNames,\n observerFailureWarningCode: profile.observerFailureWarningCode,\n commandModules: merged.commandModules,\n tools: merged.tools,\n subagents: merged.subagents,\n defaultPermissionMode: defaultPreset?.permissionMode,\n // ARCH-009: the instance registry reaches the SESSION through the host-adapter bag, so\n // `/preset` discovers through the same presets this product resolved with. It was already\n // assembled here and surfaced on the product; what was missing was the last hop, which is why\n // `/preset` read a module global and why two products in one process shared one mutable list.\n presetRegistry: presets,\n });\n\n return {\n id: profile.id,\n ...(profile.agentName !== undefined ? { agentName: profile.agentName } : {}),\n ...(profile.version !== undefined ? { version: profile.version } : {}),\n ...(provider !== undefined ? { provider } : {}),\n providerDefinitions: profile.providerDefinitions,\n commandModules: merged.commandModules,\n tools: merged.tools,\n subagents: merged.subagents,\n acceptedPacks,\n rejectedCapabilities: rejected,\n rejectedPacks,\n presets,\n resolvePreset: (id, context) => presets.resolvePreset(id, context),\n ...(profile.defaultPresetId !== undefined ? { defaultPresetId: profile.defaultPresetId } : {}),\n ...(defaultPreset !== undefined ? { defaultPreset } : {}),\n backgroundTaskRunners: profile.backgroundTaskRunners ?? [],\n ...(profile.subagentRunnerFactory !== undefined\n ? { subagentRunnerFactory: profile.subagentRunnerFactory }\n : {}),\n ...(profile.transports !== undefined\n ? {\n transports:\n typeof profile.transports === 'function' ? profile.transports() : profile.transports,\n }\n : {}),\n buildRuntimeOptions,\n buildRuntime: (input) => buildRuntimeSession(buildRuntimeOptions(input)),\n };\n}\n"],"mappings":"6QAsEA,SAAS,EACP,EACA,EAC4B,CAC5B,IAAM,EAAW,EAAK,UAAY,EAAU,SACtC,EAAwB,EAAK,uBAAyB,EAAU,sBAChE,EAAyB,EAAK,wBAA0B,EAAU,uBAClE,EAAyB,EAAK,wBAA0B,EAAU,uBAClE,EACJ,EAAK,8BAAgC,EAAU,6BAC3C,EACJ,EAAK,4BAA8B,EAAU,2BACzC,EACJ,EAAK,iBAAmB,IAAA,IAAa,EAAU,wBAA0B,IAAA,GACrE,CAAE,eAAgB,EAAU,qBAAsB,EAClD,CAAC,EAMD,EAAiB,EAAK,gBAAkB,EAAU,eAKlD,EAA4C,CAChD,GAAG,EAAK,oBACR,eAAgB,EAAU,cAC5B,EAEA,GAAI,YAAa,EACf,MAAO,CACL,GAAG,EACH,WACA,GAAI,IAA0B,IAAA,GAAwC,CAAC,EAA7B,CAAE,uBAAsB,EAClE,GAAI,IAA2B,IAAA,GAAyC,CAAC,EAA9B,CAAE,wBAAuB,EACpE,GAAI,IAA2B,IAAA,GAAyC,CAAC,EAA9B,CAAE,wBAAuB,EACpE,GAAI,IAAiC,IAAA,GAA+C,CAAC,EAApC,CAAE,8BAA6B,EAChF,GAAI,IAA+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O,UAClB,sBAAuB,GAAe,eAKtC,eAAgB,CAClB,CAAC,EAEH,MAAO,CACL,GAAI,EAAQ,GACZ,GAAI,EAAQ,YAAc,IAAA,GAA+C,CAAC,EAApC,CAAE,UAAW,EAAQ,SAAU,EACrE,GAAI,EAAQ,UAAY,IAAA,GAA2C,CAAC,EAAhC,CAAE,QAAS,EAAQ,OAAQ,EAC/D,GAAI,IAAa,IAAA,GAA2B,CAAC,EAAhB,CAAE,UAAS,EACxC,oBAAqB,EAAQ,oBAC7B,eAAgB,EAAO,eACvB,MAAO,EAAO,MACd,UAAW,EAAO,UAClB,gBACA,qBAAsB,EACtB,gBACA,UACA,eAAgB,EAAI,IAAY,EAAQ,cAAc,EAAI,CAAO,EACjE,GAAI,EAAQ,kBAAoB,IAAA,GAA2D,CAAC,EAAhD,CAAE,gBAAiB,EAAQ,eAAgB,EACvF,GAAI,IAAkB,IAAA,GAAgC,CAAC,EAArB,CAAE,eAAc,EAClD,sBAAuB,EAAQ,uBAAyB,CAAC,EACzD,GAAI,EAAQ,wBAA0B,IAAA,GAElC,CAAC,EADD,CAAE,sBAAuB,EAAQ,qBAAsB,EAE3D,GAAI,EAAQ,aAAe,IAAA,GAKvB,CAAC,EAJD,CACE,WACE,OAAO,EAAQ,YAAe,WAAa,EAAQ,WAAW,EAAI,EAAQ,UAC9E,EAEJ,sBACA,aAAe,GAAU,EAAoB,EAAoB,CAAK,CAAC,CACzE,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/agent-product",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.88",
|
|
4
4
|
"description": "The product-assembly kernel for the Robota SDK: assembleProduct — a pure, IO-free fold over IProductProfile that delegates runtime construction to agent-framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/node/index.js",
|
|
@@ -31,15 +31,6 @@
|
|
|
31
31
|
},
|
|
32
32
|
"./package.json": "./package.json"
|
|
33
33
|
},
|
|
34
|
-
"repository": {
|
|
35
|
-
"type": "git",
|
|
36
|
-
"url": "https://github.com/woojubb/robota.git",
|
|
37
|
-
"directory": "packages/agent-product"
|
|
38
|
-
},
|
|
39
|
-
"homepage": "https://docs.robota.io/en/packages/agent-product/",
|
|
40
|
-
"bugs": {
|
|
41
|
-
"url": "https://github.com/woojubb/robota/issues"
|
|
42
|
-
},
|
|
43
34
|
"engines": {
|
|
44
35
|
"node": ">=22.12.0"
|
|
45
36
|
},
|
|
@@ -48,11 +39,11 @@
|
|
|
48
39
|
"CHANGELOG.md"
|
|
49
40
|
],
|
|
50
41
|
"dependencies": {
|
|
51
|
-
"@robota-sdk/agent-capability-pack": "3.0.0-beta.
|
|
52
|
-
"@robota-sdk/agent-core": "3.0.0-beta.
|
|
53
|
-
"@robota-sdk/agent-
|
|
54
|
-
"@robota-sdk/agent-
|
|
55
|
-
"@robota-sdk/agent-
|
|
42
|
+
"@robota-sdk/agent-capability-pack": "3.0.0-beta.88",
|
|
43
|
+
"@robota-sdk/agent-core": "3.0.0-beta.88",
|
|
44
|
+
"@robota-sdk/agent-framework": "3.0.0-beta.88",
|
|
45
|
+
"@robota-sdk/agent-interface-transport": "3.0.0-beta.88",
|
|
46
|
+
"@robota-sdk/agent-preset": "3.0.0-beta.88"
|
|
56
47
|
},
|
|
57
48
|
"devDependencies": {
|
|
58
49
|
"rimraf": "^5.0.10",
|
|
@@ -67,6 +58,14 @@
|
|
|
67
58
|
"volta": {
|
|
68
59
|
"extends": "../../package.json"
|
|
69
60
|
},
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "https://github.com/woojubb/robota"
|
|
64
|
+
},
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/woojubb/robota/issues"
|
|
67
|
+
},
|
|
68
|
+
"homepage": "https://robota.io/",
|
|
70
69
|
"scripts": {
|
|
71
70
|
"build": "rimraf dist && tsdown",
|
|
72
71
|
"build:js": "pnpm run build",
|