@agimon-ai/po-team 0.0.0-alpha.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.
Files changed (110) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +156 -0
  3. package/dist/agentDiscovery-Whwzc4dP.cjs +1637 -0
  4. package/dist/agentDiscovery-Whwzc4dP.cjs.map +1 -0
  5. package/dist/agentDiscovery-ZQlFkKvB.mjs +1529 -0
  6. package/dist/agentDiscovery-ZQlFkKvB.mjs.map +1 -0
  7. package/dist/apiContracts.cjs +162 -0
  8. package/dist/apiContracts.cjs.map +1 -0
  9. package/dist/apiContracts.d.mts +53 -0
  10. package/dist/apiContracts.d.mts.map +1 -0
  11. package/dist/apiContracts.mjs +157 -0
  12. package/dist/apiContracts.mjs.map +1 -0
  13. package/dist/atomicJson-D0346bt5.cjs +178 -0
  14. package/dist/atomicJson-D0346bt5.cjs.map +1 -0
  15. package/dist/atomicJson-D2t0CDh9.mjs +137 -0
  16. package/dist/atomicJson-D2t0CDh9.mjs.map +1 -0
  17. package/dist/capabilityCeiling-C-Y7H8oC.cjs +191 -0
  18. package/dist/capabilityCeiling-C-Y7H8oC.cjs.map +1 -0
  19. package/dist/capabilityCeiling-CF7kAS18.mjs +156 -0
  20. package/dist/capabilityCeiling-CF7kAS18.mjs.map +1 -0
  21. package/dist/capabilityCeiling.cjs +10 -0
  22. package/dist/capabilityCeiling.d.mts +46 -0
  23. package/dist/capabilityCeiling.d.mts.map +1 -0
  24. package/dist/capabilityCeiling.mjs +3 -0
  25. package/dist/delegation.cjs +49 -0
  26. package/dist/delegation.cjs.map +1 -0
  27. package/dist/delegation.d.mts +269 -0
  28. package/dist/delegation.d.mts.map +1 -0
  29. package/dist/delegation.mjs +34 -0
  30. package/dist/delegation.mjs.map +1 -0
  31. package/dist/delegationApi.cjs +92 -0
  32. package/dist/delegationApi.d.mts +2 -0
  33. package/dist/delegationApi.mjs +2 -0
  34. package/dist/env.cjs +62 -0
  35. package/dist/env.d.mts +2 -0
  36. package/dist/env.mjs +2 -0
  37. package/dist/environment-CaCW3SgT.cjs +320 -0
  38. package/dist/environment-CaCW3SgT.cjs.map +1 -0
  39. package/dist/environment-DrqhrxG_.mjs +75 -0
  40. package/dist/environment-DrqhrxG_.mjs.map +1 -0
  41. package/dist/environment-ma5oQ7uM.d.mts +63 -0
  42. package/dist/environment-ma5oQ7uM.d.mts.map +1 -0
  43. package/dist/extensions/server.cjs +6940 -0
  44. package/dist/extensions/server.cjs.map +1 -0
  45. package/dist/extensions/server.d.mts +5 -0
  46. package/dist/extensions/server.d.mts.map +1 -0
  47. package/dist/extensions/server.mjs +6932 -0
  48. package/dist/extensions/server.mjs.map +1 -0
  49. package/dist/extensions/web.mjs +2308 -0
  50. package/dist/extensions/web.mjs.map +1 -0
  51. package/dist/externalProcessIpc-C-15lJrB.mjs +584 -0
  52. package/dist/externalProcessIpc-C-15lJrB.mjs.map +1 -0
  53. package/dist/externalProcessIpc-ojE0pvw0.cjs +690 -0
  54. package/dist/externalProcessIpc-ojE0pvw0.cjs.map +1 -0
  55. package/dist/fablePlan.cjs +17 -0
  56. package/dist/fablePlan.d.mts +2 -0
  57. package/dist/fablePlan.mjs +2 -0
  58. package/dist/fablePlanApi-BsHhgVFV.mjs +118 -0
  59. package/dist/fablePlanApi-BsHhgVFV.mjs.map +1 -0
  60. package/dist/fablePlanApi-CZ3uUcMi.d.mts +97 -0
  61. package/dist/fablePlanApi-CZ3uUcMi.d.mts.map +1 -0
  62. package/dist/fablePlanApi-wBu9bRXU.cjs +207 -0
  63. package/dist/fablePlanApi-wBu9bRXU.cjs.map +1 -0
  64. package/dist/fablePlanApi.cjs +17 -0
  65. package/dist/fablePlanApi.d.mts +2 -0
  66. package/dist/fablePlanApi.mjs +2 -0
  67. package/dist/index.cjs +49 -0
  68. package/dist/index.cjs.map +1 -0
  69. package/dist/index.d.mts +160 -0
  70. package/dist/index.d.mts.map +1 -0
  71. package/dist/index.mjs +45 -0
  72. package/dist/index.mjs.map +1 -0
  73. package/dist/runs/background/cliRunnerEntry.cjs +539 -0
  74. package/dist/runs/background/cliRunnerEntry.cjs.map +1 -0
  75. package/dist/runs/background/cliRunnerEntry.d.mts +1 -0
  76. package/dist/runs/background/cliRunnerEntry.mjs +537 -0
  77. package/dist/runs/background/cliRunnerEntry.mjs.map +1 -0
  78. package/dist/runtimeSubagentPolicy.cjs +5 -0
  79. package/dist/runtimeSubagentPolicy.d.mts +2 -0
  80. package/dist/runtimeSubagentPolicy.mjs +2 -0
  81. package/dist/runtimeSubagentTool.cjs +11 -0
  82. package/dist/runtimeSubagentTool.d.mts +2 -0
  83. package/dist/runtimeSubagentTool.mjs +2 -0
  84. package/dist/subagentPolicy-ALJam4GN.d.mts +33 -0
  85. package/dist/subagentPolicy-ALJam4GN.d.mts.map +1 -0
  86. package/dist/subagentPolicy-DQRyKDH-.cjs +39 -0
  87. package/dist/subagentPolicy-DQRyKDH-.cjs.map +1 -0
  88. package/dist/subagentPolicy-DxjsKeyj.mjs +22 -0
  89. package/dist/subagentPolicy-DxjsKeyj.mjs.map +1 -0
  90. package/dist/subagentPolicy.cjs +5 -0
  91. package/dist/subagentPolicy.d.mts +2 -0
  92. package/dist/subagentPolicy.mjs +2 -0
  93. package/dist/subagentTool-BTssGLw8.d.mts +103 -0
  94. package/dist/subagentTool-BTssGLw8.d.mts.map +1 -0
  95. package/dist/subagentTool-Ca2zQXKw.cjs +227 -0
  96. package/dist/subagentTool-Ca2zQXKw.cjs.map +1 -0
  97. package/dist/subagentTool-WOYrjxgT.mjs +186 -0
  98. package/dist/subagentTool-WOYrjxgT.mjs.map +1 -0
  99. package/dist/subagentTool.cjs +10 -0
  100. package/dist/subagentTool.d.mts +2 -0
  101. package/dist/subagentTool.mjs +2 -0
  102. package/dist/teamSnapshot-DgaANhBs.mjs +24 -0
  103. package/dist/teamSnapshot-DgaANhBs.mjs.map +1 -0
  104. package/dist/teamSnapshot-oKuGFdYc.cjs +35 -0
  105. package/dist/teamSnapshot-oKuGFdYc.cjs.map +1 -0
  106. package/dist/teamSnapshot.cjs +4 -0
  107. package/dist/teamSnapshot.d.mts +59 -0
  108. package/dist/teamSnapshot.d.mts.map +1 -0
  109. package/dist/teamSnapshot.mjs +2 -0
  110. package/package.json +201 -0
