@promptbook/cli 0.114.0-3 → 0.114.0-5
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/README.md +4 -12
- package/apps/agents-server/{USE_TIMEOUT_CHIP_QA.md → TIMEOUT_CHIP_QA.md} +1 -1
- package/apps/agents-server/src/app/agents/[agentName]/api/chat/resolveAgentChatRouteContext.ts +5 -12
- package/apps/agents-server/src/app/agents/[agentName]/api/voice/route.ts +4 -9
- package/apps/agents-server/src/app/api/scrape/route.ts +1 -1
- package/apps/agents-server/src/app/layout.tsx +25 -0
- package/apps/agents-server/src/app/system/user-wallet/UserWalletDraft.ts +2 -2
- package/apps/agents-server/src/components/AgentProfile/AgentCapabilityChips.tsx +1 -24
- package/apps/agents-server/src/components/Header/Header.tsx +8 -0
- package/apps/agents-server/src/components/Header/HeaderTypes.ts +5 -0
- package/apps/agents-server/src/components/Header/buildHeaderSystemMenuItems.ts +118 -30
- package/apps/agents-server/src/components/Header/resolveHeaderSystemActivities.ts +86 -0
- package/apps/agents-server/src/components/Homepage/AgentCard.tsx +0 -3
- package/apps/agents-server/src/components/LayoutWrapper/LayoutWrapper.tsx +8 -0
- package/apps/agents-server/src/components/NewAgentDialog/NewAgentWizardState.ts +0 -12
- package/apps/agents-server/src/components/NewAgentDialog/NewAgentWizardUseSetupStep.tsx +0 -58
- package/apps/agents-server/src/components/NewAgentDialog/newAgentWizardPresets.ts +0 -56
- package/apps/agents-server/src/components/WalletRecordDialog/useWalletRecordDialogState.ts +1 -1
- package/apps/agents-server/src/languages/ServerTranslationKeys.ts +0 -10
- package/apps/agents-server/src/languages/translations/czech.yaml +0 -10
- package/apps/agents-server/src/languages/translations/english.yaml +0 -10
- package/apps/agents-server/src/message-providers/email/smtp/SmtpMessageProvider.ts +1 -1
- package/apps/agents-server/src/tools/$provideOpenAiAgentKitExecutionToolsForServer.ts +0 -191
- package/apps/agents-server/src/tools/$provideOpenAiAssistantExecutionToolsForServer.ts +0 -3
- package/apps/agents-server/src/tools/run_browser.ts +1 -1
- package/apps/agents-server/src/tools/send_email.ts +3 -3
- package/apps/agents-server/src/utils/handleChatCompletion/createHandleChatCompletionPromptContext.ts +0 -1
- package/apps/agents-server/src/utils/handleChatCompletion/resolveHandleChatCompletionRuntime.ts +4 -12
- package/apps/agents-server/src/utils/manGoOnboarding/manGoOnboardingAgentBooks.ts +0 -1
- package/apps/agents-server/src/utils/messages/parseUseEmailSmtpCredential.ts +1 -1
- package/apps/agents-server/src/utils/resolveUseEmailSmtpCredential.ts +1 -1
- package/apps/agents-server/src/utils/useEmailSmtpWalletConstants.ts +5 -5
- package/apps/agents-server/src/utils/userChat/createRunUserChatJobExecutionContext.ts +5 -12
- package/apps/agents-server/src/utils/userWallet/UserWalletRecord.ts +1 -1
- package/apps/agents-server/src/utils/userWallet/resolveUseEmailSmtpCredentialFromWallet.ts +1 -1
- package/apps/agents-server/src/utils/vpsSelfUpdate/deleteVpsSelfUpdateInstalledVersion.ts +2 -1
- package/apps/agents-server/src/utils/vpsSelfUpdate/isVpsSelfUpdateJobRunning.ts +16 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/startVpsSelfUpdate.ts +2 -1
- package/apps/agents-server/src/utils/vpsSelfUpdate.ts +1 -0
- package/esm/index.es.js +2885 -6344
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/common/createCoderRunStepTracker.d.ts +48 -0
- package/esm/scripts/run-codex-prompts/prompts/buildPromptStatusDetails.d.ts +43 -0
- package/esm/scripts/run-codex-prompts/prompts/formatCoderRunSteps.d.ts +6 -3
- package/esm/scripts/run-codex-prompts/prompts/isPromptSectionUnfinished.d.ts +8 -0
- package/esm/scripts/run-codex-prompts/prompts/markPromptDone.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/prompts/markPromptInProgress.d.ts +27 -0
- package/esm/scripts/run-codex-prompts/prompts/resolvePromptStatusLine.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/prompts/writePromptStatusLine.d.ts +9 -0
- package/esm/scripts/run-codex-prompts/server/buildCoderServerPromptResponse.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/server/coderServerHtml.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/server/updatePromptSection.d.ts +1 -1
- package/esm/scripts/run-codex-prompts/testing/runPromptWithTestFeedback.d.ts +6 -0
- package/esm/scripts/verify-prompts/$orderPromptFiles.d.ts +9 -0
- package/esm/scripts/verify-prompts/VerifyPromptsOrder.d.ts +26 -0
- package/esm/scripts/verify-prompts/verify-prompts.d.ts +3 -2
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
- package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +3 -2
- package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
- package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
- package/esm/src/commitments/index.d.ts +4 -12
- package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
- package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/_packages/components.readme.md +1 -1
- package/src/book-2.0/agent-source/AgentBasicInformation.ts +3 -9
- package/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/filterCommitmentsForAgentModelRequirements.ts +0 -23
- package/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.ts +0 -2
- package/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.ts +16 -31
- package/src/book-2.0/agent-source/parseAgentSource/createCapabilitiesFromCommitment.ts +0 -35
- package/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.ts +0 -25
- package/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.ts +2 -10
- package/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.ts +7 -32
- package/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.ts +6 -31
- package/src/book-components/BookEditor/useBookEditorMonacoLanguage.ts +1 -1
- package/src/cli/cli-commands/coder/boilerplateCount.ts +139 -0
- package/src/cli/cli-commands/coder/generate-boilerplates.ts +52 -44
- package/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.ts +3 -1
- package/src/cli/cli-commands/coder/init.ts +2 -1
- package/src/cli/cli-commands/coder/verify.ts +29 -5
- package/src/commitments/ACTION/ACTION.ts +3 -3
- package/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.ts +1 -1
- package/src/commitments/META_FULLNAME/META_FULLNAME.ts +70 -0
- package/src/commitments/META_ID/META_ID.ts +78 -0
- package/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.ts +1 -49
- package/src/commitments/index.ts +6 -24
- package/src/llm-providers/agent/Agent.ts +1 -1
- package/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.ts +2 -2
- package/src/other/templates/getTemplatesPipelineCollection.ts +735 -693
- package/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.ts +8 -9
- package/src/version.ts +2 -2
- package/src/versions.txt +2 -0
- package/umd/index.umd.js +2888 -6347
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/common/createCoderRunStepTracker.d.ts +48 -0
- package/umd/scripts/run-codex-prompts/prompts/buildPromptStatusDetails.d.ts +43 -0
- package/umd/scripts/run-codex-prompts/prompts/formatCoderRunSteps.d.ts +6 -3
- package/umd/scripts/run-codex-prompts/prompts/isPromptSectionUnfinished.d.ts +8 -0
- package/umd/scripts/run-codex-prompts/prompts/markPromptDone.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/prompts/markPromptInProgress.d.ts +27 -0
- package/umd/scripts/run-codex-prompts/prompts/resolvePromptStatusLine.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/prompts/writePromptStatusLine.d.ts +9 -0
- package/umd/scripts/run-codex-prompts/server/buildCoderServerPromptResponse.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/server/coderServerHtml.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/server/updatePromptSection.d.ts +1 -1
- package/umd/scripts/run-codex-prompts/testing/runPromptWithTestFeedback.d.ts +6 -0
- package/umd/scripts/verify-prompts/$orderPromptFiles.d.ts +9 -0
- package/umd/scripts/verify-prompts/VerifyPromptsOrder.d.ts +26 -0
- package/umd/scripts/verify-prompts/verify-prompts.d.ts +3 -2
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
- package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +3 -2
- package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
- package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
- package/umd/src/commitments/index.d.ts +4 -12
- package/umd/src/llm-providers/agent/Agent.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
- package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
- package/umd/src/version.d.ts +1 -1
- package/apps/agents-server/src/tools/configureTimeoutToolRuntimeAdapterForServer.ts +0 -381
- package/apps/agents-server/src/utils/emails/extractUseEmailConfigurationFromAgentSource.ts +0 -42
- package/esm/scripts/run-codex-prompts/prompts/replacePromptTodoStatusLine.d.ts +0 -7
- package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
- package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
- package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
- package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
- package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
- package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
- package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
- package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
- package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
- package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/META/META.d.ts +0 -65
- package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
- package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
- package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
- package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
- package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
- package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
- package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
- package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts +0 -1
- package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
- package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
- package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
- package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts +0 -1
- package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
- package/esm/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts +0 -1
- package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
- package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
- package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
- package/esm/src/commitments/USE_TIME/USE_TIME.test.d.ts +0 -1
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts +0 -1
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
- package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
- package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
- package/esm/src/commitments/WALLET/WALLET.test.d.ts +0 -1
- package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
- package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
- package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
- package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
- package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
- package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
- package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
- package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
- package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
- package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
- package/src/commitments/COMPONENT/COMPONENT.ts +0 -70
- package/src/commitments/MEMORY/MEMORY.ts +0 -94
- package/src/commitments/MEMORY/MemoryToolNames.ts +0 -13
- package/src/commitments/MEMORY/MemoryToolRuntimeAdapter.ts +0 -180
- package/src/commitments/MEMORY/createMemorySystemMessage.ts +0 -27
- package/src/commitments/MEMORY/createMemoryToolFunctions.ts +0 -134
- package/src/commitments/MEMORY/createMemoryTools.ts +0 -115
- package/src/commitments/MEMORY/getMemoryCommitmentDocumentation.ts +0 -47
- package/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.ts +0 -104
- package/src/commitments/MEMORY/getMemoryToolTitles.ts +0 -16
- package/src/commitments/MEMORY/parseMemoryToolArgs.ts +0 -126
- package/src/commitments/MEMORY/resolveMemoryRuntimeContext.ts +0 -23
- package/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.ts +0 -26
- package/src/commitments/META/META.ts +0 -168
- package/src/commitments/USE/TODO.txt +0 -1
- package/src/commitments/USE/aggregateUseCommitmentSystemMessages.ts +0 -219
- package/src/commitments/USE_BROWSER/TODO.txt +0 -1
- package/src/commitments/USE_BROWSER/USE_BROWSER.ts +0 -257
- package/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.ts +0 -45
- package/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.ts +0 -83
- package/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.ts +0 -146
- package/src/commitments/USE_EMAIL/USE_EMAIL.ts +0 -201
- package/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.ts +0 -75
- package/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.ts +0 -44
- package/src/commitments/USE_EMAIL/sendEmailViaBrowser.ts +0 -47
- package/src/commitments/USE_SEARCH_ENGINE/TODO.txt +0 -1
- package/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.ts +0 -171
- package/src/commitments/USE_SPAWN/USE_SPAWN.ts +0 -150
- package/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.ts +0 -42
- package/src/commitments/USE_SPAWN/spawnAgentViaBrowser.ts +0 -50
- package/src/commitments/USE_TIME/USE_TIME.ts +0 -177
- package/src/commitments/USE_TIMEOUT/TimeoutToolNames.ts +0 -13
- package/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.ts +0 -255
- package/src/commitments/USE_TIMEOUT/USE_TIMEOUT.ts +0 -117
- package/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.ts +0 -22
- package/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.ts +0 -361
- package/src/commitments/USE_TIMEOUT/createTimeoutTools.ts +0 -127
- package/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.ts +0 -67
- package/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.ts +0 -460
- package/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.ts +0 -36
- package/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.ts +0 -26
- package/src/commitments/WALLET/WALLET.ts +0 -71
- package/src/commitments/WALLET/WalletToolNames.ts +0 -14
- package/src/commitments/WALLET/WalletToolRuntimeAdapter.ts +0 -180
- package/src/commitments/WALLET/createWalletSystemMessage.ts +0 -22
- package/src/commitments/WALLET/createWalletToolFunctions.ts +0 -145
- package/src/commitments/WALLET/createWalletTools.ts +0 -129
- package/src/commitments/WALLET/getWalletCommitmentDocumentation.ts +0 -14
- package/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.ts +0 -64
- package/src/commitments/WALLET/getWalletToolTitles.ts +0 -17
- package/src/commitments/WALLET/parseWalletToolArgs.ts +0 -231
- package/src/commitments/WALLET/resolveWalletRuntimeContext.ts +0 -23
- package/src/commitments/WALLET/setWalletToolRuntimeAdapter.ts +0 -26
- package/src/commitments/_common/createSerpSearchToolFunction.ts +0 -46
- package/umd/scripts/run-codex-prompts/prompts/replacePromptTodoStatusLine.d.ts +0 -7
- package/umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts +0 -1
- package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
- package/umd/src/commitments/MEMORY/MEMORY.test.d.ts +0 -1
- package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
- package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
- package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
- package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
- package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
- package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
- package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
- package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
- package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/META/META.d.ts +0 -65
- package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
- package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
- package/umd/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts +0 -1
- package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
- package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
- package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts +0 -1
- package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
- package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts +0 -1
- package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
- package/umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts +0 -1
- package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
- package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts +0 -1
- package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
- package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
- package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
- package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts +0 -1
- package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
- package/umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts +0 -1
- package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
- package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
- package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
- package/umd/src/commitments/USE_TIME/USE_TIME.test.d.ts +0 -1
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts +0 -1
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
- package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
- package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
- package/umd/src/commitments/WALLET/WALLET.test.d.ts +0 -1
- package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
- package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
- package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
- package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
- package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
- package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
- package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
- package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
- package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
- package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
- /package/esm/src/book-2.0/agent-source/{createAgentModelRequirements.useCommitmentAggregation.test.d.ts → createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
- /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
- /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
- /package/{esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → umd/src/book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
- /package/{esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → umd/src/cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
- /package/{esm/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts → umd/src/cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
- /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import type { TODO_any } from '../../utils/organization/TODO_any';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Tool arguments for scheduling one timeout.
|
|
5
|
-
*
|
|
6
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
7
|
-
*/
|
|
8
|
-
export type SetTimeoutToolArgs = {
|
|
9
|
-
milliseconds?: number;
|
|
10
|
-
message?: string;
|
|
11
|
-
[key: string]: TODO_any;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Tool arguments for cancelling one timeout.
|
|
16
|
-
*
|
|
17
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
18
|
-
*/
|
|
19
|
-
export type CancelTimeoutToolArgs = {
|
|
20
|
-
timeoutId?: string;
|
|
21
|
-
allActive?: boolean;
|
|
22
|
-
[key: string]: TODO_any;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Tool arguments for updating one timeout or pausing/resuming all active queued timeouts.
|
|
27
|
-
*
|
|
28
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
29
|
-
*/
|
|
30
|
-
export type UpdateTimeoutToolArgs = {
|
|
31
|
-
timeoutId?: string;
|
|
32
|
-
allActive?: boolean;
|
|
33
|
-
dueAt?: string;
|
|
34
|
-
extendByMs?: number;
|
|
35
|
-
recurrenceIntervalMs?: number | null;
|
|
36
|
-
message?: string | null;
|
|
37
|
-
parameters?: Record<string, unknown>;
|
|
38
|
-
paused?: boolean;
|
|
39
|
-
[key: string]: TODO_any;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Tool arguments for listing scoped timeouts.
|
|
44
|
-
*
|
|
45
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
46
|
-
*/
|
|
47
|
-
export type ListTimeoutsToolArgs = {
|
|
48
|
-
includeFinished?: boolean;
|
|
49
|
-
limit?: number;
|
|
50
|
-
[key: string]: TODO_any;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Runtime context available to `USE TIMEOUT` tools.
|
|
55
|
-
*
|
|
56
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
57
|
-
*/
|
|
58
|
-
export type TimeoutToolRuntimeContext = {
|
|
59
|
-
readonly enabled: boolean;
|
|
60
|
-
readonly chatId?: string;
|
|
61
|
-
readonly userId?: number;
|
|
62
|
-
readonly agentId?: string;
|
|
63
|
-
readonly agentName?: string;
|
|
64
|
-
readonly promptParameters: Record<string, string>;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Lifecycle status exposed by `list_timeouts`.
|
|
69
|
-
*
|
|
70
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
71
|
-
*/
|
|
72
|
-
export type TimeoutToolListItemStatus = 'QUEUED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* One timeout row exposed by `list_timeouts`.
|
|
76
|
-
*
|
|
77
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
78
|
-
*/
|
|
79
|
-
export type TimeoutToolListItem = {
|
|
80
|
-
timeoutId: string;
|
|
81
|
-
chatId: string;
|
|
82
|
-
status: TimeoutToolListItemStatus;
|
|
83
|
-
dueAt: string;
|
|
84
|
-
paused: boolean;
|
|
85
|
-
message?: string | null;
|
|
86
|
-
recurrenceIntervalMs?: number | null;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Result payload returned by `set_timeout`.
|
|
91
|
-
*
|
|
92
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
93
|
-
*/
|
|
94
|
-
export type SetTimeoutToolResult = {
|
|
95
|
-
action: 'set';
|
|
96
|
-
status: 'set' | 'disabled' | 'error';
|
|
97
|
-
timeoutId?: string;
|
|
98
|
-
dueAt?: string;
|
|
99
|
-
message?: string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Result payload returned by `cancel_timeout`.
|
|
104
|
-
*
|
|
105
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
106
|
-
*/
|
|
107
|
-
export type CancelTimeoutToolResult = {
|
|
108
|
-
action: 'cancel';
|
|
109
|
-
status: 'cancelled' | 'cancelled_all' | 'not_found' | 'disabled' | 'error';
|
|
110
|
-
timeoutId?: string;
|
|
111
|
-
dueAt?: string;
|
|
112
|
-
cancelledCount?: number;
|
|
113
|
-
cancelledTimeoutIds?: Array<string>;
|
|
114
|
-
hasMore?: boolean;
|
|
115
|
-
message?: string;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Result payload returned by `update_timeout`.
|
|
120
|
-
*
|
|
121
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
122
|
-
*/
|
|
123
|
-
export type UpdateTimeoutToolResult = {
|
|
124
|
-
action: 'update';
|
|
125
|
-
status: 'updated' | 'updated_all' | 'not_found' | 'conflict' | 'disabled' | 'error';
|
|
126
|
-
timeoutId?: string;
|
|
127
|
-
dueAt?: string;
|
|
128
|
-
paused?: boolean;
|
|
129
|
-
recurrenceIntervalMs?: number | null;
|
|
130
|
-
updatedCount?: number;
|
|
131
|
-
matchedCount?: number;
|
|
132
|
-
updatedTimeoutIds?: Array<string>;
|
|
133
|
-
hasMore?: boolean;
|
|
134
|
-
message?: string;
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Result payload returned by `list_timeouts`.
|
|
139
|
-
*
|
|
140
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
141
|
-
*/
|
|
142
|
-
export type ListTimeoutsToolResult = {
|
|
143
|
-
action: 'list';
|
|
144
|
-
status: 'listed' | 'disabled' | 'error';
|
|
145
|
-
items?: Array<TimeoutToolListItem>;
|
|
146
|
-
total?: number;
|
|
147
|
-
message?: string;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Union of all `USE TIMEOUT` tool actions.
|
|
152
|
-
*
|
|
153
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
154
|
-
*/
|
|
155
|
-
export type TimeoutToolAction =
|
|
156
|
-
| SetTimeoutToolResult['action']
|
|
157
|
-
| CancelTimeoutToolResult['action']
|
|
158
|
-
| ListTimeoutsToolResult['action']
|
|
159
|
-
| UpdateTimeoutToolResult['action'];
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Union of all `USE TIMEOUT` tool results.
|
|
163
|
-
*
|
|
164
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
165
|
-
*/
|
|
166
|
-
export type TimeoutToolResult =
|
|
167
|
-
| SetTimeoutToolResult
|
|
168
|
-
| CancelTimeoutToolResult
|
|
169
|
-
| ListTimeoutsToolResult
|
|
170
|
-
| UpdateTimeoutToolResult;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Runtime adapter used by `USE TIMEOUT` tools.
|
|
174
|
-
*
|
|
175
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
176
|
-
*/
|
|
177
|
-
export type TimeoutToolRuntimeAdapter = {
|
|
178
|
-
scheduleTimeout(
|
|
179
|
-
args: {
|
|
180
|
-
milliseconds: number;
|
|
181
|
-
message?: string;
|
|
182
|
-
},
|
|
183
|
-
runtimeContext: TimeoutToolRuntimeContext,
|
|
184
|
-
): Promise<{
|
|
185
|
-
timeoutId: string;
|
|
186
|
-
dueAt: string;
|
|
187
|
-
}>;
|
|
188
|
-
cancelTimeout(
|
|
189
|
-
args:
|
|
190
|
-
| {
|
|
191
|
-
timeoutId: string;
|
|
192
|
-
}
|
|
193
|
-
| {
|
|
194
|
-
allActive: true;
|
|
195
|
-
},
|
|
196
|
-
runtimeContext: TimeoutToolRuntimeContext,
|
|
197
|
-
): Promise<{
|
|
198
|
-
status: 'cancelled' | 'cancelled_all' | 'not_found';
|
|
199
|
-
timeoutId?: string;
|
|
200
|
-
dueAt?: string;
|
|
201
|
-
cancelledCount?: number;
|
|
202
|
-
cancelledTimeoutIds?: Array<string>;
|
|
203
|
-
hasMore?: boolean;
|
|
204
|
-
}>;
|
|
205
|
-
listTimeouts(
|
|
206
|
-
args: {
|
|
207
|
-
includeFinished: boolean;
|
|
208
|
-
limit: number;
|
|
209
|
-
},
|
|
210
|
-
runtimeContext: TimeoutToolRuntimeContext,
|
|
211
|
-
): Promise<{
|
|
212
|
-
items: Array<TimeoutToolListItem>;
|
|
213
|
-
total: number;
|
|
214
|
-
}>;
|
|
215
|
-
updateTimeout(
|
|
216
|
-
args:
|
|
217
|
-
| {
|
|
218
|
-
timeoutId: string;
|
|
219
|
-
patch: {
|
|
220
|
-
dueAt?: string;
|
|
221
|
-
extendByMs?: number;
|
|
222
|
-
recurrenceIntervalMs?: number | null;
|
|
223
|
-
message?: string | null;
|
|
224
|
-
parameters?: Record<string, unknown>;
|
|
225
|
-
paused?: boolean;
|
|
226
|
-
};
|
|
227
|
-
}
|
|
228
|
-
| {
|
|
229
|
-
allActive: true;
|
|
230
|
-
paused: boolean;
|
|
231
|
-
},
|
|
232
|
-
runtimeContext: TimeoutToolRuntimeContext,
|
|
233
|
-
): Promise<
|
|
234
|
-
| {
|
|
235
|
-
status: 'updated';
|
|
236
|
-
timeout: TimeoutToolListItem;
|
|
237
|
-
}
|
|
238
|
-
| {
|
|
239
|
-
status: 'not_found';
|
|
240
|
-
timeoutId: string;
|
|
241
|
-
}
|
|
242
|
-
| {
|
|
243
|
-
status: 'conflict';
|
|
244
|
-
timeoutId: string;
|
|
245
|
-
reason: 'finished' | 'running';
|
|
246
|
-
}
|
|
247
|
-
| {
|
|
248
|
-
status: 'updated_all';
|
|
249
|
-
updatedCount: number;
|
|
250
|
-
matchedCount: number;
|
|
251
|
-
updatedTimeoutIds: Array<string>;
|
|
252
|
-
hasMore?: boolean;
|
|
253
|
-
}
|
|
254
|
-
>;
|
|
255
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { spaceTrim } from 'spacetrim';
|
|
2
|
-
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
3
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
4
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
5
|
-
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
6
|
-
import { formatOptionalInstructionBlock } from '../_base/formatOptionalInstructionBlock';
|
|
7
|
-
import { createTimeoutSystemMessage } from './createTimeoutSystemMessage';
|
|
8
|
-
import { createTimeoutToolFunctions } from './createTimeoutToolFunctions';
|
|
9
|
-
import { createTimeoutTools } from './createTimeoutTools';
|
|
10
|
-
import { TimeoutToolNames } from './TimeoutToolNames';
|
|
11
|
-
|
|
12
|
-
export { setTimeoutToolRuntimeAdapter } from './setTimeoutToolRuntimeAdapter';
|
|
13
|
-
export type {
|
|
14
|
-
CancelTimeoutToolResult,
|
|
15
|
-
ListTimeoutsToolResult,
|
|
16
|
-
SetTimeoutToolResult,
|
|
17
|
-
TimeoutToolListItem,
|
|
18
|
-
TimeoutToolRuntimeAdapter,
|
|
19
|
-
TimeoutToolRuntimeContext,
|
|
20
|
-
UpdateTimeoutToolResult,
|
|
21
|
-
} from './TimeoutToolRuntimeAdapter';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* `USE TIMEOUT` commitment definition.
|
|
25
|
-
*
|
|
26
|
-
* The `USE TIMEOUT` commitment enables timeout wake-ups and scoped timeout management.
|
|
27
|
-
*
|
|
28
|
-
* @private [🪔] Maybe export the commitments through some package
|
|
29
|
-
*/
|
|
30
|
-
export class UseTimeoutCommitmentDefinition extends BaseCommitmentDefinition<'USE TIMEOUT'> {
|
|
31
|
-
public constructor() {
|
|
32
|
-
super('USE TIMEOUT');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
override get requiresContent(): boolean {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Short one-line description of `USE TIMEOUT`.
|
|
41
|
-
*/
|
|
42
|
-
get description(): string {
|
|
43
|
-
return 'Enable timeout wake-ups plus scoped timeout listing, updates, and cancellation across chats.';
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Icon for this commitment.
|
|
48
|
-
*/
|
|
49
|
-
get icon(): string {
|
|
50
|
-
return '⏱️';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Markdown documentation for `USE TIMEOUT`.
|
|
55
|
-
*/
|
|
56
|
-
get documentation(): string {
|
|
57
|
-
return spaceTrim(`
|
|
58
|
-
# USE TIMEOUT
|
|
59
|
-
|
|
60
|
-
Enables timeout wake-ups and timeout management for the same user+agent scope.
|
|
61
|
-
|
|
62
|
-
## Key aspects
|
|
63
|
-
|
|
64
|
-
- The agent uses \`set_timeout\` to schedule a future wake-up in the same chat thread.
|
|
65
|
-
- The tool returns immediately while the timeout is stored and executed by the runtime later.
|
|
66
|
-
- The wake-up arrives as a new user-like timeout message in the same conversation.
|
|
67
|
-
- The agent can inspect known timeout details via \`list_timeouts\`.
|
|
68
|
-
- The agent can cancel one timeout by \`timeoutId\` or cancel all active timeouts via \`cancel_timeout\`.
|
|
69
|
-
- The agent can pause/resume and edit timeout details via \`update_timeout\`.
|
|
70
|
-
- Commitment content is treated as optional timeout policy instructions.
|
|
71
|
-
|
|
72
|
-
## Examples
|
|
73
|
-
|
|
74
|
-
\`\`\`book
|
|
75
|
-
Follow-up Agent
|
|
76
|
-
USE TIMEOUT Remind yourself only when follow-up work is explicitly requested.
|
|
77
|
-
\`\`\`
|
|
78
|
-
`);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements {
|
|
82
|
-
const extraInstructions = formatOptionalInstructionBlock('Timeout instructions', content);
|
|
83
|
-
|
|
84
|
-
return this.appendToSystemMessage(
|
|
85
|
-
{
|
|
86
|
-
...requirements,
|
|
87
|
-
tools: createTimeoutTools(requirements.tools || []),
|
|
88
|
-
_metadata: {
|
|
89
|
-
...requirements._metadata,
|
|
90
|
-
useTimeout: content || true,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
createTimeoutSystemMessage(extraInstructions),
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Gets human-readable titles for tool functions provided by this commitment.
|
|
99
|
-
*/
|
|
100
|
-
getToolTitles(): Record<string_javascript_name, string> {
|
|
101
|
-
return {
|
|
102
|
-
[TimeoutToolNames.set]: 'Set timer',
|
|
103
|
-
[TimeoutToolNames.cancel]: 'Cancel timer',
|
|
104
|
-
[TimeoutToolNames.list]: 'List timers',
|
|
105
|
-
[TimeoutToolNames.update]: 'Update timer',
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Gets `USE TIMEOUT` tool function implementations.
|
|
111
|
-
*/
|
|
112
|
-
getToolFunctions(): Record<string_javascript_name, ToolFunction> {
|
|
113
|
-
return createTimeoutToolFunctions();
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { spaceTrim } from 'spacetrim';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates system-message instructions for `USE TIMEOUT`.
|
|
5
|
-
*
|
|
6
|
-
* @private internal utility of USE TIMEOUT
|
|
7
|
-
*/
|
|
8
|
-
export function createTimeoutSystemMessage(extraInstructions: string): string {
|
|
9
|
-
return spaceTrim(
|
|
10
|
-
(block) => `
|
|
11
|
-
## Timeout scheduling
|
|
12
|
-
|
|
13
|
-
- Use \`set_timeout\` to wake this same chat thread in the future.
|
|
14
|
-
- Use \`list_timeouts\` to review timeout ids/details across all chats for the same user+agent scope.
|
|
15
|
-
- \`cancel_timeout\` accepts either one timeout id or \`allActive: true\` to cancel all active timeouts in this same user+agent scope.
|
|
16
|
-
- Use \`update_timeout\` to pause/resume, edit next run, edit recurrence, or update timeout payload details.
|
|
17
|
-
- When one timeout elapses, you will receive a new user-like message that explicitly says it is a timeout wake-up and includes the \`timeoutId\`.
|
|
18
|
-
- Do not claim a timer was set or cancelled unless the tool confirms it.
|
|
19
|
-
${block(extraInstructions)}
|
|
20
|
-
`,
|
|
21
|
-
);
|
|
22
|
-
}
|