claude-code-session-manager 0.127.0 → 0.129.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.
Files changed (91) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/README.md +2 -0
  3. package/dist/assets/{AgentLibrary-DKQznr7o.js → AgentLibrary-Cp250YHF.js} +1 -1
  4. package/dist/assets/{Button-CZXqmIiM.js → Button-DU5UF-6L.js} +1 -1
  5. package/dist/assets/{DataModel-piyV33To.js → DataModel-CPf6f17e.js} +1 -1
  6. package/dist/assets/{History-BxwtrKF2.js → History-B2x-LMlT.js} +1 -1
  7. package/dist/assets/{Hooks-DogeSPII.js → Hooks-BWr33C4Q.js} +1 -1
  8. package/dist/assets/{Library-BDt6EeQQ.js → Library-DBNLTAa8.js} +1 -1
  9. package/dist/assets/{ListDetail-CwS-LKar.js → ListDetail-BGBw6egp.js} +1 -1
  10. package/dist/assets/{McpServers-D2HVljgS.js → McpServers-DywZ50Ec.js} +1 -1
  11. package/dist/assets/{Memory-hNzuOGn8.js → Memory-CnalwnFf.js} +1 -1
  12. package/dist/assets/{Panel-BLDrsUeq.js → Panel-BzIklgKf.js} +1 -1
  13. package/dist/assets/{Permissions-DzZ5vaJW.js → Permissions-mgRifwQc.js} +1 -1
  14. package/dist/assets/{Plugins-Cz9yaxzG.js → Plugins-CV42zfid.js} +2 -2
  15. package/dist/assets/{ProvenanceBadge-CCgLO4m9.js → ProvenanceBadge-DYmX4xgB.js} +1 -1
  16. package/dist/assets/{SaveBar-Shmn699J.js → SaveBar-DxrAfnlC.js} +1 -1
  17. package/dist/assets/{Scheduler-Bqr0WHNd.js → Scheduler-iyUl1NDl.js} +1 -1
  18. package/dist/assets/{ScopeSwitcher-CBx1fB5g.js → ScopeSwitcher-CC8BDPgf.js} +1 -1
  19. package/dist/assets/{Settings-Ci8in-yF.js → Settings-CWBnQghD.js} +1 -1
  20. package/dist/assets/{SkillReferenceGraph-BWwljba8.js → SkillReferenceGraph-DOhiCxuL.js} +1 -1
  21. package/dist/assets/{Skills-BON6o-c4.js → Skills-3Er-9YA9.js} +1 -1
  22. package/dist/assets/{SystemPrompt-D5epIYYs.js → SystemPrompt-BLxdvZ9K.js} +1 -1
  23. package/dist/assets/{TagLibrary-C2qDZROJ.js → TagLibrary-BZ6QHYMQ.js} +1 -1
  24. package/dist/assets/{TiptapBody-SZhI3-bW.js → TiptapBody-Du6jRBoW.js} +1 -1
  25. package/dist/assets/{Toggle-C_qFDG0g.js → Toggle-Qdi2Z7VD.js} +1 -1
  26. package/dist/assets/{ViewTabs-C9q5WCEd.js → ViewTabs-BKfFsziD.js} +1 -1
  27. package/dist/assets/{historyTotals-BCl7IOhY.js → historyTotals-8ecP_6wF.js} +1 -1
  28. package/dist/assets/{index-BnKaYERU.css → index-DtdWBGrI.css} +1 -1
  29. package/dist/assets/index-GI6F_j41.js +3083 -0
  30. package/dist/assets/{settingsSchema-BBrRBrBr.js → settingsSchema-lHTHAabD.js} +1 -1
  31. package/dist/assets/{skillFrontmatter-B01qJk6N.js → skillFrontmatter-8X1Uc282.js} +1 -1
  32. package/dist/assets/{useAgentsDirWatch-CuR3GSjS.js → useAgentsDirWatch-CcsoD1bp.js} +1 -1
  33. package/dist/index.html +2 -2
  34. package/dist-web/app.css +1 -1
  35. package/dist-web/app.js +373 -369
  36. package/package.json +1 -1
  37. package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
  38. package/plugins/session-manager-dev/skills/develop/SKILL.md +4 -2
  39. package/scripts/hooks/lib/guard-inline-implementation-policy.cjs +10 -0
  40. package/scripts/scheduler-mcp-server.cjs +170 -6
  41. package/src/main/build-info.json +4 -4
  42. package/src/main/chatRunner.cjs +8 -0
  43. package/src/main/index.cjs +27 -0
  44. package/src/main/ipcSchemas.cjs +110 -1
  45. package/src/main/lib/claude/agentModelResolve.cjs +31 -10
  46. package/src/main/lib/claude/effectiveModelInfo.cjs +14 -4
  47. package/src/main/lib/claude/modelCatalog.cjs +28 -1
  48. package/src/main/lib/claude/personaToolScope.cjs +40 -2
  49. package/src/main/lib/demo-video-kit/capture.cjs +113 -0
  50. package/src/main/lib/demo-video-kit/character.cjs +97 -0
  51. package/src/main/lib/demo-video-kit/checks.cjs +150 -0
  52. package/src/main/lib/demo-video-kit/frames.cjs +200 -0
  53. package/src/main/lib/demo-video-kit/seedKit.cjs +52 -0
  54. package/src/main/lib/demo-video-kit/sound.cjs +312 -0
  55. package/src/main/lib/epic/developLoopSpawn.cjs +18 -0
  56. package/src/main/lib/epic/epicMint.cjs +4 -2
  57. package/src/main/lib/epic/epicValidationHook.cjs +17 -1
  58. package/src/main/lib/epic/promptSessionsCreateEpic.cjs +4 -3
  59. package/src/main/lib/feedback-remote/crossProjectFeedback.cjs +21 -21
  60. package/src/main/lib/feedback-remote/projectHomeAdminRoutes.cjs +185 -34
  61. package/src/main/lib/feedback-remote/remoteIpcDispatch.cjs +15 -0
  62. package/src/main/lib/mcpToolCatalog.cjs +71 -11
  63. package/src/main/lib/opsOwnership.cjs +9 -5
  64. package/src/main/lib/persona-macro/builtinMacros.cjs +19 -5
  65. package/src/main/lib/persona-macro/macroJobDispatch.cjs +116 -0
  66. package/src/main/lib/persona-macro/macroJobIpc.cjs +50 -0
  67. package/src/main/lib/persona-macro/macroJobStatus.cjs +112 -0
  68. package/src/main/lib/persona-macro/macroLibrary.cjs +16 -0
  69. package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +113 -0
  70. package/src/main/lib/prd/prdCreate.cjs +27 -1
  71. package/src/main/lib/prd/prdFrontmatter.cjs +7 -2
  72. package/src/main/lib/project-pages/pagesLibrary.cjs +171 -0
  73. package/src/main/lib/project-pages/playerBridge.cjs +129 -0
  74. package/src/main/lib/promptSessionSchema.cjs +8 -0
  75. package/src/main/lib/scheduler/scheduleJobSchema.cjs +2 -0
  76. package/src/main/lib/smfileHeaders.cjs +11 -3
  77. package/src/main/projectPages.cjs +107 -30
  78. package/src/main/promptSessionsIpc.cjs +131 -0
  79. package/src/main/scheduler/prdParser.cjs +2 -0
  80. package/src/main/scheduler.cjs +26 -9
  81. package/src/main/seedSchedulerMcp.cjs +10 -1
  82. package/src/main/transcripts.cjs +8 -0
  83. package/src/main/webRemote.cjs +3 -1
  84. package/src/preload/api.d.ts +107 -6
  85. package/src/preload/apiSurface.json +77 -0
  86. package/src/preload/index.cjs +18 -0
  87. package/src/seed/agents/architect.md +8 -8
  88. package/src/seed/agents/demo-video-builder.md +86 -36
  89. package/src/seed/agents/project-home-builder.md +26 -13
  90. package/dist/assets/index-CMIYLbPb.js +0 -3079
  91. package/src/main/lib/epic/epicStandingInstructions.cjs +0 -73
