charness 3.10.0 → 3.12.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/CHANGELOG.md +171 -0
- package/DEVELOPMENT.md +3 -3
- package/README.md +3 -2
- package/SETUP.md +6 -5
- package/agent-plugin/README.md +15 -6
- package/agent-plugin/skills/charness-delegate-claude/SKILL.md +23 -13
- package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +10 -6
- package/agent-plugin/skills/charness-delivery-loop/SKILL.md +92 -0
- package/agent-plugin/skills/charness-orchestration/SKILL.md +116 -0
- package/dist/adapters/openCodeAdapter.d.ts +15 -0
- package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
- package/dist/adapters/openCodeAdapter.js +48 -4
- package/dist/adapters/openCodeAdapter.js.map +1 -1
- package/dist/agentLogin/agentLogin.d.ts +11 -0
- package/dist/agentLogin/agentLogin.d.ts.map +1 -1
- package/dist/agentLogin/agentLogin.js +18 -6
- package/dist/agentLogin/agentLogin.js.map +1 -1
- package/dist/apiErrorRetry.d.ts +5 -0
- package/dist/apiErrorRetry.d.ts.map +1 -1
- package/dist/apiErrorRetry.js +3 -3
- package/dist/apiErrorRetry.js.map +1 -1
- package/dist/bot.d.ts.map +1 -1
- package/dist/bot.js +331 -152
- package/dist/bot.js.map +1 -1
- package/dist/cli/claudeProfiles.d.ts +5 -2
- package/dist/cli/claudeProfiles.d.ts.map +1 -1
- package/dist/cli/claudeProfiles.js +43 -20
- package/dist/cli/claudeProfiles.js.map +1 -1
- package/dist/cli/claudeProfilesCredit.d.ts +49 -0
- package/dist/cli/claudeProfilesCredit.d.ts.map +1 -0
- package/dist/cli/claudeProfilesCredit.js +160 -0
- package/dist/cli/claudeProfilesCredit.js.map +1 -0
- package/dist/cli/flagValue.d.ts +10 -0
- package/dist/cli/flagValue.d.ts.map +1 -0
- package/dist/cli/flagValue.js +17 -0
- package/dist/cli/flagValue.js.map +1 -0
- package/dist/connectors/telegram/commands/botCore.d.ts +1 -0
- package/dist/connectors/telegram/commands/botCore.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/botSkills.js +1 -1
- package/dist/connectors/telegram/commands/claudeAccounts.d.ts +6 -1
- package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/claudeAccounts.js +12 -9
- package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
- package/dist/connectors/telegram/commands/compaction.d.ts +11 -0
- package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/compaction.js +208 -22
- package/dist/connectors/telegram/commands/compaction.js.map +1 -1
- package/dist/connectors/telegram/commands/runners.d.ts +5 -1
- package/dist/connectors/telegram/commands/runners.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/runners.js +151 -30
- package/dist/connectors/telegram/commands/runners.js.map +1 -1
- package/dist/connectors/telegram/foldedMessage.d.ts +24 -0
- package/dist/connectors/telegram/foldedMessage.d.ts.map +1 -0
- package/dist/connectors/telegram/foldedMessage.js +39 -0
- package/dist/connectors/telegram/foldedMessage.js.map +1 -0
- package/dist/connectors/telegram/inbound.d.ts +24 -1
- package/dist/connectors/telegram/inbound.d.ts.map +1 -1
- package/dist/connectors/telegram/inbound.js +77 -1
- package/dist/connectors/telegram/inbound.js.map +1 -1
- package/dist/connectors/telegram/renderAgentHtml.d.ts +15 -0
- package/dist/connectors/telegram/renderAgentHtml.d.ts.map +1 -1
- package/dist/connectors/telegram/renderAgentHtml.js +11 -1
- package/dist/connectors/telegram/renderAgentHtml.js.map +1 -1
- package/dist/connectors/telegram/runnerPairingMessages.d.ts +2 -7
- package/dist/connectors/telegram/runnerPairingMessages.d.ts.map +1 -1
- package/dist/connectors/telegram/runnerPairingMessages.js +5 -19
- package/dist/connectors/telegram/runnerPairingMessages.js.map +1 -1
- package/dist/connectors/telegram/unpinMessages.d.ts +12 -0
- package/dist/connectors/telegram/unpinMessages.d.ts.map +1 -0
- package/dist/connectors/telegram/unpinMessages.js +44 -0
- package/dist/connectors/telegram/unpinMessages.js.map +1 -0
- package/dist/i18n/de.d.ts.map +1 -1
- package/dist/i18n/de.js +63 -11
- package/dist/i18n/de.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +63 -11
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +63 -11
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +63 -11
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/hi.d.ts.map +1 -1
- package/dist/i18n/hi.js +63 -11
- package/dist/i18n/hi.js.map +1 -1
- package/dist/i18n/ja.d.ts.map +1 -1
- package/dist/i18n/ja.js +63 -11
- package/dist/i18n/ja.js.map +1 -1
- package/dist/i18n/ka.d.ts.map +1 -1
- package/dist/i18n/ka.js +63 -11
- package/dist/i18n/ka.js.map +1 -1
- package/dist/i18n/pt.d.ts.map +1 -1
- package/dist/i18n/pt.js +63 -11
- package/dist/i18n/pt.js.map +1 -1
- package/dist/i18n/ru.d.ts.map +1 -1
- package/dist/i18n/ru.js +63 -11
- package/dist/i18n/ru.js.map +1 -1
- package/dist/i18n/uk.d.ts.map +1 -1
- package/dist/i18n/uk.js +63 -11
- package/dist/i18n/uk.js.map +1 -1
- package/dist/i18n/uz.d.ts.map +1 -1
- package/dist/i18n/uz.js +63 -11
- package/dist/i18n/uz.js.map +1 -1
- package/dist/i18n/zh.d.ts.map +1 -1
- package/dist/i18n/zh.js +63 -11
- package/dist/i18n/zh.js.map +1 -1
- package/dist/installManager.d.ts.map +1 -1
- package/dist/installManager.js +3 -0
- package/dist/installManager.js.map +1 -1
- package/dist/instanceLock.d.ts.map +1 -1
- package/dist/instanceLock.js +2 -1
- package/dist/instanceLock.js.map +1 -1
- package/dist/outputTrace.d.ts +6 -0
- package/dist/outputTrace.d.ts.map +1 -1
- package/dist/outputTrace.js +13 -0
- package/dist/outputTrace.js.map +1 -1
- package/dist/platform/outbound.d.ts +14 -1
- package/dist/platform/outbound.d.ts.map +1 -1
- package/dist/platform/outbound.js.map +1 -1
- package/dist/remoteRun/cleanReport.d.ts +45 -0
- package/dist/remoteRun/cleanReport.d.ts.map +1 -0
- package/dist/remoteRun/cleanReport.js +84 -0
- package/dist/remoteRun/cleanReport.js.map +1 -0
- package/dist/remoteRun/cliArgs.d.ts +18 -0
- package/dist/remoteRun/cliArgs.d.ts.map +1 -1
- package/dist/remoteRun/cliArgs.js +100 -4
- package/dist/remoteRun/cliArgs.js.map +1 -1
- package/dist/remoteRun/commands.d.ts +30 -1
- package/dist/remoteRun/commands.d.ts.map +1 -1
- package/dist/remoteRun/commands.js +84 -9
- package/dist/remoteRun/commands.js.map +1 -1
- package/dist/remoteRun/exitCodes.d.ts +5 -0
- package/dist/remoteRun/exitCodes.d.ts.map +1 -1
- package/dist/remoteRun/exitCodes.js +6 -1
- package/dist/remoteRun/exitCodes.js.map +1 -1
- package/dist/remoteRun/foreground.d.ts +6 -0
- package/dist/remoteRun/foreground.d.ts.map +1 -1
- package/dist/remoteRun/foreground.js +13 -1
- package/dist/remoteRun/foreground.js.map +1 -1
- package/dist/remoteRun/interrupts.d.ts.map +1 -1
- package/dist/remoteRun/interrupts.js +2 -2
- package/dist/remoteRun/interrupts.js.map +1 -1
- package/dist/remoteRun/jobFiles.d.ts +6 -1
- package/dist/remoteRun/jobFiles.d.ts.map +1 -1
- package/dist/remoteRun/jobFiles.js +14 -0
- package/dist/remoteRun/jobFiles.js.map +1 -1
- package/dist/remoteRun/jobId.d.ts +5 -0
- package/dist/remoteRun/jobId.d.ts.map +1 -1
- package/dist/remoteRun/jobId.js +10 -0
- package/dist/remoteRun/jobId.js.map +1 -1
- package/dist/remoteRun/jobState.d.ts.map +1 -1
- package/dist/remoteRun/jobState.js +3 -2
- package/dist/remoteRun/jobState.js.map +1 -1
- package/dist/remoteRun/pairedRunners.d.ts +1 -1
- package/dist/remoteRun/pairedRunners.d.ts.map +1 -1
- package/dist/remoteRun/pairedRunners.js +4 -0
- package/dist/remoteRun/pairedRunners.js.map +1 -1
- package/dist/remoteRun/pathPatterns.d.ts +1 -1
- package/dist/remoteRun/pathPatterns.js +1 -1
- package/dist/remoteRun/probe.d.ts +58 -5
- package/dist/remoteRun/probe.d.ts.map +1 -1
- package/dist/remoteRun/probe.js +107 -11
- package/dist/remoteRun/probe.js.map +1 -1
- package/dist/remoteRun/probeTiming.d.ts +15 -0
- package/dist/remoteRun/probeTiming.d.ts.map +1 -0
- package/dist/remoteRun/probeTiming.js +23 -0
- package/dist/remoteRun/probeTiming.js.map +1 -0
- package/dist/remoteRun/project.d.ts +5 -0
- package/dist/remoteRun/project.d.ts.map +1 -1
- package/dist/remoteRun/project.js +10 -0
- package/dist/remoteRun/project.js.map +1 -1
- package/dist/remoteRun/projectConfig.d.ts +8 -1
- package/dist/remoteRun/projectConfig.d.ts.map +1 -1
- package/dist/remoteRun/projectConfig.js +18 -5
- package/dist/remoteRun/projectConfig.js.map +1 -1
- package/dist/remoteRun/pruneReport.d.ts +48 -0
- package/dist/remoteRun/pruneReport.d.ts.map +1 -0
- package/dist/remoteRun/pruneReport.js +80 -0
- package/dist/remoteRun/pruneReport.js.map +1 -0
- package/dist/remoteRun/remoteRunCli.d.ts +1 -1
- package/dist/remoteRun/remoteRunCli.d.ts.map +1 -1
- package/dist/remoteRun/remoteRunCli.js +20 -0
- package/dist/remoteRun/remoteRunCli.js.map +1 -1
- package/dist/remoteRun/runnerClient.d.ts +10 -0
- package/dist/remoteRun/runnerClient.d.ts.map +1 -1
- package/dist/remoteRun/runnerClient.js +19 -5
- package/dist/remoteRun/runnerClient.js.map +1 -1
- package/dist/remoteRun/runnerWait.d.ts.map +1 -1
- package/dist/remoteRun/runnerWait.js +2 -1
- package/dist/remoteRun/runnerWait.js.map +1 -1
- package/dist/remoteRun/runners.d.ts +48 -7
- package/dist/remoteRun/runners.d.ts.map +1 -1
- package/dist/remoteRun/runners.js +105 -40
- package/dist/remoteRun/runners.js.map +1 -1
- package/dist/remoteRun/runnersConfig.d.ts +24 -0
- package/dist/remoteRun/runnersConfig.d.ts.map +1 -1
- package/dist/remoteRun/runnersConfig.js +29 -2
- package/dist/remoteRun/runnersConfig.js.map +1 -1
- package/dist/remoteRun/ssh.d.ts +3 -3
- package/dist/remoteRun/ssh.d.ts.map +1 -1
- package/dist/remoteRun/ssh.js +19 -5
- package/dist/remoteRun/ssh.js.map +1 -1
- package/dist/remoteRun/submit.d.ts +1 -1
- package/dist/remoteRun/submit.d.ts.map +1 -1
- package/dist/remoteRun/submit.js +30 -2
- package/dist/remoteRun/submit.js.map +1 -1
- package/dist/runnerUtility/adminService.d.ts.map +1 -1
- package/dist/runnerUtility/adminService.js +5 -5
- package/dist/runnerUtility/adminService.js.map +1 -1
- package/dist/runnerUtility/appInstall.d.ts +9 -0
- package/dist/runnerUtility/appInstall.d.ts.map +1 -1
- package/dist/runnerUtility/appInstall.js +12 -2
- package/dist/runnerUtility/appInstall.js.map +1 -1
- package/dist/runnerUtility/execEnv.d.ts +1 -1
- package/dist/runnerUtility/execEnv.d.ts.map +1 -1
- package/dist/runnerUtility/execEnv.js +23 -5
- package/dist/runnerUtility/execEnv.js.map +1 -1
- package/dist/runnerUtility/guiAgentHeal.d.ts +3 -3
- package/dist/runnerUtility/guiAgentHeal.d.ts.map +1 -1
- package/dist/runnerUtility/guiAgentHeal.js +6 -4
- package/dist/runnerUtility/guiAgentHeal.js.map +1 -1
- package/dist/runnerUtility/homeFolders.d.ts +1 -0
- package/dist/runnerUtility/homeFolders.d.ts.map +1 -1
- package/dist/runnerUtility/homeFolders.js +2 -1
- package/dist/runnerUtility/homeFolders.js.map +1 -1
- package/dist/runnerUtility/iosCheck.d.ts +2 -0
- package/dist/runnerUtility/iosCheck.d.ts.map +1 -1
- package/dist/runnerUtility/iosCheck.js +12 -3
- package/dist/runnerUtility/iosCheck.js.map +1 -1
- package/dist/runnerUtility/isolatedCommand.d.ts +0 -2
- package/dist/runnerUtility/isolatedCommand.d.ts.map +1 -1
- package/dist/runnerUtility/isolatedCommand.js +4 -11
- package/dist/runnerUtility/isolatedCommand.js.map +1 -1
- package/dist/runnerUtility/keepAwake.d.ts +47 -10
- package/dist/runnerUtility/keepAwake.d.ts.map +1 -1
- package/dist/runnerUtility/keepAwake.js +108 -31
- package/dist/runnerUtility/keepAwake.js.map +1 -1
- package/dist/runnerUtility/launcher.d.ts +4 -0
- package/dist/runnerUtility/launcher.d.ts.map +1 -1
- package/dist/runnerUtility/launcher.js +31 -13
- package/dist/runnerUtility/launcher.js.map +1 -1
- package/dist/runnerUtility/linkLoop.d.ts +4 -0
- package/dist/runnerUtility/linkLoop.d.ts.map +1 -1
- package/dist/runnerUtility/linkLoop.js +15 -6
- package/dist/runnerUtility/linkLoop.js.map +1 -1
- package/dist/runnerUtility/managedNode.d.ts +84 -0
- package/dist/runnerUtility/managedNode.d.ts.map +1 -0
- package/dist/runnerUtility/managedNode.js +165 -0
- package/dist/runnerUtility/managedNode.js.map +1 -0
- package/dist/runnerUtility/nodeOnPath.d.ts +10 -0
- package/dist/runnerUtility/nodeOnPath.d.ts.map +1 -0
- package/dist/runnerUtility/nodeOnPath.js +49 -0
- package/dist/runnerUtility/nodeOnPath.js.map +1 -0
- package/dist/runnerUtility/nodeUpkeep.d.ts +140 -0
- package/dist/runnerUtility/nodeUpkeep.d.ts.map +1 -0
- package/dist/runnerUtility/nodeUpkeep.js +348 -0
- package/dist/runnerUtility/nodeUpkeep.js.map +1 -0
- package/dist/runnerUtility/nodeUpkeepTiming.d.ts +14 -0
- package/dist/runnerUtility/nodeUpkeepTiming.d.ts.map +1 -0
- package/dist/runnerUtility/nodeUpkeepTiming.js +21 -0
- package/dist/runnerUtility/nodeUpkeepTiming.js.map +1 -0
- package/dist/runnerUtility/packageManagerShims.d.ts +10 -0
- package/dist/runnerUtility/packageManagerShims.d.ts.map +1 -1
- package/dist/runnerUtility/packageManagerShims.js +67 -3
- package/dist/runnerUtility/packageManagerShims.js.map +1 -1
- package/dist/runnerUtility/pueueDaemon.d.ts +73 -8
- package/dist/runnerUtility/pueueDaemon.d.ts.map +1 -1
- package/dist/runnerUtility/pueueDaemon.js +90 -15
- package/dist/runnerUtility/pueueDaemon.js.map +1 -1
- package/dist/runnerUtility/runnerCommands.d.ts +7 -1
- package/dist/runnerUtility/runnerCommands.d.ts.map +1 -1
- package/dist/runnerUtility/runnerCommands.js +119 -16
- package/dist/runnerUtility/runnerCommands.js.map +1 -1
- package/dist/runnerUtility/runnerHome.d.ts +34 -0
- package/dist/runnerUtility/runnerHome.d.ts.map +1 -1
- package/dist/runnerUtility/runnerHome.js +17 -3
- package/dist/runnerUtility/runnerHome.js.map +1 -1
- package/dist/runnerUtility/serviceCommon.d.ts +2 -0
- package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
- package/dist/runnerUtility/serviceCommon.js +3 -1
- package/dist/runnerUtility/serviceCommon.js.map +1 -1
- package/dist/runnerUtility/serviceManager.d.ts.map +1 -1
- package/dist/runnerUtility/serviceManager.js +7 -2
- package/dist/runnerUtility/serviceManager.js.map +1 -1
- package/dist/runnerUtility/simctlGuard.d.ts +38 -0
- package/dist/runnerUtility/simctlGuard.d.ts.map +1 -0
- package/dist/runnerUtility/simctlGuard.js +166 -0
- package/dist/runnerUtility/simctlGuard.js.map +1 -0
- package/dist/runners/bootstrapLine.d.ts +3 -4
- package/dist/runners/bootstrapLine.d.ts.map +1 -1
- package/dist/runners/bootstrapLine.js +108 -83
- package/dist/runners/bootstrapLine.js.map +1 -1
- package/dist/runners/hubPackage.d.ts +1 -1
- package/dist/runners/hubPackage.d.ts.map +1 -1
- package/dist/runners/hubPackage.js +5 -6
- package/dist/runners/hubPackage.js.map +1 -1
- package/dist/runners/hubPairing.d.ts +19 -0
- package/dist/runners/hubPairing.d.ts.map +1 -1
- package/dist/runners/hubPairing.js +38 -0
- package/dist/runners/hubPairing.js.map +1 -1
- package/dist/runners/hubRegistry.d.ts +8 -0
- package/dist/runners/hubRegistry.d.ts.map +1 -1
- package/dist/runners/hubRegistry.js +6 -0
- package/dist/runners/hubRegistry.js.map +1 -1
- package/dist/runners/pairCode.d.ts +34 -3
- package/dist/runners/pairCode.d.ts.map +1 -1
- package/dist/runners/pairCode.js +65 -13
- package/dist/runners/pairCode.js.map +1 -1
- package/dist/runners/runnerGroups.d.ts +22 -0
- package/dist/runners/runnerGroups.d.ts.map +1 -0
- package/dist/runners/runnerGroups.js +41 -0
- package/dist/runners/runnerGroups.js.map +1 -0
- package/dist/runners/runnersCli.d.ts +5 -2
- package/dist/runners/runnersCli.d.ts.map +1 -1
- package/dist/runners/runnersCli.js +59 -9
- package/dist/runners/runnersCli.js.map +1 -1
- package/dist/runners/runnersList.d.ts +1 -1
- package/dist/runners/runnersList.d.ts.map +1 -1
- package/dist/runners/runnersList.js +3 -1
- package/dist/runners/runnersList.js.map +1 -1
- package/dist/runners/runnersOverview.d.ts.map +1 -1
- package/dist/runners/runnersOverview.js +8 -4
- package/dist/runners/runnersOverview.js.map +1 -1
- package/dist/scheduler/checkRun.d.ts +9 -10
- package/dist/scheduler/checkRun.d.ts.map +1 -1
- package/dist/scheduler/checkRun.js +8 -16
- package/dist/scheduler/checkRun.js.map +1 -1
- package/dist/scheduler/checkStatus.d.ts +4 -5
- package/dist/scheduler/checkStatus.d.ts.map +1 -1
- package/dist/scheduler/checkStatus.js +11 -15
- package/dist/scheduler/checkStatus.js.map +1 -1
- package/dist/scheduler/delivery.d.ts +80 -37
- package/dist/scheduler/delivery.d.ts.map +1 -1
- package/dist/scheduler/delivery.js +121 -68
- package/dist/scheduler/delivery.js.map +1 -1
- package/dist/scheduler/mcpSurface.d.ts +13 -5
- package/dist/scheduler/mcpSurface.d.ts.map +1 -1
- package/dist/scheduler/mcpSurface.js +84 -34
- package/dist/scheduler/mcpSurface.js.map +1 -1
- package/dist/scheduler/recurrence.d.ts +32 -0
- package/dist/scheduler/recurrence.d.ts.map +1 -1
- package/dist/scheduler/recurrence.js +56 -18
- package/dist/scheduler/recurrence.js.map +1 -1
- package/dist/scheduler/scheduleText.d.ts +7 -0
- package/dist/scheduler/scheduleText.d.ts.map +1 -0
- package/dist/scheduler/scheduleText.js +55 -0
- package/dist/scheduler/scheduleText.js.map +1 -0
- package/dist/scheduler/store.d.ts +8 -2
- package/dist/scheduler/store.d.ts.map +1 -1
- package/dist/scheduler/store.js +25 -4
- package/dist/scheduler/store.js.map +1 -1
- package/dist/scheduler/types.d.ts +4 -10
- package/dist/scheduler/types.d.ts.map +1 -1
- package/dist/scheduler/workerWatch.d.ts +49 -11
- package/dist/scheduler/workerWatch.d.ts.map +1 -1
- package/dist/scheduler/workerWatch.js +57 -13
- package/dist/scheduler/workerWatch.js.map +1 -1
- package/dist/state.d.ts +95 -2
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +145 -7
- package/dist/state.js.map +1 -1
- package/dist/testTimings.d.ts +6 -2
- package/dist/testTimings.d.ts.map +1 -1
- package/dist/testTimings.js +12 -1
- package/dist/testTimings.js.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/agentPlugin.d.ts +2 -1
- package/dist/utils/agentPlugin.d.ts.map +1 -1
- package/dist/utils/agentPlugin.js +2 -1
- package/dist/utils/agentPlugin.js.map +1 -1
- package/dist/utils/botSkills.d.ts +1 -1
- package/dist/utils/claudeApiAgentStop.d.ts +64 -0
- package/dist/utils/claudeApiAgentStop.d.ts.map +1 -0
- package/dist/utils/claudeApiAgentStop.js +85 -0
- package/dist/utils/claudeApiAgentStop.js.map +1 -0
- package/dist/utils/claudeApiCredit.d.ts +168 -0
- package/dist/utils/claudeApiCredit.d.ts.map +1 -0
- package/dist/utils/claudeApiCredit.js +260 -0
- package/dist/utils/claudeApiCredit.js.map +1 -0
- package/dist/utils/claudeApiCreditRecheck.d.ts +120 -0
- package/dist/utils/claudeApiCreditRecheck.d.ts.map +1 -0
- package/dist/utils/claudeApiCreditRecheck.js +173 -0
- package/dist/utils/claudeApiCreditRecheck.js.map +1 -0
- package/dist/utils/claudeCompactHook.d.ts +18 -10
- package/dist/utils/claudeCompactHook.d.ts.map +1 -1
- package/dist/utils/claudeCompactHook.js +35 -14
- package/dist/utils/claudeCompactHook.js.map +1 -1
- package/dist/utils/claudeProfileUsageLines.d.ts +13 -1
- package/dist/utils/claudeProfileUsageLines.d.ts.map +1 -1
- package/dist/utils/claudeProfileUsageLines.js +75 -4
- package/dist/utils/claudeProfileUsageLines.js.map +1 -1
- package/dist/utils/claudeProfileUsageViews.d.ts +46 -0
- package/dist/utils/claudeProfileUsageViews.d.ts.map +1 -0
- package/dist/utils/claudeProfileUsageViews.js +114 -0
- package/dist/utils/claudeProfileUsageViews.js.map +1 -0
- package/dist/utils/claudeProfiles.d.ts +15 -0
- package/dist/utils/claudeProfiles.d.ts.map +1 -1
- package/dist/utils/claudeProfiles.js +54 -0
- package/dist/utils/claudeProfiles.js.map +1 -1
- package/dist/utils/claudeUsage.d.ts +97 -36
- package/dist/utils/claudeUsage.d.ts.map +1 -1
- package/dist/utils/claudeUsage.js +142 -61
- package/dist/utils/claudeUsage.js.map +1 -1
- package/dist/utils/claudeUsageRefresher.d.ts +27 -3
- package/dist/utils/claudeUsageRefresher.d.ts.map +1 -1
- package/dist/utils/claudeUsageRefresher.js +113 -14
- package/dist/utils/claudeUsageRefresher.js.map +1 -1
- package/dist/utils/compactOnIdle.d.ts +140 -15
- package/dist/utils/compactOnIdle.d.ts.map +1 -1
- package/dist/utils/compactOnIdle.js +209 -23
- package/dist/utils/compactOnIdle.js.map +1 -1
- package/dist/utils/compactSelfReviewFlags.d.ts +50 -0
- package/dist/utils/compactSelfReviewFlags.d.ts.map +1 -0
- package/dist/utils/compactSelfReviewFlags.js +120 -0
- package/dist/utils/compactSelfReviewFlags.js.map +1 -0
- package/dist/utils/fallbackChain.d.ts +18 -7
- package/dist/utils/fallbackChain.d.ts.map +1 -1
- package/dist/utils/fallbackChain.js +28 -12
- package/dist/utils/fallbackChain.js.map +1 -1
- package/dist/utils/forwardedMark.d.ts +54 -0
- package/dist/utils/forwardedMark.d.ts.map +1 -0
- package/dist/utils/forwardedMark.js +80 -0
- package/dist/utils/forwardedMark.js.map +1 -0
- package/dist/utils/limitHeldPrompts.d.ts +8 -2
- package/dist/utils/limitHeldPrompts.d.ts.map +1 -1
- package/dist/utils/limitHeldPrompts.js +11 -4
- package/dist/utils/limitHeldPrompts.js.map +1 -1
- package/dist/utils/messageContext.d.ts +54 -0
- package/dist/utils/messageContext.d.ts.map +1 -0
- package/dist/utils/messageContext.js +58 -0
- package/dist/utils/messageContext.js.map +1 -0
- package/dist/utils/openCodeCompactPlugin.d.ts +28 -7
- package/dist/utils/openCodeCompactPlugin.d.ts.map +1 -1
- package/dist/utils/openCodeCompactPlugin.js +80 -15
- package/dist/utils/openCodeCompactPlugin.js.map +1 -1
- package/dist/utils/openCodeUsage.d.ts +10 -3
- package/dist/utils/openCodeUsage.d.ts.map +1 -1
- package/dist/utils/openCodeUsage.js +19 -5
- package/dist/utils/openCodeUsage.js.map +1 -1
- package/dist/utils/replyQuote.d.ts +11 -26
- package/dist/utils/replyQuote.d.ts.map +1 -1
- package/dist/utils/replyQuote.js +9 -31
- package/dist/utils/replyQuote.js.map +1 -1
- package/dist/utils/runnersScreenPlan.d.ts +51 -20
- package/dist/utils/runnersScreenPlan.d.ts.map +1 -1
- package/dist/utils/runnersScreenPlan.js +143 -28
- package/dist/utils/runnersScreenPlan.js.map +1 -1
- package/dist/utils/streamedCompactionSummary.d.ts +65 -0
- package/dist/utils/streamedCompactionSummary.d.ts.map +1 -0
- package/dist/utils/streamedCompactionSummary.js +108 -0
- package/dist/utils/streamedCompactionSummary.js.map +1 -0
- package/dist/utils/stripControlCharacters.d.ts +8 -0
- package/dist/utils/stripControlCharacters.d.ts.map +1 -0
- package/dist/utils/stripControlCharacters.js +16 -0
- package/dist/utils/stripControlCharacters.js.map +1 -0
- package/dist/utils/telegramError.d.ts +6 -0
- package/dist/utils/telegramError.d.ts.map +1 -1
- package/dist/utils/telegramError.js +30 -0
- package/dist/utils/telegramError.js.map +1 -1
- package/dist/utils/topicRequest.d.ts +13 -0
- package/dist/utils/topicRequest.d.ts.map +1 -1
- package/dist/utils/topicRequest.js +10 -0
- package/dist/utils/topicRequest.js.map +1 -1
- package/dist/utils/usageRefreshBudget.d.ts.map +1 -1
- package/dist/utils/usageRefreshBudget.js +4 -10
- package/dist/utils/usageRefreshBudget.js.map +1 -1
- package/dist/utils/waitUpTo.d.ts +8 -0
- package/dist/utils/waitUpTo.d.ts.map +1 -0
- package/dist/utils/waitUpTo.js +20 -0
- package/dist/utils/waitUpTo.js.map +1 -0
- package/package.json +2 -2
- package/remoteRun/ensureNode.sh +288 -0
- package/remoteRun/runner.sh +2252 -115
- package/agent-plugin/skills/charness-manager/SKILL.md +0 -156
- package/remoteRun/pickNode.sh +0 -65
|
@@ -11,19 +11,40 @@
|
|
|
11
11
|
* injected, so the unit test drives it without the network, the file system or a `StateStore`.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.claudeUsageOnDemandMaxAgeMs = exports.claudeUsageRefreshIntervalMs = void 0;
|
|
14
|
+
exports.claudeLaunchRefreshBudgetMs = exports.claudeUsagePollDeadlineMs = exports.claudeUsageOnDemandMaxAgeMs = exports.claudeUsageRefreshIntervalMs = void 0;
|
|
15
15
|
exports.createClaudeUsageRefresher = createClaudeUsageRefresher;
|
|
16
16
|
exports.refreshClaudeUsageForLaunch = refreshClaudeUsageForLaunch;
|
|
17
|
+
const waitUpTo_1 = require("./waitUpTo");
|
|
17
18
|
const claudeUsage_1 = require("./claudeUsage");
|
|
18
19
|
exports.claudeUsageRefreshIntervalMs = 10 * 60_000;
|
|
19
20
|
/** A snapshot younger than this is served as is by the on-demand readers (`/account`, the MCP tool). */
|
|
20
21
|
exports.claudeUsageOnDemandMaxAgeMs = 60_000;
|
|
22
|
+
/**
|
|
23
|
+
* The longest ONE poll (a profile's, or the OpenCode providers') may run before the refresher gives up on it. Above the
|
|
24
|
+
* fetch's own 15 s timeout, so a healthy abort is never cut short: it only fires when a poll outlives every timeout it has.
|
|
25
|
+
* Without it the poll in flight is shared by every caller (the timer, `/limits`, the `claude_profiles` tool), so ONE poll
|
|
26
|
+
* that never settles keeps all of them waiting for the rest of the process's life.
|
|
27
|
+
*/
|
|
28
|
+
exports.claudeUsagePollDeadlineMs = 30_000;
|
|
29
|
+
/**
|
|
30
|
+
* The longest the `claude_profiles` answer waits for fresh figures. A poll is ~0.5 s (6 s at its slowest in the tool's
|
|
31
|
+
* history); past this the tool answers from the cached figures — each profile carries when they were read — and the refresh
|
|
32
|
+
* goes on in the background. Well under the 300 s after which the agent's own client drops a silent tool call.
|
|
33
|
+
*/
|
|
34
|
+
exports.claudeLaunchRefreshBudgetMs = 10_000;
|
|
35
|
+
/** The stale mark a poll that was given up on leaves on its figures. */
|
|
36
|
+
const usagePollGaveUpReason = 'usage poll did not finish';
|
|
37
|
+
/** The key of the OpenCode providers' poll beside the profiles' (a profile is keyed by its name). */
|
|
38
|
+
const openCodePollLabel = 'OpenCode providers';
|
|
39
|
+
const millisecondsPerMinute = 60_000;
|
|
21
40
|
function createClaudeUsageRefresher(deps) {
|
|
22
41
|
const now = deps.now ?? (() => Date.now());
|
|
23
42
|
const log = deps.log ?? ((line) => console.log(line));
|
|
43
|
+
const pollDeadlineMs = deps.pollDeadlineMs ?? exports.claudeUsagePollDeadlineMs;
|
|
44
|
+
const pendingPolls = new Map();
|
|
24
45
|
let inFlight = null;
|
|
25
46
|
let timer = null;
|
|
26
|
-
async function pollProfile(profile) {
|
|
47
|
+
async function pollProfile(profile, signal) {
|
|
27
48
|
const previous = deps.getSnapshot(profile.name);
|
|
28
49
|
const token = deps.readToken(profile.configDir);
|
|
29
50
|
if (token === null) {
|
|
@@ -38,7 +59,10 @@ function createClaudeUsageRefresher(deps) {
|
|
|
38
59
|
}
|
|
39
60
|
return;
|
|
40
61
|
}
|
|
41
|
-
const result = await deps.fetchUsage(token.accessToken);
|
|
62
|
+
const result = await deps.fetchUsage(token.accessToken, signal);
|
|
63
|
+
// The refresher gave up on this poll while it ran: a newer reading may have been stored since, so this one writes nothing.
|
|
64
|
+
if (signal.aborted)
|
|
65
|
+
return;
|
|
42
66
|
if (!result.ok) {
|
|
43
67
|
log(`[usage] ${profile.name}: usage poll failed (${result.error})`);
|
|
44
68
|
deps.saveSnapshot(profile.name, (0, claudeUsage_1.markClaudeUsageSnapshotStale)(previous, result.error, now()));
|
|
@@ -46,6 +70,69 @@ function createClaudeUsageRefresher(deps) {
|
|
|
46
70
|
}
|
|
47
71
|
deps.saveSnapshot(profile.name, (0, claudeUsage_1.mergeClaudeUsageSnapshot)(previous, result.buckets, 'api', now()));
|
|
48
72
|
}
|
|
73
|
+
/** Run a poll and log how it ended — whenever that is, so a failure after the deadline is seen too. Never rejects. */
|
|
74
|
+
async function runLoggingFailure(label, poll, signal) {
|
|
75
|
+
try {
|
|
76
|
+
await poll(signal);
|
|
77
|
+
return 'finished';
|
|
78
|
+
}
|
|
79
|
+
catch (e) {
|
|
80
|
+
log(`[usage] ${label}: usage poll threw: ${e instanceof Error ? e.message : String(e)}`);
|
|
81
|
+
return 'threw';
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Run the poll of one target, waiting for it at most {@link claudeUsagePollDeadlineMs}. At the deadline the poll is given
|
|
86
|
+
* up on: its request is cancelled, `markStale` (told when the poll started) leaves a stale mark on the figures, and it is
|
|
87
|
+
* left pending until it finally settles — saving nothing, and logging when and how it ended — so a stuck target is not
|
|
88
|
+
* polled twice at once. A call for a target whose earlier poll was given up on returns at once, until that poll has been
|
|
89
|
+
* pending for a whole refresh interval: a poll the cancel cannot reach must not block its target for good, so the next
|
|
90
|
+
* call says so in one line and polls afresh (the old poll's cleanup leaves the new entry alone). A call for a target whose
|
|
91
|
+
* poll is still within its deadline joins it.
|
|
92
|
+
*/
|
|
93
|
+
function runPoll(label, poll, markStale) {
|
|
94
|
+
const pending = pendingPolls.get(label);
|
|
95
|
+
if (pending) {
|
|
96
|
+
if (!pending.isAbandoned)
|
|
97
|
+
return pending.done;
|
|
98
|
+
const pendingForMs = now() - pending.startedAtMs;
|
|
99
|
+
if (pendingForMs < exports.claudeUsageRefreshIntervalMs)
|
|
100
|
+
return Promise.resolve();
|
|
101
|
+
log(`[usage] ${label}: the abandoned usage poll is still pending after ${Math.round(pendingForMs / millisecondsPerMinute)} min; polling afresh`);
|
|
102
|
+
}
|
|
103
|
+
const controller = new AbortController();
|
|
104
|
+
const startedAtMs = now();
|
|
105
|
+
const entry = { startedAtMs, isAbandoned: false, done: Promise.resolve() };
|
|
106
|
+
pendingPolls.set(label, entry);
|
|
107
|
+
const ended = runLoggingFailure(label, poll, controller.signal);
|
|
108
|
+
void ended.then((end) => {
|
|
109
|
+
if (pendingPolls.get(label) === entry)
|
|
110
|
+
pendingPolls.delete(label);
|
|
111
|
+
if (!entry.isAbandoned)
|
|
112
|
+
return;
|
|
113
|
+
const duration = `${((now() - startedAtMs) / 1000).toFixed(1)} s`;
|
|
114
|
+
log(`[usage] ${label}: the abandoned usage poll ${end === 'finished' ? `finished after ${duration}; its answer was dropped` : `failed after ${duration}`}`);
|
|
115
|
+
});
|
|
116
|
+
entry.done = (0, waitUpTo_1.waitUpTo)(ended.then(() => undefined), pollDeadlineMs).then((isSettled) => {
|
|
117
|
+
if (isSettled)
|
|
118
|
+
return;
|
|
119
|
+
entry.isAbandoned = true;
|
|
120
|
+
controller.abort();
|
|
121
|
+
markStale(startedAtMs);
|
|
122
|
+
log(`[usage] ${label}: usage poll did not finish within ${pollDeadlineMs / 1000} s; not waiting for it any more`);
|
|
123
|
+
});
|
|
124
|
+
return entry.done;
|
|
125
|
+
}
|
|
126
|
+
/** A reading stored since the poll began (a json-stream frame) is newer than anything the poll could have told: it stays as it is. */
|
|
127
|
+
function markProfileStale(name, pollStartedAtMs) {
|
|
128
|
+
const snapshot = deps.getSnapshot(name);
|
|
129
|
+
if (snapshot && Date.parse(snapshot.fetchedAt) > pollStartedAtMs)
|
|
130
|
+
return;
|
|
131
|
+
deps.saveSnapshot(name, (0, claudeUsage_1.markClaudeUsageSnapshotStale)(snapshot, usagePollGaveUpReason, now()));
|
|
132
|
+
}
|
|
133
|
+
function runProfilePoll(profile) {
|
|
134
|
+
return runPoll(profile.name, (signal) => pollProfile(profile, signal), (pollStartedAtMs) => markProfileStale(profile.name, pollStartedAtMs));
|
|
135
|
+
}
|
|
49
136
|
function checkNeedsPoll(profile, maxAgeMs) {
|
|
50
137
|
if (profile.loggedIn === false || profile.billing === 'api')
|
|
51
138
|
return false;
|
|
@@ -61,13 +148,10 @@ function createClaudeUsageRefresher(deps) {
|
|
|
61
148
|
return inFlight;
|
|
62
149
|
inFlight = (async () => {
|
|
63
150
|
const due = deps.listProfiles().filter((profile) => checkNeedsPoll(profile, options.maxAgeMs));
|
|
151
|
+
const refreshOpenCode = deps.refreshOpenCode;
|
|
64
152
|
await Promise.all([
|
|
65
|
-
...due.map((profile) =>
|
|
66
|
-
|
|
67
|
-
})),
|
|
68
|
-
deps.refreshOpenCode?.(options).catch((e) => {
|
|
69
|
-
log(`[usage] OpenCode providers: usage poll threw: ${e instanceof Error ? e.message : String(e)}`);
|
|
70
|
-
}),
|
|
153
|
+
...due.map((profile) => runProfilePoll(profile)),
|
|
154
|
+
refreshOpenCode && runPoll(openCodePollLabel, (signal) => refreshOpenCode({ ...options, signal }), () => deps.markOpenCodeStale?.(usagePollGaveUpReason)),
|
|
71
155
|
]);
|
|
72
156
|
})().finally(() => { inFlight = null; });
|
|
73
157
|
return inFlight;
|
|
@@ -75,7 +159,7 @@ function createClaudeUsageRefresher(deps) {
|
|
|
75
159
|
async function refreshOne(name) {
|
|
76
160
|
const profile = deps.listProfiles().find((candidate) => candidate.name === name);
|
|
77
161
|
if (profile && profile.billing !== 'api')
|
|
78
|
-
await
|
|
162
|
+
await runProfilePoll(profile);
|
|
79
163
|
}
|
|
80
164
|
function noteStreamWindows(name, windows) {
|
|
81
165
|
const buckets = (0, claudeUsage_1.buildBucketsFromRateLimitWindows)(windows);
|
|
@@ -101,11 +185,26 @@ function createClaudeUsageRefresher(deps) {
|
|
|
101
185
|
/**
|
|
102
186
|
* @description The readings behind a launch pick (`claude_profiles`): when the session being resumed was STOPPED BY A
|
|
103
187
|
* LIMIT, its account is re-read first, unconditionally — its cached figures may lag the limit that just hit — then every
|
|
104
|
-
* other profile whose snapshot is older than `maxAgeMs`.
|
|
188
|
+
* other profile whose snapshot is older than `maxAgeMs`. Waits at most `budgetMs` ({@link claudeLaunchRefreshBudgetMs}) for the
|
|
189
|
+
* whole of it; past that it logs one line and returns, and the caller answers from the cached figures. The refresh is not
|
|
190
|
+
* cancelled: it finishes in the background.
|
|
105
191
|
*/
|
|
106
192
|
async function refreshClaudeUsageForLaunch(refresher, options) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
193
|
+
const budgetMs = options.budgetMs ?? exports.claudeLaunchRefreshBudgetMs;
|
|
194
|
+
const log = options.log ?? ((line) => console.log(line));
|
|
195
|
+
const refresh = async () => {
|
|
196
|
+
try {
|
|
197
|
+
if (options.isStoppedByLimit && options.currentProfile !== null)
|
|
198
|
+
await refresher.refreshOne(options.currentProfile);
|
|
199
|
+
await refresher.refreshAll({ maxAgeMs: options.maxAgeMs });
|
|
200
|
+
}
|
|
201
|
+
catch (e) {
|
|
202
|
+
// Whenever it fails — inside the budget or long after it — the answer is the cached figures, and the failure is on record.
|
|
203
|
+
log(`[usage] claude_profiles: the usage refresh threw: ${e instanceof Error ? e.message : String(e)}`);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
if (!(await (0, waitUpTo_1.waitUpTo)(refresh(), budgetMs))) {
|
|
207
|
+
log(`[usage] claude_profiles: the usage refresh did not finish within ${budgetMs / 1000} s; answering from the cached figures`);
|
|
208
|
+
}
|
|
110
209
|
}
|
|
111
210
|
//# sourceMappingURL=claudeUsageRefresher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claudeUsageRefresher.js","sourceRoot":"","sources":["../../src/utils/claudeUsageRefresher.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"claudeUsageRefresher.js","sourceRoot":"","sources":["../../src/utils/claudeUsageRefresher.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAiGH,gEA+IC;AASD,kEAkBC;AAxQD,yCAAsC;AACtC,+CAUuB;AAEV,QAAA,4BAA4B,GAAG,EAAE,GAAG,MAAM,CAAC;AAExD,wGAAwG;AAC3F,QAAA,2BAA2B,GAAG,MAAM,CAAC;AAElD;;;;;GAKG;AACU,QAAA,yBAAyB,GAAG,MAAM,CAAC;AAEhD;;;;GAIG;AACU,QAAA,2BAA2B,GAAG,MAAM,CAAC;AA8ClD,wEAAwE;AACxE,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AAE1D,qGAAqG;AACrG,MAAM,iBAAiB,GAAG,oBAAoB,CAAC;AAS/C,MAAM,qBAAqB,GAAG,MAAM,CAAC;AAIrC,SAAgB,0BAA0B,CAAC,IAA8B;IACvE,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3C,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9D,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,IAAI,iCAAyB,CAAC;IACxE,MAAM,YAAY,GAAG,IAAI,GAAG,EAAuB,CAAC;IACpD,IAAI,QAAQ,GAAyB,IAAI,CAAC;IAC1C,IAAI,KAAK,GAA0B,IAAI,CAAC;IAExC,KAAK,UAAU,WAAW,CAAC,OAAo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AY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACzG,CAAC;IACH,CAAC,CAAC;IACF,IAAI,CAAC,CAAC,MAAM,IAAA,mBAAQ,EAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC;QAC3C,GAAG,CAAC,oEAAoE,QAAQ,GAAG,IAAI,uCAAuC,CAAC,CAAC;IAClI,CAAC;AACH,CAAC"}
|
|
@@ -117,6 +117,14 @@ export declare function resolveCompactOnIdleEnabled(globalDefault: boolean | und
|
|
|
117
117
|
* not gated on one.
|
|
118
118
|
*/
|
|
119
119
|
export declare function resolveCompactSummaryEnabled(globalDefault: boolean | undefined, threadOverride: boolean | undefined): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* @description Resolve whether the compaction summary asks the agent for its self-review section and the bot posts it
|
|
122
|
+
* (`/compact_self_review`). A per-thread override always wins; otherwise the instance-wide default applies, which is ON when
|
|
123
|
+
* unset: the section shipped enabled, so a topic keeps getting it until somebody turns it off.
|
|
124
|
+
*
|
|
125
|
+
* Read at COMPACTION time, like {@link resolveCompactSummaryEnabled}, so it is meaningful in a topic with no live session.
|
|
126
|
+
*/
|
|
127
|
+
export declare function resolveCompactSelfReviewEnabled(globalDefault: boolean | undefined, threadOverride: boolean | undefined): boolean;
|
|
120
128
|
/**
|
|
121
129
|
* @description Whether the session is busy for a REAL running turn, as opposed
|
|
122
130
|
* to merely idle-WAITING on an unanswered interactive question. Both states make
|
|
@@ -226,16 +234,51 @@ export declare const compactionSkillsGuidance = "List every skill that was loade
|
|
|
226
234
|
* `PreCompact` hook matches it as a fixed string in the raw JSON it reads on stdin.
|
|
227
235
|
*/
|
|
228
236
|
export declare const compactionChecklistGuidance = "End the summary with a numbered checklist (1., 2., 3., one short item per line) of what the continuing session does next, as the very LAST thing in it. Item 1 is 'load these skills' followed by the exact name of every skill that was loaded (invoked) in this session, never translated or shortened; if none was loaded, leave that item out. The other items are the next steps this summary already records, in order: invent no new steps. If you are also asked to write a closing section between two marker lines, the checklist is the last part of that section, right before its end marker.";
|
|
237
|
+
/**
|
|
238
|
+
* FIXED (English, locale-independent) sentinel markers the self-review section is wrapped in, and the one line
|
|
239
|
+
* the section holds when there were none. Sentinels for the same reason as {@link compactionClosingStartMarker}:
|
|
240
|
+
* the backends write very different summary formats, so exact marker lines are the one backend-agnostic way to lift
|
|
241
|
+
* the section out of a summary ({@link extractCompactionInstructionGaps}). The guidance below pins these exact strings.
|
|
242
|
+
*/
|
|
243
|
+
export declare const compactionGapsStartMarker = "<<<INSTRUCTION_GAPS>>>";
|
|
244
|
+
export declare const compactionGapsEndMarker = "<<<END_INSTRUCTION_GAPS>>>";
|
|
245
|
+
export declare const compactionNoGapsLine = "NO_INSTRUCTION_GAPS";
|
|
246
|
+
/**
|
|
247
|
+
* @description The self-review guidance: the summary gets a section (the agent's self-review) of this session's mistakes — the repeated ones
|
|
248
|
+
* above all — that a change to the agent's standing instructions could have prevented, each with the concrete change and
|
|
249
|
+
* where it goes. The BOT lifts the section out of the summary and posts it to the topic even when the full summary is
|
|
250
|
+
* hidden ({@link checkShouldPostInstructionGaps}), so the person sees what to fix in the instructions without opening a
|
|
251
|
+
* summary. `/compact_self_review` switches it off: the text then leaves every compaction's prompt ({@link compactionResumeGuidanceWithoutGaps})
|
|
252
|
+
* and nothing is posted. It is written in the language the conversation was held in (the hook and the plugin that carry this text are
|
|
253
|
+
* shared by every topic, so no locale can be baked in), PROPOSES and never edits (the person decides), and sits before the
|
|
254
|
+
* checklist and any closing section, which stay last. Travels with {@link compactionSkillsGuidance} and
|
|
255
|
+
* {@link compactionChecklistGuidance} as {@link compactionResumeGuidance} (ahead of them), so ONE line of printable ASCII with no double
|
|
256
|
+
* quote or backslash, for the `PreCompact` hook's fixed-string match.
|
|
257
|
+
*/
|
|
258
|
+
export declare const compactionGapsGuidance = "List the mistakes the agent made in this session, especially REPEATED ones, that a change to its standing instructions (rules, skills, CLAUDE.md / AGENTS.md) could prevent: for each, the mistake, then the concrete instruction change that would prevent it and where that change would go. Put that list in its own section wrapped EXACTLY between a line containing only <<<INSTRUCTION_GAPS>>> and a line containing only <<<END_INSTRUCTION_GAPS>>>, placed before the numbered checklist and before any closing section, and write it in the language the user used in this conversation. If there were no such mistakes, write only the single line NO_INSTRUCTION_GAPS between those two marker lines. The continuing session must only PROPOSE these changes to the user and wait for approval: it must never write or change instructions on its own.";
|
|
259
|
+
/**
|
|
260
|
+
* @description The resume guidance WITHOUT the self-review section: the loaded skills and the next-steps checklist.
|
|
261
|
+
* What a compaction asks for while `/compact_self_review` is off, and the part every variant of {@link compactionResumeGuidance}
|
|
262
|
+
* carries — so the one text the `PreCompact` hook matches to skip a compaction that already holds the guidance, whichever
|
|
263
|
+
* variant the bot sent.
|
|
264
|
+
*/
|
|
265
|
+
export declare const compactionResumeGuidanceWithoutGaps = "List every skill that was loaded (invoked) during this session by its exact name, and state explicitly, in plain words, that the continuing session MUST load each of these skills again and follow it before resuming the work: a skill's instructions are not carried over by this summary, so without reloading them the fresh session works without them. If no skill was loaded, omit this. End the summary with a numbered checklist (1., 2., 3., one short item per line) of what the continuing session does next, as the very LAST thing in it. Item 1 is 'load these skills' followed by the exact name of every skill that was loaded (invoked) in this session, never translated or shortened; if none was loaded, leave that item out. The other items are the next steps this summary already records, in order: invent no new steps. If you are also asked to write a closing section between two marker lines, the checklist is the last part of that section, right before its end marker.";
|
|
229
266
|
/**
|
|
230
267
|
* @description What the continuing session needs from EVERY compaction summary — the
|
|
231
|
-
* loaded skills and the next-steps checklist — as the one text each path carries:
|
|
268
|
+
* self-review section, the loaded skills and the next-steps checklist — as the one text each path carries:
|
|
232
269
|
* a bot-issued compaction in its instruction ({@link buildCompactionInstruction}),
|
|
233
270
|
* and each backend's own overflow compaction through a bot-installed hook — Claude's
|
|
234
271
|
* `PreCompact` hook (`claudeCompactHook.ts`, which also matches on this exact text to
|
|
235
272
|
* skip a compaction that already carries it) and OpenCode's compaction plugin
|
|
236
|
-
* (`openCodeCompactPlugin.ts`).
|
|
273
|
+
* (`openCodeCompactPlugin.ts`). The checklist stays LAST: each sentence says where it goes in the summary, so the order
|
|
274
|
+
* of the sentences is free — and the self-review sentence goes AHEAD of the older text, which stays a contiguous
|
|
275
|
+
* substring: a process started before the section existed keeps its hook (adopted across hot reloads, hooks are read at
|
|
276
|
+
* start), and that hook skips a compaction by finding the OLD text (`${skills} ${checklist}`); written between the two
|
|
277
|
+
* sentences, the new one would break that match and the model would read the skills and the checklist twice.
|
|
237
278
|
*/
|
|
238
|
-
export declare const compactionResumeGuidance = "List every skill that was loaded (invoked) during this session by its exact name, and state explicitly, in plain words, that the continuing session MUST load each of these skills again and follow it before resuming the work: a skill's instructions are not carried over by this summary, so without reloading them the fresh session works without them. If no skill was loaded, omit this. End the summary with a numbered checklist (1., 2., 3., one short item per line) of what the continuing session does next, as the very LAST thing in it. Item 1 is 'load these skills' followed by the exact name of every skill that was loaded (invoked) in this session, never translated or shortened; if none was loaded, leave that item out. The other items are the next steps this summary already records, in order: invent no new steps. If you are also asked to write a closing section between two marker lines, the checklist is the last part of that section, right before its end marker.";
|
|
279
|
+
export declare const compactionResumeGuidance = "List the mistakes the agent made in this session, especially REPEATED ones, that a change to its standing instructions (rules, skills, CLAUDE.md / AGENTS.md) could prevent: for each, the mistake, then the concrete instruction change that would prevent it and where that change would go. Put that list in its own section wrapped EXACTLY between a line containing only <<<INSTRUCTION_GAPS>>> and a line containing only <<<END_INSTRUCTION_GAPS>>>, placed before the numbered checklist and before any closing section, and write it in the language the user used in this conversation. If there were no such mistakes, write only the single line NO_INSTRUCTION_GAPS between those two marker lines. The continuing session must only PROPOSE these changes to the user and wait for approval: it must never write or change instructions on its own. List every skill that was loaded (invoked) during this session by its exact name, and state explicitly, in plain words, that the continuing session MUST load each of these skills again and follow it before resuming the work: a skill's instructions are not carried over by this summary, so without reloading them the fresh session works without them. If no skill was loaded, omit this. End the summary with a numbered checklist (1., 2., 3., one short item per line) of what the continuing session does next, as the very LAST thing in it. Item 1 is 'load these skills' followed by the exact name of every skill that was loaded (invoked) in this session, never translated or shortened; if none was loaded, leave that item out. The other items are the next steps this summary already records, in order: invent no new steps. If you are also asked to write a closing section between two marker lines, the checklist is the last part of that section, right before its end marker.";
|
|
280
|
+
/** @description The resume guidance a compaction carries: with the self-review section while `/compact_self_review` is on, without it while off. */
|
|
281
|
+
export declare function getCompactionResumeGuidance(isWithInstructionGaps: boolean): string;
|
|
239
282
|
/**
|
|
240
283
|
* @description Compose the per-invocation compaction instruction the bot passes
|
|
241
284
|
* to a backend (D3 + the resume guidance + F2 closing section). The general summary
|
|
@@ -243,7 +286,7 @@ export declare const compactionResumeGuidance = "List every skill that was loade
|
|
|
243
286
|
* own prompt — OpenCode bakes it in the fork (`bakesSummaryGuidance: true`) so
|
|
244
287
|
* re-sending it would duplicate the text, whereas the Claude backends have no
|
|
245
288
|
* bot-controlled prompt and must receive it every time. The resume guidance
|
|
246
|
-
* ({@link compactionResumeGuidance}: the loaded skills and the next-steps checklist)
|
|
289
|
+
* ({@link compactionResumeGuidance}: the self-review section, the loaded skills and the next-steps checklist)
|
|
247
290
|
* is skipped the same way when the backend's own compaction prompt already gets it
|
|
248
291
|
* (`bakesResumeGuidance`: an OpenCode server running the bot's compaction plugin,
|
|
249
292
|
* which cannot see this instruction and so cannot skip a duplicate itself). The F2 closing-section directive
|
|
@@ -272,24 +315,74 @@ export declare function formatTokenCount(count: number): string;
|
|
|
272
315
|
* generate very different summary formats (OpenCode's `## Goals/…` template vs
|
|
273
316
|
* Claude Code's freeform numbered recap), so a heading match is unreliable while
|
|
274
317
|
* exact markers are backend-agnostic. They are stripped before a summary is
|
|
275
|
-
* posted ({@link
|
|
318
|
+
* posted ({@link stripCompactionSectionMarkers}). The per-locale instruction pins
|
|
276
319
|
* these exact strings, so changing them means changing the instruction wording in
|
|
277
320
|
* lockstep.
|
|
278
321
|
*/
|
|
279
322
|
export declare const compactionClosingStartMarker = "<<<WHERE_WE_STOPPED>>>";
|
|
280
323
|
export declare const compactionClosingEndMarker = "<<<END_WHERE_WE_STOPPED>>>";
|
|
324
|
+
/** What a summary line can be besides prose: the machine scaffolding of the two sections. */
|
|
325
|
+
export type CompactionScaffoldingKind = 'closingStart' | 'closingEnd' | 'gapsStart' | 'gapsEnd' | 'noGaps';
|
|
326
|
+
/** A summary line read as scaffolding: which kind it opens with and the prose after it on the same line. */
|
|
327
|
+
export interface ParsedCompactionSummaryLine {
|
|
328
|
+
/** `null`: the line is prose (the other field is the line itself). */
|
|
329
|
+
kind: CompactionScaffoldingKind | null;
|
|
330
|
+
rest: string;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* @description Read ONE summary line: the scaffolding token it opens with (leading blanks allowed) and the prose after it,
|
|
334
|
+
* which a model may put on the same line and which must survive. The one place the tokens are matched, so the summary the
|
|
335
|
+
* bot reads whole ({@link formatCompactionSummaryForTopic}) and the one a backend streams tail by tail
|
|
336
|
+
* (`streamedCompactionSummary.ts`) can never disagree on what is scaffolding. The «none» line takes an optional period
|
|
337
|
+
* and nothing else glued to it (`NO_INSTRUCTION_GAPSFOO` is prose).
|
|
338
|
+
*/
|
|
339
|
+
export declare function parseCompactionSummaryLine(line: string): ParsedCompactionSummaryLine;
|
|
340
|
+
/**
|
|
341
|
+
* @description Whether a streamed FRAGMENT of a line (no newline yet) could still turn out to be a scaffolding line: it is
|
|
342
|
+
* blank so far, a prefix of a token, or already opens with one (its prose, if any, is still to come). The stream display
|
|
343
|
+
* holds such a fragment back and shows any other one at once, so a half marker never reaches the topic and an ordinary
|
|
344
|
+
* last line is never held back waiting for a newline that may not come.
|
|
345
|
+
*/
|
|
346
|
+
export declare function checkCouldBecomeCompactionScaffoldingLine(fragment: string): boolean;
|
|
347
|
+
/** Reads a summary a line at a time and says what of each line the topic shows. */
|
|
348
|
+
export interface CompactionSummaryLineFilter {
|
|
349
|
+
/** The lines to show for `line`: none (scaffolding), the line itself (prose), or the header and the line that opens a section. */
|
|
350
|
+
pushLine(line: string): string[];
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* @description The line filter of a summary shown in the topic. Scaffolding goes: the markers of both sections and the
|
|
354
|
+
* «none» line. The self-review section gets `gapsHeader` where its first line is — it reads as the proposals it is, not as
|
|
355
|
+
* more next steps beside the numbered checklist right after it — and a section with no first line (the none line, only
|
|
356
|
+
* blanks) leaves no header, no marker and no trace. Prose on a marker's own line is kept.
|
|
357
|
+
*/
|
|
358
|
+
export declare function createCompactionSummaryLineFilter(gapsHeader: string): CompactionSummaryLineFilter;
|
|
281
359
|
/**
|
|
282
|
-
* @description
|
|
283
|
-
*
|
|
284
|
-
*
|
|
360
|
+
* @description The full compaction summary as the bot posts it to the topic: the scaffolding lines removed ({@link
|
|
361
|
+
* createCompactionSummaryLineFilter}), every line of prose kept — including the sections the markers wrap, which are
|
|
362
|
+
* genuine content — and the self-review section under `gapsHeader`.
|
|
285
363
|
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
* not left with a blank gap where it stood; a marker the model happened to put
|
|
289
|
-
* AHEAD of real prose on one line loses only the marker, never the prose. A summary
|
|
290
|
-
* with no markers comes back unchanged apart from trimming.
|
|
364
|
+
* A marker sitting ALONE on its line takes the whole line with it, so the summary is not left with a blank gap where it
|
|
365
|
+
* stood; a marker the model happened to put AHEAD of real prose on one line loses only the marker, never the prose.
|
|
291
366
|
*/
|
|
292
|
-
export declare function
|
|
367
|
+
export declare function formatCompactionSummaryForTopic(summaryText: string, gapsHeader: string): string;
|
|
368
|
+
/** The self-review section of a summary read so far: whether its end marker has come, and what it says. */
|
|
369
|
+
export interface ParsedCompactionInstructionGaps {
|
|
370
|
+
/** Both marker lines have been read: the section is over, whatever it holds. */
|
|
371
|
+
isComplete: boolean;
|
|
372
|
+
/** The section's text, `null` while it is unfinished or when it is empty or only the none line. */
|
|
373
|
+
text: string | null;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* @description The self-review section of a compaction summary — the text between the LAST pair of
|
|
377
|
+
* {@link compactionGapsStartMarker} / {@link compactionGapsEndMarker} lines, trimmed. `isComplete` is false when the summary
|
|
378
|
+
* has no complete pair (a stream that has not reached the end marker yet); `text` is `null` when the section is empty or
|
|
379
|
+
* holds only {@link compactionNoGapsLine} (the agent found nothing, so nothing is posted). A marker counts only ALONE on its
|
|
380
|
+
* line, as the guidance asks: a summary that quotes the instruction in prose must not be mistaken for the section. The
|
|
381
|
+
* last pair wins: a model that restates its section after a first attempt means the later one.
|
|
382
|
+
*/
|
|
383
|
+
export declare function parseCompactionInstructionGaps(summaryText: string): ParsedCompactionInstructionGaps;
|
|
384
|
+
/** The section's text alone ({@link parseCompactionInstructionGaps}): `null` for an unfinished, empty or «none» section. */
|
|
385
|
+
export declare function extractCompactionInstructionGaps(summaryText: string): string | null;
|
|
293
386
|
/**
|
|
294
387
|
* @description Should the bot post the FULL compaction summary into the topic?
|
|
295
388
|
*
|
|
@@ -309,6 +402,35 @@ export declare function checkShouldPostCompactionSummary(input: {
|
|
|
309
402
|
streamsOwnSummary: boolean;
|
|
310
403
|
route: CompactCommandRoute;
|
|
311
404
|
}): boolean;
|
|
405
|
+
/**
|
|
406
|
+
* @description Should the bot read the SELF-REVIEW section ({@link compactionGapsGuidance}) of a compaction summary and
|
|
407
|
+
* post it into the topic as a message of its own — the part of the summary that is shown even when the full summary is
|
|
408
|
+
* hidden?
|
|
409
|
+
*
|
|
410
|
+
* No when:
|
|
411
|
+
* - the section is switched off for the topic (`/compact_self_review`);
|
|
412
|
+
* - the route is not a real, awaited compaction (the same reason as {@link checkShouldPostCompactionSummary}: the bot
|
|
413
|
+
* has no summary to read);
|
|
414
|
+
* - the compaction is the bot's own AND the full summary is shown: the section is inside it (posted by the bot, or
|
|
415
|
+
* streamed by the backend), so a second message would repeat it;
|
|
416
|
+
* - the compaction is the backend's own and it STREAMS its summary (`streamsOwnSummary`): the stream is the one channel for
|
|
417
|
+
* it — shown whole with `/compact_summary` on, taken apart by the bot with it off (`streamedCompactionSummary.ts`) — so
|
|
418
|
+
* reading the summary here would post the section twice.
|
|
419
|
+
*
|
|
420
|
+
* Otherwise yes: a compaction the bot issued with the summary hidden — on EVERY backend, a streaming one included: there the
|
|
421
|
+
* stream is dropped, and the bot reads the section after the compaction, so it lands in order (the notice, then the
|
|
422
|
+
* section, then a re-asked question) instead of whenever the last tail arrives — and a compaction the CLI ran by itself on
|
|
423
|
+
* a backend that does not stream: nobody posts that summary, whatever `/compact_summary` says.
|
|
424
|
+
*/
|
|
425
|
+
export declare function checkShouldPostInstructionGaps(input: {
|
|
426
|
+
/** `/compact_self_review`: off ⇒ the agent is not asked for the section and nothing of it is posted. */
|
|
427
|
+
isEnabled: boolean;
|
|
428
|
+
isSummaryEnabled: boolean;
|
|
429
|
+
streamsOwnSummary: boolean;
|
|
430
|
+
/** Whether the bot issued this compaction (`/compact`, the agent's `compact_conversation`, the idle one). */
|
|
431
|
+
isBotIssued: boolean;
|
|
432
|
+
route: CompactCommandRoute;
|
|
433
|
+
}): boolean;
|
|
312
434
|
/**
|
|
313
435
|
* @description Should the bot announce that a compaction is STARTING (the notice
|
|
314
436
|
* that goes out BEFORE the wait, for the triggers the operator is present for)?
|
|
@@ -334,12 +456,14 @@ export interface IdleCompactionNoticeParts {
|
|
|
334
456
|
notice: string | null;
|
|
335
457
|
/** The full summary, posted as its own message(s). */
|
|
336
458
|
summary: string | null;
|
|
459
|
+
/** The self-review section alone, posted when the full summary is not ({@link checkShouldPostInstructionGaps}). */
|
|
460
|
+
instructionGaps: string | null;
|
|
337
461
|
/** The re-asked pending question — always LAST, so its buttons stay reachable. */
|
|
338
462
|
question: string | null;
|
|
339
463
|
}
|
|
340
464
|
/**
|
|
341
465
|
* @description Compose an idle-compaction report as SEPARATE parts in the §1.4
|
|
342
|
-
* order: notice → summary → re-asked question.
|
|
466
|
+
* order: notice → summary → self-review section → re-asked question.
|
|
343
467
|
*
|
|
344
468
|
* Splitting what used to be one joined message is the point: the re-asked
|
|
345
469
|
* question carries inline option buttons, and gluing it behind a full summary
|
|
@@ -355,6 +479,7 @@ export declare function buildIdleCompactionNoticeParts(input: {
|
|
|
355
479
|
/** The idle notice text, or `null` when the compaction FAILED (nothing to announce). */
|
|
356
480
|
noticeText: string | null;
|
|
357
481
|
summary: string | null;
|
|
482
|
+
instructionGaps: string | null;
|
|
358
483
|
/** The re-asked question's rendered text, or `null` when none was pending. */
|
|
359
484
|
questionText: string | null;
|
|
360
485
|
}): IdleCompactionNoticeParts;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compactOnIdle.d.ts","sourceRoot":"","sources":["../../src/utils/compactOnIdle.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAIjE;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,QAAiB,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAE1E;AAED;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,QAAS,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,QAAiB,CAAC;AAoBzD;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,CAAC;AAE3E,8FAA8F;AAC9F,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE;IAClD,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAC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