grok-bot-cli 0.7.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/CHANGELOG.md +6 -0
- 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 +6 -6
- 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 +127 -88
- package/dist/bin/gbot-install.js +2 -2
- package/dist/bin/gbot.mjs +427 -211
- package/dist/install.mjs +21 -14
- package/dist/mcp/mcp-grok-bot-b8c2461e-flight.mjs +141 -32
- package/dist/mcp/mcp-grok-bot-b8c2461e.mjs +447 -156
- package/dist/package.json +3 -3
- package/dist/plugin.json +1 -1
- package/dist/scripts/gbot-relay.mjs +2050 -12
- package/dist/skills/talk-to-grok-bot/SKILL.md +8 -0
- package/package.json +3 -3
package/dist/bin/gbot-flight.mjs
CHANGED
|
@@ -13555,9 +13555,9 @@ const config = {
|
|
|
13555
13555
|
};
|
|
13556
13556
|
async function route({ input }) {
|
|
13557
13557
|
const out = await (0,_core_grok_approval_routes_js__rspack_import_1/* .listOperation */.gi)(input);
|
|
13558
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.
|
|
13558
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g6.Result, {
|
|
13559
13559
|
value: out,
|
|
13560
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.
|
|
13560
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g6.Text, {
|
|
13561
13561
|
children: JSON.stringify(out)
|
|
13562
13562
|
})
|
|
13563
13563
|
});
|
|
@@ -13615,9 +13615,9 @@ const config = {
|
|
|
13615
13615
|
};
|
|
13616
13616
|
async function route({ input }) {
|
|
13617
13617
|
const out = await (0,_core_grok_approval_routes_js__rspack_import_1/* .respondOperation */.lr)(input);
|
|
13618
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.
|
|
13618
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g6.Result, {
|
|
13619
13619
|
value: out,
|
|
13620
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.
|
|
13620
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g6.Text, {
|
|
13621
13621
|
children: JSON.stringify(out)
|
|
13622
13622
|
})
|
|
13623
13623
|
});
|
|
@@ -13689,9 +13689,9 @@ async function botsCreate({ input }) {
|
|
|
13689
13689
|
const { dir: _d, files: _f, gateway: _g, ...fields } = input;
|
|
13690
13690
|
const rec = await backend.createAgent((0,_shared_js__rspack_import_1/* .toCreateInput */.cp)(fields));
|
|
13691
13691
|
if (rec == null) throw new Error('createAgent returned no record');
|
|
13692
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.
|
|
13692
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Result */.g6.Result, {
|
|
13693
13693
|
value: (0,_core_format_js__rspack_import_3/* .summarize */.eh)(rec),
|
|
13694
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.
|
|
13694
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_2/* .Agent.Text */.g6.Text, {
|
|
13695
13695
|
children: `Created bot ${rec.name} (${rec.id})`
|
|
13696
13696
|
})
|
|
13697
13697
|
});
|
|
@@ -13757,9 +13757,9 @@ const resultSchema = _shared_js__rspack_import_1/* .agentSummarySchema */.t_;
|
|
|
13757
13757
|
async function botsDelete({ input }) {
|
|
13758
13758
|
const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
|
|
13759
13759
|
const rec = await backend.deleteAgent(input.ref);
|
|
13760
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
13760
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
13761
13761
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
13762
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
13762
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
13763
13763
|
children: `Deleted ${rec.isGroup ? 'group' : 'bot'} ${rec.name} (${rec.id})`
|
|
13764
13764
|
})
|
|
13765
13765
|
});
|
|
@@ -13826,9 +13826,9 @@ async function botsGet({ input }) {
|
|
|
13826
13826
|
const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
|
|
13827
13827
|
const rec = await backend.resolve(input.ref);
|
|
13828
13828
|
const all = await backend.list();
|
|
13829
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
13829
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
13830
13830
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
13831
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
13831
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
13832
13832
|
children: (0,_core_format_js__rspack_import_4/* .formatRecord */.bM)(rec, all)
|
|
13833
13833
|
})
|
|
13834
13834
|
});
|
|
@@ -13885,9 +13885,9 @@ async function botsList({ input }) {
|
|
|
13885
13885
|
const rows = all.filter((r)=>!r.isGroup);
|
|
13886
13886
|
const bots = rows.map(_core_format_js__rspack_import_3/* .summarize */.eh);
|
|
13887
13887
|
const text = rows.length === 0 ? 'No bots.' : rows.map((r)=>(0,_core_format_js__rspack_import_3/* .formatRecord */.bM)(r, all)).join('\n\n');
|
|
13888
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
13888
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
13889
13889
|
value: bots,
|
|
13890
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
13890
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
13891
13891
|
children: text
|
|
13892
13892
|
})
|
|
13893
13893
|
});
|
|
@@ -13975,9 +13975,9 @@ async function botsUpdate({ input }) {
|
|
|
13975
13975
|
const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
|
|
13976
13976
|
const { dir: _d, files: _f, gateway: _g, ref, ...fields } = input;
|
|
13977
13977
|
const rec = await backend.updateAgent(ref, (0,_shared_js__rspack_import_1/* .toUpdatePatch */.li)(fields));
|
|
13978
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
13978
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
13979
13979
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
13980
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
13980
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
13981
13981
|
children: `Updated ${rec.isGroup ? 'group' : 'bot'} ${rec.name} (${rec.id})`
|
|
13982
13982
|
})
|
|
13983
13983
|
});
|
|
@@ -14061,9 +14061,9 @@ async function route({ input }) {
|
|
|
14061
14061
|
} catch (error) {
|
|
14062
14062
|
out = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
|
|
14063
14063
|
}
|
|
14064
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
14064
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
14065
14065
|
value: out,
|
|
14066
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
14066
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
14067
14067
|
children: JSON.stringify(out)
|
|
14068
14068
|
})
|
|
14069
14069
|
});
|
|
@@ -14152,12 +14152,12 @@ async function route({ signal, input }) {
|
|
|
14152
14152
|
} finally{
|
|
14153
14153
|
signal.removeEventListener('abort', stop);
|
|
14154
14154
|
}
|
|
14155
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.
|
|
14155
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
|
|
14156
14156
|
value: {
|
|
14157
14157
|
state: 'stopped',
|
|
14158
14158
|
exitCode
|
|
14159
14159
|
},
|
|
14160
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.
|
|
14160
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
|
|
14161
14161
|
children: "Relay worker stopped."
|
|
14162
14162
|
})
|
|
14163
14163
|
});
|
|
@@ -14230,9 +14230,9 @@ async function route({ input }) {
|
|
|
14230
14230
|
} catch (error) {
|
|
14231
14231
|
out = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
|
|
14232
14232
|
}
|
|
14233
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
14233
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
14234
14234
|
value: out,
|
|
14235
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
14235
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
14236
14236
|
children: JSON.stringify(out)
|
|
14237
14237
|
})
|
|
14238
14238
|
});
|
|
@@ -14286,9 +14286,9 @@ async function route({ input }) {
|
|
|
14286
14286
|
} catch (error) {
|
|
14287
14287
|
out = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
|
|
14288
14288
|
}
|
|
14289
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
14289
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
14290
14290
|
value: out,
|
|
14291
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
14291
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
14292
14292
|
children: JSON.stringify(out)
|
|
14293
14293
|
})
|
|
14294
14294
|
});
|
|
@@ -14345,9 +14345,9 @@ async function route({ input }) {
|
|
|
14345
14345
|
} catch (error) {
|
|
14346
14346
|
out = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
|
|
14347
14347
|
}
|
|
14348
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
14348
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
14349
14349
|
value: out,
|
|
14350
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
14350
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
14351
14351
|
children: JSON.stringify(out)
|
|
14352
14352
|
})
|
|
14353
14353
|
});
|
|
@@ -14423,21 +14423,21 @@ async function codexDesktopShim({ input }) {
|
|
|
14423
14423
|
out = (0,_core_desktop_shim_js__rspack_import_1/* .installDesktopShim */.B0)();
|
|
14424
14424
|
} catch (error) {
|
|
14425
14425
|
const message = error instanceof Error ? error.message : String(error);
|
|
14426
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
14426
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
14427
14427
|
value: {
|
|
14428
14428
|
action: 'install',
|
|
14429
14429
|
error: message,
|
|
14430
14430
|
exitCode: 1
|
|
14431
14431
|
},
|
|
14432
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
14432
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
14433
14433
|
children: `Desktop shim install failed: ${message}`
|
|
14434
14434
|
})
|
|
14435
14435
|
});
|
|
14436
14436
|
}
|
|
14437
14437
|
const text = `Installed ChatGPT Desktop shim:\n` + ` wrapper: ${out.wrapperPath}\n` + ` bridge: ${out.bridgePath}\n` + ` login env: ${out.envScriptPath}` + (out.plistPath ? `\n LaunchAgent: ${out.plistPath}` : '\n LaunchAgent: n/a (macOS-only)') + `\nFully quit and relaunch ChatGPT.app so it inherits CODEX_CLI_PATH; ` + `Desktop falls back to stock Codex if the shim is ever removed.` + formatWarnings(out.warnings);
|
|
14438
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
14438
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
14439
14439
|
value: out,
|
|
14440
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
14440
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
14441
14441
|
children: text
|
|
14442
14442
|
})
|
|
14443
14443
|
});
|
|
@@ -14449,22 +14449,22 @@ async function codexDesktopShim({ input }) {
|
|
|
14449
14449
|
out = (0,_core_desktop_shim_js__rspack_import_1/* .uninstallDesktopShim */.gM)();
|
|
14450
14450
|
} catch (error) {
|
|
14451
14451
|
const message = error instanceof Error ? error.message : String(error);
|
|
14452
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
14452
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
14453
14453
|
value: {
|
|
14454
14454
|
action: 'uninstall',
|
|
14455
14455
|
error: message,
|
|
14456
14456
|
exitCode: 1
|
|
14457
14457
|
},
|
|
14458
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
14458
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
14459
14459
|
children: `Desktop shim uninstall failed: ${message}`
|
|
14460
14460
|
})
|
|
14461
14461
|
});
|
|
14462
14462
|
}
|
|
14463
14463
|
const removed = out.removed.length === 0 ? '(nothing installed)' : out.removed.join(', ');
|
|
14464
14464
|
const text = `Removed ChatGPT Desktop shim: ${removed}. ` + `Desktop and Codex fall back to stock behavior; relaunch ChatGPT.app to pick it up.` + formatWarnings(out.warnings);
|
|
14465
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
14465
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
14466
14466
|
value: out,
|
|
14467
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
14467
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
14468
14468
|
children: text
|
|
14469
14469
|
})
|
|
14470
14470
|
});
|
|
@@ -14472,9 +14472,9 @@ async function codexDesktopShim({ input }) {
|
|
|
14472
14472
|
case 'status':
|
|
14473
14473
|
{
|
|
14474
14474
|
const out = (0,_core_desktop_shim_js__rspack_import_1/* .desktopShimStatus */.em)();
|
|
14475
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
14475
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
14476
14476
|
value: out,
|
|
14477
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
14477
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
14478
14478
|
children: (0,_core_format_js__rspack_import_4/* .formatDesktopShimStatus */.fX)(out)
|
|
14479
14479
|
})
|
|
14480
14480
|
});
|
|
@@ -14554,21 +14554,21 @@ async function codexListThreads({ input }) {
|
|
|
14554
14554
|
});
|
|
14555
14555
|
} catch (error) {
|
|
14556
14556
|
const failure = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
|
|
14557
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.
|
|
14557
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
|
|
14558
14558
|
value: failure,
|
|
14559
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.
|
|
14559
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
|
|
14560
14560
|
children: failure.error
|
|
14561
14561
|
})
|
|
14562
14562
|
});
|
|
14563
14563
|
}
|
|
14564
14564
|
const more = out.nextCursor ? `\n\nmore: --cursor ${JSON.stringify((0,_core_codex_bridge_js__rspack_import_1/* .singleLine */.pF)(out.nextCursor))}` : '';
|
|
14565
14565
|
const text = out.threads.length === 0 ? 'No Codex threads.' : out.threads.map(_core_format_js__rspack_import_6/* .formatCodexThread */.nz).join('\n\n') + more;
|
|
14566
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.
|
|
14566
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
|
|
14567
14567
|
value: {
|
|
14568
14568
|
...out,
|
|
14569
14569
|
exitCode: 0
|
|
14570
14570
|
},
|
|
14571
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.
|
|
14571
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
|
|
14572
14572
|
children: text
|
|
14573
14573
|
})
|
|
14574
14574
|
});
|
|
@@ -14641,19 +14641,19 @@ async function codexQueue({ input }) {
|
|
|
14641
14641
|
out = await (0,_core_codex_bridge_js__rspack_import_1/* .listCodexQueue */.Bt)(input.threadId);
|
|
14642
14642
|
} catch (error) {
|
|
14643
14643
|
const failure = (0,_core_codex_contract_js__rspack_import_2/* .outcomeFromError */.DG)(error);
|
|
14644
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.
|
|
14644
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
|
|
14645
14645
|
value: failure,
|
|
14646
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.
|
|
14646
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
|
|
14647
14647
|
children: failure.error
|
|
14648
14648
|
})
|
|
14649
14649
|
});
|
|
14650
14650
|
}
|
|
14651
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.
|
|
14651
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
|
|
14652
14652
|
value: {
|
|
14653
14653
|
...out,
|
|
14654
14654
|
exitCode: 0
|
|
14655
14655
|
},
|
|
14656
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.
|
|
14656
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
|
|
14657
14657
|
children: (0,_core_format_js__rspack_import_6/* .formatCodexQueue */.e_)(out)
|
|
14658
14658
|
})
|
|
14659
14659
|
});
|
|
@@ -14784,12 +14784,12 @@ async function route({ input, signal }) {
|
|
|
14784
14784
|
...input,
|
|
14785
14785
|
message: input.message.join(' ').trim()
|
|
14786
14786
|
}, context);
|
|
14787
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.
|
|
14787
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
|
|
14788
14788
|
value: {
|
|
14789
14789
|
...out,
|
|
14790
14790
|
exitCode: out.delivery === 'rejected' ? 1 : 0
|
|
14791
14791
|
},
|
|
14792
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.
|
|
14792
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
|
|
14793
14793
|
children: `Delivery ${out.delivery}; terminal answer returns to Grok automatically.`
|
|
14794
14794
|
})
|
|
14795
14795
|
});
|
|
@@ -14801,9 +14801,9 @@ async function route({ input, signal }) {
|
|
|
14801
14801
|
}, signal, (message)=>context.progress.report({
|
|
14802
14802
|
message
|
|
14803
14803
|
}), true);
|
|
14804
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.
|
|
14804
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Result */.g6.Result, {
|
|
14805
14805
|
value: out,
|
|
14806
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.
|
|
14806
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_5/* .Agent.Text */.g6.Text, {
|
|
14807
14807
|
children: (0,_core_codex_routes_js__rspack_import_1/* .resultText */.D6)(out)
|
|
14808
14808
|
})
|
|
14809
14809
|
});
|
|
@@ -14849,9 +14849,9 @@ const resultSchema = zod__rspack_import_2/* .object */.Ikc({
|
|
|
14849
14849
|
}).passthrough();
|
|
14850
14850
|
async function codexStatusCmd(_props) {
|
|
14851
14851
|
const status = await (0,_core_codex_bridge_js__rspack_import_1/* .codexStatus */.MU)();
|
|
14852
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
14852
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
14853
14853
|
value: status,
|
|
14854
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
14854
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
14855
14855
|
children: (0,_core_format_js__rspack_import_4/* .formatCodexStatus */.P2)(status)
|
|
14856
14856
|
})
|
|
14857
14857
|
});
|
|
@@ -14923,9 +14923,9 @@ async function route({ input, signal }) {
|
|
|
14923
14923
|
const out = await (0,_core_codex_routes_js__rspack_import_1/* .observeOperation */.gT)('wait', input, signal, (message)=>context.progress.report({
|
|
14924
14924
|
message
|
|
14925
14925
|
}));
|
|
14926
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
14926
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
14927
14927
|
value: out,
|
|
14928
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
14928
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
14929
14929
|
children: (0,_core_codex_routes_js__rspack_import_1/* .resultText */.D6)(out)
|
|
14930
14930
|
})
|
|
14931
14931
|
});
|
|
@@ -14989,9 +14989,9 @@ async function route({ input, signal }) {
|
|
|
14989
14989
|
const out = await (0,_core_codex_routes_js__rspack_import_1/* .observeOperation */.gT)('watch', input, signal, (message)=>context.progress.report({
|
|
14990
14990
|
message
|
|
14991
14991
|
}));
|
|
14992
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
14992
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
14993
14993
|
value: out,
|
|
14994
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
14994
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
14995
14995
|
children: (0,_core_codex_routes_js__rspack_import_1/* .resultText */.D6)(out)
|
|
14996
14996
|
})
|
|
14997
14997
|
});
|
|
@@ -15094,9 +15094,9 @@ async function doctor({ input }) {
|
|
|
15094
15094
|
...candidates.map((c)=>` ${c}`),
|
|
15095
15095
|
note
|
|
15096
15096
|
].join('\n');
|
|
15097
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_6/* .Agent.Result */.
|
|
15097
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_6/* .Agent.Result */.g6.Result, {
|
|
15098
15098
|
value: value,
|
|
15099
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_6/* .Agent.Text */.
|
|
15099
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_6/* .Agent.Text */.g6.Text, {
|
|
15100
15100
|
children: text
|
|
15101
15101
|
})
|
|
15102
15102
|
});
|
|
@@ -15167,9 +15167,9 @@ const resultSchema = _shared_js__rspack_import_1/* .agentSummarySchema */.t_;
|
|
|
15167
15167
|
async function groupsAdd({ input }) {
|
|
15168
15168
|
const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
|
|
15169
15169
|
const rec = await backend.addGroupMember(input.group, input.bot);
|
|
15170
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15170
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15171
15171
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
15172
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15172
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15173
15173
|
children: `Added to ${rec.name}. Members: ${rec.memberIds.length}`
|
|
15174
15174
|
})
|
|
15175
15175
|
});
|
|
@@ -15255,9 +15255,9 @@ async function groupsCreate({ input }) {
|
|
|
15255
15255
|
...(0,_shared_js__rspack_import_1/* .toCreateInput */.cp)(fields),
|
|
15256
15256
|
memberIds: member
|
|
15257
15257
|
});
|
|
15258
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15258
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15259
15259
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
15260
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15260
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15261
15261
|
children: `Created group ${rec.name} (${rec.id}) with ${rec.memberIds.length} members`
|
|
15262
15262
|
})
|
|
15263
15263
|
});
|
|
@@ -15325,9 +15325,9 @@ async function groupsDelete({ input }) {
|
|
|
15325
15325
|
const rec = await backend.resolve(input.ref);
|
|
15326
15326
|
if (!rec.isGroup) throw new Error(`"${rec.name}" is a bot, not a group. Use bots delete.`);
|
|
15327
15327
|
const deleted = await backend.deleteAgent(input.ref);
|
|
15328
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15328
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15329
15329
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(deleted),
|
|
15330
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15330
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15331
15331
|
children: `Deleted group ${deleted.name} (${deleted.id})`
|
|
15332
15332
|
})
|
|
15333
15333
|
});
|
|
@@ -15395,9 +15395,9 @@ async function groupsGet({ input }) {
|
|
|
15395
15395
|
const rec = await backend.resolve(input.ref);
|
|
15396
15396
|
if (!rec.isGroup) throw new Error(`"${rec.name}" is a bot, not a group.`);
|
|
15397
15397
|
const all = await backend.list();
|
|
15398
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15398
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15399
15399
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
15400
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15400
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15401
15401
|
children: (0,_core_format_js__rspack_import_4/* .formatRecord */.bM)(rec, all)
|
|
15402
15402
|
})
|
|
15403
15403
|
});
|
|
@@ -15454,9 +15454,9 @@ async function groupsList({ input }) {
|
|
|
15454
15454
|
const rows = all.filter((r)=>r.isGroup);
|
|
15455
15455
|
const groups = rows.map(_core_format_js__rspack_import_3/* .summarize */.eh);
|
|
15456
15456
|
const text = rows.length === 0 ? 'No groups.' : rows.map((r)=>(0,_core_format_js__rspack_import_3/* .formatRecord */.bM)(r, all)).join('\n\n');
|
|
15457
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
15457
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
15458
15458
|
value: groups,
|
|
15459
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
15459
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
15460
15460
|
children: text
|
|
15461
15461
|
})
|
|
15462
15462
|
});
|
|
@@ -15524,9 +15524,9 @@ async function groupsMembers({ input }) {
|
|
|
15524
15524
|
const rec = await backend.resolve(input.ref);
|
|
15525
15525
|
if (!rec.isGroup) throw new Error(`"${rec.name}" is a bot, not a group.`);
|
|
15526
15526
|
const all = await backend.list();
|
|
15527
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15527
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15528
15528
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
15529
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15529
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15530
15530
|
children: (0,_core_format_js__rspack_import_4/* .formatRecord */.bM)(rec, all)
|
|
15531
15531
|
})
|
|
15532
15532
|
});
|
|
@@ -15597,9 +15597,9 @@ const resultSchema = _shared_js__rspack_import_1/* .agentSummarySchema */.t_;
|
|
|
15597
15597
|
async function groupsRemove({ input }) {
|
|
15598
15598
|
const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
|
|
15599
15599
|
const rec = await backend.removeGroupMember(input.group, input.bot);
|
|
15600
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15600
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15601
15601
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
15602
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15602
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15603
15603
|
children: `Removed from ${rec.name}. Members: ${rec.memberIds.length}`
|
|
15604
15604
|
})
|
|
15605
15605
|
});
|
|
@@ -15673,9 +15673,9 @@ const resultSchema = _shared_js__rspack_import_1/* .agentSummarySchema */.t_;
|
|
|
15673
15673
|
async function groupsSet({ input }) {
|
|
15674
15674
|
const backend = await (0,_shared_js__rspack_import_1/* .openBackendFromInput */.FS)(input);
|
|
15675
15675
|
const rec = await backend.setGroupMembers(input.group, input.member);
|
|
15676
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15676
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15677
15677
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
15678
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15678
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15679
15679
|
children: `Updated ${rec.name}. Members: ${rec.memberIds.length}`
|
|
15680
15680
|
})
|
|
15681
15681
|
});
|
|
@@ -15765,9 +15765,9 @@ async function groupsUpdate({ input }) {
|
|
|
15765
15765
|
if (!current.isGroup) throw new Error(`"${current.name}" is a bot, not a group. Use bots update.`);
|
|
15766
15766
|
const { dir: _d, files: _f, gateway: _g, ref, ...fields } = input;
|
|
15767
15767
|
const rec = await backend.updateAgent(ref, (0,_shared_js__rspack_import_1/* .toUpdatePatch */.li)(fields));
|
|
15768
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15768
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15769
15769
|
value: (0,_core_format_js__rspack_import_4/* .summarize */.eh)(rec),
|
|
15770
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15770
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15771
15771
|
children: `Updated group ${rec.name} (${rec.id})`
|
|
15772
15772
|
})
|
|
15773
15773
|
});
|
|
@@ -15843,11 +15843,11 @@ const resultSchema = zod__rspack_import_2/* .union */.KCZ([
|
|
|
15843
15843
|
async function history({ input }) {
|
|
15844
15844
|
const file = (0,_core_history_js__rspack_import_1/* .historyPath */.ae)(input.historyDir);
|
|
15845
15845
|
if (input.path) {
|
|
15846
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15846
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15847
15847
|
value: {
|
|
15848
15848
|
path: file
|
|
15849
15849
|
},
|
|
15850
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15850
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15851
15851
|
children: file
|
|
15852
15852
|
})
|
|
15853
15853
|
});
|
|
@@ -15858,9 +15858,9 @@ async function history({ input }) {
|
|
|
15858
15858
|
search: input.search
|
|
15859
15859
|
});
|
|
15860
15860
|
const text = rows.length ? rows.map((row)=>`[${row.recordedAt}] ${row.target.name} (${row.target.id}) [${row.role}] ${row.text}`).join('\n') : 'No local history.';
|
|
15861
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.
|
|
15861
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Result */.g6.Result, {
|
|
15862
15862
|
value: rows,
|
|
15863
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.
|
|
15863
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_3/* .Agent.Text */.g6.Text, {
|
|
15864
15864
|
children: text
|
|
15865
15865
|
})
|
|
15866
15866
|
});
|
|
@@ -16070,12 +16070,12 @@ async function send({ input }) {
|
|
|
16070
16070
|
hop: input.hop,
|
|
16071
16071
|
correlationId: input.correlationId
|
|
16072
16072
|
}, await (0,_agent_bundle_runtime__rspack_import_7/* .agent */.MA)());
|
|
16073
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Result */.
|
|
16073
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Result */.g6.Result, {
|
|
16074
16074
|
value: {
|
|
16075
16075
|
...out,
|
|
16076
16076
|
exitCode: out.delivery === 'rejected' ? 1 : 0
|
|
16077
16077
|
},
|
|
16078
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Text */.
|
|
16078
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Text */.g6.Text, {
|
|
16079
16079
|
children: `Delivery ${out.delivery}; inspect codex bridge status for automatic reply delivery.`
|
|
16080
16080
|
})
|
|
16081
16081
|
});
|
|
@@ -16085,9 +16085,9 @@ async function send({ input }) {
|
|
|
16085
16085
|
value = (0,_core_codex_contract_js__rspack_import_3/* .outcomeFromError */.DG)(error);
|
|
16086
16086
|
}
|
|
16087
16087
|
const text = value.exitCode === 0 ? `Sent to ${value.kind} ${value.name} (${value.id})${value.messageId ? ` message ${value.messageId}` : ''}; envelope ${value.envelopeId}` : value.error;
|
|
16088
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Result */.
|
|
16088
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Result */.g6.Result, {
|
|
16089
16089
|
value: value,
|
|
16090
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Text */.
|
|
16090
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_8/* .Agent.Text */.g6.Text, {
|
|
16091
16091
|
children: text
|
|
16092
16092
|
})
|
|
16093
16093
|
});
|
|
@@ -16194,9 +16194,9 @@ async function thread({ input }) {
|
|
|
16194
16194
|
event: 'thread',
|
|
16195
16195
|
rootId: input.root
|
|
16196
16196
|
});
|
|
16197
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
16197
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
16198
16198
|
value: rooted,
|
|
16199
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
16199
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
16200
16200
|
children: (0,_core_format_js__rspack_import_5/* .formatTranscript */.oZ)(rooted, {
|
|
16201
16201
|
full: input.full
|
|
16202
16202
|
})
|
|
@@ -16226,9 +16226,9 @@ async function thread({ input }) {
|
|
|
16226
16226
|
const text = (0,_core_format_js__rspack_import_5/* .formatTranscript */.oZ)(selected, {
|
|
16227
16227
|
full: input.full
|
|
16228
16228
|
});
|
|
16229
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
16229
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
16230
16230
|
value: selected,
|
|
16231
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
16231
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
16232
16232
|
children: `${text}\n\ncursor: ${delta.cursor}${delta.gapReset ? ' (gap reset)' : ''}`
|
|
16233
16233
|
})
|
|
16234
16234
|
});
|
|
@@ -16238,9 +16238,9 @@ async function thread({ input }) {
|
|
|
16238
16238
|
disabled: input.noHistory,
|
|
16239
16239
|
event: 'thread'
|
|
16240
16240
|
});
|
|
16241
|
-
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.
|
|
16241
|
+
return /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Result */.g6.Result, {
|
|
16242
16242
|
value: out,
|
|
16243
|
-
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.
|
|
16243
|
+
children: /*#__PURE__*/ (0,react_jsx_runtime__rspack_import_0.jsx)(_agent_bundle_runtime__rspack_import_4/* .Agent.Text */.g6.Text, {
|
|
16244
16244
|
children: (0,_core_format_js__rspack_import_5/* .formatTranscript */.oZ)(out, {
|
|
16245
16245
|
full: input.full
|
|
16246
16246
|
})
|
|
@@ -17210,11 +17210,50 @@ const Agent = Object.freeze({
|
|
|
17210
17210
|
Result: AgentResult,
|
|
17211
17211
|
Text: AgentText
|
|
17212
17212
|
});
|
|
17213
|
+
const Result = ({ children })=>createElement('agent-hook-result', null, children);
|
|
17214
|
+
const AdditionalContext = ({ children })=>createElement('agent-hook-additional-context', null, children);
|
|
17215
|
+
const Hook = (/* unused pure expression or super */ null && ({
|
|
17216
|
+
AdditionalContext: AdditionalContext,
|
|
17217
|
+
Result: Result
|
|
17218
|
+
}));
|
|
17219
|
+
const McpResult = ({ _meta, children, isError, structuredContent })=>createElement('mcp-result', {
|
|
17220
|
+
_meta,
|
|
17221
|
+
isError,
|
|
17222
|
+
structuredContent
|
|
17223
|
+
}, children);
|
|
17224
|
+
const McpText = ({ children })=>createElement('mcp-text', null, children);
|
|
17225
|
+
const McpImage = ({ data, mimeType })=>createElement('mcp-image', {
|
|
17226
|
+
data,
|
|
17227
|
+
mimeType
|
|
17228
|
+
});
|
|
17229
|
+
const McpAudio = ({ data, mimeType })=>createElement('mcp-audio', {
|
|
17230
|
+
data,
|
|
17231
|
+
mimeType
|
|
17232
|
+
});
|
|
17233
|
+
const McpResourceLink = ({ mimeType, name, uri })=>createElement('mcp-resource-link', {
|
|
17234
|
+
mimeType,
|
|
17235
|
+
name,
|
|
17236
|
+
uri
|
|
17237
|
+
});
|
|
17238
|
+
const McpEmbeddedResource = ({ blob, children, mimeType, text, uri })=>createElement('mcp-embedded-resource', {
|
|
17239
|
+
blob,
|
|
17240
|
+
mimeType,
|
|
17241
|
+
text,
|
|
17242
|
+
uri
|
|
17243
|
+
}, children);
|
|
17244
|
+
const Mcp = (/* unused pure expression or super */ null && ({
|
|
17245
|
+
Audio: McpAudio,
|
|
17246
|
+
EmbeddedResource: McpEmbeddedResource,
|
|
17247
|
+
Image: McpImage,
|
|
17248
|
+
ResourceLink: McpResourceLink,
|
|
17249
|
+
Result: McpResult,
|
|
17250
|
+
Text: McpText
|
|
17251
|
+
}));
|
|
17213
17252
|
|
|
17214
17253
|
|
|
17215
17254
|
__webpack_require__.d(__webpack_exports__, {
|
|
17216
17255
|
}, {
|
|
17217
|
-
|
|
17256
|
+
g6: Agent
|
|
17218
17257
|
});
|
|
17219
17258
|
|
|
17220
17259
|
|
|
@@ -32044,7 +32083,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
32044
32083
|
|
|
32045
32084
|
},
|
|
32046
32085
|
"./package.json"(module) {
|
|
32047
|
-
module.exports = {"rE":"0.
|
|
32086
|
+
module.exports = {"rE":"0.8.0"}
|
|
32048
32087
|
|
|
32049
32088
|
},
|
|
32050
32089
|
|
package/dist/bin/gbot-install.js
CHANGED
|
@@ -29873,13 +29873,13 @@ const collectDoctorHost = (value, previous)=>[
|
|
|
29873
29873
|
const registerLifecycleCommands = (program, options)=>{
|
|
29874
29874
|
const { from: pinned, lifecycle, machine, setExitCode, show } = options;
|
|
29875
29875
|
const fromOption = (command, help, defaultToCwd = false)=>void 0 === pinned ? command.option('--from <bundle-dir>', help, defaultToCwd ? process.cwd() : void 0) : command;
|
|
29876
|
-
const installCommand = fromOption(program.command('install').description('Install a built bundle into a supported host').argument('<host>', 'Destination host: amp, claude, codex, or cursor', installHost), 'Target bundle directory or artifact root', true).option('--scope <scope>', 'Host install scope', installScope, 'user').option('--replace', "Replace an existing agent-bundle install of this plugin even when its version differs; same-version content drift is replaced automatically and foreign installs are always refused").option('--mode <mode>', 'Cursor delivery mode: local (default) or marketplace', installMode).option('--json', 'Write one machine-readable JSON document');
|
|
29876
|
+
const installCommand = fromOption(program.command('install').description('Install a built bundle into a supported host').argument('<host>', 'Destination host: amp, claude, codex, or cursor', installHost), 'Target bundle directory or artifact root', true).option('--scope <scope>', 'Host install scope', installScope, 'user').option('--replace', "Replace an existing agent-bundle install of this plugin even when its version differs; same-version content drift is replaced automatically and foreign installs are always refused").option('--force', 'Alias for --replace').option('--mode <mode>', 'Cursor delivery mode: local (default) or marketplace', installMode).option('--json', 'Write one machine-readable JSON document');
|
|
29877
29877
|
installCommand.action(async (host, commandOptions)=>{
|
|
29878
29878
|
const { installBundle: install } = await lifecycle();
|
|
29879
29879
|
const result = await install({
|
|
29880
29880
|
from: pinned ?? commandOptions.from ?? process.cwd(),
|
|
29881
29881
|
host,
|
|
29882
|
-
replace: true === commandOptions.replace,
|
|
29882
|
+
replace: true === commandOptions.replace || true === commandOptions.force,
|
|
29883
29883
|
...void 0 === commandOptions.mode ? {} : {
|
|
29884
29884
|
mode: commandOptions.mode
|
|
29885
29885
|
},
|