@@ -0,0 +1,269 @@
1
+ export * from "@agimon-ai/po-core/delegation";
2
+ //#region src/schemas/team/delegation.d.ts
3
+ /**
4
+ * Subagent delegation - a cross-extension event protocol.
5
+ *
6
+ * Delegation lets another extension ask this runtime to run a subagent without
7
+ * depending on its internals: the requester emits a request event and receives
8
+ * started/update/response events back over the host event bus.
9
+ *
10
+ * Two generations coexist. V1 correlates purely by `requestId`. V2 adds
11
+ * `ownerRunId` and `nodeId` so one owner can fan out to many nodes and have each
12
+ * reply routed back, and it carries a typed `result` request.
13
+ *
14
+ * PROTOCOL COMPATIBILITY (do not change):
15
+ * The event names and version numbers below are shared with po-subagents
16
+ * and with doom-task and agiflow-pi-extension, which speak this protocol today.
17
+ * The event names deliberately keep their `prompt-template:` prefix: that is the
18
+ * established transport, and renaming it would silently stop delivery. Pinned by
19
+ * contract tests.
20
+ *
21
+ * AVOID:
22
+ * - Adding a required field to an existing version; add a version instead
23
+ */
24
+ export declare const SUBAGENT_DELEGATION_PROTOCOL_VERSION: 1;
25
+ export declare const SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION: 2;
26
+ export declare const SUBAGENT_DELEGATION_REQUEST_EVENT = "prompt-template:subagent:request";
27
+ export declare const SUBAGENT_DELEGATION_STARTED_EVENT = "prompt-template:subagent:started";
28
+ export declare const SUBAGENT_DELEGATION_UPDATE_EVENT = "prompt-template:subagent:update";
29
+ export declare const SUBAGENT_DELEGATION_RESPONSE_EVENT = "prompt-template:subagent:response";
30
+ export declare const SUBAGENT_DELEGATION_CANCEL_EVENT = "prompt-template:subagent:cancel";
31
+ export interface SubagentDelegationTurnBudget {
32
+ maxTurns: number;
33
+ graceTurns?: number;
34
+ }
35
+ export interface SubagentDelegationToolBudget {
36
+ soft?: number;
37
+ hard: number;
38
+ block?: string[] | '*';
39
+ }
40
+ export interface SubagentDelegationAgentContract {
41
+ version: 1;
42
+ }
43
+ export type SubagentDelegationJsonSchemaObject = Record<string, unknown>;
44
+ export interface SubagentDelegationExecutionResult {
45
+ status: 'completed' | 'failed' | 'paused' | 'stopped' | 'detached';
46
+ success: boolean;
47
+ exitCode: number;
48
+ error?: string;
49
+ interrupted?: boolean;
50
+ timedOut?: boolean;
51
+ stopped?: boolean;
52
+ detached?: boolean;
53
+ }
54
+ export interface SubagentDelegationReviewResult {
55
+ status: 'not-requested' | 'review-required' | 'reviewed' | 'blockers';
56
+ findings?: Array<{
57
+ severity: 'blocker' | 'non-blocking';
58
+ file?: string;
59
+ issue: string;
60
+ rationale: string;
61
+ }>;
62
+ }
63
+ export interface SubagentDelegationEffectsResult {
64
+ fileMutation?: {
65
+ status: 'not-requested' | 'not-applicable' | 'observed' | 'missing';
66
+ expected: boolean;
67
+ attempted: boolean;
68
+ message?: string;
69
+ };
70
+ }
71
+ export type SubagentDelegationAcceptanceEvidence = 'changed-files' | 'tests-added' | 'commands-run' | 'validation-output' | 'residual-risks' | 'no-staged-files' | 'diff-summary' | 'review-findings' | 'manual-notes';
72
+ export interface SubagentDelegationAcceptanceCriterion {
73
+ id: string;
74
+ must: string;
75
+ evidence?: SubagentDelegationAcceptanceEvidence[];
76
+ severity?: 'required' | 'recommended';
77
+ }
78
+ export interface SubagentDelegationAcceptanceVerifyCommand {
79
+ id: string;
80
+ command: string;
81
+ timeoutMs?: number;
82
+ cwd?: string;
83
+ env?: Record<string, string>;
84
+ allowFailure?: boolean;
85
+ }
86
+ export interface SubagentDelegationAcceptanceReview {
87
+ agent?: string;
88
+ focus?: string;
89
+ required?: boolean;
90
+ }
91
+ interface SubagentDelegationAcceptanceFields {
92
+ criteria?: Array<string | SubagentDelegationAcceptanceCriterion>;
93
+ evidence?: SubagentDelegationAcceptanceEvidence[];
94
+ verify?: SubagentDelegationAcceptanceVerifyCommand[];
95
+ review?: SubagentDelegationAcceptanceReview | false;
96
+ stopRules?: string[];
97
+ }
98
+ export type SubagentDelegationAcceptanceConfig = SubagentDelegationAcceptanceFields & ({
99
+ level: 'none';
100
+ reason: string;
101
+ } | {
102
+ level?: 'auto' | 'attested' | 'checked' | 'verified';
103
+ reason?: string;
104
+ });
105
+ export type SubagentDelegationAcceptance = 'auto' | 'attested' | 'checked' | 'verified' | false | SubagentDelegationAcceptanceConfig;
106
+ export interface SubagentDelegationRequest {
107
+ version: typeof SUBAGENT_DELEGATION_PROTOCOL_VERSION;
108
+ requestId: string;
109
+ agent: string;
110
+ task: string;
111
+ context: 'fresh' | 'fork';
112
+ cwd: string;
113
+ model?: string;
114
+ timeoutMs?: number;
115
+ turnBudget?: SubagentDelegationTurnBudget;
116
+ toolBudget?: SubagentDelegationToolBudget;
117
+ skill?: string | string[] | boolean;
118
+ output?: string | boolean;
119
+ outputMode?: 'inline' | 'file-only';
120
+ outputSchema?: SubagentDelegationJsonSchemaObject;
121
+ agentContract?: SubagentDelegationAgentContract;
122
+ acceptance?: SubagentDelegationAcceptance;
123
+ artifacts?: boolean;
124
+ /** Foreground remains the compatibility default. */
125
+ runMode?: 'foreground' | 'detached';
126
+ /** Optional task identity shown to active root-session teammates. */
127
+ teamTask?: {
128
+ id: string;
129
+ subject: string;
130
+ };
131
+ }
132
+ export interface SubagentDelegationStarted {
133
+ version: typeof SUBAGENT_DELEGATION_PROTOCOL_VERSION;
134
+ requestId: string;
135
+ runId?: string;
136
+ }
137
+ export interface SubagentDelegationUpdate extends SubagentDelegationStarted {
138
+ runId?: string;
139
+ currentTool?: string;
140
+ currentToolArgs?: string;
141
+ recentOutput?: string;
142
+ recentOutputLines?: string[];
143
+ recentTools?: Array<{
144
+ tool: string;
145
+ args: string;
146
+ }>;
147
+ model?: string;
148
+ toolCount?: number;
149
+ durationMs?: number;
150
+ tokens?: number;
151
+ }
152
+ export type SubagentDelegationStatus = 'completed' | 'failed' | 'timed_out' | 'cancelled' | 'interrupted' | 'turn_budget_exhausted' | 'tool_budget_exhausted' | 'structured_output_failed' | 'acceptance_failed' | 'invalid_request' | 'unavailable_context';
153
+ export type SubagentDelegationAcceptanceStatus = 'pending' | 'not-required' | 'claimed' | 'attested' | 'checked' | 'verified' | 'review-required' | 'reviewed' | 'accepted' | 'rejected';
154
+ export interface SubagentDelegationAcceptanceResult {
155
+ status: SubagentDelegationAcceptanceStatus;
156
+ evidenceStatus: Exclude<SubagentDelegationAcceptanceStatus, 'review-required' | 'reviewed' | 'accepted'>;
157
+ explicit: boolean;
158
+ }
159
+ export interface SubagentDelegationResponse extends SubagentDelegationStarted {
160
+ status: SubagentDelegationStatus;
161
+ error?: string;
162
+ runId?: string;
163
+ childIndex?: number;
164
+ agent?: string;
165
+ model?: string;
166
+ exitCode?: number;
167
+ execution?: SubagentDelegationExecutionResult;
168
+ output?: string;
169
+ outputPath?: string;
170
+ sessionFile?: string;
171
+ acceptance?: SubagentDelegationAcceptanceResult;
172
+ review?: SubagentDelegationReviewResult;
173
+ effects?: SubagentDelegationEffectsResult;
174
+ turns?: number;
175
+ toolCount?: number;
176
+ durationMs?: number;
177
+ tokens?: number;
178
+ warnings?: string[];
179
+ }
180
+ export interface SubagentDelegationCancel extends SubagentDelegationStarted {}
181
+ export type SubagentDelegationV2Thinking = 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
182
+ export type SubagentDelegationV2ResultRequest = {
183
+ kind: 'text';
184
+ } | {
185
+ kind: 'structured';
186
+ schema: SubagentDelegationJsonSchemaObject;
187
+ };
188
+ export interface SubagentDelegationV2Request {
189
+ version: typeof SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION;
190
+ requestId: string;
191
+ ownerRunId: string;
192
+ nodeId: string;
193
+ agent: string;
194
+ task: string;
195
+ context: 'fresh' | 'fork';
196
+ cwd: string;
197
+ model?: string;
198
+ thinking?: SubagentDelegationV2Thinking;
199
+ timeoutMs?: number;
200
+ turnBudget?: SubagentDelegationTurnBudget;
201
+ toolBudget?: SubagentDelegationToolBudget;
202
+ skill?: string | string[] | boolean;
203
+ artifacts?: boolean;
204
+ result: SubagentDelegationV2ResultRequest;
205
+ }
206
+ export interface SubagentDelegationV2Started {
207
+ version: typeof SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION;
208
+ requestId: string;
209
+ ownerRunId: string;
210
+ nodeId: string;
211
+ }
212
+ export interface SubagentDelegationV2Update extends SubagentDelegationV2Started {
213
+ runId?: string;
214
+ currentTool?: string;
215
+ currentToolArgs?: string;
216
+ recentOutput?: string;
217
+ recentOutputLines?: string[];
218
+ recentTools?: Array<{
219
+ tool: string;
220
+ args: string;
221
+ }>;
222
+ model?: string;
223
+ toolCount?: number;
224
+ durationMs?: number;
225
+ tokens?: number;
226
+ }
227
+ export type SubagentDelegationV2Status = SubagentDelegationStatus | 'duplicate_node';
228
+ export type SubagentDelegationV2Value = {
229
+ kind: 'text';
230
+ text: string;
231
+ } | {
232
+ kind: 'structured';
233
+ value: unknown;
234
+ };
235
+ export interface SubagentDelegationV2Usage {
236
+ input: number;
237
+ output: number;
238
+ cacheRead: number;
239
+ cacheWrite: number;
240
+ cost: number;
241
+ turns: number;
242
+ toolCalls: number;
243
+ durationMs: number;
244
+ }
245
+ export interface SubagentDelegationV2TerminalResponse extends SubagentDelegationV2Started {
246
+ status: Exclude<SubagentDelegationV2Status, 'invalid_request'>;
247
+ error?: string;
248
+ runId?: string;
249
+ agent?: string;
250
+ model?: string;
251
+ thinking?: string;
252
+ exitCode?: number;
253
+ launchContractDigest?: string;
254
+ result?: SubagentDelegationV2Value;
255
+ usage?: SubagentDelegationV2Usage;
256
+ }
257
+ /** A malformed V2 request can only be correlated by the valid identity fields it supplied. */
258
+ export interface SubagentDelegationV2InvalidResponse {
259
+ version: typeof SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION;
260
+ requestId: string;
261
+ ownerRunId?: string;
262
+ nodeId?: string;
263
+ status: 'invalid_request';
264
+ error?: string;
265
+ }
266
+ export type SubagentDelegationV2Response = SubagentDelegationV2TerminalResponse | SubagentDelegationV2InvalidResponse;
267
+ export interface SubagentDelegationV2Cancel extends SubagentDelegationV2Started {}
268
+ //#endregion
269
+ //# sourceMappingURL=delegation.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegation.d.mts","names":[],"sources":["../src/schemas/team/delegation.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBAsBa;qBACA;qBAIA;qBACA;qBACA;qBACA;qBACA;iBAEI;EACf;EACA;;iBAGe;EACf;EACA;EACA;;iBAGe;EACf;;YAGU,qCAAqC;iBAEhC;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe;EACf;EACA,WAAW;IAAQ;IAAsC;IAAe;IAAe;;;iBAGxE;EACf;IACE;IACA;IACA;IACA;;;YAIQ;iBAWK;EACf;EACA;EACA,WAAW;EACX;;iBAGe;EACf;EACA;EACA;EACA;EACA,MAAM;EACN;;iBAGe;EACf;EACA;EACA;;UAGQ;EACR,WAAW,eAAe;EAC1B,WAAW;EACX,SAAS;EACT,SAAS;EACT;;YAGU,qCAAqC;EAC5C;EAAe;;EAAqB;EAAsD;;YAEnF,sFAMR;iBAEa;EACf,gBAAgB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA,aAAa;EACb,aAAa;EACb;EACA;EACA;EACA,eAAe;EACf,gBAAgB;EAChB,aAAa;EACb;;EAEA;;EAEA;IAAa;IAAY;;;iBAGV;EACf,gBAAgB;EAChB;EACA;;iBAGe,iCAAiC;EAChD;EACA;EACA;EACA;EACA;EACA,cAAc;IAAQ;IAAc;;EACpC;EACA;EACA;EACA;;YAGU;YAaA;iBAYK;EACf,QAAQ;EACR,gBAAgB,QAAQ;EACxB;;iBAGe,mCAAmC;EAClD,QAAQ;EACR;EACA;EACA;EACA;EACA;EACA;EACA,YAAY;EACZ;EACA;EACA;EACA,aAAa;EACb,SAAS;EACT,UAAU;EACV;EACA;EACA;EACA;EACA;;iBAGe,iCAAiC;YAEtC;YAEA;EACN;;EACA;EAAoB,QAAQ;;iBAEjB;EACf,gBAAgB;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WAAW;EACX;EACA,aAAa;EACb,aAAa;EACb;EACA;EACA,QAAQ;;iBAGO;EACf,gBAAgB;EAChB;EACA;EACA;;iBAGe,mCAAmC;EAClD;EACA;EACA;EACA;EACA;EACA,cAAc;IAAQ;IAAc;;EACpC;EACA;EACA;EACA;;YAGU,6BAA6B;YAE7B;EAA8B;EAAc;;EAAmB;EAAoB;;iBAE9E;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;iBAGe,6CAA6C;EAC5D,QAAQ,QAAQ;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS;EACT,QAAQ;;;iBAIO;EACf,gBAAgB;EAChB;EACA;EACA;EACA;EACA;;YAGU,+BAA+B,uCAAuC;iBAEjE,mCAAmC"}
@@ -0,0 +1,34 @@
1
+ export * from "@agimon-ai/po-core/delegation";
2
+ //#region src/schemas/team/delegation.ts
3
+ /**
4
+ * Subagent delegation - a cross-extension event protocol.
5
+ *
6
+ * Delegation lets another extension ask this runtime to run a subagent without
7
+ * depending on its internals: the requester emits a request event and receives
8
+ * started/update/response events back over the host event bus.
9
+ *
10
+ * Two generations coexist. V1 correlates purely by `requestId`. V2 adds
11
+ * `ownerRunId` and `nodeId` so one owner can fan out to many nodes and have each
12
+ * reply routed back, and it carries a typed `result` request.
13
+ *
14
+ * PROTOCOL COMPATIBILITY (do not change):
15
+ * The event names and version numbers below are shared with po-subagents
16
+ * and with doom-task and agiflow-pi-extension, which speak this protocol today.
17
+ * The event names deliberately keep their `prompt-template:` prefix: that is the
18
+ * established transport, and renaming it would silently stop delivery. Pinned by
19
+ * contract tests.
20
+ *
21
+ * AVOID:
22
+ * - Adding a required field to an existing version; add a version instead
23
+ */
24
+ const SUBAGENT_DELEGATION_PROTOCOL_VERSION = 1;
25
+ const SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION = 2;
26
+ const SUBAGENT_DELEGATION_REQUEST_EVENT = "prompt-template:subagent:request";
27
+ const SUBAGENT_DELEGATION_STARTED_EVENT = "prompt-template:subagent:started";
28
+ const SUBAGENT_DELEGATION_UPDATE_EVENT = "prompt-template:subagent:update";
29
+ const SUBAGENT_DELEGATION_RESPONSE_EVENT = "prompt-template:subagent:response";
30
+ const SUBAGENT_DELEGATION_CANCEL_EVENT = "prompt-template:subagent:cancel";
31
+ //#endregion
32
+ export { SUBAGENT_DELEGATION_CANCEL_EVENT, SUBAGENT_DELEGATION_PROTOCOL_VERSION, SUBAGENT_DELEGATION_REQUEST_EVENT, SUBAGENT_DELEGATION_RESPONSE_EVENT, SUBAGENT_DELEGATION_STARTED_EVENT, SUBAGENT_DELEGATION_UPDATE_EVENT, SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION };
33
+
34
+ //# sourceMappingURL=delegation.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegation.mjs","names":[],"sources":["../src/schemas/team/delegation.ts"],"sourcesContent":["/**\n * Subagent delegation - a cross-extension event protocol.\n *\n * Delegation lets another extension ask this runtime to run a subagent without\n * depending on its internals: the requester emits a request event and receives\n * started/update/response events back over the host event bus.\n *\n * Two generations coexist. V1 correlates purely by `requestId`. V2 adds\n * `ownerRunId` and `nodeId` so one owner can fan out to many nodes and have each\n * reply routed back, and it carries a typed `result` request.\n *\n * PROTOCOL COMPATIBILITY (do not change):\n * The event names and version numbers below are shared with po-subagents\n * and with doom-task and agiflow-pi-extension, which speak this protocol today.\n * The event names deliberately keep their `prompt-template:` prefix: that is the\n * established transport, and renaming it would silently stop delivery. Pinned by\n * contract tests.\n *\n * AVOID:\n * - Adding a required field to an existing version; add a version instead\n */\n\nexport const SUBAGENT_DELEGATION_PROTOCOL_VERSION = 1 as const;\nexport const SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION = 2 as const;\n\n// This is the established extension-to-extension transport. The public API\n// intentionally reuses it instead of adding a second event protocol.\nexport const SUBAGENT_DELEGATION_REQUEST_EVENT = 'prompt-template:subagent:request';\nexport const SUBAGENT_DELEGATION_STARTED_EVENT = 'prompt-template:subagent:started';\nexport const SUBAGENT_DELEGATION_UPDATE_EVENT = 'prompt-template:subagent:update';\nexport const SUBAGENT_DELEGATION_RESPONSE_EVENT = 'prompt-template:subagent:response';\nexport const SUBAGENT_DELEGATION_CANCEL_EVENT = 'prompt-template:subagent:cancel';\n\nexport interface SubagentDelegationTurnBudget {\n maxTurns: number;\n graceTurns?: number;\n}\n\nexport interface SubagentDelegationToolBudget {\n soft?: number;\n hard: number;\n block?: string[] | '*';\n}\n\nexport interface SubagentDelegationAgentContract {\n version: 1;\n}\n\nexport type SubagentDelegationJsonSchemaObject = Record<string, unknown>;\n\nexport interface SubagentDelegationExecutionResult {\n status: 'completed' | 'failed' | 'paused' | 'stopped' | 'detached';\n success: boolean;\n exitCode: number;\n error?: string;\n interrupted?: boolean;\n timedOut?: boolean;\n stopped?: boolean;\n detached?: boolean;\n}\n\nexport interface SubagentDelegationReviewResult {\n status: 'not-requested' | 'review-required' | 'reviewed' | 'blockers';\n findings?: Array<{ severity: 'blocker' | 'non-blocking'; file?: string; issue: string; rationale: string }>;\n}\n\nexport interface SubagentDelegationEffectsResult {\n fileMutation?: {\n status: 'not-requested' | 'not-applicable' | 'observed' | 'missing';\n expected: boolean;\n attempted: boolean;\n message?: string;\n };\n}\n\nexport type SubagentDelegationAcceptanceEvidence =\n | 'changed-files'\n | 'tests-added'\n | 'commands-run'\n | 'validation-output'\n | 'residual-risks'\n | 'no-staged-files'\n | 'diff-summary'\n | 'review-findings'\n | 'manual-notes';\n\nexport interface SubagentDelegationAcceptanceCriterion {\n id: string;\n must: string;\n evidence?: SubagentDelegationAcceptanceEvidence[];\n severity?: 'required' | 'recommended';\n}\n\nexport interface SubagentDelegationAcceptanceVerifyCommand {\n id: string;\n command: string;\n timeoutMs?: number;\n cwd?: string;\n env?: Record<string, string>;\n allowFailure?: boolean;\n}\n\nexport interface SubagentDelegationAcceptanceReview {\n agent?: string;\n focus?: string;\n required?: boolean;\n}\n\ninterface SubagentDelegationAcceptanceFields {\n criteria?: Array<string | SubagentDelegationAcceptanceCriterion>;\n evidence?: SubagentDelegationAcceptanceEvidence[];\n verify?: SubagentDelegationAcceptanceVerifyCommand[];\n review?: SubagentDelegationAcceptanceReview | false;\n stopRules?: string[];\n}\n\nexport type SubagentDelegationAcceptanceConfig = SubagentDelegationAcceptanceFields &\n ({ level: 'none'; reason: string } | { level?: 'auto' | 'attested' | 'checked' | 'verified'; reason?: string });\n\nexport type SubagentDelegationAcceptance =\n | 'auto'\n | 'attested'\n | 'checked'\n | 'verified'\n | false\n | SubagentDelegationAcceptanceConfig;\n\nexport interface SubagentDelegationRequest {\n version: typeof SUBAGENT_DELEGATION_PROTOCOL_VERSION;\n requestId: string;\n agent: string;\n task: string;\n context: 'fresh' | 'fork';\n cwd: string;\n model?: string;\n timeoutMs?: number;\n turnBudget?: SubagentDelegationTurnBudget;\n toolBudget?: SubagentDelegationToolBudget;\n skill?: string | string[] | boolean;\n output?: string | boolean;\n outputMode?: 'inline' | 'file-only';\n outputSchema?: SubagentDelegationJsonSchemaObject;\n agentContract?: SubagentDelegationAgentContract;\n acceptance?: SubagentDelegationAcceptance;\n artifacts?: boolean;\n /** Foreground remains the compatibility default. */\n runMode?: 'foreground' | 'detached';\n /** Optional task identity shown to active root-session teammates. */\n teamTask?: { id: string; subject: string };\n}\n\nexport interface SubagentDelegationStarted {\n version: typeof SUBAGENT_DELEGATION_PROTOCOL_VERSION;\n requestId: string;\n runId?: string;\n}\n\nexport interface SubagentDelegationUpdate extends SubagentDelegationStarted {\n runId?: string;\n currentTool?: string;\n currentToolArgs?: string;\n recentOutput?: string;\n recentOutputLines?: string[];\n recentTools?: Array<{ tool: string; args: string }>;\n model?: string;\n toolCount?: number;\n durationMs?: number;\n tokens?: number;\n}\n\nexport type SubagentDelegationStatus =\n | 'completed'\n | 'failed'\n | 'timed_out'\n | 'cancelled'\n | 'interrupted'\n | 'turn_budget_exhausted'\n | 'tool_budget_exhausted'\n | 'structured_output_failed'\n | 'acceptance_failed'\n | 'invalid_request'\n | 'unavailable_context';\n\nexport type SubagentDelegationAcceptanceStatus =\n | 'pending'\n | 'not-required'\n | 'claimed'\n | 'attested'\n | 'checked'\n | 'verified'\n | 'review-required'\n | 'reviewed'\n | 'accepted'\n | 'rejected';\n\nexport interface SubagentDelegationAcceptanceResult {\n status: SubagentDelegationAcceptanceStatus;\n evidenceStatus: Exclude<SubagentDelegationAcceptanceStatus, 'review-required' | 'reviewed' | 'accepted'>;\n explicit: boolean;\n}\n\nexport interface SubagentDelegationResponse extends SubagentDelegationStarted {\n status: SubagentDelegationStatus;\n error?: string;\n runId?: string;\n childIndex?: number;\n agent?: string;\n model?: string;\n exitCode?: number;\n execution?: SubagentDelegationExecutionResult;\n output?: string;\n outputPath?: string;\n sessionFile?: string;\n acceptance?: SubagentDelegationAcceptanceResult;\n review?: SubagentDelegationReviewResult;\n effects?: SubagentDelegationEffectsResult;\n turns?: number;\n toolCount?: number;\n durationMs?: number;\n tokens?: number;\n warnings?: string[];\n}\n\nexport interface SubagentDelegationCancel extends SubagentDelegationStarted {}\n\nexport type SubagentDelegationV2Thinking = 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';\n\nexport type SubagentDelegationV2ResultRequest =\n | { kind: 'text' }\n | { kind: 'structured'; schema: SubagentDelegationJsonSchemaObject };\n\nexport interface SubagentDelegationV2Request {\n version: typeof SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION;\n requestId: string;\n ownerRunId: string;\n nodeId: string;\n agent: string;\n task: string;\n context: 'fresh' | 'fork';\n cwd: string;\n model?: string;\n thinking?: SubagentDelegationV2Thinking;\n timeoutMs?: number;\n turnBudget?: SubagentDelegationTurnBudget;\n toolBudget?: SubagentDelegationToolBudget;\n skill?: string | string[] | boolean;\n artifacts?: boolean;\n result: SubagentDelegationV2ResultRequest;\n}\n\nexport interface SubagentDelegationV2Started {\n version: typeof SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION;\n requestId: string;\n ownerRunId: string;\n nodeId: string;\n}\n\nexport interface SubagentDelegationV2Update extends SubagentDelegationV2Started {\n runId?: string;\n currentTool?: string;\n currentToolArgs?: string;\n recentOutput?: string;\n recentOutputLines?: string[];\n recentTools?: Array<{ tool: string; args: string }>;\n model?: string;\n toolCount?: number;\n durationMs?: number;\n tokens?: number;\n}\n\nexport type SubagentDelegationV2Status = SubagentDelegationStatus | 'duplicate_node';\n\nexport type SubagentDelegationV2Value = { kind: 'text'; text: string } | { kind: 'structured'; value: unknown };\n\nexport interface SubagentDelegationV2Usage {\n input: number;\n output: number;\n cacheRead: number;\n cacheWrite: number;\n cost: number;\n turns: number;\n toolCalls: number;\n durationMs: number;\n}\n\nexport interface SubagentDelegationV2TerminalResponse extends SubagentDelegationV2Started {\n status: Exclude<SubagentDelegationV2Status, 'invalid_request'>;\n error?: string;\n runId?: string;\n agent?: string;\n model?: string;\n thinking?: string;\n exitCode?: number;\n launchContractDigest?: string;\n result?: SubagentDelegationV2Value;\n usage?: SubagentDelegationV2Usage;\n}\n\n/** A malformed V2 request can only be correlated by the valid identity fields it supplied. */\nexport interface SubagentDelegationV2InvalidResponse {\n version: typeof SUBAGENT_DELEGATION_V2_PROTOCOL_VERSION;\n requestId: string;\n ownerRunId?: string;\n nodeId?: string;\n status: 'invalid_request';\n error?: string;\n}\n\nexport type SubagentDelegationV2Response = SubagentDelegationV2TerminalResponse | SubagentDelegationV2InvalidResponse;\n\nexport interface SubagentDelegationV2Cancel extends SubagentDelegationV2Started {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAa,uCAAuC;AACpD,MAAa,0CAA0C;AAIvD,MAAa,oCAAoC;AACjD,MAAa,oCAAoC;AACjD,MAAa,mCAAmC;AAChD,MAAa,qCAAqC;AAClD,MAAa,mCAAmC"}
@@ -0,0 +1,92 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let _agimon_ai_po_core_delegation = require("@agimon-ai/po-core/delegation");
3
+ Object.defineProperty(exports, "DOOM_DELEGATION_ACCEPTED_EVENT", {
4
+ enumerable: true,
5
+ get: function() {
6
+ return _agimon_ai_po_core_delegation.DOOM_DELEGATION_ACCEPTED_EVENT;
7
+ }
8
+ });
9
+ Object.defineProperty(exports, "DOOM_DELEGATION_CANCELLED_EVENT", {
10
+ enumerable: true,
11
+ get: function() {
12
+ return _agimon_ai_po_core_delegation.DOOM_DELEGATION_CANCELLED_EVENT;
13
+ }
14
+ });
15
+ Object.defineProperty(exports, "DOOM_DELEGATION_FINISHED_EVENT", {
16
+ enumerable: true,
17
+ get: function() {
18
+ return _agimon_ai_po_core_delegation.DOOM_DELEGATION_FINISHED_EVENT;
19
+ }
20
+ });
21
+ Object.defineProperty(exports, "DOOM_DELEGATION_REQUESTED_EVENT", {
22
+ enumerable: true,
23
+ get: function() {
24
+ return _agimon_ai_po_core_delegation.DOOM_DELEGATION_REQUESTED_EVENT;
25
+ }
26
+ });
27
+ Object.defineProperty(exports, "DOOM_DELEGATION_SERVICE", {
28
+ enumerable: true,
29
+ get: function() {
30
+ return _agimon_ai_po_core_delegation.DOOM_DELEGATION_SERVICE;
31
+ }
32
+ });
33
+ Object.defineProperty(exports, "DOOM_DELEGATION_STARTED_EVENT", {
34
+ enumerable: true,
35
+ get: function() {
36
+ return _agimon_ai_po_core_delegation.DOOM_DELEGATION_STARTED_EVENT;
37
+ }
38
+ });
39
+ Object.defineProperty(exports, "DOOM_DELEGATION_UPDATED_EVENT", {
40
+ enumerable: true,
41
+ get: function() {
42
+ return _agimon_ai_po_core_delegation.DOOM_DELEGATION_UPDATED_EVENT;
43
+ }
44
+ });
45
+ Object.defineProperty(exports, "DelegationAcceptedSchema", {
46
+ enumerable: true,
47
+ get: function() {
48
+ return _agimon_ai_po_core_delegation.DelegationAcceptedSchema;
49
+ }
50
+ });
51
+ Object.defineProperty(exports, "DelegationCancelSchema", {
52
+ enumerable: true,
53
+ get: function() {
54
+ return _agimon_ai_po_core_delegation.DelegationCancelSchema;
55
+ }
56
+ });
57
+ Object.defineProperty(exports, "DelegationRequestSchema", {
58
+ enumerable: true,
59
+ get: function() {
60
+ return _agimon_ai_po_core_delegation.DelegationRequestSchema;
61
+ }
62
+ });
63
+ Object.defineProperty(exports, "DelegationResultSchema", {
64
+ enumerable: true,
65
+ get: function() {
66
+ return _agimon_ai_po_core_delegation.DelegationResultSchema;
67
+ }
68
+ });
69
+ Object.defineProperty(exports, "DelegationStartedSchema", {
70
+ enumerable: true,
71
+ get: function() {
72
+ return _agimon_ai_po_core_delegation.DelegationStartedSchema;
73
+ }
74
+ });
75
+ Object.defineProperty(exports, "DelegationStatusSchema", {
76
+ enumerable: true,
77
+ get: function() {
78
+ return _agimon_ai_po_core_delegation.DelegationStatusSchema;
79
+ }
80
+ });
81
+ Object.defineProperty(exports, "DelegationUpdateSchema", {
82
+ enumerable: true,
83
+ get: function() {
84
+ return _agimon_ai_po_core_delegation.DelegationUpdateSchema;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, "readDoomDelegationService", {
88
+ enumerable: true,
89
+ get: function() {
90
+ return _agimon_ai_po_core_delegation.readDoomDelegationService;
91
+ }
92
+ });
@@ -0,0 +1,2 @@
1
+ import { DOOM_DELEGATION_ACCEPTED_EVENT, DOOM_DELEGATION_CANCELLED_EVENT, DOOM_DELEGATION_FINISHED_EVENT, DOOM_DELEGATION_REQUESTED_EVENT, DOOM_DELEGATION_SERVICE, DOOM_DELEGATION_STARTED_EVENT, DOOM_DELEGATION_UPDATED_EVENT, DelegationAccepted, DelegationAcceptedSchema, DelegationCancel, DelegationCancelSchema, DelegationRequest, DelegationRequestSchema, DelegationResult, DelegationResultSchema, DelegationStarted, DelegationStartedSchema, DelegationStatus, DelegationStatusSchema, DelegationUpdate, DelegationUpdateSchema, DoomDelegationService, readDoomDelegationService } from "@agimon-ai/po-core/delegation";
2
+ export { DOOM_DELEGATION_ACCEPTED_EVENT, DOOM_DELEGATION_CANCELLED_EVENT, DOOM_DELEGATION_FINISHED_EVENT, DOOM_DELEGATION_REQUESTED_EVENT, DOOM_DELEGATION_SERVICE, DOOM_DELEGATION_STARTED_EVENT, DOOM_DELEGATION_UPDATED_EVENT, type DelegationAccepted, DelegationAcceptedSchema, type DelegationCancel, DelegationCancelSchema, type DelegationRequest, DelegationRequestSchema, type DelegationResult, DelegationResultSchema, type DelegationStarted, DelegationStartedSchema, type DelegationStatus, DelegationStatusSchema, type DelegationUpdate, DelegationUpdateSchema, type DoomDelegationService, readDoomDelegationService };
@@ -0,0 +1,2 @@
1
+ import { DOOM_DELEGATION_ACCEPTED_EVENT, DOOM_DELEGATION_CANCELLED_EVENT, DOOM_DELEGATION_FINISHED_EVENT, DOOM_DELEGATION_REQUESTED_EVENT, DOOM_DELEGATION_SERVICE, DOOM_DELEGATION_STARTED_EVENT, DOOM_DELEGATION_UPDATED_EVENT, DelegationAcceptedSchema, DelegationCancelSchema, DelegationRequestSchema, DelegationResultSchema, DelegationStartedSchema, DelegationStatusSchema, DelegationUpdateSchema, readDoomDelegationService } from "@agimon-ai/po-core/delegation";
2
+ export { DOOM_DELEGATION_ACCEPTED_EVENT, DOOM_DELEGATION_CANCELLED_EVENT, DOOM_DELEGATION_FINISHED_EVENT, DOOM_DELEGATION_REQUESTED_EVENT, DOOM_DELEGATION_SERVICE, DOOM_DELEGATION_STARTED_EVENT, DOOM_DELEGATION_UPDATED_EVENT, DelegationAcceptedSchema, DelegationCancelSchema, DelegationRequestSchema, DelegationResultSchema, DelegationStartedSchema, DelegationStatusSchema, DelegationUpdateSchema, readDoomDelegationService };
package/dist/env.cjs ADDED
@@ -0,0 +1,62 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_environment = require("./environment-CaCW3SgT.cjs");
3
+ let _agimon_ai_po_core_childProcess = require("@agimon-ai/po-core/childProcess");
4
+ exports.CHILD_TOOL_DIAGNOSTIC_PATH_ENV = require_environment.CHILD_TOOL_DIAGNOSTIC_PATH_ENV;
5
+ exports.EXTRA_AGENT_DIRS_ENV = require_environment.EXTRA_AGENT_DIRS_ENV;
6
+ exports.EXTRA_SKILL_DIRS_ENV = require_environment.EXTRA_SKILL_DIRS_ENV;
7
+ exports.INHERIT_PROJECT_CONTEXT_ENV = require_environment.INHERIT_PROJECT_CONTEXT_ENV;
8
+ exports.INHERIT_SKILLS_ENV = require_environment.INHERIT_SKILLS_ENV;
9
+ exports.MAX_SPAWNS_PER_SESSION_ENV = require_environment.MAX_SPAWNS_PER_SESSION_ENV;
10
+ exports.MCP_DIRECT_CHILD_TOOLS_ENV = require_environment.MCP_DIRECT_CHILD_TOOLS_ENV;
11
+ exports.MCP_DIRECT_TOOLS_ENV = require_environment.MCP_DIRECT_TOOLS_ENV;
12
+ exports.PI_CODING_AGENT_PACKAGE_ROOT_ENV = require_environment.PI_CODING_AGENT_PACKAGE_ROOT_ENV;
13
+ exports.PI_INTERCOM_SESSION_ID_ENV = require_environment.PI_INTERCOM_SESSION_ID_ENV;
14
+ exports.PI_INTERCOM_STABLE_ID_ENV = require_environment.PI_INTERCOM_STABLE_ID_ENV;
15
+ exports.PI_RUNTIME_NAME = require_environment.PI_RUNTIME_NAME;
16
+ exports.PI_SUBAGENT_PI_BINARY_ENV = require_environment.PI_SUBAGENT_PI_BINARY_ENV;
17
+ exports.PO_CHILD_EXTENSIONS_ENV = require_environment.PO_CHILD_EXTENSIONS_ENV;
18
+ exports.PO_SKILL_DIRS_ENV = require_environment.PO_SKILL_DIRS_ENV;
19
+ exports.REQUIRED_CHILD_TOOLS_ENV = require_environment.REQUIRED_CHILD_TOOLS_ENV;
20
+ exports.STRUCTURED_OUTPUT_CAPTURE_ENV = require_environment.STRUCTURED_OUTPUT_CAPTURE_ENV;
21
+ exports.STRUCTURED_OUTPUT_SCHEMA_ENV = require_environment.STRUCTURED_OUTPUT_SCHEMA_ENV;
22
+ exports.SUBAGENT_CAPABILITY_CEILING_ENV = require_environment.SUBAGENT_CAPABILITY_CEILING_ENV;
23
+ exports.SUBAGENT_CHILD_AGENT_ENV = require_environment.SUBAGENT_CHILD_AGENT_ENV;
24
+ Object.defineProperty(exports, "SUBAGENT_CHILD_ENV", {
25
+ enumerable: true,
26
+ get: function() {
27
+ return _agimon_ai_po_core_childProcess.SUBAGENT_CHILD_ENV;
28
+ }
29
+ });
30
+ exports.SUBAGENT_CHILD_INDEX_ENV = require_environment.SUBAGENT_CHILD_INDEX_ENV;
31
+ exports.SUBAGENT_FANOUT_CHILD_ENV = require_environment.SUBAGENT_FANOUT_CHILD_ENV;
32
+ exports.SUBAGENT_INTERCOM_SESSION_NAME_ENV = require_environment.SUBAGENT_INTERCOM_SESSION_NAME_ENV;
33
+ exports.SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = require_environment.SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV;
34
+ exports.SUBAGENT_PARENT_CHILD_INDEX_ENV = require_environment.SUBAGENT_PARENT_CHILD_INDEX_ENV;
35
+ exports.SUBAGENT_PARENT_CONTROL_INBOX_ENV = require_environment.SUBAGENT_PARENT_CONTROL_INBOX_ENV;
36
+ exports.SUBAGENT_PARENT_DEPTH_ENV = require_environment.SUBAGENT_PARENT_DEPTH_ENV;
37
+ exports.SUBAGENT_PARENT_EVENT_SINK_ENV = require_environment.SUBAGENT_PARENT_EVENT_SINK_ENV;
38
+ exports.SUBAGENT_PARENT_PATH_ENV = require_environment.SUBAGENT_PARENT_PATH_ENV;
39
+ exports.SUBAGENT_PARENT_ROOT_RUN_ID_ENV = require_environment.SUBAGENT_PARENT_ROOT_RUN_ID_ENV;
40
+ exports.SUBAGENT_PARENT_RUN_ID_ENV = require_environment.SUBAGENT_PARENT_RUN_ID_ENV;
41
+ Object.defineProperty(exports, "SUBAGENT_PARENT_SESSION_ENV", {
42
+ enumerable: true,
43
+ get: function() {
44
+ return _agimon_ai_po_core_childProcess.SUBAGENT_PARENT_SESSION_ENV;
45
+ }
46
+ });
47
+ exports.SUBAGENT_PROTECTED_PARENT_PIDS_ENV = require_environment.SUBAGENT_PROTECTED_PARENT_PIDS_ENV;
48
+ Object.defineProperty(exports, "SUBAGENT_ROOT_SESSION_ENV", {
49
+ enumerable: true,
50
+ get: function() {
51
+ return _agimon_ai_po_core_childProcess.SUBAGENT_ROOT_SESSION_ENV;
52
+ }
53
+ });
54
+ exports.SUBAGENT_RUN_ID_ENV = require_environment.SUBAGENT_RUN_ID_ENV;
55
+ exports.SUBAGENT_STEER_ACK_DIR_ENV = require_environment.SUBAGENT_STEER_ACK_DIR_ENV;
56
+ exports.SUBAGENT_STEER_CAPABILITY_ENV = require_environment.SUBAGENT_STEER_CAPABILITY_ENV;
57
+ exports.SUBAGENT_STEER_INBOX_ENV = require_environment.SUBAGENT_STEER_INBOX_ENV;
58
+ exports.TOOL_BUDGET_ENV = require_environment.TOOL_BUDGET_ENV;
59
+ exports.TOOL_BUDGET_ZERO_AUTH_ENV = require_environment.TOOL_BUDGET_ZERO_AUTH_ENV;
60
+ exports.WORKTREE_BASE_DIR_ENV = require_environment.WORKTREE_BASE_DIR_ENV;
61
+ exports.decodeProtectedParentProcessIds = require_environment.decodeProtectedParentProcessIds;
62
+ exports.runtimeBinaryEnvVar = require_environment.runtimeBinaryEnvVar;
package/dist/env.d.mts ADDED
@@ -0,0 +1,2 @@
1
+ import { A as SUBAGENT_PARENT_PATH_ENV, B as TOOL_BUDGET_ENV, C as SUBAGENT_FANOUT_CHILD_ENV, D as SUBAGENT_PARENT_CONTROL_INBOX_ENV, E as SUBAGENT_PARENT_CHILD_INDEX_ENV, F as SUBAGENT_ROOT_SESSION_ENV, H as WORKTREE_BASE_DIR_ENV, I as SUBAGENT_RUN_ID_ENV, L as SUBAGENT_STEER_ACK_DIR_ENV, M as SUBAGENT_PARENT_RUN_ID_ENV, N as SUBAGENT_PARENT_SESSION_ENV, O as SUBAGENT_PARENT_DEPTH_ENV, P as SUBAGENT_PROTECTED_PARENT_PIDS_ENV, R as SUBAGENT_STEER_CAPABILITY_ENV, S as SUBAGENT_CHILD_INDEX_ENV, T as SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV, U as decodeProtectedParentProcessIds, V as TOOL_BUDGET_ZERO_AUTH_ENV, W as runtimeBinaryEnvVar, _ as STRUCTURED_OUTPUT_CAPTURE_ENV, a as INHERIT_SKILLS_ENV, b as SUBAGENT_CHILD_AGENT_ENV, c as MCP_DIRECT_TOOLS_ENV, d as PI_INTERCOM_STABLE_ID_ENV, f as PI_RUNTIME_NAME, g as REQUIRED_CHILD_TOOLS_ENV, h as PO_SKILL_DIRS_ENV, i as INHERIT_PROJECT_CONTEXT_ENV, j as SUBAGENT_PARENT_ROOT_RUN_ID_ENV, k as SUBAGENT_PARENT_EVENT_SINK_ENV, l as PI_CODING_AGENT_PACKAGE_ROOT_ENV, m as PO_CHILD_EXTENSIONS_ENV, n as EXTRA_AGENT_DIRS_ENV, o as MAX_SPAWNS_PER_SESSION_ENV, p as PI_SUBAGENT_PI_BINARY_ENV, r as EXTRA_SKILL_DIRS_ENV, s as MCP_DIRECT_CHILD_TOOLS_ENV, t as CHILD_TOOL_DIAGNOSTIC_PATH_ENV, u as PI_INTERCOM_SESSION_ID_ENV, v as STRUCTURED_OUTPUT_SCHEMA_ENV, w as SUBAGENT_INTERCOM_SESSION_NAME_ENV, x as SUBAGENT_CHILD_ENV, y as SUBAGENT_CAPABILITY_CEILING_ENV, z as SUBAGENT_STEER_INBOX_ENV } from "./environment-ma5oQ7uM.mjs";
2
+ export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, EXTRA_AGENT_DIRS_ENV, EXTRA_SKILL_DIRS_ENV, INHERIT_PROJECT_CONTEXT_ENV, INHERIT_SKILLS_ENV, MAX_SPAWNS_PER_SESSION_ENV, MCP_DIRECT_CHILD_TOOLS_ENV, MCP_DIRECT_TOOLS_ENV, PI_CODING_AGENT_PACKAGE_ROOT_ENV, PI_INTERCOM_SESSION_ID_ENV, PI_INTERCOM_STABLE_ID_ENV, PI_RUNTIME_NAME, PI_SUBAGENT_PI_BINARY_ENV, PO_CHILD_EXTENSIONS_ENV, PO_SKILL_DIRS_ENV, REQUIRED_CHILD_TOOLS_ENV, STRUCTURED_OUTPUT_CAPTURE_ENV, STRUCTURED_OUTPUT_SCHEMA_ENV, SUBAGENT_CAPABILITY_CEILING_ENV, SUBAGENT_CHILD_AGENT_ENV, SUBAGENT_CHILD_ENV, SUBAGENT_CHILD_INDEX_ENV, SUBAGENT_FANOUT_CHILD_ENV, SUBAGENT_INTERCOM_SESSION_NAME_ENV, SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV, SUBAGENT_PARENT_CHILD_INDEX_ENV, SUBAGENT_PARENT_CONTROL_INBOX_ENV, SUBAGENT_PARENT_DEPTH_ENV, SUBAGENT_PARENT_EVENT_SINK_ENV, SUBAGENT_PARENT_PATH_ENV, SUBAGENT_PARENT_ROOT_RUN_ID_ENV, SUBAGENT_PARENT_RUN_ID_ENV, SUBAGENT_PARENT_SESSION_ENV, SUBAGENT_PROTECTED_PARENT_PIDS_ENV, SUBAGENT_ROOT_SESSION_ENV, SUBAGENT_RUN_ID_ENV, SUBAGENT_STEER_ACK_DIR_ENV, SUBAGENT_STEER_CAPABILITY_ENV, SUBAGENT_STEER_INBOX_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, decodeProtectedParentProcessIds, runtimeBinaryEnvVar };
package/dist/env.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { A as SUBAGENT_PARENT_PATH_ENV, B as TOOL_BUDGET_ENV, C as SUBAGENT_FANOUT_CHILD_ENV, D as SUBAGENT_PARENT_CONTROL_INBOX_ENV, E as SUBAGENT_PARENT_CHILD_INDEX_ENV, F as SUBAGENT_ROOT_SESSION_ENV, H as WORKTREE_BASE_DIR_ENV, I as SUBAGENT_RUN_ID_ENV, L as SUBAGENT_STEER_ACK_DIR_ENV, M as SUBAGENT_PARENT_RUN_ID_ENV, N as SUBAGENT_PARENT_SESSION_ENV, O as SUBAGENT_PARENT_DEPTH_ENV, P as SUBAGENT_PROTECTED_PARENT_PIDS_ENV, R as SUBAGENT_STEER_CAPABILITY_ENV, S as SUBAGENT_CHILD_INDEX_ENV, T as SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV, U as decodeProtectedParentProcessIds, V as TOOL_BUDGET_ZERO_AUTH_ENV, W as runtimeBinaryEnvVar, _ as STRUCTURED_OUTPUT_CAPTURE_ENV, a as INHERIT_SKILLS_ENV, b as SUBAGENT_CHILD_AGENT_ENV, c as MCP_DIRECT_TOOLS_ENV, d as PI_INTERCOM_STABLE_ID_ENV, f as PI_RUNTIME_NAME, g as REQUIRED_CHILD_TOOLS_ENV, h as PO_SKILL_DIRS_ENV, i as INHERIT_PROJECT_CONTEXT_ENV, j as SUBAGENT_PARENT_ROOT_RUN_ID_ENV, k as SUBAGENT_PARENT_EVENT_SINK_ENV, l as PI_CODING_AGENT_PACKAGE_ROOT_ENV, m as PO_CHILD_EXTENSIONS_ENV, n as EXTRA_AGENT_DIRS_ENV, o as MAX_SPAWNS_PER_SESSION_ENV, p as PI_SUBAGENT_PI_BINARY_ENV, r as EXTRA_SKILL_DIRS_ENV, s as MCP_DIRECT_CHILD_TOOLS_ENV, t as CHILD_TOOL_DIAGNOSTIC_PATH_ENV, u as PI_INTERCOM_SESSION_ID_ENV, v as STRUCTURED_OUTPUT_SCHEMA_ENV, w as SUBAGENT_INTERCOM_SESSION_NAME_ENV, x as SUBAGENT_CHILD_ENV, y as SUBAGENT_CAPABILITY_CEILING_ENV, z as SUBAGENT_STEER_INBOX_ENV } from "./environment-DrqhrxG_.mjs";
2
+ export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, EXTRA_AGENT_DIRS_ENV, EXTRA_SKILL_DIRS_ENV, INHERIT_PROJECT_CONTEXT_ENV, INHERIT_SKILLS_ENV, MAX_SPAWNS_PER_SESSION_ENV, MCP_DIRECT_CHILD_TOOLS_ENV, MCP_DIRECT_TOOLS_ENV, PI_CODING_AGENT_PACKAGE_ROOT_ENV, PI_INTERCOM_SESSION_ID_ENV, PI_INTERCOM_STABLE_ID_ENV, PI_RUNTIME_NAME, PI_SUBAGENT_PI_BINARY_ENV, PO_CHILD_EXTENSIONS_ENV, PO_SKILL_DIRS_ENV, REQUIRED_CHILD_TOOLS_ENV, STRUCTURED_OUTPUT_CAPTURE_ENV, STRUCTURED_OUTPUT_SCHEMA_ENV, SUBAGENT_CAPABILITY_CEILING_ENV, SUBAGENT_CHILD_AGENT_ENV, SUBAGENT_CHILD_ENV, SUBAGENT_CHILD_INDEX_ENV, SUBAGENT_FANOUT_CHILD_ENV, SUBAGENT_INTERCOM_SESSION_NAME_ENV, SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV, SUBAGENT_PARENT_CHILD_INDEX_ENV, SUBAGENT_PARENT_CONTROL_INBOX_ENV, SUBAGENT_PARENT_DEPTH_ENV, SUBAGENT_PARENT_EVENT_SINK_ENV, SUBAGENT_PARENT_PATH_ENV, SUBAGENT_PARENT_ROOT_RUN_ID_ENV, SUBAGENT_PARENT_RUN_ID_ENV, SUBAGENT_PARENT_SESSION_ENV, SUBAGENT_PROTECTED_PARENT_PIDS_ENV, SUBAGENT_ROOT_SESSION_ENV, SUBAGENT_RUN_ID_ENV, SUBAGENT_STEER_ACK_DIR_ENV, SUBAGENT_STEER_CAPABILITY_ENV, SUBAGENT_STEER_INBOX_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, decodeProtectedParentProcessIds, runtimeBinaryEnvVar };