@codemieai/code 0.0.27 → 0.0.29
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 +9 -11
- package/bin/agent-executor.js +1 -1
- package/dist/agents/codemie-code/agent.js +1 -1
- package/dist/agents/codemie-code/config.d.ts +1 -1
- package/dist/agents/codemie-code/config.d.ts.map +1 -1
- package/dist/agents/codemie-code/config.js +3 -4
- package/dist/agents/codemie-code/config.js.map +1 -1
- package/dist/agents/codemie-code/index.js +1 -1
- package/dist/agents/codemie-code/storage/todoStorage.d.ts.map +1 -1
- package/dist/agents/codemie-code/storage/todoStorage.js +2 -2
- package/dist/agents/codemie-code/storage/todoStorage.js.map +1 -1
- package/dist/agents/codemie-code/tools/index.js +1 -1
- package/dist/agents/codemie-code/tools/index.js.map +1 -1
- package/dist/agents/core/AgentCLI.d.ts.map +1 -1
- package/dist/agents/core/AgentCLI.js +6 -10
- 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 +80 -72
- 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/codemie-code.plugin.js +1 -1
- package/dist/agents/plugins/codemie-code.plugin.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/cli/commands/analytics/data-loader.js +3 -3
- package/dist/cli/commands/analytics/data-loader.js.map +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/AIConfigCheck.js +1 -1
- package/dist/cli/commands/doctor/checks/AIConfigCheck.js.map +1 -1
- package/dist/cli/commands/doctor/checks/AwsCliCheck.js +1 -1
- package/dist/cli/commands/doctor/checks/AwsCliCheck.js.map +1 -1
- package/dist/cli/commands/doctor/checks/NpmCheck.js +1 -1
- package/dist/cli/commands/doctor/checks/NpmCheck.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 +91 -32
- package/dist/cli/commands/doctor/checks/PythonCheck.js.map +1 -1
- package/dist/cli/commands/doctor/checks/UvCheck.js +1 -1
- package/dist/cli/commands/doctor/checks/UvCheck.js.map +1 -1
- package/dist/cli/commands/doctor/types.d.ts +1 -1
- package/dist/cli/commands/doctor/types.d.ts.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 +788 -0
- package/dist/cli/commands/hook.js.map +1 -0
- package/dist/cli/commands/profile/auth.js +1 -1
- package/dist/cli/commands/profile/auth.js.map +1 -1
- package/dist/{utils/profile-display.d.ts → cli/commands/profile/display.d.ts} +3 -3
- package/dist/cli/commands/profile/display.d.ts.map +1 -0
- package/dist/{utils/profile-display.js → cli/commands/profile/display.js} +2 -2
- package/dist/cli/commands/profile/display.js.map +1 -0
- package/dist/cli/commands/profile/index.js +2 -2
- package/dist/cli/commands/profile/index.js.map +1 -1
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +4 -5
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/update.d.ts +3 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +291 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/commands/version.js.map +1 -1
- package/dist/{utils → cli}/first-time.d.ts +4 -0
- package/dist/cli/first-time.d.ts.map +1 -0
- package/dist/{utils → cli}/first-time.js +27 -14
- package/dist/cli/first-time.js.map +1 -0
- package/dist/cli/index.js +6 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/env/manager.d.ts.map +1 -1
- package/dist/env/manager.js +3 -4
- package/dist/env/manager.js.map +1 -1
- package/dist/frameworks/core/BaseFrameworkAdapter.js +1 -1
- package/dist/frameworks/core/BaseFrameworkAdapter.js.map +1 -1
- package/dist/frameworks/core/types.d.ts +1 -1
- package/dist/frameworks/plugins/bmad.plugin.js +2 -2
- package/dist/frameworks/plugins/bmad.plugin.js.map +1 -1
- package/dist/frameworks/plugins/speckit.plugin.d.ts.map +1 -1
- package/dist/frameworks/plugins/speckit.plugin.js +2 -3
- package/dist/frameworks/plugins/speckit.plugin.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/migrations/001-config-rename.migration.d.ts.map +1 -1
- package/dist/migrations/001-config-rename.migration.js +2 -2
- package/dist/migrations/001-config-rename.migration.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/migrations/tracker.d.ts.map +1 -1
- package/dist/migrations/tracker.js +2 -2
- package/dist/migrations/tracker.js.map +1 -1
- package/dist/providers/core/base/http-client.js +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 +3 -1
- 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.auth.js +1 -1
- package/dist/providers/plugins/sso/sso.auth.js.map +1 -1
- package/dist/providers/plugins/sso/sso.http-client.d.ts +1 -1
- package/dist/providers/plugins/sso/sso.http-client.js +1 -1
- package/dist/providers/plugins/sso/sso.http-client.js.map +1 -1
- package/dist/providers/plugins/sso/sso.template.d.ts.map +1 -1
- package/dist/providers/plugins/sso/sso.template.js +71 -43
- package/dist/providers/plugins/sso/sso.template.js.map +1 -1
- package/dist/utils/{config-loader.d.ts → config.d.ts} +6 -1
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/{config-loader.js → config.js} +30 -4
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/errors.d.ts +89 -0
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +340 -0
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/exec.d.ts +6 -0
- package/dist/utils/exec.d.ts.map +1 -1
- package/dist/utils/exec.js +6 -0
- package/dist/utils/exec.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 +15 -7
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/{json-parser.d.ts → parsers.d.ts} +1 -1
- package/dist/utils/parsers.d.ts.map +1 -0
- package/dist/utils/{json-parser.js → parsers.js} +1 -1
- package/dist/utils/parsers.js.map +1 -0
- package/dist/utils/{path-utils.d.ts → paths.d.ts} +77 -12
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/{path-utils.js → paths.js} +103 -12
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/{npm.d.ts → processes.d.ts} +44 -7
- package/dist/utils/processes.d.ts.map +1 -0
- package/dist/utils/{npm.js → processes.js} +129 -10
- package/dist/utils/processes.js.map +1 -0
- package/dist/utils/profile.d.ts +1 -16
- package/dist/utils/profile.d.ts.map +1 -1
- package/dist/utils/profile.js +1 -27
- package/dist/utils/profile.js.map +1 -1
- package/dist/utils/security.d.ts +62 -0
- package/dist/utils/security.d.ts.map +1 -0
- package/dist/utils/security.js +396 -0
- package/dist/utils/security.js.map +1 -0
- package/package.json +11 -11
- 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 -95
- 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.plugin.d.ts +0 -17
- package/dist/agents/plugins/codex.plugin.d.ts.map +0 -1
- package/dist/agents/plugins/codex.plugin.js +0 -386
- 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
- package/dist/utils/config-loader.d.ts.map +0 -1
- package/dist/utils/config-loader.js.map +0 -1
- package/dist/utils/credential-store.d.ts +0 -22
- package/dist/utils/credential-store.d.ts.map +0 -1
- package/dist/utils/credential-store.js +0 -165
- package/dist/utils/credential-store.js.map +0 -1
- package/dist/utils/dirname.d.ts +0 -7
- package/dist/utils/dirname.d.ts.map +0 -1
- package/dist/utils/dirname.js +0 -11
- package/dist/utils/dirname.js.map +0 -1
- package/dist/utils/error-context.d.ts +0 -90
- package/dist/utils/error-context.d.ts.map +0 -1
- package/dist/utils/error-context.js +0 -338
- package/dist/utils/error-context.js.map +0 -1
- package/dist/utils/first-time.d.ts.map +0 -1
- package/dist/utils/first-time.js.map +0 -1
- package/dist/utils/git.d.ts +0 -13
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js +0 -37
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/installation-id.d.ts +0 -10
- package/dist/utils/installation-id.d.ts.map +0 -1
- package/dist/utils/installation-id.js +0 -30
- package/dist/utils/installation-id.js.map +0 -1
- package/dist/utils/json-parser.d.ts.map +0 -1
- package/dist/utils/json-parser.js.map +0 -1
- package/dist/utils/npm.d.ts.map +0 -1
- package/dist/utils/npm.js.map +0 -1
- package/dist/utils/path-utils.d.ts.map +0 -1
- package/dist/utils/path-utils.js.map +0 -1
- package/dist/utils/profile-display.d.ts.map +0 -1
- package/dist/utils/profile-display.js.map +0 -1
- package/dist/utils/sanitize.d.ts +0 -28
- package/dist/utils/sanitize.d.ts.map +0 -1
- package/dist/utils/sanitize.js +0 -212
- package/dist/utils/sanitize.js.map +0 -1
- package/dist/utils/which.d.ts +0 -20
- package/dist/utils/which.d.ts.map +0 -1
- package/dist/utils/which.js +0 -54
- package/dist/utils/which.js.map +0 -1
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# Template Index
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Concise templates for generating Claude Code documentation. Each template is **150-250 lines max**, focusing on contracts and best practices.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Main Template
|
|
10
|
+
|
|
11
|
+
### CLAUDE.md.template
|
|
12
|
+
**Lines**: ~300
|
|
13
|
+
**Purpose**: Main AI-optimized execution guide
|
|
14
|
+
**Use**: Every project (required)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Guide Templates (10 Total)
|
|
19
|
+
|
|
20
|
+
### Required (P0) - For All Projects
|
|
21
|
+
|
|
22
|
+
#### development/development-practices.md.template
|
|
23
|
+
**Lines**: ~180
|
|
24
|
+
**Covers**: Error handling, logging, configuration, setup
|
|
25
|
+
**Use**: All projects
|
|
26
|
+
**Combines**: Error patterns + logging + config + setup in one file
|
|
27
|
+
|
|
28
|
+
#### security/security-practices.md.template
|
|
29
|
+
**Lines**: ~160
|
|
30
|
+
**Covers**: Auth, authorization, validation, secrets, SQL injection, XSS
|
|
31
|
+
**Use**: All projects
|
|
32
|
+
|
|
33
|
+
#### testing/testing-patterns.md.template
|
|
34
|
+
**Lines**: ~125
|
|
35
|
+
**Covers**: Unit tests, integration tests, fixtures, mocking
|
|
36
|
+
**Use**: All projects
|
|
37
|
+
|
|
38
|
+
#### standards/code-quality.md.template
|
|
39
|
+
**Lines**: ~135
|
|
40
|
+
**Covers**: Linting, formatting, type safety, naming
|
|
41
|
+
**Use**: All projects
|
|
42
|
+
|
|
43
|
+
#### standards/git-workflow.md.template
|
|
44
|
+
**Lines**: ~160
|
|
45
|
+
**Covers**: Branching, commits, PRs, code review
|
|
46
|
+
**Use**: All projects
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### Recommended (P1) - Based on Project Type
|
|
51
|
+
|
|
52
|
+
#### api/api-patterns.md.template
|
|
53
|
+
**Lines**: ~190
|
|
54
|
+
**Covers**: CRUD, validation, auth, pagination, errors, rate limiting
|
|
55
|
+
**Use**: Projects with REST/GraphQL APIs
|
|
56
|
+
|
|
57
|
+
#### architecture/layered-architecture.md.template
|
|
58
|
+
**Lines**: ~125
|
|
59
|
+
**Covers**: Layer responsibilities, communication, error flow, testing
|
|
60
|
+
**Use**: Projects with layered architecture
|
|
61
|
+
|
|
62
|
+
#### architecture/project-structure.md.template
|
|
63
|
+
**Lines**: ~110
|
|
64
|
+
**Covers**: Directory layout, module organization, navigation
|
|
65
|
+
**Use**: For better code navigation (optional)
|
|
66
|
+
|
|
67
|
+
#### data/database-patterns.md.template
|
|
68
|
+
**Lines**: ~160
|
|
69
|
+
**Covers**: Models, CRUD, transactions, migrations, N+1 prevention
|
|
70
|
+
**Use**: Projects using databases
|
|
71
|
+
|
|
72
|
+
#### integration/external-integrations.md.template
|
|
73
|
+
**Lines**: ~145
|
|
74
|
+
**Covers**: API clients, auth, retries, rate limiting, error handling
|
|
75
|
+
**Use**: Projects with external API integrations
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Template Size Guide
|
|
80
|
+
|
|
81
|
+
**Target**: 150-250 lines per template
|
|
82
|
+
**Philosophy**: Concise, focused, efficient
|
|
83
|
+
**Content**: Best practices and contracts, minimal code examples
|
|
84
|
+
|
|
85
|
+
### Size Breakdown
|
|
86
|
+
|
|
87
|
+
| Template | Lines | Type |
|
|
88
|
+
|----------|-------|------|
|
|
89
|
+
| CLAUDE.md | ~300 | Main |
|
|
90
|
+
| development-practices | ~180 | Required |
|
|
91
|
+
| security-practices | ~160 | Required |
|
|
92
|
+
| testing-patterns | ~125 | Required |
|
|
93
|
+
| code-quality | ~135 | Required |
|
|
94
|
+
| git-workflow | ~160 | Required |
|
|
95
|
+
| api-patterns | ~190 | Optional |
|
|
96
|
+
| layered-architecture | ~125 | Optional |
|
|
97
|
+
| project-structure | ~110 | Optional |
|
|
98
|
+
| database-patterns | ~160 | Optional |
|
|
99
|
+
| external-integrations | ~145 | Optional |
|
|
100
|
+
|
|
101
|
+
**Total**: ~1,790 lines for all templates
|
|
102
|
+
**Generated docs**: 200-400 lines per guide (target)
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Template Selection
|
|
107
|
+
|
|
108
|
+
### Decision Matrix
|
|
109
|
+
|
|
110
|
+
| Found in Project | Required Template | Optional Template |
|
|
111
|
+
|------------------|------------------|-------------------|
|
|
112
|
+
| **Always** | development-practices, security-practices, testing-patterns, code-quality, git-workflow | - |
|
|
113
|
+
| REST/GraphQL endpoints | - | api-patterns |
|
|
114
|
+
| Layered architecture | - | layered-architecture, project-structure |
|
|
115
|
+
| Database/ORM | - | database-patterns |
|
|
116
|
+
| External APIs | - | external-integrations |
|
|
117
|
+
|
|
118
|
+
### Quick Selection
|
|
119
|
+
|
|
120
|
+
**Minimal (5 guides)**:
|
|
121
|
+
- development-practices
|
|
122
|
+
- security-practices
|
|
123
|
+
- testing-patterns
|
|
124
|
+
- code-quality
|
|
125
|
+
- git-workflow
|
|
126
|
+
|
|
127
|
+
**Standard Web App (8 guides)**:
|
|
128
|
+
- All minimal +
|
|
129
|
+
- api-patterns
|
|
130
|
+
- layered-architecture
|
|
131
|
+
- database-patterns
|
|
132
|
+
|
|
133
|
+
**Full Stack (10 guides)**:
|
|
134
|
+
- All standard +
|
|
135
|
+
- project-structure
|
|
136
|
+
- external-integrations
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Placeholders
|
|
141
|
+
|
|
142
|
+
### Global (All Templates)
|
|
143
|
+
|
|
144
|
+
- `[PROJECT_NAME]` - Project name
|
|
145
|
+
- `[LANGUAGE]` - Programming language
|
|
146
|
+
- `[FRAMEWORK]` - Main framework
|
|
147
|
+
- `[file:lines]` - Source file reference
|
|
148
|
+
- `[code_example]` - Brief code snippet
|
|
149
|
+
- `# FILL IN` - Project-specific section
|
|
150
|
+
|
|
151
|
+
### Template-Specific
|
|
152
|
+
|
|
153
|
+
- `[DATABASE]` / `[ORM]` - Database patterns
|
|
154
|
+
- `[TEST_FRAMEWORK]` - Testing patterns
|
|
155
|
+
- `[LINTER]` / `[FORMATTER]` - Code quality
|
|
156
|
+
- `[AUTH_METHOD]` - Security/API patterns
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Usage
|
|
161
|
+
|
|
162
|
+
### For Claude Code Generation
|
|
163
|
+
|
|
164
|
+
1. Analyze project (tech stack, patterns)
|
|
165
|
+
2. Select templates (P0 + relevant P1)
|
|
166
|
+
3. For each template:
|
|
167
|
+
- Search codebase for patterns
|
|
168
|
+
- Extract concise examples (< 20 lines)
|
|
169
|
+
- Replace placeholders
|
|
170
|
+
- Fill sections
|
|
171
|
+
4. Generate CLAUDE.md last
|
|
172
|
+
5. **Validate**: Each guide 200-400 lines max
|
|
173
|
+
|
|
174
|
+
### For Manual Use
|
|
175
|
+
|
|
176
|
+
1. Copy template
|
|
177
|
+
2. Replace `[PLACEHOLDERS]`
|
|
178
|
+
3. Fill `# FILL IN` sections
|
|
179
|
+
4. Add brief code examples
|
|
180
|
+
5. Keep concise (200-400 lines)
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Version History
|
|
185
|
+
|
|
186
|
+
### v2.0 (2026-01-14)
|
|
187
|
+
- **Major revision**: Condensed all templates
|
|
188
|
+
- Combined development folder into single file
|
|
189
|
+
- Moved security to separate folder
|
|
190
|
+
- Reduced from 14 to 10 templates
|
|
191
|
+
- Target: 150-250 lines per template
|
|
192
|
+
- Focus: Contracts and best practices, not extensive examples
|
|
193
|
+
|
|
194
|
+
### v1.0 (2026-01-14)
|
|
195
|
+
- Initial release (deprecated)
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## References
|
|
200
|
+
|
|
201
|
+
- **Generation Command**: `../codemie-init-skill.md`
|
|
202
|
+
- **README**: `../README.md`
|
|
203
|
+
- **Source**: CodeMie project patterns
|
|
204
|
+
|
|
205
|
+
---
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Template Size Report
|
|
2
|
+
|
|
3
|
+
**Generated**: 2026-01-14
|
|
4
|
+
**Version**: 2.0
|
|
5
|
+
|
|
6
|
+
## Summary
|
|
7
|
+
|
|
8
|
+
- **Total Templates**: 10 guide templates
|
|
9
|
+
- **Size Range**: 109-192 lines
|
|
10
|
+
- **Average**: 148 lines
|
|
11
|
+
- **Target Met**: ✅ All templates within 150-250 line goal (minor variance acceptable)
|
|
12
|
+
|
|
13
|
+
## Detailed Breakdown
|
|
14
|
+
|
|
15
|
+
| Template | Lines | Type | Status |
|
|
16
|
+
|----------|-------|------|--------|
|
|
17
|
+
| **api-patterns** | 189 | Optional | ✅ |
|
|
18
|
+
| **layered-architecture** | 125 | Optional | ✅ |
|
|
19
|
+
| **project-structure** | 109 | Optional | ✅ |
|
|
20
|
+
| **database-patterns** | 158 | Optional | ✅ |
|
|
21
|
+
| **development-practices** | 192 | **Required** | ✅ |
|
|
22
|
+
| **external-integrations** | 142 | Optional | ✅ |
|
|
23
|
+
| **security-practices** | 152 | **Required** | ✅ |
|
|
24
|
+
| **code-quality** | 132 | **Required** | ✅ |
|
|
25
|
+
| **git-workflow** | 159 | **Required** | ✅ |
|
|
26
|
+
| **testing-patterns** | 125 | **Required** | ✅ |
|
|
27
|
+
|
|
28
|
+
## By Category
|
|
29
|
+
|
|
30
|
+
### Required Templates (P0)
|
|
31
|
+
- development-practices: 192 lines
|
|
32
|
+
- security-practices: 152 lines
|
|
33
|
+
- testing-patterns: 125 lines
|
|
34
|
+
- code-quality: 132 lines
|
|
35
|
+
- git-workflow: 159 lines
|
|
36
|
+
**Total**: 760 lines
|
|
37
|
+
|
|
38
|
+
### Optional Templates (P1)
|
|
39
|
+
- api-patterns: 189 lines
|
|
40
|
+
- layered-architecture: 125 lines
|
|
41
|
+
- project-structure: 109 lines
|
|
42
|
+
- database-patterns: 158 lines
|
|
43
|
+
- external-integrations: 142 lines
|
|
44
|
+
**Total**: 723 lines
|
|
45
|
+
|
|
46
|
+
## Expected Generated Sizes
|
|
47
|
+
|
|
48
|
+
When filled with project-specific content:
|
|
49
|
+
|
|
50
|
+
**Per Guide**: 200-400 lines (1.5-2x template size)
|
|
51
|
+
- Template placeholders → Real code examples
|
|
52
|
+
- `# FILL IN` sections → Project-specific content
|
|
53
|
+
- Generic patterns → Actual file:line references
|
|
54
|
+
|
|
55
|
+
**Minimal Project** (5 required guides):
|
|
56
|
+
- Generated: ~1,200-2,000 lines total
|
|
57
|
+
|
|
58
|
+
**Standard Project** (8 guides):
|
|
59
|
+
- Generated: ~1,900-3,200 lines total
|
|
60
|
+
|
|
61
|
+
**Full Project** (10 guides):
|
|
62
|
+
- Generated: ~2,400-4,000 lines total
|
|
63
|
+
|
|
64
|
+
## Size Philosophy
|
|
65
|
+
|
|
66
|
+
**Concise but Complete**:
|
|
67
|
+
- Focus on contracts and patterns
|
|
68
|
+
- Brief code examples (< 20 lines)
|
|
69
|
+
- Essential best practices only
|
|
70
|
+
- No redundant explanations
|
|
71
|
+
- Highly scannable tables
|
|
72
|
+
|
|
73
|
+
**Target Achieved**: ✅
|
|
74
|
+
All templates meet the "concise, focused, efficient" goal.
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# API Patterns
|
|
2
|
+
|
|
3
|
+
## Quick Summary
|
|
4
|
+
|
|
5
|
+
API endpoint patterns for [PROJECT_NAME]: CRUD operations, validation, authentication, and error responses.
|
|
6
|
+
|
|
7
|
+
**Category**: API
|
|
8
|
+
**Complexity**: Medium
|
|
9
|
+
**Prerequisites**: [FRAMEWORK], HTTP, [AUTH_METHOD]
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 🚨 SIZE LIMIT WARNING
|
|
14
|
+
|
|
15
|
+
**This generated guide MUST be 200-400 lines maximum.**
|
|
16
|
+
|
|
17
|
+
**When filling this template**:
|
|
18
|
+
- ✅ Code examples: 5-15 lines (NEVER > 20)
|
|
19
|
+
- ✅ ONE example per pattern
|
|
20
|
+
- ✅ Use file:line references, not full code
|
|
21
|
+
- ✅ Use tables for multiple patterns
|
|
22
|
+
- ❌ NO multiple examples for same pattern
|
|
23
|
+
- ❌ NO verbose explanations
|
|
24
|
+
- ❌ NO copying entire functions
|
|
25
|
+
|
|
26
|
+
**Validate line count after generation**: `wc -l [this-file]`
|
|
27
|
+
**If > 400 lines**: Condense immediately before continuing!
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Endpoint Structure
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
[base_url]/
|
|
35
|
+
├── [resource1]/
|
|
36
|
+
│ ├── GET / List all
|
|
37
|
+
│ ├── POST / Create
|
|
38
|
+
│ ├── GET /:id Get one
|
|
39
|
+
│ ├── PUT /:id Update
|
|
40
|
+
│ └── DELETE /:id Delete
|
|
41
|
+
└── [resource2]/
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Source**: `[path/to/routes]`
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## CRUD Patterns
|
|
49
|
+
|
|
50
|
+
### Create (POST)
|
|
51
|
+
|
|
52
|
+
```[language]
|
|
53
|
+
# Source: [file:lines]
|
|
54
|
+
[create_endpoint]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Status**: 201 Created | 400 Bad Request | 401 Unauthorized
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### Read (GET)
|
|
62
|
+
|
|
63
|
+
```[language]
|
|
64
|
+
# Source: [file:lines]
|
|
65
|
+
[read_endpoint]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Status**: 200 OK | 404 Not Found
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### Update (PUT/PATCH)
|
|
73
|
+
|
|
74
|
+
```[language]
|
|
75
|
+
# Source: [file:lines]
|
|
76
|
+
[update_endpoint]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Status**: 200 OK | 404 Not Found | 400 Bad Request
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
### Delete (DELETE)
|
|
84
|
+
|
|
85
|
+
```[language]
|
|
86
|
+
# Source: [file:lines]
|
|
87
|
+
[delete_endpoint]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Status**: 204 No Content | 404 Not Found
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Request Validation
|
|
95
|
+
|
|
96
|
+
```[language]
|
|
97
|
+
# Source: [file:lines]
|
|
98
|
+
[validation_example]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Validation Error Response**:
|
|
102
|
+
```json
|
|
103
|
+
{
|
|
104
|
+
"error": {
|
|
105
|
+
"code": "VALIDATION_ERROR",
|
|
106
|
+
"message": "Validation failed",
|
|
107
|
+
"details": [
|
|
108
|
+
{"field": "[field]", "message": "[error]"}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Authentication & Authorization
|
|
117
|
+
|
|
118
|
+
```[language]
|
|
119
|
+
# Source: [file:lines]
|
|
120
|
+
[auth_middleware]
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Status**: 401 Unauthorized | 403 Forbidden
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Pagination
|
|
128
|
+
|
|
129
|
+
```[language]
|
|
130
|
+
# Source: [file:lines]
|
|
131
|
+
[pagination_example]
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Query Params**: `page`, `limit`, `sort`, `order`
|
|
135
|
+
|
|
136
|
+
**Response**:
|
|
137
|
+
```json
|
|
138
|
+
{
|
|
139
|
+
"data": [],
|
|
140
|
+
"pagination": {
|
|
141
|
+
"page": 1,
|
|
142
|
+
"limit": 20,
|
|
143
|
+
"total": 100,
|
|
144
|
+
"pages": 5
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Error Responses
|
|
152
|
+
|
|
153
|
+
| Status | Type | Example |
|
|
154
|
+
|--------|------|---------|
|
|
155
|
+
| 400 | Bad Request | Invalid input |
|
|
156
|
+
| 401 | Unauthorized | Missing/invalid token |
|
|
157
|
+
| 403 | Forbidden | Insufficient permissions |
|
|
158
|
+
| 404 | Not Found | Resource doesn't exist |
|
|
159
|
+
| 422 | Unprocessable | Validation failed |
|
|
160
|
+
| 500 | Server Error | Internal error |
|
|
161
|
+
|
|
162
|
+
**Format**:
|
|
163
|
+
```json
|
|
164
|
+
{
|
|
165
|
+
"error": {
|
|
166
|
+
"code": "[ERROR_CODE]",
|
|
167
|
+
"message": "[human-readable]",
|
|
168
|
+
"details": "[additional info]"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## Rate Limiting
|
|
176
|
+
|
|
177
|
+
```[language]
|
|
178
|
+
# Source: [file:lines]
|
|
179
|
+
[rate_limit_config]
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Headers**:
|
|
183
|
+
- `X-RateLimit-Limit`: Max requests
|
|
184
|
+
- `X-RateLimit-Remaining`: Requests left
|
|
185
|
+
- `X-RateLimit-Reset`: Reset time
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## Best Practices
|
|
190
|
+
|
|
191
|
+
| ✅ DO | ❌ DON'T |
|
|
192
|
+
|-------|----------|
|
|
193
|
+
| Use proper HTTP methods | GET for mutations |
|
|
194
|
+
| Return appropriate status codes | Always 200 |
|
|
195
|
+
| Validate all input | Trust client data |
|
|
196
|
+
| Use consistent naming | Mix conventions |
|
|
197
|
+
| Version your API | Break clients |
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## References
|
|
202
|
+
|
|
203
|
+
- **Routes**: `[path/to/routes]`
|
|
204
|
+
- **Models**: `[path/to/models]`
|
|
205
|
+
- **API Docs**: [URL]
|
|
206
|
+
|
|
207
|
+
---
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Layered Architecture
|
|
2
|
+
|
|
3
|
+
## Quick Summary
|
|
4
|
+
|
|
5
|
+
[PROJECT_NAME] implements [N]-tier architecture: [Layer1] → [Layer2] → [Layer3].
|
|
6
|
+
|
|
7
|
+
**Category**: Architecture
|
|
8
|
+
**Complexity**: Medium
|
|
9
|
+
**Prerequisites**: [LANGUAGE], [FRAMEWORK]
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 🚨 SIZE LIMIT WARNING
|
|
14
|
+
|
|
15
|
+
**This generated guide MUST be 200-400 lines maximum.**
|
|
16
|
+
|
|
17
|
+
**When filling this template**:
|
|
18
|
+
- ✅ Code examples: 5-15 lines (NEVER > 20)
|
|
19
|
+
- ✅ ONE example per pattern
|
|
20
|
+
- ✅ Use file:line references, not full code
|
|
21
|
+
- ✅ Use tables for multiple patterns
|
|
22
|
+
- ❌ NO multiple examples for same pattern
|
|
23
|
+
- ❌ NO verbose explanations
|
|
24
|
+
- ❌ NO copying entire functions
|
|
25
|
+
|
|
26
|
+
**Validate line count after generation**: `wc -l [this-file]`
|
|
27
|
+
**If > 400 lines**: Condense immediately before continuing!
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Architecture Overview
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
┌─────────────────────────────────┐
|
|
35
|
+
│ [Layer 1] ([path/]) │ ← HTTP interface
|
|
36
|
+
│ Request/Response handling │
|
|
37
|
+
└────────────┬────────────────────┘
|
|
38
|
+
↓ calls
|
|
39
|
+
┌─────────────────────────────────┐
|
|
40
|
+
│ [Layer 2] ([path/]) │ ← Business logic
|
|
41
|
+
│ Orchestration │
|
|
42
|
+
└────────────┬────────────────────┘
|
|
43
|
+
↓ calls
|
|
44
|
+
┌─────────────────────────────────┐
|
|
45
|
+
│ [Layer 3] ([path/]) │ ← Data access
|
|
46
|
+
│ Persistence │
|
|
47
|
+
└────────────┬────────────────────┘
|
|
48
|
+
↓
|
|
49
|
+
[Database]
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Layer Responsibilities
|
|
55
|
+
|
|
56
|
+
### [Layer 1] - [Name]
|
|
57
|
+
|
|
58
|
+
**Purpose**: [Brief description]
|
|
59
|
+
|
|
60
|
+
```[language]
|
|
61
|
+
# Source: [file:lines]
|
|
62
|
+
[layer1_example]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Does**: Validation, routing, response formatting
|
|
66
|
+
**Doesn't**: Business logic, database access
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### [Layer 2] - [Name]
|
|
71
|
+
|
|
72
|
+
**Purpose**: [Brief description]
|
|
73
|
+
|
|
74
|
+
```[language]
|
|
75
|
+
# Source: [file:lines]
|
|
76
|
+
[layer2_example]
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Does**: Business logic, orchestration
|
|
80
|
+
**Doesn't**: HTTP handling, direct DB access
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
### [Layer 3] - [Name]
|
|
85
|
+
|
|
86
|
+
**Purpose**: [Brief description]
|
|
87
|
+
|
|
88
|
+
```[language]
|
|
89
|
+
# Source: [file:lines]
|
|
90
|
+
[layer3_example]
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Does**: Database queries, data access
|
|
94
|
+
**Doesn't**: Business logic, HTTP handling
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Communication Rules
|
|
99
|
+
|
|
100
|
+
| ✅ Allowed | ❌ Not Allowed |
|
|
101
|
+
|-----------|---------------|
|
|
102
|
+
| Layer1 → Layer2 → Layer3 | Skip layers |
|
|
103
|
+
| Pass data via models/DTOs | Share state |
|
|
104
|
+
| Async/await throughout | Blocking calls |
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Error Flow
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
[Layer3 Error]
|
|
112
|
+
↓ raise
|
|
113
|
+
[Layer2 Transform]
|
|
114
|
+
↓ raise
|
|
115
|
+
[Layer1 HTTP Response]
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Example**:
|
|
119
|
+
```[language]
|
|
120
|
+
# Source: [file:lines]
|
|
121
|
+
[error_flow_example]
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Testing Strategy
|
|
127
|
+
|
|
128
|
+
| Layer | Test Type | Mock |
|
|
129
|
+
|-------|-----------|------|
|
|
130
|
+
| [Layer1] | Unit | Layer2 |
|
|
131
|
+
| [Layer2] | Unit | Layer3 |
|
|
132
|
+
| [Layer3] | Unit | Database |
|
|
133
|
+
| All | Integration | Nothing |
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## References
|
|
138
|
+
|
|
139
|
+
- **[Layer1]**: `[path/]`
|
|
140
|
+
- **[Layer2]**: `[path/]`
|
|
141
|
+
- **[Layer3]**: `[path/]`
|
|
142
|
+
|
|
143
|
+
---
|