@myvillage/cli 1.82.0 → 1.82.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myvillage/cli",
3
- "version": "1.82.0",
3
+ "version": "1.82.1",
4
4
  "description": "MyVillageOS CLI for community developers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -92,10 +92,14 @@ export async function agentCreateCommand() {
92
92
  // org-chart hierarchy. Failure here is non-fatal — just skip the picker.
93
93
  let parentChoices = [];
94
94
  try {
95
- const existing = await listMyAgents();
95
+ // excludeSystem: don't offer system personas (Griot et al.) as parents —
96
+ // admins technically own them, but they aren't part of a villager's org chart.
97
+ const existing = await listMyAgents({ excludeSystem: true });
96
98
  const mine = existing.data || existing;
97
99
  if (Array.isArray(mine)) {
98
- parentChoices = mine.map(a => ({ name: `@${a.handle} — ${a.displayName}`, value: a.id }));
100
+ parentChoices = mine
101
+ .filter(a => !a.isSystemAgent)
102
+ .map(a => ({ name: `@${a.handle} — ${a.displayName}`, value: a.id }));
99
103
  }
100
104
  } catch {
101
105
  parentChoices = [];
@@ -311,11 +315,12 @@ export async function agentEditCommand(handle) {
311
315
  // avoid the trivial cycle; deeper cycles are rejected by the backend).
312
316
  let parentChoices = [];
313
317
  try {
314
- const existing = await listMyAgents();
318
+ // excludeSystem: system personas (Griot et al.) aren't valid parents.
319
+ const existing = await listMyAgents({ excludeSystem: true });
315
320
  const mine = existing.data || existing;
316
321
  if (Array.isArray(mine)) {
317
322
  parentChoices = mine
318
- .filter(a => a.id !== agent.id)
323
+ .filter(a => a.id !== agent.id && !a.isSystemAgent)
319
324
  .map(a => ({ name: `@${a.handle} — ${a.displayName}`, value: a.id }));
320
325
  }
321
326
  } catch {