claude-code-session-manager 0.141.0 → 0.143.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 +76 -153
- package/bin/cli.cjs +11 -0
- package/dist/assets/AppSettings-BO4jDVGO.js +2 -0
- package/dist/assets/{History-DJMiuXyK.js → History-DTttbvPb.js} +1 -1
- package/dist/assets/HomeClaudeConfig-DADP5bfn.js +3 -0
- package/dist/assets/{Panel-Bf1Cf8UL.js → Panel-B_D4Bg7L.js} +1 -1
- package/dist/assets/{ProjectClaudeConfig-BWPpypf9.js → ProjectClaudeConfig-DPnDJKcr.js} +7 -7
- package/dist/assets/Scheduler-CNLjn90m.js +16 -0
- package/dist/assets/{SkillReferenceGraph-Ba4TkX2C.js → SkillReferenceGraph-D1b2aiol.js} +1 -1
- package/dist/assets/{Skills-C1v91GEO.js → Skills-cfV7sgk6.js} +5 -5
- package/dist/assets/{TiptapBody-BrcWVpiW.js → TiptapBody-DVXtEIVy.js} +1 -1
- package/dist/assets/Toggle-CYajnSdx.js +1 -0
- package/dist/assets/{VoiceButton-qivnDV6K.js → VoiceButton-DJ4gGRuE.js} +1 -1
- package/dist/assets/{historyTotals-CMCPTKqC.js → historyTotals-D3MoHY2U.js} +1 -1
- package/dist/assets/index-CdTppjKR.js +3133 -0
- package/dist/assets/{index-DKXdXfka.css → index-DVHIHoJf.css} +1 -1
- package/dist/index.html +2 -2
- package/dist-web/app.css +1 -1
- package/dist-web/app.js +496 -484
- package/package.json +6 -4
- package/plugins/AGENTS.md +4 -3
- package/plugins/session-manager-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/session-manager-dev/hooks/hooks.json +15 -0
- package/plugins/session-manager-dev/hooks/residue-check.cjs +241 -0
- package/plugins/session-manager-dev/skills/builder/SKILL.md +5 -0
- package/plugins/session-manager-dev/skills/develop/SKILL.md +58 -18
- package/plugins/session-manager-dev/skills/develop/standards.md +3 -2
- package/scripts/README.md +2 -0
- package/scripts/hooks/guard-tool-risk.cjs +5 -1
- package/scripts/hooks/lib/guard-tool-risk-policy.cjs +158 -1
- package/scripts/scheduler-mcp-server.cjs +1032 -112
- package/src/main/adminRouteRegistry.cjs +69 -0
- package/src/main/agentLibrary.cjs +72 -4
- package/src/main/agentsIpc.cjs +3 -2
- package/src/main/build-info.json +4 -4
- package/src/main/chatRunner.cjs +336 -23
- package/src/main/config.cjs +35 -1
- package/src/main/docEdit.cjs +4 -2
- package/src/main/health.cjs +129 -2
- package/src/main/index.cjs +110 -52
- package/src/main/ipcSchemas.cjs +172 -8
- package/src/main/lib/AGENTS.md +1 -1
- package/src/main/lib/chatBootRecovery.cjs +2 -0
- package/src/main/lib/claude/agentModelResolve.cjs +51 -25
- package/src/main/lib/claude/agentSnapshot.cjs +186 -0
- package/src/main/lib/claude/environmentProfiles.cjs +242 -0
- package/src/main/lib/claude/jobSandboxPolicy.cjs +241 -33
- package/src/main/lib/claude/personaToolScope.cjs +82 -31
- package/src/main/lib/claude/runClaudeP.cjs +4 -2
- package/src/main/lib/claude/toolRiskMarks.cjs +41 -1
- package/src/main/lib/claude/usageCircuit.cjs +49 -21
- package/src/main/lib/claude/vaultRefs.cjs +277 -0
- package/src/main/lib/demo-video-kit/capture.cjs +282 -12
- package/src/main/lib/demo-video-kit/cast.md +52 -0
- package/src/main/lib/demo-video-kit/character.cjs +778 -30
- package/src/main/lib/demo-video-kit/checks.cjs +120 -1
- package/src/main/lib/demo-video-kit/export.cjs +218 -0
- package/src/main/lib/demo-video-kit/frames.cjs +104 -9
- package/src/main/lib/demo-video-kit/kind-marketing.md +121 -0
- package/src/main/lib/demo-video-kit/kind-tiktok.md +103 -0
- package/src/main/lib/demo-video-kit/kokoroSay.cjs +205 -0
- package/src/main/lib/demo-video-kit/project-home-html.md +43 -0
- package/src/main/lib/demo-video-kit/projectSounds.cjs +191 -0
- package/src/main/lib/demo-video-kit/resumableRun.cjs +298 -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/demo-video-kit/voiceLane.cjs +233 -0
- package/src/main/lib/demo-video-kit/voiceLibrary.cjs +312 -0
- package/src/main/lib/epic/activeIndexMerge.cjs +5 -0
- package/src/main/lib/epic/artifactAdminRoutes.cjs +211 -0
- package/src/main/lib/epic/artifactIpc.cjs +153 -0
- package/src/main/lib/epic/artifactNotice.cjs +72 -0
- package/src/main/lib/epic/artifactRetention.cjs +356 -0
- package/src/main/lib/epic/artifactStore.cjs +435 -0
- package/src/main/lib/epic/delegationReadiness.cjs +83 -2
- package/src/main/lib/epic/epicAgentRefresh.cjs +97 -0
- package/src/main/lib/epic/epicEventLog.cjs +258 -0
- package/src/main/lib/epic/epicMint.cjs +43 -1
- package/src/main/lib/epic/epicOutsideRead.cjs +1 -0
- package/src/main/lib/epic/epicOutsideState.cjs +18 -4
- package/src/main/lib/epic/epicPurge.cjs +347 -0
- package/src/main/lib/epic/epicReopen.cjs +5 -2
- package/src/main/lib/epic/epicSettle.cjs +4 -13
- package/src/main/lib/epic/epicSpawnPlan.cjs +57 -4
- package/src/main/lib/epic/epicStateEmitter.cjs +248 -0
- package/src/main/lib/epic/epicStatusMirror.cjs +34 -1
- package/src/main/lib/epic/epicTransitions.cjs +139 -0
- package/src/main/lib/epic/epicValidationHook.cjs +94 -4
- package/src/main/lib/epic/guardSpawnSettings.cjs +3 -2
- package/src/main/lib/externalContract.cjs +48 -4
- package/src/main/lib/feedback-remote/autoStartedSession.cjs +1 -1
- package/src/main/lib/feedback-remote/crossProjectReply.cjs +478 -127
- package/src/main/lib/feedback-remote/customerFeedbackAdminRoutes.cjs +16 -3
- package/src/main/lib/feedback-remote/customerFeedbackClient.cjs +11 -6
- package/src/main/lib/feedback-remote/customerFeedbackInbox.cjs +26 -1
- package/src/main/lib/feedback-remote/customerFeedbackIpc.cjs +5 -2
- package/src/main/lib/feedback-remote/feedbackBoxDrain.cjs +409 -0
- package/src/main/lib/feedback-remote/feedbackBoxKeys.cjs +218 -0
- package/src/main/lib/feedback-remote/feedbackEnvelope.cjs +163 -0
- package/src/main/lib/feedback-remote/feedbackRelayClient.cjs +164 -0
- package/src/main/lib/feedback-remote/feedbackReport.cjs +234 -0
- package/src/main/lib/feedback-remote/feedbackSeal.cjs +217 -0
- package/src/main/lib/feedback-remote/localAdminHttp.cjs +108 -2
- package/src/main/lib/feedback-remote/macroAdminRoutes.cjs +32 -1
- package/src/main/lib/feedback-remote/needsYouIpc.cjs +17 -0
- package/src/main/lib/feedback-remote/needsYouStore.cjs +177 -6
- package/src/main/lib/feedback-remote/pendingReplies.cjs +207 -0
- package/src/main/lib/feedback-remote/projectHomeAdminRoutes.cjs +282 -14
- package/src/main/lib/feedback-remote/replyClaims.cjs +159 -0
- package/src/main/lib/feedback-remote/serviceClient.cjs +429 -0
- package/src/main/lib/feedback-remote/serviceMcpSession.cjs +252 -0
- package/src/main/lib/feedback-remote/serviceMcpTools.cjs +284 -0
- package/src/main/lib/feedback-remote/servicePairings.cjs +313 -0
- package/src/main/lib/feedback-remote/serviceStdioBridge.cjs +290 -0
- package/src/main/lib/feedback-remote/siteFeedbackAdminRoutes.cjs +295 -0
- package/src/main/lib/feedback-remote/siteFeedbackInbox.cjs +598 -0
- package/src/main/lib/feedback-remote/siteFeedbackIpc.cjs +86 -0
- package/src/main/lib/feedback-remote/siteFeedbackService.cjs +477 -0
- 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 +182 -4
- package/src/main/lib/mcpToolCatalog.cjs +399 -29
- package/src/main/lib/opsOwnership.cjs +141 -28
- package/src/main/lib/opsRetentionSettings.cjs +27 -5
- package/src/main/lib/persona-macro/builtinMacros.cjs +7 -2
- package/src/main/lib/persona-macro/macroJobDispatch.cjs +52 -8
- package/src/main/lib/persona-macro/macroJobIpc.cjs +16 -6
- package/src/main/lib/persona-macro/macroLibrary.cjs +49 -7
- package/src/main/lib/persona-macro/personaFrontmatterSchema.cjs +83 -0
- package/src/main/lib/persona-macro/projectVideoToolCheck.cjs +3 -0
- package/src/main/lib/persona-macro/shippedPersonaSeeds.cjs +309 -0
- package/src/main/lib/phaseProjection.cjs +103 -0
- package/src/main/lib/prd/depSlugResolve.cjs +4 -13
- package/src/main/lib/prd/prdBodyPatch.cjs +12 -17
- package/src/main/lib/prd/prdCreate.cjs +387 -228
- package/src/main/lib/prd/prdCriteria.cjs +228 -0
- package/src/main/lib/prd/prdFrontmatter.cjs +43 -3
- package/src/main/lib/prd/prdGateFiles.cjs +125 -49
- package/src/main/lib/prd/prdSizing.cjs +3 -1
- package/src/main/lib/process/cleanEnv.cjs +52 -1
- package/src/main/lib/process/leftoverRenice.cjs +178 -0
- package/src/main/lib/process/memoryScope.cjs +31 -3
- package/src/main/lib/project-pages/pagesLibrary.cjs +72 -6
- package/src/main/lib/project-pages/videoPressLines.cjs +145 -0
- package/src/main/lib/project-pages/videoReviewIpc.cjs +3 -2
- package/src/main/lib/project-pages/videoScriptPress.cjs +260 -0
- package/src/main/lib/project-pages/videoScriptRunRoute.cjs +351 -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/project-pages/voiceAdminRoutes.cjs +175 -0
- package/src/main/lib/project-pages/voicePreview.cjs +196 -0
- package/src/main/lib/project-pages/voicesIpc.cjs +186 -0
- package/src/main/lib/promptSessionSchema.cjs +6 -0
- package/src/main/lib/scheduler/cancelledRow.cjs +57 -0
- package/src/main/lib/scheduler/cpuSample.cjs +133 -42
- package/src/main/lib/scheduler/criteriaChecks.cjs +313 -0
- package/src/main/lib/scheduler/definitionOfDone.cjs +44 -5
- package/src/main/lib/scheduler/heldSchedulerTurns.cjs +238 -0
- package/src/main/lib/scheduler/jobMemoryStats.cjs +324 -0
- package/src/main/lib/scheduler/loadGate.cjs +82 -4
- package/src/main/lib/scheduler/planRecordHarvest.cjs +152 -54
- package/src/main/lib/scheduler/prdOutcomeRecord.cjs +191 -0
- package/src/main/lib/scheduler/queueStore.cjs +16 -0
- package/src/main/lib/scheduler/rcaReport.cjs +79 -15
- package/src/main/lib/scheduler/runLogRetention.cjs +42 -1
- package/src/main/lib/scheduler/scheduleJobSchema.cjs +18 -0
- package/src/main/lib/scheduler/scheduleJobTransitions.cjs +47 -0
- package/src/main/lib/scheduler/schedulerConfig.cjs +47 -0
- package/src/main/lib/scheduler/schedulerPaths.cjs +9 -3
- package/src/main/lib/scheduler/schedulerRuntimeState.cjs +50 -1
- package/src/main/lib/scheduler/sessionSlots.cjs +5 -1
- package/src/main/lib/scheduler/slotsRoute.cjs +251 -0
- package/src/main/lib/scheduler/toolClearance.cjs +258 -0
- package/src/main/lib/scheduler/usageHoldRoute.cjs +97 -0
- package/src/main/lib/scheduler/validatorVerdictSchema.cjs +152 -11
- package/src/main/lib/tasks/memoryConsolidation.cjs +312 -0
- package/src/main/lib/tasks/mitigationReview.cjs +314 -0
- package/src/main/lib/tasks/taskAdminRoutes.cjs +390 -25
- package/src/main/lib/tasks/taskIpc.cjs +22 -18
- package/src/main/lib/tasks/taskLedger.cjs +147 -25
- package/src/main/lib/tasks/taskRun.cjs +186 -17
- package/src/main/lib/tasks/taskSwitch.cjs +85 -12
- package/src/main/lib/tasks/taskSwitchRoute.cjs +172 -0
- package/src/main/lib/telemetry/auditEvents.cjs +204 -6
- package/src/main/lib/telemetry/auditLog.cjs +6 -2
- package/src/main/lib/telemetry/eventsAdminRoutes.cjs +198 -6
- package/src/main/lib/telemetry/webhookDelivery.cjs +205 -0
- package/src/main/lib/telemetry/webhookRegistry.cjs +281 -0
- package/src/main/lib/toolUseClassify.cjs +181 -0
- package/src/main/lib/util/atomicFs.cjs +2 -2
- package/src/main/lib/util/smfileRange.cjs +77 -0
- package/src/main/projectPages.cjs +3 -1
- package/src/main/promptSessionEvents.cjs +21 -1
- package/src/main/pty.cjs +77 -0
- package/src/main/queueOps.cjs +33 -14
- package/src/main/runVerify.cjs +74 -9
- package/src/main/scheduler/AGENTS.md +1 -0
- package/src/main/scheduler/budget.cjs +6 -5
- package/src/main/scheduler/prdParser.cjs +46 -13
- package/src/main/scheduler/reviewLadder.cjs +9 -25
- package/src/main/scheduler/utilizationHold.cjs +191 -0
- package/src/main/scheduler.cjs +1932 -213
- package/src/main/templates/PRD_AUTHORING.md +11 -3
- package/src/main/webRemote.cjs +463 -6
- package/src/preload/api.d.ts +576 -39
- package/src/preload/apiSurface.json +223 -7
- package/src/preload/index.cjs +48 -1
- package/src/seed/agents/architect.md +6 -1
- package/src/seed/agents/blender-artist.md +2 -1
- package/src/seed/agents/competitive-analyst.md +3 -1
- package/src/seed/agents/competitive-researcher.md +2 -1
- package/src/seed/agents/demo-video-builder.md +98 -87
- package/src/seed/agents/dev-lead.md +3 -3
- package/src/seed/agents/project-home-builder.md +9 -31
- package/src/seed/agents/validator.md +23 -23
- package/dist/assets/AppSettings-DExeJhqQ.js +0 -2
- package/dist/assets/HomeClaudeConfig-CTp2tkZ4.js +0 -3
- package/dist/assets/Scheduler-cyr61UAC.js +0 -16
- package/dist/assets/ViewTabs-DXhOWFG0.js +0 -1
- package/dist/assets/index-B2TQz3nd.js +0 -3121
- package/src/main/lib/epic/epicStateWatcher.cjs +0 -157
package/src/preload/api.d.ts
CHANGED
|
@@ -294,35 +294,6 @@ export type McpCheckResult =
|
|
|
294
294
|
| { ok: true; status: 'connected'; tools: { name: string; description?: string }[]; checkedAt: number }
|
|
295
295
|
| { ok: false; status: 'failed' | 'needs-auth'; error: string; checkedAt: number };
|
|
296
296
|
|
|
297
|
-
/** One session-manager-scheduler MCP tool's catalog entry (src/main/lib/mcpToolCatalog.cjs) —
|
|
298
|
-
* the same data GET /admin/mcp/catalog serves, read in-process for the Dashboard's
|
|
299
|
-
* HomeAgentTools section. */
|
|
300
|
-
export interface McpToolCatalogEntry {
|
|
301
|
-
name: string;
|
|
302
|
-
group: 'scheduler' | 'chat' | 'feedback' | 'help' | 'project-home' | 'macros' | 'customer-feedback' | 'epics' | 'agents' | 'tasks';
|
|
303
|
-
purpose: string;
|
|
304
|
-
/** Plain one-line summary (10-90 chars) — the Dashboard row text. */
|
|
305
|
-
summary: string;
|
|
306
|
-
whenToUse: string;
|
|
307
|
-
whenNotToUse: string;
|
|
308
|
-
exampleArgs: Record<string, unknown>;
|
|
309
|
-
notes: string | null;
|
|
310
|
-
/** Arg groups the handler refuses a call without ('exactly one of'). */
|
|
311
|
-
requiredOneOf?: string[][];
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export interface McpRecipe {
|
|
315
|
-
id: string;
|
|
316
|
-
title: string;
|
|
317
|
-
steps: string[];
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
export interface McpCatalogResult {
|
|
321
|
-
ok: boolean;
|
|
322
|
-
tools: McpToolCatalogEntry[];
|
|
323
|
-
recipes: McpRecipe[];
|
|
324
|
-
}
|
|
325
|
-
|
|
326
297
|
/** Mirrors WorkType (src/main/lib/prd/workTypeLibrary.cjs) / EpicTag (tagLibrary.ts) — the
|
|
327
298
|
* same Epic-mission taxonomy, reused here since an Agent persona's `tags` field is that
|
|
328
299
|
* same concept, not a free-form string list. */
|
|
@@ -389,10 +360,16 @@ export interface MacroJobDispatchInput {
|
|
|
389
360
|
effort?: string;
|
|
390
361
|
/** The press's {{name}} input values; a project Video tool renders its prompt with them. */
|
|
391
362
|
inputValues?: Record<string, string>;
|
|
363
|
+
/** A Demo Video press asking for the review stage: the job stops for a human review before the final save.
|
|
364
|
+
* Omitted or false = straight to the final save. */
|
|
365
|
+
reviewStage?: boolean;
|
|
366
|
+
/** A project Video tool press's picked library voice (voiceLibrary id); beats the tool's default voiceId.
|
|
367
|
+
* Omitted = the tool default, else the persona voice, else the kit default. */
|
|
368
|
+
voiceId?: string;
|
|
392
369
|
}
|
|
393
370
|
|
|
394
371
|
export type MacroJobDispatchResult =
|
|
395
|
-
| { ok: true; slug: string; epicId: string }
|
|
372
|
+
| { ok: true; slug: string; epicId: string; entryId: string | null; stage: 'review' | 'final' | null }
|
|
396
373
|
| { ok: false; error: string; activeSlug?: string };
|
|
397
374
|
|
|
398
375
|
export type MacroJobState = 'queued' | 'running' | 'done' | 'failed';
|
|
@@ -411,6 +388,52 @@ export interface MacroJobStatus {
|
|
|
411
388
|
finishedAt: string | null;
|
|
412
389
|
}
|
|
413
390
|
|
|
391
|
+
/** Kind of a published artifact (lib/epic/artifactStore.cjs KINDS). */
|
|
392
|
+
export type ArtifactKind = 'video' | 'audio' | 'image' | 'doc' | 'data' | 'other';
|
|
393
|
+
|
|
394
|
+
/** Who produced an artifact (artifactStore.cjs cleanProducer). */
|
|
395
|
+
export interface ArtifactProducer {
|
|
396
|
+
epicId: string | null;
|
|
397
|
+
prdSlug: string | null;
|
|
398
|
+
sessionId: string | null;
|
|
399
|
+
taskId: string | null;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/** One artifacts:list row — a ledger entry + its owner folder + the owning Epic's title. */
|
|
403
|
+
export interface ArtifactEntry {
|
|
404
|
+
/** File name inside `artifacts/<ownerId>/`. */
|
|
405
|
+
name: string;
|
|
406
|
+
title?: string | null;
|
|
407
|
+
kind?: ArtifactKind | string;
|
|
408
|
+
/** Bytes. */
|
|
409
|
+
size?: number;
|
|
410
|
+
sha256?: string;
|
|
411
|
+
/** ISO timestamp. */
|
|
412
|
+
createdAt?: string;
|
|
413
|
+
producer?: ArtifactProducer | null;
|
|
414
|
+
/** Epic id, or `_tasks/<task-id>` for Task-owned artifacts. */
|
|
415
|
+
ownerId: string;
|
|
416
|
+
epicTitle: string | null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export type ArtifactsListResult =
|
|
420
|
+
| { ok: true; artifacts: ArtifactEntry[] }
|
|
421
|
+
| { ok: false; error: string };
|
|
422
|
+
|
|
423
|
+
/** One artifacts:worktrees row. `aheadOfBase` = commits on `branch` not on the base; `uncommitted` = `git status --porcelain` lines in the worktree (capped at 999); each null when unknown. */
|
|
424
|
+
export interface ArtifactWorktree {
|
|
425
|
+
epicId: string;
|
|
426
|
+
title: string | null;
|
|
427
|
+
path: string;
|
|
428
|
+
branch: string;
|
|
429
|
+
aheadOfBase: number | null;
|
|
430
|
+
uncommitted: number | null;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export type ArtifactsWorktreesResult =
|
|
434
|
+
| { ok: true; worktrees: ArtifactWorktree[] }
|
|
435
|
+
| { ok: false; error: string };
|
|
436
|
+
|
|
414
437
|
/** One user-defined sidebar HOT KEYS macro (macroLibrary.cjs). `projects` = absolute cwds or `'*'` (every project); a surface `'project-home'` macro is always `['*']` (only its generated artifacts are per project). */
|
|
415
438
|
/** One "Needs you" item an outside app posted (main/lib/feedback-remote/needsYouStore.cjs StoredItemSchema). */
|
|
416
439
|
export interface NeedsYouItem {
|
|
@@ -451,6 +474,8 @@ export interface Macro {
|
|
|
451
474
|
scriptStart?: boolean;
|
|
452
475
|
/** Set on built-ins whose press builds in the background, and on every project Video tool. */
|
|
453
476
|
job?: MacroJob;
|
|
477
|
+
/** A project Home / Video tool's default library voice (macroLibrary); its press preselects it. */
|
|
478
|
+
voiceId?: string;
|
|
454
479
|
}
|
|
455
480
|
|
|
456
481
|
/** Omit `id` to create; set it to update an existing macro. */
|
|
@@ -472,7 +497,7 @@ export interface ToolRiskReadInput {
|
|
|
472
497
|
/** Required (absolute) for scope 'project'. */
|
|
473
498
|
cwd?: string | null;
|
|
474
499
|
}
|
|
475
|
-
export type ToolRiskMark = 'read' | 'write' | 'irreversible' | 'money' | 'public';
|
|
500
|
+
export type ToolRiskMark = 'read' | 'write' | 'confirm' | 'irreversible' | 'money' | 'public';
|
|
476
501
|
export interface ToolRiskReadResult {
|
|
477
502
|
ok: boolean;
|
|
478
503
|
path: string | null;
|
|
@@ -797,6 +822,8 @@ export interface CustomerFeedbackInboxItem {
|
|
|
797
822
|
epicId: string | null;
|
|
798
823
|
/** Screenshot metadata in submission order; `path` = local cache file, null until downloaded. */
|
|
799
824
|
images: { mime: string; bytes: number; path: string | null }[];
|
|
825
|
+
/** Host's opaque widget context (page/marks/console/network), <= 262144 bytes of JSON; untrusted shape. */
|
|
826
|
+
context?: Record<string, unknown> | null;
|
|
800
827
|
}
|
|
801
828
|
|
|
802
829
|
export interface CustomerFeedbackOwnerInfo {
|
|
@@ -804,6 +831,188 @@ export interface CustomerFeedbackOwnerInfo {
|
|
|
804
831
|
projectCwd: string | null;
|
|
805
832
|
}
|
|
806
833
|
|
|
834
|
+
// Website-feedback widgets + their decrypted inbox. Results mirror
|
|
835
|
+
// src/main/lib/feedback-remote/siteFeedbackService.cjs (via siteFeedbackIpc.cjs, which strips
|
|
836
|
+
// secret-named fields); each `*Input` mirrors the same-named zod schema in src/main/ipcSchemas.cjs
|
|
837
|
+
// (SiteFeedbackWidgetCreateInput ↔ siteFeedbackWidgetCreate, …).
|
|
838
|
+
export type SiteFeedbackStatus = 'open' | 'in_progress' | 'resolved' | 'wontfix';
|
|
839
|
+
/** Relay box state; 'unknown' = relay unreadable, 'gone' = relay no longer lists the box. */
|
|
840
|
+
export type SiteFeedbackWidgetState = 'open' | 'paused' | 'unknown' | 'gone' | (string & {});
|
|
841
|
+
export type SiteFeedbackImageKind = 'screenshot' | 'annotated';
|
|
842
|
+
|
|
843
|
+
/** Every siteFeedback call resolves this on failure; relay error codes pass through verbatim. */
|
|
844
|
+
export interface SiteFeedbackFailure {
|
|
845
|
+
ok: false;
|
|
846
|
+
error: string;
|
|
847
|
+
message: string;
|
|
848
|
+
status?: number;
|
|
849
|
+
retryAfterSec?: number;
|
|
850
|
+
}
|
|
851
|
+
export type SiteFeedbackResult<T> = ({ ok: true } & T) | SiteFeedbackFailure;
|
|
852
|
+
|
|
853
|
+
export interface SiteFeedbackWidget {
|
|
854
|
+
boxId: string;
|
|
855
|
+
projectCwd: string;
|
|
856
|
+
fingerprint: string;
|
|
857
|
+
createdAt: string;
|
|
858
|
+
/** The one-line `<script>` embed. */
|
|
859
|
+
snippet: string;
|
|
860
|
+
label: string;
|
|
861
|
+
allowedOrigins: string[];
|
|
862
|
+
state: SiteFeedbackWidgetState;
|
|
863
|
+
/** Envelopes waiting on the relay; null when the relay could not be read. */
|
|
864
|
+
pending: number | null;
|
|
865
|
+
hint: string | null;
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/** updateWidget echoes the relay's view of the box. */
|
|
869
|
+
export interface SiteFeedbackWidgetPatched {
|
|
870
|
+
boxId: string;
|
|
871
|
+
label?: string;
|
|
872
|
+
allowedOrigins?: string[];
|
|
873
|
+
state?: string;
|
|
874
|
+
pending?: number;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
export interface SiteFeedbackSnippet {
|
|
878
|
+
boxId: string;
|
|
879
|
+
fingerprint: string;
|
|
880
|
+
snippet: string;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/** meta.json of one stored item (siteFeedbackInbox.cjs InboxMeta). */
|
|
884
|
+
export interface SiteFeedbackItemMeta {
|
|
885
|
+
hostId: string;
|
|
886
|
+
boxId: string;
|
|
887
|
+
receivedAt: string;
|
|
888
|
+
origin: string;
|
|
889
|
+
status: SiteFeedbackStatus;
|
|
890
|
+
statusNote: string | null;
|
|
891
|
+
epicId: string | null;
|
|
892
|
+
statusChangedAt: string;
|
|
893
|
+
/** The drain's signed-reporter check: true verified, false signature did not match, null / absent claimed by site. */
|
|
894
|
+
reporterVerified?: boolean | null;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/** One inbox row (siteFeedbackInbox.cjs InboxSummary). */
|
|
898
|
+
export interface SiteFeedbackInboxItem extends SiteFeedbackItemMeta {
|
|
899
|
+
title: string;
|
|
900
|
+
type: SiteFeedbackReportType | (string & {});
|
|
901
|
+
reporter: { id: string; name: string | null; email: string | null } | null;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export type SiteFeedbackReportType = 'bug' | 'feature' | 'other';
|
|
905
|
+
export type SiteFeedbackMarkColor = '#a83818' | '#f4b942' | '#2e5a3e' | '#1a1612';
|
|
906
|
+
|
|
907
|
+
export interface SiteFeedbackElementInfo {
|
|
908
|
+
selector: string;
|
|
909
|
+
label?: string;
|
|
910
|
+
tag: string;
|
|
911
|
+
id?: string;
|
|
912
|
+
classes?: string[];
|
|
913
|
+
text?: string;
|
|
914
|
+
role?: string;
|
|
915
|
+
ariaLabel?: string;
|
|
916
|
+
xpath?: string;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
export type SiteFeedbackMark =
|
|
920
|
+
| { kind: 'pin'; n: number; x: number; y: number; color: SiteFeedbackMarkColor; note: string }
|
|
921
|
+
| { kind: 'box'; n: number; x: number; y: number; w: number; h: number; color: SiteFeedbackMarkColor; note: string }
|
|
922
|
+
| {
|
|
923
|
+
kind: 'element'; n: number; x: number; y: number; w: number; h: number;
|
|
924
|
+
color: SiteFeedbackMarkColor; note: string; element: SiteFeedbackElementInfo;
|
|
925
|
+
}
|
|
926
|
+
| { kind: 'arrow'; x1: number; y1: number; x2: number; y2: number; color: SiteFeedbackMarkColor }
|
|
927
|
+
| { kind: 'draw'; points: [number, number][]; color: SiteFeedbackMarkColor }
|
|
928
|
+
| { kind: 'text'; x: number; y: number; text: string; color: SiteFeedbackMarkColor };
|
|
929
|
+
|
|
930
|
+
/** Report v1 as stored (feedbackReport.cjs reportSchema / web/feedback-widget/schema/report.v1.json). */
|
|
931
|
+
export interface SiteFeedbackReport {
|
|
932
|
+
schemaVersion: 1;
|
|
933
|
+
clientReportId: string;
|
|
934
|
+
project: string;
|
|
935
|
+
type: SiteFeedbackReportType;
|
|
936
|
+
title: string;
|
|
937
|
+
details: string;
|
|
938
|
+
createdAt: string;
|
|
939
|
+
page: {
|
|
940
|
+
url: string;
|
|
941
|
+
title: string;
|
|
942
|
+
viewport: { width: number; height: number; devicePixelRatio: number; scrollX: number; scrollY: number };
|
|
943
|
+
};
|
|
944
|
+
screenshot: { part: 'screenshot'; annotatedPart: 'annotated'; width: number; height: number; scale: number };
|
|
945
|
+
marks: SiteFeedbackMark[];
|
|
946
|
+
console:
|
|
947
|
+
| { level: 'error'; message: string; stack?: string; source?: string; timestamp: string; count: number }[]
|
|
948
|
+
| null;
|
|
949
|
+
network:
|
|
950
|
+
| { method: string; url: string; status: number | 'network-error' | 'timeout'; durationMs: number; timestamp: string }[]
|
|
951
|
+
| null;
|
|
952
|
+
user: { id: string; name?: string; email?: string; [k: string]: unknown } | null;
|
|
953
|
+
client: { widgetVersion: string; captureError?: string };
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/** One item in full (siteFeedbackInbox.cjs get()). `report` is null when report.json is unreadable. */
|
|
957
|
+
export interface SiteFeedbackItemDetail {
|
|
958
|
+
meta: SiteFeedbackItemMeta;
|
|
959
|
+
report: SiteFeedbackReport | null;
|
|
960
|
+
/** Local file paths; null when that image is absent. Use inboxImage to display one. */
|
|
961
|
+
imagePaths: { screenshot: string | null; annotated: string | null };
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
export interface SiteFeedbackDrainResult {
|
|
965
|
+
stored: number;
|
|
966
|
+
duplicates: number;
|
|
967
|
+
rejected: number;
|
|
968
|
+
goneBoxes: string[];
|
|
969
|
+
heldBoxes: string[];
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export interface SiteFeedbackWidgetCreateInput {
|
|
973
|
+
cwd: string;
|
|
974
|
+
label: string;
|
|
975
|
+
allowedOrigins: string[];
|
|
976
|
+
}
|
|
977
|
+
export interface SiteFeedbackWidgetListInput {
|
|
978
|
+
cwd?: string;
|
|
979
|
+
}
|
|
980
|
+
export interface SiteFeedbackWidgetUpdateInput {
|
|
981
|
+
boxId: string;
|
|
982
|
+
label?: string;
|
|
983
|
+
allowedOrigins?: string[];
|
|
984
|
+
state?: 'open' | 'paused';
|
|
985
|
+
}
|
|
986
|
+
export interface SiteFeedbackWidgetBoxInput {
|
|
987
|
+
boxId: string;
|
|
988
|
+
}
|
|
989
|
+
export interface SiteFeedbackInboxListInput {
|
|
990
|
+
cwd: string;
|
|
991
|
+
status?: SiteFeedbackStatus;
|
|
992
|
+
}
|
|
993
|
+
export interface SiteFeedbackInboxGetInput {
|
|
994
|
+
cwd: string;
|
|
995
|
+
/** `FB-` + 5 of [0-9A-Z]. */
|
|
996
|
+
hostId: string;
|
|
997
|
+
}
|
|
998
|
+
export interface SiteFeedbackInboxImageInput {
|
|
999
|
+
cwd: string;
|
|
1000
|
+
hostId: string;
|
|
1001
|
+
/** Default 'annotated'. */
|
|
1002
|
+
which?: SiteFeedbackImageKind;
|
|
1003
|
+
}
|
|
1004
|
+
export interface SiteFeedbackInboxSetStatusInput {
|
|
1005
|
+
cwd: string;
|
|
1006
|
+
hostId: string;
|
|
1007
|
+
status: SiteFeedbackStatus;
|
|
1008
|
+
note?: string | null;
|
|
1009
|
+
}
|
|
1010
|
+
export interface SiteFeedbackInboxLinkEpicInput {
|
|
1011
|
+
cwd: string;
|
|
1012
|
+
hostId: string;
|
|
1013
|
+
epicId: string;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
807
1016
|
// Product telemetry (bilko.run) — anonymous, on-by-default, opt-out. See
|
|
808
1017
|
// session-manager-operations/architecture/telemetry.md for the data model.
|
|
809
1018
|
export interface TelemetryConfig {
|
|
@@ -892,10 +1101,22 @@ export interface ScheduleJobRuntime {
|
|
|
892
1101
|
}
|
|
893
1102
|
|
|
894
1103
|
export interface ScheduleJob {
|
|
1104
|
+
/**
|
|
1105
|
+
* True when a human cancelled this row. Set only by main in the schedule:state
|
|
1106
|
+
* payload, from lib/scheduler/cancelledRow.cjs isCancelledRow — the renderer
|
|
1107
|
+
* must read this and never re-derive the rule. Never stored in queue.json.
|
|
1108
|
+
*/
|
|
1109
|
+
cancelled?: boolean;
|
|
895
1110
|
macroId?: string | null;
|
|
1111
|
+
/** Content id of the AgentSnapshot the first dispatch pinned; a resume re-runs it, never the live persona. */
|
|
1112
|
+
agentSnapshotId?: string;
|
|
1113
|
+
/** Validator only: dispatch-time { ids, failedIds } per judged PRD; the verdict is cross-checked against it, never a re-run. */
|
|
1114
|
+
validatorCriteriaExpected?: Record<string, { ids: string[]; failedIds: string[] }>;
|
|
896
1115
|
/** PRD frontmatter artifact-only declaration (PRD 3114). */
|
|
897
1116
|
deliverable?: 'artifact' | null;
|
|
898
1117
|
artifactPaths?: string[] | null;
|
|
1118
|
+
/** PRD frontmatter library voice (in-process only); handed to the job as SM_VOICE_ID. */
|
|
1119
|
+
voiceId?: string | null;
|
|
899
1120
|
slug: string;
|
|
900
1121
|
title: string;
|
|
901
1122
|
cwd: string | null;
|
|
@@ -984,6 +1205,16 @@ export interface ScheduleJob {
|
|
|
984
1205
|
* lost — set whenever the commit-guard's worktree or in-place salvage
|
|
985
1206
|
* pass produced one (PRD 1098). */
|
|
986
1207
|
salvagePatch?: string | null;
|
|
1208
|
+
/** Artifact evidence spawnJob captured for a declared artifact-only PRD
|
|
1209
|
+
* before its job worktree was removed, bound to the capturing run's
|
|
1210
|
+
* `runId`; the stale needs_review rescan reuses it only for that run. */
|
|
1211
|
+
artifactEvidence?: {
|
|
1212
|
+
runId: string;
|
|
1213
|
+
ok: boolean;
|
|
1214
|
+
verified: unknown[];
|
|
1215
|
+
paths: string[];
|
|
1216
|
+
capturedAt: string;
|
|
1217
|
+
} | null;
|
|
987
1218
|
/** Commit + ref pinning a reaped run's uncommitted checkout work before the checkout was lost (PRD 2892). */
|
|
988
1219
|
uncommittedSnapshot?: { sha: string; ref: string };
|
|
989
1220
|
/** Why a pending row is not being dispatched this tick (worktree cap, launch circuit breaker). */
|
|
@@ -1183,7 +1414,7 @@ export interface ScheduleLaunchMitigation {
|
|
|
1183
1414
|
* Every field is computed by tickQueue; nothing here is derived in the UI. */
|
|
1184
1415
|
export interface ScheduleLastTick {
|
|
1185
1416
|
fired: boolean;
|
|
1186
|
-
reason: 'held' | 'slots-exhausted' | 'memory-deferred' | 'already-running' | 'drained' | 'paused' | string;
|
|
1417
|
+
reason: 'held' | 'slots-exhausted' | 'memory-deferred' | 'already-running' | 'drained' | 'paused' | 'utilization-held' | 'manual-fire-policy' | 'usage-meter-degraded' | 'load-deferred' | string;
|
|
1187
1418
|
/** Human-readable one-liner for the binding constraint, when there is one. */
|
|
1188
1419
|
detail?: string;
|
|
1189
1420
|
deferredCount?: number;
|
|
@@ -1236,6 +1467,8 @@ export interface ScheduleStateSnapshot {
|
|
|
1236
1467
|
utilizationWindow?: string | null;
|
|
1237
1468
|
/** Non-null while the when-available gate is holding the queue on utilization: which window, and its reset. */
|
|
1238
1469
|
utilizationHold?: { window: string | null; percent: number; threshold: number; resetsAt: string | null } | null;
|
|
1470
|
+
/** Pro-rated 'pause above' for the binding window of the last known reading (rises from config.utilizationThreshold to 100 as the window nears reset). null with no known reading. */
|
|
1471
|
+
effectiveUtilizationThreshold?: number | null;
|
|
1239
1472
|
/** Poll health — last billing poll result; used to detect stale utilization. */
|
|
1240
1473
|
pollHealth?: SchedulePollHealth;
|
|
1241
1474
|
/** Effective concurrency cap and whether it's env-pinned or config-driven. */
|
|
@@ -1550,8 +1783,14 @@ export type TaskGetResult =
|
|
|
1550
1783
|
| { ok: true; task: TaskDetail | null }
|
|
1551
1784
|
| { ok: false; error: string };
|
|
1552
1785
|
|
|
1786
|
+
/** Who made the last change to a project's 'Scripts may run Tasks' switch (taskSwitch.cjs). */
|
|
1787
|
+
export type TaskSwitchBy =
|
|
1788
|
+
| { via: 'ui' }
|
|
1789
|
+
| { via: 'agent'; claudeSessionId: string; quote: string; promptAt: string }
|
|
1790
|
+
| { via: 'unknown' };
|
|
1791
|
+
|
|
1553
1792
|
export type TaskGetSwitchResult =
|
|
1554
|
-
| { ok: true; enabled: boolean }
|
|
1793
|
+
| { ok: true; enabled: boolean; changedAt?: string | null; by?: TaskSwitchBy | null }
|
|
1555
1794
|
| { ok: false; error: string };
|
|
1556
1795
|
|
|
1557
1796
|
export type TaskSetSwitchResult =
|
|
@@ -1869,7 +2108,9 @@ export interface ProjectPageMeta {
|
|
|
1869
2108
|
export interface ProjectVideoMeta {
|
|
1870
2109
|
id: string;
|
|
1871
2110
|
title: string;
|
|
1872
|
-
kind: 'project-demo' | 'blog-post' | 'feature' | 'episode';
|
|
2111
|
+
kind: 'project-demo' | 'blog-post' | 'feature' | 'episode' | 'tiktok' | 'marketing';
|
|
2112
|
+
/** TikTok post copy (caption 1-150 chars, audience 1-200 chars); absent on other kinds and older entries. */
|
|
2113
|
+
post?: { caption: string; audience: string };
|
|
1873
2114
|
/** Frame shape from the document's sm-demo-aspect tag; absent on older entries (treat as '16:9'). */
|
|
1874
2115
|
aspect?: '16:9' | '9:16';
|
|
1875
2116
|
/** The `Video target:` text the video was built for (a post path or URL, or a feature name); absent for a Project demo. */
|
|
@@ -1901,9 +2142,25 @@ export interface ProjectLibraryEntry<M> {
|
|
|
1901
2142
|
mtimeMs: number;
|
|
1902
2143
|
meta: M | null;
|
|
1903
2144
|
error: string | null;
|
|
2145
|
+
/** Video entries only: absolute paths of the exported videos/<id>/video.mp4 and poster.png, null when absent. */
|
|
2146
|
+
exports?: { mp4: string | null; poster: string | null };
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
/** A video run that ended without a video by design (videos/<id>/outcome.json, no index.html). */
|
|
2150
|
+
export interface ProjectVideoOutcome {
|
|
2151
|
+
id: string;
|
|
2152
|
+
outcome: 'season-complete';
|
|
2153
|
+
/** The one-line text the run saved. */
|
|
2154
|
+
text: string;
|
|
2155
|
+
/** ISO time the outcome was recorded. */
|
|
2156
|
+
at: string;
|
|
1904
2157
|
}
|
|
1905
2158
|
|
|
1906
2159
|
export interface ProjectPagesGetResult {
|
|
2160
|
+
/** Video outcomes, newest first; absent when there are none. */
|
|
2161
|
+
outcomes?: ProjectVideoOutcome[];
|
|
2162
|
+
/** The project's saved persona (videos/_character), or null when none/invalid. */
|
|
2163
|
+
persona?: { name: string } | null;
|
|
1907
2164
|
/** Knowledge pages, newest first. */
|
|
1908
2165
|
knowledge: ProjectLibraryEntry<ProjectPageMeta>[];
|
|
1909
2166
|
/** Videos, newest first. */
|
|
@@ -2012,6 +2269,108 @@ export type VideoReviewRetryResult =
|
|
|
2012
2269
|
| { ok: true; slug: string; epicId: string; entryId?: string | null; stage?: string }
|
|
2013
2270
|
| { ok: false; error: string; activeSlug?: string };
|
|
2014
2271
|
|
|
2272
|
+
// ────────────────────────────────────────────── Project Pages: 'Scripts may run Demo Video' switch
|
|
2273
|
+
// Mirrors src/main/lib/project-pages/videoScriptPress.cjs (getVideoScriptSwitch) and
|
|
2274
|
+
// src/main/lib/project-pages/videoScriptSwitchIpc.cjs (videos:script-switch-get / script-switch-set).
|
|
2275
|
+
|
|
2276
|
+
export interface VideoScriptSwitchGetPayload {
|
|
2277
|
+
cwd: string;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2280
|
+
export interface VideoScriptSwitchSetPayload {
|
|
2281
|
+
cwd: string;
|
|
2282
|
+
enabled: boolean;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
/** One project's switch; changedAt/by are null when it was never set. Same attribution shape as TaskSwitchBy. */
|
|
2286
|
+
export interface VideoScriptSwitchState {
|
|
2287
|
+
enabled: boolean;
|
|
2288
|
+
changedAt: string | null;
|
|
2289
|
+
by: TaskSwitchBy | null;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
// ────────────────────────────────────────────── Voices screen
|
|
2293
|
+
// Mirrors src/main/lib/demo-video-kit/voiceLibrary.cjs (listVoices) and
|
|
2294
|
+
// src/main/lib/project-pages/voicesIpc.cjs (voices:list / preview / approve / unapprove / delete).
|
|
2295
|
+
// voicesIpc is the ONLY writer of voice approvals and deletions; renderer IPC only.
|
|
2296
|
+
|
|
2297
|
+
export type VoiceScope = 'project' | 'machine' | 'builtin';
|
|
2298
|
+
|
|
2299
|
+
export interface VoiceLastPreview {
|
|
2300
|
+
/** ISO time the newest preview of this voice in this project left the voice lane. */
|
|
2301
|
+
at: string | null;
|
|
2302
|
+
wallMs: number | null;
|
|
2303
|
+
audioSeconds: number | null;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
export interface VoiceLaneTicket {
|
|
2307
|
+
voiceId: string | null;
|
|
2308
|
+
label: string | null;
|
|
2309
|
+
projectRoot: string | null;
|
|
2310
|
+
pid: number;
|
|
2311
|
+
since: string;
|
|
2312
|
+
/** 0 = currently speaking. */
|
|
2313
|
+
position: number;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
export interface VoiceLibraryEntry {
|
|
2317
|
+
id: string;
|
|
2318
|
+
label: string;
|
|
2319
|
+
voice: Record<string, unknown>;
|
|
2320
|
+
engine: string;
|
|
2321
|
+
sampleText: string;
|
|
2322
|
+
licence: string;
|
|
2323
|
+
heavy: boolean;
|
|
2324
|
+
pinFiles?: string[];
|
|
2325
|
+
scope: VoiceScope;
|
|
2326
|
+
/** Absent on built-ins. */
|
|
2327
|
+
file?: string;
|
|
2328
|
+
/** Built-ins only: whether the Kokoro model is installed. */
|
|
2329
|
+
installed?: boolean;
|
|
2330
|
+
approved: boolean;
|
|
2331
|
+
/** False when approved but the voice changed since approval (the voice is refused until re-approved). */
|
|
2332
|
+
pinOk: boolean;
|
|
2333
|
+
lastPreview: VoiceLastPreview | null;
|
|
2334
|
+
inLane: { lane: string; position: number } | null;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
export interface VoicesListResult {
|
|
2338
|
+
voices: VoiceLibraryEntry[];
|
|
2339
|
+
errors: Array<{ file: string; error: string }>;
|
|
2340
|
+
/** voiceLane.laneSnapshot(): live tickets per lane ('heavy' | 'light'). */
|
|
2341
|
+
lane: Record<string, VoiceLaneTicket[]>;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
export interface VoicesListPayload {
|
|
2345
|
+
cwd: string;
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
export interface VoicesPreviewPayload {
|
|
2349
|
+
cwd: string;
|
|
2350
|
+
voiceId: string;
|
|
2351
|
+
/** 1-300 chars after trimming. */
|
|
2352
|
+
text: string;
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
export type VoicesPreviewResult =
|
|
2356
|
+
| { ok: true; cached: boolean; wavPath: string; bytes: Uint8Array }
|
|
2357
|
+
| { ok: false; error: string };
|
|
2358
|
+
|
|
2359
|
+
export interface VoicesVoicePayload {
|
|
2360
|
+
cwd: string;
|
|
2361
|
+
voiceId: string;
|
|
2362
|
+
}
|
|
2363
|
+
|
|
2364
|
+
export type VoicesApproveResult =
|
|
2365
|
+
| { ok: true; voiceId: string; scope: 'project' | 'machine'; pin: string; approvedAt: string }
|
|
2366
|
+
| { ok: false; error: string };
|
|
2367
|
+
|
|
2368
|
+
export type VoicesUnapproveResult = { ok: true; voiceId: string } | { ok: false; error: string };
|
|
2369
|
+
|
|
2370
|
+
export type VoicesDeleteResult =
|
|
2371
|
+
| { ok: true; voiceId: string; scope: 'project' | 'machine'; file: string }
|
|
2372
|
+
| { ok: false; error: string };
|
|
2373
|
+
|
|
2015
2374
|
// ────────────────────────────────────────────── Project Pages: markdown link network
|
|
2016
2375
|
// Mirrors the JSDoc typedefs of the same names in src/main/lib/mdNetworkScan.cjs.
|
|
2017
2376
|
// Every path is repo-relative POSIX.
|
|
@@ -2508,6 +2867,12 @@ export interface ChatExternalNewSessionResult {
|
|
|
2508
2867
|
/** The minted Epic's id when `ok`. */
|
|
2509
2868
|
epicId?: string;
|
|
2510
2869
|
error?: string;
|
|
2870
|
+
/** Project Home entry id of the background build queued for a scripted job press (Demo Video). */
|
|
2871
|
+
entryId?: string;
|
|
2872
|
+
/** That build's slug. */
|
|
2873
|
+
slug?: string;
|
|
2874
|
+
/** That build's stage; null when it has none. */
|
|
2875
|
+
stage?: 'review' | 'final' | null;
|
|
2511
2876
|
}
|
|
2512
2877
|
|
|
2513
2878
|
export type CreateProjectFolderResult =
|
|
@@ -2558,6 +2923,75 @@ export interface WebRemoteMutationResult {
|
|
|
2558
2923
|
error?: string;
|
|
2559
2924
|
}
|
|
2560
2925
|
|
|
2926
|
+
/** Tool names a paired service may be scoped to (servicePairings.cjs SERVICE_TOOL_NAMES). */
|
|
2927
|
+
export type WebRemoteServiceTool =
|
|
2928
|
+
| 'feedback_list_projects'
|
|
2929
|
+
| 'feedback_open_session'
|
|
2930
|
+
| 'macro_list'
|
|
2931
|
+
| 'macro_run'
|
|
2932
|
+
| 'epic_get'
|
|
2933
|
+
| 'events_read';
|
|
2934
|
+
|
|
2935
|
+
/** A paired service as the renderer sees it (its pinned key is never returned). */
|
|
2936
|
+
export interface WebRemoteService {
|
|
2937
|
+
serviceId: string;
|
|
2938
|
+
name: string;
|
|
2939
|
+
homeCwd: string;
|
|
2940
|
+
scope: WebRemoteServiceTool[];
|
|
2941
|
+
relayClientId: string | null;
|
|
2942
|
+
pairedAt: number;
|
|
2943
|
+
lastSeenAt: number;
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
export interface WebRemotePendingService {
|
|
2947
|
+
pairingId: string;
|
|
2948
|
+
name: string;
|
|
2949
|
+
homeCwd: string;
|
|
2950
|
+
scope: WebRemoteServiceTool[];
|
|
2951
|
+
createdAt: number;
|
|
2952
|
+
expiresAt: number;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
/** A relay client no local service owns. */
|
|
2956
|
+
export interface WebRemoteRelayOrphan {
|
|
2957
|
+
clientId: string;
|
|
2958
|
+
clientName: string;
|
|
2959
|
+
issuedAt: string | number | null;
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
export interface WebRemoteServicesListResult {
|
|
2963
|
+
ok: true;
|
|
2964
|
+
services: WebRemoteService[];
|
|
2965
|
+
pending: WebRemotePendingService[];
|
|
2966
|
+
relayOrphans: WebRemoteRelayOrphan[];
|
|
2967
|
+
/** Set when the relay client list could not be read (relayOrphans is then []). */
|
|
2968
|
+
relayError?: string;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
/** Mirrors zod webRemoteServicePairStart. */
|
|
2972
|
+
export interface WebRemoteServicePairStartInput {
|
|
2973
|
+
name: string;
|
|
2974
|
+
homeCwd: string;
|
|
2975
|
+
scope: WebRemoteServiceTool[];
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
export type WebRemoteServicePairStartResult =
|
|
2979
|
+
| { ok: true; code: string; pairingId: string; codeExpiresAt: number; deviceId: string }
|
|
2980
|
+
| { ok: false; error: 'relay_unsupported' | 'device_token_invalid' | 'rate_limited' | 'no_paired_device' | (string & {}) };
|
|
2981
|
+
|
|
2982
|
+
export type WebRemoteServiceConfirmSasResult =
|
|
2983
|
+
| { ok: true; service: WebRemoteService }
|
|
2984
|
+
| { ok: false; error: string };
|
|
2985
|
+
|
|
2986
|
+
/** webRemote.cjs servicePairCancel: `cancelled` = a pending pairing was dropped; `dropped` = waiting clients torn down. */
|
|
2987
|
+
export type WebRemoteServicePairCancelResult =
|
|
2988
|
+
| { ok: true; cancelled: boolean; dropped: number }
|
|
2989
|
+
| { ok: false; error: string };
|
|
2990
|
+
|
|
2991
|
+
export type WebRemoteServiceRevokeResult =
|
|
2992
|
+
| { ok: true; relayRevoked: boolean }
|
|
2993
|
+
| { ok: false; error: string };
|
|
2994
|
+
|
|
2561
2995
|
export interface WebRemoteAuditTailResult {
|
|
2562
2996
|
ok: boolean;
|
|
2563
2997
|
lines?: string[];
|
|
@@ -2660,7 +3094,6 @@ export interface SessionManagerAPI {
|
|
|
2660
3094
|
};
|
|
2661
3095
|
mcp: {
|
|
2662
3096
|
status: () => Promise<McpStatusResult>;
|
|
2663
|
-
catalog: () => Promise<McpCatalogResult>;
|
|
2664
3097
|
/** Desktop-only: the web remote is denied it (apiSurface remote: deny) — it spawns the server. */
|
|
2665
3098
|
checkServer: (req: McpCheckRequest) => Promise<McpCheckResult>;
|
|
2666
3099
|
};
|
|
@@ -2746,6 +3179,8 @@ export interface SessionManagerAPI {
|
|
|
2746
3179
|
list: () => Promise<{ ok: true; items: NeedsYouItem[] }>;
|
|
2747
3180
|
/** Answer one open item with one of its options; `ok: false` + error in words when no such open item/option. */
|
|
2748
3181
|
answer: (payload: { app: string; id: string; answer: string }) => Promise<{ ok: true; item: NeedsYouItem } | { ok: false; error: string }>;
|
|
3182
|
+
/** IPC 'scheduler:confirm-tool': answer a tool-risk 'confirm' item (app 'tool-risk') by tool + sha256 args digest. Approve resumes the asking job's same session with a single-use clearance; Deny parks it (confirmation_denied). Applied on the scheduler's next tick. */
|
|
3183
|
+
confirmTool: (payload: { tool: string; argsDigest: string; approved: boolean }) => Promise<{ ok: true; item: NeedsYouItem } | { ok: false; error: string }>;
|
|
2749
3184
|
/** Fires after any post/withdraw/answer — re-fetch list(). */
|
|
2750
3185
|
onChanged: (handler: () => void) => () => void;
|
|
2751
3186
|
};
|
|
@@ -2892,6 +3327,45 @@ export interface SessionManagerAPI {
|
|
|
2892
3327
|
{ ok: true; dataUrl: string } | { ok: false; error: string }
|
|
2893
3328
|
>;
|
|
2894
3329
|
};
|
|
3330
|
+
/** File Explorer reads of a project's Artifacts store and unmerged Epic worktrees (lib/epic/artifactIpc.cjs). Read-only. */
|
|
3331
|
+
artifacts: {
|
|
3332
|
+
/** Ledger entries of every owner, newest first, each joined with its Epic's title (null for Tasks / unknown). */
|
|
3333
|
+
list: (p: { cwd: string }) => Promise<ArtifactsListResult>;
|
|
3334
|
+
/** Active Epics of `cwd` with an on-disk, git-registered worktree. */
|
|
3335
|
+
worktrees: (p: { cwd: string }) => Promise<ArtifactsWorktreesResult>;
|
|
3336
|
+
};
|
|
3337
|
+
/** Website-feedback widgets + inbox (siteFeedbackIpc.cjs), one method per channel. */
|
|
3338
|
+
siteFeedback: {
|
|
3339
|
+
widgetCreate: (p: SiteFeedbackWidgetCreateInput) => Promise<
|
|
3340
|
+
SiteFeedbackResult<{ boxId: string; fingerprint: string; snippet: string }>
|
|
3341
|
+
>;
|
|
3342
|
+
/** Relay unreadable → ok with `relayError` and widgets in state 'unknown'. */
|
|
3343
|
+
widgetList: (p?: SiteFeedbackWidgetListInput) => Promise<
|
|
3344
|
+
SiteFeedbackResult<{ widgets: SiteFeedbackWidget[]; relayError?: SiteFeedbackFailure }>
|
|
3345
|
+
>;
|
|
3346
|
+
widgetUpdate: (p: SiteFeedbackWidgetUpdateInput) => Promise<
|
|
3347
|
+
SiteFeedbackResult<{ widget: SiteFeedbackWidgetPatched }>
|
|
3348
|
+
>;
|
|
3349
|
+
widgetDelete: (p: SiteFeedbackWidgetBoxInput) => Promise<SiteFeedbackResult<{ boxId: string }>>;
|
|
3350
|
+
widgetSnippet: (p: SiteFeedbackWidgetBoxInput) => Promise<SiteFeedbackResult<SiteFeedbackSnippet>>;
|
|
3351
|
+
inboxList: (p: SiteFeedbackInboxListInput) => Promise<
|
|
3352
|
+
SiteFeedbackResult<{ items: SiteFeedbackInboxItem[] }>
|
|
3353
|
+
>;
|
|
3354
|
+
inboxGet: (p: SiteFeedbackInboxGetInput) => Promise<SiteFeedbackResult<{ item: SiteFeedbackItemDetail }>>;
|
|
3355
|
+
/** A PNG data URL — never log it. */
|
|
3356
|
+
inboxImage: (p: SiteFeedbackInboxImageInput) => Promise<
|
|
3357
|
+
SiteFeedbackResult<{ hostId: string; which: SiteFeedbackImageKind; dataUrl: string }>
|
|
3358
|
+
>;
|
|
3359
|
+
inboxSetStatus: (p: SiteFeedbackInboxSetStatusInput) => Promise<
|
|
3360
|
+
SiteFeedbackResult<{ meta: SiteFeedbackItemMeta }>
|
|
3361
|
+
>;
|
|
3362
|
+
inboxLinkEpic: (p: SiteFeedbackInboxLinkEpicInput) => Promise<
|
|
3363
|
+
SiteFeedbackResult<{ meta: SiteFeedbackItemMeta }>
|
|
3364
|
+
>;
|
|
3365
|
+
/** Deletes one stored item (report, images, meta); not_found when it was already gone. */
|
|
3366
|
+
inboxRemove: (p: SiteFeedbackInboxGetInput) => Promise<SiteFeedbackResult<{ hostId: string }>>;
|
|
3367
|
+
drainNow: () => Promise<SiteFeedbackResult<SiteFeedbackDrainResult>>;
|
|
3368
|
+
};
|
|
2895
3369
|
telemetry: {
|
|
2896
3370
|
getConfig: () => Promise<TelemetryConfig>;
|
|
2897
3371
|
setConfig: (cfg: TelemetryConfig) => Promise<TelemetrySetConfigResult>;
|
|
@@ -3126,9 +3600,25 @@ export interface SessionManagerAPI {
|
|
|
3126
3600
|
reviewDecide: (payload: VideoReviewDecidePayload) => Promise<VideoReviewDecideResult>;
|
|
3127
3601
|
/** Re-dispatch the final stage of an approved entry whose final run failed (canRetry), reusing the recorded approval and inputs. Desktop only (never via the phone relay); one in-flight decide/retry per entry. */
|
|
3128
3602
|
reviewRetry: (payload: VideoReviewRetryPayload) => Promise<VideoReviewRetryResult>;
|
|
3603
|
+
/** Read this project's 'Scripts may run Demo Video' switch; off with null changedAt/by when never set. Rejects on an invalid cwd. */
|
|
3604
|
+
scriptSwitchGet: (payload: VideoScriptSwitchGetPayload) => Promise<VideoScriptSwitchState>;
|
|
3605
|
+
/** A human click: turn the switch on/off, recorded as by { via: 'ui' } plus one audit event. Desktop only. Rejects on a bad payload. */
|
|
3606
|
+
scriptSwitchSet: (payload: VideoScriptSwitchSetPayload) => Promise<VideoScriptSwitchState>;
|
|
3129
3607
|
/** Fires whenever a watched cwd's knowledge/videos library is added/changed/removed, carrying the freshly read library result. */
|
|
3130
3608
|
onChanged: (handler: (payload: { cwd: string } & ProjectPagesGetResult) => void) => () => void;
|
|
3131
3609
|
};
|
|
3610
|
+
voices: {
|
|
3611
|
+
/** Every library voice the project can use (project, machine, built-in) with approval state, last-preview stats and the live voice lane. Read-only. */
|
|
3612
|
+
list: (payload: VoicesListPayload) => Promise<VoicesListResult>;
|
|
3613
|
+
/** Speak `text` in one voice (cached clip, else waits in the voice lane). Desktop only. */
|
|
3614
|
+
preview: (payload: VoicesPreviewPayload) => Promise<VoicesPreviewResult>;
|
|
3615
|
+
/** Approve a project or machine voice at its current pin; refuses built-ins. Desktop only — the only approval writer. */
|
|
3616
|
+
approve: (payload: VoicesVoicePayload) => Promise<VoicesApproveResult>;
|
|
3617
|
+
/** Remove a voice's approval. Desktop only. */
|
|
3618
|
+
unapprove: (payload: VoicesVoicePayload) => Promise<VoicesUnapproveResult>;
|
|
3619
|
+
/** Delete the effective project or machine voice file; refuses an approved voice and a built-in. Desktop only. */
|
|
3620
|
+
delete: (payload: VoicesVoicePayload) => Promise<VoicesDeleteResult>;
|
|
3621
|
+
};
|
|
3132
3622
|
promptSessionTranscript: {
|
|
3133
3623
|
/** Append one full-text turn to an Epic's durable JSONL transcript. Best-effort — resolves `{ok:false}` rather than throwing on failure. */
|
|
3134
3624
|
append: (
|
|
@@ -3156,8 +3646,8 @@ export interface SessionManagerAPI {
|
|
|
3156
3646
|
* Kind allowlist is enforced main-side (ipcSchemas.cjs) — this channel is
|
|
3157
3647
|
* append-only, no read/list IPC exists. */
|
|
3158
3648
|
append: (
|
|
3159
|
-
kind: 'epic_create' | 'epic_approve' | 'epic_complete' | 'epic_delete' | 'epic_resume' | 'epic_duplicate' | 'epic_draft_update'
|
|
3160
|
-
fields: { cwd: string; epicId: string; source: string
|
|
3649
|
+
kind: 'epic_create' | 'epic_approve' | 'epic_complete' | 'epic_delete' | 'epic_resume' | 'epic_duplicate' | 'epic_draft_update',
|
|
3650
|
+
fields: { cwd: string; epicId: string; source: string },
|
|
3161
3651
|
) => Promise<{ ok: boolean }>;
|
|
3162
3652
|
};
|
|
3163
3653
|
git: {
|
|
@@ -3209,6 +3699,18 @@ export interface SessionManagerAPI {
|
|
|
3209
3699
|
* E2E session as authenticated and unblocks MUTATE-tier commands. Pass the
|
|
3210
3700
|
* client's `key` when several clients are pending (else `ambiguous_pending_sas`). */
|
|
3211
3701
|
confirmSas: (clientKey?: string) => Promise<WebRemoteMutationResult>;
|
|
3702
|
+
/** Paired + pending services (no keys or tokens) plus relay orphans. */
|
|
3703
|
+
servicesList: () => Promise<WebRemoteServicesListResult>;
|
|
3704
|
+
/** One-time relay client code (8 chars, 5 minutes) + a pending pairing. */
|
|
3705
|
+
servicePairStart: (input: WebRemoteServicePairStartInput) => Promise<WebRemoteServicePairStartResult>;
|
|
3706
|
+
/** Confirm a pending service's 6-digit SAS. */
|
|
3707
|
+
serviceConfirmSas: (pairingId: string, sas: string) => Promise<WebRemoteServiceConfirmSasResult>;
|
|
3708
|
+
/** Cancel a pending pairing and drop its waiting service client. */
|
|
3709
|
+
servicePairCancel: (pairingId: string) => Promise<WebRemoteServicePairCancelResult>;
|
|
3710
|
+
/** Revoke a paired service locally and at the relay (relay failure still revokes locally). */
|
|
3711
|
+
serviceRevoke: (serviceId: string) => Promise<WebRemoteServiceRevokeResult>;
|
|
3712
|
+
/** Revoke an orphaned relay client. */
|
|
3713
|
+
relayClientRevoke: (clientId: string) => Promise<WebRemoteMutationResult>;
|
|
3212
3714
|
};
|
|
3213
3715
|
chat: {
|
|
3214
3716
|
/** Spawn a headless `claude -p` run for a tab. Results arrive via the on* listeners. */
|
|
@@ -3247,6 +3749,8 @@ export interface SessionManagerAPI {
|
|
|
3247
3749
|
requestId?: string;
|
|
3248
3750
|
via?: 'script';
|
|
3249
3751
|
effort?: string;
|
|
3752
|
+
/** Scripted job press: build a review cut first. */
|
|
3753
|
+
reviewStage?: boolean;
|
|
3250
3754
|
}) => void,
|
|
3251
3755
|
) => () => void;
|
|
3252
3756
|
/** Classify a queued PromptTicket's text as 'inline' (run through
|
|
@@ -3317,10 +3821,39 @@ export interface SessionManagerAPI {
|
|
|
3317
3821
|
archiveTranscript: (payload: { cwd: string; epicId: string; claudeSessionId: string }) => Promise<{ path: string; bytes: number; gzBytes: number; sha256: string } | null>;
|
|
3318
3822
|
/** Reopens a completed Epic in place (same id + claudeSessionId); never mints an Epic. */
|
|
3319
3823
|
reopen: (payload: PromptSessionsReopenPayload) => Promise<PromptSessionsReopenResult>;
|
|
3824
|
+
/** Re-snapshots the Epic's persona and re-stamps its agentSnapshotId — the only way a live
|
|
3825
|
+
* persona edit reaches an existing Epic (lib/epic/epicAgentRefresh.cjs). Audited; same id = no-op. */
|
|
3826
|
+
refreshAgentSnapshot: (payload: EpicRefreshAgentSnapshotPayload) => Promise<EpicRefreshAgentSnapshotResult>;
|
|
3827
|
+
/** epic:purge — deletes a completed Epic's transcripts, run logs, history rows, PRDs, events and
|
|
3828
|
+
* JSON, leaving a content-free tombstone + one audit record (lib/epic/epicPurge.cjs). Human-only:
|
|
3829
|
+
* the Purge button (typed-id confirm) is its only caller. `dryRun: true` deletes and writes
|
|
3830
|
+
* nothing and returns what a purge would remove (the confirm shows its count). */
|
|
3831
|
+
purge: (payload: EpicPurgePayload) => Promise<EpicPurgeResult>;
|
|
3320
3832
|
};
|
|
3321
3833
|
}
|
|
3322
3834
|
|
|
3323
3835
|
export interface PromptSessionsReopenPayload { cwd: string; epicId: string }
|
|
3836
|
+
export interface EpicRefreshAgentSnapshotPayload { cwd: string; epicId: string }
|
|
3837
|
+
export interface EpicPurgePayload { cwd: string; epicId: string; dryRun?: boolean }
|
|
3838
|
+
export type EpicPurgeArtifactKind =
|
|
3839
|
+
| 'cli-transcript' | 'run-log' | 'history-rows' | 'prd-sources' | 'plan-records'
|
|
3840
|
+
| 'event-log' | 'agent-snapshot' | 'archived-transcript' | 'epic-json' | 'index-row'
|
|
3841
|
+
export interface EpicPurgeArtifact { kind: EpicPurgeArtifactKind; path: string }
|
|
3842
|
+
export type EpicPurgeResult =
|
|
3843
|
+
| {
|
|
3844
|
+
ok: true
|
|
3845
|
+
/** true = nothing was touched; `removed` is then []. */
|
|
3846
|
+
dryRun: boolean
|
|
3847
|
+
artifacts: EpicPurgeArtifact[]
|
|
3848
|
+
counts: Record<EpicPurgeArtifactKind, number>
|
|
3849
|
+
total: number
|
|
3850
|
+
removed: string[]
|
|
3851
|
+
}
|
|
3852
|
+
| { ok: false; code: 'not_human' | 'invalid_epic_id' | 'invalid_cwd' | 'epic_running' | string; error: string };
|
|
3853
|
+
export type EpicRefreshAgentSnapshotResult =
|
|
3854
|
+
| { ok: true; changed: boolean; from: string | null; to: string; session: PromptSession }
|
|
3855
|
+
| { ok: false; code: string; message: string };
|
|
3856
|
+
|
|
3324
3857
|
export type PromptSessionsReopenResult =
|
|
3325
3858
|
| { ok: true; session: PromptSession; events: PromptSessionEvent[]; alreadyOpen: boolean }
|
|
3326
3859
|
| { ok: false; code: 'not_found' | 'transcript_missing' | 'invalid_session_id' | 'restore_failed' | 'write_failed'; message: string };
|
|
@@ -3370,7 +3903,7 @@ export interface PromptSessionsCreateEpicPayload {
|
|
|
3370
3903
|
text: string;
|
|
3371
3904
|
source?: string;
|
|
3372
3905
|
/** Which part of its AIM slot this entry is; absent on Epics minted before AIM sections. */
|
|
3373
|
-
part?: 'persona' | 'grounding' | 'injection' | '
|
|
3906
|
+
part?: 'persona' | 'grounding' | 'injection' | 'reference' | 'job-type' | 'goal';
|
|
3374
3907
|
}>;
|
|
3375
3908
|
/** Adopt an existing CLI session of this project instead of minting one. */
|
|
3376
3909
|
restoreSessionId?: string;
|
|
@@ -3495,9 +4028,13 @@ export interface PromptSessionEventAppendedPayload {
|
|
|
3495
4028
|
text?: string;
|
|
3496
4029
|
/** 'job-not-queued' = a macro's background build could not be queued for this Epic (macroJobIpc.cjs);
|
|
3497
4030
|
* 'build-done' / 'build-failed' = a macro's background-build PRD finished (scheduler.cjs notifyOriginatingTab). */
|
|
3498
|
-
notice?: 'job-not-queued' | 'build-done' | 'build-failed';
|
|
4031
|
+
notice?: 'job-not-queued' | 'build-done' | 'build-failed' | 'artifact-ready';
|
|
3499
4032
|
/** The saved Project Home entry a 'build-done' notice names, when its meta.json was readable. */
|
|
3500
4033
|
buildOutput?: { kind: 'video' | 'knowledge'; id: string; title: string };
|
|
4034
|
+
/** 'artifact-ready' rows (lib/epic/artifactNotice.cjs); `path` is relative to the project cwd. */
|
|
4035
|
+
artifacts?: Array<{ title: string; kind: string; path: string; size: number }>;
|
|
4036
|
+
/** 'artifact-ready' only — artifacts beyond the listed rows. */
|
|
4037
|
+
moreCount?: number;
|
|
3501
4038
|
};
|
|
3502
4039
|
}
|
|
3503
4040
|
|