develop #29

Merged
crapougnax merged 58 commits from develop into main 2026-11-11 15:28:53 +00:00
Owner
No description provided.
feat(auth-rbac): implement isomorphic RBAC security engine with FLS, M2M agent guards and tarpitting
* fix(docs): repair typedoc exports resolution, nextra _meta validation and pipeline triggers

* fix(docs): expose per-package API reference in navigation and accelerate CI build
* feat(ai-openai): implement universal OpenAI-compatible AI adapter

Add @quatrain/ai-openai package providing zero-dependency integration for DeepSeek (V3/R1), Alibaba Qwen (DashScope), OpenAI, and local LLMs (Ollama) with streaming and structured JSON output.

Closes #47

* style(ai-openai): address static code analysis and markdownlint issues

Fix Codacy and SonarCloud reports: reduce cognitive complexity, eliminate regex backtracking, remove redundant optional chaining and comply with 80-col markdown formatting.

* style(ai-openai): eliminate redundant optional chains and conditional checks

* style(ai-openai): use optional chaining on config checks
* feat(config): implement canonical @quatrain/config registry package

- Pivot Config class extending Core and managing isolated ConfigContainer namespaces
- Fail-Fast validation via ConfigurationError for missing or blank parameters
- Hierarchical multi-source cascading (Memory > Env > Object)
- Support for dot-notation paths, camelCase mapping, and sub-scoping
- Full test suite with near-100% coverage

Closes #49

* fix(config): address Codacy security, quality and complexity feedback

- Use Map for ConfigRegistry to eliminate object injection sinks and dynamic delete
- Prevent Prototype Pollution with isSafeKey and isSafePath across all sources
- Refactor MemoryConfigSource and EnvConfigSource to use Map and Reflect
- Implement safe deepMerge in ConfigContainer.toRecord()
- Optimize scope.getAll() to retrieve sub-tree in O(1)
- Format LICENSE.md to <=80 chars line length

* fix(config): eliminate remaining Codacy injection sink and void expression in tests

* fix(config): address static analysis quality gates and security edge cases

* fix(config): eliminate array index access in MemoryConfigSource

* refactor(config): reduce cognitive complexity in EnvConfigSource and MemoryConfigSource
* fix(ci): allow mutable yarn install in docs container build to prevent lockfile resolution failure

* fix(auth): align AuthInterface User import and register signature with AbstractAuthAdapter
* fix(ci): remove PR preview package publishing

* fix(security): resolve timing attack and path traversal warnings in publish_all
* feat(okf-ingest): introduce @quatrain/okf-ingest package with OKF v0.2, multimodal vision, and token cost tracking

* feat(okf-ingest): expand text context window to 80k chars and safeguard multimodal payload limit

* feat(okf-ingest): add monograph chapter decomposition engine and folder grouping for OKF v0.2

* feat(okf-ingest): add multilingual abstracts and keywords (en, ar) with explicit language tagging

* feat(okf-ingest): enforce language, abstracts, and keywords as required fields in AI schemas

* feat(okf-ingest): require fr alongside en and ar in multilingual abstracts and keywords

* feat(okf-ingest-catalog): add agnostic catalog and encyclopedic monograph ingestion package

* refactor(okf-ingest): decouple ai runners, english prompts, and composable domain profiles

* feat(okf-ingest): route all LLM operations through @quatrain/ai adapters and parameterize target languages

* fix(ai-gemini): enhance generateStructured with maxOutputTokens, options forwarding, and clean JSON parsing

* docs(okf): add comprehensive HOWTO guides and README for okf-ingest and okf-ingest-catalog

* docs(okf): neutralize all corporate, specific repository, and personal references in HOWTO guides

* feat(okf-ingest): add license indexing, llm-as-a-judge QA evaluator, and LM Studio adapter presets

* feat(okf-ingest): export extractPdfPages for sequential page parsing

* fix(ci): address Jest runner imports, markdownlint formatting, and Codacy security recommendations

* fix(okf-ingest): resolve remaining Codacy security sinks and null checks

* fix(okf-ingest): resolve SonarCloud quality gate and Codacy static analysis issues

* refactor(okf-ingest): decouple agronomy profile into vendor-agnostic AgroecologyTaxonomyProfile

* perf(okf-ingest): use dynamic imports for AI adapters in judge evaluation

* fix(quality): resolve Codacy static analysis failure and unnecessary conditionals
- globalize test exclusions in .codacy.yml across all analysis engines
- handle async errors explicitly with Log.warn in pdf.ts
- annotate dynamic fs path serialization in dedup, monograph, writer, and engine
- enforce path.resolve normalization across all document exporters

