@camstack/types 1.1.42 → 1.1.44

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.
Files changed (41) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/advanced-notifier.cap.d.ts +8 -4
  4. package/dist/capabilities/cap-router-predicates.d.ts +17 -0
  5. package/dist/capabilities/capability-definition.d.ts +1 -1
  6. package/dist/capabilities/custom-model-registry.cap.d.ts +20 -0
  7. package/dist/capabilities/index.d.ts +14 -7
  8. package/dist/capabilities/llm-runtime.cap.d.ts +286 -0
  9. package/dist/capabilities/llm-shared.d.ts +104 -0
  10. package/dist/capabilities/llm.cap.d.ts +596 -0
  11. package/dist/capabilities/login-method.cap.d.ts +53 -7
  12. package/dist/capabilities/model-convert.cap.d.ts +11 -0
  13. package/dist/capabilities/model-distributor.cap.d.ts +22 -0
  14. package/dist/capabilities/pipeline-analytics.cap.d.ts +101 -25
  15. package/dist/capabilities/pipeline-executor.cap.d.ts +26 -0
  16. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +16 -0
  17. package/dist/capabilities/pipeline-runner.cap.d.ts +107 -0
  18. package/dist/capabilities/plate-gallery.cap.d.ts +114 -0
  19. package/dist/capabilities/platform-probe.cap.d.ts +1 -0
  20. package/dist/capabilities/scene-monitor.cap.d.ts +483 -0
  21. package/dist/enums/event-category.d.ts +33 -0
  22. package/dist/generated/addon-api.d.ts +3305 -1081
  23. package/dist/generated/cap-status-types.d.ts +3 -1
  24. package/dist/generated/capability-router-map.d.ts +13 -4
  25. package/dist/generated/device-local-state.d.ts +3 -0
  26. package/dist/generated/device-proxy.d.ts +4 -1
  27. package/dist/generated/method-access-map.d.ts +1 -1
  28. package/dist/generated/provider-kind-map.d.ts +1 -1
  29. package/dist/generated/system-proxy.d.ts +3 -1
  30. package/dist/index.js +1201 -48
  31. package/dist/index.mjs +1169 -49
  32. package/dist/interfaces/advanced-notifier.d.ts +2 -0
  33. package/dist/interfaces/event-bus.d.ts +111 -2
  34. package/dist/interfaces/pipeline-executor-capability.d.ts +9 -0
  35. package/dist/interfaces/pipeline-runner-capability.d.ts +8 -0
  36. package/dist/{sleep-BC9Yqte7.mjs → sleep-DkhOVOjW.mjs} +49 -1
  37. package/dist/{sleep-ByctZsHo.js → sleep-k6I1e98_.js} +49 -1
  38. package/dist/types/detection.d.ts +12 -0
  39. package/dist/types/models.d.ts +33 -1
  40. package/dist/types/pipeline-step.d.ts +31 -0
  41. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-ByctZsHo.js");
2
+ const require_sleep = require("./sleep-k6I1e98_.js");
3
3
  const require_err_msg = require("./err-msg-COpsHMw2.js");
4
4
  exports.BaseAddon = require_sleep.BaseAddon;
5
5
  exports.DATAPLANE_SECRET_HEADER = require_sleep.DATAPLANE_SECRET_HEADER;
package/dist/addon.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { A as parseJsonUnknown, D as asString, I as scopeKey, M as ReadinessRegistry, N as ReadinessTimeoutError, S as DeviceType, T as asJsonObject, a as viewerUiCapability, bt as EventCategory, ct as BaseAddon, ft as emitReadiness, i as deviceOpsCapability, j as DATAPLANE_SECRET_HEADER, lt as normalizeAddonInitResult, m as expandCapMethods, o as adminUiCapability, s as createDeviceProxy, t as sleep, xt as DisposerChain } from "./sleep-BC9Yqte7.mjs";
1
+ import { A as parseJsonUnknown, D as asString, I as scopeKey, M as ReadinessRegistry, N as ReadinessTimeoutError, S as DeviceType, T as asJsonObject, a as viewerUiCapability, bt as EventCategory, ct as BaseAddon, ft as emitReadiness, i as deviceOpsCapability, j as DATAPLANE_SECRET_HEADER, lt as normalizeAddonInitResult, m as expandCapMethods, o as adminUiCapability, s as createDeviceProxy, t as sleep, xt as DisposerChain } from "./sleep-DkhOVOjW.mjs";
2
2
  import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
3
3
  export { BaseAddon, DATAPLANE_SECRET_HEADER, DeviceType, DisposerChain, EventCategory, ReadinessRegistry, ReadinessTimeoutError, adminUiCapability, asJsonObject, asString, createDeviceProxy, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, normalizeAddonInitResult, parseJsonUnknown, scopeKey, sleep, viewerUiCapability };
@@ -22,15 +22,16 @@ declare const NotificationRuleConditionsSchema: z.ZodObject<{
22
22
  text: z.ZodString;
23
23
  minSimilarity: z.ZodNumber;
24
24
  }, z.core.$strip>>;
25
+ labels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
25
26
  }, z.core.$strip>;
