Commit Graph
5146 Commits
Author SHA1 Message Date
ManishMadan2882 bf8aec0dd7 (fix/switch): clear color contrast 2026-08-12 17:00:55 +05:30
ManishMadan2882 7167befe59 chore(frontend): target Node 22 and fix Vite native config loader warning 2026-08-12 16:43:34 +05:30
Alex f1c13d4f30 Merge pull request #2653 from ManishMadan2882/fix/react-widget-audit-security
fix(react-widget): resolve npm audit advisories in shipped dependency tree
2026-08-11 17:30:40 +01:00
Alex 8d4ac88a04 Merge pull request #2666 from arc53/chore/docs-deps-bump
chore: bump docs dependencies to latest
2026-08-11 17:28:24 +01:00
Alex 1b612e4e96 chore: bump docs dependencies to latest
Upgrade the docs site to Next 16 and React 19:

- next 15.5.9 -> 16.3.0
- react / react-dom 18.2.0 -> 19.2.8
- @vercel/analytics 1.1.1 -> 2.0.1
- docsgpt-react 0.5.1 -> 0.6.3
- pagefind 1.4.0 -> 1.5.2
- typescript 5.9.3 -> 6.0.3

Two deliberate holds:

Next 16 makes Turbopack the default builder, but nextra 4.6.1 is not
compatible with it. Its loader calls transformerTwoslash() at module top
level, and twoslash gets an undefined ts.sys inside Turbopack's
webpack-loader shim, so every .mdx file fails to compile. Nextra offers no
option to disable twoslash, so the dev and build scripts opt out with
--webpack until nextra supports Turbopack.

typescript stays on 6.0.3 rather than 7.0.2 for the same reason: TS 7 is the
native rewrite and drops the ts.sys API that @typescript/vfs and twoslash
rely on, which breaks the build even under webpack. twoslash declares
typescript ^5.5.0 || ^6.0.0, so 6.0.3 is the ceiling this toolchain supports.

nextra and nextra-theme-docs were already at the latest 4.6.1.
2026-08-11 17:23:28 +01:00
Alex 0d7fd529ef Merge pull request #2664 from arc53/feat/agent-guardrails
feat: guardrails init
2026-08-11 17:06:09 +01:00
Alex d21a49158c fix: close two guardrail bypasses and an inert instance floor
URLCheck read the host from a regex capture group whose character class
excluded "@", so a userinfo-prefixed URL passed its userinfo off as the
host: https://allowed.com@evil.tld/ satisfied an allow_hosts entry for
allowed.com, and http://ok.com@blocked.tld/ evaded block_hosts. Match the
whole URL and take the host from the parsed authority instead. A URL that
will not parse is now redacted rather than waved through.

The PRIVATE_KEY secret pattern matched only the BEGIN header, so a redact
action masked the header and released the key material and END line in
the clear. Span the whole armored block, falling back to the header when
the block is unterminated or over the cap, and raise max_match_chars so
the streaming guard's window still covers a full PEM. The pattern also
now catches ENCRYPTED, DSA and PGP BLOCK headers, which it missed
entirely.

The documented GUARDRAILS_FLOOR example omitted "enabled": true, and the
field defaults to false, so an operator copying it got a floor that
parsed clean, merged to nothing and warned nowhere. Fix the example and
warn when a floor is set but disabled.
2026-08-11 16:15:58 +01:00
Alex 3adc09af5d fix: more guardrail hardening 2026-08-11 15:13:27 +01:00
Alex 9446c16108 fix: guardrail fixes 2026-08-11 13:33:52 +01:00
Alex e44cff2e91 fix: mini copy edits 2026-08-11 12:29:46 +01:00
Alex 4f5d565298 Merge pull request #2665 from arc53/ManishMadan2882/main
(fix)ui/chat: drop bubble avatar chrome, unify live-step state
2026-08-11 12:16:23 +01:00
Alex 9aa7a01949 fix: e2e tests 2026-08-11 11:47:09 +01:00
Alex 64a6b81fbb feat: guardrails init 2026-08-11 00:09:56 +01:00
ManishMadan2882 c5b6c27f05 (chore)deps: purge unused snarkdown 2026-08-11 03:27:51 +05:30
ManishMadan2882 7d1aafebce fix(react-widget): resolve npm audit advisories in shipped dependency tree
Lockfile-only update; package.json is unchanged.

