github-router 0.3.338 → 0.3.340
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/aic-statusline-settings-Chf-IT45.js +137 -0
- package/dist/aic-statusline-settings-Chf-IT45.js.map +1 -0
- package/dist/{attribution-settings-CeaG4eQa.js → attribution-settings-BTfKm-RU.js} +14 -14
- package/dist/attribution-settings-BTfKm-RU.js.map +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-CjsxXwv2.js → claude-DUpp7B4X.js} +11 -141
- package/dist/claude-DUpp7B4X.js.map +1 -0
- package/dist/{codex-CjZXP_n6.js → codex-Xn1xsoOw.js} +4 -4
- package/dist/{codex-CjZXP_n6.js.map → codex-Xn1xsoOw.js.map} +1 -1
- package/dist/engine-DvGukHty.js +2 -0
- package/dist/{gate-discovery-DGBZpoS7.js → gate-discovery-BIBgN6mA.js} +2 -2
- package/dist/{gate-discovery-DGBZpoS7.js.map → gate-discovery-BIBgN6mA.js.map} +1 -1
- package/dist/{internal-stop-hook-BgtHofxp.js → internal-stop-hook-Dyn0fRpZ.js} +2 -2
- package/dist/{internal-stop-hook-BgtHofxp.js.map → internal-stop-hook-Dyn0fRpZ.js.map} +1 -1
- package/dist/main.js +6 -5
- package/dist/main.js.map +1 -1
- package/dist/{peer-mcp-personas-qQgzZDPP.js → peer-mcp-personas-Dt0VRKYz.js} +26 -16
- package/dist/{peer-mcp-personas-qQgzZDPP.js.map → peer-mcp-personas-Dt0VRKYz.js.map} +1 -1
- package/dist/pi-DwfSuefC.js +1175 -0
- package/dist/pi-DwfSuefC.js.map +1 -0
- package/dist/{provision-CjIatImk.js → provision-D_aHUCXt.js} +11 -2
- package/dist/provision-D_aHUCXt.js.map +1 -0
- package/dist/{serve-BM6x_Cqs.js → serve-DWL5kmB_.js} +5 -5
- package/dist/{serve-BM6x_Cqs.js.map → serve-DWL5kmB_.js.map} +1 -1
- package/dist/{server-setup-M0PHRPjd.js → server-setup-UWugox0I.js} +109 -53
- package/dist/server-setup-UWugox0I.js.map +1 -0
- package/dist/{start-BWEckTMU.js → start-4OTehsYq.js} +3 -3
- package/dist/{start-BWEckTMU.js.map → start-4OTehsYq.js.map} +1 -1
- package/package.json +1 -1
- package/dist/attribution-settings-CeaG4eQa.js.map +0 -1
- package/dist/claude-CjsxXwv2.js.map +0 -1
- package/dist/engine-cNHuW0j7.js +0 -2
- package/dist/provision-CjIatImk.js.map +0 -1
- package/dist/server-setup-M0PHRPjd.js.map +0 -1
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { t as buildSelfCommand } from "./self-invocation-DIUyoRgL.js";
|
|
2
|
+
import fs from "node:fs/promises";
|
|
3
|
+
//#region src/lib/aic-statusline-settings.ts
|
|
4
|
+
/**
|
|
5
|
+
* Claude Code `statusLine` injection for the per-session AIC total + rich
|
|
6
|
+
* default session line.
|
|
7
|
+
*
|
|
8
|
+
* `github-router claude` writes `{ statusLine: { type: "command", command } }`
|
|
9
|
+
* into the mirrored settings.json so the status bar shows
|
|
10
|
+
* `[AIC 12.42] [####------] 42% | model | dir (branch) | ...`,
|
|
11
|
+
* updating as the ledger file grows. The command itself
|
|
12
|
+
* (`internal-aic-status`) reads the ledger path from `GH_ROUTER_AIC_LEDGER`
|
|
13
|
+
* in the spawned child's env — never a path baked into settings — so the
|
|
14
|
+
* same mirror mechanics work for concurrent launches. AIC is pinned: it
|
|
15
|
+
* renders even when the terminal is too narrow for any other segment.
|
|
16
|
+
*
|
|
17
|
+
* Standard launches use wrap-don't-clobber: when the user's own config
|
|
18
|
+
* already defines `statusLine` as a `{type:"command", command:string}`
|
|
19
|
+
* shape, that command is preserved via `GH_ROUTER_AIC_USER_STATUSLINE`
|
|
20
|
+
* (set by the caller from the returned `userCommand`) and the hook
|
|
21
|
+
* composes one line: `[AIC x.xx] <user line>`. Any other pre-existing
|
|
22
|
+
* `statusLine` shape is left untouched (`reason: "unrecognized"`) rather
|
|
23
|
+
* than risk breaking an exotic config.
|
|
24
|
+
*
|
|
25
|
+
* Pinned launches (fast/cheap/cheap1m/cheapest, `routerWins: true`) run
|
|
26
|
+
* router-provided surfaces only: ANY pre-existing `statusLine` is backed
|
|
27
|
+
* up to a mirror sidecar and replaced with ours (`mode: "forced"`), so the
|
|
28
|
+
* native rich line always renders and the user command never executes.
|
|
29
|
+
*
|
|
30
|
+
* Failure model matches the sibling settings writers: a transient read error
|
|
31
|
+
* or a non-object settings.json throws (never clobber a file we don't
|
|
32
|
+
* understand); the caller wraps this in warn-and-continue so a settings-write
|
|
33
|
+
* hiccup never blocks launch. Writes use a same-directory temp file, mode
|
|
34
|
+
* 0o600, then rename.
|
|
35
|
+
*/
|
|
36
|
+
/** Env var carrying the ledger snapshot path into the spawned child. */
|
|
37
|
+
const AIC_LEDGER_ENV = "GH_ROUTER_AIC_LEDGER";
|
|
38
|
+
/** Env var carrying the user's own statusLine command (wrap mode only). */
|
|
39
|
+
const AIC_USER_STATUSLINE_ENV = "GH_ROUTER_AIC_USER_STATUSLINE";
|
|
40
|
+
function buildAicStatusHookCommand(invocation) {
|
|
41
|
+
return buildSelfCommand(invocation, "internal-aic-status");
|
|
42
|
+
}
|
|
43
|
+
function isCommandStatusLine(value) {
|
|
44
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return false;
|
|
45
|
+
const record = value;
|
|
46
|
+
return record.type === "command" && typeof record.command === "string" && record.command.length > 0;
|
|
47
|
+
}
|
|
48
|
+
async function injectAicStatusLineIntoSettingsFile(settingsPath, statusCommand, opts = {}) {
|
|
49
|
+
let existing = {};
|
|
50
|
+
let raw;
|
|
51
|
+
try {
|
|
52
|
+
raw = await fs.readFile(settingsPath, "utf8");
|
|
53
|
+
} catch (err) {
|
|
54
|
+
if (err.code !== "ENOENT") throw err;
|
|
55
|
+
raw = void 0;
|
|
56
|
+
}
|
|
57
|
+
if (raw !== void 0) {
|
|
58
|
+
const parsed = JSON.parse(raw);
|
|
59
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) existing = parsed;
|
|
60
|
+
else throw new Error(`settings.json at ${settingsPath} is not a JSON object; refusing to overwrite`);
|
|
61
|
+
}
|
|
62
|
+
const current = existing.statusLine;
|
|
63
|
+
if (current !== void 0) {
|
|
64
|
+
if (isCommandStatusLine(current) && current.command.includes("internal-aic-status")) return {
|
|
65
|
+
written: false,
|
|
66
|
+
reason: "already-set"
|
|
67
|
+
};
|
|
68
|
+
if (opts.routerWins) {
|
|
69
|
+
const hadPrevious = true;
|
|
70
|
+
await writeSettingsAtomically(settingsPath, {
|
|
71
|
+
...existing,
|
|
72
|
+
statusLine: {
|
|
73
|
+
type: "command",
|
|
74
|
+
command: statusCommand
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
await writeBackupSidecar(settingsPath, current);
|
|
78
|
+
return {
|
|
79
|
+
written: true,
|
|
80
|
+
mode: "forced",
|
|
81
|
+
hadPrevious
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
if (isCommandStatusLine(current)) {
|
|
85
|
+
const userCommand = current.command;
|
|
86
|
+
await writeSettingsAtomically(settingsPath, {
|
|
87
|
+
...existing,
|
|
88
|
+
statusLine: {
|
|
89
|
+
type: "command",
|
|
90
|
+
command: statusCommand
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
return {
|
|
94
|
+
written: true,
|
|
95
|
+
mode: "wrapped",
|
|
96
|
+
userCommand
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
written: false,
|
|
101
|
+
reason: "unrecognized"
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
await writeSettingsAtomically(settingsPath, {
|
|
105
|
+
...existing,
|
|
106
|
+
statusLine: {
|
|
107
|
+
type: "command",
|
|
108
|
+
command: statusCommand
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
return {
|
|
112
|
+
written: true,
|
|
113
|
+
mode: "injected"
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
async function writeSettingsAtomically(settingsPath, merged) {
|
|
117
|
+
const tmp = `${settingsPath}.${process.pid}.aicstatus.tmp`;
|
|
118
|
+
await fs.writeFile(tmp, `${JSON.stringify(merged, null, 2)}\n`, { mode: 384 });
|
|
119
|
+
await fs.rename(tmp, settingsPath);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Record a replaced `statusLine` value in a mirror sidecar for audit.
|
|
123
|
+
* Mirror-only (same dir as the mirrored settings.json); the operator's
|
|
124
|
+
* real settings are never touched. Best-effort: a backup failure must
|
|
125
|
+
* not fail the injection that already succeeded.
|
|
126
|
+
*/
|
|
127
|
+
async function writeBackupSidecar(settingsPath, previous) {
|
|
128
|
+
const backupPath = `${settingsPath}.aic-statusline-backup.json`;
|
|
129
|
+
const payload = { replacedStatusLine: previous };
|
|
130
|
+
try {
|
|
131
|
+
await fs.writeFile(backupPath, `${JSON.stringify(payload, null, 2)}\n`, { mode: 384 });
|
|
132
|
+
} catch {}
|
|
133
|
+
}
|
|
134
|
+
//#endregion
|
|
135
|
+
export { injectAicStatusLineIntoSettingsFile as i, AIC_USER_STATUSLINE_ENV as n, buildAicStatusHookCommand as r, AIC_LEDGER_ENV as t };
|
|
136
|
+
|
|
137
|
+
//# sourceMappingURL=aic-statusline-settings-Chf-IT45.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aic-statusline-settings-Chf-IT45.js","names":[],"sources":["../src/lib/aic-statusline-settings.ts"],"sourcesContent":["/**\n * Claude Code `statusLine` injection for the per-session AIC total + rich\n * default session line.\n *\n * `github-router claude` writes `{ statusLine: { type: \"command\", command } }`\n * into the mirrored settings.json so the status bar shows\n * `[AIC 12.42] [####------] 42% | model | dir (branch) | ...`,\n * updating as the ledger file grows. The command itself\n * (`internal-aic-status`) reads the ledger path from `GH_ROUTER_AIC_LEDGER`\n * in the spawned child's env — never a path baked into settings — so the\n * same mirror mechanics work for concurrent launches. AIC is pinned: it\n * renders even when the terminal is too narrow for any other segment.\n *\n * Standard launches use wrap-don't-clobber: when the user's own config\n * already defines `statusLine` as a `{type:\"command\", command:string}`\n * shape, that command is preserved via `GH_ROUTER_AIC_USER_STATUSLINE`\n * (set by the caller from the returned `userCommand`) and the hook\n * composes one line: `[AIC x.xx] <user line>`. Any other pre-existing\n * `statusLine` shape is left untouched (`reason: \"unrecognized\"`) rather\n * than risk breaking an exotic config.\n *\n * Pinned launches (fast/cheap/cheap1m/cheapest, `routerWins: true`) run\n * router-provided surfaces only: ANY pre-existing `statusLine` is backed\n * up to a mirror sidecar and replaced with ours (`mode: \"forced\"`), so the\n * native rich line always renders and the user command never executes.\n *\n * Failure model matches the sibling settings writers: a transient read error\n * or a non-object settings.json throws (never clobber a file we don't\n * understand); the caller wraps this in warn-and-continue so a settings-write\n * hiccup never blocks launch. Writes use a same-directory temp file, mode\n * 0o600, then rename.\n */\n\nimport fs from \"node:fs/promises\"\n\nimport type { SelfInvocation } from \"./hook-launcher/self-invocation\"\nimport { buildSelfCommand } from \"./hook-launcher/self-invocation\"\n\n/** Env var carrying the ledger snapshot path into the spawned child. */\nexport const AIC_LEDGER_ENV = \"GH_ROUTER_AIC_LEDGER\"\n/** Env var carrying the user's own statusLine command (wrap mode only). */\nexport const AIC_USER_STATUSLINE_ENV = \"GH_ROUTER_AIC_USER_STATUSLINE\"\n/** Opt-out for the whole injection (mirrors GH_ROUTER_DISABLE_NO_ATTRIBUTION). */\nexport const AIC_STATUSLINE_DISABLE_ENV = \"GH_ROUTER_DISABLE_AIC_STATUSLINE\"\n\nexport function buildAicStatusHookCommand(invocation: SelfInvocation): string {\n return buildSelfCommand(invocation, \"internal-aic-status\")\n}\n\nexport type AicStatuslineInjectionResult =\n | { written: true; mode: \"injected\" | \"wrapped\" | \"forced\"; userCommand?: string; hadPrevious?: boolean }\n | { written: false; reason: \"already-set\" | \"unrecognized\" }\n\nfunction isCommandStatusLine(value: unknown): value is {\n type: string\n command: string\n} {\n if (!value || typeof value !== \"object\" || Array.isArray(value)) return false\n const record = value as Record<string, unknown>\n return (\n record.type === \"command\"\n && typeof record.command === \"string\"\n && record.command.length > 0\n )\n}\n\nexport async function injectAicStatusLineIntoSettingsFile(\n settingsPath: string,\n statusCommand: string,\n opts: { routerWins?: boolean } = {},\n): Promise<AicStatuslineInjectionResult> {\n let existing: Record<string, unknown> = {}\n let raw: string | undefined\n try {\n raw = await fs.readFile(settingsPath, \"utf8\")\n } catch (err) {\n // Never clobber on a transient read error; a missing file starts clean.\n if ((err as NodeJS.ErrnoException).code !== \"ENOENT\") throw err\n raw = undefined\n }\n if (raw !== undefined) {\n // A parse failure means a real file we don't understand: do NOT replace it.\n const parsed: unknown = JSON.parse(raw)\n if (parsed && typeof parsed === \"object\" && !Array.isArray(parsed)) {\n existing = parsed as Record<string, unknown>\n } else {\n throw new Error(\n `settings.json at ${settingsPath} is not a JSON object; refusing to overwrite`,\n )\n }\n }\n\n const current = existing.statusLine\n if (current !== undefined) {\n // Idempotency: a previous injection already points at our hook.\n if (\n isCommandStatusLine(current)\n && current.command.includes(\"internal-aic-status\")\n ) {\n return { written: false, reason: \"already-set\" }\n }\n // Pinned profiles run the router line only: back up whatever was\n // there (command or exotic shape) to a mirror sidecar for audit and\n // replace it. The user command is recorded but never executed.\n if (opts.routerWins) {\n const hadPrevious = true\n const merged = {\n ...existing,\n statusLine: { type: \"command\", command: statusCommand },\n }\n await writeSettingsAtomically(settingsPath, merged)\n await writeBackupSidecar(settingsPath, current)\n return { written: true, mode: \"forced\", hadPrevious }\n }\n // Wrap-don't-clobber: preserve the user's command via env.\n if (isCommandStatusLine(current)) {\n const userCommand = current.command\n const merged = {\n ...existing,\n statusLine: { type: \"command\", command: statusCommand },\n }\n await writeSettingsAtomically(settingsPath, merged)\n return { written: true, mode: \"wrapped\", userCommand }\n }\n return { written: false, reason: \"unrecognized\" }\n }\n\n const merged = {\n ...existing,\n statusLine: { type: \"command\", command: statusCommand },\n }\n await writeSettingsAtomically(settingsPath, merged)\n return { written: true, mode: \"injected\" }\n}\n\nasync function writeSettingsAtomically(\n settingsPath: string,\n merged: Record<string, unknown>,\n): Promise<void> {\n const tmp = `${settingsPath}.${process.pid}.aicstatus.tmp`\n await fs.writeFile(tmp, `${JSON.stringify(merged, null, 2)}\\n`, { mode: 0o600 })\n await fs.rename(tmp, settingsPath)\n}\n\n/**\n * Record a replaced `statusLine` value in a mirror sidecar for audit.\n * Mirror-only (same dir as the mirrored settings.json); the operator's\n * real settings are never touched. Best-effort: a backup failure must\n * not fail the injection that already succeeded.\n */\nasync function writeBackupSidecar(\n settingsPath: string,\n previous: unknown,\n): Promise<void> {\n const backupPath = `${settingsPath}.aic-statusline-backup.json`\n const payload = { replacedStatusLine: previous }\n try {\n await fs.writeFile(backupPath, `${JSON.stringify(payload, null, 2)}\\n`, { mode: 0o600 })\n } catch {\n // Audit-only; the injection itself already landed.\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,iBAAiB;;AAE9B,MAAa,0BAA0B;AAIvC,SAAgB,0BAA0B,YAAoC;CAC5E,OAAO,iBAAiB,YAAY,qBAAqB;AAC3D;AAMA,SAAS,oBAAoB,OAG3B;CACA,IAAI,CAAC,SAAS,OAAO,UAAU,YAAY,MAAM,QAAQ,KAAK,GAAG,OAAO;CACxE,MAAM,SAAS;CACf,OACE,OAAO,SAAS,aACb,OAAO,OAAO,YAAY,YAC1B,OAAO,QAAQ,SAAS;AAE/B;AAEA,eAAsB,oCACpB,cACA,eACA,OAAiC,CAAC,GACK;CACvC,IAAI,WAAoC,CAAC;CACzC,IAAI;CACJ,IAAI;EACF,MAAM,MAAM,GAAG,SAAS,cAAc,MAAM;CAC9C,SAAS,KAAK;EAEZ,IAAK,IAA8B,SAAS,UAAU,MAAM;EAC5D,MAAM,KAAA;CACR;CACA,IAAI,QAAQ,KAAA,GAAW;EAErB,MAAM,SAAkB,KAAK,MAAM,GAAG;EACtC,IAAI,UAAU,OAAO,WAAW,YAAY,CAAC,MAAM,QAAQ,MAAM,GAC/D,WAAW;OAEX,MAAM,IAAI,MACR,oBAAoB,aAAa,6CACnC;CAEJ;CAEA,MAAM,UAAU,SAAS;CACzB,IAAI,YAAY,KAAA,GAAW;EAEzB,IACE,oBAAoB,OAAO,KACxB,QAAQ,QAAQ,SAAS,qBAAqB,GAEjD,OAAO;GAAE,SAAS;GAAO,QAAQ;EAAc;EAKjD,IAAI,KAAK,YAAY;GACnB,MAAM,cAAc;GAKpB,MAAM,wBAAwB,cAAc;IAH1C,GAAG;IACH,YAAY;KAAE,MAAM;KAAW,SAAS;IAAc;GAEP,CAAC;GAClD,MAAM,mBAAmB,cAAc,OAAO;GAC9C,OAAO;IAAE,SAAS;IAAM,MAAM;IAAU;GAAY;EACtD;EAEA,IAAI,oBAAoB,OAAO,GAAG;GAChC,MAAM,cAAc,QAAQ;GAK5B,MAAM,wBAAwB,cAAc;IAH1C,GAAG;IACH,YAAY;KAAE,MAAM;KAAW,SAAS;IAAc;GAEP,CAAC;GAClD,OAAO;IAAE,SAAS;IAAM,MAAM;IAAW;GAAY;EACvD;EACA,OAAO;GAAE,SAAS;GAAO,QAAQ;EAAe;CAClD;CAMA,MAAM,wBAAwB,cAAc;EAH1C,GAAG;EACH,YAAY;GAAE,MAAM;GAAW,SAAS;EAAc;CAEP,CAAC;CAClD,OAAO;EAAE,SAAS;EAAM,MAAM;CAAW;AAC3C;AAEA,eAAe,wBACb,cACA,QACe;CACf,MAAM,MAAM,GAAG,aAAa,GAAG,QAAQ,IAAI;CAC3C,MAAM,GAAG,UAAU,KAAK,GAAG,KAAK,UAAU,QAAQ,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,IAAM,CAAC;CAC/E,MAAM,GAAG,OAAO,KAAK,YAAY;AACnC;;;;;;;AAQA,eAAe,mBACb,cACA,UACe;CACf,MAAM,aAAa,GAAG,aAAa;CACnC,MAAM,UAAU,EAAE,oBAAoB,SAAS;CAC/C,IAAI;EACF,MAAM,GAAG,UAAU,YAAY,GAAG,KAAK,UAAU,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,IAAM,CAAC;CACzF,QAAQ,CAER;AACF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as isUnderClaudeConfigMirror, f as writeRuntimeFileSecure, t as PATHS } from "./paths-CpbTHKeP.js";
|
|
2
|
-
import { S as
|
|
2
|
+
import { C as CHEAP_REVIEWER_ALIAS_ID, S as CHEAP_PLAN_ALIAS_ID, T as MAX_BROWSE_LOW_ALIAS_ID, _ as CHEAPEST_EXPLORE_ALIAS_ID, b as CHEAP_EXPLORE_ALIAS_ID, g as BROWSE_LOW_ALIAS_ID, h as BALANCED_REVIEWER_ALIAS_ID, m as BALANCED_GENERAL_PURPOSE_ALIAS_ID, p as BALANCED_EXPLORE_ALIAS_ID, v as CHEAPEST_GENERAL_PURPOSE_ALIAS_ID, w as LUNA_SCOUT_ALIAS_ID, x as CHEAP_GENERAL_PURPOSE_ALIAS_ID, y as CHEAPEST_REVIEWER_ALIAS_ID } from "./server-setup-UWugox0I.js";
|
|
3
3
|
import { _ as FAST_PROFILE_MODELS, a as BALANCED_PROFILE_NATIVE_EFFORTS, b as FAST_PROFILE_NATIVE_MODELS, i as BALANCED_PROFILE_NATIVE_AGENT_NAMES, v as FAST_PROFILE_NATIVE_AGENT_NAMES, y as FAST_PROFILE_NATIVE_EFFORTS } from "./balanced-profile-contract-C6AgFJNp.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Fn as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, In as CHEAPEST_PROFILE_NATIVE_EFFORTS, On as oneMContextDisabled, Un as CHEAP_PROFILE_NATIVE_AGENT_NAMES, Wn as CHEAP_PROFILE_NATIVE_EFFORTS, a as buildAgentPrompt, cn as DEFINITION_OF_GREATNESS, kn as withOneMSuffix, l as maxPersonasFor, n as MCP_GROUPS, sn as CONDENSED_OPERATING_SEQUENCE, t as GROUP_META, u as personasFor } from "./peer-mcp-personas-Dt0VRKYz.js";
|
|
5
5
|
import { C as MAX_PARALLELISM_RULE, S as MAX_COORDINATOR_PROMPT, T as maxNativePrompt, a as MAX_PROFILE_NATIVE_AGENT_NAMES, i as MAX_PROFILE_MODELS, o as MAX_PROFILE_NATIVE_EFFORTS, s as MAX_PROFILE_NATIVE_MODELS, w as maxNativeDescription, x as MAX_COORDINATOR_DESCRIPTION } from "./max-profile-contract-LTJstj1e.js";
|
|
6
6
|
import "./self-invocation-DIUyoRgL.js";
|
|
7
|
-
import { a as STRIPPED_AUTH_ROUTING_ENV_KEYS, n as buildCodexProviderConfigFlags } from "./provision-
|
|
7
|
+
import { a as STRIPPED_AUTH_ROUTING_ENV_KEYS, n as buildCodexProviderConfigFlags } from "./provision-D_aHUCXt.js";
|
|
8
8
|
import { n as buildWorkspaceHeaderHelperCommand } from "./mcp-workspace-header-B77WqVFw.js";
|
|
9
9
|
import { a as dispatcherAgentName, c as dispatcherTools, n as activeDispatchModes, o as dispatcherDescription, s as dispatcherPrompt } from "./worker-dispatch-lRhno09M.js";
|
|
10
10
|
import consola from "consola";
|
|
@@ -368,8 +368,8 @@ function buildMaxProfileAgentDefinitions(opts) {
|
|
|
368
368
|
out["worker-browse"] = {
|
|
369
369
|
description: dispatcherDescription("browse"),
|
|
370
370
|
prompt: dispatcherPrompt("browse", workersKey),
|
|
371
|
-
model:
|
|
372
|
-
effort: "
|
|
371
|
+
model: MAX_BROWSE_LOW_ALIAS_ID,
|
|
372
|
+
effort: "low",
|
|
373
373
|
tools: dispatcherTools("browse", workersKey),
|
|
374
374
|
...opts.serverUrl ? { mcpServers: { [workersKey]: httpEntryFor(opts.serverUrl, "workers", opts.nonce, opts.workspaceHeaderCmd) } } : {}
|
|
375
375
|
};
|
|
@@ -552,8 +552,8 @@ function buildFastProfileAgentDefinitions(opts) {
|
|
|
552
552
|
out["worker-browse"] = {
|
|
553
553
|
description: dispatcherDescription("browse"),
|
|
554
554
|
prompt: dispatcherPrompt("browse", workersKey),
|
|
555
|
-
model:
|
|
556
|
-
effort: "
|
|
555
|
+
model: BROWSE_LOW_ALIAS_ID,
|
|
556
|
+
effort: "low",
|
|
557
557
|
tools: dispatcherTools("browse", workersKey),
|
|
558
558
|
...opts.serverUrl ? { mcpServers: { [workersKey]: httpEntryFor(opts.serverUrl, "workers", opts.nonce, opts.workspaceHeaderCmd) } } : {}
|
|
559
559
|
};
|
|
@@ -648,8 +648,8 @@ function buildCheapProfileAgentDefinitions(opts) {
|
|
|
648
648
|
out["worker-browse"] = {
|
|
649
649
|
description: dispatcherDescription("browse"),
|
|
650
650
|
prompt: dispatcherPrompt("browse", workersKey),
|
|
651
|
-
model:
|
|
652
|
-
effort: "
|
|
651
|
+
model: BROWSE_LOW_ALIAS_ID,
|
|
652
|
+
effort: "low",
|
|
653
653
|
tools: dispatcherTools("browse", workersKey),
|
|
654
654
|
...opts.serverUrl ? { mcpServers: { [workersKey]: httpEntryFor(opts.serverUrl, "workers", opts.nonce, opts.workspaceHeaderCmd) } } : {}
|
|
655
655
|
};
|
|
@@ -723,8 +723,8 @@ function buildCheapestProfileAgentDefinitions(opts) {
|
|
|
723
723
|
out["worker-browse"] = {
|
|
724
724
|
description: dispatcherDescription("browse"),
|
|
725
725
|
prompt: dispatcherPrompt("browse", workersKey),
|
|
726
|
-
model:
|
|
727
|
-
effort: "
|
|
726
|
+
model: BROWSE_LOW_ALIAS_ID,
|
|
727
|
+
effort: "low",
|
|
728
728
|
tools: dispatcherTools("browse", workersKey),
|
|
729
729
|
...opts.serverUrl ? { mcpServers: { [workersKey]: httpEntryFor(opts.serverUrl, "workers", opts.nonce, opts.workspaceHeaderCmd) } } : {}
|
|
730
730
|
};
|
|
@@ -802,8 +802,8 @@ function buildBalancedProfileAgentDefinitions(opts) {
|
|
|
802
802
|
out["worker-browse"] = {
|
|
803
803
|
description: dispatcherDescription("browse"),
|
|
804
804
|
prompt: dispatcherPrompt("browse", workersKey),
|
|
805
|
-
model:
|
|
806
|
-
effort: "
|
|
805
|
+
model: BROWSE_LOW_ALIAS_ID,
|
|
806
|
+
effort: "low",
|
|
807
807
|
tools: dispatcherTools("browse", workersKey),
|
|
808
808
|
...opts.serverUrl ? { mcpServers: { [workersKey]: httpEntryFor(opts.serverUrl, "workers", opts.nonce, opts.workspaceHeaderCmd) } } : {}
|
|
809
809
|
};
|
|
@@ -3898,4 +3898,4 @@ async function injectAttributionSuppressionIntoSettingsFile(settingsPath) {
|
|
|
3898
3898
|
//#endregion
|
|
3899
3899
|
export { writePeerMcpRuntimeFiles as C, workersKeyOf as S, sanitizeServeSettingsEnv as _, appendPeerAwarenessToMirroredClaudeMd as a, resolveCodexCliBackend as b, buildOperatingDefaultsDirective as c, prependStyleDirectiveToMirroredClaudeMd as d, buildArtifactReviewSkill as f, planModeAllowRules as g, injectAllowRules as h, writeInjectedSkill as i, prependArtifactPanelDirectiveToMirroredClaudeMd as l, configureServeDefaultPermissionMode as m, getInjectedSkills as n, appendToolbeltAwarenessToMirroredClaudeMd as o, SEAMLESS_BUILTIN_TOOLS as p, injectedSkillsForLaunch as r, buildOperatingDefaultsDigest as s, injectAttributionSuppressionIntoSettingsFile as t, prependOperatingDefaultsToMirroredClaudeMd as u, BUILTIN_SUBAGENT_DEFINITIONS as v, resolveGroupKeysFromMirror as x, injectPeerMcpIntoMirror as y };
|
|
3900
3900
|
|
|
3901
|
-
//# sourceMappingURL=attribution-settings-
|
|
3901
|
+
//# sourceMappingURL=attribution-settings-BTfKm-RU.js.map
|