aui-agent-builder 0.4.16 → 0.4.17

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.
@@ -6,7 +6,16 @@
6
6
  * Usage: aui agents
7
7
  * Options:
8
8
  * --list List all agents
9
- * --create Create a new agent project
9
+ * --categories List network categories (id, key, name) for --create --category
10
+ * --create Create a new agent project (bundle-mode, exits non-zero on failure)
11
+ * --name <name> Agent name (required for non-interactive --create)
12
+ * --category <id> Category id/key/name (default: General). List ids: --categories
13
+ * --if-not-exists With --create: import the existing agent on a name conflict (409)
14
+ * --account-id <id> On --create, pins org+account (skips pickers). Required for
15
+ * non-interactive create when you have >1 account.
16
+ * --organization-id <id> On --create, pins only the org so a non-interactive create can
17
+ * resolve the account from a single-account org / the session
18
+ * instead of hanging on the org picker.
10
19
  * --switch Switch active agent (interactive: agent → version)
11
20
  * --import Import an agent from backend
12
21
  * --versions [agentId] List versions for an agent
@@ -24,9 +33,18 @@
24
33
  export interface AgentsOptions {
25
34
  list?: boolean;
26
35
  create?: boolean;
36
+ /** List the available network categories (id, key, name) and exit. */
37
+ categories?: boolean;
27
38
  full?: boolean;
28
39
  name?: string;
29
40
  category?: string;
41
+ /**
42
+ * On `--create`, when the agent name is already taken (HTTP 409), import
43
+ * the existing agent instead of failing. Recovers the parallel-create
44
+ * orphan case (provisioned server-side but never imported locally) — see
45
+ * CTS-16874. Without it, a name conflict exits non-zero.
46
+ */
47
+ ifNotExists?: boolean;
30
48
  /**
31
49
  * After `--create`, auto-import the freshly created agent's latest
32
50
  * draft into this directory. When omitted, the import targets a new
@@ -37,6 +55,13 @@ export interface AgentsOptions {
37
55
  dir?: string;
38
56
  networkId?: string;
39
57
  accountId?: string;
58
+ /**
59
+ * Organization scope for `--create`. Lets a non-interactive create skip
60
+ * the org picker without also pinning an account (CTS-16852). When only
61
+ * the org is known, the account still resolves from a single-account org,
62
+ * the session, or (interactive only) a picker.
63
+ */
64
+ organizationId?: string;
40
65
  switch?: boolean;
41
66
  import?: boolean;
42
67
  versions?: boolean | string;
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/commands/agents.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAuCH,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IAEH;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA8ED,wBAAsB,MAAM,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8CvE;AAg0ED;;;;GAIG;AACH;;;;;GAKG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9B;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,OAAO,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