@@ -0,0 +1,200 @@
1
+ 'use strict';
2
+ // Demo-video kit frame sampler: open a finished video document in headless Chromium, seek
3
+ // window.smDemo every stepS seconds, compute per-frame luma stats (input for checkBlankFrames)
4
+ // and write a contact sheet PNG for the persona to review. Playwright is resolved at runtime
5
+ // (same resolution as capture.cjs) and never installed here. Node builtins only.
6
+ const fs = require('fs');
7
+ const path = require('path');
8
+ const zlib = require('zlib');
9
+ const { spawnSync } = require('child_process');
10
+ const { pathToFileURL } = require('url');
11
+
12
+ const MAX_FRAMES = 120;
13
+ const VIEWPORT = { width: 1280, height: 720 };
14
+ const TILE_W = 160;
15
+ const SHEET_COLS = 8;
16
+ const PNG_SIG = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);
17
+
18
+ function tryRequire(name, paths) {
19
+ try { return require(require.resolve(name, { paths })); } catch { return null; }
20
+ }
21
+ function globalNpmRoot() {
22
+ try {
23
+ const r = spawnSync('npm', ['root', '-g'], { encoding: 'utf8', timeout: 15000 });
24
+ return r.status === 0 ? String(r.stdout).trim() : '';
25
+ } catch { return ''; }
26
+ }
27
+ /** Same resolution as capture.cjs: process.cwd() first, then the global npm root. */
28
+ function defaultLoader() {
29
+ for (const name of ['playwright', 'playwright-core']) {
30
+ const m = tryRequire(name, [process.cwd()]);
31
+ if (m) return m;
32
+ }
33
+ const root = globalNpmRoot();
34
+ if (root) {
35
+ for (const name of ['playwright', 'playwright-core']) {
36
+ const m = tryRequire(name, [root]);
37
+ if (m) return m;
38
+ }
39
+ }
40
+ return null;
41
+ }
42
+
43
+ // ---- minimal PNG codec -------------------------------------------------------------------
44
+ const CHANNELS = { 0: 1, 2: 3, 4: 2, 6: 4 };
45
+
46
+ /** Decode a non-interlaced 8-bit PNG (gray, RGB, gray+alpha, RGBA) -> {width, height, channels, data}. */
47
+ function decodePng(buf) {
48
+ if (!Buffer.isBuffer(buf) || buf.length < 8 || !buf.subarray(0, 8).equals(PNG_SIG)) throw new Error('not a PNG');
49
+ let pos = 8; let ihdr = null; const idat = [];
50
+ while (pos + 8 <= buf.length) {
51
+ const len = buf.readUInt32BE(pos);
52
+ const type = buf.toString('latin1', pos + 4, pos + 8);
53
+ const body = buf.subarray(pos + 8, pos + 8 + len);
54
+ if (type === 'IHDR') ihdr = body;
55
+ else if (type === 'IDAT') idat.push(body);
56
+ else if (type === 'IEND') break;
57
+ pos += 12 + len;
58
+ }
59
+ if (!ihdr) throw new Error('PNG missing IHDR');
60
+ const width = ihdr.readUInt32BE(0); const height = ihdr.readUInt32BE(4);
61
+ const depth = ihdr[8]; const ctype = ihdr[9]; const interlace = ihdr[12];
62
+ if (depth !== 8 || !CHANNELS[ctype] || interlace !== 0) throw new Error(`unsupported PNG (depth ${depth}, type ${ctype}, interlace ${interlace})`);
63
+ const ch = CHANNELS[ctype];
64
+ const raw = zlib.inflateSync(Buffer.concat(idat));
65
+ const stride = width * ch;
66
+ if (raw.length < (stride + 1) * height) throw new Error('PNG data truncated');
67
+ const out = Buffer.alloc(stride * height);
68
+ for (let y = 0; y < height; y++) {
69
+ const f = raw[y * (stride + 1)];
70
+ const src = y * (stride + 1) + 1; const dst = y * stride;
71
+ for (let i = 0; i < stride; i++) {
72
+ const x = raw[src + i];
73
+ const a = i >= ch ? out[dst + i - ch] : 0;
74
+ const b = y > 0 ? out[dst - stride + i] : 0;
75
+ const c = i >= ch && y > 0 ? out[dst - stride + i - ch] : 0;
76
+ let v;
77
+ if (f === 0) v = x;
78
+ else if (f === 1) v = x + a;
79
+ else if (f === 2) v = x + b;
80
+ else if (f === 3) v = x + ((a + b) >> 1);
81
+ else if (f === 4) {
82
+ const p = a + b - c; const pa = Math.abs(p - a); const pb = Math.abs(p - b); const pc = Math.abs(p - c);
83
+ v = x + (pa <= pb && pa <= pc ? a : pb <= pc ? b : c);
84
+ } else throw new Error(`bad PNG filter ${f}`);
85
+ out[dst + i] = v & 255;
86
+ }
87
+ }
88
+ return { width, height, channels: ch, data: out };
89
+ }
90
+
91
+ let crcTable = null;
92
+ function crc32(buf) {
93
+ if (!crcTable) {
94
+ crcTable = new Int32Array(256);
95
+ for (let n = 0; n < 256; n++) { let c = n; for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1; crcTable[n] = c; }
96
+ }
97
+ let c = -1;
98
+ for (let i = 0; i < buf.length; i++) c = crcTable[(c ^ buf[i]) & 255] ^ (c >>> 8);
99
+ return (c ^ -1) >>> 0;
100
+ }
101
+ function chunk(type, body) {
102
+ const t = Buffer.from(type, 'latin1');
103
+ const len = Buffer.alloc(4); len.writeUInt32BE(body.length);
104
+ const crc = Buffer.alloc(4); crc.writeUInt32BE(crc32(Buffer.concat([t, body])));
105
+ return Buffer.concat([len, t, body, crc]);
106
+ }
107
+ /** Encode 8-bit RGB pixels (width*height*3) as a PNG. */
108
+ function encodePng(width, height, rgb) {
109
+ const stride = width * 3;
110
+ const raw = Buffer.alloc((stride + 1) * height);
111
+ for (let y = 0; y < height; y++) rgb.copy(raw, y * (stride + 1) + 1, y * stride, (y + 1) * stride);
112
+ const ihdr = Buffer.alloc(13);
113
+ ihdr.writeUInt32BE(width, 0); ihdr.writeUInt32BE(height, 4); ihdr[8] = 8; ihdr[9] = 2;
114
+ return Buffer.concat([PNG_SIG, chunk('IHDR', ihdr), chunk('IDAT', zlib.deflateSync(raw)), chunk('IEND', Buffer.alloc(0))]);
115
+ }
116
+
117
+ /** Rec.601 luma of every pixel (alpha ignored) -> {mean, stdDev}. */
118
+ function lumaStats(img) {
119
+ const { width, height, channels: ch, data } = img;
120
+ const n = width * height;
121
+ if (!n) return { mean: 0, stdDev: 0 };
122
+ let sum = 0; let sumSq = 0;
123
+ for (let p = 0; p < n; p++) {
124
+ const o = p * ch;
125
+ const l = ch >= 3 ? 0.299 * data[o] + 0.587 * data[o + 1] + 0.114 * data[o + 2] : data[o];
126
+ sum += l; sumSq += l * l;
127
+ }
128
+ const mean = sum / n;
129
+ return { mean, stdDev: Math.sqrt(Math.max(0, sumSq / n - mean * mean)) };
130
+ }
131
+
132
+ function toRgb(img, x, y) {
133
+ const o = (y * img.width + x) * img.channels;
134
+ return img.channels >= 3 ? [img.data[o], img.data[o + 1], img.data[o + 2]] : [img.data[o], img.data[o], img.data[o]];
135
+ }
136
+ /** Nearest-neighbour tile grid of decoded images -> PNG buffer. */
137
+ function buildContactSheet(images) {
138
+ const cols = Math.max(1, Math.min(SHEET_COLS, images.length));
139
+ const rows = Math.max(1, Math.ceil(images.length / cols));
140
+ const first = images[0];
141
+ const tileH = first ? Math.max(1, Math.round(TILE_W * first.height / first.width)) : Math.round(TILE_W * 9 / 16);
142
+ const W = cols * TILE_W; const H = rows * tileH;
143
+ const out = Buffer.alloc(W * H * 3);
144
+ images.forEach((img, i) => {
145
+ const ox = (i % cols) * TILE_W; const oy = Math.floor(i / cols) * tileH;
146
+ for (let y = 0; y < tileH; y++) {
147
+ const sy = Math.min(img.height - 1, Math.floor(y * img.height / tileH));
148
+ for (let x = 0; x < TILE_W; x++) {
149
+ const [r, g, b] = toRgb(img, Math.min(img.width - 1, Math.floor(x * img.width / TILE_W)), sy);
150
+ const o = ((oy + y) * W + ox + x) * 3;
151
+ out[o] = r; out[o + 1] = g; out[o + 2] = b;
152
+ }
153
+ }
154
+ });
155
+ return encodePng(W, H, out);
156
+ }
157
+
158
+ /**
159
+ * Seek the video document every stepS seconds and report per-frame luma spread.
160
+ * Returns {frames:[{t, lumaStdDev, lumaStddev}], contactSheet} | {skipped} | {error}.
161
+ * `lumaStddev` mirrors `lumaStdDev` because checkBlankFrames reads that spelling.
162
+ */
163
+ async function sampleFrames({ htmlPath, lengthS, stepS = 0.5, outDir, loadPlaywright } = {}) {
164
+ const length = Number(lengthS); const step = Number(stepS);
165
+ if (!htmlPath || !outDir || !(length > 0) || !(step > 0)) return { error: 'htmlPath, outDir, lengthS > 0 and stepS > 0 are required' };
166
+ const count = Math.floor(length / step + 1e-9) + 1;
167
+ if (count > MAX_FRAMES) return { error: `refused: ${count} frames exceeds the ${MAX_FRAMES} frame cap` };
168
+ const pw = (loadPlaywright || defaultLoader)();
169
+ const resolved = pw && typeof pw.then === 'function' ? await pw : pw;
170
+ const chromium = resolved && resolved.chromium;
171
+ if (!chromium) return { skipped: 'no-playwright' };
172
+
173
+ fs.mkdirSync(outDir, { recursive: true });
174
+ const frames = []; const images = [];
175
+ let browser;
176
+ try { browser = await chromium.launch({ headless: true }); } catch { return { skipped: 'no-playwright' }; } // package without a browser binary
177
+ try {
178
+ const page = await browser.newPage({ viewport: VIEWPORT });
179
+ page.setDefaultTimeout(30000);
180
+ await page.goto(pathToFileURL(path.resolve(htmlPath)).href, { timeout: 30000, waitUntil: 'load' });
181
+ await page.evaluate(() => { const d = window.smDemo; if (d && typeof d.pause === 'function') d.pause(); });
182
+ for (let i = 0; i < count; i++) {
183
+ const t = Math.round(i * step * 1000) / 1000;
184
+ await page.evaluate((s) => { const d = window.smDemo; if (d && typeof d.seek === 'function') d.seek(s); }, t);
185
+ await page.evaluate(() => new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r))));
186
+ const img = decodePng(await page.screenshot({ type: 'png' }));
187
+ const { stdDev } = lumaStats(img);
188
+ const v = Math.round(stdDev * 100) / 100;
189
+ frames.push({ t, lumaStdDev: v, lumaStddev: v });
190
+ images.push(img);
191
+ }
192
+ } finally {
193
+ await browser.close();
194
+ }
195
+ const contactSheet = path.join(outDir, 'contact-sheet.png');
196
+ fs.writeFileSync(contactSheet, buildContactSheet(images));
197
+ return { frames, contactSheet };
198
+ }
199
+
200
+ module.exports = { MAX_FRAMES, sampleFrames, decodePng, encodePng, lumaStats, buildContactSheet };
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Boot-time seeder for the demo-video kit.
3
+ *
4
+ * Copies the kit's runnable modules to a stable per-machine folder,
5
+ * `~/.claude/session-manager/demo-video-kit/`, so the demo-video persona can
6
+ * `require()` them from any project's cwd (the app's own install path changes
7
+ * with every npx hash dir). A `KIT_VERSION` stamp file records which kit
8
+ * version is installed; files are overwritten only when the stamp differs, so
9
+ * a normal boot is one small read. Bump KIT_VERSION whenever any kit file
10
+ * changes behaviour.
11
+ *
12
+ * Fire-and-forget from index.cjs: errors are logged, never thrown.
13
+ * Kill-switch: SM_SEED_DEMO_VIDEO_KIT_DISABLE=1.
14
+ */
15
+ const fs = require('node:fs');
16
+ const path = require('node:path');
17
+ const { schedulerHome } = require('../scheduler/schedulerPaths.cjs');
18
+ const { writeTextAtomic } = require('../util/atomicFs.cjs');
19
+
20
+ const KIT_VERSION = '1';
21
+ const KIT_FILES = ['checks.cjs', 'sound.cjs', 'capture.cjs', 'frames.cjs', 'character.cjs'];
22
+ const STAMP_FILE = 'KIT_VERSION';
23
+
24
+ function kitDestDir() {
25
+ return path.join(schedulerHome(), 'demo-video-kit');
26
+ }
27
+
28
+ async function seedDemoVideoKit({ logger = console, writeLog = () => {}, destDir = kitDestDir(), srcDir = __dirname, kitVersion = KIT_VERSION } = {}) {
29
+ if (process.env.SM_SEED_DEMO_VIDEO_KIT_DISABLE === '1') return { seeded: false, reason: 'disabled' };
30
+ try {
31
+ const stampPath = path.join(destDir, STAMP_FILE);
32
+ let installed = null;
33
+ try { installed = fs.readFileSync(stampPath, 'utf8').trim(); } catch { /* no stamp yet */ }
34
+ const filesPresent = KIT_FILES.every((f) => fs.existsSync(path.join(destDir, f)));
35
+ if (installed === String(kitVersion) && filesPresent) return { seeded: false, reason: 'current' };
36
+
37
+ fs.mkdirSync(destDir, { recursive: true });
38
+ for (const f of KIT_FILES) {
39
+ await writeTextAtomic(path.join(destDir, f), fs.readFileSync(path.join(srcDir, f), 'utf8'));
40
+ }
41
+ // Stamp last: a crash mid-copy leaves the old/no stamp, so the next boot retries.
42
+ await writeTextAtomic(stampPath, `${kitVersion}\n`);
43
+ logger.log?.(`[seedDemoVideoKit] installed kit v${kitVersion} at ${destDir}`);
44
+ return { seeded: true, reason: installed === null ? 'fresh' : 'updated' };
45
+ } catch (err) {
46
+ logger.warn?.('[seedDemoVideoKit] error:', err?.message ?? err);
47
+ writeLog({ scope: 'seed-demo-video-kit', level: 'error', message: 'seed error', meta: { error: err?.message ?? String(err) } });
48
+ return { seeded: false, reason: 'error' };
49
+ }
50
+ }
51
+
52
+ module.exports = { seedDemoVideoKit, kitDestDir, KIT_VERSION, KIT_FILES };
@@ -0,0 +1,312 @@
1
+ 'use strict';
2
+ // Demo-video kit sound helper: synthesized royalty-free music bed, small SFX set,
3
+ // ducked mix under narration, and two-pass ffmpeg loudnorm (-14 LUFS / -1.5 dBTP).
4
+ // Node builtins only; ffmpeg is spawned without a shell and every call has a timeout.
5
+ const fs = require('fs');
6
+ const path = require('path');
7
+ const { spawnSync } = require('child_process');
8
+
9
+ const SR = 44100;
10
+ const FFMPEG = process.env.SM_FFMPEG || 'ffmpeg';
11
+ const FFMPEG_TIMEOUT_MS = 120000;
12
+ const TARGET = { I: -14, TP: -1.5, LRA: 11 };
13
+ const DUCK_DB = 4;
14
+ const BED_BASE_DB = -16; // bed level under silence, relative to full scale before loudnorm
15
+
16
+ // Style presets: tempo, root (Hz), chord progression as semitone triads, timbre, pulse.
17
+ const STYLES = {
18
+ Professional: { bpm: 84, root: 130.81, prog: [[0, 4, 7], [5, 9, 12], [7, 11, 14], [0, 4, 7]], pad: 0.5, bass: 0.35, pulse: 0, pluck: 0.15, bright: 0.2 },
19
+ Fun: { bpm: 118, root: 196.0, prog: [[0, 4, 7], [7, 11, 14], [9, 12, 16], [5, 9, 12]], pad: 0.25, bass: 0.35, pulse: 0.5, pluck: 0.45, bright: 0.6 },
20
+ 'Animated whiteboard': { bpm: 100, root: 174.61, prog: [[0, 4, 7], [9, 12, 16], [5, 9, 12], [7, 11, 14]], pad: 0.3, bass: 0.3, pulse: 0.25, pluck: 0.5, bright: 0.45 },
21
+ 'Kinetic typography': { bpm: 124, root: 146.83, prog: [[0, 3, 7], [8, 12, 15], [5, 8, 12], [10, 14, 17]], pad: 0.25, bass: 0.5, pulse: 0.6, pluck: 0.3, bright: 0.5 },
22
+ };
23
+
24
+ function mulberry32(seed) {
25
+ let a = (Number(seed) >>> 0) || 1;
26
+ return () => {
27
+ a = (a + 0x6d2b79f5) >>> 0;
28
+ let t = a;
29
+ t = Math.imul(t ^ (t >>> 15), t | 1);
30
+ t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
31
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
32
+ };
33
+ }
34
+
35
+ const semi = (root, n) => root * Math.pow(2, n / 12);
36
+ const dbToGain = (db) => Math.pow(10, db / 20);
37
+
38
+ /** Wrap mono Float32 samples in a WAV (IEEE float, format 3). */
39
+ function encodeWav(samples, sr = SR) {
40
+ const dataBytes = samples.length * 4;
41
+ const buf = Buffer.alloc(44 + dataBytes);
42
+ buf.write('RIFF', 0, 'ascii');
43
+ buf.writeUInt32LE(36 + dataBytes, 4);
44
+ buf.write('WAVE', 8, 'ascii');
45
+ buf.write('fmt ', 12, 'ascii');
46
+ buf.writeUInt32LE(16, 16);
47
+ buf.writeUInt16LE(3, 20);
48
+ buf.writeUInt16LE(1, 22);
49
+ buf.writeUInt32LE(sr, 24);
50
+ buf.writeUInt32LE(sr * 4, 28);
51
+ buf.writeUInt16LE(4, 32);
52
+ buf.writeUInt16LE(32, 34);
53
+ buf.write('data', 36, 'ascii');
54
+ buf.writeUInt32LE(dataBytes, 40);
55
+ for (let i = 0; i < samples.length; i++) buf.writeFloatLE(samples[i], 44 + i * 4);
56
+ return buf;
57
+ }
58
+
59
+ /** Read a mono 32-bit float WAV into Float32Array. */
60
+ function decodeWavF32(buf) {
61
+ if (buf.toString('ascii', 0, 4) !== 'RIFF' || buf.toString('ascii', 8, 12) !== 'WAVE') throw new Error('not a WAV file');
62
+ let pos = 12;
63
+ let fmt = null;
64
+ while (pos + 8 <= buf.length) {
65
+ const id = buf.toString('ascii', pos, pos + 4);
66
+ let size = buf.readUInt32LE(pos + 4);
67
+ const body = pos + 8;
68
+ if (id === 'fmt ') fmt = { tag: buf.readUInt16LE(body), ch: buf.readUInt16LE(body + 2), sr: buf.readUInt32LE(body + 4), bits: buf.readUInt16LE(body + 14) };
69
+ if (id === 'data') {
70
+ if (!fmt || fmt.tag !== 3 || fmt.bits !== 32 || fmt.ch !== 1) throw new Error('expected mono float32 WAV');
71
+ size = Math.min(size, buf.length - body);
72
+ const n = Math.floor(size / 4);
73
+ const out = new Float32Array(n);
74
+ for (let i = 0; i < n; i++) out[i] = buf.readFloatLE(body + i * 4);
75
+ return out;
76
+ }
77
+ pos = body + size + (size % 2);
78
+ }
79
+ throw new Error('WAV has no data chunk');
80
+ }
81
+
82
+ function softClipPeak(x, peak) {
83
+ let m = 0;
84
+ for (let i = 0; i < x.length; i++) { const a = Math.abs(x[i]); if (a > m) m = a; }
85
+ if (m > 0) { const g = peak / m; for (let i = 0; i < x.length; i++) x[i] *= g; }
86
+ }
87
+
88
+ function bedSamples({ style, lengthS, seed }) {
89
+ const p = STYLES[style];
90
+ if (!p) throw new Error(`unknown style: ${style} (expected one of ${Object.keys(STYLES).join(', ')})`);
91
+ const n = Math.max(1, Math.round(Number(lengthS) * SR));
92
+ const rnd = mulberry32(seed);
93
+ const out = new Float32Array(n);
94
+ const beat = 60 / p.bpm;
95
+ const barS = beat * 4;
96
+ // Seed picks a transposition and a pluck pattern so different seeds give different beds.
97
+ const transpose = Math.floor(rnd() * 5) - 2;
98
+ const pattern = Array.from({ length: 8 }, () => rnd() < 0.7);
99
+ const arpPick = Array.from({ length: 8 }, () => Math.floor(rnd() * 3));
100
+ const root = semi(p.root, transpose);
101
+ const TAU = 2 * Math.PI;
102
+ for (let i = 0; i < n; i++) {
103
+ const t = i / SR;
104
+ const bar = Math.floor(t / barS);
105
+ const chord = p.prog[bar % p.prog.length];
106
+ const tb = t - bar * barS; // time inside bar
107
+ // Pad: detuned sines with slow swell per bar.
108
+ const swell = Math.sin(Math.PI * Math.min(1, tb / barS)) ** 0.5;
109
+ let v = 0;
110
+ for (const st of chord) {
111
+ const f = semi(root, st);
112
+ v += p.pad * swell * (Math.sin(TAU * f * t) + Math.sin(TAU * f * 1.004 * t) * 0.6 + p.bright * 0.3 * Math.sin(TAU * f * 2 * t)) / 3;
113
+ }
114
+ // Bass on beats 1 and 3 of each bar.
115
+ const bf = semi(root, chord[0]) / 2;
116
+ const bt = tb % (beat * 2);
117
+ v += p.bass * Math.sin(TAU * bf * t) * Math.exp(-bt * 2.2) * 0.9;
118
+ // Eighth-note pluck arpeggio.
119
+ const eighth = beat / 2;
120
+ const step = Math.floor(tb / eighth);
121
+ if (p.pluck > 0 && pattern[step % 8]) {
122
+ const et = tb - step * eighth;
123
+ const pf = semi(root, chord[arpPick[step % 8]] + 12);
124
+ v += p.pluck * 0.5 * Math.sin(TAU * pf * t) * Math.exp(-et * 9);
125
+ }
126
+ // Soft pulse: kick-like thump on every beat.
127
+ if (p.pulse > 0) {
128
+ const kt = tb % beat;
129
+ v += p.pulse * 0.5 * Math.sin(TAU * (55 + 90 * Math.exp(-kt * 30)) * kt) * Math.exp(-kt * 10);
130
+ }
131
+ out[i] = v;
132
+ }
133
+ softClipPeak(out, 0.8);
134
+ // Fade in/out so the bed never clicks at the edges.
135
+ const fade = Math.min(Math.round(1.0 * SR), Math.floor(n / 2));
136
+ for (let i = 0; i < fade; i++) { const g = i / fade; out[i] *= g; out[n - 1 - i] *= g; }
137
+ return out;
138
+ }
139
+
140
+ /** Deterministic Float32 PCM WAV (mono, 44.1 kHz) music bed. */
141
+ function buildMusicBed({ style, lengthS, seed = 1 }) {
142
+ return encodeWav(bedSamples({ style, lengthS, seed }));
143
+ }
144
+
145
+ const SFX_NAMES = ['whoosh', 'pop', 'chime', 'click'];
146
+
147
+ function sfxSamples(name) {
148
+ if (!SFX_NAMES.includes(name)) throw new Error(`unknown sfx: ${name} (expected one of ${SFX_NAMES.join(', ')})`);
149
+ const TAU = 2 * Math.PI;
150
+ const rnd = mulberry32(0x5f3759df);
151
+ let durS;
152
+ switch (name) {
153
+ case 'whoosh': durS = 0.6; break;
154
+ case 'pop': durS = 0.15; break;
155
+ case 'chime': durS = 1.2; break;
156
+ default: durS = 0.05;
157
+ }
158
+ const n = Math.round(durS * SR);
159
+ const out = new Float32Array(n);
160
+ let lp = 0;
161
+ for (let i = 0; i < n; i++) {
162
+ const t = i / SR;
163
+ const x = t / durS;
164
+ if (name === 'whoosh') {
165
+ // Noise through a sweeping one-pole low-pass, bell-shaped envelope.
166
+ const a = 0.02 + 0.5 * Math.sin(Math.PI * x);
167
+ lp += a * ((rnd() * 2 - 1) - lp);
168
+ out[i] = lp * Math.sin(Math.PI * x) ** 2 * 1.6;
169
+ } else if (name === 'pop') {
170
+ out[i] = Math.sin(TAU * (180 + 520 * Math.exp(-t * 60)) * t) * Math.exp(-t * 28);
171
+ } else if (name === 'chime') {
172
+ let v = 0;
173
+ [[880, 1], [1318.5, 0.5], [1760, 0.3], [2637, 0.12]].forEach(([f, amp]) => { v += amp * Math.sin(TAU * f * t); });
174
+ out[i] = v * Math.exp(-t * 4) * Math.min(1, t * 400) * 0.45;
175
+ } else {
176
+ out[i] = ((rnd() * 2 - 1) * 0.6 + Math.sin(TAU * 2400 * t) * 0.4) * Math.exp(-t * 110);
177
+ }
178
+ }
179
+ softClipPeak(out, 0.7);
180
+ return out;
181
+ }
182
+
183
+ /** SFX as Float32 WAV. name: whoosh | pop | chime | click. */
184
+ function buildSfx(name) {
185
+ return encodeWav(sfxSamples(name));
186
+ }
187
+
188
+ function runFfmpeg(args) {
189
+ const r = spawnSync(FFMPEG, args, { encoding: 'utf8', timeout: FFMPEG_TIMEOUT_MS, maxBuffer: 64 * 1024 * 1024, shell: false });
190
+ if (r.error) throw new Error(`ffmpeg failed to run: ${r.error.message}`);
191
+ if (r.status !== 0) throw new Error(`ffmpeg exited ${r.status}: ${String(r.stderr).slice(-600)}`);
192
+ return String(r.stderr || '');
193
+ }
194
+
195
+ /** Parse ffmpeg `ebur128=peak=true` summary into {lufs, truePeakDb}. */
196
+ function parseEbur128(text) {
197
+ const s = String(text);
198
+ const i = s.lastIndexOf('Summary:');
199
+ const tail = i >= 0 ? s.slice(i) : s;
200
+ const num = (m) => (m ? (m[1] === '-inf' ? -Infinity : Number(m[1])) : null);
201
+ const lufs = num(/Integrated loudness:\s*I:\s*(-?inf|-?[\d.]+)\s*LUFS/.exec(tail));
202
+ const truePeakDb = num(/True peak:\s*Peak:\s*(-?inf|-?[\d.]+)\s*dBFS/.exec(tail));
203
+ if (lufs === null || truePeakDb === null) throw new Error('could not parse ebur128 output');
204
+ return { lufs, truePeakDb };
205
+ }
206
+
207
+ /** Measure integrated loudness and true peak of an audio/video file. */
208
+ function measure(file) {
209
+ const err = runFfmpeg(['-hide_banner', '-nostats', '-i', file, '-vn', '-af', 'ebur128=peak=true', '-f', 'null', '-']);
210
+ return parseEbur128(err);
211
+ }
212
+
213
+ /** Two-pass loudnorm of `input` into `output` at I=-14 TP=-1.5 LRA=11. */
214
+ function loudnorm(input, output) {
215
+ const base = `loudnorm=I=${TARGET.I}:TP=${TARGET.TP}:LRA=${TARGET.LRA}`;
216
+ const err1 = runFfmpeg(['-hide_banner', '-nostats', '-i', input, '-af', `${base}:print_format=json`, '-f', 'null', '-']);
217
+ const j = err1.slice(err1.lastIndexOf('{'), err1.lastIndexOf('}') + 1);
218
+ let m;
219
+ try { m = JSON.parse(j); } catch { throw new Error('could not parse loudnorm pass-1 output'); }
220
+ const f = (k) => {
221
+ const v = Number(m[k]);
222
+ if (!Number.isFinite(v)) throw new Error(`loudnorm pass-1 missing ${k}`);
223
+ return v;
224
+ };
225
+ const pass2 = `${base}:measured_I=${f('input_i')}:measured_TP=${f('input_tp')}:measured_LRA=${f('input_lra')}:measured_thresh=${f('input_thresh')}:offset=${f('target_offset')}:linear=true:print_format=summary`;
226
+ const codec = /\.wav$/i.test(output) ? ['-c:a', 'pcm_s16le'] : [];
227
+ runFfmpeg(['-hide_banner', '-nostats', '-y', '-i', input, '-af', pass2, '-ar', String(SR), ...codec, output]);
228
+ }
229
+
230
+ /** Per-sample gain (1 → -DUCK_DB) following speech activity; returns {gain, speechS}. */
231
+ function duckEnvelope(narr) {
232
+ const win = Math.round(0.02 * SR);
233
+ const nWin = Math.ceil(narr.length / win);
234
+ const speech = new Uint8Array(nWin);
235
+ let active = 0;
236
+ for (let w = 0; w < nWin; w++) {
237
+ let e = 0;
238
+ const end = Math.min(narr.length, (w + 1) * win);
239
+ for (let i = w * win; i < end; i++) e += narr[i] * narr[i];
240
+ const rms = Math.sqrt(e / Math.max(1, end - w * win));
241
+ if (rms > 0.01) { speech[w] = 1; active++; }
242
+ }
243
+ const hold = 15; // 300 ms hold bridges gaps between words
244
+ const target = new Float32Array(nWin).fill(1);
245
+ const low = dbToGain(-DUCK_DB);
246
+ let since = hold + 1;
247
+ for (let w = 0; w < nWin; w++) {
248
+ since = speech[w] ? 0 : since + 1;
249
+ if (since <= hold) target[w] = low;
250
+ }
251
+ const gain = new Float32Array(narr.length);
252
+ const atk = 1 - Math.exp(-1 / (0.05 * SR));
253
+ const rel = 1 - Math.exp(-1 / (0.3 * SR));
254
+ let g = 1;
255
+ for (let i = 0; i < narr.length; i++) {
256
+ const tg = target[Math.min(nWin - 1, Math.floor(i / win))];
257
+ g += (tg < g ? atk : rel) * (tg - g);
258
+ gain[i] = g;
259
+ }
260
+ return { gain, speechS: active * 0.02 };
261
+ }
262
+
263
+ /**
264
+ * Mix narration + ducked music bed + SFX cues, then loudnorm to -14 LUFS / -1.5 dBTP.
265
+ * cues: [{name, t}] (t in seconds; `at` also accepted). Output length is the longer of
266
+ * lengthS and the narration. Returns the measured {lufs, truePeakDb, speechS}.
267
+ */
268
+ function mix({ narrationWav, cues = [], style, lengthS, out, seed = 1 }) {
269
+ const dir = fs.mkdtempSync(path.join(require('os').tmpdir(), 'dvk-sound-'));
270
+ try {
271
+ const narrF32 = path.join(dir, 'narration.f32.wav');
272
+ runFfmpeg(['-hide_banner', '-nostats', '-y', '-i', narrationWav, '-vn', '-ac', '1', '-ar', String(SR), '-c:a', 'pcm_f32le', narrF32]);
273
+ const narr = decodeWavF32(fs.readFileSync(narrF32));
274
+ const n = Math.max(narr.length, Math.round(Number(lengthS) * SR));
275
+ const bed = bedSamples({ style, lengthS: n / SR, seed });
276
+ const { gain, speechS } = duckEnvelope(narr);
277
+ const bedGain = dbToGain(BED_BASE_DB);
278
+ const mixed = new Float32Array(n);
279
+ for (let i = 0; i < n; i++) {
280
+ const g = i < gain.length ? gain[i] : 1;
281
+ mixed[i] = (i < narr.length ? narr[i] : 0) + bed[i] * bedGain * g;
282
+ }
283
+ const sfxGain = dbToGain(-10);
284
+ for (const cue of cues) {
285
+ const at = Math.round(Number(cue.t ?? cue.at ?? 0) * SR);
286
+ const s = sfxSamples(cue.name);
287
+ for (let i = 0; i < s.length && at + i < n; i++) if (at + i >= 0) mixed[at + i] += s[i] * sfxGain;
288
+ }
289
+ const pre = path.join(dir, 'premix.f32.wav');
290
+ fs.writeFileSync(pre, encodeWav(mixed));
291
+ fs.mkdirSync(path.dirname(path.resolve(out)), { recursive: true });
292
+ loudnorm(pre, out);
293
+ return { ...measure(out), speechS };
294
+ } finally {
295
+ fs.rmSync(dir, { recursive: true, force: true });
296
+ }
297
+ }
298
+
299
+ module.exports = { buildMusicBed, buildSfx, mix, measure, parseEbur128, STYLES, SFX_NAMES, TARGET };
300
+
301
+ if (require.main === module) {
302
+ try {
303
+ const specPath = process.argv[2];
304
+ if (!specPath) throw new Error('usage: node sound.cjs <spec.json>');
305
+ const spec = JSON.parse(fs.readFileSync(specPath, 'utf8'));
306
+ const r = mix(spec);
307
+ process.stdout.write(JSON.stringify({ lufs: r.lufs, truePeakDb: r.truePeakDb, speechS: r.speechS }) + '\n');
308
+ } catch (e) {
309
+ process.stderr.write(`${e.message}\n`);
310
+ process.exit(1);
311
+ }
312
+ }
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+ /**
3
+ * developLoopSpawn.cjs — per-session opt-out of the session-manager-dev plugin.
4
+ *
5
+ * Session Manager installs the plugin (/develop, /builder, /send-feedback) at
6
+ * user scope, so every claude session gets it. An Epic whose row has
7
+ * `developLoop === false` wants a "pure claude" session: the launch passes
8
+ * `--settings '{"enabledPlugins":{"<key>":false}}'`, which outranks the user
9
+ * scope for that one session only. Every other Epic / plain tab gets no args.
10
+ */
11
+ const { ENABLED_KEY } = require('../../seedDevPlugin.cjs');
12
+
13
+ function developLoopOffSettingsArgs(epic) {
14
+ if (epic?.developLoop !== false) return [];
15
+ return ['--settings', JSON.stringify({ enabledPlugins: { [ENABLED_KEY]: false } })];
16
+ }
17
+
18
+ module.exports = { developLoopOffSettingsArgs };
@@ -212,7 +212,7 @@ function withPathLock(lockPath, task) {
212
212
  }
