|
1 | 1 | /** |
2 | | - * @file skills/rig/rig.ts @last-analyzed c23f3bd @edit-time 2026-08-01T01:59:39Z |
| 2 | + * @file skills/rig/rig.ts @last-analyzed c9fc374 @edit-time 2026-08-01T20:08:51Z |
3 | 3 | * @purpose Minimal TypeScript multi-agent harness: typed input/output schemas, prompt intents, sub-agent delegation, workflow orchestration, Copilot SDK runtime |
4 | 4 | * @deps @github/copilot-sdk (CopilotClient,RuntimeConnection,approveAll); node:path,url,os,fs,fs/promises,child_process,util,async_hooks |
5 | 5 | * T:Json type null|bool|num|str|Json[]|{[k]:Json} |
|
41 | 41 | * T:Workflow<I,O> type {meta,inputSchema?,body} compiled workflow object |
42 | 42 | * T:WorkflowContext<I> type {input,call,pipeline,parallel,until,phase,log,budget,signal} ambient run context |
43 | 43 | * T:WorkflowCall type fn(agent,input,opts?)+.text()+.json()+.workflow() for agent invocation inside workflow |
44 | | - * T:WorkflowCallOptions type CallOptions+{label?,phase?} per-call workflow overrides [NEW] |
| 44 | + * T:WorkflowCallOptions type CallOptions+{label?,phase?} per-call workflow overrides |
45 | 45 | * T:WorkflowMeta type {name,description,phases?,whenToUse?} workflow metadata |
46 | | - * T:WorkflowPhase type {title,detail?} phase descriptor [NEW] |
| 46 | + * T:WorkflowPhase type {title,detail?} phase descriptor |
47 | 47 | * T:WorkflowEvent union of run_start|phase_start|agent_start|agent_done|agent_failed|log|warning|run_done|run_failed events |
48 | 48 | * T:WorkflowLimits type {concurrency?,maxAgents?,maxWallMs?,warnAgents?} run-time resource limits |
49 | 49 | * T:WorkflowBudget type {total,spent(),remaining()} token-free agent-call budget meter |
50 | | - * T:WorkflowNestedOptions type {signal?,phase?,label?} for nested workflow invocation inside context [NEW] |
| 50 | + * T:WorkflowNestedOptions type {signal?,phase?,label?} for nested workflow invocation inside context |
51 | 51 | * T:RunWorkflowOptions<I> type {args?,limits?,onEvent?,signal?} options for runWorkflow |
52 | 52 | * T:WorkflowLimitError class thrown when WorkflowLimits are exceeded |
53 | 53 | * T:UntilOptions type {max,noProgressRounds?} loop control for until() |
54 | | - * T:UntilStep<S> type (state,round)=>Promise<{state,done?,progressKey?}> step function [NEW] |
| 54 | + * T:UntilStep<S> type (state,round)=>Promise<{state,done?,progressKey?}> step function |
55 | 55 | * T:PipelineStage type (prev,item,next)=>Promise<next> pipeline step |
| 56 | + * T:PromptIntentOptions type {cwd?,env?,timeout?,purpose?,signal?} options shared by all p.* helpers [NEW] |
56 | 57 | * s.string/number/integer/boolean/null SchemaHelperFactory primitives; call as value or fn(desc) |
57 | 58 | * s.int alias for s.integer; s.nonEmptyString string with minLength:1; s.url string with format:"uri"; s.path string with format:"path"; s.date string with format:"date" validated as YYYY-MM-DD |
58 | 59 | * s.positiveInt integer with minimum:1; s.nonNegativeInt integer with minimum:0; s.percent number with minimum:0,maximum:100; NumberSchema/IntegerSchema support minimum/maximum constraints |
|
0 commit comments