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.
- package/.claude-plugin/marketplace.json +1 -1
- package/README.md +2 -0
- package/dist/assets/{AgentLibrary-DKQznr7o.js → AgentLibrary-Cp250YHF.js} +1 -1
- package/dist/assets/{Button-CZXqmIiM.js → Button-DU5UF-6L.js} +1 -1
- package/dist/assets/{DataModel-piyV33To.js → DataModel-CPf6f17e.js} +1 -1
- package/dist/assets/{History-BxwtrKF2.js → History-B2x-LMlT.js} +1 -1
- package/dist/assets/{Hooks-DogeSPII.js → Hooks-BWr33C4Q.js} +1 -1
- package/dist/assets/{Library-BDt6EeQQ.js → Library-DBNLTAa8.js} +1 -1
- package/dist/assets/{ListDetail-CwS-LKar.js → ListDetail-BGBw6egp.js} +1 -1
- package/dist/assets/{McpServers-D2HVljgS.js → McpServers-DywZ50Ec.js} +1 -1
- package/dist/assets/{Memory-hNzuOGn8.js → Memory-CnalwnFf.js} +1 -1
- package/dist/assets/{Panel-BLDrsUeq.js → Panel-BzIklgKf.js} +1 -1
- package/dist/assets/{Permissions-DzZ5vaJW.js → Permissions-mgRifwQc.js} +1 -1
- package/dist/assets/{Plugins-Cz9yaxzG.js → Plugins-CV42zfid.js} +2 -2
- package/dist/assets/{ProvenanceBadge-CCgLO4m9.js → ProvenanceBadge-DYmX4xgB.js} +1 -1
- package/dist/assets/{SaveBar-Shmn699J.js → SaveBar-DxrAfnlC.js} +1 -1
- package/dist/assets/{Scheduler-Bqr0WHNd.js → Scheduler-iyUl1NDl.js} +1 -1
- package/dist/assets/{ScopeSwitcher-CBx1fB5g.js → ScopeSwitcher-CC8BDPgf.js} +1 -1
- package/dist/assets/{Settings-Ci8in-yF.js → Settings-CWBnQghD.js} +1 -1
- package/dist/assets/{SkillReferenceGraph-BWwljba8.js → SkillReferenceGraph-DOhiCxuL.js} +1 -1
- package/dist/assets/{Skills-BON6o-c4.js → Skills-3Er-9YA9.js} +1 -1
- package/dist/assets/{SystemPrompt-D5epIYYs.js → SystemPrompt-BLxdvZ9K.js} +1 -1
- package/dist/assets/{TagLibrary-C2qDZROJ.js → TagLibrary-BZ6QHYMQ.js} +1 -1
- package/dist/assets/{TiptapBody-SZhI3-bW.js → TiptapBody-Du6jRBoW.js} +1 -1
- package/dist/assets/{Toggle-C_qFDG0g.js → Toggle-Qdi2Z7VD.js} +1 -1
- package/dist/assets/{ViewTabs-C9q5WCEd.js → ViewTabs-BKfFsziD.js} +1 -1
- package/dist/assets/{historyTotals-BCl7IOhY.js → historyTotals-8ecP_6wF.js} +1 -1
- package/dist/assets/{index-BnKaYERU.css → index-DtdWBGrI.css} +1 -1
- package/dist/assets/index-GI6F_j41.js +3083 -0
- package/dist/assets/{settingsSchema-BBrRBrBr.js → settingsSchema-lHTHAabD.js} +1 -1
- package/dist/assets/{skillFrontmatter-B01qJk6N.js → skillFrontmatter-8X1Uc282.js} +1 -1
- package/dist/assets/{useAgentsDirWatch-CuR3GSjS.js → useAgentsDirWatch-CcsoD1bp.js} +1 -1
- package/dist/index.html +2 -2
- package/dist-web/app.css +1 -1
- package/dist-web/app.js +373 -369
- package/package.json +1 -1
- package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/session-manager-dev/skills/develop/SKILL.md +4 -2
- package/scripts/hooks/lib/guard-inline-implementation-policy.cjs +10 -0
- package/scripts/scheduler-mcp-server.cjs +170 -6
- package/src/main/build-info.json +4 -4
- package/src/main/chatRunner.cjs +8 -0
- package/src/main/index.cjs +27 -0
- package/src/main/ipcSchemas.cjs +110 -1
- package/src/main/lib/claude/agentModelResolve.cjs +31 -10
- package/src/main/lib/claude/effectiveModelInfo.cjs +14 -4
- package/src/main/lib/claude/modelCatalog.cjs +28 -1
- package/src/main/lib/claude/personaToolScope.cjs +40 -2
- package/src/main/lib/demo-video-kit/capture.cjs +113 -0
- package/src/main/lib/demo-video-kit/character.cjs +97 -0
- package/src/main/lib/demo-video-kit/checks.cjs +150 -0
- package/src/main/lib/demo-video-kit/frames.cjs +200 -0
- package/src/main/lib/demo-video-kit/seedKit.cjs +52 -0
- package/src/main/lib/demo-video-kit/sound.cjs +312 -0
- package/src/main/lib/epic/developLoopSpawn.cjs +18 -0
- package/src/main/lib/epic/epicMint.cjs +4 -2
- package/src/main/lib/epic/epicValidationHook.cjs +17 -1
- package/src/main/lib/epic/promptSessionsCreateEpic.cjs +4 -3
- package/src/main/lib/feedback-remote/crossProjectFeedback.cjs +21 -21
- package/src/main/lib/feedback-remote/projectHomeAdminRoutes.cjs +185 -34
- package/src/main/lib/feedback-remote/remoteIpcDispatch.cjs +15 -0
- package/src/main/lib/mcpToolCatalog.cjs +71 -11
- package/src/main/lib/opsOwnership.cjs +9 -5
- package/src/main/lib/persona-macro/builtinMacros.cjs +19 -5
- package/src/main/lib/persona-macro/macroJobDispatch.cjs +116 -0
- package/src/main/lib/persona-macro/macroJobIpc.cjs +50 -0
- package/src/main/lib/persona-macro/macroJobStatus.cjs +112 -0
- package/src/main/lib/persona-macro/macroLibrary.cjs +16 -0
- package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +113 -0
- package/src/main/lib/prd/prdCreate.cjs +27 -1
- package/src/main/lib/prd/prdFrontmatter.cjs +7 -2
- package/src/main/lib/project-pages/pagesLibrary.cjs +171 -0
- package/src/main/lib/project-pages/playerBridge.cjs +129 -0
- package/src/main/lib/promptSessionSchema.cjs +8 -0
- package/src/main/lib/scheduler/scheduleJobSchema.cjs +2 -0
- package/src/main/lib/smfileHeaders.cjs +11 -3
- package/src/main/projectPages.cjs +107 -30
- package/src/main/promptSessionsIpc.cjs +131 -0
- package/src/main/scheduler/prdParser.cjs +2 -0
- package/src/main/scheduler.cjs +26 -9
- package/src/main/seedSchedulerMcp.cjs +10 -1
- package/src/main/transcripts.cjs +8 -0
- package/src/main/webRemote.cjs +3 -1
- package/src/preload/api.d.ts +107 -6
- package/src/preload/apiSurface.json +77 -0
- package/src/preload/index.cjs +18 -0
- package/src/seed/agents/architect.md +8 -8
- package/src/seed/agents/demo-video-builder.md +86 -36
- package/src/seed/agents/project-home-builder.md +26 -13
- package/dist/assets/index-CMIYLbPb.js +0 -3079
- package/src/main/lib/epic/epicStandingInstructions.cjs +0 -73
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* epicStandingInstructions.cjs — turns an Epic record into the text Session
|
|
4
|
-
* Manager passes as --append-system-prompt on EVERY turn of that Epic, so the
|
|
5
|
-
* Actor's operating rules survive later turns and compaction.
|
|
6
|
-
*
|
|
7
|
-
* buildEpicStandingInstructions is pure; the persona reader is injected.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
const HEADER = 'Standing instructions for this Epic (re-sent every turn by Session Manager):';
|
|
11
|
-
const MAX_CHARS = 12000;
|
|
12
|
-
const TRUNCATION_NOTICE = '\n\n[…standing instructions truncated at 12000 characters]';
|
|
13
|
-
const INCLUDED_KINDS = new Set(['actor', 'persona-body', 'injection', 'mission']);
|
|
14
|
-
|
|
15
|
-
// Must equal CONTEXT_INJECTIONS['delegate-implementation'].text in
|
|
16
|
-
// src/renderer/lib/contextInjections.ts (guarded by delegateTextDrift.test.ts).
|
|
17
|
-
const DELEGATE_IMPLEMENTATION_TEXT =
|
|
18
|
-
'This interactive session plans and decides; it does not implement. Once scope is clear, ' +
|
|
19
|
-
'queue the implementation as scheduled PRDs via the /develop skill and let it run headless — ' +
|
|
20
|
-
'do not edit application source inline in this conversation. If the scheduler tools are ' +
|
|
21
|
-
'unavailable, say so explicitly rather than falling back to implementing the work yourself.';
|
|
22
|
-
|
|
23
|
-
function cap(text) {
|
|
24
|
-
if (text.length <= MAX_CHARS) return text;
|
|
25
|
-
return text.slice(0, MAX_CHARS - TRUNCATION_NOTICE.length) + TRUNCATION_NOTICE;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function buildEpicStandingInstructions(epic, { readPersonaBody } = {}) {
|
|
29
|
-
if (!epic || typeof epic !== 'object') return null;
|
|
30
|
-
const sections = Array.isArray(epic.sections) ? epic.sections : [];
|
|
31
|
-
const parts = [];
|
|
32
|
-
if (sections.length > 0) {
|
|
33
|
-
for (const s of sections) {
|
|
34
|
-
if (!s || !INCLUDED_KINDS.has(s.kind)) continue;
|
|
35
|
-
const t = typeof s.text === 'string' ? s.text.trim() : '';
|
|
36
|
-
if (t) parts.push(t);
|
|
37
|
-
}
|
|
38
|
-
} else if (epic.agentType && typeof readPersonaBody === 'function') {
|
|
39
|
-
let body = null;
|
|
40
|
-
try { body = readPersonaBody(epic.agentType); } catch { body = null; }
|
|
41
|
-
const t = typeof body === 'string' ? body.trim() : '';
|
|
42
|
-
if (t) parts.push(t);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const wantsDelegate = epic.tag === 'feature' || epic.tag === 'bug' || epic.agentType === 'architect';
|
|
46
|
-
const hasDelegate = sections.some(
|
|
47
|
-
(s) => s && s.kind === 'injection' && s.source === 'delegate-implementation',
|
|
48
|
-
);
|
|
49
|
-
if (wantsDelegate && !hasDelegate) parts.push(DELEGATE_IMPLEMENTATION_TEXT);
|
|
50
|
-
|
|
51
|
-
if (parts.length === 0) return null;
|
|
52
|
-
return cap(`${HEADER}\n\n${parts.join('\n\n')}`);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/** Overlay-aware persona body (project .claude/agents wins over ~/.claude/agents), frontmatter stripped. */
|
|
56
|
-
function defaultReadPersonaBody(cwd, name) {
|
|
57
|
-
try {
|
|
58
|
-
const { resolveMergedPersona } = require('../persona-macro/personaMerge.cjs');
|
|
59
|
-
const merged = resolveMergedPersona(cwd, name);
|
|
60
|
-
const body = merged && typeof merged.body === 'string' ? merged.body.trim() : '';
|
|
61
|
-
return body || null;
|
|
62
|
-
} catch {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
module.exports = {
|
|
68
|
-
buildEpicStandingInstructions,
|
|
69
|
-
defaultReadPersonaBody,
|
|
70
|
-
DELEGATE_IMPLEMENTATION_TEXT,
|
|
71
|
-
HEADER,
|
|
72
|
-
MAX_CHARS,
|
|
73
|
-
};
|