@cat-factory/contracts 0.6.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/dist/accounts.d.ts +103 -0
- package/dist/accounts.d.ts.map +1 -0
- package/dist/accounts.js +102 -0
- package/dist/accounts.js.map +1 -0
- package/dist/agent-config.d.ts +77 -0
- package/dist/agent-config.d.ts.map +1 -0
- package/dist/agent-config.js +78 -0
- package/dist/agent-config.js.map +1 -0
- package/dist/api-keys.d.ts +44 -0
- package/dist/api-keys.d.ts.map +1 -0
- package/dist/api-keys.js +49 -0
- package/dist/api-keys.js.map +1 -0
- package/dist/auth.d.ts +24 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +15 -0
- package/dist/auth.js.map +1 -0
- package/dist/board-scan.d.ts +89 -0
- package/dist/board-scan.d.ts.map +1 -0
- package/dist/board-scan.js +122 -0
- package/dist/board-scan.js.map +1 -0
- package/dist/bootstrap.d.ts +168 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap.js +148 -0
- package/dist/bootstrap.js.map +1 -0
- package/dist/clarity.d.ts +75 -0
- package/dist/clarity.d.ts.map +1 -0
- package/dist/clarity.js +66 -0
- package/dist/clarity.js.map +1 -0
- package/dist/companion.d.ts +32 -0
- package/dist/companion.d.ts.map +1 -0
- package/dist/companion.js +43 -0
- package/dist/companion.js.map +1 -0
- package/dist/consensus.d.ts +195 -0
- package/dist/consensus.d.ts.map +1 -0
- package/dist/consensus.js +164 -0
- package/dist/consensus.js.map +1 -0
- package/dist/documents.d.ts +197 -0
- package/dist/documents.d.ts.map +1 -0
- package/dist/documents.js +161 -0
- package/dist/documents.js.map +1 -0
- package/dist/entities.d.ts +1691 -0
- package/dist/entities.d.ts.map +1 -0
- package/dist/entities.js +853 -0
- package/dist/entities.js.map +1 -0
- package/dist/environments.d.ts +426 -0
- package/dist/environments.d.ts.map +1 -0
- package/dist/environments.js +190 -0
- package/dist/environments.js.map +1 -0
- package/dist/events.d.ts +98 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +2 -0
- package/dist/events.js.map +1 -0
- package/dist/fragment-library.d.ts +123 -0
- package/dist/fragment-library.d.ts.map +1 -0
- package/dist/fragment-library.js +88 -0
- package/dist/fragment-library.js.map +1 -0
- package/dist/github.d.ts +215 -0
- package/dist/github.d.ts.map +1 -0
- package/dist/github.js +204 -0
- package/dist/github.js.map +1 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- package/dist/iteration-cap.d.ts +17 -0
- package/dist/iteration-cap.d.ts.map +1 -0
- package/dist/iteration-cap.js +25 -0
- package/dist/iteration-cap.js.map +1 -0
- package/dist/localModels.d.ts +54 -0
- package/dist/localModels.d.ts.map +1 -0
- package/dist/localModels.js +79 -0
- package/dist/localModels.js.map +1 -0
- package/dist/merge.d.ts +106 -0
- package/dist/merge.d.ts.map +1 -0
- package/dist/merge.js +129 -0
- package/dist/merge.js.map +1 -0
- package/dist/model-defaults.d.ts +23 -0
- package/dist/model-defaults.d.ts.map +1 -0
- package/dist/model-defaults.js +34 -0
- package/dist/model-defaults.js.map +1 -0
- package/dist/notifications.d.ts +136 -0
- package/dist/notifications.d.ts.map +1 -0
- package/dist/notifications.js +125 -0
- package/dist/notifications.js.map +1 -0
- package/dist/observability.d.ts +271 -0
- package/dist/observability.d.ts.map +1 -0
- package/dist/observability.js +152 -0
- package/dist/observability.js.map +1 -0
- package/dist/personal-subscriptions.d.ts +66 -0
- package/dist/personal-subscriptions.d.ts.map +1 -0
- package/dist/personal-subscriptions.js +70 -0
- package/dist/personal-subscriptions.js.map +1 -0
- package/dist/primitives.d.ts +57 -0
- package/dist/primitives.d.ts.map +1 -0
- package/dist/primitives.js +66 -0
- package/dist/primitives.js.map +1 -0
- package/dist/provisioning.d.ts +46 -0
- package/dist/provisioning.d.ts.map +1 -0
- package/dist/provisioning.js +107 -0
- package/dist/provisioning.js.map +1 -0
- package/dist/recurring.d.ts +117 -0
- package/dist/recurring.d.ts.map +1 -0
- package/dist/recurring.js +99 -0
- package/dist/recurring.js.map +1 -0
- package/dist/release.d.ts +60 -0
- package/dist/release.d.ts.map +1 -0
- package/dist/release.js +75 -0
- package/dist/release.js.map +1 -0
- package/dist/requests.d.ts +451 -0
- package/dist/requests.d.ts.map +1 -0
- package/dist/requests.js +231 -0
- package/dist/requests.js.map +1 -0
- package/dist/requirements.d.ts +127 -0
- package/dist/requirements.d.ts.map +1 -0
- package/dist/requirements.js +137 -0
- package/dist/requirements.js.map +1 -0
- package/dist/runners.d.ts +387 -0
- package/dist/runners.d.ts.map +1 -0
- package/dist/runners.js +117 -0
- package/dist/runners.js.map +1 -0
- package/dist/sandbox.d.ts +300 -0
- package/dist/sandbox.d.ts.map +1 -0
- package/dist/sandbox.js +243 -0
- package/dist/sandbox.js.map +1 -0
- package/dist/service-fragment-defaults.d.ts +16 -0
- package/dist/service-fragment-defaults.d.ts.map +1 -0
- package/dist/service-fragment-defaults.js +23 -0
- package/dist/service-fragment-defaults.js.map +1 -0
- package/dist/services.d.ts +81 -0
- package/dist/services.d.ts.map +1 -0
- package/dist/services.js +77 -0
- package/dist/services.js.map +1 -0
- package/dist/slack.d.ts +104 -0
- package/dist/slack.d.ts.map +1 -0
- package/dist/slack.js +98 -0
- package/dist/slack.js.map +1 -0
- package/dist/snapshot.d.ts +522 -0
- package/dist/snapshot.d.ts.map +1 -0
- package/dist/snapshot.js +104 -0
- package/dist/snapshot.js.map +1 -0
- package/dist/spec.d.ts +174 -0
- package/dist/spec.d.ts.map +1 -0
- package/dist/spec.js +173 -0
- package/dist/spec.js.map +1 -0
- package/dist/tasks.d.ts +150 -0
- package/dist/tasks.d.ts.map +1 -0
- package/dist/tasks.js +146 -0
- package/dist/tasks.js.map +1 -0
- package/dist/testing.d.ts +67 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +64 -0
- package/dist/testing.js.map +1 -0
- package/dist/tracker.d.ts +18 -0
- package/dist/tracker.d.ts.map +1 -0
- package/dist/tracker.js +24 -0
- package/dist/tracker.js.map +1 -0
- package/dist/vendor-credentials.d.ts +37 -0
- package/dist/vendor-credentials.d.ts.map +1 -0
- package/dist/vendor-credentials.js +40 -0
- package/dist/vendor-credentials.js.map +1 -0
- package/dist/workspace-settings.d.ts +36 -0
- package/dist/workspace-settings.d.ts.map +1 -0
- package/dist/workspace-settings.js +41 -0
- package/dist/workspace-settings.js.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
/** One monitored signal (a Datadog monitor or SLO), flattened to its current state. */
|
|
3
|
+
export declare const releaseSignalSchema: v.ObjectSchema<{
|
|
4
|
+
readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
|
|
5
|
+
readonly id: v.StringSchema<undefined>;
|
|
6
|
+
readonly name: v.StringSchema<undefined>;
|
|
7
|
+
readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
|
|
8
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
export type ReleaseSignalWire = v.InferOutput<typeof releaseSignalSchema>;
|
|
11
|
+
/** What the on-call agent recommends doing about the regression. */
|
|
12
|
+
export declare const onCallRecommendationSchema: v.PicklistSchema<["revert", "hold", "monitor"], undefined>;
|
|
13
|
+
export type OnCallRecommendation = v.InferOutput<typeof onCallRecommendationSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* The `on-call` agent's structured assessment of a release regression. `culpritConfidence`
|
|
16
|
+
* (0..1) is how strongly the evidence points at THIS PR as the cause; `recommendation`
|
|
17
|
+
* is the suggested human action; `evidence` lists the concrete observations behind it.
|
|
18
|
+
*/
|
|
19
|
+
export declare const onCallAssessmentSchema: v.ObjectSchema<{
|
|
20
|
+
/** How confident the agent is that the released PR caused the regression (0..1). */
|
|
21
|
+
readonly culpritConfidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
22
|
+
/** The recommended human action. */
|
|
23
|
+
readonly recommendation: v.PicklistSchema<["revert", "hold", "monitor"], undefined>;
|
|
24
|
+
/** Plain-prose justification. */
|
|
25
|
+
readonly rationale: v.StringSchema<undefined>;
|
|
26
|
+
/** Concrete observations behind the verdict (log lines, correlations, diff hunks). */
|
|
27
|
+
readonly evidence: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
export type OnCallAssessment = v.InferOutput<typeof onCallAssessmentSchema>;
|
|
30
|
+
/** Parse-or-throw an on-call assessment payload the agent returned. */
|
|
31
|
+
export declare function parseOnCallAssessment(value: unknown): OnCallAssessment;
|
|
32
|
+
/** Set/replace the workspace's Datadog connection (keys write-only, never read back). */
|
|
33
|
+
export declare const upsertDatadogConnectionSchema: v.ObjectSchema<{
|
|
34
|
+
readonly site: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
35
|
+
readonly apiKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
36
|
+
readonly appKey: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
export type UpsertDatadogConnectionInput = v.InferOutput<typeof upsertDatadogConnectionSchema>;
|
|
39
|
+
/** What `GET /datadog/connection` returns — never the secret keys. */
|
|
40
|
+
export declare const datadogConnectionViewSchema: v.ObjectSchema<{
|
|
41
|
+
readonly connected: v.BooleanSchema<undefined>;
|
|
42
|
+
readonly site: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
}, undefined>;
|
|
44
|
+
export type DatadogConnectionView = v.InferOutput<typeof datadogConnectionViewSchema>;
|
|
45
|
+
/** A block's monitor/SLO mapping for the post-release-health gate. */
|
|
46
|
+
export declare const releaseHealthConfigSchema: v.ObjectSchema<{
|
|
47
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
48
|
+
readonly monitorIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly sloIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly envTag: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
+
}, undefined>;
|
|
52
|
+
export type ReleaseHealthConfigWire = v.InferOutput<typeof releaseHealthConfigSchema>;
|
|
53
|
+
/** Create/replace a block's release-health config. */
|
|
54
|
+
export declare const upsertReleaseHealthConfigSchema: v.ObjectSchema<{
|
|
55
|
+
readonly monitorIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>, readonly []>;
|
|
56
|
+
readonly sloIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>, readonly []>;
|
|
57
|
+
readonly envTag: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>, v.RegexAction<string, "envTag may only contain letters, digits and _.-/ (no spaces or query characters)">]>, undefined>, undefined>;
|
|
58
|
+
}, undefined>;
|
|
59
|
+
export type UpsertReleaseHealthConfigInput = v.InferOutput<typeof upsertReleaseHealthConfigSchema>;
|
|
60
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../src/release.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,C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
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// Post-release-health wire contracts. After a release deploys, the
|
|
4
|
+
// `post-release-health` gate watches the team's Datadog monitors/SLOs over a
|
|
5
|
+
// monitoring window. On a regression it dispatches the `on-call` agent, which
|
|
6
|
+
// reasons over an evidence bundle + the released PR diff and returns this
|
|
7
|
+
// structured assessment (it makes NO commits and reverts nothing). The engine
|
|
8
|
+
// then raises a `release_regression` notification carrying the assessment + the
|
|
9
|
+
// regressed signals for a human to act on (revert / acknowledge).
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
/** One monitored signal (a Datadog monitor or SLO), flattened to its current state. */
|
|
12
|
+
export const releaseSignalSchema = v.object({
|
|
13
|
+
kind: v.picklist(['monitor', 'slo']),
|
|
14
|
+
id: v.string(),
|
|
15
|
+
name: v.string(),
|
|
16
|
+
state: v.picklist(['ok', 'warn', 'alert', 'no_data']),
|
|
17
|
+
detail: v.optional(v.string()),
|
|
18
|
+
});
|
|
19
|
+
/** What the on-call agent recommends doing about the regression. */
|
|
20
|
+
export const onCallRecommendationSchema = v.picklist(['revert', 'hold', 'monitor']);
|
|
21
|
+
/**
|
|
22
|
+
* The `on-call` agent's structured assessment of a release regression. `culpritConfidence`
|
|
23
|
+
* (0..1) is how strongly the evidence points at THIS PR as the cause; `recommendation`
|
|
24
|
+
* is the suggested human action; `evidence` lists the concrete observations behind it.
|
|
25
|
+
*/
|
|
26
|
+
export const onCallAssessmentSchema = v.object({
|
|
27
|
+
/** How confident the agent is that the released PR caused the regression (0..1). */
|
|
28
|
+
culpritConfidence: v.pipe(v.number(), v.minValue(0), v.maxValue(1)),
|
|
29
|
+
/** The recommended human action. */
|
|
30
|
+
recommendation: onCallRecommendationSchema,
|
|
31
|
+
/** Plain-prose justification. */
|
|
32
|
+
rationale: v.string(),
|
|
33
|
+
/** Concrete observations behind the verdict (log lines, correlations, diff hunks). */
|
|
34
|
+
evidence: v.optional(v.array(v.string()), []),
|
|
35
|
+
});
|
|
36
|
+
/** Parse-or-throw an on-call assessment payload the agent returned. */
|
|
37
|
+
export function parseOnCallAssessment(value) {
|
|
38
|
+
return v.parse(onCallAssessmentSchema, value);
|
|
39
|
+
}
|
|
40
|
+
// ---- Datadog connection (per-workspace) -----------------------------------
|
|
41
|
+
/** Datadog site host the connection points at. */
|
|
42
|
+
const datadogSiteSchema = v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(120));
|
|
43
|
+
/** Set/replace the workspace's Datadog connection (keys write-only, never read back). */
|
|
44
|
+
export const upsertDatadogConnectionSchema = v.object({
|
|
45
|
+
site: datadogSiteSchema,
|
|
46
|
+
apiKey: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
47
|
+
appKey: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
48
|
+
});
|
|
49
|
+
/** What `GET /datadog/connection` returns — never the secret keys. */
|
|
50
|
+
export const datadogConnectionViewSchema = v.object({
|
|
51
|
+
connected: v.boolean(),
|
|
52
|
+
site: v.nullable(v.string()),
|
|
53
|
+
});
|
|
54
|
+
// ---- Release-health config (per repo/service block) -----------------------
|
|
55
|
+
/** A block's monitor/SLO mapping for the post-release-health gate. */
|
|
56
|
+
export const releaseHealthConfigSchema = v.object({
|
|
57
|
+
blockId: v.string(),
|
|
58
|
+
monitorIds: v.array(v.string()),
|
|
59
|
+
sloIds: v.array(v.string()),
|
|
60
|
+
envTag: v.nullable(v.string()),
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* A Datadog env tag value. Constrained to the characters a real env/tag value uses so it
|
|
64
|
+
* can be interpolated into a Datadog log query (`status:error env:<tag>`) without spaces
|
|
65
|
+
* or query metacharacters (`* ( ) :` and whitespace) that would silently broaden or break
|
|
66
|
+
* the query — and silently empty the on-call evidence bundle.
|
|
67
|
+
*/
|
|
68
|
+
const envTagSchema = v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(120), v.regex(/^[A-Za-z0-9_.\-/]+$/, 'envTag may only contain letters, digits and _.-/ (no spaces or query characters)'));
|
|
69
|
+
/** Create/replace a block's release-health config. */
|
|
70
|
+
export const upsertReleaseHealthConfigSchema = v.object({
|
|
71
|
+
monitorIds: v.optional(v.array(v.pipe(v.string(), v.trim(), v.minLength(1))), []),
|
|
72
|
+
sloIds: v.optional(v.array(v.pipe(v.string(), v.trim(), v.minLength(1))), []),
|
|
73
|
+
envTag: v.optional(v.nullable(envTagSchema)),
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=release.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.js","sourceRoot":"","sources":["../src/release.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,mEAAmE;AACnE,6EAA6E;AAC7E,8EAA8E;AAC9E,0EAA0E;AAC1E,8EAA8E;AAC9E,gFAAgF;AAChF,kEAAkE;AAClE,8EAA8E;AAE9E,uFAAuF;AACvF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAA;AAGF,oEAAoE;AACpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAA;AAGnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;I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AE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAC7E,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;CAC7C,CAAC,CAAA"}
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const createWorkspaceSchema: v.ObjectSchema<{
|
|
3
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
4
|
+
/** Optional free-text description shown on the board switcher / onboarding list. */
|
|
5
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
6
|
+
/**
|
|
7
|
+
* Seed the board with the sample architecture *blocks* (default true; the SPA
|
|
8
|
+
* passes false so real boards start empty). The pipeline catalog is always
|
|
9
|
+
* provisioned regardless — it is product config, not sample data.
|
|
10
|
+
*/
|
|
11
|
+
readonly seed: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* The account the new board belongs to. Optional: when omitted (or in the
|
|
14
|
+
* auth-disabled path) the board is created in the caller's personal account, or
|
|
15
|
+
* unscoped when there is no signed-in user.
|
|
16
|
+
*/
|
|
17
|
+
readonly accountId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
export type CreateWorkspaceInput = v.InferOutput<typeof createWorkspaceSchema>;
|
|
20
|
+
/** Rename a board and/or update its description. */
|
|
21
|
+
export declare const renameWorkspaceSchema: v.ObjectSchema<{
|
|
22
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
23
|
+
/** `null` clears the description; an absent key leaves it unchanged. */
|
|
24
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
export type RenameWorkspaceInput = v.InferOutput<typeof renameWorkspaceSchema>;
|
|
27
|
+
export declare const addFrameSchema: v.ObjectSchema<{
|
|
28
|
+
readonly type: v.PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>;
|
|
29
|
+
readonly position: v.ObjectSchema<{
|
|
30
|
+
readonly x: v.NumberSchema<undefined>;
|
|
31
|
+
readonly y: v.NumberSchema<undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
export type AddFrameInput = v.InferOutput<typeof addFrameSchema>;
|
|
35
|
+
/**
|
|
36
|
+
* Add a service frame backed by an EXISTING GitHub repo the App can access.
|
|
37
|
+
* Unlike bootstrap there is no container / agent run: the backend links + syncs
|
|
38
|
+
* the repo into the workspace (if it wasn't already tracked), creates the frame
|
|
39
|
+
* `ready`, and links the repo projection to it. `position` is optional — the
|
|
40
|
+
* backend lays the frame out when omitted (the side-panel button passes none).
|
|
41
|
+
*/
|
|
42
|
+
export declare const addServiceFromRepoSchema: v.ObjectSchema<{
|
|
43
|
+
readonly repoGithubId: v.NumberSchema<undefined>;
|
|
44
|
+
readonly position: v.OptionalSchema<v.ObjectSchema<{
|
|
45
|
+
readonly x: v.NumberSchema<undefined>;
|
|
46
|
+
readonly y: v.NumberSchema<undefined>;
|
|
47
|
+
}, undefined>, undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* For a monorepo repo, the subdirectory (relative to the repo root) this service
|
|
50
|
+
* lives in, e.g. `packages/api`. Omitted/empty for a whole-repo service. The
|
|
51
|
+
* frame is titled after the directory's base name when given.
|
|
52
|
+
*/
|
|
53
|
+
readonly directory: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the backing repo is a monorepo (hosts several services). Sent as part of
|
|
56
|
+
* the add request instead of a separate up-front PATCH; when provided the backend
|
|
57
|
+
* persists the repo's monorepo flag, then requires a {@link directory}. A monorepo
|
|
58
|
+
* repo can back several service frames, each pinned to its own subdirectory.
|
|
59
|
+
*/
|
|
60
|
+
readonly isMonorepo: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
61
|
+
}, undefined>;
|
|
62
|
+
export type AddServiceFromRepoInput = v.InferOutput<typeof addServiceFromRepoSchema>;
|
|
63
|
+
export declare const addTaskSchema: v.ObjectSchema<{
|
|
64
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
65
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
66
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike"], undefined>, undefined>;
|
|
67
|
+
readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
|
|
68
|
+
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
69
|
+
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
70
|
+
readonly timeboxHours: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
71
|
+
readonly docKind: v.OptionalSchema<v.PicklistSchema<["prd", "rfc", "runbook", "reference", "other"], undefined>, undefined>;
|
|
72
|
+
}, undefined>, undefined>;
|
|
73
|
+
readonly mergePresetId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
74
|
+
readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
75
|
+
readonly agentConfig: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 400, undefined>]>, undefined>, undefined>;
|
|
76
|
+
}, undefined>;
|
|
77
|
+
export type AddTaskInput = v.InferOutput<typeof addTaskSchema>;
|
|
78
|
+
export declare const addModuleSchema: v.ObjectSchema<{
|
|
79
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
80
|
+
readonly position: v.OptionalSchema<v.ObjectSchema<{
|
|
81
|
+
readonly x: v.NumberSchema<undefined>;
|
|
82
|
+
readonly y: v.NumberSchema<undefined>;
|
|
83
|
+
}, undefined>, undefined>;
|
|
84
|
+
}, undefined>;
|
|
85
|
+
export type AddModuleInput = v.InferOutput<typeof addModuleSchema>;
|
|
86
|
+
export declare const updateBlockSchema: Omit<v.ObjectSchema<{
|
|
87
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
|
88
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
89
|
+
readonly position: v.ObjectSchema<{
|
|
90
|
+
readonly x: v.NumberSchema<undefined>;
|
|
91
|
+
readonly y: v.NumberSchema<undefined>;
|
|
92
|
+
}, undefined>;
|
|
93
|
+
readonly size: v.ObjectSchema<{
|
|
94
|
+
readonly w: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
95
|
+
readonly h: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
96
|
+
}, undefined>;
|
|
97
|
+
readonly moduleName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 120, undefined>]>;
|
|
98
|
+
readonly fragmentIds: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
99
|
+
readonly serviceFragmentIds: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
100
|
+
readonly modelId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
101
|
+
readonly mergePresetId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
102
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
103
|
+
readonly agentConfig: v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
104
|
+
readonly testComposePath: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 400, undefined>]>;
|
|
105
|
+
readonly noInfraDependencies: v.BooleanSchema<undefined>;
|
|
106
|
+
readonly cloudProvider: v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>;
|
|
107
|
+
readonly instanceSize: v.PicklistSchema<["small", "medium", "large", "xlarge"], undefined>;
|
|
108
|
+
}, undefined>, "entries" | "~run" | "~standard" | "~types"> & {
|
|
109
|
+
readonly entries: {
|
|
110
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
111
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
112
|
+
readonly position: v.OptionalSchema<v.ObjectSchema<{
|
|
113
|
+
readonly x: v.NumberSchema<undefined>;
|
|
114
|
+
readonly y: v.NumberSchema<undefined>;
|
|
115
|
+
}, undefined>, undefined>;
|
|
116
|
+
readonly size: v.OptionalSchema<v.ObjectSchema<{
|
|
117
|
+
readonly w: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
118
|
+
readonly h: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
119
|
+
}, undefined>, undefined>;
|
|
120
|
+
readonly moduleName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
121
|
+
readonly fragmentIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>, undefined>;
|
|
122
|
+
readonly serviceFragmentIds: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>, undefined>;
|
|
123
|
+
readonly modelId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
124
|
+
readonly mergePresetId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
125
|
+
readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
126
|
+
readonly agentConfig: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 400, undefined>]>, undefined>, undefined>;
|
|
127
|
+
readonly testComposePath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
128
|
+
readonly noInfraDependencies: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
129
|
+
readonly cloudProvider: v.OptionalSchema<v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>, undefined>;
|
|
130
|
+
readonly instanceSize: v.OptionalSchema<v.PicklistSchema<["small", "medium", "large", "xlarge"], undefined>, undefined>;
|
|
131
|
+
};
|
|
132
|
+
readonly "~standard": v.StandardProps<{
|
|
133
|
+
title?: string | undefined;
|
|
134
|
+
description?: string | undefined;
|
|
135
|
+
position?: {
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
} | undefined;
|
|
139
|
+
size?: {
|
|
140
|
+
w: number;
|
|
141
|
+
h: number;
|
|
142
|
+
} | undefined;
|
|
143
|
+
moduleName?: string | undefined;
|
|
144
|
+
fragmentIds?: string[] | undefined;
|
|
145
|
+
serviceFragmentIds?: string[] | undefined;
|
|
146
|
+
modelId?: string | undefined;
|
|
147
|
+
mergePresetId?: string | undefined;
|
|
148
|
+
pipelineId?: string | undefined;
|
|
149
|
+
agentConfig?: {
|
|
150
|
+
[x: string]: string;
|
|
151
|
+
} | undefined;
|
|
152
|
+
testComposePath?: string | undefined;
|
|
153
|
+
noInfraDependencies?: boolean | undefined;
|
|
154
|
+
cloudProvider?: "aws" | "azure" | "cloudflare" | "custom" | "docker" | "gcp" | undefined;
|
|
155
|
+
instanceSize?: "large" | "medium" | "small" | "xlarge" | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
title?: string | undefined;
|
|
158
|
+
description?: string | undefined;
|
|
159
|
+
position?: {
|
|
160
|
+
x: number;
|
|
161
|
+
y: number;
|
|
162
|
+
} | undefined;
|
|
163
|
+
size?: {
|
|
164
|
+
w: number;
|
|
165
|
+
h: number;
|
|
166
|
+
} | undefined;
|
|
167
|
+
moduleName?: string | undefined;
|
|
168
|
+
fragmentIds?: string[] | undefined;
|
|
169
|
+
serviceFragmentIds?: string[] | undefined;
|
|
170
|
+
modelId?: string | undefined;
|
|
171
|
+
mergePresetId?: string | undefined;
|
|
172
|
+
pipelineId?: string | undefined;
|
|
173
|
+
agentConfig?: {
|
|
174
|
+
[x: string]: string;
|
|
175
|
+
} | undefined;
|
|
176
|
+
testComposePath?: string | undefined;
|
|
177
|
+
noInfraDependencies?: boolean | undefined;
|
|
178
|
+
cloudProvider?: "aws" | "azure" | "cloudflare" | "custom" | "docker" | "gcp" | undefined;
|
|
179
|
+
instanceSize?: "large" | "medium" | "small" | "xlarge" | undefined;
|
|
180
|
+
}>;
|
|
181
|
+
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
182
|
+
title?: string | undefined;
|
|
183
|
+
description?: string | undefined;
|
|
184
|
+
position?: {
|
|
185
|
+
x: number;
|
|
186
|
+
y: number;
|
|
187
|
+
} | undefined;
|
|
188
|
+
size?: {
|
|
189
|
+
w: number;
|
|
190
|
+
h: number;
|
|
191
|
+
} | undefined;
|
|
192
|
+
moduleName?: string | undefined;
|
|
193
|
+
fragmentIds?: string[] | undefined;
|
|
194
|
+
serviceFragmentIds?: string[] | undefined;
|
|
195
|
+
modelId?: string | undefined;
|
|
196
|
+
mergePresetId?: string | undefined;
|
|
197
|
+
pipelineId?: string | undefined;
|
|
198
|
+
agentConfig?: {
|
|
199
|
+
[x: string]: string;
|
|
200
|
+
} | undefined;
|
|
201
|
+
testComposePath?: string | undefined;
|
|
202
|
+
noInfraDependencies?: boolean | undefined;
|
|
203
|
+
cloudProvider?: "aws" | "azure" | "cloudflare" | "custom" | "docker" | "gcp" | undefined;
|
|
204
|
+
instanceSize?: "large" | "medium" | "small" | "xlarge" | undefined;
|
|
205
|
+
}, v.ArrayIssue | v.BooleanIssue | v.MaxLengthIssue<string, 120> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 400> | v.MaxLengthIssue<string, 2000> | v.MinLengthIssue<string, 1> | v.MinValueIssue<number, 1> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.RecordIssue | v.StringIssue>;
|
|
206
|
+
readonly "~types"?: {
|
|
207
|
+
readonly input: {
|
|
208
|
+
title?: string | undefined;
|
|
209
|
+
description?: string | undefined;
|
|
210
|
+
position?: {
|
|
211
|
+
x: number;
|
|
212
|
+
y: number;
|
|
213
|
+
} | undefined;
|
|
214
|
+
size?: {
|
|
215
|
+
w: number;
|
|
216
|
+
h: number;
|
|
217
|
+
} | undefined;
|
|
218
|
+
moduleName?: string | undefined;
|
|
219
|
+
fragmentIds?: string[] | undefined;
|
|
220
|
+
serviceFragmentIds?: string[] | undefined;
|
|
221
|
+
modelId?: string | undefined;
|
|
222
|
+
mergePresetId?: string | undefined;
|
|
223
|
+
pipelineId?: string | undefined;
|
|
224
|
+
agentConfig?: {
|
|
225
|
+
[x: string]: string;
|
|
226
|
+
} | undefined;
|
|
227
|
+
testComposePath?: string | undefined;
|
|
228
|
+
noInfraDependencies?: boolean | undefined;
|
|
229
|
+
cloudProvider?: "aws" | "azure" | "cloudflare" | "custom" | "docker" | "gcp" | undefined;
|
|
230
|
+
instanceSize?: "large" | "medium" | "small" | "xlarge" | undefined;
|
|
231
|
+
};
|
|
232
|
+
readonly output: {
|
|
233
|
+
title?: string | undefined;
|
|
234
|
+
description?: string | undefined;
|
|
235
|
+
position?: {
|
|
236
|
+
x: number;
|
|
237
|
+
y: number;
|
|
238
|
+
} | undefined;
|
|
239
|
+
size?: {
|
|
240
|
+
w: number;
|
|
241
|
+
h: number;
|
|
242
|
+
} | undefined;
|
|
243
|
+
moduleName?: string | undefined;
|
|
244
|
+
fragmentIds?: string[] | undefined;
|
|
245
|
+
serviceFragmentIds?: string[] | undefined;
|
|
246
|
+
modelId?: string | undefined;
|
|
247
|
+
mergePresetId?: string | undefined;
|
|
248
|
+
pipelineId?: string | undefined;
|
|
249
|
+
agentConfig?: {
|
|
250
|
+
[x: string]: string;
|
|
251
|
+
} | undefined;
|
|
252
|
+
testComposePath?: string | undefined;
|
|
253
|
+
noInfraDependencies?: boolean | undefined;
|
|
254
|
+
cloudProvider?: "aws" | "azure" | "cloudflare" | "custom" | "docker" | "gcp" | undefined;
|
|
255
|
+
instanceSize?: "large" | "medium" | "small" | "xlarge" | undefined;
|
|
256
|
+
};
|
|
257
|
+
readonly issue: v.ArrayIssue | v.BooleanIssue | v.MaxLengthIssue<string, 120> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 400> | v.MaxLengthIssue<string, 2000> | v.MinLengthIssue<string, 1> | v.MinValueIssue<number, 1> | v.NumberIssue | v.ObjectIssue | v.PicklistIssue | v.RecordIssue | v.StringIssue;
|
|
258
|
+
} | undefined;
|
|
259
|
+
};
|
|
260
|
+
export type UpdateBlockInput = v.InferOutput<typeof updateBlockSchema>;
|
|
261
|
+
export declare const moveBlockSchema: v.ObjectSchema<{
|
|
262
|
+
readonly position: v.ObjectSchema<{
|
|
263
|
+
readonly x: v.NumberSchema<undefined>;
|
|
264
|
+
readonly y: v.NumberSchema<undefined>;
|
|
265
|
+
}, undefined>;
|
|
266
|
+
}, undefined>;
|
|
267
|
+
export type MoveBlockInput = v.InferOutput<typeof moveBlockSchema>;
|
|
268
|
+
export declare const reparentSchema: v.ObjectSchema<{
|
|
269
|
+
readonly parentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
270
|
+
readonly position: v.ObjectSchema<{
|
|
271
|
+
readonly x: v.NumberSchema<undefined>;
|
|
272
|
+
readonly y: v.NumberSchema<undefined>;
|
|
273
|
+
}, undefined>;
|
|
274
|
+
}, undefined>;
|
|
275
|
+
export type ReparentInput = v.InferOutput<typeof reparentSchema>;
|
|
276
|
+
export declare const toggleDependencySchema: v.ObjectSchema<{
|
|
277
|
+
readonly sourceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
278
|
+
}, undefined>;
|
|
279
|
+
export type ToggleDependencyInput = v.InferOutput<typeof toggleDependencySchema>;
|
|
280
|
+
export declare const createPipelineSchema: v.ObjectSchema<{
|
|
281
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
282
|
+
readonly agentKinds: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
283
|
+
/**
|
|
284
|
+
* Per-step human approval gates, parallel to {@link agentKinds}. Optional;
|
|
285
|
+
* omitted means no gates (the pipeline runs straight through).
|
|
286
|
+
*/
|
|
287
|
+
readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
288
|
+
/**
|
|
289
|
+
* Per-step companion quality thresholds (0..1), parallel to {@link agentKinds}.
|
|
290
|
+
* Only meaningful on companion steps; `null`/omitted means "use the companion's
|
|
291
|
+
* default threshold". Optional.
|
|
292
|
+
*/
|
|
293
|
+
readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
|
|
294
|
+
/**
|
|
295
|
+
* Per-step enable flags, parallel to {@link agentKinds}. `false` keeps the step in
|
|
296
|
+
* the pipeline but skips it at run start. Optional; omitted means every step runs.
|
|
297
|
+
*/
|
|
298
|
+
readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
299
|
+
/**
|
|
300
|
+
* Per-step consensus configs, parallel to {@link agentKinds}: a step whose kind carries
|
|
301
|
+
* a consensus capability trait may run through the multi-model consensus mechanism.
|
|
302
|
+
* `null`/omitted ⇒ the standard single-actor agent. Optional.
|
|
303
|
+
*/
|
|
304
|
+
readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
|
|
305
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
306
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
307
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
308
|
+
readonly id: v.StringSchema<undefined>;
|
|
309
|
+
readonly role: v.StringSchema<undefined>;
|
|
310
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
311
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
312
|
+
}, undefined>, undefined>;
|
|
313
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
314
|
+
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>;
|
|
315
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
316
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
317
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
318
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
319
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
320
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
321
|
+
}, undefined>, undefined>;
|
|
322
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
323
|
+
/**
|
|
324
|
+
* Per-step estimate gating, parallel to {@link agentKinds}: an enabled entry makes the
|
|
325
|
+
* step run only when the task estimate meets the threshold. `null`/omitted ⇒ always run.
|
|
326
|
+
* A pipeline with any enabled gating requires a `task-estimator` step earlier in the
|
|
327
|
+
* chain or it is rejected. Optional.
|
|
328
|
+
*/
|
|
329
|
+
readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
|
|
330
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
331
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
332
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
333
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
334
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
335
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
336
|
+
/** Free-form organizational labels for the library. Optional. */
|
|
337
|
+
readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
|
|
338
|
+
}, undefined>;
|
|
339
|
+
export type CreatePipelineInput = v.InferOutput<typeof createPipelineSchema>;
|
|
340
|
+
/**
|
|
341
|
+
* Edit an existing (non-built-in) pipeline. Every field is optional — only the
|
|
342
|
+
* supplied fields change; `agentKinds` (when present) replaces the whole chain and
|
|
343
|
+
* re-aligns the parallel arrays. Built-in pipelines reject this (clone them first).
|
|
344
|
+
*/
|
|
345
|
+
export declare const updatePipelineSchema: v.ObjectSchema<{
|
|
346
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
347
|
+
readonly agentKinds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
|
|
348
|
+
readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
349
|
+
readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
|
|
350
|
+
readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
351
|
+
readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
|
|
352
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
353
|
+
readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
|
|
354
|
+
readonly participants: v.ArraySchema<v.ObjectSchema<{
|
|
355
|
+
readonly id: v.StringSchema<undefined>;
|
|
356
|
+
readonly role: v.StringSchema<undefined>;
|
|
357
|
+
readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
358
|
+
readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
359
|
+
}, undefined>, undefined>;
|
|
360
|
+
readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
361
|
+
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>;
|
|
362
|
+
readonly gating: v.OptionalSchema<v.ObjectSchema<{
|
|
363
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
364
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
365
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
366
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
367
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
|
|
368
|
+
}, undefined>, undefined>;
|
|
369
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
370
|
+
readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
|
|
371
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
372
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
373
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
374
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
375
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
376
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
377
|
+
readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
|
|
378
|
+
}, undefined>;
|
|
379
|
+
export type UpdatePipelineInput = v.InferOutput<typeof updatePipelineSchema>;
|
|
380
|
+
/** Clone any pipeline (built-in or custom) into a new, editable copy. */
|
|
381
|
+
export declare const clonePipelineSchema: v.ObjectSchema<{
|
|
382
|
+
/** Name for the copy. Optional; defaults to "<source name> (copy)". */
|
|
383
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
384
|
+
}, undefined>;
|
|
385
|
+
export type ClonePipelineInput = v.InferOutput<typeof clonePipelineSchema>;
|
|
386
|
+
/**
|
|
387
|
+
* Organize a pipeline in the library: set labels and/or archive state. The ONLY
|
|
388
|
+
* mutation allowed on a built-in pipeline (it touches view/organization metadata,
|
|
389
|
+
* not structure), so built-ins can be tagged/archived while staying read-only for
|
|
390
|
+
* their steps. Every field optional — only the supplied fields change.
|
|
391
|
+
*/
|
|
392
|
+
export declare const organizePipelineSchema: v.ObjectSchema<{
|
|
393
|
+
readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
|
|
394
|
+
readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
395
|
+
}, undefined>;
|
|
396
|
+
export type OrganizePipelineInput = v.InferOutput<typeof organizePipelineSchema>;
|
|
397
|
+
export declare const startExecutionSchema: v.ObjectSchema<{
|
|
398
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
399
|
+
}, undefined>;
|
|
400
|
+
export type StartExecutionInput = v.InferOutput<typeof startExecutionSchema>;
|
|
401
|
+
export declare const resolveDecisionSchema: v.ObjectSchema<{
|
|
402
|
+
readonly choice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
403
|
+
}, undefined>;
|
|
404
|
+
export type ResolveDecisionInput = v.InferOutput<typeof resolveDecisionSchema>;
|
|
405
|
+
/**
|
|
406
|
+
* Approve a step's gated proposal. An optional edited `proposal` overrides the
|
|
407
|
+
* agent's text, so the human's revision is what flows to downstream steps.
|
|
408
|
+
*/
|
|
409
|
+
export declare const approveStepSchema: v.ObjectSchema<{
|
|
410
|
+
readonly proposal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 50000, undefined>]>, undefined>;
|
|
411
|
+
}, undefined>;
|
|
412
|
+
export type ApproveStepInput = v.InferOutput<typeof approveStepSchema>;
|
|
413
|
+
/**
|
|
414
|
+
* Request changes on a gated proposal: the step re-runs with the reviewer's
|
|
415
|
+
* freeform `feedback` and/or per-block `comments`. At least one of the two must
|
|
416
|
+
* be present — an empty review changes nothing.
|
|
417
|
+
*/
|
|
418
|
+
export declare const requestStepChangesSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
419
|
+
readonly feedback: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 10000, undefined>]>, undefined>;
|
|
420
|
+
readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
421
|
+
readonly quotedSource: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 20000, undefined>]>;
|
|
422
|
+
readonly srcStart: v.NumberSchema<undefined>;
|
|
423
|
+
readonly srcEnd: v.NumberSchema<undefined>;
|
|
424
|
+
readonly body: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 5000, undefined>]>;
|
|
425
|
+
}, undefined>, undefined>, undefined>;
|
|
426
|
+
}, undefined>, v.CheckAction<{
|
|
427
|
+
feedback?: string | undefined;
|
|
428
|
+
comments?: {
|
|
429
|
+
quotedSource: string;
|
|
430
|
+
srcStart: number;
|
|
431
|
+
srcEnd: number;
|
|
432
|
+
body: string;
|
|
433
|
+
}[] | undefined;
|
|
434
|
+
}, "Provide freeform feedback or at least one comment">]>;
|
|
435
|
+
export type RequestStepChangesInput = v.InferOutput<typeof requestStepChangesSchema>;
|
|
436
|
+
/** Reject a gated proposal: the run stops entirely (a terminal failure). */
|
|
437
|
+
export declare const rejectStepSchema: v.ObjectSchema<{
|
|
438
|
+
readonly reason: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
439
|
+
}, undefined>;
|
|
440
|
+
export type RejectStepInput = v.InferOutput<typeof rejectStepSchema>;
|
|
441
|
+
/**
|
|
442
|
+
* Restart a run from a chosen step: re-run from `fromStepIndex` onward, keeping the
|
|
443
|
+
* earlier steps (and their outputs) as handoff context and resetting that step plus
|
|
444
|
+
* every later one's iteration counters. The service validates the index against the
|
|
445
|
+
* run's real step count; this only enforces a non-negative integer up front.
|
|
446
|
+
*/
|
|
447
|
+
export declare const restartFromStepSchema: v.ObjectSchema<{
|
|
448
|
+
readonly fromStepIndex: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
449
|
+
}, undefined>;
|
|
450
|
+
export type RestartFromStepInput = v.InferOutput<typeof restartFromStepSchema>;
|
|
451
|
+
//# sourceMappingURL=requests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../src/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B,eAAO,MAAM,qBAAqB;;IAEhC,oFAAoF;;IAEpF;;;;OAIG;;IAEH;;;;OAIG;;aAEH,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE9E,oDAAoD;AACpD,eAAO,MAAM,qBAAqB;;IAEhC,wEAAwE;;aAExE,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE9E,eAAO,MAAM,cAAc;;;;;;aAGzB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;;;IAGnC;;;;OAIG;;IAEH;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF,eAAO,MAAM,aAAa;;;;;;;;;;;;;aAgBxB,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,C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