grok-bot-cli 0.6.0 → 0.8.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.
package/dist/bin/gbot.mjs CHANGED
@@ -11096,6 +11096,113 @@ __webpack_require__.d(__webpack_exports__, {
11096
11096
  });
11097
11097
 
11098
11098
 
11099
+ },
11100
+ "./src/cli/approvals/list.tsx"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
11101
+ __webpack_require__.r(__webpack_exports__);
11102
+ /* import */ var react_jsx_runtime__rspack_import_0 = __webpack_require__("./node_modules/react/jsx-runtime.js");
11103
+ /* import */ var _agent_bundle_runtime__rspack_import_2 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/506.js");
11104
+ /* import */ var _core_grok_approval_routes_js__rspack_import_1 = __webpack_require__("./src/core/grok-approval-routes.ts");
11105
+
11106
+
11107
+
11108
+
11109
+ const config = {
11110
+ description: 'List current Grok approval cards (latest 200 entries).',
11111
+ positionals: [
11112
+ 'target'
11113
+ ],
11114
+ inputJsonSchema: {
11115
+ type: 'object',
11116
+ properties: {
11117
+ target: {
11118
+ type: 'string'
11119
+ }
11120
+ },
11121
+ required: [
11122
+ 'target'
11123
+ ],
11124
+ additionalProperties: false
11125
+ }
11126
+ };
11127
+ async function route({ input }) {
11128
+ const out = await (0,_core_grok_approval_routes_js__rspack_import_1/* .listOperation */.gi)(input);
11129
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g6.Result, {
11130
+ value: out,
11131
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g6.Text, {
11132
+ children: JSON.stringify(out)
11133
+ })
11134
+ });
11135
+ }
11136
+
11137
+ __webpack_require__.d(__webpack_exports__, {
11138
+ "default": () => (route),
11139
+ inputSchema: () => (/* reexport safe */ _core_grok_approval_routes_js__rspack_import_1.cE),
11140
+ resultSchema: () => (/* reexport safe */ _core_grok_approval_routes_js__rspack_import_1.FD)
11141
+ }, {
11142
+ config: config
11143
+ });
11144
+
11145
+
11146
+ },
11147
+ "./src/cli/approvals/respond.tsx"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
11148
+ __webpack_require__.r(__webpack_exports__);
11149
+ /* import */ var react_jsx_runtime__rspack_import_0 = __webpack_require__("./node_modules/react/jsx-runtime.js");
11150
+ /* import */ var _agent_bundle_runtime__rspack_import_2 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/506.js");
11151
+ /* import */ var _core_grok_approval_routes_js__rspack_import_1 = __webpack_require__("./src/core/grok-approval-routes.ts");
11152
+
11153
+
11154
+
11155
+
11156
+ const config = {
11157
+ description: 'Explicit user decision: accept a Grok request once or decline; never grant persistent permissions.',
11158
+ inputJsonSchema: {
11159
+ type: 'object',
11160
+ properties: {
11161
+ target: {
11162
+ type: 'string'
11163
+ },
11164
+ entryId: {
11165
+ type: 'string'
11166
+ },
11167
+ requestId: {
11168
+ type: 'string'
11169
+ },
11170
+ decision: {
11171
+ type: 'string',
11172
+ enum: [
11173
+ 'accept',
11174
+ 'decline'
11175
+ ]
11176
+ }
11177
+ },
11178
+ required: [
11179
+ 'target',
11180
+ 'entryId',
11181
+ 'requestId',
11182
+ 'decision'
11183
+ ],
11184
+ additionalProperties: false
11185
+ }
11186
+ };
11187
+ async function route({ input }) {
11188
+ const out = await (0,_core_grok_approval_routes_js__rspack_import_1/* .respondOperation */.lr)(input);
11189
+ return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g6.Result, {
11190
+ value: out,
11191
+ children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g6.Text, {
11192
+ children: JSON.stringify(out)
11193
+ })
11194
+ });
11195
+ }
11196
+
11197
+ __webpack_require__.d(__webpack_exports__, {
11198
+ "default": () => (route),
11199
+ inputSchema: () => (/* reexport safe */ _core_grok_approval_routes_js__rspack_import_1.v1),
11200
+ resultSchema: () => (/* reexport safe */ _core_grok_approval_routes_js__rspack_import_1.FD)
11201
+ }, {
11202
+ config: config
11203
+ });
11204
+
11205
+
11099
11206
  },
11100
11207
  "./src/cli/bots/create.tsx"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
11101
11208
  __webpack_require__.r(__webpack_exports__);
@@ -13955,6 +14062,37 @@ __webpack_require__.d(__webpack_exports__, {
13955
14062
  });
13956
14063
 
13957
14064
 
14065
+ },
14066
+ "./src/core/grok-approval-routes.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
14067
+ /* import */ var zod__rspack_import_3 = __webpack_require__("./node_modules/zod/v4/classic/schemas.js");
14068
+ /* import */ var _gateway_js__rspack_import_0 = __webpack_require__("./src/core/gateway.js");
14069
+ /* import */ var _grok_approvals_js__rspack_import_1 = __webpack_require__("./src/core/grok-approvals.js");
14070
+ /* import */ var _gbot_js__rspack_import_2 = __webpack_require__("./src/gbot.ts");
14071
+
14072
+
14073
+
14074
+
14075
+ const listSchema = zod__rspack_import_3/* .strictObject */.rej({
14076
+ target: zod__rspack_import_3/* .string */.YjP().min(1).max(1024)
14077
+ });
14078
+ const respondSchema = _grok_approvals_js__rspack_import_1/* .grokApprovalResponseSchema */.T5;
14079
+ const resultSchema = zod__rspack_import_3/* .record */.g1P(zod__rspack_import_3/* .string */.YjP(), zod__rspack_import_3/* .json */.Pq9());
14080
+ const listOperation = (input)=>(0,_gbot_js__rspack_import_2/* .withRedactedErrors */.yF)(async ()=>(0,_gateway_js__rspack_import_0/* .listGrokApprovals */.MI)(await (0,_gateway_js__rspack_import_0/* .connectGateway */.Vq)(), listSchema.parse(input).target));
14081
+ const respondOperation = (input)=>(0,_gbot_js__rspack_import_2/* .withRedactedErrors */.yF)(async ()=>{
14082
+ const { target, ...response } = respondSchema.parse(input);
14083
+ return (0,_gateway_js__rspack_import_0/* .respondGrokApproval */.OR)(await (0,_gateway_js__rspack_import_0/* .connectGateway */.Vq)(), target, response);
14084
+ });
14085
+
14086
+ __webpack_require__.d(__webpack_exports__, {
14087
+ }, {
14088
+ FD: resultSchema,
14089
+ cE: listSchema,
14090
+ gi: listOperation,
14091
+ lr: respondOperation,
14092
+ v1: respondSchema
14093
+ });
14094
+
14095
+
13958
14096
  },
