glimmervoid 0.52.3-next.839 → 0.52.3-next.841
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 +13 -13
- package/dist/chunks/{adapters-B1k8FDU5.js → adapters-D2zr2Uop.js} +4 -5
- package/dist/chunks/{adapters-COIzHLk_.js → adapters-DqH6rr17.js} +1 -1
- package/dist/chunks/{agent-setup-cli-sPLcSqu3.js → agent-setup-cli-Dl02S8kv.js} +1 -1
- package/dist/chunks/config-store-BsOT3TkF.js +1 -0
- package/dist/chunks/{config-store-qbQjbdGp.js → config-store-DRIDk1dj.js} +31 -4
- package/dist/chunks/{grok-CipeU5cC.js → grok-z0gCHJuh.js} +1 -1
- package/dist/chunks/{host-cli-CAR95LFQ.js → host-cli-Cmh7CJZN.js} +1 -1
- package/dist/chunks/kimi-D6H6co0c.js +1 -0
- package/dist/chunks/{kimi-DmGX6yjF.js → kimi-DoJtxbMK.js} +1 -1
- package/dist/chunks/{main-Cc2JGBdM.js → main-DeeaAaSi.js} +65 -26
- package/dist/chunks/{packs-cli-BPNS6v7c.js → packs-cli-B35qdjPU.js} +1 -1
- package/dist/chunks/{pair-cli-C5CTbWGe.js → pair-cli-BfToAEYw.js} +2 -2
- package/dist/chunks/{remote-config-BJJeoIEq.js → remote-config-MtTrtohP.js} +3 -3
- package/dist/chunks/runtime-paths-BDgOIpU-.js +1 -0
- package/dist/chunks/{runtime-paths-YS6tWGDa.js → runtime-paths-Bg4cKFoq.js} +25 -2
- package/dist/chunks/{settings-cli-CZgS28eb.js → settings-cli-Br1U03X4.js} +2 -2
- package/dist/chunks/settings-cli-DoWp6qzv.js +1 -0
- package/dist/chunks/{settings-readout-core-BrUnDY8a.js → settings-readout-core-BKUStfoo.js} +1 -1
- package/dist/chunks/timer-deps-yeY8p-gc.js +14 -0
- package/dist/chunks/{watch-cli-C3GdjTh1.js → watch-cli-0XmC36if.js} +101 -28
- package/dist/chunks/{watchee-settings--OZC62ym.js → watchee-settings-Bu93osrP.js} +72 -64
- package/dist/client/assets/{agent-core-CJHlZAfn.js → agent-core-BBakMR_x.js} +2 -2
- package/dist/client/assets/agent-core-BBakMR_x.js.br +0 -0
- package/dist/client/assets/{agent-mark-C2wZhMyF.js → agent-mark-CvBp2Vrz.js} +1 -1
- package/dist/client/assets/agent-mark-CvBp2Vrz.js.br +0 -0
- package/dist/client/assets/{arena-panel-DgUf5yLG.js → arena-panel-pTer0rz7.js} +2 -2
- package/dist/client/assets/arena-panel-pTer0rz7.js.br +0 -0
- package/dist/client/assets/{benchmark-panel-DIQrsKr3.js → benchmark-panel-CvgUDXaf.js} +1 -1
- package/dist/client/assets/benchmark-panel-CvgUDXaf.js.br +0 -0
- package/dist/client/assets/{boards-view-BgC3BlKo.js → boards-view-mJ7_ojKe.js} +1 -1
- package/dist/client/assets/boards-view-mJ7_ojKe.js.br +0 -0
- package/dist/client/assets/{community-panel-dqSd6ZBK.js → community-panel--he2ZdKr.js} +1 -1
- package/dist/client/assets/community-panel--he2ZdKr.js.br +0 -0
- package/dist/client/assets/{dialogs-Dh7KQ22P.js → dialogs-DUKd951O.js} +1 -1
- package/dist/client/assets/dialogs-DUKd951O.js.br +0 -0
- package/dist/client/assets/{doc-editor-ui-BAMlmsT9.js → doc-editor-ui-BuXfO1aq.js} +1 -1
- package/dist/client/assets/doc-editor-ui-BuXfO1aq.js.br +0 -0
- package/dist/client/assets/{feature-hint-BZfnvo9Q.js → feature-hint-CDRSmmHL.js} +1 -1
- package/dist/client/assets/feature-hint-CDRSmmHL.js.br +0 -0
- package/dist/client/assets/{first-run-checklist-DlQH73Cf.js → first-run-checklist-CXpRnU63.js} +1 -1
- package/dist/client/assets/first-run-checklist-CXpRnU63.js.br +0 -0
- package/dist/client/assets/{hooks-panel-ClxYy3Ti.js → hooks-panel-Dg174zsJ.js} +1 -1
- package/dist/client/assets/hooks-panel-Dg174zsJ.js.br +0 -0
- package/dist/client/assets/{index-HUuQ_m4e.js → index-BH0EN62M.js} +5 -5
- package/dist/client/assets/index-BH0EN62M.js.br +0 -0
- package/dist/client/assets/{issues-panel-B1SbSqRb.js → issues-panel-DyFprAeS.js} +1 -1
- package/dist/client/assets/issues-panel-DyFprAeS.js.br +0 -0
- package/dist/client/assets/{lane-read-token-step-CBvheiwM.js → lane-read-token-step-B8p0bxOy.js} +1 -1
- package/dist/client/assets/lane-read-token-step-B8p0bxOy.js.br +0 -0
- package/dist/client/assets/{my-prs-panel-CzSfXohF.js → my-prs-panel-LtJs_ipe.js} +1 -1
- package/dist/client/assets/my-prs-panel-LtJs_ipe.js.br +0 -0
- package/dist/client/assets/{nyan-cat-DFsICEWi.js → nyan-cat-CSicgTiT.js} +1 -1
- package/dist/client/assets/nyan-cat-CSicgTiT.js.br +0 -0
- package/dist/client/assets/{phone-shell-BLRUocP2.js → phone-shell-ChriJfnn.js} +1 -1
- package/dist/client/assets/phone-shell-ChriJfnn.js.br +0 -0
- package/dist/client/assets/{plan-face-DmxUvhYE.js → plan-face-CLbEjtEr.js} +1 -1
- package/dist/client/assets/plan-face-CLbEjtEr.js.br +0 -0
- package/dist/client/assets/{plan-render-D4dW4Wqh.js → plan-render-Crv1SJU9.js} +1 -1
- package/dist/client/assets/plan-render-Crv1SJU9.js.br +0 -0
- package/dist/client/assets/{pr-queue-columns-ByRYQUwK.js → pr-queue-columns-C5Bx7R14.js} +1 -1
- package/dist/client/assets/pr-queue-columns-C5Bx7R14.js.br +0 -0
- package/dist/client/assets/{radar-panel-BwEBL08M.js → radar-panel-Dolgat0i.js} +1 -1
- package/dist/client/assets/radar-panel-Dolgat0i.js.br +0 -0
- package/dist/client/assets/{repo-roots-adder-Ql-rD7rS.js → repo-roots-adder-D8RglW4e.js} +1 -1
- package/dist/client/assets/repo-roots-adder-D8RglW4e.js.br +0 -0
- package/dist/client/assets/{resume-dialog-tgN4cNms.js → resume-dialog-CB7hHYC0.js} +1 -1
- package/dist/client/assets/resume-dialog-CB7hHYC0.js.br +0 -0
- package/dist/client/assets/{review-queue-panel-D2eQjmCp.js → review-queue-panel-BL96L6oi.js} +1 -1
- package/dist/client/assets/review-queue-panel-BL96L6oi.js.br +0 -0
- package/dist/client/assets/{session-row-DD1jkWaf.js → session-row-BgXMPN12.js} +1 -1
- package/dist/client/assets/session-row-BgXMPN12.js.br +0 -0
- package/dist/client/assets/{settings-panel-DVgYERof.js → settings-panel-BTYGqTw_.js} +2 -2
- package/dist/client/assets/settings-panel-BTYGqTw_.js.br +0 -0
- package/dist/client/assets/{trace-panel-H7wBWp7Q.js → trace-panel-C_rE_Esd.js} +1 -1
- package/dist/client/assets/trace-panel-C_rE_Esd.js.br +0 -0
- package/dist/client/assets/{usage-panel-B5AU4sEv.js → usage-panel-CF1hqe3K.js} +1 -1
- package/dist/client/assets/usage-panel-CF1hqe3K.js.br +0 -0
- package/dist/client/assets/{your-day-tip-DQgdfGmW.js → your-day-tip-CvlElQ_J.js} +1 -1
- package/dist/client/assets/your-day-tip-CvlElQ_J.js.br +0 -0
- package/dist/client/index.html +4 -4
- package/dist/client/index.html.br +0 -0
- package/dist/server/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/canonical-paths-tdQPG3Kv.js +0 -45
- package/dist/chunks/config-store-Dxdi1z2O.js +0 -1
- package/dist/chunks/kimi-ZOtYN-uj.js +0 -1
- package/dist/chunks/paths-C2u2R_6l.js +0 -26
- package/dist/chunks/runtime-paths-DQdrF6Gy.js +0 -1
- package/dist/chunks/settings-cli-Cujdk9R0.js +0 -1
- package/dist/client/assets/agent-core-CJHlZAfn.js.br +0 -0
- package/dist/client/assets/agent-mark-C2wZhMyF.js.br +0 -0
- package/dist/client/assets/arena-panel-DgUf5yLG.js.br +0 -0
- package/dist/client/assets/benchmark-panel-DIQrsKr3.js.br +0 -0
- package/dist/client/assets/boards-view-BgC3BlKo.js.br +0 -0
- package/dist/client/assets/community-panel-dqSd6ZBK.js.br +0 -0
- package/dist/client/assets/dialogs-Dh7KQ22P.js.br +0 -0
- package/dist/client/assets/doc-editor-ui-BAMlmsT9.js.br +0 -0
- package/dist/client/assets/feature-hint-BZfnvo9Q.js.br +0 -0
- package/dist/client/assets/first-run-checklist-DlQH73Cf.js.br +0 -0
- package/dist/client/assets/hooks-panel-ClxYy3Ti.js.br +0 -0
- package/dist/client/assets/index-HUuQ_m4e.js.br +0 -0
- package/dist/client/assets/issues-panel-B1SbSqRb.js.br +0 -0
- package/dist/client/assets/lane-read-token-step-CBvheiwM.js.br +0 -0
- package/dist/client/assets/my-prs-panel-CzSfXohF.js.br +0 -0
- package/dist/client/assets/nyan-cat-DFsICEWi.js.br +0 -0
- package/dist/client/assets/phone-shell-BLRUocP2.js.br +0 -0
- package/dist/client/assets/plan-face-DmxUvhYE.js.br +0 -0
- package/dist/client/assets/plan-render-D4dW4Wqh.js.br +0 -0
- package/dist/client/assets/pr-queue-columns-ByRYQUwK.js.br +0 -0
- package/dist/client/assets/radar-panel-BwEBL08M.js.br +0 -0
- package/dist/client/assets/repo-roots-adder-Ql-rD7rS.js.br +0 -0
- package/dist/client/assets/resume-dialog-tgN4cNms.js.br +0 -0
- package/dist/client/assets/review-queue-panel-D2eQjmCp.js.br +0 -0
- package/dist/client/assets/session-row-DD1jkWaf.js.br +0 -0
- package/dist/client/assets/settings-panel-DVgYERof.js.br +0 -0
- package/dist/client/assets/trace-panel-H7wBWp7Q.js.br +0 -0
- package/dist/client/assets/usage-panel-B5AU4sEv.js.br +0 -0
- package/dist/client/assets/your-day-tip-DQgdfGmW.js.br +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as discordItemsFromRows, Et as workflowRepoWatchNames, F as forumItemsFromRows, Fr as orgSearchPlans, I as forumQuery, Ni as dailyVolumeQuery, Nn as mergedSinceDate, Q as posthogDetectFailure, Tt as workflowPrFromGithubPr, X as POSTHOG_API_KEY_ENV, Yt as createPrGh, Z as createWatcheePosthog, at as extractRows, co as
|
|
1
|
+
import { A as discordItemsFromRows, Et as workflowRepoWatchNames, F as forumItemsFromRows, Fr as orgSearchPlans, I as forumQuery, Ni as dailyVolumeQuery, Nn as mergedSinceDate, Q as posthogDetectFailure, Tt as workflowPrFromGithubPr, X as POSTHOG_API_KEY_ENV, Yt as createPrGh, Z as createWatcheePosthog, _o as WatcheeSettingsReply, a as writeWatcheeSettings, ao as classifyInboxReply, at as extractRows, co as describeRefusal, do as restartDelayMs, en as createGithubStorePoller, i as watcherHomeDir, j as discordQuery, n as readJsonFileOrUndefined, nt as shouldRetryTrafficQuery, oo as createPingJob, ot as normalizeIssues, po as SENT_EVENTS_FILENAME, r as readWatcheeSettings, ro as createTickLoop, so as deliveryRetryDelayMs, t as createWatcheeFileStore, uo as parseInboxUrl, xo as WatcherJobAck } from "./watchee-settings-Bu93osrP.js";
|
|
2
2
|
import { n as isRecord } from "./coerce-D6vRlIGO.js";
|
|
3
3
|
import { r as errorMessage } from "./text-BDF4aFhQ.js";
|
|
4
4
|
import { u as writeJsonAtomic } from "./json-file-B4WAD15T.js";
|
|
5
|
-
import {
|
|
5
|
+
import { t as DEFAULT_TIMER_FNS } from "./timer-deps-yeY8p-gc.js";
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import crypto from "node:crypto";
|
|
@@ -83,6 +83,33 @@ async function sendJob({ jobsUrl, token, job, maxAttempts }) {
|
|
|
83
83
|
reason: lastFailureReason
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
+
async function fetchWatcheeSettings({ settingsUrl, token }) {
|
|
87
|
+
try {
|
|
88
|
+
const response = await fetch(settingsUrl, {
|
|
89
|
+
headers: { authorization: `Bearer ${token}` },
|
|
90
|
+
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
|
|
91
|
+
});
|
|
92
|
+
const replyBody = parseReplyText(await response.text());
|
|
93
|
+
if (!response.ok) return {
|
|
94
|
+
ok: false,
|
|
95
|
+
reason: `the inbox answered ${response.status}: ${replyErrorOf(replyBody) ?? "no reason given"}`
|
|
96
|
+
};
|
|
97
|
+
const reply = WatcheeSettingsReply.safeParse(replyBody);
|
|
98
|
+
if (!reply.success) return {
|
|
99
|
+
ok: false,
|
|
100
|
+
reason: "the inbox sent malformed watchee settings"
|
|
101
|
+
};
|
|
102
|
+
return {
|
|
103
|
+
ok: true,
|
|
104
|
+
reply: reply.data
|
|
105
|
+
};
|
|
106
|
+
} catch (error) {
|
|
107
|
+
return {
|
|
108
|
+
ok: false,
|
|
109
|
+
reason: describeUnreachable(error)
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
86
113
|
// cloud/watchees/github-store-watchee.ts
|
|
87
114
|
function createWatcheeGithubStore({ watcherHome, now, log }) {
|
|
88
115
|
return createGithubStorePoller({
|
|
@@ -1016,45 +1043,80 @@ function createWatcheeJob(jobId, kind, payload, sentAt) {
|
|
|
1016
1043
|
// cloud/watcher/watchee-runner.ts
|
|
1017
1044
|
var SENT_EVENTS_MAX_AGE_MS = 2592e6;
|
|
1018
1045
|
var JOB_DELIVERY_ATTEMPTS = 3;
|
|
1019
|
-
var
|
|
1020
|
-
function createWatcheeRunner({ watcherHome, jobsUrl, token, now = Date.now, log = console }) {
|
|
1046
|
+
var IDLE_SETTINGS_CHECK_MS = 9e5;
|
|
1047
|
+
function createWatcheeRunner({ watcherHome, jobsUrl, settingsUrl, token, now = Date.now, log = console }) {
|
|
1021
1048
|
const sentEventsPath = path.join(watcherHome, SENT_EVENTS_FILENAME);
|
|
1022
1049
|
const runningByKind = /* @__PURE__ */ new Map();
|
|
1023
|
-
let
|
|
1050
|
+
let currentReply = null;
|
|
1024
1051
|
const kindsToResend = /* @__PURE__ */ new Set();
|
|
1025
1052
|
let sentAtByJobId = {};
|
|
1026
|
-
let
|
|
1027
|
-
let
|
|
1053
|
+
let settingsRefresh = Promise.resolve();
|
|
1054
|
+
let failedFirstFetchCount = 0;
|
|
1055
|
+
let firstFetchRetry = null;
|
|
1056
|
+
let idleSettingsCheck = null;
|
|
1057
|
+
let isStopped = false;
|
|
1028
1058
|
async function start() {
|
|
1029
1059
|
sentAtByJobId = pruneSentEvents(await readSentEvents(), now(), SENT_EVENTS_MAX_AGE_MS);
|
|
1030
1060
|
await fs.promises.mkdir(watcherHome, {
|
|
1031
1061
|
recursive: true,
|
|
1032
1062
|
mode: 448
|
|
1033
1063
|
});
|
|
1034
|
-
await
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1064
|
+
const cached = await readWatcheeSettings(watcherHome);
|
|
1065
|
+
if (cached.ok) await applySettings(cached.reply);
|
|
1066
|
+
if (!cached.ok) log.log(`[watcher] no saved watchee settings (${cached.reason}); fetching them from the inbox`);
|
|
1067
|
+
await refreshSettings();
|
|
1068
|
+
}
|
|
1069
|
+
function refreshSettings() {
|
|
1070
|
+
settingsRefresh = settingsRefresh.then(fetchAndApplySettings);
|
|
1071
|
+
return settingsRefresh;
|
|
1072
|
+
}
|
|
1073
|
+
async function fetchAndApplySettings() {
|
|
1074
|
+
if (isStopped) return;
|
|
1075
|
+
const fetched = await fetchWatcheeSettings({
|
|
1076
|
+
settingsUrl,
|
|
1077
|
+
token
|
|
1041
1078
|
});
|
|
1079
|
+
if (!fetched.ok && currentReply === null) {
|
|
1080
|
+
retryFirstFetch(fetched.reason);
|
|
1081
|
+
return;
|
|
1082
|
+
}
|
|
1083
|
+
if (!fetched.ok) {
|
|
1084
|
+
log.warn(`[watcher] could not fetch watchee settings: ${fetched.reason}; keeping the last ones`);
|
|
1085
|
+
return;
|
|
1086
|
+
}
|
|
1087
|
+
failedFirstFetchCount = 0;
|
|
1088
|
+
if (isStopped || fetched.reply.revision === currentReply?.revision) return;
|
|
1089
|
+
await writeWatcheeSettings(watcherHome, fetched.reply).catch((error) => log.warn(`[watcher] could not save the watchee settings: ${errorMessage(error)}`));
|
|
1090
|
+
await applySettings(fetched.reply);
|
|
1042
1091
|
}
|
|
1043
1092
|
async function readSentEvents() {
|
|
1044
1093
|
const saved = await readJsonFileOrUndefined(sentEventsPath);
|
|
1045
1094
|
if (saved === null || typeof saved !== "object" || Array.isArray(saved)) return {};
|
|
1046
1095
|
return Object.fromEntries(Object.entries(saved).filter((entry) => typeof entry[1] === "number"));
|
|
1047
1096
|
}
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1097
|
+
function retryFirstFetch(reason) {
|
|
1098
|
+
if (isStopped) return;
|
|
1099
|
+
failedFirstFetchCount += 1;
|
|
1100
|
+
const delayMs = restartDelayMs(failedFirstFetchCount);
|
|
1101
|
+
log.warn(`[watcher] could not fetch watchee settings: ${reason}; no saved ones to watch with, trying again in ${Math.round(delayMs / 1e3)}s`);
|
|
1102
|
+
firstFetchRetry = setTimeout(() => {
|
|
1103
|
+
firstFetchRetry = null;
|
|
1104
|
+
refreshSettings();
|
|
1105
|
+
}, delayMs);
|
|
1106
|
+
}
|
|
1107
|
+
async function applySettings(reply) {
|
|
1108
|
+
currentReply = reply;
|
|
1056
1109
|
for (const kind of Object.keys(WATCHEES)) kindsToResend.add(kind);
|
|
1057
|
-
for (const kind of Object.keys(WATCHEES)) await applyWatchee(kind,
|
|
1110
|
+
for (const kind of Object.keys(WATCHEES)) await applyWatchee(kind, reply.settings);
|
|
1111
|
+
checkSettingsWhileIdle();
|
|
1112
|
+
}
|
|
1113
|
+
function checkSettingsWhileIdle() {
|
|
1114
|
+
if (idleSettingsCheck !== null) clearInterval(idleSettingsCheck);
|
|
1115
|
+
idleSettingsCheck = null;
|
|
1116
|
+
if (isStopped || runningByKind.size > 0) return;
|
|
1117
|
+
idleSettingsCheck = setInterval(() => {
|
|
1118
|
+
refreshSettings();
|
|
1119
|
+
}, IDLE_SETTINGS_CHECK_MS);
|
|
1058
1120
|
}
|
|
1059
1121
|
async function applyWatchee(kind, settings) {
|
|
1060
1122
|
const watchee = WATCHEES[kind];
|
|
@@ -1095,9 +1157,9 @@ function createWatcheeRunner({ watcherHome, jobsUrl, token, now = Date.now, log
|
|
|
1095
1157
|
log.log(`[watcher] ${watchee.laneId} watching every ${Math.round(trigger.everyMs / 6e4)} min`);
|
|
1096
1158
|
}
|
|
1097
1159
|
async function detectAndSend(kind, detector, everyMs) {
|
|
1098
|
-
if (
|
|
1160
|
+
if (currentReply === null) return void 0;
|
|
1099
1161
|
const watchee = WATCHEES[kind];
|
|
1100
|
-
const detected = await detector.detect(
|
|
1162
|
+
const detected = await detector.detect(currentReply.settings);
|
|
1101
1163
|
if (!detected.ok) {
|
|
1102
1164
|
log.warn(`[watcher] ${watchee.laneId} could not detect: ${detected.reason}`);
|
|
1103
1165
|
return detected.retryAfterMs === void 0 ? {
|
|
@@ -1123,6 +1185,7 @@ function createWatcheeRunner({ watcherHome, jobsUrl, token, now = Date.now, log
|
|
|
1123
1185
|
failed: true,
|
|
1124
1186
|
error: `${watchee.laneId} job not delivered: ${delivery.reason}`
|
|
1125
1187
|
};
|
|
1188
|
+
if (isNewerSettingsRevision(delivery.ack.settingsRevision)) refreshSettings();
|
|
1126
1189
|
await detector.acknowledged?.(payload);
|
|
1127
1190
|
sentAtByJobId = {
|
|
1128
1191
|
...pruneSentEvents(sentAtByJobId, now(), SENT_EVENTS_MAX_AGE_MS),
|
|
@@ -1136,19 +1199,25 @@ function createWatcheeRunner({ watcherHome, jobsUrl, token, now = Date.now, log
|
|
|
1136
1199
|
}
|
|
1137
1200
|
kindsToResend.delete(kind);
|
|
1138
1201
|
}
|
|
1202
|
+
function isNewerSettingsRevision(settingsRevision) {
|
|
1203
|
+
return settingsRevision !== void 0 && settingsRevision !== currentReply?.revision;
|
|
1204
|
+
}
|
|
1139
1205
|
async function stopWatchee(kind, running) {
|
|
1140
1206
|
runningByKind.delete(kind);
|
|
1141
1207
|
running.detector.stop();
|
|
1142
1208
|
await running.loop.stop();
|
|
1143
1209
|
}
|
|
1144
1210
|
async function stop() {
|
|
1145
|
-
|
|
1146
|
-
if (
|
|
1211
|
+
isStopped = true;
|
|
1212
|
+
if (firstFetchRetry !== null) clearTimeout(firstFetchRetry);
|
|
1213
|
+
if (idleSettingsCheck !== null) clearInterval(idleSettingsCheck);
|
|
1214
|
+
await settingsRefresh;
|
|
1147
1215
|
for (const [kind, running] of [...runningByKind]) await stopWatchee(kind, running);
|
|
1148
1216
|
}
|
|
1149
1217
|
return {
|
|
1150
1218
|
start,
|
|
1151
|
-
stop
|
|
1219
|
+
stop,
|
|
1220
|
+
refreshSettings
|
|
1152
1221
|
};
|
|
1153
1222
|
}
|
|
1154
1223
|
// cloud/watcher/watch-cli.ts
|
|
@@ -1205,8 +1274,12 @@ async function runWatchCli({ inboxUrl, isPingOnly }) {
|
|
|
1205
1274
|
const watcheeRunner = createWatcheeRunner({
|
|
1206
1275
|
watcherHome: watcherHomeDir(),
|
|
1207
1276
|
jobsUrl: inbox.jobsUrl,
|
|
1277
|
+
settingsUrl: inbox.settingsUrl,
|
|
1208
1278
|
token
|
|
1209
1279
|
});
|
|
1280
|
+
process.on("message", (message) => {
|
|
1281
|
+
if (isRecord(message) && message.type === "watchee-settings-changed") watcheeRunner.refreshSettings();
|
|
1282
|
+
});
|
|
1210
1283
|
await watcheeRunner.start();
|
|
1211
1284
|
await untilStopSignal(supervisorLeft);
|
|
1212
1285
|
await watcheeRunner.stop();
|
|
@@ -7,7 +7,7 @@ import { i as positiveNumberOr, n as isRecord$1 } from "./coerce-D6vRlIGO.js";
|
|
|
7
7
|
import { t as isLoopbackHostname } from "./loopback-hosts-CpQsUSmU.js";
|
|
8
8
|
import { t as parseJsonOrNull } from "./json-core-B1ov-SNz.js";
|
|
9
9
|
import { D as DEFAULT_MAX_MS, E as DEFAULT_BASE_MS, O as nextBackoffMs, g as createSerialQueue, u as writeJsonAtomic } from "./json-file-B4WAD15T.js";
|
|
10
|
-
import {
|
|
10
|
+
import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-yeY8p-gc.js";
|
|
11
11
|
import { t as HOOK_TOOLS } from "./hook-tools-CytPV0RW.js";
|
|
12
12
|
import { E as threadCandidates, F as defineTransitions, l as mergeItems, o as flaggingReviewers } from "./pr-flows-core-ClKmu5qP.js";
|
|
13
13
|
import path from "node:path";
|
|
@@ -109,12 +109,75 @@ var WatcherJobEnvelope = z.object({
|
|
|
109
109
|
}).strict();
|
|
110
110
|
var WatcherJobAck = z.object({
|
|
111
111
|
jobId: z.uuid(),
|
|
112
|
-
status: z.enum(["accepted", "duplicate"])
|
|
112
|
+
status: z.enum(["accepted", "duplicate"]),
|
|
113
|
+
settingsRevision: z.string().min(1).optional()
|
|
113
114
|
}).strict();
|
|
114
115
|
var WATCHER_JOB_PAYLOADS = WATCHER_JOB_KINDS;
|
|
115
116
|
function isWatcherJobKind(kind) {
|
|
116
117
|
return Object.hasOwn(WATCHER_JOB_KINDS, kind);
|
|
117
118
|
}
|
|
119
|
+
// shared/contracts/watchee-settings.ts
|
|
120
|
+
var TeamReviewWatcheeSettings = z.object({
|
|
121
|
+
enabled: z.boolean(),
|
|
122
|
+
org: z.string(),
|
|
123
|
+
teams: z.array(z.object({
|
|
124
|
+
org: z.string().min(1),
|
|
125
|
+
slug: z.string().min(1)
|
|
126
|
+
}).strict()),
|
|
127
|
+
intervalMinutes: z.number().positive()
|
|
128
|
+
}).strict();
|
|
129
|
+
var MyPrsWatcheeSettings = z.object({
|
|
130
|
+
enabled: z.boolean(),
|
|
131
|
+
org: z.string(),
|
|
132
|
+
intervalMinutes: z.number().positive()
|
|
133
|
+
}).strict();
|
|
134
|
+
var WorkflowsWatcheeSettings = z.object({
|
|
135
|
+
enabled: z.boolean(),
|
|
136
|
+
repos: z.array(z.string().min(1)),
|
|
137
|
+
intervalMinutes: z.number().positive()
|
|
138
|
+
}).strict();
|
|
139
|
+
var IssuesWatcheeSettings = z.object({
|
|
140
|
+
enabled: z.boolean(),
|
|
141
|
+
projectRepos: z.array(z.string().min(1)),
|
|
142
|
+
teams: z.array(z.string().min(1)),
|
|
143
|
+
intervalMinutes: z.number().positive()
|
|
144
|
+
}).strict();
|
|
145
|
+
var RadarWatcheeSettings = z.object({
|
|
146
|
+
enabled: z.boolean(),
|
|
147
|
+
host: z.string().min(1),
|
|
148
|
+
projects: z.union([z.literal("all"), z.array(z.union([z.string().min(1), z.number().int()]))]),
|
|
149
|
+
projectNames: z.record(z.string(), z.string()),
|
|
150
|
+
intervalMinutes: z.number().positive(),
|
|
151
|
+
traffic: z.object({
|
|
152
|
+
enabled: z.boolean(),
|
|
153
|
+
baselineDays: z.number().positive()
|
|
154
|
+
}).strict()
|
|
155
|
+
}).strict();
|
|
156
|
+
var CommunityWatcheeSettings = z.object({
|
|
157
|
+
enabled: z.boolean(),
|
|
158
|
+
host: z.string().min(1),
|
|
159
|
+
projectId: z.number().int().positive(),
|
|
160
|
+
discordChannels: z.array(z.string().min(1)),
|
|
161
|
+
intervalMinutes: z.number().positive()
|
|
162
|
+
}).strict();
|
|
163
|
+
var WatcheeSettingsFile = z.object({
|
|
164
|
+
version: z.literal(1),
|
|
165
|
+
teamReview: TeamReviewWatcheeSettings,
|
|
166
|
+
myPrs: MyPrsWatcheeSettings,
|
|
167
|
+
workflows: WorkflowsWatcheeSettings,
|
|
168
|
+
issues: IssuesWatcheeSettings,
|
|
169
|
+
radar: RadarWatcheeSettings,
|
|
170
|
+
community: CommunityWatcheeSettings
|
|
171
|
+
}).strict();
|
|
172
|
+
var WatcheeSettingsReply = z.strictObject({
|
|
173
|
+
revision: z.string().min(1),
|
|
174
|
+
settings: WatcheeSettingsFile
|
|
175
|
+
});
|
|
176
|
+
var WATCHEE_SETTINGS_PATH = "/watchees";
|
|
177
|
+
var WATCHEE_SETTINGS_CHANGED_MESSAGE = "watchee-settings-changed";
|
|
178
|
+
var WATCHEE_SETTINGS_FILENAME = "watchees.json";
|
|
179
|
+
var SENT_EVENTS_FILENAME = "sent-events.json";
|
|
180
|
+
var WATCHER_HOME_ENV = "GLIMMERVOID_WATCHER_HOME";
|
|
118
181
|
// cloud/watcher/core/watcher-core.ts
|
|
119
182
|
var RESTART_BASE_MS = 1e3;
|
|
120
183
|
var RESTART_MAX_MS = 3e5;
|
|
@@ -170,7 +233,8 @@ function parseInboxUrl(rawInboxUrl) {
|
|
|
170
233
|
};
|
|
171
234
|
return {
|
|
172
235
|
ok: true,
|
|
173
|
-
jobsUrl: new URL(WATCHER_JOBS_PATH, inboxUrl).href
|
|
236
|
+
jobsUrl: new URL(WATCHER_JOBS_PATH, inboxUrl).href,
|
|
237
|
+
settingsUrl: new URL(WATCHEE_SETTINGS_PATH, inboxUrl).href
|
|
174
238
|
};
|
|
175
239
|
}
|
|
176
240
|
function restartDelayMs(crashCount) {
|
|
@@ -542,62 +606,6 @@ function createLaneRunner({ tag, gate, cfgKey, emptyStatus, createPoller, broadc
|
|
|
542
606
|
isStopped: () => stopped
|
|
543
607
|
};
|
|
544
608
|
}
|
|
545
|
-
// shared/contracts/watchee-settings.ts
|
|
546
|
-
var TeamReviewWatcheeSettings = z.object({
|
|
547
|
-
enabled: z.boolean(),
|
|
548
|
-
org: z.string(),
|
|
549
|
-
teams: z.array(z.object({
|
|
550
|
-
org: z.string().min(1),
|
|
551
|
-
slug: z.string().min(1)
|
|
552
|
-
}).strict()),
|
|
553
|
-
intervalMinutes: z.number().positive()
|
|
554
|
-
}).strict();
|
|
555
|
-
var MyPrsWatcheeSettings = z.object({
|
|
556
|
-
enabled: z.boolean(),
|
|
557
|
-
org: z.string(),
|
|
558
|
-
intervalMinutes: z.number().positive()
|
|
559
|
-
}).strict();
|
|
560
|
-
var WorkflowsWatcheeSettings = z.object({
|
|
561
|
-
enabled: z.boolean(),
|
|
562
|
-
repos: z.array(z.string().min(1)),
|
|
563
|
-
intervalMinutes: z.number().positive()
|
|
564
|
-
}).strict();
|
|
565
|
-
var IssuesWatcheeSettings = z.object({
|
|
566
|
-
enabled: z.boolean(),
|
|
567
|
-
projectRepos: z.array(z.string().min(1)),
|
|
568
|
-
teams: z.array(z.string().min(1)),
|
|
569
|
-
intervalMinutes: z.number().positive()
|
|
570
|
-
}).strict();
|
|
571
|
-
var RadarWatcheeSettings = z.object({
|
|
572
|
-
enabled: z.boolean(),
|
|
573
|
-
host: z.string().min(1),
|
|
574
|
-
projects: z.union([z.literal("all"), z.array(z.union([z.string().min(1), z.number().int()]))]),
|
|
575
|
-
projectNames: z.record(z.string(), z.string()),
|
|
576
|
-
intervalMinutes: z.number().positive(),
|
|
577
|
-
traffic: z.object({
|
|
578
|
-
enabled: z.boolean(),
|
|
579
|
-
baselineDays: z.number().positive()
|
|
580
|
-
}).strict()
|
|
581
|
-
}).strict();
|
|
582
|
-
var CommunityWatcheeSettings = z.object({
|
|
583
|
-
enabled: z.boolean(),
|
|
584
|
-
host: z.string().min(1),
|
|
585
|
-
projectId: z.number().int().positive(),
|
|
586
|
-
discordChannels: z.array(z.string().min(1)),
|
|
587
|
-
intervalMinutes: z.number().positive()
|
|
588
|
-
}).strict();
|
|
589
|
-
var WatcheeSettingsFile = z.object({
|
|
590
|
-
version: z.literal(1),
|
|
591
|
-
teamReview: TeamReviewWatcheeSettings,
|
|
592
|
-
myPrs: MyPrsWatcheeSettings,
|
|
593
|
-
workflows: WorkflowsWatcheeSettings,
|
|
594
|
-
issues: IssuesWatcheeSettings,
|
|
595
|
-
radar: RadarWatcheeSettings,
|
|
596
|
-
community: CommunityWatcheeSettings
|
|
597
|
-
}).strict();
|
|
598
|
-
var WATCHEE_SETTINGS_FILENAME = "watchees.json";
|
|
599
|
-
var SENT_EVENTS_FILENAME = "sent-events.json";
|
|
600
|
-
var WATCHER_HOME_ENV = "GLIMMERVOID_WATCHER_HOME";
|
|
601
609
|
// server/github/core/github-rate-limit-core.ts
|
|
602
610
|
var RateLimitResource = z.object({
|
|
603
611
|
remaining: z.number(),
|
|
@@ -7724,8 +7732,8 @@ function parseCommunityState(raw, warn) {
|
|
|
7724
7732
|
function watcherHomeDir(env = process.env) {
|
|
7725
7733
|
return env["GLIMMERVOID_WATCHER_HOME"] || path.join(glimmervoidHomeDir(os.homedir(), env), "watcher");
|
|
7726
7734
|
}
|
|
7727
|
-
async function writeWatcheeSettings(watcherHome,
|
|
7728
|
-
await writeJsonAtomic(path.join(watcherHome, WATCHEE_SETTINGS_FILENAME),
|
|
7735
|
+
async function writeWatcheeSettings(watcherHome, reply) {
|
|
7736
|
+
await writeJsonAtomic(path.join(watcherHome, WATCHEE_SETTINGS_FILENAME), WatcheeSettingsReply.parse(reply), {
|
|
7729
7737
|
mode: 384,
|
|
7730
7738
|
enforceMode: true,
|
|
7731
7739
|
mkdir: true
|
|
@@ -7738,14 +7746,14 @@ async function readWatcheeSettings(watcherHome) {
|
|
|
7738
7746
|
ok: false,
|
|
7739
7747
|
reason: `cannot read ${settingsPath}: ${errorMessage(text)}`
|
|
7740
7748
|
};
|
|
7741
|
-
const parsed =
|
|
7749
|
+
const parsed = WatcheeSettingsReply.safeParse(parseJsonOrUndefined(text));
|
|
7742
7750
|
if (!parsed.success) return {
|
|
7743
7751
|
ok: false,
|
|
7744
7752
|
reason: `${settingsPath} is malformed`
|
|
7745
7753
|
};
|
|
7746
7754
|
return {
|
|
7747
7755
|
ok: true,
|
|
7748
|
-
|
|
7756
|
+
reply: parsed.data
|
|
7749
7757
|
};
|
|
7750
7758
|
}
|
|
7751
7759
|
function parseJsonOrUndefined(text) {
|
|
@@ -7769,4 +7777,4 @@ function createWatcheeFileStore(watcherHome) {
|
|
|
7769
7777
|
})
|
|
7770
7778
|
};
|
|
7771
7779
|
}
|
|
7772
|
-
export { TRAFFIC_KEY as $, withAllowRules as $a, projectParentDirs as $i, HUNK_HEADER as $n, resumeTimeoutMs as $r, runGit as $t, discordItemsFromRows as A, parseThreadJudgeResult as Aa, claimExpiredPendingFixes as Ai, mergeAttemptKey as An, isSameGithubReviews as Ar, workflowSpawnQueueKey as At, pendingEntries as B, CLOSED_LANE_ACCESS_CONFIG as Ba, investigationTrigger as Bi, readMyPrsFeatureSettings as Bn, prBaseRef as Br, issuesListingErrors as Bt, admitPendingItems as C, THREAD_JUDGE_BACKOFF_MS as Ca, RADAR_UNTRUSTED_ITEM_MAX_CHARS as Ci, keepMergeableFixesToCancel as Cn, errorDraft as Cr, withOwnPostedComment as Ct, communityGate as D, buildThreadJudgeRequest as Da, belowMinimumInvestigationChange as Di, keepMergeablePushArgs as Dn, hasViewerReviewedAt as Dr, workflowSessionLimit as Dt, buildJudgeRequest as E, answeredViewerThreads as Ea, approvedFixSessionPrompt as Ei, keepMergeablePrompt as En, githubReviewsFrom as Er, workflowRepoWatchNames as Et, forumItemsFromRows as F, UNTRUSTED_PAYLOAD_FILENAME as Fa, decideFixHandoff as Fi, myPrsStatus as Fn, orgSearchPlans as Fr, ISSUES_STATE_FILENAME as Ft, requeueInterruptedRuns as G, findPosthogServer as Ga, nextState as Gi, toMyPrsWireStatus as Gn, priorReviewFor as Gr, mergeIssues as Gt, readCommunitySettings as H, buildLanePermissions as Ha, issueKey as Hi, shouldRebaseMyPr as Hn, prKey as Hr, issuesRepoPaths as Ht, forumQuery as I, UNTRUSTED_PREAMBLE as Ia, decideIssueAction as Ii, prunedFailedAutoRebaseAttempts as In, parseFindingLine as Ir, emptyIssuesState as It, shownEntries as J, laneAccessConfigOf as Ja, normalizePrTitle as Ji, withStageSince as Jn, readyDraft as Jr, withListedPullRequests as Jt, selectRuns as K, kimiLaneMcpPosture as Ka, normalizeJobMode as Ki, truncatedSearchNote as Kn, reReviewResult as Kr, pruneIssueSessionLinks as Kt, markRunning as L, UNTRUSTED_REF_MAX_CHARS as La, decideJobMode as Li, prunedKeepMergeableState as Ln, parsePostingPlan as Lr, issuesCachedSourcesGate as Lt, draftNotificationText as M, shouldJudgeThread as Ma, classifyIssueChange as Mi, mergeQueuePrsToMerge as Mn, markDraftStale as Mr, workflowsShouldStart as Mt, emptyCommunityState as N, threadJudgePatch as Na, dailyVolumeQuery as Ni, mergedSinceDate as Nn, nextDraftStatus as Nr, CLOSED_ISSUE_HOLD_MS as Nt, communitySessionPrompt as O, hasPresentableThreads as Oa, buildInvestigationRecord as Oi, keepMergeablePushTarget as On, invalidComments as Or, workflowSessionName as Ot, entryFromRun as P, viewerThreadTally as Pa, dailyVolumeSeries as Pi, myPrsShouldStart as Pn, notMineDraft as Pr, ISSUES_LANE_ID as Pt, posthogDetectFailure as Q, readOnlyGitAllowRules as Qa, planInvestigations as Qi, DEFAULT_REVIEWER as Qn, resumeDecision as Qr, runGh as Qt, parseCommunityState as R, UntrustedPayload as Ra, decideVanishedEntry as Ri, prunedMergeQueueKeys as Rn, parseReviewReport as Rr, issuesLinkedPrKeys as Rt, RUN_TIMEOUT_SECONDS as S, selectionArgs as Sa, RADAR_RESULT_FILENAME as Si, keepMergeableClaudeArgs as Sn, earlierReviewToKeep as Sr, watchedWorkflowRepos as St, buildCommunityRequest as T, THREAD_PLACEHOLDER_ERROR as Ta, appendInvestigation as Ti, keepMergeablePermissions as Tn, githubRepoSlugFromRemote as Tr, workflowPrFromGithubPr as Tt, readPosthogConnection as U, codexLaneMcpPosture as Ua, issueUrl as Ui, sortedMyPrs as Un, prSessionName as Ur, issuesSettingsGate as Ut, prunedState as V, LANE_CONFIG_EDIT_DENY_RULES as Va, isAbsolutePathish as Vi, shouldFixMergeability as Vn, prHeadRef as Vr, issuesListingSourceKey as Vt, readTelegramTarget as W, codexMcpServers as Wa, markInvestigationArchived as Wi, stampStageSince as Wn, prSessionPrompt as Wr, issuesStatus as Wt, POSTHOG_API_KEY_ENV as X, laneMcpConfig as Xa, pickDirectoryForProjectName as Xi, myPrMergeRefusal as Xn, remoteMatchesGithubRepo as Xr, gitCommandFailure as Xt, withPendingItems as Y, laneAccessEnvBlocker as Ya, pendingFixesDropped as Yi, myPrFromGithubPr as Yn, remergeGitEnvPrefix as Yr, createPrGh as Yt, createWatcheePosthog as Z, laneMcpPosture as Za, pingFor as Zi, ASKED_FOR_FETCH_GRACE_MS as Zn, restoreDraftAtReviewedHead as Zr, runCommand as Zt, JUDGE_RESULT_FILENAME as _, cleanHomeArgs as _a, INVESTIGATIONS_KEY as _i, heldOrListedPr as _n,
|
|
7780
|
+
export { TRAFFIC_KEY as $, withAllowRules as $a, projectParentDirs as $i, HUNK_HEADER as $n, resumeTimeoutMs as $r, runGit as $t, discordItemsFromRows as A, parseThreadJudgeResult as Aa, claimExpiredPendingFixes as Ai, mergeAttemptKey as An, isSameGithubReviews as Ar, workflowSpawnQueueKey as At, pendingEntries as B, CLOSED_LANE_ACCESS_CONFIG as Ba, investigationTrigger as Bi, readMyPrsFeatureSettings as Bn, prBaseRef as Br, issuesListingErrors as Bt, admitPendingItems as C, THREAD_JUDGE_BACKOFF_MS as Ca, RADAR_UNTRUSTED_ITEM_MAX_CHARS as Ci, keepMergeableFixesToCancel as Cn, isWatcherJobKind as Co, errorDraft as Cr, withOwnPostedComment as Ct, communityGate as D, buildThreadJudgeRequest as Da, belowMinimumInvestigationChange as Di, keepMergeablePushArgs as Dn, hasViewerReviewedAt as Dr, workflowSessionLimit as Dt, buildJudgeRequest as E, answeredViewerThreads as Ea, approvedFixSessionPrompt as Ei, keepMergeablePrompt as En, githubReviewsFrom as Er, workflowRepoWatchNames as Et, forumItemsFromRows as F, UNTRUSTED_PAYLOAD_FILENAME as Fa, decideFixHandoff as Fi, myPrsStatus as Fn, orgSearchPlans as Fr, ISSUES_STATE_FILENAME as Ft, requeueInterruptedRuns as G, findPosthogServer as Ga, nextState as Gi, toMyPrsWireStatus as Gn, priorReviewFor as Gr, mergeIssues as Gt, readCommunitySettings as H, buildLanePermissions as Ha, issueKey as Hi, shouldRebaseMyPr as Hn, prKey as Hr, issuesRepoPaths as Ht, forumQuery as I, UNTRUSTED_PREAMBLE as Ia, decideIssueAction as Ii, prunedFailedAutoRebaseAttempts as In, parseFindingLine as Ir, emptyIssuesState as It, shownEntries as J, laneAccessConfigOf as Ja, normalizePrTitle as Ji, withStageSince as Jn, readyDraft as Jr, withListedPullRequests as Jt, selectRuns as K, kimiLaneMcpPosture as Ka, normalizeJobMode as Ki, truncatedSearchNote as Kn, reReviewResult as Kr, pruneIssueSessionLinks as Kt, markRunning as L, UNTRUSTED_REF_MAX_CHARS as La, decideJobMode as Li, prunedKeepMergeableState as Ln, parsePostingPlan as Lr, issuesCachedSourcesGate as Lt, draftNotificationText as M, shouldJudgeThread as Ma, classifyIssueChange as Mi, mergeQueuePrsToMerge as Mn, markDraftStale as Mr, workflowsShouldStart as Mt, emptyCommunityState as N, threadJudgePatch as Na, dailyVolumeQuery as Ni, mergedSinceDate as Nn, nextDraftStatus as Nr, CLOSED_ISSUE_HOLD_MS as Nt, communitySessionPrompt as O, hasPresentableThreads as Oa, buildInvestigationRecord as Oi, keepMergeablePushTarget as On, invalidComments as Or, workflowSessionName as Ot, entryFromRun as P, viewerThreadTally as Pa, dailyVolumeSeries as Pi, myPrsShouldStart as Pn, notMineDraft as Pr, ISSUES_LANE_ID as Pt, posthogDetectFailure as Q, readOnlyGitAllowRules as Qa, planInvestigations as Qi, DEFAULT_REVIEWER as Qn, resumeDecision as Qr, runGh as Qt, parseCommunityState as R, UntrustedPayload as Ra, decideVanishedEntry as Ri, prunedMergeQueueKeys as Rn, parseReviewReport as Rr, issuesLinkedPrKeys as Rt, RUN_TIMEOUT_SECONDS as S, selectionArgs as Sa, RADAR_RESULT_FILENAME as Si, keepMergeableClaudeArgs as Sn, WatcherJobEnvelope as So, earlierReviewToKeep as Sr, watchedWorkflowRepos as St, buildCommunityRequest as T, THREAD_PLACEHOLDER_ERROR as Ta, appendInvestigation as Ti, keepMergeablePermissions as Tn, githubRepoSlugFromRemote as Tr, workflowPrFromGithubPr as Tt, readPosthogConnection as U, codexLaneMcpPosture as Ua, issueUrl as Ui, sortedMyPrs as Un, prSessionName as Ur, issuesSettingsGate as Ut, prunedState as V, LANE_CONFIG_EDIT_DENY_RULES as Va, isAbsolutePathish as Vi, shouldFixMergeability as Vn, prHeadRef as Vr, issuesListingSourceKey as Vt, readTelegramTarget as W, codexMcpServers as Wa, markInvestigationArchived as Wi, stampStageSince as Wn, prSessionPrompt as Wr, issuesStatus as Wt, POSTHOG_API_KEY_ENV as X, laneMcpConfig as Xa, pickDirectoryForProjectName as Xi, myPrMergeRefusal as Xn, remoteMatchesGithubRepo as Xr, gitCommandFailure as Xt, withPendingItems as Y, laneAccessEnvBlocker as Ya, pendingFixesDropped as Yi, myPrFromGithubPr as Yn, remergeGitEnvPrefix as Yr, createPrGh as Yt, createWatcheePosthog as Z, laneMcpPosture as Za, pingFor as Zi, ASKED_FOR_FETCH_GRACE_MS as Zn, restoreDraftAtReviewedHead as Zr, runCommand as Zt, JUDGE_RESULT_FILENAME as _, cleanHomeArgs as _a, INVESTIGATIONS_KEY as _i, heldOrListedPr as _n, WatcheeSettingsReply as _o, canPost as _r, hasFreeWorkflowSessionSlot as _t, writeWatcheeSettings as a, sanitizeSessionName as aa, sectionAfter as ai, MY_PRS_FIX_CHECKOUT_DIRNAME as an, classifyInboxReply as ao, REVIEW_PROMPT_FILENAME as ar, extractRows as at, MAX_BODY_CHARS as b, parseCodexModels as ba, RADAR_EXCEPTION_EVENTS_QUERY as bi, isMovedBranchPushRejection as bn, WATCHER_JOB_PAYLOADS as bo, draftAfter as br, nextListedRepos as bt, COMMUNITY_POSTING_FILENAME as c, summaryLineFromReportText as ca, shouldAutoReview as ci, MY_PRS_HELD_WATCH_OWNER as cn, describeRefusal as co, REVIEW_TIMEOUT_SECONDS as cr, WORKFLOWS_LANE_ID as ct, COMMUNITY_STATE_FILENAME as d, underlyingInvestigationChange as da, teamReviewStatus as di, MyPrsLaneState as dn, restartDelayMs as do, TEAM_REVIEW_STATE_FILENAME as dr, WORKFLOW_NOTIFY_CATEGORY as dt, pruneInvestigations as ea, reviewAttemptsAfter as ei, createGithubStorePoller as en, withLaneAccessRules as eo, PROGRESS_EMIT_INTERVAL_MS as er, computeBaseline as et, COMMUNITY_UNTRUSTED_SOURCE as f, validateInvestigationId as fa, triagePr as fi, autoRebaseAttemptKey as fn, watcherChildInboxUrl as fo, absolutePathReadRule as fr, WORKFLOW_PROMPT_FILENAME as ft, JUDGE_PROMPT_FILENAME as g, choiceSelection as ga, FIX_VERDICTS as gi, emptyMyPrsLaneState as gn, WATCHER_HOME_ENV as go, buildReviewPrompt as gr, enabledWorkflowRules as gt, JUDGE_MODEL as h, readGithubTeams as ha, withoutControlCharacters as hi, currentKeepMergeableAttempt as hn, WATCHEE_SETTINGS_PATH as ho, askedForRefusal as hr, emptyWorkflowsState as ht, watcherHomeDir as i, resolvePosthogHost as ia, reviewerFor as ii, MY_PRS_FIX_BOOTSTRAP_PROMPT as in, secondaryRateLimitWaitMs as io, REVIEW_POSTING_FILENAME as ir, createPosthogApi as it, discordQuery as j, shouldAutoResolveThread as ja, claimPendingFix as ji, mergeQueuePositions as jn, isUnreviewedDraft as jr, workflowTeamName as jt, discordDropSummary as k, isThreadPlaceholderDraft as ka, buildIssueSessionPrompt as ki, keepMergeableTimeoutSeconds as kn, isPostableStatus as kr, workflowSpawnPrompt as kt, COMMUNITY_PROMPT_FILENAME as l, toCount as la, shouldPruneEntry$1 as li, MY_PRS_LANE_ID as ln, nextCrashCount as lo, REVIEW_UNTRUSTED_ITEM_MAX_CHARS as lr, WORKFLOWS_STATE_FILENAME as lt, JUDGE_MESSAGE_CHARS as m, nulSeparatedPaths as ma, fencedUntrusted as mi, consecutiveKeepMergeableAttempts as mn, WATCHEE_SETTINGS_CHANGED_MESSAGE as mo, applyReviewProgress as mr, diffPrEvents as mt, readJsonFileOrUndefined as n, radarUntrustedItems as na, reviewUntrustedItems as ni, isBotAuthor as nn, createLaneRunner as no, REVIEW_AGENT_ADAPTER_ID as nr, shouldRetryTrafficQuery as nt, COMMUNITY_BOOTSTRAP_PROMPT as o, scrubForPaste as oa, selectCandidates as oi, MY_PRS_FIX_PROMPT_FILENAME as on, createPingJob as oo, REVIEW_REPORT_FILENAME as or, normalizeIssues as ot, JUDGE_BOOTSTRAP_PROMPT as p, validateIssueRef as pa, uiFilesOf as pi, autoRebaseRecord as pn, SENT_EVENTS_FILENAME as po, advanceAwakeElapsed as pr, areWorkflowActionsEnabled as pt, shouldNotifyDraft as q, laneAccess as qa, normalizePrBody as qi, withAutoRebase as qn, readTeamReviewSettings as qr, resolveIssuesProjects as qt, readWatcheeSettings as r, resolveIssueProject as ra, reviewerAgentArgs as ri, MY_PRS_FIX_BASE_BRANCH as rn, createTickLoop as ro, REVIEW_BOOTSTRAP_PROMPT as rr, spikeSummaryLine as rt, COMMUNITY_LANE_ID as s, slotDeferredInvestigationChange as sa, sessionLinkedToPr as si, MY_PRS_FIX_WORK_BRANCH as sn, deliveryRetryDelayMs as so, REVIEW_RESUME_PROMPT as sr, parseSpikeIssueIds as st, createWatcheeFileStore as t, radarShouldStart as ta, reviewSnapshotFromGithubPr as ti, githubStoreRateLimitedError as tn, GITHUB_RATE_LIMIT_WINDOW_MS as to, REMERGE_OBJECTS_DIRNAME as tr, decideTrafficSpike as tt, COMMUNITY_REPORT_FILENAME as u, unarchivedInvestigations as ua, startReviewProgress as ui, MY_PRS_STATE_FILENAME as un, parseInboxUrl as uo, TEAM_REVIEW_LANE_ID as ur, WORKFLOW_BOOTSTRAP_PROMPT as ut, JUDGE_TIMEOUT_MS as v, launchArgs as va, JOB_MODES as vi, isFailedAttemptRetryDue as vn, WATCHER_JOBS_PATH as vo, commentableLines as vr, matchRules as vt, applyCommunityAction as w, THREAD_JUDGE_ITEM_MAX_CHARS as wa, RADAR_UNTRUSTED_SOURCE as wi, keepMergeableHandoff as wn, eventForAction as wr, workflowNotification as wt, NOTIFICATION_CATEGORY as x, parseKimiModels as xa, RADAR_REPORT_FILENAME as xi, keepMergeableAttemptKey as xn, WatcherJobAck as xo, draftsNewestFirst as xr, resolveWorkflowsSettings as xt, JUDGE_UNTRUSTED_SOURCE as y, parseClaudeInitialize as ya, PENDING_FIX_TTL_MS as yi, isHeadPushedByKeepMergeable as yn, WATCHER_JOB_MAX_BYTES as yo, diffHeaderPath as yr, mergeWorkflowsUpdateOverStored as yt, parseJudgeResult as z, ACCEPT_EDITS_MODE as za, fixDetailLine as zi, pushFailureReason as zn, postedReviewBody as zr, issuesListingBatches as zt };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dialogs-
|
|
2
|
-
import{d as e,f as t}from"./control-ws-B-u3CrP1.js";import{nn as n}from"./dom-helpers-B2AAV11d.js";import{M as r}from"./button-CsK4svce.js";import{a as i}from"./modal-DuqnpyQQ.js";import{a,d as o,o as s}from"./card-registry-B_2plQVU.js";import{n as c}from"./ui-state-core-Nssh-6QJ.js";import{t as ee}from"./preload-helper-BLdHbfdN.js";import{n as te,o as l,s as u,t as d}from"./action-status-1VJy77hN.js";import{K as f,l as ne}from"./ui-prefs-Cks30Frz.js";import{t as p}from"./card-actions-BA7DXN4o.js";function m(e,t=`explicit-state`){let r=t===`dormant-fallback`?e||n.DORMANT:e;return r===n.DORMANT?`start-session`:r===n.COMPLETE?`dismiss`:null}function h({previousState:e,nextState:t,isPhoneLayout:r,isDocumentVisible:i,isDocumentFocused:a,isActiveViewer:o,hasFocusInsideTerminal:s}){return t!==n.COMPLETE||!e||e===n.COMPLETE||!i?!1:r?o:a&&s}function g(e,t){if(!e)return null;let r=t.get(e);return!r||(r.currentState||n.DORMANT)===n.DORMANT?null:e}function _(e,t){let n=new Set(t);if(!n.has(e))return e;for(let t=2;t<1e3;t++){let r=`${e} (${t})`;if(!n.has(r))return r}return`${e} (${Date.now()})`}function re(){let e=[];for(let[,t]of s)e.push(t.card.dataset.session??``);return e}function v(e){return _(e??``,re())}function y(){return c.snapshot().selectedSessionId}function b(e){c.dispatch(`selectSession`,e)}function x(e){return c.subscribe((t,n)=>{n.includes(`selectedSessionId`)&&e(t.selectedSessionId)})}var S=new Set,C=!1,w=()=>{};function ie(e){w=e}function T(e){S.add(e),C||(C=!0,requestAnimationFrame(E))}function E(){if(C=!1,S.size===0)return;let e=new Set(S);S.clear(),w(e)}document.addEventListener(`visibilitychange`,()=>{document.hidden||E()});function ae(e){let t=[],n=[],r=n=>e[t[n]??0]??0;e.forEach((e,i)=>{if(e<0)return;let a=0,o=t.length;for(;a<o;){let t=a+o>>1;r(t)<e?a=t+1:o=t}n[i]=a>0?t[a-1]??-1:-1,t[a]=i});let i=new Set,a=t.at(-1)??-1;for(;a>=0;)i.add(a),a=n[a]??-1;return i}function oe(e,t){let n=new Map;Array.from(e.children).forEach((e,t)=>{n.set(e,t)});let r=ae(t.map(e=>n.get(e)??-1)),i=null;for(let n=t.length-1;n>=0;--n){let a=t[n];a&&(r.has(n)||e.insertBefore(a,i),i=a)}}function se(e,t){e.textContent!==t&&(e.textContent=t)}function ce(e,t){e.hidden!==t&&(e.hidden=t)}function le(e,t,n){e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ue(e,t,n){e.dataset[t]!==n&&(e.dataset[t]=n)}function de(e,t=`explicit-state`){let n=s.get(e);if(!n)return null;let r=m(n.currentState,t);return r&&p(n,{type:r,id:e}),n}function D(e,{rememberFocus:t=!0}={}){b(e),t&&f(e)}function fe(){return g(ne(),s)}var O=new Set;function pe(e=a){let t=[...s].filter(([e])=>!O.has(e));return o(t,e).map(e=>Y.has(e.id)?{...e,state:J,unseenOutcome:null}:e)}function k(t,n){let i=s.get(t);return i?p(i,n):e(n)?!0:(l({source:`Session action`,sessionId:t,message:`${r} Try the action again once the header shows Connected.`}),!1)}var A=`Add session`;function j(e){return e.type===`add-session-result`&&e.error?e.error:e.type===`error`?e.message:`The session was not added.`}var M=!1;function N(e){M||(M=!0,ee(()=>import(`./dialogs-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dialogs-DUKd951O.js","assets/action-status-1VJy77hN.js","assets/button-CsK4svce.js","assets/zod-CpuTgBSW.js","assets/dom-helpers-B2AAV11d.js","assets/control-ws-B-u3CrP1.js","assets/index-BH0EN62M.js","assets/modal-DuqnpyQQ.js","assets/session-row-BgXMPN12.js","assets/card-registry-B_2plQVU.js","assets/menu-CHihig9E.js","assets/roving-keys-core-BDobx2It.js","assets/agent-mark-CvBp2Vrz.js","assets/card-actions-BA7DXN4o.js","assets/session-tick-BwpAozfP.js","assets/pr-status-icon-BOmgCmJj.js","assets/ui-state-core-Nssh-6QJ.js","assets/preload-helper-BLdHbfdN.js","assets/local-store-CVQ5ByvB.js","assets/ui-prefs-Cks30Frz.js","assets/alert-sound-core-CmJhj4qI.js","assets/index-D3AU6DTP.css","assets/repo-roots-adder-D8RglW4e.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{d as e,f as t}from"./control-ws-B-u3CrP1.js";import{nn as n}from"./dom-helpers-B2AAV11d.js";import{M as r}from"./button-CsK4svce.js";import{a as i}from"./modal-DuqnpyQQ.js";import{a,d as o,o as s}from"./card-registry-B_2plQVU.js";import{n as c}from"./ui-state-core-Nssh-6QJ.js";import{t as ee}from"./preload-helper-BLdHbfdN.js";import{n as te,o as l,s as u,t as d}from"./action-status-1VJy77hN.js";import{K as f,l as ne}from"./ui-prefs-Cks30Frz.js";import{t as p}from"./card-actions-BA7DXN4o.js";function m(e,t=`explicit-state`){let r=t===`dormant-fallback`?e||n.DORMANT:e;return r===n.DORMANT?`start-session`:r===n.COMPLETE?`dismiss`:null}function h({previousState:e,nextState:t,isPhoneLayout:r,isDocumentVisible:i,isDocumentFocused:a,isActiveViewer:o,hasFocusInsideTerminal:s}){return t!==n.COMPLETE||!e||e===n.COMPLETE||!i?!1:r?o:a&&s}function g(e,t){if(!e)return null;let r=t.get(e);return!r||(r.currentState||n.DORMANT)===n.DORMANT?null:e}function _(e,t){let n=new Set(t);if(!n.has(e))return e;for(let t=2;t<1e3;t++){let r=`${e} (${t})`;if(!n.has(r))return r}return`${e} (${Date.now()})`}function re(){let e=[];for(let[,t]of s)e.push(t.card.dataset.session??``);return e}function v(e){return _(e??``,re())}function y(){return c.snapshot().selectedSessionId}function b(e){c.dispatch(`selectSession`,e)}function x(e){return c.subscribe((t,n)=>{n.includes(`selectedSessionId`)&&e(t.selectedSessionId)})}var S=new Set,C=!1,w=()=>{};function ie(e){w=e}function T(e){S.add(e),C||(C=!0,requestAnimationFrame(E))}function E(){if(C=!1,S.size===0)return;let e=new Set(S);S.clear(),w(e)}document.addEventListener(`visibilitychange`,()=>{document.hidden||E()});function ae(e){let t=[],n=[],r=n=>e[t[n]??0]??0;e.forEach((e,i)=>{if(e<0)return;let a=0,o=t.length;for(;a<o;){let t=a+o>>1;r(t)<e?a=t+1:o=t}n[i]=a>0?t[a-1]??-1:-1,t[a]=i});let i=new Set,a=t.at(-1)??-1;for(;a>=0;)i.add(a),a=n[a]??-1;return i}function oe(e,t){let n=new Map;Array.from(e.children).forEach((e,t)=>{n.set(e,t)});let r=ae(t.map(e=>n.get(e)??-1)),i=null;for(let n=t.length-1;n>=0;--n){let a=t[n];a&&(r.has(n)||e.insertBefore(a,i),i=a)}}function se(e,t){e.textContent!==t&&(e.textContent=t)}function ce(e,t){e.hidden!==t&&(e.hidden=t)}function le(e,t,n){e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ue(e,t,n){e.dataset[t]!==n&&(e.dataset[t]=n)}function de(e,t=`explicit-state`){let n=s.get(e);if(!n)return null;let r=m(n.currentState,t);return r&&p(n,{type:r,id:e}),n}function D(e,{rememberFocus:t=!0}={}){b(e),t&&f(e)}function fe(){return g(ne(),s)}var O=new Set;function pe(e=a){let t=[...s].filter(([e])=>!O.has(e));return o(t,e).map(e=>Y.has(e.id)?{...e,state:J,unseenOutcome:null}:e)}function k(t,n){let i=s.get(t);return i?p(i,n):e(n)?!0:(l({source:`Session action`,sessionId:t,message:`${r} Try the action again once the header shows Connected.`}),!1)}var A=`Add session`;function j(e){return e.type===`add-session-result`&&e.error?e.error:e.type===`error`?e.message:`The session was not added.`}var M=!1;function N(e){M||(M=!0,ee(()=>import(`./dialogs-DUKd951O.js`).then(t=>{M=!1,e(t)},()=>{M=!1,l({source:A,message:`The Add session dialog did not load. Reload the page, then add the session again.`})}),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])))}function P(){N(e=>e.createAddSessionDialog())}var F=D;function I(e){F=e}function L(e){te(A),e&&F(e)}async function R(e,n){try{let r=v(n),i=await t(`add-session`,{name:r,path:e},{timeoutMs:d});if(i.type===`add-session-result`&&i.ok){L(i.sessionId);return}l({source:A,message:j(i)})}catch(e){l({source:A,message:`The session was not added: ${u(e,d)} Add it again once the server answers.`})}}function z(e,t){e&&R(e,t)}async function B(e){try{let n=await t(`quick-session`,{id:e},{timeoutMs:d});if(n.type===`add-session-result`&&n.ok){L(n.sessionId);return}l({source:A,sessionId:e,message:j(n)})}catch(t){l({source:A,sessionId:e,message:`The session was not added: ${u(t,d)} Add it again once the server answers.`})}}function me(e){B(e)}var V=39e5,H=`Remove session`;function U(e,t,n){n.canDiscardWork?i({title:`Remove Session`,message:n.error??`Remove session "${a(e)}"?`,confirmLabel:`Remove`,danger:!0,onConfirm:()=>{K(e,t,!0,(n.keptPaths??[]).map(e=>e.path))}}):l({source:H,sessionId:t,message:`"${a(e)}" was not removed: ${n.error??`the server gave no reason`}. Try Remove again from its actions menu.`})}function W(e,t,n,r){l({source:H,sessionId:t,message:`"${a(e)}" was not removed: ${u(n,r)} Try Remove again from its actions menu.`})}function G(e){O.delete(e),T(e)}async function K(e,n,r,i=[]){O.add(n),T(n);try{let a=await t(`remove-session`,{id:n,discardWork:r,confirmedKeptPaths:i},{timeoutMs:V});if(a.type===`remove-session-result`&&a.ok||(G(n),a.type!==`remove-session-result`))return;U(e,n,a)}catch(t){G(n),W(e,n,t,V)}}var q=8e3,J=`CLOSING`,Y=new Map;function he(e){return Y.get(e)?.startedAt??null}function ge(e){return s.has(e)&&!Y.has(e)&&!O.has(e)}function X(e){let t=Y.get(e);return t?(window.clearTimeout(t.timer),Y.delete(e),T(e),t):null}function _e(e){if(!X(e))return;let t=s.get(e);t&&K(t,e,!1)}function ve(e){if(Y.has(e))return;let t=window.setTimeout(()=>_e(e),q);Y.set(e,{timer:t,wasOpen:y()===e,startedAt:performance.now()}),T(e)}function Z(e){let t=X(e);return t?(t.wasOpen&&s.has(e)&&F(e),!0):!1}function ye(){let e=[...Y.keys()].at(-1);return e!==void 0&&Z(e)}async function be(e,n){try{let r=await t(`remove-session`,{id:n,checkOnly:!0},{timeoutMs:d});if(r.type!==`remove-session-result`)return;if(r.ok){ve(n);return}U(e,n,r)}catch(t){W(e,n,t,d)}}function xe(e){let t=s.get(e);t&&!Y.has(e)&&be(t,e)}function Se(e){let t=s.get(e);t&&K(t,e,!1)}var Q=`claude-code`,Ce=`shell`;function $(e){let t=(Array.isArray(e)?e:[]).filter(e=>e?.resolvable&&typeof e.id==`string`&&e.id).map(e=>{let t=String(e.id);return{id:t,label:typeof e.label==`string`&&e.label?e.label:t,isHidden:e.hidden===!0&&t!==`claude-code`}}),n=t.filter(e=>!e.isHidden),r=(n.length>0?n:t).map(({id:e,label:t})=>({id:e,label:t})),i=r.some(e=>e.id===`claude-code`)?Q:r.length>0?r[0].id:Q;return{show:r.length>1,options:r,selectedId:i}}var we=`No supported agent CLI was found on the PATH Glimmervoid runs with. Install Claude Code (or another supported agent), make sure its command is on that PATH, then run glimmervoid doctor to confirm.`;function Te(e){let t=typeof e==`object`&&e?e:null;return t===null||!Array.isArray(t.agents)||t.error||$(t.agents).options.length>0?{canSpawn:!0,guidance:``}:{canSpawn:!1,guidance:we}}export{se as A,Z as C,le as D,ie as E,h as F,x as M,b as N,ue as O,v as P,ye as S,oe as T,L as _,J as a,I as b,fe as c,he as d,z as f,Se as g,xe as h,$ as i,y as j,ce as k,ge as l,de as m,Ce as n,q as o,pe as p,Te as r,j as s,Q as t,P as u,D as v,T as w,me as x,k as y};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as e}from"./dom-helpers-B2AAV11d.js";import"./agent-core-CJHlZAfn.js";function t(e){return e instanceof Error?e.message:String(e)}function n(e,t){return Array.from(e).slice(0,t).join(``)}var r=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 i(t,n,i=null){let a=n===`shell`?null:n;if(t.dataset.agent===(a??``))return;if(t.dataset.agent=a??``,t.hidden=a===null,a===null){t.replaceChildren();return}let o=r.get(a);t.toggleAttribute(`data-monogram`,o===void 0),o===void 0?t.textContent=e(i??a):t.innerHTML=o}export{t as n,n as r,i as t};
|
|
1
|
+
import{x as e}from"./dom-helpers-B2AAV11d.js";import"./agent-core-BBakMR_x.js";function t(e){return e instanceof Error?e.message:String(e)}function n(e,t){return Array.from(e).slice(0,t).join(``)}var r=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 i(t,n,i=null){let a=n===`shell`?null:n;if(t.dataset.agent===(a??``))return;if(t.dataset.agent=a??``,t.hidden=a===null,a===null){t.replaceChildren();return}let o=r.get(a);t.toggleAttribute(`data-monogram`,o===void 0),o===void 0?t.textContent=e(i??a):t.innerHTML=o}export{t as n,n as r,i as t};
|
|
Binary file
|