@ai-matrx/desktop-protocol 0.21.95 → 0.21.96

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/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-BfCwxx-G.cjs';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EmbeddingVector, v as EndMsg, E as EndReason, w as ErrorCode, x as ErrorCodeName, y as ErrorData, z as ErrorMsg, A as ErrorReason, F as ErrorReasonName, G as EventMsg, H as EventName, I as FsPatchEditFailure, J as HelloMsg, L as Limits, K as LlamaServerBuild, N as LlmEmbeddingSlot, P as LlmRunning, Q as LlmServerState, R as LlmSlot, U as LocalModelKind, V as LocalModelRow, X as MlCatalogSetParams, Y as MlCatalogSetResult, Z as MlInstallPhase, _ as MlInstallProgress, f as MlProgress, $ as MlRuntimeState, a0 as MlServiceState, a1 as MlServiceStatus, a2 as MlStatusParams, a3 as MlStatusResult, a4 as ModelKey, a5 as ModelsDownloadsCancelParams, a6 as ModelsDownloadsCancelResult, a7 as ModelsDownloadsListParams, a8 as ModelsDownloadsListResult, a9 as ModelsEmbedParams, aa as ModelsEmbedResult, ab as ModelsInstallParams, ac as ModelsInstallResult, ad as ModelsLlmChatParams, ae as ModelsLlmChatResult, af as ModelsLlmInstallParams, ag as ModelsLlmInstallResult, ah as ModelsLlmStartParams, ai as ModelsLlmStartResult, aj as ModelsLlmStatusParams, ak as ModelsLlmStatusResult, al as ModelsLlmStopParams, am as ModelsLlmStopResult, an as ModelsLocalListParams, ao as ModelsLocalListResult, ap as ModelsLocalRemoveParams, aq as ModelsLocalRemoveResult, ar as ModelsProgressEvent, as as ModelsStatusParams, at as ModelsStatusResult, au as ModelsTranscribeParams, M as ModelsTranscribeResult, av as ModelsTtsInstallParams, aw as ModelsTtsInstallResult, ax as ModelsTtsSpeakParams, ay as ModelsTtsSpeakResult, az as ModelsTtsStatusParams, aA as ModelsTtsStatusResult, aB as ModelsTtsVoiceRemoveParams, aC as ModelsTtsVoiceRemoveResult, aD as ModelsTtsVoiceSaveParams, aE as ModelsTtsVoiceSaveResult, aF as ModelsWakeCloseParams, aG as ModelsWakeCloseResult, aH as ModelsWakeDetectParams, aI as ModelsWakeDetectResult, aJ as ModelsWakeInstallParams, aK as ModelsWakeInstallResult, aL as ModelsWakeStatusParams, aM as ModelsWakeStatusResult, aN as NAMED_SCHEMAS, aO as NamedSchemaId, c as OPS, aP as OpDescriptor, a as OpParams, b as OpResult, aQ as OpSpec, aR as PING_TEXT, aS as PONG_TEXT, aT as ProtocolErrorBody, aU as RelayMsg, aV as RequestMsg, aW as ResponseMsg, aX as SERVICES, aY as SUBPROTOCOL, aZ as ServiceId, a_ as ServiceOpName, a$ as ServiceOpSpec, b0 as ServiceSpec, b1 as Sha256Hex, S as StreamMeta, b2 as StreamMsg, b3 as TextModelId, b4 as TextModelInfo, b5 as TranscriptSegment, T as TranscriptionModelId, b6 as TranscriptionModelInfo, b7 as TtsAudioChunk, b8 as TtsBlendPart, b9 as TtsModelInfo, ba as TtsVoice, bb as TtsVoiceId, bc as UnusableTextModel, bd as WAKE_PCM_MAX_CHARS, be as WakeEngine, bf as WakeModelInfo, W as Welcome, bg as closeRule, i as isDesktopProtocolError, bh as isTerminalClose } from './models-BfCwxx-G.cjs';
2
+ import { O as OpName } from './models-CW7-r8m4.cjs';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EmbeddingVector, v as EndMsg, E as EndReason, w as ErrorCode, x as ErrorCodeName, y as ErrorData, z as ErrorMsg, A as ErrorReason, F as ErrorReasonName, G as EventMsg, H as EventName, I as FsPatchEditFailure, J as HelloMsg, L as Limits, K as LlamaServerBuild, N as LlmEmbeddingSlot, P as LlmRunning, Q as LlmServerState, R as LlmSlot, U as LocalModelKind, V as LocalModelRow, X as MlCatalogSetParams, Y as MlCatalogSetResult, Z as MlInstallPhase, _ as MlInstallProgress, f as MlProgress, $ as MlRuntimeState, a0 as MlServiceState, a1 as MlServiceStatus, a2 as MlStatusParams, a3 as MlStatusResult, a4 as ModelKey, a5 as ModelsDownloadsCancelParams, a6 as ModelsDownloadsCancelResult, a7 as ModelsDownloadsListParams, a8 as ModelsDownloadsListResult, a9 as ModelsEmbedParams, aa as ModelsEmbedResult, ab as ModelsInstallParams, ac as ModelsInstallResult, ad as ModelsLlmChatParams, ae as ModelsLlmChatResult, af as ModelsLlmInstallParams, ag as ModelsLlmInstallResult, ah as ModelsLlmStartParams, ai as ModelsLlmStartResult, aj as ModelsLlmStatusParams, ak as ModelsLlmStatusResult, al as ModelsLlmStopParams, am as ModelsLlmStopResult, an as ModelsLocalListParams, ao as ModelsLocalListResult, ap as ModelsLocalRemoveParams, aq as ModelsLocalRemoveResult, ar as ModelsProgressEvent, as as ModelsStatusParams, at as ModelsStatusResult, au as ModelsTranscribeParams, M as ModelsTranscribeResult, av as ModelsTtsInstallParams, aw as ModelsTtsInstallResult, ax as ModelsTtsSpeakParams, ay as ModelsTtsSpeakResult, az as ModelsTtsStatusParams, aA as ModelsTtsStatusResult, aB as ModelsTtsVoiceRemoveParams, aC as ModelsTtsVoiceRemoveResult, aD as ModelsTtsVoiceSaveParams, aE as ModelsTtsVoiceSaveResult, aF as ModelsWakeCloseParams, aG as ModelsWakeCloseResult, aH as ModelsWakeDetectParams, aI as ModelsWakeDetectResult, aJ as ModelsWakeInstallParams, aK as ModelsWakeInstallResult, aL as ModelsWakeStatusParams, aM as ModelsWakeStatusResult, aN as NAMED_SCHEMAS, aO as NamedSchemaId, c as OPS, aP as OpDescriptor, a as OpParams, b as OpResult, aQ as OpSpec, aR as PING_TEXT, aS as PONG_TEXT, aT as ProtocolErrorBody, aU as RelayMsg, aV as RequestMsg, aW as ResponseMsg, aX as SERVICES, aY as SUBPROTOCOL, aZ as ServiceId, a_ as ServiceOpName, a$ as ServiceOpSpec, b0 as ServiceSpec, b1 as Sha256Hex, S as StreamMeta, b2 as StreamMsg, b3 as TextModelId, b4 as TextModelInfo, b5 as TranscriptSegment, T as TranscriptionModelId, b6 as TranscriptionModelInfo, b7 as TtsAudioChunk, b8 as TtsBlendPart, b9 as TtsModelInfo, ba as TtsVoice, bb as TtsVoiceId, bc as UnusableTextModel, bd as WAKE_PCM_MAX_CHARS, be as WakeEngine, bf as WakeModelInfo, W as Welcome, bg as closeRule, i as isDesktopProtocolError, bh as isTerminalClose } from './models-CW7-r8m4.cjs';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.cjs';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-BfCwxx-G.js';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EmbeddingVector, v as EndMsg, E as EndReason, w as ErrorCode, x as ErrorCodeName, y as ErrorData, z as ErrorMsg, A as ErrorReason, F as ErrorReasonName, G as EventMsg, H as EventName, I as FsPatchEditFailure, J as HelloMsg, L as Limits, K as LlamaServerBuild, N as LlmEmbeddingSlot, P as LlmRunning, Q as LlmServerState, R as LlmSlot, U as LocalModelKind, V as LocalModelRow, X as MlCatalogSetParams, Y as MlCatalogSetResult, Z as MlInstallPhase, _ as MlInstallProgress, f as MlProgress, $ as MlRuntimeState, a0 as MlServiceState, a1 as MlServiceStatus, a2 as MlStatusParams, a3 as MlStatusResult, a4 as ModelKey, a5 as ModelsDownloadsCancelParams, a6 as ModelsDownloadsCancelResult, a7 as ModelsDownloadsListParams, a8 as ModelsDownloadsListResult, a9 as ModelsEmbedParams, aa as ModelsEmbedResult, ab as ModelsInstallParams, ac as ModelsInstallResult, ad as ModelsLlmChatParams, ae as ModelsLlmChatResult, af as ModelsLlmInstallParams, ag as ModelsLlmInstallResult, ah as ModelsLlmStartParams, ai as ModelsLlmStartResult, aj as ModelsLlmStatusParams, ak as ModelsLlmStatusResult, al as ModelsLlmStopParams, am as ModelsLlmStopResult, an as ModelsLocalListParams, ao as ModelsLocalListResult, ap as ModelsLocalRemoveParams, aq as ModelsLocalRemoveResult, ar as ModelsProgressEvent, as as ModelsStatusParams, at as ModelsStatusResult, au as ModelsTranscribeParams, M as ModelsTranscribeResult, av as ModelsTtsInstallParams, aw as ModelsTtsInstallResult, ax as ModelsTtsSpeakParams, ay as ModelsTtsSpeakResult, az as ModelsTtsStatusParams, aA as ModelsTtsStatusResult, aB as ModelsTtsVoiceRemoveParams, aC as ModelsTtsVoiceRemoveResult, aD as ModelsTtsVoiceSaveParams, aE as ModelsTtsVoiceSaveResult, aF as ModelsWakeCloseParams, aG as ModelsWakeCloseResult, aH as ModelsWakeDetectParams, aI as ModelsWakeDetectResult, aJ as ModelsWakeInstallParams, aK as ModelsWakeInstallResult, aL as ModelsWakeStatusParams, aM as ModelsWakeStatusResult, aN as NAMED_SCHEMAS, aO as NamedSchemaId, c as OPS, aP as OpDescriptor, a as OpParams, b as OpResult, aQ as OpSpec, aR as PING_TEXT, aS as PONG_TEXT, aT as ProtocolErrorBody, aU as RelayMsg, aV as RequestMsg, aW as ResponseMsg, aX as SERVICES, aY as SUBPROTOCOL, aZ as ServiceId, a_ as ServiceOpName, a$ as ServiceOpSpec, b0 as ServiceSpec, b1 as Sha256Hex, S as StreamMeta, b2 as StreamMsg, b3 as TextModelId, b4 as TextModelInfo, b5 as TranscriptSegment, T as TranscriptionModelId, b6 as TranscriptionModelInfo, b7 as TtsAudioChunk, b8 as TtsBlendPart, b9 as TtsModelInfo, ba as TtsVoice, bb as TtsVoiceId, bc as UnusableTextModel, bd as WAKE_PCM_MAX_CHARS, be as WakeEngine, bf as WakeModelInfo, W as Welcome, bg as closeRule, i as isDesktopProtocolError, bh as isTerminalClose } from './models-BfCwxx-G.js';
2
+ import { O as OpName } from './models-CW7-r8m4.js';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EmbeddingVector, v as EndMsg, E as EndReason, w as ErrorCode, x as ErrorCodeName, y as ErrorData, z as ErrorMsg, A as ErrorReason, F as ErrorReasonName, G as EventMsg, H as EventName, I as FsPatchEditFailure, J as HelloMsg, L as Limits, K as LlamaServerBuild, N as LlmEmbeddingSlot, P as LlmRunning, Q as LlmServerState, R as LlmSlot, U as LocalModelKind, V as LocalModelRow, X as MlCatalogSetParams, Y as MlCatalogSetResult, Z as MlInstallPhase, _ as MlInstallProgress, f as MlProgress, $ as MlRuntimeState, a0 as MlServiceState, a1 as MlServiceStatus, a2 as MlStatusParams, a3 as MlStatusResult, a4 as ModelKey, a5 as ModelsDownloadsCancelParams, a6 as ModelsDownloadsCancelResult, a7 as ModelsDownloadsListParams, a8 as ModelsDownloadsListResult, a9 as ModelsEmbedParams, aa as ModelsEmbedResult, ab as ModelsInstallParams, ac as ModelsInstallResult, ad as ModelsLlmChatParams, ae as ModelsLlmChatResult, af as ModelsLlmInstallParams, ag as ModelsLlmInstallResult, ah as ModelsLlmStartParams, ai as ModelsLlmStartResult, aj as ModelsLlmStatusParams, ak as ModelsLlmStatusResult, al as ModelsLlmStopParams, am as ModelsLlmStopResult, an as ModelsLocalListParams, ao as ModelsLocalListResult, ap as ModelsLocalRemoveParams, aq as ModelsLocalRemoveResult, ar as ModelsProgressEvent, as as ModelsStatusParams, at as ModelsStatusResult, au as ModelsTranscribeParams, M as ModelsTranscribeResult, av as ModelsTtsInstallParams, aw as ModelsTtsInstallResult, ax as ModelsTtsSpeakParams, ay as ModelsTtsSpeakResult, az as ModelsTtsStatusParams, aA as ModelsTtsStatusResult, aB as ModelsTtsVoiceRemoveParams, aC as ModelsTtsVoiceRemoveResult, aD as ModelsTtsVoiceSaveParams, aE as ModelsTtsVoiceSaveResult, aF as ModelsWakeCloseParams, aG as ModelsWakeCloseResult, aH as ModelsWakeDetectParams, aI as ModelsWakeDetectResult, aJ as ModelsWakeInstallParams, aK as ModelsWakeInstallResult, aL as ModelsWakeStatusParams, aM as ModelsWakeStatusResult, aN as NAMED_SCHEMAS, aO as NamedSchemaId, c as OPS, aP as OpDescriptor, a as OpParams, b as OpResult, aQ as OpSpec, aR as PING_TEXT, aS as PONG_TEXT, aT as ProtocolErrorBody, aU as RelayMsg, aV as RequestMsg, aW as ResponseMsg, aX as SERVICES, aY as SUBPROTOCOL, aZ as ServiceId, a_ as ServiceOpName, a$ as ServiceOpSpec, b0 as ServiceSpec, b1 as Sha256Hex, S as StreamMeta, b2 as StreamMsg, b3 as TextModelId, b4 as TextModelInfo, b5 as TranscriptSegment, T as TranscriptionModelId, b6 as TranscriptionModelInfo, b7 as TtsAudioChunk, b8 as TtsBlendPart, b9 as TtsModelInfo, ba as TtsVoice, bb as TtsVoiceId, bc as UnusableTextModel, bd as WAKE_PCM_MAX_CHARS, be as WakeEngine, bf as WakeModelInfo, W as Welcome, bg as closeRule, i as isDesktopProtocolError, bh as isTerminalClose } from './models-CW7-r8m4.js';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.js';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
package/dist/index.js CHANGED
@@ -951,7 +951,7 @@ import {
951
951
  WindowsServiceControlResult,
952
952
  WindowsServicesParams,
953
953
  WindowsServicesResult
954
- } from "./chunk-server-BQQPFQSL.js";
954
+ } from "./chunk-server-HU5BCBEF.js";
955
955
  import {
956
956
  AbsPath,
957
957
  BEARER_PREFIX,
@@ -10589,9 +10589,16 @@ type EventName = keyof typeof EVENTS;
10589
10589
  * from this table (scripts/gen_pydantic.py); the core's service client is typed by it. A Router
10590
10590
  * op that a capability owner forwards uses the same params/result schemas as its service op.
10591
10591
  */
10592
+ /**
10593
+ * `planned`: declared for the clients' types, but no desktop handler serves it yet. A planned op is
10594
+ * kept out of the served contract (the Python handler Protocol and the SERVICES table the service
10595
+ * boots against), so publishing it never stops a relocked desktop's service from starting. It moves
10596
+ * to SERVED_SERVICE_OPS (src/schema/served-service-ops.ts) in the change that lands its handler.
10597
+ */
10592
10598
  type ServiceOpSpec = {
10593
10599
  readonly params: z.ZodType;
10594
10600
  readonly result: z.ZodType;
10601
+ readonly planned?: true;
10595
10602
  };
10596
10603
  type ServiceSpec = {
10597
10604
  readonly progress: z.ZodType;
@@ -10589,9 +10589,16 @@ type EventName = keyof typeof EVENTS;
10589
10589
  * from this table (scripts/gen_pydantic.py); the core's service client is typed by it. A Router
10590
10590
  * op that a capability owner forwards uses the same params/result schemas as its service op.
10591
10591
  */
10592
+ /**
10593
+ * `planned`: declared for the clients' types, but no desktop handler serves it yet. A planned op is
10594
+ * kept out of the served contract (the Python handler Protocol and the SERVICES table the service
10595
+ * boots against), so publishing it never stops a relocked desktop's service from starting. It moves
10596
+ * to SERVED_SERVICE_OPS (src/schema/served-service-ops.ts) in the change that lands its handler.
10597
+ */
10592
10598
  type ServiceOpSpec = {
10593
10599
  readonly params: z.ZodType;
10594
10600
  readonly result: z.ZodType;
10601
+ readonly planned?: true;
10595
10602
  };
10596
10603
  type ServiceSpec = {
10597
10604
  readonly progress: z.ZodType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.95",
3
+ "version": "0.21.96",
4
4
  "description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -98,5 +98,5 @@
98
98
  "node": ">=20"
99
99
  },
100
100
  "sideEffects": false,
101
- "gitHead": "141397109f2ac696e1b507056f3cb0bedee9ba0f"
101
+ "gitHead": "cf96f355636de937738b2161490614a412f9e775"
102
102
  }
@@ -299,6 +299,9 @@ def services(doc: dict, contract_sha256: str) -> str:
299
299
  ]
300
300
  table.append(f" {service!r}: {{")
301
301
  for op, o in spec["ops"].items():
302
+ if o.get("planned"):
303
+ # A planned op has no desktop handler yet: it stays out of the served contract.
304
+ continue
302
305
  prefix = f"{service}."
303
306
  if not op.startswith(prefix):
304
307
  raise SystemExit(f"gen_pydantic: service op {op} does not start with {prefix}")