gitnexus 1.6.10-rc.70 → 1.6.10-rc.72

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.
@@ -3,8 +3,10 @@
3
3
  *
4
4
  * `module.registerHooks` — the synchronous ESM/CJS resolution-hook API the
5
5
  * embedding-stack resolvers rely on — was added in Node 22.15.0 (and 23.5.0 on
6
- * the 23.x line). The gitnexus engines floor is `>=22.0.0`, which admits Node
7
- * 22.0–22.14 AND 23.0–23.4, where the export is absent.
6
+ * the 23.x line). The gitnexus engines floor is `^22.18.0 || >=24.11.0`, so
7
+ * every supported runtime exposes it — but `engines` is advisory (not
8
+ * engine-strict), so a below-floor Node (22.0–22.14, or the unsupported
9
+ * 23.0–23.4 line) can still run, where the export is absent.
8
10
  *
9
11
  * In this `"type": "module"` package, a *static named* import of a missing
10
12
  * builtin export (`import { registerHooks } from 'node:module'`) is a
@@ -3,8 +3,10 @@
3
3
  *
4
4
  * `module.registerHooks` — the synchronous ESM/CJS resolution-hook API the
5
5
  * embedding-stack resolvers rely on — was added in Node 22.15.0 (and 23.5.0 on
6
- * the 23.x line). The gitnexus engines floor is `>=22.0.0`, which admits Node
7
- * 22.0–22.14 AND 23.0–23.4, where the export is absent.
6
+ * the 23.x line). The gitnexus engines floor is `^22.18.0 || >=24.11.0`, so
7
+ * every supported runtime exposes it — but `engines` is advisory (not
8
+ * engine-strict), so a below-floor Node (22.0–22.14, or the unsupported
9
+ * 23.0–23.4 line) can still run, where the export is absent.
8
10
  *
9
11
  * In this `"type": "module"` package, a *static named* import of a missing
10
12
  * builtin export (`import { registerHooks } from 'node:module'`) is a
@@ -52,8 +52,8 @@
52
52
  * per-resolution cost is a single string comparison.
53
53
  *
54
54
  * `module.registerHooks` is marked `@experimental` and requires Node >= 22.15
55
- * (the gitnexus engines floor is >= 22.0.0). On older runtimes it is absent and
56
- * this is a graceful no-op: embeddings then resolve onnxruntime-common exactly
55
+ * (below the gitnexus engines floor of `^22.18.0 || >=24.11.0`). On below-floor
56
+ * runtimes it is absent and this is a graceful no-op: embeddings then resolve onnxruntime-common exactly
57
57
  * as before — fine on hoisted layouts. Any failure during installation is
58
58
  * swallowed.
59
59
  */
