claude-code-session-manager 0.135.1 → 0.136.1
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/.claude-plugin/marketplace.json +1 -1
- package/dist/assets/{AgentLibrary-BBY7E1ag.js → AgentLibrary-DsJcjUSt.js} +1 -1
- package/dist/assets/{AppSettings-vMiIi0xn.js → AppSettings-DS_d4o5R.js} +1 -1
- package/dist/assets/{Button-C0Z090Ui.js → Button-CVbZqtPJ.js} +1 -1
- package/dist/assets/{DocumentEditorPane-Ds10W8SZ.js → DocumentEditorPane-C4G5oeng.js} +1 -1
- package/dist/assets/{Extensions-CjPiz2I5.js → Extensions-ifcqZDuK.js} +2 -2
- package/dist/assets/{History-Bm3KXXs1.js → History-CBFAmFB7.js} +1 -1
- package/dist/assets/{Library-D-khizDg.js → Library-DlUH_fFF.js} +1 -1
- package/dist/assets/{ListDetail-CJYpp8fW.js → ListDetail-DrzkqaSM.js} +1 -1
- package/dist/assets/{Panel-BHFGylfy.js → Panel-Bjr5sT2j.js} +1 -1
- package/dist/assets/{ProjectClaudeConfig-DIzNAala.js → ProjectClaudeConfig-BEJAWpS2.js} +1 -1
- package/dist/assets/{ProvenanceBadge-CYryeTYF.js → ProvenanceBadge-Dlq0DSL2.js} +1 -1
- package/dist/assets/{Scheduler-BS82wfRP.js → Scheduler-CdwNo2AT.js} +1 -1
- package/dist/assets/{Settings-DWPHJ94d.js → Settings-BMy1KcDY.js} +1 -1
- package/dist/assets/{SkillReferenceGraph-Cf2M7YNq.js → SkillReferenceGraph-CqngCjO5.js} +1 -1
- package/dist/assets/{Skills-DLq55Odf.js → Skills-DCoKjG_1.js} +1 -1
- package/dist/assets/{SourceChip-CHxAzRlD.js → SourceChip-mjf4AO7V.js} +1 -1
- package/dist/assets/{SystemPrompt-BYtKMAr3.js → SystemPrompt-BDv0OwoH.js} +1 -1
- package/dist/assets/{TiptapBody-O_Gfq0Ha.js → TiptapBody-BdPKStNP.js} +1 -1
- package/dist/assets/{Toggle-BJOUI5NY.js → Toggle-CaLQyunk.js} +1 -1
- package/dist/assets/{ViewTabs-kkvNGu-S.js → ViewTabs-DVLIAjik.js} +1 -1
- package/dist/assets/{VoiceButton-3i-6ju2L.js → VoiceButton-CUXKeY0C.js} +1 -1
- package/dist/assets/{historyTotals-CHrIptK1.js → historyTotals-07_oiLDE.js} +1 -1
- package/dist/assets/{index-CjQ_p5y7.css → index-62tyjEQB.css} +1 -1
- package/dist/assets/index-CgSMvkqr.js +3116 -0
- package/dist/index.html +2 -2
- package/dist-web/app.css +1 -1
- package/dist-web/app.js +412 -412
- package/package.json +1 -1
- package/plugins/CLAUDE.md +2 -0
- package/plugins/packs/apple-design/.claude-plugin/plugin.json +6 -0
- package/plugins/packs/apple-design/laws.md +14 -0
- package/plugins/packs/apple-design/skills/hig-layout-and-accessibility/SKILL.md +152 -0
- package/plugins/packs/apple-design/skills/liquid-glass-adoption/SKILL.md +132 -0
- package/plugins/packs/apple-design/sm-pack.json +5 -0
- package/plugins/packs/apple-swift-core/.claude-plugin/plugin.json +12 -0
- package/plugins/packs/apple-swift-core/laws.md +13 -0
- package/plugins/packs/apple-swift-core/skills/swift-concurrency/SKILL.md +160 -0
- package/plugins/packs/apple-swift-core/skills/swiftui-state-and-navigation/SKILL.md +165 -0
- package/plugins/packs/apple-swift-core/sm-pack.json +5 -0
- package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/session-manager-dev/skills/builder/SKILL.md +23 -0
- package/plugins/session-manager-dev/skills/maintaining-md-network/SKILL.md +9 -0
- package/plugins/session-manager-dev/skills/maintaining-md-network/drift-check.md +5 -2
- package/plugins/session-manager-dev/skills/maintaining-md-network/scripts/drift-check.cjs +100 -5
- package/plugins/session-manager-dev/skills/send-feedback/SKILL.md +52 -3
- package/scripts/scheduler-mcp-server.cjs +71 -5
- package/src/main/build-info.json +4 -4
- package/src/main/chatRunner.cjs +26 -2
- package/src/main/index.cjs +4 -0
- package/src/main/ipcSchemas.cjs +13 -0
- package/src/main/lib/claude/agentModelResolve.cjs +23 -0
- package/src/main/lib/epic/epicMint.cjs +12 -6
- package/src/main/lib/epic/promptSessionsCreateEpic.cjs +8 -4
- package/src/main/lib/feedback-remote/crossProjectFeedback.cjs +204 -8
- package/src/main/lib/feedback-remote/crossProjectReply.cjs +375 -0
- package/src/main/lib/feedback-remote/remoteIpcDispatch.cjs +2 -0
- package/src/main/lib/mcpToolCatalog.cjs +40 -4
- package/src/main/lib/mdNetworkScan.cjs +61 -11
- package/src/main/lib/mdReviewRecord.cjs +287 -0
- package/src/main/lib/packs/packCatalog.cjs +120 -0
- package/src/main/lib/packs/packSpawnArgs.cjs +59 -0
- package/src/main/lib/packs/packsIpc.cjs +76 -0
- package/src/main/lib/persona-macro/builtinMacros.cjs +3 -2
- package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +11 -0
- package/src/main/lib/prd/prdCreate.cjs +2 -2
- package/src/main/lib/promptSessionSchema.cjs +8 -0
- package/src/main/projectPages.cjs +19 -0
- package/src/main/promptSessionEvents.cjs +8 -1
- package/src/main/scheduler.cjs +23 -2
- package/src/preload/api.d.ts +71 -0
- package/src/preload/apiSurface.json +21 -0
- package/src/preload/index.cjs +7 -0
- package/src/seed/agents/demo-video-builder.md +5 -3
- package/dist/assets/index-D9qgN9_V.js +0 -3116
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
* mdNetwork() maps the project's markdown link network on demand
|
|
14
14
|
* (lib/mdNetworkScan.cjs) for the Tools pane. matrix() reads the saved
|
|
15
15
|
* Competitor matrix (lib/project-pages/competitiveMatrix.cjs readMatrix).
|
|
16
|
+
* mdReview() reads the newest Review MD network record plus each review
|
|
17
|
+
* session's validation records (lib/mdReviewRecord.cjs readMdReview).
|
|
16
18
|
*/
|
|
17
19
|
|
|
18
20
|
const { ipcMain } = require('electron');
|
|
@@ -25,6 +27,7 @@ const { sendIfAlive } = require('./lib/sendToRenderer.cjs');
|
|
|
25
27
|
const { listLibrary, migrateLegacy } = require('./lib/project-pages/pagesLibrary.cjs');
|
|
26
28
|
const { scanMdNetwork } = require('./lib/mdNetworkScan.cjs');
|
|
27
29
|
const { readMatrix } = require('./lib/project-pages/competitiveMatrix.cjs');
|
|
30
|
+
const { readMdReview } = require('./lib/mdReviewRecord.cjs');
|
|
28
31
|
|
|
29
32
|
let mainWindow = null;
|
|
30
33
|
function attachWindow(window) {
|
|
@@ -116,6 +119,20 @@ async function mdNetwork({ cwd, recordFolders, docFolders }) {
|
|
|
116
119
|
});
|
|
117
120
|
}
|
|
118
121
|
|
|
122
|
+
const MD_REVIEW_EPHEMERAL = 'refusing an ephemeral cwd (tmpdir or linked git worktree): no project review record';
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* -> MdReviewResult: the newest review record under reviews/docs/ and, per
|
|
126
|
+
* given Epic id, its reviews/validation/<id>/*.md paths — read once per call
|
|
127
|
+
* (no watcher, no cache). Resolves the project root like mdNetwork(); an
|
|
128
|
+
* ephemeral cwd gets `{ ok: false, error }`.
|
|
129
|
+
*/
|
|
130
|
+
async function mdReview({ cwd, epicIds }) {
|
|
131
|
+
const { root, ephemeral } = tryProjectRoot(config.validatePath(cwd));
|
|
132
|
+
if (ephemeral) return { ok: false, error: MD_REVIEW_EPHEMERAL };
|
|
133
|
+
return readMdReview(root, { epicIds });
|
|
134
|
+
}
|
|
135
|
+
|
|
119
136
|
const MATRIX_EPHEMERAL = 'refusing an ephemeral cwd (tmpdir or linked git worktree): no project matrix';
|
|
120
137
|
|
|
121
138
|
/**
|
|
@@ -306,6 +323,7 @@ function registerProjectPagesIpc() {
|
|
|
306
323
|
const { schemas: s, validated: v } = require('./ipcSchemas.cjs');
|
|
307
324
|
ipcMain.handle('project-pages:get', v(s.projectPagesCwd, get));
|
|
308
325
|
ipcMain.handle('project-pages:md-network', v(s.projectPagesMdNetwork, mdNetwork));
|
|
326
|
+
ipcMain.handle('project-pages:md-review', v(s.projectPagesMdReview, mdReview));
|
|
309
327
|
ipcMain.handle('project-pages:matrix', v(s.projectPagesCwd, matrix));
|
|
310
328
|
ipcMain.handle('project-pages:watch', v(s.projectPagesCwd, ({ cwd }) => watchOutput(cwd)));
|
|
311
329
|
ipcMain.handle('project-pages:rename', v(s.projectPagesRename, renameEntry));
|
|
@@ -321,6 +339,7 @@ module.exports = {
|
|
|
321
339
|
registerProjectPagesIpc,
|
|
322
340
|
get,
|
|
323
341
|
mdNetwork,
|
|
342
|
+
mdReview,
|
|
324
343
|
matrix,
|
|
325
344
|
isLibraryPath,
|
|
326
345
|
renameEntry,
|
|
@@ -73,7 +73,8 @@ function mintEventId() {
|
|
|
73
73
|
* same meta arg and are copied the same way, as is `notice` (PRD 2950 — a
|
|
74
74
|
* marker like 'job-not-queued', or PRD 3116's 'build-done'/'build-failed', the
|
|
75
75
|
* renderer turns into a distinct notice) and `buildOutput` (PRD 3116 — `{ kind,
|
|
76
|
-
* id, title }` of a macro build's saved entry)
|
|
76
|
+
* id, title }` of a macro build's saved entry), and `reply` (`{ fromCwd,
|
|
77
|
+
* fromEpicId, outcome, referencePaths }` — a cross-project reply's origin). All
|
|
77
78
|
* keys are added to the event object only when present in `meta`, never as
|
|
78
79
|
* `undefined`-valued keys, so events appended without them serialize
|
|
79
80
|
* identically to before.
|
|
@@ -110,6 +111,12 @@ async function appendResponseEventWithReason(cwd, sourcePromptId, text, meta = {
|
|
|
110
111
|
const { kind, id, title } = meta.buildOutput;
|
|
111
112
|
event.buildOutput = { kind, id, title };
|
|
112
113
|
}
|
|
114
|
+
// Cross-project reply provenance (crossProjectReply.cjs) — whitelisted
|
|
115
|
+
// keys only, so a caller can't smuggle arbitrary fields onto the chain.
|
|
116
|
+
if (meta && meta.reply && typeof meta.reply === 'object') {
|
|
117
|
+
const { fromCwd, fromEpicId, outcome, referencePaths } = meta.reply;
|
|
118
|
+
event.reply = { fromCwd, fromEpicId, outcome, referencePaths };
|
|
119
|
+
}
|
|
113
120
|
data.events[sourcePromptId] = [...events, event];
|
|
114
121
|
await config.writeJson(path, data, { writer: 'scheduler' });
|
|
115
122
|
broadcast(EVENT_APPENDED_CHANNEL, { cwd, promptSessionId: sourcePromptId, event });
|
package/src/main/scheduler.cjs
CHANGED
|
@@ -156,6 +156,7 @@ const queueOps = require('./queueOps.cjs');
|
|
|
156
156
|
const { listEpicPrdDirs, listArchivedPrdDirs, deriveProjectCwdFromPrdPath } = require('./lib/prd/prdLocations.cjs');
|
|
157
157
|
const { ensureEpic, appendPrdCreatedEvent, readActiveIndex } = require('./lib/epic/epicMint.cjs');
|
|
158
158
|
const agentModelResolve = require('./lib/claude/agentModelResolve.cjs');
|
|
159
|
+
const packSpawnArgs = require('./lib/packs/packSpawnArgs.cjs');
|
|
159
160
|
const { buildPersonaToolScope, personaToolScopeArgs, personaToolScopeEnv } = require('./lib/claude/personaToolScope.cjs');
|
|
160
161
|
const { resolveEpicEffort, effortArgs } = require('./lib/claude/agentEffortResolve.cjs');
|
|
161
162
|
const { transitionJob, STATUS_HISTORY_CAP, LEGAL_TRANSITIONS } = require('./lib/scheduler/scheduleJobTransitions.cjs');
|
|
@@ -4699,13 +4700,14 @@ function knownMcpServers() {
|
|
|
4699
4700
|
return { [seed.SERVER_NAME]: seed.schedulerServerEntry() };
|
|
4700
4701
|
}
|
|
4701
4702
|
|
|
4702
|
-
function buildClaudeSpawnArgs({ model, effort, sessionId, resume, systemPrompt, toolScope }) {
|
|
4703
|
+
function buildClaudeSpawnArgs({ model, effort, sessionId, resume, systemPrompt, toolScope, pluginDirArgs = [] }) {
|
|
4703
4704
|
return [
|
|
4704
4705
|
'-p',
|
|
4705
4706
|
'--model', model,
|
|
4706
4707
|
...effortArgs(effort),
|
|
4707
4708
|
...(systemPrompt ? ['--append-system-prompt', systemPrompt] : []),
|
|
4708
4709
|
...personaToolScopeArgs(toolScope, { mcpServers: knownMcpServers() }),
|
|
4710
|
+
...(Array.isArray(pluginDirArgs) ? pluginDirArgs : []),
|
|
4709
4711
|
'--dangerously-skip-permissions',
|
|
4710
4712
|
...headlessPermissionArgs(),
|
|
4711
4713
|
'--disallowedTools', HEADLESS_DISALLOWED_TOOLS.join(','),
|
|
@@ -5038,6 +5040,24 @@ async function executeJob(job, runDir, defaultCwd, onPid, execCwd, resumeTarget
|
|
|
5038
5040
|
const effortResolution = resolveEpicEffort({ cwd, agentType: job.agentType, prdEffort: job.effort });
|
|
5039
5041
|
const personaEffort = effortResolution.effort;
|
|
5040
5042
|
const personaToolScope = buildPersonaToolScope(personaResolution.tools, { disallowed: HEADLESS_DISALLOWED_TOOLS });
|
|
5043
|
+
// Epic context packs (PRD 3154): the job's Epic's selected packs load as
|
|
5044
|
+
// --plugin-dir per pack, and their laws are appended AFTER the (already
|
|
5045
|
+
// capped) persona body — the persona cap never applies to laws. Fresh and
|
|
5046
|
+
// resume spawns alike; no Epic / no packs / an error = today's argv.
|
|
5047
|
+
let packArgs = { pluginDirArgs: [], laws: '' };
|
|
5048
|
+
try {
|
|
5049
|
+
const packEpicId = job.epicId || job.sourcePromptId;
|
|
5050
|
+
const packEpic = packEpicId ? agentModelResolve.findEpicById(cwd, packEpicId) : null;
|
|
5051
|
+
const composed = packSpawnArgs.composePackSpawnArgs({ packIds: packEpic?.packs });
|
|
5052
|
+
if (composed && Array.isArray(composed.pluginDirArgs)) {
|
|
5053
|
+
packArgs = { pluginDirArgs: composed.pluginDirArgs, laws: typeof composed.laws === 'string' ? composed.laws : '' };
|
|
5054
|
+
}
|
|
5055
|
+
} catch (err) {
|
|
5056
|
+
safeLog(`[scheduler] context packs skipped for ${job.slug}: ${err && err.message ? err.message : String(err)}\n`);
|
|
5057
|
+
}
|
|
5058
|
+
const jobSystemPrompt = packArgs.laws
|
|
5059
|
+
? (personaResolution.systemPrompt ? `${personaResolution.systemPrompt}\n\n${packArgs.laws}` : packArgs.laws)
|
|
5060
|
+
: personaResolution.systemPrompt;
|
|
5041
5061
|
safeLog(`[scheduler] agentType=${job.agentType || '(none)'} persona=${personaResolution.personaPath || '(fallback — no persona applied)'} model=${personaResolution.model}${personaEffort ? ` effort=${personaEffort}${effortResolution.source === 'prd' ? ' (prd)' : ''}` : ''} ${personaToolScope ? `tools=${personaToolScope.tools.length} scoped` : 'tools=unscoped'}\n`);
|
|
5042
5062
|
|
|
5043
5063
|
// Authoritative guarantee that buildClaudeSpawnArgs (a pure sync helper,
|
|
@@ -5252,8 +5272,9 @@ async function executeJob(job, runDir, defaultCwd, onPid, execCwd, resumeTarget
|
|
|
5252
5272
|
effort: personaEffort,
|
|
5253
5273
|
sessionId,
|
|
5254
5274
|
resume: !!resumeTarget,
|
|
5255
|
-
systemPrompt:
|
|
5275
|
+
systemPrompt: jobSystemPrompt,
|
|
5256
5276
|
toolScope: personaToolScope,
|
|
5277
|
+
pluginDirArgs: packArgs.pluginDirArgs,
|
|
5257
5278
|
});
|
|
5258
5279
|
const jobSpawn = claudeSpawnTarget('job', job.slug, claudeBin, jobArgs);
|
|
5259
5280
|
|
package/src/preload/api.d.ts
CHANGED
|
@@ -448,6 +448,23 @@ export type AgentCliTerminalCommandResult =
|
|
|
448
448
|
| { ok: true; command: string }
|
|
449
449
|
| { ok: false; message: string };
|
|
450
450
|
|
|
451
|
+
/** One `packs.list` row — display data only; pack dir and laws text stay in main. */
|
|
452
|
+
export interface PackListRow {
|
|
453
|
+
id: string;
|
|
454
|
+
label: string;
|
|
455
|
+
description: string;
|
|
456
|
+
requires: { platform?: 'darwin' | 'linux' | 'win32' };
|
|
457
|
+
/** True when the pack ships an always-on laws.md. */
|
|
458
|
+
hasLaws: boolean;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export type PacksListResult =
|
|
462
|
+
| { ok: true; packs: PackListRow[] }
|
|
463
|
+
| { ok: false; error: string };
|
|
464
|
+
|
|
465
|
+
/** `packs.terminalArgs` result — `--plugin-dir`/`--append-system-prompt` args, already composed by main. */
|
|
466
|
+
export type PacksTerminalArgsResult = { ok: true; args: string[] };
|
|
467
|
+
|
|
451
468
|
/** One global `~/.claude/agents/<name>.md` persona, per the Agent Library nav page. */
|
|
452
469
|
export interface AgentPersona {
|
|
453
470
|
name: string;
|
|
@@ -1633,6 +1650,8 @@ export interface ProjectVideoMeta {
|
|
|
1633
1650
|
id: string;
|
|
1634
1651
|
title: string;
|
|
1635
1652
|
kind: 'project-demo' | 'blog-post' | 'feature';
|
|
1653
|
+
/** The `Video target:` text the video was built for (a post path or URL, or a feature name); absent for a Project demo. */
|
|
1654
|
+
target?: string;
|
|
1636
1655
|
style: string;
|
|
1637
1656
|
lengthS: number;
|
|
1638
1657
|
createdAt: string;
|
|
@@ -1759,6 +1778,48 @@ export interface MdNetwork {
|
|
|
1759
1778
|
/** `{ ok: false, error }` when there is nothing to map or the scan failed (not a git repo, no root CLAUDE.md, an ephemeral cwd). */
|
|
1760
1779
|
export type MdNetworkResult = MdNetwork | { ok: false; error: string };
|
|
1761
1780
|
|
|
1781
|
+
// ────────────────────────────────────────────── Project Pages: Review MD network record
|
|
1782
|
+
// Mirrors the JSDoc typedefs in src/main/lib/mdReviewRecord.cjs (ReviewVerdict,
|
|
1783
|
+
// ReviewRecord, MdReviewOk | MdReviewErr). Keep in sync by hand.
|
|
1784
|
+
|
|
1785
|
+
/** One row of the record's per-doc verdict table. */
|
|
1786
|
+
export interface MdReviewVerdict {
|
|
1787
|
+
doc: string;
|
|
1788
|
+
verdict: string;
|
|
1789
|
+
owner: string;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
/** A parsed review record (reviews/docs/<YYYY-MM-DD>-md-network[-N].md); any field the record lacks is null/empty. */
|
|
1793
|
+
export interface MdReviewRecord {
|
|
1794
|
+
date: string | null;
|
|
1795
|
+
mode: string | null;
|
|
1796
|
+
modeKind: 'Full review' | 'Drift check' | null;
|
|
1797
|
+
scope: string | null;
|
|
1798
|
+
session: string | null;
|
|
1799
|
+
baseCommit: string | null;
|
|
1800
|
+
owner: string | null;
|
|
1801
|
+
map: string | null;
|
|
1802
|
+
driftCheckCommand: string | null;
|
|
1803
|
+
findingsCounts: Record<string, number>;
|
|
1804
|
+
censusSummary: string | null;
|
|
1805
|
+
verdicts: MdReviewVerdict[];
|
|
1806
|
+
decisions: string[];
|
|
1807
|
+
followUpPrds: string[];
|
|
1808
|
+
nextReviewDue: string | null;
|
|
1809
|
+
nextReviewNote: string | null;
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
/** The newest review record (null when none) plus, per requested Epic id, its validation record paths (repo-relative). */
|
|
1813
|
+
export interface MdReviewOk {
|
|
1814
|
+
ok: true;
|
|
1815
|
+
record: MdReviewRecord | null;
|
|
1816
|
+
recordPath: string | null;
|
|
1817
|
+
validation: Record<string, string[]>;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
/** `{ ok: false, error }` for an ephemeral cwd or an unresolvable project root. */
|
|
1821
|
+
export type MdReviewResult = MdReviewOk | { ok: false; error: string };
|
|
1822
|
+
|
|
1762
1823
|
// ────────────────────────────────────────────── Project Pages: markdown doc census
|
|
1763
1824
|
// Mirrors the JSDoc typedefs in src/main/lib/mdDocCensus.cjs.
|
|
1764
1825
|
// Every path is repo-relative POSIX; folder strings end with '/'.
|
|
@@ -2264,6 +2325,12 @@ export interface SessionManagerAPI {
|
|
|
2264
2325
|
/** The exact shell line (no trailing CR) the Epic Terminal pane types to launch/resume this Epic's CLI. */
|
|
2265
2326
|
terminalCommand: (payload: { cwd: string; claudeSessionId: string }) => Promise<AgentCliTerminalCommandResult>;
|
|
2266
2327
|
};
|
|
2328
|
+
/** Shipped context-pack catalog (New Session picker). Never rejects. */
|
|
2329
|
+
packs: {
|
|
2330
|
+
list: () => Promise<PacksListResult>;
|
|
2331
|
+
/** Pack CLI args for this Epic's Terminal `claude` line; `[]` for agent-CLI/no-pack Epics or any error. */
|
|
2332
|
+
terminalArgs: (payload: { cwd: string; claudeSessionId: string }) => Promise<PacksTerminalArgsResult>;
|
|
2333
|
+
};
|
|
2267
2334
|
agents: {
|
|
2268
2335
|
listPersonas: () => Promise<AgentPersona[]>;
|
|
2269
2336
|
savePersona: (payload: AgentPersonaSaveInput) => Promise<{ ok: boolean; path: string }>;
|
|
@@ -2659,6 +2726,8 @@ export interface SessionManagerAPI {
|
|
|
2659
2726
|
get: (cwd: string) => Promise<ProjectPagesGetResult>;
|
|
2660
2727
|
/** Map the project's markdown link network from its root CLAUDE.md (read-only, bounded, no LLM) for the Tools pane. Scans on every call — no watcher, no cache. `ok:false` (with `error`) for a cwd `get` answers with empty lists (tmpdir / linked worktree), a folder that is not a git repo, or no root CLAUDE.md; rejects on an invalid cwd, like `get`. */
|
|
2661
2728
|
mdNetwork: (payload: { cwd: string; recordFolders?: string[]; docFolders?: string[] }) => Promise<MdNetworkResult>;
|
|
2729
|
+
/** Read the newest Review MD network record (reviews/docs/) and each given Epic id's validation record paths (reviews/validation/<id>/*.md). Read-only, no watcher, no cache, no LLM. `ok:false` for an ephemeral cwd; rejects on an invalid cwd or a bad Epic id. */
|
|
2730
|
+
mdReview: (payload: { cwd: string; epicIds?: string[] }) => Promise<MdReviewResult>;
|
|
2662
2731
|
/** Read the saved Competitor matrix (project-pages/matrix/matrix.json) — read-only; writes go through project_matrix_write. */
|
|
2663
2732
|
matrix: (payload: { cwd: string }) => Promise<CompetitorMatrixResult>;
|
|
2664
2733
|
/** Start pushing `onChanged` events for this cwd's output dir. Refcounted per cwd; `ok:false` (reason 'ephemeral'|'invalid-cwd') means no live updates are possible, not an error. */
|
|
@@ -2898,6 +2967,8 @@ export interface PromptSessionsCreateEpicPayload {
|
|
|
2898
2967
|
agentCli?: 'claude' | 'codex' | 'gemini' | 'antigravity' | 'cursor' | 'opencode';
|
|
2899
2968
|
/** Model for a non-Claude CLI; absent = that CLI's default. */
|
|
2900
2969
|
agentCliModel?: string;
|
|
2970
|
+
/** Selected context pack ids (packs.list ids); absent = none. Loaded by the CLI, never in openingPrompt. */
|
|
2971
|
+
packs?: string[];
|
|
2901
2972
|
}
|
|
2902
2973
|
|
|
2903
2974
|
export interface PromptSessionsCreateEpicResult {
|
|
@@ -370,6 +370,20 @@
|
|
|
370
370
|
"kind": "invoke",
|
|
371
371
|
"remote": "deny"
|
|
372
372
|
},
|
|
373
|
+
{
|
|
374
|
+
"ns": "packs",
|
|
375
|
+
"method": "list",
|
|
376
|
+
"channel": "packs:list",
|
|
377
|
+
"kind": "invoke",
|
|
378
|
+
"remote": "read"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"ns": "packs",
|
|
382
|
+
"method": "terminalArgs",
|
|
383
|
+
"channel": "packs:terminal-args",
|
|
384
|
+
"kind": "invoke",
|
|
385
|
+
"remote": "read"
|
|
386
|
+
},
|
|
373
387
|
{
|
|
374
388
|
"ns": "agents",
|
|
375
389
|
"method": "listPersonas",
|
|
@@ -1434,6 +1448,13 @@
|
|
|
1434
1448
|
"kind": "invoke",
|
|
1435
1449
|
"remote": "read"
|
|
1436
1450
|
},
|
|
1451
|
+
{
|
|
1452
|
+
"ns": "projectPages",
|
|
1453
|
+
"method": "mdReview",
|
|
1454
|
+
"channel": "project-pages:md-review",
|
|
1455
|
+
"kind": "invoke",
|
|
1456
|
+
"remote": "read"
|
|
1457
|
+
},
|
|
1437
1458
|
{
|
|
1438
1459
|
"ns": "projectPages",
|
|
1439
1460
|
"method": "matrix",
|
package/src/preload/index.cjs
CHANGED
|
@@ -126,6 +126,12 @@ contextBridge.exposeInMainWorld('api', {
|
|
|
126
126
|
detect: (payload) => ipcRenderer.invoke('agentCli:detect', payload),
|
|
127
127
|
terminalCommand: (payload) => ipcRenderer.invoke('agentCli:terminal-command', payload),
|
|
128
128
|
},
|
|
129
|
+
// Context-pack catalog — display data only (remote: read).
|
|
130
|
+
packs: {
|
|
131
|
+
list: () => ipcRenderer.invoke('packs:list'),
|
|
132
|
+
// Pack part of an Epic Terminal `claude` line (--plugin-dir/--append-system-prompt).
|
|
133
|
+
terminalArgs: (payload) => ipcRenderer.invoke('packs:terminal-args', payload),
|
|
134
|
+
},
|
|
129
135
|
agents: {
|
|
130
136
|
listPersonas: () => ipcRenderer.invoke('agents:list-personas'),
|
|
131
137
|
savePersona: (payload) => ipcRenderer.invoke('agents:save-persona', payload),
|
|
@@ -416,6 +422,7 @@ contextBridge.exposeInMainWorld('api', {
|
|
|
416
422
|
projectPages: {
|
|
417
423
|
get: (cwd) => ipcRenderer.invoke('project-pages:get', { cwd }),
|
|
418
424
|
mdNetwork: (payload) => ipcRenderer.invoke('project-pages:md-network', payload),
|
|
425
|
+
mdReview: (payload) => ipcRenderer.invoke('project-pages:md-review', payload),
|
|
419
426
|
matrix: (payload) => ipcRenderer.invoke('project-pages:matrix', payload),
|
|
420
427
|
watch: (cwd) => ipcRenderer.invoke('project-pages:watch', { cwd }),
|
|
421
428
|
unwatch: (cwd) => ipcRenderer.invoke('project-pages:unwatch', { cwd }),
|
|
@@ -5,7 +5,7 @@ tools: Read, Grep, Glob, Bash, Write, Edit, mcp__session-manager-scheduler__proj
|
|
|
5
5
|
title: 'Project Home — Demo Video'
|
|
6
6
|
model: opus
|
|
7
7
|
effort: max
|
|
8
|
-
seedVersion:
|
|
8
|
+
seedVersion: 13
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
You are the demo-video-builder. You make a short animated demo, 30 seconds or 1 minute long per `<length_and_pacing>`, that shows someone what this
|
|
@@ -90,7 +90,9 @@ Scenes run in this order: title, problem, reveal, 2-3 moments, payoff, closing.
|
|
|
90
90
|
<kind_and_target>
|
|
91
91
|
Read two lines in the additional instructions:
|
|
92
92
|
- `Video kind:` is one of Project demo, Blog post, Feature. Project demo covers the whole product. Feature covers one named feature only. Blog post retells one post: set `meta.sources` to verbatim spans copied from the post, one per claim, so every claim is checkable.
|
|
93
|
-
- `Video target:` names what the video is for (the
|
|
93
|
+
- `Video target:` names what the video is for (the post path or URL, or the feature). Make the script serve that target.
|
|
94
|
+
- With no `Video target:` line, or a target you cannot find in the repository or read at its URL, make a Project demo of the whole project, whatever `Video kind:` says. Do not search for a likely target: never pick a post or feature yourself. Say in your report that you fell back to a Project demo and why, and save `kind` and `meta.kind` as `project-demo` with no `meta.target`.
|
|
95
|
+
- A post or feature text is a claim, not a source of truth. Check every claim it makes about how this project works against the source tree. Drop a claim the code contradicts, or attribute it to the post ("the post says ..."); never narrate it as fact about the project.
|
|
94
96
|
- `Entry id:` is the video's id. Pass it to `project_video_write` unchanged as `videoId`.
|
|
95
97
|
</kind_and_target>
|
|
96
98
|
|
|
@@ -266,7 +268,7 @@ open('demo.html', 'w').write(html)
|
|
|
266
268
|
choice, every spoken line and caption passes `<audience_and_language>`, the close follows
|
|
267
269
|
`<call_to_action>`, sound.cjs reported the mix at -14 LUFS, and the document contains none of the
|
|
268
270
|
forbidden network APIs.
|
|
269
|
-
8. Call `project_video_write` exactly once with `{ videoId, title, kind, lengthS, htmlPath, meta }`: `videoId` is the 'Entry id' line, `htmlPath` the absolute path of the built file (never pass the document in `html`; retyping base64 is how narration got lost)
|
|
271
|
+
8. Call `project_video_write` exactly once with `{ videoId, title, kind, lengthS, htmlPath, meta }`: `videoId` is the 'Entry id' line, `htmlPath` the absolute path of the built file (never pass the document in `html`; retyping base64 is how narration got lost). `meta` takes only these keys: `title`; `kind` (`project-demo`, `blog-post` or `feature`); `target` (the `Video target:` text; omit it for a Project demo); `style`; `lengthS`; `character` (null with no mascot); `sources` (each `{claim, source, ref}`; for a Blog post `source` is the verbatim span); `report` (the kit checks result); `macroVersion`; `seedVersion`; `model`; `effort`. Any other key is rejected. It validates the document and writes it as that video.
|
|
270
272
|
9. Report back the audience, the style, the character, the close, the length D, and the scenes as one short
|
|
271
273
|
list — scene, timing, and the claim behind it.
|
|
272
274
|
</process>
|