@robota-sdk/pack-coding 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 +34 -0
- package/README.md +28 -15
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @robota-sdk/pack-coding
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.85
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [4e11579]
|
|
8
|
+
- Updated dependencies [193a0bc]
|
|
9
|
+
- Updated dependencies [54e2848]
|
|
10
|
+
- Updated dependencies [3c1967f]
|
|
11
|
+
- Updated dependencies [db35dcd]
|
|
12
|
+
- Updated dependencies [4cee6fb]
|
|
13
|
+
- Updated dependencies [043fd27]
|
|
14
|
+
- Updated dependencies [5684612]
|
|
15
|
+
- Updated dependencies [6ee8725]
|
|
16
|
+
- Updated dependencies [6072e9a]
|
|
17
|
+
- Updated dependencies [2e07cad]
|
|
18
|
+
- @robota-sdk/agent-framework@3.0.0-beta.85
|
|
19
|
+
- @robota-sdk/agent-command@3.0.0-beta.85
|
|
20
|
+
- @robota-sdk/agent-capability-pack@3.0.0-beta.85
|
|
21
|
+
- @robota-sdk/agent-tool-defaults@3.0.0-beta.85
|
|
22
|
+
- @robota-sdk/agent-tools@3.0.0-beta.85
|
|
23
|
+
|
|
24
|
+
## 3.0.0-beta.84
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [c7f213c]
|
|
29
|
+
- Updated dependencies [e8d70ac]
|
|
30
|
+
- Updated dependencies [9c6a8db]
|
|
31
|
+
- @robota-sdk/agent-tool-defaults@3.0.0-beta.84
|
|
32
|
+
- @robota-sdk/agent-framework@3.0.0-beta.84
|
|
33
|
+
- @robota-sdk/agent-command@3.0.0-beta.84
|
|
34
|
+
- @robota-sdk/agent-tools@3.0.0-beta.84
|
|
35
|
+
- @robota-sdk/agent-capability-pack@3.0.0-beta.84
|
|
36
|
+
|
|
3
37
|
## 3.0.0-beta.83
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
# @robota-sdk/pack-coding
|
|
2
2
|
|
|
3
|
-
Robota's
|
|
4
|
-
|
|
3
|
+
Robota's coding capability as a single
|
|
4
|
+
[`ICapabilityPack`](../agent-capability-pack/README.md): the built-in coding tools, the coding command
|
|
5
|
+
modules, and the coding subagents in one unit that `assembleProduct` can add to any product. The
|
|
6
|
+
`robota` CLI uses it for its own coding assistant.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @robota-sdk/pack-coding
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
5
15
|
|
|
6
16
|
```ts
|
|
7
17
|
import { assembleProduct } from '@robota-sdk/agent-product';
|
|
@@ -11,33 +21,36 @@ import type { IAIProvider, IProviderDefinition } from '@robota-sdk/agent-core';
|
|
|
11
21
|
declare const providerDefinitions: readonly IProviderDefinition[];
|
|
12
22
|
declare const provider: IAIProvider;
|
|
13
23
|
|
|
24
|
+
const cwd = process.cwd();
|
|
14
25
|
const product = assembleProduct({
|
|
15
26
|
id: 'acme-assistant',
|
|
16
27
|
providerDefinitions,
|
|
17
|
-
|
|
18
|
-
// robota's coding tools, /shell + /editor + /git commands, and coding subagents — the file tools are
|
|
28
|
+
// The coding tools, /shell + /editor + /git commands, and coding subagents. The file tools are
|
|
19
29
|
// scoped to the cwd you build the pack with.
|
|
20
|
-
packs: [createCodingPack({ cwd
|
|
30
|
+
packs: [createCodingPack({ cwd })],
|
|
21
31
|
});
|
|
22
|
-
|
|
32
|
+
|
|
33
|
+
const session = product.buildRuntime({ session: { cwd, provider } });
|
|
34
|
+
void session;
|
|
23
35
|
```
|
|
24
36
|
|
|
25
37
|
The pack bundles:
|
|
26
38
|
|
|
27
39
|
- **tools** — `Shell`, `Bash`, `Read`, `Write`, `Edit`, `Glob`, `Grep`, `WebFetch`, `WebSearch`,
|
|
28
|
-
`AskUserQuestion` (
|
|
29
|
-
- **commandModules** — `/shell`, `/editor`, and `/git` (
|
|
30
|
-
- **subagents** — `general-purpose`, `Explore`, `Plan
|
|
40
|
+
`AskUserQuestion` (from `@robota-sdk/agent-tool-defaults`' `createDefaultTools`).
|
|
41
|
+
- **commandModules** — `/shell`, `/editor`, and `/git` (from `@robota-sdk/agent-command`).
|
|
42
|
+
- **subagents** — `general-purpose`, `Explore`, `Plan` (agent-framework's built-in agents).
|
|
31
43
|
|
|
32
|
-
|
|
33
|
-
|
|
44
|
+
`createCodingPack` passes its `cwd` and optional `sandboxClient` straight to the default tool factory,
|
|
45
|
+
so the pack adds, drops, or reorders none of those tools. Its other options are `shellExecutable` (the
|
|
46
|
+
shell for the tools and `/shell`) and `editorTemporaryDirectoryPrefix` (for `/editor`).
|
|
34
47
|
|
|
35
48
|
## Why a factory, and why `cwd` is required
|
|
36
49
|
|
|
37
|
-
There is deliberately **no context-free `codingPack` constant**. The tool layer
|
|
38
|
-
execution root
|
|
39
|
-
constructs it.
|
|
40
|
-
See [`docs/SPEC.md`](./docs/SPEC.md).
|
|
50
|
+
There is deliberately **no context-free `codingPack` constant**. The tool layer refuses a missing
|
|
51
|
+
execution root, and this factory also requires `cwd` so each pack's file tools are scoped to the
|
|
52
|
+
session that constructs it. That matters most when a product hands its whole tool surface to packs by
|
|
53
|
+
passing `defaultTools: []` in the session options. See [`docs/SPEC.md`](./docs/SPEC.md).
|
|
41
54
|
|
|
42
55
|
## License
|
|
43
56
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robota-sdk/pack-coding",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.85",
|
|
4
4
|
"description": "Robota's coding capability pack — an ICapabilityPack bundling the built-in coding tools, coding command modules, and coding subagents",
|
|
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/pack-coding"
|
|
37
38
|
},
|
|
38
|
-
"homepage": "https://robota.io/",
|
|
39
|
+
"homepage": "https://docs.robota.io/en/packages/pack-coding/",
|
|
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-tool-defaults": "3.0.0-beta.
|
|
54
|
-
"@robota-sdk/agent-tools": "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-command": "3.0.0-beta.85",
|
|
54
|
+
"@robota-sdk/agent-tool-defaults": "3.0.0-beta.85",
|
|
55
|
+
"@robota-sdk/agent-tools": "3.0.0-beta.85"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"rimraf": "^5.0.10",
|