glimmervoid 0.52.3-next.753 → 0.52.3-next.755
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/glimmervoid.js +7 -7
- package/dist/chunks/agent-api-cli-BxQAE27H.js +1 -0
- package/dist/chunks/{agent-api-cli-DBTcSzw8.js → agent-api-cli-CALhYZQZ.js} +1 -1
- package/dist/chunks/{main-D-_FgjYO.js → main-rdDf5is4.js} +1 -1
- package/dist/chunks/{packs-cli-D5yjSzA-.js → packs-cli-z_cth85d.js} +1 -1
- package/dist/chunks/{pr-flows-cli-B4E9F8N6.js → pr-flows-cli-DGuDlmRd.js} +2 -2
- package/dist/chunks/{settings-cli-CbCUe6iP.js → settings-cli-DH8ooCia.js} +1 -1
- package/dist/chunks/{ssh-sign-cli-BA2qWaWz.js → ssh-sign-cli-B7UuApXe.js} +1 -1
- package/dist/chunks/{whiteboard-svg-core-Cidy3DqV.js → whiteboard-svg-core-DT-i6bD3.js} +216 -65
- package/dist/client/assets/{agent-mark-Dm0kWRK-.js → agent-mark-BmW5Wx4u.js} +1 -1
- package/dist/client/assets/agent-mark-BmW5Wx4u.js.br +0 -0
- package/dist/client/assets/{arena-panel-BUdi1FR6.js → arena-panel-BP0aN6a4.js} +2 -2
- package/dist/client/assets/arena-panel-BP0aN6a4.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-sph3-02T.js → benchmark-panel-CZ8Ojzuj.js} +1 -1
- package/dist/client/assets/benchmark-panel-CZ8Ojzuj.js.br +0 -0
- package/dist/client/assets/{boards-view-BxpnSfTd.js → boards-view-7czB9xUr.js} +1 -1
- package/dist/client/assets/boards-view-7czB9xUr.js.br +0 -0
- package/dist/client/assets/{community-panel-TwQxhr-X.js → community-panel-1H9SUxd2.js} +1 -1
- package/dist/client/assets/community-panel-1H9SUxd2.js.br +0 -0
- package/dist/client/assets/{dialogs-BsyLlGsn.js → dialogs-BIUiBewk.js} +1 -1
- package/dist/client/assets/dialogs-BIUiBewk.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-SZv0TGD8.js → doc-editor-ui-BcL7TXC4.js} +1 -1
- package/dist/client/assets/doc-editor-ui-BcL7TXC4.js.br +0 -0
- package/dist/client/assets/{feature-hint-D323u-Ft.js → feature-hint-M8soEH_X.js} +1 -1
- package/dist/client/assets/feature-hint-M8soEH_X.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DkofqR2G.js → first-run-checklist-Cx7dFUS8.js} +1 -1
- package/dist/client/assets/first-run-checklist-Cx7dFUS8.js.br +0 -0
- package/dist/client/assets/{hooks-panel-DZPOk_vL.js → hooks-panel-SGykxsD8.js} +1 -1
- package/dist/client/assets/hooks-panel-SGykxsD8.js.br +0 -0
- package/dist/client/assets/{index-B_eYvX3O.css → index-BoEuRwgB.css} +1 -1
- package/dist/client/assets/index-BoEuRwgB.css.br +0 -0
- package/dist/client/assets/{index-C4YcqTcx.js → index-CAiGuoFR.js} +5 -5
- package/dist/client/assets/index-CAiGuoFR.js.br +0 -0
- package/dist/client/assets/{issues-panel-Bq_lZX9q.js → issues-panel-a4tpYFMo.js} +1 -1
- package/dist/client/assets/issues-panel-a4tpYFMo.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-D0img2Hm.js → lane-read-token-step-DjYsQg7t.js} +1 -1
- package/dist/client/assets/lane-read-token-step-DjYsQg7t.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-kqAJvlHF.js → my-prs-panel-B3g2xql8.js} +1 -1
- package/dist/client/assets/my-prs-panel-B3g2xql8.js.br +0 -0
- package/dist/client/assets/{nyan-cat-CQjmzqCy.js → nyan-cat-DPwLllBv.js} +1 -1
- package/dist/client/assets/nyan-cat-DPwLllBv.js.br +0 -0
- package/dist/client/assets/phone-shell-CqgrIlKf.js +1 -0
- package/dist/client/assets/phone-shell-CqgrIlKf.js.br +0 -0
- package/dist/client/assets/{plan-face-DOtMPgPg.js → plan-face-DJcak-JE.js} +1 -1
- package/dist/client/assets/plan-face-DJcak-JE.js.br +0 -0
- package/dist/client/assets/{plan-render-U2f5f3WX.js → plan-render-D1IwicQg.js} +1 -1
- package/dist/client/assets/plan-render-D1IwicQg.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-C28JApby.js → pr-queue-columns-D2F17TqG.js} +1 -1
- package/dist/client/assets/pr-queue-columns-D2F17TqG.js.br +2 -0
- package/dist/client/assets/{radar-panel-BZwAn5cC.js → radar-panel-DbMEgo22.js} +1 -1
- package/dist/client/assets/radar-panel-DbMEgo22.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-FOIIr6rb.js → repo-roots-adder-CVu2Ze56.js} +1 -1
- package/dist/client/assets/repo-roots-adder-CVu2Ze56.js.br +0 -0
- package/dist/client/assets/{resume-dialog-DqQPPlTw.js → resume-dialog-DtYYlBko.js} +1 -1
- package/dist/client/assets/resume-dialog-DtYYlBko.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-DYhcic2v.js → review-queue-panel-CvIupMcw.js} +1 -1
- package/dist/client/assets/review-queue-panel-CvIupMcw.js.br +0 -0
- package/dist/client/assets/{session-actions-u9KeU11S.js → session-actions-BkrOmTeh.js} +2 -2
- package/dist/client/assets/session-actions-BkrOmTeh.js.br +0 -0
- package/dist/client/assets/{session-row-BTky6omn.js → session-row-BP53YRjR.js} +1 -1
- package/dist/client/assets/session-row-BP53YRjR.js.br +0 -0
- package/dist/client/assets/{settings-panel-B2jRQbLx.js → settings-panel-B9nZryZV.js} +2 -2
- package/dist/client/assets/settings-panel-B9nZryZV.js.br +0 -0
- package/dist/client/assets/{trace-panel-DE317nWE.js → trace-panel-CYd6s4sF.js} +1 -1
- package/dist/client/assets/trace-panel-CYd6s4sF.js.br +0 -0
- package/dist/client/assets/{usage-panel-BBL0d0pQ.js → usage-panel-DCcAG3ki.js} +1 -1
- package/dist/client/assets/usage-panel-DCcAG3ki.js.br +0 -0
- package/dist/client/assets/{your-day-tip-B9YXbTHI.js → your-day-tip-CQta40nf.js} +1 -1
- package/dist/client/assets/your-day-tip-CQta40nf.js.br +0 -0
- package/dist/client/index.html +5 -5
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/agent-api-cli-sy9K7svC.js +0 -1
- package/dist/client/assets/agent-mark-Dm0kWRK-.js.br +0 -0
- package/dist/client/assets/arena-panel-BUdi1FR6.js.br +0 -0
- package/dist/client/assets/benchmark-panel-sph3-02T.js.br +0 -0
- package/dist/client/assets/boards-view-BxpnSfTd.js.br +0 -0
- package/dist/client/assets/community-panel-TwQxhr-X.js.br +0 -0
- package/dist/client/assets/dialogs-BsyLlGsn.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-SZv0TGD8.js.br +0 -0
- package/dist/client/assets/feature-hint-D323u-Ft.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DkofqR2G.js.br +0 -0
- package/dist/client/assets/hooks-panel-DZPOk_vL.js.br +0 -0
- package/dist/client/assets/index-B_eYvX3O.css.br +0 -0
- package/dist/client/assets/index-C4YcqTcx.js.br +0 -0
- package/dist/client/assets/issues-panel-Bq_lZX9q.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-D0img2Hm.js.br +0 -0
- package/dist/client/assets/my-prs-panel-kqAJvlHF.js.br +0 -0
- package/dist/client/assets/nyan-cat-CQjmzqCy.js.br +0 -0
- package/dist/client/assets/phone-shell-BoG-EYe2.js +0 -1
- package/dist/client/assets/phone-shell-BoG-EYe2.js.br +0 -0
- package/dist/client/assets/plan-face-DOtMPgPg.js.br +0 -0
- package/dist/client/assets/plan-render-U2f5f3WX.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-C28JApby.js.br +0 -0
- package/dist/client/assets/radar-panel-BZwAn5cC.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-FOIIr6rb.js.br +0 -0
- package/dist/client/assets/resume-dialog-DqQPPlTw.js.br +0 -0
- package/dist/client/assets/review-queue-panel-DYhcic2v.js.br +0 -0
- package/dist/client/assets/session-actions-u9KeU11S.js.br +0 -0
- package/dist/client/assets/session-row-BTky6omn.js.br +0 -0
- package/dist/client/assets/settings-panel-B2jRQbLx.js.br +0 -0
- package/dist/client/assets/trace-panel-DE317nWE.js.br +0 -0
- package/dist/client/assets/usage-panel-BBL0d0pQ.js.br +0 -0
- package/dist/client/assets/your-day-tip-B9YXbTHI.js.br +0 -0
package/dist/bin/glimmervoid.js
CHANGED
|
@@ -76,23 +76,23 @@ var OWNED_COMMAND_RUNNERS = {
|
|
|
76
76
|
return runAgentSetupCli();
|
|
77
77
|
},
|
|
78
78
|
settings: async (parsed) => {
|
|
79
|
-
const { runParsedSettingsCli } = await import("../chunks/settings-cli-
|
|
79
|
+
const { runParsedSettingsCli } = await import("../chunks/settings-cli-DH8ooCia.js");
|
|
80
80
|
return runParsedSettingsCli(parsed);
|
|
81
81
|
},
|
|
82
82
|
"pr-flows": async (parsed) => {
|
|
83
|
-
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-
|
|
83
|
+
const { runPrFlowsCheckCli } = await import("../chunks/pr-flows-cli-DGuDlmRd.js");
|
|
84
84
|
return runPrFlowsCheckCli(parsed);
|
|
85
85
|
},
|
|
86
86
|
packs: async (parsed) => {
|
|
87
|
-
const { runPacksCli } = await import("../chunks/packs-cli-
|
|
87
|
+
const { runPacksCli } = await import("../chunks/packs-cli-z_cth85d.js");
|
|
88
88
|
return runPacksCli(parsed);
|
|
89
89
|
},
|
|
90
90
|
"pr-action": async (parsed) => {
|
|
91
|
-
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-
|
|
91
|
+
const { runPrActionReportCli } = await import("../chunks/pr-flows-cli-DGuDlmRd.js");
|
|
92
92
|
return runPrActionReportCli(parsed);
|
|
93
93
|
},
|
|
94
94
|
"ssh-sign": async ({ rawArgs }) => {
|
|
95
|
-
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-
|
|
95
|
+
const { runSshSignCli } = await import("../chunks/ssh-sign-cli-B7UuApXe.js");
|
|
96
96
|
return runSshSignCli(rawArgs);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
@@ -114,7 +114,7 @@ async function runOwnedCommand(name, subcommandArgs) {
|
|
|
114
114
|
return OWNED_COMMAND_RUNNERS[name](parsed);
|
|
115
115
|
}
|
|
116
116
|
var SUBCOMMAND_RUNNERS = new Map([...Object.keys(OWNED_COMMAND_SPECS).filter(isOwnedCommandName).map((name) => [name, (subcommandArgs) => runOwnedCommand(name, subcommandArgs)]), ...AGENT_API_VERBS.filter((verb) => !isOwnedCommandName(verb)).map((verb) => [verb, async (subcommandArgs, subcommandName) => {
|
|
117
|
-
const { runAgentApiCli } = await import("../chunks/agent-api-cli-
|
|
117
|
+
const { runAgentApiCli } = await import("../chunks/agent-api-cli-BxQAE27H.js");
|
|
118
118
|
return runAgentApiCli([subcommandName, ...subcommandArgs]);
|
|
119
119
|
}])]);
|
|
120
120
|
var AGENT_INSTALL_COMMAND_BY_ID = {
|
|
@@ -128,7 +128,7 @@ function missingAgentText(agentId) {
|
|
|
128
128
|
}
|
|
129
129
|
async function printSessionLimits() {
|
|
130
130
|
if (!process.env["GLIMMERVOID_AGENT_URL"]) return;
|
|
131
|
-
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-
|
|
131
|
+
const { sessionLimitsHelpLines } = await import("../chunks/agent-api-cli-BxQAE27H.js");
|
|
132
132
|
const limitsLines = await sessionLimitsHelpLines();
|
|
133
133
|
console.log(`\n${limitsLines.join("\n")}`);
|
|
134
134
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as askAgentApi, n as postToAgentIngress, r as runAgentApiCli, i as sessionLimitsHelpLines } from "./agent-api-cli-CALhYZQZ.js";
|
|
@@ -2,7 +2,7 @@ import { nt as UNIT_STATUSES, ot as WhiteboardAgentReply, r as AGENT_URL_ENV, u
|
|
|
2
2
|
import { Y as formatSessionLimits, i as agentCommandSpec, it as parseCommand, m as isAgentApiVerb, t as AGENT_COMMAND_HELP } from "./agent-api-core-oZ8tPUVH.js";
|
|
3
3
|
import { a as resolveHookTarget } from "./hook-relay-core-CfWWWQxq.js";
|
|
4
4
|
import { t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
5
|
-
import { r as layoutBoard, s as planSteps, t as boardSvgDocument } from "./whiteboard-svg-core-
|
|
5
|
+
import { r as layoutBoard, s as planSteps, t as boardSvgDocument } from "./whiteboard-svg-core-DT-i6bD3.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
//#region server/agent-api-cli.ts
|
|
@@ -16,7 +16,7 @@ import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusRep
|
|
|
16
16
|
import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-If8h-Qgy.js";
|
|
17
17
|
import { c as saneYoloFiles } from "./sane-yolo-YyMaZ6jg.js";
|
|
18
18
|
import { r as knownWriteHookInput } from "./posthog-read-gate-core-CeSY56AB.js";
|
|
19
|
-
import { a as cappedWarnings, c as unitsOf, i as layoutBoardWithMemory, n as escapeMarkup, o as findDependencyCycle, r as layoutBoard, s as planSteps$1, t as boardSvgDocument } from "./whiteboard-svg-core-
|
|
19
|
+
import { a as cappedWarnings, c as unitsOf, i as layoutBoardWithMemory, n as escapeMarkup, o as findDependencyCycle, r as layoutBoard, s as planSteps$1, t as boardSvgDocument } from "./whiteboard-svg-core-DT-i6bD3.js";
|
|
20
20
|
import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config-DDpOIcFv.js";
|
|
21
21
|
import { t as DETACHED_DESKTOP_BUS_ADDRESS } from "./spawn-env-B5_go00h.js";
|
|
22
22
|
import { n as shellQuote } from "./hook-command-core-qTNK-xMF.js";
|
|
@@ -561,7 +561,7 @@ async function runList() {
|
|
|
561
561
|
process.stderr.write("glimmervoid packs list reads the running Glimmervoid, so it works inside a Glimmervoid session; the operator sees the same list in Settings, Packs\n");
|
|
562
562
|
return 1;
|
|
563
563
|
}
|
|
564
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
564
|
+
const { askAgentApi } = await import("./agent-api-cli-BxQAE27H.js");
|
|
565
565
|
const reply = AGENT_REPLY_SCHEMAS.packs.safeParse(await askAgentApi("packs", { command: "list" }));
|
|
566
566
|
if (!reply.success) {
|
|
567
567
|
process.stderr.write("glimmervoid packs list: Glimmervoid did not answer with a pack list\n");
|
|
@@ -121,7 +121,7 @@ async function readServerConfig(askSetting) {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
async function readConfigFromServer() {
|
|
124
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
124
|
+
const { askAgentApi } = await import("./agent-api-cli-BxQAE27H.js");
|
|
125
125
|
return readServerConfig((settingPath) => askAgentApi("settings", {
|
|
126
126
|
command: "get",
|
|
127
127
|
path: settingPath
|
|
@@ -267,7 +267,7 @@ async function runPrActionReport({ outcome, message, env }, io) {
|
|
|
267
267
|
io.writeError("--outcome must be started, done, failed or refused, and --message at most 500 characters\n");
|
|
268
268
|
return 1;
|
|
269
269
|
}
|
|
270
|
-
const { postToAgentIngress } = await import("./agent-api-cli-
|
|
270
|
+
const { postToAgentIngress } = await import("./agent-api-cli-BxQAE27H.js");
|
|
271
271
|
const reply = await postToAgentIngress({
|
|
272
272
|
endpoint: new URL(reportUrl),
|
|
273
273
|
token,
|
|
@@ -320,7 +320,7 @@ function runParsedSettingsCommand(parsed, io) {
|
|
|
320
320
|
async function runParsedSettingsCli(parsed, io = processIo()) {
|
|
321
321
|
const serverRequest = settingsRequestForServer(parsed, process.env);
|
|
322
322
|
if (!serverRequest) return runParsedSettingsCommand(parsed, io);
|
|
323
|
-
const { askAgentApi } = await import("./agent-api-cli-
|
|
323
|
+
const { askAgentApi } = await import("./agent-api-cli-BxQAE27H.js");
|
|
324
324
|
const reply = AgentSettingsReply.safeParse(await askAgentApi("settings", serverRequest).catch((error) => ({
|
|
325
325
|
ok: false,
|
|
326
326
|
error: errorMessage(error)
|
|
@@ -2,7 +2,7 @@ import { r as errorMessage } from "./text-DoirglWV.js";
|
|
|
2
2
|
import { P as SIGN_URL_ENV, z as SshSignReply } from "./session-BOzHqxD5.js";
|
|
3
3
|
import { l as spawn, r as execFileAsync } from "./child-process-safe-BIh8yQ0I.js";
|
|
4
4
|
import { o as isLoopbackHostname } from "./hook-relay-core-CfWWWQxq.js";
|
|
5
|
-
import { n as postToAgentIngress } from "./agent-api-cli-
|
|
5
|
+
import { n as postToAgentIngress } from "./agent-api-cli-CALhYZQZ.js";
|
|
6
6
|
import { l as parseSshPublicKey } from "./ssh-signing-core-BbhBpAhR.js";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
@@ -282,13 +282,13 @@ function countingOrder(keys, keyCount, order) {
|
|
|
282
282
|
}
|
|
283
283
|
return sorted;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
const firstKeys = Int32Array.from(firsts);
|
|
287
|
-
const secondKeys = Int32Array.from(seconds);
|
|
285
|
+
function orderOfPairs(firsts, seconds, firstCount, secondCount) {
|
|
288
286
|
const identity = new Int32Array(firsts.length);
|
|
289
287
|
for (let position = 0; position < identity.length; position += 1) identity[position] = position;
|
|
290
|
-
|
|
291
|
-
|
|
288
|
+
return countingOrder(Int32Array.from(firsts), firstCount, countingOrder(Int32Array.from(seconds), secondCount, identity));
|
|
289
|
+
}
|
|
290
|
+
function pairsInOrder(firsts, seconds, firstCount, secondCount) {
|
|
291
|
+
return Array.from(orderOfPairs(firsts, seconds, firstCount, secondCount), (position) => [firsts[position] ?? 0, seconds[position] ?? 0]);
|
|
292
292
|
}
|
|
293
293
|
function touchingPairsWithin(rects) {
|
|
294
294
|
const firsts = [];
|
|
@@ -1299,6 +1299,7 @@ var MAX_WIRES_FOR_LOCAL_ROUTING = 200;
|
|
|
1299
1299
|
var LOCAL_WINDOW_MARGIN = 240;
|
|
1300
1300
|
var WALL_THICKNESS = 2;
|
|
1301
1301
|
var MAX_WINDOW_SHARE = .1;
|
|
1302
|
+
var MAX_RECTS_FOR_DIRECT_SCAN = 64;
|
|
1302
1303
|
var PORT_SPACING = 14;
|
|
1303
1304
|
var PORT_INSET = 8;
|
|
1304
1305
|
var BOX_CROSSING_COST = 100;
|
|
@@ -1440,10 +1441,21 @@ function segmentsOf(points) {
|
|
|
1440
1441
|
function pathOf(points) {
|
|
1441
1442
|
return points.map((point, index) => `${index === 0 ? "M" : "L"} ${point.x} ${point.y}`).join(" ");
|
|
1442
1443
|
}
|
|
1444
|
+
function warningListOf(messages) {
|
|
1445
|
+
return {
|
|
1446
|
+
count: messages.length,
|
|
1447
|
+
messageAt: (index) => messages[index] ?? ""
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
function cappedWarningLists(lists) {
|
|
1451
|
+
const total = lists.reduce((sum, list) => sum + list.count, 0);
|
|
1452
|
+
const shownCount = total <= WHITEBOARD_LIMITS.layoutWarnings ? total : WHITEBOARD_LIMITS.layoutWarnings - 1;
|
|
1453
|
+
const shown = [];
|
|
1454
|
+
for (const list of lists) for (let index = 0; index < list.count && shown.length < shownCount; index += 1) shown.push(list.messageAt(index));
|
|
1455
|
+
return total === shownCount ? shown : [...shown, `and ${total - shownCount} more`];
|
|
1456
|
+
}
|
|
1443
1457
|
function cappedWarnings(warnings) {
|
|
1444
|
-
|
|
1445
|
-
const shown = warnings.slice(0, WHITEBOARD_LIMITS.layoutWarnings - 1);
|
|
1446
|
-
return [...shown, `and ${warnings.length - shown.length} more`];
|
|
1458
|
+
return cappedWarningLists([warningListOf(warnings)]);
|
|
1447
1459
|
}
|
|
1448
1460
|
function hasHorizontalGap(first, second) {
|
|
1449
1461
|
return second.x >= first.x + first.width || second.x + second.width <= first.x;
|
|
@@ -2265,60 +2277,176 @@ function wirePiecesOf(drawn) {
|
|
|
2265
2277
|
wireIndexByPiece
|
|
2266
2278
|
};
|
|
2267
2279
|
}
|
|
2268
|
-
function
|
|
2269
|
-
const
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2280
|
+
function addPieceCrossing(isCrossingByPairKey, drawn, pieces, earlierPiece, laterPiece) {
|
|
2281
|
+
const earlierWire = pieces.wireIndexByPiece[earlierPiece] ?? 0;
|
|
2282
|
+
const laterWire = pieces.wireIndexByPiece[laterPiece] ?? 0;
|
|
2283
|
+
if (earlierWire === laterWire) return;
|
|
2284
|
+
const pairKey = Math.min(earlierWire, laterWire) * drawn.length + Math.max(earlierWire, laterWire);
|
|
2285
|
+
if (isCrossingByPairKey.get(pairKey) === true) return;
|
|
2286
|
+
const first = drawn[earlierWire];
|
|
2287
|
+
const second = drawn[laterWire];
|
|
2288
|
+
const earlierSegment = pieces.segments[earlierPiece];
|
|
2289
|
+
const laterSegment = pieces.segments[laterPiece];
|
|
2290
|
+
if (!first || !second || !earlierSegment || !laterSegment || areSiblings(first, second)) return;
|
|
2291
|
+
if (segmentsCross(earlierSegment, laterSegment)) {
|
|
2292
|
+
isCrossingByPairKey.set(pairKey, true);
|
|
2293
|
+
return;
|
|
2294
|
+
}
|
|
2295
|
+
if (segmentsOverlap(earlierSegment, laterSegment)) isCrossingByPairKey.set(pairKey, false);
|
|
2296
|
+
}
|
|
2297
|
+
function emptyIndexPairs() {
|
|
2298
|
+
return {
|
|
2299
|
+
firsts: [],
|
|
2300
|
+
seconds: [],
|
|
2301
|
+
isCrossings: []
|
|
2302
|
+
};
|
|
2303
|
+
}
|
|
2304
|
+
function appendPairKeys(pairs, isCrossingByPairKey, secondCount) {
|
|
2305
|
+
for (const [pairKey, isCrossing] of isCrossingByPairKey) {
|
|
2306
|
+
pairs.firsts.push(Math.floor(pairKey / secondCount));
|
|
2307
|
+
pairs.seconds.push(pairKey % secondCount);
|
|
2308
|
+
pairs.isCrossings.push(isCrossing);
|
|
2309
|
+
}
|
|
2310
|
+
return pairs;
|
|
2311
|
+
}
|
|
2312
|
+
function changedPieceIndexes(pieces, reusable) {
|
|
2313
|
+
const changedPieces = [];
|
|
2314
|
+
pieces.wireIndexByPiece.forEach((wireIndex, piece) => {
|
|
2315
|
+
if (reusable.isChangedByWire[wireIndex]) changedPieces.push(piece);
|
|
2286
2316
|
});
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2317
|
+
return changedPieces;
|
|
2318
|
+
}
|
|
2319
|
+
function subsetOfFlatRects(rects, indexes) {
|
|
2320
|
+
const subset = emptyFlatRects(indexes.length);
|
|
2321
|
+
indexes.forEach((index, slot) => {
|
|
2322
|
+
setFlatRect(subset, slot, rects.lefts[index] ?? 0, rects.tops[index] ?? 0, rects.rights[index] ?? 0, rects.bottoms[index] ?? 0);
|
|
2291
2323
|
});
|
|
2324
|
+
return subset;
|
|
2325
|
+
}
|
|
2326
|
+
function keptPairsOf(previousPairs, currentFirstByPrevious, currentSecondByPrevious, isKept) {
|
|
2327
|
+
const kept = emptyIndexPairs();
|
|
2328
|
+
previousPairs.firsts.forEach((previousFirst, position) => {
|
|
2329
|
+
const first = currentFirstByPrevious[previousFirst] ?? -1;
|
|
2330
|
+
const second = currentSecondByPrevious[previousPairs.seconds[position] ?? 0] ?? -1;
|
|
2331
|
+
if (first < 0 || second < 0 || !isKept(first, second)) return;
|
|
2332
|
+
kept.firsts.push(Math.min(first, second));
|
|
2333
|
+
kept.seconds.push(Math.max(first, second));
|
|
2334
|
+
kept.isCrossings.push(previousPairs.isCrossings[position] === true);
|
|
2335
|
+
});
|
|
2336
|
+
return kept;
|
|
2337
|
+
}
|
|
2338
|
+
function wirePairsOf(drawn, pieces, reusable) {
|
|
2339
|
+
const isCrossingByPairKey = /* @__PURE__ */ new Map();
|
|
2340
|
+
if (!reusable) {
|
|
2341
|
+
forEachTouchingPairWithin(pieces.rects, (earlierPiece, laterPiece) => addPieceCrossing(isCrossingByPairKey, drawn, pieces, earlierPiece, laterPiece));
|
|
2342
|
+
return appendPairKeys(emptyIndexPairs(), isCrossingByPairKey, drawn.length);
|
|
2343
|
+
}
|
|
2344
|
+
const changedPieces = changedPieceIndexes(pieces, reusable);
|
|
2345
|
+
forEachTouchingPairAcross(subsetOfFlatRects(pieces.rects, changedPieces), pieces.rects, (changedSlot, otherPiece) => {
|
|
2346
|
+
const changedPiece = changedPieces[changedSlot] ?? 0;
|
|
2347
|
+
const changedWire = pieces.wireIndexByPiece[changedPiece] ?? 0;
|
|
2348
|
+
const otherWire = pieces.wireIndexByPiece[otherPiece] ?? 0;
|
|
2349
|
+
if (reusable.isChangedByWire[otherWire] && otherWire < changedWire) return;
|
|
2350
|
+
addPieceCrossing(isCrossingByPairKey, drawn, pieces, changedPiece, otherPiece);
|
|
2351
|
+
});
|
|
2352
|
+
const isUnchangedPair = (first, second) => !reusable.isChangedByWire[first] && !reusable.isChangedByWire[second];
|
|
2353
|
+
return appendPairKeys(keptPairsOf(reusable.previous.wirePairs, reusable.wireIndexByPrevious, reusable.wireIndexByPrevious, isUnchangedPair), isCrossingByPairKey, drawn.length);
|
|
2354
|
+
}
|
|
2355
|
+
function orderedWarningList(pairs, firstCount, secondCount, messageOf) {
|
|
2356
|
+
const order = orderOfPairs(pairs.firsts, pairs.seconds, firstCount, secondCount);
|
|
2357
|
+
return {
|
|
2358
|
+
count: order.length,
|
|
2359
|
+
messageAt: (index) => {
|
|
2360
|
+
const position = order[index] ?? 0;
|
|
2361
|
+
return messageOf(pairs.firsts[position] ?? 0, pairs.seconds[position] ?? 0, pairs.isCrossings[position] === true);
|
|
2362
|
+
}
|
|
2363
|
+
};
|
|
2292
2364
|
}
|
|
2293
2365
|
function solidsOf(input) {
|
|
2294
2366
|
return [...input.boxesById.values(), ...input.panels];
|
|
2295
2367
|
}
|
|
2296
|
-
function
|
|
2297
|
-
|
|
2368
|
+
function solidKeyOf(solid) {
|
|
2369
|
+
return `${solid.kind === "panel" ? "panel" : "box"} ${solid.id}`;
|
|
2370
|
+
}
|
|
2371
|
+
function addRunThrough(crossedPairKeys, drawn, pieces, solids, insets, piece, solidIndex) {
|
|
2372
|
+
const wireIndex = pieces.wireIndexByPiece[piece] ?? 0;
|
|
2373
|
+
const pairKey = wireIndex * solids.length + solidIndex;
|
|
2374
|
+
if (crossedPairKeys.has(pairKey)) return;
|
|
2375
|
+
const wire = drawn[wireIndex];
|
|
2376
|
+
const solid = solids[solidIndex];
|
|
2377
|
+
const inset = insets[solidIndex];
|
|
2378
|
+
const segment = pieces.segments[piece];
|
|
2379
|
+
if (!wire || !solid || !inset || !segment) return;
|
|
2380
|
+
if (solid.id === wire.plan.from.id || solid.id === wire.plan.to.id) return;
|
|
2381
|
+
if (segmentHitsRect(segment, inset)) crossedPairKeys.set(pairKey, true);
|
|
2382
|
+
}
|
|
2383
|
+
function runsThroughPairsOf(drawn, pieces, solids, reusable) {
|
|
2298
2384
|
const insets = solids.map((solid) => inflated(solid, -2));
|
|
2299
|
-
const
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2385
|
+
const insetRects = flatRectsOf(insets);
|
|
2386
|
+
const crossedPairKeys = /* @__PURE__ */ new Map();
|
|
2387
|
+
if (!reusable) {
|
|
2388
|
+
forEachTouchingPairAcross(pieces.rects, insetRects, (piece, solidIndex) => addRunThrough(crossedPairKeys, drawn, pieces, solids, insets, piece, solidIndex));
|
|
2389
|
+
return appendPairKeys(emptyIndexPairs(), crossedPairKeys, solids.length);
|
|
2390
|
+
}
|
|
2391
|
+
const changedPieces = changedPieceIndexes(pieces, reusable);
|
|
2392
|
+
forEachTouchingPairAcross(subsetOfFlatRects(pieces.rects, changedPieces), insetRects, (changedSlot, solidIndex) => addRunThrough(crossedPairKeys, drawn, pieces, solids, insets, changedPieces[changedSlot] ?? 0, solidIndex));
|
|
2393
|
+
const isChangedBySolid = solids.map((solid) => reusable.changedSolidKeys.has(solidKeyOf(solid)));
|
|
2394
|
+
const changedSolidIndexes = solids.flatMap((_, index) => isChangedBySolid[index] ? [index] : []);
|
|
2395
|
+
forEachTouchingPairAcross(pieces.rects, subsetOfFlatRects(insetRects, changedSolidIndexes), (piece, changedSlot) => addRunThrough(crossedPairKeys, drawn, pieces, solids, insets, piece, changedSolidIndexes[changedSlot] ?? 0));
|
|
2396
|
+
const solidIndexByKey = new Map(solids.map((solid, index) => [solidKeyOf(solid), index]));
|
|
2397
|
+
const solidIndexByPrevious = reusable.previous.solidKeys.map((key) => solidIndexByKey.get(key) ?? -1);
|
|
2398
|
+
const kept = emptyIndexPairs();
|
|
2399
|
+
reusable.previous.runsThroughPairs.firsts.forEach((previousWire, position) => {
|
|
2400
|
+
const wireIndex = reusable.wireIndexByPrevious[previousWire] ?? -1;
|
|
2401
|
+
const solidIndex = solidIndexByPrevious[reusable.previous.runsThroughPairs.seconds[position] ?? 0] ?? -1;
|
|
2402
|
+
if (wireIndex < 0 || solidIndex < 0 || reusable.isChangedByWire[wireIndex] || isChangedBySolid[solidIndex]) return;
|
|
2403
|
+
kept.firsts.push(wireIndex);
|
|
2404
|
+
kept.seconds.push(solidIndex);
|
|
2405
|
+
kept.isCrossings.push(true);
|
|
2311
2406
|
});
|
|
2312
|
-
|
|
2313
|
-
|
|
2407
|
+
return appendPairKeys(kept, crossedPairKeys, solids.length);
|
|
2408
|
+
}
|
|
2409
|
+
function wireSignatureOf(wire) {
|
|
2410
|
+
return JSON.stringify([
|
|
2411
|
+
wire.points,
|
|
2412
|
+
wire.plan.exitKey,
|
|
2413
|
+
wire.plan.busKey,
|
|
2414
|
+
wire.plan.from.id,
|
|
2415
|
+
wire.plan.to.id
|
|
2416
|
+
]);
|
|
2417
|
+
}
|
|
2418
|
+
function reusablePairsOf(drawn, signatures, changedSolidKeys, previous) {
|
|
2419
|
+
if (!previous || !changedSolidKeys || changedSolidKeys.size > MAX_RECTS_FOR_DIRECT_SCAN) return null;
|
|
2420
|
+
const isChangedByWire = drawn.map((wire, index) => previous.wireSignatureById.get(wire.plan.wire.id) !== signatures[index]);
|
|
2421
|
+
if (isChangedByWire.filter(Boolean).length > MAX_WIRES_FOR_LOCAL_ROUTING) return null;
|
|
2422
|
+
const indexById = new Map(drawn.map((wire, index) => [wire.plan.wire.id, index]));
|
|
2423
|
+
return {
|
|
2424
|
+
previous,
|
|
2425
|
+
isChangedByWire,
|
|
2426
|
+
wireIndexByPrevious: previous.wireIds.map((id) => indexById.get(id) ?? -1),
|
|
2427
|
+
changedSolidKeys
|
|
2428
|
+
};
|
|
2314
2429
|
}
|
|
2315
|
-
function crossingWarningsOf(drawn, input) {
|
|
2430
|
+
function crossingWarningsOf(drawn, input, changedSolidKeys, memory, previous) {
|
|
2316
2431
|
const pieces = wirePiecesOf(drawn);
|
|
2317
|
-
|
|
2432
|
+
const solids = solidsOf(input);
|
|
2433
|
+
const signatures = drawn.map(wireSignatureOf);
|
|
2434
|
+
const reusable = reusablePairsOf(drawn, signatures, changedSolidKeys, previous);
|
|
2435
|
+
const runsThroughPairs = runsThroughPairsOf(drawn, pieces, solids, reusable);
|
|
2436
|
+
const wirePairs = wirePairsOf(drawn, pieces, reusable);
|
|
2437
|
+
if (memory) memory.warningPairs = {
|
|
2438
|
+
wireIds: drawn.map((wire) => wire.plan.wire.id),
|
|
2439
|
+
wireSignatureById: new Map(drawn.map((wire, index) => [wire.plan.wire.id, signatures[index] ?? ""])),
|
|
2440
|
+
solidKeys: solids.map(solidKeyOf),
|
|
2441
|
+
wirePairs,
|
|
2442
|
+
runsThroughPairs
|
|
2443
|
+
};
|
|
2444
|
+
const wireIdAt = (index) => drawn[index]?.plan.wire.id;
|
|
2445
|
+
return [orderedWarningList(runsThroughPairs, drawn.length, solids.length, (wireIndex, solidIndex) => `wire ${wireIdAt(wireIndex)} runs through ${solids[solidIndex]?.kind} ${solids[solidIndex]?.id}`), orderedWarningList(wirePairs, drawn.length, drawn.length, (first, second, isCrossing) => `wire ${wireIdAt(first)} ${isCrossing ? "crosses" : "overlaps"} wire ${wireIdAt(second)}`)];
|
|
2318
2446
|
}
|
|
2319
2447
|
function totalCrossingCostOf(drawn, input) {
|
|
2320
2448
|
const pieces = wirePiecesOf(drawn);
|
|
2321
|
-
return
|
|
2449
|
+
return runsThroughPairsOf(drawn, pieces, solidsOf(input), null).firsts.length * BOX_CROSSING_COST + wirePairsOf(drawn, pieces, null).firsts.length;
|
|
2322
2450
|
}
|
|
2323
2451
|
function routeQualityWarnings(drawn) {
|
|
2324
2452
|
return drawn.flatMap((wire) => {
|
|
@@ -2373,18 +2501,39 @@ function obstacleRectsByKey(input) {
|
|
|
2373
2501
|
for (const frame of input.loopFrames) rectByKey.set(`loop ${keyOfRect(frame)}`, frame);
|
|
2374
2502
|
return rectByKey;
|
|
2375
2503
|
}
|
|
2376
|
-
function
|
|
2504
|
+
function obstacleChangesOf(previous, current) {
|
|
2377
2505
|
const isSameRect = (first, second) => first !== void 0 && first.x === second.x && first.y === second.y && first.width === second.width && first.height === second.height;
|
|
2378
|
-
const
|
|
2379
|
-
|
|
2380
|
-
|
|
2506
|
+
const changes = {
|
|
2507
|
+
keys: /* @__PURE__ */ new Set(),
|
|
2508
|
+
rects: []
|
|
2509
|
+
};
|
|
2510
|
+
for (const [key, rect] of previous) {
|
|
2511
|
+
if (isSameRect(current.get(key), rect)) continue;
|
|
2512
|
+
changes.keys.add(key);
|
|
2513
|
+
changes.rects.push(rect);
|
|
2514
|
+
}
|
|
2515
|
+
for (const [key, rect] of current) {
|
|
2516
|
+
if (isSameRect(previous.get(key), rect)) continue;
|
|
2517
|
+
changes.keys.add(key);
|
|
2518
|
+
changes.rects.push(rect);
|
|
2519
|
+
}
|
|
2520
|
+
return changes;
|
|
2521
|
+
}
|
|
2522
|
+
function touchedPieceIndexes(pieceRects, changedRects, onTouched) {
|
|
2523
|
+
if (changedRects.length > MAX_RECTS_FOR_DIRECT_SCAN) {
|
|
2524
|
+
forEachTouchingPairAcross(flatRectsOf(pieceRects), flatRectsOf(changedRects), onTouched);
|
|
2525
|
+
return;
|
|
2526
|
+
}
|
|
2527
|
+
pieceRects.forEach((piece, pieceIndex) => {
|
|
2528
|
+
if (changedRects.some((rect) => piece.x <= rect.x + rect.width && rect.x <= piece.x + piece.width && piece.y <= rect.y + rect.height && rect.y <= piece.y + piece.height)) onTouched(pieceIndex);
|
|
2529
|
+
});
|
|
2381
2530
|
}
|
|
2382
2531
|
function wireKeyOf(wire) {
|
|
2383
2532
|
return JSON.stringify(wire);
|
|
2384
2533
|
}
|
|
2385
|
-
function routeReuseOf(input,
|
|
2386
|
-
if (!previous ||
|
|
2387
|
-
const changedRects =
|
|
2534
|
+
function routeReuseOf(input, previous, changes) {
|
|
2535
|
+
if (!previous || !changes) return null;
|
|
2536
|
+
const changedRects = changes.rects.map((rect) => inflated(rect, 14));
|
|
2388
2537
|
const candidates = input.wires.flatMap((wire) => {
|
|
2389
2538
|
const remembered = previous.routeById.get(wire.id);
|
|
2390
2539
|
return remembered && remembered.wireKey === wireKeyOf(wire) ? [{
|
|
@@ -2397,7 +2546,7 @@ function routeReuseOf(input, rectByKey, previous) {
|
|
|
2397
2546
|
rect: pointBoundsOf(segment.from, segment.to)
|
|
2398
2547
|
})));
|
|
2399
2548
|
const touchedWireIds = /* @__PURE__ */ new Set();
|
|
2400
|
-
|
|
2549
|
+
touchedPieceIndexes(pieceRects.map((piece) => piece.rect), changedRects, (pieceIndex) => {
|
|
2401
2550
|
const piece = pieceRects[pieceIndex];
|
|
2402
2551
|
if (piece) touchedWireIds.add(piece.wireId);
|
|
2403
2552
|
});
|
|
@@ -2429,12 +2578,14 @@ function routeMemoryOf(input, rectByKey, drawn) {
|
|
|
2429
2578
|
return {
|
|
2430
2579
|
contentTop: input.contentTop,
|
|
2431
2580
|
rectByKey,
|
|
2432
|
-
routeById
|
|
2581
|
+
routeById,
|
|
2582
|
+
warningPairs: null
|
|
2433
2583
|
};
|
|
2434
2584
|
}
|
|
2435
2585
|
function routeWires(input, previous) {
|
|
2436
2586
|
const rectByKey = obstacleRectsByKey(input);
|
|
2437
|
-
const
|
|
2587
|
+
const changes = previous && previous.contentTop === input.contentTop ? obstacleChangesOf(previous.rectByKey, rectByKey) : null;
|
|
2588
|
+
const reuse = routeReuseOf(input, previous, changes);
|
|
2438
2589
|
const plans = planWires(input, reuse);
|
|
2439
2590
|
const requestsBySide = portRequestsBySide(plans);
|
|
2440
2591
|
const groupOrderBySide = defaultPortOrders(requestsBySide);
|
|
@@ -2463,6 +2614,7 @@ function routeWires(input, previous) {
|
|
|
2463
2614
|
};
|
|
2464
2615
|
});
|
|
2465
2616
|
const labelRects = [...labelById.values()].map((placed) => placed.bounds);
|
|
2617
|
+
const memory = routeMemoryOf(input, rectByKey, drawn);
|
|
2466
2618
|
const pointRects = drawn.flatMap((wire) => wire.points).map((point) => ({
|
|
2467
2619
|
x: point.x,
|
|
2468
2620
|
y: point.y,
|
|
@@ -2473,13 +2625,12 @@ function routeWires(input, previous) {
|
|
|
2473
2625
|
wires,
|
|
2474
2626
|
segments: drawn.flatMap((wire) => wire.segments),
|
|
2475
2627
|
collectWarnings: () => [
|
|
2476
|
-
|
|
2477
|
-
...crossingWarningsOf(drawn, input),
|
|
2478
|
-
...crowdedSideWarnings(requestsBySide, groupOrderBySide),
|
|
2479
|
-
...labelWarnings
|
|
2628
|
+
warningListOf(routeQualityWarnings(drawn)),
|
|
2629
|
+
...crossingWarningsOf(drawn, input, changes?.keys ?? null, memory, previous?.warningPairs ?? null),
|
|
2630
|
+
warningListOf([...crowdedSideWarnings(requestsBySide, groupOrderBySide), ...labelWarnings])
|
|
2480
2631
|
],
|
|
2481
2632
|
extent: unionOf([...pointRects, ...labelRects]),
|
|
2482
|
-
memory
|
|
2633
|
+
memory
|
|
2483
2634
|
};
|
|
2484
2635
|
}
|
|
2485
2636
|
//#endregion
|
|
@@ -3339,7 +3490,7 @@ function layoutBoardWithMemory(storedBoard, previous) {
|
|
|
3339
3490
|
...contentBounds,
|
|
3340
3491
|
height: contentBounds.height + extraHeight
|
|
3341
3492
|
},
|
|
3342
|
-
warnings:
|
|
3493
|
+
warnings: cappedWarningLists([...placed.routing.collectWarnings(), warningListOf(placed.collectPlacementWarnings())])
|
|
3343
3494
|
},
|
|
3344
3495
|
memory
|
|
3345
3496
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as e}from"./dom-helpers-DoQu95Iv.js";import"./session-actions-u9KeU11S.js";var t=new Map([[`claude-code`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"></path></svg>`],[`codex`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"></path></svg>`],[`copilot`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"></path></svg>`],[`cursor`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"></path></svg>`],[`gemini`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"></path></svg>`],[`goose`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M21.595 23.61c1.167-.254 2.405-.944 2.405-.944l-2.167-1.784a12.124 12.124 0 01-2.695-3.131 12.127 12.127 0 00-3.97-4.049l-.794-.462a1.115 1.115 0 01-.488-.815.844.844 0 01.154-.575c.413-.582 2.548-3.115 2.94-3.44.503-.416 1.065-.762 1.586-1.159.074-.056.148-.112.221-.17.003-.002.007-.004.009-.007.167-.131.325-.272.45-.438.453-.524.563-.988.59-1.193-.061-.197-.244-.639-.753-1.148.319.02.705.272 1.056.569.235-.376.481-.773.727-1.171.165-.266-.08-.465-.086-.471h-.001V3.22c-.007-.007-.206-.25-.471-.086-.567.35-1.134.702-1.639 1.021 0 0-.597-.012-1.305.599a2.464 2.464 0 00-.438.45l-.007.009c-.058.072-.114.147-.17.221-.397.521-.743 1.083-1.16 1.587-.323.391-2.857 2.526-3.44 2.94a.842.842 0 01-.574.153 1.115 1.115 0 01-.815-.488l-.462-.794a12.123 12.123 0 00-4.049-3.97 12.133 12.133 0 01-3.13-2.695L1.332 0S.643 1.238.39 2.405c.352.428 1.27 1.49 2.34 2.302C1.58 4.167.73 3.75.06 3.4c-.103.765-.063 1.92.043 2.816.726.317 1.961.806 3.219 1.066-1.006.236-2.11.278-2.961.262.15.554.358 1.119.64 1.688.119.263.25.52.39.77.452.125 2.222.383 3.164.171l-2.51.897a27.776 27.776 0 002.544 2.726c2.031-1.092 2.494-1.241 4.018-2.238-2.467 2.008-3.108 2.828-3.8 3.67l-.483.678c-.25.351-.469.725-.65 1.117-.61 1.31-1.47 4.1-1.47 4.1-.154.486.202.842.674.674 0 0 2.79-.861 4.1-1.47.392-.182.766-.4 1.118-.65l.677-.483c.227-.187.453-.37.701-.586 0 0 1.705 2.02 3.458 3.349l.896-2.511c-.211.942.046 2.712.17 3.163.252.142.509.272.772.392.569.28 1.134.49 1.688.64-.016-.853.026-1.956.261-2.962.26 1.258.75 2.493 1.067 3.219.895.106 2.051.146 2.816.043a73.87 73.87 0 01-1.308-2.67c.811 1.07 1.874 1.988 2.302 2.34h-.001z"></path></svg>`],[`grok`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"></path></svg>`],[`kimi`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z"></path><path d="M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z"></path></svg>`],[`opencode`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M16 6H8v12h8V6zm4 16H4V2h16v20z"></path></svg>`],[`qwen`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M19.713 2.825h-5.907c0-.251-.066-.503-.196-.728L12.819.728A1.46 1.46 0 0 0 11.559 0h-1.58c-.52 0-1 .275-1.26.728l-2.42 4.19a1.45 1.45 0 0 0 0 1.453l.791 1.37c.26.448.74.727 1.26.727h11.36c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451l-.79-1.37a1.46 1.46 0 0 0-1.26-.728zM.195 9.905l2.951 5.115a1.46 1.46 0 0 0-.531.531l-.791 1.37a1.45 1.45 0 0 0 0 1.452l.79 1.37c.26.448.74.727 1.26.727h4.84c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451L5.086 7.083a1.46 1.46 0 0 0-1.26-.728h-1.58c-.52 0-1 .276-1.26.728l-.79 1.37a1.45 1.45 0 0 0 0 1.452m15.888 13.367 2.951-5.115c.217.125.469.196.728.196h1.582c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451l-2.42-4.191a1.46 1.46 0 0 0-1.259-.728h-1.582c-.52 0-1 .276-1.259.728l-5.678 9.838a1.45 1.45 0 0 0 0 1.452l.79 1.37c.26.448.74.727 1.26.727h1.582c.52 0 1-.275 1.26-.728z"></path></svg>`]]);function n(n,r,i=null){let a=r===`shell`?null:r;if(n.dataset.agent===(a??``))return;if(n.dataset.agent=a??``,n.hidden=a===null,a===null){n.replaceChildren();return}let o=t.get(a);n.toggleAttribute(`data-monogram`,o===void 0),o===void 0?n.textContent=e(i??a):n.innerHTML=o}export{n as t};
|
|
1
|
+
import{x as e}from"./dom-helpers-DoQu95Iv.js";import"./session-actions-BkrOmTeh.js";var t=new Map([[`claude-code`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"></path></svg>`],[`codex`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"></path></svg>`],[`copilot`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"></path></svg>`],[`cursor`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z"></path></svg>`],[`gemini`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"></path></svg>`],[`goose`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M21.595 23.61c1.167-.254 2.405-.944 2.405-.944l-2.167-1.784a12.124 12.124 0 01-2.695-3.131 12.127 12.127 0 00-3.97-4.049l-.794-.462a1.115 1.115 0 01-.488-.815.844.844 0 01.154-.575c.413-.582 2.548-3.115 2.94-3.44.503-.416 1.065-.762 1.586-1.159.074-.056.148-.112.221-.17.003-.002.007-.004.009-.007.167-.131.325-.272.45-.438.453-.524.563-.988.59-1.193-.061-.197-.244-.639-.753-1.148.319.02.705.272 1.056.569.235-.376.481-.773.727-1.171.165-.266-.08-.465-.086-.471h-.001V3.22c-.007-.007-.206-.25-.471-.086-.567.35-1.134.702-1.639 1.021 0 0-.597-.012-1.305.599a2.464 2.464 0 00-.438.45l-.007.009c-.058.072-.114.147-.17.221-.397.521-.743 1.083-1.16 1.587-.323.391-2.857 2.526-3.44 2.94a.842.842 0 01-.574.153 1.115 1.115 0 01-.815-.488l-.462-.794a12.123 12.123 0 00-4.049-3.97 12.133 12.133 0 01-3.13-2.695L1.332 0S.643 1.238.39 2.405c.352.428 1.27 1.49 2.34 2.302C1.58 4.167.73 3.75.06 3.4c-.103.765-.063 1.92.043 2.816.726.317 1.961.806 3.219 1.066-1.006.236-2.11.278-2.961.262.15.554.358 1.119.64 1.688.119.263.25.52.39.77.452.125 2.222.383 3.164.171l-2.51.897a27.776 27.776 0 002.544 2.726c2.031-1.092 2.494-1.241 4.018-2.238-2.467 2.008-3.108 2.828-3.8 3.67l-.483.678c-.25.351-.469.725-.65 1.117-.61 1.31-1.47 4.1-1.47 4.1-.154.486.202.842.674.674 0 0 2.79-.861 4.1-1.47.392-.182.766-.4 1.118-.65l.677-.483c.227-.187.453-.37.701-.586 0 0 1.705 2.02 3.458 3.349l.896-2.511c-.211.942.046 2.712.17 3.163.252.142.509.272.772.392.569.28 1.134.49 1.688.64-.016-.853.026-1.956.261-2.962.26 1.258.75 2.493 1.067 3.219.895.106 2.051.146 2.816.043a73.87 73.87 0 01-1.308-2.67c.811 1.07 1.874 1.988 2.302 2.34h-.001z"></path></svg>`],[`grok`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815"></path></svg>`],[`kimi`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z"></path><path d="M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z"></path></svg>`],[`opencode`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M16 6H8v12h8V6zm4 16H4V2h16v20z"></path></svg>`],[`qwen`,`<svg aria-hidden="true" fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M19.713 2.825h-5.907c0-.251-.066-.503-.196-.728L12.819.728A1.46 1.46 0 0 0 11.559 0h-1.58c-.52 0-1 .275-1.26.728l-2.42 4.19a1.45 1.45 0 0 0 0 1.453l.791 1.37c.26.448.74.727 1.26.727h11.36c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451l-.79-1.37a1.46 1.46 0 0 0-1.26-.728zM.195 9.905l2.951 5.115a1.46 1.46 0 0 0-.531.531l-.791 1.37a1.45 1.45 0 0 0 0 1.452l.79 1.37c.26.448.74.727 1.26.727h4.84c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451L5.086 7.083a1.46 1.46 0 0 0-1.26-.728h-1.58c-.52 0-1 .276-1.26.728l-.79 1.37a1.45 1.45 0 0 0 0 1.452m15.888 13.367 2.951-5.115c.217.125.469.196.728.196h1.582c.52 0 1-.275 1.26-.728l.79-1.37a1.45 1.45 0 0 0 0-1.451l-2.42-4.191a1.46 1.46 0 0 0-1.259-.728h-1.582c-.52 0-1 .276-1.259.728l-5.678 9.838a1.45 1.45 0 0 0 0 1.452l.79 1.37c.26.448.74.727 1.26.727h1.582c.52 0 1-.275 1.26-.728z"></path></svg>`]]);function n(n,r,i=null){let a=r===`shell`?null:r;if(n.dataset.agent===(a??``))return;if(n.dataset.agent=a??``,n.hidden=a===null,a===null){n.replaceChildren();return}let o=t.get(a);n.toggleAttribute(`data-monogram`,o===void 0),o===void 0?n.textContent=e(i??a):n.innerHTML=o}export{n as t};
|
|
Binary file
|