@a5c-ai/agent-platform 5.0.1-staging.016f0b0e8119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/dist/anycli/cache.d.ts +45 -0
- package/dist/anycli/cache.d.ts.map +1 -0
- package/dist/anycli/cache.js +118 -0
- package/dist/anycli/index.d.ts +10 -0
- package/dist/anycli/index.d.ts.map +1 -0
- package/dist/anycli/index.js +25 -0
- package/dist/anycli/types.d.ts +32 -0
- package/dist/anycli/types.d.ts.map +1 -0
- package/dist/anycli/types.js +9 -0
- package/dist/api/breakpoints.d.ts +93 -0
- package/dist/api/breakpoints.d.ts.map +1 -0
- package/dist/api/breakpoints.js +334 -0
- package/dist/api/effects.d.ts +14 -0
- package/dist/api/effects.d.ts.map +1 -0
- package/dist/api/effects.js +306 -0
- package/dist/api/effectsTypes.d.ts +79 -0
- package/dist/api/effectsTypes.d.ts.map +1 -0
- package/dist/api/effectsTypes.js +6 -0
- package/dist/api/eventStream.d.ts +34 -0
- package/dist/api/eventStream.d.ts.map +1 -0
- package/dist/api/eventStream.js +126 -0
- package/dist/api/index.d.ts +10 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +27 -0
- package/dist/api/runs.d.ts +85 -0
- package/dist/api/runs.d.ts.map +1 -0
- package/dist/api/runs.js +247 -0
- package/dist/api/utils.d.ts +28 -0
- package/dist/api/utils.d.ts.map +1 -0
- package/dist/api/utils.js +74 -0
- package/dist/breakpoints/approvalChains.d.ts +68 -0
- package/dist/breakpoints/approvalChains.d.ts.map +1 -0
- package/dist/breakpoints/approvalChains.js +111 -0
- package/dist/breakpoints/delegation.d.ts +42 -0
- package/dist/breakpoints/delegation.d.ts.map +1 -0
- package/dist/breakpoints/delegation.js +199 -0
- package/dist/breakpoints/delegationTypes.d.ts +46 -0
- package/dist/breakpoints/delegationTypes.d.ts.map +1 -0
- package/dist/breakpoints/delegationTypes.js +10 -0
- package/dist/breakpoints/postures.d.ts +28 -0
- package/dist/breakpoints/postures.d.ts.map +1 -0
- package/dist/breakpoints/postures.js +100 -0
- package/dist/compression/compaction.d.ts +82 -0
- package/dist/compression/compaction.d.ts.map +1 -0
- package/dist/compression/compaction.js +310 -0
- package/dist/cost/claudeCodeParser.d.ts +81 -0
- package/dist/cost/claudeCodeParser.d.ts.map +1 -0
- package/dist/cost/claudeCodeParser.js +232 -0
- package/dist/cost/collector.d.ts +42 -0
- package/dist/cost/collector.d.ts.map +1 -0
- package/dist/cost/collector.js +105 -0
- package/dist/cost/effectCost.d.ts +23 -0
- package/dist/cost/effectCost.d.ts.map +1 -0
- package/dist/cost/effectCost.js +26 -0
- package/dist/cost/index.d.ts +7 -0
- package/dist/cost/index.d.ts.map +1 -0
- package/dist/cost/index.js +28 -0
- package/dist/cost/journal.d.ts +40 -0
- package/dist/cost/journal.d.ts.map +1 -0
- package/dist/cost/journal.js +137 -0
- package/dist/cost/types.d.ts +164 -0
- package/dist/cost/types.d.ts.map +1 -0
- package/dist/cost/types.js +228 -0
- package/dist/daemon/automationExecutor.d.ts +16 -0
- package/dist/daemon/automationExecutor.d.ts.map +1 -0
- package/dist/daemon/automationExecutor.js +222 -0
- package/dist/daemon/config.d.ts +8 -0
- package/dist/daemon/config.d.ts.map +1 -0
- package/dist/daemon/config.js +209 -0
- package/dist/daemon/daemonLog.d.ts +13 -0
- package/dist/daemon/daemonLog.d.ts.map +1 -0
- package/dist/daemon/daemonLog.js +64 -0
- package/dist/daemon/fileWatcher.d.ts +9 -0
- package/dist/daemon/fileWatcher.d.ts.map +1 -0
- package/dist/daemon/fileWatcher.js +141 -0
- package/dist/daemon/index.d.ts +9 -0
- package/dist/daemon/index.d.ts.map +1 -0
- package/dist/daemon/index.js +25 -0
- package/dist/daemon/lifecycle.d.ts +12 -0
- package/dist/daemon/lifecycle.d.ts.map +1 -0
- package/dist/daemon/lifecycle.js +257 -0
- package/dist/daemon/loop.d.ts +21 -0
- package/dist/daemon/loop.d.ts.map +1 -0
- package/dist/daemon/loop.js +196 -0
- package/dist/daemon/timerScheduler.d.ts +13 -0
- package/dist/daemon/timerScheduler.d.ts.map +1 -0
- package/dist/daemon/timerScheduler.js +122 -0
- package/dist/daemon/types.d.ts +93 -0
- package/dist/daemon/types.d.ts.map +1 -0
- package/dist/daemon/types.js +25 -0
- package/dist/daemon/webhookListener.d.ts +6 -0
- package/dist/daemon/webhookListener.d.ts.map +1 -0
- package/dist/daemon/webhookListener.js +110 -0
- package/dist/governance/authority.d.ts +68 -0
- package/dist/governance/authority.d.ts.map +1 -0
- package/dist/governance/authority.js +136 -0
- package/dist/governance/bridge.d.ts +17 -0
- package/dist/governance/bridge.d.ts.map +1 -0
- package/dist/governance/bridge.js +46 -0
- package/dist/governance/builtins.d.ts +25 -0
- package/dist/governance/builtins.d.ts.map +1 -0
- package/dist/governance/builtins.js +67 -0
- package/dist/governance/categories.d.ts +58 -0
- package/dist/governance/categories.d.ts.map +1 -0
- package/dist/governance/categories.js +120 -0
- package/dist/governance/decisionTrail.d.ts +60 -0
- package/dist/governance/decisionTrail.d.ts.map +1 -0
- package/dist/governance/decisionTrail.js +68 -0
- package/dist/governance/engine.d.ts +20 -0
- package/dist/governance/engine.d.ts.map +1 -0
- package/dist/governance/engine.js +124 -0
- package/dist/governance/index.d.ts +20 -0
- package/dist/governance/index.d.ts.map +1 -0
- package/dist/governance/index.js +75 -0
- package/dist/governance/logging.d.ts +18 -0
- package/dist/governance/logging.d.ts.map +1 -0
- package/dist/governance/logging.js +83 -0
- package/dist/governance/mandate.d.ts +83 -0
- package/dist/governance/mandate.d.ts.map +1 -0
- package/dist/governance/mandate.js +180 -0
- package/dist/governance/permissionEvents.d.ts +51 -0
- package/dist/governance/permissionEvents.d.ts.map +1 -0
- package/dist/governance/permissionEvents.js +52 -0
- package/dist/governance/permissionPropagation.d.ts +18 -0
- package/dist/governance/permissionPropagation.d.ts.map +1 -0
- package/dist/governance/permissionPropagation.js +58 -0
- package/dist/governance/postureBridge.d.ts +17 -0
- package/dist/governance/postureBridge.d.ts.map +1 -0
- package/dist/governance/postureBridge.js +117 -0
- package/dist/governance/sandboxBridge.d.ts +49 -0
- package/dist/governance/sandboxBridge.d.ts.map +1 -0
- package/dist/governance/sandboxBridge.js +77 -0
- package/dist/governance/sandboxPolicy.d.ts +51 -0
- package/dist/governance/sandboxPolicy.d.ts.map +1 -0
- package/dist/governance/sandboxPolicy.js +177 -0
- package/dist/governance/types.d.ts +3 -0
- package/dist/governance/types.d.ts.map +1 -0
- package/dist/governance/types.js +5 -0
- package/dist/harness/amux/amuxBridge.d.ts +71 -0
- package/dist/harness/amux/amuxBridge.d.ts.map +1 -0
- package/dist/harness/amux/amuxBridge.js +117 -0
- package/dist/harness/amux/amuxClientFactory.d.ts +29 -0
- package/dist/harness/amux/amuxClientFactory.d.ts.map +1 -0
- package/dist/harness/amux/amuxClientFactory.js +90 -0
- package/dist/harness/amux/amuxEventEmitter.d.ts +51 -0
- package/dist/harness/amux/amuxEventEmitter.d.ts.map +1 -0
- package/dist/harness/amux/amuxEventEmitter.js +143 -0
- package/dist/harness/amux/amuxEventMapper.d.ts +58 -0
- package/dist/harness/amux/amuxEventMapper.d.ts.map +1 -0
- package/dist/harness/amux/amuxEventMapper.js +92 -0
- package/dist/harness/amux/amuxHarnessMap.d.ts +25 -0
- package/dist/harness/amux/amuxHarnessMap.d.ts.map +1 -0
- package/dist/harness/amux/amuxHarnessMap.js +55 -0
- package/dist/harness/amux/amuxStdinReader.d.ts +45 -0
- package/dist/harness/amux/amuxStdinReader.d.ts.map +1 -0
- package/dist/harness/amux/amuxStdinReader.js +106 -0
- package/dist/harness/amux/amuxTypes.d.ts +122 -0
- package/dist/harness/amux/amuxTypes.d.ts.map +1 -0
- package/dist/harness/amux/amuxTypes.js +11 -0
- package/dist/harness/amux/index.d.ts +17 -0
- package/dist/harness/amux/index.d.ts.map +1 -0
- package/dist/harness/amux/index.js +34 -0
- package/dist/harness/backgroundTracker.d.ts +64 -0
- package/dist/harness/backgroundTracker.d.ts.map +1 -0
- package/dist/harness/backgroundTracker.js +107 -0
- package/dist/harness/builtInHarness.d.ts +3 -0
- package/dist/harness/builtInHarness.d.ts.map +1 -0
- package/dist/harness/builtInHarness.js +18 -0
- package/dist/harness/capabilityRouter.d.ts +76 -0
- package/dist/harness/capabilityRouter.d.ts.map +1 -0
- package/dist/harness/capabilityRouter.js +176 -0
- package/dist/harness/fallbackChains.d.ts +42 -0
- package/dist/harness/fallbackChains.d.ts.map +1 -0
- package/dist/harness/fallbackChains.js +69 -0
- package/dist/harness/hostContract.d.ts +63 -0
- package/dist/harness/hostContract.d.ts.map +1 -0
- package/dist/harness/hostContract.js +136 -0
- package/dist/harness/index.d.ts +18 -0
- package/dist/harness/index.d.ts.map +1 -0
- package/dist/harness/index.js +91 -0
- package/dist/harness/internal/createRun/askUserQuestion.d.ts +11 -0
- package/dist/harness/internal/createRun/askUserQuestion.d.ts.map +1 -0
- package/dist/harness/internal/createRun/askUserQuestion.js +162 -0
- package/dist/harness/internal/createRun/index.d.ts +25 -0
- package/dist/harness/internal/createRun/index.d.ts.map +1 -0
- package/dist/harness/internal/createRun/index.js +137 -0
- package/dist/harness/internal/createRun/orchestration/constants.d.ts +7 -0
- package/dist/harness/internal/createRun/orchestration/constants.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/constants.js +13 -0
- package/dist/harness/internal/createRun/orchestration/effects.d.ts +43 -0
- package/dist/harness/internal/createRun/orchestration/effects.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/effects.js +490 -0
- package/dist/harness/internal/createRun/orchestration/effectsHelpers.d.ts +20 -0
- package/dist/harness/internal/createRun/orchestration/effectsHelpers.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/effectsHelpers.js +79 -0
- package/dist/harness/internal/createRun/orchestration/externalPhase.d.ts +3 -0
- package/dist/harness/internal/createRun/orchestration/externalPhase.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/externalPhase.js +319 -0
- package/dist/harness/internal/createRun/orchestration/externalPhaseHelpers.d.ts +16 -0
- package/dist/harness/internal/createRun/orchestration/externalPhaseHelpers.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/externalPhaseHelpers.js +104 -0
- package/dist/harness/internal/createRun/orchestration/index.d.ts +14 -0
- package/dist/harness/internal/createRun/orchestration/index.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/index.js +36 -0
- package/dist/harness/internal/createRun/orchestration/internalPhase.d.ts +3 -0
- package/dist/harness/internal/createRun/orchestration/internalPhase.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/internalPhase.js +464 -0
- package/dist/harness/internal/createRun/orchestration/internalTools.d.ts +26 -0
- package/dist/harness/internal/createRun/orchestration/internalTools.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/internalTools.js +262 -0
- package/dist/harness/internal/createRun/orchestration/internalToolsHelpers.d.ts +17 -0
- package/dist/harness/internal/createRun/orchestration/internalToolsHelpers.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/internalToolsHelpers.js +23 -0
- package/dist/harness/internal/createRun/orchestration/taskResult.d.ts +10 -0
- package/dist/harness/internal/createRun/orchestration/taskResult.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/taskResult.js +67 -0
- package/dist/harness/internal/createRun/orchestration/types.d.ts +46 -0
- package/dist/harness/internal/createRun/orchestration/types.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/types.js +2 -0
- package/dist/harness/internal/createRun/orchestration/verbose.d.ts +7 -0
- package/dist/harness/internal/createRun/orchestration/verbose.d.ts.map +1 -0
- package/dist/harness/internal/createRun/orchestration/verbose.js +240 -0
- package/dist/harness/internal/createRun/output.d.ts +38 -0
- package/dist/harness/internal/createRun/output.d.ts.map +1 -0
- package/dist/harness/internal/createRun/output.js +415 -0
- package/dist/harness/internal/createRun/pi.d.ts +34 -0
- package/dist/harness/internal/createRun/pi.d.ts.map +1 -0
- package/dist/harness/internal/createRun/pi.js +216 -0
- package/dist/harness/internal/createRun/planProcess/agentOutput.d.ts +5 -0
- package/dist/harness/internal/createRun/planProcess/agentOutput.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/agentOutput.js +113 -0
- package/dist/harness/internal/createRun/planProcess/delegation.d.ts +23 -0
- package/dist/harness/internal/createRun/planProcess/delegation.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/delegation.js +176 -0
- package/dist/harness/internal/createRun/planProcess/external.d.ts +14 -0
- package/dist/harness/internal/createRun/planProcess/external.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/external.js +139 -0
- package/dist/harness/internal/createRun/planProcess/index.d.ts +12 -0
- package/dist/harness/internal/createRun/planProcess/index.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/index.js +24 -0
- package/dist/harness/internal/createRun/planProcess/paths.d.ts +7 -0
- package/dist/harness/internal/createRun/planProcess/paths.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/paths.js +98 -0
- package/dist/harness/internal/createRun/planProcess/phase.d.ts +6 -0
- package/dist/harness/internal/createRun/planProcess/phase.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/phase.js +361 -0
- package/dist/harness/internal/createRun/planProcess/phaseHelpers.d.ts +37 -0
- package/dist/harness/internal/createRun/planProcess/phaseHelpers.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/phaseHelpers.js +159 -0
- package/dist/harness/internal/createRun/planProcess/phaseTypes.d.ts +25 -0
- package/dist/harness/internal/createRun/planProcess/phaseTypes.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/phaseTypes.js +6 -0
- package/dist/harness/internal/createRun/planProcess/prompts.d.ts +20 -0
- package/dist/harness/internal/createRun/planProcess/prompts.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/prompts.js +208 -0
- package/dist/harness/internal/createRun/planProcess/recovery.d.ts +18 -0
- package/dist/harness/internal/createRun/planProcess/recovery.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/recovery.js +188 -0
- package/dist/harness/internal/createRun/planProcess/recovery.test.d.ts +2 -0
- package/dist/harness/internal/createRun/planProcess/recovery.test.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/recovery.test.js +68 -0
- package/dist/harness/internal/createRun/planProcess/runState.d.ts +40 -0
- package/dist/harness/internal/createRun/planProcess/runState.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/runState.js +179 -0
- package/dist/harness/internal/createRun/planProcess/understandIntent.d.ts +22 -0
- package/dist/harness/internal/createRun/planProcess/understandIntent.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/understandIntent.js +65 -0
- package/dist/harness/internal/createRun/planProcess/validation.d.ts +2 -0
- package/dist/harness/internal/createRun/planProcess/validation.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/validation.js +212 -0
- package/dist/harness/internal/createRun/planProcess/validationSource.d.ts +11 -0
- package/dist/harness/internal/createRun/planProcess/validationSource.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/validationSource.js +328 -0
- package/dist/harness/internal/createRun/planProcess/validationText.d.ts +3 -0
- package/dist/harness/internal/createRun/planProcess/validationText.d.ts.map +1 -0
- package/dist/harness/internal/createRun/planProcess/validationText.js +145 -0
- package/dist/harness/internal/createRun/prompts.d.ts +49 -0
- package/dist/harness/internal/createRun/prompts.d.ts.map +1 -0
- package/dist/harness/internal/createRun/prompts.js +307 -0
- package/dist/harness/internal/createRun/resumeState.d.ts +28 -0
- package/dist/harness/internal/createRun/resumeState.d.ts.map +1 -0
- package/dist/harness/internal/createRun/resumeState.js +133 -0
- package/dist/harness/internal/createRun/utils.d.ts +182 -0
- package/dist/harness/internal/createRun/utils.d.ts.map +1 -0
- package/dist/harness/internal/createRun/utils.js +133 -0
- package/dist/harness/internal.d.ts +13 -0
- package/dist/harness/internal.d.ts.map +1 -0
- package/dist/harness/internal.js +149 -0
- package/dist/harness/invoker/launch.d.ts +20 -0
- package/dist/harness/invoker/launch.d.ts.map +1 -0
- package/dist/harness/invoker/launch.js +23 -0
- package/dist/harness/invoker/processControl.d.ts +11 -0
- package/dist/harness/invoker/processControl.d.ts.map +1 -0
- package/dist/harness/invoker/processControl.js +50 -0
- package/dist/harness/invoker.d.ts +43 -0
- package/dist/harness/invoker.d.ts.map +1 -0
- package/dist/harness/invoker.js +210 -0
- package/dist/harness/modeSelector.d.ts +50 -0
- package/dist/harness/modeSelector.d.ts.map +1 -0
- package/dist/harness/modeSelector.js +124 -0
- package/dist/harness/modelSelection.d.ts +37 -0
- package/dist/harness/modelSelection.d.ts.map +1 -0
- package/dist/harness/modelSelection.js +81 -0
- package/dist/harness/operatorCommands.d.ts +38 -0
- package/dist/harness/operatorCommands.d.ts.map +1 -0
- package/dist/harness/operatorCommands.js +118 -0
- package/dist/harness/piSecureSandbox.d.ts +8 -0
- package/dist/harness/piSecureSandbox.d.ts.map +1 -0
- package/dist/harness/piSecureSandbox.js +366 -0
- package/dist/harness/piSecureSandboxTypes.d.ts +51 -0
- package/dist/harness/piSecureSandboxTypes.d.ts.map +1 -0
- package/dist/harness/piSecureSandboxTypes.js +6 -0
- package/dist/harness/piWrapper/compaction.d.ts +13 -0
- package/dist/harness/piWrapper/compaction.d.ts.map +1 -0
- package/dist/harness/piWrapper/compaction.js +38 -0
- package/dist/harness/piWrapper/instructionPrompts.d.ts +2 -0
- package/dist/harness/piWrapper/instructionPrompts.d.ts.map +1 -0
- package/dist/harness/piWrapper/instructionPrompts.js +97 -0
- package/dist/harness/piWrapper/moduleSupport.d.ts +77 -0
- package/dist/harness/piWrapper/moduleSupport.d.ts.map +1 -0
- package/dist/harness/piWrapper/moduleSupport.js +204 -0
- package/dist/harness/piWrapper.d.ts +80 -0
- package/dist/harness/piWrapper.d.ts.map +1 -0
- package/dist/harness/piWrapper.js +389 -0
- package/dist/harness/piWrapper.test.d.ts +2 -0
- package/dist/harness/piWrapper.test.d.ts.map +1 -0
- package/dist/harness/piWrapper.test.js +193 -0
- package/dist/harness/planMode.d.ts +68 -0
- package/dist/harness/planMode.d.ts.map +1 -0
- package/dist/harness/planMode.js +145 -0
- package/dist/harness/selectionPolicies.d.ts +29 -0
- package/dist/harness/selectionPolicies.d.ts.map +1 -0
- package/dist/harness/selectionPolicies.js +165 -0
- package/dist/harness/types.d.ts +266 -0
- package/dist/harness/types.d.ts.map +1 -0
- package/dist/harness/types.js +34 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +54 -0
- package/dist/interaction/askUserQuestion/core.d.ts +8 -0
- package/dist/interaction/askUserQuestion/core.d.ts.map +1 -0
- package/dist/interaction/askUserQuestion/core.js +112 -0
- package/dist/interaction/askUserQuestion/terminal.d.ts +15 -0
- package/dist/interaction/askUserQuestion/terminal.d.ts.map +1 -0
- package/dist/interaction/askUserQuestion/terminal.js +128 -0
- package/dist/interaction/askUserQuestion.d.ts +10 -0
- package/dist/interaction/askUserQuestion.d.ts.map +1 -0
- package/dist/interaction/askUserQuestion.js +295 -0
- package/dist/interaction/askUserQuestionTypes.d.ts +31 -0
- package/dist/interaction/askUserQuestionTypes.d.ts.map +1 -0
- package/dist/interaction/askUserQuestionTypes.js +6 -0
- package/dist/interaction/index.d.ts +4 -0
- package/dist/interaction/index.d.ts.map +1 -0
- package/dist/interaction/index.js +20 -0
- package/dist/interaction/interactionRouter.d.ts +25 -0
- package/dist/interaction/interactionRouter.d.ts.map +1 -0
- package/dist/interaction/interactionRouter.js +55 -0
- package/dist/mcp/channels/allowlist.d.ts +19 -0
- package/dist/mcp/channels/allowlist.d.ts.map +1 -0
- package/dist/mcp/channels/allowlist.js +140 -0
- package/dist/mcp/channels/channelManager.d.ts +64 -0
- package/dist/mcp/channels/channelManager.d.ts.map +1 -0
- package/dist/mcp/channels/channelManager.js +137 -0
- package/dist/mcp/channels/inboundQueue.d.ts +47 -0
- package/dist/mcp/channels/inboundQueue.d.ts.map +1 -0
- package/dist/mcp/channels/inboundQueue.js +96 -0
- package/dist/mcp/channels/index.d.ts +17 -0
- package/dist/mcp/channels/index.d.ts.map +1 -0
- package/dist/mcp/channels/index.js +39 -0
- package/dist/mcp/channels/outbound.d.ts +33 -0
- package/dist/mcp/channels/outbound.d.ts.map +1 -0
- package/dist/mcp/channels/outbound.js +94 -0
- package/dist/mcp/channels/permissionRelay.d.ts +62 -0
- package/dist/mcp/channels/permissionRelay.d.ts.map +1 -0
- package/dist/mcp/channels/permissionRelay.js +159 -0
- package/dist/mcp/channels/types.d.ts +135 -0
- package/dist/mcp/channels/types.d.ts.map +1 -0
- package/dist/mcp/channels/types.js +16 -0
- package/dist/mcp/client/config.d.ts +28 -0
- package/dist/mcp/client/config.d.ts.map +1 -0
- package/dist/mcp/client/config.js +142 -0
- package/dist/mcp/client/executor.d.ts +30 -0
- package/dist/mcp/client/executor.d.ts.map +1 -0
- package/dist/mcp/client/executor.js +60 -0
- package/dist/mcp/client/index.d.ts +12 -0
- package/dist/mcp/client/index.d.ts.map +1 -0
- package/dist/mcp/client/index.js +27 -0
- package/dist/mcp/client/manager.d.ts +74 -0
- package/dist/mcp/client/manager.d.ts.map +1 -0
- package/dist/mcp/client/manager.js +214 -0
- package/dist/mcp/client/toolRegistry.d.ts +50 -0
- package/dist/mcp/client/toolRegistry.d.ts.map +1 -0
- package/dist/mcp/client/toolRegistry.js +118 -0
- package/dist/mcp/client/types.d.ts +96 -0
- package/dist/mcp/client/types.d.ts.map +1 -0
- package/dist/mcp/client/types.js +15 -0
- package/dist/mcp/transport/index.d.ts +9 -0
- package/dist/mcp/transport/index.d.ts.map +1 -0
- package/dist/mcp/transport/index.js +13 -0
- package/dist/mcp/transport/session.d.ts +18 -0
- package/dist/mcp/transport/session.d.ts.map +1 -0
- package/dist/mcp/transport/session.js +78 -0
- package/dist/mcp/transport/types.d.ts +19 -0
- package/dist/mcp/transport/types.d.ts.map +1 -0
- package/dist/mcp/transport/types.js +7 -0
- package/dist/mcp/transport/websocket.d.ts +41 -0
- package/dist/mcp/transport/websocket.d.ts.map +1 -0
- package/dist/mcp/transport/websocket.js +271 -0
- package/dist/observability/health.d.ts +19 -0
- package/dist/observability/health.d.ts.map +1 -0
- package/dist/observability/health.js +129 -0
- package/dist/observability/index.d.ts +7 -0
- package/dist/observability/index.d.ts.map +1 -0
- package/dist/observability/index.js +22 -0
- package/dist/observability/runStatus.d.ts +44 -0
- package/dist/observability/runStatus.d.ts.map +1 -0
- package/dist/observability/runStatus.js +169 -0
- package/dist/observability/timeline.d.ts +11 -0
- package/dist/observability/timeline.d.ts.map +1 -0
- package/dist/observability/timeline.js +176 -0
- package/dist/observability/types.d.ts +62 -0
- package/dist/observability/types.d.ts.map +1 -0
- package/dist/observability/types.js +8 -0
- package/dist/observability/webhooks.d.ts +68 -0
- package/dist/observability/webhooks.d.ts.map +1 -0
- package/dist/observability/webhooks.js +132 -0
- package/dist/plugins/index.d.ts +11 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +18 -0
- package/dist/plugins/loader.d.ts +37 -0
- package/dist/plugins/loader.d.ts.map +1 -0
- package/dist/plugins/loader.js +112 -0
- package/dist/plugins/sandbox.d.ts +38 -0
- package/dist/plugins/sandbox.d.ts.map +1 -0
- package/dist/plugins/sandbox.js +109 -0
- package/dist/plugins/types.d.ts +27 -0
- package/dist/plugins/types.d.ts.map +1 -0
- package/dist/plugins/types.js +7 -0
- package/dist/plugins/version-check.d.ts +23 -0
- package/dist/plugins/version-check.d.ts.map +1 -0
- package/dist/plugins/version-check.js +70 -0
- package/dist/processes/index.d.ts +12 -0
- package/dist/processes/index.d.ts.map +1 -0
- package/dist/processes/index.js +15 -0
- package/dist/processes/recommender.d.ts +36 -0
- package/dist/processes/recommender.d.ts.map +1 -0
- package/dist/processes/recommender.js +73 -0
- package/dist/processes/scorer.d.ts +26 -0
- package/dist/processes/scorer.d.ts.map +1 -0
- package/dist/processes/scorer.js +104 -0
- package/dist/processes/types.d.ts +48 -0
- package/dist/processes/types.d.ts.map +1 -0
- package/dist/processes/types.js +9 -0
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +28 -0
- package/dist/seams/contract.d.ts +63 -0
- package/dist/seams/contract.d.ts.map +1 -0
- package/dist/seams/contract.js +138 -0
- package/dist/seams/contract.test.d.ts +2 -0
- package/dist/seams/contract.test.d.ts.map +1 -0
- package/dist/seams/contract.test.js +99 -0
- package/dist/seams/index.d.ts +3 -0
- package/dist/seams/index.d.ts.map +1 -0
- package/dist/seams/index.js +8 -0
- package/dist/session/context.d.ts +22 -0
- package/dist/session/context.d.ts.map +1 -0
- package/dist/session/context.js +113 -0
- package/dist/session/continuityState.d.ts +39 -0
- package/dist/session/continuityState.d.ts.map +1 -0
- package/dist/session/continuityState.js +164 -0
- package/dist/session/cost.d.ts +63 -0
- package/dist/session/cost.d.ts.map +1 -0
- package/dist/session/cost.js +194 -0
- package/dist/session/discovery.d.ts +22 -0
- package/dist/session/discovery.d.ts.map +1 -0
- package/dist/session/discovery.js +35 -0
- package/dist/session/history.d.ts +30 -0
- package/dist/session/history.d.ts.map +1 -0
- package/dist/session/history.js +143 -0
- package/dist/session/index.d.ts +7 -0
- package/dist/session/index.d.ts.map +1 -0
- package/dist/session/index.js +70 -0
- package/dist/session/memoryExtraction.d.ts +65 -0
- package/dist/session/memoryExtraction.d.ts.map +1 -0
- package/dist/session/memoryExtraction.js +201 -0
- package/dist/session/parse.d.ts +45 -0
- package/dist/session/parse.d.ts.map +1 -0
- package/dist/session/parse.js +170 -0
- package/dist/session/persistence.d.ts +46 -0
- package/dist/session/persistence.d.ts.map +1 -0
- package/dist/session/persistence.js +180 -0
- package/dist/session/types.d.ts +267 -0
- package/dist/session/types.d.ts.map +1 -0
- package/dist/session/types.js +45 -0
- package/dist/session/write.d.ts +61 -0
- package/dist/session/write.d.ts.map +1 -0
- package/dist/session/write.js +213 -0
- package/dist/skills/chain.d.ts +31 -0
- package/dist/skills/chain.d.ts.map +1 -0
- package/dist/skills/chain.js +113 -0
- package/dist/skills/discovery.d.ts +34 -0
- package/dist/skills/discovery.d.ts.map +1 -0
- package/dist/skills/discovery.js +185 -0
- package/dist/skills/index.d.ts +12 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +18 -0
- package/dist/skills/router.d.ts +35 -0
- package/dist/skills/router.d.ts.map +1 -0
- package/dist/skills/router.js +143 -0
- package/dist/skills/types.d.ts +33 -0
- package/dist/skills/types.d.ts.map +1 -0
- package/dist/skills/types.js +5 -0
- package/dist/storage/atomic.d.ts +2 -0
- package/dist/storage/atomic.d.ts.map +1 -0
- package/dist/storage/atomic.js +54 -0
- package/dist/storage/clock.d.ts +2 -0
- package/dist/storage/clock.d.ts.map +1 -0
- package/dist/storage/clock.js +6 -0
- package/dist/storage/index.d.ts +7 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +9 -0
- package/dist/storage/journalWatcher.d.ts +24 -0
- package/dist/storage/journalWatcher.d.ts.map +1 -0
- package/dist/storage/journalWatcher.js +172 -0
- package/dist/storage/paths.d.ts +5 -0
- package/dist/storage/paths.d.ts.map +1 -0
- package/dist/storage/paths.js +26 -0
- package/dist/storage/snapshotState.d.ts +10 -0
- package/dist/storage/snapshotState.d.ts.map +1 -0
- package/dist/storage/snapshotState.js +15 -0
- package/dist/storage/storeTaskArtifacts.d.ts +6 -0
- package/dist/storage/storeTaskArtifacts.d.ts.map +1 -0
- package/dist/storage/storeTaskArtifacts.js +55 -0
- package/dist/storage/types.d.ts +21 -0
- package/dist/storage/types.d.ts.map +1 -0
- package/dist/storage/types.js +2 -0
- package/dist/tasks/crud.d.ts +33 -0
- package/dist/tasks/crud.d.ts.map +1 -0
- package/dist/tasks/crud.js +150 -0
- package/dist/tasks/index.d.ts +2 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/index.js +9 -0
- package/package.json +159 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PluginSandbox — permission tracking and policy enforcement for loaded plugins.
|
|
3
|
+
*
|
|
4
|
+
* Each plugin is assigned a set of permissions drawn from its manifest.
|
|
5
|
+
* Runtime checks gate access to resources (file paths, network, shell, etc.)
|
|
6
|
+
* by combining the granted permissions with an optional PluginSandboxConfig.
|
|
7
|
+
*/
|
|
8
|
+
import type { PluginPermission, PluginSandboxConfig } from './types';
|
|
9
|
+
export declare class PluginSandbox {
|
|
10
|
+
private permissions;
|
|
11
|
+
private configs;
|
|
12
|
+
/** Grant a single permission to a plugin. */
|
|
13
|
+
grantPermission(pluginId: string, permission: PluginPermission): void;
|
|
14
|
+
/** Revoke a single permission from a plugin. */
|
|
15
|
+
revokePermission(pluginId: string, permission: PluginPermission): void;
|
|
16
|
+
/** Check whether a plugin currently holds a given permission. */
|
|
17
|
+
checkPermission(pluginId: string, permission: PluginPermission): boolean;
|
|
18
|
+
/** Return the full list of permissions granted to a plugin. */
|
|
19
|
+
getPermissions(pluginId: string): PluginPermission[];
|
|
20
|
+
/** Attach a sandbox configuration (memory / timeout / allowed paths) for a plugin. */
|
|
21
|
+
setConfig(pluginId: string, config: PluginSandboxConfig): void;
|
|
22
|
+
/** Retrieve the sandbox configuration for a plugin, if any. */
|
|
23
|
+
getConfig(pluginId: string): PluginSandboxConfig | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Determine whether a plugin is allowed to perform `action` on `resource`.
|
|
26
|
+
*
|
|
27
|
+
* The check works in two stages:
|
|
28
|
+
* 1. The action is mapped to a required permission. If the plugin does not
|
|
29
|
+
* hold that permission the call is denied.
|
|
30
|
+
* 2. For file-system actions the optional `allowedPaths` list in the sandbox
|
|
31
|
+
* config is consulted. If the list exists and the resource does not start
|
|
32
|
+
* with any allowed prefix the call is denied.
|
|
33
|
+
*/
|
|
34
|
+
isAllowed(pluginId: string, action: string, resource?: string): boolean;
|
|
35
|
+
/** Remove all permission and config state for a plugin. */
|
|
36
|
+
clear(pluginId: string): void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=sandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/plugins/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAarE,qBAAa,aAAa;IACxB,OAAO,CAAC,WAAW,CAA4C;IAC/D,OAAO,CAAC,OAAO,CAA0C;IAMzD,6CAA6C;IAC7C,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,GAAG,IAAI;IASrE,gDAAgD;IAChD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,GAAG,IAAI;IAOtE,iEAAiE;IACjE,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,GAAG,OAAO;IAIxE,+DAA+D;IAC/D,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,gBAAgB,EAAE;IASpD,sFAAsF;IACtF,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,GAAG,IAAI;IAI9D,+DAA+D;IAC/D,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS;IAQ5D;;;;;;;;;OASG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO;IAoCvE,2DAA2D;IAC3D,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAI9B"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* PluginSandbox — permission tracking and policy enforcement for loaded plugins.
|
|
4
|
+
*
|
|
5
|
+
* Each plugin is assigned a set of permissions drawn from its manifest.
|
|
6
|
+
* Runtime checks gate access to resources (file paths, network, shell, etc.)
|
|
7
|
+
* by combining the granted permissions with an optional PluginSandboxConfig.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.PluginSandbox = void 0;
|
|
11
|
+
/** Map from a high-level action verb to the permission(s) it requires. */
|
|
12
|
+
const ACTION_PERMISSION_MAP = {
|
|
13
|
+
read: 'fs:read',
|
|
14
|
+
write: 'fs:write',
|
|
15
|
+
fetch: 'net:outbound',
|
|
16
|
+
spawn: 'process:spawn',
|
|
17
|
+
env: 'env:read',
|
|
18
|
+
mcp: 'mcp:connect',
|
|
19
|
+
shell: 'shell:execute',
|
|
20
|
+
};
|
|
21
|
+
class PluginSandbox {
|
|
22
|
+
permissions = new Map();
|
|
23
|
+
configs = new Map();
|
|
24
|
+
// ---------------------------------------------------------------------------
|
|
25
|
+
// Permission CRUD
|
|
26
|
+
// ---------------------------------------------------------------------------
|
|
27
|
+
/** Grant a single permission to a plugin. */
|
|
28
|
+
grantPermission(pluginId, permission) {
|
|
29
|
+
let perms = this.permissions.get(pluginId);
|
|
30
|
+
if (!perms) {
|
|
31
|
+
perms = new Set();
|
|
32
|
+
this.permissions.set(pluginId, perms);
|
|
33
|
+
}
|
|
34
|
+
perms.add(permission);
|
|
35
|
+
}
|
|
36
|
+
/** Revoke a single permission from a plugin. */
|
|
37
|
+
revokePermission(pluginId, permission) {
|
|
38
|
+
const perms = this.permissions.get(pluginId);
|
|
39
|
+
if (perms) {
|
|
40
|
+
perms.delete(permission);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/** Check whether a plugin currently holds a given permission. */
|
|
44
|
+
checkPermission(pluginId, permission) {
|
|
45
|
+
return this.permissions.get(pluginId)?.has(permission) ?? false;
|
|
46
|
+
}
|
|
47
|
+
/** Return the full list of permissions granted to a plugin. */
|
|
48
|
+
getPermissions(pluginId) {
|
|
49
|
+
const perms = this.permissions.get(pluginId);
|
|
50
|
+
return perms ? [...perms] : [];
|
|
51
|
+
}
|
|
52
|
+
// ---------------------------------------------------------------------------
|
|
53
|
+
// Configuration
|
|
54
|
+
// ---------------------------------------------------------------------------
|
|
55
|
+
/** Attach a sandbox configuration (memory / timeout / allowed paths) for a plugin. */
|
|
56
|
+
setConfig(pluginId, config) {
|
|
57
|
+
this.configs.set(pluginId, config);
|
|
58
|
+
}
|
|
59
|
+
/** Retrieve the sandbox configuration for a plugin, if any. */
|
|
60
|
+
getConfig(pluginId) {
|
|
61
|
+
return this.configs.get(pluginId);
|
|
62
|
+
}
|
|
63
|
+
// ---------------------------------------------------------------------------
|
|
64
|
+
// Policy check
|
|
65
|
+
// ---------------------------------------------------------------------------
|
|
66
|
+
/**
|
|
67
|
+
* Determine whether a plugin is allowed to perform `action` on `resource`.
|
|
68
|
+
*
|
|
69
|
+
* The check works in two stages:
|
|
70
|
+
* 1. The action is mapped to a required permission. If the plugin does not
|
|
71
|
+
* hold that permission the call is denied.
|
|
72
|
+
* 2. For file-system actions the optional `allowedPaths` list in the sandbox
|
|
73
|
+
* config is consulted. If the list exists and the resource does not start
|
|
74
|
+
* with any allowed prefix the call is denied.
|
|
75
|
+
*/
|
|
76
|
+
isAllowed(pluginId, action, resource) {
|
|
77
|
+
// Resolve the permission required for this action
|
|
78
|
+
const requiredPermission = ACTION_PERMISSION_MAP[action];
|
|
79
|
+
if (!requiredPermission) {
|
|
80
|
+
// Unknown action — deny by default
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
if (!this.checkPermission(pluginId, requiredPermission)) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
// For filesystem operations, enforce allowedPaths when configured
|
|
87
|
+
if (resource &&
|
|
88
|
+
(requiredPermission === 'fs:read' || requiredPermission === 'fs:write')) {
|
|
89
|
+
const config = this.configs.get(pluginId);
|
|
90
|
+
if (config?.allowedPaths && config.allowedPaths.length > 0) {
|
|
91
|
+
const normalised = resource.replace(/\\/g, '/');
|
|
92
|
+
const allowed = config.allowedPaths.some((p) => normalised.startsWith(p.replace(/\\/g, '/')));
|
|
93
|
+
if (!allowed) {
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
// ---------------------------------------------------------------------------
|
|
101
|
+
// Cleanup
|
|
102
|
+
// ---------------------------------------------------------------------------
|
|
103
|
+
/** Remove all permission and config state for a plugin. */
|
|
104
|
+
clear(pluginId) {
|
|
105
|
+
this.permissions.delete(pluginId);
|
|
106
|
+
this.configs.delete(pluginId);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.PluginSandbox = PluginSandbox;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin sandboxing types for L6 Agent-Platform.
|
|
3
|
+
* Defines the permission model, manifest schema, instance lifecycle,
|
|
4
|
+
* and sandbox configuration for loaded plugins.
|
|
5
|
+
*/
|
|
6
|
+
export type PluginPermission = 'fs:read' | 'fs:write' | 'net:outbound' | 'process:spawn' | 'env:read' | 'mcp:connect' | 'shell:execute';
|
|
7
|
+
export interface PluginManifest {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
version: string;
|
|
11
|
+
permissions: PluginPermission[];
|
|
12
|
+
entrypoint: string;
|
|
13
|
+
minPlatformVersion?: string;
|
|
14
|
+
}
|
|
15
|
+
export type PluginStatus = 'loaded' | 'unloaded' | 'error' | 'loading';
|
|
16
|
+
export interface PluginInstance {
|
|
17
|
+
manifest: PluginManifest;
|
|
18
|
+
status: PluginStatus;
|
|
19
|
+
loadedAt?: number;
|
|
20
|
+
error?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PluginSandboxConfig {
|
|
23
|
+
maxMemoryMb?: number;
|
|
24
|
+
timeoutMs?: number;
|
|
25
|
+
allowedPaths?: string[];
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/plugins/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,UAAU,GACV,cAAc,GACd,eAAe,GACf,UAAU,GACV,aAAa,GACb,eAAe,CAAC;AAEpB,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,cAAc,CAAC;IACzB,MAAM,EAAE,YAAY,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PluginVersionChecker — simple semver compatibility checks for plugins.
|
|
3
|
+
*
|
|
4
|
+
* Compares a plugin manifest's `minPlatformVersion` against the current
|
|
5
|
+
* platform version to determine whether the plugin is compatible.
|
|
6
|
+
*/
|
|
7
|
+
import type { PluginManifest } from './types';
|
|
8
|
+
export interface VersionCheckResult {
|
|
9
|
+
compatible: boolean;
|
|
10
|
+
issues: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare class PluginVersionChecker {
|
|
13
|
+
/**
|
|
14
|
+
* Check whether a plugin manifest is compatible with the given platform
|
|
15
|
+
* version.
|
|
16
|
+
*
|
|
17
|
+
* When `minPlatformVersion` is not specified in the manifest the plugin
|
|
18
|
+
* is assumed compatible. Invalid version strings produce an issue but
|
|
19
|
+
* are treated as incompatible.
|
|
20
|
+
*/
|
|
21
|
+
checkCompatibility(manifest: PluginManifest, platformVersion: string): VersionCheckResult;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=version-check.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-check.d.ts","sourceRoot":"","sources":["../../src/plugins/version-check.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAmCD,qBAAa,oBAAoB;IAC/B;;;;;;;OAOG;IACH,kBAAkB,CAChB,QAAQ,EAAE,cAAc,EACxB,eAAe,EAAE,MAAM,GACtB,kBAAkB;CAkCtB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* PluginVersionChecker — simple semver compatibility checks for plugins.
|
|
4
|
+
*
|
|
5
|
+
* Compares a plugin manifest's `minPlatformVersion` against the current
|
|
6
|
+
* platform version to determine whether the plugin is compatible.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PluginVersionChecker = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* Parse a version string in `major.minor.patch` format.
|
|
12
|
+
* Returns `undefined` if the string is not a valid semver triple.
|
|
13
|
+
*/
|
|
14
|
+
function parseSemVer(version) {
|
|
15
|
+
const cleaned = version.replace(/^v/, '');
|
|
16
|
+
const parts = cleaned.split('.');
|
|
17
|
+
if (parts.length < 3)
|
|
18
|
+
return undefined;
|
|
19
|
+
const major = parseInt(parts[0], 10);
|
|
20
|
+
const minor = parseInt(parts[1], 10);
|
|
21
|
+
// Strip pre-release / build metadata for comparison
|
|
22
|
+
const patch = parseInt(parts[2].split('-')[0], 10);
|
|
23
|
+
if (isNaN(major) || isNaN(minor) || isNaN(patch))
|
|
24
|
+
return undefined;
|
|
25
|
+
return { major, minor, patch };
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Return `true` if `actual >= required` using standard semver ordering.
|
|
29
|
+
*/
|
|
30
|
+
function semverGte(actual, required) {
|
|
31
|
+
if (actual.major !== required.major)
|
|
32
|
+
return actual.major > required.major;
|
|
33
|
+
if (actual.minor !== required.minor)
|
|
34
|
+
return actual.minor > required.minor;
|
|
35
|
+
return actual.patch >= required.patch;
|
|
36
|
+
}
|
|
37
|
+
class PluginVersionChecker {
|
|
38
|
+
/**
|
|
39
|
+
* Check whether a plugin manifest is compatible with the given platform
|
|
40
|
+
* version.
|
|
41
|
+
*
|
|
42
|
+
* When `minPlatformVersion` is not specified in the manifest the plugin
|
|
43
|
+
* is assumed compatible. Invalid version strings produce an issue but
|
|
44
|
+
* are treated as incompatible.
|
|
45
|
+
*/
|
|
46
|
+
checkCompatibility(manifest, platformVersion) {
|
|
47
|
+
const issues = [];
|
|
48
|
+
// If the manifest does not specify a minimum, it is compatible with any version
|
|
49
|
+
if (!manifest.minPlatformVersion) {
|
|
50
|
+
return { compatible: true, issues };
|
|
51
|
+
}
|
|
52
|
+
const required = parseSemVer(manifest.minPlatformVersion);
|
|
53
|
+
if (!required) {
|
|
54
|
+
issues.push(`Invalid minPlatformVersion "${manifest.minPlatformVersion}" in manifest for plugin "${manifest.id}"`);
|
|
55
|
+
return { compatible: false, issues };
|
|
56
|
+
}
|
|
57
|
+
const actual = parseSemVer(platformVersion);
|
|
58
|
+
if (!actual) {
|
|
59
|
+
issues.push(`Invalid platform version "${platformVersion}" — cannot verify compatibility`);
|
|
60
|
+
return { compatible: false, issues };
|
|
61
|
+
}
|
|
62
|
+
if (!semverGte(actual, required)) {
|
|
63
|
+
issues.push(`Plugin "${manifest.id}" requires platform >= ${manifest.minPlatformVersion}, ` +
|
|
64
|
+
`but current platform is ${platformVersion}`);
|
|
65
|
+
return { compatible: false, issues };
|
|
66
|
+
}
|
|
67
|
+
return { compatible: true, issues };
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.PluginVersionChecker = PluginVersionChecker;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process recommender module for L6 Agent-Platform.
|
|
3
|
+
*
|
|
4
|
+
* Provides process registration, criteria-based scoring, and
|
|
5
|
+
* recommendation of the most relevant processes for a given task.
|
|
6
|
+
*/
|
|
7
|
+
export type { ProcessDescriptor, RecommendationCriteria, ProcessRecommendation, } from './types';
|
|
8
|
+
export { ProcessScorer } from './scorer';
|
|
9
|
+
export type { ScoringResult } from './scorer';
|
|
10
|
+
export { ProcessRecommender } from './recommender';
|
|
11
|
+
export type { ProcessFilter } from './recommender';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/processes/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Process recommender module for L6 Agent-Platform.
|
|
4
|
+
*
|
|
5
|
+
* Provides process registration, criteria-based scoring, and
|
|
6
|
+
* recommendation of the most relevant processes for a given task.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.ProcessRecommender = exports.ProcessScorer = void 0;
|
|
10
|
+
// Scorer
|
|
11
|
+
var scorer_1 = require("./scorer");
|
|
12
|
+
Object.defineProperty(exports, "ProcessScorer", { enumerable: true, get: function () { return scorer_1.ProcessScorer; } });
|
|
13
|
+
// Recommender
|
|
14
|
+
var recommender_1 = require("./recommender");
|
|
15
|
+
Object.defineProperty(exports, "ProcessRecommender", { enumerable: true, get: function () { return recommender_1.ProcessRecommender; } });
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProcessRecommender — registers process descriptors and recommends
|
|
3
|
+
* the most relevant ones for a given set of criteria.
|
|
4
|
+
*
|
|
5
|
+
* Delegates scoring to {@link ProcessScorer} and exposes a simple
|
|
6
|
+
* registry + query API analogous to the sibling SkillRouter.
|
|
7
|
+
*/
|
|
8
|
+
import type { ProcessDescriptor, ProcessRecommendation, RecommendationCriteria } from './types';
|
|
9
|
+
export interface ProcessFilter {
|
|
10
|
+
category?: string;
|
|
11
|
+
domain?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class ProcessRecommender {
|
|
14
|
+
private readonly registry;
|
|
15
|
+
private readonly scorer;
|
|
16
|
+
/** Register a single process descriptor. Replaces any existing entry with the same id. */
|
|
17
|
+
register(descriptor: ProcessDescriptor): void;
|
|
18
|
+
/** Register multiple descriptors at once. */
|
|
19
|
+
registerBatch(descriptors: ProcessDescriptor[]): void;
|
|
20
|
+
/**
|
|
21
|
+
* Score all registered processes against the given criteria and return
|
|
22
|
+
* the top results sorted by descending score. Processes that score 0
|
|
23
|
+
* are excluded.
|
|
24
|
+
*/
|
|
25
|
+
recommend(criteria: RecommendationCriteria): ProcessRecommendation[];
|
|
26
|
+
/** Look up a process descriptor by its id. */
|
|
27
|
+
getById(id: string): ProcessDescriptor | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* List all registered descriptors, optionally filtered by category
|
|
30
|
+
* and/or domain.
|
|
31
|
+
*/
|
|
32
|
+
list(filter?: ProcessFilter): ProcessDescriptor[];
|
|
33
|
+
/** Return the number of registered process descriptors. */
|
|
34
|
+
get size(): number;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=recommender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommender.d.ts","sourceRoot":"","sources":["../../src/processes/recommender.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,SAAS,CAAC;AAKjB,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAwC;IACjE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAI9C,0FAA0F;IAC1F,QAAQ,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI;IAI7C,6CAA6C;IAC7C,aAAa,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,IAAI;IAQrD;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,sBAAsB,GAAG,qBAAqB,EAAE;IAepE,8CAA8C;IAC9C,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS;IAIlD;;;OAGG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,iBAAiB,EAAE;IAgBjD,2DAA2D;IAC3D,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ProcessRecommender — registers process descriptors and recommends
|
|
4
|
+
* the most relevant ones for a given set of criteria.
|
|
5
|
+
*
|
|
6
|
+
* Delegates scoring to {@link ProcessScorer} and exposes a simple
|
|
7
|
+
* registry + query API analogous to the sibling SkillRouter.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ProcessRecommender = void 0;
|
|
11
|
+
const scorer_1 = require("./scorer");
|
|
12
|
+
const DEFAULT_MAX_RESULTS = 5;
|
|
13
|
+
class ProcessRecommender {
|
|
14
|
+
registry = new Map();
|
|
15
|
+
scorer = new scorer_1.ProcessScorer();
|
|
16
|
+
// ── registration ─────────────────────────────────────────────────────────
|
|
17
|
+
/** Register a single process descriptor. Replaces any existing entry with the same id. */
|
|
18
|
+
register(descriptor) {
|
|
19
|
+
this.registry.set(descriptor.id, descriptor);
|
|
20
|
+
}
|
|
21
|
+
/** Register multiple descriptors at once. */
|
|
22
|
+
registerBatch(descriptors) {
|
|
23
|
+
for (const descriptor of descriptors) {
|
|
24
|
+
this.register(descriptor);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
// ── queries ──────────────────────────────────────────────────────────────
|
|
28
|
+
/**
|
|
29
|
+
* Score all registered processes against the given criteria and return
|
|
30
|
+
* the top results sorted by descending score. Processes that score 0
|
|
31
|
+
* are excluded.
|
|
32
|
+
*/
|
|
33
|
+
recommend(criteria) {
|
|
34
|
+
const maxResults = criteria.maxResults ?? DEFAULT_MAX_RESULTS;
|
|
35
|
+
const results = [];
|
|
36
|
+
for (const process of this.registry.values()) {
|
|
37
|
+
const { score, reasons } = this.scorer.score(process, criteria);
|
|
38
|
+
if (score > 0) {
|
|
39
|
+
results.push({ process, score, reasons });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
results.sort((a, b) => b.score - a.score);
|
|
43
|
+
return results.slice(0, maxResults);
|
|
44
|
+
}
|
|
45
|
+
/** Look up a process descriptor by its id. */
|
|
46
|
+
getById(id) {
|
|
47
|
+
return this.registry.get(id);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* List all registered descriptors, optionally filtered by category
|
|
51
|
+
* and/or domain.
|
|
52
|
+
*/
|
|
53
|
+
list(filter) {
|
|
54
|
+
const all = Array.from(this.registry.values());
|
|
55
|
+
if (!filter) {
|
|
56
|
+
return all;
|
|
57
|
+
}
|
|
58
|
+
return all.filter((process) => {
|
|
59
|
+
if (filter.category && process.category !== filter.category) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
if (filter.domain && process.domain !== filter.domain) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
return true;
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/** Return the number of registered process descriptors. */
|
|
69
|
+
get size() {
|
|
70
|
+
return this.registry.size;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.ProcessRecommender = ProcessRecommender;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProcessScorer — computes a relevance score for a ProcessDescriptor
|
|
3
|
+
* against a set of RecommendationCriteria.
|
|
4
|
+
*
|
|
5
|
+
* Scoring factors:
|
|
6
|
+
* 1. Keyword overlap between criteria text and the process description,
|
|
7
|
+
* task ids, inputs, and outputs.
|
|
8
|
+
* 2. Category bonus when the process category appears in the criteria text.
|
|
9
|
+
* 3. Domain bonus when criteria.domain matches process.domain.
|
|
10
|
+
* 4. Quality score multiplier (boosts/dampens the raw score).
|
|
11
|
+
*/
|
|
12
|
+
import type { ProcessDescriptor, RecommendationCriteria } from './types';
|
|
13
|
+
export interface ScoringResult {
|
|
14
|
+
score: number;
|
|
15
|
+
reasons: string[];
|
|
16
|
+
}
|
|
17
|
+
export declare class ProcessScorer {
|
|
18
|
+
/**
|
|
19
|
+
* Score a single process against the given criteria.
|
|
20
|
+
*
|
|
21
|
+
* Returns a composite score >= 0 and an array of human-readable
|
|
22
|
+
* reason strings explaining what contributed to the score.
|
|
23
|
+
*/
|
|
24
|
+
score(process: ProcessDescriptor, criteria: RecommendationCriteria): ScoringResult;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=scorer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scorer.d.ts","sourceRoot":"","sources":["../../src/processes/scorer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAoCzE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,aAAa;IACxB;;;;;OAKG;IACH,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,sBAAsB,GAAG,aAAa;CA6DnF"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ProcessScorer — computes a relevance score for a ProcessDescriptor
|
|
4
|
+
* against a set of RecommendationCriteria.
|
|
5
|
+
*
|
|
6
|
+
* Scoring factors:
|
|
7
|
+
* 1. Keyword overlap between criteria text and the process description,
|
|
8
|
+
* task ids, inputs, and outputs.
|
|
9
|
+
* 2. Category bonus when the process category appears in the criteria text.
|
|
10
|
+
* 3. Domain bonus when criteria.domain matches process.domain.
|
|
11
|
+
* 4. Quality score multiplier (boosts/dampens the raw score).
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ProcessScorer = void 0;
|
|
15
|
+
// ── helpers ──────────────────────────────────────────────────────────────────
|
|
16
|
+
/** Normalize text to a set of lowercase tokens for overlap scoring. */
|
|
17
|
+
function tokenize(text) {
|
|
18
|
+
return new Set(text
|
|
19
|
+
.toLowerCase()
|
|
20
|
+
.split(/[\s,.\-_/|:;]+/)
|
|
21
|
+
.filter((token) => token.length > 1));
|
|
22
|
+
}
|
|
23
|
+
/** Count how many tokens from `query` appear in `corpus`. */
|
|
24
|
+
function tokenOverlap(query, corpus) {
|
|
25
|
+
let count = 0;
|
|
26
|
+
for (const token of query) {
|
|
27
|
+
if (corpus.has(token)) {
|
|
28
|
+
count += 1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return count;
|
|
32
|
+
}
|
|
33
|
+
// ── constants ────────────────────────────────────────────────────────────────
|
|
34
|
+
const CATEGORY_BONUS = 10;
|
|
35
|
+
const DOMAIN_BONUS = 15;
|
|
36
|
+
/** Range for the quality multiplier: [MIN, MAX]. */
|
|
37
|
+
const QUALITY_MULTIPLIER_MIN = 0.5;
|
|
38
|
+
const QUALITY_MULTIPLIER_MAX = 1.5;
|
|
39
|
+
class ProcessScorer {
|
|
40
|
+
/**
|
|
41
|
+
* Score a single process against the given criteria.
|
|
42
|
+
*
|
|
43
|
+
* Returns a composite score >= 0 and an array of human-readable
|
|
44
|
+
* reason strings explaining what contributed to the score.
|
|
45
|
+
*/
|
|
46
|
+
score(process, criteria) {
|
|
47
|
+
let rawScore = 0;
|
|
48
|
+
const reasons = [];
|
|
49
|
+
// ── 1. Build query tokens from criteria ────────────────────────────
|
|
50
|
+
const queryParts = [criteria.taskDescription];
|
|
51
|
+
if (criteria.repoContext)
|
|
52
|
+
queryParts.push(criteria.repoContext);
|
|
53
|
+
if (criteria.capabilities)
|
|
54
|
+
queryParts.push(...criteria.capabilities);
|
|
55
|
+
const queryTokens = tokenize(queryParts.join(' '));
|
|
56
|
+
// ── 2. Build corpus tokens from process ────────────────────────────
|
|
57
|
+
const corpusParts = [process.name, process.description];
|
|
58
|
+
if (process.category)
|
|
59
|
+
corpusParts.push(process.category);
|
|
60
|
+
if (process.tasks)
|
|
61
|
+
corpusParts.push(...process.tasks);
|
|
62
|
+
if (process.inputs)
|
|
63
|
+
corpusParts.push(...process.inputs);
|
|
64
|
+
if (process.outputs)
|
|
65
|
+
corpusParts.push(...process.outputs);
|
|
66
|
+
const corpusTokens = tokenize(corpusParts.join(' '));
|
|
67
|
+
// ── 3. Keyword overlap ─────────────────────────────────────────────
|
|
68
|
+
if (queryTokens.size > 0 && corpusTokens.size > 0) {
|
|
69
|
+
const overlap = tokenOverlap(queryTokens, corpusTokens);
|
|
70
|
+
if (overlap > 0) {
|
|
71
|
+
const ratio = overlap / queryTokens.size;
|
|
72
|
+
const keywordScore = ratio * 100;
|
|
73
|
+
rawScore += keywordScore;
|
|
74
|
+
reasons.push(`keyword overlap ${overlap}/${queryTokens.size} (${Math.round(ratio * 100)}%)`);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
// ── 4. Category bonus ──────────────────────────────────────────────
|
|
78
|
+
if (process.category) {
|
|
79
|
+
const categoryLower = process.category.toLowerCase();
|
|
80
|
+
const rawQuery = queryParts.join(' ').toLowerCase();
|
|
81
|
+
if (rawQuery.includes(categoryLower)) {
|
|
82
|
+
rawScore += CATEGORY_BONUS;
|
|
83
|
+
reasons.push(`category match "${process.category}"`);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
// ── 5. Domain bonus ────────────────────────────────────────────────
|
|
87
|
+
if (criteria.domain &&
|
|
88
|
+
process.domain &&
|
|
89
|
+
criteria.domain.toLowerCase() === process.domain.toLowerCase()) {
|
|
90
|
+
rawScore += DOMAIN_BONUS;
|
|
91
|
+
reasons.push('domain match');
|
|
92
|
+
}
|
|
93
|
+
// ── 6. Quality multiplier ──────────────────────────────────────────
|
|
94
|
+
if (typeof process.qualityScore === 'number' && rawScore > 0) {
|
|
95
|
+
const clamped = Math.max(0, Math.min(1, process.qualityScore));
|
|
96
|
+
const multiplier = QUALITY_MULTIPLIER_MIN +
|
|
97
|
+
clamped * (QUALITY_MULTIPLIER_MAX - QUALITY_MULTIPLIER_MIN);
|
|
98
|
+
rawScore *= multiplier;
|
|
99
|
+
reasons.push(`quality multiplier x${multiplier.toFixed(2)}`);
|
|
100
|
+
}
|
|
101
|
+
return { score: Math.round(rawScore * 100) / 100, reasons };
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.ProcessScorer = ProcessScorer;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process recommender types for the L6 Agent-Platform.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the catalog's CatalogDiscoveryProcess shape in a
|
|
5
|
+
* platform-level descriptor that is registry-friendly and
|
|
6
|
+
* scoring-friendly, without coupling to the catalog layer.
|
|
7
|
+
*/
|
|
8
|
+
export interface ProcessDescriptor {
|
|
9
|
+
/** Unique identifier for the process (e.g. "dev/code-review"). */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Human-readable name. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** Free-text description of what the process does. */
|
|
14
|
+
description: string;
|
|
15
|
+
/** Optional category grouping (e.g. "dev", "ops"). */
|
|
16
|
+
category?: string;
|
|
17
|
+
/** Optional domain the process belongs to (e.g. "frontend", "security"). */
|
|
18
|
+
domain?: string;
|
|
19
|
+
/** Task identifiers contained in the process. */
|
|
20
|
+
tasks?: string[];
|
|
21
|
+
/** Named inputs the process expects. */
|
|
22
|
+
inputs?: string[];
|
|
23
|
+
/** Named outputs the process produces. */
|
|
24
|
+
outputs?: string[];
|
|
25
|
+
/** Optional 0-1 quality score assigned by external evaluators. */
|
|
26
|
+
qualityScore?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface RecommendationCriteria {
|
|
29
|
+
/** Natural-language description of the task the user wants to accomplish. */
|
|
30
|
+
taskDescription: string;
|
|
31
|
+
/** Optional repo or project context string for additional relevance signals. */
|
|
32
|
+
repoContext?: string;
|
|
33
|
+
/** Optional domain to boost matching processes. */
|
|
34
|
+
domain?: string;
|
|
35
|
+
/** Optional capability keywords the process should cover. */
|
|
36
|
+
capabilities?: string[];
|
|
37
|
+
/** Maximum number of results to return (default: 5). */
|
|
38
|
+
maxResults?: number;
|
|
39
|
+
}
|
|
40
|
+
export interface ProcessRecommendation {
|
|
41
|
+
/** The matched process descriptor. */
|
|
42
|
+
process: ProcessDescriptor;
|
|
43
|
+
/** Computed relevance score (higher is better). */
|
|
44
|
+
score: number;
|
|
45
|
+
/** Human-readable reasons that contributed to the score. */
|
|
46
|
+
reasons: string[];
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/processes/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,iBAAiB;IAChC,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,6EAA6E;IAC7E,eAAe,EAAE,MAAM,CAAC;IACxB,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,sCAAsC;IACtC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Process recommender types for the L6 Agent-Platform.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the catalog's CatalogDiscoveryProcess shape in a
|
|
6
|
+
* platform-level descriptor that is registry-friendly and
|
|
7
|
+
* scoring-friendly, without coupling to the catalog layer.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { createRun, orchestrateIteration, commitEffectResult, commitEffectCancellation, createReplayEngine, createProcessContext, withProcessContext, getActiveProcessContext, requireProcessContext, STATE_CACHE_SCHEMA_VERSION, createStateCacheSnapshot, journalHeadsEqual, normalizeJournalHead, normalizeSnapshot, readStateCache, rebuildStateCache, writeStateCache, hashInvocationKey, EffectRequestedError, EffectPendingError, EffectCancelledError, ParallelPendingError, RunFailedError, replaySchemaVersion, } from "@a5c-ai/babysitter-sdk";
|
|
2
|
+
export type { OrchestrateOptions, IterationResult, EffectAction, CommitEffectResultOptions, CommitEffectResultArtifacts, ProcessContext, DefinedTask, CreateRunOptions, CreateRunResult, ReplayEngine, CreateReplayEngineOptions, StateCacheSnapshot, StateCacheJournalHead, DerivedEffectSummary, } from "@a5c-ai/babysitter-sdk";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,cAAc,EACd,mBAAmB,GACpB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,yBAAyB,EACzB,2BAA2B,EAC3B,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,wBAAwB,CAAC"}
|