@owlmeans/viable-common 0.0.45 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/README.md +4 -3
  2. package/agent-meta/manifest.json +2 -2
  3. package/agent-meta/skills/agent-presentation/SKILL.md +1 -1
  4. package/agent-meta/skills/viable-common/SKILL.md +20 -3
  5. package/build/connect/ops.d.ts +189 -0
  6. package/build/connect/ops.d.ts.map +1 -0
  7. package/build/connect/ops.js +2 -0
  8. package/build/connect/ops.js.map +1 -0
  9. package/build/connect/types.d.ts +453 -0
  10. package/build/connect/types.d.ts.map +1 -0
  11. package/build/connect/types.js +2 -0
  12. package/build/connect/types.js.map +1 -0
  13. package/build/index.d.ts +1 -0
  14. package/build/index.d.ts.map +1 -1
  15. package/build/index.js +1 -0
  16. package/build/index.js.map +1 -1
  17. package/build/intent/flow.d.ts +17 -0
  18. package/build/intent/flow.d.ts.map +1 -0
  19. package/build/intent/flow.js +65 -0
  20. package/build/intent/flow.js.map +1 -0
  21. package/build/legal/consts.d.ts +36 -0
  22. package/build/legal/consts.d.ts.map +1 -0
  23. package/build/legal/consts.js +16 -0
  24. package/build/legal/consts.js.map +1 -0
  25. package/build/legal/index.d.ts +3 -0
  26. package/build/legal/index.d.ts.map +1 -0
  27. package/build/legal/index.js +2 -0
  28. package/build/legal/index.js.map +1 -0
  29. package/build/legal/types.d.ts +10 -0
  30. package/build/legal/types.d.ts.map +1 -0
  31. package/build/legal/types.js +2 -0
  32. package/build/legal/types.js.map +1 -0
  33. package/build/planning/flows.d.ts +34 -0
  34. package/build/planning/flows.d.ts.map +1 -0
  35. package/build/planning/flows.js +174 -0
  36. package/build/planning/flows.js.map +1 -0
  37. package/build/skills/roles.d.ts +43 -0
  38. package/build/skills/roles.d.ts.map +1 -0
  39. package/build/skills/roles.js +44 -0
  40. package/build/skills/roles.js.map +1 -0
  41. package/package.json +9 -2
  42. package/src/index.ts +1 -0
  43. package/src/legal/consts.ts +17 -0
  44. package/src/legal/index.ts +2 -0
  45. package/src/legal/types.ts +11 -0
@@ -0,0 +1,453 @@
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
@@ -0,0 +1 @@
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,CAAA;AAC5B,OAAO,KAAK,EACV,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,oBAAoB,EAAE,aAAa,EAChF,gBAAgB,EAAE,iBAAiB,EAAE,SAAS,EAC/C,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;IACvB,yFAAyF;IACzF,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAA;IACzC,kGAAkG;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MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,qBAAqB,EAAE,CAAA;CAClC;AAED,iFAAiF;AACjF,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,iGAAiG;IACjG,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,gEAAgE;IAChE,SAAS,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACzC,KAAK,EAAE,mBAAmB,EAAE,CAAA;IAC5B,KAAK,EAAE,mBAAmB,EAAE,CAAA;CAC7B;AAED,2CAA2C;AAC3C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,eAAe,EAAE,CAAA;CACxB;AAED,8FAA8F;AAC9F,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/connect/types.ts"],"names":[],"mappings":""}
package/build/index.d.ts CHANGED
@@ -20,4 +20,5 @@ export * from './scaffold/index.js';
20
20
  export * from './design/index.js';
21
21
  export * from './planning/index.js';
22
22
  export * from './branding.js';
23
+ export * from './legal/index.js';
23
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA"}
package/build/index.js CHANGED
@@ -19,4 +19,5 @@ export * from './scaffold/index.js';
19
19
  export * from './design/index.js';
20
20
  export * from './planning/index.js';
21
21
  export * from './branding.js';
22
+ export * from './legal/index.js';
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,17 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,65 @@
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
+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AC,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"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The shared dates for the platform's legal acceptance and the public site's legal pages.
3
+ * Changing terms/privacy/billing/product updated dates requires renewed terms acceptance;
4
+ * privacy.updated also revises marketing consent. The other documents are display-only.
5
+ */
6
+ export declare const OWLMEANS_LEGAL_DATES: {
7
+ readonly terms: {
8
+ readonly effective: '2026-05-30';
9
+ readonly updated: '2026-05-30';
10
+ };
11
+ readonly privacy: {
12
+ readonly effective: '2026-05-30';
13
+ readonly updated: '2026-05-30';
14
+ };
15
+ readonly cookies: {
16
+ readonly effective: '2026-09-24';
17
+ readonly updated: '2026-09-25';
18
+ };
19
+ readonly 'services-agreement': {
20
+ readonly effective: '2026-10-04';
21
+ readonly updated: '2026-10-04';
22
+ };
23
+ readonly 'platform-license': {
24
+ readonly effective: '2026-10-04';
25
+ readonly updated: '2026-10-04';
26
+ };
27
+ readonly billing: {
28
+ readonly effective: '2026-05-30';
29
+ readonly updated: '2026-05-30';
30
+ };
31
+ readonly product: {
32
+ readonly effective: '2026-05-30';
33
+ readonly updated: '2026-05-30';
34
+ };
35
+ };
36
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/legal/consts.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;iBACtB,SAAS,EAAE,YAAY;iBAAE,OAAO,EAAE,YAAY;;;iBAC5C,SAAS,EAAE,YAAY;iBAAE,OAAO,EAAE,YAAY;;;iBAC9C,SAAS,EAAE,YAAY;iBAAE,OAAO,EAAE,YAAY;;;iBACjC,SAAS,EAAE,YAAY;iBAAE,OAAO,EAAE,YAAY;;;iBAChD,SAAS,EAAE,YAAY;iBAAE,OAAO,EAAE,YAAY;;;iBAEzD,SAAS,EAAE,YAAY;iBAAE,OAAO,EAAE,YAAY;;;iBAC9C,SAAS,EAAE,YAAY;iBAAE,OAAO,EAAE,YAAY;;CACM,CAAA"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The shared dates for the platform's legal acceptance and the public site's legal pages.
3
+ * Changing terms/privacy/billing/product updated dates requires renewed terms acceptance;
4
+ * privacy.updated also revises marketing consent. The other documents are display-only.
5
+ */
6
+ export const OWLMEANS_LEGAL_DATES = {
7
+ terms: { effective: '2026-05-30', updated: '2026-05-30' },
8
+ privacy: { effective: '2026-05-30', updated: '2026-05-30' },
9
+ cookies: { effective: '2026-09-24', updated: '2026-09-25' },
10
+ 'services-agreement': { effective: '2026-10-04', updated: '2026-10-04' },
11
+ 'platform-license': { effective: '2026-10-04', updated: '2026-10-04' },
12
+ // These documents date the platform's sign-in terms line without public-site pages yet.
13
+ billing: { effective: '2026-05-30', updated: '2026-05-30' },
14
+ product: { effective: '2026-05-30', updated: '2026-05-30' },
15
+ };
16
+ //# sourceMappingURL=consts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/legal/consts.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE;IACzD,OAAO,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE;IAC3D,OAAO,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE;IAC3D,oBAAoB,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE;IACxE,kBAAkB,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE;IACtE,wFAAwF;IACxF,OAAO,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE;IAC3D,OAAO,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE;CACI,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './consts.js';
2
+ export type * from './types.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/legal/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,mBAAmB,YAAY,CAAA"}