@pimote/sdk 0.16.0-rc.3 → 0.16.0-rc.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/dist/subagents/presentation.d.ts +15 -10
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export type SubagentPresentationManifest = Readonly<{
|
|
|
3
3
|
hiddenToolNames: readonly string[];
|
|
4
4
|
hiddenCustomTypes: readonly string[];
|
|
5
5
|
}>;
|
|
6
|
-
export type SubagentOperationKind = 'send' | 'message_received' | 'respond' | 'await' | 'delegation' | 'completion' | 'interrupt' | 'teardown' | 'resurrect';
|
|
6
|
+
export type SubagentOperationKind = 'send' | 'message_received' | 'respond' | 'await' | 'delegation' | 'completion' | 'interrupt' | 'teardown' | 'resurrect' | 'protocol_error';
|
|
7
7
|
/** Normalized public tool inputs. Final operations carry complete values. */
|
|
8
8
|
export type SubagentToolParameters = Readonly<Record<string, unknown>>;
|
|
9
9
|
export type SubagentPlacement = Readonly<{
|
|
@@ -86,6 +86,18 @@ export type SubagentDelegatedChild = Readonly<{
|
|
|
86
86
|
persona?: string;
|
|
87
87
|
status?: SubagentAwaitStatus['state'];
|
|
88
88
|
}>;
|
|
89
|
+
/** One agent touched by a teardown, carrying its final identity and usage. */
|
|
90
|
+
export type SubagentAffectedAgent = Readonly<{
|
|
91
|
+
path: AgentPath;
|
|
92
|
+
sessionId: string;
|
|
93
|
+
incarnation: string;
|
|
94
|
+
state: SubagentAwaitStatus['state'];
|
|
95
|
+
usage: SubagentUsage;
|
|
96
|
+
/** Pre-attach usage the reported delta excludes; present only when non-zero. */
|
|
97
|
+
usageBaseline?: SubagentUsage;
|
|
98
|
+
output?: string;
|
|
99
|
+
error?: string;
|
|
100
|
+
}>;
|
|
89
101
|
export type SubagentInterruptTarget = Readonly<{
|
|
90
102
|
path: AgentPath;
|
|
91
103
|
output?: string;
|
|
@@ -102,6 +114,7 @@ export type SubagentResurrectedAgent = Readonly<{
|
|
|
102
114
|
incarnation: string;
|
|
103
115
|
state: 'idle' | 'running';
|
|
104
116
|
usage: SubagentUsage;
|
|
117
|
+
usageBaseline?: SubagentUsage;
|
|
105
118
|
output?: string;
|
|
106
119
|
error?: string;
|
|
107
120
|
}>;
|
|
@@ -122,15 +135,7 @@ export type SubagentFiniteData = Readonly<{
|
|
|
122
135
|
operation: 'teardown';
|
|
123
136
|
parameters: SubagentToolParameters;
|
|
124
137
|
result: Readonly<{
|
|
125
|
-
affectedAgents: readonly
|
|
126
|
-
path: AgentPath;
|
|
127
|
-
sessionId: string;
|
|
128
|
-
incarnation: string;
|
|
129
|
-
state: SubagentAwaitStatus['state'];
|
|
130
|
-
usage: SubagentUsage;
|
|
131
|
-
output?: string;
|
|
132
|
-
error?: string;
|
|
133
|
-
}>[];
|
|
138
|
+
affectedAgents: readonly SubagentAffectedAgent[];
|
|
134
139
|
status: 'removed' | 'already_removed' | 'not_found';
|
|
135
140
|
}>;
|
|
136
141
|
}> | Readonly<{
|
package/package.json
CHANGED