26
27
  declare const NotificationRuleTemplateSchema: z.ZodObject<{
27
28
  title: z.ZodString;
28
29
  body: z.ZodString;
29
30
  imageMode: z.ZodEnum<{
30
31
  none: "none";
32
+ full: "full";
31
33
  crop: "crop";
32
34
  annotated: "annotated";
33
- full: "full";
34
35
  }>;
35
36
  }, z.core.$strip>;
36
37
  declare const NotificationRuleSchema: z.ZodObject<{
@@ -60,6 +61,7 @@ declare const NotificationRuleSchema: z.ZodObject<{
60
61
  text: z.ZodString;
61
62
  minSimilarity: z.ZodNumber;
62
63
  }, z.core.$strip>>;
64
+ labels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
63
65
  }, z.core.$strip>;
64
66
  outputs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
65
67
  template: z.ZodOptional<z.ZodObject<{
@@ -67,9 +69,9 @@ declare const NotificationRuleSchema: z.ZodObject<{
67
69
  body: z.ZodString;
68
70
  imageMode: z.ZodEnum<{
69
71
  none: "none";
72
+ full: "full";
70
73
  crop: "crop";
71
74
  annotated: "annotated";
72
- full: "full";
73
75
  }>;
74
76
  }, z.core.$strip>>;
75
77
  priority: z.ZodEnum<{
@@ -138,6 +140,7 @@ export declare const advancedNotifierCapability: {
138
140
  text: z.ZodString;
139
141
  minSimilarity: z.ZodNumber;
140
142
  }, z.core.$strip>>;
143
+ labels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
141
144
  }, z.core.$strip>;
142
145
  outputs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
143
146
  template: z.ZodOptional<z.ZodObject<{
@@ -145,9 +148,9 @@ export declare const advancedNotifierCapability: {
145
148
  body: z.ZodString;
146
149
  imageMode: z.ZodEnum<{
147
150
  none: "none";
151
+ full: "full";
148
152
  crop: "crop";
149
153
  annotated: "annotated";
150
- full: "full";
151
154
  }>;
152
155
  }, z.core.$strip>>;
153
156
  priority: z.ZodEnum<{
@@ -186,6 +189,7 @@ export declare const advancedNotifierCapability: {
186
189
  text: z.ZodString;
187
190
  minSimilarity: z.ZodNumber;
188
191
  }, z.core.$strip>>;
192
+ labels: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
189
193
  }, z.core.$strip>;
190
194
  outputs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
191
195
  template: z.ZodOptional<z.ZodObject<{
@@ -193,9 +197,9 @@ export declare const advancedNotifierCapability: {
193
197
  body: z.ZodString;
194
198
  imageMode: z.ZodEnum<{
195
199
  none: "none";
200
+ full: "full";
196
201
  crop: "crop";
197
202
  annotated: "annotated";
198
- full: "full";
199
203
  }>;
200
204
  }, z.core.$strip>>;
201
205
  priority: z.ZodEnum<{
@@ -10,6 +10,7 @@
10
10
  * makes the two paths provably agree. Each predicate accepts both Zod 4
11
11
  * (`_def.type`) and legacy Zod 3 (`_def.typeName` / `constructor.name`) shapes.
12
12
  */
13
+ import type { CapabilityDefinition } from './capability-definition.js';
13
14
  /** `z.void()` — input carries no data. */
14
15
  export declare function isVoidInput(schema: unknown): boolean;
15
16
  /** `z.object()` — supports `.loose()` for out-of-band `nodeId`/`addonId` keys. */
@@ -20,6 +21,22 @@ export declare function isObjectInput(schema: unknown): boolean;
20
21
  * default). Bounded unwrap guards against a malformed/cyclic schema.
21
22
  */
22
23
  export declare function isArrayOutputSchema(schema: unknown): boolean;
24
+ /**
25
+ * True when `method` on cap `def` is a COLLECTION cap's array-returning
26
+ * (non-subscription) method — the methods whose contract is "union the result
27
+ * across every registered provider" (`listTargets`, `listTargetKinds`,
28
+ * `discoverTargets`, `listEndpoints`, …).
29
+ *
30
+ * Such a method is aggregated at the hub via `concatCollection` / the runtime
31
+ * `concatArrayMethod`, both of which SKIP a provider that doesn't implement it
32
+ * (contributes `[]`). That local skip is invisible across the UDS boundary — a
33
+ * hub-side per-provider proxy fabricates a callable for every property, so the
34
+ * call reaches the child's real (possibly partial) provider. This predicate lets
35
+ * the child-side dispatcher reproduce the same graceful skip: a missing method
36
+ * here yields `[]`, not a "method not found" error. Singleton caps and non-array
37
+ * methods return `false` so a genuinely missing method still surfaces as a bug.
38
+ */
39
+ export declare function isCollectionArrayMethod(def: CapabilityDefinition | undefined, method: string): boolean;
23
40
  /**
24
41
  * Apply `.loose()` to an object input schema when available (Zod 4) so the
25
42
  * router accepts the out-of-band `nodeId`/`addonId` selector keys without
@@ -39,7 +39,7 @@ export type CapabilityMethodAuth = 'public' | 'protected' | 'admin';
39
39
  * - `mesh` — mesh-VPN providers (Tailscale, Headscale, …)
40
40
  * - `ingress` — public-ingress tunnels (Cloudflare Tunnel, …)
41
41
  */
42
- export type ProviderKind = 'broker' | 'device-export' | 'email' | 'mesh' | 'ingress';
42
+ export type ProviderKind = 'broker' | 'device-export' | 'email' | 'mesh' | 'ingress' | 'ai';
43
43
  /**
44
44
  * Access flavour for a capability method. Drives the scope-access check
45
45
  * in `protectedProcedure`. Default inferred at codegen time:
@@ -74,6 +74,16 @@ export declare const CustomModelDescriptorSchema: z.ZodObject<{
74
74
  python: "python";
75
75
  }>>>>;
76
76
  }, z.core.$strip>>;
77
+ gguf: z.ZodOptional<z.ZodObject<{
78
+ url: z.ZodString;
79
+ sizeMB: z.ZodNumber;
80
+ isDirectory: z.ZodOptional<z.ZodBoolean>;
81
+ files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
82
+ runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
83
+ node: "node";
84
+ python: "python";
85
+ }>>>>;
86
+ }, z.core.$strip>>;
77
87
  }, z.core.$strip>;
78
88
  inputSize: z.ZodObject<{
79
89
  width: z.ZodNumber;
@@ -190,6 +200,16 @@ export declare const customModelRegistryCapability: {
190
200
  python: "python";
191
201
  }>>>>;
192
202
  }, z.core.$strip>>;
203
+ gguf: z.ZodOptional<z.ZodObject<{
204
+ url: z.ZodString;
205
+ sizeMB: z.ZodNumber;
206
+ isDirectory: z.ZodOptional<z.ZodBoolean>;
207
+ files: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
208
+ runtimes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
209
+ node: "node";
210
+ python: "python";
211
+ }>>>>;
212
+ }, z.core.$strip>>;
193
213
  }, z.core.$strip>;
194
214
  inputSize: z.ZodObject<{
195
215
  width: z.ZodNumber;
@@ -35,15 +35,15 @@ export type { AudioAnalyzerGlobalConfig, AudioBackendChoice, IAudioAnalyzerProvi
35
35
  export { AUDIO_BACKEND_CHOICES, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioClassificationResultSchema, audioAnalyzerCapability, DEFAULT_AUDIO_ANALYZER_CONFIG, } from './audio-analyzer.cap.js';
36
36
  export { AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEncodeSessionConfigSchema, AudioPcmChunkSchema, audioCodecCapability, type IAudioCodecCapProvider, PcmSampleFormatSchema, } from './audio-codec.cap.js';
37
37
  export { AuthResultSchema, authProviderCapability } from './auth-provider.cap.js';
38
- export { loginMethodCapability, LoginStageEnum, RedirectLoginMethodSchema, WidgetLoginMethodSchema, LoginMethodContributionSchema, } from './login-method.cap.js';
39
- export type { ILoginMethodProvider, LoginMethodContribution, RedirectLoginMethod, WidgetLoginMethod, LoginStage, } from './login-method.cap.js';
38
+ export { loginMethodCapability, LoginStageEnum, RedirectLoginMethodSchema, WidgetLoginMethodSchema, PasskeyLoginMethodSchema, LoginMethodContributionSchema, } from './login-method.cap.js';
39
+ export type { ILoginMethodProvider, LoginMethodContribution, RedirectLoginMethod, WidgetLoginMethod, PasskeyLoginMethod, LoginStage, } from './login-method.cap.js';
40
40
  export { ArchiveEntrySchema, ArchiveManifestSchema, BackupDestinationInfoSchema, BackupEntrySchema, backupCapability, type IBackupProvider, LocationStatSchema, } from './backup.cap.js';
41
41
  export { BrokerAddInputSchema, BrokerGetStateInputSchema, type BrokerInfo as UnifiedBrokerInfo, BrokerInfoSchema as UnifiedBrokerInfoSchema, type BrokerProviderInfo, BrokerProviderInfoSchema, BrokerPublishInputSchema, BrokerRegistryStatusSchema, type BrokerStatus as UnifiedBrokerStatus, BrokerStatusEnum, BrokerSubscribeInputSchema, BrokerSubscribeResultSchema, BrokerTestConnectionResultSchema, BrokerUnsubscribeInputSchema, brokerCapability, type IBrokerProvider, } from './broker.cap.js';
42
42
  export { cameraPipelineConfigCapability, type ICameraPipelineConfigProvider, } from './camera-pipeline-config.cap.js';
43
43
  export { cameraStreamsCapability, type ICameraStreamsProvider, type PickedCamStream, PickedCamStreamSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, type StreamCodec, StreamCodecSchema, } from './camera-streams.cap.js';
44
44
  export type { CapabilityDefinition, CapabilityEventSchema, CapabilityMethodAuth, CapabilityMethodKind, CapabilityMethodOptions, CapabilityMethodSchema, CapabilityMountHint, CapabilityMountKind, CapabilityStatusItemArray, CapabilityStatusKind, CapabilityStatusSchema, DeviceConfigDerivedFormUi, DeviceConfigSpec, DeviceConfigUiSpec, DeviceConfigWidgetUi, DeviceSettingsContribution, InferDeviceProxyCap, InferEvents, InferName, InferNativeProvider, InferProvider, InferRuntimeState, ProviderKind, UiContribution, UiContributionKind, UiContributionRemote, } from './capability-definition.js';
45
45
  export { DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, event, expandCapMethods, isDeviceConfigCap, method, resolveCapMount, } from './capability-definition.js';
46
- export { isArrayOutputSchema, isObjectInput, isVoidInput, kebabToCamel, looseSchema, procedureAuthKey, } from './cap-router-predicates.js';
46
+ export { isArrayOutputSchema, isCollectionArrayMethod, isObjectInput, isVoidInput, kebabToCamel, looseSchema, procedureAuthKey, } from './cap-router-predicates.js';
47
47
  export * from './custom-actions.js';
48
48
  export type { CustomModelDescriptor, ICustomModelRegistryProvider, } from './custom-model-registry.cap.js';
49
49
  export { CustomModelDescriptorSchema, customModelRegistryCapability, } from './custom-model-registry.cap.js';
@@ -73,13 +73,16 @@ export { AddBrokerInputSchema, BrokerConnectionDetailsSchema, BrokerInfoSchema,
73
73
  export type { NetworkAccessStatus, NetworkEndpoint } from './network-access.cap.js';
74
74
  export { NetworkAccessStatusSchema, NetworkEndpointSchema, networkAccessCapability, } from './network-access.cap.js';
75
75
  export { type Attachment, AttachmentMediaTypeSchema, type AttachmentMediaType, AttachmentSchema, type DiscoveredTarget, DiscoveredTargetSchema, type INotificationOutputProvider, type NotificationAction, NotificationActionSchema, type NotificationFormat, NotificationFormatSchema, NotificationSchema, type RenderedAs, RenderedAsSchema, type SendResult, SendResultSchema, type Target, type TargetKind, type TargetKindCaps, TargetKindCapsSchema, type TargetKindLevel, TargetKindLevelSchema, TargetKindSchema, TargetSchema, type TestResult, TestResultSchema, notificationOutputCapability, } from './notification-output.cap.js';
76
+ export { type ILlmProvider, type LlmDefault, type LlmDefaultSelector, LlmDefaultSchema, LlmDefaultSelectorSchema, llmCapability, type LlmProfile, type LlmProfileKind, type LlmProfileKindDescriptor, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, type LlmRuntimeNode, LlmRuntimeNodeSchema, type LlmUsageRollup, LlmUsageRollupSchema, type ManagedModelCatalogEntry, ManagedModelCatalogEntrySchema, } from './llm.cap.js';
77
+ export { type ILlmRuntimeProvider, llmRuntimeCapability, type LlmNodeModel, LlmNodeModelSchema, type LlmRuntimeCompleteInput, LlmRuntimeCompleteInputSchema, type LlmRuntimeDiskUsage, LlmRuntimeDiskUsageSchema, type LlmRuntimeStatus, LlmRuntimeStatusSchema, type ManagedModelRef, ManagedModelRefSchema, type ManagedRuntimeConfig, ManagedRuntimeConfigSchema, } from './llm-runtime.cap.js';
78
+ export { type LlmErrorCode, LlmErrorCodeSchema, type LlmGenerateBaseInput, LlmGenerateBaseInputSchema, type LlmGenerateErr, LlmGenerateErrSchema, type LlmGenerateOk, LlmGenerateOkSchema, type LlmGenerateResult, LlmGenerateResultSchema, type LlmImage, LlmImageSchema, type LlmUsage, LlmUsageSchema, } from './llm-shared.js';
76
79
  export { type IOauthIntegrationProvider, type OauthIntegrationDescriptor, OauthIntegrationDescriptorSchema, oauthIntegrationCapability, } from './oauth-integration.cap.js';
77
- export { type AudioEvent, AudioEventSchema, type DetectionSource, DetectionSourceSchema, type EventKind, EventKindSchema, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type MediaFile, type MediaFileKind, MediaFileSchema, type MotionEvent, MotionEventSchema, type ObjectEvent, ObjectEventSchema, pipelineAnalyticsCapability, type ScoredObjectEvent, ScoredObjectEventSchema, type Track, TrackedDetectionSchema, TrackSchema, type TrackState, TrackStateSchema, } from './pipeline-analytics.cap.js';
80
+ export { type AudioEvent, AudioEventSchema, type DetectionSource, DetectionSourceSchema, type EventKind, EventKindSchema, type IPipelineAnalyticsProvider, type KeyEvent, KeyEventSchema, type MediaFile, type MediaFileKind, MediaFileSchema, type MotionEvent, MotionEventSchema, type ObjectEvent, ObjectEventSchema, pipelineAnalyticsCapability, type ScoredObjectEvent, ScoredObjectEventSchema, type Track, type TrackCascadeCounts, TrackCascadeCountsSchema, TrackedDetectionSchema, TrackSchema, type TrackState, TrackStateSchema, } from './pipeline-analytics.cap.js';
78
81
  export type { PipelineStepInputOutput, PipelineValidationIssue, PipelineValidationResult, } from './pipeline-executor.cap.js';
79
82
  export { ModelSubstitutionSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, pipelineExecutorCapability, } from './pipeline-executor.cap.js';
80
83
  export type { CameraAssignmentStatus, CameraAudioStatus, CameraBrokerProfile, CameraBrokerStatus, CameraDecoderShm, CameraDecoderStatus, CameraDetectionPhase, CameraDetectionProvisioning, CameraDetectionProvisioningState, CameraDetectionStatus, CameraMotionStatus, CameraRecordingMode, CameraRecordingStatus, CameraSourceStatus, CameraSourceStream, CameraStatus, IngestOwner, } from './pipeline-orchestrator.cap.js';
81
84
  export { AgentLoadSummarySchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CapabilityBindingsSchema, GlobalMetricsSchema, IngestOwnerSchema, PipelineAssignmentSchema, pipelineOrchestratorCapability, } from './pipeline-orchestrator.cap.js';
82
- export type { MotionSource, MotionSources, ReportMotionInput, RunnerFrameSource, } from './pipeline-runner.cap.js';
85
+ export type { DetailParent, DetailResult, MotionSource, MotionSources, ReportMotionInput, RunDetailSubtreeInput, RunDetailSubtreeResult, RunnerFrameSource, } from './pipeline-runner.cap.js';
83
86
  export { MotionSourceEnum, MotionSourcesSchema, pipelineRunnerCapability, ReportMotionInputSchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, } from './pipeline-runner.cap.js';
84
87
  export { AudioChunkInputSchema, AudioClassificationLabelSchema, AudioLevelSchema, BoundingBoxSchema, FrameInputSchema, SpatialDetectionSchema, } from './schemas/detection-shared.js';
85
88
  export { CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, OrchestratorMetricsSchema, } from './schemas/orchestrator-metrics.js';
@@ -152,13 +155,14 @@ export { type IMeshNetworkProvider, type MeshEndpoint, type MeshPeer, MeshPeerSc
152
155
  export { type IMotionProvider, type MotionOnMotionChangedData, MotionOnMotionChangedDataSchema, type MotionStatus, MotionStatusSchema, motionCapability, } from './motion.cap.js';
153
156
  export { type IMotionTriggerProvider, type MotionTriggerRuntimeState, MotionTriggerRuntimeStateSchema, type MotionTriggerStatus, MotionTriggerStatusSchema, motionTriggerCapability, } from './motion-trigger.cap.js';
154
157
  export { type IMotionZonesProvider, type MotionZoneOptions, MotionZoneOptionsSchema, type MotionZonePatch, MotionZonePatchSchema, type MotionZoneRegion, MotionZoneRegionSchema, type MotionZoneStatus, MotionZoneStatusSchema, motionZonesCapability, } from './motion-zones.cap.js';
158
+ export { type ISceneMonitorProvider, type SceneCheck, SceneCheckSchema, type SceneCondition, SceneConditionSchema, type SceneMonitor, SceneMonitorSchema, type SceneMonitorState, SceneMonitorStateSchema, type SceneMonitorStatus, SceneMonitorStatusSchema, type SceneReference, SceneReferenceSchema, sceneMonitorCapability, } from './scene-monitor.cap.js';
155
159
  export { type INativeObjectDetectionProvider, type NativeDetection, NativeDetectionSchema, type NativeObjectClass, NativeObjectClassEnum, type NativeObjectDetectionRuntimeState, NativeObjectDetectionRuntimeStateSchema, type NativeObjectDetectionStatus, NativeObjectDetectionStatusSchema, nativeObjectDetectionCapability, } from './native-object-detection.cap.js';
156
160
  export { ClientNetworkStatsSchema, DeviceNetworkStatsSchema, type INetworkQualityProvider, networkQualityCapability, StreamNetworkStatsSchema, } from './network-quality.cap.js';
157
161
  export { ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, type INodesProvider, nodesCapability, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, } from './nodes.cap.js';
158
162
  export { type INotifierProvider, type NotifierAction, type NotifierPriority, type NotifierSendInput, type NotifierSendResult, type NotifierStatus, NotifierStatusSchema, type NotifierSupports, notifierCapability, } from './notifier.cap.js';
159
163
  export { type INumericSensorProvider, type NumericSensorStatus, NumericSensorStatusSchema, numericSensorCapability, } from './numeric-sensor.cap.js';
160
164
  export { type IOsdProvider, type OsdOverlay, type OsdOverlayKind, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, type OsdPosition, OsdPositionEnum, type OsdStatus, OsdStatusSchema, osdCapability, } from './osd.cap.js';
161
- export { type IPlateGalleryProvider, type PlateInfo, plateGalleryCapability, } from './plate-gallery.cap.js';
165
+ export { type IPlateGalleryProvider, type PlateInfo, type Vehicle, type VehicleSampleInfo, plateGalleryCapability, } from './plate-gallery.cap.js';
162
166
  export { type HardwareDecodeAccels, type HardwareEncoderId, type HardwareEncoderProbe, type HardwareEncoders, type IPlatformProbeProvider, platformProbeCapability, } from './platform-probe.cap.js';
163
167
  export { type IPowerMeterProvider, type PowerMeterStatus, PowerMeterStatusSchema, powerMeterCapability, } from './power-meter.cap.js';
164
168
  export { type GpsLocation, type IPresenceProvider, type PresenceStatus, PresenceStatusSchema, presenceCapability, } from './presence.cap.js';
@@ -263,10 +267,13 @@ import type { motionCapability } from './motion.cap.js';
263
267
  import type { motionDetectionCapability } from './motion-detection.cap.js';
264
268
  import type { motionTriggerCapability } from './motion-trigger.cap.js';
265
269
  import type { motionZonesCapability } from './motion-zones.cap.js';
270
+ import type { sceneMonitorCapability } from './scene-monitor.cap.js';
266
271
  import type { mqttBrokerCapability } from './mqtt-broker.cap.js';
267
272
  import type { networkAccessCapability } from './network-access.cap.js';
268
273
  import type { networkQualityCapability } from './network-quality.cap.js';
269
274
  import type { nodesCapability } from './nodes.cap.js';
275
+ import type { llmCapability } from './llm.cap.js';
276
+ import type { llmRuntimeCapability } from './llm-runtime.cap.js';
270
277
  import type { notificationOutputCapability } from './notification-output.cap.js';
271
278
  import type { notifierCapability } from './notifier.cap.js';
272
279
  import type { numericSensorCapability } from './numeric-sensor.cap.js';
@@ -313,6 +320,6 @@ import type { webrtcSessionCapability } from './webrtc-session.cap.js';
313
320
  import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
314
321
  import type { zoneRulesCapability } from './zone-rules.cap.js';
315
322
  import type { zonesCapability } from './zones.cap.js';
316
- type AnyCapability = typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof settingsStoreCapability | typeof logDestinationCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof notificationOutputCapability | typeof advancedNotifierCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof consumablesCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof eventsCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof deviceOpsCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof imageSettingsCapability;
323
+ type AnyCapability = typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof settingsStoreCapability | typeof logDestinationCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof advancedNotifierCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof consumablesCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof eventsCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof deviceOpsCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof imageSettingsCapability;
317
324
  export type CapabilityName = AnyCapability['name'];
318
325
  export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
@@ -0,0 +1,286 @@
1
+ /**
2
+ * `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
3
+ * on EVERY node where `addon-ai` is installed; the hub `llm` provider reaches
4
+ * a specific node's runtime with `nodePin(profile.runtime.nodeId)` — normal
5
+ * cap routing, zero bespoke plumbing. `internal: true`: the operator reaches
6
+ * this only through the `llm` cap's methods.
7
+ *
8
+ * One running llama-server child per node in v1 (models are RAM-heavy).
9
+ * Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
10
+ * watchdog — operator decision #3).
11
+ */
12
+ import { z } from 'zod';
13
+ import { type InferProvider } from './capability-definition.js';
14
+ export declare const ManagedModelRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15
+ kind: z.ZodLiteral<"catalog">;
16
+ catalogId: z.ZodString;
17
+ }, z.core.$strip>, z.ZodObject<{
18
+ kind: z.ZodLiteral<"url">;
19
+ url: z.ZodString;
20
+ sha256: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>, z.ZodObject<{
22
+ kind: z.ZodLiteral<"path">;
23
+ path: z.ZodString;
24
+ }, z.core.$strip>], "kind">;
25
+ export type ManagedModelRef = z.infer<typeof ManagedModelRefSchema>;
26
+ export declare const ManagedRuntimeConfigSchema: z.ZodObject<{
27
+ nodeId: z.ZodString;
28
+ engine: z.ZodEnum<{
29
+ "llama-cpp": "llama-cpp";
30
+ }>;
31
+ model: z.ZodDiscriminatedUnion<[z.ZodObject<{
32
+ kind: z.ZodLiteral<"catalog">;
33
+ catalogId: z.ZodString;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ kind: z.ZodLiteral<"url">;
36
+ url: z.ZodString;
37
+ sha256: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ kind: z.ZodLiteral<"path">;
40
+ path: z.ZodString;
41
+ }, z.core.$strip>], "kind">;
42
+ contextSize: z.ZodDefault<z.ZodNumber>;
43
+ gpuLayers: z.ZodDefault<z.ZodNumber>;
44
+ threads: z.ZodOptional<z.ZodNumber>;
45
+ parallel: z.ZodDefault<z.ZodNumber>;
46
+ autoStart: z.ZodDefault<z.ZodBoolean>;
47
+ idleStopMinutes: z.ZodDefault<z.ZodNumber>;
48
+ }, z.core.$strip>;
49
+ export type ManagedRuntimeConfig = z.infer<typeof ManagedRuntimeConfigSchema>;
50
+ export declare const LlmRuntimeStatusSchema: z.ZodObject<{
51
+ nodeId: z.ZodString;
52
+ state: z.ZodEnum<{
53
+ ready: "ready";
54
+ stopped: "stopped";
55
+ failed: "failed";
56
+ starting: "starting";
57
+ downloading: "downloading";
58
+ crashed: "crashed";
59
+ }>;
60
+ pid: z.ZodOptional<z.ZodNumber>;
61
+ port: z.ZodOptional<z.ZodNumber>;
62
+ modelPath: z.ZodOptional<z.ZodString>;
63
+ modelId: z.ZodOptional<z.ZodString>;
64
+ downloadProgress: z.ZodOptional<z.ZodNumber>;
65
+ lastError: z.ZodOptional<z.ZodString>;
66
+ crashesInWindow: z.ZodNumber;
67
+ memoryBytes: z.ZodOptional<z.ZodNumber>;
68
+ vramBytes: z.ZodOptional<z.ZodNumber>;
69
+ }, z.core.$strip>;
70
+ export type LlmRuntimeStatus = z.infer<typeof LlmRuntimeStatusSchema>;
71
+ export declare const LlmNodeModelSchema: z.ZodObject<{
72
+ file: z.ZodString;
73
+ sizeBytes: z.ZodNumber;
74
+ catalogId: z.ZodOptional<z.ZodString>;
75
+ installedAt: z.ZodOptional<z.ZodNumber>;
76
+ }, z.core.$strip>;
77
+ export type LlmNodeModel = z.infer<typeof LlmNodeModelSchema>;
78
+ export declare const LlmRuntimeDiskUsageSchema: z.ZodObject<{
79
+ nodeId: z.ZodString;
80
+ modelsBytes: z.ZodNumber;
81
+ freeBytes: z.ZodOptional<z.ZodNumber>;
82
+ }, z.core.$strip>;
83
+ export type LlmRuntimeDiskUsage = z.infer<typeof LlmRuntimeDiskUsageSchema>;
84
+ export declare const LlmRuntimeCompleteInputSchema: z.ZodObject<{
85
+ addonId: z.ZodOptional<z.ZodString>;
86
+ profileId: z.ZodOptional<z.ZodString>;
87
+ consumer: z.ZodString;
88
+ system: z.ZodOptional<z.ZodString>;
89
+ prompt: z.ZodString;
90
+ jsonSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
91
+ maxTokens: z.ZodOptional<z.ZodNumber>;
92
+ temperature: z.ZodOptional<z.ZodNumber>;
93
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
+ bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
95
+ mimeType: z.ZodString;
96
+ }, z.core.$strip>>>;
97
+ runtime: z.ZodObject<{
98
+ nodeId: z.ZodString;
99
+ engine: z.ZodEnum<{
100
+ "llama-cpp": "llama-cpp";
101
+ }>;
102
+ model: z.ZodDiscriminatedUnion<[z.ZodObject<{
103
+ kind: z.ZodLiteral<"catalog">;
104
+ catalogId: z.ZodString;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ kind: z.ZodLiteral<"url">;
107
+ url: z.ZodString;
108
+ sha256: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ kind: z.ZodLiteral<"path">;
111
+ path: z.ZodString;
112
+ }, z.core.$strip>], "kind">;
113
+ contextSize: z.ZodDefault<z.ZodNumber>;
114
+ gpuLayers: z.ZodDefault<z.ZodNumber>;
115
+ threads: z.ZodOptional<z.ZodNumber>;
116
+ parallel: z.ZodDefault<z.ZodNumber>;
117
+ autoStart: z.ZodDefault<z.ZodBoolean>;
118
+ idleStopMinutes: z.ZodDefault<z.ZodNumber>;
119
+ }, z.core.$strip>;
120
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
121
+ }, z.core.$strip>;
122
+ export type LlmRuntimeCompleteInput = z.infer<typeof LlmRuntimeCompleteInputSchema>;
123
+ export declare const llmRuntimeCapability: {
124
+ readonly name: "llm-runtime";
125
+ readonly scope: "system";
126
+ readonly mode: "singleton";
127
+ readonly internal: true;
128
+ readonly methods: {
129
+ readonly complete: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
130
+ addonId: z.ZodOptional<z.ZodString>;
131
+ profileId: z.ZodOptional<z.ZodString>;
132
+ consumer: z.ZodString;
133
+ system: z.ZodOptional<z.ZodString>;
134
+ prompt: z.ZodString;
135
+ jsonSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
136
+ maxTokens: z.ZodOptional<z.ZodNumber>;
137
+ temperature: z.ZodOptional<z.ZodNumber>;
138
+ images: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
+ bytes: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
140
+ mimeType: z.ZodString;
141
+ }, z.core.$strip>>>;
142
+ runtime: z.ZodObject<{
143
+ nodeId: z.ZodString;
144
+ engine: z.ZodEnum<{
145
+ "llama-cpp": "llama-cpp";
146
+ }>;
147
+ model: z.ZodDiscriminatedUnion<[z.ZodObject<{
148
+ kind: z.ZodLiteral<"catalog">;
149
+ catalogId: z.ZodString;
150
+ }, z.core.$strip>, z.ZodObject<{
151
+ kind: z.ZodLiteral<"url">;
152
+ url: z.ZodString;
153
+ sha256: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ kind: z.ZodLiteral<"path">;
156
+ path: z.ZodString;
157
+ }, z.core.$strip>], "kind">;
158
+ contextSize: z.ZodDefault<z.ZodNumber>;
159
+ gpuLayers: z.ZodDefault<z.ZodNumber>;
160
+ threads: z.ZodOptional<z.ZodNumber>;
161
+ parallel: z.ZodDefault<z.ZodNumber>;
162
+ autoStart: z.ZodDefault<z.ZodBoolean>;
163
+ idleStopMinutes: z.ZodDefault<z.ZodNumber>;
164
+ }, z.core.$strip>;
165
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
166
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
167
+ ok: z.ZodLiteral<true>;
168
+ text: z.ZodString;
169
+ model: z.ZodString;
170
+ usage: z.ZodObject<{
171
+ inputTokens: z.ZodNumber;
172
+ outputTokens: z.ZodNumber;
173
+ }, z.core.$strip>;
174
+ truncated: z.ZodBoolean;
175
+ latencyMs: z.ZodNumber;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ ok: z.ZodLiteral<false>;
178
+ code: z.ZodEnum<{
179
+ auth: "auth";
180
+ timeout: "timeout";
181
+ "rate-limited": "rate-limited";
182
+ refusal: "refusal";
183
+ "bad-request": "bad-request";
184
+ unavailable: "unavailable";
185
+ "no-profile": "no-profile";
186
+ "budget-exceeded": "budget-exceeded";
187
+ "adapter-error": "adapter-error";
188
+ }>;
189
+ message: z.ZodString;
190
+ retryAfterMs: z.ZodOptional<z.ZodNumber>;
191
+ }, z.core.$strip>], "ok">, "mutation">;
192
+ readonly ensureStarted: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
193
+ runtime: z.ZodObject<{
194
+ nodeId: z.ZodString;
195
+ engine: z.ZodEnum<{
196
+ "llama-cpp": "llama-cpp";
197
+ }>;
198
+ model: z.ZodDiscriminatedUnion<[z.ZodObject<{
199
+ kind: z.ZodLiteral<"catalog">;
200
+ catalogId: z.ZodString;
201
+ }, z.core.$strip>, z.ZodObject<{
202
+ kind: z.ZodLiteral<"url">;
203
+ url: z.ZodString;
204
+ sha256: z.ZodOptional<z.ZodString>;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ kind: z.ZodLiteral<"path">;
207
+ path: z.ZodString;
208
+ }, z.core.$strip>], "kind">;
209
+ contextSize: z.ZodDefault<z.ZodNumber>;
210
+ gpuLayers: z.ZodDefault<z.ZodNumber>;
211
+ threads: z.ZodOptional<z.ZodNumber>;
212
+ parallel: z.ZodDefault<z.ZodNumber>;
213
+ autoStart: z.ZodDefault<z.ZodBoolean>;
214
+ idleStopMinutes: z.ZodDefault<z.ZodNumber>;
215
+ }, z.core.$strip>;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ nodeId: z.ZodString;
218
+ state: z.ZodEnum<{
219
+ ready: "ready";
220
+ stopped: "stopped";
221
+ failed: "failed";
222
+ starting: "starting";
223
+ downloading: "downloading";
224
+ crashed: "crashed";
225
+ }>;
226
+ pid: z.ZodOptional<z.ZodNumber>;
227
+ port: z.ZodOptional<z.ZodNumber>;
228
+ modelPath: z.ZodOptional<z.ZodString>;
229
+ modelId: z.ZodOptional<z.ZodString>;
230
+ downloadProgress: z.ZodOptional<z.ZodNumber>;
231
+ lastError: z.ZodOptional<z.ZodString>;
232
+ crashesInWindow: z.ZodNumber;
233
+ memoryBytes: z.ZodOptional<z.ZodNumber>;
234
+ vramBytes: z.ZodOptional<z.ZodNumber>;
235
+ }, z.core.$strip>, "mutation">;
236
+ readonly stop: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodVoid, "mutation">;
237
+ readonly status: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
238
+ nodeId: z.ZodString;
239
+ state: z.ZodEnum<{
240
+ ready: "ready";
241
+ stopped: "stopped";
242
+ failed: "failed";
243
+ starting: "starting";
244
+ downloading: "downloading";
245
+ crashed: "crashed";
246
+ }>;
247
+ pid: z.ZodOptional<z.ZodNumber>;
248
+ port: z.ZodOptional<z.ZodNumber>;
249
+ modelPath: z.ZodOptional<z.ZodString>;
250
+ modelId: z.ZodOptional<z.ZodString>;
251
+ downloadProgress: z.ZodOptional<z.ZodNumber>;
252
+ lastError: z.ZodOptional<z.ZodString>;
253
+ crashesInWindow: z.ZodNumber;
254
+ memoryBytes: z.ZodOptional<z.ZodNumber>;
255
+ vramBytes: z.ZodOptional<z.ZodNumber>;
256
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
257
+ readonly installModel: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
258
+ model: z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ kind: z.ZodLiteral<"catalog">;
260
+ catalogId: z.ZodString;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ kind: z.ZodLiteral<"url">;
263
+ url: z.ZodString;
264
+ sha256: z.ZodOptional<z.ZodString>;
265
+ }, z.core.$strip>, z.ZodObject<{
266
+ kind: z.ZodLiteral<"path">;
267
+ path: z.ZodString;
268
+ }, z.core.$strip>], "kind">;
269
+ }, z.core.$strip>, z.ZodVoid, "mutation">;
270
+ readonly deleteModel: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
271
+ file: z.ZodString;
272
+ }, z.core.$strip>, z.ZodVoid, "mutation">;
273
+ readonly listLocalModels: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodArray<z.ZodObject<{
274
+ file: z.ZodString;
275
+ sizeBytes: z.ZodNumber;
276
+ catalogId: z.ZodOptional<z.ZodString>;
277
+ installedAt: z.ZodOptional<z.ZodNumber>;
278
+ }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
279
+ readonly getDiskUsage: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
280
+ nodeId: z.ZodString;
281
+ modelsBytes: z.ZodNumber;
282
+ freeBytes: z.ZodOptional<z.ZodNumber>;
283
+ }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
284
+ };
285
+ };
286
+ export type ILlmRuntimeProvider = InferProvider<typeof llmRuntimeCapability>;