@ai-matrx/desktop-protocol 0.16.0 → 0.16.1

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-k4pDkXUe.cjs';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-k4pDkXUe.cjs';
2
+ import { O as OpName } from './models-CCOaAWaM.cjs';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-CCOaAWaM.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. */
@@ -2438,22 +2438,26 @@ declare const CodingHistoryFailure: z.ZodObject<{
2438
2438
  session_id: z.ZodString;
2439
2439
  reason: z.ZodString;
2440
2440
  }, z.core.$strict>;
2441
- /** Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only). */
2441
+ /**
2442
+ * Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
2443
+ * `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
2444
+ * its own line, so every sentence the person reads comes from one place.
2445
+ */
2442
2446
  declare const CodingPlanMissingParams: z.ZodObject<{
2443
- credentials: z.ZodObject<{
2447
+ credentials: z.ZodNullable<z.ZodObject<{
2444
2448
  access_token: z.ZodString;
2445
2449
  user_id: z.ZodString;
2446
2450
  server_url: z.ZodString;
2447
- }, z.core.$strict>;
2451
+ }, z.core.$strict>>;
2448
2452
  }, z.core.$strict>;
2449
- /** Service op `coding.import_next`: import the plan's next bounded batch. */
2453
+ /** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
2450
2454
  declare const CodingImportNextParams: z.ZodObject<{
2451
2455
  plan_id: z.ZodString;
2452
- credentials: z.ZodObject<{
2456
+ credentials: z.ZodNullable<z.ZodObject<{
2453
2457
  access_token: z.ZodString;
2454
2458
  user_id: z.ZodString;
2455
2459
  server_url: z.ZodString;
2456
- }, z.core.$strict>;
2460
+ }, z.core.$strict>>;
2457
2461
  }, z.core.$strict>;
2458
2462
  declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
2459
2463
  /** What the core adds to every coding service op from its own sign-in (never sent by a client). */
@@ -2672,7 +2676,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
2672
2676
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
2673
2677
 
2674
2678
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
2675
- declare const CONTRACT_SHA256: "c536cb055d02ce0704cee4693f08b4af9e83a38e00e6879160037c1006f2e72e";
2679
+ declare const CONTRACT_SHA256: "c49a85cdd157d6f50e0050e86d4ea789e916c05a0bf16c8002d833b57225548d";
2676
2680
 
2677
2681
  /**
2678
2682
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-k4pDkXUe.js';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-k4pDkXUe.js';
2
+ import { O as OpName } from './models-CCOaAWaM.js';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-CCOaAWaM.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. */
@@ -2438,22 +2438,26 @@ declare const CodingHistoryFailure: z.ZodObject<{
2438
2438
  session_id: z.ZodString;
2439
2439
  reason: z.ZodString;
2440
2440
  }, z.core.$strict>;
2441
- /** Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only). */
2441
+ /**
2442
+ * Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
2443
+ * `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
2444
+ * its own line, so every sentence the person reads comes from one place.
2445
+ */
2442
2446
  declare const CodingPlanMissingParams: z.ZodObject<{
2443
- credentials: z.ZodObject<{
2447
+ credentials: z.ZodNullable<z.ZodObject<{
2444
2448
  access_token: z.ZodString;
2445
2449
  user_id: z.ZodString;
2446
2450
  server_url: z.ZodString;
2447
- }, z.core.$strict>;
2451
+ }, z.core.$strict>>;
2448
2452
  }, z.core.$strict>;
2449
- /** Service op `coding.import_next`: import the plan's next bounded batch. */
2453
+ /** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
2450
2454
  declare const CodingImportNextParams: z.ZodObject<{
2451
2455
  plan_id: z.ZodString;
2452
- credentials: z.ZodObject<{
2456
+ credentials: z.ZodNullable<z.ZodObject<{
2453
2457
  access_token: z.ZodString;
2454
2458
  user_id: z.ZodString;
2455
2459
  server_url: z.ZodString;
2456
- }, z.core.$strict>;
2460
+ }, z.core.$strict>>;
2457
2461
  }, z.core.$strict>;
2458
2462
  declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
2459
2463
  /** What the core adds to every coding service op from its own sign-in (never sent by a client). */
@@ -2672,7 +2676,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
2672
2676
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
2673
2677
 
2674
2678
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
2675
- declare const CONTRACT_SHA256: "c536cb055d02ce0704cee4693f08b4af9e83a38e00e6879160037c1006f2e72e";
2679
+ declare const CONTRACT_SHA256: "c49a85cdd157d6f50e0050e86d4ea789e916c05a0bf16c8002d833b57225548d";
2676
2680
 
2677
2681
  /**
2678
2682
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
package/dist/index.js CHANGED
@@ -1395,10 +1395,10 @@ var CodingHistoryStep = z24.strictObject({
1395
1395
  blocked: CodingHistoryBlocked.nullable(),
1396
1396
  run: CodingHistoryRun
1397
1397
  });
1398
- var CodingPlanMissingParams = z24.strictObject({ credentials: CodingServiceCredentials });
1398
+ var CodingPlanMissingParams = z24.strictObject({ credentials: CodingServiceCredentials.nullable() });
1399
1399
  var CodingImportNextParams = z24.strictObject({
1400
1400
  plan_id: z24.string().regex(/^[0-9a-f]{32}$/),
1401
- credentials: CodingServiceCredentials
1401
+ credentials: CodingServiceCredentials.nullable()
1402
1402
  });
1403
1403
  var CodingServiceProgress = z24.strictObject({
1404
1404
  phase: z24.enum(["checking", "importing"]),
@@ -1831,7 +1831,7 @@ function forPeer(op, part, value, version) {
1831
1831
  var VERSIONED_RESULT_OPS = [...RESULT_PATH.keys()];
1832
1832
 
1833
1833
  // src/contract.ts
1834
- var CONTRACT_SHA256 = "c536cb055d02ce0704cee4693f08b4af9e83a38e00e6879160037c1006f2e72e";
1834
+ var CONTRACT_SHA256 = "c49a85cdd157d6f50e0050e86d4ea789e916c05a0bf16c8002d833b57225548d";
1835
1835
 
1836
1836
  // src/close-policy.ts
1837
1837
  var CLOSE_RULES = {