grok-bot-cli 0.7.0 → 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.
@@ -13474,6 +13474,14 @@ const agentSummarySchema = zod__rspack_import_3/* .object */.Ikc({
13474
13474
  notifyOnAgentUpdates: zod__rspack_import_3/* .boolean */.zMY().optional(),
13475
13475
  title: zod__rspack_import_3/* .string */.YjP().optional()
13476
13476
  }).strict();
13477
+ const skillSchema = zod__rspack_import_3/* .object */.Ikc({
13478
+ description: zod__rspack_import_3/* .string */.YjP(),
13479
+ id: zod__rspack_import_3/* .string */.YjP(),
13480
+ name: zod__rspack_import_3/* .string */.YjP(),
13481
+ pluginId: zod__rspack_import_3/* .string */.YjP().optional(),
13482
+ source: zod__rspack_import_3/* .string */.YjP(),
13483
+ sourceRef: zod__rspack_import_3/* .string */.YjP().optional()
13484
+ }).strict();
13477
13485
  const createFieldsSchema = zod__rspack_import_3/* .object */.Ikc({
13478
13486
  avatarColor: avatarColorSchema.optional(),
13479
13487
  avatarShape: avatarShapeSchema.optional(),
@@ -13516,6 +13524,7 @@ __webpack_require__.d(__webpack_exports__, {
13516
13524
  }, {
13517
13525
  FS: openBackendFromInput,
13518
13526
  R9: failureDocumentSchema,
13527
+ b7: skillSchema,
13519
13528
  bY: createFieldsSchema,
13520
13529
  cp: toCreateInput,
13521
13530
  lK: backendFlagsSchema,
@@ -13555,9 +13564,9 @@ const config = {
13555
13564
  };
13556
13565
  async function route({ input }) {
13557
13566
  const out = await (0,_core_grok_approval_routes_js__rspack_import_1/* .listOperation */.gi)(input);
13558
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g.Result, {
13567
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g6.Result, {
13559
13568
  value: out,
13560
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g.Text, {
13569
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g6.Text, {
13561
13570
  children: JSON.stringify(out)
13562
13571
  })
13563
13572
  });
@@ -13615,9 +13624,9 @@ const config = {
13615
13624
  };
13616
13625
  async function route({ input }) {
13617
13626
  const out = await (0,_core_grok_approval_routes_js__rspack_import_1/* .respondOperation */.lr)(input);
13618
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g.Result, {
13627
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g6.Result, {
13619
13628
  value: out,
13620
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g.Text, {
13629
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g6.Text, {
13621
13630
  children: JSON.stringify(out)
13622
13631
  })
13623
13632
  });
@@ -13689,9 +13698,9 @@ async function botsCreate({ input }) {
13689
13698
  const { dir: _d, files: _f, gateway: _g, ...fields } = input;
13690
13699
  const rec = await backend.createAgent((0,_shared_js__rspack_import_1/* .toCreateInput */.cp)(fields));
13691
13700
  if (rec == null) throw new Error('createAgent returned no record');
13692
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g.Result, {
13701
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g6.Result, {
13693
13702
  value: (0,_core_format_js__rspack_import_3/* .summarize */.eh)(rec),
13694
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g.Text, {
13703
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g6.Text, {
13695
13704
  children: `Created bot ${rec.name} (${rec.id})`
13696
13705
  })
13697
13706
  });
@@ -13757,9 +13766,9 @@ const resultSchema = _shared_js__rspack_import_1/* .agentSummarySchema */.t_;
13757
13766
  async function botsDelete({ input }) {
13758
13767
  const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
13759
13768
  const rec = await backend.deleteAgent(input.ref);
13760
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
13769
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
13761
13770
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
13762
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
13771
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
13763
13772
  children: `Deleted ${rec.isGroup ? 'group' : 'bot'} ${rec.name} (${rec.id})`
13764
13773
  })
13765
13774
  });
@@ -13826,9 +13835,9 @@ async function botsGet({ input }) {
13826
13835
  const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
13827
13836
  const rec = await backend.resolve(input.ref);
13828
13837
  const all = await backend.list();
13829
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
13838
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
13830
13839
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
13831
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
13840
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
13832
13841
  children: (0,_core_format_js__rspack_import_4/* .formatRecord */.bM)(rec, all)
13833
13842
  })
13834
13843
  });
@@ -13885,9 +13894,9 @@ async function botsList({ input }) {
13885
13894
  const rows = all.filter((r)=>!r.isGroup);
13886
13895
  const bots = rows.map(_core_format_js__rspack_import_3/* .summarize */.eh);
13887
13896
  const text = rows.length === 0 ? 'No bots.' : rows.map((r)=>(0,_core_format_js__rspack_import_3/* .formatRecord */.bM)(r, all)).join('\n\n');
13888
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
13897
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
13889
13898
  value: bots,
13890
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
13899
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
13891
13900
  children: text
13892
13901
  })
13893
13902
  });
@@ -13975,9 +13984,9 @@ async function botsUpdate({ input }) {
13975
13984
  const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
13976
13985
  const { dir: _d, files: _f, gateway: _g, ref, ...fields } = input;
13977
13986
  const rec = await backend.updateAgent(ref, (0,_shared_js__rspack_import_1/* .toUpdatePatch */.li)(fields));
13978
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
13987
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
13979
13988
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
13980
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
13989
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
13981
13990
  children: `Updated ${rec.isGroup ? 'group' : 'bot'} ${rec.name} (${rec.id})`
13982
13991
  })
13983
13992
  });
@@ -14061,9 +14070,9 @@ async function route({ input }) {
14061
14070
  } catch (error) {
14062
14071
  out = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
14063
14072
  }
14064
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
14073
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
14065
14074
  value: out,
14066
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
14075
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
14067
14076
  children: JSON.stringify(out)
14068
14077
  })
14069
14078
  });
@@ -14152,12 +14161,12 @@ async function route({ signal, input }) {
14152
14161
  } finally{
14153
14162
  signal.removeEventListener('abort', stop);
14154
14163
  }
14155
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g.Result, {
14164
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
14156
14165
  value: {
14157
14166
  state: 'stopped',
14158
14167
  exitCode
14159
14168
  },
14160
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g.Text, {
14169
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
14161
14170
  children: "Relay worker stopped."
14162
14171
  })
14163
14172
  });
@@ -14230,9 +14239,9 @@ async function route({ input }) {
14230
14239
  } catch (error) {
14231
14240
  out = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
14232
14241
  }
