@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/sdk/services/skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,OAAO,EACR,MAAM,aAAa,CAAC;AAErB,KAAK,eAAe,GAAG,UAAU,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtE,wBAAsB,UAAU,CAC9B,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,aAAa,EAAE,CAAC,CAE1B;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,0BAA0B,CAAC,CAErC;A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MAAM,GACd,OAAO,CAAC,OAAO,EAAE,CAAC,CAEpB;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,EACf,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC,OAAO,CAAC,CAElB;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,CAElB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAE9B;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,OAAO,EAAE,CAAC,CAEpB;AAED,wBAAsB,YAAY,CAChC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,OAAO,CAAC,OAAO,CAAC,CAElB;AAED,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC,CAElB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export async function listSkills(client, params) {
|
|
2
|
+
return client.skills.list(params);
|
|
3
|
+
}
|
|
4
|
+
export async function listSkillsPaginated(client, params) {
|
|
5
|
+
return client.skills.listPaginated(params);
|
|
6
|
+
}
|
|
7
|
+
export async function getSkill(client, skillId) {
|
|
8
|
+
return client.skills.get(skillId);
|
|
9
|
+
}
|
|
10
|
+
export async function createSkill(client, params) {
|
|
11
|
+
return client.skills.create(params);
|
|
12
|
+
}
|
|
13
|
+
export async function updateSkill(client, skillId, params) {
|
|
14
|
+
const existing = await client.skills.get(skillId);
|
|
15
|
+
const mergedParams = {
|
|
16
|
+
name: params.name ?? existing.name,
|
|
17
|
+
description: params.description ?? existing.description,
|
|
18
|
+
content: params.content ?? existing.content,
|
|
19
|
+
project: params.project ?? existing.project,
|
|
20
|
+
visibility: params.visibility ?? existing.visibility,
|
|
21
|
+
categories: params.categories ?? existing.categories ?? [],
|
|
22
|
+
toolkits: params.toolkits ?? existing.toolkits ?? [],
|
|
23
|
+
mcp_servers: params.mcp_servers ?? existing.mcp_servers ?? [],
|
|
24
|
+
};
|
|
25
|
+
return client.skills.update(skillId, mergedParams);
|
|
26
|
+
}
|
|
27
|
+
export async function deleteSkill(client, skillId) {
|
|
28
|
+
return client.skills.delete(skillId);
|
|
29
|
+
}
|
|
30
|
+
export async function importSkill(client, params) {
|
|
31
|
+
return client.skills.importSkill(params);
|
|
32
|
+
}
|
|
33
|
+
export async function exportSkill(client, skillId) {
|
|
34
|
+
return client.skills.export(skillId);
|
|
35
|
+
}
|
|
36
|
+
export async function attachSkillToAssistant(client, assistantId, skillId) {
|
|
37
|
+
return client.skills.attachToAssistant(assistantId, skillId);
|
|
38
|
+
}
|
|
39
|
+
export async function detachSkillFromAssistant(client, assistantId, skillId) {
|
|
40
|
+
return client.skills.detachFromAssistant(assistantId, skillId);
|
|
41
|
+
}
|
|
42
|
+
export async function getAssistantSkills(client, assistantId) {
|
|
43
|
+
return client.skills.getAssistantSkills(assistantId);
|
|
44
|
+
}
|
|
45
|
+
export async function bulkAttachSkillToAssistants(client, skillId, assistantIds) {
|
|
46
|
+
return client.skills.bulkAttachToAssistants(skillId, assistantIds);
|
|
47
|
+
}
|
|
48
|
+
export async function getSkillAssistants(client, skillId) {
|
|
49
|
+
return client.skills.getSkillAssistants(skillId);
|
|
50
|
+
}
|
|
51
|
+
export async function publishSkill(client, skillId, categories) {
|
|
52
|
+
return client.skills.publish(skillId, categories);
|
|
53
|
+
}
|
|
54
|
+
export async function unpublishSkill(client, skillId) {
|
|
55
|
+
return client.skills.unpublish(skillId);
|
|
56
|
+
}
|
|
57
|
+
export async function listSkillCategories(client) {
|
|
58
|
+
return client.skills.listCategories();
|
|
59
|
+
}
|
|
60
|
+
export async function getSkillUsers(client) {
|
|
61
|
+
return client.skills.getUsers();
|
|
62
|
+
}
|
|
63
|
+
export async function reactToSkill(client, skillId, reaction) {
|
|
64
|
+
return client.skills.react(skillId, reaction);
|
|
65
|
+
}
|
|
66
|
+
export async function removeSkillReactions(client, skillId) {
|
|
67
|
+
return client.skills.removeReactions(skillId);
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=skills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.js","sourceRoot":"","sources":["../../../../../src/cli/commands/sdk/services/skills.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,MAAqB,EACrB,MAAwB;IAExB,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,MAAqB,EACrB,MAAwB;IAExB,OAAO,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC5B,MAAqB,EACrB,OAAe;IAEf,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,MAAqB,EACrB,MAAyB;IAEzB,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,MAAqB,EACrB,OAAe,EACf,MAAyB;IAEzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAElD,MAAM,YAAY,GAAsB;QACtC,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;QAClC,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,QAAQ,CAAC,WAAW;QACvD,OAAO,EA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MAAqB,EACrB,OAAe;IAEf,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CodeMieClient, AboutUser, UserData } from "codemie-sdk";
|
|
2
|
+
export declare function getUserProfile(client: CodeMieClient): Promise<AboutUser>;
|
|
3
|
+
export declare function getUserData(client: CodeMieClient): Promise<UserData>;
|
|
4
|
+
//# sourceMappingURL=users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/sdk/services/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEtE,wBAAsB,cAAc,CAClC,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,SAAS,CAAC,CAEpB;AAED,wBAAsB,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAE1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../../../src/cli/commands/sdk/services/users.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,MAAqB;IAErB,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;AAChC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,MAAqB;IACrD,OAAO,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CodeMieClient, Workflow, WorkflowCreateParams, WorkflowUpdateParams, WorkflowListParams } from "codemie-sdk";
|
|
2
|
+
export declare function listWorkflows(client: CodeMieClient, params?: WorkflowListParams): Promise<Workflow[]>;
|
|
3
|
+
export declare function getWorkflow(client: CodeMieClient, workflowId: string): Promise<Workflow>;
|
|
4
|
+
export declare function createWorkflow(client: CodeMieClient, params: WorkflowCreateParams, yamlConfig?: string): Promise<unknown>;
|
|
5
|
+
export declare function updateWorkflow(client: CodeMieClient, workflowId: string, params: WorkflowUpdateParams, yamlConfig?: string): Promise<unknown>;
|
|
6
|
+
export declare function deleteWorkflow(client: CodeMieClient, workflowId: string): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/sdk/services/workflows.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB,wBAAsB,aAAa,CACjC,MAAM,EAAE,aAAa,EACrB,MAAM,CAAC,EAAE,kBAAkB,GAC1B,OAAO,CAAC,QAAQ,EAAE,CAAC,CAErB;AAED,wBAAsB,WAAW,CAC/B,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,QAAQ,CAAC,CAEnB;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,oBAAoB,EAC5B,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,OAAO,CAAC,CAalB;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,oBAAoB,EAC5B,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,OAAO,CAAC,CAclB;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export async function listWorkflows(client, params) {
|
|
2
|
+
return client.workflows.list(params);
|
|
3
|
+
}
|
|
4
|
+
export async function getWorkflow(client, workflowId) {
|
|
5
|
+
return client.workflows.get(workflowId);
|
|
6
|
+
}
|
|
7
|
+
export async function createWorkflow(client, params, yamlConfig) {
|
|
8
|
+
const paramsWithDefaults = {
|
|
9
|
+
...params,
|
|
10
|
+
mode: "Sequential",
|
|
11
|
+
description: params.description ?? "",
|
|
12
|
+
shared: params.shared ?? false,
|
|
13
|
+
};
|
|
14
|
+
if (yamlConfig) {
|
|
15
|
+
paramsWithDefaults.yaml_config = yamlConfig;
|
|
16
|
+
}
|
|
17
|
+
return client.workflows.create(paramsWithDefaults);
|
|
18
|
+
}
|
|
19
|
+
export async function updateWorkflow(client, workflowId, params, yamlConfig) {
|
|
20
|
+
const existing = await client.workflows.get(workflowId);
|
|
21
|
+
const mergedParams = {
|
|
22
|
+
...existing,
|
|
23
|
+
...params,
|
|
24
|
+
icon_url: params.icon_url ?? existing.icon_url ?? "",
|
|
25
|
+
};
|
|
26
|
+
if (yamlConfig) {
|
|
27
|
+
mergedParams.yaml_config = yamlConfig;
|
|
28
|
+
}
|
|
29
|
+
return client.workflows.update(workflowId, mergedParams);
|
|
30
|
+
}
|
|
31
|
+
export async function deleteWorkflow(client, workflowId) {
|
|
32
|
+
await client.workflows.delete(workflowId);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../../../../src/cli/commands/sdk/services/workflows.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAAqB,EACrB,MAA2B;IAE3B,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,MAAqB,EACrB,UAAkB;IAElB,OAAO,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAC1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CAAC;AAkDpC,wBAAgB,sBAAsB,IAAI,OAAO,CA+jBhD"}
|
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
import chalk from "chalk";
|
|
3
|
+
import ora from "ora";
|
|
4
|
+
import { readFile } from "node:fs/promises";
|
|
5
|
+
import { basename } from "node:path";
|
|
6
|
+
import { listSkills, getSkill, createSkill, updateSkill, deleteSkill, importSkill, exportSkill, attachSkillToAssistant, detachSkillFromAssistant, getAssistantSkills, bulkAttachSkillToAssistants, getSkillAssistants, publishSkill, unpublishSkill, listSkillCategories, getSkillUsers, reactToSkill, removeSkillReactions, } from "./services/skills.js";
|
|
7
|
+
import { getSdkClient, parseDataOrJsonFile, outputJson, handleSdkError, } from "./utils/cli-utils.js";
|
|
8
|
+
import { printTable, printDetail, printEmpty, printListHeader, printSuccess, optional, } from "./utils/render.js";
|
|
9
|
+
export function createSkillsSubcommand() {
|
|
10
|
+
const cmd = new Command("skills").description("Manage CodeMie skills");
|
|
11
|
+
cmd
|
|
12
|
+
.command("list")
|
|
13
|
+
.description("List skills accessible to the current user\n" +
|
|
14
|
+
"Examples:\n" +
|
|
15
|
+
" $ codemie sdk skills list\n" +
|
|
16
|
+
" $ codemie sdk skills list --page 2 --per-page 25\n" +
|
|
17
|
+
" $ codemie sdk skills list --scope marketplace --json")
|
|
18
|
+
.option("--json", "Output in JSON format")
|
|
19
|
+
.option("--page <n>", "Page number (starts at 0)", "0")
|
|
20
|
+
.option("--per-page <n>", "Results per page (1-100)", "10")
|
|
21
|
+
.option("--scope <scope>", "Scope filter: 'marketplace', 'project', or 'project_with_marketplace'")
|
|
22
|
+
.action(async (opts) => {
|
|
23
|
+
const client = await getSdkClient();
|
|
24
|
+
const spinner = ora("Fetching skills...").start();
|
|
25
|
+
try {
|
|
26
|
+
const params = {
|
|
27
|
+
page: parseInt(opts.page, 10),
|
|
28
|
+
per_page: parseInt(opts.perPage, 10),
|
|
29
|
+
};
|
|
30
|
+
if (opts.scope) {
|
|
31
|
+
params.scope = opts.scope;
|
|
32
|
+
}
|
|
33
|
+
const items = await listSkills(client, params);
|
|
34
|
+
spinner.stop();
|
|
35
|
+
if (opts.json) {
|
|
36
|
+
outputJson(items);
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (items.length === 0) {
|
|
40
|
+
printEmpty("skills");
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
printListHeader("Skills", items.length);
|
|
44
|
+
const columns = [
|
|
45
|
+
{ header: "ID", width: 40, getValue: (s) => chalk.cyan(s.id) },
|
|
46
|
+
{ header: "Name", width: 30, getValue: (s) => s.name },
|
|
47
|
+
{
|
|
48
|
+
header: "Project",
|
|
49
|
+
width: 20,
|
|
50
|
+
getValue: (s) => optional(s.project),
|
|
51
|
+
},
|
|
52
|
+
{ header: "Visibility", width: 12, getValue: (s) => s.visibility },
|
|
53
|
+
];
|
|
54
|
+
printTable(items, columns);
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
spinner.stop();
|
|
58
|
+
handleSdkError(error, "list skills");
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
cmd
|
|
62
|
+
.command("get <id>")
|
|
63
|
+
.description("Get detailed information about a specific skill")
|
|
64
|
+
.option("--json", "Output in JSON format")
|
|
65
|
+
.action(async (id, opts) => {
|
|
66
|
+
const client = await getSdkClient();
|
|
67
|
+
const spinner = ora("Fetching skill...").start();
|
|
68
|
+
try {
|
|
69
|
+
const item = await getSkill(client, id);
|
|
70
|
+
spinner.stop();
|
|
71
|
+
if (opts.json) {
|
|
72
|
+
outputJson(item);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const rows = [
|
|
76
|
+
{ label: "ID", value: chalk.cyan(item.id) },
|
|
77
|
+
{ label: "Name", value: item.name },
|
|
78
|
+
{ label: "Project", value: optional(item.project) },
|
|
79
|
+
{ label: "Visibility", value: item.visibility },
|
|
80
|
+
{ label: "Description", value: optional(item.description) },
|
|
81
|
+
{ label: "Creator", value: optional(item.created_by?.name) },
|
|
82
|
+
{ label: "Created", value: item.createdDate },
|
|
83
|
+
{ label: "Assistants", value: String(item.assistants_count) },
|
|
84
|
+
];
|
|
85
|
+
if (item.updatedDate) {
|
|
86
|
+
rows.push({ label: "Updated", value: item.updatedDate });
|
|
87
|
+
}
|
|
88
|
+
const detailItem = item;
|
|
89
|
+
if (detailItem.content) {
|
|
90
|
+
rows.push({ label: "Content", value: detailItem.content });
|
|
91
|
+
}
|
|
92
|
+
printDetail(rows);
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
spinner.stop();
|
|
96
|
+
handleSdkError(error, "get skill");
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
cmd
|
|
100
|
+
.command("create")
|
|
101
|
+
.description("Create a new skill\n" +
|
|
102
|
+
"Examples:\n" +
|
|
103
|
+
' $ codemie sdk skills create --data \'{"name":"my-skill","description":"Does X","content":"# Instructions\\n...","project":"MyProject"}\'\n' +
|
|
104
|
+
" $ codemie sdk skills create --json path/to/skill.json")
|
|
105
|
+
.option("--data <string>", "Skill configuration as inline JSON string")
|
|
106
|
+
.option("--json <path>", "Path to JSON file with skill configuration")
|
|
107
|
+
.action(async (opts) => {
|
|
108
|
+
const client = await getSdkClient();
|
|
109
|
+
const spinner = ora("Creating skill...").start();
|
|
110
|
+
try {
|
|
111
|
+
const data = await parseDataOrJsonFile(opts.data, opts.json);
|
|
112
|
+
const result = await createSkill(client, data);
|
|
113
|
+
spinner.stop();
|
|
114
|
+
printSuccess(`Skill ${chalk.cyan(result.id)} created.`);
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
spinner.stop();
|
|
118
|
+
handleSdkError(error, "create skill");
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
cmd
|
|
122
|
+
.command("update <id>")
|
|
123
|
+
.description("Update an existing skill\n" +
|
|
124
|
+
"Examples:\n" +
|
|
125
|
+
' $ codemie sdk skills update <id> --data \'{"description":"Updated description"}\'\n' +
|
|
126
|
+
" $ codemie sdk skills update <id> --json path/to/update.json")
|
|
127
|
+
.option("--data <string>", "Fields to update as inline JSON string")
|
|
128
|
+
.option("--json <path>", "Path to JSON file with fields to update")
|
|
129
|
+
.action(async (id, opts) => {
|
|
130
|
+
const client = await getSdkClient();
|
|
131
|
+
const spinner = ora("Updating skill...").start();
|
|
132
|
+
try {
|
|
133
|
+
const data = await parseDataOrJsonFile(opts.data, opts.json);
|
|
134
|
+
const result = await updateSkill(client, id, data);
|
|
135
|
+
spinner.stop();
|
|
136
|
+
printSuccess(`Skill ${chalk.cyan(result.id)} updated.`);
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
spinner.stop();
|
|
140
|
+
handleSdkError(error, "update skill");
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
cmd
|
|
144
|
+
.command("delete <id>")
|
|
145
|
+
.description("Permanently delete a skill")
|
|
146
|
+
.action(async (id) => {
|
|
147
|
+
const client = await getSdkClient();
|
|
148
|
+
const spinner = ora("Deleting skill...").start();
|
|
149
|
+
try {
|
|
150
|
+
await deleteSkill(client, id);
|
|
151
|
+
spinner.stop();
|
|
152
|
+
printSuccess(`Skill ${chalk.cyan(id)} deleted.`);
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
spinner.stop();
|
|
156
|
+
handleSdkError(error, "delete skill");
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
cmd
|
|
160
|
+
.command("import <file>")
|
|
161
|
+
.description("Import a skill from a markdown file\n" +
|
|
162
|
+
"The file must include YAML frontmatter with 'name' and 'description' fields.\n" +
|
|
163
|
+
"Examples:\n" +
|
|
164
|
+
" $ codemie sdk skills import ./my-skill.md --project MyProject\n" +
|
|
165
|
+
" $ codemie sdk skills import ./my-skill.md --project MyProject --visibility project")
|
|
166
|
+
.requiredOption("--project <name>", "Project to import the skill into")
|
|
167
|
+
.option("--visibility <visibility>", "Visibility: 'private', 'project', or 'public'")
|
|
168
|
+
.option("--json", "Output imported skill as JSON")
|
|
169
|
+
.action(async (file, opts) => {
|
|
170
|
+
const client = await getSdkClient();
|
|
171
|
+
const spinner = ora("Importing skill...").start();
|
|
172
|
+
try {
|
|
173
|
+
const content = await readFile(file);
|
|
174
|
+
const result = await importSkill(client, {
|
|
175
|
+
file_content: content.toString("base64"),
|
|
176
|
+
filename: basename(file),
|
|
177
|
+
project: opts.project,
|
|
178
|
+
...(opts.visibility ? { visibility: opts.visibility } : {}),
|
|
179
|
+
});
|
|
180
|
+
spinner.stop();
|
|
181
|
+
if (opts.json) {
|
|
182
|
+
outputJson(result);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
printSuccess(`Skill ${chalk.cyan(result.id)} imported as '${result.name}'.`);
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
spinner.stop();
|
|
189
|
+
handleSdkError(error, "import skill");
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
cmd
|
|
193
|
+
.command("export <id>")
|
|
194
|
+
.description("Export a skill as markdown content")
|
|
195
|
+
.action(async (id) => {
|
|
196
|
+
const client = await getSdkClient();
|
|
197
|
+
const spinner = ora("Exporting skill...").start();
|
|
198
|
+
try {
|
|
199
|
+
const content = await exportSkill(client, id);
|
|
200
|
+
spinner.stop();
|
|
201
|
+
console.log(content);
|
|
202
|
+
}
|
|
203
|
+
catch (error) {
|
|
204
|
+
spinner.stop();
|
|
205
|
+
handleSdkError(error, "export skill");
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
cmd
|
|
209
|
+
.command("attach <assistant-id> <skill-id>")
|
|
210
|
+
.description("Attach a skill to an assistant")
|
|
211
|
+
.action(async (assistantId, skillId) => {
|
|
212
|
+
const client = await getSdkClient();
|
|
213
|
+
const spinner = ora("Attaching skill to assistant...").start();
|
|
214
|
+
try {
|
|
215
|
+
await attachSkillToAssistant(client, assistantId, skillId);
|
|
216
|
+
spinner.stop();
|
|
217
|
+
printSuccess(`Skill ${chalk.cyan(skillId)} attached to assistant ${chalk.cyan(assistantId)}.`);
|
|
218
|
+
}
|
|
219
|
+
catch (error) {
|
|
220
|
+
spinner.stop();
|
|
221
|
+
handleSdkError(error, "attach skill");
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
cmd
|
|
225
|
+
.command("detach <assistant-id> <skill-id>")
|
|
226
|
+
.description("Detach a skill from an assistant")
|
|
227
|
+
.action(async (assistantId, skillId) => {
|
|
228
|
+
const client = await getSdkClient();
|
|
229
|
+
const spinner = ora("Detaching skill from assistant...").start();
|
|
230
|
+
try {
|
|
231
|
+
await detachSkillFromAssistant(client, assistantId, skillId);
|
|
232
|
+
spinner.stop();
|
|
233
|
+
printSuccess(`Skill ${chalk.cyan(skillId)} detached from assistant ${chalk.cyan(assistantId)}.`);
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
spinner.stop();
|
|
237
|
+
handleSdkError(error, "detach skill");
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
cmd
|
|
241
|
+
.command("list-assistant-skills <assistant-id>")
|
|
242
|
+
.description("List all skills attached to an assistant")
|
|
243
|
+
.option("--json", "Output in JSON format")
|
|
244
|
+
.action(async (assistantId, opts) => {
|
|
245
|
+
const client = await getSdkClient();
|
|
246
|
+
const spinner = ora("Fetching assistant skills...").start();
|
|
247
|
+
try {
|
|
248
|
+
const items = await getAssistantSkills(client, assistantId);
|
|
249
|
+
spinner.stop();
|
|
250
|
+
if (opts.json) {
|
|
251
|
+
outputJson(items);
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
if (items.length === 0) {
|
|
255
|
+
printEmpty("skills for this assistant");
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
printListHeader("Assistant Skills", items.length);
|
|
259
|
+
const columns = [
|
|
260
|
+
{ header: "ID", width: 40, getValue: (s) => chalk.cyan(s.id) },
|
|
261
|
+
{ header: "Name", width: 30, getValue: (s) => s.name },
|
|
262
|
+
{ header: "Visibility", width: 12, getValue: (s) => s.visibility },
|
|
263
|
+
];
|
|
264
|
+
printTable(items, columns);
|
|
265
|
+
}
|
|
266
|
+
catch (error) {
|
|
267
|
+
spinner.stop();
|
|
268
|
+
handleSdkError(error, "list assistant skills");
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
cmd
|
|
272
|
+
.command("bulk-attach <skill-id>")
|
|
273
|
+
.description("Attach a skill to multiple assistants at once")
|
|
274
|
+
.requiredOption("--assistant-ids <ids>", "Comma-separated list of assistant IDs")
|
|
275
|
+
.action(async (skillId, opts) => {
|
|
276
|
+
const client = await getSdkClient();
|
|
277
|
+
const spinner = ora("Attaching skill to assistants...").start();
|
|
278
|
+
try {
|
|
279
|
+
const assistantIds = opts.assistantIds
|
|
280
|
+
.split(",")
|
|
281
|
+
.map((id) => id.trim());
|
|
282
|
+
await bulkAttachSkillToAssistants(client, skillId, assistantIds);
|
|
283
|
+
spinner.stop();
|
|
284
|
+
printSuccess(`Skill ${chalk.cyan(skillId)} attached to ${assistantIds.length} assistant(s).`);
|
|
285
|
+
}
|
|
286
|
+
catch (error) {
|
|
287
|
+
spinner.stop();
|
|
288
|
+
handleSdkError(error, "bulk attach skill");
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
cmd
|
|
292
|
+
.command("get-assistants <skill-id>")
|
|
293
|
+
.description("List all assistants using a skill")
|
|
294
|
+
.option("--json", "Output in JSON format")
|
|
295
|
+
.action(async (skillId, opts) => {
|
|
296
|
+
const client = await getSdkClient();
|
|
297
|
+
const spinner = ora("Fetching skill assistants...").start();
|
|
298
|
+
try {
|
|
299
|
+
const items = await getSkillAssistants(client, skillId);
|
|
300
|
+
spinner.stop();
|
|
301
|
+
if (opts.json) {
|
|
302
|
+
outputJson(items);
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
if (items.length === 0) {
|
|
306
|
+
printEmpty("assistants for this skill");
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
printListHeader("Skill Assistants", items.length);
|
|
310
|
+
const columns = [
|
|
311
|
+
{
|
|
312
|
+
header: "ID",
|
|
313
|
+
width: 40,
|
|
314
|
+
getValue: (a) => chalk.cyan(typeof a === "object" && a !== null && "id" in a
|
|
315
|
+
? String(a.id)
|
|
316
|
+
: ""),
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
header: "Name",
|
|
320
|
+
width: 30,
|
|
321
|
+
getValue: (a) => typeof a === "object" && a !== null && "name" in a
|
|
322
|
+
? String(a.name)
|
|
323
|
+
: "",
|
|
324
|
+
},
|
|
325
|
+
];
|
|
326
|
+
printTable(items, columns);
|
|
327
|
+
}
|
|
328
|
+
catch (error) {
|
|
329
|
+
spinner.stop();
|
|
330
|
+
handleSdkError(error, "get skill assistants");
|
|
331
|
+
}
|
|
332
|
+
});
|
|
333
|
+
cmd
|
|
334
|
+
.command("publish <id>")
|
|
335
|
+
.description("Publish a skill to the marketplace")
|
|
336
|
+
.option("--categories <categories>", "Comma-separated list of categories (max 3)")
|
|
337
|
+
.action(async (id, opts) => {
|
|
338
|
+
const client = await getSdkClient();
|
|
339
|
+
const spinner = ora("Publishing skill...").start();
|
|
340
|
+
try {
|
|
341
|
+
const categories = opts.categories
|
|
342
|
+
? opts.categories.split(",").map((c) => c.trim())
|
|
343
|
+
: undefined;
|
|
344
|
+
await publishSkill(client, id, categories);
|
|
345
|
+
spinner.stop();
|
|
346
|
+
printSuccess(`Skill ${chalk.cyan(id)} published to marketplace.`);
|
|
347
|
+
}
|
|
348
|
+
catch (error) {
|
|
349
|
+
spinner.stop();
|
|
350
|
+
handleSdkError(error, "publish skill");
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
cmd
|
|
354
|
+
.command("unpublish <id>")
|
|
355
|
+
.description("Unpublish a skill from the marketplace")
|
|
356
|
+
.action(async (id) => {
|
|
357
|
+
const client = await getSdkClient();
|
|
358
|
+
const spinner = ora("Unpublishing skill...").start();
|
|
359
|
+
try {
|
|
360
|
+
await unpublishSkill(client, id);
|
|
361
|
+
spinner.stop();
|
|
362
|
+
printSuccess(`Skill ${chalk.cyan(id)} unpublished from marketplace.`);
|
|
363
|
+
}
|
|
364
|
+
catch (error) {
|
|
365
|
+
spinner.stop();
|
|
366
|
+
handleSdkError(error, "unpublish skill");
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
cmd
|
|
370
|
+
.command("list-categories")
|
|
371
|
+
.description("List available skill categories")
|
|
372
|
+
.option("--json", "Output in JSON format")
|
|
373
|
+
.action(async (opts) => {
|
|
374
|
+
const client = await getSdkClient();
|
|
375
|
+
const spinner = ora("Fetching skill categories...").start();
|
|
376
|
+
try {
|
|
377
|
+
const items = await listSkillCategories(client);
|
|
378
|
+
spinner.stop();
|
|
379
|
+
if (opts.json) {
|
|
380
|
+
outputJson(items);
|
|
381
|
+
return;
|
|
382
|
+
}
|
|
383
|
+
if (items.length === 0) {
|
|
384
|
+
printEmpty("skill categories");
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
printListHeader("Skill Categories", items.length);
|
|
388
|
+
const columns = [
|
|
389
|
+
{
|
|
390
|
+
header: "Value",
|
|
391
|
+
width: 36,
|
|
392
|
+
getValue: (c) => chalk.cyan(c.value),
|
|
393
|
+
},
|
|
394
|
+
{ header: "Label", width: 36, getValue: (c) => c.label },
|
|
395
|
+
{
|
|
396
|
+
header: "Description",
|
|
397
|
+
width: 40,
|
|
398
|
+
getValue: (c) => optional(c.description),
|
|
399
|
+
},
|
|
400
|
+
];
|
|
401
|
+
printTable(items, columns);
|
|
402
|
+
}
|
|
403
|
+
catch (error) {
|
|
404
|
+
spinner.stop();
|
|
405
|
+
handleSdkError(error, "list skill categories");
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
cmd
|
|
409
|
+
.command("get-users")
|
|
410
|
+
.description("Get users with access to skills")
|
|
411
|
+
.option("--json", "Output in JSON format")
|
|
412
|
+
.action(async (opts) => {
|
|
413
|
+
const client = await getSdkClient();
|
|
414
|
+
const spinner = ora("Fetching skill users...").start();
|
|
415
|
+
try {
|
|
416
|
+
const items = await getSkillUsers(client);
|
|
417
|
+
spinner.stop();
|
|
418
|
+
if (opts.json) {
|
|
419
|
+
outputJson(items);
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
if (items.length === 0) {
|
|
423
|
+
printEmpty("users");
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
printListHeader("Skill Users", items.length);
|
|
427
|
+
const columns = [
|
|
428
|
+
{
|
|
429
|
+
header: "ID",
|
|
430
|
+
width: 40,
|
|
431
|
+
getValue: (u) => chalk.cyan(typeof u === "object" && u !== null && "id" in u
|
|
432
|
+
? String(u.id)
|
|
433
|
+
: ""),
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
header: "Name",
|
|
437
|
+
width: 30,
|
|
438
|
+
getValue: (u) => typeof u === "object" && u !== null && "name" in u
|
|
439
|
+
? String(u.name)
|
|
440
|
+
: "",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
header: "Username",
|
|
444
|
+
width: 30,
|
|
445
|
+
getValue: (u) => typeof u === "object" && u !== null && "username" in u
|
|
446
|
+
? String(u.username)
|
|
447
|
+
: "",
|
|
448
|
+
},
|
|
449
|
+
];
|
|
450
|
+
printTable(items, columns);
|
|
451
|
+
}
|
|
452
|
+
catch (error) {
|
|
453
|
+
spinner.stop();
|
|
454
|
+
handleSdkError(error, "get skill users");
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
cmd
|
|
458
|
+
.command("react <id>")
|
|
459
|
+
.description("React to a skill with like or dislike")
|
|
460
|
+
.requiredOption("--reaction <reaction>", "Reaction type: 'like' or 'dislike'")
|
|
461
|
+
.action(async (id, opts) => {
|
|
462
|
+
const client = await getSdkClient();
|
|
463
|
+
const spinner = ora("Reacting to skill...").start();
|
|
464
|
+
try {
|
|
465
|
+
await reactToSkill(client, id, opts.reaction);
|
|
466
|
+
spinner.stop();
|
|
467
|
+
printSuccess(`${opts.reaction === "like" ? "Liked" : "Disliked"} skill ${chalk.cyan(id)}.`);
|
|
468
|
+
}
|
|
469
|
+
catch (error) {
|
|
470
|
+
spinner.stop();
|
|
471
|
+
handleSdkError(error, "react to skill");
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
cmd
|
|
475
|
+
.command("remove-reactions <id>")
|
|
476
|
+
.description("Remove all reactions from a skill")
|
|
477
|
+
.action(async (id) => {
|
|
478
|
+
const client = await getSdkClient();
|
|
479
|
+
const spinner = ora("Removing reactions...").start();
|
|
480
|
+
try {
|
|
481
|
+
await removeSkillReactions(client, id);
|
|
482
|
+
spinner.stop();
|
|
483
|
+
printSuccess(`Reactions removed from skill ${chalk.cyan(id)}.`);
|
|
484
|
+
}
|
|
485
|
+
catch (error) {
|
|
486
|
+
spinner.stop();
|
|
487
|
+
handleSdkError(error, "remove skill reactions");
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
return cmd;
|
|
491
|
+
}
|
|
492
|
+
//# sourceMappingURL=skills.js.map
|