213
213
 
214
214
  /**
215
- * ensureEpic(cwd, { epicId?, goalText, tag?, status?, openingPrompt?, source?, agentType?, model?, effort?, mintAuthority? }) → Promise<{ epicId, prdDir, created }>
215
+ * ensureEpic(cwd, { epicId?, goalText, tag?, status?, openingPrompt?, source?, agentType?, model?, effort?, developLoop?, mintAuthority? }) → Promise<{ epicId, prdDir, created }>
216
216
  *
217
217
  * Two behaviors, and only two:
218
218
  * - JOIN (the default, for every automated caller): `epicId` names an Epic
@@ -231,7 +231,7 @@ function withPathLock(lockPath, task) {
231
231
  * The Epic's id doubles as its directory name under scheduler/epics/, so the
232
232
  * PromptSession ↔ on-disk Epic mapping is 1:1 with no lookup table.
233
233
  */
234
- function ensureEpic(cwd, { goalText, tag, epicId: explicitEpicId, status = 'proposed', openingPrompt = null, sections = null, source = null, agentType = null, model = null, effort = null, mintAuthority = null } = {}, deps = {}) {
234
+ function ensureEpic(cwd, { goalText, tag, epicId: explicitEpicId, status = 'proposed', openingPrompt = null, sections = null, source = null, agentType = null, model = null, effort = null, developLoop = null, mintAuthority = null } = {}, deps = {}) {
235
235
  if (!cwd || typeof cwd !== 'string') throw new Error('ensureEpic: cwd is required');
236
236
  // A relative cwd (e.g. a caller passing '.') would otherwise get stored
237
237
  // verbatim on the minted Epic's `cwd` field — the renderer's EpicsWorkspace
@@ -344,6 +344,8 @@ function ensureEpic(cwd, { goalText, tag, epicId: explicitEpicId, status = 'prop
344
344
  // Per-Epic runtime overrides — written only when set, so an Epic minted without one keeps its on-disk shape.
345
345
  ...(typeof model === 'string' && model ? { model } : {}),
346
346
  ...(typeof effort === 'string' && effort ? { effort } : {}),
347
+ // Only false is persisted: absent = develop loop on (byte-identical legacy shape).
348
+ ...(developLoop === false ? { developLoop: false } : {}),
347
349
  };
348
350
 
349
351
  // Validate the constructed record against the canonical PromptSession
@@ -132,6 +132,19 @@ async function runEpicSettle({ cwd, epicId } = {}, deps = {}) {
132
132
  if (!settle.settled) return { action: 'none', reason: 'not-settled' };
133
133
  if (!settle.hasContent) return { action: 'none', reason: 'no-content' };
134
134
 
135
+ // Macro builds (rows carrying macroId): the artifact check and gate are the
136
+ // done-check; no sweep validator, no digest chat turn.
137
+ const macroSlugs = new Set();
138
+ let epicRows = 0;
139
+ for (const r of [...jobs, ...history]) {
140
+ if (!_rowInEpic(r, epicId)) continue;
141
+ epicRows++;
142
+ if (typeof r.macroId === 'string' && r.macroId.trim()) macroSlugs.add(bareSlug(r.slug));
143
+ }
144
+ if (epicRows > 0 && [...jobs, ...history].every((r) => !_rowInEpic(r, epicId) || (typeof r.macroId === 'string' && r.macroId.trim()))) {
145
+ return { action: 'none', reason: 'macro-build' };
146
+ }
147
+
135
148
  let newestDigest = null;
136
149
  for (const e of events) if (e && e.outcome === 'digest') newestDigest = e;
137
150
  if (newestDigest && newestDigest.digestKey === settle.digestKey) {
@@ -146,7 +159,10 @@ async function runEpicSettle({ cwd, epicId } = {}, deps = {}) {
146
159
  if (!_rowInEpic(r, epicId) || !isSweepValidatorSlug(r.slug) || !Array.isArray(r.dependsOn)) continue;
147
160
  for (const d of r.dependsOn) swept.add(bareSlug(d));
148
161
  }
149
- const candidates = settle.uncovered.filter((u) => !swept.has(u.bareSlug || bareSlug(u.slug)));
162
+ const candidates = settle.uncovered.filter((u) => {
163
+ const b = u.bareSlug || bareSlug(u.slug);
164
+ return !swept.has(b) && !macroSlugs.has(b);
165
+ });
150
166
  if (candidates.length) {
151
167
  const byBare = new Map();
152
168
  for (const h of history) {
@@ -41,7 +41,7 @@ const { validatePath } = require('../../config.cjs');
41
41
  * IPC (config:read-json/write-json, lib/epic/activeIndexMerge.cjs's own merge) is
42
42
  * already required to pass through.
43
43
  */
44
- async function createEpicViaIpc(cwd, { goalText, tag, agentType, model, effort, source, openingPrompt, sections } = {}) {
44
+ async function createEpicViaIpc(cwd, { goalText, tag, agentType, model, effort, developLoop, source, openingPrompt, sections } = {}) {
45
45
  validatePath(cwd);
46
46
  const { epicId } = await ensureEpic(cwd, {
47
47
  goalText,
@@ -49,6 +49,7 @@ async function createEpicViaIpc(cwd, { goalText, tag, agentType, model, effort,
49
49
  agentType,
50
50
  model,
51
51
  effort,
52
+ developLoop,
52
53
  source,
53
54
  openingPrompt,
54
55
  sections,
@@ -64,8 +65,8 @@ function registerPromptSessionsCreateEpicHandlers() {
64
65
  const { schemas: s, validated: v } = require('../../ipcSchemas.cjs');
65
66
  ipcMain.handle(
66
67
  'promptSessions:create-epic',
67
- v(s.promptSessionsCreateEpic, ({ cwd, goalText, tag, agentType, model, effort, source, openingPrompt, sections }) =>
68
- createEpicViaIpc(cwd, { goalText, tag, agentType, model, effort, source, openingPrompt, sections })),
68
+ v(s.promptSessionsCreateEpic, ({ cwd, goalText, tag, agentType, model, effort, developLoop, source, openingPrompt, sections }) =>
69
+ createEpicViaIpc(cwd, { goalText, tag, agentType, model, effort, developLoop, source, openingPrompt, sections })),
69
70
  );
70
71
  }
71
72