@cat-factory/contracts 0.85.0 → 0.87.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 +2 -2
- package/dist/entities.d.ts +9 -1
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +8 -0
- package/dist/entities.js.map +1 -1
- package/dist/events.d.ts +11 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/fragment-library.d.ts +13 -7
- package/dist/fragment-library.d.ts.map +1 -1
- package/dist/fragment-library.js +13 -7
- package/dist/fragment-library.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/initiative.d.ts +408 -0
- package/dist/initiative.d.ts.map +1 -0
- package/dist/initiative.js +325 -0
- package/dist/initiative.js.map +1 -0
- package/dist/primitives.d.ts +5 -2
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +5 -2
- package/dist/primitives.js.map +1 -1
- package/dist/result-views.d.ts +1 -1
- package/dist/result-views.d.ts.map +1 -1
- package/dist/result-views.js +1 -0
- package/dist/result-views.js.map +1 -1
- package/dist/routes/board.d.ts +20 -10
- package/dist/routes/board.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +4 -2
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/fragment-library.d.ts +5 -6
- package/dist/routes/fragment-library.d.ts.map +1 -1
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/initiative.d.ts +662 -0
- package/dist/routes/initiative.d.ts.map +1 -0
- package/dist/routes/initiative.js +45 -0
- package/dist/routes/initiative.js.map +1 -0
- package/dist/routes/tasks.d.ts +6 -3
- package/dist/routes/tasks.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +176 -4
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +94 -2
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/snapshot.js +8 -0
- package/dist/snapshot.js.map +1 -1
- package/dist/visual-pipeline.d.ts +12 -6
- package/dist/visual-pipeline.d.ts.map +1 -1
- package/dist/visual-pipeline.js +12 -6
- package/dist/visual-pipeline.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initiative.d.ts","sourceRoot":"","sources":["../../src/routes/initiative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlC,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhC,CAAA;AAEF,uFAAuF;AACvF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineApiContract } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { blockSchema } from '../entities.js';
|
|
4
|
+
import { createInitiativeSchema, initiativeSchema } from '../initiative.js';
|
|
5
|
+
import { errorResponses, singleStringParam } from './_shared.js';
|
|
6
|
+
// ---------------------------------------------------------------------------
|
|
7
|
+
// Initiative route contracts. Mounted under `/workspaces/:workspaceId`, so the
|
|
8
|
+
// paths here are relative to that prefix. See InitiativeController in
|
|
9
|
+
// @cat-factory/server.
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
const initiativeIdParams = singleStringParam('initiativeId');
|
|
12
|
+
const blockIdParams = singleStringParam('blockId');
|
|
13
|
+
/**
|
|
14
|
+
* Create an initiative: materialises the initiative-level board block AND its
|
|
15
|
+
* empty entity in one call, returning both so the client patches its board and
|
|
16
|
+
* initiative caches without a refetch.
|
|
17
|
+
*/
|
|
18
|
+
export const createInitiativeContract = defineApiContract({
|
|
19
|
+
method: 'post',
|
|
20
|
+
pathResolver: () => '/initiatives',
|
|
21
|
+
requestBodySchema: createInitiativeSchema,
|
|
22
|
+
responsesByStatusCode: {
|
|
23
|
+
201: v.object({ initiative: initiativeSchema, block: blockSchema }),
|
|
24
|
+
...errorResponses,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
export const listInitiativesContract = defineApiContract({
|
|
28
|
+
method: 'get',
|
|
29
|
+
pathResolver: () => '/initiatives',
|
|
30
|
+
responsesByStatusCode: { 200: v.array(initiativeSchema), ...errorResponses },
|
|
31
|
+
});
|
|
32
|
+
export const getInitiativeContract = defineApiContract({
|
|
33
|
+
method: 'get',
|
|
34
|
+
requestPathParamsSchema: initiativeIdParams,
|
|
35
|
+
pathResolver: ({ initiativeId }) => `/initiatives/${initiativeId}`,
|
|
36
|
+
responsesByStatusCode: { 200: initiativeSchema, ...errorResponses },
|
|
37
|
+
});
|
|
38
|
+
/** Fetch the initiative anchored to a board block (the tracker window's load path). */
|
|
39
|
+
export const getInitiativeByBlockContract = defineApiContract({
|
|
40
|
+
method: 'get',
|
|
41
|
+
requestPathParamsSchema: blockIdParams,
|
|
42
|
+
pathResolver: ({ blockId }) => `/blocks/${blockId}/initiative`,
|
|
43
|
+
responsesByStatusCode: { 200: v.nullable(initiativeSchema), ...errorResponses },
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=initiative.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"initiative.js","sourceRoot":"","sources":["../../src/routes/initiative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,+EAA+E;AAC/E,sEAAsE;AACtE,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAA;AAC5D,MAAM,aAAa,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAA;AAElD;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,cAAc;IAClC,iBAAiB,EAAE,sBAAsB;IACzC,qBAAqB,EAAE;QACrB,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;QACnE,GAAG,cAAc;KAClB;CACF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,cAAc;IAClC,qBAAqB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,GAAG,cAAc,EAAE;CAC7E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACrD,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,kBAAkB;IAC3C,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,CAAC,gBAAgB,YAAY,EAAE;IAClE,qBAAqB,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,cAAc,EAAE;CACpE,CAAC,CAAA;AAEF,uFAAuF;AACvF,MAAM,CAAC,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;IAC5D,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,aAAa;IACtC,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,WAAW,OAAO,aAAa;IAC9D,qBAAqB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,GAAG,cAAc,EAAE;CAChF,CAAC,CAAA"}
|
package/dist/routes/tasks.d.ts
CHANGED
|
@@ -558,9 +558,10 @@ export declare const createTaskFromIssueContract: {
|
|
|
558
558
|
readonly progress: v.NumberSchema<undefined>;
|
|
559
559
|
readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
560
560
|
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
561
|
-
readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
|
|
561
|
+
readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
|
|
562
562
|
readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
563
563
|
readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
564
|
+
readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
564
565
|
readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
565
566
|
readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
566
567
|
readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
@@ -805,9 +806,10 @@ export declare const spawnEpicContract: {
|
|
|
805
806
|
readonly progress: v.NumberSchema<undefined>;
|
|
806
807
|
readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
807
808
|
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
808
|
-
readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
|
|
809
|
+
readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
|
|
809
810
|
readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
810
811
|
readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
812
|
+
readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
811
813
|
readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
812
814
|
readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
813
815
|
readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
@@ -989,9 +991,10 @@ export declare const spawnEpicContract: {
|
|
|
989
991
|
readonly progress: v.NumberSchema<undefined>;
|
|
990
992
|
readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
991
993
|
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
992
|
-
readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
|
|
994
|
+
readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
|
|
993
995
|
readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
994
996
|
readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
997
|
+
readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
995
998
|
readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
996
999
|
readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
997
1000
|
readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/routes/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuD5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMpC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAA"}
|
|
@@ -92,9 +92,10 @@ export declare const createWorkspaceContract: {
|
|
|
92
92
|
readonly progress: v.NumberSchema<undefined>;
|
|
93
93
|
readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
94
94
|
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
95
|
-
readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
|
|
95
|
+
readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
|
|
96
96
|
readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
97
97
|
readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
98
|
+
readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
98
99
|
readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
99
100
|
readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
100
101
|
readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
@@ -1053,7 +1054,7 @@ export declare const createWorkspaceContract: {
|
|
|
1053
1054
|
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
1054
1055
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
1055
1056
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
1056
|
-
readonly resultView: v.OptionalSchema<v.PicklistSchema<readonly ["requirements-review", "clarity-review", "brainstorm", "tester", "human-test", "visual-confirm", "gate", "consensus-session", "generic-structured", "service-spec", "follow-ups", "merger"], undefined>, undefined>;
|
|
1057
|
+
readonly resultView: v.OptionalSchema<v.PicklistSchema<readonly ["requirements-review", "clarity-review", "brainstorm", "tester", "human-test", "visual-confirm", "gate", "consensus-session", "generic-structured", "service-spec", "follow-ups", "merger", "initiative-tracker"], undefined>, undefined>;
|
|
1057
1058
|
}, undefined>;
|
|
1058
1059
|
readonly container: v.BooleanSchema<undefined>;
|
|
1059
1060
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1069,6 +1070,91 @@ export declare const createWorkspaceContract: {
|
|
|
1069
1070
|
}, undefined>, undefined>, undefined>;
|
|
1070
1071
|
readonly pipelineCatalogVersions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1071
1072
|
readonly mergePresetCatalogVersions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1073
|
+
readonly initiatives: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1074
|
+
readonly id: v.StringSchema<undefined>;
|
|
1075
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1076
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1077
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1078
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1079
|
+
readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1080
|
+
readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1081
|
+
readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1082
|
+
readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1083
|
+
readonly answer: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1084
|
+
}, undefined>, undefined>, readonly []>;
|
|
1085
|
+
readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1086
|
+
readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1087
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1088
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1089
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1090
|
+
readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
1091
|
+
}, undefined>, undefined>, readonly []>;
|
|
1092
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1093
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1094
|
+
readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1095
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1096
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
|
|
1097
|
+
readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
|
|
1098
|
+
readonly estimate: v.OptionalSchema<v.ObjectSchema<{
|
|
1099
|
+
readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1100
|
+
readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1101
|
+
readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1102
|
+
readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1103
|
+
}, undefined>, undefined>;
|
|
1104
|
+
readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1105
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
|
|
1106
|
+
readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1107
|
+
readonly pr: v.OptionalSchema<v.ObjectSchema<{
|
|
1108
|
+
readonly url: v.StringSchema<undefined>;
|
|
1109
|
+
readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1110
|
+
}, undefined>, undefined>;
|
|
1111
|
+
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1112
|
+
}, undefined>, undefined>, readonly []>;
|
|
1113
|
+
readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1114
|
+
readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
|
|
1115
|
+
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1116
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1117
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1118
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1119
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1120
|
+
}, undefined>, undefined>, readonly []>;
|
|
1121
|
+
readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1122
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
|
|
1123
|
+
}, undefined>, undefined>, undefined>;
|
|
1124
|
+
readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1125
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1126
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1127
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1128
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1129
|
+
readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
|
|
1130
|
+
}, undefined>, undefined>, readonly []>;
|
|
1131
|
+
readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1132
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1133
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1134
|
+
readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1135
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1136
|
+
readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1137
|
+
}, undefined>, undefined>, readonly []>;
|
|
1138
|
+
readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1139
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1140
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1141
|
+
readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1142
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1143
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1144
|
+
readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
|
|
1145
|
+
readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1146
|
+
}, undefined>, undefined>, readonly []>;
|
|
1147
|
+
readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1148
|
+
readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
|
|
1149
|
+
readonly doc: v.OptionalSchema<v.ObjectSchema<{
|
|
1150
|
+
readonly version: v.NumberSchema<undefined>;
|
|
1151
|
+
readonly hash: v.StringSchema<undefined>;
|
|
1152
|
+
readonly committedAt: v.NumberSchema<undefined>;
|
|
1153
|
+
}, undefined>, undefined>;
|
|
1154
|
+
readonly rev: v.NumberSchema<undefined>;
|
|
1155
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1156
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
1157
|
+
}, undefined>, undefined>, undefined>;
|
|
1072
1158
|
readonly infraSetup: v.OptionalSchema<v.ObjectSchema<{
|
|
1073
1159
|
readonly ephemeralEnvironments: v.PicklistSchema<["not_defined", "configured", "not_applicable"], undefined>;
|
|
1074
1160
|
readonly agentExecutor: v.PicklistSchema<["not_defined", "configured", "not_applicable"], undefined>;
|
|
@@ -1133,9 +1219,10 @@ export declare const getWorkspaceContract: {
|
|
|
1133
1219
|
readonly progress: v.NumberSchema<undefined>;
|
|
1134
1220
|
readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1135
1221
|
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1136
|
-
readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
|
|
1222
|
+
readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
|
|
1137
1223
|
readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1138
1224
|
readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1225
|
+
readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1139
1226
|
readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1140
1227
|
readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1141
1228
|
readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
@@ -2094,7 +2181,7 @@ export declare const getWorkspaceContract: {
|
|
|
2094
2181
|
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
2095
2182
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
2096
2183
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
2097
|
-
readonly resultView: v.OptionalSchema<v.PicklistSchema<readonly ["requirements-review", "clarity-review", "brainstorm", "tester", "human-test", "visual-confirm", "gate", "consensus-session", "generic-structured", "service-spec", "follow-ups", "merger"], undefined>, undefined>;
|
|
2184
|
+
readonly resultView: v.OptionalSchema<v.PicklistSchema<readonly ["requirements-review", "clarity-review", "brainstorm", "tester", "human-test", "visual-confirm", "gate", "consensus-session", "generic-structured", "service-spec", "follow-ups", "merger", "initiative-tracker"], undefined>, undefined>;
|
|
2098
2185
|
}, undefined>;
|
|
2099
2186
|
readonly container: v.BooleanSchema<undefined>;
|
|
2100
2187
|
}, undefined>, undefined>, undefined>;
|
|
@@ -2110,6 +2197,91 @@ export declare const getWorkspaceContract: {
|
|
|
2110
2197
|
}, undefined>, undefined>, undefined>;
|
|
2111
2198
|
readonly pipelineCatalogVersions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2112
2199
|
readonly mergePresetCatalogVersions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2200
|
+
readonly initiatives: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2201
|
+
readonly id: v.StringSchema<undefined>;
|
|
2202
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
2203
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2204
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
2205
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
2206
|
+
readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
2207
|
+
readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
2208
|
+
readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2209
|
+
readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
2210
|
+
readonly answer: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
2211
|
+
}, undefined>, undefined>, readonly []>;
|
|
2212
|
+
readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
2213
|
+
readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2214
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2215
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
2216
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
2217
|
+
readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
2218
|
+
}, undefined>, undefined>, readonly []>;
|
|
2219
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2220
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2221
|
+
readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2222
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
2223
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
|
|
2224
|
+
readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
|
|
2225
|
+
readonly estimate: v.OptionalSchema<v.ObjectSchema<{
|
|
2226
|
+
readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2227
|
+
readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2228
|
+
readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
2229
|
+
readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
2230
|
+
}, undefined>, undefined>;
|
|
2231
|
+
readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
2232
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
|
|
2233
|
+
readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2234
|
+
readonly pr: v.OptionalSchema<v.ObjectSchema<{
|
|
2235
|
+
readonly url: v.StringSchema<undefined>;
|
|
2236
|
+
readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2237
|
+
}, undefined>, undefined>;
|
|
2238
|
+
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
2239
|
+
}, undefined>, undefined>, readonly []>;
|
|
2240
|
+
readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2241
|
+
readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
|
|
2242
|
+
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2243
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2244
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2245
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2246
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
2247
|
+
}, undefined>, undefined>, readonly []>;
|
|
2248
|
+
readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2249
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
|
|
2250
|
+
}, undefined>, undefined>, undefined>;
|
|
2251
|
+
readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2252
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2253
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2254
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
2255
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
2256
|
+
readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
|
|
2257
|
+
}, undefined>, undefined>, readonly []>;
|
|
2258
|
+
readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2259
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2260
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2261
|
+
readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
2262
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
2263
|
+
readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
2264
|
+
}, undefined>, undefined>, readonly []>;
|
|
2265
|
+
readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2266
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
2267
|
+
readonly at: v.NumberSchema<undefined>;
|
|
2268
|
+
readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
2269
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
2270
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
2271
|
+
readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
|
|
2272
|
+
readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
2273
|
+
}, undefined>, undefined>, readonly []>;
|
|
2274
|
+
readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
2275
|
+
readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
|
|
2276
|
+
readonly doc: v.OptionalSchema<v.ObjectSchema<{
|
|
2277
|
+
readonly version: v.NumberSchema<undefined>;
|
|
2278
|
+
readonly hash: v.StringSchema<undefined>;
|
|
2279
|
+
readonly committedAt: v.NumberSchema<undefined>;
|
|
2280
|
+
}, undefined>, undefined>;
|
|
2281
|
+
readonly rev: v.NumberSchema<undefined>;
|
|
2282
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
2283
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
2284
|
+
}, undefined>, undefined>, undefined>;
|
|
2113
2285
|
readonly infraSetup: v.OptionalSchema<v.ObjectSchema<{
|
|
2114
2286
|
readonly ephemeralEnvironments: v.PicklistSchema<["not_defined", "configured", "not_applicable"], undefined>;
|
|
2115
2287
|
readonly agentExecutor: v.PicklistSchema<["not_defined", "configured", "not_applicable"], undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlC,CAAA"}
|
package/dist/snapshot.d.ts
CHANGED
|
@@ -37,9 +37,10 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
37
37
|
readonly progress: v.NumberSchema<undefined>;
|
|
38
38
|
readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
39
39
|
readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
-
readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
|
|
40
|
+
readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
|
|
41
41
|
readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
42
42
|
readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
43
|
+
readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
43
44
|
readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
44
45
|
readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
45
46
|
readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
@@ -1077,7 +1078,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1077
1078
|
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
1078
1079
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
1079
1080
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
1080
|
-
readonly resultView: v.OptionalSchema<v.PicklistSchema<readonly ["requirements-review", "clarity-review", "brainstorm", "tester", "human-test", "visual-confirm", "gate", "consensus-session", "generic-structured", "service-spec", "follow-ups", "merger"], undefined>, undefined>;
|
|
1081
|
+
readonly resultView: v.OptionalSchema<v.PicklistSchema<readonly ["requirements-review", "clarity-review", "brainstorm", "tester", "human-test", "visual-confirm", "gate", "consensus-session", "generic-structured", "service-spec", "follow-ups", "merger", "initiative-tracker"], undefined>, undefined>;
|
|
1081
1082
|
}, undefined>;
|
|
1082
1083
|
readonly container: v.BooleanSchema<undefined>;
|
|
1083
1084
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1131,6 +1132,97 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1131
1132
|
* symmetric across runtimes), optional on the wire for forward-compatibility.
|
|
1132
1133
|
*/
|
|
1133
1134
|
readonly mergePresetCatalogVersions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1135
|
+
/**
|
|
1136
|
+
* The workspace's initiatives (long-running multi-task bodies of work, each
|
|
1137
|
+
* anchored to an `initiative`-level block). Carried in the snapshot so the
|
|
1138
|
+
* board renders initiative cards + trackers on load. Attached by the facade
|
|
1139
|
+
* when the initiatives module is wired, so optional on the wire.
|
|
1140
|
+
*/
|
|
1141
|
+
readonly initiatives: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1142
|
+
readonly id: v.StringSchema<undefined>;
|
|
1143
|
+
readonly blockId: v.StringSchema<undefined>;
|
|
1144
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1145
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1146
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1147
|
+
readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1148
|
+
readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1149
|
+
readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1150
|
+
readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1151
|
+
readonly answer: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1152
|
+
}, undefined>, undefined>, readonly []>;
|
|
1153
|
+
readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
|
|
1154
|
+
readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1155
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1156
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1157
|
+
readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1158
|
+
readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
|
|
1159
|
+
}, undefined>, undefined>, readonly []>;
|
|
1160
|
+
readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1161
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1162
|
+
readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1163
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1164
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
|
|
1165
|
+
readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
|
|
1166
|
+
readonly estimate: v.OptionalSchema<v.ObjectSchema<{
|
|
1167
|
+
readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1168
|
+
readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1169
|
+
readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1170
|
+
readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1171
|
+
}, undefined>, undefined>;
|
|
1172
|
+
readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1173
|
+
readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
|
|
1174
|
+
readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1175
|
+
readonly pr: v.OptionalSchema<v.ObjectSchema<{
|
|
1176
|
+
readonly url: v.StringSchema<undefined>;
|
|
1177
|
+
readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1178
|
+
}, undefined>, undefined>;
|
|
1179
|
+
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1180
|
+
}, undefined>, undefined>, readonly []>;
|
|
1181
|
+
readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1182
|
+
readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
|
|
1183
|
+
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1184
|
+
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1185
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1186
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1187
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1188
|
+
}, undefined>, undefined>, readonly []>;
|
|
1189
|
+
readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1190
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
|
|
1191
|
+
}, undefined>, undefined>, undefined>;
|
|
1192
|
+
readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1193
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1194
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1195
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1196
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1197
|
+
readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
|
|
1198
|
+
}, undefined>, undefined>, readonly []>;
|
|
1199
|
+
readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1200
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1201
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1202
|
+
readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1203
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
1204
|
+
readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
1205
|
+
}, undefined>, undefined>, readonly []>;
|
|
1206
|
+
readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1207
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
|
|
1208
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1209
|
+
readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
|
|
1210
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
1211
|
+
readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
|
|
1212
|
+
readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
|
|
1213
|
+
readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
|
|
1214
|
+
}, undefined>, undefined>, readonly []>;
|
|
1215
|
+
readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
|
|
1216
|
+
readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
|
|
1217
|
+
readonly doc: v.OptionalSchema<v.ObjectSchema<{
|
|
1218
|
+
readonly version: v.NumberSchema<undefined>;
|
|
1219
|
+
readonly hash: v.StringSchema<undefined>;
|
|
1220
|
+
readonly committedAt: v.NumberSchema<undefined>;
|
|
1221
|
+
}, undefined>, undefined>;
|
|
1222
|
+
readonly rev: v.NumberSchema<undefined>;
|
|
1223
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1224
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
1225
|
+
}, undefined>, undefined>, undefined>;
|
|
1134
1226
|
/**
|
|
1135
1227
|
* Per-area infrastructure-setup status (ephemeral environments / agent executor / binary
|
|
1136
1228
|
* storage), computed server-side from whatever THIS deployment wired — so the SPA can raise
|
package/dist/snapshot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA6B5B,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;IAGlC;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WA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;;;;;;;;;;;IAEH;;;;;OAKG;;;;;;;;;IAEH;;;;;;;;OAQG;;;;;IAOH;;;OAGG;;;;IAEH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;IAGH;;;;OAIG;;;;;;;;;;;;;IAEH;;;;;;OAMG;;;;;;;;;;;;;IAEH;;;;;;;;;OASG;;;;QA3HH;;;;;WAKG;;;;;;QALH;;;;;WAKG;;;IAyHH;;;;;;;OAOG;;IAEH;;;;;;;OAOG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
package/dist/snapshot.js
CHANGED
|
@@ -14,6 +14,7 @@ import { workspaceSettingsSchema } from './workspace-settings.js';
|
|
|
14
14
|
import { customAgentKindSchema } from './agent-presentation.js';
|
|
15
15
|
import { infraEngineSchema } from './environments.js';
|
|
16
16
|
import { infraSetupSchema } from './infra-setup.js';
|
|
17
|
+
import { initiativeSchema } from './initiative.js';
|
|
17
18
|
// The full board snapshot returned by GET /workspaces/:id (and POST /workspaces).
|
|
18
19
|
// It lives in its own module because it references both ./entities and
|
|
19
20
|
// ./bootstrap, and ./bootstrap imports from ./entities — defining it in either
|
|
@@ -162,6 +163,13 @@ export const workspaceSnapshotSchema = v.object({
|
|
|
162
163
|
* symmetric across runtimes), optional on the wire for forward-compatibility.
|
|
163
164
|
*/
|
|
164
165
|
mergePresetCatalogVersions: v.optional(v.record(v.string(), v.number())),
|
|
166
|
+
/**
|
|
167
|
+
* The workspace's initiatives (long-running multi-task bodies of work, each
|
|
168
|
+
* anchored to an `initiative`-level block). Carried in the snapshot so the
|
|
169
|
+
* board renders initiative cards + trackers on load. Attached by the facade
|
|
170
|
+
* when the initiatives module is wired, so optional on the wire.
|
|
171
|
+
*/
|
|
172
|
+
initiatives: v.optional(v.array(initiativeSchema)),
|
|
165
173
|
/**
|
|
166
174
|
* Per-area infrastructure-setup status (ephemeral environments / agent executor / binary
|
|
167
175
|
* storage), computed server-side from whatever THIS deployment wired — so the SPA can raise
|
package/dist/snapshot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAA;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,gBAAgB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xE;;;;;OAKG;IACH,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAClD;;;;;;;OAOG;IACH,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;CACzC,CAAC,CAAA"}
|
|
@@ -37,12 +37,18 @@ export declare function frameAllowsVisualPipeline(frame: Pick<Block, 'id' | 'typ
|
|
|
37
37
|
*
|
|
38
38
|
* Only a binding with a NON-EMPTY `envVar` counts: an empty-`envVar` row is filtered out of the
|
|
39
39
|
* injected env (the frontend never receives that backend's URL, so its browser never calls it,
|
|
40
|
-
* so no cross-origin request to allow). Each contributing frontend emits
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
40
|
+
* so no cross-origin request to allow). Each contributing frontend emits `http://localhost:<servePort>`
|
|
41
|
+
* — the port the app is ACTUALLY served on (`resolveFrontendServePort`, which sanitizes a
|
|
42
|
+
* reserved-port collision to the default), so the injected CORS origin can't drift from the served
|
|
43
|
+
* port. Deduped + sorted for a stable comma-join.
|
|
44
|
+
*
|
|
45
|
+
* This one origin covers BOTH self-contained UI-test paths a frontend can drive against the service:
|
|
46
|
+
* - the `tester-ui` container, whose in-container browser serves the app at `localhost:<servePort>`, and
|
|
47
|
+
* - the browsable PREVIEW (local Docker family), whose host port is now PINNED to the serve port
|
|
48
|
+
* (`LocalPreviewTransport`), so a developer's browser reaches it at the same `localhost:<servePort>`.
|
|
49
|
+
* They share the origin, so a `previewEnabled` frontend needs no extra CORS entry. (Apple `container`
|
|
50
|
+
* reaches the preview at the VM's own IP — `http://<containerIP>:<servePort>` — which is not knowable
|
|
51
|
+
* ahead of provision, so that origin is never injected; only the localhost-pinnable Docker family is.)
|
|
46
52
|
*/
|
|
47
53
|
export declare function frontendOriginsForService(serviceFrameId: string, blocks: readonly Pick<Block, 'level' | 'type' | 'frontendConfig'>[]): string[];
|
|
48
54
|
//# sourceMappingURL=visual-pipeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visual-pipeline.d.ts","sourceRoot":"","sources":["../src/visual-pipeline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAepD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,cAAc,CAAA;AAE/C;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wBAAwB,CAAA;AAE9D,sFAAsF;AACtF,eAAO,MAAM,iBAAiB,+CAA6D,CAAA;AAE3F,yFAAyF;AACzF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,OAAO,CAIrF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM,CAAC,GAAG,SAAS,GAAG,IAAI,EACpD,MAAM,EAAE,SAAS,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,gBAAgB,CAAC,EAAE,GAClE,OAAO,CAWT;AAED
|
|
1
|
+
{"version":3,"file":"visual-pipeline.d.ts","sourceRoot":"","sources":["../src/visual-pipeline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAepD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,cAAc,CAAA;AAE/C;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,wBAAwB,CAAA;AAE9D,sFAAsF;AACtF,eAAO,MAAM,iBAAiB,+CAA6D,CAAA;AAE3F,yFAAyF;AACzF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,OAAO,CAIrF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAA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