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
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.testKeepNodeEnvName = exports.testNodeDistEnvName = exports.moveDeadlineMs = exports.ensureNodeScriptRelativePath = void 0;
|
|
37
|
+
exports.checkIsSharedNode = checkIsSharedNode;
|
|
38
|
+
exports.checkIsOwnNode = checkIsOwnNode;
|
|
39
|
+
exports.checkIsManagedNode = checkIsManagedNode;
|
|
40
|
+
exports.describeNode = describeNode;
|
|
41
|
+
exports.getInstalledVersion = getInstalledVersion;
|
|
42
|
+
exports.getOwnInstallFolder = getOwnInstallFolder;
|
|
43
|
+
exports.createNodeMoveDeps = createNodeMoveDeps;
|
|
44
|
+
exports.formatScriptWords = formatScriptWords;
|
|
45
|
+
exports.ensureOwnNode = ensureOwnNode;
|
|
46
|
+
const fs = __importStar(require("fs"));
|
|
47
|
+
const path = __importStar(require("path"));
|
|
48
|
+
const commandRunner_1 = require("../selfUpdate/commandRunner");
|
|
49
|
+
const homeFolders_1 = require("./homeFolders");
|
|
50
|
+
const serviceCommon_1 = require("./serviceCommon");
|
|
51
|
+
/**
|
|
52
|
+
* @description A runner runs on its OWN Node.js, never on a shared one (a system or Homebrew Node is the admin's to change, and a job that wants a
|
|
53
|
+
* package manager or a global package cannot write into a system folder). The official build from nodejs.org is put in place by the package's
|
|
54
|
+
* `remoteRun/ensureNode.sh` (the newest LTS release from 22.12 up to the last line that ships Corepack; download, SHA-256 against nodejs.org's
|
|
55
|
+
* `SHASUMS256.txt`, unpack, move whole):
|
|
56
|
+
*
|
|
57
|
+
* the admin line as ROOT, into `sharedNodeBase` (`serviceCommon.ts`) — a folder only root can write, because root runs that Node (the root step, the pairing
|
|
58
|
+
* it starts as the account) and must never run what the account, who runs the agents' code, can change. It is refreshed only by the next
|
|
59
|
+
* admin line.
|
|
60
|
+
* the no-sudo line as the account, into `~/.charness-runner/node` (`paths.ownNodeDir`): nobody else is involved
|
|
61
|
+
* an older runner (paired on a system Node) moves itself once its link is up (`nodeUpkeep.ts`), as the account, into `paths.ownNodeDir` — root is not there
|
|
62
|
+
* then, and the Node of a link that runs as the account only needs to be the account's. Root never runs that copy: the root steps of an
|
|
63
|
+
* admin line use the shared one the line installed.
|
|
64
|
+
* an own install looks now and then for a newer release of ITS line (the same major), so it gets security fixes; the folders of versions no process uses
|
|
65
|
+
* any more are removed (`nodeUpkeep.ts`)
|
|
66
|
+
*
|
|
67
|
+
* What a job may write stays out of the Node's folder: `NPM_CONFIG_PREFIX`, `COREPACK_HOME` and the `corepack` wrapper of `packageManagerShims.ts`.
|
|
68
|
+
*/
|
|
69
|
+
/** The package's script (a POSIX path inside it: it is also named in the pasted lines, which are `sh`). */
|
|
70
|
+
exports.ensureNodeScriptRelativePath = 'remoteRun/ensureNode.sh';
|
|
71
|
+
/**
|
|
72
|
+
* The script's own limits add up to 2 × 60 s (the list of releases, the release's checksums) + 900 s (the archive), plus unpacking: this is more than that,
|
|
73
|
+
* so the script ends by its own limits and says why, and this deadline is only the last resort.
|
|
74
|
+
*/
|
|
75
|
+
exports.moveDeadlineMs = 25 * 60 * 1000;
|
|
76
|
+
/** Test seam, set only by a flow's environment: a `file://` folder laid out like `nodejs.org/dist`, for the install to download from (no network in a flow). */
|
|
77
|
+
exports.testNodeDistEnvName = 'CHARNESS_TEST_RUNNER_NODE_DIST';
|
|
78
|
+
/** Test seam, set only by a flow's environment (`1`): the runner keeps the Node it was started with, so a flow that is not about the Node needs no download. */
|
|
79
|
+
exports.testKeepNodeEnvName = 'CHARNESS_TEST_RUNNER_KEEP_NODE';
|
|
80
|
+
function getRealPath(target) {
|
|
81
|
+
try {
|
|
82
|
+
return fs.realpathSync(target);
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
return target;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/** @description Is `nodePath` (by its real path) inside the shared Node folder? */
|
|
89
|
+
function checkIsSharedNode(nodePath, sharedBase = serviceCommon_1.sharedNodeBase) {
|
|
90
|
+
return (0, homeFolders_1.isInside)(getRealPath(sharedBase), getRealPath(nodePath));
|
|
91
|
+
}
|
|
92
|
+
/** @description Is `nodePath` (by its real path) inside the runner's own Node folder? */
|
|
93
|
+
function checkIsOwnNode(nodePath, paths) {
|
|
94
|
+
return (0, homeFolders_1.isInside)(getRealPath(paths.ownNodeDir), getRealPath(nodePath));
|
|
95
|
+
}
|
|
96
|
+
/** @description Is `nodePath` (by its real path) inside the shared Node folder or the runner's own one? */
|
|
97
|
+
function checkIsManagedNode(nodePath, paths, sharedBase = serviceCommon_1.sharedNodeBase) {
|
|
98
|
+
return checkIsSharedNode(nodePath, sharedBase) || checkIsOwnNode(nodePath, paths);
|
|
99
|
+
}
|
|
100
|
+
/** @description What a log calls the Node.js at `nodePath` whose version is `version`: `Node.js 24.22.2 at /path/node`. */
|
|
101
|
+
function describeNode(nodePath, version) {
|
|
102
|
+
return `Node.js ${version} at ${nodePath}`;
|
|
103
|
+
}
|
|
104
|
+
/** @description The version of an install by the name of its folder (`<base>/v24.22.2/bin/node` → `24.22.2`); `unknown` for a Node that is not in such a folder. */
|
|
105
|
+
function getInstalledVersion(nodePath) {
|
|
106
|
+
const folderName = path.basename(path.dirname(path.dirname(nodePath)));
|
|
107
|
+
return /^v\d+\.\d+\.\d+$/.test(folderName) ? folderName.slice(1) : 'unknown';
|
|
108
|
+
}
|
|
109
|
+
/** @description The version folder (`<ownNodeDir>/v24.22.2`) a Node of the runner's own is in, or `null`. */
|
|
110
|
+
function getOwnInstallFolder(nodePath, paths) {
|
|
111
|
+
if (!checkIsOwnNode(nodePath, paths))
|
|
112
|
+
return null;
|
|
113
|
+
const [versionName] = path.relative(getRealPath(paths.ownNodeDir), getRealPath(nodePath)).split(path.sep);
|
|
114
|
+
return path.join(getRealPath(paths.ownNodeDir), versionName);
|
|
115
|
+
}
|
|
116
|
+
function createNodeMoveDeps(appDir, runner, environment = process.env) {
|
|
117
|
+
const distUrl = environment[exports.testNodeDistEnvName];
|
|
118
|
+
return {
|
|
119
|
+
runner,
|
|
120
|
+
currentNodePath: process.execPath,
|
|
121
|
+
currentNodeVersion: process.versions.node,
|
|
122
|
+
scriptPath: path.join(appDir, exports.ensureNodeScriptRelativePath),
|
|
123
|
+
distUrl: distUrl === undefined || distUrl === '' ? null : distUrl,
|
|
124
|
+
sharedBase: serviceCommon_1.sharedNodeBase,
|
|
125
|
+
checkScriptExists: fs.existsSync,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
const scriptLinePrefix = 'charness-runner: ';
|
|
129
|
+
/** @description The words the script said, one line each, without the `charness-runner: ` it starts every line with (the log adds its own): the lines joined by `; `. */
|
|
130
|
+
function formatScriptWords(text) {
|
|
131
|
+
return text.split('\n').map((line) => line.trim()).filter((line) => line !== '').map((line) => (line.startsWith(scriptLinePrefix) ? line.slice(scriptLinePrefix.length) : line)).join('; ');
|
|
132
|
+
}
|
|
133
|
+
/** The major of a version (`24.22.2` → `24`). */
|
|
134
|
+
function getMajor(version) {
|
|
135
|
+
return version.split('.')[0];
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* @description Look after the runner's own Node.js: nothing on the shared one; on its own, the package's script is asked for the newest release of ITS line
|
|
139
|
+
* (a runner on 22.x stays on 22.x: a new major is not a security fix, it changes what every job runs); anywhere else — a system or Homebrew Node — the
|
|
140
|
+
* script puts the newest LTS in `paths.ownNodeDir` (a move). Never throws; `failed` carries the reason and the runner stays on the Node it has.
|
|
141
|
+
*/
|
|
142
|
+
async function ensureOwnNode(paths, deps) {
|
|
143
|
+
if (checkIsSharedNode(deps.currentNodePath, deps.sharedBase))
|
|
144
|
+
return { kind: 'shared' };
|
|
145
|
+
if (!deps.checkScriptExists(deps.scriptPath))
|
|
146
|
+
return { kind: 'failed', reason: `the package has no ${exports.ensureNodeScriptRelativePath} (${deps.scriptPath})` };
|
|
147
|
+
const isOwn = checkIsOwnNode(deps.currentNodePath, paths);
|
|
148
|
+
const scriptArguments = [deps.scriptPath, 'own', paths.ownNodeDir];
|
|
149
|
+
if (isOwn)
|
|
150
|
+
scriptArguments.push(deps.distUrl ?? '', getMajor(deps.currentNodeVersion));
|
|
151
|
+
else if (deps.distUrl !== null)
|
|
152
|
+
scriptArguments.push(deps.distUrl);
|
|
153
|
+
const result = await deps.runner('sh', scriptArguments, { timeoutMs: exports.moveDeadlineMs });
|
|
154
|
+
const nodePath = result.stdout.trim().split('\n').pop() ?? '';
|
|
155
|
+
if (result.isTimedOut)
|
|
156
|
+
return { kind: 'failed', reason: `the Node.js install did not finish within ${exports.moveDeadlineMs / 60_000} minutes` };
|
|
157
|
+
if (!result.ok)
|
|
158
|
+
return { kind: 'failed', reason: formatScriptWords((0, commandRunner_1.getOutputTail)(result, 2)) || `the Node.js install failed (exit ${result.exitCode ?? 'none'})` };
|
|
159
|
+
if (!path.isAbsolute(nodePath) || !checkIsOwnNode(nodePath, paths))
|
|
160
|
+
return { kind: 'failed', reason: `the Node.js install named ${nodePath === '' ? 'no Node' : nodePath}, which is not inside ${paths.ownNodeDir}` };
|
|
161
|
+
if (isOwn && getRealPath(nodePath) === getRealPath(deps.currentNodePath))
|
|
162
|
+
return { kind: 'current' };
|
|
163
|
+
return { kind: 'installed', nodePath, log: formatScriptWords(result.stderr), isMove: !isOwn };
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=managedNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managedNode.js","sourceRoot":"","sources":["../../src/runnerUtility/managedNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA,8CAEC;AAGD,wCAEC;AAGD,gDAEC;AAGD,oCAEC;AAGD,kDAGC;AAGD,kDAIC;AAwBD,gDAWC;AAKD,8CAEC;AAYD,sCAcC;AAlJD,uCAAyB;AACzB,2CAA6B;AAC7B,+DAAgF;AAChF,+CAAyC;AACzC,mDAAiD;AAGjD;;;;;;;;;;;;;;;;;GAiBG;AAEH,2GAA2G;AAC9F,QAAA,4BAA4B,GAAG,yBAAyB,CAAC;AACtE;;;GAGG;AACU,QAAA,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAE7C,gKAAgK;AACnJ,QAAA,mBAAmB,GAAG,gCAAgC,CAAC;AACpE,gKAAgK;AACnJ,QAAA,mBAAmB,GAAG,gCAAgC,CAAC;AAEpE,SAAS,WAAW,CAAC,MAAc;IACjC,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,MAAM,CAAC;IAChB,CAAC;AACH,CAAC;AAED,mFAAmF;AACnF,SAAgB,iBAAiB,CAAC,QAAgB,EAAE,aAAqB,8BAAc;IACrF,OAAO,IAAA,sBAAQ,EAAC,WAAW,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,yFAAyF;AACzF,SAAgB,cAAc,CAAC,QAAgB,EAAE,KAA0C;IACzF,OAAO,IAAA,sBAAQ,EAAC,WAAW,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,2GAA2G;AAC3G,SAAgB,kBAAkB,CAA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AE,KAAK,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,6BAA6B,QAAQ,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,yBAAyB,KAAK,CAAC,UAAU,EAAE,EAAE,CAAC;IACtN,IAAI,KAAK,IAAI,WAAW,CAAC,QAAQ,CAAC,KAAK,WAAW,CAAC,IAAI,CAAC,eAAe,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IACrG,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,EAAE,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC;AAChG,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description A command that is a script with a `#!/usr/bin/env node` first line (npm, npx, Corepack, a package's own bin) finds its `node` through the
|
|
3
|
+
* PATH of whoever starts it — and the runner's Node.js is on nobody's PATH: it lives in the shared folder (or the account's own), not in `/usr/bin`. The
|
|
4
|
+
* environments the runner is started in do not offer it either: `sudo -u <account>` replaces the PATH (its `secure_path`), a systemd user service gets the
|
|
5
|
+
* manager's default, a fresh machine has no Node at all. So every command of this kind is started with the folder of the Node that runs the utility FIRST on
|
|
6
|
+
* its PATH. BUILTINS ONLY: the install step that needs it runs from a package that has no `node_modules` yet.
|
|
7
|
+
*/
|
|
8
|
+
/** @description `environment` with `nodeDir` first on its `PATH` (the other folders keep their order; no empty entry, which would mean the current folder). */
|
|
9
|
+
export declare function getEnvironmentWithNode(environment: NodeJS.ProcessEnv, nodeDir: string): NodeJS.ProcessEnv;
|
|
10
|
+
//# sourceMappingURL=nodeOnPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeOnPath.d.ts","sourceRoot":"","sources":["../../src/runnerUtility/nodeOnPath.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,+JAA+J;AAC/J,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,UAAU,CAEzG"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.getEnvironmentWithNode = getEnvironmentWithNode;
|
|
37
|
+
const path = __importStar(require("path"));
|
|
38
|
+
/**
|
|
39
|
+
* @description A command that is a script with a `#!/usr/bin/env node` first line (npm, npx, Corepack, a package's own bin) finds its `node` through the
|
|
40
|
+
* PATH of whoever starts it — and the runner's Node.js is on nobody's PATH: it lives in the shared folder (or the account's own), not in `/usr/bin`. The
|
|
41
|
+
* environments the runner is started in do not offer it either: `sudo -u <account>` replaces the PATH (its `secure_path`), a systemd user service gets the
|
|
42
|
+
* manager's default, a fresh machine has no Node at all. So every command of this kind is started with the folder of the Node that runs the utility FIRST on
|
|
43
|
+
* its PATH. BUILTINS ONLY: the install step that needs it runs from a package that has no `node_modules` yet.
|
|
44
|
+
*/
|
|
45
|
+
/** @description `environment` with `nodeDir` first on its `PATH` (the other folders keep their order; no empty entry, which would mean the current folder). */
|
|
46
|
+
function getEnvironmentWithNode(environment, nodeDir) {
|
|
47
|
+
return { ...environment, PATH: [nodeDir, environment.PATH ?? ''].filter((folder) => folder !== '').join(path.delimiter) };
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=nodeOnPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeOnPath.js","sourceRoot":"","sources":["../../src/runnerUtility/nodeOnPath.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wDAEC;AAbD,2CAA6B;AAE7B;;;;;;GAMG;AAEH,+JAA+J;AAC/J,SAAgB,sBAAsB,CAAC,WAA8B,EAAE,OAAe;IACpF,OAAO,EAAE,GAAG,WAAW,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;AAC5H,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PueueActivity } from './pueueDaemon';
|
|
3
|
+
import { type NodeMoveDeps } from './managedNode';
|
|
4
|
+
import type { RunnerHomePaths } from './runnerHome';
|
|
5
|
+
/**
|
|
6
|
+
* @description Looking after the runner's own Node.js while the link is up — never before it, and never at the cost of a job:
|
|
7
|
+
*
|
|
8
|
+
* move a runner that runs on a system or Homebrew Node gets its own (`managedNode.ts`), as the account
|
|
9
|
+
* update a runner on its own Node asks for the newest release of its line, so it gets security fixes
|
|
10
|
+
* restart a Node that is newer or new is used by the launcher's NEXT start; the link leaves for that (exit {@link nodeMovedExitCode}) only when
|
|
11
|
+
* no command runs over it ({@link createIdleRestart}), as it does for an update of its program
|
|
12
|
+
* prune the folder of a version is removed only {@link nodeVersionGraceMs} after it stopped being the runner's Node (the moment is recorded) AND only while
|
|
13
|
+
* Pueue has no unfinished task: a job keeps the PATH it was queued with, and a process started through that PATH cannot be told from outside
|
|
14
|
+
* (macOS `ps` shows `node`, not where it lives). The work folders a killed install left are removed too
|
|
15
|
+
* failure an attempt that failed (no network, a full disk, a download that does not run here) is written down with the app copy it happened under;
|
|
16
|
+
* the next attempt is made {@link nodeMoveRetryMs} after the failure or after the next update of the program ({@link getNextLookDelayMs}) — never
|
|
17
|
+
* a download at every start
|
|
18
|
+
*
|
|
19
|
+
* The shared Node of an admin line (root-owned) is never touched here: only the next admin line refreshes it.
|
|
20
|
+
*/
|
|
21
|
+
/** How long a failed attempt is left alone (unless the program was updated since). */
|
|
22
|
+
export declare const nodeMoveRetryMs: number;
|
|
23
|
+
/** How long a version's folder stays after it stopped being the runner's Node: a job queued on it, or one that runs for days, still finds its `node` there. */
|
|
24
|
+
export declare const nodeVersionGraceMs: number;
|
|
25
|
+
declare const nodeFailureSchema: z.ZodObject<{
|
|
26
|
+
failedAtMs: z.ZodNumber;
|
|
27
|
+
appId: z.ZodNullable<z.ZodString>;
|
|
28
|
+
reason: z.ZodString;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
/** @name NodeFailure @description `node-failure.json`. */
|
|
31
|
+
export type NodeFailure = z.infer<typeof nodeFailureSchema>;
|
|
32
|
+
/** @description The recorded failure, or `null` when there is none (or the file is not a valid record: it is then as good as none). */
|
|
33
|
+
export declare function readNodeFailure(paths: Pick<RunnerHomePaths, 'nodeFailure'>): NodeFailure | null;
|
|
34
|
+
/** @description Is an attempt to be made now? Not while a failure under the same app copy is younger than {@link nodeMoveRetryMs}. */
|
|
35
|
+
export declare function checkIsAttemptDue(failure: NodeFailure | null, appId: string | null, nowMs: number): boolean;
|
|
36
|
+
export interface PruneDeps {
|
|
37
|
+
now: () => number;
|
|
38
|
+
log: (line: string) => void;
|
|
39
|
+
/** What Pueue is doing: a job queued with the old PATH must not lose its Node, so anything unfinished — or an answer that could not be had — keeps the old versions. */
|
|
40
|
+
getPueueActivity: () => Promise<PueueActivity>;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @description Look after the version folders of `paths.ownNodeDir`. `current` are the folders (real paths) that are the runner's Node right now: they are stamped with the
|
|
44
|
+
* time of this look, and so is a folder seen for the first time (its grace starts then). A folder that is not current is removed only when its stamp is
|
|
45
|
+
* {@link nodeVersionGraceMs} old — and then only if Pueue has no unfinished task (a stuck one keeps it too, and the log names it). A stamp from the future (a clock that was
|
|
46
|
+
* wrong) counts as now. The work folders of installs that were killed (older than an hour: a fresh
|
|
47
|
+
* one is an install in progress) go always. Returns the names removed.
|
|
48
|
+
*/
|
|
49
|
+
export declare function pruneOwnNodes(paths: Pick<RunnerHomePaths, 'ownNodeDir' | 'nodeCurrent'>, current: readonly string[], deps: PruneDeps): Promise<string[]>;
|
|
50
|
+
/**
|
|
51
|
+
* @description Make the launcher start `runningNodePath`, the Node that runs this link — except when the launcher already names one of the runner's own Nodes
|
|
52
|
+
* while the link runs on another: that is a launcher process that was started before the runner moved (an update of the program restarts the app through the
|
|
53
|
+
* OLD launcher, whose Node is still the old one), and rewriting the file for the Node that happens to run would undo the move.
|
|
54
|
+
*/
|
|
55
|
+
export declare function ensureLauncherForRunningNode(paths: RunnerHomePaths, runningNodePath: string): void;
|
|
56
|
+
export interface NodeUpkeepResult {
|
|
57
|
+
/** `restart`: a Node is in place that the launcher now names and this link does not run on — the caller leaves for the launcher's new start when it is idle. */
|
|
58
|
+
step: 'restart' | 'stay';
|
|
59
|
+
/** When the next look is due, from now. */
|
|
60
|
+
nextLookInMs: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @description When the next look is due: `intervalMs` after a look that worked, but {@link nodeMoveRetryMs} after the FAILURE that is on record (plus a second for the
|
|
64
|
+
* timer's rounding) — a failure is written when the attempt ENDS, which can be minutes after it began, so a fixed interval from the start would find the retry
|
|
65
|
+
* not yet due and skip it, and the real retry would come a whole interval later. A failure recorded under another app copy is due at once.
|
|
66
|
+
*/
|
|
67
|
+
export declare function getNextLookDelayMs(failure: NodeFailure | null, appId: string | null, nowMs: number, intervalMs: number): number;
|
|
68
|
+
export interface NodeUpkeepDeps {
|
|
69
|
+
paths: RunnerHomePaths;
|
|
70
|
+
move: NodeMoveDeps;
|
|
71
|
+
/** Lines for the log (stderr) and for what the operator should see (stdout). */
|
|
72
|
+
log: (line: string) => void;
|
|
73
|
+
say: (line: string) => void;
|
|
74
|
+
now: () => number;
|
|
75
|
+
/** The app copy that runs (`app.<id>`); `null` when it cannot be read. */
|
|
76
|
+
getAppId: () => string | null;
|
|
77
|
+
getPueueActivity: () => Promise<PueueActivity>;
|
|
78
|
+
/** How often a look is made when nothing failed ({@link nodeUpkeepIntervalMs}, or a flow's shorter one). */
|
|
79
|
+
intervalMs: number;
|
|
80
|
+
environment: NodeJS.ProcessEnv;
|
|
81
|
+
}
|
|
82
|
+
/** What the log says about the end of a link's life under the old launcher: a service manager restarts it; a terminal run has to be started again by hand. */
|
|
83
|
+
export declare const restartHint = "a service manager starts the launcher again by itself; started from a terminal, start `charness-runner run` again";
|
|
84
|
+
/**
|
|
85
|
+
* @description One look after the Node.js of the runner (see the head of the file). `restart` when a Node is in place that the launcher now names and this link
|
|
86
|
+
* does not run on: the caller leaves for the launcher's new start when it is idle. Never throws.
|
|
87
|
+
*/
|
|
88
|
+
export declare function runNodeUpkeep(deps: NodeUpkeepDeps): Promise<NodeUpkeepResult>;
|
|
89
|
+
/**
|
|
90
|
+
* @description Run `look` now and then again when it says: each look is scheduled by the END of the one before it, so a failure — written when its attempt ENDS,
|
|
91
|
+
* minutes after the look began — is never found "not yet due" by a timer that was set when the look began. `look` returns the delay to the next one.
|
|
92
|
+
*/
|
|
93
|
+
export declare function startNodeUpkeepSchedule(look: () => Promise<number>, setTimer?: (callback: () => void, ms: number) => unknown): void;
|
|
94
|
+
/** How long a restart for a new Node waits for Pueue tasks that only wait for a person (paused, locked, queued in a paused group) IN ALL, from the restart's request: the old Node's folder is kept a week anyway. */
|
|
95
|
+
export declare const stuckPueueWaitMs: number;
|
|
96
|
+
/** @description The log line for what a restart for a new Node waits on (`isGivingUp` false), or stops waiting on after {@link stuckPueueWaitMs} in all (true): the day is the restart's own, not the task's. */
|
|
97
|
+
export declare function formatBlockerLine(description: string, isGivingUp: boolean): string;
|
|
98
|
+
export interface LinkIdleChecks {
|
|
99
|
+
getActiveExecCount: () => number;
|
|
100
|
+
/** Is an update of the program being installed? */
|
|
101
|
+
isUpdating: () => boolean;
|
|
102
|
+
getPueueActivity: () => Promise<PueueActivity>;
|
|
103
|
+
/** How long the restart has been waiting. */
|
|
104
|
+
waitedMs: number;
|
|
105
|
+
/** Told why the restart still waits (`isGivingUp` false), or that it stops waiting for a stuck task (`true`). */
|
|
106
|
+
onBlocked?: (description: string, isGivingUp: boolean) => void;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @description Is nothing under way that a restart of the link would cut or strand — no command over it, no update of the program being installed (its download
|
|
110
|
+
* and `npm ci` would be orphaned), and no Pueue task running or queued (a job queued with the old PATH keeps its Node)? A task that only waits for a person (paused,
|
|
111
|
+
* locked, queued in a paused group) is waited for {@link stuckPueueWaitMs} IN ALL — counted from the restart's request, not from when the task became stuck — and then left behind, with a word. The cheap questions come first, and they are asked AGAIN
|
|
112
|
+
* after Pueue has answered: a command or an update that began during that wait must not be cut.
|
|
113
|
+
*/
|
|
114
|
+
export declare function checkIsLinkIdle(checks: LinkIdleChecks): Promise<boolean>;
|
|
115
|
+
export interface IdleRestartDeps {
|
|
116
|
+
/** True when nothing a restart would cut is under way ({@link checkIsLinkIdle}); it is told how long the restart has waited. A check that fails counts as not idle. */
|
|
117
|
+
checkIsIdle: (waitedMs: number) => Promise<boolean>;
|
|
118
|
+
/** Ends the link so that the launcher starts again; called once. */
|
|
119
|
+
leave: () => void;
|
|
120
|
+
/** How long to wait before looking again while something is under way (Pueue tasks end without an event for the link). */
|
|
121
|
+
pollMs: number;
|
|
122
|
+
/** A timer for the next look (default: `setTimeout`, unref'd); a test's own. */
|
|
123
|
+
setTimer?: (callback: () => void, ms: number) => {
|
|
124
|
+
clear: () => void;
|
|
125
|
+
};
|
|
126
|
+
/** The clock (default `Date.now`); a test's own. */
|
|
127
|
+
now?: () => number;
|
|
128
|
+
}
|
|
129
|
+
export interface IdleRestart {
|
|
130
|
+
/** The launcher must start again on a new Node: leave as soon as nothing is under way. */
|
|
131
|
+
request: () => void;
|
|
132
|
+
/** Whether {@link IdleRestart.request} was called. */
|
|
133
|
+
isRequested: () => boolean;
|
|
134
|
+
/** Something that was under way may have ended (the last command, an update that settled): look at once. */
|
|
135
|
+
notifyChange: () => void;
|
|
136
|
+
}
|
|
137
|
+
/** @description The hand-over of a wanted restart to the moment nothing is under way (the way an update of the program waits for idleness). Looks again on a change and every `pollMs`. */
|
|
138
|
+
export declare function createIdleRestart(deps: IdleRestartDeps): IdleRestart;
|
|
139
|
+
export {};
|
|
140
|
+
//# sourceMappingURL=n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