@demicodes/agent 0.20.0 → 0.22.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/dist/client-entry.d.mts +2 -2
- package/dist/index.d.mts +187 -41
- package/dist/index.mjs +438 -201
- package/dist/stdio-transport.d.mts +1 -1
- package/dist/{transport-_eV2zg9M.d.mts → transport-vzA9vMxT.d.mts} +2 -0
- package/dist/{websocket-transport-BC7OstFf.d.mts → websocket-transport-CyoM_NS1.d.mts} +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as AgentServerTransport, t as AgentClientTransport } from "./transport-
|
|
1
|
+
import { n as AgentServerTransport, t as AgentClientTransport } from "./transport-vzA9vMxT.mjs";
|
|
2
2
|
import { Readable, Writable } from "node:stream";
|
|
3
3
|
//#region src/stdio-transport.d.ts
|
|
4
4
|
declare function createStdioClientTransport(readable: Readable, writable: Writable): AgentClientTransport;
|
|
@@ -194,6 +194,8 @@ interface SubagentProfile<State = unknown> {
|
|
|
194
194
|
commands?(parentCommands: Command[]): Command[];
|
|
195
195
|
/** Reject filesystem writes and process spawns on the child's Host. */
|
|
196
196
|
readonly?: boolean;
|
|
197
|
+
/** When false, the child cannot spawn subagents of its own (communication and reads remain). */
|
|
198
|
+
canSpawnSubagents?: boolean;
|
|
197
199
|
model?: ModelSelection;
|
|
198
200
|
}
|
|
199
201
|
interface AgentHarness<State = unknown> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as ModelSwitchApply, c as ConversationSummary, n as AgentServerTransport, p as AbortResult, s as ClientSessionEvent, t as AgentClientTransport, x as AgentMetadata } from "./transport-
|
|
1
|
+
import { I as ModelSwitchApply, c as ConversationSummary, n as AgentServerTransport, p as AbortResult, s as ClientSessionEvent, t as AgentClientTransport, x as AgentMetadata } from "./transport-vzA9vMxT.mjs";
|
|
2
2
|
import { ProviderSelection } from "@demicodes/provider";
|
|
3
3
|
import { Block, UserContentBlock } from "@demicodes/core";
|
|
4
4
|
//#region src/client.d.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@demicodes/agent",
|
|
3
3
|
"description": "Session runtime and transport-neutral client and server protocol for Demi.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.22.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@demicodes/core": "^0.
|
|
23
|
-
"@demicodes/provider": "^0.
|
|
24
|
-
"@demicodes/shell": "^0.
|
|
25
|
-
"@demicodes/utils": "^0.
|
|
22
|
+
"@demicodes/core": "^0.22.0",
|
|
23
|
+
"@demicodes/provider": "^0.22.0",
|
|
24
|
+
"@demicodes/shell": "^0.22.0",
|
|
25
|
+
"@demicodes/utils": "^0.22.0",
|
|
26
26
|
"zod": "^4.0.0"
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|