@codemieai/code 0.0.28 → 0.0.30
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/README.md +8 -10
- package/bin/agent-executor.js +1 -1
- package/dist/agents/codemie-code/config.d.ts.map +1 -1
- package/dist/agents/codemie-code/config.js +0 -1
- package/dist/agents/codemie-code/config.js.map +1 -1
- package/dist/agents/core/AgentCLI.d.ts.map +1 -1
- package/dist/agents/core/AgentCLI.js +4 -8
- package/dist/agents/core/AgentCLI.js.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.d.ts +17 -9
- package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.js +75 -67
- package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
- package/dist/agents/core/extension/BaseExtensionInstaller.d.ts +258 -0
- package/dist/agents/core/extension/BaseExtensionInstaller.d.ts.map +1 -0
- package/dist/agents/core/extension/BaseExtensionInstaller.js +522 -0
- package/dist/agents/core/extension/BaseExtensionInstaller.js.map +1 -0
- package/dist/agents/core/lifecycle-helpers.d.ts.map +1 -1
- package/dist/agents/core/lifecycle-helpers.js +16 -2
- package/dist/agents/core/lifecycle-helpers.js.map +1 -1
- package/dist/agents/core/metrics/index.d.ts +0 -2
- package/dist/agents/core/metrics/index.d.ts.map +1 -1
- package/dist/agents/core/metrics/index.js +0 -3
- package/dist/agents/core/metrics/index.js.map +1 -1
- package/dist/agents/core/metrics/types.d.ts +4 -232
- package/dist/agents/core/metrics/types.d.ts.map +1 -1
- package/dist/agents/core/metrics/types.js +2 -2
- package/dist/agents/core/session/BaseProcessor.d.ts +72 -0
- package/dist/agents/core/session/BaseProcessor.d.ts.map +1 -0
- package/dist/agents/core/session/BaseProcessor.js +9 -0
- package/dist/agents/core/session/BaseProcessor.js.map +1 -0
- package/dist/agents/core/session/BaseSessionAdapter.d.ts +99 -0
- package/dist/agents/core/session/BaseSessionAdapter.d.ts.map +1 -0
- package/dist/agents/core/session/BaseSessionAdapter.js +9 -0
- package/dist/agents/core/session/BaseSessionAdapter.js.map +1 -0
- package/dist/agents/core/session/SessionStore.d.ts +23 -0
- package/dist/agents/core/session/SessionStore.d.ts.map +1 -0
- package/dist/agents/core/session/SessionStore.js +75 -0
- package/dist/agents/core/session/SessionStore.js.map +1 -0
- package/dist/agents/core/session/session-config.d.ts +27 -0
- package/dist/agents/core/session/session-config.d.ts.map +1 -0
- package/dist/agents/core/session/session-config.js +61 -0
- package/dist/agents/core/session/session-config.js.map +1 -0
- package/dist/agents/core/session/types.d.ts +87 -0
- package/dist/agents/core/session/types.d.ts.map +1 -0
- package/dist/agents/core/session/types.js +8 -0
- package/dist/agents/core/session/types.js.map +1 -0
- package/dist/agents/core/session/utils/jsonl-reader.d.ts +15 -0
- package/dist/agents/core/session/utils/jsonl-reader.d.ts.map +1 -0
- package/dist/agents/core/session/utils/jsonl-reader.js +33 -0
- package/dist/agents/core/session/utils/jsonl-reader.js.map +1 -0
- package/dist/agents/core/session/utils/jsonl-writer.d.ts +26 -0
- package/dist/agents/core/session/utils/jsonl-writer.d.ts.map +1 -0
- package/dist/agents/core/session/utils/jsonl-writer.js +56 -0
- package/dist/agents/core/session/utils/jsonl-writer.js.map +1 -0
- package/dist/agents/core/types.d.ts +78 -11
- package/dist/agents/core/types.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude-message-types.d.ts +74 -0
- package/dist/agents/plugins/claude/claude-message-types.d.ts.map +1 -0
- package/dist/agents/plugins/claude/claude-message-types.js +8 -0
- package/dist/agents/plugins/claude/claude-message-types.js.map +1 -0
- package/dist/agents/plugins/claude/claude.plugin-installer.d.ts +53 -0
- package/dist/agents/plugins/claude/claude.plugin-installer.d.ts.map +1 -0
- package/dist/agents/plugins/claude/claude.plugin-installer.js +63 -0
- package/dist/agents/plugins/claude/claude.plugin-installer.js.map +1 -0
- package/dist/agents/plugins/claude/claude.plugin.d.ts +26 -0
- package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -0
- package/dist/agents/plugins/{claude.plugin.js → claude/claude.plugin.js} +20 -11
- package/dist/agents/plugins/claude/claude.plugin.js.map +1 -0
- package/dist/agents/plugins/claude/claude.session.d.ts +60 -0
- package/dist/agents/plugins/claude/claude.session.d.ts.map +1 -0
- package/dist/agents/plugins/claude/claude.session.js +339 -0
- package/dist/agents/plugins/claude/claude.session.js.map +1 -0
- package/dist/agents/plugins/claude/plugin/.claude-plugin/local-install.json +15 -0
- package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +9 -0
- package/dist/agents/plugins/claude/plugin/README.md +299 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/README.md +539 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/CLAUDE.md.template +511 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/INDEX.md +205 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/TEMPLATE_SIZES.md +74 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/api/api-patterns.md.template +207 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/layered-architecture.md.template +143 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/project-structure.md.template +127 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/data/database-patterns.md.template +168 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/development/development-practices.md.template +210 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/integration/external-integrations.md.template +160 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/security/security-practices.md.template +170 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/code-quality.md.template +150 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/git-workflow.md.template +177 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/testing/testing-patterns.md.template +143 -0
- package/dist/agents/plugins/claude/plugin/commands/README.md +0 -0
- package/dist/agents/plugins/claude/plugin/commands/codemie-catchup.md +10 -0
- package/dist/agents/plugins/claude/plugin/commands/codemie-init.md +731 -0
- package/dist/agents/plugins/claude/plugin/commands/memory-add.md +44 -0
- package/dist/agents/plugins/claude/plugin/commands/memory-init.md +18 -0
- package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +54 -0
- package/dist/agents/plugins/claude/plugin/hooks/hooks.json +71 -0
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts +51 -0
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -0
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +840 -0
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -0
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts +37 -0
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts.map +1 -0
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js +275 -0
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js.map +1 -0
- package/dist/agents/plugins/gemini/extension/README.md +88 -0
- package/dist/agents/plugins/gemini/extension/gemini-extension.json +11 -0
- package/dist/agents/plugins/gemini/extension/hooks/hooks.json +65 -0
- package/dist/agents/plugins/gemini/gemini.extension-installer.d.ts +49 -0
- package/dist/agents/plugins/gemini/gemini.extension-installer.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/gemini.extension-installer.js +63 -0
- package/dist/agents/plugins/gemini/gemini.extension-installer.js.map +1 -0
- package/dist/agents/plugins/gemini/gemini.hook-transformer.d.ts +43 -0
- package/dist/agents/plugins/gemini/gemini.hook-transformer.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/gemini.hook-transformer.js +57 -0
- package/dist/agents/plugins/gemini/gemini.hook-transformer.js.map +1 -0
- package/dist/agents/plugins/gemini/gemini.plugin.d.ts +32 -0
- package/dist/agents/plugins/gemini/gemini.plugin.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/gemini.plugin.js +136 -0
- package/dist/agents/plugins/gemini/gemini.plugin.js.map +1 -0
- package/dist/agents/plugins/gemini/gemini.session-adapter.d.ts +68 -0
- package/dist/agents/plugins/gemini/gemini.session-adapter.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/gemini.session-adapter.js +268 -0
- package/dist/agents/plugins/gemini/gemini.session-adapter.js.map +1 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts +36 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js +186 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js.map +1 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.d.ts +32 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.js +193 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.metrics-processor.js.map +1 -0
- package/dist/agents/plugins/gemini/session/utils/token-aggregator.d.ts +26 -0
- package/dist/agents/plugins/gemini/session/utils/token-aggregator.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/session/utils/token-aggregator.js +38 -0
- package/dist/agents/plugins/gemini/session/utils/token-aggregator.js.map +1 -0
- package/dist/agents/plugins/gemini/session/utils/tool-aggregator.d.ts +33 -0
- package/dist/agents/plugins/gemini/session/utils/tool-aggregator.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/session/utils/tool-aggregator.js +58 -0
- package/dist/agents/plugins/gemini/session/utils/tool-aggregator.js.map +1 -0
- package/dist/agents/plugins/gemini/session/utils/turn-detector.d.ts +70 -0
- package/dist/agents/plugins/gemini/session/utils/turn-detector.d.ts.map +1 -0
- package/dist/agents/plugins/gemini/session/utils/turn-detector.js +86 -0
- package/dist/agents/plugins/gemini/session/utils/turn-detector.js.map +1 -0
- package/dist/agents/registry.d.ts +7 -2
- package/dist/agents/registry.d.ts.map +1 -1
- package/dist/agents/registry.js +17 -8
- package/dist/agents/registry.js.map +1 -1
- package/dist/cli/commands/analytics/data-loader.d.ts +1 -1
- package/dist/cli/commands/analytics/data-loader.js +1 -1
- package/dist/cli/commands/analytics/index.js +1 -1
- package/dist/cli/commands/analytics/index.js.map +1 -1
- package/dist/cli/commands/doctor/checks/PythonCheck.d.ts +13 -0
- package/dist/cli/commands/doctor/checks/PythonCheck.d.ts.map +1 -1
- package/dist/cli/commands/doctor/checks/PythonCheck.js +90 -31
- package/dist/cli/commands/doctor/checks/PythonCheck.js.map +1 -1
- package/dist/cli/commands/hook.d.ts +7 -0
- package/dist/cli/commands/hook.d.ts.map +1 -0
- package/dist/cli/commands/hook.js +792 -0
- package/dist/cli/commands/hook.js.map +1 -0
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +3 -4
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +2 -1
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/first-time.d.ts +4 -0
- package/dist/cli/first-time.d.ts.map +1 -1
- package/dist/cli/first-time.js +26 -13
- package/dist/cli/first-time.js.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/frameworks/core/types.d.ts +1 -1
- package/dist/frameworks/plugins/speckit.plugin.d.ts.map +1 -1
- package/dist/frameworks/plugins/speckit.plugin.js +1 -2
- package/dist/frameworks/plugins/speckit.plugin.js.map +1 -1
- package/dist/migrations/002-consolidate-sessions.migration.d.ts +50 -0
- package/dist/migrations/002-consolidate-sessions.migration.d.ts.map +1 -0
- package/dist/migrations/002-consolidate-sessions.migration.js +220 -0
- package/dist/migrations/002-consolidate-sessions.migration.js.map +1 -0
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +3 -2
- package/dist/migrations/index.js.map +1 -1
- package/dist/providers/core/types.d.ts +1 -1
- package/dist/providers/plugins/ollama/ollama.template.d.ts.map +1 -1
- package/dist/providers/plugins/ollama/ollama.template.js +2 -10
- package/dist/providers/plugins/ollama/ollama.template.js.map +1 -1
- package/dist/providers/plugins/sso/index.d.ts +1 -1
- package/dist/providers/plugins/sso/index.d.ts.map +1 -1
- package/dist/providers/plugins/sso/index.js +1 -1
- package/dist/providers/plugins/sso/index.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/index.d.ts +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/index.d.ts.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/index.js +3 -3
- package/dist/providers/plugins/sso/proxy/plugins/index.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.d.ts +40 -0
- package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.d.ts.map +1 -0
- package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js +194 -0
- package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js.map +1 -0
- package/dist/providers/plugins/sso/proxy/proxy-http-client.d.ts +1 -0
- package/dist/providers/plugins/sso/proxy/proxy-http-client.d.ts.map +1 -1
- package/dist/providers/plugins/sso/proxy/proxy-http-client.js +40 -6
- package/dist/providers/plugins/sso/proxy/proxy-http-client.js.map +1 -1
- package/dist/providers/plugins/sso/session/BaseProcessor.d.ts +72 -0
- package/dist/providers/plugins/sso/session/BaseProcessor.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/BaseProcessor.js +9 -0
- package/dist/providers/plugins/sso/session/BaseProcessor.js.map +1 -0
- package/dist/providers/plugins/sso/session/BaseSessionAdapter.d.ts +99 -0
- package/dist/providers/plugins/sso/session/BaseSessionAdapter.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/BaseSessionAdapter.js +9 -0
- package/dist/providers/plugins/sso/session/BaseSessionAdapter.js.map +1 -0
- package/dist/providers/plugins/sso/session/SessionSyncer.d.ts +36 -0
- package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/SessionSyncer.js +140 -0
- package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.d.ts +26 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.js +146 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-api-client.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts +23 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js +171 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.d.ts +69 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.js +7 -0
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-types.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/metrics/MetricsWriter.d.ts +30 -0
- package/dist/providers/plugins/sso/session/processors/metrics/MetricsWriter.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/processors/metrics/MetricsWriter.js +79 -0
- package/dist/providers/plugins/sso/session/processors/metrics/MetricsWriter.js.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-aggregator.d.ts → session/processors/metrics/metrics-aggregator.d.ts} +6 -5
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-aggregator.js → session/processors/metrics/metrics-aggregator.js} +20 -12
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-sender.d.ts → session/processors/metrics/metrics-api-client.d.ts} +18 -11
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-sender.js → session/processors/metrics/metrics-api-client.js} +143 -15
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-post-processor.d.ts → session/processors/metrics/metrics-post-processor.d.ts} +3 -3
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-post-processor.js → session/processors/metrics/metrics-post-processor.js} +3 -3
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js.map +1 -0
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts +24 -0
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-sync.plugin.js → session/processors/metrics/metrics-sync-processor.js} +94 -165
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-types.d.ts → session/processors/metrics/metrics-types.d.ts} +2 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.metrics-types.js → session/processors/metrics/metrics-types.js} +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.js.map +1 -0
- package/dist/providers/plugins/sso/session/utils/jsonl-reader.d.ts +15 -0
- package/dist/providers/plugins/sso/session/utils/jsonl-reader.d.ts.map +1 -0
- package/dist/providers/plugins/sso/session/utils/jsonl-reader.js +33 -0
- package/dist/providers/plugins/sso/session/utils/jsonl-reader.js.map +1 -0
- package/dist/providers/plugins/sso/session/utils/jsonl-writer.d.ts +26 -0
- package/dist/providers/plugins/sso/session/utils/jsonl-writer.d.ts.map +1 -0
- package/dist/providers/plugins/sso/{metrics/sync/sso.jsonl-writer.js → session/utils/jsonl-writer.js} +11 -27
- package/dist/providers/plugins/sso/session/utils/jsonl-writer.js.map +1 -0
- package/dist/providers/plugins/sso/sso.template.d.ts.map +1 -1
- package/dist/providers/plugins/sso/sso.template.js +71 -44
- package/dist/providers/plugins/sso/sso.template.js.map +1 -1
- package/dist/utils/file-operations.d.ts +20 -0
- package/dist/utils/file-operations.d.ts.map +1 -0
- package/dist/utils/file-operations.js +48 -0
- package/dist/utils/file-operations.js.map +1 -0
- package/dist/utils/logger.d.ts +2 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +12 -4
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/paths.d.ts +20 -5
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +23 -5
- package/dist/utils/paths.js.map +1 -1
- package/dist/utils/processes.d.ts +2 -0
- package/dist/utils/processes.d.ts.map +1 -1
- package/dist/utils/processes.js +6 -1
- package/dist/utils/processes.js.map +1 -1
- package/package.json +9 -9
- package/scripts/copy-plugins.js +57 -0
- package/scripts/license-check.js +23 -0
- package/bin/codemie-codex.js +0 -18
- package/bin/codemie-deepagents.js +0 -18
- package/dist/agents/core/BaseMetricsAdapter.d.ts +0 -165
- package/dist/agents/core/BaseMetricsAdapter.d.ts.map +0 -1
- package/dist/agents/core/BaseMetricsAdapter.js +0 -308
- package/dist/agents/core/BaseMetricsAdapter.js.map +0 -1
- package/dist/agents/core/metrics/MetricsOrchestrator.d.ts +0 -81
- package/dist/agents/core/metrics/MetricsOrchestrator.d.ts.map +0 -1
- package/dist/agents/core/metrics/MetricsOrchestrator.js +0 -417
- package/dist/agents/core/metrics/MetricsOrchestrator.js.map +0 -1
- package/dist/agents/core/metrics/core/DeltaWriter.d.ts +0 -49
- package/dist/agents/core/metrics/core/DeltaWriter.d.ts.map +0 -1
- package/dist/agents/core/metrics/core/DeltaWriter.js +0 -152
- package/dist/agents/core/metrics/core/DeltaWriter.js.map +0 -1
- package/dist/agents/core/metrics/core/FileSnapshotter.d.ts +0 -22
- package/dist/agents/core/metrics/core/FileSnapshotter.d.ts.map +0 -1
- package/dist/agents/core/metrics/core/FileSnapshotter.js +0 -74
- package/dist/agents/core/metrics/core/FileSnapshotter.js.map +0 -1
- package/dist/agents/core/metrics/core/SessionCorrelator.d.ts +0 -34
- package/dist/agents/core/metrics/core/SessionCorrelator.d.ts.map +0 -1
- package/dist/agents/core/metrics/core/SessionCorrelator.js +0 -157
- package/dist/agents/core/metrics/core/SessionCorrelator.js.map +0 -1
- package/dist/agents/core/metrics/core/SyncStateManager.d.ts +0 -69
- package/dist/agents/core/metrics/core/SyncStateManager.d.ts.map +0 -1
- package/dist/agents/core/metrics/core/SyncStateManager.js +0 -283
- package/dist/agents/core/metrics/core/SyncStateManager.js.map +0 -1
- package/dist/agents/core/metrics/session/SessionStore.d.ts +0 -43
- package/dist/agents/core/metrics/session/SessionStore.d.ts.map +0 -1
- package/dist/agents/core/metrics/session/SessionStore.js +0 -146
- package/dist/agents/core/metrics/session/SessionStore.js.map +0 -1
- package/dist/agents/core/metrics-config.d.ts +0 -38
- package/dist/agents/core/metrics-config.d.ts.map +0 -1
- package/dist/agents/core/metrics-config.js +0 -96
- package/dist/agents/core/metrics-config.js.map +0 -1
- package/dist/agents/plugins/claude.metrics.d.ts +0 -102
- package/dist/agents/plugins/claude.metrics.d.ts.map +0 -1
- package/dist/agents/plugins/claude.metrics.js +0 -656
- package/dist/agents/plugins/claude.metrics.js.map +0 -1
- package/dist/agents/plugins/claude.plugin.d.ts +0 -19
- package/dist/agents/plugins/claude.plugin.d.ts.map +0 -1
- package/dist/agents/plugins/claude.plugin.js.map +0 -1
- package/dist/agents/plugins/codex.metrics.d.ts +0 -69
- package/dist/agents/plugins/codex.metrics.d.ts.map +0 -1
- package/dist/agents/plugins/codex.metrics.js +0 -483
- package/dist/agents/plugins/codex.metrics.js.map +0 -1
- package/dist/agents/plugins/codex.plugin.d.ts +0 -21
- package/dist/agents/plugins/codex.plugin.d.ts.map +0 -1
- package/dist/agents/plugins/codex.plugin.js +0 -222
- package/dist/agents/plugins/codex.plugin.js.map +0 -1
- package/dist/agents/plugins/deepagents.plugin.d.ts +0 -21
- package/dist/agents/plugins/deepagents.plugin.d.ts.map +0 -1
- package/dist/agents/plugins/deepagents.plugin.js +0 -104
- package/dist/agents/plugins/deepagents.plugin.js.map +0 -1
- package/dist/agents/plugins/gemini.metrics.d.ts +0 -99
- package/dist/agents/plugins/gemini.metrics.d.ts.map +0 -1
- package/dist/agents/plugins/gemini.metrics.js +0 -475
- package/dist/agents/plugins/gemini.metrics.js.map +0 -1
- package/dist/agents/plugins/gemini.plugin.d.ts +0 -16
- package/dist/agents/plugins/gemini.plugin.d.ts.map +0 -1
- package/dist/agents/plugins/gemini.plugin.js +0 -80
- package/dist/agents/plugins/gemini.plugin.js.map +0 -1
- package/dist/agents/plugins/history-parser.d.ts +0 -52
- package/dist/agents/plugins/history-parser.d.ts.map +0 -1
- package/dist/agents/plugins/history-parser.js +0 -155
- package/dist/agents/plugins/history-parser.js.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.jsonl-writer.d.ts +0 -28
- package/dist/providers/plugins/sso/metrics/sync/sso.jsonl-writer.d.ts.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.jsonl-writer.js.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.lifecycle-handler.d.ts +0 -62
- package/dist/providers/plugins/sso/metrics/sync/sso.lifecycle-handler.d.ts.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.lifecycle-handler.js +0 -157
- package/dist/providers/plugins/sso/metrics/sync/sso.lifecycle-handler.js.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-aggregator.d.ts.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-aggregator.js.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-api-client.d.ts +0 -32
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-api-client.d.ts.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-api-client.js +0 -159
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-api-client.js.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-post-processor.d.ts.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-post-processor.js.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sender.d.ts.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sender.js.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sync.plugin.d.ts +0 -36
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sync.plugin.d.ts.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-sync.plugin.js.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-types.d.ts.map +0 -1
- package/dist/providers/plugins/sso/metrics/sync/sso.metrics-types.js.map +0 -1
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
**Purpose**: AI-optimized execution guide for Claude Code agents working with the [PROJECT_NAME] codebase
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📚 GUIDE IMPORTS
|
|
8
|
+
|
|
9
|
+
This document references detailed guides stored in `.codemie/guides/`. Key references:
|
|
10
|
+
|
|
11
|
+
### 🚨 MANDATORY RULE: Check Guides First
|
|
12
|
+
|
|
13
|
+
**BEFORE searching files or codebase for information, you MUST:**
|
|
14
|
+
|
|
15
|
+
1. **Always check** if the guides referenced below contain relevant information for the prompt or task
|
|
16
|
+
2. **Use the Task Classifier** in [Instant Start](#-instant-start-read-first) to identify which guides are relevant
|
|
17
|
+
3. **Load and review** the appropriate P0 (required) guides BEFORE performing direct file searches
|
|
18
|
+
4. **Only proceed** to codebase searches after confirming guides don't contain the needed patterns/information
|
|
19
|
+
|
|
20
|
+
**This rule is MANDATORY and must be followed without exceptions.**
|
|
21
|
+
|
|
22
|
+
**Why**: Guides contain curated patterns, best practices, and architectural decisions. Checking them first:
|
|
23
|
+
- Prevents reinventing existing patterns
|
|
24
|
+
- Ensures consistency with established conventions
|
|
25
|
+
- Saves time by providing direct answers to common questions
|
|
26
|
+
- Reduces risk of introducing anti-patterns
|
|
27
|
+
|
|
28
|
+
**Workflow**: Prompt → Task Classifier → Load Relevant Guides → Check Guide Content → Then Search Codebase (if needed)
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
### 📖 Guide References by Category
|
|
33
|
+
|
|
34
|
+
<!-- FILL IN: Add references to your project-specific guides -->
|
|
35
|
+
|
|
36
|
+
**[CATEGORY_1]**:
|
|
37
|
+
- [Pattern name]: .codemie/guides/[category]/[pattern-name].md
|
|
38
|
+
|
|
39
|
+
**[CATEGORY_2]**:
|
|
40
|
+
- [Pattern name]: .codemie/guides/[category]/[pattern-name].md
|
|
41
|
+
|
|
42
|
+
<!-- Common categories to consider:
|
|
43
|
+
- Agents & Tools (if using LLM agents)
|
|
44
|
+
- API Development (REST/GraphQL patterns)
|
|
45
|
+
- Architecture (layered architecture, service patterns)
|
|
46
|
+
- Data & Database (database patterns, repositories)
|
|
47
|
+
- Development Practices (error handling, logging, security)
|
|
48
|
+
- Testing (testing patterns, frameworks)
|
|
49
|
+
- Integrations (external services, cloud providers)
|
|
50
|
+
- Standards (code quality, git workflow)
|
|
51
|
+
- Workflows (business workflows, state machines)
|
|
52
|
+
-->
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## ⚡ INSTANT START (Read First)
|
|
57
|
+
|
|
58
|
+
### 1. Critical Rules (MANDATORY - Always Check)
|
|
59
|
+
|
|
60
|
+
| Rule | Trigger | Action Required |
|
|
61
|
+
|------|---------|-----------------|
|
|
62
|
+
| 🚨 **Check Guides First** | ANY new prompt/task | ALWAYS check relevant guides BEFORE searching codebase → [Guide Imports](#-guide-imports) |
|
|
63
|
+
| 🚨 **Testing** | User says "write tests", "run tests" | ONLY then work on tests → [Testing Policy](#testing-policy) |
|
|
64
|
+
| 🚨 **Git Ops** | User says "commit", "push", "create PR" | ONLY then do git operations → [Git Policy](#git-operations-policy) |
|
|
65
|
+
| 🚨 **[ENV_NAME]** | ANY [language/tool] command | ALWAYS [activation step] → [Env Policy](#environment-policy) |
|
|
66
|
+
| 🚨 **Shell** | ANY shell command | ONLY bash/Linux syntax → [Shell Policy](#shell-environment-policy) |
|
|
67
|
+
|
|
68
|
+
<!-- FILL IN: Add project-specific critical rules -->
|
|
69
|
+
|
|
70
|
+
**Emergency Recovery**: If commands fail → Check [Troubleshooting](#-troubleshooting-quick-reference)
|
|
71
|
+
|
|
72
|
+
### 2. Task Classifier (What am I doing?)
|
|
73
|
+
|
|
74
|
+
**Scan user request for keywords → Load guides → Execute**
|
|
75
|
+
|
|
76
|
+
<!-- FILL IN: Customize based on your project's technology stack and patterns -->
|
|
77
|
+
|
|
78
|
+
| Keywords | Complexity | Load Guide (P0=Required) | Also Load (P1=Optional) |
|
|
79
|
+
|----------|-----------|--------------------------|-------------------------|
|
|
80
|
+
| **[keyword1, keyword2]** | Medium-High | .codemie/guides/[category]/[guide].md | .codemie/guides/[category]/[optional-guide].md |
|
|
81
|
+
| **[keyword3, keyword4]** | Medium | .codemie/guides/[category]/[guide].md | - |
|
|
82
|
+
|
|
83
|
+
<!-- Example entries:
|
|
84
|
+
| **api, endpoint, router** | Medium | .codemie/guides/api/rest-api-patterns.md | .codemie/guides/api/endpoint-conventions.md |
|
|
85
|
+
| **test, pytest** | Medium | .codemie/guides/testing/testing-patterns.md | .codemie/guides/testing/testing-api-patterns.md |
|
|
86
|
+
| **database, sql** | Medium-High | .codemie/guides/data/database-patterns.md | .codemie/guides/data/database-optimization.md |
|
|
87
|
+
-->
|
|
88
|
+
|
|
89
|
+
**Guide Path**: All guides in `.codemie/guides/<category>/`
|
|
90
|
+
|
|
91
|
+
**Complexity Guide**:
|
|
92
|
+
- **Simple**: 1 file, < 5 min, obvious pattern → Use direct tools (Grep/Glob/Read)
|
|
93
|
+
- **Medium**: 2-5 files, 5-15 min, standard patterns → Use direct tools + guide reference
|
|
94
|
+
- **High**: 6+ files, 15+ min, architectural decisions → Consider EnterPlanMode or Task tool
|
|
95
|
+
|
|
96
|
+
### 3. Self-Check Before Starting
|
|
97
|
+
|
|
98
|
+
Before any action:
|
|
99
|
+
- [ ] Did I check relevant guides FIRST (before searching codebase)?
|
|
100
|
+
- [ ] Which critical rules apply? (guides/testing/git/env/shell)
|
|
101
|
+
- [ ] What keywords did I identify?
|
|
102
|
+
- [ ] What's the complexity level?
|
|
103
|
+
- [ ] Which guides do I need to load (P0 first)?
|
|
104
|
+
- [ ] Am I 80%+ confident about approach?
|
|
105
|
+
|
|
106
|
+
**Decision Gates**:
|
|
107
|
+
- ❌ **NO to any above** → ASK USER or READ MORE before proceeding
|
|
108
|
+
- ❌ **Confidence < 80%** → Load P0 guides, then re-assess
|
|
109
|
+
- ✅ **YES to all + Confidence 80%+** → Proceed to execution
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 🔄 EXECUTION WORKFLOW (Step-by-Step)
|
|
114
|
+
|
|
115
|
+
Follow this sequence for every task:
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
START
|
|
119
|
+
│
|
|
120
|
+
├─> STEP 1: Parse Request
|
|
121
|
+
│ ├─ Identify task keywords (see Task Classifier above)
|
|
122
|
+
│ ├─ Check which Critical Rules apply
|
|
123
|
+
│ ├─ Assess complexity level
|
|
124
|
+
│ └─ Gate: Can I identify 1+ relevant guides? NO → Ask user | YES → Continue
|
|
125
|
+
│
|
|
126
|
+
├─> STEP 2: Confidence Check
|
|
127
|
+
│ ├─ Am I 80%+ confident about approach?
|
|
128
|
+
│ ├─ YES → Continue | NO → Load P0 guides
|
|
129
|
+
│ └─ Gate: After reading, confidence 80%+? NO → Load P1 guides or ask user | YES → Continue
|
|
130
|
+
│
|
|
131
|
+
├─> STEP 3: Load Documentation (Selective, Not Everything)
|
|
132
|
+
│ ├─ Load P0 guides from Task Classifier (REQUIRED for Medium/High complexity)
|
|
133
|
+
│ ├─ Scan P1 guides - load only if confidence still < 80% (OPTIONAL)
|
|
134
|
+
│ └─ Gate: Do I have enough context? NO → Load more or ask user | YES → Continue
|
|
135
|
+
│
|
|
136
|
+
├─> STEP 4: Pattern Match (Use Quick References)
|
|
137
|
+
│ ├─ Check Pattern Tables below (error handling, logging, architecture)
|
|
138
|
+
│ ├─ Check Common Pitfalls table
|
|
139
|
+
│ └─ Gate: Do I know the correct pattern? NO → Read guide detail | YES → Continue
|
|
140
|
+
│
|
|
141
|
+
├─> STEP 5: Execute (Apply Patterns)
|
|
142
|
+
│ ├─ Apply patterns from loaded guides
|
|
143
|
+
│ ├─ Follow Critical Rules (test/git/env/shell)
|
|
144
|
+
│ ├─ Track progress with success indicators
|
|
145
|
+
│ └─ Cross-check with Quick Validation (below)
|
|
146
|
+
│
|
|
147
|
+
└─> STEP 6: Validate (Before Delivery)
|
|
148
|
+
├─ Run through Quick Validation checklist
|
|
149
|
+
├─ Check Success Indicators
|
|
150
|
+
├─ Gate: All checks pass? NO → Fix issues | YES → Deliver
|
|
151
|
+
└─ END
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Success Indicators (Am I on track?)
|
|
155
|
+
|
|
156
|
+
| Stage | Good Signs | Warning Signs |
|
|
157
|
+
|-------|-----------|---------------|
|
|
158
|
+
| **Parse Request** | Keywords match Task Classifier | No matching keywords → ask user |
|
|
159
|
+
| **Confidence Check** | 80%+ confident after reading | Still confused after P0 guides → need clarification |
|
|
160
|
+
| **Load Docs** | Patterns clear, examples match task | Multiple conflicting patterns → ask user preference |
|
|
161
|
+
| **Pattern Match** | Found exact pattern in quick ref | No matching pattern → read full guide |
|
|
162
|
+
| **Execute** | Code compiles, follows architecture | Errors, missing imports → check guide again |
|
|
163
|
+
| **Validate** | All checks pass, tests work | Any check fails → fix before delivery |
|
|
164
|
+
|
|
165
|
+
### Quick Validation (Run Before Delivery)
|
|
166
|
+
|
|
167
|
+
<!-- FILL IN: Customize based on your project's quality standards -->
|
|
168
|
+
|
|
169
|
+
| Priority | Check | How to Verify | Fix If Failed |
|
|
170
|
+
|----------|-------|---------------|---------------|
|
|
171
|
+
| 🚨 | **Functionality** | Does it meet user request? | Re-read requirements |
|
|
172
|
+
| 🚨 | **Critical Rules** | Did I follow test/git/env/shell rules? | Review policies below |
|
|
173
|
+
| 🚨 | **Security** | No hardcoded secrets? Input validated? | See [Security Patterns](#security-patterns-mandatory) |
|
|
174
|
+
| 🚨 | **Error Handling** | Using proper exceptions? | See [Error Handling](#error-handling-use-these-patterns) |
|
|
175
|
+
| 🚨 | **Logging** | Following logging patterns? | See [Logging Patterns](#logging-patterns-mandatory) |
|
|
176
|
+
| ⚠️ | **Architecture** | Followed project architecture? | See guides in .codemie/guides/architecture/ |
|
|
177
|
+
| ⚠️ | **Async/Concurrency** | Used appropriate patterns? | See [Common Pitfalls](#common-pitfalls-avoid-these) |
|
|
178
|
+
| ✅ | **Type Safety** | All functions typed? | See code quality guide |
|
|
179
|
+
| ✅ | **Code Quality** | No TODOs, unused imports? | Run linter |
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## 📊 PATTERN QUICK REFERENCE
|
|
184
|
+
|
|
185
|
+
<!-- FILL IN: Add quick reference tables for your most common patterns -->
|
|
186
|
+
|
|
187
|
+
### Error Handling (Use These Patterns)
|
|
188
|
+
|
|
189
|
+
<!-- Example structure - customize for your project -->
|
|
190
|
+
|
|
191
|
+
| When | Pattern/Exception | Import From | Related Patterns |
|
|
192
|
+
|------|-------------------|-------------|------------------|
|
|
193
|
+
| Validation failed | `[ValidationError]` | `[module.path]` | [Logging](#logging-patterns-mandatory) |
|
|
194
|
+
| Not found | `[NotFoundException]` | `[module.path]` | [API Patterns](#api-patterns) |
|
|
195
|
+
| Business logic | `[BusinessError]` | `[module.path]` | [Service Layer](#service-layer) |
|
|
196
|
+
|
|
197
|
+
**Detail**: .codemie/guides/development/error-handling.md
|
|
198
|
+
|
|
199
|
+
### Logging Patterns (MANDATORY)
|
|
200
|
+
|
|
201
|
+
<!-- Example structure - customize for your project -->
|
|
202
|
+
|
|
203
|
+
| ✅ DO | ❌ DON'T | Why | Related |
|
|
204
|
+
|-------|----------|-----|---------|
|
|
205
|
+
| [Best practice 1] | [Anti-pattern 1] | [Reason] | [Related pattern] |
|
|
206
|
+
| [Best practice 2] | [Anti-pattern 2] | [Reason] | [Related pattern] |
|
|
207
|
+
|
|
208
|
+
**Detail**: .codemie/guides/development/logging-patterns.md
|
|
209
|
+
|
|
210
|
+
### Architecture Patterns (Core Rules)
|
|
211
|
+
|
|
212
|
+
<!-- FILL IN: Document your project's architectural layers -->
|
|
213
|
+
|
|
214
|
+
| Layer | Responsibility | Example Path | Related Guide |
|
|
215
|
+
|-------|----------------|--------------|---------------|
|
|
216
|
+
| **[Layer 1]** | [Responsibility] | `[path/to/layer]` | .codemie/guides/[guide].md |
|
|
217
|
+
| **[Layer 2]** | [Responsibility] | `[path/to/layer]` | .codemie/guides/[guide].md |
|
|
218
|
+
|
|
219
|
+
**Flow**: `[Layer1] → [Layer2] → [Layer3]` (Never skip layers)
|
|
220
|
+
|
|
221
|
+
**Detail**: .codemie/guides/architecture/layered-architecture.md
|
|
222
|
+
|
|
223
|
+
### Security Patterns (MANDATORY)
|
|
224
|
+
|
|
225
|
+
<!-- FILL IN: Document security requirements -->
|
|
226
|
+
|
|
227
|
+
| Rule | Implementation | Related Guide |
|
|
228
|
+
|------|----------------|---------------|
|
|
229
|
+
| No hardcoded credentials | [How to handle] | .codemie/guides/development/security-patterns.md |
|
|
230
|
+
| Input validation | [Validation approach] | .codemie/guides/[guide].md |
|
|
231
|
+
| Authentication | [Auth pattern] | .codemie/guides/[guide].md |
|
|
232
|
+
|
|
233
|
+
**Detail**: .codemie/guides/development/security-patterns.md
|
|
234
|
+
|
|
235
|
+
### Common Pitfalls (Avoid These)
|
|
236
|
+
|
|
237
|
+
<!-- FILL IN: Document common mistakes and anti-patterns -->
|
|
238
|
+
|
|
239
|
+
| Category | 🚨 Never Do This | ✅ Do This Instead | Guide Reference |
|
|
240
|
+
|----------|------------------|---------------------|-----------------|
|
|
241
|
+
| **[Language]** | [Anti-pattern] | [Correct pattern] | .codemie/guides/[guide].md |
|
|
242
|
+
| **[Framework]** | [Anti-pattern] | [Correct pattern] | .codemie/guides/[guide].md |
|
|
243
|
+
| **[Tool]** | [Anti-pattern] | [Correct pattern] | .codemie/guides/[guide].md |
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## 🛠️ DEVELOPMENT COMMANDS
|
|
248
|
+
|
|
249
|
+
<!-- FILL IN: Document your project's common commands -->
|
|
250
|
+
|
|
251
|
+
**🚨 CRITICAL**: [Environment setup instructions, e.g., "Activate virtualenv before ALL Python commands"]
|
|
252
|
+
|
|
253
|
+
### Common Commands
|
|
254
|
+
|
|
255
|
+
| Task | Command | Env? | Notes |
|
|
256
|
+
|------|---------|------|-------|
|
|
257
|
+
| **Setup** | `[setup command]` | [Y/N] | First time setup |
|
|
258
|
+
| **Run Server** | `[run command]` | [Y/N] | Dev server |
|
|
259
|
+
| **Lint** | `[lint command]` | [Y/N] | Check code quality |
|
|
260
|
+
| **Format** | `[format command]` | [Y/N] | Format code |
|
|
261
|
+
| **Test** ⚠️ | `[test command]` | [Y/N] | ONLY if user requests |
|
|
262
|
+
| **Build** | `[build command]` | [Y/N] | Build project |
|
|
263
|
+
|
|
264
|
+
<!-- Example entries:
|
|
265
|
+
| **Setup** | `npm install` | N/A | First time setup |
|
|
266
|
+
| **Run Server** | `npm run dev` | N/A | Dev server (port 3000) |
|
|
267
|
+
| **Lint** | `npm run lint` | N/A | ESLint check |
|
|
268
|
+
| **Format** | `npm run format` | N/A | Prettier format |
|
|
269
|
+
| **Test** ⚠️ | `npm test` | N/A | ONLY if user requests |
|
|
270
|
+
| **Build** | `npm run build` | N/A | Production build |
|
|
271
|
+
-->
|
|
272
|
+
|
|
273
|
+
**[Additional Info]**: [URLs, ports, documentation links]
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## 🔧 TROUBLESHOOTING QUICK REFERENCE
|
|
278
|
+
|
|
279
|
+
### Common Issues & Fixes
|
|
280
|
+
|
|
281
|
+
<!-- FILL IN: Document common issues and solutions -->
|
|
282
|
+
|
|
283
|
+
| Symptom | Likely Cause | Fix | Prevention |
|
|
284
|
+
|---------|--------------|-----|------------|
|
|
285
|
+
| [Error message/symptom] | [Root cause] | [Solution steps] | [How to prevent] |
|
|
286
|
+
| [Error message/symptom] | [Root cause] | [Solution steps] | [How to prevent] |
|
|
287
|
+
|
|
288
|
+
### Diagnostic Commands
|
|
289
|
+
|
|
290
|
+
| Need to Check | Command | What to Look For |
|
|
291
|
+
|---------------|---------|------------------|
|
|
292
|
+
| [System status] | `[diagnostic command]` | [Expected output] |
|
|
293
|
+
| [Dependency status] | `[diagnostic command]` | [Expected output] |
|
|
294
|
+
|
|
295
|
+
### Emergency Recovery
|
|
296
|
+
|
|
297
|
+
| Situation | Action |
|
|
298
|
+
|-----------|--------|
|
|
299
|
+
| **Commands failing** | 1. [First recovery step]<br>2. [Second recovery step]<br>3. [Escalation step] |
|
|
300
|
+
| **Build errors** | 1. [First recovery step]<br>2. [Second recovery step] |
|
|
301
|
+
| **Pattern unclear** | 1. Search .codemie/guides/ for pattern<br>2. Check related patterns<br>3. Ask user if ambiguous |
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## 🏗️ PROJECT CONTEXT
|
|
306
|
+
|
|
307
|
+
### Technology Stack
|
|
308
|
+
|
|
309
|
+
<!-- FILL IN: Document your technology stack -->
|
|
310
|
+
|
|
311
|
+
| Component | Tool | Version | Purpose |
|
|
312
|
+
|-----------|------|---------|---------|
|
|
313
|
+
| Language | [Language] | [Version] | Core language |
|
|
314
|
+
| Framework | [Framework] | [Version] | [Purpose] |
|
|
315
|
+
| Database | [Database] | [Version] | [Purpose] |
|
|
316
|
+
| Testing | [Test framework] | [Version] | Test framework |
|
|
317
|
+
| Linting | [Linter] | [Version] | Code quality |
|
|
318
|
+
| [Other] | [Tool] | [Version] | [Purpose] |
|
|
319
|
+
|
|
320
|
+
### Core Components
|
|
321
|
+
|
|
322
|
+
<!-- FILL IN: Document your project's main components -->
|
|
323
|
+
|
|
324
|
+
| Component | Path | Purpose | Guide |
|
|
325
|
+
|-----------|------|---------|-------|
|
|
326
|
+
| [Component 1] | `[path/]` | [Description] | .codemie/guides/[guide].md |
|
|
327
|
+
| [Component 2] | `[path/]` | [Description] | .codemie/guides/[guide].md |
|
|
328
|
+
|
|
329
|
+
### Key Integrations
|
|
330
|
+
|
|
331
|
+
<!-- FILL IN: Document external integrations -->
|
|
332
|
+
|
|
333
|
+
| Integration | Purpose | Guide |
|
|
334
|
+
|-------------|---------|-------|
|
|
335
|
+
| [Service 1] | [Purpose] | .codemie/guides/integration/[guide].md |
|
|
336
|
+
| [Service 2] | [Purpose] | .codemie/guides/integration/[guide].md |
|
|
337
|
+
|
|
338
|
+
### Architecture Overview
|
|
339
|
+
|
|
340
|
+
<!-- FILL IN: Brief architecture description -->
|
|
341
|
+
|
|
342
|
+
**[Architecture Pattern Name]**:
|
|
343
|
+
- [Key characteristic 1]
|
|
344
|
+
- [Key characteristic 2]
|
|
345
|
+
- [Key characteristic 3]
|
|
346
|
+
- **Detail**: .codemie/guides/architecture/[guide].md
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## 📝 CODING STANDARDS
|
|
351
|
+
|
|
352
|
+
### [Language] Features (Use These)
|
|
353
|
+
|
|
354
|
+
<!-- FILL IN: Document language-specific features to use -->
|
|
355
|
+
|
|
356
|
+
| Feature | Use For | Guide Reference |
|
|
357
|
+
|---------|---------|-----------------|
|
|
358
|
+
| [Feature 1] | [Use case] | .codemie/guides/standards/code-quality.md |
|
|
359
|
+
| [Feature 2] | [Use case] | .codemie/guides/standards/code-quality.md |
|
|
360
|
+
|
|
361
|
+
**Detail**: .codemie/guides/standards/code-quality.md
|
|
362
|
+
|
|
363
|
+
### Type Safety (REQUIRED/OPTIONAL)
|
|
364
|
+
|
|
365
|
+
<!-- FILL IN: Document type safety requirements -->
|
|
366
|
+
|
|
367
|
+
[Type safety requirements and patterns]
|
|
368
|
+
|
|
369
|
+
### Async/Concurrency Patterns (CRITICAL)
|
|
370
|
+
|
|
371
|
+
<!-- FILL IN: Document async patterns if applicable -->
|
|
372
|
+
|
|
373
|
+
| ✅ DO | ❌ DON'T | Guide |
|
|
374
|
+
|-------|----------|-------|
|
|
375
|
+
| [Best practice] | [Anti-pattern] | .codemie/guides/[guide].md |
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## 📚 DETAILED POLICIES
|
|
380
|
+
|
|
381
|
+
### Testing Policy
|
|
382
|
+
|
|
383
|
+
**MANDATORY RULE**: Tests ONLY when user EXPLICITLY requests
|
|
384
|
+
|
|
385
|
+
**Triggers** (work on tests ONLY if user says):
|
|
386
|
+
- ✅ "write tests"
|
|
387
|
+
- ✅ "run the tests"
|
|
388
|
+
- ✅ "create unit tests"
|
|
389
|
+
- ✅ "add test coverage"
|
|
390
|
+
- ✅ `[test command]`
|
|
391
|
+
|
|
392
|
+
**Never Do**:
|
|
393
|
+
- ❌ Proactively write tests
|
|
394
|
+
- ❌ Suggest running tests
|
|
395
|
+
- ❌ Run tests unless asked
|
|
396
|
+
|
|
397
|
+
**Framework**: [Test framework and tools]
|
|
398
|
+
|
|
399
|
+
**Rationale**: Testing requires time and context. Only implement when explicitly needed.
|
|
400
|
+
|
|
401
|
+
**If Unsure**: Ask user for clarification
|
|
402
|
+
|
|
403
|
+
**Testing Details**: .codemie/guides/testing/testing-patterns.md
|
|
404
|
+
|
|
405
|
+
### Git Operations Policy
|
|
406
|
+
|
|
407
|
+
**MANDATORY RULE**: Git operations ONLY when user EXPLICITLY requests
|
|
408
|
+
|
|
409
|
+
**Triggers** (do git ops ONLY if user says):
|
|
410
|
+
- ✅ "commit these changes"
|
|
411
|
+
- ✅ "create a commit"
|
|
412
|
+
- ✅ "push to remote"
|
|
413
|
+
- ✅ "create a branch"
|
|
414
|
+
- ✅ "create a pull request"
|
|
415
|
+
|
|
416
|
+
**Never Do**:
|
|
417
|
+
- ❌ Proactively commit/push/branch
|
|
418
|
+
- ❌ Suggest git operations
|
|
419
|
+
|
|
420
|
+
**Branch Pattern**: [Branch naming convention]
|
|
421
|
+
|
|
422
|
+
**Rationale**: Git affects version control history. Only perform when explicitly requested.
|
|
423
|
+
|
|
424
|
+
**If Unsure**: Ask user for clarification
|
|
425
|
+
|
|
426
|
+
**Git Details**: .codemie/guides/standards/git-workflow.md
|
|
427
|
+
|
|
428
|
+
### Environment Policy
|
|
429
|
+
|
|
430
|
+
<!-- FILL IN: Document environment setup requirements -->
|
|
431
|
+
|
|
432
|
+
**MANDATORY RULE**: [Environment requirement, e.g., "ALWAYS activate virtualenv BEFORE Python commands"]
|
|
433
|
+
|
|
434
|
+
**Why**: [Reason]
|
|
435
|
+
|
|
436
|
+
**How to Activate**: `[activation command]`
|
|
437
|
+
|
|
438
|
+
**Alternative**: [Alternative approach if applicable]
|
|
439
|
+
|
|
440
|
+
**Rule of Thumb**: [When to know environment is not set up correctly]
|
|
441
|
+
|
|
442
|
+
**Recovery**: See [Troubleshooting](#-troubleshooting-quick-reference)
|
|
443
|
+
|
|
444
|
+
**Detail**: .codemie/guides/development/setup-guide.md
|
|
445
|
+
|
|
446
|
+
### Shell Environment Policy
|
|
447
|
+
|
|
448
|
+
**MANDATORY RULE**: Use bash/Linux commands ONLY
|
|
449
|
+
|
|
450
|
+
**Requirements**:
|
|
451
|
+
- ✅ Bash/shell syntax for all commands
|
|
452
|
+
- ✅ Linux-compatible commands
|
|
453
|
+
- ❌ No Windows commands (PowerShell, cmd.exe)
|
|
454
|
+
|
|
455
|
+
**Rationale**: Ensures consistency across development environments
|
|
456
|
+
|
|
457
|
+
---
|
|
458
|
+
|
|
459
|
+
## 🎯 REMEMBER
|
|
460
|
+
|
|
461
|
+
### Critical Workflow
|
|
462
|
+
1. ⚡ Read [Instant Start](#-instant-start-read-first)
|
|
463
|
+
2. ✅ Run [Self-Check](#3-self-check-before-starting) (check confidence level)
|
|
464
|
+
3. 🔄 Follow [Execution Workflow](#-execution-workflow-step-by-step) (step-by-step with gates)
|
|
465
|
+
4. 📊 Use [Pattern Quick Reference](#-pattern-quick-reference) (fast lookups)
|
|
466
|
+
5. 🔍 Track [Success Indicators](#success-indicators-am-i-on-track) (am I on track?)
|
|
467
|
+
6. ✅ [Validate before delivery](#quick-validation-run-before-delivery) (all checks must pass)
|
|
468
|
+
|
|
469
|
+
### Critical Rules (Check EVERY Time)
|
|
470
|
+
- 🚨 **Check Guides First**: ALWAYS check relevant guides BEFORE searching codebase
|
|
471
|
+
- 🚨 **Testing**: Only when explicitly requested
|
|
472
|
+
- 🚨 **Git**: Only when explicitly requested
|
|
473
|
+
- 🚨 **Environment**: [Environment requirement]
|
|
474
|
+
- 🚨 **Shell**: Bash/Linux only
|
|
475
|
+
|
|
476
|
+
### Decision Making Framework
|
|
477
|
+
1. **Parse**: Use Task Classifier to identify keywords → guides → complexity
|
|
478
|
+
2. **Confidence**: Am I 80%+ confident? NO → Load P0 guides
|
|
479
|
+
3. **Load**: P0 (required) first, then P1 (optional) only if needed
|
|
480
|
+
4. **Execute**: Apply patterns, follow critical rules, track success indicators
|
|
481
|
+
5. **Validate**: All checks must pass before delivery
|
|
482
|
+
6. **Stuck?**: Check [Troubleshooting](#-troubleshooting-quick-reference), load more guides, or ask user
|
|
483
|
+
|
|
484
|
+
### Quality Standards (Non-Negotiable)
|
|
485
|
+
|
|
486
|
+
<!-- FILL IN: Document quality requirements -->
|
|
487
|
+
|
|
488
|
+
- No hardcoded secrets (use environment variables)
|
|
489
|
+
- No placeholders/TODOs in delivered code
|
|
490
|
+
- [Security requirement]
|
|
491
|
+
- [Architecture requirement]
|
|
492
|
+
- [Performance requirement]
|
|
493
|
+
- Type safety on all functions (if applicable)
|
|
494
|
+
- Specific exception handling (no bare catches)
|
|
495
|
+
|
|
496
|
+
### When to Ask User
|
|
497
|
+
- **Ambiguous requirements**: Multiple valid approaches possible
|
|
498
|
+
- **Low confidence**: < 80% after reading P0+P1 guides
|
|
499
|
+
- **Missing information**: Need clarification on scope/approach
|
|
500
|
+
- **High complexity**: Task involves architectural decisions
|
|
501
|
+
- **Policy unclear**: Unsure if testing/git/other policy applies
|
|
502
|
+
|
|
503
|
+
### Confidence Calibration
|
|
504
|
+
- **90%+ confident**: Proceed with execution, minimal guide lookup
|
|
505
|
+
- **80-89% confident**: Review quick reference tables, proceed
|
|
506
|
+
- **70-79% confident**: Load P0 guides, then re-assess
|
|
507
|
+
- **< 70% confident**: Load P0+P1 guides, ask user if still unclear
|
|
508
|
+
|
|
509
|
+
**Production Ready**: Deliver complete, tested, secure solutions without shortcuts.
|
|
510
|
+
|
|
511
|
+
**Questions?** Always better to ask than assume - ask for clarification when unsure.
|