14233
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
14242
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
14234
14243
  value: out,
14235
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
14244
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
14236
14245
  children: JSON.stringify(out)
14237
14246
  })
14238
14247
  });
@@ -14286,9 +14295,9 @@ async function route({ input }) {
14286
14295
  } catch (error) {
14287
14296
  out = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
14288
14297
  }
14289
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
14298
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
14290
14299
  value: out,
14291
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
14300
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
14292
14301
  children: JSON.stringify(out)
14293
14302
  })
14294
14303
  });
@@ -14345,9 +14354,9 @@ async function route({ input }) {
14345
14354
  } catch (error) {
14346
14355
  out = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
14347
14356
  }
14348
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
14357
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
14349
14358
  value: out,
14350
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
14359
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
14351
14360
  children: JSON.stringify(out)
14352
14361
  })
14353
14362
  });
@@ -14423,21 +14432,21 @@ async function codexDesktopShim({ input }) {
14423
14432
  out = (0,_core_desktop_shim_js__rspack_import_1/* .installDesktopShim */.B0)();
14424
14433
  } catch (error) {
14425
14434
  const message = error instanceof Error ? error.message : String(error);
14426
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
14435
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
14427
14436
  value: {
14428
14437
  action: 'install',
14429
14438
  error: message,
14430
14439
  exitCode: 1
14431
14440
  },
14432
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
14441
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
14433
14442
  children: `Desktop shim install failed: ${message}`
14434
14443
  })
14435
14444
  });
14436
14445
  }
14437
14446
  const text = `Installed ChatGPT Desktop shim:\n` + ` wrapper: ${out.wrapperPath}\n` + ` bridge: ${out.bridgePath}\n` + ` login env: ${out.envScriptPath}` + (out.plistPath ? `\n LaunchAgent: ${out.plistPath}` : '\n LaunchAgent: n/a (macOS-only)') + `\nFully quit and relaunch ChatGPT.app so it inherits CODEX_CLI_PATH; ` + `Desktop falls back to stock Codex if the shim is ever removed.` + formatWarnings(out.warnings);
14438
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
14447
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
14439
14448
  value: out,
14440
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
14449
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
14441
14450
  children: text
14442
14451
  })
14443
14452
  });
@@ -14449,22 +14458,22 @@ async function codexDesktopShim({ input }) {
14449
14458
  out = (0,_core_desktop_shim_js__rspack_import_1/* .uninstallDesktopShim */.gM)();
14450
14459
  } catch (error) {
14451
14460
  const message = error instanceof Error ? error.message : String(error);
14452
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
14461
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
14453
14462
  value: {
14454
14463
  action: 'uninstall',
14455
14464
  error: message,
14456
14465
  exitCode: 1
14457
14466
  },
14458
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
14467
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
14459
14468
  children: `Desktop shim uninstall failed: ${message}`
14460
14469
  })
14461
14470
  });
14462
14471
  }
14463
14472
  const removed = out.removed.length === 0 ? '(nothing installed)' : out.removed.join(', ');
14464
14473
  const text = `Removed ChatGPT Desktop shim: ${removed}. ` + `Desktop and Codex fall back to stock behavior; relaunch ChatGPT.app to pick it up.` + formatWarnings(out.warnings);
14465
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
14474
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
14466
14475
  value: out,
14467
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
14476
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
14468
14477
  children: text
14469
14478
  })
14470
14479
  });
@@ -14472,9 +14481,9 @@ async function codexDesktopShim({ input }) {
14472
14481
  case 'status':
14473
14482
  {
14474
14483
  const out = (0,_core_desktop_shim_js__rspack_import_1/* .desktopShimStatus */.em)();
14475
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
14484
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
14476
14485
  value: out,
14477
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
14486
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
14478
14487
  children: (0,_core_format_js__rspack_import_4/* .formatDesktopShimStatus */.fX)(out)
14479
14488
  })
14480
14489
  });
@@ -14554,21 +14563,21 @@ async function codexListThreads({ input }) {
14554
14563
  });
14555
14564
  } catch (error) {
14556
14565
  const failure = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
14557
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g.Result, {
14566
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
14558
14567
  value: failure,
14559
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g.Text, {
14568
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
14560
14569
  children: failure.error
14561
14570
  })
14562
14571
  });
14563
14572
  }
14564
14573
  const more = out.nextCursor ? `\n\nmore: --cursor ${JSON.stringify((0,_core_codex_bridge_js__rspack_import_1/* .singleLine */.pF)(out.nextCursor))}` : '';
14565
14574
  const text = out.threads.length === 0 ? 'No Codex threads.' : out.threads.map(_core_format_js__rspack_import_6/* .formatCodexThread */.nz).join('\n\n') + more;
14566
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g.Result, {
14575
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
14567
14576
  value: {
14568
14577
  ...out,
14569
14578
  exitCode: 0
14570
14579
  },
14571
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g.Text, {
14580
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
14572
14581
  children: text
14573
14582
  })
14574
14583
  });
@@ -14641,19 +14650,19 @@ async function codexQueue({ input }) {
14641
14650
  out = await (0,_core_codex_bridge_js__rspack_import_1/* .listCodexQueue */.Bt)(input.threadId);
14642
14651
  } catch (error) {
14643
14652
  const failure = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
14644
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g.Result, {
14653
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
14645
14654
  value: failure,
14646
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g.Text, {
14655
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
14647
14656
  children: failure.error
14648
14657
  })
14649
14658
  });
14650
14659
  }
14651
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g.Result, {
14660
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
14652
14661
  value: {
14653
14662
  ...out,
14654
14663
  exitCode: 0
14655
14664
  },
14656
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g.Text, {
14665
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
14657
14666
  children: (0,_core_format_js__rspack_import_6/* .formatCodexQueue */.e_)(out)
14658
14667
  })
14659
14668
  });
@@ -14784,12 +14793,12 @@ async function route({ input, signal }) {
14784
14793
  ...input,
14785
14794
  message: input.message.join(' ').trim()
14786
14795
  }, context);
14787
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g.Result, {
14796
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
14788
14797
  value: {
14789
14798
  ...out,
14790
14799
  exitCode: out.delivery === 'rejected' ? 1 : 0
14791
14800
  },
14792
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g.Text, {
14801
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
14793
14802
  children: `Delivery ${out.delivery}; terminal answer returns to Grok automatically.`
14794
14803
  })
