@alan512/experienceengine 0.3.1 → 0.3.3
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 +0 -0
- package/README.zh-CN.md +0 -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 +0 -0
- package/dist/adapters/codex/action-registry.js +0 -0
- package/dist/adapters/codex/action-registry.js.map +0 -0
- package/dist/adapters/codex/behavior-loop.d.ts +0 -0
- package/dist/adapters/codex/behavior-loop.js +0 -0
- package/dist/adapters/codex/behavior-loop.js.map +0 -0
- package/dist/adapters/codex/broker-tools.d.ts +0 -0
- package/dist/adapters/codex/broker-tools.js +0 -0
- package/dist/adapters/codex/broker-tools.js.map +0 -0
- package/dist/adapters/codex/instruction-template.d.ts +0 -0
- package/dist/adapters/codex/instruction-template.js +0 -0
- package/dist/adapters/codex/instruction-template.js.map +0 -0
- package/dist/adapters/codex/mcp-server.d.ts +0 -0
- package/dist/adapters/codex/mcp-server.js +1 -1
- package/dist/adapters/codex/mcp-server.js.map +0 -0
- 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 +7 -0
- package/dist/analyzer/llm-learning-gate.js +76 -11
- package/dist/analyzer/llm-learning-gate.js.map +1 -1
- 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 +0 -0
- package/dist/cli/commands/claude-hook.js.map +0 -0
- package/dist/cli/commands/codex-hook.d.ts +0 -0
- package/dist/cli/commands/codex-hook.js +0 -0
- package/dist/cli/commands/codex-hook.js.map +0 -0
- 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 +9 -0
- 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 +0 -0
- package/dist/cli/commands/maintenance.js.map +0 -0
- 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 +2 -1
- package/dist/cli/commands/repair.js.map +1 -1
- 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 +0 -0
- package/dist/cli/dispatch.js.map +0 -0
- 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 +7 -2
- package/dist/controller/injection-renderer.js +50 -19
- package/dist/controller/injection-renderer.js.map +1 -1
- package/dist/controller/injection-scorecard.d.ts +0 -0
- package/dist/controller/injection-scorecard.js +3 -0
- package/dist/controller/injection-scorecard.js.map +1 -1
- 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 +8 -2
- package/dist/controller/intervention-controller.js.map +1 -1
- 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 +12 -0
- package/dist/controller/skip-reason.js +82 -0
- package/dist/controller/skip-reason.js.map +1 -0
- package/dist/controller/skip-scorecard.d.ts +2 -0
- package/dist/controller/skip-scorecard.js +39 -0
- package/dist/controller/skip-scorecard.js.map +1 -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 +0 -0
- package/dist/input/input-adapter.js.map +0 -0
- package/dist/input/outcome-resolver.d.ts +0 -0
- package/dist/input/outcome-resolver.js +0 -0
- package/dist/input/outcome-resolver.js.map +0 -0
- 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 +6 -4
- package/dist/install/claude-code-doctor.js.map +1 -1
- package/dist/install/claude-code-installer.d.ts +0 -0
- package/dist/install/claude-code-installer.js +2 -5
- package/dist/install/claude-code-installer.js.map +1 -1
- 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 +7 -1
- package/dist/install/claude-runtime-target.js.map +1 -1
- 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 +2 -1
- package/dist/install/codex-installer.js.map +1 -1
- package/dist/install/codex-runtime-target.d.ts +1 -0
- package/dist/install/codex-runtime-target.js +7 -4
- package/dist/install/codex-runtime-target.js.map +1 -1
- 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 +0 -0
- package/dist/install/openclaw-cli.js +0 -0
- package/dist/install/openclaw-cli.js.map +0 -0
- package/dist/install/openclaw-installer.d.ts +0 -0
- package/dist/install/openclaw-installer.js +5 -9
- 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/repo-summary.d.ts +0 -0
- package/dist/interaction/repo-summary.js +0 -0
- package/dist/interaction/repo-summary.js.map +0 -0
- 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 +0 -0
- package/dist/interaction/service.js +3 -0
- 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/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/operator-review-flow.d.ts +0 -0
- package/dist/maintenance/operator-review-flow.js +0 -0
- package/dist/maintenance/operator-review-flow.js.map +0 -0
- 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 +1 -1
- package/dist/plugin/openclaw-plugin.js +0 -0
- package/dist/plugin/openclaw-plugin.js.map +0 -0
- 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 +3 -0
- package/dist/runtime/learning-candidate-factory.js +126 -0
- package/dist/runtime/learning-candidate-factory.js.map +1 -0
- package/dist/runtime/learning-pipeline-service.d.ts +24 -0
- package/dist/runtime/learning-pipeline-service.js +78 -0
- package/dist/runtime/learning-pipeline-service.js.map +1 -0
- package/dist/runtime/prompt-service.d.ts +3 -3
- package/dist/runtime/prompt-service.js +39 -34
- package/dist/runtime/prompt-service.js.map +1 -1
- package/dist/runtime/service.d.ts +5 -5
- package/dist/runtime/service.js +70 -306
- package/dist/runtime/service.js.map +1 -1
- package/dist/runtime/task-finalization-service.d.ts +36 -0
- package/dist/runtime/task-finalization-service.js +97 -0
- package/dist/runtime/task-finalization-service.js.map +1 -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 +0 -0
- package/dist/store/sqlite/db.js.map +0 -0
- 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/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 +0 -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 +7 -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 +20 -0
- package/docs/releases/v0.3.3.md +18 -0
- package/docs/user-guide.md +0 -0
- 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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { InputRecordRepository } from "../store/sqlite/repositories/input-record-repo.js";
|
|
2
|
+
import type { OutcomeRecordRepository } from "../store/sqlite/repositories/outcome-record-repo.js";
|
|
3
|
+
import type { ScopeRepository } from "../store/sqlite/repositories/scope-repo.js";
|
|
4
|
+
import type { StatsRepository } from "../store/sqlite/repositories/stats-repo.js";
|
|
5
|
+
import type { TaskRunRepository } from "../store/sqlite/repositories/task-run-repo.js";
|
|
6
|
+
import type { ExperienceInput, ExperienceInputRecord, TaskRun, ToolEvent } from "../types/domain.js";
|
|
7
|
+
import type { HostPromptContext } from "../types/plugin.js";
|
|
8
|
+
export type TaskFinalizationSessionState = {
|
|
9
|
+
context?: HostPromptContext;
|
|
10
|
+
toolEvents: ToolEvent[];
|
|
11
|
+
injectedNodeIds: string[];
|
|
12
|
+
};
|
|
13
|
+
export type TaskFinalizationServiceOptions = {
|
|
14
|
+
scopeRepo: ScopeRepository;
|
|
15
|
+
inputRepo: InputRecordRepository;
|
|
16
|
+
taskRunRepo: TaskRunRepository;
|
|
17
|
+
outcomeRepo: OutcomeRecordRepository;
|
|
18
|
+
statsRepo: StatsRepository;
|
|
19
|
+
};
|
|
20
|
+
export declare const mergeContext: (existing: HostPromptContext | undefined, incoming: HostPromptContext) => HostPromptContext;
|
|
21
|
+
export declare class TaskFinalizationService {
|
|
22
|
+
private readonly options;
|
|
23
|
+
constructor(options: TaskFinalizationServiceOptions);
|
|
24
|
+
buildFinalizedInput(context: HostPromptContext, session: TaskFinalizationSessionState): ExperienceInput;
|
|
25
|
+
persistFinalizedRun(input: {
|
|
26
|
+
experienceInput: ExperienceInput;
|
|
27
|
+
sessionId: string;
|
|
28
|
+
session: TaskFinalizationSessionState;
|
|
29
|
+
episodeId?: string;
|
|
30
|
+
context: HostPromptContext;
|
|
31
|
+
cwd?: string;
|
|
32
|
+
}): {
|
|
33
|
+
record: ExperienceInputRecord;
|
|
34
|
+
taskRun: TaskRun;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { buildCandidateSignals } from "../analyzer/candidate-signals.js";
|
|
2
|
+
import { createEmptyStats, updateStats } from "../feedback/stats-updater.js";
|
|
3
|
+
import { buildExperienceInput } from "../input/input-adapter.js";
|
|
4
|
+
import { resolveScope } from "../input/scope-resolver.js";
|
|
5
|
+
import { nowIso } from "../utils/clock.js";
|
|
6
|
+
import { createId, stableId } from "../utils/ids.js";
|
|
7
|
+
export const mergeContext = (existing, incoming) => ({
|
|
8
|
+
host: incoming.host ?? existing?.host,
|
|
9
|
+
sessionId: incoming.sessionId ?? existing?.sessionId,
|
|
10
|
+
cwd: incoming.cwd ?? existing?.cwd,
|
|
11
|
+
userMessage: incoming.userMessage || existing?.userMessage || "",
|
|
12
|
+
taskSummary: incoming.taskSummary ?? existing?.taskSummary,
|
|
13
|
+
contextSummary: incoming.contextSummary ?? existing?.contextSummary,
|
|
14
|
+
injectedNodeIds: incoming.injectedNodeIds ?? existing?.injectedNodeIds
|
|
15
|
+
});
|
|
16
|
+
const toEvidence = (input) => input.tool_events.map((event) => [event.tool_name, event.status, event.error_signature ?? event.output_summary]
|
|
17
|
+
.filter(Boolean)
|
|
18
|
+
.join(": "));
|
|
19
|
+
const toInputRecord = (input, sessionId, episodeId) => ({
|
|
20
|
+
record_id: createId("input"),
|
|
21
|
+
episode_id: episodeId,
|
|
22
|
+
scope_id: input.scope_id,
|
|
23
|
+
session_id: sessionId,
|
|
24
|
+
task_type: input.task_type,
|
|
25
|
+
task_summary: input.task_summary,
|
|
26
|
+
outcome_signal: input.outcome_signal,
|
|
27
|
+
context_summary: input.context_summary,
|
|
28
|
+
evidence: toEvidence(input),
|
|
29
|
+
injected_node_ids: input.injected_node_ids,
|
|
30
|
+
created_at: nowIso()
|
|
31
|
+
});
|
|
32
|
+
const toTaskRun = (input, sessionId, context, episodeId) => {
|
|
33
|
+
const timestamp = nowIso();
|
|
34
|
+
const signals = buildCandidateSignals(input);
|
|
35
|
+
return {
|
|
36
|
+
id: stableId("taskrun", `${sessionId}:${input.task_summary}:${timestamp}`),
|
|
37
|
+
episode_id: episodeId,
|
|
38
|
+
host: context.host ?? "openclaw",
|
|
39
|
+
scope_id: input.scope_id,
|
|
40
|
+
session_id: sessionId,
|
|
41
|
+
task_type: input.task_type,
|
|
42
|
+
task_summary: input.task_summary,
|
|
43
|
+
prompt_excerpt: context.userMessage,
|
|
44
|
+
context_summary: input.context_summary,
|
|
45
|
+
started_at: timestamp,
|
|
46
|
+
ended_at: timestamp,
|
|
47
|
+
final_status: input.outcome_signal === "success" ? "success" : input.outcome_signal === "failure" ? "failure" : "unknown",
|
|
48
|
+
failure_signature: signals.failure_signature,
|
|
49
|
+
learning_status: undefined,
|
|
50
|
+
learning_reason: undefined,
|
|
51
|
+
created_at: timestamp,
|
|
52
|
+
updated_at: timestamp
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
const toOutcomeRecord = (taskRun, input, episodeId) => ({
|
|
56
|
+
id: createId("outcome"),
|
|
57
|
+
episode_id: episodeId,
|
|
58
|
+
task_run_id: taskRun.id,
|
|
59
|
+
outcome_signal: input.outcome_signal,
|
|
60
|
+
failure_signature: taskRun.failure_signature,
|
|
61
|
+
summary: input.task_summary,
|
|
62
|
+
created_at: nowIso()
|
|
63
|
+
});
|
|
64
|
+
export class TaskFinalizationService {
|
|
65
|
+
options;
|
|
66
|
+
constructor(options) {
|
|
67
|
+
this.options = options;
|
|
68
|
+
}
|
|
69
|
+
buildFinalizedInput(context, session) {
|
|
70
|
+
const mergedContext = mergeContext(session.context, context);
|
|
71
|
+
const injectedNodeIds = session.injectedNodeIds.length > 0 ? session.injectedNodeIds : mergedContext.injectedNodeIds ?? [];
|
|
72
|
+
return buildExperienceInput({
|
|
73
|
+
...mergedContext,
|
|
74
|
+
injectedNodeIds
|
|
75
|
+
}, session.toolEvents);
|
|
76
|
+
}
|
|
77
|
+
persistFinalizedRun(input) {
|
|
78
|
+
const resolvedScope = resolveScope(input.cwd ?? input.session.context?.cwd);
|
|
79
|
+
const existingScope = this.options.scopeRepo.getById(resolvedScope.scope_id);
|
|
80
|
+
this.options.scopeRepo.upsert({
|
|
81
|
+
...resolvedScope,
|
|
82
|
+
is_disabled: existingScope?.is_disabled ?? resolvedScope.is_disabled
|
|
83
|
+
});
|
|
84
|
+
const record = toInputRecord(input.experienceInput, input.sessionId, input.episodeId);
|
|
85
|
+
this.options.inputRepo.upsert(record);
|
|
86
|
+
if (input.experienceInput.task_type !== "unknown") {
|
|
87
|
+
const currentStats = this.options.statsRepo.get(input.experienceInput.scope_id, input.experienceInput.task_type) ??
|
|
88
|
+
createEmptyStats(input.experienceInput.scope_id, input.experienceInput.task_type);
|
|
89
|
+
this.options.statsRepo.upsert(updateStats(currentStats, input.experienceInput.outcome_signal, input.experienceInput.injected_node_ids.length > 0));
|
|
90
|
+
}
|
|
91
|
+
const taskRun = toTaskRun(input.experienceInput, input.sessionId, input.context, input.episodeId);
|
|
92
|
+
this.options.taskRunRepo.upsert(taskRun);
|
|
93
|
+
this.options.outcomeRepo.upsert(toOutcomeRecord(taskRun, input.experienceInput, input.episodeId));
|
|
94
|
+
return { record, taskRun };
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=task-finalization-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-finalization-service.js","sourceRoot":"","sources":["../../src/runtime/task-finalization-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EA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AAa,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtF,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEtC,IAAI,KAAK,CAAC,eAAe,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YAClD,MAAM,YAAY,GAChB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC;gBAC3F,gBAAgB,CAAC,KAAK,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;YACpF,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAC3B,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC,cAAc,EAAE,KAAK,CAAC,eAAe,CAAC,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CACpH,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QAClG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;QAElG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;IAC7B,CAAC;CACF"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/store/sqlite/db.js
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
|
|
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
|
|
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
|
|
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
|
|
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
|
@@ -28,6 +28,7 @@ export type MatchScorecard = {
|
|
|
28
28
|
};
|
|
29
29
|
export type InterventionConfidence = "low" | "medium" | "high";
|
|
30
30
|
export type InterventionBudgetClass = "none" | "single_hint" | "multi_hint";
|
|
31
|
+
export type SkipReasonCode = "scope_disabled" | "repo_policy_blocked_or_circuit_open" | "holdout_suppressed" | "shadow_suppressed" | "no_candidate" | "candidate_not_mature" | "delivery_state_shadow_only" | "recent_harm_or_quarantined" | "semantic_match_policy_rejected" | "task_family_mismatch" | "low_confidence_or_score_margin" | "record_only_diagnostic_candidate";
|
|
31
32
|
export type SyncSecondOpinionDecision = "allow" | "allow_conservative" | "skip";
|
|
32
33
|
export type SyncSecondOpinionTrigger = "conservative_delivery_state" | "harm_history" | "close_score_margin" | "expectation_correction";
|
|
33
34
|
export type EvaluationMode = "live" | "shadow" | "holdout";
|
|
@@ -358,6 +359,9 @@ export type InterventionRejectedCandidate = {
|
|
|
358
359
|
};
|
|
359
360
|
export type InterventionDecisionDiagnostics = {
|
|
360
361
|
interventionStrength?: InterventionStrength;
|
|
362
|
+
renderingPolicyReason?: string;
|
|
363
|
+
skipReasonCode?: SkipReasonCode;
|
|
364
|
+
skipReasonExplanation?: string;
|
|
361
365
|
recordOnlyDiagnosticCandidateIds?: string[];
|
|
362
366
|
retrievalPolicyDiagnostics?: RetrievalPolicyDiagnostics;
|
|
363
367
|
topCandidates: InjectionScorecardCandidate[];
|
|
@@ -387,6 +391,9 @@ export type InjectionScorecard = {
|
|
|
387
391
|
taskSummary: string;
|
|
388
392
|
mode: InjectionMode;
|
|
389
393
|
interventionStrength?: InterventionStrength;
|
|
394
|
+
renderingPolicyReason?: string;
|
|
395
|
+
skipReasonCode?: SkipReasonCode;
|
|
396
|
+
skipReasonExplanation?: string;
|
|
390
397
|
riskLevel: InjectionRiskLevel;
|
|
391
398
|
recommendation: string;
|
|
392
399
|
reasons: string[];
|
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
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ExperienceEngine v0.3.2
|
|
2
|
+
|
|
3
|
+
Release date: 2026-05-13
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
|
|
7
|
+
v0.3.2 is a Codex App hook compatibility patch for Windows projects that previously used inline `node -e` hook commands.
|
|
8
|
+
|
|
9
|
+
## Included
|
|
10
|
+
|
|
11
|
+
- Changed Windows Codex project hook registration to call the generated `.codex/experienceengine-codex-hook.cmd` launcher instead of relying on `node` being available on the Codex App process `PATH`.
|
|
12
|
+
- Kept POSIX / WSL Codex CLI hook registration on the existing cross-runtime command path so working CLI setups are not forced onto the Windows launcher.
|
|
13
|
+
- Updated `ee install codex` and `ee repair codex` to pass the resolved runtime target into project hook generation.
|
|
14
|
+
- Added repair coverage for stale inline `node -e ... codex-hook` entries so existing projects are migrated to the stable launcher command.
|
|
15
|
+
|
|
16
|
+
## Upgrade Notes
|
|
17
|
+
|
|
18
|
+
- Existing Codex App users should update to `@alan512/experienceengine@0.3.2`, then run `ee repair codex` in each Codex-enabled repo.
|
|
19
|
+
- If repairing a Windows Codex App project from WSL, run `EXPERIENCE_ENGINE_CODEX_RUNTIME_TARGET=windows ee repair codex`.
|
|
20
|
+
- Reopen the Codex App project window, run `/hooks`, and approve ExperienceEngine's `UserPromptSubmit`, `PostToolUse`, and `Stop` hooks again because the hook command hash changed.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ExperienceEngine v0.3.3
|
|
2
|
+
|
|
3
|
+
Release date: 2026-05-14
|
|
4
|
+
|
|
5
|
+
## Summary
|
|
6
|
+
|
|
7
|
+
v0.3.3 is an OpenClaw packaging metadata patch that keeps the packaged plugin manifest version aligned with the npm package version.
|
|
8
|
+
|
|
9
|
+
## Included
|
|
10
|
+
|
|
11
|
+
- Updated the OpenClaw plugin manifest version for the v0.3.3 package.
|
|
12
|
+
- Made the OpenClaw install tarball generator write `openclaw.plugin.json` with the same version as `package.json`.
|
|
13
|
+
- Added package verification coverage so future OpenClaw install artifacts cannot drift between package and plugin manifest versions.
|
|
14
|
+
|
|
15
|
+
## Upgrade Notes
|
|
16
|
+
|
|
17
|
+
- Existing OpenClaw users should update to `@alan512/experienceengine@0.3.3`, then run `ee upgrade openclaw` or `ee repair openclaw` in the OpenClaw host environment.
|
|
18
|
+
- If OpenClaw is installed inside WSL, run the command from that WSL distribution so the plugin is installed into the correct host config and extension directories.
|
package/docs/user-guide.md
CHANGED
|
File without changes
|
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.3",
|
|
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
|