nexus-agents 8.112.1 → 8.113.0
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/{ast-rule-runner-25ZAEIFB.js → ast-rule-runner-KTQIW2FG.js} +3 -3
- package/dist/{child-mcp-config-7F4RU5OD.js → child-mcp-config-J7HNH7OD.js} +5 -3
- package/dist/child-mcp-config-J7HNH7OD.js.map +1 -0
- package/dist/{chunk-OMMG2B3Y.js → chunk-2QYJTGAC.js} +2 -2
- package/dist/{chunk-FVH4SGTU.js → chunk-4VQBNR5X.js} +2 -2
- package/dist/{chunk-RMW44CFE.js → chunk-4VSMZEBT.js} +8 -8
- package/dist/{chunk-2ZGG2AHM.js → chunk-6IGSOP2F.js} +3 -3
- package/dist/{chunk-6XDACH6N.js → chunk-6S2VMUGZ.js} +7 -22
- package/dist/chunk-6S2VMUGZ.js.map +1 -0
- package/dist/{chunk-HSD6QCYP.js → chunk-7443T7NN.js} +2 -2
- package/dist/{chunk-5SF272U4.js → chunk-7OGETM4L.js} +2 -2
- package/dist/{chunk-5IXQGJDZ.js → chunk-ACT5JK5R.js} +5 -5
- package/dist/{chunk-PLA7Y4E3.js → chunk-ALAZKFEN.js} +4 -4
- package/dist/{chunk-YOCB6CLS.js → chunk-ASJXBA2E.js} +2 -2
- package/dist/{chunk-U4WWPCDB.js → chunk-CNG5R5WH.js} +148 -93
- package/dist/chunk-CNG5R5WH.js.map +1 -0
- package/dist/{chunk-KWLTPADB.js → chunk-DNUIP3GV.js} +18 -89
- package/dist/chunk-DNUIP3GV.js.map +1 -0
- package/dist/{chunk-XYEAG73N.js → chunk-E6R7WAEO.js} +3 -3
- package/dist/{chunk-QXAMYEGJ.js → chunk-EROJXOR5.js} +2 -2
- package/dist/chunk-FWC6B7B3.js +109 -0
- package/dist/chunk-FWC6B7B3.js.map +1 -0
- package/dist/{chunk-AVBP6LRJ.js → chunk-G2CZGBAU.js} +2 -2
- package/dist/{chunk-FC5TYN5K.js → chunk-IS6RNGO4.js} +11 -6
- package/dist/chunk-IS6RNGO4.js.map +1 -0
- package/dist/{chunk-MYLNLZDK.js → chunk-JEWZI3LK.js} +2 -2
- package/dist/{chunk-AQ3Q2HSV.js → chunk-JZM4NB3Z.js} +2 -2
- package/dist/{chunk-SDMXHEQA.js → chunk-K3PPJZIW.js} +2 -2
- package/dist/{chunk-57E2DYJV.js → chunk-LXBGTBH6.js} +2 -2
- package/dist/{chunk-JIRCYZKV.js → chunk-MD4RTJOC.js} +121 -84
- package/dist/chunk-MD4RTJOC.js.map +1 -0
- package/dist/{chunk-GNUMZJU3.js → chunk-MRE25UI7.js} +23 -15
- package/dist/chunk-MRE25UI7.js.map +1 -0
- package/dist/{chunk-PXUEZBT6.js → chunk-NJ4UEWKT.js} +11 -11
- package/dist/{chunk-CNUWYMHT.js → chunk-NNVVDL7M.js} +3 -3
- package/dist/{chunk-6LMHK463.js → chunk-PXLLBDNC.js} +5 -5
- package/dist/{chunk-OUZOYB2X.js → chunk-QP2T4IAT.js} +5 -5
- package/dist/{chunk-6DANKFL6.js → chunk-QXWFJE6X.js} +2 -2
- package/dist/{chunk-HLXZRQ7J.js → chunk-RRDXXZBI.js} +2 -2
- package/dist/{chunk-LW73YKZK.js → chunk-RXISPIPW.js} +2 -2
- package/dist/{chunk-UDKB6OMP.js → chunk-TFSDYBCS.js} +3 -3
- package/dist/{chunk-LNS7WJLN.js → chunk-UI2YX2A5.js} +5 -5
- package/dist/{chunk-RRQU3SCH.js → chunk-WQSBXFHC.js} +2 -2
- package/dist/{chunk-JQ2BP4UG.js → chunk-WSB5RH4X.js} +2 -2
- package/dist/{chunk-A5AWEWO2.js → chunk-Y6DGFZL3.js} +2 -2
- package/dist/{chunk-KTL4ECT6.js → chunk-YFZWZVYU.js} +2 -2
- package/dist/chunk-ZO6ZKR7L.js +53 -0
- package/dist/chunk-ZO6ZKR7L.js.map +1 -0
- package/dist/{cli-circuit-breaker-OCWIFUFZ.js → cli-circuit-breaker-XPZOXMTZ.js} +3 -3
- package/dist/cli.js +54 -49
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-AWYGCGCJ.js → composite-router-J7V4G4AV.js} +2 -2
- package/dist/{consensus-vote-UBWKTWLU.js → consensus-vote-2SBGK5OX.js} +19 -18
- package/dist/{context-retriever-MIRNKOXC.js → context-retriever-5RXSSV6H.js} +9 -8
- package/dist/{doctor-deep-4XSPQEBZ.js → doctor-deep-7LPN36JD.js} +3 -3
- package/dist/doctor-gateway-report-JTTNSSRN.js +17 -0
- package/dist/{doctor-live-27BLS5IK.js → doctor-live-SHMQOWLA.js} +11 -11
- package/dist/{expert-bridge-COH6EWOV.js → expert-bridge-VOW7QBQO.js} +5 -5
- package/dist/{factory-K4GVINFH.js → factory-37NFTAM4.js} +10 -10
- package/dist/{factory-N32FIFJY.js → factory-DVVU3EMA.js} +5 -5
- package/dist/{improvement-review-2RLXA5P5.js → improvement-review-ODFOU2G4.js} +6 -6
- package/dist/index.d.ts +97 -11
- package/dist/index.js +34 -33
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-M23JFYAR.js → init-opencode-2BIZ2RQL.js} +6 -6
- package/dist/issue-triage-UPZ7ITJD.js +18 -0
- package/dist/{openai-compat-adapter-K74XCJ3M.js → openai-compat-adapter-JEME4MB5.js} +6 -6
- package/dist/{pr-reviewer-helpers-G5MFCGEV.js → pr-reviewer-helpers-FDMW5NQT.js} +4 -4
- package/dist/{registry-command-NSMBHR2Y.js → registry-command-FB6D2LSD.js} +2 -2
- package/dist/{repo-security-plan-TFSNTIZU.js → repo-security-plan-JTDMTZ2P.js} +3 -3
- package/dist/{research-helpers-synthesize-F7CLSKTZ.js → research-helpers-synthesize-HB7QBCYP.js} +4 -4
- package/dist/{routing-memory-C6Q4I7AR.js → routing-memory-VEHZK2WD.js} +2 -2
- package/dist/{session-memory-AAISW3XF.js → session-memory-WV6DQGFB.js} +3 -3
- package/dist/{setup-config-6GERVWAQ.js → setup-config-VISHCDVU.js} +3 -3
- package/dist/{setup-custom-api-GGLJZIQ4.js → setup-custom-api-CA4GQP4X.js} +4 -4
- package/dist/setup-data-dir-BRURV4GF.js +34 -0
- package/dist/{tool-memory-PRF4BY3S.js → tool-memory-Y7YMEYA5.js} +6 -5
- package/dist/{unified-registry-Q4MUGDXL.js → unified-registry-PAV3YH3U.js} +12 -12
- package/dist/{weather-report-XHZN5NLK.js → weather-report-HHI5HS22.js} +2 -2
- package/package.json +1 -1
- package/dist/child-mcp-config-7F4RU5OD.js.map +0 -1
- package/dist/chunk-6XDACH6N.js.map +0 -1
- package/dist/chunk-FC5TYN5K.js.map +0 -1
- package/dist/chunk-GNUMZJU3.js.map +0 -1
- package/dist/chunk-JIRCYZKV.js.map +0 -1
- package/dist/chunk-KWLTPADB.js.map +0 -1
- package/dist/chunk-M7CTY6OI.js +0 -14
- package/dist/chunk-M7CTY6OI.js.map +0 -1
- package/dist/chunk-U4WWPCDB.js.map +0 -1
- package/dist/doctor-gateway-report-RPT3KK42.js +0 -17
- package/dist/issue-triage-6PRRBXVA.js +0 -17
- package/dist/setup-data-dir-FLDIBMNW.js +0 -34
- /package/dist/{ast-rule-runner-25ZAEIFB.js.map → ast-rule-runner-KTQIW2FG.js.map} +0 -0
- /package/dist/{chunk-OMMG2B3Y.js.map → chunk-2QYJTGAC.js.map} +0 -0
- /package/dist/{chunk-FVH4SGTU.js.map → chunk-4VQBNR5X.js.map} +0 -0
- /package/dist/{chunk-RMW44CFE.js.map → chunk-4VSMZEBT.js.map} +0 -0
- /package/dist/{chunk-2ZGG2AHM.js.map → chunk-6IGSOP2F.js.map} +0 -0
- /package/dist/{chunk-HSD6QCYP.js.map → chunk-7443T7NN.js.map} +0 -0
- /package/dist/{chunk-5SF272U4.js.map → chunk-7OGETM4L.js.map} +0 -0
- /package/dist/{chunk-5IXQGJDZ.js.map → chunk-ACT5JK5R.js.map} +0 -0
- /package/dist/{chunk-PLA7Y4E3.js.map → chunk-ALAZKFEN.js.map} +0 -0
- /package/dist/{chunk-YOCB6CLS.js.map → chunk-ASJXBA2E.js.map} +0 -0
- /package/dist/{chunk-XYEAG73N.js.map → chunk-E6R7WAEO.js.map} +0 -0
- /package/dist/{chunk-QXAMYEGJ.js.map → chunk-EROJXOR5.js.map} +0 -0
- /package/dist/{chunk-AVBP6LRJ.js.map → chunk-G2CZGBAU.js.map} +0 -0
- /package/dist/{chunk-MYLNLZDK.js.map → chunk-JEWZI3LK.js.map} +0 -0
- /package/dist/{chunk-AQ3Q2HSV.js.map → chunk-JZM4NB3Z.js.map} +0 -0
- /package/dist/{chunk-SDMXHEQA.js.map → chunk-K3PPJZIW.js.map} +0 -0
- /package/dist/{chunk-57E2DYJV.js.map → chunk-LXBGTBH6.js.map} +0 -0
- /package/dist/{chunk-PXUEZBT6.js.map → chunk-NJ4UEWKT.js.map} +0 -0
- /package/dist/{chunk-CNUWYMHT.js.map → chunk-NNVVDL7M.js.map} +0 -0
- /package/dist/{chunk-6LMHK463.js.map → chunk-PXLLBDNC.js.map} +0 -0
- /package/dist/{chunk-OUZOYB2X.js.map → chunk-QP2T4IAT.js.map} +0 -0
- /package/dist/{chunk-6DANKFL6.js.map → chunk-QXWFJE6X.js.map} +0 -0
- /package/dist/{chunk-HLXZRQ7J.js.map → chunk-RRDXXZBI.js.map} +0 -0
- /package/dist/{chunk-LW73YKZK.js.map → chunk-RXISPIPW.js.map} +0 -0
- /package/dist/{chunk-UDKB6OMP.js.map → chunk-TFSDYBCS.js.map} +0 -0
- /package/dist/{chunk-LNS7WJLN.js.map → chunk-UI2YX2A5.js.map} +0 -0
- /package/dist/{chunk-RRQU3SCH.js.map → chunk-WQSBXFHC.js.map} +0 -0
- /package/dist/{chunk-JQ2BP4UG.js.map → chunk-WSB5RH4X.js.map} +0 -0
- /package/dist/{chunk-A5AWEWO2.js.map → chunk-Y6DGFZL3.js.map} +0 -0
- /package/dist/{chunk-KTL4ECT6.js.map → chunk-YFZWZVYU.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-OCWIFUFZ.js.map → cli-circuit-breaker-XPZOXMTZ.js.map} +0 -0
- /package/dist/{composite-router-AWYGCGCJ.js.map → composite-router-J7V4G4AV.js.map} +0 -0
- /package/dist/{consensus-vote-UBWKTWLU.js.map → consensus-vote-2SBGK5OX.js.map} +0 -0
- /package/dist/{context-retriever-MIRNKOXC.js.map → context-retriever-5RXSSV6H.js.map} +0 -0
- /package/dist/{doctor-deep-4XSPQEBZ.js.map → doctor-deep-7LPN36JD.js.map} +0 -0
- /package/dist/{doctor-gateway-report-RPT3KK42.js.map → doctor-gateway-report-JTTNSSRN.js.map} +0 -0
- /package/dist/{doctor-live-27BLS5IK.js.map → doctor-live-SHMQOWLA.js.map} +0 -0
- /package/dist/{expert-bridge-COH6EWOV.js.map → expert-bridge-VOW7QBQO.js.map} +0 -0
- /package/dist/{factory-K4GVINFH.js.map → factory-37NFTAM4.js.map} +0 -0
- /package/dist/{factory-N32FIFJY.js.map → factory-DVVU3EMA.js.map} +0 -0
- /package/dist/{improvement-review-2RLXA5P5.js.map → improvement-review-ODFOU2G4.js.map} +0 -0
- /package/dist/{init-opencode-M23JFYAR.js.map → init-opencode-2BIZ2RQL.js.map} +0 -0
- /package/dist/{issue-triage-6PRRBXVA.js.map → issue-triage-UPZ7ITJD.js.map} +0 -0
- /package/dist/{openai-compat-adapter-K74XCJ3M.js.map → openai-compat-adapter-JEME4MB5.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-G5MFCGEV.js.map → pr-reviewer-helpers-FDMW5NQT.js.map} +0 -0
- /package/dist/{registry-command-NSMBHR2Y.js.map → registry-command-FB6D2LSD.js.map} +0 -0
- /package/dist/{repo-security-plan-TFSNTIZU.js.map → repo-security-plan-JTDMTZ2P.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-F7CLSKTZ.js.map → research-helpers-synthesize-HB7QBCYP.js.map} +0 -0
- /package/dist/{routing-memory-C6Q4I7AR.js.map → routing-memory-VEHZK2WD.js.map} +0 -0
- /package/dist/{session-memory-AAISW3XF.js.map → session-memory-WV6DQGFB.js.map} +0 -0
- /package/dist/{setup-config-6GERVWAQ.js.map → setup-config-VISHCDVU.js.map} +0 -0
- /package/dist/{setup-custom-api-GGLJZIQ4.js.map → setup-custom-api-CA4GQP4X.js.map} +0 -0
- /package/dist/{setup-data-dir-FLDIBMNW.js.map → setup-data-dir-BRURV4GF.js.map} +0 -0
- /package/dist/{tool-memory-PRF4BY3S.js.map → tool-memory-Y7YMEYA5.js.map} +0 -0
- /package/dist/{unified-registry-Q4MUGDXL.js.map → unified-registry-PAV3YH3U.js.map} +0 -0
- /package/dist/{weather-report-XHZN5NLK.js.map → weather-report-HHI5HS22.js.map} +0 -0
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
getBuiltInAstRulesPath,
|
|
10
10
|
loadRules,
|
|
11
11
|
runAstQaRules
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JZM4NB3Z.js";
|
|
13
13
|
import "./chunk-XEPZSDN5.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-6IGSOP2F.js";
|
|
15
15
|
import "./chunk-UE7A2XHM.js";
|
|
16
16
|
import "./chunk-LWOX65CP.js";
|
|
17
17
|
import "./chunk-PX6F3LHL.js";
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
loadRules,
|
|
28
28
|
runAstQaRules
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=ast-rule-runner-
|
|
30
|
+
//# sourceMappingURL=ast-rule-runner-KTQIW2FG.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-OITVVSWO.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6IGSOP2F.js";
|
|
7
7
|
import "./chunk-UE7A2XHM.js";
|
|
8
8
|
import "./chunk-LWOX65CP.js";
|
|
9
9
|
import "./chunk-PX6F3LHL.js";
|
|
@@ -17,12 +17,14 @@ function resolveCliPath(override) {
|
|
|
17
17
|
const distDir = join(__dirname, "..");
|
|
18
18
|
return join(distDir, "cli.js");
|
|
19
19
|
}
|
|
20
|
+
var MCP_CHILD_ENV = "NEXUS_MCP_CHILD";
|
|
20
21
|
function buildConfig(options) {
|
|
21
22
|
const cliPath = resolveCliPath(options?.cliPath);
|
|
22
23
|
const entry = {
|
|
23
24
|
command: "node",
|
|
24
25
|
args: [cliPath, "--mode=server"],
|
|
25
|
-
|
|
26
|
+
// The child marker is applied LAST so caller-supplied env cannot unset it.
|
|
27
|
+
env: { ...options?.env, [MCP_CHILD_ENV]: "1" }
|
|
26
28
|
};
|
|
27
29
|
return {
|
|
28
30
|
mcpServers: {
|
|
@@ -47,4 +49,4 @@ async function generateMcpConfig(options) {
|
|
|
47
49
|
export {
|
|
48
50
|
generateMcpConfig
|
|
49
51
|
};
|
|
50
|
-
//# sourceMappingURL=child-mcp-config-
|
|
52
|
+
//# sourceMappingURL=child-mcp-config-J7HNH7OD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli-adapters/child-mcp-config.ts"],"sourcesContent":["/**\n * nexus-agents/cli-adapters - Child CLI MCP Config Generator\n *\n * Generates MCP server configuration for child Claude CLI sessions so\n * spawned agents can call back into nexus-agents' MCP tools (memory,\n * research, etc.). Used by `pipeline/expert-bridge.ts` to give expert\n * agents tool access. Originally lived under `swe-bench/` (#1413);\n * relocated here in #2515 — the helper is generic CLI-spawn\n * infrastructure, not benchmark-specific.\n *\n * The generated config grants NO tool approvals. It only tells the child\n * where the nexus-agents MCP server is; whether an expert may actually call\n * one of its tools follows the host's Claude permission settings (for\n * example `defaultMode`). Measured 2026-09-24: in auto mode the calls run,\n * in default mode they are refused (#6784). An unused `allowedTools` list\n * that read like a guard but was never passed to the CLI was removed then.\n *\n * @module cli-adapters/child-mcp-config\n */\n\nimport { writeFile, rm } from 'node:fs/promises';\nimport { nexusMkdtemp } from '../config/nexus-tmp-dir.js';\nimport { join } from 'node:path';\nimport { createLogger } from '../core/index.js';\n\nconst logger = createLogger({ component: 'swe-bench-mcp-config' });\n\n/**\n * MCP server entry in Claude CLI config format.\n */\ninterface McpServerEntry {\n readonly command: string;\n readonly args: readonly string[];\n readonly env?: Readonly<Record<string, string>>;\n}\n\n/**\n * MCP config file format for Claude CLI (--mcp-config).\n */\ninterface McpConfigFile {\n readonly mcpServers: Readonly<Record<string, McpServerEntry>>;\n}\n\n/**\n * Options for generating MCP config.\n */\nexport interface McpConfigOptions {\n /** Path to nexus-agents CLI entry point. */\n readonly cliPath?: string;\n /** Additional environment variables for the MCP server. */\n readonly env?: Readonly<Record<string, string>>;\n}\n\n/**\n * Resolves the nexus-agents CLI path.\n * Uses the built dist/cli.js relative to this package.\n */\nfunction resolveCliPath(override?: string): string {\n if (override !== undefined) return override;\n // Resolve relative to this file: src/swe-bench/ → dist/cli.js\n // At runtime we're in dist/swe-bench/, so go up one level\n const distDir = join(__dirname, '..');\n return join(distDir, 'cli.js');\n}\n\n/**\n * Env marker naming a child server (#6795). The child's stdio caller is an\n * expert CLI driven by a model, not the operator, so the child must not\n * measure it at tier 1; `connectTransport` reads this and records the caller\n * as unmeasured.\n */\nconst MCP_CHILD_ENV = 'NEXUS_MCP_CHILD';\n\n/**\n * Builds the MCP config object for a nexus-agents server.\n */\nfunction buildConfig(options?: McpConfigOptions): McpConfigFile {\n const cliPath = resolveCliPath(options?.cliPath);\n\n const entry: McpServerEntry = {\n command: 'node',\n args: [cliPath, '--mode=server'],\n // The child marker is applied LAST so caller-supplied env cannot unset it.\n env: { ...options?.env, [MCP_CHILD_ENV]: '1' },\n };\n\n return {\n mcpServers: {\n 'nexus-agents': entry,\n },\n };\n}\n\n/**\n * Generated MCP config with path and cleanup function.\n */\nexport interface GeneratedMcpConfig {\n /** Path to the generated config file. */\n readonly configPath: string;\n /** Cleanup function to remove temp files. */\n readonly cleanup: () => Promise<void>;\n}\n\n/**\n * Generates an MCP config file for Claude CLI child sessions.\n *\n * Creates a temporary JSON file that can be passed to `claude --mcp-config`.\n * Returns the file path and a cleanup function.\n */\nexport async function generateMcpConfig(options?: McpConfigOptions): Promise<GeneratedMcpConfig> {\n const config = buildConfig(options);\n\n const tempDir = await nexusMkdtemp('nexus-mcp-');\n const configPath = join(tempDir, 'mcp-config.json');\n\n await writeFile(configPath, JSON.stringify(config, null, 2), 'utf-8');\n\n const cleanup = async (): Promise<void> => {\n await rm(tempDir, { recursive: true, force: true }).catch((e: unknown) => {\n logger.debug('Best-effort cleanup failed', {\n error: e instanceof Error ? e.message : String(e),\n });\n });\n };\n\n return { configPath, cleanup };\n}\n"],"mappings":";;;;;;;;;;;AAoBA,SAAS,WAAW,UAAU;AAE9B,SAAS,YAAY;AAGrB,IAAM,SAAS,aAAa,EAAE,WAAW,uBAAuB,CAAC;AAgCjE,SAAS,eAAe,UAA2B;AACjD,MAAI,aAAa,OAAW,QAAO;AAGnC,QAAM,UAAU,KAAK,WAAW,IAAI;AACpC,SAAO,KAAK,SAAS,QAAQ;AAC/B;AAQA,IAAM,gBAAgB;AAKtB,SAAS,YAAY,SAA2C;AAC9D,QAAM,UAAU,eAAe,SAAS,OAAO;AAE/C,QAAM,QAAwB;AAAA,IAC5B,SAAS;AAAA,IACT,MAAM,CAAC,SAAS,eAAe;AAAA;AAAA,IAE/B,KAAK,EAAE,GAAG,SAAS,KAAK,CAAC,aAAa,GAAG,IAAI;AAAA,EAC/C;AAEA,SAAO;AAAA,IACL,YAAY;AAAA,MACV,gBAAgB;AAAA,IAClB;AAAA,EACF;AACF;AAkBA,eAAsB,kBAAkB,SAAyD;AAC/F,QAAM,SAAS,YAAY,OAAO;AAElC,QAAM,UAAU,MAAM,aAAa,YAAY;AAC/C,QAAM,aAAa,KAAK,SAAS,iBAAiB;AAElD,QAAM,UAAU,YAAY,KAAK,UAAU,QAAQ,MAAM,CAAC,GAAG,OAAO;AAEpE,QAAM,UAAU,YAA2B;AACzC,UAAM,GAAG,SAAS,EAAE,WAAW,MAAM,OAAO,KAAK,CAAC,EAAE,MAAM,CAAC,MAAe;AACxE,aAAO,MAAM,8BAA8B;AAAA,QACzC,OAAO,aAAa,QAAQ,EAAE,UAAU,OAAO,CAAC;AAAA,MAClD,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAEA,SAAO,EAAE,YAAY,QAAQ;AAC/B;","names":[]}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getErrorMessage,
|
|
8
8
|
getTimeProvider,
|
|
9
9
|
ok
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6IGSOP2F.js";
|
|
11
11
|
|
|
12
12
|
// src/context/session-memory.ts
|
|
13
13
|
import * as fs from "node:fs";
|
|
@@ -374,4 +374,4 @@ export {
|
|
|
374
374
|
SessionMemory,
|
|
375
375
|
createSessionMemory
|
|
376
376
|
};
|
|
377
|
-
//# sourceMappingURL=chunk-
|
|
377
|
+
//# sourceMappingURL=chunk-2QYJTGAC.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
err,
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6IGSOP2F.js";
|
|
8
8
|
|
|
9
9
|
// src/scm/types.ts
|
|
10
10
|
var ScmError = class extends Error {
|
|
@@ -281,4 +281,4 @@ export {
|
|
|
281
281
|
ScmError,
|
|
282
282
|
GitHubProvider
|
|
283
283
|
};
|
|
284
|
-
//# sourceMappingURL=chunk-
|
|
284
|
+
//# sourceMappingURL=chunk-4VQBNR5X.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureGatewayDiscovered,
|
|
3
3
|
gatewayDiscoveryGeneration
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JEWZI3LK.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveCliSlot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YFZWZVYU.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
getTimeProvider,
|
|
11
11
|
isRateLimitText
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6IGSOP2F.js";
|
|
13
13
|
|
|
14
14
|
// src/pipeline/expert-bridge.ts
|
|
15
15
|
function resolveCliFromModelString(model) {
|
|
@@ -34,7 +34,7 @@ async function getMcpConfigPath() {
|
|
|
34
34
|
if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
|
|
35
35
|
mcpConfigInitPromise ??= (async () => {
|
|
36
36
|
try {
|
|
37
|
-
const { generateMcpConfig } = await import("./child-mcp-config-
|
|
37
|
+
const { generateMcpConfig } = await import("./child-mcp-config-J7HNH7OD.js");
|
|
38
38
|
const config = await generateMcpConfig();
|
|
39
39
|
cachedMcpConfigPath = config.configPath;
|
|
40
40
|
cachedMcpConfigCleanup = config.cleanup;
|
|
@@ -126,8 +126,8 @@ async function getRouter() {
|
|
|
126
126
|
}
|
|
127
127
|
if (cachedRouter !== null) return cachedRouter;
|
|
128
128
|
routerInitPromise ??= (async () => {
|
|
129
|
-
const { createAllAdapters } = await import("./factory-
|
|
130
|
-
const { createCompositeRouter } = await import("./composite-router-
|
|
129
|
+
const { createAllAdapters } = await import("./factory-37NFTAM4.js");
|
|
130
|
+
const { createCompositeRouter } = await import("./composite-router-J7V4G4AV.js");
|
|
131
131
|
const adapters = createAllAdapters();
|
|
132
132
|
const superseded = generation !== routerGeneration;
|
|
133
133
|
if (adapters.size === 0) {
|
|
@@ -138,7 +138,7 @@ async function getRouter() {
|
|
|
138
138
|
if (superseded) return router;
|
|
139
139
|
cachedRouter = router;
|
|
140
140
|
try {
|
|
141
|
-
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-
|
|
141
|
+
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-XPZOXMTZ.js");
|
|
142
142
|
cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
|
|
143
143
|
} catch (error) {
|
|
144
144
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -294,4 +294,4 @@ export {
|
|
|
294
294
|
tokenSplitFromUsage,
|
|
295
295
|
executeExpert
|
|
296
296
|
};
|
|
297
|
-
//# sourceMappingURL=chunk-
|
|
297
|
+
//# sourceMappingURL=chunk-4VSMZEBT.js.map
|
|
@@ -2749,7 +2749,7 @@ function setDefaultRegistry(registry) {
|
|
|
2749
2749
|
}
|
|
2750
2750
|
async function reloadDefaultRegistry() {
|
|
2751
2751
|
globalRegistry = buildDefaultRegistry();
|
|
2752
|
-
const { resetGlobalRegistry } = await import("./unified-registry-
|
|
2752
|
+
const { resetGlobalRegistry } = await import("./unified-registry-PAV3YH3U.js");
|
|
2753
2753
|
resetGlobalRegistry();
|
|
2754
2754
|
return globalRegistry;
|
|
2755
2755
|
}
|
|
@@ -17588,7 +17588,7 @@ var CompositeRouter = class _CompositeRouter {
|
|
|
17588
17588
|
*/
|
|
17589
17589
|
async consultUnifiedContext(task) {
|
|
17590
17590
|
try {
|
|
17591
|
-
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-
|
|
17591
|
+
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-5RXSSV6H.js");
|
|
17592
17592
|
const ctx = await getContextForTask({
|
|
17593
17593
|
task: task.content,
|
|
17594
17594
|
category: inferTaskCategory(task.content),
|
|
@@ -19300,4 +19300,4 @@ export {
|
|
|
19300
19300
|
AgentCapability,
|
|
19301
19301
|
OrchestratorError
|
|
19302
19302
|
};
|
|
19303
|
-
//# sourceMappingURL=chunk-
|
|
19303
|
+
//# sourceMappingURL=chunk-6IGSOP2F.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
leastTrustedTier
|
|
3
|
+
} from "./chunk-ZO6ZKR7L.js";
|
|
1
4
|
import {
|
|
2
5
|
stringifyValue,
|
|
3
6
|
tokenize,
|
|
@@ -5,7 +8,7 @@ import {
|
|
|
5
8
|
} from "./chunk-SX5DB6UR.js";
|
|
6
9
|
import {
|
|
7
10
|
SessionMemory
|
|
8
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2QYJTGAC.js";
|
|
9
12
|
import {
|
|
10
13
|
TRUST_TIER_NUMERIC,
|
|
11
14
|
TrustTierSchema
|
|
@@ -19,7 +22,7 @@ import {
|
|
|
19
22
|
} from "./chunk-MUJCGBZW.js";
|
|
20
23
|
import {
|
|
21
24
|
generateId
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Y6DGFZL3.js";
|
|
23
26
|
import {
|
|
24
27
|
ErrorCode,
|
|
25
28
|
NexusError,
|
|
@@ -33,7 +36,7 @@ import {
|
|
|
33
36
|
ok,
|
|
34
37
|
openSqliteDatabase,
|
|
35
38
|
setSharedMobiMemDbPathResolver
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6IGSOP2F.js";
|
|
37
40
|
import {
|
|
38
41
|
nexusDataPath
|
|
39
42
|
} from "./chunk-LWOX65CP.js";
|
|
@@ -3315,21 +3318,6 @@ var AdaptiveMemoryBackend = class {
|
|
|
3315
3318
|
}
|
|
3316
3319
|
};
|
|
3317
3320
|
|
|
3318
|
-
// src/security/content-trust-tier.ts
|
|
3319
|
-
var EXTERNAL_CONTENT_TRUST_TIER = "3";
|
|
3320
|
-
function leastTrustedTier(tiers) {
|
|
3321
|
-
let least;
|
|
3322
|
-
for (const tier of tiers) {
|
|
3323
|
-
if (least === void 0 || TRUST_TIER_NUMERIC[tier] > TRUST_TIER_NUMERIC[least]) least = tier;
|
|
3324
|
-
}
|
|
3325
|
-
return least;
|
|
3326
|
-
}
|
|
3327
|
-
function resolveContentTrustTier(callerTier, sourceTiers) {
|
|
3328
|
-
const parsed = TrustTierSchema.safeParse(callerTier);
|
|
3329
|
-
if (!parsed.success) return void 0;
|
|
3330
|
-
return leastTrustedTier([parsed.data, ...sourceTiers]);
|
|
3331
|
-
}
|
|
3332
|
-
|
|
3333
3321
|
// src/context/memory-trust-tier.ts
|
|
3334
3322
|
var MEMORY_TRUST_TIER_TAG_PREFIX = "trust-tier:";
|
|
3335
3323
|
var UNTRUSTED_TIER_FLOOR = 3;
|
|
@@ -5842,9 +5830,6 @@ export {
|
|
|
5842
5830
|
MemoryImportance,
|
|
5843
5831
|
MemoryError,
|
|
5844
5832
|
calculateTextJaccardSimilarity,
|
|
5845
|
-
EXTERNAL_CONTENT_TRUST_TIER,
|
|
5846
|
-
leastTrustedTier,
|
|
5847
|
-
resolveContentTrustTier,
|
|
5848
5833
|
memoryTrustTierTag,
|
|
5849
5834
|
memoryEntryTrustTier,
|
|
5850
5835
|
beliefTrustTier,
|
|
@@ -5858,4 +5843,4 @@ export {
|
|
|
5858
5843
|
shutdownToolMemory,
|
|
5859
5844
|
ToolMemoryManager
|
|
5860
5845
|
};
|
|
5861
|
-
//# sourceMappingURL=chunk-
|
|
5846
|
+
//# sourceMappingURL=chunk-6S2VMUGZ.js.map
|