@codemieai/code 0.0.35 → 0.0.37
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 +33 -0
- package/dist/agents/codemie-code/agent.d.ts +1 -1
- package/dist/agents/codemie-code/agent.d.ts.map +1 -1
- package/dist/agents/codemie-code/agent.js +2 -2
- package/dist/agents/codemie-code/agent.js.map +1 -1
- package/dist/agents/codemie-code/index.js +1 -1
- package/dist/agents/codemie-code/index.js.map +1 -1
- package/dist/agents/codemie-code/prompts.d.ts +1 -1
- package/dist/agents/codemie-code/prompts.d.ts.map +1 -1
- package/dist/agents/codemie-code/skills/core/SkillDiscovery.d.ts.map +1 -0
- package/dist/{skills → agents/codemie-code/skills}/core/SkillDiscovery.js +1 -1
- package/dist/agents/codemie-code/skills/core/SkillDiscovery.js.map +1 -0
- package/dist/agents/codemie-code/skills/core/SkillManager.d.ts.map +1 -0
- package/dist/{skills → agents/codemie-code/skills}/core/SkillManager.js +1 -1
- package/dist/agents/codemie-code/skills/core/SkillManager.js.map +1 -0
- package/dist/agents/codemie-code/skills/core/types.d.ts.map +1 -0
- package/dist/agents/codemie-code/skills/core/types.js.map +1 -0
- package/dist/agents/codemie-code/skills/index.d.ts.map +1 -0
- package/dist/agents/codemie-code/skills/index.js.map +1 -0
- package/dist/agents/codemie-code/skills/utils/content-loader.d.ts.map +1 -0
- package/dist/{skills → agents/codemie-code/skills}/utils/content-loader.js +1 -1
- package/dist/agents/codemie-code/skills/utils/content-loader.js.map +1 -0
- package/dist/agents/codemie-code/skills/utils/frontmatter.d.ts.map +1 -0
- package/dist/agents/codemie-code/skills/utils/frontmatter.js.map +1 -0
- package/dist/agents/codemie-code/skills/utils/pattern-matcher.d.ts.map +1 -0
- package/dist/agents/codemie-code/skills/utils/pattern-matcher.js.map +1 -0
- package/dist/agents/codemie-code/tools/assistant-invocation.d.ts.map +1 -1
- package/dist/agents/codemie-code/tools/assistant-invocation.js +2 -2
- package/dist/agents/codemie-code/tools/assistant-invocation.js.map +1 -1
- package/dist/agents/codemie-code/types.d.ts +1 -1
- package/dist/agents/codemie-code/types.d.ts.map +1 -1
- package/dist/agents/core/extension/BaseExtensionInstaller.d.ts.map +1 -1
- package/dist/agents/core/extension/BaseExtensionInstaller.js +11 -4
- package/dist/agents/core/extension/BaseExtensionInstaller.js.map +1 -1
- package/dist/agents/core/session/BaseProcessor.d.ts +22 -1
- package/dist/agents/core/session/BaseProcessor.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude-acp.plugin.d.ts +5 -0
- package/dist/agents/plugins/claude/claude-acp.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude-acp.plugin.js +12 -2
- package/dist/agents/plugins/claude/claude-acp.plugin.js.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.js +5 -1
- package/dist/agents/plugins/claude/claude.plugin.js.map +1 -1
- package/dist/agents/plugins/claude/claude.session.d.ts +5 -0
- package/dist/agents/plugins/claude/claude.session.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.session.js +101 -2
- package/dist/agents/plugins/claude/claude.session.js.map +1 -1
- package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts +0 -1
- 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 +13 -19
- package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts.map +1 -1
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js +29 -4
- package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js.map +1 -1
- package/dist/cli/commands/assistants/chat.js +9 -6
- package/dist/cli/commands/assistants/chat.js.map +1 -1
- package/dist/cli/commands/assistants/constants.d.ts +2 -6
- package/dist/cli/commands/assistants/constants.d.ts.map +1 -1
- package/dist/cli/commands/assistants/constants.js +2 -5
- package/dist/cli/commands/assistants/constants.js.map +1 -1
- package/dist/cli/commands/assistants/index.d.ts.map +1 -1
- package/dist/cli/commands/assistants/index.js +1 -11
- package/dist/cli/commands/assistants/index.js.map +1 -1
- package/dist/cli/commands/assistants/setup/configuration/actions.d.ts +30 -0
- package/dist/cli/commands/assistants/setup/configuration/actions.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/actions.js +63 -0
- package/dist/cli/commands/assistants/setup/configuration/actions.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/constants.d.ts +49 -0
- package/dist/cli/commands/assistants/setup/configuration/constants.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/constants.js +56 -0
- package/dist/cli/commands/assistants/setup/configuration/constants.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/index.d.ts +9 -0
- package/dist/cli/commands/assistants/setup/configuration/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/index.js +8 -0
- package/dist/cli/commands/assistants/setup/configuration/index.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/selection.d.ts +12 -0
- package/dist/cli/commands/assistants/setup/configuration/selection.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/selection.js +94 -0
- package/dist/cli/commands/assistants/setup/configuration/selection.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/types.d.ts +22 -0
- package/dist/cli/commands/assistants/setup/configuration/types.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/types.js +2 -0
- package/dist/cli/commands/assistants/setup/configuration/types.js.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/ui.d.ts +9 -0
- package/dist/cli/commands/assistants/setup/configuration/ui.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/configuration/ui.js +86 -0
- package/dist/cli/commands/assistants/setup/configuration/ui.js.map +1 -0
- package/dist/cli/commands/assistants/setup/constants.d.ts +26 -0
- package/dist/cli/commands/assistants/setup/constants.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/constants.js +21 -0
- package/dist/cli/commands/assistants/setup/constants.js.map +1 -0
- package/dist/cli/commands/assistants/setup/data.d.ts +30 -0
- package/dist/cli/commands/assistants/setup/data.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/data.js +125 -0
- package/dist/cli/commands/assistants/setup/data.js.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.d.ts.map +1 -0
- package/dist/cli/commands/assistants/{generators → setup/generators}/claude-agent-generator.js +6 -2
- package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts +12 -0
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js +94 -0
- package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js.map +1 -0
- package/dist/cli/commands/assistants/setup/helpers.d.ts +27 -0
- package/dist/cli/commands/assistants/setup/helpers.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/helpers.js +94 -0
- package/dist/cli/commands/assistants/setup/helpers.js.map +1 -0
- package/dist/cli/commands/assistants/setup/index.d.ts +17 -0
- package/dist/cli/commands/assistants/setup/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/index.js +193 -0
- package/dist/cli/commands/assistants/setup/index.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/actions.d.ts +47 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/actions.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/actions.js +140 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/actions.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/constants.d.ts +56 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/constants.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/constants.js +61 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/constants.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/index.d.ts +12 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/index.js +48 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/index.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.d.ts +6 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.js +90 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts +37 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.js +2 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/types.js.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.d.ts +6 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js +103 -0
- package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/actions.d.ts +31 -0
- package/dist/cli/commands/assistants/setup/selection/actions.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/actions.js +321 -0
- package/dist/cli/commands/assistants/setup/selection/actions.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/constants.d.ts +79 -0
- package/dist/cli/commands/assistants/setup/selection/constants.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/constants.js +90 -0
- package/dist/cli/commands/assistants/setup/selection/constants.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/index.d.ts +25 -0
- package/dist/cli/commands/assistants/setup/selection/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/index.js +127 -0
- package/dist/cli/commands/assistants/setup/selection/index.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts +20 -0
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js +328 -0
- package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/types.d.ts +27 -0
- package/dist/cli/commands/assistants/setup/selection/types.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/types.js +2 -0
- package/dist/cli/commands/assistants/setup/selection/types.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/ui.d.ts +11 -0
- package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/ui.js +189 -0
- package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/utils.d.ts +36 -0
- package/dist/cli/commands/assistants/setup/selection/utils.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/selection/utils.js +55 -0
- package/dist/cli/commands/assistants/setup/selection/utils.js.map +1 -0
- package/dist/cli/commands/assistants/setup/summary/index.d.ts +16 -0
- package/dist/cli/commands/assistants/setup/summary/index.d.ts.map +1 -0
- package/dist/cli/commands/assistants/setup/summary/index.js +48 -0
- package/dist/cli/commands/assistants/setup/summary/index.js.map +1 -0
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +8 -0
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/log/cleaner.d.ts +33 -0
- package/dist/cli/commands/log/cleaner.d.ts.map +1 -0
- package/dist/cli/commands/log/cleaner.js +214 -0
- package/dist/cli/commands/log/cleaner.js.map +1 -0
- package/dist/cli/commands/log/filter.d.ts +55 -0
- package/dist/cli/commands/log/filter.d.ts.map +1 -0
- package/dist/cli/commands/log/filter.js +128 -0
- package/dist/cli/commands/log/filter.js.map +1 -0
- package/dist/cli/commands/log/follower.d.ts +36 -0
- package/dist/cli/commands/log/follower.d.ts.map +1 -0
- package/dist/cli/commands/log/follower.js +151 -0
- package/dist/cli/commands/log/follower.js.map +1 -0
- package/dist/cli/commands/log/formatter.d.ts +76 -0
- package/dist/cli/commands/log/formatter.d.ts.map +1 -0
- package/dist/cli/commands/log/formatter.js +261 -0
- package/dist/cli/commands/log/formatter.js.map +1 -0
- package/dist/cli/commands/log/index.d.ts +6 -0
- package/dist/cli/commands/log/index.d.ts.map +1 -0
- package/dist/cli/commands/log/index.js +398 -0
- package/dist/cli/commands/log/index.js.map +1 -0
- package/dist/cli/commands/log/parser.d.ts +20 -0
- package/dist/cli/commands/log/parser.d.ts.map +1 -0
- package/dist/cli/commands/log/parser.js +111 -0
- package/dist/cli/commands/log/parser.js.map +1 -0
- package/dist/cli/commands/log/reader.d.ts +61 -0
- package/dist/cli/commands/log/reader.d.ts.map +1 -0
- package/dist/cli/commands/log/reader.js +327 -0
- package/dist/cli/commands/log/reader.js.map +1 -0
- package/dist/cli/commands/log/types.d.ts +100 -0
- package/dist/cli/commands/log/types.d.ts.map +1 -0
- package/dist/cli/commands/log/types.js +5 -0
- package/dist/cli/commands/log/types.js.map +1 -0
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +2 -0
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/skill.js +1 -1
- package/dist/cli/commands/skill.js.map +1 -1
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +8 -0
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/env/types.d.ts +1 -0
- package/dist/env/types.d.ts.map +1 -1
- package/dist/env/types.js.map +1 -1
- package/dist/providers/plugins/sso/session/SessionSyncer.d.ts +5 -0
- package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/SessionSyncer.js +102 -3
- package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts +0 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts.map +1 -1
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js +25 -48
- package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-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 +8 -34
- package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
- package/dist/utils/native-installer.d.ts +1 -0
- package/dist/utils/native-installer.d.ts.map +1 -1
- package/dist/utils/native-installer.js +60 -9
- package/dist/utils/native-installer.js.map +1 -1
- package/dist/utils/windows-path.d.ts +54 -0
- package/dist/utils/windows-path.d.ts.map +1 -0
- package/dist/utils/windows-path.js +347 -0
- package/dist/utils/windows-path.js.map +1 -0
- package/package.json +2 -2
- package/dist/cli/commands/assistants/generators/claude-agent-generator.d.ts.map +0 -1
- package/dist/cli/commands/assistants/generators/claude-agent-generator.js.map +0 -1
- package/dist/cli/commands/assistants/list.d.ts +0 -11
- package/dist/cli/commands/assistants/list.d.ts.map +0 -1
- package/dist/cli/commands/assistants/list.js +0 -323
- package/dist/cli/commands/assistants/list.js.map +0 -1
- package/dist/skills/core/SkillDiscovery.d.ts.map +0 -1
- package/dist/skills/core/SkillDiscovery.js.map +0 -1
- package/dist/skills/core/SkillManager.d.ts.map +0 -1
- package/dist/skills/core/SkillManager.js.map +0 -1
- package/dist/skills/core/types.d.ts.map +0 -1
- package/dist/skills/core/types.js.map +0 -1
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/utils/content-loader.d.ts.map +0 -1
- package/dist/skills/utils/content-loader.js.map +0 -1
- package/dist/skills/utils/frontmatter.d.ts.map +0 -1
- package/dist/skills/utils/frontmatter.js.map +0 -1
- package/dist/skills/utils/pattern-matcher.d.ts.map +0 -1
- package/dist/skills/utils/pattern-matcher.js.map +0 -1
- /package/dist/{skills → agents/codemie-code/skills}/core/SkillDiscovery.d.ts +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/core/SkillManager.d.ts +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/core/types.d.ts +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/core/types.js +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/index.d.ts +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/index.js +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/utils/content-loader.d.ts +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/utils/frontmatter.d.ts +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/utils/frontmatter.js +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/utils/pattern-matcher.d.ts +0 -0
- /package/dist/{skills → agents/codemie-code/skills}/utils/pattern-matcher.js +0 -0
- /package/dist/cli/commands/assistants/{generators → setup/generators}/claude-agent-generator.d.ts +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ConfigurationChoice } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration choice values
|
|
4
|
+
*/
|
|
5
|
+
export declare const CONFIGURATION_CHOICE: {
|
|
6
|
+
readonly SUBAGENTS: "subagents";
|
|
7
|
+
readonly SKILLS: "skills";
|
|
8
|
+
readonly MANUAL: "manual";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Labels for configuration choices
|
|
12
|
+
*/
|
|
13
|
+
export declare const CONFIGURATION_CHOICE_LABELS: Record<ConfigurationChoice, string>;
|
|
14
|
+
/**
|
|
15
|
+
* Descriptions for configuration choices
|
|
16
|
+
*/
|
|
17
|
+
export declare const CONFIGURATION_CHOICE_DESCRIPTIONS: Record<ConfigurationChoice, string>;
|
|
18
|
+
/**
|
|
19
|
+
* ANSI escape codes for terminal control
|
|
20
|
+
*/
|
|
21
|
+
export declare const ANSI: {
|
|
22
|
+
readonly CLEAR_SCREEN: "\u001B[2J\u001B[H";
|
|
23
|
+
readonly HIDE_CURSOR: "\u001B[?25l";
|
|
24
|
+
readonly SHOW_CURSOR: "\u001B[?25h";
|
|
25
|
+
readonly CLEAR_LINE: "\u001B[2K";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Key codes for keyboard input
|
|
29
|
+
*/
|
|
30
|
+
export declare const KEY: {
|
|
31
|
+
readonly UP: "\u001B[A";
|
|
32
|
+
readonly DOWN: "\u001B[B";
|
|
33
|
+
readonly ENTER: "\r";
|
|
34
|
+
readonly ESC: "\u001B";
|
|
35
|
+
readonly CTRL_C: "\u0003";
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* UI text strings
|
|
39
|
+
*/
|
|
40
|
+
export declare const UI_TEXT: {
|
|
41
|
+
readonly TITLE: "Configure Registration";
|
|
42
|
+
readonly SUBTITLE: "How would you like to register assistants?";
|
|
43
|
+
readonly INSTRUCTIONS: "↑↓: Navigate • Enter: Continue • Esc: Cancel";
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Keep-alive timer interval (ms)
|
|
47
|
+
*/
|
|
48
|
+
export declare const KEEP_ALIVE_INTERVAL = 60000;
|
|
49
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAIlE,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAIxE,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;CAKP,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;CAMN,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,OAAO;;;;CAIV,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAQ,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration choice values
|
|
3
|
+
*/
|
|
4
|
+
export const CONFIGURATION_CHOICE = {
|
|
5
|
+
SUBAGENTS: 'subagents',
|
|
6
|
+
SKILLS: 'skills',
|
|
7
|
+
MANUAL: 'manual',
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Labels for configuration choices
|
|
11
|
+
*/
|
|
12
|
+
export const CONFIGURATION_CHOICE_LABELS = {
|
|
13
|
+
[CONFIGURATION_CHOICE.SUBAGENTS]: 'Claude Subagents',
|
|
14
|
+
[CONFIGURATION_CHOICE.SKILLS]: 'Claude Skills',
|
|
15
|
+
[CONFIGURATION_CHOICE.MANUAL]: 'Manual Configuration',
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Descriptions for configuration choices
|
|
19
|
+
*/
|
|
20
|
+
export const CONFIGURATION_CHOICE_DESCRIPTIONS = {
|
|
21
|
+
[CONFIGURATION_CHOICE.SUBAGENTS]: 'Register all as Claude agents (@slug)',
|
|
22
|
+
[CONFIGURATION_CHOICE.SKILLS]: 'Register all as Claude skills (/slug)',
|
|
23
|
+
[CONFIGURATION_CHOICE.MANUAL]: 'Choose individually for each assistant',
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* ANSI escape codes for terminal control
|
|
27
|
+
*/
|
|
28
|
+
export const ANSI = {
|
|
29
|
+
CLEAR_SCREEN: '\x1B[2J\x1B[H',
|
|
30
|
+
HIDE_CURSOR: '\x1B[?25l',
|
|
31
|
+
SHOW_CURSOR: '\x1B[?25h',
|
|
32
|
+
CLEAR_LINE: '\x1B[2K',
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Key codes for keyboard input
|
|
36
|
+
*/
|
|
37
|
+
export const KEY = {
|
|
38
|
+
UP: '\x1B[A',
|
|
39
|
+
DOWN: '\x1B[B',
|
|
40
|
+
ENTER: '\r',
|
|
41
|
+
ESC: '\x1B',
|
|
42
|
+
CTRL_C: '\x03',
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* UI text strings
|
|
46
|
+
*/
|
|
47
|
+
export const UI_TEXT = {
|
|
48
|
+
TITLE: 'Configure Registration',
|
|
49
|
+
SUBTITLE: 'How would you like to register assistants?',
|
|
50
|
+
INSTRUCTIONS: '↑↓: Navigate • Enter: Continue • Esc: Cancel',
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Keep-alive timer interval (ms)
|
|
54
|
+
*/
|
|
55
|
+
export const KEEP_ALIVE_INTERVAL = 60000;
|
|
56
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/constants.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,SAAS,EAAE,WAAoB;IAC/B,MAAM,EAAE,QAAiB;IACzB,MAAM,EAAE,QAAiB;CAChB,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAwC;IAC/E,CAAC,oBAAoB,CAAC,SAAS,CAAC,EAAE,kBAAkB;IACpD,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,eAAe;IAC9C,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,sBAAsB;CAC5C,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAwC;IACrF,CAAC,oBAAoB,CAAC,SAAS,CAAC,EAAE,uCAAuC;IACzE,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,uCAAuC;IACtE,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,wCAAwC;CAC9D,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IACnB,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,WAAW;IACxB,UAAU,EAAE,SAAS;CACZ,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG;IAClB,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,IAAI;IACX,GAAG,EAAE,MAAM;IACX,MAAM,EAAE,MAAM;CACL,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACtB,KAAK,EAAE,wBAAwB;IAC/B,QAAQ,EAAE,4CAA4C;IACtD,YAAY,EAAE,8CAA8C;CACnD,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration Module
|
|
3
|
+
*
|
|
4
|
+
* Exports mode selection functionality
|
|
5
|
+
*/
|
|
6
|
+
export { promptModeSelection } from './selection.js';
|
|
7
|
+
export { CONFIGURATION_CHOICE } from './constants.js';
|
|
8
|
+
export type { ConfigurationChoice, ModeSelectionResult } from './types.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mode Selection Prompt
|
|
3
|
+
*
|
|
4
|
+
* First screen - user chooses between Subagents, Skills, or Manual configuration
|
|
5
|
+
*/
|
|
6
|
+
import type { ModeSelectionResult } from './types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Prompt user to select configuration mode
|
|
9
|
+
* Returns the selected choice and whether it was cancelled
|
|
10
|
+
*/
|
|
11
|
+
export declare function promptModeSelection(): Promise<ModeSelectionResult>;
|
|
12
|
+
//# sourceMappingURL=selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/selection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAsB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAe1E;;;GAGG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAmFxE"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mode Selection Prompt
|
|
3
|
+
*
|
|
4
|
+
* First screen - user chooses between Subagents, Skills, or Manual configuration
|
|
5
|
+
*/
|
|
6
|
+
import { ANSI, KEY, KEEP_ALIVE_INTERVAL, CONFIGURATION_CHOICE } from './constants.js';
|
|
7
|
+
import { renderModeSelectionUI } from './ui.js';
|
|
8
|
+
import { createModeSelectionActions } from './actions.js';
|
|
9
|
+
/**
|
|
10
|
+
* Initialize mode selection state
|
|
11
|
+
* Default selection is 'subagents'
|
|
12
|
+
*/
|
|
13
|
+
function initializeModeSelectionState() {
|
|
14
|
+
return {
|
|
15
|
+
selectedChoice: CONFIGURATION_CHOICE.SUBAGENTS, // Default to Subagents
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Prompt user to select configuration mode
|
|
20
|
+
* Returns the selected choice and whether it was cancelled
|
|
21
|
+
*/
|
|
22
|
+
export async function promptModeSelection() {
|
|
23
|
+
const state = initializeModeSelectionState();
|
|
24
|
+
return new Promise((resolve) => {
|
|
25
|
+
let keepAliveTimer = null;
|
|
26
|
+
/**
|
|
27
|
+
* Render UI to stdout
|
|
28
|
+
*/
|
|
29
|
+
function render() {
|
|
30
|
+
const output = ANSI.CLEAR_SCREEN + ANSI.HIDE_CURSOR + renderModeSelectionUI(state);
|
|
31
|
+
process.stdout.write(output);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Cleanup and restore terminal
|
|
35
|
+
*/
|
|
36
|
+
function cleanup() {
|
|
37
|
+
if (keepAliveTimer) {
|
|
38
|
+
clearInterval(keepAliveTimer);
|
|
39
|
+
keepAliveTimer = null;
|
|
40
|
+
}
|
|
41
|
+
process.stdin.setRawMode(false);
|
|
42
|
+
process.stdin.pause();
|
|
43
|
+
process.stdin.removeAllListeners('data');
|
|
44
|
+
process.stdout.write(ANSI.SHOW_CURSOR + ANSI.CLEAR_SCREEN);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Resolve promise and cleanup
|
|
48
|
+
*/
|
|
49
|
+
function stop(cancelled, back = false) {
|
|
50
|
+
cleanup();
|
|
51
|
+
resolve({
|
|
52
|
+
choice: state.selectedChoice,
|
|
53
|
+
cancelled,
|
|
54
|
+
back,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Start interactive mode
|
|
59
|
+
*/
|
|
60
|
+
function start() {
|
|
61
|
+
const actions = createModeSelectionActions(state, render, stop);
|
|
62
|
+
process.stdin.setRawMode(true);
|
|
63
|
+
process.stdin.resume();
|
|
64
|
+
process.stdin.setEncoding('utf8');
|
|
65
|
+
process.stdin.on('data', (key) => {
|
|
66
|
+
switch (key) {
|
|
67
|
+
case KEY.UP:
|
|
68
|
+
actions.handleArrowUp();
|
|
69
|
+
break;
|
|
70
|
+
case KEY.DOWN:
|
|
71
|
+
actions.handleArrowDown();
|
|
72
|
+
break;
|
|
73
|
+
case KEY.ENTER:
|
|
74
|
+
actions.handleEnter();
|
|
75
|
+
break;
|
|
76
|
+
case KEY.ESC:
|
|
77
|
+
actions.handleBack();
|
|
78
|
+
break;
|
|
79
|
+
case KEY.CTRL_C:
|
|
80
|
+
actions.handleCancel();
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
// Ignore other keys
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
// Keep-alive timer to prevent process from exiting
|
|
88
|
+
keepAliveTimer = setInterval(() => { }, KEEP_ALIVE_INTERVAL);
|
|
89
|
+
render();
|
|
90
|
+
}
|
|
91
|
+
start();
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=selection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.js","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/selection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAE1D;;;GAGG;AACH,SAAS,4BAA4B;IACpC,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UAAU,CAAC,IAAI,CAAC,CAAC;YAC/B,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;YACvB,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAElC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,GAAW,EAAE,EAAE;gBACxC,QAAQ,GAAG,EAAE,CAAC;oBACb,KAAK,GAAG,CAAC,EAAE;wBACV,OAAO,CAAC,aAAa,EAAE,CAAC;wBACxB,MAAM;oBACP,KAAK,GAAG,CAAC,IAAI;wBACZ,OAAO,CAAC,eAAe,EAAE,CAAC;wBAC1B,MAAM;oBACP,KAAK,GAAG,CAAC,KAAK;wBACb,OAAO,CAAC,WAAW,EAAE,CAAC;wBACtB,MAAM;oBACP,KAAK,GAAG,CAAC,GAAG;wBACX,OAAO,CAAC,UAAU,EAAE,CAAC;wBACrB,MAAM;oBACP,KAAK,GAAG,CAAC,MAAM;wBACd,OAAO,CAAC,YAAY,EAAE,CAAC;wBACvB,MAAM;oBACP;wBACC,oBAAoB;wBACpB,MAAM;gBACR,CAAC;YACF,CAAC,CAAC,CAAC;YAEH,mDAAmD;YACnD,cAAc,GAAG,WAAW,CAAC,GAAG,EAAE,GAAE,CAAC,EAAE,mBAAmB,CAAC,CAAC;YAE5D,MAAM,EAAE,CAAC;QACV,CAAC;QAED,KAAK,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration choice - determines flow
|
|
3
|
+
* - subagents: Bulk register all as agents
|
|
4
|
+
* - skills: Bulk register all as skills
|
|
5
|
+
* - manual: Individual configuration for each assistant
|
|
6
|
+
*/
|
|
7
|
+
export type ConfigurationChoice = 'subagents' | 'skills' | 'manual';
|
|
8
|
+
/**
|
|
9
|
+
* State for the mode selection UI
|
|
10
|
+
*/
|
|
11
|
+
export interface ModeSelectionState {
|
|
12
|
+
selectedChoice: ConfigurationChoice;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Result returned from the mode selection UI
|
|
16
|
+
*/
|
|
17
|
+
export interface ModeSelectionResult {
|
|
18
|
+
choice: ConfigurationChoice;
|
|
19
|
+
cancelled: boolean;
|
|
20
|
+
back: boolean;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,cAAc,EAAE,mBAAmB,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/ui.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAuB,MAAM,YAAY,CAAC;AAiF1E;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CAevE"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI Rendering for Mode Selection
|
|
3
|
+
*/
|
|
4
|
+
import chalk from 'chalk';
|
|
5
|
+
import { CONFIGURATION_CHOICE, CONFIGURATION_CHOICE_LABELS, CONFIGURATION_CHOICE_DESCRIPTIONS, UI_TEXT } from './constants.js';
|
|
6
|
+
import { COLOR } from '../constants.js';
|
|
7
|
+
/**
|
|
8
|
+
* Build top line (purple separator)
|
|
9
|
+
*/
|
|
10
|
+
function buildTopLine() {
|
|
11
|
+
const width = 70;
|
|
12
|
+
return chalk.rgb(COLOR.PURPLE.r, COLOR.PURPLE.g, COLOR.PURPLE.b)('─'.repeat(width));
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Build title section
|
|
16
|
+
*/
|
|
17
|
+
function buildTitle() {
|
|
18
|
+
return chalk.rgb(COLOR.PURPLE.r, COLOR.PURPLE.g, COLOR.PURPLE.b).bold(UI_TEXT.TITLE);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Build subtitle section
|
|
22
|
+
*/
|
|
23
|
+
function buildSubtitle() {
|
|
24
|
+
return chalk.dim(UI_TEXT.SUBTITLE);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Build single choice option
|
|
28
|
+
*/
|
|
29
|
+
function buildChoiceOption(choice, isSelected, isCursor) {
|
|
30
|
+
const label = CONFIGURATION_CHOICE_LABELS[choice];
|
|
31
|
+
const description = CONFIGURATION_CHOICE_DESCRIPTIONS[choice];
|
|
32
|
+
// Radio button indicator
|
|
33
|
+
const radio = isSelected
|
|
34
|
+
? chalk.rgb(COLOR.PURPLE.r, COLOR.PURPLE.g, COLOR.PURPLE.b)('●')
|
|
35
|
+
: '○';
|
|
36
|
+
// Cursor indicator
|
|
37
|
+
const cursor = isCursor
|
|
38
|
+
? chalk.rgb(COLOR.PURPLE.r, COLOR.PURPLE.g, COLOR.PURPLE.b)('› ')
|
|
39
|
+
: ' ';
|
|
40
|
+
// Label formatting
|
|
41
|
+
const formattedLabel = isCursor
|
|
42
|
+
? chalk.rgb(COLOR.PURPLE.r, COLOR.PURPLE.g, COLOR.PURPLE.b).bold(label)
|
|
43
|
+
: chalk.white(label);
|
|
44
|
+
return `${cursor}${radio} ${formattedLabel}\n ${chalk.dim(description)}`;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Build choices list
|
|
48
|
+
*/
|
|
49
|
+
function buildChoicesList(state) {
|
|
50
|
+
const choices = [
|
|
51
|
+
CONFIGURATION_CHOICE.SUBAGENTS,
|
|
52
|
+
CONFIGURATION_CHOICE.SKILLS,
|
|
53
|
+
CONFIGURATION_CHOICE.MANUAL,
|
|
54
|
+
];
|
|
55
|
+
const lines = choices.map((choice) => {
|
|
56
|
+
const isCursor = state.selectedChoice === choice;
|
|
57
|
+
const isSelected = state.selectedChoice === choice;
|
|
58
|
+
return buildChoiceOption(choice, isSelected, isCursor);
|
|
59
|
+
});
|
|
60
|
+
return lines.join('\n\n');
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Build instructions line
|
|
64
|
+
*/
|
|
65
|
+
function buildInstructions() {
|
|
66
|
+
return chalk.dim(UI_TEXT.INSTRUCTIONS);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Render full UI
|
|
70
|
+
*/
|
|
71
|
+
export function renderModeSelectionUI(state) {
|
|
72
|
+
const parts = [
|
|
73
|
+
buildTopLine(),
|
|
74
|
+
buildTitle(),
|
|
75
|
+
'',
|
|
76
|
+
buildSubtitle(),
|
|
77
|
+
'',
|
|
78
|
+
buildChoicesList(state),
|
|
79
|
+
'',
|
|
80
|
+
buildTopLine(),
|
|
81
|
+
'',
|
|
82
|
+
buildInstructions(),
|
|
83
|
+
];
|
|
84
|
+
return parts.join('\n');
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/ui.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,oBAAoB,EA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,UAAU,qBAAqB,CAAC,KAAyB;IAC9D,MAAM,KAAK,GAAG;QACb,YAAY,EAAE;QACd,UAAU,EAAE;QACZ,EAAE;QACF,aAAa,EAAE;QACf,EAAE;QACF,gBAAgB,CAAC,KAAK,CAAC;QACvB,EAAE;QACF,YAAY,EAAE;QACd,EAAE;QACF,iBAAiB,EAAE;KACnB,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared constants for setup command
|
|
3
|
+
*
|
|
4
|
+
* Constants used across selection, configuration, and summary modules
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Color palette used across all setup UI components
|
|
8
|
+
*/
|
|
9
|
+
export declare const COLOR: {
|
|
10
|
+
readonly PURPLE: {
|
|
11
|
+
readonly r: 177;
|
|
12
|
+
readonly g: 185;
|
|
13
|
+
readonly b: 249;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Action types for user interactions
|
|
18
|
+
*/
|
|
19
|
+
export declare const ACTION_TYPE: {
|
|
20
|
+
readonly CANCEL: "cancel";
|
|
21
|
+
readonly APPLY: "apply";
|
|
22
|
+
readonly UPDATE: "update";
|
|
23
|
+
readonly BACK: "back";
|
|
24
|
+
};
|
|
25
|
+
export type ActionType = typeof ACTION_TYPE[keyof typeof ACTION_TYPE];
|
|
26
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/assistants/setup/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;CAER,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared constants for setup command
|
|
3
|
+
*
|
|
4
|
+
* Constants used across selection, configuration, and summary modules
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Color palette used across all setup UI components
|
|
8
|
+
*/
|
|
9
|
+
export const COLOR = {
|
|
10
|
+
PURPLE: { r: 177, g: 185, b: 249 },
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Action types for user interactions
|
|
14
|
+
*/
|
|
15
|
+
export const ACTION_TYPE = {
|
|
16
|
+
CANCEL: 'cancel',
|
|
17
|
+
APPLY: 'apply',
|
|
18
|
+
UPDATE: 'update',
|
|
19
|
+
BACK: 'back',
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/cli/commands/assistants/setup/constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACpB,MAAM,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAW;CAClC,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACH,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data Layer
|
|
3
|
+
*
|
|
4
|
+
* Handles all data fetching for assistant selection
|
|
5
|
+
*/
|
|
6
|
+
import type { Assistant, AssistantBase, CodeMieClient } from 'codemie-sdk';
|
|
7
|
+
import type { ProviderProfile } from '../../../../env/types.js';
|
|
8
|
+
import type { SetupCommandOptions } from './index.js';
|
|
9
|
+
import { type PanelId } from './selection/constants.js';
|
|
10
|
+
export interface DataFetcherDependencies {
|
|
11
|
+
config: ProviderProfile;
|
|
12
|
+
client: CodeMieClient;
|
|
13
|
+
options: SetupCommandOptions;
|
|
14
|
+
}
|
|
15
|
+
export interface FetchAssistantsParams {
|
|
16
|
+
scope: PanelId;
|
|
17
|
+
searchQuery?: string;
|
|
18
|
+
page?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface FetchAssistantsResult {
|
|
21
|
+
data: (Assistant | AssistantBase)[];
|
|
22
|
+
total: number;
|
|
23
|
+
pages: number;
|
|
24
|
+
}
|
|
25
|
+
export interface DataFetcher {
|
|
26
|
+
fetchAssistants: (params: FetchAssistantsParams) => Promise<FetchAssistantsResult>;
|
|
27
|
+
fetchAssistantsByIds: (selectedIds: string[], existingAssistants: (Assistant | AssistantBase)[]) => Promise<(Assistant | AssistantBase)[]>;
|
|
28
|
+
}
|
|
29
|
+
export declare function createDataFetcher(deps: DataFetcherDependencies): DataFetcher;
|
|
30
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/assistants/setup/data.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAuB,aAAa,EAAE,MAAM,aAAa,CAAC;AAChG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAA+B,KAAK,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAGrF,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,CAAC,SAAS,GAAG,aAAa,CAAC,EAAE,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,eAAe,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACnF,oBAAoB,EAAE,CACpB,WAAW,EAAE,MAAM,EAAE,EACrB,kBAAkB,EAAE,CAAC,SAAS,GAAG,aAAa,CAAC,EAAE,KAC9C,OAAO,CAAC,CAAC,SAAS,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,uBAAuB,GAAG,WAAW,CA8I5E"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Data Layer
|
|
3
|
+
*
|
|
4
|
+
* Handles all data fetching for assistant selection
|
|
5
|
+
*/
|
|
6
|
+
import { PANEL_ID, API_SCOPE, CONFIG } from './selection/constants.js';
|
|
7
|
+
import { logger } from '../../../../utils/logger.js';
|
|
8
|
+
export function createDataFetcher(deps) {
|
|
9
|
+
async function fetchAssistants(params) {
|
|
10
|
+
const { scope, searchQuery = '', page = 0 } = params;
|
|
11
|
+
logger.debug('[AssistantSelection] Fetching assistants', { scope, searchQuery, page });
|
|
12
|
+
if (scope === PANEL_ID.REGISTERED) {
|
|
13
|
+
const allData = fetchRegisteredFromConfig(searchQuery);
|
|
14
|
+
const total = allData.length;
|
|
15
|
+
const pages = Math.ceil(total / CONFIG.ITEMS_PER_PAGE);
|
|
16
|
+
const startIndex = page * CONFIG.ITEMS_PER_PAGE;
|
|
17
|
+
const endIndex = startIndex + CONFIG.ITEMS_PER_PAGE;
|
|
18
|
+
const data = allData.slice(startIndex, endIndex);
|
|
19
|
+
logger.debug('[AssistantSelection] Fetched registered assistants', { count: data.length, total, pages });
|
|
20
|
+
return { data, total, pages };
|
|
21
|
+
}
|
|
22
|
+
try {
|
|
23
|
+
const filters = {
|
|
24
|
+
search: searchQuery.trim(),
|
|
25
|
+
};
|
|
26
|
+
if (scope === PANEL_ID.MARKETPLACE) {
|
|
27
|
+
filters.marketplace = null;
|
|
28
|
+
}
|
|
29
|
+
const apiParams = {
|
|
30
|
+
page,
|
|
31
|
+
per_page: CONFIG.ITEMS_PER_PAGE,
|
|
32
|
+
minimal_response: false,
|
|
33
|
+
...(scope === PANEL_ID.PROJECT && { scope: API_SCOPE.VISIBLE_TO_USER }),
|
|
34
|
+
...(scope === PANEL_ID.MARKETPLACE && { scope: API_SCOPE.MARKETPLACE }),
|
|
35
|
+
filters
|
|
36
|
+
};
|
|
37
|
+
logger.debug('[AssistantSelection] Full API request params', {
|
|
38
|
+
scope,
|
|
39
|
+
apiParams: JSON.stringify(apiParams, null, 2)
|
|
40
|
+
});
|
|
41
|
+
const response = await deps.client.assistants.listPaginated(apiParams);
|
|
42
|
+
logger.debug('[AssistantSelection] Full raw API response', {
|
|
43
|
+
scope,
|
|
44
|
+
response: JSON.stringify(response, null, 2)
|
|
45
|
+
});
|
|
46
|
+
logger.debug('[AssistantSelection] Processed response', {
|
|
47
|
+
dataCount: response.data.length,
|
|
48
|
+
paginationTotal: response.pagination.total,
|
|
49
|
+
paginationPages: response.pagination.pages,
|
|
50
|
+
scope
|
|
51
|
+
});
|
|
52
|
+
return {
|
|
53
|
+
data: response.data,
|
|
54
|
+
total: response.pagination.total,
|
|
55
|
+
pages: response.pagination.pages
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
throw error instanceof Error ? error : new Error(`Failed to fetch ${scope} assistants: ${error}`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function fetchRegisteredFromConfig(searchQuery) {
|
|
63
|
+
const registered = deps.config.codemieAssistants || [];
|
|
64
|
+
let assistants = registered.map(asst => ({
|
|
65
|
+
id: asst.id,
|
|
66
|
+
name: asst.name,
|
|
67
|
+
description: asst.description || '',
|
|
68
|
+
slug: asst.slug,
|
|
69
|
+
project: asst.project || ''
|
|
70
|
+
}));
|
|
71
|
+
if (searchQuery.trim()) {
|
|
72
|
+
const lowerQuery = searchQuery.toLowerCase();
|
|
73
|
+
assistants = assistants.filter(assistant => {
|
|
74
|
+
const project = ('project' in assistant ? assistant.project : '');
|
|
75
|
+
const slug = ('slug' in assistant ? assistant.slug : '');
|
|
76
|
+
return (assistant.name.toLowerCase().includes(lowerQuery) ||
|
|
77
|
+
assistant.description?.toLowerCase().includes(lowerQuery) ||
|
|
78
|
+
project.toLowerCase().includes(lowerQuery) ||
|
|
79
|
+
slug.toLowerCase().includes(lowerQuery));
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
return assistants;
|
|
83
|
+
}
|
|
84
|
+
async function fetchAssistantsByIds(selectedIds, existingAssistants) {
|
|
85
|
+
const existingMap = new Map(existingAssistants.map(a => [a.id, a]));
|
|
86
|
+
const idsToFetch = [];
|
|
87
|
+
// Identify which IDs need to be fetched
|
|
88
|
+
for (const id of selectedIds) {
|
|
89
|
+
if (!existingMap.has(id)) {
|
|
90
|
+
idsToFetch.push(id);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
// Fetch missing assistants
|
|
94
|
+
if (idsToFetch.length > 0) {
|
|
95
|
+
logger.debug('[AssistantSetup] Fetching missing assistant details', {
|
|
96
|
+
count: idsToFetch.length,
|
|
97
|
+
ids: idsToFetch
|
|
98
|
+
});
|
|
99
|
+
for (const id of idsToFetch) {
|
|
100
|
+
try {
|
|
101
|
+
const assistant = await deps.client.assistants.get(id);
|
|
102
|
+
existingMap.set(id, assistant);
|
|
103
|
+
logger.debug('[AssistantSetup] Fetched assistant', { id, name: assistant.name });
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
logger.error('[AssistantSetup] Failed to fetch assistant', { id, error });
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// Build result in requested order
|
|
111
|
+
const result = [];
|
|
112
|
+
for (const id of selectedIds) {
|
|
113
|
+
const assistant = existingMap.get(id);
|
|
114
|
+
if (assistant) {
|
|
115
|
+
result.push(assistant);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return result;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
fetchAssistants,
|
|
122
|
+
fetchAssistantsByIds
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../../src/cli/commands/assistants/setup/data.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAgB,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AA4B3C,MAAM,UAAU,iBAAiB,CAAC,IAA6B;IAC7D,KAAK,UAAU,eAAe,CAAC,MAA6B;QAC1D,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,EAAE,EAAE,IAAI,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC;QAErD,MAAM,CAAC,KAAK,CAAC,0CAA0C,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;QAEvF,IAAI,KAAK,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC;YAClC,MAAM,OAAO,GAAG,yBAAyB,CAAC,WAAW,CAAC,CAAC;YACvD,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;YAC7B,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;YAEvD,MAAM,UAAU,GAAG,I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,CAAC,MAAM;gBACxB,GAAG,EAAE,UAAU;aAChB,CAAC,CAAC;YAEH,KAAK,MAAM,EAAE,IAAI,UAAU,EAAE,CAAC;gBAC5B,IAAI,CAAC;oBACH,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oBACvD,WAAW,CAAC,GAAG,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;oBAC/B,MAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;gBACnF,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,MAAM,CAAC,KAAK,CAAC,4CAA4C,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC5E,CAAC;YACH,CAAC;QACH,CAAC;QAED,kCAAkC;QAClC,MAAM,MAAM,GAAkC,EAAE,CAAC;QACjD,KAAK,MAAM,EAAE,IAAI,WAAW,EAAE,CAAC;YAC7B,MAAM,SAAS,GAAG,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACtC,IAAI,SAAS,EAAE,CAAC;gBACd,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO;QACL,eAAe;QACf,oBAAoB;KACrB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-agent-generator.d.ts","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/generators/claude-agent-generator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAezE;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAmCxE;AAWD;;;GAGG;AACH,wBAAsB,sBAAsB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBhF;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAe1E"}
|