pulseed 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__tests__/core.test.d.ts +2 -0
- package/dist/__tests__/core.test.d.ts.map +1 -0
- package/dist/__tests__/core.test.js +275 -0
- package/dist/__tests__/core.test.js.map +1 -0
- package/dist/__tests__/index-exports.test.d.ts +2 -0
- package/dist/__tests__/index-exports.test.d.ts.map +1 -0
- package/dist/__tests__/index-exports.test.js +21 -0
- package/dist/__tests__/index-exports.test.js.map +1 -0
- package/dist/adapters/__tests__/a2a-adapter.test.d.ts +2 -0
- package/dist/adapters/__tests__/a2a-adapter.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/a2a-adapter.test.js +264 -0
- package/dist/adapters/__tests__/a2a-adapter.test.js.map +1 -0
- package/dist/adapters/__tests__/a2a-client.test.d.ts +2 -0
- package/dist/adapters/__tests__/a2a-client.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/a2a-client.test.js +211 -0
- package/dist/adapters/__tests__/a2a-client.test.js.map +1 -0
- package/dist/adapters/__tests__/agent-profile-loader.test.d.ts +2 -0
- package/dist/adapters/__tests__/agent-profile-loader.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/agent-profile-loader.test.js +141 -0
- package/dist/adapters/__tests__/agent-profile-loader.test.js.map +1 -0
- package/dist/adapters/__tests__/browser-use-cli-adapter.test.d.ts +2 -0
- package/dist/adapters/__tests__/browser-use-cli-adapter.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/browser-use-cli-adapter.test.js +226 -0
- package/dist/adapters/__tests__/browser-use-cli-adapter.test.js.map +1 -0
- package/dist/adapters/__tests__/claude-code-cli-adapter.test.d.ts +2 -0
- package/dist/adapters/__tests__/claude-code-cli-adapter.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/claude-code-cli-adapter.test.js +215 -0
- package/dist/adapters/__tests__/claude-code-cli-adapter.test.js.map +1 -0
- package/dist/adapters/__tests__/file-existence-datasource.test.d.ts +2 -0
- package/dist/adapters/__tests__/file-existence-datasource.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/file-existence-datasource.test.js +119 -0
- package/dist/adapters/__tests__/file-existence-datasource.test.js.map +1 -0
- package/dist/adapters/__tests__/github-issue-adapter.test.d.ts +2 -0
- package/dist/adapters/__tests__/github-issue-adapter.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/github-issue-adapter.test.js +584 -0
- package/dist/adapters/__tests__/github-issue-adapter.test.js.map +1 -0
- package/dist/adapters/__tests__/github-issue-datasource.test.d.ts +2 -0
- package/dist/adapters/__tests__/github-issue-datasource.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/github-issue-datasource.test.js +318 -0
- package/dist/adapters/__tests__/github-issue-datasource.test.js.map +1 -0
- package/dist/adapters/__tests__/mcp-client-manager.test.d.ts +2 -0
- package/dist/adapters/__tests__/mcp-client-manager.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/mcp-client-manager.test.js +248 -0
- package/dist/adapters/__tests__/mcp-client-manager.test.js.map +1 -0
- package/dist/adapters/__tests__/mcp-datasource.test.d.ts +2 -0
- package/dist/adapters/__tests__/mcp-datasource.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/mcp-datasource.test.js +187 -0
- package/dist/adapters/__tests__/mcp-datasource.test.js.map +1 -0
- package/dist/adapters/__tests__/openai-codex-adapter.test.d.ts +2 -0
- package/dist/adapters/__tests__/openai-codex-adapter.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/openai-codex-adapter.test.js +246 -0
- package/dist/adapters/__tests__/openai-codex-adapter.test.js.map +1 -0
- package/dist/adapters/__tests__/openclaw-acp.test.d.ts +2 -0
- package/dist/adapters/__tests__/openclaw-acp.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/openclaw-acp.test.js +239 -0
- package/dist/adapters/__tests__/openclaw-acp.test.js.map +1 -0
- package/dist/adapters/__tests__/openclaw-datasource.test.d.ts +2 -0
- package/dist/adapters/__tests__/openclaw-datasource.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/openclaw-datasource.test.js +252 -0
- package/dist/adapters/__tests__/openclaw-datasource.test.js.map +1 -0
- package/dist/adapters/__tests__/shell-datasource.test.d.ts +2 -0
- package/dist/adapters/__tests__/shell-datasource.test.d.ts.map +1 -0
- package/dist/adapters/__tests__/shell-datasource.test.js +186 -0
- package/dist/adapters/__tests__/shell-datasource.test.js.map +1 -0
- package/dist/adapters/agents/a2a-adapter.d.ts +49 -0
- package/dist/adapters/agents/a2a-adapter.d.ts.map +1 -0
- package/dist/adapters/agents/a2a-adapter.js +211 -0
- package/dist/adapters/agents/a2a-adapter.js.map +1 -0
- package/dist/adapters/agents/a2a-client.d.ts +28 -0
- package/dist/adapters/agents/a2a-client.d.ts.map +1 -0
- package/dist/adapters/agents/a2a-client.js +178 -0
- package/dist/adapters/agents/a2a-client.js.map +1 -0
- package/dist/adapters/agents/agent-profile-loader.d.ts +26 -0
- package/dist/adapters/agents/agent-profile-loader.d.ts.map +1 -0
- package/dist/adapters/agents/agent-profile-loader.js +88 -0
- package/dist/adapters/agents/agent-profile-loader.js.map +1 -0
- package/dist/adapters/agents/browser-use-cli.d.ts +19 -0
- package/dist/adapters/agents/browser-use-cli.d.ts.map +1 -0
- package/dist/adapters/agents/browser-use-cli.js +74 -0
- package/dist/adapters/agents/browser-use-cli.js.map +1 -0
- package/dist/adapters/agents/claude-api.d.ts +10 -0
- package/dist/adapters/agents/claude-api.d.ts.map +1 -0
- package/dist/adapters/agents/claude-api.js +64 -0
- package/dist/adapters/agents/claude-api.js.map +1 -0
- package/dist/adapters/agents/claude-code-cli.d.ts +14 -0
- package/dist/adapters/agents/claude-code-cli.d.ts.map +1 -0
- package/dist/adapters/agents/claude-code-cli.js +49 -0
- package/dist/adapters/agents/claude-code-cli.js.map +1 -0
- package/dist/adapters/agents/openai-codex.d.ts +28 -0
- package/dist/adapters/agents/openai-codex.d.ts.map +1 -0
- package/dist/adapters/agents/openai-codex.js +63 -0
- package/dist/adapters/agents/openai-codex.js.map +1 -0
- package/dist/adapters/agents/openclaw-acp.d.ts +32 -0
- package/dist/adapters/agents/openclaw-acp.d.ts.map +1 -0
- package/dist/adapters/agents/openclaw-acp.js.map +1 -0
- package/dist/adapters/datasources/file-existence-datasource.d.ts +16 -0
- package/dist/adapters/datasources/file-existence-datasource.d.ts.map +1 -0
- package/dist/adapters/datasources/file-existence-datasource.js.map +1 -0
- package/dist/adapters/datasources/github-issue-datasource.d.ts +45 -0
- package/dist/adapters/datasources/github-issue-datasource.d.ts.map +1 -0
- package/dist/adapters/datasources/github-issue-datasource.js.map +1 -0
- package/dist/adapters/datasources/mcp-datasource.d.ts +20 -0
- package/dist/adapters/datasources/mcp-datasource.d.ts.map +1 -0
- package/dist/adapters/datasources/mcp-datasource.js.map +1 -0
- package/dist/adapters/datasources/openclaw-datasource.d.ts +33 -0
- package/dist/adapters/datasources/openclaw-datasource.d.ts.map +1 -0
- package/dist/adapters/datasources/openclaw-datasource.js.map +1 -0
- package/dist/adapters/datasources/shell-datasource.d.ts +36 -0
- package/dist/adapters/datasources/shell-datasource.d.ts.map +1 -0
- package/dist/adapters/datasources/shell-datasource.js.map +1 -0
- package/dist/adapters/github-issue.d.ts +2 -2
- package/dist/adapters/github-issue.d.ts.map +1 -1
- package/dist/adapters/github-issue.js +1 -1
- package/dist/adapters/github-issue.js.map +1 -1
- package/dist/adapters/mcp-client-manager.d.ts +2 -2
- package/dist/adapters/mcp-client-manager.d.ts.map +1 -1
- package/dist/adapters/mcp-client-manager.js +2 -2
- package/dist/adapters/mcp-client-manager.js.map +1 -1
- package/dist/adapters/spawn-helper.d.ts +1 -1
- package/dist/adapters/spawn-helper.d.ts.map +1 -1
- package/dist/adapters/types/a2a.d.ts +721 -0
- package/dist/adapters/types/a2a.d.ts.map +1 -0
- package/dist/adapters/types/a2a.js +114 -0
- package/dist/adapters/types/a2a.js.map +1 -0
- package/dist/adapters/types/agent-profile.d.ts +32 -0
- package/dist/adapters/types/agent-profile.d.ts.map +1 -0
- package/dist/adapters/types/agent-profile.js +16 -0
- package/dist/adapters/types/agent-profile.js.map +1 -0
- package/dist/adapters/types/mcp.d.ts +170 -0
- package/dist/adapters/types/mcp.d.ts.map +1 -0
- package/dist/adapters/types/mcp.js +30 -0
- package/dist/adapters/types/mcp.js.map +1 -0
- package/dist/base/llm/__tests__/codex-llm-client.test.d.ts +2 -0
- package/dist/base/llm/__tests__/codex-llm-client.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/codex-llm-client.test.js +334 -0
- package/dist/base/llm/__tests__/codex-llm-client.test.js.map +1 -0
- package/dist/base/llm/__tests__/json-sanitizer.test.d.ts +2 -0
- package/dist/base/llm/__tests__/json-sanitizer.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/json-sanitizer.test.js +134 -0
- package/dist/base/llm/__tests__/json-sanitizer.test.js.map +1 -0
- package/dist/base/llm/__tests__/llm-client-send-message.test.d.ts +2 -0
- package/dist/base/llm/__tests__/llm-client-send-message.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/llm-client-send-message.test.js +155 -0
- package/dist/base/llm/__tests__/llm-client-send-message.test.js.map +1 -0
- package/dist/base/llm/__tests__/llm-client.test.d.ts +2 -0
- package/dist/base/llm/__tests__/llm-client.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/llm-client.test.js +401 -0
- package/dist/base/llm/__tests__/llm-client.test.js.map +1 -0
- package/dist/base/llm/__tests__/ollama-client.test.d.ts +2 -0
- package/dist/base/llm/__tests__/ollama-client.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/ollama-client.test.js +253 -0
- package/dist/base/llm/__tests__/ollama-client.test.js.map +1 -0
- package/dist/base/llm/__tests__/openai-client.test.d.ts +2 -0
- package/dist/base/llm/__tests__/openai-client.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/openai-client.test.js +245 -0
- package/dist/base/llm/__tests__/openai-client.test.js.map +1 -0
- package/dist/base/llm/__tests__/provider-config.test.d.ts +2 -0
- package/dist/base/llm/__tests__/provider-config.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/provider-config.test.js +334 -0
- package/dist/base/llm/__tests__/provider-config.test.js.map +1 -0
- package/dist/base/llm/__tests__/provider-factory.test.d.ts +2 -0
- package/dist/base/llm/__tests__/provider-factory.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/provider-factory.test.js +166 -0
- package/dist/base/llm/__tests__/provider-factory.test.js.map +1 -0
- package/dist/base/llm/__tests__/provider-oauth.test.d.ts +2 -0
- package/dist/base/llm/__tests__/provider-oauth.test.d.ts.map +1 -0
- package/dist/base/llm/__tests__/provider-oauth.test.js +120 -0
- package/dist/base/llm/__tests__/provider-oauth.test.js.map +1 -0
- package/dist/base/llm/base-llm-client.d.ts +83 -0
- package/dist/base/llm/base-llm-client.d.ts.map +1 -0
- package/dist/base/llm/base-llm-client.js +210 -0
- package/dist/base/llm/base-llm-client.js.map +1 -0
- package/dist/base/llm/codex-llm-client.d.ts +45 -0
- package/dist/base/llm/codex-llm-client.d.ts.map +1 -0
- package/dist/base/llm/codex-llm-client.js +190 -0
- package/dist/base/llm/codex-llm-client.js.map +1 -0
- package/dist/base/llm/json-sanitizer.d.ts +34 -0
- package/dist/base/llm/json-sanitizer.d.ts.map +1 -0
- package/dist/base/llm/json-sanitizer.js +110 -0
- package/dist/base/llm/json-sanitizer.js.map +1 -0
- package/dist/base/llm/llm-client.d.ts +93 -0
- package/dist/base/llm/llm-client.d.ts.map +1 -0
- package/dist/base/llm/llm-client.js +205 -0
- package/dist/base/llm/llm-client.js.map +1 -0
- package/dist/base/llm/ollama-client.d.ts +27 -0
- package/dist/base/llm/ollama-client.d.ts.map +1 -0
- package/dist/base/llm/ollama-client.js +111 -0
- package/dist/base/llm/ollama-client.js.map +1 -0
- package/dist/base/llm/openai-client.d.ts +37 -0
- package/dist/base/llm/openai-client.d.ts.map +1 -0
- package/dist/base/llm/openai-client.js +156 -0
- package/dist/base/llm/openai-client.js.map +1 -0
- package/dist/base/llm/provider-config.d.ts +102 -0
- package/dist/base/llm/provider-config.d.ts.map +1 -0
- package/dist/base/llm/provider-config.js +320 -0
- package/dist/base/llm/provider-config.js.map +1 -0
- package/dist/base/llm/provider-factory.d.ts +24 -0
- package/dist/base/llm/provider-factory.d.ts.map +1 -0
- package/dist/base/llm/provider-factory.js +134 -0
- package/dist/base/llm/provider-factory.js.map +1 -0
- package/dist/base/state/__tests__/state-manager.test.d.ts +2 -0
- package/dist/base/state/__tests__/state-manager.test.d.ts.map +1 -0
- package/dist/base/state/__tests__/state-manager.test.js +796 -0
- package/dist/base/state/__tests__/state-manager.test.js.map +1 -0
- package/dist/base/state/state-manager.d.ts +106 -0
- package/dist/base/state/state-manager.d.ts.map +1 -0
- package/dist/base/state/state-manager.js +518 -0
- package/dist/base/state/state-manager.js.map +1 -0
- package/dist/base/state/state-persistence.d.ts +12 -0
- package/dist/base/state/state-persistence.d.ts.map +1 -0
- package/dist/base/state/state-persistence.js +58 -0
- package/dist/base/state/state-persistence.js.map +1 -0
- package/dist/base/state/types/state.d.ts +245 -0
- package/dist/base/state/types/state.d.ts.map +1 -0
- package/dist/base/state/types/state.js +36 -0
- package/dist/base/state/types/state.js.map +1 -0
- package/dist/base/types/__tests__/cross-portfolio.test.d.ts +2 -0
- package/dist/base/types/__tests__/cross-portfolio.test.d.ts.map +1 -0
- package/dist/base/types/__tests__/cross-portfolio.test.js +336 -0
- package/dist/base/types/__tests__/cross-portfolio.test.js.map +1 -0
- package/dist/base/types/__tests__/existing-extensions.test.d.ts +2 -0
- package/dist/base/types/__tests__/existing-extensions.test.d.ts.map +1 -0
- package/dist/base/types/__tests__/existing-extensions.test.js +140 -0
- package/dist/base/types/__tests__/existing-extensions.test.js.map +1 -0
- package/dist/base/types/__tests__/goal-refiner-types.test.d.ts +2 -0
- package/dist/base/types/__tests__/goal-refiner-types.test.d.ts.map +1 -0
- package/dist/base/types/__tests__/goal-refiner-types.test.js +198 -0
- package/dist/base/types/__tests__/goal-refiner-types.test.js.map +1 -0
- package/dist/base/types/__tests__/goal-tree-integration.test.d.ts +2 -0
- package/dist/base/types/__tests__/goal-tree-integration.test.d.ts.map +1 -0
- package/dist/base/types/__tests__/goal-tree-integration.test.js +327 -0
- package/dist/base/types/__tests__/goal-tree-integration.test.js.map +1 -0
- package/dist/base/types/__tests__/goal-tree.test.d.ts +2 -0
- package/dist/base/types/__tests__/goal-tree.test.d.ts.map +1 -0
- package/dist/base/types/__tests__/goal-tree.test.js +286 -0
- package/dist/base/types/__tests__/goal-tree.test.js.map +1 -0
- package/dist/base/types/__tests__/learning.test.d.ts +2 -0
- package/dist/base/types/__tests__/learning.test.d.ts.map +1 -0
- package/dist/base/types/__tests__/learning.test.js +306 -0
- package/dist/base/types/__tests__/learning.test.js.map +1 -0
- package/dist/base/types/__tests__/suggest-output-schema.test.d.ts +2 -0
- package/dist/base/types/__tests__/suggest-output-schema.test.d.ts.map +1 -0
- package/dist/base/types/__tests__/suggest-output-schema.test.js +239 -0
- package/dist/base/types/__tests__/suggest-output-schema.test.js.map +1 -0
- package/dist/base/types/a2a.d.ts +2 -0
- package/dist/base/types/a2a.d.ts.map +1 -0
- package/dist/base/types/a2a.js +3 -0
- package/dist/base/types/a2a.js.map +1 -0
- package/dist/base/types/agent-profile.d.ts +2 -0
- package/dist/base/types/agent-profile.d.ts.map +1 -0
- package/dist/base/types/agent-profile.js +3 -0
- package/dist/base/types/agent-profile.js.map +1 -0
- package/dist/base/types/capability.d.ts +2 -0
- package/dist/base/types/capability.d.ts.map +1 -0
- package/dist/base/types/capability.js +3 -0
- package/dist/base/types/capability.js.map +1 -0
- package/dist/base/types/character.d.ts +2 -0
- package/dist/base/types/character.d.ts.map +1 -0
- package/dist/base/types/character.js +3 -0
- package/dist/base/types/character.js.map +1 -0
- package/dist/base/types/checkpoint.d.ts +2 -0
- package/dist/base/types/checkpoint.d.ts.map +1 -0
- package/dist/base/types/checkpoint.js +3 -0
- package/dist/base/types/checkpoint.js.map +1 -0
- package/dist/base/types/core.d.ts +175 -0
- package/dist/base/types/core.d.ts.map +1 -0
- package/dist/base/types/core.js +156 -0
- package/dist/base/types/core.js.map +1 -0
- package/dist/base/types/cron.d.ts +2 -0
- package/dist/base/types/cron.d.ts.map +1 -0
- package/dist/base/types/cron.js +3 -0
- package/dist/base/types/cron.js.map +1 -0
- package/dist/base/types/cross-portfolio.d.ts +2 -0
- package/dist/base/types/cross-portfolio.d.ts.map +1 -0
- package/dist/base/types/cross-portfolio.js +3 -0
- package/dist/base/types/cross-portfolio.js.map +1 -0
- package/dist/base/types/curiosity.d.ts +2 -0
- package/dist/base/types/curiosity.d.ts.map +1 -0
- package/dist/base/types/curiosity.js +3 -0
- package/dist/base/types/curiosity.js.map +1 -0
- package/dist/base/types/daemon.d.ts +2 -0
- package/dist/base/types/daemon.d.ts.map +1 -0
- package/dist/base/types/daemon.js +3 -0
- package/dist/base/types/daemon.js.map +1 -0
- package/dist/base/types/data-source.d.ts +2 -0
- package/dist/base/types/data-source.d.ts.map +1 -0
- package/dist/base/types/data-source.js +3 -0
- package/dist/base/types/data-source.js.map +1 -0
- package/dist/base/types/dependency.d.ts +2 -0
- package/dist/base/types/dependency.d.ts.map +1 -0
- package/dist/base/types/dependency.js +3 -0
- package/dist/base/types/dependency.js.map +1 -0
- package/dist/base/types/drive.d.ts +2 -0
- package/dist/base/types/drive.d.ts.map +1 -0
- package/dist/base/types/drive.js +3 -0
- package/dist/base/types/drive.js.map +1 -0
- package/dist/base/types/embedding.d.ts +2 -0
- package/dist/base/types/embedding.d.ts.map +1 -0
- package/dist/base/types/embedding.js +3 -0
- package/dist/base/types/embedding.js.map +1 -0
- package/dist/base/types/ethics.d.ts +2 -0
- package/dist/base/types/ethics.d.ts.map +1 -0
- package/dist/base/types/ethics.js +3 -0
- package/dist/base/types/ethics.js.map +1 -0
- package/dist/base/types/gap.d.ts +2 -0
- package/dist/base/types/gap.d.ts.map +1 -0
- package/dist/base/types/gap.js +3 -0
- package/dist/base/types/gap.js.map +1 -0
- package/dist/base/types/goal-refiner.d.ts +2 -0
- package/dist/base/types/goal-refiner.d.ts.map +1 -0
- package/dist/base/types/goal-refiner.js +3 -0
- package/dist/base/types/goal-refiner.js.map +1 -0
- package/dist/base/types/goal-tree.d.ts +2 -0
- package/dist/base/types/goal-tree.d.ts.map +1 -0
- package/dist/base/types/goal-tree.js +3 -0
- package/dist/base/types/goal-tree.js.map +1 -0
- package/dist/base/types/goal.d.ts +2 -0
- package/dist/base/types/goal.d.ts.map +1 -0
- package/dist/base/types/goal.js +3 -0
- package/dist/base/types/goal.js.map +1 -0
- package/dist/base/types/guardrail.d.ts +2 -0
- package/dist/base/types/guardrail.d.ts.map +1 -0
- package/dist/base/types/guardrail.js +3 -0
- package/dist/base/types/guardrail.js.map +1 -0
- package/dist/base/types/hook.d.ts +2 -0
- package/dist/base/types/hook.d.ts.map +1 -0
- package/dist/base/types/hook.js +3 -0
- package/dist/base/types/hook.js.map +1 -0
- package/dist/base/types/index.d.ts +32 -0
- package/dist/base/types/index.d.ts.map +1 -0
- package/dist/base/types/index.js +32 -0
- package/dist/base/types/index.js.map +1 -0
- package/dist/base/types/knowledge.d.ts +2 -0
- package/dist/base/types/knowledge.d.ts.map +1 -0
- package/dist/base/types/knowledge.js +3 -0
- package/dist/base/types/knowledge.js.map +1 -0
- package/dist/base/types/learning.d.ts +2 -0
- package/dist/base/types/learning.d.ts.map +1 -0
- package/dist/base/types/learning.js +3 -0
- package/dist/base/types/learning.js.map +1 -0
- package/dist/base/types/mcp.d.ts +2 -0
- package/dist/base/types/mcp.d.ts.map +1 -0
- package/dist/base/types/mcp.js +3 -0
- package/dist/base/types/mcp.js.map +1 -0
- package/dist/base/types/memory-lifecycle.d.ts +2 -0
- package/dist/base/types/memory-lifecycle.d.ts.map +1 -0
- package/dist/base/types/memory-lifecycle.js +3 -0
- package/dist/base/types/memory-lifecycle.js.map +1 -0
- package/dist/base/types/negotiation.d.ts +2 -0
- package/dist/base/types/negotiation.d.ts.map +1 -0
- package/dist/base/types/negotiation.js +3 -0
- package/dist/base/types/negotiation.js.map +1 -0
- package/dist/base/types/notification.d.ts +2 -0
- package/dist/base/types/notification.d.ts.map +1 -0
- package/dist/base/types/notification.js +3 -0
- package/dist/base/types/notification.js.map +1 -0
- package/dist/base/types/pipeline.d.ts +2 -0
- package/dist/base/types/pipeline.d.ts.map +1 -0
- package/dist/base/types/pipeline.js +3 -0
- package/dist/base/types/pipeline.js.map +1 -0
- package/dist/base/types/plugin.d.ts +2 -0
- package/dist/base/types/plugin.d.ts.map +1 -0
- package/dist/base/types/plugin.js +3 -0
- package/dist/base/types/plugin.js.map +1 -0
- package/dist/base/types/portfolio.d.ts +2 -0
- package/dist/base/types/portfolio.d.ts.map +1 -0
- package/dist/base/types/portfolio.js +3 -0
- package/dist/base/types/portfolio.js.map +1 -0
- package/dist/base/types/reflection.d.ts +2 -0
- package/dist/base/types/reflection.d.ts.map +1 -0
- package/dist/base/types/reflection.js +3 -0
- package/dist/base/types/reflection.js.map +1 -0
- package/dist/base/types/report.d.ts +2 -0
- package/dist/base/types/report.d.ts.map +1 -0
- package/dist/base/types/report.js +3 -0
- package/dist/base/types/report.js.map +1 -0
- package/dist/base/types/satisficing.d.ts +2 -0
- package/dist/base/types/satisficing.d.ts.map +1 -0
- package/dist/base/types/satisficing.js +3 -0
- package/dist/base/types/satisficing.js.map +1 -0
- package/dist/base/types/session.d.ts +2 -0
- package/dist/base/types/session.d.ts.map +1 -0
- package/dist/base/types/session.js +3 -0
- package/dist/base/types/session.js.map +1 -0
- package/dist/base/types/stall.d.ts +2 -0
- package/dist/base/types/stall.d.ts.map +1 -0
- package/dist/base/types/stall.js +3 -0
- package/dist/base/types/stall.js.map +1 -0
- package/dist/base/types/state.d.ts +2 -0
- package/dist/base/types/state.d.ts.map +1 -0
- package/dist/base/types/state.js +3 -0
- package/dist/base/types/state.js.map +1 -0
- package/dist/base/types/strategy.d.ts +2 -0
- package/dist/base/types/strategy.d.ts.map +1 -0
- package/dist/base/types/strategy.js +3 -0
- package/dist/base/types/strategy.js.map +1 -0
- package/dist/base/types/suggest.d.ts +2 -0
- package/dist/base/types/suggest.d.ts.map +1 -0
- package/dist/base/types/suggest.js +3 -0
- package/dist/base/types/suggest.js.map +1 -0
- package/dist/base/types/task-group.d.ts +2 -0
- package/dist/base/types/task-group.d.ts.map +1 -0
- package/dist/base/types/task-group.js +3 -0
- package/dist/base/types/task-group.js.map +1 -0
- package/dist/base/types/task.d.ts +2 -0
- package/dist/base/types/task.d.ts.map +1 -0
- package/dist/base/types/task.js +3 -0
- package/dist/base/types/task.js.map +1 -0
- package/dist/base/types/trigger.d.ts +2 -0
- package/dist/base/types/trigger.d.ts.map +1 -0
- package/dist/base/types/trigger.js +3 -0
- package/dist/base/types/trigger.js.map +1 -0
- package/dist/base/types/trust.d.ts +2 -0
- package/dist/base/types/trust.d.ts.map +1 -0
- package/dist/base/types/trust.js +3 -0
- package/dist/base/types/trust.js.map +1 -0
- package/dist/base/utils/errors.d.ts +17 -0
- package/dist/base/utils/errors.d.ts.map +1 -0
- package/dist/base/utils/errors.js +34 -0
- package/dist/base/utils/errors.js.map +1 -0
- package/dist/base/utils/execFileNoThrow.d.ts +20 -0
- package/dist/base/utils/execFileNoThrow.d.ts.map +1 -0
- package/dist/base/utils/execFileNoThrow.js +33 -0
- package/dist/base/utils/execFileNoThrow.js.map +1 -0
- package/dist/base/utils/json-io.d.ts +28 -0
- package/dist/base/utils/json-io.d.ts.map +1 -0
- package/dist/base/utils/json-io.js +71 -0
- package/dist/base/utils/json-io.js.map +1 -0
- package/dist/base/utils/paths.d.ts +14 -0
- package/dist/base/utils/paths.d.ts.map +1 -0
- package/dist/base/utils/paths.js +38 -0
- package/dist/base/utils/paths.js.map +1 -0
- package/dist/base/utils/sleep.d.ts +2 -0
- package/dist/base/utils/sleep.d.ts.map +1 -0
- package/dist/base/utils/sleep.js +4 -0
- package/dist/base/utils/sleep.js.map +1 -0
- package/dist/chat/__tests__/chat-grounding.test.d.ts +2 -0
- package/dist/chat/__tests__/chat-grounding.test.d.ts.map +1 -0
- package/dist/chat/__tests__/chat-grounding.test.js +388 -0
- package/dist/chat/__tests__/chat-grounding.test.js.map +1 -0
- package/dist/chat/__tests__/chat-history.test.d.ts +2 -0
- package/dist/chat/__tests__/chat-history.test.d.ts.map +1 -0
- package/dist/chat/__tests__/chat-history.test.js +97 -0
- package/dist/chat/__tests__/chat-history.test.js.map +1 -0
- package/dist/chat/__tests__/chat-runner.test.d.ts +2 -0
- package/dist/chat/__tests__/chat-runner.test.d.ts.map +1 -0
- package/dist/chat/__tests__/chat-runner.test.js +270 -0
- package/dist/chat/__tests__/chat-runner.test.js.map +1 -0
- package/dist/chat/__tests__/chat-verifier.test.d.ts +2 -0
- package/dist/chat/__tests__/chat-verifier.test.d.ts.map +1 -0
- package/dist/chat/__tests__/chat-verifier.test.js +71 -0
- package/dist/chat/__tests__/chat-verifier.test.js.map +1 -0
- package/dist/chat/__tests__/escalation.test.d.ts +2 -0
- package/dist/chat/__tests__/escalation.test.d.ts.map +1 -0
- package/dist/chat/__tests__/escalation.test.js +149 -0
- package/dist/chat/__tests__/escalation.test.js.map +1 -0
- package/dist/chat/__tests__/self-knowledge-mutation-tools.test.d.ts +2 -0
- package/dist/chat/__tests__/self-knowledge-mutation-tools.test.d.ts.map +1 -0
- package/dist/chat/__tests__/self-knowledge-mutation-tools.test.js +371 -0
- package/dist/chat/__tests__/self-knowledge-mutation-tools.test.js.map +1 -0
- package/dist/chat/__tests__/self-knowledge-tools.test.d.ts +2 -0
- package/dist/chat/__tests__/self-knowledge-tools.test.d.ts.map +1 -0
- package/dist/chat/__tests__/self-knowledge-tools.test.js +223 -0
- package/dist/chat/__tests__/self-knowledge-tools.test.js.map +1 -0
- package/dist/chat/chat-history.d.ts +1 -1
- package/dist/chat/chat-history.d.ts.map +1 -1
- package/dist/chat/chat-runner.d.ts +36 -3
- package/dist/chat/chat-runner.d.ts.map +1 -1
- package/dist/chat/chat-runner.js +143 -5
- package/dist/chat/chat-runner.js.map +1 -1
- package/dist/chat/chat-verifier.d.ts +13 -0
- package/dist/chat/chat-verifier.d.ts.map +1 -0
- package/dist/chat/chat-verifier.js +35 -0
- package/dist/chat/chat-verifier.js.map +1 -0
- package/dist/chat/escalation.d.ts +2 -2
- package/dist/chat/escalation.d.ts.map +1 -1
- package/dist/chat/grounding.d.ts +8 -0
- package/dist/chat/grounding.d.ts.map +1 -0
- package/dist/chat/grounding.js +104 -0
- package/dist/chat/grounding.js.map +1 -0
- package/dist/chat/mutation-tool-defs.d.ts +19 -0
- package/dist/chat/mutation-tool-defs.d.ts.map +1 -0
- package/dist/chat/mutation-tool-defs.js +154 -0
- package/dist/chat/mutation-tool-defs.js.map +1 -0
- package/dist/chat/self-knowledge-mutation-tools.d.ts +5 -0
- package/dist/chat/self-knowledge-mutation-tools.d.ts.map +1 -0
- package/dist/chat/self-knowledge-mutation-tools.js +249 -0
- package/dist/chat/self-knowledge-mutation-tools.js.map +1 -0
- package/dist/chat/self-knowledge-tools.d.ts +22 -0
- package/dist/chat/self-knowledge-tools.d.ts.map +1 -0
- package/dist/chat/self-knowledge-tools.js +261 -0
- package/dist/chat/self-knowledge-tools.js.map +1 -0
- package/dist/cli/__tests__/cleanup-orphan-datasource.test.d.ts +2 -0
- package/dist/cli/__tests__/cleanup-orphan-datasource.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cleanup-orphan-datasource.test.js +108 -0
- package/dist/cli/__tests__/cleanup-orphan-datasource.test.js.map +1 -0
- package/dist/cli/__tests__/cli-capability.test.d.ts +8 -0
- package/dist/cli/__tests__/cli-capability.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-capability.test.js +208 -0
- package/dist/cli/__tests__/cli-capability.test.js.map +1 -0
- package/dist/cli/__tests__/cli-daemon-status.test.d.ts +2 -0
- package/dist/cli/__tests__/cli-daemon-status.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-daemon-status.test.js +205 -0
- package/dist/cli/__tests__/cli-daemon-status.test.js.map +1 -0
- package/dist/cli/__tests__/cli-doctor.test.d.ts +2 -0
- package/dist/cli/__tests__/cli-doctor.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-doctor.test.js +291 -0
- package/dist/cli/__tests__/cli-doctor.test.js.map +1 -0
- package/dist/cli/__tests__/cli-improve.test.d.ts +11 -0
- package/dist/cli/__tests__/cli-improve.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-improve.test.js +592 -0
- package/dist/cli/__tests__/cli-improve.test.js.map +1 -0
- package/dist/cli/__tests__/cli-install.test.d.ts +2 -0
- package/dist/cli/__tests__/cli-install.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-install.test.js +307 -0
- package/dist/cli/__tests__/cli-install.test.js.map +1 -0
- package/dist/cli/__tests__/cli-knowledge.test.d.ts +9 -0
- package/dist/cli/__tests__/cli-knowledge.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-knowledge.test.js +295 -0
- package/dist/cli/__tests__/cli-knowledge.test.js.map +1 -0
- package/dist/cli/__tests__/cli-logs.test.d.ts +2 -0
- package/dist/cli/__tests__/cli-logs.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-logs.test.js +204 -0
- package/dist/cli/__tests__/cli-logs.test.js.map +1 -0
- package/dist/cli/__tests__/cli-notify.test.d.ts +2 -0
- package/dist/cli/__tests__/cli-notify.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-notify.test.js +208 -0
- package/dist/cli/__tests__/cli-notify.test.js.map +1 -0
- package/dist/cli/__tests__/cli-plugin.test.d.ts +8 -0
- package/dist/cli/__tests__/cli-plugin.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-plugin.test.js +379 -0
- package/dist/cli/__tests__/cli-plugin.test.js.map +1 -0
- package/dist/cli/__tests__/cli-runner-datasource-auto.test.d.ts +9 -0
- package/dist/cli/__tests__/cli-runner-datasource-auto.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-runner-datasource-auto.test.js +398 -0
- package/dist/cli/__tests__/cli-runner-datasource-auto.test.js.map +1 -0
- package/dist/cli/__tests__/cli-runner-integration.test.d.ts +13 -0
- package/dist/cli/__tests__/cli-runner-integration.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-runner-integration.test.js +298 -0
- package/dist/cli/__tests__/cli-runner-integration.test.js.map +1 -0
- package/dist/cli/__tests__/cli-runner.test.d.ts +29 -0
- package/dist/cli/__tests__/cli-runner.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-runner.test.js +928 -0
- package/dist/cli/__tests__/cli-runner.test.js.map +1 -0
- package/dist/cli/__tests__/cli-setup.test.d.ts +12 -0
- package/dist/cli/__tests__/cli-setup.test.d.ts.map +1 -0
- package/dist/cli/__tests__/cli-setup.test.js +200 -0
- package/dist/cli/__tests__/cli-setup.test.js.map +1 -0
- package/dist/cli/__tests__/datasource-dedup.test.d.ts +2 -0
- package/dist/cli/__tests__/datasource-dedup.test.d.ts.map +1 -0
- package/dist/cli/__tests__/datasource-dedup.test.js +133 -0
- package/dist/cli/__tests__/datasource-dedup.test.js.map +1 -0
- package/dist/cli/__tests__/goal-dispatch-infer.test.d.ts +11 -0
- package/dist/cli/__tests__/goal-dispatch-infer.test.d.ts.map +1 -0
- package/dist/cli/__tests__/goal-dispatch-infer.test.js +140 -0
- package/dist/cli/__tests__/goal-dispatch-infer.test.js.map +1 -0
- package/dist/cli/__tests__/goal-infer.test.d.ts +2 -0
- package/dist/cli/__tests__/goal-infer.test.d.ts.map +1 -0
- package/dist/cli/__tests__/goal-infer.test.js +94 -0
- package/dist/cli/__tests__/goal-infer.test.js.map +1 -0
- package/dist/cli/__tests__/goal-utils.test.d.ts +2 -0
- package/dist/cli/__tests__/goal-utils.test.d.ts.map +1 -0
- package/dist/cli/__tests__/goal-utils.test.js +123 -0
- package/dist/cli/__tests__/goal-utils.test.js.map +1 -0
- package/dist/cli/__tests__/suggest-normalizer.test.d.ts +2 -0
- package/dist/cli/__tests__/suggest-normalizer.test.d.ts.map +1 -0
- package/dist/cli/__tests__/suggest-normalizer.test.js +43 -0
- package/dist/cli/__tests__/suggest-normalizer.test.js.map +1 -0
- package/dist/cli/cli-command-registry 2.d.ts +16 -0
- package/dist/cli/cli-command-registry 2.d.ts.map +1 -0
- package/dist/cli/cli-command-registry 2.js +408 -0
- package/dist/cli/cli-command-registry 2.js.map +1 -0
- package/dist/cli/cli-command-registry.d.ts +16 -0
- package/dist/cli/cli-command-registry.d.ts.map +1 -0
- package/dist/cli/cli-command-registry.js +408 -0
- package/dist/cli/cli-command-registry.js.map +1 -0
- package/dist/cli/cli-logger.js +1 -1
- package/dist/cli/cli-logger.js.map +1 -1
- package/dist/cli/cli-runner.d.ts.map +1 -0
- package/dist/cli/cli-runner.js +122 -0
- package/dist/cli/cli-runner.js.map +1 -0
- package/dist/cli/commands/chat.d.ts +1 -1
- package/dist/cli/commands/chat.d.ts.map +1 -1
- package/dist/cli/commands/chat.js +2 -2
- package/dist/cli/commands/chat.js.map +1 -1
- package/dist/cli/commands/config.d.ts +1 -1
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/config.js +5 -5
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/daemon.d.ts +1 -1
- package/dist/cli/commands/daemon.d.ts.map +1 -1
- package/dist/cli/commands/daemon.js +22 -2
- package/dist/cli/commands/daemon.js.map +1 -1
- package/dist/cli/commands/doctor.js +5 -5
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/goal-dispatch.d.ts +1 -1
- package/dist/cli/commands/goal-dispatch.d.ts.map +1 -1
- package/dist/cli/commands/goal-dispatch.js +1 -1
- package/dist/cli/commands/goal-dispatch.js.map +1 -1
- package/dist/cli/commands/goal-infer.d.ts +1 -1
- package/dist/cli/commands/goal-infer.d.ts.map +1 -1
- package/dist/cli/commands/goal-raw.d.ts +1 -1
- package/dist/cli/commands/goal-raw.d.ts.map +1 -1
- package/dist/cli/commands/goal-read.d.ts +2 -2
- package/dist/cli/commands/goal-read.d.ts.map +1 -1
- package/dist/cli/commands/goal-read.js +3 -3
- package/dist/cli/commands/goal-read.js.map +1 -1
- package/dist/cli/commands/goal-utils.d.ts +1 -1
- package/dist/cli/commands/goal-utils.d.ts.map +1 -1
- package/dist/cli/commands/goal-utils.js +2 -2
- package/dist/cli/commands/goal-utils.js.map +1 -1
- package/dist/cli/commands/goal-write.d.ts +1 -1
- package/dist/cli/commands/goal-write.d.ts.map +1 -1
- package/dist/cli/commands/goal-write.js +2 -2
- package/dist/cli/commands/goal-write.js.map +1 -1
- package/dist/cli/commands/install.js +2 -2
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/knowledge.d.ts +1 -1
- package/dist/cli/commands/knowledge.d.ts.map +1 -1
- package/dist/cli/commands/logs.js +1 -1
- package/dist/cli/commands/logs.js.map +1 -1
- package/dist/cli/commands/notify.js +2 -2
- package/dist/cli/commands/notify.js.map +1 -1
- package/dist/cli/commands/plugin.js +1 -1
- package/dist/cli/commands/plugin.js.map +1 -1
- package/dist/cli/commands/report.d.ts +1 -1
- package/dist/cli/commands/report.d.ts.map +1 -1
- package/dist/cli/commands/report.js +1 -1
- package/dist/cli/commands/report.js.map +1 -1
- package/dist/cli/commands/run.d.ts +3 -3
- package/dist/cli/commands/run.d.ts.map +1 -1
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/setup.js +2 -2
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/suggest.d.ts +1 -1
- package/dist/cli/commands/suggest.d.ts.map +1 -1
- package/dist/cli/commands/suggest.js +2 -2
- package/dist/cli/commands/suggest.js.map +1 -1
- package/dist/cli/commands/task-read.d.ts +1 -1
- package/dist/cli/commands/task-read.d.ts.map +1 -1
- package/dist/cli/commands/telegram.d.ts +2 -0
- package/dist/cli/commands/telegram.d.ts.map +1 -0
- package/dist/cli/commands/telegram.js +155 -0
- package/dist/cli/commands/telegram.js.map +1 -0
- package/dist/cli/ensure-api-key.d.ts +1 -1
- package/dist/cli/ensure-api-key.d.ts.map +1 -1
- package/dist/cli/ensure-api-key.js +2 -2
- package/dist/cli/ensure-api-key.js.map +1 -1
- package/dist/cli/setup.d.ts +5 -5
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +10 -10
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/utils/loop-runner.d.ts +1 -1
- package/dist/cli/utils/loop-runner.d.ts.map +1 -1
- package/dist/cli/utils/loop-runner.js +1 -1
- package/dist/cli/utils/loop-runner.js.map +1 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +1 -0
- package/dist/cli/utils.js.map +1 -1
- package/dist/drive/__tests__/drive-scorer.test.d.ts +2 -0
- package/dist/drive/__tests__/drive-scorer.test.d.ts.map +1 -0
- package/dist/drive/__tests__/drive-scorer.test.js +507 -0
- package/dist/drive/__tests__/drive-scorer.test.js.map +1 -0
- package/dist/drive/__tests__/drive-system.test.d.ts +2 -0
- package/dist/drive/__tests__/drive-system.test.d.ts.map +1 -0
- package/dist/drive/__tests__/drive-system.test.js +456 -0
- package/dist/drive/__tests__/drive-system.test.js.map +1 -0
- package/dist/drive/__tests__/example.test.d.ts +2 -0
- package/dist/drive/__tests__/example.test.d.ts.map +1 -0
- package/dist/drive/__tests__/example.test.js +314 -0
- package/dist/drive/__tests__/example.test.js.map +1 -0
- package/dist/drive/__tests__/gap-calculator.test.d.ts +2 -0
- package/dist/drive/__tests__/gap-calculator.test.d.ts.map +1 -0
- package/dist/drive/__tests__/gap-calculator.test.js +619 -0
- package/dist/drive/__tests__/gap-calculator.test.js.map +1 -0
- package/dist/drive/__tests__/progress-predictor.test.d.ts +2 -0
- package/dist/drive/__tests__/progress-predictor.test.d.ts.map +1 -0
- package/dist/drive/__tests__/progress-predictor.test.js +142 -0
- package/dist/drive/__tests__/progress-predictor.test.js.map +1 -0
- package/dist/drive/__tests__/reward-log.test.d.ts +2 -0
- package/dist/drive/__tests__/reward-log.test.d.ts.map +1 -0
- package/dist/drive/__tests__/reward-log.test.js +177 -0
- package/dist/drive/__tests__/reward-log.test.js.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-convergence.test.d.ts +2 -0
- package/dist/drive/__tests__/satisficing-judge-convergence.test.d.ts.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-convergence.test.js +159 -0
- package/dist/drive/__tests__/satisficing-judge-convergence.test.js.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-dimension-satisfied.test.d.ts +2 -0
- package/dist/drive/__tests__/satisficing-judge-dimension-satisfied.test.d.ts.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-dimension-satisfied.test.js +261 -0
- package/dist/drive/__tests__/satisficing-judge-dimension-satisfied.test.js.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-double-confirm.test.d.ts +2 -0
- package/dist/drive/__tests__/satisficing-judge-double-confirm.test.d.ts.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-double-confirm.test.js +207 -0
- package/dist/drive/__tests__/satisficing-judge-double-confirm.test.js.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-goal-complete.test.d.ts +2 -0
- package/dist/drive/__tests__/satisficing-judge-goal-complete.test.d.ts.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-goal-complete.test.js +359 -0
- package/dist/drive/__tests__/satisficing-judge-goal-complete.test.js.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-propagation-phase2.test.d.ts +2 -0
- package/dist/drive/__tests__/satisficing-judge-propagation-phase2.test.d.ts.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-propagation-phase2.test.js +461 -0
- package/dist/drive/__tests__/satisficing-judge-propagation-phase2.test.js.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-threshold-propagation.test.d.ts +2 -0
- package/dist/drive/__tests__/satisficing-judge-threshold-propagation.test.d.ts.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-threshold-propagation.test.js +337 -0
- package/dist/drive/__tests__/satisficing-judge-threshold-propagation.test.js.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-tree-convergence.test.d.ts +2 -0
- package/dist/drive/__tests__/satisficing-judge-tree-convergence.test.d.ts.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-tree-convergence.test.js +109 -0
- package/dist/drive/__tests__/satisficing-judge-tree-convergence.test.js.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-undershoot.test.d.ts +2 -0
- package/dist/drive/__tests__/satisficing-judge-undershoot.test.d.ts.map +1 -0
- package/dist/drive/__tests__/satisficing-judge-undershoot.test.js +221 -0
- package/dist/drive/__tests__/satisficing-judge-undershoot.test.js.map +1 -0
- package/dist/drive/__tests__/stall-detector-analysis.test.d.ts +12 -0
- package/dist/drive/__tests__/stall-detector-analysis.test.d.ts.map +1 -0
- package/dist/drive/__tests__/stall-detector-analysis.test.js +139 -0
- package/dist/drive/__tests__/stall-detector-analysis.test.js.map +1 -0
- package/dist/drive/__tests__/stall-detector-repetitive.test.d.ts +2 -0
- package/dist/drive/__tests__/stall-detector-repetitive.test.d.ts.map +1 -0
- package/dist/drive/__tests__/stall-detector-repetitive.test.js +84 -0
- package/dist/drive/__tests__/stall-detector-repetitive.test.js.map +1 -0
- package/dist/drive/__tests__/stall-detector.test.d.ts +2 -0
- package/dist/drive/__tests__/stall-detector.test.d.ts.map +1 -0
- package/dist/drive/__tests__/stall-detector.test.js +903 -0
- package/dist/drive/__tests__/stall-detector.test.js.map +1 -0
- package/dist/drive/drive-system.d.ts +1 -1
- package/dist/drive/drive-system.d.ts.map +1 -1
- package/dist/drive/drive-system.js +1 -1
- package/dist/drive/drive-system.js.map +1 -1
- package/dist/drive/satisficing-judge.d.ts +1 -1
- package/dist/drive/satisficing-judge.d.ts.map +1 -1
- package/dist/drive/satisficing-propagation.d.ts +1 -1
- package/dist/drive/satisficing-propagation.d.ts.map +1 -1
- package/dist/drive/stall-detector.d.ts +20 -1
- package/dist/drive/stall-detector.d.ts.map +1 -1
- package/dist/drive/stall-detector.js +75 -0
- package/dist/drive/stall-detector.js.map +1 -1
- package/dist/drive/types/drive.d.ts +194 -0
- package/dist/drive/types/drive.d.ts.map +1 -0
- package/dist/drive/types/drive.js +77 -0
- package/dist/drive/types/drive.js.map +1 -0
- package/dist/drive/types/gap.d.ts +147 -0
- package/dist/drive/types/gap.d.ts.map +1 -0
- package/dist/drive/types/gap.js +41 -0
- package/dist/drive/types/gap.js.map +1 -0
- package/dist/drive/types/satisficing.d.ts +130 -0
- package/dist/drive/types/satisficing.d.ts.map +1 -0
- package/dist/drive/types/satisficing.js +54 -0
- package/dist/drive/types/satisficing.js.map +1 -0
- package/dist/drive/types/stall.d.ts +68 -0
- package/dist/drive/types/stall.d.ts.map +1 -0
- package/dist/drive/types/stall.js +28 -0
- package/dist/drive/types/stall.js.map +1 -0
- package/dist/execution/__tests__/adapter-layer.test.d.ts +2 -0
- package/dist/execution/__tests__/adapter-layer.test.d.ts.map +1 -0
- package/dist/execution/__tests__/adapter-layer.test.js +88 -0
- package/dist/execution/__tests__/adapter-layer.test.js.map +1 -0
- package/dist/execution/__tests__/checkpoint-manager.test.d.ts +2 -0
- package/dist/execution/__tests__/checkpoint-manager.test.d.ts.map +1 -0
- package/dist/execution/__tests__/checkpoint-manager.test.js +304 -0
- package/dist/execution/__tests__/checkpoint-manager.test.js.map +1 -0
- package/dist/execution/__tests__/completion-judger-timeout.test.d.ts +11 -0
- package/dist/execution/__tests__/completion-judger-timeout.test.d.ts.map +1 -0
- package/dist/execution/__tests__/completion-judger-timeout.test.js +260 -0
- package/dist/execution/__tests__/completion-judger-timeout.test.js.map +1 -0
- package/dist/execution/__tests__/context-budget.test.d.ts +2 -0
- package/dist/execution/__tests__/context-budget.test.d.ts.map +1 -0
- package/dist/execution/__tests__/context-budget.test.js +218 -0
- package/dist/execution/__tests__/context-budget.test.js.map +1 -0
- package/dist/execution/__tests__/duplicate-task-guard.test.d.ts +2 -0
- package/dist/execution/__tests__/duplicate-task-guard.test.d.ts.map +1 -0
- package/dist/execution/__tests__/duplicate-task-guard.test.js +187 -0
- package/dist/execution/__tests__/duplicate-task-guard.test.js.map +1 -0
- package/dist/execution/__tests__/failure-context-injection.test.d.ts +2 -0
- package/dist/execution/__tests__/failure-context-injection.test.d.ts.map +1 -0
- package/dist/execution/__tests__/failure-context-injection.test.js +227 -0
- package/dist/execution/__tests__/failure-context-injection.test.js.map +1 -0
- package/dist/execution/__tests__/impact-analyzer.test.d.ts +2 -0
- package/dist/execution/__tests__/impact-analyzer.test.d.ts.map +1 -0
- package/dist/execution/__tests__/impact-analyzer.test.js +117 -0
- package/dist/execution/__tests__/impact-analyzer.test.js.map +1 -0
- package/dist/execution/__tests__/issue-context-fetcher.test.d.ts +2 -0
- package/dist/execution/__tests__/issue-context-fetcher.test.d.ts.map +1 -0
- package/dist/execution/__tests__/issue-context-fetcher.test.js +151 -0
- package/dist/execution/__tests__/issue-context-fetcher.test.js.map +1 -0
- package/dist/execution/__tests__/parallel-executor.test.d.ts +2 -0
- package/dist/execution/__tests__/parallel-executor.test.d.ts.map +1 -0
- package/dist/execution/__tests__/parallel-executor.test.js +313 -0
- package/dist/execution/__tests__/parallel-executor.test.js.map +1 -0
- package/dist/execution/__tests__/pipeline-executor.test.d.ts +2 -0
- package/dist/execution/__tests__/pipeline-executor.test.d.ts.map +1 -0
- package/dist/execution/__tests__/pipeline-executor.test.js +322 -0
- package/dist/execution/__tests__/pipeline-executor.test.js.map +1 -0
- package/dist/execution/__tests__/reflection-generator.test.d.ts +2 -0
- package/dist/execution/__tests__/reflection-generator.test.d.ts.map +1 -0
- package/dist/execution/__tests__/reflection-generator.test.js +422 -0
- package/dist/execution/__tests__/reflection-generator.test.js.map +1 -0
- package/dist/execution/__tests__/result-reconciler.test.d.ts +2 -0
- package/dist/execution/__tests__/result-reconciler.test.d.ts.map +1 -0
- package/dist/execution/__tests__/result-reconciler.test.js +112 -0
- package/dist/execution/__tests__/result-reconciler.test.js.map +1 -0
- package/dist/execution/__tests__/session-manager-phase2.test.d.ts +2 -0
- package/dist/execution/__tests__/session-manager-phase2.test.d.ts.map +1 -0
- package/dist/execution/__tests__/session-manager-phase2.test.js +381 -0
- package/dist/execution/__tests__/session-manager-phase2.test.js.map +1 -0
- package/dist/execution/__tests__/session-manager.test.d.ts +2 -0
- package/dist/execution/__tests__/session-manager.test.d.ts.map +1 -0
- package/dist/execution/__tests__/session-manager.test.js +653 -0
- package/dist/execution/__tests__/session-manager.test.js.map +1 -0
- package/dist/execution/__tests__/task-generation-group.test.d.ts +2 -0
- package/dist/execution/__tests__/task-generation-group.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-generation-group.test.js +157 -0
- package/dist/execution/__tests__/task-generation-group.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-cycle.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle-cycle.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-cycle.test.js +685 -0
- package/dist/execution/__tests__/task-lifecycle-cycle.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-dimension.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle-dimension.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-dimension.test.js +325 -0
- package/dist/execution/__tests__/task-lifecycle-dimension.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-ethics.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle-ethics.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-ethics.test.js +732 -0
- package/dist/execution/__tests__/task-lifecycle-ethics.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-execution.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle-execution.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-execution.test.js +441 -0
- package/dist/execution/__tests__/task-lifecycle-execution.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-generation.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle-generation.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-generation.test.js +457 -0
- package/dist/execution/__tests__/task-lifecycle-generation.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-healthcheck.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle-healthcheck.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-healthcheck.test.js +325 -0
- package/dist/execution/__tests__/task-lifecycle-healthcheck.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-verdict.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle-verdict.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-verdict.test.js +683 -0
- package/dist/execution/__tests__/task-lifecycle-verdict.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-verification.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle-verification.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle-verification.test.js +526 -0
- package/dist/execution/__tests__/task-lifecycle-verification.test.js.map +1 -0
- package/dist/execution/__tests__/task-lifecycle.test.d.ts +2 -0
- package/dist/execution/__tests__/task-lifecycle.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-lifecycle.test.js +503 -0
- package/dist/execution/__tests__/task-lifecycle.test.js.map +1 -0
- package/dist/execution/__tests__/task-prompt-builder.test.d.ts +2 -0
- package/dist/execution/__tests__/task-prompt-builder.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-prompt-builder.test.js +148 -0
- package/dist/execution/__tests__/task-prompt-builder.test.js.map +1 -0
- package/dist/execution/__tests__/task-verifier-guards.test.d.ts +2 -0
- package/dist/execution/__tests__/task-verifier-guards.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-verifier-guards.test.js +735 -0
- package/dist/execution/__tests__/task-verifier-guards.test.js.map +1 -0
- package/dist/execution/__tests__/task-verifier.test.d.ts +2 -0
- package/dist/execution/__tests__/task-verifier.test.d.ts.map +1 -0
- package/dist/execution/__tests__/task-verifier.test.js +113 -0
- package/dist/execution/__tests__/task-verifier.test.js.map +1 -0
- package/dist/execution/__tests__/toolset-lock.test.d.ts +2 -0
- package/dist/execution/__tests__/toolset-lock.test.d.ts.map +1 -0
- package/dist/execution/__tests__/toolset-lock.test.js +204 -0
- package/dist/execution/__tests__/toolset-lock.test.js.map +1 -0
- package/dist/execution/adapter-layer.d.ts +2 -0
- package/dist/execution/adapter-layer.d.ts.map +1 -1
- package/dist/execution/adapter-layer.js +1 -1
- package/dist/execution/adapter-layer.js.map +1 -1
- package/dist/execution/checkpoint-manager.d.ts +1 -1
- package/dist/execution/checkpoint-manager.d.ts.map +1 -1
- package/dist/execution/context/context-budget.d.ts +35 -0
- package/dist/execution/context/context-budget.d.ts.map +1 -0
- package/dist/execution/context/context-budget.js.map +1 -0
- package/dist/execution/context/context-builder.d.ts +44 -0
- package/dist/execution/context/context-builder.d.ts.map +1 -0
- package/dist/execution/context/context-builder.js +132 -0
- package/dist/execution/context/context-builder.js.map +1 -0
- package/dist/execution/context/dimension-selector.d.ts +16 -0
- package/dist/execution/context/dimension-selector.d.ts.map +1 -0
- package/dist/execution/context/dimension-selector.js +57 -0
- package/dist/execution/context/dimension-selector.js.map +1 -0
- package/dist/execution/context/issue-context-fetcher.d.ts.map +1 -0
- package/dist/execution/context/issue-context-fetcher.js +73 -0
- package/dist/execution/context/issue-context-fetcher.js.map +1 -0
- package/dist/execution/impact-analyzer.d.ts +1 -1
- package/dist/execution/impact-analyzer.d.ts.map +1 -1
- package/dist/execution/parallel-executor.d.ts +1 -1
- package/dist/execution/parallel-executor.d.ts.map +1 -1
- package/dist/execution/parallel-executor.js +1 -1
- package/dist/execution/parallel-executor.js.map +1 -1
- package/dist/execution/pipeline-executor.d.ts +1 -1
- package/dist/execution/pipeline-executor.d.ts.map +1 -1
- package/dist/execution/reflection-generator.d.ts +1 -1
- package/dist/execution/reflection-generator.d.ts.map +1 -1
- package/dist/execution/reflection-generator.js +1 -1
- package/dist/execution/reflection-generator.js.map +1 -1
- package/dist/execution/result-reconciler.d.ts +1 -1
- package/dist/execution/result-reconciler.d.ts.map +1 -1
- package/dist/execution/session-manager.d.ts +2 -2
- package/dist/execution/session-manager.d.ts.map +1 -1
- package/dist/execution/session-manager.js +1 -1
- package/dist/execution/session-manager.js.map +1 -1
- package/dist/execution/task/task-approval-check.d.ts +9 -0
- package/dist/execution/task/task-approval-check.d.ts.map +1 -0
- package/dist/execution/task/task-approval-check.js.map +1 -0
- package/dist/execution/task/task-approval.d.ts +22 -0
- package/dist/execution/task/task-approval.d.ts.map +1 -0
- package/dist/execution/task/task-approval.js +147 -0
- package/dist/execution/task/task-approval.js.map +1 -0
- package/dist/execution/task/task-execution-types.d.ts +18 -0
- package/dist/execution/task/task-execution-types.d.ts.map +1 -0
- package/dist/execution/task/task-execution-types.js +10 -0
- package/dist/execution/task/task-execution-types.js.map +1 -0
- package/dist/execution/task/task-executor.d.ts +31 -0
- package/dist/execution/task/task-executor.d.ts.map +1 -0
- package/dist/execution/task/task-executor.js +221 -0
- package/dist/execution/task/task-executor.js.map +1 -0
- package/dist/execution/task/task-generation.d.ts +154 -0
- package/dist/execution/task/task-generation.d.ts.map +1 -0
- package/dist/execution/task/task-generation.js +416 -0
- package/dist/execution/task/task-generation.js.map +1 -0
- package/dist/execution/task/task-health-check.d.ts.map +1 -0
- package/dist/execution/task/task-health-check.js.map +1 -0
- package/dist/execution/task/task-lifecycle.d.ts +126 -0
- package/dist/execution/task/task-lifecycle.d.ts.map +1 -0
- package/dist/execution/task/task-lifecycle.js +313 -0
- package/dist/execution/task/task-lifecycle.js.map +1 -0
- package/dist/execution/task/task-pipeline-cycle.d.ts +45 -0
- package/dist/execution/task/task-pipeline-cycle.d.ts.map +1 -0
- package/dist/execution/task/task-pipeline-cycle.js +132 -0
- package/dist/execution/task/task-pipeline-cycle.js.map +1 -0
- package/dist/execution/task/task-prompt-builder.d.ts +9 -0
- package/dist/execution/task/task-prompt-builder.d.ts.map +1 -0
- package/dist/execution/task/task-prompt-builder.js +197 -0
- package/dist/execution/task/task-prompt-builder.js.map +1 -0
- package/dist/execution/task/task-verifier-llm 2.d.ts +24 -0
- package/dist/execution/task/task-verifier-llm 2.d.ts.map +1 -0
- package/dist/execution/task/task-verifier-llm 2.js +160 -0
- package/dist/execution/task/task-verifier-llm 2.js.map +1 -0
- package/dist/execution/task/task-verifier-llm.d.ts +24 -0
- package/dist/execution/task/task-verifier-llm.d.ts.map +1 -0
- package/dist/execution/task/task-verifier-llm.js +160 -0
- package/dist/execution/task/task-verifier-llm.js.map +1 -0
- package/dist/execution/task/task-verifier-rules 2.d.ts +31 -0
- package/dist/execution/task/task-verifier-rules 2.d.ts.map +1 -0
- package/dist/execution/task/task-verifier-rules 2.js +207 -0
- package/dist/execution/task/task-verifier-rules 2.js.map +1 -0
- package/dist/execution/task/task-verifier-rules.d.ts +31 -0
- package/dist/execution/task/task-verifier-rules.d.ts.map +1 -0
- package/dist/execution/task/task-verifier-rules.js +207 -0
- package/dist/execution/task/task-verifier-rules.js.map +1 -0
- package/dist/execution/task/task-verifier-types 2.d.ts +78 -0
- package/dist/execution/task/task-verifier-types 2.d.ts.map +1 -0
- package/dist/execution/task/task-verifier-types 2.js +9 -0
- package/dist/execution/task/task-verifier-types 2.js.map +1 -0
- package/dist/execution/task/task-verifier-types.d.ts +78 -0
- package/dist/execution/task/task-verifier-types.d.ts.map +1 -0
- package/dist/execution/task/task-verifier-types.js +9 -0
- package/dist/execution/task/task-verifier-types.js.map +1 -0
- package/dist/execution/task/task-verifier.d.ts +48 -0
- package/dist/execution/task/task-verifier.d.ts.map +1 -0
- package/dist/execution/task/task-verifier.js +463 -0
- package/dist/execution/task/task-verifier.js.map +1 -0
- package/dist/execution/types/checkpoint.d.ts +133 -0
- package/dist/execution/types/checkpoint.d.ts.map +1 -0
- package/dist/execution/types/checkpoint.js +38 -0
- package/dist/execution/types/checkpoint.js.map +1 -0
- package/dist/execution/types/pipeline.d.ts +191 -0
- package/dist/execution/types/pipeline.d.ts.map +1 -0
- package/dist/execution/types/pipeline.js +62 -0
- package/dist/execution/types/pipeline.js.map +1 -0
- package/dist/execution/types/session.d.ts +95 -0
- package/dist/execution/types/session.d.ts.map +1 -0
- package/dist/execution/types/session.js +37 -0
- package/dist/execution/types/session.js.map +1 -0
- package/dist/execution/types/task-group.d.ts +246 -0
- package/dist/execution/types/task-group.d.ts.map +1 -0
- package/dist/execution/types/task-group.js +14 -0
- package/dist/execution/types/task-group.js.map +1 -0
- package/dist/execution/types/task.d.ts +267 -0
- package/dist/execution/types/task.d.ts.map +1 -0
- package/dist/execution/types/task.js +70 -0
- package/dist/execution/types/task.js.map +1 -0
- package/dist/goal/__tests__/goal-cli-refine.test.d.ts +8 -0
- package/dist/goal/__tests__/goal-cli-refine.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-cli-refine.test.js +237 -0
- package/dist/goal/__tests__/goal-cli-refine.test.js.map +1 -0
- package/dist/goal/__tests__/goal-dependency-graph.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-dependency-graph.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-dependency-graph.test.js +352 -0
- package/dist/goal/__tests__/goal-dependency-graph.test.js.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-character.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-negotiator-character.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-character.test.js +650 -0
- package/dist/goal/__tests__/goal-negotiator-character.test.js.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-core.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-negotiator-core.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-core.test.js +370 -0
- package/dist/goal/__tests__/goal-negotiator-core.test.js.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-decompose.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-negotiator-decompose.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-decompose.test.js +876 -0
- package/dist/goal/__tests__/goal-negotiator-decompose.test.js.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-negotiate.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-negotiator-negotiate.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-negotiate.test.js +411 -0
- package/dist/goal/__tests__/goal-negotiator-negotiate.test.js.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-suggest-filter.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-negotiator-suggest-filter.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-suggest-filter.test.js +258 -0
- package/dist/goal/__tests__/goal-negotiator-suggest-filter.test.js.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-suggest.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-negotiator-suggest.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-negotiator-suggest.test.js +280 -0
- package/dist/goal/__tests__/goal-negotiator-suggest.test.js.map +1 -0
- package/dist/goal/__tests__/goal-refiner.refine.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-refiner.refine.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-refiner.refine.test.js +291 -0
- package/dist/goal/__tests__/goal-refiner.refine.test.js.map +1 -0
- package/dist/goal/__tests__/goal-refiner.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-refiner.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-refiner.test.js +509 -0
- package/dist/goal/__tests__/goal-refiner.test.js.map +1 -0
- package/dist/goal/__tests__/goal-suggest-timeout.test.d.ts +10 -0
- package/dist/goal/__tests__/goal-suggest-timeout.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-suggest-timeout.test.js +63 -0
- package/dist/goal/__tests__/goal-suggest-timeout.test.js.map +1 -0
- package/dist/goal/__tests__/goal-tree-concreteness.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-tree-concreteness.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-tree-concreteness.test.js +391 -0
- package/dist/goal/__tests__/goal-tree-concreteness.test.js.map +1 -0
- package/dist/goal/__tests__/goal-tree-manager.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-tree-manager.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-tree-manager.test.js +828 -0
- package/dist/goal/__tests__/goal-tree-manager.test.js.map +1 -0
- package/dist/goal/__tests__/goal-tree-quality.test.d.ts +2 -0
- package/dist/goal/__tests__/goal-tree-quality.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goal-tree-quality.test.js +150 -0
- package/dist/goal/__tests__/goal-tree-quality.test.js.map +1 -0
- package/dist/goal/__tests__/goalNegotiator.test.d.ts +2 -0
- package/dist/goal/__tests__/goalNegotiator.test.d.ts.map +1 -0
- package/dist/goal/__tests__/goalNegotiator.test.js +418 -0
- package/dist/goal/__tests__/goalNegotiator.test.js.map +1 -0
- package/dist/goal/__tests__/negotiate-context.test.d.ts +2 -0
- package/dist/goal/__tests__/negotiate-context.test.d.ts.map +1 -0
- package/dist/goal/__tests__/negotiate-context.test.js +192 -0
- package/dist/goal/__tests__/negotiate-context.test.js.map +1 -0
- package/dist/goal/__tests__/refine.test.d.ts +2 -0
- package/dist/goal/__tests__/refine.test.d.ts.map +1 -0
- package/dist/goal/__tests__/refine.test.js +354 -0
- package/dist/goal/__tests__/refine.test.js.map +1 -0
- package/dist/goal/__tests__/refiner-prompts.test.d.ts +2 -0
- package/dist/goal/__tests__/refiner-prompts.test.d.ts.map +1 -0
- package/dist/goal/__tests__/refiner-prompts.test.js +92 -0
- package/dist/goal/__tests__/refiner-prompts.test.js.map +1 -0
- package/dist/goal/__tests__/state-aggregator.test.d.ts +2 -0
- package/dist/goal/__tests__/state-aggregator.test.d.ts.map +1 -0
- package/dist/goal/__tests__/state-aggregator.test.js +840 -0
- package/dist/goal/__tests__/state-aggregator.test.js.map +1 -0
- package/dist/goal/__tests__/subgoal-curriculum.test.d.ts +2 -0
- package/dist/goal/__tests__/subgoal-curriculum.test.d.ts.map +1 -0
- package/dist/goal/__tests__/subgoal-curriculum.test.js +219 -0
- package/dist/goal/__tests__/subgoal-curriculum.test.js.map +1 -0
- package/dist/goal/__tests__/tree-loop-orchestrator.test.d.ts +2 -0
- package/dist/goal/__tests__/tree-loop-orchestrator.test.d.ts.map +1 -0
- package/dist/goal/__tests__/tree-loop-orchestrator.test.js +1078 -0
- package/dist/goal/__tests__/tree-loop-orchestrator.test.js.map +1 -0
- package/dist/goal/goal-decomposer.d.ts +2 -2
- package/dist/goal/goal-decomposer.d.ts.map +1 -1
- package/dist/goal/goal-dependency-graph.d.ts +2 -2
- package/dist/goal/goal-dependency-graph.d.ts.map +1 -1
- package/dist/goal/goal-dependency-graph.js +1 -1
- package/dist/goal/goal-dependency-graph.js.map +1 -1
- package/dist/goal/goal-negotiator.d.ts +2 -2
- package/dist/goal/goal-negotiator.d.ts.map +1 -1
- package/dist/goal/goal-refiner.d.ts +2 -2
- package/dist/goal/goal-refiner.d.ts.map +1 -1
- package/dist/goal/goal-suggest.d.ts +9 -9
- package/dist/goal/goal-suggest.d.ts.map +1 -1
- package/dist/goal/goal-tree-manager.d.ts +2 -2
- package/dist/goal/goal-tree-manager.d.ts.map +1 -1
- package/dist/goal/goal-tree-pruner.d.ts +1 -1
- package/dist/goal/goal-tree-pruner.d.ts.map +1 -1
- package/dist/goal/goal-tree-quality.d.ts +1 -1
- package/dist/goal/goal-tree-quality.d.ts.map +1 -1
- package/dist/goal/negotiator-steps.d.ts +1 -1
- package/dist/goal/negotiator-steps.d.ts.map +1 -1
- package/dist/goal/refiner-prompts.d.ts +1 -1
- package/dist/goal/refiner-prompts.d.ts.map +1 -1
- package/dist/goal/refiner-prompts.js +1 -1
- package/dist/goal/refiner-prompts.js.map +1 -1
- package/dist/goal/state-aggregator.d.ts +1 -1
- package/dist/goal/state-aggregator.d.ts.map +1 -1
- package/dist/goal/state-aggregator.js +1 -1
- package/dist/goal/state-aggregator.js.map +1 -1
- package/dist/goal/tree-loop-orchestrator.d.ts +1 -1
- package/dist/goal/tree-loop-orchestrator.d.ts.map +1 -1
- package/dist/goal/types/dependency.d.ts +108 -0
- package/dist/goal/types/dependency.d.ts.map +1 -0
- package/dist/goal/types/dependency.js +21 -0
- package/dist/goal/types/dependency.js.map +1 -0
- package/dist/goal/types/goal-refiner.d.ts +108 -0
- package/dist/goal/types/goal-refiner.d.ts.map +1 -0
- package/dist/goal/types/goal-refiner.js +39 -0
- package/dist/goal/types/goal-refiner.js.map +1 -0
- package/dist/goal/types/goal-tree.d.ts +180 -0
- package/dist/goal/types/goal-tree.d.ts.map +1 -0
- package/dist/goal/types/goal-tree.js +73 -0
- package/dist/goal/types/goal-tree.js.map +1 -0
- package/dist/goal/types/goal.d.ts +1342 -0
- package/dist/goal/types/goal.d.ts.map +1 -0
- package/dist/goal/types/goal.js +141 -0
- package/dist/goal/types/goal.js.map +1 -0
- package/dist/goal/types/negotiation.d.ts +450 -0
- package/dist/goal/types/negotiation.d.ts.map +1 -0
- package/dist/goal/types/negotiation.js +84 -0
- package/dist/goal/types/negotiation.js.map +1 -0
- package/dist/goal/types/suggest.d.ts +92 -0
- package/dist/goal/types/suggest.d.ts.map +1 -0
- package/dist/goal/types/suggest.js +15 -0
- package/dist/goal/types/suggest.js.map +1 -0
- package/dist/index.d.ts +104 -83
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +82 -62
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/__tests__/chat-grounding.test.d.ts +2 -0
- package/dist/interface/chat/__tests__/chat-grounding.test.d.ts.map +1 -0
- package/dist/interface/chat/__tests__/chat-grounding.test.js +388 -0
- package/dist/interface/chat/__tests__/chat-grounding.test.js.map +1 -0
- package/dist/interface/chat/__tests__/chat-history.test.d.ts +2 -0
- package/dist/interface/chat/__tests__/chat-history.test.d.ts.map +1 -0
- package/dist/interface/chat/__tests__/chat-history.test.js +97 -0
- package/dist/interface/chat/__tests__/chat-history.test.js.map +1 -0
- package/dist/interface/chat/__tests__/chat-runner.test.d.ts +2 -0
- package/dist/interface/chat/__tests__/chat-runner.test.d.ts.map +1 -0
- package/dist/interface/chat/__tests__/chat-runner.test.js +270 -0
- package/dist/interface/chat/__tests__/chat-runner.test.js.map +1 -0
- package/dist/interface/chat/__tests__/chat-verifier.test.d.ts +2 -0
- package/dist/interface/chat/__tests__/chat-verifier.test.d.ts.map +1 -0
- package/dist/interface/chat/__tests__/chat-verifier.test.js +71 -0
- package/dist/interface/chat/__tests__/chat-verifier.test.js.map +1 -0
- package/dist/interface/chat/__tests__/escalation.test.d.ts +2 -0
- package/dist/interface/chat/__tests__/escalation.test.d.ts.map +1 -0
- package/dist/interface/chat/__tests__/escalation.test.js +149 -0
- package/dist/interface/chat/__tests__/escalation.test.js.map +1 -0
- package/dist/interface/chat/__tests__/self-knowledge-mutation-tools.test.d.ts +2 -0
- package/dist/interface/chat/__tests__/self-knowledge-mutation-tools.test.d.ts.map +1 -0
- package/dist/interface/chat/__tests__/self-knowledge-mutation-tools.test.js +371 -0
- package/dist/interface/chat/__tests__/self-knowledge-mutation-tools.test.js.map +1 -0
- package/dist/interface/chat/__tests__/self-knowledge-tools.test.d.ts +2 -0
- package/dist/interface/chat/__tests__/self-knowledge-tools.test.d.ts.map +1 -0
- package/dist/interface/chat/__tests__/self-knowledge-tools.test.js +223 -0
- package/dist/interface/chat/__tests__/self-knowledge-tools.test.js.map +1 -0
- package/dist/interface/chat/chat-history.d.ts +80 -0
- package/dist/interface/chat/chat-history.d.ts.map +1 -0
- package/dist/interface/chat/chat-history.js +70 -0
- package/dist/interface/chat/chat-history.js.map +1 -0
- package/dist/interface/chat/chat-runner.d.ts +82 -0
- package/dist/interface/chat/chat-runner.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner.js +282 -0
- package/dist/interface/chat/chat-runner.js.map +1 -0
- package/dist/interface/chat/chat-verifier.d.ts +14 -0
- package/dist/interface/chat/chat-verifier.d.ts.map +1 -0
- package/dist/interface/chat/chat-verifier.js +41 -0
- package/dist/interface/chat/chat-verifier.js.map +1 -0
- package/dist/interface/chat/escalation.d.ts +30 -0
- package/dist/interface/chat/escalation.d.ts.map +1 -0
- package/dist/interface/chat/escalation.js +53 -0
- package/dist/interface/chat/escalation.js.map +1 -0
- package/dist/interface/chat/grounding.d.ts +8 -0
- package/dist/interface/chat/grounding.d.ts.map +1 -0
- package/dist/interface/chat/grounding.js +104 -0
- package/dist/interface/chat/grounding.js.map +1 -0
- package/dist/interface/chat/mutation-tool-defs.d.ts +19 -0
- package/dist/interface/chat/mutation-tool-defs.d.ts.map +1 -0
- package/dist/interface/chat/mutation-tool-defs.js +154 -0
- package/dist/interface/chat/mutation-tool-defs.js.map +1 -0
- package/dist/interface/chat/self-knowledge-mutation-tools.d.ts +5 -0
- package/dist/interface/chat/self-knowledge-mutation-tools.d.ts.map +1 -0
- package/dist/interface/chat/self-knowledge-mutation-tools.js +249 -0
- package/dist/interface/chat/self-knowledge-mutation-tools.js.map +1 -0
- package/dist/interface/chat/self-knowledge-tools.d.ts +22 -0
- package/dist/interface/chat/self-knowledge-tools.d.ts.map +1 -0
- package/dist/interface/chat/self-knowledge-tools.js +261 -0
- package/dist/interface/chat/self-knowledge-tools.js.map +1 -0
- package/dist/interface/cli/__tests__/cleanup-orphan-datasource.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/cleanup-orphan-datasource.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cleanup-orphan-datasource.test.js +108 -0
- package/dist/interface/cli/__tests__/cleanup-orphan-datasource.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-capability.test.d.ts +8 -0
- package/dist/interface/cli/__tests__/cli-capability.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-capability.test.js +208 -0
- package/dist/interface/cli/__tests__/cli-capability.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-daemon-status.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/cli-daemon-status.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-daemon-status.test.js +205 -0
- package/dist/interface/cli/__tests__/cli-daemon-status.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-doctor.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/cli-doctor.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-doctor.test.js +291 -0
- package/dist/interface/cli/__tests__/cli-doctor.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-improve.test.d.ts +11 -0
- package/dist/interface/cli/__tests__/cli-improve.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-improve.test.js +592 -0
- package/dist/interface/cli/__tests__/cli-improve.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-install.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/cli-install.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-install.test.js +307 -0
- package/dist/interface/cli/__tests__/cli-install.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-knowledge.test.d.ts +9 -0
- package/dist/interface/cli/__tests__/cli-knowledge.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-knowledge.test.js +295 -0
- package/dist/interface/cli/__tests__/cli-knowledge.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-logs.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/cli-logs.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-logs.test.js +204 -0
- package/dist/interface/cli/__tests__/cli-logs.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-notify.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/cli-notify.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-notify.test.js +208 -0
- package/dist/interface/cli/__tests__/cli-notify.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-plugin.test.d.ts +8 -0
- package/dist/interface/cli/__tests__/cli-plugin.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-plugin.test.js +379 -0
- package/dist/interface/cli/__tests__/cli-plugin.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-runner-datasource-auto.test.d.ts +9 -0
- package/dist/interface/cli/__tests__/cli-runner-datasource-auto.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-runner-datasource-auto.test.js +398 -0
- package/dist/interface/cli/__tests__/cli-runner-datasource-auto.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-runner-integration.test.d.ts +13 -0
- package/dist/interface/cli/__tests__/cli-runner-integration.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-runner-integration.test.js +298 -0
- package/dist/interface/cli/__tests__/cli-runner-integration.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-runner.test.d.ts +29 -0
- package/dist/interface/cli/__tests__/cli-runner.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-runner.test.js +928 -0
- package/dist/interface/cli/__tests__/cli-runner.test.js.map +1 -0
- package/dist/interface/cli/__tests__/cli-setup.test.d.ts +12 -0
- package/dist/interface/cli/__tests__/cli-setup.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/cli-setup.test.js +200 -0
- package/dist/interface/cli/__tests__/cli-setup.test.js.map +1 -0
- package/dist/interface/cli/__tests__/datasource-dedup.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/datasource-dedup.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/datasource-dedup.test.js +133 -0
- package/dist/interface/cli/__tests__/datasource-dedup.test.js.map +1 -0
- package/dist/interface/cli/__tests__/goal-dispatch-infer.test.d.ts +11 -0
- package/dist/interface/cli/__tests__/goal-dispatch-infer.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/goal-dispatch-infer.test.js +140 -0
- package/dist/interface/cli/__tests__/goal-dispatch-infer.test.js.map +1 -0
- package/dist/interface/cli/__tests__/goal-infer.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/goal-infer.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/goal-infer.test.js +94 -0
- package/dist/interface/cli/__tests__/goal-infer.test.js.map +1 -0
- package/dist/interface/cli/__tests__/goal-utils.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/goal-utils.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/goal-utils.test.js +123 -0
- package/dist/interface/cli/__tests__/goal-utils.test.js.map +1 -0
- package/dist/interface/cli/__tests__/suggest-normalizer.test.d.ts +2 -0
- package/dist/interface/cli/__tests__/suggest-normalizer.test.d.ts.map +1 -0
- package/dist/interface/cli/__tests__/suggest-normalizer.test.js +43 -0
- package/dist/interface/cli/__tests__/suggest-normalizer.test.js.map +1 -0
- package/dist/interface/cli/cli-command-registry.d.ts +16 -0
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -0
- package/dist/interface/cli/cli-command-registry.js +408 -0
- package/dist/interface/cli/cli-command-registry.js.map +1 -0
- package/dist/interface/cli/cli-logger.d.ts +3 -0
- package/dist/interface/cli/cli-logger.d.ts.map +1 -0
- package/dist/interface/cli/cli-logger.js +12 -0
- package/dist/interface/cli/cli-logger.js.map +1 -0
- package/dist/interface/cli/cli-runner.d.ts +32 -0
- package/dist/interface/cli/cli-runner.d.ts.map +1 -0
- package/dist/interface/cli/cli-runner.js +122 -0
- package/dist/interface/cli/cli-runner.js.map +1 -0
- package/dist/interface/cli/commands/chat.d.ts +3 -0
- package/dist/interface/cli/commands/chat.d.ts.map +1 -0
- package/dist/interface/cli/commands/chat.js +148 -0
- package/dist/interface/cli/commands/chat.js.map +1 -0
- package/dist/interface/cli/commands/config.d.ts +11 -0
- package/dist/interface/cli/commands/config.d.ts.map +1 -0
- package/dist/interface/cli/commands/config.js +436 -0
- package/dist/interface/cli/commands/config.js.map +1 -0
- package/dist/interface/cli/commands/daemon.d.ts +7 -0
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -0
- package/dist/interface/cli/commands/daemon.js +297 -0
- package/dist/interface/cli/commands/daemon.js.map +1 -0
- package/dist/interface/cli/commands/doctor.d.ts +19 -0
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -0
- package/dist/interface/cli/commands/doctor.js +203 -0
- package/dist/interface/cli/commands/doctor.js.map +1 -0
- package/dist/interface/cli/commands/goal-dispatch.d.ts +13 -0
- package/dist/interface/cli/commands/goal-dispatch.d.ts.map +1 -0
- package/dist/interface/cli/commands/goal-dispatch.js +208 -0
- package/dist/interface/cli/commands/goal-dispatch.js.map +1 -0
- package/dist/interface/cli/commands/goal-infer.d.ts +9 -0
- package/dist/interface/cli/commands/goal-infer.d.ts.map +1 -0
- package/dist/interface/cli/commands/goal-infer.js +71 -0
- package/dist/interface/cli/commands/goal-infer.js.map +1 -0
- package/dist/interface/cli/commands/goal-raw.d.ts +9 -0
- package/dist/interface/cli/commands/goal-raw.d.ts.map +1 -0
- package/dist/interface/cli/commands/goal-raw.js +106 -0
- package/dist/interface/cli/commands/goal-raw.js.map +1 -0
- package/dist/interface/cli/commands/goal-read.d.ts +9 -0
- package/dist/interface/cli/commands/goal-read.d.ts.map +1 -0
- package/dist/interface/cli/commands/goal-read.js +248 -0
- package/dist/interface/cli/commands/goal-read.js.map +1 -0
- package/dist/interface/cli/commands/goal-utils.d.ts +70 -0
- package/dist/interface/cli/commands/goal-utils.d.ts.map +1 -0
- package/dist/interface/cli/commands/goal-utils.js +311 -0
- package/dist/interface/cli/commands/goal-utils.js.map +1 -0
- package/dist/interface/cli/commands/goal-write.d.ts +15 -0
- package/dist/interface/cli/commands/goal-write.d.ts.map +1 -0
- package/dist/interface/cli/commands/goal-write.js +351 -0
- package/dist/interface/cli/commands/goal-write.js.map +1 -0
- package/dist/interface/cli/commands/goal.d.ts +3 -0
- package/dist/interface/cli/commands/goal.d.ts.map +1 -0
- package/dist/interface/cli/commands/goal.js +6 -0
- package/dist/interface/cli/commands/goal.js.map +1 -0
- package/dist/interface/cli/commands/install.d.ts +16 -0
- package/dist/interface/cli/commands/install.d.ts.map +1 -0
- package/dist/interface/cli/commands/install.js +153 -0
- package/dist/interface/cli/commands/install.js.map +1 -0
- package/dist/interface/cli/commands/knowledge.d.ts +5 -0
- package/dist/interface/cli/commands/knowledge.d.ts.map +1 -0
- package/dist/interface/cli/commands/knowledge.js +127 -0
- package/dist/interface/cli/commands/knowledge.js.map +1 -0
- package/dist/interface/cli/commands/logs.d.ts +2 -0
- package/dist/interface/cli/commands/logs.d.ts.map +1 -0
- package/dist/interface/cli/commands/logs.js +201 -0
- package/dist/interface/cli/commands/logs.js.map +1 -0
- package/dist/interface/cli/commands/notify.d.ts +2 -0
- package/dist/interface/cli/commands/notify.d.ts.map +1 -0
- package/dist/interface/cli/commands/notify.js +277 -0
- package/dist/interface/cli/commands/notify.js.map +1 -0
- package/dist/interface/cli/commands/plugin.d.ts +9 -0
- package/dist/interface/cli/commands/plugin.d.ts.map +1 -0
- package/dist/interface/cli/commands/plugin.js +315 -0
- package/dist/interface/cli/commands/plugin.js.map +1 -0
- package/dist/interface/cli/commands/report.d.ts +3 -0
- package/dist/interface/cli/commands/report.d.ts.map +1 -0
- package/dist/interface/cli/commands/report.js +29 -0
- package/dist/interface/cli/commands/report.js.map +1 -0
- package/dist/interface/cli/commands/run.d.ts +7 -0
- package/dist/interface/cli/commands/run.d.ts.map +1 -0
- package/dist/interface/cli/commands/run.js +106 -0
- package/dist/interface/cli/commands/run.js.map +1 -0
- package/dist/interface/cli/commands/setup.d.ts +2 -0
- package/dist/interface/cli/commands/setup.d.ts.map +1 -0
- package/dist/interface/cli/commands/setup.js +339 -0
- package/dist/interface/cli/commands/setup.js.map +1 -0
- package/dist/interface/cli/commands/suggest-normalizer.d.ts +21 -0
- package/dist/interface/cli/commands/suggest-normalizer.d.ts.map +1 -0
- package/dist/interface/cli/commands/suggest-normalizer.js +359 -0
- package/dist/interface/cli/commands/suggest-normalizer.js.map +1 -0
- package/dist/interface/cli/commands/suggest.d.ts +5 -0
- package/dist/interface/cli/commands/suggest.d.ts.map +1 -0
- package/dist/interface/cli/commands/suggest.js +238 -0
- package/dist/interface/cli/commands/suggest.js.map +1 -0
- package/dist/interface/cli/commands/task-read.d.ts +4 -0
- package/dist/interface/cli/commands/task-read.d.ts.map +1 -0
- package/dist/interface/cli/commands/task-read.js +195 -0
- package/dist/interface/cli/commands/task-read.js.map +1 -0
- package/dist/interface/cli/commands/telegram.d.ts +2 -0
- package/dist/interface/cli/commands/telegram.d.ts.map +1 -0
- package/dist/interface/cli/commands/telegram.js +155 -0
- package/dist/interface/cli/commands/telegram.js.map +1 -0
- package/dist/interface/cli/ensure-api-key.d.ts +17 -0
- package/dist/interface/cli/ensure-api-key.d.ts.map +1 -0
- package/dist/interface/cli/ensure-api-key.js +52 -0
- package/dist/interface/cli/ensure-api-key.js.map +1 -0
- package/dist/interface/cli/setup.d.ts +21 -0
- package/dist/interface/cli/setup.d.ts.map +1 -0
- package/dist/interface/cli/setup.js +199 -0
- package/dist/interface/cli/setup.js.map +1 -0
- package/dist/interface/cli/utils/loop-runner.d.ts +8 -0
- package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -0
- package/dist/interface/cli/utils/loop-runner.js +74 -0
- package/dist/interface/cli/utils/loop-runner.js.map +1 -0
- package/dist/interface/cli/utils.d.ts +10 -0
- package/dist/interface/cli/utils.d.ts.map +1 -0
- package/dist/interface/cli/utils.js +147 -0
- package/dist/interface/cli/utils.js.map +1 -0
- package/dist/interface/mcp-server/__tests__/mcp-server.test.d.ts +2 -0
- package/dist/interface/mcp-server/__tests__/mcp-server.test.d.ts.map +1 -0
- package/dist/interface/mcp-server/__tests__/mcp-server.test.js +180 -0
- package/dist/interface/mcp-server/__tests__/mcp-server.test.js.map +1 -0
- package/dist/interface/mcp-server/index.d.ts +4 -0
- package/dist/interface/mcp-server/index.d.ts.map +1 -0
- package/dist/interface/mcp-server/index.js +66 -0
- package/dist/interface/mcp-server/index.js.map +1 -0
- package/dist/interface/mcp-server/tools.d.ts +35 -0
- package/dist/interface/mcp-server/tools.d.ts.map +1 -0
- package/dist/interface/mcp-server/tools.js +160 -0
- package/dist/interface/mcp-server/tools.js.map +1 -0
- package/dist/interface/tui/__tests__/actions.test.d.ts +2 -0
- package/dist/interface/tui/__tests__/actions.test.d.ts.map +1 -0
- package/dist/interface/tui/__tests__/actions.test.js +300 -0
- package/dist/interface/tui/__tests__/actions.test.js.map +1 -0
- package/dist/interface/tui/__tests__/fuzzy.test.d.ts +2 -0
- package/dist/interface/tui/__tests__/fuzzy.test.d.ts.map +1 -0
- package/dist/interface/tui/__tests__/fuzzy.test.js +95 -0
- package/dist/interface/tui/__tests__/fuzzy.test.js.map +1 -0
- package/dist/interface/tui/__tests__/intent-recognizer.test.d.ts +2 -0
- package/dist/interface/tui/__tests__/intent-recognizer.test.d.ts.map +1 -0
- package/dist/interface/tui/__tests__/intent-recognizer.test.js +174 -0
- package/dist/interface/tui/__tests__/intent-recognizer.test.js.map +1 -0
- package/dist/interface/tui/__tests__/use-loop.test.d.ts +2 -0
- package/dist/interface/tui/__tests__/use-loop.test.d.ts.map +1 -0
- package/dist/interface/tui/__tests__/use-loop.test.js +286 -0
- package/dist/interface/tui/__tests__/use-loop.test.js.map +1 -0
- package/dist/interface/tui/actions.d.ts +39 -0
- package/dist/interface/tui/actions.d.ts.map +1 -0
- package/dist/interface/tui/actions.js +231 -0
- package/dist/interface/tui/actions.js.map +1 -0
- package/dist/interface/tui/app.d.ts +24 -0
- package/dist/interface/tui/app.d.ts.map +1 -0
- package/dist/interface/tui/app.js +164 -0
- package/dist/interface/tui/app.js.map +1 -0
- package/dist/interface/tui/approval-overlay.d.ts +8 -0
- package/dist/interface/tui/approval-overlay.d.ts.map +1 -0
- package/dist/interface/tui/approval-overlay.js +21 -0
- package/dist/interface/tui/approval-overlay.js.map +1 -0
- package/dist/interface/tui/chat.d.ts +15 -0
- package/dist/interface/tui/chat.d.ts.map +1 -0
- package/dist/interface/tui/chat.js +179 -0
- package/dist/interface/tui/chat.js.map +1 -0
- package/dist/interface/tui/dashboard.d.ts +9 -0
- package/dist/interface/tui/dashboard.d.ts.map +1 -0
- package/dist/interface/tui/dashboard.js +48 -0
- package/dist/interface/tui/dashboard.js.map +1 -0
- package/dist/interface/tui/entry.d.ts +3 -0
- package/dist/interface/tui/entry.d.ts.map +1 -0
- package/dist/interface/tui/entry.js +242 -0
- package/dist/interface/tui/entry.js.map +1 -0
- package/dist/interface/tui/fuzzy.d.ts +16 -0
- package/dist/interface/tui/fuzzy.d.ts.map +1 -0
- package/dist/interface/tui/fuzzy.js +66 -0
- package/dist/interface/tui/fuzzy.js.map +1 -0
- package/dist/interface/tui/help-overlay.d.ts +6 -0
- package/dist/interface/tui/help-overlay.d.ts.map +1 -0
- package/dist/interface/tui/help-overlay.js +13 -0
- package/dist/interface/tui/help-overlay.js.map +1 -0
- package/dist/interface/tui/intent-recognizer.d.ts +19 -0
- package/dist/interface/tui/intent-recognizer.d.ts.map +1 -0
- package/dist/interface/tui/intent-recognizer.js +131 -0
- package/dist/interface/tui/intent-recognizer.js.map +1 -0
- package/dist/interface/tui/markdown-renderer.d.ts +32 -0
- package/dist/interface/tui/markdown-renderer.d.ts.map +1 -0
- package/dist/interface/tui/markdown-renderer.js +212 -0
- package/dist/interface/tui/markdown-renderer.js.map +1 -0
- package/dist/interface/tui/report-view.d.ts +6 -0
- package/dist/interface/tui/report-view.d.ts.map +1 -0
- package/dist/interface/tui/report-view.js +55 -0
- package/dist/interface/tui/report-view.js.map +1 -0
- package/dist/interface/tui/seedy-art.d.ts +46 -0
- package/dist/interface/tui/seedy-art.d.ts.map +1 -0
- package/dist/interface/tui/seedy-art.js +141 -0
- package/dist/interface/tui/seedy-art.js.map +1 -0
- package/dist/interface/tui/theme.d.ts +47 -0
- package/dist/interface/tui/theme.d.ts.map +1 -0
- package/dist/interface/tui/theme.js +116 -0
- package/dist/interface/tui/theme.js.map +1 -0
- package/dist/interface/tui/use-loop.d.ts +54 -0
- package/dist/interface/tui/use-loop.d.ts.map +1 -0
- package/dist/interface/tui/use-loop.js +185 -0
- package/dist/interface/tui/use-loop.js.map +1 -0
- package/dist/knowledge/__tests__/decision-record.test.d.ts +2 -0
- package/dist/knowledge/__tests__/decision-record.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/decision-record.test.js +141 -0
- package/dist/knowledge/__tests__/decision-record.test.js.map +1 -0
- package/dist/knowledge/__tests__/drive-score-adapter.test.d.ts +2 -0
- package/dist/knowledge/__tests__/drive-score-adapter.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/drive-score-adapter.test.js +110 -0
- package/dist/knowledge/__tests__/drive-score-adapter.test.js.map +1 -0
- package/dist/knowledge/__tests__/embedding-client.test.d.ts +2 -0
- package/dist/knowledge/__tests__/embedding-client.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/embedding-client.test.js +77 -0
- package/dist/knowledge/__tests__/embedding-client.test.js.map +1 -0
- package/dist/knowledge/__tests__/hierarchical-memory-integration.test.d.ts +2 -0
- package/dist/knowledge/__tests__/hierarchical-memory-integration.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/hierarchical-memory-integration.test.js +352 -0
- package/dist/knowledge/__tests__/hierarchical-memory-integration.test.js.map +1 -0
- package/dist/knowledge/__tests__/knowledge-graph.test.d.ts +2 -0
- package/dist/knowledge/__tests__/knowledge-graph.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/knowledge-graph.test.js +330 -0
- package/dist/knowledge/__tests__/knowledge-graph.test.js.map +1 -0
- package/dist/knowledge/__tests__/knowledge-manager-phase2.test.d.ts +2 -0
- package/dist/knowledge/__tests__/knowledge-manager-phase2.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/knowledge-manager-phase2.test.js +344 -0
- package/dist/knowledge/__tests__/knowledge-manager-phase2.test.js.map +1 -0
- package/dist/knowledge/__tests__/knowledge-manager.test.d.ts +2 -0
- package/dist/knowledge/__tests__/knowledge-manager.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/knowledge-manager.test.js +564 -0
- package/dist/knowledge/__tests__/knowledge-manager.test.js.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-apply.test.d.ts +2 -0
- package/dist/knowledge/__tests__/knowledge-transfer-apply.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-apply.test.js +291 -0
- package/dist/knowledge/__tests__/knowledge-transfer-apply.test.js.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-auto-apply.test.d.ts +2 -0
- package/dist/knowledge/__tests__/knowledge-transfer-auto-apply.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-auto-apply.test.js +293 -0
- package/dist/knowledge/__tests__/knowledge-transfer-auto-apply.test.js.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-detect.test.d.ts +2 -0
- package/dist/knowledge/__tests__/knowledge-transfer-detect.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-detect.test.js +315 -0
- package/dist/knowledge/__tests__/knowledge-transfer-detect.test.js.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-evaluate.test.d.ts +2 -0
- package/dist/knowledge/__tests__/knowledge-transfer-evaluate.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-evaluate.test.js +593 -0
- package/dist/knowledge/__tests__/knowledge-transfer-evaluate.test.js.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-incremental.test.d.ts +2 -0
- package/dist/knowledge/__tests__/knowledge-transfer-incremental.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/knowledge-transfer-incremental.test.js +402 -0
- package/dist/knowledge/__tests__/knowledge-transfer-incremental.test.js.map +1 -0
- package/dist/knowledge/__tests__/learning-cross-goal.test.d.ts +2 -0
- package/dist/knowledge/__tests__/learning-cross-goal.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/learning-cross-goal.test.js +377 -0
- package/dist/knowledge/__tests__/learning-cross-goal.test.js.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-extraction.test.d.ts +2 -0
- package/dist/knowledge/__tests__/learning-pipeline-extraction.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-extraction.test.js +622 -0
- package/dist/knowledge/__tests__/learning-pipeline-extraction.test.js.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-feedback.test.d.ts +2 -0
- package/dist/knowledge/__tests__/learning-pipeline-feedback.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-feedback.test.js +425 -0
- package/dist/knowledge/__tests__/learning-pipeline-feedback.test.js.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-persistence.test.d.ts +2 -0
- package/dist/knowledge/__tests__/learning-pipeline-persistence.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-persistence.test.js +928 -0
- package/dist/knowledge/__tests__/learning-pipeline-persistence.test.js.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-phase2.test.d.ts +2 -0
- package/dist/knowledge/__tests__/learning-pipeline-phase2.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-phase2.test.js +430 -0
- package/dist/knowledge/__tests__/learning-pipeline-phase2.test.js.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-sharing.test.d.ts +2 -0
- package/dist/knowledge/__tests__/learning-pipeline-sharing.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/learning-pipeline-sharing.test.js +411 -0
- package/dist/knowledge/__tests__/learning-pipeline-sharing.test.js.map +1 -0
- package/dist/knowledge/__tests__/m16-integration.test.d.ts +2 -0
- package/dist/knowledge/__tests__/m16-integration.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/m16-integration.test.js +332 -0
- package/dist/knowledge/__tests__/m16-integration.test.js.map +1 -0
- package/dist/knowledge/__tests__/memory-lifecycle-phase2.test.d.ts +2 -0
- package/dist/knowledge/__tests__/memory-lifecycle-phase2.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/memory-lifecycle-phase2.test.js +562 -0
- package/dist/knowledge/__tests__/memory-lifecycle-phase2.test.js.map +1 -0
- package/dist/knowledge/__tests__/memory-lifecycle.test.d.ts +2 -0
- package/dist/knowledge/__tests__/memory-lifecycle.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/memory-lifecycle.test.js +432 -0
- package/dist/knowledge/__tests__/memory-lifecycle.test.js.map +1 -0
- package/dist/knowledge/__tests__/memory-selection.test.d.ts +2 -0
- package/dist/knowledge/__tests__/memory-selection.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/memory-selection.test.js +423 -0
- package/dist/knowledge/__tests__/memory-selection.test.js.map +1 -0
- package/dist/knowledge/__tests__/memory-tier.test.d.ts +2 -0
- package/dist/knowledge/__tests__/memory-tier.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/memory-tier.test.js +413 -0
- package/dist/knowledge/__tests__/memory-tier.test.js.map +1 -0
- package/dist/knowledge/__tests__/transfer-trust.test.d.ts +2 -0
- package/dist/knowledge/__tests__/transfer-trust.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/transfer-trust.test.js +137 -0
- package/dist/knowledge/__tests__/transfer-trust.test.js.map +1 -0
- package/dist/knowledge/__tests__/vector-index.test.d.ts +2 -0
- package/dist/knowledge/__tests__/vector-index.test.d.ts.map +1 -0
- package/dist/knowledge/__tests__/vector-index.test.js +152 -0
- package/dist/knowledge/__tests__/vector-index.test.js.map +1 -0
- package/dist/knowledge/knowledge-decisions.d.ts +2 -2
- package/dist/knowledge/knowledge-decisions.d.ts.map +1 -1
- package/dist/knowledge/knowledge-decisions.js +1 -1
- package/dist/knowledge/knowledge-decisions.js.map +1 -1
- package/dist/knowledge/knowledge-manager-query 2.d.ts +87 -0
- package/dist/knowledge/knowledge-manager-query 2.d.ts.map +1 -0
- package/dist/knowledge/knowledge-manager-query 2.js +287 -0
- package/dist/knowledge/knowledge-manager-query 2.js.map +1 -0
- package/dist/knowledge/knowledge-manager-query.d.ts +87 -0
- package/dist/knowledge/knowledge-manager-query.d.ts.map +1 -0
- package/dist/knowledge/knowledge-manager-query.js +287 -0
- package/dist/knowledge/knowledge-manager-query.js.map +1 -0
- package/dist/knowledge/knowledge-manager.d.ts +3 -20
- package/dist/knowledge/knowledge-manager.d.ts.map +1 -1
- package/dist/knowledge/knowledge-manager.js +7 -269
- package/dist/knowledge/knowledge-manager.js.map +1 -1
- package/dist/knowledge/knowledge-revalidation.d.ts +2 -2
- package/dist/knowledge/knowledge-revalidation.d.ts.map +1 -1
- package/dist/knowledge/knowledge-search.d.ts +1 -1
- package/dist/knowledge/knowledge-search.d.ts.map +1 -1
- package/dist/knowledge/learning/learning-cross-goal.d.ts +19 -0
- package/dist/knowledge/learning/learning-cross-goal.d.ts.map +1 -0
- package/dist/knowledge/learning/learning-cross-goal.js +173 -0
- package/dist/knowledge/learning/learning-cross-goal.js.map +1 -0
- package/dist/knowledge/learning/learning-exports.d.ts +4 -0
- package/dist/knowledge/learning/learning-exports.d.ts.map +1 -0
- package/dist/knowledge/learning/learning-exports.js.map +1 -0
- package/dist/knowledge/learning/learning-feedback.d.ts +26 -0
- package/dist/knowledge/learning/learning-feedback.d.ts.map +1 -0
- package/dist/knowledge/learning/learning-feedback.js +183 -0
- package/dist/knowledge/learning/learning-feedback.js.map +1 -0
- package/dist/knowledge/learning/learning-pipeline-prompts.d.ts +134 -0
- package/dist/knowledge/learning/learning-pipeline-prompts.d.ts.map +1 -0
- package/dist/knowledge/learning/learning-pipeline-prompts.js +103 -0
- package/dist/knowledge/learning/learning-pipeline-prompts.js.map +1 -0
- package/dist/knowledge/learning/learning-pipeline.d.ts +105 -0
- package/dist/knowledge/learning/learning-pipeline.d.ts.map +1 -0
- package/dist/knowledge/learning/learning-pipeline.js +465 -0
- package/dist/knowledge/learning/learning-pipeline.js.map +1 -0
- package/dist/knowledge/memory/memory-compression.d.ts +44 -0
- package/dist/knowledge/memory/memory-compression.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-compression.js +291 -0
- package/dist/knowledge/memory/memory-compression.js.map +1 -0
- package/dist/knowledge/memory/memory-distill.d.ts +31 -0
- package/dist/knowledge/memory/memory-distill.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-distill.js.map +1 -0
- package/dist/knowledge/memory/memory-exports.d.ts +7 -0
- package/dist/knowledge/memory/memory-exports.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-exports.js.map +1 -0
- package/dist/knowledge/memory/memory-index.d.ts +11 -0
- package/dist/knowledge/memory/memory-index.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-index.js +134 -0
- package/dist/knowledge/memory/memory-index.js.map +1 -0
- package/dist/knowledge/memory/memory-lifecycle.d.ts +169 -0
- package/dist/knowledge/memory/memory-lifecycle.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-lifecycle.js +402 -0
- package/dist/knowledge/memory/memory-lifecycle.js.map +1 -0
- package/dist/knowledge/memory/memory-persistence.d.ts +30 -0
- package/dist/knowledge/memory/memory-persistence.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-persistence.js.map +1 -0
- package/dist/knowledge/memory/memory-query.d.ts +4 -0
- package/dist/knowledge/memory/memory-query.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-query.js +64 -0
- package/dist/knowledge/memory/memory-query.js.map +1 -0
- package/dist/knowledge/memory/memory-selection.d.ts +73 -0
- package/dist/knowledge/memory/memory-selection.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-selection.js +328 -0
- package/dist/knowledge/memory/memory-selection.js.map +1 -0
- package/dist/knowledge/memory/memory-stats.d.ts +7 -0
- package/dist/knowledge/memory/memory-stats.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-stats.js +162 -0
- package/dist/knowledge/memory/memory-stats.js.map +1 -0
- package/dist/knowledge/memory/memory-tier.d.ts +65 -0
- package/dist/knowledge/memory/memory-tier.d.ts.map +1 -0
- package/dist/knowledge/memory/memory-tier.js.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-apply.d.ts +48 -0
- package/dist/knowledge/transfer/knowledge-transfer-apply.d.ts.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-apply.js +221 -0
- package/dist/knowledge/transfer/knowledge-transfer-apply.js.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-detect.d.ts +28 -0
- package/dist/knowledge/transfer/knowledge-transfer-detect.d.ts.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-detect.js +128 -0
- package/dist/knowledge/transfer/knowledge-transfer-detect.js.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-evaluate.d.ts +22 -0
- package/dist/knowledge/transfer/knowledge-transfer-evaluate.d.ts.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-evaluate.js +109 -0
- package/dist/knowledge/transfer/knowledge-transfer-evaluate.js.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-meta.d.ts +38 -0
- package/dist/knowledge/transfer/knowledge-transfer-meta.d.ts.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-meta.js +180 -0
- package/dist/knowledge/transfer/knowledge-transfer-meta.js.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-prompts.d.ts +46 -0
- package/dist/knowledge/transfer/knowledge-transfer-prompts.d.ts.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-prompts.js.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-types.d.ts +20 -0
- package/dist/knowledge/transfer/knowledge-transfer-types.d.ts.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer-types.js.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer.d.ts +83 -0
- package/dist/knowledge/transfer/knowledge-transfer.d.ts.map +1 -0
- package/dist/knowledge/transfer/knowledge-transfer.js.map +1 -0
- package/dist/knowledge/transfer/transfer-trust.d.ts +40 -0
- package/dist/knowledge/transfer/transfer-trust.d.ts.map +1 -0
- package/dist/knowledge/transfer/transfer-trust.js +137 -0
- package/dist/knowledge/transfer/transfer-trust.js.map +1 -0
- package/dist/knowledge/types/embedding.d.ts +59 -0
- package/dist/knowledge/types/embedding.d.ts.map +1 -0
- package/dist/knowledge/types/embedding.js +22 -0
- package/dist/knowledge/types/embedding.js.map +1 -0
- package/dist/knowledge/types/knowledge.d.ts +402 -0
- package/dist/knowledge/types/knowledge.d.ts.map +1 -0
- package/dist/knowledge/types/knowledge.js +116 -0
- package/dist/knowledge/types/knowledge.js.map +1 -0
- package/dist/knowledge/types/learning.d.ts +292 -0
- package/dist/knowledge/types/learning.d.ts.map +1 -0
- package/dist/knowledge/types/learning.js +117 -0
- package/dist/knowledge/types/learning.js.map +1 -0
- package/dist/knowledge/types/memory-lifecycle.d.ts +615 -0
- package/dist/knowledge/types/memory-lifecycle.d.ts.map +1 -0
- package/dist/knowledge/types/memory-lifecycle.js +159 -0
- package/dist/knowledge/types/memory-lifecycle.js.map +1 -0
- package/dist/llm/base-llm-client.d.ts +13 -0
- package/dist/llm/base-llm-client.d.ts.map +1 -1
- package/dist/llm/base-llm-client.js +35 -0
- package/dist/llm/base-llm-client.js.map +1 -1
- package/dist/llm/llm-client.d.ts +22 -2
- package/dist/llm/llm-client.d.ts.map +1 -1
- package/dist/llm/llm-client.js +49 -11
- package/dist/llm/llm-client.js.map +1 -1
- package/dist/llm/ollama-client.d.ts +1 -0
- package/dist/llm/ollama-client.d.ts.map +1 -1
- package/dist/llm/ollama-client.js +15 -5
- package/dist/llm/ollama-client.js.map +1 -1
- package/dist/llm/openai-client.d.ts +1 -0
- package/dist/llm/openai-client.d.ts.map +1 -1
- package/dist/llm/openai-client.js +15 -5
- package/dist/llm/openai-client.js.map +1 -1
- package/dist/llm/provider-factory.js +6 -6
- package/dist/llm/provider-factory.js.map +1 -1
- package/dist/loop/__tests__/core-loop-auto-decompose.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-auto-decompose.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-auto-decompose.test.js +324 -0
- package/dist/loop/__tests__/core-loop-auto-decompose.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-capability.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-capability.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-capability.test.js +362 -0
- package/dist/loop/__tests__/core-loop-capability.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-checkpoint.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-checkpoint.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-checkpoint.test.js +323 -0
- package/dist/loop/__tests__/core-loop-checkpoint.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-drive-context.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-drive-context.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-drive-context.test.js +349 -0
- package/dist/loop/__tests__/core-loop-drive-context.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-flow.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-flow.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-flow.test.js +676 -0
- package/dist/loop/__tests__/core-loop-flow.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-integration.test.d.ts +11 -0
- package/dist/loop/__tests__/core-loop-integration.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-integration.test.js +295 -0
- package/dist/loop/__tests__/core-loop-integration.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-integrations.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-integrations.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-integrations.test.js +658 -0
- package/dist/loop/__tests__/core-loop-integrations.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-iteration.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-iteration.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-iteration.test.js +484 -0
- package/dist/loop/__tests__/core-loop-iteration.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-memory-tier.test.d.ts +11 -0
- package/dist/loop/__tests__/core-loop-memory-tier.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-memory-tier.test.js +325 -0
- package/dist/loop/__tests__/core-loop-memory-tier.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-orchestrator-regression.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-orchestrator-regression.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-orchestrator-regression.test.js +360 -0
- package/dist/loop/__tests__/core-loop-orchestrator-regression.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-reporting.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-reporting.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-reporting.test.js +589 -0
- package/dist/loop/__tests__/core-loop-reporting.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-stall-refine.test.d.ts +15 -0
- package/dist/loop/__tests__/core-loop-stall-refine.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-stall-refine.test.js +399 -0
- package/dist/loop/__tests__/core-loop-stall-refine.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop-tree.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop-tree.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop-tree.test.js +626 -0
- package/dist/loop/__tests__/core-loop-tree.test.js.map +1 -0
- package/dist/loop/__tests__/core-loop.test.d.ts +2 -0
- package/dist/loop/__tests__/core-loop.test.d.ts.map +1 -0
- package/dist/loop/__tests__/core-loop.test.js +550 -0
- package/dist/loop/__tests__/core-loop.test.js.map +1 -0
- package/dist/loop/__tests__/iteration-budget.test.d.ts +2 -0
- package/dist/loop/__tests__/iteration-budget.test.d.ts.map +1 -0
- package/dist/loop/__tests__/iteration-budget.test.js +423 -0
- package/dist/loop/__tests__/iteration-budget.test.js.map +1 -0
- package/dist/loop/__tests__/r1-core-loop-completion.test.d.ts +11 -0
- package/dist/loop/__tests__/r1-core-loop-completion.test.d.ts.map +1 -0
- package/dist/loop/__tests__/r1-core-loop-completion.test.js +315 -0
- package/dist/loop/__tests__/r1-core-loop-completion.test.js.map +1 -0
- package/dist/loop/checkpoint-manager-loop.d.ts +1 -1
- package/dist/loop/checkpoint-manager-loop.d.ts.map +1 -1
- package/dist/loop/core-loop-phases-c.d.ts +27 -0
- package/dist/loop/core-loop-phases-c.d.ts.map +1 -0
- package/dist/loop/core-loop-phases-c.js +72 -0
- package/dist/loop/core-loop-phases-c.js.map +1 -0
- package/dist/loop/core-loop-types.d.ts +7 -7
- package/dist/loop/core-loop-types.d.ts.map +1 -1
- package/dist/loop/core-loop.d.ts +54 -0
- package/dist/loop/core-loop.d.ts.map +1 -0
- package/dist/loop/core-loop.js +353 -0
- package/dist/loop/core-loop.js.map +1 -0
- package/dist/mcp-server/__tests__/mcp-server.test.d.ts +2 -0
- package/dist/mcp-server/__tests__/mcp-server.test.d.ts.map +1 -0
- package/dist/mcp-server/__tests__/mcp-server.test.js +180 -0
- package/dist/mcp-server/__tests__/mcp-server.test.js.map +1 -0
- package/dist/mcp-server/index.js +1 -1
- package/dist/mcp-server/index.js.map +1 -1
- package/dist/mcp-server/tools.d.ts +1 -1
- package/dist/mcp-server/tools.d.ts.map +1 -1
- package/dist/observation/__tests__/capability-dependency.test.d.ts +2 -0
- package/dist/observation/__tests__/capability-dependency.test.d.ts.map +1 -0
- package/dist/observation/__tests__/capability-dependency.test.js +195 -0
- package/dist/observation/__tests__/capability-dependency.test.js.map +1 -0
- package/dist/observation/__tests__/capability-detector-detect.test.d.ts +2 -0
- package/dist/observation/__tests__/capability-detector-detect.test.d.ts.map +1 -0
- package/dist/observation/__tests__/capability-detector-detect.test.js +357 -0
- package/dist/observation/__tests__/capability-detector-detect.test.js.map +1 -0
- package/dist/observation/__tests__/capability-detector-escalate.test.d.ts +2 -0
- package/dist/observation/__tests__/capability-detector-escalate.test.d.ts.map +1 -0
- package/dist/observation/__tests__/capability-detector-escalate.test.js +283 -0
- package/dist/observation/__tests__/capability-detector-escalate.test.js.map +1 -0
- package/dist/observation/__tests__/capability-detector-goal.test.d.ts +2 -0
- package/dist/observation/__tests__/capability-detector-goal.test.d.ts.map +1 -0
- package/dist/observation/__tests__/capability-detector-goal.test.js +288 -0
- package/dist/observation/__tests__/capability-detector-goal.test.js.map +1 -0
- package/dist/observation/__tests__/capability-detector-verify.test.d.ts +2 -0
- package/dist/observation/__tests__/capability-detector-verify.test.d.ts.map +1 -0
- package/dist/observation/__tests__/capability-detector-verify.test.js +311 -0
- package/dist/observation/__tests__/capability-detector-verify.test.js.map +1 -0
- package/dist/observation/__tests__/context-provider.test.d.ts +2 -0
- package/dist/observation/__tests__/context-provider.test.d.ts.map +1 -0
- package/dist/observation/__tests__/context-provider.test.js +318 -0
- package/dist/observation/__tests__/context-provider.test.js.map +1 -0
- package/dist/observation/__tests__/data-source-adapter.test.d.ts +2 -0
- package/dist/observation/__tests__/data-source-adapter.test.d.ts.map +1 -0
- package/dist/observation/__tests__/data-source-adapter.test.js +382 -0
- package/dist/observation/__tests__/data-source-adapter.test.js.map +1 -0
- package/dist/observation/__tests__/data-source-hotplug.test.d.ts +2 -0
- package/dist/observation/__tests__/data-source-hotplug.test.d.ts.map +1 -0
- package/dist/observation/__tests__/data-source-hotplug.test.js +160 -0
- package/dist/observation/__tests__/data-source-hotplug.test.js.map +1 -0
- package/dist/observation/__tests__/observation-crossvalidation-override.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-crossvalidation-override.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-crossvalidation-override.test.js +339 -0
- package/dist/observation/__tests__/observation-crossvalidation-override.test.js.map +1 -0
- package/dist/observation/__tests__/observation-engine-context.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-engine-context.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-engine-context.test.js +258 -0
- package/dist/observation/__tests__/observation-engine-context.test.js.map +1 -0
- package/dist/observation/__tests__/observation-engine-crossvalidation.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-engine-crossvalidation.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-engine-crossvalidation.test.js +222 -0
- package/dist/observation/__tests__/observation-engine-crossvalidation.test.js.map +1 -0
- package/dist/observation/__tests__/observation-engine-dedup.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-engine-dedup.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-engine-dedup.test.js +88 -0
- package/dist/observation/__tests__/observation-engine-dedup.test.js.map +1 -0
- package/dist/observation/__tests__/observation-engine-llm.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-engine-llm.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-engine-llm.test.js +474 -0
- package/dist/observation/__tests__/observation-engine-llm.test.js.map +1 -0
- package/dist/observation/__tests__/observation-engine-prompt.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-engine-prompt.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-engine-prompt.test.js +211 -0
- package/dist/observation/__tests__/observation-engine-prompt.test.js.map +1 -0
- package/dist/observation/__tests__/observation-engine.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-engine.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-engine.test.js +806 -0
- package/dist/observation/__tests__/observation-engine.test.js.map +1 -0
- package/dist/observation/__tests__/observation-llm-guard.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-llm-guard.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-llm-guard.test.js +353 -0
- package/dist/observation/__tests__/observation-llm-guard.test.js.map +1 -0
- package/dist/observation/__tests__/observation-llm.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-llm.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-llm.test.js +29 -0
- package/dist/observation/__tests__/observation-llm.test.js.map +1 -0
- package/dist/observation/__tests__/observation-score-clamp.test.d.ts +2 -0
- package/dist/observation/__tests__/observation-score-clamp.test.d.ts.map +1 -0
- package/dist/observation/__tests__/observation-score-clamp.test.js +165 -0
- package/dist/observation/__tests__/observation-score-clamp.test.js.map +1 -0
- package/dist/observation/__tests__/shell-datasource-auto.test.d.ts +2 -0
- package/dist/observation/__tests__/shell-datasource-auto.test.d.ts.map +1 -0
- package/dist/observation/__tests__/shell-datasource-auto.test.js +217 -0
- package/dist/observation/__tests__/shell-datasource-auto.test.js.map +1 -0
- package/dist/observation/__tests__/workspace-context.test.d.ts +2 -0
- package/dist/observation/__tests__/workspace-context.test.d.ts.map +1 -0
- package/dist/observation/__tests__/workspace-context.test.js +291 -0
- package/dist/observation/__tests__/workspace-context.test.js.map +1 -0
- package/dist/observation/capability-dependencies.d.ts +1 -1
- package/dist/observation/capability-dependencies.d.ts.map +1 -1
- package/dist/observation/capability-detector.d.ts +3 -3
- package/dist/observation/capability-detector.d.ts.map +1 -1
- package/dist/observation/capability-registry.d.ts +2 -2
- package/dist/observation/capability-registry.d.ts.map +1 -1
- package/dist/observation/context-provider.d.ts +8 -3
- package/dist/observation/context-provider.d.ts.map +1 -1
- package/dist/observation/context-provider.js +136 -36
- package/dist/observation/context-provider.js.map +1 -1
- package/dist/observation/data-source-adapter.js +1 -1
- package/dist/observation/data-source-adapter.js.map +1 -1
- package/dist/observation/observation-apply.d.ts +1 -1
- package/dist/observation/observation-apply.d.ts.map +1 -1
- package/dist/observation/observation-engine.d.ts +2 -2
- package/dist/observation/observation-engine.d.ts.map +1 -1
- package/dist/observation/observation-helpers.d.ts +2 -2
- package/dist/observation/observation-llm.d.ts +1 -1
- package/dist/observation/observation-llm.d.ts.map +1 -1
- package/dist/observation/observation-llm.js +2 -2
- package/dist/observation/observation-llm.js.map +1 -1
- package/dist/observation/types/capability.d.ts +292 -0
- package/dist/observation/types/capability.d.ts.map +1 -0
- package/dist/observation/types/capability.js +53 -0
- package/dist/observation/types/capability.js.map +1 -0
- package/dist/observation/types/data-source.d.ts +311 -0
- package/dist/observation/types/data-source.d.ts.map +1 -0
- package/dist/observation/types/data-source.js +53 -0
- package/dist/observation/types/data-source.js.map +1 -0
- package/dist/orchestrator/__tests__/goal-loop-guard.test.d.ts +2 -0
- package/dist/orchestrator/__tests__/goal-loop-guard.test.d.ts.map +1 -0
- package/dist/orchestrator/__tests__/goal-loop-guard.test.js +48 -0
- package/dist/orchestrator/__tests__/goal-loop-guard.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/adapter-layer.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/adapter-layer.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/adapter-layer.test.js +88 -0
- package/dist/orchestrator/execution/__tests__/adapter-layer.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/checkpoint-manager.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/checkpoint-manager.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/checkpoint-manager.test.js +304 -0
- package/dist/orchestrator/execution/__tests__/checkpoint-manager.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/completion-judger-timeout.test.d.ts +11 -0
- package/dist/orchestrator/execution/__tests__/completion-judger-timeout.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/completion-judger-timeout.test.js +260 -0
- package/dist/orchestrator/execution/__tests__/completion-judger-timeout.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/context-budget.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/context-budget.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/context-budget.test.js +218 -0
- package/dist/orchestrator/execution/__tests__/context-budget.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/duplicate-task-guard.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/duplicate-task-guard.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/duplicate-task-guard.test.js +187 -0
- package/dist/orchestrator/execution/__tests__/duplicate-task-guard.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/failure-context-injection.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/failure-context-injection.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/failure-context-injection.test.js +227 -0
- package/dist/orchestrator/execution/__tests__/failure-context-injection.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/impact-analyzer.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/impact-analyzer.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/impact-analyzer.test.js +117 -0
- package/dist/orchestrator/execution/__tests__/impact-analyzer.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/issue-context-fetcher.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/issue-context-fetcher.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/issue-context-fetcher.test.js +151 -0
- package/dist/orchestrator/execution/__tests__/issue-context-fetcher.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/parallel-executor.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/parallel-executor.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/parallel-executor.test.js +313 -0
- package/dist/orchestrator/execution/__tests__/parallel-executor.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/pipeline-executor.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/pipeline-executor.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/pipeline-executor.test.js +322 -0
- package/dist/orchestrator/execution/__tests__/pipeline-executor.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/reflection-generator.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/reflection-generator.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/reflection-generator.test.js +422 -0
- package/dist/orchestrator/execution/__tests__/reflection-generator.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/result-reconciler.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/result-reconciler.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/result-reconciler.test.js +112 -0
- package/dist/orchestrator/execution/__tests__/result-reconciler.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/session-manager-phase2.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/session-manager-phase2.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/session-manager-phase2.test.js +381 -0
- package/dist/orchestrator/execution/__tests__/session-manager-phase2.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/session-manager.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/session-manager.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/session-manager.test.js +653 -0
- package/dist/orchestrator/execution/__tests__/session-manager.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-generation-group.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-generation-group.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-generation-group.test.js +157 -0
- package/dist/orchestrator/execution/__tests__/task-generation-group.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-cycle.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-cycle.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-cycle.test.js +685 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-cycle.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-dimension.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-dimension.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-dimension.test.js +325 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-dimension.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-ethics.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-ethics.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-ethics.test.js +732 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-ethics.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-execution.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-execution.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-execution.test.js +441 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-execution.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-generation.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-generation.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-generation.test.js +457 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-generation.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-healthcheck.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-healthcheck.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-healthcheck.test.js +325 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-healthcheck.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-verdict.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-verdict.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-verdict.test.js +683 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-verdict.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-verification.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-verification.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-verification.test.js +526 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle-verification.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle.test.js +503 -0
- package/dist/orchestrator/execution/__tests__/task-lifecycle.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-prompt-builder.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-prompt-builder.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-prompt-builder.test.js +148 -0
- package/dist/orchestrator/execution/__tests__/task-prompt-builder.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-verifier-guards.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-verifier-guards.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-verifier-guards.test.js +735 -0
- package/dist/orchestrator/execution/__tests__/task-verifier-guards.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-verifier.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/task-verifier.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/task-verifier.test.js +113 -0
- package/dist/orchestrator/execution/__tests__/task-verifier.test.js.map +1 -0
- package/dist/orchestrator/execution/__tests__/toolset-lock.test.d.ts +2 -0
- package/dist/orchestrator/execution/__tests__/toolset-lock.test.d.ts.map +1 -0
- package/dist/orchestrator/execution/__tests__/toolset-lock.test.js +204 -0
- package/dist/orchestrator/execution/__tests__/toolset-lock.test.js.map +1 -0
- package/dist/orchestrator/execution/adapter-layer 2.d.ts +100 -0
- package/dist/orchestrator/execution/adapter-layer 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/adapter-layer 2.js +123 -0
- package/dist/orchestrator/execution/adapter-layer 2.js.map +1 -0
- package/dist/orchestrator/execution/adapter-layer.d.ts +100 -0
- package/dist/orchestrator/execution/adapter-layer.d.ts.map +1 -0
- package/dist/orchestrator/execution/adapter-layer.js +123 -0
- package/dist/orchestrator/execution/adapter-layer.js.map +1 -0
- package/dist/orchestrator/execution/checkpoint-manager 2.d.ts +49 -0
- package/dist/orchestrator/execution/checkpoint-manager 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/checkpoint-manager 2.js +143 -0
- package/dist/orchestrator/execution/checkpoint-manager 2.js.map +1 -0
- package/dist/orchestrator/execution/checkpoint-manager.d.ts +49 -0
- package/dist/orchestrator/execution/checkpoint-manager.d.ts.map +1 -0
- package/dist/orchestrator/execution/checkpoint-manager.js +143 -0
- package/dist/orchestrator/execution/checkpoint-manager.js.map +1 -0
- package/dist/orchestrator/execution/context/context-budget.d.ts +35 -0
- package/dist/orchestrator/execution/context/context-budget.d.ts.map +1 -0
- package/dist/orchestrator/execution/context/context-budget.js +73 -0
- package/dist/orchestrator/execution/context/context-budget.js.map +1 -0
- package/dist/orchestrator/execution/context/context-builder.d.ts +44 -0
- package/dist/orchestrator/execution/context/context-builder.d.ts.map +1 -0
- package/dist/orchestrator/execution/context/context-builder.js +132 -0
- package/dist/orchestrator/execution/context/context-builder.js.map +1 -0
- package/dist/orchestrator/execution/context/dimension-selector.d.ts +16 -0
- package/dist/orchestrator/execution/context/dimension-selector.d.ts.map +1 -0
- package/dist/orchestrator/execution/context/dimension-selector.js +57 -0
- package/dist/orchestrator/execution/context/dimension-selector.js.map +1 -0
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts +19 -0
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts.map +1 -0
- package/dist/orchestrator/execution/context/issue-context-fetcher.js +73 -0
- package/dist/orchestrator/execution/context/issue-context-fetcher.js.map +1 -0
- package/dist/orchestrator/execution/impact-analyzer 2.d.ts +24 -0
- package/dist/orchestrator/execution/impact-analyzer 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/impact-analyzer 2.js +88 -0
- package/dist/orchestrator/execution/impact-analyzer 2.js.map +1 -0
- package/dist/orchestrator/execution/impact-analyzer.d.ts +24 -0
- package/dist/orchestrator/execution/impact-analyzer.d.ts.map +1 -0
- package/dist/orchestrator/execution/impact-analyzer.js +88 -0
- package/dist/orchestrator/execution/impact-analyzer.js.map +1 -0
- package/dist/orchestrator/execution/parallel-executor 2.d.ts +38 -0
- package/dist/orchestrator/execution/parallel-executor 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/parallel-executor 2.js +172 -0
- package/dist/orchestrator/execution/parallel-executor 2.js.map +1 -0
- package/dist/orchestrator/execution/parallel-executor.d.ts +38 -0
- package/dist/orchestrator/execution/parallel-executor.d.ts.map +1 -0
- package/dist/orchestrator/execution/parallel-executor.js +172 -0
- package/dist/orchestrator/execution/parallel-executor.js.map +1 -0
- package/dist/orchestrator/execution/pipeline-executor 2.d.ts +54 -0
- package/dist/orchestrator/execution/pipeline-executor 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/pipeline-executor 2.js +250 -0
- package/dist/orchestrator/execution/pipeline-executor 2.js.map +1 -0
- package/dist/orchestrator/execution/pipeline-executor.d.ts +54 -0
- package/dist/orchestrator/execution/pipeline-executor.d.ts.map +1 -0
- package/dist/orchestrator/execution/pipeline-executor.js +250 -0
- package/dist/orchestrator/execution/pipeline-executor.js.map +1 -0
- package/dist/orchestrator/execution/reflection-generator 2.d.ts +24 -0
- package/dist/orchestrator/execution/reflection-generator 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/reflection-generator 2.js +143 -0
- package/dist/orchestrator/execution/reflection-generator 2.js.map +1 -0
- package/dist/orchestrator/execution/reflection-generator.d.ts +24 -0
- package/dist/orchestrator/execution/reflection-generator.d.ts.map +1 -0
- package/dist/orchestrator/execution/reflection-generator.js +143 -0
- package/dist/orchestrator/execution/reflection-generator.js.map +1 -0
- package/dist/orchestrator/execution/result-reconciler 2.d.ts +23 -0
- package/dist/orchestrator/execution/result-reconciler 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/result-reconciler 2.js +109 -0
- package/dist/orchestrator/execution/result-reconciler 2.js.map +1 -0
- package/dist/orchestrator/execution/result-reconciler.d.ts +23 -0
- package/dist/orchestrator/execution/result-reconciler.d.ts.map +1 -0
- package/dist/orchestrator/execution/result-reconciler.js +109 -0
- package/dist/orchestrator/execution/result-reconciler.js.map +1 -0
- package/dist/orchestrator/execution/session-manager 2.d.ts +153 -0
- package/dist/orchestrator/execution/session-manager 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/session-manager 2.js +393 -0
- package/dist/orchestrator/execution/session-manager 2.js.map +1 -0
- package/dist/orchestrator/execution/session-manager.d.ts +153 -0
- package/dist/orchestrator/execution/session-manager.d.ts.map +1 -0
- package/dist/orchestrator/execution/session-manager.js +393 -0
- package/dist/orchestrator/execution/session-manager.js.map +1 -0
- package/dist/orchestrator/execution/task/task-approval-check.d.ts +9 -0
- package/dist/orchestrator/execution/task/task-approval-check.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-approval-check.js +14 -0
- package/dist/orchestrator/execution/task/task-approval-check.js.map +1 -0
- package/dist/orchestrator/execution/task/task-approval.d.ts +22 -0
- package/dist/orchestrator/execution/task/task-approval.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-approval.js +147 -0
- package/dist/orchestrator/execution/task/task-approval.js.map +1 -0
- package/dist/orchestrator/execution/task/task-execution-types.d.ts +18 -0
- package/dist/orchestrator/execution/task/task-execution-types.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-execution-types.js +10 -0
- package/dist/orchestrator/execution/task/task-execution-types.js.map +1 -0
- package/dist/orchestrator/execution/task/task-executor.d.ts +31 -0
- package/dist/orchestrator/execution/task/task-executor.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-executor.js +221 -0
- package/dist/orchestrator/execution/task/task-executor.js.map +1 -0
- package/dist/orchestrator/execution/task/task-generation.d.ts +154 -0
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-generation.js +416 -0
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -0
- package/dist/orchestrator/execution/task/task-health-check.d.ts +41 -0
- package/dist/orchestrator/execution/task/task-health-check.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-health-check.js +100 -0
- package/dist/orchestrator/execution/task/task-health-check.js.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +135 -0
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle.js +356 -0
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -0
- package/dist/orchestrator/execution/task/task-pipeline-cycle.d.ts +45 -0
- package/dist/orchestrator/execution/task/task-pipeline-cycle.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-pipeline-cycle.js +132 -0
- package/dist/orchestrator/execution/task/task-pipeline-cycle.js.map +1 -0
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +9 -0
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-prompt-builder.js +197 -0
- package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-llm.d.ts +24 -0
- package/dist/orchestrator/execution/task/task-verifier-llm.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-llm.js +160 -0
- package/dist/orchestrator/execution/task/task-verifier-llm.js.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts +31 -0
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-rules.js +235 -0
- package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts +82 -0
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-types.js +9 -0
- package/dist/orchestrator/execution/task/task-verifier-types.js.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier.d.ts +48 -0
- package/dist/orchestrator/execution/task/task-verifier.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier.js +463 -0
- package/dist/orchestrator/execution/task/task-verifier.js.map +1 -0
- package/dist/orchestrator/execution/toolset-lock 2.d.ts +27 -0
- package/dist/orchestrator/execution/toolset-lock 2.d.ts.map +1 -0
- package/dist/orchestrator/execution/toolset-lock 2.js +49 -0
- package/dist/orchestrator/execution/toolset-lock 2.js.map +1 -0
- package/dist/orchestrator/execution/toolset-lock.d.ts +27 -0
- package/dist/orchestrator/execution/toolset-lock.d.ts.map +1 -0
- package/dist/orchestrator/execution/toolset-lock.js +49 -0
- package/dist/orchestrator/execution/toolset-lock.js.map +1 -0
- package/dist/orchestrator/execution/types/checkpoint.d.ts +133 -0
- package/dist/orchestrator/execution/types/checkpoint.d.ts.map +1 -0
- package/dist/orchestrator/execution/types/checkpoint.js +38 -0
- package/dist/orchestrator/execution/types/checkpoint.js.map +1 -0
- package/dist/orchestrator/execution/types/pipeline.d.ts +191 -0
- package/dist/orchestrator/execution/types/pipeline.d.ts.map +1 -0
- package/dist/orchestrator/execution/types/pipeline.js +62 -0
- package/dist/orchestrator/execution/types/pipeline.js.map +1 -0
- package/dist/orchestrator/execution/types/session.d.ts +95 -0
- package/dist/orchestrator/execution/types/session.d.ts.map +1 -0
- package/dist/orchestrator/execution/types/session.js +37 -0
- package/dist/orchestrator/execution/types/session.js.map +1 -0
- package/dist/orchestrator/execution/types/task-group.d.ts +246 -0
- package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -0
- package/dist/orchestrator/execution/types/task-group.js +14 -0
- package/dist/orchestrator/execution/types/task-group.js.map +1 -0
- package/dist/orchestrator/execution/types/task.d.ts +267 -0
- package/dist/orchestrator/execution/types/task.d.ts.map +1 -0
- package/dist/orchestrator/execution/types/task.js +70 -0
- package/dist/orchestrator/execution/types/task.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-cli-refine.test.d.ts +8 -0
- package/dist/orchestrator/goal/__tests__/goal-cli-refine.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-cli-refine.test.js +237 -0
- package/dist/orchestrator/goal/__tests__/goal-cli-refine.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-dependency-graph.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-dependency-graph.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-dependency-graph.test.js +352 -0
- package/dist/orchestrator/goal/__tests__/goal-dependency-graph.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-character.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-character.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-character.test.js +650 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-character.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-core.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-core.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-core.test.js +370 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-core.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-decompose.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-decompose.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-decompose.test.js +876 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-decompose.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-negotiate.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-negotiate.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-negotiate.test.js +411 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-negotiate.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-suggest-filter.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-suggest-filter.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-suggest-filter.test.js +258 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-suggest-filter.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-suggest.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-suggest.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-suggest.test.js +280 -0
- package/dist/orchestrator/goal/__tests__/goal-negotiator-suggest.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-refiner.refine.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-refiner.refine.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-refiner.refine.test.js +291 -0
- package/dist/orchestrator/goal/__tests__/goal-refiner.refine.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-refiner.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-refiner.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-refiner.test.js +509 -0
- package/dist/orchestrator/goal/__tests__/goal-refiner.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-suggest-timeout.test.d.ts +10 -0
- package/dist/orchestrator/goal/__tests__/goal-suggest-timeout.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-suggest-timeout.test.js +63 -0
- package/dist/orchestrator/goal/__tests__/goal-suggest-timeout.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-concreteness.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-concreteness.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-concreteness.test.js +391 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-concreteness.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-manager.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-manager.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-manager.test.js +828 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-manager.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-quality.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-quality.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-quality.test.js +150 -0
- package/dist/orchestrator/goal/__tests__/goal-tree-quality.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/goalNegotiator.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/goalNegotiator.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/goalNegotiator.test.js +418 -0
- package/dist/orchestrator/goal/__tests__/goalNegotiator.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/negotiate-context.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/negotiate-context.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/negotiate-context.test.js +192 -0
- package/dist/orchestrator/goal/__tests__/negotiate-context.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/refine.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/refine.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/refine.test.js +354 -0
- package/dist/orchestrator/goal/__tests__/refine.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/refiner-prompts.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/refiner-prompts.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/refiner-prompts.test.js +92 -0
- package/dist/orchestrator/goal/__tests__/refiner-prompts.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/state-aggregator.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/state-aggregator.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/state-aggregator.test.js +840 -0
- package/dist/orchestrator/goal/__tests__/state-aggregator.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/subgoal-curriculum.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/subgoal-curriculum.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/subgoal-curriculum.test.js +219 -0
- package/dist/orchestrator/goal/__tests__/subgoal-curriculum.test.js.map +1 -0
- package/dist/orchestrator/goal/__tests__/tree-loop-orchestrator.test.d.ts +2 -0
- package/dist/orchestrator/goal/__tests__/tree-loop-orchestrator.test.d.ts.map +1 -0
- package/dist/orchestrator/goal/__tests__/tree-loop-orchestrator.test.js +1078 -0
- package/dist/orchestrator/goal/__tests__/tree-loop-orchestrator.test.js.map +1 -0
- package/dist/orchestrator/goal/goal-decomposer 2.d.ts +30 -0
- package/dist/orchestrator/goal/goal-decomposer 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-decomposer 2.js +167 -0
- package/dist/orchestrator/goal/goal-decomposer 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-decomposer.d.ts +30 -0
- package/dist/orchestrator/goal/goal-decomposer.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-decomposer.js +167 -0
- package/dist/orchestrator/goal/goal-decomposer.js.map +1 -0
- package/dist/orchestrator/goal/goal-dependency-graph 2.d.ts +124 -0
- package/dist/orchestrator/goal/goal-dependency-graph 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-dependency-graph 2.js +325 -0
- package/dist/orchestrator/goal/goal-dependency-graph 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-dependency-graph.d.ts +124 -0
- package/dist/orchestrator/goal/goal-dependency-graph.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-dependency-graph.js +325 -0
- package/dist/orchestrator/goal/goal-dependency-graph.js.map +1 -0
- package/dist/orchestrator/goal/goal-negotiator 2.d.ts +72 -0
- package/dist/orchestrator/goal/goal-negotiator 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-negotiator 2.js +299 -0
- package/dist/orchestrator/goal/goal-negotiator 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-negotiator.d.ts +72 -0
- package/dist/orchestrator/goal/goal-negotiator.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-negotiator.js +299 -0
- package/dist/orchestrator/goal/goal-negotiator.js.map +1 -0
- package/dist/orchestrator/goal/goal-refiner 2.d.ts +48 -0
- package/dist/orchestrator/goal/goal-refiner 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-refiner 2.js +299 -0
- package/dist/orchestrator/goal/goal-refiner 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-refiner.d.ts +48 -0
- package/dist/orchestrator/goal/goal-refiner.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-refiner.js +299 -0
- package/dist/orchestrator/goal/goal-refiner.js.map +1 -0
- package/dist/orchestrator/goal/goal-suggest 2.d.ts +93 -0
- package/dist/orchestrator/goal/goal-suggest 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-suggest 2.js +254 -0
- package/dist/orchestrator/goal/goal-suggest 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-suggest.d.ts +93 -0
- package/dist/orchestrator/goal/goal-suggest.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-suggest.js +254 -0
- package/dist/orchestrator/goal/goal-suggest.js.map +1 -0
- package/dist/orchestrator/goal/goal-tree-manager 2.d.ts +72 -0
- package/dist/orchestrator/goal/goal-tree-manager 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-tree-manager 2.js +572 -0
- package/dist/orchestrator/goal/goal-tree-manager 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-tree-manager.d.ts +72 -0
- package/dist/orchestrator/goal/goal-tree-manager.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-tree-manager.js +572 -0
- package/dist/orchestrator/goal/goal-tree-manager.js.map +1 -0
- package/dist/orchestrator/goal/goal-tree-pruner 2.d.ts +25 -0
- package/dist/orchestrator/goal/goal-tree-pruner 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-tree-pruner 2.js +93 -0
- package/dist/orchestrator/goal/goal-tree-pruner 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-tree-pruner.d.ts +25 -0
- package/dist/orchestrator/goal/goal-tree-pruner.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-tree-pruner.js +93 -0
- package/dist/orchestrator/goal/goal-tree-pruner.js.map +1 -0
- package/dist/orchestrator/goal/goal-tree-quality 2.d.ts +22 -0
- package/dist/orchestrator/goal/goal-tree-quality 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-tree-quality 2.js +183 -0
- package/dist/orchestrator/goal/goal-tree-quality 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-tree-quality.d.ts +22 -0
- package/dist/orchestrator/goal/goal-tree-quality.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-tree-quality.js +183 -0
- package/dist/orchestrator/goal/goal-tree-quality.js.map +1 -0
- package/dist/orchestrator/goal/goal-validation 2.d.ts +20 -0
- package/dist/orchestrator/goal/goal-validation 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-validation 2.js +93 -0
- package/dist/orchestrator/goal/goal-validation 2.js.map +1 -0
- package/dist/orchestrator/goal/goal-validation.d.ts +20 -0
- package/dist/orchestrator/goal/goal-validation.d.ts.map +1 -0
- package/dist/orchestrator/goal/goal-validation.js +93 -0
- package/dist/orchestrator/goal/goal-validation.js.map +1 -0
- package/dist/orchestrator/goal/milestone-evaluator 2.d.ts +33 -0
- package/dist/orchestrator/goal/milestone-evaluator 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/milestone-evaluator 2.js +130 -0
- package/dist/orchestrator/goal/milestone-evaluator 2.js.map +1 -0
- package/dist/orchestrator/goal/milestone-evaluator.d.ts +33 -0
- package/dist/orchestrator/goal/milestone-evaluator.d.ts.map +1 -0
- package/dist/orchestrator/goal/milestone-evaluator.js +130 -0
- package/dist/orchestrator/goal/milestone-evaluator.js.map +1 -0
- package/dist/orchestrator/goal/negotiator-context 2.d.ts +13 -0
- package/dist/orchestrator/goal/negotiator-context 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/negotiator-context 2.js +119 -0
- package/dist/orchestrator/goal/negotiator-context 2.js.map +1 -0
- package/dist/orchestrator/goal/negotiator-context.d.ts +16 -0
- package/dist/orchestrator/goal/negotiator-context.d.ts.map +1 -0
- package/dist/orchestrator/goal/negotiator-context.js +196 -0
- package/dist/orchestrator/goal/negotiator-context.js.map +1 -0
- package/dist/orchestrator/goal/negotiator-prompts 2.d.ts +31 -0
- package/dist/orchestrator/goal/negotiator-prompts 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/negotiator-prompts 2.js +65 -0
- package/dist/orchestrator/goal/negotiator-prompts 2.js.map +1 -0
- package/dist/orchestrator/goal/negotiator-prompts.d.ts +31 -0
- package/dist/orchestrator/goal/negotiator-prompts.d.ts.map +1 -0
- package/dist/orchestrator/goal/negotiator-prompts.js +65 -0
- package/dist/orchestrator/goal/negotiator-prompts.js.map +1 -0
- package/dist/orchestrator/goal/negotiator-steps 2.d.ts +59 -0
- package/dist/orchestrator/goal/negotiator-steps 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/negotiator-steps 2.js +269 -0
- package/dist/orchestrator/goal/negotiator-steps 2.js.map +1 -0
- package/dist/orchestrator/goal/negotiator-steps.d.ts +59 -0
- package/dist/orchestrator/goal/negotiator-steps.d.ts.map +1 -0
- package/dist/orchestrator/goal/negotiator-steps.js +269 -0
- package/dist/orchestrator/goal/negotiator-steps.js.map +1 -0
- package/dist/orchestrator/goal/refiner-prompts 2.d.ts +10 -0
- package/dist/orchestrator/goal/refiner-prompts 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/refiner-prompts 2.js +59 -0
- package/dist/orchestrator/goal/refiner-prompts 2.js.map +1 -0
- package/dist/orchestrator/goal/refiner-prompts.d.ts +10 -0
- package/dist/orchestrator/goal/refiner-prompts.d.ts.map +1 -0
- package/dist/orchestrator/goal/refiner-prompts.js +59 -0
- package/dist/orchestrator/goal/refiner-prompts.js.map +1 -0
- package/dist/orchestrator/goal/state-aggregator 2.d.ts +89 -0
- package/dist/orchestrator/goal/state-aggregator 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/state-aggregator 2.js +331 -0
- package/dist/orchestrator/goal/state-aggregator 2.js.map +1 -0
- package/dist/orchestrator/goal/state-aggregator.d.ts +89 -0
- package/dist/orchestrator/goal/state-aggregator.d.ts.map +1 -0
- package/dist/orchestrator/goal/state-aggregator.js +331 -0
- package/dist/orchestrator/goal/state-aggregator.js.map +1 -0
- package/dist/orchestrator/goal/subgoal-curriculum 2.d.ts +30 -0
- package/dist/orchestrator/goal/subgoal-curriculum 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/subgoal-curriculum 2.js +53 -0
- package/dist/orchestrator/goal/subgoal-curriculum 2.js.map +1 -0
- package/dist/orchestrator/goal/subgoal-curriculum.d.ts +30 -0
- package/dist/orchestrator/goal/subgoal-curriculum.d.ts.map +1 -0
- package/dist/orchestrator/goal/subgoal-curriculum.js +53 -0
- package/dist/orchestrator/goal/subgoal-curriculum.js.map +1 -0
- package/dist/orchestrator/goal/tree-loop-orchestrator 2.d.ts +100 -0
- package/dist/orchestrator/goal/tree-loop-orchestrator 2.d.ts.map +1 -0
- package/dist/orchestrator/goal/tree-loop-orchestrator 2.js +269 -0
- package/dist/orchestrator/goal/tree-loop-orchestrator 2.js.map +1 -0
- package/dist/orchestrator/goal/tree-loop-orchestrator.d.ts +100 -0
- package/dist/orchestrator/goal/tree-loop-orchestrator.d.ts.map +1 -0
- package/dist/orchestrator/goal/tree-loop-orchestrator.js +269 -0
- package/dist/orchestrator/goal/tree-loop-orchestrator.js.map +1 -0
- package/dist/orchestrator/goal/types/dependency.d.ts +108 -0
- package/dist/orchestrator/goal/types/dependency.d.ts.map +1 -0
- package/dist/orchestrator/goal/types/dependency.js +21 -0
- package/dist/orchestrator/goal/types/dependency.js.map +1 -0
- package/dist/orchestrator/goal/types/goal-refiner.d.ts +108 -0
- package/dist/orchestrator/goal/types/goal-refiner.d.ts.map +1 -0
- package/dist/orchestrator/goal/types/goal-refiner.js +39 -0
- package/dist/orchestrator/goal/types/goal-refiner.js.map +1 -0
- package/dist/orchestrator/goal/types/goal-tree.d.ts +180 -0
- package/dist/orchestrator/goal/types/goal-tree.d.ts.map +1 -0
- package/dist/orchestrator/goal/types/goal-tree.js +73 -0
- package/dist/orchestrator/goal/types/goal-tree.js.map +1 -0
- package/dist/orchestrator/goal/types/goal.d.ts +1342 -0
- package/dist/orchestrator/goal/types/goal.d.ts.map +1 -0
- package/dist/orchestrator/goal/types/goal.js +141 -0
- package/dist/orchestrator/goal/types/goal.js.map +1 -0
- package/dist/orchestrator/goal/types/negotiation.d.ts +450 -0
- package/dist/orchestrator/goal/types/negotiation.d.ts.map +1 -0
- package/dist/orchestrator/goal/types/negotiation.js +84 -0
- package/dist/orchestrator/goal/types/negotiation.js.map +1 -0
- package/dist/orchestrator/goal/types/suggest.d.ts +92 -0
- package/dist/orchestrator/goal/types/suggest.d.ts.map +1 -0
- package/dist/orchestrator/goal/types/suggest.js +15 -0
- package/dist/orchestrator/goal/types/suggest.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-auto-decompose.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-auto-decompose.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-auto-decompose.test.js +324 -0
- package/dist/orchestrator/loop/__tests__/core-loop-auto-decompose.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-capability.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-capability.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-capability.test.js +362 -0
- package/dist/orchestrator/loop/__tests__/core-loop-capability.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-checkpoint.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-checkpoint.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-checkpoint.test.js +323 -0
- package/dist/orchestrator/loop/__tests__/core-loop-checkpoint.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-drive-context.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-drive-context.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-drive-context.test.js +349 -0
- package/dist/orchestrator/loop/__tests__/core-loop-drive-context.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-flow.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-flow.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-flow.test.js +676 -0
- package/dist/orchestrator/loop/__tests__/core-loop-flow.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-integration.test.d.ts +11 -0
- package/dist/orchestrator/loop/__tests__/core-loop-integration.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-integration.test.js +295 -0
- package/dist/orchestrator/loop/__tests__/core-loop-integration.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-integrations.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-integrations.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-integrations.test.js +658 -0
- package/dist/orchestrator/loop/__tests__/core-loop-integrations.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-iteration.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-iteration.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-iteration.test.js +484 -0
- package/dist/orchestrator/loop/__tests__/core-loop-iteration.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-memory-tier.test.d.ts +11 -0
- package/dist/orchestrator/loop/__tests__/core-loop-memory-tier.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-memory-tier.test.js +325 -0
- package/dist/orchestrator/loop/__tests__/core-loop-memory-tier.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-orchestrator-regression.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-orchestrator-regression.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-orchestrator-regression.test.js +360 -0
- package/dist/orchestrator/loop/__tests__/core-loop-orchestrator-regression.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-reporting.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-reporting.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-reporting.test.js +589 -0
- package/dist/orchestrator/loop/__tests__/core-loop-reporting.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-stall-refine.test.d.ts +15 -0
- package/dist/orchestrator/loop/__tests__/core-loop-stall-refine.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-stall-refine.test.js +399 -0
- package/dist/orchestrator/loop/__tests__/core-loop-stall-refine.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-tree.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop-tree.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop-tree.test.js +626 -0
- package/dist/orchestrator/loop/__tests__/core-loop-tree.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/core-loop.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/core-loop.test.js +550 -0
- package/dist/orchestrator/loop/__tests__/core-loop.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/iteration-budget.test.d.ts +2 -0
- package/dist/orchestrator/loop/__tests__/iteration-budget.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/iteration-budget.test.js +423 -0
- package/dist/orchestrator/loop/__tests__/iteration-budget.test.js.map +1 -0
- package/dist/orchestrator/loop/__tests__/r1-core-loop-completion.test.d.ts +11 -0
- package/dist/orchestrator/loop/__tests__/r1-core-loop-completion.test.d.ts.map +1 -0
- package/dist/orchestrator/loop/__tests__/r1-core-loop-completion.test.js +315 -0
- package/dist/orchestrator/loop/__tests__/r1-core-loop-completion.test.js.map +1 -0
- package/dist/orchestrator/loop/checkpoint-manager-loop.d.ts +28 -0
- package/dist/orchestrator/loop/checkpoint-manager-loop.d.ts.map +1 -0
- package/dist/orchestrator/loop/checkpoint-manager-loop.js +62 -0
- package/dist/orchestrator/loop/checkpoint-manager-loop.js.map +1 -0
- package/dist/orchestrator/loop/core-loop-capability.d.ts +19 -0
- package/dist/orchestrator/loop/core-loop-capability.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop-capability.js +107 -0
- package/dist/orchestrator/loop/core-loop-capability.js.map +1 -0
- package/dist/orchestrator/loop/core-loop-learning.d.ts +34 -0
- package/dist/orchestrator/loop/core-loop-learning.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop-learning.js +78 -0
- package/dist/orchestrator/loop/core-loop-learning.js.map +1 -0
- package/dist/orchestrator/loop/core-loop-phases-b.d.ts +31 -0
- package/dist/orchestrator/loop/core-loop-phases-b.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop-phases-b.js +458 -0
- package/dist/orchestrator/loop/core-loop-phases-b.js.map +1 -0
- package/dist/orchestrator/loop/core-loop-phases-c.d.ts +27 -0
- package/dist/orchestrator/loop/core-loop-phases-c.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop-phases-c.js +72 -0
- package/dist/orchestrator/loop/core-loop-phases-c.js.map +1 -0
- package/dist/orchestrator/loop/core-loop-phases.d.ts +59 -0
- package/dist/orchestrator/loop/core-loop-phases.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop-phases.js +327 -0
- package/dist/orchestrator/loop/core-loop-phases.js.map +1 -0
- package/dist/orchestrator/loop/core-loop-types.d.ts +283 -0
- package/dist/orchestrator/loop/core-loop-types.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop-types.js +64 -0
- package/dist/orchestrator/loop/core-loop-types.js.map +1 -0
- package/dist/orchestrator/loop/core-loop.d.ts +54 -0
- package/dist/orchestrator/loop/core-loop.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop.js +353 -0
- package/dist/orchestrator/loop/core-loop.js.map +1 -0
- package/dist/orchestrator/loop/iteration-budget.d.ts +39 -0
- package/dist/orchestrator/loop/iteration-budget.d.ts.map +1 -0
- package/dist/orchestrator/loop/iteration-budget.js +57 -0
- package/dist/orchestrator/loop/iteration-budget.js.map +1 -0
- package/dist/orchestrator/loop/loop-report-helper.d.ts +14 -0
- package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -0
- package/dist/orchestrator/loop/loop-report-helper.js +57 -0
- package/dist/orchestrator/loop/loop-report-helper.js.map +1 -0
- package/dist/orchestrator/loop/parallel-dispatch.d.ts +16 -0
- package/dist/orchestrator/loop/parallel-dispatch.d.ts.map +1 -0
- package/dist/orchestrator/loop/parallel-dispatch.js +103 -0
- package/dist/orchestrator/loop/parallel-dispatch.js.map +1 -0
- package/dist/orchestrator/loop/post-loop-hooks.d.ts +27 -0
- package/dist/orchestrator/loop/post-loop-hooks.d.ts.map +1 -0
- package/dist/orchestrator/loop/post-loop-hooks.js +99 -0
- package/dist/orchestrator/loop/post-loop-hooks.js.map +1 -0
- package/dist/orchestrator/loop/state-diff.d.ts +41 -0
- package/dist/orchestrator/loop/state-diff.d.ts.map +1 -0
- package/dist/orchestrator/loop/state-diff.js +86 -0
- package/dist/orchestrator/loop/state-diff.js.map +1 -0
- package/dist/orchestrator/loop/tree-loop-runner.d.ts +24 -0
- package/dist/orchestrator/loop/tree-loop-runner.d.ts.map +1 -0
- package/dist/orchestrator/loop/tree-loop-runner.js +169 -0
- package/dist/orchestrator/loop/tree-loop-runner.js.map +1 -0
- package/dist/orchestrator/loop/verification-layer1.d.ts +38 -0
- package/dist/orchestrator/loop/verification-layer1.d.ts.map +1 -0
- package/dist/orchestrator/loop/verification-layer1.js +81 -0
- package/dist/orchestrator/loop/verification-layer1.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/cross-goal-portfolio-phase2.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/cross-goal-portfolio-phase2.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/cross-goal-portfolio-phase2.test.js +472 -0
- package/dist/orchestrator/strategy/__tests__/cross-goal-portfolio-phase2.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/cross-goal-portfolio.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/cross-goal-portfolio.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/cross-goal-portfolio.test.js +636 -0
- package/dist/orchestrator/strategy/__tests__/cross-goal-portfolio.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/portfolio-manager.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/portfolio-manager.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/portfolio-manager.test.js +730 -0
- package/dist/orchestrator/strategy/__tests__/portfolio-manager.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-auto-template.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/strategy-auto-template.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-auto-template.test.js +164 -0
- package/dist/orchestrator/strategy/__tests__/strategy-auto-template.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-helpers-unwrap.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/strategy-helpers-unwrap.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-helpers-unwrap.test.js +53 -0
- package/dist/orchestrator/strategy/__tests__/strategy-helpers-unwrap.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-core.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-core.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-core.test.js +342 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-core.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-phase2.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-phase2.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-phase2.test.js +602 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-phase2.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-stall.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-stall.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-stall.test.js +357 -0
- package/dist/orchestrator/strategy/__tests__/strategy-manager-stall.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-template-embedding.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/strategy-template-embedding.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-template-embedding.test.js +310 -0
- package/dist/orchestrator/strategy/__tests__/strategy-template-embedding.test.js.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-template-registry.test.d.ts +2 -0
- package/dist/orchestrator/strategy/__tests__/strategy-template-registry.test.d.ts.map +1 -0
- package/dist/orchestrator/strategy/__tests__/strategy-template-registry.test.js +402 -0
- package/dist/orchestrator/strategy/__tests__/strategy-template-registry.test.js.map +1 -0
- package/dist/orchestrator/strategy/cross-goal-portfolio.d.ts +115 -0
- package/dist/orchestrator/strategy/cross-goal-portfolio.d.ts.map +1 -0
- package/dist/orchestrator/strategy/cross-goal-portfolio.js +389 -0
- package/dist/orchestrator/strategy/cross-goal-portfolio.js.map +1 -0
- package/dist/orchestrator/strategy/portfolio-allocation.d.ts +69 -0
- package/dist/orchestrator/strategy/portfolio-allocation.d.ts.map +1 -0
- package/dist/orchestrator/strategy/portfolio-allocation.js +264 -0
- package/dist/orchestrator/strategy/portfolio-allocation.js.map +1 -0
- package/dist/orchestrator/strategy/portfolio-manager.d.ts +147 -0
- package/dist/orchestrator/strategy/portfolio-manager.d.ts.map +1 -0
- package/dist/orchestrator/strategy/portfolio-manager.js +340 -0
- package/dist/orchestrator/strategy/portfolio-manager.js.map +1 -0
- package/dist/orchestrator/strategy/portfolio-momentum.d.ts +11 -0
- package/dist/orchestrator/strategy/portfolio-momentum.d.ts.map +1 -0
- package/dist/orchestrator/strategy/portfolio-momentum.js +64 -0
- package/dist/orchestrator/strategy/portfolio-momentum.js.map +1 -0
- package/dist/orchestrator/strategy/portfolio-rebalance.d.ts +75 -0
- package/dist/orchestrator/strategy/portfolio-rebalance.d.ts.map +1 -0
- package/dist/orchestrator/strategy/portfolio-rebalance.js.map +1 -0
- package/dist/orchestrator/strategy/portfolio-scheduling.d.ts +25 -0
- package/dist/orchestrator/strategy/portfolio-scheduling.d.ts.map +1 -0
- package/dist/orchestrator/strategy/portfolio-scheduling.js +133 -0
- package/dist/orchestrator/strategy/portfolio-scheduling.js.map +1 -0
- package/dist/orchestrator/strategy/strategy-helpers.d.ts +119 -0
- package/dist/orchestrator/strategy/strategy-helpers.d.ts.map +1 -0
- package/dist/orchestrator/strategy/strategy-helpers.js +178 -0
- package/dist/orchestrator/strategy/strategy-helpers.js.map +1 -0
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts +120 -0
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -0
- package/dist/orchestrator/strategy/strategy-manager-base.js +451 -0
- package/dist/orchestrator/strategy/strategy-manager-base.js.map +1 -0
- package/dist/orchestrator/strategy/strategy-manager.d.ts +65 -0
- package/dist/orchestrator/strategy/strategy-manager.d.ts.map +1 -0
- package/dist/orchestrator/strategy/strategy-manager.js +226 -0
- package/dist/orchestrator/strategy/strategy-manager.js.map +1 -0
- package/dist/orchestrator/strategy/strategy-template-registry.d.ts +84 -0
- package/dist/orchestrator/strategy/strategy-template-registry.d.ts.map +1 -0
- package/dist/orchestrator/strategy/strategy-template-registry.js +350 -0
- package/dist/orchestrator/strategy/strategy-template-registry.js.map +1 -0
- package/dist/orchestrator/strategy/strategy-workspace.d.ts +53 -0
- package/dist/orchestrator/strategy/strategy-workspace.d.ts.map +1 -0
- package/dist/orchestrator/strategy/strategy-workspace.js +121 -0
- package/dist/orchestrator/strategy/strategy-workspace.js.map +1 -0
- package/dist/orchestrator/strategy/types/cross-portfolio.d.ts +378 -0
- package/dist/orchestrator/strategy/types/cross-portfolio.d.ts.map +1 -0
- package/dist/orchestrator/strategy/types/cross-portfolio.js +155 -0
- package/dist/orchestrator/strategy/types/cross-portfolio.js.map +1 -0
- package/dist/orchestrator/strategy/types/portfolio.d.ts +146 -0
- package/dist/orchestrator/strategy/types/portfolio.d.ts.map +1 -0
- package/dist/orchestrator/strategy/types/portfolio.js +55 -0
- package/dist/orchestrator/strategy/types/portfolio.js.map +1 -0
- package/dist/orchestrator/strategy/types/strategy.d.ts +574 -0
- package/dist/orchestrator/strategy/types/strategy.d.ts.map +1 -0
- package/dist/orchestrator/strategy/types/strategy.js +60 -0
- package/dist/orchestrator/strategy/types/strategy.js.map +1 -0
- package/dist/platform/drive/__tests__/drive-scorer.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/drive-scorer.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/drive-scorer.test.js +507 -0
- package/dist/platform/drive/__tests__/drive-scorer.test.js.map +1 -0
- package/dist/platform/drive/__tests__/drive-system.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/drive-system.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/drive-system.test.js +456 -0
- package/dist/platform/drive/__tests__/drive-system.test.js.map +1 -0
- package/dist/platform/drive/__tests__/example.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/example.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/example.test.js +314 -0
- package/dist/platform/drive/__tests__/example.test.js.map +1 -0
- package/dist/platform/drive/__tests__/gap-calculator.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/gap-calculator.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/gap-calculator.test.js +619 -0
- package/dist/platform/drive/__tests__/gap-calculator.test.js.map +1 -0
- package/dist/platform/drive/__tests__/progress-predictor.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/progress-predictor.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/progress-predictor.test.js +142 -0
- package/dist/platform/drive/__tests__/progress-predictor.test.js.map +1 -0
- package/dist/platform/drive/__tests__/reward-log.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/reward-log.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/reward-log.test.js +177 -0
- package/dist/platform/drive/__tests__/reward-log.test.js.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-convergence.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/satisficing-judge-convergence.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-convergence.test.js +159 -0
- package/dist/platform/drive/__tests__/satisficing-judge-convergence.test.js.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-dimension-satisfied.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/satisficing-judge-dimension-satisfied.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-dimension-satisfied.test.js +261 -0
- package/dist/platform/drive/__tests__/satisficing-judge-dimension-satisfied.test.js.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-double-confirm.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/satisficing-judge-double-confirm.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-double-confirm.test.js +207 -0
- package/dist/platform/drive/__tests__/satisficing-judge-double-confirm.test.js.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-goal-complete.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/satisficing-judge-goal-complete.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-goal-complete.test.js +359 -0
- package/dist/platform/drive/__tests__/satisficing-judge-goal-complete.test.js.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-propagation-phase2.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/satisficing-judge-propagation-phase2.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-propagation-phase2.test.js +461 -0
- package/dist/platform/drive/__tests__/satisficing-judge-propagation-phase2.test.js.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-threshold-propagation.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/satisficing-judge-threshold-propagation.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-threshold-propagation.test.js +337 -0
- package/dist/platform/drive/__tests__/satisficing-judge-threshold-propagation.test.js.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-tree-convergence.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/satisficing-judge-tree-convergence.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-tree-convergence.test.js +109 -0
- package/dist/platform/drive/__tests__/satisficing-judge-tree-convergence.test.js.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-undershoot.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/satisficing-judge-undershoot.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/satisficing-judge-undershoot.test.js +221 -0
- package/dist/platform/drive/__tests__/satisficing-judge-undershoot.test.js.map +1 -0
- package/dist/platform/drive/__tests__/stall-detector-analysis.test.d.ts +12 -0
- package/dist/platform/drive/__tests__/stall-detector-analysis.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/stall-detector-analysis.test.js +139 -0
- package/dist/platform/drive/__tests__/stall-detector-analysis.test.js.map +1 -0
- package/dist/platform/drive/__tests__/stall-detector-repetitive.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/stall-detector-repetitive.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/stall-detector-repetitive.test.js +84 -0
- package/dist/platform/drive/__tests__/stall-detector-repetitive.test.js.map +1 -0
- package/dist/platform/drive/__tests__/stall-detector.test.d.ts +2 -0
- package/dist/platform/drive/__tests__/stall-detector.test.d.ts.map +1 -0
- package/dist/platform/drive/__tests__/stall-detector.test.js +903 -0
- package/dist/platform/drive/__tests__/stall-detector.test.js.map +1 -0
- package/dist/platform/drive/drive-scorer.d.ts +96 -0
- package/dist/platform/drive/drive-scorer.d.ts.map +1 -0
- package/dist/platform/drive/drive-scorer.js +240 -0
- package/dist/platform/drive/drive-scorer.js.map +1 -0
- package/dist/platform/drive/drive-system.d.ts +99 -0
- package/dist/platform/drive/drive-system.d.ts.map +1 -0
- package/dist/platform/drive/drive-system.js +354 -0
- package/dist/platform/drive/drive-system.js.map +1 -0
- package/dist/platform/drive/gap-calculator-tools.d.ts +29 -0
- package/dist/platform/drive/gap-calculator-tools.d.ts.map +1 -0
- package/dist/platform/drive/gap-calculator-tools.js +75 -0
- package/dist/platform/drive/gap-calculator-tools.js.map +1 -0
- package/dist/platform/drive/gap-calculator.d.ts +88 -0
- package/dist/platform/drive/gap-calculator.d.ts.map +1 -0
- package/dist/platform/drive/gap-calculator.js +243 -0
- package/dist/platform/drive/gap-calculator.js.map +1 -0
- package/dist/platform/drive/progress-predictor.d.ts +24 -0
- package/dist/platform/drive/progress-predictor.d.ts.map +1 -0
- package/dist/platform/drive/progress-predictor.js +93 -0
- package/dist/platform/drive/progress-predictor.js.map +1 -0
- package/dist/platform/drive/reward-log.d.ts +51 -0
- package/dist/platform/drive/reward-log.d.ts.map +1 -0
- package/dist/platform/drive/reward-log.js +48 -0
- package/dist/platform/drive/reward-log.js.map +1 -0
- package/dist/platform/drive/satisficing-helpers.d.ts +28 -0
- package/dist/platform/drive/satisficing-helpers.d.ts.map +1 -0
- package/dist/platform/drive/satisficing-helpers.js +111 -0
- package/dist/platform/drive/satisficing-helpers.js.map +1 -0
- package/dist/platform/drive/satisficing-judge.d.ts +140 -0
- package/dist/platform/drive/satisficing-judge.d.ts.map +1 -0
- package/dist/platform/drive/satisficing-judge.js +427 -0
- package/dist/platform/drive/satisficing-judge.js.map +1 -0
- package/dist/platform/drive/satisficing-propagation.d.ts +30 -0
- package/dist/platform/drive/satisficing-propagation.d.ts.map +1 -0
- package/dist/platform/drive/satisficing-propagation.js +196 -0
- package/dist/platform/drive/satisficing-propagation.js.map +1 -0
- package/dist/platform/drive/stall-detector.d.ts +143 -0
- package/dist/platform/drive/stall-detector.d.ts.map +1 -0
- package/dist/platform/drive/stall-detector.js +567 -0
- package/dist/platform/drive/stall-detector.js.map +1 -0
- package/dist/platform/drive/types/drive.d.ts +194 -0
- package/dist/platform/drive/types/drive.d.ts.map +1 -0
- package/dist/platform/drive/types/drive.js +77 -0
- package/dist/platform/drive/types/drive.js.map +1 -0
- package/dist/platform/drive/types/gap.d.ts +147 -0
- package/dist/platform/drive/types/gap.d.ts.map +1 -0
- package/dist/platform/drive/types/gap.js +41 -0
- package/dist/platform/drive/types/gap.js.map +1 -0
- package/dist/platform/drive/types/satisficing.d.ts +130 -0
- package/dist/platform/drive/types/satisficing.d.ts.map +1 -0
- package/dist/platform/drive/types/satisficing.js +54 -0
- package/dist/platform/drive/types/satisficing.js.map +1 -0
- package/dist/platform/drive/types/stall.d.ts +68 -0
- package/dist/platform/drive/types/stall.d.ts.map +1 -0
- package/dist/platform/drive/types/stall.js +28 -0
- package/dist/platform/drive/types/stall.js.map +1 -0
- package/dist/platform/knowledge/__tests__/decision-record.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/decision-record.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/decision-record.test.js +141 -0
- package/dist/platform/knowledge/__tests__/decision-record.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/drive-score-adapter.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/drive-score-adapter.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/drive-score-adapter.test.js +110 -0
- package/dist/platform/knowledge/__tests__/drive-score-adapter.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/embedding-client.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/embedding-client.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/embedding-client.test.js +77 -0
- package/dist/platform/knowledge/__tests__/embedding-client.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/hierarchical-memory-integration.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/hierarchical-memory-integration.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/hierarchical-memory-integration.test.js +352 -0
- package/dist/platform/knowledge/__tests__/hierarchical-memory-integration.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-graph.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/knowledge-graph.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-graph.test.js +330 -0
- package/dist/platform/knowledge/__tests__/knowledge-graph.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-manager-phase2.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/knowledge-manager-phase2.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-manager-phase2.test.js +344 -0
- package/dist/platform/knowledge/__tests__/knowledge-manager-phase2.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-manager.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/knowledge-manager.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-manager.test.js +564 -0
- package/dist/platform/knowledge/__tests__/knowledge-manager.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-apply.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-apply.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-apply.test.js +291 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-apply.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-auto-apply.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-auto-apply.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-auto-apply.test.js +293 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-auto-apply.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-detect.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-detect.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-detect.test.js +315 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-detect.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-evaluate.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-evaluate.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-evaluate.test.js +593 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-evaluate.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-incremental.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-incremental.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-incremental.test.js +402 -0
- package/dist/platform/knowledge/__tests__/knowledge-transfer-incremental.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-cross-goal.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/learning-cross-goal.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-cross-goal.test.js +377 -0
- package/dist/platform/knowledge/__tests__/learning-cross-goal.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-extraction.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-extraction.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-extraction.test.js +622 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-extraction.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-feedback.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-feedback.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-feedback.test.js +425 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-feedback.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-persistence.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-persistence.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-persistence.test.js +928 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-persistence.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-phase2.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-phase2.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-phase2.test.js +430 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-phase2.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-sharing.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-sharing.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-sharing.test.js +411 -0
- package/dist/platform/knowledge/__tests__/learning-pipeline-sharing.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/m16-integration.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/m16-integration.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/m16-integration.test.js +332 -0
- package/dist/platform/knowledge/__tests__/m16-integration.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/memory-lifecycle-phase2.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/memory-lifecycle-phase2.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/memory-lifecycle-phase2.test.js +562 -0
- package/dist/platform/knowledge/__tests__/memory-lifecycle-phase2.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/memory-lifecycle.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/memory-lifecycle.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/memory-lifecycle.test.js +432 -0
- package/dist/platform/knowledge/__tests__/memory-lifecycle.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/memory-selection.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/memory-selection.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/memory-selection.test.js +423 -0
- package/dist/platform/knowledge/__tests__/memory-selection.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/memory-tier.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/memory-tier.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/memory-tier.test.js +413 -0
- package/dist/platform/knowledge/__tests__/memory-tier.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/transfer-trust.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/transfer-trust.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/transfer-trust.test.js +137 -0
- package/dist/platform/knowledge/__tests__/transfer-trust.test.js.map +1 -0
- package/dist/platform/knowledge/__tests__/vector-index.test.d.ts +2 -0
- package/dist/platform/knowledge/__tests__/vector-index.test.d.ts.map +1 -0
- package/dist/platform/knowledge/__tests__/vector-index.test.js +152 -0
- package/dist/platform/knowledge/__tests__/vector-index.test.js.map +1 -0
- package/dist/platform/knowledge/drive-score-adapter.d.ts +39 -0
- package/dist/platform/knowledge/drive-score-adapter.d.ts.map +1 -0
- package/dist/platform/knowledge/drive-score-adapter.js +32 -0
- package/dist/platform/knowledge/drive-score-adapter.js.map +1 -0
- package/dist/platform/knowledge/embedding-client.d.ts.map +1 -0
- package/dist/platform/knowledge/embedding-client.js.map +1 -0
- package/dist/platform/knowledge/knowledge-decisions.d.ts +41 -0
- package/dist/platform/knowledge/knowledge-decisions.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-decisions.js +191 -0
- package/dist/platform/knowledge/knowledge-decisions.js.map +1 -0
- package/dist/platform/knowledge/knowledge-graph.d.ts +74 -0
- package/dist/platform/knowledge/knowledge-graph.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-graph.js +207 -0
- package/dist/platform/knowledge/knowledge-graph.js.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-query.d.ts +87 -0
- package/dist/platform/knowledge/knowledge-manager-query.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-query.js +287 -0
- package/dist/platform/knowledge/knowledge-manager-query.js.map +1 -0
- package/dist/platform/knowledge/knowledge-manager.d.ts +128 -0
- package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-manager.js +301 -0
- package/dist/platform/knowledge/knowledge-manager.js.map +1 -0
- package/dist/platform/knowledge/knowledge-revalidation.d.ts +27 -0
- package/dist/platform/knowledge/knowledge-revalidation.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-revalidation.js +130 -0
- package/dist/platform/knowledge/knowledge-revalidation.js.map +1 -0
- package/dist/platform/knowledge/knowledge-search.d.ts +42 -0
- package/dist/platform/knowledge/knowledge-search.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-search.js +96 -0
- package/dist/platform/knowledge/knowledge-search.js.map +1 -0
- package/dist/platform/knowledge/learning/learning-cross-goal.d.ts +19 -0
- package/dist/platform/knowledge/learning/learning-cross-goal.d.ts.map +1 -0
- package/dist/platform/knowledge/learning/learning-cross-goal.js +173 -0
- package/dist/platform/knowledge/learning/learning-cross-goal.js.map +1 -0
- package/dist/platform/knowledge/learning/learning-exports.d.ts +4 -0
- package/dist/platform/knowledge/learning/learning-exports.d.ts.map +1 -0
- package/dist/platform/knowledge/learning/learning-exports.js +3 -0
- package/dist/platform/knowledge/learning/learning-exports.js.map +1 -0
- package/dist/platform/knowledge/learning/learning-feedback.d.ts +26 -0
- package/dist/platform/knowledge/learning/learning-feedback.d.ts.map +1 -0
- package/dist/platform/knowledge/learning/learning-feedback.js +183 -0
- package/dist/platform/knowledge/learning/learning-feedback.js.map +1 -0
- package/dist/platform/knowledge/learning/learning-pipeline-prompts.d.ts +134 -0
- package/dist/platform/knowledge/learning/learning-pipeline-prompts.d.ts.map +1 -0
- package/dist/platform/knowledge/learning/learning-pipeline-prompts.js +103 -0
- package/dist/platform/knowledge/learning/learning-pipeline-prompts.js.map +1 -0
- package/dist/platform/knowledge/learning/learning-pipeline.d.ts +105 -0
- package/dist/platform/knowledge/learning/learning-pipeline.d.ts.map +1 -0
- package/dist/platform/knowledge/learning/learning-pipeline.js +465 -0
- package/dist/platform/knowledge/learning/learning-pipeline.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-compression.d.ts +44 -0
- package/dist/platform/knowledge/memory/memory-compression.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-compression.js +291 -0
- package/dist/platform/knowledge/memory/memory-compression.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-distill.d.ts +31 -0
- package/dist/platform/knowledge/memory/memory-distill.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-distill.js +170 -0
- package/dist/platform/knowledge/memory/memory-distill.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-exports.d.ts +7 -0
- package/dist/platform/knowledge/memory/memory-exports.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-exports.js +6 -0
- package/dist/platform/knowledge/memory/memory-exports.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-index.d.ts +11 -0
- package/dist/platform/knowledge/memory/memory-index.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-index.js +134 -0
- package/dist/platform/knowledge/memory/memory-index.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-lifecycle.d.ts +169 -0
- package/dist/platform/knowledge/memory/memory-lifecycle.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-lifecycle.js +402 -0
- package/dist/platform/knowledge/memory/memory-lifecycle.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-persistence.d.ts +30 -0
- package/dist/platform/knowledge/memory/memory-persistence.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-persistence.js +135 -0
- package/dist/platform/knowledge/memory/memory-persistence.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-query.d.ts +4 -0
- package/dist/platform/knowledge/memory/memory-query.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-query.js +64 -0
- package/dist/platform/knowledge/memory/memory-query.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-selection.d.ts +73 -0
- package/dist/platform/knowledge/memory/memory-selection.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-selection.js +328 -0
- package/dist/platform/knowledge/memory/memory-selection.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-stats.d.ts +7 -0
- package/dist/platform/knowledge/memory/memory-stats.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-stats.js +162 -0
- package/dist/platform/knowledge/memory/memory-stats.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-tier.d.ts +65 -0
- package/dist/platform/knowledge/memory/memory-tier.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-tier.js +243 -0
- package/dist/platform/knowledge/memory/memory-tier.js.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-apply.d.ts +48 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-apply.d.ts.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-apply.js +221 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-apply.js.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-detect.d.ts +28 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-detect.d.ts.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-detect.js +128 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-detect.js.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-evaluate.d.ts +22 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-evaluate.d.ts.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-evaluate.js +109 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-evaluate.js.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-meta.d.ts +38 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-meta.d.ts.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-meta.js +180 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-meta.js.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-prompts.d.ts +46 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-prompts.d.ts.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-prompts.js +75 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-prompts.js.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-types.d.ts +20 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-types.d.ts.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-types.js +25 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer-types.js.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer.d.ts +83 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer.d.ts.map +1 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer.js +140 -0
- package/dist/platform/knowledge/transfer/knowledge-transfer.js.map +1 -0
- package/dist/platform/knowledge/transfer/transfer-trust.d.ts +40 -0
- package/dist/platform/knowledge/transfer/transfer-trust.d.ts.map +1 -0
- package/dist/platform/knowledge/transfer/transfer-trust.js +137 -0
- package/dist/platform/knowledge/transfer/transfer-trust.js.map +1 -0
- package/dist/platform/knowledge/types/embedding.d.ts +59 -0
- package/dist/platform/knowledge/types/embedding.d.ts.map +1 -0
- package/dist/platform/knowledge/types/embedding.js +22 -0
- package/dist/platform/knowledge/types/embedding.js.map +1 -0
- package/dist/platform/knowledge/types/knowledge.d.ts +402 -0
- package/dist/platform/knowledge/types/knowledge.d.ts.map +1 -0
- package/dist/platform/knowledge/types/knowledge.js +116 -0
- package/dist/platform/knowledge/types/knowledge.js.map +1 -0
- package/dist/platform/knowledge/types/learning.d.ts +292 -0
- package/dist/platform/knowledge/types/learning.d.ts.map +1 -0
- package/dist/platform/knowledge/types/learning.js +117 -0
- package/dist/platform/knowledge/types/learning.js.map +1 -0
- package/dist/platform/knowledge/types/memory-lifecycle.d.ts +615 -0
- package/dist/platform/knowledge/types/memory-lifecycle.d.ts.map +1 -0
- package/dist/platform/knowledge/types/memory-lifecycle.js +159 -0
- package/dist/platform/knowledge/types/memory-lifecycle.js.map +1 -0
- package/dist/platform/knowledge/vector-index.d.ts +65 -0
- package/dist/platform/knowledge/vector-index.d.ts.map +1 -0
- package/dist/platform/knowledge/vector-index.js +158 -0
- package/dist/platform/knowledge/vector-index.js.map +1 -0
- package/dist/platform/observation/__tests__/capability-dependency.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/capability-dependency.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/capability-dependency.test.js +195 -0
- package/dist/platform/observation/__tests__/capability-dependency.test.js.map +1 -0
- package/dist/platform/observation/__tests__/capability-detector-detect.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/capability-detector-detect.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/capability-detector-detect.test.js +357 -0
- package/dist/platform/observation/__tests__/capability-detector-detect.test.js.map +1 -0
- package/dist/platform/observation/__tests__/capability-detector-escalate.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/capability-detector-escalate.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/capability-detector-escalate.test.js +283 -0
- package/dist/platform/observation/__tests__/capability-detector-escalate.test.js.map +1 -0
- package/dist/platform/observation/__tests__/capability-detector-goal.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/capability-detector-goal.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/capability-detector-goal.test.js +288 -0
- package/dist/platform/observation/__tests__/capability-detector-goal.test.js.map +1 -0
- package/dist/platform/observation/__tests__/capability-detector-verify.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/capability-detector-verify.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/capability-detector-verify.test.js +311 -0
- package/dist/platform/observation/__tests__/capability-detector-verify.test.js.map +1 -0
- package/dist/platform/observation/__tests__/context-provider.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/context-provider.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/context-provider.test.js +318 -0
- package/dist/platform/observation/__tests__/context-provider.test.js.map +1 -0
- package/dist/platform/observation/__tests__/data-source-adapter.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/data-source-adapter.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/data-source-adapter.test.js +382 -0
- package/dist/platform/observation/__tests__/data-source-adapter.test.js.map +1 -0
- package/dist/platform/observation/__tests__/data-source-hotplug.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/data-source-hotplug.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/data-source-hotplug.test.js +160 -0
- package/dist/platform/observation/__tests__/data-source-hotplug.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-crossvalidation-override.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-crossvalidation-override.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-crossvalidation-override.test.js +339 -0
- package/dist/platform/observation/__tests__/observation-crossvalidation-override.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-context.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-engine-context.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-context.test.js +258 -0
- package/dist/platform/observation/__tests__/observation-engine-context.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-crossvalidation.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-engine-crossvalidation.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-crossvalidation.test.js +222 -0
- package/dist/platform/observation/__tests__/observation-engine-crossvalidation.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-dedup.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-engine-dedup.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-dedup.test.js +88 -0
- package/dist/platform/observation/__tests__/observation-engine-dedup.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-llm.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-engine-llm.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-llm.test.js +474 -0
- package/dist/platform/observation/__tests__/observation-engine-llm.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-prompt.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-engine-prompt.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine-prompt.test.js +211 -0
- package/dist/platform/observation/__tests__/observation-engine-prompt.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-engine.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-engine.test.js +806 -0
- package/dist/platform/observation/__tests__/observation-engine.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-llm-guard.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-llm-guard.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-llm-guard.test.js +353 -0
- package/dist/platform/observation/__tests__/observation-llm-guard.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-llm.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-llm.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-llm.test.js +29 -0
- package/dist/platform/observation/__tests__/observation-llm.test.js.map +1 -0
- package/dist/platform/observation/__tests__/observation-score-clamp.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/observation-score-clamp.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/observation-score-clamp.test.js +165 -0
- package/dist/platform/observation/__tests__/observation-score-clamp.test.js.map +1 -0
- package/dist/platform/observation/__tests__/shell-datasource-auto.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/shell-datasource-auto.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/shell-datasource-auto.test.js +217 -0
- package/dist/platform/observation/__tests__/shell-datasource-auto.test.js.map +1 -0
- package/dist/platform/observation/__tests__/workspace-context.test.d.ts +2 -0
- package/dist/platform/observation/__tests__/workspace-context.test.d.ts.map +1 -0
- package/dist/platform/observation/__tests__/workspace-context.test.js +291 -0
- package/dist/platform/observation/__tests__/workspace-context.test.js.map +1 -0
- package/dist/platform/observation/capability-dependencies.d.ts +45 -0
- package/dist/platform/observation/capability-dependencies.d.ts.map +1 -0
- package/dist/platform/observation/capability-dependencies.js +208 -0
- package/dist/platform/observation/capability-dependencies.js.map +1 -0
- package/dist/platform/observation/capability-detector.d.ts +72 -0
- package/dist/platform/observation/capability-detector.d.ts.map +1 -0
- package/dist/platform/observation/capability-detector.js +373 -0
- package/dist/platform/observation/capability-detector.js.map +1 -0
- package/dist/platform/observation/capability-registry.d.ts +48 -0
- package/dist/platform/observation/capability-registry.d.ts.map +1 -0
- package/dist/platform/observation/capability-registry.js +135 -0
- package/dist/platform/observation/capability-registry.js.map +1 -0
- package/dist/platform/observation/context-provider.d.ts +63 -0
- package/dist/platform/observation/context-provider.d.ts.map +1 -0
- package/dist/platform/observation/context-provider.js +400 -0
- package/dist/platform/observation/context-provider.js.map +1 -0
- package/dist/platform/observation/data-source-adapter.d.ts +42 -0
- package/dist/platform/observation/data-source-adapter.d.ts.map +1 -0
- package/dist/platform/observation/data-source-adapter.js +227 -0
- package/dist/platform/observation/data-source-adapter.js.map +1 -0
- package/dist/platform/observation/dimension-pre-checker.d.ts +26 -0
- package/dist/platform/observation/dimension-pre-checker.d.ts.map +1 -0
- package/dist/platform/observation/dimension-pre-checker.js +130 -0
- package/dist/platform/observation/dimension-pre-checker.js.map +1 -0
- package/dist/platform/observation/observation-apply.d.ts +18 -0
- package/dist/platform/observation/observation-apply.d.ts.map +1 -0
- package/dist/platform/observation/observation-apply.js +184 -0
- package/dist/platform/observation/observation-apply.js.map +1 -0
- package/dist/platform/observation/observation-datasource.d.ts +21 -0
- package/dist/platform/observation/observation-datasource.d.ts.map +1 -0
- package/dist/platform/observation/observation-datasource.js +103 -0
- package/dist/platform/observation/observation-datasource.js.map +1 -0
- package/dist/platform/observation/observation-engine.d.ts +171 -0
- package/dist/platform/observation/observation-engine.d.ts.map +1 -0
- package/dist/platform/observation/observation-engine.js +539 -0
- package/dist/platform/observation/observation-engine.js.map +1 -0
- package/dist/platform/observation/observation-helpers.d.ts +116 -0
- package/dist/platform/observation/observation-helpers.d.ts.map +1 -0
- package/dist/platform/observation/observation-helpers.js +173 -0
- package/dist/platform/observation/observation-helpers.js.map +1 -0
- package/dist/platform/observation/observation-llm.d.ts +64 -0
- package/dist/platform/observation/observation-llm.d.ts.map +1 -0
- package/dist/platform/observation/observation-llm.js +430 -0
- package/dist/platform/observation/observation-llm.js.map +1 -0
- package/dist/platform/observation/observation-task.d.ts +29 -0
- package/dist/platform/observation/observation-task.d.ts.map +1 -0
- package/dist/platform/observation/observation-task.js +51 -0
- package/dist/platform/observation/observation-task.js.map +1 -0
- package/dist/platform/observation/observation-tools.d.ts +22 -0
- package/dist/platform/observation/observation-tools.d.ts.map +1 -0
- package/dist/platform/observation/observation-tools.js +61 -0
- package/dist/platform/observation/observation-tools.js.map +1 -0
- package/dist/platform/observation/types/capability.d.ts +292 -0
- package/dist/platform/observation/types/capability.d.ts.map +1 -0
- package/dist/platform/observation/types/capability.js +53 -0
- package/dist/platform/observation/types/capability.js.map +1 -0
- package/dist/platform/observation/types/data-source.d.ts +311 -0
- package/dist/platform/observation/types/data-source.d.ts.map +1 -0
- package/dist/platform/observation/types/data-source.js +53 -0
- package/dist/platform/observation/types/data-source.js.map +1 -0
- package/dist/platform/observation/workspace-context.d.ts +8 -0
- package/dist/platform/observation/workspace-context.d.ts.map +1 -0
- package/dist/platform/observation/workspace-context.js +308 -0
- package/dist/platform/observation/workspace-context.js.map +1 -0
- package/dist/platform/traits/__tests__/character-config.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/character-config.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/character-config.test.js +300 -0
- package/dist/platform/traits/__tests__/character-config.test.js.map +1 -0
- package/dist/platform/traits/__tests__/character-separation.test.d.ts +10 -0
- package/dist/platform/traits/__tests__/character-separation.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/character-separation.test.js +357 -0
- package/dist/platform/traits/__tests__/character-separation.test.js.map +1 -0
- package/dist/platform/traits/__tests__/curiosity-engine-budget.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/curiosity-engine-budget.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/curiosity-engine-budget.test.js +465 -0
- package/dist/platform/traits/__tests__/curiosity-engine-budget.test.js.map +1 -0
- package/dist/platform/traits/__tests__/curiosity-engine-constructor.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/curiosity-engine-constructor.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/curiosity-engine-constructor.test.js +592 -0
- package/dist/platform/traits/__tests__/curiosity-engine-constructor.test.js.map +1 -0
- package/dist/platform/traits/__tests__/curiosity-engine-lifecycle.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/curiosity-engine-lifecycle.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/curiosity-engine-lifecycle.test.js +399 -0
- package/dist/platform/traits/__tests__/curiosity-engine-lifecycle.test.js.map +1 -0
- package/dist/platform/traits/__tests__/curiosity-engine-proposals.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/curiosity-engine-proposals.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/curiosity-engine-proposals.test.js +438 -0
- package/dist/platform/traits/__tests__/curiosity-engine-proposals.test.js.map +1 -0
- package/dist/platform/traits/__tests__/ethics-gate-core.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/ethics-gate-core.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/ethics-gate-core.test.js +335 -0
- package/dist/platform/traits/__tests__/ethics-gate-core.test.js.map +1 -0
- package/dist/platform/traits/__tests__/ethics-gate-layer1.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/ethics-gate-layer1.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/ethics-gate-layer1.test.js +660 -0
- package/dist/platform/traits/__tests__/ethics-gate-layer1.test.js.map +1 -0
- package/dist/platform/traits/__tests__/guardrail-integration.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/guardrail-integration.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/guardrail-integration.test.js +230 -0
- package/dist/platform/traits/__tests__/guardrail-integration.test.js.map +1 -0
- package/dist/platform/traits/__tests__/guardrail-runner.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/guardrail-runner.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/guardrail-runner.test.js +295 -0
- package/dist/platform/traits/__tests__/guardrail-runner.test.js.map +1 -0
- package/dist/platform/traits/__tests__/trust-manager.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/trust-manager.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/trust-manager.test.js +437 -0
- package/dist/platform/traits/__tests__/trust-manager.test.js.map +1 -0
- package/dist/platform/traits/__tests__/trust-rate-limit.test.d.ts +2 -0
- package/dist/platform/traits/__tests__/trust-rate-limit.test.d.ts.map +1 -0
- package/dist/platform/traits/__tests__/trust-rate-limit.test.js +99 -0
- package/dist/platform/traits/__tests__/trust-rate-limit.test.js.map +1 -0
- package/dist/platform/traits/character-config.d.ts +34 -0
- package/dist/platform/traits/character-config.d.ts.map +1 -0
- package/dist/platform/traits/character-config.js +53 -0
- package/dist/platform/traits/character-config.js.map +1 -0
- package/dist/platform/traits/curiosity-engine.d.ts +177 -0
- package/dist/platform/traits/curiosity-engine.d.ts.map +1 -0
- package/dist/platform/traits/curiosity-engine.js +523 -0
- package/dist/platform/traits/curiosity-engine.js.map +1 -0
- package/dist/platform/traits/curiosity-proposals.d.ts +38 -0
- package/dist/platform/traits/curiosity-proposals.d.ts.map +1 -0
- package/dist/platform/traits/curiosity-proposals.js +259 -0
- package/dist/platform/traits/curiosity-proposals.js.map +1 -0
- package/dist/platform/traits/curiosity-transfer.d.ts +27 -0
- package/dist/platform/traits/curiosity-transfer.d.ts.map +1 -0
- package/dist/platform/traits/curiosity-transfer.js +50 -0
- package/dist/platform/traits/curiosity-transfer.js.map +1 -0
- package/dist/platform/traits/ethics-gate.d.ts +77 -0
- package/dist/platform/traits/ethics-gate.d.ts.map +1 -0
- package/dist/platform/traits/ethics-gate.js +245 -0
- package/dist/platform/traits/ethics-gate.js.map +1 -0
- package/dist/platform/traits/ethics-rules.d.ts +10 -0
- package/dist/platform/traits/ethics-rules.d.ts.map +1 -0
- package/dist/platform/traits/ethics-rules.js +332 -0
- package/dist/platform/traits/ethics-rules.js.map +1 -0
- package/dist/platform/traits/guardrail-runner.d.ts +29 -0
- package/dist/platform/traits/guardrail-runner.d.ts.map +1 -0
- package/dist/platform/traits/guardrail-runner.js.map +1 -0
- package/dist/platform/traits/trust-manager.d.ts +90 -0
- package/dist/platform/traits/trust-manager.d.ts.map +1 -0
- package/dist/platform/traits/trust-manager.js +276 -0
- package/dist/platform/traits/trust-manager.js.map +1 -0
- package/dist/platform/traits/types/character.d.ts +20 -0
- package/dist/platform/traits/types/character.d.ts.map +1 -0
- package/dist/platform/traits/types/character.js +10 -0
- package/dist/platform/traits/types/character.js.map +1 -0
- package/dist/platform/traits/types/curiosity.d.ts +443 -0
- package/dist/platform/traits/types/curiosity.d.ts.map +1 -0
- package/dist/platform/traits/types/curiosity.js +86 -0
- package/dist/platform/traits/types/curiosity.js.map +1 -0
- package/dist/platform/traits/types/ethics.d.ts +169 -0
- package/dist/platform/traits/types/ethics.d.ts.map +1 -0
- package/dist/platform/traits/types/ethics.js +47 -0
- package/dist/platform/traits/types/ethics.js.map +1 -0
- package/dist/platform/traits/types/guardrail.d.ts +104 -0
- package/dist/platform/traits/types/guardrail.d.ts.map +1 -0
- package/dist/platform/traits/types/guardrail.js +34 -0
- package/dist/platform/traits/types/guardrail.js.map +1 -0
- package/dist/platform/traits/types/trust.d.ts +126 -0
- package/dist/platform/traits/types/trust.d.ts.map +1 -0
- package/dist/platform/traits/types/trust.js +38 -0
- package/dist/platform/traits/types/trust.js.map +1 -0
- package/dist/prompt/__tests__/context-assembler.test.d.ts +2 -0
- package/dist/prompt/__tests__/context-assembler.test.d.ts.map +1 -0
- package/dist/prompt/__tests__/context-assembler.test.js +383 -0
- package/dist/prompt/__tests__/context-assembler.test.js.map +1 -0
- package/dist/prompt/__tests__/formatters.test.d.ts +2 -0
- package/dist/prompt/__tests__/formatters.test.d.ts.map +1 -0
- package/dist/prompt/__tests__/formatters.test.js +236 -0
- package/dist/prompt/__tests__/formatters.test.js.map +1 -0
- package/dist/prompt/__tests__/gateway-integration.test.d.ts +7 -0
- package/dist/prompt/__tests__/gateway-integration.test.d.ts.map +1 -0
- package/dist/prompt/__tests__/gateway-integration.test.js +229 -0
- package/dist/prompt/__tests__/gateway-integration.test.js.map +1 -0
- package/dist/prompt/__tests__/gateway.test.d.ts +2 -0
- package/dist/prompt/__tests__/gateway.test.d.ts.map +1 -0
- package/dist/prompt/__tests__/gateway.test.js +179 -0
- package/dist/prompt/__tests__/gateway.test.js.map +1 -0
- package/dist/prompt/__tests__/slot-definitions.test.d.ts +2 -0
- package/dist/prompt/__tests__/slot-definitions.test.d.ts.map +1 -0
- package/dist/prompt/__tests__/slot-definitions.test.js +171 -0
- package/dist/prompt/__tests__/slot-definitions.test.js.map +1 -0
- package/dist/prompt/context-assembler.d.ts +1 -1
- package/dist/prompt/context-assembler.d.ts.map +1 -1
- package/dist/prompt/context-assembler.js +14 -4
- package/dist/prompt/context-assembler.js.map +1 -1
- package/dist/prompt/formatters.d.ts +3 -3
- package/dist/prompt/formatters.d.ts.map +1 -1
- package/dist/prompt/formatters.js +2 -2
- package/dist/prompt/formatters.js.map +1 -1
- package/dist/prompt/gateway.d.ts +1 -1
- package/dist/prompt/gateway.d.ts.map +1 -1
- package/dist/prompt/purposes/capability.d.ts +2 -2
- package/dist/prompt/purposes/ethics.d.ts +4 -4
- package/dist/prompt/purposes/goal-decomposition.d.ts +4 -4
- package/dist/prompt/purposes/knowledge.d.ts +4 -4
- package/dist/prompt/purposes/strategy-template.d.ts +4 -4
- package/dist/prompt/purposes/strategy.d.ts +3 -78
- package/dist/prompt/purposes/strategy.d.ts.map +1 -1
- package/dist/prompt/purposes/strategy.js +2 -18
- package/dist/prompt/purposes/strategy.js.map +1 -1
- package/dist/prompt/purposes/verification.d.ts +2 -2
- package/dist/reflection/__tests__/dream-consolidation.test.d.ts +2 -0
- package/dist/reflection/__tests__/dream-consolidation.test.d.ts.map +1 -0
- package/dist/reflection/__tests__/dream-consolidation.test.js +127 -0
- package/dist/reflection/__tests__/dream-consolidation.test.js.map +1 -0
- package/dist/reflection/__tests__/evening-catchup.test.d.ts +2 -0
- package/dist/reflection/__tests__/evening-catchup.test.d.ts.map +1 -0
- package/dist/reflection/__tests__/evening-catchup.test.js +148 -0
- package/dist/reflection/__tests__/evening-catchup.test.js.map +1 -0
- package/dist/reflection/__tests__/morning-planning.test.d.ts +2 -0
- package/dist/reflection/__tests__/morning-planning.test.d.ts.map +1 -0
- package/dist/reflection/__tests__/morning-planning.test.js +150 -0
- package/dist/reflection/__tests__/morning-planning.test.js.map +1 -0
- package/dist/reflection/__tests__/weekly-review.test.d.ts +2 -0
- package/dist/reflection/__tests__/weekly-review.test.d.ts.map +1 -0
- package/dist/reflection/__tests__/weekly-review.test.js +175 -0
- package/dist/reflection/__tests__/weekly-review.test.js.map +1 -0
- package/dist/reflection/dream-consolidation.d.ts +3 -3
- package/dist/reflection/dream-consolidation.d.ts.map +1 -1
- package/dist/reflection/dream-consolidation.js +1 -1
- package/dist/reflection/dream-consolidation.js.map +1 -1
- package/dist/reflection/evening-catchup.d.ts +2 -2
- package/dist/reflection/evening-catchup.d.ts.map +1 -1
- package/dist/reflection/evening-catchup.js +1 -1
- package/dist/reflection/evening-catchup.js.map +1 -1
- package/dist/reflection/morning-planning.d.ts +2 -2
- package/dist/reflection/morning-planning.d.ts.map +1 -1
- package/dist/reflection/morning-planning.js +1 -1
- package/dist/reflection/morning-planning.js.map +1 -1
- package/dist/reflection/types/reflection.d.ts +34 -0
- package/dist/reflection/types/reflection.d.ts.map +1 -0
- package/dist/reflection/types/reflection.js +14 -0
- package/dist/reflection/types/reflection.js.map +1 -0
- package/dist/reflection/types.d.ts +4 -4
- package/dist/reflection/weekly-review.d.ts +2 -2
- package/dist/reflection/weekly-review.d.ts.map +1 -1
- package/dist/reflection/weekly-review.js +1 -1
- package/dist/reflection/weekly-review.js.map +1 -1
- package/dist/reporting/__tests__/reporting-engine.test.d.ts +2 -0
- package/dist/reporting/__tests__/reporting-engine.test.d.ts.map +1 -0
- package/dist/reporting/__tests__/reporting-engine.test.js +760 -0
- package/dist/reporting/__tests__/reporting-engine.test.js.map +1 -0
- package/dist/reporting/report-formatters 2.d.ts +12 -0
- package/dist/reporting/report-formatters 2.d.ts.map +1 -0
- package/dist/reporting/report-formatters 2.js +166 -0
- package/dist/reporting/report-formatters 2.js.map +1 -0
- package/dist/reporting/report-formatters.d.ts +12 -0
- package/dist/reporting/report-formatters.d.ts.map +1 -0
- package/dist/reporting/report-formatters.js +166 -0
- package/dist/reporting/report-formatters.js.map +1 -0
- package/dist/reporting/reporting-engine.d.ts +59 -0
- package/dist/reporting/reporting-engine.d.ts.map +1 -0
- package/dist/reporting/reporting-engine.js +435 -0
- package/dist/reporting/reporting-engine.js.map +1 -0
- package/dist/reporting/types/report.d.ts +112 -0
- package/dist/reporting/types/report.d.ts.map +1 -0
- package/dist/reporting/types/report.js +34 -0
- package/dist/reporting/types/report.js.map +1 -0
- package/dist/runtime/__tests__/cron-scheduler.test.d.ts +2 -0
- package/dist/runtime/__tests__/cron-scheduler.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/cron-scheduler.test.js +284 -0
- package/dist/runtime/__tests__/cron-scheduler.test.js.map +1 -0
- package/dist/runtime/__tests__/daemon-runner-shutdown.test.d.ts +2 -0
- package/dist/runtime/__tests__/daemon-runner-shutdown.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/daemon-runner-shutdown.test.js +419 -0
- package/dist/runtime/__tests__/daemon-runner-shutdown.test.js.map +1 -0
- package/dist/runtime/__tests__/daemon-runner.test.d.ts +2 -0
- package/dist/runtime/__tests__/daemon-runner.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/daemon-runner.test.js +1194 -0
- package/dist/runtime/__tests__/daemon-runner.test.js.map +1 -0
- package/dist/runtime/__tests__/event-file-watcher.test.d.ts +12 -0
- package/dist/runtime/__tests__/event-file-watcher.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/event-file-watcher.test.js +251 -0
- package/dist/runtime/__tests__/event-file-watcher.test.js.map +1 -0
- package/dist/runtime/__tests__/event-server.test.d.ts +2 -0
- package/dist/runtime/__tests__/event-server.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/event-server.test.js +282 -0
- package/dist/runtime/__tests__/event-server.test.js.map +1 -0
- package/dist/runtime/__tests__/hook-manager.test.d.ts +2 -0
- package/dist/runtime/__tests__/hook-manager.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/hook-manager.test.js +229 -0
- package/dist/runtime/__tests__/hook-manager.test.js.map +1 -0
- package/dist/runtime/__tests__/logger.test.d.ts +2 -0
- package/dist/runtime/__tests__/logger.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/logger.test.js +416 -0
- package/dist/runtime/__tests__/logger.test.js.map +1 -0
- package/dist/runtime/__tests__/notification-batcher.test.d.ts +2 -0
- package/dist/runtime/__tests__/notification-batcher.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/notification-batcher.test.js +210 -0
- package/dist/runtime/__tests__/notification-batcher.test.js.map +1 -0
- package/dist/runtime/__tests__/notification-dispatcher-plugin.test.d.ts +2 -0
- package/dist/runtime/__tests__/notification-dispatcher-plugin.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/notification-dispatcher-plugin.test.js +125 -0
- package/dist/runtime/__tests__/notification-dispatcher-plugin.test.js.map +1 -0
- package/dist/runtime/__tests__/notification-dispatcher.test.d.ts +2 -0
- package/dist/runtime/__tests__/notification-dispatcher.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/notification-dispatcher.test.js +816 -0
- package/dist/runtime/__tests__/notification-dispatcher.test.js.map +1 -0
- package/dist/runtime/__tests__/notifier-registry.test.d.ts +2 -0
- package/dist/runtime/__tests__/notifier-registry.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/notifier-registry.test.js +129 -0
- package/dist/runtime/__tests__/notifier-registry.test.js.map +1 -0
- package/dist/runtime/__tests__/pid-manager.test.d.ts +2 -0
- package/dist/runtime/__tests__/pid-manager.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/pid-manager.test.js +180 -0
- package/dist/runtime/__tests__/pid-manager.test.js.map +1 -0
- package/dist/runtime/__tests__/plugin-loader.test.d.ts +2 -0
- package/dist/runtime/__tests__/plugin-loader.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/plugin-loader.test.js +387 -0
- package/dist/runtime/__tests__/plugin-loader.test.js.map +1 -0
- package/dist/runtime/__tests__/trigger-api.test.d.ts +2 -0
- package/dist/runtime/__tests__/trigger-api.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/trigger-api.test.js +247 -0
- package/dist/runtime/__tests__/trigger-api.test.js.map +1 -0
- package/dist/runtime/__tests__/trigger-mapper.test.d.ts +2 -0
- package/dist/runtime/__tests__/trigger-mapper.test.d.ts.map +1 -0
- package/dist/runtime/__tests__/trigger-mapper.test.js +119 -0
- package/dist/runtime/__tests__/trigger-mapper.test.js.map +1 -0
- package/dist/runtime/channels/email-channel.d.ts +2 -2
- package/dist/runtime/channels/email-channel.d.ts.map +1 -1
- package/dist/runtime/channels/slack-channel.d.ts +2 -2
- package/dist/runtime/channels/slack-channel.d.ts.map +1 -1
- package/dist/runtime/channels/webhook-channel.d.ts +2 -2
- package/dist/runtime/channels/webhook-channel.d.ts.map +1 -1
- package/dist/runtime/cron-scheduler.d.ts +1 -1
- package/dist/runtime/cron-scheduler.d.ts.map +1 -1
- package/dist/runtime/cron-scheduler.js +2 -2
- package/dist/runtime/cron-scheduler.js.map +1 -1
- package/dist/runtime/daemon-health 2.d.ts +31 -0
- package/dist/runtime/daemon-health 2.d.ts.map +1 -0
- package/dist/runtime/daemon-health 2.js +113 -0
- package/dist/runtime/daemon-health 2.js.map +1 -0
- package/dist/runtime/daemon-health.d.ts +31 -0
- package/dist/runtime/daemon-health.d.ts.map +1 -0
- package/dist/runtime/daemon-health.js +113 -0
- package/dist/runtime/daemon-health.js.map +1 -0
- package/dist/runtime/daemon-runner.d.ts +14 -19
- package/dist/runtime/daemon-runner.d.ts.map +1 -1
- package/dist/runtime/daemon-runner.js +22 -118
- package/dist/runtime/daemon-runner.js.map +1 -1
- package/dist/runtime/daemon-signals 2.d.ts +17 -0
- package/dist/runtime/daemon-signals 2.d.ts.map +1 -0
- package/dist/runtime/daemon-signals 2.js +31 -0
- package/dist/runtime/daemon-signals 2.js.map +1 -0
- package/dist/runtime/daemon-signals.d.ts +17 -0
- package/dist/runtime/daemon-signals.d.ts.map +1 -0
- package/dist/runtime/daemon-signals.js +31 -0
- package/dist/runtime/daemon-signals.js.map +1 -0
- package/dist/runtime/event-server.d.ts +3 -2
- package/dist/runtime/event-server.d.ts.map +1 -1
- package/dist/runtime/event-server.js +18 -6
- package/dist/runtime/event-server.js.map +1 -1
- package/dist/runtime/hook-manager.d.ts +1 -1
- package/dist/runtime/hook-manager.d.ts.map +1 -1
- package/dist/runtime/hook-manager.js +1 -1
- package/dist/runtime/hook-manager.js.map +1 -1
- package/dist/runtime/notification-batcher.d.ts +1 -1
- package/dist/runtime/notification-batcher.d.ts.map +1 -1
- package/dist/runtime/notification-dispatcher.d.ts +2 -2
- package/dist/runtime/notification-dispatcher.d.ts.map +1 -1
- package/dist/runtime/notification-dispatcher.js +1 -1
- package/dist/runtime/notification-dispatcher.js.map +1 -1
- package/dist/runtime/notifier-registry.d.ts +1 -1
- package/dist/runtime/notifier-registry.d.ts.map +1 -1
- package/dist/runtime/pid-manager.js +1 -1
- package/dist/runtime/pid-manager.js.map +1 -1
- package/dist/runtime/plugin-loader.d.ts +3 -3
- package/dist/runtime/plugin-loader.d.ts.map +1 -1
- package/dist/runtime/plugin-loader.js +4 -4
- package/dist/runtime/plugin-loader.js.map +1 -1
- package/dist/runtime/trigger-mapper.d.ts +2 -2
- package/dist/runtime/trigger-mapper.d.ts.map +1 -1
- package/dist/runtime/trigger-mapper.js +1 -1
- package/dist/runtime/trigger-mapper.js.map +1 -1
- package/dist/runtime/types/cron.d.ts +59 -0
- package/dist/runtime/types/cron.d.ts.map +1 -0
- package/dist/runtime/types/cron.js +13 -0
- package/dist/runtime/types/cron.js.map +1 -0
- package/dist/runtime/types/daemon.d.ts +158 -0
- package/dist/runtime/types/daemon.d.ts.map +1 -0
- package/dist/runtime/types/daemon.js +48 -0
- package/dist/runtime/types/daemon.js.map +1 -0
- package/dist/runtime/types/hook.d.ts +142 -0
- package/dist/runtime/types/hook.d.ts.map +1 -0
- package/dist/runtime/types/hook.js +43 -0
- package/dist/runtime/types/hook.js.map +1 -0
- package/dist/runtime/types/notification.d.ts +916 -0
- package/dist/runtime/types/notification.d.ts.map +1 -0
- package/dist/runtime/types/notification.js +82 -0
- package/dist/runtime/types/notification.js.map +1 -0
- package/dist/runtime/types/plugin.d.ts +335 -0
- package/dist/runtime/types/plugin.d.ts.map +1 -0
- package/dist/runtime/types/plugin.js +61 -0
- package/dist/runtime/types/plugin.js.map +1 -0
- package/dist/runtime/types/trigger.d.ts +77 -0
- package/dist/runtime/types/trigger.d.ts.map +1 -0
- package/dist/runtime/types/trigger.js +21 -0
- package/dist/runtime/types/trigger.js.map +1 -0
- package/dist/state/state-manager.d.ts +106 -0
- package/dist/state/state-manager.d.ts.map +1 -0
- package/dist/state/state-manager.js +518 -0
- package/dist/state/state-manager.js.map +1 -0
- package/dist/state/state-persistence 2.d.ts +12 -0
- package/dist/state/state-persistence 2.d.ts.map +1 -0
- package/dist/state/state-persistence 2.js +58 -0
- package/dist/state/state-persistence 2.js.map +1 -0
- package/dist/state/state-persistence.d.ts +12 -0
- package/dist/state/state-persistence.d.ts.map +1 -0
- package/dist/state/state-persistence.js +58 -0
- package/dist/state/state-persistence.js.map +1 -0
- package/dist/strategy/__tests__/cross-goal-portfolio-phase2.test.d.ts +2 -0
- package/dist/strategy/__tests__/cross-goal-portfolio-phase2.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/cross-goal-portfolio-phase2.test.js +472 -0
- package/dist/strategy/__tests__/cross-goal-portfolio-phase2.test.js.map +1 -0
- package/dist/strategy/__tests__/cross-goal-portfolio.test.d.ts +2 -0
- package/dist/strategy/__tests__/cross-goal-portfolio.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/cross-goal-portfolio.test.js +636 -0
- package/dist/strategy/__tests__/cross-goal-portfolio.test.js.map +1 -0
- package/dist/strategy/__tests__/portfolio-manager.test.d.ts +2 -0
- package/dist/strategy/__tests__/portfolio-manager.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/portfolio-manager.test.js +730 -0
- package/dist/strategy/__tests__/portfolio-manager.test.js.map +1 -0
- package/dist/strategy/__tests__/strategy-auto-template.test.d.ts +2 -0
- package/dist/strategy/__tests__/strategy-auto-template.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/strategy-auto-template.test.js +164 -0
- package/dist/strategy/__tests__/strategy-auto-template.test.js.map +1 -0
- package/dist/strategy/__tests__/strategy-helpers-unwrap.test.d.ts +2 -0
- package/dist/strategy/__tests__/strategy-helpers-unwrap.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/strategy-helpers-unwrap.test.js +53 -0
- package/dist/strategy/__tests__/strategy-helpers-unwrap.test.js.map +1 -0
- package/dist/strategy/__tests__/strategy-manager-core.test.d.ts +2 -0
- package/dist/strategy/__tests__/strategy-manager-core.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/strategy-manager-core.test.js +342 -0
- package/dist/strategy/__tests__/strategy-manager-core.test.js.map +1 -0
- package/dist/strategy/__tests__/strategy-manager-phase2.test.d.ts +2 -0
- package/dist/strategy/__tests__/strategy-manager-phase2.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/strategy-manager-phase2.test.js +602 -0
- package/dist/strategy/__tests__/strategy-manager-phase2.test.js.map +1 -0
- package/dist/strategy/__tests__/strategy-manager-stall.test.d.ts +2 -0
- package/dist/strategy/__tests__/strategy-manager-stall.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/strategy-manager-stall.test.js +357 -0
- package/dist/strategy/__tests__/strategy-manager-stall.test.js.map +1 -0
- package/dist/strategy/__tests__/strategy-template-embedding.test.d.ts +2 -0
- package/dist/strategy/__tests__/strategy-template-embedding.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/strategy-template-embedding.test.js +310 -0
- package/dist/strategy/__tests__/strategy-template-embedding.test.js.map +1 -0
- package/dist/strategy/__tests__/strategy-template-registry.test.d.ts +2 -0
- package/dist/strategy/__tests__/strategy-template-registry.test.d.ts.map +1 -0
- package/dist/strategy/__tests__/strategy-template-registry.test.js +402 -0
- package/dist/strategy/__tests__/strategy-template-registry.test.js.map +1 -0
- package/dist/strategy/cross-goal-portfolio.d.ts +1 -1
- package/dist/strategy/cross-goal-portfolio.d.ts.map +1 -1
- package/dist/strategy/portfolio-allocation.d.ts +33 -0
- package/dist/strategy/portfolio-allocation.d.ts.map +1 -1
- package/dist/strategy/portfolio-allocation.js +49 -0
- package/dist/strategy/portfolio-allocation.js.map +1 -1
- package/dist/strategy/portfolio-manager.d.ts +147 -0
- package/dist/strategy/portfolio-manager.d.ts.map +1 -0
- package/dist/strategy/portfolio-manager.js +340 -0
- package/dist/strategy/portfolio-manager.js.map +1 -0
- package/dist/strategy/portfolio-rebalance.d.ts +75 -0
- package/dist/strategy/portfolio-rebalance.d.ts.map +1 -0
- package/dist/strategy/portfolio-rebalance.js +254 -0
- package/dist/strategy/portfolio-rebalance.js.map +1 -0
- package/dist/strategy/strategy-helpers.d.ts +8 -8
- package/dist/strategy/strategy-helpers.d.ts.map +1 -1
- package/dist/strategy/strategy-helpers.js +35 -5
- package/dist/strategy/strategy-helpers.js.map +1 -1
- package/dist/strategy/strategy-manager-base.d.ts +2 -2
- package/dist/strategy/strategy-manager-base.d.ts.map +1 -1
- package/dist/strategy/strategy-template-registry.d.ts +1 -1
- package/dist/strategy/strategy-template-registry.d.ts.map +1 -1
- package/dist/strategy/strategy-template-registry.js +1 -1
- package/dist/strategy/strategy-template-registry.js.map +1 -1
- package/dist/strategy/types/cross-portfolio.d.ts +378 -0
- package/dist/strategy/types/cross-portfolio.d.ts.map +1 -0
- package/dist/strategy/types/cross-portfolio.js +155 -0
- package/dist/strategy/types/cross-portfolio.js.map +1 -0
- package/dist/strategy/types/portfolio.d.ts +146 -0
- package/dist/strategy/types/portfolio.d.ts.map +1 -0
- package/dist/strategy/types/portfolio.js +55 -0
- package/dist/strategy/types/portfolio.js.map +1 -0
- package/dist/strategy/types/strategy.d.ts +563 -0
- package/dist/strategy/types/strategy.d.ts.map +1 -0
- package/dist/strategy/types/strategy.js +58 -0
- package/dist/strategy/types/strategy.js.map +1 -0
- package/dist/tools/builtin/env.d.ts +35 -0
- package/dist/tools/builtin/env.d.ts.map +1 -0
- package/dist/tools/builtin/env.js +125 -0
- package/dist/tools/builtin/env.js.map +1 -0
- package/dist/tools/builtin/file-edit.d.ts +48 -0
- package/dist/tools/builtin/file-edit.d.ts.map +1 -0
- package/dist/tools/builtin/file-edit.js +124 -0
- package/dist/tools/builtin/file-edit.js.map +1 -0
- package/dist/tools/builtin/file-validation.d.ts +6 -0
- package/dist/tools/builtin/file-validation.d.ts.map +1 -0
- package/dist/tools/builtin/file-validation.js +17 -0
- package/dist/tools/builtin/file-validation.js.map +1 -0
- package/dist/tools/builtin/file-write.d.ts +41 -0
- package/dist/tools/builtin/file-write.d.ts.map +1 -0
- package/dist/tools/builtin/file-write.js +83 -0
- package/dist/tools/builtin/file-write.js.map +1 -0
- package/dist/tools/builtin/git-diff.d.ts +43 -0
- package/dist/tools/builtin/git-diff.d.ts.map +1 -0
- package/dist/tools/builtin/git-diff.js +0 -0
- package/dist/tools/builtin/git-diff.js.map +1 -0
- package/dist/tools/builtin/git-log 2.d.ts +61 -0
- package/dist/tools/builtin/git-log 2.d.ts.map +1 -0
- package/dist/tools/builtin/git-log 2.js +109 -0
- package/dist/tools/builtin/git-log 2.js.map +1 -0
- package/dist/tools/builtin/git-log.d.ts +61 -0
- package/dist/tools/builtin/git-log.d.ts.map +1 -0
- package/dist/tools/builtin/git-log.js +109 -0
- package/dist/tools/builtin/git-log.js.map +1 -0
- package/dist/tools/builtin/glob.d.ts +37 -0
- package/dist/tools/builtin/glob.d.ts.map +1 -0
- package/dist/tools/builtin/glob.js +57 -0
- package/dist/tools/builtin/glob.js.map +1 -0
- package/dist/tools/builtin/goal-state 2.d.ts +36 -0
- package/dist/tools/builtin/goal-state 2.d.ts.map +1 -0
- package/dist/tools/builtin/goal-state 2.js +126 -0
- package/dist/tools/builtin/goal-state 2.js.map +1 -0
- package/dist/tools/builtin/goal-state.d.ts +36 -0
- package/dist/tools/builtin/goal-state.d.ts.map +1 -0
- package/dist/tools/builtin/goal-state.js +126 -0
- package/dist/tools/builtin/goal-state.js.map +1 -0
- package/dist/tools/builtin/grep.d.ts +61 -0
- package/dist/tools/builtin/grep.d.ts.map +1 -0
- package/dist/tools/builtin/grep.js +80 -0
- package/dist/tools/builtin/grep.js.map +1 -0
- package/dist/tools/builtin/http-fetch.d.ts +55 -0
- package/dist/tools/builtin/http-fetch.d.ts.map +1 -0
- package/dist/tools/builtin/http-fetch.js +54 -0
- package/dist/tools/builtin/http-fetch.js.map +1 -0
- package/dist/tools/builtin/index.d.ts +36 -0
- package/dist/tools/builtin/index.d.ts.map +1 -0
- package/dist/tools/builtin/index.js +80 -0
- package/dist/tools/builtin/index.js.map +1 -0
- package/dist/tools/builtin/json-query.d.ts +32 -0
- package/dist/tools/builtin/json-query.d.ts.map +1 -0
- package/dist/tools/builtin/json-query.js +54 -0
- package/dist/tools/builtin/json-query.js.map +1 -0
- package/dist/tools/builtin/knowledge-query 2.d.ts +61 -0
- package/dist/tools/builtin/knowledge-query 2.d.ts.map +1 -0
- package/dist/tools/builtin/knowledge-query 2.js +116 -0
- package/dist/tools/builtin/knowledge-query 2.js.map +1 -0
- package/dist/tools/builtin/knowledge-query.d.ts +61 -0
- package/dist/tools/builtin/knowledge-query.d.ts.map +1 -0
- package/dist/tools/builtin/knowledge-query.js +116 -0
- package/dist/tools/builtin/knowledge-query.js.map +1 -0
- package/dist/tools/builtin/list-dir 2.d.ts +48 -0
- package/dist/tools/builtin/list-dir 2.d.ts.map +1 -0
- package/dist/tools/builtin/list-dir 2.js +89 -0
- package/dist/tools/builtin/list-dir 2.js.map +1 -0
- package/dist/tools/builtin/list-dir.d.ts +48 -0
- package/dist/tools/builtin/list-dir.d.ts.map +1 -0
- package/dist/tools/builtin/list-dir.js +89 -0
- package/dist/tools/builtin/list-dir.js.map +1 -0
- package/dist/tools/builtin/process-status 2.d.ts +61 -0
- package/dist/tools/builtin/process-status 2.d.ts.map +1 -0
- package/dist/tools/builtin/process-status 2.js +145 -0
- package/dist/tools/builtin/process-status 2.js.map +1 -0
- package/dist/tools/builtin/process-status.d.ts +61 -0
- package/dist/tools/builtin/process-status.d.ts.map +1 -0
- package/dist/tools/builtin/process-status.js +145 -0
- package/dist/tools/builtin/process-status.js.map +1 -0
- package/dist/tools/builtin/progress-history 2.d.ts +57 -0
- package/dist/tools/builtin/progress-history 2.d.ts.map +1 -0
- package/dist/tools/builtin/progress-history 2.js +141 -0
- package/dist/tools/builtin/progress-history 2.js.map +1 -0
- package/dist/tools/builtin/progress-history.d.ts +57 -0
- package/dist/tools/builtin/progress-history.d.ts.map +1 -0
- package/dist/tools/builtin/progress-history.js +141 -0
- package/dist/tools/builtin/progress-history.js.map +1 -0
- package/dist/tools/builtin/read.d.ts +37 -0
- package/dist/tools/builtin/read.d.ts.map +1 -0
- package/dist/tools/builtin/read.js +68 -0
- package/dist/tools/builtin/read.js.map +1 -0
- package/dist/tools/builtin/session-history 2.d.ts +42 -0
- package/dist/tools/builtin/session-history 2.d.ts.map +1 -0
- package/dist/tools/builtin/session-history 2.js +116 -0
- package/dist/tools/builtin/session-history 2.js.map +1 -0
- package/dist/tools/builtin/session-history.d.ts +42 -0
- package/dist/tools/builtin/session-history.d.ts.map +1 -0
- package/dist/tools/builtin/session-history.js +116 -0
- package/dist/tools/builtin/session-history.js.map +1 -0
- package/dist/tools/builtin/shared/parse-tool-output.d.ts +18 -0
- package/dist/tools/builtin/shared/parse-tool-output.d.ts.map +1 -0
- package/dist/tools/builtin/shared/parse-tool-output.js +53 -0
- package/dist/tools/builtin/shared/parse-tool-output.js.map +1 -0
- package/dist/tools/builtin/shared/parse-tool-output.test.d.ts +2 -0
- package/dist/tools/builtin/shared/parse-tool-output.test.d.ts.map +1 -0
- package/dist/tools/builtin/shared/parse-tool-output.test.js +68 -0
- package/dist/tools/builtin/shared/parse-tool-output.test.js.map +1 -0
- package/dist/tools/builtin/shell.d.ts +48 -0
- package/dist/tools/builtin/shell.d.ts.map +1 -0
- package/dist/tools/builtin/shell.js +93 -0
- package/dist/tools/builtin/shell.js.map +1 -0
- package/dist/tools/builtin/sleep.d.ts +35 -0
- package/dist/tools/builtin/sleep.d.ts.map +1 -0
- package/dist/tools/builtin/sleep.js +48 -0
- package/dist/tools/builtin/sleep.js.map +1 -0
- package/dist/tools/builtin/test-runner 2.d.ts +53 -0
- package/dist/tools/builtin/test-runner 2.d.ts.map +1 -0
- package/dist/tools/builtin/test-runner 2.js +181 -0
- package/dist/tools/builtin/test-runner 2.js.map +1 -0
- package/dist/tools/builtin/test-runner.d.ts +53 -0
- package/dist/tools/builtin/test-runner.d.ts.map +1 -0
- package/dist/tools/builtin/test-runner.js +181 -0
- package/dist/tools/builtin/test-runner.js.map +1 -0
- package/dist/tools/builtin/tool-search 2.d.ts +43 -0
- package/dist/tools/builtin/tool-search 2.d.ts.map +1 -0
- package/dist/tools/builtin/tool-search 2.js +44 -0
- package/dist/tools/builtin/tool-search 2.js.map +1 -0
- package/dist/tools/builtin/tool-search.d.ts +43 -0
- package/dist/tools/builtin/tool-search.d.ts.map +1 -0
- package/dist/tools/builtin/tool-search.js +44 -0
- package/dist/tools/builtin/tool-search.js.map +1 -0
- package/dist/tools/builtin/trust-state 2.d.ts +30 -0
- package/dist/tools/builtin/trust-state 2.d.ts.map +1 -0
- package/dist/tools/builtin/trust-state 2.js +90 -0
- package/dist/tools/builtin/trust-state 2.js.map +1 -0
- package/dist/tools/builtin/trust-state.d.ts +30 -0
- package/dist/tools/builtin/trust-state.d.ts.map +1 -0
- package/dist/tools/builtin/trust-state.js +90 -0
- package/dist/tools/builtin/trust-state.js.map +1 -0
- package/dist/tools/builtin/web-search.d.ts +49 -0
- package/dist/tools/builtin/web-search.d.ts.map +1 -0
- package/dist/tools/builtin/web-search.js +96 -0
- package/dist/tools/builtin/web-search.js.map +1 -0
- package/dist/tools/concurrency 2.d.ts +20 -0
- package/dist/tools/concurrency 2.d.ts.map +1 -0
- package/dist/tools/concurrency 2.js +58 -0
- package/dist/tools/concurrency 2.js.map +1 -0
- package/dist/tools/concurrency.d.ts +20 -0
- package/dist/tools/concurrency.d.ts.map +1 -0
- package/dist/tools/concurrency.js +58 -0
- package/dist/tools/concurrency.js.map +1 -0
- package/dist/tools/executor 2.d.ts +34 -0
- package/dist/tools/executor 2.d.ts.map +1 -0
- package/dist/tools/executor 2.js +156 -0
- package/dist/tools/executor 2.js.map +1 -0
- package/dist/tools/executor.d.ts +39 -0
- package/dist/tools/executor.d.ts.map +1 -0
- package/dist/tools/executor.js +211 -0
- package/dist/tools/executor.js.map +1 -0
- package/dist/tools/filesystem/file-edit.d.ts +48 -0
- package/dist/tools/filesystem/file-edit.d.ts.map +1 -0
- package/dist/tools/filesystem/file-edit.js +124 -0
- package/dist/tools/filesystem/file-edit.js.map +1 -0
- package/dist/tools/filesystem/file-validation.d.ts +6 -0
- package/dist/tools/filesystem/file-validation.d.ts.map +1 -0
- package/dist/tools/filesystem/file-validation.js +17 -0
- package/dist/tools/filesystem/file-validation.js.map +1 -0
- package/dist/tools/filesystem/file-write.d.ts +41 -0
- package/dist/tools/filesystem/file-write.d.ts.map +1 -0
- package/dist/tools/filesystem/file-write.js +83 -0
- package/dist/tools/filesystem/file-write.js.map +1 -0
- package/dist/tools/filesystem/glob.d.ts +37 -0
- package/dist/tools/filesystem/glob.d.ts.map +1 -0
- package/dist/tools/filesystem/glob.js +57 -0
- package/dist/tools/filesystem/glob.js.map +1 -0
- package/dist/tools/filesystem/grep.d.ts +61 -0
- package/dist/tools/filesystem/grep.d.ts.map +1 -0
- package/dist/tools/filesystem/grep.js +80 -0
- package/dist/tools/filesystem/grep.js.map +1 -0
- package/dist/tools/filesystem/json-query.d.ts +32 -0
- package/dist/tools/filesystem/json-query.d.ts.map +1 -0
- package/dist/tools/filesystem/json-query.js +54 -0
- package/dist/tools/filesystem/json-query.js.map +1 -0
- package/dist/tools/filesystem/list-dir.d.ts +48 -0
- package/dist/tools/filesystem/list-dir.d.ts.map +1 -0
- package/dist/tools/filesystem/list-dir.js +89 -0
- package/dist/tools/filesystem/list-dir.js.map +1 -0
- package/dist/tools/filesystem/read.d.ts +37 -0
- package/dist/tools/filesystem/read.d.ts.map +1 -0
- package/dist/tools/filesystem/read.js +68 -0
- package/dist/tools/filesystem/read.js.map +1 -0
- package/dist/tools/git/git-diff.d.ts +43 -0
- package/dist/tools/git/git-diff.d.ts.map +1 -0
- package/dist/tools/git/git-diff.js +131 -0
- package/dist/tools/git/git-diff.js.map +1 -0
- package/dist/tools/git/git-log.d.ts +61 -0
- package/dist/tools/git/git-log.d.ts.map +1 -0
- package/dist/tools/git/git-log.js +109 -0
- package/dist/tools/git/git-log.js.map +1 -0
- package/dist/tools/index 2.d.ts +10 -0
- package/dist/tools/index 2.d.ts.map +1 -0
- package/dist/tools/index 2.js +7 -0
- package/dist/tools/index 2.js.map +1 -0
- package/dist/tools/index.d.ts +10 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +7 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/meta/tool-search.d.ts +43 -0
- package/dist/tools/meta/tool-search.d.ts.map +1 -0
- package/dist/tools/meta/tool-search.js +44 -0
- package/dist/tools/meta/tool-search.js.map +1 -0
- package/dist/tools/network/http-fetch.d.ts +55 -0
- package/dist/tools/network/http-fetch.d.ts.map +1 -0
- package/dist/tools/network/http-fetch.js +54 -0
- package/dist/tools/network/http-fetch.js.map +1 -0
- package/dist/tools/network/web-search.d.ts +49 -0
- package/dist/tools/network/web-search.d.ts.map +1 -0
- package/dist/tools/network/web-search.js +96 -0
- package/dist/tools/network/web-search.js.map +1 -0
- package/dist/tools/permission 2.d.ts +42 -0
- package/dist/tools/permission 2.d.ts.map +1 -0
- package/dist/tools/permission 2.js +101 -0
- package/dist/tools/permission 2.js.map +1 -0
- package/dist/tools/permission.d.ts +42 -0
- package/dist/tools/permission.d.ts.map +1 -0
- package/dist/tools/permission.js +101 -0
- package/dist/tools/permission.js.map +1 -0
- package/dist/tools/registry 2.d.ts +38 -0
- package/dist/tools/registry 2.d.ts.map +1 -0
- package/dist/tools/registry 2.js +114 -0
- package/dist/tools/registry 2.js.map +1 -0
- package/dist/tools/registry.d.ts +44 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +132 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/state/goal-state.d.ts +36 -0
- package/dist/tools/state/goal-state.d.ts.map +1 -0
- package/dist/tools/state/goal-state.js +126 -0
- package/dist/tools/state/goal-state.js.map +1 -0
- package/dist/tools/state/knowledge-query.d.ts +61 -0
- package/dist/tools/state/knowledge-query.d.ts.map +1 -0
- package/dist/tools/state/knowledge-query.js +116 -0
- package/dist/tools/state/knowledge-query.js.map +1 -0
- package/dist/tools/state/progress-history.d.ts +57 -0
- package/dist/tools/state/progress-history.d.ts.map +1 -0
- package/dist/tools/state/progress-history.js +141 -0
- package/dist/tools/state/progress-history.js.map +1 -0
- package/dist/tools/state/session-history.d.ts +42 -0
- package/dist/tools/state/session-history.d.ts.map +1 -0
- package/dist/tools/state/session-history.js +116 -0
- package/dist/tools/state/session-history.js.map +1 -0
- package/dist/tools/state/trust-state.d.ts +30 -0
- package/dist/tools/state/trust-state.d.ts.map +1 -0
- package/dist/tools/state/trust-state.js +90 -0
- package/dist/tools/state/trust-state.js.map +1 -0
- package/dist/tools/system/env.d.ts +35 -0
- package/dist/tools/system/env.d.ts.map +1 -0
- package/dist/tools/system/env.js +125 -0
- package/dist/tools/system/env.js.map +1 -0
- package/dist/tools/system/process-status.d.ts +61 -0
- package/dist/tools/system/process-status.d.ts.map +1 -0
- package/dist/tools/system/process-status.js +145 -0
- package/dist/tools/system/process-status.js.map +1 -0
- package/dist/tools/system/shell.d.ts +48 -0
- package/dist/tools/system/shell.d.ts.map +1 -0
- package/dist/tools/system/shell.js +106 -0
- package/dist/tools/system/shell.js.map +1 -0
- package/dist/tools/system/sleep.d.ts +35 -0
- package/dist/tools/system/sleep.d.ts.map +1 -0
- package/dist/tools/system/sleep.js +48 -0
- package/dist/tools/system/sleep.js.map +1 -0
- package/dist/tools/system/test-runner.d.ts +53 -0
- package/dist/tools/system/test-runner.d.ts.map +1 -0
- package/dist/tools/system/test-runner.js +181 -0
- package/dist/tools/system/test-runner.js.map +1 -0
- package/dist/tools/types 2.d.ts +188 -0
- package/dist/tools/types 2.d.ts.map +1 -0
- package/dist/tools/types 2.js +66 -0
- package/dist/tools/types 2.js.map +1 -0
- package/dist/tools/types.d.ts +216 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +68 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/traits/__tests__/character-config.test.d.ts +2 -0
- package/dist/traits/__tests__/character-config.test.d.ts.map +1 -0
- package/dist/traits/__tests__/character-config.test.js +300 -0
- package/dist/traits/__tests__/character-config.test.js.map +1 -0
- package/dist/traits/__tests__/character-separation.test.d.ts +10 -0
- package/dist/traits/__tests__/character-separation.test.d.ts.map +1 -0
- package/dist/traits/__tests__/character-separation.test.js +357 -0
- package/dist/traits/__tests__/character-separation.test.js.map +1 -0
- package/dist/traits/__tests__/curiosity-engine-budget.test.d.ts +2 -0
- package/dist/traits/__tests__/curiosity-engine-budget.test.d.ts.map +1 -0
- package/dist/traits/__tests__/curiosity-engine-budget.test.js +465 -0
- package/dist/traits/__tests__/curiosity-engine-budget.test.js.map +1 -0
- package/dist/traits/__tests__/curiosity-engine-constructor.test.d.ts +2 -0
- package/dist/traits/__tests__/curiosity-engine-constructor.test.d.ts.map +1 -0
- package/dist/traits/__tests__/curiosity-engine-constructor.test.js +592 -0
- package/dist/traits/__tests__/curiosity-engine-constructor.test.js.map +1 -0
- package/dist/traits/__tests__/curiosity-engine-lifecycle.test.d.ts +2 -0
- package/dist/traits/__tests__/curiosity-engine-lifecycle.test.d.ts.map +1 -0
- package/dist/traits/__tests__/curiosity-engine-lifecycle.test.js +399 -0
- package/dist/traits/__tests__/curiosity-engine-lifecycle.test.js.map +1 -0
- package/dist/traits/__tests__/curiosity-engine-proposals.test.d.ts +2 -0
- package/dist/traits/__tests__/curiosity-engine-proposals.test.d.ts.map +1 -0
- package/dist/traits/__tests__/curiosity-engine-proposals.test.js +438 -0
- package/dist/traits/__tests__/curiosity-engine-proposals.test.js.map +1 -0
- package/dist/traits/__tests__/ethics-gate-core.test.d.ts +2 -0
- package/dist/traits/__tests__/ethics-gate-core.test.d.ts.map +1 -0
- package/dist/traits/__tests__/ethics-gate-core.test.js +335 -0
- package/dist/traits/__tests__/ethics-gate-core.test.js.map +1 -0
- package/dist/traits/__tests__/ethics-gate-layer1.test.d.ts +2 -0
- package/dist/traits/__tests__/ethics-gate-layer1.test.d.ts.map +1 -0
- package/dist/traits/__tests__/ethics-gate-layer1.test.js +660 -0
- package/dist/traits/__tests__/ethics-gate-layer1.test.js.map +1 -0
- package/dist/traits/__tests__/guardrail-integration.test.d.ts +2 -0
- package/dist/traits/__tests__/guardrail-integration.test.d.ts.map +1 -0
- package/dist/traits/__tests__/guardrail-integration.test.js +230 -0
- package/dist/traits/__tests__/guardrail-integration.test.js.map +1 -0
- package/dist/traits/__tests__/guardrail-runner.test.d.ts +2 -0
- package/dist/traits/__tests__/guardrail-runner.test.d.ts.map +1 -0
- package/dist/traits/__tests__/guardrail-runner.test.js +295 -0
- package/dist/traits/__tests__/guardrail-runner.test.js.map +1 -0
- package/dist/traits/__tests__/trust-manager.test.d.ts +2 -0
- package/dist/traits/__tests__/trust-manager.test.d.ts.map +1 -0
- package/dist/traits/__tests__/trust-manager.test.js +437 -0
- package/dist/traits/__tests__/trust-manager.test.js.map +1 -0
- package/dist/traits/__tests__/trust-rate-limit.test.d.ts +2 -0
- package/dist/traits/__tests__/trust-rate-limit.test.d.ts.map +1 -0
- package/dist/traits/__tests__/trust-rate-limit.test.js +99 -0
- package/dist/traits/__tests__/trust-rate-limit.test.js.map +1 -0
- package/dist/traits/character-config.d.ts +1 -1
- package/dist/traits/character-config.d.ts.map +1 -1
- package/dist/traits/curiosity-engine.d.ts +3 -3
- package/dist/traits/curiosity-engine.d.ts.map +1 -1
- package/dist/traits/curiosity-proposals.d.ts +2 -2
- package/dist/traits/curiosity-proposals.d.ts.map +1 -1
- package/dist/traits/curiosity-transfer.d.ts +1 -1
- package/dist/traits/curiosity-transfer.d.ts.map +1 -1
- package/dist/traits/ethics-gate.d.ts +2 -2
- package/dist/traits/ethics-gate.d.ts.map +1 -1
- package/dist/traits/guardrail-runner.d.ts +29 -0
- package/dist/traits/guardrail-runner.d.ts.map +1 -0
- package/dist/traits/guardrail-runner.js +81 -0
- package/dist/traits/guardrail-runner.js.map +1 -0
- package/dist/traits/trust-manager.d.ts +1 -1
- package/dist/traits/trust-manager.d.ts.map +1 -1
- package/dist/traits/types/character.d.ts +20 -0
- package/dist/traits/types/character.d.ts.map +1 -0
- package/dist/traits/types/character.js +10 -0
- package/dist/traits/types/character.js.map +1 -0
- package/dist/traits/types/curiosity.d.ts +443 -0
- package/dist/traits/types/curiosity.d.ts.map +1 -0
- package/dist/traits/types/curiosity.js +86 -0
- package/dist/traits/types/curiosity.js.map +1 -0
- package/dist/traits/types/ethics.d.ts +169 -0
- package/dist/traits/types/ethics.d.ts.map +1 -0
- package/dist/traits/types/ethics.js +47 -0
- package/dist/traits/types/ethics.js.map +1 -0
- package/dist/traits/types/guardrail.d.ts +104 -0
- package/dist/traits/types/guardrail.d.ts.map +1 -0
- package/dist/traits/types/guardrail.js +34 -0
- package/dist/traits/types/guardrail.js.map +1 -0
- package/dist/traits/types/trust.d.ts +126 -0
- package/dist/traits/types/trust.d.ts.map +1 -0
- package/dist/traits/types/trust.js +38 -0
- package/dist/traits/types/trust.js.map +1 -0
- package/dist/tui/__tests__/actions.test.d.ts +2 -0
- package/dist/tui/__tests__/actions.test.d.ts.map +1 -0
- package/dist/tui/__tests__/actions.test.js +300 -0
- package/dist/tui/__tests__/actions.test.js.map +1 -0
- package/dist/tui/__tests__/fuzzy.test.d.ts +2 -0
- package/dist/tui/__tests__/fuzzy.test.d.ts.map +1 -0
- package/dist/tui/__tests__/fuzzy.test.js +95 -0
- package/dist/tui/__tests__/fuzzy.test.js.map +1 -0
- package/dist/tui/__tests__/intent-recognizer.test.d.ts +2 -0
- package/dist/tui/__tests__/intent-recognizer.test.d.ts.map +1 -0
- package/dist/tui/__tests__/intent-recognizer.test.js +174 -0
- package/dist/tui/__tests__/intent-recognizer.test.js.map +1 -0
- package/dist/tui/__tests__/use-loop.test.d.ts +2 -0
- package/dist/tui/__tests__/use-loop.test.d.ts.map +1 -0
- package/dist/tui/__tests__/use-loop.test.js +286 -0
- package/dist/tui/__tests__/use-loop.test.js.map +1 -0
- package/dist/tui/actions.d.ts +2 -2
- package/dist/tui/actions.d.ts.map +1 -1
- package/dist/tui/app.d.ts +2 -2
- package/dist/tui/app.d.ts.map +1 -1
- package/dist/tui/entry.js +8 -8
- package/dist/tui/entry.js.map +1 -1
- package/dist/tui/intent-recognizer.d.ts +1 -1
- package/dist/tui/intent-recognizer.d.ts.map +1 -1
- package/dist/tui/use-loop.d.ts +2 -2
- package/dist/tui/use-loop.d.ts.map +1 -1
- package/dist/types/__tests__/cross-portfolio.test.d.ts +2 -0
- package/dist/types/__tests__/cross-portfolio.test.d.ts.map +1 -0
- package/dist/types/__tests__/cross-portfolio.test.js +336 -0
- package/dist/types/__tests__/cross-portfolio.test.js.map +1 -0
- package/dist/types/__tests__/existing-extensions.test.d.ts +2 -0
- package/dist/types/__tests__/existing-extensions.test.d.ts.map +1 -0
- package/dist/types/__tests__/existing-extensions.test.js +140 -0
- package/dist/types/__tests__/existing-extensions.test.js.map +1 -0
- package/dist/types/__tests__/goal-refiner-types.test.d.ts +2 -0
- package/dist/types/__tests__/goal-refiner-types.test.d.ts.map +1 -0
- package/dist/types/__tests__/goal-refiner-types.test.js +198 -0
- package/dist/types/__tests__/goal-refiner-types.test.js.map +1 -0
- package/dist/types/__tests__/goal-tree-integration.test.d.ts +2 -0
- package/dist/types/__tests__/goal-tree-integration.test.d.ts.map +1 -0
- package/dist/types/__tests__/goal-tree-integration.test.js +327 -0
- package/dist/types/__tests__/goal-tree-integration.test.js.map +1 -0
- package/dist/types/__tests__/goal-tree.test.d.ts +2 -0
- package/dist/types/__tests__/goal-tree.test.d.ts.map +1 -0
- package/dist/types/__tests__/goal-tree.test.js +286 -0
- package/dist/types/__tests__/goal-tree.test.js.map +1 -0
- package/dist/types/__tests__/learning.test.d.ts +2 -0
- package/dist/types/__tests__/learning.test.d.ts.map +1 -0
- package/dist/types/__tests__/learning.test.js +306 -0
- package/dist/types/__tests__/learning.test.js.map +1 -0
- package/dist/types/__tests__/suggest-output-schema.test.d.ts +2 -0
- package/dist/types/__tests__/suggest-output-schema.test.d.ts.map +1 -0
- package/dist/types/__tests__/suggest-output-schema.test.js +239 -0
- package/dist/types/__tests__/suggest-output-schema.test.js.map +1 -0
- package/dist/types/a2a.d.ts +1 -720
- package/dist/types/a2a.d.ts.map +1 -1
- package/dist/types/a2a.js +2 -113
- package/dist/types/a2a.js.map +1 -1
- package/dist/types/agent-profile.d.ts +1 -31
- package/dist/types/agent-profile.d.ts.map +1 -1
- package/dist/types/agent-profile.js +2 -15
- package/dist/types/agent-profile.js.map +1 -1
- package/dist/types/capability.d.ts +1 -291
- package/dist/types/capability.d.ts.map +1 -1
- package/dist/types/capability.js +2 -52
- package/dist/types/capability.js.map +1 -1
- package/dist/types/character.d.ts +1 -19
- package/dist/types/character.d.ts.map +1 -1
- package/dist/types/character.js +2 -9
- package/dist/types/character.js.map +1 -1
- package/dist/types/checkpoint.d.ts +1 -132
- package/dist/types/checkpoint.d.ts.map +1 -1
- package/dist/types/checkpoint.js +2 -37
- package/dist/types/checkpoint.js.map +1 -1
- package/dist/types/core.d.ts +14 -14
- package/dist/types/cron.d.ts +1 -58
- package/dist/types/cron.d.ts.map +1 -1
- package/dist/types/cron.js +2 -12
- package/dist/types/cron.js.map +1 -1
- package/dist/types/cross-portfolio.d.ts +1 -377
- package/dist/types/cross-portfolio.d.ts.map +1 -1
- package/dist/types/cross-portfolio.js +2 -154
- package/dist/types/cross-portfolio.js.map +1 -1
- package/dist/types/curiosity.d.ts +1 -442
- package/dist/types/curiosity.d.ts.map +1 -1
- package/dist/types/curiosity.js +2 -85
- package/dist/types/curiosity.js.map +1 -1
- package/dist/types/daemon.d.ts +1 -157
- package/dist/types/daemon.d.ts.map +1 -1
- package/dist/types/daemon.js +2 -47
- package/dist/types/daemon.js.map +1 -1
- package/dist/types/data-source.d.ts +1 -310
- package/dist/types/data-source.d.ts.map +1 -1
- package/dist/types/data-source.js +2 -52
- package/dist/types/data-source.js.map +1 -1
- package/dist/types/dependency.d.ts +1 -107
- package/dist/types/dependency.d.ts.map +1 -1
- package/dist/types/dependency.js +2 -20
- package/dist/types/dependency.js.map +1 -1
- package/dist/types/drive.d.ts +1 -193
- package/dist/types/drive.d.ts.map +1 -1
- package/dist/types/drive.js +2 -76
- package/dist/types/drive.js.map +1 -1
- package/dist/types/embedding.d.ts +1 -58
- package/dist/types/embedding.d.ts.map +1 -1
- package/dist/types/embedding.js +2 -21
- package/dist/types/embedding.js.map +1 -1
- package/dist/types/ethics.d.ts +1 -168
- package/dist/types/ethics.d.ts.map +1 -1
- package/dist/types/ethics.js +2 -46
- package/dist/types/ethics.js.map +1 -1
- package/dist/types/gap.d.ts +1 -146
- package/dist/types/gap.d.ts.map +1 -1
- package/dist/types/gap.js +2 -40
- package/dist/types/gap.js.map +1 -1
- package/dist/types/goal-refiner.d.ts +1 -107
- package/dist/types/goal-refiner.d.ts.map +1 -1
- package/dist/types/goal-refiner.js +2 -38
- package/dist/types/goal-refiner.js.map +1 -1
- package/dist/types/goal-tree.d.ts +1 -179
- package/dist/types/goal-tree.d.ts.map +1 -1
- package/dist/types/goal-tree.js +2 -72
- package/dist/types/goal-tree.js.map +1 -1
- package/dist/types/goal.d.ts +1 -1341
- package/dist/types/goal.d.ts.map +1 -1
- package/dist/types/goal.js +2 -140
- package/dist/types/goal.js.map +1 -1
- package/dist/types/guardrail.d.ts +1 -103
- package/dist/types/guardrail.d.ts.map +1 -1
- package/dist/types/guardrail.js +2 -33
- package/dist/types/guardrail.js.map +1 -1
- package/dist/types/hook.d.ts +1 -141
- package/dist/types/hook.d.ts.map +1 -1
- package/dist/types/hook.js +2 -42
- package/dist/types/hook.js.map +1 -1
- package/dist/types/knowledge.d.ts +1 -401
- package/dist/types/knowledge.d.ts.map +1 -1
- package/dist/types/knowledge.js +2 -115
- package/dist/types/knowledge.js.map +1 -1
- package/dist/types/learning.d.ts +1 -291
- package/dist/types/learning.d.ts.map +1 -1
- package/dist/types/learning.js +2 -116
- package/dist/types/learning.js.map +1 -1
- package/dist/types/mcp.d.ts +1 -169
- package/dist/types/mcp.d.ts.map +1 -1
- package/dist/types/mcp.js +2 -29
- package/dist/types/mcp.js.map +1 -1
- package/dist/types/memory-lifecycle.d.ts +1 -614
- package/dist/types/memory-lifecycle.d.ts.map +1 -1
- package/dist/types/memory-lifecycle.js +2 -158
- package/dist/types/memory-lifecycle.js.map +1 -1
- package/dist/types/negotiation.d.ts +1 -449
- package/dist/types/negotiation.d.ts.map +1 -1
- package/dist/types/negotiation.js +2 -83
- package/dist/types/negotiation.js.map +1 -1
- package/dist/types/notification.d.ts +1 -915
- package/dist/types/notification.d.ts.map +1 -1
- package/dist/types/notification.js +2 -81
- package/dist/types/notification.js.map +1 -1
- package/dist/types/pipeline.d.ts +1 -190
- package/dist/types/pipeline.d.ts.map +1 -1
- package/dist/types/pipeline.js +2 -61
- package/dist/types/pipeline.js.map +1 -1
- package/dist/types/plugin.d.ts +1 -334
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/plugin.js +2 -60
- package/dist/types/plugin.js.map +1 -1
- package/dist/types/portfolio.d.ts +1 -145
- package/dist/types/portfolio.d.ts.map +1 -1
- package/dist/types/portfolio.js +2 -54
- package/dist/types/portfolio.js.map +1 -1
- package/dist/types/reflection.d.ts +1 -33
- package/dist/types/reflection.d.ts.map +1 -1
- package/dist/types/reflection.js +2 -13
- package/dist/types/reflection.js.map +1 -1
- package/dist/types/report.d.ts +1 -111
- package/dist/types/report.d.ts.map +1 -1
- package/dist/types/report.js +2 -33
- package/dist/types/report.js.map +1 -1
- package/dist/types/satisficing.d.ts +1 -129
- package/dist/types/satisficing.d.ts.map +1 -1
- package/dist/types/satisficing.js +2 -53
- package/dist/types/satisficing.js.map +1 -1
- package/dist/types/session.d.ts +1 -94
- package/dist/types/session.d.ts.map +1 -1
- package/dist/types/session.js +2 -36
- package/dist/types/session.js.map +1 -1
- package/dist/types/stall.d.ts +1 -67
- package/dist/types/stall.d.ts.map +1 -1
- package/dist/types/stall.js +2 -27
- package/dist/types/stall.js.map +1 -1
- package/dist/types/state.d.ts +1 -244
- package/dist/types/state.d.ts.map +1 -1
- package/dist/types/state.js +2 -35
- package/dist/types/state.js.map +1 -1
- package/dist/types/strategy.d.ts +1 -562
- package/dist/types/strategy.d.ts.map +1 -1
- package/dist/types/strategy.js +2 -57
- package/dist/types/strategy.js.map +1 -1
- package/dist/types/suggest.d.ts +1 -91
- package/dist/types/suggest.d.ts.map +1 -1
- package/dist/types/suggest.js +2 -14
- package/dist/types/suggest.js.map +1 -1
- package/dist/types/task-group.d.ts +1 -245
- package/dist/types/task-group.d.ts.map +1 -1
- package/dist/types/task-group.js +2 -13
- package/dist/types/task-group.js.map +1 -1
- package/dist/types/task.d.ts +1 -266
- package/dist/types/task.d.ts.map +1 -1
- package/dist/types/task.js +2 -69
- package/dist/types/task.js.map +1 -1
- package/dist/types/trigger.d.ts +1 -76
- package/dist/types/trigger.d.ts.map +1 -1
- package/dist/types/trigger.js +2 -20
- package/dist/types/trigger.js.map +1 -1
- package/dist/types/trust.d.ts +1 -125
- package/dist/types/trust.d.ts.map +1 -1
- package/dist/types/trust.js +2 -37
- package/dist/types/trust.js.map +1 -1
- package/package.json +9 -4
- package/dist/adapter-layer.d.ts +0 -67
- package/dist/adapter-layer.d.ts.map +0 -1
- package/dist/adapter-layer.js +0 -50
- package/dist/adapter-layer.js.map +0 -1
- package/dist/adapters/a2a-adapter.d.ts +0 -49
- package/dist/adapters/a2a-adapter.d.ts.map +0 -1
- package/dist/adapters/a2a-adapter.js +0 -211
- package/dist/adapters/a2a-adapter.js.map +0 -1
- package/dist/adapters/a2a-client.d.ts +0 -28
- package/dist/adapters/a2a-client.d.ts.map +0 -1
- package/dist/adapters/a2a-client.js +0 -178
- package/dist/adapters/a2a-client.js.map +0 -1
- package/dist/adapters/agent-profile-loader.d.ts +0 -26
- package/dist/adapters/agent-profile-loader.d.ts.map +0 -1
- package/dist/adapters/agent-profile-loader.js +0 -88
- package/dist/adapters/agent-profile-loader.js.map +0 -1
- package/dist/adapters/browser-use-cli.d.ts +0 -19
- package/dist/adapters/browser-use-cli.d.ts.map +0 -1
- package/dist/adapters/browser-use-cli.js +0 -70
- package/dist/adapters/browser-use-cli.js.map +0 -1
- package/dist/adapters/claude-api.d.ts +0 -10
- package/dist/adapters/claude-api.d.ts.map +0 -1
- package/dist/adapters/claude-api.js +0 -63
- package/dist/adapters/claude-api.js.map +0 -1
- package/dist/adapters/claude-code-cli.d.ts +0 -14
- package/dist/adapters/claude-code-cli.d.ts.map +0 -1
- package/dist/adapters/claude-code-cli.js +0 -45
- package/dist/adapters/claude-code-cli.js.map +0 -1
- package/dist/adapters/file-existence-datasource.d.ts +0 -16
- package/dist/adapters/file-existence-datasource.d.ts.map +0 -1
- package/dist/adapters/file-existence-datasource.js.map +0 -1
- package/dist/adapters/github-issue-datasource.d.ts +0 -45
- package/dist/adapters/github-issue-datasource.d.ts.map +0 -1
- package/dist/adapters/github-issue-datasource.js.map +0 -1
- package/dist/adapters/mcp-datasource.d.ts +0 -20
- package/dist/adapters/mcp-datasource.d.ts.map +0 -1
- package/dist/adapters/mcp-datasource.js.map +0 -1
- package/dist/adapters/openai-codex.d.ts +0 -28
- package/dist/adapters/openai-codex.d.ts.map +0 -1
- package/dist/adapters/openai-codex.js +0 -59
- package/dist/adapters/openai-codex.js.map +0 -1
- package/dist/adapters/openclaw-acp.d.ts +0 -32
- package/dist/adapters/openclaw-acp.d.ts.map +0 -1
- package/dist/adapters/openclaw-acp.js.map +0 -1
- package/dist/adapters/openclaw-datasource.d.ts +0 -33
- package/dist/adapters/openclaw-datasource.d.ts.map +0 -1
- package/dist/adapters/openclaw-datasource.js.map +0 -1
- package/dist/adapters/shell-datasource.d.ts +0 -36
- package/dist/adapters/shell-datasource.d.ts.map +0 -1
- package/dist/adapters/shell-datasource.js.map +0 -1
- package/dist/capability-detector.d.ts +0 -124
- package/dist/capability-detector.d.ts.map +0 -1
- package/dist/capability-detector.js +0 -576
- package/dist/capability-detector.js.map +0 -1
- package/dist/character-config.d.ts +0 -34
- package/dist/character-config.d.ts.map +0 -1
- package/dist/character-config.js +0 -53
- package/dist/character-config.js.map +0 -1
- package/dist/cli-runner.d.ts.map +0 -1
- package/dist/cli-runner.js +0 -499
- package/dist/cli-runner.js.map +0 -1
- package/dist/codex-llm-client.d.ts +0 -47
- package/dist/codex-llm-client.d.ts.map +0 -1
- package/dist/codex-llm-client.js +0 -193
- package/dist/codex-llm-client.js.map +0 -1
- package/dist/context-provider.d.ts +0 -16
- package/dist/context-provider.d.ts.map +0 -1
- package/dist/context-provider.js +0 -107
- package/dist/context-provider.js.map +0 -1
- package/dist/context-providers/workspace-context.d.ts +0 -8
- package/dist/context-providers/workspace-context.d.ts.map +0 -1
- package/dist/context-providers/workspace-context.js +0 -217
- package/dist/context-providers/workspace-context.js.map +0 -1
- package/dist/core/suggest/repo-context.d.ts +0 -8
- package/dist/core/suggest/repo-context.d.ts.map +0 -1
- package/dist/core/suggest/repo-context.js +0 -154
- package/dist/core/suggest/repo-context.js.map +0 -1
- package/dist/core-loop.d.ts +0 -64
- package/dist/core-loop.d.ts.map +0 -1
- package/dist/core-loop.js +0 -422
- package/dist/core-loop.js.map +0 -1
- package/dist/cross-goal-portfolio.d.ts +0 -153
- package/dist/cross-goal-portfolio.d.ts.map +0 -1
- package/dist/cross-goal-portfolio.js +0 -790
- package/dist/cross-goal-portfolio.js.map +0 -1
- package/dist/curiosity-engine.d.ts +0 -177
- package/dist/curiosity-engine.d.ts.map +0 -1
- package/dist/curiosity-engine.js +0 -736
- package/dist/curiosity-engine.js.map +0 -1
- package/dist/daemon-runner.d.ts +0 -109
- package/dist/daemon-runner.d.ts.map +0 -1
- package/dist/daemon-runner.js +0 -389
- package/dist/daemon-runner.js.map +0 -1
- package/dist/data-source-adapter.d.ts +0 -42
- package/dist/data-source-adapter.d.ts.map +0 -1
- package/dist/data-source-adapter.js +0 -223
- package/dist/data-source-adapter.js.map +0 -1
- package/dist/drive-scorer.d.ts +0 -96
- package/dist/drive-scorer.d.ts.map +0 -1
- package/dist/drive-scorer.js +0 -235
- package/dist/drive-scorer.js.map +0 -1
- package/dist/drive-system.d.ts +0 -92
- package/dist/drive-system.d.ts.map +0 -1
- package/dist/drive-system.js +0 -325
- package/dist/drive-system.js.map +0 -1
- package/dist/embedding-client.d.ts.map +0 -1
- package/dist/embedding-client.js.map +0 -1
- package/dist/ethics-gate.d.ts +0 -70
- package/dist/ethics-gate.d.ts.map +0 -1
- package/dist/ethics-gate.js +0 -567
- package/dist/ethics-gate.js.map +0 -1
- package/dist/event-server.d.ts +0 -23
- package/dist/event-server.d.ts.map +0 -1
- package/dist/event-server.js +0 -69
- package/dist/event-server.js.map +0 -1
- package/dist/execution/context-budget.d.ts +0 -35
- package/dist/execution/context-budget.d.ts.map +0 -1
- package/dist/execution/context-budget.js.map +0 -1
- package/dist/execution/context-builder.d.ts +0 -44
- package/dist/execution/context-builder.d.ts.map +0 -1
- package/dist/execution/context-builder.js +0 -132
- package/dist/execution/context-builder.js.map +0 -1
- package/dist/execution/dimension-selector.d.ts +0 -16
- package/dist/execution/dimension-selector.d.ts.map +0 -1
- package/dist/execution/dimension-selector.js +0 -57
- package/dist/execution/dimension-selector.js.map +0 -1
- package/dist/execution/issue-context-fetcher.d.ts.map +0 -1
- package/dist/execution/issue-context-fetcher.js +0 -73
- package/dist/execution/issue-context-fetcher.js.map +0 -1
- package/dist/execution/task-approval-check.d.ts +0 -9
- package/dist/execution/task-approval-check.d.ts.map +0 -1
- package/dist/execution/task-approval-check.js.map +0 -1
- package/dist/execution/task-approval.d.ts +0 -22
- package/dist/execution/task-approval.d.ts.map +0 -1
- package/dist/execution/task-approval.js +0 -147
- package/dist/execution/task-approval.js.map +0 -1
- package/dist/execution/task-execution-types.d.ts +0 -18
- package/dist/execution/task-execution-types.d.ts.map +0 -1
- package/dist/execution/task-execution-types.js +0 -10
- package/dist/execution/task-execution-types.js.map +0 -1
- package/dist/execution/task-executor.d.ts +0 -31
- package/dist/execution/task-executor.d.ts.map +0 -1
- package/dist/execution/task-executor.js +0 -221
- package/dist/execution/task-executor.js.map +0 -1
- package/dist/execution/task-generation.d.ts +0 -154
- package/dist/execution/task-generation.d.ts.map +0 -1
- package/dist/execution/task-generation.js +0 -416
- package/dist/execution/task-generation.js.map +0 -1
- package/dist/execution/task-health-check.d.ts.map +0 -1
- package/dist/execution/task-health-check.js.map +0 -1
- package/dist/execution/task-lifecycle.d.ts +0 -126
- package/dist/execution/task-lifecycle.d.ts.map +0 -1
- package/dist/execution/task-lifecycle.js +0 -313
- package/dist/execution/task-lifecycle.js.map +0 -1
- package/dist/execution/task-pipeline-cycle.d.ts +0 -45
- package/dist/execution/task-pipeline-cycle.d.ts.map +0 -1
- package/dist/execution/task-pipeline-cycle.js +0 -132
- package/dist/execution/task-pipeline-cycle.js.map +0 -1
- package/dist/execution/task-prompt-builder.d.ts +0 -9
- package/dist/execution/task-prompt-builder.d.ts.map +0 -1
- package/dist/execution/task-prompt-builder.js +0 -197
- package/dist/execution/task-prompt-builder.js.map +0 -1
- package/dist/execution/task-verifier.d.ts +0 -115
- package/dist/execution/task-verifier.d.ts.map +0 -1
- package/dist/execution/task-verifier.js +0 -857
- package/dist/execution/task-verifier.js.map +0 -1
- package/dist/gap-calculator.d.ts +0 -80
- package/dist/gap-calculator.d.ts.map +0 -1
- package/dist/gap-calculator.js +0 -218
- package/dist/gap-calculator.js.map +0 -1
- package/dist/goal-dependency-graph.d.ts +0 -112
- package/dist/goal-dependency-graph.d.ts.map +0 -1
- package/dist/goal-dependency-graph.js +0 -291
- package/dist/goal-dependency-graph.js.map +0 -1
- package/dist/goal-negotiator.d.ts +0 -109
- package/dist/goal-negotiator.d.ts.map +0 -1
- package/dist/goal-negotiator.js +0 -1044
- package/dist/goal-negotiator.js.map +0 -1
- package/dist/goal-tree-manager.d.ts +0 -120
- package/dist/goal-tree-manager.d.ts.map +0 -1
- package/dist/goal-tree-manager.js +0 -954
- package/dist/goal-tree-manager.js.map +0 -1
- package/dist/guardrail-runner.d.ts +0 -29
- package/dist/guardrail-runner.d.ts.map +0 -1
- package/dist/guardrail-runner.js.map +0 -1
- package/dist/knowledge/knowledge-transfer-apply.d.ts +0 -48
- package/dist/knowledge/knowledge-transfer-apply.d.ts.map +0 -1
- package/dist/knowledge/knowledge-transfer-apply.js +0 -221
- package/dist/knowledge/knowledge-transfer-apply.js.map +0 -1
- package/dist/knowledge/knowledge-transfer-detect.d.ts +0 -28
- package/dist/knowledge/knowledge-transfer-detect.d.ts.map +0 -1
- package/dist/knowledge/knowledge-transfer-detect.js +0 -128
- package/dist/knowledge/knowledge-transfer-detect.js.map +0 -1
- package/dist/knowledge/knowledge-transfer-evaluate.d.ts +0 -22
- package/dist/knowledge/knowledge-transfer-evaluate.d.ts.map +0 -1
- package/dist/knowledge/knowledge-transfer-evaluate.js +0 -109
- package/dist/knowledge/knowledge-transfer-evaluate.js.map +0 -1
- package/dist/knowledge/knowledge-transfer-meta.d.ts +0 -38
- package/dist/knowledge/knowledge-transfer-meta.d.ts.map +0 -1
- package/dist/knowledge/knowledge-transfer-meta.js +0 -180
- package/dist/knowledge/knowledge-transfer-meta.js.map +0 -1
- package/dist/knowledge/knowledge-transfer-prompts.d.ts +0 -46
- package/dist/knowledge/knowledge-transfer-prompts.d.ts.map +0 -1
- package/dist/knowledge/knowledge-transfer-prompts.js.map +0 -1
- package/dist/knowledge/knowledge-transfer-types.d.ts +0 -20
- package/dist/knowledge/knowledge-transfer-types.d.ts.map +0 -1
- package/dist/knowledge/knowledge-transfer-types.js.map +0 -1
- package/dist/knowledge/knowledge-transfer.d.ts +0 -83
- package/dist/knowledge/knowledge-transfer.d.ts.map +0 -1
- package/dist/knowledge/knowledge-transfer.js.map +0 -1
- package/dist/knowledge/learning-cross-goal.d.ts +0 -19
- package/dist/knowledge/learning-cross-goal.d.ts.map +0 -1
- package/dist/knowledge/learning-cross-goal.js +0 -173
- package/dist/knowledge/learning-cross-goal.js.map +0 -1
- package/dist/knowledge/learning-exports.d.ts +0 -4
- package/dist/knowledge/learning-exports.d.ts.map +0 -1
- package/dist/knowledge/learning-exports.js.map +0 -1
- package/dist/knowledge/learning-feedback.d.ts +0 -26
- package/dist/knowledge/learning-feedback.d.ts.map +0 -1
- package/dist/knowledge/learning-feedback.js +0 -183
- package/dist/knowledge/learning-feedback.js.map +0 -1
- package/dist/knowledge/learning-pipeline-prompts.d.ts +0 -134
- package/dist/knowledge/learning-pipeline-prompts.d.ts.map +0 -1
- package/dist/knowledge/learning-pipeline-prompts.js +0 -103
- package/dist/knowledge/learning-pipeline-prompts.js.map +0 -1
- package/dist/knowledge/learning-pipeline.d.ts +0 -105
- package/dist/knowledge/learning-pipeline.d.ts.map +0 -1
- package/dist/knowledge/learning-pipeline.js +0 -465
- package/dist/knowledge/learning-pipeline.js.map +0 -1
- package/dist/knowledge/memory-compression.d.ts +0 -44
- package/dist/knowledge/memory-compression.d.ts.map +0 -1
- package/dist/knowledge/memory-compression.js +0 -291
- package/dist/knowledge/memory-compression.js.map +0 -1
- package/dist/knowledge/memory-distill.d.ts +0 -31
- package/dist/knowledge/memory-distill.d.ts.map +0 -1
- package/dist/knowledge/memory-distill.js.map +0 -1
- package/dist/knowledge/memory-exports.d.ts +0 -7
- package/dist/knowledge/memory-exports.d.ts.map +0 -1
- package/dist/knowledge/memory-exports.js.map +0 -1
- package/dist/knowledge/memory-index.d.ts +0 -11
- package/dist/knowledge/memory-index.d.ts.map +0 -1
- package/dist/knowledge/memory-index.js +0 -134
- package/dist/knowledge/memory-index.js.map +0 -1
- package/dist/knowledge/memory-lifecycle.d.ts +0 -169
- package/dist/knowledge/memory-lifecycle.d.ts.map +0 -1
- package/dist/knowledge/memory-lifecycle.js +0 -402
- package/dist/knowledge/memory-lifecycle.js.map +0 -1
- package/dist/knowledge/memory-persistence.d.ts +0 -30
- package/dist/knowledge/memory-persistence.d.ts.map +0 -1
- package/dist/knowledge/memory-persistence.js.map +0 -1
- package/dist/knowledge/memory-phases.d.ts +0 -14
- package/dist/knowledge/memory-phases.d.ts.map +0 -1
- package/dist/knowledge/memory-phases.js +0 -14
- package/dist/knowledge/memory-phases.js.map +0 -1
- package/dist/knowledge/memory-query.d.ts +0 -4
- package/dist/knowledge/memory-query.d.ts.map +0 -1
- package/dist/knowledge/memory-query.js +0 -64
- package/dist/knowledge/memory-query.js.map +0 -1
- package/dist/knowledge/memory-selection.d.ts +0 -73
- package/dist/knowledge/memory-selection.d.ts.map +0 -1
- package/dist/knowledge/memory-selection.js +0 -328
- package/dist/knowledge/memory-selection.js.map +0 -1
- package/dist/knowledge/memory-stats.d.ts +0 -7
- package/dist/knowledge/memory-stats.d.ts.map +0 -1
- package/dist/knowledge/memory-stats.js +0 -162
- package/dist/knowledge/memory-stats.js.map +0 -1
- package/dist/knowledge/memory-tier.d.ts +0 -65
- package/dist/knowledge/memory-tier.d.ts.map +0 -1
- package/dist/knowledge/memory-tier.js.map +0 -1
- package/dist/knowledge/transfer-trust.d.ts +0 -40
- package/dist/knowledge/transfer-trust.d.ts.map +0 -1
- package/dist/knowledge/transfer-trust.js +0 -137
- package/dist/knowledge/transfer-trust.js.map +0 -1
- package/dist/knowledge-graph.d.ts +0 -70
- package/dist/knowledge-graph.d.ts.map +0 -1
- package/dist/knowledge-graph.js +0 -194
- package/dist/knowledge-graph.js.map +0 -1
- package/dist/knowledge-manager.d.ts +0 -110
- package/dist/knowledge-manager.d.ts.map +0 -1
- package/dist/knowledge-manager.js +0 -544
- package/dist/knowledge-manager.js.map +0 -1
- package/dist/knowledge-transfer.d.ts +0 -101
- package/dist/knowledge-transfer.d.ts.map +0 -1
- package/dist/knowledge-transfer.js +0 -484
- package/dist/knowledge-transfer.js.map +0 -1
- package/dist/learning-pipeline.d.ts +0 -107
- package/dist/learning-pipeline.d.ts.map +0 -1
- package/dist/learning-pipeline.js +0 -840
- package/dist/learning-pipeline.js.map +0 -1
- package/dist/llm-client.d.ts +0 -65
- package/dist/llm-client.d.ts.map +0 -1
- package/dist/llm-client.js +0 -151
- package/dist/llm-client.js.map +0 -1
- package/dist/logger.d.ts +0 -30
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -121
- package/dist/logger.js.map +0 -1
- package/dist/memory-lifecycle.d.ts +0 -244
- package/dist/memory-lifecycle.d.ts.map +0 -1
- package/dist/memory-lifecycle.js +0 -1328
- package/dist/memory-lifecycle.js.map +0 -1
- package/dist/notification-dispatcher.d.ts +0 -36
- package/dist/notification-dispatcher.d.ts.map +0 -1
- package/dist/notification-dispatcher.js +0 -363
- package/dist/notification-dispatcher.js.map +0 -1
- package/dist/observation-engine.d.ts +0 -218
- package/dist/observation-engine.d.ts.map +0 -1
- package/dist/observation-engine.js +0 -711
- package/dist/observation-engine.js.map +0 -1
- package/dist/ollama-client.d.ts +0 -30
- package/dist/ollama-client.d.ts.map +0 -1
- package/dist/ollama-client.js +0 -112
- package/dist/ollama-client.js.map +0 -1
- package/dist/openai-client.d.ts +0 -40
- package/dist/openai-client.d.ts.map +0 -1
- package/dist/openai-client.js +0 -155
- package/dist/openai-client.js.map +0 -1
- package/dist/pid-manager.d.ts +0 -18
- package/dist/pid-manager.d.ts.map +0 -1
- package/dist/pid-manager.js +0 -64
- package/dist/pid-manager.js.map +0 -1
- package/dist/portfolio-manager.d.ts +0 -147
- package/dist/portfolio-manager.d.ts.map +0 -1
- package/dist/portfolio-manager.js +0 -371
- package/dist/portfolio-manager.js.map +0 -1
- package/dist/portfolio-rebalance.d.ts +0 -75
- package/dist/portfolio-rebalance.d.ts.map +0 -1
- package/dist/portfolio-rebalance.js.map +0 -1
- package/dist/provider-config.d.ts +0 -43
- package/dist/provider-config.d.ts.map +0 -1
- package/dist/provider-config.js +0 -131
- package/dist/provider-config.js.map +0 -1
- package/dist/provider-factory.d.ts +0 -23
- package/dist/provider-factory.d.ts.map +0 -1
- package/dist/provider-factory.js +0 -83
- package/dist/provider-factory.js.map +0 -1
- package/dist/reporting-engine.d.ts +0 -58
- package/dist/reporting-engine.d.ts.map +0 -1
- package/dist/reporting-engine.js +0 -592
- package/dist/reporting-engine.js.map +0 -1
- package/dist/satisficing-judge.d.ts +0 -113
- package/dist/satisficing-judge.d.ts.map +0 -1
- package/dist/satisficing-judge.js +0 -592
- package/dist/satisficing-judge.js.map +0 -1
- package/dist/session-manager.d.ts +0 -159
- package/dist/session-manager.d.ts.map +0 -1
- package/dist/session-manager.js +0 -458
- package/dist/session-manager.js.map +0 -1
- package/dist/stall-detector.d.ts +0 -100
- package/dist/stall-detector.d.ts.map +0 -1
- package/dist/stall-detector.js +0 -306
- package/dist/stall-detector.js.map +0 -1
- package/dist/state-aggregator.d.ts +0 -89
- package/dist/state-aggregator.d.ts.map +0 -1
- package/dist/state-aggregator.js +0 -290
- package/dist/state-aggregator.js.map +0 -1
- package/dist/state-manager.d.ts +0 -104
- package/dist/state-manager.d.ts.map +0 -1
- package/dist/state-manager.js +0 -523
- package/dist/state-manager.js.map +0 -1
- package/dist/strategy-manager.d.ts +0 -128
- package/dist/strategy-manager.d.ts.map +0 -1
- package/dist/strategy-manager.js +0 -579
- package/dist/strategy-manager.js.map +0 -1
- package/dist/strategy-template-registry.d.ts +0 -80
- package/dist/strategy-template-registry.d.ts.map +0 -1
- package/dist/strategy-template-registry.js +0 -320
- package/dist/strategy-template-registry.js.map +0 -1
- package/dist/task-lifecycle.d.ts +0 -167
- package/dist/task-lifecycle.d.ts.map +0 -1
- package/dist/task-lifecycle.js +0 -1161
- package/dist/task-lifecycle.js.map +0 -1
- package/dist/tree-loop-orchestrator.d.ts +0 -79
- package/dist/tree-loop-orchestrator.d.ts.map +0 -1
- package/dist/tree-loop-orchestrator.js +0 -225
- package/dist/tree-loop-orchestrator.js.map +0 -1
- package/dist/trust-manager.d.ts +0 -67
- package/dist/trust-manager.d.ts.map +0 -1
- package/dist/trust-manager.js +0 -201
- package/dist/trust-manager.js.map +0 -1
- package/dist/vector-index.d.ts +0 -39
- package/dist/vector-index.d.ts.map +0 -1
- package/dist/vector-index.js +0 -111
- package/dist/vector-index.js.map +0 -1
- /package/dist/adapters/{openclaw-acp.js → agents/openclaw-acp.js} +0 -0
- /package/dist/adapters/{file-existence-datasource.js → datasources/file-existence-datasource.js} +0 -0
- /package/dist/adapters/{github-issue-datasource.js → datasources/github-issue-datasource.js} +0 -0
- /package/dist/adapters/{mcp-datasource.js → datasources/mcp-datasource.js} +0 -0
- /package/dist/adapters/{openclaw-datasource.js → datasources/openclaw-datasource.js} +0 -0
- /package/dist/adapters/{shell-datasource.js → datasources/shell-datasource.js} +0 -0
- /package/dist/{cli-runner.d.ts → cli/cli-runner.d.ts} +0 -0
- /package/dist/execution/{context-budget.js → context/context-budget.js} +0 -0
- /package/dist/execution/{issue-context-fetcher.d.ts → context/issue-context-fetcher.d.ts} +0 -0
- /package/dist/execution/{task-approval-check.js → task/task-approval-check.js} +0 -0
- /package/dist/execution/{task-health-check.d.ts → task/task-health-check.d.ts} +0 -0
- /package/dist/execution/{task-health-check.js → task/task-health-check.js} +0 -0
- /package/dist/knowledge/{learning-exports.js → learning/learning-exports.js} +0 -0
- /package/dist/knowledge/{memory-distill.js → memory/memory-distill.js} +0 -0
- /package/dist/knowledge/{memory-exports.js → memory/memory-exports.js} +0 -0
- /package/dist/knowledge/{memory-persistence.js → memory/memory-persistence.js} +0 -0
- /package/dist/knowledge/{memory-tier.js → memory/memory-tier.js} +0 -0
- /package/dist/knowledge/{knowledge-transfer-prompts.js → transfer/knowledge-transfer-prompts.js} +0 -0
- /package/dist/knowledge/{knowledge-transfer-types.js → transfer/knowledge-transfer-types.js} +0 -0
- /package/dist/knowledge/{knowledge-transfer.js → transfer/knowledge-transfer.js} +0 -0
- /package/dist/{portfolio-rebalance.js → orchestrator/strategy/portfolio-rebalance.js} +0 -0
- /package/dist/{embedding-client.d.ts → platform/knowledge/embedding-client.d.ts} +0 -0
- /package/dist/{embedding-client.js → platform/knowledge/embedding-client.js} +0 -0
- /package/dist/{guardrail-runner.js → platform/traits/guardrail-runner.js} +0 -0
package/dist/memory-lifecycle.js
DELETED
|
@@ -1,1328 +0,0 @@
|
|
|
1
|
-
import { randomUUID } from "node:crypto";
|
|
2
|
-
import * as fs from "node:fs";
|
|
3
|
-
import * as path from "node:path";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { ShortTermEntrySchema, LessonEntrySchema, StatisticalSummarySchema, MemoryIndexSchema, RetentionConfigSchema, } from "./types/memory-lifecycle.js";
|
|
6
|
-
/**
|
|
7
|
-
* DriveScoreAdapter adapts DriveScore[] output from DriveScorer
|
|
8
|
-
* to the IDriveScorer interface expected by MemoryLifecycleManager.
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* const adapter = new DriveScoreAdapter();
|
|
12
|
-
* // After each drive scoring step in CoreLoop:
|
|
13
|
-
* adapter.update(driveScores);
|
|
14
|
-
* // MemoryLifecycleManager reads via getDissatisfactionScore()
|
|
15
|
-
*/
|
|
16
|
-
export class DriveScoreAdapter {
|
|
17
|
-
scores = new Map();
|
|
18
|
-
/**
|
|
19
|
-
* Replace the stored drive scores with the latest batch.
|
|
20
|
-
* Each entry must have a dimension_name and dissatisfaction score.
|
|
21
|
-
*/
|
|
22
|
-
update(driveScores) {
|
|
23
|
-
this.scores.clear();
|
|
24
|
-
for (const s of driveScores) {
|
|
25
|
-
this.scores.set(s.dimension_name, s.dissatisfaction);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Returns the stored dissatisfaction score for the given dimension.
|
|
30
|
-
* Returns 0 if the dimension is unknown (safe default: no delay inflation).
|
|
31
|
-
*/
|
|
32
|
-
getDissatisfactionScore(dimension) {
|
|
33
|
-
return this.scores.get(dimension) ?? 0;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
// ─── LLM response schemas ───
|
|
37
|
-
const PatternExtractionResponseSchema = z.object({
|
|
38
|
-
patterns: z.array(z.string()),
|
|
39
|
-
});
|
|
40
|
-
const LessonDistillationResponseSchema = z.object({
|
|
41
|
-
lessons: z.array(z.object({
|
|
42
|
-
type: z.enum(["strategy_outcome", "success_pattern", "failure_pattern"]),
|
|
43
|
-
context: z.string(),
|
|
44
|
-
action: z.string().optional(),
|
|
45
|
-
outcome: z.string().optional(),
|
|
46
|
-
lesson: z.string(),
|
|
47
|
-
relevance_tags: z.array(z.string()).default([]),
|
|
48
|
-
failure_reason: z.string().optional(),
|
|
49
|
-
avoidance_hint: z.string().optional(),
|
|
50
|
-
applicability: z.string().optional(),
|
|
51
|
-
})),
|
|
52
|
-
});
|
|
53
|
-
// ─── MemoryLifecycleManager ───
|
|
54
|
-
/**
|
|
55
|
-
* MemoryLifecycleManager handles the 3-tier memory model:
|
|
56
|
-
* - Working Memory: view/selection from Short-term + Long-term (1 session lifetime)
|
|
57
|
-
* - Short-term Memory: raw data, configurable retention (default: 100 loops)
|
|
58
|
-
* - Long-term Memory: compressed lessons + statistics (permanent)
|
|
59
|
-
*
|
|
60
|
-
* Directory layout:
|
|
61
|
-
* <base>/memory/short-term/goals/<goal_id>/{experience-log,observations,strategies,tasks}.json
|
|
62
|
-
* <base>/memory/short-term/index.json
|
|
63
|
-
* <base>/memory/long-term/lessons/by-goal/<goal_id>.json
|
|
64
|
-
* <base>/memory/long-term/lessons/by-dimension/<dim>.json
|
|
65
|
-
* <base>/memory/long-term/lessons/global.json
|
|
66
|
-
* <base>/memory/long-term/statistics/<goal_id>.json
|
|
67
|
-
* <base>/memory/long-term/index.json
|
|
68
|
-
* <base>/memory/archive/<goal_id>/{lessons,statistics}.json
|
|
69
|
-
*/
|
|
70
|
-
export class MemoryLifecycleManager {
|
|
71
|
-
baseDir;
|
|
72
|
-
memoryDir;
|
|
73
|
-
llmClient;
|
|
74
|
-
config;
|
|
75
|
-
embeddingClient;
|
|
76
|
-
vectorIndex;
|
|
77
|
-
driveScorer;
|
|
78
|
-
// Phase 2: internal map for early compression candidates
|
|
79
|
-
earlyCompressionCandidates = new Map();
|
|
80
|
-
constructor(baseDir, llmClient, config, embeddingClient, vectorIndex, driveScorer) {
|
|
81
|
-
this.baseDir = baseDir;
|
|
82
|
-
this.memoryDir = path.join(baseDir, "memory");
|
|
83
|
-
this.llmClient = llmClient;
|
|
84
|
-
this.config = RetentionConfigSchema.parse(config ?? {});
|
|
85
|
-
this.embeddingClient = embeddingClient;
|
|
86
|
-
this.vectorIndex = vectorIndex;
|
|
87
|
-
this.driveScorer = driveScorer;
|
|
88
|
-
}
|
|
89
|
-
// ─── Directory Initialization ───
|
|
90
|
-
/** Create directory structure for memory storage */
|
|
91
|
-
initializeDirectories() {
|
|
92
|
-
const dirs = [
|
|
93
|
-
path.join(this.memoryDir, "short-term", "goals"),
|
|
94
|
-
path.join(this.memoryDir, "long-term", "lessons", "by-goal"),
|
|
95
|
-
path.join(this.memoryDir, "long-term", "lessons", "by-dimension"),
|
|
96
|
-
path.join(this.memoryDir, "long-term", "statistics"),
|
|
97
|
-
path.join(this.memoryDir, "archive"),
|
|
98
|
-
];
|
|
99
|
-
for (const dir of dirs) {
|
|
100
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
101
|
-
}
|
|
102
|
-
// Initialize index files if they don't exist
|
|
103
|
-
this.initializeIndex("short-term");
|
|
104
|
-
this.initializeIndex("long-term");
|
|
105
|
-
// Initialize global lessons file
|
|
106
|
-
const globalPath = path.join(this.memoryDir, "long-term", "lessons", "global.json");
|
|
107
|
-
if (!fs.existsSync(globalPath)) {
|
|
108
|
-
this.atomicWrite(globalPath, []);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
// ─── Short-term Memory ───
|
|
112
|
-
/**
|
|
113
|
-
* Record an entry to short-term memory.
|
|
114
|
-
* Appends to the appropriate data file and updates the short-term index.
|
|
115
|
-
*/
|
|
116
|
-
recordToShortTerm(goalId, dataType, data, options) {
|
|
117
|
-
// Ensure goal directory exists
|
|
118
|
-
const goalDir = path.join(this.memoryDir, "short-term", "goals", goalId);
|
|
119
|
-
fs.mkdirSync(goalDir, { recursive: true });
|
|
120
|
-
const now = new Date().toISOString();
|
|
121
|
-
const entry = ShortTermEntrySchema.parse({
|
|
122
|
-
id: this.generateId("st"),
|
|
123
|
-
goal_id: goalId,
|
|
124
|
-
data_type: dataType,
|
|
125
|
-
loop_number: options?.loopNumber ?? 0,
|
|
126
|
-
timestamp: now,
|
|
127
|
-
dimensions: options?.dimensions ?? [],
|
|
128
|
-
tags: options?.tags ?? [],
|
|
129
|
-
data,
|
|
130
|
-
});
|
|
131
|
-
// Append to appropriate file
|
|
132
|
-
const dataFile = this.getDataFile(goalId, dataType);
|
|
133
|
-
const existing = this.readJsonFile(dataFile, z.array(ShortTermEntrySchema));
|
|
134
|
-
const entries = existing ?? [];
|
|
135
|
-
entries.push(entry);
|
|
136
|
-
this.atomicWrite(dataFile, entries);
|
|
137
|
-
// Update short-term index
|
|
138
|
-
this.updateIndex("short-term", {
|
|
139
|
-
id: this.generateId("idx"),
|
|
140
|
-
goal_id: goalId,
|
|
141
|
-
dimensions: entry.dimensions,
|
|
142
|
-
tags: entry.tags,
|
|
143
|
-
timestamp: entry.timestamp,
|
|
144
|
-
data_file: path.relative(path.join(this.memoryDir, "short-term"), dataFile),
|
|
145
|
-
entry_id: entry.id,
|
|
146
|
-
last_accessed: now,
|
|
147
|
-
access_count: 0,
|
|
148
|
-
embedding_id: null,
|
|
149
|
-
});
|
|
150
|
-
// Phase 2: fire-and-forget embedding indexing
|
|
151
|
-
if (this.vectorIndex) {
|
|
152
|
-
const textToEmbed = `${dataType}: ${JSON.stringify(data).slice(0, 500)}`;
|
|
153
|
-
this.vectorIndex
|
|
154
|
-
.add(entry.id, textToEmbed, { goal_id: goalId, data_type: dataType })
|
|
155
|
-
.then(() => {
|
|
156
|
-
entry.embedding_id = entry.id;
|
|
157
|
-
})
|
|
158
|
-
.catch(() => {
|
|
159
|
-
// Non-fatal: embedding failures are ignored
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
return entry;
|
|
163
|
-
}
|
|
164
|
-
// ─── Long-term Compression ───
|
|
165
|
-
/**
|
|
166
|
-
* Compress short-term entries to long-term using LLM-based pattern extraction.
|
|
167
|
-
* Never deletes short-term data if LLM compression fails.
|
|
168
|
-
*/
|
|
169
|
-
async compressToLongTerm(goalId, dataType) {
|
|
170
|
-
const now = new Date().toISOString();
|
|
171
|
-
const dataFile = this.getDataFile(goalId, dataType);
|
|
172
|
-
const allEntries = this.readJsonFile(dataFile, z.array(ShortTermEntrySchema)) ?? [];
|
|
173
|
-
// Determine the retention limit for this goal
|
|
174
|
-
const retentionLimit = this.getRetentionLimit(goalId);
|
|
175
|
-
// Find entries eligible for compression (loop_number exceeds retention limit)
|
|
176
|
-
const maxLoopNumber = allEntries.reduce((max, e) => Math.max(max, e.loop_number), 0);
|
|
177
|
-
const cutoffLoop = maxLoopNumber - retentionLimit;
|
|
178
|
-
const expiredEntries = allEntries.filter((e) => e.loop_number <= cutoffLoop);
|
|
179
|
-
if (expiredEntries.length === 0) {
|
|
180
|
-
return {
|
|
181
|
-
goal_id: goalId,
|
|
182
|
-
data_type: dataType,
|
|
183
|
-
entries_compressed: 0,
|
|
184
|
-
lessons_generated: 0,
|
|
185
|
-
statistics_updated: false,
|
|
186
|
-
quality_check: {
|
|
187
|
-
passed: true,
|
|
188
|
-
failure_coverage_ratio: 1,
|
|
189
|
-
contradictions_found: 0,
|
|
190
|
-
},
|
|
191
|
-
compressed_at: now,
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
let lessons = [];
|
|
195
|
-
let qualityCheck = {
|
|
196
|
-
passed: false,
|
|
197
|
-
failure_coverage_ratio: 0,
|
|
198
|
-
contradictions_found: 0,
|
|
199
|
-
};
|
|
200
|
-
try {
|
|
201
|
-
// Step 1: Extract patterns from entries
|
|
202
|
-
const patterns = await this.extractPatterns(expiredEntries);
|
|
203
|
-
// Step 2: Distill lessons from patterns
|
|
204
|
-
const rawLessons = await this.distillLessons(patterns, expiredEntries);
|
|
205
|
-
// Attach metadata to each lesson
|
|
206
|
-
const sourceLoops = expiredEntries.map((e) => `loop_${e.loop_number}`);
|
|
207
|
-
lessons = rawLessons.map((l) => LessonEntrySchema.parse({
|
|
208
|
-
...l,
|
|
209
|
-
lesson_id: this.generateId("lesson"),
|
|
210
|
-
goal_id: goalId,
|
|
211
|
-
source_loops: sourceLoops,
|
|
212
|
-
extracted_at: now,
|
|
213
|
-
status: "active",
|
|
214
|
-
superseded_by: undefined,
|
|
215
|
-
}));
|
|
216
|
-
// Step 3: Quality check
|
|
217
|
-
qualityCheck = this.validateCompressionQuality(lessons, expiredEntries);
|
|
218
|
-
if (!qualityCheck.passed) {
|
|
219
|
-
// Quality check failed — do NOT delete short-term data
|
|
220
|
-
return {
|
|
221
|
-
goal_id: goalId,
|
|
222
|
-
data_type: dataType,
|
|
223
|
-
entries_compressed: 0,
|
|
224
|
-
lessons_generated: 0,
|
|
225
|
-
statistics_updated: false,
|
|
226
|
-
quality_check: {
|
|
227
|
-
passed: false,
|
|
228
|
-
failure_coverage_ratio: qualityCheck.failure_coverage_ratio,
|
|
229
|
-
contradictions_found: qualityCheck.contradictions_found,
|
|
230
|
-
},
|
|
231
|
-
compressed_at: now,
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
// Step 4: Store lessons in long-term (by-goal, by-dimension, global)
|
|
235
|
-
this.storeLessonsLongTerm(goalId, lessons, expiredEntries);
|
|
236
|
-
// Phase 2 (5.2c): Auto-register lesson entries in VectorIndex
|
|
237
|
-
if (this.vectorIndex) {
|
|
238
|
-
for (const lesson of lessons) {
|
|
239
|
-
const lessonText = `${lesson.type}: ${lesson.context}. ${lesson.lesson}`;
|
|
240
|
-
this.vectorIndex
|
|
241
|
-
.add(lesson.lesson_id, lessonText, {
|
|
242
|
-
goal_id: goalId,
|
|
243
|
-
is_lesson: true,
|
|
244
|
-
lesson_type: lesson.type,
|
|
245
|
-
})
|
|
246
|
-
.catch(() => {
|
|
247
|
-
// Non-fatal: embedding failures are ignored
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
// Step 5: Update statistics
|
|
252
|
-
this.updateStatistics(goalId, expiredEntries);
|
|
253
|
-
// Step 6: Purge compressed short-term entries (only if compression succeeded)
|
|
254
|
-
const compressedIds = new Set(expiredEntries.map((e) => e.id));
|
|
255
|
-
const remaining = allEntries.filter((e) => !compressedIds.has(e.id));
|
|
256
|
-
this.atomicWrite(dataFile, remaining);
|
|
257
|
-
// Remove purged entries from the short-term index
|
|
258
|
-
this.removeFromIndex("short-term", compressedIds);
|
|
259
|
-
}
|
|
260
|
-
catch {
|
|
261
|
-
// LLM failure — never delete short-term data
|
|
262
|
-
return {
|
|
263
|
-
goal_id: goalId,
|
|
264
|
-
data_type: dataType,
|
|
265
|
-
entries_compressed: 0,
|
|
266
|
-
lessons_generated: 0,
|
|
267
|
-
statistics_updated: false,
|
|
268
|
-
quality_check: {
|
|
269
|
-
passed: false,
|
|
270
|
-
failure_coverage_ratio: 0,
|
|
271
|
-
contradictions_found: 0,
|
|
272
|
-
},
|
|
273
|
-
compressed_at: now,
|
|
274
|
-
};
|
|
275
|
-
}
|
|
276
|
-
return {
|
|
277
|
-
goal_id: goalId,
|
|
278
|
-
data_type: dataType,
|
|
279
|
-
entries_compressed: expiredEntries.length,
|
|
280
|
-
lessons_generated: lessons.length,
|
|
281
|
-
statistics_updated: true,
|
|
282
|
-
quality_check: {
|
|
283
|
-
passed: qualityCheck.passed,
|
|
284
|
-
failure_coverage_ratio: qualityCheck.failure_coverage_ratio,
|
|
285
|
-
contradictions_found: qualityCheck.contradictions_found,
|
|
286
|
-
},
|
|
287
|
-
compressed_at: now,
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
// ─── Working Memory Selection ───
|
|
291
|
-
/**
|
|
292
|
-
* Select relevant entries for working memory.
|
|
293
|
-
* Phase 1: tag exact-match + recency sort.
|
|
294
|
-
* Phase 2 (5.2b): semantic search fallback via VectorIndex if tag results are insufficient.
|
|
295
|
-
* Phase 2 (5.2c): includes cross-goal lessons (up to 25% of budget).
|
|
296
|
-
*/
|
|
297
|
-
selectForWorkingMemory(goalId, dimensions, tags, maxEntries = 10) {
|
|
298
|
-
// 1. Tag-based query: short-term entries for this goal matching dimensions/tags
|
|
299
|
-
const stIndex = this.loadIndex("short-term");
|
|
300
|
-
const matchingIndexEntries = stIndex.entries.filter((ie) => ie.goal_id === goalId &&
|
|
301
|
-
(dimensions.some((d) => ie.dimensions.includes(d)) ||
|
|
302
|
-
tags.some((t) => ie.tags.includes(t))));
|
|
303
|
-
// Sort by last_accessed descending
|
|
304
|
-
matchingIndexEntries.sort((a, b) => new Date(b.last_accessed).getTime() -
|
|
305
|
-
new Date(a.last_accessed).getTime());
|
|
306
|
-
// Load the actual entries
|
|
307
|
-
const shortTermEntries = [];
|
|
308
|
-
const seenEntryIds = new Set();
|
|
309
|
-
for (const idxEntry of matchingIndexEntries) {
|
|
310
|
-
if (shortTermEntries.length >= maxEntries)
|
|
311
|
-
break;
|
|
312
|
-
if (seenEntryIds.has(idxEntry.entry_id))
|
|
313
|
-
continue;
|
|
314
|
-
const dataFilePath = path.join(this.memoryDir, "short-term", idxEntry.data_file);
|
|
315
|
-
const allEntries = this.readJsonFile(dataFilePath, z.array(ShortTermEntrySchema)) ?? [];
|
|
316
|
-
const found = allEntries.find((e) => e.id === idxEntry.entry_id);
|
|
317
|
-
if (found) {
|
|
318
|
-
shortTermEntries.push(found);
|
|
319
|
-
seenEntryIds.add(idxEntry.entry_id);
|
|
320
|
-
// Update access metadata in index
|
|
321
|
-
this.touchIndexEntry("short-term", idxEntry.id);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
// Phase 2 (5.2b): If results are fewer than needed and VectorIndex available, do sync lookup
|
|
325
|
-
// Note: selectForWorkingMemory is sync — semantic search via vectorIndex happens in
|
|
326
|
-
// selectForWorkingMemorySemantic (async). Here we merge from the index directly.
|
|
327
|
-
if (shortTermEntries.length < maxEntries && this.vectorIndex) {
|
|
328
|
-
// Pull all goal entries from the short-term index (not yet in result set) as semantic candidates
|
|
329
|
-
const remaining = stIndex.entries.filter((ie) => ie.goal_id === goalId && !seenEntryIds.has(ie.entry_id));
|
|
330
|
-
// Sort by access count + recency as a proxy
|
|
331
|
-
remaining.sort((a, b) => b.access_count - a.access_count ||
|
|
332
|
-
new Date(b.last_accessed).getTime() - new Date(a.last_accessed).getTime());
|
|
333
|
-
for (const idxEntry of remaining) {
|
|
334
|
-
if (shortTermEntries.length >= maxEntries)
|
|
335
|
-
break;
|
|
336
|
-
if (seenEntryIds.has(idxEntry.entry_id))
|
|
337
|
-
continue;
|
|
338
|
-
const dataFilePath = path.join(this.memoryDir, "short-term", idxEntry.data_file);
|
|
339
|
-
const allEntries = this.readJsonFile(dataFilePath, z.array(ShortTermEntrySchema)) ?? [];
|
|
340
|
-
const found = allEntries.find((e) => e.id === idxEntry.entry_id);
|
|
341
|
-
if (found) {
|
|
342
|
-
shortTermEntries.push(found);
|
|
343
|
-
seenEntryIds.add(idxEntry.entry_id);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
// Re-sort by relevanceScore if driveScorer is available
|
|
347
|
-
if (this.driveScorer) {
|
|
348
|
-
shortTermEntries.sort((a, b) => this.relevanceScore(b, { goalId, dimensions, tags }) -
|
|
349
|
-
this.relevanceScore(a, { goalId, dimensions, tags }));
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
// 2. Query long-term lessons matching tags (cross-goal OK for lessons)
|
|
353
|
-
const goalLessons = this.queryLessons(tags, dimensions, Math.ceil(maxEntries * 0.75));
|
|
354
|
-
// Phase 2 (5.2c): Include cross-goal lessons (up to 25% of budget)
|
|
355
|
-
const crossGoalBudget = Math.max(1, Math.floor(maxEntries * 0.25));
|
|
356
|
-
const crossGoalLessons = this.queryCrossGoalLessons(tags, dimensions, goalId, crossGoalBudget);
|
|
357
|
-
// Deduplicate cross-goal lessons against goal lessons
|
|
358
|
-
const seenLessonIds = new Set(goalLessons.map((l) => l.lesson_id));
|
|
359
|
-
const dedupedCrossGoal = crossGoalLessons.filter((l) => !seenLessonIds.has(l.lesson_id));
|
|
360
|
-
const lessons = [...goalLessons, ...dedupedCrossGoal];
|
|
361
|
-
return { shortTerm: shortTermEntries, lessons };
|
|
362
|
-
}
|
|
363
|
-
// ─── Phase 2: Drive-based Memory Management ───
|
|
364
|
-
/**
|
|
365
|
-
* Dissatisfaction drive: delay compression up to 2x for high-dissatisfaction dimensions.
|
|
366
|
-
* For each dimension, if dissatisfaction > 0.7, delay_factor = 1 + dissatisfaction (max 2.0).
|
|
367
|
-
* Returns map of dimension -> delay_factor.
|
|
368
|
-
*/
|
|
369
|
-
getCompressionDelay(driveScores) {
|
|
370
|
-
const result = new Map();
|
|
371
|
-
for (const { dimension, dissatisfaction } of driveScores) {
|
|
372
|
-
if (dissatisfaction > 0.7) {
|
|
373
|
-
const delayFactor = Math.min(2.0, 1 + dissatisfaction);
|
|
374
|
-
result.set(dimension, delayFactor);
|
|
375
|
-
}
|
|
376
|
-
else {
|
|
377
|
-
result.set(dimension, 1.0);
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
return result;
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Deadline drive: boost Working Memory priority up to 30%.
|
|
384
|
-
* For each dimension, bonus = min(deadline * 0.3, 0.3).
|
|
385
|
-
* Returns map of dimension -> bonus_factor.
|
|
386
|
-
*/
|
|
387
|
-
getDeadlineBonus(driveScores) {
|
|
388
|
-
const result = new Map();
|
|
389
|
-
for (const { dimension, deadline } of driveScores) {
|
|
390
|
-
result.set(dimension, Math.min(deadline * 0.3, 0.3));
|
|
391
|
-
}
|
|
392
|
-
return result;
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* SatisficingJudge hook: mark satisfied dimensions for early compression.
|
|
396
|
-
* Records these dimensions as candidates for early compression.
|
|
397
|
-
*/
|
|
398
|
-
markForEarlyCompression(goalId, satisfiedDimensions) {
|
|
399
|
-
if (!this.earlyCompressionCandidates.has(goalId)) {
|
|
400
|
-
this.earlyCompressionCandidates.set(goalId, new Set());
|
|
401
|
-
}
|
|
402
|
-
const candidates = this.earlyCompressionCandidates.get(goalId);
|
|
403
|
-
for (const dim of satisfiedDimensions) {
|
|
404
|
-
candidates.add(dim);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Return the set of dimensions marked for early compression for a goal.
|
|
409
|
-
*/
|
|
410
|
-
getEarlyCompressionCandidates(goalId) {
|
|
411
|
-
return this.earlyCompressionCandidates.get(goalId) ?? new Set();
|
|
412
|
-
}
|
|
413
|
-
// ─── Phase 2 (5.2a): Drive-scorer-aware helpers ───
|
|
414
|
-
/**
|
|
415
|
-
* Compute a relevance score for a short-term entry given a context.
|
|
416
|
-
*
|
|
417
|
-
* Score = tag_match_ratio * drive_weight * freshness_factor
|
|
418
|
-
* - tag_match_ratio = matching tags / total unique tags (0 if no tags)
|
|
419
|
-
* - drive_weight = DriveScorer dissatisfaction score for first matching
|
|
420
|
-
* dimension (1.0 if no DriveScorer or no dimensions)
|
|
421
|
-
* - freshness_factor = Math.exp(-daysSinceCreation / 30)
|
|
422
|
-
*/
|
|
423
|
-
relevanceScore(entry, context) {
|
|
424
|
-
// 1. Tag match ratio
|
|
425
|
-
const allTags = new Set([...entry.tags, ...context.tags]);
|
|
426
|
-
const matchingTags = entry.tags.filter((t) => context.tags.includes(t)).length;
|
|
427
|
-
const tagMatchRatio = allTags.size > 0 ? matchingTags / allTags.size : 0;
|
|
428
|
-
// 2. Drive weight
|
|
429
|
-
let driveWeight = 1.0;
|
|
430
|
-
if (this.driveScorer) {
|
|
431
|
-
// Use the first dimension that matches entry dimensions or context dimensions
|
|
432
|
-
const relevantDimensions = entry.dimensions.length > 0
|
|
433
|
-
? entry.dimensions
|
|
434
|
-
: context.dimensions;
|
|
435
|
-
if (relevantDimensions.length > 0) {
|
|
436
|
-
const dim = relevantDimensions[0];
|
|
437
|
-
driveWeight = this.driveScorer.getDissatisfactionScore(dim);
|
|
438
|
-
// Clamp to [0.1, 2]: floor at 0.1 so satisfied dimensions don't zero out tag-perfect matches
|
|
439
|
-
driveWeight = Math.max(0.1, driveWeight);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
// 3. Freshness factor (exponential decay over 30 days)
|
|
443
|
-
const createdAt = new Date(entry.timestamp).getTime();
|
|
444
|
-
const daysSinceCreation = (Date.now() - createdAt) / (1000 * 60 * 60 * 24);
|
|
445
|
-
const freshnessFactor = Math.exp(-daysSinceCreation / 30);
|
|
446
|
-
return tagMatchRatio * driveWeight * freshnessFactor;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Compute the effective retention period for a goal/dimension combination.
|
|
450
|
-
*
|
|
451
|
-
* If DriveScorer is available:
|
|
452
|
-
* dissatisfaction > 0.7 → retention_period * 2.0
|
|
453
|
-
* dissatisfaction > 0.4 → retention_period * 1.5
|
|
454
|
-
* otherwise → retention_period
|
|
455
|
-
* If no DriveScorer → retention_period (unchanged).
|
|
456
|
-
*/
|
|
457
|
-
compressionDelay(goalId, dimension) {
|
|
458
|
-
const retentionPeriod = this.getRetentionLimit(goalId);
|
|
459
|
-
if (!this.driveScorer) {
|
|
460
|
-
return retentionPeriod;
|
|
461
|
-
}
|
|
462
|
-
const dissatisfaction = this.driveScorer.getDissatisfactionScore(dimension);
|
|
463
|
-
if (dissatisfaction > 0.7) {
|
|
464
|
-
return retentionPeriod * 2.0;
|
|
465
|
-
}
|
|
466
|
-
else if (dissatisfaction > 0.4) {
|
|
467
|
-
return retentionPeriod * 1.5;
|
|
468
|
-
}
|
|
469
|
-
return retentionPeriod;
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Hook called when the SatisficingJudge determines a dimension is satisfied.
|
|
473
|
-
* Marks the dimension for early compression if satisfied, clears the mark if not.
|
|
474
|
-
*/
|
|
475
|
-
onSatisficingJudgment(goalId, dimension, isSatisfied) {
|
|
476
|
-
if (isSatisfied) {
|
|
477
|
-
// Mark dimension for early compression
|
|
478
|
-
if (!this.earlyCompressionCandidates.has(goalId)) {
|
|
479
|
-
this.earlyCompressionCandidates.set(goalId, new Set());
|
|
480
|
-
}
|
|
481
|
-
this.earlyCompressionCandidates.get(goalId).add(dimension);
|
|
482
|
-
}
|
|
483
|
-
else {
|
|
484
|
-
// Remove from early compression candidates if previously marked
|
|
485
|
-
const candidates = this.earlyCompressionCandidates.get(goalId);
|
|
486
|
-
if (candidates) {
|
|
487
|
-
candidates.delete(dimension);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
// ─── Phase 2 (5.2c): Cross-Goal Lesson Search ───
|
|
492
|
-
/**
|
|
493
|
-
* Search long-term lessons across ALL goals using semantic search.
|
|
494
|
-
* Falls back to tag-based global search if VectorIndex is unavailable.
|
|
495
|
-
*
|
|
496
|
-
* @param query - natural language search query
|
|
497
|
-
* @param topK - maximum number of lessons to return (default 5)
|
|
498
|
-
*/
|
|
499
|
-
async searchCrossGoalLessons(query, topK = 5) {
|
|
500
|
-
if (this.vectorIndex) {
|
|
501
|
-
// Semantic search in vector index
|
|
502
|
-
const results = await this.vectorIndex.search(query, topK * 2, 0.0);
|
|
503
|
-
// Filter to lesson entries (metadata.is_lesson === true)
|
|
504
|
-
const lessonResults = results.filter((r) => r.metadata.is_lesson === true);
|
|
505
|
-
// Load actual lessons from global file
|
|
506
|
-
const globalPath = path.join(this.memoryDir, "long-term", "lessons", "global.json");
|
|
507
|
-
const globalLessons = this.readJsonFile(globalPath, z.array(LessonEntrySchema)) ?? [];
|
|
508
|
-
const lessonMap = new Map(globalLessons.map((l) => [l.lesson_id, l]));
|
|
509
|
-
const matched = [];
|
|
510
|
-
for (const r of lessonResults) {
|
|
511
|
-
const lesson = lessonMap.get(r.id);
|
|
512
|
-
if (lesson && lesson.status === "active") {
|
|
513
|
-
matched.push(lesson);
|
|
514
|
-
if (matched.length >= topK)
|
|
515
|
-
break;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
// If we got enough results from semantic search, return them
|
|
519
|
-
if (matched.length > 0) {
|
|
520
|
-
return matched;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
// Fallback: tag-based global search
|
|
524
|
-
const globalPath = path.join(this.memoryDir, "long-term", "lessons", "global.json");
|
|
525
|
-
const globalLessons = this.readJsonFile(globalPath, z.array(LessonEntrySchema)) ?? [];
|
|
526
|
-
// Simple text match on lesson content
|
|
527
|
-
const queryLower = query.toLowerCase();
|
|
528
|
-
const matching = globalLessons.filter((l) => l.status === "active" &&
|
|
529
|
-
(l.lesson.toLowerCase().includes(queryLower) ||
|
|
530
|
-
l.context.toLowerCase().includes(queryLower) ||
|
|
531
|
-
l.relevance_tags.some((t) => t.toLowerCase().includes(queryLower))));
|
|
532
|
-
// Sort by recency
|
|
533
|
-
matching.sort((a, b) => new Date(b.extracted_at).getTime() - new Date(a.extracted_at).getTime());
|
|
534
|
-
return matching.slice(0, topK);
|
|
535
|
-
}
|
|
536
|
-
// ─── Phase 2: Semantic Working Memory Selection ───
|
|
537
|
-
/**
|
|
538
|
-
* Semantic variant of selectForWorkingMemory.
|
|
539
|
-
* Uses VectorIndex.search() to find semantically relevant entries.
|
|
540
|
-
* Applies deadline bonus to relevance scores.
|
|
541
|
-
* Falls back to existing sync method if no vectorIndex available.
|
|
542
|
-
*/
|
|
543
|
-
async selectForWorkingMemorySemantic(goalId, query, dimensions, tags, maxEntries = 10, driveScores) {
|
|
544
|
-
// Fall back to sync method if no vectorIndex
|
|
545
|
-
if (!this.vectorIndex) {
|
|
546
|
-
return this.selectForWorkingMemory(goalId, dimensions, tags, maxEntries);
|
|
547
|
-
}
|
|
548
|
-
// Compute deadline bonuses per dimension
|
|
549
|
-
const deadlineBonus = driveScores
|
|
550
|
-
? this.getDeadlineBonus(driveScores.map((d) => ({ dimension: d.dimension, deadline: d.deadline })))
|
|
551
|
-
: new Map();
|
|
552
|
-
const maxBonus = deadlineBonus.size > 0
|
|
553
|
-
? Math.max(...Array.from(deadlineBonus.values()))
|
|
554
|
-
: 0;
|
|
555
|
-
// Search vector index for semantically similar entries
|
|
556
|
-
const searchResults = await this.vectorIndex.search(query, maxEntries * 2, 0.0);
|
|
557
|
-
// Filter to this goal's entries
|
|
558
|
-
const goalResults = searchResults.filter((r) => r.metadata.goal_id === goalId);
|
|
559
|
-
// Load short-term index for recency data
|
|
560
|
-
const stIndex = this.loadIndex("short-term");
|
|
561
|
-
const indexEntryMap = new Map(stIndex.entries.map((ie) => [ie.entry_id, ie]));
|
|
562
|
-
// Score entries by combining semantic score + recency + deadline bonus
|
|
563
|
-
const now = Date.now();
|
|
564
|
-
const scoredEntries = [];
|
|
565
|
-
const seenEntryIds = new Set();
|
|
566
|
-
for (const result of goalResults) {
|
|
567
|
-
if (seenEntryIds.has(result.id))
|
|
568
|
-
continue;
|
|
569
|
-
const idxEntry = indexEntryMap.get(result.id);
|
|
570
|
-
if (!idxEntry)
|
|
571
|
-
continue;
|
|
572
|
-
// Compute recency score: normalize last_accessed relative to now
|
|
573
|
-
const ageMs = now - new Date(idxEntry.last_accessed).getTime();
|
|
574
|
-
const ageHours = ageMs / (1000 * 60 * 60);
|
|
575
|
-
const recencyScore = Math.max(0, 1 - ageHours / (24 * 7)); // decay over 1 week
|
|
576
|
-
const combinedScore = result.similarity + recencyScore * 0.3 + maxBonus;
|
|
577
|
-
// Load the actual entry from disk
|
|
578
|
-
const dataFilePath = path.join(this.memoryDir, "short-term", idxEntry.data_file);
|
|
579
|
-
const allEntries = this.readJsonFile(dataFilePath, z.array(ShortTermEntrySchema)) ?? [];
|
|
580
|
-
const found = allEntries.find((e) => e.id === idxEntry.entry_id);
|
|
581
|
-
if (found) {
|
|
582
|
-
scoredEntries.push({ entry: found, combinedScore });
|
|
583
|
-
seenEntryIds.add(result.id);
|
|
584
|
-
this.touchIndexEntry("short-term", idxEntry.id);
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
// Sort by combined score descending and take top maxEntries
|
|
588
|
-
scoredEntries.sort((a, b) => b.combinedScore - a.combinedScore);
|
|
589
|
-
const shortTermEntries = scoredEntries
|
|
590
|
-
.slice(0, maxEntries)
|
|
591
|
-
.map((s) => s.entry);
|
|
592
|
-
// Still use tag/dimension-based lesson query for long-term
|
|
593
|
-
const lessons = this.queryLessons(tags, dimensions, maxEntries);
|
|
594
|
-
return { shortTerm: shortTermEntries, lessons };
|
|
595
|
-
}
|
|
596
|
-
// ─── Retention Policy ───
|
|
597
|
-
/**
|
|
598
|
-
* Apply retention policy — check each data type and trigger compression if needed.
|
|
599
|
-
* Phase 2 (5.2a): uses compressionDelay() per dimension for drive-based retention.
|
|
600
|
-
*/
|
|
601
|
-
async applyRetentionPolicy(goalId) {
|
|
602
|
-
const dataTypes = [
|
|
603
|
-
"experience_log",
|
|
604
|
-
"observation",
|
|
605
|
-
"strategy",
|
|
606
|
-
"task",
|
|
607
|
-
"knowledge",
|
|
608
|
-
];
|
|
609
|
-
const results = [];
|
|
610
|
-
for (const dataType of dataTypes) {
|
|
611
|
-
const dataFile = this.getDataFile(goalId, dataType);
|
|
612
|
-
if (!fs.existsSync(dataFile))
|
|
613
|
-
continue;
|
|
614
|
-
const entries = this.readJsonFile(dataFile, z.array(ShortTermEntrySchema)) ?? [];
|
|
615
|
-
if (entries.length === 0)
|
|
616
|
-
continue;
|
|
617
|
-
const maxLoopNumber = entries.reduce((max, e) => Math.max(max, e.loop_number), 0);
|
|
618
|
-
const minLoopNumber = entries.reduce((min, e) => Math.min(min, e.loop_number), Infinity);
|
|
619
|
-
// Phase 2 (5.2a): compute effective retention limit using drive-based delay.
|
|
620
|
-
// Use the dimensions present in the entries to find the most conservative (highest) delay.
|
|
621
|
-
const allDimensions = [...new Set(entries.flatMap((e) => e.dimensions))];
|
|
622
|
-
let effectiveRetentionLimit;
|
|
623
|
-
if (allDimensions.length > 0 && this.driveScorer) {
|
|
624
|
-
// Take the maximum delay across all dimensions (most conservative = longest retention)
|
|
625
|
-
effectiveRetentionLimit = Math.max(...allDimensions.map((dim) => this.compressionDelay(goalId, dim)));
|
|
626
|
-
}
|
|
627
|
-
else {
|
|
628
|
-
effectiveRetentionLimit = this.getRetentionLimit(goalId);
|
|
629
|
-
}
|
|
630
|
-
// Check for early compression candidates — reduce retention limit if any dimension is satisfied
|
|
631
|
-
const earlyDims = this.earlyCompressionCandidates.get(goalId);
|
|
632
|
-
if (earlyDims && allDimensions.some(d => earlyDims.has(d))) {
|
|
633
|
-
effectiveRetentionLimit = Math.min(effectiveRetentionLimit, Math.floor(this.getRetentionLimit(goalId) * 0.5));
|
|
634
|
-
}
|
|
635
|
-
// Trigger compression if span of loops exceeds effective retention limit
|
|
636
|
-
if (maxLoopNumber - minLoopNumber >= effectiveRetentionLimit) {
|
|
637
|
-
const result = await this.compressToLongTerm(goalId, dataType);
|
|
638
|
-
results.push(result);
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
return results;
|
|
642
|
-
}
|
|
643
|
-
// ─── Goal Close ───
|
|
644
|
-
/**
|
|
645
|
-
* Handle goal completion or cancellation.
|
|
646
|
-
* Compresses all remaining short-term data, then archives.
|
|
647
|
-
*/
|
|
648
|
-
async onGoalClose(goalId, reason) {
|
|
649
|
-
const dataTypes = [
|
|
650
|
-
"experience_log",
|
|
651
|
-
"observation",
|
|
652
|
-
"strategy",
|
|
653
|
-
"task",
|
|
654
|
-
"knowledge",
|
|
655
|
-
];
|
|
656
|
-
// Step 1: Compress all remaining short-term data (best-effort)
|
|
657
|
-
for (const dataType of dataTypes) {
|
|
658
|
-
const dataFile = this.getDataFile(goalId, dataType);
|
|
659
|
-
if (!fs.existsSync(dataFile))
|
|
660
|
-
continue;
|
|
661
|
-
const entries = this.readJsonFile(dataFile, z.array(ShortTermEntrySchema)) ?? [];
|
|
662
|
-
if (entries.length === 0)
|
|
663
|
-
continue;
|
|
664
|
-
try {
|
|
665
|
-
// Force-compress all remaining entries regardless of loop count
|
|
666
|
-
await this.compressAllRemainingToLongTerm(goalId, dataType, entries);
|
|
667
|
-
}
|
|
668
|
-
catch {
|
|
669
|
-
// Failure is acceptable on close — proceed to archive anyway
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
// Step 2: Archive short-term data directory
|
|
673
|
-
const goalShortTermDir = path.join(this.memoryDir, "short-term", "goals", goalId);
|
|
674
|
-
const archiveGoalDir = path.join(this.memoryDir, "archive", goalId);
|
|
675
|
-
if (fs.existsSync(goalShortTermDir)) {
|
|
676
|
-
fs.mkdirSync(archiveGoalDir, { recursive: true });
|
|
677
|
-
// Archive all files from the short-term goal directory
|
|
678
|
-
const files = fs.readdirSync(goalShortTermDir);
|
|
679
|
-
for (const file of files) {
|
|
680
|
-
const srcPath = path.join(goalShortTermDir, file);
|
|
681
|
-
const destPath = path.join(archiveGoalDir, file);
|
|
682
|
-
fs.copyFileSync(srcPath, destPath);
|
|
683
|
-
}
|
|
684
|
-
// Remove from short-term
|
|
685
|
-
fs.rmSync(goalShortTermDir, { recursive: true, force: true });
|
|
686
|
-
// Remove goal's entries from short-term index
|
|
687
|
-
this.removeGoalFromIndex("short-term", goalId);
|
|
688
|
-
}
|
|
689
|
-
// Step 3: Archive long-term data (lessons + statistics) for this goal
|
|
690
|
-
const byGoalLessonsPath = path.join(this.memoryDir, "long-term", "lessons", "by-goal", `${goalId}.json`);
|
|
691
|
-
const statisticsPath = path.join(this.memoryDir, "long-term", "statistics", `${goalId}.json`);
|
|
692
|
-
if (fs.existsSync(byGoalLessonsPath)) {
|
|
693
|
-
fs.mkdirSync(archiveGoalDir, { recursive: true });
|
|
694
|
-
const archiveLessonsPath = path.join(archiveGoalDir, "lessons.json");
|
|
695
|
-
const existingArchive = this.readJsonFile(archiveLessonsPath, z.array(LessonEntrySchema)) ?? [];
|
|
696
|
-
const goalLessons = this.readJsonFile(byGoalLessonsPath, z.array(LessonEntrySchema)) ?? [];
|
|
697
|
-
this.atomicWrite(archiveLessonsPath, [
|
|
698
|
-
...existingArchive,
|
|
699
|
-
...goalLessons,
|
|
700
|
-
]);
|
|
701
|
-
}
|
|
702
|
-
if (fs.existsSync(statisticsPath)) {
|
|
703
|
-
fs.mkdirSync(archiveGoalDir, { recursive: true });
|
|
704
|
-
const archiveStatsPath = path.join(archiveGoalDir, "statistics.json");
|
|
705
|
-
const stats = this.readJsonFile(statisticsPath, StatisticalSummarySchema);
|
|
706
|
-
if (stats) {
|
|
707
|
-
this.atomicWrite(archiveStatsPath, stats);
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
// Step 4: Mark all goal lessons as archived in long-term
|
|
711
|
-
if (fs.existsSync(byGoalLessonsPath)) {
|
|
712
|
-
const lessons = this.readJsonFile(byGoalLessonsPath, z.array(LessonEntrySchema)) ?? [];
|
|
713
|
-
const archived = lessons.map((l) => LessonEntrySchema.parse({ ...l, status: "archived" }));
|
|
714
|
-
this.atomicWrite(byGoalLessonsPath, archived);
|
|
715
|
-
}
|
|
716
|
-
void reason; // used for potential future audit logging
|
|
717
|
-
}
|
|
718
|
-
// ─── Statistics ───
|
|
719
|
-
/**
|
|
720
|
-
* Read and return the statistical summary for a goal.
|
|
721
|
-
*/
|
|
722
|
-
getStatistics(goalId) {
|
|
723
|
-
const statsPath = path.join(this.memoryDir, "long-term", "statistics", `${goalId}.json`);
|
|
724
|
-
return this.readJsonFile(statsPath, StatisticalSummarySchema);
|
|
725
|
-
}
|
|
726
|
-
// ─── Garbage Collection ───
|
|
727
|
-
/**
|
|
728
|
-
* Run garbage collection to enforce size limits.
|
|
729
|
-
* Short-term: 10MB per goal (default). Long-term: 100MB total (default).
|
|
730
|
-
*/
|
|
731
|
-
async runGarbageCollection() {
|
|
732
|
-
const shortTermGoalsDir = path.join(this.memoryDir, "short-term", "goals");
|
|
733
|
-
if (!fs.existsSync(shortTermGoalsDir))
|
|
734
|
-
return;
|
|
735
|
-
const goalDirs = fs
|
|
736
|
-
.readdirSync(shortTermGoalsDir, { withFileTypes: true })
|
|
737
|
-
.filter((d) => d.isDirectory())
|
|
738
|
-
.map((d) => d.name);
|
|
739
|
-
const shortTermLimitBytes = this.config.size_limits.short_term_per_goal_mb * 1024 * 1024;
|
|
740
|
-
// Check short-term size per goal
|
|
741
|
-
for (const goalId of goalDirs) {
|
|
742
|
-
const goalDir = path.join(shortTermGoalsDir, goalId);
|
|
743
|
-
const size = this.getDirectorySize(goalDir);
|
|
744
|
-
if (size > shortTermLimitBytes) {
|
|
745
|
-
// Trigger early compression for all data types
|
|
746
|
-
const dataTypes = [
|
|
747
|
-
"experience_log",
|
|
748
|
-
"observation",
|
|
749
|
-
"strategy",
|
|
750
|
-
"task",
|
|
751
|
-
"knowledge",
|
|
752
|
-
];
|
|
753
|
-
for (const dataType of dataTypes) {
|
|
754
|
-
try {
|
|
755
|
-
await this.compressToLongTerm(goalId, dataType);
|
|
756
|
-
}
|
|
757
|
-
catch {
|
|
758
|
-
// Compression failure is non-fatal for GC
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
// Check long-term total size
|
|
764
|
-
const longTermDir = path.join(this.memoryDir, "long-term");
|
|
765
|
-
if (fs.existsSync(longTermDir)) {
|
|
766
|
-
const longTermSize = this.getDirectorySize(longTermDir);
|
|
767
|
-
const longTermLimitBytes = this.config.size_limits.long_term_total_mb * 1024 * 1024;
|
|
768
|
-
if (longTermSize > longTermLimitBytes) {
|
|
769
|
-
// Archive oldest (by last_accessed) lessons from long-term index
|
|
770
|
-
this.archiveOldestLongTermEntries();
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
// ─── Private: Index Management ───
|
|
775
|
-
initializeIndex(layer) {
|
|
776
|
-
const indexPath = path.join(this.memoryDir, layer, "index.json");
|
|
777
|
-
if (!fs.existsSync(indexPath)) {
|
|
778
|
-
const emptyIndex = MemoryIndexSchema.parse({
|
|
779
|
-
version: 1,
|
|
780
|
-
last_updated: new Date().toISOString(),
|
|
781
|
-
entries: [],
|
|
782
|
-
});
|
|
783
|
-
fs.mkdirSync(path.dirname(indexPath), { recursive: true });
|
|
784
|
-
this.atomicWrite(indexPath, emptyIndex);
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
loadIndex(layer) {
|
|
788
|
-
const indexPath = path.join(this.memoryDir, layer, "index.json");
|
|
789
|
-
const raw = this.readJsonFile(indexPath, MemoryIndexSchema);
|
|
790
|
-
if (raw === null) {
|
|
791
|
-
return MemoryIndexSchema.parse({
|
|
792
|
-
version: 1,
|
|
793
|
-
last_updated: new Date().toISOString(),
|
|
794
|
-
entries: [],
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
|
-
return raw;
|
|
798
|
-
}
|
|
799
|
-
saveIndex(layer, index) {
|
|
800
|
-
const indexPath = path.join(this.memoryDir, layer, "index.json");
|
|
801
|
-
fs.mkdirSync(path.dirname(indexPath), { recursive: true });
|
|
802
|
-
const updated = MemoryIndexSchema.parse({
|
|
803
|
-
...index,
|
|
804
|
-
last_updated: new Date().toISOString(),
|
|
805
|
-
});
|
|
806
|
-
this.atomicWrite(indexPath, updated);
|
|
807
|
-
}
|
|
808
|
-
updateIndex(layer, entry) {
|
|
809
|
-
const index = this.loadIndex(layer);
|
|
810
|
-
index.entries.push(entry);
|
|
811
|
-
this.saveIndex(layer, index);
|
|
812
|
-
}
|
|
813
|
-
removeFromIndex(layer, entryIds) {
|
|
814
|
-
const index = this.loadIndex(layer);
|
|
815
|
-
index.entries = index.entries.filter((ie) => !entryIds.has(ie.entry_id));
|
|
816
|
-
this.saveIndex(layer, index);
|
|
817
|
-
}
|
|
818
|
-
removeGoalFromIndex(layer, goalId) {
|
|
819
|
-
const index = this.loadIndex(layer);
|
|
820
|
-
index.entries = index.entries.filter((ie) => ie.goal_id !== goalId);
|
|
821
|
-
this.saveIndex(layer, index);
|
|
822
|
-
}
|
|
823
|
-
touchIndexEntry(layer, indexId) {
|
|
824
|
-
const index = this.loadIndex(layer);
|
|
825
|
-
const now = new Date().toISOString();
|
|
826
|
-
const updated = index.entries.map((ie) => {
|
|
827
|
-
if (ie.id === indexId) {
|
|
828
|
-
return { ...ie, last_accessed: now, access_count: ie.access_count + 1 };
|
|
829
|
-
}
|
|
830
|
-
return ie;
|
|
831
|
-
});
|
|
832
|
-
this.saveIndex(layer, { ...index, entries: updated });
|
|
833
|
-
}
|
|
834
|
-
archiveOldestLongTermEntries() {
|
|
835
|
-
const index = this.loadIndex("long-term");
|
|
836
|
-
// Sort by last_accessed ascending (oldest first)
|
|
837
|
-
const sorted = [...index.entries].sort((a, b) => new Date(a.last_accessed).getTime() -
|
|
838
|
-
new Date(b.last_accessed).getTime());
|
|
839
|
-
// Archive oldest 10% of entries
|
|
840
|
-
const archiveCount = Math.max(1, Math.floor(sorted.length * 0.1));
|
|
841
|
-
const toArchive = sorted.slice(0, archiveCount);
|
|
842
|
-
const toArchiveIds = new Set(toArchive.map((ie) => ie.entry_id));
|
|
843
|
-
// Remove from active index
|
|
844
|
-
index.entries = index.entries.filter((ie) => !toArchiveIds.has(ie.entry_id));
|
|
845
|
-
this.saveIndex("long-term", index);
|
|
846
|
-
}
|
|
847
|
-
// ─── Private: Lesson Storage ───
|
|
848
|
-
storeLessonsLongTerm(goalId, lessons, sourceEntries) {
|
|
849
|
-
// 1. Store by-goal
|
|
850
|
-
const byGoalPath = path.join(this.memoryDir, "long-term", "lessons", "by-goal", `${goalId}.json`);
|
|
851
|
-
const existingByGoal = this.readJsonFile(byGoalPath, z.array(LessonEntrySchema)) ??
|
|
852
|
-
[];
|
|
853
|
-
this.atomicWrite(byGoalPath, [...existingByGoal, ...lessons]);
|
|
854
|
-
// 2. Store by-dimension (for each unique dimension in source entries)
|
|
855
|
-
const allDimensions = new Set(sourceEntries.flatMap((e) => e.dimensions));
|
|
856
|
-
for (const dim of allDimensions) {
|
|
857
|
-
if (!dim)
|
|
858
|
-
continue;
|
|
859
|
-
const byDimPath = path.join(this.memoryDir, "long-term", "lessons", "by-dimension", `${dim}.json`);
|
|
860
|
-
const existingByDim = this.readJsonFile(byDimPath, z.array(LessonEntrySchema)) ??
|
|
861
|
-
[];
|
|
862
|
-
// Store lessons that have this dimension's tag or are from these source entries
|
|
863
|
-
const relevantLessons = lessons.filter((l) => l.relevance_tags.includes(dim) ||
|
|
864
|
-
l.relevance_tags.length === 0 // include all if no tags
|
|
865
|
-
);
|
|
866
|
-
if (relevantLessons.length > 0) {
|
|
867
|
-
this.atomicWrite(byDimPath, [...existingByDim, ...relevantLessons]);
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
// 3. Store in global (all lessons are cross-goal knowledge)
|
|
871
|
-
const globalPath = path.join(this.memoryDir, "long-term", "lessons", "global.json");
|
|
872
|
-
const existingGlobal = this.readJsonFile(globalPath, z.array(LessonEntrySchema)) ?? [];
|
|
873
|
-
this.atomicWrite(globalPath, [...existingGlobal, ...lessons]);
|
|
874
|
-
// 4. Update long-term index
|
|
875
|
-
const now = new Date().toISOString();
|
|
876
|
-
for (const lesson of lessons) {
|
|
877
|
-
this.updateIndex("long-term", {
|
|
878
|
-
id: this.generateId("ltidx"),
|
|
879
|
-
goal_id: goalId,
|
|
880
|
-
dimensions: sourceEntries
|
|
881
|
-
.filter((e) => lesson.source_loops.includes(`loop_${e.loop_number}`))
|
|
882
|
-
.flatMap((e) => e.dimensions),
|
|
883
|
-
tags: lesson.relevance_tags,
|
|
884
|
-
timestamp: lesson.extracted_at,
|
|
885
|
-
data_file: path.join("lessons", "by-goal", `${goalId}.json`),
|
|
886
|
-
entry_id: lesson.lesson_id,
|
|
887
|
-
last_accessed: now,
|
|
888
|
-
access_count: 0,
|
|
889
|
-
embedding_id: null,
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
// ─── Private: Statistics ───
|
|
894
|
-
updateStatistics(goalId, entries) {
|
|
895
|
-
const statsPath = path.join(this.memoryDir, "long-term", "statistics", `${goalId}.json`);
|
|
896
|
-
const now = new Date().toISOString();
|
|
897
|
-
// Load existing or create fresh
|
|
898
|
-
const existing = this.readJsonFile(statsPath, StatisticalSummarySchema);
|
|
899
|
-
// Compute task statistics from task entries
|
|
900
|
-
const taskEntries = entries.filter((e) => e.data_type === "task");
|
|
901
|
-
const taskCategoryMap = new Map();
|
|
902
|
-
for (const entry of taskEntries) {
|
|
903
|
-
const category = typeof entry.data["task_category"] === "string"
|
|
904
|
-
? entry.data["task_category"]
|
|
905
|
-
: "unknown";
|
|
906
|
-
const status = typeof entry.data["status"] === "string" ? entry.data["status"] : "";
|
|
907
|
-
const durationHours = typeof entry.data["duration_hours"] === "number"
|
|
908
|
-
? entry.data["duration_hours"]
|
|
909
|
-
: 0;
|
|
910
|
-
const current = taskCategoryMap.get(category) ?? {
|
|
911
|
-
total: 0,
|
|
912
|
-
success: 0,
|
|
913
|
-
durations: [],
|
|
914
|
-
};
|
|
915
|
-
current.total++;
|
|
916
|
-
if (status === "completed")
|
|
917
|
-
current.success++;
|
|
918
|
-
if (durationHours > 0)
|
|
919
|
-
current.durations.push(durationHours);
|
|
920
|
-
taskCategoryMap.set(category, current);
|
|
921
|
-
}
|
|
922
|
-
const taskStats = Array.from(taskCategoryMap.entries()).map(([category, stats]) => ({
|
|
923
|
-
task_category: category,
|
|
924
|
-
goal_id: goalId,
|
|
925
|
-
stats: {
|
|
926
|
-
total_count: stats.total,
|
|
927
|
-
success_rate: stats.total > 0 ? stats.success / stats.total : 0,
|
|
928
|
-
avg_duration_hours: stats.durations.length > 0
|
|
929
|
-
? stats.durations.reduce((a, b) => a + b, 0) /
|
|
930
|
-
stats.durations.length
|
|
931
|
-
: 0,
|
|
932
|
-
common_failure_reason: undefined,
|
|
933
|
-
},
|
|
934
|
-
period: this.computePeriod(entries),
|
|
935
|
-
updated_at: now,
|
|
936
|
-
}));
|
|
937
|
-
// Compute dimension statistics from observation entries
|
|
938
|
-
const observationEntries = entries.filter((e) => e.data_type === "observation");
|
|
939
|
-
const dimMap = new Map();
|
|
940
|
-
for (const entry of observationEntries) {
|
|
941
|
-
for (const dim of entry.dimensions) {
|
|
942
|
-
const value = typeof entry.data["value"] === "number" ? entry.data["value"] : null;
|
|
943
|
-
if (value !== null) {
|
|
944
|
-
const arr = dimMap.get(dim) ?? [];
|
|
945
|
-
arr.push(value);
|
|
946
|
-
dimMap.set(dim, arr);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
const dimensionStats = Array.from(dimMap.entries())
|
|
951
|
-
.filter(([, values]) => values.length > 0)
|
|
952
|
-
.map(([dim, values]) => {
|
|
953
|
-
const avg = values.reduce((a, b) => a + b, 0) / values.length;
|
|
954
|
-
const variance = values.reduce((sum, v) => sum + Math.pow(v - avg, 2), 0) /
|
|
955
|
-
values.length;
|
|
956
|
-
const stdDev = Math.sqrt(variance);
|
|
957
|
-
const trend = this.computeTrend(values);
|
|
958
|
-
return {
|
|
959
|
-
dimension_name: dim,
|
|
960
|
-
goal_id: goalId,
|
|
961
|
-
stats: {
|
|
962
|
-
avg_value: avg,
|
|
963
|
-
std_deviation: stdDev,
|
|
964
|
-
trend,
|
|
965
|
-
anomaly_frequency: 0,
|
|
966
|
-
observation_count: values.length,
|
|
967
|
-
},
|
|
968
|
-
period: this.computePeriod(entries),
|
|
969
|
-
updated_at: now,
|
|
970
|
-
};
|
|
971
|
-
});
|
|
972
|
-
// Overall stats
|
|
973
|
-
const totalLoops = entries.length > 0
|
|
974
|
-
? entries[entries.length - 1].loop_number -
|
|
975
|
-
entries[0].loop_number +
|
|
976
|
-
1
|
|
977
|
-
: 0;
|
|
978
|
-
const totalTasks = taskEntries.length;
|
|
979
|
-
const successfulTasks = taskEntries.filter((e) => e.data["status"] === "completed").length;
|
|
980
|
-
const overallSuccessRate = totalTasks > 0 ? successfulTasks / totalTasks : 0;
|
|
981
|
-
// Merge with existing stats
|
|
982
|
-
const mergedTaskStats = this.mergeTaskStats(existing?.task_stats ?? [], taskStats);
|
|
983
|
-
const mergedDimStats = this.mergeDimStats(existing?.dimension_stats ?? [], dimensionStats);
|
|
984
|
-
const summary = StatisticalSummarySchema.parse({
|
|
985
|
-
goal_id: goalId,
|
|
986
|
-
task_stats: mergedTaskStats,
|
|
987
|
-
dimension_stats: mergedDimStats,
|
|
988
|
-
overall: {
|
|
989
|
-
total_loops: (existing?.overall.total_loops ?? 0) + totalLoops,
|
|
990
|
-
total_tasks: (existing?.overall.total_tasks ?? 0) + totalTasks,
|
|
991
|
-
overall_success_rate: overallSuccessRate,
|
|
992
|
-
active_period: this.computePeriod(entries),
|
|
993
|
-
},
|
|
994
|
-
updated_at: now,
|
|
995
|
-
});
|
|
996
|
-
this.atomicWrite(statsPath, summary);
|
|
997
|
-
}
|
|
998
|
-
mergeTaskStats(existing, incoming) {
|
|
999
|
-
const map = new Map(existing.map((s) => [s.task_category, s]));
|
|
1000
|
-
for (const inc of incoming) {
|
|
1001
|
-
const prev = map.get(inc.task_category);
|
|
1002
|
-
if (!prev) {
|
|
1003
|
-
map.set(inc.task_category, inc);
|
|
1004
|
-
continue;
|
|
1005
|
-
}
|
|
1006
|
-
const totalCount = prev.stats.total_count + inc.stats.total_count;
|
|
1007
|
-
const prevSuccess = prev.stats.success_rate * prev.stats.total_count;
|
|
1008
|
-
const incSuccess = inc.stats.success_rate * inc.stats.total_count;
|
|
1009
|
-
map.set(inc.task_category, {
|
|
1010
|
-
...inc,
|
|
1011
|
-
stats: {
|
|
1012
|
-
total_count: totalCount,
|
|
1013
|
-
success_rate: totalCount > 0 ? (prevSuccess + incSuccess) / totalCount : 0,
|
|
1014
|
-
avg_duration_hours: (prev.stats.avg_duration_hours + inc.stats.avg_duration_hours) / 2,
|
|
1015
|
-
common_failure_reason: inc.stats.common_failure_reason,
|
|
1016
|
-
},
|
|
1017
|
-
});
|
|
1018
|
-
}
|
|
1019
|
-
return Array.from(map.values());
|
|
1020
|
-
}
|
|
1021
|
-
mergeDimStats(existing, incoming) {
|
|
1022
|
-
const map = new Map(existing.map((s) => [s.dimension_name, s]));
|
|
1023
|
-
for (const inc of incoming) {
|
|
1024
|
-
map.set(inc.dimension_name, inc); // Replace with latest computation
|
|
1025
|
-
}
|
|
1026
|
-
return Array.from(map.values());
|
|
1027
|
-
}
|
|
1028
|
-
computeTrend(values) {
|
|
1029
|
-
if (values.length < 2)
|
|
1030
|
-
return "stable";
|
|
1031
|
-
const first = values.slice(0, Math.floor(values.length / 2));
|
|
1032
|
-
const second = values.slice(Math.floor(values.length / 2));
|
|
1033
|
-
const avgFirst = first.reduce((a, b) => a + b, 0) / first.length;
|
|
1034
|
-
const avgSecond = second.reduce((a, b) => a + b, 0) / second.length;
|
|
1035
|
-
const delta = avgSecond - avgFirst;
|
|
1036
|
-
const threshold = Math.abs(avgFirst) * 0.05; // 5% change threshold
|
|
1037
|
-
if (delta > threshold)
|
|
1038
|
-
return "rising";
|
|
1039
|
-
if (delta < -threshold)
|
|
1040
|
-
return "falling";
|
|
1041
|
-
return "stable";
|
|
1042
|
-
}
|
|
1043
|
-
computePeriod(entries) {
|
|
1044
|
-
if (entries.length === 0)
|
|
1045
|
-
return "unknown";
|
|
1046
|
-
const timestamps = entries.map((e) => e.timestamp).sort();
|
|
1047
|
-
const first = timestamps[0]?.slice(0, 10) ?? "unknown";
|
|
1048
|
-
const last = timestamps[timestamps.length - 1]?.slice(0, 10) ?? "unknown";
|
|
1049
|
-
return first === last ? first : `${first} to ${last}`;
|
|
1050
|
-
}
|
|
1051
|
-
// ─── Private: Force-compress remaining entries on goal close ───
|
|
1052
|
-
async compressAllRemainingToLongTerm(goalId, dataType, entries) {
|
|
1053
|
-
if (entries.length === 0)
|
|
1054
|
-
return;
|
|
1055
|
-
const now = new Date().toISOString();
|
|
1056
|
-
const patterns = await this.extractPatterns(entries);
|
|
1057
|
-
const rawLessons = await this.distillLessons(patterns, entries);
|
|
1058
|
-
const sourceLoops = entries.map((e) => `loop_${e.loop_number}`);
|
|
1059
|
-
const lessons = rawLessons.map((l) => LessonEntrySchema.parse({
|
|
1060
|
-
...l,
|
|
1061
|
-
lesson_id: this.generateId("lesson"),
|
|
1062
|
-
goal_id: goalId,
|
|
1063
|
-
source_loops: sourceLoops,
|
|
1064
|
-
extracted_at: now,
|
|
1065
|
-
status: "active",
|
|
1066
|
-
superseded_by: undefined,
|
|
1067
|
-
}));
|
|
1068
|
-
this.storeLessonsLongTerm(goalId, lessons, entries);
|
|
1069
|
-
this.updateStatistics(goalId, entries);
|
|
1070
|
-
void dataType; // type info available for future audit logging
|
|
1071
|
-
}
|
|
1072
|
-
// ─── Private: Lesson Query ───
|
|
1073
|
-
queryLessons(tags, dimensions, maxCount) {
|
|
1074
|
-
const results = [];
|
|
1075
|
-
const seen = new Set();
|
|
1076
|
-
// Query by-dimension lessons
|
|
1077
|
-
for (const dim of dimensions) {
|
|
1078
|
-
const byDimPath = path.join(this.memoryDir, "long-term", "lessons", "by-dimension", `${dim}.json`);
|
|
1079
|
-
const lessons = this.readJsonFile(byDimPath, z.array(LessonEntrySchema)) ??
|
|
1080
|
-
[];
|
|
1081
|
-
for (const l of lessons) {
|
|
1082
|
-
if (!seen.has(l.lesson_id) &&
|
|
1083
|
-
l.status === "active" &&
|
|
1084
|
-
results.length < maxCount) {
|
|
1085
|
-
results.push(l);
|
|
1086
|
-
seen.add(l.lesson_id);
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
// Query global lessons matching tags
|
|
1091
|
-
if (results.length < maxCount && tags.length > 0) {
|
|
1092
|
-
const globalPath = path.join(this.memoryDir, "long-term", "lessons", "global.json");
|
|
1093
|
-
const globalLessons = this.readJsonFile(globalPath, z.array(LessonEntrySchema)) ?? [];
|
|
1094
|
-
const matching = globalLessons.filter((l) => !seen.has(l.lesson_id) &&
|
|
1095
|
-
l.status === "active" &&
|
|
1096
|
-
tags.some((t) => l.relevance_tags.includes(t)));
|
|
1097
|
-
// Sort by extracted_at descending (most recent first)
|
|
1098
|
-
matching.sort((a, b) => new Date(b.extracted_at).getTime() -
|
|
1099
|
-
new Date(a.extracted_at).getTime());
|
|
1100
|
-
for (const l of matching) {
|
|
1101
|
-
if (results.length >= maxCount)
|
|
1102
|
-
break;
|
|
1103
|
-
results.push(l);
|
|
1104
|
-
seen.add(l.lesson_id);
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
return results;
|
|
1108
|
-
}
|
|
1109
|
-
// ─── Private: Cross-Goal Lesson Query ───
|
|
1110
|
-
/**
|
|
1111
|
-
* Query lessons from ALL goals except the specified goalId.
|
|
1112
|
-
* Used for cross-goal knowledge transfer in selectForWorkingMemory.
|
|
1113
|
-
*/
|
|
1114
|
-
queryCrossGoalLessons(tags, dimensions, excludeGoalId, maxCount) {
|
|
1115
|
-
const results = [];
|
|
1116
|
-
const seen = new Set();
|
|
1117
|
-
// Query global lessons (which include all goals)
|
|
1118
|
-
const globalPath = path.join(this.memoryDir, "long-term", "lessons", "global.json");
|
|
1119
|
-
const globalLessons = this.readJsonFile(globalPath, z.array(LessonEntrySchema)) ?? [];
|
|
1120
|
-
// Filter to lessons from other goals that match tags or dimensions
|
|
1121
|
-
const crossGoalLessons = globalLessons.filter((l) => l.goal_id !== excludeGoalId &&
|
|
1122
|
-
l.status === "active" &&
|
|
1123
|
-
(tags.some((t) => l.relevance_tags.includes(t)) ||
|
|
1124
|
-
dimensions.some((d) => l.relevance_tags.includes(d))));
|
|
1125
|
-
// Sort by recency
|
|
1126
|
-
crossGoalLessons.sort((a, b) => new Date(b.extracted_at).getTime() - new Date(a.extracted_at).getTime());
|
|
1127
|
-
for (const l of crossGoalLessons) {
|
|
1128
|
-
if (results.length >= maxCount)
|
|
1129
|
-
break;
|
|
1130
|
-
if (!seen.has(l.lesson_id)) {
|
|
1131
|
-
results.push(l);
|
|
1132
|
-
seen.add(l.lesson_id);
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
return results;
|
|
1136
|
-
}
|
|
1137
|
-
// ─── Private: LLM Helpers ───
|
|
1138
|
-
/**
|
|
1139
|
-
* Call LLM to extract recurring patterns from a set of short-term entries.
|
|
1140
|
-
*/
|
|
1141
|
-
async extractPatterns(entries) {
|
|
1142
|
-
const prompt = `Analyze the following experience log entries and extract recurring patterns, key insights, and lessons learned. Focus on what worked, what failed, and why.
|
|
1143
|
-
|
|
1144
|
-
Return a JSON object with a "patterns" array of pattern strings:
|
|
1145
|
-
{
|
|
1146
|
-
"patterns": ["pattern 1", "pattern 2", ...]
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
Entries (${entries.length} total):
|
|
1150
|
-
${JSON.stringify(entries.slice(0, 20).map((e) => ({
|
|
1151
|
-
data_type: e.data_type,
|
|
1152
|
-
loop_number: e.loop_number,
|
|
1153
|
-
dimensions: e.dimensions,
|
|
1154
|
-
tags: e.tags,
|
|
1155
|
-
data: e.data,
|
|
1156
|
-
})), null, 2)}`;
|
|
1157
|
-
const response = await this.llmClient.sendMessage([{ role: "user", content: prompt }], {
|
|
1158
|
-
system: "You are a pattern extraction engine. Analyze experience logs and identify recurring patterns, successes, and failures. Respond with JSON only.",
|
|
1159
|
-
max_tokens: 2048,
|
|
1160
|
-
});
|
|
1161
|
-
try {
|
|
1162
|
-
const parsed = this.llmClient.parseJSON(response.content, PatternExtractionResponseSchema);
|
|
1163
|
-
return parsed.patterns;
|
|
1164
|
-
}
|
|
1165
|
-
catch {
|
|
1166
|
-
return [];
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
/**
|
|
1170
|
-
* Call LLM to convert extracted patterns into structured LessonEntry objects.
|
|
1171
|
-
*/
|
|
1172
|
-
async distillLessons(patterns, entries) {
|
|
1173
|
-
if (patterns.length === 0)
|
|
1174
|
-
return [];
|
|
1175
|
-
const failureEntries = entries.filter((e) => e.data["status"] === "failed" ||
|
|
1176
|
-
e.data["verdict"] === "fail" ||
|
|
1177
|
-
e.data["outcome"] === "failure");
|
|
1178
|
-
const prompt = `Convert the following patterns into structured lessons. For each pattern, determine if it represents a strategy outcome, success pattern, or failure pattern.
|
|
1179
|
-
|
|
1180
|
-
Patterns:
|
|
1181
|
-
${patterns.map((p, i) => `${i + 1}. ${p}`).join("\n")}
|
|
1182
|
-
|
|
1183
|
-
Failure context (${failureEntries.length} failure entries found):
|
|
1184
|
-
${JSON.stringify(failureEntries.slice(0, 5).map((e) => e.data), null, 2)}
|
|
1185
|
-
|
|
1186
|
-
Return a JSON object with a "lessons" array:
|
|
1187
|
-
{
|
|
1188
|
-
"lessons": [
|
|
1189
|
-
{
|
|
1190
|
-
"type": "strategy_outcome" | "success_pattern" | "failure_pattern",
|
|
1191
|
-
"context": "what situation this lesson applies to",
|
|
1192
|
-
"action": "what action was taken (optional)",
|
|
1193
|
-
"outcome": "what result occurred (optional)",
|
|
1194
|
-
"lesson": "the key lesson learned",
|
|
1195
|
-
"relevance_tags": ["tag1", "tag2"],
|
|
1196
|
-
"failure_reason": "why it failed (for failure_pattern only)",
|
|
1197
|
-
"avoidance_hint": "how to avoid next time (for failure_pattern only)",
|
|
1198
|
-
"applicability": "when to apply (for success_pattern only)"
|
|
1199
|
-
}
|
|
1200
|
-
]
|
|
1201
|
-
}`;
|
|
1202
|
-
const response = await this.llmClient.sendMessage([{ role: "user", content: prompt }], {
|
|
1203
|
-
system: "You are a lesson distillation engine. Convert experience patterns into structured, actionable lessons. Respond with JSON only.",
|
|
1204
|
-
max_tokens: 4096,
|
|
1205
|
-
});
|
|
1206
|
-
try {
|
|
1207
|
-
const parsed = this.llmClient.parseJSON(response.content, LessonDistillationResponseSchema);
|
|
1208
|
-
// Normalize: ensure relevance_tags is always a string[]
|
|
1209
|
-
return parsed.lessons.map((l) => ({
|
|
1210
|
-
...l,
|
|
1211
|
-
relevance_tags: l.relevance_tags ?? [],
|
|
1212
|
-
}));
|
|
1213
|
-
}
|
|
1214
|
-
catch {
|
|
1215
|
-
return [];
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
/**
|
|
1219
|
-
* Validate compression quality.
|
|
1220
|
-
* MVP check: lesson_count >= failure_count * 0.5
|
|
1221
|
-
*/
|
|
1222
|
-
validateCompressionQuality(lessons, entries) {
|
|
1223
|
-
// Count failure entries
|
|
1224
|
-
const failureCount = entries.filter((e) => e.data["status"] === "failed" ||
|
|
1225
|
-
e.data["verdict"] === "fail" ||
|
|
1226
|
-
e.data["outcome"] === "failure").length;
|
|
1227
|
-
// MVP ratio check: lessons >= failures * 0.5
|
|
1228
|
-
const lessonCount = lessons.length;
|
|
1229
|
-
const failure_coverage_ratio = failureCount === 0
|
|
1230
|
-
? 1
|
|
1231
|
-
: Math.min(1, lessonCount / (failureCount * 0.5));
|
|
1232
|
-
const passed = failureCount === 0 || lessonCount >= failureCount * 0.5;
|
|
1233
|
-
// Contradiction detection: check for lessons with opposite type covering same context
|
|
1234
|
-
let contradictions_found = 0;
|
|
1235
|
-
for (let i = 0; i < lessons.length; i++) {
|
|
1236
|
-
for (let j = i + 1; j < lessons.length; j++) {
|
|
1237
|
-
const a = lessons[i];
|
|
1238
|
-
const b = lessons[j];
|
|
1239
|
-
const isOppositeType = (a.type === "success_pattern" && b.type === "failure_pattern") ||
|
|
1240
|
-
(a.type === "failure_pattern" && b.type === "success_pattern");
|
|
1241
|
-
const sharesTag = a.relevance_tags.some((t) => b.relevance_tags.includes(t));
|
|
1242
|
-
if (isOppositeType && sharesTag) {
|
|
1243
|
-
contradictions_found++;
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
return {
|
|
1248
|
-
passed,
|
|
1249
|
-
failure_coverage_ratio,
|
|
1250
|
-
contradictions_found,
|
|
1251
|
-
};
|
|
1252
|
-
}
|
|
1253
|
-
// ─── Private: File Helpers ───
|
|
1254
|
-
atomicWrite(filePath, data) {
|
|
1255
|
-
const dir = path.dirname(filePath);
|
|
1256
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
1257
|
-
const tmpPath = filePath + ".tmp";
|
|
1258
|
-
fs.writeFileSync(tmpPath, JSON.stringify(data, null, 2), "utf-8");
|
|
1259
|
-
fs.renameSync(tmpPath, filePath);
|
|
1260
|
-
}
|
|
1261
|
-
readJsonFile(filePath, schema) {
|
|
1262
|
-
if (!fs.existsSync(filePath))
|
|
1263
|
-
return null;
|
|
1264
|
-
try {
|
|
1265
|
-
const content = fs.readFileSync(filePath, "utf-8");
|
|
1266
|
-
const raw = JSON.parse(content);
|
|
1267
|
-
return schema.parse(raw);
|
|
1268
|
-
}
|
|
1269
|
-
catch {
|
|
1270
|
-
return null;
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
/**
|
|
1274
|
-
* Map MemoryDataType to the corresponding short-term JSON file path.
|
|
1275
|
-
*/
|
|
1276
|
-
getDataFile(goalId, dataType) {
|
|
1277
|
-
const fileNames = {
|
|
1278
|
-
experience_log: "experience-log.json",
|
|
1279
|
-
observation: "observations.json",
|
|
1280
|
-
strategy: "strategies.json",
|
|
1281
|
-
task: "tasks.json",
|
|
1282
|
-
knowledge: "knowledge.json",
|
|
1283
|
-
};
|
|
1284
|
-
return path.join(this.memoryDir, "short-term", "goals", goalId, fileNames[dataType]);
|
|
1285
|
-
}
|
|
1286
|
-
generateId(prefix) {
|
|
1287
|
-
return `${prefix}_${randomUUID().replace(/-/g, "").slice(0, 12)}`;
|
|
1288
|
-
}
|
|
1289
|
-
/**
|
|
1290
|
-
* Compute total size of a directory recursively in bytes.
|
|
1291
|
-
*/
|
|
1292
|
-
getDirectorySize(dirPath) {
|
|
1293
|
-
if (!fs.existsSync(dirPath))
|
|
1294
|
-
return 0;
|
|
1295
|
-
let total = 0;
|
|
1296
|
-
const entries = fs.readdirSync(dirPath, { withFileTypes: true });
|
|
1297
|
-
for (const entry of entries) {
|
|
1298
|
-
const entryPath = path.join(dirPath, entry.name);
|
|
1299
|
-
if (entry.isDirectory()) {
|
|
1300
|
-
total += this.getDirectorySize(entryPath);
|
|
1301
|
-
}
|
|
1302
|
-
else {
|
|
1303
|
-
try {
|
|
1304
|
-
total += fs.statSync(entryPath).size;
|
|
1305
|
-
}
|
|
1306
|
-
catch {
|
|
1307
|
-
// Ignore stat errors
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
}
|
|
1311
|
-
return total;
|
|
1312
|
-
}
|
|
1313
|
-
/**
|
|
1314
|
-
* Get the retention loop limit for a goal, considering goal_type_overrides.
|
|
1315
|
-
* Since goalId does not encode goal type in MVP, use default unless caller
|
|
1316
|
-
* configures an override keyed by goalId prefix.
|
|
1317
|
-
*/
|
|
1318
|
-
getRetentionLimit(goalId) {
|
|
1319
|
-
// Check if any override key is a prefix of goalId
|
|
1320
|
-
for (const [key, limit] of Object.entries(this.config.goal_type_overrides)) {
|
|
1321
|
-
if (goalId.startsWith(key) || goalId.includes(key)) {
|
|
1322
|
-
return limit;
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
return this.config.default_retention_loops;
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
//# sourceMappingURL=memory-lifecycle.js.map
|