14795
14804
  });
@@ -14801,9 +14810,9 @@ async function route({ input, signal }) {
14801
14810
  }, signal, (message)=>context.progress.report({
14802
14811
  message
14803
14812
  }), true);
14804
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g.Result, {
14813
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
14805
14814
  value: out,
14806
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g.Text, {
14815
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
14807
14816
  children: (0,_core_codex_routes_js__rspack_import_1/* .resultText */.D6)(out)
14808
14817
  })
14809
14818
  });
@@ -14849,9 +14858,9 @@ const resultSchema = zod__rspack_import_2/* .object */.Ikc({
14849
14858
  }).passthrough();
14850
14859
  async function codexStatusCmd(_props) {
14851
14860
  const status = await (0,_core_codex_bridge_js__rspack_import_1/* .codexStatus */.MU)();
14852
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
14861
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
14853
14862
  value: status,
14854
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
14863
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
14855
14864
  children: (0,_core_format_js__rspack_import_4/* .formatCodexStatus */.P2)(status)
14856
14865
  })
14857
14866
  });
@@ -14923,9 +14932,9 @@ async function route({ input, signal }) {
14923
14932
  const out = await (0,_core_codex_routes_js__rspack_import_1/* .observeOperation */.gT)('wait', input, signal, (message)=>context.progress.report({
14924
14933
  message
14925
14934
  }));
14926
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
14935
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
14927
14936
  value: out,
14928
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
14937
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
14929
14938
  children: (0,_core_codex_routes_js__rspack_import_1/* .resultText */.D6)(out)
14930
14939
  })
14931
14940
  });
@@ -14989,9 +14998,9 @@ async function route({ input, signal }) {
14989
14998
  const out = await (0,_core_codex_routes_js__rspack_import_1/* .observeOperation */.gT)('watch', input, signal, (message)=>context.progress.report({
14990
14999
  message
14991
15000
  }));
14992
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15001
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
14993
15002
  value: out,
14994
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15003
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
14995
15004
  children: (0,_core_codex_routes_js__rspack_import_1/* .resultText */.D6)(out)
14996
15005
  })
14997
15006
  });
@@ -15094,9 +15103,9 @@ async function doctor({ input }) {
15094
15103
  ...candidates.map((c)=>` ${c}`),
15095
15104
  note
15096
15105
  ].join('\n');
15097
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_6/* .Agent.Result */.g.Result, {
15106
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_6/* .Agent.Result */.g6.Result, {
15098
15107
  value: value,
15099
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_6/* .Agent.Text */.g.Text, {
15108
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_6/* .Agent.Text */.g6.Text, {
15100
15109
  children: text
15101
15110
  })
15102
15111
  });
@@ -15167,9 +15176,9 @@ const resultSchema = _shared_js__rspack_import_1/* .agentSummarySchema */.t_;
15167
15176
  async function groupsAdd({ input }) {
15168
15177
  const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
15169
15178
  const rec = await backend.addGroupMember(input.group, input.bot);
15170
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15179
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15171
15180
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
15172
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15181
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15173
15182
  children: `Added to ${rec.name}. Members: ${rec.memberIds.length}`
15174
15183
  })
15175
15184
  });
@@ -15255,9 +15264,9 @@ async function groupsCreate({ input }) {
15255
15264
  ...(0,_shared_js__rspack_import_1/* .toCreateInput */.cp)(fields),
15256
15265
  memberIds: member
15257
15266
  });
15258
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15267
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15259
15268
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
15260
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15269
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15261
15270
  children: `Created group ${rec.name} (${rec.id}) with ${rec.memberIds.length} members`
15262
15271
  })
15263
15272
  });
@@ -15325,9 +15334,9 @@ async function groupsDelete({ input }) {
15325
15334
  const rec = await backend.resolve(input.ref);
15326
15335
  if (!rec.isGroup) throw new Error(`"${rec.name}" is a bot, not a group. Use bots delete.`);
15327
15336
  const deleted = await backend.deleteAgent(input.ref);
15328
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15337
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15329
15338
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(deleted),
15330
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15339
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15331
15340
  children: `Deleted group ${deleted.name} (${deleted.id})`
15332
15341
  })
15333
15342
  });
@@ -15395,9 +15404,9 @@ async function groupsGet({ input }) {
15395
15404
  const rec = await backend.resolve(input.ref);
15396
15405
  if (!rec.isGroup) throw new Error(`"${rec.name}" is a bot, not a group.`);
15397
15406
  const all = await backend.list();
15398
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15407
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15399
15408
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
15400
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15409
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15401
15410
  children: (0,_core_format_js__rspack_import_4/* .formatRecord */.bM)(rec, all)
15402
15411
  })
15403
15412
  });
@@ -15454,9 +15463,9 @@ async function groupsList({ input }) {
15454
15463
  const rows = all.filter((r)=>r.isGroup);
15455
15464
  const groups = rows.map(_core_format_js__rspack_import_3/* .summarize */.eh);
15456
15465
  const text = rows.length === 0 ? 'No groups.' : rows.map((r)=>(0,_core_format_js__rspack_import_3/* .formatRecord */.bM)(r, all)).join('\n\n');
15457
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
15466
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
15458
15467
  value: groups,
15459
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
15468
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
15460
15469
  children: text
15461
15470
  })
15462
15471
  });
@@ -15524,9 +15533,9 @@ async function groupsMembers({ input }) {
15524
15533
  const rec = await backend.resolve(input.ref);
15525
15534
  if (!rec.isGroup) throw new Error(`"${rec.name}" is a bot, not a group.`);
15526
15535
  const all = await backend.list();
15527
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15536
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15528
15537
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
15529
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15538
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15530
15539
  children: (0,_core_format_js__rspack_import_4/* .formatRecord */.bM)(rec, all)
15531
15540
  })
15532
15541
  });
@@ -15597,9 +15606,9 @@ const resultSchema = _shared_js__rspack_import_1/* .agentSummarySchema */.t_;
15597
15606
  async function groupsRemove({ input }) {
15598
15607
  const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
15599
15608
  const rec = await backend.removeGroupMember(input.group, input.bot);
15600
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15609
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15601
15610
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
15602
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15611
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15603
15612
  children: `Removed from ${rec.name}. Members: ${rec.memberIds.length}`
15604
15613
  })
15605
15614
  });
