@alan512/experienceengine 0.3.4 → 0.3.6
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/.claude-plugin/marketplace.json +0 -0
- package/.claude-plugin/plugin.json +0 -0
- package/.env.example +0 -0
- package/.mcp.json +11 -11
- package/LICENSE +0 -0
- package/README.md +17 -0
- package/README.zh-CN.md +16 -0
- package/dist/adapters/claude-code/event-store.d.ts +0 -0
- package/dist/adapters/claude-code/event-store.js +0 -0
- package/dist/adapters/claude-code/event-store.js.map +0 -0
- package/dist/adapters/claude-code/hook-normalizer.d.ts +0 -0
- package/dist/adapters/claude-code/hook-normalizer.js +0 -0
- package/dist/adapters/claude-code/hook-normalizer.js.map +0 -0
- package/dist/adapters/claude-code/runtime-projection.d.ts +0 -0
- package/dist/adapters/claude-code/runtime-projection.js +0 -0
- package/dist/adapters/claude-code/runtime-projection.js.map +0 -0
- package/dist/adapters/claude-code/session-store.d.ts +0 -0
- package/dist/adapters/claude-code/session-store.js +0 -0
- package/dist/adapters/claude-code/session-store.js.map +0 -0
- package/dist/adapters/codex/action-registry.d.ts +14 -0
- package/dist/adapters/codex/action-registry.js +84 -0
- package/dist/adapters/codex/action-registry.js.map +1 -1
- package/dist/adapters/codex/behavior-loop.d.ts +10 -0
- package/dist/adapters/codex/behavior-loop.js +30 -1
- package/dist/adapters/codex/behavior-loop.js.map +1 -1
- package/dist/adapters/codex/broker-tools.d.ts +6 -0
- package/dist/adapters/codex/broker-tools.js +7 -1
- package/dist/adapters/codex/broker-tools.js.map +1 -1
- package/dist/adapters/codex/instruction-template.d.ts +0 -0
- package/dist/adapters/codex/instruction-template.js +5 -4
- package/dist/adapters/codex/instruction-template.js.map +1 -1
- package/dist/adapters/codex/mcp-server.d.ts +36 -0
- package/dist/adapters/codex/mcp-server.js +81 -16
- package/dist/adapters/codex/mcp-server.js.map +1 -1
- package/dist/analyzer/candidate-signals.d.ts +0 -0
- package/dist/analyzer/candidate-signals.js +0 -0
- package/dist/analyzer/candidate-signals.js.map +0 -0
- package/dist/analyzer/experience-analyzer.d.ts +0 -0
- package/dist/analyzer/experience-analyzer.js +0 -0
- package/dist/analyzer/experience-analyzer.js.map +0 -0
- package/dist/analyzer/extraction-evidence.d.ts +0 -0
- package/dist/analyzer/extraction-evidence.js +0 -0
- package/dist/analyzer/extraction-evidence.js.map +0 -0
- package/dist/analyzer/llm-learning-gate.d.ts +0 -0
- package/dist/analyzer/llm-learning-gate.js +0 -0
- package/dist/analyzer/llm-learning-gate.js.map +0 -0
- package/dist/analyzer/node-deduper.d.ts +0 -0
- package/dist/analyzer/node-deduper.js +0 -0
- package/dist/analyzer/node-deduper.js.map +0 -0
- package/dist/analyzer/node-normalizer.d.ts +0 -0
- package/dist/analyzer/node-normalizer.js +0 -0
- package/dist/analyzer/node-normalizer.js.map +0 -0
- package/dist/analyzer/storage-gate.d.ts +0 -0
- package/dist/analyzer/storage-gate.js +0 -0
- package/dist/analyzer/storage-gate.js.map +0 -0
- package/dist/analyzer/strategy-extractor.d.ts +0 -0
- package/dist/analyzer/strategy-extractor.js +0 -0
- package/dist/analyzer/strategy-extractor.js.map +0 -0
- package/dist/analyzer/warning-extractor.d.ts +0 -0
- package/dist/analyzer/warning-extractor.js +0 -0
- package/dist/analyzer/warning-extractor.js.map +0 -0
- package/dist/cli/commands/backup.d.ts +0 -0
- package/dist/cli/commands/backup.js +0 -0
- package/dist/cli/commands/backup.js.map +0 -0
- package/dist/cli/commands/claude-hook.d.ts +0 -0
- package/dist/cli/commands/claude-hook.js +5 -1
- package/dist/cli/commands/claude-hook.js.map +1 -1
- package/dist/cli/commands/codex-hook.d.ts +0 -0
- package/dist/cli/commands/codex-hook.js +10 -0
- package/dist/cli/commands/codex-hook.js.map +1 -1
- package/dist/cli/commands/codex-mcp-server.d.ts +0 -0
- package/dist/cli/commands/codex-mcp-server.js +0 -0
- package/dist/cli/commands/codex-mcp-server.js.map +0 -0
- package/dist/cli/commands/codex.d.ts +0 -0
- package/dist/cli/commands/codex.js +0 -0
- package/dist/cli/commands/codex.js.map +0 -0
- package/dist/cli/commands/config.d.ts +0 -0
- package/dist/cli/commands/config.js +0 -0
- package/dist/cli/commands/config.js.map +0 -0
- package/dist/cli/commands/cool.d.ts +0 -0
- package/dist/cli/commands/cool.js +0 -0
- package/dist/cli/commands/cool.js.map +0 -0
- package/dist/cli/commands/disable.d.ts +0 -0
- package/dist/cli/commands/disable.js +0 -0
- package/dist/cli/commands/disable.js.map +0 -0
- package/dist/cli/commands/doctor.d.ts +0 -0
- package/dist/cli/commands/doctor.js +0 -0
- package/dist/cli/commands/doctor.js.map +0 -0
- package/dist/cli/commands/enable.d.ts +0 -0
- package/dist/cli/commands/enable.js +0 -0
- package/dist/cli/commands/enable.js.map +0 -0
- package/dist/cli/commands/evaluate.d.ts +0 -0
- package/dist/cli/commands/evaluate.js +0 -0
- package/dist/cli/commands/evaluate.js.map +0 -0
- package/dist/cli/commands/export.d.ts +0 -0
- package/dist/cli/commands/export.js +0 -0
- package/dist/cli/commands/export.js.map +0 -0
- package/dist/cli/commands/feedback.d.ts +0 -0
- package/dist/cli/commands/feedback.js +0 -0
- package/dist/cli/commands/feedback.js.map +0 -0
- package/dist/cli/commands/import.d.ts +0 -0
- package/dist/cli/commands/import.js +0 -0
- package/dist/cli/commands/import.js.map +0 -0
- package/dist/cli/commands/init.d.ts +0 -0
- package/dist/cli/commands/init.js +0 -0
- package/dist/cli/commands/init.js.map +0 -0
- package/dist/cli/commands/inspect.d.ts +0 -0
- package/dist/cli/commands/inspect.js +143 -6
- package/dist/cli/commands/inspect.js.map +1 -1
- package/dist/cli/commands/install.d.ts +0 -0
- package/dist/cli/commands/install.js +0 -0
- package/dist/cli/commands/install.js.map +0 -0
- package/dist/cli/commands/maintenance.d.ts +0 -0
- package/dist/cli/commands/maintenance.js +60 -3
- package/dist/cli/commands/maintenance.js.map +1 -1
- package/dist/cli/commands/mcp-server.d.ts +0 -0
- package/dist/cli/commands/mcp-server.js +0 -0
- package/dist/cli/commands/mcp-server.js.map +0 -0
- package/dist/cli/commands/models.d.ts +0 -0
- package/dist/cli/commands/models.js +0 -0
- package/dist/cli/commands/models.js.map +0 -0
- package/dist/cli/commands/repair.d.ts +0 -0
- package/dist/cli/commands/repair.js +0 -0
- package/dist/cli/commands/repair.js.map +0 -0
- package/dist/cli/commands/retire.d.ts +0 -0
- package/dist/cli/commands/retire.js +0 -0
- package/dist/cli/commands/retire.js.map +0 -0
- package/dist/cli/commands/rollback.d.ts +0 -0
- package/dist/cli/commands/rollback.js +0 -0
- package/dist/cli/commands/rollback.js.map +0 -0
- package/dist/cli/commands/stats.d.ts +0 -0
- package/dist/cli/commands/stats.js +0 -0
- package/dist/cli/commands/stats.js.map +0 -0
- package/dist/cli/commands/status.d.ts +0 -0
- package/dist/cli/commands/status.js +0 -0
- package/dist/cli/commands/status.js.map +0 -0
- package/dist/cli/commands/upgrade.d.ts +0 -0
- package/dist/cli/commands/upgrade.js +0 -0
- package/dist/cli/commands/upgrade.js.map +0 -0
- package/dist/cli/dispatch.d.ts +0 -0
- package/dist/cli/dispatch.js +12 -14
- package/dist/cli/dispatch.js.map +1 -1
- package/dist/cli/index.d.ts +0 -0
- package/dist/cli/index.js +0 -0
- package/dist/cli/index.js.map +0 -0
- package/dist/cli/state-model.d.ts +0 -0
- package/dist/cli/state-model.js +0 -0
- package/dist/cli/state-model.js.map +0 -0
- package/dist/config/config-schema.d.ts +0 -0
- package/dist/config/config-schema.js +0 -0
- package/dist/config/config-schema.js.map +0 -0
- package/dist/config/default-config.d.ts +0 -0
- package/dist/config/default-config.js +0 -0
- package/dist/config/default-config.js.map +0 -0
- package/dist/config/load-config.d.ts +0 -0
- package/dist/config/load-config.js +0 -0
- package/dist/config/load-config.js.map +0 -0
- package/dist/config/path-resolver.d.ts +0 -0
- package/dist/config/path-resolver.js +0 -0
- package/dist/config/path-resolver.js.map +0 -0
- package/dist/config/runtime-env.d.ts +0 -0
- package/dist/config/runtime-env.js +0 -0
- package/dist/config/runtime-env.js.map +0 -0
- package/dist/config/secrets-store.d.ts +0 -0
- package/dist/config/secrets-store.js +0 -0
- package/dist/config/secrets-store.js.map +0 -0
- package/dist/config/settings-store.d.ts +0 -0
- package/dist/config/settings-store.js +0 -0
- package/dist/config/settings-store.js.map +0 -0
- package/dist/controller/candidate-retriever.d.ts +0 -0
- package/dist/controller/candidate-retriever.js +0 -0
- package/dist/controller/candidate-retriever.js.map +0 -0
- package/dist/controller/injection-renderer.d.ts +0 -0
- package/dist/controller/injection-renderer.js +0 -0
- package/dist/controller/injection-renderer.js.map +0 -0
- package/dist/controller/injection-scorecard.d.ts +0 -0
- package/dist/controller/injection-scorecard.js +0 -0
- package/dist/controller/injection-scorecard.js.map +0 -0
- package/dist/controller/inline-notice.d.ts +0 -0
- package/dist/controller/inline-notice.js +0 -0
- package/dist/controller/inline-notice.js.map +0 -0
- package/dist/controller/intervention-controller.d.ts +0 -0
- package/dist/controller/intervention-controller.js +0 -0
- package/dist/controller/intervention-controller.js.map +0 -0
- package/dist/controller/lexical-retriever.d.ts +0 -0
- package/dist/controller/lexical-retriever.js +0 -0
- package/dist/controller/lexical-retriever.js.map +0 -0
- package/dist/controller/model-reranker-mode.d.ts +0 -0
- package/dist/controller/model-reranker-mode.js +0 -0
- package/dist/controller/model-reranker-mode.js.map +0 -0
- package/dist/controller/model-reranker.d.ts +0 -0
- package/dist/controller/model-reranker.js +0 -0
- package/dist/controller/model-reranker.js.map +0 -0
- package/dist/controller/node-ranker.d.ts +0 -0
- package/dist/controller/node-ranker.js +0 -0
- package/dist/controller/node-ranker.js.map +0 -0
- package/dist/controller/policy-enricher.d.ts +0 -0
- package/dist/controller/policy-enricher.js +0 -0
- package/dist/controller/policy-enricher.js.map +0 -0
- package/dist/controller/query-rewrite.d.ts +0 -0
- package/dist/controller/query-rewrite.js +0 -0
- package/dist/controller/query-rewrite.js.map +0 -0
- package/dist/controller/retrieval-context.d.ts +0 -0
- package/dist/controller/retrieval-context.js +0 -0
- package/dist/controller/retrieval-context.js.map +0 -0
- package/dist/controller/second-opinion-gate.d.ts +0 -0
- package/dist/controller/second-opinion-gate.js +0 -0
- package/dist/controller/second-opinion-gate.js.map +0 -0
- package/dist/controller/skip-reason.d.ts +0 -0
- package/dist/controller/skip-reason.js +0 -0
- package/dist/controller/skip-reason.js.map +0 -0
- package/dist/controller/skip-scorecard.d.ts +0 -0
- package/dist/controller/skip-scorecard.js +0 -0
- package/dist/controller/skip-scorecard.js.map +0 -0
- package/dist/controller/trigger-evaluator.d.ts +0 -0
- package/dist/controller/trigger-evaluator.js +0 -0
- package/dist/controller/trigger-evaluator.js.map +0 -0
- package/dist/distillation/errors.d.ts +0 -0
- package/dist/distillation/errors.js +0 -0
- package/dist/distillation/errors.js.map +0 -0
- package/dist/distillation/experience-family.d.ts +0 -0
- package/dist/distillation/experience-family.js +0 -0
- package/dist/distillation/experience-family.js.map +0 -0
- package/dist/distillation/host-llm.d.ts +0 -0
- package/dist/distillation/host-llm.js +0 -0
- package/dist/distillation/host-llm.js.map +0 -0
- package/dist/distillation/llm-distiller.d.ts +0 -0
- package/dist/distillation/llm-distiller.js +0 -0
- package/dist/distillation/llm-distiller.js.map +0 -0
- package/dist/distillation/merge-decider.d.ts +0 -0
- package/dist/distillation/merge-decider.js +0 -0
- package/dist/distillation/merge-decider.js.map +0 -0
- package/dist/distillation/model-catalog.d.ts +0 -0
- package/dist/distillation/model-catalog.js +0 -0
- package/dist/distillation/model-catalog.js.map +0 -0
- package/dist/distillation/prompt-contract.d.ts +0 -0
- package/dist/distillation/prompt-contract.js +0 -0
- package/dist/distillation/prompt-contract.js.map +0 -0
- package/dist/distillation/providers/anthropic.d.ts +0 -0
- package/dist/distillation/providers/anthropic.js +0 -0
- package/dist/distillation/providers/anthropic.js.map +0 -0
- package/dist/distillation/providers/azure-openai.d.ts +0 -0
- package/dist/distillation/providers/azure-openai.js +0 -0
- package/dist/distillation/providers/azure-openai.js.map +0 -0
- package/dist/distillation/providers/baidu-qianfan.d.ts +0 -0
- package/dist/distillation/providers/baidu-qianfan.js +0 -0
- package/dist/distillation/providers/baidu-qianfan.js.map +0 -0
- package/dist/distillation/providers/bedrock.d.ts +0 -0
- package/dist/distillation/providers/bedrock.js +0 -0
- package/dist/distillation/providers/bedrock.js.map +0 -0
- package/dist/distillation/providers/dashscope.d.ts +0 -0
- package/dist/distillation/providers/dashscope.js +0 -0
- package/dist/distillation/providers/dashscope.js.map +0 -0
- package/dist/distillation/providers/deepseek.d.ts +0 -0
- package/dist/distillation/providers/deepseek.js +0 -0
- package/dist/distillation/providers/deepseek.js.map +0 -0
- package/dist/distillation/providers/gemini.d.ts +0 -0
- package/dist/distillation/providers/gemini.js +0 -0
- package/dist/distillation/providers/gemini.js.map +0 -0
- package/dist/distillation/providers/google-adc.d.ts +0 -0
- package/dist/distillation/providers/google-adc.js +0 -0
- package/dist/distillation/providers/google-adc.js.map +0 -0
- package/dist/distillation/providers/minimax.d.ts +0 -0
- package/dist/distillation/providers/minimax.js +0 -0
- package/dist/distillation/providers/minimax.js.map +0 -0
- package/dist/distillation/providers/moonshot.d.ts +0 -0
- package/dist/distillation/providers/moonshot.js +0 -0
- package/dist/distillation/providers/moonshot.js.map +0 -0
- package/dist/distillation/providers/openai-compatible-factory.d.ts +0 -0
- package/dist/distillation/providers/openai-compatible-factory.js +0 -0
- package/dist/distillation/providers/openai-compatible-factory.js.map +0 -0
- package/dist/distillation/providers/openai-compatible.d.ts +0 -0
- package/dist/distillation/providers/openai-compatible.js +0 -0
- package/dist/distillation/providers/openai-compatible.js.map +0 -0
- package/dist/distillation/providers/openai.d.ts +0 -0
- package/dist/distillation/providers/openai.js +0 -0
- package/dist/distillation/providers/openai.js.map +0 -0
- package/dist/distillation/providers/openrouter.d.ts +0 -0
- package/dist/distillation/providers/openrouter.js +0 -0
- package/dist/distillation/providers/openrouter.js.map +0 -0
- package/dist/distillation/providers/registry.d.ts +0 -0
- package/dist/distillation/providers/registry.js +0 -0
- package/dist/distillation/providers/registry.js.map +0 -0
- package/dist/distillation/providers/siliconflow.d.ts +0 -0
- package/dist/distillation/providers/siliconflow.js +0 -0
- package/dist/distillation/providers/siliconflow.js.map +0 -0
- package/dist/distillation/providers/tencent-hunyuan.d.ts +0 -0
- package/dist/distillation/providers/tencent-hunyuan.js +0 -0
- package/dist/distillation/providers/tencent-hunyuan.js.map +0 -0
- package/dist/distillation/providers/types.d.ts +0 -0
- package/dist/distillation/providers/types.js +0 -0
- package/dist/distillation/providers/types.js.map +0 -0
- package/dist/distillation/providers/volcengine-ark.d.ts +0 -0
- package/dist/distillation/providers/volcengine-ark.js +0 -0
- package/dist/distillation/providers/volcengine-ark.js.map +0 -0
- package/dist/distillation/providers/zhipu.d.ts +0 -0
- package/dist/distillation/providers/zhipu.js +0 -0
- package/dist/distillation/providers/zhipu.js.map +0 -0
- package/dist/distillation/queue-worker.d.ts +0 -0
- package/dist/distillation/queue-worker.js +0 -0
- package/dist/distillation/queue-worker.js.map +0 -0
- package/dist/distillation/types.d.ts +0 -0
- package/dist/distillation/types.js +0 -0
- package/dist/distillation/types.js.map +0 -0
- package/dist/evaluation/benchmark-report.d.ts +0 -0
- package/dist/evaluation/benchmark-report.js +0 -0
- package/dist/evaluation/benchmark-report.js.map +0 -0
- package/dist/evaluation/benchmark-summary.d.ts +0 -0
- package/dist/evaluation/benchmark-summary.js +0 -0
- package/dist/evaluation/benchmark-summary.js.map +0 -0
- package/dist/evaluation/codex-lifecycle-validation.d.ts +0 -0
- package/dist/evaluation/codex-lifecycle-validation.js +0 -0
- package/dist/evaluation/codex-lifecycle-validation.js.map +0 -0
- package/dist/evaluation/hybrid-phase1-rollout-summary.d.ts +0 -0
- package/dist/evaluation/hybrid-phase1-rollout-summary.js +0 -0
- package/dist/evaluation/hybrid-phase1-rollout-summary.js.map +0 -0
- package/dist/evaluation/hybrid-phase3-gate-metrics.d.ts +0 -0
- package/dist/evaluation/hybrid-phase3-gate-metrics.js +0 -0
- package/dist/evaluation/hybrid-phase3-gate-metrics.js.map +0 -0
- package/dist/evaluation/openclaw-baseline.d.ts +0 -0
- package/dist/evaluation/openclaw-baseline.js +0 -0
- package/dist/evaluation/openclaw-baseline.js.map +0 -0
- package/dist/evaluation/openclaw-scenarios.d.ts +0 -0
- package/dist/evaluation/openclaw-scenarios.js +0 -0
- package/dist/evaluation/openclaw-scenarios.js.map +0 -0
- package/dist/experience-management/governance-observability.d.ts +0 -0
- package/dist/experience-management/governance-observability.js +0 -0
- package/dist/experience-management/governance-observability.js.map +0 -0
- package/dist/experience-management/node-lifecycle-governance.d.ts +0 -0
- package/dist/experience-management/node-lifecycle-governance.js +0 -0
- package/dist/experience-management/node-lifecycle-governance.js.map +0 -0
- package/dist/experience-management/repo-policy.d.ts +0 -0
- package/dist/experience-management/repo-policy.js +0 -0
- package/dist/experience-management/repo-policy.js.map +0 -0
- package/dist/experience-management/task-management-signals.d.ts +0 -0
- package/dist/experience-management/task-management-signals.js +0 -0
- package/dist/experience-management/task-management-signals.js.map +0 -0
- package/dist/feedback/automatic-attribution.d.ts +0 -0
- package/dist/feedback/automatic-attribution.js +0 -0
- package/dist/feedback/automatic-attribution.js.map +0 -0
- package/dist/feedback/feedback-manager.d.ts +0 -0
- package/dist/feedback/feedback-manager.js +0 -0
- package/dist/feedback/feedback-manager.js.map +0 -0
- package/dist/feedback/harm-detector.d.ts +0 -0
- package/dist/feedback/harm-detector.js +0 -0
- package/dist/feedback/harm-detector.js.map +0 -0
- package/dist/feedback/state-transition.d.ts +0 -0
- package/dist/feedback/state-transition.js +0 -0
- package/dist/feedback/state-transition.js.map +0 -0
- package/dist/feedback/stats-updater.d.ts +0 -0
- package/dist/feedback/stats-updater.js +0 -0
- package/dist/feedback/stats-updater.js.map +0 -0
- package/dist/hybrid/capsule-builder.d.ts +0 -0
- package/dist/hybrid/capsule-builder.js +0 -0
- package/dist/hybrid/capsule-builder.js.map +0 -0
- package/dist/hybrid/explain-provider-client.d.ts +0 -0
- package/dist/hybrid/explain-provider-client.js +0 -0
- package/dist/hybrid/explain-provider-client.js.map +0 -0
- package/dist/hybrid/postmortem-provider-client.d.ts +0 -0
- package/dist/hybrid/postmortem-provider-client.js +0 -0
- package/dist/hybrid/postmortem-provider-client.js.map +0 -0
- package/dist/hybrid/rollout.d.ts +0 -0
- package/dist/hybrid/rollout.js +0 -0
- package/dist/hybrid/rollout.js.map +0 -0
- package/dist/hybrid/router.d.ts +0 -0
- package/dist/hybrid/router.js +0 -0
- package/dist/hybrid/router.js.map +0 -0
- package/dist/hybrid/types.d.ts +0 -0
- package/dist/hybrid/types.js +0 -0
- package/dist/hybrid/types.js.map +0 -0
- package/dist/hybrid/validators.d.ts +0 -0
- package/dist/hybrid/validators.js +0 -0
- package/dist/hybrid/validators.js.map +0 -0
- package/dist/hybrid/worker-client.d.ts +0 -0
- package/dist/hybrid/worker-client.js +0 -0
- package/dist/hybrid/worker-client.js.map +0 -0
- package/dist/hybrid/workers/explain-decision-llm.d.ts +0 -0
- package/dist/hybrid/workers/explain-decision-llm.js +0 -0
- package/dist/hybrid/workers/explain-decision-llm.js.map +0 -0
- package/dist/hybrid/workers/explain-decision.d.ts +0 -0
- package/dist/hybrid/workers/explain-decision.js +0 -0
- package/dist/hybrid/workers/explain-decision.js.map +0 -0
- package/dist/hybrid/workers/postmortem-review-llm.d.ts +0 -0
- package/dist/hybrid/workers/postmortem-review-llm.js +0 -0
- package/dist/hybrid/workers/postmortem-review-llm.js.map +0 -0
- package/dist/hybrid/workers/postmortem-review.d.ts +0 -0
- package/dist/hybrid/workers/postmortem-review.js +0 -0
- package/dist/hybrid/workers/postmortem-review.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/input/context-summary-adapter.d.ts +0 -0
- package/dist/input/context-summary-adapter.js +0 -0
- package/dist/input/context-summary-adapter.js.map +0 -0
- package/dist/input/input-adapter.d.ts +0 -0
- package/dist/input/input-adapter.js +2 -2
- package/dist/input/input-adapter.js.map +1 -1
- package/dist/input/outcome-resolver.d.ts +0 -0
- package/dist/input/outcome-resolver.js +2 -2
- package/dist/input/outcome-resolver.js.map +1 -1
- package/dist/input/scope-resolver.d.ts +0 -0
- package/dist/input/scope-resolver.js +0 -0
- package/dist/input/scope-resolver.js.map +0 -0
- package/dist/input/tasktype-resolver.d.ts +0 -0
- package/dist/input/tasktype-resolver.js +0 -0
- package/dist/input/tasktype-resolver.js.map +0 -0
- package/dist/input/tool-event-significance.d.ts +0 -0
- package/dist/input/tool-event-significance.js +0 -0
- package/dist/input/tool-event-significance.js.map +0 -0
- package/dist/install/claude-cli.d.ts +0 -0
- package/dist/install/claude-cli.js +0 -0
- package/dist/install/claude-cli.js.map +0 -0
- package/dist/install/claude-code-doctor.d.ts +0 -0
- package/dist/install/claude-code-doctor.js +0 -0
- package/dist/install/claude-code-doctor.js.map +0 -0
- package/dist/install/claude-code-installer.d.ts +0 -0
- package/dist/install/claude-code-installer.js +0 -0
- package/dist/install/claude-code-installer.js.map +0 -0
- package/dist/install/claude-marketplace-state.d.ts +0 -0
- package/dist/install/claude-marketplace-state.js +0 -0
- package/dist/install/claude-marketplace-state.js.map +0 -0
- package/dist/install/claude-runtime-target.d.ts +0 -0
- package/dist/install/claude-runtime-target.js +0 -0
- package/dist/install/claude-runtime-target.js.map +0 -0
- package/dist/install/codex-cli.d.ts +0 -0
- package/dist/install/codex-cli.js +0 -0
- package/dist/install/codex-cli.js.map +0 -0
- package/dist/install/codex-hooks.d.ts +0 -0
- package/dist/install/codex-hooks.js +0 -0
- package/dist/install/codex-hooks.js.map +0 -0
- package/dist/install/codex-installer.d.ts +0 -0
- package/dist/install/codex-installer.js +0 -0
- package/dist/install/codex-installer.js.map +0 -0
- package/dist/install/codex-runtime-target.d.ts +0 -0
- package/dist/install/codex-runtime-target.js +0 -0
- package/dist/install/codex-runtime-target.js.map +0 -0
- package/dist/install/host-detection.d.ts +0 -0
- package/dist/install/host-detection.js +0 -0
- package/dist/install/host-detection.js.map +0 -0
- package/dist/install/openclaw-cli.d.ts +2 -0
- package/dist/install/openclaw-cli.js +5 -0
- package/dist/install/openclaw-cli.js.map +1 -1
- package/dist/install/openclaw-installer.d.ts +0 -0
- package/dist/install/openclaw-installer.js +65 -6
- package/dist/install/openclaw-installer.js.map +1 -1
- package/dist/install/public-install.d.ts +0 -0
- package/dist/install/public-install.js +0 -0
- package/dist/install/public-install.js.map +0 -0
- package/dist/install/registry-health.d.ts +0 -0
- package/dist/install/registry-health.js +0 -0
- package/dist/install/registry-health.js.map +0 -0
- package/dist/interaction/operational-actions-service.d.ts +0 -0
- package/dist/interaction/operational-actions-service.js +0 -0
- package/dist/interaction/operational-actions-service.js.map +0 -0
- package/dist/interaction/operational-service.d.ts +0 -0
- package/dist/interaction/operational-service.js +0 -0
- package/dist/interaction/operational-service.js.map +0 -0
- package/dist/interaction/quality-band.d.ts +30 -0
- package/dist/interaction/quality-band.js +149 -0
- package/dist/interaction/quality-band.js.map +1 -0
- package/dist/interaction/repo-summary.d.ts +3 -0
- package/dist/interaction/repo-summary.js +1 -0
- package/dist/interaction/repo-summary.js.map +1 -1
- package/dist/interaction/retrieval-policy-inspection.d.ts +0 -0
- package/dist/interaction/retrieval-policy-inspection.js +0 -0
- package/dist/interaction/retrieval-policy-inspection.js.map +0 -0
- package/dist/interaction/service.d.ts +41 -0
- package/dist/interaction/service.js +177 -83
- package/dist/interaction/service.js.map +1 -1
- package/dist/interaction/state-artifact-service.d.ts +0 -0
- package/dist/interaction/state-artifact-service.js +0 -0
- package/dist/interaction/state-artifact-service.js.map +0 -0
- package/dist/interaction/surface-tiers.d.ts +8 -0
- package/dist/interaction/surface-tiers.js +19 -0
- package/dist/interaction/surface-tiers.js.map +1 -0
- package/dist/maintenance/claude-validate-print.d.ts +0 -0
- package/dist/maintenance/claude-validate-print.js +0 -0
- package/dist/maintenance/claude-validate-print.js.map +0 -0
- package/dist/maintenance/embedding-smoke.d.ts +0 -0
- package/dist/maintenance/embedding-smoke.js +0 -0
- package/dist/maintenance/embedding-smoke.js.map +0 -0
- package/dist/maintenance/experience-export-drafts.d.ts +0 -0
- package/dist/maintenance/experience-export-drafts.js +0 -0
- package/dist/maintenance/experience-export-drafts.js.map +0 -0
- package/dist/maintenance/experience-hygiene.d.ts +0 -0
- package/dist/maintenance/experience-hygiene.js +0 -0
- package/dist/maintenance/experience-hygiene.js.map +0 -0
- package/dist/maintenance/hygiene-governance-applicator.d.ts +21 -0
- package/dist/maintenance/hygiene-governance-applicator.js +246 -0
- package/dist/maintenance/hygiene-governance-applicator.js.map +1 -0
- package/dist/maintenance/hygiene-governance-approvals.d.ts +41 -0
- package/dist/maintenance/hygiene-governance-approvals.js +143 -0
- package/dist/maintenance/hygiene-governance-approvals.js.map +1 -0
- package/dist/maintenance/hygiene-governance-llm-planner.d.ts +26 -0
- package/dist/maintenance/hygiene-governance-llm-planner.js +169 -0
- package/dist/maintenance/hygiene-governance-llm-planner.js.map +1 -0
- package/dist/maintenance/hygiene-governance-planner.d.ts +113 -0
- package/dist/maintenance/hygiene-governance-planner.js +302 -0
- package/dist/maintenance/hygiene-governance-planner.js.map +1 -0
- package/dist/maintenance/hygiene-governance-scheduler.d.ts +72 -0
- package/dist/maintenance/hygiene-governance-scheduler.js +206 -0
- package/dist/maintenance/hygiene-governance-scheduler.js.map +1 -0
- package/dist/maintenance/hygiene-governance-validator.d.ts +14 -0
- package/dist/maintenance/hygiene-governance-validator.js +212 -0
- package/dist/maintenance/hygiene-governance-validator.js.map +1 -0
- package/dist/maintenance/operator-review-flow.d.ts +12 -1
- package/dist/maintenance/operator-review-flow.js +18 -2
- package/dist/maintenance/operator-review-flow.js.map +1 -1
- package/dist/maintenance/redistill-rule-nodes.d.ts +0 -0
- package/dist/maintenance/redistill-rule-nodes.js +0 -0
- package/dist/maintenance/redistill-rule-nodes.js.map +0 -0
- package/dist/maintenance/scope-merge.d.ts +0 -0
- package/dist/maintenance/scope-merge.js +0 -0
- package/dist/maintenance/scope-merge.js.map +0 -0
- package/dist/maintenance/warning-variant-cleanup.d.ts +0 -0
- package/dist/maintenance/warning-variant-cleanup.js +0 -0
- package/dist/maintenance/warning-variant-cleanup.js.map +0 -0
- package/dist/plugin/fixture-sanitizer.d.ts +0 -0
- package/dist/plugin/fixture-sanitizer.js +0 -0
- package/dist/plugin/fixture-sanitizer.js.map +0 -0
- package/dist/plugin/hooks/before-prompt-build.d.ts +0 -0
- package/dist/plugin/hooks/before-prompt-build.js +0 -0
- package/dist/plugin/hooks/before-prompt-build.js.map +0 -0
- package/dist/plugin/hooks/message-sent.d.ts +0 -0
- package/dist/plugin/hooks/message-sent.js +0 -0
- package/dist/plugin/hooks/message-sent.js.map +0 -0
- package/dist/plugin/hooks/tool-result-persist.d.ts +0 -0
- package/dist/plugin/hooks/tool-result-persist.js +0 -0
- package/dist/plugin/hooks/tool-result-persist.js.map +0 -0
- package/dist/plugin/openclaw-install-state.d.ts +0 -0
- package/dist/plugin/openclaw-install-state.js +0 -0
- package/dist/plugin/openclaw-install-state.js.map +0 -0
- package/dist/plugin/openclaw-plugin.d.ts +0 -0
- package/dist/plugin/openclaw-plugin.js +5 -1
- package/dist/plugin/openclaw-plugin.js.map +1 -1
- package/dist/plugin/openclaw-routine-interaction.d.ts +0 -0
- package/dist/plugin/openclaw-routine-interaction.js +0 -0
- package/dist/plugin/openclaw-routine-interaction.js.map +0 -0
- package/dist/plugin/openclaw-runtime-defaults.d.ts +0 -0
- package/dist/plugin/openclaw-runtime-defaults.js +0 -0
- package/dist/plugin/openclaw-runtime-defaults.js.map +0 -0
- package/dist/plugin/runtime-capture.d.ts +0 -0
- package/dist/plugin/runtime-capture.js +0 -0
- package/dist/plugin/runtime-capture.js.map +0 -0
- package/dist/plugin/runtime-helpers.d.ts +0 -0
- package/dist/plugin/runtime-helpers.js +0 -0
- package/dist/plugin/runtime-helpers.js.map +0 -0
- package/dist/runtime/learning-candidate-factory.d.ts +0 -0
- package/dist/runtime/learning-candidate-factory.js +0 -0
- package/dist/runtime/learning-candidate-factory.js.map +0 -0
- package/dist/runtime/learning-pipeline-service.d.ts +0 -0
- package/dist/runtime/learning-pipeline-service.js +0 -0
- package/dist/runtime/learning-pipeline-service.js.map +0 -0
- package/dist/runtime/prompt-service.d.ts +0 -0
- package/dist/runtime/prompt-service.js +0 -0
- package/dist/runtime/prompt-service.js.map +0 -0
- package/dist/runtime/service.d.ts +14 -0
- package/dist/runtime/service.js +62 -1
- package/dist/runtime/service.js.map +1 -1
- package/dist/runtime/task-finalization-service.d.ts +0 -0
- package/dist/runtime/task-finalization-service.js +0 -0
- package/dist/runtime/task-finalization-service.js.map +0 -0
- package/dist/store/logs/jsonl-logger.d.ts +0 -0
- package/dist/store/logs/jsonl-logger.js +0 -0
- package/dist/store/logs/jsonl-logger.js.map +0 -0
- package/dist/store/sqlite/db.d.ts +0 -0
- package/dist/store/sqlite/db.js +6 -0
- package/dist/store/sqlite/db.js.map +1 -1
- package/dist/store/sqlite/migrations.d.ts +0 -0
- package/dist/store/sqlite/migrations.js +0 -0
- package/dist/store/sqlite/migrations.js.map +0 -0
- package/dist/store/sqlite/repositories/attribution-record-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/attribution-record-repo.js +0 -0
- package/dist/store/sqlite/repositories/attribution-record-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/candidate-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/candidate-repo.js +0 -0
- package/dist/store/sqlite/repositories/candidate-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/distillation-job-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/distillation-job-repo.js +0 -0
- package/dist/store/sqlite/repositories/distillation-job-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/episode-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/episode-repo.js +0 -0
- package/dist/store/sqlite/repositories/episode-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/hybrid-invocation-trace-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/hybrid-invocation-trace-repo.js +0 -0
- package/dist/store/sqlite/repositories/hybrid-invocation-trace-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/hybrid-review-artifact-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/hybrid-review-artifact-repo.js +0 -0
- package/dist/store/sqlite/repositories/hybrid-review-artifact-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/hygiene-governance-repo.d.ts +187 -0
- package/dist/store/sqlite/repositories/hygiene-governance-repo.js +513 -0
- package/dist/store/sqlite/repositories/hygiene-governance-repo.js.map +1 -0
- package/dist/store/sqlite/repositories/injection-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/injection-repo.js +0 -0
- package/dist/store/sqlite/repositories/injection-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/input-record-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/input-record-repo.js +0 -0
- package/dist/store/sqlite/repositories/input-record-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/node-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/node-repo.js +0 -0
- package/dist/store/sqlite/repositories/node-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/outcome-record-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/outcome-record-repo.js +0 -0
- package/dist/store/sqlite/repositories/outcome-record-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/repo-policy-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/repo-policy-repo.js +0 -0
- package/dist/store/sqlite/repositories/repo-policy-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/review-event-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/review-event-repo.js +0 -0
- package/dist/store/sqlite/repositories/review-event-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/scope-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/scope-repo.js +0 -0
- package/dist/store/sqlite/repositories/scope-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/stats-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/stats-repo.js +0 -0
- package/dist/store/sqlite/repositories/stats-repo.js.map +0 -0
- package/dist/store/sqlite/repositories/task-run-repo.d.ts +0 -0
- package/dist/store/sqlite/repositories/task-run-repo.js +0 -0
- package/dist/store/sqlite/repositories/task-run-repo.js.map +0 -0
- package/dist/store/sqlite/schema.sql +98 -0
- package/dist/store/vector/api-embedding-provider.d.ts +0 -0
- package/dist/store/vector/api-embedding-provider.js +0 -0
- package/dist/store/vector/api-embedding-provider.js.map +0 -0
- package/dist/store/vector/embeddings.d.ts +0 -0
- package/dist/store/vector/embeddings.js +0 -0
- package/dist/store/vector/embeddings.js.map +0 -0
- package/dist/store/vector/lancedb.d.ts +0 -0
- package/dist/store/vector/lancedb.js +0 -0
- package/dist/store/vector/lancedb.js.map +0 -0
- package/dist/store/vector/local-provider.d.ts +0 -0
- package/dist/store/vector/local-provider.js +0 -0
- package/dist/store/vector/local-provider.js.map +0 -0
- package/dist/store/vector/node-index.d.ts +0 -0
- package/dist/store/vector/node-index.js +0 -0
- package/dist/store/vector/node-index.js.map +0 -0
- package/dist/store/vector/provider-types.d.ts +0 -0
- package/dist/store/vector/provider-types.js +0 -0
- package/dist/store/vector/provider-types.js.map +0 -0
- package/dist/types/analyzer.d.ts +0 -0
- package/dist/types/analyzer.js +0 -0
- package/dist/types/analyzer.js.map +0 -0
- package/dist/types/domain.d.ts +0 -0
- package/dist/types/domain.js +0 -0
- package/dist/types/domain.js.map +0 -0
- package/dist/types/plugin.d.ts +0 -0
- package/dist/types/plugin.js +0 -0
- package/dist/types/plugin.js.map +0 -0
- package/dist/types/storage.d.ts +0 -0
- package/dist/types/storage.js +0 -0
- package/dist/types/storage.js.map +0 -0
- package/dist/utils/clock.d.ts +0 -0
- package/dist/utils/clock.js +0 -0
- package/dist/utils/clock.js.map +0 -0
- package/dist/utils/errors.d.ts +0 -0
- package/dist/utils/errors.js +0 -0
- package/dist/utils/errors.js.map +0 -0
- package/dist/utils/hashing.d.ts +0 -0
- package/dist/utils/hashing.js +0 -0
- package/dist/utils/hashing.js.map +0 -0
- package/dist/utils/ids.d.ts +0 -0
- package/dist/utils/ids.js +0 -0
- package/dist/utils/ids.js.map +0 -0
- package/dist/utils/text.d.ts +0 -0
- package/dist/utils/text.js +0 -0
- package/dist/utils/text.js.map +0 -0
- package/dist/version/package-version.d.ts +0 -0
- package/dist/version/package-version.js +0 -0
- package/dist/version/package-version.js.map +0 -0
- package/dist/version/remote-release.d.ts +0 -0
- package/dist/version/remote-release.js +0 -0
- package/dist/version/remote-release.js.map +0 -0
- package/docs/assets/readme/inspect-last-example.svg +0 -0
- package/docs/releases/v0.1.0.md +0 -0
- package/docs/releases/v0.1.1.md +0 -0
- package/docs/releases/v0.1.2.md +0 -0
- package/docs/releases/v0.1.3.md +0 -0
- package/docs/releases/v0.2.0.md +0 -0
- package/docs/releases/v0.2.1.md +0 -0
- package/docs/releases/v0.3.0.md +0 -0
- package/docs/releases/v0.3.1.md +0 -0
- package/docs/releases/v0.3.2.md +0 -0
- package/docs/releases/v0.3.3.md +0 -0
- package/docs/releases/v0.3.4.md +0 -0
- package/docs/releases/v0.3.5.md +42 -0
- package/docs/releases/v0.3.6.md +28 -0
- package/docs/user-guide.md +75 -5
- package/hooks/hooks.json +0 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/plugins/claude-code-experienceengine/.claude-plugin/plugin.json +0 -0
- package/plugins/claude-code-experienceengine/.mcp.json +0 -0
- package/plugins/claude-code-experienceengine/hooks/hooks.json +0 -0
- package/plugins/claude-code-experienceengine/scripts/claude-hook.sh +0 -0
- package/plugins/claude-code-experienceengine/scripts/install-deps.sh +0 -0
- package/plugins/claude-code-experienceengine/scripts/mcp-server.sh +0 -0
- package/scripts/claude-plugin/claude-hook.sh +0 -0
- package/scripts/claude-plugin/install-deps.sh +0 -0
- package/scripts/claude-plugin/mcp-server.sh +0 -0
|
@@ -289,3 +289,101 @@ CREATE TABLE IF NOT EXISTS scope_task_stats (
|
|
|
289
289
|
updated_at TEXT NOT NULL,
|
|
290
290
|
PRIMARY KEY (scope_id, task_type)
|
|
291
291
|
);
|
|
292
|
+
|
|
293
|
+
CREATE TABLE IF NOT EXISTS hygiene_governance_schedules (
|
|
294
|
+
scope_id TEXT PRIMARY KEY,
|
|
295
|
+
last_governed_at TEXT,
|
|
296
|
+
next_due_at TEXT NOT NULL,
|
|
297
|
+
pending_reasons_json TEXT NOT NULL DEFAULT '[]',
|
|
298
|
+
last_run_status TEXT,
|
|
299
|
+
last_failure_class TEXT,
|
|
300
|
+
backoff_until TEXT,
|
|
301
|
+
last_finding_hash TEXT,
|
|
302
|
+
created_at TEXT NOT NULL,
|
|
303
|
+
updated_at TEXT NOT NULL
|
|
304
|
+
);
|
|
305
|
+
|
|
306
|
+
CREATE TABLE IF NOT EXISTS hygiene_governance_leases (
|
|
307
|
+
scope_id TEXT PRIMARY KEY,
|
|
308
|
+
lease_owner TEXT NOT NULL,
|
|
309
|
+
lease_expires_at TEXT NOT NULL,
|
|
310
|
+
acquired_at TEXT NOT NULL,
|
|
311
|
+
updated_at TEXT NOT NULL
|
|
312
|
+
);
|
|
313
|
+
|
|
314
|
+
CREATE TABLE IF NOT EXISTS hygiene_governance_runs (
|
|
315
|
+
run_id TEXT PRIMARY KEY,
|
|
316
|
+
scope_id TEXT NOT NULL,
|
|
317
|
+
trigger TEXT NOT NULL,
|
|
318
|
+
status TEXT NOT NULL,
|
|
319
|
+
failure_class TEXT,
|
|
320
|
+
failure_message TEXT,
|
|
321
|
+
checkpoint_json TEXT,
|
|
322
|
+
started_at TEXT,
|
|
323
|
+
finished_at TEXT,
|
|
324
|
+
created_at TEXT NOT NULL,
|
|
325
|
+
updated_at TEXT NOT NULL
|
|
326
|
+
);
|
|
327
|
+
|
|
328
|
+
CREATE TABLE IF NOT EXISTS hygiene_governance_plans (
|
|
329
|
+
plan_id TEXT PRIMARY KEY,
|
|
330
|
+
run_id TEXT,
|
|
331
|
+
scope_id TEXT NOT NULL,
|
|
332
|
+
status TEXT NOT NULL,
|
|
333
|
+
finding_hash TEXT,
|
|
334
|
+
risk TEXT,
|
|
335
|
+
plan_json TEXT NOT NULL,
|
|
336
|
+
validator_result_json TEXT,
|
|
337
|
+
created_at TEXT NOT NULL,
|
|
338
|
+
updated_at TEXT NOT NULL
|
|
339
|
+
);
|
|
340
|
+
|
|
341
|
+
CREATE TABLE IF NOT EXISTS hygiene_governance_actions (
|
|
342
|
+
action_id TEXT PRIMARY KEY,
|
|
343
|
+
plan_id TEXT,
|
|
344
|
+
run_id TEXT,
|
|
345
|
+
scope_id TEXT NOT NULL,
|
|
346
|
+
action_type TEXT NOT NULL,
|
|
347
|
+
status TEXT NOT NULL,
|
|
348
|
+
affected_ids_json TEXT NOT NULL DEFAULT '[]',
|
|
349
|
+
affected_row_hashes_json TEXT NOT NULL DEFAULT '{}',
|
|
350
|
+
action_json TEXT NOT NULL DEFAULT '{}',
|
|
351
|
+
validator_decision_json TEXT,
|
|
352
|
+
before_snapshot_id TEXT,
|
|
353
|
+
after_state_json TEXT,
|
|
354
|
+
rollback_of_action_id TEXT,
|
|
355
|
+
created_at TEXT NOT NULL,
|
|
356
|
+
updated_at TEXT NOT NULL,
|
|
357
|
+
applied_at TEXT
|
|
358
|
+
);
|
|
359
|
+
|
|
360
|
+
CREATE TABLE IF NOT EXISTS hygiene_governance_approvals (
|
|
361
|
+
approval_id TEXT PRIMARY KEY,
|
|
362
|
+
action_id TEXT NOT NULL,
|
|
363
|
+
plan_id TEXT,
|
|
364
|
+
scope_id TEXT NOT NULL,
|
|
365
|
+
status TEXT NOT NULL,
|
|
366
|
+
confirmation_token_hash TEXT,
|
|
367
|
+
token_expires_at TEXT,
|
|
368
|
+
diff_summary TEXT,
|
|
369
|
+
affected_row_hashes_json TEXT NOT NULL DEFAULT '{}',
|
|
370
|
+
created_at TEXT NOT NULL,
|
|
371
|
+
updated_at TEXT NOT NULL,
|
|
372
|
+
decided_at TEXT
|
|
373
|
+
);
|
|
374
|
+
|
|
375
|
+
CREATE TABLE IF NOT EXISTS hygiene_governance_snapshots (
|
|
376
|
+
snapshot_id TEXT PRIMARY KEY,
|
|
377
|
+
scope_id TEXT NOT NULL,
|
|
378
|
+
action_id TEXT NOT NULL,
|
|
379
|
+
row_refs_json TEXT NOT NULL,
|
|
380
|
+
snapshot_json TEXT NOT NULL,
|
|
381
|
+
row_hashes_json TEXT NOT NULL,
|
|
382
|
+
created_at TEXT NOT NULL
|
|
383
|
+
);
|
|
384
|
+
|
|
385
|
+
CREATE INDEX IF NOT EXISTS idx_hygiene_governance_runs_scope ON hygiene_governance_runs(scope_id, created_at);
|
|
386
|
+
CREATE INDEX IF NOT EXISTS idx_hygiene_governance_plans_scope ON hygiene_governance_plans(scope_id, created_at);
|
|
387
|
+
CREATE INDEX IF NOT EXISTS idx_hygiene_governance_actions_scope ON hygiene_governance_actions(scope_id, created_at);
|
|
388
|
+
CREATE INDEX IF NOT EXISTS idx_hygiene_governance_approvals_scope ON hygiene_governance_approvals(scope_id, status);
|
|
389
|
+
CREATE INDEX IF NOT EXISTS idx_hygiene_governance_snapshots_action ON hygiene_governance_snapshots(action_id);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/types/analyzer.d.ts
CHANGED
|
File without changes
|
package/dist/types/analyzer.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/types/domain.d.ts
CHANGED
|
File without changes
|
package/dist/types/domain.js
CHANGED
|
File without changes
|
package/dist/types/domain.js.map
CHANGED
|
File without changes
|
package/dist/types/plugin.d.ts
CHANGED
|
File without changes
|
package/dist/types/plugin.js
CHANGED
|
File without changes
|
package/dist/types/plugin.js.map
CHANGED
|
File without changes
|
package/dist/types/storage.d.ts
CHANGED
|
File without changes
|
package/dist/types/storage.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/utils/clock.d.ts
CHANGED
|
File without changes
|
package/dist/utils/clock.js
CHANGED
|
File without changes
|
package/dist/utils/clock.js.map
CHANGED
|
File without changes
|
package/dist/utils/errors.d.ts
CHANGED
|
File without changes
|
package/dist/utils/errors.js
CHANGED
|
File without changes
|
package/dist/utils/errors.js.map
CHANGED
|
File without changes
|
package/dist/utils/hashing.d.ts
CHANGED
|
File without changes
|
package/dist/utils/hashing.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/utils/ids.d.ts
CHANGED
|
File without changes
|
package/dist/utils/ids.js
CHANGED
|
File without changes
|
package/dist/utils/ids.js.map
CHANGED
|
File without changes
|
package/dist/utils/text.d.ts
CHANGED
|
File without changes
|
package/dist/utils/text.js
CHANGED
|
File without changes
|
package/dist/utils/text.js.map
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/docs/releases/v0.1.0.md
CHANGED
|
File without changes
|
package/docs/releases/v0.1.1.md
CHANGED
|
File without changes
|
package/docs/releases/v0.1.2.md
CHANGED
|
File without changes
|
package/docs/releases/v0.1.3.md
CHANGED
|
File without changes
|
package/docs/releases/v0.2.0.md
CHANGED
|
File without changes
|
package/docs/releases/v0.2.1.md
CHANGED
|
File without changes
|
package/docs/releases/v0.3.0.md
CHANGED
|
File without changes
|
package/docs/releases/v0.3.1.md
CHANGED
|
File without changes
|
package/docs/releases/v0.3.2.md
CHANGED
|
File without changes
|
package/docs/releases/v0.3.3.md
CHANGED
|
File without changes
|
package/docs/releases/v0.3.4.md
CHANGED
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# ExperienceEngine v0.3.5
|
|
2
|
+
|
|
3
|
+
v0.3.5 productizes inspection and operator surfaces in one release: Quality Band becomes the shared trust explanation model, and CLI/MCP surfaces now distinguish routine, operator, and advanced workflows.
|
|
4
|
+
|
|
5
|
+
## What Changed
|
|
6
|
+
|
|
7
|
+
- Added a shared derived Quality Band explanation with `strong`, `building`, and `risky` bands.
|
|
8
|
+
- Added stable reason codes, readable reasons, evidence references, and review-only action text for node inspection.
|
|
9
|
+
- Preserved existing `qualityBand` and `qualityDrivers` public fields while adding the richer structured `quality` payload.
|
|
10
|
+
- Updated `ee inspect --last`, `ee inspect node:<id>`, and `ee inspect repo` to show Quality Band context.
|
|
11
|
+
- Exposed the same structured Quality Band fields through Codex/MCP inspection and broker payloads.
|
|
12
|
+
- Added shared routine/operator/advanced surface tier metadata.
|
|
13
|
+
- Reworked default CLI help so routine host-first review, operator workflows, and advanced/experimental commands are grouped separately.
|
|
14
|
+
- Added tier metadata to Codex broker action listings while preserving existing action ids, categories, and risk levels.
|
|
15
|
+
- Updated MCP capabilities to expose routine, operator, and advanced surface groupings.
|
|
16
|
+
- Updated README, README.zh-CN, user guide, and architecture docs to describe workflow tier separately from mutation risk.
|
|
17
|
+
- Hardened OpenClaw upgrade/repair reinstall handling so path/archive reinstalls safely clear stale ExperienceEngine plugin paths and allow-list entries before reinstalling.
|
|
18
|
+
- Added unit coverage for strong/building/risky derivation, CLI output, repo summary output, and Codex/MCP structured payloads.
|
|
19
|
+
|
|
20
|
+
## Boundaries
|
|
21
|
+
|
|
22
|
+
- Quality Band is explanatory only.
|
|
23
|
+
- It does not mutate nodes, create a new lifecycle state, or replace delivery gating.
|
|
24
|
+
- Runtime injection still depends on the existing delivery state, repo policy, scorecard, and second-opinion paths.
|
|
25
|
+
- Surface tiers are presentation and metadata only.
|
|
26
|
+
- Existing CLI commands and Codex broker action ids remain available.
|
|
27
|
+
- Operator review, hygiene, and export drafts remain read-only inspection flows; tier labeling does not imply policy restore, node mutation, or export writing.
|
|
28
|
+
- Risk and tier are separate axes: read-only operator workflows can be low-risk, while install/upgrade/import/rollback remain high-impact operator workflows.
|
|
29
|
+
|
|
30
|
+
## Validation
|
|
31
|
+
|
|
32
|
+
- `pnpm exec tsc --noEmit`
|
|
33
|
+
- `pnpm exec vitest run tests/unit/quality-band.test.ts tests/unit/interaction-service.test.ts tests/unit/inspect-command.test.ts tests/unit/codex-mcp-server.test.ts tests/unit/repo-summary.test.ts tests/unit/operator-review-flow.test.ts`
|
|
34
|
+
- `pnpm exec vitest run tests/unit/cli-dispatch.test.ts tests/unit/codex-broker-tools.test.ts tests/unit/codex-mcp-server.test.ts`
|
|
35
|
+
- `pnpm exec openspec validate formalize-quality-band-inspection-model --strict`
|
|
36
|
+
- `pnpm exec openspec validate complete-operator-surface-boundaries --strict`
|
|
37
|
+
- `pnpm exec openspec validate --all --strict`
|
|
38
|
+
- `pnpm check`
|
|
39
|
+
- Source-build Windows smoke: `node dist\cli\index.js inspect --last`, `node dist\cli\index.js inspect repo`, `node dist\cli\index.js doctor codex`, `node dist\cli\index.js doctor claude-code`
|
|
40
|
+
- Source-build WSL smoke: `node dist/cli/index.js upgrade openclaw`, `node dist/cli/index.js doctor openclaw`, `node dist/cli/index.js inspect repo`, `node dist/cli/index.js inspect --last`
|
|
41
|
+
|
|
42
|
+
Published npm package and host marketplace validation should be repeated after release because the smoke checks above used the source build.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# v0.3.6
|
|
2
|
+
|
|
3
|
+
`v0.3.6` adds autonomous hygiene governance. ExperienceEngine can now periodically govern duplicated, stale, or risky local experience without requiring users to run routine hygiene commands by hand.
|
|
4
|
+
|
|
5
|
+
## Added
|
|
6
|
+
|
|
7
|
+
- Added persisted per-scope governance schedules, leases, runs, plans, actions, legacy approval records, and rollback snapshots.
|
|
8
|
+
- Added host-attached governance wakeups from startup, prompt lookup, posttask finalization, and stop paths.
|
|
9
|
+
- Added bounded LLM-assisted governance planning, deterministic validation, safe automatic application, and guarded automatic execution for high-impact experience-node actions.
|
|
10
|
+
- Added MCP resources for `experienceengine://governance` and `experienceengine://governance/approvals`.
|
|
11
|
+
- Kept brokered governance approval actions as a compatibility surface for existing approval records.
|
|
12
|
+
- Added CLI fallback surfaces:
|
|
13
|
+
- `ee inspect governance`
|
|
14
|
+
- `ee maintenance governance drain`
|
|
15
|
+
|
|
16
|
+
## Behavior Notes
|
|
17
|
+
|
|
18
|
+
- Hygiene inspection and operator review remain read-only.
|
|
19
|
+
- Routine governance is automatic and host-attached; CLI drain is an operator fallback for troubleshooting or catch-up.
|
|
20
|
+
- Frequent host open/close cycles do not define governance cadence. The persisted schedule, lease, backoff, finding hash, and action budget do.
|
|
21
|
+
- Safe automatic actions include exact duplicate merge, stale shadow-only retirement, delivery downgrade, and quarantine.
|
|
22
|
+
- High-impact experience-node actions are applied as guarded soft changes: semantic/conflicted merges preserve evidence and downgrade live eligibility, promotion lands at conservative delivery, and deletion is a soft-retire with rollback snapshots. Broad rewrites, export writing, repo policy changes, and restore actions are rejected by automatic experience governance.
|
|
23
|
+
|
|
24
|
+
## Validation
|
|
25
|
+
|
|
26
|
+
- Targeted unit coverage for scheduler, LLM planner, validator, applicator, guarded execution, CLI, MCP, runtime, and operator review paths.
|
|
27
|
+
- `pnpm tsc --noEmit --pretty false`
|
|
28
|
+
- `openspec validate add-autonomous-hygiene-governance --strict`
|
package/docs/user-guide.md
CHANGED
|
@@ -221,6 +221,27 @@ Use `ee` for:
|
|
|
221
221
|
- learning and intervention inspection
|
|
222
222
|
- quick helped / harmed feedback
|
|
223
223
|
|
|
224
|
+
ExperienceEngine surfaces are grouped by workflow tier:
|
|
225
|
+
|
|
226
|
+
- `Routine`
|
|
227
|
+
- host-first review and feedback
|
|
228
|
+
- `ee status`
|
|
229
|
+
- `ee doctor <host>`
|
|
230
|
+
- `ee inspect --last`
|
|
231
|
+
- `ee helped` / `ee harmed`
|
|
232
|
+
- `Operator`
|
|
233
|
+
- `ee install|upgrade|repair <host>`
|
|
234
|
+
- `ee inspect review`
|
|
235
|
+
- `ee inspect hygiene`
|
|
236
|
+
- `ee inspect export-drafts`
|
|
237
|
+
- managed backup/export/import/rollback
|
|
238
|
+
- `Advanced / experimental`
|
|
239
|
+
- `ee maintenance ...`
|
|
240
|
+
- raw evaluation commands
|
|
241
|
+
- broker internals and developer diagnostics
|
|
242
|
+
|
|
243
|
+
Workflow tier is separate from mutation risk. Operator review, hygiene, and export drafts are operator-tier but read-only. Install, upgrade, import, and rollback are operator-tier and high-impact.
|
|
244
|
+
|
|
224
245
|
`ee status` and `ee doctor` now also summarize recent retrieval health in product language. They still show the raw counters, but they additionally explain whether ExperienceEngine is mostly injecting, mostly staying conservative, or still skipping too many close-match tasks in the current repo.
|
|
225
246
|
|
|
226
247
|
Their roles are intentionally different:
|
|
@@ -251,9 +272,12 @@ That output now tells you both:
|
|
|
251
272
|
When you inspect a specific node, ExperienceEngine now also shows a lightweight quality judgment layer:
|
|
252
273
|
|
|
253
274
|
- a `quality band` (`strong`, `building`, or `risky`)
|
|
254
|
-
-
|
|
275
|
+
- a short summary, reason codes, readable reasons, and evidence references behind that judgment
|
|
276
|
+
- a review-only action for `building` or `risky` guidance when a closer look is useful
|
|
255
277
|
- a compact applicability profile covering best fit, scope validity, confidence, risk, and when to avoid reuse
|
|
256
278
|
|
|
279
|
+
The same Quality Band model is also exposed in host-native MCP inspection payloads and in `ee inspect repo` as a current-scope distribution. It is explanatory only: it helps you judge whether guidance is strong, still building, or risky, but it does not by itself change delivery state, mutate nodes, or gate injection.
|
|
280
|
+
|
|
257
281
|
### Operator Review Workflow
|
|
258
282
|
|
|
259
283
|
Use the operator review workflow when you want one read-only checkpoint across the current repo before deciding what to inspect next.
|
|
@@ -275,6 +299,7 @@ The review report summarizes:
|
|
|
275
299
|
- repo policy health and circuit state
|
|
276
300
|
- hygiene finding counts
|
|
277
301
|
- export draft counts
|
|
302
|
+
- autonomous governance status, recent automatic actions, guarded actions, failures, and legacy pending approvals
|
|
278
303
|
- recommended review order
|
|
279
304
|
- prioritized review items
|
|
280
305
|
- review-only next actions
|
|
@@ -286,9 +311,10 @@ The drill-down commands are manual inspection steps:
|
|
|
286
311
|
ee inspect repo
|
|
287
312
|
ee inspect hygiene
|
|
288
313
|
ee inspect export-drafts
|
|
314
|
+
ee inspect governance
|
|
289
315
|
```
|
|
290
316
|
|
|
291
|
-
In MCP-capable hosts, ask the host agent to inspect the ExperienceEngine operator review or read `experienceengine://review`. The structured payload uses the same source names as the CLI: `repo_policy`, `hygiene`, and `
|
|
317
|
+
In MCP-capable hosts, ask the host agent to inspect the ExperienceEngine operator review or read `experienceengine://review`. The structured payload uses the same source names as the CLI: `repo_policy`, `hygiene`, `export_drafts`, and `governance`.
|
|
292
318
|
|
|
293
319
|
This workflow is intentionally read-only. It does not:
|
|
294
320
|
|
|
@@ -301,6 +327,45 @@ This workflow is intentionally read-only. It does not:
|
|
|
301
327
|
- open a console or mutation dashboard
|
|
302
328
|
- coordinate team workflows
|
|
303
329
|
|
|
330
|
+
## Autonomous Hygiene Governance
|
|
331
|
+
|
|
332
|
+
ExperienceEngine runs hygiene governance automatically through the host-attached runtime. Host startup, prompt lookup, posttask finalization, and stop events wake a cheap due check for the current canonical scope. The persisted schedule, lease, backoff, finding hash, and action budget decide whether real governance work runs, so frequent host restarts do not multiply governance frequency.
|
|
333
|
+
|
|
334
|
+
The automatic path applies validated experience-store mutations without routine user approval:
|
|
335
|
+
|
|
336
|
+
- exact duplicate merges that preserve evidence
|
|
337
|
+
- near-duplicate and conflicted semantic merges with evidence preserved
|
|
338
|
+
- stale shadow-only retirement
|
|
339
|
+
- delivery downgrades from live eligibility to conservative delivery
|
|
340
|
+
- quarantine for invalidated or harmed live guidance
|
|
341
|
+
- guarded promotion to conservative delivery
|
|
342
|
+
- guarded soft-retire for records that should leave delivery
|
|
343
|
+
|
|
344
|
+
High-impact experience-node actions use guarded automatic execution instead of approval. Guarded execution keeps the mutation reversible and conservative: rows are not physically deleted, before/after snapshots and affected row hashes are recorded, merged or promoted canonical guidance cannot become directly eligible for live injection, and retired/conflicting source nodes are quarantined. Broad rewrites, export writing, repo policy changes, and restore actions are outside automatic experience-store governance and are rejected unless a separate explicit workflow owns them.
|
|
345
|
+
|
|
346
|
+
Read-only inspection surfaces:
|
|
347
|
+
|
|
348
|
+
```bash
|
|
349
|
+
ee inspect governance
|
|
350
|
+
ee inspect review
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
MCP resources:
|
|
354
|
+
|
|
355
|
+
```text
|
|
356
|
+
experienceengine://governance
|
|
357
|
+
experienceengine://governance/approvals
|
|
358
|
+
experienceengine://review
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
Fallback drain command:
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
ee maintenance governance drain --cwd /path/to/repo
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
That command is for explicit operator troubleshooting or catch-up. It uses the same scheduler, lease, validator, audit, and rollback snapshot path as host-attached governance. An optional keeper can wake the same drain path for stricter wall-clock schedules, but it does not bypass budgets, leases, deterministic validators, guarded execution rules, or rollback safeguards.
|
|
368
|
+
|
|
304
369
|
## How MCP Interaction Works
|
|
305
370
|
|
|
306
371
|
For `Codex` and `Claude Code`, ExperienceEngine is designed to keep routine review and management inside the host session first.
|
|
@@ -345,7 +410,7 @@ For `Codex`, this means routine host-native interaction stays discoverable, whil
|
|
|
345
410
|
|
|
346
411
|
So the two hosts share the same product model, but they do not expose the exact same interaction shape.
|
|
347
412
|
|
|
348
|
-
For high-impact actions, ExperienceEngine does not execute immediately. It uses a:
|
|
413
|
+
For high-impact operator actions outside routine experience governance, ExperienceEngine does not execute immediately. It uses a:
|
|
349
414
|
|
|
350
415
|
```text
|
|
351
416
|
plan -> review -> explicit confirmation -> execute
|
|
@@ -362,6 +427,8 @@ That applies to:
|
|
|
362
427
|
- import
|
|
363
428
|
- rollback
|
|
364
429
|
|
|
430
|
+
Autonomous experience governance is different: it is constrained to the experience store and uses guarded automatic execution plus rollback snapshots instead of routine human approval.
|
|
431
|
+
|
|
365
432
|
## Current Governance Surface
|
|
366
433
|
|
|
367
434
|
Today, ExperienceEngine's minimal governance surface is:
|
|
@@ -670,7 +737,12 @@ Use `ee` directly when:
|
|
|
670
737
|
Useful fallback commands:
|
|
671
738
|
|
|
672
739
|
```bash
|
|
740
|
+
# Routine fallback
|
|
673
741
|
ee inspect --last
|
|
742
|
+
ee helped
|
|
743
|
+
ee harmed
|
|
744
|
+
|
|
745
|
+
# Operator inspection
|
|
674
746
|
ee inspect recent injected 10
|
|
675
747
|
ee inspect review
|
|
676
748
|
ee inspect repo
|
|
@@ -681,8 +753,6 @@ ee inspect active
|
|
|
681
753
|
ee inspect node <id>
|
|
682
754
|
ee inspect state retired
|
|
683
755
|
ee inspect type warning
|
|
684
|
-
ee helped
|
|
685
|
-
ee harmed
|
|
686
756
|
ee feedback --last helped
|
|
687
757
|
ee feedback node <id> harmed
|
|
688
758
|
ee disable scope
|
package/hooks/hooks.json
CHANGED
|
File without changes
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alan512/experienceengine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Experience governance for coding agents: learn from real task outcomes, inject reusable hints, and retire low-value guidance.",
|
|
6
6
|
"license": "MIT",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|