agent-enderun 1.1.2 → 1.1.4
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/{.enderun/ENDERUN.md → ENDERUN.md} +25 -25
- package/README.md +10 -6
- package/bin/compile.js +13 -14
- package/bin/enderun-dashboard.js +866 -0
- package/bin/generate-cursor-rules.js +78 -0
- package/bin/test-init-run.js +37 -26
- package/bin/validate-agent-army.js +65 -67
- package/bin/watch-memory.js +54 -0
- package/dist/framework-mcp/src/index.js +1 -1
- package/dist/framework-mcp/src/tools/control_plane/locking.d.ts +15 -0
- package/dist/framework-mcp/src/tools/control_plane/locking.js +65 -0
- package/dist/framework-mcp/src/tools/control_plane/locking.js.map +1 -0
- package/dist/framework-mcp/src/tools/control_plane/registry.d.ts +12 -0
- package/dist/framework-mcp/src/tools/control_plane/registry.js +35 -0
- package/dist/framework-mcp/src/tools/control_plane/registry.js.map +1 -0
- package/dist/framework-mcp/src/tools/definitions.js +46 -7
- package/dist/framework-mcp/src/tools/definitions.js.map +1 -1
- package/dist/framework-mcp/src/tools/file_system/write_file.js +16 -2
- package/dist/framework-mcp/src/tools/file_system/write_file.js.map +1 -1
- package/dist/framework-mcp/src/tools/index.d.ts +1 -1
- package/dist/framework-mcp/src/tools/index.js +5 -0
- package/dist/framework-mcp/src/tools/index.js.map +1 -1
- package/dist/framework-mcp/src/tools/messaging/send_message.d.ts +1 -1
- package/dist/framework-mcp/src/tools/messaging/send_message.js +2 -4
- package/dist/framework-mcp/src/tools/messaging/send_message.js.map +1 -1
- package/dist/framework-mcp/src/utils/metrics.d.ts +10 -0
- package/dist/framework-mcp/src/utils/metrics.js +39 -0
- package/dist/framework-mcp/src/utils/metrics.js.map +1 -0
- package/dist/framework-mcp/src/utils/security.js +7 -3
- package/dist/framework-mcp/src/utils/security.js.map +1 -1
- package/dist/src/cli/adapters/types.d.ts +14 -0
- package/dist/src/cli/adapters/types.js +2 -0
- package/dist/src/cli/adapters/types.js.map +1 -0
- package/dist/src/cli/adapters.d.ts +4 -22
- package/dist/src/cli/adapters.js +123 -141
- package/dist/src/cli/adapters.js.map +1 -1
- package/dist/src/cli/commands/check.d.ts +0 -5
- package/dist/src/cli/commands/check.js +64 -76
- package/dist/src/cli/commands/check.js.map +1 -1
- package/dist/src/cli/commands/init.d.ts +1 -1
- package/dist/src/cli/commands/init.js +154 -319
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/log.d.ts +1 -0
- package/dist/src/cli/commands/log.js.map +1 -1
- package/dist/src/cli/commands/memory.js +2 -69
- package/dist/src/cli/commands/memory.js.map +1 -1
- package/dist/src/cli/commands/orchestrate.d.ts +19 -9
- package/dist/src/cli/commands/orchestrate.js +56 -77
- package/dist/src/cli/commands/orchestrate.js.map +1 -1
- package/dist/src/cli/index.js +112 -30
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/utils/app.d.ts +1 -2
- package/dist/src/cli/utils/app.js +2 -2
- package/dist/src/cli/utils/app.js.map +1 -1
- package/dist/src/cli/utils/config-schema.d.ts +139 -0
- package/dist/src/cli/utils/config-schema.js +43 -0
- package/dist/src/cli/utils/config-schema.js.map +1 -0
- package/dist/src/cli/utils/fs.d.ts +2 -4
- package/dist/src/cli/utils/fs.js +9 -26
- package/dist/src/cli/utils/fs.js.map +1 -1
- package/dist/src/cli/utils/memory.d.ts +4 -3
- package/dist/src/cli/utils/memory.js +135 -116
- package/dist/src/cli/utils/memory.js.map +1 -1
- package/dist/src/cli/utils/pkg.js +4 -4
- package/dist/src/cli/utils/pkg.js.map +1 -1
- package/dist/src/cli/utils/ui.d.ts +30 -0
- package/dist/src/cli/utils/ui.js +56 -0
- package/dist/src/cli/utils/ui.js.map +1 -0
- package/dist/src/modules/adapters/antigravity-cli.d.ts +3 -0
- package/dist/src/modules/adapters/antigravity-cli.js +21 -0
- package/dist/src/modules/adapters/antigravity-cli.js.map +1 -0
- package/dist/src/modules/adapters/claude.d.ts +3 -0
- package/dist/src/modules/adapters/claude.js +36 -0
- package/dist/src/modules/adapters/claude.js.map +1 -0
- package/dist/src/modules/adapters/codex.d.ts +3 -0
- package/dist/src/modules/adapters/codex.js +20 -0
- package/dist/src/modules/adapters/codex.js.map +1 -0
- package/dist/src/modules/adapters/cursor.d.ts +3 -0
- package/dist/src/modules/adapters/cursor.js +20 -0
- package/dist/src/modules/adapters/cursor.js.map +1 -0
- package/dist/src/modules/adapters/gemini.d.ts +3 -0
- package/dist/src/modules/adapters/gemini.js +23 -0
- package/dist/src/modules/adapters/gemini.js.map +1 -0
- package/dist/src/modules/adapters/grok.d.ts +3 -0
- package/dist/src/modules/adapters/grok.js +18 -0
- package/dist/src/modules/adapters/grok.js.map +1 -0
- package/dist/src/modules/adapters/shared.d.ts +1 -0
- package/dist/src/modules/adapters/shared.js +79 -0
- package/dist/src/modules/adapters/shared.js.map +1 -0
- package/dist/src/modules/adapters/types.d.ts +14 -0
- package/dist/src/modules/adapters/types.js +2 -0
- package/dist/src/modules/adapters/types.js.map +1 -0
- package/dist/src/modules/agents/definitions.d.ts +13 -0
- package/dist/src/modules/agents/definitions.js +169 -0
- package/dist/src/modules/agents/definitions.js.map +1 -0
- package/dist/src/modules/skills/definitions.d.ts +31 -0
- package/dist/src/modules/skills/definitions.js +32 -0
- package/dist/src/modules/skills/definitions.js.map +1 -0
- package/dist/src/shared/fs.d.ts +3 -0
- package/dist/src/shared/fs.js +24 -0
- package/dist/src/shared/fs.js.map +1 -0
- package/eslint.config.js +1 -0
- package/framework-mcp/dist/index.js +1 -1
- package/framework-mcp/dist/tools/control_plane/locking.js +64 -0
- package/framework-mcp/dist/tools/control_plane/registry.js +34 -0
- package/framework-mcp/dist/tools/definitions.js +49 -8
- package/framework-mcp/dist/tools/file_system/read_file.js +20 -0
- package/framework-mcp/dist/tools/file_system/write_file.js +16 -2
- package/framework-mcp/dist/tools/index.js +5 -0
- package/framework-mcp/dist/tools/messaging/send_message.js +36 -15
- package/framework-mcp/dist/utils/metrics.js +38 -0
- package/framework-mcp/dist/utils/security.js +7 -3
- package/framework-mcp/package.json +1 -1
- package/framework-mcp/src/index.ts +1 -1
- package/framework-mcp/src/tools/control_plane/locking.ts +77 -0
- package/framework-mcp/src/tools/control_plane/registry.ts +44 -0
- package/framework-mcp/src/tools/definitions.ts +46 -7
- package/framework-mcp/src/tools/file_system/write_file.ts +19 -2
- package/framework-mcp/src/tools/index.ts +6 -1
- package/framework-mcp/src/tools/messaging/send_message.ts +2 -3
- package/framework-mcp/src/utils/metrics.ts +53 -0
- package/framework-mcp/src/utils/security.ts +8 -3
- package/framework-mcp/tests/tools/file_system/file_system_tools.test.ts +164 -0
- package/framework-mcp/tsconfig.json +4 -2
- package/package.json +12 -11
- package/src/cli/adapters/types.ts +16 -0
- package/src/cli/adapters.ts +130 -156
- package/src/cli/commands/check.ts +61 -77
- package/src/cli/commands/init.ts +163 -312
- package/src/cli/commands/log.ts +1 -1
- package/src/cli/commands/memory.ts +3 -80
- package/src/cli/commands/orchestrate.ts +76 -90
- package/src/cli/index.ts +121 -29
- package/src/cli/utils/app.ts +3 -3
- package/src/cli/utils/config-schema.ts +48 -0
- package/src/cli/utils/fs.ts +10 -27
- package/src/cli/utils/memory.ts +143 -112
- package/src/cli/utils/pkg.ts +4 -4
- package/src/cli/utils/ui.ts +63 -0
- package/src/modules/adapters/antigravity-cli.ts +25 -0
- package/src/modules/adapters/claude.ts +36 -0
- package/src/modules/adapters/codex.ts +22 -0
- package/src/modules/adapters/cursor.ts +22 -0
- package/src/modules/adapters/gemini.ts +27 -0
- package/src/modules/adapters/grok.ts +20 -0
- package/src/modules/adapters/shared.ts +90 -0
- package/src/modules/adapters/types.ts +16 -0
- package/src/modules/agents/definitions.ts +182 -0
- package/src/modules/skills/definitions.ts +32 -0
- package/src/shared/fs.ts +25 -0
- package/.enderun/BRAIN_DASHBOARD.md +0 -46
- package/.enderun/STATUS.md +0 -61
- package/.enderun/agents/agent_army_schema.json +0 -101
- package/.enderun/agents/analyst.json +0 -32
- package/.enderun/agents/backend.json +0 -32
- package/.enderun/agents/database.json +0 -32
- package/.enderun/agents/devops.json +0 -32
- package/.enderun/agents/explorer.json +0 -32
- package/.enderun/agents/frontend.json +0 -32
- package/.enderun/agents/git.json +0 -32
- package/.enderun/agents/manager.json +0 -32
- package/.enderun/agents/mobile.json +0 -32
- package/.enderun/agents/native.json +0 -32
- package/.enderun/agents/quality.json +0 -32
- package/.enderun/agents/schema/agent-lifecycle-schema.json +0 -41
- package/.enderun/agents/security.json +0 -32
- package/.enderun/benchmarks/.gitkeep +0 -0
- package/.enderun/cli-commands.json +0 -76
- package/.enderun/config.json +0 -13
- package/.enderun/knowledge/ARCHITECTURE.md +0 -1
- package/.enderun/knowledge/SECURITY.md +0 -1
- package/.enderun/knowledge/SHIM_TEMPLATE.md +0 -36
- package/.enderun/knowledge/analyst_reference_guide.md +0 -31
- package/.enderun/knowledge/async_error_handling.md +0 -27
- package/.enderun/knowledge/backend_reference_guide.md +0 -165
- package/.enderun/knowledge/blueprint_driven_construction.md +0 -22
- package/.enderun/knowledge/context_boundary_rules.md +0 -57
- package/.enderun/knowledge/corporate-governance/analyst-contract-integrity-guide.md +0 -92
- package/.enderun/knowledge/corporate-governance/audit-logging-standard.md +0 -59
- package/.enderun/knowledge/corporate-governance/backend-high-risk-endpoint-guide.md +0 -125
- package/.enderun/knowledge/corporate-governance/branded-types-law.md +0 -77
- package/.enderun/knowledge/corporate-governance/contract-drift-detection-simulation.md +0 -92
- package/.enderun/knowledge/corporate-governance/corporate-governance-playbook.md +0 -89
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-checklist.md +0 -56
- package/.enderun/knowledge/corporate-governance/corporate-project-kickoff-simulation.md +0 -144
- package/.enderun/knowledge/corporate-governance/corporate-project-scaffolding-sop.md +0 -103
- package/.enderun/knowledge/corporate-governance/domain-error-handling-standard.md +0 -75
- package/.enderun/knowledge/corporate-governance/frontend-high-risk-modal-guide.md +0 -211
- package/.enderun/knowledge/corporate-governance/governance-baseline-briefing-template.md +0 -54
- package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow-simulation.md +0 -167
- package/.enderun/knowledge/corporate-governance/high-risk-action-approval-flow.md +0 -29
- package/.enderun/knowledge/corporate-governance/high-risk-actions-managerapproval.md +0 -76
- package/.enderun/knowledge/corporate-governance/high-risk-security-modal-hermes-flow.md +0 -49
- package/.enderun/knowledge/corporate-governance/manager-first-30-days-guide.md +0 -112
- package/.enderun/knowledge/corporate-governance/manager-first-three-briefings.md +0 -79
- package/.enderun/knowledge/database_reference_guide.md +0 -38
- package/.enderun/knowledge/devops_reference_guide.md +0 -43
- package/.enderun/knowledge/documentation_ownership.md +0 -53
- package/.enderun/knowledge/eslint-standards.md +0 -63
- package/.enderun/knowledge/evaluation_engine.md +0 -26
- package/.enderun/knowledge/explorer_reference_guide.md +0 -34
- package/.enderun/knowledge/framework_vs_user_project_boundary.md +0 -52
- package/.enderun/knowledge/frontend_professionalization_guidelines.md +0 -108
- package/.enderun/knowledge/frontend_reference_guide.md +0 -64
- package/.enderun/knowledge/git_reference_guide.md +0 -51
- package/.enderun/knowledge/hermes_live_test_guidelines.md +0 -90
- package/.enderun/knowledge/hermes_protocol.md +0 -59
- package/.enderun/knowledge/legacy_onboarding.md +0 -18
- package/.enderun/knowledge/lessons-learned.md +0 -14
- package/.enderun/knowledge/manager_authority_audit_enforcement.md +0 -104
- package/.enderun/knowledge/manager_reference_guide.md +0 -55
- package/.enderun/knowledge/mobile_reference_guide.md +0 -35
- package/.enderun/knowledge/native_reference_guide.md +0 -34
- package/.enderun/knowledge/project_scaffold_guidelines.md +0 -110
- package/.enderun/knowledge/quality_reference_guide.md +0 -42
- package/.enderun/knowledge/reference_application_guidelines.md +0 -101
- package/.enderun/knowledge/responsive_design_standards.md +0 -27
- package/.enderun/knowledge/router_logic.md +0 -29
- package/.enderun/knowledge/security_reference_guide.md +0 -35
- package/.enderun/knowledge/token_economy_and_memory.md +0 -129
- package/.enderun/knowledge/zero_ui_library_policy.md +0 -13
- package/.enderun/logs/manager.json +0 -52
- package/.enderun/mcp_config.json +0 -11
- package/.enderun/memory/BUSINESS_CONTEXT.md +0 -17
- package/.enderun/memory/DECISIONS.md +0 -24
- package/.enderun/memory/LESSONS_LEARNED.md +0 -12
- package/.enderun/memory/PATTERNS.md +0 -17
- package/.enderun/memory/PROJECT_MEMORY.md +0 -69
- package/.enderun/memory-graph/agent-contexts/analyst.json +0 -1
- package/.enderun/memory-graph/agent-contexts/backend.json +0 -1
- package/.enderun/memory-graph/agent-contexts/devops.json +0 -1
- package/.enderun/memory-graph/agent-contexts/explorer.json +0 -1
- package/.enderun/memory-graph/agent-contexts/frontend.json +0 -1
- package/.enderun/memory-graph/agent-contexts/git.json +0 -1
- package/.enderun/memory-graph/agent-contexts/manager.json +0 -1
- package/.enderun/memory-graph/agent-contexts/mobile.json +0 -1
- package/.enderun/memory-graph/agent-contexts/native.json +0 -1
- package/.enderun/memory-graph/agent-contexts/quality.json +0 -1
- package/.enderun/memory-graph/agent-contexts/security.json +0 -1
- package/.enderun/memory-graph/graph.json +0 -133
- package/.enderun/memory-graph/shared-facts.json +0 -46
- package/.enderun/monitoring/.gitkeep +0 -0
- package/.enderun/observability/AUDIT_LOG.md +0 -9
- package/.enderun/observability/METRICS.md +0 -10
- package/.enderun/observability/README.md +0 -19
- package/.enderun/observability/TRACE_LOG.md +0 -10
- package/.enderun/queue/README.md +0 -36
- package/.enderun/registry/agents.yaml +0 -69
- package/.enderun/skills/agent_handshake.md +0 -37
- package/.enderun/skills/multi_agent_coordination.md +0 -64
- package/.enderun/skills/subagent_lifecycle.md +0 -48
- package/CLAUDE.md +0 -21
- package/GEMINI.md +0 -24
- package/GROK.md +0 -20
- package/agent.md +0 -25
- package/dist/.keep +0 -1
- package/dist/tests/adapter.test.d.ts +0 -1
- package/dist/tests/adapter.test.js +0 -82
- package/dist/tests/adapter.test.js.map +0 -1
- package/dist/tests/gemini.test.d.ts +0 -1
- package/dist/tests/gemini.test.js +0 -39
- package/dist/tests/gemini.test.js.map +0 -1
- package/dist/tests/initial.test.d.ts +0 -1
- package/dist/tests/initial.test.js +0 -7
- package/dist/tests/initial.test.js.map +0 -1
- package/docs/project_analysis_report.md +0 -69
- package/framework-mcp/dist/src/index.js +0 -70
- package/framework-mcp/dist/src/tools/definitions.js +0 -112
- package/framework-mcp/dist/src/tools/file_system/patch_file.js +0 -18
- package/framework-mcp/dist/src/tools/file_system/read_file.js +0 -27
- package/framework-mcp/dist/src/tools/file_system/replace_text.js +0 -31
- package/framework-mcp/dist/src/tools/file_system/write_file.js +0 -9
- package/framework-mcp/dist/src/tools/framework/get_status.js +0 -5
- package/framework-mcp/dist/src/tools/framework/orchestrate.js +0 -5
- package/framework-mcp/dist/src/tools/framework/update_contract_hash.js +0 -5
- package/framework-mcp/dist/src/tools/framework/update_memory.js +0 -8
- package/framework-mcp/dist/src/tools/index.js +0 -25
- package/framework-mcp/dist/src/tools/messaging/log_action.js +0 -22
- package/framework-mcp/dist/src/tools/messaging/send_message.js +0 -46
- package/framework-mcp/dist/src/tools/types.js +0 -1
- package/framework-mcp/dist/src/utils/cli.js +0 -20
- package/framework-mcp/dist/src/utils/security.js +0 -53
- package/framework-mcp/dist/tests/tools/file_system/replace_text.test.js +0 -68
- package/framework-mcp/node_modules/@types/node/LICENSE +0 -21
- package/framework-mcp/node_modules/@types/node/README.md +0 -15
- package/framework-mcp/node_modules/@types/node/assert/strict.d.ts +0 -111
- package/framework-mcp/node_modules/@types/node/assert.d.ts +0 -1078
- package/framework-mcp/node_modules/@types/node/async_hooks.d.ts +0 -603
- package/framework-mcp/node_modules/@types/node/buffer.buffer.d.ts +0 -472
- package/framework-mcp/node_modules/@types/node/buffer.d.ts +0 -1934
- package/framework-mcp/node_modules/@types/node/child_process.d.ts +0 -1476
- package/framework-mcp/node_modules/@types/node/cluster.d.ts +0 -578
- package/framework-mcp/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/framework-mcp/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/framework-mcp/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/framework-mcp/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/framework-mcp/node_modules/@types/node/console.d.ts +0 -452
- package/framework-mcp/node_modules/@types/node/constants.d.ts +0 -21
- package/framework-mcp/node_modules/@types/node/crypto.d.ts +0 -4545
- package/framework-mcp/node_modules/@types/node/dgram.d.ts +0 -600
- package/framework-mcp/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/framework-mcp/node_modules/@types/node/dns/promises.d.ts +0 -503
- package/framework-mcp/node_modules/@types/node/dns.d.ts +0 -923
- package/framework-mcp/node_modules/@types/node/domain.d.ts +0 -170
- package/framework-mcp/node_modules/@types/node/events.d.ts +0 -976
- package/framework-mcp/node_modules/@types/node/fs/promises.d.ts +0 -1295
- package/framework-mcp/node_modules/@types/node/fs.d.ts +0 -4461
- package/framework-mcp/node_modules/@types/node/globals.d.ts +0 -172
- package/framework-mcp/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/framework-mcp/node_modules/@types/node/http.d.ts +0 -2089
- package/framework-mcp/node_modules/@types/node/http2.d.ts +0 -2721
- package/framework-mcp/node_modules/@types/node/https.d.ts +0 -579
- package/framework-mcp/node_modules/@types/node/index.d.ts +0 -97
- package/framework-mcp/node_modules/@types/node/inspector.d.ts +0 -253
- package/framework-mcp/node_modules/@types/node/inspector.generated.d.ts +0 -4052
- package/framework-mcp/node_modules/@types/node/module.d.ts +0 -891
- package/framework-mcp/node_modules/@types/node/net.d.ts +0 -1076
- package/framework-mcp/node_modules/@types/node/os.d.ts +0 -506
- package/framework-mcp/node_modules/@types/node/package.json +0 -145
- package/framework-mcp/node_modules/@types/node/path.d.ts +0 -200
- package/framework-mcp/node_modules/@types/node/perf_hooks.d.ts +0 -968
- package/framework-mcp/node_modules/@types/node/process.d.ts +0 -2084
- package/framework-mcp/node_modules/@types/node/punycode.d.ts +0 -117
- package/framework-mcp/node_modules/@types/node/querystring.d.ts +0 -152
- package/framework-mcp/node_modules/@types/node/readline/promises.d.ts +0 -161
- package/framework-mcp/node_modules/@types/node/readline.d.ts +0 -594
- package/framework-mcp/node_modules/@types/node/repl.d.ts +0 -428
- package/framework-mcp/node_modules/@types/node/sea.d.ts +0 -153
- package/framework-mcp/node_modules/@types/node/sqlite.d.ts +0 -721
- package/framework-mcp/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/framework-mcp/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/framework-mcp/node_modules/@types/node/stream/web.d.ts +0 -622
- package/framework-mcp/node_modules/@types/node/stream.d.ts +0 -1687
- package/framework-mcp/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/framework-mcp/node_modules/@types/node/test.d.ts +0 -2163
- package/framework-mcp/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/framework-mcp/node_modules/@types/node/timers.d.ts +0 -287
- package/framework-mcp/node_modules/@types/node/tls.d.ts +0 -1319
- package/framework-mcp/node_modules/@types/node/trace_events.d.ts +0 -197
- package/framework-mcp/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/framework-mcp/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/framework-mcp/node_modules/@types/node/ts5.6/index.d.ts +0 -97
- package/framework-mcp/node_modules/@types/node/tty.d.ts +0 -208
- package/framework-mcp/node_modules/@types/node/url.d.ts +0 -984
- package/framework-mcp/node_modules/@types/node/util.d.ts +0 -2606
- package/framework-mcp/node_modules/@types/node/v8.d.ts +0 -920
- package/framework-mcp/node_modules/@types/node/vm.d.ts +0 -1000
- package/framework-mcp/node_modules/@types/node/wasi.d.ts +0 -181
- package/framework-mcp/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/framework-mcp/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/framework-mcp/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/framework-mcp/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/framework-mcp/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
- package/framework-mcp/node_modules/@types/node/web-globals/storage.d.ts +0 -24
- package/framework-mcp/node_modules/@types/node/worker_threads.d.ts +0 -784
- package/framework-mcp/node_modules/@types/node/zlib.d.ts +0 -747
- package/framework-mcp/node_modules/typescript/LICENSE.txt +0 -55
- package/framework-mcp/node_modules/typescript/README.md +0 -50
- package/framework-mcp/node_modules/typescript/SECURITY.md +0 -41
- package/framework-mcp/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
- package/framework-mcp/node_modules/typescript/bin/tsc +0 -2
- package/framework-mcp/node_modules/typescript/bin/tsserver +0 -2
- package/framework-mcp/node_modules/typescript/lib/_tsc.js +0 -133818
- package/framework-mcp/node_modules/typescript/lib/_tsserver.js +0 -659
- package/framework-mcp/node_modules/typescript/lib/_typingsInstaller.js +0 -222
- package/framework-mcp/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/lib.d.ts +0 -22
- package/framework-mcp/node_modules/typescript/lib/lib.decorators.d.ts +0 -384
- package/framework-mcp/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -22
- package/framework-mcp/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -41
- package/framework-mcp/node_modules/typescript/lib/lib.dom.d.ts +0 -39429
- package/framework-mcp/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -571
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -147
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -597
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.d.ts +0 -28
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -77
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -605
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -81
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -128
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -144
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -46
- package/framework-mcp/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -326
- package/framework-mcp/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -116
- package/framework-mcp/node_modules/typescript/lib/lib.es2016.d.ts +0 -21
- package/framework-mcp/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -31
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -21
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.d.ts +0 -26
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -31
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -44
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -49
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -135
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -45
- package/framework-mcp/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -53
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -77
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -53
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -83
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -30
- package/framework-mcp/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -37
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -79
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -33
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -37
- package/framework-mcp/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -765
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.d.ts +0 -27
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -42
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -474
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -28
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -47
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -99
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -44
- package/framework-mcp/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -41
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -166
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -48
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -33
- package/framework-mcp/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -78
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -121
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.d.ts +0 -25
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -75
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -145
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -26
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -39
- package/framework-mcp/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -25
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -924
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -21
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.d.ts +0 -22
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -56
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -65
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -29
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.d.ts +0 -26
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -29
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -35
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -25
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -68
- package/framework-mcp/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -29
- package/framework-mcp/node_modules/typescript/lib/lib.es5.d.ts +0 -4601
- package/framework-mcp/node_modules/typescript/lib/lib.es6.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -35
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -96
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.d.ts +0 -29
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -28
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -193
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.float16.d.ts +0 -445
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -24
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -21
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.iterator.d.ts +0 -148
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.promise.d.ts +0 -34
- package/framework-mcp/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -25
- package/framework-mcp/node_modules/typescript/lib/lib.scripthost.d.ts +0 -322
- package/framework-mcp/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -41
- package/framework-mcp/node_modules/typescript/lib/lib.webworker.d.ts +0 -13150
- package/framework-mcp/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -23
- package/framework-mcp/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -340
- package/framework-mcp/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/tsc.js +0 -8
- package/framework-mcp/node_modules/typescript/lib/tsserver.js +0 -8
- package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
- package/framework-mcp/node_modules/typescript/lib/tsserverlibrary.js +0 -21
- package/framework-mcp/node_modules/typescript/lib/typesMap.json +0 -497
- package/framework-mcp/node_modules/typescript/lib/typescript.d.ts +0 -11437
- package/framework-mcp/node_modules/typescript/lib/typescript.js +0 -200276
- package/framework-mcp/node_modules/typescript/lib/typingsInstaller.js +0 -8
- package/framework-mcp/node_modules/typescript/lib/watchGuard.js +0 -53
- package/framework-mcp/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
- package/framework-mcp/node_modules/typescript/package.json +0 -120
- package/framework-mcp/node_modules/undici-types/LICENSE +0 -21
- package/framework-mcp/node_modules/undici-types/README.md +0 -6
- package/framework-mcp/node_modules/undici-types/agent.d.ts +0 -31
- package/framework-mcp/node_modules/undici-types/api.d.ts +0 -43
- package/framework-mcp/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/framework-mcp/node_modules/undici-types/cache.d.ts +0 -36
- package/framework-mcp/node_modules/undici-types/client.d.ts +0 -108
- package/framework-mcp/node_modules/undici-types/connector.d.ts +0 -34
- package/framework-mcp/node_modules/undici-types/content-type.d.ts +0 -21
- package/framework-mcp/node_modules/undici-types/cookies.d.ts +0 -28
- package/framework-mcp/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/framework-mcp/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/framework-mcp/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/framework-mcp/node_modules/undici-types/errors.d.ts +0 -149
- package/framework-mcp/node_modules/undici-types/eventsource.d.ts +0 -61
- package/framework-mcp/node_modules/undici-types/fetch.d.ts +0 -209
- package/framework-mcp/node_modules/undici-types/file.d.ts +0 -39
- package/framework-mcp/node_modules/undici-types/filereader.d.ts +0 -54
- package/framework-mcp/node_modules/undici-types/formdata.d.ts +0 -108
- package/framework-mcp/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/framework-mcp/node_modules/undici-types/global-origin.d.ts +0 -7
- package/framework-mcp/node_modules/undici-types/handlers.d.ts +0 -15
- package/framework-mcp/node_modules/undici-types/header.d.ts +0 -4
- package/framework-mcp/node_modules/undici-types/index.d.ts +0 -71
- package/framework-mcp/node_modules/undici-types/interceptors.d.ts +0 -17
- package/framework-mcp/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/framework-mcp/node_modules/undici-types/mock-client.d.ts +0 -25
- package/framework-mcp/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/framework-mcp/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/framework-mcp/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/framework-mcp/node_modules/undici-types/package.json +0 -55
- package/framework-mcp/node_modules/undici-types/patch.d.ts +0 -33
- package/framework-mcp/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/framework-mcp/node_modules/undici-types/pool.d.ts +0 -39
- package/framework-mcp/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/framework-mcp/node_modules/undici-types/readable.d.ts +0 -65
- package/framework-mcp/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/framework-mcp/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/framework-mcp/node_modules/undici-types/util.d.ts +0 -18
- package/framework-mcp/node_modules/undici-types/webidl.d.ts +0 -228
- package/framework-mcp/node_modules/undici-types/websocket.d.ts +0 -150
- package/framework-mcp/tests/tools/file_system/replace_text.test.js +0 -68
- package/framework-mcp/tests/tools/file_system/replace_text.test.ts +0 -77
- package/mcp.json +0 -11
- package/panda.config.ts +0 -100
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
# Token Economy & Agent Memory
|
|
2
|
-
|
|
3
|
-
This document defines the operating rules for managing token consumption while preserving full agent capabilities and maintaining a usable, persistent memory across sessions.
|
|
4
|
-
|
|
5
|
-
## Purpose
|
|
6
|
-
|
|
7
|
-
- Reduce prompt cost and improve response speed by delivering only the relevant context to each agent.
|
|
8
|
-
- Preserve a persistent project memory and per-agent private context so agents can recall prior actions and decisions without re-reading the entire codebase.
|
|
9
|
-
- Keep all agents fully capable: do not shrink agent roles or rules to save tokens.
|
|
10
|
-
- Use memory as a structured retrieval layer, not as a replacement for agent intelligence.
|
|
11
|
-
|
|
12
|
-
## Key Principles
|
|
13
|
-
|
|
14
|
-
### 1. Memory First, Not Memory Only
|
|
15
|
-
|
|
16
|
-
- Agents must always start by checking the persistent project memory and agent context before taking action.
|
|
17
|
-
- If the required information is already stored, the agent should use the stored summary instead of reading the full history or code again.
|
|
18
|
-
- Memory retrieval reduces repeated context, but agents still keep their full capability set intact.
|
|
19
|
-
|
|
20
|
-
### 2. Separate Persistent Memory from Live Context
|
|
21
|
-
|
|
22
|
-
- `PROJECT_MEMORY.md` is the shared project brain: phase, active tasks, decisions, release tracking.
|
|
23
|
-
- `memory-graph/shared-facts.json` is the shared facts store: tech stack, policy roster, contract location, active policies.
|
|
24
|
-
- `memory-graph/agent-contexts/{agent}.json` is private context for each agent.
|
|
25
|
-
- Use `get_agent_context` and `update_agent_context` for agent-specific memory.
|
|
26
|
-
- Use `read_project_memory` and `get_memory_insights` for project-wide state.
|
|
27
|
-
|
|
28
|
-
### 3. Keep Memory Summaries Short and Relevant
|
|
29
|
-
|
|
30
|
-
- Store only the essence of what changed, why it changed, and what remains pending.
|
|
31
|
-
- Do not duplicate entire logs or every code snippet.
|
|
32
|
-
- For long histories, preserve the last 3–5 key decisions in active memory and archive older details in a separate file if needed.
|
|
33
|
-
|
|
34
|
-
### 4. Use Tools, Not Manual Copying
|
|
35
|
-
|
|
36
|
-
- The available tools are the only safe way to read or write memory:
|
|
37
|
-
- `read_project_memory`
|
|
38
|
-
- `update_project_memory`
|
|
39
|
-
- `get_agent_context`
|
|
40
|
-
- `update_agent_context`
|
|
41
|
-
- `get_memory_insights`
|
|
42
|
-
- `update_shared_facts`
|
|
43
|
-
- Do not bypass them with raw file reads or writes.
|
|
44
|
-
|
|
45
|
-
### 5. Token Economy Rules
|
|
46
|
-
|
|
47
|
-
- Always `search_codebase` or `get_project_gaps` before reading large files.
|
|
48
|
-
- Prefer summaries over raw content.
|
|
49
|
-
- Only include the minimum relevant file snippets in prompts.
|
|
50
|
-
- Do not resend the same context multiple times in one session.
|
|
51
|
-
- Use `get_memory_insights` to extract the latest active tasks and decisions rather than reading the full `PROJECT_MEMORY.md` every time.
|
|
52
|
-
|
|
53
|
-
## Memory and Token Flow
|
|
54
|
-
|
|
55
|
-
### Session Startup
|
|
56
|
-
|
|
57
|
-
1. `read_project_memory` to restore the active phase, trace, tasks, and history.
|
|
58
|
-
2. `get_agent_context` for the current agent.
|
|
59
|
-
3. `get_memory_insights` for a compact summary of recent activity.
|
|
60
|
-
4. If the previous session is not fresh, use the agent context summary instead of reloading full histories.
|
|
61
|
-
|
|
62
|
-
### During Work
|
|
63
|
-
|
|
64
|
-
- When a user asks a question, first determine whether the answer depends on:
|
|
65
|
-
- current project status,
|
|
66
|
-
- active trace,
|
|
67
|
-
- recent decisions,
|
|
68
|
-
- per-agent execution state.
|
|
69
|
-
- If yes, retrieve the appropriate memory object and include only the relevant summary.
|
|
70
|
-
- If code context is needed, fetch only the directly impacted file or function.
|
|
71
|
-
|
|
72
|
-
### End of Session
|
|
73
|
-
|
|
74
|
-
- `update_project_memory` for `HISTORY` and `ACTIVE TASKS`.
|
|
75
|
-
- `update_agent_context` with a short summary of the work performed and the current agent state.
|
|
76
|
-
- Optionally `update_shared_facts` if the change affects shared policies, tech stack, or contract status.
|
|
77
|
-
|
|
78
|
-
## Agent Context Format
|
|
79
|
-
|
|
80
|
-
Agents should keep their private context small and specific.
|
|
81
|
-
|
|
82
|
-
Example file: `.enderun/memory-graph/agent-contexts/manager.json`
|
|
83
|
-
|
|
84
|
-
```json
|
|
85
|
-
{
|
|
86
|
-
"lastSession": "2026-05-28T12:00:00Z",
|
|
87
|
-
"lastTraceId": "01H7G8K5TJ5S6MF9Z7H8N4C2P",
|
|
88
|
-
"recentDecisions": [
|
|
89
|
-
"Release 0.8.8 metadata synchronization",
|
|
90
|
-
"Do not reduce agent capability for token economy"
|
|
91
|
-
],
|
|
92
|
-
"pendingReview": [
|
|
93
|
-
"Token economy memory protocol draft",
|
|
94
|
-
"Project phase transition strategy"
|
|
95
|
-
],
|
|
96
|
-
"updatedAt": "2026-05-28T12:00:00Z"
|
|
97
|
-
}
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Memory Usage Guidelines
|
|
101
|
-
|
|
102
|
-
- `@manager`: stores strategic decisions, active task summaries, and phase transitions.
|
|
103
|
-
- `@orchestrator`: stores DAG state, task dependencies, and agent handoff summaries.
|
|
104
|
-
- `@analyst`: stores verification findings, rejected issues, and quality gate status.
|
|
105
|
-
- `@frontend`, `@backend`, `@security`, `@qa`: store recent implementation context, verification outcomes, and compliance notes.
|
|
106
|
-
|
|
107
|
-
## Avoiding Token Inefficiency
|
|
108
|
-
|
|
109
|
-
- Do not send the whole `PROJECT_MEMORY.md` in every prompt.
|
|
110
|
-
- Only include the relevant `ACTIVE TASKS`, `CRITICAL DECISIONS`, and the current trace if necessary.
|
|
111
|
-
- Use `get_memory_insights` to get a compact summary rather than full data.
|
|
112
|
-
- Avoid attaching full file contents unless the task requires precise code changes.
|
|
113
|
-
|
|
114
|
-
## When to Archive History
|
|
115
|
-
|
|
116
|
-
- If `PROJECT_MEMORY.md` history grows beyond 10 entries, move older entries into `.enderun/memory-graph/archive/`.
|
|
117
|
-
- Keep the active history list focused on recent strategic changes and release-critical decisions.
|
|
118
|
-
- The archive is still part of the project brain, but not part of every prompt.
|
|
119
|
-
|
|
120
|
-
## Summary
|
|
121
|
-
|
|
122
|
-
Token economy in Agent Enderun is not about limiting agent power.
|
|
123
|
-
It is about using structured memory, summaries, and retrieval tools so every agent can remember prior work and still operate at full capability.
|
|
124
|
-
|
|
125
|
-
- Keep agent rules intact.
|
|
126
|
-
- Use `PROJECT_MEMORY.md` for shared state.
|
|
127
|
-
- Use `agent-contexts` for private agent memory.
|
|
128
|
-
- Use the memory tools to read and update memory.
|
|
129
|
-
- Only include what is relevant in prompts.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Zero UI Library Policy
|
|
3
|
-
tags: [design, security, compliance]
|
|
4
|
-
related: [responsive_design_standards]
|
|
5
|
-
last_updated: 2026-05-15
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
The project strictly follows the Zero UI Library Policy. Importing external UI frameworks like shadcn/ui, MUI, or Chakra UI is forbidden. All styling must be implemented using Panda CSS to ensure zero-runtime overhead and complete control over the design system.
|
|
9
|
-
|
|
10
|
-
## Rationale
|
|
11
|
-
- **Performance:** Zero-runtime CSS extraction.
|
|
12
|
-
- **Type Safety:** Type-safe styles and tokens.
|
|
13
|
-
- **Originality:** Unique and premium aesthetics without "library look".
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"timestamp": "2026-06-03T15:16:49.000Z",
|
|
4
|
-
"agent": "@manager",
|
|
5
|
-
"action": "project-inspection-report",
|
|
6
|
-
"requestId": "01HGT8J5E2N0W0W0W0W0W0W0W5",
|
|
7
|
-
"status": "SUCCESS",
|
|
8
|
-
"summary": "Inspected the entire framework structure, confirmed purpose of empty apps directory, and updated the project analysis report in docs.",
|
|
9
|
-
"findings": ["empty apps folder verified", "docs/project_analysis_report.md created", "AL state machine structure audited"]
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"timestamp": "2026-06-03T15:17:49.000Z",
|
|
13
|
-
"agent": "@manager",
|
|
14
|
-
"action": "cli-ide-capability-audit",
|
|
15
|
-
"requestId": "01HGT8J5E2N0W0W0W0W0W0W0W5",
|
|
16
|
-
"status": "SUCCESS",
|
|
17
|
-
"summary": "Guided the user on CLI command usage, adapter execution, and IDE integration capabilities.",
|
|
18
|
-
"findings": ["CLI commands audited", "IDE adapter configurations checked", "cross-compatibility confirmed"]
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"timestamp": "2026-06-03T15:20:21.000Z",
|
|
22
|
-
"agent": "@manager",
|
|
23
|
-
"action": "mcp-env-project-root-fix",
|
|
24
|
-
"requestId": "01HGT8J5E2N0W0W0W0W0W0W0W5",
|
|
25
|
-
"status": "SUCCESS",
|
|
26
|
-
"summary": "Identified and corrected a bug in MCP server entry generation where ENDERUN_PROJECT_ROOT was missing from the env block during init, resolving connection issues with external IDEs.",
|
|
27
|
-
"findings": ["fixed buildMcpServerEntry in adapters.ts to map absolute path in environment variables"]
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"timestamp": "2026-06-03T15:23:06.000Z",
|
|
31
|
-
"agent": "@manager",
|
|
32
|
-
"action": "version-synchronization",
|
|
33
|
-
"requestId": "01HGT8J5E2N0W0W0W0W0W0W0W5",
|
|
34
|
-
"status": "SUCCESS",
|
|
35
|
-
"summary": "Synchronized framework package, source, config, and status versions to v1.1.0 to match the root package version.",
|
|
36
|
-
"findings": ["framework-mcp package version bumped", "framework-mcp source version bumped", "apps/web package version bumped", "enderun config version bumped", "STATUS.md version bumped"]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"timestamp": "2026-06-03T15:26:11.000Z",
|
|
40
|
-
"agent": "@manager",
|
|
41
|
-
"action": "init-adapter-scaffolding-fix",
|
|
42
|
-
"requestId": "01HGT8J5E2N0W0W0W0W0W0W0W5",
|
|
43
|
-
"status": "SUCCESS",
|
|
44
|
-
"summary": "Surgically updated initCommand to dynamically resolve the agent folder name (e.g. skills for antigravity, plugins for grok) when running scaffoldCoreAgents.",
|
|
45
|
-
"findings": ["dynamic resolution of agent directory implemented in init command to align scaffolding with configured adapter patterns"]
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
{"timestamp":"2026-06-03T15:36:38.637Z","agent":"@manager","action":"v1.1.1-release-synchronization","requestId":"01HGT8J5E2N0W0W0W0W0W0W0W5","status":"SUCCESS","summary":"Synchronized all package descriptors, source codes, configurations, dashboards, memory, and README files to release version 1.1.1.","findings":["root package.json bumped","mcp package and source bumped","apps/web package bumped","config.json and STATUS.md bumped","README.md all mentions updated","PROJECT_MEMORY.md updated"]}
|
|
49
|
-
{"timestamp":"2026-06-03T15:49:59.717Z","agent":"@manager","action":"stream-error-analysis","requestId":"01HGT8J5E2N0W0W0W0W0W0W0W5","status":"SUCCESS","summary":"Analyzed the codebase_investigator InvalidStreamError and provided troubleshooting steps.","findings":["analyzed stream error source and parsed causes including JSON truncation and tool schema mismatches"]}
|
|
50
|
-
{"timestamp":"2026-06-03T15:51:15.243Z","agent":"@manager","action":"mcp-read-file-truncation-safety-fix","requestId":"01HGT8J5E2N0W0W0W0W0W0W0W5","status":"SUCCESS","summary":"Updated the read_file MCP tool to support optional startLine/endLine parameters and default to a 1000-line safety limit to protect against stream truncation/JSON formatting errors.","findings":["read_file schema updated","startLine/endLine parsing added","1000-line default truncation threshold enforced"]}
|
|
51
|
-
{"timestamp":"2026-06-03T18:27:33.798Z","agent":"@manager","action":"ANALYZE_DUPLICATES","requestId":"01HGT8J5E2N0W0W0W0W0W0W0W5","status":"SUCCESS","summary":"Analyzed the project for duplicate files and identified redundant configurations and directories.","findings":["Found duplicate .agents folder","redundant mcp.json variants","and duplicated architecture/security documents."]}
|
|
52
|
-
{"timestamp":"2026-06-03T18:31:20.178Z","agent":"@manager","action":"CLEANUP_COMPLETE","requestId":"01HGT8J5E2N0W0W0W0W0W0W0W5","status":"SUCCESS","summary":"Completed proejct clean-up and centralized all configuration under .enderun.","findings":["Successfully deleted legacy .agents/ folder and duplicate ARCHITECTURE.md/SECURITY.md in .enderun/. Verified using git status."]}
|
package/.enderun/mcp_config.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# 💼 Business Context & Domain Rules (BUSINESS_CONTEXT.md)
|
|
2
|
-
|
|
3
|
-
This file defines the core business logic, domain vocabulary, and functional requirements of the project. It ensures agents understand the "Why" and the "Who" behind the code.
|
|
4
|
-
|
|
5
|
-
## 🏗️ Domain Core
|
|
6
|
-
- **Project Name:** Agent Enderun
|
|
7
|
-
- **Target Audience:** Enterprise AI Teams, Autonomous Agent Developers.
|
|
8
|
-
- **Primary Goal:** Provide a supreme governance layer for multi-agent software construction.
|
|
9
|
-
|
|
10
|
-
## 📖 Glossary
|
|
11
|
-
- **Trace ID:** A unique ULID assigned to every task for 100% traceability.
|
|
12
|
-
- **Surgical Edit:** A precise change using the `replace` tool instead of file overwriting.
|
|
13
|
-
- **Army:** The collection of 12 specialized agents managed by @manager.
|
|
14
|
-
|
|
15
|
-
## ⚖️ Business Rules
|
|
16
|
-
- **Contract-First:** No feature can be implemented until its API contract is verified in `contract.version.json`.
|
|
17
|
-
- **Zero UI Library:** All UI must be built from scratch using Panda CSS to maintain full design sovereignty.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# 🧠 Architectural Decisions (DECISIONS.md)
|
|
2
|
-
|
|
3
|
-
This log tracks every critical architectural decision made during the project. It ensures that agents (Commander, Architect, etc.) maintain consistency and do not repeat past discussions.
|
|
4
|
-
|
|
5
|
-
## Decision Log Template
|
|
6
|
-
- **ID:** AD-[YYYYMMDD]-[SEQ]
|
|
7
|
-
- **Status:** [Proposed | Accepted | Superseded | Deprecated]
|
|
8
|
-
- **Title:** Summary of the decision.
|
|
9
|
-
- **Context:** Why was this decision necessary?
|
|
10
|
-
- **Decision:** What was chosen?
|
|
11
|
-
- **Consequences:** Impact on the project (positive/negative).
|
|
12
|
-
- **Owner:** [Role: Architect | Commander]
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## 📜 Active Log
|
|
17
|
-
|
|
18
|
-
### AD-20260531-001
|
|
19
|
-
- **Status:** Accepted
|
|
20
|
-
- **Title:** Enterprise Capability-Based Architecture (v2.0)
|
|
21
|
-
- **Context:** Need for a model-agnostic, scalable orchestration system that works across multiple AI platforms (Gemini, Claude, Cursor, Grok).
|
|
22
|
-
- **Decision:** Shift from model-tied roles to capability-based roles (Commander, Architect, Implementer, Researcher). Fragmented memory into specialized logs.
|
|
23
|
-
- **Consequences:** Increased behavior consistency, better security through tool capability control, and long-term sustainability.
|
|
24
|
-
- **Owner:** Commander
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# 💡 Lessons Learned & Anti-Patterns (LESSONS_LEARNED.md)
|
|
2
|
-
|
|
3
|
-
This file tracks mistakes, hard-won insights, and critical anti-patterns discovered during the project life cycle. All agents MUST read this before proposing changes.
|
|
4
|
-
|
|
5
|
-
## 🚫 Anti-Patterns (Never Do These)
|
|
6
|
-
- **Blind Overwrites:** Never replace an entire file if `replace_text` can do a surgical edit.
|
|
7
|
-
- **Mocking Without Permission:** Never use mock data in Phase 2+ unless explicitly approved for 3rd party services.
|
|
8
|
-
- **Hardcoding IDs:** Never use plain strings for IDs. Use Branded Types.
|
|
9
|
-
|
|
10
|
-
## 🎓 Lessons Learned
|
|
11
|
-
- **2026-06-01:** Moving `.cursorrules` to `.cursor/rules/global.mdc` significantly improves Cursor's agentic behavior in modern environments.
|
|
12
|
-
- **2026-06-01:** Centralizing governance in `.enderun/` while using root shim files is the most robust way to support 5+ AI platforms simultaneously.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# 📚 Architectural Patterns (PATTERNS.md)
|
|
2
|
-
|
|
3
|
-
This library defines the approved architectural patterns and coding idioms for the project. Agents MUST use these patterns to ensure consistency.
|
|
4
|
-
|
|
5
|
-
## 🏗️ Structural Patterns
|
|
6
|
-
|
|
7
|
-
### 1. Repository Pattern
|
|
8
|
-
- **Usage:** All database operations must be abstracted behind a Repository class.
|
|
9
|
-
- **Rules:** No raw Kysely calls in Services. No business logic in Repositories.
|
|
10
|
-
|
|
11
|
-
### 2. Branded Types (The Law)
|
|
12
|
-
- **Usage:** Every ID must be branded.
|
|
13
|
-
- **Example:** `type UserID = string & { readonly __brand: "UserID" }`
|
|
14
|
-
|
|
15
|
-
### 3. Result Wrapper (Error Handling)
|
|
16
|
-
- **Usage:** Async operations should return a `Result<T, E>` or use the standard `DomainError` hierarchy.
|
|
17
|
-
- **Standard:** Use `try/catch` at the boundary, not everywhere.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
## CURRENT STATUS
|
|
2
|
-
|
|
3
|
-
- Phase: PHASE_0 (Genesis)
|
|
4
|
-
- Trace ID: 01HGT8J5E2N0W0W0W0W0W0W0W5
|
|
5
|
-
- @manager state: ENTERPRISE_FULL_PROFILE_ACTIVE
|
|
6
|
-
|
|
7
|
-
## ACTIVE TASKS
|
|
8
|
-
|
|
9
|
-
| Trace ID | Task | Agent | Priority | Status |
|
|
10
|
-
| :--- | :--- | :--- | :--- | :--- |
|
|
11
|
-
|
|
12
|
-
## CRITICAL DECISIONS
|
|
13
|
-
|
|
14
|
-
- **Tech Stack:** Node.js/Fastify, React/Vite, PostgreSQL, Kysely.
|
|
15
|
-
- **Surgical Standard:** replace_text/patch_file is mandatory for all edits.
|
|
16
|
-
- **Contract First:** All developments must start with type definitions.
|
|
17
|
-
- **Memory Standard:** Auto-pruning active (max 10 entries).
|
|
18
|
-
- **Sovereign Backend Structure:** Every backend service MUST maintain its own database logic (schema, migrations, seeds) within `src/database/` to ensure full isolation.
|
|
19
|
-
|
|
20
|
-
## HISTORY
|
|
21
|
-
|
|
22
|
-
### 2026-06-03 — CLI & Build Stabilization
|
|
23
|
-
|
|
24
|
-
- **Agent:** @manager
|
|
25
|
-
- **Trace ID:** 01HGT8J5E2N0W0W0W0W0W0W0W5
|
|
26
|
-
- **Action:** Stabilized the CLI publish configuration and compiler flow. Updated `bin/cli.js` to run the compiled JS entrypoint `dist/src/cli/index.js` directly with standard Node, removing the runtime dependency on `tsx` in production. Added a root `build` script (`tsc && npm run build --prefix framework-mcp`) to root `package.json` and updated `prepublishOnly` to guarantee compilation of all packages before npm publish. Cleared out duplicate compiled directories and files (`dist/cli/`, `dist/orchestrate.*`, `dist/vitest.config.*`). Standardized case-sensitivity test expectations in `tests/gemini.test.ts` and `tests/adapter.test.ts` to expect uppercase `"GEMINI.md"` and `"GROK.md"`. Fixed an undefined reference to `targetDir` in `src/cli/commands/init.ts` by passing it down to `scaffoldCoreAgents`.
|
|
27
|
-
|
|
28
|
-
### 2026-06-03 — OS & Sandbox Verification and Sync
|
|
29
|
-
|
|
30
|
-
- **Agent:** @manager
|
|
31
|
-
- **Trace ID:** 01HGT8J5E2N0W0W0W0W0W0W0W5
|
|
32
|
-
- **Action:** Synchronized all compiled files under `dist/cli/` to fix missing exports (`sendMessage` in `orchestrate.js`) and dynamic path resolutions. Corrected a Linux-specific case-sensitivity bug where `gemini.md` and `grok.md` shim references were mapped as lowercase, mismatching the actual uppercase filenames `GEMINI.md` and `GROK.md` on disk. Evaluated `targetDir` dynamically inside `initCommand` to allow multi-directory programmatic executions. Resolved macOS Sandbox TCC and Node.js directory EPERM blocks inside the integration test script (`bin/test-init-run.js`) by relocating tests to `dist/init-adapters` and conditionally skipping sandbox-sensitive user directory generations during test runs.
|
|
33
|
-
|
|
34
|
-
### 2026-06-03 — Realistic Adapter Verification & Path Fix
|
|
35
|
-
|
|
36
|
-
- **Agent:** @manager
|
|
37
|
-
- **Trace ID:** 01HGT8J5E2N0W0W0W0W0W0W0W5
|
|
38
|
-
- **Action:** Fixed a critical bug in src/cli/commands/init.ts where sourceDir resolved incorrectly in production/dist builds; converted it to use getPackageRoot() from utils/pkg.ts. Audited and verified all 7 adapters (gemini, claude, cursor, codex, grok, antigravity, antigravity-cli) inside test subdirectories, verifying folder remapping, shim rules, and AL compliance.
|
|
39
|
-
|
|
40
|
-
### 2026-06-03 — Adapter Link Fixes and Dynamic Prompting
|
|
41
|
-
|
|
42
|
-
- **Agent:** @manager
|
|
43
|
-
- **Trace ID:** 01HGT8J5E2N0W0W0W0W0W0W0W5
|
|
44
|
-
- **Action:** Fixed broken links in GEMINI.md and CLAUDE.md pointing to .enderun/ARCHITECTURE.md and .enderun/SECURITY.md (changed to point to .enderun/knowledge/ instead). Added Dynamic Identity Adjustment directive to shim files, enabling agents to adopt specialist roles. Corrected print statement extension format in orchestrate.ts from .md to .json.
|
|
45
|
-
|
|
46
|
-
### 2026-06-03 — Project Clean-up and Standardization
|
|
47
|
-
|
|
48
|
-
- **Agent:** @manager
|
|
49
|
-
- **Trace ID:** 01HGT8J5E2N0W0W0W0W0W0W0W5
|
|
50
|
-
- **Action:** Cleaned up the codebase by deleting the legacy .agents/ folder and removing duplicate ARCHITECTURE.md and SECURITY.md files from .enderun/. Centralized all active configurations under the .enderun/ directory.
|
|
51
|
-
|
|
52
|
-
### 2026-06-03 — Duplicate File Analysis
|
|
53
|
-
|
|
54
|
-
- **Agent:** @manager
|
|
55
|
-
- **Trace ID:** 01HGT8J5E2N0W0W0W0W0W0W0W5
|
|
56
|
-
- **Action:** Analyzed the project codebase for duplicate and redundant files. Identified .agents as a legacy framework directory, and noted identical/redundant files like root mcp.json/mcp_config.json variants and duplicate architecture/security rules.
|
|
57
|
-
|
|
58
|
-
- **MCP Read File Safety Prevention (v1.1.1):** Configured optional `startLine` and `endLine` parameters in the `read_file` tool schema and handler, and set a default safety limit of 1000 lines to prevent JSON truncation and stream format errors when handling large files. (Trace 01HGT8J5E2N0W0W0W0W0W0W0W5)
|
|
59
|
-
- **Stream Error Analysis (v1.1.1):** Diagnosed `InvalidStreamError` where an agent stream ends in a malformed function call. Documented main causes (truncation, formatting, schema drift) and troubleshooting steps for workspace developers. (Trace 01HGT8J5E2N0W0W0W0W0W0W0W5)
|
|
60
|
-
- **Dynamic Scaffold Path Resolution Fix (v1.1.1):** Updated `initCommand` in `src/cli/commands/init.ts` to dynamically map the target folder name for `scaffoldCoreAgents` (e.g., `skills` for `antigravity`, `plugins` for `grok`). This prevents folder clutter by keeping agent profiles inside the adapter's expected subdirectories. (Trace 01HGT8J5E2N0W0W0W0W0W0W0W5)
|
|
61
|
-
- **Monorepo Version Synchronization (v1.1.1):** Synchronized framework configurations, server code, status boards, and package descriptors across all workspace packages (`framework-mcp`, `apps/web`, `.enderun/config.json`, and `.enderun/STATUS.md`) to align with the root version `1.1.1`. (Trace 01HGT8J5E2N0W0W0W0W0W0W0W5)
|
|
62
|
-
- **MCP Project Root Configuration Fix (v1.1.1):** Surgically updated `buildMcpServerEntry` in `src/cli/adapters.ts` to include the absolute `ENDERUN_PROJECT_ROOT` environment variable in the generated configurations during `init`, resolving relative path mismatches for external AI runtimes. (Trace 01HGT8J5E2N0W0W0W0W0W0W0W5)
|
|
63
|
-
- **CLI & IDE Capability Audit (v1.1.1):** Audited and documented CLI execution capabilities and IDE adapter mappings (Gemini/Antigravity, Cursor, Claude Code, Grok). Verified cross-compatibility for developer and autonomous agent interaction. (Trace 01HGT8J5E2N0W0W0W0W0W0W0W5)
|
|
64
|
-
- **Framework Inspection & Analysis (v1.1.1):** Inspected the framework structure, custom agent army settings, Hermes messaging loop, and MCP server. Verified that the `apps` directory is intentionally kept empty of business code to act as a clean canvas for enterprise projects. Created and documented findings in `docs/project_analysis_report.md`. (Trace 01HGT8J5E2N0W0W0W0W0W0W0W5)
|
|
65
|
-
- **AL NPM Consumption Fix (v1.0.7+):** Root cause of 'kuraları npm den' AL validation FAILED (the exact error: 'Run manually: node bin/validate-agent-army.js' after init with remap adapters like antigravity) was execSync("node bin/...") assuming source cwd. Fixed by adding robust getPackageRoot() + getValidatorPath() in pkg.ts (walks import.meta.url to locate the agent-enderun package's bin/ regardless of install location or cwd). Updated check.ts, init.ts, index.ts to use resolved path + cwd-respecting exec. Updated error suggestions to `agent-enderun validate`. Reproduced with real npm pack + tgz install into isolated tests/init-adapters/.../consume/, ran installed CLI init+check+validate for antigravity remap case: now ✅ "Agent Army AL validation PASSED" (no FAILED branch). Source validate still 12/12. Docs/README surgically updated. Meets surgical + Trace + every-turn memory. (Trace 01HGT8J5E2N0W0W0W0W0W0W0W5)
|
|
66
|
-
- **Enterprise v1.0.6 Sürüm Revizyonu:** Mimari Enterprise 2.1 (Yetenek Tabanlı) olarak korundu, marka ismi `Agent Enderun Enterprise v1` olarak güncellendi ve tüm paket sürümleri `1.0.6` olarak mühürlendi.
|
|
67
|
-
- **Agent Lifecycle (AL) Tam Entegrasyon:** Tüm agent `.md` tanımları `stateMachine` ve `tags` alanları ile AL şemasına uygun hale getirildi. `bin/validate-agent-army.js` aracı bu yeni alanları denetleyecek şekilde güncellendi ve tüm ordu (12 agent) %100 başarıyla doğrulandı. CLI orkestrasyon mantığı AL durum geçişlerini (BRIEFED, EXECUTING, BLOCKED) destekleyecek şekilde zenginleştirildi.
|
|
68
|
-
- **Monorepo Sürüm Senkronizasyonu:** Tüm monorepo paketlerinin (`@agent-enderun/mcp`, `@agent-enderun/backend`, `@agent-enderun/web`) sürümleri ana sürüm olan `1.0.5` ile senkronize edildi.
|
|
69
|
-
- **Kalite Kapısı Kontrolleri:** ESLint otomatik kod formatlama ve hizalama düzeltmeleri uygulandı, TS derleme build'i sıfır hata ile tamamlandı ve vitest birim testlerinin tümü (%100 başarı) başarıyla geçti.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "analyst", "version": "1.0.0", "lastUpdated": "2026-05-31T14:20:00Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "backend", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "devops", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "explorer", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "frontend", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "git", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "manager", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "mobile", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "native", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "quality", "version": "1.0.0", "lastUpdated": "2026-05-29T15:41:37Z", "sessionHistory": [], "notes": "Merged from analyst, qa, and security agents."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"agent": "security", "version": "1.0.0", "lastUpdated": "2026-05-31T14:20:00Z", "sessionHistory": [], "notes": "Initial clean state."}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.0",
|
|
3
|
-
"description": "Agent Enderun Army Memory Graph. Tracks all agent interactions, delegations, and communication edges across the entire army.",
|
|
4
|
-
"generatedAt": "2026-05-25T17:00:00Z",
|
|
5
|
-
"updatedAt": "2026-05-25T17:00:00Z",
|
|
6
|
-
"nodes": [
|
|
7
|
-
{
|
|
8
|
-
"id": "@manager",
|
|
9
|
-
"state": "IDLE",
|
|
10
|
-
"lastAction": "Framework initialized",
|
|
11
|
-
"activeTrace": null,
|
|
12
|
-
"healthScore": 9.5,
|
|
13
|
-
"totalActionsThisSession": 0
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"id": "@orchestrator",
|
|
17
|
-
"state": "IDLE",
|
|
18
|
-
"lastAction": null,
|
|
19
|
-
"activeTrace": null,
|
|
20
|
-
"healthScore": 9.8,
|
|
21
|
-
"totalActionsThisSession": 0
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"id": "@backend",
|
|
25
|
-
"state": "IDLE",
|
|
26
|
-
"lastAction": null,
|
|
27
|
-
"activeTrace": null,
|
|
28
|
-
"healthScore": 9.2,
|
|
29
|
-
"totalActionsThisSession": 0
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"id": "@frontend",
|
|
33
|
-
"state": "IDLE",
|
|
34
|
-
"lastAction": null,
|
|
35
|
-
"activeTrace": null,
|
|
36
|
-
"healthScore": 9,
|
|
37
|
-
"totalActionsThisSession": 0
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "@security",
|
|
41
|
-
"state": "IDLE",
|
|
42
|
-
"lastAction": null,
|
|
43
|
-
"activeTrace": null,
|
|
44
|
-
"healthScore": 9.3,
|
|
45
|
-
"totalActionsThisSession": 0
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"id": "@qa",
|
|
49
|
-
"state": "IDLE",
|
|
50
|
-
"lastAction": null,
|
|
51
|
-
"activeTrace": null,
|
|
52
|
-
"healthScore": 9.1,
|
|
53
|
-
"totalActionsThisSession": 0
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"id": "@devops",
|
|
57
|
-
"state": "IDLE",
|
|
58
|
-
"lastAction": null,
|
|
59
|
-
"activeTrace": null,
|
|
60
|
-
"healthScore": 9,
|
|
61
|
-
"totalActionsThisSession": 0
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"id": "@analyst",
|
|
65
|
-
"state": "IDLE",
|
|
66
|
-
"lastAction": null,
|
|
67
|
-
"activeTrace": null,
|
|
68
|
-
"healthScore": 9.6,
|
|
69
|
-
"totalActionsThisSession": 0
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"id": "@explorer",
|
|
73
|
-
"state": "IDLE",
|
|
74
|
-
"lastAction": null,
|
|
75
|
-
"activeTrace": null,
|
|
76
|
-
"healthScore": 9.4,
|
|
77
|
-
"totalActionsThisSession": 0
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"id": "@git",
|
|
81
|
-
"state": "IDLE",
|
|
82
|
-
"lastAction": null,
|
|
83
|
-
"activeTrace": null,
|
|
84
|
-
"healthScore": 9.1,
|
|
85
|
-
"totalActionsThisSession": 0
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"id": "@mobile",
|
|
89
|
-
"state": "IDLE",
|
|
90
|
-
"lastAction": null,
|
|
91
|
-
"activeTrace": null,
|
|
92
|
-
"healthScore": 8.8,
|
|
93
|
-
"totalActionsThisSession": 0
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"id": "@native",
|
|
97
|
-
"state": "IDLE",
|
|
98
|
-
"lastAction": null,
|
|
99
|
-
"activeTrace": null,
|
|
100
|
-
"healthScore": 8.9,
|
|
101
|
-
"totalActionsThisSession": 0
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"edges": [],
|
|
105
|
-
"schema": {
|
|
106
|
-
"nodeFields": [
|
|
107
|
-
"id",
|
|
108
|
-
"state",
|
|
109
|
-
"lastAction",
|
|
110
|
-
"activeTrace",
|
|
111
|
-
"healthScore",
|
|
112
|
-
"totalActionsThisSession"
|
|
113
|
-
],
|
|
114
|
-
"edgeFields": [
|
|
115
|
-
"id",
|
|
116
|
-
"from",
|
|
117
|
-
"to",
|
|
118
|
-
"type",
|
|
119
|
-
"traceId",
|
|
120
|
-
"timestamp",
|
|
121
|
-
"metadata"
|
|
122
|
-
],
|
|
123
|
-
"edgeTypes": [
|
|
124
|
-
"DELEGATED",
|
|
125
|
-
"ESCALATED",
|
|
126
|
-
"BLOCKED_BY",
|
|
127
|
-
"UNBLOCKED_BY",
|
|
128
|
-
"BROADCAST",
|
|
129
|
-
"COLLABORATED",
|
|
130
|
-
"REVIEWED"
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.0.0",
|
|
3
|
-
"description": "Shared facts available to ALL agents in the Enderun Army. This is the single source of truth for project-wide knowledge that every agent must know.",
|
|
4
|
-
"updatedAt": "2026-05-29T15:00:00Z",
|
|
5
|
-
"updatedBy": "@manager",
|
|
6
|
-
"techStack": {
|
|
7
|
-
"backend": "Node.js 22+ + Fastify (RCSR Architecture)",
|
|
8
|
-
"frontend": "React 19 + Vite + Panda CSS",
|
|
9
|
-
"database": "PostgreSQL (Multi-Tenant RLS + PostGIS)",
|
|
10
|
-
"orm": "Kysely",
|
|
11
|
-
"testing": "Vitest",
|
|
12
|
-
"typeSystem": "TypeScript 6 (strict mode, no any, branded types)",
|
|
13
|
-
"monorepo": "npm workspaces",
|
|
14
|
-
"cicd": "GitHub Actions"
|
|
15
|
-
},
|
|
16
|
-
"criticalDecisions": [
|
|
17
|
-
{
|
|
18
|
-
"date": "2026-05-29",
|
|
19
|
-
"decision": "Grand Governance Audit Completed",
|
|
20
|
-
"rationale": "Restored CLI, updated paths to .enderun/, and enforced autonomous MCP tools.",
|
|
21
|
-
"decidedBy": "@manager"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"date": "2026-05-29",
|
|
25
|
-
"decision": "Cursor IDE Deprecation",
|
|
26
|
-
"rationale": "Claude Code selected as primary operational surgery tool.",
|
|
27
|
-
"decidedBy": "@manager"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"date": "2026-05-21",
|
|
31
|
-
"decision": "Zero Mock Policy",
|
|
32
|
-
"rationale": "All analytical UIs connected to real APIs",
|
|
33
|
-
"decidedBy": "@manager"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"activePolicies": [
|
|
37
|
-
"Zero Mock Policy — no fake data anywhere in the codebase",
|
|
38
|
-
"Branded Types Law — all IDs must use branded types",
|
|
39
|
-
"Surgical Edit Standard — use replace_text via MCP",
|
|
40
|
-
"Autonomous Growth — agents authorized to use create_app",
|
|
41
|
-
"Hermes Messaging Protocol — mandatory for inter-agent traffic",
|
|
42
|
-
"Audit Log Mandatory — every agent action must be logged"
|
|
43
|
-
],
|
|
44
|
-
"frameworkVersion": "1.0.0",
|
|
45
|
-
"constitutionFile": "ENDERUN.md"
|
|
46
|
-
}
|
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# 🛡️ Audit Log (AUDIT_LOG.md)
|
|
2
|
-
|
|
3
|
-
This log tracks all high-risk and state-mutating actions performed by agents. It ensures accountability and provides a clear history for compliance audits.
|
|
4
|
-
|
|
5
|
-
## 📜 High-Risk Action Log
|
|
6
|
-
|
|
7
|
-
| Timestamp | Trace ID | Agent | Action | Result | Approved By |
|
|
8
|
-
| :--- | :--- | :--- | :--- | :--- | :--- |
|
|
9
|
-
| 2026-06-01T04:15:00Z | GENESIS-001 | @manager | System Initialization | SUCCESS | User |
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# 📊 Performance Metrics (METRICS.md)
|
|
2
|
-
|
|
3
|
-
This file tracks the efficiency and reliability of the Agent Army.
|
|
4
|
-
|
|
5
|
-
| Metric | Goal | Current | Status |
|
|
6
|
-
| :--- | :--- | :--- | :--- |
|
|
7
|
-
| **Task Success Rate** | >95% | 100% | 🟢 |
|
|
8
|
-
| **Avg. Tools per Task** | <10 | 4.2 | 🟢 |
|
|
9
|
-
| **Retry Rate** | <5% | 0% | 🟢 |
|
|
10
|
-
| **Governance Compliance** | 100% | 100% | ✅ |
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Observability Placeholders
|
|
2
|
-
|
|
3
|
-
**📌 Low-Usage / Future Reference Structure**
|
|
4
|
-
|
|
5
|
-
This directory contains template files for enterprise-grade observability:
|
|
6
|
-
|
|
7
|
-
- `AUDIT_LOG.md` — High-risk action audit trail (who, when, approval).
|
|
8
|
-
- `TRACE_LOG.md` — Trace ID interaction visualization.
|
|
9
|
-
- `METRICS.md` — Performance, token, efficiency metrics.
|
|
10
|
-
|
|
11
|
-
Per `token_economy_and_memory.md` and corporate governance:
|
|
12
|
-
- These are **structural placeholders** created during init for regulated/corporate projects.
|
|
13
|
-
- Currently low-usage: no active population in core MCP tools or CLI (as of v1.0.9).
|
|
14
|
-
- Intended for future implementation via `@manager` / `@quality` / Hermes flows (see `high-risk-action-approval-flow.md`, `audit-logging-standard.md`).
|
|
15
|
-
- Load only when building audit/compliance features.
|
|
16
|
-
|
|
17
|
-
Do not delete — part of the full 12-agent army capability for complex kurumsal projects.
|
|
18
|
-
|
|
19
|
-
See `.enderun/queue/` and `docs/architecture/approval-flows.md` for related protocol.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# 📡 Trace Log (TRACE_LOG.md)
|
|
2
|
-
|
|
3
|
-
This log tracks the flow of tasks between agents across different Trace IDs. It provides a technical timeline of how an intent was fulfilled.
|
|
4
|
-
|
|
5
|
-
## 🛤️ Active Trace Streams
|
|
6
|
-
|
|
7
|
-
### Trace ID: GENESIS-001
|
|
8
|
-
- **04:15:00:** [COMMANDER] Initiated Enterprise 2.1 Upgrade.
|
|
9
|
-
- **04:15:10:** [ROUTER] Assigned 'Observability Setup' to System Specialist.
|
|
10
|
-
- **04:15:30:** [IMPLEMENTER] Created `.enderun/observability/` structure.
|