gsxdsm
5a60643c0a
FN-8142: migrate auth storage and model runtime to pi SDK
Migrate Fusion's credential and model integrations to pi SDK 0.80.8+.
- Replace legacy AuthStorage initialization with a locked Fusion credential store and ModelRuntime-backed registry.
- Wire asynchronous model initialization and refresh through CLI, desktop, dashboard, executor, and provider paths.
- Update provider, routing, and registry tests for the new SDK contracts.
Files changed:
packages/cli/src/commands/__tests__/daemon.test.ts | 2 +-
.../cli/src/commands/__tests__/dashboard.test.ts | 9 +-
.../cli/src/commands/__tests__/onboard.test.ts | 1 +
packages/cli/src/commands/__tests__/serve.test.ts | 2 +-
packages/cli/src/commands/daemon.ts | 19 +-
packages/cli/src/commands/dashboard.ts | 20 +-
packages/cli/src/commands/onboard.ts | 6 +-
packages/cli/src/commands/serve.ts | 19 +-
packages/cli/src/commands/startup-model-sync.ts | 4 +-
packages/core/src/__tests__/openai-models.test.ts | 17 +-
...-model-routes-openai-codex-supplemental.test.ts | 17 +-
...register-model-routes-zai-real-registry.test.ts | 15 +-
packages/dashboard/src/routes.ts | 12 +-
.../dashboard/src/routes/register-model-routes.ts | 2 +-
packages/desktop/src/local-runtime.ts | 2 +-
packages/desktop/src/local-server.ts | 2 +-
.../custom-providers-openai-completions.test.ts | 16 +-
.../custom-providers-openai-responses.test.ts | 16 +-
.../engine/src/__tests__/executor-test-helpers.ts | 2 +-
.../src/__tests__/pi-create-fn-agent.test.ts | 8 +-
.../engine/src/__tests__/pi-layers-wiring.test.ts | 2 +-
packages/engine/src/__tests__/pi.test.ts | 47 ++---
.../src/__tests__/provider-registration.test.ts | 17 +-
packages/engine/src/auth-storage.ts | 218 ++++++++++++++++++---
packages/engine/src/custom-provider-registry.ts | 14 +-
packages/engine/src/executor.ts | 15 +-
packages/engine/src/pi.ts | 50 +++--
packages/engine/src/provider-auth.ts | 58 +++---
packages/engine/src/provider-registration.ts | 16 +-
29 files changed, 421 insertions(+), 207 deletions(-)
Fusion-Task-Id: FN-8142
Fusion-Task-Lineage: 8ae79064-7820-4976-9645-9431b5a3129e
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-16 18:13:37 -07:00
..
2026-07-16 18:13:37 -07:00
2026-07-12 14:42:09 -07:00
2026-07-14 23:18:55 -07:00
2026-07-14 23:18:55 -07:00
2026-07-14 23:18:55 -07:00
2026-05-04 23:47:26 -07:00
2026-07-16 16:34:09 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 23:18:55 -07:00
2026-04-28 18:23:21 -07:00
2026-04-23 15:53:47 -07:00
2026-04-23 23:02:36 -07:00
2026-07-07 22:04:51 -07:00
2026-07-16 18:13:37 -07:00
2026-05-26 21:57:31 -07:00
2026-07-16 18:13:37 -07:00
2026-07-15 00:27:59 -07:00
2026-07-15 10:24:30 -07:00
2026-05-01 12:21:52 -07:00
2026-07-14 23:18:55 -07:00
2026-07-14 23:18:55 -07:00
2026-07-09 19:58:06 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 23:18:55 -07:00
2026-05-04 23:59:52 -07:00
2026-07-13 19:07:58 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 23:18:55 -07:00
2026-07-14 23:18:55 -07:00
2026-04-28 23:23:34 -07:00
2026-07-14 23:18:55 -07:00
2026-07-16 18:13:37 -07:00
2026-06-01 19:40:28 -07:00
2026-07-12 21:27:38 -07:00
2026-06-14 15:29:35 -07:00
2026-06-03 09:25:56 -07:00
2026-04-10 12:47:46 -07:00
2026-07-13 19:07:58 -07:00
2026-07-14 23:18:55 -07:00
2026-07-07 22:04:51 -07:00
2026-06-11 09:51:49 -07:00
2026-07-14 23:18:55 -07:00
2026-04-26 00:00:49 -07:00
2026-07-16 18:13:37 -07:00
2026-07-14 23:18:55 -07:00
2026-07-14 23:18:55 -07:00
2026-06-04 23:41:30 -07:00
2026-04-24 08:55:02 -07:00
2026-04-27 23:27:27 -07:00
2026-07-16 18:13:37 -07:00
2026-07-13 19:07:58 -07:00
2026-07-16 15:27:03 -07:00
2026-05-28 14:50:15 -07:00
2026-07-14 23:18:55 -07:00