@@ -15673,9 +15682,9 @@ const resultSchema = _shared_js__rspack_import_1/* .agentSummarySchema */.t_;
15673
15682
  async function groupsSet({ input }) {
15674
15683
  const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
15675
15684
  const rec = await backend.setGroupMembers(input.group, input.member);
15676
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15685
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15677
15686
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
15678
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15687
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15679
15688
  children: `Updated ${rec.name}. Members: ${rec.memberIds.length}`
15680
15689
  })
15681
15690
  });
@@ -15765,9 +15774,9 @@ async function groupsUpdate({ input }) {
15765
15774
  if (!current.isGroup) throw new Error(`"${current.name}" is a bot, not a group. Use bots update.`);
15766
15775
  const { dir: _d, files: _f, gateway: _g, ref, ...fields } = input;
15767
15776
  const rec = await backend.updateAgent(ref, (0,_shared_js__rspack_import_1/* .toUpdatePatch */.li)(fields));
15768
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15777
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15769
15778
  value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
15770
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15779
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15771
15780
  children: `Updated group ${rec.name} (${rec.id})`
15772
15781
  })
15773
15782
  });
@@ -15843,11 +15852,11 @@ const resultSchema = zod__rspack_import_2/* .union */.KCZ([
15843
15852
  async function history({ input }) {
15844
15853
  const file = (0,_core_history_js__rspack_import_1/* .historyPath */.ae)(input.historyDir);
15845
15854
  if (input.path) {
15846
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15855
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15847
15856
  value: {
15848
15857
  path: file
15849
15858
  },
15850
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15859
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15851
15860
  children: file
15852
15861
  })
15853
15862
  });
@@ -15858,9 +15867,9 @@ async function history({ input }) {
15858
15867
  search: input.search
15859
15868
  });
15860
15869
  const text = rows.length ? rows.map((row)=>`[${row.recordedAt}] ${row.target.name} (${row.target.id}) [${row.role}] ${row.text}`).join('\n') : 'No local history.';
15861
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g.Result, {
15870
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
15862
15871
  value: rows,
15863
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g.Text, {
15872
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
15864
15873
  children: text
15865
15874
  })
15866
15875
  });
@@ -16070,12 +16079,12 @@ async function send({ input }) {
16070
16079
  hop: input.hop,
16071
16080
  correlationId: input.correlationId
16072
16081
  }, await (0,_agent_bundle_runtime__rspack_import_7/* .agent */.MA)());
16073
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Result */.g.Result, {
16082
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Result */.g6.Result, {
16074
16083
  value: {
16075
16084
  ...out,
16076
16085
  exitCode: out.delivery === 'rejected' ? 1 : 0
16077
16086
  },
16078
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Text */.g.Text, {
16087
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Text */.g6.Text, {
16079
16088
  children: `Delivery ${out.delivery}; inspect codex bridge status for automatic reply delivery.`
16080
16089
  })
16081
16090
  });
@@ -16085,9 +16094,9 @@ async function send({ input }) {
16085
16094
  value = (0,_core_codex_contract_js__rspack_import_3/* .outcomeFromError */.DG)(error);
16086
16095
  }
16087
16096
  const text = value.exitCode === 0 ? `Sent to ${value.kind} ${value.name} (${value.id})${value.messageId ? ` message ${value.messageId}` : ''}; envelope ${value.envelopeId}` : value.error;
16088
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Result */.g.Result, {
16097
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Result */.g6.Result, {
16089
16098
  value: value,
16090
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Text */.g.Text, {
16099
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Text */.g6.Text, {
16091
16100
  children: text
16092
16101
  })
16093
16102
  });
@@ -16102,6 +16111,202 @@ __webpack_require__.d(__webpack_exports__, {
16102
16111
  });
16103
16112
 
16104
16113
 