13959
14097
  "./src/core/relay/routes.ts"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
13960
14098
  /* import */ var _agent_bundle_runtime__rspack_import_4 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/40.js");
@@ -16889,6 +17027,26 @@ __webpack_require__.d(__webpack_exports__, {
16889
17027
  });
16890
17028
 
16891
17029
 
17030
+ },
17031
+ "./node_modules/agent-bundle/dist/790~1.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
17032
+ const isErrno = (error, code)=>'object' == typeof error && null !== error && 'code' in error && error.code === code;
17033
+ const errorMessage = (error)=>error instanceof Error ? error.message : String(error);
17034
+ class CodedError extends Error {
17035
+ code;
17036
+ constructor(name, code, message, options){
17037
+ super(message, options);
17038
+ this.name = name;
17039
+ this.code = code;
17040
+ }
17041
+ }
17042
+
17043
+
17044
+ __webpack_require__.d(__webpack_exports__, {
17045
+ }, {
17046
+ gJ: errorMessage
17047
+ });
17048
+
17049
+
16892
17050
  },
16893
17051
  "./node_modules/agent-bundle/dist/991~1.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
16894
17052
  const isJsonWhitespace = (code)=>0x09 === code || 0x0a === code || 0x0d === code || 0x20 === code;
@@ -17073,7 +17231,9 @@ __webpack_require__.d(__webpack_exports__, {
17073
17231
  },
17074
17232
  "./node_modules/agent-bundle/dist/cli-entry.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
17075
17233
  /* import */ var _667_1_js__rspack_import_0 = __webpack_require__("./node_modules/agent-bundle/dist/667~1.js");
17076
- /* import */ var _terminal_capability_js__rspack_import_1 = __webpack_require__("./node_modules/agent-bundle/dist/terminal-capability.js");
17234
+ /* import */ var _790_1_js__rspack_import_1 = __webpack_require__("./node_modules/agent-bundle/dist/790~1.js");
17235
+ /* import */ var _terminal_capability_js__rspack_import_2 = __webpack_require__("./node_modules/agent-bundle/dist/terminal-capability.js");
17236
+
17077
17237
 
17078
17238
 
17079
17239
  class CliUsageError extends Error {
@@ -17194,14 +17354,14 @@ const cliInputError = (command, input, error)=>{
17194
17354
  };
17195
17355
  const resolveTerminal = (hostSurface, options)=>{
17196
17356
  if (void 0 !== options.terminal) return options.terminal;
17197
- if (void 0 === options.isTty) return (0,_terminal_capability_js__rspack_import_1/* .detectProcessTerminal */.JH)(hostSurface);
17357
+ if (void 0 === options.isTty) return (0,_terminal_capability_js__rspack_import_2/* .detectProcessTerminal */.JH)(hostSurface);
17198
17358
  const stdout = {
17199
17359
  columns: process.stdout.columns,
17200
17360
  fd: 1,
17201
17361
  isTTY: options.isTty(),
17202
17362
  rows: process.stdout.rows
17203
17363
  };
17204
- return (0,_terminal_capability_js__rspack_import_1/* .detectProcessTerminal */.JH)(hostSurface, {
17364
+ return (0,_terminal_capability_js__rspack_import_2/* .detectProcessTerminal */.JH)(hostSurface, {
17205
17365
  stdout
17206
17366
  });
17207
17367
  };
@@ -17638,6 +17798,16 @@ const progressNodes = (node)=>{
17638
17798
  }
17639
17799
  };
17640
17800
  const clearProgressLine = '\r\u001B[2K';
17801
+ const renderFailedCode = 'render-failed';
17802
+ const writeRenderFailure = (mode, error, writeErr)=>{
17803
+ const message = (0,_790_1_js__rspack_import_1/* .errorMessage */.gJ)(error);
17804
+ writeErr('json' === mode ? `${(0,_667_1_js__rspack_import_0/* .stableJson */._Y)({
17805
+ error: {
17806
+ code: renderFailedCode,
17807
+ message
17808
+ }
17809
+ })}\n` : `[${renderFailedCode}] ${message}\n`);
17810
+ };
17641
17811
  const runRenderedInvocation = async (options)=>{
17642
17812
  const { mode, writeErr, writeOut } = options;
17643
17813
  const reader = options.session.events().getReader();
@@ -17701,7 +17871,7 @@ const runRenderedInvocation = async (options)=>{
17701
17871
  writeErr('Aborted.\n');
17702
17872
  return 1;
17703
17873
  }
17704
- writeErr(`${error instanceof Error ? error.message : String(error)}\n`);
17874
+ writeRenderFailure(mode, error, writeErr);
17705
17875
  return 1;
17706
17876
  }
17707
17877
  clearProgress();
@@ -75162,7 +75332,7 @@ function strictObject(shape, params) {
75162
75332
  type: "object",
75163
75333
  shape,
75164
75334
  catchall: never(),
75165
- ...util.normalizeParams(params),
75335
+ ..._core_index_js__rspack_import_4/* .normalizeParams */.A2(params),
75166
75336
  });
75167
75337
  }
75168
75338
  // looseObject
@@ -75796,6 +75966,7 @@ __webpack_require__.d(__webpack_exports__, {
75796
75966
  euz: () => (literal),
75797
75967
  g1P: () => (record),
75798
75968
  k5n: () => (_enum),
75969
+ rej: () => (strictObject),
75799
75970
  zMY: () => (boolean)
75800
75971
  });
75801
75972
 
@@ -84066,107 +84237,113 @@ __webpack_require__.d(__webpack_exports__, {
84066
84237
  __webpack_require__.a(__webpack_module__, async function (__rspack_load_async_deps, __rspack_async_done) { try {
84067
84238
  /* import */ var agent_bundle_launch_env_layer__rspack_import_0 = __webpack_require__("./.agent-bundle-virtual/bin-gbot-0.mjs");
84068
84239
  /* import */ var agent_bundle_cli_entry__rspack_import_1 = __webpack_require__("./node_modules/agent-bundle/dist/cli-entry.js");
84069
- /* import */ var _agent_bundle_runtime__rspack_import_34 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/49.js");
84070
- /* import */ var _agent_bundle_runtime__rspack_import_35 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/736.js");
84071
- /* import */ var _agent_bundle_runtime__rspack_import_36 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/index.js");
84240
+ /* import */ var _agent_bundle_runtime__rspack_import_36 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/49.js");
84241
+ /* import */ var _agent_bundle_runtime__rspack_import_37 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/736.js");
84242
+ /* import */ var _agent_bundle_runtime__rspack_import_38 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/index.js");
84072
84243
  /* import */ var node_url__rspack_import_2 = __webpack_require__("node:url");
84073
84244
  /* import */ var node_worker_threads__rspack_import_3 = __webpack_require__("node:worker_threads");
84074
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_create_tsx__rspack_import_4 = __webpack_require__("./src/cli/bots/create.tsx");
84075
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_delete_tsx__rspack_import_5 = __webpack_require__("./src/cli/bots/delete.tsx");
84076
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_get_tsx__rspack_import_6 = __webpack_require__("./src/cli/bots/get.tsx");
84077
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_list_tsx__rspack_import_7 = __webpack_require__("./src/cli/bots/list.tsx");
84078
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_update_tsx__rspack_import_8 = __webpack_require__("./src/cli/bots/update.tsx");
84079
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_respond_tsx__rspack_import_9 = __webpack_require__("./src/cli/codex/bridge/respond.tsx");
84080
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_run_tsx__rspack_import_10 = __webpack_require__("./src/cli/codex/bridge/run.tsx");
84081
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_start_tsx__rspack_import_11 = __webpack_require__("./src/cli/codex/bridge/start.tsx");
84082
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_status_tsx__rspack_import_12 = __webpack_require__("./src/cli/codex/bridge/status.tsx");
84083
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_stop_tsx__rspack_import_13 = __webpack_require__("./src/cli/codex/bridge/stop.tsx");
84084
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_desktop_shim_tsx__rspack_import_14 = __webpack_require__("./src/cli/codex/desktop-shim.tsx");
84085
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_list_threads_tsx__rspack_import_15 = __webpack_require__("./src/cli/codex/list-threads.tsx");
84086
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_queue_tsx__rspack_import_16 = __webpack_require__("./src/cli/codex/queue.tsx");
84087
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_send_tsx__rspack_import_17 = __webpack_require__("./src/cli/codex/send.tsx");
84088
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_status_tsx__rspack_import_18 = __webpack_require__("./src/cli/codex/status.tsx");
84089
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_wait_tsx__rspack_import_19 = __webpack_require__("./src/cli/codex/wait.tsx");
84090
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_watch_tsx__rspack_import_20 = __webpack_require__("./src/cli/codex/watch.tsx");
84091
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_doctor_tsx__rspack_import_21 = __webpack_require__("./src/cli/doctor.tsx");
84092
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_add_tsx__rspack_import_22 = __webpack_require__("./src/cli/groups/add.tsx");
84093
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_create_tsx__rspack_import_23 = __webpack_require__("./src/cli/groups/create.tsx");
84094
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_delete_tsx__rspack_import_24 = __webpack_require__("./src/cli/groups/delete.tsx");
84095
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_get_tsx__rspack_import_25 = __webpack_require__("./src/cli/groups/get.tsx");
84096
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_list_tsx__rspack_import_26 = __webpack_require__("./src/cli/groups/list.tsx");
84097
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_members_tsx__rspack_import_27 = __webpack_require__("./src/cli/groups/members.tsx");
84098
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_remove_tsx__rspack_import_28 = __webpack_require__("./src/cli/groups/remove.tsx");
84099
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_set_tsx__rspack_import_29 = __webpack_require__("./src/cli/groups/set.tsx");
84100
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_update_tsx__rspack_import_30 = __webpack_require__("./src/cli/groups/update.tsx");
84101
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_history_tsx__rspack_import_31 = __webpack_require__("./src/cli/history.tsx");
84102
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_32 = __webpack_require__("./src/cli/send.tsx");
84103
- /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_33 = __webpack_require__("./src/cli/thread.tsx");
84245
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_approvals_list_tsx__rspack_import_4 = __webpack_require__("./src/cli/approvals/list.tsx");
84246
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_approvals_respond_tsx__rspack_import_5 = __webpack_require__("./src/cli/approvals/respond.tsx");
84247
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_create_tsx__rspack_import_6 = __webpack_require__("./src/cli/bots/create.tsx");
84248
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_delete_tsx__rspack_import_7 = __webpack_require__("./src/cli/bots/delete.tsx");
84249
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_get_tsx__rspack_import_8 = __webpack_require__("./src/cli/bots/get.tsx");
84250
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_list_tsx__rspack_import_9 = __webpack_require__("./src/cli/bots/list.tsx");
84251
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_update_tsx__rspack_import_10 = __webpack_require__("./src/cli/bots/update.tsx");
84252
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_respond_tsx__rspack_import_11 = __webpack_require__("./src/cli/codex/bridge/respond.tsx");
84253
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_run_tsx__rspack_import_12 = __webpack_require__("./src/cli/codex/bridge/run.tsx");
84254
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_start_tsx__rspack_import_13 = __webpack_require__("./src/cli/codex/bridge/start.tsx");
84255
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_status_tsx__rspack_import_14 = __webpack_require__("./src/cli/codex/bridge/status.tsx");
84256
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_stop_tsx__rspack_import_15 = __webpack_require__("./src/cli/codex/bridge/stop.tsx");
84257
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_desktop_shim_tsx__rspack_import_16 = __webpack_require__("./src/cli/codex/desktop-shim.tsx");
84258
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_list_threads_tsx__rspack_import_17 = __webpack_require__("./src/cli/codex/list-threads.tsx");
84259
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_queue_tsx__rspack_import_18 = __webpack_require__("./src/cli/codex/queue.tsx");
84260
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_send_tsx__rspack_import_19 = __webpack_require__("./src/cli/codex/send.tsx");
84261
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_status_tsx__rspack_import_20 = __webpack_require__("./src/cli/codex/status.tsx");
84262
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_wait_tsx__rspack_import_21 = __webpack_require__("./src/cli/codex/wait.tsx");
84263
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_watch_tsx__rspack_import_22 = __webpack_require__("./src/cli/codex/watch.tsx");
84264
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_doctor_tsx__rspack_import_23 = __webpack_require__("./src/cli/doctor.tsx");
84265
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_add_tsx__rspack_import_24 = __webpack_require__("./src/cli/groups/add.tsx");
84266
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_create_tsx__rspack_import_25 = __webpack_require__("./src/cli/groups/create.tsx");
84267
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_delete_tsx__rspack_import_26 = __webpack_require__("./src/cli/groups/delete.tsx");
84268
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_get_tsx__rspack_import_27 = __webpack_require__("./src/cli/groups/get.tsx");
84269
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_list_tsx__rspack_import_28 = __webpack_require__("./src/cli/groups/list.tsx");
84270
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_members_tsx__rspack_import_29 = __webpack_require__("./src/cli/groups/members.tsx");
84271
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_remove_tsx__rspack_import_30 = __webpack_require__("./src/cli/groups/remove.tsx");
84272
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_set_tsx__rspack_import_31 = __webpack_require__("./src/cli/groups/set.tsx");
84273
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_update_tsx__rspack_import_32 = __webpack_require__("./src/cli/groups/update.tsx");
84274
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_history_tsx__rspack_import_33 = __webpack_require__("./src/cli/history.tsx");
84275
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_34 = __webpack_require__("./src/cli/send.tsx");
84276
+ /* import */ var _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_35 = __webpack_require__("./src/cli/thread.tsx");
84277
+
84104
84278
 
84105
84279
 
84106
84280
 
84107
84281
 
84108
84282
 
84283
+ const route0 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_approvals_list_tsx__rspack_import_4, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_approvals_list_tsx__rspack_import_4);
84109
84284
 
84110
- const route0 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_create_tsx__rspack_import_4, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_create_tsx__rspack_import_4);
84285
+ const route1 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_approvals_respond_tsx__rspack_import_5, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_approvals_respond_tsx__rspack_import_5);
84111
84286
 
84112
- const route1 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_delete_tsx__rspack_import_5, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_delete_tsx__rspack_import_5);
84287
+ const route2 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_create_tsx__rspack_import_6, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_create_tsx__rspack_import_6);
84113
84288
 
84114
- const route2 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_get_tsx__rspack_import_6, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_get_tsx__rspack_import_6);
84289
+ const route3 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_delete_tsx__rspack_import_7, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_delete_tsx__rspack_import_7);
84115
84290
 
