@lensmcp/protocol-types 1.26.4 → 1.26.5

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.
@@ -29,6 +29,9 @@ export interface ErrorCause {
29
29
  /** The first frame in the app's code, `file:line`, when the stack has one. */
30
30
  frame?: string;
31
31
  }
32
+ /** A message that is a JSON list of validation issues (zod's) as one readable line, each issue on its own line below. */
33
+ export declare function readableErrorMessage(message: string): string;
34
+ export declare function readableErrorMessage(message: string | undefined): string | undefined;
32
35
  /** The first frame outside dependencies and the runtime, as `file:line` (the column dropped: a rebuild moves it). */
33
36
  export declare function appFrameOf(stack: string | undefined): string | undefined;
34
37
  /**
@@ -1,5 +1,6 @@
1
- "use strict";var l=Object.defineProperty;var n=(e,t)=>l(e,"name",{value:t,configurable:!0});var p=Object.defineProperty,i=n((e,t)=>p(e,"name",{value:t,configurable:!0}),"n");export function joinId(e,t){const o=i(a=>a.replace(/%/g,"%25").replace(/:/g,"%3A"),"esc");return[e,...t.map(a=>o(a===void 0?"":String(a)))].join(":")}n(joinId,"joinId"),i(joinId,"joinId");export function foldMessage(e){return e?e.split(`
2
- `)[0].replace(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi,"<id>").replace(/\b[0-9A-HJKMNP-TV-Z]{26}\b/g,"<id>").replace(/0x[0-9a-f]+/gi,"<hex>").replace(/\b[0-9a-f]{12,}\b/gi,"<id>").replace(/\d+/g,"#").trim().slice(0,140):""}n(foldMessage,"foldMessage"),i(foldMessage,"foldMessage");const f=/^(?:Uncaught\s+(?:\(in promise\)\s+)?)?((?:[A-Za-z_$][\w$]*)?(?:Error|Exception|Failure|Fault|Rejection))(?:\s*\[[^\]]*\])?:\s*(.+)$/;function c(e){const t=f.exec((e??"").split(`
3
- `)[0].trim());return t?{name:t[1],message:t[2].trim()}:void 0}n(c,"r"),i(c,"named");export function appFrameOf(e){for(const t of(e??"").split(`
4
- `)){const o=/^\s*at\s+(.+)$/.exec(t);if(!o||/node_modules|node:internal|node:async_hooks|\(native\)|<anonymous>|\(internal\//.test(o[1]))continue;const a=/\(?([^()\s]+?):(\d+)(?::\d+)?\)?$/.exec(o[1].trim());return a?`${a[1].replace(/^.*?\/(?=(?:src|apps|libs)\/)/,"")}:${a[2]}`:o[1].trim()}}n(appFrameOf,"appFrameOf"),i(appFrameOf,"appFrameOf");export function errorCause(e){const t=c(e.stack),o=c(e.message),a=c(e.title),r=e.name?.trim()||t?.name||o?.name||a?.name;if(!r)return;let s=(t&&t.name===r?t.message:void 0)??e.message??a?.message??e.title??"";const m=c(s);m&&m.name===r&&(s=m.message),s=s.split(`
5
- `)[0].trim();const h=appFrameOf(e.stack),u=g.has(errorHeadline({name:r,message:s})?.id??"");return{id:joinId("cause",[r,foldMessage(s),u?void 0:h]),errorName:r,message:s,...h?{frame:h}:{}}}n(errorCause,"errorCause"),i(errorCause,"errorCause");const g=new Set(["missing-column","missing-table","connection-refused","out-of-memory"]);export function causeIdWithoutFrame(e){return joinId("cause",[e.errorName,foldMessage(e.message),void 0])}n(causeIdWithoutFrame,"causeIdWithoutFrame"),i(causeIdWithoutFrame,"causeIdWithoutFrame");const d=i(e=>e?` (\xAB${e}\xBB)`:"","q");export const ERROR_HEADLINES=[{id:"missing-column",match:i(e=>/column "?([\w.]+)"?(?: of relation "?[\w.]+"?)? does not exist|Unknown column '([^']+)'|ER_BAD_FIELD_ERROR/i.exec(e),"match"),say:i(e=>({headline:`The code expects a database column${d(e===!0?void 0:e[1]??e[2])} the database doesn't have`,hint:"Run the migrations, or add the migration the entity change needs."}),"say")},{id:"missing-table",match:i(e=>/relation "?([\w.]+)"? does not exist|Table '([^']+)' doesn't exist|ER_NO_SUCH_TABLE/i.exec(e),"match"),say:i(e=>({headline:`The code expects a database table${d(e===!0?void 0:e[1]??e[2])} the database doesn't have`,hint:"Run the migrations against this database."}),"say")},{id:"unique-violation",match:i((e,t)=>/duplicate key value violates unique constraint "?([\w.]+)"?|Duplicate entry '[^']*' for key '([^']+)'|ER_DUP_ENTRY/i.exec(e)||t.code==="23505","match"),say:i(e=>({headline:`A row with the same unique value already exists${d(e===!0?void 0:e[1]??e[2])}`,hint:"The code inserts a duplicate: look up the existing row first, or upsert."}),"say")},{id:"foreign-key-violation",match:i((e,t)=>/violates foreign key constraint "?([\w.]+)"?|a foreign key constraint fails|ER_NO_REFERENCED_ROW|ER_ROW_IS_REFERENCED/i.exec(e)||t.code==="23503","match"),say:i(e=>({headline:`A row points at a row that doesn't exist, or a row still in use was deleted${d(e===!0?void 0:e[1])}`,hint:"Create the referenced row first, or delete the rows that point at it."}),"say")},{id:"connection-refused",match:i((e,t)=>/ECONNREFUSED|connection refused|connect ECONNREFUSED/i.exec(e)||t.code==="ECONNREFUSED","match"),say:i(()=>({headline:"A service the code connects to is not running, or not listening where the code looks",hint:"Start it (database, cache, broker or API), or fix its host and port."}),"say")},{id:"out-of-memory",match:i((e,t)=>/heap out of memory|JavaScript heap|out of memory|ENOMEM|Allocation failed/i.exec(e)||t.code==="ENOMEM","match"),say:i(()=>({headline:"The process ran out of memory",hint:"Something holds or loads too much at once \u2014 look for an unbounded list, cache or query."}),"say")},{id:"jwt-expired",match:i((e,t)=>/jwt expired|token expired/i.exec(e)||t.name==="TokenExpiredError","match"),say:i(()=>({headline:"A sign-in token expired",hint:"Sign in again; if it keeps happening, the client is not refreshing its token."}),"say")},{id:"jwt-invalid",match:i((e,t)=>/jwt malformed|invalid signature|invalid token|jwt must be provided|jwt audience invalid|jwt issuer invalid/i.exec(e)||t.name==="JsonWebTokenError","match"),say:i(()=>({headline:"A sign-in token is not valid here",hint:"Its signature, audience or issuer does not match what this service expects."}),"say")},{id:"timeout",match:i((e,t)=>/ETIMEDOUT|ESOCKETTIMEDOUT|timed? ?out|timeout exceeded|statement timeout|canceling statement due to|Query read timeout/i.exec(e)||t.name==="TimeoutError"||t.code==="ETIMEDOUT","match"),say:i(()=>({headline:"Something took too long and was cut off",hint:"A slow query, a busy dependency or a lock \u2014 open the failing step to see which."}),"say")},{id:"unauthorized",match:i((e,t)=>t.status===401||t.name==="UnauthorizedException"||/^Unauthorized$/i.test(e.trim()),"match"),say:i(()=>({headline:"The request was not signed in (401)",hint:"It came without a valid session or token."}),"say")},{id:"forbidden",match:i((e,t)=>t.status===403||t.name==="ForbiddenException"||/^Forbidden(?: resource)?$/i.test(e.trim()),"match"),say:i(()=>({headline:"The signed-in user is not allowed to do this (403)",hint:"A role or permission check refused it."}),"say")}];export function errorHeadline(e){const t=[e.code,e.message].filter(Boolean).join(" ");for(const o of ERROR_HEADLINES){const a=o.match(t,e);if(a)return{id:o.id,...o.say(a)}}}n(errorHeadline,"errorHeadline"),i(errorHeadline,"errorHeadline");
1
+ "use strict";var f=Object.defineProperty;var s=(e,t)=>f(e,"name",{value:t,configurable:!0});var g=Object.defineProperty,i=s((e,t)=>g(e,"name",{value:t,configurable:!0}),"n");export function joinId(e,t){const a=i(n=>n.replace(/%/g,"%25").replace(/:/g,"%3A"),"esc");return[e,...t.map(n=>a(n===void 0?"":String(n)))].join(":")}s(joinId,"joinId"),i(joinId,"joinId");export function foldMessage(e){return e?e.split(`
2
+ `)[0].replace(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi,"<id>").replace(/\b[0-9A-HJKMNP-TV-Z]{26}\b/g,"<id>").replace(/0x[0-9a-f]+/gi,"<hex>").replace(/\b[0-9a-f]{12,}\b/gi,"<id>").replace(/\d+/g,"#").trim().slice(0,140):""}s(foldMessage,"foldMessage"),i(foldMessage,"foldMessage");const y=i(e=>!!e&&typeof e=="object"&&typeof e.message=="string","isValidationIssue"),E=i(e=>Array.isArray(e)&&e.length?e.map(String).join("."):"(root)","issuePath"),u=3;export function readableErrorMessage(e){const t=e?.trim()??"",a=t.indexOf("["),n=t.slice(0,Math.max(a,0));if(a<0||!/^(?:[A-Za-z_$][\w$]*:\s*)?$/.test(n))return e;let c;try{c=JSON.parse(t.slice(a))}catch{return e}if(!Array.isArray(c)||!c.length||!c.every(y))return e;const o=c.map(d=>`${E(d.path)}: ${d.message}`),r=o.length===1?"1 issue":`${o.length} issues`,m=o.length>u?` (+${o.length-u} more)`:"";return[`${n}Validation failed (${r}): ${o.slice(0,u).join("; ")}${m}`,...o.map(d=>` ${d}`)].join(`
3
+ `)}s(readableErrorMessage,"readableErrorMessage"),i(readableErrorMessage,"readableErrorMessage");const x=/^(?:Uncaught\s+(?:\(in promise\)\s+)?)?((?:[A-Za-z_$][\w$]*)?(?:Error|Exception|Failure|Fault|Rejection))(?:\s*\[[^\]]*\])?:\s*(.+)$/;function h(e){const t=x.exec((e??"").split(`
4
+ `)[0].trim());return t?{name:t[1],message:t[2].trim()}:void 0}s(h,"u"),i(h,"named");export function appFrameOf(e){for(const t of(e??"").split(`
5
+ `)){const a=/^\s*at\s+(.+)$/.exec(t);if(!a||/node_modules|node:internal|node:async_hooks|\(native\)|<anonymous>|\(internal\//.test(a[1]))continue;const n=/\(?([^()\s]+?):(\d+)(?::\d+)?\)?$/.exec(a[1].trim());return n?`${n[1].replace(/^.*?\/(?=(?:src|apps|libs)\/)/,"")}:${n[2]}`:a[1].trim()}}s(appFrameOf,"appFrameOf"),i(appFrameOf,"appFrameOf");export function errorCause(e){const t=readableErrorMessage(e.message),a=h(e.stack),n=h(t),c=h(e.title),o=e.name?.trim()||a?.name||n?.name||c?.name;if(!o)return;let r=(t!==e.message?t:void 0)??(a&&a.name===o?a.message:void 0)??t??c?.message??e.title??"";const m=h(r);m&&m.name===o&&(r=m.message),r=r.split(`
6
+ `)[0].trim();const d=appFrameOf(e.stack),p=v.has(errorHeadline({name:o,message:r})?.id??"");return{id:joinId("cause",[o,foldMessage(r),p?void 0:d]),errorName:o,message:r,...d?{frame:d}:{}}}s(errorCause,"errorCause"),i(errorCause,"errorCause");const v=new Set(["missing-column","missing-table","connection-refused","out-of-memory"]);export function causeIdWithoutFrame(e){return joinId("cause",[e.errorName,foldMessage(e.message),void 0])}s(causeIdWithoutFrame,"causeIdWithoutFrame"),i(causeIdWithoutFrame,"causeIdWithoutFrame");const l=i(e=>e?` (\xAB${e}\xBB)`:"","q");export const ERROR_HEADLINES=[{id:"missing-column",match:i(e=>/column "?([\w.]+)"?(?: of relation "?[\w.]+"?)? does not exist|Unknown column '([^']+)'|ER_BAD_FIELD_ERROR/i.exec(e),"match"),say:i(e=>({headline:`The code expects a database column${l(e===!0?void 0:e[1]??e[2])} the database doesn't have`,hint:"Run the migrations, or add the migration the entity change needs."}),"say")},{id:"missing-table",match:i(e=>/relation "?([\w.]+)"? does not exist|Table '([^']+)' doesn't exist|ER_NO_SUCH_TABLE/i.exec(e),"match"),say:i(e=>({headline:`The code expects a database table${l(e===!0?void 0:e[1]??e[2])} the database doesn't have`,hint:"Run the migrations against this database."}),"say")},{id:"unique-violation",match:i((e,t)=>/duplicate key value violates unique constraint "?([\w.]+)"?|Duplicate entry '[^']*' for key '([^']+)'|ER_DUP_ENTRY/i.exec(e)||t.code==="23505","match"),say:i(e=>({headline:`A row with the same unique value already exists${l(e===!0?void 0:e[1]??e[2])}`,hint:"The code inserts a duplicate: look up the existing row first, or upsert."}),"say")},{id:"foreign-key-violation",match:i((e,t)=>/violates foreign key constraint "?([\w.]+)"?|a foreign key constraint fails|ER_NO_REFERENCED_ROW|ER_ROW_IS_REFERENCED/i.exec(e)||t.code==="23503","match"),say:i(e=>({headline:`A row points at a row that doesn't exist, or a row still in use was deleted${l(e===!0?void 0:e[1])}`,hint:"Create the referenced row first, or delete the rows that point at it."}),"say")},{id:"connection-refused",match:i((e,t)=>/ECONNREFUSED|connection refused|connect ECONNREFUSED/i.exec(e)||t.code==="ECONNREFUSED","match"),say:i(()=>({headline:"A service the code connects to is not running, or not listening where the code looks",hint:"Start it (database, cache, broker or API), or fix its host and port."}),"say")},{id:"out-of-memory",match:i((e,t)=>/heap out of memory|JavaScript heap|out of memory|ENOMEM|Allocation failed/i.exec(e)||t.code==="ENOMEM","match"),say:i(()=>({headline:"The process ran out of memory",hint:"Something holds or loads too much at once \u2014 look for an unbounded list, cache or query."}),"say")},{id:"jwt-expired",match:i((e,t)=>/jwt expired|token expired/i.exec(e)||t.name==="TokenExpiredError","match"),say:i(()=>({headline:"A sign-in token expired",hint:"Sign in again; if it keeps happening, the client is not refreshing its token."}),"say")},{id:"jwt-invalid",match:i((e,t)=>/jwt malformed|invalid signature|invalid token|jwt must be provided|jwt audience invalid|jwt issuer invalid/i.exec(e)||t.name==="JsonWebTokenError","match"),say:i(()=>({headline:"A sign-in token is not valid here",hint:"Its signature, audience or issuer does not match what this service expects."}),"say")},{id:"timeout",match:i((e,t)=>/ETIMEDOUT|ESOCKETTIMEDOUT|timed? ?out|timeout exceeded|statement timeout|canceling statement due to|Query read timeout/i.exec(e)||t.name==="TimeoutError"||t.code==="ETIMEDOUT","match"),say:i(()=>({headline:"Something took too long and was cut off",hint:"A slow query, a busy dependency or a lock \u2014 open the failing step to see which."}),"say")},{id:"unauthorized",match:i((e,t)=>t.status===401||t.name==="UnauthorizedException"||/^Unauthorized$/i.test(e.trim()),"match"),say:i(()=>({headline:"The request was not signed in (401)",hint:"It came without a valid session or token."}),"say")},{id:"forbidden",match:i((e,t)=>t.status===403||t.name==="ForbiddenException"||/^Forbidden(?: resource)?$/i.test(e.trim()),"match"),say:i(()=>({headline:"The signed-in user is not allowed to do this (403)",hint:"A role or permission check refused it."}),"say")}];export function errorHeadline(e){const t=[e.code,e.message].filter(Boolean).join(" ");for(const a of ERROR_HEADLINES){const n=a.match(t,e);if(n)return{id:a.id,...a.say(n)}}}s(errorHeadline,"errorHeadline"),i(errorHeadline,"errorHeadline");
@@ -95,12 +95,16 @@ export interface HostCeiling {
95
95
  /** When the person set it. */
