@codemieai/code 0.1.0 → 0.2.1
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 +30 -6
- 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/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.js +1 -1
- package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/agents/plugins/claude/plugin/hooks/hooks.json +0 -15
- package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/SKILL.md +641 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/references/leaderboard-dashboard-report.md +225 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/references/people-spending-dashboard-report.md +746 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/references/people-spending-dashboard-template.html +3270 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/scripts/analytics-cli.js +893 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-analytics/scripts/inspect-schema.js +211 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/README.md +39 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/SKILL.md +117 -26
- package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/scripts/inject-css.js +40 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/scripts/inject-data.js +68 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-html-report/style-guide/css/bundle.css +1 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/SKILL.md +240 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/assistants.md +256 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/categories.md +101 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/datasources.md +401 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/integrations.md +242 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/skills.md +191 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/users.md +38 -0
- package/dist/agents/plugins/claude/plugin/skills/codemie-sdk/examples/workflows.md +151 -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/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/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 +3 -2
- package/dist/cli/commands/assistants/setup/helpers.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/helpers.js +43 -8
- package/dist/cli/commands/assistants/setup/helpers.js.map +1 -1
- package/dist/cli/commands/assistants/setup/index.d.ts +3 -1
- package/dist/cli/commands/assistants/setup/index.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/index.js +15 -12
- 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/ui.d.ts.map +1 -1
- package/dist/cli/commands/assistants/setup/selection/ui.js +8 -13
- 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/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/display.d.ts.map +1 -1
- package/dist/cli/commands/profile/display.js +1 -0
- package/dist/cli/commands/profile/display.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 +1 -1
- package/dist/cli/commands/proxy/connectors/desktop.d.ts +4 -6
- package/dist/cli/commands/proxy/connectors/desktop.d.ts.map +1 -1
- package/dist/cli/commands/proxy/connectors/desktop.js +112 -25
- 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 +42 -0
- package/dist/cli/commands/proxy/index.js.map +1 -1
- package/dist/cli/commands/sdk/assistants.d.ts +3 -0
- package/dist/cli/commands/sdk/assistants.d.ts.map +1 -0
- package/dist/cli/commands/sdk/assistants.js +211 -0
- package/dist/cli/commands/sdk/assistants.js.map +1 -0
- package/dist/cli/commands/sdk/categories.d.ts +3 -0
- package/dist/cli/commands/sdk/categories.d.ts.map +1 -0
- package/dist/cli/commands/sdk/categories.js +186 -0
- package/dist/cli/commands/sdk/categories.js.map +1 -0
- package/dist/cli/commands/sdk/datasources.d.ts +3 -0
- package/dist/cli/commands/sdk/datasources.d.ts.map +1 -0
- package/dist/cli/commands/sdk/datasources.js +276 -0
- package/dist/cli/commands/sdk/datasources.js.map +1 -0
- package/dist/cli/commands/sdk/index.d.ts +3 -0
- package/dist/cli/commands/sdk/index.d.ts.map +1 -0
- package/dist/cli/commands/sdk/index.js +23 -0
- package/dist/cli/commands/sdk/index.js.map +1 -0
- package/dist/cli/commands/sdk/integrations.d.ts +3 -0
- package/dist/cli/commands/sdk/integrations.d.ts.map +1 -0
- package/dist/cli/commands/sdk/integrations.js +220 -0
- package/dist/cli/commands/sdk/integrations.js.map +1 -0
- package/dist/cli/commands/sdk/llm.d.ts +3 -0
- package/dist/cli/commands/sdk/llm.d.ts.map +1 -0
- package/dist/cli/commands/sdk/llm.js +48 -0
- package/dist/cli/commands/sdk/llm.js.map +1 -0
- package/dist/cli/commands/sdk/services/assistants.d.ts +13 -0
- package/dist/cli/commands/sdk/services/assistants.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/assistants.js +60 -0
- package/dist/cli/commands/sdk/services/assistants.js.map +1 -0
- package/dist/cli/commands/sdk/services/categories.d.ts +8 -0
- package/dist/cli/commands/sdk/services/categories.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/categories.js +19 -0
- package/dist/cli/commands/sdk/services/categories.js.map +1 -0
- package/dist/cli/commands/sdk/services/datasources.d.ts +33 -0
- package/dist/cli/commands/sdk/services/datasources.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/datasources.js +268 -0
- package/dist/cli/commands/sdk/services/datasources.js.map +1 -0
- package/dist/cli/commands/sdk/services/index.d.ts +6 -0
- package/dist/cli/commands/sdk/services/index.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/index.js +6 -0
- package/dist/cli/commands/sdk/services/index.js.map +1 -0
- package/dist/cli/commands/sdk/services/integrations.d.ts +27 -0
- package/dist/cli/commands/sdk/services/integrations.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/integrations.js +59 -0
- package/dist/cli/commands/sdk/services/integrations.js.map +1 -0
- package/dist/cli/commands/sdk/services/llm.d.ts +4 -0
- package/dist/cli/commands/sdk/services/llm.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/llm.js +7 -0
- package/dist/cli/commands/sdk/services/llm.js.map +1 -0
- package/dist/cli/commands/sdk/services/skills.d.ts +23 -0
- package/dist/cli/commands/sdk/services/skills.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/skills.js +69 -0
- package/dist/cli/commands/sdk/services/skills.js.map +1 -0
- package/dist/cli/commands/sdk/services/users.d.ts +4 -0
- package/dist/cli/commands/sdk/services/users.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/users.js +7 -0
- package/dist/cli/commands/sdk/services/users.js.map +1 -0
- package/dist/cli/commands/sdk/services/workflows.d.ts +7 -0
- package/dist/cli/commands/sdk/services/workflows.d.ts.map +1 -0
- package/dist/cli/commands/sdk/services/workflows.js +34 -0
- package/dist/cli/commands/sdk/services/workflows.js.map +1 -0
- package/dist/cli/commands/sdk/skills.d.ts +3 -0
- package/dist/cli/commands/sdk/skills.d.ts.map +1 -0
- package/dist/cli/commands/sdk/skills.js +492 -0
- package/dist/cli/commands/sdk/skills.js.map +1 -0
- package/dist/cli/commands/sdk/users.d.ts +3 -0
- package/dist/cli/commands/sdk/users.d.ts.map +1 -0
- package/dist/cli/commands/sdk/users.js +81 -0
- package/dist/cli/commands/sdk/users.js.map +1 -0
- package/dist/cli/commands/sdk/utils/cli-utils.d.ts +35 -0
- package/dist/cli/commands/sdk/utils/cli-utils.d.ts.map +1 -0
- package/dist/cli/commands/sdk/utils/cli-utils.js +110 -0
- package/dist/cli/commands/sdk/utils/cli-utils.js.map +1 -0
- package/dist/cli/commands/sdk/utils/datasource-types.d.ts +9 -0
- package/dist/cli/commands/sdk/utils/datasource-types.d.ts.map +1 -0
- package/dist/cli/commands/sdk/utils/datasource-types.js +61 -0
- package/dist/cli/commands/sdk/utils/datasource-types.js.map +1 -0
- package/dist/cli/commands/sdk/utils/file-utils.d.ts +8 -0
- package/dist/cli/commands/sdk/utils/file-utils.d.ts.map +1 -0
- package/dist/cli/commands/sdk/utils/file-utils.js +21 -0
- package/dist/cli/commands/sdk/utils/file-utils.js.map +1 -0
- package/dist/cli/commands/sdk/utils/render.d.ts +82 -0
- package/dist/cli/commands/sdk/utils/render.d.ts.map +1 -0
- package/dist/cli/commands/sdk/utils/render.js +149 -0
- package/dist/cli/commands/sdk/utils/render.js.map +1 -0
- package/dist/cli/commands/sdk/workflows.d.ts +3 -0
- package/dist/cli/commands/sdk/workflows.d.ts.map +1 -0
- package/dist/cli/commands/sdk/workflows.js +170 -0
- package/dist/cli/commands/sdk/workflows.js.map +1 -0
- package/dist/cli/commands/setup.js +1 -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/prompts/storage-scope.d.ts.map +1 -1
- package/dist/cli/commands/shared/prompts/storage-scope.js +9 -2
- package/dist/cli/commands/shared/prompts/storage-scope.js.map +1 -1
- package/dist/cli/commands/shared/selection/ui.d.ts +22 -0
- package/dist/cli/commands/shared/selection/ui.d.ts.map +1 -1
- package/dist/cli/commands/shared/selection/ui.js +34 -0
- package/dist/cli/commands/shared/selection/ui.js.map +1 -1
- package/dist/cli/commands/skills/lib/skills-metrics.d.ts.map +1 -1
- package/dist/cli/commands/skills/lib/skills-metrics.js +47 -11
- package/dist/cli/commands/skills/lib/skills-metrics.js.map +1 -1
- 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 +3 -2
- package/dist/cli/commands/skills/setup/helpers.d.ts.map +1 -1
- package/dist/cli/commands/skills/setup/helpers.js +31 -6
- package/dist/cli/commands/skills/setup/helpers.js.map +1 -1
- package/dist/cli/commands/skills/setup/index.d.ts +2 -1
- package/dist/cli/commands/skills/setup/index.d.ts.map +1 -1
- package/dist/cli/commands/skills/setup/index.js +14 -11
- package/dist/cli/commands/skills/setup/index.js.map +1 -1
- package/dist/cli/commands/skills/setup/selection/ui.d.ts.map +1 -1
- package/dist/cli/commands/skills/setup/selection/ui.js +8 -13
- package/dist/cli/commands/skills/setup/selection/ui.js.map +1 -1
- package/dist/cli/commands/test-metrics.js +3 -4
- package/dist/cli/commands/test-metrics.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 +2 -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/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.d.ts +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js +4 -4
- package/dist/providers/plugins/sso/proxy/plugins/claude-request-normalizer.plugin.js.map +1 -1
- 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 +3 -1
- package/dist/providers/plugins/sso/proxy/plugins/index.d.ts.map +1 -1
- package/dist/providers/plugins/sso/proxy/plugins/index.js +5 -1
- 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.setup-steps.js +2 -2
- 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.map +1 -1
- package/dist/utils/config.js +7 -1
- 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 +2 -1
- package/scripts/compare-codex-conversations.mjs +894 -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-init.md +0 -522
- package/dist/agents/plugins/claude/plugin/commands/handoff.md +0 -56
- package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +0 -549
- package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-baseline.sh +0 -39
- package/dist/agents/plugins/claude/plugin/scripts/bash/rtk-rewrite.sh +0 -101
- 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
|
@@ -1,549 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Detect code changes and update project documentation to reflect current implementation. Only updates docs when changes are materially relevant.
|
|
3
|
-
allowed-tools: Bash, Read, Glob, Grep, Write, Edit
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Refresh and Audit Project Documentation
|
|
7
|
-
|
|
8
|
-
**Purpose**: Intelligently detect code changes and update documentation to reflect current implementation.
|
|
9
|
-
|
|
10
|
-
**CRITICAL**: Not every code change requires documentation updates. Only update documentation when:
|
|
11
|
-
- Implementation patterns have actually changed
|
|
12
|
-
- New architectural decisions were made
|
|
13
|
-
- Critical information is missing or incorrect
|
|
14
|
-
- Non-obvious behaviors have been introduced
|
|
15
|
-
|
|
16
|
-
If documentation accurately reflects the current codebase, no changes are needed.
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Additional user's input
|
|
21
|
-
Additional context/input from user: $ARGUMENTS. Might be empty by default.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Workflow Overview
|
|
26
|
-
|
|
27
|
-
This command supports two modes based on documentation type:
|
|
28
|
-
|
|
29
|
-
**🚀 Smart Mode (Codemie Docs)**:
|
|
30
|
-
- Detects `.codemie/guides/` directory
|
|
31
|
-
- Uses git to identify changed files
|
|
32
|
-
- Maps changes to affected guide categories
|
|
33
|
-
- Updates only impacted guides (selective)
|
|
34
|
-
- Fast and efficient for regular updates
|
|
35
|
-
|
|
36
|
-
**📋 Traditional Mode (All Documentation)**:
|
|
37
|
-
- Works with any documentation structure
|
|
38
|
-
- Comprehensive audit of all docs
|
|
39
|
-
- Reviews all guides vs implementation
|
|
40
|
-
- Updates as needed
|
|
41
|
-
- Thorough for major refactors
|
|
42
|
-
|
|
43
|
-
**Decision Flow**:
|
|
44
|
-
```
|
|
45
|
-
Step 1: Discover docs
|
|
46
|
-
├─ Codemie docs found → Step 2A (Smart Mode)
|
|
47
|
-
└─ Other docs found → Step 2B (Traditional Mode)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
User can override and request full audit at any point.
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## Step 1: Discover What Documentation Exists
|
|
55
|
-
|
|
56
|
-
Identify documentation systems in this project:
|
|
57
|
-
|
|
58
|
-
**A. Codemie-Generated Documentation** (if present):
|
|
59
|
-
- `CLAUDE.md` in project root
|
|
60
|
-
- `.codemie/guides/` directory with structured guides
|
|
61
|
-
- Check if generated by `/codemie-init` (mentions template structure)
|
|
62
|
-
|
|
63
|
-
**B. Structured Guides** (if present):
|
|
64
|
-
- `docs/`, `.claude/guides/`, `documentation/`
|
|
65
|
-
- Look for topical organization (architecture, development, testing, etc.)
|
|
66
|
-
|
|
67
|
-
**C. CLAUDE.md Files** (if present):
|
|
68
|
-
- Root `CLAUDE.md` (project overview)
|
|
69
|
-
- Component-specific `CLAUDE.md` in subdirectories
|
|
70
|
-
- Common in: `src/`, `lib/`, feature directories
|
|
71
|
-
|
|
72
|
-
**D. Other Documentation**:
|
|
73
|
-
- `README.md`, `CONTRIBUTING.md`, `ARCHITECTURE.md`
|
|
74
|
-
- Wiki, Confluence, or external docs (mentioned in README)
|
|
75
|
-
|
|
76
|
-
**Note**: Projects may have any combination of these, or none at all.
|
|
77
|
-
|
|
78
|
-
**Decision Point**:
|
|
79
|
-
- ✅ Codemie docs found → Use smart change detection (Step 2A)
|
|
80
|
-
- ✅ Other docs found → Use traditional audit (Step 2B)
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## Step 2A: Smart Change Detection (For Codemie Docs)
|
|
85
|
-
|
|
86
|
-
**Use this workflow when `.codemie/guides/` exists**
|
|
87
|
-
|
|
88
|
-
### Step 2A.1: Detect Changed Files
|
|
89
|
-
|
|
90
|
-
**Ask user** which timeframe to analyze:
|
|
91
|
-
- Recent uncommitted changes (default)
|
|
92
|
-
- Last N commits (e.g., 5, 10)
|
|
93
|
-
- Changes since specific date
|
|
94
|
-
- All changes (comprehensive audit)
|
|
95
|
-
|
|
96
|
-
**Git Commands**:
|
|
97
|
-
```bash
|
|
98
|
-
# Option 1: Uncommitted changes
|
|
99
|
-
git status --short
|
|
100
|
-
git diff HEAD --name-only
|
|
101
|
-
|
|
102
|
-
# Option 2: Last N commits
|
|
103
|
-
git diff HEAD~5 HEAD --name-only
|
|
104
|
-
|
|
105
|
-
# Option 3: Since date
|
|
106
|
-
git log --since="2 weeks ago" --name-only --pretty=format: | sort -u
|
|
107
|
-
|
|
108
|
-
# Option 4: All staged/unstaged
|
|
109
|
-
git diff --name-only && git diff --cached --name-only
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
**Filter relevant changes** (exclude):
|
|
113
|
-
- Test files (unless testing patterns changed)
|
|
114
|
-
- Build artifacts, dependencies
|
|
115
|
-
- Documentation files themselves
|
|
116
|
-
- Config files (unless tools changed)
|
|
117
|
-
|
|
118
|
-
**Output**: List of changed source files
|
|
119
|
-
|
|
120
|
-
**Decision Point**:
|
|
121
|
-
- ✅ Changes detected → Continue to Step 2A.2
|
|
122
|
-
- ❌ No changes → Skip to Step 6 (validation only)
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
### Step 2A.2: Map Changes to Guide Categories
|
|
127
|
-
|
|
128
|
-
**For each changed file**, determine which guides are affected:
|
|
129
|
-
|
|
130
|
-
| Changed File Pattern | Affected Guide Category | Example Guides |
|
|
131
|
-
|----------------------|-------------------------|----------------|
|
|
132
|
-
| `src/api/`, `routes/`, `controllers/` | API Development | api/api-patterns.md |
|
|
133
|
-
| `src/models/`, `repositories/`, `schemas/` | Data & Database | data/database-patterns.md |
|
|
134
|
-
| `src/services/`, `domain/`, `business/` | Architecture | architecture/architecture.md |
|
|
135
|
-
| `src/components/`, `ui/`, `views/` | Development Practices | development/frontend-patterns.md |
|
|
136
|
-
| `src/utils/errors.`, `exceptions/` | Development Practices | development/error-handling.md |
|
|
137
|
-
| `src/utils/logger.`, `logging/` | Development Practices | development/logging.md |
|
|
138
|
-
| `src/auth/`, `security/`, `middleware/auth` | Security | security/security-patterns.md |
|
|
139
|
-
| `tests/`, `*.test.`, `*.spec.` | Testing | testing/testing-patterns.md |
|
|
140
|
-
| `src/integrations/`, `clients/`, `adapters/` | Integrations | integration/external-integrations.md |
|
|
141
|
-
| Root directory changes (new folders) | Architecture | architecture/architecture.md |
|
|
142
|
-
|
|
143
|
-
**Assess impact**:
|
|
144
|
-
- **High impact**: Multiple files in same category changed
|
|
145
|
-
- **Low impact**: Single file changed
|
|
146
|
-
- **No impact**: Only tests changed, no pattern shifts
|
|
147
|
-
|
|
148
|
-
**List existing guides**:
|
|
149
|
-
```bash
|
|
150
|
-
find .codemie/guides -name "*.md" -type f
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
**Cross-reference**:
|
|
154
|
-
- Guide exists + impacted → Update candidate
|
|
155
|
-
- Guide exists + not impacted → Skip
|
|
156
|
-
- Guide missing + impacted → Note for user
|
|
157
|
-
|
|
158
|
-
**Present to user**:
|
|
159
|
-
```
|
|
160
|
-
📊 Change Impact Analysis
|
|
161
|
-
|
|
162
|
-
🔴 HIGH IMPACT (multiple files, pattern changes):
|
|
163
|
-
✏️ api/api-patterns.md (3 files changed)
|
|
164
|
-
✏️ security/security-patterns.md (2 files changed)
|
|
165
|
-
|
|
166
|
-
🟡 LOW IMPACT (single file, minor updates):
|
|
167
|
-
✏️ development/development-practices.md (1 file)
|
|
168
|
-
|
|
169
|
-
⏭️ SKIPPED (no pattern changes):
|
|
170
|
-
- testing/testing-patterns.md
|
|
171
|
-
- data/database-patterns.md
|
|
172
|
-
|
|
173
|
-
Proceed with selective update? (Yes / Full Audit / Cancel)
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
**Decision Point**:
|
|
177
|
-
- User selects "Yes" → Continue to Step 3A (selective update)
|
|
178
|
-
- User selects "Full Audit" → Jump to Step 2B (traditional audit)
|
|
179
|
-
- User selects "Cancel" → Exit
|
|
180
|
-
|
|
181
|
-
---
|
|
182
|
-
|
|
183
|
-
## Step 2B: Traditional Audit (For All Documentation)
|
|
184
|
-
|
|
185
|
-
**Use this workflow for non-Codemie docs or when user requests full audit**
|
|
186
|
-
|
|
187
|
-
Before reviewing documentation, understand what changed:
|
|
188
|
-
|
|
189
|
-
1. **Check recent commits**: `git log --oneline -10`
|
|
190
|
-
2. **Check current changes**: `git status` and `git diff`
|
|
191
|
-
3. **Identify impact areas**:
|
|
192
|
-
- Did architectural patterns change?
|
|
193
|
-
- Were new components/modules added?
|
|
194
|
-
- Did core approaches evolve (error handling, testing, etc.)?
|
|
195
|
-
- Were security practices updated?
|
|
196
|
-
- Did integrations or APIs change?
|
|
197
|
-
|
|
198
|
-
**Decision Point**: If changes are minor (bug fixes, typos, small refactors), documentation likely doesn't need updates. Only proceed if changes affect patterns, architecture, or critical knowledge.
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
## Step 3A: Selective Update (For Codemie Docs)
|
|
203
|
-
|
|
204
|
-
**For each guide identified in Step 2A.2**:
|
|
205
|
-
|
|
206
|
-
### Step 3A.1: Analyze Changed Code
|
|
207
|
-
|
|
208
|
-
**For files mapped to this guide**:
|
|
209
|
-
1. Read the changed files
|
|
210
|
-
2. Identify what patterns changed (new, modified, or removed)
|
|
211
|
-
3. Extract updated code examples (5-15 lines max)
|
|
212
|
-
4. Note file paths with line numbers
|
|
213
|
-
|
|
214
|
-
### Step 3A.2: Compare Current Guide vs Code
|
|
215
|
-
|
|
216
|
-
**Load current guide**:
|
|
217
|
-
```bash
|
|
218
|
-
Read .codemie/guides/[category]/[guide].md
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
**Load template** (for structural reference):
|
|
222
|
-
```bash
|
|
223
|
-
Read ${CLAUDE_PLUGIN_ROOT}/claude-templates/templates/guides/[category]/[template].md.template
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
**Check**:
|
|
227
|
-
- [ ] Are documented patterns still used?
|
|
228
|
-
- [ ] Are code examples still accurate?
|
|
229
|
-
- [ ] Are file references still valid?
|
|
230
|
-
- [ ] Are new patterns present that should be documented?
|
|
231
|
-
- [ ] Are any documented patterns now obsolete?
|
|
232
|
-
|
|
233
|
-
### Step 3A.3: Execute Selective Updates
|
|
234
|
-
|
|
235
|
-
**Determine update scope**:
|
|
236
|
-
|
|
237
|
-
| Finding | Action |
|
|
238
|
-
|---------|--------|
|
|
239
|
-
| Code example outdated | Update specific example, preserve structure |
|
|
240
|
-
| Pattern evolved | Update pattern description and example |
|
|
241
|
-
| New pattern introduced | Add new pattern section (if space allows) |
|
|
242
|
-
| Pattern removed | Remove or mark as deprecated |
|
|
243
|
-
| File path changed | Update reference path |
|
|
244
|
-
| Everything accurate | Skip update (no changes needed) |
|
|
245
|
-
|
|
246
|
-
**Update strategy**:
|
|
247
|
-
- ✅ Use Edit tool for selective updates (NOT Write)
|
|
248
|
-
- ✅ Update specific sections that changed
|
|
249
|
-
- ✅ Preserve guide structure (maintain template alignment)
|
|
250
|
-
- ✅ Keep existing examples that are still valid
|
|
251
|
-
- ✅ Update file:line references
|
|
252
|
-
- ❌ Don't rewrite entire guide
|
|
253
|
-
- ❌ Don't change structure unnecessarily
|
|
254
|
-
|
|
255
|
-
**Validate size**:
|
|
256
|
-
```bash
|
|
257
|
-
wc -l .codemie/guides/[category]/[guide].md # Must be ≤400 lines
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
If exceeded → Condense: remove redundant examples, use tables, tighten prose.
|
|
261
|
-
|
|
262
|
-
**Skip to Step 6** (validation) after updating impacted guides.
|
|
263
|
-
|
|
264
|
-
---
|
|
265
|
-
|
|
266
|
-
## Step 3B: Traditional Audit of Structured Guides
|
|
267
|
-
|
|
268
|
-
**Use for non-Codemie docs or full audit mode**
|
|
269
|
-
|
|
270
|
-
For each guide/doc file that exists:
|
|
271
|
-
|
|
272
|
-
**Review Process**:
|
|
273
|
-
1. Load the content
|
|
274
|
-
2. Compare documented patterns against actual implementation
|
|
275
|
-
3. Check if described approaches still match the codebase
|
|
276
|
-
4. Identify outdated, incorrect, or missing information
|
|
277
|
-
|
|
278
|
-
**Update Only If**:
|
|
279
|
-
- [ ] Pattern described no longer matches implementation
|
|
280
|
-
- [ ] New pattern emerged that should be documented
|
|
281
|
-
- [ ] Critical information is missing or incorrect
|
|
282
|
-
- [ ] Examples reference deleted/renamed code
|
|
283
|
-
- [ ] Security or architectural decisions changed
|
|
284
|
-
|
|
285
|
-
**Common Documentation Topics** (adapt to your project):
|
|
286
|
-
- Architecture and system design
|
|
287
|
-
- Error handling and logging patterns
|
|
288
|
-
- Testing strategies and setup
|
|
289
|
-
- Security practices
|
|
290
|
-
- API patterns and conventions
|
|
291
|
-
- Database/data patterns
|
|
292
|
-
- Development workflow
|
|
293
|
-
- Deployment and operations
|
|
294
|
-
|
|
295
|
-
---
|
|
296
|
-
|
|
297
|
-
## Step 4: Audit CLAUDE.md Files (if present)
|
|
298
|
-
|
|
299
|
-
For each CLAUDE.md file:
|
|
300
|
-
|
|
301
|
-
**Find CLAUDE.md Files**:
|
|
302
|
-
```bash
|
|
303
|
-
find . -name "CLAUDE.md" -not -path "*/node_modules/*" -not -path "*/.git/*"
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
**Review Process**:
|
|
307
|
-
1. Load current content
|
|
308
|
-
2. Compare against actual implementation in that directory
|
|
309
|
-
3. Check if file structure/organization changed
|
|
310
|
-
4. Identify outdated, incorrect, or missing information
|
|
311
|
-
|
|
312
|
-
**Update Only If**:
|
|
313
|
-
- [ ] Module purpose or responsibility changed
|
|
314
|
-
- [ ] Key architectural decisions evolved
|
|
315
|
-
- [ ] Important implementation details missing
|
|
316
|
-
- [ ] Documented patterns no longer used
|
|
317
|
-
- [ ] New gotchas or non-obvious behaviors introduced
|
|
318
|
-
|
|
319
|
-
**Typical CLAUDE.md Content** (adapt to project style):
|
|
320
|
-
- Purpose and responsibility of module
|
|
321
|
-
- Key architectural decisions
|
|
322
|
-
- Important implementation details
|
|
323
|
-
- Common patterns used
|
|
324
|
-
- Non-obvious behaviors or gotchas
|
|
325
|
-
- Integration points with other modules
|
|
326
|
-
|
|
327
|
-
---
|
|
328
|
-
|
|
329
|
-
## Step 5: Determine What Needs Updating (Traditional Mode)
|
|
330
|
-
|
|
331
|
-
Categorize findings:
|
|
332
|
-
|
|
333
|
-
**Definitely Update**:
|
|
334
|
-
- Documented pattern now incorrect
|
|
335
|
-
- Missing critical information for understanding
|
|
336
|
-
- Security or architectural approach changed
|
|
337
|
-
- Examples reference non-existent code
|
|
338
|
-
- Misleading or confusing content
|
|
339
|
-
|
|
340
|
-
**Probably Update**:
|
|
341
|
-
- New project-wide pattern should be documented
|
|
342
|
-
- Testing strategy evolved
|
|
343
|
-
- Integration points changed
|
|
344
|
-
- Important context missing
|
|
345
|
-
|
|
346
|
-
**No Update Needed**:
|
|
347
|
-
- Bug fixes that don't affect patterns
|
|
348
|
-
- Code refactoring maintaining same approach
|
|
349
|
-
- Typo fixes or variable renames
|
|
350
|
-
- Documentation already accurate
|
|
351
|
-
- Changes are self-evident from code
|
|
352
|
-
|
|
353
|
-
---
|
|
354
|
-
|
|
355
|
-
## Step 6: Execute Updates
|
|
356
|
-
|
|
357
|
-
**For Codemie Docs** (if using selective update from Step 3A):
|
|
358
|
-
- Updates already completed in Step 3A.3
|
|
359
|
-
- Skip to Step 7 (validation)
|
|
360
|
-
|
|
361
|
-
**For Traditional Audit** (if using Step 3B-5):
|
|
362
|
-
- Continue with updates below
|
|
363
|
-
|
|
364
|
-
Only modify files where changes are actually needed:
|
|
365
|
-
|
|
366
|
-
**For Structured Guides**:
|
|
367
|
-
1. Edit specific sections that are outdated
|
|
368
|
-
2. Update code examples if references changed
|
|
369
|
-
3. Add new patterns only if broadly applicable
|
|
370
|
-
4. Remove obsolete information
|
|
371
|
-
5. Keep content focused and concise
|
|
372
|
-
|
|
373
|
-
**For CLAUDE.md Files**:
|
|
374
|
-
1. Verify technical claims against current code
|
|
375
|
-
2. Update specific sections that changed
|
|
376
|
-
3. Add new critical information
|
|
377
|
-
4. Remove obsolete patterns
|
|
378
|
-
5. Ensure info is in most appropriate file
|
|
379
|
-
|
|
380
|
-
**For Codemie Guides** (if updating in traditional mode):
|
|
381
|
-
1. Maintain template structure from `${CLAUDE_PLUGIN_ROOT}/claude-templates/`
|
|
382
|
-
2. Update specific sections that are outdated
|
|
383
|
-
3. Preserve existing valid examples
|
|
384
|
-
4. Keep guides within size limits (200-400 lines)
|
|
385
|
-
5. Update file:line references if paths changed
|
|
386
|
-
|
|
387
|
-
**Content Placement**:
|
|
388
|
-
- **Broad patterns** (used across project) → Root docs or main CLAUDE.md
|
|
389
|
-
- **Component-specific** (local to one area) → Component CLAUDE.md or specific guide section
|
|
390
|
-
- **Project-wide conventions** → Root README or CLAUDE.md
|
|
391
|
-
- **Module implementation details** → Module-level CLAUDE.md
|
|
392
|
-
- **Codemie guides** → Category-specific guides in `.codemie/guides/[category]/`
|
|
393
|
-
|
|
394
|
-
---
|
|
395
|
-
|
|
396
|
-
## Step 7: Validate Changes
|
|
397
|
-
|
|
398
|
-
Before finalizing:
|
|
399
|
-
|
|
400
|
-
**Accuracy Check**:
|
|
401
|
-
- [ ] All technical claims verified against current code
|
|
402
|
-
- [ ] Examples reference existing files/functions (check with actual file paths)
|
|
403
|
-
- [ ] Patterns match actual implementation
|
|
404
|
-
- [ ] No contradictions between different docs
|
|
405
|
-
|
|
406
|
-
**For Codemie Docs** (additional checks):
|
|
407
|
-
- [ ] All file:line references are valid
|
|
408
|
-
```bash
|
|
409
|
-
# Verify referenced files exist
|
|
410
|
-
grep -o '\[.*\..*:.*\]' .codemie/guides/**/*.md | while read ref; do
|
|
411
|
-
file=$(echo $ref | cut -d: -f1 | tr -d '[]')
|
|
412
|
-
[ -f "$file" ] || echo "Missing: $file"
|
|
413
|
-
done
|
|
414
|
-
```
|
|
415
|
-
- [ ] No placeholders remain ([PLACEHOLDER], FILL IN, TODO)
|
|
416
|
-
```bash
|
|
417
|
-
grep -r '\[.*\]' .codemie/guides/ | grep -v '.git'
|
|
418
|
-
grep -r 'FILL IN\|TODO\|PLACEHOLDER' .codemie/guides/
|
|
419
|
-
```
|
|
420
|
-
- [ ] Guide structure matches template conventions
|
|
421
|
-
- [ ] Size limits maintained (≤400 lines per guide)
|
|
422
|
-
```bash
|
|
423
|
-
for guide in .codemie/guides/**/*.md; do
|
|
424
|
-
lines=$(wc -l < "$guide")
|
|
425
|
-
[ $lines -gt 400 ] && echo "⚠️ $guide exceeds 400 lines ($lines)"
|
|
426
|
-
done
|
|
427
|
-
```
|
|
428
|
-
- [ ] CLAUDE.md guide references are current (if guides added/removed)
|
|
429
|
-
|
|
430
|
-
**Relevance Check**:
|
|
431
|
-
- [ ] Information is actionable
|
|
432
|
-
- [ ] Content helps future understanding
|
|
433
|
-
- [ ] No duplicate information across files
|
|
434
|
-
- [ ] No obsolete references
|
|
435
|
-
|
|
436
|
-
**Quality Check**:
|
|
437
|
-
- [ ] Clear and concise language
|
|
438
|
-
- [ ] Examples are accurate
|
|
439
|
-
- [ ] Proper markdown formatting
|
|
440
|
-
- [ ] Links work (if any)
|
|
441
|
-
|
|
442
|
-
---
|
|
443
|
-
|
|
444
|
-
## Summary Report
|
|
445
|
-
|
|
446
|
-
After completing updates, provide a summary:
|
|
447
|
-
|
|
448
|
-
**For Selective Updates (Codemie Docs)**:
|
|
449
|
-
```markdown
|
|
450
|
-
# Documentation Refresh Complete
|
|
451
|
-
|
|
452
|
-
## Updated Guides (3)
|
|
453
|
-
|
|
454
|
-
### High Impact Updates
|
|
455
|
-
**api/api-patterns.md** ✅
|
|
456
|
-
- Updated: Validation middleware pattern
|
|
457
|
-
- Updated: Error response format examples
|
|
458
|
-
- References: 3 files updated, all verified
|
|
459
|
-
|
|
460
|
-
**security/security-patterns.md** ✅
|
|
461
|
-
- Updated: JWT token generation example
|
|
462
|
-
- References: 2 files updated, all verified
|
|
463
|
-
|
|
464
|
-
### Low Impact Updates
|
|
465
|
-
**development/development-practices.md** ✅
|
|
466
|
-
- Updated: Validation helper reference
|
|
467
|
-
- References: 1 file updated, verified
|
|
468
|
-
|
|
469
|
-
## Skipped Guides (5)
|
|
470
|
-
- testing/testing-patterns.md (no pattern changes)
|
|
471
|
-
- data/database-patterns.md (no changes)
|
|
472
|
-
- architecture/architecture.md (structure unchanged)
|
|
473
|
-
|
|
474
|
-
## Validation Status
|
|
475
|
-
- ✅ All file references verified
|
|
476
|
-
- ✅ No placeholders remain
|
|
477
|
-
- ✅ Size limits maintained
|
|
478
|
-
- ✅ Template structure preserved
|
|
479
|
-
```
|
|
480
|
-
|
|
481
|
-
**For Traditional Audit**:
|
|
482
|
-
```markdown
|
|
483
|
-
# Documentation Audit Complete
|
|
484
|
-
|
|
485
|
-
## Files Updated
|
|
486
|
-
- CLAUDE.md (updated commands section)
|
|
487
|
-
- .codemie/guides/api/api-patterns.md (new pattern added)
|
|
488
|
-
- src/services/CLAUDE.md (updated integration points)
|
|
489
|
-
|
|
490
|
-
## Validation Status
|
|
491
|
-
- ✅ All technical claims verified
|
|
492
|
-
- ✅ Examples reference existing code
|
|
493
|
-
- ✅ No contradictions found
|
|
494
|
-
- ✅ Links validated
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
---
|
|
498
|
-
|
|
499
|
-
## Key Principles
|
|
500
|
-
|
|
501
|
-
**Accuracy Over Completeness**:
|
|
502
|
-
- Better to have less documentation that's accurate
|
|
503
|
-
- Don't document what's obvious from well-written code
|
|
504
|
-
- Focus on "why" and "gotchas", not "what" (code shows "what")
|
|
505
|
-
|
|
506
|
-
**Selective Updates**:
|
|
507
|
-
- Not every commit requires documentation changes
|
|
508
|
-
- Only update when patterns or understanding actually shifts
|
|
509
|
-
- If in doubt, verify against actual implementation
|
|
510
|
-
|
|
511
|
-
**Appropriate Placement**:
|
|
512
|
-
- Put information where it's most useful
|
|
513
|
-
- Avoid duplication across files
|
|
514
|
-
- Component-specific → component docs
|
|
515
|
-
- Project-wide → root docs
|
|
516
|
-
|
|
517
|
-
**Maintainability**:
|
|
518
|
-
- Keep documentation focused
|
|
519
|
-
- Remove outdated content promptly
|
|
520
|
-
- Cross-reference related docs
|
|
521
|
-
- Use examples sparingly but effectively
|
|
522
|
-
|
|
523
|
-
---
|
|
524
|
-
|
|
525
|
-
## Decision Checklist
|
|
526
|
-
|
|
527
|
-
Before making changes, ask:
|
|
528
|
-
|
|
529
|
-
1. **Which mode applies?** (Codemie docs → Smart Mode | Other docs → Traditional)
|
|
530
|
-
2. **Is this change needed?** (Does doc mismatch implementation?)
|
|
531
|
-
3. **Is it significant?** (Will this help future understanding?)
|
|
532
|
-
4. **Where should it go?** (Most specific applicable location)
|
|
533
|
-
5. **What's the scope?** (Component-specific or project-wide?)
|
|
534
|
-
6. **Is it accurate?** (Verified against current code?)
|
|
535
|
-
7. **Is it clear?** (Would someone else understand this?)
|
|
536
|
-
|
|
537
|
-
**Smart Mode Benefits**:
|
|
538
|
-
- Faster: Only checks changed areas
|
|
539
|
-
- Targeted: Updates specific guides
|
|
540
|
-
- Efficient: Good for regular maintenance
|
|
541
|
-
|
|
542
|
-
**Traditional Mode Benefits**:
|
|
543
|
-
- Comprehensive: Reviews all docs
|
|
544
|
-
- Thorough: Catches subtle issues
|
|
545
|
-
- Complete: Good for major refactors
|
|
546
|
-
|
|
547
|
-
**If unsure**: Verify implementation first, then update documentation.
|
|
548
|
-
|
|
549
|
-
**Remember**: Documentation serves the code, not vice versa. Focus on critical, non-obvious knowledge that helps future work.
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# .claude/hooks/rtk-baseline.sh
|
|
3
|
-
# Event: SessionStart
|
|
4
|
-
# Save RTK gain baseline for session-summary.sh delta tracking
|
|
5
|
-
#
|
|
6
|
-
# This hook captures RTK's cumulative stats at session start.
|
|
7
|
-
# At session end, session-summary.sh reads this baseline, captures current stats,
|
|
8
|
-
# and computes the delta to show per-session RTK savings.
|
|
9
|
-
#
|
|
10
|
-
# Configuration:
|
|
11
|
-
# SESSION_SUMMARY_RTK=0 - Force disable (skip baseline capture)
|
|
12
|
-
# SESSION_SUMMARY_RTK=1 - Force enable
|
|
13
|
-
# (default: auto-detect if rtk is in PATH)
|
|
14
|
-
#
|
|
15
|
-
# Place in: ~/.claude/hooks/rtk-baseline.sh
|
|
16
|
-
# Register in: ~/.claude/settings.json under SessionStart event
|
|
17
|
-
|
|
18
|
-
set -euo pipefail
|
|
19
|
-
|
|
20
|
-
RTK_ENABLED="${SESSION_SUMMARY_RTK:-auto}"
|
|
21
|
-
|
|
22
|
-
# Auto-detect RTK availability
|
|
23
|
-
if [[ "$RTK_ENABLED" == "auto" ]]; then
|
|
24
|
-
command -v rtk &>/dev/null && RTK_ENABLED=1 || RTK_ENABLED=0
|
|
25
|
-
fi
|
|
26
|
-
|
|
27
|
-
# Skip if disabled or RTK not available
|
|
28
|
-
if [[ "$RTK_ENABLED" != "1" ]]; then
|
|
29
|
-
exit 0
|
|
30
|
-
fi
|
|
31
|
-
|
|
32
|
-
# Build baseline file path (must match session-summary.sh)
|
|
33
|
-
baseline_key=$(echo "${CLAUDE_PROJECT_DIR:-$(pwd)}" | tr '/' '-')
|
|
34
|
-
baseline_file="/tmp/rtk-baseline${baseline_key}.txt"
|
|
35
|
-
|
|
36
|
-
# Capture current RTK cumulative stats
|
|
37
|
-
rtk gain > "$baseline_file" 2>/dev/null || true
|
|
38
|
-
|
|
39
|
-
exit 0
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# rtk-hook-version: 3
|
|
3
|
-
# RTK Claude Code hook — rewrites commands to use rtk for token savings.
|
|
4
|
-
# Requires: rtk >= 0.23.0, jq
|
|
5
|
-
#
|
|
6
|
-
# This is a thin delegating hook: all rewrite logic lives in `rtk rewrite`,
|
|
7
|
-
# which is the single source of truth (src/discover/registry.rs).
|
|
8
|
-
# To add or change rewrite rules, edit the Rust registry — not this file.
|
|
9
|
-
#
|
|
10
|
-
# Exit code protocol for `rtk rewrite`:
|
|
11
|
-
# 0 + stdout Rewrite found, no deny/ask rule matched → auto-allow
|
|
12
|
-
# 1 No RTK equivalent → pass through unchanged
|
|
13
|
-
# 2 Deny rule matched → pass through (Claude Code native deny handles it)
|
|
14
|
-
# 3 + stdout Ask rule matched → rewrite but let Claude Code prompt the user
|
|
15
|
-
|
|
16
|
-
if ! command -v jq &>/dev/null; then
|
|
17
|
-
echo "[rtk] WARNING: jq is not installed. Hook cannot rewrite commands. Install jq: https://jqlang.github.io/jq/download/" >&2
|
|
18
|
-
exit 0
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
|
-
if ! command -v rtk &>/dev/null; then
|
|
22
|
-
echo "[rtk] WARNING: rtk is not installed or not in PATH. Hook cannot rewrite commands. Install: https://github.com/rtk-ai/rtk#installation" >&2
|
|
23
|
-
exit 0
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
# Version guard: rtk rewrite was added in 0.23.0.
|
|
27
|
-
# Older binaries: warn once and exit cleanly (no silent failure).
|
|
28
|
-
# Cache the version check to avoid spawning multiple processes on every hook call.
|
|
29
|
-
CACHE_DIR=${XDG_CACHE_HOME:-$HOME/.cache}
|
|
30
|
-
CACHE_FILE="$CACHE_DIR/rtk-hook-version-ok"
|
|
31
|
-
if [ ! -f "$CACHE_FILE" ]; then
|
|
32
|
-
RTK_VERSION_RAW=$(rtk --version 2>/dev/null)
|
|
33
|
-
RTK_VERSION=${RTK_VERSION_RAW#rtk }
|
|
34
|
-
RTK_VERSION=${RTK_VERSION%% *}
|
|
35
|
-
if [ -n "$RTK_VERSION" ]; then
|
|
36
|
-
IFS=. read -r MAJOR MINOR PATCH <<<"$RTK_VERSION"
|
|
37
|
-
# Require >= 0.23.0
|
|
38
|
-
if [ "$MAJOR" -eq 0 ] && [ "$MINOR" -lt 23 ]; then
|
|
39
|
-
echo "[rtk] WARNING: rtk $RTK_VERSION is too old (need >= 0.23.0). Upgrade: cargo install rtk" >&2
|
|
40
|
-
exit 0
|
|
41
|
-
fi
|
|
42
|
-
fi
|
|
43
|
-
mkdir -p "$CACHE_DIR" 2>/dev/null
|
|
44
|
-
touch "$CACHE_FILE" 2>/dev/null
|
|
45
|
-
fi
|
|
46
|
-
|
|
47
|
-
INPUT=$(cat)
|
|
48
|
-
CMD=$(jq -r '.tool_input.command // empty' <<<"$INPUT")
|
|
49
|
-
|
|
50
|
-
if [ -z "$CMD" ]; then
|
|
51
|
-
exit 0
|
|
52
|
-
fi
|
|
53
|
-
|
|
54
|
-
# Delegate all rewrite + permission logic to the Rust binary.
|
|
55
|
-
REWRITTEN=$(rtk rewrite "$CMD" 2>/dev/null)
|
|
56
|
-
EXIT_CODE=$?
|
|
57
|
-
|
|
58
|
-
case $EXIT_CODE in
|
|
59
|
-
0)
|
|
60
|
-
# Rewrite found, no permission rules matched — safe to auto-allow.
|
|
61
|
-
# If the output is identical, the command was already using RTK.
|
|
62
|
-
[ "$CMD" = "$REWRITTEN" ] && exit 0
|
|
63
|
-
;;
|
|
64
|
-
1)
|
|
65
|
-
# No RTK equivalent — pass through unchanged.
|
|
66
|
-
exit 0
|
|
67
|
-
;;
|
|
68
|
-
2)
|
|
69
|
-
# Deny rule matched — let Claude Code's native deny rule handle it.
|
|
70
|
-
exit 0
|
|
71
|
-
;;
|
|
72
|
-
3)
|
|
73
|
-
# Ask rule matched — rewrite the command but do NOT auto-allow so that
|
|
74
|
-
# Claude Code prompts the user for confirmation.
|
|
75
|
-
;;
|
|
76
|
-
*)
|
|
77
|
-
exit 0
|
|
78
|
-
;;
|
|
79
|
-
esac
|
|
80
|
-
|
|
81
|
-
if [ "$EXIT_CODE" -eq 3 ]; then
|
|
82
|
-
# Ask: rewrite the command, omit permissionDecision so Claude Code prompts.
|
|
83
|
-
jq -c --arg cmd "$REWRITTEN" \
|
|
84
|
-
'.tool_input.command = $cmd | {
|
|
85
|
-
"hookSpecificOutput": {
|
|
86
|
-
"hookEventName": "PreToolUse",
|
|
87
|
-
"updatedInput": .tool_input
|
|
88
|
-
}
|
|
89
|
-
}' <<<"$INPUT"
|
|
90
|
-
else
|
|
91
|
-
# Allow: rewrite the command and auto-allow.
|
|
92
|
-
jq -c --arg cmd "$REWRITTEN" \
|
|
93
|
-
'.tool_input.command = $cmd | {
|
|
94
|
-
"hookSpecificOutput": {
|
|
95
|
-
"hookEventName": "PreToolUse",
|
|
96
|
-
"permissionDecision": "allow",
|
|
97
|
-
"permissionDecisionReason": "RTK auto-rewrite",
|
|
98
|
-
"updatedInput": .tool_input
|
|
99
|
-
}
|
|
100
|
-
}' <<<"$INPUT"
|
|
101
|
-
fi
|