@compilr-dev/cli 0.8.10 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/agent.d.ts +9 -0
  3. package/dist/agent.js +1 -0
  4. package/dist/commands-v2/handlers/project.js +88 -229
  5. package/dist/commands-v2/handlers/skill.js +10 -6
  6. package/dist/commands-v2/handlers/team.d.ts +19 -1
  7. package/dist/commands-v2/handlers/team.js +178 -3
  8. package/dist/compilr-diff-companion.vsix +0 -0
  9. package/dist/index.js +55 -3
  10. package/dist/multi-agent/agent-edit.d.ts +75 -0
  11. package/dist/multi-agent/agent-edit.js +84 -0
  12. package/dist/multi-agent/capability-loader.d.ts +15 -5
  13. package/dist/multi-agent/capability-loader.js +18 -8
  14. package/dist/multi-agent/custom-agents.d.ts +12 -0
  15. package/dist/multi-agent/custom-agents.js +22 -1
  16. package/dist/repl-helpers.d.ts +6 -1
  17. package/dist/repl-helpers.js +14 -7
  18. package/dist/repl-v2.d.ts +10 -0
  19. package/dist/repl-v2.js +43 -2
  20. package/dist/ui/overlay/impl/agent-edit-overlay-v2.d.ts +105 -0
  21. package/dist/ui/overlay/impl/agent-edit-overlay-v2.js +364 -0
  22. package/dist/ui/overlay/impl/custom-agent-form-overlay-v2.d.ts +1 -8
  23. package/dist/ui/overlay/impl/custom-agent-form-overlay-v2.js +16 -120
  24. package/dist/ui/overlay/impl/project-edit-overlay-v2.d.ts +2 -1
  25. package/dist/ui/overlay/impl/project-edit-overlay-v2.js +26 -19
  26. package/dist/ui/overlay/impl/skills-overlay-v2.d.ts +42 -2
  27. package/dist/ui/overlay/impl/skills-overlay-v2.js +238 -185
  28. package/dist/ui/overlay/impl/team-overlay-v2.d.ts +1 -2
  29. package/dist/ui/overlay/impl/team-overlay-v2.js +6 -9
  30. package/dist/ui/terminal-types.d.ts +8 -0
  31. package/package.json +2 -2
@@ -105,13 +105,6 @@ class AgentDetailScreen extends BaseScreen {
105
105
  if (isValidProfile) {
106
106
  lines.push(` ${s.muted(PROFILE_INFO[this.item.toolProfile].description)}`);
107
107
  }
108
- // Show enabled skills
109
- if (this.item.enabledSkills && this.item.enabledSkills.length > 0) {
110
- lines.push(` ${s.muted('Skills:')} ${s.secondary(this.item.enabledSkills.join(', '))}`);
111
- }
112
- else {
113
- lines.push(` ${s.muted('Skills:')} ${s.secondary('All skills enabled')}`);
114
- }
115
108
  }
116
109
  lines.push('');
117
110
  // Hints - different based on editing mode
@@ -123,7 +116,7 @@ class AgentDetailScreen extends BaseScreen {
123
116
  }
124
117
  }
125
118
  else {
126
- lines.push(` ${s.muted('Enter: switch to agent · t: edit model tier')}`);
119
+ lines.push(` ${s.muted('Enter: switch to agent · e: edit agent · t: edit model tier')}`);
127
120
  if (this.item.id !== 'default') {
128
121
  lines.push(` ${s.muted('d: remove from team · Esc: go back')}`);
129
122
  }
@@ -182,6 +175,11 @@ class AgentDetailScreen extends BaseScreen {
182
175
  return closeOverlay({ action: 'switch', agentId: this.item.id });
183
176
  }
184
177
  const char = extractPrintable(data);
178
+ if (char === 'e') {
179
+ // Open the agent editor - the command handler applies the change, because
180
+ // team.updateAgent is async and may need to replace the REPL's agent reference.
181
+ return closeOverlay({ action: 'edit', agentId: this.item.id, role: this.item.role });
182
+ }
185
183
  if (char === 't') {
186
184
  // Enter tier editing mode
187
185
  this.editingTier = true;
@@ -561,7 +559,6 @@ export class TeamOverlayV2 extends TabbedListOverlayV2 {
561
559
  isCoordinator: agent.id === team.coordinatorId,
562
560
  hasToolRestrictions: agent.toolFilter !== undefined && agent.toolFilter.length > 0,
563
561
  toolProfile: agent.toolProfile,
564
- enabledSkills: agent.enabledSkills,
565
562
  modelTier: agent.modelTier,
566
563
  modelId,
567
564
  isMember: true,
@@ -17,6 +17,14 @@ export interface AgentMessage {
17
17
  message: string;
18
18
  /** Optional: Simpler message to display to user (defaults to message) */
19
19
  displayMessage?: string;
20
+ /**
21
+ * The macro this message came from, if any.
22
+ *
23
+ * ⚠️ SET IT, OR THE AGENT IS NOT WARNED. A macro's text assumes tools; without the name the
24
+ * REPL cannot tell whether the target agent can carry it out, and the agent announces work it
25
+ * will fail partway through. See `macroToolGap` in the SDK.
26
+ */
27
+ macro?: string;
20
28
  }
21
29
  export interface TerminalUIEvents {
22
30
  submit: (input: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/cli",
3
- "version": "0.8.10",
3
+ "version": "0.9.0",
4
4
  "description": "AI-powered coding assistant CLI using @compilr-dev/agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -60,7 +60,7 @@
60
60
  "@compilr-dev/editor-core": "^0.0.3",
61
61
  "@compilr-dev/factory": "^0.1.35",
62
62
  "@compilr-dev/logger": "^0.1.0",
63
- "@compilr-dev/sdk": "^0.18.11",
63
+ "@compilr-dev/sdk": "^0.29.5",
64
64
  "@compilr-dev/ui-core": "^0.0.1",
65
65
  "@modelcontextprotocol/sdk": "^1.23.0",
66
66
  "ansi-escapes": "^7.3.0",