Initial state: - HTTP proxy utilities (Bearer parsing, hop-by-hop headers, body limits, safe path validation) were duplicated between smart-ide-sso-gateway and smart-ide-global-api. - IA_DEV_ROOT auto-resolution order differed between bash (ensure-ia-dev-project-link.sh) and TypeScript (ia-dev-gateway getIaDevRoot), and could fall back to non-existing paths. Motivation: - Reduce duplication and drift across proxy layers. - Enforce consistent, explicit IA_DEV_ROOT behavior across scripts and services. Resolution: - Add package @4nk/smart-ide-http-utils and reuse it from smart-ide-sso-gateway and smart-ide-global-api. - Align IA_DEV_ROOT resolution to prefer ./services/ia_dev then ./ia_dev; fail fast when missing/misconfigured. Root cause: - Cross-service utilities were implemented ad-hoc in each service. - Historical layout transitions (ia_dev gitlink vs vendored services/ia_dev) left multiple resolvers with different priorities. Impacted features: - HTTP proxy chain (SSO gateway -> global API -> upstream services). - ia-dev-gateway startup/operation when IA_DEV_ROOT is missing or invalid. Code modified: - packages/smart-ide-http-utils/** - services/smart-ide-global-api/src/server.ts - services/smart-ide-sso-gateway/src/server.ts - services/ia-dev-gateway/src/paths.ts - scripts/ensure-ia-dev-project-link.sh Documentation modified: - docs/system-architecture.md - docs/ia_dev-module.md - docs/repo/README.md Configurations modified: - services/smart-ide-global-api/package.json - services/smart-ide-sso-gateway/package.json Files in deploy modified: - None Files in logs impacted: - None (runtime logs only) Databases and other sources modified: - None Off-project modifications: - None Files in .smartIde modified: - None Files in .secrets modified: - None New patch version in VERSION: - 0.0.6 CHANGELOG.md updated: - yes
1.5 KiB
1.5 KiB
Changelog
0.0.6 - 2026-04-04
Added
@4nk/smart-ide-http-utils: shared HTTP proxy helpers (Bearer/body limit/hop-by-hop headers/safe proxy paths).
Changed
smart-ide-sso-gatewayandsmart-ide-global-api: reuse shared HTTP helpers (reduces duplication).IA_DEV_ROOTresolution: prefer./services/ia_devthen./ia_dev(code + docs); fail fast if missing inia-dev-gateway.scripts/ensure-ia-dev-project-link.sh: preferservices/ia_devwhen both layouts exist.
0.0.5 - 2026-04-04
Added
scripts/remote-data-ssh-sync.sh: mirror deployed data over SSH into.data/remote-data/and optionally ingest into AnythingLLM.- AnythingLLM sync enhancements:
--upload-all+--upload-prefixmodes for non-git directory ingestion. site-generateia_dev tool + gateway runner to scaffold Vite/React sites with OIDC + Smart IDE chat (via sso-gateway → orchestrator).- Documentation: remote data SSH sync, E2E browser (Carbonyl manual mode).
Changed
- Canonical
ia_devmodule location:services/ia_dev/(withIA_DEV_ROOTresolution); docs and integration updated accordingly. - SSO gateway: upstream allowlist support via
SSO_ALLOWED_UPSTREAMS. - Global API: explicit
503when an upstream requires a token but the token is not configured. install-anythingllm-post-merge-hook.sh: supports--alland--project <id>based onprojects/<id>/conf.json.
Fixed
cron/git-pull-project-clones.sh: error propagation and summary exit code for failed pulls.