Commit graph

1475 commits

Author SHA1 Message Date
azizur100389
a333d94a00
feat(wiki): allow explicit HTTP LLM hosts (#2491)
* feat(wiki): allow explicit HTTP LLM hosts

Keep wiki LLM HTTP endpoints fail-closed by default while adding a narrow exact-host opt-in for LAN/self-hosted models.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(wiki): simplify insecure LLM flag name

Rename the wiki HTTP opt-in flag to --allow-insecure-connection per review feedback.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(wiki): simplify insecure connection env

Rename the wiki HTTP allowlist environment variable and align validation errors with the CLI flag naming.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-07-16 13:53:58 +01:00
azizur100389
3dd553b345
feat(taint): expand TS/JS sink model (#2490)
* feat(taint): expand TS/JS sink model

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(taint): cover TS sink disambiguation end-to-end

Add a real-pipeline integration test proving the expanded TS/JS taint sinks only emit findings for intended imported and receiver-conventional symbols.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-07-16 13:11:57 +01:00
Gergo Magyar
573a777ef5 ci(tests): widen the Windows shard watchdog and keep exit diagnostics (#2449)
The busiest Windows platform shard reached 14m57s against the 15 minute
watchdog on the rc.19 green run and has timed out once since. CI now
sets GITNEXUS_CROSS_PLATFORM_TIMEOUT_MINUTES=20 (the job timeout stays
25), the stale comfortably-under comment reflects reality, and the
runner always logs status, signal, spawn code and elapsed time so the
next status-null death is diagnosable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 12:29:01 +01:00
Gergo Magyar
42de243e9a ci(release): sync plugin manifests on every version bump (#2445)
The RC path bumped only gitnexus/package.json, so every v1.6.10-rc tag
through rc.28 shipped the four plugin manifest surfaces frozen at 1.6.9
and failed its own unit suite. The npm version lifecycle script now
runs a fail-closed sync whenever npm version executes, in CI or on a
maintainer's laptop; publish.yml verifies the result and stages the
surfaces into the detached release commit, and the stable path refuses
to publish a tag whose manifests drifted. The sync is textual so a
release commit carries a one-line change per surface instead of
reformatting churn.

Design follows the proposal by @100yenadmin in #2445, moved onto the
standard npm version hook.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 12:29:01 +01:00
Gergő Magyar
3ee1e2cb60
Merge pull request #2513 from electricsheephq/upstream/file-embedding-delete-regression
test(embeddings): cover File-row deletion
2026-07-16 12:07:18 +01:00
Eva
5e3531133d test(embeddings): cover File-row deletion 2026-07-16 17:51:46 +07:00
Gergő Magyar
c4fb511a0a
Merge pull request #2512 from abhigyanpatwari/merge/eva-fixes-2
fix: land cache, CLI, and embeddings series (#2476 #2470 #2455 #2468)
2026-07-16 11:43:02 +01:00
Gergo Magyar
36d25b5a70 test(cli): pin the non-zero exit for not-found context payloads
The skip-git ignore test asserted the error payload while relying on
exit 0; since the output() guard an error payload also exits 1, so the
test now captures the payload from the exec failure and pins both.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 10:11:32 +00:00
Gergo Magyar
5869dde31d fix(embeddings): make HTTP generation resumable (#2468) 2026-07-16 10:00:50 +00:00
Gergo Magyar
e814c5a10d fix(embeddings): include File rows in the incremental delete sweeps
The zero-symbol File fallback from #2455 writes File embedding rows,
but the filePath-scoped delete sweeps joined through EMBEDDABLE_LABELS
only. Docs repos accumulated duplicate rows on re-analyze and deleted
files left orphans. Free for code repos: no File rows exist to match.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 10:00:26 +00:00
Gergo Magyar
de5321ed24 fix(embeddings): fall back to text-bearing file nodes (#2455) 2026-07-16 09:58:38 +00:00
Gergo Magyar
e20e326290 fix(cli): fail every tool command loudly on backend error payloads
Moves the #2469 guard from cypherCommand into output() so all seven
tool commands that print backend results share the exit semantics.
Adds query and context regression cases.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 09:58:14 +00:00
Gergo Magyar
639aab6af0 fix(cli): fail cypher errors loudly (#2470) 2026-07-16 09:56:09 +00:00
Gergo Magyar
ee7161ef0d fix(cache): degrade when the durable generation reset fails
An fs failure while resetting a chunk generation now warns and
continues like the neighboring durable-store paths instead of failing
the analyze. Workers recreate the directory on write.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 09:55:44 +00:00
Gergo Magyar
dc15de9dec fix(cache): bound parsedfile generations (#2476) 2026-07-16 09:51:46 +00:00
dependabot[bot]
318754e781
chore(deps)(deps): bump axios from 1.16.1 to 1.18.1 in /gitnexus-web (#2499)
Bumps [axios](https://github.com/axios/axios) from 1.16.1 to 1.18.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.16.1...v1.18.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.18.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 10:30:53 +01:00
dependabot[bot]
43a6f6828f
chore(deps)(deps-dev): bump @vercel/node in /gitnexus-web (#2502)
Bumps [@vercel/node](https://github.com/vercel/vercel/tree/HEAD/packages/node) from 5.8.22 to 5.8.23.
- [Release notes](https://github.com/vercel/vercel/releases)
- [Changelog](https://github.com/vercel/vercel/blob/main/packages/node/CHANGELOG.md)
- [Commits](https://github.com/vercel/vercel/commits/@vercel/node@5.8.23/packages/node)

---
updated-dependencies:
- dependency-name: "@vercel/node"
  dependency-version: 5.8.23
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 10:30:21 +01:00
Gergő Magyar
2e2db8b7c9
Merge pull request #2511 from abhigyanpatwari/merge/eva-series-2026-07
feat: land determinism and MCP policy series (#2458 #2482 #2464 #2465 #2478 #2480 #2462 #2460)
2026-07-16 10:26:43 +01:00
Gergo Magyar
c836801c4a feat(mcp): add deterministic response budgets (#2460)
Composed with the read-only and repository policies in the CallTool
handler: read-only assert, then budget resolution, then scoped dispatch
with the transport arg stripped.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 08:59:05 +00:00
Gergo Magyar
f49ca472fa feat(mcp): normalize impact and context parameter aliases (#2462) 2026-07-16 08:55:49 +00:00
Gergo Magyar
490e74a901 fix(scope): stabilize graph lookup collisions (#2480) 2026-07-16 08:55:23 +00:00
Gergo Magyar
b685ba4cc8 test(communities): rebaseline pipeline-pdg goldens for projection order
The C#, Java and Go flag-off digests shift with the canonical community
projection from #2478 stacked on the walker sort from #2482. Regenerated
via vitest -u; mini-repo pipeline golden was already correct.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 08:55:09 +00:00
Gergo Magyar
193db519a5 fix(communities): canonicalize projection order (#2478) 2026-07-16 08:50:51 +00:00
Gergo Magyar
48a145a47f feat(mcp): enforce repository allowlist and default (#2465)
Merged with the read-only policy: both filters compose in server.ts.
Review hardening: assertResourceUri compares the opaque host case
insensitively (GITNEXUS://GROUP bypass) and gains the fail-closed
fallback for unparseable URIs; the backend proxy now also intercepts
queryClusters/queryProcesses/queryClusterDetail/queryProcessDetail;
scrubGroupDescription is shared from read-only-policy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 08:50:07 +00:00
Gergo Magyar
aa0d6ee0a3 fix(mcp): reject group-only args at read-only dispatch
crossDepth and subgroup are inert outside @group routing, but rejecting
them keeps the scrubbed schema and the dispatch contract in agreement.
Also documents that resource content scrubbing is cosmetic.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 08:43:30 +00:00
Gergo Magyar
a7775de993 feat(mcp): add fail-closed read-only mode (#2464) 2026-07-16 08:42:32 +00:00
Gergo Magyar
6b013e7d30 fix(scan): lock in Rust publish order and guard PHP suffix roots
Adds the missing #2481 Rust regression test (importer before definer),
fails closed when a PHP namespace suffix matches directories under
different roots, and points the baselines note at #2481/#2482.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 08:42:07 +00:00
Gergo Magyar
b53429e901 fix(scan): canonicalize traversal without order-sensitive bindings (#2482) 2026-07-16 08:31:46 +00:00
Gergo Magyar
d1a4889550 feat(eval): require bearer auth for remote binding (#2458)
Non-loopback eval-server binds now require GITNEXUS_AUTH_TOKEN with an
exact Bearer header compared in constant time. Review fixes: loopback
binds defer unreadable env file errors to a warning, and help text
notes IPv4 hostname resolution.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 08:28:30 +00:00
Gergo Magyar
277dfbbec7 fix(eval): defer env file read errors to binds that need a token
Loopback binds now warn and start when .env or .env.local exists but
cannot be read; non-loopback binds keep the fail-closed error. Help
text notes that hostnames resolve to IPv4.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 08:25:52 +00:00
Copilot
6496c55564
fix(mcp): context resource reads stale lastCommit/stats after out-of-process analyze (#2438) (#2439)
* Initial plan

* fix(mcp): read fresh metadata from disk in context resource to fix stale staleness banner and stats (#2438)

The context resource (gitnexus://repo/{name}/context) was serving stale
lastCommit and stats after an out-of-process `analyze --index-only` refresh.
The LocalBackend's in-memory RepoHandle is cached and only refreshes on
registry misses — never on a disk update from an external process.

Fix: read fresh metadata via loadMeta(repo.storagePath) on every context
resource read, mirroring the ensureInitialized hot-swap pattern. Use the
fresh lastCommit for the staleness check and fresh stats for the stats
block; fall back to cached values when the disk read fails.

Tests:
- 5 new unit tests in resources.test.ts covering fresh meta, fallback behavior
- 3 new integration tests in context-resource-staleness.test.ts covering
  the exact reproduce sequence from the issue report

* fix(test): use @ladybugdb/core mock to prevent native addon load in integration test

The context-resource-staleness integration test used importOriginal() in
the vi.mock factories for pool-adapter.js and mcp/core/lbug-adapter.js.
That caused the real pool-adapter.ts to load @ladybugdb/core, which
tries to dlopen lbugjs.node — a native addon that requires postinstall
(not run with --ignore-scripts in CI).

Fix:
- Add a vi.mock('@ladybugdb/core') at the package boundary, matching the
  pattern in lbug-pool-fts-load.test.ts and pool-wal-recovery.test.ts.
- Replace the two importOriginal()-based lbug mocks with direct factories
  that provide all necessary exports (initLbug, executeQuery,
  executeParameterized, closeLbug, isLbugReady) without loading the real
  module.

All 3 integration tests now pass in CI (no lbugjs.node required).

* test(integration): run context staleness flow end-to-end without mocks

* Address PR review feedback (#2439)

- Restore libc selectors for optional native packages

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-07-16 09:20:18 +01:00
dependabot[bot]
c2dc9c1191
chore(deps)(deps-dev): bump vite from 8.1.3 to 8.1.4 in /gitnexus-web (#2497)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.1.3 to 8.1.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.1.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.1.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-07-16 07:43:52 +01:00
dependabot[bot]
40f7502370
chore(deps): bump docker/setup-buildx-action from 4.1.0 to 4.2.0 (#2500)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](d7f5e7f509...bb05f3f551)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 07:03:41 +01:00
dependabot[bot]
7edf6236b5
chore(deps): bump docker/login-action from 4.2.0 to 4.4.0 (#2507)
Bumps [docker/login-action](https://github.com/docker/login-action) from 4.2.0 to 4.4.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](650006c6eb...af1e73f918)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 07:03:18 +01:00
dependabot[bot]
76c61bed49
chore(deps): bump dorny/paths-filter from 4.0.1 to 4.0.2 (#2505)
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/dorny/paths-filter/releases)
- [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md)
- [Commits](fbd0ab8f3e...7b450fff21)

---
updated-dependencies:
- dependency-name: dorny/paths-filter
  dependency-version: 4.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 07:02:56 +01:00
dependabot[bot]
796f1e5874
chore(deps)(deps): bump lucide-react in /gitnexus-web (#2503)
Bumps [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) from 1.21.0 to 1.23.0.
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/1.23.0/packages/lucide-react)

---
updated-dependencies:
- dependency-name: lucide-react
  dependency-version: 1.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 07:02:38 +01:00
dependabot[bot]
ad7dae243a
chore(deps)(deps-dev): bump @vitejs/plugin-react in /gitnexus-web (#2498)
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 5.2.0 to 6.0.2.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@6.0.2/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 07:01:38 +01:00
EVA
24d8d1ea38
docs: build shared package before CLI setup (#2448)
Co-authored-by: Eva <eva@100yen.org>
Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-07-16 07:00:21 +01:00
Eva
b37dcef771 test(communities): rebaseline canonical projection 2026-07-16 10:19:12 +07:00
Gergő Magyar
898e2a8321
Merge branch 'main' into upstream/eval-server-auth 2026-07-16 08:10:19 +05:00
bong-water-water-bong
226ec6cf99
chore(deps): npm audit fix — resolve @babel/core and brace-expansion advisories (#2444) 2026-07-16 08:09:39 +05:00
Eva
8a29f3c3ce chore(security): suppress deleted auth placeholder 2026-07-16 10:08:59 +07:00
Eva
d4576630eb fix(mcp): ignore undefined alias inputs 2026-07-16 10:07:06 +07:00
Eva
846b545680 fix(php): index import declaration directories 2026-07-16 09:58:33 +07:00
Eva
711a13c077 Merge remote-tracking branch 'upstream/main' into review/pr-2482 2026-07-16 09:54:37 +07:00
Eva
ff385a5472 Merge remote-tracking branch 'upstream/main' into upstream/community-order-2477 2026-07-16 09:51:57 +07:00
Eva
a6441b345c Merge remote-tracking branch 'upstream/main' into upstream/parsedfile-generation-2475 2026-07-16 09:50:36 +07:00
Eva
5d1911b2ef Merge remote-tracking branch 'upstream/main' into upstream/cypher-error-exit-2469 2026-07-16 09:49:16 +07:00
Eva
1821b01dbe fix(embeddings): bind resume checkpoints to provider 2026-07-16 09:48:03 +07:00
Eva
a117cf8a21 Merge remote-tracking branch 'upstream/main' into upstream/embedding-http-resilience 2026-07-16 09:44:17 +07:00