@smithers-orchestrator/components 0.16.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/LICENSE +21 -0
- package/package.json +47 -0
- package/src/SmithersWorkflow.ts +1 -0
- package/src/aspects/AspectAccumulator.ts +9 -0
- package/src/aspects/AspectContext.js +29 -0
- package/src/aspects/AspectContextValue.ts +16 -0
- package/src/aspects/CostBudgetConfig.ts +9 -0
- package/src/aspects/LatencySloConfig.ts +11 -0
- package/src/aspects/TokenBudgetConfig.ts +11 -0
- package/src/aspects/TrackingConfig.ts +11 -0
- package/src/aspects/index.js +10 -0
- package/src/components/Approval.js +211 -0
- package/src/components/ApprovalAutoApprove.ts +8 -0
- package/src/components/ApprovalDecision.ts +4 -0
- package/src/components/ApprovalGate.js +45 -0
- package/src/components/ApprovalGateProps.ts +22 -0
- package/src/components/ApprovalMode.ts +1 -0
- package/src/components/ApprovalOption.ts +6 -0
- package/src/components/ApprovalProps.ts +42 -0
- package/src/components/ApprovalRanking.ts +4 -0
- package/src/components/ApprovalRequest.ts +5 -0
- package/src/components/ApprovalSelection.ts +4 -0
- package/src/components/Aspects.js +39 -0
- package/src/components/AspectsProps.ts +18 -0
- package/src/components/Branch.js +12 -0
- package/src/components/BranchProps.ts +8 -0
- package/src/components/CategoryConfig.ts +10 -0
- package/src/components/CheckConfig.ts +8 -0
- package/src/components/CheckSuite.js +71 -0
- package/src/components/CheckSuiteProps.ts +12 -0
- package/src/components/ClassifyAndRoute.js +75 -0
- package/src/components/ClassifyAndRouteProps.ts +30 -0
- package/src/components/ColumnDef.ts +19 -0
- package/src/components/ContentPipeline.js +38 -0
- package/src/components/ContentPipelineProps.ts +12 -0
- package/src/components/ContentPipelineStage.ts +13 -0
- package/src/components/ContinueAsNew.js +27 -0
- package/src/components/ContinueAsNewProps.ts +6 -0
- package/src/components/Debate.js +63 -0
- package/src/components/DebateProps.ts +15 -0
- package/src/components/DecisionRule.ts +10 -0
- package/src/components/DecisionTable.js +42 -0
- package/src/components/DecisionTableProps.ts +14 -0
- package/src/components/DepsSpec.ts +3 -0
- package/src/components/DriftDetector.js +54 -0
- package/src/components/DriftDetectorProps.ts +29 -0
- package/src/components/EscalationChain.js +99 -0
- package/src/components/EscalationChainProps.ts +20 -0
- package/src/components/EscalationLevel.ts +13 -0
- package/src/components/GatherAndSynthesize.js +69 -0
- package/src/components/GatherAndSynthesizeProps.ts +24 -0
- package/src/components/HumanTask.js +94 -0
- package/src/components/HumanTaskProps.ts +27 -0
- package/src/components/InferDeps.ts +8 -0
- package/src/components/Kanban.js +68 -0
- package/src/components/KanbanProps.ts +27 -0
- package/src/components/Loop.js +6 -0
- package/src/components/LoopProps.ts +11 -0
- package/src/components/MergeQueue.js +16 -0
- package/src/components/MergeQueueProps.ts +12 -0
- package/src/components/Optimizer.js +52 -0
- package/src/components/OptimizerProps.ts +25 -0
- package/src/components/OutputTarget.ts +6 -0
- package/src/components/Panel.js +69 -0
- package/src/components/PanelProps.ts +17 -0
- package/src/components/PanelistConfig.ts +7 -0
- package/src/components/Parallel.js +16 -0
- package/src/components/ParallelProps.ts +8 -0
- package/src/components/Poller.js +69 -0
- package/src/components/PollerProps.ts +24 -0
- package/src/components/Ralph.js +17 -0
- package/src/components/RalphProps.ts +4 -0
- package/src/components/ReviewLoop.js +51 -0
- package/src/components/ReviewLoopProps.ts +23 -0
- package/src/components/Runbook.js +91 -0
- package/src/components/RunbookProps.ts +19 -0
- package/src/components/RunbookStep.ts +17 -0
- package/src/components/Saga.js +77 -0
- package/src/components/SagaProps.ts +10 -0
- package/src/components/SagaStepDef.ts +8 -0
- package/src/components/SagaStepProps.ts +7 -0
- package/src/components/Sandbox.js +48 -0
- package/src/components/SandboxProps.ts +46 -0
- package/src/components/SandboxRuntime.ts +1 -0
- package/src/components/SandboxVolumeMount.ts +5 -0
- package/src/components/SandboxWorkspaceSpec.ts +6 -0
- package/src/components/ScanFixVerify.js +60 -0
- package/src/components/ScanFixVerifyProps.ts +30 -0
- package/src/components/Sequence.js +11 -0
- package/src/components/SequenceProps.ts +6 -0
- package/src/components/Signal.js +48 -0
- package/src/components/SignalProps.ts +21 -0
- package/src/components/SourceDef.ts +12 -0
- package/src/components/Subflow.js +32 -0
- package/src/components/SubflowProps.ts +33 -0
- package/src/components/SuperSmithers.js +102 -0
- package/src/components/SuperSmithersProps.ts +20 -0
- package/src/components/Supervisor.js +86 -0
- package/src/components/SupervisorProps.ts +28 -0
- package/src/components/Task.js +319 -0
- package/src/components/TaskProps.ts +57 -0
- package/src/components/Timer.js +42 -0
- package/src/components/TimerProps.ts +21 -0
- package/src/components/TryCatchFinally.js +35 -0
- package/src/components/TryCatchFinallyProps.ts +12 -0
- package/src/components/WaitForEvent.js +37 -0
- package/src/components/WaitForEventProps.ts +28 -0
- package/src/components/Workflow.js +10 -0
- package/src/components/WorkflowProps.ts +7 -0
- package/src/components/Worktree.js +17 -0
- package/src/components/WorktreeProps.ts +11 -0
- package/src/components/control-flow-utils.js +37 -0
- package/src/components/index.js +121 -0
- package/src/index.d.ts +1579 -0
- package/src/index.js +62 -0
- package/src/markdownComponents.js +44 -0
- package/src/renderMdx.js +26 -0
- package/src/types/react-dom-server.d.ts +1 -0
- package/src/types.ts +22 -0
- package/src/zod-to-example.js +87 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// @smithers-type-exports-begin
|
|
2
|
+
/** @typedef {import("./ApprovalAutoApprove.ts").ApprovalAutoApprove} ApprovalAutoApprove */
|
|
3
|
+
/** @typedef {import("./ApprovalDecision.ts").ApprovalDecision} ApprovalDecision */
|
|
4
|
+
/** @typedef {import("./ApprovalGateProps.ts").ApprovalGateProps} ApprovalGateProps */
|
|
5
|
+
/** @typedef {import("./ApprovalMode.ts").ApprovalMode} ApprovalMode */
|
|
6
|
+
/** @typedef {import("./ApprovalOption.ts").ApprovalOption} ApprovalOption */
|
|
7
|
+
/**
|
|
8
|
+
* @template Row
|
|
9
|
+
* @template Output
|
|
10
|
+
* @typedef {import("./ApprovalProps.ts").ApprovalProps<Row, Output>} ApprovalProps
|
|
11
|
+
*/
|
|
12
|
+
/** @typedef {import("./ApprovalRanking.ts").ApprovalRanking} ApprovalRanking */
|
|
13
|
+
/** @typedef {import("./ApprovalRequest.ts").ApprovalRequest} ApprovalRequest */
|
|
14
|
+
/** @typedef {import("./ApprovalSelection.ts").ApprovalSelection} ApprovalSelection */
|
|
15
|
+
/** @typedef {import("./AspectsProps.ts").AspectsProps} AspectsProps */
|
|
16
|
+
/** @typedef {import("./BranchProps.ts").BranchProps} BranchProps */
|
|
17
|
+
/** @typedef {import("./CategoryConfig.ts").CategoryConfig} CategoryConfig */
|
|
18
|
+
/** @typedef {import("./CheckConfig.ts").CheckConfig} CheckConfig */
|
|
19
|
+
/** @typedef {import("./CheckSuiteProps.ts").CheckSuiteProps} CheckSuiteProps */
|
|
20
|
+
/** @typedef {import("./ClassifyAndRouteProps.ts").ClassifyAndRouteProps} ClassifyAndRouteProps */
|
|
21
|
+
/** @typedef {import("./ColumnDef.ts").ColumnDef} ColumnDef */
|
|
22
|
+
/** @typedef {import("./ContentPipelineProps.ts").ContentPipelineProps} ContentPipelineProps */
|
|
23
|
+
/** @typedef {import("./ContentPipelineStage.ts").ContentPipelineStage} ContentPipelineStage */
|
|
24
|
+
/** @typedef {import("./ContinueAsNewProps.ts").ContinueAsNewProps} ContinueAsNewProps */
|
|
25
|
+
/** @typedef {import("./DebateProps.ts").DebateProps} DebateProps */
|
|
26
|
+
/** @typedef {import("./DecisionRule.ts").DecisionRule} DecisionRule */
|
|
27
|
+
/** @typedef {import("./DecisionTableProps.ts").DecisionTableProps} DecisionTableProps */
|
|
28
|
+
/** @typedef {import("./DepsSpec.ts").DepsSpec} DepsSpec */
|
|
29
|
+
/** @typedef {import("./DriftDetectorProps.ts").DriftDetectorProps} DriftDetectorProps */
|
|
30
|
+
/** @typedef {import("./EscalationChainProps.ts").EscalationChainProps} EscalationChainProps */
|
|
31
|
+
/** @typedef {import("./EscalationLevel.ts").EscalationLevel} EscalationLevel */
|
|
32
|
+
/** @typedef {import("./GatherAndSynthesizeProps.ts").GatherAndSynthesizeProps} GatherAndSynthesizeProps */
|
|
33
|
+
/** @typedef {import("./HumanTaskProps.ts").HumanTaskProps} HumanTaskProps */
|
|
34
|
+
/**
|
|
35
|
+
* @template D
|
|
36
|
+
* @typedef {import("./InferDeps.ts").InferDeps<D>} InferDeps
|
|
37
|
+
*/
|
|
38
|
+
/** @typedef {import("./KanbanProps.ts").KanbanProps} KanbanProps */
|
|
39
|
+
/** @typedef {import("./LoopProps.ts").LoopProps} LoopProps */
|
|
40
|
+
/** @typedef {import("./MergeQueueProps.ts").MergeQueueProps} MergeQueueProps */
|
|
41
|
+
/** @typedef {import("./OptimizerProps.ts").OptimizerProps} OptimizerProps */
|
|
42
|
+
/** @typedef {import("./OutputTarget.ts").OutputTarget} OutputTarget */
|
|
43
|
+
/** @typedef {import("./PanelistConfig.ts").PanelistConfig} PanelistConfig */
|
|
44
|
+
/** @typedef {import("./PanelProps.ts").PanelProps} PanelProps */
|
|
45
|
+
/** @typedef {import("./ParallelProps.ts").ParallelProps} ParallelProps */
|
|
46
|
+
/** @typedef {import("./PollerProps.ts").PollerProps} PollerProps */
|
|
47
|
+
/** @typedef {import("./RalphProps.ts").RalphProps} RalphProps */
|
|
48
|
+
/** @typedef {import("./ReviewLoopProps.ts").ReviewLoopProps} ReviewLoopProps */
|
|
49
|
+
/** @typedef {import("./RunbookProps.ts").RunbookProps} RunbookProps */
|
|
50
|
+
/** @typedef {import("./RunbookStep.ts").RunbookStep} RunbookStep */
|
|
51
|
+
/** @typedef {import("./SagaProps.ts").SagaProps} SagaProps */
|
|
52
|
+
/** @typedef {import("./SagaStepDef.ts").SagaStepDef} SagaStepDef */
|
|
53
|
+
/** @typedef {import("./SagaStepProps.ts").SagaStepProps} SagaStepProps */
|
|
54
|
+
/** @typedef {import("./SandboxProps.ts").SandboxProps} SandboxProps */
|
|
55
|
+
/** @typedef {import("./SandboxRuntime.ts").SandboxRuntime} SandboxRuntime */
|
|
56
|
+
/** @typedef {import("./SandboxVolumeMount.ts").SandboxVolumeMount} SandboxVolumeMount */
|
|
57
|
+
/** @typedef {import("./SandboxWorkspaceSpec.ts").SandboxWorkspaceSpec} SandboxWorkspaceSpec */
|
|
58
|
+
/** @typedef {import("./ScanFixVerifyProps.ts").ScanFixVerifyProps} ScanFixVerifyProps */
|
|
59
|
+
/** @typedef {import("@smithers-orchestrator/scorers/types").ScorersMap} ScorersMap */
|
|
60
|
+
/** @typedef {import("./SequenceProps.ts").SequenceProps} SequenceProps */
|
|
61
|
+
/**
|
|
62
|
+
* @template Schema
|
|
63
|
+
* @typedef {import("./SignalProps.ts").SignalProps<Schema>} SignalProps
|
|
64
|
+
*/
|
|
65
|
+
/** @typedef {import("./SourceDef.ts").SourceDef} SourceDef */
|
|
66
|
+
/** @typedef {import("./SubflowProps.ts").SubflowProps} SubflowProps */
|
|
67
|
+
/** @typedef {import("./SuperSmithersProps.ts").SuperSmithersProps} SuperSmithersProps */
|
|
68
|
+
/** @typedef {import("./SupervisorProps.ts").SupervisorProps} SupervisorProps */
|
|
69
|
+
/**
|
|
70
|
+
* @template Row
|
|
71
|
+
* @template Output
|
|
72
|
+
* @template D
|
|
73
|
+
* @typedef {import("./TaskProps.ts").TaskProps<Row, Output, D>} TaskProps
|
|
74
|
+
*/
|
|
75
|
+
/** @typedef {import("./TimerProps.ts").TimerProps} TimerProps */
|
|
76
|
+
/** @typedef {import("./TryCatchFinallyProps.ts").TryCatchFinallyProps} TryCatchFinallyProps */
|
|
77
|
+
/** @typedef {import("./WaitForEventProps.ts").WaitForEventProps} WaitForEventProps */
|
|
78
|
+
/** @typedef {import("./WorkflowProps.ts").WorkflowProps} WorkflowProps */
|
|
79
|
+
/** @typedef {import("./WorktreeProps.ts").WorktreeProps} WorktreeProps */
|
|
80
|
+
// @smithers-type-exports-end
|
|
81
|
+
|
|
82
|
+
export { Workflow } from "./Workflow.js";
|
|
83
|
+
export { Approval, approvalDecisionSchema, approvalRankingSchema, approvalSelectionSchema, } from "./Approval.js";
|
|
84
|
+
export { Task } from "./Task.js";
|
|
85
|
+
export { Sequence } from "./Sequence.js";
|
|
86
|
+
export { Parallel } from "./Parallel.js";
|
|
87
|
+
export { MergeQueue } from "./MergeQueue.js";
|
|
88
|
+
export { Branch } from "./Branch.js";
|
|
89
|
+
export { Loop, Ralph } from "./Ralph.js";
|
|
90
|
+
export { ContinueAsNew, continueAsNew } from "./ContinueAsNew.js";
|
|
91
|
+
export { Worktree } from "./Worktree.js";
|
|
92
|
+
// --- Composite Components ---
|
|
93
|
+
export { Kanban } from "./Kanban.js";
|
|
94
|
+
export { ClassifyAndRoute } from "./ClassifyAndRoute.js";
|
|
95
|
+
export { GatherAndSynthesize } from "./GatherAndSynthesize.js";
|
|
96
|
+
export { Panel } from "./Panel.js";
|
|
97
|
+
export { CheckSuite } from "./CheckSuite.js";
|
|
98
|
+
export { Debate } from "./Debate.js";
|
|
99
|
+
export { ReviewLoop } from "./ReviewLoop.js";
|
|
100
|
+
export { Optimizer } from "./Optimizer.js";
|
|
101
|
+
export { ContentPipeline } from "./ContentPipeline.js";
|
|
102
|
+
export { ApprovalGate } from "./ApprovalGate.js";
|
|
103
|
+
export { EscalationChain } from "./EscalationChain.js";
|
|
104
|
+
export { DecisionTable } from "./DecisionTable.js";
|
|
105
|
+
export { DriftDetector } from "./DriftDetector.js";
|
|
106
|
+
export { ScanFixVerify } from "./ScanFixVerify.js";
|
|
107
|
+
export { Poller } from "./Poller.js";
|
|
108
|
+
export { Supervisor } from "./Supervisor.js";
|
|
109
|
+
export { Runbook } from "./Runbook.js";
|
|
110
|
+
// --- Engine-Backed Primitives ---
|
|
111
|
+
export { Subflow } from "./Subflow.js";
|
|
112
|
+
export { Sandbox } from "./Sandbox.js";
|
|
113
|
+
export { WaitForEvent } from "./WaitForEvent.js";
|
|
114
|
+
export { Signal } from "./Signal.js";
|
|
115
|
+
export { Timer } from "./Timer.js";
|
|
116
|
+
export { HumanTask } from "./HumanTask.js";
|
|
117
|
+
export { Saga } from "./Saga.js";
|
|
118
|
+
export { TryCatchFinally } from "./TryCatchFinally.js";
|
|
119
|
+
// --- Core Enhancements ---
|
|
120
|
+
export { Aspects } from "./Aspects.js";
|
|
121
|
+
export { SuperSmithers } from "./SuperSmithers.js";
|