github-router 0.3.295 → 0.3.297

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.
Files changed (37) hide show
  1. package/dist/{attribution-settings-pkIop1NU.js → attribution-settings-B70GmZ68.js} +10 -9
  2. package/dist/attribution-settings-B70GmZ68.js.map +1 -0
  3. package/dist/browser-ext/manifest.json +1 -1
  4. package/dist/{claude-DNmxk-Rm.js → claude-DMMfvfns.js} +96 -44
  5. package/dist/claude-DMMfvfns.js.map +1 -0
  6. package/dist/{codex-Dl4gpHn-.js → codex-DVOyVv2B.js} +4 -4
  7. package/dist/{codex-Dl4gpHn-.js.map → codex-DVOyVv2B.js.map} +1 -1
  8. package/dist/engine-BkGRuUNs.js +2 -0
  9. package/dist/fast-profile-contract-K3P58nj3.js +57 -0
  10. package/dist/fast-profile-contract-K3P58nj3.js.map +1 -0
  11. package/dist/{gate-discovery-WcduofL4.js → gate-discovery-G6PAG61j.js} +2 -2
  12. package/dist/{gate-discovery-WcduofL4.js.map → gate-discovery-G6PAG61j.js.map} +1 -1
  13. package/dist/hooks.mjs +64 -16
  14. package/dist/hooks.sha256 +1 -1
  15. package/dist/{internal-fast-dispatch-guard-Xyu17k9X.js → internal-fast-dispatch-guard-Bkr_iGOu.js} +21 -17
  16. package/dist/internal-fast-dispatch-guard-Bkr_iGOu.js.map +1 -0
  17. package/dist/{internal-fast-dispatch-guard-CPlCrTlU.js → internal-fast-dispatch-guard-N-RaLrOn.js} +1 -1
  18. package/dist/{internal-stop-hook-DJFtGCsE.js → internal-stop-hook-BjzrF1zd.js} +2 -2
  19. package/dist/{internal-stop-hook-DJFtGCsE.js.map → internal-stop-hook-BjzrF1zd.js.map} +1 -1
  20. package/dist/main.js +6 -6
  21. package/dist/{peer-mcp-personas-BwNtC8jt.js → peer-mcp-personas-ce6_YMnX.js} +77 -76
  22. package/dist/peer-mcp-personas-ce6_YMnX.js.map +1 -0
  23. package/dist/{provision-DeNqzvSM.js → provision-BhCtm3md.js} +2 -2
  24. package/dist/{provision-DeNqzvSM.js.map → provision-BhCtm3md.js.map} +1 -1
  25. package/dist/{serve-BS5EmCpM.js → serve-Blj_dRSr.js} +5 -5
  26. package/dist/{serve-BS5EmCpM.js.map → serve-Blj_dRSr.js.map} +1 -1
  27. package/dist/{server-setup-DsGJnJ_O.js → server-setup-DhG3YZPj.js} +62 -11
  28. package/dist/server-setup-DhG3YZPj.js.map +1 -0
  29. package/dist/{start-vJdt2MiM.js → start-8QaqICtd.js} +3 -3
  30. package/dist/{start-vJdt2MiM.js.map → start-8QaqICtd.js.map} +1 -1
  31. package/package.json +1 -1
  32. package/dist/attribution-settings-pkIop1NU.js.map +0 -1
  33. package/dist/claude-DNmxk-Rm.js.map +0 -1
  34. package/dist/engine-XnluJUs6.js +0 -2
  35. package/dist/internal-fast-dispatch-guard-Xyu17k9X.js.map +0 -1
  36. package/dist/peer-mcp-personas-BwNtC8jt.js.map +0 -1
  37. package/dist/server-setup-DsGJnJ_O.js.map +0 -1
@@ -1,7 +1,8 @@
1
- import { It as LUNA_SCOUT_ALIAS_ID, Ln as oneMContextDisabled, Pt as LUNA_IMPLEMENTER_ALIAS_ID, Rn as withOneMSuffix, _n as DEFINITION_OF_GREATNESS, a as buildAgentPrompt, gn as CONDENSED_OPERATING_SEQUENCE, jt as FAST_CRITIC_ALIAS_ID, l as personasFor, n as MCP_GROUPS, t as GROUP_META } from "./peer-mcp-personas-BwNtC8jt.js";
1
+ import { Ft as LUNA_IMPLEMENTER_ALIAS_ID, Lt as LUNA_SCOUT_ALIAS_ID, Mt as FAST_CRITIC_ALIAS_ID, Rn as oneMContextDisabled, _n as CONDENSED_OPERATING_SEQUENCE, a as buildAgentPrompt, l as personasFor, n as MCP_GROUPS, t as GROUP_META, vn as DEFINITION_OF_GREATNESS, zn as withOneMSuffix } from "./peer-mcp-personas-ce6_YMnX.js";
2
2
  import { a as isUnderClaudeConfigMirror, d as writeRuntimeFileSecure, t as PATHS } from "./paths-Ci485qSJ.js";