84116
- const route3 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_list_tsx__rspack_import_7, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_list_tsx__rspack_import_7);
84291
+ const route4 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_get_tsx__rspack_import_8, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_get_tsx__rspack_import_8);
84117
84292
 
84118
- const route4 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_update_tsx__rspack_import_8, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_update_tsx__rspack_import_8);
84293
+ const route5 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_list_tsx__rspack_import_9, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_list_tsx__rspack_import_9);
84119
84294
 
84120
- const route5 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_respond_tsx__rspack_import_9, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_respond_tsx__rspack_import_9);
84295
+ const route6 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_update_tsx__rspack_import_10, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_bots_update_tsx__rspack_import_10);
84121
84296
 
84122
- const route6 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_run_tsx__rspack_import_10, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_run_tsx__rspack_import_10);
84297
+ const route7 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_respond_tsx__rspack_import_11, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_respond_tsx__rspack_import_11);
84123
84298
 
84124
- const route7 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_start_tsx__rspack_import_11, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_start_tsx__rspack_import_11);
84299
+ const route8 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_run_tsx__rspack_import_12, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_run_tsx__rspack_import_12);
84125
84300
 
84126
- const route8 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_status_tsx__rspack_import_12, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_status_tsx__rspack_import_12);
84301
+ const route9 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_start_tsx__rspack_import_13, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_start_tsx__rspack_import_13);
84127
84302
 
