@owlmeans/viable-common 0.0.47 → 0.0.48-rc.1

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.
Files changed (68) hide show
  1. package/README.md +2 -2
  2. package/agent-meta/manifest.json +2 -2
  3. package/agent-meta/skills/agent-presentation/SKILL.md +1 -1
  4. package/agent-meta/skills/viable-common/SKILL.md +20 -1
  5. package/build/blueprint/catalogue/types.d.ts +34 -0
  6. package/build/blueprint/catalogue/types.d.ts.map +1 -0
  7. package/build/{connect → blueprint/catalogue}/types.js.map +1 -1
  8. package/build/blueprint/index.d.ts +1 -0
  9. package/build/blueprint/index.d.ts.map +1 -1
  10. package/build/blueprint/index.js.map +1 -1
  11. package/build/connect/consts.d.ts +1 -0
  12. package/build/connect/consts.d.ts.map +1 -1
  13. package/build/connect/consts.js +1 -0
  14. package/build/connect/consts.js.map +1 -1
  15. package/build/connect/entrypoints.d.ts +2 -0
  16. package/build/connect/entrypoints.d.ts.map +1 -1
  17. package/build/connect/entrypoints.js +1 -0
  18. package/build/connect/entrypoints.js.map +1 -1
  19. package/build/connect/index.d.ts +1 -0
  20. package/build/connect/index.d.ts.map +1 -1
  21. package/build/connect/index.js.map +1 -1
  22. package/build/connect/references/types.d.ts +2 -0
  23. package/build/connect/references/types.d.ts.map +1 -1
  24. package/build/connect/references.d.ts.map +1 -1
  25. package/build/connect/references.js +1 -0
  26. package/build/connect/references.js.map +1 -1
  27. package/build/convert/consts.d.ts +1 -1
  28. package/build/convert/consts.js +1 -1
  29. package/build/convert/estimate/types.d.ts +20 -0
  30. package/build/convert/estimate/types.d.ts.map +1 -1
  31. package/build/convert/schemas.d.ts.map +1 -1
  32. package/build/convert/schemas.js +17 -1
  33. package/build/convert/schemas.js.map +1 -1
  34. package/build/slot/consts.d.ts +1 -0
  35. package/build/slot/consts.d.ts.map +1 -1
  36. package/build/slot/consts.js +1 -0
  37. package/build/slot/consts.js.map +1 -1
  38. package/package.json +6 -6
  39. package/src/blueprint/catalogue/types.ts +38 -0
  40. package/src/blueprint/index.ts +1 -0
  41. package/src/connect/consts.ts +1 -0
  42. package/src/connect/entrypoints.ts +5 -0
  43. package/src/connect/index.ts +1 -0
  44. package/src/connect/references/types.ts +2 -0
  45. package/src/connect/references.ts +2 -0
  46. package/src/convert/consts.ts +1 -1
  47. package/src/convert/estimate/types.ts +21 -0
  48. package/src/convert/schemas.ts +17 -1
  49. package/src/slot/consts.ts +1 -0
  50. package/build/connect/ops.d.ts +0 -189
  51. package/build/connect/ops.d.ts.map +0 -1
  52. package/build/connect/ops.js +0 -2
  53. package/build/connect/ops.js.map +0 -1
  54. package/build/connect/types.d.ts +0 -453
  55. package/build/connect/types.d.ts.map +0 -1
  56. package/build/intent/flow.d.ts +0 -17
  57. package/build/intent/flow.d.ts.map +0 -1
  58. package/build/intent/flow.js +0 -65
  59. package/build/intent/flow.js.map +0 -1
  60. package/build/planning/flows.d.ts +0 -34
  61. package/build/planning/flows.d.ts.map +0 -1
  62. package/build/planning/flows.js +0 -174
  63. package/build/planning/flows.js.map +0 -1
  64. package/build/skills/roles.d.ts +0 -43
  65. package/build/skills/roles.d.ts.map +0 -1
  66. package/build/skills/roles.js +0 -44
  67. package/build/skills/roles.js.map +0 -1
  68. /package/build/{connect → blueprint/catalogue}/types.js +0 -0
