claude-code-session-manager 0.142.0 → 0.144.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 +22 -107
- package/dist/assets/AppSettings-Z68gQiVE.js +2 -0
- package/dist/assets/{History-DpZuJXi1.js → History-C3E6y_7t.js} +2 -2
- package/dist/assets/HomeClaudeConfig-Yd1vXzBn.js +5 -0
- package/dist/assets/{Panel-BjdJjhqt.js → Panel-CnfWs46Z.js} +1 -1
- package/dist/assets/ProjectClaudeConfig-CP0Wsg-H.js +26 -0
- package/dist/assets/Scheduler-D8un7N3B.js +16 -0
- package/dist/assets/{SkillReferenceGraph-Cqyu4mef.js → SkillReferenceGraph-DRtZV1Al.js} +1 -1
- package/dist/assets/{Skills-vv0noNVI.js → Skills-Bg5O2Hyn.js} +23 -23
- package/dist/assets/{TiptapBody-CXi8Pvut.js → TiptapBody-BdzoBmqu.js} +27 -27
- package/dist/assets/{Toggle-CiYCWLjh.js → Toggle-Dt5K1OXt.js} +1 -1
- package/dist/assets/{VoiceButton-4NKKd1sC.js → VoiceButton-CTLyRgdF.js} +1 -1
- package/dist/assets/{historyTotals-DDunb8Ch.js → historyTotals-B2_KWBga.js} +1 -1
- package/dist/assets/{index-Cn5E9958.js → index-446b69rr.js} +715 -714
- package/dist/assets/{index-DVHIHoJf.css → index-BJ5TJvmz.css} +1 -1
- package/dist/index.html +2 -2
- package/dist-web/app.css +1 -1
- package/dist-web/app.js +438 -435
- package/package.json +6 -4
- package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/session-manager-dev/skills/builder/SKILL.md +5 -0
- package/plugins/session-manager-dev/skills/develop/SKILL.md +23 -16
- package/plugins/session-manager-dev/skills/maintaining-md-network/SKILL.md +16 -2
- package/plugins/session-manager-dev/skills/maintaining-md-network/weekly-consolidation.md +87 -0
- package/scripts/README.md +1 -0
- package/scripts/scheduler-mcp-server.cjs +381 -6
- package/src/main/adminRouteRegistry.cjs +16 -0
- package/src/main/agentLibrary.cjs +60 -11
- package/src/main/agentsIpc.cjs +19 -0
- package/src/main/build-info.json +4 -4
- package/src/main/chatRunner.cjs +214 -7
- package/src/main/config.cjs +5 -1
- package/src/main/health.cjs +92 -14
- package/src/main/index.cjs +16 -4
- package/src/main/ipcSchemas.cjs +61 -1
- package/src/main/lib/claude/agentArmory.cjs +128 -0
- package/src/main/lib/claude/agentModelResolve.cjs +3 -2
- package/src/main/lib/claude/agentSnapshot.cjs +24 -3
- package/src/main/lib/claude/builtinTools.cjs +110 -0
- package/src/main/lib/claude/environmentProfiles.cjs +1 -1
- package/src/main/lib/claude/headlessMcpServers.cjs +138 -0
- package/src/main/lib/claude/jobSandboxPolicy.cjs +8 -2
- package/src/main/lib/claude/personaToolScope.cjs +77 -6
- package/src/main/lib/demo-video-kit/cast.md +10 -1
- package/src/main/lib/demo-video-kit/character.cjs +77 -21
- package/src/main/lib/demo-video-kit/kind-tiktok.md +5 -1
- package/src/main/lib/demo-video-kit/projectSounds.cjs +191 -0
- package/src/main/lib/demo-video-kit/seedKit.cjs +3 -3
- package/src/main/lib/demo-video-kit/sound.cjs +166 -9
- package/src/main/lib/demo-video-kit/standalone.cjs +231 -0
- package/src/main/lib/epic/activeIndexMerge.cjs +5 -0
- package/src/main/lib/epic/artifactRetention.cjs +55 -9
- package/src/main/lib/epic/artifactStore.cjs +78 -35
- package/src/main/lib/epic/delegationReadiness.cjs +10 -3
- package/src/main/lib/epic/epicDepsSync.cjs +66 -0
- package/src/main/lib/epic/epicEventLog.cjs +45 -1
- package/src/main/lib/epic/epicOutsideRead.cjs +38 -1
- package/src/main/lib/epic/epicSettle.cjs +48 -4
- package/src/main/lib/epic/epicSpawnPlan.cjs +3 -1
- package/src/main/lib/epic/epicStateEmitter.cjs +248 -0
- package/src/main/lib/epic/epicValidationHook.cjs +22 -3
- package/src/main/lib/epic/planReviewInput.cjs +123 -0
- package/src/main/lib/epic/restorableSessions.cjs +1 -0
- package/src/main/lib/epic/scriptStartedBy.cjs +71 -0
- package/src/main/lib/externalContract.cjs +24 -1
- package/src/main/lib/feedback-remote/autoStartedSession.cjs +1 -1
- package/src/main/lib/feedback-remote/createdProjects.cjs +291 -0
- package/src/main/lib/feedback-remote/crossProjectFeedback.cjs +24 -2
- package/src/main/lib/feedback-remote/crossProjectReply.cjs +96 -8
- package/src/main/lib/feedback-remote/macroAdminRoutes.cjs +54 -3
- package/src/main/lib/feedback-remote/pendingReplies.cjs +22 -0
- package/src/main/lib/feedback-remote/projectCreate.cjs +415 -0
- package/src/main/lib/feedback-remote/projectHomeAdminRoutes.cjs +94 -4
- package/src/main/lib/feedback-remote/replyClaims.cjs +168 -0
- package/src/main/lib/feedback-remote/serviceMcpSession.cjs +29 -1
- package/src/main/lib/feedback-remote/serviceMcpTools.cjs +43 -2
- package/src/main/lib/feedback-remote/servicePairLocalRoutes.cjs +91 -0
- package/src/main/lib/feedback-remote/servicePairings.cjs +47 -7
- package/src/main/lib/feedback-remote/serviceStdioBridge.cjs +99 -1
- package/src/main/lib/git/gitWorktree.cjs +8 -0
- package/src/main/lib/git/runtimeStateUntrack.cjs +15 -1
- package/src/main/lib/git/worktreeDeps.cjs +119 -10
- package/src/main/lib/mcpToolCatalog.cjs +144 -12
- package/src/main/lib/mcpToolsProbe.cjs +19 -2
- package/src/main/lib/opsOwnership.cjs +113 -28
- package/src/main/lib/packs/packCatalog.cjs +98 -5
- package/src/main/lib/persona-macro/agentPersonaSchema.cjs +6 -0
- package/src/main/lib/persona-macro/builtinMacros.cjs +6 -4
- package/src/main/lib/persona-macro/personaFrontmatterSchema.cjs +9 -0
- package/src/main/lib/persona-macro/personaLoadout.cjs +58 -0
- package/src/main/lib/persona-macro/personaMerge.cjs +11 -3
- package/src/main/lib/persona-macro/personaUpgrade.cjs +96 -0
- package/src/main/lib/persona-macro/projectVideoToolCheck.cjs +1 -1
- package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +140 -0
- package/src/main/lib/prd/prdCreate.cjs +395 -229
- package/src/main/lib/prd/prdCriteria.cjs +7 -4
- package/src/main/lib/prd/prdFrontmatter.cjs +5 -2
- package/src/main/lib/prd/prdMcpReachWarnings.cjs +44 -0
- package/src/main/lib/prd/prdSandboxWarnings.cjs +49 -0
- package/src/main/lib/process/peerChatSession.cjs +165 -0
- package/src/main/lib/project-pages/videoPressLines.cjs +145 -0
- package/src/main/lib/project-pages/videoScriptPress.cjs +266 -0
- package/src/main/lib/project-pages/videoScriptRunRoute.cjs +371 -0
- package/src/main/lib/project-pages/videoScriptSwitchIpc.cjs +49 -0
- package/src/main/lib/project-pages/videoScriptSwitchRoute.cjs +173 -0
- package/src/main/lib/promptSessionSchema.cjs +2 -0
- package/src/main/lib/scheduler/baselineGate.cjs +31 -2
- package/src/main/lib/scheduler/criteriaChecks.cjs +164 -20
- package/src/main/lib/scheduler/heldSchedulerTurns.cjs +238 -0
- package/src/main/lib/scheduler/jobMemoryStats.cjs +13 -2
- package/src/main/lib/scheduler/planRecordHarvest.cjs +215 -55
- package/src/main/lib/scheduler/planReleaseRoute.cjs +110 -0
- package/src/main/lib/scheduler/planReviewSchema.cjs +182 -0
- package/src/main/lib/scheduler/planReviewStats.cjs +63 -0
- package/src/main/lib/scheduler/planReviewStore.cjs +128 -0
- package/src/main/lib/scheduler/prdOutcomeRecord.cjs +60 -2
- package/src/main/lib/scheduler/queueStore.cjs +16 -0
- package/src/main/lib/scheduler/rcaReport.cjs +79 -15
- package/src/main/lib/scheduler/sandboxEnvironmentLimit.cjs +141 -0
- package/src/main/lib/scheduler/scheduleJobSchema.cjs +15 -0
- package/src/main/lib/scheduler/schedulerPaths.cjs +9 -0
- package/src/main/lib/scheduler/slotsRoute.cjs +101 -87
- package/src/main/lib/scheduler/upgradeDrain.cjs +32 -5
- package/src/main/lib/scheduler/usageHoldRoute.cjs +97 -0
- package/src/main/lib/scheduler/validatorVerdictSchema.cjs +28 -7
- package/src/main/lib/tasks/memoryConsolidation.cjs +123 -39
- package/src/main/lib/tasks/mitigationReview.cjs +21 -1
- package/src/main/lib/tasks/taskAdminRoutes.cjs +104 -17
- package/src/main/lib/tasks/taskLedger.cjs +2 -2
- package/src/main/lib/tasks/taskRun.cjs +3 -1
- package/src/main/lib/tasks/weeklyConsolidationInputs.cjs +178 -0
- package/src/main/lib/telemetry/auditEvents.cjs +21 -24
- package/src/main/lib/telemetry/auditLog.cjs +6 -2
- package/src/main/lib/util/atomicFs.cjs +2 -2
- package/src/main/projectPages.cjs +22 -14
- package/src/main/promptSessionEvents.cjs +16 -1
- package/src/main/pty.cjs +14 -2
- package/src/main/queueOps.cjs +1 -1
- package/src/main/runVerify.cjs +4 -3
- package/src/main/scheduler/planReviewHold.cjs +140 -0
- package/src/main/scheduler/prdParser.cjs +1 -0
- package/src/main/scheduler/reviewLadder.cjs +2 -0
- package/src/main/scheduler/utilizationHold.cjs +101 -6
- package/src/main/scheduler.cjs +1055 -107
- package/src/main/seedAgentPersonas.cjs +11 -6
- package/src/main/seedStatus.cjs +1 -1
- package/src/main/templates/PRD_AUTHORING.md +22 -2
- package/src/main/webRemote.cjs +47 -7
- package/src/preload/api.d.ts +118 -2
- package/src/preload/apiSurface.json +42 -0
- package/src/preload/index.cjs +11 -0
- package/src/seed/agents/architect.md +28 -43
- package/src/seed/agents/demo-video-builder.md +15 -8
- package/src/seed/agents/dev-lead.md +3 -1
- package/src/seed/agents/md-network-curator.md +27 -0
- package/src/seed/agents/plan-reviewer.md +47 -0
- package/src/seed/agents/validator.md +21 -19
- package/dist/assets/AppSettings-BcZgIvvY.js +0 -2
- package/dist/assets/HomeClaudeConfig-D32ZJtU-.js +0 -3
- package/dist/assets/ProjectClaudeConfig-BTClYV6i.js +0 -26
- package/dist/assets/Scheduler-DPobKx1Z.js +0 -16
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* createdProjects.cjs — store of every project folder the project_create tool
|
|
6
|
+
* created. Pure Node — no Electron — importable in unit tests.
|
|
7
|
+
*
|
|
8
|
+
* File (default ~/.claude/session-manager/created-projects.json, mode 0600,
|
|
9
|
+
* override SM_CREATED_PROJECTS_FILE):
|
|
10
|
+
* { version: 1, projects: [{ cwd, fromCwd, externalRef, repo, createdAt }] }
|
|
11
|
+
*
|
|
12
|
+
* - A repeat project_create with the same (fromCwd, externalRef) answers with
|
|
13
|
+
* the same folder via findByRef.
|
|
14
|
+
* - The project list can include a folder before it has any Claude transcript
|
|
15
|
+
* via list().
|
|
16
|
+
*
|
|
17
|
+
* Mirrors servicePairings.cjs: state is read once from disk (missing/corrupt =
|
|
18
|
+
* empty) and kept in memory; every mutation is written atomically, serialized
|
|
19
|
+
* through one queue. Reads are synchronous over the in-memory copy. This store
|
|
20
|
+
* is the only writer of that file (it lives under ~/.claude, not an ops root).
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
const path = require('node:path');
|
|
24
|
+
const { writeTextAtomic, readJsonOrSync } = require('../util/atomicFs.cjs');
|
|
25
|
+
|
|
26
|
+
const STORE_VERSION = 1;
|
|
27
|
+
const MAX_PROJECTS = 1000;
|
|
28
|
+
const MAX_EXTERNAL_REF_LEN = 200;
|
|
29
|
+
const MAX_REPO_LEN = 200;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @typedef {{ cwd: string, fromCwd: string, externalRef: string, repo: string | null, createdAt: number }} CreatedProject
|
|
33
|
+
* @typedef {{ version: number, projects: CreatedProject[] }} StoreState
|
|
34
|
+
* @typedef {{ cwd?: unknown, fromCwd?: unknown, externalRef?: unknown, repo?: unknown }} RecordInput
|
|
35
|
+
* @typedef {{
|
|
36
|
+
* findByRef: (fromCwd: unknown, externalRef: unknown) => CreatedProject | null,
|
|
37
|
+
* findByCwd: (cwd: unknown) => CreatedProject | null,
|
|
38
|
+
* record: (input: RecordInput) => Promise<CreatedProject>,
|
|
39
|
+
* setRepo: (cwd: unknown, repo: unknown) => Promise<CreatedProject | null>,
|
|
40
|
+
* list: () => CreatedProject[],
|
|
41
|
+
* }} CreatedProjectsStore
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
/** @returns {string} */
|
|
45
|
+
function defaultFilePath() {
|
|
46
|
+
const override = process.env.SM_CREATED_PROJECTS_FILE;
|
|
47
|
+
if (typeof override === 'string' && override.length > 0) return override;
|
|
48
|
+
const { claudeHome } = require('../scheduler/schedulerPaths.cjs');
|
|
49
|
+
return path.join(claudeHome(), 'session-manager', 'created-projects.json');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @param {unknown} p
|
|
54
|
+
* @returns {p is string}
|
|
55
|
+
*/
|
|
56
|
+
function isAbsPath(p) {
|
|
57
|
+
return typeof p === 'string' && p.length > 0 && path.isAbsolute(p) && !p.includes('\0');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @param {unknown} p
|
|
62
|
+
* @param {string} label
|
|
63
|
+
* @returns {string}
|
|
64
|
+
*/
|
|
65
|
+
function validateAbs(p, label) {
|
|
66
|
+
if (!isAbsPath(p)) throw new Error(`${label} must be an absolute path`);
|
|
67
|
+
return path.resolve(p);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @param {unknown} ref
|
|
72
|
+
* @returns {string}
|
|
73
|
+
*/
|
|
74
|
+
function validateExternalRef(ref) {
|
|
75
|
+
if (typeof ref !== 'string' || ref.length === 0 || ref.length > MAX_EXTERNAL_REF_LEN) {
|
|
76
|
+
throw new Error(`externalRef must be a string of 1 to ${MAX_EXTERNAL_REF_LEN} chars`);
|
|
77
|
+
}
|
|
78
|
+
return ref;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @param {unknown} repo
|
|
83
|
+
* @param {boolean} allowNull
|
|
84
|
+
* @returns {string | null}
|
|
85
|
+
*/
|
|
86
|
+
function validateRepo(repo, allowNull) {
|
|
87
|
+
if (allowNull && (repo === undefined || repo === null)) return null;
|
|
88
|
+
if (typeof repo !== 'string' || repo.length === 0 || repo.length > MAX_REPO_LEN || /[\r\n\0]/.test(repo)) {
|
|
89
|
+
throw new Error(`repo must be a one-line string of 1 to ${MAX_REPO_LEN} chars`);
|
|
90
|
+
}
|
|
91
|
+
return repo;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @param {CreatedProject} e
|
|
96
|
+
* @returns {CreatedProject}
|
|
97
|
+
*/
|
|
98
|
+
function copy(e) {
|
|
99
|
+
return { cwd: e.cwd, fromCwd: e.fromCwd, externalRef: e.externalRef, repo: e.repo, createdAt: e.createdAt };
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @param {unknown} e
|
|
104
|
+
* @returns {e is CreatedProject}
|
|
105
|
+
*/
|
|
106
|
+
function isEntry(e) {
|
|
107
|
+
if (!e || typeof e !== 'object') return false;
|
|
108
|
+
const r = /** @type {Record<string, unknown>} */ (e);
|
|
109
|
+
return isAbsPath(r.cwd) && isAbsPath(r.fromCwd)
|
|
110
|
+
&& typeof r.externalRef === 'string' && r.externalRef.length > 0
|
|
111
|
+
&& typeof r.createdAt === 'number';
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* A repo read from disk: kept only when it passes validateRepo, else null.
|
|
116
|
+
* @param {unknown} repo
|
|
117
|
+
* @returns {string | null}
|
|
118
|
+
*/
|
|
119
|
+
function loadedRepo(repo) {
|
|
120
|
+
if (typeof repo !== 'string') return null;
|
|
121
|
+
try {
|
|
122
|
+
return validateRepo(repo, false);
|
|
123
|
+
} catch {
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @param {unknown} raw
|
|
130
|
+
* @returns {StoreState}
|
|
131
|
+
*/
|
|
132
|
+
function normalizeLoaded(raw) {
|
|
133
|
+
/** @type {StoreState} */
|
|
134
|
+
const empty = { version: STORE_VERSION, projects: [] };
|
|
135
|
+
if (!raw || typeof raw !== 'object') return empty;
|
|
136
|
+
const list = /** @type {{ projects?: unknown }} */ (raw).projects;
|
|
137
|
+
if (!Array.isArray(list)) return empty;
|
|
138
|
+
const projects = list.filter(isEntry).map((e) => ({
|
|
139
|
+
cwd: path.resolve(e.cwd),
|
|
140
|
+
fromCwd: path.resolve(e.fromCwd),
|
|
141
|
+
externalRef: e.externalRef,
|
|
142
|
+
repo: loadedRepo(e.repo),
|
|
143
|
+
createdAt: e.createdAt,
|
|
144
|
+
}));
|
|
145
|
+
return { version: STORE_VERSION, projects: projects.slice(-MAX_PROJECTS) };
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @param {{ filePath?: string, now?: () => number }} [opts]
|
|
150
|
+
* @returns {CreatedProjectsStore}
|
|
151
|
+
*/
|
|
152
|
+
function createCreatedProjects({ filePath, now } = {}) {
|
|
153
|
+
const file = filePath || defaultFilePath();
|
|
154
|
+
const clock = typeof now === 'function' ? now : () => Date.now();
|
|
155
|
+
/** @type {StoreState | null} */
|
|
156
|
+
let state = null;
|
|
157
|
+
/** @type {Promise<unknown>} */
|
|
158
|
+
let queue = Promise.resolve();
|
|
159
|
+
|
|
160
|
+
/** @returns {StoreState} */
|
|
161
|
+
function load() {
|
|
162
|
+
if (!state) state = normalizeLoaded(readJsonOrSync(file, null));
|
|
163
|
+
return state;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Run a mutation then persist; serialized so writes never interleave.
|
|
168
|
+
* @template T
|
|
169
|
+
* @param {(s: StoreState) => T} fn
|
|
170
|
+
* @returns {Promise<T>}
|
|
171
|
+
*/
|
|
172
|
+
function mutate(fn) {
|
|
173
|
+
const run = queue.then(async () => {
|
|
174
|
+
/** @type {StoreState} */
|
|
175
|
+
const next = JSON.parse(JSON.stringify(load()));
|
|
176
|
+
const result = fn(next);
|
|
177
|
+
await writeTextAtomic(file, `${JSON.stringify(next, null, 2)}\n`, { mode: 0o600 });
|
|
178
|
+
state = next;
|
|
179
|
+
return result;
|
|
180
|
+
});
|
|
181
|
+
queue = run.catch(() => {});
|
|
182
|
+
return run;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @param {StoreState} s
|
|
187
|
+
* @param {string} cwd
|
|
188
|
+
*/
|
|
189
|
+
function entryByCwd(s, cwd) {
|
|
190
|
+
return s.projects.find((e) => e.cwd === cwd) || null;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @param {StoreState} s
|
|
195
|
+
* @param {string} fromCwd
|
|
196
|
+
* @param {string} externalRef
|
|
197
|
+
*/
|
|
198
|
+
function entryByRef(s, fromCwd, externalRef) {
|
|
199
|
+
return s.projects.find((e) => e.fromCwd === fromCwd && e.externalRef === externalRef) || null;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
findByRef(fromCwd, externalRef) {
|
|
204
|
+
if (!isAbsPath(fromCwd) || typeof externalRef !== 'string' || externalRef.length === 0) return null;
|
|
205
|
+
const e = entryByRef(load(), path.resolve(fromCwd), externalRef);
|
|
206
|
+
return e ? copy(e) : null;
|
|
207
|
+
},
|
|
208
|
+
|
|
209
|
+
findByCwd(cwd) {
|
|
210
|
+
if (!isAbsPath(cwd)) return null;
|
|
211
|
+
const e = entryByCwd(load(), path.resolve(cwd));
|
|
212
|
+
return e ? copy(e) : null;
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
record(input) {
|
|
216
|
+
/** @type {string} */ let cwd;
|
|
217
|
+
/** @type {string} */ let fromCwd;
|
|
218
|
+
/** @type {string} */ let externalRef;
|
|
219
|
+
/** @type {string | null} */ let repo;
|
|
220
|
+
try {
|
|
221
|
+
if (input === null || typeof input !== 'object' || Array.isArray(input)) {
|
|
222
|
+
throw new Error('record expects { cwd, fromCwd, externalRef, repo? }');
|
|
223
|
+
}
|
|
224
|
+
cwd = validateAbs(input.cwd, 'cwd');
|
|
225
|
+
fromCwd = validateAbs(input.fromCwd, 'fromCwd');
|
|
226
|
+
externalRef = validateExternalRef(input.externalRef);
|
|
227
|
+
repo = validateRepo(input.repo, true);
|
|
228
|
+
} catch (e) {
|
|
229
|
+
return Promise.reject(e);
|
|
230
|
+
}
|
|
231
|
+
return mutate((s) => {
|
|
232
|
+
const byCwd = entryByCwd(s, cwd);
|
|
233
|
+
if (byCwd) {
|
|
234
|
+
if (byCwd.fromCwd === fromCwd && byCwd.externalRef === externalRef) return copy(byCwd);
|
|
235
|
+
throw new Error(`cwd is already recorded under another externalRef: ${cwd}`);
|
|
236
|
+
}
|
|
237
|
+
const byRef = entryByRef(s, fromCwd, externalRef);
|
|
238
|
+
if (byRef) throw new Error(`externalRef already names a different cwd: ${byRef.cwd}`);
|
|
239
|
+
/** @type {CreatedProject} */
|
|
240
|
+
const entry = { cwd, fromCwd, externalRef, repo, createdAt: clock() };
|
|
241
|
+
s.projects.push(entry);
|
|
242
|
+
if (s.projects.length > MAX_PROJECTS) s.projects = s.projects.slice(-MAX_PROJECTS);
|
|
243
|
+
return copy(entry);
|
|
244
|
+
});
|
|
245
|
+
},
|
|
246
|
+
|
|
247
|
+
setRepo(cwd, repo) {
|
|
248
|
+
/** @type {string} */ let want;
|
|
249
|
+
/** @type {string} */ let value;
|
|
250
|
+
try {
|
|
251
|
+
want = validateAbs(cwd, 'cwd');
|
|
252
|
+
value = /** @type {string} */ (validateRepo(repo, false));
|
|
253
|
+
} catch (e) {
|
|
254
|
+
return Promise.reject(e);
|
|
255
|
+
}
|
|
256
|
+
return mutate((s) => {
|
|
257
|
+
const e = entryByCwd(s, want);
|
|
258
|
+
if (!e) return null;
|
|
259
|
+
e.repo = value;
|
|
260
|
+
return copy(e);
|
|
261
|
+
});
|
|
262
|
+
},
|
|
263
|
+
|
|
264
|
+
list() {
|
|
265
|
+
const items = load().projects.map((e, i) => ({ e, i }));
|
|
266
|
+
items.sort((a, b) => (b.e.createdAt - a.e.createdAt) || (b.i - a.i));
|
|
267
|
+
return items.map(({ e }) => copy(e));
|
|
268
|
+
},
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/** @type {CreatedProjectsStore | null} */
|
|
273
|
+
let singleton = null;
|
|
274
|
+
|
|
275
|
+
/** @returns {CreatedProjectsStore} */
|
|
276
|
+
function getCreatedProjects() {
|
|
277
|
+
if (!singleton) singleton = createCreatedProjects();
|
|
278
|
+
return singleton;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
function __resetCreatedProjectsForTests() {
|
|
282
|
+
singleton = null;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
module.exports = {
|
|
286
|
+
createCreatedProjects,
|
|
287
|
+
getCreatedProjects,
|
|
288
|
+
__resetCreatedProjectsForTests,
|
|
289
|
+
MAX_PROJECTS,
|
|
290
|
+
MAX_EXTERNAL_REF_LEN,
|
|
291
|
+
};
|
|
@@ -1126,17 +1126,26 @@ async function openReplyFallbackSession(input = {}, deps = {}) {
|
|
|
1126
1126
|
* requires everywhere else: a PROJECT IS A CWD, resolved from transcript
|
|
1127
1127
|
* CONTENT, never by naively decoding a `~/.claude/projects/` folder name back
|
|
1128
1128
|
* into a path. A folder whose cwd cannot be resolved is DROPPED, not guessed.
|
|
1129
|
+
*
|
|
1130
|
+
* Two sources:
|
|
1131
|
+
* 1. transcript folders under `~/.claude/projects/` (above);
|
|
1132
|
+
* 2. the created-projects ledger (`createdProjects.cjs`, injectable as
|
|
1133
|
+
* `createdProjects`, default `getCreatedProjects()`), so a folder made by
|
|
1134
|
+
* project_create is a target before anyone has worked in it. Ledger cwds
|
|
1135
|
+
* are recorded main checkouts, so they skip resolveProjectContext; their
|
|
1136
|
+
* lastActivity is the later of transcript activity and createdAt, and a
|
|
1137
|
+
* cwd in both sources is listed once.
|
|
1129
1138
|
* Results are then filtered to directories that still exist AND already carry
|
|
1130
1139
|
* an operations root — exactly `openFeedbackSession`'s own precondition, so
|
|
1131
1140
|
* this list can't offer a target that would then be refused.
|
|
1132
1141
|
*/
|
|
1133
|
-
async function listFeedbackTargets({ limit = TARGET_SCAN_LIMIT, projectsDir } = {}) {
|
|
1142
|
+
async function listFeedbackTargets({ limit = TARGET_SCAN_LIMIT, projectsDir, createdProjects } = {}) {
|
|
1134
1143
|
const root = resolveProjectsDir(projectsDir);
|
|
1135
1144
|
let entries;
|
|
1136
1145
|
try {
|
|
1137
1146
|
entries = await fsp.readdir(root, { withFileTypes: true });
|
|
1138
1147
|
} catch {
|
|
1139
|
-
|
|
1148
|
+
entries = [];
|
|
1140
1149
|
}
|
|
1141
1150
|
const dirs = entries.filter((e) => e.isDirectory());
|
|
1142
1151
|
|
|
@@ -1166,6 +1175,19 @@ async function listFeedbackTargets({ limit = TARGET_SCAN_LIMIT, projectsDir } =
|
|
|
1166
1175
|
if (!prior || prior.lastActivity < mtimeMs) byCwd.set(cwd, { cwd, lastActivity: mtimeMs });
|
|
1167
1176
|
}
|
|
1168
1177
|
|
|
1178
|
+
// Second source: the created-projects ledger. A broken ledger never hides
|
|
1179
|
+
// the transcript-derived list.
|
|
1180
|
+
let ledgerEntries = [];
|
|
1181
|
+
try {
|
|
1182
|
+
const store = createdProjects || require('./createdProjects.cjs').getCreatedProjects();
|
|
1183
|
+
ledgerEntries = store.list();
|
|
1184
|
+
} catch { ledgerEntries = []; }
|
|
1185
|
+
for (const e of ledgerEntries) {
|
|
1186
|
+
if (!e || typeof e.cwd !== 'string' || typeof e.createdAt !== 'number') continue;
|
|
1187
|
+
const prior = byCwd.get(e.cwd);
|
|
1188
|
+
if (!prior || prior.lastActivity < e.createdAt) byCwd.set(e.cwd, { cwd: e.cwd, lastActivity: e.createdAt });
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1169
1191
|
const projects = [...byCwd.values()]
|
|
1170
1192
|
.filter((p) => isDirectory(p.cwd) && isSessionManagerProject(p.cwd))
|
|
1171
1193
|
.sort((a, b) => b.lastActivity - a.lastActivity)
|
|
@@ -43,6 +43,7 @@ const { readActiveIndex } = require('../epic/epicMint.cjs');
|
|
|
43
43
|
const { appendAuditEvent } = require('../telemetry/auditLog.cjs');
|
|
44
44
|
const { resolveProjectContext } = require('../projectRootResolve.cjs');
|
|
45
45
|
const pendingReplies = require('./pendingReplies.cjs');
|
|
46
|
+
const replyClaims = require('./replyClaims.cjs');
|
|
46
47
|
|
|
47
48
|
const { addPendingReply, countPendingForThread } = pendingReplies;
|
|
48
49
|
|
|
@@ -147,9 +148,24 @@ function validateReplyInput(input) {
|
|
|
147
148
|
}
|
|
148
149
|
deliverWhen = { appVersionAbove: dw.appVersionAbove };
|
|
149
150
|
}
|
|
151
|
+
let release = null;
|
|
152
|
+
if (input.release !== undefined && input.release !== null) {
|
|
153
|
+
const claim = replyClaims.normalizeReleaseClaim(input.release);
|
|
154
|
+
if (!claim.ok) return bad(400, claim.error);
|
|
155
|
+
release = claim.value;
|
|
156
|
+
}
|
|
157
|
+
const unfilled = replyClaims.findUnfilledPlaceholders(message, { allowVersionToken: !!(deliverWhen || release) });
|
|
158
|
+
if (unfilled.length) {
|
|
159
|
+
return bad(400, `message still holds an unfilled placeholder: ${unfilled.join(', ')} — `
|
|
160
|
+
+ '{version} is filled only for a reply held with deliverWhen or a live reply carrying release.commits');
|
|
161
|
+
}
|
|
150
162
|
return {
|
|
151
163
|
ok: true,
|
|
152
|
-
value: {
|
|
164
|
+
value: {
|
|
165
|
+
message, outcome: input.outcome, referencePaths,
|
|
166
|
+
...(deliverWhen ? { deliverWhen } : {}),
|
|
167
|
+
...(release ? { release } : {}),
|
|
168
|
+
},
|
|
153
169
|
};
|
|
154
170
|
}
|
|
155
171
|
|
|
@@ -238,7 +254,11 @@ function earlierDelivery(receipt, { targetCwd, rt, threadField, sent }) {
|
|
|
238
254
|
* deliverWhen { appVersionAbove: 'x.y.z' } holds the reply in the
|
|
239
255
|
* pending-reply ledger (pendingReplies.cjs) instead of sending it; its
|
|
240
256
|
* ledger entry holds a slot under MAX_REPLIES_PER_THREAD like a receipt.
|
|
241
|
-
*
|
|
257
|
+
* release { commits: [...] } (Session Manager repo only) claims the
|
|
258
|
+
* running release contains those commits; a live one is checked with
|
|
259
|
+
* git (409 when false) and its '{version}' is filled with that version.
|
|
260
|
+
* deps: { sendPrompt, appendEvent, resolveEpicId, appendAudit, openFallback,
|
|
261
|
+
* appVersion (string | () => string), runGit }
|
|
242
262
|
* openFallback defaults to crossProjectFeedback.openReplyFallbackSession;
|
|
243
263
|
* pass null to get a 409 fallbackNeeded instead.
|
|
244
264
|
*/
|
|
@@ -249,7 +269,8 @@ async function sendFeedbackReply(input, deps = {}) {
|
|
|
249
269
|
// 1. Validation.
|
|
250
270
|
const valid = validateReplyInput(input);
|
|
251
271
|
if (!valid.ok) return valid;
|
|
252
|
-
const {
|
|
272
|
+
const { outcome, referencePaths, deliverWhen, release } = valid.value;
|
|
273
|
+
let { message } = valid.value;
|
|
253
274
|
|
|
254
275
|
// 2. Identity — Y comes ONLY from the caller's chat session id.
|
|
255
276
|
const originClaudeSessionId = typeof input.originClaudeSessionId === 'string' ? input.originClaudeSessionId : '';
|
|
@@ -269,6 +290,19 @@ async function sendFeedbackReply(input, deps = {}) {
|
|
|
269
290
|
const y = yIndex.sessions[yId];
|
|
270
291
|
if (!y) return bad(403, 'no Epic in the calling project owns this chat session — cannot reply');
|
|
271
292
|
|
|
293
|
+
// 2b. Release claims — only Session Manager's own repo can claim one of its releases.
|
|
294
|
+
const smRepo = replyClaims.isSessionManagerRepo(replierCwd);
|
|
295
|
+
if (release && !smRepo) {
|
|
296
|
+
return bad(400, 'release may only be sent from the Session Manager repository — it claims a Session Manager release');
|
|
297
|
+
}
|
|
298
|
+
if (smRepo && outcome === 'done' && !release) {
|
|
299
|
+
const named = replyClaims.findSessionManagerVersions(message);
|
|
300
|
+
if (named.length || message.includes('{version}')) {
|
|
301
|
+
return bad(400, `a done reply that names a Session Manager release (${named.length ? named.join(', ') : '{version}'}) `
|
|
302
|
+
+ 'must carry release.commits so the release can be checked to contain them');
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
272
306
|
// 3. Thread.
|
|
273
307
|
const resolved = resolveThread(y.source || {});
|
|
274
308
|
if (!resolved.ok) return bad(400, resolved.error);
|
|
@@ -292,6 +326,25 @@ async function sendFeedbackReply(input, deps = {}) {
|
|
|
292
326
|
return bad(400, 'replyTo points at the replying project itself — use /develop inside this Epic');
|
|
293
327
|
}
|
|
294
328
|
|
|
329
|
+
// 3b. A live release claim must be true of the running release.
|
|
330
|
+
let releaseMeta = null;
|
|
331
|
+
if (release && !deliverWhen) {
|
|
332
|
+
const version = typeof deps.appVersion === 'function'
|
|
333
|
+
? deps.appVersion()
|
|
334
|
+
: (deps.appVersion || require('../../../../package.json').version);
|
|
335
|
+
const others = replyClaims.findSessionManagerVersions(message).filter((v) => v !== version);
|
|
336
|
+
if (others.length) {
|
|
337
|
+
return bad(409, `message names Session Manager ${others.join(', ')} but the running release is ${version}`);
|
|
338
|
+
}
|
|
339
|
+
const checked = await replyClaims.checkReleaseContains(
|
|
340
|
+
{ repoCwd: replierCwd, version, commits: release.commits },
|
|
341
|
+
deps.runGit ? { runGit: deps.runGit } : {},
|
|
342
|
+
);
|
|
343
|
+
if (!checked.ok) return bad(409, checked.error);
|
|
344
|
+
message = message.split('{version}').join(version);
|
|
345
|
+
releaseMeta = { version, commits: release.commits.slice() };
|
|
346
|
+
}
|
|
347
|
+
|
|
295
348
|
return withThreadLock(`${realOr(replierCwd)}\u0000${yId}`, async () => {
|
|
296
349
|
// 4. Identical retry, then cap (receipts + replies still held in the ledger).
|
|
297
350
|
const receipts = readReceipts(replierCwd, yId);
|
|
@@ -337,6 +390,7 @@ async function sendFeedbackReply(input, deps = {}) {
|
|
|
337
390
|
message,
|
|
338
391
|
referencePaths,
|
|
339
392
|
appVersionAbove: deliverWhen.appVersionAbove,
|
|
393
|
+
commits: release ? release.commits : undefined,
|
|
340
394
|
hash,
|
|
341
395
|
ySource: y.source || {},
|
|
342
396
|
sentAtScheduling: used + 1,
|
|
@@ -362,6 +416,7 @@ async function sendFeedbackReply(input, deps = {}) {
|
|
|
362
416
|
return deliverAuthorizedReply({
|
|
363
417
|
replierCwd, yId, y, rt, legacy, eventMode, threadField, targetCwd,
|
|
364
418
|
message, outcome, referencePaths, hash, sent: used, originClaudeSessionId,
|
|
419
|
+
...(releaseMeta ? { release: releaseMeta } : {}),
|
|
365
420
|
}, deps);
|
|
366
421
|
});
|
|
367
422
|
}
|
|
@@ -380,8 +435,9 @@ async function sendFeedbackReply(input, deps = {}) {
|
|
|
380
435
|
async function deliverAuthorizedReply(ctx, deps = {}) {
|
|
381
436
|
const {
|
|
382
437
|
replierCwd, yId, y, rt, legacy, eventMode, threadField = {}, targetCwd,
|
|
383
|
-
message, outcome, referencePaths = [], hash, sent, originClaudeSessionId,
|
|
438
|
+
message, outcome, referencePaths = [], hash, sent, originClaudeSessionId, release,
|
|
384
439
|
} = ctx;
|
|
440
|
+
const releaseField = release ? { release } : {};
|
|
385
441
|
const sendPrompt = deps.sendPrompt || defaultSendPrompt;
|
|
386
442
|
const appendEvent = deps.appendEvent || defaultAppendEvent;
|
|
387
443
|
const audit = deps.appendAudit || appendAuditEvent;
|
|
@@ -389,7 +445,7 @@ async function deliverAuthorizedReply(ctx, deps = {}) {
|
|
|
389
445
|
if (eventMode) {
|
|
390
446
|
return replyAsEvent({
|
|
391
447
|
appendEvent, audit, sent, rt, targetCwd, replierCwd, yId, y,
|
|
392
|
-
message, outcome, referencePaths, hash,
|
|
448
|
+
message, outcome, referencePaths, hash, releaseField,
|
|
393
449
|
});
|
|
394
450
|
}
|
|
395
451
|
|
|
@@ -439,6 +495,7 @@ async function deliverAuthorizedReply(ctx, deps = {}) {
|
|
|
439
495
|
fromCwd: replierCwd, fromEpicId: yId, outcome, referencePaths, hash,
|
|
440
496
|
delivery: 'fallback', toEpicId: rt.epicId, fallbackEpicId: opened.epicId, reason,
|
|
441
497
|
...(reused ? { reused: true } : {}),
|
|
498
|
+
...releaseField,
|
|
442
499
|
},
|
|
443
500
|
});
|
|
444
501
|
// Best-effort receipt on X, only while X is still in A's active index.
|
|
@@ -511,6 +568,7 @@ async function deliverAuthorizedReply(ctx, deps = {}) {
|
|
|
511
568
|
fromCwd: replierCwd, fromEpicId: yId, outcome, referencePaths, hash,
|
|
512
569
|
delivery, toEpicId: x.id,
|
|
513
570
|
...(delivery === 'event-only' && sendResult && sendResult.reason ? { reason: sendResult.reason } : {}),
|
|
571
|
+
...releaseField,
|
|
514
572
|
},
|
|
515
573
|
});
|
|
516
574
|
|
|
@@ -547,6 +605,7 @@ async function deliverAuthorizedReply(ctx, deps = {}) {
|
|
|
547
605
|
*/
|
|
548
606
|
async function replyAsEvent({
|
|
549
607
|
appendEvent, audit, sent, rt, targetCwd, replierCwd, yId, y, message, outcome, referencePaths, hash,
|
|
608
|
+
releaseField = {},
|
|
550
609
|
}) {
|
|
551
610
|
const replyMeta = { fromCwd: replierCwd, fromEpicId: yId, outcome, referencePaths };
|
|
552
611
|
let eventOnAskingEpic = false;
|
|
@@ -570,6 +629,7 @@ async function replyAsEvent({
|
|
|
570
629
|
reply: {
|
|
571
630
|
...replyMeta, hash, delivery: 'event-only', reason: EVENT_MODE_REASON,
|
|
572
631
|
...(rt.epicId ? { toEpicId: rt.epicId } : {}),
|
|
632
|
+
...releaseField,
|
|
573
633
|
},
|
|
574
634
|
});
|
|
575
635
|
|
|
@@ -689,7 +749,11 @@ function resolveThread(src) {
|
|
|
689
749
|
}
|
|
690
750
|
|
|
691
751
|
/**
|
|
692
|
-
* deliverDueReplies({ appVersion }, deps) → Promise<{ due, delivered, failed, results }>.
|
|
752
|
+
* deliverDueReplies({ appVersion }, deps) → Promise<{ due, delivered, failed, waiting, results }>.
|
|
753
|
+
* An entry carrying release commits is sent only once tag v<appVersion>
|
|
754
|
+
* contains every one (replyClaims.checkReleaseContains); until then it
|
|
755
|
+
* counts as waiting and spends no attempt. A message that still holds a
|
|
756
|
+
* placeholder after {version} is filled is never sent (a failed attempt).
|
|
693
757
|
* Sends every pending-reply ledger entry whose appVersionAbove is now below
|
|
694
758
|
* appVersion: `{version}` in its message becomes appVersion, then it goes
|
|
695
759
|
* through deliverAuthorizedReply (same path + fallback as a live reply) under
|
|
@@ -708,7 +772,7 @@ function resolveThread(src) {
|
|
|
708
772
|
let dueRepliesPassRunning = false;
|
|
709
773
|
|
|
710
774
|
async function deliverDueReplies(opts = {}, deps = {}) {
|
|
711
|
-
if (dueRepliesPassRunning) return { due: 0, delivered: 0, failed: 0, results: [], skipped: true };
|
|
775
|
+
if (dueRepliesPassRunning) return { due: 0, delivered: 0, failed: 0, waiting: 0, results: [], skipped: true };
|
|
712
776
|
dueRepliesPassRunning = true;
|
|
713
777
|
try {
|
|
714
778
|
return await runDueRepliesPass(opts, deps);
|
|
@@ -728,13 +792,14 @@ function replyPassLogMeta(r, appVersion) {
|
|
|
728
792
|
due: r.due,
|
|
729
793
|
delivered: r.delivered,
|
|
730
794
|
failed: r.failed,
|
|
795
|
+
waiting: Number.isInteger(r.waiting) ? r.waiting : 0,
|
|
731
796
|
skipped: r.skipped === true,
|
|
732
797
|
...(r.error ? { error: r.error } : {}),
|
|
733
798
|
};
|
|
734
799
|
}
|
|
735
800
|
|
|
736
801
|
async function runDueRepliesPass({ appVersion } = {}, deps = {}) {
|
|
737
|
-
const summary = { due: 0, delivered: 0, failed: 0, results: [] };
|
|
802
|
+
const summary = { due: 0, delivered: 0, failed: 0, waiting: 0, results: [] };
|
|
738
803
|
const listDue = deps.listDueReplies || pendingReplies.listDueReplies;
|
|
739
804
|
const markDelivered = deps.markReplyDelivered || pendingReplies.markReplyDelivered;
|
|
740
805
|
const audit = deps.appendAudit || appendAuditEvent;
|
|
@@ -750,6 +815,23 @@ async function runDueRepliesPass({ appVersion } = {}, deps = {}) {
|
|
|
750
815
|
const version = String(appVersion);
|
|
751
816
|
|
|
752
817
|
for (const entry of due) {
|
|
818
|
+
// A release claim waits — no attempt spent — until tag v<version> holds every commit.
|
|
819
|
+
if (entry && Array.isArray(entry.commits) && entry.commits.length) {
|
|
820
|
+
let checked;
|
|
821
|
+
try {
|
|
822
|
+
checked = await replyClaims.checkReleaseContains(
|
|
823
|
+
{ repoCwd: entry.replierCwd, version, commits: entry.commits },
|
|
824
|
+
{ runGit: deps.runGit },
|
|
825
|
+
);
|
|
826
|
+
} catch (e) {
|
|
827
|
+
checked = { ok: false, error: e && e.message ? e.message : String(e) };
|
|
828
|
+
}
|
|
829
|
+
if (!checked || !checked.ok) {
|
|
830
|
+
summary.waiting += 1;
|
|
831
|
+
summary.results.push({ id: entry.id, ok: false, waiting: (checked && checked.error) || 'release check failed' });
|
|
832
|
+
continue;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
753
835
|
let result;
|
|
754
836
|
try {
|
|
755
837
|
result = await deliverOneDueReply(entry, version, deps);
|
|
@@ -815,6 +897,11 @@ async function deliverOneDueReply(entry, version, deps) {
|
|
|
815
897
|
const eventMode = thread.mode === 'event';
|
|
816
898
|
if (!eventMode && !nonEmpty(thread.epicId)) return { ok: false, error: 'ledger entry has no asking Epic' };
|
|
817
899
|
const message = String(entry.message ?? '').split('{version}').join(version);
|
|
900
|
+
const unfilled = replyClaims.findUnfilledPlaceholders(message);
|
|
901
|
+
if (unfilled.length) {
|
|
902
|
+
return { ok: false, error: `message still holds unfilled placeholder ${unfilled.join(', ')} — not sent` };
|
|
903
|
+
}
|
|
904
|
+
const commits = Array.isArray(entry.commits) && entry.commits.length ? entry.commits.slice() : null;
|
|
818
905
|
const outcome = entry.outcome;
|
|
819
906
|
const referencePaths = Array.isArray(entry.referencePaths) ? entry.referencePaths : [];
|
|
820
907
|
const legacy = thread.legacy === true;
|
|
@@ -843,6 +930,7 @@ async function deliverOneDueReply(entry, version, deps) {
|
|
|
843
930
|
threadField: legacy ? { thread: 'legacy' } : {},
|
|
844
931
|
targetCwd, message, outcome, referencePaths,
|
|
845
932
|
hash: replyHash(outcome, message), sent,
|
|
933
|
+
...(commits ? { release: { version, commits } } : {}),
|
|
846
934
|
}, { ...deps, appendEvent });
|
|
847
935
|
});
|
|
848
936
|
}
|