@robota-sdk/agent-product 3.0.0-beta.83 → 3.0.0-beta.85
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 +36 -0
- package/README.md +28 -4
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @robota-sdk/agent-product
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.85
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [4e11579]
|
|
8
|
+
- Updated dependencies [41cca13]
|
|
9
|
+
- Updated dependencies [193a0bc]
|
|
10
|
+
- Updated dependencies [54e2848]
|
|
11
|
+
- Updated dependencies [3c1967f]
|
|
12
|
+
- Updated dependencies [ada3841]
|
|
13
|
+
- Updated dependencies [5093a30]
|
|
14
|
+
- Updated dependencies [5684612]
|
|
15
|
+
- Updated dependencies [6ee8725]
|
|
16
|
+
- Updated dependencies [6072e9a]
|
|
17
|
+
- Updated dependencies [94b2c87]
|
|
18
|
+
- Updated dependencies [3ab2eca]
|
|
19
|
+
- Updated dependencies [2e07cad]
|
|
20
|
+
- @robota-sdk/agent-framework@3.0.0-beta.85
|
|
21
|
+
- @robota-sdk/agent-core@3.0.0-beta.85
|
|
22
|
+
- @robota-sdk/agent-preset@3.0.0-beta.85
|
|
23
|
+
- @robota-sdk/agent-capability-pack@3.0.0-beta.85
|
|
24
|
+
- @robota-sdk/agent-interface-transport@3.0.0-beta.85
|
|
25
|
+
|
|
26
|
+
## 3.0.0-beta.84
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [9f46375]
|
|
31
|
+
- Updated dependencies [e8d70ac]
|
|
32
|
+
- Updated dependencies [9c6a8db]
|
|
33
|
+
- @robota-sdk/agent-core@3.0.0-beta.84
|
|
34
|
+
- @robota-sdk/agent-framework@3.0.0-beta.84
|
|
35
|
+
- @robota-sdk/agent-capability-pack@3.0.0-beta.84
|
|
36
|
+
- @robota-sdk/agent-interface-transport@3.0.0-beta.84
|
|
37
|
+
- @robota-sdk/agent-preset@3.0.0-beta.84
|
|
38
|
+
|
|
3
39
|
## 3.0.0-beta.83
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -6,13 +6,20 @@ The **product-assembly kernel** for the Robota SDK.
|
|
|
6
6
|
composition mechanism a third party imports to build their OWN product on Robota's published runtime.
|
|
7
7
|
`robota` is one profile among many; an external repo brings its own.
|
|
8
8
|
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @robota-sdk/agent-product
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
9
17
|
```ts
|
|
10
18
|
import { assembleProduct } from '@robota-sdk/agent-product';
|
|
11
19
|
import type { ICapabilityPack } from '@robota-sdk/agent-capability-pack';
|
|
12
|
-
import type {
|
|
20
|
+
import type { IProviderDefinition } from '@robota-sdk/agent-core';
|
|
13
21
|
|
|
14
22
|
declare const providerDefinitions: readonly IProviderDefinition[]; // e.g. agent-builtin-providers
|
|
15
|
-
declare const provider: IAIProvider;
|
|
16
23
|
declare const acmeJiraPack: ICapabilityPack;
|
|
17
24
|
declare const cwd: string;
|
|
18
25
|
|
|
@@ -28,7 +35,9 @@ const product = assembleProduct({
|
|
|
28
35
|
});
|
|
29
36
|
|
|
30
37
|
// The external repo binds product.buildRuntime(...) to ITS OWN presentation/transport.
|
|
31
|
-
|
|
38
|
+
// A provider passed in the session options would take precedence over the constructed one.
|
|
39
|
+
if (product.provider === undefined) throw new Error('no provider configured');
|
|
40
|
+
const session = product.buildRuntime({ session: { cwd, provider: product.provider } });
|
|
32
41
|
void product.acceptedPacks;
|
|
33
42
|
void product.rejectedCapabilities;
|
|
34
43
|
void product.rejectedPacks;
|
|
@@ -40,7 +49,22 @@ It resolves presets via a per-call instance-scoped registry (never mutating a gl
|
|
|
40
49
|
capability packs while preserving accepted metadata and both rejection channels, and **delegates runtime
|
|
41
50
|
construction** to `agent-framework`'s `buildRuntimeSession` seam
|
|
42
51
|
— it never re-implements runtime assembly, and never imports a concrete transport, the TUI, or the CLI
|
|
43
|
-
(those are injected via the profile).
|
|
52
|
+
(those are injected via the profile).
|
|
53
|
+
|
|
54
|
+
## Exports
|
|
55
|
+
|
|
56
|
+
- `assembleProduct(profile)` — the fold.
|
|
57
|
+
- `IProductProfile` — the product declaration: identity, provider surface, presets, capability packs, base
|
|
58
|
+
command modules, and injected plumbing.
|
|
59
|
+
- `IAssembledProduct` — the result: the constructed provider, the merged command modules, tools, and
|
|
60
|
+
subagents, accepted pack metadata and both rejection channels, the preset registry and resolved
|
|
61
|
+
default preset, `buildRuntimeOptions(input)` (the session options with the product's materials laid
|
|
62
|
+
on top, for inspection), and `buildRuntime(input)`.
|
|
63
|
+
- `IBuildRuntimeInput` — the session options the shell resolves and passes to `buildRuntime`.
|
|
64
|
+
|
|
65
|
+
Capability packs come from [`@robota-sdk/agent-capability-pack`](../agent-capability-pack/README.md);
|
|
66
|
+
[`@robota-sdk/pack-coding`](../pack-coding/README.md) is Robota's coding pack. See
|
|
67
|
+
[`docs/SPEC.md`](./docs/SPEC.md) for the full contract.
|
|
44
68
|
|
|
45
69
|
## License
|
|
46
70
|
|
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.85",
|
|
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",
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
36
|
-
"url": "https://github.com/woojubb/robota.git"
|
|
36
|
+
"url": "https://github.com/woojubb/robota.git",
|
|
37
|
+
"directory": "packages/agent-product"
|
|
37
38
|
},
|
|
38
|
-
"homepage": "https://robota.io/",
|
|
39
|
+
"homepage": "https://docs.robota.io/en/packages/agent-product/",
|
|
39
40
|
"bugs": {
|
|
40
41
|
"url": "https://github.com/woojubb/robota/issues"
|
|
41
42
|
},
|
|
@@ -47,11 +48,11 @@
|
|
|
47
48
|
"CHANGELOG.md"
|
|
48
49
|
],
|
|
49
50
|
"dependencies": {
|
|
50
|
-
"@robota-sdk/agent-capability-pack": "3.0.0-beta.
|
|
51
|
-
"@robota-sdk/agent-
|
|
52
|
-
"@robota-sdk/agent-
|
|
53
|
-
"@robota-sdk/agent-interface-transport": "3.0.0-beta.
|
|
54
|
-
"@robota-sdk/agent-preset": "3.0.0-beta.
|
|
51
|
+
"@robota-sdk/agent-capability-pack": "3.0.0-beta.85",
|
|
52
|
+
"@robota-sdk/agent-framework": "3.0.0-beta.85",
|
|
53
|
+
"@robota-sdk/agent-core": "3.0.0-beta.85",
|
|
54
|
+
"@robota-sdk/agent-interface-transport": "3.0.0-beta.85",
|
|
55
|
+
"@robota-sdk/agent-preset": "3.0.0-beta.85"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"rimraf": "^5.0.10",
|