16114
+ },
16115
+ "./src/cli/skills/add.tsx"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
16116
+ __webpack_require__.r(__webpack_exports__);
16117
+ /* import */ var react_jsx_runtime__rspack_import_0 = __webpack_require__("./node_modules/react/jsx-runtime.react-server.js");
16118
+ /* import */ var node_fs_promises__rspack_import_1 = __webpack_require__("node:fs/promises");
16119
+ /* import */ var node_path__rspack_import_2 = __webpack_require__("node:path");
16120
+ /* import */ var _agent_bundle_runtime__rspack_import_5 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/506.js");
16121
+ /* import */ var zod__rspack_import_4 = __webpack_require__("./node_modules/zod/v4/classic/schemas.js");
16122
+ /* import */ var _shared_js__rspack_import_3 = __webpack_require__("./src/cli/_shared.ts");
16123
+
16124
+
16125
+
16126
+
16127
+
16128
+
16129
+ const config = {
16130
+ description: 'Add a SKILL.md to the shared skill library. Every bot sees it.',
16131
+ inputJsonSchema: {
16132
+ additionalProperties: false,
16133
+ properties: {
16134
+ dir: {
16135
+ description: 'Agents directory for --files mode',
16136
+ type: 'string'
16137
+ },
16138
+ files: {
16139
+ description: 'Force the on-disk agents store',
16140
+ type: 'boolean'
16141
+ },
16142
+ gateway: {
16143
+ description: 'Force the live gateway',
16144
+ type: 'boolean'
16145
+ },
16146
+ path: {
16147
+ description: 'SKILL.md file, or a directory holding one',
16148
+ type: 'string'
16149
+ }
16150
+ },
16151
+ required: [
16152
+ 'path'
16153
+ ],
16154
+ type: 'object'
16155
+ },
16156
+ positionals: [
16157
+ 'path'
16158
+ ]
16159
+ };
16160
+ const inputSchema = _shared_js__rspack_import_3/* .backendFlagsSchema.extend */.lK.extend({
16161
+ path: zod__rspack_import_4/* .string */.YjP().min(1)
16162
+ }).strict();
16163
+ const resultSchema = _shared_js__rspack_import_3/* .skillSchema */.b7;
16164
+ const skillFile = async (path)=>{
16165
+ const target = (0,node_path__rspack_import_2.resolve)(path);
16166
+ return (await (0,node_fs_promises__rspack_import_1.stat)(target)).isDirectory() ? (0,node_path__rspack_import_2.join)(target, 'SKILL.md') : target;
16167
+ };
16168
+ async function skillsAdd({ input }) {
16169
+ const markdown = await (0,node_fs_promises__rspack_import_1.readFile)(await skillFile(input.path), 'utf8');
16170
+ const backend = await (0,_shared_js__rspack_import_3/* .openBackendFromInput */.FS)(input);
16171
+ const skill = resultSchema.parse(await backend.addSkill(markdown));
16172
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
16173
+ value: skill,
16174
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
16175
+ children: `Added skill ${skill.name} (${skill.id}) to the shared library`
16176
+ })
16177
+ });
16178
+ }
16179
+
16180
+ __webpack_require__.d(__webpack_exports__, {
16181
+ "default": () => (skillsAdd)
16182
+ }, {
16183
+ config: config,
16184
+ inputSchema: inputSchema,
16185
+ resultSchema: resultSchema
16186
+ });
16187
+
16188
+
16189
+ },
16190
+ "./src/cli/skills/list.tsx"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
16191
+ __webpack_require__.r(__webpack_exports__);
16192
+ /* import */ var react_jsx_runtime__rspack_import_0 = __webpack_require__("./node_modules/react/jsx-runtime.react-server.js");
16193
+ /* import */ var _agent_bundle_runtime__rspack_import_3 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/506.js");
16194
+ /* import */ var zod__rspack_import_2 = __webpack_require__("./node_modules/zod/v4/classic/schemas.js");
16195
+ /* import */ var _shared_js__rspack_import_1 = __webpack_require__("./src/cli/_shared.ts");
16196
+
16197
+
16198
+
16199
+
16200
+ const config = {
16201
+ description: 'List the skill library every bot in this Grok Bot shares.',
16202
+ inputJsonSchema: {
16203
+ additionalProperties: false,
16204
+ properties: {
16205
+ dir: {
16206
+ description: 'Agents directory for --files mode',
16207
+ type: 'string'
16208
+ },
16209
+ files: {
16210
+ description: 'Force the on-disk agents store',
16211
+ type: 'boolean'
16212
+ },
16213
+ gateway: {
16214
+ description: 'Force the live gateway',
16215
+ type: 'boolean'
16216
+ }
16217
+ },
16218
+ type: 'object'
16219
+ }
16220
+ };
16221
+ const inputSchema = _shared_js__rspack_import_1/* .backendFlagsSchema */.lK;
16222
+ const resultSchema = zod__rspack_import_2/* .array */.YOg(_shared_js__rspack_import_1/* .skillSchema */.b7);
16223
+ async function skillsList({ input }) {
16224
+ const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
16225
+ const skills = resultSchema.parse(await backend.skills());
16226
+ const lines = skills.map((s)=>`${s.id} ${s.name} [${s.source}]${s.description ? ` ${s.description}` : ''}`);
16227
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
16228
+ value: skills,
16229
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
16230
+ children: lines.length > 0 ? lines.join('\n') : 'No skills.'
16231
+ })
16232
+ });
16233
+ }
16234
+
16235
+ __webpack_require__.d(__webpack_exports__, {
16236
+ "default": () => (skillsList)
16237
+ }, {
16238
+ config: config,
16239
+ inputSchema: inputSchema,
16240
+ resultSchema: resultSchema
16241
+ });
16242
+
16243
+
16244
+ },
16245
+ "./src/cli/skills/remove.tsx"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
16246
+ __webpack_require__.r(__webpack_exports__);
16247
+ /* import */ var react_jsx_runtime__rspack_import_0 = __webpack_require__("./node_modules/react/jsx-runtime.react-server.js");
16248
+ /* import */ var _agent_bundle_runtime__rspack_import_3 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/506.js");
16249
+ /* import */ var zod__rspack_import_2 = __webpack_require__("./node_modules/zod/v4/classic/schemas.js");
16250
+ /* import */ var _shared_js__rspack_import_1 = __webpack_require__("./src/cli/_shared.ts");
16251
+
16252
+
16253
+
16254
+
16255
+ const config = {
16256
+ description: 'Remove a library skill by id or name. Every bot loses it.',
16257
+ inputJsonSchema: {
16258
+ additionalProperties: false,
16259
+ properties: {
16260
+ dir: {
16261
+ description: 'Agents directory for --files mode',
16262
+ type: 'string'
16263
+ },
16264
+ files: {
16265
+ description: 'Force the on-disk agents store',
16266
+ type: 'boolean'
16267
+ },
16268
+ gateway: {
16269
+ description: 'Force the live gateway',
16270
+ type: 'boolean'
16271
+ },
16272
+ skill: {
16273
+ description: 'Skill id or name',
16274
+ type: 'string'
16275
+ }
16276
+ },
16277
+ required: [
16278
+ 'skill'
16279
+ ],
16280
+ type: 'object'
16281
+ },
16282
+ positionals: [
16283
+ 'skill'
16284
+ ]
16285
+ };
16286
+ const inputSchema = _shared_js__rspack_import_1/* .backendFlagsSchema.extend */.lK.extend({
16287
+ skill: zod__rspack_import_2/* .string */.YjP().min(1)
16288
+ }).strict();
16289
+ const resultSchema = _shared_js__rspack_import_1/* .skillSchema */.b7;
16290
+ async function skillsRemove({ input }) {
16291
+ const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
16292
+ const skill = resultSchema.parse(await backend.removeSkill(input.skill));
16293
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
16294
+ value: skill,
16295
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
16296
+ children: `Removed skill ${skill.name} (${skill.id}) from the shared library`
16297
+ })
16298
+ });
16299
+ }
16300
+
16301
+ __webpack_require__.d(__webpack_exports__, {
16302
+ "default": () => (skillsRemove)
16303
+ }, {
16304
+ config: config,
16305
+ inputSchema: inputSchema,
16306
+ resultSchema: resultSchema
16307
+ });
16308
+
16309
+
16105
16310
  },
16106
16311
  "./src/cli/thread.tsx"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
16107
16312
  __webpack_require__.r(__webpack_exports__);
@@ -16194,9 +16399,9 @@ async function thread({ input }) {
16194
16399
  event: 'thread',
16195
16400
  rootId: input.root
16196
16401
  });
16197
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
16402
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
16198
16403
  value: rooted,
16199
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
16404
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
16200
16405
  children: (0,_core_format_js__rspack_import_5/* .formatTranscript */.oZ)(rooted, {
16201
16406
  full: input.full
16202
16407
  })
@@ -16226,9 +16431,9 @@ async function thread({ input }) {
16226
16431
  const text = (0,_core_format_js__rspack_import_5/* .formatTranscript */.oZ)(selected, {
16227
16432
  full: input.full
16228
16433
  });
16229
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
16434
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
16230
16435
  value: selected,
16231
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
16436
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
16232
16437
  children: `${text}\n\ncursor: ${delta.cursor}${delta.gapReset ? ' (gap reset)' : ''}`
16233
16438
  })
