@atomic-chat/core 0.5.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/app-daemon.js +20 -67
- package/dist/app-daemon.js.map +1 -1
- package/dist/backend/advisor/advisor.d.ts +132 -0
- package/dist/backend/advisor/advisor.js +537 -0
- package/dist/backend/advisor/advisor.js.map +1 -0
- package/dist/backend/advisor/index.d.ts +6 -0
- package/dist/backend/advisor/index.js +7 -0
- package/dist/backend/advisor/index.js.map +1 -0
- package/dist/backend/advisor/policy.d.ts +81 -0
- package/dist/backend/advisor/policy.js +154 -0
- package/dist/backend/advisor/policy.js.map +1 -0
- package/dist/backend/catalog/archive.d.ts +21 -7
- package/dist/backend/catalog/archive.js +57 -17
- package/dist/backend/catalog/archive.js.map +1 -1
- package/dist/backend/catalog/bundled-manifest-baseline.js +42 -26
- package/dist/backend/catalog/bundled-manifest-baseline.js.map +1 -1
- package/dist/backend/catalog/cuda-family.d.ts +12 -2
- package/dist/backend/catalog/cuda-family.js +30 -7
- package/dist/backend/catalog/cuda-family.js.map +1 -1
- package/dist/backend/catalog/index.d.ts +5 -0
- package/dist/backend/catalog/index.js +5 -0
- package/dist/backend/catalog/index.js.map +1 -1
- package/dist/backend/catalog/manifest.d.ts +5 -3
- package/dist/backend/catalog/manifest.js +12 -9
- package/dist/backend/catalog/manifest.js.map +1 -1
- package/dist/backend/catalog/migrate.d.ts +8 -6
- package/dist/backend/catalog/migrate.js +26 -15
- package/dist/backend/catalog/migrate.js.map +1 -1
- package/dist/backend/catalog/prism-catalog.d.ts +42 -0
- package/dist/backend/catalog/prism-catalog.js +101 -0
- package/dist/backend/catalog/prism-catalog.js.map +1 -0
- package/dist/backend/catalog/prism-manifest-baseline.d.ts +2 -0
- package/dist/backend/catalog/prism-manifest-baseline.js +11 -0
- package/dist/backend/catalog/prism-manifest-baseline.js.map +1 -0
- package/dist/backend/catalog/prism-manifest-baseline.json +134 -0
- package/dist/backend/catalog/prism-manifest.d.ts +90 -0
- package/dist/backend/catalog/prism-manifest.js +171 -0
- package/dist/backend/catalog/prism-manifest.js.map +1 -0
- package/dist/backend/catalog/turboquant-catalog.d.ts +60 -0
- package/dist/backend/catalog/turboquant-catalog.js +162 -0
- package/dist/backend/catalog/turboquant-catalog.js.map +1 -0
- package/dist/backend/catalog/turboquant-index.d.ts +104 -0
- package/dist/backend/catalog/turboquant-index.js +260 -0
- package/dist/backend/catalog/turboquant-index.js.map +1 -0
- package/dist/backend/index.d.ts +1 -0
- package/dist/backend/index.js +1 -0
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/install/runtime-backend.d.ts +6 -6
- package/dist/backend/install/runtime-backend.js +23 -20
- package/dist/backend/install/runtime-backend.js.map +1 -1
- package/dist/backend/install/service.d.ts +106 -5
- package/dist/backend/install/service.js +247 -21
- package/dist/backend/install/service.js.map +1 -1
- package/dist/backend/installed/bundled.d.ts +19 -0
- package/dist/backend/installed/bundled.js +45 -0
- package/dist/backend/installed/bundled.js.map +1 -0
- package/dist/backend/installed/index.d.ts +1 -0
- package/dist/backend/installed/index.js +1 -0
- package/dist/backend/installed/index.js.map +1 -1
- package/dist/backend/installed/installed.js +3 -0
- package/dist/backend/installed/installed.js.map +1 -1
- package/dist/backend/optimal/optimal-cache.d.ts +27 -8
- package/dist/backend/optimal/optimal-cache.js +38 -19
- package/dist/backend/optimal/optimal-cache.js.map +1 -1
- package/dist/backend/optimal/optimal-store.js +1 -1
- package/dist/backend/optimal/optimal-store.js.map +1 -1
- package/dist/backend/select/categories.d.ts +2 -1
- package/dist/backend/select/categories.js +8 -1
- package/dist/backend/select/categories.js.map +1 -1
- package/dist/backend/select/features.d.ts +13 -5
- package/dist/backend/select/features.js +36 -6
- package/dist/backend/select/features.js.map +1 -1
- package/dist/backend/select/index.d.ts +2 -0
- package/dist/backend/select/index.js +2 -0
- package/dist/backend/select/index.js.map +1 -1
- package/dist/backend/select/prism.d.ts +54 -0
- package/dist/backend/select/prism.js +212 -0
- package/dist/backend/select/prism.js.map +1 -0
- package/dist/backend/select/recovery.d.ts +4 -2
- package/dist/backend/select/recovery.js +17 -5
- package/dist/backend/select/recovery.js.map +1 -1
- package/dist/backend/select/tiers.d.ts +20 -11
- package/dist/backend/select/tiers.js +49 -11
- package/dist/backend/select/tiers.js.map +1 -1
- package/dist/backend/select/turboquant-tiers.d.ts +45 -0
- package/dist/backend/select/turboquant-tiers.js +114 -0
- package/dist/backend/select/turboquant-tiers.js.map +1 -0
- package/dist/backend/types.d.ts +6 -69
- package/dist/cli/commands/backends.d.ts +10 -0
- package/dist/cli/commands/backends.js +142 -0
- package/dist/cli/commands/backends.js.map +1 -0
- package/dist/cli/commands/hardware.d.ts +13 -0
- package/dist/cli/commands/hardware.js +71 -0
- package/dist/cli/commands/hardware.js.map +1 -0
- package/dist/cli/commands/host-step.d.ts +28 -0
- package/dist/cli/commands/host-step.js +67 -0
- package/dist/cli/commands/host-step.js.map +1 -0
- package/dist/cli/commands/index.d.ts +4 -1
- package/dist/cli/commands/index.js +4 -1
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/serve.js +4 -4
- package/dist/cli/commands/serve.js.map +1 -1
- package/dist/cli/commands/shared.d.ts +6 -1
- package/dist/cli/commands/shared.js +7 -0
- package/dist/cli/commands/shared.js.map +1 -1
- package/dist/cli/io.d.ts +11 -0
- package/dist/cli/io.js +28 -3
- package/dist/cli/io.js.map +1 -1
- package/dist/cli/launch.js +2 -2
- package/dist/cli/launch.js.map +1 -1
- package/dist/cli/main.d.ts +1 -1
- package/dist/cli/main.js +11 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/client/control-client.d.ts +128 -7
- package/dist/client/control-client.js +211 -12
- package/dist/client/control-client.js.map +1 -1
- package/dist/cloud/registry.js +9 -1
- package/dist/cloud/registry.js.map +1 -1
- package/dist/config/paths.d.ts +137 -0
- package/dist/config/paths.js +163 -0
- package/dist/config/paths.js.map +1 -1
- package/dist/contracts/backend-advisor.d.ts +225 -0
- package/dist/contracts/backend-advisor.js +14 -0
- package/dist/contracts/backend-advisor.js.map +1 -0
- package/dist/contracts/control-api.d.ts +7 -1
- package/dist/contracts/control-api.js +7 -1
- package/dist/contracts/control-api.js.map +1 -1
- package/dist/contracts/decision.d.ts +394 -0
- package/dist/contracts/decision.js +69 -0
- package/dist/contracts/decision.js.map +1 -0
- package/dist/contracts/diffusion.d.ts +62 -9
- package/dist/contracts/embedding.d.ts +103 -0
- package/dist/contracts/embedding.js +24 -0
- package/dist/contracts/embedding.js.map +1 -0
- package/dist/contracts/engine-builds.d.ts +108 -0
- package/dist/contracts/engine-builds.js +11 -0
- package/dist/contracts/engine-builds.js.map +1 -0
- package/dist/contracts/engines.d.ts +157 -0
- package/dist/contracts/engines.js +50 -0
- package/dist/contracts/engines.js.map +1 -0
- package/dist/contracts/environment.d.ts +774 -0
- package/dist/contracts/environment.js +116 -0
- package/dist/contracts/environment.js.map +1 -0
- package/dist/contracts/errors.d.ts +43 -2
- package/dist/contracts/errors.js +41 -0
- package/dist/contracts/errors.js.map +1 -1
- package/dist/contracts/events.d.ts +82 -4
- package/dist/contracts/hardware.d.ts +79 -6
- package/dist/contracts/hardware.js +9 -5
- package/dist/contracts/hardware.js.map +1 -1
- package/dist/contracts/index.d.ts +8 -0
- package/dist/contracts/index.js +8 -0
- package/dist/contracts/index.js.map +1 -1
- package/dist/contracts/model-compatibility.d.ts +97 -0
- package/dist/contracts/model-compatibility.js +6 -0
- package/dist/contracts/model-compatibility.js.map +1 -0
- package/dist/contracts/model-setup.d.ts +115 -0
- package/dist/contracts/model-setup.js +33 -0
- package/dist/contracts/model-setup.js.map +1 -0
- package/dist/contracts/model-yml.d.ts +14 -0
- package/dist/contracts/model-yml.js +1 -0
- package/dist/contracts/model-yml.js.map +1 -1
- package/dist/contracts/session.d.ts +45 -2
- package/dist/contracts/session.js +14 -1
- package/dist/contracts/session.js.map +1 -1
- package/dist/contracts/settings.d.ts +44 -1
- package/dist/contracts/settings.js.map +1 -1
- package/dist/core/atomic-core.d.ts +44 -5
- package/dist/core/atomic-core.js +24 -0
- package/dist/core/atomic-core.js.map +1 -1
- package/dist/core/create.js +517 -23
- package/dist/core/create.js.map +1 -1
- package/dist/core/gpu/index.d.ts +6 -0
- package/dist/core/gpu/index.js +7 -0
- package/dist/core/gpu/index.js.map +1 -0
- package/dist/core/gpu/policy.d.ts +68 -0
- package/dist/core/gpu/policy.js +99 -0
- package/dist/core/gpu/policy.js.map +1 -0
- package/dist/core/gpu/residency.d.ts +44 -0
- package/dist/core/gpu/residency.js +101 -0
- package/dist/core/gpu/residency.js.map +1 -0
- package/dist/core/gpu-residency.d.ts +39 -0
- package/dist/core/gpu-residency.js +32 -0
- package/dist/core/gpu-residency.js.map +1 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/managed-engines.d.ts +207 -0
- package/dist/core/managed-engines.js +579 -0
- package/dist/core/managed-engines.js.map +1 -0
- package/dist/core/managed-environment.d.ts +72 -0
- package/dist/core/managed-environment.js +218 -0
- package/dist/core/managed-environment.js.map +1 -0
- package/dist/core/model-setup/index.d.ts +4 -0
- package/dist/core/model-setup/index.js +5 -0
- package/dist/core/model-setup/index.js.map +1 -0
- package/dist/core/model-setup/plan.d.ts +56 -0
- package/dist/core/model-setup/plan.js +158 -0
- package/dist/core/model-setup/plan.js.map +1 -0
- package/dist/core/model-setup/service.d.ts +92 -0
- package/dist/core/model-setup/service.js +329 -0
- package/dist/core/model-setup/service.js.map +1 -0
- package/dist/core/model-setup/store.d.ts +29 -0
- package/dist/core/model-setup/store.js +116 -0
- package/dist/core/model-setup/store.js.map +1 -0
- package/dist/core/model-setup/wiring.d.ts +59 -0
- package/dist/core/model-setup/wiring.js +132 -0
- package/dist/core/model-setup/wiring.js.map +1 -0
- package/dist/core/prism.d.ts +36 -0
- package/dist/core/prism.js +42 -0
- package/dist/core/prism.js.map +1 -0
- package/dist/core/public-server.d.ts +7 -0
- package/dist/core/public-server.js +2 -0
- package/dist/core/public-server.js.map +1 -1
- package/dist/core/sessions.d.ts +6 -1
- package/dist/core/sessions.js +18 -14
- package/dist/core/sessions.js.map +1 -1
- package/dist/core/types.d.ts +27 -1
- package/dist/core/types.js.map +1 -1
- package/dist/decision/args.d.ts +110 -0
- package/dist/decision/args.js +126 -0
- package/dist/decision/args.js.map +1 -0
- package/dist/decision/backoff.d.ts +25 -0
- package/dist/decision/backoff.js +33 -0
- package/dist/decision/backoff.js.map +1 -0
- package/dist/decision/engine-candidates.d.ts +52 -0
- package/dist/decision/engine-candidates.js +138 -0
- package/dist/decision/engine-candidates.js.map +1 -0
- package/dist/decision/engine-fallback.d.ts +41 -0
- package/dist/decision/engine-fallback.js +57 -0
- package/dist/decision/engine-fallback.js.map +1 -0
- package/dist/decision/engine-version.d.ts +27 -0
- package/dist/decision/engine-version.js +54 -0
- package/dist/decision/engine-version.js.map +1 -0
- package/dist/decision/engine.d.ts +114 -0
- package/dist/decision/engine.js +253 -0
- package/dist/decision/engine.js.map +1 -0
- package/dist/decision/http.d.ts +36 -0
- package/dist/decision/http.js +73 -0
- package/dist/decision/http.js.map +1 -0
- package/dist/decision/index.d.ts +20 -0
- package/dist/decision/index.js +21 -0
- package/dist/decision/index.js.map +1 -0
- package/dist/decision/model-facts.d.ts +32 -0
- package/dist/decision/model-facts.js +40 -0
- package/dist/decision/model-facts.js.map +1 -0
- package/dist/decision/outcome.d.ts +35 -0
- package/dist/decision/outcome.js +105 -0
- package/dist/decision/outcome.js.map +1 -0
- package/dist/decision/process.d.ts +67 -0
- package/dist/decision/process.js +133 -0
- package/dist/decision/process.js.map +1 -0
- package/dist/decision/readiness.d.ts +74 -0
- package/dist/decision/readiness.js +165 -0
- package/dist/decision/readiness.js.map +1 -0
- package/dist/decision/request.d.ts +11 -0
- package/dist/decision/request.js +56 -0
- package/dist/decision/request.js.map +1 -0
- package/dist/decision/service.d.ts +202 -0
- package/dist/decision/service.js +711 -0
- package/dist/decision/service.js.map +1 -0
- package/dist/decision/upstream-version.d.ts +23 -0
- package/dist/decision/upstream-version.js +34 -0
- package/dist/decision/upstream-version.js.map +1 -0
- package/dist/decision/wiring.d.ts +67 -0
- package/dist/decision/wiring.js +101 -0
- package/dist/decision/wiring.js.map +1 -0
- package/dist/diffusion/args.d.ts +4 -2
- package/dist/diffusion/args.js +10 -3
- package/dist/diffusion/args.js.map +1 -1
- package/dist/diffusion/image-job.js +1 -1
- package/dist/diffusion/image-job.js.map +1 -1
- package/dist/diffusion/install.d.ts +35 -11
- package/dist/diffusion/install.js +74 -49
- package/dist/diffusion/install.js.map +1 -1
- package/dist/diffusion/job-kind.d.ts +33 -7
- package/dist/diffusion/jobs.d.ts +6 -1
- package/dist/diffusion/jobs.js +60 -18
- package/dist/diffusion/jobs.js.map +1 -1
- package/dist/diffusion/parse.d.ts +1 -2
- package/dist/diffusion/parse.js +1 -13
- package/dist/diffusion/parse.js.map +1 -1
- package/dist/diffusion/progress.js +3 -0
- package/dist/diffusion/progress.js.map +1 -1
- package/dist/diffusion/server-process.d.ts +6 -0
- package/dist/diffusion/server-process.js +3 -2
- package/dist/diffusion/server-process.js.map +1 -1
- package/dist/diffusion/service.d.ts +52 -6
- package/dist/diffusion/service.js +215 -40
- package/dist/diffusion/service.js.map +1 -1
- package/dist/diffusion/session.d.ts +27 -3
- package/dist/diffusion/session.js +108 -17
- package/dist/diffusion/session.js.map +1 -1
- package/dist/diffusion/state.d.ts +19 -1
- package/dist/diffusion/state.js +10 -0
- package/dist/diffusion/state.js.map +1 -1
- package/dist/diffusion/tracker.d.ts +15 -1
- package/dist/diffusion/tracker.js +32 -6
- package/dist/diffusion/tracker.js.map +1 -1
- package/dist/diffusion/types.d.ts +7 -0
- package/dist/diffusion/types.js +11 -0
- package/dist/diffusion/types.js.map +1 -1
- package/dist/diffusion/video-estimate.d.ts +214 -0
- package/dist/diffusion/video-estimate.js +402 -0
- package/dist/diffusion/video-estimate.js.map +1 -0
- package/dist/diffusion/video-eta.d.ts +90 -0
- package/dist/diffusion/video-eta.js +248 -0
- package/dist/diffusion/video-eta.js.map +1 -0
- package/dist/diffusion/video-history.d.ts +45 -0
- package/dist/diffusion/video-history.js +121 -0
- package/dist/diffusion/video-history.js.map +1 -0
- package/dist/diffusion/video-job.d.ts +13 -5
- package/dist/diffusion/video-job.js +42 -15
- package/dist/diffusion/video-job.js.map +1 -1
- package/dist/diffusion/video-recipe.js +3 -0
- package/dist/diffusion/video-recipe.js.map +1 -1
- package/dist/diffusion/video-tiling.d.ts +54 -0
- package/dist/diffusion/video-tiling.js +70 -0
- package/dist/diffusion/video-tiling.js.map +1 -0
- package/dist/diffusion/wiring.d.ts +14 -1
- package/dist/diffusion/wiring.js +7 -0
- package/dist/diffusion/wiring.js.map +1 -1
- package/dist/downloads/protocol.d.ts +3 -8
- package/dist/downloads/protocol.js.map +1 -1
- package/dist/embedding/args.d.ts +39 -0
- package/dist/embedding/args.js +46 -0
- package/dist/embedding/args.js.map +1 -0
- package/dist/embedding/engine.d.ts +50 -0
- package/dist/embedding/engine.js +100 -0
- package/dist/embedding/engine.js.map +1 -0
- package/dist/embedding/ffmpeg.d.ts +18 -0
- package/dist/embedding/ffmpeg.js +63 -0
- package/dist/embedding/ffmpeg.js.map +1 -0
- package/dist/embedding/index.d.ts +16 -0
- package/dist/embedding/index.js +17 -0
- package/dist/embedding/index.js.map +1 -0
- package/dist/embedding/model-facts.d.ts +51 -0
- package/dist/embedding/model-facts.js +84 -0
- package/dist/embedding/model-facts.js.map +1 -0
- package/dist/embedding/process.d.ts +66 -0
- package/dist/embedding/process.js +131 -0
- package/dist/embedding/process.js.map +1 -0
- package/dist/embedding/readiness.d.ts +56 -0
- package/dist/embedding/readiness.js +114 -0
- package/dist/embedding/readiness.js.map +1 -0
- package/dist/embedding/request.d.ts +43 -0
- package/dist/embedding/request.js +285 -0
- package/dist/embedding/request.js.map +1 -0
- package/dist/embedding/service.d.ts +152 -0
- package/dist/embedding/service.js +602 -0
- package/dist/embedding/service.js.map +1 -0
- package/dist/embedding/wiring.d.ts +51 -0
- package/dist/embedding/wiring.js +79 -0
- package/dist/embedding/wiring.js.map +1 -0
- package/dist/engine-builds/builds.d.ts +54 -0
- package/dist/engine-builds/builds.js +151 -0
- package/dist/engine-builds/builds.js.map +1 -0
- package/dist/engine-builds/index.d.ts +10 -0
- package/dist/engine-builds/index.js +11 -0
- package/dist/engine-builds/index.js.map +1 -0
- package/dist/engine-builds/install.d.ts +42 -0
- package/dist/engine-builds/install.js +100 -0
- package/dist/engine-builds/install.js.map +1 -0
- package/dist/engine-builds/manifest.d.ts +121 -0
- package/dist/engine-builds/manifest.js +254 -0
- package/dist/engine-builds/manifest.js.map +1 -0
- package/dist/engine-builds/order.d.ts +24 -0
- package/dist/engine-builds/order.js +44 -0
- package/dist/engine-builds/order.js.map +1 -0
- package/dist/engine-builds/select.d.ts +123 -0
- package/dist/engine-builds/select.js +223 -0
- package/dist/engine-builds/select.js.map +1 -0
- package/dist/engine-builds/service.d.ts +123 -0
- package/dist/engine-builds/service.js +392 -0
- package/dist/engine-builds/service.js.map +1 -0
- package/dist/engines/descriptor-order.d.ts +28 -0
- package/dist/engines/descriptor-order.js +60 -0
- package/dist/engines/descriptor-order.js.map +1 -0
- package/dist/engines/engine-build.d.ts +23 -0
- package/dist/engines/engine-build.js +58 -0
- package/dist/engines/engine-build.js.map +1 -0
- package/dist/engines/index.d.ts +10 -0
- package/dist/engines/index.js +11 -0
- package/dist/engines/index.js.map +1 -0
- package/dist/engines/llamacpp.d.ts +71 -0
- package/dist/engines/llamacpp.js +176 -0
- package/dist/engines/llamacpp.js.map +1 -0
- package/dist/engines/managed.d.ts +49 -0
- package/dist/engines/managed.js +88 -0
- package/dist/engines/managed.js.map +1 -0
- package/dist/engines/service.d.ts +46 -0
- package/dist/engines/service.js +61 -0
- package/dist/engines/service.js.map +1 -0
- package/dist/engines/versions.d.ts +65 -0
- package/dist/engines/versions.js +259 -0
- package/dist/engines/versions.js.map +1 -0
- package/dist/hardware/cpu-flags.d.ts +44 -0
- package/dist/hardware/cpu-flags.js +206 -0
- package/dist/hardware/cpu-flags.js.map +1 -0
- package/dist/hardware/drm-sysfs.d.ts +51 -0
- package/dist/hardware/drm-sysfs.js +67 -0
- package/dist/hardware/drm-sysfs.js.map +1 -0
- package/dist/hardware/facts.d.ts +42 -0
- package/dist/hardware/facts.js +92 -0
- package/dist/hardware/facts.js.map +1 -0
- package/dist/hardware/index.d.ts +19 -3
- package/dist/hardware/index.js +19 -3
- package/dist/hardware/index.js.map +1 -1
- package/dist/hardware/merge.d.ts +55 -0
- package/dist/hardware/merge.js +141 -0
- package/dist/hardware/merge.js.map +1 -0
- package/dist/hardware/nvidia-smi.d.ts +43 -0
- package/dist/hardware/nvidia-smi.js +118 -0
- package/dist/hardware/nvidia-smi.js.map +1 -0
- package/dist/hardware/probe-common.d.ts +72 -0
- package/dist/hardware/probe-common.js +106 -0
- package/dist/hardware/probe-common.js.map +1 -0
- package/dist/hardware/probe-darwin.d.ts +20 -0
- package/dist/hardware/probe-darwin.js +76 -0
- package/dist/hardware/probe-darwin.js.map +1 -0
- package/dist/hardware/probe-linux.d.ts +9 -0
- package/dist/hardware/probe-linux.js +133 -0
- package/dist/hardware/probe-linux.js.map +1 -0
- package/dist/hardware/probe-windows.d.ts +7 -0
- package/dist/hardware/probe-windows.js +50 -0
- package/dist/hardware/probe-windows.js.map +1 -0
- package/dist/hardware/probe.d.ts +16 -0
- package/dist/hardware/probe.js +65 -0
- package/dist/hardware/probe.js.map +1 -0
- package/dist/hardware/service.d.ts +60 -0
- package/dist/hardware/service.js +114 -0
- package/dist/hardware/service.js.map +1 -0
- package/dist/hardware/vulkan.d.ts +47 -0
- package/dist/hardware/vulkan.js +148 -0
- package/dist/hardware/vulkan.js.map +1 -0
- package/dist/hardware/windows-video.d.ts +97 -0
- package/dist/hardware/windows-video.js +214 -0
- package/dist/hardware/windows-video.js.map +1 -0
- package/dist/host/app-daemon.d.ts +47 -0
- package/dist/host/app-daemon.js +146 -0
- package/dist/host/app-daemon.js.map +1 -0
- package/dist/host/index.d.ts +5 -3
- package/dist/host/index.js +5 -3
- package/dist/host/index.js.map +1 -1
- package/dist/host/log-file.d.ts +74 -0
- package/dist/host/log-file.js +214 -0
- package/dist/host/log-file.js.map +1 -0
- package/dist/host/recipes/enable-wsl.d.ts +63 -0
- package/dist/host/recipes/enable-wsl.js +73 -0
- package/dist/host/recipes/enable-wsl.js.map +1 -0
- package/dist/host/recipes/executor-io-windows.d.ts +69 -0
- package/dist/host/recipes/executor-io-windows.js +235 -0
- package/dist/host/recipes/executor-io-windows.js.map +1 -0
- package/dist/host/recipes/executor-io.d.ts +80 -0
- package/dist/host/recipes/executor-io.js +211 -0
- package/dist/host/recipes/executor-io.js.map +1 -0
- package/dist/host/recipes/executor.d.ts +81 -0
- package/dist/host/recipes/executor.js +678 -0
- package/dist/host/recipes/executor.js.map +1 -0
- package/dist/host/recipes/guest-executor.d.ts +29 -0
- package/dist/host/recipes/guest-executor.js +76 -0
- package/dist/host/recipes/guest-executor.js.map +1 -0
- package/dist/host/recipes/index.d.ts +16 -0
- package/dist/host/recipes/index.js +17 -0
- package/dist/host/recipes/index.js.map +1 -0
- package/dist/host/recipes/install-container-runtime.d.ts +389 -0
- package/dist/host/recipes/install-container-runtime.js +796 -0
- package/dist/host/recipes/install-container-runtime.js.map +1 -0
- package/dist/host/recipes/openpgp.d.ts +23 -0
- package/dist/host/recipes/openpgp.js +153 -0
- package/dist/host/recipes/openpgp.js.map +1 -0
- package/dist/host/recipes/request-file.d.ts +96 -0
- package/dist/host/recipes/request-file.js +103 -0
- package/dist/host/recipes/request-file.js.map +1 -0
- package/dist/lock/process-journal.d.ts +5 -2
- package/dist/lock/process-journal.js.map +1 -1
- package/dist/models/capabilities.d.ts +7 -0
- package/dist/models/capabilities.js +17 -1
- package/dist/models/capabilities.js.map +1 -1
- package/dist/models/compatibility/index.d.ts +10 -0
- package/dist/models/compatibility/index.js +11 -0
- package/dist/models/compatibility/index.js.map +1 -0
- package/dist/models/compatibility/inspect.d.ts +19 -0
- package/dist/models/compatibility/inspect.js +59 -0
- package/dist/models/compatibility/inspect.js.map +1 -0
- package/dist/models/compatibility/resolve.d.ts +59 -0
- package/dist/models/compatibility/resolve.js +219 -0
- package/dist/models/compatibility/resolve.js.map +1 -0
- package/dist/models/compatibility/rules-baseline.d.ts +2 -0
- package/dist/models/compatibility/rules-baseline.js +10 -0
- package/dist/models/compatibility/rules-baseline.js.map +1 -0
- package/dist/models/compatibility/rules-baseline.json +292 -0
- package/dist/models/compatibility/rules-service.d.ts +36 -0
- package/dist/models/compatibility/rules-service.js +109 -0
- package/dist/models/compatibility/rules-service.js.map +1 -0
- package/dist/models/compatibility/rules.d.ts +81 -0
- package/dist/models/compatibility/rules.js +164 -0
- package/dist/models/compatibility/rules.js.map +1 -0
- package/dist/models/compatibility/service.d.ts +59 -0
- package/dist/models/compatibility/service.js +137 -0
- package/dist/models/compatibility/service.js.map +1 -0
- package/dist/models/decision-checkpoint.d.ts +22 -0
- package/dist/models/decision-checkpoint.js +33 -0
- package/dist/models/decision-checkpoint.js.map +1 -0
- package/dist/models/gguf/classify.d.ts +27 -1
- package/dist/models/gguf/classify.js +78 -2
- package/dist/models/gguf/classify.js.map +1 -1
- package/dist/models/gguf/index.d.ts +1 -0
- package/dist/models/gguf/index.js +1 -0
- package/dist/models/gguf/index.js.map +1 -1
- package/dist/models/gguf/tensors.d.ts +56 -0
- package/dist/models/gguf/tensors.js +236 -0
- package/dist/models/gguf/tensors.js.map +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/index.js.map +1 -1
- package/dist/router/resolve.d.ts +7 -1
- package/dist/router/resolve.js +14 -1
- package/dist/router/resolve.js.map +1 -1
- package/dist/runtime/container/argv.d.ts +88 -0
- package/dist/runtime/container/argv.js +406 -0
- package/dist/runtime/container/argv.js.map +1 -0
- package/dist/runtime/container/docker-binary.d.ts +4 -0
- package/dist/runtime/container/docker-binary.js +34 -0
- package/dist/runtime/container/docker-binary.js.map +1 -0
- package/dist/runtime/container/env.d.ts +17 -0
- package/dist/runtime/container/env.js +52 -0
- package/dist/runtime/container/env.js.map +1 -0
- package/dist/runtime/container/exec.d.ts +27 -0
- package/dist/runtime/container/exec.js +79 -0
- package/dist/runtime/container/exec.js.map +1 -0
- package/dist/runtime/container/execution-journal.d.ts +55 -0
- package/dist/runtime/container/execution-journal.js +167 -0
- package/dist/runtime/container/execution-journal.js.map +1 -0
- package/dist/runtime/container/heartbeat.d.ts +47 -0
- package/dist/runtime/container/heartbeat.js +78 -0
- package/dist/runtime/container/heartbeat.js.map +1 -0
- package/dist/runtime/container/index.d.ts +30 -0
- package/dist/runtime/container/index.js +31 -0
- package/dist/runtime/container/index.js.map +1 -0
- package/dist/runtime/container/operations.d.ts +40 -0
- package/dist/runtime/container/operations.js +233 -0
- package/dist/runtime/container/operations.js.map +1 -0
- package/dist/runtime/container/pull.d.ts +48 -0
- package/dist/runtime/container/pull.js +280 -0
- package/dist/runtime/container/pull.js.map +1 -0
- package/dist/runtime/container/reconcile.d.ts +34 -0
- package/dist/runtime/container/reconcile.js +79 -0
- package/dist/runtime/container/reconcile.js.map +1 -0
- package/dist/runtime/container/types.d.ts +124 -0
- package/dist/runtime/container/types.js +2 -0
- package/dist/runtime/container/types.js.map +1 -0
- package/dist/runtime/container/watchdog.d.ts +114 -0
- package/dist/runtime/container/watchdog.js +418 -0
- package/dist/runtime/container/watchdog.js.map +1 -0
- package/dist/runtime/container/wiring.d.ts +78 -0
- package/dist/runtime/container/wiring.js +92 -0
- package/dist/runtime/container/wiring.js.map +1 -0
- package/dist/runtime/container/wsl-exec.d.ts +13 -0
- package/dist/runtime/container/wsl-exec.js +18 -0
- package/dist/runtime/container/wsl-exec.js.map +1 -0
- package/dist/runtime/environment/cached-document.d.ts +128 -0
- package/dist/runtime/environment/cached-document.js +218 -0
- package/dist/runtime/environment/cached-document.js.map +1 -0
- package/dist/runtime/environment/canonical-json.d.ts +78 -0
- package/dist/runtime/environment/canonical-json.js +86 -0
- package/dist/runtime/environment/canonical-json.js.map +1 -0
- package/dist/runtime/environment/descriptor-provider.d.ts +121 -0
- package/dist/runtime/environment/descriptor-provider.js +159 -0
- package/dist/runtime/environment/descriptor-provider.js.map +1 -0
- package/dist/runtime/environment/descriptor.d.ts +35 -0
- package/dist/runtime/environment/descriptor.js +239 -0
- package/dist/runtime/environment/descriptor.js.map +1 -0
- package/dist/runtime/environment/diagnostics.d.ts +50 -0
- package/dist/runtime/environment/diagnostics.js +114 -0
- package/dist/runtime/environment/diagnostics.js.map +1 -0
- package/dist/runtime/environment/document-fields.d.ts +39 -0
- package/dist/runtime/environment/document-fields.js +96 -0
- package/dist/runtime/environment/document-fields.js.map +1 -0
- package/dist/runtime/environment/environment-manifest-provider.d.ts +65 -0
- package/dist/runtime/environment/environment-manifest-provider.js +89 -0
- package/dist/runtime/environment/environment-manifest-provider.js.map +1 -0
- package/dist/runtime/environment/environment-manifest.d.ts +35 -0
- package/dist/runtime/environment/environment-manifest.js +131 -0
- package/dist/runtime/environment/environment-manifest.js.map +1 -0
- package/dist/runtime/environment/guest-host.d.ts +43 -0
- package/dist/runtime/environment/guest-host.js +88 -0
- package/dist/runtime/environment/guest-host.js.map +1 -0
- package/dist/runtime/environment/host-exec.d.ts +38 -0
- package/dist/runtime/environment/host-exec.js +145 -0
- package/dist/runtime/environment/host-exec.js.map +1 -0
- package/dist/runtime/environment/host-step-failure.d.ts +33 -0
- package/dist/runtime/environment/host-step-failure.js +34 -0
- package/dist/runtime/environment/host-step-failure.js.map +1 -0
- package/dist/runtime/environment/index.d.ts +56 -0
- package/dist/runtime/environment/index.js +57 -0
- package/dist/runtime/environment/index.js.map +1 -0
- package/dist/runtime/environment/installations.d.ts +25 -0
- package/dist/runtime/environment/installations.js +70 -0
- package/dist/runtime/environment/installations.js.map +1 -0
- package/dist/runtime/environment/inventory.d.ts +42 -0
- package/dist/runtime/environment/inventory.js +57 -0
- package/dist/runtime/environment/inventory.js.map +1 -0
- package/dist/runtime/environment/linux-blockers.d.ts +130 -0
- package/dist/runtime/environment/linux-blockers.js +251 -0
- package/dist/runtime/environment/linux-blockers.js.map +1 -0
- package/dist/runtime/environment/linux-docker-facts.d.ts +200 -0
- package/dist/runtime/environment/linux-docker-facts.js +342 -0
- package/dist/runtime/environment/linux-docker-facts.js.map +1 -0
- package/dist/runtime/environment/linux-docker-network.d.ts +80 -0
- package/dist/runtime/environment/linux-docker-network.js +195 -0
- package/dist/runtime/environment/linux-docker-network.js.map +1 -0
- package/dist/runtime/environment/linux-host.d.ts +22 -0
- package/dist/runtime/environment/linux-host.js +98 -0
- package/dist/runtime/environment/linux-host.js.map +1 -0
- package/dist/runtime/environment/linux-plan.d.ts +126 -0
- package/dist/runtime/environment/linux-plan.js +392 -0
- package/dist/runtime/environment/linux-plan.js.map +1 -0
- package/dist/runtime/environment/linux-probe.d.ts +245 -0
- package/dist/runtime/environment/linux-probe.js +315 -0
- package/dist/runtime/environment/linux-probe.js.map +1 -0
- package/dist/runtime/environment/linux-provisioner.d.ts +102 -0
- package/dist/runtime/environment/linux-provisioner.js +734 -0
- package/dist/runtime/environment/linux-provisioner.js.map +1 -0
- package/dist/runtime/environment/provisioner-descriptors.d.ts +17 -0
- package/dist/runtime/environment/provisioner-descriptors.js +62 -0
- package/dist/runtime/environment/provisioner-descriptors.js.map +1 -0
- package/dist/runtime/environment/recovery.d.ts +74 -0
- package/dist/runtime/environment/recovery.js +121 -0
- package/dist/runtime/environment/recovery.js.map +1 -0
- package/dist/runtime/environment/rootfs-download.d.ts +2 -0
- package/dist/runtime/environment/rootfs-download.js +47 -0
- package/dist/runtime/environment/rootfs-download.js.map +1 -0
- package/dist/runtime/environment/service.d.ts +280 -0
- package/dist/runtime/environment/service.js +776 -0
- package/dist/runtime/environment/service.js.map +1 -0
- package/dist/runtime/environment/state.d.ts +163 -0
- package/dist/runtime/environment/state.js +479 -0
- package/dist/runtime/environment/state.js.map +1 -0
- package/dist/runtime/environment/store-models.d.ts +19 -0
- package/dist/runtime/environment/store-models.js +30 -0
- package/dist/runtime/environment/store-models.js.map +1 -0
- package/dist/runtime/environment/store.d.ts +210 -0
- package/dist/runtime/environment/store.js +438 -0
- package/dist/runtime/environment/store.js.map +1 -0
- package/dist/runtime/environment/windows-environment-record.d.ts +48 -0
- package/dist/runtime/environment/windows-environment-record.js +89 -0
- package/dist/runtime/environment/windows-environment-record.js.map +1 -0
- package/dist/runtime/environment/windows-forwarding.d.ts +27 -0
- package/dist/runtime/environment/windows-forwarding.js +84 -0
- package/dist/runtime/environment/windows-forwarding.js.map +1 -0
- package/dist/runtime/environment/windows-guest-setup.d.ts +48 -0
- package/dist/runtime/environment/windows-guest-setup.js +157 -0
- package/dist/runtime/environment/windows-guest-setup.js.map +1 -0
- package/dist/runtime/environment/windows-host.d.ts +46 -0
- package/dist/runtime/environment/windows-host.js +163 -0
- package/dist/runtime/environment/windows-host.js.map +1 -0
- package/dist/runtime/environment/windows-plan.d.ts +78 -0
- package/dist/runtime/environment/windows-plan.js +216 -0
- package/dist/runtime/environment/windows-plan.js.map +1 -0
- package/dist/runtime/environment/windows-probe.d.ts +135 -0
- package/dist/runtime/environment/windows-probe.js +261 -0
- package/dist/runtime/environment/windows-probe.js.map +1 -0
- package/dist/runtime/environment/windows-provisioner.d.ts +113 -0
- package/dist/runtime/environment/windows-provisioner.js +782 -0
- package/dist/runtime/environment/windows-provisioner.js.map +1 -0
- package/dist/runtime/environment/wiring.d.ts +117 -0
- package/dist/runtime/environment/wiring.js +354 -0
- package/dist/runtime/environment/wiring.js.map +1 -0
- package/dist/runtime/foundation-models/runtime.d.ts +8 -0
- package/dist/runtime/foundation-models/runtime.js +5 -2
- package/dist/runtime/foundation-models/runtime.js.map +1 -1
- package/dist/runtime/llamacpp/args.d.ts +10 -1
- package/dist/runtime/llamacpp/args.js +43 -7
- package/dist/runtime/llamacpp/args.js.map +1 -1
- package/dist/runtime/llamacpp/fit-margin.d.ts +46 -0
- package/dist/runtime/llamacpp/fit-margin.js +47 -0
- package/dist/runtime/llamacpp/fit-margin.js.map +1 -0
- package/dist/runtime/llamacpp/index.d.ts +1 -0
- package/dist/runtime/llamacpp/index.js +1 -0
- package/dist/runtime/llamacpp/index.js.map +1 -1
- package/dist/runtime/llamacpp/load-plan.d.ts +23 -1
- package/dist/runtime/llamacpp/load-plan.js +82 -1
- package/dist/runtime/llamacpp/load-plan.js.map +1 -1
- package/dist/runtime/llamacpp/policy.d.ts +16 -0
- package/dist/runtime/llamacpp/policy.js +20 -0
- package/dist/runtime/llamacpp/policy.js.map +1 -1
- package/dist/runtime/llamacpp/probe.d.ts +21 -1
- package/dist/runtime/llamacpp/probe.js +32 -6
- package/dist/runtime/llamacpp/probe.js.map +1 -1
- package/dist/runtime/llamacpp/runtime.d.ts +56 -1
- package/dist/runtime/llamacpp/runtime.js +142 -15
- package/dist/runtime/llamacpp/runtime.js.map +1 -1
- package/dist/runtime/managed-engines/index.d.ts +8 -0
- package/dist/runtime/managed-engines/index.js +9 -0
- package/dist/runtime/managed-engines/index.js.map +1 -0
- package/dist/runtime/managed-engines/runtime.d.ts +140 -0
- package/dist/runtime/managed-engines/runtime.js +402 -0
- package/dist/runtime/managed-engines/runtime.js.map +1 -0
- package/dist/runtime/managed-engines/spec.d.ts +70 -0
- package/dist/runtime/managed-engines/spec.js +39 -0
- package/dist/runtime/managed-engines/spec.js.map +1 -0
- package/dist/runtime/managed-models/check.d.ts +50 -0
- package/dist/runtime/managed-models/check.js +157 -0
- package/dist/runtime/managed-models/check.js.map +1 -0
- package/dist/runtime/managed-models/compatibility.d.ts +256 -0
- package/dist/runtime/managed-models/compatibility.js +594 -0
- package/dist/runtime/managed-models/compatibility.js.map +1 -0
- package/dist/runtime/managed-models/delete.d.ts +15 -0
- package/dist/runtime/managed-models/delete.js +60 -0
- package/dist/runtime/managed-models/delete.js.map +1 -0
- package/dist/runtime/managed-models/guest-files.d.ts +8 -0
- package/dist/runtime/managed-models/guest-files.js +49 -0
- package/dist/runtime/managed-models/guest-files.js.map +1 -0
- package/dist/runtime/managed-models/index.d.ts +17 -0
- package/dist/runtime/managed-models/index.js +18 -0
- package/dist/runtime/managed-models/index.js.map +1 -0
- package/dist/runtime/managed-models/location.d.ts +22 -0
- package/dist/runtime/managed-models/location.js +53 -0
- package/dist/runtime/managed-models/location.js.map +1 -0
- package/dist/runtime/managed-models/migrate.d.ts +30 -0
- package/dist/runtime/managed-models/migrate.js +119 -0
- package/dist/runtime/managed-models/migrate.js.map +1 -0
- package/dist/runtime/managed-models/model-dir.d.ts +36 -0
- package/dist/runtime/managed-models/model-dir.js +136 -0
- package/dist/runtime/managed-models/model-dir.js.map +1 -0
- package/dist/runtime/managed-models/quant-format.d.ts +71 -0
- package/dist/runtime/managed-models/quant-format.js +299 -0
- package/dist/runtime/managed-models/quant-format.js.map +1 -0
- package/dist/runtime/managed-models/registry.d.ts +26 -0
- package/dist/runtime/managed-models/registry.js +66 -0
- package/dist/runtime/managed-models/registry.js.map +1 -0
- package/dist/runtime/managed-text/adapter.d.ts +266 -0
- package/dist/runtime/managed-text/adapter.js +96 -0
- package/dist/runtime/managed-text/adapter.js.map +1 -0
- package/dist/runtime/managed-text/backend-target.d.ts +3 -0
- package/dist/runtime/managed-text/backend-target.js +52 -0
- package/dist/runtime/managed-text/backend-target.js.map +1 -0
- package/dist/runtime/managed-text/deployment.d.ts +14 -0
- package/dist/runtime/managed-text/deployment.js +32 -0
- package/dist/runtime/managed-text/deployment.js.map +1 -0
- package/dist/runtime/managed-text/engine-cache.d.ts +15 -0
- package/dist/runtime/managed-text/engine-cache.js +64 -0
- package/dist/runtime/managed-text/engine-cache.js.map +1 -0
- package/dist/runtime/managed-text/gateway.d.ts +158 -0
- package/dist/runtime/managed-text/gateway.js +535 -0
- package/dist/runtime/managed-text/gateway.js.map +1 -0
- package/dist/runtime/managed-text/generation-defaults.d.ts +23 -0
- package/dist/runtime/managed-text/generation-defaults.js +51 -0
- package/dist/runtime/managed-text/generation-defaults.js.map +1 -0
- package/dist/runtime/managed-text/index.d.ts +26 -0
- package/dist/runtime/managed-text/index.js +27 -0
- package/dist/runtime/managed-text/index.js.map +1 -0
- package/dist/runtime/managed-text/lifecycle.d.ts +276 -0
- package/dist/runtime/managed-text/lifecycle.js +859 -0
- package/dist/runtime/managed-text/lifecycle.js.map +1 -0
- package/dist/runtime/managed-text/load-policy.d.ts +47 -0
- package/dist/runtime/managed-text/load-policy.js +111 -0
- package/dist/runtime/managed-text/load-policy.js.map +1 -0
- package/dist/runtime/managed-text/mount-source.d.ts +14 -0
- package/dist/runtime/managed-text/mount-source.js +18 -0
- package/dist/runtime/managed-text/mount-source.js.map +1 -0
- package/dist/runtime/managed-text/readiness.d.ts +13 -0
- package/dist/runtime/managed-text/readiness.js +24 -0
- package/dist/runtime/managed-text/readiness.js.map +1 -0
- package/dist/runtime/managed-text/request-rules.d.ts +18 -0
- package/dist/runtime/managed-text/request-rules.js +62 -0
- package/dist/runtime/managed-text/request-rules.js.map +1 -0
- package/dist/runtime/managed-text/types.d.ts +88 -0
- package/dist/runtime/managed-text/types.js +12 -0
- package/dist/runtime/managed-text/types.js.map +1 -0
- package/dist/runtime/managed-text/wsl-deployment.d.ts +24 -0
- package/dist/runtime/managed-text/wsl-deployment.js +70 -0
- package/dist/runtime/managed-text/wsl-deployment.js.map +1 -0
- package/dist/runtime/mlx/errors.d.ts +6 -1
- package/dist/runtime/mlx/errors.js +7 -2
- package/dist/runtime/mlx/errors.js.map +1 -1
- package/dist/runtime/mlx/runtime.d.ts +36 -1
- package/dist/runtime/mlx/runtime.js +85 -4
- package/dist/runtime/mlx/runtime.js.map +1 -1
- package/dist/runtime/shared/backend-output.d.ts +23 -0
- package/dist/runtime/shared/backend-output.js +32 -0
- package/dist/runtime/shared/backend-output.js.map +1 -0
- package/dist/runtime/shared/bounded-output.d.ts +24 -0
- package/dist/runtime/shared/bounded-output.js +63 -0
- package/dist/runtime/shared/bounded-output.js.map +1 -0
- package/dist/runtime/shared/external-sessions.js +9 -1
- package/dist/runtime/shared/external-sessions.js.map +1 -1
- package/dist/runtime/shared/gpu-occupancy.d.ts +60 -0
- package/dist/runtime/shared/gpu-occupancy.js +10 -0
- package/dist/runtime/shared/gpu-occupancy.js.map +1 -0
- package/dist/runtime/shared/index.d.ts +4 -0
- package/dist/runtime/shared/index.js +4 -0
- package/dist/runtime/shared/index.js.map +1 -1
- package/dist/runtime/shared/local-runtime.d.ts +35 -0
- package/dist/runtime/shared/ports.d.ts +6 -0
- package/dist/runtime/shared/ports.js +12 -1
- package/dist/runtime/shared/ports.js.map +1 -1
- package/dist/runtime/shared/process.d.ts +11 -0
- package/dist/runtime/shared/process.js +20 -0
- package/dist/runtime/shared/process.js.map +1 -1
- package/dist/runtime/shared/redact-args.d.ts +7 -0
- package/dist/runtime/shared/redact-args.js +26 -0
- package/dist/runtime/shared/redact-args.js.map +1 -0
- package/dist/runtime/shared/sidecar.d.ts +15 -0
- package/dist/runtime/shared/sidecar.js +43 -8
- package/dist/runtime/shared/sidecar.js.map +1 -1
- package/dist/runtime/tensorrt-llm/adapter.d.ts +250 -0
- package/dist/runtime/tensorrt-llm/adapter.js +1011 -0
- package/dist/runtime/tensorrt-llm/adapter.js.map +1 -0
- package/dist/runtime/tensorrt-llm/check.d.ts +12 -0
- package/dist/runtime/tensorrt-llm/check.js +21 -0
- package/dist/runtime/tensorrt-llm/check.js.map +1 -0
- package/dist/runtime/tensorrt-llm/compatibility.d.ts +100 -0
- package/dist/runtime/tensorrt-llm/compatibility.js +181 -0
- package/dist/runtime/tensorrt-llm/compatibility.js.map +1 -0
- package/dist/runtime/tensorrt-llm/engine.d.ts +3 -0
- package/dist/runtime/tensorrt-llm/engine.js +24 -0
- package/dist/runtime/tensorrt-llm/engine.js.map +1 -0
- package/dist/runtime/tensorrt-llm/host-facts.d.ts +55 -0
- package/dist/runtime/tensorrt-llm/host-facts.js +87 -0
- package/dist/runtime/tensorrt-llm/host-facts.js.map +1 -0
- package/dist/runtime/tensorrt-llm/index.d.ts +30 -0
- package/dist/runtime/tensorrt-llm/index.js +31 -0
- package/dist/runtime/tensorrt-llm/index.js.map +1 -0
- package/dist/runtime/tensorrt-llm/installation.d.ts +23 -0
- package/dist/runtime/tensorrt-llm/installation.js +53 -0
- package/dist/runtime/tensorrt-llm/installation.js.map +1 -0
- package/dist/runtime/tensorrt-llm/kv-cache.d.ts +25 -0
- package/dist/runtime/tensorrt-llm/kv-cache.js +28 -0
- package/dist/runtime/tensorrt-llm/kv-cache.js.map +1 -0
- package/dist/runtime/tensorrt-llm/prelaunch.d.ts +20 -0
- package/dist/runtime/tensorrt-llm/prelaunch.js +168 -0
- package/dist/runtime/tensorrt-llm/prelaunch.js.map +1 -0
- package/dist/runtime/tensorrt-llm/route-policy.d.ts +19 -0
- package/dist/runtime/tensorrt-llm/route-policy.js +17 -0
- package/dist/runtime/tensorrt-llm/route-policy.js.map +1 -0
- package/dist/runtime/tensorrt-llm/settings.d.ts +7 -0
- package/dist/runtime/tensorrt-llm/settings.js +48 -0
- package/dist/runtime/tensorrt-llm/settings.js.map +1 -0
- package/dist/runtime/vllm/adapter.d.ts +46 -0
- package/dist/runtime/vllm/adapter.js +425 -0
- package/dist/runtime/vllm/adapter.js.map +1 -0
- package/dist/runtime/vllm/engine.d.ts +16 -0
- package/dist/runtime/vllm/engine.js +37 -0
- package/dist/runtime/vllm/engine.js.map +1 -0
- package/dist/runtime/vllm/index.d.ts +11 -0
- package/dist/runtime/vllm/index.js +12 -0
- package/dist/runtime/vllm/index.js.map +1 -0
- package/dist/runtime/vllm/memory.d.ts +69 -0
- package/dist/runtime/vllm/memory.js +123 -0
- package/dist/runtime/vllm/memory.js.map +1 -0
- package/dist/runtime/vllm/settings.d.ts +52 -0
- package/dist/runtime/vllm/settings.js +151 -0
- package/dist/runtime/vllm/settings.js.map +1 -0
- package/dist/runtime/wsl/guest-paths.d.ts +33 -0
- package/dist/runtime/wsl/guest-paths.js +83 -0
- package/dist/runtime/wsl/guest-paths.js.map +1 -0
- package/dist/runtime/wsl/guest-scope.d.ts +14 -0
- package/dist/runtime/wsl/guest-scope.js +98 -0
- package/dist/runtime/wsl/guest-scope.js.map +1 -0
- package/dist/runtime/wsl/index.d.ts +12 -0
- package/dist/runtime/wsl/index.js +13 -0
- package/dist/runtime/wsl/index.js.map +1 -0
- package/dist/runtime/wsl/keeper.d.ts +29 -0
- package/dist/runtime/wsl/keeper.js +48 -0
- package/dist/runtime/wsl/keeper.js.map +1 -0
- package/dist/runtime/wsl/transport.d.ts +106 -0
- package/dist/runtime/wsl/transport.js +181 -0
- package/dist/runtime/wsl/transport.js.map +1 -0
- package/dist/server/control/index.d.ts +1 -1
- package/dist/server/control/router.js +15 -0
- package/dist/server/control/router.js.map +1 -1
- package/dist/server/control/routes/backends.js +26 -0
- package/dist/server/control/routes/backends.js.map +1 -1
- package/dist/server/control/routes/decision.d.ts +10 -0
- package/dist/server/control/routes/decision.js +43 -0
- package/dist/server/control/routes/decision.js.map +1 -0
- package/dist/server/control/routes/diffusion-video.js +4 -0
- package/dist/server/control/routes/diffusion-video.js.map +1 -1
- package/dist/server/control/routes/diffusion.d.ts +1 -1
- package/dist/server/control/routes/diffusion.js +4 -9
- package/dist/server/control/routes/diffusion.js.map +1 -1
- package/dist/server/control/routes/embedding.d.ts +9 -0
- package/dist/server/control/routes/embedding.js +43 -0
- package/dist/server/control/routes/embedding.js.map +1 -0
- package/dist/server/control/routes/engine-builds.d.ts +14 -0
- package/dist/server/control/routes/engine-builds.js +82 -0
- package/dist/server/control/routes/engine-builds.js.map +1 -0
- package/dist/server/control/routes/engines.d.ts +17 -0
- package/dist/server/control/routes/engines.js +152 -0
- package/dist/server/control/routes/engines.js.map +1 -0
- package/dist/server/control/routes/environments.d.ts +16 -0
- package/dist/server/control/routes/environments.js +207 -0
- package/dist/server/control/routes/environments.js.map +1 -0
- package/dist/server/control/routes/hardware.d.ts +1 -1
- package/dist/server/control/routes/hardware.js +11 -6
- package/dist/server/control/routes/hardware.js.map +1 -1
- package/dist/server/control/routes/model-setups.d.ts +11 -0
- package/dist/server/control/routes/model-setups.js +55 -0
- package/dist/server/control/routes/model-setups.js.map +1 -0
- package/dist/server/control/routes/models.d.ts +3 -2
- package/dist/server/control/routes/models.js +45 -2
- package/dist/server/control/routes/models.js.map +1 -1
- package/dist/server/control/types.d.ts +167 -9
- package/dist/server/control/types.js.map +1 -1
- package/dist/server/http.d.ts +9 -1
- package/dist/server/http.js +51 -1
- package/dist/server/http.js.map +1 -1
- package/dist/server/public/decision-preview.d.ts +17 -0
- package/dist/server/public/decision-preview.js +119 -0
- package/dist/server/public/decision-preview.js.map +1 -0
- package/dist/server/public/decision.d.ts +32 -0
- package/dist/server/public/decision.js +135 -0
- package/dist/server/public/decision.js.map +1 -0
- package/dist/server/public/embedding.d.ts +31 -0
- package/dist/server/public/embedding.js +126 -0
- package/dist/server/public/embedding.js.map +1 -0
- package/dist/server/public/errors.d.ts +2 -1
- package/dist/server/public/errors.js +5 -2
- package/dist/server/public/errors.js.map +1 -1
- package/dist/server/public/forward.js +75 -3
- package/dist/server/public/forward.js.map +1 -1
- package/dist/server/public/gates.d.ts +13 -0
- package/dist/server/public/gates.js +37 -14
- package/dist/server/public/gates.js.map +1 -1
- package/dist/server/public/index.d.ts +5 -2
- package/dist/server/public/index.js +14 -1
- package/dist/server/public/index.js.map +1 -1
- package/dist/server/public/listing.d.ts +13 -2
- package/dist/server/public/listing.js +33 -9
- package/dist/server/public/listing.js.map +1 -1
- package/dist/server/public/policy.d.ts +9 -0
- package/dist/server/public/policy.js +68 -0
- package/dist/server/public/policy.js.map +1 -0
- package/dist/server/public/responses.js +10 -0
- package/dist/server/public/responses.js.map +1 -1
- package/dist/server/public/trace.d.ts +2 -2
- package/dist/server/public/trace.js +6 -2
- package/dist/server/public/trace.js.map +1 -1
- package/dist/server/public/types.d.ts +84 -1
- package/dist/settings/decision.d.ts +15 -0
- package/dist/settings/decision.js +88 -0
- package/dist/settings/decision.js.map +1 -0
- package/dist/settings/embedding.d.ts +12 -0
- package/dist/settings/embedding.js +82 -0
- package/dist/settings/embedding.js.map +1 -0
- package/dist/settings/index.d.ts +2 -0
- package/dist/settings/index.js +2 -0
- package/dist/settings/index.js.map +1 -1
- package/dist/settings/schema/atomic-prism.json +433 -0
- package/dist/settings/schema/tensorrt-llm.json +253 -0
- package/dist/settings/schema/vllm.json +273 -0
- package/dist/settings/schema.js +58 -0
- package/dist/settings/schema.js.map +1 -1
- package/dist/settings/store.d.ts +13 -2
- package/dist/settings/store.js +44 -0
- package/dist/settings/store.js.map +1 -1
- package/dist/util/index.d.ts +1 -0
- package/dist/util/index.js +1 -0
- package/dist/util/index.js.map +1 -1
- package/dist/util/result.d.ts +19 -0
- package/dist/util/result.js +15 -0
- package/dist/util/result.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/src/settings/schema/atomic-prism.json +433 -0
- package/src/settings/schema/tensorrt-llm.json +253 -0
- package/src/settings/schema/vllm.json +273 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Managed text runtimes on the wire: the container environment the core owns, the per-engine
|
|
3
|
+
* runtime installations inside it, the durable operations that install, update and remove them,
|
|
4
|
+
* the metadata that says what one engine release runs and supports, and the verdict the core
|
|
5
|
+
* returns when asked whether a given checkpoint can run on this machine.
|
|
6
|
+
*
|
|
7
|
+
* Ported selectively from `origin/feat/tenzor-rt` @ `632b934` (openspec change
|
|
8
|
+
* `add-tensorrt-llm-linux`, design D1; see `docs/decisions/` for the ADR). The descriptor shapes
|
|
9
|
+
* below follow `atomic-chat-conf/runtimes/schema.json`, the source of truth for what a published
|
|
10
|
+
* descriptor contains (design D7/D9/D12); `ModelCompatibility` is new, the verdict of the future
|
|
11
|
+
* `POST /atomic/v1/models/tensorrt-llm/check` (spec `tensorrt-llm-models`). The environment routes,
|
|
12
|
+
* the durable operation and the Linux setup (task 2.6) produce the environment shapes.
|
|
13
|
+
*
|
|
14
|
+
* Browser-safe: types and string constants only, no `node:*`.
|
|
15
|
+
*
|
|
16
|
+
* Field names are snake_case: this surface is emitted from a descriptor published as JSON and has
|
|
17
|
+
* no older camelCase mirror to preserve.
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Which container engine an environment drives. One per host recipe: Docker on the Linux host
|
|
21
|
+
* itself, or the Docker inside the WSL distribution the core owns on Windows.
|
|
22
|
+
*/
|
|
23
|
+
export const EXECUTOR_KINDS = ['linux-docker', 'wsl-docker'];
|
|
24
|
+
/** What a durable operation is for. Removal is its own kind, never an update to an empty target. */
|
|
25
|
+
export const MANAGED_OPERATION_KINDS = ['setup', 'update', 'remove'];
|
|
26
|
+
/**
|
|
27
|
+
* Where a durable operation stands. `ready` means the target is verified — for a runtime target
|
|
28
|
+
* that is the installation, never the model, which has readiness of its own.
|
|
29
|
+
*
|
|
30
|
+
* `relogin-required` is Linux-only: adding the user to the `docker` group takes effect at their
|
|
31
|
+
* next sign-in, so the operation waits there and re-probes when the app opens again.
|
|
32
|
+
* `reboot-required` is the Windows equivalent after enabling the WSL features.
|
|
33
|
+
*/
|
|
34
|
+
export const MANAGED_PHASES = [
|
|
35
|
+
'checking',
|
|
36
|
+
'awaiting-consent',
|
|
37
|
+
'preparing-host',
|
|
38
|
+
'relogin-required',
|
|
39
|
+
'reboot-required',
|
|
40
|
+
'preparing-environment',
|
|
41
|
+
'pulling-image',
|
|
42
|
+
'verifying',
|
|
43
|
+
'activating',
|
|
44
|
+
'removing',
|
|
45
|
+
'ready',
|
|
46
|
+
'removed',
|
|
47
|
+
'cancelling',
|
|
48
|
+
'cancelled',
|
|
49
|
+
'failed',
|
|
50
|
+
];
|
|
51
|
+
/**
|
|
52
|
+
* Whether this host can run the target at all. `prerequisite-blocked` is a fact about the machine
|
|
53
|
+
* (no NVIDIA driver, an unqualified distribution); `setup-required` means it can, but has not.
|
|
54
|
+
*/
|
|
55
|
+
export const MANAGED_AVAILABILITY = [
|
|
56
|
+
'supported',
|
|
57
|
+
'setup-required',
|
|
58
|
+
'prerequisite-blocked',
|
|
59
|
+
'unsupported',
|
|
60
|
+
];
|
|
61
|
+
/** Lifecycle of one engine's installation inside an environment. */
|
|
62
|
+
export const RUNTIME_INSTALLATION_STATUSES = [
|
|
63
|
+
'absent',
|
|
64
|
+
'installing',
|
|
65
|
+
'ready',
|
|
66
|
+
'updating',
|
|
67
|
+
'removing',
|
|
68
|
+
'failed',
|
|
69
|
+
];
|
|
70
|
+
/**
|
|
71
|
+
* The one privileged thing the core asks the app to do, per host recipe. The webview never chooses
|
|
72
|
+
* a command: it forwards this step, and the trusted helper owns the arguments.
|
|
73
|
+
*/
|
|
74
|
+
export const MANAGED_HOST_ACTIONS = ['linux.install-container-runtime', 'windows.enable-wsl'];
|
|
75
|
+
/**
|
|
76
|
+
* The Windows causes of a blocker (`ManagedBlocker.reason`) or of a failure (`ErrorBody.details`) a
|
|
77
|
+
* client switches on (change `add-tensorrt-llm-windows`, spec `wsl-runtime-environment`):
|
|
78
|
+
* - `wsl-localhost-forwarding` — the engine answers inside the distribution but not on Windows'
|
|
79
|
+
* `127.0.0.1`: WSL's localhost forwarding is off or broken (`.wslconfig`);
|
|
80
|
+
* - `wsl-stopped` — the distribution or the WSL VM stopped under a running session;
|
|
81
|
+
* - `wsl-version` — the installed WSL is older than the manifest's `minimum_wsl_version`;
|
|
82
|
+
* - `wsl1-distribution` — Atomic Chat's own distribution is registered as WSL 1;
|
|
83
|
+
* - `virtualization-disabled` — virtualization is off in the firmware;
|
|
84
|
+
* - `foreign-distribution` — a distribution with Atomic Chat's name exists that it did not import.
|
|
85
|
+
*/
|
|
86
|
+
export const WSL_REASONS = [
|
|
87
|
+
'wsl-localhost-forwarding',
|
|
88
|
+
'wsl-stopped',
|
|
89
|
+
'wsl-version',
|
|
90
|
+
'wsl1-distribution',
|
|
91
|
+
'virtualization-disabled',
|
|
92
|
+
'foreign-distribution',
|
|
93
|
+
];
|
|
94
|
+
/**
|
|
95
|
+
* Package-manager family a Linux distribution uses, read from `/etc/os-release` `ID`/`ID_LIKE`
|
|
96
|
+
* (task 2.4). Arch and its derivatives (`pacman`) never check the install recipe's distribution
|
|
97
|
+
* list — they only ever adopt a working host or get exact manual instructions (design D2).
|
|
98
|
+
*/
|
|
99
|
+
export const LINUX_PACKAGE_FAMILIES = ['apt', 'dnf', 'pacman', 'other'];
|
|
100
|
+
/**
|
|
101
|
+
* How Docker Engine reached this machine, as far as a read-only probe can tell (task 2.4, design
|
|
102
|
+
* D2). `docker-ce`/`docker.io`/`moby-engine` are alternative distro packages this integration can
|
|
103
|
+
* adopt or complete; `snap`, `rootless`, `docker-desktop` and `podman-docker` describe an
|
|
104
|
+
* installation it will never install over or adopt, because there is no safe way to layer
|
|
105
|
+
* `docker-ce` on top of, or automatically replace, someone else's existing setup.
|
|
106
|
+
*/
|
|
107
|
+
export const LINUX_DOCKER_INSTALL_METHODS = [
|
|
108
|
+
'docker-ce',
|
|
109
|
+
'docker.io',
|
|
110
|
+
'moby-engine',
|
|
111
|
+
'snap',
|
|
112
|
+
'rootless',
|
|
113
|
+
'docker-desktop',
|
|
114
|
+
'podman-docker',
|
|
115
|
+
];
|
|
116
|
+
//# sourceMappingURL=environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/contracts/environment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAOH;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,cAAc,EAAE,YAAY,CAAU,CAAA;AAGrE,oGAAoG;AACpG,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAA;AAU7E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;IAClB,iBAAiB;IACjB,uBAAuB;IACvB,eAAe;IACf,WAAW;IACX,YAAY;IACZ,UAAU;IACV,OAAO;IACP,SAAS;IACT,YAAY;IACZ,WAAW;IACX,QAAQ;CACA,CAAA;AAGV;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,aAAa;CACL,CAAA;AAGV,oEAAoE;AACpE,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,QAAQ;IACR,YAAY;IACZ,OAAO;IACP,UAAU;IACV,UAAU;IACV,QAAQ;CACA,CAAA;AA4LV;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,iCAAiC,EAAE,oBAAoB,CAAU,CAAA;AAmLtG;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,0BAA0B;IAC1B,aAAa;IACb,aAAa;IACb,mBAAmB;IACnB,yBAAyB;IACzB,sBAAsB;CACd,CAAA;AA2IV;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAA;AAGhF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,WAAW;IACX,WAAW;IACX,aAAa;IACb,MAAM;IACN,UAAU;IACV,gBAAgB;IAChB,eAAe;CACP,CAAA"}
|
|
@@ -31,7 +31,36 @@ export type CoreErrorCode = 'CORE_ALREADY_RUNNING' | 'CORE_NOT_RUNNING' | 'CORE_
|
|
|
31
31
|
/** The tunnel is being stopped; ask again once it is down. */
|
|
32
32
|
| 'REMOTE_ACCESS_OPERATION_IN_PROGRESS'
|
|
33
33
|
/** A previous tunnel could not be confirmed dead; only Stop is offered until it is. */
|
|
34
|
-
| 'REMOTE_ACCESS_STOP_FAILED'
|
|
34
|
+
| 'REMOTE_ACCESS_STOP_FAILED'
|
|
35
|
+
/** The decision model is turned off, or no model file is configured for it. */
|
|
36
|
+
| 'DECISION_NOT_CONFIGURED'
|
|
37
|
+
/** No installed engine build serves `llama-server --decision` (API version 1). */
|
|
38
|
+
| 'DECISION_ENGINE_UNSUPPORTED'
|
|
39
|
+
/** The decision model is not running right now (starting, failed or stopped). */
|
|
40
|
+
| 'DECISION_UNAVAILABLE'
|
|
41
|
+
/** `decision.model_path` is a folder that lacks files of a laya checkpoint; `details` lists them. */
|
|
42
|
+
| 'DECISION_CHECKPOINT_INCOMPLETE'
|
|
43
|
+
/** A decision model was asked to load as a chat or embedding session; it runs only in the decision module. */
|
|
44
|
+
| 'DECISION_MODEL_NOT_CHAT'
|
|
45
|
+
/** The embedding model is turned off, or no model file is configured for it. */
|
|
46
|
+
| 'EMBEDDING_NOT_CONFIGURED'
|
|
47
|
+
/** No installed llama.cpp build is new enough for the embedding model; the message names the build. */
|
|
48
|
+
| 'EMBEDDING_ENGINE_UNSUPPORTED'
|
|
49
|
+
/** The embedding model is not running right now (starting, failed or stopped). */
|
|
50
|
+
| 'EMBEDDING_UNAVAILABLE'
|
|
51
|
+
/** `embedding.model_path` is not an embedding GGUF (a chat, decision or reranker model). */
|
|
52
|
+
| 'EMBEDDING_MODEL_NOT_EMBEDDING'
|
|
53
|
+
/**
|
|
54
|
+
* The file cannot run on the requested engine (a PrismML-only Bonsai file on stock llama.cpp, or a
|
|
55
|
+
* build too old for it); `details` is the JSON compatibility verdict. Never retried elsewhere.
|
|
56
|
+
*/
|
|
57
|
+
| 'MODEL_ENGINE_INCOMPATIBLE'
|
|
58
|
+
/** A legacy layout no current engine runs (Bonsai Q2_0 group-128); `details` names the replacement. */
|
|
59
|
+
| 'MODEL_FORMAT_LEGACY'
|
|
60
|
+
/** A model setup was started from a plan whose inputs changed since it was computed; plan again. */
|
|
61
|
+
| 'MODEL_SETUP_PLAN_STALE' | 'MODEL_SETUP_NOT_FOUND'
|
|
62
|
+
/** Another install of the same engine build (sd.cpp, MLX) is running; wait for it. */
|
|
63
|
+
| 'ENGINE_INSTALL_IN_PROGRESS';
|
|
35
64
|
/**
|
|
36
65
|
* Image generation (`tauri-plugin-atomic-diffusion/src/error.rs`, `NativeDiffusionErrorCode` in the
|
|
37
66
|
* web app). `lib/diffusion/errors.ts` matches on them. Three are spelled like codes above and are
|
|
@@ -39,7 +68,19 @@ export type CoreErrorCode = 'CORE_ALREADY_RUNNING' | 'CORE_NOT_RUNNING' | 'CORE_
|
|
|
39
68
|
*/
|
|
40
69
|
export declare const DIFFUSION_ERROR_CODES: readonly ["ENGINE_MISSING", "ENGINE_UPDATE_REQUIRED", "ENGINE_INSTALL_FAILED", "ENGINE_CRASHED", "MODEL_MISSING", "SIDE_FILE_MISSING", "MODEL_LOAD_FAILED", "MODEL_INCOMPATIBLE", "MODEL_NOT_LOADED", "OUT_OF_MEMORY", "UNSUPPORTED_BACKEND", "UNSUPPORTED_WORKFLOW", "INVALID_DIMENSIONS", "INVALID_REQUEST", "INVALID_OUTPUT", "JOB_BUSY", "JOB_NOT_FOUND", "QUEUE_FULL", "CANCELLED", "DISK_FULL", "BACKEND_IN_USE", "NOT_CONFIGURED", "INTERNAL"];
|
|
41
70
|
export type DiffusionErrorCode = (typeof DIFFUSION_ERROR_CODES)[number];
|
|
42
|
-
|
|
71
|
+
/**
|
|
72
|
+
* Managed text runtimes: the container environment, its durable setup operations and the GPU
|
|
73
|
+
* residency rule (`src/contracts/environment.ts`). Proposed; nothing raises these yet. Ported
|
|
74
|
+
* selectively from `origin/feat/tenzor-rt` @ `632b934` (design D1; see `docs/decisions/`).
|
|
75
|
+
*
|
|
76
|
+
* `MODEL_INCOMPATIBLE` is spelled like the image-generation code above and shared with it — the
|
|
77
|
+
* meaning is the same, a checkpoint this engine cannot load. `OUT_OF_MEMORY`, `INVALID_ARGUMENT`,
|
|
78
|
+
* `IO_ERROR`, `UNAUTHORIZED`, `UPSTREAM_ERROR` and `MODEL_LOAD_CANCELLED` are reused from the lists
|
|
79
|
+
* above rather than restated here.
|
|
80
|
+
*/
|
|
81
|
+
export declare const MANAGED_ERROR_CODES: readonly ["MANAGED_OPERATION_CONFLICT", "MANAGED_OPERATION_NOT_FOUND", "MANAGED_REVISION_CONFLICT", "MANAGED_CONSENT_REQUIRED", "MANAGED_PLAN_CHANGED", "MANAGED_HOST_STEP_INVALID", "MANAGED_PREREQUISITE_BLOCKED", "MANAGED_ADAPTER_UNAVAILABLE", "MANAGED_IDENTITY_MISMATCH", "MANAGED_STOP_UNCONFIRMED", "MANAGED_RESOURCE_IN_USE", "MANAGED_METADATA_INVALID", "MANAGED_RECEIPT_CONFLICT", "MANAGED_ELEVATION_DECLINED", "MANAGED_RELOGIN_REQUIRED", "MANAGED_REBOOT_REQUIRED", "MODEL_INCOMPATIBLE", "GPU_BUSY", "SESSION_GENERATION_STALE"];
|
|
82
|
+
export type ManagedErrorCode = (typeof MANAGED_ERROR_CODES)[number];
|
|
83
|
+
export type ErrorCode = RuntimeErrorCode | ExtensionErrorCode | CoreErrorCode | DiffusionErrorCode | ManagedErrorCode;
|
|
43
84
|
/**
|
|
44
85
|
* Disk-failure tags. Rendered into the error message as `Error: [<tag>] <detail>`; the app's
|
|
45
86
|
* telemetry parses the tag out of the string. Byte-identical with `disk.rs`.
|
package/dist/contracts/errors.js
CHANGED
|
@@ -37,6 +37,47 @@ export const DIFFUSION_ERROR_CODES = [
|
|
|
37
37
|
'NOT_CONFIGURED',
|
|
38
38
|
'INTERNAL',
|
|
39
39
|
];
|
|
40
|
+
/**
|
|
41
|
+
* Managed text runtimes: the container environment, its durable setup operations and the GPU
|
|
42
|
+
* residency rule (`src/contracts/environment.ts`). Proposed; nothing raises these yet. Ported
|
|
43
|
+
* selectively from `origin/feat/tenzor-rt` @ `632b934` (design D1; see `docs/decisions/`).
|
|
44
|
+
*
|
|
45
|
+
* `MODEL_INCOMPATIBLE` is spelled like the image-generation code above and shared with it — the
|
|
46
|
+
* meaning is the same, a checkpoint this engine cannot load. `OUT_OF_MEMORY`, `INVALID_ARGUMENT`,
|
|
47
|
+
* `IO_ERROR`, `UNAUTHORIZED`, `UPSTREAM_ERROR` and `MODEL_LOAD_CANCELLED` are reused from the lists
|
|
48
|
+
* above rather than restated here.
|
|
49
|
+
*/
|
|
50
|
+
export const MANAGED_ERROR_CODES = [
|
|
51
|
+
/** Another mutation owns this environment, or the request conflicts with the running operation. */
|
|
52
|
+
'MANAGED_OPERATION_CONFLICT',
|
|
53
|
+
'MANAGED_OPERATION_NOT_FOUND',
|
|
54
|
+
/** The caller's `expected_revision` is not the operation's current one. */
|
|
55
|
+
'MANAGED_REVISION_CONFLICT',
|
|
56
|
+
'MANAGED_CONSENT_REQUIRED',
|
|
57
|
+
/** The host changed under an operation awaiting consent; the old approval no longer applies. */
|
|
58
|
+
'MANAGED_PLAN_CHANGED',
|
|
59
|
+
'MANAGED_HOST_STEP_INVALID',
|
|
60
|
+
'MANAGED_PREREQUISITE_BLOCKED',
|
|
61
|
+
'MANAGED_ADAPTER_UNAVAILABLE',
|
|
62
|
+
/** A recorded container, distribution or process is not the one this core owns. */
|
|
63
|
+
'MANAGED_IDENTITY_MISMATCH',
|
|
64
|
+
/** A stop could not be confirmed, so the GPU reservation is deliberately still held. */
|
|
65
|
+
'MANAGED_STOP_UNCONFIRMED',
|
|
66
|
+
'MANAGED_RESOURCE_IN_USE',
|
|
67
|
+
'MANAGED_METADATA_INVALID',
|
|
68
|
+
/** A different receipt arrived for a nonce that was already consumed. */
|
|
69
|
+
'MANAGED_RECEIPT_CONFLICT',
|
|
70
|
+
'MANAGED_ELEVATION_DECLINED',
|
|
71
|
+
/** Linux: the `docker` group membership takes effect at the user's next sign-in. */
|
|
72
|
+
'MANAGED_RELOGIN_REQUIRED',
|
|
73
|
+
'MANAGED_REBOOT_REQUIRED',
|
|
74
|
+
/** Shared with image generation: this engine cannot load that checkpoint. */
|
|
75
|
+
'MODEL_INCOMPATIBLE',
|
|
76
|
+
/** Another local model holds the GPU and could not be evicted. Never an eviction by force. */
|
|
77
|
+
'GPU_BUSY',
|
|
78
|
+
/** The caller addressed a session generation that has since been replaced. */
|
|
79
|
+
'SESSION_GENERATION_STALE',
|
|
80
|
+
];
|
|
40
81
|
/**
|
|
41
82
|
* Disk-failure tags. Rendered into the error message as `Error: [<tag>] <detail>`; the app's
|
|
42
83
|
* telemetry parses the tag out of the string. Byte-identical with `disk.rs`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/contracts/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/contracts/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,gBAAgB;IAChB,wGAAwG;IACxG,wBAAwB;IACxB,uBAAuB;IACvB,gBAAgB;IAChB,eAAe;IACf,mBAAmB;IACnB,mBAAmB;IACnB,oBAAoB;IACpB,kBAAkB;IAClB,eAAe;IACf,qBAAqB;IACrB,sBAAsB;IACtB,oBAAoB;IACpB,iBAAiB;IACjB,kGAAkG;IAClG,gBAAgB;IAChB,UAAU;IACV,eAAe;IACf,YAAY;IACZ,WAAW;IACX,WAAW;IACX,gBAAgB;IAChB,gBAAgB;IAChB,UAAU;CACF,CAAA;AAGV;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,mGAAmG;IACnG,4BAA4B;IAC5B,6BAA6B;IAC7B,2EAA2E;IAC3E,2BAA2B;IAC3B,0BAA0B;IAC1B,gGAAgG;IAChG,sBAAsB;IACtB,2BAA2B;IAC3B,8BAA8B;IAC9B,6BAA6B;IAC7B,mFAAmF;IACnF,2BAA2B;IAC3B,wFAAwF;IACxF,0BAA0B;IAC1B,yBAAyB;IACzB,0BAA0B;IAC1B,yEAAyE;IACzE,0BAA0B;IAC1B,4BAA4B;IAC5B,oFAAoF;IACpF,0BAA0B;IAC1B,yBAAyB;IACzB,6EAA6E;IAC7E,oBAAoB;IACpB,8FAA8F;IAC9F,UAAU;IACV,8EAA8E;IAC9E,0BAA0B;CAClB,CAAA;AAMV;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,WAAW;IACX,iBAAiB;IACjB,kBAAkB;IAClB,oBAAoB;IACpB,kBAAkB;IAClB,SAAS;CACD,CAAA;AAUV,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAC/B,IAAI,CAAW;IACf,OAAO,CAAoB;IAEpC,YAAY,IAAe,EAAE,OAAe,EAAE,OAAgB;QAC5D,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAA;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS;YAC/B,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE;YAC5C,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAA;IACvE,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,IAAe;QAC7B,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;IACnE,CAAC;CACF"}
|
|
@@ -4,8 +4,14 @@
|
|
|
4
4
|
* Adding an event = add it here + add the relay mapping in the app, in the same PR pair.
|
|
5
5
|
*/
|
|
6
6
|
import type { DiffusionErrorEvent, DiffusionJobEvent, DiffusionVideoJobEvent, DiffusionVideoProgressEvent, DiffusionProgressEvent, DiffusionStateEvent } from './diffusion.js';
|
|
7
|
+
import type { EngineBuildChangedEvent } from './engine-builds.js';
|
|
8
|
+
import type { EngineChangedEvent } from './engines.js';
|
|
9
|
+
import type { EnvironmentOperation, EnvironmentSnapshot } from './environment.js';
|
|
10
|
+
import type { DecisionErrorEvent, DecisionStateEvent } from './decision.js';
|
|
11
|
+
import type { EmbeddingErrorEvent, EmbeddingStateEvent } from './embedding.js';
|
|
12
|
+
import type { ModelSetup } from './model-setup.js';
|
|
7
13
|
import type { RemoteAccessStatus } from './remote-access.js';
|
|
8
|
-
import type { LocalProviderId, RuntimeDeviceInfo, SessionInfo } from './session.js';
|
|
14
|
+
import type { LocalProviderId, RuntimeDeviceInfo, SessionInfo, SessionLoadStage } from './session.js';
|
|
9
15
|
export type DownloadKind = 'model' | 'backend' | 'draft' | 'cudart';
|
|
10
16
|
/**
|
|
11
17
|
* What a download is doing while it has no bytes to report: reaching the server for the first time,
|
|
@@ -109,7 +115,7 @@ export interface CoreEvents {
|
|
|
109
115
|
optimal: unknown | null;
|
|
110
116
|
};
|
|
111
117
|
'settings:changed': {
|
|
112
|
-
provider: LocalProviderId | 'server' | 'cloud';
|
|
118
|
+
provider: LocalProviderId | 'server' | 'cloud' | 'decision' | 'embedding';
|
|
113
119
|
key: string;
|
|
114
120
|
value: unknown;
|
|
115
121
|
};
|
|
@@ -118,11 +124,18 @@ export interface CoreEvents {
|
|
|
118
124
|
};
|
|
119
125
|
'session:died': {
|
|
120
126
|
provider: LocalProviderId;
|
|
121
|
-
|
|
127
|
+
/** null when the session was a container: it never had a host process to report. */
|
|
128
|
+
pid: number | null;
|
|
122
129
|
model_id: string;
|
|
123
130
|
exit_code: number | null;
|
|
124
131
|
signal: string | null;
|
|
125
132
|
message: string;
|
|
133
|
+
/**
|
|
134
|
+
* Why the session ended when it was not the engine's own exit (change `add-tensorrt-llm-windows`):
|
|
135
|
+
* `wsl-stopped` — the WSL distribution or VM stopped under it (`wsl --shutdown`). Absent otherwise;
|
|
136
|
+
* additive, a client that predates it ignores the key.
|
|
137
|
+
*/
|
|
138
|
+
reason?: 'wsl-stopped';
|
|
126
139
|
};
|
|
127
140
|
'session:ctx-increased': {
|
|
128
141
|
provider: LocalProviderId;
|
|
@@ -131,10 +144,33 @@ export interface CoreEvents {
|
|
|
131
144
|
newCtx: number;
|
|
132
145
|
reason: string;
|
|
133
146
|
};
|
|
147
|
+
/** `pid` is null when the session was a container: it never had a host process to report. */
|
|
134
148
|
'session:unloaded': {
|
|
135
149
|
provider: LocalProviderId;
|
|
136
150
|
model_id: string;
|
|
137
|
-
pid: number;
|
|
151
|
+
pid: number | null;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Managed-runtime load stages (design D8, spec `tensorrt-llm-runtime`): `generation` ties the
|
|
155
|
+
* progress to the exact load a caller started, since a second load of the same model replaces it
|
|
156
|
+
* with a new one. Only a container-backed provider emits this; a native load has no stages to
|
|
157
|
+
* report and goes straight from `session:started` to ready.
|
|
158
|
+
*/
|
|
159
|
+
'session:load-progress': {
|
|
160
|
+
provider: LocalProviderId;
|
|
161
|
+
model_id: string;
|
|
162
|
+
generation: string;
|
|
163
|
+
stage: SessionLoadStage;
|
|
164
|
+
elapsed_ms: number;
|
|
165
|
+
/**
|
|
166
|
+
* Present on every progress event of a load whose saved card was not found by the probe, so it
|
|
167
|
+
* runs on the card with the most free memory instead (spec `tensorrt-llm-runtime`, "Выбранная карта
|
|
168
|
+
* исчезла"). Absent when the load runs where it was asked to.
|
|
169
|
+
*/
|
|
170
|
+
gpu_substituted?: {
|
|
171
|
+
requested_gpu_id: string;
|
|
172
|
+
gpu_id: string;
|
|
173
|
+
};
|
|
138
174
|
};
|
|
139
175
|
'server:started': {
|
|
140
176
|
host: string;
|
|
@@ -162,6 +198,48 @@ export interface CoreEvents {
|
|
|
162
198
|
/** Video generation shares `state` and `error`; its jobs have their own two, so image consumers see no new shape. */
|
|
163
199
|
'diffusion:video-progress': DiffusionVideoProgressEvent;
|
|
164
200
|
'diffusion:video-job': DiffusionVideoJobEvent;
|
|
201
|
+
/**
|
|
202
|
+
* Managed text runtimes (`src/contracts/environment.ts`; openspec change `add-tensorrt-llm-linux`).
|
|
203
|
+
* Both carry full state rather than a delta, so a client that reconnects rebuilds from the
|
|
204
|
+
* snapshot and then applies whatever arrives. Both are proposed: no producer exists yet.
|
|
205
|
+
*
|
|
206
|
+
* `changed` is one environment and the engines installed into it. `operation` is one durable
|
|
207
|
+
* setup, update or removal. Each carries `instance_id` and `revision`: apply only a strictly
|
|
208
|
+
* newer revision of the current instance, and treat an equal revision as a no-op.
|
|
209
|
+
*/
|
|
210
|
+
'environment:changed': EnvironmentSnapshot;
|
|
211
|
+
'environment:operation': EnvironmentOperation;
|
|
212
|
+
/**
|
|
213
|
+
* An sd.cpp or MLX build was installed, removed, or cleaned up at start (spec `engine-builds`):
|
|
214
|
+
* re-read `POST /engine-builds/:engine/catalog` instead of polling it.
|
|
215
|
+
*/
|
|
216
|
+
'engine-build:changed': EngineBuildChangedEvent;
|
|
217
|
+
/**
|
|
218
|
+
* The set or the active build of any engine changed (change `unify-engine-lifecycle`, design D8):
|
|
219
|
+
* published by every route that installs, activates or removes a build, `/backends` and
|
|
220
|
+
* `/engine-builds` included. Re-read `POST /engines/versions`. `engine-build:changed` stays for
|
|
221
|
+
* the desktop releases that listen to it.
|
|
222
|
+
*/
|
|
223
|
+
'engine:changed': EngineChangedEvent;
|
|
224
|
+
/**
|
|
225
|
+
* The decision model (ADR 2026-09-30-the-decision-model-is-its-own-core-module). `state` on every
|
|
226
|
+
* status change (the payload is the whole `DecisionStatus`, like `GET /decision/status`); `error`
|
|
227
|
+
* for a failure nobody is awaiting: a crash, a failed restart, restarts given up.
|
|
228
|
+
*/
|
|
229
|
+
'decision:state': DecisionStateEvent;
|
|
230
|
+
'decision:error': DecisionErrorEvent;
|
|
231
|
+
/**
|
|
232
|
+
* The embedding model (ADR 2026-10-07-embedding-models-are-their-own-core-module), the same pair:
|
|
233
|
+
* `state` on every status change (the whole `EmbeddingStatus`, like `GET /embedding/status`),
|
|
234
|
+
* `error` for a failure nobody is awaiting.
|
|
235
|
+
*/
|
|
236
|
+
'embedding:state': EmbeddingStateEvent;
|
|
237
|
+
'embedding:error': EmbeddingErrorEvent;
|
|
238
|
+
/**
|
|
239
|
+
* Every write of a model setup (`src/contracts/model-setup.ts`), the whole record: keep the one
|
|
240
|
+
* with the highest `revision` per `setup_id`.
|
|
241
|
+
*/
|
|
242
|
+
'model-setup:changed': ModelSetup;
|
|
165
243
|
/**
|
|
166
244
|
* One request to the Local API Server, for the app's analytics window and its API screen
|
|
167
245
|
* (PLAN.md §2 decision 15). `started` and `progress` are sent only while the app's inspector is
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hardware facts
|
|
2
|
+
* Hardware facts the core knows about the machine it runs on (PLAN.md §2 decision 10, revised by the
|
|
3
|
+
* 2026-09-27 ADR "the core probes hardware with shell tools").
|
|
3
4
|
*
|
|
4
|
-
* The core
|
|
5
|
-
* version
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* The core measures the machine itself, with the tools every host already has: `nvidia-smi` for NVIDIA
|
|
6
|
+
* driver version and compute capability, sysfs / PowerShell CIM + registry for the other PCI GPUs and
|
|
7
|
+
* their VRAM, `/proc/cpuinfo` / `sysctl` / `IsProcessorFeaturePresent` for the CPU flags, the Vulkan
|
|
8
|
+
* loader's ICD registrations (and `vulkaninfo` when installed) for Vulkan. No NVML, no native addon.
|
|
9
|
+
*
|
|
10
|
+
* `PUT /hardware/override` remains as a seam: an injected description replaces the probe wholesale for
|
|
11
|
+
* as long as it stands (tests, headless hosts with better numbers). The desktop app no longer injects.
|
|
8
12
|
*
|
|
9
13
|
* Browser-safe: types only, shared with every host and client.
|
|
10
14
|
*/
|
|
@@ -14,8 +18,9 @@
|
|
|
14
18
|
* `driver_version`; everything else is `#[serde(default)]`.
|
|
15
19
|
*/
|
|
16
20
|
export interface GpuProbeInfo {
|
|
21
|
+
name?: string;
|
|
17
22
|
driver_version?: string;
|
|
18
|
-
/** `"NVIDIA" | "AMD" | "Intel" | "Unknown (vendor_id: N)"
|
|
23
|
+
/** `"NVIDIA" | "AMD" | "Intel" | "Qualcomm" | "Unknown (vendor_id: N)"`; the plugin has no `Qualcomm`. */
|
|
19
24
|
vendor?: string | null;
|
|
20
25
|
/** MiB. */
|
|
21
26
|
total_memory?: number;
|
|
@@ -51,3 +56,71 @@ export interface HardwareOverrideInput {
|
|
|
51
56
|
os_type?: unknown;
|
|
52
57
|
source?: unknown;
|
|
53
58
|
}
|
|
59
|
+
/** `os_type` as the probe reports it; `unknown` for a platform the core has no probe for. */
|
|
60
|
+
export type OsType = 'windows' | 'linux' | 'macos' | 'unknown';
|
|
61
|
+
export interface CpuInfo {
|
|
62
|
+
name: string;
|
|
63
|
+
/** Physical cores; falls back to the logical count when the OS does not say. */
|
|
64
|
+
core_count: number;
|
|
65
|
+
/** Rust spelling: `x86_64`, `aarch64` / `arm64`, `x86`. */
|
|
66
|
+
arch: string;
|
|
67
|
+
/**
|
|
68
|
+
* Instruction-set flags in the plugin's spelling (`avx`, `avx2`, `avx512_f`, `sse4_1`, …), lowercase.
|
|
69
|
+
* Empty on non-x86 hosts.
|
|
70
|
+
*/
|
|
71
|
+
extensions: string[];
|
|
72
|
+
/**
|
|
73
|
+
* `false` when the probe could not read the flags (no PowerShell, an unreadable `/proc/cpuinfo`);
|
|
74
|
+
* `extensions` is then `[]` and the no-AVX preflight stays silent rather than blocking on ignorance.
|
|
75
|
+
*/
|
|
76
|
+
extensions_known: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface NvidiaGpuInfo {
|
|
79
|
+
index: number;
|
|
80
|
+
/** NVML / `nvidia-smi` `"major.minor"`; `''` when the tool could not report it (treated as unknown). */
|
|
81
|
+
compute_capability: string;
|
|
82
|
+
}
|
|
83
|
+
export interface VulkanGpuInfo {
|
|
84
|
+
index: number;
|
|
85
|
+
/**
|
|
86
|
+
* `"DiscreteGpu" | "IntegratedGpu" | "VirtualGpu" | "Other"` when a Vulkan enumeration said so;
|
|
87
|
+
* `"Unknown"` when only the loader/ICD registration is known and the vendor gives no hint.
|
|
88
|
+
*/
|
|
89
|
+
device_type: string;
|
|
90
|
+
/** `"x.y.z"`; `''` when not enumerated. */
|
|
91
|
+
api_version: string;
|
|
92
|
+
/** PCI device id — the only gfx signal on Windows. */
|
|
93
|
+
device_id: number;
|
|
94
|
+
}
|
|
95
|
+
export interface GpuInfo {
|
|
96
|
+
name: string;
|
|
97
|
+
/** MiB. */
|
|
98
|
+
total_memory: number;
|
|
99
|
+
/** `"NVIDIA" | "AMD" | "Intel" | "Unknown (vendor_id: N)"`. */
|
|
100
|
+
vendor: string;
|
|
101
|
+
/** NVIDIA: the NVML uuid without `GPU-`; others: an opaque stable id (PCI bus id / PNP instance). */
|
|
102
|
+
uuid: string;
|
|
103
|
+
/** NVIDIA: the system driver (`"581.42"`); others: the OS driver string or `''`. */
|
|
104
|
+
driver_version: string;
|
|
105
|
+
nvidia_info: NvidiaGpuInfo | null;
|
|
106
|
+
vulkan_info: VulkanGpuInfo | null;
|
|
107
|
+
}
|
|
108
|
+
export interface SystemInfo {
|
|
109
|
+
cpu: CpuInfo;
|
|
110
|
+
os_type: OsType;
|
|
111
|
+
os_name: string;
|
|
112
|
+
/** MiB. */
|
|
113
|
+
total_memory: number;
|
|
114
|
+
gpus: GpuInfo[];
|
|
115
|
+
}
|
|
116
|
+
/** Where the facts came from: the core's own probe, or an injected override that replaces it. */
|
|
117
|
+
export type HardwareSource = 'probe' | 'override';
|
|
118
|
+
/** Body of `GET /hardware/info` and `POST /hardware/refresh`. */
|
|
119
|
+
export interface HardwareInfoResponse {
|
|
120
|
+
info: SystemInfo;
|
|
121
|
+
source: HardwareSource;
|
|
122
|
+
/** Milliseconds since the epoch, from the core's clock, of the probe `info` is based on. */
|
|
123
|
+
probed_at: number;
|
|
124
|
+
/** What the probe could not read, one line each; empty when everything answered. */
|
|
125
|
+
warnings: string[];
|
|
126
|
+
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hardware facts
|
|
2
|
+
* Hardware facts the core knows about the machine it runs on (PLAN.md §2 decision 10, revised by the
|
|
3
|
+
* 2026-09-27 ADR "the core probes hardware with shell tools").
|
|
3
4
|
*
|
|
4
|
-
* The core
|
|
5
|
-
* version
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* The core measures the machine itself, with the tools every host already has: `nvidia-smi` for NVIDIA
|
|
6
|
+
* driver version and compute capability, sysfs / PowerShell CIM + registry for the other PCI GPUs and
|
|
7
|
+
* their VRAM, `/proc/cpuinfo` / `sysctl` / `IsProcessorFeaturePresent` for the CPU flags, the Vulkan
|
|
8
|
+
* loader's ICD registrations (and `vulkaninfo` when installed) for Vulkan. No NVML, no native addon.
|
|
9
|
+
*
|
|
10
|
+
* `PUT /hardware/override` remains as a seam: an injected description replaces the probe wholesale for
|
|
11
|
+
* as long as it stands (tests, headless hosts with better numbers). The desktop app no longer injects.
|
|
8
12
|
*
|
|
9
13
|
* Browser-safe: types only, shared with every host and client.
|
|
10
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware.js","sourceRoot":"","sources":["../../src/contracts/hardware.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hardware.js","sourceRoot":"","sources":["../../src/contracts/hardware.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
|
|
@@ -9,4 +9,12 @@ export * from './events.js';
|
|
|
9
9
|
export * from './control-api.js';
|
|
10
10
|
export * from './remote-access.js';
|
|
11
11
|
export * from './diffusion.js';
|
|
12
|
+
export * from './decision.js';
|
|
13
|
+
export * from './embedding.js';
|
|
12
14
|
export * from './hardware.js';
|
|
15
|
+
export * from './backend-advisor.js';
|
|
16
|
+
export * from './environment.js';
|
|
17
|
+
export * from './model-compatibility.js';
|
|
18
|
+
export * from './model-setup.js';
|
|
19
|
+
export * from './engine-builds.js';
|
|
20
|
+
export * from './engines.js';
|
package/dist/contracts/index.js
CHANGED
|
@@ -9,5 +9,13 @@ export * from './events.js';
|
|
|
9
9
|
export * from './control-api.js';
|
|
10
10
|
export * from './remote-access.js';
|
|
11
11
|
export * from './diffusion.js';
|
|
12
|
+
export * from './decision.js';
|
|
13
|
+
export * from './embedding.js';
|
|
12
14
|
export * from './hardware.js';
|
|
15
|
+
export * from './backend-advisor.js';
|
|
16
|
+
export * from './environment.js';
|
|
17
|
+
export * from './model-compatibility.js';
|
|
18
|
+
export * from './model-setup.js';
|
|
19
|
+
export * from './engine-builds.js';
|
|
20
|
+
export * from './engines.js';
|
|
13
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which engine a GGUF file needs: the wire shapes of `POST /atomic/v1/models/compatibility` and of
|
|
3
|
+
* the verdict the load gate applies (PrismML Bonsai, 2026-10-05 ADRs). Browser-safe: types only.
|
|
4
|
+
*/
|
|
5
|
+
import type { LocalProviderId } from './session.js';
|
|
6
|
+
/** What a file needs from an engine. `q1_0` and `q2_0_g64` stock llama.cpp runs too. */
|
|
7
|
+
export type EngineCapability = 'q1_0' | 'q2_0_g64' | 'pq2_0' | 'ptq1_0' | 'hadamard' | 'vision';
|
|
8
|
+
/**
|
|
9
|
+
* `compatible`: runs on `provider` (or on whatever the caller picked when `provider` is `null`).
|
|
10
|
+
* `engine_required`: needs `atomic-prism`, which is not installed. `engine_update_required`: needs a
|
|
11
|
+
* newer `atomic-prism` build than the installed one. `legacy_artifact`: an old layout no current
|
|
12
|
+
* engine runs (see `replacement`). `inspection_required`: nothing is known yet; read the header.
|
|
13
|
+
* `unsupported`: recognised and refused (an F16 master, an unknown tensor type).
|
|
14
|
+
*/
|
|
15
|
+
export type CompatibilityOutcome = 'compatible' | 'engine_required' | 'engine_update_required' | 'legacy_artifact' | 'inspection_required' | 'unsupported';
|
|
16
|
+
export interface CompatibilityVerdict {
|
|
17
|
+
outcome: CompatibilityOutcome;
|
|
18
|
+
/** The provider the file must run on; `null` = any llama.cpp provider, keep the caller's choice. */
|
|
19
|
+
provider: LocalProviderId | null;
|
|
20
|
+
/** Capabilities beyond what stock llama.cpp runs. */
|
|
21
|
+
requires: EngineCapability[];
|
|
22
|
+
/** What decided: a conf rule for this exact file, the GGUF header, or nothing yet. */
|
|
23
|
+
evidence: 'rules' | 'header' | 'none';
|
|
24
|
+
rules_version: number;
|
|
25
|
+
/** Oldest PrismML build known to run the file. */
|
|
26
|
+
min_prism_build?: number;
|
|
27
|
+
/** The PrismML build installed now, `null` when none is. */
|
|
28
|
+
installed_prism_build?: number | null;
|
|
29
|
+
/** `legacy_artifact`: the file to get instead (same repository). */
|
|
30
|
+
replacement?: string;
|
|
31
|
+
/** The conf family the file belongs to, when a rule matched. */
|
|
32
|
+
family?: string;
|
|
33
|
+
/** One line for logs and error details. */
|
|
34
|
+
reason: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ModelCompatibilityRequest {
|
|
37
|
+
/** A model already on disk (its `model.yml` id under the shared GGUF tree). */
|
|
38
|
+
model_id?: string;
|
|
39
|
+
/** A file before download: `owner/repo` + file name (+ revision). */
|
|
40
|
+
repo?: string;
|
|
41
|
+
file?: string;
|
|
42
|
+
revision?: string;
|
|
43
|
+
sha256?: string;
|
|
44
|
+
/** Read the remote header over HTTP ranges when no rule matches (≈ 6–12 MB for Bonsai). */
|
|
45
|
+
inspect_remote?: boolean;
|
|
46
|
+
/** The provider the caller intends to use; a verdict for another provider is still returned. */
|
|
47
|
+
provider?: LocalProviderId;
|
|
48
|
+
}
|
|
49
|
+
export interface ModelCompatibilityResponse extends CompatibilityVerdict {
|
|
50
|
+
/** Family defaults from conf (sampling, context) when a rule matched. */
|
|
51
|
+
defaults?: {
|
|
52
|
+
sampling?: {
|
|
53
|
+
temperature?: number;
|
|
54
|
+
top_p?: number;
|
|
55
|
+
top_k?: number;
|
|
56
|
+
min_p?: number;
|
|
57
|
+
};
|
|
58
|
+
ctx_len?: number;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/** A file of a Bonsai family the Hub may offer: the conf rules neither exclude it nor call it legacy. */
|
|
62
|
+
export interface PrismFamilyFile {
|
|
63
|
+
file: string;
|
|
64
|
+
size: number;
|
|
65
|
+
sha256: string;
|
|
66
|
+
packing?: string;
|
|
67
|
+
/** `prism_required`: only PrismML runs it; `any`: every llama.cpp engine does. */
|
|
68
|
+
treatment: 'prism_required' | 'any';
|
|
69
|
+
/** The file the family recommends. */
|
|
70
|
+
default?: boolean;
|
|
71
|
+
summary?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface PrismFamilyProjector {
|
|
74
|
+
file: string;
|
|
75
|
+
size: number;
|
|
76
|
+
sha256: string;
|
|
77
|
+
default?: boolean;
|
|
78
|
+
}
|
|
79
|
+
/** One Bonsai model as the conf model rules name it, pinned to a revision. */
|
|
80
|
+
export interface PrismFamily {
|
|
81
|
+
id: string;
|
|
82
|
+
title: string;
|
|
83
|
+
repo: string;
|
|
84
|
+
revision: string;
|
|
85
|
+
featured?: boolean;
|
|
86
|
+
files: PrismFamilyFile[];
|
|
87
|
+
projectors: PrismFamilyProjector[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* `GET /atomic/v1/models/atomic-prism/families`: the Bonsai families of the newest model rules the
|
|
91
|
+
* core has (live, cached or bundled), for the Hub's PrismML list. A family with no file to offer
|
|
92
|
+
* is left out.
|
|
93
|
+
*/
|
|
94
|
+
export interface PrismFamiliesResponse {
|
|
95
|
+
rules_version: number;
|
|
96
|
+
families: PrismFamily[];
|
|
97
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which engine a GGUF file needs: the wire shapes of `POST /atomic/v1/models/compatibility` and of
|
|
3
|
+
* the verdict the load gate applies (PrismML Bonsai, 2026-10-05 ADRs). Browser-safe: types only.
|
|
4
|
+
*/
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=model-compatibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-compatibility.js","sourceRoot":"","sources":["../../src/contracts/model-compatibility.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|