github-router 0.3.335 → 0.3.337

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 (72) hide show
  1. package/README.md +8 -8
  2. package/dist/aic-ledger-D4fmThbS.js.map +1 -1
  3. package/dist/{attribution-settings-3dNc9yQY.js → attribution-settings-Bpa-YTZ5.js} +16 -16
  4. package/dist/attribution-settings-Bpa-YTZ5.js.map +1 -0
  5. package/dist/{balanced-profile-contract-DkmALvc7.js → balanced-profile-contract-DdmG6RRd.js} +15 -15
  6. package/dist/balanced-profile-contract-DdmG6RRd.js.map +1 -0
  7. package/dist/browser-ext/manifest.json +1 -1
  8. package/dist/{claude-BdMCpacv.js → claude-X8KYtT5_.js} +21 -21
  9. package/dist/claude-X8KYtT5_.js.map +1 -0
  10. package/dist/{codex-B-RHFAbV.js → codex-CbYioKum.js} +5 -5
  11. package/dist/{codex-B-RHFAbV.js.map → codex-CbYioKum.js.map} +1 -1
  12. package/dist/{copilot-discount-BcUa3f-k.js → copilot-discount-yDaMQob0.js} +4 -1
  13. package/dist/copilot-discount-yDaMQob0.js.map +1 -0
  14. package/dist/engine-Di1OB28h.js +2 -0
  15. package/dist/{gate-discovery-bTdZN63-.js → gate-discovery-C27g6aJn.js} +3 -3
  16. package/dist/{gate-discovery-bTdZN63-.js.map → gate-discovery-C27g6aJn.js.map} +1 -1
  17. package/dist/{hook-mcp-client-DbFtxo6_.js → hook-mcp-client-BRL_y-bz.js} +3 -3
  18. package/dist/hook-mcp-client-BRL_y-bz.js.map +1 -0
  19. package/dist/hooks.mjs +30 -26
  20. package/dist/hooks.sha256 +1 -1
  21. package/dist/{internal-aic-status-Bma0r0ZS.js → internal-aic-status-DV2ATIRT.js} +2 -2
  22. package/dist/{internal-aic-status-Bma0r0ZS.js.map → internal-aic-status-DV2ATIRT.js.map} +1 -1
  23. package/dist/{internal-fast-dispatch-guard-BykpMYog.js → internal-fast-dispatch-guard-0Or2xigH.js} +3 -3
  24. package/dist/internal-fast-dispatch-guard-0Or2xigH.js.map +1 -0
  25. package/dist/{internal-fast-dispatch-guard-VvR1xQnL.js → internal-fast-dispatch-guard-UQSbkLqY.js} +1 -1
  26. package/dist/{internal-max-dispatch-guard-6ZCEanI6.js → internal-max-dispatch-guard-BSRTtOit.js} +1 -1
  27. package/dist/{internal-max-dispatch-guard-CtIO7pm1.js → internal-max-dispatch-guard-CioyE9wn.js} +7 -6
  28. package/dist/internal-max-dispatch-guard-CioyE9wn.js.map +1 -0
  29. package/dist/{internal-plan-review-jIts3KYd.js → internal-plan-review-B4f0dpss.js} +3 -3
  30. package/dist/{internal-plan-review-jIts3KYd.js.map → internal-plan-review-B4f0dpss.js.map} +1 -1
  31. package/dist/{internal-prompt-submit-BfoWVyzs.js → internal-prompt-submit-BMJ0A7vR.js} +6 -6
  32. package/dist/internal-prompt-submit-BMJ0A7vR.js.map +1 -0
  33. package/dist/{internal-stop-hook-fbULtsfL.js → internal-stop-hook-YCK7DX-x.js} +5 -5
  34. package/dist/{internal-stop-hook-fbULtsfL.js.map → internal-stop-hook-YCK7DX-x.js.map} +1 -1
  35. package/dist/{internal-stop-review-BtGDVrv-.js → internal-stop-review-C7bOxX1q.js} +5 -5
  36. package/dist/internal-stop-review-C7bOxX1q.js.map +1 -0
  37. package/dist/main.js +11 -11
  38. package/dist/{max-profile-contract-MJJt0zm-.js → max-profile-contract-LTJstj1e.js} +7 -7
  39. package/dist/max-profile-contract-LTJstj1e.js.map +1 -0
  40. package/dist/{orchestration-Ccmfslh4.js → orchestration-BMISq91N.js} +2 -2
  41. package/dist/{orchestration-Ccmfslh4.js.map → orchestration-BMISq91N.js.map} +1 -1
  42. package/dist/{peer-mcp-personas-Ba1_UNif.js → peer-mcp-personas-DU2SO1RG.js} +182 -145
  43. package/dist/peer-mcp-personas-DU2SO1RG.js.map +1 -0
  44. package/dist/{plan-review-hook-ciat1jgZ.js → plan-review-hook-BTvxvCCo.js} +2 -2
  45. package/dist/{plan-review-hook-ciat1jgZ.js.map → plan-review-hook-BTvxvCCo.js.map} +1 -1
  46. package/dist/{prompt-submit-hook-C8q_hDOv.js → prompt-submit-hook-BeLUDy_m.js} +3 -3
  47. package/dist/prompt-submit-hook-BeLUDy_m.js.map +1 -0
  48. package/dist/{provision-C-3FuKJU.js → provision-Ck059J4j.js} +3 -3
  49. package/dist/{provision-C-3FuKJU.js.map → provision-Ck059J4j.js.map} +1 -1
  50. package/dist/{serve-BkmVVLbB.js → serve-QSuKiRrF.js} +8 -8
  51. package/dist/{serve-BkmVVLbB.js.map → serve-QSuKiRrF.js.map} +1 -1
  52. package/dist/{server-setup-BR9ejqJs.js → server-setup-BMd_WJqh.js} +75 -87
  53. package/dist/server-setup-BMd_WJqh.js.map +1 -0
  54. package/dist/{start-8h-FFyI7.js → start-Ikh4r6Pa.js} +4 -4
  55. package/dist/{start-8h-FFyI7.js.map → start-Ikh4r6Pa.js.map} +1 -1
  56. package/dist/{stop-gate-hook-DZVfKoSh.js → stop-gate-hook-DBcxPgkF.js} +2 -2
  57. package/dist/{stop-gate-hook-DZVfKoSh.js.map → stop-gate-hook-DBcxPgkF.js.map} +1 -1
  58. package/package.json +1 -1
  59. package/dist/attribution-settings-3dNc9yQY.js.map +0 -1
  60. package/dist/balanced-profile-contract-DkmALvc7.js.map +0 -1
  61. package/dist/claude-BdMCpacv.js.map +0 -1
  62. package/dist/copilot-discount-BcUa3f-k.js.map +0 -1
  63. package/dist/engine-DfqorzCg.js +0 -2
  64. package/dist/hook-mcp-client-DbFtxo6_.js.map +0 -1
  65. package/dist/internal-fast-dispatch-guard-BykpMYog.js.map +0 -1
  66. package/dist/internal-max-dispatch-guard-CtIO7pm1.js.map +0 -1
  67. package/dist/internal-prompt-submit-BfoWVyzs.js.map +0 -1
  68. package/dist/internal-stop-review-BtGDVrv-.js.map +0 -1
  69. package/dist/max-profile-contract-MJJt0zm-.js.map +0 -1
  70. package/dist/peer-mcp-personas-Ba1_UNif.js.map +0 -1
  71. package/dist/prompt-submit-hook-C8q_hDOv.js.map +0 -1
  72. package/dist/server-setup-BR9ejqJs.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompt-submit-hook-C8q_hDOv.js","names":[],"sources":["../src/lib/orchestration/prompt-submit-hook.ts"],"sourcesContent":["/**\n * Pure decision logic for the `UserPromptSubmit` hook (the front-end of the\n * floor-raising surface). It serves TWO duties on the one event:\n *\n * 1. Per-prompt budget reset — clears the Stop-gate's block counter for this\n * session so `maxBlocks` is \"per user prompt\", not \"per session lifetime\"\n * (the per-prompt scoping the Stop-gate relies on).\n * 2. Goal steer — for a NON-trivial prompt, inject an advisory GOAL directive\n * (additive context, never blocking) pointing the model at `/gh-research`\n * then `/gh-orchestrate`. It raises the prior; it does not force execution.\n *\n * Top-level only: like the Stop-gate, it stands down in a subagent/teammate\n * context (the payload carries `agent_type`/`agent_id` there) so it never\n * recurses into spawned workers. Fail-open and never blocking: any error or a\n * trivial prompt yields an empty injection.\n */\n\nimport { buildSelfCommand, type SelfInvocation } from \"../hook-launcher/self-invocation\"\nimport { isSubagentContext } from \"./stop-gate-policy\"\n\n/**\n * The advisory goal injected for a non-trivial prompt. Uses the skills' slash\n * invocation form. The model still decides whether to follow it; the Stop-gate\n * backstops correctness at the output end.\n */\nexport const PROMPT_STEER_GOAL =\n \"GOAL (advisory): for a non-trivial task, FIRST run /gh-research on this ask to \"\n + \"information saturation — verify the load-bearing claims against the actual code \"\n + \"before planning, and do not plan or write code until research is saturated. THEN, \"\n + \"for an implementation or change task, run /gh-orchestrate to compose and run a \"\n + \"floor-raising workflow (it checkpoints before expensive work). Skip both for a \"\n + \"trivial ask; you may decline if they do not fit.\"\n\n/**\n * Cheap, conservative complexity heuristic — a long prompt, an imperative\n * build/change verb, or an explicit multi-file scope. Trivial prompts get no\n * steer (no analysis-paralysis tax on quick asks).\n */\nexport function isNonTrivialPrompt(prompt: string): boolean {\n const p = prompt.trim()\n if (p.length === 0) return false\n if (p.length >= 280) return true\n const verb =\n /\\b(implement|build|refactor|migrate|fix|debug|diagnose|design|add|create|rewrite|optimi[sz]e|integrate|architect|investigate|audit)\\b/i\n if (verb.test(p)) return true\n // Multi-file / cross-cutting scope signal.\n return /\\b(across|throughout|every|all)\\b.*\\b(file|module|test|route|component)s?\\b/i.test(p)\n}\n\nexport interface PromptSubmitDecision {\n /** Session whose Stop-gate block budget to reset (undefined = none). */\n resetSession?: string\n /** Text to print to stdout (added to the model's context). Empty = nothing. */\n inject: string\n}\n\nexport function decidePromptSubmit(input: { stdin: string; steerEnabled: boolean }): PromptSubmitDecision {\n let payload: { session_id?: unknown; prompt?: unknown; agent_type?: unknown; agent_id?: unknown } = {}\n try {\n const p: unknown = JSON.parse(input.stdin)\n if (p && typeof p === \"object\") payload = p as typeof payload\n } catch {\n return { inject: \"\" }\n }\n // Top-level only: a subagent/teammate prompt gets neither reset nor steer.\n if (isSubagentContext(payload)) return { inject: \"\" }\n const decision: PromptSubmitDecision = { inject: \"\" }\n const sessionId = typeof payload.session_id === \"string\" && payload.session_id.length > 0 ? payload.session_id : \"\"\n if (sessionId) decision.resetSession = sessionId\n const prompt = typeof payload.prompt === \"string\" ? payload.prompt : \"\"\n if (input.steerEnabled && isNonTrivialPrompt(prompt)) decision.inject = PROMPT_STEER_GOAL\n return decision\n}\n\n// ─── UserPromptSubmit V2 (advisory: classify + grounded scope/goal) ──────────\n\n/**\n * Static encouragement injected only for a non-trivial prompt (no extra model\n * call, no latency tax): nudge parallel lexical+semantic search before\n * concluding. Mirrors the v1 advisory tone: additive, never blocking.\n *\n * @deprecated Prefer `getPromptSearchTip(searchEnabled, bluebirdEnabled)` so\n * the tip matches the launch's search backend. Kept for callers without flags;\n * built with semantic search enabled.\n */\nexport const PROMPT_SEARCH_TIP = getPromptSearchTip(true)\n\n/**\n * Build the search tip for the launch's search backend. When Bluebird is\n * enabled it owns both semantic and lexical calls; otherwise local ColBERT is\n * used when enabled, or lexical-only search when neither backend is enabled.\n */\nexport function getPromptSearchTip(\n searchEnabled: boolean,\n bluebirdEnabled: boolean = false,\n): string {\n if (bluebirdEnabled) {\n return (\n \"TIP (advisory): when this task needs code context, search Bluebird semantic + \"\n + \"lexical in parallel — two `mcp__search__code` calls issued in the same turn. \"\n + \"Bluebird failures are visible and do not fall back locally.\"\n )\n }\n if (searchEnabled) {\n return (\n \"TIP (advisory): when this task needs code context, search lexical + semantic in \"\n + \"parallel — one `mcp__search__code` call with mode:\\\"lexical\\\" and one with \"\n + \"mode:\\\"semantic\\\", issued in the same turn — before concluding.\"\n )\n }\n return (\n \"TIP (advisory): when this task needs code context, search lexical \"\n + \"(`mcp__search__code` with mode:\\\"lexical\\\"/\\\"exact\\\"/\\\"regex\\\" for exact \"\n + \"symbols, filenames, errors, routes, flags, and config keys), issuing \"\n + \"parallel calls in the same turn — before concluding.\"\n )\n}\n\n/**\n * Build the scope-inference system prompt for the launch's search backend.\n * Mirrors `getPromptSearchTip`: Bluebird and local ColBERT variants ground the\n * inference in lexical + semantic results; the local-only variant in lexical results.\n */\nexport function getPromptScopeSystem(\n searchEnabled: boolean,\n bluebirdEnabled: boolean = false,\n): string {\n const searchNoun = bluebirdEnabled\n ? \"a Bluebird lexical + semantic code search\"\n : searchEnabled\n ? \"a local lexical + semantic code search\"\n : \"a lexical code search\"\n return (\n \"You are a scoping assistant for a coding agent about to act on a user's request. \"\n + `You are given the user's request and the results of ${searchNoun} `\n + \"over the relevant repository. Produce a SHORT advisory note (<= 120 words), plain text only:\\n\"\n + \"1. SCOPE: one line — is this trivial, focused (one area), or large/cross-cutting — grounded in \"\n + \"what the search surfaced (reference the most relevant file(s) by name).\\n\"\n + \"2. GOAL: restate the user's OWN ask as a single measurable objective, in THEIR terms. Do NOT \"\n + \"invent new requirements or acceptance criteria beyond what they asked.\\n\"\n + \"3. Only if the task is large/cross-cutting, add a final line: \\\"Consider /gh-research first to \"\n + \"saturate understanding, then /gh-orchestrate to compose a floor-raising workflow.\\\" Omit it for a \"\n + \"focused or trivial task.\\n\"\n + \"This is advisory — the agent decides whether to follow it. Be concrete and concise; no preamble.\"\n )\n}\n\n/** System prompt for the single gpt-5.6-luna scope/goal inference. Steers a SHORT,\n * user-derived (not invented) advisory note grounded in the search results.\n *\n * @deprecated Prefer `getPromptScopeSystem(searchEnabled, bluebirdEnabled)` so\n * the prompt matches the launch's search backend. Kept for callers without flags;\n * built with local semantic search enabled. */\nexport const PROMPT_SCOPE_SYSTEM = getPromptScopeSystem(true)\n\n/** Injected IO for V2, all best-effort. Each network call returns its text and\n * never throws to the orchestrator (the orchestrator wraps the enrichment in a\n * timeout + try/catch and falls open to the regex goal).\n *\n * INVARIANT for live callers: each IO call MUST self-timeout (the live wiring\n * passes a per-call timeoutMs to callMcpTool / callInference). The orchestrator's\n * outer `timeoutMs` race only bounds how long it WAITS for a result before\n * failing open — it does NOT abort the in-flight call. A non-self-timing-out IO\n * would leave a socket open until the hook process's terminal `process.exit(0)`,\n * which is the hard backstop but not a substitute for the per-call bound. */\nexport interface PromptSubmitV2IO {\n /** One `mcp__search__code` call; returns the raw result text (\"\" on failure).\n * Receives the orchestrator's AbortSignal so a timed-out enrichment cancels\n * the in-flight request (live callers thread it into the HTTP fetch). */\n searchCode: (query: string, mode: \"lexical\" | \"semantic\", signal?: AbortSignal) => Promise<string>\n /** One gpt-5.6-luna `/v1/responses` inference; returns assistant text (\"\" on failure).\n * Receives the orchestrator's AbortSignal (see `searchCode`). */\n infer: (system: string, user: string, signal?: AbortSignal) => Promise<string>\n /** Pending advisory findings from the prior turn's background review. */\n readFindings: (sessionId: string) => Promise<string | null>\n clearFindings: (sessionId: string) => Promise<void>\n /** Stash this prompt so the next Stop review can judge the diff against it. */\n storePrompt: (sessionId: string, prompt: string) => Promise<void>\n /** Wall-clock budget for the substantive-prompt enrichment (search+infer);\n * on overrun the decision falls open to the regex goal. Default 22s. */\n timeoutMs?: number\n}\n\n/** Max chars of each search-result blob fed into the scope inference. */\nconst SEARCH_CONTEXT_CAP = 6 * 1024\n\n/** Wrap the prior-turn review findings in an explicitly NON-AUTHORITATIVE frame. */\nfunction framePendingFindings(findings: string): string {\n return (\n \"ADVISORY — independent review of your PREVIOUS change (NON-AUTHORITATIVE): an independent \"\n + \"gpt-5.6-luna reviewer flagged the following. Evaluate each on its merits — fix the real ones, and \"\n + \"ignore any wrong one with a one-line reason. You are NOT obligated to act on these.\\n\"\n + findings.trim()\n )\n}\n\nfunction joinSections(sections: Array<string>): string {\n return sections\n .map((s) => s.trim())\n .filter((s) => s.length > 0)\n .join(\"\\n\\n\")\n}\n\n/**\n * V2 decision: budget reset (via resetSession) + a grounded, user-derived scope\n * note + surfaced prior-turn findings. ASYNC and IO-driven, but every IO is\n * best-effort and the substantive enrichment is timeout-bounded with a fail-open\n * to the v1 regex goal — so this never blocks and never wedges the prompt.\n *\n * - subagent/teammate -> empty (top-level only, like v1).\n * - findings -> always surfaced (+ cleared) regardless of triviality.\n * - trivial prompt -> findings only (no search tip, no model call).\n * - substantive prompt -> search tip + grounded enrichment (parallel\n * lexical+semantic through Bluebird when enabled,\n * otherwise local semantic when enabled, else lexical-only)\n * -> ONE gpt-5.6-luna call\n * -> grounded scope/goal note. Fail-open to PROMPT_STEER_GOAL.\n * - steerEnabled=false -> findings only (no goal/tip).\n */\nexport async function decidePromptSubmitV2(input: {\n stdin: string\n steerEnabled: boolean\n io: PromptSubmitV2IO\n /** Whether local ColBERT semantic search is enabled for this launch. */\n searchEnabled?: boolean\n /** Whether Bluebird owns semantic and lexical search for this launch. */\n bluebirdEnabled?: boolean\n}): Promise<PromptSubmitDecision> {\n let payload: { session_id?: unknown; prompt?: unknown; agent_type?: unknown; agent_id?: unknown } = {}\n try {\n const p: unknown = JSON.parse(input.stdin)\n if (p && typeof p === \"object\") payload = p as typeof payload\n } catch {\n return { inject: \"\" }\n }\n if (isSubagentContext(payload)) return { inject: \"\" }\n\n const decision: PromptSubmitDecision = { inject: \"\" }\n const sessionId = typeof payload.session_id === \"string\" && payload.session_id.length > 0 ? payload.session_id : \"\"\n if (sessionId) decision.resetSession = sessionId\n const prompt = typeof payload.prompt === \"string\" ? payload.prompt : \"\"\n\n // Stash the prompt for the next Stop review (best-effort, fire-and-await so a\n // slow disk doesn't matter — it's a tiny local write).\n if (sessionId) await input.io.storePrompt(sessionId, prompt).catch(() => {})\n\n // Read + clear any pending findings from the prior turn's background review.\n let findingsBlock = \"\"\n if (sessionId) {\n const pending = await input.io.readFindings(sessionId).catch(() => null)\n if (pending && pending.trim().length > 0) {\n findingsBlock = framePendingFindings(pending)\n await input.io.clearFindings(sessionId).catch(() => {})\n }\n }\n\n // steer disabled -> findings only.\n if (!input.steerEnabled) {\n decision.inject = findingsBlock\n return decision\n }\n\n // Trivial prompt -> no search tip and no model call; surface findings only.\n if (!isNonTrivialPrompt(prompt)) {\n decision.inject = findingsBlock\n return decision\n }\n\n // Substantive prompt -> search tip + grounded enrichment, timeout-bounded + fail-open.\n const searchEnabled = input.searchEnabled === true\n const bluebirdEnabled = input.bluebirdEnabled === true\n const semanticAvailable = searchEnabled || bluebirdEnabled\n const searchTip = getPromptSearchTip(searchEnabled, bluebirdEnabled)\n const scopeSystem = getPromptScopeSystem(searchEnabled, bluebirdEnabled)\n const timeoutMs = input.io.timeoutMs ?? 22_000\n let goal = PROMPT_STEER_GOAL // fail-open default.\n let timer: ReturnType<typeof setTimeout> | undefined\n // One controller cancels BOTH search calls + the inference when the race ends\n // (timeout OR success), so a lost-race fetch never keeps the short-lived hook\n // process alive past its decision. Aborting after success is a harmless no-op.\n const controller = new AbortController()\n try {\n const enrich = (async (): Promise<string> => {\n if (!semanticAvailable) {\n const lexical = await input.io.searchCode(prompt, \"lexical\", controller.signal).catch(() => \"\")\n const searchContext = `Lexical search results:\\n${lexical.slice(0, SEARCH_CONTEXT_CAP)}`\n const note = await input.io.infer(\n scopeSystem,\n `USER REQUEST:\\n${prompt}\\n\\n${searchContext}`,\n controller.signal,\n )\n return note.trim()\n }\n const [lexical, semantic] = await Promise.all([\n input.io.searchCode(prompt, \"lexical\", controller.signal).catch(() => \"\"),\n input.io.searchCode(prompt, \"semantic\", controller.signal).catch(() => \"\"),\n ])\n const searchContext =\n `Lexical search results:\\n${lexical.slice(0, SEARCH_CONTEXT_CAP)}\\n\\n`\n + `Semantic search results:\\n${semantic.slice(0, SEARCH_CONTEXT_CAP)}`\n const note = await input.io.infer(\n scopeSystem,\n `USER REQUEST:\\n${prompt}\\n\\n${searchContext}`,\n controller.signal,\n )\n return note.trim()\n })()\n // Mark `enrich` handled so a post-race rejection (e.g. the inference aborting\n // after the timeout already won) can't surface as an unhandled rejection.\n enrich.catch(() => {})\n // The timer is cleared in `finally` (so when `enrich` wins, no live timer\n // lingers for the rest of `timeoutMs`).\n const raced = await Promise.race<string | \"__timeout__\">([\n enrich,\n new Promise<\"__timeout__\">((resolve) => {\n timer = setTimeout(() => resolve(\"__timeout__\"), timeoutMs)\n }),\n ])\n if (raced !== \"__timeout__\" && raced.length > 0) goal = raced\n } catch {\n // keep the fail-open regex goal.\n } finally {\n if (timer) clearTimeout(timer)\n controller.abort()\n }\n\n decision.inject = joinSections([searchTip, goal, findingsBlock])\n return decision\n}\n\n/** Build the shell command Claude Code runs for the `UserPromptSubmit` hook. */\nexport function buildPromptSubmitHookCommand(invocation: SelfInvocation): string {\n return buildSelfCommand(invocation, \"internal-prompt-submit\")\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAa,oBACX;;;;;;AAYF,SAAgB,mBAAmB,QAAyB;CAC1D,MAAM,IAAI,OAAO,KAAK;CACtB,IAAI,EAAE,WAAW,GAAG,OAAO;CAC3B,IAAI,EAAE,UAAU,KAAK,OAAO;CAG5B,IAAI,yIAAK,KAAK,CAAC,GAAG,OAAO;CAEzB,OAAO,+EAA+E,KAAK,CAAC;AAC9F;AASA,SAAgB,mBAAmB,OAAuE;CACxG,IAAI,UAAgG,CAAC;CACrG,IAAI;EACF,MAAM,IAAa,KAAK,MAAM,MAAM,KAAK;EACzC,IAAI,KAAK,OAAO,MAAM,U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