@@ -99,9 +99,9 @@ export const ensureOnnxRuntimeCommonResolvable = () => {
99
99
  // initEmbedder() call, and the hook is process-global — once is enough.
100
100
  attempted = true;
101
101
  try {
102
- // Node < 22.15 / < 23.5 (the gitnexus engines floor is >= 22.0.0): no
103
- // synchronous hooks API. Degrade gracefully — the import still works on
104
- // hoisted layouts.
102
+ // Node < 22.15 / < 23.5 (below the gitnexus engines floor of
103
+ // ^22.18.0 || >=24.11.0): no synchronous hooks API. Degrade gracefully —
104
+ // the import still works on hoisted layouts.
105
105
  const registerHooks = getRegisterHooks();
106
106
  if (typeof registerHooks !== 'function')
107
107
  return;
@@ -36,8 +36,8 @@
36
36
  * So CUDA-12 hosts, Windows (DirectML), macOS, and CPU-only hosts are
37
37
  * untouched. Idempotent; any failure is swallowed and leaves the default
38
38
  * resolution exactly as before. `module.registerHooks` requires Node >= 22.15
39
- * (the gitnexus engines floor is >= 22.0.0); on older runtimes the redirect is
40
- * a no-op, but the default copy's CUDA major is still probed so an
39
+ * (below the gitnexus engines floor of `^22.18.0 || >=24.11.0`); on below-floor
40
+ * runtimes the redirect is a no-op, but the default copy's CUDA major is still probed so an
41
41
  * already-matching host (e.g. CUDA 12 + transformers' CUDA-12 build) keeps
42
42
  * auto-selecting the GPU.
43
43
  * `npm link` / symlinked local-dev checkouts are a known caveat: `resolveOurOrtNodeDir`/
@@ -170,7 +170,7 @@ export const ensureEmbeddingStackResolvable = () => {
170
170
  return;
171
171
  hookAttempted = true;
172
172
  try {
173
- // Node < 22.15 / < 23.5 (engines floor is >= 22.0.0): no synchronous hooks
173
+ // Node < 22.15 / < 23.5 (below the engines floor of ^22.18.0 || >=24.11.0): no synchronous hooks
174
174
  // API. Degrade gracefully — normally-installed stacks still resolve; only
175
175
  // the runtime-prefix fallback is unavailable. Reachable now that the import
176
176
  // is a namespace access (see node-module-compat.ts) rather than a static
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitnexus",
3
- "version": "1.6.10-rc.70",
3
+ "version": "1.6.10-rc.72",
4
4
  "description": "Graph-powered code intelligence for AI agents. Index any codebase, query via MCP or CLI.",
5
5
  "author": "Abhigyan Patwari",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",
@@ -107,7 +107,6 @@
107
107
  "@types/express": "^5.0.6",
108
108
  "@types/js-yaml": "^4.0.9",
109
109
  "@types/node": "^26.0.0",
110
- "@types/uuid": "^11.0.0",
111
110
  "@vitest/coverage-v8": "^4.0.18",
112
111
  "gitnexus-shared": "file:../gitnexus-shared",
113
112
  "tsx": "^4.0.0",
@@ -120,6 +119,6 @@
120
119
  }
121
120
  },
122
121
  "engines": {
123
- "node": ">=22.0.0"
122
+ "node": "^22.18.0 || >=24.11.0"
124
123
  }
125
124
  }
@@ -1,4 +1,4 @@
1
- import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";import"./src-BNCXICdA.js";import{i as n,t as r}from"./sdk-CzHHH8tD.js";import{CHAT_ONLY_PROMPT_NOTE as i,buildDynamicSystemPrompt as a}from"./context-builder-BHiFUA8O.js";var o=`File.Folder.Function.Class.Interface.Method.CodeElement.Community.Process.Section.Struct.Enum.Macro.Typedef.Union.Namespace.Trait.Impl.TypeAlias.Const.Static.Variable.Property.Record.Delegate.Annotation.Constructor.Template.Module.Route.Tool.BasicBlock`.split(`.`),s=`CONTAINS.DEFINES.IMPORTS.CALLS.EXTENDS.IMPLEMENTS.HAS_METHOD.HAS_PROPERTY.ACCESSES.METHOD_OVERRIDES.OVERRIDES.METHOD_IMPLEMENTS.MEMBER_OF.STEP_IN_PROCESS.HANDLES_ROUTE.FETCHES.HANDLES_TOOL.ENTRY_POINT_OF.WRAPS.QUERIES.INJECTS.CFG.REACHING_DEF.TAINTED.SANITIZES.TAINT_PATH.CDG.POST_DOMINATE`.split(`.`),c=new Set([`date-time`,`time`,`date`,`duration`,`email`,`hostname`,`uri`,`ipv4`,`ipv6`,`uuid`]);function l(e){return JSON.parse(JSON.stringify(e))}function u(e){return d(l(e))}function d(e){let t={},r=n(e,`$ref`);if(r!==void 0)return t.$ref=r,t;let i=n(e,`$defs`);if(i!==void 0){let e={};t.$defs=e;for(let[t,n]of Object.entries(i))e[t]=d(n)}let a=n(e,`type`),o=n(e,`anyOf`),s=n(e,`oneOf`),l=n(e,`allOf`);if(Array.isArray(o))t.anyOf=o.map(e=>d(e));else if(Array.isArray(s))t.anyOf=s.map(e=>d(e));else if(Array.isArray(l))t.allOf=l.map(e=>d(e));else{if(a===void 0)throw Error(`JSON schema must have a type defined if anyOf/oneOf/allOf are not used`);t.type=a}let u=n(e,`description`);u!==void 0&&(t.description=u);let f=n(e,`title`);if(f!==void 0&&(t.title=f),a===`object`){let r=n(e,`properties`)||{};t.properties=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,d(t)])),n(e,`additionalProperties`),t.additionalProperties=!1;let i=n(e,`required`);i!==void 0&&(t.required=i)}else if(a===`string`){let r=n(e,`format`);r!==void 0&&c.has(r)?t.format=r:r!==void 0&&(e.format=r)}else if(a===`array`){let r=n(e,`items`);r!==void 0&&(t.items=d(r));let i=n(e,`minItems`);i!==void 0&&(i===0||i===1)?t.minItems=i:i!==void 0&&(e.minItems=i)}if(Object.keys(e).length>0){let n=t.description;t.description=(n?n+`
1
+ import{r as e,t}from"./rolldown-runtime-QTnfLwEv.js";import"./src-Cv1eWg0o.js";import{i as n,t as r}from"./sdk-CzHHH8tD.js";import{CHAT_ONLY_PROMPT_NOTE as i,buildDynamicSystemPrompt as a}from"./context-builder-BHiFUA8O.js";var o=`File.Folder.Function.Class.Interface.Method.CodeElement.Community.Process.Section.Struct.Enum.Macro.Typedef.Union.Namespace.Trait.Impl.TypeAlias.Const.Static.Variable.Property.Record.Delegate.Annotation.Constructor.Template.Module.Route.Tool.BasicBlock`.split(`.`),s=`CONTAINS.DEFINES.IMPORTS.CALLS.EXTENDS.IMPLEMENTS.HAS_METHOD.HAS_PROPERTY.ACCESSES.METHOD_OVERRIDES.OVERRIDES.METHOD_IMPLEMENTS.MEMBER_OF.STEP_IN_PROCESS.HANDLES_ROUTE.FETCHES.HANDLES_TOOL.ENTRY_POINT_OF.WRAPS.QUERIES.INJECTS.CFG.REACHING_DEF.TAINTED.SANITIZES.TAINT_PATH.CDG.POST_DOMINATE`.split(`.`),c=new Set([`date-time`,`time`,`date`,`duration`,`email`,`hostname`,`uri`,`ipv4`,`ipv6`,`uuid`]);function l(e){return JSON.parse(JSON.stringify(e))}function u(e){return d(l(e))}function d(e){let t={},r=n(e,`$ref`);if(r!==void 0)return t.$ref=r,t;let i=n(e,`$defs`);if(i!==void 0){let e={};t.$defs=e;for(let[t,n]of Object.entries(i))e[t]=d(n)}let a=n(e,`type`),o=n(e,`anyOf`),s=n(e,`oneOf`),l=n(e,`allOf`);if(Array.isArray(o))t.anyOf=o.map(e=>d(e));else if(Array.isArray(s))t.anyOf=s.map(e=>d(e));else if(Array.isArray(l))t.allOf=l.map(e=>d(e));else{if(a===void 0)throw Error(`JSON schema must have a type defined if anyOf/oneOf/allOf are not used`);t.type=a}let u=n(e,`description`);u!==void 0&&(t.description=u);let f=n(e,`title`);if(f!==void 0&&(t.title=f),a===`object`){let r=n(e,`properties`)||{};t.properties=Object.fromEntries(Object.entries(r).map(([e,t])=>[e,d(t)])),n(e,`additionalProperties`),t.additionalProperties=!1;let i=n(e,`required`);i!==void 0&&(t.required=i)}else if(a===`string`){let r=n(e,`format`);r!==void 0&&c.has(r)?t.format=r:r!==void 0&&(e.format=r)}else if(a===`array`){let r=n(e,`items`);r!==void 0&&(t.items=d(r));let i=n(e,`minItems`);i!==void 0&&(i===0||i===1)?t.minItems=i:i!==void 0&&(e.minItems=i)}if(Object.keys(e).length>0){let n=t.description;t.description=(n?n+`
2
2
 
3
3
  `:``)+`{`+Object.entries(e).map(([e,t])=>`${e}: ${JSON.stringify(t)}`).join(`, `)+`}`}return t}var f=Object.defineProperty,p=(e,t)=>{let n={};for(var r in e)f(n,r,{get:e[r],enumerable:!0});return t||f(n,Symbol.toStringTag,{value:`Module`}),n};function m(e){let t=Symbol.for(e);return{brand(n,r){let i=r?Symbol.for(`${e}.${r}`):t;class a extends n{[i]=!0;constructor(...e){super(...e)}static isInstance(e){return typeof e==`object`&&!!e&&i in e&&e[i]===!0}}return Object.defineProperty(a,"name",{value:n.name}),a},sub(t){return m(`${e}.${t}`)},isInstance(e){return typeof e==`object`&&!!e&&t in e&&e[t]===!0}}}var h=m(`langchain`),g=p({ContextOverflowError:()=>x,LangChainError:()=>y,ModelAbortError:()=>b,addLangChainErrorFields:()=>_,ns:()=>v});function _(e,t){return e.lc_error_code=t,e.message=`${e.message}\n\nTroubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/${t}/\n`,e}var v=h.sub(`error`),y=class extends v.brand(Error){name=`LangChainError`;constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},b=class extends v.brand(y,`model-abort`){name=`ModelAbortError`;partialOutput;constructor(e,t){super(e),this.partialOutput=t}},x=class e extends v.brand(y,`context-overflow`){name=`ContextOverflowError`;cause;constructor(e){super(e??`Input exceeded the model's context window.`)}static fromError(t){let n=new e(t.message);return n.cause=t,n}};function S(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`tool_call`)}function ee(e){return!!(e&&typeof e==`object`&&`toolCall`in e&&e.toolCall!=null&&typeof e.toolCall==`object`&&`id`in e.toolCall&&typeof e.toolCall.id==`string`)}var C=class extends Error{output;constructor(e,t){super(e),this.output=t}};function te(e,t=re){e=e.trim();let n=e.indexOf("```");if(n===-1)return t(e);let r=e.substring(n+3);r.startsWith(`json
4
4
  `)?r=r.substring(5):r.startsWith(`json`)?r=r.substring(4):r.startsWith(`