@@ -1,17 +0,0 @@
1
- import type { ShallowFlow } from '@owlmeans/flow';
2
- /**
3
- * The hand-off flow both sides walk.
4
- *
5
- * `compose` runs on the public site: the prompt is stashed and `handoff` carries the reference to
6
- * `land`, whose module is the platform's landing screen — so the site redirects to
7
- * `land`'s address with the payload as query. The landing then enters at `land` FRESH (the
8
- * reference arrives as `?ref=`, never as a serialized token, which the platform's own sign-in
9
- * parses from `?flow=` on every page), and either goes on to `review` (signed in) or parks the flow
10
- * with `suspendFlow` at `sign-in`, whose non-explicit way forward is `review` — the home screen —
11
- * so whichever sign-in method finishes lands there.
12
- *
13
- * The steps address CONCRETE entrypoint aliases, never `$`-prefixed references: this flow is never
14
- * the live `FlowService` model and nothing here needs `configureFlows`.
15
- */
16
- export declare const intentFlow: ShallowFlow;
17
- //# sourceMappingURL=flow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../src/intent/flow.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAKjD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,EAAE,WA6CxB,CAAA"}
@@ -1,65 +0,0 @@
1
- import { DISPATCHER } from '@owlmeans/auth';
2
- import { HOME } from '@owlmeans/context';
3
- import { INTENT_FLOW, INTENT_PAYLOAD_REF, intent, IntentFlowStep } from './consts.js';
4
- const payloadMap = { [INTENT_PAYLOAD_REF]: 0 };
5
- /**
6
- * The hand-off flow both sides walk.
7
- *
8
- * `compose` runs on the public site: the prompt is stashed and `handoff` carries the reference to
9
- * `land`, whose module is the platform's landing screen — so the site redirects to
10
- * `land`'s address with the payload as query. The landing then enters at `land` FRESH (the
11
- * reference arrives as `?ref=`, never as a serialized token, which the platform's own sign-in
12
- * parses from `?flow=` on every page), and either goes on to `review` (signed in) or parks the flow
13
- * with `suspendFlow` at `sign-in`, whose non-explicit way forward is `review` — the home screen —
14
- * so whichever sign-in method finishes lands there.
15
- *
16
- * The steps address CONCRETE entrypoint aliases, never `$`-prefixed references: this flow is never
17
- * the live `FlowService` model and nothing here needs `configureFlows`.
18
- */
19
- export const intentFlow = {
20
- flow: INTENT_FLOW,
21
- initialStep: IntentFlowStep.Compose,
22
- steps: {
23
- [IntentFlowStep.Compose]: {
24
- index: 0,
25
- step: IntentFlowStep.Compose,
26
- service: '',
27
- initial: true,
28
- payloadMap,
29
- transitions: {
30
- handoff: { transition: 'handoff', step: IntentFlowStep.Land },
31
- },
32
- },
33
- [IntentFlowStep.Land]: {
34
- index: 1,
35
- step: IntentFlowStep.Land,
36
- service: '',
37
- module: intent.landing,
38
- initial: true,
39
- payloadMap,
40
- transitions: {
41
- review: { transition: 'review', step: IntentFlowStep.Review },
42
- 'sign-in': { transition: 'sign-in', step: IntentFlowStep.SignIn, explicit: true },
43
- },
44
- },
45
- [IntentFlowStep.SignIn]: {
46
- index: 2,
47
- step: IntentFlowStep.SignIn,
48
- service: '',
49
- module: DISPATCHER,
50
- payloadMap,
51
- transitions: {
52
- next: { transition: 'next', step: IntentFlowStep.Review },
53
- },
54
- },
55
- [IntentFlowStep.Review]: {
56
- index: 3,
57
- step: IntentFlowStep.Review,
58
- service: '',
59
- module: HOME,
60
- payloadMap,
61
- transitions: {},
62
- },
63
- },
64
- };
65
- //# sourceMappingURL=flow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flow.js","sourceRoot":"","sources":["../../src/intent/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAExC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAErF,MAAM,UAAU,GAAG,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAA;AAE9C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,UAAU,GAAgB;IACrC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,cAAc,CAAC,OAAO;IACnC,KAAK,EAAE;QACL,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;YACxB,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,cAAc,CAAC,OAAO;YAC5B,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,IAAI;YACb,UAAU;YACV,WAAW,EAAE;gBACX,OAAO,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,IAAI,EAAE;aAC9D;SACF;QACD,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;YACrB,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,MAAM,CAAC,OAAO;YACtB,OAAO,EAAE,IAAI;YACb,UAAU;YACV,WAAW,EAAE;gBACX,MAAM,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,EAAE;gBAC7D,SAAS,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;aAClF;SACF;QACD,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE;YACvB,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,cAAc,CAAC,MAAM;YAC3B,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,UAAU;YAClB,UAAU;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,EAAE;aAC1D;SACF;QACD,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE;YACvB,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,cAAc,CAAC,MAAM;YAC3B,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,IAAI;YACZ,UAAU;YACV,WAAW,EAAE,EAAE;SAChB;KACF;CACF,CAAA"}
@@ -1,34 +0,0 @@
1
- import type { AnyTypeSchema, ProjectTypeSchema, RelationshipType, SpecificationSlot, StatusFlowSchema, WorkcardTypeSchema } from '@owlmeans/planning';
2
- /**
3
- * The story flow.
4
- *
5
- * `failed` maps to PLANNED: a failed story is work still to do, so "done" is the closed count and
6
- * a retry is simply `start` again. `reset` from anywhere is the manual recovery — the one move a
7
- * completed story still accepts.
8
- */
9
- export declare const VIABLE_STORY_FLOW_SCHEMA: StatusFlowSchema;
10
- /**
11
- * The project flow.
12
- *
13
- * A create lands at `draft`; confirming the brief is `confirm`; the end of an initialization is
14
- * `activate`. A reinitialization and a failed initialization are SLOT facts, not transitions, and
15
- * destroying a project is a `delete` plus the platform's cascade — never `archive`.
16
- */
17
- export declare const VIABLE_PROJECT_FLOW_SCHEMA: StatusFlowSchema;
18
- /** A document is written or revised; it has no lifecycle to move through. */
19
- export declare const VIABLE_SPEC_FLOW_SCHEMA: StatusFlowSchema;
20
- /** The brief a person confirms, and the plan the scaffold draws from it. */
21
- export declare const VIABLE_PROJECT_SLOTS: SpecificationSlot[];
22
- /** A story's design — the payload the implementation stage consumes. */
23
- export declare const VIABLE_STORY_SLOTS: SpecificationSlot[];
24
- export declare const VIABLE_STORY_RELATIONSHIPS: RelationshipType[];
25
- export declare const VIABLE_PROJECT_TYPE_SCHEMA: ProjectTypeSchema;
26
- export declare const VIABLE_STORY_TYPE_SCHEMA: WorkcardTypeSchema;
27
- export declare const VIABLE_SPEC_TYPE_SCHEMA: WorkcardTypeSchema;
28
- /** Registered so their prefixes and flow are decided once; not creatable under a project yet. */
29
- export declare const VIABLE_RESERVED_TYPE_SCHEMAS: WorkcardTypeSchema[];
30
- /** Every Viable type — what a planning plugin registers. */
31
- export declare const VIABLE_TYPE_SCHEMAS: AnyTypeSchema[];
32
- /** Every Viable flow — registered beside the types. */
33
- export declare const VIABLE_FLOW_SCHEMAS: StatusFlowSchema[];
34
- //# sourceMappingURL=flows.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../src/planning/flows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EACvF,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAgB3B;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBA6BtC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,EAAE,gBA6BxC,CAAA;AAED,6EAA6E;AAC7E,eAAO,MAAM,uBAAuB,EAAE,gBAOrC,CAAA;AAMD,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB,EAAE,iBAAiB,EAOnD,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,EAOjD,CAAA;AAKD,eAAO,MAAM,0BAA0B,EAAE,gBAAgB,EAIxD,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,iBAUxC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,kBAUtC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,kBAOrC,CAAA;AAaD,iGAAiG;AACjG,eAAO,MAAM,4BAA4B,EAAE,kBAAkB,EAI5D,CAAA;AAED,4DAA4D;AAC5D,eAAO,MAAM,mBAAmB,EAAE,aAAa,EAK9C,CAAA;AAED,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,EAIjD,CAAA"}
@@ -1,174 +0,0 @@
1
- import { IntrinsicPolicy, IntrinsicStatus, SpecificationFormat, WorkcardKind } from '@owlmeans/planning';
2
- import { STORY_DESIGN_VERSION } from '../design/consts.js';
3
- import { StoryDesignSchema } from '../design/schemas.js';
4
- import { ScaffoldPlanSchema } from '../scaffold/schemas.js';
5
- import { VIABLE_BUG_CODE, VIABLE_BUG_TYPE, VIABLE_DESIGN_REVISIONS_KEPT, VIABLE_IMPROVEMENT_CODE, VIABLE_IMPROVEMENT_TYPE, VIABLE_PROJECT_CODE, VIABLE_PROJECT_FLOW, VIABLE_PROJECT_TYPE, VIABLE_REQUIREMENT_CODE, VIABLE_REQUIREMENT_TYPE, VIABLE_SPEC_FLOW, VIABLE_SPEC_TYPE, VIABLE_STORY_CODE, VIABLE_STORY_FLOW, VIABLE_STORY_TYPE, ViableProjectStatus, ViableProjectTransition, ViableRelationship, ViableSpecCategory, ViableSpecStatus, ViableStoryStatus, ViableStoryTransition, ViableTone, } from './consts.js';
6
- import { ViableOpenFieldsSchema, ViableProjectFieldsSchema, ViableSpecFieldsSchema, ViableStoryFieldsSchema, } from './schemas.js';
7
- /**
8
- * The story flow.
9
- *
10
- * `failed` maps to PLANNED: a failed story is work still to do, so "done" is the closed count and
11
- * a retry is simply `start` again. `reset` from anywhere is the manual recovery — the one move a
12
- * completed story still accepts.
13
- */
14
- export const VIABLE_STORY_FLOW_SCHEMA = {
15
- id: VIABLE_STORY_FLOW,
16
- version: 1,
17
- statuses: [
18
- { key: ViableStoryStatus.Planned, intrinsic: IntrinsicStatus.Planned, initial: true, tone: ViableTone.Blue },
19
- { key: ViableStoryStatus.InProgress, intrinsic: IntrinsicStatus.InProgress, tone: ViableTone.Yellow },
20
- { key: ViableStoryStatus.Completed, intrinsic: IntrinsicStatus.Closed, tone: ViableTone.Green },
21
- { key: ViableStoryStatus.Failed, intrinsic: IntrinsicStatus.Planned, tone: ViableTone.Red },
22
- ],
23
- transitions: [
24
- {
25
- name: ViableStoryTransition.Start,
26
- from: [ViableStoryStatus.Planned, ViableStoryStatus.Failed],
27
- to: ViableStoryStatus.InProgress,
28
- explicit: true,
29
- },
30
- {
31
- name: ViableStoryTransition.Complete,
32
- from: [ViableStoryStatus.InProgress],
33
- to: ViableStoryStatus.Completed,
34
- explicit: true,
35
- },
36
- {
37
- name: ViableStoryTransition.Fail,
38
- from: [ViableStoryStatus.InProgress],
39
- to: ViableStoryStatus.Failed,
40
- },
41
- { name: ViableStoryTransition.Reset, from: '*', to: ViableStoryStatus.Planned, explicit: true },
42
- ],
43
- };
44
- /**
45
- * The project flow.
46
- *
47
- * A create lands at `draft`; confirming the brief is `confirm`; the end of an initialization is
48
- * `activate`. A reinitialization and a failed initialization are SLOT facts, not transitions, and
49
- * destroying a project is a `delete` plus the platform's cascade — never `archive`.
50
- */
51
- export const VIABLE_PROJECT_FLOW_SCHEMA = {
52
- id: VIABLE_PROJECT_FLOW,
53
- version: 1,
54
- statuses: [
55
- { key: ViableProjectStatus.Draft, intrinsic: IntrinsicStatus.Planned, initial: true, tone: ViableTone.Blue },
56
- { key: ViableProjectStatus.Confirmed, intrinsic: IntrinsicStatus.InProgress, tone: ViableTone.Yellow },
57
- { key: ViableProjectStatus.Active, intrinsic: IntrinsicStatus.InProgress, tone: ViableTone.Green },
58
- { key: ViableProjectStatus.Archived, intrinsic: IntrinsicStatus.Closed, tone: ViableTone.Neutral },
59
- ],
60
- transitions: [
61
- {
62
- name: ViableProjectTransition.Confirm,
63
- from: [ViableProjectStatus.Draft],
64
- to: ViableProjectStatus.Confirmed,
65
- explicit: true,
66
- },
67
- {
68
- name: ViableProjectTransition.Activate,
69
- from: [ViableProjectStatus.Confirmed],
70
- to: ViableProjectStatus.Active,
71
- },
72
- { name: ViableProjectTransition.Archive, from: '*', to: ViableProjectStatus.Archived, explicit: true },
73
- {
74
- name: ViableProjectTransition.Reopen,
75
- from: [ViableProjectStatus.Archived],
76
- to: ViableProjectStatus.Active,
77
- explicit: true,
78
- },
79
- ],
80
- };
81
- /** A document is written or revised; it has no lifecycle to move through. */
82
- export const VIABLE_SPEC_FLOW_SCHEMA = {
83
- id: VIABLE_SPEC_FLOW,
84
- version: 1,
85
- statuses: [
86
- { key: ViableSpecStatus.Current, intrinsic: IntrinsicStatus.Closed, initial: true, tone: ViableTone.Neutral },
87
- ],
88
- transitions: [],
89
- };
90
- const slot = (category, format, extra = {}) => ({ category, format, type: VIABLE_SPEC_TYPE, ...extra });
91
- /** The brief a person confirms, and the plan the scaffold draws from it. */
92
- export const VIABLE_PROJECT_SLOTS = [
93
- slot(ViableSpecCategory.Specification, SpecificationFormat.Markdown, { required: true }),
94
- slot(ViableSpecCategory.Vision, SpecificationFormat.Markdown),
95
- slot(ViableSpecCategory.DesignSystem, SpecificationFormat.Markdown),
96
- slot(ViableSpecCategory.Scaffold, SpecificationFormat.Json, {
97
- revisioned: true, keepRevisions: VIABLE_DESIGN_REVISIONS_KEPT, schema: ScaffoldPlanSchema,
98
- }),
99
- ];
100
- /** A story's design — the payload the implementation stage consumes. */
101
- export const VIABLE_STORY_SLOTS = [
102
- slot(ViableSpecCategory.Design, SpecificationFormat.Json, {
103
- revisioned: true,
104
- keepRevisions: VIABLE_DESIGN_REVISIONS_KEPT,
105
- schema: StoryDesignSchema,
106
- version: STORY_DESIGN_VERSION,
107
- }),
108
- ];
109
- const storyLink = (name) => ({ name, from: [VIABLE_STORY_TYPE], to: [VIABLE_STORY_TYPE], single: true });
110
- export const VIABLE_STORY_RELATIONSHIPS = [
111
- storyLink(ViableRelationship.Follows),
112
- storyLink(ViableRelationship.SharesWidget),
113
- storyLink(ViableRelationship.SharesScreen),
114
- ];
115
- export const VIABLE_PROJECT_TYPE_SCHEMA = {
116
- type: VIABLE_PROJECT_TYPE,
117
- kind: WorkcardKind.Project,
118
- version: 1,
119
- fields: ViableProjectFieldsSchema,
120
- flows: [VIABLE_PROJECT_FLOW],
121
- intrinsic: IntrinsicPolicy.Primary,
122
- specifications: VIABLE_PROJECT_SLOTS,
123
- code: VIABLE_PROJECT_CODE,
124
- cardTypes: [VIABLE_STORY_TYPE],
125
- };
126
- export const VIABLE_STORY_TYPE_SCHEMA = {
127
- type: VIABLE_STORY_TYPE,
128
- kind: WorkcardKind.Card,
129
- version: 1,
130
- fields: ViableStoryFieldsSchema,
131
- flows: [VIABLE_STORY_FLOW],
132
- intrinsic: IntrinsicPolicy.Primary,
133
- specifications: VIABLE_STORY_SLOTS,
134
- relationships: VIABLE_STORY_RELATIONSHIPS,
135
- code: VIABLE_STORY_CODE,
136
- };
137
- export const VIABLE_SPEC_TYPE_SCHEMA = {
138
- type: VIABLE_SPEC_TYPE,
139
- kind: WorkcardKind.Specification,
140
- version: 1,
141
- fields: ViableSpecFieldsSchema,
142
- flows: [VIABLE_SPEC_FLOW],
143
- specifications: [],
144
- };
145
- const reserved = (type, code) => ({
146
- type,
147
- kind: WorkcardKind.Card,
148
- version: 1,
149
- fields: ViableOpenFieldsSchema,
150
- flows: [VIABLE_STORY_FLOW],
151
- intrinsic: IntrinsicPolicy.Primary,
152
- specifications: [],
153
- code,
154
- });
155
- /** Registered so their prefixes and flow are decided once; not creatable under a project yet. */
156
- export const VIABLE_RESERVED_TYPE_SCHEMAS = [
157
- reserved(VIABLE_BUG_TYPE, VIABLE_BUG_CODE),
158
- reserved(VIABLE_IMPROVEMENT_TYPE, VIABLE_IMPROVEMENT_CODE),
159
- reserved(VIABLE_REQUIREMENT_TYPE, VIABLE_REQUIREMENT_CODE),
160
- ];
161
- /** Every Viable type — what a planning plugin registers. */
162
- export const VIABLE_TYPE_SCHEMAS = [
163
- VIABLE_PROJECT_TYPE_SCHEMA,
164
- VIABLE_STORY_TYPE_SCHEMA,
165
- VIABLE_SPEC_TYPE_SCHEMA,
166
- ...VIABLE_RESERVED_TYPE_SCHEMAS,
167
- ];
168
- /** Every Viable flow — registered beside the types. */
169
- export const VIABLE_FLOW_SCHEMAS = [
170
- VIABLE_PROJECT_FLOW_SCHEMA,
171
- VIABLE_STORY_FLOW_SCHEMA,
172
- VIABLE_SPEC_FLOW_SCHEMA,
173
- ];
174
- //# sourceMappingURL=flows.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flows.js","sourceRoot":"","sources":["../../src/planning/flows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAKxG,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,EACL,eAAe,EAAE,eAAe,EAAE,4BAA4B,EAAE,uBAAuB,EACvF,uBAAuB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,mBAAmB,EACtF,uBAAuB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,gBAAgB,EACpF,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAC5E,uBAAuB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,E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AO;IAClC,cAAc,EAAE,kBAAkB;IAClC,aAAa,EAAE,0BAA0B;IACzC,IAAI,EAAE,iBAAiB;CACxB,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAuB;IACzD,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,YAAY,CAAC,aAAa;IAChC,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,sBAAsB;IAC9B,KAAK,EAAE,CAAC,gBAAgB,CAAC;IACzB,cAAc,EAAE,EAAE;CACnB,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,IAAgC,EAAsB,EAAE,CAAC,CAAC;IACxF,IAAI;IACJ,IAAI,EAAE,YAAY,CAAC,IAAI;IACvB,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,sBAAsB;IAC9B,KAAK,EAAE,CAAC,iBAAiB,CAAC;IAC1B,SAAS,EAAE,eAAe,CAAC,OAAO;IAClC,cAAc,EAAE,EAAE;IAClB,IAAI;CACL,CAAC,CAAA;AAEF,iGAAiG;AACjG,MAAM,CAAC,MAAM,4BAA4B,GAAyB;IAChE,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAC1D,QAAQ,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;CAC3D,CAAA;AAED,4DAA4D;AAC5D,MAAM,CAAC,MAAM,mBAAmB,GAAoB;IAClD,0BAA0B;IAC1B,wBAAwB;IACxB,uBAAuB;IACvB,GAAG,4BAA4B;CAChC,CAAA;AAED,uDAAuD;AACvD,MAAM,CAAC,MAAM,mBAAmB,GAAuB;IACrD,0BAA0B;IAC1B,wBAAwB;IACxB,uBAAuB;CACxB,CAAA"}
@@ -1,43 +0,0 @@
1
- /**
2
- * Who the model is being asked to be.
3
- *
4
- * A persona is per HELPER, not per model role: `ModelRole` selects which model answers,
5
- * this selects what it is told it does. Two helpers can share a model and need different
6
- * personas, and the same persona can run on a cheap or an expensive model depending on
7
- * the effort tier — keeping the two axes separate is what makes that possible.
8
- */
9
- export declare enum ViablePersona {
10
- BusinessAnalyst = "business-analyst",
11
- ProductNaming = "product-naming",
12
- /** Decides what KIND of product a prompt describes — which blueprint case builds it. */
13
- ProductArchitect = "product-architect",
14
- UxDesigner = "ux-designer",
15
- VisualDesigner = "visual-designer",
16
- LayoutArchitect = "layout-architect",
17
- ComponentArchitect = "component-architect",
18
- StateArchitect = "state-architect",
19
- NavigationArchitect = "navigation-architect",
20
- DomainTypesArchitect = "domain-types-architect",
21
- AccessArchitect = "access-architect",
22
- ApiArchitect = "api-architect",
23
- DatalayerArchitect = "datalayer-architect",
24
- BackendDomainArchitect = "backend-domain-architect",
25
- CommonCoder = "common-coder",
26
- UiStateCoder = "ui-state-coder",
27
- UiViewCoder = "ui-view-coder",
28
- UiNavCoder = "ui-nav-coder",
29
- DatalayerCoder = "datalayer-coder",
30
- ApiCoder = "api-coder",
31
- BackendModelCoder = "backend-model-coder",
32
- /** Decides whether a story needs a queue, a worker or an agent — and usually decides it does not. */
33
- RuntimeArchitect = "runtime-architect",
34
- /** Writes queue declarations, job processors and the application's own agents. */
35
- WorkerCoder = "worker-coder",
36
- FreeFlightCoder = "free-flight-coder",
37
- Fixer = "fixer",
38
- Orchestrator = "orchestrator",
39
- SourceExtractor = "source-extractor",
40
- DeclarationLookup = "declaration-lookup",
41
- FixAgent = "fix-agent"
42
- }
43
- //# sourceMappingURL=roles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../src/skills/roles.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,oBAAY,aAAa;IACvB,eAAe,qBAAqB;IACpC,aAAa,mBAAmB;IAChC,wFAAwF;IACxF,gBAAgB,sBAAsB;IACtC,UAAU,gBAAgB;IAC1B,cAAc,oBAAoB;IAElC,eAAe,qBAAqB;IACpC,kBAAkB,wBAAwB;IAC1C,cAAc,oBAAoB;IAClC,mBAAmB,yBAAyB;IAC5C,oBAAoB,2BAA2B;IAC/C,eAAe,qBAAqB;IACpC,YAAY,kBAAkB;IAC9B,kBAAkB,wBAAwB;IAC1C,sBAAsB,6BAA6B;IAEnD,WAAW,iBAAiB;IAC5B,YAAY,mBAAmB;IAC/B,WAAW,kBAAkB;IAC7B,UAAU,iBAAiB;IAC3B,cAAc,oBAAoB;IAClC,QAAQ,cAAc;IACtB,iBAAiB,wBAAwB;IACzC,qGAAqG;IACrG,gBAAgB,sBAAsB;IACtC,kFAAkF;IAClF,WAAW,iBAAiB;IAC5B,eAAe,sBAAsB;IAErC,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,eAAe,qBAAqB;IACpC,iBAAiB,uBAAuB;IACxC,QAAQ,cAAc;CACvB"}
@@ -1,44 +0,0 @@
1
- /**
2
- * Who the model is being asked to be.
3
- *
4
- * A persona is per HELPER, not per model role: `ModelRole` selects which model answers,
5
- * this selects what it is told it does. Two helpers can share a model and need different
6
- * personas, and the same persona can run on a cheap or an expensive model depending on
7
- * the effort tier — keeping the two axes separate is what makes that possible.
8
- */
9
- export var ViablePersona;
10
- (function (ViablePersona) {
11
- ViablePersona["BusinessAnalyst"] = "business-analyst";
12
- ViablePersona["ProductNaming"] = "product-naming";
13
- /** Decides what KIND of product a prompt describes — which blueprint case builds it. */
14
- ViablePersona["ProductArchitect"] = "product-architect";
15
- ViablePersona["UxDesigner"] = "ux-designer";
16
- ViablePersona["VisualDesigner"] = "visual-designer";
17
- ViablePersona["LayoutArchitect"] = "layout-architect";
18
- ViablePersona["ComponentArchitect"] = "component-architect";
19
- ViablePersona["StateArchitect"] = "state-architect";
20
- ViablePersona["NavigationArchitect"] = "navigation-architect";
21
- ViablePersona["DomainTypesArchitect"] = "domain-types-architect";
22
- ViablePersona["AccessArchitect"] = "access-architect";
23
- ViablePersona["ApiArchitect"] = "api-architect";
24
- ViablePersona["DatalayerArchitect"] = "datalayer-architect";
25
- ViablePersona["BackendDomainArchitect"] = "backend-domain-architect";
26
- ViablePersona["CommonCoder"] = "common-coder";
27
- ViablePersona["UiStateCoder"] = "ui-state-coder";
28
- ViablePersona["UiViewCoder"] = "ui-view-coder";
29
- ViablePersona["UiNavCoder"] = "ui-nav-coder";
30
- ViablePersona["DatalayerCoder"] = "datalayer-coder";
31
- ViablePersona["ApiCoder"] = "api-coder";
32
- ViablePersona["BackendModelCoder"] = "backend-model-coder";
33
- /** Decides whether a story needs a queue, a worker or an agent — and usually decides it does not. */
34
- ViablePersona["RuntimeArchitect"] = "runtime-architect";
35
- /** Writes queue declarations, job processors and the application's own agents. */
36
- ViablePersona["WorkerCoder"] = "worker-coder";
37
- ViablePersona["FreeFlightCoder"] = "free-flight-coder";
38
- ViablePersona["Fixer"] = "fixer";
39
- ViablePersona["Orchestrator"] = "orchestrator";
40
- ViablePersona["SourceExtractor"] = "source-extractor";
41
- ViablePersona["DeclarationLookup"] = "declaration-lookup";
42
- ViablePersona["FixAgent"] = "fix-agent";
43
- })(ViablePersona || (ViablePersona = {}));
44
- //# sourceMappingURL=roles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../src/skills/roles.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,aAoCX;AApCD,WAAY,aAAa;IACvB,qDAAoC,CAAA;IACpC,iDAAgC,CAAA;IAChC,wFAAwF;IACxF,uDAAsC,CAAA;IACtC,2CAA0B,CAAA;IAC1B,mDAAkC,CAAA;IAElC,qDAAoC,CAAA;IACpC,2DAA0C,CAAA;IAC1C,mDAAkC,CAAA;IAClC,6DAA4C,CAAA;IAC5C,gEAA+C,CAAA;IAC/C,qDAAoC,CAAA;IACpC,+CAA8B,CAAA;IAC9B,2DAA0C,CAAA;IAC1C,oEAAmD,CAAA;IAEnD,6CAA4B,CAAA;IAC5B,gDAA+B,CAAA;IAC/B,8CAA6B,CAAA;IAC7B,4CAA2B,CAAA;IAC3B,mDAAkC,CAAA;IAClC,uCAAsB,CAAA;IACtB,0DAAyC,CAAA;IACzC,qGAAqG;IACrG,uDAAsC,CAAA;IACtC,kFAAkF;IAClF,6CAA4B,CAAA;IAC5B,sDAAqC,CAAA;IAErC,gCAAe,CAAA;IACf,8CAA6B,CAAA;IAC7B,qDAAoC,CAAA;IACpC,yDAAwC,CAAA;IACxC,uCAAsB,CAAA;AACxB,CAAC,EApCW,aAAa,KAAb,aAAa,QAoCxB"}
File without changes