@ai-matrx/desktop-protocol 0.21.58 → 0.21.60

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/client.cjs CHANGED
@@ -144,7 +144,7 @@ var import_zod2 = require("zod");
144
144
  var import_zod = require("zod");
145
145
  var import_uuid = require("@ai-matrx/kit/uuid");
146
146
  var PROTOCOL_MAJOR = 1;
147
- var PROTOCOL_MINOR = 60;
147
+ var PROTOCOL_MINOR = 61;
148
148
  var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
149
149
  var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
150
150
  var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
@@ -532,7 +532,7 @@ var FsListParams = import_zod6.z.strictObject({
532
532
  // glob on name
533
533
  limit: import_zod6.z.int().min(1).max(5e3).default(1e3),
534
534
  page_token: import_zod6.z.string().max(256).optional(),
535
- // Desktop additions; their defaults ARE the daemon's behaviour: dotfiles listed, siblings in
535
+ // Desktop additions; their defaults ARE the daemon's behavior: dotfiles listed, siblings in
536
536
  // binary (byte) order of name, depth-first.
537
537
  show_hidden: import_zod6.z.boolean().default(true),
538
538
  sort: import_zod6.z.enum(["name", "mtime", "size", "kind"]).default("name")
@@ -854,7 +854,7 @@ var MlProgress = import_zod9.z.strictObject({
854
854
  /** 0–1 when known (transcribe: audio covered so far; install: bytes so far). */
855
855
  fraction: import_zod9.z.number().min(0).max(1).nullable(),
856
856
  install: MlInstallProgress.nullable(),
857
- /** The segment just transcribed (transcribe only): text appears as it is recognised. */
857
+ /** The segment just transcribed (transcribe only): text appears as it is recognized. */
858
858
  segment: TranscriptSegment.nullable()
859
859
  });
860
860
  var TextModelId = ModelKey;
@@ -1412,7 +1412,7 @@ var AccountAgent = import_zod14.z.strictObject({
1412
1412
  // 1.39: the catalogue's own row (agx_get_list_full, read whole through @ai-matrx/agents/catalog).
1413
1413
  /** The agent's tags (the library's search and its inspector). */
1414
1414
  tags: import_zod14.z.array(import_zod14.z.string().max(120)).max(50).optional(),
1415
- /** The model it runs (a model catalogue id); absent when it names none. */
1415
+ /** The model it runs (a model catalog id); absent when it names none. */
1416
1416
  model_id: AccountRowId.optional(),
1417
1417
  /** The person's access: owner, admin, editor, viewer or system (the database's own words); absent when unknown. */
1418
1418
  access_level: import_zod14.z.string().min(1).max(40).optional(),
@@ -1448,7 +1448,7 @@ var AccountAgentDetail = import_zod14.z.strictObject({
1448
1448
  custom_tool_count: import_zod14.z.int().min(0),
1449
1449
  skill_count: import_zod14.z.int().min(0),
1450
1450
  connection_count: import_zod14.z.int().min(0),
1451
- /** The model's display name when the catalogue knows it. */
1451
+ /** The model's display name when the catalog knows it. */
1452
1452
  model_name: import_zod14.z.string().max(200).nullable()
1453
1453
  });
1454
1454
  var AccountAgentsGetParams = import_zod14.z.strictObject({ agent_id: AccountRowId });
@@ -2254,7 +2254,7 @@ var StackLogsParams = import_zod24.z.strictObject({
2254
2254
  wait_ms: import_zod24.z.int().min(0).max(25e3).default(0)
2255
2255
  });
2256
2256
  var StackLogsResult = import_zod24.z.strictObject({
2257
- /** Complete lines, colour codes removed. */
2257
+ /** Complete lines, color codes removed. */
2258
2258
  lines: import_zod24.z.array(import_zod24.z.string().max(65536)).max(2e5),
2259
2259
  /** Where these lines end: pass it back as `offset` to follow. */
2260
2260
  offset: nonNegInt,
@@ -3006,6 +3006,7 @@ var ChatAppProject = import_zod30.z.strictObject({
3006
3006
  var ChatTitleSource = import_zod30.z.enum(["app", "app-remembered", "custom-title", "ai-title", "agent-name", "summary", "first-prompt", "last-prompt"]);
3007
3007
  var ChatAppGroup = import_zod30.z.strictObject({ window: ChatPlace, group_id: import_zod30.z.string().max(120), name: import_zod30.z.string().max(200) });
3008
3008
  var ChatParent = import_zod30.z.strictObject({ id: ChatId, how: import_zod30.z.enum(["spawned", "dispatched", "forked"]), title: import_zod30.z.string().max(1e3).nullable() });
3009
+ var ChatTitleSync = import_zod30.z.strictObject({ state: import_zod30.z.enum(["synced", "not_synced", "unsupported"]), note: import_zod30.z.string().max(200) });
3009
3010
  var ChatRow = import_zod30.z.strictObject({
3010
3011
  id: ChatId,
3011
3012
  /** The short id people see (the listing's first 8 characters). */
@@ -3055,7 +3056,9 @@ var ChatRow = import_zod30.z.strictObject({
3055
3056
  /** 1.59: the chat it came from (nesting): an agent's chat that spawned it, dispatched it, or that it was forked from. */
3056
3057
  parent: ChatParent.optional(),
3057
3058
  /** 1.59: earlier sessions of this same chat (the app continued it under new session ids). */
3058
- prior_sessions: import_zod30.z.array(ChatId).max(50).optional()
3059
+ prior_sessions: import_zod30.z.array(ChatId).max(50).optional(),
3060
+ /** 1.61: where the title shows (the title facet's sync state for this chat's app). */
3061
+ title_sync: ChatTitleSync.optional()
3059
3062
  });
3060
3063
  var ChatFamily = import_zod30.z.strictObject({
3061
3064
  id: ChatId,
@@ -4268,7 +4271,7 @@ var ScheduleCreateParams = import_zod37.z.strictObject({
4268
4271
  /** The op's params, exactly as the op takes them; checked when the task is created. */
4269
4272
  params: import_zod37.z.record(import_zod37.z.string(), import_zod37.z.unknown()).default({}),
4270
4273
  interval_s: import_zod37.z.int().min(10).max(2592e3),
4271
- /** Stop after this many runs; absent: until cancelled. */
4274
+ /** Stop after this many runs; absent: until canceled. */
4272
4275
  max_runs: import_zod37.z.int().min(1).max(1e5).optional(),
4273
4276
  /** Run once now, before the first interval. */
4274
4277
  run_now: import_zod37.z.boolean().default(false)
@@ -4292,7 +4295,7 @@ var ScheduledTask = import_zod37.z.strictObject({
4292
4295
  runs: nonNegInt,
4293
4296
  created_at_ms: epochMs,
4294
4297
  next_run_at_ms: epochMs.nullable(),
4295
- /** active, done (ran max_runs), cancelled. */
4298
+ /** active, done (ran max_runs), canceled. */
4296
4299
  state: import_zod37.z.enum(["active", "done", "cancelled"]),
4297
4300
  /** The newest runs, newest first (at most 10). */
4298
4301
  recent: import_zod37.z.array(ScheduleRun)