@owlmeans/viable-common 0.0.47 → 0.0.48-rc.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/README.md +2 -2
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/agent-presentation/SKILL.md +1 -1
- package/agent-meta/skills/viable-common/SKILL.md +1 -1
- package/package.json +6 -6
- package/build/connect/ops.d.ts +0 -189
- package/build/connect/ops.d.ts.map +0 -1
- package/build/connect/ops.js +0 -2
- package/build/connect/ops.js.map +0 -1
- package/build/connect/types.d.ts +0 -453
- package/build/connect/types.d.ts.map +0 -1
- package/build/connect/types.js +0 -2
- package/build/connect/types.js.map +0 -1
- package/build/intent/flow.d.ts +0 -17
- package/build/intent/flow.d.ts.map +0 -1
- package/build/intent/flow.js +0 -65
- package/build/intent/flow.js.map +0 -1
- package/build/planning/flows.d.ts +0 -34
- package/build/planning/flows.d.ts.map +0 -1
- package/build/planning/flows.js +0 -174
- package/build/planning/flows.js.map +0 -1
- package/build/skills/roles.d.ts +0 -43
- package/build/skills/roles.d.ts.map +0 -1
- package/build/skills/roles.js +0 -44
- package/build/skills/roles.js.map +0 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ the Viable platform has no use for it. The package's skills are `viable-common`
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
bun add @owlmeans/viable-common@^0.0.
|
|
18
|
+
bun add @owlmeans/viable-common@^0.0.48-rc.0
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## What is in it
|
|
@@ -209,7 +209,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
209
209
|
your project's skill store (`.agents/skills/`):
|
|
210
210
|
|
|
211
211
|
```sh
|
|
212
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
212
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.52
|
|
213
213
|
```
|
|
214
214
|
|
|
215
215
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/viable-common",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"version": "0.0.48-rc.0",
|
|
5
|
+
"generatedAt": "2026-10-08T21:25:50.369Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -6,7 +6,7 @@ description: Shared, runtime-free taxonomy for presenting OwlMeans Viable agent
|
|
|
6
6
|
|
|
7
7
|
# Agent output presentation
|
|
8
8
|
|
|
9
|
-
**Install:** `"@owlmeans/viable-common": "^0.0.
|
|
9
|
+
**Install:** `"@owlmeans/viable-common": "^0.0.48-rc.0"` in `dependencies`
|
|
10
10
|
|
|
11
11
|
`@owlmeans/viable-common`'s `agent/presentation.ts` owns the browser-safe vocabulary for agent
|
|
12
12
|
output. Keep the server and every client on `agentPresentationHelper.classifyAgentMessage()`; consumers may refine a
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/viable-common
|
|
9
9
|
|
|
10
10
|
**Layer:** Cross-cutting domain (contracts only)
|
|
11
|
-
**Install:** `"@owlmeans/viable-common": "^0.0.
|
|
11
|
+
**Install:** `"@owlmeans/viable-common": "^0.0.48-rc.0"` in `dependencies`
|
|
12
12
|
**Subpaths:** `.` · `./slot` · `./connect` · `./convert` · `./integrity` · `./intent` · `./legal` · `./iam-console` — the barrel
|
|
13
13
|
re-exports every subpath except `./intent`.
|
|
14
14
|
**Runtime-free:** no `@langchain/*`, no filesystem, no Ajv at run time (a devDependency, for the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/viable-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Runtime-free contracts of the OwlMeans Viable platform — the analysis, design and metadata shapes of a generated project, its target-shape manifest, the slot command vocabulary, the connector protocol, the owner console's IAM contract and the conversion vocabulary, and the intent-first hand-off from the public site to the platform.",
|
|
6
6
|
"type": "module",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"typescript": "^7.0.2"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@owlmeans/agent-common": "^0.1.18-rc.
|
|
84
|
-
"@owlmeans/auth": "^0.1.18-rc.
|
|
85
|
-
"@owlmeans/auth-common": "^0.1.18-rc.
|
|
83
|
+
"@owlmeans/agent-common": "^0.1.18-rc.49",
|
|
84
|
+
"@owlmeans/auth": "^0.1.18-rc.41",
|
|
85
|
+
"@owlmeans/auth-common": "^0.1.18-rc.49",
|
|
86
86
|
"@owlmeans/context": "^0.1.18-rc.34",
|
|
87
87
|
"@owlmeans/entrypoint": "^0.1.18-rc.41",
|
|
88
88
|
"@owlmeans/error": "^0.1.18-rc.38",
|
|
89
89
|
"@owlmeans/flow": "^0.1.18-rc.45",
|
|
90
|
-
"@owlmeans/iam": "^0.1.18-rc.
|
|
90
|
+
"@owlmeans/iam": "^0.1.18-rc.52",
|
|
91
91
|
"@owlmeans/llm-common": "^0.1.18-rc.39",
|
|
92
|
-
"@owlmeans/planning": "^0.1.18-rc.
|
|
92
|
+
"@owlmeans/planning": "^0.1.18-rc.21",
|
|
93
93
|
"@owlmeans/resource": "^0.1.18-rc.40",
|
|
94
94
|
"@owlmeans/route": "^0.1.18-rc.35"
|
|
95
95
|
},
|
package/build/connect/ops.d.ts
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import type { SlotCommandPayload } from '../slot/index.js';
|
|
2
|
-
import type { ConnectInquiryKind, ConnectOpErrorKind, ConnectOpKind, ModelTaskMode, ModelTaskResultKind, ModelTaskRole, ModelTier } from './consts.js';
|
|
3
|
-
import type { ConnectServices } from './types.js';
|
|
4
|
-
/**
|
|
5
|
-
* One thing the platform asks a connector to do.
|
|
6
|
-
*
|
|
7
|
-
* Operations are addressed to a PROJECT, not to a session: a connector that restarts mid-run
|
|
8
|
-
* re-attaches and is handed whatever is still pending, so an MCP server dying does not kill a
|
|
9
|
-
* pipeline that is minutes into its work. `sessionId` records which session it was published to,
|
|
10
|
-
* for tracing and for the redelivery counter — never for routing a result back.
|
|
11
|
-
*/
|
|
12
|
-
export interface ConnectOp {
|
|
13
|
-
id: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
sessionId: string;
|
|
16
|
-
kind: ConnectOpKind;
|
|
17
|
-
payload: SlotCommandPayload | ModelTask | ConfigurePayload | InquiryPayload;
|
|
18
|
-
createdAt: string;
|
|
19
|
-
/** When the asker stops waiting. A connector past this may skip the work and say so. */
|
|
20
|
-
deadlineAt: string;
|
|
21
|
-
/** How many times this op has been delivered. > 1 means a connector reconnected. */
|
|
22
|
-
attempt: number;
|
|
23
|
-
deliveredAt?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* The answer to exactly one operation.
|
|
27
|
-
*
|
|
28
|
-
* `ok: false` with `kind: 'malformed'` is a RETRYABLE outcome — the platform asks again, with the
|
|
29
|
-
* problem quoted back. `'unavailable'` says the connector cannot do this at all and the run should
|
|
30
|
-
* fail rather than spin.
|
|
31
|
-
*/
|
|
32
|
-
export interface ConnectOpResult {
|
|
33
|
-
opId: string;
|
|
34
|
-
sessionId: string;
|
|
35
|
-
ok: boolean;
|
|
36
|
-
value?: unknown;
|
|
37
|
-
error?: ConnectOpError;
|
|
38
|
-
}
|
|
39
|
-
export interface ConnectOpError {
|
|
40
|
-
type: string;
|
|
41
|
-
message: string;
|
|
42
|
-
kind?: ConnectOpErrorKind;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* The configuration a local target needs, as file CONTENT rather than as keys.
|
|
46
|
-
*
|
|
47
|
-
* The platform composes it — it is the only side that knows the OIDC client, its secret and the
|
|
48
|
-
* redirect URIs — and the connector writes it into the managed block of each named file, leaving
|
|
49
|
-
* every line the user added alone. `probe` names the services the platform wants to know about
|
|
50
|
-
* before it asks for a database migration or a boot check.
|
|
51
|
-
*/
|
|
52
|
-
export interface ConfigurePayload {
|
|
53
|
-
files: ConfigureFile[];
|
|
54
|
-
probe: Array<keyof ConnectServices>;
|
|
55
|
-
}
|
|
56
|
-
export interface ConfigureFile {
|
|
57
|
-
/** Target-root-relative, e.g. `.env` or `sources/web/.env`. */
|
|
58
|
-
path: string;
|
|
59
|
-
/** The managed block's content. Written between the connector's own markers. */
|
|
60
|
-
content: string;
|
|
61
|
-
}
|
|
62
|
-
export interface ConfigureResult {
|
|
63
|
-
written: string[];
|
|
64
|
-
/**
|
|
65
|
-
* Keys the target still needs and the user must supply — a local database URL, say.
|
|
66
|
-
*
|
|
67
|
-
* Read exactly like the publisher's configure acknowledgement: a key with an EMPTY value counts
|
|
68
|
-
* as missing, because a push that ran before a secret existed leaves one behind.
|
|
69
|
-
*/
|
|
70
|
-
missing: string[];
|
|
71
|
-
services: ConnectServices;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* One model call, handed to the parent agent.
|
|
75
|
-
*
|
|
76
|
-
* It carries everything a fresh subagent needs and nothing it does not: the persona as a system
|
|
77
|
-
* prompt, the conversation so far, and the shape the answer must take. There is no platform
|
|
78
|
-
* vocabulary in it — no pipeline, no step, no internal role semantics beyond a name and a tier —
|
|
79
|
-
* because it is read by a model the platform does not own.
|
|
80
|
-
*/
|
|
81
|
-
export interface ModelTask {
|
|
82
|
-
id: string;
|
|
83
|
-
projectId: string;
|
|
84
|
-
/** The platform role that asked. Informational; the tier is what decides the model. */
|
|
85
|
-
role: string;
|
|
86
|
-
tier: ModelTier;
|
|
87
|
-
/** Which attempt this is. > 0 means a previous answer was refused; `feedback` says why. */
|
|
88
|
-
attempt: number;
|
|
89
|
-
mode: ModelTaskMode;
|
|
90
|
-
system?: string;
|
|
91
|
-
messages: ModelTaskMessage[];
|
|
92
|
-
/** `Tools` mode: what the subagent may call. JSON Schema per tool. */
|
|
93
|
-
tools?: ModelTaskTool[];
|
|
94
|
-
/** `Tools` mode: force one tool, or leave the choice open. */
|
|
95
|
-
toolChoice?: ModelTaskToolChoice;
|
|
96
|
-
/** `Json` mode: the schema the single returned object must satisfy. */
|
|
97
|
-
outputSchema?: Record<string, unknown>;
|
|
98
|
-
/** A soft cap, stated so a parent can size its own call. */
|
|
99
|
-
maxOutputChars?: number;
|
|
100
|
-
/** Present on a retry: what was wrong with the previous answer. */
|
|
101
|
-
feedback?: string;
|
|
102
|
-
expiresAt: string;
|
|
103
|
-
}
|
|
104
|
-
export interface ModelTaskMessage {
|
|
105
|
-
role: ModelTaskRole;
|
|
106
|
-
content: string;
|
|
107
|
-
/** Assistant messages that called tools. */
|
|
108
|
-
toolCalls?: ModelTaskToolCall[];
|
|
109
|
-
/** Tool messages answer one call. */
|
|
110
|
-
toolCallId?: string;
|
|
111
|
-
/** Tool messages name the tool they answer. */
|
|
112
|
-
name?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface ModelTaskTool {
|
|
115
|
-
name: string;
|
|
116
|
-
description?: string;
|
|
117
|
-
/** JSON Schema for the tool's arguments. */
|
|
118
|
-
parameters: Record<string, unknown>;
|
|
119
|
-
}
|
|
120
|
-
export type ModelTaskToolChoice = 'auto' | 'none' | {
|
|
121
|
-
name: string;
|
|
122
|
-
};
|
|
123
|
-
export interface ModelTaskToolCall {
|
|
124
|
-
id?: string;
|
|
125
|
-
name: string;
|
|
126
|
-
args: Record<string, unknown>;
|
|
127
|
-
}
|
|
128
|
-
/** What the parent's subagent produced. */
|
|
129
|
-
export interface ModelTaskResult {
|
|
130
|
-
taskId: string;
|
|
131
|
-
kind: ModelTaskResultKind;
|
|
132
|
-
text?: string;
|
|
133
|
-
json?: unknown;
|
|
134
|
-
toolCalls?: ModelTaskToolCall[];
|
|
135
|
-
/** Why the parent could not answer. Treated as a malformed answer and retried. */
|
|
136
|
-
error?: string;
|
|
137
|
-
/** What the parent spent. Recorded for the trace; it costs the platform nothing. */
|
|
138
|
-
usage?: ModelTaskUsage;
|
|
139
|
-
/** What the parent actually ran. Display only. */
|
|
140
|
-
model?: string;
|
|
141
|
-
}
|
|
142
|
-
export interface ModelTaskUsage {
|
|
143
|
-
inputTokens?: number;
|
|
144
|
-
outputTokens?: number;
|
|
145
|
-
}
|
|
146
|
-
/** One option a {@link ConnectInquiryKind.Choice} question offers. */
|
|
147
|
-
export interface ConnectInquiryOption {
|
|
148
|
-
value: string;
|
|
149
|
-
label: string;
|
|
150
|
-
description?: string;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* One question put to the person the connector is working for.
|
|
154
|
-
*
|
|
155
|
-
* It carries where it came from — the run and the step — because an answer is recorded
|
|
156
|
-
* against the run that asked and re-read when that run resumes. `expiresAt` is what makes an
|
|
157
|
-
* unanswered question fail its step instead of parking a project lock forever.
|
|
158
|
-
*/
|
|
159
|
-
export interface InquiryPayload {
|
|
160
|
-
id: string;
|
|
161
|
-
projectId: string;
|
|
162
|
-
runId?: string;
|
|
163
|
-
/** The pipeline step that asked, so a resumed run can match the answer to the place it belongs. */
|
|
164
|
-
step?: string;
|
|
165
|
-
kind: ConnectInquiryKind;
|
|
166
|
-
question: string;
|
|
167
|
-
/** What the asker already knows, so the person is not asked to go and find it out. */
|
|
168
|
-
context?: string;
|
|
169
|
-
options?: ConnectInquiryOption[];
|
|
170
|
-
multiple?: boolean;
|
|
171
|
-
/** Whether a choice question also accepts text the options do not cover. */
|
|
172
|
-
allowText?: boolean;
|
|
173
|
-
/** What the asker will assume if nobody answers. Recorded as an assumption when it is used. */
|
|
174
|
-
default?: string | string[];
|
|
175
|
-
expiresAt: string;
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* The answer to one question.
|
|
179
|
-
*
|
|
180
|
-
* `declined` is a real answer and not an absence: it says a person saw the question and chose not
|
|
181
|
-
* to decide, which the asker records as an assumption rather than waiting out the timeout.
|
|
182
|
-
*/
|
|
183
|
-
export interface InquiryAnswerPayload {
|
|
184
|
-
inquiryId: string;
|
|
185
|
-
value?: string | string[];
|
|
186
|
-
text?: string;
|
|
187
|
-
declined?: boolean;
|
|
188
|
-
}
|
|
189
|
-
//# sourceMappingURL=ops.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../../src/connect/ops.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,KAAK,EACV,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,aAAa,EAAE,mBAAmB,EACzF,aAAa,EAAE,SAAS,EACzB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD;;;;;;;GAOG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,aAAa,CAAA;IACnB,OAAO,EAAE,kBAAkB,GAAG,SAAS,GAAG,gBAAgB,GAAG,cAAc,CAAA;IAC3E,SAAS,EAAE,MAAM,CAAA;IACjB,wFAAwF;IACxF,UAAU,EAAE,MAAM,CAAA;IAClB,oFAAoF;IACpF,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,EAAE,OAAO,CAAA;IACX,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,cAAc,CAAA;CACvB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,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,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mGAAmG;IACnG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,kBAAkB,CAAA;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,oBAAoB,EAAE,CAAA;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC3B,SAAS,EAAE,MAAM,CAAA;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
|
package/build/connect/ops.js
DELETED
package/build/connect/ops.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ops.js","sourceRoot":"","sources":["../../src/connect/ops.ts"],"names":[],"mappings":""}
|
package/build/connect/types.d.ts
DELETED
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
import type { ArchitectureCase, ConversionDecision, ConversionEstimate, ConversionStackRef, ConversionStage, ConversionStatus, ConvertibilityReason, ConvertibilityVerdict, OriginKind, OriginShape, OriginState, StoryEstimateBand } from '../convert/index.js';
|
|
2
|
-
import type { ConnectExecutor, ConnectHarness, ConnectLlm, ConnectSessionStatus, ConnectTarget, ConnectTransport, ConnectWaitReason, ModelTier } from './consts.js';
|
|
3
|
-
import type { InquiryAnswerPayload, InquiryPayload } from './ops.js';
|
|
4
|
-
/**
|
|
5
|
-
* What a parent agent can do, as it reports itself.
|
|
6
|
-
*
|
|
7
|
-
* `tiers` is what decides whether the local-LLM mode is usable at all: a parent that names no
|
|
8
|
-
* model for a tier still gets tasks, clamped to the nearest tier it does offer.
|
|
9
|
-
*/
|
|
10
|
-
export interface ConnectCapabilities {
|
|
11
|
-
harness: ConnectHarness;
|
|
12
|
-
/** Tier → the parent's own name for the model it will run that tier on. Display only. */
|
|
13
|
-
tiers: Partial<Record<ModelTier, string>>;
|
|
14
|
-
/** Whether the parent can run a task in an isolated subagent rather than its own conversation. */
|
|
15
|
-
subagents: boolean;
|
|
16
|
-
/** Whether the parent can ask for low reasoning effort explicitly. */
|
|
17
|
-
effortControl: boolean;
|
|
18
|
-
/** Which operation kinds this connector will execute. */
|
|
19
|
-
executors: ConnectExecutor[];
|
|
20
|
-
/** What the local machine has, learned from the configure op. Absent until one has run. */
|
|
21
|
-
services?: ConnectServices;
|
|
22
|
-
}
|
|
23
|
-
/** What a local machine actually provides. Reported by the connector, never assumed. */
|
|
24
|
-
export interface ConnectServices {
|
|
25
|
-
db: boolean;
|
|
26
|
-
valkey: boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface ConnectSession {
|
|
29
|
-
id?: string;
|
|
30
|
-
profileId: string;
|
|
31
|
-
entityId: string;
|
|
32
|
-
projectId?: string;
|
|
33
|
-
/** The absolute directory the target lives in, for a local target. Identity for supersede. */
|
|
34
|
-
projectDir?: string;
|
|
35
|
-
target: ConnectTarget;
|
|
36
|
-
llm: ConnectLlm;
|
|
37
|
-
harness: ConnectHarness;
|
|
38
|
-
clientVersion: string;
|
|
39
|
-
capabilities: ConnectCapabilities;
|
|
40
|
-
status: ConnectSessionStatus;
|
|
41
|
-
/** How the connector is receiving operations right now. */
|
|
42
|
-
transport?: ConnectTransport;
|
|
43
|
-
openedAt: Date;
|
|
44
|
-
lastSeenAt: Date;
|
|
45
|
-
closedAt?: Date;
|
|
46
|
-
createdAt: Date;
|
|
47
|
-
updatedAt?: Date;
|
|
48
|
-
}
|
|
49
|
-
/** What a connector asks for when it attaches. */
|
|
50
|
-
export interface ConnectSessionOpen {
|
|
51
|
-
projectId?: string;
|
|
52
|
-
projectDir?: string;
|
|
53
|
-
target: ConnectTarget;
|
|
54
|
-
harness: ConnectHarness;
|
|
55
|
-
clientVersion: string;
|
|
56
|
-
capabilities: ConnectCapabilities;
|
|
57
|
-
}
|
|
58
|
-
export interface ConnectSessionParams {
|
|
59
|
-
sessionId: string;
|
|
60
|
-
}
|
|
61
|
-
export interface ConnectSessionView {
|
|
62
|
-
id: string;
|
|
63
|
-
target: ConnectTarget;
|
|
64
|
-
llm: ConnectLlm;
|
|
65
|
-
projectId?: string;
|
|
66
|
-
status: ConnectSessionStatus;
|
|
67
|
-
/** Operations waiting for this session right now. */
|
|
68
|
-
pending: number;
|
|
69
|
-
expiresAt: string;
|
|
70
|
-
}
|
|
71
|
-
export interface ConnectPullQuery {
|
|
72
|
-
/** Seconds to wait before answering; clamped to the pull ceiling. */
|
|
73
|
-
wait?: number;
|
|
74
|
-
}
|
|
75
|
-
export interface ConnectRunStatus {
|
|
76
|
-
runId: string;
|
|
77
|
-
pipeline: string;
|
|
78
|
-
status: string;
|
|
79
|
-
step?: string;
|
|
80
|
-
completed: string[];
|
|
81
|
-
pending: string[];
|
|
82
|
-
warnings?: string[];
|
|
83
|
-
error?: string;
|
|
84
|
-
startedAt?: string;
|
|
85
|
-
updatedAt?: string;
|
|
86
|
-
}
|
|
87
|
-
/** What a connector needs to know about a project in one call. */
|
|
88
|
-
export interface ConnectProjectStatus {
|
|
89
|
-
/**
|
|
90
|
-
* The project card, flattened into the names a parent agent already reads.
|
|
91
|
-
*
|
|
92
|
-
* `name` is the card's `title` and `alias` its `code`; the three brief parts are the bodies of
|
|
93
|
-
* the project's `specification`, `vision` and `design-system` specifications. `status` and
|
|
94
|
-
* `intrinsic` are the card's own — a key of the project flow and the intrinsic state it maps to —
|
|
95
|
-
* typed as plain strings because this view crosses a version skew and a newer platform may
|
|
96
|
-
* answer with a status an older connector has never heard of.
|
|
97
|
-
*/
|
|
98
|
-
project: {
|
|
99
|
-
id: string;
|
|
100
|
-
name: string;
|
|
101
|
-
alias: string;
|
|
102
|
-
description?: string;
|
|
103
|
-
status: string;
|
|
104
|
-
intrinsic: string;
|
|
105
|
-
specification?: string;
|
|
106
|
-
vision?: string;
|
|
107
|
-
designSystem?: string;
|
|
108
|
-
};
|
|
109
|
-
slot?: {
|
|
110
|
-
id: string;
|
|
111
|
-
kind: string;
|
|
112
|
-
status: string;
|
|
113
|
-
slug: string;
|
|
114
|
-
host?: string;
|
|
115
|
-
initialized?: boolean;
|
|
116
|
-
lastError?: string;
|
|
117
|
-
buildWarning?: string;
|
|
118
|
-
backendWarning?: string;
|
|
119
|
-
};
|
|
120
|
-
production?: {
|
|
121
|
-
id: string;
|
|
122
|
-
status: string;
|
|
123
|
-
host?: string;
|
|
124
|
-
};
|
|
125
|
-
agent: {
|
|
126
|
-
locked: boolean;
|
|
127
|
-
task?: string;
|
|
128
|
-
lockedAt?: string;
|
|
129
|
-
};
|
|
130
|
-
run?: ConnectRunStatus;
|
|
131
|
-
waitingFor?: ConnectWaitReason;
|
|
132
|
-
pendingInquiry?: InquiryPayload;
|
|
133
|
-
session?: ConnectSessionView;
|
|
134
|
-
/** Set for a local target: the connector should not offer cloud-only operations. */
|
|
135
|
-
local: boolean;
|
|
136
|
-
updatedAt: string;
|
|
137
|
-
}
|
|
138
|
-
/** A story card composed with its deterministic development run. */
|
|
139
|
-
export interface ConnectStoryStatus {
|
|
140
|
-
projectId: string;
|
|
141
|
-
story: {
|
|
142
|
-
id: string;
|
|
143
|
-
code: string;
|
|
144
|
-
title: string;
|
|
145
|
-
status: string;
|
|
146
|
-
intrinsic: string;
|
|
147
|
-
warning?: string;
|
|
148
|
-
};
|
|
149
|
-
run?: ConnectRunStatus;
|
|
150
|
-
waitingFor?: ConnectWaitReason;
|
|
151
|
-
pendingInquiry?: InquiryPayload;
|
|
152
|
-
updatedAt: string;
|
|
153
|
-
}
|
|
154
|
-
/** The record a local project keeps so a later session knows what it is. */
|
|
155
|
-
export interface ConnectMarker {
|
|
156
|
-
version: 1;
|
|
157
|
-
apiUrl: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
slug: string;
|
|
160
|
-
entitySlug?: string;
|
|
161
|
-
createdAt: string;
|
|
162
|
-
}
|
|
163
|
-
/** The per-profile connector preference. */
|
|
164
|
-
export interface ConnectProfileSettings {
|
|
165
|
-
llmMode: ConnectLlm;
|
|
166
|
-
}
|
|
167
|
-
export interface ConnectProfileSettingsView extends ConnectProfileSettings {
|
|
168
|
-
/** Whether the organization's plan allows the local-LLM mode at all. */
|
|
169
|
-
canUseLocal: boolean;
|
|
170
|
-
/**
|
|
171
|
-
* The profile's preference for who performs a CONVERSION's model calls.
|
|
172
|
-
*
|
|
173
|
-
* Its own setting rather than a reading of `llmMode`, because the two answer for different
|
|
174
|
-
* work: a conversion reads somebody else's whole repository, which is the one case where handing
|
|
175
|
-
* the inference to the parent agent is the cheap default rather than the experimental option.
|
|
176
|
-
*
|
|
177
|
-
* OPTIONAL: the two converter fields are answered by a platform build that does not exist yet,
|
|
178
|
-
* and this package is consumed by the platform through a workspace link rather than a published
|
|
179
|
-
* range — a required field here is a compile error in every handler that already returns this
|
|
180
|
-
* view. Tightened to required once the platform's conversion handlers fill them.
|
|
181
|
-
*/
|
|
182
|
-
converterLlmMode?: ConnectLlm;
|
|
183
|
-
/** Whether this caller may run a conversion's model calls on the parent agent. */
|
|
184
|
-
canUseConverterLocal?: boolean;
|
|
185
|
-
}
|
|
186
|
-
export interface ConnectLlmBody {
|
|
187
|
-
llmMode: ConnectLlm;
|
|
188
|
-
}
|
|
189
|
-
/** The per-project override, and what it resolves to. */
|
|
190
|
-
export interface ConnectProjectSettings {
|
|
191
|
-
/** `null` means "inherit the profile setting". */
|
|
192
|
-
llmMode: ConnectLlm | null;
|
|
193
|
-
effective: ConnectLlm;
|
|
194
|
-
canUseLocal: boolean;
|
|
195
|
-
/**
|
|
196
|
-
* The project's converter override; `null` inherits the profile's.
|
|
197
|
-
*
|
|
198
|
-
* Optional on the same forward-compatibility grounds as
|
|
199
|
-
* {@link ConnectProfileSettingsView.converterLlmMode} — absent from an answer written before the
|
|
200
|
-
* platform's conversion handlers land, and never to be read as a value.
|
|
201
|
-
*/
|
|
202
|
-
converterLlmMode?: ConnectLlm | null;
|
|
203
|
-
/** What the override, the profile and the platform's own floor actually resolve to. */
|
|
204
|
-
converterEffective?: ConnectLlm;
|
|
205
|
-
}
|
|
206
|
-
export interface ConnectProjectLlmBody {
|
|
207
|
-
llmMode: ConnectLlm | null;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* A project's branding as a connector reads it — what the generated application says about who
|
|
211
|
-
* made it, and the Google tag it loads.
|
|
212
|
-
*
|
|
213
|
-
* Every field is a string, `''` when unset, in the platform's own branding vocabulary. The
|
|
214
|
-
* platform credit is absent on purpose: hiding it is a paid capability behind its own gated route,
|
|
215
|
-
* and neither reading nor saving this record may reach it.
|
|
216
|
-
*/
|
|
217
|
-
export interface ConnectProjectBranding {
|
|
218
|
-
/** The copyright line in the application's footer. Never empty once saved. */
|
|
219
|
-
copyright: string;
|
|
220
|
-
/** The organization's display name. Never empty once saved. */
|
|
221
|
-
organizationName: string;
|
|
222
|
-
/** `''`, an `https://` URL, or a same-origin path such as `/terms` (the generated page). */
|
|
223
|
-
termsUrl: string;
|
|
224
|
-
/** `''`, an `https://` URL, or a same-origin path such as `/privacy` (the generated page). */
|
|
225
|
-
privacyUrl: string;
|
|
226
|
-
/** `''`, or a Google tag id: `GTM-…`, `G-…`, `GT-…`, `AW-…`, `DC-…`. */
|
|
227
|
-
googleTag: string;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* A PATCH of a project's branding: every field optional, and an absent field keeps its current
|
|
231
|
-
* value. The platform merges it over what is stored, validates the result as a whole with the
|
|
232
|
-
* rules the web form uses, and answers the merged record.
|
|
233
|
-
*/
|
|
234
|
-
export interface ConnectProjectBrandingSave extends Partial<ConnectProjectBranding> {
|
|
235
|
-
}
|
|
236
|
-
/** Attach an existing project to a session. */
|
|
237
|
-
export interface ConnectAttachBody {
|
|
238
|
-
projectId?: string;
|
|
239
|
-
slug?: string;
|
|
240
|
-
projectDir?: string;
|
|
241
|
-
}
|
|
242
|
-
/** Create a project through the connector; `target` decides where its tree will live. */
|
|
243
|
-
export interface ConnectCreateBody {
|
|
244
|
-
prompt: string;
|
|
245
|
-
target?: ConnectTarget;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Confirm a drafted project, optionally editing what the analysis produced.
|
|
249
|
-
*
|
|
250
|
-
* The keys are a parent agent's vocabulary and stay as they are: `name` becomes the card's
|
|
251
|
-
* `title`, and each brief part present is written into the project's specification of that
|
|
252
|
-
* category before the confirm transition runs.
|
|
253
|
-
*/
|
|
254
|
-
export interface ConnectConfirmBody {
|
|
255
|
-
name?: string;
|
|
256
|
-
description?: string;
|
|
257
|
-
specification?: string;
|
|
258
|
-
vision?: string;
|
|
259
|
-
designSystem?: string;
|
|
260
|
-
target?: ConnectTarget;
|
|
261
|
-
}
|
|
262
|
-
export interface ConnectModifyBody {
|
|
263
|
-
prompt: string;
|
|
264
|
-
}
|
|
265
|
-
export interface ConnectPipelineParams {
|
|
266
|
-
id: string;
|
|
267
|
-
runId: string;
|
|
268
|
-
}
|
|
269
|
-
export interface ConnectPipelineResumeBody {
|
|
270
|
-
from?: string;
|
|
271
|
-
force?: boolean;
|
|
272
|
-
/**
|
|
273
|
-
* Answers to the questions a parked run is waiting on, keyed by inquiry id.
|
|
274
|
-
*
|
|
275
|
-
* A run stops at `Waiting` because a step asked something; resuming it without what it asked for
|
|
276
|
-
* makes it ask again. The runner MERGES these into whatever the run already carries rather than
|
|
277
|
-
* replacing them, so a resume that answers one of two outstanding questions keeps the other.
|
|
278
|
-
*/
|
|
279
|
-
answers?: Record<string, InquiryAnswerPayload>;
|
|
280
|
-
}
|
|
281
|
-
/** Start a conversion of an existing project's code. */
|
|
282
|
-
export interface ConnectConvertCreateBody {
|
|
283
|
-
name?: string;
|
|
284
|
-
about?: string;
|
|
285
|
-
/** Where the converted target's tree will live. */
|
|
286
|
-
target?: ConnectTarget;
|
|
287
|
-
/**
|
|
288
|
-
* Where the code comes from.
|
|
289
|
-
*
|
|
290
|
-
* Absent for a LOCAL target the connector is already attached to: the tree is the directory the
|
|
291
|
-
* session opened on, and there is nothing to fetch.
|
|
292
|
-
*/
|
|
293
|
-
origin?: {
|
|
294
|
-
kind: OriginKind;
|
|
295
|
-
repoUrl?: string;
|
|
296
|
-
branch?: string;
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* Start the conversion of a project already filed.
|
|
301
|
-
*
|
|
302
|
-
* `confirm` says a PERSON agreed to what the start uses: without it, a start that would spend the
|
|
303
|
-
* organization's `conversions` unit is refused with `ConnectConfirmationRequired` and nothing runs.
|
|
304
|
-
* A delegated conversion spends nothing and is never asked.
|
|
305
|
-
*/
|
|
306
|
-
export interface ConnectConvertStartBody {
|
|
307
|
-
confirm?: boolean;
|
|
308
|
-
}
|
|
309
|
-
/** Decide what happens at a stage boundary. */
|
|
310
|
-
export interface ConnectConvertProceedBody {
|
|
311
|
-
decision: ConversionDecision;
|
|
312
|
-
/** Free text the user added to the decision; recorded, never parsed. */
|
|
313
|
-
note?: string;
|
|
314
|
-
/**
|
|
315
|
-
* A person agreed to what the stage costs. Without it, a stage that would spend credit limits or
|
|
316
|
-
* topped-up credits (its estimate past what is left of the conversion limit) is refused with
|
|
317
|
-
* `ConnectConfirmationRequired` — its estimate split packed — and nothing runs.
|
|
318
|
-
*/
|
|
319
|
-
confirm?: boolean;
|
|
320
|
-
}
|
|
321
|
-
/** Answer one question a parked run is waiting on. */
|
|
322
|
-
export type ConnectInquiryAnswerBody = InquiryAnswerPayload;
|
|
323
|
-
/**
|
|
324
|
-
* Whether this origin can be converted, and what it will cost.
|
|
325
|
-
*
|
|
326
|
-
* Answered BEFORE anything is provisioned or charged, from the census alone — which is why it
|
|
327
|
-
* carries the counts it was decided from rather than a bare verdict.
|
|
328
|
-
*/
|
|
329
|
-
export interface ConvertCheck {
|
|
330
|
-
projectId: string;
|
|
331
|
-
verdict: ConvertibilityVerdict;
|
|
332
|
-
reasons: ConvertibilityReason[];
|
|
333
|
-
stack?: ConversionStackRef;
|
|
334
|
-
architecture?: ArchitectureCase;
|
|
335
|
-
shape: OriginShape;
|
|
336
|
-
monorepo: boolean;
|
|
337
|
-
/** Workspace members and directories nothing declares. Named, because each one is a decision. */
|
|
338
|
-
unlinked: string[];
|
|
339
|
-
files: number;
|
|
340
|
-
bytes: number;
|
|
341
|
-
/** Bulk data files found — sampled and described, never carried. */
|
|
342
|
-
bulk: number;
|
|
343
|
-
estimate?: ConversionEstimate;
|
|
344
|
-
}
|
|
345
|
-
/** Everything a caller needs to draw the conversion's current state in one call. */
|
|
346
|
-
export interface ConversionStatusView {
|
|
347
|
-
projectId: string;
|
|
348
|
-
stage: ConversionStage;
|
|
349
|
-
status: ConversionStatus;
|
|
350
|
-
/** The last decision the user made. */
|
|
351
|
-
decision?: ConversionDecision;
|
|
352
|
-
verdict?: ConvertibilityVerdict;
|
|
353
|
-
stack?: ConversionStackRef;
|
|
354
|
-
/** What the conversion is rebuilding the project ONTO. Always the Viable stack today. */
|
|
355
|
-
targetStack?: ConversionStackRef;
|
|
356
|
-
architecture?: ArchitectureCase;
|
|
357
|
-
/** One per stage that has been estimated, newest last. */
|
|
358
|
-
estimates: ConversionEstimate[];
|
|
359
|
-
storyEstimate?: StoryEstimateBand;
|
|
360
|
-
originState: OriginState;
|
|
361
|
-
/** How many questions the conversion answered for itself. Each one is readable in the docs. */
|
|
362
|
-
assumptions: number;
|
|
363
|
-
runId?: string;
|
|
364
|
-
/** Set exactly when `status` is `Waiting`: the question the run stopped on. */
|
|
365
|
-
pendingInquiry?: InquiryPayload;
|
|
366
|
-
waitingFor?: ConnectWaitReason;
|
|
367
|
-
lastError?: string;
|
|
368
|
-
updatedAt: string;
|
|
369
|
-
}
|
|
370
|
-
/** The acknowledgement returned when a connector submits an operation result. */
|
|
371
|
-
export interface ConnectOpSubmission {
|
|
372
|
-
ok: boolean;
|
|
373
|
-
/** The operation was already resolved; retrying a lost HTTP response is safe. */
|
|
374
|
-
ignored?: boolean;
|
|
375
|
-
}
|
|
376
|
-
/** The deliberate small projection returned by the connector project list. */
|
|
377
|
-
export interface ConnectProjectSummary {
|
|
378
|
-
id: string;
|
|
379
|
-
name: string;
|
|
380
|
-
alias: string;
|
|
381
|
-
}
|
|
382
|
-
/** The persistent state of one pipeline run, read by a connector without platform internals. */
|
|
383
|
-
export interface ConnectPipelineState {
|
|
384
|
-
runId: string;
|
|
385
|
-
pipeline: string;
|
|
386
|
-
version: number;
|
|
387
|
-
status: string;
|
|
388
|
-
step?: string;
|
|
389
|
-
completed: string[];
|
|
390
|
-
pending: string[];
|
|
391
|
-
warnings: string[];
|
|
392
|
-
failedAt?: string;
|
|
393
|
-
error?: string;
|
|
394
|
-
note?: string;
|
|
395
|
-
waitingFor?: ConnectWaitReason;
|
|
396
|
-
pendingInquiry?: InquiryPayload;
|
|
397
|
-
attempts: number;
|
|
398
|
-
startedAt: string;
|
|
399
|
-
heartbeatAt: string;
|
|
400
|
-
updatedAt: string;
|
|
401
|
-
}
|
|
402
|
-
/** One status of a planning kit's flow. `intrinsic` is the planning intrinsic it maps to. */
|
|
403
|
-
export interface PlanningKitStatusView {
|
|
404
|
-
key: string;
|
|
405
|
-
label: string;
|
|
406
|
-
intrinsic: string;
|
|
407
|
-
}
|
|
408
|
-
/** One status flow a planning kit declares. */
|
|
409
|
-
export interface PlanningKitFlowView {
|
|
410
|
-
key: string;
|
|
411
|
-
label: string;
|
|
412
|
-
statuses: PlanningKitStatusView[];
|
|
413
|
-
}
|
|
414
|
-
/** One card type a planning kit declares; `flow` is the key of its main flow. */
|
|
415
|
-
export interface PlanningKitTypeView {
|
|
416
|
-
key: string;
|
|
417
|
-
label: string;
|
|
418
|
-
flow: string;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* A planning kit as a connector sees it: a ready set of card types and status flows for one kind
|
|
422
|
-
* of work-management product, written into the target's common package on `apply`.
|
|
423
|
-
*/
|
|
424
|
-
export interface PlanningKitView {
|
|
425
|
-
id: string;
|
|
426
|
-
/** The work kind the kit serves — a bare string, so a newer kind never fails an older reader. */
|
|
427
|
-
kind: string;
|
|
428
|
-
title: string;
|
|
429
|
-
purpose: string;
|
|
430
|
-
/** The project-level container type the kit's cards live in. */
|
|
431
|
-
container: {
|
|
432
|
-
key: string;
|
|
433
|
-
label: string;
|
|
434
|
-
};
|
|
435
|
-
types: PlanningKitTypeView[];
|
|
436
|
-
flows: PlanningKitFlowView[];
|
|
437
|
-
}
|
|
438
|
-
/** What `project.kit.describe` answers. */
|
|
439
|
-
export interface ConnectKitDescribe {
|
|
440
|
-
kits: PlanningKitView[];
|
|
441
|
-
}
|
|
442
|
-
/** Apply one kit; `types` keeps only these card-type keys of it (every type when omitted). */
|
|
443
|
-
export interface ConnectKitApplyBody {
|
|
444
|
-
kit: string;
|
|
445
|
-
types?: string[];
|
|
446
|
-
}
|
|
447
|
-
/** What `project.kit.apply` answers: the type keys written, those left out, and warnings. */
|
|
448
|
-
export interface ConnectKitApplyResult {
|
|
449
|
-
applied: string[];
|
|
450
|
-
skipped: string[];
|
|
451
|
-
warnings: string[];
|
|
452
|
-
}
|
|
453
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/connect/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAC7F,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,UAAU,EAAE,WAAW,EACtF,WAAW,EAAE,iBAAiB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A;CACjB;AAED,6FAA6F;AAC7F,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB"}
|
package/build/connect/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/connect/types.ts"],"names":[],"mappings":""}
|
package/build/intent/flow.d.ts
DELETED
|
@@ -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"}
|
package/build/intent/flow.js
DELETED
|
@@ -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
|
package/build/intent/flow.js.map
DELETED
|
@@ -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,KA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ema } 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"}
|
package/build/planning/flows.js
DELETED
|
@@ -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,EACjF,iBAAiB,EAAE,qBAAqB,EAAE,UAAU,GACrD,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,sBAAsB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,uBAAuB,GACnG,MAAM,cAAc,CAAA;AAErB;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAqB;IACxD,EAAE,EAAE,iBAAiB;IACrB,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE;QACR,EAAE,GAAG,EAAE,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,eAAe,CAAC,OAAO,EAAE,O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C,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"}
|
package/build/skills/roles.d.ts
DELETED
|
@@ -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"}
|
package/build/skills/roles.js
DELETED
|
@@ -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"}
|