@arnilo/prism-coding-agent 0.0.4 → 0.0.5
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 +5 -0
- package/README.md +2 -0
- package/dist/edit.js +1 -1
- package/dist/index.js +1 -1
- package/dist/read.js +1 -1
- package/dist/shell.js +1 -1
- package/dist/write.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.0.5] - 2026-07-16
|
|
11
|
+
|
|
12
|
+
- Pinned the required `@arnilo/prism` peer and package metadata to 0.0.5; runtime behavior is unchanged.
|
|
13
|
+
|
|
14
|
+
|
|
10
15
|
## [0.0.4] - 2026-07-14
|
|
11
16
|
|
|
12
17
|
### Added
|
package/README.md
CHANGED
|
@@ -33,6 +33,8 @@ import { createReadOnlyTools } from "@arnilo/prism-coding-agent";
|
|
|
33
33
|
const tools = createToolRegistry(createReadOnlyTools(process.cwd()));
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
Shared `ToolsOptions.executionPolicy` applies to every tool returned by full, all, and read-only aggregators unless a per-tool policy overrides it.
|
|
37
|
+
|
|
36
38
|
Individual tools with options:
|
|
37
39
|
|
|
38
40
|
```ts
|
package/dist/edit.js
CHANGED
|
@@ -101,7 +101,7 @@ export function createEditTool(cwd, options) {
|
|
|
101
101
|
operation: "edit",
|
|
102
102
|
paths: [absolutePath],
|
|
103
103
|
risk: "medium",
|
|
104
|
-
metadata: { editCount: edits.length, signal: context.signal },
|
|
104
|
+
metadata: { editCount: edits.length, sessionId: context.sessionId, runId: context.runId, signal: context.signal },
|
|
105
105
|
}, toolCallId, "edit");
|
|
106
106
|
if (!policyCheck.allowed)
|
|
107
107
|
return policyCheck.result;
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ export function createCodingTools(cwd, options) {
|
|
|
34
34
|
}
|
|
35
35
|
/** Read-only subset: `read` only (this package ships no grep/find/ls). */
|
|
36
36
|
export function createReadOnlyTools(cwd, options) {
|
|
37
|
-
return [createReadTool(cwd, options?.read)];
|
|
37
|
+
return [createReadTool(cwd, withSharedExecutionPolicy(options?.read, options?.executionPolicy))];
|
|
38
38
|
}
|
|
39
39
|
/** Every tool this package provides — identical to {@link createCodingTools} for now. */
|
|
40
40
|
export function createAllTools(cwd, options) {
|
package/dist/read.js
CHANGED
|
@@ -230,7 +230,7 @@ export function createReadTool(cwd, options) {
|
|
|
230
230
|
operation: "read",
|
|
231
231
|
paths: [absolutePath],
|
|
232
232
|
risk: "low",
|
|
233
|
-
metadata: { offset, limit, signal: context.signal },
|
|
233
|
+
metadata: { offset, limit, sessionId: context.sessionId, runId: context.runId, signal: context.signal },
|
|
234
234
|
}, toolCallId, "read");
|
|
235
235
|
if (!policyCheck.allowed)
|
|
236
236
|
return policyCheck.result;
|
package/dist/shell.js
CHANGED
|
@@ -281,7 +281,7 @@ export function createShellTool(cwd, options) {
|
|
|
281
281
|
command: spawnContext.command,
|
|
282
282
|
paths: [spawnContext.cwd],
|
|
283
283
|
risk: "high",
|
|
284
|
-
metadata: { timeout, signal: context.signal },
|
|
284
|
+
metadata: { timeout, sessionId: context.sessionId, runId: context.runId, signal: context.signal },
|
|
285
285
|
}, toolCallId, "shell");
|
|
286
286
|
if (!policyCheck.allowed)
|
|
287
287
|
return policyCheck.result;
|
package/dist/write.js
CHANGED
|
@@ -68,7 +68,7 @@ export function createWriteTool(cwd, options) {
|
|
|
68
68
|
operation: "write",
|
|
69
69
|
paths: [absolutePath],
|
|
70
70
|
risk: "medium",
|
|
71
|
-
metadata: { bytes: Buffer.byteLength(content, "utf-8"), signal: context.signal },
|
|
71
|
+
metadata: { bytes: Buffer.byteLength(content, "utf-8"), sessionId: context.sessionId, runId: context.runId, signal: context.signal },
|
|
72
72
|
}, toolCallId, "write");
|
|
73
73
|
if (!policyCheck.allowed)
|
|
74
74
|
return policyCheck.result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arnilo/prism-coding-agent",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Optional coding-agent tools (shell, read, write, edit) package for Prism.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"diff": "^8.0.4"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@arnilo/prism": "0.0.
|
|
31
|
+
"@arnilo/prism": "0.0.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@arnilo/prism": "file:../.."
|