@cat-factory/contracts 0.194.0 → 0.196.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/dist/agent-presentation.d.ts +40 -0
- package/dist/agent-presentation.d.ts.map +1 -1
- package/dist/agent-presentation.js +44 -0
- package/dist/agent-presentation.js.map +1 -1
- package/dist/consensus.d.ts +149 -0
- package/dist/consensus.d.ts.map +1 -1
- package/dist/consensus.js +94 -1
- package/dist/consensus.js.map +1 -1
- package/dist/entities.d.ts +5 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +14 -0
- package/dist/errors.js.map +1 -1
- package/dist/execution.d.ts +10 -0
- package/dist/execution.d.ts.map +1 -1
- package/dist/requests.d.ts +10 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/routes/agent-runs.d.ts +10 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/bug-hunt.d.ts +10 -0
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/consensus.d.ts +252 -0
- package/dist/routes/consensus.d.ts.map +1 -1
- package/dist/routes/consensus.js +35 -7
- package/dist/routes/consensus.js.map +1 -1
- package/dist/routes/execution.d.ts +40 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +5 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +25 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +40 -0
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/visual-confirm.d.ts +15 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +74 -0
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +70 -0
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/snapshot.js +35 -0
- package/dist/snapshot.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,32 @@ import * as v from 'valibot';
|
|
|
2
2
|
/** The palette section an agent groups under. Mirrors the frontend `AGENT_CATEGORIES`. */
|
|
3
3
|
export declare const agentCategorySchema: v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>;
|
|
4
4
|
export type AgentCategory = v.InferOutput<typeof agentCategorySchema>;
|
|
5
|
+
/**
|
|
6
|
+
* The agent tiers, WIDEST LAST. The order is load-bearing: {@link agentTierVisibleAt}
|
|
7
|
+
* compares positions in this array, so a level includes every tier at or before it.
|
|
8
|
+
*
|
|
9
|
+
* - `basic` — the everyday delivery loop: the kinds a first pipeline is built from.
|
|
10
|
+
* - `intermediate` — reached for regularly, but not part of the minimal loop.
|
|
11
|
+
* - `advanced` — specialist kinds that answer a narrow need (and, as the widest
|
|
12
|
+
* level, the setting that shows the whole catalog).
|
|
13
|
+
*/
|
|
14
|
+
export declare const AGENT_TIERS: readonly ['basic', 'intermediate', 'advanced'];
|
|
15
|
+
export declare const agentTierSchema: v.PicklistSchema<readonly ["basic", "intermediate", "advanced"], undefined>;
|
|
16
|
+
export type AgentTier = v.InferOutput<typeof agentTierSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* The tier a kind that declares none is treated as. `intermediate` rather than `basic`,
|
|
19
|
+
* because the default view is the minimal loop and a kind nobody classified has not earned
|
|
20
|
+
* a place in it; and rather than `advanced`, because a deployment-registered kind was
|
|
21
|
+
* deliberately installed and should not sit at the bottom of the catalog by omission. A
|
|
22
|
+
* deployment that wants its kind in the default view declares `tier: 'basic'`.
|
|
23
|
+
*/
|
|
24
|
+
export declare const DEFAULT_AGENT_TIER: AgentTier;
|
|
25
|
+
/**
|
|
26
|
+
* Whether a kind of `tier` is shown at the selected `level`. Tiers are CUMULATIVE: `basic`
|
|
27
|
+
* shows only the basic kinds, `intermediate` adds the intermediate ones, and `advanced` —
|
|
28
|
+
* the widest level — shows everything. An absent tier is {@link DEFAULT_AGENT_TIER}.
|
|
29
|
+
*/
|
|
30
|
+
export declare function agentTierVisibleAt(tier: AgentTier | null | undefined, level: AgentTier): boolean;
|
|
5
31
|
/** Display metadata for one agent kind (the wire shape sent to the SPA). */
|
|
6
32
|
export declare const agentPresentationSchema: v.ObjectSchema<{
|
|
7
33
|
/** Human label, e.g. `Security Auditor`. */
|
|
@@ -19,6 +45,13 @@ export declare const agentPresentationSchema: v.ObjectSchema<{
|
|
|
19
45
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
20
46
|
/** Palette section; omitted ⇒ the kind is not a standalone palette block (e.g. a companion). */
|
|
21
47
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* How specialist this kind is ({@link AGENT_TIERS}). The palette and the model-preset
|
|
50
|
+
* override list show the selected tier and everything below it, so a kind declared
|
|
51
|
+
* `basic` is offered in the default view and one declared `advanced` only at the widest
|
|
52
|
+
* setting. Omitted ⇒ {@link DEFAULT_AGENT_TIER}.
|
|
53
|
+
*/
|
|
54
|
+
readonly tier: v.OptionalSchema<v.PicklistSchema<readonly ["basic", "intermediate", "advanced"], undefined>, undefined>;
|
|
22
55
|
/**
|
|
23
56
|
* Id of a dedicated result-view component to open instead of the generic prose panel.
|
|
24
57
|
* Either a canonical BUILT-IN id ({@link RESULT_VIEW_IDS}, e.g. `generic-structured`) OR
|
|
@@ -51,6 +84,13 @@ export declare const customAgentKindSchema: v.ObjectSchema<{
|
|
|
51
84
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
52
85
|
/** Palette section; omitted ⇒ the kind is not a standalone palette block (e.g. a companion). */
|
|
53
86
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* How specialist this kind is ({@link AGENT_TIERS}). The palette and the model-preset
|
|
89
|
+
* override list show the selected tier and everything below it, so a kind declared
|
|
90
|
+
* `basic` is offered in the default view and one declared `advanced` only at the widest
|
|
91
|
+
* setting. Omitted ⇒ {@link DEFAULT_AGENT_TIER}.
|
|
92
|
+
*/
|
|
93
|
+
readonly tier: v.OptionalSchema<v.PicklistSchema<readonly ["basic", "intermediate", "advanced"], undefined>, undefined>;
|
|
54
94
|
/**
|
|
55
95
|
* Id of a dedicated result-view component to open instead of the generic prose panel.
|
|
56
96
|
* Either a canonical BUILT-IN id ({@link RESULT_VIEW_IDS}, e.g. `generic-structured`) OR
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-presentation.d.ts","sourceRoot":"","sources":["../src/agent-presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,qFAO9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"agent-presentation.d.ts","sourceRoot":"","sources":["../src/agent-presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,qFAO9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAarE;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,YAAI,OAAO,EAAE,cAAc,EAAE,UAAU,CAAU,CAAA;AACzE,eAAO,MAAM,eAAe,6EAA0B,CAAA;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAA0B,CAAA;AAE3D;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAEhG;AAED,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;IAClC,4CAA4C;;IAE5C,2CAA2C;;IAE3C,uCAAuC;;IAEvC;;;;;OAKG;;IAEH,gGAAgG;;IAEhG;;;;;OAKG;;IAEH;;;;;;;;OAQG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;6DAC6D;AAC7D,eAAO,MAAM,qBAAqB;;;QArChC,4CAA4C;;QAE5C,2CAA2C;;QAE3C,uCAAuC;;QAEvC;;;;;WAKG;;QAEH,gGAAgG;;QAEhG;;;;;WAKG;;QAEH;;;;;;;;WAQG;;;IAUH,oEAAoE;;aAEpE,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -17,6 +17,43 @@ export const agentCategorySchema = v.picklist([
|
|
|
17
17
|
'docs',
|
|
18
18
|
'gates',
|
|
19
19
|
]);
|
|
20
|
+
// ---------------------------------------------------------------------------
|
|
21
|
+
// Agent TIER — how specialist a kind is, in three cumulative levels. Orthogonal to
|
|
22
|
+
// `category` (which section a kind groups under) and to the interface mode
|
|
23
|
+
// (`basic`/`advanced`, which is about the whole SPA): a tier says how far down the
|
|
24
|
+
// catalog a reader has to go before this kind is worth offering them.
|
|
25
|
+
//
|
|
26
|
+
// Two surfaces filter on it — the pipeline builder's palette and the model preset's
|
|
27
|
+
// per-agent override list — and both share the pure predicate below so they cannot
|
|
28
|
+
// drift, exactly as they share `purposeAllowsAgentCategory`.
|
|
29
|
+
// ---------------------------------------------------------------------------
|
|
30
|
+
/**
|
|
31
|
+
* The agent tiers, WIDEST LAST. The order is load-bearing: {@link agentTierVisibleAt}
|
|
32
|
+
* compares positions in this array, so a level includes every tier at or before it.
|
|
33
|
+
*
|
|
34
|
+
* - `basic` — the everyday delivery loop: the kinds a first pipeline is built from.
|
|
35
|
+
* - `intermediate` — reached for regularly, but not part of the minimal loop.
|
|
36
|
+
* - `advanced` — specialist kinds that answer a narrow need (and, as the widest
|
|
37
|
+
* level, the setting that shows the whole catalog).
|
|
38
|
+
*/
|
|
39
|
+
export const AGENT_TIERS = ['basic', 'intermediate', 'advanced'];
|
|
40
|
+
export const agentTierSchema = v.picklist(AGENT_TIERS);
|
|
41
|
+
/**
|
|
42
|
+
* The tier a kind that declares none is treated as. `intermediate` rather than `basic`,
|
|
43
|
+
* because the default view is the minimal loop and a kind nobody classified has not earned
|
|
44
|
+
* a place in it; and rather than `advanced`, because a deployment-registered kind was
|
|
45
|
+
* deliberately installed and should not sit at the bottom of the catalog by omission. A
|
|
46
|
+
* deployment that wants its kind in the default view declares `tier: 'basic'`.
|
|
47
|
+
*/
|
|
48
|
+
export const DEFAULT_AGENT_TIER = 'intermediate';
|
|
49
|
+
/**
|
|
50
|
+
* Whether a kind of `tier` is shown at the selected `level`. Tiers are CUMULATIVE: `basic`
|
|
51
|
+
* shows only the basic kinds, `intermediate` adds the intermediate ones, and `advanced` —
|
|
52
|
+
* the widest level — shows everything. An absent tier is {@link DEFAULT_AGENT_TIER}.
|
|
53
|
+
*/
|
|
54
|
+
export function agentTierVisibleAt(tier, level) {
|
|
55
|
+
return AGENT_TIERS.indexOf(tier ?? DEFAULT_AGENT_TIER) <= AGENT_TIERS.indexOf(level);
|
|
56
|
+
}
|
|
20
57
|
/** Display metadata for one agent kind (the wire shape sent to the SPA). */
|
|
21
58
|
export const agentPresentationSchema = v.object({
|
|
22
59
|
/** Human label, e.g. `Security Auditor`. */
|
|
@@ -34,6 +71,13 @@ export const agentPresentationSchema = v.object({
|
|
|
34
71
|
description: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(500)),
|
|
35
72
|
/** Palette section; omitted ⇒ the kind is not a standalone palette block (e.g. a companion). */
|
|
36
73
|
category: v.optional(agentCategorySchema),
|
|
74
|
+
/**
|
|
75
|
+
* How specialist this kind is ({@link AGENT_TIERS}). The palette and the model-preset
|
|
76
|
+
* override list show the selected tier and everything below it, so a kind declared
|
|
77
|
+
* `basic` is offered in the default view and one declared `advanced` only at the widest
|
|
78
|
+
* setting. Omitted ⇒ {@link DEFAULT_AGENT_TIER}.
|
|
79
|
+
*/
|
|
80
|
+
tier: v.optional(agentTierSchema),
|
|
37
81
|
/**
|
|
38
82
|
* Id of a dedicated result-view component to open instead of the generic prose panel.
|
|
39
83
|
* Either a canonical BUILT-IN id ({@link RESULT_VIEW_IDS}, e.g. `generic-structured`) OR
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-presentation.js","sourceRoot":"","sources":["../src/agent-presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,8EAA8E;AAC9E,gFAAgF;AAChF,qFAAqF;AACrF,uFAAuF;AACvF,sFAAsF;AACtF,mFAAmF;AACnF,8EAA8E;AAE9E,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC5C,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;CACR,CAAC,CAAA;AAGF,4EAA4E;AAC5E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,4CAA4C;IAC5C,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EA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CAAC,CAAC;IACpE,2CAA2C;IAC3C,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC1D,uCAAuC;IACvC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC1D;;;;;OAKG;IACH,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3E,gGAAgG;IAChG,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACzC;;;;;OAKG;IACH,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC;IACjC;;;;;;;;OAQG;IACH,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC;CACnF,CAAC,CAAA;AAGF;6DAC6D;AAC7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,uBAAuB;IACrC,oEAAoE;IACpE,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAA"}
|
package/dist/consensus.d.ts
CHANGED
|
@@ -59,6 +59,16 @@ export type StepGating = v.InferOutput<typeof stepGatingSchema>;
|
|
|
59
59
|
* The consensus configuration stored on a pipeline step (set in the builder for
|
|
60
60
|
* a step whose agent kind carries a consensus trait). When `enabled` is false
|
|
61
61
|
* the step runs as the standard agent.
|
|
62
|
+
*
|
|
63
|
+
* A step declares its panel in one of two ways:
|
|
64
|
+
*
|
|
65
|
+
* - **inline** — `participants` (plus `strategy`/`rounds`/`synthesizerModelId`/`gating`)
|
|
66
|
+
* authored on the step itself. One panel, one bar.
|
|
67
|
+
* - **by GROUP** — {@link groupIds} naming entries of the workspace's reusable
|
|
68
|
+
* {@link consensusGroupSchema} library, each carrying its OWN estimate bar. At dispatch the
|
|
69
|
+
* engine picks the most demanding group the task's estimate clears and materialises its
|
|
70
|
+
* panel onto this config; none clearing ⇒ the standard single-actor agent runs. That is what
|
|
71
|
+
* makes "a light duo above 0.4 risk, the full panel above 0.8" one step rather than three.
|
|
62
72
|
*/
|
|
63
73
|
export declare const consensusStepConfigSchema: v.ObjectSchema<{
|
|
64
74
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -84,8 +94,138 @@ export declare const consensusStepConfigSchema: v.ObjectSchema<{
|
|
|
84
94
|
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
85
95
|
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
86
96
|
}, undefined>, undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Ids of the workspace consensus groups this step may escalate to. Order is NOT precedence —
|
|
99
|
+
* the engine ranks the candidates by the bar each one sets, so adding a group never depends
|
|
100
|
+
* on where it lands in the array. Non-empty ⇒ the inline `participants` are ignored and the
|
|
101
|
+
* selected group's panel is used instead.
|
|
102
|
+
*/
|
|
103
|
+
readonly groupIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* The group the engine SELECTED for this dispatch, stamped onto the run's copy of the config
|
|
106
|
+
* when {@link groupIds} resolved. Never authored in the builder — it is the record of which
|
|
107
|
+
* tier fired, carried through to the session transcript so a reviewer can see why five models
|
|
108
|
+
* ran. Absent on an inline-participant step.
|
|
109
|
+
*/
|
|
110
|
+
readonly selectedGroup: v.OptionalSchema<v.ObjectSchema<{
|
|
111
|
+
readonly id: v.StringSchema<undefined>;
|
|
112
|
+
readonly name: v.StringSchema<undefined>;
|
|
113
|
+
}, undefined>, undefined>;
|
|
87
114
|
}, undefined>;
|
|
88
115
|
export type ConsensusStepConfig = v.InferOutput<typeof consensusStepConfigSchema>;
|
|
116
|
+
/**
|
|
117
|
+
* A named, reusable consensus panel ("model group") in a workspace's library: the
|
|
118
|
+
* participants (roles + framings + models), the strategy that runs them, the synthesizer, and
|
|
119
|
+
* the ESTIMATE BAR a task must clear for this group to be selected.
|
|
120
|
+
*
|
|
121
|
+
* The bar is what makes a library of groups more than a snippet store. A step names a SET of
|
|
122
|
+
* groups; each group's {@link ConsensusGroup.gating} declares how heavy a task has to be before
|
|
123
|
+
* it is worth that panel's cost, and the engine picks the most demanding one the task clears.
|
|
124
|
+
* A group whose gating is disabled is the unconditional floor — it applies to every task the
|
|
125
|
+
* step runs on, which is how "always at least a two-model review" is expressed.
|
|
126
|
+
*/
|
|
127
|
+
export declare const consensusGroupSchema: v.ObjectSchema<{
|
|
128
|
+
readonly id: v.StringSchema<undefined>;
|
|
129
|
+
readonly name: v.StringSchema<undefined>;
|
|
130
|
+
/** Optional prose note on what this panel is for, shown in the pickers. */
|
|
131
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
132
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
133
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
134
|
+
readonly id: v.StringSchema<undefined>;
|
|
135
|
+
/** Human-facing role label, e.g. "Pragmatist", "Security reviewer". */
|
|
136
|
+
readonly role: v.StringSchema<undefined>;
|
|
137
|
+
/** Extra perspective framing folded into this participant's system prompt. */
|
|
138
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
139
|
+
/** Model catalog id this participant runs on; absent ⇒ step/block default. */
|
|
140
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
141
|
+
}, undefined>, undefined>;
|
|
142
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
143
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* The estimate bar this group sets. `enabled: false` ⇒ no bar (the group always applies).
|
|
146
|
+
* Required — a group in a tiered set must state where it sits, and the disabled form says
|
|
147
|
+
* "at the bottom" explicitly rather than by omission.
|
|
148
|
+
*/
|
|
149
|
+
readonly gating: v.ObjectSchema<{
|
|
150
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
151
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
152
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
153
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
154
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
155
|
+
}, undefined>;
|
|
156
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
157
|
+
}, undefined>;
|
|
158
|
+
export type ConsensusGroup = v.InferOutput<typeof consensusGroupSchema>;
|
|
159
|
+
/** Create a consensus group in a workspace's library. */
|
|
160
|
+
export declare const createConsensusGroupSchema: v.ObjectSchema<{
|
|
161
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>;
|
|
162
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
163
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
164
|
+
readonly participants: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
165
|
+
readonly id: v.StringSchema<undefined>;
|
|
166
|
+
/** Human-facing role label, e.g. "Pragmatist", "Security reviewer". */
|
|
167
|
+
readonly role: v.StringSchema<undefined>;
|
|
168
|
+
/** Extra perspective framing folded into this participant's system prompt. */
|
|
169
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
170
|
+
/** Model catalog id this participant runs on; absent ⇒ step/block default. */
|
|
171
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
172
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
173
|
+
id: string;
|
|
174
|
+
role: string;
|
|
175
|
+
systemFraming?: string | undefined;
|
|
176
|
+
modelId?: string | undefined;
|
|
177
|
+
}[], 2, undefined>, v.MaxLengthAction<{
|
|
178
|
+
id: string;
|
|
179
|
+
role: string;
|
|
180
|
+
systemFraming?: string | undefined;
|
|
181
|
+
modelId?: string | undefined;
|
|
182
|
+
}[], 8, undefined>]>;
|
|
183
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
184
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
185
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
186
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
187
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
188
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
189
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
190
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
191
|
+
}, undefined>, undefined>;
|
|
192
|
+
}, undefined>;
|
|
193
|
+
export type CreateConsensusGroupInput = v.InferOutput<typeof createConsensusGroupSchema>;
|
|
194
|
+
/** Patch a consensus group (all fields optional; arrays/objects replace wholesale). */
|
|
195
|
+
export declare const updateConsensusGroupSchema: v.ObjectSchema<{
|
|
196
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 60, undefined>]>, undefined>;
|
|
197
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
198
|
+
readonly strategy: v.OptionalSchema<v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>, undefined>;
|
|
199
|
+
readonly participants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
200
|
+
readonly id: v.StringSchema<undefined>;
|
|
201
|
+
/** Human-facing role label, e.g. "Pragmatist", "Security reviewer". */
|
|
202
|
+
readonly role: v.StringSchema<undefined>;
|
|
203
|
+
/** Extra perspective framing folded into this participant's system prompt. */
|
|
204
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
205
|
+
/** Model catalog id this participant runs on; absent ⇒ step/block default. */
|
|
206
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
207
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
208
|
+
id: string;
|
|
209
|
+
role: string;
|
|
210
|
+
systemFraming?: string | undefined;
|
|
211
|
+
modelId?: string | undefined;
|
|
212
|
+
}[], 2, undefined>, v.MaxLengthAction<{
|
|
213
|
+
id: string;
|
|
214
|
+
role: string;
|
|
215
|
+
systemFraming?: string | undefined;
|
|
216
|
+
modelId?: string | undefined;
|
|
217
|
+
}[], 8, undefined>]>, undefined>;
|
|
218
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
219
|
+
readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
|
|
220
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
221
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
222
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
223
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
224
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
225
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
226
|
+
}, undefined>, undefined>;
|
|
227
|
+
}, undefined>;
|
|
228
|
+
export type UpdateConsensusGroupInput = v.InferOutput<typeof updateConsensusGroupSchema>;
|
|
89
229
|
/**
|
|
90
230
|
* A `task-estimator` agent's structured triage of a task along three axes
|
|
91
231
|
* (each 0..1; higher = more complex / riskier / higher blast-radius). Produced
|
|
@@ -154,6 +294,15 @@ export declare const consensusSessionSchema: v.ObjectSchema<{
|
|
|
154
294
|
readonly agentKind: v.StringSchema<undefined>;
|
|
155
295
|
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
156
296
|
readonly status: v.PicklistSchema<["running", "synthesizing", "done", "failed"], undefined>;
|
|
297
|
+
/**
|
|
298
|
+
* The workspace consensus group whose panel ran, when the step resolved one from its
|
|
299
|
+
* {@link ConsensusStepConfig.groupIds} tier set. Null for an inline-participant step. Stored
|
|
300
|
+
* on the transcript rather than re-derived, because the library entry can be edited or
|
|
301
|
+
* deleted after the run and the session must still say which panel actually fired.
|
|
302
|
+
*/
|
|
303
|
+
readonly groupId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
304
|
+
/** The selected group's name AS IT WAS at dispatch (the library row may since have changed). */
|
|
305
|
+
readonly groupName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
157
306
|
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
158
307
|
readonly id: v.StringSchema<undefined>;
|
|
159
308
|
/** Human-facing role label, e.g. "Pragmatist", "Security reviewer". */
|
package/dist/consensus.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consensus.d.ts","sourceRoot":"","sources":["../src/consensus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CA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ema),
|
|
68
68
|
onMissingEstimate: v.optional(v.picklist(['run', 'skip']), 'run'),
|
|
69
69
|
});
|
|
70
|
+
const consensusRoundsSchema = v.pipe(v.number(), v.integer(), v.minValue(1), v.maxValue(5));
|
|
70
71
|
/**
|
|
71
72
|
* The consensus configuration stored on a pipeline step (set in the builder for
|
|
72
73
|
* a step whose agent kind carries a consensus trait). When `enabled` is false
|
|
73
74
|
* the step runs as the standard agent.
|
|
75
|
+
*
|
|
76
|
+
* A step declares its panel in one of two ways:
|
|
77
|
+
*
|
|
78
|
+
* - **inline** — `participants` (plus `strategy`/`rounds`/`synthesizerModelId`/`gating`)
|
|
79
|
+
* authored on the step itself. One panel, one bar.
|
|
80
|
+
* - **by GROUP** — {@link groupIds} naming entries of the workspace's reusable
|
|
81
|
+
* {@link consensusGroupSchema} library, each carrying its OWN estimate bar. At dispatch the
|
|
82
|
+
* engine picks the most demanding group the task's estimate clears and materialises its
|
|
83
|
+
* panel onto this config; none clearing ⇒ the standard single-actor agent runs. That is what
|
|
84
|
+
* makes "a light duo above 0.4 risk, the full panel above 0.8" one step rather than three.
|
|
74
85
|
*/
|
|
75
86
|
export const consensusStepConfigSchema = v.object({
|
|
76
87
|
enabled: v.boolean(),
|
|
@@ -79,9 +90,82 @@ export const consensusStepConfigSchema = v.object({
|
|
|
79
90
|
/** Model that runs the neutral synthesis / judging pass; absent ⇒ step default. */
|
|
80
91
|
synthesizerModelId: v.optional(v.string()),
|
|
81
92
|
/** Debate rounds (1..5); ignored by non-debate strategies. Default applied by the engine. */
|
|
82
|
-
rounds: v.optional(
|
|
93
|
+
rounds: v.optional(consensusRoundsSchema),
|
|
83
94
|
/** Optional gating of the process on the task estimate; absent ⇒ always run when enabled. */
|
|
84
95
|
gating: v.optional(consensusGatingSchema),
|
|
96
|
+
/**
|
|
97
|
+
* Ids of the workspace consensus groups this step may escalate to. Order is NOT precedence —
|
|
98
|
+
* the engine ranks the candidates by the bar each one sets, so adding a group never depends
|
|
99
|
+
* on where it lands in the array. Non-empty ⇒ the inline `participants` are ignored and the
|
|
100
|
+
* selected group's panel is used instead.
|
|
101
|
+
*/
|
|
102
|
+
groupIds: v.optional(v.array(v.string())),
|
|
103
|
+
/**
|
|
104
|
+
* The group the engine SELECTED for this dispatch, stamped onto the run's copy of the config
|
|
105
|
+
* when {@link groupIds} resolved. Never authored in the builder — it is the record of which
|
|
106
|
+
* tier fired, carried through to the session transcript so a reviewer can see why five models
|
|
107
|
+
* ran. Absent on an inline-participant step.
|
|
108
|
+
*/
|
|
109
|
+
selectedGroup: v.optional(v.object({ id: v.string(), name: v.string() })),
|
|
110
|
+
});
|
|
111
|
+
// ---- The workspace consensus-group library --------------------------------
|
|
112
|
+
/**
|
|
113
|
+
* A named, reusable consensus panel ("model group") in a workspace's library: the
|
|
114
|
+
* participants (roles + framings + models), the strategy that runs them, the synthesizer, and
|
|
115
|
+
* the ESTIMATE BAR a task must clear for this group to be selected.
|
|
116
|
+
*
|
|
117
|
+
* The bar is what makes a library of groups more than a snippet store. A step names a SET of
|
|
118
|
+
* groups; each group's {@link ConsensusGroup.gating} declares how heavy a task has to be before
|
|
119
|
+
* it is worth that panel's cost, and the engine picks the most demanding one the task clears.
|
|
120
|
+
* A group whose gating is disabled is the unconditional floor — it applies to every task the
|
|
121
|
+
* step runs on, which is how "always at least a two-model review" is expressed.
|
|
122
|
+
*/
|
|
123
|
+
export const consensusGroupSchema = v.object({
|
|
124
|
+
id: v.string(),
|
|
125
|
+
name: v.string(),
|
|
126
|
+
/** Optional prose note on what this panel is for, shown in the pickers. */
|
|
127
|
+
description: v.optional(v.string()),
|
|
128
|
+
strategy: consensusStrategySchema,
|
|
129
|
+
participants: v.array(consensusParticipantSchema),
|
|
130
|
+
synthesizerModelId: v.optional(v.string()),
|
|
131
|
+
rounds: v.optional(consensusRoundsSchema),
|
|
132
|
+
/**
|
|
133
|
+
* The estimate bar this group sets. `enabled: false` ⇒ no bar (the group always applies).
|
|
134
|
+
* Required — a group in a tiered set must state where it sits, and the disabled form says
|
|
135
|
+
* "at the bottom" explicitly rather than by omission.
|
|
136
|
+
*/
|
|
137
|
+
gating: consensusGatingSchema,
|
|
138
|
+
createdAt: v.number(),
|
|
139
|
+
});
|
|
140
|
+
// ---- Request bodies -------------------------------------------------------
|
|
141
|
+
const groupNameSchema = v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(60));
|
|
142
|
+
const groupDescriptionSchema = v.pipe(v.string(), v.trim(), v.maxLength(400));
|
|
143
|
+
/**
|
|
144
|
+
* A panel needs at least two distinct voices to be a panel at all (the executor's own
|
|
145
|
+
* `participants.length < 2` backstop would otherwise silently degrade the step to the standard
|
|
146
|
+
* agent — a refusal at the write boundary is the one a user can act on). Capped so one group
|
|
147
|
+
* cannot fan a single step into an unbounded number of billed model calls.
|
|
148
|
+
*/
|
|
149
|
+
const groupParticipantsSchema = v.pipe(v.array(consensusParticipantSchema), v.minLength(2), v.maxLength(8));
|
|
150
|
+
/** Create a consensus group in a workspace's library. */
|
|
151
|
+
export const createConsensusGroupSchema = v.object({
|
|
152
|
+
name: groupNameSchema,
|
|
153
|
+
description: v.optional(groupDescriptionSchema),
|
|
154
|
+
strategy: consensusStrategySchema,
|
|
155
|
+
participants: groupParticipantsSchema,
|
|
156
|
+
synthesizerModelId: v.optional(v.string()),
|
|
157
|
+
rounds: v.optional(consensusRoundsSchema),
|
|
158
|
+
gating: v.optional(consensusGatingSchema),
|
|
159
|
+
});
|
|
160
|
+
/** Patch a consensus group (all fields optional; arrays/objects replace wholesale). */
|
|
161
|
+
export const updateConsensusGroupSchema = v.object({
|
|
162
|
+
name: v.optional(groupNameSchema),
|
|
163
|
+
description: v.optional(groupDescriptionSchema),
|
|
164
|
+
strategy: v.optional(consensusStrategySchema),
|
|
165
|
+
participants: v.optional(groupParticipantsSchema),
|
|
166
|
+
synthesizerModelId: v.optional(v.string()),
|
|
167
|
+
rounds: v.optional(consensusRoundsSchema),
|
|
168
|
+
gating: v.optional(consensusGatingSchema),
|
|
85
169
|
});
|
|
86
170
|
/**
|
|
87
171
|
* A `task-estimator` agent's structured triage of a task along three axes
|
|
@@ -140,6 +224,15 @@ export const consensusSessionSchema = v.object({
|
|
|
140
224
|
agentKind: v.string(),
|
|
141
225
|
strategy: consensusStrategySchema,
|
|
142
226
|
status: consensusSessionStatusSchema,
|
|
227
|
+
/**
|
|
228
|
+
* The workspace consensus group whose panel ran, when the step resolved one from its
|
|
229
|
+
* {@link ConsensusStepConfig.groupIds} tier set. Null for an inline-participant step. Stored
|
|
230
|
+
* on the transcript rather than re-derived, because the library entry can be edited or
|
|
231
|
+
* deleted after the run and the session must still say which panel actually fired.
|
|
232
|
+
*/
|
|
233
|
+
groupId: v.optional(v.nullable(v.string())),
|
|
234
|
+
/** The selected group's name AS IT WAS at dispatch (the library row may since have changed). */
|
|
235
|
+
groupName: v.optional(v.nullable(v.string())),
|
|
143
236
|
participants: v.array(consensusParticipantSchema),
|
|
144
237
|
rounds: v.array(consensusRoundSchema),
|
|
145
238
|
/** The neutral synthesis / winning result; null until the synthesis pass completes. */
|
package/dist/consensus.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consensus.js","sourceRoot":"","sources":["../src/consensus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,0CAA0C;AAC1C,EAAE;AACF,8EAA8E;AAC9E,gFAAgF;AAChF,4EAA4E;AAC5E,6EAA6E;AAC7E,+EAA+E;AAC/E,4EAA4E;AAC5E,gEAAgE;AAChE,EAAE;AACF,6EAA6E;AAC7E,8EAA8E;AAC9E,iFAAiF;AACjF,8EAA8E;AAE9E,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;AAEpE,mFAAmF;AACnF,MA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AAC,MAAM,EAAE,CAAC,CAAC;IAC9C,oEAAoE;IACpE,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACxC,gDAAgD;IAChD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA;AAGF,0FAA0F;AAC1F,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,CAAC,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAED,mFAAmF;AACnF,MAAM,UAAU,wBAAwB,CAAC,KAAc;IACrD,OAAO,CAAC,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAA;AAClD,CAAC"}
|
package/dist/entities.d.ts
CHANGED
|
@@ -1175,6 +1175,11 @@ export declare const pipelineSchema: v.ObjectSchema<{
|
|
|
1175
1175
|
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1176
1176
|
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
1177
1177
|
}, undefined>, undefined>;
|
|
1178
|
+
readonly groupIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1179
|
+
readonly selectedGroup: v.OptionalSchema<v.ObjectSchema<{
|
|
1180
|
+
readonly id: v.StringSchema<undefined>;
|
|
1181
|
+
readonly name: v.StringSchema<undefined>;
|
|
1182
|
+
}, undefined>, undefined>;
|
|
1178
1183
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
1179
1184
|
/**
|
|
1180
1185
|
* Per-step gating, parallel to {@link agentKinds}: when `gating[i]` is set and its
|
package/dist/entities.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../src/entities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA+B5B;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;IAC/B,4EAA4E;;IAE5E,sEAAsE;;IAEtE,gEAAgE;;aAEhE,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;IAChC,wDAAwD;;IAExD,iFAAiF;;IAEjF,sFAAsF;;QAtBtF,4EAA4E;;QAE5E,sEAAsE;;QAEtE,gEAAgE;;;aAoBhE,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB;IAC9B;;;;;OAKG;;IAEH,wDAAwD;;IAExD,yCAAyC;;IAEzC,kFAAkF;;IAElF;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAczD;AASD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;IAC9B,2DAA2D;;IAE3D,qFAAqF;;aAErF,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,SAAS,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OAAO,gBAAgB,CAAC,CAAA;AAE/D;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;IAClC,oGAAoG;;IAEpG,yGAAyG;;;;;;IAMzG,oFAAoF;;IAEpF,8CAA8C;;aAE9C,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;IAC5B,2EAA2E;;IAE3E,wDAAwD;;;QAvBxD,oGAAoG;;QAEpG,yGAAyG;;;;;;QAMzG,oFAAoF;;QAEpF,8CAA8C;;;aAgB9C,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* type for `ConflictError`, and the SPA keys an exhaustive `Record<ConflictReason, …>` of
|
|
9
9
|
* localized titles off it — adding a value without a title trips the frontend typecheck.
|
|
10
10
|
*/
|
|
11
|
-
export declare const CONFLICT_REASONS: readonly ['providers_unconfigured', 'preset_unsatisfiable', 'dependencies_unmet', 'task_limit_reached', 'tester_infra_unsupported', 'binary_storage_unconfigured', 'agent_backend_unconfigured', 'run_not_retryable', 'no_pr_to_merge', 'github_not_connected', 'bootstrap_not_retryable', 'bootstrap_reference_missing', 'provision_type_unhandled', 'visual_pipeline_no_frontend', 'model_policy_blocked', 'model_policy_unsupported', 'deployer_required_before_tester', 'deployer_service_provisioning_incomplete', 'deployer_connection_test_failed', 'env_test_not_a_frame', 'env_test_infraless', 'env_test_not_provisionable', 'env_test_no_vcs', 'env_test_connection_failed', 'review_debt_warn', 'review_debt_blocked', 'prompt_revision_conflict'];
|
|
11
|
+
export declare const CONFLICT_REASONS: readonly ['providers_unconfigured', 'preset_unsatisfiable', 'dependencies_unmet', 'task_limit_reached', 'tester_infra_unsupported', 'binary_storage_unconfigured', 'agent_backend_unconfigured', 'run_not_retryable', 'no_pr_to_merge', 'github_not_connected', 'bootstrap_not_retryable', 'bootstrap_reference_missing', 'provision_type_unhandled', 'visual_pipeline_no_frontend', 'model_policy_blocked', 'model_policy_unsupported', 'deployer_required_before_tester', 'deployer_service_provisioning_incomplete', 'deployer_connection_test_failed', 'env_test_not_a_frame', 'env_test_infraless', 'env_test_not_provisionable', 'env_test_no_vcs', 'env_test_connection_failed', 'review_debt_warn', 'review_debt_blocked', 'prompt_revision_conflict', 'pipeline_schedule_attached', 'pipeline_schedule_requires_recurring', 'pipeline_schedule_intake_unconfigured'];
|
|
12
12
|
export type ConflictReason = (typeof CONFLICT_REASONS)[number];
|
|
13
13
|
/**
|
|
14
14
|
* Machine-readable reasons a `review` task's target pull request is refused at creation
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,YAC3B,wBAAwB,EAKxB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,EAG7B,0BAA0B,EAG1B,6BAA6B,EAG7B,sBAAsB,EAGtB,0BAA0B,EAI1B,iCAAiC,EAKjC,0CAA0C,EAK1C,iCAAiC,EAGjC,sBAAsB,EAGtB,oBAAoB,EAGpB,4BAA4B,EAG5B,iBAAiB,EAMjB,4BAA4B,EAK5B,kBAAkB,EAIlB,qBAAqB,EAKrB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,YAC3B,wBAAwB,EAKxB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,EAG7B,0BAA0B,EAG1B,6BAA6B,EAG7B,sBAAsB,EAGtB,0BAA0B,EAI1B,iCAAiC,EAKjC,0CAA0C,EAK1C,iCAAiC,EAGjC,sBAAsB,EAGtB,oBAAoB,EAGpB,4BAA4B,EAG5B,iBAAiB,EAMjB,4BAA4B,EAK5B,kBAAkB,EAIlB,qBAAqB,EAKrB,0BAA0B,EAO1B,4BAA4B,EAG5B,sCAAsC,EAItC,uCAAuC,CAC/B,CAAA;AAEV,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE9D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,YAAI,qBAAqB,EAAE,yBAAyB,CAAU,CAAA;AAEhG,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
package/dist/errors.js
CHANGED
|
@@ -84,6 +84,20 @@ export const CONFLICT_REASONS = [
|
|
|
84
84
|
// merged last-write-wins — the SPA reloads the log and asks the user to re-apply their edit on
|
|
85
85
|
// top of what landed, instead of silently discarding one of the two prompts.
|
|
86
86
|
'prompt_revision_conflict',
|
|
87
|
+
// The three ways a recurring SCHEDULE blocks a pipeline edit. Each fire resolves its pipeline by
|
|
88
|
+
// id and reads its config, so all three would break the schedule silently — nobody is watching a
|
|
89
|
+
// recurring run that simply stops producing work, which is why they are refusals and not warnings.
|
|
90
|
+
// The remedy differs per case, hence three reasons rather than one:
|
|
91
|
+
// - `pipeline_schedule_attached` — DELETING a pipeline a schedule still points at (every future
|
|
92
|
+
// fire would fail to resolve it). Detach the schedule, then delete.
|
|
93
|
+
'pipeline_schedule_attached',
|
|
94
|
+
// - `pipeline_schedule_requires_recurring` — making a pipeline one-off-only while a schedule
|
|
95
|
+
// still points at it (each fire throws at origin='recurring').
|
|
96
|
+
'pipeline_schedule_requires_recurring',
|
|
97
|
+
// - `pipeline_schedule_intake_unconfigured` — enabling a `bug-intake` step on a pipeline whose
|
|
98
|
+
// attached schedule carries no `issueIntake` config, so every fire would no-op. Configure
|
|
99
|
+
// issue intake ON THE SCHEDULE first — the remedy is a different panel from the two above.
|
|
100
|
+
'pipeline_schedule_intake_unconfigured',
|
|
87
101
|
];
|
|
88
102
|
/**
|
|
89
103
|
* Machine-readable reasons a `review` task's target pull request is refused at creation
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,wBAAwB;IACxB,8FAA8F;IAC9F,4FAA4F;IAC5F,+FAA+F;IAC/F,8EAA8E;IAC9E,sBAAsB;IACtB,oBAAoB;IACpB,oBAAoB;IACpB,0BAA0B;IAC1B,6BAA6B;IAC7B,4BAA4B;IAC5B,mBAAmB;IACnB,gBAAgB;IAChB,sBAAsB;IACtB,yBAAyB;IACzB,6BAA6B;IAC7B,kFAAkF;IAClF,kFAAkF;IAClF,0BAA0B;IAC1B,4FAA4F;IAC5F,uFAAuF;IACvF,6BAA6B;IAC7B,oFAAoF;IACpF,gFAAgF;IAChF,sBAAsB;IACtB,yFAAyF;IACzF,sFAAsF;IACtF,0BAA0B;IAC1B,8FAA8F;IAC9F,8FAA8F;IAC9F,8FAA8F;IAC9F,iCAAiC;IACjC,0FAA0F;IAC1F,8FAA8F;IAC9F,+FAA+F;IAC/F,iGAAiG;IACjG,0CAA0C;IAC1C,kGAAkG;IAClG,gGAAgG;IAChG,iGAAiG;IACjG,2FAA2F;IAC3F,iCAAiC;IACjC,yFAAyF;IACzF,qFAAqF;IACrF,sBAAsB;IACtB,uFAAuF;IAC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,sBAAsB;IACtB,uFAAuF;IACvF,kEAAkE;IAClE,oBAAoB;IACpB,6FAA6F;IAC7F,4FAA4F;IAC5F,4BAA4B;IAC5B,oFAAoF;IACpF,qCAAqC;IACrC,iBAAiB;IACjB,iGAAiG;IACjG,+FAA+F;IAC/F,6FAA6F;IAC7F,wEAAwE;IACxE,2CAA2C;IAC3C,4BAA4B;IAC5B,0FAA0F;IAC1F,4FAA4F;IAC5F,6FAA6F;IAC7F,wFAAwF;IACxF,kBAAkB;IAClB,+FAA+F;IAC/F,+FAA+F;IAC/F,wEAAwE;IACxE,qBAAqB;IACrB,8FAA8F;IAC9F,4FAA4F;IAC5F,+FAA+F;IAC/F,6EAA6E;IAC7E,0BAA0B;IAC1B,iGAAiG;IACjG,iGAAiG;IACjG,mGAAmG;IACnG,oEAAoE;IACpE,iGAAiG;IACjG,uEAAuE;IACvE,4BAA4B;IAC5B,8FAA8F;IAC9F,kEAAkE;IAClE,sCAAsC;IACtC,gGAAgG;IAChG,6FAA6F;IAC7F,8FAA8F;IAC9F,uCAAuC;CAC/B,CAAA;AAIV;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,qBAAqB,EAAE,yBAAyB,CAAU,CAAA"}
|
package/dist/execution.d.ts
CHANGED
|
@@ -1670,6 +1670,11 @@ export declare const pipelineStepSchema: v.ObjectSchema<{
|
|
|
1670
1670
|
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1671
1671
|
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
1672
1672
|
}, undefined>, undefined>;
|
|
1673
|
+
readonly groupIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1674
|
+
readonly selectedGroup: v.OptionalSchema<v.ObjectSchema<{
|
|
1675
|
+
readonly id: v.StringSchema<undefined>;
|
|
1676
|
+
readonly name: v.StringSchema<undefined>;
|
|
1677
|
+
}, undefined>, undefined>;
|
|
1673
1678
|
}, undefined>, undefined>, undefined>;
|
|
1674
1679
|
/**
|
|
1675
1680
|
* Estimate-based gating for this step, copied from the pipeline's `gating` array at
|
|
@@ -3150,6 +3155,11 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
|
|
|
3150
3155
|
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
3151
3156
|
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
3152
3157
|
}, undefined>, undefined>;
|
|
3158
|
+
readonly groupIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3159
|
+
readonly selectedGroup: v.OptionalSchema<v.ObjectSchema<{
|
|
3160
|
+
readonly id: v.StringSchema<undefined>;
|
|
3161
|
+
readonly name: v.StringSchema<undefined>;
|
|
3162
|
+
}, undefined>, undefined>;
|
|
3153
3163
|
}, undefined>, undefined>, undefined>;
|
|
3154
3164
|
/**
|
|
3155
3165
|
* Estimate-based gating for this step, copied from the pipeline's `gating` array at
|