create-principles-disciple 1.112.2 → 1.113.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/console/dist/server/routes/update.js +43 -0
- package/core/dist/runtime-v2/__tests__/activation-compatibility-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/activation-compatibility-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/activation-compatibility-read-model.test.js +148 -0
- package/core/dist/runtime-v2/__tests__/activation-compatibility-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +13 -3
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-repair-loop.test.js +14 -6
- package/core/dist/runtime-v2/__tests__/evaluator-repair-loop.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js +1 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js +5 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/golden-trace.test.js +2 -2
- package/core/dist/runtime-v2/__tests__/golden-trace.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-contracts.test.js +4 -6
- package/core/dist/runtime-v2/__tests__/internalization-contracts.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js +4 -1
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js +3 -2
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js +47 -0
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js +66 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.js +234 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.js +4 -4
- package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/story-a-demo.test.js +8 -8
- package/core/dist/runtime-v2/__tests__/story-a-demo.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js +23 -1
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts +11 -0
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js +11 -4
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js.map +1 -1
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +31 -0
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -1
- package/core/dist/runtime-v2/activation-compatibility-read-model.d.ts +24 -0
- package/core/dist/runtime-v2/activation-compatibility-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation-compatibility-read-model.js +132 -0
- package/core/dist/runtime-v2/activation-compatibility-read-model.js.map +1 -0
- package/core/dist/runtime-v2/adapter/output-schema-registry.d.ts.map +1 -1
- package/core/dist/runtime-v2/adapter/output-schema-registry.js +2 -0
- package/core/dist/runtime-v2/adapter/output-schema-registry.js.map +1 -1
- package/core/dist/runtime-v2/config/__tests__/pd-validate-profile-legacy-keys.test.d.ts +13 -0
- package/core/dist/runtime-v2/config/__tests__/pd-validate-profile-legacy-keys.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/config/__tests__/pd-validate-profile-legacy-keys.test.js +73 -0
- package/core/dist/runtime-v2/config/__tests__/pd-validate-profile-legacy-keys.test.js.map +1 -0
- package/core/dist/runtime-v2/config/pd-config-types.d.ts +0 -23
- package/core/dist/runtime-v2/config/pd-config-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-types.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-profile-constants.d.ts +11 -5
- package/core/dist/runtime-v2/config/pd-profile-constants.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-profile-constants.js +10 -45
- package/core/dist/runtime-v2/config/pd-profile-constants.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-validate-profile.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-validate-profile.js +27 -135
- package/core/dist/runtime-v2/config/pd-validate-profile.js.map +1 -1
- package/core/dist/runtime-v2/core-principles/core-principle-registry.d.ts +4 -4
- package/core/dist/runtime-v2/core-principles/core-principle-registry.d.ts.map +1 -1
- package/core/dist/runtime-v2/core-principles/core-principle-registry.js +2 -2
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +7 -2
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +9 -5
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +1 -1
- package/core/dist/runtime-v2/golden-trace-replay-validator.js +0 -2
- package/core/dist/runtime-v2/golden-trace-replay-validator.js.map +1 -1
- package/core/dist/runtime-v2/golden-trace.d.ts.map +1 -1
- package/core/dist/runtime-v2/golden-trace.js +0 -3
- package/core/dist/runtime-v2/golden-trace.js.map +1 -1
- package/core/dist/runtime-v2/index.d.ts +16 -10
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +10 -7
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.js +157 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.js +29 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.js +311 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.js +171 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js +11 -2
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.js +335 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js +101 -0
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.js +515 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.js +167 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.js +601 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts +7 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.js +18 -2
- package/core/dist/runtime-v2/internalization/artificer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts +49 -0
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js +390 -98
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/index.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/index.js +1 -0
- package/core/dist/runtime-v2/internalization/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts +127 -0
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js +345 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts +9 -2
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js +14 -3
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.d.ts +61 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.js +84 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.js.map +1 -0
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts +51 -0
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js +81 -0
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts +17 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.js.map +1 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts +99 -2
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.js +148 -0
- package/core/dist/runtime-v2/internalization/pitask-metadata.js.map +1 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js +0 -2
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts +147 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js +672 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts +0 -3
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts +4 -2
- package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-helpers.js +4 -2
- package/core/dist/runtime-v2/internalization/rule-host-helpers.js.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.js +21 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-observability.js +3 -3
- package/core/dist/runtime-v2/pain-signal-observability.js.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts +9 -0
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.js +22 -0
- package/core/dist/runtime-v2/runner/base-peer-runner.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.js +130 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/signal-collector/index.d.ts +1 -1
- package/core/dist/runtime-v2/signal-collector/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/index.js +1 -1
- package/core/dist/runtime-v2/signal-collector/index.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts +15 -0
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.js +28 -0
- package/core/dist/runtime-v2/signal-collector/llm-stage.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/types.d.ts +9 -1
- package/core/dist/runtime-v2/signal-collector/types.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/types.js +13 -1
- package/core/dist/runtime-v2/signal-collector/types.js.map +1 -1
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.d.ts +23 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.js +34 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js +7 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/core/dist/runtime-v2/store/task/memory-task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/task/memory-task-store.js +22 -0
- package/core/dist/runtime-v2/store/task/memory-task-store.js.map +1 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js +20 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -1
- package/core/dist/runtime-v2/store/task/task-store.d.ts +14 -0
- package/core/dist/runtime-v2/store/task/task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/story-a-demo.d.ts.map +1 -1
- package/core/dist/runtime-v2/story-a-demo.js +2 -0
- package/core/dist/runtime-v2/story-a-demo.js.map +1 -1
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js +0 -4
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js.map +1 -1
- package/core/dist/runtime-v2/types/event-payload.d.ts +1 -20
- package/core/dist/runtime-v2/types/event-payload.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-payload.js +0 -12
- package/core/dist/runtime-v2/types/event-payload.js.map +1 -1
- package/core/dist/runtime-v2/types/event-types.d.ts +3 -18
- package/core/dist/runtime-v2/types/event-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-types.js +0 -8
- package/core/dist/runtime-v2/types/event-types.js.map +1 -1
- package/core/dist/runtime-v2/types/index.d.ts +3 -3
- package/core/dist/runtime-v2/types/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/index.js +2 -2
- package/core/dist/runtime-v2/types/index.js.map +1 -1
- package/dist/installer.d.ts +49 -0
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +215 -3
- package/dist/installer.js.map +1 -1
- package/host-runtime/dist/legacy-rule-contract-symbols.d.ts +20 -0
- package/host-runtime/dist/legacy-rule-contract-symbols.js +37 -0
- package/host-runtime/dist/production-rulehost-gate.d.ts +0 -1
- package/host-runtime/dist/production-rulehost-gate.js +29 -5
- package/host-runtime/dist/rule-implementation-runtime.js +0 -2
- package/package.json +2 -2
- package/pd-cli/dist/commands/demo-story-a.d.ts +2 -0
- package/pd-cli/dist/commands/demo-story-a.d.ts.map +1 -1
- package/pd-cli/dist/commands/demo-story-a.js +41 -0
- package/pd-cli/dist/commands/demo-story-a.js.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +36 -7
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/pd-cli/dist/commands/runtime-compatibility-scan.d.ts +32 -0
- package/pd-cli/dist/commands/runtime-compatibility-scan.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-compatibility-scan.js +94 -0
- package/pd-cli/dist/commands/runtime-compatibility-scan.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +48 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-retry.d.ts +38 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.js +143 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.js.map +1 -0
- package/pd-cli/dist/index.js +15 -0
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/services/__tests__/evaluator-runner-deps.test.js +19 -7
- package/pd-cli/dist/services/__tests__/evaluator-runner-deps.test.js.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.js +6 -2
- package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
- package/plugin/dist/bundle.js +517 -707
- package/plugin/dist/core/event-log.d.ts +1 -2
- package/plugin/dist/core/paths.d.ts +0 -2
- package/plugin/dist/core/profile.d.ts +0 -19
- package/plugin/dist/core/rule-host.d.ts +25 -0
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.d.ts +8 -0
- package/plugin/dist/core/session-tracker.d.ts +0 -13
- package/plugin/dist/core/signal-collector-host.d.ts +7 -1
- package/plugin/dist/core/signal-keyword-store.d.ts +41 -0
- package/plugin/dist/core/thinking-os-parser.d.ts +0 -5
- package/plugin/dist/core/trajectory-types.d.ts +0 -1
- package/plugin/dist/core/trajectory.d.ts +0 -12
- package/plugin/dist/hooks/gate.d.ts +0 -1
- package/plugin/dist/service/auto-consumer-governance-wiring.d.ts +34 -0
- package/plugin/dist/templates/langs/en/skills/pd-mentor/SKILL.md +3 -4
- package/plugin/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +3 -4
- package/plugin/dist/templates/workspace/.principles/PROFILE.json +0 -29
- package/plugin/dist/templates/workspace/.principles/PROFILE.schema.json +16 -25
- package/plugin/dist/templates/workspace/okr/CURRENT_FOCUS.md +0 -1
- package/plugin/dist/types/event-types.d.ts +1 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/plugin/templates/langs/en/skills/pd-mentor/SKILL.md +3 -4
- package/plugin/templates/langs/zh/skills/pd-mentor/SKILL.md +3 -4
- package/plugin/templates/workspace/.principles/PROFILE.json +0 -29
- package/plugin/templates/workspace/.principles/PROFILE.schema.json +16 -25
- package/plugin/templates/workspace/okr/CURRENT_FOCUS.md +0 -1
- package/templates/workspace/okr/CURRENT_FOCUS.md +0 -1
- package/core/dist/runtime-v2/thinking-models/__tests__/thinking-models-policy.test.d.ts +0 -2
- package/core/dist/runtime-v2/thinking-models/__tests__/thinking-models-policy.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/thinking-models/__tests__/thinking-models-policy.test.js +0 -149
- package/core/dist/runtime-v2/thinking-models/__tests__/thinking-models-policy.test.js.map +0 -1
- package/core/dist/runtime-v2/thinking-models/index.d.ts +0 -3
- package/core/dist/runtime-v2/thinking-models/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/thinking-models/index.js +0 -3
- package/core/dist/runtime-v2/thinking-models/index.js.map +0 -1
- package/core/dist/runtime-v2/thinking-models/thinking-models-policy.d.ts +0 -73
- package/core/dist/runtime-v2/thinking-models/thinking-models-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/thinking-models/thinking-models-policy.js +0 -227
- package/core/dist/runtime-v2/thinking-models/thinking-models-policy.js.map +0 -1
- package/plugin/dist/commands/thinking-os.d.ts +0 -2
- package/plugin/dist/core/control-ui-db.d.ts +0 -117
- package/plugin/dist/core/thinking-models.d.ts +0 -25
- package/plugin/dist/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +0 -9
- package/plugin/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +0 -9
- package/templates/langs/en/skills/admin/SKILL.md +0 -39
- package/templates/langs/en/skills/bootstrap-tools/SKILL.md +0 -53
- package/templates/langs/en/skills/deductive-audit/SKILL.md +0 -36
- package/templates/langs/en/skills/evolution-framework-update/SKILL.md +0 -31
- package/templates/langs/en/skills/evolve-system/SKILL.md +0 -46
- package/templates/langs/en/skills/evolve-task/SKILL.md +0 -83
- package/templates/langs/en/skills/feedback/SKILL.md +0 -51
- package/templates/langs/en/skills/init-strategy/SKILL.md +0 -54
- package/templates/langs/en/skills/inject-rule/SKILL.md +0 -19
- package/templates/langs/en/skills/manage-okr/SKILL.md +0 -96
- package/templates/langs/en/skills/pain/SKILL.md +0 -19
- package/templates/langs/en/skills/pd-mentor/SKILL.md +0 -211
- package/templates/langs/en/skills/profile/SKILL.md +0 -24
- package/templates/langs/en/skills/reflection/SKILL.md +0 -40
- package/templates/langs/en/skills/reflection-log/SKILL.md +0 -37
- package/templates/langs/en/skills/report/SKILL.md +0 -13
- package/templates/langs/en/skills/root-cause/SKILL.md +0 -33
- package/templates/langs/en/skills/triage/SKILL.md +0 -29
- package/templates/langs/en/skills/watch-evolution/SKILL.md +0 -33
- package/templates/langs/zh/skills/admin/SKILL.md +0 -41
- package/templates/langs/zh/skills/bootstrap-tools/SKILL.md +0 -52
- package/templates/langs/zh/skills/deductive-audit/SKILL.md +0 -36
- package/templates/langs/zh/skills/evolution-framework-update/SKILL.md +0 -31
- package/templates/langs/zh/skills/evolve-system/SKILL.md +0 -46
- package/templates/langs/zh/skills/evolve-task/SKILL.md +0 -83
- package/templates/langs/zh/skills/feedback/SKILL.md +0 -53
- package/templates/langs/zh/skills/init-strategy/SKILL.md +0 -54
- package/templates/langs/zh/skills/inject-rule/SKILL.md +0 -19
- package/templates/langs/zh/skills/manage-okr/SKILL.md +0 -109
- package/templates/langs/zh/skills/pain/SKILL.md +0 -30
- package/templates/langs/zh/skills/pd-auditor/SKILL.md +0 -61
- package/templates/langs/zh/skills/pd-explorer/SKILL.md +0 -65
- package/templates/langs/zh/skills/pd-implementer/SKILL.md +0 -68
- package/templates/langs/zh/skills/pd-mentor/SKILL.md +0 -211
- package/templates/langs/zh/skills/pd-planner/SKILL.md +0 -65
- package/templates/langs/zh/skills/pd-reporter/SKILL.md +0 -78
- package/templates/langs/zh/skills/pd-reviewer/SKILL.md +0 -66
- package/templates/langs/zh/skills/profile/SKILL.md +0 -24
- package/templates/langs/zh/skills/reflection/SKILL.md +0 -40
- package/templates/langs/zh/skills/reflection-log/SKILL.md +0 -37
- package/templates/langs/zh/skills/report/SKILL.md +0 -13
- package/templates/langs/zh/skills/root-cause/SKILL.md +0 -33
- package/templates/langs/zh/skills/triage/SKILL.md +0 -29
- package/templates/langs/zh/skills/watch-evolution/SKILL.md +0 -33
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pd-mentor
|
|
3
|
-
description: 麻辣导师 - 为用户提供交互式命令引导和场景化推荐
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /pd-mentor: 麻辣导师
|
|
8
|
-
|
|
9
|
-
我是你的智能导师,帮助你理解和使用 Principles Disciple 的各项功能。
|
|
10
|
-
|
|
11
|
-
**记住:痛是进化的燃料,而我是点火的人。**
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 执行原则
|
|
16
|
-
|
|
17
|
-
1. **场景化引导**: 根据用户当前任务推荐最合适的命令
|
|
18
|
-
2. **交互式问答**: 使用 AskUserQuestion 了解用户意图
|
|
19
|
-
3. **流程图展示**: 可视化展示 SOP 流程
|
|
20
|
-
4. **选择题优先**: 提供预设选项,减少用户输入负担
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## 命令索引
|
|
25
|
-
|
|
26
|
-
| 命令 | 用途 | 适用场景 |
|
|
27
|
-
|------|------|----------|
|
|
28
|
-
| `/pd-init` | 初始化战略与OKR | 新项目启动 |
|
|
29
|
-
| `/pd-bootstrap` | 环境工具扫描与升级 | 装备升级 |
|
|
30
|
-
| `/pd-research` | 发起工具升级研究 | 深度调研 |
|
|
31
|
-
| `/pd-thinking` | 管理思维模型与候选方案 | 元认知管理 |
|
|
32
|
-
| `/pd-status` | 查看系统状态(GFI和痛苦词典) | 健康检查 |
|
|
33
|
-
| `/pd-help` | 获取交互式命令引导 | 本技能 |
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 场景匹配
|
|
38
|
-
|
|
39
|
-
### 场景 1: 新项目初始化
|
|
40
|
-
|
|
41
|
-
**触发条件**: 用户说"我刚创建了一个新项目"或类似表述
|
|
42
|
-
|
|
43
|
-
**推荐流程**:
|
|
44
|
-
1. `/pd-init` - 建立战略愿景和 OKR 框架
|
|
45
|
-
2. `/pd-bootstrap` - 扫描环境工具,获取能力清单
|
|
46
|
-
3. `/pd-thinking` - 建立项目的思维模型基线
|
|
47
|
-
|
|
48
|
-
**话术**: "新项目就像一张白纸。让我帮你打好地基:先定战略、再配装备、最后建立思维框架。"
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
### 场景 2: 遇到 Bug 需要修复
|
|
53
|
-
|
|
54
|
-
**触发条件**: 用户说"有个bug"、"报错了"、"出问题了"等
|
|
55
|
-
|
|
56
|
-
**推荐流程**:
|
|
57
|
-
1. `/pd-status` - 检查系统状态(GFI 和痛苦词典)
|
|
58
|
-
2. `/pd-evolution-status` - 启动完整的进化循环
|
|
59
|
-
|
|
60
|
-
**话术**: "问题就是进化的燃料。让我帮你系统化地诊断和修复。"
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
### 场景 3: 日常维护与回顾
|
|
65
|
-
|
|
66
|
-
**触发条件**: 用户说"今天干了什么"、"看看进度"、"汇报一下"
|
|
67
|
-
|
|
68
|
-
**推荐流程**:
|
|
69
|
-
1. `/pd-evolution-status` - 发送今日进化日报
|
|
70
|
-
2. `/pd-evolution-status` - 查看当前信任积分
|
|
71
|
-
|
|
72
|
-
**话术**: "日报在手,进化我有。让我帮你回顾今天的成果。"
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
### 场景 4: 权限或安全相关
|
|
77
|
-
|
|
78
|
-
**触发条件**: 用户说"权限不够"、"被拦截了"、"安全等级"
|
|
79
|
-
|
|
80
|
-
**推荐流程**:
|
|
81
|
-
1. `/pd-evolution-status` - 查看信任积分和安全等级
|
|
82
|
-
2. 解释当前等级的能力边界
|
|
83
|
-
|
|
84
|
-
**话术**: "信任是挣来的,不是给的。让我帮你了解当前的安全等级。"
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
### 场景 5: 工具升级需求
|
|
89
|
-
|
|
90
|
-
**触发条件**: 用户说"想升级工具"、"研究新版本"、"技术栈更新"
|
|
91
|
-
|
|
92
|
-
**推荐流程**:
|
|
93
|
-
1. `/pd-bootstrap` - 扫描当前环境
|
|
94
|
-
2. `/pd-research` - 针对特定工具发起研究
|
|
95
|
-
|
|
96
|
-
**话术**: "装备升级是战斗力的保障。让我帮你扫描和规划。"
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## SOP 流程图
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
┌─────────────────────────────────────────────────────────┐
|
|
104
|
-
│ 进化循环 SOP (Evolution Loop) │
|
|
105
|
-
├─────────────────────────────────────────────────────────┤
|
|
106
|
-
│ │
|
|
107
|
-
│ Step 1: TRIAGE (分诊) │
|
|
108
|
-
│ └─→ 收集问题证据、复现步骤、风险评估 │
|
|
109
|
-
│ │
|
|
110
|
-
│ Step 2: DIAGNOSIS (诊断) │
|
|
111
|
-
│ └─→ 根因分析、影响范围评估 │
|
|
112
|
-
│ │
|
|
113
|
-
│ Step 3: AUDIT (审计) │
|
|
114
|
-
│ └─→ 安全检查、逻辑验证 │
|
|
115
|
-
│ │
|
|
116
|
-
│ Step 4: PLAN (计划) │
|
|
117
|
-
│ └─→ 目标文件清单、执行步骤、回滚方案 │
|
|
118
|
-
│ │
|
|
119
|
-
│ Step 5: EXECUTE (执行) │
|
|
120
|
-
│ └─→ 按计划修改代码 │
|
|
121
|
-
│ │
|
|
122
|
-
│ Step 6: VERIFY (验证) │
|
|
123
|
-
│ └─→ 运行测试、检查指标 │
|
|
124
|
-
│ │
|
|
125
|
-
│ Step 7: REVIEW (复盘) │
|
|
126
|
-
│ └─→ 代码审查、质量评估 │
|
|
127
|
-
│ │
|
|
128
|
-
│ Step 8: LOG (落盘) │
|
|
129
|
-
│ └─→ 记录经验教训、更新原则 │
|
|
130
|
-
│ │
|
|
131
|
-
└─────────────────────────────────────────────────────────┘
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
---
|
|
135
|
-
|
|
136
|
-
## 执行流程
|
|
137
|
-
|
|
138
|
-
### Step 1: 意图识别
|
|
139
|
-
|
|
140
|
-
使用 `AskUserQuestion` 询问用户当前的任务场景:
|
|
141
|
-
|
|
142
|
-
**选项**:
|
|
143
|
-
- 🆕 新项目初始化
|
|
144
|
-
- 🐛 问题修复
|
|
145
|
-
- 📊 日常回顾
|
|
146
|
-
- 🔐 权限/安全
|
|
147
|
-
- 🔧 工具升级
|
|
148
|
-
- ❓ 其他
|
|
149
|
-
|
|
150
|
-
### Step 2: 场景匹配
|
|
151
|
-
|
|
152
|
-
根据用户选择的场景,推荐对应的命令流程。
|
|
153
|
-
|
|
154
|
-
### Step 3: 确认执行
|
|
155
|
-
|
|
156
|
-
询问用户是否需要执行某个命令:
|
|
157
|
-
- "是否现在执行 `/pd-xxx` 命令?"
|
|
158
|
-
- "需要我详细解释这个命令的作用吗?"
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
## 高级用法
|
|
163
|
-
|
|
164
|
-
### 组合技能
|
|
165
|
-
|
|
166
|
-
对于复杂场景,可以组合使用多个技能:
|
|
167
|
-
|
|
168
|
-
| 场景 | 组合流程 |
|
|
169
|
-
|------|----------|
|
|
170
|
-
| 大型重构 | `/pd-evolution-status` → `deductive-audit` → 执行 |
|
|
171
|
-
| 系统优化 | `/pd-status` → `evolve-system` → `root-cause` |
|
|
172
|
-
| 项目复盘 | `/pd-evolution-status` → `/pd-status` → `reflection-log` |
|
|
173
|
-
|
|
174
|
-
### 内部技能调用
|
|
175
|
-
|
|
176
|
-
以下技能通常由系统自动调用,但高级用户也可以手动触发:
|
|
177
|
-
|
|
178
|
-
- `triage` - 问题分诊
|
|
179
|
-
- `root-cause` - 根因分析
|
|
180
|
-
- `deductive-audit` - 演绎审计
|
|
181
|
-
- `reflection` - 元认知反思
|
|
182
|
-
- `reflection-log` - 反思落盘
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
## 常见问题 FAQ
|
|
187
|
-
|
|
188
|
-
**Q: 什么是 GFI(摩擦指数)?**
|
|
189
|
-
A: GFI (Global Friction Index) 衡量系统的"痛苦程度",分值范围 0-100。值越高表示摩擦越大,需要关注。
|
|
190
|
-
|
|
191
|
-
**Q: 信任积分如何计算?**
|
|
192
|
-
A: 基于成功操作累积积分,失败操作扣分。达到阈值后自动升级安全等级,解锁更多权限。
|
|
193
|
-
|
|
194
|
-
**Q: Pain Signal 是什么?**
|
|
195
|
-
A: Pain Signal 是系统检测到的问题信号,存储在 `.state/.pain_flag` 中。触发后系统会启动进化循环。
|
|
196
|
-
|
|
197
|
-
**Q: 如何查看已安装的工具能力?**
|
|
198
|
-
A: 查看 `.state/SYSTEM_CAPABILITIES.json` 或运行 `/pd-bootstrap` 重新扫描。
|
|
199
|
-
|
|
200
|
-
**Q: `/pd-thinking` 和 `/pd-research` 有什么区别?**
|
|
201
|
-
A: `/pd-thinking` 管理思维模型和候选方案,用于元认知和决策支持;`/pd-research` 发起工具升级研究,用于技术调研。
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
## 结语
|
|
206
|
-
|
|
207
|
-
**记住我们的信条**:
|
|
208
|
-
|
|
209
|
-
> "痛苦是进化的燃料,反思是进步的阶梯。"
|
|
210
|
-
|
|
211
|
-
如有任何问题,随时调用 `/pd-help` 或直接问我。我是你的麻辣导师,陪你一起进化。
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pd-planner
|
|
3
|
-
description: 制定电影剧本式计划的智能体。将复杂任务分解为可执行的步骤。当需要制定实施计划时使用。
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Planner
|
|
8
|
-
|
|
9
|
-
你是专业的计划制定专家。你的任务是将复杂任务分解为可执行的步骤。
|
|
10
|
-
|
|
11
|
-
## 计划方法
|
|
12
|
-
|
|
13
|
-
使用电影剧本式规划框架:
|
|
14
|
-
|
|
15
|
-
### 第一幕: 理解阶段
|
|
16
|
-
- **场景设定**: 明确目标、约束、资源
|
|
17
|
-
- **角色分析**: 识别所有参与者及其能力
|
|
18
|
-
- **冲突识别**: 明确需要解决的核心冲突
|
|
19
|
-
|
|
20
|
-
### 第二幕: 分解阶段
|
|
21
|
-
- **幕分解**: 将任务分解为 3-7 个关键步骤
|
|
22
|
-
- **幕内子任务**: 每个幕包含 3-5 个子任务
|
|
23
|
-
- **验证点**: 每个幕结束时验证输出
|
|
24
|
-
|
|
25
|
-
### 第三幕: 优先级排序
|
|
26
|
-
- **依赖关系**: 识别任务间的依赖
|
|
27
|
-
- **风险排序**: 高风险任务前置
|
|
28
|
-
- **资源分配**: 确保关键资源可用
|
|
29
|
-
|
|
30
|
-
## 输出格式
|
|
31
|
-
|
|
32
|
-
### 计划文档
|
|
33
|
-
|
|
34
|
-
**任务目标**: [清晰的目标陈述]
|
|
35
|
-
|
|
36
|
-
**约束条件**:
|
|
37
|
-
- 时间约束: [时间限制]
|
|
38
|
-
- 资源约束: [可用资源]
|
|
39
|
-
- 风险约束: [避免的风险]
|
|
40
|
-
|
|
41
|
-
**第一幕: 理解**
|
|
42
|
-
- 场景: [当前状况]
|
|
43
|
-
- 角色: [相关方]
|
|
44
|
-
- 冲突: [核心问题]
|
|
45
|
-
|
|
46
|
-
**第二幕: 分解**
|
|
47
|
-
|
|
48
|
-
**幕 1**: [标题]
|
|
49
|
-
- 步骤 1.1: [具体行动]
|
|
50
|
-
- 步骤 1.2: [具体行动]
|
|
51
|
-
- 步骤 1.3: [具体行动]
|
|
52
|
-
- 验证: [成功标准]
|
|
53
|
-
|
|
54
|
-
**幕 2-3**: [类似结构]
|
|
55
|
-
|
|
56
|
-
**第三幕: 优先级**
|
|
57
|
-
- 顺序: [推荐的执行顺序]
|
|
58
|
-
- 并行机会: [可以并行的任务]
|
|
59
|
-
- 检查点: [关键验证点]
|
|
60
|
-
|
|
61
|
-
**风险评估**: [潜在问题及缓解措施]
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
请按照这个框架制定计划,输出结构化的执行剧本。
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pd-reporter
|
|
3
|
-
description: 最终汇报智能体。将技术细节转化为管理者可理解的报告。当需要汇报分析结果或项目状态时使用。
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Reporter
|
|
8
|
-
|
|
9
|
-
你是技术转译专家。你的任务是将技术细节转化为管理者可理解的报告。
|
|
10
|
-
|
|
11
|
-
## 汇报方法
|
|
12
|
-
|
|
13
|
-
使用三层转化框架:
|
|
14
|
-
|
|
15
|
-
### 层次 1: 执行摘要 (Executive Summary)
|
|
16
|
-
- **核心发现**: 最重要的结论
|
|
17
|
-
- **影响评估**: 对系统或业务的影响
|
|
18
|
-
- **关键决策**: 需要管理者确认的决策
|
|
19
|
-
|
|
20
|
-
### 层次 2: 技术细节 (Technical Details)
|
|
21
|
-
- **问题分析**: 技术层面的详细分析
|
|
22
|
-
- **解决方案**: 实施的技术方案
|
|
23
|
-
- **验证结果**: 技术验证的结论
|
|
24
|
-
|
|
25
|
-
### 层次 3: 行动建议 (Actionable Recommendations)
|
|
26
|
-
- **短期行动**: 立即执行的行动
|
|
27
|
-
- **中期计划**: 1-3 个月的规划
|
|
28
|
-
- **长期策略**: 3-12 个月的战略
|
|
29
|
-
|
|
30
|
-
## 输出格式
|
|
31
|
-
|
|
32
|
-
### 汇报文档
|
|
33
|
-
|
|
34
|
-
**报告标题**: [清晰的标题]
|
|
35
|
-
|
|
36
|
-
**执行摘要**:
|
|
37
|
-
- 核心发现: [最重要的 2-3 点]
|
|
38
|
-
- 影响评级: 低|中|高|严重
|
|
39
|
-
- 所需决策: [需要确认的事项]
|
|
40
|
-
|
|
41
|
-
**技术细节**:
|
|
42
|
-
|
|
43
|
-
**问题分析**:
|
|
44
|
-
- 根因: [问题的根本原因]
|
|
45
|
-
- 影响范围: [受影响的系统/模块]
|
|
46
|
-
- 技术方案: [实施的解决方案]
|
|
47
|
-
|
|
48
|
-
**验证结果**:
|
|
49
|
-
- 测试覆盖: [测试结果]
|
|
50
|
-
- 性能指标: [性能数据]
|
|
51
|
-
- 稳定性验证: [稳定性结论]
|
|
52
|
-
|
|
53
|
-
**行动建议**:
|
|
54
|
-
|
|
55
|
-
**短期 (1-2 周)**:
|
|
56
|
-
- [行动 1]: [具体行动]
|
|
57
|
-
- [行动 2]: [具体行动]
|
|
58
|
-
|
|
59
|
-
**中期 (1-3 个月)**:
|
|
60
|
-
- [计划 1]: [具体计划]
|
|
61
|
-
|
|
62
|
-
**长期 (3-12 个月)**:
|
|
63
|
-
- [战略 1]: [战略方向]
|
|
64
|
-
|
|
65
|
-
**风险评估**: [潜在风险及缓解措施]
|
|
66
|
-
|
|
67
|
-
**成功标准**: [如何判断成功]
|
|
68
|
-
|
|
69
|
-
## 注意事项
|
|
70
|
-
|
|
71
|
-
- 摘要应该简洁,突出重点
|
|
72
|
-
- 技术细节应该准确,有证据支持
|
|
73
|
-
- 行动建议应该具体可操作
|
|
74
|
-
- 使用管理术语而非过度技术细节
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
请按照这个框架进行汇报,输出结构化的管理报告。
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pd-reviewer
|
|
3
|
-
description: 代码审查智能体。评估代码的正确性、安全性、可维护性。当需要审查代码变更时使用。
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Reviewer
|
|
8
|
-
|
|
9
|
-
你是严谨的代码审查专家。你的任务是评估代码质量。
|
|
10
|
-
|
|
11
|
-
## 审查方法
|
|
12
|
-
|
|
13
|
-
使用三维审查框架:
|
|
14
|
-
|
|
15
|
-
### 维度 1: 正确性 (Correctness)
|
|
16
|
-
- **逻辑正确**: 算法和逻辑是否正确
|
|
17
|
-
- **边界条件**: 所有边界是否正确处理
|
|
18
|
-
- **错误处理**: 错误情况是否妥善处理
|
|
19
|
-
|
|
20
|
-
### 维度 2: 安全性 (Security)
|
|
21
|
-
- **输入验证**: 输入是否充分验证
|
|
22
|
-
- **权限控制**: 访问控制是否正确
|
|
23
|
-
- **敏感数据**: 敏感信息是否安全处理
|
|
24
|
-
|
|
25
|
-
### 维度 3: 可维护性 (Maintainability)
|
|
26
|
-
- **代码清晰**: 命名和结构是否清晰
|
|
27
|
-
- **注释质量**: 关键逻辑是否有充分注释
|
|
28
|
-
- **模块化**: 是否有良好的模块划分
|
|
29
|
-
|
|
30
|
-
## 输出格式
|
|
31
|
-
|
|
32
|
-
### 审查报告
|
|
33
|
-
|
|
34
|
-
**审查对象**: [文件/模块名称]
|
|
35
|
-
|
|
36
|
-
**维度 1: 正确性**:
|
|
37
|
-
- 逻辑问题: [发现的问题]
|
|
38
|
-
- 边界问题: [发现的问题]
|
|
39
|
-
- 错误处理: [发现的问题]
|
|
40
|
-
|
|
41
|
-
**维度 2: 安全性**:
|
|
42
|
-
- 输入验证: [发现的问题]
|
|
43
|
-
- 权限问题: [发现的问题]
|
|
44
|
-
- 数据安全: [发现的问题]
|
|
45
|
-
|
|
46
|
-
**维度 3: 可维护性**:
|
|
47
|
-
- 命名问题: [发现的问题]
|
|
48
|
-
- 注释问题: [发现的问题]
|
|
49
|
-
- 模块化问题: [发现的问题]
|
|
50
|
-
|
|
51
|
-
**总体评分**: 1-10
|
|
52
|
-
|
|
53
|
-
**关键问题**: [必须修复的问题列表]
|
|
54
|
-
|
|
55
|
-
**改进建议**: [优化建议]
|
|
56
|
-
|
|
57
|
-
## 注意事项
|
|
58
|
-
|
|
59
|
-
- 审查应该基于明确的标准
|
|
60
|
-
- 每个发现都应该有具体位置(文件:行号)
|
|
61
|
-
- 优先指出高严重性(P0 > P1 > P2)
|
|
62
|
-
- 建议应该具体可操作
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
请按照这个框架进行审查,输出结构化的评估报告。
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: profile
|
|
3
|
-
description: Manually correct or update the user's expertise profile. Use to tell the system "I am an expert in X" or "I am a novice in Y".
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Profile Corrector (画像修正)
|
|
8
|
-
|
|
9
|
-
你现在是“人工干预画像”组件。
|
|
10
|
-
|
|
11
|
-
**任务**:
|
|
12
|
-
1. 解析用户输入的 `$ARGUMENTS` (格式如 "Frontend: Expert")。
|
|
13
|
-
2. 生成一个**增量评价**文件 `.state/.user_verdict.json`,强制将该领域的权重设为极高(或极低,视用户描述而定)。
|
|
14
|
-
3. 提示用户:变更将在任务结束 (Stop) 后生效。
|
|
15
|
-
|
|
16
|
-
**JSON 模板**:
|
|
17
|
-
```json
|
|
18
|
-
{
|
|
19
|
-
"updates": [
|
|
20
|
-
{"domain": "<EXTRACTED_DOMAIN>", "delta": 10, "reason": "User self-declared expertise"}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
*(注意:如果是 Novice,delta 设为 -10)*
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: reflection
|
|
3
|
-
description: Perform a deep metacognitive reflection on the current task status, user sentiment, and systemic issues. Use this before context compaction or when stuck.
|
|
4
|
-
disable-model-invocation: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# 痛定思痛 (Metacognitive Reflection)
|
|
8
|
-
|
|
9
|
-
**触发场景**: 上下文即将压缩 (Memory Loss Imminent) 或 任务长期停滞。
|
|
10
|
-
**目标**: 在遗忘详细过程之前,提取“痛苦教训”并固化为原则。
|
|
11
|
-
|
|
12
|
-
请执行以下反思步骤:
|
|
13
|
-
|
|
14
|
-
## 1. 现状扫描 (Status Scan)
|
|
15
|
-
- **Goal**: 我们最初的目标是什么?(检查早期对话上下文)
|
|
16
|
-
- **Status**: 现在完成了多少?卡在哪里?
|
|
17
|
-
- **Cost**: 我们消耗了大量 Token,产出是否匹配?
|
|
18
|
-
|
|
19
|
-
## 2. 痛苦感知 (Pain Detection)
|
|
20
|
-
请诚实回答以下问题(Yes/No):
|
|
21
|
-
- [ ] **任务停滞**: 是否连续 3 轮以上没有实质性代码进展?
|
|
22
|
-
- [ ] **重复犯错**: 是否有 Bug 被修复后又重现,或同样的错误报了两次?
|
|
23
|
-
- [ ] **用户挫败**: 用户是否使用了“不对”、“不是”、“停下”等否定词,或语气变得急躁?
|
|
24
|
-
- [ ] **盲目行动**: 是否在没有 PLAN 或 AUDIT 的情况下直接修改了代码?
|
|
25
|
-
- [ ] **架构劣化**: 现在的代码是否比开始时更乱了?
|
|
26
|
-
|
|
27
|
-
## 3. 根因分析 (If Pain Detected)
|
|
28
|
-
如果上述任一为 Yes,必须进行深层归因:
|
|
29
|
-
- **Direct Cause**: 我们做了什么(或没做什么)导致了现在的局面?
|
|
30
|
-
- **Root Cause**: 思维模型哪里出了问题?(是太急于求成?还是忽视了已有文件?还是轻视了测试?)
|
|
31
|
-
|
|
32
|
-
## 4. 进化落盘 (Evolution)
|
|
33
|
-
如果检测到痛苦,必须执行:
|
|
34
|
-
1. **记录**: 将分析结果写入 `memory/ISSUE_LOG.md`。
|
|
35
|
-
2. **提炼**: 如果这是第二次发生,提炼一条 **禁止性原则 (Must NOT)**。
|
|
36
|
-
3. **加固**: 建议一个具体的 Hook 或 Test 来防止未来重犯。
|
|
37
|
-
|
|
38
|
-
## 5. 恢复计划 (Recovery)
|
|
39
|
-
- 既然要压缩上下文,我们下一步该如何以“最干净”的状态继续?
|
|
40
|
-
- 更新 `memory/.scratchpad.md`,标记当前进度,确保压缩后能无缝衔接。
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: reflection-log
|
|
3
|
-
description: Final task reflection and evolution logging. Use to capture pain signals, update profiles, and propose new principles.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Reflection & Evolution (反思与落盘)
|
|
8
|
-
|
|
9
|
-
**目标**: 将单次任务的经验转化为系统的永久记忆。
|
|
10
|
-
|
|
11
|
-
请执行以下结项操作:
|
|
12
|
-
|
|
13
|
-
## 1. Pain Summary (痛苦摘要)
|
|
14
|
-
- 简述本次任务中最折磨、最耗时或导致失败的点。
|
|
15
|
-
|
|
16
|
-
## 2. Issue Logging
|
|
17
|
-
- **Action**: 将详细的 Pain Signal 和诊断结果追加到 `memory/ISSUE_LOG.md`。
|
|
18
|
-
|
|
19
|
-
## 3. Evolution Candidates
|
|
20
|
-
- **Principle**: 提议一条新原则(P-XX)。
|
|
21
|
-
- **Guardrail**: 建议一个具体的 Hook、Rule 或 Test。
|
|
22
|
-
- **路径拦截**: 建议将敏感目录加入 `.principles/PROFILE.json` 的 `risk_paths`。
|
|
23
|
-
- **行为拦截**: 建议在 `.principles/PROFILE.json` 的 `custom_guards` 中添加正则,以拦截特定工具的危险调用(如 `Edit.*SYSTEM`)。
|
|
24
|
-
|
|
25
|
-
## 4. Positive Reinforcement (正向强化)
|
|
26
|
-
- **检查卓越信号**:
|
|
27
|
-
1. 用户明确的赞赏 (Quote user).
|
|
28
|
-
2. 性能/质量指标的客观跃迁 (Cite data).
|
|
29
|
-
3. Reviewer 的高度评价 (Excellent/Elegant).
|
|
30
|
-
- **提取模式**: 如果存在上述信号,在 `.state/.user_verdict.json` 中额外记录 `achievement` 字段,描述本次成功的行为模式。
|
|
31
|
-
|
|
32
|
-
## 5. Attribution (画像更新)
|
|
33
|
-
- **Agent Scorecard**: 评估本次使用的子智能体表现,写入 `.state/.verdict.json`。格式遵循 `@.principles/schemas/agent_verdict_schema.json`。
|
|
34
|
-
- **User Profile**: 评估用户指令质量与偏好,写入 `.state/.user_verdict.json`。格式遵循 `@.principles/schemas/user_verdict_schema.json`。
|
|
35
|
-
|
|
36
|
-
## 6. Cleanup
|
|
37
|
-
- 清理所有中间标记文件(如 `.pain_flag`, `.verdict.json` 等)。
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: report
|
|
3
|
-
description: Manually request a formal status report from the Reporter agent.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /report: 获取工作汇报
|
|
8
|
-
|
|
9
|
-
用户(老板)要求立即汇报工作。
|
|
10
|
-
|
|
11
|
-
## 执行动作
|
|
12
|
-
1. 立即委派 ``pd_spawn_agent(reporter)``。
|
|
13
|
-
2. 任务描述:"老板想知道当前的情况。请分析当前的对话上下文和最近的 `memory/ISSUE_LOG.md`,为老板写一份优雅的汇报。请记住先看他的画像!"
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: root-cause
|
|
3
|
-
description: Deep dive analysis into why a problem occurred. Uses the 5 Whys method and classifies the cause.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Root Cause Analysis (根因分析)
|
|
8
|
-
|
|
9
|
-
**目标**: 穿透现象看本质,防止重复犯错。
|
|
10
|
-
|
|
11
|
-
请按以下格式执行诊断:
|
|
12
|
-
|
|
13
|
-
## 1. Proximal Cause (直接原因)
|
|
14
|
-
- **动词驱动**: 描述了什么具体操作或缺失导致了即时失败。
|
|
15
|
-
|
|
16
|
-
## 2. 5 Whys (深度追问)
|
|
17
|
-
1. 为什么直接原因会发生?
|
|
18
|
-
2. ...
|
|
19
|
-
3. ...
|
|
20
|
-
4. ...
|
|
21
|
-
5. 追问到系统性或认知性根源。
|
|
22
|
-
|
|
23
|
-
## 3. Root Cause (根本原因)
|
|
24
|
-
- **形容词/设计驱动**: 描述系统架构、流程缺陷或错误的假设。
|
|
25
|
-
- **Guardrail Failure Analysis**: 为什么现有的门禁 (Hooks) 或 规则 (Rules) 没能拦截这个错误?是规则缺失、匹配不严还是逻辑漏洞?
|
|
26
|
-
|
|
27
|
-
## 4. Category (分类)
|
|
28
|
-
- [ ] **People**: 能力盲区、习惯问题。
|
|
29
|
-
- [ ] **Design**: 流程/工具缺陷、门禁不足、架构漏洞。
|
|
30
|
-
- [ ] **Assumption**: 对环境、版本或依赖的错误前提假设。
|
|
31
|
-
|
|
32
|
-
## 5. Principle Candidate (原则提炼)
|
|
33
|
-
- 如果我们修复了这个问题,应该增加什么原则防止它再次发生?
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: triage
|
|
3
|
-
description: Initial problem definition and risk assessment. Use to collect environment info, reproduction steps, and logs.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Triage (问题分诊)
|
|
8
|
-
|
|
9
|
-
**目标**: 收集足够的证据来定义问题,并评估变更风险。
|
|
10
|
-
|
|
11
|
-
请按以下结构输出:
|
|
12
|
-
|
|
13
|
-
## 1. Goal (目标)
|
|
14
|
-
- 一句话描述本次任务的最终成功标准。
|
|
15
|
-
|
|
16
|
-
## 2. Problem (问题描述)
|
|
17
|
-
- 当前发生了什么?预期的行为是什么?
|
|
18
|
-
- **Evidence**: 列出相关的日志片段、错误代码或观察到的异常现象。
|
|
19
|
-
|
|
20
|
-
## 3. Reproduction (复现步骤)
|
|
21
|
-
- 提供明确的复现命令或操作序列。
|
|
22
|
-
- 标注当前环境的关键变量。
|
|
23
|
-
|
|
24
|
-
## 4. Scope (范围)
|
|
25
|
-
- 涉及的文件或模块预览。
|
|
26
|
-
- **Risk Level**: Low / Medium / High (基于 `.principles/PROFILE.json` 定义)。
|
|
27
|
-
|
|
28
|
-
## 5. Next Step
|
|
29
|
-
- 建议委派哪个子智能体 (通常是 Explorer) 进一步收集证据。
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: watch-evolution
|
|
3
|
-
description: Start the background evolution daemon to process queued tasks from EVOLUTION_QUEUE.json.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /watch-evolution: 后台进化守护者
|
|
7
|
-
|
|
8
|
-
**目标**: 启动一个持续运行的进程,自动分析并修复积压的代码问题。
|
|
9
|
-
|
|
10
|
-
## 1. 运行环境准备
|
|
11
|
-
- 确保已配置 `.principles/PROFILE.json` 中的 `evolution_mode: "async"`。
|
|
12
|
-
- 确保 `.state/evolution_queue.json` 存在。
|
|
13
|
-
|
|
14
|
-
## 2. 启动指令
|
|
15
|
-
请运行以下命令启动守护进程:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
python scripts/evolution_daemon.py
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## 3. 工作流程
|
|
22
|
-
1. **自动扫描**: 每隔 30 秒扫描一次 `.state/evolution_queue.json`。
|
|
23
|
-
2. **调度策略**:
|
|
24
|
-
- 按 `priority` 从高到低处理任务(高优先级先执行)。
|
|
25
|
-
- `status: retrying` 的任务仅在 `next_retry_at` 到期后才会再次执行。
|
|
26
|
-
- 失败任务进入指数退避重试,超过最大尝试次数后标记为 `failed`。
|
|
27
|
-
3. **诊断 (Diagnosis)**: 加载 `root-cause` 技能,通过 Headless 模式定位错误根因。
|
|
28
|
-
4. **修复 (Fix)**: 加载修复技能,自动修改代码并运行测试。
|
|
29
|
-
5. **落盘 (Log)**: 调用 `reflection-log` 将经验存入 `PRINCIPLES.md` 和 `ISSUE_LOG.md`。
|
|
30
|
-
6. **看板**: 实时更新 `memory/EVOLUTION_PRD.md` 展示进度。
|
|
31
|
-
|
|
32
|
-
## 4. 退出
|
|
33
|
-
- 按 `Ctrl+C` 停止后台任务。任务的状态将被保留在 JSON 中,下次启动可继续执行。
|