3
+ import { o as FAST_PROFILE_NATIVE_AGENT_NAMES } from "./fast-profile-contract-K3P58nj3.js";
3
4
  import "./self-invocation-DAB_od0C.js";
4
- import { a as STRIPPED_AUTH_ROUTING_ENV_KEYS, n as buildCodexProviderConfigFlags } from "./provision-DeNqzvSM.js";
5
+ import { a as STRIPPED_AUTH_ROUTING_ENV_KEYS, n as buildCodexProviderConfigFlags } from "./provision-BhCtm3md.js";
5
6
  import { n as buildWorkspaceHeaderHelperCommand } from "./mcp-workspace-header-dERl2YTT.js";
6
7
  import { a as dispatcherAgentName, c as dispatcherTools, n as activeDispatchModes, o as dispatcherDescription, s as dispatcherPrompt } from "./worker-dispatch-BEHkTbnH.js";
7
8
  import consola from "consola";
@@ -224,7 +225,7 @@ function readOnlyToolSteer() {
224
225
  return "Use Read to read files and Grep/Glob plus the semantic code search tool to find them; Bash is for read-only inspection such as git log, git blame, and git show. Do not modify any file, and do not run mutating commands.";
225
226
  }
226
227
  /**
227
- * `tools:` allowlist for the read-only natives (`scout`, `brainstorm`), modelled
228
+ * `tools:` allowlist for read-only natives (`scout`, fast `Explore`, `brainstorm`), modelled
228
229
  * on Claude Code's own `Explore`/`Plan` built-ins, which run with every tool
229
230
  * EXCEPT Agent / Artifact / ExitPlanMode / Edit / Write / NotebookEdit — note
230
231
  * that Anthropic's own read-only agent keeps Bash, which is what makes `git log`
@@ -280,7 +281,7 @@ function buildFastProfileAgentDefinitions(opts) {
280
281
  const reviewerModel = nonEmptyModel(opts.reviewerModel);
281
282
  const plannerModel = nonEmptyModel(opts.plannerModel);
282
283
  const criticModel = nonEmptyModel(opts.criticModel);
283
- if (!scoutModel || !implementerModel || !reviewerModel || !plannerModel || !criticModel) throw new Error("fast profile requires resolved scout, implementer, reviewer, planner, and critic models");
284
+ if (!scoutModel || !implementerModel || !reviewerModel || !plannerModel || !criticModel) throw new Error("fast profile requires resolved Explore, implementer, reviewer, planner, and critic models");
284
285
  const searchKey = opts.groupKeys.search ?? GROUP_META.search.preferredKey;
285
286
  const peersKey = peersKeyOf(opts.groupKeys);
286
287
  const searchMcp = opts.serverUrl ? { mcpServers: { [searchKey]: httpEntryFor(opts.serverUrl, "search", opts.nonce, opts.workspaceHeaderCmd) } } : {};
@@ -305,7 +306,7 @@ function buildFastProfileAgentDefinitions(opts) {
305
306
  const reviewerPrompt = "You are the fast profile's repository-aware reviewer. Verify what is actually true by reading the code and running the relevant build, tests, or end-to-end reproduction. Find root causes rather than symptoms. Do not modify production code. Report severity-ranked findings with `file:line` evidence and a clear go/no-go. You do not have Advisor; independently reach your verdict from repository evidence. Use Oracle only as a last resort for one precise unresolved question after your own investigation. " + fileToolSteer("builds and reproductions") + " Do not spawn further agents.";
306
307
  const criticPrompt = "You are the fast profile's fresh-context cross-lab critic. Assess the supplied plan, design, diff, or decision against its stated constraints. Look for overlooked failure modes, unsupported assumptions, and simpler safer alternatives. Do not modify files, run mutating commands, or spawn agents. Return concise severity-ranked findings with `file:line` evidence where applicable. " + readOnlyToolSteer();
307
308
  const out = {
308
- scout: {
309
+ Explore: {
309
310
  description: `Read-only exploration subagent running ${scoutModel}. Use for broad repository discovery before the lead drafts a plan; return conclusions with file:line evidence, not file dumps.`,
310
311
  prompt: "Investigate the repository read-only. Cast a wide net, then return a concise evidence packet for the lead: conclusions, load-bearing `file:line` citations, commands checked, and explicit gaps. Do not plan, edit, or spawn agents. " + readOnlyToolSteer(),
311
312
  tools: scoutTools,
@@ -340,7 +341,7 @@ function buildFastProfileAgentDefinitions(opts) {
340
341
  },
341
342
  planner: {
342
343
  description: `Plan consultant and approver running ${plannerModel}. Invoke only after Luna has done the repository legwork and drafted a plan; pass a handcrafted evidence packet and the complete draft. The lead must not implement until this agent returns APPROVE.`,
343
- prompt: "You are the fast profile's final plan consultant and approver, not a first-pass planner. The caller must provide the user goal, acceptance criteria, repository/domain constraints, Luna's `file:line` and command/test evidence, the complete draft plan, settled decisions, and one focused review question. Selectively verify disputed citations or narrow evidence gaps with read/search tools, but do not repeat broad discovery, edit files, or execute the plan. Return exactly one leading verdict: `APPROVE`, `REVISE`, or `NEED_MORE_CONTEXT`. APPROVE only when the plan is safe, ordered, complete, and verifiable. REVISE must give concrete corrections. NEED_MORE_CONTEXT must name the exact evidence Luna should collect. You do not have Advisor; independently reach your verdict from the evidence packet and selective verification. Use Oracle only as a last resort for one precise unresolved question after your own review. The Task/Agent capability is restricted by the fast in-session ACL: you may invoke only `reviewer`, `scout`, or `critic`; do not invoke any other role. Bash is for evidence commands only; this is not a shell sandbox. " + readOnlyToolSteer(),
344
+ prompt: "You are the fast profile's final plan consultant and approver, not a first-pass planner. The caller must provide the user goal, acceptance criteria, repository/domain constraints, Luna's `file:line` and command/test evidence, the complete draft plan, settled decisions, and one focused review question. Selectively verify disputed citations or narrow evidence gaps with read/search tools, but do not repeat broad discovery, edit files, or execute the plan. Return exactly one leading verdict: `APPROVE`, `REVISE`, or `NEED_MORE_CONTEXT`. APPROVE only when the plan is safe, ordered, complete, and verifiable. REVISE must give concrete corrections. NEED_MORE_CONTEXT must name the exact evidence Luna should collect. You do not have Advisor; independently reach your verdict from the evidence packet and selective verification. Use Oracle only as a last resort for one precise unresolved question after your own review. The Task/Agent capability is restricted by the fast in-session ACL: you may invoke only `reviewer`, `Explore`, or `critic`; do not invoke any other role. Bash is for evidence commands only; this is not a shell sandbox. " + readOnlyToolSteer(),
344
345
  tools: plannerTools,
345
346
  model: decorateGuaranteedOneM(plannerModel),
346
347
  effort: opts.plannerEffort ?? "high",
@@ -350,7 +351,7 @@ function buildFastProfileAgentDefinitions(opts) {
350
351
  }
351
352
  }
352
353
  };
353
- const roster = opts.nativeRoster == null ? void 0 : opts.nativeRoster instanceof Set ? opts.nativeRoster : new Set(opts.nativeRoster);
354
+ const roster = opts.nativeRoster == null ? new Set(FAST_PROFILE_NATIVE_AGENT_NAMES) : opts.nativeRoster instanceof Set ? opts.nativeRoster : new Set(opts.nativeRoster);
354
355
  if (roster) {
355
356
  for (const name of Object.keys(out)) if (!roster.has(name)) delete out[name];
356
357
  }
@@ -1918,7 +1919,7 @@ function joinClauses(parts) {
1918
1919
  * tier; reserve `reviewer` for the higher-stakes assessment it is there for. */
