charness 4.2.0 → 4.3.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 +157 -2
- package/DEVELOPMENT.md +58 -10
- package/LICENSE +331 -151
- package/MIGRATION_3_TO_4.md +8 -5
- package/README.md +21 -9
- package/SETUP.md +54 -10
- package/agent-plugin/README.md +10 -3
- package/agent-plugin/skills/charness-delegate-claude/SKILL.md +18 -27
- package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +5 -3
- package/agent-plugin/skills/charness-orchestration/SKILL.md +56 -16
- package/dist/adapters/claudeCliAdapter.d.ts +4 -0
- package/dist/adapters/claudeCliAdapter.d.ts.map +1 -1
- package/dist/adapters/claudeCliAdapter.js +13 -0
- package/dist/adapters/claudeCliAdapter.js.map +1 -1
- package/dist/adapters/claudeJsonStreamAdapter.d.ts +136 -10
- package/dist/adapters/claudeJsonStreamAdapter.d.ts.map +1 -1
- package/dist/adapters/claudeJsonStreamAdapter.js +365 -77
- package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
- package/dist/adapters/createAdapter.d.ts +12 -3
- package/dist/adapters/createAdapter.d.ts.map +1 -1
- package/dist/adapters/createAdapter.js +39 -13
- package/dist/adapters/createAdapter.js.map +1 -1
- package/dist/adapters/openCodeAdapter.d.ts +34 -0
- package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
- package/dist/adapters/openCodeAdapter.js +118 -11
- package/dist/adapters/openCodeAdapter.js.map +1 -1
- package/dist/apiErrorRetry.d.ts +11 -3
- package/dist/apiErrorRetry.d.ts.map +1 -1
- package/dist/apiErrorRetry.js +33 -3
- package/dist/apiErrorRetry.js.map +1 -1
- package/dist/apiRetryKick.d.ts +3 -2
- package/dist/apiRetryKick.d.ts.map +1 -1
- package/dist/apiRetryKick.js +13 -5
- package/dist/apiRetryKick.js.map +1 -1
- package/dist/bot.d.ts +2 -6
- package/dist/bot.d.ts.map +1 -1
- package/dist/bot.js +2009 -634
- package/dist/bot.js.map +1 -1
- package/dist/cli/claudeProfiles.d.ts +28 -6
- package/dist/cli/claudeProfiles.d.ts.map +1 -1
- package/dist/cli/claudeProfiles.js +89 -22
- package/dist/cli/claudeProfiles.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/connectors/jira/answerSink.d.ts +102 -7
- package/dist/connectors/jira/answerSink.d.ts.map +1 -1
- package/dist/connectors/jira/answerSink.js +364 -60
- package/dist/connectors/jira/answerSink.js.map +1 -1
- package/dist/connectors/jira/answerThreads.d.ts +44 -0
- package/dist/connectors/jira/answerThreads.d.ts.map +1 -0
- package/dist/connectors/jira/answerThreads.js +85 -0
- package/dist/connectors/jira/answerThreads.js.map +1 -0
- package/dist/connectors/jira/client.d.ts +67 -2
- package/dist/connectors/jira/client.d.ts.map +1 -1
- package/dist/connectors/jira/client.js +176 -4
- package/dist/connectors/jira/client.js.map +1 -1
- package/dist/connectors/jira/config.d.ts +6 -0
- package/dist/connectors/jira/config.d.ts.map +1 -1
- package/dist/connectors/jira/config.js +14 -1
- package/dist/connectors/jira/config.js.map +1 -1
- package/dist/connectors/jira/connector.d.ts +19 -0
- package/dist/connectors/jira/connector.d.ts.map +1 -1
- package/dist/connectors/jira/connector.js +68 -6
- package/dist/connectors/jira/connector.js.map +1 -1
- package/dist/connectors/jira/contextPreamble.d.ts.map +1 -1
- package/dist/connectors/jira/contextPreamble.js +6 -1
- package/dist/connectors/jira/contextPreamble.js.map +1 -1
- package/dist/connectors/jira/inbound.d.ts +21 -6
- package/dist/connectors/jira/inbound.d.ts.map +1 -1
- package/dist/connectors/jira/inbound.js +22 -16
- package/dist/connectors/jira/inbound.js.map +1 -1
- package/dist/connectors/jira/issueBlocks.d.ts +8 -1
- package/dist/connectors/jira/issueBlocks.d.ts.map +1 -1
- package/dist/connectors/jira/issueBlocks.js +38 -2
- package/dist/connectors/jira/issueBlocks.js.map +1 -1
- package/dist/connectors/jira/operatorIssue.d.ts +28 -0
- package/dist/connectors/jira/operatorIssue.d.ts.map +1 -0
- package/dist/connectors/jira/operatorIssue.js +81 -0
- package/dist/connectors/jira/operatorIssue.js.map +1 -0
- package/dist/connectors/jira/outbound.d.ts +8 -4
- package/dist/connectors/jira/outbound.d.ts.map +1 -1
- package/dist/connectors/jira/outbound.js +16 -8
- package/dist/connectors/jira/outbound.js.map +1 -1
- package/dist/connectors/jira/outgoingFileCheck.d.ts +37 -0
- package/dist/connectors/jira/outgoingFileCheck.d.ts.map +1 -0
- package/dist/connectors/jira/outgoingFileCheck.js +279 -0
- package/dist/connectors/jira/outgoingFileCheck.js.map +1 -0
- package/dist/connectors/jira/outgoingFiles.d.ts +81 -0
- package/dist/connectors/jira/outgoingFiles.d.ts.map +1 -0
- package/dist/connectors/jira/outgoingFiles.js +268 -0
- package/dist/connectors/jira/outgoingFiles.js.map +1 -0
- package/dist/connectors/jira/progressComments.d.ts +69 -0
- package/dist/connectors/jira/progressComments.d.ts.map +1 -0
- package/dist/connectors/jira/progressComments.js +136 -0
- package/dist/connectors/jira/progressComments.js.map +1 -0
- package/dist/connectors/jira/prompt.d.ts +5 -1
- package/dist/connectors/jira/prompt.d.ts.map +1 -1
- package/dist/connectors/jira/prompt.js +23 -3
- package/dist/connectors/jira/prompt.js.map +1 -1
- package/dist/connectors/jira/promptSpill.js +1 -1
- package/dist/connectors/jira/promptSpill.js.map +1 -1
- package/dist/connectors/jira/trigger.d.ts +13 -5
- package/dist/connectors/jira/trigger.d.ts.map +1 -1
- package/dist/connectors/jira/trigger.js +13 -7
- package/dist/connectors/jira/trigger.js.map +1 -1
- package/dist/connectors/jira/uploadedFiles.d.ts +48 -0
- package/dist/connectors/jira/uploadedFiles.d.ts.map +1 -0
- package/dist/connectors/jira/uploadedFiles.js +123 -0
- package/dist/connectors/jira/uploadedFiles.js.map +1 -0
- package/dist/connectors/telegram/commands/backendSwitch.d.ts +9 -1
- package/dist/connectors/telegram/commands/backendSwitch.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/backendSwitch.js +17 -8
- package/dist/connectors/telegram/commands/backendSwitch.js.map +1 -1
- package/dist/connectors/telegram/commands/botSkills.d.ts +2 -0
- package/dist/connectors/telegram/commands/botSkills.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/botSkills.js +17 -2
- package/dist/connectors/telegram/commands/botSkills.js.map +1 -1
- package/dist/connectors/telegram/commands/claudeAccounts.d.ts +6 -0
- package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/claudeAccounts.js +22 -4
- package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
- package/dist/connectors/telegram/commands/compaction.d.ts +14 -3
- package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/compaction.js +261 -96
- package/dist/connectors/telegram/commands/compaction.js.map +1 -1
- package/dist/connectors/telegram/commands/limitReminders.d.ts +21 -0
- package/dist/connectors/telegram/commands/limitReminders.d.ts.map +1 -0
- package/dist/connectors/telegram/commands/limitReminders.js +95 -0
- package/dist/connectors/telegram/commands/limitReminders.js.map +1 -0
- package/dist/connectors/telegram/commands/limitsBoard.d.ts +4 -0
- package/dist/connectors/telegram/commands/limitsBoard.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/limitsBoard.js +27 -6
- package/dist/connectors/telegram/commands/limitsBoard.js.map +1 -1
- package/dist/connectors/telegram/commands/modelProviders.d.ts +2 -2
- package/dist/connectors/telegram/commands/modelProviders.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/modelProviders.js +27 -16
- package/dist/connectors/telegram/commands/modelProviders.js.map +1 -1
- package/dist/connectors/telegram/commands/topicCommand.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/topicCommand.js +7 -2
- package/dist/connectors/telegram/commands/topicCommand.js.map +1 -1
- package/dist/connectors/telegram/commands/workerRoles.d.ts +25 -0
- package/dist/connectors/telegram/commands/workerRoles.d.ts.map +1 -0
- package/dist/connectors/telegram/commands/workerRoles.js +259 -0
- package/dist/connectors/telegram/commands/workerRoles.js.map +1 -0
- package/dist/connectors/telegram/groupWelcome.d.ts +12 -0
- package/dist/connectors/telegram/groupWelcome.d.ts.map +1 -0
- package/dist/connectors/telegram/groupWelcome.js +12 -0
- package/dist/connectors/telegram/groupWelcome.js.map +1 -0
- package/dist/connectors/telegram/inbound.d.ts +7 -0
- package/dist/connectors/telegram/inbound.d.ts.map +1 -1
- package/dist/connectors/telegram/inbound.js +10 -0
- package/dist/connectors/telegram/inbound.js.map +1 -1
- package/dist/connectors/telegram/outputFlushPlan.d.ts +12 -0
- package/dist/connectors/telegram/outputFlushPlan.d.ts.map +1 -1
- package/dist/connectors/telegram/outputFlushPlan.js +12 -0
- package/dist/connectors/telegram/outputFlushPlan.js.map +1 -1
- package/dist/connectors/telegram/runnerPairingMessages.d.ts +1 -1
- package/dist/connectors/telegram/topicIndicator.d.ts +1 -1
- package/dist/connectors/telegram/topicIndicator.d.ts.map +1 -1
- package/dist/connectors/telegram/topicIndicator.js +103 -5
- package/dist/connectors/telegram/topicIndicator.js.map +1 -1
- package/dist/effortLevels.d.ts +6 -0
- package/dist/effortLevels.d.ts.map +1 -1
- package/dist/effortLevels.js +6 -1
- package/dist/effortLevels.js.map +1 -1
- package/dist/i18n/de.d.ts.map +1 -1
- package/dist/i18n/de.js +95 -14
- package/dist/i18n/de.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +95 -14
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +95 -14
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +95 -14
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/hi.d.ts.map +1 -1
- package/dist/i18n/hi.js +95 -14
- package/dist/i18n/hi.js.map +1 -1
- package/dist/i18n/ja.d.ts.map +1 -1
- package/dist/i18n/ja.js +95 -14
- package/dist/i18n/ja.js.map +1 -1
- package/dist/i18n/ka.d.ts.map +1 -1
- package/dist/i18n/ka.js +95 -14
- package/dist/i18n/ka.js.map +1 -1
- package/dist/i18n/pt.d.ts.map +1 -1
- package/dist/i18n/pt.js +95 -14
- package/dist/i18n/pt.js.map +1 -1
- package/dist/i18n/ru.d.ts.map +1 -1
- package/dist/i18n/ru.js +95 -14
- package/dist/i18n/ru.js.map +1 -1
- package/dist/i18n/uk.d.ts.map +1 -1
- package/dist/i18n/uk.js +95 -14
- package/dist/i18n/uk.js.map +1 -1
- package/dist/i18n/uz.d.ts.map +1 -1
- package/dist/i18n/uz.js +95 -14
- package/dist/i18n/uz.js.map +1 -1
- package/dist/i18n/zh.d.ts.map +1 -1
- package/dist/i18n/zh.js +95 -14
- package/dist/i18n/zh.js.map +1 -1
- package/dist/instanceSettings.d.ts +24 -2
- package/dist/instanceSettings.d.ts.map +1 -1
- package/dist/instanceSettings.js +75 -3
- package/dist/instanceSettings.js.map +1 -1
- package/dist/limitNotes/engine.d.ts +47 -0
- package/dist/limitNotes/engine.d.ts.map +1 -0
- package/dist/limitNotes/engine.js +98 -0
- package/dist/limitNotes/engine.js.map +1 -0
- package/dist/limitNotes/noteText.d.ts +33 -0
- package/dist/limitNotes/noteText.d.ts.map +1 -0
- package/dist/limitNotes/noteText.js +55 -0
- package/dist/limitNotes/noteText.js.map +1 -0
- package/dist/limitNotes/plan.d.ts +147 -0
- package/dist/limitNotes/plan.d.ts.map +1 -0
- package/dist/limitNotes/plan.js +323 -0
- package/dist/limitNotes/plan.js.map +1 -0
- package/dist/limitNotes/reminderChoices.d.ts +30 -0
- package/dist/limitNotes/reminderChoices.d.ts.map +1 -0
- package/dist/limitNotes/reminderChoices.js +48 -0
- package/dist/limitNotes/reminderChoices.js.map +1 -0
- package/dist/limitNotes/service.d.ts +106 -0
- package/dist/limitNotes/service.d.ts.map +1 -0
- package/dist/limitNotes/service.js +169 -0
- package/dist/limitNotes/service.js.map +1 -0
- package/dist/openCodeSessionTitle.js +1 -1
- package/dist/openCodeSessionTitle.js.map +1 -1
- package/dist/outputTrace.d.ts +19 -0
- package/dist/outputTrace.d.ts.map +1 -1
- package/dist/outputTrace.js +23 -2
- package/dist/outputTrace.js.map +1 -1
- package/dist/platform/answerSink.d.ts +23 -0
- package/dist/platform/answerSink.d.ts.map +1 -1
- package/dist/platform/answerSink.js.map +1 -1
- package/dist/platform/operatorAlert.d.ts +24 -0
- package/dist/platform/operatorAlert.d.ts.map +1 -0
- package/dist/platform/operatorAlert.js +9 -0
- package/dist/platform/operatorAlert.js.map +1 -0
- package/dist/postToSession.d.ts +34 -2
- package/dist/postToSession.d.ts.map +1 -1
- package/dist/postToSession.js +31 -2
- package/dist/postToSession.js.map +1 -1
- package/dist/remoteRun/exitCodes.d.ts +2 -2
- package/dist/remoteRun/exitCodes.d.ts.map +1 -1
- package/dist/remoteRun/exitCodes.js +2 -2
- package/dist/remoteRun/exitCodes.js.map +1 -1
- package/dist/remoteRun/foreground.d.ts.map +1 -1
- package/dist/remoteRun/foreground.js +5 -1
- package/dist/remoteRun/foreground.js.map +1 -1
- package/dist/remoteRun/runnerClient.d.ts +1 -1
- package/dist/remoteRun/runnerClient.d.ts.map +1 -1
- package/dist/remoteRun/runnerClient.js +3 -3
- package/dist/remoteRun/runnerClient.js.map +1 -1
- package/dist/requests/answerRequest.d.ts +3 -0
- package/dist/requests/answerRequest.d.ts.map +1 -1
- package/dist/requests/answerRequest.js +9 -2
- package/dist/requests/answerRequest.js.map +1 -1
- package/dist/requests/limitWaitAnswer.d.ts +14 -0
- package/dist/requests/limitWaitAnswer.d.ts.map +1 -1
- package/dist/requests/limitWaitAnswer.js +26 -4
- package/dist/requests/limitWaitAnswer.js.map +1 -1
- package/dist/requests/requestHeader.d.ts +37 -5
- package/dist/requests/requestHeader.d.ts.map +1 -1
- package/dist/requests/requestHeader.js +46 -17
- package/dist/requests/requestHeader.js.map +1 -1
- package/dist/requests/scheduleWait.d.ts +79 -0
- package/dist/requests/scheduleWait.d.ts.map +1 -0
- package/dist/requests/scheduleWait.js +101 -0
- package/dist/requests/scheduleWait.js.map +1 -0
- package/dist/requests/sessionTurnProbe.d.ts +21 -3
- package/dist/requests/sessionTurnProbe.d.ts.map +1 -1
- package/dist/requests/sessionTurnProbe.js +18 -3
- package/dist/requests/sessionTurnProbe.js.map +1 -1
- package/dist/requests/topicRequestSettle.d.ts +13 -7
- package/dist/requests/topicRequestSettle.d.ts.map +1 -1
- package/dist/requests/topicRequestSettle.js +2 -2
- package/dist/requests/topicRequestSettle.js.map +1 -1
- package/dist/requests/trackerTurnPoster.d.ts +30 -0
- package/dist/requests/trackerTurnPoster.d.ts.map +1 -0
- package/dist/requests/trackerTurnPoster.js +36 -0
- package/dist/requests/trackerTurnPoster.js.map +1 -0
- package/dist/requests/types.d.ts +9 -2
- package/dist/requests/types.d.ts.map +1 -1
- package/dist/requests/wakeUpEngine.d.ts +188 -11
- package/dist/requests/wakeUpEngine.d.ts.map +1 -1
- package/dist/requests/wakeUpEngine.js +452 -43
- package/dist/requests/wakeUpEngine.js.map +1 -1
- package/dist/requests/wakeUpRules.d.ts +122 -12
- package/dist/requests/wakeUpRules.d.ts.map +1 -1
- package/dist/requests/wakeUpRules.js +117 -15
- package/dist/requests/wakeUpRules.js.map +1 -1
- package/dist/resumeContext.d.ts +2 -2
- package/dist/resumeContext.js +3 -3
- package/dist/resumeContext.js.map +1 -1
- package/dist/runnerUtility/adminService.js +1 -1
- package/dist/runnerUtility/adminService.js.map +1 -1
- package/dist/runnerUtility/guiAgent.d.ts +1 -1
- package/dist/runnerUtility/guiAgent.d.ts.map +1 -1
- package/dist/runnerUtility/guiAgent.js +1 -1
- package/dist/runnerUtility/guiAgent.js.map +1 -1
- package/dist/runnerUtility/managedNode.d.ts +3 -3
- package/dist/runnerUtility/managedNode.d.ts.map +1 -1
- package/dist/runnerUtility/managedNode.js +2 -2
- package/dist/runnerUtility/managedNode.js.map +1 -1
- package/dist/runnerUtility/runnerConfig.d.ts +1 -1
- package/dist/runnerUtility/runnerHome.d.ts +1 -1
- package/dist/runnerUtility/runnerHome.js +1 -1
- package/dist/runnerUtility/serviceCommon.d.ts +1 -1
- package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
- package/dist/runnerUtility/serviceCommon.js +1 -1
- package/dist/runnerUtility/serviceCommon.js.map +1 -1
- package/dist/runners/bootstrapLine.js +1 -1
- package/dist/runners/hubPackage.d.ts +1 -1
- package/dist/runners/hubPackage.js +3 -3
- package/dist/runners/hubPackage.js.map +1 -1
- package/dist/runners/hubPaths.d.ts +1 -1
- package/dist/runners/hubPaths.d.ts.map +1 -1
- package/dist/runners/runnerLock.d.ts +2 -2
- package/dist/runners/runnerLock.d.ts.map +1 -1
- package/dist/runners/runnerLock.js +2 -2
- package/dist/runners/runnerLock.js.map +1 -1
- package/dist/scheduler/checkRun.d.ts +2 -0
- package/dist/scheduler/checkRun.d.ts.map +1 -1
- package/dist/scheduler/checkRun.js +5 -1
- package/dist/scheduler/checkRun.js.map +1 -1
- package/dist/scheduler/delivery.d.ts +57 -0
- package/dist/scheduler/delivery.d.ts.map +1 -1
- package/dist/scheduler/delivery.js +152 -14
- package/dist/scheduler/delivery.js.map +1 -1
- package/dist/scheduler/injection.d.ts +6 -0
- package/dist/scheduler/injection.d.ts.map +1 -1
- package/dist/scheduler/injection.js +10 -0
- package/dist/scheduler/injection.js.map +1 -1
- package/dist/scheduler/mcpSurface.d.ts +38 -3
- package/dist/scheduler/mcpSurface.d.ts.map +1 -1
- package/dist/scheduler/mcpSurface.js +291 -175
- package/dist/scheduler/mcpSurface.js.map +1 -1
- package/dist/scheduler/rebindResume.d.ts +24 -0
- package/dist/scheduler/rebindResume.d.ts.map +1 -1
- package/dist/scheduler/rebindResume.js +32 -0
- package/dist/scheduler/rebindResume.js.map +1 -1
- package/dist/scheduler/scheduleToolWording.d.ts +29 -0
- package/dist/scheduler/scheduleToolWording.d.ts.map +1 -0
- package/dist/scheduler/scheduleToolWording.js +117 -0
- package/dist/scheduler/scheduleToolWording.js.map +1 -0
- package/dist/scheduler/scheduledRunTarget.d.ts +90 -0
- package/dist/scheduler/scheduledRunTarget.d.ts.map +1 -0
- package/dist/scheduler/scheduledRunTarget.js +92 -0
- package/dist/scheduler/scheduledRunTarget.js.map +1 -0
- package/dist/scheduler/store.d.ts +2 -0
- package/dist/scheduler/store.d.ts.map +1 -1
- package/dist/scheduler/store.js +2 -0
- package/dist/scheduler/store.js.map +1 -1
- package/dist/scheduler/types.d.ts +10 -0
- package/dist/scheduler/types.d.ts.map +1 -1
- package/dist/scheduler/workerWatch.d.ts +2 -0
- package/dist/scheduler/workerWatch.d.ts.map +1 -1
- package/dist/scheduler/workerWatch.js +3 -3
- package/dist/scheduler/workerWatch.js.map +1 -1
- package/dist/selfUpdate/constants.d.ts +2 -0
- package/dist/selfUpdate/constants.d.ts.map +1 -1
- package/dist/selfUpdate/constants.js +3 -1
- package/dist/selfUpdate/constants.js.map +1 -1
- package/dist/selfUpdate/emittedSource.d.ts.map +1 -1
- package/dist/selfUpdate/emittedSource.js +1 -1
- package/dist/selfUpdate/emittedSource.js.map +1 -1
- package/dist/selfUpdate/updateRuntime.js +1 -1
- package/dist/selfUpdate/updateRuntime.js.map +1 -1
- package/dist/sessionPick.d.ts +1 -1
- package/dist/sessionPick.js +1 -1
- package/dist/startupPromptBuffer.d.ts +35 -6
- package/dist/startupPromptBuffer.d.ts.map +1 -1
- package/dist/startupPromptBuffer.js +70 -21
- package/dist/startupPromptBuffer.js.map +1 -1
- package/dist/state.d.ts +173 -25
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +282 -58
- package/dist/state.js.map +1 -1
- package/dist/testTimings.d.ts +8 -3
- package/dist/testTimings.d.ts.map +1 -1
- package/dist/testTimings.js +15 -2
- package/dist/testTimings.js.map +1 -1
- package/dist/threadContextPreamble.d.ts +7 -0
- package/dist/threadContextPreamble.d.ts.map +1 -1
- package/dist/threadContextPreamble.js +11 -0
- package/dist/threadContextPreamble.js.map +1 -1
- package/dist/threadRouting.d.ts +12 -0
- package/dist/threadRouting.d.ts.map +1 -1
- package/dist/threadRouting.js +15 -0
- package/dist/threadRouting.js.map +1 -1
- package/dist/todos/midTurn.d.ts +15 -41
- package/dist/todos/midTurn.d.ts.map +1 -1
- package/dist/todos/midTurn.js +27 -171
- package/dist/todos/midTurn.js.map +1 -1
- package/dist/types.d.ts +147 -23
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +10 -0
- package/dist/types.js.map +1 -1
- package/dist/utils/backendSwitchPlan.d.ts +3 -3
- package/dist/utils/backendSwitchPlan.js +3 -3
- package/dist/utils/claudeAccountAlert.d.ts +104 -0
- package/dist/utils/claudeAccountAlert.d.ts.map +1 -0
- package/dist/utils/claudeAccountAlert.js +130 -0
- package/dist/utils/claudeAccountAlert.js.map +1 -0
- package/dist/utils/claudeAccountPickerPlan.d.ts +7 -0
- package/dist/utils/claudeAccountPickerPlan.d.ts.map +1 -1
- package/dist/utils/claudeAccountPickerPlan.js +13 -2
- package/dist/utils/claudeAccountPickerPlan.js.map +1 -1
- package/dist/utils/claudeAuthRefusal.d.ts +122 -0
- package/dist/utils/claudeAuthRefusal.d.ts.map +1 -0
- package/dist/utils/claudeAuthRefusal.js +228 -0
- package/dist/utils/claudeAuthRefusal.js.map +1 -0
- package/dist/utils/claudeCompactHook.d.ts +6 -6
- package/dist/utils/claudeCompactHook.js +8 -8
- package/dist/utils/claudeCompactHook.js.map +1 -1
- package/dist/utils/claudeProfileUsageViews.d.ts +54 -2
- package/dist/utils/claudeProfileUsageViews.d.ts.map +1 -1
- package/dist/utils/claudeProfileUsageViews.js +44 -1
- package/dist/utils/claudeProfileUsageViews.js.map +1 -1
- package/dist/utils/claudeProfiles.d.ts.map +1 -1
- package/dist/utils/claudeProfiles.js +10 -1
- package/dist/utils/claudeProfiles.js.map +1 -1
- package/dist/utils/claudeRuntimeInfo.d.ts +24 -0
- package/dist/utils/claudeRuntimeInfo.d.ts.map +1 -1
- package/dist/utils/claudeRuntimeInfo.js +128 -3
- package/dist/utils/claudeRuntimeInfo.js.map +1 -1
- package/dist/utils/claudeScheduledJobs.d.ts +6 -2
- package/dist/utils/claudeScheduledJobs.d.ts.map +1 -1
- package/dist/utils/claudeScheduledJobs.js +10 -2
- package/dist/utils/claudeScheduledJobs.js.map +1 -1
- package/dist/utils/claudeSessionTitle.js +1 -1
- package/dist/utils/claudeSessionTitle.js.map +1 -1
- package/dist/utils/claudeStreamJson.d.ts +28 -2
- package/dist/utils/claudeStreamJson.d.ts.map +1 -1
- package/dist/utils/claudeStreamJson.js +33 -3
- package/dist/utils/claudeStreamJson.js.map +1 -1
- package/dist/utils/claudeTranscriptEpoch.d.ts +14 -0
- package/dist/utils/claudeTranscriptEpoch.d.ts.map +1 -1
- package/dist/utils/claudeTranscriptEpoch.js +79 -19
- package/dist/utils/claudeTranscriptEpoch.js.map +1 -1
- package/dist/utils/claudeUsage.d.ts +103 -7
- package/dist/utils/claudeUsage.d.ts.map +1 -1
- package/dist/utils/claudeUsage.js +108 -15
- package/dist/utils/claudeUsage.js.map +1 -1
- package/dist/utils/compactOnIdle.d.ts +139 -29
- package/dist/utils/compactOnIdle.d.ts.map +1 -1
- package/dist/utils/compactOnIdle.js +163 -36
- package/dist/utils/compactOnIdle.js.map +1 -1
- package/dist/utils/conversationEnding.d.ts +76 -0
- package/dist/utils/conversationEnding.d.ts.map +1 -0
- package/dist/utils/conversationEnding.js +117 -0
- package/dist/utils/conversationEnding.js.map +1 -0
- package/dist/utils/doctorLine.d.ts +10 -0
- package/dist/utils/doctorLine.d.ts.map +1 -1
- package/dist/utils/doctorLine.js +16 -0
- package/dist/utils/doctorLine.js.map +1 -1
- package/dist/utils/fallbackBridge.d.ts.map +1 -1
- package/dist/utils/fallbackBridge.js +2 -1
- package/dist/utils/fallbackBridge.js.map +1 -1
- package/dist/utils/fallbackChain.d.ts +2 -0
- package/dist/utils/fallbackChain.d.ts.map +1 -1
- package/dist/utils/fallbackChain.js +4 -3
- package/dist/utils/fallbackChain.js.map +1 -1
- package/dist/utils/fallbackSwitchNotice.d.ts +11 -4
- package/dist/utils/fallbackSwitchNotice.d.ts.map +1 -1
- package/dist/utils/fallbackSwitchNotice.js +9 -5
- package/dist/utils/fallbackSwitchNotice.js.map +1 -1
- package/dist/utils/fileSendService.d.ts +31 -0
- package/dist/utils/fileSendService.d.ts.map +1 -1
- package/dist/utils/fileSendService.js +45 -2
- package/dist/utils/fileSendService.js.map +1 -1
- package/dist/utils/jsonStreamHost.d.ts +2 -0
- package/dist/utils/jsonStreamHost.d.ts.map +1 -1
- package/dist/utils/jsonStreamHost.js +4 -1
- package/dist/utils/jsonStreamHost.js.map +1 -1
- package/dist/utils/jsonStreamPendingWork.d.ts +14 -2
- package/dist/utils/jsonStreamPendingWork.d.ts.map +1 -1
- package/dist/utils/jsonStreamPendingWork.js +25 -5
- package/dist/utils/jsonStreamPendingWork.js.map +1 -1
- package/dist/utils/jsonStreamUnconsumedInput.d.ts +80 -0
- package/dist/utils/jsonStreamUnconsumedInput.d.ts.map +1 -0
- package/dist/utils/jsonStreamUnconsumedInput.js +99 -0
- package/dist/utils/jsonStreamUnconsumedInput.js.map +1 -0
- package/dist/utils/limitEpisodeRecovery.d.ts +43 -4
- package/dist/utils/limitEpisodeRecovery.d.ts.map +1 -1
- package/dist/utils/limitEpisodeRecovery.js +107 -20
- package/dist/utils/limitEpisodeRecovery.js.map +1 -1
- package/dist/utils/limitHeldPrompts.d.ts +21 -11
- package/dist/utils/limitHeldPrompts.d.ts.map +1 -1
- package/dist/utils/limitHeldPrompts.js +12 -9
- package/dist/utils/limitHeldPrompts.js.map +1 -1
- package/dist/utils/limitRemindersScreenPlan.d.ts +63 -0
- package/dist/utils/limitRemindersScreenPlan.d.ts.map +1 -0
- package/dist/utils/limitRemindersScreenPlan.js +121 -0
- package/dist/utils/limitRemindersScreenPlan.js.map +1 -0
- package/dist/utils/limitsBoardPlan.d.ts +16 -7
- package/dist/utils/limitsBoardPlan.d.ts.map +1 -1
- package/dist/utils/limitsBoardPlan.js +41 -9
- package/dist/utils/limitsBoardPlan.js.map +1 -1
- package/dist/utils/lostWork.d.ts +16 -2
- package/dist/utils/lostWork.d.ts.map +1 -1
- package/dist/utils/lostWork.js +16 -3
- package/dist/utils/lostWork.js.map +1 -1
- package/dist/utils/messageContext.d.ts +2 -2
- package/dist/utils/messageContext.js +2 -2
- package/dist/utils/midTurnInbox.d.ts +79 -0
- package/dist/utils/midTurnInbox.d.ts.map +1 -0
- package/dist/utils/midTurnInbox.js +265 -0
- package/dist/utils/midTurnInbox.js.map +1 -0
- package/dist/utils/promptDelivery.d.ts +70 -22
- package/dist/utils/promptDelivery.d.ts.map +1 -1
- package/dist/utils/promptDelivery.js +100 -42
- package/dist/utils/promptDelivery.js.map +1 -1
- package/dist/utils/topicIndicatorPlan.d.ts +13 -3
- package/dist/utils/topicIndicatorPlan.d.ts.map +1 -1
- package/dist/utils/topicIndicatorPlan.js +26 -4
- package/dist/utils/topicIndicatorPlan.js.map +1 -1
- package/dist/utils/topicRequest.d.ts +3 -0
- package/dist/utils/topicRequest.d.ts.map +1 -1
- package/dist/utils/topicRequest.js +4 -0
- package/dist/utils/topicRequest.js.map +1 -1
- package/dist/utils/workerRoles.d.ts +122 -0
- package/dist/utils/workerRoles.d.ts.map +1 -0
- package/dist/utils/workerRoles.js +160 -0
- package/dist/utils/workerRoles.js.map +1 -0
- package/dist/utils/workerRolesScreenPlan.d.ts +118 -0
- package/dist/utils/workerRolesScreenPlan.d.ts.map +1 -0
- package/dist/utils/workerRolesScreenPlan.js +232 -0
- package/dist/utils/workerRolesScreenPlan.js.map +1 -0
- package/dist/utils/workingSignals.d.ts +49 -0
- package/dist/utils/workingSignals.d.ts.map +1 -0
- package/dist/utils/workingSignals.js +41 -0
- package/dist/utils/workingSignals.js.map +1 -0
- package/licensing.json +88 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +7 -7
- package/{remoteRun → runner-scripts}/runner.sh +6 -3
- package/LICENSE-COMMERCIAL.md +0 -142
- package/dist/agentTrigger.d.ts +0 -28
- package/dist/agentTrigger.d.ts.map +0 -1
- package/dist/agentTrigger.js +0 -53
- package/dist/agentTrigger.js.map +0 -1
- /package/{remoteRun → runner-scripts}/ensureNode.sh +0 -0
- /package/{remoteRun → runner-scripts}/runner-package-lock.json +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topicRequestSettle.js","sourceRoot":"","sources":["../../src/requests/topicRequestSettle.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"topicRequestSettle.js","sourceRoot":"","sources":["../../src/requests/topicRequestSettle.ts"],"names":[],"mappings":";;AAqCA,8DAsBC;AAtBD,SAAgB,yBAAyB,CAAC,KAA8B;IACtE,MAAM,SAAS,GAAG,CAAC,GAAe,EAAE,OAAwB,EAAQ,EAAE;QACpE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;QAC9B,IAAI,SAAS,KAAK,IAAI;YAAE,OAAO;QAC/B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CACnG,KAAK,CAAC,IAAI,CAAC,mCAAmC,SAAS,YAAY,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CACrH,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,mBAAmB,GAAG,KAAK,EAAE,GAAe,EAAE,OAAwB,EAAE,QAA2B,EAAiB,EAAE;QAC1H,IAAI,QAAQ,KAAK,WAAW,EAAE,CAAC;YAC7B,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;YACxB,OAAO;QACT,CAAC;QACD,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;QAC9B,IAAI,SAAS,KAAK,IAAI;YAAE,OAAO;QAC/B,MAAM,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CACnD,KAAK,CAAC,IAAI,CAAC,kCAAkC,SAAS,8CAA8C,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CACtJ,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,EAAE,mBAAmB,EAAE,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { SessionKey } from '../sessionKey';
|
|
2
|
+
import type { PostToSessionOptions, PostToSessionResult, SessionPromptText } from '../postToSession';
|
|
3
|
+
import type { RequestWakeUpEngine } from './wakeUpEngine';
|
|
4
|
+
/**
|
|
5
|
+
* @description What a tracker conversation's request prompt and issue update do once handed to the session post: the post itself,
|
|
6
|
+
* then the wake-up engine's part — watch the turn the prompt started, hand a failed post to the retries (R28), or, for a requester's
|
|
7
|
+
* comment HELD over a usage-limit wait, record that the request owes an answer from now on (`notePersonInputHeld`: no turn starts
|
|
8
|
+
* for it until the wait ends, and the turn that carries it then must be read against what the request owes). The turn is watched
|
|
9
|
+
* INSIDE the post, right after the write (`afterForward`): a reminder the post delivers after it then joins a turn this request
|
|
10
|
+
* started, so a job the agent arms in it is armed under this request (`requests/README.md` § Turn starts). A module of its own,
|
|
11
|
+
* over ports, so every branch is tested for real; `bot.ts` wires the shared session post and the engine.
|
|
12
|
+
*/
|
|
13
|
+
/** The wake-up engine's part in posting a tracker turn. */
|
|
14
|
+
export type TrackerTurnEngine = Pick<RequestWakeUpEngine, 'trackForwardedTurn' | 'notePostFailed' | 'notePersonInputHeld'>;
|
|
15
|
+
export interface TrackerTurnPosterPorts {
|
|
16
|
+
/** The shared session post (`postToSession`) of this conversation's adapter; `afterForward` watches the turn the write started. */
|
|
17
|
+
post: (key: SessionKey, prompt: SessionPromptText, options: Pick<PostToSessionOptions, 'afterForward'>) => Promise<PostToSessionResult>;
|
|
18
|
+
/** A person's message restarts the idle countdown like a topic's message does (and lifts the todo reminder's silence). */
|
|
19
|
+
notePersonActivity: (key: SessionKey) => void;
|
|
20
|
+
/** The wake-up engine, read at call time: it is built after the connector's deps. */
|
|
21
|
+
getEngine: () => TrackerTurnEngine | null;
|
|
22
|
+
}
|
|
23
|
+
export interface TrackerTurnPoster {
|
|
24
|
+
/** Post a request's prompt; a failure is handed to the engine's post retries and thrown back to the connector. */
|
|
25
|
+
postRequest: (key: SessionKey, requestId: string, prompt: SessionPromptText) => Promise<void>;
|
|
26
|
+
/** Post an issue update for the request `getTargetRequestId` names (read once the update is written); opens no request. */
|
|
27
|
+
postUpdate: (key: SessionKey, prompt: SessionPromptText, getTargetRequestId: () => string) => Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
export declare function createTrackerTurnPoster(ports: TrackerTurnPosterPorts): TrackerTurnPoster;
|
|
30
|
+
//# sourceMappingURL=trackerTurnPoster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trackerTurnPoster.d.ts","sourceRoot":"","sources":["../../src/requests/trackerTurnPoster.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D;;;;;;;;GAQG;AAEH,2DAA2D;AAC3D,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,mBAAmB,EAAE,oBAAoB,GAAG,gBAAgB,GAAG,qBAAqB,CAAC,CAAC;AAE3H,MAAM,WAAW,sBAAsB;IACrC,mIAAmI;IACnI,IAAI,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,cAAc,CAAC,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACxI,0HAA0H;IAC1H,kBAAkB,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,qFAAqF;IACrF,SAAS,EAAE,MAAM,iBAAiB,GAAG,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IAChC,kHAAkH;IAClH,WAAW,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9F,2HAA2H;IAC3H,UAAU,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7G;AAMD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,sBAAsB,GAAG,iBAAiB,CA0BxF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createTrackerTurnPoster = createTrackerTurnPoster;
|
|
4
|
+
function getPostFailureMessage(posted) {
|
|
5
|
+
return posted.reason === 'forward-failed' ? posted.error : `session ${posted.reason}`;
|
|
6
|
+
}
|
|
7
|
+
function createTrackerTurnPoster(ports) {
|
|
8
|
+
return {
|
|
9
|
+
postRequest: async (key, requestId, prompt) => {
|
|
10
|
+
ports.notePersonActivity(key);
|
|
11
|
+
// A held request is tracked when the wait's resume, or else its next wake-up, posts its prompt (R21): it has no answer yet,
|
|
12
|
+
// so it owes one the whole time.
|
|
13
|
+
const posted = await ports.post(key, prompt, {
|
|
14
|
+
afterForward: async () => { await ports.getEngine()?.trackForwardedTurn(key, requestId, { isRequestPrompt: true }); },
|
|
15
|
+
});
|
|
16
|
+
if (!posted.ok) {
|
|
17
|
+
// R28: retried at about 1, 5 and 15 min, outside the wake-up cap.
|
|
18
|
+
await ports.getEngine()?.notePostFailed(key, requestId);
|
|
19
|
+
throw new Error(getPostFailureMessage(posted));
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
postUpdate: async (key, prompt, getTargetRequestId) => {
|
|
23
|
+
ports.notePersonActivity(key);
|
|
24
|
+
// A requester's comment carries a person's words: forwarded, the turn it starts owes them an answer; held, they are owed already.
|
|
25
|
+
const posted = await ports.post(key, prompt, {
|
|
26
|
+
afterForward: async () => { await ports.getEngine()?.trackForwardedTurn(key, getTargetRequestId(), { isRequestPrompt: false, isPersonInput: true }); },
|
|
27
|
+
});
|
|
28
|
+
// A failure goes back to the connector, which decides the comment again.
|
|
29
|
+
if (!posted.ok)
|
|
30
|
+
throw new Error(getPostFailureMessage(posted));
|
|
31
|
+
if (posted.isHeld)
|
|
32
|
+
await ports.getEngine()?.notePersonInputHeld(key, getTargetRequestId());
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=trackerTurnPoster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trackerTurnPoster.js","sourceRoot":"","sources":["../../src/requests/trackerTurnPoster.ts"],"names":[],"mappings":";;AAqCA,0DA0BC;AA9BD,SAAS,qBAAqB,CAAC,MAAmD;IAChF,OAAO,MAAM,CAAC,MAAM,KAAK,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,MAAM,CAAC,MAAM,EAAE,CAAC;AACxF,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA6B;IACnE,OAAO;QACL,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE;YAC5C,KAAK,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;YAC9B,4HAA4H;YAC5H,iCAAiC;YACjC,MAAM,MAAM,GAAG,MAAM,K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
|
@@ -60,7 +60,7 @@ export interface OpenRequestState {
|
|
|
60
60
|
progressAnswerCount: number;
|
|
61
61
|
/** Consecutive turns that ended without any answer. */
|
|
62
62
|
silentTurnCount: number;
|
|
63
|
-
/** Wake-ups delivered
|
|
63
|
+
/** Wake-ups delivered since the agent last answered one with a progress note (the loop-guard cap counts these). */
|
|
64
64
|
wakeCount: number;
|
|
65
65
|
/** Epoch ms of the next scheduled wake-up, when one is armed. */
|
|
66
66
|
nextWakeAt?: number;
|
|
@@ -89,6 +89,13 @@ export interface OpenRequestState {
|
|
|
89
89
|
* when a limit wait later ends with a resume. Absent = not stopped.
|
|
90
90
|
*/
|
|
91
91
|
isLimitStopped?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* A person's words reached the agent after the request's last answer (an issue update, a re-posted prompt) and nothing was
|
|
94
|
+
* answered yet. Persisted, because the engine's watches are in memory: a request that waits for its schedule is held between
|
|
95
|
+
* turns only while it owes nobody an answer (`checkIsAnswerOwed`), so a turn whose watch was lost (a restart, a dead process)
|
|
96
|
+
* still reaches the backstop. Cleared when an answer is delivered. Absent = none owed beyond the ones the other fields show.
|
|
97
|
+
*/
|
|
98
|
+
isPersonInputUnanswered?: boolean;
|
|
92
99
|
/**
|
|
93
100
|
* Which limit wait the bot already answered this request about (see
|
|
94
101
|
* `getUsageLimitWaitIdentity`), so each request hears about each wait once.
|
|
@@ -114,7 +121,7 @@ export interface OpenRequestState {
|
|
|
114
121
|
* @description The fields of an open request the answer handling and the
|
|
115
122
|
* wake-up engine may change.
|
|
116
123
|
*/
|
|
117
|
-
export type OpenRequestUpdate = Partial<Pick<OpenRequestState, 'progressAnswerCount' | 'silentTurnCount' | 'wakeCount' | 'nextWakeAt' | 'lastTurnActivityAt' | 'isWakeStopped' | 'isLimitStopped' | 'limitWaitAnsweredFor' | 'alertRef' | 'isPromptTakenIn' | 'postRetryCount' | 'nextPostRetryAt'>>;
|
|
124
|
+
export type OpenRequestUpdate = Partial<Pick<OpenRequestState, 'progressAnswerCount' | 'silentTurnCount' | 'wakeCount' | 'nextWakeAt' | 'lastTurnActivityAt' | 'isWakeStopped' | 'isLimitStopped' | 'isPersonInputUnanswered' | 'limitWaitAnsweredFor' | 'alertRef' | 'isPromptTakenIn' | 'postRetryCount' | 'nextPostRetryAt'>>;
|
|
118
125
|
/**
|
|
119
126
|
* @name ClosedRequestRecord
|
|
120
127
|
* @description One line of the request history (`DATA_DIR/requests.jsonl`): the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/requests/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,cAAc,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAE/F;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,iBAAiB,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,CAAC;AAEnF;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,aAAa,CAAC;IACtB,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uDAAuD;IACvD,eAAe,EAAE,MAAM,CAAC;IACxB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/requests/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,cAAc,GAAG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
|
import { type SessionKey } from '../sessionKey';
|
|
2
2
|
import type { RequestLedger } from './requestLedger';
|
|
3
|
+
import { type RequestScheduleWait } from './scheduleWait';
|
|
3
4
|
import type { OpenRequestState, RequestAlertReason, RequestAnswerKind } from './types';
|
|
4
5
|
import { type WakeUpMessage } from './requestHeader';
|
|
5
6
|
import { type SessionTurnProbe } from './wakeUpRules';
|
|
@@ -21,6 +22,12 @@ import { type SessionTurnProbe } from './wakeUpRules';
|
|
|
21
22
|
*
|
|
22
23
|
* A wake-up is a reminder forwarded into the SAME session — never a request.
|
|
23
24
|
* The answer tails are in memory as well: a restart forgets them.
|
|
25
|
+
*
|
|
26
|
+
* A request waits for its schedule while a job armed under it counts (`scheduleWait.ts`, read through the optional
|
|
27
|
+
* `getScheduleWait` port at every decision): the rules then neither prod it nor wake it at a restart, and a turn a scheduler
|
|
28
|
+
* fire started (`isScheduledRun`) that ends without an answer is not silence. A request that owes a person an answer
|
|
29
|
+
* (`checkIsAnswerOwed`) is never held: it is read from the persisted request, so a turn whose watch a restart lost still reaches the
|
|
30
|
+
* backstop. The complete table is `README.md` § Wake-ups.
|
|
24
31
|
*/
|
|
25
32
|
/** How often a watched turn is polled for its end. */
|
|
26
33
|
export declare const watchedTurnPollMs = 10000;
|
|
@@ -47,6 +54,12 @@ export declare const restartWakeStaggerMs = 30000;
|
|
|
47
54
|
export interface RequestWakeUpEngineDeps {
|
|
48
55
|
ledger: Pick<RequestLedger, 'getOpenRequestById' | 'listOpenRequestsOf' | 'listOpenRequests' | 'updateOpenRequest' | 'closeRequest' | 'recordAlert'>;
|
|
49
56
|
probeTurn: (key: SessionKey) => SessionTurnProbe;
|
|
57
|
+
/**
|
|
58
|
+
* Bring what the bot knows of the conversation's live process up to what it wrote so far, right before
|
|
59
|
+
* {@link RequestWakeUpEngine.readPromptsReachedOrHeld} probes it: the json-stream tail is polled with a backoff, so an echo the
|
|
60
|
+
* process already wrote may not be read yet (review 28, own pass). Absent: the probe is current.
|
|
61
|
+
*/
|
|
62
|
+
refreshProcessState?: (key: SessionKey) => void;
|
|
50
63
|
prepareWakeUpSession: (key: SessionKey, message: WakeUpMessage) => Promise<boolean>;
|
|
51
64
|
/** Forward the wake-up's message (the request's prompt again, or a reminder) into the session. */
|
|
52
65
|
forwardWakeUp: (key: SessionKey, request: OpenRequestState, message: WakeUpMessage) => Promise<void>;
|
|
@@ -58,6 +71,8 @@ export interface RequestWakeUpEngineDeps {
|
|
|
58
71
|
pollIntervalMs?: number;
|
|
59
72
|
/** The first retry of a prompt that could not be posted; absent: `postRetryDelaysMs[0]` (a test instance shortens it). */
|
|
60
73
|
firstPostRetryDelayMs?: number;
|
|
74
|
+
/** How long after a progress note the agent is reminded; absent: {@link progressFollowUpDelayMs} (a test instance shortens it). */
|
|
75
|
+
progressFollowUpMs?: number;
|
|
61
76
|
/** The gap between two `restarted` wakes, and before the first; absent: {@link restartWakeStaggerMs} (a test instance shortens it). */
|
|
62
77
|
restartWakeStaggerMs?: number;
|
|
63
78
|
/** A `restarted` wake reached the conversation's session (the bot keeps the stamp its crash-loop guard reads). */
|
|
@@ -66,6 +81,11 @@ export interface RequestWakeUpEngineDeps {
|
|
|
66
81
|
checkIsAnswerTailWatched?: (key: SessionKey) => boolean;
|
|
67
82
|
/** Bring the session up (resume only) and forward the answer-tail reminder; `false` when it could not be reached. */
|
|
68
83
|
remindAnswerTail?: (key: SessionKey, text: string) => Promise<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
* What the request's armed jobs say about it (`scheduleWait.ts`), read when a decision is made — never cached. Absent: a
|
|
86
|
+
* request never waits for a schedule.
|
|
87
|
+
*/
|
|
88
|
+
getScheduleWait?: (key: SessionKey, request: OpenRequestState) => RequestScheduleWait;
|
|
69
89
|
now?: () => number;
|
|
70
90
|
}
|
|
71
91
|
export declare class RequestWakeUpEngine {
|
|
@@ -73,18 +93,30 @@ export declare class RequestWakeUpEngine {
|
|
|
73
93
|
private readonly now;
|
|
74
94
|
/** The watched turns by REQUEST id (a conversation may hold one per requester). */
|
|
75
95
|
private readonly watched;
|
|
96
|
+
/**
|
|
97
|
+
* The process the last prompt written into each conversation went to (serialized key → process), stamped at the write choke point
|
|
98
|
+
* ({@link noteWrite}): a watch tracked after that process went down — a re-spawn takes it down right after a post's write, and the
|
|
99
|
+
* post tracks several awaits later — is named from it, never left unnamed (review 22 nit 2).
|
|
100
|
+
*/
|
|
101
|
+
private readonly writtenProcesses;
|
|
76
102
|
/** Last persisted live-turn activity per request id, for the persist step. */
|
|
77
103
|
private readonly activityPersistedAt;
|
|
78
104
|
/** The tail after the latest final answer, by serialized conversation key. */
|
|
79
105
|
private readonly answerTails;
|
|
80
106
|
/** The request whose tail was last reminded and how often, by serialized conversation key (the reminder cap). */
|
|
81
107
|
private readonly answerTailReminders;
|
|
108
|
+
/** How many posts are on their way to their write, by serialized conversation key ({@link notePostInFlight}). */
|
|
109
|
+
private readonly postsInFlight;
|
|
110
|
+
/** The wake-up deliveries handed to a post in flight, by serialized conversation key, in the order they were decided. */
|
|
111
|
+
private readonly wakesHandedToPost;
|
|
82
112
|
private pollTimer;
|
|
83
113
|
private sweepTimer;
|
|
84
114
|
private isPolling;
|
|
85
115
|
private isSweeping;
|
|
86
116
|
/** The `restarted` wakes waiting for their turn, by serialized conversation key (one per conversation). */
|
|
87
117
|
private readonly restartWakeTimers;
|
|
118
|
+
/** Conversations whose pending restart wake was asked for by a LOST-WORK loss, not by a boot: no watch holds that one. */
|
|
119
|
+
private readonly lostWorkWakes;
|
|
88
120
|
/** When the last scheduled `restarted` wake is due: the next one is a stagger after it. */
|
|
89
121
|
private lastRestartWakeDueAt;
|
|
90
122
|
constructor(deps: RequestWakeUpEngineDeps);
|
|
@@ -101,9 +133,14 @@ export declare class RequestWakeUpEngine {
|
|
|
101
133
|
* process that died with its own work pending): wake them `restarted`, a stagger after the last wake scheduled so,
|
|
102
134
|
* instead of at the backstop. One wake per conversation at a time — a second call while one waits changes nothing.
|
|
103
135
|
* Whether the requests still need it is decided when it is due (`decideRestartWake`). Returns `false` when one
|
|
104
|
-
* was already waiting
|
|
136
|
+
* was already waiting, or when every open request is held by a watch that is not failing and owes nobody an answer
|
|
137
|
+
* (`checkIsHeldBetweenTurns`: a BOOT wakes nobody then, as in a topic). `isLostWork` — the process ended with the agent's own work
|
|
138
|
+
* pending — is the other event: a topic resumes on it whatever is armed, so no watch holds the wake, and a boot wake already
|
|
139
|
+
* waiting becomes one (the flag is remembered, the call still returns `false`). The timer is unref'd: it never keeps the process alive.
|
|
105
140
|
*/
|
|
106
|
-
scheduleRestartWake(key: SessionKey
|
|
141
|
+
scheduleRestartWake(key: SessionKey, options?: {
|
|
142
|
+
isLostWork?: boolean;
|
|
143
|
+
}): boolean;
|
|
107
144
|
/**
|
|
108
145
|
* @description The `restarted` wake of `key`'s conversation, now: every open request nobody watches that the rule
|
|
109
146
|
* lets be woken gets its wake-up counted, and ONE forward carries them all — the prompt of each request the session
|
|
@@ -111,21 +148,61 @@ export declare class RequestWakeUpEngine {
|
|
|
111
148
|
* continuation nudge's turn is. A request at the cap gets its alert instead. A delivery that fails is logged and
|
|
112
149
|
* left to the backstop (counted from now): no alert of its own. Exported for tests (the timer calls it).
|
|
113
150
|
*/
|
|
114
|
-
wakeAfterRestart(key: SessionKey
|
|
151
|
+
wakeAfterRestart(key: SessionKey, options?: {
|
|
152
|
+
isLostWork?: boolean;
|
|
153
|
+
}): Promise<void>;
|
|
115
154
|
/** The open request `requestId` when it belongs to `key`'s conversation, else `undefined`. */
|
|
116
155
|
private getOpenRequestOf;
|
|
156
|
+
/** The ids of the requests whose turns the engine watches in `key`'s conversation: the requests the agent is working on right now. */
|
|
157
|
+
getWatchedRequestIdsOf(key: SessionKey): string[];
|
|
158
|
+
/**
|
|
159
|
+
* The watched requests of `key`'s conversation whose watch a forward of their OWN started (not a conversation-wide nudge), the
|
|
160
|
+
* oldest own forward first: the first is the request whose forward started the running turn.
|
|
161
|
+
*/
|
|
162
|
+
getOwnForwardWatchedRequestIdsOf(key: SessionKey): string[];
|
|
163
|
+
/**
|
|
164
|
+
* @description The request a job armed NOW in `key`'s conversation is armed under (`pickRequestToArmUnder` over the ledger's open
|
|
165
|
+
* requests and this engine's watches); `undefined` when no request is open.
|
|
166
|
+
*/
|
|
167
|
+
getArmingRequestIdOf(key: SessionKey): string | undefined;
|
|
117
168
|
/** The watched turns of `key`'s conversation. */
|
|
118
169
|
private getWatchedTurnsOf;
|
|
119
170
|
/**
|
|
120
171
|
* @description A request's message (or a reminder for it) was just forwarded to
|
|
121
172
|
* the conversation's session: watch the turn it starts. A watch already there
|
|
122
|
-
* for the SAME request is
|
|
123
|
-
*
|
|
124
|
-
*
|
|
173
|
+
* for the SAME request is MERGED with it (the forward joined a turn that still runs: one that ended was settled before the write,
|
|
174
|
+
* `settleEndedTurnsOf`): the progress count keeps
|
|
175
|
+
* its earlier start, and the turn is the alarm's only if both were — except for the bot's own «continue»
|
|
176
|
+
* (`isContinuation`: the nudge after an API error or a limit wait), which keeps the alarm's kind but
|
|
177
|
+
* starts the progress count afresh: a note sent before the error is not this turn's — and for a person's
|
|
178
|
+
* words that join the running turn, which start the count afresh too: a note sent before them is not their answer. Another requester's
|
|
179
|
+
* request in the conversation keeps its own watch. Whether the turn is a scheduled run's (`isScheduledRun`) is said by the FORWARD
|
|
180
|
+
* that started it — a fire riding the request, or the fire that opened the scheduler's request — and never read from the request's
|
|
181
|
+
* state: an answered request's fire turn is a fire's as much as an unanswered one's (`src/requests/README.md` § Scheduled runs).
|
|
182
|
+
* A fire of ANOTHER job that only rides the request (`isRequestJob` false) is not the request's activity: its forward records none,
|
|
183
|
+
* and its watch keeps that (a merge is the request's own if either side is; a «continue» keeps what the turn was), so its busy time and
|
|
184
|
+
* its quiet end leave the request's follow-up and backstop alone (`src/requests/README.md` § Scheduled runs).
|
|
185
|
+
* A post retry still pending is moot from now on (R28): the session has the request — unless the forward is a fire riding the
|
|
186
|
+
* request, which carries none of its prompt. A forward that carries a person's words (a request prompt, an issue update) marks the
|
|
187
|
+
* request as owing an answer (`isPersonInputUnanswered`, persisted): that, not the kind of the turn, is
|
|
188
|
+
* what stops the turn's end from reading as a quiet one (`decideTurnEnd`).
|
|
125
189
|
*/
|
|
126
190
|
trackForwardedTurn(key: SessionKey, requestId: string, options?: {
|
|
127
191
|
isRequestPrompt: boolean;
|
|
192
|
+
isScheduledRun?: boolean;
|
|
193
|
+
isRequestJob?: boolean;
|
|
194
|
+
isPersonInput?: boolean;
|
|
195
|
+
isContinuation?: boolean;
|
|
196
|
+
isConversationForward?: boolean;
|
|
128
197
|
}): Promise<void>;
|
|
198
|
+
/**
|
|
199
|
+
* @description A person's words for the request were HELD — an armed usage-limit wait keeps them back, and they reach the agent
|
|
200
|
+
* only inside whatever prompt the wait's end forwards first (a «continue», a scheduled run, the operator's next message). No
|
|
201
|
+
* turn starts for them now, so nothing is tracked, but the request owes an answer from this moment: persisted, so the turn
|
|
202
|
+
* that finally carries the words — under any watch, or none after a restart during the wait — is read against it
|
|
203
|
+
* (`checkIsAnswerOwed`). A request that owes it already, and a scheduler fire's own request, are left as they are.
|
|
204
|
+
*/
|
|
205
|
+
notePersonInputHeld(key: SessionKey, requestId: string): Promise<void>;
|
|
129
206
|
/**
|
|
130
207
|
* @description The request's prompt could not be posted to the session (no
|
|
131
208
|
* session came up, the forward failed): try again soon (R28). Once the retries
|
|
@@ -148,25 +225,48 @@ export declare class RequestWakeUpEngine {
|
|
|
148
225
|
noteAnswerTailOutput(key: SessionKey): void;
|
|
149
226
|
/** Drop every watch of `key`'s conversation, its answer tail included. */
|
|
150
227
|
private unwatchConversation;
|
|
228
|
+
/**
|
|
229
|
+
* @description The requests of `key` whose prompt is NOT lost if the conversation ends now, read off its live process at this moment:
|
|
230
|
+
* a prompt the process took in — R21's own test ({@link checkIsPromptTakenInNow}) on a probe taken now, once what the process wrote so
|
|
231
|
+
* far is read (`refreshProcessState`), which the persisted mark lags behind until a settle or the 10-second poll (review 26 #1) — and a
|
|
232
|
+
* prompt still waiting in a start's or a stop's window, whose window's drop tells its person. Synchronous: a command reads it BEFORE it
|
|
233
|
+
* stops or replaces the process (the default of {@link cancelConversation}; the `/resume` pick ahead of its resume).
|
|
234
|
+
*/
|
|
235
|
+
readPromptsReachedOrHeld(key: SessionKey): ReadonlySet<string>;
|
|
151
236
|
/**
|
|
152
237
|
* @description The person took over (interrupted, quit, restarted, switched or
|
|
153
238
|
* resumed the session, left the folder): every open request of the
|
|
154
|
-
* conversation closes
|
|
239
|
+
* conversation closes and nothing wakes them. Resolves the ids of the requests
|
|
240
|
+
* this call closed that carry a person's words the agent never took in (not the
|
|
241
|
+
* scheduler's request, whose prompt is no person's): a command that ends or replaces the
|
|
242
|
+
* conversation tells those people, since nobody reads their words (review 25 #3, review 26 #2);
|
|
243
|
+
* an interrupt closes silently. «Never taken in» reads the persisted mark and `reachedOrHeld`
|
|
244
|
+
* ({@link readPromptsReachedOrHeld}), read by default when this is called — synchronously, before
|
|
245
|
+
* the first await, so off the process the command has not stopped yet.
|
|
155
246
|
*/
|
|
156
|
-
cancelConversation(key: SessionKey): Promise<
|
|
247
|
+
cancelConversation(key: SessionKey, reachedOrHeld?: ReadonlySet<string>): Promise<string[]>;
|
|
157
248
|
/**
|
|
158
249
|
* @description The bot itself forwarded a "continue" nudge into the session (an
|
|
159
|
-
* API-error retry fired, or a usage-limit wait ended): watch the turn it starts
|
|
160
|
-
*
|
|
250
|
+
* API-error retry fired, or a usage-limit wait ended): watch the turn it starts, so the idle the
|
|
251
|
+
* error left behind is never read as its end. The nudge carries no person's words and is no alarm,
|
|
252
|
+
* so it KEEPS the alarm's kind of the turn it continues but its progress count starts afresh: a progress
|
|
253
|
+
* note sent before the error does not make a silent continuation a «progress» turn. What the turn owes a
|
|
254
|
+
* person is not its kind but the persisted request (`checkIsAnswerOwed`): words answered before the error
|
|
255
|
+
* are owed no more, words still unanswered stay owed.
|
|
161
256
|
* `isCountersReset` (the end of a limit wait) starts every open request's
|
|
162
257
|
* wake-up bookkeeping from zero — the wait was not the agent's silence — and
|
|
163
258
|
* lifts a limit stop: the work continues, so does the waking. A request the
|
|
164
259
|
* rules already gave up on stays given up. The one session turn the nudge
|
|
165
260
|
* starts is watched for every open request of the conversation.
|
|
261
|
+
* `carriedRequestIds` — the requests whose prompts the message carries, never taken in (R21: a limit or account resume re-posts
|
|
262
|
+
* them) — is a fact about EACH request, named when the message was BUILT (`getPromptsNotTakenIn`): only such a request has its words
|
|
263
|
+
* in the message (they are owed an answer, as any request prompt's), every other open request gets the plain «continue». It is
|
|
264
|
+
* never read again here: a buffered message is tracked at its replay, and a request opened in between did not ride it (review 21
|
|
265
|
+
* nit 3). A carried request whose prompt the session took in meanwhile is a plain «continue» too.
|
|
166
266
|
*/
|
|
167
267
|
trackContinuationTurn(key: SessionKey, options: {
|
|
168
268
|
isCountersReset: boolean;
|
|
169
|
-
|
|
269
|
+
carriedRequestIds?: readonly string[];
|
|
170
270
|
}): Promise<void>;
|
|
171
271
|
/**
|
|
172
272
|
* @description A usage-limit wait will not end by itself (auto-resume is off,
|
|
@@ -180,14 +280,91 @@ export declare class RequestWakeUpEngine {
|
|
|
180
280
|
stopWakingForLimitWait(key: SessionKey): Promise<void>;
|
|
181
281
|
/** @description One poll over the watched turns; exported for tests (the timer calls it). */
|
|
182
282
|
pollWatchedTurns(): Promise<void>;
|
|
283
|
+
/**
|
|
284
|
+
* @description A new prompt is about to be written into `key`'s conversation: settle every watch of it whose turn has already
|
|
285
|
+
* ENDED, on a probe taken now — before the write — exactly as the poll's next tick would have. A prompt that waited behind a running
|
|
286
|
+
* turn is forwarded within seconds of its end (`postToSession` polls busy every 5 s, this engine every 10 s), usually before the tick
|
|
287
|
+
* saw the idle; the old watch would then read the NEW turn as its own: arm its jobs under the old request, count its busy time as
|
|
288
|
+
* the old request's activity, and decide the old request only at the new turn's end. A watch whose turn still runs is left — the
|
|
289
|
+
* forward joins it (`trackForwardedTurn` merges), its prompt marked taken in if the live process took it (R21, as the poll marks); a
|
|
290
|
+
* session that is gone is left to the poll.
|
|
291
|
+
* Synchronous up to the decisions: the ended watches are dropped and decided against the request as it is NOW, so a forward that
|
|
292
|
+
* does not await (a write must run in its caller's tick) is never read into them. The decisions are persisted after, in order; the
|
|
293
|
+
* returned promise resolves once they are (a post that picks a request awaits it first, so the pick and the header see the result)
|
|
294
|
+
* with the delivery of the wake-ups they decided. The CALLER delivers them — after its own write, so the prompt it writes starts the
|
|
295
|
+
* turn and a reminder joins it, as the tick would have reminded seconds later; a call with no write of its own (the adapter's turn end)
|
|
296
|
+
* hands them to a post on its way to its write, else delivers them at once ({@link deliverOrHandOverWake}). Never rejects, and neither
|
|
297
|
+
* does the delivery.
|
|
298
|
+
*/
|
|
299
|
+
settleEndedTurnsOf(key: SessionKey): Promise<() => Promise<void>>;
|
|
300
|
+
/**
|
|
301
|
+
* @description A post (`postToSession`) is on its way to write a prompt into `key`'s conversation, waiting for the running turn's
|
|
302
|
+
* idle maybe. Until the returned release, a wake-up decided for the conversation — at the adapter's turn end, by the poll, by the sweep
|
|
303
|
+
* ({@link deliverOrHandOverWake}) — is HANDED to the post instead of written at once: the post takes it with its settle
|
|
304
|
+
* ({@link settleEndedTurnsForPost}) and delivers it after its own write, so the prompt that waited for the turn starts the next one and
|
|
305
|
+
* the reminder joins it (written first, the reminder would start that turn and the reminded request would read as its starter). The
|
|
306
|
+
* release delivers what is still handed over once the last post in flight is done: one that never took it (held over a limit wait,
|
|
307
|
+
* an ensure that failed) or a wake decided after its settle. It never rejects, and a second call does nothing.
|
|
308
|
+
*/
|
|
309
|
+
notePostInFlight(key: SessionKey): () => Promise<void>;
|
|
310
|
+
/** @description Deliver a decided wake-up now, or hand it to a post in flight in `key`'s conversation ({@link notePostInFlight}). Never rejects. */
|
|
311
|
+
deliverOrHandOverWake(key: SessionKey, deliver: () => Promise<void>): Promise<void>;
|
|
312
|
+
/**
|
|
313
|
+
* @description A write into `key`'s live process (the write choke point, synchronously before the adapter write): the process it goes
|
|
314
|
+
* to is stamped, for a watch that is tracked only after that process went down ({@link writtenProcesses}). Synchronous; a probe that
|
|
315
|
+
* names no process (a window holds the prompt) stamps nothing.
|
|
316
|
+
*/
|
|
317
|
+
noteWrite(key: SessionKey): void;
|
|
318
|
+
/**
|
|
319
|
+
* @description A write into `key`'s live process during the replay of a start's buffer (the write choke point, right after its settle;
|
|
320
|
+
* the bot calls it at every write while `StartupPromptBuffer.checkIsReplaying`: a replayed prompt, the held prompts after them, a prompt
|
|
321
|
+
* written at once while the replay runs — all go to the process the replay writes into). A watch tracked while its prompt waited in that
|
|
322
|
+
* buffer names no process yet, and the replay took the whole buffer to write it into this process, so its prompt is in this one. Never
|
|
323
|
+
* called for a write outside a replay: a watch whose buffer was DROPPED stays unnamed — its prompt reached no process
|
|
324
|
+
* (`checkIsPromptNeverWritten`) — and the request it opened is closed with the person told (`bot.ts`, the person's buffered prompt's
|
|
325
|
+
* settle). Only a person's prompt is tracked before its replay: every bot-made caller watches its turn once its prompt reached a session
|
|
326
|
+
* (`src/requests/README.md`, the callers table). Synchronous; a session with no process named does nothing.
|
|
327
|
+
*/
|
|
328
|
+
noteReplayedWrite(key: SessionKey): void;
|
|
329
|
+
/**
|
|
330
|
+
* @description The settle of a post about to write ({@link settleEndedTurnsOf}): resolves ONE delivery for the post to run after its
|
|
331
|
+
* write — the wake-ups handed to it so far, in order, then this settle's own. Never rejects, and neither does the delivery.
|
|
332
|
+
*/
|
|
333
|
+
settleEndedTurnsForPost(key: SessionKey): Promise<() => Promise<void>>;
|
|
334
|
+
/** The delivery of the wake-ups handed to a post in `conversationKey`, taken (a later post or release finds none of them). */
|
|
335
|
+
private takeWakesHandedToPost;
|
|
336
|
+
/** The decision at the end of `turn`, read against `request` and its jobs as they are now. */
|
|
337
|
+
private decideWatchedTurnEnd;
|
|
338
|
+
/** R21 for a request prompt the ended turn took in (a later wake-up is a reminder), then `decision` persisted; resolves its wake's delivery. */
|
|
339
|
+
private persistEndedTurn;
|
|
340
|
+
/**
|
|
341
|
+
* R21: once the backend took a request prompt in, a wake-up is a reminder — the agent has read the request. A held turn end is read like
|
|
342
|
+
* any other: what the backend still lists as unread is unread. A prompt queued behind a turn that ended in an error result stays listed
|
|
343
|
+
* until its own echo (the json-stream adapter keeps it; the CLI runs it as its next turn, measured), and the prompt of the turn that
|
|
344
|
+
* failed was read by it — a resume that posted it again would repeat words the agent already has.
|
|
345
|
+
* Read only off the process the prompt was written to (`writtenToProcess`): a re-spawn that replaced it — an account move after a limit,
|
|
346
|
+
* a model change — kills a message still queued there, and the new process lists nothing unread. Left unmarked, the prompt is posted
|
|
347
|
+
* again: by the resume's «continue» (`getPromptNotTakenIn`), or as the wake-up of the turn's end. A prompt that names no process while
|
|
348
|
+
* one is live never reached any (`checkIsTurnInputConsumed`): nothing is marked.
|
|
349
|
+
*/
|
|
350
|
+
private markPromptTakenIn;
|
|
183
351
|
private pollWatchedTurn;
|
|
184
352
|
/** @description One sweep over the open requests nobody watches; exported for tests. */
|
|
185
353
|
sweepUnwatchedRequests(): Promise<void>;
|
|
186
354
|
private sweepOpenRequest;
|
|
355
|
+
/** The request's reading of its armed jobs now; `none` when the port is not wired. */
|
|
356
|
+
private getScheduleWait;
|
|
187
357
|
private sweepAnswerTail;
|
|
188
358
|
/** Persist that the agent is working on it, at most once per step unless forced. */
|
|
189
359
|
private recordTurnActivity;
|
|
190
360
|
private applyDecision;
|
|
361
|
+
/**
|
|
362
|
+
* Persist `decision` (an alert is raised here too) and resolve the delivery of its wake-up, or `null` when it decided none or the
|
|
363
|
+
* request changed meanwhile. Split from the delivery so a settle before a write can persist at once and deliver after the write.
|
|
364
|
+
*/
|
|
365
|
+
private persistDecision;
|
|
366
|
+
/** Deliver a persisted wake-up: the reminder (or the request's prompt again, R21), then its turn watched, or the failure handled. */
|
|
367
|
+
private deliverWake;
|
|
191
368
|
/**
|
|
192
369
|
* Resume the session if needed, re-check the request, forward the reminder. A
|
|
193
370
|
* step that threw did not reach the session: same as one that could not.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wakeUpEngine.d.ts","sourceRoot":"","sources":["../../src/requests/wakeUpEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"wakeUpEngine.d.ts","sourceRoot":"","sources":["../../src/requests/wakeUpEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAkD,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAuB,MAAM,SAAS,CAAC;AAC5G,OAAO,EAAyC,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAS5F,OAAO,EAUL,KAAK,gBAAgB,EAGtB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,sDAAsD;AACtD,eAAO,MAAM,iBAAiB,QAAS,CAAC;AACxC,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB,QAAS,CAAC;AACvC,4FAA4F;AAC5F,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAChD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAE3C;;;;;;;;;GASG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,oBAAoB,GAAG,oBAAoB,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,cAAc,GAAG,aAAa,CAAC,CAAC;IACrJ,SAAS,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,gBAAgB,CAAC;IACjD;;;;OAIG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