96
96
  setAt?: number;
97
97
  }
98
+ /** Where a host's kept usage came from (storage account-usage.ts `AccountUsage.how`) — this Mac's only: an advert never says it. */
99
+ export type HostUsageHow = 'codex app-server' | 'claude status line' | 'anthropic oauth usage';
98
100
  /** A host's account as the page shows it: `stopped` — its quota stop holds now. */
99
101
  export type HostAccountView = HostAccount & {
100
102
  stopped?: true;
103
+ usageHow?: HostUsageHow;
101
104
  };
102
105
  export type HostOwnView = HostOwnSignIn & {
103
106
  stopped?: true;
107
+ usageHow?: HostUsageHow;
104
108
  };
105
109
  /** One host's agents, accounts and ceiling, as `GET /api/team/hosts` answers it. */
106
110
  export interface HostAgentsView {
package/lib/peers.d.ts CHANGED
@@ -851,7 +851,6 @@ export declare const PeerErrorBodySchema: z.ZodObject<{
851
851
  code: z.ZodEnum<{
852
852
  timeout: "timeout";
853
853
  lost: "lost";
854
- refused: "refused";
855
854
  "unknown-type": "unknown-type";
856
855
  "wrong-direction": "wrong-direction";
857
856
  "bad-message": "bad-message";
@@ -859,6 +858,7 @@ export declare const PeerErrorBodySchema: z.ZodObject<{
859
858
  "not-handled": "not-handled";
860
859
  "too-large": "too-large";
861
860
  busy: "busy";
861
+ refused: "refused";
862
862
  internal: "internal";
863
863
  "no-window": "no-window";
864
864
  "window-used": "window-used";
@@ -900,7 +900,6 @@ export declare const PEER_BODY_SCHEMAS: {
900
900
  code: z.ZodEnum<{
901
901
  timeout: "timeout";
902
902
  lost: "lost";
903
- refused: "refused";
904
903
  "unknown-type": "unknown-type";
905
904
  "wrong-direction": "wrong-direction";
906
905
  "bad-message": "bad-message";
@@ -908,6 +907,7 @@ export declare const PEER_BODY_SCHEMAS: {
908
907
  "not-handled": "not-handled";
909
908
  "too-large": "too-large";
910
909
  busy: "busy";
910
+ refused: "refused";
911
911
  internal: "internal";
912
912
  "no-window": "no-window";
913
913
  "window-used": "window-used";
@@ -966,7 +966,6 @@ export declare const PAIR_BODY_SCHEMAS: {
966
966
  code: z.ZodEnum<{
967
967
  timeout: "timeout";
968
968
  lost: "lost";
969
- refused: "refused";
970
969
  "unknown-type": "unknown-type";
971
970
  "wrong-direction": "wrong-direction";
972
971
  "bad-message": "bad-message";
@@ -974,6 +973,7 @@ export declare const PAIR_BODY_SCHEMAS: {
974
973
  "not-handled": "not-handled";
975
974
  "too-large": "too-large";
976
975
  busy: "busy";
976
+ refused: "refused";
977
977
  internal: "internal";
978
978
  "no-window": "no-window";
979
979
  "window-used": "window-used";
@@ -1157,10 +1157,10 @@ export declare const MAIN_MIRROR_SCHEMAS: {
1157
1157
  }, z.core.$strict>;
1158
1158
  verdict: z.ZodOptional<z.ZodObject<{
1159
1159
  state: z.ZodEnum<{
1160
- waiting: "waiting";
1161
1160
  refused: "refused";
1162
1161
  "in-main": "in-main";
1163
1162
  "brought-in": "brought-in";
1163
+ waiting: "waiting";
1164
1164
  "not-ff": "not-ff";
1165
1165
  }>;
1166
1166
  count: z.ZodNumber;
@@ -1190,8 +1190,8 @@ export declare const MAIN_MIRROR_SCHEMAS: {
1190
1190
  sent: z.ZodBoolean;
1191
1191
  }, z.core.$strict>>;
1192
1192
  follow: z.ZodEnum<{
1193
- waiting: "waiting";
1194
1193
  "in-step": "in-step";
1194
+ waiting: "waiting";
1195
1195
  "fast-forward": "fast-forward";
1196
1196
  ahead: "ahead";
1197
1197
  "to-update": "to-update";
@@ -1200,11 +1200,11 @@ export declare const MAIN_MIRROR_SCHEMAS: {
1200
1200
  }>;
1201
1201
  update: z.ZodOptional<z.ZodObject<{
1202
1202
  outcome: z.ZodEnum<{
1203
- waiting: "waiting";
1204
1203
  refused: "refused";
1205
- current: "current";
1204
+ waiting: "waiting";
1206
1205
  "fast-forward": "fast-forward";
1207
1206
  merged: "merged";
1207
+ current: "current";
1208
1208
  conflicts: "conflicts";
1209
1209
  }>;
1210
1210
  at: z.ZodNumber;
@@ -1233,10 +1233,10 @@ export declare const MAIN_MIRROR_ANSWER_SCHEMAS: {
1233
1233
  why: z.ZodOptional<z.ZodString>;
1234
1234
  verdict: z.ZodOptional<z.ZodObject<{
1235
1235
  state: z.ZodEnum<{
1236
- waiting: "waiting";
1237
1236
  refused: "refused";
1238
1237
  "in-main": "in-main";
1239
1238
  "brought-in": "brought-in";
1239
+ waiting: "waiting";
1240
1240
  "not-ff": "not-ff";
1241
1241
  }>;
1242
1242
  count: z.ZodNumber;
@@ -1251,8 +1251,8 @@ export declare const MAIN_MIRROR_ANSWER_SCHEMAS: {
1251
1251
  needWhole: z.ZodOptional<z.ZodBoolean>;
1252
1252
  why: z.ZodOptional<z.ZodString>;
1253
1253
  follow: z.ZodOptional<z.ZodEnum<{
1254
- waiting: "waiting";
1255
1254
  "in-step": "in-step";
1255
+ waiting: "waiting";
1256
1256
  "fast-forward": "fast-forward";
1257
1257
  ahead: "ahead";
1258
1258
  "to-update": "to-update";
@@ -1299,8 +1299,8 @@ export declare const PEER_WORK_SCHEMAS: {
1299
1299
  at: z.ZodNumber;
1300
1300
  started: z.ZodOptional<z.ZodLiteral<true>>;
1301
1301
  state: z.ZodOptional<z.ZodEnum<{
1302
- running: "running";
1303
1302
  queued: "queued";
1303
+ running: "running";
1304
1304
  }>>;
1305
1305
  note: z.ZodOptional<z.ZodString>;
1306
1306
  queue: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1316,11 +1316,11 @@ export declare const PEER_WORK_SCHEMAS: {
1316
1316
  runId: z.ZodString;
1317
1317
  at: z.ZodNumber;
1318
1318
  state: z.ZodEnum<{
1319
- errored: "errored";
1319
+ timeout: "timeout";
1320
1320
  passed: "passed";
1321
1321
  failed: "failed";
1322
+ errored: "errored";
1322
1323
  cancelled: "cancelled";
1323
- timeout: "timeout";
1324
1324
  }>;
1325
1325
  note: z.ZodOptional<z.ZodString>;
1326
1326
  step: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1413,10 +1413,10 @@ export declare const PEER_WORK_SCHEMAS: {
1413
1413
  }, z.core.$strict>;
1414
1414
  why: z.ZodObject<{
1415
1415
  kind: z.ZodEnum<{
1416
- restarting: "restarting";
1417
1416
  protocol: "protocol";
1418
1417
  version: "version";
1419
1418
  installed: "installed";
1419
+ restarting: "restarting";
1420
1420
  "install-failed": "install-failed";
1421
1421
  "restart-failed": "restart-failed";
1422
1422
  "no-store": "no-store";
@@ -1478,18 +1478,18 @@ export declare const StoreReplySchema: z.ZodObject<{
1478
1478
  result: z.ZodOptional<z.ZodUnknown>;
1479
1479
  error: z.ZodOptional<z.ZodObject<{
1480
1480
  name: z.ZodEnum<{
1481
- Error: "Error";
1482
1481
  CoordinationError: "CoordinationError";
1483
1482
  CapacityRefusal: "CapacityRefusal";
1484
1483
  CoordinationBusyError: "CoordinationBusyError";
1485
1484
  StoreCallRefused: "StoreCallRefused";
1485
+ Error: "Error";
1486
1486
  }>;
1487
1487
  message: z.ZodString;
1488
1488
  room: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1489
1489
  step: z.ZodOptional<z.ZodEnum<{
1490
1490
  open: "open";
1491
- commit: "commit";
1492
1491
  write: "write";
1492
+ commit: "commit";
1493
1493
  read: "read";
1494
1494
  }>>;
1495
1495
  waitedMs: z.ZodOptional<z.ZodNumber>;
@@ -1579,8 +1579,8 @@ export declare const PEER_LAUNCH_SCHEMAS: {
1579
1579
  state: z.ZodEnum<{
1580
1580
  running: "running";
1581
1581
  failed: "failed";
1582
- stopped: "stopped";
1583
1582
  exited: "exited";
1583
+ stopped: "stopped";
1584
1584
  }>;
1585
1585
  at: z.ZodNumber;
1586
1586
  pid: z.ZodOptional<z.ZodNumber>;
@@ -1785,9 +1785,9 @@ export declare const GOAL_PEER_SCHEMAS: {
1785
1785
  sha256: z.ZodString;
1786
1786
  }, z.core.$strict>;
1787
1787
  services: z.ZodOptional<z.ZodEnum<{
1788
- always: "always";
1789
- none: "none";
1790
1788
  "on-demand": "on-demand";
1789
+ none: "none";
1790
+ always: "always";
1791
1791
  }>>;
1792
1792
  at: z.ZodNumber;
1793
1793
  }, z.core.$strict>;
@@ -1802,10 +1802,10 @@ export declare const GOAL_PEER_SCHEMAS: {
1802
1802
  readonly 'goal.changes': z.ZodObject<{
1803
1803
  goal: z.ZodString;
1804
1804
  what: z.ZodEnum<{
1805
- files: "files";
1806
1805
  commit: "commit";
1807
- diff: "diff";
1806
+ files: "files";
1808
1807
  row: "row";
1808
+ diff: "diff";
1809
1809
  commits: "commits";
1810
1810
  against: "against";
1811
1811
  }>;
@@ -1846,10 +1846,10 @@ export declare const GOAL_PEER_ANSWER_SCHEMAS: {
1846
1846
  ref: z.ZodString;
1847
1847
  sha: z.ZodOptional<z.ZodString>;
1848
1848
  mirror: z.ZodOptional<z.ZodEnum<{
1849
- created: "created";
1850
- current: "current";
1851
1849
  "not-ff": "not-ff";
1852
1850
  "fast-forward": "fast-forward";
1851
+ current: "current";
1852
+ created: "created";
1853
1853
  "checked-out": "checked-out";
1854
1854
  }>>;
1855
1855
  told: z.ZodOptional<z.ZodString>;
@@ -1866,10 +1866,10 @@ export declare const GOAL_PEER_ANSWER_SCHEMAS: {
1866
1866
  readonly 'goal.update': z.ZodObject<{
1867
1867
  outcome: z.ZodEnum<{
1868
1868
  refused: "refused";
1869
- current: "current";
1870
- asked: "asked";
1871
1869
  merged: "merged";
1870
+ current: "current";
1872
1871
  conflicts: "conflicts";
1872
+ asked: "asked";
1873
1873
  }>;
1874
1874
  why: z.ZodString;
1875
1875
  sha: z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lensmcp/protocol-types",
3
- "version": "1.26.4",
3
+ "version": "1.26.5",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",