@fishwithcat/dsh-subagent 0.2.2-alpha.2 → 0.2.2-alpha.3
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.i18n.yaml +39 -24
- package/README.md +41 -20
- package/README.zh.md +41 -20
- package/lib/index.js +573 -872
- package/lib/typert.host.js +64 -120
- package/lib/typert.remote-client.d.ts +3 -3
- package/lib/typert.remote-client.js +17 -63
- package/lib/types/activation.d.ts +15 -25
- package/lib/types/activation.js +1 -1
- package/lib/types/archive-admission.d.ts +11 -4
- package/lib/types/archive-admission.js +39 -115
- package/lib/types/child-agent.d.ts +7 -17
- package/lib/types/child-agent.js +6 -4
- package/lib/types/continuation-messages.d.ts +8 -7
- package/lib/types/continuation-messages.js +12 -14
- package/lib/types/control-types.d.ts +7 -28
- package/lib/types/control.d.ts +0 -4
- package/lib/types/control.js +1 -5
- package/lib/types/descriptor.d.ts +1 -1
- package/lib/types/descriptor.js +1 -1
- package/lib/types/index.d.ts +46 -95
- package/lib/types/index.js +83 -146
- package/lib/types/lifecycle.d.ts +9 -38
- package/lib/types/lifecycle.js +5 -31
- package/lib/types/manager.d.ts +74 -109
- package/lib/types/manager.js +394 -568
- package/lib/types/projection-types.d.ts +14 -6
- package/lib/types/projection.d.ts +2 -2
- package/lib/types/structured.d.ts +1 -1
- package/lib/types/structured.js +2 -2
- package/lib/types/types.d.ts +16 -28
- package/lib/types/types.js +2 -4
- package/package.json +53 -57
- package/lib/types/internal.d.ts +0 -58
- package/lib/types/internal.js +0 -58
|
@@ -4,20 +4,28 @@
|
|
|
4
4
|
* @module @deepseek-ai/dsh-subagent/projection-types
|
|
5
5
|
*/
|
|
6
6
|
import type { SessionId, SessionSeq } from '@deepseek-ai/dsh-session/types';
|
|
7
|
-
/**
|
|
8
|
-
export type
|
|
9
|
-
|
|
10
|
-
readonly createdAt: number;
|
|
11
|
-
} & ({
|
|
7
|
+
/** Known child modes and their creation labels, shared by catalog views. */
|
|
8
|
+
export type KnownSubagentCatalogFields = {
|
|
9
|
+
/** A terminal one-shot child. */
|
|
12
10
|
readonly mode: 'one-shot';
|
|
11
|
+
/** Optional durable creation label from the parent catalog. */
|
|
13
12
|
readonly label?: string;
|
|
14
13
|
} | {
|
|
14
|
+
/** An external execution without a local child Session. */
|
|
15
15
|
readonly mode: 'external';
|
|
16
|
+
/** Optional durable creation label from the parent catalog. */
|
|
16
17
|
readonly label?: string;
|
|
17
18
|
} | {
|
|
19
|
+
/** A resumable conversation. */
|
|
18
20
|
readonly mode: 'continuable';
|
|
21
|
+
/** Durable creation label from the parent catalog. */
|
|
19
22
|
readonly label: string;
|
|
20
|
-
}
|
|
23
|
+
};
|
|
24
|
+
/** One current direct-child discovery row materialized from parent facts. */
|
|
25
|
+
export type SubagentCatalogEntry = {
|
|
26
|
+
readonly id: SessionId;
|
|
27
|
+
readonly createdAt: number;
|
|
28
|
+
} & (KnownSubagentCatalogFields | {
|
|
21
29
|
readonly mode: 'unknown';
|
|
22
30
|
readonly label?: string;
|
|
23
31
|
});
|
|
@@ -64,7 +64,8 @@ export declare const subagentTimingProjectionDefinition: {
|
|
|
64
64
|
};
|
|
65
65
|
stateVersion: number;
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
/** Descriptor identity retained by the subagent projection. */
|
|
68
|
+
export interface IdentityState {
|
|
68
69
|
/** Identity from the last valid descriptor; absent before one, and after an invalid one. */
|
|
69
70
|
identity?: SubagentIdentityProjection | undefined;
|
|
70
71
|
}
|
|
@@ -90,5 +91,4 @@ export declare const subagentIdentityProjectionDefinition: {
|
|
|
90
91
|
};
|
|
91
92
|
stateVersion: number;
|
|
92
93
|
};
|
|
93
|
-
export {};
|
|
94
94
|
//# sourceMappingURL=projection.d.ts.map
|
|
@@ -42,7 +42,7 @@ export interface StructuredAttachment {
|
|
|
42
42
|
* @param childCtx - the child agent's scope context (`setup`'s argument).
|
|
43
43
|
* @param schema - the trusted, already-asserted schema subset to enforce (see
|
|
44
44
|
* `assertObjectJsonSchema` in dsh-tools).
|
|
45
|
-
* @param canComplete - whether accepted input
|
|
45
|
+
* @param canComplete - whether accepted input has been processed.
|
|
46
46
|
* @returns the attachment handle (read `captured()` after the child settles).
|
|
47
47
|
*/
|
|
48
48
|
export declare function attachStructuredRuntime(childCtx: Context, schema: ObjectJsonSchema, canComplete: () => boolean): StructuredAttachment;
|
package/lib/types/structured.js
CHANGED
|
@@ -26,7 +26,7 @@ export const STRUCTURED_OUTPUT_INSTRUCTION = 'When you have your final answer, y
|
|
|
26
26
|
* @param childCtx - the child agent's scope context (`setup`'s argument).
|
|
27
27
|
* @param schema - the trusted, already-asserted schema subset to enforce (see
|
|
28
28
|
* `assertObjectJsonSchema` in dsh-tools).
|
|
29
|
-
* @param canComplete - whether accepted input
|
|
29
|
+
* @param canComplete - whether accepted input has been processed.
|
|
30
30
|
* @returns the attachment handle (read `captured()` after the child settles).
|
|
31
31
|
*/
|
|
32
32
|
export function attachStructuredRuntime(childCtx, schema, canComplete) {
|
|
@@ -67,7 +67,7 @@ export function attachStructuredRuntime(childCtx, schema, canComplete) {
|
|
|
67
67
|
if (violations.length > 0)
|
|
68
68
|
throw new ToolArgsError(violations);
|
|
69
69
|
if (!canComplete())
|
|
70
|
-
throw new Error('
|
|
70
|
+
throw new Error('Process pending messages before submitting structured output.');
|
|
71
71
|
// Two-phase commit, keyed by THIS execution: later transformable
|
|
72
72
|
// waterfalls may still turn the success into an error. ToolRuntime has
|
|
73
73
|
// already frozen model-bound arguments at the actual input boundary.
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The seam's consumer-facing contracts: request, result, and capability types
|
|
3
3
|
* for {@link SubagentProvider}, plus the `subagent/start` and `subagent/end`
|
|
4
|
-
* payloads that plugins and hosts observe. Internal control interfaces
|
|
5
|
-
*
|
|
6
|
-
* manager host in `./manager.ts` — so this module stays the published
|
|
7
|
-
* surface rather than a bag of everything type-shaped.
|
|
4
|
+
* payloads that plugins and hosts observe. Internal control interfaces, such
|
|
5
|
+
* as the manager host, belong with their implementation.
|
|
8
6
|
*
|
|
9
7
|
* @module @deepseek-ai/dsh-subagent/types
|
|
10
8
|
*/
|
|
@@ -13,7 +11,7 @@ import type { Branded } from '@deepseek-ai/dsh-brand';
|
|
|
13
11
|
import type { ContentBlock, MessageId } from '@deepseek-ai/dsh-llm';
|
|
14
12
|
import type { SessionEvent, SessionId } from '@deepseek-ai/dsh-session';
|
|
15
13
|
import type { ObjectJsonSchema } from '@deepseek-ai/dsh-tools';
|
|
16
|
-
/** Identifies one
|
|
14
|
+
/** Identifies one subagent residency epoch across its lifecycle event pair. */
|
|
17
15
|
export type SubagentRunId = Branded<'SubagentRunId'>;
|
|
18
16
|
/**
|
|
19
17
|
* Brand a string as a {@link SubagentRunId}.
|
|
@@ -22,15 +20,13 @@ export type SubagentRunId = Branded<'SubagentRunId'>;
|
|
|
22
20
|
*/
|
|
23
21
|
export declare function SubagentRunId(id: string): SubagentRunId;
|
|
24
22
|
/** One managed child execution and its result delivery policy. */
|
|
25
|
-
export interface SubagentActivationSpec {
|
|
23
|
+
export interface SubagentActivationSpec extends Omit<SubagentStartRequest, 'label' | 'signal'> {
|
|
26
24
|
/** Registered backend to use. */
|
|
27
25
|
readonly provider: string;
|
|
28
26
|
/** Short task label retained in cataloged child membership. */
|
|
29
27
|
readonly label: string;
|
|
30
28
|
/** Optional reserved identity for a local child; external backends allocate their own ids. */
|
|
31
29
|
readonly childId?: SessionId;
|
|
32
|
-
/** Task, parent, and backend-supported execution options. */
|
|
33
|
-
readonly request: Omit<SubagentStartRequest, 'label' | 'signal'>;
|
|
34
30
|
/** Cancellation before publication; callers own later cancellation through dispose. */
|
|
35
31
|
readonly signal: AbortSignal;
|
|
36
32
|
/** Parent delivery notifies the model; caller delivery only returns the result. Local children always enter the parent catalog. */
|
|
@@ -47,38 +43,39 @@ export interface SubagentActivation {
|
|
|
47
43
|
* Teardown failures are reported by dispose() without replacing a captured result.
|
|
48
44
|
*/
|
|
49
45
|
readonly result: Promise<SubagentResult>;
|
|
50
|
-
/** Stop and release this activation
|
|
46
|
+
/** Stop and release only this activation; rejects on teardown failure. */
|
|
51
47
|
dispose(): Promise<void>;
|
|
52
48
|
}
|
|
53
49
|
/**
|
|
54
|
-
* Authority under which one interrupt request is admitted. `user`
|
|
55
|
-
*
|
|
56
|
-
*
|
|
50
|
+
* Authority under which one interrupt request is admitted. `user` is a trusted
|
|
51
|
+
* host operation; Remote callers need permission on the target Session before
|
|
52
|
+
* invoking it. `ancestor` carries an exact live Agent in the target's creation ancestry.
|
|
57
53
|
*/
|
|
58
54
|
export type SubagentInterruptAuthority = {
|
|
59
55
|
readonly kind: 'user';
|
|
60
|
-
readonly parentSessionId: SessionId;
|
|
61
56
|
} | {
|
|
62
57
|
readonly kind: 'ancestor';
|
|
63
58
|
readonly agent: Agent;
|
|
64
59
|
};
|
|
65
|
-
/** Options for one model-authored message
|
|
60
|
+
/** Options for one model-authored message within a subagent tree. */
|
|
66
61
|
export interface SubagentSendMessageOptions {
|
|
67
62
|
/** Caller cancellation, owning the operation only until inbox acceptance. */
|
|
68
63
|
readonly signal: AbortSignal;
|
|
69
64
|
}
|
|
70
65
|
/**
|
|
71
66
|
* Observe-only identifying detail for a published subagent run, carried by
|
|
72
|
-
* `subagent/start`. Local and external activations share
|
|
67
|
+
* `subagent/start` and `subagent/end`. Local and external activations share it.
|
|
73
68
|
*/
|
|
74
69
|
export interface SubagentRunInfo {
|
|
75
|
-
/** Unique identity shared
|
|
70
|
+
/** Unique identity shared by one residency epoch's start/end pair. */
|
|
76
71
|
readonly runId: SubagentRunId;
|
|
77
72
|
/**
|
|
78
73
|
* Provider name recorded when the child was first created, retained even
|
|
79
74
|
* after that provider is unregistered.
|
|
80
75
|
*/
|
|
81
76
|
readonly provider: string;
|
|
77
|
+
/** Durable direct creator, independent of the live subagent tree root. */
|
|
78
|
+
readonly parentSessionId: SessionId;
|
|
82
79
|
/** The child agent's id. */
|
|
83
80
|
readonly id: SessionId;
|
|
84
81
|
/** Whether this activation owns a local Agent, fixed at publication. */
|
|
@@ -88,15 +85,7 @@ export interface SubagentRunInfo {
|
|
|
88
85
|
* Observe-only outcome detail for a settled subagent run, carried by
|
|
89
86
|
* `subagent/end` and paired with one {@link SubagentRunInfo} by `runId`.
|
|
90
87
|
*/
|
|
91
|
-
export interface SubagentRunEndInfo {
|
|
92
|
-
/** Unique identity shared with the paired start event. */
|
|
93
|
-
readonly runId: SubagentRunId;
|
|
94
|
-
/** The same provider name carried by the paired start event. */
|
|
95
|
-
readonly provider: string;
|
|
96
|
-
/** The child agent's id. */
|
|
97
|
-
readonly id: SessionId;
|
|
98
|
-
/** Whether this activation owns a local Agent, fixed at publication. */
|
|
99
|
-
readonly local: boolean;
|
|
88
|
+
export interface SubagentRunEndInfo extends SubagentRunInfo {
|
|
100
89
|
/** The terminal stop reason. */
|
|
101
90
|
readonly stopReason: SubagentResult['stopReason'];
|
|
102
91
|
/**
|
|
@@ -120,9 +109,8 @@ export interface SubagentCapabilities {
|
|
|
120
109
|
readonly depthLimit: boolean;
|
|
121
110
|
}
|
|
122
111
|
/**
|
|
123
|
-
* Task and optional capabilities supplied to a backend.
|
|
124
|
-
* these
|
|
125
|
-
* policy separately.
|
|
112
|
+
* Task and optional capabilities supplied to a backend. The activation spec
|
|
113
|
+
* shares these task options and defines its own label and cancellation policy.
|
|
126
114
|
*/
|
|
127
115
|
export interface SubagentStartRequest {
|
|
128
116
|
/** Initial child directory; relative paths resolve against the parent's current directory. Omitted inherits that directory at start. */
|
package/lib/types/types.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The seam's consumer-facing contracts: request, result, and capability types
|
|
3
3
|
* for {@link SubagentProvider}, plus the `subagent/start` and `subagent/end`
|
|
4
|
-
* payloads that plugins and hosts observe. Internal control interfaces
|
|
5
|
-
*
|
|
6
|
-
* manager host in `./manager.ts` — so this module stays the published
|
|
7
|
-
* surface rather than a bag of everything type-shaped.
|
|
4
|
+
* payloads that plugins and hosts observe. Internal control interfaces, such
|
|
5
|
+
* as the manager host, belong with their implementation.
|
|
8
6
|
*
|
|
9
7
|
* @module @deepseek-ai/dsh-subagent/types
|
|
10
8
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishwithcat/dsh-subagent",
|
|
3
3
|
"description": "Abstract subagent seam (ctx.subagents): named-provider registry for delegating to child agents",
|
|
4
|
-
"version": "0.2.2-alpha.
|
|
4
|
+
"version": "0.2.2-alpha.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,10 +18,6 @@
|
|
|
18
18
|
"types": "./lib/types/index.d.ts",
|
|
19
19
|
"default": "./lib/index.js"
|
|
20
20
|
},
|
|
21
|
-
"./internal": {
|
|
22
|
-
"types": "./lib/types/internal.d.ts",
|
|
23
|
-
"default": "./lib/types/internal.js"
|
|
24
|
-
},
|
|
25
21
|
"./client": {
|
|
26
22
|
"types": "./lib/types/client.d.ts",
|
|
27
23
|
"default": "./lib/types/client.js"
|
|
@@ -50,33 +46,33 @@
|
|
|
50
46
|
],
|
|
51
47
|
"license": "MIT",
|
|
52
48
|
"dependencies": {
|
|
53
|
-
"@deepseek-ai/dsh-brand": "0.2.2-alpha.
|
|
54
|
-
"@deepseek-ai/dsh-chunked-list": "0.2.2-alpha.
|
|
55
|
-
"@deepseek-ai/dsh-util-values": "0.2.2-alpha.
|
|
56
|
-
"@deepseek-ai/schemastery": "~3.18.6-alpha.
|
|
49
|
+
"@deepseek-ai/dsh-brand": "0.2.2-alpha.3",
|
|
50
|
+
"@deepseek-ai/dsh-chunked-list": "0.2.2-alpha.3",
|
|
51
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-alpha.3",
|
|
52
|
+
"@deepseek-ai/schemastery": "~3.18.6-alpha.2",
|
|
57
53
|
"zod": "4.4.3"
|
|
58
54
|
},
|
|
59
55
|
"peerDependencies": {
|
|
60
|
-
"@deepseek-ai/cordis": "~4.0.6-alpha.
|
|
61
|
-
"@deepseek-ai/dsh-agent": "0.2.2-alpha.
|
|
62
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.
|
|
63
|
-
"@deepseek-ai/dsh-attachment": "0.2.2-alpha.
|
|
64
|
-
"@deepseek-ai/dsh-llm": "0.2.2-alpha.
|
|
65
|
-
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.
|
|
66
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.
|
|
67
|
-
"@deepseek-ai/dsh-scope": "0.2.2-alpha.
|
|
68
|
-
"@deepseek-ai/dsh-session": "0.2.2-alpha.
|
|
69
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.2-alpha.
|
|
70
|
-
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.
|
|
71
|
-
"@deepseek-ai/dsh-session-query": "0.2.2-alpha.
|
|
72
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.
|
|
73
|
-
"@deepseek-ai/dsh-tools": "0.2.2-alpha.
|
|
74
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.
|
|
75
|
-
"@deepseek-ai/dsh-user-approval": "0.2.2-alpha.
|
|
76
|
-
"@deepseek-ai/dsh-util-time": "0.2.2-alpha.
|
|
77
|
-
"@deepseek-ai/dsh-permission-presets": "0.2.2-alpha.
|
|
78
|
-
"@deepseek-ai/dsh-workspace": "0.2.2-alpha.
|
|
79
|
-
"@deepseek-ai/dsh-working-directory": "0.2.2-alpha.
|
|
56
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
|
|
58
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.3",
|
|
59
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-alpha.3",
|
|
60
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
|
|
61
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.3",
|
|
62
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.3",
|
|
63
|
+
"@deepseek-ai/dsh-scope": "0.2.2-alpha.3",
|
|
64
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.3",
|
|
65
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-alpha.3",
|
|
66
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.3",
|
|
67
|
+
"@deepseek-ai/dsh-session-query": "0.2.2-alpha.3",
|
|
68
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.3",
|
|
69
|
+
"@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
|
|
70
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3",
|
|
71
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-alpha.3",
|
|
72
|
+
"@deepseek-ai/dsh-util-time": "0.2.2-alpha.3",
|
|
73
|
+
"@deepseek-ai/dsh-permission-presets": "0.2.2-alpha.3",
|
|
74
|
+
"@deepseek-ai/dsh-workspace": "0.2.2-alpha.3",
|
|
75
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-alpha.3"
|
|
80
76
|
},
|
|
81
77
|
"peerDependenciesMeta": {
|
|
82
78
|
"@deepseek-ai/dsh-agent-preset-registry": {
|
|
@@ -105,33 +101,33 @@
|
|
|
105
101
|
}
|
|
106
102
|
},
|
|
107
103
|
"devDependencies": {
|
|
108
|
-
"@deepseek-ai/cordis": "~4.0.6-alpha.
|
|
109
|
-
"@deepseek-ai/dsh-agent": "0.2.2-alpha.
|
|
110
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.
|
|
111
|
-
"@deepseek-ai/dsh-attachment": "0.2.2-alpha.
|
|
112
|
-
"@deepseek-ai/dsh-llm": "0.2.2-alpha.
|
|
113
|
-
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.
|
|
114
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.
|
|
115
|
-
"@deepseek-ai/dsh-scope": "0.2.2-alpha.
|
|
116
|
-
"@deepseek-ai/dsh-session": "0.2.2-alpha.
|
|
117
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.2-alpha.
|
|
118
|
-
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.
|
|
119
|
-
"@deepseek-ai/dsh-session-query": "0.2.2-alpha.
|
|
120
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.
|
|
121
|
-
"@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.
|
|
122
|
-
"@deepseek-ai/dsh-tools": "0.2.2-alpha.
|
|
123
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.
|
|
124
|
-
"@deepseek-ai/dsh-user-approval": "0.2.2-alpha.
|
|
125
|
-
"@deepseek-ai/dsh-util-time": "0.2.2-alpha.
|
|
126
|
-
"@deepseek-ai/dsh-permission-presets": "0.2.2-alpha.
|
|
127
|
-
"@deepseek-ai/dsh-workspace": "0.2.2-alpha.
|
|
128
|
-
"@deepseek-ai/cordis-plugin-include": "~1.0.11-alpha.
|
|
129
|
-
"@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.
|
|
130
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.
|
|
131
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.
|
|
132
|
-
"@deepseek-ai/dsh-fs-sandbox": "0.2.2-alpha.
|
|
133
|
-
"@deepseek-ai/dsh-tool-fs": "0.2.2-alpha.
|
|
134
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-alpha.
|
|
135
|
-
"@deepseek-ai/dsh-working-directory": "0.2.2-alpha.
|
|
104
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.2",
|
|
105
|
+
"@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
|
|
106
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.3",
|
|
107
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-alpha.3",
|
|
108
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
|
|
109
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-alpha.3",
|
|
110
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-alpha.3",
|
|
111
|
+
"@deepseek-ai/dsh-scope": "0.2.2-alpha.3",
|
|
112
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.3",
|
|
113
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-alpha.3",
|
|
114
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-alpha.3",
|
|
115
|
+
"@deepseek-ai/dsh-session-query": "0.2.2-alpha.3",
|
|
116
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.3",
|
|
117
|
+
"@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.3",
|
|
118
|
+
"@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
|
|
119
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3",
|
|
120
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-alpha.3",
|
|
121
|
+
"@deepseek-ai/dsh-util-time": "0.2.2-alpha.3",
|
|
122
|
+
"@deepseek-ai/dsh-permission-presets": "0.2.2-alpha.3",
|
|
123
|
+
"@deepseek-ai/dsh-workspace": "0.2.2-alpha.3",
|
|
124
|
+
"@deepseek-ai/cordis-plugin-include": "~1.0.11-alpha.2",
|
|
125
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.2",
|
|
126
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.3",
|
|
127
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.3",
|
|
128
|
+
"@deepseek-ai/dsh-fs-sandbox": "0.2.2-alpha.3",
|
|
129
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.2-alpha.3",
|
|
130
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-alpha.3",
|
|
131
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-alpha.3"
|
|
136
132
|
}
|
|
137
133
|
}
|
package/lib/types/internal.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Continuation integration markers and host adapters outside the public
|
|
3
|
-
* Service Definition and model-facing Agent messaging contract.
|
|
4
|
-
* @module @deepseek-ai/dsh-subagent/internal
|
|
5
|
-
*/
|
|
6
|
-
import type { Agent } from '@deepseek-ai/dsh-agent';
|
|
7
|
-
import type { ContentBlock, MessageId, MessageSource } from '@deepseek-ai/dsh-llm';
|
|
8
|
-
import type { SessionId } from '@deepseek-ai/dsh-session';
|
|
9
|
-
import type { ToolDefinition } from '@deepseek-ai/dsh-tools';
|
|
10
|
-
import type SubagentRuntime from './index.ts';
|
|
11
|
-
import type { SubagentDelivery } from './control-types.ts';
|
|
12
|
-
/** Process-stable identity carried only by the standard adjacent-Agent messaging tool. */
|
|
13
|
-
export declare const adjacentAgentSendMessageTool: unique symbol;
|
|
14
|
-
/**
|
|
15
|
-
* Mark the standard adjacent-Agent messaging tool without changing its model-visible schema.
|
|
16
|
-
* @param definition - the standard `send_message` definition.
|
|
17
|
-
* @returns the same definition with its internal identity installed.
|
|
18
|
-
*/
|
|
19
|
-
export declare function markAdjacentAgentSendMessageTool(definition: ToolDefinition): ToolDefinition;
|
|
20
|
-
/**
|
|
21
|
-
* Test whether one visible definition is the standard adjacent-Agent messaging tool.
|
|
22
|
-
* @param definition - the scope-resolved `send_message` candidate.
|
|
23
|
-
* @returns whether the definition carries the internal standard-tool identity.
|
|
24
|
-
*/
|
|
25
|
-
export declare function isAdjacentAgentSendMessageTool(definition: ToolDefinition | undefined): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Process-stable symbol-keyed host delivery shared by the bundled runtime
|
|
28
|
-
* entry and this unbundled internal subpath.
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
export declare const deliverSubagentPrompt: unique symbol;
|
|
32
|
-
/** Runtime face required by the host-only prompt adapters. */
|
|
33
|
-
export interface HostPromptDeliverer {
|
|
34
|
-
[deliverSubagentPrompt](parent: Agent, childId: SessionId, content: ContentBlock[], source: MessageSource, signal: AbortSignal, delivery: SubagentDelivery): Promise<MessageId>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Queue one host-protocol message without exposing another Service operation.
|
|
38
|
-
* @param runtime - subagent runtime owning continuation residency.
|
|
39
|
-
* @param parent - exact live direct parent authorizing delivery.
|
|
40
|
-
* @param childId - durable direct-child session id.
|
|
41
|
-
* @param content - host-authored content to deliver.
|
|
42
|
-
* @param source - durable host-protocol source descriptor.
|
|
43
|
-
* @param signal - caller cancellation before inbox acceptance.
|
|
44
|
-
* @returns the accepted message's inbox id.
|
|
45
|
-
*/
|
|
46
|
-
export declare function queueHostSubagentPrompt(runtime: SubagentRuntime, parent: Agent, childId: SessionId, content: ContentBlock[], source: MessageSource, signal: AbortSignal): Promise<MessageId>;
|
|
47
|
-
/**
|
|
48
|
-
* Steer one host-protocol message without exposing another Service operation.
|
|
49
|
-
* @param runtime - subagent runtime owning continuation residency.
|
|
50
|
-
* @param parent - exact live direct parent authorizing delivery.
|
|
51
|
-
* @param childId - durable direct-child session id.
|
|
52
|
-
* @param content - host-authored content to deliver.
|
|
53
|
-
* @param source - durable host-protocol source descriptor.
|
|
54
|
-
* @param signal - caller cancellation before inbox acceptance.
|
|
55
|
-
* @returns the accepted message's inbox id.
|
|
56
|
-
*/
|
|
57
|
-
export declare function steerHostSubagentPrompt(runtime: SubagentRuntime, parent: Agent, childId: SessionId, content: ContentBlock[], source: MessageSource, signal: AbortSignal): Promise<MessageId>;
|
|
58
|
-
//# sourceMappingURL=internal.d.ts.map
|
package/lib/types/internal.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Continuation integration markers and host adapters outside the public
|
|
3
|
-
* Service Definition and model-facing Agent messaging contract.
|
|
4
|
-
* @module @deepseek-ai/dsh-subagent/internal
|
|
5
|
-
*/
|
|
6
|
-
/** Process-stable identity carried only by the standard adjacent-Agent messaging tool. */
|
|
7
|
-
export const adjacentAgentSendMessageTool = Symbol.for('dsh.subagent.adjacentAgentSendMessageTool');
|
|
8
|
-
/**
|
|
9
|
-
* Mark the standard adjacent-Agent messaging tool without changing its model-visible schema.
|
|
10
|
-
* @param definition - the standard `send_message` definition.
|
|
11
|
-
* @returns the same definition with its internal identity installed.
|
|
12
|
-
*/
|
|
13
|
-
export function markAdjacentAgentSendMessageTool(definition) {
|
|
14
|
-
Object.defineProperty(definition, adjacentAgentSendMessageTool, { value: true });
|
|
15
|
-
return definition;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Test whether one visible definition is the standard adjacent-Agent messaging tool.
|
|
19
|
-
* @param definition - the scope-resolved `send_message` candidate.
|
|
20
|
-
* @returns whether the definition carries the internal standard-tool identity.
|
|
21
|
-
*/
|
|
22
|
-
export function isAdjacentAgentSendMessageTool(definition) {
|
|
23
|
-
return definition !== undefined
|
|
24
|
-
&& definition[adjacentAgentSendMessageTool] === true;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Process-stable symbol-keyed host delivery shared by the bundled runtime
|
|
28
|
-
* entry and this unbundled internal subpath.
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
export const deliverSubagentPrompt = Symbol.for('dsh.subagent.deliverPrompt');
|
|
32
|
-
/**
|
|
33
|
-
* Queue one host-protocol message without exposing another Service operation.
|
|
34
|
-
* @param runtime - subagent runtime owning continuation residency.
|
|
35
|
-
* @param parent - exact live direct parent authorizing delivery.
|
|
36
|
-
* @param childId - durable direct-child session id.
|
|
37
|
-
* @param content - host-authored content to deliver.
|
|
38
|
-
* @param source - durable host-protocol source descriptor.
|
|
39
|
-
* @param signal - caller cancellation before inbox acceptance.
|
|
40
|
-
* @returns the accepted message's inbox id.
|
|
41
|
-
*/
|
|
42
|
-
export function queueHostSubagentPrompt(runtime, parent, childId, content, source, signal) {
|
|
43
|
-
return runtime[deliverSubagentPrompt](parent, childId, content, source, signal, 'queue');
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Steer one host-protocol message without exposing another Service operation.
|
|
47
|
-
* @param runtime - subagent runtime owning continuation residency.
|
|
48
|
-
* @param parent - exact live direct parent authorizing delivery.
|
|
49
|
-
* @param childId - durable direct-child session id.
|
|
50
|
-
* @param content - host-authored content to deliver.
|
|
51
|
-
* @param source - durable host-protocol source descriptor.
|
|
52
|
-
* @param signal - caller cancellation before inbox acceptance.
|
|
53
|
-
* @returns the accepted message's inbox id.
|
|
54
|
-
*/
|
|
55
|
-
export function steerHostSubagentPrompt(runtime, parent, childId, content, source, signal) {
|
|
56
|
-
return runtime[deliverSubagentPrompt](parent, childId, content, source, signal, 'steer');
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=internal.js.map
|