grok-bot-cli 0.10.1 → 0.10.2
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/CHANGELOG.md +11 -0
- package/README.md +10 -5
- package/dist/.claude-plugin/marketplace.json +1 -1
- package/dist/.claude-plugin/plugin.json +1 -1
- package/dist/.codex-plugin/plugin.json +1 -1
- package/dist/.cursor-plugin/plugin.json +1 -1
- package/dist/INSTALL.md +1 -1
- package/dist/README.md +10 -5
- package/dist/agent-bundle.compile-evidence.json +1 -1
- package/dist/agent-bundle.manifest.json +1 -1
- package/dist/agent-bundle.package-compile-evidence.json +1 -1
- package/dist/bin/gbot-flight.mjs +346 -103
- package/dist/bin/gbot.mjs +427 -108
- package/dist/commands/codex-send.md +2 -0
- package/dist/commands/codex-threads.md +2 -0
- package/dist/commands/codex-wait.md +2 -0
- package/dist/install.mjs +1 -1
- package/dist/mcp/mcp-claude-channel-8029413c.mjs +1 -1
- package/dist/mcp/mcp-grok-bot-b8c2461e-flight.mjs +370 -75
- package/dist/mcp/mcp-grok-bot-b8c2461e.mjs +364 -70
- package/dist/package.json +2 -2
- package/dist/plugin.json +1 -1
- package/dist/scripts/gbot-relay.mjs +152 -18
- package/package.json +2 -2
package/dist/bin/gbot-flight.mjs
CHANGED
|
@@ -9192,6 +9192,96 @@ var __webpack_modules__ = {
|
|
|
9192
9192
|
resultSchema: resultSchema
|
|
9193
9193
|
});
|
|
9194
9194
|
},
|
|
9195
|
+
"./src/cli/codex/new.tsx" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
9196
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9197
|
+
var react_jsx_runtime__rspack_import_0 = __webpack_require__("./node_modules/react/jsx-runtime.react-server.js");
|
|
9198
|
+
var _agent_bundle_runtime__rspack_import_5 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/506.js");
|
|
9199
|
+
var zod__rspack_import_4 = __webpack_require__("./node_modules/zod/v4/classic/schemas.js");
|
|
9200
|
+
var _core_codex_bridge_js__rspack_import_1 = __webpack_require__("./src/core/codex-bridge.js");
|
|
9201
|
+
var _core_codex_contract_js__rspack_import_2 = __webpack_require__("./src/core/codex/contract.js");
|
|
9202
|
+
var _core_codex_routes_js__rspack_import_3 = __webpack_require__("./src/core/codex/routes.ts");
|
|
9203
|
+
const inputSchema = zod__rspack_import_4.Ikc({
|
|
9204
|
+
cwd: zod__rspack_import_4.YjP().min(1),
|
|
9205
|
+
expectedCwd: zod__rspack_import_4.YjP().min(1).optional(),
|
|
9206
|
+
model: zod__rspack_import_4.YjP().regex(/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$/).optional(),
|
|
9207
|
+
effort: zod__rspack_import_4.k5n([
|
|
9208
|
+
'none',
|
|
9209
|
+
'minimal',
|
|
9210
|
+
'low',
|
|
9211
|
+
'medium',
|
|
9212
|
+
'high',
|
|
9213
|
+
'xhigh'
|
|
9214
|
+
]).optional(),
|
|
9215
|
+
message: zod__rspack_import_4.YOg(zod__rspack_import_4.YjP()).optional()
|
|
9216
|
+
}).strict();
|
|
9217
|
+
const config = {
|
|
9218
|
+
description: 'Start a new Codex thread in --cwd, optionally with --model, --effort and a message.',
|
|
9219
|
+
exitCode: 'result',
|
|
9220
|
+
positionals: [
|
|
9221
|
+
'message'
|
|
9222
|
+
],
|
|
9223
|
+
inputJsonSchema: {
|
|
9224
|
+
type: 'object',
|
|
9225
|
+
additionalProperties: false,
|
|
9226
|
+
properties: {
|
|
9227
|
+
cwd: {
|
|
9228
|
+
type: 'string'
|
|
9229
|
+
},
|
|
9230
|
+
expectedCwd: {
|
|
9231
|
+
type: 'string'
|
|
9232
|
+
},
|
|
9233
|
+
model: {
|
|
9234
|
+
type: 'string'
|
|
9235
|
+
},
|
|
9236
|
+
effort: {
|
|
9237
|
+
type: 'string',
|
|
9238
|
+
enum: [
|
|
9239
|
+
'none',
|
|
9240
|
+
'minimal',
|
|
9241
|
+
'low',
|
|
9242
|
+
'medium',
|
|
9243
|
+
'high',
|
|
9244
|
+
'xhigh'
|
|
9245
|
+
]
|
|
9246
|
+
},
|
|
9247
|
+
message: {
|
|
9248
|
+
type: 'array',
|
|
9249
|
+
items: {
|
|
9250
|
+
type: 'string'
|
|
9251
|
+
}
|
|
9252
|
+
}
|
|
9253
|
+
},
|
|
9254
|
+
required: [
|
|
9255
|
+
'cwd'
|
|
9256
|
+
]
|
|
9257
|
+
}
|
|
9258
|
+
};
|
|
9259
|
+
async function route({ input, signal }) {
|
|
9260
|
+
let out;
|
|
9261
|
+
try {
|
|
9262
|
+
out = await (0, _core_codex_bridge_js__rspack_import_1.QC)({
|
|
9263
|
+
...input,
|
|
9264
|
+
message: input.message?.join(' ').trim() || undefined,
|
|
9265
|
+
signal
|
|
9266
|
+
});
|
|
9267
|
+
} catch (error) {
|
|
9268
|
+
out = (0, _core_codex_contract_js__rspack_import_2.DG)(error);
|
|
9269
|
+
}
|
|
9270
|
+
return (0, react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5.g.Result, {
|
|
9271
|
+
value: out,
|
|
9272
|
+
children: (0, react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5.g.Text, {
|
|
9273
|
+
children: out.threadId && !('delivery' in out) ? `Started Codex thread ${out.threadId}` : (0, _core_codex_routes_js__rspack_import_3.D6)(out)
|
|
9274
|
+
})
|
|
9275
|
+
});
|
|
9276
|
+
}
|
|
9277
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
9278
|
+
"default": ()=>route,
|
|
9279
|
+
resultSchema: ()=>_core_codex_routes_js__rspack_import_3.FD
|
|
9280
|
+
}, {
|
|
9281
|
+
config: config,
|
|
9282
|
+
inputSchema: inputSchema
|
|
9283
|
+
});
|
|
9284
|
+
},
|
|
9195
9285
|
"./src/cli/codex/queue.tsx" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
9196
9286
|
__webpack_require__.r(__webpack_exports__);
|
|
9197
9287
|
var react_jsx_runtime__rspack_import_0 = __webpack_require__("./node_modules/react/jsx-runtime.react-server.js");
|
|
@@ -9297,7 +9387,7 @@ var __webpack_modules__ = {
|
|
|
9297
9387
|
description: 'Send to Codex; acceptance is distinct from completion. Options precede threadId.',
|
|
9298
9388
|
exitCode: 'result',
|
|
9299
9389
|
render: {
|
|
9300
|
-
maxElapsedMs:
|
|
9390
|
+
maxElapsedMs: 7260000
|
|
9301
9391
|
},
|
|
9302
9392
|
positionals: [
|
|
9303
9393
|
'threadId',
|
|
@@ -9322,9 +9412,23 @@ var __webpack_modules__ = {
|
|
|
9322
9412
|
expectedCwd: {
|
|
9323
9413
|
type: 'string'
|
|
9324
9414
|
},
|
|
9415
|
+
model: {
|
|
9416
|
+
type: 'string'
|
|
9417
|
+
},
|
|
9418
|
+
effort: {
|
|
9419
|
+
type: 'string',
|
|
9420
|
+
enum: [
|
|
9421
|
+
'none',
|
|
9422
|
+
'minimal',
|
|
9423
|
+
'low',
|
|
9424
|
+
'medium',
|
|
9425
|
+
'high',
|
|
9426
|
+
'xhigh'
|
|
9427
|
+
]
|
|
9428
|
+
},
|
|
9325
9429
|
timeoutMs: {
|
|
9326
9430
|
type: 'number',
|
|
9327
|
-
description: 'Observation timeout: 1-
|
|
9431
|
+
description: 'Observation timeout: 1-7200000 milliseconds.'
|
|
9328
9432
|
},
|
|
9329
9433
|
correlationId: {
|
|
9330
9434
|
type: 'string'
|
|
@@ -9459,7 +9563,7 @@ var __webpack_modules__ = {
|
|
|
9459
9563
|
description: 'Bounded Codex wait observation; never interrupts execution.',
|
|
9460
9564
|
exitCode: 'result',
|
|
9461
9565
|
render: {
|
|
9462
|
-
maxElapsedMs:
|
|
9566
|
+
maxElapsedMs: 7260000
|
|
9463
9567
|
},
|
|
9464
9568
|
positionals: [
|
|
9465
9569
|
'threadId',
|
|
@@ -9477,7 +9581,7 @@ var __webpack_modules__ = {
|
|
|
9477
9581
|
},
|
|
9478
9582
|
"timeoutMs": {
|
|
9479
9583
|
"type": "number",
|
|
9480
|
-
"description": "Observation timeout: 1-
|
|
9584
|
+
"description": "Observation timeout: 1-7200000 milliseconds."
|
|
9481
9585
|
},
|
|
9482
9586
|
"turnId": {
|
|
9483
9587
|
"type": "string"
|
|
@@ -10941,13 +11045,22 @@ var __webpack_modules__ = {
|
|
|
10941
11045
|
const observationFields = {
|
|
10942
11046
|
expectedCwd: zod__rspack_import_3.YjP().min(1).optional(),
|
|
10943
11047
|
threadId: id,
|
|
10944
|
-
timeoutMs: zod__rspack_import_3.aig().int().min(1).max(
|
|
11048
|
+
timeoutMs: zod__rspack_import_3.aig().int().min(1).max(7200000).optional()
|
|
10945
11049
|
};
|
|
10946
11050
|
const sendFields = {
|
|
10947
11051
|
...observationFields,
|
|
10948
11052
|
correlationId: id.optional(),
|
|
10949
11053
|
envelope: zod__rspack_import_3.zMY().optional(),
|
|
10950
11054
|
hop: zod__rspack_import_3.aig().int().min(0).optional(),
|
|
11055
|
+
model: zod__rspack_import_3.YjP().regex(/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$/).optional(),
|
|
11056
|
+
effort: zod__rspack_import_3.k5n([
|
|
11057
|
+
'none',
|
|
11058
|
+
'minimal',
|
|
11059
|
+
'low',
|
|
11060
|
+
'medium',
|
|
11061
|
+
'high',
|
|
11062
|
+
'xhigh'
|
|
11063
|
+
]).optional(),
|
|
10951
11064
|
replyTo: id.optional(),
|
|
10952
11065
|
expectedTurnId: id.optional(),
|
|
10953
11066
|
whenBusy: zod__rspack_import_3.k5n([
|
|
@@ -10969,7 +11082,9 @@ var __webpack_modules__ = {
|
|
|
10969
11082
|
maxOutputBytes: zod__rspack_import_3.aig().int().min(1).max(4194304).optional()
|
|
10970
11083
|
}).strict();
|
|
10971
11084
|
const watchSchema = zod__rspack_import_3.Ikc({
|
|
10972
|
-
|
|
11085
|
+
expectedCwd: zod__rspack_import_3.YjP().min(1).optional(),
|
|
11086
|
+
threadId: id,
|
|
11087
|
+
timeoutMs: zod__rspack_import_3.aig().int().min(1).max(600000).optional(),
|
|
10973
11088
|
maxEvents: zod__rspack_import_3.aig().int().min(1).max(500).default(100)
|
|
10974
11089
|
}).strict();
|
|
10975
11090
|
const threadsSchema = zod__rspack_import_3.Ikc({
|
|
@@ -11026,6 +11141,8 @@ var __webpack_modules__ = {
|
|
|
11026
11141
|
envelope,
|
|
11027
11142
|
whenBusy: input.whenBusy,
|
|
11028
11143
|
expectedCwd: input.expectedCwd,
|
|
11144
|
+
model: input.model,
|
|
11145
|
+
effort: input.effort,
|
|
11029
11146
|
signal
|
|
11030
11147
|
});
|
|
11031
11148
|
}
|
|
@@ -11038,7 +11155,9 @@ var __webpack_modules__ = {
|
|
|
11038
11155
|
receipt = await conversation.send(input.message, {
|
|
11039
11156
|
envelope,
|
|
11040
11157
|
whenBusy: input.whenBusy,
|
|
11041
|
-
expectedTurnId: input.expectedTurnId
|
|
11158
|
+
expectedTurnId: input.expectedTurnId,
|
|
11159
|
+
model: input.model,
|
|
11160
|
+
effort: input.effort
|
|
11042
11161
|
});
|
|
11043
11162
|
if (!input.wait || receipt.delivery !== 'accepted' || !receipt.turnId) return receipt;
|
|
11044
11163
|
await progress?.(`Accepted message ${receipt.messageId}; observing turn ${receipt.turnId}`);
|
|
@@ -11327,7 +11446,9 @@ var __webpack_modules__ = {
|
|
|
11327
11446
|
requestId: input.requestId,
|
|
11328
11447
|
busyPolicy: input.whenBusy,
|
|
11329
11448
|
hop: input.hop,
|
|
11330
|
-
correlationId: input.correlationId
|
|
11449
|
+
correlationId: input.correlationId,
|
|
11450
|
+
model: input.model,
|
|
11451
|
+
effort: input.effort
|
|
11331
11452
|
}, options(context)));
|
|
11332
11453
|
}
|
|
11333
11454
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -21779,7 +21900,7 @@ var __webpack_modules__ = {
|
|
|
21779
21900
|
var _codex_contract_js__rspack_import_7 = __webpack_require__("./src/core/codex/contract.js");
|
|
21780
21901
|
var _desktop_shim_js__rspack_import_8 = __webpack_require__("./src/core/desktop-shim.js");
|
|
21781
21902
|
var _user_machine_guidance_js__rspack_import_9 = __webpack_require__("./src/core/user-machine-guidance.js");
|
|
21782
|
-
const PINNED_CODEX_VERSION = "0.
|
|
21903
|
+
const PINNED_CODEX_VERSION = "0.158.0";
|
|
21783
21904
|
const UPSTREAM_DESKTOP_ISSUES = [
|
|
21784
21905
|
"https://github.com/openai/codex/issues/41014",
|
|
21785
21906
|
"https://github.com/openai/codex/issues/41112"
|
|
@@ -21839,7 +21960,7 @@ var __webpack_modules__ = {
|
|
|
21839
21960
|
"Either no daemon is running (start one with `codex app-server daemon start` or bootstrap),",
|
|
21840
21961
|
"or ChatGPT Desktop is running a private stdio app-server that external clients cannot reach",
|
|
21841
21962
|
"(" + UPSTREAM_DESKTOP_ISSUES.join(", ") + ").",
|
|
21842
|
-
"gbot
|
|
21963
|
+
"Codex must run on the same machine as gbot. Set CODEX_APP_SERVER_SOCK to an existing local control socket if it is elsewhere; gbot has no remote transport.",
|
|
21843
21964
|
"gbot codex targets daemon-managed threads only."
|
|
21844
21965
|
].join("\n");
|
|
21845
21966
|
}
|
|
@@ -22483,6 +22604,47 @@ var __webpack_modules__ = {
|
|
|
22483
22604
|
};
|
|
22484
22605
|
}
|
|
22485
22606
|
const openSession = openCodexSession;
|
|
22607
|
+
async function startCodexThread({ cwd, expectedCwd, model, effort, message, env = process.env, signal } = {}) {
|
|
22608
|
+
validateModelEffort(model, effort);
|
|
22609
|
+
if (typeof cwd !== "string" || !cwd.trim()) throw new RangeError("--cwd is required for a new Codex thread");
|
|
22610
|
+
const resolvedCwd = (0, node_fs__rspack_import_1.realpathSync)(cwd);
|
|
22611
|
+
if (expectedCwd !== undefined && (0, node_fs__rspack_import_1.realpathSync)(expectedCwd) !== resolvedCwd) throw new RangeError("New Codex thread cwd does not match expectedCwd");
|
|
22612
|
+
if (message !== undefined && (typeof message !== "string" || !message.trim())) throw new RangeError("Message must contain text");
|
|
22613
|
+
const { client } = await openSession(env, {
|
|
22614
|
+
signal
|
|
22615
|
+
});
|
|
22616
|
+
let threadId, started;
|
|
22617
|
+
try {
|
|
22618
|
+
started = await client.request("thread/start", {
|
|
22619
|
+
cwd: resolvedCwd,
|
|
22620
|
+
...model ? {
|
|
22621
|
+
model
|
|
22622
|
+
} : {},
|
|
22623
|
+
...effort ? {
|
|
22624
|
+
config: {
|
|
22625
|
+
model_reasoning_effort: effort
|
|
22626
|
+
}
|
|
22627
|
+
} : {}
|
|
22628
|
+
});
|
|
22629
|
+
threadId = started?.thread?.id;
|
|
22630
|
+
if (typeof threadId !== "string" || !ID_PATTERN.test(threadId)) throw new CodexProtocolError("thread/start", "missing `thread.id`");
|
|
22631
|
+
} finally{
|
|
22632
|
+
client.close();
|
|
22633
|
+
}
|
|
22634
|
+
if (message === undefined) return {
|
|
22635
|
+
threadId,
|
|
22636
|
+
cwd: resolvedCwd,
|
|
22637
|
+
model: started.model ?? model,
|
|
22638
|
+
exitCode: 0
|
|
22639
|
+
};
|
|
22640
|
+
return await sendToCodexThread(threadId, message, {
|
|
22641
|
+
env,
|
|
22642
|
+
expectedCwd: resolvedCwd,
|
|
22643
|
+
model,
|
|
22644
|
+
effort,
|
|
22645
|
+
signal
|
|
22646
|
+
});
|
|
22647
|
+
}
|
|
22486
22648
|
const CODEX_VERSION_PROBE_TIMEOUT_MS = 3000;
|
|
22487
22649
|
function probeLocalCodexVersion(timeoutMs = CODEX_VERSION_PROBE_TIMEOUT_MS) {
|
|
22488
22650
|
const out = (0, node_child_process__rspack_import_5.spawnSync)("codex", [
|
|
@@ -22781,7 +22943,7 @@ var __webpack_modules__ = {
|
|
|
22781
22943
|
}
|
|
22782
22944
|
function requireExperimental(env, what) {
|
|
22783
22945
|
if (experimentalEnabled(env)) return;
|
|
22784
|
-
throw new CodexSendError(what + "
|
|
22946
|
+
throw new CodexSendError(what + " needs thread/queue/add, which is experimental and absent from Codex " + PINNED_CODEX_VERSION + "'s stable API. " + "Use --when-busy steer with an expected turn ID, wait until the thread is idle, or opt in with GROK_BOT_CODEX_EXPERIMENTAL=1 on a Codex daemon that supports the experimental queue API.", {
|
|
22785
22947
|
delivery: "rejected",
|
|
22786
22948
|
reason: "experimental-disabled"
|
|
22787
22949
|
});
|
|
@@ -22789,7 +22951,7 @@ var __webpack_modules__ = {
|
|
|
22789
22951
|
function unsupportedOrRpc(err, method, threadId, envelope, turnId) {
|
|
22790
22952
|
const guarded = method === "turn/steer";
|
|
22791
22953
|
if (err instanceof CodexRpcError && err.rpc && err.rpc.code === -32601) {
|
|
22792
|
-
return new CodexSendError("Codex app-server does not offer " + method + " (daemon predates it, or experimentalApi was not granted). " + (guarded ? "Upgrade Codex before retrying guarded steering." : "
|
|
22954
|
+
return new CodexSendError("Codex app-server does not offer " + method + " (daemon predates it, or experimentalApi was not granted). " + (guarded ? "Upgrade Codex before retrying guarded steering." : "Use --when-busy steer with an expected turn ID, wait for idle, or use a Codex daemon with experimental queue support and GROK_BOT_CODEX_EXPERIMENTAL=1."), {
|
|
22793
22955
|
delivery: "rejected",
|
|
22794
22956
|
reason: "unsupported",
|
|
22795
22957
|
threadId,
|
|
@@ -22846,7 +23008,7 @@ var __webpack_modules__ = {
|
|
|
22846
23008
|
}
|
|
22847
23009
|
async function sendToCodexThread(threadId, text, { env = process.env, envelope = buildEnvelope({
|
|
22848
23010
|
env
|
|
22849
|
-
}), whenBusy = "reject", session, expectedTurnId, expectedCwd, signal } = {}) {
|
|
23011
|
+
}), whenBusy = "reject", session, expectedTurnId, expectedCwd, model, effort, signal } = {}) {
|
|
22850
23012
|
try {
|
|
22851
23013
|
const receipt = await sendToCodexThreadInner(threadId, text, {
|
|
22852
23014
|
env,
|
|
@@ -22855,6 +23017,8 @@ var __webpack_modules__ = {
|
|
|
22855
23017
|
session,
|
|
22856
23018
|
expectedTurnId,
|
|
22857
23019
|
expectedCwd,
|
|
23020
|
+
model,
|
|
23021
|
+
effort,
|
|
22858
23022
|
signal
|
|
22859
23023
|
});
|
|
22860
23024
|
return (0, _codex_contract_js__rspack_import_7.Dz)(receipt);
|
|
@@ -22866,7 +23030,19 @@ var __webpack_modules__ = {
|
|
|
22866
23030
|
return (0, _codex_contract_js__rspack_import_7.DG)(err);
|
|
22867
23031
|
}
|
|
22868
23032
|
}
|
|
22869
|
-
|
|
23033
|
+
function validateModelEffort(model, effort) {
|
|
23034
|
+
if (model !== undefined && (typeof model !== "string" || !/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$/.test(model))) throw new RangeError("--model must be a nonempty model ID");
|
|
23035
|
+
if (effort !== undefined && ![
|
|
23036
|
+
"none",
|
|
23037
|
+
"minimal",
|
|
23038
|
+
"low",
|
|
23039
|
+
"medium",
|
|
23040
|
+
"high",
|
|
23041
|
+
"xhigh"
|
|
23042
|
+
].includes(effort)) throw new RangeError("--effort must be none, minimal, low, medium, high, or xhigh");
|
|
23043
|
+
}
|
|
23044
|
+
async function sendToCodexThreadInner(threadId, text, { env, envelope, whenBusy, session, expectedTurnId, expectedCwd, model, effort, signal }) {
|
|
23045
|
+
validateModelEffort(model, effort);
|
|
22870
23046
|
if (![
|
|
22871
23047
|
"reject",
|
|
22872
23048
|
"queue",
|
|
@@ -22912,7 +23088,15 @@ var __webpack_modules__ = {
|
|
|
22912
23088
|
try {
|
|
22913
23089
|
resumed = await client.request("thread/resume", {
|
|
22914
23090
|
threadId,
|
|
22915
|
-
excludeTurns: true
|
|
23091
|
+
excludeTurns: true,
|
|
23092
|
+
...model ? {
|
|
23093
|
+
model
|
|
23094
|
+
} : {},
|
|
23095
|
+
...effort ? {
|
|
23096
|
+
config: {
|
|
23097
|
+
model_reasoning_effort: effort
|
|
23098
|
+
}
|
|
23099
|
+
} : {}
|
|
22916
23100
|
});
|
|
22917
23101
|
} catch (err) {
|
|
22918
23102
|
assertNotCancelled();
|
|
@@ -23045,7 +23229,13 @@ var __webpack_modules__ = {
|
|
|
23045
23229
|
}
|
|
23046
23230
|
],
|
|
23047
23231
|
clientUserMessageId: envelope.messageId,
|
|
23048
|
-
turnTrigger: "gbot"
|
|
23232
|
+
turnTrigger: "gbot",
|
|
23233
|
+
...model ? {
|
|
23234
|
+
model
|
|
23235
|
+
} : {},
|
|
23236
|
+
...effort ? {
|
|
23237
|
+
effort
|
|
23238
|
+
} : {}
|
|
23049
23239
|
});
|
|
23050
23240
|
} catch (err) {
|
|
23051
23241
|
if (err instanceof CodexSendError) throw err;
|
|
@@ -23104,6 +23294,7 @@ var __webpack_modules__ = {
|
|
|
23104
23294
|
Bt: ()=>listCodexQueue,
|
|
23105
23295
|
MU: ()=>codexStatus,
|
|
23106
23296
|
Mr: ()=>withEnvelopeHeader,
|
|
23297
|
+
QC: ()=>startCodexThread,
|
|
23107
23298
|
X$: ()=>listCodexThreads1,
|
|
23108
23299
|
ZS: ()=>sendToCodexThread,
|
|
23109
23300
|
e0: ()=>experimentalEnabled,
|
|
@@ -23320,10 +23511,10 @@ var __webpack_modules__ = {
|
|
|
23320
23511
|
];
|
|
23321
23512
|
if (afterMessageId !== undefined) boundedInteger(anchors.length, 200, 'afterMessageId count');
|
|
23322
23513
|
for (const anchor of anchors)conversationId(anchor, 'afterMessageId');
|
|
23323
|
-
boundedInteger(timeoutMs,
|
|
23514
|
+
boundedInteger(timeoutMs, 7200000, 'timeoutMs');
|
|
23324
23515
|
boundedInteger(maxOutputBytes, BUDGET, 'maxOutputBytes');
|
|
23325
23516
|
if (waitSignal !== undefined && !(waitSignal instanceof AbortSignal)) throw new TypeError('signal must be an AbortSignal');
|
|
23326
|
-
let done = false, status = acceptedTurns.has(turnId) ? 'inProgress' : undefined, error, historyError, itemBytes = 0, truncated =
|
|
23517
|
+
let done = false, status = acceptedTurns.has(turnId) ? 'inProgress' : undefined, error, historyError, itemBytes = 0, truncated = false;
|
|
23327
23518
|
const items = new Map();
|
|
23328
23519
|
const add = (item)=>{
|
|
23329
23520
|
if (!item || typeof item.id !== 'string' || typeof item.type !== 'string') throw new Error('Invalid history item');
|
|
@@ -23370,6 +23561,7 @@ var __webpack_modules__ = {
|
|
|
23370
23561
|
};
|
|
23371
23562
|
const result = (state, detail)=>{
|
|
23372
23563
|
const interactions = scan();
|
|
23564
|
+
const overflowUncertain = state === 'unknown' && /Notification coverage overflow/.test(detail ?? '');
|
|
23373
23565
|
const candidates = [
|
|
23374
23566
|
...items.values()
|
|
23375
23567
|
].map((x)=>x.item);
|
|
@@ -23378,7 +23570,7 @@ var __webpack_modules__ = {
|
|
|
23378
23570
|
const reply = {
|
|
23379
23571
|
text: '',
|
|
23380
23572
|
items: [],
|
|
23381
|
-
truncated: truncated ||
|
|
23573
|
+
truncated: truncated || overflowUncertain
|
|
23382
23574
|
};
|
|
23383
23575
|
for (const item of selected){
|
|
23384
23576
|
const text = reply.text ? `${reply.text}\n${item.text}` : item.text;
|
|
@@ -23411,7 +23603,7 @@ var __webpack_modules__ = {
|
|
|
23411
23603
|
interactions
|
|
23412
23604
|
};
|
|
23413
23605
|
};
|
|
23414
|
-
let timer, notify;
|
|
23606
|
+
let timer, pollTimer, notify;
|
|
23415
23607
|
const abortSignals = [
|
|
23416
23608
|
signal,
|
|
23417
23609
|
waitSignal
|
|
@@ -23427,10 +23619,18 @@ var __webpack_modules__ = {
|
|
|
23427
23619
|
'Codex connection closed'
|
|
23428
23620
|
]);
|
|
23429
23621
|
};
|
|
23430
|
-
timer = setTimeout(()=>resolve([
|
|
23622
|
+
timer = setTimeout(()=>resolve(overflow ? [
|
|
23623
|
+
'unknown',
|
|
23624
|
+
'Notification coverage overflow; pending interaction status is uncertain'
|
|
23625
|
+
] : [
|
|
23431
23626
|
'timeout',
|
|
23432
23627
|
'Observation deadline reached'
|
|
23433
23628
|
]), timeoutMs);
|
|
23629
|
+
pollTimer = setInterval(()=>{
|
|
23630
|
+
for (const listener of [
|
|
23631
|
+
...wake
|
|
23632
|
+
])listener();
|
|
23633
|
+
}, 2000);
|
|
23434
23634
|
for (const s of abortSignals)s.addEventListener('abort', notify, {
|
|
23435
23635
|
once: true
|
|
23436
23636
|
});
|
|
@@ -23501,19 +23701,51 @@ var __webpack_modules__ = {
|
|
|
23501
23701
|
historyError
|
|
23502
23702
|
];
|
|
23503
23703
|
}
|
|
23704
|
+
let lastPoll = 0;
|
|
23504
23705
|
while(!done){
|
|
23505
23706
|
const interactions = scan();
|
|
23506
23707
|
if (terminal(status)) return [
|
|
23507
23708
|
status,
|
|
23508
23709
|
error ?? historyError
|
|
23509
23710
|
];
|
|
23510
|
-
if (historyError
|
|
23711
|
+
if (historyError) return [
|
|
23511
23712
|
'unknown',
|
|
23512
|
-
historyError
|
|
23713
|
+
historyError
|
|
23513
23714
|
];
|
|
23514
23715
|
if (interactions.length) return [
|
|
23515
23716
|
'waiting-for-input'
|
|
23516
23717
|
];
|
|
23718
|
+
if (Date.now() - lastPoll >= 2000) {
|
|
23719
|
+
lastPoll = Date.now();
|
|
23720
|
+
try {
|
|
23721
|
+
await visitCodexHistory(session, threadId, 'thread/turns/list', {}, (data)=>{
|
|
23722
|
+
const turn = data.find((t)=>t?.id === turnId);
|
|
23723
|
+
if (!turn) return false;
|
|
23724
|
+
if (terminal(turn.status)) {
|
|
23725
|
+
status = turn.status;
|
|
23726
|
+
error = turn.error;
|
|
23727
|
+
}
|
|
23728
|
+
return true;
|
|
23729
|
+
}, {
|
|
23730
|
+
stopped: ()=>done
|
|
23731
|
+
});
|
|
23732
|
+
if (terminal(status)) {
|
|
23733
|
+
await visitCodexHistory(session, threadId, 'thread/items/list', {
|
|
23734
|
+
turnId,
|
|
23735
|
+
sortDirection: 'asc'
|
|
23736
|
+
}, (data)=>{
|
|
23737
|
+
for (const row of data)if (row?.turnId === turnId && row.item) add(row.item);
|
|
23738
|
+
return false;
|
|
23739
|
+
}, {
|
|
23740
|
+
stopped: ()=>done
|
|
23741
|
+
});
|
|
23742
|
+
continue;
|
|
23743
|
+
}
|
|
23744
|
+
} catch (err) {
|
|
23745
|
+
historyError = err.message;
|
|
23746
|
+
truncated = true;
|
|
23747
|
+
}
|
|
23748
|
+
}
|
|
23517
23749
|
await new Promise((resolve)=>{
|
|
23518
23750
|
const listener = ()=>{
|
|
23519
23751
|
wake.delete(listener);
|
|
@@ -23536,6 +23768,7 @@ var __webpack_modules__ = {
|
|
|
23536
23768
|
} finally{
|
|
23537
23769
|
done = true;
|
|
23538
23770
|
clearTimeout(timer);
|
|
23771
|
+
clearInterval(pollTimer);
|
|
23539
23772
|
wake.delete(notify);
|
|
23540
23773
|
for (const s of abortSignals)s.removeEventListener('abort', notify);
|
|
23541
23774
|
for (const listener of [
|
|
@@ -23583,7 +23816,7 @@ var __webpack_modules__ = {
|
|
|
23583
23816
|
close,
|
|
23584
23817
|
async send (text, { envelope = (0, _codex_bridge_js__rspack_import_2.nq)({
|
|
23585
23818
|
env
|
|
23586
|
-
}), whenBusy = 'reject', expectedTurnId, signal: sendSignal } = {}) {
|
|
23819
|
+
}), whenBusy = 'reject', expectedTurnId, model, effort, signal: sendSignal } = {}) {
|
|
23587
23820
|
if (closed) return (0, _contract_js__rspack_import_0.DG)(Object.assign(new Error('Conversation closed'), {
|
|
23588
23821
|
delivery: 'rejected',
|
|
23589
23822
|
reason: 'closed',
|
|
@@ -23602,6 +23835,8 @@ var __webpack_modules__ = {
|
|
|
23602
23835
|
expectedTurnId,
|
|
23603
23836
|
session,
|
|
23604
23837
|
expectedCwd,
|
|
23838
|
+
model,
|
|
23839
|
+
effort,
|
|
23605
23840
|
signal: submissionSignal
|
|
23606
23841
|
});
|
|
23607
23842
|
if (receipt.delivery === 'accepted' && receipt.turnId) {
|
|
@@ -25856,7 +26091,7 @@ ts() { date -u +%Y-%m-%dT%H:%M:%SZ; }
|
|
|
25856
26091
|
"./src/core/user-machine-guidance.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
25857
26092
|
const USER_MACHINE_CODEX_CLAUDE_GUIDANCE = [
|
|
25858
26093
|
"Codex and Claude sessions live on the user's registered machines (for example their Linux desktop or Mac), not on the Grok Bot agent box (/home/box).",
|
|
25859
|
-
"gbot
|
|
26094
|
+
"Codex must run on the same machine as gbot. Set CODEX_APP_SERVER_SOCK to an existing local control socket, or use $CODEX_HOME/app-server-control/app-server-control.sock. There is no remote transport.",
|
|
25860
26095
|
"When running on the box (HOME=/home/box), do not call codex_* or claude_send there. Run the gbot CLI on the user's machine through Grok Bot Shell with a machineId (the host's machine-targeted shell).",
|
|
25861
26096
|
"On that machine, provide the socket with `codex app-server daemon start` (or bootstrap). Auth stays with each machine's native Codex or Claude login; gbot does not store or export credentials."
|
|
25862
26097
|
].join("\n");
|
|
@@ -25876,7 +26111,7 @@ ts() { date -u +%Y-%m-%dT%H:%M:%SZ; }
|
|
|
25876
26111
|
},
|
|
25877
26112
|
"./package.json" (module) {
|
|
25878
26113
|
module.exports = {
|
|
25879
|
-
"rE": "0.10.
|
|
26114
|
+
"rE": "0.10.2"
|
|
25880
26115
|
};
|
|
25881
26116
|
}
|
|
25882
26117
|
};
|
|
@@ -25929,9 +26164,9 @@ function __webpack_require__(moduleId) {
|
|
|
25929
26164
|
var __webpack_exports__ = {};
|
|
25930
26165
|
var node_worker_threads__rspack_import_0 = __webpack_require__("node:worker_threads");
|
|
25931
26166
|
var react__rspack_import_1 = __webpack_require__("./node_modules/react/react.react-server.js");
|
|
25932
|
-
var
|
|
25933
|
-
var
|
|
25934
|
-
var
|
|
26167
|
+
var _agent_bundle_runtime_flight_server__rspack_import_42 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/flight/server.js");
|
|
26168
|
+
var _agent_bundle_runtime__rspack_import_40 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/49.js");
|
|
26169
|
+
var _agent_bundle_runtime__rspack_import_41 = __webpack_require__("./node_modules/@agent-bundle/runtime/dist/736.js");
|
|
25935
26170
|
var node_url__rspack_import_2 = __webpack_require__("node:url");
|
|
25936
26171
|
var _src_cli_approvals_list_tsx__rspack_import_3 = __webpack_require__("./src/cli/approvals/list.tsx");
|
|
25937
26172
|
var _src_cli_approvals_respond_tsx__rspack_import_4 = __webpack_require__("./src/cli/approvals/respond.tsx");
|
|
@@ -25948,27 +26183,28 @@ var _src_cli_codex_bridge_status_tsx__rspack_import_14 = __webpack_require__("./
|
|
|
25948
26183
|
var _src_cli_codex_bridge_stop_tsx__rspack_import_15 = __webpack_require__("./src/cli/codex/bridge/stop.tsx");
|
|
25949
26184
|
var _src_cli_codex_desktop_shim_tsx__rspack_import_16 = __webpack_require__("./src/cli/codex/desktop-shim.tsx");
|
|
25950
26185
|
var _src_cli_codex_list_threads_tsx__rspack_import_17 = __webpack_require__("./src/cli/codex/list-threads.tsx");
|
|
25951
|
-
var
|
|
25952
|
-
var
|
|
25953
|
-
var
|
|
25954
|
-
var
|
|
25955
|
-
var
|
|
25956
|
-
var
|
|
25957
|
-
var
|
|
25958
|
-
var
|
|
25959
|
-
var
|
|
25960
|
-
var
|
|
25961
|
-
var
|
|
25962
|
-
var
|
|
25963
|
-
var
|
|
25964
|
-
var
|
|
25965
|
-
var
|
|
25966
|
-
var
|
|
25967
|
-
var
|
|
25968
|
-
var
|
|
25969
|
-
var
|
|
25970
|
-
var
|
|
25971
|
-
var
|
|
26186
|
+
var _src_cli_codex_new_tsx__rspack_import_18 = __webpack_require__("./src/cli/codex/new.tsx");
|
|
26187
|
+
var _src_cli_codex_queue_tsx__rspack_import_19 = __webpack_require__("./src/cli/codex/queue.tsx");
|
|
26188
|
+
var _src_cli_codex_send_tsx__rspack_import_20 = __webpack_require__("./src/cli/codex/send.tsx");
|
|
26189
|
+
var _src_cli_codex_status_tsx__rspack_import_21 = __webpack_require__("./src/cli/codex/status.tsx");
|
|
26190
|
+
var _src_cli_codex_wait_tsx__rspack_import_22 = __webpack_require__("./src/cli/codex/wait.tsx");
|
|
26191
|
+
var _src_cli_codex_watch_tsx__rspack_import_23 = __webpack_require__("./src/cli/codex/watch.tsx");
|
|
26192
|
+
var _src_cli_doctor_tsx__rspack_import_24 = __webpack_require__("./src/cli/doctor.tsx");
|
|
26193
|
+
var _src_cli_groups_add_tsx__rspack_import_25 = __webpack_require__("./src/cli/groups/add.tsx");
|
|
26194
|
+
var _src_cli_groups_create_tsx__rspack_import_26 = __webpack_require__("./src/cli/groups/create.tsx");
|
|
26195
|
+
var _src_cli_groups_delete_tsx__rspack_import_27 = __webpack_require__("./src/cli/groups/delete.tsx");
|
|
26196
|
+
var _src_cli_groups_get_tsx__rspack_import_28 = __webpack_require__("./src/cli/groups/get.tsx");
|
|
26197
|
+
var _src_cli_groups_list_tsx__rspack_import_29 = __webpack_require__("./src/cli/groups/list.tsx");
|
|
26198
|
+
var _src_cli_groups_members_tsx__rspack_import_30 = __webpack_require__("./src/cli/groups/members.tsx");
|
|
26199
|
+
var _src_cli_groups_remove_tsx__rspack_import_31 = __webpack_require__("./src/cli/groups/remove.tsx");
|
|
26200
|
+
var _src_cli_groups_set_tsx__rspack_import_32 = __webpack_require__("./src/cli/groups/set.tsx");
|
|
26201
|
+
var _src_cli_groups_update_tsx__rspack_import_33 = __webpack_require__("./src/cli/groups/update.tsx");
|
|
26202
|
+
var _src_cli_history_tsx__rspack_import_34 = __webpack_require__("./src/cli/history.tsx");
|
|
26203
|
+
var _src_cli_send_tsx__rspack_import_35 = __webpack_require__("./src/cli/send.tsx");
|
|
26204
|
+
var _src_cli_skills_add_tsx__rspack_import_36 = __webpack_require__("./src/cli/skills/add.tsx");
|
|
26205
|
+
var _src_cli_skills_list_tsx__rspack_import_37 = __webpack_require__("./src/cli/skills/list.tsx");
|
|
26206
|
+
var _src_cli_skills_remove_tsx__rspack_import_38 = __webpack_require__("./src/cli/skills/remove.tsx");
|
|
26207
|
+
var _src_cli_thread_tsx__rspack_import_39 = __webpack_require__("./src/cli/thread.tsx");
|
|
25972
26208
|
const route0 = Object.assign({}, Reflect.get(_src_cli_approvals_list_tsx__rspack_import_3, 'default'), _src_cli_approvals_list_tsx__rspack_import_3);
|
|
25973
26209
|
const route1 = Object.assign({}, Reflect.get(_src_cli_approvals_respond_tsx__rspack_import_4, 'default'), _src_cli_approvals_respond_tsx__rspack_import_4);
|
|
25974
26210
|
const route2 = Object.assign({}, Reflect.get(_src_cli_bots_create_tsx__rspack_import_5, 'default'), _src_cli_bots_create_tsx__rspack_import_5);
|
|
@@ -25984,28 +26220,29 @@ const route11 = Object.assign({}, Reflect.get(_src_cli_codex_bridge_status_tsx__
|
|
|
25984
26220
|
const route12 = Object.assign({}, Reflect.get(_src_cli_codex_bridge_stop_tsx__rspack_import_15, 'default'), _src_cli_codex_bridge_stop_tsx__rspack_import_15);
|
|
25985
26221
|
const route13 = Object.assign({}, Reflect.get(_src_cli_codex_desktop_shim_tsx__rspack_import_16, 'default'), _src_cli_codex_desktop_shim_tsx__rspack_import_16);
|
|
25986
26222
|
const route14 = Object.assign({}, Reflect.get(_src_cli_codex_list_threads_tsx__rspack_import_17, 'default'), _src_cli_codex_list_threads_tsx__rspack_import_17);
|
|
25987
|
-
const route15 = Object.assign({}, Reflect.get(
|
|
25988
|
-
const route16 = Object.assign({}, Reflect.get(
|
|
25989
|
-
const route17 = Object.assign({}, Reflect.get(
|
|
25990
|
-
const route18 = Object.assign({}, Reflect.get(
|
|
25991
|
-
const route19 = Object.assign({}, Reflect.get(
|
|
25992
|
-
const route20 = Object.assign({}, Reflect.get(
|
|
25993
|
-
const route21 = Object.assign({}, Reflect.get(
|
|
25994
|
-
const route22 = Object.assign({}, Reflect.get(
|
|
25995
|
-
const route23 = Object.assign({}, Reflect.get(
|
|
25996
|
-
const route24 = Object.assign({}, Reflect.get(
|
|
25997
|
-
const route25 = Object.assign({}, Reflect.get(
|
|
25998
|
-
const route26 = Object.assign({}, Reflect.get(
|
|
25999
|
-
const route27 = Object.assign({}, Reflect.get(
|
|
26000
|
-
const route28 = Object.assign({}, Reflect.get(
|
|
26001
|
-
const route29 = Object.assign({}, Reflect.get(
|
|
26002
|
-
const route30 = Object.assign({}, Reflect.get(
|
|
26003
|
-
const route31 = Object.assign({}, Reflect.get(
|
|
26004
|
-
const route32 = Object.assign({}, Reflect.get(
|
|
26005
|
-
const route33 = Object.assign({}, Reflect.get(
|
|
26006
|
-
const route34 = Object.assign({}, Reflect.get(
|
|
26007
|
-
const route35 = Object.assign({}, Reflect.get(
|
|
26008
|
-
const
|
|
26223
|
+
const route15 = Object.assign({}, Reflect.get(_src_cli_codex_new_tsx__rspack_import_18, 'default'), _src_cli_codex_new_tsx__rspack_import_18);
|
|
26224
|
+
const route16 = Object.assign({}, Reflect.get(_src_cli_codex_queue_tsx__rspack_import_19, 'default'), _src_cli_codex_queue_tsx__rspack_import_19);
|
|
26225
|
+
const route17 = Object.assign({}, Reflect.get(_src_cli_codex_send_tsx__rspack_import_20, 'default'), _src_cli_codex_send_tsx__rspack_import_20);
|
|
26226
|
+
const route18 = Object.assign({}, Reflect.get(_src_cli_codex_status_tsx__rspack_import_21, 'default'), _src_cli_codex_status_tsx__rspack_import_21);
|
|
26227
|
+
const route19 = Object.assign({}, Reflect.get(_src_cli_codex_wait_tsx__rspack_import_22, 'default'), _src_cli_codex_wait_tsx__rspack_import_22);
|
|
26228
|
+
const route20 = Object.assign({}, Reflect.get(_src_cli_codex_watch_tsx__rspack_import_23, 'default'), _src_cli_codex_watch_tsx__rspack_import_23);
|
|
26229
|
+
const route21 = Object.assign({}, Reflect.get(_src_cli_doctor_tsx__rspack_import_24, 'default'), _src_cli_doctor_tsx__rspack_import_24);
|
|
26230
|
+
const route22 = Object.assign({}, Reflect.get(_src_cli_groups_add_tsx__rspack_import_25, 'default'), _src_cli_groups_add_tsx__rspack_import_25);
|
|
26231
|
+
const route23 = Object.assign({}, Reflect.get(_src_cli_groups_create_tsx__rspack_import_26, 'default'), _src_cli_groups_create_tsx__rspack_import_26);
|
|
26232
|
+
const route24 = Object.assign({}, Reflect.get(_src_cli_groups_delete_tsx__rspack_import_27, 'default'), _src_cli_groups_delete_tsx__rspack_import_27);
|
|
26233
|
+
const route25 = Object.assign({}, Reflect.get(_src_cli_groups_get_tsx__rspack_import_28, 'default'), _src_cli_groups_get_tsx__rspack_import_28);
|
|
26234
|
+
const route26 = Object.assign({}, Reflect.get(_src_cli_groups_list_tsx__rspack_import_29, 'default'), _src_cli_groups_list_tsx__rspack_import_29);
|
|
26235
|
+
const route27 = Object.assign({}, Reflect.get(_src_cli_groups_members_tsx__rspack_import_30, 'default'), _src_cli_groups_members_tsx__rspack_import_30);
|
|
26236
|
+
const route28 = Object.assign({}, Reflect.get(_src_cli_groups_remove_tsx__rspack_import_31, 'default'), _src_cli_groups_remove_tsx__rspack_import_31);
|
|
26237
|
+
const route29 = Object.assign({}, Reflect.get(_src_cli_groups_set_tsx__rspack_import_32, 'default'), _src_cli_groups_set_tsx__rspack_import_32);
|
|
26238
|
+
const route30 = Object.assign({}, Reflect.get(_src_cli_groups_update_tsx__rspack_import_33, 'default'), _src_cli_groups_update_tsx__rspack_import_33);
|
|
26239
|
+
const route31 = Object.assign({}, Reflect.get(_src_cli_history_tsx__rspack_import_34, 'default'), _src_cli_history_tsx__rspack_import_34);
|
|
26240
|
+
const route32 = Object.assign({}, Reflect.get(_src_cli_send_tsx__rspack_import_35, 'default'), _src_cli_send_tsx__rspack_import_35);
|
|
26241
|
+
const route33 = Object.assign({}, Reflect.get(_src_cli_skills_add_tsx__rspack_import_36, 'default'), _src_cli_skills_add_tsx__rspack_import_36);
|
|
26242
|
+
const route34 = Object.assign({}, Reflect.get(_src_cli_skills_list_tsx__rspack_import_37, 'default'), _src_cli_skills_list_tsx__rspack_import_37);
|
|
26243
|
+
const route35 = Object.assign({}, Reflect.get(_src_cli_skills_remove_tsx__rspack_import_38, 'default'), _src_cli_skills_remove_tsx__rspack_import_38);
|
|
26244
|
+
const route36 = Object.assign({}, Reflect.get(_src_cli_thread_tsx__rspack_import_39, 'default'), _src_cli_thread_tsx__rspack_import_39);
|
|
26245
|
+
const pluginRoot = (0, _agent_bundle_runtime__rspack_import_40.E7)({
|
|
26009
26246
|
fallback: (0, node_url__rspack_import_2.fileURLToPath)(new URL('..', import.meta.url)),
|
|
26010
26247
|
stateAnchor: 'user-data'
|
|
26011
26248
|
});
|
|
@@ -26111,131 +26348,137 @@ const routes = Object.freeze({
|
|
|
26111
26348
|
name: "codex list-threads",
|
|
26112
26349
|
module: route14
|
|
26113
26350
|
}),
|
|
26351
|
+
"cli:codex/new": Object.freeze({
|
|
26352
|
+
id: "cli:codex/new",
|
|
26353
|
+
kind: "cli",
|
|
26354
|
+
name: "codex new",
|
|
26355
|
+
module: route15
|
|
26356
|
+
}),
|
|
26114
26357
|
"cli:codex/queue": Object.freeze({
|
|
26115
26358
|
id: "cli:codex/queue",
|
|
26116
26359
|
kind: "cli",
|
|
26117
26360
|
name: "codex queue",
|
|
26118
|
-
module:
|
|
26361
|
+
module: route16
|
|
26119
26362
|
}),
|
|
26120
26363
|
"cli:codex/send": Object.freeze({
|
|
26121
26364
|
id: "cli:codex/send",
|
|
26122
26365
|
kind: "cli",
|
|
26123
26366
|
name: "codex send",
|
|
26124
|
-
module:
|
|
26367
|
+
module: route17
|
|
26125
26368
|
}),
|
|
26126
26369
|
"cli:codex/status": Object.freeze({
|
|
26127
26370
|
id: "cli:codex/status",
|
|
26128
26371
|
kind: "cli",
|
|
26129
26372
|
name: "codex status",
|
|
26130
|
-
module:
|
|
26373
|
+
module: route18
|
|
26131
26374
|
}),
|
|
26132
26375
|
"cli:codex/wait": Object.freeze({
|
|
26133
26376
|
id: "cli:codex/wait",
|
|
26134
26377
|
kind: "cli",
|
|
26135
26378
|
name: "codex wait",
|
|
26136
|
-
module:
|
|
26379
|
+
module: route19
|
|
26137
26380
|
}),
|
|
26138
26381
|
"cli:codex/watch": Object.freeze({
|
|
26139
26382
|
id: "cli:codex/watch",
|
|
26140
26383
|
kind: "cli",
|
|
26141
26384
|
name: "codex watch",
|
|
26142
|
-
module:
|
|
26385
|
+
module: route20
|
|
26143
26386
|
}),
|
|
26144
26387
|
"cli:doctor": Object.freeze({
|
|
26145
26388
|
id: "cli:doctor",
|
|
26146
26389
|
kind: "cli",
|
|
26147
26390
|
name: "doctor",
|
|
26148
|
-
module:
|
|
26391
|
+
module: route21
|
|
26149
26392
|
}),
|
|
26150
26393
|
"cli:groups/add": Object.freeze({
|
|
26151
26394
|
id: "cli:groups/add",
|
|
26152
26395
|
kind: "cli",
|
|
26153
26396
|
name: "groups add",
|
|
26154
|
-
module:
|
|
26397
|
+
module: route22
|
|
26155
26398
|
}),
|
|
26156
26399
|
"cli:groups/create": Object.freeze({
|
|
26157
26400
|
id: "cli:groups/create",
|
|
26158
26401
|
kind: "cli",
|
|
26159
26402
|
name: "groups create",
|
|
26160
|
-
module:
|
|
26403
|
+
module: route23
|
|
26161
26404
|
}),
|
|
26162
26405
|
"cli:groups/delete": Object.freeze({
|
|
26163
26406
|
id: "cli:groups/delete",
|
|
26164
26407
|
kind: "cli",
|
|
26165
26408
|
name: "groups delete",
|
|
26166
|
-
module:
|
|
26409
|
+
module: route24
|
|
26167
26410
|
}),
|
|
26168
26411
|
"cli:groups/get": Object.freeze({
|
|
26169
26412
|
id: "cli:groups/get",
|
|
26170
26413
|
kind: "cli",
|
|
26171
26414
|
name: "groups get",
|
|
26172
|
-
module:
|
|
26415
|
+
module: route25
|
|
26173
26416
|
}),
|
|
26174
26417
|
"cli:groups/list": Object.freeze({
|
|
26175
26418
|
id: "cli:groups/list",
|
|
26176
26419
|
kind: "cli",
|
|
26177
26420
|
name: "groups list",
|
|
26178
|
-
module:
|
|
26421
|
+
module: route26
|
|
26179
26422
|
}),
|
|
26180
26423
|
"cli:groups/members": Object.freeze({
|
|
26181
26424
|
id: "cli:groups/members",
|
|
26182
26425
|
kind: "cli",
|
|
26183
26426
|
name: "groups members",
|
|
26184
|
-
module:
|
|
26427
|
+
module: route27
|
|
26185
26428
|
}),
|
|
26186
26429
|
"cli:groups/remove": Object.freeze({
|
|
26187
26430
|
id: "cli:groups/remove",
|
|
26188
26431
|
kind: "cli",
|
|
26189
26432
|
name: "groups remove",
|
|
26190
|
-
module:
|
|
26433
|
+
module: route28
|
|
26191
26434
|
}),
|
|
26192
26435
|
"cli:groups/set": Object.freeze({
|
|
26193
26436
|
id: "cli:groups/set",
|
|
26194
26437
|
kind: "cli",
|
|
26195
26438
|
name: "groups set",
|
|
26196
|
-
module:
|
|
26439
|
+
module: route29
|
|
26197
26440
|
}),
|
|
26198
26441
|
"cli:groups/update": Object.freeze({
|
|
26199
26442
|
id: "cli:groups/update",
|
|
26200
26443
|
kind: "cli",
|
|
26201
26444
|
name: "groups update",
|
|
26202
|
-
module:
|
|
26445
|
+
module: route30
|
|
26203
26446
|
}),
|
|
26204
26447
|
"cli:history": Object.freeze({
|
|
26205
26448
|
id: "cli:history",
|
|
26206
26449
|
kind: "cli",
|
|
26207
26450
|
name: "history",
|
|
26208
|
-
module:
|
|
26451
|
+
module: route31
|
|
26209
26452
|
}),
|
|
26210
26453
|
"cli:send": Object.freeze({
|
|
26211
26454
|
id: "cli:send",
|
|
26212
26455
|
kind: "cli",
|
|
26213
26456
|
name: "send",
|
|
26214
|
-
module:
|
|
26457
|
+
module: route32
|
|
26215
26458
|
}),
|
|
26216
26459
|
"cli:skills/add": Object.freeze({
|
|
26217
26460
|
id: "cli:skills/add",
|
|
26218
26461
|
kind: "cli",
|
|
26219
26462
|
name: "skills add",
|
|
26220
|
-
module:
|
|
26463
|
+
module: route33
|
|
26221
26464
|
}),
|
|
26222
26465
|
"cli:skills/list": Object.freeze({
|
|
26223
26466
|
id: "cli:skills/list",
|
|
26224
26467
|
kind: "cli",
|
|
26225
26468
|
name: "skills list",
|
|
26226
|
-
module:
|
|
26469
|
+
module: route34
|
|
26227
26470
|
}),
|
|
26228
26471
|
"cli:skills/remove": Object.freeze({
|
|
26229
26472
|
id: "cli:skills/remove",
|
|
26230
26473
|
kind: "cli",
|
|
26231
26474
|
name: "skills remove",
|
|
26232
|
-
module:
|
|
26475
|
+
module: route35
|
|
26233
26476
|
}),
|
|
26234
26477
|
"cli:thread": Object.freeze({
|
|
26235
26478
|
id: "cli:thread",
|
|
26236
26479
|
kind: "cli",
|
|
26237
26480
|
name: "thread",
|
|
26238
|
-
module:
|
|
26481
|
+
module: route36
|
|
26239
26482
|
})
|
|
26240
26483
|
});
|
|
26241
26484
|
const requests = new Map();
|
|
@@ -26270,18 +26513,18 @@ const render = async (message)=>{
|
|
|
26270
26513
|
};
|
|
26271
26514
|
try {
|
|
26272
26515
|
const cwd = process.cwd();
|
|
26273
|
-
await (0,
|
|
26516
|
+
await (0, _agent_bundle_runtime__rspack_import_41.iC)({
|
|
26274
26517
|
capabilities: {
|
|
26275
|
-
command: (0,
|
|
26276
|
-
filesystem: (0,
|
|
26277
|
-
network: (0,
|
|
26278
|
-
projectRoot: (0,
|
|
26518
|
+
command: (0, _agent_bundle_runtime__rspack_import_41.hU)(),
|
|
26519
|
+
filesystem: (0, _agent_bundle_runtime__rspack_import_41.hU)(),
|
|
26520
|
+
network: (0, _agent_bundle_runtime__rspack_import_41.hU)(),
|
|
26521
|
+
projectRoot: (0, _agent_bundle_runtime__rspack_import_41.qC)({
|
|
26279
26522
|
root: cwd
|
|
26280
26523
|
}, 'derived')
|
|
26281
26524
|
},
|
|
26282
|
-
host: (0,
|
|
26525
|
+
host: (0, _agent_bundle_runtime__rspack_import_41.hU)('unsupported-surface'),
|
|
26283
26526
|
invocation: message.request,
|
|
26284
|
-
lineage: (0,
|
|
26527
|
+
lineage: (0, _agent_bundle_runtime__rspack_import_41.hU)('unsupported-surface'),
|
|
26285
26528
|
plugin: pluginRoot.identity,
|
|
26286
26529
|
progress: {
|
|
26287
26530
|
report: async (update)=>{
|
|
@@ -26294,8 +26537,8 @@ const render = async (message)=>{
|
|
|
26294
26537
|
},
|
|
26295
26538
|
process: processHit,
|
|
26296
26539
|
signal: controller.signal,
|
|
26297
|
-
terminal: message.terminal === undefined ? (0,
|
|
26298
|
-
workspace: (0,
|
|
26540
|
+
terminal: message.terminal === undefined ? (0, _agent_bundle_runtime__rspack_import_41.hU)('not-provided') : (0, _agent_bundle_runtime__rspack_import_41.qC)(message.terminal, 'native'),
|
|
26541
|
+
workspace: (0, _agent_bundle_runtime__rspack_import_41.qC)({
|
|
26299
26542
|
root: cwd
|
|
26300
26543
|
}, 'derived')
|
|
26301
26544
|
}, async ()=>{
|
|
@@ -26304,7 +26547,7 @@ const render = async (message)=>{
|
|
|
26304
26547
|
type: 'observed-render-start'
|
|
26305
26548
|
});
|
|
26306
26549
|
const renderStartedAt = performance.now();
|
|
26307
|
-
const flight = (0,
|
|
26550
|
+
const flight = (0, _agent_bundle_runtime_flight_server__rspack_import_42.y)(composeLayouts(observedRoute, {
|
|
26308
26551
|
...message.props,
|
|
26309
26552
|
signal: controller.signal
|
|
26310
26553
|
}, controller.signal), {
|