16234
16439
  });
@@ -16238,9 +16443,9 @@ async function thread({ input }) {
16238
16443
  disabled: input.noHistory,
16239
16444
  event: 'thread'
16240
16445
  });
16241
- return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g.Result, {
16446
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
16242
16447
  value: out,
16243
- children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g.Text, {
16448
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
16244
16449
  children: (0,_core_format_js__rspack_import_5/* .formatTranscript */.oZ)(out, {
16245
16450
  full: input.full
16246
16451
  })
@@ -17210,11 +17415,50 @@ const Agent = Object.freeze({
17210
17415
  Result: AgentResult,
17211
17416
  Text: AgentText
17212
17417
  });
17418
+ const Result = ({ children })=>createElement('agent-hook-result', null, children);
17419
+ const AdditionalContext = ({ children })=>createElement('agent-hook-additional-context', null, children);
17420
+ const Hook = (/* unused pure expression or super */ null && ({
17421
+ AdditionalContext: AdditionalContext,
17422
+ Result: Result
17423
+ }));
17424
+ const McpResult = ({ _meta, children, isError, structuredContent })=>createElement('mcp-result', {
17425
+ _meta,
17426
+ isError,
17427
+ structuredContent
17428
+ }, children);
17429
+ const McpText = ({ children })=>createElement('mcp-text', null, children);
17430
+ const McpImage = ({ data, mimeType })=>createElement('mcp-image', {
17431
+ data,
17432
+ mimeType
17433
+ });
17434
+ const McpAudio = ({ data, mimeType })=>createElement('mcp-audio', {
17435
+ data,
17436
+ mimeType
17437
+ });
17438
+ const McpResourceLink = ({ mimeType, name, uri })=>createElement('mcp-resource-link', {
17439
+ mimeType,
17440
+ name,
17441
+ uri
17442
+ });
17443
+ const McpEmbeddedResource = ({ blob, children, mimeType, text, uri })=>createElement('mcp-embedded-resource', {
17444
+ blob,
17445
+ mimeType,
17446
+ text,
17447
+ uri
17448
+ }, children);
17449
+ const Mcp = (/* unused pure expression or super */ null && ({
17450
+ Audio: McpAudio,
17451
+ EmbeddedResource: McpEmbeddedResource,
17452
+ Image: McpImage,
17453
+ ResourceLink: McpResourceLink,
17454
+ Result: McpResult,
17455
+ Text: McpText
17456
+ }));
17213
17457
 
17214
17458
 
17215
17459
  __webpack_require__.d(__webpack_exports__, {
17216
17460
  }, {
17217
- g: Agent
17461
+ g6: Agent
17218
17462
  });
17219
17463
 
17220
17464
 
@@ -29739,7 +29983,10 @@ async function openBackend(opts) {
29739
29983
  removeGroupMember: (group, bot)=>_gateway_js__rspack_import_1/* .removeGroupMember */.A0(session, group, bot),
29740
29984
  send: (ref, prompt, extra)=>_gateway_js__rspack_import_1/* .sendPrompt */.LV(session, ref, prompt, extra),
29741
29985
  transcript: (ref, limit)=>_gateway_js__rspack_import_1/* .getTranscriptTail */.bA(session, ref, limit),
29742
- thread: (ref, rootId)=>_gateway_js__rspack_import_1/* .getThread */.fG(session, ref, rootId)
29986
+ thread: (ref, rootId)=>_gateway_js__rspack_import_1/* .getThread */.fG(session, ref, rootId),
29987
+ skills: ()=>_gateway_js__rspack_import_1/* .listSkills */.bG(session),
29988
+ addSkill: (markdown)=>_gateway_js__rspack_import_1/* .addSkill */.L5(session, markdown),
29989
+ removeSkill: (skillRef)=>_gateway_js__rspack_import_1/* .removeSkill */.uX(session, skillRef)
29743
29990
  };
29744
29991
  }
29745
29992
  const root = _store_js__rspack_import_0/* .resolveAgentsRoot */.v1(opts.root);
@@ -29763,6 +30010,15 @@ async function openBackend(opts) {
29763
30010
  },
29764
30011
  thread: async ()=>{
29765
30012
  throw new _store_js__rspack_import_0/* .StoreError */.AD("thread requires the live gateway");
30013
+ },
30014
+ skills: async ()=>{
30015
+ throw new _store_js__rspack_import_0/* .StoreError */.AD("skills requires the live gateway");
30016
+ },
30017
+ addSkill: async ()=>{
30018
+ throw new _store_js__rspack_import_0/* .StoreError */.AD("skills requires the live gateway");
30019
+ },
30020
+ removeSkill: async ()=>{
30021
+ throw new _store_js__rspack_import_0/* .StoreError */.AD("skills requires the live gateway");
29766
30022
  }
29767
30023
  };
29768
30024
  }
@@ -30773,6 +31029,88 @@ async function deleteAgent(session, ref) {
30773
31029
  });
30774
31030
  return rec;
30775
31031
  }
