charness 4.1.1 → 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 +186 -2
- package/DEVELOPMENT.md +65 -11
- package/LICENSE +331 -151
- package/MIGRATION_3_TO_4.md +8 -5
- package/README.md +23 -8
- package/SETUP.md +57 -11
- package/agent-plugin/README.md +10 -3
- package/agent-plugin/skills/charness-delegate-claude/SKILL.md +18 -26
- package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +5 -3
- package/agent-plugin/skills/charness-orchestration/SKILL.md +57 -16
- package/dist/adapters/adapterNames.d.ts +2 -0
- package/dist/adapters/adapterNames.d.ts.map +1 -1
- package/dist/adapters/adapterNames.js +3 -1
- package/dist/adapters/adapterNames.js.map +1 -1
- 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 +150 -10
- package/dist/adapters/claudeJsonStreamAdapter.d.ts.map +1 -1
- package/dist/adapters/claudeJsonStreamAdapter.js +401 -83
- 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 +65 -2
- package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
- package/dist/adapters/openCodeAdapter.js +202 -19
- package/dist/adapters/openCodeAdapter.js.map +1 -1
- package/dist/adapters/terminalAdapter.d.ts.map +1 -1
- package/dist/adapters/terminalAdapter.js +2 -1
- package/dist/adapters/terminalAdapter.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 +2586 -693
- package/dist/bot.js.map +1 -1
- package/dist/cli/claudeProfiles.d.ts +31 -6
- package/dist/cli/claudeProfiles.d.ts.map +1 -1
- package/dist/cli/claudeProfiles.js +97 -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/botCore.d.ts +5 -2
- package/dist/connectors/telegram/commands/botCore.d.ts.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 +11 -0
- package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/claudeAccounts.js +36 -42
- package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
- package/dist/connectors/telegram/commands/compaction.d.ts +20 -3
- package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/compaction.js +268 -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/questionSetAside.d.ts +111 -0
- package/dist/connectors/telegram/commands/questionSetAside.d.ts.map +1 -0
- package/dist/connectors/telegram/commands/questionSetAside.js +637 -0
- package/dist/connectors/telegram/commands/questionSetAside.js.map +1 -0
- package/dist/connectors/telegram/commands/questionWait.d.ts +21 -0
- package/dist/connectors/telegram/commands/questionWait.d.ts.map +1 -0
- package/dist/connectors/telegram/commands/questionWait.js +109 -0
- package/dist/connectors/telegram/commands/questionWait.js.map +1 -0
- package/dist/connectors/telegram/commands/topicAccess.js +1 -1
- package/dist/connectors/telegram/commands/topicAccess.js.map +1 -1
- package/dist/connectors/telegram/commands/topicCommand.d.ts +0 -2
- package/dist/connectors/telegram/commands/topicCommand.d.ts.map +1 -1
- package/dist/connectors/telegram/commands/topicCommand.js +11 -7
- package/dist/connectors/telegram/commands/topicCommand.js.map +1 -1
- package/dist/connectors/telegram/commands/topicStatus.d.ts +24 -0
- package/dist/connectors/telegram/commands/topicStatus.d.ts.map +1 -0
- package/dist/connectors/telegram/commands/topicStatus.js +148 -0
- package/dist/connectors/telegram/commands/topicStatus.js.map +1 -0
- 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/firstUpdateBatchNote.d.ts +30 -0
- package/dist/connectors/telegram/firstUpdateBatchNote.d.ts.map +1 -0
- package/dist/connectors/telegram/firstUpdateBatchNote.js +39 -0
- package/dist/connectors/telegram/firstUpdateBatchNote.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 +19 -0
- package/dist/connectors/telegram/inbound.d.ts.map +1 -1
- package/dist/connectors/telegram/inbound.js +41 -3
- 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 +86 -0
- package/dist/connectors/telegram/topicIndicator.d.ts.map +1 -0
- package/dist/connectors/telegram/topicIndicator.js +588 -0
- package/dist/connectors/telegram/topicIndicator.js.map +1 -0
- package/dist/connectors/telegram/waitingTopicRenames.d.ts +39 -0
- package/dist/connectors/telegram/waitingTopicRenames.d.ts.map +1 -0
- package/dist/connectors/telegram/waitingTopicRenames.js +48 -0
- package/dist/connectors/telegram/waitingTopicRenames.js.map +1 -0
- 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 +141 -13
- package/dist/i18n/de.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +141 -13
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +141 -13
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/fr.d.ts.map +1 -1
- package/dist/i18n/fr.js +141 -13
- package/dist/i18n/fr.js.map +1 -1
- package/dist/i18n/hi.d.ts.map +1 -1
- package/dist/i18n/hi.js +141 -13
- package/dist/i18n/hi.js.map +1 -1
- package/dist/i18n/ja.d.ts.map +1 -1
- package/dist/i18n/ja.js +141 -13
- package/dist/i18n/ja.js.map +1 -1
- package/dist/i18n/ka.d.ts.map +1 -1
- package/dist/i18n/ka.js +141 -13
- package/dist/i18n/ka.js.map +1 -1
- package/dist/i18n/pt.d.ts.map +1 -1
- package/dist/i18n/pt.js +141 -13
- package/dist/i18n/pt.js.map +1 -1
- package/dist/i18n/ru.d.ts.map +1 -1
- package/dist/i18n/ru.js +141 -13
- package/dist/i18n/ru.js.map +1 -1
- package/dist/i18n/uk.d.ts.map +1 -1
- package/dist/i18n/uk.js +141 -13
- package/dist/i18n/uk.js.map +1 -1
- package/dist/i18n/uz.d.ts.map +1 -1
- package/dist/i18n/uz.js +141 -13
- package/dist/i18n/uz.js.map +1 -1
- package/dist/i18n/zh.d.ts.map +1 -1
- package/dist/i18n/zh.js +141 -13
- package/dist/i18n/zh.js.map +1 -1
- package/dist/instanceSettings.d.ts +43 -3
- package/dist/instanceSettings.d.ts.map +1 -1
- package/dist/instanceSettings.js +109 -4
- 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/openCodeOpenQuestion.d.ts +12 -4
- package/dist/openCodeOpenQuestion.d.ts.map +1 -1
- package/dist/openCodeOpenQuestion.js +16 -7
- package/dist/openCodeOpenQuestion.js.map +1 -1
- package/dist/openCodeQuestionFlow.d.ts +10 -2
- package/dist/openCodeQuestionFlow.d.ts.map +1 -1
- package/dist/openCodeQuestionFlow.js +27 -5
- package/dist/openCodeQuestionFlow.js.map +1 -1
- 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 +43 -2
- package/dist/postToSession.d.ts.map +1 -1
- package/dist/postToSession.js +46 -4
- 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 +270 -30
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +403 -37
- package/dist/state.js.map +1 -1
- package/dist/testTimings.d.ts +17 -4
- package/dist/testTimings.d.ts.map +1 -1
- package/dist/testTimings.js +35 -3
- 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/todos/registry.d.ts +2 -0
- package/dist/todos/registry.d.ts.map +1 -1
- package/dist/todos/registry.js +3 -1
- package/dist/todos/registry.js.map +1 -1
- package/dist/types.d.ts +235 -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 +9 -7
- package/dist/utils/claudeCompactHook.d.ts.map +1 -1
- package/dist/utils/claudeCompactHook.js +11 -9
- package/dist/utils/claudeCompactHook.js.map +1 -1
- package/dist/utils/claudeLimitSwitch.d.ts +1 -1
- package/dist/utils/claudeLimitSwitch.d.ts.map +1 -1
- package/dist/utils/claudeLimitSwitch.js +1 -1
- package/dist/utils/claudeLimitSwitch.js.map +1 -1
- package/dist/utils/claudeProfileSync.d.ts +88 -0
- package/dist/utils/claudeProfileSync.d.ts.map +1 -0
- package/dist/utils/claudeProfileSync.js +198 -0
- package/dist/utils/claudeProfileSync.js.map +1 -0
- 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 +101 -6
- package/dist/utils/claudeProfiles.d.ts.map +1 -1
- package/dist/utils/claudeProfiles.js +297 -23
- 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/claudeUsageRefresher.d.ts +8 -1
- package/dist/utils/claudeUsageRefresher.d.ts.map +1 -1
- package/dist/utils/claudeUsageRefresher.js +11 -1
- package/dist/utils/claudeUsageRefresher.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/cutButtonLabel.d.ts +7 -0
- package/dist/utils/cutButtonLabel.d.ts.map +1 -0
- package/dist/utils/cutButtonLabel.js +17 -0
- package/dist/utils/cutButtonLabel.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/limitSwitchPlan.d.ts +44 -0
- package/dist/utils/limitSwitchPlan.d.ts.map +1 -0
- package/dist/utils/limitSwitchPlan.js +54 -0
- package/dist/utils/limitSwitchPlan.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/questionWaitChoices.d.ts +20 -0
- package/dist/utils/questionWaitChoices.d.ts.map +1 -0
- package/dist/utils/questionWaitChoices.js +31 -0
- package/dist/utils/questionWaitChoices.js.map +1 -0
- package/dist/utils/questionWaitPlan.d.ts +166 -0
- package/dist/utils/questionWaitPlan.d.ts.map +1 -0
- package/dist/utils/questionWaitPlan.js +237 -0
- package/dist/utils/questionWaitPlan.js.map +1 -0
- package/dist/utils/replyQuote.d.ts +10 -0
- package/dist/utils/replyQuote.d.ts.map +1 -1
- package/dist/utils/replyQuote.js +18 -7
- package/dist/utils/replyQuote.js.map +1 -1
- package/dist/utils/talkerAccess.d.ts +2 -2
- package/dist/utils/talkerAccess.d.ts.map +1 -1
- package/dist/utils/talkerAccess.js +5 -4
- package/dist/utils/talkerAccess.js.map +1 -1
- package/dist/utils/telegramError.d.ts +6 -0
- package/dist/utils/telegramError.d.ts.map +1 -1
- package/dist/utils/telegramError.js +12 -0
- package/dist/utils/telegramError.js.map +1 -1
- package/dist/utils/topicAccessScreenPlan.d.ts +1 -1
- package/dist/utils/topicAccessScreenPlan.d.ts.map +1 -1
- package/dist/utils/topicAccessScreenPlan.js +3 -7
- package/dist/utils/topicAccessScreenPlan.js.map +1 -1
- package/dist/utils/topicIndicatorPlan.d.ts +153 -0
- package/dist/utils/topicIndicatorPlan.d.ts.map +1 -0
- package/dist/utils/topicIndicatorPlan.js +224 -0
- package/dist/utils/topicIndicatorPlan.js.map +1 -0
- package/dist/utils/topicIndicatorSources.d.ts +40 -0
- package/dist/utils/topicIndicatorSources.d.ts.map +1 -0
- package/dist/utils/topicIndicatorSources.js +31 -0
- package/dist/utils/topicIndicatorSources.js.map +1 -0
- 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/topicStatusPlan.d.ts +90 -0
- package/dist/utils/topicStatusPlan.d.ts.map +1 -0
- package/dist/utils/topicStatusPlan.js +160 -0
- package/dist/utils/topicStatusPlan.js.map +1 -0
- 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/COMMERCIAL-LICENSE.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
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description The pure plan of the status mark at the END of a topic's name (`connectors/telegram/topicIndicator.ts` applies it, `/topic_status`
|
|
3
|
+
* switches it): which status a topic shows, the name that carries it, the owner's own name back out of a name that already carries a mark,
|
|
4
|
+
* and WHEN a rename is allowed — so the topic list never flickers. No Telegram, no clock of its own: every instant comes in.
|
|
5
|
+
*
|
|
6
|
+
* The name is `<base> <status> <counts>`: the base is the owner's own words, the status is ONE mark, the counts are off by default.
|
|
7
|
+
* The topic's ICON is never part of it.
|
|
8
|
+
*/
|
|
9
|
+
/** Telegram accepts a topic name of 0–128 characters (`createForumTopic`, `editForumTopic`), counted the way `String.length` does. */
|
|
10
|
+
export declare const topicNameMaxLength = 128;
|
|
11
|
+
/** The statuses a name can show, highest priority first: the name shows the first one that holds. */
|
|
12
|
+
export declare const topicStatuses: readonly ["question", "stuck", "working", "finished", "asleep"];
|
|
13
|
+
/** @name TopicStatus @description One status mark: a question waits, the agent is stuck, it works, it finished, it sleeps. */
|
|
14
|
+
export type TopicStatus = (typeof topicStatuses)[number];
|
|
15
|
+
/**
|
|
16
|
+
* The mark each status writes; `stuck` and `agents` carry the emoji variation selector the way the owner types them. Telegram drops some
|
|
17
|
+
* endings from a topic name — a trailing ✅ (and ☑️, ✔️) never shows, measured live on 2026-11-19 — so a mark is only ever one proven to be
|
|
18
|
+
* KEPT there: ❓ ❗️ ⏳ 💤 🟢 (and 🆗) were read back.
|
|
19
|
+
*/
|
|
20
|
+
export declare const topicStatusMarks: Record<TopicStatus, string>;
|
|
21
|
+
/** The two counts after the status: agents at work and tasks queued. */
|
|
22
|
+
export declare const topicIndicatorCountKinds: readonly ["agents", "queued"];
|
|
23
|
+
/** @name TopicIndicatorCountKind @description One of the counts a name can carry after its status. */
|
|
24
|
+
export type TopicIndicatorCountKind = (typeof topicIndicatorCountKinds)[number];
|
|
25
|
+
/** The mark in front of each count's number. */
|
|
26
|
+
export declare const topicIndicatorCountMarks: Record<TopicIndicatorCountKind, string>;
|
|
27
|
+
/** Every switch `/topic_status` has: one per status and one per count, in the order the picker lists them. */
|
|
28
|
+
export declare const topicIndicatorSwitches: readonly ["question", "stuck", "working", "finished", "asleep", "agents", "queued"];
|
|
29
|
+
/** @name TopicIndicatorSwitch @description One indicator the owner can turn on or off. */
|
|
30
|
+
export type TopicIndicatorSwitch = (typeof topicIndicatorSwitches)[number];
|
|
31
|
+
/** @description Whether `value` names a switch (the data of a tap, a hand-edited file). */
|
|
32
|
+
export declare function checkIsTopicIndicatorSwitch(value: string | undefined): value is TopicIndicatorSwitch;
|
|
33
|
+
/** @name TopicStatusPrefs @description Which indicators a topic shows: on or off, one per switch. */
|
|
34
|
+
export type TopicStatusPrefs = Record<TopicIndicatorSwitch, boolean>;
|
|
35
|
+
/** What an instance does until the owner chooses: the five status marks on, both counts off (the owner: «a masquerade» otherwise). */
|
|
36
|
+
export declare const defaultTopicStatusPrefs: TopicStatusPrefs;
|
|
37
|
+
/**
|
|
38
|
+
* @description The switches in force for a topic: its own set when it has one (a tap copies General's set into the topic first, so it
|
|
39
|
+
* is whole), else the instance's (`settings.json`, which may name only the switches the owner changed) over the defaults.
|
|
40
|
+
*/
|
|
41
|
+
export declare function resolveTopicStatusPrefs(instancePrefs: Partial<TopicStatusPrefs> | null, topicPrefs: TopicStatusPrefs | undefined): TopicStatusPrefs;
|
|
42
|
+
/** @description Every switch turned to `isOn` — the «All off» button, and a whole set made of a partial one. */
|
|
43
|
+
export declare function createTopicStatusPrefsWith(isOn: boolean): TopicStatusPrefs;
|
|
44
|
+
/** What the bot knows of a topic's agent, reduced to facts: the status is the first of the list that holds. */
|
|
45
|
+
export interface TopicStatusInputs {
|
|
46
|
+
/** A question of the agent is open: waiting for the owner, or set aside (any number). */
|
|
47
|
+
hasOpenQuestion: boolean;
|
|
48
|
+
/** The agent cannot go on by itself: logged out, a usage-limit wait with no account to switch to, a crash or a lost conversation until the next turn. */
|
|
49
|
+
isStuck: boolean;
|
|
50
|
+
/** Its turn runs (background tasks and a compaction included), or a watched worker of this topic runs. */
|
|
51
|
+
isWorking: boolean;
|
|
52
|
+
/** The turn ended and the process is still up: the answer is there to read. */
|
|
53
|
+
isFinished: boolean;
|
|
54
|
+
/** The bot stopped the idle process; the conversation is kept and resumes on the next message. */
|
|
55
|
+
isAsleep: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @description The status a topic shows: the first of {@link topicStatuses} that holds AND is switched on, `null` when none does (no mark).
|
|
59
|
+
* A status the owner turned off is skipped, as if it did not hold.
|
|
60
|
+
*/
|
|
61
|
+
export declare function resolveTopicStatus(inputs: TopicStatusInputs, prefs: TopicStatusPrefs): TopicStatus | null;
|
|
62
|
+
/** How many of each count the topic has: the agents at work and the queued tasks. */
|
|
63
|
+
export type TopicIndicatorCounts = Record<TopicIndicatorCountKind, number>;
|
|
64
|
+
/**
|
|
65
|
+
* @description The name a topic shows: `<base> <status> <counts>` — one space between the parts, each part only when it holds (a count
|
|
66
|
+
* only when switched on and at least 1), the base alone when none does. At most {@link topicNameMaxLength} units: the SUFFIX is never
|
|
67
|
+
* cut — the BASE is, ending in «…» — so the mark stays; the stored base stays whole, the cut exists only in the name that is applied.
|
|
68
|
+
*/
|
|
69
|
+
export declare function composeIndicatorName(base: string, status: TopicStatus | null, counts: TopicIndicatorCounts, prefs: TopicStatusPrefs): string;
|
|
70
|
+
/** @description The trailing marks of `name` (the bot's own or typed alike) as written, `''` when it ends in none. */
|
|
71
|
+
export declare function getIndicatorSuffix(name: string): string;
|
|
72
|
+
/** @description The status mark a name ends in, `null` when it ends in none (the count marks are no status). */
|
|
73
|
+
export declare function getIndicatorStatusOfName(name: string): TopicStatus | null;
|
|
74
|
+
/**
|
|
75
|
+
* @description The owner's own name out of a name he just saved: `name` without its trailing run of the bot's marks. A name saved equal to
|
|
76
|
+
* the one the bot applied is the stored whole `base` (the applied one may be a cut of it). Cost, by design: an owner's name that itself ends
|
|
77
|
+
* in a mark loses that ending.
|
|
78
|
+
*/
|
|
79
|
+
export declare function stripIndicatorSuffix(name: string, appliedName: string | undefined, base: string | undefined): string;
|
|
80
|
+
/** @name OwnerRenameOutcome @description What an owner's rename means for the bot: the owner's own name, and the mark of his that was taken for the bot's (`null` when none was). */
|
|
81
|
+
export interface OwnerRenameOutcome {
|
|
82
|
+
base: string;
|
|
83
|
+
droppedMark: string | null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @description The owner saved `savedName` as the topic's name. The base is that name without a trailing mark of ours. A mark that is NOT
|
|
87
|
+
* one the bot itself had written — `appliedName` or any of `recentAppliedNames` (he may have opened the name before the bot changed its
|
|
88
|
+
* mark) — is the owner's own (`Release 🟢` typed while ⏳ showed) and is reported as dropped, so the picker can say so once; a mark of the
|
|
89
|
+
* bot's own left in place by an edit around it (`Deploy v2 ⏳` over `Deploy ⏳`) is no news.
|
|
90
|
+
*/
|
|
91
|
+
export declare function getOwnerRenameOutcome(savedName: string, appliedName: string | undefined, storedBase: string | undefined, recentAppliedNames?: readonly string[]): OwnerRenameOutcome;
|
|
92
|
+
/**
|
|
93
|
+
* @description Whether `storedName` is what Telegram made of `askedName` by DROPPING characters from it — a shorter name every character of
|
|
94
|
+
* which is in the asked one, in order (`Release 🟢` of `Release ✅ 🟢`, `Deploy` of `Deploy 🟢`). It is how the bot tells that the name on its
|
|
95
|
+
* own «renamed» line is its own ask, altered, and no stranger's: Telegram only takes characters out (it drops a ✅ anywhere in a name).
|
|
96
|
+
*/
|
|
97
|
+
export declare function checkIsNameReduction(storedName: string, askedName: string): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* A name must have been the wanted one this long before it is written: a turn runs this long before its ⏳ shows, a short reply goes
|
|
100
|
+
* straight to its final mark, and a session that wakes for a prompt never shows a 🟢 on the way to its ⏳ (the owner: no flashing).
|
|
101
|
+
*/
|
|
102
|
+
export declare const indicatorSettleMs = 20000;
|
|
103
|
+
/** Two renames of one topic are at least this far apart; the latest state wins, a state that came and went inside the gap is never shown. */
|
|
104
|
+
export declare const indicatorMinRenameGapMs = 60000;
|
|
105
|
+
/** The bot looks at every topic again this often, for the changes no event announces (a watched worker that ended). */
|
|
106
|
+
export declare const indicatorSweepIntervalMs: number;
|
|
107
|
+
/** After the polling starts, the boot's rename wave waits this long for the first pending updates to be handled (an owner's rename made while the bot was down is learned before the wave writes). */
|
|
108
|
+
export declare const indicatorBootWaveDelayMs = 5000;
|
|
109
|
+
/** What {@link planIndicatorRename} decides on. */
|
|
110
|
+
export interface IndicatorRenameInputs {
|
|
111
|
+
/** The name the topic should show now. */
|
|
112
|
+
desiredName: string;
|
|
113
|
+
/** The status in `desiredName`. */
|
|
114
|
+
desiredStatus: TopicStatus | null;
|
|
115
|
+
/** The name the topic shows now, as the bot last applied it. */
|
|
116
|
+
appliedName: string;
|
|
117
|
+
/** Since when `desiredName` has been the wanted one, as the bot saw it. */
|
|
118
|
+
heldSinceMs: number;
|
|
119
|
+
/** When the bot last renamed this topic; `null` before the first. */
|
|
120
|
+
lastRenameAtMs: number | null;
|
|
121
|
+
/** The owner just changed what is shown (a switch of `/topic_status`): his change skips the wait like the edges of ❓ do. */
|
|
122
|
+
isOwnerChange: boolean;
|
|
123
|
+
/** The end of the backoff after a rename that failed (`null`: none runs): no name but a ❓ edge or the owner's change is written before it, however often the topic signals. */
|
|
124
|
+
retryNotBeforeMs: number | null;
|
|
125
|
+
nowMs: number;
|
|
126
|
+
settleMs: number;
|
|
127
|
+
minGapMs: number;
|
|
128
|
+
}
|
|
129
|
+
/** @name IndicatorRenamePlan @description Rename now, rename at `atMs` (and decide again then), or nothing to do. */
|
|
130
|
+
export type IndicatorRenamePlan = {
|
|
131
|
+
kind: 'now';
|
|
132
|
+
} | {
|
|
133
|
+
kind: 'at';
|
|
134
|
+
atMs: number;
|
|
135
|
+
} | {
|
|
136
|
+
kind: 'none';
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* @description When the topic is renamed to its desired name. Nothing when it already shows it. A name waits until it has been the
|
|
140
|
+
* wanted one for `settleMs`, and two renames keep `minGapMs` apart — except the edges of ❓ (a question appearing or being answered is the
|
|
141
|
+
* one thing the owner must see at once) and a change the owner just made himself, which skip both and still go through the shared send
|
|
142
|
+
* gate. A backoff after a failed rename (`retryNotBeforeMs`) holds every other name back too, so a topic that keeps signalling while
|
|
143
|
+
* Telegram fails sends one try per backoff, not one per signal. The instant a wait ends is when the caller asks again, so the LATEST
|
|
144
|
+
* desired name wins and states that came and went meanwhile are never shown.
|
|
145
|
+
*/
|
|
146
|
+
export declare function planIndicatorRename(inputs: IndicatorRenameInputs): IndicatorRenamePlan;
|
|
147
|
+
/** How many characters of a name the owner's phone shows in the topic list before its «…»: 28 until a screenshot of the phone's list is measured (the live probe's ruler). */
|
|
148
|
+
export declare const visibleNameChars = 28;
|
|
149
|
+
/** @description How long a base may be for its mark to stay visible on a phone: the visible characters less the space and the mark. */
|
|
150
|
+
export declare const visibleBaseChars: number;
|
|
151
|
+
/** @description Whether `base` is longer than the list shows with a mark after it — the picker then says the mark may be cut off. */
|
|
152
|
+
export declare function checkIsBaseTooLongForMark(base: string): boolean;
|
|
153
|
+
//# sourceMappingURL=topicIndicatorPlan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topicIndicatorPlan.d.ts","sourceRoot":"","sources":["../../src/utils/topicIndicatorPlan.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,sIAAsI;AACtI,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,qGAAqG;AACrG,eAAO,MAAM,aAAa,iEAAkE,CAAC;AAE7F,8HAA8H;AAC9H,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAMxD,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,wBAAwB,+BAAgC,CAAC;AAEtE,sGAAsG;AACtG,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAA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;IACpB,mCAAmC;IACnC,aAAa,EAAE,WAAW,GAAG,IAAI,CAAC;IAClC,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,WAAW,EAAE,MAAM,CAAC;IACpB,qEAAqE;IACrE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,4HAA4H;IAC5H,aAAa,EAAE,OAAO,CAAC;IACvB,+KAA+K;IAC/K,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,qHAAqH;AACrH,MAAM,MAAM,mBAAmB,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpG;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,qBAAqB,GAAG,mBAAmB,CAStF;AAID,8KAA8K;AAC9K,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAKnC,uIAAuI;AACvI,eAAO,MAAM,gBAAgB,QAAsC,CAAC;AAEpE,qIAAqI;AACrI,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE/D"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @description The pure plan of the status mark at the END of a topic's name (`connectors/telegram/topicIndicator.ts` applies it, `/topic_status`
|
|
4
|
+
* switches it): which status a topic shows, the name that carries it, the owner's own name back out of a name that already carries a mark,
|
|
5
|
+
* and WHEN a rename is allowed — so the topic list never flickers. No Telegram, no clock of its own: every instant comes in.
|
|
6
|
+
*
|
|
7
|
+
* The name is `<base> <status> <counts>`: the base is the owner's own words, the status is ONE mark, the counts are off by default.
|
|
8
|
+
* The topic's ICON is never part of it.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.visibleBaseChars = exports.visibleNameChars = exports.indicatorBootWaveDelayMs = exports.indicatorSweepIntervalMs = exports.indicatorMinRenameGapMs = exports.indicatorSettleMs = exports.defaultTopicStatusPrefs = exports.topicIndicatorSwitches = exports.topicIndicatorCountMarks = exports.topicIndicatorCountKinds = exports.topicStatusMarks = exports.topicStatuses = exports.topicNameMaxLength = void 0;
|
|
12
|
+
exports.checkIsTopicIndicatorSwitch = checkIsTopicIndicatorSwitch;
|
|
13
|
+
exports.resolveTopicStatusPrefs = resolveTopicStatusPrefs;
|
|
14
|
+
exports.createTopicStatusPrefsWith = createTopicStatusPrefsWith;
|
|
15
|
+
exports.resolveTopicStatus = resolveTopicStatus;
|
|
16
|
+
exports.composeIndicatorName = composeIndicatorName;
|
|
17
|
+
exports.getIndicatorSuffix = getIndicatorSuffix;
|
|
18
|
+
exports.getIndicatorStatusOfName = getIndicatorStatusOfName;
|
|
19
|
+
exports.stripIndicatorSuffix = stripIndicatorSuffix;
|
|
20
|
+
exports.getOwnerRenameOutcome = getOwnerRenameOutcome;
|
|
21
|
+
exports.checkIsNameReduction = checkIsNameReduction;
|
|
22
|
+
exports.planIndicatorRename = planIndicatorRename;
|
|
23
|
+
exports.checkIsBaseTooLongForMark = checkIsBaseTooLongForMark;
|
|
24
|
+
const surrogateSafeCut_1 = require("./surrogateSafeCut");
|
|
25
|
+
/** Telegram accepts a topic name of 0–128 characters (`createForumTopic`, `editForumTopic`), counted the way `String.length` does. */
|
|
26
|
+
exports.topicNameMaxLength = 128;
|
|
27
|
+
/** The statuses a name can show, highest priority first: the name shows the first one that holds. */
|
|
28
|
+
exports.topicStatuses = ['question', 'stuck', 'working', 'finished', 'asleep'];
|
|
29
|
+
/**
|
|
30
|
+
* The mark each status writes; `stuck` and `agents` carry the emoji variation selector the way the owner types them. Telegram drops some
|
|
31
|
+
* endings from a topic name — a trailing ✅ (and ☑️, ✔️) never shows, measured live on 2026-11-19 — so a mark is only ever one proven to be
|
|
32
|
+
* KEPT there: ❓ ❗️ ⏳ 💤 🟢 (and 🆗) were read back.
|
|
33
|
+
*/
|
|
34
|
+
exports.topicStatusMarks = {
|
|
35
|
+
question: '❓',
|
|
36
|
+
stuck: '❗️',
|
|
37
|
+
working: '⏳',
|
|
38
|
+
finished: '🟢',
|
|
39
|
+
asleep: '💤',
|
|
40
|
+
};
|
|
41
|
+
/** The two counts after the status: agents at work and tasks queued. */
|
|
42
|
+
exports.topicIndicatorCountKinds = ['agents', 'queued'];
|
|
43
|
+
/** The mark in front of each count's number. */
|
|
44
|
+
exports.topicIndicatorCountMarks = {
|
|
45
|
+
agents: '⚙️',
|
|
46
|
+
queued: '📋',
|
|
47
|
+
};
|
|
48
|
+
/** Every switch `/topic_status` has: one per status and one per count, in the order the picker lists them. */
|
|
49
|
+
exports.topicIndicatorSwitches = [...exports.topicStatuses, ...exports.topicIndicatorCountKinds];
|
|
50
|
+
/** @description Whether `value` names a switch (the data of a tap, a hand-edited file). */
|
|
51
|
+
function checkIsTopicIndicatorSwitch(value) {
|
|
52
|
+
return exports.topicIndicatorSwitches.some((candidate) => candidate === value);
|
|
53
|
+
}
|
|
54
|
+
/** What an instance does until the owner chooses: the five status marks on, both counts off (the owner: «a masquerade» otherwise). */
|
|
55
|
+
exports.defaultTopicStatusPrefs = {
|
|
56
|
+
question: true,
|
|
57
|
+
stuck: true,
|
|
58
|
+
working: true,
|
|
59
|
+
finished: true,
|
|
60
|
+
asleep: true,
|
|
61
|
+
agents: false,
|
|
62
|
+
queued: false,
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @description The switches in force for a topic: its own set when it has one (a tap copies General's set into the topic first, so it
|
|
66
|
+
* is whole), else the instance's (`settings.json`, which may name only the switches the owner changed) over the defaults.
|
|
67
|
+
*/
|
|
68
|
+
function resolveTopicStatusPrefs(instancePrefs, topicPrefs) {
|
|
69
|
+
return topicPrefs ?? { ...exports.defaultTopicStatusPrefs, ...instancePrefs };
|
|
70
|
+
}
|
|
71
|
+
/** @description Every switch turned to `isOn` — the «All off» button, and a whole set made of a partial one. */
|
|
72
|
+
function createTopicStatusPrefsWith(isOn) {
|
|
73
|
+
return { question: isOn, stuck: isOn, working: isOn, finished: isOn, asleep: isOn, agents: isOn, queued: isOn };
|
|
74
|
+
}
|
|
75
|
+
const statusInputField = {
|
|
76
|
+
question: 'hasOpenQuestion',
|
|
77
|
+
stuck: 'isStuck',
|
|
78
|
+
working: 'isWorking',
|
|
79
|
+
finished: 'isFinished',
|
|
80
|
+
asleep: 'isAsleep',
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* @description The status a topic shows: the first of {@link topicStatuses} that holds AND is switched on, `null` when none does (no mark).
|
|
84
|
+
* A status the owner turned off is skipped, as if it did not hold.
|
|
85
|
+
*/
|
|
86
|
+
function resolveTopicStatus(inputs, prefs) {
|
|
87
|
+
return exports.topicStatuses.find((status) => prefs[status] && inputs[statusInputField[status]]) ?? null;
|
|
88
|
+
}
|
|
89
|
+
/** The ellipsis a cut base ends in. */
|
|
90
|
+
const baseCutEllipsis = '…';
|
|
91
|
+
/** The separator between the base and each part after it. */
|
|
92
|
+
const partSeparator = ' ';
|
|
93
|
+
/** @description The base cut to at most `maxLength` UTF-16 units, ending in «…», never inside a surrogate pair. */
|
|
94
|
+
function cutBase(base, maxLength) {
|
|
95
|
+
if (base.length <= maxLength)
|
|
96
|
+
return base;
|
|
97
|
+
return `${(0, surrogateSafeCut_1.cutTextSurrogateSafe)(base, Math.max(0, maxLength - baseCutEllipsis.length))}${baseCutEllipsis}`;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @description The name a topic shows: `<base> <status> <counts>` — one space between the parts, each part only when it holds (a count
|
|
101
|
+
* only when switched on and at least 1), the base alone when none does. At most {@link topicNameMaxLength} units: the SUFFIX is never
|
|
102
|
+
* cut — the BASE is, ending in «…» — so the mark stays; the stored base stays whole, the cut exists only in the name that is applied.
|
|
103
|
+
*/
|
|
104
|
+
function composeIndicatorName(base, status, counts, prefs) {
|
|
105
|
+
const parts = [];
|
|
106
|
+
if (status !== null)
|
|
107
|
+
parts.push(exports.topicStatusMarks[status]);
|
|
108
|
+
for (const kind of exports.topicIndicatorCountKinds) {
|
|
109
|
+
if (prefs[kind] && counts[kind] >= 1)
|
|
110
|
+
parts.push(`${exports.topicIndicatorCountMarks[kind]}${counts[kind]}`);
|
|
111
|
+
}
|
|
112
|
+
if (parts.length === 0)
|
|
113
|
+
return base;
|
|
114
|
+
const suffix = parts.join(partSeparator);
|
|
115
|
+
return `${cutBase(base, exports.topicNameMaxLength - suffix.length - partSeparator.length)}${partSeparator}${suffix}`;
|
|
116
|
+
}
|
|
117
|
+
/** The emoji variation selector a client may or may not keep on a mark. */
|
|
118
|
+
const variationSelector = '\uFE0F';
|
|
119
|
+
function stripVariationSelector(text) {
|
|
120
|
+
return text.replaceAll(variationSelector, '');
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* A TRAILING run of the bot's own parts, each with its leading space: a status mark, `⚙️<n>`, `📋<n>` — with or without the variation
|
|
124
|
+
* selector. Built from the same mark tables the name is, so the two cannot drift.
|
|
125
|
+
*/
|
|
126
|
+
const indicatorSuffixPattern = (() => {
|
|
127
|
+
const statusMarks = exports.topicStatuses.map((status) => stripVariationSelector(exports.topicStatusMarks[status])).join('|');
|
|
128
|
+
const countMarks = exports.topicIndicatorCountKinds.map((kind) => stripVariationSelector(exports.topicIndicatorCountMarks[kind])).join('|');
|
|
129
|
+
const part = `(?:${statusMarks})${variationSelector}?|(?:${countMarks})${variationSelector}?\\d+`;
|
|
130
|
+
return new RegExp(`(?:\\s+(?:${part}))+\\s*$`, 'u');
|
|
131
|
+
})();
|
|
132
|
+
/** @description The trailing marks of `name` (the bot's own or typed alike) as written, `''` when it ends in none. */
|
|
133
|
+
function getIndicatorSuffix(name) {
|
|
134
|
+
return indicatorSuffixPattern.exec(name)?.[0].trim() ?? '';
|
|
135
|
+
}
|
|
136
|
+
/** @description The status mark a name ends in, `null` when it ends in none (the count marks are no status). */
|
|
137
|
+
function getIndicatorStatusOfName(name) {
|
|
138
|
+
const parts = stripVariationSelector(getIndicatorSuffix(name)).split(/\s+/u);
|
|
139
|
+
return exports.topicStatuses.find((status) => parts.includes(stripVariationSelector(exports.topicStatusMarks[status]))) ?? null;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @description The owner's own name out of a name he just saved: `name` without its trailing run of the bot's marks. A name saved equal to
|
|
143
|
+
* the one the bot applied is the stored whole `base` (the applied one may be a cut of it). Cost, by design: an owner's name that itself ends
|
|
144
|
+
* in a mark loses that ending.
|
|
145
|
+
*/
|
|
146
|
+
function stripIndicatorSuffix(name, appliedName, base) {
|
|
147
|
+
if (base !== undefined && name === appliedName)
|
|
148
|
+
return base;
|
|
149
|
+
return name.replace(indicatorSuffixPattern, '').trimEnd();
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @description The owner saved `savedName` as the topic's name. The base is that name without a trailing mark of ours. A mark that is NOT
|
|
153
|
+
* one the bot itself had written — `appliedName` or any of `recentAppliedNames` (he may have opened the name before the bot changed its
|
|
154
|
+
* mark) — is the owner's own (`Release 🟢` typed while ⏳ showed) and is reported as dropped, so the picker can say so once; a mark of the
|
|
155
|
+
* bot's own left in place by an edit around it (`Deploy v2 ⏳` over `Deploy ⏳`) is no news.
|
|
156
|
+
*/
|
|
157
|
+
function getOwnerRenameOutcome(savedName, appliedName, storedBase, recentAppliedNames = []) {
|
|
158
|
+
const base = stripIndicatorSuffix(savedName, appliedName, storedBase);
|
|
159
|
+
const savedSuffix = getIndicatorSuffix(savedName);
|
|
160
|
+
const botSuffixes = [appliedName ?? '', ...recentAppliedNames].map(getIndicatorSuffix);
|
|
161
|
+
const isOwnMarkDropped = savedSuffix !== '' && savedName !== appliedName && !botSuffixes.includes(savedSuffix);
|
|
162
|
+
return { base, droppedMark: isOwnMarkDropped ? savedSuffix : null };
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @description Whether `storedName` is what Telegram made of `askedName` by DROPPING characters from it — a shorter name every character of
|
|
166
|
+
* which is in the asked one, in order (`Release 🟢` of `Release ✅ 🟢`, `Deploy` of `Deploy 🟢`). It is how the bot tells that the name on its
|
|
167
|
+
* own «renamed» line is its own ask, altered, and no stranger's: Telegram only takes characters out (it drops a ✅ anywhere in a name).
|
|
168
|
+
*/
|
|
169
|
+
function checkIsNameReduction(storedName, askedName) {
|
|
170
|
+
const stored = Array.from(storedName);
|
|
171
|
+
const asked = Array.from(askedName);
|
|
172
|
+
if (stored.length >= asked.length)
|
|
173
|
+
return false;
|
|
174
|
+
let storedIndex = 0;
|
|
175
|
+
for (const character of asked) {
|
|
176
|
+
if (character === stored[storedIndex])
|
|
177
|
+
storedIndex += 1;
|
|
178
|
+
}
|
|
179
|
+
return storedIndex === stored.length;
|
|
180
|
+
}
|
|
181
|
+
// ── when a rename may happen ──
|
|
182
|
+
/**
|
|
183
|
+
* A name must have been the wanted one this long before it is written: a turn runs this long before its ⏳ shows, a short reply goes
|
|
184
|
+
* straight to its final mark, and a session that wakes for a prompt never shows a 🟢 on the way to its ⏳ (the owner: no flashing).
|
|
185
|
+
*/
|
|
186
|
+
exports.indicatorSettleMs = 20_000;
|
|
187
|
+
/** Two renames of one topic are at least this far apart; the latest state wins, a state that came and went inside the gap is never shown. */
|
|
188
|
+
exports.indicatorMinRenameGapMs = 60_000;
|
|
189
|
+
/** The bot looks at every topic again this often, for the changes no event announces (a watched worker that ended). */
|
|
190
|
+
exports.indicatorSweepIntervalMs = 5 * 60_000;
|
|
191
|
+
/** After the polling starts, the boot's rename wave waits this long for the first pending updates to be handled (an owner's rename made while the bot was down is learned before the wave writes). */
|
|
192
|
+
exports.indicatorBootWaveDelayMs = 5_000;
|
|
193
|
+
/**
|
|
194
|
+
* @description When the topic is renamed to its desired name. Nothing when it already shows it. A name waits until it has been the
|
|
195
|
+
* wanted one for `settleMs`, and two renames keep `minGapMs` apart — except the edges of ❓ (a question appearing or being answered is the
|
|
196
|
+
* one thing the owner must see at once) and a change the owner just made himself, which skip both and still go through the shared send
|
|
197
|
+
* gate. A backoff after a failed rename (`retryNotBeforeMs`) holds every other name back too, so a topic that keeps signalling while
|
|
198
|
+
* Telegram fails sends one try per backoff, not one per signal. The instant a wait ends is when the caller asks again, so the LATEST
|
|
199
|
+
* desired name wins and states that came and went meanwhile are never shown.
|
|
200
|
+
*/
|
|
201
|
+
function planIndicatorRename(inputs) {
|
|
202
|
+
const { desiredName, desiredStatus, appliedName, heldSinceMs, lastRenameAtMs, isOwnerChange, retryNotBeforeMs, nowMs, settleMs, minGapMs } = inputs;
|
|
203
|
+
if (desiredName === appliedName)
|
|
204
|
+
return { kind: 'none' };
|
|
205
|
+
const isQuestionEdge = desiredStatus === 'question' || getIndicatorStatusOfName(appliedName) === 'question';
|
|
206
|
+
if (isQuestionEdge || isOwnerChange)
|
|
207
|
+
return { kind: 'now' };
|
|
208
|
+
const settleEndsAtMs = heldSinceMs + settleMs;
|
|
209
|
+
const gapEndsAtMs = lastRenameAtMs === null ? nowMs : lastRenameAtMs + minGapMs;
|
|
210
|
+
const atMs = Math.max(settleEndsAtMs, gapEndsAtMs, retryNotBeforeMs ?? 0);
|
|
211
|
+
return atMs > nowMs ? { kind: 'at', atMs } : { kind: 'now' };
|
|
212
|
+
}
|
|
213
|
+
// ── names too long for the mark ──
|
|
214
|
+
/** How many characters of a name the owner's phone shows in the topic list before its «…»: 28 until a screenshot of the phone's list is measured (the live probe's ruler). */
|
|
215
|
+
exports.visibleNameChars = 28;
|
|
216
|
+
/** What the mark takes in the list: the space and the mark itself. */
|
|
217
|
+
const markReserveChars = 2;
|
|
218
|
+
/** @description How long a base may be for its mark to stay visible on a phone: the visible characters less the space and the mark. */
|
|
219
|
+
exports.visibleBaseChars = exports.visibleNameChars - markReserveChars;
|
|
220
|
+
/** @description Whether `base` is longer than the list shows with a mark after it — the picker then says the mark may be cut off. */
|
|
221
|
+
function checkIsBaseTooLongForMark(base) {
|
|
222
|
+
return Array.from(base).length > exports.visibleBaseChars;
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=topicIndicatorPlan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topicIndicatorPlan.js","sourceRoot":"","sources":["../../src/utils/topicIndicatorPlan.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AA6CH,kEAEC;AAoBD,0DAEC;AAGD,gEAEC;AA8BD,gDAEC;AAwBD,oDASC;AAqBD,gDAEC;AAGD,4DAGC;AAOD,oDAGC;AAcD,sDAMC;AAOD,oDASC;AAmDD,kDASC;AAcD,8DAEC;AAhSD,yDAA0D;AAE1D,sIAAsI;AACzH,QAAA,kBAAkB,GAAG,GAAG,CAAC;AAEtC,qGAAqG;AACxF,QAAA,aAAa,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,CAAU,CAAC;AAK7F;;;;GAIG;AACU,QAAA,gBAAgB,GAAgC;IAC3D,QAAQ,EAAE,GAAG;IACb,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,GAAG;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,wEAAwE;AAC3D,QAAA,wBAAwB,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAKtE,gDAAgD;AACnC,QAAA,wBAAwB,GAA4C;IAC/E,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;CACb,CAAC;AAEF,8GAA8G;AACjG,QAAA,sBAAsB,GAAG,CAAC,GAAG,qBAAa,EAAE,GAAG,gCAAwB,CAAU,CAAC;AAK/F,2FAA2F;AAC3F,SAAgB,2BAA2B,CAAC,KAAyB;IACnE,OAAO,8BAAsB,CAAC,IAAI,CAAC,CAAC,SAAS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AAgB,GAAG,wBAAgB,GAAG,gBAAgB,CAAC;AAEpE,qIAAqI;AACrI,SAAgB,yBAAyB,CAAC,IAAY;IACpD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,wBAAgB,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description What a topic's status mark is built from, reduced to pure rules over facts the bot reads live: which schedules are a
|
|
3
|
+
* watched worker that still runs, and how the agent's facts (a process up or not, a turn at work, an open question, a stuck agent, a
|
|
4
|
+
* conversation to resume) become the inputs `resolveTopicStatus` chooses from. The reading itself (adapters, maps, the schedule store)
|
|
5
|
+
* stays in `bot.ts`; the rules live here, where a test can reach them.
|
|
6
|
+
*/
|
|
7
|
+
import type { ScheduleRecord } from '../scheduler/types';
|
|
8
|
+
import type { TopicStatusInputs } from './topicIndicatorPlan';
|
|
9
|
+
/**
|
|
10
|
+
* @description Whether `record` is a watched worker that still runs: a check with a worker's run directory (the recipe of
|
|
11
|
+
* `scheduler/workerWatch.ts`) that is not parked, not ended and not failing — a failing check IS the worker's end.
|
|
12
|
+
*/
|
|
13
|
+
export declare function checkIsWatchedWorkerRunning(record: ScheduleRecord): boolean;
|
|
14
|
+
/** What the bot knows of a topic's agent right now. */
|
|
15
|
+
export interface TopicAgentFacts {
|
|
16
|
+
/** The topic has an agent backend that has agent states: no terminal topic, no topic that never started one. */
|
|
17
|
+
hasAgent: boolean;
|
|
18
|
+
/** The agent's process is up. */
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
/** Its turn runs (background tasks and a compaction included). */
|
|
21
|
+
isTurnRunning: boolean;
|
|
22
|
+
/** Its backend stops the process after EVERY turn (`claude-per-turn`): a stopped process is its normal state between turns, not an idle stop. */
|
|
23
|
+
isPerTurnBackend: boolean;
|
|
24
|
+
/** The workers the agent watches that still run. */
|
|
25
|
+
watchedWorkerCount: number;
|
|
26
|
+
/** A question of the agent is open: waiting or set aside. */
|
|
27
|
+
hasOpenQuestion: boolean;
|
|
28
|
+
/** The agent cannot go on by itself. */
|
|
29
|
+
isStuck: boolean;
|
|
30
|
+
/** The conversation has a session to resume (its process is stopped, the conversation is kept). */
|
|
31
|
+
hasResumableSession: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @description The facts a status is chosen from. A topic with no agent has none of them. Working is the agent's own turn OR a watched
|
|
35
|
+
* worker (the agent may rest while its builder runs); finished is a process that is up and not working — or, for the per-turn backend, whose
|
|
36
|
+
* process the bot stopped after the turn that ended (the answer is there to read until the next turn, as for any agent that finished);
|
|
37
|
+
* asleep is a process the bot stopped at the idle mark with the conversation kept.
|
|
38
|
+
*/
|
|
39
|
+
export declare function getTopicStatusInputs(facts: TopicAgentFacts): TopicStatusInputs;
|
|
40
|
+
//# sourceMappingURL=topicIndicatorSources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topicIndicatorSources.d.ts","sourceRoot":"","sources":["../../src/utils/topicIndicatorSources.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAE3E;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,gHAAgH;IAChH,QAAQ,EAAE,OAAO,CAAC;IAClB,iCAAiC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,kEAAkE;IAClE,aAAa,EAAE,OAAO,CAAC;IACvB,iJAAiJ;IACjJ,gBAAgB,EAAE,OAAO,CAAC;IAC1B,oDAAoD;IACpD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,eAAe,EAAE,OAAO,CAAC;IACzB,wCAAwC;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,mGAAmG;IACnG,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,eAAe,GAAG,iBAAiB,CAU9E"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkIsWatchedWorkerRunning = checkIsWatchedWorkerRunning;
|
|
4
|
+
exports.getTopicStatusInputs = getTopicStatusInputs;
|
|
5
|
+
const deliveryKind_1 = require("../scheduler/deliveryKind");
|
|
6
|
+
/**
|
|
7
|
+
* @description Whether `record` is a watched worker that still runs: a check with a worker's run directory (the recipe of
|
|
8
|
+
* `scheduler/workerWatch.ts`) that is not parked, not ended and not failing — a failing check IS the worker's end.
|
|
9
|
+
*/
|
|
10
|
+
function checkIsWatchedWorkerRunning(record) {
|
|
11
|
+
return (0, deliveryKind_1.checkIsCheckSchedule)(record) && record.statusWorkerRunDir !== undefined && record.isPaused !== true && record.nextRunAt !== null && record.isCheckFailing !== true;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @description The facts a status is chosen from. A topic with no agent has none of them. Working is the agent's own turn OR a watched
|
|
15
|
+
* worker (the agent may rest while its builder runs); finished is a process that is up and not working — or, for the per-turn backend, whose
|
|
16
|
+
* process the bot stopped after the turn that ended (the answer is there to read until the next turn, as for any agent that finished);
|
|
17
|
+
* asleep is a process the bot stopped at the idle mark with the conversation kept.
|
|
18
|
+
*/
|
|
19
|
+
function getTopicStatusInputs(facts) {
|
|
20
|
+
if (!facts.hasAgent)
|
|
21
|
+
return { hasOpenQuestion: false, isStuck: false, isWorking: false, isFinished: false, isAsleep: false };
|
|
22
|
+
const isAgentWorking = facts.isActive && facts.isTurnRunning;
|
|
23
|
+
return {
|
|
24
|
+
hasOpenQuestion: facts.hasOpenQuestion,
|
|
25
|
+
isStuck: facts.isStuck,
|
|
26
|
+
isWorking: isAgentWorking || facts.watchedWorkerCount > 0,
|
|
27
|
+
isFinished: (facts.isActive && !isAgentWorking) || (!facts.isActive && facts.isPerTurnBackend && facts.hasResumableSession),
|
|
28
|
+
isAsleep: !facts.isActive && !facts.isPerTurnBackend && facts.hasResumableSession,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=topicIndicatorSources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"topicIndicatorSources.js","sourceRoot":"","sources":["../../src/utils/topicIndicatorSources.ts"],"names":[],"mappings":";;AAcA,kEAEC;AA4BD,oDAUC;AA/CD,4DAAiE;AAGjE;;;GAGG;AACH,SAAgB,2BAA2B,CAAC,MAAsB;IAChE,OAAO,IAAA,mCAAoB,EAAC,MAAM,CAAC,IAAI,MAAM,CAAC,kBAAkB,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI,IAAI,MAAM,CAAC,cAAc,KAAK,IAAI,CAAC;AAC5K,CAAC;AAsBD;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,KAAsB;IACzD,IAAI,CAAC,KAAK,CAAC,QAAQ;QAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC7H,MAAM,cAAc,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,aAAa,CAAC;IAC7D,OAAO;QACL,eAAe,EAAE,KAAK,CAAC,eAAe;QACtC,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,SAAS,EAAE,cAAc,IAAI,KAAK,CAAC,kBAAkB,GAAG,CAAC;QACzD,UAAU,EAAE,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,gBAAgB,IAAI,KAAK,CAAC,mBAAmB,CAAC;QAC3H,QAAQ,EAAE,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,gBAAgB,IAAI,KAAK,CAAC,mBAAmB;KAClF,CAAC;AACJ,CAAC"}
|
|
@@ -59,6 +59,9 @@ export declare function getTopicRequestOrigin(intake: TopicRequestIntake): Reque
|
|
|
59
59
|
* who wrote the message when that is not the operator (`topic member "Alice Smith"
|
|
60
60
|
* (@alice)`, from `MessageContext.nonOperatorSender`), so the request is never
|
|
61
61
|
* read as the operator's own.
|
|
62
|
+
* A scheduled run's request (the scheduler's own, `src/requests/README.md` § Scheduled runs) asks for an answer only with a result,
|
|
63
|
+
* as the header of a request a fire rides does, and names nothing it replaced: a woken agent with nothing to report stays silent,
|
|
64
|
+
* and in a view with answers every answer is pinned, which notifies.
|
|
62
65
|
*/
|
|
63
66
|
export declare function buildTopicRequestHeader(requestId: string, source: TopicRequestSource, view: TopicView, supersededRequestIds?: readonly string[], sender?: string): string;
|
|
64
67
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topicRequest.d.ts","sourceRoot":"","sources":["../../src/utils/topicRequest.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,cAAc,CAAC;AAEnG,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,cAAc,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,MAAM,CA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,uBAAuB,CACrC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,IAAI,EAAE,SAAS,EACf,oBAAoB,GAAE,SAAS,MAAM,EAAO,EAC5C,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAQR;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,oBAAoB,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAET"}
|
|
@@ -60,6 +60,9 @@ function getTopicRequestOrigin(intake) {
|
|
|
60
60
|
* who wrote the message when that is not the operator (`topic member "Alice Smith"
|
|
61
61
|
* (@alice)`, from `MessageContext.nonOperatorSender`), so the request is never
|
|
62
62
|
* read as the operator's own.
|
|
63
|
+
* A scheduled run's request (the scheduler's own, `src/requests/README.md` § Scheduled runs) asks for an answer only with a result,
|
|
64
|
+
* as the header of a request a fire rides does, and names nothing it replaced: a woken agent with nothing to report stays silent,
|
|
65
|
+
* and in a view with answers every answer is pinned, which notifies.
|
|
63
66
|
*/
|
|
64
67
|
function buildTopicRequestHeader(requestId, source, view, supersededRequestIds = [], sender) {
|
|
65
68
|
return (0, requestHeader_1.buildRequestHeader)({
|
|
@@ -67,6 +70,7 @@ function buildTopicRequestHeader(requestId, source, view, supersededRequestIds =
|
|
|
67
70
|
originDescription: `${topicRequestOriginDescriptions[source]}${sender ? ` from ${sender}` : ''}`,
|
|
68
71
|
isPlainTextHidden: !(0, topicView_1.checkIsStreamShown)(view),
|
|
69
72
|
supersededRequestIds,
|
|
73
|
+
isAnswerOnlyWithResult: source === 'scheduledRun',
|
|
70
74
|
});
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topicRequest.js","sourceRoot":"","sources":["../../src/utils/topicRequest.ts"],"names":[],"mappings":";;;AA2CA,kDAEC;AAmBD,kEAEC;AAOD,sDAKC;
|
|
1
|
+
{"version":3,"file":"topicRequest.js","sourceRoot":"","sources":["../../src/utils/topicRequest.ts"],"names":[],"mappings":";;;AA2CA,kDAEC;AAmBD,kEAEC;AAOD,sDAKC;AAeD,0DAcC;AAOD,0DASC;AAlHD,6DAA+D;AAC/D,2DAAqE;AAErE,2CAA0E;AAS1E,iFAAiF;AACpE,QAAA,2BAA2B,GAAG,QAAQ,CAAC;AAEpD;;;;GAIG;AACU,QAAA,qBAAqB,GAAG,WAAW,CAAC;AAajD,+FAA+F;AAC/F,SAAgB,mBAAmB,CAAC,IAAgC;IAClE,OAAO,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;AACnC,CAAC;AAED,qEAAqE;AACrE,MAAM,8BAA8B,GAAiD;IACnF,IAAI,EAAE,yBAAyB;IAC/B,KAAK,EAAE,+BAA+B;IACtC,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,6BAA6B;IACpC,QAAQ,EAAE,mCAAmC;IAC7C,YAAY,EAAE,+BAA+B;CAC9C,CAAC;AAEF;;;;;;GAMG;AACH,SAAgB,2BAA2B,CAAC,IAAe,EAAE,cAAuB;IAClF,OAAO,IAAA,mCAAuB,EAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,MAA0B;IAC9D,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,MAAM,KAAK,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS;QACnE,UAAU,EAAE,EAAE,CAAC,mCAA2B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,wCAAyB,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE;KAC9G,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,uBAAuB,CACrC,SAAiB,EACjB,MAA0B,EAC1B,IAAe,EACf,uBAA0C,EAAE,EAC5C,MAAe;IAEf,OAAO,IAAA,kCAAkB,EAAC;QACxB,SAAS;QACT,iBAAiB,EAAE,GAAG,8BAA8B,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;QAChG,iBAAiB,EAAE,CAAC,IAAA,8BAAkB,EAAC,IAAI,CAAC;QAC5C,oBAAoB;QACpB,sBAAsB,EAAE,MAAM,KAAK,cAAc;KAClD,CAAC,CAAC;AACL,CAAC;AAED;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,KAOvC;IACC,OAAO,GAAG,uBAAuB,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,UAAU,EAAE,CAAC;AAC9I,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description The pure half of `/topic_status` — the switches of the status mark at the end of topic names (`topicIndicatorPlan.ts`): the
|
|
3
|
+
* `tst_*` / `tsn_*` button codec, the result of a tap on a set of switches, and the two screens (text + button plan) — a topic's own and
|
|
4
|
+
* General's, which sets the default of every topic and lists the topics whose own name the bot does not know yet. The command module
|
|
5
|
+
* (`connectors/telegram/commands/topicStatus.ts`) draws them and applies what a tap decides.
|
|
6
|
+
*
|
|
7
|
+
* A button carries what it does, not a position: a switch's data names the switch and its NEW value, a name confirmation the topic's
|
|
8
|
+
* thread id — so a keyboard left in the history applies exactly what its button says, or is told it is out of date, never something else.
|
|
9
|
+
* All data is far under Telegram's 64 bytes.
|
|
10
|
+
*/
|
|
11
|
+
import { type TopicIndicatorSwitch, type TopicStatusPrefs } from './topicIndicatorPlan';
|
|
12
|
+
/** Every `/topic_status` button's callback data starts with this; the name confirmation has its own prefix. */
|
|
13
|
+
export declare const topicStatusCallbackPrefix = "tst_";
|
|
14
|
+
export declare const topicStatusNameCallbackPrefix = "tsn_";
|
|
15
|
+
/** The data of the «All off» and «As General» buttons. */
|
|
16
|
+
export declare const topicStatusAllOffCallback = "tst_off";
|
|
17
|
+
export declare const topicStatusSameAsGeneralCallback = "tst_same";
|
|
18
|
+
/** How many topics whose name the bot does not know General lists as buttons; the rest are counted. */
|
|
19
|
+
export declare const topicStatusUnknownNameButtonLimit = 8;
|
|
20
|
+
/** One button of a screen: its caption and the data a tap carries. */
|
|
21
|
+
export interface TopicStatusButton {
|
|
22
|
+
label: string;
|
|
23
|
+
callbackData: string;
|
|
24
|
+
}
|
|
25
|
+
/** A screen: the message text and its rows of buttons. */
|
|
26
|
+
export interface TopicStatusScreen {
|
|
27
|
+
text: string;
|
|
28
|
+
keyboard: TopicStatusButton[][];
|
|
29
|
+
}
|
|
30
|
+
/** A decoded tap. */
|
|
31
|
+
export type TopicStatusCallback = {
|
|
32
|
+
kind: 'switch';
|
|
33
|
+
name: TopicIndicatorSwitch;
|
|
34
|
+
isOn: boolean;
|
|
35
|
+
} | {
|
|
36
|
+
kind: 'allOff';
|
|
37
|
+
} | {
|
|
38
|
+
kind: 'sameAsGeneral';
|
|
39
|
+
} | {
|
|
40
|
+
kind: 'confirmName';
|
|
41
|
+
threadId: number;
|
|
42
|
+
};
|
|
43
|
+
/** Every data the module registers. */
|
|
44
|
+
export declare const topicStatusCallbackRe: RegExp;
|
|
45
|
+
/** @description The data of a tap that turns `name` to `isOn`. */
|
|
46
|
+
export declare function buildTopicStatusSwitchCallback(name: TopicIndicatorSwitch, isOn: boolean): string;
|
|
47
|
+
/** @description The data of the button that confirms the name of topic `threadId`. */
|
|
48
|
+
export declare function buildTopicStatusNameCallback(threadId: number): string;
|
|
49
|
+
/** @description Read a tap's data; `null` for data that is none of ours (a stale or foreign keyboard). */
|
|
50
|
+
export declare function parseTopicStatusCallback(data: string): TopicStatusCallback | null;
|
|
51
|
+
/** @description The set of switches after a tap that is a switch or «All off»; `current` itself for any other tap. */
|
|
52
|
+
export declare function applyTopicStatusTap(current: TopicStatusPrefs, tap: TopicStatusCallback): TopicStatusPrefs;
|
|
53
|
+
/** What the topic view knows of the topic and its chat. */
|
|
54
|
+
export interface TopicStatusTopicView {
|
|
55
|
+
/** The switches the topic uses now (its own set, else the instance's). */
|
|
56
|
+
prefs: TopicStatusPrefs;
|
|
57
|
+
/** Whether the topic has a set of its own (else it follows General). */
|
|
58
|
+
isOwnSet: boolean;
|
|
59
|
+
/** Whether the topic is bound: an unbound topic is never marked, so no hint about its name applies. */
|
|
60
|
+
isBound: boolean;
|
|
61
|
+
/** The owner's own name of the topic, when the bot knows it. */
|
|
62
|
+
base: string | undefined;
|
|
63
|
+
/** The name the topic was created with, offered while the base is unknown. */
|
|
64
|
+
candidate: string | undefined;
|
|
65
|
+
/** The topic's thread id: the confirmation button's data. */
|
|
66
|
+
threadId: number;
|
|
67
|
+
isRenameRefused: boolean;
|
|
68
|
+
isLineDeletionRefused: boolean;
|
|
69
|
+
/** A mark of the owner's own that was taken for the bot's and dropped from the name; told once. */
|
|
70
|
+
droppedMark: string | undefined;
|
|
71
|
+
}
|
|
72
|
+
/** @description A topic's own screen: the switches, the way to General's set, and the hints that apply to it. */
|
|
73
|
+
export declare function buildTopicStatusTopicScreen(view: TopicStatusTopicView): TopicStatusScreen;
|
|
74
|
+
/** A topic General lists because the bot does not know its own name yet. */
|
|
75
|
+
export interface TopicStatusUnknownNameTopic {
|
|
76
|
+
threadId: number;
|
|
77
|
+
/** The name it was created with; `undefined` when the bot has none to offer. */
|
|
78
|
+
candidate: string | undefined;
|
|
79
|
+
}
|
|
80
|
+
/** What General's view knows. */
|
|
81
|
+
export interface TopicStatusGeneralView {
|
|
82
|
+
/** The instance's switches. */
|
|
83
|
+
prefs: TopicStatusPrefs;
|
|
84
|
+
/** The bound topics whose own name the bot does not know. */
|
|
85
|
+
unknownNameTopics: readonly TopicStatusUnknownNameTopic[];
|
|
86
|
+
isRenameRefused: boolean;
|
|
87
|
+
}
|
|
88
|
+
/** @description General's screen: the default of every topic, and the topics whose name the bot does not know yet. */
|
|
89
|
+
export declare function buildTopicStatusGeneralScreen(view: TopicStatusGeneralView): TopicStatusScreen;
|
|
90
|
+
//# sourceMappingURL=topicStatusPlan.d.ts.map
|