84128
- const route9 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_stop_tsx__rspack_import_13, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_stop_tsx__rspack_import_13);
84303
+ const route10 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_status_tsx__rspack_import_14, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_status_tsx__rspack_import_14);
84129
84304
 
84130
- const route10 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_desktop_shim_tsx__rspack_import_14, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_desktop_shim_tsx__rspack_import_14);
84305
+ const route11 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_stop_tsx__rspack_import_15, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_bridge_stop_tsx__rspack_import_15);
84131
84306
 
84132
- const route11 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_list_threads_tsx__rspack_import_15, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_list_threads_tsx__rspack_import_15);
84307
+ const route12 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_desktop_shim_tsx__rspack_import_16, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_desktop_shim_tsx__rspack_import_16);
84133
84308
 
84134
- const route12 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_queue_tsx__rspack_import_16, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_queue_tsx__rspack_import_16);
84309
+ const route13 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_list_threads_tsx__rspack_import_17, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_list_threads_tsx__rspack_import_17);
84135
84310
 
84136
- const route13 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_send_tsx__rspack_import_17, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_send_tsx__rspack_import_17);
84311
+ const route14 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_queue_tsx__rspack_import_18, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_queue_tsx__rspack_import_18);
84137
84312
 
84138
- const route14 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_status_tsx__rspack_import_18, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_status_tsx__rspack_import_18);
84313
+ const route15 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_send_tsx__rspack_import_19, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_send_tsx__rspack_import_19);
84139
84314
 
84140
- const route15 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_wait_tsx__rspack_import_19, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_wait_tsx__rspack_import_19);
84315
+ const route16 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_status_tsx__rspack_import_20, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_status_tsx__rspack_import_20);
84141
84316
 
84142
- const route16 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_watch_tsx__rspack_import_20, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_watch_tsx__rspack_import_20);
84317
+ const route17 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_wait_tsx__rspack_import_21, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_wait_tsx__rspack_import_21);
84143
84318
 
84144
- const route17 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_doctor_tsx__rspack_import_21, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_doctor_tsx__rspack_import_21);
84319
+ const route18 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_watch_tsx__rspack_import_22, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_codex_watch_tsx__rspack_import_22);
84145
84320
 
84146
- const route18 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_add_tsx__rspack_import_22, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_add_tsx__rspack_import_22);
84321
+ const route19 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_doctor_tsx__rspack_import_23, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_doctor_tsx__rspack_import_23);
84147
84322
 
84148
- const route19 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_create_tsx__rspack_import_23, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_create_tsx__rspack_import_23);
84323
+ const route20 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_add_tsx__rspack_import_24, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_add_tsx__rspack_import_24);
84149
84324
 
84150
- const route20 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_delete_tsx__rspack_import_24, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_delete_tsx__rspack_import_24);
84325
+ const route21 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_create_tsx__rspack_import_25, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_create_tsx__rspack_import_25);
84151
84326
 
84152
- const route21 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_get_tsx__rspack_import_25, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_get_tsx__rspack_import_25);
84327
+ const route22 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_delete_tsx__rspack_import_26, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_delete_tsx__rspack_import_26);
84153
84328
 
84154
- const route22 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_list_tsx__rspack_import_26, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_list_tsx__rspack_import_26);
84329
+ const route23 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_get_tsx__rspack_import_27, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_get_tsx__rspack_import_27);
84155
84330
 