1919
1920
  function buildNativeReachClauses(opts) {
1920
1921
  if (opts.profile === "fast") return joinClauses([
1921
- "`scout` to find or understand something in the repo",
1922
+ "`Explore` to find or understand something in the repo",
1922
1923
  "`implementer` for approved mechanical coding changes",
1923
1924
  "`reviewer` for repository-aware verification, reproduction, and root-causing",
1924
1925
  "`planner` as the Sol plan consultant and approver after Luna has drafted with evidence",
@@ -2515,4 +2516,4 @@ async function injectAttributionSuppressionIntoSettingsFile(settingsPath) {
2515
2516
  //#endregion
2516
2517
  export { injectPeerMcpIntoMirror as _, appendPeerAwarenessToMirroredClaudeMd as a, workersKeyOf as b, prependArtifactPanelDirectiveToMirroredClaudeMd as c, SEAMLESS_BUILTIN_TOOLS as d, configureServeDefaultPermissionMode as f, BUILTIN_SUBAGENT_DEFINITIONS as g, sanitizeServeSettingsEnv as h, OPERATING_DEFAULTS_DIGEST as i, prependOperatingDefaultsToMirroredClaudeMd as l, planModeAllowRules as m, INJECTED_SKILLS as n, appendToolbeltAwarenessToMirroredClaudeMd as o, injectAllowRules as p, writeInjectedSkill as r, buildOperatingDefaultsDirective as s, injectAttributionSuppressionIntoSettingsFile as t, prependStyleDirectiveToMirroredClaudeMd as u, resolveCodexCliBackend as v, writePeerMcpRuntimeFiles as x, resolveGroupKeysFromMirror as y };
2517
2518
 
2518
- //# sourceMappingURL=attribution-settings-pkIop1NU.js.map
2519
+ //# sourceMappingURL=attribution-settings-B70GmZ68.js.map