github-router 0.3.349 → 0.3.350
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/{attribution-settings-BgYkynRc.js → attribution-settings-B9T-EsEs.js} +70 -4
- package/dist/attribution-settings-B9T-EsEs.js.map +1 -0
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/{claude-Chtd07VA.js → claude-BY4e9ueE.js} +11 -11
- package/dist/{claude-Chtd07VA.js.map → claude-BY4e9ueE.js.map} +1 -1
- package/dist/{codex-DayPQ8t5.js → codex-BOugL-uX.js} +4 -4
- package/dist/{codex-DayPQ8t5.js.map → codex-BOugL-uX.js.map} +1 -1
- package/dist/engine-DZfLaVcf.js +2 -0
- package/dist/{gate-discovery-CBOPoK9-.js → gate-discovery-BFqulsWz.js} +4 -4
- package/dist/{gate-discovery-CBOPoK9-.js.map → gate-discovery-BFqulsWz.js.map} +1 -1
- package/dist/hooks.mjs +634 -27
- package/dist/hooks.sha256 +1 -1
- package/dist/{internal-artifact-open-CXJbMXpq.js → internal-artifact-open-DErO3WpR.js} +2 -2
- package/dist/{internal-artifact-open-CXJbMXpq.js.map → internal-artifact-open-DErO3WpR.js.map} +1 -1
- package/dist/{internal-plan-review-F-WbltsT.js → internal-plan-review-DbX-mr9i.js} +3 -3
- package/dist/{internal-plan-review-F-WbltsT.js.map → internal-plan-review-DbX-mr9i.js.map} +1 -1
- package/dist/internal-prompt-submit-CA5Y4DWM.js +2 -0
- package/dist/{internal-prompt-submit-DRCJ5kWC.js → internal-prompt-submit-UhfnM_qG.js} +19 -5
- package/dist/internal-prompt-submit-UhfnM_qG.js.map +1 -0
- package/dist/internal-rebrief-BH9PMJhF.js +548 -0
- package/dist/internal-rebrief-BH9PMJhF.js.map +1 -0
- package/dist/{internal-session-bind-LrYEo-kg.js → internal-session-bind-DxdVbJ7x.js} +2 -2
- package/dist/{internal-session-bind-LrYEo-kg.js.map → internal-session-bind-DxdVbJ7x.js.map} +1 -1
- package/dist/{internal-stop-hook-CIe2kVss.js → internal-stop-hook-DlGc9WwJ.js} +5 -5
- package/dist/{internal-stop-hook-CIe2kVss.js.map → internal-stop-hook-DlGc9WwJ.js.map} +1 -1
- package/dist/{internal-stop-review-nL003JIj.js → internal-stop-review-CORT3UGr.js} +2 -2
- package/dist/{internal-stop-review-nL003JIj.js.map → internal-stop-review-CORT3UGr.js.map} +1 -1
- package/dist/main.js +13 -12
- package/dist/main.js.map +1 -1
- package/dist/{orchestration-DjuJRhXn.js → orchestration-Dkqv-iv0.js} +2 -2
- package/dist/{orchestration-DjuJRhXn.js.map → orchestration-Dkqv-iv0.js.map} +1 -1
- package/dist/{peer-mcp-personas-agpBeTgS.js → peer-mcp-personas-BwwSNnBC.js} +3 -3
- package/dist/{peer-mcp-personas-agpBeTgS.js.map → peer-mcp-personas-BwwSNnBC.js.map} +1 -1
- package/dist/{pi-BLDBFXg3.js → pi-Dpw8Otxw.js} +4 -4
- package/dist/{pi-BLDBFXg3.js.map → pi-Dpw8Otxw.js.map} +1 -1
- package/dist/{plan-review-hook-DMqPHBBN.js → plan-review-hook-LfG01VMp.js} +2 -2
- package/dist/{plan-review-hook-DMqPHBBN.js.map → plan-review-hook-LfG01VMp.js.map} +1 -1
- package/dist/{prompt-submit-hook-CBGlhEpU.js → prompt-submit-hook-DzhmQRs_.js} +39 -13
- package/dist/prompt-submit-hook-DzhmQRs_.js.map +1 -0
- package/dist/{provision-BKdrO1Sv.js → provision-9TAIgyL7.js} +2 -2
- package/dist/{provision-BKdrO1Sv.js.map → provision-9TAIgyL7.js.map} +1 -1
- package/dist/{serve-p_58sDJK.js → serve-BRKRWkd1.js} +8 -8
- package/dist/{serve-p_58sDJK.js.map → serve-BRKRWkd1.js.map} +1 -1
- package/dist/{server-setup-PAHohZ-u.js → server-setup-DXVFE7bf.js} +3 -3
- package/dist/{server-setup-PAHohZ-u.js.map → server-setup-DXVFE7bf.js.map} +1 -1
- package/dist/{start-CTHcqkQL.js → start-CoR3jqUR.js} +3 -3
- package/dist/{start-CTHcqkQL.js.map → start-CoR3jqUR.js.map} +1 -1
- package/dist/{stop-gate-hook-DRcYQAtf.js → stop-gate-hook-C9VNxmt1.js} +2 -2
- package/dist/{stop-gate-hook-DRcYQAtf.js.map → stop-gate-hook-C9VNxmt1.js.map} +1 -1
- package/dist/{stop-gate-policy-CbLklfV2.js → stop-gate-policy-DQsfjnsx.js} +29 -2
- package/dist/{stop-gate-policy-CbLklfV2.js.map → stop-gate-policy-DQsfjnsx.js.map} +1 -1
- package/package.json +1 -1
- package/dist/attribution-settings-BgYkynRc.js.map +0 -1
- package/dist/engine-T81FYVwK.js +0 -2
- package/dist/internal-prompt-submit-DRCJ5kWC.js.map +0 -1
- package/dist/prompt-submit-hook-CBGlhEpU.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as isUnderClaudeConfigMirror, f as writeRuntimeFileSecure, t as PATHS } from "./paths-CpbTHKeP.js";
|
|
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-
|
|
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-DXVFE7bf.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-XiIj4O1U.js";
|
|
4
|
-
import { An as oneMContextDisabled, Gn as CHEAP_PROFILE_NATIVE_AGENT_NAMES, Kn as CHEAP_PROFILE_NATIVE_EFFORTS, Ln as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, Rn as CHEAPEST_PROFILE_NATIVE_EFFORTS, a as buildAgentPrompt, jn as withOneMSuffix, l as maxPersonasFor, ln as CONDENSED_OPERATING_SEQUENCE, n as MCP_GROUPS, t as GROUP_META, u as personasFor, un as DEFINITION_OF_GREATNESS } from "./peer-mcp-personas-
|
|
4
|
+
import { An as oneMContextDisabled, Gn as CHEAP_PROFILE_NATIVE_AGENT_NAMES, Kn as CHEAP_PROFILE_NATIVE_EFFORTS, Ln as CHEAPEST_PROFILE_NATIVE_AGENT_NAMES, Rn as CHEAPEST_PROFILE_NATIVE_EFFORTS, a as buildAgentPrompt, jn as withOneMSuffix, l as maxPersonasFor, ln as CONDENSED_OPERATING_SEQUENCE, n as MCP_GROUPS, t as GROUP_META, u as personasFor, un as DEFINITION_OF_GREATNESS } from "./peer-mcp-personas-BwwSNnBC.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--dAYkEG1.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-9TAIgyL7.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";
|
|
@@ -2724,6 +2724,70 @@ Return a compact brief, not the whole research dump:
|
|
|
2724
2724
|
};
|
|
2725
2725
|
}
|
|
2726
2726
|
//#endregion
|
|
2727
|
+
//#region src/lib/injected-skills/rebrief-skill.ts
|
|
2728
|
+
/**
|
|
2729
|
+
* User-only on-demand cheapest rebrief (`/gh-rebrief`).
|
|
2730
|
+
*
|
|
2731
|
+
* `disable-model-invocation: true` keeps the description OUT of the model
|
|
2732
|
+
* context (no auto-trigger, no listing tax on the 200K Luna window); the user
|
|
2733
|
+
* invokes it explicitly when Luna drifts, loops, or contradicts earlier
|
|
2734
|
+
* decisions. The body runs the deterministic `internal-rebrief` binary, which
|
|
2735
|
+
* reuses the Sol → Luna rewrite with a 4K extractive session excerpt.
|
|
2736
|
+
*/
|
|
2737
|
+
function buildRebriefSkill(searchEnabled, bluebirdEnabled = false) {
|
|
2738
|
+
return {
|
|
2739
|
+
name: "gh-rebrief",
|
|
2740
|
+
md: `---
|
|
2741
|
+
name: gh-rebrief
|
|
2742
|
+
description: Produces a course-corrected prompt for Luna on the user's current ask: Sol grounds the original ask, done-so-far digest, and transcript tail, then frames the next step for Luna to execute. Use when the session has drifted, Luna loops, or the user wants to restate what done means. Requires an explicit refined ask: /gh-rebrief "<ask>".
|
|
2743
|
+
user-invocable: true
|
|
2744
|
+
disable-model-invocation: true
|
|
2745
|
+
argument-hint: "[optional refined ask]"
|
|
2746
|
+
allowed-tools: Bash, Read
|
|
2747
|
+
---
|
|
2748
|
+
|
|
2749
|
+
# gh-rebrief: on-demand cheapest re-brief
|
|
2750
|
+
|
|
2751
|
+
Use this skill when the user types /gh-rebrief, optionally with a refined ask.
|
|
2752
|
+
It re-runs the cheapest Sol rewrite mid-session with compressed recent context.
|
|
2753
|
+
It is user-invoked only and never fires automatically.
|
|
2754
|
+
|
|
2755
|
+
${bluebirdEnabled ? "Grounding uses Bluebird semantic + lexical code search (failures stay visible, no local fallback)." : (searchEnabled ?? false) || bluebirdEnabled ? "Grounding uses local lexical + semantic code search in parallel." : "Grounding uses lexical code search only (no semantic backend this launch)."}
|
|
2756
|
+
|
|
2757
|
+
## Operating contract
|
|
2758
|
+
|
|
2759
|
+
- Objective: produce a short grounded EXECUTION BRIEF for the current ask with recent-transcript signal.
|
|
2760
|
+
- The user's request (or the refined $ARGUMENTS ask) is authoritative; the brief is advisory counsel.
|
|
2761
|
+
- Never replace or truncate the user prompt; the brief is additive context.
|
|
2762
|
+
- Never read a full transcript into context; the binary supplies a 4K extractive excerpt.
|
|
2763
|
+
|
|
2764
|
+
## Procedure
|
|
2765
|
+
|
|
2766
|
+
1. Require $ARGUMENTS as the refined ask. If it is empty, tell the user to pass /gh-rebrief "<ask>" — do not run the command.
|
|
2767
|
+
2. Run the deterministic command (bounded: up to 2 Sol medium calls + one Luna summary, ≤30s).
|
|
2768
|
+
Pass the ask verbatim — do not interpret shell metacharacters in it, and
|
|
2769
|
+
never add flags of your own (the command takes --ask only):
|
|
2770
|
+
GH_ROUTER_REBRIEF_USER_INVOKED=1 github-router internal-rebrief --ask "$ARGUMENTS"
|
|
2771
|
+
3. Treat stdout as the advisory brief: INTENT, GROUNDING, CONSTRAINTS, VERIFY, OPEN QUESTIONS.
|
|
2772
|
+
4. Verify load-bearing file:line cites with a direct Read before acting on them.
|
|
2773
|
+
5. If the binary refuses (non-cheapest profile), use /gh-research instead.
|
|
2774
|
+
|
|
2775
|
+
## Return format
|
|
2776
|
+
|
|
2777
|
+
- Brief pointer: paste the returned EXECUTION BRIEF block (it is already capped).
|
|
2778
|
+
- Staleness: note when the transcript was truncated ([TRUNCATED] marker present).
|
|
2779
|
+
- Residuals: carry forward OPEN QUESTIONS verbatim; never fabricate answers.
|
|
2780
|
+
|
|
2781
|
+
## Non-goals
|
|
2782
|
+
|
|
2783
|
+
- Do not invoke without the user typing /gh-rebrief.
|
|
2784
|
+
- Do not run in a forked subagent; the binary needs the session transcript path.
|
|
2785
|
+
- Do not paste full file contents or the whole transcript.
|
|
2786
|
+
- Do not prescribe step-by-step procedure; give facts, constraints, and the check.
|
|
2787
|
+
`
|
|
2788
|
+
};
|
|
2789
|
+
}
|
|
2790
|
+
//#endregion
|
|
2727
2791
|
//#region src/lib/injected-skills/swe-pipeline-skill.ts
|
|
2728
2792
|
function buildSwePipelineSkill(_searchEnabled, profile) {
|
|
2729
2793
|
const leadPlansDirectly = profile === "cheapest" || profile === "balanced";
|
|
@@ -3831,6 +3895,7 @@ function injectedSkillsForLaunch(selection) {
|
|
|
3831
3895
|
if (isPipelineSkillProfile(selection.profileId)) {
|
|
3832
3896
|
if (!selection.sweEnabled) {
|
|
3833
3897
|
if (selection.profileId === "max" && selection.firstMateEnabled) return allSkills.filter((skill) => skill.name.startsWith("gh-first-mate"));
|
|
3898
|
+
if (selection.profileId === "cheapest") return [buildRebriefSkill(searchEnabled, bluebirdEnabled)];
|
|
3834
3899
|
return [];
|
|
3835
3900
|
}
|
|
3836
3901
|
if (selection.profileId === "max") {
|
|
@@ -3838,6 +3903,7 @@ function injectedSkillsForLaunch(selection) {
|
|
|
3838
3903
|
if (selection.firstMateEnabled) return [...pipeline, ...allSkills.filter((skill) => skill.name.startsWith("gh-first-mate"))];
|
|
3839
3904
|
return pipeline;
|
|
3840
3905
|
}
|
|
3906
|
+
if (selection.profileId === "cheapest") return [...pipelineSkills.slice(), buildRebriefSkill(searchEnabled, bluebirdEnabled)];
|
|
3841
3907
|
return pipelineSkills.slice();
|
|
3842
3908
|
}
|
|
3843
3909
|
if (!selection.workerSkillsActive) return [];
|
|
@@ -3910,4 +3976,4 @@ async function injectAttributionSuppressionIntoSettingsFile(settingsPath) {
|
|
|
3910
3976
|
//#endregion
|
|
3911
3977
|
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 };
|
|
3912
3978
|
|
|
3913
|
-
//# sourceMappingURL=attribution-settings-
|
|
3979
|
+
//# sourceMappingURL=attribution-settings-B9T-EsEs.js.map
|