84156
- const route23 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_members_tsx__rspack_import_27, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_members_tsx__rspack_import_27);
84331
+ const route24 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_list_tsx__rspack_import_28, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_list_tsx__rspack_import_28);
84157
84332
 
84158
- const route24 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_remove_tsx__rspack_import_28, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_remove_tsx__rspack_import_28);
84333
+ const route25 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_members_tsx__rspack_import_29, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_members_tsx__rspack_import_29);
84159
84334
 
84160
- const route25 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_set_tsx__rspack_import_29, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_set_tsx__rspack_import_29);
84335
+ const route26 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_remove_tsx__rspack_import_30, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_remove_tsx__rspack_import_30);
84161
84336
 
84162
- const route26 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_update_tsx__rspack_import_30, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_update_tsx__rspack_import_30);
84337
+ const route27 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_set_tsx__rspack_import_31, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_set_tsx__rspack_import_31);
84163
84338
 
84164
- const route27 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_history_tsx__rspack_import_31, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_history_tsx__rspack_import_31);
84339
+ const route28 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_update_tsx__rspack_import_32, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_groups_update_tsx__rspack_import_32);
84165
84340
 
84166
- const route28 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_32, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_32);
84341
+ const route29 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_history_tsx__rspack_import_33, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_history_tsx__rspack_import_33);
84167
84342
 
