@a3s-lab/code 4.0.0 → 4.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 +19 -0
- package/generated.d.ts +7 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -320,6 +320,25 @@ console.log(await session.mcps())
|
|
|
320
320
|
The positional `addMcpServer(...)` overload and longer
|
|
321
321
|
`addMcpServerConfig(...)` alias remain for compatibility.
|
|
322
322
|
|
|
323
|
+
## Filesystem-First Agents
|
|
324
|
+
|
|
325
|
+
Define a durable agent as a **directory** — `instructions.md` (required) plus
|
|
326
|
+
optional `agent.acl`, `skills/`, `schedules/` (cron), and `tools/` (`kind: mcp` or
|
|
327
|
+
`kind: script` sandboxed QuickJS) — and serve its schedules. Each fire is a full
|
|
328
|
+
harness turn (context, tool visibility, safety gate, verification). Returns a
|
|
329
|
+
handle you must keep and stop explicitly.
|
|
330
|
+
|
|
331
|
+
```js
|
|
332
|
+
const handle = await agent.serveAgentDir('./my-agent', './workspace', {
|
|
333
|
+
// Optional: pass a sessionStore so each schedule resumes its accumulated
|
|
334
|
+
// context across daemon restarts.
|
|
335
|
+
sessionStore: new FileSessionStore('./sessions'),
|
|
336
|
+
})
|
|
337
|
+
// ... runs in the background until:
|
|
338
|
+
await handle.stop()
|
|
339
|
+
console.log(handle.isStopped()) // true
|
|
340
|
+
```
|
|
341
|
+
|
|
323
342
|
## HITL Confirmations
|
|
324
343
|
|
|
325
344
|
Use `permissionPolicy` to decide which tools ask, then `confirmationPolicy` to
|
package/generated.d.ts
CHANGED
|
@@ -413,6 +413,13 @@ export interface SessionOptions {
|
|
|
413
413
|
builtinSkills?: boolean
|
|
414
414
|
/** Extra directories to scan for skill files (.md with YAML frontmatter). */
|
|
415
415
|
skillDirs?: Array<string>
|
|
416
|
+
/**
|
|
417
|
+
* Whether active skill allowed-tools restrict ordinary session tool calls.
|
|
418
|
+
*
|
|
419
|
+
* Defaults to false. Set true to restore the legacy global active-skill
|
|
420
|
+
* restriction before permission policy, hooks, HITL, or AHP run.
|
|
421
|
+
*/
|
|
422
|
+
enforceActiveSkillToolRestrictions?: boolean
|
|
416
423
|
/** Extra directories to scan for agent files. */
|
|
417
424
|
agentDirs?: Array<string>
|
|
418
425
|
/** Reproducible disposable workers to register for task delegation. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a3s-lab/code",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "A3S Code - Native Node.js bindings for the coding-agent runtime",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"test:helpers": "node test-helpers.mjs"
|
|
44
44
|
},
|
|
45
45
|
"optionalDependencies": {
|
|
46
|
-
"@a3s-lab/code-darwin-arm64": "4.
|
|
47
|
-
"@a3s-lab/code-linux-x64-gnu": "4.
|
|
48
|
-
"@a3s-lab/code-linux-x64-musl": "4.
|
|
49
|
-
"@a3s-lab/code-linux-arm64-gnu": "4.
|
|
50
|
-
"@a3s-lab/code-linux-arm64-musl": "4.
|
|
51
|
-
"@a3s-lab/code-win32-x64-msvc": "4.
|
|
46
|
+
"@a3s-lab/code-darwin-arm64": "4.1.0",
|
|
47
|
+
"@a3s-lab/code-linux-x64-gnu": "4.1.0",
|
|
48
|
+
"@a3s-lab/code-linux-x64-musl": "4.1.0",
|
|
49
|
+
"@a3s-lab/code-linux-arm64-gnu": "4.1.0",
|
|
50
|
+
"@a3s-lab/code-linux-arm64-musl": "4.1.0",
|
|
51
|
+
"@a3s-lab/code-win32-x64-msvc": "4.1.0"
|
|
52
52
|
}
|
|
53
53
|
}
|