@agimon-ai/doompi-team 0.0.1-alpha.19 → 0.0.1-alpha.20
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/adapters/pi/extension.cjs +1 -1
- package/dist/adapters/pi/extension.mjs +1 -1
- package/dist/adapters/process/env.cjs +1 -1
- package/dist/adapters/process/env.cjs.map +1 -1
- package/dist/adapters/process/env.d.cts +5 -1
- package/dist/adapters/process/env.d.cts.map +1 -1
- package/dist/adapters/process/env.d.mts +5 -1
- package/dist/adapters/process/env.d.mts.map +1 -1
- package/dist/adapters/process/env.mjs +1 -1
- package/dist/adapters/process/env.mjs.map +1 -1
- package/dist/adapters/resultWatcher.cjs +1 -1
- package/dist/adapters/resultWatcher.mjs +1 -1
- package/dist/container/index.cjs +1 -1
- package/dist/container/index.cjs.map +1 -1
- package/dist/container/index.mjs +1 -1
- package/dist/container/modules/agents.cjs +1 -1
- package/dist/container/modules/agents.mjs +1 -1
- package/dist/container/modules/core.cjs +1 -1
- package/dist/container/modules/core.mjs +1 -1
- package/dist/container/modules/extensions.cjs +1 -1
- package/dist/container/modules/extensions.mjs +1 -1
- package/dist/container/modules/intercom.cjs +1 -1
- package/dist/container/modules/intercom.mjs +1 -1
- package/dist/container/modules/runs.cjs +1 -1
- package/dist/container/modules/runs.mjs +1 -1
- package/dist/env.cjs +1 -1
- package/dist/env.d.cts +2 -2
- package/dist/env.d.mts +2 -2
- package/dist/env.mjs +1 -1
- package/dist/extensions/spawnPlan.cjs +3 -2
- package/dist/extensions/spawnPlan.cjs.map +1 -1
- package/dist/extensions/spawnPlan.mjs +3 -2
- package/dist/extensions/spawnPlan.mjs.map +1 -1
- package/dist/extensions/subagentPromptRuntime.cjs +11 -11
- package/dist/extensions/subagentPromptRuntime.cjs.map +1 -1
- package/dist/extensions/subagentPromptRuntime.d.cts.map +1 -1
- package/dist/extensions/subagentPromptRuntime.d.mts.map +1 -1
- package/dist/extensions/subagentPromptRuntime.mjs +5 -5
- package/dist/extensions/subagentPromptRuntime.mjs.map +1 -1
- package/dist/extensions/subagentTool.cjs +3 -3
- package/dist/extensions/subagentTool.mjs +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/schemas/team/capabilityCeiling.cjs +1 -1
- package/dist/schemas/team/capabilityCeiling.mjs +1 -1
- package/dist/services/agents/discovery.cjs +1 -1
- package/dist/services/agents/discovery.cjs.map +1 -1
- package/dist/services/agents/discovery.mjs +1 -1
- package/dist/services/agents/discovery.mjs.map +1 -1
- package/dist/services/agents/projectRoot.cjs +1 -1
- package/dist/services/agents/projectRoot.cjs.map +1 -1
- package/dist/services/agents/projectRoot.mjs +1 -1
- package/dist/services/agents/projectRoot.mjs.map +1 -1
- package/dist/services/agents/skills.cjs +0 -0
- package/dist/services/agents/skills.cjs.map +1 -1
- package/dist/services/agents/skills.mjs +4 -4
- package/dist/services/agents/skills.mjs.map +1 -1
- package/dist/services/intercom/nativeTeamChannel.cjs +3 -3
- package/dist/services/intercom/nativeTeamChannel.mjs +3 -3
- package/dist/services/intercom/supervisorControlChannel.cjs +1 -1
- package/dist/services/intercom/supervisorControlChannel.mjs +1 -1
- package/dist/services/runs/background/asyncExecution.cjs +1 -1
- package/dist/services/runs/background/asyncExecution.mjs +1 -1
- package/dist/services/runs/background/asyncExecution.mjs.map +1 -1
- package/dist/services/runs/background/runnerBootstrap.cjs +1 -1
- package/dist/services/runs/background/runnerBootstrap.mjs +1 -1
- package/dist/services/runs/background/runnerReporting.cjs +2 -2
- package/dist/services/runs/background/runnerReporting.mjs +2 -2
- package/dist/services/runs/background/statusWriter.cjs +1 -1
- package/dist/services/runs/background/statusWriter.mjs +1 -1
- package/dist/services/runs/background/terminalPersistence.cjs +1 -1
- package/dist/services/runs/background/terminalPersistence.mjs +1 -1
- package/dist/services/runs/shared/piArgs.cjs +1 -1
- package/dist/services/runs/shared/piArgs.cjs.map +1 -1
- package/dist/services/runs/shared/piArgs.mjs +1 -1
- package/dist/services/runs/shared/piArgs.mjs.map +1 -1
- package/package.json +7 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../container/
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../container/globalBridge.cjs`),t=require(`../../container/types.cjs`),n=require(`../../shared/paths.cjs`),r=require(`../../shared/modelResolution.cjs`),i=require(`../../services/runs/shared/modelFallback.cjs`),a=require(`../../extensions/spawnPlan.cjs`),o=require(`../asyncJobTracker.cjs`);require(`../../services/runs/background/asyncJobTracker.cjs`);const s=require(`../suspendedRuns.cjs`);require(`../../services/runs/registry/suspendedRuns.cjs`);const c=require(`../../extensions/config.cjs`),l=require(`../scopeOwner.cjs`),u=require(`../../container/index.cjs`),d=require(`../../commands/slash/slashCommands.cjs`),f=require(`../../extensions/delegationBridge.cjs`),p=require(`../../extensions/fablePlanBridge.cjs`),m=require(`../../extensions/orchestratorPrompt.cjs`),h=require(`../../services/runs/registry/sessionLifecycle.cjs`);require(`../../shared/scopeOwner.cjs`);const g=require(`../../tui/completionNotice.cjs`),_=require(`../../tui/register.cjs`);let v=require(`@agimon-ai/doompi-extension-contracts/child-process`),y=require(`@agimon-ai/doompi-extension-contracts/background-work`),b=require(`@agimon-ai/doompi-extension-contracts/delegation`),x=require(`@agimon-ai/doompi-extension-contracts/protocol`),S=require(`@agimon-ai/doompi-extension-contracts/subagent-policy`),C=require(`@agimon-ai/doompi-telemetry`);const w=`unknown`;function T(e,t,n,r,i,a){return{spawnPlanner:n,tracker:r,scheduler:i,discovery:e,skills:t,management:a,loadConfig:()=>c.loadConfig().config}}function E(E,D={}){let O=D.doomIntegrations??!0,k=new e.GlobalStateBridge,A,j=e=>(A??=(0,C.createDoomTelemetry)({serviceName:`doom-team`,packageName:`@agimon-ai/doompi-team`,cwd:e.cwd,env:process.env,enableLogs:!0,enableTraces:!0}),A),M=(e,t)=>{A?.recordEvent(e,t)},N=k.getDefaultContainer(),P=N??u.createExtensionContainer(M),F=N===void 0;F&&k.setDefaultContainer(P);let I=P.get(t.DOOM_TEAM_TYPES.SubagentToolService),L=P.get(t.DOOM_TEAM_TYPES.NativeTeamChannelService),R=P.get(t.DOOM_TEAM_TYPES.PollScheduler),z=P.get(t.DOOM_TEAM_TYPES.AsyncJobTracker),B=P.get(t.DOOM_TEAM_TYPES.SubagentWaiter),V=P.get(t.DOOM_TEAM_TYPES.AsyncSubagentSpawner),H=P.get(t.DOOM_TEAM_TYPES.AgentDiscoveryService),U=P.get(t.DOOM_TEAM_TYPES.SkillDiscoveryService),W=P.get(t.DOOM_TEAM_TYPES.SpawnPlanner),G=P.get(t.DOOM_TEAM_TYPES.CompletionNotifier),K=P.get(t.DOOM_TEAM_TYPES.ResultWatcher),q=P.get(t.DOOM_TEAM_TYPES.StaleRunReconciler),J=P.get(t.DOOM_TEAM_TYPES.ManagementActions),Y=P.get(t.DOOM_TEAM_TYPES.SubagentCapabilityPolicyStore);I.registerTool(E);let X=F&&O?_.registerSubagentLeaderContribution(E):void 0,Z=L.createRuntime(E);if(L.registerClient(E),G.attachHost(E),R.start(),z.start(),F){let e=[],t=[],u,C,w,D,O=f.createDelegationBridge({planner:W,management:J,waiter:B,scheduler:R,tracker:z,loadConfig:()=>c.loadConfig().config}),M=p.createFablePlanBridge({spawner:V,waiter:B,management:J,policies:Y,report:(e,t)=>{A?.recordEvent(e,t)}}),N=R.register({id:`stale-run-reconciler`,intervalMs:2e3,run:async()=>{let e=!1,t=!1;for(let n of w?.list()??[]){if(n.status&&o.TERMINAL_ASYNC_JOB_STATES.has(n.status))continue;t=!0;let{reconcile:r,sweep:i}=q.reconcileAndSweepAsync?await q.reconcileAndSweepAsync(n.runId):q.reconcileAndSweep(n.runId);r.repaired&&(w?.track(n.runId),e=!0),i.recovered.length>0&&(e=!0)}return e||t}});E.on(`before_agent_start`,e=>{if(m.shouldInjectOrchestratorPrompt(c.loadConfig().config))return{systemPrompt:m.appendOrchestratorPrompt(e.systemPrompt)}}),d.registerSlashCommands(E,{baseCwd:void 0},T(H,U,W,z,R,J)),_.registerAgentListCommand(E,{discovery:H,skills:U,policies:Y}),_.registerFleetCommand(E,{scheduler:R,tracker:z,management:J});let P=_.registerAgentStatus(E,{scheduler:R,tracker:z});g.registerCompletionRenderer(E),E.on(`session_start`,async(o,c)=>{let d=j(c);d.recordEvent(`doom_team.session_started`,{"team.root_session":(0,v.resolveRootSessionId)(c.sessionManager.getSessionId())===c.sessionManager.getSessionId()});let f=c.sessionManager.getSessionId(),p=n.createSessionScope((0,v.resolveRootSessionId)(f));n.setCurrentSessionScope(p),await l.writeScopeOwnerAsync(p);let m=await h.openScopeAsync(p,{readStatusAsync:async e=>J.statusAsync?(await J.statusAsync(e)).status:J.status(e).status});m.suspended.length>0&&c.hasUI&&c.ui.notify(await s.formatSuspendedRunsAsync(m.suspended),`info`),d.recordEvent(`doom_team.runs_restored`,{"team.suspended_count":m.suspended.length,"team.pruned_count":m.pruned.length,"team.reaped_count":m.reaped,outcome:`reported`}),w=z.forSession(f),D!==p.scopeKey&&(D=p.scopeKey,K.start(e=>w?.get(e.runId)?G.deliver(e):!1));for(let t of e)t();e=[];for(let e of t)e();t=[],Y.clear(),u?.dispose(),C?.dispose(),C=void 0,O.abandonAll(),M.abandonAll();let g=(0,x.createProtocolRuntime)({bus:E.events,source:_.SUBAGENT_LEADER_SOURCE,sessionId:c.sessionManager.getSessionId()});u=(0,y.provideBackgroundWorkRegistry)(g),C=M.bind({sessionId:f,cwd:c.cwd}),t.push(g.onNotification(S.SubagentPolicyRegistration,({policy:e,generation:t})=>{Y.register(e,t)}),g.onNotification(S.SubagentPolicyChanged,({policy:e,generation:t})=>{Y.update(e,t)}),g.onNotification(S.SubagentPolicyUnregistration,({owner:e,generation:t})=>{Y.remove(e,t)})),g.notify(S.SubagentPolicyDiscovery,{}),e.push(...O.bind(g,()=>{let e=i.normalizeParentModel(c.model);return{sessionId:c.sessionManager.getSessionId(),availableModels:r.authenticatedModelInfos(c.modelRegistry),...e?{parentModel:e}:{},forkSource:a.captureSessionForkSource(c.sessionManager,`tool`)}}),g.onNotification(b.DelegationRequested,e=>{d.recordEvent(`doom_team.delegation_requested`,{"agent.name":e.agent,"task.id":e.taskId,mode:e.runMode??`foreground`})}),g.onNotification(b.DelegationStarted,e=>{d.recordEvent(`doom_team.child_started`,{"run.id":e.runId,outcome:`started`})}),g.onNotification(b.DelegationUpdated,e=>{d.recordEvent(`doom_team.delegation_updated`,{"run.id":e.runId,"team.tool_count":e.toolCount??0,"team.duration_ms":e.durationMs??0,"team.token_count":e.tokens??0,outcome:e.status??`updated`})}),g.onNotification(b.DelegationFinished,e=>{d.recordEvent(`doom_team.delegation_finished`,{"run.id":e.runId,"team.tool_count":e.toolCount??0,"team.duration_ms":e.durationMs??0,outcome:e.status})}),g.onNotification(b.DelegationCancelled,()=>{d.recordEvent(`doom_team.delegation_cancelled`,{outcome:`cancelled`})})),Z.bindMainSession(f)}),k.setRuntimeCleanup(()=>{N();for(let t of e)t();e=[];for(let e of t)e();t=[],Y.clear(),u?.dispose(),u=void 0,C?.dispose(),C=void 0,O.abandonAll(),M.abandonAll(),X?.(),P(),Z.dispose(),K.stop(),D=void 0,G.dispose(),R.stop(),z.stop(),Z.dispose(),k.clearDefaultContainer()})}E.on(`session_shutdown`,async(e,t)=>{let r=n.tryCurrentSessionScope(),i=r?h.suspendScopeRuns({scope:r,reason:e.reason??w,readStatus:e=>J.status(e).status}):Promise.resolve(void 0);k.takeRuntimeCleanup()?.();let a;try{a=await i,await A?.recordEvent(`doom_team.session_finished`,{reason:e.reason??w,"team.suspended_count":a?.suspended.length??0,"team.unstoppable_count":a?.unstoppable.length??0,outcome:a?.unstoppable.length?`degraded`:`suspended`})}catch(t){await A?.recordError(`doom_team.session_shutdown_failed`,t,{reason:e.reason??w})}finally{await A?.shutdown(),A=void 0}})}exports.activateDoomTeamExtension=E;
|
|
2
2
|
//# sourceMappingURL=extension.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{GlobalStateBridge as e,init_globalBridge as t}from"../../container/globalBridge.mjs";import{DOOM_TEAM_TYPES as n,init_types as r}from"../../container/types.mjs";import{createSessionScope as i,init_paths as a,setCurrentSessionScope as ee,tryCurrentSessionScope as o}from"../../shared/paths.mjs";import{authenticatedModelInfos as s,init_modelResolution as c}from"../../shared/modelResolution.mjs";import{init_modelFallback as l,normalizeParentModel as u}from"../../services/runs/shared/modelFallback.mjs";import{captureSessionForkSource as te,init_spawnPlan as d}from"../../extensions/spawnPlan.mjs";import{TERMINAL_ASYNC_JOB_STATES as f}from"../asyncJobTracker.mjs";import{init_asyncJobTracker as p}from"../../services/runs/background/asyncJobTracker.mjs";import{formatSuspendedRunsAsync as m}from"../suspendedRuns.mjs";import{init_suspendedRuns as h}from"../../services/runs/registry/suspendedRuns.mjs";import{init_config as g,loadConfig as _}from"../../extensions/config.mjs";import{writeScopeOwnerAsync as ne}from"../scopeOwner.mjs";import{createExtensionContainer as v,init_container as y}from"../../container/index.mjs";import{registerSlashCommands as b}from"../../commands/slash/slashCommands.mjs";import{createDelegationBridge as x}from"../../extensions/delegationBridge.mjs";import{createFablePlanBridge as S}from"../../extensions/fablePlanBridge.mjs";import{appendOrchestratorPrompt as C,shouldInjectOrchestratorPrompt as w}from"../../extensions/orchestratorPrompt.mjs";import{openScopeAsync as re,suspendScopeRuns as ie}from"../../services/runs/registry/sessionLifecycle.mjs";import"../../shared/scopeOwner.mjs";import{registerCompletionRenderer as ae}from"../../tui/completionNotice.mjs";import{SUBAGENT_LEADER_SOURCE as oe,registerAgentListCommand as se,registerAgentStatus as ce,registerFleetCommand as le,registerSubagentLeaderContribution as ue}from"../../tui/register.mjs";import{resolveRootSessionId as T}from"@agimon-ai/doompi-extension-contracts/child-process";import{provideBackgroundWorkRegistry as E}from"@agimon-ai/doompi-extension-contracts/background-work";import{DelegationCancelled as D,DelegationFinished as O,DelegationRequested as k,DelegationStarted as A,DelegationUpdated as j}from"@agimon-ai/doompi-extension-contracts/delegation";import{createProtocolRuntime as M}from"@agimon-ai/doompi-extension-contracts/protocol";import{SubagentPolicyChanged as N,SubagentPolicyDiscovery as P,SubagentPolicyRegistration as F,SubagentPolicyUnregistration as I}from"@agimon-ai/doompi-extension-contracts/subagent-policy";import{createDoomTelemetry as L}from"@agimon-ai/doompi-telemetry";t(),y(),r(),g(),d(),p(),h(),l(),c(),a();const R=`unknown`;function z(e,t,n,r,i,a){return{spawnPlanner:n,tracker:r,scheduler:i,discovery:e,skills:t,management:a,loadConfig:()=>_().config}}function B(t,r={}){let a=r.doomIntegrations??!0,c=new e,l,d=e=>(l??=L({serviceName:`doom-team`,packageName:`@agimon-ai/doompi-team`,cwd:e.cwd,env:process.env,enableLogs:!0,enableTraces:!0}),l),p=(e,t)=>{l?.recordEvent(e,t)},h=c.getDefaultContainer(),g=h??v(p),y=h===void 0;y&&c.setDefaultContainer(g);let B=g.get(n.SubagentToolService),V=g.get(n.NativeTeamChannelService),H=g.get(n.PollScheduler),U=g.get(n.AsyncJobTracker),W=g.get(n.SubagentWaiter),de=g.get(n.AsyncSubagentSpawner),G=g.get(n.AgentDiscoveryService),K=g.get(n.SkillDiscoveryService),q=g.get(n.SpawnPlanner),J=g.get(n.CompletionNotifier),Y=g.get(n.ResultWatcher),X=g.get(n.StaleRunReconciler),Z=g.get(n.ManagementActions),Q=g.get(n.SubagentCapabilityPolicyStore);B.registerTool(t);let fe=y&&a?ue(t):void 0,$=V.createRuntime(t);if(V.registerClient(t),J.attachHost(t),H.start(),U.start(),y){let e=[],n=[],r,a,o,p,h=x({planner:q,management:Z,waiter:W,scheduler:H,tracker:U,loadConfig:()=>_().config}),g=S({spawner:de,waiter:W,management:Z,policies:Q,report:(e,t)=>{l?.recordEvent(e,t)}}),v=H.register({id:`stale-run-reconciler`,intervalMs:2e3,run:async()=>{let e=!1,t=!1;for(let n of o?.list()??[]){if(n.status&&f.has(n.status))continue;t=!0;let{reconcile:r,sweep:i}=X.reconcileAndSweepAsync?await X.reconcileAndSweepAsync(n.runId):X.reconcileAndSweep(n.runId);r.repaired&&(o?.track(n.runId),e=!0),i.recovered.length>0&&(e=!0)}return e||t}});t.on(`before_agent_start`,e=>{if(w(_().config))return{systemPrompt:C(e.systemPrompt)}}),b(t,{baseCwd:void 0},z(G,K,q,U,H,Z)),se(t,{discovery:G,skills:K,policies:Q}),le(t,{scheduler:H,tracker:U,management:Z});let y=ce(t,{scheduler:H,tracker:U});ae(t),t.on(`session_start`,async(c,l)=>{let f=d(l);f.recordEvent(`doom_team.session_started`,{"team.root_session":T(l.sessionManager.getSessionId())===l.sessionManager.getSessionId()});let _=l.sessionManager.getSessionId(),v=i(T(_));ee(v),await ne(v);let y=await re(v,{readStatusAsync:async e=>Z.statusAsync?(await Z.statusAsync(e)).status:Z.status(e).status});y.suspended.length>0&&l.hasUI&&l.ui.notify(await m(y.suspended),`info`),f.recordEvent(`doom_team.runs_restored`,{"team.suspended_count":y.suspended.length,"team.pruned_count":y.pruned.length,"team.reaped_count":y.reaped,outcome:`reported`}),o=U.forSession(_),p!==v.scopeKey&&(p=v.scopeKey,Y.start(e=>o?.get(e.runId)?J.deliver(e):!1));for(let t of e)t();e=[];for(let e of n)e();n=[],Q.clear(),r?.dispose(),a?.dispose(),a=void 0,h.abandonAll(),g.abandonAll();let b=M({bus:t.events,source:oe,sessionId:l.sessionManager.getSessionId()});r=E(b),a=g.bind({sessionId:_,cwd:l.cwd}),n.push(b.onNotification(F,({policy:e,generation:t})=>{Q.register(e,t)}),b.onNotification(N,({policy:e,generation:t})=>{Q.update(e,t)}),b.onNotification(I,({owner:e,generation:t})=>{Q.remove(e,t)})),b.notify(P,{}),e.push(...h.bind(b,()=>{let e=u(l.model);return{sessionId:l.sessionManager.getSessionId(),availableModels:s(l.modelRegistry),...e?{parentModel:e}:{},forkSource:te(l.sessionManager,`tool`)}}),b.onNotification(k,e=>{f.recordEvent(`doom_team.delegation_requested`,{"agent.name":e.agent,"task.id":e.taskId,mode:e.runMode??`foreground`})}),b.onNotification(A,e=>{f.recordEvent(`doom_team.child_started`,{"run.id":e.runId,outcome:`started`})}),b.onNotification(j,e=>{f.recordEvent(`doom_team.delegation_updated`,{"run.id":e.runId,"team.tool_count":e.toolCount??0,"team.duration_ms":e.durationMs??0,"team.token_count":e.tokens??0,outcome:e.status??`updated`})}),b.onNotification(O,e=>{f.recordEvent(`doom_team.delegation_finished`,{"run.id":e.runId,"team.tool_count":e.toolCount??0,"team.duration_ms":e.durationMs??0,outcome:e.status})}),b.onNotification(D,()=>{f.recordEvent(`doom_team.delegation_cancelled`,{outcome:`cancelled`})})),$.bindMainSession(_)}),c.setRuntimeCleanup(()=>{v();for(let t of e)t();e=[];for(let e of n)e();n=[],Q.clear(),r?.dispose(),r=void 0,a?.dispose(),a=void 0,h.abandonAll(),g.abandonAll(),fe?.(),y(),$.dispose(),Y.stop(),p=void 0,J.dispose(),H.stop(),U.stop(),$.dispose(),c.clearDefaultContainer()})}t.on(`session_shutdown`,async(e,t)=>{let n=o(),r=n?ie({scope:n,reason:e.reason??R,readStatus:e=>Z.status(e).status}):Promise.resolve(void 0);c.takeRuntimeCleanup()?.();let i;try{i=await r,await l?.recordEvent(`doom_team.session_finished`,{reason:e.reason??R,"team.suspended_count":i?.suspended.length??0,"team.unstoppable_count":i?.unstoppable.length??0,outcome:i?.unstoppable.length?`degraded`:`suspended`})}catch(t){await l?.recordError(`doom_team.session_shutdown_failed`,t,{reason:e.reason??R})}finally{await l?.shutdown(),l=void 0}})}export{B as activateDoomTeamExtension};
|
|
2
2
|
//# sourceMappingURL=extension.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../../_virtual/_rolldown/runtime.cjs`),require(`@agimon-ai/doompi-extension-contracts/child-process`);function e(e){return`DOOM_TEAM_${e.toUpperCase().replace(/[^A-Z0-9]+/g,`_`)}_BIN`}exports.CHILD_TOOL_DIAGNOSTIC_PATH_ENV=`PI_SUBAGENT_TOOL_DIAGNOSTIC_PATH`,exports.DOOMPI_CHILD_EXTENSIONS_ENV=`DOOMPI_CHILD_EXTENSIONS`,exports.DOOMPI_SKILL_DIRS_ENV=`DOOMPI_SKILL_DIRS`,exports.EXTRA_AGENT_DIRS_ENV=`PI_SUBAGENT_EXTRA_AGENT_DIRS`,exports.EXTRA_SKILL_DIRS_ENV=`PI_SUBAGENT_EXTRA_SKILL_DIRS`,exports.INHERIT_PROJECT_CONTEXT_ENV=`PI_SUBAGENT_INHERIT_PROJECT_CONTEXT`,exports.INHERIT_SKILLS_ENV=`PI_SUBAGENT_INHERIT_SKILLS`,exports.MAX_SPAWNS_PER_SESSION_ENV=`PI_SUBAGENT_MAX_SPAWNS_PER_SESSION`,exports.MCP_DIRECT_CHILD_TOOLS_ENV=`PI_SUBAGENT_MCP_DIRECT_TOOLS`,exports.MCP_DIRECT_TOOLS_ENV=`MCP_DIRECT_TOOLS`,exports.PI_CODING_AGENT_PACKAGE_ROOT_ENV=`PI_SUBAGENTS_PI_CODING_AGENT_PACKAGE_ROOT`,exports.PI_INTERCOM_SESSION_ID_ENV=`PI_INTERCOM_SESSION_ID`,exports.PI_INTERCOM_STABLE_ID_ENV=`PI_INTERCOM_STABLE_ID`,exports.PI_RUNTIME_NAME=`pi`,exports.PI_SUBAGENT_PI_BINARY_ENV=`PI_SUBAGENT_PI_BINARY`,exports.REQUIRED_CHILD_TOOLS_ENV=`PI_SUBAGENT_REQUIRED_TOOLS`,exports.STRUCTURED_OUTPUT_CAPTURE_ENV=`PI_SUBAGENT_STRUCTURED_OUTPUT_CAPTURE`,exports.STRUCTURED_OUTPUT_SCHEMA_ENV=`PI_SUBAGENT_STRUCTURED_OUTPUT_SCHEMA`,exports.SUBAGENT_CAPABILITY_CEILING_ENV=`PI_SUBAGENT_CAPABILITY_CEILING_V1`,exports.SUBAGENT_CHILD_AGENT_ENV=`PI_SUBAGENT_CHILD_AGENT`,exports.SUBAGENT_CHILD_INDEX_ENV=`PI_SUBAGENT_CHILD_INDEX`,exports.SUBAGENT_FANOUT_CHILD_ENV=`PI_SUBAGENT_FANOUT_CHILD`,exports.SUBAGENT_INTERCOM_SESSION_NAME_ENV=`PI_SUBAGENT_INTERCOM_SESSION_NAME`,exports.SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV=`PI_SUBAGENT_PARENT_CAPABILITY_TOKEN`,exports.SUBAGENT_PARENT_CHILD_INDEX_ENV=`PI_SUBAGENT_PARENT_CHILD_INDEX`,exports.SUBAGENT_PARENT_CONTROL_INBOX_ENV=`PI_SUBAGENT_PARENT_CONTROL_INBOX`,exports.SUBAGENT_PARENT_DEPTH_ENV=`PI_SUBAGENT_PARENT_DEPTH`,exports.SUBAGENT_PARENT_EVENT_SINK_ENV=`PI_SUBAGENT_PARENT_EVENT_SINK`,exports.SUBAGENT_PARENT_PATH_ENV=`PI_SUBAGENT_PARENT_PATH`,exports.SUBAGENT_PARENT_ROOT_RUN_ID_ENV=`PI_SUBAGENT_PARENT_ROOT_RUN_ID`,exports.SUBAGENT_PARENT_RUN_ID_ENV=`PI_SUBAGENT_PARENT_RUN_ID`,exports.SUBAGENT_RUN_ID_ENV=`PI_SUBAGENT_RUN_ID`,exports.SUBAGENT_STEER_ACK_DIR_ENV=`PI_SUBAGENT_STEER_ACK_DIR`,exports.SUBAGENT_STEER_CAPABILITY_ENV=`PI_SUBAGENT_STEER_CAPABILITY`,exports.SUBAGENT_STEER_INBOX_ENV=`PI_SUBAGENT_STEER_INBOX`,exports.SUBAGENT_TEAM_ID_ENV=`PI_SUBAGENT_TEAM_ID`,exports.SUBAGENT_TEAM_MAIN_MEMBER_ENV=`PI_SUBAGENT_TEAM_MAIN_MEMBER`,exports.SUBAGENT_TEAM_MEMBER_ID_ENV=`PI_SUBAGENT_TEAM_MEMBER_ID`,exports.SUBAGENT_TEAM_MEMBER_TOKEN_ENV=`PI_SUBAGENT_TEAM_MEMBER_TOKEN`,exports.SUBAGENT_TEAM_ROOT_SESSION_ENV=`PI_SUBAGENT_TEAM_ROOT_SESSION`,exports.TOOL_BUDGET_ENV=`PI_SUBAGENT_TOOL_BUDGET`,exports.TOOL_BUDGET_ZERO_AUTH_ENV=`PI_SUBAGENT_TOOL_BUDGET_ZERO_AUTH`,exports.WORKTREE_BASE_DIR_ENV=`PI_SUBAGENTS_WORKTREE_DIR`,exports.runtimeBinaryEnvVar=
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`),require(`@agimon-ai/doompi-extension-contracts/child-process`);function e(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?[...new Set(t.filter(e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>1))]:[]}catch{return[]}}function t(e){return`DOOM_TEAM_${e.toUpperCase().replace(/[^A-Z0-9]+/g,`_`)}_BIN`}exports.CHILD_TOOL_DIAGNOSTIC_PATH_ENV=`PI_SUBAGENT_TOOL_DIAGNOSTIC_PATH`,exports.DOOMPI_CHILD_EXTENSIONS_ENV=`DOOMPI_CHILD_EXTENSIONS`,exports.DOOMPI_SKILL_DIRS_ENV=`DOOMPI_SKILL_DIRS`,exports.EXTRA_AGENT_DIRS_ENV=`PI_SUBAGENT_EXTRA_AGENT_DIRS`,exports.EXTRA_SKILL_DIRS_ENV=`PI_SUBAGENT_EXTRA_SKILL_DIRS`,exports.INHERIT_PROJECT_CONTEXT_ENV=`PI_SUBAGENT_INHERIT_PROJECT_CONTEXT`,exports.INHERIT_SKILLS_ENV=`PI_SUBAGENT_INHERIT_SKILLS`,exports.MAX_SPAWNS_PER_SESSION_ENV=`PI_SUBAGENT_MAX_SPAWNS_PER_SESSION`,exports.MCP_DIRECT_CHILD_TOOLS_ENV=`PI_SUBAGENT_MCP_DIRECT_TOOLS`,exports.MCP_DIRECT_TOOLS_ENV=`MCP_DIRECT_TOOLS`,exports.PI_CODING_AGENT_PACKAGE_ROOT_ENV=`PI_SUBAGENTS_PI_CODING_AGENT_PACKAGE_ROOT`,exports.PI_INTERCOM_SESSION_ID_ENV=`PI_INTERCOM_SESSION_ID`,exports.PI_INTERCOM_STABLE_ID_ENV=`PI_INTERCOM_STABLE_ID`,exports.PI_RUNTIME_NAME=`pi`,exports.PI_SUBAGENT_PI_BINARY_ENV=`PI_SUBAGENT_PI_BINARY`,exports.REQUIRED_CHILD_TOOLS_ENV=`PI_SUBAGENT_REQUIRED_TOOLS`,exports.STRUCTURED_OUTPUT_CAPTURE_ENV=`PI_SUBAGENT_STRUCTURED_OUTPUT_CAPTURE`,exports.STRUCTURED_OUTPUT_SCHEMA_ENV=`PI_SUBAGENT_STRUCTURED_OUTPUT_SCHEMA`,exports.SUBAGENT_CAPABILITY_CEILING_ENV=`PI_SUBAGENT_CAPABILITY_CEILING_V1`,exports.SUBAGENT_CHILD_AGENT_ENV=`PI_SUBAGENT_CHILD_AGENT`,exports.SUBAGENT_CHILD_INDEX_ENV=`PI_SUBAGENT_CHILD_INDEX`,exports.SUBAGENT_FANOUT_CHILD_ENV=`PI_SUBAGENT_FANOUT_CHILD`,exports.SUBAGENT_INTERCOM_SESSION_NAME_ENV=`PI_SUBAGENT_INTERCOM_SESSION_NAME`,exports.SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV=`PI_SUBAGENT_PARENT_CAPABILITY_TOKEN`,exports.SUBAGENT_PARENT_CHILD_INDEX_ENV=`PI_SUBAGENT_PARENT_CHILD_INDEX`,exports.SUBAGENT_PARENT_CONTROL_INBOX_ENV=`PI_SUBAGENT_PARENT_CONTROL_INBOX`,exports.SUBAGENT_PARENT_DEPTH_ENV=`PI_SUBAGENT_PARENT_DEPTH`,exports.SUBAGENT_PARENT_EVENT_SINK_ENV=`PI_SUBAGENT_PARENT_EVENT_SINK`,exports.SUBAGENT_PARENT_PATH_ENV=`PI_SUBAGENT_PARENT_PATH`,exports.SUBAGENT_PARENT_ROOT_RUN_ID_ENV=`PI_SUBAGENT_PARENT_ROOT_RUN_ID`,exports.SUBAGENT_PARENT_RUN_ID_ENV=`PI_SUBAGENT_PARENT_RUN_ID`,exports.SUBAGENT_PROTECTED_PARENT_PIDS_ENV=`PI_SUBAGENT_PROTECTED_PARENT_PIDS`,exports.SUBAGENT_RUN_ID_ENV=`PI_SUBAGENT_RUN_ID`,exports.SUBAGENT_STEER_ACK_DIR_ENV=`PI_SUBAGENT_STEER_ACK_DIR`,exports.SUBAGENT_STEER_CAPABILITY_ENV=`PI_SUBAGENT_STEER_CAPABILITY`,exports.SUBAGENT_STEER_INBOX_ENV=`PI_SUBAGENT_STEER_INBOX`,exports.SUBAGENT_TEAM_ID_ENV=`PI_SUBAGENT_TEAM_ID`,exports.SUBAGENT_TEAM_MAIN_MEMBER_ENV=`PI_SUBAGENT_TEAM_MAIN_MEMBER`,exports.SUBAGENT_TEAM_MEMBER_ID_ENV=`PI_SUBAGENT_TEAM_MEMBER_ID`,exports.SUBAGENT_TEAM_MEMBER_TOKEN_ENV=`PI_SUBAGENT_TEAM_MEMBER_TOKEN`,exports.SUBAGENT_TEAM_ROOT_SESSION_ENV=`PI_SUBAGENT_TEAM_ROOT_SESSION`,exports.TOOL_BUDGET_ENV=`PI_SUBAGENT_TOOL_BUDGET`,exports.TOOL_BUDGET_ZERO_AUTH_ENV=`PI_SUBAGENT_TOOL_BUDGET_ZERO_AUTH`,exports.WORKTREE_BASE_DIR_ENV=`PI_SUBAGENTS_WORKTREE_DIR`,exports.decodeProtectedParentProcessIds=e,exports.runtimeBinaryEnvVar=t;
|
|
2
2
|
//# sourceMappingURL=env.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.cjs","names":[],"sources":["../../../src/adapters/process/env.ts"],"sourcesContent":["/**\n * Cross-process environment variable names.\n *\n * DESIGN PATTERNS:\n * - Zero imports, so any process role can read these without pulling in runtime\n * - Names AND values are identical to the predecessor package on purpose\n *\n * WHY THE VALUES ARE UNCHANGED:\n * `PI_SUBAGENT_CHILD` and `PI_SUBAGENT_PARENT_SESSION` are how sibling\n * extensions decide whether they are running inside a subagent child. A child\n * reads whatever its spawning parent set, so during cutover a consumer that has\n * already moved to this package can still be spawned by a doom-pi-subagents\n * parent. Re-prefixing the values would make that child fail to recognise\n * itself. Filesystem roots are namespaced instead; those are what actually\n * needed isolating.\n *\n * AVOID:\n * - Re-prefixing these values; the isolation belongs in the temp roots\n * - Hardcoding any of these literals at a call site\n */\n\nexport {\n SUBAGENT_CHILD_ENV,\n SUBAGENT_PARENT_SESSION_ENV,\n SUBAGENT_ROOT_SESSION_ENV,\n} from '@agimon-ai/doompi-extension-contracts/child-process';\n\nexport const SUBAGENT_RUN_ID_ENV = 'PI_SUBAGENT_RUN_ID';\nexport const SUBAGENT_CHILD_AGENT_ENV = 'PI_SUBAGENT_CHILD_AGENT';\nexport const SUBAGENT_CHILD_INDEX_ENV = 'PI_SUBAGENT_CHILD_INDEX';\nexport const SUBAGENT_FANOUT_CHILD_ENV = 'PI_SUBAGENT_FANOUT_CHILD';\nexport const SUBAGENT_PARENT_EVENT_SINK_ENV = 'PI_SUBAGENT_PARENT_EVENT_SINK';\nexport const SUBAGENT_PARENT_CONTROL_INBOX_ENV = 'PI_SUBAGENT_PARENT_CONTROL_INBOX';\nexport const SUBAGENT_PARENT_ROOT_RUN_ID_ENV = 'PI_SUBAGENT_PARENT_ROOT_RUN_ID';\nexport const SUBAGENT_PARENT_RUN_ID_ENV = 'PI_SUBAGENT_PARENT_RUN_ID';\nexport const SUBAGENT_PARENT_CHILD_INDEX_ENV = 'PI_SUBAGENT_PARENT_CHILD_INDEX';\nexport const SUBAGENT_PARENT_DEPTH_ENV = 'PI_SUBAGENT_PARENT_DEPTH';\nexport const SUBAGENT_PARENT_PATH_ENV = 'PI_SUBAGENT_PARENT_PATH';\nexport const SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = 'PI_SUBAGENT_PARENT_CAPABILITY_TOKEN';\nexport const SUBAGENT_STEER_INBOX_ENV = 'PI_SUBAGENT_STEER_INBOX';\nexport const SUBAGENT_STEER_CAPABILITY_ENV = 'PI_SUBAGENT_STEER_CAPABILITY';\nexport const SUBAGENT_STEER_ACK_DIR_ENV = 'PI_SUBAGENT_STEER_ACK_DIR';\n\n/** The in-process SDK runtime. Not an external command; see `runtimeRegistry.ts`. */\nexport const PI_RUNTIME_NAME = 'pi';\n\n/**\n * Per-runtime binary override, e.g. `DOOM_TEAM_CLAUDE_BIN=/path/to/claude`.\n *\n * Uppercased and non-alphanumerics folded to `_` so a runtime name that is\n * legal in config is always a legal environment variable name.\n */\nexport function runtimeBinaryEnvVar(runtime: string): string {\n return `DOOM_TEAM_${runtime.toUpperCase().replace(/[^A-Z0-9]+/g, '_')}_BIN`;\n}\n\nexport const SUBAGENT_TEAM_ID_ENV = 'PI_SUBAGENT_TEAM_ID';\nexport const SUBAGENT_TEAM_ROOT_SESSION_ENV = 'PI_SUBAGENT_TEAM_ROOT_SESSION';\nexport const SUBAGENT_TEAM_MAIN_MEMBER_ENV = 'PI_SUBAGENT_TEAM_MAIN_MEMBER';\nexport const SUBAGENT_TEAM_MEMBER_ID_ENV = 'PI_SUBAGENT_TEAM_MEMBER_ID';\nexport const SUBAGENT_TEAM_MEMBER_TOKEN_ENV = 'PI_SUBAGENT_TEAM_MEMBER_TOKEN';\n\nexport const SUBAGENT_CAPABILITY_CEILING_ENV = 'PI_SUBAGENT_CAPABILITY_CEILING_V1';\nexport const REQUIRED_CHILD_TOOLS_ENV = 'PI_SUBAGENT_REQUIRED_TOOLS';\nexport const MCP_DIRECT_CHILD_TOOLS_ENV = 'PI_SUBAGENT_MCP_DIRECT_TOOLS';\nexport const CHILD_TOOL_DIAGNOSTIC_PATH_ENV = 'PI_SUBAGENT_TOOL_DIAGNOSTIC_PATH';\nexport const TOOL_BUDGET_ENV = 'PI_SUBAGENT_TOOL_BUDGET';\nexport const TOOL_BUDGET_ZERO_AUTH_ENV = 'PI_SUBAGENT_TOOL_BUDGET_ZERO_AUTH';\nexport const MAX_SPAWNS_PER_SESSION_ENV = 'PI_SUBAGENT_MAX_SPAWNS_PER_SESSION';\nexport const STRUCTURED_OUTPUT_SCHEMA_ENV = 'PI_SUBAGENT_STRUCTURED_OUTPUT_SCHEMA';\nexport const STRUCTURED_OUTPUT_CAPTURE_ENV = 'PI_SUBAGENT_STRUCTURED_OUTPUT_CAPTURE';\nexport const INHERIT_PROJECT_CONTEXT_ENV = 'PI_SUBAGENT_INHERIT_PROJECT_CONTEXT';\nexport const INHERIT_SKILLS_ENV = 'PI_SUBAGENT_INHERIT_SKILLS';\n/**\n * Unprefixed on purpose: this one belongs to the Pi host, not to us. The child's\n * Pi runtime reads it directly, so the name is fixed by that contract and must\n * not be brought under the `PI_SUBAGENT_` namespace.\n */\nexport const MCP_DIRECT_TOOLS_ENV = 'MCP_DIRECT_TOOLS';\n/** Overrides where worktrees are created, for hosts whose tmpdir is unsuitable. */\nexport const WORKTREE_BASE_DIR_ENV = 'PI_SUBAGENTS_WORKTREE_DIR';\nexport const EXTRA_AGENT_DIRS_ENV = 'PI_SUBAGENT_EXTRA_AGENT_DIRS';\nexport const EXTRA_SKILL_DIRS_ENV = 'PI_SUBAGENT_EXTRA_SKILL_DIRS';\nexport const PI_SUBAGENT_PI_BINARY_ENV = 'PI_SUBAGENT_PI_BINARY';\nexport const PI_CODING_AGENT_PACKAGE_ROOT_ENV = 'PI_SUBAGENTS_PI_CODING_AGENT_PACKAGE_ROOT';\nexport const SUBAGENT_INTERCOM_SESSION_NAME_ENV = 'PI_SUBAGENT_INTERCOM_SESSION_NAME';\nexport const PI_INTERCOM_STABLE_ID_ENV = 'PI_INTERCOM_STABLE_ID';\nexport const PI_INTERCOM_SESSION_ID_ENV = 'PI_INTERCOM_SESSION_ID';\n\n/** Resolved child-safe DoomPi extensions inherited by SDK-backed agents. */\nexport const DOOMPI_CHILD_EXTENSIONS_ENV = 'DOOMPI_CHILD_EXTENSIONS';\n/** Resolved DoomPi domain skill directories inherited by SDK-backed agents. */\nexport const DOOMPI_SKILL_DIRS_ENV = 'DOOMPI_SKILL_DIRS';\n"],"mappings":"+
|
|
1
|
+
{"version":3,"file":"env.cjs","names":[],"sources":["../../../src/adapters/process/env.ts"],"sourcesContent":["/**\n * Cross-process environment variable names.\n *\n * DESIGN PATTERNS:\n * - Zero imports, so any process role can read these without pulling in runtime\n * - Names AND values are identical to the predecessor package on purpose\n *\n * WHY THE VALUES ARE UNCHANGED:\n * `PI_SUBAGENT_CHILD` and `PI_SUBAGENT_PARENT_SESSION` are how sibling\n * extensions decide whether they are running inside a subagent child. A child\n * reads whatever its spawning parent set, so during cutover a consumer that has\n * already moved to this package can still be spawned by a doom-pi-subagents\n * parent. Re-prefixing the values would make that child fail to recognise\n * itself. Filesystem roots are namespaced instead; those are what actually\n * needed isolating.\n *\n * AVOID:\n * - Re-prefixing these values; the isolation belongs in the temp roots\n * - Hardcoding any of these literals at a call site\n */\n\nexport {\n SUBAGENT_CHILD_ENV,\n SUBAGENT_PARENT_SESSION_ENV,\n SUBAGENT_ROOT_SESSION_ENV,\n} from '@agimon-ai/doompi-extension-contracts/child-process';\n\nexport const SUBAGENT_RUN_ID_ENV = 'PI_SUBAGENT_RUN_ID';\nexport const SUBAGENT_CHILD_AGENT_ENV = 'PI_SUBAGENT_CHILD_AGENT';\nexport const SUBAGENT_CHILD_INDEX_ENV = 'PI_SUBAGENT_CHILD_INDEX';\nexport const SUBAGENT_FANOUT_CHILD_ENV = 'PI_SUBAGENT_FANOUT_CHILD';\nexport const SUBAGENT_PARENT_EVENT_SINK_ENV = 'PI_SUBAGENT_PARENT_EVENT_SINK';\nexport const SUBAGENT_PARENT_CONTROL_INBOX_ENV = 'PI_SUBAGENT_PARENT_CONTROL_INBOX';\nexport const SUBAGENT_PARENT_ROOT_RUN_ID_ENV = 'PI_SUBAGENT_PARENT_ROOT_RUN_ID';\nexport const SUBAGENT_PARENT_RUN_ID_ENV = 'PI_SUBAGENT_PARENT_RUN_ID';\nexport const SUBAGENT_PARENT_CHILD_INDEX_ENV = 'PI_SUBAGENT_PARENT_CHILD_INDEX';\nexport const SUBAGENT_PARENT_DEPTH_ENV = 'PI_SUBAGENT_PARENT_DEPTH';\nexport const SUBAGENT_PARENT_PATH_ENV = 'PI_SUBAGENT_PARENT_PATH';\nexport const SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = 'PI_SUBAGENT_PARENT_CAPABILITY_TOKEN';\n/** Parent/workflow process ids a child Bash tool must never signal. */\nexport const SUBAGENT_PROTECTED_PARENT_PIDS_ENV = 'PI_SUBAGENT_PROTECTED_PARENT_PIDS';\n\n/** Decode the parent-owned PID allowlist without trusting malformed environment state. */\nexport function decodeProtectedParentProcessIds(encoded: string | undefined): number[] {\n if (!encoded) return [];\n try {\n const parsed: unknown = JSON.parse(encoded);\n if (!Array.isArray(parsed)) return [];\n return [\n ...new Set(\n parsed.filter(\n (value): value is number => typeof value === 'number' && Number.isSafeInteger(value) && value > 1,\n ),\n ),\n ];\n } catch {\n return [];\n }\n}\nexport const SUBAGENT_STEER_INBOX_ENV = 'PI_SUBAGENT_STEER_INBOX';\nexport const SUBAGENT_STEER_CAPABILITY_ENV = 'PI_SUBAGENT_STEER_CAPABILITY';\nexport const SUBAGENT_STEER_ACK_DIR_ENV = 'PI_SUBAGENT_STEER_ACK_DIR';\n\n/** The in-process SDK runtime. Not an external command; see `runtimeRegistry.ts`. */\nexport const PI_RUNTIME_NAME = 'pi';\n\n/**\n * Per-runtime binary override, e.g. `DOOM_TEAM_CLAUDE_BIN=/path/to/claude`.\n *\n * Uppercased and non-alphanumerics folded to `_` so a runtime name that is\n * legal in config is always a legal environment variable name.\n */\nexport function runtimeBinaryEnvVar(runtime: string): string {\n return `DOOM_TEAM_${runtime.toUpperCase().replace(/[^A-Z0-9]+/g, '_')}_BIN`;\n}\n\nexport const SUBAGENT_TEAM_ID_ENV = 'PI_SUBAGENT_TEAM_ID';\nexport const SUBAGENT_TEAM_ROOT_SESSION_ENV = 'PI_SUBAGENT_TEAM_ROOT_SESSION';\nexport const SUBAGENT_TEAM_MAIN_MEMBER_ENV = 'PI_SUBAGENT_TEAM_MAIN_MEMBER';\nexport const SUBAGENT_TEAM_MEMBER_ID_ENV = 'PI_SUBAGENT_TEAM_MEMBER_ID';\nexport const SUBAGENT_TEAM_MEMBER_TOKEN_ENV = 'PI_SUBAGENT_TEAM_MEMBER_TOKEN';\n\nexport const SUBAGENT_CAPABILITY_CEILING_ENV = 'PI_SUBAGENT_CAPABILITY_CEILING_V1';\nexport const REQUIRED_CHILD_TOOLS_ENV = 'PI_SUBAGENT_REQUIRED_TOOLS';\nexport const MCP_DIRECT_CHILD_TOOLS_ENV = 'PI_SUBAGENT_MCP_DIRECT_TOOLS';\nexport const CHILD_TOOL_DIAGNOSTIC_PATH_ENV = 'PI_SUBAGENT_TOOL_DIAGNOSTIC_PATH';\nexport const TOOL_BUDGET_ENV = 'PI_SUBAGENT_TOOL_BUDGET';\nexport const TOOL_BUDGET_ZERO_AUTH_ENV = 'PI_SUBAGENT_TOOL_BUDGET_ZERO_AUTH';\nexport const MAX_SPAWNS_PER_SESSION_ENV = 'PI_SUBAGENT_MAX_SPAWNS_PER_SESSION';\nexport const STRUCTURED_OUTPUT_SCHEMA_ENV = 'PI_SUBAGENT_STRUCTURED_OUTPUT_SCHEMA';\nexport const STRUCTURED_OUTPUT_CAPTURE_ENV = 'PI_SUBAGENT_STRUCTURED_OUTPUT_CAPTURE';\nexport const INHERIT_PROJECT_CONTEXT_ENV = 'PI_SUBAGENT_INHERIT_PROJECT_CONTEXT';\nexport const INHERIT_SKILLS_ENV = 'PI_SUBAGENT_INHERIT_SKILLS';\n/**\n * Unprefixed on purpose: this one belongs to the Pi host, not to us. The child's\n * Pi runtime reads it directly, so the name is fixed by that contract and must\n * not be brought under the `PI_SUBAGENT_` namespace.\n */\nexport const MCP_DIRECT_TOOLS_ENV = 'MCP_DIRECT_TOOLS';\n/** Overrides where worktrees are created, for hosts whose tmpdir is unsuitable. */\nexport const WORKTREE_BASE_DIR_ENV = 'PI_SUBAGENTS_WORKTREE_DIR';\nexport const EXTRA_AGENT_DIRS_ENV = 'PI_SUBAGENT_EXTRA_AGENT_DIRS';\nexport const EXTRA_SKILL_DIRS_ENV = 'PI_SUBAGENT_EXTRA_SKILL_DIRS';\nexport const PI_SUBAGENT_PI_BINARY_ENV = 'PI_SUBAGENT_PI_BINARY';\nexport const PI_CODING_AGENT_PACKAGE_ROOT_ENV = 'PI_SUBAGENTS_PI_CODING_AGENT_PACKAGE_ROOT';\nexport const SUBAGENT_INTERCOM_SESSION_NAME_ENV = 'PI_SUBAGENT_INTERCOM_SESSION_NAME';\nexport const PI_INTERCOM_STABLE_ID_ENV = 'PI_INTERCOM_STABLE_ID';\nexport const PI_INTERCOM_SESSION_ID_ENV = 'PI_INTERCOM_SESSION_ID';\n\n/** Resolved child-safe DoomPi extensions inherited by SDK-backed agents. */\nexport const DOOMPI_CHILD_EXTENSIONS_ENV = 'DOOMPI_CHILD_EXTENSIONS';\n/** Resolved DoomPi domain skill directories inherited by SDK-backed agents. */\nexport const DOOMPI_SKILL_DIRS_ENV = 'DOOMPI_SKILL_DIRS';\n"],"mappings":"+GA2CA,SAAgB,EAAgC,EAAuC,CACrF,GAAI,CAAC,EAAS,MAAO,EAAE,CACvB,GAAI,CACF,IAAM,EAAkB,KAAK,MAAM,EAAQ,CAE3C,OADK,MAAM,QAAQ,EAAO,CACnB,CACL,GAAG,IAAI,IACL,EAAO,OACJ,GAA2B,OAAO,GAAU,UAAY,OAAO,cAAc,EAAM,EAAI,EAAQ,EACjG,CACF,CACF,CAPkC,EAAE,MAQ/B,CACN,MAAO,EAAE,EAgBb,SAAgB,EAAoB,EAAyB,CAC3D,MAAO,aAAa,EAAQ,aAAa,CAAC,QAAQ,cAAe,IAAI,CAAC"}
|
|
@@ -13,6 +13,10 @@ declare const SUBAGENT_PARENT_CHILD_INDEX_ENV = "PI_SUBAGENT_PARENT_CHILD_INDEX"
|
|
|
13
13
|
declare const SUBAGENT_PARENT_DEPTH_ENV = "PI_SUBAGENT_PARENT_DEPTH";
|
|
14
14
|
declare const SUBAGENT_PARENT_PATH_ENV = "PI_SUBAGENT_PARENT_PATH";
|
|
15
15
|
declare const SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = "PI_SUBAGENT_PARENT_CAPABILITY_TOKEN";
|
|
16
|
+
/** Parent/workflow process ids a child Bash tool must never signal. */
|
|
17
|
+
declare const SUBAGENT_PROTECTED_PARENT_PIDS_ENV = "PI_SUBAGENT_PROTECTED_PARENT_PIDS";
|
|
18
|
+
/** Decode the parent-owned PID allowlist without trusting malformed environment state. */
|
|
19
|
+
declare function decodeProtectedParentProcessIds(encoded: string | undefined): number[];
|
|
16
20
|
declare const SUBAGENT_STEER_INBOX_ENV = "PI_SUBAGENT_STEER_INBOX";
|
|
17
21
|
declare const SUBAGENT_STEER_CAPABILITY_ENV = "PI_SUBAGENT_STEER_CAPABILITY";
|
|
18
22
|
declare const SUBAGENT_STEER_ACK_DIR_ENV = "PI_SUBAGENT_STEER_ACK_DIR";
|
|
@@ -61,5 +65,5 @@ declare const DOOMPI_CHILD_EXTENSIONS_ENV = "DOOMPI_CHILD_EXTENSIONS";
|
|
|
61
65
|
/** Resolved DoomPi domain skill directories inherited by SDK-backed agents. */
|
|
62
66
|
declare const DOOMPI_SKILL_DIRS_ENV = "DOOMPI_SKILL_DIRS";
|
|
63
67
|
//#endregion
|
|
64
|
-
export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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_ROOT_SESSION_ENV, SUBAGENT_RUN_ID_ENV, SUBAGENT_STEER_ACK_DIR_ENV, SUBAGENT_STEER_CAPABILITY_ENV, SUBAGENT_STEER_INBOX_ENV, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, runtimeBinaryEnvVar };
|
|
68
|
+
export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, decodeProtectedParentProcessIds, runtimeBinaryEnvVar };
|
|
65
69
|
//# sourceMappingURL=env.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.cts","names":[],"sources":["../../../src/adapters/process/env.ts"],"mappings":";;;cA2Ba,mBAAA;AAAA,cACA,wBAAA;AAAA,cACA,wBAAA;AAAA,cACA,yBAAA;AAAA,cACA,8BAAA;AAAA,cACA,iCAAA;AAAA,cACA,+BAAA;AAAA,cACA,0BAAA;AAAA,cACA,+BAAA;AAAA,cACA,yBAAA;AAAA,cACA,wBAAA;AAAA,cACA,oCAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"env.d.cts","names":[],"sources":["../../../src/adapters/process/env.ts"],"mappings":";;;cA2Ba,mBAAA;AAAA,cACA,wBAAA;AAAA,cACA,wBAAA;AAAA,cACA,yBAAA;AAAA,cACA,8BAAA;AAAA,cACA,iCAAA;AAAA,cACA,+BAAA;AAAA,cACA,0BAAA;AAAA,cACA,+BAAA;AAAA,cACA,yBAAA;AAAA,cACA,wBAAA;AAAA,cACA,oCAAA;AALb;AAAA,cAOa,kCAAA;;iBAGG,+BAAA,CAAgC,OAAA;AAAA,cAgBnC,wBAAA;AAAA,cACA,6BAAA;AAAA,cACA,0BAAA;;cAGA,eAAA;;AA7Bb;;;;;iBAqCgB,mBAAA,CAAoB,OAAA;AAAA,cAIvB,oBAAA;AAAA,cACA,8BAAA;AAAA,cACA,6BAAA;AAAA,cACA,2BAAA;AAAA,cACA,8BAAA;AAAA,cAEA,+BAAA;AAAA,cACA,wBAAA;AAAA,cACA,0BAAA;AAAA,cACA,8BAAA;AAAA,cACA,eAAA;AAAA,cACA,yBAAA;AAAA,cACA,0BAAA;AAAA,cACA,4BAAA;AAAA,cACA,6BAAA;AAAA,cACA,2BAAA;AAAA,cACA,kBAAA;;;;AAjDb;;cAuDa,oBAAA;;cAEA,qBAAA;AAAA,cACA,oBAAA;AAAA,cACA,oBAAA;AAAA,cACA,yBAAA;AAAA,cACA,gCAAA;AAAA,cACA,kCAAA;AAAA,cACA,yBAAA;AAAA,cACA,0BAAA;;cAGA,2BAAA;;cAEA,qBAAA"}
|
|
@@ -13,6 +13,10 @@ declare const SUBAGENT_PARENT_CHILD_INDEX_ENV = "PI_SUBAGENT_PARENT_CHILD_INDEX"
|
|
|
13
13
|
declare const SUBAGENT_PARENT_DEPTH_ENV = "PI_SUBAGENT_PARENT_DEPTH";
|
|
14
14
|
declare const SUBAGENT_PARENT_PATH_ENV = "PI_SUBAGENT_PARENT_PATH";
|
|
15
15
|
declare const SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = "PI_SUBAGENT_PARENT_CAPABILITY_TOKEN";
|
|
16
|
+
/** Parent/workflow process ids a child Bash tool must never signal. */
|
|
17
|
+
declare const SUBAGENT_PROTECTED_PARENT_PIDS_ENV = "PI_SUBAGENT_PROTECTED_PARENT_PIDS";
|
|
18
|
+
/** Decode the parent-owned PID allowlist without trusting malformed environment state. */
|
|
19
|
+
declare function decodeProtectedParentProcessIds(encoded: string | undefined): number[];
|
|
16
20
|
declare const SUBAGENT_STEER_INBOX_ENV = "PI_SUBAGENT_STEER_INBOX";
|
|
17
21
|
declare const SUBAGENT_STEER_CAPABILITY_ENV = "PI_SUBAGENT_STEER_CAPABILITY";
|
|
18
22
|
declare const SUBAGENT_STEER_ACK_DIR_ENV = "PI_SUBAGENT_STEER_ACK_DIR";
|
|
@@ -61,5 +65,5 @@ declare const DOOMPI_CHILD_EXTENSIONS_ENV = "DOOMPI_CHILD_EXTENSIONS";
|
|
|
61
65
|
/** Resolved DoomPi domain skill directories inherited by SDK-backed agents. */
|
|
62
66
|
declare const DOOMPI_SKILL_DIRS_ENV = "DOOMPI_SKILL_DIRS";
|
|
63
67
|
//#endregion
|
|
64
|
-
export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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_ROOT_SESSION_ENV, SUBAGENT_RUN_ID_ENV, SUBAGENT_STEER_ACK_DIR_ENV, SUBAGENT_STEER_CAPABILITY_ENV, SUBAGENT_STEER_INBOX_ENV, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, runtimeBinaryEnvVar };
|
|
68
|
+
export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, decodeProtectedParentProcessIds, runtimeBinaryEnvVar };
|
|
65
69
|
//# sourceMappingURL=env.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.mts","names":[],"sources":["../../../src/adapters/process/env.ts"],"mappings":";;;cA2Ba,mBAAA;AAAA,cACA,wBAAA;AAAA,cACA,wBAAA;AAAA,cACA,yBAAA;AAAA,cACA,8BAAA;AAAA,cACA,iCAAA;AAAA,cACA,+BAAA;AAAA,cACA,0BAAA;AAAA,cACA,+BAAA;AAAA,cACA,yBAAA;AAAA,cACA,wBAAA;AAAA,cACA,oCAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"env.d.mts","names":[],"sources":["../../../src/adapters/process/env.ts"],"mappings":";;;cA2Ba,mBAAA;AAAA,cACA,wBAAA;AAAA,cACA,wBAAA;AAAA,cACA,yBAAA;AAAA,cACA,8BAAA;AAAA,cACA,iCAAA;AAAA,cACA,+BAAA;AAAA,cACA,0BAAA;AAAA,cACA,+BAAA;AAAA,cACA,yBAAA;AAAA,cACA,wBAAA;AAAA,cACA,oCAAA;AALb;AAAA,cAOa,kCAAA;;iBAGG,+BAAA,CAAgC,OAAA;AAAA,cAgBnC,wBAAA;AAAA,cACA,6BAAA;AAAA,cACA,0BAAA;;cAGA,eAAA;;AA7Bb;;;;;iBAqCgB,mBAAA,CAAoB,OAAA;AAAA,cAIvB,oBAAA;AAAA,cACA,8BAAA;AAAA,cACA,6BAAA;AAAA,cACA,2BAAA;AAAA,cACA,8BAAA;AAAA,cAEA,+BAAA;AAAA,cACA,wBAAA;AAAA,cACA,0BAAA;AAAA,cACA,8BAAA;AAAA,cACA,eAAA;AAAA,cACA,yBAAA;AAAA,cACA,0BAAA;AAAA,cACA,4BAAA;AAAA,cACA,6BAAA;AAAA,cACA,2BAAA;AAAA,cACA,kBAAA;;;;AAjDb;;cAuDa,oBAAA;;cAEA,qBAAA;AAAA,cACA,oBAAA;AAAA,cACA,oBAAA;AAAA,cACA,yBAAA;AAAA,cACA,gCAAA;AAAA,cACA,kCAAA;AAAA,cACA,yBAAA;AAAA,cACA,0BAAA;;cAGA,2BAAA;;cAEA,qBAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{SUBAGENT_CHILD_ENV as t,SUBAGENT_PARENT_SESSION_ENV as n,SUBAGENT_ROOT_SESSION_ENV as r}from"@agimon-ai/doompi-extension-contracts/child-process";function i(e){return`DOOM_TEAM_${e.toUpperCase().replace(/[^A-Z0-9]+/g,`_`)}_BIN`}var
|
|
1
|
+
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{SUBAGENT_CHILD_ENV as t,SUBAGENT_PARENT_SESSION_ENV as n,SUBAGENT_ROOT_SESSION_ENV as r}from"@agimon-ai/doompi-extension-contracts/child-process";function i(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?[...new Set(t.filter(e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>1))]:[]}catch{return[]}}function a(e){return`DOOM_TEAM_${e.toUpperCase().replace(/[^A-Z0-9]+/g,`_`)}_BIN`}var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,Y,X=e((()=>{o=`PI_SUBAGENT_RUN_ID`,s=`PI_SUBAGENT_CHILD_AGENT`,c=`PI_SUBAGENT_CHILD_INDEX`,l=`PI_SUBAGENT_FANOUT_CHILD`,u=`PI_SUBAGENT_PARENT_EVENT_SINK`,d=`PI_SUBAGENT_PARENT_CONTROL_INBOX`,f=`PI_SUBAGENT_PARENT_ROOT_RUN_ID`,p=`PI_SUBAGENT_PARENT_RUN_ID`,m=`PI_SUBAGENT_PARENT_CHILD_INDEX`,h=`PI_SUBAGENT_PARENT_DEPTH`,g=`PI_SUBAGENT_PARENT_PATH`,_=`PI_SUBAGENT_PARENT_CAPABILITY_TOKEN`,v=`PI_SUBAGENT_PROTECTED_PARENT_PIDS`,y=`PI_SUBAGENT_STEER_INBOX`,b=`PI_SUBAGENT_STEER_CAPABILITY`,x=`PI_SUBAGENT_STEER_ACK_DIR`,S=`pi`,C=`PI_SUBAGENT_TEAM_ID`,w=`PI_SUBAGENT_TEAM_ROOT_SESSION`,T=`PI_SUBAGENT_TEAM_MAIN_MEMBER`,E=`PI_SUBAGENT_TEAM_MEMBER_ID`,D=`PI_SUBAGENT_TEAM_MEMBER_TOKEN`,O=`PI_SUBAGENT_CAPABILITY_CEILING_V1`,k=`PI_SUBAGENT_REQUIRED_TOOLS`,A=`PI_SUBAGENT_MCP_DIRECT_TOOLS`,j=`PI_SUBAGENT_TOOL_DIAGNOSTIC_PATH`,M=`PI_SUBAGENT_TOOL_BUDGET`,N=`PI_SUBAGENT_TOOL_BUDGET_ZERO_AUTH`,P=`PI_SUBAGENT_MAX_SPAWNS_PER_SESSION`,F=`PI_SUBAGENT_STRUCTURED_OUTPUT_SCHEMA`,I=`PI_SUBAGENT_STRUCTURED_OUTPUT_CAPTURE`,L=`PI_SUBAGENT_INHERIT_PROJECT_CONTEXT`,R=`PI_SUBAGENT_INHERIT_SKILLS`,z=`MCP_DIRECT_TOOLS`,B=`PI_SUBAGENTS_WORKTREE_DIR`,V=`PI_SUBAGENT_EXTRA_AGENT_DIRS`,H=`PI_SUBAGENT_EXTRA_SKILL_DIRS`,U=`PI_SUBAGENT_PI_BINARY`,W=`PI_SUBAGENTS_PI_CODING_AGENT_PACKAGE_ROOT`,G=`PI_SUBAGENT_INTERCOM_SESSION_NAME`,K=`PI_INTERCOM_STABLE_ID`,q=`PI_INTERCOM_SESSION_ID`,J=`DOOMPI_CHILD_EXTENSIONS`,Y=`DOOMPI_SKILL_DIRS`}));X();export{j as CHILD_TOOL_DIAGNOSTIC_PATH_ENV,J as DOOMPI_CHILD_EXTENSIONS_ENV,Y as DOOMPI_SKILL_DIRS_ENV,V as EXTRA_AGENT_DIRS_ENV,H as EXTRA_SKILL_DIRS_ENV,L as INHERIT_PROJECT_CONTEXT_ENV,R as INHERIT_SKILLS_ENV,P as MAX_SPAWNS_PER_SESSION_ENV,A as MCP_DIRECT_CHILD_TOOLS_ENV,z as MCP_DIRECT_TOOLS_ENV,W as PI_CODING_AGENT_PACKAGE_ROOT_ENV,q as PI_INTERCOM_SESSION_ID_ENV,K as PI_INTERCOM_STABLE_ID_ENV,S as PI_RUNTIME_NAME,U as PI_SUBAGENT_PI_BINARY_ENV,k as REQUIRED_CHILD_TOOLS_ENV,I as STRUCTURED_OUTPUT_CAPTURE_ENV,F as STRUCTURED_OUTPUT_SCHEMA_ENV,O as SUBAGENT_CAPABILITY_CEILING_ENV,s as SUBAGENT_CHILD_AGENT_ENV,t as SUBAGENT_CHILD_ENV,c as SUBAGENT_CHILD_INDEX_ENV,l as SUBAGENT_FANOUT_CHILD_ENV,G as SUBAGENT_INTERCOM_SESSION_NAME_ENV,_ as SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV,m as SUBAGENT_PARENT_CHILD_INDEX_ENV,d as SUBAGENT_PARENT_CONTROL_INBOX_ENV,h as SUBAGENT_PARENT_DEPTH_ENV,u as SUBAGENT_PARENT_EVENT_SINK_ENV,g as SUBAGENT_PARENT_PATH_ENV,f as SUBAGENT_PARENT_ROOT_RUN_ID_ENV,p as SUBAGENT_PARENT_RUN_ID_ENV,n as SUBAGENT_PARENT_SESSION_ENV,v as SUBAGENT_PROTECTED_PARENT_PIDS_ENV,r as SUBAGENT_ROOT_SESSION_ENV,o as SUBAGENT_RUN_ID_ENV,x as SUBAGENT_STEER_ACK_DIR_ENV,b as SUBAGENT_STEER_CAPABILITY_ENV,y as SUBAGENT_STEER_INBOX_ENV,C as SUBAGENT_TEAM_ID_ENV,T as SUBAGENT_TEAM_MAIN_MEMBER_ENV,E as SUBAGENT_TEAM_MEMBER_ID_ENV,D as SUBAGENT_TEAM_MEMBER_TOKEN_ENV,w as SUBAGENT_TEAM_ROOT_SESSION_ENV,M as TOOL_BUDGET_ENV,N as TOOL_BUDGET_ZERO_AUTH_ENV,B as WORKTREE_BASE_DIR_ENV,i as decodeProtectedParentProcessIds,X as init_env,a as runtimeBinaryEnvVar};
|
|
2
2
|
//# sourceMappingURL=env.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.mjs","names":[],"sources":["../../../src/adapters/process/env.ts"],"sourcesContent":["/**\n * Cross-process environment variable names.\n *\n * DESIGN PATTERNS:\n * - Zero imports, so any process role can read these without pulling in runtime\n * - Names AND values are identical to the predecessor package on purpose\n *\n * WHY THE VALUES ARE UNCHANGED:\n * `PI_SUBAGENT_CHILD` and `PI_SUBAGENT_PARENT_SESSION` are how sibling\n * extensions decide whether they are running inside a subagent child. A child\n * reads whatever its spawning parent set, so during cutover a consumer that has\n * already moved to this package can still be spawned by a doom-pi-subagents\n * parent. Re-prefixing the values would make that child fail to recognise\n * itself. Filesystem roots are namespaced instead; those are what actually\n * needed isolating.\n *\n * AVOID:\n * - Re-prefixing these values; the isolation belongs in the temp roots\n * - Hardcoding any of these literals at a call site\n */\n\nexport {\n SUBAGENT_CHILD_ENV,\n SUBAGENT_PARENT_SESSION_ENV,\n SUBAGENT_ROOT_SESSION_ENV,\n} from '@agimon-ai/doompi-extension-contracts/child-process';\n\nexport const SUBAGENT_RUN_ID_ENV = 'PI_SUBAGENT_RUN_ID';\nexport const SUBAGENT_CHILD_AGENT_ENV = 'PI_SUBAGENT_CHILD_AGENT';\nexport const SUBAGENT_CHILD_INDEX_ENV = 'PI_SUBAGENT_CHILD_INDEX';\nexport const SUBAGENT_FANOUT_CHILD_ENV = 'PI_SUBAGENT_FANOUT_CHILD';\nexport const SUBAGENT_PARENT_EVENT_SINK_ENV = 'PI_SUBAGENT_PARENT_EVENT_SINK';\nexport const SUBAGENT_PARENT_CONTROL_INBOX_ENV = 'PI_SUBAGENT_PARENT_CONTROL_INBOX';\nexport const SUBAGENT_PARENT_ROOT_RUN_ID_ENV = 'PI_SUBAGENT_PARENT_ROOT_RUN_ID';\nexport const SUBAGENT_PARENT_RUN_ID_ENV = 'PI_SUBAGENT_PARENT_RUN_ID';\nexport const SUBAGENT_PARENT_CHILD_INDEX_ENV = 'PI_SUBAGENT_PARENT_CHILD_INDEX';\nexport const SUBAGENT_PARENT_DEPTH_ENV = 'PI_SUBAGENT_PARENT_DEPTH';\nexport const SUBAGENT_PARENT_PATH_ENV = 'PI_SUBAGENT_PARENT_PATH';\nexport const SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = 'PI_SUBAGENT_PARENT_CAPABILITY_TOKEN';\nexport const SUBAGENT_STEER_INBOX_ENV = 'PI_SUBAGENT_STEER_INBOX';\nexport const SUBAGENT_STEER_CAPABILITY_ENV = 'PI_SUBAGENT_STEER_CAPABILITY';\nexport const SUBAGENT_STEER_ACK_DIR_ENV = 'PI_SUBAGENT_STEER_ACK_DIR';\n\n/** The in-process SDK runtime. Not an external command; see `runtimeRegistry.ts`. */\nexport const PI_RUNTIME_NAME = 'pi';\n\n/**\n * Per-runtime binary override, e.g. `DOOM_TEAM_CLAUDE_BIN=/path/to/claude`.\n *\n * Uppercased and non-alphanumerics folded to `_` so a runtime name that is\n * legal in config is always a legal environment variable name.\n */\nexport function runtimeBinaryEnvVar(runtime: string): string {\n return `DOOM_TEAM_${runtime.toUpperCase().replace(/[^A-Z0-9]+/g, '_')}_BIN`;\n}\n\nexport const SUBAGENT_TEAM_ID_ENV = 'PI_SUBAGENT_TEAM_ID';\nexport const SUBAGENT_TEAM_ROOT_SESSION_ENV = 'PI_SUBAGENT_TEAM_ROOT_SESSION';\nexport const SUBAGENT_TEAM_MAIN_MEMBER_ENV = 'PI_SUBAGENT_TEAM_MAIN_MEMBER';\nexport const SUBAGENT_TEAM_MEMBER_ID_ENV = 'PI_SUBAGENT_TEAM_MEMBER_ID';\nexport const SUBAGENT_TEAM_MEMBER_TOKEN_ENV = 'PI_SUBAGENT_TEAM_MEMBER_TOKEN';\n\nexport const SUBAGENT_CAPABILITY_CEILING_ENV = 'PI_SUBAGENT_CAPABILITY_CEILING_V1';\nexport const REQUIRED_CHILD_TOOLS_ENV = 'PI_SUBAGENT_REQUIRED_TOOLS';\nexport const MCP_DIRECT_CHILD_TOOLS_ENV = 'PI_SUBAGENT_MCP_DIRECT_TOOLS';\nexport const CHILD_TOOL_DIAGNOSTIC_PATH_ENV = 'PI_SUBAGENT_TOOL_DIAGNOSTIC_PATH';\nexport const TOOL_BUDGET_ENV = 'PI_SUBAGENT_TOOL_BUDGET';\nexport const TOOL_BUDGET_ZERO_AUTH_ENV = 'PI_SUBAGENT_TOOL_BUDGET_ZERO_AUTH';\nexport const MAX_SPAWNS_PER_SESSION_ENV = 'PI_SUBAGENT_MAX_SPAWNS_PER_SESSION';\nexport const STRUCTURED_OUTPUT_SCHEMA_ENV = 'PI_SUBAGENT_STRUCTURED_OUTPUT_SCHEMA';\nexport const STRUCTURED_OUTPUT_CAPTURE_ENV = 'PI_SUBAGENT_STRUCTURED_OUTPUT_CAPTURE';\nexport const INHERIT_PROJECT_CONTEXT_ENV = 'PI_SUBAGENT_INHERIT_PROJECT_CONTEXT';\nexport const INHERIT_SKILLS_ENV = 'PI_SUBAGENT_INHERIT_SKILLS';\n/**\n * Unprefixed on purpose: this one belongs to the Pi host, not to us. The child's\n * Pi runtime reads it directly, so the name is fixed by that contract and must\n * not be brought under the `PI_SUBAGENT_` namespace.\n */\nexport const MCP_DIRECT_TOOLS_ENV = 'MCP_DIRECT_TOOLS';\n/** Overrides where worktrees are created, for hosts whose tmpdir is unsuitable. */\nexport const WORKTREE_BASE_DIR_ENV = 'PI_SUBAGENTS_WORKTREE_DIR';\nexport const EXTRA_AGENT_DIRS_ENV = 'PI_SUBAGENT_EXTRA_AGENT_DIRS';\nexport const EXTRA_SKILL_DIRS_ENV = 'PI_SUBAGENT_EXTRA_SKILL_DIRS';\nexport const PI_SUBAGENT_PI_BINARY_ENV = 'PI_SUBAGENT_PI_BINARY';\nexport const PI_CODING_AGENT_PACKAGE_ROOT_ENV = 'PI_SUBAGENTS_PI_CODING_AGENT_PACKAGE_ROOT';\nexport const SUBAGENT_INTERCOM_SESSION_NAME_ENV = 'PI_SUBAGENT_INTERCOM_SESSION_NAME';\nexport const PI_INTERCOM_STABLE_ID_ENV = 'PI_INTERCOM_STABLE_ID';\nexport const PI_INTERCOM_SESSION_ID_ENV = 'PI_INTERCOM_SESSION_ID';\n\n/** Resolved child-safe DoomPi extensions inherited by SDK-backed agents. */\nexport const DOOMPI_CHILD_EXTENSIONS_ENV = 'DOOMPI_CHILD_EXTENSIONS';\n/** Resolved DoomPi domain skill directories inherited by SDK-backed agents. */\nexport const DOOMPI_SKILL_DIRS_ENV = 'DOOMPI_SKILL_DIRS';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"env.mjs","names":[],"sources":["../../../src/adapters/process/env.ts"],"sourcesContent":["/**\n * Cross-process environment variable names.\n *\n * DESIGN PATTERNS:\n * - Zero imports, so any process role can read these without pulling in runtime\n * - Names AND values are identical to the predecessor package on purpose\n *\n * WHY THE VALUES ARE UNCHANGED:\n * `PI_SUBAGENT_CHILD` and `PI_SUBAGENT_PARENT_SESSION` are how sibling\n * extensions decide whether they are running inside a subagent child. A child\n * reads whatever its spawning parent set, so during cutover a consumer that has\n * already moved to this package can still be spawned by a doom-pi-subagents\n * parent. Re-prefixing the values would make that child fail to recognise\n * itself. Filesystem roots are namespaced instead; those are what actually\n * needed isolating.\n *\n * AVOID:\n * - Re-prefixing these values; the isolation belongs in the temp roots\n * - Hardcoding any of these literals at a call site\n */\n\nexport {\n SUBAGENT_CHILD_ENV,\n SUBAGENT_PARENT_SESSION_ENV,\n SUBAGENT_ROOT_SESSION_ENV,\n} from '@agimon-ai/doompi-extension-contracts/child-process';\n\nexport const SUBAGENT_RUN_ID_ENV = 'PI_SUBAGENT_RUN_ID';\nexport const SUBAGENT_CHILD_AGENT_ENV = 'PI_SUBAGENT_CHILD_AGENT';\nexport const SUBAGENT_CHILD_INDEX_ENV = 'PI_SUBAGENT_CHILD_INDEX';\nexport const SUBAGENT_FANOUT_CHILD_ENV = 'PI_SUBAGENT_FANOUT_CHILD';\nexport const SUBAGENT_PARENT_EVENT_SINK_ENV = 'PI_SUBAGENT_PARENT_EVENT_SINK';\nexport const SUBAGENT_PARENT_CONTROL_INBOX_ENV = 'PI_SUBAGENT_PARENT_CONTROL_INBOX';\nexport const SUBAGENT_PARENT_ROOT_RUN_ID_ENV = 'PI_SUBAGENT_PARENT_ROOT_RUN_ID';\nexport const SUBAGENT_PARENT_RUN_ID_ENV = 'PI_SUBAGENT_PARENT_RUN_ID';\nexport const SUBAGENT_PARENT_CHILD_INDEX_ENV = 'PI_SUBAGENT_PARENT_CHILD_INDEX';\nexport const SUBAGENT_PARENT_DEPTH_ENV = 'PI_SUBAGENT_PARENT_DEPTH';\nexport const SUBAGENT_PARENT_PATH_ENV = 'PI_SUBAGENT_PARENT_PATH';\nexport const SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV = 'PI_SUBAGENT_PARENT_CAPABILITY_TOKEN';\n/** Parent/workflow process ids a child Bash tool must never signal. */\nexport const SUBAGENT_PROTECTED_PARENT_PIDS_ENV = 'PI_SUBAGENT_PROTECTED_PARENT_PIDS';\n\n/** Decode the parent-owned PID allowlist without trusting malformed environment state. */\nexport function decodeProtectedParentProcessIds(encoded: string | undefined): number[] {\n if (!encoded) return [];\n try {\n const parsed: unknown = JSON.parse(encoded);\n if (!Array.isArray(parsed)) return [];\n return [\n ...new Set(\n parsed.filter(\n (value): value is number => typeof value === 'number' && Number.isSafeInteger(value) && value > 1,\n ),\n ),\n ];\n } catch {\n return [];\n }\n}\nexport const SUBAGENT_STEER_INBOX_ENV = 'PI_SUBAGENT_STEER_INBOX';\nexport const SUBAGENT_STEER_CAPABILITY_ENV = 'PI_SUBAGENT_STEER_CAPABILITY';\nexport const SUBAGENT_STEER_ACK_DIR_ENV = 'PI_SUBAGENT_STEER_ACK_DIR';\n\n/** The in-process SDK runtime. Not an external command; see `runtimeRegistry.ts`. */\nexport const PI_RUNTIME_NAME = 'pi';\n\n/**\n * Per-runtime binary override, e.g. `DOOM_TEAM_CLAUDE_BIN=/path/to/claude`.\n *\n * Uppercased and non-alphanumerics folded to `_` so a runtime name that is\n * legal in config is always a legal environment variable name.\n */\nexport function runtimeBinaryEnvVar(runtime: string): string {\n return `DOOM_TEAM_${runtime.toUpperCase().replace(/[^A-Z0-9]+/g, '_')}_BIN`;\n}\n\nexport const SUBAGENT_TEAM_ID_ENV = 'PI_SUBAGENT_TEAM_ID';\nexport const SUBAGENT_TEAM_ROOT_SESSION_ENV = 'PI_SUBAGENT_TEAM_ROOT_SESSION';\nexport const SUBAGENT_TEAM_MAIN_MEMBER_ENV = 'PI_SUBAGENT_TEAM_MAIN_MEMBER';\nexport const SUBAGENT_TEAM_MEMBER_ID_ENV = 'PI_SUBAGENT_TEAM_MEMBER_ID';\nexport const SUBAGENT_TEAM_MEMBER_TOKEN_ENV = 'PI_SUBAGENT_TEAM_MEMBER_TOKEN';\n\nexport const SUBAGENT_CAPABILITY_CEILING_ENV = 'PI_SUBAGENT_CAPABILITY_CEILING_V1';\nexport const REQUIRED_CHILD_TOOLS_ENV = 'PI_SUBAGENT_REQUIRED_TOOLS';\nexport const MCP_DIRECT_CHILD_TOOLS_ENV = 'PI_SUBAGENT_MCP_DIRECT_TOOLS';\nexport const CHILD_TOOL_DIAGNOSTIC_PATH_ENV = 'PI_SUBAGENT_TOOL_DIAGNOSTIC_PATH';\nexport const TOOL_BUDGET_ENV = 'PI_SUBAGENT_TOOL_BUDGET';\nexport const TOOL_BUDGET_ZERO_AUTH_ENV = 'PI_SUBAGENT_TOOL_BUDGET_ZERO_AUTH';\nexport const MAX_SPAWNS_PER_SESSION_ENV = 'PI_SUBAGENT_MAX_SPAWNS_PER_SESSION';\nexport const STRUCTURED_OUTPUT_SCHEMA_ENV = 'PI_SUBAGENT_STRUCTURED_OUTPUT_SCHEMA';\nexport const STRUCTURED_OUTPUT_CAPTURE_ENV = 'PI_SUBAGENT_STRUCTURED_OUTPUT_CAPTURE';\nexport const INHERIT_PROJECT_CONTEXT_ENV = 'PI_SUBAGENT_INHERIT_PROJECT_CONTEXT';\nexport const INHERIT_SKILLS_ENV = 'PI_SUBAGENT_INHERIT_SKILLS';\n/**\n * Unprefixed on purpose: this one belongs to the Pi host, not to us. The child's\n * Pi runtime reads it directly, so the name is fixed by that contract and must\n * not be brought under the `PI_SUBAGENT_` namespace.\n */\nexport const MCP_DIRECT_TOOLS_ENV = 'MCP_DIRECT_TOOLS';\n/** Overrides where worktrees are created, for hosts whose tmpdir is unsuitable. */\nexport const WORKTREE_BASE_DIR_ENV = 'PI_SUBAGENTS_WORKTREE_DIR';\nexport const EXTRA_AGENT_DIRS_ENV = 'PI_SUBAGENT_EXTRA_AGENT_DIRS';\nexport const EXTRA_SKILL_DIRS_ENV = 'PI_SUBAGENT_EXTRA_SKILL_DIRS';\nexport const PI_SUBAGENT_PI_BINARY_ENV = 'PI_SUBAGENT_PI_BINARY';\nexport const PI_CODING_AGENT_PACKAGE_ROOT_ENV = 'PI_SUBAGENTS_PI_CODING_AGENT_PACKAGE_ROOT';\nexport const SUBAGENT_INTERCOM_SESSION_NAME_ENV = 'PI_SUBAGENT_INTERCOM_SESSION_NAME';\nexport const PI_INTERCOM_STABLE_ID_ENV = 'PI_INTERCOM_STABLE_ID';\nexport const PI_INTERCOM_SESSION_ID_ENV = 'PI_INTERCOM_SESSION_ID';\n\n/** Resolved child-safe DoomPi extensions inherited by SDK-backed agents. */\nexport const DOOMPI_CHILD_EXTENSIONS_ENV = 'DOOMPI_CHILD_EXTENSIONS';\n/** Resolved DoomPi domain skill directories inherited by SDK-backed agents. */\nexport const DOOMPI_SKILL_DIRS_ENV = 'DOOMPI_SKILL_DIRS';\n"],"mappings":"yNA2CA,SAAgB,EAAgC,EAAuC,CACrF,GAAI,CAAC,EAAS,MAAO,EAAE,CACvB,GAAI,CACF,IAAM,EAAkB,KAAK,MAAM,EAAQ,CAE3C,OADK,MAAM,QAAQ,EAAO,CACnB,CACL,GAAG,IAAI,IACL,EAAO,OACJ,GAA2B,OAAO,GAAU,UAAY,OAAO,cAAc,EAAM,EAAI,EAAQ,EACjG,CACF,CACF,CAPkC,EAAE,MAQ/B,CACN,MAAO,EAAE,EAgBb,SAAgB,EAAoB,EAAyB,CAC3D,MAAO,aAAa,EAAQ,aAAa,CAAC,QAAQ,cAAe,IAAI,CAAC,4GA9C3D,EAAsB,qBACtB,EAA2B,0BAC3B,EAA2B,0BAC3B,EAA4B,2BAC5B,EAAiC,gCACjC,EAAoC,mCACpC,EAAkC,iCAClC,EAA6B,4BAC7B,EAAkC,iCAClC,EAA4B,2BAC5B,EAA2B,0BAC3B,EAAuC,sCAEvC,EAAqC,oCAmBrC,EAA2B,0BAC3B,EAAgC,+BAChC,EAA6B,4BAG7B,EAAkB,KAYlB,EAAuB,sBACvB,EAAiC,gCACjC,EAAgC,+BAChC,EAA8B,6BAC9B,EAAiC,gCAEjC,EAAkC,oCAClC,EAA2B,6BAC3B,EAA6B,+BAC7B,EAAiC,mCACjC,EAAkB,0BAClB,EAA4B,oCAC5B,EAA6B,qCAC7B,EAA+B,uCAC/B,EAAgC,wCAChC,EAA8B,sCAC9B,EAAqB,6BAMrB,EAAuB,mBAEvB,EAAwB,4BACxB,EAAuB,+BACvB,EAAuB,+BACvB,EAA4B,wBAC5B,EAAmC,4CACnC,EAAqC,oCACrC,EAA4B,wBAC5B,EAA6B,yBAG7B,EAA8B,0BAE9B,EAAwB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../
|
|
1
|
+
const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`../_virtual/_@oxc-project_runtime@0.127.0/helpers/decorate.cjs`),n=require(`../container/types.cjs`),r=require(`../shared/configDir.cjs`),i=require(`./process/env.cjs`),a=require(`../_virtual/_@oxc-project_runtime@0.127.0/helpers/decorateMetadata.cjs`),o=require(`../_virtual/_@oxc-project_runtime@0.127.0/helpers/decorateParam.cjs`),s=require(`../shared/paths.cjs`);let c=require(`node:fs`);c=e.__toESM(c,1);let l=require(`node:path`);l=e.__toESM(l,1);let u=require(`inversify`);const d=`.json`,f=`claimed-result.json`;function p(e){return l.join(s.currentResultsDir(),e)}function m(e){return l.join(s.currentRunsDir(),e)}function h(e){return l.join(m(e),f)}function g(e){return typeof e==`object`&&e&&`code`in e?e.code:void 0}function _(e){return g(e)===`ENOENT`}let v=class{constructor(e){this.scheduler=e}pollIntervalMs=4e3;dedupeTtlMs=6e4;now(){return Date.now()}onProcessingError(e,t){this.lastProcessingError={id:e,error:t,at:this.now()},this.processingErrorCount+=1}lastProcessingError;processingErrorCount=0;consumer;watcher;unregisterPoll;claims=new Map;deliveredAt=new Map;generation=0;initializedGeneration=-1;listResultFiles(){try{return c.readdirSync(s.currentResultsDir()).filter(e=>e.endsWith(d))}catch(e){if(_(e))return[];throw e}}listClaimedRunIds(){try{return c.readdirSync(s.currentRunsDir()).filter(e=>this.fileExists(l.join(m(e),f)))}catch(e){if(_(e))return[];throw e}}async listResultFilesAsync(){try{return(await c.promises.readdir(s.currentResultsDir())).filter(e=>e.endsWith(d))}catch(e){if(_(e))return[];throw e}}async listClaimedRunIdsAsync(){let e;try{e=await c.promises.readdir(s.currentRunsDir())}catch(e){if(_(e))return[];throw e}let t=await Promise.all(e.map(e=>this.fileExistsAsync(l.join(m(e),f))));return e.filter((e,n)=>t[n])}fileExists(e){return c.existsSync(e)}readFile(e){try{return c.readFileSync(e,`utf-8`)}catch(e){if(_(e))return;throw e}}ensureDir(e){c.mkdirSync(e,{recursive:!0})}renameFile(e,t){try{return c.renameSync(e,t),!0}catch(e){if(_(e))return!1;throw e}}unlinkFile(e){try{c.unlinkSync(e)}catch(t){_(t)||this.onProcessingError(e,t)}}async fileExistsAsync(e){try{return await c.promises.access(e),!0}catch(e){if(_(e))return!1;throw e}}async readFileAsync(e){try{return await c.promises.readFile(e,`utf-8`)}catch(e){if(_(e))return;throw e}}async ensureDirAsync(e){await c.promises.mkdir(e,{recursive:!0})}async renameFileAsync(e,t){try{return await c.promises.rename(e,t),!0}catch(e){if(_(e))return!1;throw e}}async unlinkFileAsync(e){try{await c.promises.unlink(e)}catch(t){_(t)||this.onProcessingError(e,t)}}handleWatchEvent(e,t){t&&t.toString().endsWith(`.json`)&&this.scheduler.wake()}handleWatchError(){this.watcher=void 0}getWatcher(){return this.watcher}watchResultsDir(){try{this.ensureDir(s.currentResultsDir());let e=r.resolveWatchPath(s.currentResultsDir(),c.realpathSync.native),t=c.watch(e,(e,t)=>this.handleWatchEvent(e,t));return t.on(`error`,()=>this.handleWatchError()),t.unref?.(),t}catch{return}}async watchResultsDirAsync(){try{await this.ensureDirAsync(s.currentResultsDir());let e=s.currentResultsDir();try{e=await c.promises.realpath(e)}catch{}let t=c.watch(e,(e,t)=>this.handleWatchEvent(e,t));return t.on(`error`,()=>this.handleWatchError()),t.unref?.(),t}catch{return}}pruneDeliveredAt(e){for(let[t,n]of this.deliveredAt)e-n>this.dedupeTtlMs&&this.deliveredAt.delete(t)}hasRecentlyDelivered(e){let t=this.now();return this.pruneDeliveredAt(t),this.deliveredAt.has(e)}markDelivered(e){let t=this.now();if(this.pruneDeliveredAt(t),this.deliveredAt.set(e,t),this.deliveredAt.size>256){let e=this.deliveredAt.keys().next();e.done||this.deliveredAt.delete(e.value)}}claimResult(e,t){return this.ensureDir(m(e)),this.renameFile(p(t),h(e))}async claimResultAsync(e,t){return await this.ensureDirAsync(m(e)),this.renameFileAsync(p(t),h(e))}async discoverAndClaim(e){let t=0,n=process.env[i.SUBAGENT_RUN_ID_ENV]?.trim();for(let r of await this.listResultFilesAsync()){if(e!==this.generation)return t;let i=r.slice(0,-5);if(!(!i||i===n||this.claims.has(i))&&await this.claimResultAsync(i,r)){if(e!==this.generation)return t;this.claims.set(i,{inFlight:!1}),t+=1}}return t}async discardClaim(e,t){t===this.generation&&(await this.unlinkFileAsync(h(e)),t===this.generation&&this.claims.delete(e))}async deliverClaim(e,t,n){let r=h(e);try{let i=await this.readFileAsync(r);if(n!==this.generation)return;if(i===void 0){this.claims.delete(e);return}let a;try{a=JSON.parse(i)}catch(t){this.onProcessingError(e,t),await this.discardClaim(e,n);return}if(typeof a!=`object`||!a){await this.discardClaim(e,n);return}let o=a,s=typeof o.runId==`string`&&o.runId?o.runId:e;if(this.hasRecentlyDelivered(s)){await this.discardClaim(e,n);return}let c=this.consumer;if(!c){t.inFlight=!1;return}let l=await c({...o,runId:s});if(n!==this.generation)return;l?(this.markDelivered(s),await this.discardClaim(e,n)):t.inFlight=!1}catch(r){if(n!==this.generation)return;this.onProcessingError(e,r),t.inFlight=!1}}async run(){let e=this.generation;if(this.watcher||=await this.watchResultsDirAsync(),e!==this.generation)return!1;if(this.initializedGeneration!==e){let t=await this.listClaimedRunIdsAsync();if(e!==this.generation)return!1;for(let e of t)this.claims.set(e,{inFlight:!1});this.initializedGeneration=e}let t=await this.discoverAndClaim(e);if(e!==this.generation)return!1;for(let[t,n]of this.claims)n.inFlight||(n.inFlight=!0,this.deliverClaim(t,n,e));return t>0}start(e){this.stop(),this.consumer=e,this.unregisterPoll=this.scheduler.register({id:`result-watcher`,intervalMs:this.pollIntervalMs,run:()=>this.run()}),this.scheduler.wake()}stop(){this.generation+=1,this.initializedGeneration=-1,this.consumer=void 0,this.watcher?.close(),this.watcher=void 0,this.unregisterPoll?.(),this.unregisterPoll=void 0,this.claims.clear(),this.deliveredAt.clear()}};v=t.__decorate([(0,u.injectable)(),o.__decorateParam(0,(0,u.inject)(n.DOOM_TEAM_TYPES.PollScheduler)),a.__decorateMetadata(`design:paramtypes`,[Object])],v),exports.CLAIMED_RESULT_FILE_NAME=f,exports.RESULT_FILE_SUFFIX=d,Object.defineProperty(exports,`ResultWatcher`,{enumerable:!0,get:function(){return v}});
|
|
2
2
|
//# sourceMappingURL=resultWatcher.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__esmMin as e}from"../_virtual/_rolldown/runtime.mjs";import{
|
|
1
|
+
import{__esmMin as e}from"../_virtual/_rolldown/runtime.mjs";import{__decorate as t,init_decorate as n}from"../_virtual/_@oxc-project_runtime@0.127.0/helpers/decorate.mjs";import{DOOM_TEAM_TYPES as r,init_types as i}from"../container/types.mjs";import{init_configDir as a,resolveWatchPath as o}from"../shared/configDir.mjs";import{SUBAGENT_RUN_ID_ENV as s,init_env as c}from"./process/env.mjs";import{__decorateMetadata as l,init_decorateMetadata as u}from"../_virtual/_@oxc-project_runtime@0.127.0/helpers/decorateMetadata.mjs";import{__decorateParam as d,init_decorateParam as f}from"../_virtual/_@oxc-project_runtime@0.127.0/helpers/decorateParam.mjs";import{currentResultsDir as p,currentRunsDir as m,init_paths as h}from"../shared/paths.mjs";import*as g from"node:fs";import*as _ from"node:path";import{inject as v,injectable as y}from"inversify";function b(e){return _.join(p(),e)}function x(e){return _.join(m(),e)}function S(e){return _.join(x(e),E)}function C(e){return typeof e==`object`&&e&&`code`in e?e.code:void 0}function w(e){return C(e)===`ENOENT`}var T,E,D,O,k,A,j,M=e((()=>{i(),a(),h(),c(),u(),f(),n(),T=`.json`,E=`claimed-result.json`,D=4e3,O=6e4,k=256,A=`result-watcher`,j=class{constructor(e){this.scheduler=e}pollIntervalMs=D;dedupeTtlMs=O;now(){return Date.now()}onProcessingError(e,t){this.lastProcessingError={id:e,error:t,at:this.now()},this.processingErrorCount+=1}lastProcessingError;processingErrorCount=0;consumer;watcher;unregisterPoll;claims=new Map;deliveredAt=new Map;generation=0;initializedGeneration=-1;listResultFiles(){try{return g.readdirSync(p()).filter(e=>e.endsWith(T))}catch(e){if(w(e))return[];throw e}}listClaimedRunIds(){try{return g.readdirSync(m()).filter(e=>this.fileExists(_.join(x(e),E)))}catch(e){if(w(e))return[];throw e}}async listResultFilesAsync(){try{return(await g.promises.readdir(p())).filter(e=>e.endsWith(T))}catch(e){if(w(e))return[];throw e}}async listClaimedRunIdsAsync(){let e;try{e=await g.promises.readdir(m())}catch(e){if(w(e))return[];throw e}let t=await Promise.all(e.map(e=>this.fileExistsAsync(_.join(x(e),E))));return e.filter((e,n)=>t[n])}fileExists(e){return g.existsSync(e)}readFile(e){try{return g.readFileSync(e,`utf-8`)}catch(e){if(w(e))return;throw e}}ensureDir(e){g.mkdirSync(e,{recursive:!0})}renameFile(e,t){try{return g.renameSync(e,t),!0}catch(e){if(w(e))return!1;throw e}}unlinkFile(e){try{g.unlinkSync(e)}catch(t){w(t)||this.onProcessingError(e,t)}}async fileExistsAsync(e){try{return await g.promises.access(e),!0}catch(e){if(w(e))return!1;throw e}}async readFileAsync(e){try{return await g.promises.readFile(e,`utf-8`)}catch(e){if(w(e))return;throw e}}async ensureDirAsync(e){await g.promises.mkdir(e,{recursive:!0})}async renameFileAsync(e,t){try{return await g.promises.rename(e,t),!0}catch(e){if(w(e))return!1;throw e}}async unlinkFileAsync(e){try{await g.promises.unlink(e)}catch(t){w(t)||this.onProcessingError(e,t)}}handleWatchEvent(e,t){t&&t.toString().endsWith(`.json`)&&this.scheduler.wake()}handleWatchError(){this.watcher=void 0}getWatcher(){return this.watcher}watchResultsDir(){try{this.ensureDir(p());let e=o(p(),g.realpathSync.native),t=g.watch(e,(e,t)=>this.handleWatchEvent(e,t));return t.on(`error`,()=>this.handleWatchError()),t.unref?.(),t}catch{return}}async watchResultsDirAsync(){try{await this.ensureDirAsync(p());let e=p();try{e=await g.promises.realpath(e)}catch{}let t=g.watch(e,(e,t)=>this.handleWatchEvent(e,t));return t.on(`error`,()=>this.handleWatchError()),t.unref?.(),t}catch{return}}pruneDeliveredAt(e){for(let[t,n]of this.deliveredAt)e-n>this.dedupeTtlMs&&this.deliveredAt.delete(t)}hasRecentlyDelivered(e){let t=this.now();return this.pruneDeliveredAt(t),this.deliveredAt.has(e)}markDelivered(e){let t=this.now();if(this.pruneDeliveredAt(t),this.deliveredAt.set(e,t),this.deliveredAt.size>k){let e=this.deliveredAt.keys().next();e.done||this.deliveredAt.delete(e.value)}}claimResult(e,t){return this.ensureDir(x(e)),this.renameFile(b(t),S(e))}async claimResultAsync(e,t){return await this.ensureDirAsync(x(e)),this.renameFileAsync(b(t),S(e))}async discoverAndClaim(e){let t=0,n=process.env[s]?.trim();for(let r of await this.listResultFilesAsync()){if(e!==this.generation)return t;let i=r.slice(0,-5);if(!(!i||i===n||this.claims.has(i))&&await this.claimResultAsync(i,r)){if(e!==this.generation)return t;this.claims.set(i,{inFlight:!1}),t+=1}}return t}async discardClaim(e,t){t===this.generation&&(await this.unlinkFileAsync(S(e)),t===this.generation&&this.claims.delete(e))}async deliverClaim(e,t,n){let r=S(e);try{let i=await this.readFileAsync(r);if(n!==this.generation)return;if(i===void 0){this.claims.delete(e);return}let a;try{a=JSON.parse(i)}catch(t){this.onProcessingError(e,t),await this.discardClaim(e,n);return}if(typeof a!=`object`||!a){await this.discardClaim(e,n);return}let o=a,s=typeof o.runId==`string`&&o.runId?o.runId:e;if(this.hasRecentlyDelivered(s)){await this.discardClaim(e,n);return}let c=this.consumer;if(!c){t.inFlight=!1;return}let l=await c({...o,runId:s});if(n!==this.generation)return;l?(this.markDelivered(s),await this.discardClaim(e,n)):t.inFlight=!1}catch(r){if(n!==this.generation)return;this.onProcessingError(e,r),t.inFlight=!1}}async run(){let e=this.generation;if(this.watcher||=await this.watchResultsDirAsync(),e!==this.generation)return!1;if(this.initializedGeneration!==e){let t=await this.listClaimedRunIdsAsync();if(e!==this.generation)return!1;for(let e of t)this.claims.set(e,{inFlight:!1});this.initializedGeneration=e}let t=await this.discoverAndClaim(e);if(e!==this.generation)return!1;for(let[t,n]of this.claims)n.inFlight||(n.inFlight=!0,this.deliverClaim(t,n,e));return t>0}start(e){this.stop(),this.consumer=e,this.unregisterPoll=this.scheduler.register({id:A,intervalMs:this.pollIntervalMs,run:()=>this.run()}),this.scheduler.wake()}stop(){this.generation+=1,this.initializedGeneration=-1,this.consumer=void 0,this.watcher?.close(),this.watcher=void 0,this.unregisterPoll?.(),this.unregisterPoll=void 0,this.claims.clear(),this.deliveredAt.clear()}},j=t([y(),d(0,v(r.PollScheduler)),l(`design:paramtypes`,[Object])],j)}));M();export{E as CLAIMED_RESULT_FILE_NAME,T as RESULT_FILE_SUFFIX,j as ResultWatcher,M as init_resultWatcher};
|
|
2
2
|
//# sourceMappingURL=resultWatcher.mjs.map
|
package/dist/container/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../_virtual/_rolldown/runtime.cjs`),require(`./types.cjs`);const e=require(`./modules/agents.cjs`)
|
|
1
|
+
require(`../_virtual/_rolldown/runtime.cjs`),require(`./globalBridge.cjs`),require(`./types.cjs`);const e=require(`./modules/agents.cjs`),t=require(`./modules/core.cjs`),n=require(`./modules/extensions.cjs`),r=require(`./modules/intercom.cjs`),i=require(`./modules/runs.cjs`);let a=require(`inversify`);require(`reflect-metadata/lite`);function o(o){let s=new a.Container;return s.load(t.createCoreModule()),s.load(e.createAgentsModule()),s.load(i.createRunsModule()),s.load(n.createExtensionsModule(o)),s.load(r.createIntercomModule()),s}function s(){let n=new a.Container;return n.load(t.createCoreModule()),n.load(e.createAgentsModule()),n.load(i.createRunsModule()),n.load(r.createIntercomModule()),n}exports.createExtensionContainer=o,exports.createPromptRuntimeContainer=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["Container","createCoreModule","createAgentsModule","createRunsModule","createExtensionsModule","createIntercomModule"],"sources":["../../src/container/index.ts"],"sourcesContent":["/**\n * Composition roots for the two processes this package actually runs in.\n *\n * THERE IS NO SEPARATE \"RUNNER\" PROCESS:\n * An earlier version of this file documented a third root for \"the detached\n * background runner process.\" That process does not exist. Verified against\n * the actual spawn path, twice: `getPiSpawnCommand()` resolves the literal\n * `pi` binary, `asyncExecution.ts`'s `AsyncSubagentSpawner` spawns it\n * directly from the PARENT process, and `buildPiArgs` passes the runtime\n * entry (`subagentPromptRuntimeEntry.cts`) as a `--extension` to that same\n * invocation, which `pi` loads in-process. There are exactly two roles:\n * - The parent extension process, which supervises every run it spawns\n * (`runs/background/**`'s spawn/poll/watch/schedule/reconcile/notify\n * services all run here, since they read and act on state from OUTSIDE the\n * child they describe)\n * - The spawned `pi` child, with this package's prompt-runtime extension\n * loaded into it (`createPromptRuntimeContainer()`), which is also where\n * `RunnerBootstrap`/`RunnerExecution`/`RunnerReporting` run - see\n * `runnerBootstrap.ts`'s own header: \"the child-side half of the spawn\n * handshake\"\n * `runs/background/**` is one module either way (`createRunsModule()`); a\n * given root only ever resolves the subset of its tokens the entry point\n * inside that process actually asks for.\n *\n * DESIGN PATTERNS:\n * - One root per process role. The parent extension and the in-child prompt\n * runtime each build their own container from the domain modules that\n * role actually needs\n * - Module partitioning is the bundle guard: the prompt-runtime root must\n * never load extension, slash, or TUI modules, which keeps the parent's UI\n * surface out of the child bundle\n *\n * AVOID:\n * - A single shared root that loads every module\n * - Resolving services at module scope; resolve inside the entry point\n * - Reintroducing a third \"runner\" root. If a future service turns out to\n * need a process role that is neither the parent nor the spawned child,\n * that is a new, real finding to bring back to this file - not a reason to\n * restore the one that was already checked and found not to exist\n */\n\nimport 'reflect-metadata/lite';\nimport { Container } from 'inversify';\nimport type { ConcurrencyEventReporter } from '../services/runs/shared/runWithConcurrency.ts';\nimport { createAgentsModule } from './modules/agents.ts';\nimport { createCoreModule } from './modules/core.ts';\nimport { createExtensionsModule } from './modules/extensions.ts';\nimport { createIntercomModule } from './modules/intercom.ts';\nimport { createRunsModule } from './modules/runs.ts';\n\n/**\n * Container for the parent Pi extension process.\n *\n * Loads `createRunsModule()` because every service that supervises a run\n * from outside the child it describes - `AsyncSubagentSpawner`,\n * `PollScheduler`, `ControlChannelWatcher`, `ScheduledRunScheduler`,\n * `ResultWatcher`, `StaleRunReconciler`, `CompletionNotifier`, and the rest -\n * runs in this process, not a separate one (see the module doc). Loads\n * `createExtensionsModule()` for `SpawnPlanner`, the top-level `subagent`\n * tool's own service; `SpawnPlanner` itself depends on `AsyncSubagentSpawner`\n * (from the runs module) and `IAgentDiscoveryService` (from the agents\n * module already loaded here), so all three modules travel together. Loads\n * `createIntercomModule()` for the root and child intercom runtime.\n */\nexport function createExtensionContainer(reportConcurrencyEvent?: ConcurrencyEventReporter): Container {\n const container = new Container();\n container.load(createCoreModule());\n container.load(createAgentsModule());\n container.load(createRunsModule());\n container.load(createExtensionsModule(reportConcurrencyEvent));\n container.load(createIntercomModule());\n return container;\n}\n\n/**\n * Container for the in-child prompt runtime, including fanout children.\n *\n * Fanout children pick their own targets by name, so they do resolve discovery.\n *\n * Loads `createRunsModule()` too: `subagentPromptRuntime.ts` is this\n * process's own composition root (see that module's `registerDeliverableGuardCheck`\n * doc for why it is the one file that resolves this container - filed under\n * `src/extensions/**`, the boundary reserved for composition roots, not under\n * `src/runs/**`), and it needs `RunnerBootstrap`/`RunnerExecution`/\n * `DeliverableGuard` from the runs module to bootstrap the run and fold a\n * deliverable check into `status.json`.\n * Loads `createIntercomModule()` so each child process resolves one shared\n * `NativeTeamChannelService` instance for registration and delivery state.\n */\nexport function createPromptRuntimeContainer(): Container {\n const container = new Container();\n container.load(createCoreModule());\n container.load(createAgentsModule());\n container.load(createRunsModule());\n container.load(createIntercomModule());\n return container;\n}\n\nexport { GlobalStateBridge } from './globalBridge.ts';\nexport { createAgentsModule } from './modules/agents.ts';\nexport { createCoreModule } from './modules/core.ts';\nexport { DOOM_TEAM_TYPES } from './types.ts';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["Container","createCoreModule","createAgentsModule","createRunsModule","createExtensionsModule","createIntercomModule"],"sources":["../../src/container/index.ts"],"sourcesContent":["/**\n * Composition roots for the two processes this package actually runs in.\n *\n * THERE IS NO SEPARATE \"RUNNER\" PROCESS:\n * An earlier version of this file documented a third root for \"the detached\n * background runner process.\" That process does not exist. Verified against\n * the actual spawn path, twice: `getPiSpawnCommand()` resolves the literal\n * `pi` binary, `asyncExecution.ts`'s `AsyncSubagentSpawner` spawns it\n * directly from the PARENT process, and `buildPiArgs` passes the runtime\n * entry (`subagentPromptRuntimeEntry.cts`) as a `--extension` to that same\n * invocation, which `pi` loads in-process. There are exactly two roles:\n * - The parent extension process, which supervises every run it spawns\n * (`runs/background/**`'s spawn/poll/watch/schedule/reconcile/notify\n * services all run here, since they read and act on state from OUTSIDE the\n * child they describe)\n * - The spawned `pi` child, with this package's prompt-runtime extension\n * loaded into it (`createPromptRuntimeContainer()`), which is also where\n * `RunnerBootstrap`/`RunnerExecution`/`RunnerReporting` run - see\n * `runnerBootstrap.ts`'s own header: \"the child-side half of the spawn\n * handshake\"\n * `runs/background/**` is one module either way (`createRunsModule()`); a\n * given root only ever resolves the subset of its tokens the entry point\n * inside that process actually asks for.\n *\n * DESIGN PATTERNS:\n * - One root per process role. The parent extension and the in-child prompt\n * runtime each build their own container from the domain modules that\n * role actually needs\n * - Module partitioning is the bundle guard: the prompt-runtime root must\n * never load extension, slash, or TUI modules, which keeps the parent's UI\n * surface out of the child bundle\n *\n * AVOID:\n * - A single shared root that loads every module\n * - Resolving services at module scope; resolve inside the entry point\n * - Reintroducing a third \"runner\" root. If a future service turns out to\n * need a process role that is neither the parent nor the spawned child,\n * that is a new, real finding to bring back to this file - not a reason to\n * restore the one that was already checked and found not to exist\n */\n\nimport 'reflect-metadata/lite';\nimport { Container } from 'inversify';\nimport type { ConcurrencyEventReporter } from '../services/runs/shared/runWithConcurrency.ts';\nimport { createAgentsModule } from './modules/agents.ts';\nimport { createCoreModule } from './modules/core.ts';\nimport { createExtensionsModule } from './modules/extensions.ts';\nimport { createIntercomModule } from './modules/intercom.ts';\nimport { createRunsModule } from './modules/runs.ts';\n\n/**\n * Container for the parent Pi extension process.\n *\n * Loads `createRunsModule()` because every service that supervises a run\n * from outside the child it describes - `AsyncSubagentSpawner`,\n * `PollScheduler`, `ControlChannelWatcher`, `ScheduledRunScheduler`,\n * `ResultWatcher`, `StaleRunReconciler`, `CompletionNotifier`, and the rest -\n * runs in this process, not a separate one (see the module doc). Loads\n * `createExtensionsModule()` for `SpawnPlanner`, the top-level `subagent`\n * tool's own service; `SpawnPlanner` itself depends on `AsyncSubagentSpawner`\n * (from the runs module) and `IAgentDiscoveryService` (from the agents\n * module already loaded here), so all three modules travel together. Loads\n * `createIntercomModule()` for the root and child intercom runtime.\n */\nexport function createExtensionContainer(reportConcurrencyEvent?: ConcurrencyEventReporter): Container {\n const container = new Container();\n container.load(createCoreModule());\n container.load(createAgentsModule());\n container.load(createRunsModule());\n container.load(createExtensionsModule(reportConcurrencyEvent));\n container.load(createIntercomModule());\n return container;\n}\n\n/**\n * Container for the in-child prompt runtime, including fanout children.\n *\n * Fanout children pick their own targets by name, so they do resolve discovery.\n *\n * Loads `createRunsModule()` too: `subagentPromptRuntime.ts` is this\n * process's own composition root (see that module's `registerDeliverableGuardCheck`\n * doc for why it is the one file that resolves this container - filed under\n * `src/extensions/**`, the boundary reserved for composition roots, not under\n * `src/runs/**`), and it needs `RunnerBootstrap`/`RunnerExecution`/\n * `DeliverableGuard` from the runs module to bootstrap the run and fold a\n * deliverable check into `status.json`.\n * Loads `createIntercomModule()` so each child process resolves one shared\n * `NativeTeamChannelService` instance for registration and delivery state.\n */\nexport function createPromptRuntimeContainer(): Container {\n const container = new Container();\n container.load(createCoreModule());\n container.load(createAgentsModule());\n container.load(createRunsModule());\n container.load(createIntercomModule());\n return container;\n}\n\nexport { GlobalStateBridge } from './globalBridge.ts';\nexport { createAgentsModule } from './modules/agents.ts';\nexport { createCoreModule } from './modules/core.ts';\nexport { DOOM_TEAM_TYPES } from './types.ts';\n"],"mappings":"gVAgEA,SAAgB,EAAyB,EAA8D,CACrG,IAAM,EAAY,IAAIA,EAAAA,UAMtB,OALA,EAAU,KAAKC,EAAAA,kBAAkB,CAAC,CAClC,EAAU,KAAKC,EAAAA,oBAAoB,CAAC,CACpC,EAAU,KAAKC,EAAAA,kBAAkB,CAAC,CAClC,EAAU,KAAKC,EAAAA,uBAAuB,EAAuB,CAAC,CAC9D,EAAU,KAAKC,EAAAA,sBAAsB,CAAC,CAC/B,EAkBT,SAAgB,GAA0C,CACxD,IAAM,EAAY,IAAIL,EAAAA,UAKtB,OAJA,EAAU,KAAKC,EAAAA,kBAAkB,CAAC,CAClC,EAAU,KAAKC,EAAAA,oBAAoB,CAAC,CACpC,EAAU,KAAKC,EAAAA,kBAAkB,CAAC,CAClC,EAAU,KAAKE,EAAAA,sBAAsB,CAAC,CAC/B"}
|
package/dist/container/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__esmMin as e}from"../_virtual/_rolldown/runtime.mjs";import{
|
|
1
|
+
import{__esmMin as e}from"../_virtual/_rolldown/runtime.mjs";import{init_globalBridge as t}from"./globalBridge.mjs";import{init_types as n}from"./types.mjs";import{createAgentsModule as r,init_agents as i}from"./modules/agents.mjs";import{createCoreModule as a,init_core as o}from"./modules/core.mjs";import{createExtensionsModule as s,init_extensions as c}from"./modules/extensions.mjs";import{createIntercomModule as l,init_intercom as u}from"./modules/intercom.mjs";import{createRunsModule as d,init_runs as f}from"./modules/runs.mjs";import{Container as p}from"inversify";import"reflect-metadata/lite";function m(e){let t=new p;return t.load(a()),t.load(r()),t.load(d()),t.load(s(e)),t.load(l()),t}function h(){let e=new p;return e.load(a()),e.load(r()),e.load(d()),e.load(l()),e}var g=e((()=>{i(),o(),c(),u(),f(),t(),n()}));g();export{m as createExtensionContainer,h as createPromptRuntimeContainer,g as init_container};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../types.cjs`),t=require(`../../services/agents/discovery.cjs`),n=require(`../../services/agents/skills.cjs`),r=require(`../bindOrRebind.cjs`);let i=require(`inversify`);function a(){return new i.ContainerModule(i=>{r.bindOrRebind(i,e.DOOM_TEAM_TYPES.AgentDiscoveryService).to(t.AgentDiscoveryService).inSingletonScope(),r.bindOrRebind(i,e.DOOM_TEAM_TYPES.SkillDiscoveryService).to(n.SkillDiscoveryService).inSingletonScope()})}exports.createAgentsModule=a;
|
|
2
2
|
//# sourceMappingURL=agents.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{
|
|
1
|
+
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{DOOM_TEAM_TYPES as t,init_types as n}from"../types.mjs";import{AgentDiscoveryService as r,init_discovery as i}from"../../services/agents/discovery.mjs";import{SkillDiscoveryService as a,init_skills as o}from"../../services/agents/skills.mjs";import{bindOrRebind as s,init_bindOrRebind as c}from"../bindOrRebind.mjs";import{ContainerModule as l}from"inversify";function u(){return new l(e=>{s(e,t.AgentDiscoveryService).to(r).inSingletonScope(),s(e,t.SkillDiscoveryService).to(a).inSingletonScope()})}var d=e((()=>{i(),o(),c(),n()}));d();export{u as createAgentsModule,d as init_agents};
|
|
2
2
|
//# sourceMappingURL=agents.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../globalBridge.cjs`),t=require(`../types.cjs`),n=require(`../bindOrRebind.cjs`),r=require(`../../schemas/team/capabilityCeiling.cjs`);let i=require(`inversify`);function a(){return new i.ContainerModule(i=>{n.bindOrRebind(i,t.DOOM_TEAM_TYPES.GlobalStateBridge).to(e.GlobalStateBridge).inSingletonScope(),n.bindOrRebind(i,t.DOOM_TEAM_TYPES.SubagentCapabilityPolicyStore).to(r.SubagentCapabilityPolicyStore).inSingletonScope()})}exports.createCoreModule=a;
|
|
2
2
|
//# sourceMappingURL=core.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{
|
|
1
|
+
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{GlobalStateBridge as t,init_globalBridge as n}from"../globalBridge.mjs";import{DOOM_TEAM_TYPES as r,init_types as i}from"../types.mjs";import{bindOrRebind as a,init_bindOrRebind as o}from"../bindOrRebind.mjs";import{SubagentCapabilityPolicyStore as s,init_capabilityCeiling as c}from"../../schemas/team/capabilityCeiling.mjs";import{ContainerModule as l}from"inversify";function u(){return new l(e=>{a(e,r.GlobalStateBridge).to(t).inSingletonScope(),a(e,r.SubagentCapabilityPolicyStore).to(s).inSingletonScope()})}var d=e((()=>{c(),o(),n(),i()}));d();export{u as createCoreModule,d as init_core};
|
|
2
2
|
//# sourceMappingURL=core.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../types.cjs`),t=require(`../bindOrRebind.cjs`),n=require(`../../extensions/managementActions.cjs`),r=require(`../../extensions/spawnPlan.cjs`),i=require(`../../extensions/subagentTool.cjs`);let a=require(`inversify`);const o=()=>void 0;function s(s=o){return new a.ContainerModule(a=>{t.bindOrRebind(a,e.DOOM_TEAM_TYPES.ConcurrencyEventReporter).toConstantValue(s),t.bindOrRebind(a,e.DOOM_TEAM_TYPES.SpawnPlanner).to(r.SpawnPlanner).inSingletonScope(),t.bindOrRebind(a,e.DOOM_TEAM_TYPES.ManagementActions).to(n.ManagementActions).inSingletonScope(),t.bindOrRebind(a,e.DOOM_TEAM_TYPES.SubagentToolService).to(i.SubagentToolService).inSingletonScope()})}exports.createExtensionsModule=s;
|
|
2
2
|
//# sourceMappingURL=extensions.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{
|
|
1
|
+
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{DOOM_TEAM_TYPES as t,init_types as n}from"../types.mjs";import{bindOrRebind as r,init_bindOrRebind as i}from"../bindOrRebind.mjs";import{ManagementActions as a,init_managementActions as o}from"../../extensions/managementActions.mjs";import{SpawnPlanner as s,init_spawnPlan as c}from"../../extensions/spawnPlan.mjs";import{SubagentToolService as l,init_subagentTool as u}from"../../extensions/subagentTool.mjs";import{ContainerModule as d}from"inversify";function f(e=p){return new d(n=>{r(n,t.ConcurrencyEventReporter).toConstantValue(e),r(n,t.SpawnPlanner).to(s).inSingletonScope(),r(n,t.ManagementActions).to(a).inSingletonScope(),r(n,t.SubagentToolService).to(l).inSingletonScope()})}var p,m=e((()=>{o(),c(),u(),i(),n(),p=()=>void 0}));m();export{f as createExtensionsModule,m as init_extensions};
|
|
2
2
|
//# sourceMappingURL=extensions.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../types.cjs`),t=require(`../bindOrRebind.cjs`),n=require(`../../services/intercom/nativeTeamChannel.cjs`);let r=require(`inversify`);function i(){return new r.ContainerModule(r=>{t.bindOrRebind(r,e.DOOM_TEAM_TYPES.NativeTeamChannelService).to(n.NativeTeamChannelService).inSingletonScope()})}exports.createIntercomModule=i;
|
|
2
2
|
//# sourceMappingURL=intercom.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{
|
|
1
|
+
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{DOOM_TEAM_TYPES as t,init_types as n}from"../types.mjs";import{bindOrRebind as r,init_bindOrRebind as i}from"../bindOrRebind.mjs";import{NativeTeamChannelService as a,init_nativeTeamChannel as o}from"../../services/intercom/nativeTeamChannel.mjs";import{ContainerModule as s}from"inversify";function c(){return new s(e=>{r(e,t.NativeTeamChannelService).to(a).inSingletonScope()})}var l=e((()=>{o(),i(),n()}));l();export{c as createIntercomModule,l as init_intercom};
|
|
2
2
|
//# sourceMappingURL=intercom.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../types.cjs`),t=require(`../bindOrRebind.cjs`),n=require(`../../services/intercom/supervisorControlChannel.cjs`),r=require(`../../services/runs/background/statusWriter.cjs`),i=require(`../../adapters/asyncJobTracker.cjs`);require(`../../services/runs/background/asyncJobTracker.cjs`);const a=require(`../../services/runs/background/spawnHandshake.cjs`),o=require(`../../services/runs/background/asyncExecution.cjs`),s=require(`../../services/runs/background/notify.cjs`),c=require(`../../services/runs/background/terminalPersistence.cjs`),l=require(`../../adapters/processTerminal.cjs`);require(`../../services/runs/background/processTerminal.cjs`);const u=require(`../../adapters/resultWatcher.cjs`);require(`../../services/runs/background/resultWatcher.cjs`);const d=require(`../../adapters/runIdResolver.cjs`);require(`../../services/runs/background/runIdResolver.cjs`);const f=require(`../../services/runs/background/runnerBootstrap.cjs`),p=require(`../../services/runs/background/runnerExecution.cjs`),m=require(`../../services/runs/background/runnerReporting.cjs`),h=require(`../../services/runs/background/runnerTeamMembership.cjs`),g=require(`../../adapters/staleRunReconciler.cjs`);require(`../../services/runs/background/staleRunReconciler.cjs`);const _=require(`../../services/runs/background/subagentWait.cjs`),v=require(`../../adapters/pollScheduler.cjs`);require(`../../shared/pollScheduler.cjs`);let y=require(`inversify`);function b(){return new y.ContainerModule(y=>{t.bindOrRebind(y,e.DOOM_TEAM_TYPES.PollScheduler).to(v.PollScheduler).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.CoalescedStatusWriter).to(r.CoalescedStatusWriter).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.SpawnHandshake).to(a.SpawnHandshake).inTransientScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.TerminalPersistenceService).to(c.TerminalPersistenceService).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.ResultWatcher).to(u.ResultWatcher).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.RunIdResolver).to(d.RunIdResolver).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.ProcessTerminalInspector).to(l.ProcessTerminalInspector).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.StaleRunReconciler).to(g.StaleRunReconciler).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.ControlChannelWatcher).to(n.ControlChannelWatcher).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.CompletionNotifier).to(s.CompletionNotifier).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.AsyncJobTracker).to(i.AsyncJobTracker).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.AsyncSubagentSpawner).to(o.AsyncSubagentSpawner).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.SubagentWaiter).to(_.SubagentWaiter).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.RunnerReporting).to(m.RunnerReporting).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.RunnerBootstrap).to(f.RunnerBootstrap).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.RunnerExecution).to(p.RunnerExecution).inSingletonScope(),t.bindOrRebind(y,e.DOOM_TEAM_TYPES.RunnerTeamMembership).to(h.RunnerTeamMembership).inSingletonScope()})}exports.createRunsModule=b;
|
|
2
2
|
//# sourceMappingURL=runs.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{
|
|
1
|
+
import{__esmMin as e}from"../../_virtual/_rolldown/runtime.mjs";import{DOOM_TEAM_TYPES as t,init_types as n}from"../types.mjs";import{bindOrRebind as r,init_bindOrRebind as i}from"../bindOrRebind.mjs";import{ControlChannelWatcher as a,init_supervisorControlChannel as o}from"../../services/intercom/supervisorControlChannel.mjs";import{CoalescedStatusWriter as s,init_statusWriter as c}from"../../services/runs/background/statusWriter.mjs";import{AsyncJobTracker as l}from"../../adapters/asyncJobTracker.mjs";import{init_asyncJobTracker as u}from"../../services/runs/background/asyncJobTracker.mjs";import{SpawnHandshake as d,init_spawnHandshake as f}from"../../services/runs/background/spawnHandshake.mjs";import{AsyncSubagentSpawner as p,init_asyncExecution as m}from"../../services/runs/background/asyncExecution.mjs";import{CompletionNotifier as h,init_notify as g}from"../../services/runs/background/notify.mjs";import{TerminalPersistenceService as _,init_terminalPersistence as v}from"../../services/runs/background/terminalPersistence.mjs";import{ProcessTerminalInspector as y}from"../../adapters/processTerminal.mjs";import{init_processTerminal as b}from"../../services/runs/background/processTerminal.mjs";import{ResultWatcher as x}from"../../adapters/resultWatcher.mjs";import{init_resultWatcher as S}from"../../services/runs/background/resultWatcher.mjs";import{RunIdResolver as C}from"../../adapters/runIdResolver.mjs";import{init_runIdResolver as w}from"../../services/runs/background/runIdResolver.mjs";import{RunnerBootstrap as T,init_runnerBootstrap as E}from"../../services/runs/background/runnerBootstrap.mjs";import{RunnerExecution as D,init_runnerExecution as O}from"../../services/runs/background/runnerExecution.mjs";import{RunnerReporting as k,init_runnerReporting as A}from"../../services/runs/background/runnerReporting.mjs";import{RunnerTeamMembership as j,init_runnerTeamMembership as M}from"../../services/runs/background/runnerTeamMembership.mjs";import{StaleRunReconciler as N}from"../../adapters/staleRunReconciler.mjs";import{init_staleRunReconciler as P}from"../../services/runs/background/staleRunReconciler.mjs";import{SubagentWaiter as F,init_subagentWait as I}from"../../services/runs/background/subagentWait.mjs";import{PollScheduler as L}from"../../adapters/pollScheduler.mjs";import{init_pollScheduler as R}from"../../shared/pollScheduler.mjs";import{ContainerModule as z}from"inversify";function B(){return new z(e=>{r(e,t.PollScheduler).to(L).inSingletonScope(),r(e,t.CoalescedStatusWriter).to(s).inSingletonScope(),r(e,t.SpawnHandshake).to(d).inTransientScope(),r(e,t.TerminalPersistenceService).to(_).inSingletonScope(),r(e,t.ResultWatcher).to(x).inSingletonScope(),r(e,t.RunIdResolver).to(C).inSingletonScope(),r(e,t.ProcessTerminalInspector).to(y).inSingletonScope(),r(e,t.StaleRunReconciler).to(N).inSingletonScope(),r(e,t.ControlChannelWatcher).to(a).inSingletonScope(),r(e,t.CompletionNotifier).to(h).inSingletonScope(),r(e,t.AsyncJobTracker).to(l).inSingletonScope(),r(e,t.AsyncSubagentSpawner).to(p).inSingletonScope(),r(e,t.SubagentWaiter).to(F).inSingletonScope(),r(e,t.RunnerReporting).to(k).inSingletonScope(),r(e,t.RunnerBootstrap).to(T).inSingletonScope(),r(e,t.RunnerExecution).to(D).inSingletonScope(),r(e,t.RunnerTeamMembership).to(j).inSingletonScope()})}var V=e((()=>{o(),m(),u(),g(),b(),S(),w(),E(),O(),A(),M(),f(),P(),c(),I(),v(),R(),i(),n()}));V();export{B as createRunsModule,V as init_runs};
|
|
2
2
|
//# sourceMappingURL=runs.mjs.map
|
package/dist/env.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./_virtual/_rolldown/runtime.cjs`);const e=require(`./adapters/process/env.cjs`);let t=require(`@agimon-ai/doompi-extension-contracts/child-process`);exports.CHILD_TOOL_DIAGNOSTIC_PATH_ENV=e.CHILD_TOOL_DIAGNOSTIC_PATH_ENV,exports.DOOMPI_CHILD_EXTENSIONS_ENV=e.DOOMPI_CHILD_EXTENSIONS_ENV,exports.DOOMPI_SKILL_DIRS_ENV=e.DOOMPI_SKILL_DIRS_ENV,exports.EXTRA_AGENT_DIRS_ENV=e.EXTRA_AGENT_DIRS_ENV,exports.EXTRA_SKILL_DIRS_ENV=e.EXTRA_SKILL_DIRS_ENV,exports.INHERIT_PROJECT_CONTEXT_ENV=e.INHERIT_PROJECT_CONTEXT_ENV,exports.INHERIT_SKILLS_ENV=e.INHERIT_SKILLS_ENV,exports.MAX_SPAWNS_PER_SESSION_ENV=e.MAX_SPAWNS_PER_SESSION_ENV,exports.MCP_DIRECT_CHILD_TOOLS_ENV=e.MCP_DIRECT_CHILD_TOOLS_ENV,exports.MCP_DIRECT_TOOLS_ENV=e.MCP_DIRECT_TOOLS_ENV,exports.PI_CODING_AGENT_PACKAGE_ROOT_ENV=e.PI_CODING_AGENT_PACKAGE_ROOT_ENV,exports.PI_INTERCOM_SESSION_ID_ENV=e.PI_INTERCOM_SESSION_ID_ENV,exports.PI_INTERCOM_STABLE_ID_ENV=e.PI_INTERCOM_STABLE_ID_ENV,exports.PI_RUNTIME_NAME=e.PI_RUNTIME_NAME,exports.PI_SUBAGENT_PI_BINARY_ENV=e.PI_SUBAGENT_PI_BINARY_ENV,exports.REQUIRED_CHILD_TOOLS_ENV=e.REQUIRED_CHILD_TOOLS_ENV,exports.STRUCTURED_OUTPUT_CAPTURE_ENV=e.STRUCTURED_OUTPUT_CAPTURE_ENV,exports.STRUCTURED_OUTPUT_SCHEMA_ENV=e.STRUCTURED_OUTPUT_SCHEMA_ENV,exports.SUBAGENT_CAPABILITY_CEILING_ENV=e.SUBAGENT_CAPABILITY_CEILING_ENV,exports.SUBAGENT_CHILD_AGENT_ENV=e.SUBAGENT_CHILD_AGENT_ENV,Object.defineProperty(exports,`SUBAGENT_CHILD_ENV`,{enumerable:!0,get:function(){return t.SUBAGENT_CHILD_ENV}}),exports.SUBAGENT_CHILD_INDEX_ENV=e.SUBAGENT_CHILD_INDEX_ENV,exports.SUBAGENT_FANOUT_CHILD_ENV=e.SUBAGENT_FANOUT_CHILD_ENV,exports.SUBAGENT_INTERCOM_SESSION_NAME_ENV=e.SUBAGENT_INTERCOM_SESSION_NAME_ENV,exports.SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV=e.SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV,exports.SUBAGENT_PARENT_CHILD_INDEX_ENV=e.SUBAGENT_PARENT_CHILD_INDEX_ENV,exports.SUBAGENT_PARENT_CONTROL_INBOX_ENV=e.SUBAGENT_PARENT_CONTROL_INBOX_ENV,exports.SUBAGENT_PARENT_DEPTH_ENV=e.SUBAGENT_PARENT_DEPTH_ENV,exports.SUBAGENT_PARENT_EVENT_SINK_ENV=e.SUBAGENT_PARENT_EVENT_SINK_ENV,exports.SUBAGENT_PARENT_PATH_ENV=e.SUBAGENT_PARENT_PATH_ENV,exports.SUBAGENT_PARENT_ROOT_RUN_ID_ENV=e.SUBAGENT_PARENT_ROOT_RUN_ID_ENV,exports.SUBAGENT_PARENT_RUN_ID_ENV=e.SUBAGENT_PARENT_RUN_ID_ENV,Object.defineProperty(exports,`SUBAGENT_PARENT_SESSION_ENV`,{enumerable:!0,get:function(){return t.SUBAGENT_PARENT_SESSION_ENV}}),Object.defineProperty(exports,`SUBAGENT_ROOT_SESSION_ENV`,{enumerable:!0,get:function(){return t.SUBAGENT_ROOT_SESSION_ENV}}),exports.SUBAGENT_RUN_ID_ENV=e.SUBAGENT_RUN_ID_ENV,exports.SUBAGENT_STEER_ACK_DIR_ENV=e.SUBAGENT_STEER_ACK_DIR_ENV,exports.SUBAGENT_STEER_CAPABILITY_ENV=e.SUBAGENT_STEER_CAPABILITY_ENV,exports.SUBAGENT_STEER_INBOX_ENV=e.SUBAGENT_STEER_INBOX_ENV,exports.SUBAGENT_TEAM_ID_ENV=e.SUBAGENT_TEAM_ID_ENV,exports.SUBAGENT_TEAM_MAIN_MEMBER_ENV=e.SUBAGENT_TEAM_MAIN_MEMBER_ENV,exports.SUBAGENT_TEAM_MEMBER_ID_ENV=e.SUBAGENT_TEAM_MEMBER_ID_ENV,exports.SUBAGENT_TEAM_MEMBER_TOKEN_ENV=e.SUBAGENT_TEAM_MEMBER_TOKEN_ENV,exports.SUBAGENT_TEAM_ROOT_SESSION_ENV=e.SUBAGENT_TEAM_ROOT_SESSION_ENV,exports.TOOL_BUDGET_ENV=e.TOOL_BUDGET_ENV,exports.TOOL_BUDGET_ZERO_AUTH_ENV=e.TOOL_BUDGET_ZERO_AUTH_ENV,exports.WORKTREE_BASE_DIR_ENV=e.WORKTREE_BASE_DIR_ENV,exports.runtimeBinaryEnvVar=e.runtimeBinaryEnvVar;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./_virtual/_rolldown/runtime.cjs`);const e=require(`./adapters/process/env.cjs`);let t=require(`@agimon-ai/doompi-extension-contracts/child-process`);exports.CHILD_TOOL_DIAGNOSTIC_PATH_ENV=e.CHILD_TOOL_DIAGNOSTIC_PATH_ENV,exports.DOOMPI_CHILD_EXTENSIONS_ENV=e.DOOMPI_CHILD_EXTENSIONS_ENV,exports.DOOMPI_SKILL_DIRS_ENV=e.DOOMPI_SKILL_DIRS_ENV,exports.EXTRA_AGENT_DIRS_ENV=e.EXTRA_AGENT_DIRS_ENV,exports.EXTRA_SKILL_DIRS_ENV=e.EXTRA_SKILL_DIRS_ENV,exports.INHERIT_PROJECT_CONTEXT_ENV=e.INHERIT_PROJECT_CONTEXT_ENV,exports.INHERIT_SKILLS_ENV=e.INHERIT_SKILLS_ENV,exports.MAX_SPAWNS_PER_SESSION_ENV=e.MAX_SPAWNS_PER_SESSION_ENV,exports.MCP_DIRECT_CHILD_TOOLS_ENV=e.MCP_DIRECT_CHILD_TOOLS_ENV,exports.MCP_DIRECT_TOOLS_ENV=e.MCP_DIRECT_TOOLS_ENV,exports.PI_CODING_AGENT_PACKAGE_ROOT_ENV=e.PI_CODING_AGENT_PACKAGE_ROOT_ENV,exports.PI_INTERCOM_SESSION_ID_ENV=e.PI_INTERCOM_SESSION_ID_ENV,exports.PI_INTERCOM_STABLE_ID_ENV=e.PI_INTERCOM_STABLE_ID_ENV,exports.PI_RUNTIME_NAME=e.PI_RUNTIME_NAME,exports.PI_SUBAGENT_PI_BINARY_ENV=e.PI_SUBAGENT_PI_BINARY_ENV,exports.REQUIRED_CHILD_TOOLS_ENV=e.REQUIRED_CHILD_TOOLS_ENV,exports.STRUCTURED_OUTPUT_CAPTURE_ENV=e.STRUCTURED_OUTPUT_CAPTURE_ENV,exports.STRUCTURED_OUTPUT_SCHEMA_ENV=e.STRUCTURED_OUTPUT_SCHEMA_ENV,exports.SUBAGENT_CAPABILITY_CEILING_ENV=e.SUBAGENT_CAPABILITY_CEILING_ENV,exports.SUBAGENT_CHILD_AGENT_ENV=e.SUBAGENT_CHILD_AGENT_ENV,Object.defineProperty(exports,`SUBAGENT_CHILD_ENV`,{enumerable:!0,get:function(){return t.SUBAGENT_CHILD_ENV}}),exports.SUBAGENT_CHILD_INDEX_ENV=e.SUBAGENT_CHILD_INDEX_ENV,exports.SUBAGENT_FANOUT_CHILD_ENV=e.SUBAGENT_FANOUT_CHILD_ENV,exports.SUBAGENT_INTERCOM_SESSION_NAME_ENV=e.SUBAGENT_INTERCOM_SESSION_NAME_ENV,exports.SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV=e.SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV,exports.SUBAGENT_PARENT_CHILD_INDEX_ENV=e.SUBAGENT_PARENT_CHILD_INDEX_ENV,exports.SUBAGENT_PARENT_CONTROL_INBOX_ENV=e.SUBAGENT_PARENT_CONTROL_INBOX_ENV,exports.SUBAGENT_PARENT_DEPTH_ENV=e.SUBAGENT_PARENT_DEPTH_ENV,exports.SUBAGENT_PARENT_EVENT_SINK_ENV=e.SUBAGENT_PARENT_EVENT_SINK_ENV,exports.SUBAGENT_PARENT_PATH_ENV=e.SUBAGENT_PARENT_PATH_ENV,exports.SUBAGENT_PARENT_ROOT_RUN_ID_ENV=e.SUBAGENT_PARENT_ROOT_RUN_ID_ENV,exports.SUBAGENT_PARENT_RUN_ID_ENV=e.SUBAGENT_PARENT_RUN_ID_ENV,Object.defineProperty(exports,`SUBAGENT_PARENT_SESSION_ENV`,{enumerable:!0,get:function(){return t.SUBAGENT_PARENT_SESSION_ENV}}),exports.SUBAGENT_PROTECTED_PARENT_PIDS_ENV=e.SUBAGENT_PROTECTED_PARENT_PIDS_ENV,Object.defineProperty(exports,`SUBAGENT_ROOT_SESSION_ENV`,{enumerable:!0,get:function(){return t.SUBAGENT_ROOT_SESSION_ENV}}),exports.SUBAGENT_RUN_ID_ENV=e.SUBAGENT_RUN_ID_ENV,exports.SUBAGENT_STEER_ACK_DIR_ENV=e.SUBAGENT_STEER_ACK_DIR_ENV,exports.SUBAGENT_STEER_CAPABILITY_ENV=e.SUBAGENT_STEER_CAPABILITY_ENV,exports.SUBAGENT_STEER_INBOX_ENV=e.SUBAGENT_STEER_INBOX_ENV,exports.SUBAGENT_TEAM_ID_ENV=e.SUBAGENT_TEAM_ID_ENV,exports.SUBAGENT_TEAM_MAIN_MEMBER_ENV=e.SUBAGENT_TEAM_MAIN_MEMBER_ENV,exports.SUBAGENT_TEAM_MEMBER_ID_ENV=e.SUBAGENT_TEAM_MEMBER_ID_ENV,exports.SUBAGENT_TEAM_MEMBER_TOKEN_ENV=e.SUBAGENT_TEAM_MEMBER_TOKEN_ENV,exports.SUBAGENT_TEAM_ROOT_SESSION_ENV=e.SUBAGENT_TEAM_ROOT_SESSION_ENV,exports.TOOL_BUDGET_ENV=e.TOOL_BUDGET_ENV,exports.TOOL_BUDGET_ZERO_AUTH_ENV=e.TOOL_BUDGET_ZERO_AUTH_ENV,exports.WORKTREE_BASE_DIR_ENV=e.WORKTREE_BASE_DIR_ENV,exports.decodeProtectedParentProcessIds=e.decodeProtectedParentProcessIds,exports.runtimeBinaryEnvVar=e.runtimeBinaryEnvVar;
|
package/dist/env.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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_ROOT_SESSION_ENV, SUBAGENT_RUN_ID_ENV, SUBAGENT_STEER_ACK_DIR_ENV, SUBAGENT_STEER_CAPABILITY_ENV, SUBAGENT_STEER_INBOX_ENV, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, runtimeBinaryEnvVar } from "./adapters/process/env.cjs";
|
|
2
|
-
export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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_ROOT_SESSION_ENV, SUBAGENT_RUN_ID_ENV, SUBAGENT_STEER_ACK_DIR_ENV, SUBAGENT_STEER_CAPABILITY_ENV, SUBAGENT_STEER_INBOX_ENV, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, runtimeBinaryEnvVar };
|
|
1
|
+
import { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, decodeProtectedParentProcessIds, runtimeBinaryEnvVar } from "./adapters/process/env.cjs";
|
|
2
|
+
export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, decodeProtectedParentProcessIds, runtimeBinaryEnvVar };
|
package/dist/env.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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_ROOT_SESSION_ENV, SUBAGENT_RUN_ID_ENV, SUBAGENT_STEER_ACK_DIR_ENV, SUBAGENT_STEER_CAPABILITY_ENV, SUBAGENT_STEER_INBOX_ENV, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, runtimeBinaryEnvVar } from "./adapters/process/env.mjs";
|
|
2
|
-
export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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_ROOT_SESSION_ENV, SUBAGENT_RUN_ID_ENV, SUBAGENT_STEER_ACK_DIR_ENV, SUBAGENT_STEER_CAPABILITY_ENV, SUBAGENT_STEER_INBOX_ENV, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, runtimeBinaryEnvVar };
|
|
1
|
+
import { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, decodeProtectedParentProcessIds, runtimeBinaryEnvVar } from "./adapters/process/env.mjs";
|
|
2
|
+
export { CHILD_TOOL_DIAGNOSTIC_PATH_ENV, DOOMPI_CHILD_EXTENSIONS_ENV, DOOMPI_SKILL_DIRS_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, 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, SUBAGENT_TEAM_ID_ENV, SUBAGENT_TEAM_MAIN_MEMBER_ENV, SUBAGENT_TEAM_MEMBER_ID_ENV, SUBAGENT_TEAM_MEMBER_TOKEN_ENV, SUBAGENT_TEAM_ROOT_SESSION_ENV, TOOL_BUDGET_ENV, TOOL_BUDGET_ZERO_AUTH_ENV, WORKTREE_BASE_DIR_ENV, decodeProtectedParentProcessIds, runtimeBinaryEnvVar };
|
package/dist/env.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{CHILD_TOOL_DIAGNOSTIC_PATH_ENV as e,DOOMPI_CHILD_EXTENSIONS_ENV as t,DOOMPI_SKILL_DIRS_ENV as n,EXTRA_AGENT_DIRS_ENV as r,EXTRA_SKILL_DIRS_ENV as i,INHERIT_PROJECT_CONTEXT_ENV as a,INHERIT_SKILLS_ENV as o,MAX_SPAWNS_PER_SESSION_ENV as s,MCP_DIRECT_CHILD_TOOLS_ENV as c,MCP_DIRECT_TOOLS_ENV as l,PI_CODING_AGENT_PACKAGE_ROOT_ENV as u,PI_INTERCOM_SESSION_ID_ENV as d,PI_INTERCOM_STABLE_ID_ENV as f,PI_RUNTIME_NAME as p,PI_SUBAGENT_PI_BINARY_ENV as m,REQUIRED_CHILD_TOOLS_ENV as h,STRUCTURED_OUTPUT_CAPTURE_ENV as g,STRUCTURED_OUTPUT_SCHEMA_ENV as _,SUBAGENT_CAPABILITY_CEILING_ENV as v,SUBAGENT_CHILD_AGENT_ENV as y,SUBAGENT_CHILD_ENV as b,SUBAGENT_CHILD_INDEX_ENV as x,SUBAGENT_FANOUT_CHILD_ENV as S,SUBAGENT_INTERCOM_SESSION_NAME_ENV as C,SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV as w,SUBAGENT_PARENT_CHILD_INDEX_ENV as T,SUBAGENT_PARENT_CONTROL_INBOX_ENV as E,SUBAGENT_PARENT_DEPTH_ENV as D,SUBAGENT_PARENT_EVENT_SINK_ENV as O,SUBAGENT_PARENT_PATH_ENV as k,SUBAGENT_PARENT_ROOT_RUN_ID_ENV as A,SUBAGENT_PARENT_RUN_ID_ENV as j,SUBAGENT_PARENT_SESSION_ENV as M,
|
|
1
|
+
import{CHILD_TOOL_DIAGNOSTIC_PATH_ENV as e,DOOMPI_CHILD_EXTENSIONS_ENV as t,DOOMPI_SKILL_DIRS_ENV as n,EXTRA_AGENT_DIRS_ENV as r,EXTRA_SKILL_DIRS_ENV as i,INHERIT_PROJECT_CONTEXT_ENV as a,INHERIT_SKILLS_ENV as o,MAX_SPAWNS_PER_SESSION_ENV as s,MCP_DIRECT_CHILD_TOOLS_ENV as c,MCP_DIRECT_TOOLS_ENV as l,PI_CODING_AGENT_PACKAGE_ROOT_ENV as u,PI_INTERCOM_SESSION_ID_ENV as d,PI_INTERCOM_STABLE_ID_ENV as f,PI_RUNTIME_NAME as p,PI_SUBAGENT_PI_BINARY_ENV as m,REQUIRED_CHILD_TOOLS_ENV as h,STRUCTURED_OUTPUT_CAPTURE_ENV as g,STRUCTURED_OUTPUT_SCHEMA_ENV as _,SUBAGENT_CAPABILITY_CEILING_ENV as v,SUBAGENT_CHILD_AGENT_ENV as y,SUBAGENT_CHILD_ENV as b,SUBAGENT_CHILD_INDEX_ENV as x,SUBAGENT_FANOUT_CHILD_ENV as S,SUBAGENT_INTERCOM_SESSION_NAME_ENV as C,SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV as w,SUBAGENT_PARENT_CHILD_INDEX_ENV as T,SUBAGENT_PARENT_CONTROL_INBOX_ENV as E,SUBAGENT_PARENT_DEPTH_ENV as D,SUBAGENT_PARENT_EVENT_SINK_ENV as O,SUBAGENT_PARENT_PATH_ENV as k,SUBAGENT_PARENT_ROOT_RUN_ID_ENV as A,SUBAGENT_PARENT_RUN_ID_ENV as j,SUBAGENT_PARENT_SESSION_ENV as M,SUBAGENT_PROTECTED_PARENT_PIDS_ENV as N,SUBAGENT_ROOT_SESSION_ENV as P,SUBAGENT_RUN_ID_ENV as F,SUBAGENT_STEER_ACK_DIR_ENV as I,SUBAGENT_STEER_CAPABILITY_ENV as L,SUBAGENT_STEER_INBOX_ENV as R,SUBAGENT_TEAM_ID_ENV as z,SUBAGENT_TEAM_MAIN_MEMBER_ENV as B,SUBAGENT_TEAM_MEMBER_ID_ENV as V,SUBAGENT_TEAM_MEMBER_TOKEN_ENV as H,SUBAGENT_TEAM_ROOT_SESSION_ENV as U,TOOL_BUDGET_ENV as W,TOOL_BUDGET_ZERO_AUTH_ENV as G,WORKTREE_BASE_DIR_ENV as K,decodeProtectedParentProcessIds as q,init_env as J,runtimeBinaryEnvVar as Y}from"./adapters/process/env.mjs";J();export{e as CHILD_TOOL_DIAGNOSTIC_PATH_ENV,t as DOOMPI_CHILD_EXTENSIONS_ENV,n as DOOMPI_SKILL_DIRS_ENV,r as EXTRA_AGENT_DIRS_ENV,i as EXTRA_SKILL_DIRS_ENV,a as INHERIT_PROJECT_CONTEXT_ENV,o as INHERIT_SKILLS_ENV,s as MAX_SPAWNS_PER_SESSION_ENV,c as MCP_DIRECT_CHILD_TOOLS_ENV,l as MCP_DIRECT_TOOLS_ENV,u as PI_CODING_AGENT_PACKAGE_ROOT_ENV,d as PI_INTERCOM_SESSION_ID_ENV,f as PI_INTERCOM_STABLE_ID_ENV,p as PI_RUNTIME_NAME,m as PI_SUBAGENT_PI_BINARY_ENV,h as REQUIRED_CHILD_TOOLS_ENV,g as STRUCTURED_OUTPUT_CAPTURE_ENV,_ as STRUCTURED_OUTPUT_SCHEMA_ENV,v as SUBAGENT_CAPABILITY_CEILING_ENV,y as SUBAGENT_CHILD_AGENT_ENV,b as SUBAGENT_CHILD_ENV,x as SUBAGENT_CHILD_INDEX_ENV,S as SUBAGENT_FANOUT_CHILD_ENV,C as SUBAGENT_INTERCOM_SESSION_NAME_ENV,w as SUBAGENT_PARENT_CAPABILITY_TOKEN_ENV,T as SUBAGENT_PARENT_CHILD_INDEX_ENV,E as SUBAGENT_PARENT_CONTROL_INBOX_ENV,D as SUBAGENT_PARENT_DEPTH_ENV,O as SUBAGENT_PARENT_EVENT_SINK_ENV,k as SUBAGENT_PARENT_PATH_ENV,A as SUBAGENT_PARENT_ROOT_RUN_ID_ENV,j as SUBAGENT_PARENT_RUN_ID_ENV,M as SUBAGENT_PARENT_SESSION_ENV,N as SUBAGENT_PROTECTED_PARENT_PIDS_ENV,P as SUBAGENT_ROOT_SESSION_ENV,F as SUBAGENT_RUN_ID_ENV,I as SUBAGENT_STEER_ACK_DIR_ENV,L as SUBAGENT_STEER_CAPABILITY_ENV,R as SUBAGENT_STEER_INBOX_ENV,z as SUBAGENT_TEAM_ID_ENV,B as SUBAGENT_TEAM_MAIN_MEMBER_ENV,V as SUBAGENT_TEAM_MEMBER_ID_ENV,H as SUBAGENT_TEAM_MEMBER_TOKEN_ENV,U as SUBAGENT_TEAM_ROOT_SESSION_ENV,W as TOOL_BUDGET_ENV,G as TOOL_BUDGET_ZERO_AUTH_ENV,K as WORKTREE_BASE_DIR_ENV,q as decodeProtectedParentProcessIds,Y as runtimeBinaryEnvVar};
|
|
2
2
|
//# sourceMappingURL=env.mjs.map
|