@smithers-orchestrator/components 0.24.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/src/aspects/AspectAccumulator.ts +0 -1
- package/src/aspects/AspectContext.js +2 -3
- package/src/aspects/AspectContextValue.ts +0 -2
- package/src/aspects/LatencySloConfig.ts +5 -4
- package/src/aspects/TokenBudgetConfig.ts +4 -3
- package/src/aspects/TrackingConfig.ts +0 -2
- package/src/components/Approval.js +27 -9
- package/src/components/Aspects.js +3 -5
- package/src/components/AspectsProps.ts +2 -5
- package/src/components/Branch.js +13 -1
- package/src/components/BranchProps.ts +6 -0
- package/src/components/Panel.js +1 -1
- package/src/components/Ralph.js +10 -1
- package/src/components/Saga.js +16 -5
- package/src/components/Sequence.js +3 -1
- package/src/components/Sidecar.js +68 -0
- package/src/components/SidecarDelta.ts +6 -0
- package/src/components/SidecarProps.ts +22 -0
- package/src/components/SuperSmithers.js +15 -14
- package/src/components/Task.js +4 -6
- package/src/components/TaskProps.ts +4 -0
- package/src/components/Workflow.js +4 -1
- package/src/components/computeSidecarDelta.ts +57 -0
- package/src/components/index.js +5 -1
- package/src/index.d.ts +253 -197
- package/src/aspects/CostBudgetConfig.ts +0 -11
- package/src/aspects/index.js +0 -10
package/src/index.d.ts
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import * as _smithers_orchestrator_driver_workflow_types from '@smithers-orchestrator/driver/workflow-types';
|
|
2
|
+
import * as _smithers_orchestrator_driver_WorkflowDriverOptions from '@smithers-orchestrator/driver/WorkflowDriverOptions';
|
|
3
|
+
import * as _smithers_orchestrator_driver_WorkflowDefinition from '@smithers-orchestrator/driver/WorkflowDefinition';
|
|
4
4
|
import { WorkflowDefinition } from '@smithers-orchestrator/driver/WorkflowDefinition';
|
|
5
|
-
import * as
|
|
5
|
+
import * as _smithers_orchestrator_errors_SmithersErrorCode from '@smithers-orchestrator/errors/SmithersErrorCode';
|
|
6
6
|
import { SmithersErrorCode as SmithersErrorCode$1 } from '@smithers-orchestrator/errors/SmithersErrorCode';
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
7
|
+
import * as _smithers_orchestrator_scheduler_SmithersWorkflowOptions from '@smithers-orchestrator/scheduler/SmithersWorkflowOptions';
|
|
8
|
+
import * as _smithers_orchestrator_db_SchemaRegistryEntry from '@smithers-orchestrator/db/SchemaRegistryEntry';
|
|
9
|
+
import * as _smithers_orchestrator_driver from '@smithers-orchestrator/driver';
|
|
10
10
|
import { SmithersCtx as SmithersCtx$1 } from '@smithers-orchestrator/driver';
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
11
|
+
import * as _smithers_orchestrator_driver_RunAuthContext from '@smithers-orchestrator/driver/RunAuthContext';
|
|
12
|
+
import * as _smithers_orchestrator_scheduler_RetryPolicy from '@smithers-orchestrator/scheduler/RetryPolicy';
|
|
13
13
|
import { RetryPolicy as RetryPolicy$1 } from '@smithers-orchestrator/scheduler/RetryPolicy';
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
14
|
+
import * as _smithers_orchestrator_driver_OutputKey from '@smithers-orchestrator/driver/OutputKey';
|
|
15
|
+
import * as _smithers_orchestrator_driver_OutputAccessor from '@smithers-orchestrator/driver/OutputAccessor';
|
|
16
16
|
import { InferOutputEntry as InferOutputEntry$1 } from '@smithers-orchestrator/driver/OutputAccessor';
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
17
|
+
import * as _smithers_orchestrator_graph from '@smithers-orchestrator/graph';
|
|
18
|
+
import * as _smithers_orchestrator_scheduler from '@smithers-orchestrator/scheduler';
|
|
19
|
+
import * as _smithers_orchestrator_scheduler_CachePolicy from '@smithers-orchestrator/scheduler/CachePolicy';
|
|
20
20
|
import { CachePolicy as CachePolicy$1 } from '@smithers-orchestrator/scheduler/CachePolicy';
|
|
21
|
-
import
|
|
21
|
+
import * as React__default__default__default from 'react';
|
|
22
|
+
import React__default__default__default__default from 'react';
|
|
22
23
|
import * as zod from 'zod';
|
|
23
24
|
import { z } from 'zod';
|
|
24
25
|
import { SmithersError } from '@smithers-orchestrator/errors/SmithersError';
|
|
25
26
|
import { AgentLike } from '@smithers-orchestrator/agents/AgentLike';
|
|
27
|
+
import * as _smithers_orchestrator_graph_types from '@smithers-orchestrator/graph/types';
|
|
26
28
|
import { ScorersMap as ScorersMap$1 } from '@smithers-orchestrator/graph/types';
|
|
27
29
|
import { TaskMemoryConfig } from '@smithers-orchestrator/memory/types';
|
|
28
|
-
import * as
|
|
30
|
+
import * as _smithers_orchestrator_errors from '@smithers-orchestrator/errors';
|
|
29
31
|
import * as zod_v4_core from 'zod/v4/core';
|
|
30
32
|
|
|
31
33
|
type WorktreeProps$2 = {
|
|
@@ -36,13 +38,13 @@ type WorktreeProps$2 = {
|
|
|
36
38
|
/** Base branch for syncing worktrees (default: "main"). */
|
|
37
39
|
baseBranch?: string;
|
|
38
40
|
skipIf?: boolean;
|
|
39
|
-
children?:
|
|
41
|
+
children?: React__default__default__default__default.ReactNode;
|
|
40
42
|
};
|
|
41
43
|
|
|
42
44
|
type WorkflowProps$2 = {
|
|
43
45
|
name: string;
|
|
44
46
|
cache?: boolean;
|
|
45
|
-
children?:
|
|
47
|
+
children?: React__default__default__default__default.ReactNode;
|
|
46
48
|
};
|
|
47
49
|
|
|
48
50
|
/** Valid output targets: a Zod schema (recommended), a Drizzle table object, or a string key (escape hatch). */
|
|
@@ -78,10 +80,10 @@ type WaitForEventProps$2 = {
|
|
|
78
80
|
|
|
79
81
|
type TryCatchFinallyProps$2 = {
|
|
80
82
|
id?: string;
|
|
81
|
-
try:
|
|
82
|
-
catch?:
|
|
83
|
+
try: React__default__default__default__default.ReactElement;
|
|
84
|
+
catch?: React__default__default__default__default.ReactElement | ((error: SmithersError) => React__default__default__default__default.ReactElement);
|
|
83
85
|
catchErrors?: SmithersErrorCode$1[];
|
|
84
|
-
finally?:
|
|
86
|
+
finally?: React__default__default__default__default.ReactElement;
|
|
85
87
|
skipIf?: boolean;
|
|
86
88
|
};
|
|
87
89
|
|
|
@@ -158,6 +160,10 @@ type TaskProps$2<Row, Output extends OutputTarget$1 = OutputTarget$1, D extends
|
|
|
158
160
|
cache?: CachePolicy$1;
|
|
159
161
|
/** Optional scorers to evaluate this task's output after completion. */
|
|
160
162
|
scorers?: ScorersMap$1;
|
|
163
|
+
/** Expected output supplied to scorers that compare against a reference answer. */
|
|
164
|
+
groundTruth?: unknown;
|
|
165
|
+
/** Additional source context supplied to scorers such as faithfulnessScorer. */
|
|
166
|
+
context?: unknown;
|
|
161
167
|
/** Optional cross-run memory configuration. */
|
|
162
168
|
memory?: TaskMemoryConfig;
|
|
163
169
|
/** Request an immediate hijack handoff as soon as the task starts running. */
|
|
@@ -168,8 +174,8 @@ type TaskProps$2<Row, Output extends OutputTarget$1 = OutputTarget$1, D extends
|
|
|
168
174
|
label?: string;
|
|
169
175
|
meta?: Record<string, unknown>;
|
|
170
176
|
/** @internal Used by createSmithers() to bind tasks to the correct workflow context. */
|
|
171
|
-
smithersContext?:
|
|
172
|
-
children?: string | Row | (() => Row | Promise<Row>) |
|
|
177
|
+
smithersContext?: React__default__default__default__default.Context<SmithersCtx$1<unknown> | null>;
|
|
178
|
+
children?: string | Row | (() => Row | Promise<Row>) | React__default__default__default__default.ReactNode | ((deps: InferDeps$1<D>) => Row | React__default__default__default__default.ReactNode);
|
|
173
179
|
};
|
|
174
180
|
|
|
175
181
|
type SupervisorProps$2 = {
|
|
@@ -194,14 +200,14 @@ type SupervisorProps$2 = {
|
|
|
194
200
|
useWorktrees?: boolean;
|
|
195
201
|
skipIf?: boolean;
|
|
196
202
|
/** Goal/prompt for the boss agent. */
|
|
197
|
-
children: string |
|
|
203
|
+
children: string | React__default__default__default__default.ReactNode;
|
|
198
204
|
};
|
|
199
205
|
|
|
200
206
|
type SuperSmithersProps$2 = {
|
|
201
207
|
/** Optional ID prefix for all generated task IDs. */
|
|
202
208
|
id?: string;
|
|
203
209
|
/** Markdown string or MDX component describing the intervention strategy. */
|
|
204
|
-
strategy: string |
|
|
210
|
+
strategy: string | React__default__default__default__default.ReactElement;
|
|
205
211
|
/** Agent that reads code and decides modifications. */
|
|
206
212
|
agent: AgentLike;
|
|
207
213
|
/** Glob patterns of files the agent can modify. */
|
|
@@ -239,7 +245,7 @@ type SubflowProps$2 = {
|
|
|
239
245
|
label?: string;
|
|
240
246
|
meta?: Record<string, unknown>;
|
|
241
247
|
key?: string;
|
|
242
|
-
children?:
|
|
248
|
+
children?: React__default__default__default__default.ReactNode;
|
|
243
249
|
};
|
|
244
250
|
|
|
245
251
|
type SourceDef$1 = {
|
|
@@ -248,7 +254,7 @@ type SourceDef$1 = {
|
|
|
248
254
|
prompt?: string;
|
|
249
255
|
/** Output schema for this specific source. Overrides `gatherOutput`. */
|
|
250
256
|
output?: OutputTarget$1;
|
|
251
|
-
children?:
|
|
257
|
+
children?: React__default__default__default__default.ReactNode;
|
|
252
258
|
};
|
|
253
259
|
|
|
254
260
|
type SignalProps$2<Schema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>> = {
|
|
@@ -265,14 +271,39 @@ type SignalProps$2<Schema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.Zod
|
|
|
265
271
|
label?: string;
|
|
266
272
|
meta?: Record<string, unknown>;
|
|
267
273
|
key?: string;
|
|
268
|
-
children?: (data: z.infer<Schema>) =>
|
|
269
|
-
smithersContext?:
|
|
274
|
+
children?: (data: z.infer<Schema>) => React__default__default__default__default.ReactNode;
|
|
275
|
+
smithersContext?: React__default__default__default__default.Context<SmithersCtx$1<unknown> | null>;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
type SidecarProps$2 = {
|
|
279
|
+
id?: string;
|
|
280
|
+
agent: AgentLike;
|
|
281
|
+
sidecar: AgentLike;
|
|
282
|
+
output: OutputTarget$1;
|
|
283
|
+
sidecarOutput?: OutputTarget$1;
|
|
284
|
+
scorers?: ScorersMap$1;
|
|
285
|
+
prompt?: string | React__default__default__default__default.ReactNode;
|
|
286
|
+
input?: string | React__default__default__default__default.ReactNode;
|
|
287
|
+
maxConcurrency?: number;
|
|
288
|
+
groundTruth?: unknown;
|
|
289
|
+
context?: unknown;
|
|
290
|
+
primaryLabel?: string;
|
|
291
|
+
sidecarLabel?: string;
|
|
292
|
+
skipIf?: boolean;
|
|
293
|
+
children?: string | React__default__default__default__default.ReactNode;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
type SidecarDelta$1 = {
|
|
297
|
+
primaryScore: number | null;
|
|
298
|
+
sidecarScore: number | null;
|
|
299
|
+
delta: number | null;
|
|
300
|
+
cheaperWins: boolean;
|
|
270
301
|
};
|
|
271
302
|
|
|
272
303
|
type SequenceProps$2 = {
|
|
273
304
|
key?: string;
|
|
274
305
|
skipIf?: boolean;
|
|
275
|
-
children?:
|
|
306
|
+
children?: React__default__default__default__default.ReactNode;
|
|
276
307
|
};
|
|
277
308
|
|
|
278
309
|
type ScanFixVerifyProps$2 = {
|
|
@@ -299,7 +330,7 @@ type ScanFixVerifyProps$2 = {
|
|
|
299
330
|
/** Skip the entire component. */
|
|
300
331
|
skipIf?: boolean;
|
|
301
332
|
/** Prompt/context describing what to scan for. */
|
|
302
|
-
children?:
|
|
333
|
+
children?: React__default__default__default__default.ReactNode;
|
|
303
334
|
};
|
|
304
335
|
|
|
305
336
|
type SandboxWorkspaceSpec$1 = {
|
|
@@ -368,19 +399,19 @@ type SandboxProps$2 = {
|
|
|
368
399
|
label?: string;
|
|
369
400
|
meta?: Record<string, unknown>;
|
|
370
401
|
key?: string;
|
|
371
|
-
children?:
|
|
402
|
+
children?: React__default__default__default__default.ReactNode;
|
|
372
403
|
};
|
|
373
404
|
|
|
374
405
|
type SagaStepProps$2 = {
|
|
375
406
|
id: string;
|
|
376
|
-
compensation:
|
|
377
|
-
children:
|
|
407
|
+
compensation: React__default__default__default__default.ReactElement;
|
|
408
|
+
children: React__default__default__default__default.ReactElement;
|
|
378
409
|
};
|
|
379
410
|
|
|
380
411
|
type SagaStepDef$1 = {
|
|
381
412
|
id: string;
|
|
382
|
-
action:
|
|
383
|
-
compensation:
|
|
413
|
+
action: React__default__default__default__default.ReactElement;
|
|
414
|
+
compensation: React__default__default__default__default.ReactElement;
|
|
384
415
|
label?: string;
|
|
385
416
|
};
|
|
386
417
|
|
|
@@ -389,7 +420,7 @@ type SagaProps$2 = {
|
|
|
389
420
|
steps?: SagaStepDef$1[];
|
|
390
421
|
onFailure?: "compensate" | "compensate-and-fail" | "fail";
|
|
391
422
|
skipIf?: boolean;
|
|
392
|
-
children?:
|
|
423
|
+
children?: React__default__default__default__default.ReactNode;
|
|
393
424
|
};
|
|
394
425
|
|
|
395
426
|
type RunbookStep$1 = {
|
|
@@ -445,7 +476,7 @@ type ReviewLoopProps$2 = {
|
|
|
445
476
|
/** Skip the entire review loop. */
|
|
446
477
|
skipIf?: boolean;
|
|
447
478
|
/** Initial prompt for the producer (string or ReactNode). */
|
|
448
|
-
children: string |
|
|
479
|
+
children: string | React__default__default__default__default.ReactNode;
|
|
449
480
|
};
|
|
450
481
|
|
|
451
482
|
type LoopProps$2 = {
|
|
@@ -456,7 +487,7 @@ type LoopProps$2 = {
|
|
|
456
487
|
onMaxReached?: "fail" | "return-last";
|
|
457
488
|
continueAsNewEvery?: number;
|
|
458
489
|
skipIf?: boolean;
|
|
459
|
-
children?:
|
|
490
|
+
children?: React__default__default__default__default.ReactNode;
|
|
460
491
|
};
|
|
461
492
|
|
|
462
493
|
/** @deprecated Use `LoopProps` instead. */
|
|
@@ -480,14 +511,14 @@ type PollerProps$2 = {
|
|
|
480
511
|
/** Skip the entire component. */
|
|
481
512
|
skipIf?: boolean;
|
|
482
513
|
/** Prompt/condition description for the check agent. */
|
|
483
|
-
children?:
|
|
514
|
+
children?: React__default__default__default__default.ReactNode;
|
|
484
515
|
};
|
|
485
516
|
|
|
486
517
|
type ParallelProps$2 = {
|
|
487
518
|
id?: string;
|
|
488
519
|
maxConcurrency?: number;
|
|
489
520
|
skipIf?: boolean;
|
|
490
|
-
children?:
|
|
521
|
+
children?: React__default__default__default__default.ReactNode;
|
|
491
522
|
};
|
|
492
523
|
|
|
493
524
|
type PanelistConfig$1 = {
|
|
@@ -506,7 +537,7 @@ type PanelProps$2 = {
|
|
|
506
537
|
minAgree?: number;
|
|
507
538
|
maxConcurrency?: number;
|
|
508
539
|
skipIf?: boolean;
|
|
509
|
-
children: string |
|
|
540
|
+
children: string | React__default__default__default__default.ReactNode;
|
|
510
541
|
};
|
|
511
542
|
|
|
512
543
|
type OptimizerProps$2 = {
|
|
@@ -528,7 +559,7 @@ type OptimizerProps$2 = {
|
|
|
528
559
|
/** Skip the entire optimization loop. */
|
|
529
560
|
skipIf?: boolean;
|
|
530
561
|
/** Initial generation prompt (string or ReactNode). */
|
|
531
|
-
children: string |
|
|
562
|
+
children: string | React__default__default__default__default.ReactNode;
|
|
532
563
|
};
|
|
533
564
|
|
|
534
565
|
/**
|
|
@@ -539,7 +570,7 @@ type MergeQueueProps$2 = {
|
|
|
539
570
|
id?: string;
|
|
540
571
|
maxConcurrency?: number;
|
|
541
572
|
skipIf?: boolean;
|
|
542
|
-
children?:
|
|
573
|
+
children?: React__default__default__default__default.ReactNode;
|
|
543
574
|
};
|
|
544
575
|
|
|
545
576
|
type ColumnTaskProps = Omit<Partial<TaskProps$2<unknown>>, "agent" | "children" | "id" | "key" | "output" | "smithersContext">;
|
|
@@ -577,7 +608,7 @@ type KanbanProps$2 = {
|
|
|
577
608
|
/** Max iterations through the column pipeline. */
|
|
578
609
|
maxIterations?: number;
|
|
579
610
|
skipIf?: boolean;
|
|
580
|
-
children?:
|
|
611
|
+
children?: React__default__default__default__default.ReactNode | Record<string, unknown>;
|
|
581
612
|
};
|
|
582
613
|
|
|
583
614
|
type HumanTaskProps$2 = {
|
|
@@ -587,7 +618,7 @@ type HumanTaskProps$2 = {
|
|
|
587
618
|
/** Zod schema the human must conform to. Used for validation. */
|
|
588
619
|
outputSchema?: z.ZodObject<z.ZodRawShape>;
|
|
589
620
|
/** Instructions for the human (string or ReactNode). */
|
|
590
|
-
prompt: string |
|
|
621
|
+
prompt: string | React__default__default__default__default.ReactNode;
|
|
591
622
|
/** Max validation retries before failure. */
|
|
592
623
|
maxAttempts?: number;
|
|
593
624
|
/** Do not block unrelated downstream flow while waiting for human input. */
|
|
@@ -621,7 +652,7 @@ type GatherAndSynthesizeProps$2 = {
|
|
|
621
652
|
/** Prompt for the synthesis task. If omitted, a default prompt is generated. */
|
|
622
653
|
synthesisPrompt?: string;
|
|
623
654
|
skipIf?: boolean;
|
|
624
|
-
children?:
|
|
655
|
+
children?: React__default__default__default__default.ReactNode;
|
|
625
656
|
};
|
|
626
657
|
|
|
627
658
|
type EscalationLevel$1 = {
|
|
@@ -648,7 +679,7 @@ type EscalationChainProps$2 = {
|
|
|
648
679
|
escalationOutput: OutputTarget$1;
|
|
649
680
|
skipIf?: boolean;
|
|
650
681
|
/** Prompt / input passed to each agent level. */
|
|
651
|
-
children?:
|
|
682
|
+
children?: React__default__default__default__default.ReactNode;
|
|
652
683
|
};
|
|
653
684
|
|
|
654
685
|
type DriftDetectorProps$2 = {
|
|
@@ -667,7 +698,7 @@ type DriftDetectorProps$2 = {
|
|
|
667
698
|
/** Condition function that determines whether to fire the alert. If omitted, uses `comparison.drifted === true`. */
|
|
668
699
|
alertIf?: (comparison: unknown) => boolean;
|
|
669
700
|
/** Element to render when drift is detected (e.g. a Task that sends a notification). */
|
|
670
|
-
alert?:
|
|
701
|
+
alert?: React__default__default__default__default.ReactElement;
|
|
671
702
|
/** If set, wraps the detector in a Loop for periodic polling. */
|
|
672
703
|
poll?: {
|
|
673
704
|
/** Reserved for future delayed polling; maxPolls currently controls Loop iterations. */
|
|
@@ -682,7 +713,7 @@ type DecisionRule$1 = {
|
|
|
682
713
|
/** Condition evaluated at render time. */
|
|
683
714
|
when: boolean;
|
|
684
715
|
/** Element to render when this rule matches. */
|
|
685
|
-
then:
|
|
716
|
+
then: React__default__default__default__default.ReactElement;
|
|
686
717
|
/** Optional display label for the rule. */
|
|
687
718
|
label?: string;
|
|
688
719
|
};
|
|
@@ -693,7 +724,7 @@ type DecisionTableProps$2 = {
|
|
|
693
724
|
/** Ordered list of rules. Each rule has a `when` condition and a `then` element. */
|
|
694
725
|
rules: DecisionRule$1[];
|
|
695
726
|
/** Fallback element rendered when no rules match. */
|
|
696
|
-
default?:
|
|
727
|
+
default?: React__default__default__default__default.ReactElement;
|
|
697
728
|
/** `"first-match"` (default): first matching rule wins. `"all-match"`: all matching rules run in parallel. */
|
|
698
729
|
strategy?: "first-match" | "all-match";
|
|
699
730
|
skipIf?: boolean;
|
|
@@ -707,7 +738,7 @@ type DebateProps$2 = {
|
|
|
707
738
|
rounds?: number;
|
|
708
739
|
argumentOutput: OutputTarget$1;
|
|
709
740
|
verdictOutput: OutputTarget$1;
|
|
710
|
-
topic: string |
|
|
741
|
+
topic: string | React__default__default__default__default.ReactNode;
|
|
711
742
|
skipIf?: boolean;
|
|
712
743
|
};
|
|
713
744
|
|
|
@@ -736,7 +767,7 @@ type ContentPipelineProps$2 = {
|
|
|
736
767
|
/** Skip the entire pipeline. */
|
|
737
768
|
skipIf?: boolean;
|
|
738
769
|
/** Initial prompt/content for the first stage (string or ReactNode). */
|
|
739
|
-
children: string |
|
|
770
|
+
children: string | React__default__default__default__default.ReactNode;
|
|
740
771
|
};
|
|
741
772
|
|
|
742
773
|
type CategoryConfig$1 = {
|
|
@@ -770,7 +801,7 @@ type ClassifyAndRouteProps$2 = {
|
|
|
770
801
|
/** Max parallel routes. */
|
|
771
802
|
maxConcurrency?: number;
|
|
772
803
|
skipIf?: boolean;
|
|
773
|
-
children?:
|
|
804
|
+
children?: React__default__default__default__default.ReactNode;
|
|
774
805
|
};
|
|
775
806
|
|
|
776
807
|
type CheckConfig$1 = {
|
|
@@ -792,51 +823,41 @@ type CheckSuiteProps$2 = {
|
|
|
792
823
|
|
|
793
824
|
type BranchProps$2 = {
|
|
794
825
|
if: boolean;
|
|
795
|
-
then:
|
|
796
|
-
else?:
|
|
826
|
+
then: React__default__default__default__default.ReactElement;
|
|
827
|
+
else?: React__default__default__default__default.ReactElement | null;
|
|
797
828
|
skipIf?: boolean;
|
|
798
829
|
};
|
|
799
830
|
|
|
800
831
|
/**
|
|
801
832
|
* Token budget configuration for Aspects.
|
|
802
833
|
*
|
|
803
|
-
*
|
|
834
|
+
* The engine accumulates per-run token usage and enforces `max` at
|
|
835
|
+
* task-dispatch time.
|
|
804
836
|
*/
|
|
805
837
|
type TokenBudgetConfig = {
|
|
806
838
|
/** Maximum total tokens across all tasks within the Aspects scope. */
|
|
807
839
|
max: number;
|
|
808
|
-
/** Optional per-task token limit. */
|
|
840
|
+
/** Optional per-task token limit. Not enforced yet. */
|
|
809
841
|
perTask?: number;
|
|
810
|
-
/**
|
|
842
|
+
/** Behavior when the budget is exceeded. Default: "fail". */
|
|
811
843
|
onExceeded?: "fail" | "warn" | "skip-remaining";
|
|
812
844
|
};
|
|
813
845
|
|
|
814
846
|
/**
|
|
815
847
|
* Latency SLO configuration for Aspects.
|
|
816
848
|
*
|
|
817
|
-
*
|
|
849
|
+
* The engine enforces the scope-wide `maxMs` wall-clock SLO at task-dispatch
|
|
850
|
+
* time, measured from the run's start.
|
|
818
851
|
*/
|
|
819
852
|
type LatencySloConfig = {
|
|
820
|
-
/** Maximum total latency in milliseconds across all tasks. */
|
|
853
|
+
/** Maximum total wall-clock latency in milliseconds across all tasks. */
|
|
821
854
|
maxMs: number;
|
|
822
|
-
/** Optional per-task latency limit in milliseconds. */
|
|
855
|
+
/** Optional per-task latency limit in milliseconds. Not enforced yet. */
|
|
823
856
|
perTask?: number;
|
|
824
|
-
/**
|
|
857
|
+
/** Behavior when the SLO is exceeded. Default: "fail". */
|
|
825
858
|
onExceeded?: "fail" | "warn";
|
|
826
859
|
};
|
|
827
860
|
|
|
828
|
-
/**
|
|
829
|
-
* Cost budget configuration for Aspects.
|
|
830
|
-
*
|
|
831
|
-
* Runtime enforcement is not implemented yet; this is declarative metadata.
|
|
832
|
-
*/
|
|
833
|
-
type CostBudgetConfig = {
|
|
834
|
-
/** Maximum total cost in USD across all tasks within the Aspects scope. */
|
|
835
|
-
maxUsd: number;
|
|
836
|
-
/** Requested future behavior when the budget is exceeded. Default: "fail". */
|
|
837
|
-
onExceeded?: "fail" | "warn" | "skip-remaining";
|
|
838
|
-
};
|
|
839
|
-
|
|
840
861
|
/**
|
|
841
862
|
* Tracking configuration — which metrics to track.
|
|
842
863
|
*/
|
|
@@ -845,21 +866,17 @@ type TrackingConfig = {
|
|
|
845
866
|
tokens?: boolean;
|
|
846
867
|
/** Track latency. Default: true. */
|
|
847
868
|
latency?: boolean;
|
|
848
|
-
/** Track cost. Default: true. */
|
|
849
|
-
cost?: boolean;
|
|
850
869
|
};
|
|
851
870
|
|
|
852
871
|
type AspectsProps$2 = {
|
|
853
|
-
/** Token budget
|
|
872
|
+
/** Token budget — max total tokens, optional per-task limit, and exceeded behavior. */
|
|
854
873
|
tokenBudget?: TokenBudgetConfig;
|
|
855
|
-
/** Latency SLO
|
|
874
|
+
/** Latency SLO — max total wall-clock latency and exceeded behavior. */
|
|
856
875
|
latencySlo?: LatencySloConfig;
|
|
857
|
-
/** Cost budget metadata. Runtime enforcement is not implemented yet. */
|
|
858
|
-
costBudget?: CostBudgetConfig;
|
|
859
876
|
/** Which metrics to track. Defaults to all enabled. */
|
|
860
877
|
tracking?: TrackingConfig;
|
|
861
878
|
/** Workflow content these aspects apply to. */
|
|
862
|
-
children?:
|
|
879
|
+
children?: React__default__default__default__default.ReactNode;
|
|
863
880
|
};
|
|
864
881
|
|
|
865
882
|
type ApprovalMode$1 = "approve" | "select" | "rank";
|
|
@@ -880,7 +897,7 @@ type ApprovalAutoApprove$1 = {
|
|
|
880
897
|
|
|
881
898
|
type ApprovalDecision$1 = z.infer<typeof approvalDecisionSchema>;
|
|
882
899
|
|
|
883
|
-
type ApprovalProps$2<
|
|
900
|
+
type ApprovalProps$2<_Row = ApprovalDecision$1, Output extends OutputTarget$1 = OutputTarget$1> = {
|
|
884
901
|
id: string;
|
|
885
902
|
mode?: ApprovalMode$1;
|
|
886
903
|
options?: ApprovalOption$1[];
|
|
@@ -903,14 +920,14 @@ type ApprovalProps$2<Row = ApprovalDecision$1, Output extends OutputTarget$1 = O
|
|
|
903
920
|
heartbeatTimeoutMs?: number;
|
|
904
921
|
heartbeatTimeout?: number;
|
|
905
922
|
retries?: number;
|
|
906
|
-
retryPolicy?:
|
|
923
|
+
retryPolicy?: _smithers_orchestrator_scheduler_RetryPolicy.RetryPolicy;
|
|
907
924
|
continueOnFail?: boolean;
|
|
908
|
-
cache?:
|
|
925
|
+
cache?: _smithers_orchestrator_scheduler_CachePolicy.CachePolicy;
|
|
909
926
|
label?: string;
|
|
910
927
|
meta?: Record<string, unknown>;
|
|
911
928
|
key?: string;
|
|
912
|
-
children?:
|
|
913
|
-
smithersContext?:
|
|
929
|
+
children?: React__default__default__default__default.ReactNode;
|
|
930
|
+
smithersContext?: React__default__default__default__default.Context<SmithersCtx$1<unknown> | null>;
|
|
914
931
|
};
|
|
915
932
|
|
|
916
933
|
type ApprovalRanking$1 = z.infer<typeof approvalRankingSchema>;
|
|
@@ -920,7 +937,7 @@ type ApprovalRanking$1 = z.infer<typeof approvalRankingSchema>;
|
|
|
920
937
|
* @param {ApprovalProps<Row>} props
|
|
921
938
|
* @returns {React.ReactElement | null}
|
|
922
939
|
*/
|
|
923
|
-
declare function Approval<Row>(props: ApprovalProps$1<Row>):
|
|
940
|
+
declare function Approval<Row>(props: ApprovalProps$1<Row>): React__default__default__default__default.ReactElement | null;
|
|
924
941
|
/** @typedef {import("./ApprovalAutoApprove.ts").ApprovalAutoApprove} ApprovalAutoApprove */
|
|
925
942
|
/** @typedef {import("./ApprovalMode.ts").ApprovalMode} ApprovalMode */
|
|
926
943
|
/** @typedef {import("./ApprovalOption.ts").ApprovalOption} ApprovalOption */
|
|
@@ -930,7 +947,7 @@ declare function Approval<Row>(props: ApprovalProps$1<Row>): React.ReactElement
|
|
|
930
947
|
*/
|
|
931
948
|
declare const approvalDecisionSchema: z.ZodObject<{
|
|
932
949
|
approved: z.ZodBoolean;
|
|
933
|
-
note: z.ZodNullable<z.ZodString
|
|
950
|
+
note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
934
951
|
decidedBy: z.ZodNullable<z.ZodString>;
|
|
935
952
|
decidedAt: z.ZodNullable<z.ZodString>;
|
|
936
953
|
}, z.core.$strip>;
|
|
@@ -970,7 +987,7 @@ type ApprovalGateProps$2 = {
|
|
|
970
987
|
* @param {WorkflowProps} props
|
|
971
988
|
* @returns {React.DOMElement<WorkflowProps, Element>}
|
|
972
989
|
*/
|
|
973
|
-
declare function Workflow(props: WorkflowProps$1):
|
|
990
|
+
declare function Workflow(props: WorkflowProps$1): React__default__default__default__default.DOMElement<WorkflowProps$1, Element>;
|
|
974
991
|
type WorkflowProps$1 = WorkflowProps$2;
|
|
975
992
|
|
|
976
993
|
/**
|
|
@@ -978,53 +995,53 @@ type WorkflowProps$1 = WorkflowProps$2;
|
|
|
978
995
|
* @param {TaskProps<Row, Output, D>} props
|
|
979
996
|
* @returns {React.ReactElement | null}
|
|
980
997
|
*/
|
|
981
|
-
declare function Task<Row, Output, D>(props: TaskProps$1<Row, Output, D>):
|
|
998
|
+
declare function Task<Row, Output, D>(props: TaskProps$1<Row, Output, D>): React__default__default__default__default.ReactElement | null;
|
|
982
999
|
type TaskProps$1<Row, Output, D> = TaskProps$2<Row, Output, D>;
|
|
983
1000
|
|
|
984
1001
|
/** @typedef {import("./SequenceProps.ts").SequenceProps} SequenceProps */
|
|
985
1002
|
/**
|
|
986
1003
|
* @param {SequenceProps} props
|
|
987
1004
|
*/
|
|
988
|
-
declare function Sequence(props: SequenceProps$1):
|
|
1005
|
+
declare function Sequence(props: SequenceProps$1): React__default__default__default__default.DOMElement<{}, Element> | null;
|
|
989
1006
|
type SequenceProps$1 = SequenceProps$2;
|
|
990
1007
|
|
|
991
1008
|
/** @typedef {import("./ParallelProps.ts").ParallelProps} ParallelProps */
|
|
992
1009
|
/**
|
|
993
1010
|
* @param {ParallelProps} props
|
|
994
1011
|
*/
|
|
995
|
-
declare function Parallel(props: ParallelProps$1):
|
|
1012
|
+
declare function Parallel(props: ParallelProps$1): React__default__default__default__default.ReactElement<{
|
|
996
1013
|
maxConcurrency: number | undefined;
|
|
997
1014
|
id: string | undefined;
|
|
998
|
-
}, string |
|
|
1015
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
999
1016
|
type ParallelProps$1 = ParallelProps$2;
|
|
1000
1017
|
|
|
1001
1018
|
/** @typedef {import("./MergeQueueProps.ts").MergeQueueProps} MergeQueueProps */
|
|
1002
1019
|
/**
|
|
1003
1020
|
* @param {MergeQueueProps} props
|
|
1004
1021
|
*/
|
|
1005
|
-
declare function MergeQueue(props: MergeQueueProps$1):
|
|
1022
|
+
declare function MergeQueue(props: MergeQueueProps$1): React__default__default__default__default.ReactElement<{
|
|
1006
1023
|
maxConcurrency: any;
|
|
1007
1024
|
id: string | undefined;
|
|
1008
|
-
}, string |
|
|
1025
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1009
1026
|
type MergeQueueProps$1 = MergeQueueProps$2;
|
|
1010
1027
|
|
|
1011
1028
|
/** @typedef {import("./BranchProps.ts").BranchProps} BranchProps */
|
|
1012
1029
|
/**
|
|
1013
1030
|
* @param {BranchProps} props
|
|
1014
1031
|
*/
|
|
1015
|
-
declare function Branch(props: BranchProps$1):
|
|
1032
|
+
declare function Branch(props: BranchProps$1): React__default__default__default__default.DOMElement<{}, Element> | null;
|
|
1016
1033
|
type BranchProps$1 = BranchProps$2;
|
|
1017
1034
|
|
|
1018
1035
|
/** @typedef {import("./WorktreeProps.ts").WorktreeProps} WorktreeProps */
|
|
1019
1036
|
/**
|
|
1020
1037
|
* @param {WorktreeProps} props
|
|
1021
1038
|
*/
|
|
1022
|
-
declare function Worktree(props: WorktreeProps$1):
|
|
1039
|
+
declare function Worktree(props: WorktreeProps$1): React__default__default__default__default.ReactElement<{
|
|
1023
1040
|
id: string | undefined;
|
|
1024
1041
|
path: string;
|
|
1025
1042
|
branch: string | undefined;
|
|
1026
1043
|
baseBranch: string | undefined;
|
|
1027
|
-
}, string |
|
|
1044
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1028
1045
|
type WorktreeProps$1 = WorktreeProps$2;
|
|
1029
1046
|
|
|
1030
1047
|
/**
|
|
@@ -1035,7 +1052,7 @@ type WorktreeProps$1 = WorktreeProps$2;
|
|
|
1035
1052
|
* Items in the same column can be processed in parallel.
|
|
1036
1053
|
* @param {KanbanProps} props
|
|
1037
1054
|
*/
|
|
1038
|
-
declare function Kanban(props: KanbanProps$1):
|
|
1055
|
+
declare function Kanban(props: KanbanProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | React__default__default__default__default.FunctionComponentElement<LoopProps$2> | null;
|
|
1039
1056
|
type KanbanProps$1 = KanbanProps$2;
|
|
1040
1057
|
|
|
1041
1058
|
/**
|
|
@@ -1046,7 +1063,7 @@ type KanbanProps$1 = KanbanProps$2;
|
|
|
1046
1063
|
* appropriate category agent.
|
|
1047
1064
|
* @param {ClassifyAndRouteProps} props
|
|
1048
1065
|
*/
|
|
1049
|
-
declare function ClassifyAndRoute(props: ClassifyAndRouteProps$1):
|
|
1066
|
+
declare function ClassifyAndRoute(props: ClassifyAndRouteProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1050
1067
|
type ClassifyAndRouteProps$1 = ClassifyAndRouteProps$2;
|
|
1051
1068
|
|
|
1052
1069
|
/**
|
|
@@ -1058,7 +1075,7 @@ type ClassifyAndRouteProps$1 = ClassifyAndRouteProps$2;
|
|
|
1058
1075
|
* and produces a combined output.
|
|
1059
1076
|
* @param {GatherAndSynthesizeProps} props
|
|
1060
1077
|
*/
|
|
1061
|
-
declare function GatherAndSynthesize(props: GatherAndSynthesizeProps$1):
|
|
1078
|
+
declare function GatherAndSynthesize(props: GatherAndSynthesizeProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1062
1079
|
type GatherAndSynthesizeProps$1 = GatherAndSynthesizeProps$2;
|
|
1063
1080
|
|
|
1064
1081
|
/**
|
|
@@ -1067,7 +1084,7 @@ type GatherAndSynthesizeProps$1 = GatherAndSynthesizeProps$2;
|
|
|
1067
1084
|
* Composes: Sequence > Parallel[Task per panelist] > Task(moderator)
|
|
1068
1085
|
* @param {PanelProps} props
|
|
1069
1086
|
*/
|
|
1070
|
-
declare function Panel(props: PanelProps$1):
|
|
1087
|
+
declare function Panel(props: PanelProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1071
1088
|
type PanelProps$1 = PanelProps$2;
|
|
1072
1089
|
|
|
1073
1090
|
/**
|
|
@@ -1076,7 +1093,7 @@ type PanelProps$1 = PanelProps$2;
|
|
|
1076
1093
|
* Composes: Sequence > Parallel[Task per check] > Task(verdict aggregator)
|
|
1077
1094
|
* @param {CheckSuiteProps} props
|
|
1078
1095
|
*/
|
|
1079
|
-
declare function CheckSuite(props: CheckSuiteProps$1):
|
|
1096
|
+
declare function CheckSuite(props: CheckSuiteProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1080
1097
|
type CheckSuiteProps$1 = CheckSuiteProps$2;
|
|
1081
1098
|
|
|
1082
1099
|
/**
|
|
@@ -1085,7 +1102,7 @@ type CheckSuiteProps$1 = CheckSuiteProps$2;
|
|
|
1085
1102
|
* Composes: Sequence > Loop[Parallel(proposer, opponent)] > Task(judge)
|
|
1086
1103
|
* @param {DebateProps} props
|
|
1087
1104
|
*/
|
|
1088
|
-
declare function Debate(props: DebateProps$1):
|
|
1105
|
+
declare function Debate(props: DebateProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1089
1106
|
type DebateProps$1 = DebateProps$2;
|
|
1090
1107
|
|
|
1091
1108
|
/**
|
|
@@ -1096,7 +1113,7 @@ type DebateProps$1 = DebateProps$2;
|
|
|
1096
1113
|
* feedback on subsequent iterations.
|
|
1097
1114
|
* @param {ReviewLoopProps} props
|
|
1098
1115
|
*/
|
|
1099
|
-
declare function ReviewLoop(props: ReviewLoopProps$1):
|
|
1116
|
+
declare function ReviewLoop(props: ReviewLoopProps$1): React__default__default__default__default.FunctionComponentElement<LoopProps$2> | null;
|
|
1100
1117
|
type ReviewLoopProps$1 = ReviewLoopProps$2;
|
|
1101
1118
|
|
|
1102
1119
|
/**
|
|
@@ -1107,7 +1124,7 @@ type ReviewLoopProps$1 = ReviewLoopProps$2;
|
|
|
1107
1124
|
* score and feedback to guide improvement.
|
|
1108
1125
|
* @param {OptimizerProps} props
|
|
1109
1126
|
*/
|
|
1110
|
-
declare function Optimizer(props: OptimizerProps$1):
|
|
1127
|
+
declare function Optimizer(props: OptimizerProps$1): React__default__default__default__default.FunctionComponentElement<LoopProps$2> | null;
|
|
1111
1128
|
type OptimizerProps$1 = OptimizerProps$2;
|
|
1112
1129
|
|
|
1113
1130
|
/**
|
|
@@ -1118,7 +1135,7 @@ type OptimizerProps$1 = OptimizerProps$2;
|
|
|
1118
1135
|
* the previous stage, passing output forward through the pipeline.
|
|
1119
1136
|
* @param {ContentPipelineProps} props
|
|
1120
1137
|
*/
|
|
1121
|
-
declare function ContentPipeline(props: ContentPipelineProps$1):
|
|
1138
|
+
declare function ContentPipeline(props: ContentPipelineProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1122
1139
|
type ContentPipelineProps$1 = ContentPipelineProps$2;
|
|
1123
1140
|
|
|
1124
1141
|
/**
|
|
@@ -1128,7 +1145,7 @@ type ContentPipelineProps$1 = ContentPipelineProps$2;
|
|
|
1128
1145
|
* Composes Branch + Approval + Task internally.
|
|
1129
1146
|
* @param {ApprovalGateProps} props
|
|
1130
1147
|
*/
|
|
1131
|
-
declare function ApprovalGate(props: ApprovalGateProps$1):
|
|
1148
|
+
declare function ApprovalGate(props: ApprovalGateProps$1): React__default__default__default__default.FunctionComponentElement<BranchProps$2> | null;
|
|
1132
1149
|
type ApprovalGateProps$1 = ApprovalGateProps$2;
|
|
1133
1150
|
|
|
1134
1151
|
/**
|
|
@@ -1138,7 +1155,7 @@ type ApprovalGateProps$1 = ApprovalGateProps$2;
|
|
|
1138
1155
|
* Composes Sequence + Task (with `continueOnFail`) + Branch + Approval.
|
|
1139
1156
|
* @param {EscalationChainProps} props
|
|
1140
1157
|
*/
|
|
1141
|
-
declare function EscalationChain(props: EscalationChainProps$1):
|
|
1158
|
+
declare function EscalationChain(props: EscalationChainProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1142
1159
|
type EscalationChainProps$1 = EscalationChainProps$2;
|
|
1143
1160
|
|
|
1144
1161
|
/**
|
|
@@ -1151,27 +1168,26 @@ type EscalationChainProps$1 = EscalationChainProps$2;
|
|
|
1151
1168
|
* Composes Branch and Parallel internally.
|
|
1152
1169
|
* @param {DecisionTableProps} props
|
|
1153
1170
|
*/
|
|
1154
|
-
declare function DecisionTable(props: DecisionTableProps$1):
|
|
1171
|
+
declare function DecisionTable(props: DecisionTableProps$1): React__default__default__default__default.ReactElement<unknown, string | React__default__default__default__default.JSXElementConstructor<any>> | React__default__default__default__default.FunctionComponentElement<ParallelProps$2> | null;
|
|
1155
1172
|
type DecisionTableProps$1 = DecisionTableProps$2;
|
|
1156
1173
|
|
|
1157
|
-
/** @typedef {import("./DriftDetectorProps.ts").DriftDetectorProps} DriftDetectorProps */
|
|
1158
1174
|
/**
|
|
1159
1175
|
* @param {DriftDetectorProps} props
|
|
1160
1176
|
*/
|
|
1161
|
-
declare function DriftDetector(props: DriftDetectorProps$1):
|
|
1177
|
+
declare function DriftDetector(props: DriftDetectorProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | React__default__default__default__default.FunctionComponentElement<LoopProps$2> | null;
|
|
1162
1178
|
type DriftDetectorProps$1 = DriftDetectorProps$2;
|
|
1163
1179
|
|
|
1164
1180
|
/** @typedef {import("./ScanFixVerifyProps.ts").ScanFixVerifyProps} ScanFixVerifyProps */
|
|
1165
1181
|
/**
|
|
1166
1182
|
* @param {ScanFixVerifyProps} props
|
|
1167
1183
|
*/
|
|
1168
|
-
declare function ScanFixVerify(props: ScanFixVerifyProps$1):
|
|
1184
|
+
declare function ScanFixVerify(props: ScanFixVerifyProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1169
1185
|
type ScanFixVerifyProps$1 = ScanFixVerifyProps$2;
|
|
1170
1186
|
|
|
1171
1187
|
/**
|
|
1172
1188
|
* @param {PollerProps} props
|
|
1173
1189
|
*/
|
|
1174
|
-
declare function Poller(props: PollerProps$1):
|
|
1190
|
+
declare function Poller(props: PollerProps$1): React__default__default__default__default.FunctionComponentElement<LoopProps$2> | null;
|
|
1175
1191
|
type PollerProps$1 = PollerProps$2;
|
|
1176
1192
|
|
|
1177
1193
|
/**
|
|
@@ -1180,7 +1196,7 @@ type PollerProps$1 = PollerProps$2;
|
|
|
1180
1196
|
* Composes: Sequence → [plan Task, Loop(until allDone) [Parallel worker Tasks, review Task], final Task]
|
|
1181
1197
|
* @param {SupervisorProps} props
|
|
1182
1198
|
*/
|
|
1183
|
-
declare function Supervisor(props: SupervisorProps$1):
|
|
1199
|
+
declare function Supervisor(props: SupervisorProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1184
1200
|
type SupervisorProps$1 = SupervisorProps$2;
|
|
1185
1201
|
|
|
1186
1202
|
/**
|
|
@@ -1190,17 +1206,44 @@ type SupervisorProps$1 = SupervisorProps$2;
|
|
|
1190
1206
|
* Composes: Sequence of [Approval? → Task] per step, chained via `needs`.
|
|
1191
1207
|
* @param {RunbookProps} props
|
|
1192
1208
|
*/
|
|
1193
|
-
declare function Runbook(props: RunbookProps$1):
|
|
1209
|
+
declare function Runbook(props: RunbookProps$1): React__default__default__default__default.FunctionComponentElement<SequenceProps$2> | null;
|
|
1194
1210
|
type RunbookProps$1 = RunbookProps$2;
|
|
1195
1211
|
|
|
1212
|
+
/**
|
|
1213
|
+
* Runs a primary task and a cheap shadow task over the same prompt.
|
|
1214
|
+
*
|
|
1215
|
+
* The primary task keeps the component id so downstream `needs` can consume it.
|
|
1216
|
+
* The sidecar task is continue-on-fail and writes its own scorer rows.
|
|
1217
|
+
*
|
|
1218
|
+
* @param {SidecarProps} props
|
|
1219
|
+
*/
|
|
1220
|
+
declare function Sidecar(props: SidecarProps$1): React__default__default__default__default.FunctionComponentElement<ParallelProps$2> | null;
|
|
1221
|
+
type SidecarProps$1 = SidecarProps$2;
|
|
1222
|
+
|
|
1223
|
+
type RowLike = {
|
|
1224
|
+
nodeId?: string;
|
|
1225
|
+
node_id?: string;
|
|
1226
|
+
scorerId?: string;
|
|
1227
|
+
scorer_id?: string;
|
|
1228
|
+
score?: number;
|
|
1229
|
+
scoredAtMs?: number;
|
|
1230
|
+
scored_at_ms?: number;
|
|
1231
|
+
} & Record<string, unknown>;
|
|
1232
|
+
type ComputeSidecarDeltaOptions = {
|
|
1233
|
+
primaryNodeId: string;
|
|
1234
|
+
sidecarNodeId: string;
|
|
1235
|
+
scorerId?: string;
|
|
1236
|
+
};
|
|
1237
|
+
declare function computeSidecarDelta(rows: RowLike[], opts: ComputeSidecarDeltaOptions): SidecarDelta$1;
|
|
1238
|
+
|
|
1196
1239
|
/** @typedef {import("./SubflowProps.ts").SubflowProps} SubflowProps */
|
|
1197
1240
|
/**
|
|
1198
1241
|
* @param {SubflowProps} props
|
|
1199
1242
|
*/
|
|
1200
|
-
declare function Subflow(props: SubflowProps$1):
|
|
1243
|
+
declare function Subflow(props: SubflowProps$1): React__default__default__default__default.ReactElement<{
|
|
1201
1244
|
id: string;
|
|
1202
1245
|
key: string | undefined;
|
|
1203
|
-
workflow:
|
|
1246
|
+
workflow: _smithers_orchestrator_driver.WorkflowDefinition<unknown>;
|
|
1204
1247
|
input: unknown;
|
|
1205
1248
|
mode: "childRun" | "inline";
|
|
1206
1249
|
output: OutputTarget$1;
|
|
@@ -1213,22 +1256,22 @@ declare function Subflow(props: SubflowProps$1): React.ReactElement<{
|
|
|
1213
1256
|
initialDelayMs?: number;
|
|
1214
1257
|
} | undefined;
|
|
1215
1258
|
continueOnFail: boolean | undefined;
|
|
1216
|
-
cache:
|
|
1259
|
+
cache: _smithers_orchestrator_scheduler.CachePolicy | undefined;
|
|
1217
1260
|
dependsOn: string[] | undefined;
|
|
1218
1261
|
needs: Record<string, string> | undefined;
|
|
1219
1262
|
label: string;
|
|
1220
1263
|
meta: Record<string, unknown> | undefined;
|
|
1221
|
-
__smithersSubflowWorkflow:
|
|
1264
|
+
__smithersSubflowWorkflow: _smithers_orchestrator_driver.WorkflowDefinition<unknown>;
|
|
1222
1265
|
__smithersSubflowInput: unknown;
|
|
1223
1266
|
__smithersSubflowMode: "childRun" | "inline";
|
|
1224
|
-
}, string |
|
|
1267
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1225
1268
|
type SubflowProps$1 = SubflowProps$2;
|
|
1226
1269
|
|
|
1227
1270
|
/** @typedef {import("./SandboxProps.ts").SandboxProps} SandboxProps */
|
|
1228
1271
|
/**
|
|
1229
1272
|
* @param {SandboxProps} props
|
|
1230
1273
|
*/
|
|
1231
|
-
declare function Sandbox(props: SandboxProps$1):
|
|
1274
|
+
declare function Sandbox(props: SandboxProps$1): React__default__default__default__default.ReactElement<{
|
|
1232
1275
|
id: string;
|
|
1233
1276
|
key: string | undefined;
|
|
1234
1277
|
output: OutputTarget$1;
|
|
@@ -1240,6 +1283,7 @@ declare function Sandbox(props: SandboxProps$1): React.ReactElement<{
|
|
|
1240
1283
|
allowNested: boolean | undefined;
|
|
1241
1284
|
image: string | undefined;
|
|
1242
1285
|
env: Record<string, string> | undefined;
|
|
1286
|
+
egress: SandboxEgressConfig$1 | undefined;
|
|
1243
1287
|
ports: {
|
|
1244
1288
|
host: number;
|
|
1245
1289
|
container: number;
|
|
@@ -1258,25 +1302,25 @@ declare function Sandbox(props: SandboxProps$1): React.ReactElement<{
|
|
|
1258
1302
|
initialDelayMs?: number;
|
|
1259
1303
|
} | undefined;
|
|
1260
1304
|
continueOnFail: boolean | undefined;
|
|
1261
|
-
cache:
|
|
1305
|
+
cache: _smithers_orchestrator_scheduler.CachePolicy | undefined;
|
|
1262
1306
|
dependsOn: string[] | undefined;
|
|
1263
1307
|
needs: Record<string, string> | undefined;
|
|
1264
1308
|
label: string;
|
|
1265
1309
|
meta: Record<string, unknown> | undefined;
|
|
1266
1310
|
__smithersSandboxProvider: unknown;
|
|
1267
|
-
__smithersSandboxWorkflow:
|
|
1311
|
+
__smithersSandboxWorkflow: _smithers_orchestrator_driver.WorkflowDefinition<unknown> | undefined;
|
|
1268
1312
|
__smithersSandboxInput: unknown;
|
|
1269
1313
|
__smithersSandboxRuntime: SandboxRuntime$1 | undefined;
|
|
1270
1314
|
__smithersSandboxAllowNested: boolean | undefined;
|
|
1271
|
-
__smithersSandboxChildren:
|
|
1272
|
-
}, string |
|
|
1315
|
+
__smithersSandboxChildren: React__default__default__default__default.ReactNode;
|
|
1316
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1273
1317
|
type SandboxProps$1 = SandboxProps$2;
|
|
1274
1318
|
|
|
1275
1319
|
/** @typedef {import("./WaitForEventProps.ts").WaitForEventProps} WaitForEventProps */
|
|
1276
1320
|
/**
|
|
1277
1321
|
* @param {WaitForEventProps} props
|
|
1278
1322
|
*/
|
|
1279
|
-
declare function WaitForEvent(props: WaitForEventProps$1):
|
|
1323
|
+
declare function WaitForEvent(props: WaitForEventProps$1): React__default__default__default__default.ReactElement<{
|
|
1280
1324
|
id: string;
|
|
1281
1325
|
key: string | undefined;
|
|
1282
1326
|
event: string;
|
|
@@ -1299,7 +1343,7 @@ declare function WaitForEvent(props: WaitForEventProps$1): React.ReactElement<{
|
|
|
1299
1343
|
__smithersEventName: string;
|
|
1300
1344
|
__smithersCorrelationId: string | undefined;
|
|
1301
1345
|
__smithersOnTimeout: "fail" | "continue" | "skip";
|
|
1302
|
-
}, string |
|
|
1346
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1303
1347
|
type WaitForEventProps$1 = WaitForEventProps$2;
|
|
1304
1348
|
|
|
1305
1349
|
/**
|
|
@@ -1310,14 +1354,14 @@ type WaitForEventProps$1 = WaitForEventProps$2;
|
|
|
1310
1354
|
* @template Schema
|
|
1311
1355
|
* @param {SignalProps<Schema>} props
|
|
1312
1356
|
*/
|
|
1313
|
-
declare function Signal<Schema>(props: SignalProps$1<Schema>):
|
|
1357
|
+
declare function Signal<Schema>(props: SignalProps$1<Schema>): React__default__default__default__default.DetailedReactHTMLElement<React__default__default__default__default.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> | React__default__default__default__default.FunctionComponentElement<React__default__default__default__default.FragmentProps> | null;
|
|
1314
1358
|
type SignalProps$1<Schema> = SignalProps$2<Schema>;
|
|
1315
1359
|
|
|
1316
1360
|
/** @typedef {import("./TimerProps.ts").TimerProps} TimerProps */
|
|
1317
1361
|
/**
|
|
1318
1362
|
* @param {TimerProps} props
|
|
1319
1363
|
*/
|
|
1320
|
-
declare function Timer(props: TimerProps$1):
|
|
1364
|
+
declare function Timer(props: TimerProps$1): React__default__default__default__default.ReactElement<{
|
|
1321
1365
|
id: string;
|
|
1322
1366
|
key: string | undefined;
|
|
1323
1367
|
duration: string | undefined;
|
|
@@ -1332,14 +1376,14 @@ declare function Timer(props: TimerProps$1): React.ReactElement<{
|
|
|
1332
1376
|
} | undefined;
|
|
1333
1377
|
__smithersTimerDuration: string | undefined;
|
|
1334
1378
|
__smithersTimerUntil: string | undefined;
|
|
1335
|
-
}, string |
|
|
1379
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1336
1380
|
type TimerProps$1 = TimerProps$2;
|
|
1337
1381
|
|
|
1338
1382
|
/**
|
|
1339
1383
|
* @param {HumanTaskProps} props
|
|
1340
1384
|
* @returns {React.ReactElement | null}
|
|
1341
1385
|
*/
|
|
1342
|
-
declare function HumanTask(props: HumanTaskProps$1):
|
|
1386
|
+
declare function HumanTask(props: HumanTaskProps$1): React__default__default__default__default.ReactElement | null;
|
|
1343
1387
|
type HumanTaskProps$1 = HumanTaskProps$2;
|
|
1344
1388
|
|
|
1345
1389
|
/**
|
|
@@ -1351,7 +1395,7 @@ type HumanTaskProps$1 = HumanTaskProps$2;
|
|
|
1351
1395
|
* Renders to `<smithers:saga>`.
|
|
1352
1396
|
* @param {SagaProps} props
|
|
1353
1397
|
*/
|
|
1354
|
-
declare function Saga(props: SagaProps$1):
|
|
1398
|
+
declare function Saga(props: SagaProps$1): React__default__default__default__default.ReactElement<{
|
|
1355
1399
|
id: string | undefined;
|
|
1356
1400
|
onFailure: "fail" | "compensate" | "compensate-and-fail";
|
|
1357
1401
|
__sagaSteps: {
|
|
@@ -1359,7 +1403,7 @@ declare function Saga(props: SagaProps$1): React.ReactElement<{
|
|
|
1359
1403
|
label: any;
|
|
1360
1404
|
}[];
|
|
1361
1405
|
skipIf?: boolean;
|
|
1362
|
-
}, string |
|
|
1406
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1363
1407
|
declare namespace Saga {
|
|
1364
1408
|
export { SagaStep as Step };
|
|
1365
1409
|
}
|
|
@@ -1370,7 +1414,7 @@ type SagaProps$1 = SagaProps$2;
|
|
|
1370
1414
|
* @param {SagaStepProps} _props
|
|
1371
1415
|
* @returns {React.ReactElement | null}
|
|
1372
1416
|
*/
|
|
1373
|
-
declare function SagaStep(_props: SagaStepProps$1):
|
|
1417
|
+
declare function SagaStep(_props: SagaStepProps$1): React__default__default__default__default.ReactElement | null;
|
|
1374
1418
|
declare namespace SagaStep {
|
|
1375
1419
|
let __isSagaStep: boolean;
|
|
1376
1420
|
}
|
|
@@ -1386,12 +1430,12 @@ declare namespace SagaStep {
|
|
|
1386
1430
|
* Renders to `<smithers:try-catch-finally>`.
|
|
1387
1431
|
* @param {TryCatchFinallyProps} props
|
|
1388
1432
|
*/
|
|
1389
|
-
declare function TryCatchFinally(props: TryCatchFinallyProps$1):
|
|
1433
|
+
declare function TryCatchFinally(props: TryCatchFinallyProps$1): React__default__default__default__default.ReactElement<{
|
|
1390
1434
|
id: string | undefined;
|
|
1391
|
-
__tcfCatchErrors: ("INVALID_INPUT" | "MISSING_INPUT" | "MISSING_INPUT_TABLE" | "RESUME_METADATA_MISMATCH" | "UNKNOWN_OUTPUT_SCHEMA" | "INVALID_OUTPUT" | "WORKTREE_CREATE_FAILED" | "VCS_NOT_FOUND" | "SNAPSHOT_NOT_FOUND" | "VCS_WORKSPACE_CREATE_FAILED" | "TASK_TIMEOUT" | "RUN_NOT_FOUND" | "NODE_NOT_FOUND" | "INVALID_EVENTS_OPTIONS" | "SANDBOX_BUNDLE_INVALID" | "SANDBOX_BUNDLE_TOO_LARGE" | "WORKFLOW_EXECUTION_FAILED" | "SANDBOX_EXECUTION_FAILED" | "TASK_HEARTBEAT_TIMEOUT" | "HEARTBEAT_PAYLOAD_TOO_LARGE" | "HEARTBEAT_PAYLOAD_NOT_JSON_SERIALIZABLE" | "TASK_ABORTED" | "RUN_CANCELLED" | "RUN_NOT_RESUMABLE" | "RUN_OWNER_ALIVE" | "RUN_STILL_RUNNING" | "RUN_RESUME_CLAIM_LOST" | "RUN_RESUME_CLAIM_FAILED" | "RUN_RESUME_ACTIVATION_FAILED" | "RUN_HIJACKED" | "CONTINUATION_STATE_TOO_LARGE" | "INVALID_CONTINUATION_STATE" | "RALPH_MAX_REACHED" | "SCHEDULER_ERROR" | "SESSION_ERROR" | "TASK_ID_REQUIRED" | "TASK_MISSING_OUTPUT" | "DUPLICATE_ID" | "NESTED_LOOP" | "WORKTREE_EMPTY_PATH" | "MDX_PRELOAD_INACTIVE" | "CONTEXT_OUTSIDE_WORKFLOW" | "MISSING_OUTPUT" | "DEP_NOT_SATISFIED" | "ASPECT_BUDGET_EXCEEDED" | "APPROVAL_OUTSIDE_TASK" | "APPROVAL_OPTIONS_REQUIRED" | "WORKFLOW_MISSING_DEFAULT" | "TOOL_PATH_INVALID" | "TOOL_PATH_ESCAPE" | "TOOL_FILE_TOO_LARGE" | "TOOL_CONTENT_TOO_LARGE" | "TOOL_PATCH_TOO_LARGE" | "TOOL_PATCH_FAILED" | "TOOL_NETWORK_DISABLED" | "TOOL_GIT_REMOTE_DISABLED" | "TOOL_COMMAND_FAILED" | "TOOL_GREP_FAILED" | "AGENT_CLI_ERROR" | "AGENT_RPC_FILE_ARGS" | "AGENT_BUILD_COMMAND" | "AGENT_DIAGNOSTIC_TIMEOUT" | "DB_MISSING_COLUMNS" | "DB_REQUIRES_BUN_SQLITE" | "DB_QUERY_FAILED" | "DB_WRITE_FAILED" | "STORAGE_ERROR" | "INTERNAL_ERROR" | "PROCESS_ABORTED" | "PROCESS_TIMEOUT" | "PROCESS_IDLE_TIMEOUT" | "PROCESS_SPAWN_FAILED" | "TASK_RUNTIME_UNAVAILABLE" | "SCHEMA_CHANGE_HOT" | "HOT_OVERLAY_FAILED" | "HOT_RELOAD_INVALID_MODULE" | "SCORER_FAILED" | "WORKFLOW_EXISTS" | "CLI_DB_NOT_FOUND" | "CLI_AGENT_UNSUPPORTED" | "PI_HTTP_ERROR" | "EXTERNAL_BUILD_FAILED" | "SCHEMA_DISCOVERY_FAILED" | "OPENAPI_SPEC_LOAD_FAILED" | "OPENAPI_OPERATION_NOT_FOUND" | "OPENAPI_TOOL_EXECUTION_FAILED" | (string & {}))[] | undefined;
|
|
1392
|
-
__tcfCatchHandler:
|
|
1393
|
-
__tcfFinallyHandler:
|
|
1394
|
-
}, string |
|
|
1435
|
+
__tcfCatchErrors: ("INVALID_INPUT" | "MISSING_INPUT" | "MISSING_INPUT_TABLE" | "RESUME_METADATA_MISMATCH" | "UNKNOWN_OUTPUT_SCHEMA" | "INVALID_OUTPUT" | "WORKTREE_CREATE_FAILED" | "VCS_NOT_FOUND" | "SNAPSHOT_NOT_FOUND" | "VCS_WORKSPACE_CREATE_FAILED" | "TASK_TIMEOUT" | "TASK_HIJACK_UNSUPPORTED" | "TASK_FORK_SOURCE_NOT_FOUND" | "TASK_FORK_SOURCE_NOT_COMPLETE" | "TASK_FORK_SESSION_UNAVAILABLE" | "TASK_FORK_CYCLE" | "RUN_NOT_FOUND" | "NODE_NOT_FOUND" | "INVALID_EVENTS_OPTIONS" | "SANDBOX_BUNDLE_INVALID" | "SANDBOX_BUNDLE_TOO_LARGE" | "WORKFLOW_EXECUTION_FAILED" | "SANDBOX_EXECUTION_FAILED" | "TASK_HEARTBEAT_TIMEOUT" | "HEARTBEAT_PAYLOAD_TOO_LARGE" | "HEARTBEAT_PAYLOAD_NOT_JSON_SERIALIZABLE" | "TASK_ABORTED" | "RUN_CANCELLED" | "RUN_NOT_RESUMABLE" | "RUN_OWNER_ALIVE" | "RUN_STILL_RUNNING" | "RUN_RESUME_CLAIM_LOST" | "RUN_RESUME_CLAIM_FAILED" | "RUN_RESUME_ACTIVATION_FAILED" | "RUN_HIJACKED" | "CONTINUATION_STATE_TOO_LARGE" | "INVALID_CONTINUATION_STATE" | "RALPH_MAX_REACHED" | "SCHEDULER_ERROR" | "SESSION_ERROR" | "TASK_ID_REQUIRED" | "TASK_MISSING_OUTPUT" | "DUPLICATE_ID" | "NESTED_LOOP" | "WORKTREE_EMPTY_PATH" | "MDX_PRELOAD_INACTIVE" | "CONTEXT_OUTSIDE_WORKFLOW" | "MISSING_OUTPUT" | "DEP_NOT_SATISFIED" | "ASPECT_BUDGET_EXCEEDED" | "APPROVAL_OUTSIDE_TASK" | "APPROVAL_OPTIONS_REQUIRED" | "WORKFLOW_MISSING_DEFAULT" | "TOOL_PATH_INVALID" | "TOOL_PATH_ESCAPE" | "TOOL_FILE_TOO_LARGE" | "TOOL_CONTENT_TOO_LARGE" | "TOOL_PATCH_TOO_LARGE" | "TOOL_PATCH_FAILED" | "TOOL_NETWORK_DISABLED" | "TOOL_GIT_REMOTE_DISABLED" | "TOOL_COMMAND_FAILED" | "TOOL_GREP_FAILED" | "AGENT_CLI_ERROR" | "AGENT_CONFIG_INVALID" | "AGENT_QUOTA_EXCEEDED" | "AGENT_RPC_FILE_ARGS" | "AGENT_BUILD_COMMAND" | "AGENT_DIAGNOSTIC_TIMEOUT" | "ACCOUNT_INVALID" | "ACCOUNT_NOT_FOUND" | "ACCOUNT_DUPLICATE_LABEL" | "ACCOUNTS_FILE_INVALID" | "DB_MISSING_COLUMNS" | "DB_REQUIRES_BUN_SQLITE" | "DB_QUERY_FAILED" | "DB_WRITE_FAILED" | "SMITHERS_MIGRATION_REQUIRED" | "STORAGE_ERROR" | "INTERNAL_ERROR" | "PROCESS_ABORTED" | "PROCESS_TIMEOUT" | "PROCESS_IDLE_TIMEOUT" | "PROCESS_SPAWN_FAILED" | "TASK_RUNTIME_UNAVAILABLE" | "SCHEMA_CHANGE_HOT" | "HOT_OVERLAY_FAILED" | "HOT_RELOAD_INVALID_MODULE" | "SCORER_FAILED" | "WORKFLOW_EXISTS" | "CLI_DB_NOT_FOUND" | "CLI_AGENT_UNSUPPORTED" | "PI_HTTP_ERROR" | "EXTERNAL_BUILD_FAILED" | "SCHEMA_DISCOVERY_FAILED" | "OPENAPI_SPEC_LOAD_FAILED" | "OPENAPI_OPERATION_NOT_FOUND" | "OPENAPI_TOOL_EXECUTION_FAILED" | (string & {}))[] | undefined;
|
|
1436
|
+
__tcfCatchHandler: React__default__default__default__default.ReactElement<unknown, string | React__default__default__default__default.JSXElementConstructor<any>> | ((error: _smithers_orchestrator_errors.SmithersError) => React__default__default__default__default.ReactElement) | undefined;
|
|
1437
|
+
__tcfFinallyHandler: React__default__default__default__default.ReactElement<unknown, string | React__default__default__default__default.JSXElementConstructor<any>> | undefined;
|
|
1438
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1395
1439
|
type TryCatchFinallyProps$1 = TryCatchFinallyProps$2;
|
|
1396
1440
|
|
|
1397
1441
|
/**
|
|
@@ -1400,7 +1444,6 @@ type TryCatchFinallyProps$1 = TryCatchFinallyProps$2;
|
|
|
1400
1444
|
type AspectAccumulator = {
|
|
1401
1445
|
totalTokens: number;
|
|
1402
1446
|
totalLatencyMs: number;
|
|
1403
|
-
totalCostUsd: number;
|
|
1404
1447
|
taskCount: number;
|
|
1405
1448
|
};
|
|
1406
1449
|
|
|
@@ -1410,7 +1453,6 @@ type AspectAccumulator = {
|
|
|
1410
1453
|
type AspectContextValue = {
|
|
1411
1454
|
tokenBudget?: TokenBudgetConfig;
|
|
1412
1455
|
latencySlo?: LatencySloConfig;
|
|
1413
|
-
costBudget?: CostBudgetConfig;
|
|
1414
1456
|
tracking: TrackingConfig;
|
|
1415
1457
|
accumulator: AspectAccumulator;
|
|
1416
1458
|
};
|
|
@@ -1420,8 +1462,8 @@ type AspectContextValue = {
|
|
|
1420
1462
|
*
|
|
1421
1463
|
* Wraps a section of the workflow tree and propagates token budgets,
|
|
1422
1464
|
* latency SLOs, and cost budgets to all descendant Task components
|
|
1423
|
-
* without modifying individual tasks.
|
|
1424
|
-
*
|
|
1465
|
+
* without modifying individual tasks. The engine enforces the scope-wide
|
|
1466
|
+
* budgets at task-dispatch time.
|
|
1425
1467
|
*
|
|
1426
1468
|
* ```tsx
|
|
1427
1469
|
* <Aspects tokenBudget={{ max: 100_000, perTask: 20_000, onExceeded: "warn" }}>
|
|
@@ -1431,7 +1473,7 @@ type AspectContextValue = {
|
|
|
1431
1473
|
* ```
|
|
1432
1474
|
* @param {AspectsProps} props
|
|
1433
1475
|
*/
|
|
1434
|
-
declare function Aspects(props: AspectsProps$1):
|
|
1476
|
+
declare function Aspects(props: AspectsProps$1): React__default__default__default__default.FunctionComponentElement<React__default__default__default__default.ProviderProps<AspectContextValue | null>>;
|
|
1435
1477
|
type AspectsProps$1 = AspectsProps$2;
|
|
1436
1478
|
|
|
1437
1479
|
/**
|
|
@@ -1445,8 +1487,8 @@ type AspectsProps$1 = AspectsProps$2;
|
|
|
1445
1487
|
*
|
|
1446
1488
|
* Internally expands to a sequence of tasks:
|
|
1447
1489
|
* 1. Agent reads the strategy doc and target files
|
|
1448
|
-
* 2. Agent
|
|
1449
|
-
* 3.
|
|
1490
|
+
* 2. (If not dryRun) Agent applies the modifications directly to disk
|
|
1491
|
+
* 3. A compute marker records the apply and triggers the hot-reload system
|
|
1450
1492
|
* 4. Agent generates a report of what changed
|
|
1451
1493
|
*
|
|
1452
1494
|
* ```tsx
|
|
@@ -1460,34 +1502,46 @@ type AspectsProps$1 = AspectsProps$2;
|
|
|
1460
1502
|
* ```
|
|
1461
1503
|
* @param {SuperSmithersProps} props
|
|
1462
1504
|
*/
|
|
1463
|
-
declare function SuperSmithers(props: SuperSmithersProps$1):
|
|
1505
|
+
declare function SuperSmithers(props: SuperSmithersProps$1): React__default__default__default__default.ReactElement<{
|
|
1464
1506
|
id: string;
|
|
1465
|
-
}, string |
|
|
1507
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1466
1508
|
type SuperSmithersProps$1 = SuperSmithersProps$2;
|
|
1467
1509
|
|
|
1468
1510
|
/** @typedef {import("./LoopProps.ts").LoopProps} LoopProps */
|
|
1469
1511
|
/**
|
|
1470
1512
|
* @param {LoopProps} props
|
|
1471
1513
|
*/
|
|
1472
|
-
declare function Loop(props: LoopProps$1):
|
|
1514
|
+
declare function Loop(props: LoopProps$1): React__default__default__default__default.ReactElement<{
|
|
1515
|
+
id: string | undefined;
|
|
1516
|
+
until: boolean | undefined;
|
|
1517
|
+
maxIterations: number | undefined;
|
|
1518
|
+
onMaxReached: "fail" | "return-last" | undefined;
|
|
1519
|
+
continueAsNewEvery: number | undefined;
|
|
1520
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1473
1521
|
/** @typedef {import("./LoopProps.ts").LoopProps} LoopProps */
|
|
1474
1522
|
/**
|
|
1475
1523
|
* @param {LoopProps} props
|
|
1476
1524
|
*/
|
|
1477
|
-
declare function Ralph(props: LoopProps$1):
|
|
1525
|
+
declare function Ralph(props: LoopProps$1): React__default__default__default__default.ReactElement<{
|
|
1526
|
+
id: string | undefined;
|
|
1527
|
+
until: boolean | undefined;
|
|
1528
|
+
maxIterations: number | undefined;
|
|
1529
|
+
onMaxReached: "fail" | "return-last" | undefined;
|
|
1530
|
+
continueAsNewEvery: number | undefined;
|
|
1531
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>> | null;
|
|
1478
1532
|
type LoopProps$1 = LoopProps$2;
|
|
1479
1533
|
|
|
1480
1534
|
/**
|
|
1481
1535
|
* @param {ContinueAsNewProps} props
|
|
1482
1536
|
*/
|
|
1483
|
-
declare function ContinueAsNew(props: ContinueAsNewProps$1):
|
|
1537
|
+
declare function ContinueAsNew(props: ContinueAsNewProps$1): React__default__default__default__default.ReactElement<{
|
|
1484
1538
|
stateJson: string | undefined;
|
|
1485
|
-
}, string |
|
|
1539
|
+
}, string | React__default__default__default__default.JSXElementConstructor<any>>;
|
|
1486
1540
|
/**
|
|
1487
1541
|
* Convenience helper for conditional continuation inside workflow JSX:
|
|
1488
1542
|
* `{shouldContinue ? continueAsNew({ cursor }) : null}`
|
|
1489
1543
|
*/
|
|
1490
|
-
declare function continueAsNew(state: any):
|
|
1544
|
+
declare function continueAsNew(state: any): React__default__default__default__default.FunctionComponentElement<ContinueAsNewProps$2>;
|
|
1491
1545
|
type ContinueAsNewProps$1 = ContinueAsNewProps$2;
|
|
1492
1546
|
|
|
1493
1547
|
type ApprovalAutoApprove = ApprovalAutoApprove$1;
|
|
@@ -1541,8 +1595,10 @@ type SandboxRuntime = SandboxRuntime$1;
|
|
|
1541
1595
|
type SandboxVolumeMount = SandboxVolumeMount$1;
|
|
1542
1596
|
type SandboxWorkspaceSpec = SandboxWorkspaceSpec$1;
|
|
1543
1597
|
type ScanFixVerifyProps = ScanFixVerifyProps$2;
|
|
1544
|
-
type ScorersMap = ScorersMap
|
|
1598
|
+
type ScorersMap = _smithers_orchestrator_graph_types.ScorersMap;
|
|
1545
1599
|
type SequenceProps = SequenceProps$2;
|
|
1600
|
+
type SidecarDelta = SidecarDelta$1;
|
|
1601
|
+
type SidecarProps = SidecarProps$2;
|
|
1546
1602
|
type SignalProps<Schema> = SignalProps$2<Schema>;
|
|
1547
1603
|
type SourceDef = SourceDef$1;
|
|
1548
1604
|
type SubflowProps = SubflowProps$2;
|
|
@@ -1556,7 +1612,7 @@ type WorkflowProps = WorkflowProps$2;
|
|
|
1556
1612
|
type WorktreeProps = WorktreeProps$2;
|
|
1557
1613
|
|
|
1558
1614
|
/** @type {Record<string, React.FC<any>>} */
|
|
1559
|
-
declare const markdownComponents: Record<string,
|
|
1615
|
+
declare const markdownComponents: Record<string, React__default__default__default__default.FC<any>>;
|
|
1560
1616
|
|
|
1561
1617
|
/** @typedef {import("react").ComponentType<Record<string, any>>} MDXContent */
|
|
1562
1618
|
/**
|
|
@@ -1570,7 +1626,7 @@ declare const markdownComponents: Record<string, React.FC<any>>;
|
|
|
1570
1626
|
* @returns {string}
|
|
1571
1627
|
*/
|
|
1572
1628
|
declare function renderMdx(Component: MDXContent, props?: Record<string, any>): string;
|
|
1573
|
-
type MDXContent = any
|
|
1629
|
+
type MDXContent = React__default__default__default.ComponentType<Record<string, any>>;
|
|
1574
1630
|
|
|
1575
1631
|
/** @typedef {import("zod").ZodObject<import("zod").ZodRawShape>} ZodObject */
|
|
1576
1632
|
/** @typedef {import("zod").ZodTypeAny} ZodTypeAny */
|
|
@@ -1581,42 +1637,42 @@ type MDXContent = any;
|
|
|
1581
1637
|
declare function zodSchemaToJsonExample(schema: ZodObject): string;
|
|
1582
1638
|
type ZodObject = zod.ZodObject<zod.ZodRawShape>;
|
|
1583
1639
|
|
|
1584
|
-
type CachePolicy<Ctx> =
|
|
1585
|
-
type EngineDecision =
|
|
1586
|
-
type ExtractOptions =
|
|
1587
|
-
type HostElement =
|
|
1588
|
-
type HostNode =
|
|
1589
|
-
type HostText =
|
|
1590
|
-
type InferOutputEntry<T> =
|
|
1591
|
-
type InferRow<TTable> =
|
|
1592
|
-
type OutputAccessor<Schema> =
|
|
1593
|
-
type OutputKey =
|
|
1594
|
-
type RenderContext =
|
|
1595
|
-
type RetryPolicy =
|
|
1596
|
-
type RunAuthContext =
|
|
1597
|
-
type RunOptions =
|
|
1598
|
-
type RunResult =
|
|
1599
|
-
type SchemaRegistryEntry =
|
|
1600
|
-
type SmithersAlertLabels =
|
|
1601
|
-
type SmithersAlertPolicy =
|
|
1602
|
-
type SmithersAlertPolicyDefaults =
|
|
1603
|
-
type SmithersAlertPolicyRule =
|
|
1604
|
-
type SmithersAlertReaction =
|
|
1605
|
-
type SmithersAlertReactionKind =
|
|
1606
|
-
type SmithersAlertReactionRef =
|
|
1607
|
-
type SmithersAlertSeverity =
|
|
1608
|
-
type SmithersCtx =
|
|
1609
|
-
type SmithersErrorCode =
|
|
1610
|
-
type SmithersWorkflow<Schema> =
|
|
1611
|
-
type SmithersWorkflowDriverOptions<Schema> =
|
|
1612
|
-
type SmithersWorkflowOptions =
|
|
1613
|
-
type TaskDescriptor =
|
|
1614
|
-
type WaitReason =
|
|
1615
|
-
type WorkflowGraph =
|
|
1616
|
-
type WorkflowRuntime =
|
|
1617
|
-
type WorkflowSession =
|
|
1618
|
-
type XmlElement =
|
|
1619
|
-
type XmlNode =
|
|
1620
|
-
type XmlText =
|
|
1621
|
-
|
|
1622
|
-
export { Approval, type ApprovalAutoApprove, type ApprovalDecision, ApprovalGate, type ApprovalGateProps, type ApprovalMode, type ApprovalOption, type ApprovalProps, type ApprovalRanking, type ApprovalRequest, type ApprovalSelection, Aspects, type AspectsProps, Branch, type BranchProps, type CachePolicy, type CategoryConfig, type CheckConfig, CheckSuite, type CheckSuiteProps, ClassifyAndRoute, type ClassifyAndRouteProps, type ColumnDef, ContentPipeline, type ContentPipelineProps, type ContentPipelineStage, ContinueAsNew, type ContinueAsNewProps, Debate, type DebateProps, type DecisionRule, DecisionTable, type DecisionTableProps, type DepsSpec, DriftDetector, type DriftDetectorProps, type EngineDecision, EscalationChain, type EscalationChainProps, type EscalationLevel, type ExtractOptions, GatherAndSynthesize, type GatherAndSynthesizeProps, type HostElement, type HostNode, type HostText, HumanTask, type HumanTaskProps, type InferDeps, type InferOutputEntry, type InferRow, Kanban, type KanbanProps, Loop, type LoopProps, MergeQueue, type MergeQueueProps, Optimizer, type OptimizerProps, type OutputAccessor, type OutputKey, type OutputTarget, Panel, type PanelProps, type PanelistConfig, Parallel, type ParallelProps, Poller, type PollerProps, Ralph, type RalphProps, type RenderContext, type RetryPolicy, ReviewLoop, type ReviewLoopProps, type RunAuthContext, type RunOptions, type RunResult, Runbook, type RunbookProps, type RunbookStep, Saga, type SagaProps, type SagaStepDef, type SagaStepProps, Sandbox, type SandboxEgressConfig, type SandboxProps, type SandboxRuntime, type SandboxVolumeMount, type SandboxWorkspaceSpec, ScanFixVerify, type ScanFixVerifyProps, type SchemaRegistryEntry, type ScorersMap, Sequence, type SequenceProps, Signal, type SignalProps, type SmithersAlertLabels, type SmithersAlertPolicy, type SmithersAlertPolicyDefaults, type SmithersAlertPolicyRule, type SmithersAlertReaction, type SmithersAlertReactionKind, type SmithersAlertReactionRef, type SmithersAlertSeverity, type SmithersCtx, type SmithersErrorCode, type SmithersWorkflow, type SmithersWorkflowDriverOptions, type SmithersWorkflowOptions, type SourceDef, Subflow, type SubflowProps, SuperSmithers, type SuperSmithersProps, Supervisor, type SupervisorProps, Task, type TaskDescriptor, type TaskProps, Timer, type TimerProps, TryCatchFinally, type TryCatchFinallyProps, WaitForEvent, type WaitForEventProps, type WaitReason, Workflow, type WorkflowGraph, type WorkflowProps, type WorkflowRuntime, type WorkflowSession, Worktree, type WorktreeProps, type XmlElement, type XmlNode, type XmlText, approvalDecisionSchema, approvalRankingSchema, approvalSelectionSchema, continueAsNew, markdownComponents, renderMdx, zodSchemaToJsonExample };
|
|
1640
|
+
type CachePolicy<Ctx> = _smithers_orchestrator_scheduler_CachePolicy.CachePolicy<Ctx>;
|
|
1641
|
+
type EngineDecision = _smithers_orchestrator_scheduler.EngineDecision;
|
|
1642
|
+
type ExtractOptions = _smithers_orchestrator_graph.ExtractOptions;
|
|
1643
|
+
type HostElement = _smithers_orchestrator_graph.HostElement;
|
|
1644
|
+
type HostNode = _smithers_orchestrator_graph.HostNode;
|
|
1645
|
+
type HostText = _smithers_orchestrator_graph.HostText;
|
|
1646
|
+
type InferOutputEntry<T> = _smithers_orchestrator_driver_OutputAccessor.InferOutputEntry<T>;
|
|
1647
|
+
type InferRow<TTable> = _smithers_orchestrator_driver_OutputAccessor.InferRow<TTable>;
|
|
1648
|
+
type OutputAccessor<Schema> = _smithers_orchestrator_driver_OutputAccessor.OutputAccessor<Schema>;
|
|
1649
|
+
type OutputKey = _smithers_orchestrator_driver_OutputKey.OutputKey;
|
|
1650
|
+
type RenderContext = _smithers_orchestrator_scheduler.RenderContext;
|
|
1651
|
+
type RetryPolicy = _smithers_orchestrator_scheduler_RetryPolicy.RetryPolicy;
|
|
1652
|
+
type RunAuthContext = _smithers_orchestrator_driver_RunAuthContext.RunAuthContext;
|
|
1653
|
+
type RunOptions = _smithers_orchestrator_driver.RunOptions;
|
|
1654
|
+
type RunResult = _smithers_orchestrator_driver.RunResult;
|
|
1655
|
+
type SchemaRegistryEntry = _smithers_orchestrator_db_SchemaRegistryEntry.SchemaRegistryEntry;
|
|
1656
|
+
type SmithersAlertLabels = _smithers_orchestrator_scheduler_SmithersWorkflowOptions.SmithersAlertLabels;
|
|
1657
|
+
type SmithersAlertPolicy = _smithers_orchestrator_scheduler_SmithersWorkflowOptions.SmithersAlertPolicy;
|
|
1658
|
+
type SmithersAlertPolicyDefaults = _smithers_orchestrator_scheduler_SmithersWorkflowOptions.SmithersAlertPolicyDefaults;
|
|
1659
|
+
type SmithersAlertPolicyRule = _smithers_orchestrator_scheduler_SmithersWorkflowOptions.SmithersAlertPolicyRule;
|
|
1660
|
+
type SmithersAlertReaction = _smithers_orchestrator_scheduler_SmithersWorkflowOptions.SmithersAlertReaction;
|
|
1661
|
+
type SmithersAlertReactionKind = _smithers_orchestrator_scheduler_SmithersWorkflowOptions.SmithersAlertReactionKind;
|
|
1662
|
+
type SmithersAlertReactionRef = _smithers_orchestrator_scheduler_SmithersWorkflowOptions.SmithersAlertReactionRef;
|
|
1663
|
+
type SmithersAlertSeverity = _smithers_orchestrator_scheduler_SmithersWorkflowOptions.SmithersAlertSeverity;
|
|
1664
|
+
type SmithersCtx = _smithers_orchestrator_driver.SmithersCtx;
|
|
1665
|
+
type SmithersErrorCode = _smithers_orchestrator_errors_SmithersErrorCode.SmithersErrorCode;
|
|
1666
|
+
type SmithersWorkflow<Schema> = _smithers_orchestrator_driver_WorkflowDefinition.WorkflowDefinition<Schema>;
|
|
1667
|
+
type SmithersWorkflowDriverOptions<Schema> = _smithers_orchestrator_driver_WorkflowDriverOptions.WorkflowDriverOptions<Schema>;
|
|
1668
|
+
type SmithersWorkflowOptions = _smithers_orchestrator_scheduler.SmithersWorkflowOptions;
|
|
1669
|
+
type TaskDescriptor = _smithers_orchestrator_graph.TaskDescriptor;
|
|
1670
|
+
type WaitReason = _smithers_orchestrator_scheduler.WaitReason;
|
|
1671
|
+
type WorkflowGraph = _smithers_orchestrator_graph.WorkflowGraph;
|
|
1672
|
+
type WorkflowRuntime = _smithers_orchestrator_driver_workflow_types.WorkflowRuntime;
|
|
1673
|
+
type WorkflowSession = _smithers_orchestrator_driver_workflow_types.WorkflowSession;
|
|
1674
|
+
type XmlElement = _smithers_orchestrator_graph.XmlElement;
|
|
1675
|
+
type XmlNode = _smithers_orchestrator_graph.XmlNode;
|
|
1676
|
+
type XmlText = _smithers_orchestrator_graph.XmlText;
|
|
1677
|
+
|
|
1678
|
+
export { Approval, type ApprovalAutoApprove, type ApprovalDecision, ApprovalGate, type ApprovalGateProps, type ApprovalMode, type ApprovalOption, type ApprovalProps, type ApprovalRanking, type ApprovalRequest, type ApprovalSelection, Aspects, type AspectsProps, Branch, type BranchProps, type CachePolicy, type CategoryConfig, type CheckConfig, CheckSuite, type CheckSuiteProps, ClassifyAndRoute, type ClassifyAndRouteProps, type ColumnDef, ContentPipeline, type ContentPipelineProps, type ContentPipelineStage, ContinueAsNew, type ContinueAsNewProps, Debate, type DebateProps, type DecisionRule, DecisionTable, type DecisionTableProps, type DepsSpec, DriftDetector, type DriftDetectorProps, type EngineDecision, EscalationChain, type EscalationChainProps, type EscalationLevel, type ExtractOptions, GatherAndSynthesize, type GatherAndSynthesizeProps, type HostElement, type HostNode, type HostText, HumanTask, type HumanTaskProps, type InferDeps, type InferOutputEntry, type InferRow, Kanban, type KanbanProps, Loop, type LoopProps, MergeQueue, type MergeQueueProps, Optimizer, type OptimizerProps, type OutputAccessor, type OutputKey, type OutputTarget, Panel, type PanelProps, type PanelistConfig, Parallel, type ParallelProps, Poller, type PollerProps, Ralph, type RalphProps, type RenderContext, type RetryPolicy, ReviewLoop, type ReviewLoopProps, type RunAuthContext, type RunOptions, type RunResult, Runbook, type RunbookProps, type RunbookStep, Saga, type SagaProps, SagaStep, type SagaStepDef, type SagaStepProps, Sandbox, type SandboxEgressConfig, type SandboxProps, type SandboxRuntime, type SandboxVolumeMount, type SandboxWorkspaceSpec, ScanFixVerify, type ScanFixVerifyProps, type SchemaRegistryEntry, type ScorersMap, Sequence, type SequenceProps, Sidecar, type SidecarDelta, type SidecarProps, Signal, type SignalProps, type SmithersAlertLabels, type SmithersAlertPolicy, type SmithersAlertPolicyDefaults, type SmithersAlertPolicyRule, type SmithersAlertReaction, type SmithersAlertReactionKind, type SmithersAlertReactionRef, type SmithersAlertSeverity, type SmithersCtx, type SmithersErrorCode, type SmithersWorkflow, type SmithersWorkflowDriverOptions, type SmithersWorkflowOptions, type SourceDef, Subflow, type SubflowProps, SuperSmithers, type SuperSmithersProps, Supervisor, type SupervisorProps, Task, type TaskDescriptor, type TaskProps, Timer, type TimerProps, TryCatchFinally, type TryCatchFinallyProps, WaitForEvent, type WaitForEventProps, type WaitReason, Workflow, type WorkflowGraph, type WorkflowProps, type WorkflowRuntime, type WorkflowSession, Worktree, type WorktreeProps, type XmlElement, type XmlNode, type XmlText, approvalDecisionSchema, approvalRankingSchema, approvalSelectionSchema, computeSidecarDelta, continueAsNew, markdownComponents, renderMdx, zodSchemaToJsonExample };
|