@codemieai/code 0.0.28 → 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 +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 +788 -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,170 @@
|
|
|
1
|
+
# Security Practices
|
|
2
|
+
|
|
3
|
+
## Quick Summary
|
|
4
|
+
|
|
5
|
+
Security patterns for [PROJECT_NAME]: authentication, authorization, input validation, and secrets management.
|
|
6
|
+
|
|
7
|
+
**Category**: Security
|
|
8
|
+
**Complexity**: High
|
|
9
|
+
**Prerequisites**: OWASP Top 10, [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
|
+
## Authentication
|
|
32
|
+
|
|
33
|
+
### Pattern
|
|
34
|
+
|
|
35
|
+
```[language]
|
|
36
|
+
# Source: [file:lines]
|
|
37
|
+
[auth_pattern]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Method**: [JWT / OAuth2 / API Key / Session]
|
|
41
|
+
**Token Storage**: [Where tokens are stored]
|
|
42
|
+
**Expiration**: [Token lifetime]
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Authorization
|
|
47
|
+
|
|
48
|
+
### Pattern
|
|
49
|
+
|
|
50
|
+
```[language]
|
|
51
|
+
# Source: [file:lines]
|
|
52
|
+
[authz_pattern]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Roles**: [List roles and permissions]
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Input Validation
|
|
60
|
+
|
|
61
|
+
### Pattern
|
|
62
|
+
|
|
63
|
+
```[language]
|
|
64
|
+
# Source: [file:lines]
|
|
65
|
+
[validation_pattern]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Rules**:
|
|
69
|
+
- ✅ Validate all input at boundaries
|
|
70
|
+
- ✅ Use validation library/framework
|
|
71
|
+
- ✅ Whitelist (not blacklist)
|
|
72
|
+
- ❌ Trust user input
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Secrets Management
|
|
77
|
+
|
|
78
|
+
### Environment Variables
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# NEVER commit these
|
|
82
|
+
[SECRET_KEY]=[use env var]
|
|
83
|
+
[API_KEY]=[use secrets manager in prod]
|
|
84
|
+
[DB_PASSWORD]=[use secrets manager in prod]
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Rules**:
|
|
88
|
+
- ✅ Environment variables for dev
|
|
89
|
+
- ✅ Secrets manager for production
|
|
90
|
+
- ✅ Rotate regularly
|
|
91
|
+
- ❌ Hardcode in code
|
|
92
|
+
- ❌ Commit to git
|
|
93
|
+
- ❌ Log secrets
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## SQL Injection Prevention
|
|
98
|
+
|
|
99
|
+
```[language]
|
|
100
|
+
# Good: Parameterized
|
|
101
|
+
[good_sql_example]
|
|
102
|
+
|
|
103
|
+
# Bad: String interpolation
|
|
104
|
+
[bad_sql_example]
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Rule**: ALWAYS use parameterized queries
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## XSS Prevention
|
|
112
|
+
|
|
113
|
+
```[language]
|
|
114
|
+
# Source: [file:lines]
|
|
115
|
+
[xss_prevention]
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Rules**:
|
|
119
|
+
- ✅ Escape output
|
|
120
|
+
- ✅ Use framework defaults
|
|
121
|
+
- ✅ Content Security Policy headers
|
|
122
|
+
- ❌ Trust user content
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Security Headers
|
|
127
|
+
|
|
128
|
+
```[language]
|
|
129
|
+
# Source: [file:lines]
|
|
130
|
+
[security_headers]
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Required Headers**:
|
|
134
|
+
- `[Header1]`: `[Value]`
|
|
135
|
+
- `[Header2]`: `[Value]`
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## HTTPS/TLS
|
|
140
|
+
|
|
141
|
+
**Rules**:
|
|
142
|
+
- ✅ HTTPS everywhere in production
|
|
143
|
+
- ✅ Valid TLS certificates
|
|
144
|
+
- ✅ Minimum TLS 1.2+
|
|
145
|
+
- ❌ Plain HTTP for sensitive data
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Security Checklist
|
|
150
|
+
|
|
151
|
+
- [ ] Authentication on protected endpoints
|
|
152
|
+
- [ ] Authorization checks enforced
|
|
153
|
+
- [ ] All input validated
|
|
154
|
+
- [ ] SQL queries parameterized
|
|
155
|
+
- [ ] Secrets in env vars (not code)
|
|
156
|
+
- [ ] HTTPS in production
|
|
157
|
+
- [ ] Security headers configured
|
|
158
|
+
- [ ] Sensitive data encrypted
|
|
159
|
+
- [ ] Error messages don't leak info
|
|
160
|
+
- [ ] Logging excludes secrets/PII
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## References
|
|
165
|
+
|
|
166
|
+
- **Auth Implementation**: `[path/to/auth]`
|
|
167
|
+
- **Validation**: `[path/to/validation]`
|
|
168
|
+
- **OWASP Top 10**: https://owasp.org/www-project-top-ten/
|
|
169
|
+
|
|
170
|
+
---
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Code Quality Standards
|
|
2
|
+
|
|
3
|
+
## Quick Summary
|
|
4
|
+
|
|
5
|
+
Code quality standards for [PROJECT_NAME]: linting, formatting, type safety, and naming conventions.
|
|
6
|
+
|
|
7
|
+
**Category**: Standards
|
|
8
|
+
**Complexity**: Simple
|
|
9
|
+
**Prerequisites**: [LANGUAGE], [LINTER], [FORMATTER]
|
|
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
|
+
## Tools
|
|
32
|
+
|
|
33
|
+
| Tool | Purpose | Config |
|
|
34
|
+
|------|---------|--------|
|
|
35
|
+
| [Linter] | Code quality | `[config_file]` |
|
|
36
|
+
| [Formatter] | Formatting | `[config_file]` |
|
|
37
|
+
| [Type Checker] | Type checking | `[config_file]` |
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Commands
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Lint (check)
|
|
45
|
+
[lint_check]
|
|
46
|
+
|
|
47
|
+
# Lint (fix)
|
|
48
|
+
[lint_fix]
|
|
49
|
+
|
|
50
|
+
# Format
|
|
51
|
+
[format]
|
|
52
|
+
|
|
53
|
+
# Type check
|
|
54
|
+
[type_check]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Naming Conventions
|
|
60
|
+
|
|
61
|
+
| Element | Convention | Example |
|
|
62
|
+
|---------|------------|---------|
|
|
63
|
+
| Variables | [convention] | `[example]` |
|
|
64
|
+
| Functions | [convention] | `[example]` |
|
|
65
|
+
| Classes | [convention] | `[Example]` |
|
|
66
|
+
| Constants | [convention] | `[EXAMPLE]` |
|
|
67
|
+
| Files | [convention] | `[example]` |
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Type Annotations
|
|
72
|
+
|
|
73
|
+
```[language]
|
|
74
|
+
# Source: [file:lines]
|
|
75
|
+
[type_example]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Required**:
|
|
79
|
+
- ✅ All function parameters
|
|
80
|
+
- ✅ All function returns
|
|
81
|
+
- ✅ Public APIs
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Imports
|
|
86
|
+
|
|
87
|
+
```[language]
|
|
88
|
+
# Order
|
|
89
|
+
[import_example]
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Order**: Standard library → Third-party → Local
|
|
93
|
+
**Rules**: One per line, sorted, no wildcards
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Code Structure
|
|
98
|
+
|
|
99
|
+
**Guidelines**:
|
|
100
|
+
- Functions < [X] lines
|
|
101
|
+
- Files < [Y] lines
|
|
102
|
+
- One responsibility per function
|
|
103
|
+
- Limit parameters < [Z]
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Comments
|
|
108
|
+
|
|
109
|
+
```[language]
|
|
110
|
+
# Source: [file:lines]
|
|
111
|
+
[docstring_example]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**When to Comment**:
|
|
115
|
+
- ✅ Public APIs
|
|
116
|
+
- ✅ Complex algorithms
|
|
117
|
+
- ✅ Non-obvious decisions
|
|
118
|
+
- ❌ Self-explanatory code
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Pre-Commit Hooks
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# Install
|
|
126
|
+
[install_hooks]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Checks**: Linting, formatting, type checking
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Best Practices
|
|
134
|
+
|
|
135
|
+
| ✅ DO | ❌ DON'T |
|
|
136
|
+
|-------|----------|
|
|
137
|
+
| Descriptive names | Single letters (except i, j, k in loops) |
|
|
138
|
+
| Keep functions small | 100+ line functions |
|
|
139
|
+
| Use type hints | Skip types |
|
|
140
|
+
| Follow conventions | Mix styles |
|
|
141
|
+
| Early returns | Deep nesting |
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## References
|
|
146
|
+
|
|
147
|
+
- **Config**: `[config_files]`
|
|
148
|
+
- **Linter Docs**: [Link]
|
|
149
|
+
|
|
150
|
+
---
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# Git Workflow
|
|
2
|
+
|
|
3
|
+
## Quick Summary
|
|
4
|
+
|
|
5
|
+
Git workflow for [PROJECT_NAME]: branching, commits, pull requests, and code review.
|
|
6
|
+
|
|
7
|
+
**Category**: Standards
|
|
8
|
+
**Complexity**: Simple
|
|
9
|
+
**Prerequisites**: Git basics
|
|
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
|
+
## Branching Strategy
|
|
32
|
+
|
|
33
|
+
| Branch Type | Pattern | Purpose |
|
|
34
|
+
|-------------|---------|---------|
|
|
35
|
+
| Main | `main` | Production code |
|
|
36
|
+
| Feature | `feature/[name]` | New features |
|
|
37
|
+
| Bugfix | `bugfix/[name]` | Bug fixes |
|
|
38
|
+
| Hotfix | `hotfix/[name]` | Emergency fixes |
|
|
39
|
+
|
|
40
|
+
**Project Pattern**: [Your specific pattern]
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# 1. Create branch
|
|
48
|
+
git checkout main
|
|
49
|
+
git pull
|
|
50
|
+
git checkout -b feature/[name]
|
|
51
|
+
|
|
52
|
+
# 2. Work & commit
|
|
53
|
+
git add [files]
|
|
54
|
+
git commit -m "[type]: [message]"
|
|
55
|
+
|
|
56
|
+
# 3. Push
|
|
57
|
+
git push origin feature/[name]
|
|
58
|
+
|
|
59
|
+
# 4. Create PR via UI/CLI
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Commit Format
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
[type]([scope]): [subject]
|
|
68
|
+
|
|
69
|
+
[optional body]
|
|
70
|
+
|
|
71
|
+
[optional footer]
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**Types**: feat | fix | docs | style | refactor | test | chore
|
|
75
|
+
|
|
76
|
+
**Examples**:
|
|
77
|
+
- `feat(auth): add OAuth2 login`
|
|
78
|
+
- `fix(api): resolve timeout issue`
|
|
79
|
+
- `docs(readme): update setup instructions`
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Commit Rules
|
|
84
|
+
|
|
85
|
+
| ✅ DO | ❌ DON'T |
|
|
86
|
+
|-------|----------|
|
|
87
|
+
| Atomic commits | Mix unrelated changes |
|
|
88
|
+
| Descriptive messages | "fix stuff" |
|
|
89
|
+
| Present tense | Past tense |
|
|
90
|
+
| Reference issues | Skip context |
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Pull Request
|
|
95
|
+
|
|
96
|
+
### PR Title
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
[type]([scope]): [description]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### PR Template
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
## Summary
|
|
106
|
+
[Brief description]
|
|
107
|
+
|
|
108
|
+
## Changes
|
|
109
|
+
- [Change 1]
|
|
110
|
+
- [Change 2]
|
|
111
|
+
|
|
112
|
+
## Testing
|
|
113
|
+
- [ ] Tests added/updated
|
|
114
|
+
- [ ] Manual testing done
|
|
115
|
+
|
|
116
|
+
## Checklist
|
|
117
|
+
- [ ] Code follows standards
|
|
118
|
+
- [ ] Tests pass
|
|
119
|
+
- [ ] No merge conflicts
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Code Review Checklist
|
|
125
|
+
|
|
126
|
+
- [ ] Code follows project standards
|
|
127
|
+
- [ ] Logic is correct
|
|
128
|
+
- [ ] Tests are adequate
|
|
129
|
+
- [ ] No security issues
|
|
130
|
+
- [ ] Documentation updated
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Merge Strategy
|
|
135
|
+
|
|
136
|
+
**Project Standard**: [Merge commit / Squash / Rebase]
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# After PR approved
|
|
140
|
+
[merge_command]
|
|
141
|
+
|
|
142
|
+
# Delete branch
|
|
143
|
+
git branch -d feature/[name]
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Common Commands
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# Status
|
|
152
|
+
git status
|
|
153
|
+
|
|
154
|
+
# Stage
|
|
155
|
+
git add [files]
|
|
156
|
+
|
|
157
|
+
# Commit
|
|
158
|
+
git commit -m "message"
|
|
159
|
+
|
|
160
|
+
# Push
|
|
161
|
+
git push origin [branch]
|
|
162
|
+
|
|
163
|
+
# Pull
|
|
164
|
+
git pull origin [branch]
|
|
165
|
+
|
|
166
|
+
# Undo last commit (keep changes)
|
|
167
|
+
git reset --soft HEAD~1
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## References
|
|
173
|
+
|
|
174
|
+
- **Branch Pattern**: [Details]
|
|
175
|
+
- **PR Process**: [Link if documented]
|
|
176
|
+
|
|
177
|
+
---
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Testing Patterns
|
|
2
|
+
|
|
3
|
+
## Quick Summary
|
|
4
|
+
|
|
5
|
+
Testing patterns for [PROJECT_NAME] using [TEST_FRAMEWORK]: unit tests, integration tests, fixtures, and mocking.
|
|
6
|
+
|
|
7
|
+
**Category**: Testing
|
|
8
|
+
**Complexity**: Medium
|
|
9
|
+
**Prerequisites**: [TEST_FRAMEWORK], testing fundamentals
|
|
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
|
+
## Test Structure
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
tests/
|
|
35
|
+
├── unit/ Mirror source structure
|
|
36
|
+
│ └── [module]/
|
|
37
|
+
│ └── test_[file].[ext]
|
|
38
|
+
├── integration/
|
|
39
|
+
│ └── test_[feature].[ext]
|
|
40
|
+
└── fixtures/
|
|
41
|
+
└── [fixture_files]
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Naming**: `test_[scenario]_[expected_outcome]`
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Unit Test Pattern
|
|
49
|
+
|
|
50
|
+
```[language]
|
|
51
|
+
# Source: [test_file:lines]
|
|
52
|
+
[unit_test_example]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Structure**: Arrange → Act → Assert
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Fixtures
|
|
60
|
+
|
|
61
|
+
```[language]
|
|
62
|
+
# Source: [conftest_or_setup:lines]
|
|
63
|
+
[fixture_example]
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Scopes**: function | class | module | session
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Mocking
|
|
71
|
+
|
|
72
|
+
```[language]
|
|
73
|
+
# Source: [test_file:lines]
|
|
74
|
+
[mock_example]
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Mock**: External APIs, database (for unit tests), file system, time
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Parameterized Tests
|
|
82
|
+
|
|
83
|
+
```[language]
|
|
84
|
+
# Source: [test_file:lines]
|
|
85
|
+
[parameterized_example]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Integration Tests
|
|
91
|
+
|
|
92
|
+
```[language]
|
|
93
|
+
# Source: [test_file:lines]
|
|
94
|
+
[integration_test_example]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Characteristics**: Multiple components, real dependencies (test DB)
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Test Commands
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Run all tests
|
|
105
|
+
[run_all]
|
|
106
|
+
|
|
107
|
+
# Run specific file
|
|
108
|
+
[run_file]
|
|
109
|
+
|
|
110
|
+
# Run with coverage
|
|
111
|
+
[coverage]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Coverage
|
|
117
|
+
|
|
118
|
+
**Targets**:
|
|
119
|
+
- Overall: [X]%
|
|
120
|
+
- Critical paths: [Y]%
|
|
121
|
+
|
|
122
|
+
**Focus on**: Business logic, error handling, edge cases
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Best Practices
|
|
127
|
+
|
|
128
|
+
| ✅ DO | ❌ DON'T |
|
|
129
|
+
|-------|----------|
|
|
130
|
+
| One assertion per test | Multiple scenarios in one test |
|
|
131
|
+
| Descriptive test names | `test1`, `test2` |
|
|
132
|
+
| Arrange-Act-Assert | Mixed concerns |
|
|
133
|
+
| Mock external dependencies | Real APIs in unit tests |
|
|
134
|
+
| Keep tests fast | Long-running tests |
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## References
|
|
139
|
+
|
|
140
|
+
- **Tests**: `[test_directory]/`
|
|
141
|
+
- **Fixtures**: `[fixture_location]`
|
|
142
|
+
|
|
143
|
+
---
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Read all files that changed in my current git branch compared to main.
|
|
2
|
+
|
|
3
|
+
Summarize:
|
|
4
|
+
1. What features were added or modified
|
|
5
|
+
2. Any breaking changes introduced
|
|
6
|
+
3. Files that might need additional tests
|
|
7
|
+
4. Areas needing documentation updates
|
|
8
|
+
5. Current state of the work
|
|
9
|
+
|
|
10
|
+
Help me understand where we left off.
|