extensions/react-widget is published as the npm package `docsgpt` and as an
HTML embed, so its production dependency tree reaches every consumer. That
tree carried 5 advisories (2 high, 2 moderate, 1 low), 7 across the full tree.

  dompurify        3.4.0  -> 3.4.13  (moderate, XSS)
  js-yaml          4.1.1  -> 4.3.1   (high, quadratic-complexity DoS)
  linkify-it       5.0.0  -> 5.0.2   (high)
  markdown-it     14.1.0  -> 14.3.0  (moderate)
  svgo             4.0.1  -> 4.0.2   (high, dev)
  brace-expansion  1.1.12 -> 1.1.18  (high, CVE-2026-13149; nested copies)
  @babel/core      7.29.0 -> 7.29.7  (low)

npm audit goes 7 -> 0 (production tree 5 -> 0). Verified locally: clean
npm ci, `npm run build` (embed) and `npm run build:react` (library) both
build, npm run lint and tsc --noEmit pass.
2026-08-11 03:27:51 +05:30
Alex f7b3d3eacd Merge pull request #2636 from ManishMadan2882/main
(feat)ui/chat: inline streaming steps for reasoning and tool calls
2026-08-10 19:49:21 +01:00
Alex 94766c93cb fix: minor edits, cleanup, light changes 2026-08-10 19:45:57 +01:00
Alex bac62b04b9 Merge pull request #2652 from arc53/fix/stream-durability-triad
feat: improve tool call durability on long calls
2026-08-10 15:38:52 +01:00
Alex 26038da499 feat: auto cancel on retry or edit during reconciliation 2026-08-10 15:26:03 +01:00
Alex b6cc07ad04 fix: mini quality issue 2026-08-10 15:07:31 +01:00
Alex 924864f964 fix: tests 2026-08-10 14:51:33 +01:00
Alex ca345e3bf8 feat: improve tool call durability on long calls 2026-08-10 14:32:30 +01:00
Alex 7137196212 Merge pull request #2648 from arc53/chore/bump-backend-deps
chore(deps): bump 47 backend dependencies
2026-08-10 13:11:05 +01:00
Manish Madan 46f99c1759 Merge pull request #2461 from arc53/dependabot/npm_and_yarn/extensions/react-widget/npm_and_yarn-3d438dea79
chore(deps-dev): bump @babel/plugin-transform-modules-systemjs from 7.29.0 to 7.29.8 in /extensions/react-widget in the npm_and_yarn group across 1 directory
2026-08-10 17:29:15 +05:30
dependabot[bot] 3ac2dc9351 chore(deps-dev): bump @babel/plugin-transform-modules-systemjs
Bumps the npm_and_yarn group with 1 update in the /extensions/react-widget directory: [@babel/plugin-transform-modules-systemjs](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-modules-systemjs).


Updates `@babel/plugin-transform-modules-systemjs` from 7.29.0 to 7.29.8
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.29.8/packages/babel-plugin-transform-modules-systemjs)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-modules-systemjs"
  dependency-version: 7.29.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 11:57:12 +00:00
