charness 3.9.1 → 3.10.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 +126 -0
- package/DEVELOPMENT.md +4 -1
- package/SETUP.md +6 -4
- package/agent-plugin/README.md +2 -2
- package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +1 -1
- package/agent-plugin/skills/charness-manager/SKILL.md +8 -4
- package/dist/bot.d.ts +27 -18
- package/dist/bot.d.ts.map +1 -1
- package/dist/bot.js +217 -99
- package/dist/bot.js.map +1 -1
- package/dist/connectors/jira/adf.d.ts.map +1 -1
- package/dist/connectors/jira/adf.js +2 -3
- package/dist/connectors/jira/adf.js.map +1 -1
- package/dist/connectors/telegram/commands/botCore.d.ts +16 -0
- package/dist/connectors/telegram/commands/botCore.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/runners.d.ts +10 -1
- package/dist/connectors/telegram/commands/runners.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/runners.js +75 -13
- package/dist/connectors/telegram/commands/runners.js.map +1 -1
- package/dist/connectors/telegram/runnerLinkNotices.d.ts +24 -0
- package/dist/connectors/telegram/runnerLinkNotices.d.ts.map +1 -0
- package/dist/connectors/telegram/runnerLinkNotices.js +95 -0
- package/dist/connectors/telegram/runnerLinkNotices.js.map +1 -0
- package/dist/connectors/telegram/runnerPairingMessages.d.ts +9 -0
- package/dist/connectors/telegram/runnerPairingMessages.d.ts.map +1 -1
- package/dist/connectors/telegram/runnerPairingMessages.js +17 -1
- package/dist/connectors/telegram/runnerPairingMessages.js.map +1 -1
- package/dist/i18n/de.d.ts.map +1 -1
- package/dist/i18n/de.js +19 -0
- package/dist/i18n/de.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +19 -0
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +19 -0
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +19 -0
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/hi.d.ts.map +1 -1
- package/dist/i18n/hi.js +19 -0
- package/dist/i18n/hi.js.map +1 -1
- package/dist/i18n/ja.d.ts.map +1 -1
- package/dist/i18n/ja.js +19 -0
- package/dist/i18n/ja.js.map +1 -1
- package/dist/i18n/ka.d.ts.map +1 -1
- package/dist/i18n/ka.js +19 -0
- package/dist/i18n/ka.js.map +1 -1
- package/dist/i18n/pt.d.ts.map +1 -1
- package/dist/i18n/pt.js +19 -0
- package/dist/i18n/pt.js.map +1 -1
- package/dist/i18n/ru.d.ts.map +1 -1
- package/dist/i18n/ru.js +19 -0
- package/dist/i18n/ru.js.map +1 -1
- package/dist/i18n/uk.d.ts.map +1 -1
- package/dist/i18n/uk.js +19 -0
- package/dist/i18n/uk.js.map +1 -1
- package/dist/i18n/uz.d.ts.map +1 -1
- package/dist/i18n/uz.js +19 -0
- package/dist/i18n/uz.js.map +1 -1
- package/dist/i18n/zh.d.ts.map +1 -1
- package/dist/i18n/zh.js +19 -0
- package/dist/i18n/zh.js.map +1 -1
- package/dist/outputTrace.d.ts.map +1 -1
- package/dist/outputTrace.js +2 -9
- package/dist/outputTrace.js.map +1 -1
- package/dist/rateLimiter.d.ts +3 -1
- package/dist/rateLimiter.d.ts.map +1 -1
- package/dist/rateLimiter.js +3 -1
- package/dist/rateLimiter.js.map +1 -1
- package/dist/remoteRun/cliArgs.d.ts +6 -1
- package/dist/remoteRun/cliArgs.d.ts.map +1 -1
- package/dist/remoteRun/cliArgs.js +39 -2
- package/dist/remoteRun/cliArgs.js.map +1 -1
- package/dist/remoteRun/exitCodes.d.ts +12 -2
- package/dist/remoteRun/exitCodes.d.ts.map +1 -1
- package/dist/remoteRun/exitCodes.js +3 -0
- package/dist/remoteRun/exitCodes.js.map +1 -1
- package/dist/remoteRun/foreground.d.ts +13 -0
- package/dist/remoteRun/foreground.d.ts.map +1 -1
- package/dist/remoteRun/foreground.js +15 -2
- package/dist/remoteRun/foreground.js.map +1 -1
- package/dist/remoteRun/heldBackNotice.d.ts +7 -0
- package/dist/remoteRun/heldBackNotice.d.ts.map +1 -0
- package/dist/remoteRun/heldBackNotice.js +92 -0
- package/dist/remoteRun/heldBackNotice.js.map +1 -0
- package/dist/remoteRun/interrupts.d.ts +6 -2
- package/dist/remoteRun/interrupts.d.ts.map +1 -1
- package/dist/remoteRun/interrupts.js +18 -3
- package/dist/remoteRun/interrupts.js.map +1 -1
- package/dist/remoteRun/leaseTiming.d.ts +1 -2
- package/dist/remoteRun/leaseTiming.d.ts.map +1 -1
- package/dist/remoteRun/leaseTiming.js +3 -17
- package/dist/remoteRun/leaseTiming.js.map +1 -1
- package/dist/remoteRun/output.d.ts +16 -1
- package/dist/remoteRun/output.d.ts.map +1 -1
- package/dist/remoteRun/output.js +28 -2
- package/dist/remoteRun/output.js.map +1 -1
- package/dist/remoteRun/probe.d.ts +40 -2
- package/dist/remoteRun/probe.d.ts.map +1 -1
- package/dist/remoteRun/probe.js +58 -2
- package/dist/remoteRun/probe.js.map +1 -1
- package/dist/remoteRun/project.d.ts +2 -2
- package/dist/remoteRun/project.d.ts.map +1 -1
- package/dist/remoteRun/project.js +5 -4
- package/dist/remoteRun/project.js.map +1 -1
- package/dist/remoteRun/remoteRunCli.d.ts +1 -1
- package/dist/remoteRun/remoteRunCli.d.ts.map +1 -1
- package/dist/remoteRun/remoteRunCli.js +6 -3
- package/dist/remoteRun/remoteRunCli.js.map +1 -1
- package/dist/remoteRun/runnerWait.d.ts +3 -3
- package/dist/remoteRun/runnerWait.d.ts.map +1 -1
- package/dist/remoteRun/runnerWait.js +12 -6
- package/dist/remoteRun/runnerWait.js.map +1 -1
- package/dist/remoteRun/runnerWaitTiming.d.ts +1 -1
- package/dist/remoteRun/runnerWaitTiming.d.ts.map +1 -1
- package/dist/remoteRun/runnerWaitTiming.js +3 -16
- package/dist/remoteRun/runnerWaitTiming.js.map +1 -1
- package/dist/remoteRun/runners.d.ts +16 -3
- package/dist/remoteRun/runners.d.ts.map +1 -1
- package/dist/remoteRun/runners.js +42 -4
- package/dist/remoteRun/runners.js.map +1 -1
- package/dist/remoteRun/sendPlan.d.ts +11 -1
- package/dist/remoteRun/sendPlan.d.ts.map +1 -1
- package/dist/remoteRun/sendPlan.js +29 -5
- package/dist/remoteRun/sendPlan.js.map +1 -1
- package/dist/remoteRun/submit.d.ts.map +1 -1
- package/dist/remoteRun/submit.js +13 -3
- package/dist/remoteRun/submit.js.map +1 -1
- package/dist/runnerUtility/adminService.d.ts +30 -2
- package/dist/runnerUtility/adminService.d.ts.map +1 -1
- package/dist/runnerUtility/adminService.js +104 -6
- package/dist/runnerUtility/adminService.js.map +1 -1
- package/dist/runnerUtility/appInstall.d.ts +13 -4
- package/dist/runnerUtility/appInstall.d.ts.map +1 -1
- package/dist/runnerUtility/appInstall.js +46 -19
- package/dist/runnerUtility/appInstall.js.map +1 -1
- package/dist/runnerUtility/appUpdate.js +1 -1
- package/dist/runnerUtility/appUpdate.js.map +1 -1
- package/dist/runnerUtility/execEnv.d.ts +2 -0
- package/dist/runnerUtility/execEnv.d.ts.map +1 -1
- package/dist/runnerUtility/execEnv.js +6 -2
- package/dist/runnerUtility/execEnv.js.map +1 -1
- package/dist/runnerUtility/guiAgent.d.ts +126 -0
- package/dist/runnerUtility/guiAgent.d.ts.map +1 -0
- package/dist/runnerUtility/guiAgent.js +591 -0
- package/dist/runnerUtility/guiAgent.js.map +1 -0
- package/dist/runnerUtility/guiAgentHeal.d.ts +128 -0
- package/dist/runnerUtility/guiAgentHeal.d.ts.map +1 -0
- package/dist/runnerUtility/guiAgentHeal.js +284 -0
- package/dist/runnerUtility/guiAgentHeal.js.map +1 -0
- package/dist/runnerUtility/homeFolders.d.ts +33 -0
- package/dist/runnerUtility/homeFolders.d.ts.map +1 -0
- package/dist/runnerUtility/homeFolders.js +158 -0
- package/dist/runnerUtility/homeFolders.js.map +1 -0
- package/dist/runnerUtility/hubClient.d.ts +12 -2
- package/dist/runnerUtility/hubClient.d.ts.map +1 -1
- package/dist/runnerUtility/hubClient.js +24 -3
- package/dist/runnerUtility/hubClient.js.map +1 -1
- package/dist/runnerUtility/iosCheck.d.ts +7 -1
- package/dist/runnerUtility/iosCheck.d.ts.map +1 -1
- package/dist/runnerUtility/iosCheck.js +14 -5
- package/dist/runnerUtility/iosCheck.js.map +1 -1
- package/dist/runnerUtility/isolatedCommand.d.ts +33 -0
- package/dist/runnerUtility/isolatedCommand.d.ts.map +1 -0
- package/dist/runnerUtility/isolatedCommand.js +139 -0
- package/dist/runnerUtility/isolatedCommand.js.map +1 -0
- package/dist/runnerUtility/keepAwake.d.ts +67 -0
- package/dist/runnerUtility/keepAwake.d.ts.map +1 -0
- package/dist/runnerUtility/keepAwake.js +211 -0
- package/dist/runnerUtility/keepAwake.js.map +1 -0
- package/dist/runnerUtility/lidPollTiming.d.ts +11 -0
- package/dist/runnerUtility/lidPollTiming.d.ts.map +1 -0
- package/dist/runnerUtility/lidPollTiming.js +18 -0
- package/dist/runnerUtility/lidPollTiming.js.map +1 -0
- package/dist/runnerUtility/lidState.d.ts +57 -0
- package/dist/runnerUtility/lidState.d.ts.map +1 -0
- package/dist/runnerUtility/lidState.js +195 -0
- package/dist/runnerUtility/lidState.js.map +1 -0
- package/dist/runnerUtility/linkLoop.d.ts +5 -0
- package/dist/runnerUtility/linkLoop.d.ts.map +1 -1
- package/dist/runnerUtility/linkLoop.js +37 -1
- package/dist/runnerUtility/linkLoop.js.map +1 -1
- package/dist/runnerUtility/packageManagerShims.d.ts +44 -0
- package/dist/runnerUtility/packageManagerShims.d.ts.map +1 -0
- package/dist/runnerUtility/packageManagerShims.js +130 -0
- package/dist/runnerUtility/packageManagerShims.js.map +1 -0
- package/dist/runnerUtility/progress.d.ts +43 -0
- package/dist/runnerUtility/progress.d.ts.map +1 -0
- package/dist/runnerUtility/progress.js +78 -0
- package/dist/runnerUtility/progress.js.map +1 -0
- package/dist/runnerUtility/pueueDaemon.d.ts +8 -4
- package/dist/runnerUtility/pueueDaemon.d.ts.map +1 -1
- package/dist/runnerUtility/pueueDaemon.js +12 -7
- package/dist/runnerUtility/pueueDaemon.js.map +1 -1
- package/dist/runnerUtility/rootServiceCli.d.ts +23 -3
- package/dist/runnerUtility/rootServiceCli.d.ts.map +1 -1
- package/dist/runnerUtility/rootServiceCli.js +56 -10
- package/dist/runnerUtility/rootServiceCli.js.map +1 -1
- package/dist/runnerUtility/runnerCli.d.ts +1 -0
- package/dist/runnerUtility/runnerCli.d.ts.map +1 -1
- package/dist/runnerUtility/runnerCli.js +14 -7
- package/dist/runnerUtility/runnerCli.js.map +1 -1
- package/dist/runnerUtility/runnerCommands.d.ts +45 -0
- package/dist/runnerUtility/runnerCommands.d.ts.map +1 -1
- package/dist/runnerUtility/runnerCommands.js +188 -21
- package/dist/runnerUtility/runnerCommands.js.map +1 -1
- package/dist/runnerUtility/runnerHome.d.ts +8 -0
- package/dist/runnerUtility/runnerHome.d.ts.map +1 -1
- package/dist/runnerUtility/runnerHome.js +7 -0
- package/dist/runnerUtility/runnerHome.js.map +1 -1
- package/dist/runnerUtility/serviceCommon.d.ts +4 -0
- package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
- package/dist/runnerUtility/serviceCommon.js +8 -1
- package/dist/runnerUtility/serviceCommon.js.map +1 -1
- package/dist/runnerUtility/serviceManager.d.ts +5 -2
- package/dist/runnerUtility/serviceManager.d.ts.map +1 -1
- package/dist/runnerUtility/serviceManager.js +40 -17
- package/dist/runnerUtility/serviceManager.js.map +1 -1
- package/dist/runnerUtility/serviceUnits.d.ts +11 -0
- package/dist/runnerUtility/serviceUnits.d.ts.map +1 -1
- package/dist/runnerUtility/serviceUnits.js +8 -2
- package/dist/runnerUtility/serviceUnits.js.map +1 -1
- package/dist/runnerUtility/simulatorSilencer.d.ts +55 -0
- package/dist/runnerUtility/simulatorSilencer.d.ts.map +1 -0
- package/dist/runnerUtility/simulatorSilencer.js +203 -0
- package/dist/runnerUtility/simulatorSilencer.js.map +1 -0
- package/dist/runnerUtility/stopSignals.d.ts +10 -0
- package/dist/runnerUtility/stopSignals.d.ts.map +1 -0
- package/dist/runnerUtility/stopSignals.js +27 -0
- package/dist/runnerUtility/stopSignals.js.map +1 -0
- package/dist/runnerUtility/versionPollTiming.d.ts +2 -3
- package/dist/runnerUtility/versionPollTiming.d.ts.map +1 -1
- package/dist/runnerUtility/versionPollTiming.js +4 -18
- package/dist/runnerUtility/versionPollTiming.js.map +1 -1
- package/dist/runners/bootstrapLine.d.ts.map +1 -1
- package/dist/runners/bootstrapLine.js +35 -19
- package/dist/runners/bootstrapLine.js.map +1 -1
- package/dist/runners/gate.d.ts.map +1 -1
- package/dist/runners/gate.js +28 -1
- package/dist/runners/gate.js.map +1 -1
- package/dist/runners/gateLink.d.ts +7 -0
- package/dist/runners/gateLink.d.ts.map +1 -1
- package/dist/runners/gateLink.js +36 -3
- package/dist/runners/gateLink.js.map +1 -1
- package/dist/runners/gateProtocol.d.ts +37 -2
- package/dist/runners/gateProtocol.d.ts.map +1 -1
- package/dist/runners/gateProtocol.js +45 -4
- package/dist/runners/gateProtocol.js.map +1 -1
- package/dist/runners/hubPackage.d.ts +2 -1
- package/dist/runners/hubPackage.d.ts.map +1 -1
- package/dist/runners/hubPackage.js +32 -11
- package/dist/runners/hubPackage.js.map +1 -1
- package/dist/runners/hubPairing.d.ts +1 -1
- package/dist/runners/hubPairing.d.ts.map +1 -1
- package/dist/runners/hubPairing.js +8 -1
- package/dist/runners/hubPairing.js.map +1 -1
- package/dist/runners/hubPaths.d.ts +2 -0
- package/dist/runners/hubPaths.d.ts.map +1 -1
- package/dist/runners/hubPaths.js +1 -1
- package/dist/runners/hubPaths.js.map +1 -1
- package/dist/runners/linkConcern.d.ts +75 -0
- package/dist/runners/linkConcern.d.ts.map +1 -0
- package/dist/runners/linkConcern.js +85 -0
- package/dist/runners/linkConcern.js.map +1 -0
- package/dist/runners/linkControl.d.ts +25 -1
- package/dist/runners/linkControl.d.ts.map +1 -1
- package/dist/runners/linkControl.js +46 -4
- package/dist/runners/linkControl.js.map +1 -1
- package/dist/runners/pairingTiming.d.ts +2 -3
- package/dist/runners/pairingTiming.d.ts.map +1 -1
- package/dist/runners/pairingTiming.js +4 -18
- package/dist/runners/pairingTiming.js.map +1 -1
- package/dist/runners/runnerLock.d.ts +112 -0
- package/dist/runners/runnerLock.d.ts.map +1 -0
- package/dist/runners/runnerLock.js +292 -0
- package/dist/runners/runnerLock.js.map +1 -0
- package/dist/runners/runnersCli.d.ts +6 -3
- package/dist/runners/runnersCli.d.ts.map +1 -1
- package/dist/runners/runnersCli.js +33 -6
- package/dist/runners/runnersCli.js.map +1 -1
- package/dist/runners/runnersList.d.ts +3 -3
- package/dist/runners/runnersList.d.ts.map +1 -1
- package/dist/runners/runnersList.js +9 -2
- package/dist/runners/runnersList.js.map +1 -1
- package/dist/runners/runnersOverview.d.ts +29 -3
- package/dist/runners/runnersOverview.d.ts.map +1 -1
- package/dist/runners/runnersOverview.js +71 -6
- package/dist/runners/runnersOverview.js.map +1 -1
- package/dist/runners/serviceRemoval.d.ts +43 -0
- package/dist/runners/serviceRemoval.d.ts.map +1 -0
- package/dist/runners/serviceRemoval.js +114 -0
- package/dist/runners/serviceRemoval.js.map +1 -0
- package/dist/scheduler/checkStatus.d.ts +78 -0
- package/dist/scheduler/checkStatus.d.ts.map +1 -0
- package/dist/scheduler/checkStatus.js +122 -0
- package/dist/scheduler/checkStatus.js.map +1 -0
- package/dist/scheduler/delivery.d.ts +27 -1
- package/dist/scheduler/delivery.d.ts.map +1 -1
- package/dist/scheduler/delivery.js +83 -6
- package/dist/scheduler/delivery.js.map +1 -1
- package/dist/scheduler/mcpSurface.d.ts +2 -0
- package/dist/scheduler/mcpSurface.d.ts.map +1 -1
- package/dist/scheduler/mcpSurface.js +62 -10
- package/dist/scheduler/mcpSurface.js.map +1 -1
- package/dist/scheduler/store.d.ts +16 -1
- package/dist/scheduler/store.d.ts.map +1 -1
- package/dist/scheduler/store.js +33 -0
- package/dist/scheduler/store.js.map +1 -1
- package/dist/scheduler/types.d.ts +22 -0
- package/dist/scheduler/types.d.ts.map +1 -1
- package/dist/scheduler/unbindPause.d.ts +27 -0
- package/dist/scheduler/unbindPause.d.ts.map +1 -0
- package/dist/scheduler/unbindPause.js +21 -0
- package/dist/scheduler/unbindPause.js.map +1 -0
- package/dist/scheduler/workerActivity.d.ts +25 -0
- package/dist/scheduler/workerActivity.d.ts.map +1 -0
- package/dist/scheduler/workerActivity.js +195 -0
- package/dist/scheduler/workerActivity.js.map +1 -0
- package/dist/scheduler/workerWatch.d.ts +14 -2
- package/dist/scheduler/workerWatch.d.ts.map +1 -1
- package/dist/scheduler/workerWatch.js +15 -3
- package/dist/scheduler/workerWatch.js.map +1 -1
- package/dist/state.d.ts +8 -0
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +30 -0
- package/dist/state.js.map +1 -1
- package/dist/stt/sttRuntime.d.ts.map +1 -1
- package/dist/stt/sttRuntime.js +8 -1
- package/dist/stt/sttRuntime.js.map +1 -1
- package/dist/stt/sttSettings.d.ts +56 -6
- package/dist/stt/sttSettings.d.ts.map +1 -1
- package/dist/stt/sttSettings.js +128 -7
- package/dist/stt/sttSettings.js.map +1 -1
- package/dist/stt/sttSidecarOwner.d.ts +13 -5
- package/dist/stt/sttSidecarOwner.d.ts.map +1 -1
- package/dist/stt/sttSidecarOwner.js +72 -31
- package/dist/stt/sttSidecarOwner.js.map +1 -1
- package/dist/stt/transcribeChain.d.ts +23 -1
- package/dist/stt/transcribeChain.d.ts.map +1 -1
- package/dist/stt/transcribeChain.js +59 -4
- package/dist/stt/transcribeChain.js.map +1 -1
- package/dist/testTimings.d.ts +4 -2
- package/dist/testTimings.d.ts.map +1 -1
- package/dist/testTimings.js +7 -1
- package/dist/testTimings.js.map +1 -1
- package/dist/testTimingsSeam.d.ts +10 -0
- package/dist/testTimingsSeam.d.ts.map +1 -0
- package/dist/testTimingsSeam.js +29 -0
- package/dist/testTimingsSeam.js.map +1 -0
- package/dist/utils/runnersScreenPlan.d.ts +14 -0
- package/dist/utils/runnersScreenPlan.d.ts.map +1 -1
- package/dist/utils/runnersScreenPlan.js +49 -5
- package/dist/utils/runnersScreenPlan.js.map +1 -1
- package/dist/utils/surrogateSafeCut.d.ts +14 -0
- package/dist/utils/surrogateSafeCut.d.ts.map +1 -0
- package/dist/utils/surrogateSafeCut.js +30 -0
- package/dist/utils/surrogateSafeCut.js.map +1 -0
- package/dist/utils/telegramError.d.ts +7 -0
- package/dist/utils/telegramError.d.ts.map +1 -1
- package/dist/utils/telegramError.js +15 -0
- package/dist/utils/telegramError.js.map +1 -1
- package/dist/utils/transientFrames.d.ts +51 -6
- package/dist/utils/transientFrames.d.ts.map +1 -1
- package/dist/utils/transientFrames.js +52 -2
- package/dist/utils/transientFrames.js.map +1 -1
- package/dist/voiceProgressNote.d.ts +73 -0
- package/dist/voiceProgressNote.d.ts.map +1 -0
- package/dist/voiceProgressNote.js +142 -0
- package/dist/voiceProgressNote.js.map +1 -0
- package/package.json +4 -1
- package/remoteRun/pickNode.sh +65 -0
- package/remoteRun/runner-package-lock.json +59 -0
- package/remoteRun/runner.sh +304 -6
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* `rootServiceCli.js install <account
|
|
4
|
-
* the package that root unpacked into a folder of its own. Node built-ins
|
|
5
|
-
* runs anything from the account's home but through `sudo -u <account>`
|
|
3
|
+
* `rootServiceCli.js install <account> [--bootstrap <package folder> --archive <file> --package-id <id> <code>]` — the root step of the admin
|
|
4
|
+
* pairing line (`runners/bootstrapLine.ts`), run by it from a copy of the package that root unpacked into a folder of its own. Node built-ins
|
|
5
|
+
* only (that copy has no `node_modules`), and it never reads or runs anything from the account's home but through `sudo -u <account>`
|
|
6
|
+
* with no terminal attached (see `adminService.ts`, `isolatedCommand.ts`).
|
|
7
|
+
*
|
|
8
|
+
* With the pairing arguments it first has the account pair itself (`pairAccountFromPackage`) and installs the service only when that worked;
|
|
9
|
+
* without them it installs the service of an account that is paired already.
|
|
6
10
|
*/
|
|
11
|
+
import { type AdminServiceDeps, type PairRequest } from './adminService';
|
|
12
|
+
import { type RunStep } from './progress';
|
|
13
|
+
type InstallArguments = {
|
|
14
|
+
account: string;
|
|
15
|
+
pairRequest: PairRequest | null;
|
|
16
|
+
};
|
|
17
|
+
/** @description `install <account>` or `install <account> --bootstrap <folder> --archive <file> --package-id <id> <code>`; `null` for anything else. */
|
|
18
|
+
export declare function parseInstallArguments(args: readonly string[]): InstallArguments | null;
|
|
19
|
+
/** Where the step's words go and how a long step is shown; a test's own. */
|
|
20
|
+
export interface RootStepIo {
|
|
21
|
+
stdout: (text: string) => void;
|
|
22
|
+
stderr: (text: string) => void;
|
|
23
|
+
runStep: RunStep;
|
|
24
|
+
}
|
|
25
|
+
/** @description The step for `args` (after the program name): usage, then the pairing when it is asked for, the service, and the warning about the homes the account can read. Returns the exit code. */
|
|
26
|
+
export declare function runInstallCommand(args: readonly string[], deps: AdminServiceDeps, io: RootStepIo): Promise<number>;
|
|
7
27
|
export {};
|
|
8
28
|
//# sourceMappingURL=rootServiceCli.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootServiceCli.d.ts","sourceRoot":"","sources":["../../src/runnerUtility/rootServiceCli.ts"],"names":[],"mappings":";AAEA
|
|
1
|
+
{"version":3,"file":"rootServiceCli.d.ts","sourceRoot":"","sources":["../../src/runnerUtility/rootServiceCli.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAoG,KAAK,gBAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3K,OAAO,EAAiD,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAMzF,KAAK,gBAAgB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,CAAC;AAE7E,wJAAwJ;AACxJ,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,gBAAgB,GAAG,IAAI,CAQtF;AAED,4EAA4E;AAC5E,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,yMAAyM;AACzM,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBxH"}
|
|
@@ -1,25 +1,71 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
/**
|
|
4
|
-
* `rootServiceCli.js install <account
|
|
5
|
-
* the package that root unpacked into a folder of its own. Node built-ins
|
|
6
|
-
* runs anything from the account's home but through `sudo -u <account>`
|
|
4
|
+
* `rootServiceCli.js install <account> [--bootstrap <package folder> --archive <file> --package-id <id> <code>]` — the root step of the admin
|
|
5
|
+
* pairing line (`runners/bootstrapLine.ts`), run by it from a copy of the package that root unpacked into a folder of its own. Node built-ins
|
|
6
|
+
* only (that copy has no `node_modules`), and it never reads or runs anything from the account's home but through `sudo -u <account>`
|
|
7
|
+
* with no terminal attached (see `adminService.ts`, `isolatedCommand.ts`).
|
|
8
|
+
*
|
|
9
|
+
* With the pairing arguments it first has the account pair itself (`pairAccountFromPackage`) and installs the service only when that worked;
|
|
10
|
+
* without them it installs the service of an account that is paired already.
|
|
7
11
|
*/
|
|
8
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.parseInstallArguments = parseInstallArguments;
|
|
14
|
+
exports.runInstallCommand = runInstallCommand;
|
|
9
15
|
const adminService_1 = require("./adminService");
|
|
16
|
+
const progress_1 = require("./progress");
|
|
10
17
|
const usageExitCode = 2;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
const usage = 'Usage: rootServiceCli.js install <account> [--bootstrap <folder> --archive <file> --package-id <id> <code>]\n';
|
|
19
|
+
const pairedWithoutServiceText = 'is paired, but has no service: fix the above and paste a fresh admin line';
|
|
20
|
+
/** @description `install <account>` or `install <account> --bootstrap <folder> --archive <file> --package-id <id> <code>`; `null` for anything else. */
|
|
21
|
+
function parseInstallArguments(args) {
|
|
22
|
+
const [command, account, ...rest] = args;
|
|
23
|
+
if (command !== 'install' || account === undefined)
|
|
24
|
+
return null;
|
|
25
|
+
if (rest.length === 0)
|
|
26
|
+
return { account, pairRequest: null };
|
|
27
|
+
const [bootstrapFlag, bootstrapDir, archiveFlag, archivePath, idFlag, packageId, code, ...extra] = rest;
|
|
28
|
+
if (bootstrapFlag !== '--bootstrap' || archiveFlag !== '--archive' || idFlag !== '--package-id' || extra.length > 0)
|
|
29
|
+
return null;
|
|
30
|
+
if (bootstrapDir === undefined || archivePath === undefined || packageId === undefined || code === undefined)
|
|
31
|
+
return null;
|
|
32
|
+
return { account, pairRequest: { bootstrapDir, archivePath, packageId, code } };
|
|
33
|
+
}
|
|
34
|
+
/** @description The step for `args` (after the program name): usage, then the pairing when it is asked for, the service, and the warning about the homes the account can read. Returns the exit code. */
|
|
35
|
+
async function runInstallCommand(args, deps, io) {
|
|
36
|
+
const parsed = parseInstallArguments(args);
|
|
37
|
+
if (parsed === null) {
|
|
38
|
+
io.stderr(usage);
|
|
15
39
|
return usageExitCode;
|
|
16
40
|
}
|
|
17
|
-
const
|
|
41
|
+
const { account, pairRequest } = parsed;
|
|
42
|
+
if (pairRequest !== null) {
|
|
43
|
+
const pairing = await (0, adminService_1.pairAccountFromPackage)(account, pairRequest, deps);
|
|
44
|
+
if (!pairing.ok) {
|
|
45
|
+
io.stderr(`${pairing.lines.join('\n')}\n`);
|
|
46
|
+
return 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const result = await io.runStep(progress_1.stepLabels.installService(account), () => (0, adminService_1.installServiceForAccount)(account, deps), (outcome) => !outcome.ok);
|
|
18
50
|
if (result.lines.length > 0)
|
|
19
|
-
(result.ok ?
|
|
51
|
+
(result.ok ? io.stdout : io.stderr)(`${result.lines.join('\n')}\n`);
|
|
52
|
+
if (!result.ok && pairRequest !== null)
|
|
53
|
+
io.stderr(`charness-runner: ${account} ${pairedWithoutServiceText}\n`);
|
|
54
|
+
// Said last, where the admin's eye ends up: the account is paired by now, and what it can read is the admin's to close.
|
|
55
|
+
const homesWarning = await (0, adminService_1.warnAboutReadableHomes)(account, deps);
|
|
56
|
+
if (homesWarning.length > 0)
|
|
57
|
+
io.stdout(`\n${homesWarning.join('\n')}\n`);
|
|
20
58
|
return result.ok ? 0 : 1;
|
|
21
59
|
}
|
|
22
|
-
|
|
60
|
+
async function main() {
|
|
61
|
+
const io = {
|
|
62
|
+
stdout: (text) => { process.stdout.write(text); },
|
|
63
|
+
stderr: (text) => { process.stderr.write(text); },
|
|
64
|
+
runStep: (0, progress_1.createStepRunner)({ write: (text) => { process.stdout.write(text); }, isTerminal: (0, progress_1.checkIsTerminal)(process.stdout), getColumns: () => process.stdout.columns }),
|
|
65
|
+
};
|
|
66
|
+
return runInstallCommand(process.argv.slice(2), (0, adminService_1.createAdminServiceDeps)(), io);
|
|
67
|
+
}
|
|
68
|
+
// Only when this file IS the program (`node <copy>/rootServiceCli.js install <account> …`): importing it, as the self-check does, installs nothing.
|
|
23
69
|
if (require.main === module) {
|
|
24
70
|
main().then((code) => {
|
|
25
71
|
process.exitCode = code;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rootServiceCli.js","sourceRoot":"","sources":["../../src/runnerUtility/rootServiceCli.ts"],"names":[],"mappings":";;AAEA
|
|
1
|
+
{"version":3,"file":"rootServiceCli.js","sourceRoot":"","sources":["../../src/runnerUtility/r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AAC,CAAC,CAAC,CAAC;IAClB,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* charness-runner check look at this machine and install what a runner needs (Pueue, rsync)
|
|
10
10
|
* charness-runner service install keep it running without a terminal (see `serviceManager.ts`)
|
|
11
11
|
* charness-runner pause | resume | unpair
|
|
12
|
+
* charness-runner gui-agent (internal) the LaunchAgent of an always-on Mac's login session: runs iOS steps there, silences the Simulators
|
|
12
13
|
*
|
|
13
14
|
* This file is the FIRST thing a pairing runs, from a package that has no `node_modules` yet (`pair --bootstrap <folder> <code>`,
|
|
14
15
|
* started by the pasted line): it imports Node built-ins only, installs the package's dependencies into a new app folder, and starts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runnerCli.d.ts","sourceRoot":"","sources":["../../src/runnerUtility/runnerCli.ts"],"names":[],"mappings":";AAEA
|
|
1
|
+
{"version":3,"file":"runnerCli.d.ts","sourceRoot":"","sources":["../../src/runnerUtility/runnerCli.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;GAeG"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* charness-runner check look at this machine and install what a runner needs (Pueue, rsync)
|
|
11
11
|
* charness-runner service install keep it running without a terminal (see `serviceManager.ts`)
|
|
12
12
|
* charness-runner pause | resume | unpair
|
|
13
|
+
* charness-runner gui-agent (internal) the LaunchAgent of an always-on Mac's login session: runs iOS steps there, silences the Simulators
|
|
13
14
|
*
|
|
14
15
|
* This file is the FIRST thing a pairing runs, from a package that has no `node_modules` yet (`pair --bootstrap <folder> <code>`,
|
|
15
16
|
* started by the pasted line): it imports Node built-ins only, installs the package's dependencies into a new app folder, and starts
|
|
@@ -56,6 +57,7 @@ const path = __importStar(require("path"));
|
|
|
56
57
|
const appInstall_1 = require("./appInstall");
|
|
57
58
|
const packageId_1 = require("./packageId");
|
|
58
59
|
const pairArgs_1 = require("./pairArgs");
|
|
60
|
+
const progress_1 = require("./progress");
|
|
59
61
|
const runnerHome_1 = require("./runnerHome");
|
|
60
62
|
const usageExitCode = 2;
|
|
61
63
|
const usage = `Usage:
|
|
@@ -91,21 +93,21 @@ function parsePairArgs(args) {
|
|
|
91
93
|
return { code, packageId: null, isServiceFollowing };
|
|
92
94
|
return flag === '--package-id' && packageId !== undefined && (0, packageId_1.checkIsPackageId)(packageId) ? { code, packageId, isServiceFollowing } : null;
|
|
93
95
|
}
|
|
94
|
-
function runBootstrap(args) {
|
|
96
|
+
async function runBootstrap(args, runStep) {
|
|
95
97
|
const { bootstrapDir, archivePath, packageId, code, isServiceFollowing } = args;
|
|
96
98
|
// The archive is checked against the id the hub announced with it, and THAT id — not whatever the hub offers a moment later — is
|
|
97
99
|
// what the runner records as installed.
|
|
98
100
|
if (!(0, packageId_1.checkArchiveHasId)(archivePath, packageId)) {
|
|
99
|
-
process.stderr.write(
|
|
101
|
+
process.stderr.write(`${progress_1.stepLinePrefix}the package that was downloaded is not the one the hub announced; run the line again\n`);
|
|
100
102
|
return 1;
|
|
101
103
|
}
|
|
102
104
|
const paths = (0, runnerHome_1.getRunnerHomePaths)();
|
|
103
105
|
let appDir;
|
|
104
106
|
try {
|
|
105
|
-
appDir = (0, appInstall_1.installAppFromDirectory)(bootstrapDir, paths);
|
|
107
|
+
appDir = await runStep(progress_1.stepLabels.installProgram, () => (0, appInstall_1.installAppFromDirectory)(bootstrapDir, paths));
|
|
106
108
|
}
|
|
107
109
|
catch (error) {
|
|
108
|
-
process.stderr.write(
|
|
110
|
+
process.stderr.write(`${progress_1.stepLinePrefix}${error instanceof Error ? error.message : 'could not install'}\n`);
|
|
109
111
|
return 1;
|
|
110
112
|
}
|
|
111
113
|
const installedCli = path.join(appDir, 'dist', 'runnerUtility', 'runnerCli.js');
|
|
@@ -117,15 +119,16 @@ function runBootstrap(args) {
|
|
|
117
119
|
}
|
|
118
120
|
async function main() {
|
|
119
121
|
const [command = 'status', ...args] = process.argv.slice(2);
|
|
122
|
+
const runStep = (0, progress_1.createStepRunner)({ write: (text) => { process.stdout.write(text); }, isTerminal: (0, progress_1.checkIsTerminal)(process.stdout), getColumns: () => process.stdout.columns });
|
|
120
123
|
if (command === 'pair' && (0, pairArgs_1.splitServiceFollowsFlag)(args).rest[0] === '--bootstrap') {
|
|
121
124
|
const bootstrapArgs = parseBootstrapArgs(args);
|
|
122
125
|
if (bootstrapArgs === null) {
|
|
123
126
|
process.stderr.write(usage);
|
|
124
127
|
return usageExitCode;
|
|
125
128
|
}
|
|
126
|
-
return runBootstrap(bootstrapArgs);
|
|
129
|
+
return runBootstrap(bootstrapArgs, runStep);
|
|
127
130
|
}
|
|
128
|
-
const io = { stdout: (text) => { process.stdout.write(text); }, stderr: (text) => { process.stderr.write(text); } };
|
|
131
|
+
const io = { stdout: (text) => { process.stdout.write(text); }, stderr: (text) => { process.stderr.write(text); }, runStep };
|
|
129
132
|
switch (command) {
|
|
130
133
|
case 'pair': {
|
|
131
134
|
const pairArgs = parsePairArgs(args);
|
|
@@ -140,6 +143,10 @@ async function main() {
|
|
|
140
143
|
const { runLink } = await Promise.resolve().then(() => __importStar(require('./runnerCommands')));
|
|
141
144
|
return runLink(io, getOwnAppDir());
|
|
142
145
|
}
|
|
146
|
+
case 'gui-agent': {
|
|
147
|
+
const { runGuiAgentCommand } = await Promise.resolve().then(() => __importStar(require('./runnerCommands')));
|
|
148
|
+
return runGuiAgentCommand(io);
|
|
149
|
+
}
|
|
143
150
|
case 'status': {
|
|
144
151
|
const { runStatus } = await Promise.resolve().then(() => __importStar(require('./runnerCommands')));
|
|
145
152
|
return runStatus(io);
|
|
@@ -180,7 +187,7 @@ if (require.main === module) {
|
|
|
180
187
|
main().then((code) => {
|
|
181
188
|
process.exitCode = code;
|
|
182
189
|
// `run` holds sockets, a Pueue probe and timers: it leaves by itself — also with the restart code after an update; every other command ends when its output is flushed.
|
|
183
|
-
if (process.argv[2] === 'run' || code === appInstall_1.restartExitCode)
|
|
190
|
+
if (process.argv[2] === 'run' || process.argv[2] === 'gui-agent' || code === appInstall_1.restartExitCode)
|
|
184
191
|
process.exit(code);
|
|
185
192
|
}, (error) => {
|
|
186
193
|
process.stderr.write(`charness-runner: ${error.message}\n`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runnerCli.js","sourceRoot":"","sources":["../../src/runnerUtility/runnerCli.ts"],"names":[],"mappings":";;AAEA
|
|
1
|
+
{"version":3,"file":"runnerCli.js","sourceRoot":"","sources":["../../src/runnerUtility/runnerCli.ts"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iDAA0C;AAC1C,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAC7B,6CAAwE;AACxE,2CAAkE;AAClE,yCAAyE;AACzE,yCAAyG;AACzG,6CAAkD;AAElD,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,KAAK,GAAG;;;;;;;;;;CAUb,CAAC;AAEF,oGAAoG;AACpG,SAAS,YAAY;IACnB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC;AAWD,0HAA0H;AAC1H,SAAS,kBAAkB,CAAC,IAAuB;IACjD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,kBAAkB,EAAE,GAAG,IAAA,kCAAuB,EAAC,IAAI,CAAC,CAAC;IAC9E,MAAM,CAAC,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IAC5G,IAAI,aAAa,KAAK,aAAa,IAAI,WAAW,KAAK,WAAW,IAAI,MAAM,KAAK,cAAc,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAChI,OAAO,YAAY,KAAK,SAAS,IAAI,WAAW,KAAK,SAAS,IAAI,SAAS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CAAC,EACD,CAAC,KAAY,EAAE,EAAE;QACf,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,oBAAoB,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;QAC5D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type RedeemReply } from '../runners/gateProtocol';
|
|
2
2
|
import { type HubEndpoint } from './hubClient';
|
|
3
|
+
import { type KeepAwakeState } from './keepAwake';
|
|
3
4
|
import { type ProcessControl } from './localLinkStop';
|
|
4
5
|
import { type CommandRunner } from '../selfUpdate/commandRunner';
|
|
5
6
|
import { type ServiceDeps } from './serviceManager';
|
|
6
7
|
import { type RunnerHomePaths } from './runnerHome';
|
|
7
8
|
import { type RunnerKeys } from './runnerKeys';
|
|
9
|
+
import { type RunStep } from './progress';
|
|
8
10
|
/**
|
|
9
11
|
* @description The commands of `charness-runner` that need the installed package (and so its dependencies): `pair`, `run`, `status`,
|
|
10
12
|
* `check`. `runnerCli.ts` starts them only after the app is installed.
|
|
@@ -12,6 +14,8 @@ import { type RunnerKeys } from './runnerKeys';
|
|
|
12
14
|
export interface CommandIo {
|
|
13
15
|
stdout: (text: string) => void;
|
|
14
16
|
stderr: (text: string) => void;
|
|
17
|
+
/** How the long steps are shown (`progress.ts`); absent = one plain line per step on `stdout`. */
|
|
18
|
+
runStep?: RunStep;
|
|
15
19
|
}
|
|
16
20
|
/** @description The «Keep it running» part of the pairing text: the terminal, a service without admin, and — on a Mac — the admin line that makes it always on. */
|
|
17
21
|
export declare function formatKeepRunningHelp(paths: RunnerHomePaths, platform?: NodeJS.Platform): string;
|
|
@@ -21,6 +25,8 @@ export declare function formatServiceFollowsNote(): string;
|
|
|
21
25
|
export interface PairingOptions {
|
|
22
26
|
/** An admin's line installs the service right after this pairing (`pairArgs.ts`): no help about keeping it running is printed. */
|
|
23
27
|
isServiceFollowing: boolean;
|
|
28
|
+
/** The homes of other users this account can read (the plain line says so, with the fix); a test's own. Default: look at `/Users` and `/home` as this account. */
|
|
29
|
+
scanReadableHomes?: () => Promise<string[]>;
|
|
24
30
|
}
|
|
25
31
|
export interface PairingOutcomeInputs {
|
|
26
32
|
endpoint: HubEndpoint;
|
|
@@ -32,11 +38,50 @@ export interface PairingOutcomeInputs {
|
|
|
32
38
|
packageId: string | null;
|
|
33
39
|
appDir: string;
|
|
34
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @description What the plain pairing line warns about once the machine is paired: the homes of other users that this account can read (with the
|
|
43
|
+
* one-line fix for each), and a Node.js that lives in another user's home. `[]` when there is nothing to say.
|
|
44
|
+
*/
|
|
45
|
+
export declare function formatPairingWarnings(inputs: {
|
|
46
|
+
accountName: string;
|
|
47
|
+
homeDir: string;
|
|
48
|
+
nodePath: string;
|
|
49
|
+
readableHomes: readonly string[];
|
|
50
|
+
}): string[];
|
|
35
51
|
/**
|
|
36
52
|
* @description `charness-runner pair <code>` (run from the INSTALLED copy): redeem the code, record who the runner serves, install its
|
|
37
53
|
* tools. A pairing that an earlier run left half done is recovered FIRST (with the runner's own key), whatever the new code is. Returns the exit code.
|
|
38
54
|
*/
|
|
39
55
|
export declare function runPair(code: string, appDir: string, packageId: string | null, io: CommandIo, homeDir?: string, options?: PairingOptions): Promise<number>;
|
|
56
|
+
/** What the Simulator work (the boot check, the silencer) is done by, for a link or a login session's agent. */
|
|
57
|
+
export interface SimulatorWorkPlan {
|
|
58
|
+
/** The link runs the iOS Simulator check (every platform: it records «skipped» off a Mac). */
|
|
59
|
+
linkChecksSimulator: boolean;
|
|
60
|
+
/** The link runs the silencer: only on a Mac, and only when the link itself is in a login session. */
|
|
61
|
+
linkSilencesSimulators: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @description Who does the Simulator work. On an always-on Mac (`system-service`) the link is a LaunchDaemon in the System session: it can neither judge the
|
|
65
|
+
* Simulator (a check from it would only write «needs the runner user's login session» over the agent's) nor see the Simulators of the account's session, so the
|
|
66
|
+
* login session's agent does both. A Mac link that IS in a login session (a user service, `charness-runner run`) does them itself — jobs and link share the
|
|
67
|
+
* session, so the Simulators a job boots are the ones the silencer lists.
|
|
68
|
+
*/
|
|
69
|
+
export declare function planSimulatorWork(platform: NodeJS.Platform, serviceKind: string | null): SimulatorWorkPlan;
|
|
70
|
+
/** @description What the link says of keeping the machine awake as it starts: the method, or that it is not and why (also what `runners` shows). */
|
|
71
|
+
export declare function describeKeepAwake(state: KeepAwakeState): string;
|
|
72
|
+
/** What a test may change of the agent's command: where the always-on definitions live, how often it looks for them, and its own stop signal (no process handlers then). */
|
|
73
|
+
export interface GuiAgentCommandOverrides {
|
|
74
|
+
launchDaemonsDir?: string;
|
|
75
|
+
serviceCheckIntervalMs?: number;
|
|
76
|
+
signal?: AbortSignal;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @description `charness-runner gui-agent` (internal: the LaunchAgent in the account's login session starts it; see `guiAgent.ts`): runs the steps of the
|
|
80
|
+
* jobs that need iOS where Xcode can build, keeps the Simulator check of the Mac, and keeps every Simulator silent. Removes itself and leaves when the always-on
|
|
81
|
+
* service it belongs to is gone (the admin removed the daemons; no command of theirs names this account's folders). Leaves for a restart (exit 0, the
|
|
82
|
+
* LaunchAgent starts it again) when an update replaced the package and no step runs.
|
|
83
|
+
*/
|
|
84
|
+
export declare function runGuiAgentCommand(io: CommandIo, homeDir?: string, overrides?: GuiAgentCommandOverrides): Promise<number>;
|
|
40
85
|
/** @description `charness-runner run`: ensure the tools and Pueue, then hold the link until stopped. Returns the exit code (75 = restart onto an update). */
|
|
41
86
|
export declare function runLink(io: CommandIo, appDir: string, homeDir?: string): Promise<number>;
|
|
42
87
|
/** @description `charness-runner status`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runnerCommands.d.ts","sourceRoot":"","sources":["../../src/runnerUtility/runnerCommands.ts"],"names":[],"mappings":"AAIA,OA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