wicked-crew 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/audit.d.ts +13 -0
- package/dist/api/audit.d.ts.map +1 -1
- package/dist/api/audit.js +18 -2
- package/dist/api/audit.js.map +1 -1
- package/dist/api/guidance-index.d.ts +39 -0
- package/dist/api/guidance-index.d.ts.map +1 -0
- package/dist/api/guidance-index.js +67 -0
- package/dist/api/guidance-index.js.map +1 -0
- package/dist/api/open-path.d.ts +16 -0
- package/dist/api/open-path.d.ts.map +1 -1
- package/dist/api/open-path.js +22 -0
- package/dist/api/open-path.js.map +1 -1
- package/dist/api/retry-index.d.ts +30 -0
- package/dist/api/retry-index.d.ts.map +1 -0
- package/dist/api/retry-index.js +45 -0
- package/dist/api/retry-index.js.map +1 -0
- package/dist/api/routes.d.ts +53 -1
- package/dist/api/routes.d.ts.map +1 -1
- package/dist/api/routes.js +352 -23
- package/dist/api/routes.js.map +1 -1
- package/dist/api/run-files.d.ts +63 -0
- package/dist/api/run-files.d.ts.map +1 -0
- package/dist/api/run-files.js +271 -0
- package/dist/api/run-files.js.map +1 -0
- package/dist/api/server.d.ts +79 -0
- package/dist/api/server.d.ts.map +1 -1
- package/dist/api/server.js +135 -6
- package/dist/api/server.js.map +1 -1
- package/dist/api/stall-watchdog.d.ts +62 -0
- package/dist/api/stall-watchdog.d.ts.map +1 -0
- package/dist/api/stall-watchdog.js +138 -0
- package/dist/api/stall-watchdog.js.map +1 -0
- package/dist/cli/index.js +78 -13
- package/dist/cli/index.js.map +1 -1
- package/dist/core/adapter.d.ts +24 -10
- package/dist/core/adapter.d.ts.map +1 -1
- package/dist/core/adapter.js +191 -30
- package/dist/core/adapter.js.map +1 -1
- package/dist/core/bridge-reaper.d.ts +134 -0
- package/dist/core/bridge-reaper.d.ts.map +1 -0
- package/dist/core/bridge-reaper.js +286 -0
- package/dist/core/bridge-reaper.js.map +1 -0
- package/dist/core/deliver.d.ts +118 -0
- package/dist/core/deliver.d.ts.map +1 -0
- package/dist/core/deliver.js +241 -0
- package/dist/core/deliver.js.map +1 -0
- package/dist/core/deliverable-floor.d.ts +103 -0
- package/dist/core/deliverable-floor.d.ts.map +1 -0
- package/dist/core/deliverable-floor.js +173 -0
- package/dist/core/deliverable-floor.js.map +1 -0
- package/dist/core/exec.d.ts +2 -0
- package/dist/core/exec.d.ts.map +1 -1
- package/dist/core/exec.js.map +1 -1
- package/dist/core/types.d.ts +79 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +3 -0
- package/dist/core/types.js.map +1 -1
- package/dist/interactive/bridge-pool.d.ts +28 -0
- package/dist/interactive/bridge-pool.d.ts.map +1 -1
- package/dist/interactive/bridge-pool.js +67 -10
- package/dist/interactive/bridge-pool.js.map +1 -1
- package/dist/interactive/chat-events.d.ts +207 -0
- package/dist/interactive/chat-events.d.ts.map +1 -0
- package/dist/interactive/chat-events.js +769 -0
- package/dist/interactive/chat-events.js.map +1 -0
- package/dist/interactive/demo-events.d.ts +283 -0
- package/dist/interactive/demo-events.d.ts.map +1 -0
- package/dist/interactive/demo-events.js +889 -0
- package/dist/interactive/demo-events.js.map +1 -0
- package/dist/interactive/draft-events.d.ts +87 -7
- package/dist/interactive/draft-events.d.ts.map +1 -1
- package/dist/interactive/draft-events.js +352 -49
- package/dist/interactive/draft-events.js.map +1 -1
- package/dist/interactive/edit-events.d.ts +22 -0
- package/dist/interactive/edit-events.d.ts.map +1 -1
- package/dist/interactive/edit-events.js +73 -2
- package/dist/interactive/edit-events.js.map +1 -1
- package/dist/interactive/repo-snapshot.d.ts +100 -0
- package/dist/interactive/repo-snapshot.d.ts.map +1 -0
- package/dist/interactive/repo-snapshot.js +289 -0
- package/dist/interactive/repo-snapshot.js.map +1 -0
- package/dist/projects/graph-paths.d.ts +92 -0
- package/dist/projects/graph-paths.d.ts.map +1 -0
- package/dist/projects/graph-paths.js +130 -0
- package/dist/projects/graph-paths.js.map +1 -0
- package/dist/projects/graph.d.ts +179 -0
- package/dist/projects/graph.d.ts.map +1 -0
- package/dist/projects/graph.js +775 -0
- package/dist/projects/graph.js.map +1 -0
- package/dist/projects/routes.d.ts +7 -0
- package/dist/projects/routes.d.ts.map +1 -1
- package/dist/projects/routes.js +122 -0
- package/dist/projects/routes.js.map +1 -1
- package/dist/studio/assets/index-8p8uwCxG.js +530 -0
- package/dist/studio/assets/index-D6S9zUtO.css +32 -0
- package/dist/studio/index.html +5 -3
- package/package.json +3 -3
- package/dist/studio/assets/index-CCwXa1cn.js +0 -428
- package/dist/studio/assets/index-HWxo0h41.css +0 -32
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-events.js","sourceRoot":"","sources":["../../src/interactive/chat-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EACL,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAG1E,gGAAgG;AAEhG,MAAM,CAAC,MAAM,WAAW,GAAG,gCAAgC,CAAC;AAE5D,gGAAgG;AAChG,MAAM,CAAC,MAAM,2BAA2B,GAAG,GAAG,WAAW,IAAI,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,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACjF,WAAW,EAAE,CAAC,UAAkB,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;QACxE,IAAI,EAAE,KAAK,IAAI,EAAE;YACf,aAAa,EAAE,CAAC;YAChB,aAAa,CAAC,KAAK,CAAC,CAAC;YACrB,KAAK,MAAM,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;gBAAE,SAAS,CAAC,KAAK,CAAC,CAAC;YAC3D,MAAM,CAAC,KAAK,EAAE,CAAC;YACf,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opt-in governed answering of wicked-interactive's DEMO docs (CREW-UX-9 — the fourth
|
|
3
|
+
* interactive leg, beside draft-events.ts, edit-events.ts, and chat-events.ts).
|
|
4
|
+
*
|
|
5
|
+
* wicked-interactive's demo pipeline (ADR-0018) is deliberately split: the SERVICE is the
|
|
6
|
+
* model-free recorder — `recordDemo` (src/service/demo.js) launches Chromium, executes the
|
|
7
|
+
* doc's `demo.spec.mjs` with Playwright, records video + storyboard, and lands the version —
|
|
8
|
+
* while *something with intelligence* must AUTHOR that spec. A demo doc's creation emits
|
|
9
|
+
* `wicked.interactive.doc.created` with `kind: "demo"` carrying the live target `url` and an
|
|
10
|
+
* optional `brief` (recon: server.js `POST /api/docs`, the isDemo branch), and the doc then
|
|
11
|
+
* sits on its "Learning <url>…" placeholder until someone writes `<docDir>/demo.spec.mjs` and
|
|
12
|
+
* emits `wicked.interactive.demo.requested` — the retired assist agent's Step 8 (assist skill
|
|
13
|
+
* SKILL.md). Since the assist session retired, NOTHING authored the spec: video generation had
|
|
14
|
+
* hands (the recorder is proven working) but no brain. This module makes a crew-governed run
|
|
15
|
+
* the answerer.
|
|
16
|
+
*
|
|
17
|
+
* Shape mirrors draft-events.ts (dynamic wicked-bus import, graceful degradation, durable
|
|
18
|
+
* cursor `cursor_init: 'latest'` under a dedicated plugin name, durable replay-dedup ledger,
|
|
19
|
+
* `wi-crew` narration via status.posted, heartbeat inside the UI's ~20s window). The
|
|
20
|
+
* demo-specific deltas:
|
|
21
|
+
*
|
|
22
|
+
* - THE DELIVERABLE IS A SPEC, NOT HTML. The worker authors `demo.spec.mjs` — a plain ES
|
|
23
|
+
* module exporting `meta` ({url, title, and optionally steps/captions/captionHoldMs}) and
|
|
24
|
+
* `async run({ page, step, meta })` wrapping every meaningful action in
|
|
25
|
+
* `step(label, fn, { say, holdMs })` — the exact contract `recordDemo` executes (recon:
|
|
26
|
+
* interactive's demo.js + assist SKILL.md Step 8a). Crew never records anything; the
|
|
27
|
+
* BRIDGE (interactive's service) owns Playwright + ffmpeg, and the storyboard version it
|
|
28
|
+
* lands is the proven, already-working half of the loop.
|
|
29
|
+
*
|
|
30
|
+
* - THE WRITE-BOUNDARY LESSON (wicked-core#293/#294, learned the hard way on the draft leg):
|
|
31
|
+
* the governed worker CANNOT write into the doc workspace and CANNOT be repo-bound. A
|
|
32
|
+
* repoRef-bound run's tool-permission stream closes on the first prompt-needing call
|
|
33
|
+
* (wicked-core#293), and an UNBOUND worker's governance boundary is {sandbox,
|
|
34
|
+
* extraWriteRoots, ~/.claude/plugins} — reads/writes of the live doc workspace are DENIED
|
|
35
|
+
* (wicked-core#294). So the launch is UNBOUND with the per-run inbox as the SOLE extra
|
|
36
|
+
* write root; the task names `<inbox>/demo.spec.mjs` as the deliverable and carries the
|
|
37
|
+
* url + brief in the (PTY-capped, single-line) problem text. At finalize CREW copies the
|
|
38
|
+
* spec into the doc workspace — crew's own process is not the worker and is bound by no
|
|
39
|
+
* run boundary — THEN emits `demo.requested`, then narrates complete. Copy-then-emit,
|
|
40
|
+
* strictly: an emit before the copy would have the service record a missing/stale spec.
|
|
41
|
+
*
|
|
42
|
+
* - EMIT ACCEPTANCE (recon): interactive's command loop consumes `demo.requested` into
|
|
43
|
+
* `materializeDemo` and drops ONLY frames produced by itself (`producer_id ===
|
|
44
|
+
* PRODUCERS.SERVICE`, server.js runCommand loop) — the events.js ownership table
|
|
45
|
+
* ([UI, AGENT] for demo.requested) is enforced on interactive's own emit paths, not at
|
|
46
|
+
* consume — so a `wi-crew`-produced demo.requested is executed. The additive CREW owner
|
|
47
|
+
* row in interactive's events.js is the same follow-up courtesy the draft/edit legs got.
|
|
48
|
+
*
|
|
49
|
+
* - THE STEP-FEEDBACK LOOP (assist SKILL.md Step 8c): a demo refines by RE-AUTHORING the
|
|
50
|
+
* spec and re-emitting demo.requested — never by editing storyboard HTML. When the user
|
|
51
|
+
* highlights a storyboard step and asks for a change, the service applies the deterministic
|
|
52
|
+
* remainder to the storyboard and hands the structural items off on
|
|
53
|
+
* `wicked.interactive.feedback.processed` — the SAME frame the edit seam answers. That
|
|
54
|
+
* frame carries no `kind`, and until CREW-UX-9 the edit seam answered demo docs' handoffs
|
|
55
|
+
* too: it rewrote the storyboard FRAGMENT (chapter list text), landed it as a structural
|
|
56
|
+
* version, and the recording + spec never changed — the user's "change the demo" died as a
|
|
57
|
+
* cosmetic caption edit the next re-record would overwrite. Now both seams gate on the SAME
|
|
58
|
+
* disk truth (the doc manifest's `kind`, readable because interactive records kind for demo
|
|
59
|
+
* docs — chat-events.ts readDocHead): manifest says `demo` → THIS seam re-authors the spec
|
|
60
|
+
* per the feedback items, copies, re-emits demo.requested; anything else (including an
|
|
61
|
+
* unreadable manifest) → the edit seam keeps it. One reader each way = no double-answer.
|
|
62
|
+
* The edit seam's skip is conditional on THIS seam actually being armed (it is handed a
|
|
63
|
+
* `demoSeamArmed` probe): with the demo seam off, a demo doc's handoff would otherwise be
|
|
64
|
+
* answered by nobody, silently — so the edit seam posts an honest error status instead.
|
|
65
|
+
*
|
|
66
|
+
* - THE PHASE SHAPE IS MEASURED, NOT CHOSEN (wicked-core#293). A tool-using turn poisons a
|
|
67
|
+
* later tool-permission request, which is never answered; the worker's turn then ends where
|
|
68
|
+
* it stood. The rule that survives on real seats: THE PHASE THAT INSPECTS THE APP MUST BE
|
|
69
|
+
* THE PHASE THAT WRITES THE SPEC, and nothing before it may touch a tool. So the first-spec
|
|
70
|
+
* workflow is a TOOL-FREE planning phase then an inspect-and-write phase, and the re-author
|
|
71
|
+
* workflow is one local-files-only writing phase. Both the "let recon look at the app" and
|
|
72
|
+
* the "collapse it all into one phase" shapes were run against a real seat and died. The
|
|
73
|
+
* numbers and the failure signatures are on INTERACTIVE_DEMO_WORKFLOW_DEF — read them
|
|
74
|
+
* before reshaping either def.
|
|
75
|
+
*/
|
|
76
|
+
import { type StructuralHandoff } from './edit-events.js';
|
|
77
|
+
import { InteractiveHandoffLedger } from './ledger.js';
|
|
78
|
+
import type { CoreAdapter } from '../core/adapter.js';
|
|
79
|
+
import type { WorkflowDef } from '../core/types.js';
|
|
80
|
+
export declare const DEMO_REQUESTED = "wicked.interactive.demo.requested";
|
|
81
|
+
/** Exact-type filters with a domain guard — no wildcards. The seam listens on TWO topics:
|
|
82
|
+
* doc.created (kind:demo — author the first spec) and feedback.processed (demo-kind docs —
|
|
83
|
+
* re-author it). */
|
|
84
|
+
export declare const INTERACTIVE_DEMO_BUS_FILTER = "wicked.interactive.doc.created@wicked-interactive";
|
|
85
|
+
export declare const INTERACTIVE_DEMO_FEEDBACK_BUS_FILTER = "wicked.interactive.feedback.processed@wicked-interactive";
|
|
86
|
+
/** Dedicated durable-cursor identities — NOT the draft/edit/chat seams', so every interactive
|
|
87
|
+
* seam advances an independent cursor and stopping one never strands another. The two demo
|
|
88
|
+
* subscriptions get their own cursors too: they filter different types. */
|
|
89
|
+
export declare const INTERACTIVE_DEMO_BUS_PLUGIN = "wicked-crew-interactive-demo";
|
|
90
|
+
export declare const INTERACTIVE_DEMO_FEEDBACK_BUS_PLUGIN = "wicked-crew-interactive-demo-feedback";
|
|
91
|
+
/** The one file the whole demo pipeline pivots on (interactive demo.js `DEMO_SPEC`):
|
|
92
|
+
* `recordDemo` refuses to record until `<docDir>/demo.spec.mjs` exists. */
|
|
93
|
+
export declare const DEMO_SPEC_FILE = "demo.spec.mjs";
|
|
94
|
+
export declare const INTERACTIVE_DEMO_WORKFLOW = "interactive-demo";
|
|
95
|
+
export declare const INTERACTIVE_DEMO_REAUTHOR_WORKFLOW = "interactive-demo-reauthor";
|
|
96
|
+
/**
|
|
97
|
+
* The governed workflow that authors a demo's FIRST spec. TWO agent phases — `scenes` (recon,
|
|
98
|
+
* neutral: plan from the brief and the URL string, TOUCHING NOTHING) then `spec` (build,
|
|
99
|
+
* creator: inspect the live app, write the Playwright spec, report).
|
|
100
|
+
*
|
|
101
|
+
* THE PHASE SPLIT IS LOAD-BEARING AND MEASURED — do not "simplify" it in either direction.
|
|
102
|
+
* wicked-core#293: A TOOL-USING TURN POISONS A LATER TOOL-PERMISSION REQUEST — the request is
|
|
103
|
+
* never answered, so the worker's turn ends where it stood. Three shapes have been run against
|
|
104
|
+
* a real seat on a real stack (adversarial + build verification, 2026-08-24), and only one
|
|
105
|
+
* survives:
|
|
106
|
+
*
|
|
107
|
+
* 1. recon phase that INSPECTS THE APP, then a spec phase — DEAD 4/4. The recon turn fetches
|
|
108
|
+
* the target, and the spec phase's first permission request goes unanswered; nothing is
|
|
109
|
+
* ever written.
|
|
110
|
+
* 2. recon phase forbidden from using ANY TOOL, then a spec phase that curls the app and
|
|
111
|
+
* writes — GREEN 15/15 end-to-end: spec authored, installed, a 436KB webm recorded, the
|
|
112
|
+
* storyboard landed, `version.created kind:demo` on the bus. THIS IS THE SHAPE BELOW.
|
|
113
|
+
* 3. ONE phase doing inspect + plan + write together (the obvious "no next turn to poison"
|
|
114
|
+
* simplification) — DEAD 3/3, and this is the counter-intuitive result worth writing down:
|
|
115
|
+
* the worker curls the pages, narrates "now writing the spec", and the turn ends AT the
|
|
116
|
+
* write. Two runs died with an empty inbox and 161-345 byte outputs (one rejected by the
|
|
117
|
+
* substance floor as `substanceRejected`, one "completed" with no deliverable and caught
|
|
118
|
+
* by finalize). Collapsing the phases does NOT dodge #293 — it just moves the unanswered
|
|
119
|
+
* permission request from the next turn into this one.
|
|
120
|
+
*
|
|
121
|
+
* A fourth data point narrows what "tool use" means here: the re-author leg's single phase
|
|
122
|
+
* does `Read` + `Read` + `Write` in one turn and lands green (7/7, run 0704b910 — revised spec
|
|
123
|
+
* installed, v2 re-recorded). So a turn that reads LOCAL FILES and then writes is fine; it is
|
|
124
|
+
* the NETWORK fetch that costs the following write, whether that write is in the next turn
|
|
125
|
+
* (shape 1) or the same one (shape 3). Treat that as the observed discriminator, not a proven
|
|
126
|
+
* mechanism — #293 is wicked-core's to diagnose; this def only has to survive it.
|
|
127
|
+
*
|
|
128
|
+
* So the rule this workflow encodes is narrower than "one phase": THE PHASE THAT INSPECTS THE
|
|
129
|
+
* APP MUST BE THE PHASE THAT WRITES THE DELIVERABLE, and nothing before it may touch a tool.
|
|
130
|
+
* Phase 1 therefore plans from the brief and the URL STRING alone and is told so explicitly (a
|
|
131
|
+
* soft constraint, and the model has broken a weaker one — the shipped wording said only "do
|
|
132
|
+
* not write any files" and the worker fetched the app anyway — so the prohibition names tools
|
|
133
|
+
* outright and says what it protects).
|
|
134
|
+
*
|
|
135
|
+
* The phase `instructions` adapt the demo-authoring contract from interactive's assist skill
|
|
136
|
+
* (Step 8a/8b) and demo.js `recordDemo`'s executable contract: ESM exporting `meta` + `async
|
|
137
|
+
* run({page, step, meta})`, every meaningful action wrapped in `step(label, fn, {say,
|
|
138
|
+
* holdMs})`, capability narration, stable selectors, awaited waits, and NEVER credentials in
|
|
139
|
+
* the file. SINGLE-LINE by contract (PTY seat runner, wicked-core FINDING-011).
|
|
140
|
+
*
|
|
141
|
+
* THE SUBSTANCE FLOOR (wicked-core `actor.rs`, "phase produced no reviewable substance"): a
|
|
142
|
+
* governed creator/neutral phase whose fold carries neither a worktree diff nor >=200 trimmed
|
|
143
|
+
* chars of prose is REJECTED and fails the run. These runs are UNBOUND — `workdir: null`, so
|
|
144
|
+
* there is never a worktree diff by construction — and the deliverable is a FILE in the inbox,
|
|
145
|
+
* invisible to that check. A worker told only to "end your reply with the absolute path" answers
|
|
146
|
+
* in ~50 bytes and the whole demo dies at the gate (observed 3/3 on the real stack before this
|
|
147
|
+
* wording). So both workflows' build phases demand a prose report of what they wrote: the
|
|
148
|
+
* phase's own reviewable substance, not decoration.
|
|
149
|
+
*
|
|
150
|
+
* All gates are `auto` with `validator_pin: null` — no human gate — because the acceptance
|
|
151
|
+
* gate for a demo is the RECORDING itself: the service executes the spec (a broken selector
|
|
152
|
+
* fails the record with a step-precise error status) and the user judges the video on the
|
|
153
|
+
* storyboard, then refines through the same loop. The assist skill's interactive scene-plan
|
|
154
|
+
* confirmation (Step 8a.5) was an editorial affordance of a conversational session; the
|
|
155
|
+
* governed loop's editorial channel is the step-feedback path below.
|
|
156
|
+
*/
|
|
157
|
+
export declare const INTERACTIVE_DEMO_WORKFLOW_DEF: WorkflowDef;
|
|
158
|
+
/**
|
|
159
|
+
* The governed workflow that RE-authors a spec per step feedback (Step 8c). ONE agent phase —
|
|
160
|
+
* `respec` (build, creator role) — the edit leg's rationale: the current spec and the user's
|
|
161
|
+
* instructions are already extracted into files the task names, so a recon phase would only
|
|
162
|
+
* burn a council turn re-reading what the build phase reads anyway.
|
|
163
|
+
*
|
|
164
|
+
* SAME v2 TREATMENT AS THE FIRST-SPEC WORKFLOW (wicked-core#293), which for this leg means
|
|
165
|
+
* LEAVING IT ALONE and saying why. Nothing runs before the phase that writes, so no predecessor
|
|
166
|
+
* turn can poison its permissions — and its own tool use is LOCAL FILE READS inside the run's
|
|
167
|
+
* declared write root (the same shape as the interactive-edit workflow's single phase, which
|
|
168
|
+
* reads a handoff JSON and writes fragments in one turn, in production, today). What this leg
|
|
169
|
+
* must NOT grow is a live re-fetch of the app: the first-spec measurements above show a turn
|
|
170
|
+
* that fetches the network and then writes losing the write outright (shape 3, dead 3/3),
|
|
171
|
+
* while this leg's Read+Read+Write turn lands green (7/7 on a real seat, run 0704b910). If a
|
|
172
|
+
* feedback item ever genuinely needs a selector the current spec lacks, the fix is a preceding
|
|
173
|
+
* TOOL-FREE phase plus inspection moved into this one — the shape 2 arrangement — not a fetch
|
|
174
|
+
* bolted onto the writing turn.
|
|
175
|
+
*/
|
|
176
|
+
export declare const INTERACTIVE_DEMO_REAUTHOR_WORKFLOW_DEF: WorkflowDef;
|
|
177
|
+
/** The demo-creation fields this seam acts on. */
|
|
178
|
+
export interface DemoDocCreated {
|
|
179
|
+
documentId: string;
|
|
180
|
+
/** The live app URL the demo records against (server-validated http(s) at doc creation). */
|
|
181
|
+
url: string;
|
|
182
|
+
brief: string;
|
|
183
|
+
/** Present when the doc is project-bound; absent = unfiled (first-class, DES-UX-001 slice U). */
|
|
184
|
+
projectId?: string;
|
|
185
|
+
}
|
|
186
|
+
/** URL budget for the problem statement: the URL must ride VERBATIM (a respelled URL targets
|
|
187
|
+
* the wrong app), so an over-budget one refuses the parse rather than truncating. */
|
|
188
|
+
export declare const DEMO_URL_MAX = 1000;
|
|
189
|
+
/**
|
|
190
|
+
* Parse a bus frame into a {@link DemoDocCreated}, or `null` when it is not an actionable
|
|
191
|
+
* demo creation: wrong type, non-`demo` kind (source/html docs are the draft seam's and the
|
|
192
|
+
* user's own business), missing/malformed document_id, or an unusable URL. The URL must be a
|
|
193
|
+
* parseable http(s) URL with no whitespace/control characters — it rides the single-line PTY
|
|
194
|
+
* problem verbatim (interactive's server validates this at creation, so a violation here is
|
|
195
|
+
* producer drift, not a user path).
|
|
196
|
+
*/
|
|
197
|
+
export declare function parseDemoDocCreated(eventType: string, payload: unknown): DemoDocCreated | null;
|
|
198
|
+
/**
|
|
199
|
+
* The first-spec run's problem statement (the engine scopes it per phase and folds each
|
|
200
|
+
* phase's instructions on top). Carries the doc identity, the target URL VERBATIM, the brief
|
|
201
|
+
* (flattened + capped: PTY, wicked-core FINDING-011), and the absolute inbox path the spec
|
|
202
|
+
* must land at. Deliberately NO doc-workspace path: the unbound worker could not read or
|
|
203
|
+
* write it anyway (wicked-core#294) — crew installs the spec at finalize.
|
|
204
|
+
*/
|
|
205
|
+
export declare function demoProblem(doc: DemoDocCreated, outPath: string): string;
|
|
206
|
+
/**
|
|
207
|
+
* The re-author run's problem statement. Single-line; the bulky parts (the current spec, the
|
|
208
|
+
* feedback fragments) ride in FILES inside the inbox — write roots are readable
|
|
209
|
+
* (wicked-core#259) — so only identity, the capped instruction gist, and the three paths ride
|
|
210
|
+
* here (the edit leg's handoff-by-file discipline).
|
|
211
|
+
*/
|
|
212
|
+
export declare function demoReauthorProblem(handoff: StructuralHandoff, currentSpecPath: string, feedbackPath: string, outPath: string): string;
|
|
213
|
+
/** Deterministic bus idempotency key for the FIRST record request this seam may trigger per
|
|
214
|
+
* document. Distinct from every re-author key: a demo legitimately re-records many times, so
|
|
215
|
+
* the record trigger must never dedupe across authoring generations. */
|
|
216
|
+
export declare function demoIdempotencyKey(documentId: string): string;
|
|
217
|
+
/** Deterministic bus idempotency key for the one re-record a given feedback handoff earns. */
|
|
218
|
+
export declare function demoReauthorIdempotencyKey(documentId: string, version: number): string;
|
|
219
|
+
/**
|
|
220
|
+
* Deterministic pre-install self-check on the worker's spec (the demo leg's sibling of the
|
|
221
|
+
* edit leg's INV-2 check): `recordDemo` imports the file and throws on a missing `run` export
|
|
222
|
+
* (interactive demo.js), which would surface as a recording error AFTER crew claimed success.
|
|
223
|
+
* Fail honest crew-side instead: a spec that plainly cannot satisfy the module contract is
|
|
224
|
+
* never installed. Returns the human-readable violation, or `null` when the spec looks like a
|
|
225
|
+
* real module. Deliberately shallow — a static check cannot execute the module, so it pins
|
|
226
|
+
* only the export shape the contract mandates; a wrong-but-well-formed spec is the recording's
|
|
227
|
+
* (and the user's) to judge, exactly like a wrong-but-anchor-safe edit on the edit leg.
|
|
228
|
+
*/
|
|
229
|
+
export declare function specSelfCheck(spec: string): string | null;
|
|
230
|
+
/** Options for {@link startInteractiveDemoSubscriber}. */
|
|
231
|
+
export interface InteractiveDemoOptions {
|
|
232
|
+
/** Bus SQLite db path. Omit to let wicked-bus resolve its own default
|
|
233
|
+
* (honors `WICKED_BUS_DATA_DIR`) — where interactive's service emits unless redirected. */
|
|
234
|
+
dbPath?: string;
|
|
235
|
+
/** Poll cadence, ms (default 2000; tests shorten it). */
|
|
236
|
+
pollIntervalMs?: number;
|
|
237
|
+
/** Heartbeat narration cadence while a run is in flight, ms (default 15000 — inside the
|
|
238
|
+
* UI's ~20s `status.requested` window so the canvas never reads frozen). */
|
|
239
|
+
heartbeatMs?: number;
|
|
240
|
+
/** Ledger file (default `~/.wicked-crew/interactive-demo-ledger.json`). */
|
|
241
|
+
ledgerPath?: string;
|
|
242
|
+
/** Root under which each launch gets its own per-run subdirectory (`<demoDir>/<docId>/` for
|
|
243
|
+
* a first spec, `<demoDir>/<docId>-v<version>/` for a re-author) holding the deliverable
|
|
244
|
+
* (and, on the re-author leg, the current-spec copy + feedback JSON); only that
|
|
245
|
+
* subdirectory is declared as the run's extra write root (per-run isolation — Copilot,
|
|
246
|
+
* crew#313). Default `~/.wicked-crew/interactive-demos`. */
|
|
247
|
+
demoDir?: string;
|
|
248
|
+
/** Seat roster JSON for the governed run (default: the production council roster).
|
|
249
|
+
* The functional-test harness passes a deterministic stub seat here. */
|
|
250
|
+
clisJson?: string;
|
|
251
|
+
/** The docs root a doc's workspace lives under — where the finished spec is INSTALLED and
|
|
252
|
+
* where the feedback leg reads the manifest kind + current spec. Default: the
|
|
253
|
+
* shared-default resolution (`WICKED_INTERACTIVE_ROOT` › `~/wicked-interactive/docs`);
|
|
254
|
+
* the server wires the per-project `interactiveRoot` setting through here. */
|
|
255
|
+
resolveDocsRoot?: (projectId: string | undefined) => string;
|
|
256
|
+
/** Called after a launch that FILED the run into a project (the trigger carried
|
|
257
|
+
* `project_id`). Same wiring as the sibling seams. */
|
|
258
|
+
onRunFiled?: (runId: string, projectId: string) => void;
|
|
259
|
+
/** Diagnostics sink (default: console.error). */
|
|
260
|
+
log?: (message: string) => void;
|
|
261
|
+
}
|
|
262
|
+
/** Handle for a running subscription. */
|
|
263
|
+
export interface InteractiveDemoSubscription {
|
|
264
|
+
stop(): Promise<void> | void;
|
|
265
|
+
/** The durable ledger (diagnostics / tests). Keys: `<doc>` = the first spec authoring,
|
|
266
|
+
* `<doc>:v<N>` = the re-author for the feedback handoff on version N. */
|
|
267
|
+
ledger: InteractiveHandoffLedger;
|
|
268
|
+
/** Documents with a demo run currently in flight (either leg). */
|
|
269
|
+
inFlightDocs(): string[];
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Arm the seam: register the demo workflows, open durable subscriptions on
|
|
273
|
+
* `wicked.interactive.doc.created` (kind:demo) and `wicked.interactive.feedback.processed`
|
|
274
|
+
* (demo-kind docs), and answer each with a governed run that authors/installs
|
|
275
|
+
* `demo.spec.mjs` and ends in `wicked.interactive.demo.requested` — the model-free service
|
|
276
|
+
* then records the video and lands the storyboard version itself.
|
|
277
|
+
*
|
|
278
|
+
* Graceful degradation mirrors the sibling seams: a missing wicked-bus package or an
|
|
279
|
+
* unopenable db LOGS and returns `null` — the daemon must still boot on a machine whose bus
|
|
280
|
+
* is broken; the demo doc then simply keeps its placeholder (the pre-CREW-UX-9 state).
|
|
281
|
+
*/
|
|
282
|
+
export declare function startInteractiveDemoSubscriber(adapter: CoreAdapter, opts?: InteractiveDemoOptions): Promise<InteractiveDemoSubscription | null>;
|
|
283
|
+
//# sourceMappingURL=demo-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demo-events.d.ts","sourceRoot":"","sources":["../../src/interactive/demo-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAgBH,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EA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