Closes #67
ci(forgejo): add sovereign CI workflow for Turbo build, PostgreSQL tests, and JSDoc quality audit
All checks were successful
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Successful in 2m28s
ecee2f18f4
ci(github): remove .github workflows to decommission GitHub Actions builds
All checks were successful
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Successful in 3m40s
55575bcdbb
- @quatrain/speech: synthesizer contract (locale, voice, style, rate, pitch),
  sentence splitting, SpeechController (preference list, sentence-by-sentence
  playback with look-ahead, fallback before first audio, stop, normalized
  started/ended/interrupted events).
- @quatrain/speech-browser: on-device Web Speech adapter with voice selection.
- @quatrain/speech-http: plays audio from any HTTP endpoint, download starts at
  prepare time.

Closes #69
refactor(speech): rename speech-http to speech-api
Some checks failed
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (pull_request) Failing after 24s
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Failing after 2m47s
8ae06091df
ApiSpeechSynthesizer (id 'api') plays audio returned by a speech API endpoint.

Refs #69
chore: make Forgejo the source of authority, GitHub a read-only mirror
All checks were successful
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 2m43s
Quatrain Core Sovereign CI / Publish Changed Packages to npm (pull_request) Has been skipped
5995dbb6a6
- publish job in Forgejo CI (beta on develop, latest on main) using NPM_TOKEN
- publish_all.js: no provenance or GitHub Packages on Forgejo runners,
  which also set GITHUB_ACTIONS=true
- repository URLs point to git.qtrn.io/Quatrain/Core
- README, CONTRIBUTING, GEMINI and agent guidelines describe the Forgejo flow

Closes #1
ci: isolate the Postgres test container per run
All checks were successful
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 2m44s
Quatrain Core Sovereign CI / Publish Changed Packages to npm (pull_request) Has been skipped
182522db86
Concurrent runs share the DinD daemon; the fixed name pg-test let one run's
teardown remove another run's database (ECONNREFUSED in backend-postgres).

Refs #1
Merge pull request 'chore: make Forgejo the source of authority, GitHub a read-only mirror' (#24) from chore/1-forgejo-authority into develop
Some checks failed
Quatrain Core Sovereign CI / Publish Changed Packages to npm (push) Has been cancelled
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Has been cancelled
21985c8676
Reviewed-on: Quatrain/Core#24
Merge pull request 'feat(speech): model-agnostic, local-first speech synthesis packages' (#23) from feat/69-speech-packages into develop
Some checks failed
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Has been cancelled
Quatrain Core Sovereign CI / Publish Changed Packages to npm (push) Has been cancelled
fb21c7100c
Reviewed-on: Quatrain/Core#23
Ports the decommissioned GitHub docs pipeline to Forgejo Actions: builds
docs/ContainerFile for linux/arm64 and pushes qtrn.io/quatrain/core-docs
tagged with the branch name and sha-<short>, on docs changes and nightly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore: pull Quatrain images from qtrn.io instead of ghcr.io
Some checks failed
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (pull_request) Failing after 15m27s
Quatrain Core Sovereign CI / Publish Changed Packages to npm (pull_request) Has been cancelled
0be78a471a
The docs compose file and the CLI deploy default now reference
qtrn.io/quatrain/*. The CLI still recognises ghcr.io studio images in
existing deployment manifests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge pull request 'ci/core-docs-sovereign-registry' (#27) from ci/core-docs-sovereign-registry into develop
All checks were successful
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Successful in 5m31s
Documentation Image / Build & Push Documentation Image to qtrn.io (push) Successful in 6m36s
Quatrain Core Sovereign CI / Publish Changed Packages to npm (push) Successful in 4m39s
ca08cee34f
Reviewed-on: #27
fix(storage): stream S3 reads without memory buffering and seek video thumbnails via presigned URL
All checks were successful
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 4m48s
Quatrain Core Sovereign CI / Publish Changed Packages to npm (pull_request) Has been skipped
9db9cb313b
- Return native Node.js Readable stream directly in S3StorageAdapter.getReadable() instead of buffering entire objects via transformToByteArray()
- Stream downloads to disk via node:stream/promises pipeline() and pipe directly to Writable targets in S3StorageAdapter.stream()
- Seek video frames via presigned HTTP(S) URLs (-ss before -i) once into a single PNG frame before sharp resizing, falling back to streaming download for local/mock adapters
- Ensure temporary thumbnail workspaces are cleaned up in finally blocks across image, video, and document thumbnail generators
- Add unit tests for S3StorageAdapter streaming and presigned video thumbnail seeking, and exclude tests from published npm tarballs
Merge pull request 'fix(storage): stream S3 reads without memory buffering and seek video thumbnails via presigned URL' (#28) from fix/s3-stream-video-thumbnails into develop
All checks were successful
Quatrain Core Sovereign CI / Monorepo Build, Tests & Quality Audit (push) Successful in 4m40s
Quatrain Core Sovereign CI / Publish Changed Packages to npm (push) Successful in 3m48s
700d953244
Reviewed-on: #28
crapougnax referenced this pull request from a commit 2026-11-11 15:28:54 +00:00
Sign in to join this conversation.
No description provided.