@owlmeans/viable-common 0.0.46 → 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 +163 -14
- 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 +122 -30
- package/build/connect/account/types.d.ts +81 -0
- package/build/connect/account/types.d.ts.map +1 -0
- package/build/connect/account/types.js.map +1 -0
- package/build/connect/branding/types.d.ts +26 -4
- package/build/connect/branding/types.d.ts.map +1 -1
- package/build/connect/call/types.d.ts +28 -0
- package/build/connect/call/types.d.ts.map +1 -0
- package/build/connect/call/types.js +2 -0
- package/build/connect/call/types.js.map +1 -0
- package/build/connect/config/types.d.ts +45 -0
- package/build/connect/config/types.d.ts.map +1 -0
- package/build/connect/config/types.js +2 -0
- package/build/connect/config/types.js.map +1 -0
- package/build/connect/consts.d.ts +383 -1
- package/build/connect/consts.d.ts.map +1 -1
- package/build/connect/consts.js +387 -1
- package/build/connect/consts.js.map +1 -1
- package/build/connect/conversion/types.d.ts +24 -0
- package/build/connect/conversion/types.d.ts.map +1 -1
- package/build/connect/entrypoints/types.d.ts +22 -13
- package/build/connect/entrypoints/types.d.ts.map +1 -1
- package/build/connect/entrypoints.d.ts +441 -8
- package/build/connect/entrypoints.d.ts.map +1 -1
- package/build/connect/entrypoints.js +292 -9
- package/build/connect/entrypoints.js.map +1 -1
- package/build/connect/errors.d.ts +12 -0
- package/build/connect/errors.d.ts.map +1 -1
- package/build/connect/errors.js +16 -0
- package/build/connect/errors.js.map +1 -1
- package/build/connect/feed/types.d.ts +71 -0
- package/build/connect/feed/types.d.ts.map +1 -0
- package/build/connect/feed/types.js +2 -0
- package/build/connect/feed/types.js.map +1 -0
- package/build/connect/files/types.d.ts +34 -0
- package/build/connect/files/types.d.ts.map +1 -0
- package/build/connect/files/types.js +2 -0
- package/build/connect/files/types.js.map +1 -0
- package/build/connect/git/types.d.ts +170 -0
- package/build/connect/git/types.d.ts.map +1 -0
- package/build/connect/git/types.js +14 -0
- package/build/connect/git/types.js.map +1 -0
- package/build/connect/iam/types.d.ts +25 -0
- package/build/connect/iam/types.d.ts.map +1 -0
- package/build/connect/iam/types.js +8 -0
- package/build/connect/iam/types.js.map +1 -0
- package/build/connect/index.d.ts +9 -0
- package/build/connect/index.d.ts.map +1 -1
- package/build/connect/production/types.d.ts +65 -0
- package/build/connect/production/types.d.ts.map +1 -0
- package/build/connect/production/types.js +2 -0
- package/build/connect/production/types.js.map +1 -0
- package/build/connect/project/types.d.ts +23 -16
- package/build/connect/project/types.d.ts.map +1 -1
- package/build/connect/references/types.d.ts +424 -2
- package/build/connect/references/types.d.ts.map +1 -1
- package/build/connect/references.d.ts.map +1 -1
- package/build/connect/references.js +122 -0
- package/build/connect/references.js.map +1 -1
- package/build/connect/schemas.d.ts +65 -2
- package/build/connect/schemas.d.ts.map +1 -1
- package/build/connect/schemas.js +306 -1
- package/build/connect/schemas.js.map +1 -1
- package/build/connect/settings/types.d.ts +0 -25
- package/build/connect/settings/types.d.ts.map +1 -1
- package/build/connect/slot/types.d.ts +24 -0
- package/build/connect/slot/types.d.ts.map +1 -0
- package/build/connect/slot/types.js +2 -0
- package/build/connect/slot/types.js.map +1 -0
- package/build/convert/record/types.d.ts +0 -9
- package/build/convert/record/types.d.ts.map +1 -1
- package/build/convert/schemas.d.ts +2 -5
- package/build/convert/schemas.d.ts.map +1 -1
- package/build/convert/schemas.js +2 -15
- package/build/convert/schemas.js.map +1 -1
- package/build/iam-console/consts.d.ts +13 -0
- package/build/iam-console/consts.d.ts.map +1 -0
- package/build/iam-console/consts.js +13 -0
- package/build/iam-console/consts.js.map +1 -0
- package/build/iam-console/consts.local.d.ts +123 -0
- package/build/iam-console/consts.local.d.ts.map +1 -0
- package/build/iam-console/consts.local.js +50 -0
- package/build/iam-console/consts.local.js.map +1 -0
- package/build/iam-console/index.d.ts +4 -0
- package/build/iam-console/index.d.ts.map +1 -0
- package/build/iam-console/index.js +3 -0
- package/build/iam-console/index.js.map +1 -0
- package/build/iam-console/schemas.d.ts +38 -0
- package/build/iam-console/schemas.d.ts.map +1 -0
- package/build/iam-console/schemas.js +217 -0
- package/build/iam-console/schemas.js.map +1 -0
- package/build/iam-console/types.d.ts +140 -0
- package/build/iam-console/types.d.ts.map +1 -0
- package/build/iam-console/types.js +2 -0
- package/build/{connect → iam-console}/types.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/legal/consts.d.ts +33 -2
- package/build/legal/consts.d.ts.map +1 -1
- package/build/legal/consts.js +11 -3
- package/build/legal/consts.js.map +1 -1
- package/build/legal/types.d.ts +8 -1
- package/build/legal/types.d.ts.map +1 -1
- package/build/planning/schemas.d.ts.map +1 -1
- package/build/planning/schemas.js +0 -1
- package/build/planning/schemas.js.map +1 -1
- package/build/planning/types.d.ts +0 -2
- package/build/planning/types.d.ts.map +1 -1
- package/package.json +14 -5
- package/src/connect/account/types.ts +91 -0
- package/src/connect/branding/types.ts +28 -4
- package/src/connect/call/types.ts +31 -0
- package/src/connect/config/types.ts +51 -0
- package/src/connect/consts.ts +400 -1
- package/src/connect/conversion/types.ts +25 -0
- package/src/connect/entrypoints/types.ts +22 -7
- package/src/connect/entrypoints.ts +592 -15
- package/src/connect/errors.ts +18 -0
- package/src/connect/feed/types.ts +76 -0
- package/src/connect/files/types.ts +38 -0
- package/src/connect/git/types.ts +187 -0
- package/src/connect/iam/types.ts +28 -0
- package/src/connect/index.ts +9 -0
- package/src/connect/production/types.ts +71 -0
- package/src/connect/project/types.ts +25 -12
- package/src/connect/references/types.ts +166 -5
- package/src/connect/references.ts +210 -5
- package/src/connect/schemas.ts +366 -5
- package/src/connect/settings/types.ts +0 -25
- package/src/connect/slot/types.ts +24 -0
- package/src/convert/record/types.ts +0 -11
- package/src/convert/schemas.ts +3 -19
- package/src/iam-console/consts.local.ts +64 -0
- package/src/iam-console/consts.ts +15 -0
- package/src/iam-console/index.ts +3 -0
- package/src/iam-console/schemas.ts +251 -0
- package/src/iam-console/types.ts +165 -0
- package/src/index.ts +1 -0
- package/src/legal/consts.ts +13 -5
- package/src/legal/types.ts +12 -1
- package/src/planning/schemas.ts +0 -1
- package/src/planning/types.ts +0 -2
- package/tests/connect-convert.spec.ts +6 -2
- package/tests/connect-entrypoints.spec.ts +554 -16
- package/tests/error-status.spec.ts +2 -1
- package/tests/iam-console.spec.ts +89 -0
- package/tests/planning.spec.ts +8 -0
- 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/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/build/connect/{types.js → account/types.js} +0 -0
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,EAC/B,MAAM,qBAAqB,CAA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F,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB"}
|
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,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"}
|