31032
+ // Grok Bot keeps one skill library per box. Every bot reads the same list, and the
31033
+ // workflow RPCs take any bot id only to say whose automations ride along.
31034
+ const SKILL_MAX_BODY_LENGTH = 100000;
31035
+ const SKILL_SOURCES = {
31036
+ workflow: "your library",
31037
+ managed: "team-managed",
31038
+ plugin: "a plugin",
31039
+ automation: "a scheduled automation"
31040
+ };
31041
+ function asSkill(skill) {
31042
+ return {
31043
+ id: String(skill.id),
31044
+ name: skill.name || "",
31045
+ description: skill.description || "",
31046
+ source: String(skill.source || "workflow"),
31047
+ ...skill.sourceRef ? {
31048
+ sourceRef: String(skill.sourceRef)
31049
+ } : {},
31050
+ ...skill.pluginId ? {
31051
+ pluginId: String(skill.pluginId)
31052
+ } : {}
31053
+ };
31054
+ }
31055
+ function asSkills(data) {
31056
+ const list = Array.isArray(data) ? data : Array.isArray(data?.workflows) ? data.workflows : [];
31057
+ return list.filter((s)=>s && s.id).map(asSkill);
31058
+ }
31059
+ async function anyBotId(session) {
31060
+ const bot = (await listAgents(session)).find((r)=>!r.isGroup);
31061
+ if (!bot) throw new GatewayError("Skills need at least one bot. Run gbot bots create first.");
31062
+ return bot.id;
31063
+ }
31064
+ async function listSkills(session) {
31065
+ return asSkills(await gatewayCall(session, "getAgentWorkflows", {
31066
+ id: await anyBotId(session)
31067
+ }));
31068
+ }
31069
+ async function addSkill(session, markdown) {
31070
+ const text = String(markdown);
31071
+ if (!text.trim()) throw new GatewayError("Skill markdown is empty.");
31072
+ if (text.length > SKILL_MAX_BODY_LENGTH) {
31073
+ throw new GatewayError(`Skill markdown is ${text.length} characters. Grok Bot truncates bodies over ${SKILL_MAX_BODY_LENGTH}; shorten it.`);
31074
+ }
31075
+ const id = await anyBotId(session);
31076
+ let data;
31077
+ try {
31078
+ data = await gatewayCall(session, "importAgentWorkflowText", {
31079
+ id,
31080
+ markdown: text
31081
+ });
31082
+ } catch (error) {
31083
+ if (error instanceof GatewayError && /response too large/.test(error.message)) {
31084
+ throw new GatewayError("Grok Bot echoed a skill list too large to read; the import may still have landed. Run gbot skills list.");
31085
+ }
31086
+ throw error;
31087
+ }
31088
+ const imported = data.result?.imported?.[0];
31089
+ if (!imported) {
31090
+ const reason = data.result?.skipped?.[0]?.reason || "rejected";
31091
+ throw new GatewayError(`Grok Bot did not import the skill (${reason}). It needs a name, a non-empty body, and library room.`);
31092
+ }
31093
+ return asSkills(data).find((s)=>s.id === String(imported.id)) ?? asSkill(imported);
31094
+ }
31095
+ async function removeSkill(session, skillRef) {
31096
+ const id = await anyBotId(session);
31097
+ const skills = asSkills(await gatewayCall(session, "getAgentWorkflows", {
31098
+ id
31099
+ }));
31100
+ const needle = String(skillRef).trim().toLowerCase();
31101
+ const matches = skills.filter((s)=>s.id.toLowerCase() === needle || s.name.toLowerCase() === needle);
31102
+ if (matches.length === 0) throw new GatewayError(`No skill "${skillRef}".`);
31103
+ if (matches.length > 1) throw new GatewayError(`Ambiguous skill name "${skillRef}". Use the id.`);
31104
+ if (matches[0].source !== "workflow") {
31105
+ const kind = SKILL_SOURCES[matches[0].source] || matches[0].source;
31106
+ throw new GatewayError(`"${matches[0].name}" is ${kind}, not a library skill. Manage it where it came from.`);
31107
+ }
31108
+ await gatewayCall(session, "deleteAgentWorkflow", {
31109
+ id,
31110
+ workflowId: matches[0].id
31111
+ });
31112
+ return matches[0];
31113
+ }
30776
31114
  function normalizeMemberIds(records, memberRefs) {
30777
31115
  const memberIds = new Set();
30778
31116
  for (const ref of memberRefs){
@@ -30947,6 +31285,7 @@ async function respondGrokApproval(session, ref, input) {
30947
31285
 
30948
31286
  __webpack_require__.d(__webpack_exports__, {
30949
31287
  A0: () => (removeGroupMember),
31288
+ L5: () => (addSkill),
30950
31289
  LV: () => (sendPrompt),
30951
31290
  MI: () => (listGrokApprovals),
30952
31291
  OR: () => (respondGrokApproval),
@@ -30955,9 +31294,11 @@ __webpack_require__.d(__webpack_exports__, {
30955
31294
  Td: () => (setGroupMembers),
30956
31295
  Vq: () => (connectGateway),
30957
31296
  bA: () => (getTranscriptTail),
31297
+ bG: () => (listSkills),
30958
31298
  fG: () => (getThread),
30959
31299
  nF: () => (hasGatewayAuth),
30960
31300
  qE: () => (resolveRef),
31301
+ uX: () => (removeSkill),
30961
31302
  vc: () => (listAgents),
30962
31303
  wj: () => (createGroup),
30963
31304
  x4: () => (updateAgent),
@@ -32044,7 +32385,7 @@ __webpack_require__.d(__webpack_exports__, {
32044
32385
 
32045
32386
  },
32046
32387
  "./package.json"(module) {
32047
- module.exports = {"rE":"0.7.0"}
32388
+ module.exports = {"rE":"0.9.0"}
32048
32389
 
32049
32390
  },
32050
32391
 
@@ -32110,9 +32451,9 @@ __webpack_require__.r = (exports) => {
32110
32451
  var __webpack_exports__ = {};
32111
32452
  /* import */ var node_worker_threads__rspack_import_0 = __webpack_require__("node:worker_threads");
32112
32453
  /* import */ var react__rspack_import_1 = __webpack_require__("./node_modules/react/react.react-server.js");
32113
- /* import */ var _agent_bundle_runtime_flight_server__rspack_import_37 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/flight/server.js");
32114
- /* import */ var _agent_bundle_runtime__rspack_import_35 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/49.js");
32115
- /* import */ var _agent_bundle_runtime__rspack_import_36 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/736.js");
32454
+ /* import */ var _agent_bundle_runtime_flight_server__rspack_import_40 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/flight/server.js");
32455
+ /* import */ var _agent_bundle_runtime__rspack_import_38 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/49.js");
32456
+ /* import */ var _agent_bundle_runtime__rspack_import_39 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/736.js");
32116
32457
  /* import */ var node_url__rspack_import_2 = __webpack_require__("node:url");
32117
32458
  /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_approvals_list_tsx__rspack_import_3 = __webpack_require__("./src/cli/approvals/list.tsx");
32118
32459
  /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_approvals_respond_tsx__rspack_import_4 = __webpack_require__("./src/cli/approvals/respond.tsx");
@@ -32145,7 +32486,10 @@ var __webpack_exports__ = {};
32145
32486
  /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_update_tsx__rspack_import_31 = __webpack_require__("./src/cli/groups/update.tsx");
32146
32487
  /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_history_tsx__rspack_import_32 = __webpack_require__("./src/cli/history.tsx");
32147
32488
  /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_33 = __webpack_require__("./src/cli/send.tsx");
32148
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_34 = __webpack_require__("./src/cli/thread.tsx");
32489
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_add_tsx__rspack_import_34 = __webpack_require__("./src/cli/skills/add.tsx");
32490
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_list_tsx__rspack_import_35 = __webpack_require__("./src/cli/skills/list.tsx");
32491
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_remove_tsx__rspack_import_36 = __webpack_require__("./src/cli/skills/remove.tsx");
32492
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_37 = __webpack_require__("./src/cli/thread.tsx");
32149
32493
 
32150
32494
 
32151
32495
 
@@ -32214,8 +32558,14 @@ const route29 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_gro
32214
32558
 
32215
32559
  const route30 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_33, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_33);
32216
32560
 
32217
- const route31 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_34, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_34);
32218
- const pluginRoot = (0,_agent_bundle_runtime__rspack_import_35/* .resolvePluginRoot */.E7)({
32561
+ const route31 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_add_tsx__rspack_import_34, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_add_tsx__rspack_import_34);
32562
+
32563
+ const route32 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_list_tsx__rspack_import_35, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_list_tsx__rspack_import_35);
32564
+
32565
+ const route33 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_remove_tsx__rspack_import_36, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_skills_remove_tsx__rspack_import_36);
32566
+
32567
+ const route34 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_37, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_37);
32568
+ const pluginRoot = (0,_agent_bundle_runtime__rspack_import_38/* .resolvePluginRoot */.E7)({
32219
32569
  fallback: (0,node_url__rspack_import_2.fileURLToPath)(new URL('..', import.meta.url)),
32220
32570
  stateAnchor: 'user-data'
32221
32571
  });
@@ -32419,11 +32769,29 @@ const routes = Object.freeze({
32419
32769
  name: "send",
32420
32770
  module: route30
32421
32771
  }),
32772
+ "cli:skills/add": Object.freeze({
32773
+ id: "cli:skills/add",
32774
+ kind: "cli",
32775
+ name: "skills add",
32776
+ module: route31
32777
+ }),
32778
+ "cli:skills/list": Object.freeze({
32779
+ id: "cli:skills/list",
32780
+ kind: "cli",
32781
+ name: "skills list",
32782
+ module: route32
32783
+ }),
32784
+ "cli:skills/remove": Object.freeze({
32785
+ id: "cli:skills/remove",
32786
+ kind: "cli",
32787
+ name: "skills remove",
32788
+ module: route33
32789
+ }),
32422
32790
  "cli:thread": Object.freeze({
32423
32791
  id: "cli:thread",
32424
32792
  kind: "cli",
32425
32793
  name: "thread",
32426
- module: route31
32794
+ module: route34
32427
32795
  })
32428
32796
  });
32429
32797
  const requests = new Map();
@@ -32458,18 +32826,18 @@ const render = async (message)=>{
32458
32826
  };
32459
32827
  try {
32460
32828
  const cwd = process.cwd();
32461
- await (0,_agent_bundle_runtime__rspack_import_36/* .runAgentRequest */.iC)({
32829
+ await (0,_agent_bundle_runtime__rspack_import_39/* .runAgentRequest */.iC)({
32462
32830
  capabilities: {
32463
- command: (0,_agent_bundle_runtime__rspack_import_36/* .unavailable */.hU)(),
32464
- filesystem: (0,_agent_bundle_runtime__rspack_import_36/* .unavailable */.hU)(),
32465
- network: (0,_agent_bundle_runtime__rspack_import_36/* .unavailable */.hU)(),
32466
- projectRoot: (0,_agent_bundle_runtime__rspack_import_36/* .available */.qC)({
32831
+ command: (0,_agent_bundle_runtime__rspack_import_39/* .unavailable */.hU)(),
32832
+ filesystem: (0,_agent_bundle_runtime__rspack_import_39/* .unavailable */.hU)(),
32833
+ network: (0,_agent_bundle_runtime__rspack_import_39/* .unavailable */.hU)(),
32834
+ projectRoot: (0,_agent_bundle_runtime__rspack_import_39/* .available */.qC)({
32467
32835
  root: cwd
32468
32836
  }, 'derived')
32469
32837
  },
32470
- host: (0,_agent_bundle_runtime__rspack_import_36/* .unavailable */.hU)('unsupported-surface'),
32838
+ host: (0,_agent_bundle_runtime__rspack_import_39/* .unavailable */.hU)('unsupported-surface'),
32471
32839
  invocation: message.request,
32472
- lineage: (0,_agent_bundle_runtime__rspack_import_36/* .unavailable */.hU)('unsupported-surface'),
32840
+ lineage: (0,_agent_bundle_runtime__rspack_import_39/* .unavailable */.hU)('unsupported-surface'),
32473
32841
  plugin: pluginRoot.identity,
32474
32842
  progress: {
32475
32843
  report: async (update)=>{
@@ -32482,8 +32850,8 @@ const render = async (message)=>{
32482
32850
  },
32483
32851
  process: processHit,
32484
32852
  signal: controller.signal,
32485
- terminal: message.terminal === undefined ? (0,_agent_bundle_runtime__rspack_import_36/* .unavailable */.hU)('not-provided') : (0,_agent_bundle_runtime__rspack_import_36/* .available */.qC)(message.terminal, 'native'),
32486
- workspace: (0,_agent_bundle_runtime__rspack_import_36/* .available */.qC)({
32853
+ terminal: message.terminal === undefined ? (0,_agent_bundle_runtime__rspack_import_39/* .unavailable */.hU)('not-provided') : (0,_agent_bundle_runtime__rspack_import_39/* .available */.qC)(message.terminal, 'native'),
32854
+ workspace: (0,_agent_bundle_runtime__rspack_import_39/* .available */.qC)({
32487
32855
  root: cwd
32488
32856
  }, 'derived')
32489
32857
  }, async ()=>{
@@ -32492,7 +32860,7 @@ const render = async (message)=>{
32492
32860
  type: 'observed-render-start'
32493
32861
  });
32494
32862
  const renderStartedAt = performance.now();
32495
- const flight = (0,_agent_bundle_runtime_flight_server__rspack_import_37/* .renderAgentFlight */.y)(composeLayouts(observedRoute, {
32863
+ const flight = (0,_agent_bundle_runtime_flight_server__rspack_import_40/* .renderAgentFlight */.y)(composeLayouts(observedRoute, {
32496
32864
  ...message.props,
32497
32865
  signal: controller.signal
32498
32866
  }, controller.signal), {