@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
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { CLIENT_VERSION } from "../../shared/client-version.js";
|
|
2
|
+
// A Model Context Protocol server over stdio (SPEC.md 4.8 External, PLAN.md 2.8).
|
|
3
|
+
//
|
|
4
|
+
// Newline-delimited JSON-RPC and nothing else. The protocol lives here and the pipe lives in the
|
|
5
|
+
// channel, so this can be driven by a script in a test and by a child process in a run, and neither
|
|
6
|
+
// of them has an opinion about the other.
|
|
7
|
+
//
|
|
8
|
+
// One handshake per broker, done once and remembered. A server that was initialised twice would
|
|
9
|
+
// answer the second one and forget the first, and every tool this client had listed would stop
|
|
10
|
+
// being callable.
|
|
11
|
+
export const MCP_PROTOCOL_VERSION = "2024-11-05";
|
|
12
|
+
export class StdioMcpBroker {
|
|
13
|
+
channel;
|
|
14
|
+
name;
|
|
15
|
+
nextId = 1;
|
|
16
|
+
handshake = null;
|
|
17
|
+
constructor(channel, name) {
|
|
18
|
+
this.channel = channel;
|
|
19
|
+
this.name = name;
|
|
20
|
+
}
|
|
21
|
+
async listTools() {
|
|
22
|
+
await this.initialize();
|
|
23
|
+
const answered = await this.request("tools/list", {});
|
|
24
|
+
const tools = answered.tools ?? [];
|
|
25
|
+
return tools.map((tool) => ({
|
|
26
|
+
// Prefixed with the server's name, because two servers may both offer `search` and a model
|
|
27
|
+
// asked to call one of them has to be able to say which.
|
|
28
|
+
name: `${this.name}__${tool.name ?? ""}`,
|
|
29
|
+
description: tool.description ?? "",
|
|
30
|
+
inputSchemaJson: JSON.stringify(tool.inputSchema ?? { type: "object", properties: {} }),
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
async call(name, argumentsJson, signal) {
|
|
34
|
+
await this.initialize();
|
|
35
|
+
const answered = await this.request("tools/call", { name: withoutPrefix(name, this.name), arguments: readArguments(argumentsJson) }, signal);
|
|
36
|
+
return readContent(answered);
|
|
37
|
+
}
|
|
38
|
+
// Done once, whoever asks first. Both public routines need it and neither should have to know
|
|
39
|
+
// whether the other went first.
|
|
40
|
+
async initialize() {
|
|
41
|
+
this.handshake ??= this.shakeHands();
|
|
42
|
+
await this.handshake;
|
|
43
|
+
}
|
|
44
|
+
async shakeHands() {
|
|
45
|
+
await this.request("initialize", {
|
|
46
|
+
protocolVersion: MCP_PROTOCOL_VERSION,
|
|
47
|
+
capabilities: {},
|
|
48
|
+
clientInfo: { name: "peerllm-client-cli", version: CLIENT_VERSION },
|
|
49
|
+
});
|
|
50
|
+
// A notification, so no id and no answer to wait for. Waiting for one would hang against every
|
|
51
|
+
// server that follows the protocol.
|
|
52
|
+
await this.channel.send(JSON.stringify({ jsonrpc: "2.0", method: "notifications/initialized" }));
|
|
53
|
+
}
|
|
54
|
+
async request(method, parameters, signal) {
|
|
55
|
+
const id = this.nextId;
|
|
56
|
+
this.nextId += 1;
|
|
57
|
+
await this.channel.send(JSON.stringify({ jsonrpc: "2.0", id, method, params: parameters }));
|
|
58
|
+
for (;;) {
|
|
59
|
+
const line = await this.channel.next(signal);
|
|
60
|
+
// The server stopped writing. Every request still waiting would wait forever, so this is the
|
|
61
|
+
// answer rather than the absence of one.
|
|
62
|
+
if (line === null) {
|
|
63
|
+
throw new Error(`the '${this.name}' server stopped answering during ${method}`);
|
|
64
|
+
}
|
|
65
|
+
const message = parse(line);
|
|
66
|
+
// Notifications and answers to other requests go past. A server may say anything it likes
|
|
67
|
+
// between the question and the answer, and a client that read the first line as its own would
|
|
68
|
+
// be reading somebody else's post.
|
|
69
|
+
if (message === null || message.id !== id) {
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
if (message.error !== undefined) {
|
|
73
|
+
throw new Error(`the '${this.name}' server refused ${method}: ${message.error.message ?? "no reason given"}`);
|
|
74
|
+
}
|
|
75
|
+
return message.result;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// A line that is not JSON is a line a server wrote for a human. Servers log to stdout more often
|
|
80
|
+
// than anybody would like, and a client that threw on the first one would be a client that works
|
|
81
|
+
// against almost nothing.
|
|
82
|
+
function parse(line) {
|
|
83
|
+
if (line === null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
try {
|
|
87
|
+
return JSON.parse(line);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
// The text of the answer, joined. A tool that answered with an image has nothing a text protocol can
|
|
94
|
+
// carry, and saying so is better than handing the model an empty string it will read as success.
|
|
95
|
+
function readContent(answered) {
|
|
96
|
+
const said = (answered.content ?? [])
|
|
97
|
+
.filter((part) => part.type === "text")
|
|
98
|
+
.map((part) => part.text ?? "")
|
|
99
|
+
.join("\n");
|
|
100
|
+
if (said.length > 0) {
|
|
101
|
+
return said;
|
|
102
|
+
}
|
|
103
|
+
return (answered.content ?? []).length > 0 ? "[the server answered with something that is not text]" : "";
|
|
104
|
+
}
|
|
105
|
+
function withoutPrefix(name, server) {
|
|
106
|
+
return name.startsWith(`${server}__`) ? name.slice(server.length + 2) : name;
|
|
107
|
+
}
|
|
108
|
+
// A model that sent nothing sent an empty object, not a parse error.
|
|
109
|
+
function readArguments(argumentsJson) {
|
|
110
|
+
try {
|
|
111
|
+
return argumentsJson.trim().length === 0 ? {} : JSON.parse(argumentsJson);
|
|
112
|
+
}
|
|
113
|
+
catch {
|
|
114
|
+
return {};
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=StdioMcpBroker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StdioMcpBroker.js","sourceRoot":"","sources":["../../../src/brokers/mcps/StdioMcpBroker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAGhE,kFAAkF;AAClF,EAAE;AACF,iGAAiG;AACjG,oGAAoG;AACpG,0CAA0C;AAC1C,EAAE;AACF,gGAAgG;AAChG,+FAA+F;AAC/F,kBAAkB;AAClB,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEjD,MAAM,OAAO,cAAc;IACR,OAAO,CAAa;IACpB,IA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Aa,CAAC,IAAY,EAAE,MAAc;IACjD,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/E,CAAC;AAED,qEAAqE;AACrE,SAAS,aAAa,CAAC,aAAqB;IAC1C,IAAI,CAAC;QACH,OAAO,aAAa,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC5E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProcessBroker, ProcessOutcome, SpawnRequest } from "./ProcessBroker.js";
|
|
2
|
+
export declare class NodeProcessBroker implements ProcessBroker {
|
|
3
|
+
spawn(request: SpawnRequest, signal?: AbortSignal): Promise<ProcessOutcome>;
|
|
4
|
+
killTree(processId: number): Promise<void>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=NodeProcessBroker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeProcessBroker.d.ts","sourceRoot":"","sources":["../../../src/brokers/processes/NodeProcessBroker.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAQtF,qBAAa,iBAAkB,YAAW,aAAa;IACxC,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC;IA2C3E,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAexD"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
// Child processes through Node's own spawn. A broker forwards: what may be run, how long is long
|
|
3
|
+
// enough and how much output is too much all belong above this line.
|
|
4
|
+
//
|
|
5
|
+
// `shell` is never set. A shell string is a sentence somebody else's quoting rules parse, and a
|
|
6
|
+
// model that writes `rm -rf $(cat x)` would have it obeyed; argv is a list where the first item is
|
|
7
|
+
// a program and the rest are arguments to it, and nothing in the list can become a second command.
|
|
8
|
+
export class NodeProcessBroker {
|
|
9
|
+
async spawn(request, signal) {
|
|
10
|
+
const [command = "", ...rest] = request.argv;
|
|
11
|
+
return await new Promise((resolve, reject) => {
|
|
12
|
+
const child = spawn(command, rest, {
|
|
13
|
+
cwd: request.cwd,
|
|
14
|
+
shell: false,
|
|
15
|
+
windowsHide: true,
|
|
16
|
+
...(signal === undefined ? {} : { signal }),
|
|
17
|
+
});
|
|
18
|
+
let stdout = "";
|
|
19
|
+
let stderr = "";
|
|
20
|
+
let timedOut = false;
|
|
21
|
+
const timer = setTimeout(() => {
|
|
22
|
+
timedOut = true;
|
|
23
|
+
void this.killTree(child.pid ?? 0);
|
|
24
|
+
}, request.timeoutMilliseconds);
|
|
25
|
+
child.stdout?.on("data", (chunk) => {
|
|
26
|
+
stdout += chunk.toString("utf8");
|
|
27
|
+
});
|
|
28
|
+
child.stderr?.on("data", (chunk) => {
|
|
29
|
+
stderr += chunk.toString("utf8");
|
|
30
|
+
});
|
|
31
|
+
child.on("error", (error) => {
|
|
32
|
+
clearTimeout(timer);
|
|
33
|
+
reject(error);
|
|
34
|
+
});
|
|
35
|
+
child.on("close", (exitCode) => {
|
|
36
|
+
clearTimeout(timer);
|
|
37
|
+
resolve({ exitCode, stdout, stderr, timedOut });
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// Windows has no process groups the way POSIX does, so the tree is walked by the tool the
|
|
42
|
+
// platform ships for it. Elsewhere the child leads its own group and one signal reaches all of
|
|
43
|
+
// it.
|
|
44
|
+
async killTree(processId) {
|
|
45
|
+
if (processId === 0) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (process.platform === "win32") {
|
|
49
|
+
await new Promise((resolve) => {
|
|
50
|
+
spawn("taskkill", ["/pid", String(processId), "/T", "/F"], { windowsHide: true }).on("close", () => resolve());
|
|
51
|
+
});
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
process.kill(processId, "SIGKILL");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=NodeProcessBroker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeProcessBroker.js","sourceRoot":"","sources":["../../../src/brokers/processes/NodeProcessBroker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAI3C,iGAAiG;AACjG,qEAAqE;AACrE,EAAE;AACF,gGAAgG;AAChG,mGAAmG;AACnG,mGAAmG;AACnG,MAAM,OAAO,iBAAiB;IACrB,KAAK,CAAC,KAAK,CAAC,OAAqB,EAAE,MAAoB;QAC5D,MAAM,CAAC,OAAO,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;QAE7C,OAAO,MAAM,IAAI,OAAO,CAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC3D,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,EAAE,IAAI,EAAE;gBACjC,GAAG,EAAE,OAAO,CAAC,GAAG;gBAChB,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,IAAI;gBACjB,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC;aAC5C,CAAC,CAAC;YAEH,IAAI,MAAM,GAAG,EAAE,CAAC;YAChB,IAAI,MAAM,GAAG,EAAE,CAAC;YAChB,IAAI,QAAQ,GAAG,KAAK,CAAC;YAErB,MA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AE,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;YACjH,CAAC,CAAC,CAAC;YAEH,OAAO;QACT,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface SpawnRequest {
|
|
2
|
+
readonly argv: readonly string[];
|
|
3
|
+
readonly cwd: string;
|
|
4
|
+
readonly timeoutMilliseconds: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ProcessOutcome {
|
|
7
|
+
readonly exitCode: number | null;
|
|
8
|
+
readonly stdout: string;
|
|
9
|
+
readonly stderr: string;
|
|
10
|
+
readonly timedOut: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ProcessBroker {
|
|
13
|
+
spawn(request: SpawnRequest, signal?: AbortSignal): Promise<ProcessOutcome>;
|
|
14
|
+
killTree(processId: number): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ProcessBroker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessBroker.d.ts","sourceRoot":"","sources":["../../../src/brokers/processes/ProcessBroker.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;CACtC;AAED,MAAM,WAAW,cAAc;IAE7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAI5E,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessBroker.js","sourceRoot":"","sources":["../../../src/brokers/processes/ProcessBroker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RegistrySkill, RetrievedSkill } from "../../models/brokers/registries/RegistrySkill.js";
|
|
2
|
+
import type { SkillRegistryBroker } from "./SkillRegistryBroker.js";
|
|
3
|
+
export declare class PeerLlmSkillRegistryBroker implements SkillRegistryBroker {
|
|
4
|
+
private readonly registryUrl;
|
|
5
|
+
private readonly apiKey;
|
|
6
|
+
private readonly userAgent;
|
|
7
|
+
private readonly fetchResource;
|
|
8
|
+
constructor(registryUrl: string, apiKey: string, userAgent?: string, fetchResource?: typeof fetch);
|
|
9
|
+
getSkills(query: string): Promise<readonly RegistrySkill[]>;
|
|
10
|
+
getSkill(id: string): Promise<RetrievedSkill>;
|
|
11
|
+
private send;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=PeerLlmSkillRegistryBroker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerLlmSkillRegistryBroker.d.ts","sourceRoot":"","sources":["../../../src/brokers/registries/PeerLlmSkillRegistryBroker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAa,MAAM,kDAAkD,CAAC;AACjH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAWpE,qBAAa,0BAA2B,YAAW,mBAAmB;IACpE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;gBAG3C,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,SAAS,SAAyC,EAClD,aAAa,GAAE,OAAO,KAAsD;IAUjE,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,aAAa,EAAE,CAAC;IAS3D,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;YAO5C,IAAI;CAcnB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { HttpResponseException } from "@hassanhabib/standard-agents";
|
|
2
|
+
import { CLIENT_VERSION } from "../../shared/client-version.js";
|
|
3
|
+
// The PeerLLM skills registry at `skills.peerllm.com` (PLAN.md 2.8).
|
|
4
|
+
//
|
|
5
|
+
// The same API key the brain takes. One account, one key, three services that answer to it: the
|
|
6
|
+
// orchestrator's `/v1` for thinking, its `/auth` and `/api` for the account, and this for skills. A
|
|
7
|
+
// client that asked for a fourth secret would be asking the user to keep track of something the
|
|
8
|
+
// service does not need them to.
|
|
9
|
+
//
|
|
10
|
+
// A parse and nothing else. Which skills are worth having, what a version means and where a skill
|
|
11
|
+
// goes on disk are all decided above this line.
|
|
12
|
+
export class PeerLlmSkillRegistryBroker {
|
|
13
|
+
registryUrl;
|
|
14
|
+
apiKey;
|
|
15
|
+
userAgent;
|
|
16
|
+
fetchResource;
|
|
17
|
+
constructor(registryUrl, apiKey, userAgent = `peerllm-client-cli/${CLIENT_VERSION}`, fetchResource = (input, init) => globalThis.fetch(input, init)) {
|
|
18
|
+
this.registryUrl = registryUrl.endsWith("/") ? registryUrl : `${registryUrl}/`;
|
|
19
|
+
this.apiKey = apiKey;
|
|
20
|
+
this.userAgent = userAgent;
|
|
21
|
+
this.fetchResource = fetchResource;
|
|
22
|
+
}
|
|
23
|
+
// What the registry will show this key. Public skills, plus the account's own private ones,
|
|
24
|
+
// which is the registry's rule rather than this client's.
|
|
25
|
+
async getSkills(query) {
|
|
26
|
+
const asked = query.trim().length > 0 ? `?q=${encodeURIComponent(query.trim())}` : "";
|
|
27
|
+
const answered = await this.send(`skills${asked}`);
|
|
28
|
+
return (JSON.parse(answered).skills ?? []).map(readSkill);
|
|
29
|
+
}
|
|
30
|
+
// One skill, whole. `@N` pins a version and a bare id takes the latest, which is the registry's
|
|
31
|
+
// own path syntax rather than a parameter this client invented.
|
|
32
|
+
async getSkill(id) {
|
|
33
|
+
const answered = await this.send(`skills/id/${encodeURIComponent(id)}`);
|
|
34
|
+
const retrieved = JSON.parse(answered);
|
|
35
|
+
return { ...readSkill(retrieved), files: (retrieved.files ?? []).map(readFile) };
|
|
36
|
+
}
|
|
37
|
+
async send(route) {
|
|
38
|
+
const response = await this.fetchResource(`${this.registryUrl}${route}`, {
|
|
39
|
+
method: "GET",
|
|
40
|
+
headers: { Authorization: `Bearer ${this.apiKey}`, "User-Agent": this.userAgent },
|
|
41
|
+
});
|
|
42
|
+
const body = await response.text();
|
|
43
|
+
if (!response.ok) {
|
|
44
|
+
throw new HttpResponseException(response.status, body);
|
|
45
|
+
}
|
|
46
|
+
return body;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// The registry's names on the left, this client's on the right. `skill_id` is the stable one and
|
|
50
|
+
// the only thing worth keeping: a name is unique only within an owner and a rename still reroutes.
|
|
51
|
+
function readSkill(listed) {
|
|
52
|
+
return {
|
|
53
|
+
id: listed.skill_id ?? "",
|
|
54
|
+
owner: listed.owner ?? "",
|
|
55
|
+
name: listed.name ?? "",
|
|
56
|
+
version: listed.version ?? 0,
|
|
57
|
+
description: listed.description ?? "",
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function readFile(file) {
|
|
61
|
+
return { path: file.path ?? "", content: file.content ?? "" };
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=PeerLlmSkillRegistryBroker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeerLlmSkillRegistryBroker.js","sourceRoot":"","sources":["../../../src/brokers/registries/PeerLlmSkillRegistryBroker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAIhE,qEAAqE;AACrE,EAAE;AACF,gGAAgG;AAChG,oGAAoG;AACpG,gGAAgG;AAChG,iCAAiC;AACjC,EAAE;AACF,kGAAkG;AAClG,gDAAgD;AAChD,MAAM,OAAO,0BAA0B;IACpB,WAAW,CAAS;IACpB,MAAM,CAAS;IACf,SAAS,CAAS;IAClB,aAAa,CAAe;IAE7C,YACE,WAAmB,EACnB,MAAc,EACd,SAAS,GAAG,sBAAsB,cAAc,EAAE,EAClD,gBAA8B,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC;QAE5E,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,GAAG,CAAC;QAC/E,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,4FAA4F;IAC5F,0DAA0D;IACnD,KAAK,CAAC,SAAS,CAAC,KAAa;QAClC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,kBAAkB,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACtF,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EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE;QACzB,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE;QACzB,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,EAAE;QACvB,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,CAAC;QAC5B,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,EAAE;KACtC,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,IAAe;IAC/B,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RegistrySkill, RetrievedSkill } from "../../models/brokers/registries/RegistrySkill.js";
|
|
2
|
+
export interface SkillRegistryBroker {
|
|
3
|
+
getSkills(query: string): Promise<readonly RegistrySkill[]>;
|
|
4
|
+
getSkill(id: string): Promise<RetrievedSkill>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=SkillRegistryBroker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkillRegistryBroker.d.ts","sourceRoot":"","sources":["../../../src/brokers/registries/SkillRegistryBroker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAMtG,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,aAAa,EAAE,CAAC,CAAC;IAC5D,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkillRegistryBroker.js","sourceRoot":"","sources":["../../../src/brokers/registries/SkillRegistryBroker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SecretBroker } from "./SecretBroker.js";
|
|
2
|
+
export declare class FileSecretBroker implements SecretBroker {
|
|
3
|
+
private readonly storePath;
|
|
4
|
+
private readonly lockPath;
|
|
5
|
+
constructor(storePath: string, lockPath: string);
|
|
6
|
+
selectStore(): Promise<string>;
|
|
7
|
+
upsertStore(document: string): Promise<void>;
|
|
8
|
+
insertLock(holder: string): Promise<void>;
|
|
9
|
+
selectLock(): Promise<string>;
|
|
10
|
+
deleteLock(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=FileSecretBroker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileSecretBroker.d.ts","sourceRoot":"","sources":["../../../src/brokers/secrets/FileSecretBroker.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWtD,qBAAa,gBAAiB,YAAW,YAAY;IACnD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEf,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAKzC,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAM9B,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAO5C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAUzC,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAI7B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAGzC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { open, readFile, rename, unlink, writeFile } from "node:fs/promises";
|
|
2
|
+
// `client-secrets.json` at owner-only, in the shipped host's blob shape (SPEC.md 14.4), and the
|
|
3
|
+
// `.lock.secrets` sibling beside it.
|
|
4
|
+
//
|
|
5
|
+
// The same file, the same broker and the same format for the terminal and the desktop, so a key
|
|
6
|
+
// written by either is read by the other. No keyring, no native module and no second format: the
|
|
7
|
+
// day one app cannot read what the other wrote is the day the user signs in twice and stops
|
|
8
|
+
// believing either of them.
|
|
9
|
+
const OWNER_ONLY = 0o600;
|
|
10
|
+
export class FileSecretBroker {
|
|
11
|
+
storePath;
|
|
12
|
+
lockPath;
|
|
13
|
+
constructor(storePath, lockPath) {
|
|
14
|
+
this.storePath = storePath;
|
|
15
|
+
this.lockPath = lockPath;
|
|
16
|
+
}
|
|
17
|
+
async selectStore() {
|
|
18
|
+
return await readFile(this.storePath, "utf8");
|
|
19
|
+
}
|
|
20
|
+
// The mode is set on the way in rather than after, so the window in which a key is
|
|
21
|
+
// world-readable never opens.
|
|
22
|
+
async upsertStore(document) {
|
|
23
|
+
const temporaryPath = `${this.storePath}.${process.pid}.tmp`;
|
|
24
|
+
await writeFile(temporaryPath, document, { encoding: "utf8", mode: OWNER_ONLY });
|
|
25
|
+
await rename(temporaryPath, this.storePath);
|
|
26
|
+
}
|
|
27
|
+
async insertLock(holder) {
|
|
28
|
+
const handle = await open(this.lockPath, "wx", OWNER_ONLY);
|
|
29
|
+
try {
|
|
30
|
+
await handle.writeFile(holder, "utf8");
|
|
31
|
+
}
|
|
32
|
+
finally {
|
|
33
|
+
await handle.close();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
async selectLock() {
|
|
37
|
+
return await readFile(this.lockPath, "utf8");
|
|
38
|
+
}
|
|
39
|
+
async deleteLock() {
|
|
40
|
+
await unlink(this.lockPath);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=FileSecretBroker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileSecretBroker.js","sourceRoot":"","sources":["../../../src/brokers/secrets/FileSecretBroker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBA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,CAAC,UAAU;QACrB,MAAM,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9B,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface SecretBroker {
|
|
2
|
+
selectStore(): Promise<string>;
|
|
3
|
+
upsertStore(document: string): Promise<void>;
|
|
4
|
+
insertLock(holder: string): Promise<void>;
|
|
5
|
+
selectLock(): Promise<string>;
|
|
6
|
+
deleteLock(): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=SecretBroker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecretBroker.d.ts","sourceRoot":"","sources":["../../../src/brokers/secrets/SecretBroker.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,YAAY;IAC3B,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAG/B,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAG7C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1C,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE9B,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecretBroker.js","sourceRoot":"","sources":["../../../src/brokers/secrets/SecretBroker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Skill, SkillBroker } from "@hassanhabib/standard-agents";
|
|
2
|
+
export declare class CompositeSkillBroker implements SkillBroker {
|
|
3
|
+
private readonly brokers;
|
|
4
|
+
constructor(...brokers: readonly SkillBroker[]);
|
|
5
|
+
selectSkills(): Promise<readonly Skill[]>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=CompositeSkillBroker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeSkillBroker.d.ts","sourceRoot":"","sources":["../../../src/brokers/skills/CompositeSkillBroker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAUvE,qBAAa,oBAAqB,YAAW,WAAW;IACtD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;gBAE9B,GAAG,OAAO,EAAE,SAAS,WAAW,EAAE;IAIxC,YAAY,IAAI,OAAO,CAAC,SAAS,KAAK,EAAE,CAAC;CASvD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Two folders, one catalogue (PLAN.md 2.8).
|
|
2
|
+
//
|
|
3
|
+
// The built-in skill is what this client is; an installed one is what a user added. They live in
|
|
4
|
+
// different folders because one ships in the package and the other is written at runtime, and a
|
|
5
|
+
// composition that could only read one of them would make installing a skill pointless.
|
|
6
|
+
//
|
|
7
|
+
// Order is kept: the built-in one comes first, because it is the one that says how to use a tool at
|
|
8
|
+
// all, and an installed skill that contradicts it should read as the later voice.
|
|
9
|
+
export class CompositeSkillBroker {
|
|
10
|
+
brokers;
|
|
11
|
+
constructor(...brokers) {
|
|
12
|
+
this.brokers = brokers;
|
|
13
|
+
}
|
|
14
|
+
async selectSkills() {
|
|
15
|
+
const skills = [];
|
|
16
|
+
for (const broker of this.brokers) {
|
|
17
|
+
skills.push(...(await broker.selectSkills()));
|
|
18
|
+
}
|
|
19
|
+
return skills;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=CompositeSkillBroker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeSkillBroker.js","sourceRoot":"","sources":["../../../src/brokers/skills/CompositeSkillBroker.ts"],"names":[],"mappings":"AAEA,4CAA4C;AAC5C,EAAE;AACF,iGAAiG;AACjG,gGAAgG;AAChG,wFAAwF;AACxF,EAAE;AACF,oGAAoG;AACpG,kFAAkF;AAClF,MAAM,OAAO,oBAAoB;IACd,OAAO,CAAyB;IAEjD,YAAmB,GAAG,OAA+B;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAEM,KAAK,CAAC,YAAY;QACvB,MAAM,MAAM,GAAY,EAAE,CAAC;QAE3B,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAClC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;QAChD,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Tool } from "@hassanhabib/standard-agents";
|
|
2
|
+
import type { WorkspaceFileProcessingService } from "../../services/processings/workspaceFiles/WorkspaceFileProcessingService.js";
|
|
3
|
+
export declare function createCreateNewFileTool(workspaceFileProcessingService: WorkspaceFileProcessingService): Tool;
|
|
4
|
+
//# sourceMappingURL=CreateNewFileTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateNewFileTool.d.ts","sourceRoot":"","sources":["../../../src/exposers/tools/CreateNewFileTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAGzD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6EAA6E,CAAC;AAGlI,wBAAgB,uBAAuB,CAAC,8BAA8B,EAAE,8BAA8B,GAAG,IAAI,CAoB5G"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { answerOrRaise, readArgumentsOrRefuse, scopeOrNothing } from "./Refusals.js";
|
|
2
|
+
// create_new_file (SPEC.md 6.3): a file the workspace does not have yet.
|
|
3
|
+
export function createCreateNewFileTool(workspaceFileProcessingService) {
|
|
4
|
+
return {
|
|
5
|
+
name: "create_new_file",
|
|
6
|
+
description: CREATE_DESCRIPTION,
|
|
7
|
+
parameters: CREATE_PARAMETERS,
|
|
8
|
+
risk: "Sensitive",
|
|
9
|
+
narrationStarting: "Creating a file",
|
|
10
|
+
scopeOf: (input) => scopeOrNothing(input)?.path ?? "",
|
|
11
|
+
execute: async (input) => {
|
|
12
|
+
try {
|
|
13
|
+
const asked = readArguments(input);
|
|
14
|
+
await workspaceFileProcessingService.createFile(asked.path, asked.content);
|
|
15
|
+
return `created ${asked.path}`;
|
|
16
|
+
}
|
|
17
|
+
catch (error) {
|
|
18
|
+
// A refusal is an observation the model can act on, not a fault that ends the run.
|
|
19
|
+
return answerOrRaise(error);
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function readArguments(input) {
|
|
25
|
+
const asked = readArgumentsOrRefuse(input, "create_new_file");
|
|
26
|
+
return { path: asked.path ?? "", content: asked.content ?? "" };
|
|
27
|
+
}
|
|
28
|
+
const CREATE_DESCRIPTION = "Create a file that does not exist yet, with the content you give. A path that is already there " +
|
|
29
|
+
"is refused rather than overwritten, so use single_find_and_replace to change an existing file. " +
|
|
30
|
+
"Write the content out in full: a placeholder such as '...' or 'existing code' is refused.";
|
|
31
|
+
const CREATE_PARAMETERS = JSON.stringify({
|
|
32
|
+
type: "object",
|
|
33
|
+
properties: {
|
|
34
|
+
path: { type: "string", description: "The file to create." },
|
|
35
|
+
content: { type: "string", description: "Everything the file should hold." },
|
|
36
|
+
},
|
|
37
|
+
required: ["path", "content"],
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=CreateNewFileTool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateNewFileTool.js","sourceRoot":"","sources":["../../../src/exposers/tools/CreateNewFileTool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGrF,yEAAyE;AACzE,MAAM,UAAU,uBAAuB,CAAC,8BAA8D;IACpG,OAAO;QACL,IAAI,E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CAAC;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Tool } from "@hassanhabib/standard-agents";
|
|
2
|
+
import type { WorkspaceFileProcessingService } from "../../services/processings/workspaceFiles/WorkspaceFileProcessingService.js";
|
|
3
|
+
export declare function createDeletePathTool(workspaceFileProcessingService: WorkspaceFileProcessingService): Tool;
|
|
4
|
+
//# sourceMappingURL=DeletePathTool.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeletePathTool.d.ts","sourceRoot":"","sources":["../../../src/exposers/tools/DeletePathTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAIzD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,6EAA6E,CAAC;AAOlI,wBAAgB,oBAAoB,CAAC,8BAA8B,EAAE,8BAA8B,GAAG,IAAI,CAqBzG"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { answerOrRaise, readArgumentsOrRefuse, scopeOrNothing } from "./Refusals.js";
|
|
2
|
+
// delete_path (SPEC.md 6.3): one file taken out of the workspace.
|
|
3
|
+
//
|
|
4
|
+
// The narrowest of the four writing tools, on purpose. A directory is refused by the foundation, a
|
|
5
|
+
// file this run has not read is refused by the processing, and what was there is kept either way,
|
|
6
|
+
// because this is the one act where the thing itself is what goes.
|
|
7
|
+
export function createDeletePathTool(workspaceFileProcessingService) {
|
|
8
|
+
return {
|
|
9
|
+
name: "delete_path",
|
|
10
|
+
description: DELETE_DESCRIPTION,
|
|
11
|
+
parameters: DELETE_PARAMETERS,
|
|
12
|
+
risk: "Sensitive",
|
|
13
|
+
narrationStarting: "Deleting a file",
|
|
14
|
+
scopeOf: (input) => scopeOrNothing(input)?.path ?? "",
|
|
15
|
+
execute: async (input) => {
|
|
16
|
+
try {
|
|
17
|
+
const asked = readArguments(input);
|
|
18
|
+
await workspaceFileProcessingService.deletePath(asked.path);
|
|
19
|
+
return `deleted ${asked.path}`;
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
// A refusal is an observation the model can act on, not a fault. It asked to delete
|
|
23
|
+
// something it had not read; the next turn can read it.
|
|
24
|
+
return answerOrRaise(error);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function readArguments(input) {
|
|
30
|
+
const asked = readArgumentsOrRefuse(input, "delete_path");
|
|
31
|
+
return { path: asked.path ?? "" };
|
|
32
|
+
}
|
|
33
|
+
const DELETE_DESCRIPTION = "Delete one file that already exists. Read it first: a file this run has not read is a file you " +
|
|
34
|
+
"are guessing about, and a delete cannot be taken back by reading again. Directories are refused, " +
|
|
35
|
+
"one file at a time. What the file was is kept, so the whole run can be put back afterwards.";
|
|
36
|
+
const DELETE_PARAMETERS = JSON.stringify({
|
|
37
|
+
type: "object",
|
|
38
|
+
properties: {
|
|
39
|
+
path: { type: "string", description: "The file to delete. It must already exist and this run must have read it." },
|
|
40
|
+
},
|
|
41
|
+
required: ["path"],
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=DeletePathTool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeletePathTool.js","sourceRoot":"","sources":["../../../src/exposers/tools/DeletePathTool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIrF,kEAAkE;AAClE,EAAE;AACF,mGAAmG;AACnG,kGAAkG;AAClG,mEAAmE;AACnE,MAAM,UAAU,oBAAoB,CAAC,8BAA8D;IACjG,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,kBAAkB;QAC/B,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,WAAW;QACjB,iBAAiB,EAAE,iBAAiB;QACpC,OAAO,EAAE,CAAC,KAAa,EAAU,EAAE,CAAC,cAAc,CAA2B,KAAK,CAAC,EAAE,IAAI,IAAI,EAAE;QAC/F,OAAO,EAAE,KAAK,EAAE,KAAa,EAAmB,EAAE;YAChD,IAAI,CAAC;gBACH,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;gBACnC,MAAM,8BAA8B,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAE5D,OAAO,WAAW,KAAK,CAAC,IAAI,EAAE,CAAC;YACjC,CAAC;YAAC,OAAO,KAAc,EAAE,CAAC;gBACxB,oFAAoF;gBACpF,wDAAwD;gBACxD,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC;AAMD,SAAS,aAAa,CAAC,KAAa;IAClC,MAAM,KAAK,GAAG,qBAAqB,CAA2B,KAAK,EAAE,aAAa,CAAC,CAAC;IAEpF,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;AACpC,CAAC;AAED,MAAM,kBAAkB,GACtB,iGAAiG;IACjG,mGAAmG;IACnG,6FAA6F,CAAC;AAEhG,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC;IACvC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2EAA2E,EAAE;KACnH;IACD,QAAQ,EAAE,CAAC,MAAM,CAAC;CACnB,CAAC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Tool } from "@hassanhabib/standard-agents";
|
|
2
|
+
import type { ProcessProcessingService } from "../../services/processings/processes/ProcessProcessingService.js";
|
|
3
|
+
export declare function createGitTools(processProcessingService: ProcessProcessingService, workspaceRoot: string): readonly Tool[];
|
|
4
|
+
export declare const GIT_TOOL_NAMES: string[];
|
|
5
|
+
//# sourceMappingURL=GitTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GitTools.d.ts","sourceRoot":"","sources":["../../../src/exposers/tools/GitTools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kEAAkE,CAAC;AAmCjH,wBAAgB,cAAc,CAC5B,wBAAwB,EAAE,wBAAwB,EAClD,aAAa,EAAE,MAAM,GACpB,SAAS,IAAI,EAAE,CAmBjB;AAED,eAAO,MAAM,cAAc,UAAmC,CAAC"}
|