@peerllm/client-core 0.1.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 +32 -0
- package/README.md +49 -0
- package/dist/Approvals.d.ts +10 -0
- package/dist/Approvals.d.ts.map +1 -0
- package/dist/Approvals.js +48 -0
- package/dist/Approvals.js.map +1 -0
- package/dist/Connections.d.ts +20 -0
- package/dist/Connections.d.ts.map +1 -0
- package/dist/Connections.js +103 -0
- package/dist/Connections.js.map +1 -0
- package/dist/Offerings.d.ts +8 -0
- package/dist/Offerings.d.ts.map +1 -0
- package/dist/Offerings.js +21 -0
- package/dist/Offerings.js.map +1 -0
- package/dist/Sessions.d.ts +33 -0
- package/dist/Sessions.d.ts.map +1 -0
- package/dist/Sessions.js +221 -0
- package/dist/Sessions.js.map +1 -0
- package/dist/brokers/accounts/AccountBroker.d.ts +13 -0
- package/dist/brokers/accounts/AccountBroker.d.ts.map +1 -0
- package/dist/brokers/accounts/AccountBroker.js +2 -0
- package/dist/brokers/accounts/AccountBroker.js.map +1 -0
- package/dist/brokers/accounts/PeerLlmAccountBroker.d.ts +20 -0
- package/dist/brokers/accounts/PeerLlmAccountBroker.d.ts.map +1 -0
- package/dist/brokers/accounts/PeerLlmAccountBroker.js +109 -0
- package/dist/brokers/accounts/PeerLlmAccountBroker.js.map +1 -0
- package/dist/brokers/brains/BrainBroker.d.ts +5 -0
- package/dist/brokers/brains/BrainBroker.d.ts.map +1 -0
- package/dist/brokers/brains/BrainBroker.js +2 -0
- package/dist/brokers/brains/BrainBroker.js.map +1 -0
- package/dist/brokers/brains/PeerLlmBrainBroker.d.ts +7 -0
- package/dist/brokers/brains/PeerLlmBrainBroker.d.ts.map +1 -0
- package/dist/brokers/brains/PeerLlmBrainBroker.js +38 -0
- package/dist/brokers/brains/PeerLlmBrainBroker.js.map +1 -0
- package/dist/brokers/configs/ConfigBroker.d.ts +8 -0
- package/dist/brokers/configs/ConfigBroker.d.ts.map +1 -0
- package/dist/brokers/configs/ConfigBroker.js +2 -0
- package/dist/brokers/configs/ConfigBroker.js.map +1 -0
- package/dist/brokers/configs/FileConfigBroker.d.ts +9 -0
- package/dist/brokers/configs/FileConfigBroker.d.ts.map +1 -0
- package/dist/brokers/configs/FileConfigBroker.js +41 -0
- package/dist/brokers/configs/FileConfigBroker.js.map +1 -0
- package/dist/brokers/generators/ScriptedGeneratorBroker.d.ts +9 -0
- package/dist/brokers/generators/ScriptedGeneratorBroker.d.ts.map +1 -0
- package/dist/brokers/generators/ScriptedGeneratorBroker.js +17 -0
- package/dist/brokers/generators/ScriptedGeneratorBroker.js.map +1 -0
- package/dist/brokers/mcps/ChildProcessMcpChannel.d.ts +18 -0
- package/dist/brokers/mcps/ChildProcessMcpChannel.d.ts.map +1 -0
- package/dist/brokers/mcps/ChildProcessMcpChannel.js +126 -0
- package/dist/brokers/mcps/ChildProcessMcpChannel.js.map +1 -0
- package/dist/brokers/mcps/CompositeMcpBroker.d.ts +8 -0
- package/dist/brokers/mcps/CompositeMcpBroker.d.ts.map +1 -0
- package/dist/brokers/mcps/CompositeMcpBroker.js +41 -0
- package/dist/brokers/mcps/CompositeMcpBroker.js.map +1 -0
- package/dist/brokers/mcps/McpChannel.d.ts +6 -0
- package/dist/brokers/mcps/McpChannel.d.ts.map +1 -0
- package/dist/brokers/mcps/McpChannel.js +2 -0
- package/dist/brokers/mcps/McpChannel.js.map +1 -0
- package/dist/brokers/mcps/StdioMcpBroker.d.ts +16 -0
- package/dist/brokers/mcps/StdioMcpBroker.d.ts.map +1 -0
- package/dist/brokers/mcps/StdioMcpBroker.js +117 -0
- package/dist/brokers/mcps/StdioMcpBroker.js.map +1 -0
- package/dist/brokers/processes/NodeProcessBroker.d.ts +6 -0
- package/dist/brokers/processes/NodeProcessBroker.d.ts.map +1 -0
- package/dist/brokers/processes/NodeProcessBroker.js +57 -0
- package/dist/brokers/processes/NodeProcessBroker.js.map +1 -0
- package/dist/brokers/processes/ProcessBroker.d.ts +16 -0
- package/dist/brokers/processes/ProcessBroker.d.ts.map +1 -0
- package/dist/brokers/processes/ProcessBroker.js +2 -0
- package/dist/brokers/processes/ProcessBroker.js.map +1 -0
- package/dist/brokers/registries/PeerLlmSkillRegistryBroker.d.ts +13 -0
- package/dist/brokers/registries/PeerLlmSkillRegistryBroker.d.ts.map +1 -0
- package/dist/brokers/registries/PeerLlmSkillRegistryBroker.js +63 -0
- package/dist/brokers/registries/PeerLlmSkillRegistryBroker.js.map +1 -0
- package/dist/brokers/registries/SkillRegistryBroker.d.ts +6 -0
- package/dist/brokers/registries/SkillRegistryBroker.d.ts.map +1 -0
- package/dist/brokers/registries/SkillRegistryBroker.js +2 -0
- package/dist/brokers/registries/SkillRegistryBroker.js.map +1 -0
- package/dist/brokers/secrets/FileSecretBroker.d.ts +12 -0
- package/dist/brokers/secrets/FileSecretBroker.d.ts.map +1 -0
- package/dist/brokers/secrets/FileSecretBroker.js +43 -0
- package/dist/brokers/secrets/FileSecretBroker.js.map +1 -0
- package/dist/brokers/secrets/SecretBroker.d.ts +8 -0
- package/dist/brokers/secrets/SecretBroker.d.ts.map +1 -0
- package/dist/brokers/secrets/SecretBroker.js +2 -0
- package/dist/brokers/secrets/SecretBroker.js.map +1 -0
- package/dist/brokers/skills/CompositeSkillBroker.d.ts +7 -0
- package/dist/brokers/skills/CompositeSkillBroker.d.ts.map +1 -0
- package/dist/brokers/skills/CompositeSkillBroker.js +22 -0
- package/dist/brokers/skills/CompositeSkillBroker.js.map +1 -0
- package/dist/exposers/tools/CreateNewFileTool.d.ts +4 -0
- package/dist/exposers/tools/CreateNewFileTool.d.ts.map +1 -0
- package/dist/exposers/tools/CreateNewFileTool.js +39 -0
- package/dist/exposers/tools/CreateNewFileTool.js.map +1 -0
- package/dist/exposers/tools/DeletePathTool.d.ts +4 -0
- package/dist/exposers/tools/DeletePathTool.d.ts.map +1 -0
- package/dist/exposers/tools/DeletePathTool.js +43 -0
- package/dist/exposers/tools/DeletePathTool.js.map +1 -0
- package/dist/exposers/tools/GitTools.d.ts +5 -0
- package/dist/exposers/tools/GitTools.d.ts.map +1 -0
- package/dist/exposers/tools/GitTools.js +53 -0
- package/dist/exposers/tools/GitTools.js.map +1 -0
- package/dist/exposers/tools/GlobFilesTool.d.ts +4 -0
- package/dist/exposers/tools/GlobFilesTool.d.ts.map +1 -0
- package/dist/exposers/tools/GlobFilesTool.js +41 -0
- package/dist/exposers/tools/GlobFilesTool.js.map +1 -0
- package/dist/exposers/tools/GrepFilesTool.d.ts +4 -0
- package/dist/exposers/tools/GrepFilesTool.d.ts.map +1 -0
- package/dist/exposers/tools/GrepFilesTool.js +56 -0
- package/dist/exposers/tools/GrepFilesTool.js.map +1 -0
- package/dist/exposers/tools/ListDirectoryTool.d.ts +4 -0
- package/dist/exposers/tools/ListDirectoryTool.d.ts.map +1 -0
- package/dist/exposers/tools/ListDirectoryTool.js +45 -0
- package/dist/exposers/tools/ListDirectoryTool.js.map +1 -0
- package/dist/exposers/tools/ReadFileTool.d.ts +4 -0
- package/dist/exposers/tools/ReadFileTool.d.ts.map +1 -0
- package/dist/exposers/tools/ReadFileTool.js +65 -0
- package/dist/exposers/tools/ReadFileTool.js.map +1 -0
- package/dist/exposers/tools/Refusals.d.ts +6 -0
- package/dist/exposers/tools/Refusals.d.ts.map +1 -0
- package/dist/exposers/tools/Refusals.js +91 -0
- package/dist/exposers/tools/Refusals.js.map +1 -0
- package/dist/exposers/tools/RunCommandTool.d.ts +4 -0
- package/dist/exposers/tools/RunCommandTool.d.ts.map +1 -0
- package/dist/exposers/tools/RunCommandTool.js +51 -0
- package/dist/exposers/tools/RunCommandTool.js.map +1 -0
- package/dist/exposers/tools/SingleFindAndReplaceTool.d.ts +4 -0
- package/dist/exposers/tools/SingleFindAndReplaceTool.d.ts.map +1 -0
- package/dist/exposers/tools/SingleFindAndReplaceTool.js +42 -0
- package/dist/exposers/tools/SingleFindAndReplaceTool.js.map +1 -0
- package/dist/exposers/tools/WriteFileTool.d.ts +4 -0
- package/dist/exposers/tools/WriteFileTool.d.ts.map +1 -0
- package/dist/exposers/tools/WriteFileTool.js +54 -0
- package/dist/exposers/tools/WriteFileTool.js.map +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +196 -0
- package/dist/index.js.map +1 -0
- package/dist/models/aggregations/doctors/exceptions/DoctorAggregationServiceException.d.ts +6 -0
- package/dist/models/aggregations/doctors/exceptions/DoctorAggregationServiceException.d.ts.map +1 -0
- package/dist/models/aggregations/doctors/exceptions/DoctorAggregationServiceException.js +12 -0
- package/dist/models/aggregations/doctors/exceptions/DoctorAggregationServiceException.js.map +1 -0
- package/dist/models/aggregations/doctors/exceptions/FailedDoctorAggregationServiceException.d.ts +5 -0
- package/dist/models/aggregations/doctors/exceptions/FailedDoctorAggregationServiceException.d.ts.map +1 -0
- package/dist/models/aggregations/doctors/exceptions/FailedDoctorAggregationServiceException.js +11 -0
- package/dist/models/aggregations/doctors/exceptions/FailedDoctorAggregationServiceException.js.map +1 -0
- package/dist/models/brokers/accounts/AccountKey.d.ts +14 -0
- package/dist/models/brokers/accounts/AccountKey.d.ts.map +1 -0
- package/dist/models/brokers/accounts/AccountKey.js +2 -0
- package/dist/models/brokers/accounts/AccountKey.js.map +1 -0
- package/dist/models/brokers/accounts/AccountSession.d.ts +6 -0
- package/dist/models/brokers/accounts/AccountSession.d.ts.map +1 -0
- package/dist/models/brokers/accounts/AccountSession.js +2 -0
- package/dist/models/brokers/accounts/AccountSession.js.map +1 -0
- package/dist/models/brokers/accounts/TokenBalance.d.ts +6 -0
- package/dist/models/brokers/accounts/TokenBalance.d.ts.map +1 -0
- package/dist/models/brokers/accounts/TokenBalance.js +2 -0
- package/dist/models/brokers/accounts/TokenBalance.js.map +1 -0
- package/dist/models/brokers/registries/RegistrySkill.d.ts +15 -0
- package/dist/models/brokers/registries/RegistrySkill.d.ts.map +1 -0
- package/dist/models/brokers/registries/RegistrySkill.js +2 -0
- package/dist/models/brokers/registries/RegistrySkill.js.map +1 -0
- package/dist/models/foundations/accounts/exceptions/AccountDependencyException.d.ts +6 -0
- package/dist/models/foundations/accounts/exceptions/AccountDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/accounts/exceptions/AccountDependencyException.js +11 -0
- package/dist/models/foundations/accounts/exceptions/AccountDependencyException.js.map +1 -0
- package/dist/models/foundations/accounts/exceptions/AccountDependencyValidationException.d.ts +6 -0
- package/dist/models/foundations/accounts/exceptions/AccountDependencyValidationException.d.ts.map +1 -0
- package/dist/models/foundations/accounts/exceptions/AccountDependencyValidationException.js +11 -0
- package/dist/models/foundations/accounts/exceptions/AccountDependencyValidationException.js.map +1 -0
- package/dist/models/foundations/accounts/exceptions/AccountServiceException.d.ts +6 -0
- package/dist/models/foundations/accounts/exceptions/AccountServiceException.d.ts.map +1 -0
- package/dist/models/foundations/accounts/exceptions/AccountServiceException.js +11 -0
- package/dist/models/foundations/accounts/exceptions/AccountServiceException.js.map +1 -0
- package/dist/models/foundations/accounts/exceptions/AccountValidationException.d.ts +6 -0
- package/dist/models/foundations/accounts/exceptions/AccountValidationException.d.ts.map +1 -0
- package/dist/models/foundations/accounts/exceptions/AccountValidationException.js +11 -0
- package/dist/models/foundations/accounts/exceptions/AccountValidationException.js.map +1 -0
- package/dist/models/foundations/accounts/exceptions/FailedAccountDependencyException.d.ts +6 -0
- package/dist/models/foundations/accounts/exceptions/FailedAccountDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/accounts/exceptions/FailedAccountDependencyException.js +10 -0
- package/dist/models/foundations/accounts/exceptions/FailedAccountDependencyException.js.map +1 -0
- package/dist/models/foundations/accounts/exceptions/FailedAccountServiceException.d.ts +6 -0
- package/dist/models/foundations/accounts/exceptions/FailedAccountServiceException.d.ts.map +1 -0
- package/dist/models/foundations/accounts/exceptions/FailedAccountServiceException.js +10 -0
- package/dist/models/foundations/accounts/exceptions/FailedAccountServiceException.js.map +1 -0
- package/dist/models/foundations/accounts/exceptions/InvalidAccountException.d.ts +7 -0
- package/dist/models/foundations/accounts/exceptions/InvalidAccountException.d.ts.map +1 -0
- package/dist/models/foundations/accounts/exceptions/InvalidAccountException.js +22 -0
- package/dist/models/foundations/accounts/exceptions/InvalidAccountException.js.map +1 -0
- package/dist/models/foundations/accounts/exceptions/NotFoundAccountException.d.ts +6 -0
- package/dist/models/foundations/accounts/exceptions/NotFoundAccountException.d.ts.map +1 -0
- package/dist/models/foundations/accounts/exceptions/NotFoundAccountException.js +10 -0
- package/dist/models/foundations/accounts/exceptions/NotFoundAccountException.js.map +1 -0
- package/dist/models/foundations/configs/ConfigDocument.d.ts +50 -0
- package/dist/models/foundations/configs/ConfigDocument.d.ts.map +1 -0
- package/dist/models/foundations/configs/ConfigDocument.js +25 -0
- package/dist/models/foundations/configs/ConfigDocument.js.map +1 -0
- package/dist/models/foundations/configs/LockHolder.d.ts +5 -0
- package/dist/models/foundations/configs/LockHolder.d.ts.map +1 -0
- package/dist/models/foundations/configs/LockHolder.js +2 -0
- package/dist/models/foundations/configs/LockHolder.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/ConfigDependencyException.d.ts +6 -0
- package/dist/models/foundations/configs/exceptions/ConfigDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/ConfigDependencyException.js +12 -0
- package/dist/models/foundations/configs/exceptions/ConfigDependencyException.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/ConfigDependencyValidationException.d.ts +6 -0
- package/dist/models/foundations/configs/exceptions/ConfigDependencyValidationException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/ConfigDependencyValidationException.js +13 -0
- package/dist/models/foundations/configs/exceptions/ConfigDependencyValidationException.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/ConfigServiceException.d.ts +6 -0
- package/dist/models/foundations/configs/exceptions/ConfigServiceException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/ConfigServiceException.js +12 -0
- package/dist/models/foundations/configs/exceptions/ConfigServiceException.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/ConfigValidationException.d.ts +6 -0
- package/dist/models/foundations/configs/exceptions/ConfigValidationException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/ConfigValidationException.js +12 -0
- package/dist/models/foundations/configs/exceptions/ConfigValidationException.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/FailedConfigDependencyException.d.ts +5 -0
- package/dist/models/foundations/configs/exceptions/FailedConfigDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/FailedConfigDependencyException.js +11 -0
- package/dist/models/foundations/configs/exceptions/FailedConfigDependencyException.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/FailedConfigServiceException.d.ts +5 -0
- package/dist/models/foundations/configs/exceptions/FailedConfigServiceException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/FailedConfigServiceException.js +11 -0
- package/dist/models/foundations/configs/exceptions/FailedConfigServiceException.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/InvalidConfigException.d.ts +7 -0
- package/dist/models/foundations/configs/exceptions/InvalidConfigException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/InvalidConfigException.js +25 -0
- package/dist/models/foundations/configs/exceptions/InvalidConfigException.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/LockedConfigException.d.ts +5 -0
- package/dist/models/foundations/configs/exceptions/LockedConfigException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/LockedConfigException.js +11 -0
- package/dist/models/foundations/configs/exceptions/LockedConfigException.js.map +1 -0
- package/dist/models/foundations/configs/exceptions/NotFoundConfigException.d.ts +5 -0
- package/dist/models/foundations/configs/exceptions/NotFoundConfigException.d.ts.map +1 -0
- package/dist/models/foundations/configs/exceptions/NotFoundConfigException.js +12 -0
- package/dist/models/foundations/configs/exceptions/NotFoundConfigException.js.map +1 -0
- package/dist/models/foundations/processes/exceptions/FailedProcessServiceException.d.ts +5 -0
- package/dist/models/foundations/processes/exceptions/FailedProcessServiceException.d.ts.map +1 -0
- package/dist/models/foundations/processes/exceptions/FailedProcessServiceException.js +10 -0
- package/dist/models/foundations/processes/exceptions/FailedProcessServiceException.js.map +1 -0
- package/dist/models/foundations/processes/exceptions/InvalidProcessException.d.ts +7 -0
- package/dist/models/foundations/processes/exceptions/InvalidProcessException.d.ts.map +1 -0
- package/dist/models/foundations/processes/exceptions/InvalidProcessException.js +23 -0
- package/dist/models/foundations/processes/exceptions/InvalidProcessException.js.map +1 -0
- package/dist/models/foundations/processes/exceptions/NotFoundProcessException.d.ts +5 -0
- package/dist/models/foundations/processes/exceptions/NotFoundProcessException.d.ts.map +1 -0
- package/dist/models/foundations/processes/exceptions/NotFoundProcessException.js +11 -0
- package/dist/models/foundations/processes/exceptions/NotFoundProcessException.js.map +1 -0
- package/dist/models/foundations/processes/exceptions/ProcessDependencyValidationException.d.ts +6 -0
- package/dist/models/foundations/processes/exceptions/ProcessDependencyValidationException.d.ts.map +1 -0
- package/dist/models/foundations/processes/exceptions/ProcessDependencyValidationException.js +12 -0
- package/dist/models/foundations/processes/exceptions/ProcessDependencyValidationException.js.map +1 -0
- package/dist/models/foundations/processes/exceptions/ProcessServiceException.d.ts +6 -0
- package/dist/models/foundations/processes/exceptions/ProcessServiceException.d.ts.map +1 -0
- package/dist/models/foundations/processes/exceptions/ProcessServiceException.js +12 -0
- package/dist/models/foundations/processes/exceptions/ProcessServiceException.js.map +1 -0
- package/dist/models/foundations/processes/exceptions/ProcessValidationException.d.ts +6 -0
- package/dist/models/foundations/processes/exceptions/ProcessValidationException.d.ts.map +1 -0
- package/dist/models/foundations/processes/exceptions/ProcessValidationException.js +12 -0
- package/dist/models/foundations/processes/exceptions/ProcessValidationException.js.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/FailedRegistrySkillDependencyException.d.ts +6 -0
- package/dist/models/foundations/registrySkills/exceptions/FailedRegistrySkillDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/FailedRegistrySkillDependencyException.js +10 -0
- package/dist/models/foundations/registrySkills/exceptions/FailedRegistrySkillDependencyException.js.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/FailedRegistrySkillServiceException.d.ts +6 -0
- package/dist/models/foundations/registrySkills/exceptions/FailedRegistrySkillServiceException.d.ts.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/FailedRegistrySkillServiceException.js +10 -0
- package/dist/models/foundations/registrySkills/exceptions/FailedRegistrySkillServiceException.js.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/InvalidRegistrySkillException.d.ts +7 -0
- package/dist/models/foundations/registrySkills/exceptions/InvalidRegistrySkillException.d.ts.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/InvalidRegistrySkillException.js +22 -0
- package/dist/models/foundations/registrySkills/exceptions/InvalidRegistrySkillException.js.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/NotFoundRegistrySkillException.d.ts +6 -0
- package/dist/models/foundations/registrySkills/exceptions/NotFoundRegistrySkillException.d.ts.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/NotFoundRegistrySkillException.js +10 -0
- package/dist/models/foundations/registrySkills/exceptions/NotFoundRegistrySkillException.js.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillDependencyException.d.ts +6 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillDependencyException.js +11 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillDependencyException.js.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillDependencyValidationException.d.ts +6 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillDependencyValidationException.d.ts.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillDependencyValidationException.js +11 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillDependencyValidationException.js.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillServiceException.d.ts +6 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillServiceException.d.ts.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillServiceException.js +11 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillServiceException.js.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillValidationException.d.ts +6 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillValidationException.d.ts.map +1 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillValidationException.js +11 -0
- package/dist/models/foundations/registrySkills/exceptions/RegistrySkillValidationException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/FailedSecretDependencyException.d.ts +5 -0
- package/dist/models/foundations/secrets/exceptions/FailedSecretDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/FailedSecretDependencyException.js +10 -0
- package/dist/models/foundations/secrets/exceptions/FailedSecretDependencyException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/FailedSecretServiceException.d.ts +5 -0
- package/dist/models/foundations/secrets/exceptions/FailedSecretServiceException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/FailedSecretServiceException.js +11 -0
- package/dist/models/foundations/secrets/exceptions/FailedSecretServiceException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/InvalidSecretException.d.ts +7 -0
- package/dist/models/foundations/secrets/exceptions/InvalidSecretException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/InvalidSecretException.js +24 -0
- package/dist/models/foundations/secrets/exceptions/InvalidSecretException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/LockedSecretException.d.ts +5 -0
- package/dist/models/foundations/secrets/exceptions/LockedSecretException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/LockedSecretException.js +11 -0
- package/dist/models/foundations/secrets/exceptions/LockedSecretException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/NotFoundSecretException.d.ts +5 -0
- package/dist/models/foundations/secrets/exceptions/NotFoundSecretException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/NotFoundSecretException.js +12 -0
- package/dist/models/foundations/secrets/exceptions/NotFoundSecretException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/SecretDependencyException.d.ts +6 -0
- package/dist/models/foundations/secrets/exceptions/SecretDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/SecretDependencyException.js +12 -0
- package/dist/models/foundations/secrets/exceptions/SecretDependencyException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/SecretDependencyValidationException.d.ts +6 -0
- package/dist/models/foundations/secrets/exceptions/SecretDependencyValidationException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/SecretDependencyValidationException.js +12 -0
- package/dist/models/foundations/secrets/exceptions/SecretDependencyValidationException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/SecretServiceException.d.ts +6 -0
- package/dist/models/foundations/secrets/exceptions/SecretServiceException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/SecretServiceException.js +12 -0
- package/dist/models/foundations/secrets/exceptions/SecretServiceException.js.map +1 -0
- package/dist/models/foundations/secrets/exceptions/SecretValidationException.d.ts +6 -0
- package/dist/models/foundations/secrets/exceptions/SecretValidationException.d.ts.map +1 -0
- package/dist/models/foundations/secrets/exceptions/SecretValidationException.js +12 -0
- package/dist/models/foundations/secrets/exceptions/SecretValidationException.js.map +1 -0
- package/dist/models/foundations/workspaceFiles/WorkspaceEntry.d.ts +9 -0
- package/dist/models/foundations/workspaceFiles/WorkspaceEntry.d.ts.map +1 -0
- package/dist/models/foundations/workspaceFiles/WorkspaceEntry.js +2 -0
- package/dist/models/foundations/workspaceFiles/WorkspaceEntry.js.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/FailedWorkspaceFileDependencyException.d.ts +6 -0
- package/dist/models/foundations/workspaceFiles/exceptions/FailedWorkspaceFileDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/FailedWorkspaceFileDependencyException.js +10 -0
- package/dist/models/foundations/workspaceFiles/exceptions/FailedWorkspaceFileDependencyException.js.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/FailedWorkspaceFileServiceException.d.ts +6 -0
- package/dist/models/foundations/workspaceFiles/exceptions/FailedWorkspaceFileServiceException.d.ts.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/FailedWorkspaceFileServiceException.js +10 -0
- package/dist/models/foundations/workspaceFiles/exceptions/FailedWorkspaceFileServiceException.js.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/InvalidWorkspaceFileException.d.ts +7 -0
- package/dist/models/foundations/workspaceFiles/exceptions/InvalidWorkspaceFileException.d.ts.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/InvalidWorkspaceFileException.js +22 -0
- package/dist/models/foundations/workspaceFiles/exceptions/InvalidWorkspaceFileException.js.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileDependencyException.d.ts +6 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileDependencyException.d.ts.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileDependencyException.js +11 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileDependencyException.js.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileServiceException.d.ts +6 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileServiceException.d.ts.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileServiceException.js +11 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileServiceException.js.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileValidationException.d.ts +6 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileValidationException.d.ts.map +1 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileValidationException.js +11 -0
- package/dist/models/foundations/workspaceFiles/exceptions/WorkspaceFileValidationException.js.map +1 -0
- package/dist/models/orchestrations/connections/ResolvedConnection.d.ts +7 -0
- package/dist/models/orchestrations/connections/ResolvedConnection.d.ts.map +1 -0
- package/dist/models/orchestrations/connections/ResolvedConnection.js +2 -0
- package/dist/models/orchestrations/connections/ResolvedConnection.js.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionDependencyException.d.ts +6 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionDependencyException.d.ts.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionDependencyException.js +12 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionDependencyException.js.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionDependencyValidationException.d.ts +6 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionDependencyValidationException.d.ts.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionDependencyValidationException.js +12 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionDependencyValidationException.js.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionServiceException.d.ts +6 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionServiceException.d.ts.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionServiceException.js +12 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionServiceException.js.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionValidationException.d.ts +6 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionValidationException.d.ts.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionValidationException.js +12 -0
- package/dist/models/orchestrations/connections/exceptions/ConnectionValidationException.js.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/FailedConnectionServiceException.d.ts +5 -0
- package/dist/models/orchestrations/connections/exceptions/FailedConnectionServiceException.d.ts.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/FailedConnectionServiceException.js +10 -0
- package/dist/models/orchestrations/connections/exceptions/FailedConnectionServiceException.js.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/NoConnectionException.d.ts +4 -0
- package/dist/models/orchestrations/connections/exceptions/NoConnectionException.d.ts.map +1 -0
- package/dist/models/orchestrations/connections/exceptions/NoConnectionException.js +10 -0
- package/dist/models/orchestrations/connections/exceptions/NoConnectionException.js.map +1 -0
- package/dist/models/processings/accounts/SignedInAccount.d.ts +7 -0
- package/dist/models/processings/accounts/SignedInAccount.d.ts.map +1 -0
- package/dist/models/processings/accounts/SignedInAccount.js +2 -0
- package/dist/models/processings/accounts/SignedInAccount.js.map +1 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingDependencyException.d.ts +6 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingDependencyException.d.ts.map +1 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingDependencyException.js +11 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingDependencyException.js.map +1 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingDependencyValidationException.d.ts +6 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingDependencyValidationException.d.ts.map +1 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingDependencyValidationException.js +11 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingDependencyValidationException.js.map +1 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingServiceException.js +11 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingServiceException.js.map +1 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingValidationException.d.ts +6 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingValidationException.d.ts.map +1 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingValidationException.js +11 -0
- package/dist/models/processings/accounts/exceptions/AccountProcessingValidationException.js.map +1 -0
- package/dist/models/processings/accounts/exceptions/FailedAccountProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/accounts/exceptions/FailedAccountProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/accounts/exceptions/FailedAccountProcessingServiceException.js +10 -0
- package/dist/models/processings/accounts/exceptions/FailedAccountProcessingServiceException.js.map +1 -0
- package/dist/models/processings/accounts/exceptions/InvalidAccountProcessingException.d.ts +7 -0
- package/dist/models/processings/accounts/exceptions/InvalidAccountProcessingException.d.ts.map +1 -0
- package/dist/models/processings/accounts/exceptions/InvalidAccountProcessingException.js +22 -0
- package/dist/models/processings/accounts/exceptions/InvalidAccountProcessingException.js.map +1 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingDependencyException.d.ts +6 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingDependencyException.d.ts.map +1 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingDependencyException.js +12 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingDependencyException.js.map +1 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingDependencyValidationException.d.ts +6 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingDependencyValidationException.d.ts.map +1 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingDependencyValidationException.js +12 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingDependencyValidationException.js.map +1 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingServiceException.js +12 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingServiceException.js.map +1 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingValidationException.d.ts +6 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingValidationException.d.ts.map +1 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingValidationException.js +12 -0
- package/dist/models/processings/configs/exceptions/ConfigProcessingValidationException.js.map +1 -0
- package/dist/models/processings/configs/exceptions/FailedConfigProcessingServiceException.d.ts +5 -0
- package/dist/models/processings/configs/exceptions/FailedConfigProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/configs/exceptions/FailedConfigProcessingServiceException.js +10 -0
- package/dist/models/processings/configs/exceptions/FailedConfigProcessingServiceException.js.map +1 -0
- package/dist/models/processings/configs/exceptions/LockUnavailableConfigProcessingException.d.ts +5 -0
- package/dist/models/processings/configs/exceptions/LockUnavailableConfigProcessingException.d.ts.map +1 -0
- package/dist/models/processings/configs/exceptions/LockUnavailableConfigProcessingException.js +11 -0
- package/dist/models/processings/configs/exceptions/LockUnavailableConfigProcessingException.js.map +1 -0
- package/dist/models/processings/health/HealthCheck.d.ts +9 -0
- package/dist/models/processings/health/HealthCheck.d.ts.map +1 -0
- package/dist/models/processings/health/HealthCheck.js +19 -0
- package/dist/models/processings/health/HealthCheck.js.map +1 -0
- package/dist/models/processings/processes/exceptions/FailedProcessProcessingServiceException.d.ts +5 -0
- package/dist/models/processings/processes/exceptions/FailedProcessProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/processes/exceptions/FailedProcessProcessingServiceException.js +10 -0
- package/dist/models/processings/processes/exceptions/FailedProcessProcessingServiceException.js.map +1 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingDependencyException.d.ts +6 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingDependencyException.d.ts.map +1 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingDependencyException.js +12 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingDependencyException.js.map +1 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingDependencyValidationException.d.ts +6 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingDependencyValidationException.d.ts.map +1 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingDependencyValidationException.js +12 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingDependencyValidationException.js.map +1 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingServiceException.js +12 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingServiceException.js.map +1 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingValidationException.d.ts +6 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingValidationException.d.ts.map +1 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingValidationException.js +12 -0
- package/dist/models/processings/processes/exceptions/ProcessProcessingValidationException.js.map +1 -0
- package/dist/models/processings/registrySkills/InstalledSkill.d.ts +8 -0
- package/dist/models/processings/registrySkills/InstalledSkill.d.ts.map +1 -0
- package/dist/models/processings/registrySkills/InstalledSkill.js +2 -0
- package/dist/models/processings/registrySkills/InstalledSkill.js.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/FailedRegistrySkillProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/registrySkills/exceptions/FailedRegistrySkillProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/FailedRegistrySkillProcessingServiceException.js +10 -0
- package/dist/models/processings/registrySkills/exceptions/FailedRegistrySkillProcessingServiceException.js.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/InvalidRegistrySkillProcessingException.d.ts +7 -0
- package/dist/models/processings/registrySkills/exceptions/InvalidRegistrySkillProcessingException.d.ts.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/InvalidRegistrySkillProcessingException.js +22 -0
- package/dist/models/processings/registrySkills/exceptions/InvalidRegistrySkillProcessingException.js.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingDependencyException.d.ts +6 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingDependencyException.d.ts.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingDependencyException.js +11 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingDependencyException.js.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingDependencyValidationException.d.ts +6 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingDependencyValidationException.d.ts.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingDependencyValidationException.js +11 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingDependencyValidationException.js.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingServiceException.js +11 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingServiceException.js.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingValidationException.d.ts +6 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingValidationException.d.ts.map +1 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingValidationException.js +11 -0
- package/dist/models/processings/registrySkills/exceptions/RegistrySkillProcessingValidationException.js.map +1 -0
- package/dist/models/processings/secrets/exceptions/FailedSecretProcessingServiceException.d.ts +5 -0
- package/dist/models/processings/secrets/exceptions/FailedSecretProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/secrets/exceptions/FailedSecretProcessingServiceException.js +10 -0
- package/dist/models/processings/secrets/exceptions/FailedSecretProcessingServiceException.js.map +1 -0
- package/dist/models/processings/secrets/exceptions/LockUnavailableSecretProcessingException.d.ts +5 -0
- package/dist/models/processings/secrets/exceptions/LockUnavailableSecretProcessingException.d.ts.map +1 -0
- package/dist/models/processings/secrets/exceptions/LockUnavailableSecretProcessingException.js +11 -0
- package/dist/models/processings/secrets/exceptions/LockUnavailableSecretProcessingException.js.map +1 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingDependencyException.d.ts +6 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingDependencyException.d.ts.map +1 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingDependencyException.js +12 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingDependencyException.js.map +1 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingDependencyValidationException.d.ts +6 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingDependencyValidationException.d.ts.map +1 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingDependencyValidationException.js +12 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingDependencyValidationException.js.map +1 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingServiceException.js +12 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingServiceException.js.map +1 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingValidationException.d.ts +6 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingValidationException.d.ts.map +1 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingValidationException.js +12 -0
- package/dist/models/processings/secrets/exceptions/SecretProcessingValidationException.js.map +1 -0
- package/dist/models/processings/workspaceFiles/AppliedEdit.d.ts +5 -0
- package/dist/models/processings/workspaceFiles/AppliedEdit.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/AppliedEdit.js +2 -0
- package/dist/models/processings/workspaceFiles/AppliedEdit.js.map +1 -0
- package/dist/models/processings/workspaceFiles/GrepMatch.d.ts +8 -0
- package/dist/models/processings/workspaceFiles/GrepMatch.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/GrepMatch.js +2 -0
- package/dist/models/processings/workspaceFiles/GrepMatch.js.map +1 -0
- package/dist/models/processings/workspaceFiles/PagedFile.d.ts +10 -0
- package/dist/models/processings/workspaceFiles/PagedFile.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/PagedFile.js +2 -0
- package/dist/models/processings/workspaceFiles/PagedFile.js.map +1 -0
- package/dist/models/processings/workspaceFiles/RestoredRun.d.ts +5 -0
- package/dist/models/processings/workspaceFiles/RestoredRun.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/RestoredRun.js +2 -0
- package/dist/models/processings/workspaceFiles/RestoredRun.js.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/FailedWorkspaceFileProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/workspaceFiles/exceptions/FailedWorkspaceFileProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/FailedWorkspaceFileProcessingServiceException.js +10 -0
- package/dist/models/processings/workspaceFiles/exceptions/FailedWorkspaceFileProcessingServiceException.js.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/InvalidWorkspaceFileProcessingException.d.ts +7 -0
- package/dist/models/processings/workspaceFiles/exceptions/InvalidWorkspaceFileProcessingException.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/InvalidWorkspaceFileProcessingException.js +22 -0
- package/dist/models/processings/workspaceFiles/exceptions/InvalidWorkspaceFileProcessingException.js.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingDependencyException.d.ts +6 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingDependencyException.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingDependencyException.js +11 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingDependencyException.js.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingDependencyValidationException.d.ts +6 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingDependencyValidationException.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingDependencyValidationException.js +11 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingDependencyValidationException.js.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingServiceException.d.ts +6 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingServiceException.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingServiceException.js +11 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingServiceException.js.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingValidationException.d.ts +6 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingValidationException.d.ts.map +1 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingValidationException.js +11 -0
- package/dist/models/processings/workspaceFiles/exceptions/WorkspaceFileProcessingValidationException.js.map +1 -0
- package/dist/services/aggregations/doctors/DoctorAggregationService.Exceptions.d.ts +4 -0
- package/dist/services/aggregations/doctors/DoctorAggregationService.Exceptions.d.ts.map +1 -0
- package/dist/services/aggregations/doctors/DoctorAggregationService.Exceptions.js +18 -0
- package/dist/services/aggregations/doctors/DoctorAggregationService.Exceptions.js.map +1 -0
- package/dist/services/aggregations/doctors/DoctorAggregationService.d.ts +16 -0
- package/dist/services/aggregations/doctors/DoctorAggregationService.d.ts.map +1 -0
- package/dist/services/aggregations/doctors/DoctorAggregationService.js +36 -0
- package/dist/services/aggregations/doctors/DoctorAggregationService.js.map +1 -0
- package/dist/services/foundations/accounts/AccountService.Exceptions.d.ts +4 -0
- package/dist/services/foundations/accounts/AccountService.Exceptions.d.ts.map +1 -0
- package/dist/services/foundations/accounts/AccountService.Exceptions.js +55 -0
- package/dist/services/foundations/accounts/AccountService.Exceptions.js.map +1 -0
- package/dist/services/foundations/accounts/AccountService.Validations.d.ts +8 -0
- package/dist/services/foundations/accounts/AccountService.Validations.d.ts.map +1 -0
- package/dist/services/foundations/accounts/AccountService.Validations.js +55 -0
- package/dist/services/foundations/accounts/AccountService.Validations.js.map +1 -0
- package/dist/services/foundations/accounts/AccountService.d.ts +18 -0
- package/dist/services/foundations/accounts/AccountService.d.ts.map +1 -0
- package/dist/services/foundations/accounts/AccountService.js +68 -0
- package/dist/services/foundations/accounts/AccountService.js.map +1 -0
- package/dist/services/foundations/configs/ConfigService.Exceptions.d.ts +4 -0
- package/dist/services/foundations/configs/ConfigService.Exceptions.d.ts.map +1 -0
- package/dist/services/foundations/configs/ConfigService.Exceptions.js +51 -0
- package/dist/services/foundations/configs/ConfigService.Exceptions.js.map +1 -0
- package/dist/services/foundations/configs/ConfigService.Validations.d.ts +6 -0
- package/dist/services/foundations/configs/ConfigService.Validations.d.ts.map +1 -0
- package/dist/services/foundations/configs/ConfigService.Validations.js +118 -0
- package/dist/services/foundations/configs/ConfigService.Validations.js.map +1 -0
- package/dist/services/foundations/configs/ConfigService.d.ts +17 -0
- package/dist/services/foundations/configs/ConfigService.d.ts.map +1 -0
- package/dist/services/foundations/configs/ConfigService.js +215 -0
- package/dist/services/foundations/configs/ConfigService.js.map +1 -0
- package/dist/services/foundations/processes/ProcessService.Exceptions.d.ts +4 -0
- package/dist/services/foundations/processes/ProcessService.Exceptions.d.ts.map +1 -0
- package/dist/services/foundations/processes/ProcessService.Exceptions.js +30 -0
- package/dist/services/foundations/processes/ProcessService.Exceptions.js.map +1 -0
- package/dist/services/foundations/processes/ProcessService.Validations.d.ts +2 -0
- package/dist/services/foundations/processes/ProcessService.Validations.d.ts.map +1 -0
- package/dist/services/foundations/processes/ProcessService.Validations.js +22 -0
- package/dist/services/foundations/processes/ProcessService.Validations.js.map +1 -0
- package/dist/services/foundations/processes/ProcessService.d.ts +11 -0
- package/dist/services/foundations/processes/ProcessService.d.ts.map +1 -0
- package/dist/services/foundations/processes/ProcessService.js +23 -0
- package/dist/services/foundations/processes/ProcessService.js.map +1 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.Exceptions.d.ts +4 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.Exceptions.d.ts.map +1 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.Exceptions.js +42 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.Exceptions.js.map +1 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.Validations.d.ts +5 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.Validations.d.ts.map +1 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.Validations.js +37 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.Validations.js.map +1 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.d.ts +11 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.d.ts.map +1 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.js +28 -0
- package/dist/services/foundations/registrySkills/RegistrySkillService.js.map +1 -0
- package/dist/services/foundations/secrets/SecretService.Exceptions.d.ts +4 -0
- package/dist/services/foundations/secrets/SecretService.Exceptions.d.ts.map +1 -0
- package/dist/services/foundations/secrets/SecretService.Exceptions.js +49 -0
- package/dist/services/foundations/secrets/SecretService.Exceptions.js.map +1 -0
- package/dist/services/foundations/secrets/SecretService.Validations.d.ts +4 -0
- package/dist/services/foundations/secrets/SecretService.Validations.d.ts.map +1 -0
- package/dist/services/foundations/secrets/SecretService.Validations.js +42 -0
- package/dist/services/foundations/secrets/SecretService.Validations.js.map +1 -0
- package/dist/services/foundations/secrets/SecretService.d.ts +15 -0
- package/dist/services/foundations/secrets/SecretService.d.ts.map +1 -0
- package/dist/services/foundations/secrets/SecretService.js +82 -0
- package/dist/services/foundations/secrets/SecretService.js.map +1 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.Exceptions.d.ts +4 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.Exceptions.d.ts.map +1 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.Exceptions.js +49 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.Exceptions.js.map +1 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.Validations.d.ts +14 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.Validations.d.ts.map +1 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.Validations.js +119 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.Validations.js.map +1 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.d.ts +21 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.d.ts.map +1 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.js +195 -0
- package/dist/services/foundations/workspaceFiles/WorkspaceFileService.js.map +1 -0
- package/dist/services/orchestrations/connections/ConnectionOrchestrationService.Exceptions.d.ts +4 -0
- package/dist/services/orchestrations/connections/ConnectionOrchestrationService.Exceptions.d.ts.map +1 -0
- package/dist/services/orchestrations/connections/ConnectionOrchestrationService.Exceptions.js +41 -0
- package/dist/services/orchestrations/connections/ConnectionOrchestrationService.Exceptions.js.map +1 -0
- package/dist/services/orchestrations/connections/ConnectionOrchestrationService.d.ts +27 -0
- package/dist/services/orchestrations/connections/ConnectionOrchestrationService.d.ts.map +1 -0
- package/dist/services/orchestrations/connections/ConnectionOrchestrationService.js +155 -0
- package/dist/services/orchestrations/connections/ConnectionOrchestrationService.js.map +1 -0
- package/dist/services/processings/accounts/AccountProcessingService.Exceptions.d.ts +4 -0
- package/dist/services/processings/accounts/AccountProcessingService.Exceptions.d.ts.map +1 -0
- package/dist/services/processings/accounts/AccountProcessingService.Exceptions.js +35 -0
- package/dist/services/processings/accounts/AccountProcessingService.Exceptions.js.map +1 -0
- package/dist/services/processings/accounts/AccountProcessingService.d.ts +18 -0
- package/dist/services/processings/accounts/AccountProcessingService.d.ts.map +1 -0
- package/dist/services/processings/accounts/AccountProcessingService.js +53 -0
- package/dist/services/processings/accounts/AccountProcessingService.js.map +1 -0
- package/dist/services/processings/configs/ConfigProcessingService.Exceptions.d.ts +4 -0
- package/dist/services/processings/configs/ConfigProcessingService.Exceptions.d.ts.map +1 -0
- package/dist/services/processings/configs/ConfigProcessingService.Exceptions.js +38 -0
- package/dist/services/processings/configs/ConfigProcessingService.Exceptions.js.map +1 -0
- package/dist/services/processings/configs/ConfigProcessingService.d.ts +24 -0
- package/dist/services/processings/configs/ConfigProcessingService.d.ts.map +1 -0
- package/dist/services/processings/configs/ConfigProcessingService.js +157 -0
- package/dist/services/processings/configs/ConfigProcessingService.js.map +1 -0
- package/dist/services/processings/processes/ProcessProcessingService.Exceptions.d.ts +4 -0
- package/dist/services/processings/processes/ProcessProcessingService.Exceptions.d.ts.map +1 -0
- package/dist/services/processings/processes/ProcessProcessingService.Exceptions.js +33 -0
- package/dist/services/processings/processes/ProcessProcessingService.Exceptions.js.map +1 -0
- package/dist/services/processings/processes/ProcessProcessingService.d.ts +13 -0
- package/dist/services/processings/processes/ProcessProcessingService.d.ts.map +1 -0
- package/dist/services/processings/processes/ProcessProcessingService.js +66 -0
- package/dist/services/processings/processes/ProcessProcessingService.js.map +1 -0
- package/dist/services/processings/registrySkills/RegistrySkillProcessingService.Exceptions.d.ts +4 -0
- package/dist/services/processings/registrySkills/RegistrySkillProcessingService.Exceptions.d.ts.map +1 -0
- package/dist/services/processings/registrySkills/RegistrySkillProcessingService.Exceptions.js +36 -0
- package/dist/services/processings/registrySkills/RegistrySkillProcessingService.Exceptions.js.map +1 -0
- package/dist/services/processings/registrySkills/RegistrySkillProcessingService.d.ts +16 -0
- package/dist/services/processings/registrySkills/RegistrySkillProcessingService.d.ts.map +1 -0
- package/dist/services/processings/registrySkills/RegistrySkillProcessingService.js +67 -0
- package/dist/services/processings/registrySkills/RegistrySkillProcessingService.js.map +1 -0
- package/dist/services/processings/secrets/SecretProcessingService.Exceptions.d.ts +4 -0
- package/dist/services/processings/secrets/SecretProcessingService.Exceptions.d.ts.map +1 -0
- package/dist/services/processings/secrets/SecretProcessingService.Exceptions.js +38 -0
- package/dist/services/processings/secrets/SecretProcessingService.Exceptions.js.map +1 -0
- package/dist/services/processings/secrets/SecretProcessingService.d.ts +25 -0
- package/dist/services/processings/secrets/SecretProcessingService.d.ts.map +1 -0
- package/dist/services/processings/secrets/SecretProcessingService.js +180 -0
- package/dist/services/processings/secrets/SecretProcessingService.js.map +1 -0
- package/dist/services/processings/workspaceFiles/Globs.d.ts +2 -0
- package/dist/services/processings/workspaceFiles/Globs.d.ts.map +1 -0
- package/dist/services/processings/workspaceFiles/Globs.js +18 -0
- package/dist/services/processings/workspaceFiles/Globs.js.map +1 -0
- package/dist/services/processings/workspaceFiles/IgnoreRules.d.ts +9 -0
- package/dist/services/processings/workspaceFiles/IgnoreRules.d.ts.map +1 -0
- package/dist/services/processings/workspaceFiles/IgnoreRules.js +72 -0
- package/dist/services/processings/workspaceFiles/IgnoreRules.js.map +1 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.Exceptions.d.ts +4 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.Exceptions.d.ts.map +1 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.Exceptions.js +34 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.Exceptions.js.map +1 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.Validations.d.ts +9 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.Validations.d.ts.map +1 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.Validations.js +76 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.Validations.js.map +1 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.d.ts +59 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.d.ts.map +1 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.js +493 -0
- package/dist/services/processings/workspaceFiles/WorkspaceFileProcessingService.js.map +1 -0
- package/dist/shared/client-version.d.ts +2 -0
- package/dist/shared/client-version.d.ts.map +1 -0
- package/dist/shared/client-version.js +5 -0
- package/dist/shared/client-version.js.map +1 -0
- package/package.json +62 -0
- package/skills/native/coding-agent.md +33 -0
- package/skills/text/coding-agent.md +28 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@peerllm/client-core` are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the versions follow the four-part
|
|
5
|
+
scheme The Standard uses: model, service, fix, build.
|
|
6
|
+
|
|
7
|
+
## [0.1.0]
|
|
8
|
+
|
|
9
|
+
The first release as a package of its own. The code moves here unchanged in behaviour from
|
|
10
|
+
`peerllm-client-cli`, where it had been living inside one of its own two consumers.
|
|
11
|
+
|
|
12
|
+
### Why it moved
|
|
13
|
+
|
|
14
|
+
The desktop application depended on the terminal's package and imported none of the terminal:
|
|
15
|
+
sixteen imports, all of them into the shared core, none into the command line. That is an
|
|
16
|
+
exposer depending on an exposer, and it meant the desktop could only be built on a machine with
|
|
17
|
+
the terminal's repository checked out beside it.
|
|
18
|
+
|
|
19
|
+
### What moved
|
|
20
|
+
|
|
21
|
+
The coding composition and its thirteen tools, the workspace file rules and snapshots, the
|
|
22
|
+
run-once perimeter, connections and profiles, secrets, the account, the session store, skills
|
|
23
|
+
and MCP. 173 source files and their tests.
|
|
24
|
+
|
|
25
|
+
### What changed in the moving
|
|
26
|
+
|
|
27
|
+
- The client identity sent on the wire is the core's own version rather than the terminal's, so
|
|
28
|
+
the desktop stops introducing itself as the command line.
|
|
29
|
+
- The built-in skills and the recorded wire fixtures are found relative to this package rather
|
|
30
|
+
than to the package that used to contain it.
|
|
31
|
+
- Eight tests that exercised the terminal through the core's acceptance folder stay with the
|
|
32
|
+
terminal, where what they prove actually lives.
|
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @peerllm/client-core
|
|
2
|
+
|
|
3
|
+
Everything a PeerLLM client does, minus the window or the terminal it does it in.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
peerllm (terminal) PeerLLM-Client (desktop)
|
|
7
|
+
\ /
|
|
8
|
+
\ /
|
|
9
|
+
@peerllm/client-core
|
|
10
|
+
|
|
|
11
|
+
@hassanhabib/standard-agents
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Two exposers, one core, one framework. The terminal and the desktop are two doors onto the same
|
|
15
|
+
thing, and they no longer know about each other: before this package existed the desktop
|
|
16
|
+
depended on the terminal's package and used none of the terminal.
|
|
17
|
+
|
|
18
|
+
## What is in it
|
|
19
|
+
|
|
20
|
+
- **The coding composition**: the thirteen tools, the workspace file rules, ignore handling,
|
|
21
|
+
snapshots, and the agent the two clients run.
|
|
22
|
+
- **The perimeter**: every act claimed before it happens and recorded after, so a run that dies
|
|
23
|
+
halfway is resumed rather than repeated.
|
|
24
|
+
- **Connections**: profiles, the configuration document, secrets, and the lock two applications
|
|
25
|
+
take to write the same folder.
|
|
26
|
+
- **The account**: signing in, sessions, keys, balance and packages.
|
|
27
|
+
- **Sessions**: the conversation store both clients read, so a run started in the terminal is
|
|
28
|
+
resumed in the window.
|
|
29
|
+
- **Skills and MCP**: the built-in coding skills, the registry, and servers spawned over stdio.
|
|
30
|
+
|
|
31
|
+
## What is not in it
|
|
32
|
+
|
|
33
|
+
Nothing that belongs to one door. Argument parsing, terminal rendering and approval prompts stay
|
|
34
|
+
in `peerllm`; the main process, the preload bridge and the renderer stay in `PeerLLM-Client`.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
npm i @peerllm/client-core
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Node 20 or later.
|
|
43
|
+
|
|
44
|
+
## The Standard
|
|
45
|
+
|
|
46
|
+
The source follows The Standard tier for tier: `brokers` are the only code that touches the
|
|
47
|
+
outside world, `services` hold every decision, `exposers` hand capability to the agent, and
|
|
48
|
+
`models` carry data between them. Tests are written before the code they prove, one failing test
|
|
49
|
+
and one passing implementation per commit.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AgentEffect } from "@hassanhabib/standard-agents";
|
|
2
|
+
export interface ProposedAct {
|
|
3
|
+
readonly toolName: string;
|
|
4
|
+
readonly scope: string;
|
|
5
|
+
readonly goes: string | null;
|
|
6
|
+
readonly arrives: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare function readProposedAct(effect: AgentEffect): ProposedAct;
|
|
9
|
+
export declare function whatItWants(toolName: string): string;
|
|
10
|
+
//# sourceMappingURL=Approvals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Approvals.d.ts","sourceRoot":"","sources":["../src/Approvals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAUhE,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAG1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAIvB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAehE;AAsBD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEpD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export function readProposedAct(effect) {
|
|
2
|
+
const asked = readArguments(effect.arguments);
|
|
3
|
+
const find = typeof asked["find"] === "string" ? asked["find"] : null;
|
|
4
|
+
const replace = typeof asked["replace"] === "string" ? asked["replace"] : null;
|
|
5
|
+
const content = typeof asked["content"] === "string" ? asked["content"] : null;
|
|
6
|
+
return {
|
|
7
|
+
toolName: effect.toolName,
|
|
8
|
+
scope: effect.scope,
|
|
9
|
+
goes: find,
|
|
10
|
+
// A replacement is what arrives; so is the content of a file being created. They are the same
|
|
11
|
+
// question to somebody reading the card: what will be there afterwards.
|
|
12
|
+
arrives: replace ?? content,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
// What a tool is asking to be allowed to do, in the tense it is asked in.
|
|
16
|
+
//
|
|
17
|
+
// The only five tools that ever reach a card. Everything else reads, searches or lists, and none of
|
|
18
|
+
// those stops to ask: what makes these five different is exactly that they leave the workspace
|
|
19
|
+
// changed, or run something.
|
|
20
|
+
//
|
|
21
|
+
// Here rather than in either door, because the door a person happens to be standing in should not
|
|
22
|
+
// change what an act is called. The window's renderer keeps its own copy of this vocabulary, and
|
|
23
|
+
// has to: it is a browser, it cannot import this file, and it also has to word acts that are over.
|
|
24
|
+
const WANTS = new Map([
|
|
25
|
+
["write_file", "Wants to write"],
|
|
26
|
+
["create_new_file", "Wants to make"],
|
|
27
|
+
["single_find_and_replace", "Wants to change"],
|
|
28
|
+
["delete_path", "Wants to delete"],
|
|
29
|
+
["run_command", "Wants to run"],
|
|
30
|
+
]);
|
|
31
|
+
// A tool this client has never heard of keeps its own name and gets no verb invented for it. An
|
|
32
|
+
// MCP server's tool could do anything at all, and the card is the one screen where a wrong claim
|
|
33
|
+
// about what is about to happen costs the most.
|
|
34
|
+
export function whatItWants(toolName) {
|
|
35
|
+
return WANTS.get(toolName) ?? `Wants to use ${toolName}`;
|
|
36
|
+
}
|
|
37
|
+
// Arguments a model wrote. Anything that is not an object is nothing to show rather than a failure:
|
|
38
|
+
// a card that could not be drawn is not a reason to refuse to ask.
|
|
39
|
+
function readArguments(raw) {
|
|
40
|
+
try {
|
|
41
|
+
const parsed = JSON.parse(raw);
|
|
42
|
+
return parsed !== null && typeof parsed === "object" ? parsed : {};
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return {};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=Approvals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Approvals.js","sourceRoot":"","sources":["../src/Approvals.ts"],"names":[],"mappings":"AAsBA,MAAM,UAAU,eAAe,CAAC,MAAmB;IACjD,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,OAAO,KAAK,CAAC,MAAM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IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAExC,OAAO,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAE,MAAkC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClG,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type LoggingBroker } from "@hassanhabib/standard-agents";
|
|
2
|
+
import type { ConnectionProfile } from "./models/foundations/configs/ConfigDocument.js";
|
|
3
|
+
import { ConnectionOrchestrationService } from "./services/orchestrations/connections/ConnectionOrchestrationService.js";
|
|
4
|
+
import { ConfigProcessingService } from "./services/processings/configs/ConfigProcessingService.js";
|
|
5
|
+
import { SecretProcessingService } from "./services/processings/secrets/SecretProcessingService.js";
|
|
6
|
+
export declare const DEFAULT_API_URL = "https://api.peerllm.com/v1/";
|
|
7
|
+
export declare const DEFAULT_MODEL = "LLooMA2.0";
|
|
8
|
+
export declare function defaultConfigDirectory(environment: Readonly<Record<string, string | undefined>>): string;
|
|
9
|
+
export declare function configPathOf(configDirectory: string): string;
|
|
10
|
+
export declare function sessionsDirectoryOf(configDirectory: string): string;
|
|
11
|
+
export declare function snapshotsDirectoryOf(configDirectory: string): string;
|
|
12
|
+
export declare function skillsDirectoryOf(configDirectory: string): string;
|
|
13
|
+
export declare function composeStores(configDirectory: string, loggingBroker?: LoggingBroker): {
|
|
14
|
+
configProcessingService: ConfigProcessingService;
|
|
15
|
+
secretProcessingService: SecretProcessingService;
|
|
16
|
+
};
|
|
17
|
+
export declare function accountUrlOf(apiUrl: string): string;
|
|
18
|
+
export declare function composeConnection(configDirectory: string, loggingBroker?: LoggingBroker, apiUrl?: string): ConnectionOrchestrationService;
|
|
19
|
+
export declare function networkProfile(apiUrl: string, model: string): ConnectionProfile;
|
|
20
|
+
//# sourceMappingURL=Connections.d.ts.map
|
|
@@ -0,0 +1 @@
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AAiB,CA2B/E"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { homedir } from "node:os";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { NotConfiguredLoggingBroker, SystemTimeBroker } from "@hassanhabib/standard-agents";
|
|
4
|
+
import { PeerLlmAccountBroker } from "./brokers/accounts/PeerLlmAccountBroker.js";
|
|
5
|
+
import { FileConfigBroker } from "./brokers/configs/FileConfigBroker.js";
|
|
6
|
+
import { FileSecretBroker } from "./brokers/secrets/FileSecretBroker.js";
|
|
7
|
+
import { ConfigService } from "./services/foundations/configs/ConfigService.js";
|
|
8
|
+
import { SecretService } from "./services/foundations/secrets/SecretService.js";
|
|
9
|
+
import { AccountService } from "./services/foundations/accounts/AccountService.js";
|
|
10
|
+
import { ConnectionOrchestrationService } from "./services/orchestrations/connections/ConnectionOrchestrationService.js";
|
|
11
|
+
import { AccountProcessingService } from "./services/processings/accounts/AccountProcessingService.js";
|
|
12
|
+
import { ConfigProcessingService } from "./services/processings/configs/ConfigProcessingService.js";
|
|
13
|
+
import { SecretProcessingService } from "./services/processings/secrets/SecretProcessingService.js";
|
|
14
|
+
// What a profile talks to when nobody named anything else. Here rather than beside the terminal's
|
|
15
|
+
// flags, because the account root is derived from it and both applications need both.
|
|
16
|
+
export const DEFAULT_API_URL = "https://api.peerllm.com/v1/";
|
|
17
|
+
export const DEFAULT_MODEL = "LLooMA2.0";
|
|
18
|
+
// Where the two applications meet on disk, and how each of them builds what it finds there
|
|
19
|
+
// (SPEC.md 8.9).
|
|
20
|
+
//
|
|
21
|
+
// This lives in the coding tree rather than beside the terminal's commands because the desktop
|
|
22
|
+
// needs every line of it and gets nothing from the terminal. One directory, one layout, one
|
|
23
|
+
// composition: two applications that each worked out where the store lives would be two
|
|
24
|
+
// applications that eventually disagree.
|
|
25
|
+
// Where the two applications meet on disk (SPEC.md 8.9). One directory, so the desktop and the
|
|
26
|
+
// terminal read each other's profiles and each other's keys.
|
|
27
|
+
export function defaultConfigDirectory(environment) {
|
|
28
|
+
const named = (environment["PEERLLM_CONFIG_DIR"] ?? "").trim();
|
|
29
|
+
return named.length > 0 ? named : join(homedir(), ".peerllm");
|
|
30
|
+
}
|
|
31
|
+
export function configPathOf(configDirectory) {
|
|
32
|
+
return join(configDirectory, "peerllm-client-config.json");
|
|
33
|
+
}
|
|
34
|
+
// Where the conversations live, and where what a file was before an edit is kept. Both doors and
|
|
35
|
+
// both applications name them from here rather than each spelling them out, because a folder name
|
|
36
|
+
// written twice is a folder one of them eventually stops finding.
|
|
37
|
+
export function sessionsDirectoryOf(configDirectory) {
|
|
38
|
+
return join(configDirectory, "sessions");
|
|
39
|
+
}
|
|
40
|
+
// Outside the workspace, in the directory this client owns, so an undo never shows up as a change
|
|
41
|
+
// in the repository it is undoing in.
|
|
42
|
+
export function snapshotsDirectoryOf(configDirectory) {
|
|
43
|
+
return join(configDirectory, "snapshots");
|
|
44
|
+
}
|
|
45
|
+
// Where skills installed from the registry live. Beside the configuration rather than in the
|
|
46
|
+
// workspace: a skill is something this machine knows, not something one repository contains, and a
|
|
47
|
+
// user who installed one once should not have to install it again in the next directory.
|
|
48
|
+
export function skillsDirectoryOf(configDirectory) {
|
|
49
|
+
return join(configDirectory, "skills");
|
|
50
|
+
}
|
|
51
|
+
// The two things every door under this directory is built from: the configuration, and the keys
|
|
52
|
+
// beside it. Named once, because two doors that each composed their own pair would be two opinions
|
|
53
|
+
// about where the store lives.
|
|
54
|
+
export function composeStores(configDirectory, loggingBroker = new NotConfiguredLoggingBroker()) {
|
|
55
|
+
const timeBroker = new SystemTimeBroker();
|
|
56
|
+
const configService = new ConfigService(new FileConfigBroker(), loggingBroker, timeBroker);
|
|
57
|
+
const secretService = new SecretService(new FileSecretBroker(join(configDirectory, "client-secrets.json"), join(configDirectory, "peerllm-client-config.lock.secrets")), loggingBroker);
|
|
58
|
+
return {
|
|
59
|
+
configProcessingService: new ConfigProcessingService(configService, loggingBroker, timeBroker),
|
|
60
|
+
secretProcessingService: new SecretProcessingService(secretService, loggingBroker, timeBroker),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
// Where the account API lives, given where the brain lives.
|
|
64
|
+
//
|
|
65
|
+
// The brain speaks at `/v1/` and the account routes sit at the root beside it: same service, two
|
|
66
|
+
// doors, two secrets. Derived rather than configured, because a machine that could be pointed at
|
|
67
|
+
// one and not the other would be a machine that signs in to one account and spends another's
|
|
68
|
+
// tokens.
|
|
69
|
+
export function accountUrlOf(apiUrl) {
|
|
70
|
+
return apiUrl.replace(/v1\/?$/, "");
|
|
71
|
+
}
|
|
72
|
+
export function composeConnection(configDirectory, loggingBroker = new NotConfiguredLoggingBroker(), apiUrl = DEFAULT_API_URL) {
|
|
73
|
+
const stores = composeStores(configDirectory, loggingBroker);
|
|
74
|
+
const accountProcessingService = new AccountProcessingService(new AccountService(new PeerLlmAccountBroker(accountUrlOf(apiUrl)), loggingBroker), loggingBroker);
|
|
75
|
+
return new ConnectionOrchestrationService(stores.configProcessingService, stores.secretProcessingService, accountProcessingService, loggingBroker);
|
|
76
|
+
}
|
|
77
|
+
export function networkProfile(apiUrl, model) {
|
|
78
|
+
return {
|
|
79
|
+
id: "network",
|
|
80
|
+
name: "PeerLLM Network",
|
|
81
|
+
kind: "network",
|
|
82
|
+
baseUrl: apiUrl,
|
|
83
|
+
model,
|
|
84
|
+
protocol: "native",
|
|
85
|
+
accountId: null,
|
|
86
|
+
// Nothing minted this. A key typed in with `peerllm init --key` is the user's, and this client
|
|
87
|
+
// has nothing to revoke on the way out.
|
|
88
|
+
keyId: null,
|
|
89
|
+
// Nothing has been probed yet. False rather than true, because assuming a brain can do
|
|
90
|
+
// something and finding out mid-run is worse than asking for less than it offers.
|
|
91
|
+
capabilities: {
|
|
92
|
+
tools: false,
|
|
93
|
+
streaming: false,
|
|
94
|
+
narration: false,
|
|
95
|
+
balance: false,
|
|
96
|
+
webSearch: false,
|
|
97
|
+
safety: false,
|
|
98
|
+
contextLength: null,
|
|
99
|
+
probedOn: null,
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=Connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Connections.js","sourceRoot":"","sources":["../src/Connections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,0BAA0B,EAAE,gBAAgB,EAAsB,MAAM,8BAA8B,CAAC;AAEhH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,yEAAyE,CAAC;AACzH,OAAO,EAAE,wBAAwB,EAAE,MAAM,6DAA6D,CAAC;AACvG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,2DAA2D,CAAC;AAEpG,kGAAkG;AAClG,sFAAsF;AACtF,MAAM,CAAC,MAAM,eAAe,GAAG,6BAA6B,CAAC;AAE7D,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CAAC;AAEzC,2FAA2F;AAC3F,iBAAiB;AACjB,EAAE;AACF,+FAA+F;AAC/F,4FAA4F;AAC5F,wFAAwF;AACxF,yCAAyC;AAEzC,+FAA+F;AAC/F,6DAA6D;AAC7D,MAAM,UAAU,sBAAsB,CAAC,WAAyD;IAC9F,MAAM,KAAK,GAAG,CAAC,WAAW,CAAC,oBAAoB,CAAC,IA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,KAAK;YACb,aAAa,EAAE,IAAI;YACnB,QAAQ,EAAE,IAAI;SACf;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { McpServer } from "./models/foundations/configs/ConfigDocument.js";
|
|
2
|
+
export interface Offerings {
|
|
3
|
+
readonly installedSkillsPath: string;
|
|
4
|
+
readonly mcpServers: readonly McpServer[];
|
|
5
|
+
}
|
|
6
|
+
export declare function offeringsOf(configDirectory: string): Promise<Offerings>;
|
|
7
|
+
export declare function readServers(configDirectory: string): Promise<readonly McpServer[]>;
|
|
8
|
+
//# sourceMappingURL=Offerings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Offerings.d.ts","sourceRoot":"","sources":["../src/Offerings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAiBhF,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,EAAE,CAAC;CAC3C;AAED,wBAAsB,WAAW,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAQ7E;AAID,wBAAsB,WAAW,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,SAAS,EAAE,CAAC,CAQxF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { composeStores, configPathOf, skillsDirectoryOf } from "./Connections.js";
|
|
2
|
+
export async function offeringsOf(configDirectory) {
|
|
3
|
+
return {
|
|
4
|
+
installedSkillsPath: skillsDirectoryOf(configDirectory),
|
|
5
|
+
// Named in the document a person edited, never by anything a model can reach: each one is a
|
|
6
|
+
// program this client starts.
|
|
7
|
+
mcpServers: await readServers(configDirectory),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
// A machine with no document names no servers, which is the same answer as a document that names
|
|
11
|
+
// none. Neither is a failure and neither is worth telling apart here.
|
|
12
|
+
export async function readServers(configDirectory) {
|
|
13
|
+
const { configProcessingService } = composeStores(configDirectory);
|
|
14
|
+
try {
|
|
15
|
+
return (await configProcessingService.retrieveConfig(configPathOf(configDirectory))).mcpServers;
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=Offerings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Offerings.js","sourceRoot":"","sources":["../src/Offerings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAqBlF,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,eAAuB;IACvD,OAAO;QACL,mBAAmB,EAAE,iBAAiB,CAAC,eAAe,CAAC;QAEvD,4FAA4F;QAC5F,8BAA8B;QAC9B,UAAU,EAAE,MAAM,WAAW,CAAC,eAAe,CAAC;KAC/C,CAAC;AACJ,CAAC;AAED,iGAAiG;AACjG,sEAAsE;AACtE,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,eAAuB;IACvD,MAAM,EAAE,uBAAuB,EAAE,GAAG,aAAa,CAAC,eAAe,CAAC,CAAC;IAEnE,IAAI,CAAC;QACH,OAAO,CAAC,MAAM,uBAAuB,CAAC,cAAc,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAClG,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type FileBroker } from "@hassanhabib/standard-agents";
|
|
2
|
+
import { type ProposedAct } from "./Approvals.js";
|
|
3
|
+
export declare function freshSessionId(now?: Date): string;
|
|
4
|
+
export interface SessionSummary {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly turns: number;
|
|
7
|
+
readonly status: string;
|
|
8
|
+
readonly asked: string;
|
|
9
|
+
readonly standing: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ConversationTurn {
|
|
12
|
+
readonly prompt: string;
|
|
13
|
+
readonly answer: string;
|
|
14
|
+
readonly acts: readonly ConversationAct[];
|
|
15
|
+
readonly recordedOn: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ConversationAct {
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly target: string;
|
|
20
|
+
readonly performed: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function readConversation(configDirectory: string, sessionId: string): Promise<readonly ConversationTurn[]>;
|
|
23
|
+
export declare function pendingQuestionOf(configDirectory: string, sessionId: string): Promise<string>;
|
|
24
|
+
export interface HeldAct extends ProposedAct {
|
|
25
|
+
readonly idempotencyKey: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function heldActOf(configDirectory: string, sessionId: string): Promise<HeldAct | null>;
|
|
28
|
+
export declare function whereItStands(status: string): string;
|
|
29
|
+
export declare function inTheOrderThatMatters(conversations: readonly SessionSummary[]): readonly SessionSummary[];
|
|
30
|
+
export declare function rememberLastSession(configDirectory: string, sessionId: string, fileBroker?: FileBroker): Promise<void>;
|
|
31
|
+
export declare function lastSessionOf(configDirectory: string, fileBroker?: FileBroker): Promise<string | null>;
|
|
32
|
+
export declare function readSessions(configDirectory: string): Promise<readonly SessionSummary[]>;
|
|
33
|
+
//# sourceMappingURL=Sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sessions.d.ts","sourceRoot":"","sources":["../src/Sessions.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwD,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAErH,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAenE,wBAAgB,cAAc,CAAC,GAAG,GAAE,IAAiB,GAAG,MAAM,CAE7D;AAKD,MAAM,WAAW,cAAc;IAC7B,Q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AAE,MAAM,EACvB,SAAS,EAAE,MAAM,EACjB,UAAU,GAAE,UAAiC,GAC5C,OAAO,CAAC,IAAI,CAAC,CAMf;AAED,wBAAsB,aAAa,CACjC,eAAe,EAAE,MAAM,EACvB,UAAU,GAAE,UAAiC,GAC5C,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAUxB;AAKD,wBAAsB,YAAY,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,CAc9F"}
|
package/dist/Sessions.js
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { randomBytes } from "node:crypto";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { FileSessionBroker, NodeFileBroker } from "@hassanhabib/standard-agents";
|
|
4
|
+
import { readProposedAct } from "./Approvals.js";
|
|
5
|
+
import { sessionsDirectoryOf } from "./Connections.js";
|
|
6
|
+
import { refusalIn } from "./exposers/tools/Refusals.js";
|
|
7
|
+
// What a conversation is called, where the conversations live, and which one to carry on
|
|
8
|
+
// (SPEC.md 4.11, PLAN.md 4.7).
|
|
9
|
+
//
|
|
10
|
+
// In the coding tree rather than the terminal's, because a window needs every line of this and gets
|
|
11
|
+
// none of it from there. Two applications that each worked out what a conversation is called would
|
|
12
|
+
// be two applications whose conversations never meet, and the whole point of one folder is that a
|
|
13
|
+
// prompt typed in one and a prompt typed in the other belong to the same thread.
|
|
14
|
+
//
|
|
15
|
+
// The name is dated and short: dated so a person picking one out of a list can tell this morning's
|
|
16
|
+
// from last week's without opening it, and short so retyping it to continue a conversation is not
|
|
17
|
+
// a chore. It is not the run's id, because a conversation outlives the runs in it.
|
|
18
|
+
export function freshSessionId(now = new Date()) {
|
|
19
|
+
return `${now.toISOString().slice(0, 10)}-${randomBytes(3).toString("hex")}`;
|
|
20
|
+
}
|
|
21
|
+
// The turns a conversation holds, oldest first, or nothing when there is no such conversation. A
|
|
22
|
+
// conversation that is not there is not a failure: it is one nobody has said anything in yet.
|
|
23
|
+
export async function readConversation(configDirectory, sessionId) {
|
|
24
|
+
const broker = new FileSessionBroker(new NodeFileBroker(), sessionsDirectoryOf(configDirectory));
|
|
25
|
+
try {
|
|
26
|
+
const session = await broker.selectSession(sessionId);
|
|
27
|
+
return (session?.history ?? []).map((turn) => ({
|
|
28
|
+
prompt: turn.prompt,
|
|
29
|
+
answer: turn.answer,
|
|
30
|
+
recordedOn: turn.recordedOn ?? "",
|
|
31
|
+
acts: turn.exchanges.map((exchange) => ({
|
|
32
|
+
name: exchange.toolName,
|
|
33
|
+
target: targetOf(exchange.argumentsJson),
|
|
34
|
+
performed: performedIn(exchange.result),
|
|
35
|
+
})),
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
if (error?.code === "ENOENT") {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
throw error;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// The question a conversation stopped to ask, or nothing when it is not waiting on one.
|
|
46
|
+
//
|
|
47
|
+
// A run that needs to ask rather than act leaves the question on the session and stops. The
|
|
48
|
+
// conversation then reads back like any other, with the question sitting where an answer usually
|
|
49
|
+
// sits, and a window that drew it as an answer would be showing somebody a conclusion when what
|
|
50
|
+
// they have is a turn waiting on them.
|
|
51
|
+
//
|
|
52
|
+
// Only for a conversation waiting on an answer. A conversation waiting on a yes is waiting for a
|
|
53
|
+
// card, not for a sentence, and a window cannot answer that one by typing into it.
|
|
54
|
+
export async function pendingQuestionOf(configDirectory, sessionId) {
|
|
55
|
+
const broker = new FileSessionBroker(new NodeFileBroker(), sessionsDirectoryOf(configDirectory));
|
|
56
|
+
try {
|
|
57
|
+
const session = await broker.selectSession(sessionId);
|
|
58
|
+
return session?.status === "AwaitingInput" ? session.pendingQuestion : "";
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
// A conversation that is not there is not waiting on anything, which is the same answer as a
|
|
62
|
+
// conversation that is there and finished.
|
|
63
|
+
if (error?.code === "ENOENT") {
|
|
64
|
+
return "";
|
|
65
|
+
}
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export async function heldActOf(configDirectory, sessionId) {
|
|
70
|
+
const broker = new FileSessionBroker(new NodeFileBroker(), sessionsDirectoryOf(configDirectory));
|
|
71
|
+
try {
|
|
72
|
+
const held = (await broker.selectSession(sessionId))?.pendingEffect ?? null;
|
|
73
|
+
// Read by the same routine that draws a live card, so the card a person comes back to is the
|
|
74
|
+
// card they left, and not a second account of the same act that can disagree with it.
|
|
75
|
+
return held === null ? null : { ...readProposedAct(held), idempotencyKey: held.idempotencyKey };
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
// A conversation that is not there is holding nothing, which is the same answer as one that is
|
|
79
|
+
// there and finished.
|
|
80
|
+
if (error?.code === "ENOENT") {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
throw error;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// Where a conversation stands, in the words a person would use, or nothing at all when it is over.
|
|
87
|
+
//
|
|
88
|
+
// The two kinds of waiting are not the same thing: one wants permission and one wants an answer,
|
|
89
|
+
// and only one of them is a decision. A conversation that is over says nothing, because a list
|
|
90
|
+
// where every line carries a word is a list where no word is read.
|
|
91
|
+
//
|
|
92
|
+
// Here rather than in either door, because the door somebody happens to be standing in should not
|
|
93
|
+
// change what a conversation is called.
|
|
94
|
+
//
|
|
95
|
+
// Working is what the store last wrote, which is not the same as what is happening now: a run
|
|
96
|
+
// killed with its window open leaves that behind. It is still the truest thing a client can say
|
|
97
|
+
// without a heartbeat it does not have.
|
|
98
|
+
const WHERE = new Map([
|
|
99
|
+
["AwaitingApproval", "Waiting for your yes"],
|
|
100
|
+
["AwaitingInput", "Waiting for an answer"],
|
|
101
|
+
["Working", "Working"],
|
|
102
|
+
["Revising", "Working"],
|
|
103
|
+
]);
|
|
104
|
+
export function whereItStands(status) {
|
|
105
|
+
return WHERE.get(status) ?? "";
|
|
106
|
+
}
|
|
107
|
+
// The two statuses that mean a run has stopped and is waiting on a person, and the two that mean
|
|
108
|
+
// it is still moving without anybody. Everything else is over: answered, refused, or failed.
|
|
109
|
+
const NEEDS_YOU = new Set(["AwaitingApproval", "AwaitingInput"]);
|
|
110
|
+
const STILL_GOING = new Set(["Working", "Revising"]);
|
|
111
|
+
// The order a person would deal with them in: the one that cannot move without you, then the one
|
|
112
|
+
// that is moving without you, then the ones that are over. A finished conversation is the only
|
|
113
|
+
// kind that can wait.
|
|
114
|
+
//
|
|
115
|
+
// Sorted rather than partitioned, because a sort keeps the order of equals and the order the store
|
|
116
|
+
// gave inside each group is the one worth keeping: newest day first.
|
|
117
|
+
export function inTheOrderThatMatters(conversations) {
|
|
118
|
+
return [...conversations].sort((left, right) => rank(left) - rank(right));
|
|
119
|
+
}
|
|
120
|
+
function rank(conversation) {
|
|
121
|
+
if (NEEDS_YOU.has(conversation.status)) {
|
|
122
|
+
return 0;
|
|
123
|
+
}
|
|
124
|
+
return STILL_GOING.has(conversation.status) ? 1 : 2;
|
|
125
|
+
}
|
|
126
|
+
// The conversation the last run belonged to, so carrying one on does not mean copying an id out of
|
|
127
|
+
// the scrollback. One line in a file beside the conversations, rather than a field in the
|
|
128
|
+
// configuration document: it changes on every run, and the document is a thing two applications
|
|
129
|
+
// take a lock to write.
|
|
130
|
+
export async function rememberLastSession(configDirectory, sessionId, fileBroker = new NodeFileBroker()) {
|
|
131
|
+
// The broker makes the folder before the file. On a machine that has never run this client there
|
|
132
|
+
// is no folder at all, and the door that writes this may be the first one to touch it. Depending
|
|
133
|
+
// on another door having made it earlier is how the next door to be written breaks, which is
|
|
134
|
+
// exactly how this was found.
|
|
135
|
+
await fileBroker.writeFile(lastSessionPathOf(configDirectory), `${sessionId}\n`);
|
|
136
|
+
}
|
|
137
|
+
export async function lastSessionOf(configDirectory, fileBroker = new NodeFileBroker()) {
|
|
138
|
+
// A machine that has never run this has no file, which is not a failure: it is the answer that
|
|
139
|
+
// there is nothing to carry on.
|
|
140
|
+
try {
|
|
141
|
+
const remembered = (await fileBroker.readFile(lastSessionPathOf(configDirectory))).trim();
|
|
142
|
+
return remembered.length > 0 ? remembered : null;
|
|
143
|
+
}
|
|
144
|
+
catch {
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
// Every conversation this machine holds, newest day first. The id carries the day it was made,
|
|
149
|
+
// which is as much order as the store can give without reading every conversation whole to find
|
|
150
|
+
// out when it was last written.
|
|
151
|
+
export async function readSessions(configDirectory) {
|
|
152
|
+
const broker = new FileSessionBroker(new NodeFileBroker(), sessionsDirectoryOf(configDirectory));
|
|
153
|
+
const ids = await idsOrNone(broker);
|
|
154
|
+
const summaries = [];
|
|
155
|
+
for (const id of [...ids].sort((left, right) => right.localeCompare(left))) {
|
|
156
|
+
const session = await broker.selectSession(id);
|
|
157
|
+
if (session !== null) {
|
|
158
|
+
summaries.push(summarise(session));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return summaries;
|
|
162
|
+
}
|
|
163
|
+
function summarise(session) {
|
|
164
|
+
return {
|
|
165
|
+
id: session.id,
|
|
166
|
+
turns: session.history.length,
|
|
167
|
+
status: session.status,
|
|
168
|
+
asked: session.history[0]?.prompt ?? "",
|
|
169
|
+
standing: whereItStands(session.status),
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
function lastSessionPathOf(configDirectory) {
|
|
173
|
+
return join(configDirectory, "last-session");
|
|
174
|
+
}
|
|
175
|
+
// A folder that is not there holds no conversations, which is the same answer as a folder that is
|
|
176
|
+
// there and empty. Anything else is a real failure and is left to rise.
|
|
177
|
+
async function idsOrNone(broker) {
|
|
178
|
+
try {
|
|
179
|
+
return await broker.selectSessionIds();
|
|
180
|
+
}
|
|
181
|
+
catch (error) {
|
|
182
|
+
if (error?.code === "ENOENT") {
|
|
183
|
+
return [];
|
|
184
|
+
}
|
|
185
|
+
throw error;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
// Whether the act went through, read the same way the agent reads it while the turn is running.
|
|
189
|
+
//
|
|
190
|
+
// A refusal is a result, not a fault: the tool came back and said the workspace would not do it.
|
|
191
|
+
// The run-once perimeter already asks this exact question of this exact text, to decide whether an
|
|
192
|
+
// act may be tried again, and a window that answered it differently would be a second opinion
|
|
193
|
+
// about the same sentence. The one predicate is the whole point.
|
|
194
|
+
function performedIn(result) {
|
|
195
|
+
return refusalIn({ message: result }) === null;
|
|
196
|
+
}
|
|
197
|
+
// The one argument worth showing. A tool takes a handful and exactly one of them is the thing it
|
|
198
|
+
// acted on: the file, the pattern, the command. Anything else is a blob, and a blob is not a line
|
|
199
|
+
// anybody reads.
|
|
200
|
+
//
|
|
201
|
+
// Nothing when it cannot be found, rather than a guess or a dump. A line that says only what the
|
|
202
|
+
// act was is still a true line.
|
|
203
|
+
const TARGETS = ["path", "pattern", "command", "query", "file", "name"];
|
|
204
|
+
function targetOf(argumentsJson) {
|
|
205
|
+
let asked;
|
|
206
|
+
try {
|
|
207
|
+
const parsed = JSON.parse(argumentsJson);
|
|
208
|
+
asked = parsed !== null && typeof parsed === "object" ? parsed : {};
|
|
209
|
+
}
|
|
210
|
+
catch {
|
|
211
|
+
return "";
|
|
212
|
+
}
|
|
213
|
+
for (const named of TARGETS) {
|
|
214
|
+
const value = asked[named];
|
|
215
|
+
if (typeof value === "string" && value.length > 0) {
|
|
216
|
+
return value;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return "";
|
|
220
|
+
}
|
|
221
|
+
//# sourceMappingURL=Sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sessions.js","sourceRoot":"","sources":["../src/Sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAsC,M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-0,0 +1,13 @@
|
|
|
1
|
+
import type { AccountKey, MintedKey } from "../../models/brokers/accounts/AccountKey.js";
|
|
2
|
+
import type { AccountSession } from "../../models/brokers/accounts/AccountSession.js";
|
|
3
|
+
import type { TokenBalance } from "../../models/brokers/accounts/TokenBalance.js";
|
|
4
|
+
export interface AccountBroker {
|
|
5
|
+
postLogin(email: string, password: string): Promise<AccountSession>;
|
|
6
|
+
postRefresh(refreshToken: string): Promise<AccountSession>;
|
|
7
|
+
postLogout(accessToken: string, refreshToken: string): Promise<void>;
|
|
8
|
+
postApiKey(accessToken: string, keyName: string): Promise<MintedKey>;
|
|
9
|
+
getApiKeys(accessToken: string): Promise<readonly AccountKey[]>;
|
|
10
|
+
deleteApiKey(accessToken: string, id: string): Promise<void>;
|
|
11
|
+
getBalance(accessToken: string): Promise<TokenBalance>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=AccountBroker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountBroker.d.ts","sourceRoot":"","sources":["../../../src/brokers/accounts/AccountBroker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAQlF,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAIpE,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3D,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErE,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACrE,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,UAAU,EAAE,CAAC,CAAC;IAChE,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountBroker.js","sourceRoot":"","sources":["../../../src/brokers/accounts/AccountBroker.ts"],"names":[],"mappings":""}
|