84168
- const route29 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_33, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_33);
84169
- const pluginRoot = (0,_agent_bundle_runtime__rspack_import_34/* .resolvePluginRoot */.E7)({
84343
+ const route30 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_34, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_send_tsx__rspack_import_34);
84344
+
84345
+ const route31 = Object.assign({}, Reflect.get(_home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_35, 'default'), _home_runner_work_grok_bot_cli_grok_bot_cli_src_cli_thread_tsx__rspack_import_35);
84346
+ const pluginRoot = (0,_agent_bundle_runtime__rspack_import_36/* .resolvePluginRoot */.E7)({
84170
84347
  fallback: (0,node_url__rspack_import_2.fileURLToPath)(new URL('..', import.meta.url)),
84171
84348
  stateAnchor: 'user-data'
84172
84349
  });
@@ -84176,98 +84353,170 @@ const processLifetime = {
84176
84353
  pid: process.pid
84177
84354
  };
84178
84355
  const routes = Object.freeze({
84179
- "cli:bots/create": Object.freeze({
84356
+ "cli:approvals/list": Object.freeze({
84180
84357
  module: route0
84181
84358
  }),
84182
- "cli:bots/delete": Object.freeze({
84359
+ "cli:approvals/respond": Object.freeze({
84183
84360
  module: route1
84184
84361
  }),
84185
- "cli:bots/get": Object.freeze({
84362
+ "cli:bots/create": Object.freeze({
84186
84363
  module: route2
84187
84364
  }),
84188
- "cli:bots/list": Object.freeze({
84365
+ "cli:bots/delete": Object.freeze({
84189
84366
  module: route3
84190
84367
  }),
84191
- "cli:bots/update": Object.freeze({
84368
+ "cli:bots/get": Object.freeze({
84192
84369
  module: route4
84193
84370
  }),
84194
- "cli:codex/bridge/respond": Object.freeze({
84371
+ "cli:bots/list": Object.freeze({
84195
84372
  module: route5
84196
84373
  }),
84197
- "cli:codex/bridge/run": Object.freeze({
84374
+ "cli:bots/update": Object.freeze({
84198
84375
  module: route6
84199
84376
  }),
84200
- "cli:codex/bridge/start": Object.freeze({
84377
+ "cli:codex/bridge/respond": Object.freeze({
84201
84378
  module: route7
84202
84379
  }),
84203
- "cli:codex/bridge/status": Object.freeze({
84380
+ "cli:codex/bridge/run": Object.freeze({
84204
84381
  module: route8
84205
84382
  }),
84206
- "cli:codex/bridge/stop": Object.freeze({
84383
+ "cli:codex/bridge/start": Object.freeze({
84207
84384
  module: route9
84208
84385
  }),
84209
- "cli:codex/desktop-shim": Object.freeze({
84386
+ "cli:codex/bridge/status": Object.freeze({
84210
84387
  module: route10
84211
84388
  }),
84212
- "cli:codex/list-threads": Object.freeze({
84389
+ "cli:codex/bridge/stop": Object.freeze({
84213
84390
  module: route11
84214
84391
  }),
84215
- "cli:codex/queue": Object.freeze({
84392
+ "cli:codex/desktop-shim": Object.freeze({
84216
84393
  module: route12
84217
84394
  }),
84218
- "cli:codex/send": Object.freeze({
84395
+ "cli:codex/list-threads": Object.freeze({
84219
84396
  module: route13
84220
84397
  }),
84221
- "cli:codex/status": Object.freeze({
84398
+ "cli:codex/queue": Object.freeze({
84222
84399
  module: route14
84223
84400
  }),
84224
- "cli:codex/wait": Object.freeze({
84401
+ "cli:codex/send": Object.freeze({
84225
84402
  module: route15
84226
84403
  }),
84227
- "cli:codex/watch": Object.freeze({
84404
+ "cli:codex/status": Object.freeze({
84228
84405
  module: route16
84229
84406
  }),
84230
- "cli:doctor": Object.freeze({
84407
+ "cli:codex/wait": Object.freeze({
84231
84408
  module: route17
84232
84409
  }),
84233
- "cli:groups/add": Object.freeze({
84410
+ "cli:codex/watch": Object.freeze({
84234
84411
  module: route18
84235
84412
  }),
84236
- "cli:groups/create": Object.freeze({
84413
+ "cli:doctor": Object.freeze({
84237
84414
  module: route19
84238
84415
  }),
84239
- "cli:groups/delete": Object.freeze({
84416
+ "cli:groups/add": Object.freeze({
84240
84417
  module: route20
84241
84418
  }),
84242
- "cli:groups/get": Object.freeze({
84419
+ "cli:groups/create": Object.freeze({
84243
84420
  module: route21
84244
84421
  }),
84245
- "cli:groups/list": Object.freeze({
84422
+ "cli:groups/delete": Object.freeze({
84246
84423
  module: route22
84247
84424
  }),
84248
- "cli:groups/members": Object.freeze({
84425
+ "cli:groups/get": Object.freeze({
84249
84426
  module: route23
84250
84427
  }),
84251
- "cli:groups/remove": Object.freeze({
84428
+ "cli:groups/list": Object.freeze({
84252
84429
  module: route24
84253
84430
  }),
84254
- "cli:groups/set": Object.freeze({
84431
+ "cli:groups/members": Object.freeze({
84255
84432
  module: route25
84256
84433
  }),
84257
- "cli:groups/update": Object.freeze({
84434
+ "cli:groups/remove": Object.freeze({
84258
84435
  module: route26
84259
84436
  }),
84260
- "cli:history": Object.freeze({
84437
+ "cli:groups/set": Object.freeze({
84261
84438
  module: route27
84262
84439
  }),
84263
- "cli:send": Object.freeze({
84440
+ "cli:groups/update": Object.freeze({
84264
84441
  module: route28
84265
84442
  }),
84266
- "cli:thread": Object.freeze({
84443
+ "cli:history": Object.freeze({
84267
84444
  module: route29
84445
+ }),
84446
+ "cli:send": Object.freeze({
84447
+ module: route30
84448
+ }),
84449
+ "cli:thread": Object.freeze({
84450
+ module: route31
84268
84451
  })
84269
84452
  });
84270
84453
  const commands = Object.freeze([
84454
+ {
84455
+ "aliases": [],
84456
+ "description": "List current Grok approval cards (latest 200 entries).",
84457
+ "exitCode": "zero",
84458
+ "options": [
84459
+ {
84460
+ "key": "target",
84461
+ "kind": "string",
84462
+ "option": "target",
84463
+ "positional": 0,
84464
+ "repeated": false,
84465
+ "required": true
84466
+ }
84467
+ ],
84468
+ "path": [
84469
+ "approvals",
84470
+ "list"
84471
+ ],
84472
+ "rendered": true,
84473
+ "routeId": "cli:approvals/list"
84474
+ },
84475
+ {
84476
+ "aliases": [],
84477
+ "description": "Explicit user decision: accept a Grok request once or decline; never grant persistent permissions.",
84478
+ "exitCode": "zero",
84479
+ "options": [
84480
+ {
84481
+ "choices": [
84482
+ "accept",
84483
+ "decline"
84484
+ ],
84485
+ "key": "decision",
84486
+ "kind": "enum",
84487
+ "option": "decision",
84488
+ "repeated": false,
84489
+ "required": true
84490
+ },
84491
+ {
84492
+ "key": "entryId",
84493
+ "kind": "string",
84494
+ "option": "entry-id",
84495
+ "repeated": false,
84496
+ "required": true
84497
+ },
84498
+ {
84499
+ "key": "requestId",
84500
+ "kind": "string",
84501
+ "option": "request-id",
84502
+ "repeated": false,
84503
+ "required": true
84504
+ },
84505
+ {
84506
+ "key": "target",
84507
+ "kind": "string",
84508
+ "option": "target",
84509
+ "repeated": false,
84510
+ "required": true
84511
+ }
84512
+ ],
84513
+ "path": [
84514
+ "approvals",
84515
+ "respond"
84516
+ ],
84517
+ "rendered": true,
84518
+ "routeId": "cli:approvals/respond"
84519
+ },
84271
84520
  {
84272
84521
  "aliases": [],
84273
84522
  "description": "Create a Grok Bot bot.",
@@ -85978,27 +86227,27 @@ const execute = async (command, input, context)=>{
85978
86227
  instanceId: processLifetime.instanceId,
85979
86228
  pid: processLifetime.pid
85980
86229
  };
85981
- const result = await (0,_agent_bundle_runtime__rspack_import_35/* .runAgentRequest */.iC)({
86230
+ const result = await (0,_agent_bundle_runtime__rspack_import_37/* .runAgentRequest */.iC)({
85982
86231
  capabilities: {
85983
- command: (0,_agent_bundle_runtime__rspack_import_35/* .unavailable */.hU)(),
85984
- filesystem: (0,_agent_bundle_runtime__rspack_import_35/* .unavailable */.hU)(),
85985
- network: (0,_agent_bundle_runtime__rspack_import_35/* .unavailable */.hU)(),
85986
- projectRoot: (0,_agent_bundle_runtime__rspack_import_35/* .available */.qC)({
86232
+ command: (0,_agent_bundle_runtime__rspack_import_37/* .unavailable */.hU)(),
86233
+ filesystem: (0,_agent_bundle_runtime__rspack_import_37/* .unavailable */.hU)(),
86234
+ network: (0,_agent_bundle_runtime__rspack_import_37/* .unavailable */.hU)(),
86235
+ projectRoot: (0,_agent_bundle_runtime__rspack_import_37/* .available */.qC)({
85987
86236
  root: cwd
85988
86237
  }, 'derived')
85989
86238
  },
85990
- host: (0,_agent_bundle_runtime__rspack_import_35/* .unavailable */.hU)('unsupported-surface'),
86239
+ host: (0,_agent_bundle_runtime__rspack_import_37/* .unavailable */.hU)('unsupported-surface'),
85991
86240
  invocation: {
85992
86241
  kind: 'cli',
85993
86242
  operationId: command.routeId,
85994
86243
  surface: command.path.join(' ')
85995
86244
  },
85996
- lineage: (0,_agent_bundle_runtime__rspack_import_35/* .unavailable */.hU)('unsupported-surface'),
86245
+ lineage: (0,_agent_bundle_runtime__rspack_import_37/* .unavailable */.hU)('unsupported-surface'),
85997
86246
  plugin: pluginRoot.identity,
85998
86247
  process: processHit,
85999
86248
  signal: context.signal,
86000
- terminal: (0,_agent_bundle_runtime__rspack_import_35/* .available */.qC)(context.terminal, 'native'),
86001
- workspace: (0,_agent_bundle_runtime__rspack_import_35/* .available */.qC)({
86249
+ terminal: (0,_agent_bundle_runtime__rspack_import_37/* .available */.qC)(context.terminal, 'native'),
86250
+ workspace: (0,_agent_bundle_runtime__rspack_import_37/* .available */.qC)({
86002
86251
  root: cwd
86003
86252
  }, 'derived')
86004
86253
  }, async ()=>route.module.default({
@@ -86105,7 +86354,7 @@ const openRenderedSession = ({ invocation, limits, props, request, routeId, sign
86105
86354
  return stream;
86106
86355
  }
86107
86356
  });
86108
- const dispatcher = (0,_agent_bundle_runtime__rspack_import_36/* .createAgentRenderDispatcher */.jK)(host);
86357
+ const dispatcher = (0,_agent_bundle_runtime__rspack_import_38/* .createAgentRenderDispatcher */.jK)(host);
86109
86358
  return Object.freeze({
86110
86359
  close: async ()=>{
86111
86360
  await worker.terminate();
@@ -86153,7 +86402,7 @@ if (import.meta.main) {
86153
86402
  execute,
86154
86403
  name: "gbot",
86155
86404
  render,
86156
- version: "0.6.0"
86405
+ version: "0.8.0"
86157
86406
  });
86158
86407
  }
86159
86408
 
@@ -87195,10 +87444,10 @@ function listDesktopProcesses(timeoutMs = DESKTOP_PROCESS_LIST_TIMEOUT_MS) {
87195
87444
  const lines = Array.isArray(listProcesses) ? listProcesses : String(listProcesses ?? "").split(/\r?\n/);
87196
87445
  for (const line of lines){
87197
87446
  if (!/app-server/.test(line)) continue;
87198
- // Desktop's bundled binary, Mac or Windows-style separators with optional .exe.
87447
+ // Desktop's bundled binary only (Mac/Windows separators, optional .exe).
87448
+ // Do NOT match probe shells whose cmdline merely mentions ChatGPT.app +
87449
+ // app-server + codex-app-tools — that false-positives MATCH2 / Scout noise.
87199
87450
  if (/ChatGPT\.app[\\/].*Resources[\\/]codex(\.exe)?(["'\s]|$)/.test(line)) return "private-stdio";
87200
- // Same app-server line owned by ChatGPT.app carrying the app-tools override.
87201
- if (/ChatGPT\.app/.test(line) && /(codex_app|mcp_servers\.codex_app|codex-app-tools)/.test(line)) return "private-stdio";
87202
87451
  }
87203
87452
  return "unknown";
87204
87453
  }
@@ -89136,10 +89385,12 @@ __webpack_require__.d(__webpack_exports__, {
89136
89385
  },
89137
89386
  "./src/core/gateway.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
89138
89387
  /* import */ var node_crypto__rspack_import_0 = __webpack_require__("node:crypto");
89139
- /* import */ var _headers_js__rspack_import_4 = __webpack_require__("./src/core/headers.js");
89388
+ /* import */ var _headers_js__rspack_import_5 = __webpack_require__("./src/core/headers.js");
89140
89389
  /* import */ var _app_session_js__rspack_import_1 = __webpack_require__("./src/core/app-session.js");
89141
89390
  /* import */ var _store_js__rspack_import_2 = __webpack_require__("./src/core/store.js");
89142
89391
  /* import */ var _url_policy_js__rspack_import_3 = __webpack_require__("./src/core/url-policy.js");
89392
+ /* import */ var _grok_approvals_js__rspack_import_4 = __webpack_require__("./src/core/grok-approvals.js");
89393
+
89143
89394
 
89144
89395
 
89145
89396
 
@@ -89189,7 +89440,7 @@ function gatewayOverride() {
89189
89440
  kind: "gateway"
89190
89441
  }),
89191
89442
  gatewayToken: token,
89192
- gatewayHeaders: (0,_headers_js__rspack_import_4/* .headersFromEnv */.gx)()
89443
+ gatewayHeaders: (0,_headers_js__rspack_import_5/* .headersFromEnv */.gx)()
89193
89444
  };
89194
89445
  }
89195
89446
  return null;
@@ -89210,7 +89461,7 @@ function sessionFromApp() {
89210
89461
  kind: "gateway"
89211
89462
  }),
89212
89463
  gatewayToken: loaded.gatewayToken,
89213
- gatewayHeaders: (0,_headers_js__rspack_import_4/* .mergeGatewayHeaders */.bQ)((0,_headers_js__rspack_import_4/* .normalizeHeaderMap */.dk)(loaded.headers), (0,_headers_js__rspack_import_4/* .headersFromEnv */.gx)())
89464
+ gatewayHeaders: (0,_headers_js__rspack_import_5/* .mergeGatewayHeaders */.bQ)((0,_headers_js__rspack_import_5/* .normalizeHeaderMap */.dk)(loaded.headers), (0,_headers_js__rspack_import_5/* .headersFromEnv */.gx)())
89214
89465
  };
89215
89466
  }
89216
89467
  function hasGatewayAuth() {
@@ -89270,7 +89521,7 @@ async function ensureSandbox(accessToken, { signal } = {}) {
89270
89521
  method: "POST",
89271
89522
  redirect: "error",
89272
89523
  signal: gatewayDeadline(signal),
89273
- headers: (0,_headers_js__rspack_import_4/* .ensureSandboxHeaders */._6)(accessToken),
89524
+ headers: (0,_headers_js__rspack_import_5/* .ensureSandboxHeaders */._6)(accessToken),
89274
89525
  body: "{}"
89275
89526
  });
89276
89527
  body = await readJson(res);
@@ -89296,7 +89547,7 @@ async function ensureSandbox(accessToken, { signal } = {}) {
89296
89547
  kind: "gateway"
89297
89548
  }),
89298
89549
  gatewayToken: String(gatewayToken),
89299
- gatewayHeaders: (0,_headers_js__rspack_import_4/* .mergeGatewayHeaders */.bQ)((0,_headers_js__rspack_import_4/* .headersFromEnsureSandbox */.Ew)(body), (0,_headers_js__rspack_import_4/* .headersFromEnv */.gx)())
89550
+ gatewayHeaders: (0,_headers_js__rspack_import_5/* .mergeGatewayHeaders */.bQ)((0,_headers_js__rspack_import_5/* .headersFromEnsureSandbox */.Ew)(body), (0,_headers_js__rspack_import_5/* .headersFromEnv */.gx)())
89300
89551
  };
89301
89552
  }
89302
89553
  async function connectGateway({ signal } = {}) {
@@ -89326,7 +89577,7 @@ async function gatewayCall(session, method, body = {}, { signal } = {}) {
89326
89577
  method: "POST",
89327
89578
  redirect: "error",
89328
89579
  signal: gatewayDeadline(prompt ? undefined : signal),
89329
- headers: (0,_headers_js__rspack_import_4/* .requestHeaders */.A1)(session),
89580
+ headers: (0,_headers_js__rspack_import_5/* .requestHeaders */.A1)(session),
89330
89581
  body: JSON.stringify(body)
89331
89582
  };
89332
89583
  assertGatewayActive(signal); // Final synchronous boundary before transmission.
@@ -89593,10 +89844,49 @@ async function getThread(session, ref, rootId) {
89593
89844
  thread: data
89594
89845
  };
89595
89846
  }
89847
+ async function listGrokApprovals(session, ref) {
89848
+ const { target, transcript } = await getTranscriptTail(session, ref, 200);
89849
+ if (!Array.isArray(transcript?.entries) || transcript.entries.length > 200) throw new GatewayError("Invalid approval transcript coverage");
89850
+ return {
89851
+ target: {
89852
+ id: target.id,
89853
+ name: target.name
89854
+ },
89855
+ approvals: transcript.entries.map(_grok_approvals_js__rspack_import_4/* .grokApproval */.Ny).filter(Boolean),
89856
+ coverage: "Latest 200 transcript entries only; older requests require the owning Grok UI."
89857
+ };
89858
+ }
89859
+ async function respondGrokApproval(session, ref, input) {
89860
+ const { entryId, requestId, decision } = _grok_approvals_js__rspack_import_4/* .grokApprovalResponseSchema.parse */.T5.parse({
89861
+ ...input,
89862
+ target: ref
89863
+ });
89864
+ const { target, approvals } = await listGrokApprovals(session, ref);
89865
+ const matches = approvals.filter((card)=>card.entryId === entryId && card.requestId === requestId);
89866
+ if (matches.length !== 1) throw new GatewayError("Stale, foreign or unsupported Grok approval; refresh pending requests or use the owning Grok UI");
89867
+ const approval = matches[0];
89868
+ if (decision === "accept" && approval.truncated) throw new GatewayError("Approval details are truncated; acceptance requires the owning Grok UI");
89869
+ const local = approval.type === "local-tool-permission";
89870
+ await gatewayCall(session, local ? "resolveLocalToolPermission" : "resolveAutoReviewApproval", {
89871
+ agentId: target.id,
89872
+ entryId,
89873
+ requestId,
89874
+ resolution: local ? decision === "accept" ? "allow-once" : "deny" : decision === "accept" ? "approved" : "denied"
89875
+ });
89876
+ return {
89877
+ target,
89878
+ entryId,
89879
+ requestId,
89880
+ decision,
89881
+ delivery: "accepted"
89882
+ };
89883
+ }
89596
89884
 
89597
89885
  __webpack_require__.d(__webpack_exports__, {
89598
89886
  A0: () => (removeGroupMember),
89599
89887
  LV: () => (sendPrompt),
89888
+ MI: () => (listGrokApprovals),
89889
+ OR: () => (respondGrokApproval),
89600
89890
  RB: () => (deleteAgent),
89601
89891
  Sn: () => (createAgent),
89602
89892
  Td: () => (setGroupMembers),
@@ -89612,6 +89902,68 @@ __webpack_require__.d(__webpack_exports__, {
89612
89902
  });
89613
89903
 
89614
89904
 
89905
+ },
89906
+ "./src/core/grok-approvals.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
89907
+ /* import */ var zod__rspack_import_1 = __webpack_require__("./node_modules/zod/v4/classic/schemas.js");
89908
+ /* import */ var _url_policy_js__rspack_import_0 = __webpack_require__("./src/core/url-policy.js");
89909
+
89910
+
89911
+ const id = zod__rspack_import_1/* .string */.YjP().min(1).max(1024);
89912
+ const grokApprovalResponseSchema = zod__rspack_import_1/* .strictObject */.rej({
89913
+ target: id,
89914
+ entryId: id,
89915
+ requestId: id,
89916
+ decision: zod__rspack_import_1/* ["enum"] */.k5n([
89917
+ "accept",
89918
+ "decline"
89919
+ ])
89920
+ });
89921
+ function grokApproval(entry) {
89922
+ if (entry?.kind !== "send-message") return null;
89923
+ const type = entry.message?.type;
89924
+ const card = type === "auto-review-approval" ? entry.message.approval : type === "local-tool-permission" ? entry.message.ask : null;
89925
+ if (card?.status !== "pending" || !id.safeParse(card.requestId).success || !id.safeParse(entry.id).success) return null;
89926
+ const details = {};
89927
+ let truncated = false;
89928
+ for (const key of [
89929
+ "reason",
89930
+ "command",
89931
+ "summary",
89932
+ "action",
89933
+ "description",
89934
+ "target",
89935
+ "machineId",
89936
+ "surface",
89937
+ "workingDirectory"
89938
+ ]){
89939
+ if (typeof card[key] !== "string") continue;
89940
+ const text = (0,_url_policy_js__rspack_import_0/* .redactSecrets */.fp)(card[key]);
89941
+ truncated ||= text.length > 2048;
89942
+ details[key] = text.slice(0, 2048);
89943
+ }
89944
+ return {
89945
+ entryId: entry.id,
89946
+ requestId: card.requestId,
89947
+ type,
89948
+ ...details,
89949
+ truncated
89950
+ };
89951
+ }
89952
+ function grokApprovalNotice(entry, target) {
89953
+ const approval = grokApproval(entry);
89954
+ return approval ? `Grok approval pending. Requires an explicit user decision; never approve automatically.\n${JSON.stringify({
89955
+ botTarget: target,
89956
+ ...approval
89957
+ })}\nUse gbot_grok_respond with target=${JSON.stringify(target)}, entryId, requestId and decision accept (once) or decline.${approval.truncated ? " Details are truncated; acceptance requires the owning Grok UI." : ""} A chat reply is not authorization.` : null;
89958
+ }
89959
+
89960
+ __webpack_require__.d(__webpack_exports__, {
89961
+ Ny: () => (grokApproval)
89962
+ }, {
89963
+ T5: grokApprovalResponseSchema
89964
+ });
89965
+
89966
+
89615
89967
  },
89616
89968
  "./src/core/headers.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
89617
89969
  function normalizeHeaderMap(obj) {
@@ -90028,7 +90380,10 @@ function relayProfile(env = process.env) {
90028
90380
  "GROK_BOT_ALLOW_LOCAL_GATEWAY",
90029
90381
  "GROK_BOT_ALLOW_ANY_GATEWAY",
90030
90382
  "GROK_BOT_TEST",
90031
- "NODE_ENV"
90383
+ "NODE_ENV",
90384
+ // Secret Service credentials depend on the caller's desktop session.
90385
+ "DBUS_SESSION_BUS_ADDRESS",
90386
+ "DISPLAY"
90032
90387
  ];
90033
90388
  return digest(JSON.stringify([
90034
90389
  (0,node_path__rspack_import_2.resolve)((0,_codex_bridge_js__rspack_import_3/* .codexSocketPath */.ql)(env)),
@@ -90626,7 +90981,7 @@ __webpack_require__.d(__webpack_exports__, {
90626
90981
 
90627
90982
  },
90628
90983
  "./package.json"(module) {
90629
- module.exports = {"rE":"0.6.0"}
90984
+ module.exports = {"rE":"0.8.0"}
90630
90985
 
90631
90986
  },
90632
90987