@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,493 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { AgentRun } from "@hassanhabib/standard-agents";
|
|
3
|
+
import { WorkspaceFileValidationException } from "../../../models/foundations/workspaceFiles/exceptions/WorkspaceFileValidationException.js";
|
|
4
|
+
import { matchesGlob } from "./Globs.js";
|
|
5
|
+
import { isIgnored, readIgnoreRules } from "./IgnoreRules.js";
|
|
6
|
+
import { healthy, innermostMessage, unwell } from "../../../models/processings/health/HealthCheck.js";
|
|
7
|
+
import { createTryCatch } from "./WorkspaceFileProcessingService.Exceptions.js";
|
|
8
|
+
import { validateAnchor, validateNewContent, validateAnchorFound, validateAnchorIsAlone, validateRange, validateReplacement, validateWasRead, validateWholeWasRead, } from "./WorkspaceFileProcessingService.Validations.js";
|
|
9
|
+
// Higher order over the workspace's files (SPEC.md 6.1): the foundation says whether a file may
|
|
10
|
+
// be read at all, and this says how much of it a turn is handed and remembers what the run has
|
|
11
|
+
// seen.
|
|
12
|
+
//
|
|
13
|
+
// The cap is here rather than in the tool because every tool that returns file text needs the
|
|
14
|
+
// same one, and a cap a tool applies is a cap the next tool forgets.
|
|
15
|
+
export const MAXIMUM_PAGE_BYTES = 16_384;
|
|
16
|
+
// Git's file first and the workspace's PeerLLM file second, because the last rule that matches
|
|
17
|
+
// wins and the second file is the one a workspace writes for this agent alone.
|
|
18
|
+
const IGNORE_FILES = [".gitignore", ".peerllmignore"];
|
|
19
|
+
// What a search hands back at most. A bound the processing owns rather than the tool, because
|
|
20
|
+
// every tool that searches needs the same one and a bound a tool applies is a bound the next tool
|
|
21
|
+
// forgets.
|
|
22
|
+
export const MAXIMUM_GLOB_MATCHES = 200;
|
|
23
|
+
// What a search of the files themselves hands back at most. Smaller than the glob's bound because
|
|
24
|
+
// every match carries lines of text with it, and a turn spent reading two hundred of them has
|
|
25
|
+
// nothing left to think with.
|
|
26
|
+
export const MAXIMUM_GREP_MATCHES = 100;
|
|
27
|
+
export class WorkspaceFileProcessingService {
|
|
28
|
+
workspaceFileService;
|
|
29
|
+
loggingBroker;
|
|
30
|
+
workspaceRoot;
|
|
31
|
+
tryCatch;
|
|
32
|
+
// What each run has read, by run id. `applyWrite` reads this to refuse a whole-file write of
|
|
33
|
+
// something the run never looked at, or only looked at part of.
|
|
34
|
+
readSet = new Map();
|
|
35
|
+
// What this process has snapshotted, by run. The manifest on disk is the record that outlives the
|
|
36
|
+
// process; this is what keeps it from being re-read on every edit.
|
|
37
|
+
snapshots = new Map();
|
|
38
|
+
// What each run left behind, by path: the hash of what it wrote, or null for a file it removed.
|
|
39
|
+
// The undo reads it to tell whether anybody has touched the file since.
|
|
40
|
+
wrote = new Map();
|
|
41
|
+
// What each run changed, by run id, in the order it happened. Kept beside the reads and the
|
|
42
|
+
// snapshots because it is the same kind of thing: something true of one run that outlives no run.
|
|
43
|
+
changeSet = new Map();
|
|
44
|
+
// Told as it happens, for a door that wants to say what a turn did the moment it is done. The
|
|
45
|
+
// record is kept either way; this is only how somebody watching hears about it.
|
|
46
|
+
onChanged;
|
|
47
|
+
constructor(workspaceFileService, loggingBroker, workspaceRoot, onChanged) {
|
|
48
|
+
this.workspaceFileService = workspaceFileService;
|
|
49
|
+
this.loggingBroker = loggingBroker;
|
|
50
|
+
this.workspaceRoot = workspaceRoot;
|
|
51
|
+
this.onChanged = onChanged;
|
|
52
|
+
this.tryCatch = createTryCatch(this.loggingBroker);
|
|
53
|
+
}
|
|
54
|
+
// A window of a file, one-based and inclusive. offset 1 with no limit means the whole of it, up
|
|
55
|
+
// to the cap; a limit means that many lines.
|
|
56
|
+
retrieveFile(path, offset = 1, limit = 0) {
|
|
57
|
+
return this.tryCatch(async () => {
|
|
58
|
+
validateRange(offset, limit);
|
|
59
|
+
const content = await this.workspaceFileService.retrieveFile(path);
|
|
60
|
+
// Split on the newline alone, so a carriage return stays part of the line it came with. A
|
|
61
|
+
// file read and written back must be the file that was there, and normalising line endings
|
|
62
|
+
// on the way in is how an agent silently rewrites every line of a file it only meant to
|
|
63
|
+
// look at.
|
|
64
|
+
const lines = content.split("\n");
|
|
65
|
+
const totalLines = lines.length;
|
|
66
|
+
const firstLine = Math.min(offset, totalLines);
|
|
67
|
+
const requestedLast = limit > 0 ? Math.min(firstLine + limit - 1, totalLines) : totalLines;
|
|
68
|
+
const window = lines.slice(firstLine - 1, requestedLast);
|
|
69
|
+
const capped = capToBytes(window);
|
|
70
|
+
const lastLine = firstLine + capped.length - 1;
|
|
71
|
+
const text = capped.join("\n");
|
|
72
|
+
const truncated = lastLine < totalLines || firstLine > 1;
|
|
73
|
+
const alreadyRead = this.hasRead(path, firstLine, lastLine);
|
|
74
|
+
this.rememberRead(path, firstLine, lastLine);
|
|
75
|
+
if (truncated) {
|
|
76
|
+
await this.loggingBroker.logProcess("Direction", `read_file -> ${path} lines ${firstLine} to ${lastLine} of ${totalLines}`, true);
|
|
77
|
+
}
|
|
78
|
+
return { path, text, firstLine, lastLine, totalLines, truncated, alreadyRead };
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
// What a directory holds, as the workspace is willing to show it: the foundation lists it and
|
|
82
|
+
// the workspace's own ignore files narrow that, so a first look at a repository is its source
|
|
83
|
+
// and not a hundred thousand files somebody else's tool put there.
|
|
84
|
+
//
|
|
85
|
+
// The repository store is the foundation's refusal and is not repeated here, which is why no
|
|
86
|
+
// rule in an ignore file can un-hide it.
|
|
87
|
+
listDirectory(path) {
|
|
88
|
+
return this.tryCatch(async () => {
|
|
89
|
+
return await this.listing(path, await this.ignoreRules());
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
// Newest first and bounded, because a question about a repository is nearly always a question
|
|
93
|
+
// about what somebody changed recently, and a thousand paths answer nothing that the first two
|
|
94
|
+
// hundred did not.
|
|
95
|
+
glob(root, pattern) {
|
|
96
|
+
return this.tryCatch(async () => {
|
|
97
|
+
const found = [];
|
|
98
|
+
await this.collect(root, await this.ignoreRules(), found);
|
|
99
|
+
return found
|
|
100
|
+
.filter((entry) => matchesGlob(entry.relativePath, pattern))
|
|
101
|
+
.sort((left, right) => right.modifiedOn.getTime() - left.modifiedOn.getTime())
|
|
102
|
+
.slice(0, MAXIMUM_GLOB_MATCHES)
|
|
103
|
+
.map((entry) => entry.relativePath);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// Every line under a root that the expression matches, with the lines around it, bounded.
|
|
107
|
+
//
|
|
108
|
+
// The bound is counted over the whole search rather than per file, because a hundred matches in
|
|
109
|
+
// one file and a hundred across a hundred files cost a turn the same.
|
|
110
|
+
grep(root, expression, contextLines = 0) {
|
|
111
|
+
return this.tryCatch(async () => {
|
|
112
|
+
const pattern = new RegExp(expression);
|
|
113
|
+
const found = [];
|
|
114
|
+
await this.collect(root, await this.ignoreRules(), found);
|
|
115
|
+
const matches = [];
|
|
116
|
+
for (const entry of found) {
|
|
117
|
+
if (matches.length >= MAXIMUM_GREP_MATCHES) {
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
matches.push(...(await this.matchesIn(entry, pattern, contextLines)));
|
|
121
|
+
}
|
|
122
|
+
return matches.slice(0, MAXIMUM_GREP_MATCHES);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
async matchesIn(entry, pattern, contextLines) {
|
|
126
|
+
const content = await this.readOrSkip(entry.path);
|
|
127
|
+
if (content === null) {
|
|
128
|
+
return [];
|
|
129
|
+
}
|
|
130
|
+
const lines = content.split("\n");
|
|
131
|
+
const matches = [];
|
|
132
|
+
for (const [index, line] of lines.entries()) {
|
|
133
|
+
if (!pattern.test(line)) {
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
matches.push({
|
|
137
|
+
relativePath: entry.relativePath,
|
|
138
|
+
lineNumber: index + 1,
|
|
139
|
+
line,
|
|
140
|
+
before: lines.slice(Math.max(index - contextLines, 0), index),
|
|
141
|
+
after: lines.slice(index + 1, index + 1 + contextLines),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
return matches;
|
|
145
|
+
}
|
|
146
|
+
// A file the workspace will not show is not a failed search, it is a file the search does not
|
|
147
|
+
// read. Refusing a whole grep because one file in the tree is a private key or a compiled
|
|
148
|
+
// artefact would make the tool useless in any repository anybody actually has.
|
|
149
|
+
async readOrSkip(path) {
|
|
150
|
+
try {
|
|
151
|
+
return await this.workspaceFileService.retrieveFile(path);
|
|
152
|
+
}
|
|
153
|
+
catch (error) {
|
|
154
|
+
if (error instanceof WorkspaceFileValidationException) {
|
|
155
|
+
return null;
|
|
156
|
+
}
|
|
157
|
+
throw error;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
// One edit, by a verbatim anchor that occurs exactly once (SPEC.md 6.3).
|
|
161
|
+
//
|
|
162
|
+
// There is no count argument and there never will be. A model that says "replace both" is a model
|
|
163
|
+
// guessing about a file it read some turns ago, and the edit that destroys work is always the one
|
|
164
|
+
// that matched in a second place nobody looked at. Exactly one match, or nothing happens.
|
|
165
|
+
//
|
|
166
|
+
// The file is never split into lines and rejoined. It is one string with one region replaced, so
|
|
167
|
+
// whatever line endings it had it still has, and a file read and written back is the file that
|
|
168
|
+
// was there.
|
|
169
|
+
applyEdit(path, anchor, replacement) {
|
|
170
|
+
return this.tryCatch(async () => {
|
|
171
|
+
validateAnchor(anchor, path);
|
|
172
|
+
validateReplacement(replacement, path);
|
|
173
|
+
const content = await this.workspaceFileService.retrieveFile(path);
|
|
174
|
+
const first = content.indexOf(anchor);
|
|
175
|
+
validateAnchorFound(first, anchor, path);
|
|
176
|
+
validateAnchorIsAlone(content.indexOf(anchor, first + anchor.length), anchor, path);
|
|
177
|
+
// Kept before the write, not after: a snapshot taken afterwards is a snapshot of the edit.
|
|
178
|
+
await this.keepSnapshot(path, content);
|
|
179
|
+
const edited = `${content.slice(0, first)}${replacement}${content.slice(first + anchor.length)}`;
|
|
180
|
+
await this.workspaceFileService.modifyFile(path, edited);
|
|
181
|
+
await this.rememberWritten(path, edited);
|
|
182
|
+
this.forgetReads(path);
|
|
183
|
+
this.recordChange(path, "edited");
|
|
184
|
+
const line = content.slice(0, first).split("\n").length;
|
|
185
|
+
await this.loggingBroker.logProcess("Direction", `single_find_and_replace -> ${path} at line ${line}`, true);
|
|
186
|
+
return { path, line };
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
// A file the workspace does not have yet. The foundation refuses to overwrite and refuses a path
|
|
190
|
+
// shaped like a secret; what this adds is the same placeholder refusal an edit gets, because a
|
|
191
|
+
// file created full of "... existing code ..." is a file somebody has to write again.
|
|
192
|
+
createFile(path, content) {
|
|
193
|
+
return this.tryCatch(async () => {
|
|
194
|
+
validateNewContent(content, path);
|
|
195
|
+
await this.workspaceFileService.addFile(path, content);
|
|
196
|
+
this.recordChange(path, "created");
|
|
197
|
+
await this.loggingBroker.logProcess("Direction", `create_new_file -> ${path}`, true);
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
// A whole file, replaced (SPEC.md 6.3). `single_find_and_replace` changes a region a model
|
|
201
|
+
// can name; this replaces everything, which is the right shape for a file being rewritten and
|
|
202
|
+
// the wrong shape for a file being touched.
|
|
203
|
+
//
|
|
204
|
+
// The guards are what make the difference safe. A whole-file write is the one edit that can
|
|
205
|
+
// destroy work the model never saw, so it is only allowed to a run that has seen all of it.
|
|
206
|
+
applyWrite(path, content) {
|
|
207
|
+
return this.tryCatch(async () => {
|
|
208
|
+
validateNewContent(content, path);
|
|
209
|
+
const ranges = this.readRangesOf(path);
|
|
210
|
+
validateWasRead(ranges.length > 0, path);
|
|
211
|
+
const existing = await this.workspaceFileService.retrieveFile(path);
|
|
212
|
+
const totalLines = existing.split("\n").length;
|
|
213
|
+
validateWholeWasRead(ranges.some((range) => range.firstLine <= 1 && range.lastLine >= totalLines), path, totalLines);
|
|
214
|
+
// Kept before the write, not after: a snapshot taken afterwards is a snapshot of the write.
|
|
215
|
+
await this.keepSnapshot(path, existing);
|
|
216
|
+
await this.workspaceFileService.modifyFile(path, content);
|
|
217
|
+
await this.rememberWritten(path, content);
|
|
218
|
+
this.forgetReads(path);
|
|
219
|
+
this.recordChange(path, "rewritten");
|
|
220
|
+
await this.loggingBroker.logProcess("Direction", `write_file -> ${path}`, true);
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
// A file taken out of the workspace (SPEC.md 6.3).
|
|
224
|
+
//
|
|
225
|
+
// Kept before it goes, exactly as an edit is, because a delete is the change somebody most wants
|
|
226
|
+
// back and the only one where the file itself is the thing that is gone.
|
|
227
|
+
deletePath(path) {
|
|
228
|
+
return this.tryCatch(async () => {
|
|
229
|
+
// Deleting a file this run never looked at is a guess about what is in it. The same rule as a
|
|
230
|
+
// whole-file write, for the same reason, and here the guess cannot be taken back by reading
|
|
231
|
+
// again.
|
|
232
|
+
validateWasRead(this.readRangesOf(path).length > 0, path);
|
|
233
|
+
await this.keepSnapshot(path, await this.workspaceFileService.retrieveFile(path));
|
|
234
|
+
await this.workspaceFileService.removePath(path);
|
|
235
|
+
await this.rememberWritten(path, null);
|
|
236
|
+
this.forgetReads(path);
|
|
237
|
+
this.recordChange(path, "deleted");
|
|
238
|
+
await this.loggingBroker.logProcess("Direction", `delete_path -> ${path}`, true);
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
// What the file was, under a name derived from the run and the path, so two runs editing the same
|
|
242
|
+
// file do not overwrite each other's undo.
|
|
243
|
+
//
|
|
244
|
+
// The manifest is rewritten after each edit rather than at the end of the run. A run that is
|
|
245
|
+
// killed halfway has still changed files, and an undo that only exists for runs that finished
|
|
246
|
+
// tidily is an undo for the case nobody needs it in.
|
|
247
|
+
async keepSnapshot(path, content) {
|
|
248
|
+
const runId = runIdOf();
|
|
249
|
+
const key = snapshotKeyOf(runId, path);
|
|
250
|
+
await this.workspaceFileService.addSnapshot(key, content);
|
|
251
|
+
const kept = this.snapshots.get(runId) ?? new Map();
|
|
252
|
+
kept.set(path, key);
|
|
253
|
+
this.snapshots.set(runId, kept);
|
|
254
|
+
await this.writeManifest(runId);
|
|
255
|
+
}
|
|
256
|
+
// What the run left behind, so an undo can tell afterwards whether anybody has touched the file
|
|
257
|
+
// since. null is a file the run removed: what it left there was nothing, and a file that is back
|
|
258
|
+
// is a file somebody put back themselves.
|
|
259
|
+
//
|
|
260
|
+
// Written after the change rather than before it, which is the opposite of the snapshot and for
|
|
261
|
+
// the same reason: the snapshot is what was there, and this is what is there now.
|
|
262
|
+
async rememberWritten(path, content) {
|
|
263
|
+
const runId = runIdOf();
|
|
264
|
+
const wrote = this.wrote.get(runId) ?? new Map();
|
|
265
|
+
wrote.set(path, content === null ? null : digestOf(content));
|
|
266
|
+
this.wrote.set(runId, wrote);
|
|
267
|
+
await this.writeManifest(runId);
|
|
268
|
+
}
|
|
269
|
+
// Three things per file: where the snapshot went, and what the run left there. An entry written
|
|
270
|
+
// before this existed has two, and an undo reading one of those cannot tell whether anything has
|
|
271
|
+
// changed since, so it puts the file back the way it always did.
|
|
272
|
+
async writeManifest(runId) {
|
|
273
|
+
const kept = this.snapshots.get(runId) ?? new Map();
|
|
274
|
+
const wrote = this.wrote.get(runId) ?? new Map();
|
|
275
|
+
// Two elements when the run has not written yet, three once it has. The shapes mean different
|
|
276
|
+
// things and must not collapse into one: a missing third element is "nobody knows what the run
|
|
277
|
+
// left", and a third element of null is "the run left nothing there", which is a delete. A run
|
|
278
|
+
// killed between the snapshot and the write leaves the first, and its undo still works.
|
|
279
|
+
const entries = [...kept].map(([path, key]) => wrote.has(path) ? [path, key, wrote.get(path) ?? null] : [path, key]);
|
|
280
|
+
await this.workspaceFileService.addSnapshot(manifestKeyOf(runId), JSON.stringify(entries));
|
|
281
|
+
}
|
|
282
|
+
// Every file this run changed, as it was before the run touched it, and every one that is not
|
|
283
|
+
// put back because somebody has changed it since.
|
|
284
|
+
//
|
|
285
|
+
// An undo that overwrote a file a person edited after the run would be taking their work away
|
|
286
|
+
// while telling them it was putting work back, which is the worst thing a button called "put it
|
|
287
|
+
// back" could possibly do.
|
|
288
|
+
//
|
|
289
|
+
// The manifest is read from disk rather than from memory, because the run being undone is
|
|
290
|
+
// usually not this process: somebody types the undo after the thing that went wrong, in a new
|
|
291
|
+
// terminal.
|
|
292
|
+
restoreRun(runId) {
|
|
293
|
+
return this.tryCatch(async () => {
|
|
294
|
+
const manifest = await this.readManifest(runId);
|
|
295
|
+
const putBack = [];
|
|
296
|
+
const leftAlone = [];
|
|
297
|
+
for (const entry of manifest) {
|
|
298
|
+
const [path, key] = entry;
|
|
299
|
+
if (await this.changedSince(entry)) {
|
|
300
|
+
leftAlone.push(path);
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
await this.putBack(path, await this.workspaceFileService.retrieveSnapshot(key));
|
|
304
|
+
this.forgetReads(path);
|
|
305
|
+
putBack.push(path);
|
|
306
|
+
}
|
|
307
|
+
await this.loggingBroker.logProcess("Direction", `restore -> ${putBack.length} files from run ${runId}, ${leftAlone.length} left alone`, true);
|
|
308
|
+
return { putBack, leftAlone };
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
// Whether somebody has touched this file since the run left it.
|
|
312
|
+
//
|
|
313
|
+
// An entry with no record of what the run left cannot answer the question, and answers no: that
|
|
314
|
+
// is every manifest written before this existed, plus a run killed between the snapshot and the
|
|
315
|
+
// write. Those put the file back the way they always did, which is the behaviour people already
|
|
316
|
+
// have rather than a new refusal they did not ask for.
|
|
317
|
+
async changedSince(entry) {
|
|
318
|
+
const [path, , left] = entry;
|
|
319
|
+
if (entry.length < 3) {
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
try {
|
|
323
|
+
return digestOf(await this.workspaceFileService.retrieveFile(path)) !== left;
|
|
324
|
+
}
|
|
325
|
+
catch {
|
|
326
|
+
// The file is not there. That matches a run that removed it, and differs from a run that
|
|
327
|
+
// wrote one: either way the comparison is the same question, answered without the bytes.
|
|
328
|
+
return left !== null;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
// Written back over the file, or written again when the file is gone. A run that deleted
|
|
332
|
+
// something has nothing left to modify, and an undo that could put back every change except the
|
|
333
|
+
// one that removed a file would be an undo for the case nobody needs it in.
|
|
334
|
+
async putBack(path, content) {
|
|
335
|
+
try {
|
|
336
|
+
await this.workspaceFileService.modifyFile(path, content);
|
|
337
|
+
}
|
|
338
|
+
catch (error) {
|
|
339
|
+
if (!(error instanceof WorkspaceFileValidationException)) {
|
|
340
|
+
throw error;
|
|
341
|
+
}
|
|
342
|
+
await this.workspaceFileService.addFile(path, content);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
async readManifest(runId) {
|
|
346
|
+
try {
|
|
347
|
+
const document = await this.workspaceFileService.retrieveSnapshot(manifestKeyOf(runId));
|
|
348
|
+
return JSON.parse(document);
|
|
349
|
+
}
|
|
350
|
+
catch (error) {
|
|
351
|
+
// A run with no manifest kept nothing, which is what a run that only read files looks like.
|
|
352
|
+
// Not being able to put back something that never happened is not a failure, and reporting it
|
|
353
|
+
// as one would make every undo of a read-only run look like a broken undo.
|
|
354
|
+
if (error instanceof WorkspaceFileValidationException) {
|
|
355
|
+
return [];
|
|
356
|
+
}
|
|
357
|
+
throw error;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
// Whether the directory this run was pointed at is one the agent can work in (PLAN.md 2.7).
|
|
361
|
+
verifyWorkspace() {
|
|
362
|
+
return this.tryCatch(async () => {
|
|
363
|
+
try {
|
|
364
|
+
const entries = await this.listDirectory(this.workspaceRoot);
|
|
365
|
+
// What the agent may see rather than what is there. A workspace whose every file is hidden by
|
|
366
|
+
// an ignore rule is a workspace a run will find empty, and saying so here is cheaper than
|
|
367
|
+
// finding out six turns in.
|
|
368
|
+
return healthy(CHECK_NAME, `${this.workspaceRoot}: ${entries.length} entr${entries.length === 1 ? "y" : "ies"} the agent may see`);
|
|
369
|
+
}
|
|
370
|
+
catch (error) {
|
|
371
|
+
return unwell(CHECK_NAME, `${this.workspaceRoot} could not be read: ${innermostMessage(error)}`);
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
// One directory, narrowed to what the workspace is willing to show. Both public routines read a
|
|
376
|
+
// listing the same way, so the rules cannot come to mean one thing to a listing and another to
|
|
377
|
+
// a search.
|
|
378
|
+
async listing(path, rules) {
|
|
379
|
+
const entries = await this.workspaceFileService.retrieveEntries(path);
|
|
380
|
+
return entries.filter((entry) => !isIgnored(entry.relativePath, entry.isDirectory, rules));
|
|
381
|
+
}
|
|
382
|
+
// A directory the rules hid is a directory the walk never opens, which is what keeps a search of
|
|
383
|
+
// a Node repository from reading a hundred thousand files nobody wrote.
|
|
384
|
+
async collect(path, rules, found) {
|
|
385
|
+
for (const entry of await this.listing(path, rules)) {
|
|
386
|
+
if (entry.isDirectory) {
|
|
387
|
+
await this.collect(entry.path, rules, found);
|
|
388
|
+
continue;
|
|
389
|
+
}
|
|
390
|
+
found.push(entry);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
// Both ignore files, in the order that decides a tie: the last rule that matches wins, so the
|
|
394
|
+
// workspace's PeerLLM file can show something git hides without editing anything git reads.
|
|
395
|
+
//
|
|
396
|
+
// They are read from a listing rather than by asking for a file that may not be there, because
|
|
397
|
+
// absence is the ordinary case here and an exception is not how the ordinary case is said.
|
|
398
|
+
async ignoreRules() {
|
|
399
|
+
const rootEntries = await this.workspaceFileService.retrieveEntries(this.workspaceRoot);
|
|
400
|
+
const present = new Set(rootEntries.filter((entry) => !entry.isDirectory).map((entry) => entry.name));
|
|
401
|
+
const rules = [];
|
|
402
|
+
for (const name of IGNORE_FILES) {
|
|
403
|
+
if (!present.has(name)) {
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
rules.push(...readIgnoreRules(await this.workspaceFileService.retrieveFile(`${this.workspaceRoot}/${name}`)));
|
|
407
|
+
}
|
|
408
|
+
return rules;
|
|
409
|
+
}
|
|
410
|
+
// What this run has read of this file, as the ranges it asked for. Empty when the run has not
|
|
411
|
+
// read it, and empty outside a run, because a read that belongs to no run belongs to nobody.
|
|
412
|
+
// What this run has changed so far, oldest first. A run that changed nothing answers with
|
|
413
|
+
// nothing, which is the answer that matters most: it is how anybody finds out that a turn which
|
|
414
|
+
// said it edited a file did not.
|
|
415
|
+
changesOf(runId) {
|
|
416
|
+
return this.changeSet.get(runId) ?? [];
|
|
417
|
+
}
|
|
418
|
+
// Recorded by the routine that made the change, at the moment it succeeded, so the only way onto
|
|
419
|
+
// this list is to have actually changed the file. A record assembled from what the model said it
|
|
420
|
+
// did would be the model's account of itself, which is the thing in question.
|
|
421
|
+
recordChange(path, change) {
|
|
422
|
+
const runId = runIdOf();
|
|
423
|
+
const changed = this.changeSet.get(runId) ?? [];
|
|
424
|
+
changed.push({ path, change });
|
|
425
|
+
this.changeSet.set(runId, changed);
|
|
426
|
+
this.onChanged?.({ path, change });
|
|
427
|
+
}
|
|
428
|
+
readRangesOf(path) {
|
|
429
|
+
const runId = AgentRun.current()?.id ?? "";
|
|
430
|
+
return this.readSet.get(runId)?.get(path) ?? [];
|
|
431
|
+
}
|
|
432
|
+
// Whether this run has been handed exactly this window before. Exactly, rather than overlapping:
|
|
433
|
+
// a model widening its window is doing something new, and only a repeat of the same request is
|
|
434
|
+
// the loop worth naming.
|
|
435
|
+
hasRead(path, firstLine, lastLine) {
|
|
436
|
+
// Inside one already delivered, not merely equal to it: a model given lines 1 to 15 and then
|
|
437
|
+
// asking for 5 to 10 is asking for text it is holding, and varying the numbers is how a loop
|
|
438
|
+
// walks around a reminder that only matched exactly. Asking for lines it has not seen is
|
|
439
|
+
// progress and answers in full.
|
|
440
|
+
return this.readRangesOf(path).some((range) => range.firstLine <= firstLine && range.lastLine >= lastLine);
|
|
441
|
+
}
|
|
442
|
+
// What an edit changed, this run has not read. Forgetting is what keeps the reminder honest: the
|
|
443
|
+
// file on disk is no longer the file the model was handed, and telling it otherwise would be
|
|
444
|
+
// worse than saying nothing.
|
|
445
|
+
forgetReads(path) {
|
|
446
|
+
this.readSet.get(AgentRun.current()?.id ?? "")?.delete(path);
|
|
447
|
+
}
|
|
448
|
+
rememberRead(path, firstLine, lastLine) {
|
|
449
|
+
const runId = AgentRun.current()?.id;
|
|
450
|
+
// Outside a run there is nobody to remember for, and filing it under a shared empty key makes
|
|
451
|
+
// one caller's reads look like another's.
|
|
452
|
+
if (runId === undefined) {
|
|
453
|
+
return;
|
|
454
|
+
}
|
|
455
|
+
const byPath = this.readSet.get(runId) ?? new Map();
|
|
456
|
+
const ranges = byPath.get(path) ?? [];
|
|
457
|
+
ranges.push({ firstLine, lastLine });
|
|
458
|
+
byPath.set(path, ranges);
|
|
459
|
+
this.readSet.set(runId, byPath);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
// Whole lines only. Half a line of code is worse than one line fewer, because the model cannot
|
|
463
|
+
// tell which half it is missing.
|
|
464
|
+
function capToBytes(lines) {
|
|
465
|
+
const kept = [];
|
|
466
|
+
let bytes = 0;
|
|
467
|
+
for (const line of lines) {
|
|
468
|
+
const cost = Buffer.byteLength(line, "utf8") + 1;
|
|
469
|
+
if (bytes + cost > MAXIMUM_PAGE_BYTES && kept.length > 0) {
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
kept.push(line);
|
|
473
|
+
bytes += cost;
|
|
474
|
+
}
|
|
475
|
+
return kept;
|
|
476
|
+
}
|
|
477
|
+
function snapshotKeyOf(runId, path) {
|
|
478
|
+
return `${digestOf(runId)}-${digestOf(path)}`;
|
|
479
|
+
}
|
|
480
|
+
function manifestKeyOf(runId) {
|
|
481
|
+
return `${digestOf(runId)}.manifest.json`;
|
|
482
|
+
}
|
|
483
|
+
function digestOf(value) {
|
|
484
|
+
return createHash("sha256").update(value).digest("hex").slice(0, 16);
|
|
485
|
+
}
|
|
486
|
+
// A run that has no identity is still a run somebody can undo, so it gets a name rather than an
|
|
487
|
+
// empty one.
|
|
488
|
+
function runIdOf() {
|
|
489
|
+
return AgentRun.current()?.id ?? "detached";
|
|
490
|
+
}
|
|
491
|
+
// What this check is called on the report. One word, so the four of them line up.
|
|
492
|
+
const CHECK_NAME = "workspace";
|
|
493
|
+
//# sourceMappingURL=WorkspaceFileProcessingService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceFileProcessingService.js","sourceRoot":"","sources":["../../../../src/services/processings/workspaceFiles/WorkspaceFileProcessingService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAsB,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,2FAA2F,CAAC;AAM7I,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAmB,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAoB,MAAM,mDAAmD,CAAC;AAExH,OAAO,EAAE,cAAc,EAAiB,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,oBAAoB,GACrB,MAAM,iDAAiD,CAAC;AAEzD,gGAAgG;AAChG,+FAA+F;AAC/F,QAAQ;AACR,EAAE;AACF,8FAA8F;AAC9F,qEAAqE;AACrE,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAEzC,+FAA+F;AAC/F,+EAA+E;AAC/E,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;AAEtD,8FAA8F;AAC9F,kGAAkG;AAClG,WAAW;AACX,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC,kGAAkG;AAClG,8FAA8F;AAC9F,8BAA8B;AAC9B,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAexC,MAAM,OAAO,8BAA8B;IACxB,oBAAoB,CAAuB;IAC3C,aAAa,CAAgB;IAC7B,aAAa,CAAS;IACtB,QAAQ,CAAW;IAEpC,6FAA6F;IAC7F,gEAAgE;IAC/C,OAAO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AQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC;AAC5C,CAAC;AAED,SAAS,QAAQ,CAAC,KAAa;IAC7B,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACvE,CAAC;AAED,gGAAgG;AAChG,aAAa;AACb,SAAS,OAAO;IACd,OAAO,QAAQ,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,UAAU,CAAC;AAC9C,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-version.d.ts","sourceRoot":"","sources":["../../src/shared/client-version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// The client core's own version, sent as the client identity on every wire this package owns:
|
|
2
|
+
// the account API, the brain, the skill registry and the MCP handshake. Kept in lockstep with
|
|
3
|
+
// package.json by the smoke test, which fails when they differ.
|
|
4
|
+
export const CLIENT_VERSION = "0.1.0-next.1";
|
|
5
|
+
//# sourceMappingURL=client-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-version.js","sourceRoot":"","sources":["../../src/shared/client-version.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,8FAA8F;AAC9F,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG,cAAc,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@peerllm/client-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "The PeerLLM client core: the coding composition, connections, sessions, the account, and the perimeter every PeerLLM client runs behind.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Hassan Habib",
|
|
7
|
+
"email": "hassan@bestbytes.ai",
|
|
8
|
+
"url": "https://peerllm.com"
|
|
9
|
+
},
|
|
10
|
+
"license": "UNLICENSED",
|
|
11
|
+
"private": false,
|
|
12
|
+
"homepage": "https://github.com/PeerLLM/PeerLLM.Experimental.Core.Clients",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/PeerLLM/PeerLLM.Experimental.Core.Clients.git"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/PeerLLM/PeerLLM.Experimental.Core.Clients/issues"
|
|
19
|
+
},
|
|
20
|
+
"type": "module",
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=20.0.0"
|
|
23
|
+
},
|
|
24
|
+
"main": "dist/index.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist/",
|
|
37
|
+
"skills/",
|
|
38
|
+
"README.md",
|
|
39
|
+
"CHANGELOG.md"
|
|
40
|
+
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsc",
|
|
43
|
+
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
44
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
45
|
+
"lint": "eslint .",
|
|
46
|
+
"test": "vitest run",
|
|
47
|
+
"prepack": "npm run clean && npm run build"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@hassanhabib/standard-agents": "^0.1.0",
|
|
51
|
+
"cross-spawn": "^7.0.6"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/cross-spawn": "^6.0.6",
|
|
55
|
+
"@types/node": "^20.14.0",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.5.0",
|
|
57
|
+
"@typescript-eslint/parser": "^8.5.0",
|
|
58
|
+
"eslint": "^9.10.0",
|
|
59
|
+
"typescript": "^5.6.0",
|
|
60
|
+
"vitest": "^4.1.6"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: coding-agent
|
|
3
|
+
description: The PeerLLM coding agent's standing instructions.
|
|
4
|
+
---
|
|
5
|
+
You are the PeerLLM coding agent. You work inside the user's current directory, one prompt at a
|
|
6
|
+
time, and you say what you are doing before you do it.
|
|
7
|
+
|
|
8
|
+
You have tools. Call them: they are offered to you as functions with schemas, and calling one is
|
|
9
|
+
how you read and change the workspace. Do not write out the name of a tool as text and do not
|
|
10
|
+
describe the call you would like to make, because nothing is listening for that.
|
|
11
|
+
|
|
12
|
+
Act on what you have. Read a file once. If you have already read it in this run, use what it said
|
|
13
|
+
rather than reading it again, and if you have already searched for something, use what you found.
|
|
14
|
+
Repeating a read costs the user a turn and tells you nothing new.
|
|
15
|
+
|
|
16
|
+
When the task is to change something, change it. Read what you need, then call the tool that makes
|
|
17
|
+
the change; a summary of the edit you intend is not an edit. An edit needs the passage to replace
|
|
18
|
+
exactly as the file has it, so read before you write, and write once.
|
|
19
|
+
|
|
20
|
+
Nobody approves an edit by replying to you. When a change needs permission, calling the tool is what
|
|
21
|
+
asks for it, and the person answers there, not here. So do not describe an edit and wait: a
|
|
22
|
+
described edit is not an edit, there is no queue it goes into, and there is nothing anybody can say
|
|
23
|
+
back to you that will apply it. If you are about to write "let me know if you approve", call the
|
|
24
|
+
tool instead and let them answer the question the tool asks.
|
|
25
|
+
|
|
26
|
+
When you have what the user asked for, answer in plain prose with no prefix and no protocol marker
|
|
27
|
+
of any kind. Use a tool when the task needs one and answer directly when it does not. Prefer
|
|
28
|
+
looking to guessing: this workspace is in front of you, so a question about what a file says is a
|
|
29
|
+
question you can answer by reading it rather than by inferring it from the name.
|
|
30
|
+
|
|
31
|
+
When a tool is refused, held for approval, or not permitted, say so plainly and continue with what
|
|
32
|
+
you can do instead. A refusal usually tells you what to do next: read again, or make the anchor
|
|
33
|
+
unique. Never invent a tool result, and never dress a tool's raw output as the answer.
|