@codemieai/code 0.0.58 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -15
- package/bin/codebase-memory-ui-daemon.js +10 -0
- package/bin/codemie-codex.js +18 -0
- package/dist/agents/core/AgentCLI.d.ts +1 -0
- package/dist/agents/core/AgentCLI.d.ts.map +1 -1
- package/dist/agents/core/AgentCLI.js +29 -4
- package/dist/agents/core/AgentCLI.js.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.js +3 -0
- package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
- package/dist/agents/core/session/sync-state-utils.d.ts +11 -0
- package/dist/agents/core/session/sync-state-utils.d.ts.map +1 -0
- package/dist/agents/core/session/sync-state-utils.js +99 -0
- package/dist/agents/core/session/sync-state-utils.js.map +1 -0
- package/dist/agents/core/session/types.d.ts +8 -0
- package/dist/agents/core/session/types.d.ts.map +1 -1
- package/dist/agents/core/session/utils/jsonl-reader.d.ts +8 -0
- package/dist/agents/core/session/utils/jsonl-reader.d.ts.map +1 -1
- package/dist/agents/core/session/utils/jsonl-reader.js +37 -0
- package/dist/agents/core/session/utils/jsonl-reader.js.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.js +18 -0
- package/dist/agents/plugins/claude/claude.plugin.js.map +1 -1
- package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/agents/plugins/claude/plugin/commands/README.md +2 -31
- package/dist/agents/plugins/claude/plugin/commands/codemie-catchup.md +5 -0
- package/dist/agents/plugins/claude/plugin/commands/codemie-subagents.md +5 -0
- package/dist/agents/plugins/claude/plugin/hooks/hooks.json +0 -15
- package/dist/agents/plugins/claude/plugin/skills/msgraph/README.md +4 -1
- package/dist/agents/plugins/claude/plugin/skills/msgraph/SKILL.md +27 -8
- package/dist/agents/plugins/claude/plugin/skills/msgraph/scripts/msgraph.js +63 -3
- package/dist/agents/plugins/claude/plugin/skills/report-issue/SKILL.md +1 -0
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +2 -0
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
- package/dist/agents/plugins/codex/codex-message-types.d.ts +80 -0
- package/dist/agents/plugins/codex/codex-message-types.d.ts.map +1 -0
- package/dist/agents/plugins/codex/codex-message-types.js +36 -0
- package/dist/agents/plugins/codex/codex-message-types.js.map +1 -0
- package/dist/agents/plugins/codex/codex-models.d.ts +9 -0
- package/dist/agents/plugins/codex/codex-models.d.ts.map +1 -0
- package/dist/agents/plugins/codex/codex-models.js +227 -0
- package/dist/agents/plugins/codex/codex-models.js.map +1 -0
- package/dist/agents/plugins/codex/codex.incremental-sync.d.ts +39 -0
- package/dist/agents/plugins/codex/codex.incremental-sync.d.ts.map +1 -0
- package/dist/agents/plugins/codex/codex.incremental-sync.js +147 -0
- package/dist/agents/plugins/codex/codex.incremental-sync.js.map +1 -0
- package/dist/agents/plugins/codex/codex.paths.d.ts +29 -0
- package/dist/agents/plugins/codex/codex.paths.d.ts.map +1 -0
- package/dist/agents/plugins/codex/codex.paths.js +43 -0
- package/dist/agents/plugins/codex/codex.paths.js.map +1 -0
- package/dist/agents/plugins/codex/codex.plugin.d.ts +80 -0
- package/dist/agents/plugins/codex/codex.plugin.d.ts.map +1 -0
- package/dist/agents/plugins/codex/codex.plugin.js +474 -0
- package/dist/agents/plugins/codex/codex.plugin.js.map +1 -0
- package/dist/agents/plugins/codex/codex.reconciliation.d.ts +43 -0
- package/dist/agents/plugins/codex/codex.reconciliation.d.ts.map +1 -0
- package/dist/agents/plugins/codex/codex.reconciliation.js +141 -0
- package/dist/agents/plugins/codex/codex.reconciliation.js.map +1 -0
- package/dist/agents/plugins/codex/codex.session.d.ts +58 -0
- package/dist/agents/plugins/codex/codex.session.d.ts.map +1 -0
- package/dist/agents/plugins/codex/codex.session.js +326 -0
- package/dist/agents/plugins/codex/codex.session.js.map +1 -0
- package/dist/agents/plugins/codex/codex.storage-utils.d.ts +15 -0
- package/dist/agents/plugins/codex/codex.storage-utils.d.ts.map +1 -0
- package/dist/agents/plugins/codex/codex.storage-utils.js +19 -0
- package/dist/agents/plugins/codex/codex.storage-utils.js.map +1 -0
- package/dist/agents/plugins/codex/index.d.ts +7 -0
- package/dist/agents/plugins/codex/index.d.ts.map +1 -0
- package/dist/agents/plugins/codex/index.js +9 -0
- package/dist/agents/plugins/codex/index.js.map +1 -0
- package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.d.ts +24 -0
- package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.d.ts.map +1 -0
- package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.js +613 -0
- package/dist/agents/plugins/codex/session/processors/codex.conversations-processor.js.map +1 -0
- package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.d.ts +21 -0
- package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.d.ts.map +1 -0
- package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.js +124 -0
- package/dist/agents/plugins/codex/session/processors/codex.metrics-processor.js.map +1 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.d.ts.map +1 -1
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js +1 -0
- package/dist/agents/plugins/gemini/session/processors/gemini.conversations-processor.js.map +1 -1
- package/dist/agents/plugins/opencode/opencode.storage-utils.d.ts.map +1 -1
- package/dist/agents/plugins/opencode/opencode.storage-utils.js +2 -29
- package/dist/agents/plugins/opencode/opencode.storage-utils.js.map +1 -1
- package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.d.ts.map +1 -1
- package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.js.map +1 -1
- package/dist/agents/registry.d.ts.map +1 -1
- package/dist/agents/registry.js +2 -0
- package/dist/agents/registry.js.map +1 -1
- package/dist/assets/demo.gif +0 -0
- package/dist/assets/skills-sh-egress-guard.cjs +166 -0
- package/dist/bin/codebase-memory-ui-daemon.d.ts +2 -0
- package/dist/bin/codebase-memory-ui-daemon.d.ts.map +1 -0
- package/dist/bin/codebase-memory-ui-daemon.js +141 -0
- package/dist/bin/codebase-memory-ui-daemon.js.map +1 -0
- package/dist/bin/proxy-daemon.js +4 -0
- package/dist/bin/proxy-daemon.js.map +1 -1
- package/dist/cli/commands/assistants/constants.js +2 -2
- package/dist/cli/commands/assistants/constants.js.map +1 -1
- package/dist/cli/commands/assistants/setup/configuration/constants.js +4 -4
- package/dist/cli/commands/assistants/setup/configuration/constants.js.map +1 -1
- package/dist/cli/commands/assistants/setup/configuration/ui.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/configuration/ui.js +10 -13
- package/dist/cli/commands/assistants/setup/configuration/ui.js.map +1 -1
- package/dist/cli/commands/assistants/setup/constants.d.ts +1 -25
- package/dist/cli/commands/assistants/setup/constants.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/constants.js +1 -20
- package/dist/cli/commands/assistants/setup/constants.js.map +1 -1
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.d.ts +4 -4
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js +11 -10
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js.map +1 -1
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts +4 -4
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js +11 -9
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js.map +1 -1
- package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.d.ts +4 -0
- package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.js +76 -0
- package/dist/cli/commands/assistants/setup/generators/codex-skill-generator.js.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.d.ts +4 -0
- package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.js +68 -0
- package/dist/cli/commands/assistants/setup/generators/gemini-skill-generator.js.map +1 -0
- package/dist/cli/commands/assistants/setup/helpers.d.ts +5 -18
- package/dist/cli/commands/assistants/setup/helpers.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/helpers.js +45 -60
- package/dist/cli/commands/assistants/setup/helpers.js.map +1 -1
- package/dist/cli/commands/assistants/setup/index.d.ts +3 -9
- package/dist/cli/commands/assistants/setup/index.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/index.js +26 -167
- package/dist/cli/commands/assistants/setup/index.js.map +1 -1
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts +2 -2
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js +2 -2
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/actions.d.ts +1 -30
- package/dist/cli/commands/assistants/setup/selection/actions.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/actions.js +1 -320
- package/dist/cli/commands/assistants/setup/selection/actions.js.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/constants.d.ts +3 -65
- package/dist/cli/commands/assistants/setup/selection/constants.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/constants.js +4 -81
- package/dist/cli/commands/assistants/setup/selection/constants.js.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/index.d.ts +1 -9
- package/dist/cli/commands/assistants/setup/selection/index.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/index.js +14 -34
- package/dist/cli/commands/assistants/setup/selection/index.js.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts +1 -19
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js +1 -338
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/types.d.ts +7 -23
- package/dist/cli/commands/assistants/setup/selection/types.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/ui.d.ts +0 -8
- package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/ui.js +14 -135
- package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -1
- package/dist/cli/commands/assistants/setup/summary/index.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/summary/index.js +14 -8
- package/dist/cli/commands/assistants/setup/summary/index.js.map +1 -1
- package/dist/cli/commands/codebase/daemon-manager.d.ts +24 -0
- package/dist/cli/commands/codebase/daemon-manager.d.ts.map +1 -0
- package/dist/cli/commands/codebase/daemon-manager.js +112 -0
- package/dist/cli/commands/codebase/daemon-manager.js.map +1 -0
- package/dist/cli/commands/codebase/index.d.ts +3 -0
- package/dist/cli/commands/codebase/index.d.ts.map +1 -0
- package/dist/cli/commands/codebase/index.js +130 -0
- package/dist/cli/commands/codebase/index.js.map +1 -0
- package/dist/cli/commands/doctor/index.d.ts.map +1 -1
- package/dist/cli/commands/doctor/index.js +10 -1
- package/dist/cli/commands/doctor/index.js.map +1 -1
- package/dist/cli/commands/hook.d.ts.map +1 -1
- package/dist/cli/commands/hook.js +15 -2
- package/dist/cli/commands/hook.js.map +1 -1
- package/dist/cli/commands/install.js +2 -2
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/profile/index.d.ts +14 -0
- package/dist/cli/commands/profile/index.d.ts.map +1 -1
- package/dist/cli/commands/profile/index.js +110 -27
- package/dist/cli/commands/profile/index.js.map +1 -1
- package/dist/cli/commands/proxy/connectors/desktop-managed-mcp-servers.json +50 -0
- package/dist/cli/commands/proxy/connectors/desktop.d.ts +17 -9
- package/dist/cli/commands/proxy/connectors/desktop.d.ts.map +1 -1
- package/dist/cli/commands/proxy/connectors/desktop.js +139 -19
- package/dist/cli/commands/proxy/connectors/desktop.js.map +1 -1
- package/dist/cli/commands/proxy/daemon-manager.d.ts +1 -0
- package/dist/cli/commands/proxy/daemon-manager.d.ts.map +1 -1
- package/dist/cli/commands/proxy/daemon-manager.js +2 -0
- package/dist/cli/commands/proxy/daemon-manager.js.map +1 -1
- package/dist/cli/commands/proxy/index.d.ts.map +1 -1
- package/dist/cli/commands/proxy/index.js +131 -52
- package/dist/cli/commands/proxy/index.js.map +1 -1
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +3 -1
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/shared/agent-targets.d.ts +10 -0
- package/dist/cli/commands/shared/agent-targets.d.ts.map +1 -0
- package/dist/cli/commands/shared/agent-targets.js +220 -0
- package/dist/cli/commands/shared/agent-targets.js.map +1 -0
- package/dist/cli/commands/shared/constants.d.ts +15 -0
- package/dist/cli/commands/shared/constants.d.ts.map +1 -0
- package/dist/cli/commands/shared/constants.js +10 -0
- package/dist/cli/commands/shared/constants.js.map +1 -0
- package/dist/cli/commands/shared/helpers.d.ts +12 -0
- package/dist/cli/commands/shared/helpers.d.ts.map +1 -0
- package/dist/cli/commands/shared/helpers.js +54 -0
- package/dist/cli/commands/shared/helpers.js.map +1 -0
- package/dist/cli/commands/shared/prompts/storage-scope.d.ts +6 -0
- package/dist/cli/commands/shared/prompts/storage-scope.d.ts.map +1 -0
- package/dist/cli/commands/shared/prompts/storage-scope.js +91 -0
- package/dist/cli/commands/shared/prompts/storage-scope.js.map +1 -0
- package/dist/cli/commands/shared/selection/actions.d.ts +40 -0
- package/dist/cli/commands/shared/selection/actions.d.ts.map +1 -0
- package/dist/cli/commands/shared/selection/actions.js +264 -0
- package/dist/cli/commands/shared/selection/actions.js.map +1 -0
- package/dist/cli/commands/shared/selection/constants.d.ts +68 -0
- package/dist/cli/commands/shared/selection/constants.d.ts.map +1 -0
- package/dist/cli/commands/shared/selection/constants.js +70 -0
- package/dist/cli/commands/shared/selection/constants.js.map +1 -0
- package/dist/cli/commands/shared/selection/interactive-prompt.d.ts +16 -0
- package/dist/cli/commands/shared/selection/interactive-prompt.d.ts.map +1 -0
- package/dist/cli/commands/shared/selection/interactive-prompt.js +276 -0
- package/dist/cli/commands/shared/selection/interactive-prompt.js.map +1 -0
- package/dist/cli/commands/shared/selection/types.d.ts +31 -0
- package/dist/cli/commands/shared/selection/types.d.ts.map +1 -0
- package/dist/cli/commands/shared/selection/types.js +2 -0
- package/dist/cli/commands/shared/selection/types.js.map +1 -0
- package/dist/cli/commands/shared/selection/ui.d.ts +31 -0
- package/dist/cli/commands/shared/selection/ui.d.ts.map +1 -0
- package/dist/cli/commands/shared/selection/ui.js +126 -0
- package/dist/cli/commands/shared/selection/ui.js.map +1 -0
- package/dist/cli/commands/skills/add.d.ts +9 -0
- package/dist/cli/commands/skills/add.d.ts.map +1 -0
- package/dist/cli/commands/skills/add.js +187 -0
- package/dist/cli/commands/skills/add.js.map +1 -0
- package/dist/cli/commands/skills/find.d.ts +17 -0
- package/dist/cli/commands/skills/find.d.ts.map +1 -0
- package/dist/cli/commands/skills/find.js +94 -0
- package/dist/cli/commands/skills/find.js.map +1 -0
- package/dist/cli/commands/skills/index.d.ts +10 -0
- package/dist/cli/commands/skills/index.d.ts.map +1 -0
- package/dist/cli/commands/skills/index.js +23 -0
- package/dist/cli/commands/skills/index.js.map +1 -0
- package/dist/cli/commands/skills/lib/agent-detection.d.ts +27 -0
- package/dist/cli/commands/skills/lib/agent-detection.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/agent-detection.js +50 -0
- package/dist/cli/commands/skills/lib/agent-detection.js.map +1 -0
- package/dist/cli/commands/skills/lib/error-classify.d.ts +14 -0
- package/dist/cli/commands/skills/lib/error-classify.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/error-classify.js +64 -0
- package/dist/cli/commands/skills/lib/error-classify.js.map +1 -0
- package/dist/cli/commands/skills/lib/require-auth.d.ts +17 -0
- package/dist/cli/commands/skills/lib/require-auth.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/require-auth.js +44 -0
- package/dist/cli/commands/skills/lib/require-auth.js.map +1 -0
- package/dist/cli/commands/skills/lib/result-render.d.ts +26 -0
- package/dist/cli/commands/skills/lib/result-render.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/result-render.js +77 -0
- package/dist/cli/commands/skills/lib/result-render.js.map +1 -0
- package/dist/cli/commands/skills/lib/run-skills-cli.d.ts +46 -0
- package/dist/cli/commands/skills/lib/run-skills-cli.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/run-skills-cli.js +217 -0
- package/dist/cli/commands/skills/lib/run-skills-cli.js.map +1 -0
- package/dist/cli/commands/skills/lib/sanitize.d.ts +17 -0
- package/dist/cli/commands/skills/lib/sanitize.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/sanitize.js +73 -0
- package/dist/cli/commands/skills/lib/sanitize.js.map +1 -0
- package/dist/cli/commands/skills/lib/skills-metrics.d.ts +74 -0
- package/dist/cli/commands/skills/lib/skills-metrics.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/skills-metrics.js +304 -0
- package/dist/cli/commands/skills/lib/skills-metrics.js.map +1 -0
- package/dist/cli/commands/skills/lib/skills-search-client.d.ts +36 -0
- package/dist/cli/commands/skills/lib/skills-search-client.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/skills-search-client.js +147 -0
- package/dist/cli/commands/skills/lib/skills-search-client.js.map +1 -0
- package/dist/cli/commands/skills/lib/skills-sh-telemetry.d.ts +10 -0
- package/dist/cli/commands/skills/lib/skills-sh-telemetry.d.ts.map +1 -0
- package/dist/cli/commands/skills/lib/skills-sh-telemetry.js +33 -0
- package/dist/cli/commands/skills/lib/skills-sh-telemetry.js.map +1 -0
- package/dist/cli/commands/skills/list.d.ts +13 -0
- package/dist/cli/commands/skills/list.d.ts.map +1 -0
- package/dist/cli/commands/skills/list.js +55 -0
- package/dist/cli/commands/skills/list.js.map +1 -0
- package/dist/cli/commands/skills/remove.d.ts +11 -0
- package/dist/cli/commands/skills/remove.d.ts.map +1 -0
- package/dist/cli/commands/skills/remove.js +93 -0
- package/dist/cli/commands/skills/remove.js.map +1 -0
- package/dist/cli/commands/skills/setup/constants.d.ts +2 -0
- package/dist/cli/commands/skills/setup/constants.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/constants.js +2 -0
- package/dist/cli/commands/skills/setup/constants.js.map +1 -0
- package/dist/cli/commands/skills/setup/data.d.ts +28 -0
- package/dist/cli/commands/skills/setup/data.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/data.js +79 -0
- package/dist/cli/commands/skills/setup/data.js.map +1 -0
- package/dist/cli/commands/skills/setup/generators/claude-skill-generator.d.ts +12 -0
- package/dist/cli/commands/skills/setup/generators/claude-skill-generator.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/generators/claude-skill-generator.js +94 -0
- package/dist/cli/commands/skills/setup/generators/claude-skill-generator.js.map +1 -0
- package/dist/cli/commands/skills/setup/generators/codex-skill-generator.d.ts +4 -0
- package/dist/cli/commands/skills/setup/generators/codex-skill-generator.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/generators/codex-skill-generator.js +51 -0
- package/dist/cli/commands/skills/setup/generators/codex-skill-generator.js.map +1 -0
- package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.d.ts +4 -0
- package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.js +51 -0
- package/dist/cli/commands/skills/setup/generators/gemini-skill-generator.js.map +1 -0
- package/dist/cli/commands/skills/setup/helpers.d.ts +13 -0
- package/dist/cli/commands/skills/setup/helpers.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/helpers.js +56 -0
- package/dist/cli/commands/skills/setup/helpers.js.map +1 -0
- package/dist/cli/commands/skills/setup/index.d.ts +6 -0
- package/dist/cli/commands/skills/setup/index.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/index.js +140 -0
- package/dist/cli/commands/skills/setup/index.js.map +1 -0
- package/dist/cli/commands/skills/setup/selection/actions.d.ts +2 -0
- package/dist/cli/commands/skills/setup/selection/actions.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/selection/actions.js +2 -0
- package/dist/cli/commands/skills/setup/selection/actions.js.map +1 -0
- package/dist/cli/commands/skills/setup/selection/constants.d.ts +11 -0
- package/dist/cli/commands/skills/setup/selection/constants.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/selection/constants.js +11 -0
- package/dist/cli/commands/skills/setup/selection/constants.js.map +1 -0
- package/dist/cli/commands/skills/setup/selection/index.d.ts +13 -0
- package/dist/cli/commands/skills/setup/selection/index.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/selection/index.js +113 -0
- package/dist/cli/commands/skills/setup/selection/index.js.map +1 -0
- package/dist/cli/commands/skills/setup/selection/interactive-prompt.d.ts +2 -0
- package/dist/cli/commands/skills/setup/selection/interactive-prompt.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/selection/interactive-prompt.js +2 -0
- package/dist/cli/commands/skills/setup/selection/interactive-prompt.js.map +1 -0
- package/dist/cli/commands/skills/setup/selection/types.d.ts +13 -0
- package/dist/cli/commands/skills/setup/selection/types.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/selection/types.js +2 -0
- package/dist/cli/commands/skills/setup/selection/types.js.map +1 -0
- package/dist/cli/commands/skills/setup/selection/ui.d.ts +3 -0
- package/dist/cli/commands/skills/setup/selection/ui.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/selection/ui.js +63 -0
- package/dist/cli/commands/skills/setup/selection/ui.js.map +1 -0
- package/dist/cli/commands/skills/setup/sync.d.ts +13 -0
- package/dist/cli/commands/skills/setup/sync.d.ts.map +1 -0
- package/dist/cli/commands/skills/setup/sync.js +46 -0
- package/dist/cli/commands/skills/setup/sync.js.map +1 -0
- package/dist/cli/commands/skills/update.d.ts +7 -0
- package/dist/cli/commands/skills/update.d.ts.map +1 -0
- package/dist/cli/commands/skills/update.js +71 -0
- package/dist/cli/commands/skills/update.js.map +1 -0
- package/dist/cli/commands/test-metrics.js +3 -4
- package/dist/cli/commands/test-metrics.js.map +1 -1
- package/dist/cli/first-time.d.ts.map +1 -1
- package/dist/cli/first-time.js +4 -0
- package/dist/cli/first-time.js.map +1 -1
- package/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/env/types.d.ts +16 -0
- package/dist/env/types.d.ts.map +1 -1
- package/dist/env/types.js.map +1 -1
- package/dist/frameworks/plugins/bmad.plugin.d.ts +10 -1
- package/dist/frameworks/plugins/bmad.plugin.d.ts.map +1 -1
- package/dist/frameworks/plugins/bmad.plugin.js +108 -9
- package/dist/frameworks/plugins/bmad.plugin.js.map +1 -1
- package/dist/frameworks/plugins/codebase-memory.plugin.d.ts +18 -0
- package/dist/frameworks/plugins/codebase-memory.plugin.d.ts.map +1 -0
- package/dist/frameworks/plugins/codebase-memory.plugin.js +131 -0
- package/dist/frameworks/plugins/codebase-memory.plugin.js.map +1 -0
- package/dist/frameworks/plugins/index.d.ts +1 -0
- package/dist/frameworks/plugins/index.d.ts.map +1 -1
- package/dist/frameworks/plugins/index.js +3 -0
- package/dist/frameworks/plugins/index.js.map +1 -1
- package/dist/providers/core/types.d.ts +1 -1
- package/dist/providers/core/types.d.ts.map +1 -1
- package/dist/providers/plugins/anthropic-subscription/anthropic-subscription.template.d.ts.map +1 -1
- package/dist/providers/plugins/anthropic-subscription/anthropic-subscription.template.js +26 -2
- package/dist/providers/plugins/anthropic-subscription/anthropic-subscription.template.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.d.ts +31 -0
- package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.d.ts.map +1 -0
- package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js +148 -0
- package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js.map +1 -0
- package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.d.ts +20 -0
- package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.d.ts.map +1 -0
- package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.js +104 -0
- package/dist/providers/plugins/sso/proxy/plugins/codex-encrypted-content-sanitizer.plugin.js.map +1 -0
- package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.d.ts.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.js +24 -3
- package/dist/providers/plugins/sso/proxy/plugins/gateway-key.plugin.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js +5 -0
- package/dist/providers/plugins/sso/proxy/plugins/header-injection.plugin.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/index.d.ts +14 -13
- package/dist/providers/plugins/sso/proxy/plugins/index.d.ts.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/index.js +19 -17
- package/dist/providers/plugins/sso/proxy/plugins/index.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/logging.plugin.js +10 -3
- package/dist/providers/plugins/sso/proxy/plugins/logging.plugin.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.d.ts.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js +26 -8
- package/dist/providers/plugins/sso/proxy/plugins/sso.session-sync.plugin.js.map +1 -1
- package/dist/providers/plugins/sso/proxy/sso.proxy.d.ts.map +1 -1
- package/dist/providers/plugins/sso/proxy/sso.proxy.js +21 -4
- package/dist/providers/plugins/sso/proxy/sso.proxy.js.map +1 -1
- package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/SessionSyncer.js +5 -72
- package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/apiClient.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js +95 -4
- package/dist/providers/plugins/sso/session/processors/conversations/apiClient.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts +2 -2
- package/dist/providers/plugins/sso/session/processors/conversations/constants.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/constants.js +2 -2
- package/dist/providers/plugins/sso/session/processors/conversations/constants.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js +85 -21
- package/dist/providers/plugins/sso/session/processors/conversations/syncProcessor.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts +10 -2
- package/dist/providers/plugins/sso/session/processors/conversations/types.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js +80 -46
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-aggregator.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts +1 -9
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js +94 -30
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-api-client.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts +4 -6
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js +24 -25
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-post-processor.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js +140 -99
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts +11 -3
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-types.d.ts.map +1 -1
- package/dist/providers/plugins/sso/sso.auth.d.ts.map +1 -1
- package/dist/providers/plugins/sso/sso.auth.js +22 -4
- 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 +3 -3
- package/dist/providers/plugins/sso/sso.http-client.js.map +1 -1
- package/dist/providers/plugins/sso/sso.models.js +2 -2
- package/dist/providers/plugins/sso/sso.models.js.map +1 -1
- package/dist/providers/plugins/sso/sso.setup-steps.d.ts.map +1 -1
- package/dist/providers/plugins/sso/sso.setup-steps.js +8 -12
- package/dist/providers/plugins/sso/sso.setup-steps.js.map +1 -1
- package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.d.ts.map +1 -1
- package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.js +4 -1
- package/dist/telemetry/clients/claude-desktop/claude-desktop.paths.js.map +1 -1
- package/dist/telemetry/runtime/DesktopTelemetryRuntime.d.ts.map +1 -1
- package/dist/telemetry/runtime/DesktopTelemetryRuntime.js +1 -3
- package/dist/telemetry/runtime/DesktopTelemetryRuntime.js.map +1 -1
- package/dist/utils/browser.d.ts +7 -0
- package/dist/utils/browser.d.ts.map +1 -0
- package/dist/utils/browser.js +10 -0
- package/dist/utils/browser.js.map +1 -0
- package/dist/utils/config.d.ts +14 -3
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +102 -6
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/paths.d.ts +8 -0
- package/dist/utils/paths.d.ts.map +1 -1
- package/dist/utils/paths.js +15 -0
- package/dist/utils/paths.js.map +1 -1
- package/package.json +23 -10
- package/scripts/compare-codex-conversations.mjs +894 -0
- package/scripts/copy-plugins.js +5 -0
- package/scripts/sonar/package.json +3 -0
- package/scripts/sonar/run-local-sonar.js +405 -0
- package/scripts/validate-secrets.js +7 -3
- package/dist/agents/plugins/claude/plugin/claude-templates/README.md +0 -539
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/CLAUDE.md.template +0 -252
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/code-review-agent-template.md.template +0 -433
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/refactor-cleaner-agent.md.template +0 -337
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/solution-architect-agent.md.template +0 -197
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/unit-tester-agent.md.template +0 -258
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/api/api-patterns.md.template +0 -179
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/architecture.md.template +0 -197
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/data/database-patterns.md.template +0 -248
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/development/development-practices.md.template +0 -298
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/integration/external-integrations.md.template +0 -160
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/security/security-practices.md.template +0 -295
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/code-quality.md.template +0 -186
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/git-workflow.md.template +0 -177
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/testing/testing-patterns.md.template +0 -315
- package/dist/agents/plugins/claude/plugin/commands/codemie-commit.md +0 -31
- package/dist/agents/plugins/claude/plugin/commands/codemie-init.md +0 -523
- package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +0 -544
- package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-auto-wrapper.sh +0 -81
- package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-baseline.sh +0 -39
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/SKILL.md +0 -206
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-agent.md +0 -45
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-claude-md-snippet.md +0 -40
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-command.md +0 -30
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-hooks.json +0 -23
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/bad-skill.md +0 -48
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-agent.md +0 -145
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-claude-md-snippet.md +0 -126
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-command.md +0 -170
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-hooks.json +0 -46
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/good-skill.md +0 -144
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/examples/sample-report.md +0 -223
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/best-practices.md +0 -510
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/references/component-checklists.md +0 -413
- package/dist/agents/plugins/claude/plugin/skills/claude-setup-audit/scripts/scan-repo.sh +0 -162
- package/dist/providers/plugins/sso/proxy/plugins/claude-thinking-transformer.plugin.d.ts +0 -30
- package/dist/providers/plugins/sso/proxy/plugins/claude-thinking-transformer.plugin.d.ts.map +0 -1
- package/dist/providers/plugins/sso/proxy/plugins/claude-thinking-transformer.plugin.js +0 -111
- package/dist/providers/plugins/sso/proxy/plugins/claude-thinking-transformer.plugin.js.map +0 -1
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# Security Practices
|
|
3
|
-
|
|
4
|
-
<!--
|
|
5
|
-
GENERATION INSTRUCTIONS:
|
|
6
|
-
1. Find auth middleware/guards and extract flow
|
|
7
|
-
2. Scan for role/permission checks and document model
|
|
8
|
-
3. Locate validation schemas at API boundaries
|
|
9
|
-
4. Check for security middleware (helmet, cors, rate-limit)
|
|
10
|
-
5. Find secrets loading pattern (env, vault, etc.)
|
|
11
|
-
6. Identify security-sensitive operations and their protections
|
|
12
|
-
7. Output: 150-300 lines max
|
|
13
|
-
-->
|
|
14
|
-
|
|
15
|
-
**Project**: [Extract from config]
|
|
16
|
-
**Auth Method**: [Detect: JWT | Session | OAuth2 | API Key | None]
|
|
17
|
-
**Auth Library**: [Detect: passport, jose, next-auth, etc.]
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Authentication Flow
|
|
22
|
-
|
|
23
|
-
<!-- Extract actual auth implementation -->
|
|
24
|
-
|
|
25
|
-
### How Auth Works
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
[Request] → [Auth Middleware] → [Token/Session Validation] → [User Context]
|
|
29
|
-
│
|
|
30
|
-
▼ (on failure)
|
|
31
|
-
401 Unauthorized
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Implementation
|
|
35
|
-
|
|
36
|
-
```[lang]
|
|
37
|
-
// Source: [file:lines]
|
|
38
|
-
[Extract auth middleware/guard usage]
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Token/Session Details
|
|
42
|
-
|
|
43
|
-
| Aspect | Value |
|
|
44
|
-
|--------|-------|
|
|
45
|
-
| Type | `[JWT / Session / API Key]` |
|
|
46
|
-
| Storage | `[Header: Bearer / Cookie / Query]` |
|
|
47
|
-
| Expiration | `[duration or config location]` |
|
|
48
|
-
| Refresh | `[mechanism if exists]` |
|
|
49
|
-
|
|
50
|
-
### Protect a Route
|
|
51
|
-
|
|
52
|
-
```[lang]
|
|
53
|
-
// Apply auth to new endpoints like this:
|
|
54
|
-
[Extract exact syntax for protecting routes]
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## Authorization
|
|
60
|
-
|
|
61
|
-
<!-- Find permission/role checking patterns -->
|
|
62
|
-
|
|
63
|
-
### Permission Model
|
|
64
|
-
|
|
65
|
-
**Type**: [RBAC | ABAC | Simple roles | Custom]
|
|
66
|
-
|
|
67
|
-
| Role/Permission | Access Level | Defined In |
|
|
68
|
-
|-----------------|--------------|------------|
|
|
69
|
-
| `[role/permission]` | [What it allows] | `[file:line]` |
|
|
70
|
-
| `[role/permission]` | [What it allows] | `[file:line]` |
|
|
71
|
-
|
|
72
|
-
### Enforce Permissions
|
|
73
|
-
|
|
74
|
-
```[lang]
|
|
75
|
-
// Source: [file:lines]
|
|
76
|
-
[Extract authorization check pattern]
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Check User Permissions
|
|
80
|
-
|
|
81
|
-
```[lang]
|
|
82
|
-
// How to check permissions in code:
|
|
83
|
-
[Extract permission checking syntax]
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## Input Validation
|
|
89
|
-
|
|
90
|
-
<!-- Find validation at API boundaries -->
|
|
91
|
-
|
|
92
|
-
### Validation Layer
|
|
93
|
-
|
|
94
|
-
**Library**: `[Zod / Joi / class-validator / Pydantic / etc.]`
|
|
95
|
-
**Applied At**: `[Middleware / Decorator / Controller]`
|
|
96
|
-
|
|
97
|
-
```[lang]
|
|
98
|
-
// Source: [file:lines]
|
|
99
|
-
[Extract validation schema example]
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Sanitization
|
|
103
|
-
|
|
104
|
-
```[lang]
|
|
105
|
-
// Source: [file:lines] - if explicit sanitization exists
|
|
106
|
-
[Extract sanitization pattern or note "handled by validation library"]
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### Rules
|
|
110
|
-
|
|
111
|
-
- ✅ Validate at `[detected boundary - controller/middleware]`
|
|
112
|
-
- ✅ Use schemas from `[validation path]`
|
|
113
|
-
- ❌ Never trust: query params, body, headers, path params
|
|
114
|
-
|
|
115
|
-
---
|
|
116
|
-
|
|
117
|
-
## Secrets Management
|
|
118
|
-
|
|
119
|
-
<!-- Find how secrets are loaded and used -->
|
|
120
|
-
|
|
121
|
-
### Loading Pattern
|
|
122
|
-
|
|
123
|
-
```[lang]
|
|
124
|
-
// Source: [file:lines]
|
|
125
|
-
[Extract secrets/config loading]
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Secret Variables
|
|
129
|
-
|
|
130
|
-
| Variable | Purpose | Required |
|
|
131
|
-
|----------|---------|----------|
|
|
132
|
-
| `[SECRET_KEY/JWT_SECRET]` | [Token signing] | Yes |
|
|
133
|
-
| `[DATABASE_URL]` | [DB connection] | Yes |
|
|
134
|
-
| `[API_KEY_*]` | [External services] | Varies |
|
|
135
|
-
|
|
136
|
-
### Access Secrets
|
|
137
|
-
|
|
138
|
-
```[lang]
|
|
139
|
-
// Always access secrets via:
|
|
140
|
-
[Extract config/env access pattern - never hardcode]
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### Rules
|
|
144
|
-
|
|
145
|
-
- ✅ Load from `[env / secrets manager / vault]`
|
|
146
|
-
- ✅ Access via `[config module pattern]`
|
|
147
|
-
- ❌ Hardcode in source code
|
|
148
|
-
- ❌ Commit `.env` files
|
|
149
|
-
- ❌ Log secret values
|
|
150
|
-
|
|
151
|
-
---
|
|
152
|
-
|
|
153
|
-
## Security Middleware
|
|
154
|
-
|
|
155
|
-
<!-- Find security-related middleware/headers -->
|
|
156
|
-
|
|
157
|
-
### Configured Protections
|
|
158
|
-
|
|
159
|
-
| Protection | Implementation | Source |
|
|
160
|
-
|------------|----------------|--------|
|
|
161
|
-
| Security Headers | `[helmet / manual / framework]` | `[file:line]` |
|
|
162
|
-
| CORS | `[cors config location]` | `[file:line]` |
|
|
163
|
-
| Rate Limiting | `[rate-limit implementation]` | `[file:line]` |
|
|
164
|
-
| CSRF | `[csrf protection or N/A]` | `[file:line]` |
|
|
165
|
-
|
|
166
|
-
### Headers Set
|
|
167
|
-
|
|
168
|
-
```[lang]
|
|
169
|
-
// Source: [file:lines]
|
|
170
|
-
[Extract security headers configuration]
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### CORS Configuration
|
|
174
|
-
|
|
175
|
-
```[lang]
|
|
176
|
-
// Source: [file:lines]
|
|
177
|
-
[Extract CORS config - allowed origins, methods]
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
### Rate Limiting
|
|
181
|
-
|
|
182
|
-
```[lang]
|
|
183
|
-
// Source: [file:lines]
|
|
184
|
-
[Extract rate limit configuration]
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
**Limits**: `[X requests per Y time window]`
|
|
188
|
-
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
## SQL Injection Prevention
|
|
192
|
-
|
|
193
|
-
<!-- Verify ORM/query builder or parameterized queries -->
|
|
194
|
-
|
|
195
|
-
**Protection**: `[ORM: name | Query Builder: name | Parameterized queries]`
|
|
196
|
-
|
|
197
|
-
```[lang]
|
|
198
|
-
// ✅ Safe - Source: [file:lines]
|
|
199
|
-
[Extract parameterized query example]
|
|
200
|
-
|
|
201
|
-
// ❌ NEVER - vulnerable to injection
|
|
202
|
-
[Show anti-pattern if found, or generic example]
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
## XSS Prevention
|
|
208
|
-
|
|
209
|
-
<!-- Find output encoding/escaping -->
|
|
210
|
-
|
|
211
|
-
**Protection**: `[Framework auto-escaping | Manual escaping | CSP]`
|
|
212
|
-
|
|
213
|
-
```[lang]
|
|
214
|
-
// Source: [file:lines]
|
|
215
|
-
[Extract output escaping or template rendering pattern]
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
**Content Security Policy**: `[Configured / Not configured]`
|
|
219
|
-
|
|
220
|
-
---
|
|
221
|
-
|
|
222
|
-
## File Upload Security
|
|
223
|
-
|
|
224
|
-
<!-- If file uploads exist, document protections -->
|
|
225
|
-
|
|
226
|
-
```[lang]
|
|
227
|
-
// Source: [file:lines]
|
|
228
|
-
[Extract file upload validation - type, size, name sanitization]
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
| Protection | Implementation |
|
|
232
|
-
|------------|----------------|
|
|
233
|
-
| File type validation | `[how enforced]` |
|
|
234
|
-
| Size limit | `[max size]` |
|
|
235
|
-
| Storage location | `[path - outside webroot?]` |
|
|
236
|
-
| Filename sanitization | `[yes/no, how]` |
|
|
237
|
-
|
|
238
|
-
---
|
|
239
|
-
|
|
240
|
-
## Audit Logging
|
|
241
|
-
|
|
242
|
-
<!-- Find security event logging -->
|
|
243
|
-
|
|
244
|
-
**Logged Events**:
|
|
245
|
-
|
|
246
|
-
| Event | Log Level | Source |
|
|
247
|
-
|-------|-----------|--------|
|
|
248
|
-
| Login success/failure | `[level]` | `[file:line]` |
|
|
249
|
-
| Permission denied | `[level]` | `[file:line]` |
|
|
250
|
-
| Password change | `[level]` | `[file:line]` |
|
|
251
|
-
| Sensitive data access | `[level]` | `[file:line]` |
|
|
252
|
-
|
|
253
|
-
```[lang]
|
|
254
|
-
// Source: [file:lines]
|
|
255
|
-
[Extract audit log example]
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
---
|
|
259
|
-
|
|
260
|
-
## Dependency Security
|
|
261
|
-
|
|
262
|
-
<!-- Find vulnerability scanning setup -->
|
|
263
|
-
|
|
264
|
-
| Tool | Command | Frequency |
|
|
265
|
-
|------|---------|-----------|
|
|
266
|
-
| `[npm audit / safety / snyk / dependabot]` | `[command]` | `[CI / manual]` |
|
|
267
|
-
|
|
268
|
-
---
|
|
269
|
-
|
|
270
|
-
## Security Anti-Patterns
|
|
271
|
-
|
|
272
|
-
<!-- Extract from code review or detected issues -->
|
|
273
|
-
|
|
274
|
-
| ❌ NEVER | ✅ INSTEAD | Risk |
|
|
275
|
-
|----------|-----------|------|
|
|
276
|
-
| `[detected or common anti-pattern]` | `[correct pattern]` | [Risk type] |
|
|
277
|
-
| `[detected or common anti-pattern]` | `[correct pattern]` | [Risk type] |
|
|
278
|
-
| `[detected or common anti-pattern]` | `[correct pattern]` | [Risk type] |
|
|
279
|
-
| Log user passwords/tokens | Log user ID only | Data exposure |
|
|
280
|
-
| Return stack traces to client | Generic error messages | Info leakage |
|
|
281
|
-
|
|
282
|
-
---
|
|
283
|
-
|
|
284
|
-
## Quick Reference
|
|
285
|
-
|
|
286
|
-
| Security Need | Location | Pattern |
|
|
287
|
-
|---------------|----------|---------|
|
|
288
|
-
| Auth middleware | `[path]` | `[usage syntax]` |
|
|
289
|
-
| Permission check | `[path]` | `[usage syntax]` |
|
|
290
|
-
| Input validation | `[path]` | `[usage syntax]` |
|
|
291
|
-
| Secrets config | `[path]` | `[access pattern]` |
|
|
292
|
-
| Security headers | `[path]` | - |
|
|
293
|
-
| Audit logging | `[path]` | `[log function]` |
|
|
294
|
-
|
|
295
|
-
---
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# Code Quality Standards
|
|
3
|
-
|
|
4
|
-
<!--
|
|
5
|
-
GENERATION INSTRUCTIONS:
|
|
6
|
-
1. Parse linter config for active rules
|
|
7
|
-
2. Extract formatter settings
|
|
8
|
-
3. Scan codebase for consistent patterns
|
|
9
|
-
4. Identify type checking strictness level
|
|
10
|
-
5. Find pre-commit/CI quality gates
|
|
11
|
-
6. Extract actual good/bad examples from codebase
|
|
12
|
-
7. Output: 150-250 lines max
|
|
13
|
-
-->
|
|
14
|
-
|
|
15
|
-
**Project**: [Extract from config]
|
|
16
|
-
**Linter**: [Detect tool + config file]
|
|
17
|
-
**Formatter**: [Detect tool + config file]
|
|
18
|
-
**Type Checker**: [Detect tool + config file or N/A]
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## Quality Commands
|
|
23
|
-
|
|
24
|
-
<!-- Extract exact commands from package.json, Makefile, pyproject.toml -->
|
|
25
|
-
|
|
26
|
-
| Action | Command | Description |
|
|
27
|
-
|--------|---------|-------------|
|
|
28
|
-
| Check all | `[combined command if exists]` | Run all quality checks |
|
|
29
|
-
| Lint | `[lint command]` | Check code issues |
|
|
30
|
-
| Lint fix | `[lint fix command]` | Auto-fix issues |
|
|
31
|
-
| Format | `[format command]` | Format code |
|
|
32
|
-
| Type check | `[type check command or N/A]` | Verify types |
|
|
33
|
-
|
|
34
|
-
**Before committing, run**: `[primary quality command]`
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## Enforced Rules
|
|
39
|
-
|
|
40
|
-
<!-- Extract key rules from linter/formatter config -->
|
|
41
|
-
|
|
42
|
-
### From Linter (`[config file]`)
|
|
43
|
-
|
|
44
|
-
| Rule | Setting | Rationale |
|
|
45
|
-
|------|---------|-----------|
|
|
46
|
-
| `[rule-name]` | `[error/warn/value]` | [Brief why] |
|
|
47
|
-
| `[rule-name]` | `[error/warn/value]` | [Brief why] |
|
|
48
|
-
| `[rule-name]` | `[error/warn/value]` | [Brief why] |
|
|
49
|
-
| `[rule-name]` | `[error/warn/value]` | [Brief why] |
|
|
50
|
-
|
|
51
|
-
### From Formatter (`[config file]`)
|
|
52
|
-
|
|
53
|
-
| Setting | Value |
|
|
54
|
-
|---------|-------|
|
|
55
|
-
| Line length | `[value]` |
|
|
56
|
-
| Indentation | `[tabs/spaces, size]` |
|
|
57
|
-
| Quotes | `[single/double]` |
|
|
58
|
-
| Trailing comma | `[yes/no/es5]` |
|
|
59
|
-
| Semicolons | `[yes/no]` |
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
## Naming Standards
|
|
64
|
-
|
|
65
|
-
<!-- Extract from linter rules + analyze codebase patterns -->
|
|
66
|
-
|
|
67
|
-
| Element | Rule | ✅ Correct | ❌ Wrong |
|
|
68
|
-
|---------|------|-----------|----------|
|
|
69
|
-
| Variables | `[camelCase/snake_case]` | `userName` | `user_name` / `UserName` |
|
|
70
|
-
| Functions | `[camelCase/snake_case]` | `getUserById` | `GetUserById` |
|
|
71
|
-
| Classes | `[PascalCase]` | `UserService` | `userService` |
|
|
72
|
-
| Constants | `[UPPER_SNAKE]` | `MAX_RETRIES` | `maxRetries` |
|
|
73
|
-
| Files | `[kebab/snake/pascal]` | `[actual example]` | `[counter example]` |
|
|
74
|
-
| Boolean vars | `[is/has/should prefix]` | `isActive` | `active` |
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## Type Safety
|
|
79
|
-
|
|
80
|
-
<!-- Detect type checking level and requirements -->
|
|
81
|
-
|
|
82
|
-
**Strictness**: `[strict / moderate / basic / none]`
|
|
83
|
-
**Config**: `[tsconfig.json / mypy.ini / pyproject.toml section]`
|
|
84
|
-
|
|
85
|
-
### Required Typing
|
|
86
|
-
|
|
87
|
-
```[lang]
|
|
88
|
-
// ✅ Correct - Source: [file:lines]
|
|
89
|
-
[Extract well-typed function example]
|
|
90
|
-
|
|
91
|
-
// ❌ Missing types - would fail type check
|
|
92
|
-
[Show same function without types]
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Type Rules
|
|
96
|
-
|
|
97
|
-
| Rule | Required |
|
|
98
|
-
|------|----------|
|
|
99
|
-
| Function parameters | ✅ Always |
|
|
100
|
-
| Function returns | ✅ Always |
|
|
101
|
-
| Variables | `[inferred OK / explicit required]` |
|
|
102
|
-
| `any` / `unknown` | `[forbidden / discouraged / allowed]` |
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Code Complexity Limits
|
|
107
|
-
|
|
108
|
-
<!-- Extract from linter config or establish from codebase patterns -->
|
|
109
|
-
|
|
110
|
-
| Metric | Limit | Enforced By |
|
|
111
|
-
|--------|-------|-------------|
|
|
112
|
-
| Function length | `[max lines]` | `[rule name or convention]` |
|
|
113
|
-
| File length | `[max lines]` | `[rule name or convention]` |
|
|
114
|
-
| Cyclomatic complexity | `[max value]` | `[rule name or N/A]` |
|
|
115
|
-
| Nesting depth | `[max levels]` | `[rule name or convention]` |
|
|
116
|
-
| Parameters per function | `[max count]` | `[rule name or convention]` |
|
|
117
|
-
|
|
118
|
-
### Reduce Complexity
|
|
119
|
-
|
|
120
|
-
```[lang]
|
|
121
|
-
// ❌ Too complex
|
|
122
|
-
[Extract or create example of deep nesting/long function]
|
|
123
|
-
|
|
124
|
-
// ✅ Refactored
|
|
125
|
-
[Show extracted/simplified version]
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
## Import Organization
|
|
131
|
-
|
|
132
|
-
<!-- Extract from linter rules (import-order, isort, etc.) -->
|
|
133
|
-
|
|
134
|
-
```[lang]
|
|
135
|
-
// Source: [well-organized file:lines]
|
|
136
|
-
|
|
137
|
-
// Group 1: [Built-in/Standard library]
|
|
138
|
-
[imports]
|
|
139
|
-
|
|
140
|
-
// Group 2: [External/Third-party packages]
|
|
141
|
-
[imports]
|
|
142
|
-
|
|
143
|
-
// Group 3: [Internal/Local modules]
|
|
144
|
-
[imports]
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
**Rules**:
|
|
148
|
-
- ✅ Sorted alphabetically within groups
|
|
149
|
-
- ✅ One import per line (or `[grouped style if used]`)
|
|
150
|
-
- ❌ Wildcard imports (`import *`)
|
|
151
|
-
- ❌ Unused imports
|
|
152
|
-
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
## Documentation Standards
|
|
156
|
-
|
|
157
|
-
<!-- Extract from docstring linter rules or conventions -->
|
|
158
|
-
|
|
159
|
-
### Required Documentation
|
|
160
|
-
|
|
161
|
-
| Element | Required | Format |
|
|
162
|
-
|---------|----------|--------|
|
|
163
|
-
| Public functions | ✅ | `[JSDoc / docstring / etc.]` |
|
|
164
|
-
| Public classes | ✅ | `[format]` |
|
|
165
|
-
| Complex logic | ✅ | Inline comments |
|
|
166
|
-
| Private/internal | Optional | - |
|
|
167
|
-
|
|
168
|
-
### Format
|
|
169
|
-
|
|
170
|
-
```[lang]
|
|
171
|
-
// Source: [file:lines]
|
|
172
|
-
[Extract canonical documentation example]
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
## Common Violations & Fixes
|
|
178
|
-
|
|
179
|
-
<!-- Extract from common linter errors in codebase or CI logs -->
|
|
180
|
-
|
|
181
|
-
| Violation | Fix |
|
|
182
|
-
|-----------|-----|
|
|
183
|
-
| `[linter-error-code]`: [description] | [How to fix] |
|
|
184
|
-
| `[linter-error-code]`: [description] | [How to fix] |
|
|
185
|
-
| `[linter-error-code]`: [description] | [How to fix] |
|
|
186
|
-
|
|
|
@@ -1,177 +0,0 @@
|
|
|
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
|
-
---
|