@codemieai/code 0.0.36 → 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.
Files changed (203) hide show
  1. package/README.md +33 -0
  2. package/dist/agents/codemie-code/tools/assistant-invocation.d.ts.map +1 -1
  3. package/dist/agents/codemie-code/tools/assistant-invocation.js +2 -2
  4. package/dist/agents/codemie-code/tools/assistant-invocation.js.map +1 -1
  5. package/dist/agents/core/extension/BaseExtensionInstaller.d.ts.map +1 -1
  6. package/dist/agents/core/extension/BaseExtensionInstaller.js +11 -4
  7. package/dist/agents/core/extension/BaseExtensionInstaller.js.map +1 -1
  8. package/dist/agents/core/session/BaseProcessor.d.ts +22 -1
  9. package/dist/agents/core/session/BaseProcessor.d.ts.map +1 -1
  10. package/dist/agents/plugins/claude/claude-acp.plugin.d.ts +5 -0
  11. package/dist/agents/plugins/claude/claude-acp.plugin.d.ts.map +1 -1
  12. package/dist/agents/plugins/claude/claude-acp.plugin.js +12 -2
  13. package/dist/agents/plugins/claude/claude-acp.plugin.js.map +1 -1
  14. package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -1
  15. package/dist/agents/plugins/claude/claude.plugin.js +4 -0
  16. package/dist/agents/plugins/claude/claude.plugin.js.map +1 -1
  17. package/dist/agents/plugins/claude/claude.session.d.ts +5 -0
  18. package/dist/agents/plugins/claude/claude.session.d.ts.map +1 -1
  19. package/dist/agents/plugins/claude/claude.session.js +101 -2
  20. package/dist/agents/plugins/claude/claude.session.js.map +1 -1
  21. package/dist/agents/plugins/claude/plugin/.claude-plugin/plugin.json +1 -1
  22. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts +0 -1
  23. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.d.ts.map +1 -1
  24. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js +13 -19
  25. package/dist/agents/plugins/claude/session/processors/claude.conversations-processor.js.map +1 -1
  26. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.d.ts.map +1 -1
  27. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js +29 -4
  28. package/dist/agents/plugins/claude/session/processors/claude.metrics-processor.js.map +1 -1
  29. package/dist/cli/commands/assistants/chat.js +9 -6
  30. package/dist/cli/commands/assistants/chat.js.map +1 -1
  31. package/dist/cli/commands/assistants/constants.d.ts +2 -6
  32. package/dist/cli/commands/assistants/constants.d.ts.map +1 -1
  33. package/dist/cli/commands/assistants/constants.js +2 -5
  34. package/dist/cli/commands/assistants/constants.js.map +1 -1
  35. package/dist/cli/commands/assistants/index.d.ts.map +1 -1
  36. package/dist/cli/commands/assistants/index.js +1 -11
  37. package/dist/cli/commands/assistants/index.js.map +1 -1
  38. package/dist/cli/commands/assistants/setup/configuration/actions.d.ts +30 -0
  39. package/dist/cli/commands/assistants/setup/configuration/actions.d.ts.map +1 -0
  40. package/dist/cli/commands/assistants/setup/configuration/actions.js +63 -0
  41. package/dist/cli/commands/assistants/setup/configuration/actions.js.map +1 -0
  42. package/dist/cli/commands/assistants/setup/configuration/constants.d.ts +49 -0
  43. package/dist/cli/commands/assistants/setup/configuration/constants.d.ts.map +1 -0
  44. package/dist/cli/commands/assistants/setup/configuration/constants.js +56 -0
  45. package/dist/cli/commands/assistants/setup/configuration/constants.js.map +1 -0
  46. package/dist/cli/commands/assistants/setup/configuration/index.d.ts +9 -0
  47. package/dist/cli/commands/assistants/setup/configuration/index.d.ts.map +1 -0
  48. package/dist/cli/commands/assistants/setup/configuration/index.js +8 -0
  49. package/dist/cli/commands/assistants/setup/configuration/index.js.map +1 -0
  50. package/dist/cli/commands/assistants/setup/configuration/selection.d.ts +12 -0
  51. package/dist/cli/commands/assistants/setup/configuration/selection.d.ts.map +1 -0
  52. package/dist/cli/commands/assistants/setup/configuration/selection.js +94 -0
  53. package/dist/cli/commands/assistants/setup/configuration/selection.js.map +1 -0
  54. package/dist/cli/commands/assistants/setup/configuration/types.d.ts +22 -0
  55. package/dist/cli/commands/assistants/setup/configuration/types.d.ts.map +1 -0
  56. package/dist/cli/commands/assistants/setup/configuration/types.js +2 -0
  57. package/dist/cli/commands/assistants/setup/configuration/types.js.map +1 -0
  58. package/dist/cli/commands/assistants/setup/configuration/ui.d.ts +9 -0
  59. package/dist/cli/commands/assistants/setup/configuration/ui.d.ts.map +1 -0
  60. package/dist/cli/commands/assistants/setup/configuration/ui.js +86 -0
  61. package/dist/cli/commands/assistants/setup/configuration/ui.js.map +1 -0
  62. package/dist/cli/commands/assistants/setup/constants.d.ts +26 -0
  63. package/dist/cli/commands/assistants/setup/constants.d.ts.map +1 -0
  64. package/dist/cli/commands/assistants/setup/constants.js +21 -0
  65. package/dist/cli/commands/assistants/setup/constants.js.map +1 -0
  66. package/dist/cli/commands/assistants/setup/data.d.ts +30 -0
  67. package/dist/cli/commands/assistants/setup/data.d.ts.map +1 -0
  68. package/dist/cli/commands/assistants/setup/data.js +125 -0
  69. package/dist/cli/commands/assistants/setup/data.js.map +1 -0
  70. package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.d.ts.map +1 -0
  71. package/dist/cli/commands/assistants/{generators → setup/generators}/claude-agent-generator.js +6 -2
  72. package/dist/cli/commands/assistants/setup/generators/claude-agent-generator.js.map +1 -0
  73. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts +12 -0
  74. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.d.ts.map +1 -0
  75. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js +94 -0
  76. package/dist/cli/commands/assistants/setup/generators/claude-skill-generator.js.map +1 -0
  77. package/dist/cli/commands/assistants/setup/helpers.d.ts +27 -0
  78. package/dist/cli/commands/assistants/setup/helpers.d.ts.map +1 -0
  79. package/dist/cli/commands/assistants/setup/helpers.js +94 -0
  80. package/dist/cli/commands/assistants/setup/helpers.js.map +1 -0
  81. package/dist/cli/commands/assistants/setup/index.d.ts +17 -0
  82. package/dist/cli/commands/assistants/setup/index.d.ts.map +1 -0
  83. package/dist/cli/commands/assistants/setup/index.js +193 -0
  84. package/dist/cli/commands/assistants/setup/index.js.map +1 -0
  85. package/dist/cli/commands/assistants/setup/manualConfiguration/actions.d.ts +47 -0
  86. package/dist/cli/commands/assistants/setup/manualConfiguration/actions.d.ts.map +1 -0
  87. package/dist/cli/commands/assistants/setup/manualConfiguration/actions.js +140 -0
  88. package/dist/cli/commands/assistants/setup/manualConfiguration/actions.js.map +1 -0
  89. package/dist/cli/commands/assistants/setup/manualConfiguration/constants.d.ts +56 -0
  90. package/dist/cli/commands/assistants/setup/manualConfiguration/constants.d.ts.map +1 -0
  91. package/dist/cli/commands/assistants/setup/manualConfiguration/constants.js +61 -0
  92. package/dist/cli/commands/assistants/setup/manualConfiguration/constants.js.map +1 -0
  93. package/dist/cli/commands/assistants/setup/manualConfiguration/index.d.ts +12 -0
  94. package/dist/cli/commands/assistants/setup/manualConfiguration/index.d.ts.map +1 -0
  95. package/dist/cli/commands/assistants/setup/manualConfiguration/index.js +48 -0
  96. package/dist/cli/commands/assistants/setup/manualConfiguration/index.js.map +1 -0
  97. package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.d.ts +6 -0
  98. package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.d.ts.map +1 -0
  99. package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.js +90 -0
  100. package/dist/cli/commands/assistants/setup/manualConfiguration/interactive-prompt.js.map +1 -0
  101. package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts +37 -0
  102. package/dist/cli/commands/assistants/setup/manualConfiguration/types.d.ts.map +1 -0
  103. package/dist/cli/commands/assistants/setup/manualConfiguration/types.js +2 -0
  104. package/dist/cli/commands/assistants/setup/manualConfiguration/types.js.map +1 -0
  105. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.d.ts +6 -0
  106. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.d.ts.map +1 -0
  107. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js +103 -0
  108. package/dist/cli/commands/assistants/setup/manualConfiguration/ui.js.map +1 -0
  109. package/dist/cli/commands/assistants/setup/selection/actions.d.ts +31 -0
  110. package/dist/cli/commands/assistants/setup/selection/actions.d.ts.map +1 -0
  111. package/dist/cli/commands/assistants/setup/selection/actions.js +321 -0
  112. package/dist/cli/commands/assistants/setup/selection/actions.js.map +1 -0
  113. package/dist/cli/commands/assistants/setup/selection/constants.d.ts +79 -0
  114. package/dist/cli/commands/assistants/setup/selection/constants.d.ts.map +1 -0
  115. package/dist/cli/commands/assistants/setup/selection/constants.js +90 -0
  116. package/dist/cli/commands/assistants/setup/selection/constants.js.map +1 -0
  117. package/dist/cli/commands/assistants/setup/selection/index.d.ts +25 -0
  118. package/dist/cli/commands/assistants/setup/selection/index.d.ts.map +1 -0
  119. package/dist/cli/commands/assistants/setup/selection/index.js +127 -0
  120. package/dist/cli/commands/assistants/setup/selection/index.js.map +1 -0
  121. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts +20 -0
  122. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.d.ts.map +1 -0
  123. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js +328 -0
  124. package/dist/cli/commands/assistants/setup/selection/interactive-prompt.js.map +1 -0
  125. package/dist/cli/commands/assistants/setup/selection/types.d.ts +27 -0
  126. package/dist/cli/commands/assistants/setup/selection/types.d.ts.map +1 -0
  127. package/dist/cli/commands/assistants/setup/selection/types.js +2 -0
  128. package/dist/cli/commands/assistants/setup/selection/types.js.map +1 -0
  129. package/dist/cli/commands/assistants/setup/selection/ui.d.ts +11 -0
  130. package/dist/cli/commands/assistants/setup/selection/ui.d.ts.map +1 -0
  131. package/dist/cli/commands/assistants/setup/selection/ui.js +189 -0
  132. package/dist/cli/commands/assistants/setup/selection/ui.js.map +1 -0
  133. package/dist/cli/commands/assistants/setup/selection/utils.d.ts +36 -0
  134. package/dist/cli/commands/assistants/setup/selection/utils.d.ts.map +1 -0
  135. package/dist/cli/commands/assistants/setup/selection/utils.js +55 -0
  136. package/dist/cli/commands/assistants/setup/selection/utils.js.map +1 -0
  137. package/dist/cli/commands/assistants/setup/summary/index.d.ts +16 -0
  138. package/dist/cli/commands/assistants/setup/summary/index.d.ts.map +1 -0
  139. package/dist/cli/commands/assistants/setup/summary/index.js +48 -0
  140. package/dist/cli/commands/assistants/setup/summary/index.js.map +1 -0
  141. package/dist/cli/commands/log/cleaner.d.ts +33 -0
  142. package/dist/cli/commands/log/cleaner.d.ts.map +1 -0
  143. package/dist/cli/commands/log/cleaner.js +214 -0
  144. package/dist/cli/commands/log/cleaner.js.map +1 -0
  145. package/dist/cli/commands/log/filter.d.ts +55 -0
  146. package/dist/cli/commands/log/filter.d.ts.map +1 -0
  147. package/dist/cli/commands/log/filter.js +128 -0
  148. package/dist/cli/commands/log/filter.js.map +1 -0
  149. package/dist/cli/commands/log/follower.d.ts +36 -0
  150. package/dist/cli/commands/log/follower.d.ts.map +1 -0
  151. package/dist/cli/commands/log/follower.js +151 -0
  152. package/dist/cli/commands/log/follower.js.map +1 -0
  153. package/dist/cli/commands/log/formatter.d.ts +76 -0
  154. package/dist/cli/commands/log/formatter.d.ts.map +1 -0
  155. package/dist/cli/commands/log/formatter.js +261 -0
  156. package/dist/cli/commands/log/formatter.js.map +1 -0
  157. package/dist/cli/commands/log/index.d.ts +6 -0
  158. package/dist/cli/commands/log/index.d.ts.map +1 -0
  159. package/dist/cli/commands/log/index.js +398 -0
  160. package/dist/cli/commands/log/index.js.map +1 -0
  161. package/dist/cli/commands/log/parser.d.ts +20 -0
  162. package/dist/cli/commands/log/parser.d.ts.map +1 -0
  163. package/dist/cli/commands/log/parser.js +111 -0
  164. package/dist/cli/commands/log/parser.js.map +1 -0
  165. package/dist/cli/commands/log/reader.d.ts +61 -0
  166. package/dist/cli/commands/log/reader.d.ts.map +1 -0
  167. package/dist/cli/commands/log/reader.js +327 -0
  168. package/dist/cli/commands/log/reader.js.map +1 -0
  169. package/dist/cli/commands/log/types.d.ts +100 -0
  170. package/dist/cli/commands/log/types.d.ts.map +1 -0
  171. package/dist/cli/commands/log/types.js +5 -0
  172. package/dist/cli/commands/log/types.js.map +1 -0
  173. package/dist/cli/commands/setup.d.ts.map +1 -1
  174. package/dist/cli/commands/setup.js +2 -0
  175. package/dist/cli/commands/setup.js.map +1 -1
  176. package/dist/cli/index.js +2 -0
  177. package/dist/cli/index.js.map +1 -1
  178. package/dist/env/types.d.ts +1 -0
  179. package/dist/env/types.d.ts.map +1 -1
  180. package/dist/env/types.js.map +1 -1
  181. package/dist/providers/plugins/sso/session/SessionSyncer.d.ts +5 -0
  182. package/dist/providers/plugins/sso/session/SessionSyncer.d.ts.map +1 -1
  183. package/dist/providers/plugins/sso/session/SessionSyncer.js +102 -3
  184. package/dist/providers/plugins/sso/session/SessionSyncer.js.map +1 -1
  185. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts +0 -1
  186. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.d.ts.map +1 -1
  187. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js +25 -48
  188. package/dist/providers/plugins/sso/session/processors/conversations/conversation-sync-processor.js.map +1 -1
  189. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.d.ts.map +1 -1
  190. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js +8 -34
  191. package/dist/providers/plugins/sso/session/processors/metrics/metrics-sync-processor.js.map +1 -1
  192. package/dist/utils/native-installer.d.ts +1 -0
  193. package/dist/utils/native-installer.d.ts.map +1 -1
  194. package/dist/utils/native-installer.js +21 -7
  195. package/dist/utils/native-installer.js.map +1 -1
  196. package/package.json +2 -2
  197. package/dist/cli/commands/assistants/generators/claude-agent-generator.d.ts.map +0 -1
  198. package/dist/cli/commands/assistants/generators/claude-agent-generator.js.map +0 -1
  199. package/dist/cli/commands/assistants/list.d.ts +0 -11
  200. package/dist/cli/commands/assistants/list.d.ts.map +0 -1
  201. package/dist/cli/commands/assistants/list.js +0 -323
  202. package/dist/cli/commands/assistants/list.js.map +0 -1
  203. /package/dist/cli/commands/assistants/{generators → setup/generators}/claude-agent-generator.d.ts +0 -0
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Action Handlers for Mode Selection
3
+ */
4
+ import { CONFIGURATION_CHOICE } from './constants.js';
5
+ /**
6
+ * Cycle through configuration choices
7
+ */
8
+ function cycleChoice(currentChoice, direction) {
9
+ const choices = [
10
+ CONFIGURATION_CHOICE.SUBAGENTS,
11
+ CONFIGURATION_CHOICE.SKILLS,
12
+ CONFIGURATION_CHOICE.MANUAL,
13
+ ];
14
+ const currentIndex = choices.indexOf(currentChoice);
15
+ if (direction === 'up') {
16
+ const nextIndex = currentIndex > 0 ? currentIndex - 1 : currentIndex;
17
+ return choices[nextIndex];
18
+ }
19
+ else {
20
+ const nextIndex = currentIndex < choices.length - 1 ? currentIndex + 1 : currentIndex;
21
+ return choices[nextIndex];
22
+ }
23
+ }
24
+ /**
25
+ * Create action handlers with closure over dependencies
26
+ */
27
+ export function createModeSelectionActions(state, render, resolve) {
28
+ return {
29
+ /**
30
+ * Handle up arrow
31
+ */
32
+ handleArrowUp() {
33
+ state.selectedChoice = cycleChoice(state.selectedChoice, 'up');
34
+ render();
35
+ },
36
+ /**
37
+ * Handle down arrow
38
+ */
39
+ handleArrowDown() {
40
+ state.selectedChoice = cycleChoice(state.selectedChoice, 'down');
41
+ render();
42
+ },
43
+ /**
44
+ * Handle enter key - confirm selection
45
+ */
46
+ handleEnter() {
47
+ resolve(false, false);
48
+ },
49
+ /**
50
+ * Handle back (Esc) - go back to selection
51
+ */
52
+ handleBack() {
53
+ resolve(false, true);
54
+ },
55
+ /**
56
+ * Handle cancel (Ctrl+C)
57
+ */
58
+ handleCancel() {
59
+ resolve(true, false);
60
+ },
61
+ };
62
+ }
63
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/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AAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACtB,CAAC;QAED;;WAEG;QACH,YAAY;YACX,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACtB,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -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,8 @@
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
+ //# sourceMappingURL=index.js.map
@@ -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/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ines 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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../src/cli/commands/assistants/setup/configuration/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * UI Rendering for Mode Selection
3
+ */
4
+ import type { ModeSelectionState } from './types.js';
5
+ /**
6
+ * Render full UI
7
+ */
8
+ export declare function renderModeSelectionUI(state: ModeSelectionState): string;
9
+ //# sourceMappingURL=ui.d.ts.map
@@ -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,EAAE,2BAA2B,EAAE,iCAAiC,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC/H,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC;;GAEG;AACH,SAAS,YAAY;IACpB,MAAM,KAAK,GAAG,EAAE,CAAC;IACjB,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CA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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"}