Manish Madan 77ec98f7c8 Merge pull request #2455 from arc53/dependabot/npm_and_yarn/extensions/react-widget/typescript-eslint/parser-8.59.2
chore(deps-dev): bump @typescript-eslint/parser from 8.59.1 to 8.66.0 in /extensions/react-widget
2026-08-10 17:25:44 +05:30
dependabot[bot] 74283bd6db chore(deps-dev): bump @typescript-eslint/parser
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.59.1 to 8.66.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.66.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.59.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 11:54:08 +00:00
Manish Madan c18dc1da2f Merge pull request #2454 from arc53/dependabot/npm_and_yarn/extensions/react-widget/flow-bin-0.312.1
chore(deps): bump flow-bin from 0.311.0 to 0.326.0 in /extensions/react-widget
2026-08-10 17:22:35 +05:30
dependabot[bot] 8a9ae1e8d4 chore(deps): bump flow-bin in /extensions/react-widget
Bumps [flow-bin](https://github.com/flowtype/flow-bin) from 0.311.0 to 0.326.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases)
- [Commits](https://github.com/flowtype/flow-bin/commits)

---
updated-dependencies:
- dependency-name: flow-bin
  dependency-version: 0.312.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 11:51:28 +00:00
Alex 209c29d759 fix: test 2026-08-10 12:37:40 +01:00
Manish Madan 8c66a65e81 Merge pull request #2650 from arc53/dependabot/npm_and_yarn/frontend/npm_and_yarn-5210b699ed
chore(deps): bump the npm_and_yarn group across 1 directory with 3 updates
2026-08-10 16:50:11 +05:30
dependabot[bot] 540e95e9d6 chore(deps): bump the npm_and_yarn group across 1 directory with 3 updates
Bumps the npm_and_yarn group with 3 updates in the /frontend directory: [brace-expansion](https://github.com/juliangruber/brace-expansion), [dompurify](https://github.com/cure53/DOMPurify) and [js-yaml](https://github.com/nodeca/js-yaml).


Updates `brace-expansion` from 1.1.12 to 1.1.18
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.12...v1.1.18)

Updates `dompurify` from 3.4.0 to 3.4.13
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.0...3.4.13)

Updates `js-yaml` from 4.1.1 to 4.3.1
- [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.1/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.1...4.3.1)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.18
  dependency-type: indirect
- dependency-name: dompurify
  dependency-version: 3.4.13
  dependency-type: indirect
- dependency-name: js-yaml
  dependency-version: 4.3.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 11:18:08 +00:00
Alex a166796f6c feat: prune some deps 2026-08-10 12:10:54 +01:00
Manish Madan 8c127b4306 Merge pull request #2644 from arc53/dependabot/npm_and_yarn/frontend/vitejs/plugin-react-6.0.5
chore(deps-dev): bump @vitejs/plugin-react from 6.0.1 to 6.0.5 in /frontend
2026-08-10 16:29:56 +05:30
dependabot[bot] 523a2fd137 chore(deps-dev): bump @vitejs/plugin-react in /frontend
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 6.0.1 to 6.0.5.
- [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.5/packages/plugin-react)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 10:57:55 +00:00
Manish Madan 85f7b56d6c Merge pull request #2643 from arc53/dependabot/npm_and_yarn/frontend/types/lodash-4.17.25
chore(deps-dev): bump @types/lodash from 4.17.20 to 4.17.25 in /frontend
2026-08-10 16:26:15 +05:30
dependabot[bot] 8f6cb07a38 chore(deps-dev): bump @types/lodash from 4.17.20 to 4.17.25 in /frontend
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.17.20 to 4.17.25.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

---
updated-dependencies:
- dependency-name: "@types/lodash"
  dependency-version: 4.17.25
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 10:54:44 +00:00
Manish Madan aebc1e2121 Merge pull request #2642 from arc53/dependabot/npm_and_yarn/frontend/mermaid-11.16.1
chore(deps): bump mermaid from 11.15.0 to 11.16.1 in /frontend
2026-08-10 16:23:19 +05:30
dependabot[bot] 336c79f275 chore(deps): bump mermaid from 11.15.0 to 11.16.1 in /frontend
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 11.15.0 to 11.16.1.
- [Release notes](https://github.com/mermaid-js/mermaid/releases)
- [Commits](https://github.com/mermaid-js/mermaid/compare/mermaid@11.15.0...mermaid@11.16.1)

---
updated-dependencies:
- dependency-name: mermaid
  dependency-version: 11.16.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 10:49:20 +00:00
Manish Madan cbcb0133c7 Merge pull request #2641 from arc53/dependabot/npm_and_yarn/frontend/vite-8.2.0
chore(deps-dev): bump vite from 8.1.5 to 8.2.1 in /frontend
2026-08-10 16:17:05 +05:30
dependabot[bot] 8dd65320ad chore(deps-dev): bump vite from 8.1.5 to 8.2.1 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.1.5 to 8.2.1.
- [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.2.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 10:44:54 +00:00
Manish Madan 56bb1c1869 Merge pull request #2640 from arc53/dependabot/npm_and_yarn/frontend/radix-ui/react-dialog-1.1.23
chore(deps): bump @radix-ui/react-dialog from 1.1.19 to 1.1.23 in /frontend
2026-08-10 16:13:29 +05:30
dependabot[bot] 0f3c10715e chore(deps): bump @radix-ui/react-dialog in /frontend
Bumps [@radix-ui/react-dialog](https://github.com/radix-ui/primitives/tree/HEAD/packages/react/dialog) from 1.1.19 to 1.1.23.
- [Changelog](https://github.com/radix-ui/primitives/blob/main/packages/react/dialog/CHANGELOG.md)
- [Commits](https://github.com/radix-ui/primitives/commits/HEAD/packages/react/dialog)

---
updated-dependencies:
- dependency-name: "@radix-ui/react-dialog"
  dependency-version: 1.1.23
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-10 10:38:50 +00:00
Alex c5b372df1e fix: pin rapidocr and onnxruntime 2026-08-10 10:37:43 +01:00
ManishMadan2882 e2f85bf19b (fix)streaming status: code quality 2026-08-09 19:02:50 +05:30
ManishMadan2882 c990ce7414 (feat)ui/chat: inline streaming steps for reasoning and tool calls 2026-08-09 19:02:50 +05:30
Alex 2565906f88 chore(deps): bump 47 backend dependencies
Bumps the Python backend dependency set, holding back the ones that are
resolver-blocked or that regress behaviour this repo depends on.

Notable upgrades:
  cryptography 46.0.7 -> 50.0.0 (requires msal 1.37.0, which relaxes its cap)
  protobuf 6.33.6 -> 7.35.1 (floats opentelemetry-* to 1.44.0)
  openai 2.32.0 -> 2.53.0, anthropic 0.88.0 -> 0.121.0
  google-genai 1.73.1 -> 2.17.0 (the 2.0 break is scoped to the Interactions
    API, which this repo does not use)
  fastmcp 3.2.4 -> 3.4.6, gunicorn 25.3.0 -> 26.0.0
  starlette 1.0.0 -> 1.6.0, uvicorn 0.42.0 -> 0.52.1
  sentence-transformers 5.3.0 -> 5.7.0, numpy 2.4.4 -> 2.5.1
  faiss-cpu 1.13.2 -> 1.15.0, pillow -> 12.3.0 (pinned; security release)
  pypdf 6.9.2 -> 6.15.0, lxml 6.0.2 -> 6.1.1 (CVE-2026-41066)

Code changes needed by the bumps:
  - openai >= 2.53 rejects a falsy api_key at construction. Keyless
    OpenAI-compatible backends (Ollama, llama.cpp, vLLM) legitimately have
    none, and pydantic-settings yields "" for a bare `API_KEY=` in .env, so
    both call sites now fall back to a placeholder.
  - Flask >= 3.1.2 tears a stream_with_context request down twice, and a
    ContextVar token may only be reset once. The log-context teardown hook
    is now idempotent.
  - sentence-transformers renamed get_sentence_embedding_dimension to
    get_embedding_dimension in 5.4; use the new name with a fallback.

Held back deliberately:
  torch 2.11.0      - 2.13.0 drags torchvision 0.26 -> 0.28 and the whole
                      docling stack; torch is only probed for cuda.empty_cache()
  tokenizers 0.22.2 - transformers pins <=0.23.0 and no stable 0.23.0 exists
  transformers      - capped <5.9.0: 5.9+ breaks docling's PDF layout model on
                      Apple Silicon (MPS float64), matching docling-core's own
                      darwin pin
  docling 2.84.0    - 2.118.1 needs rapidocr >=3.9.1 and conflicts with
                      transformers on macOS; wants its own PR with a
                      golden-corpus diff
  redis 7.4.0       - 8.x defaults socket_timeout to 5s, silently capping the
                      blocking reads in the device broker and SSE tail
  websockets 16.0   - google-genai caps <17.0
  marshmallow       - dataclasses-json hard-caps <4; spec tightened to match
  langchain block   - langchain-community 0.4.2 deletes the Qdrant vectorstore
                      this repo imports; langchain 1.3.x needs websockets <16
2026-08-09 12:30:44 +01:00
Alex ff5bc01d20 Merge pull request #2647 from arc53/better-agent-create-error
fix: track agent creation errors more
2026-08-09 11:40:40 +01:00
Alex a8f1e0959e fix: track agent creation errors more 2026-08-09 11:20:35 +01:00
Alex 732f7d1a89 Merge pull request #2645 from arc53/fix/retrieval-authz-and-prompt-structure
fix: source authorization, silent retrieval failures, and prompt structure
2026-08-08 12:38:10 +01:00