@lazehq/cli 0.1.118 → 0.1.119

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 (2) hide show
  1. package/dist/laze.mjs +186 -58
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -36960,7 +36960,7 @@ function shadowedLinkLineOf({ shadow }) {
36960
36960
  }
36961
36961
 
36962
36962
  // src/rules/cli-version.rules.ts
36963
- var STAMPED = "0.1.118";
36963
+ var STAMPED = "0.1.119";
36964
36964
  function cliVersionOf({ stamped = STAMPED } = {}) {
36965
36965
  return stamped.startsWith("__") ? "dev" : stamped;
36966
36966
  }
@@ -42545,7 +42545,7 @@ function isRecursive(inst, stack, resolve28) {
42545
42545
  return PROVEN;
42546
42546
  stack.add(inst);
42547
42547
  let result2 = NONE;
42548
- const check3 = (child) => {
42548
+ const check4 = (child) => {
42549
42549
  if (result2 !== PROVEN && child?._zod) {
42550
42550
  const answer6 = isRecursive(child, stack, resolve28);
42551
42551
  if (answer6 > result2)
@@ -42574,32 +42574,32 @@ function isRecursive(inst, stack, resolve28) {
42574
42574
  case "object": {
42575
42575
  const raw = rawShape(def);
42576
42576
  merge2(raw ? shape(raw, true) : ASSUMED);
42577
- check3(def.catchall);
42577
+ check4(def.catchall);
42578
42578
  break;
42579
42579
  }
42580
42580
  case "array":
42581
- check3(def.element);
42581
+ check4(def.element);
42582
42582
  break;
42583
42583
  case "tuple":
42584
42584
  for (const el of def.items)
42585
- check3(el);
42586
- check3(def.rest);
42585
+ check4(el);
42586
+ check4(def.rest);
42587
42587
  break;
42588
42588
  case "record":
42589
42589
  case "map":
42590
- check3(def.keyType);
42591
- check3(def.valueType);
42590
+ check4(def.keyType);
42591
+ check4(def.valueType);
42592
42592
  break;
42593
42593
  case "set":
42594
- check3(def.valueType);
42594
+ check4(def.valueType);
42595
42595
  break;
42596
42596
  case "union":
42597
42597
  for (const el of def.options)
42598
- check3(el);
42598
+ check4(el);
42599
42599
  break;
42600
42600
  case "intersection":
42601
- check3(def.left);
42602
- check3(def.right);
42601
+ check4(def.left);
42602
+ check4(def.right);
42603
42603
  break;
42604
42604
  case "optional":
42605
42605
  case "nullable":
@@ -42610,15 +42610,15 @@ function isRecursive(inst, stack, resolve28) {
42610
42610
  case "nonoptional":
42611
42611
  case "promise":
42612
42612
  case "success":
42613
- check3(def.innerType);
42613
+ check4(def.innerType);
42614
42614
  break;
42615
42615
  case "pipe":
42616
- check3(def.in);
42617
- check3(def.out);
42616
+ check4(def.in);
42617
+ check4(def.out);
42618
42618
  break;
42619
42619
  case "function":
42620
- check3(def.input);
42621
- check3(def.output);
42620
+ check4(def.input);
42621
+ check4(def.output);
42622
42622
  break;
42623
42623
  // `$ZodLazy` caches its inner on the def, so a resolved edge is followed exactly
42624
42624
  case "lazy": {
@@ -42659,10 +42659,10 @@ function isRecursive(inst, stack, resolve28) {
42659
42659
  if (!value || typeof value !== "object")
42660
42660
  continue;
42661
42661
  if (value._zod)
42662
- check3(value);
42662
+ check4(value);
42663
42663
  else if (Array.isArray(value))
42664
42664
  for (const el of value)
42665
- check3(el);
42665
+ check4(el);
42666
42666
  }
42667
42667
  }
42668
42668
  }
@@ -50608,8 +50608,8 @@ function generateChecks(doc, ctx, schema, accessor) {
50608
50608
  if (!schemaChecks || schemaChecks.length === 0)
50609
50609
  return accessor;
50610
50610
  let currentAccessor = accessor;
50611
- for (const check3 of schemaChecks) {
50612
- const def = check3._zod.def;
50611
+ for (const check4 of schemaChecks) {
50612
+ const def = check4._zod.def;
50613
50613
  if (def.when && !WHEN_DEFAULTED_CHECKS.has(def.check)) {
50614
50614
  throw new ZodCompileUnsupportedError(`check with a custom "when" condition`);
50615
50615
  }
@@ -50657,7 +50657,7 @@ function generateChecks(doc, ctx, schema, accessor) {
50657
50657
  currentAccessor = generateStringFormatCheck(doc, ctx, def, currentAccessor);
50658
50658
  break;
50659
50659
  case "custom":
50660
- currentAccessor = generateCustomRefineCheck(doc, ctx, check3, currentAccessor);
50660
+ currentAccessor = generateCustomRefineCheck(doc, ctx, check4, currentAccessor);
50661
50661
  break;
50662
50662
  case "bigint_format":
50663
50663
  generateBigIntFormatCheck(doc, def, currentAccessor);
@@ -50673,7 +50673,7 @@ function generateChecks(doc, ctx, schema, accessor) {
50673
50673
  break;
50674
50674
  case "overwrite": {
50675
50675
  const newAccessor = newVar(ctx);
50676
- generateOverwriteCheck(doc, ctx, check3, currentAccessor, newAccessor);
50676
+ generateOverwriteCheck(doc, ctx, check4, currentAccessor, newAccessor);
50677
50677
  currentAccessor = newAccessor;
50678
50678
  break;
50679
50679
  }
@@ -50796,8 +50796,8 @@ function generatePropertyCheck(doc, ctx, def, accessor) {
50796
50796
  const propAccessor = `${accessor}[${JSON.stringify(def.property)}]`;
50797
50797
  generateCheck(doc, ctx, def.schema, propAccessor);
50798
50798
  }
50799
- function generateOverwriteCheck(doc, ctx, check3, currentAccessor, newAccessor) {
50800
- const tx = check3._zod.def.tx;
50799
+ function generateOverwriteCheck(doc, ctx, check4, currentAccessor, newAccessor) {
50800
+ const tx = check4._zod.def.tx;
50801
50801
  if (!tx) {
50802
50802
  throw new ZodCompileUnsupportedError("overwrite check without a transform function");
50803
50803
  }
@@ -50813,8 +50813,8 @@ function throwAsync() {
50813
50813
  function pushIssue(issue2) {
50814
50814
  this.issues.push(issue2);
50815
50815
  }
50816
- function generateCustomRefineCheck(doc, ctx, check3, accessor) {
50817
- const def = check3._zod.def;
50816
+ function generateCustomRefineCheck(doc, ctx, check4, accessor) {
50817
+ const def = check4._zod.def;
50818
50818
  if (def.fn) {
50819
50819
  if (isAsyncFunction(def.fn)) {
50820
50820
  throw new ZodCompileAsyncError("z.compile: async .refine() predicates are not supported");
@@ -50827,11 +50827,11 @@ function generateCustomRefineCheck(doc, ctx, check3, accessor) {
50827
50827
  doc.write(`if (!${resVar}) return INVALID;`);
50828
50828
  return accessor;
50829
50829
  }
50830
- if (check3._zod.check) {
50831
- if (isAsyncFunction(check3._zod.check)) {
50830
+ if (check4._zod.check) {
50831
+ if (isAsyncFunction(check4._zod.check)) {
50832
50832
  throw new ZodCompileAsyncError("z.compile: async .superRefine() / check functions are not supported");
50833
50833
  }
50834
- const checkFn = check3._zod.check;
50834
+ const checkFn = check4._zod.check;
50835
50835
  const helperFn = (value) => {
50836
50836
  const fakePayload = { value, issues: [], addIssue: pushIssue };
50837
50837
  const result2 = checkFn(fakePayload);
@@ -54746,8 +54746,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
54746
54746
  reg.add(this, meta3);
54747
54747
  return this;
54748
54748
  },
54749
- refine(check3, params) {
54750
- return this.check(refine(check3, params));
54749
+ refine(check4, params) {
54750
+ return this.check(refine(check4, params));
54751
54751
  },
54752
54752
  superRefine(refinement, params) {
54753
54753
  return this.check(superRefine(refinement, params));
@@ -61978,6 +61978,50 @@ var vaultKeyFetchesSchemaDefinition = external_exports.object({
61978
61978
  )
61979
61979
  });
61980
61980
  var vaultKeyFetchesSchema = vaultKeyFetchesSchemaDefinition;
61981
+ var VAULT_CONTENT_BREAKER_MAX_DAYS = 14;
61982
+ var breakerCeilings = external_exports.object({
61983
+ workspacePerMinute: count,
61984
+ workspacePerHour: count,
61985
+ totalPerMinute: count,
61986
+ totalPerHour: count
61987
+ });
61988
+ var peak = count.nullable();
61989
+ var vaultContentBreakerSchemaDefinition = external_exports.object({
61990
+ /** Whether the breaker may lock: asked for, armed, and the clean days it still needs. */
61991
+ arming: external_exports.object({
61992
+ requested: external_exports.boolean(),
61993
+ armed: external_exports.boolean(),
61994
+ cleanDays: count,
61995
+ needCleanDays: count,
61996
+ recordSince: external_exports.union([day, external_exports.literal("")]),
61997
+ lastWouldLock: external_exports.union([external_exports.string().regex(RFC3339, "an RFC 3339 time"), external_exports.literal("")]),
61998
+ /** Why it is not armed: dry run set, or too few clean days; empty when armed. */
61999
+ blockedBy: external_exports.string().default("")
62000
+ }),
62001
+ ceilings: breakerCeilings,
62002
+ /** The mirror upkeep budget (`sweep` opens); it alerts and never locks. */
62003
+ upkeepCeilings: breakerCeilings,
62004
+ /** Newest day first, then most counted; a scope is a workspace id or `total`. */
62005
+ rows: external_exports.array(
62006
+ external_exports.object({
62007
+ day,
62008
+ basis: external_exports.enum(["peaks", "daily"]),
62009
+ workspaceId: workspaceIdText,
62010
+ counted: count,
62011
+ upkeep: count,
62012
+ event: count,
62013
+ peakMinute: peak,
62014
+ peakHour: peak,
62015
+ upkeepPeakMinute: peak,
62016
+ wouldLock: count,
62017
+ verdict: external_exports.enum(["clear", "would_lock", "unknown"]),
62018
+ /** A code path label such as `trpc chat.history person`, never an id or content. */
62019
+ topCaller: external_exports.string().max(200).nullable(),
62020
+ topCallerItems: peak
62021
+ })
62022
+ )
62023
+ });
62024
+ var vaultContentBreakerSchema = vaultContentBreakerSchemaDefinition;
61981
62025
  var vaultWatchThresholdsSchemaDefinition = external_exports.object({
61982
62026
  per10m: count,
61983
62027
  perHour: count,
@@ -63024,8 +63068,12 @@ var mirrorDeliveryStateSchema = external_exports.enum([
63024
63068
  "waking",
63025
63069
  "failed",
63026
63070
  "edit_kept",
63027
- "reaction_kept"
63071
+ "reaction_kept",
63072
+ "checking",
63073
+ "found",
63074
+ "sent_now"
63028
63075
  ]);
63076
+ var mirrorDeliveryCheckedSchema = external_exports.enum(["found", "sent_now"]);
63029
63077
  var MIRROR_DELIVERY_REASONS = [
63030
63078
  "offline",
63031
63079
  "not_linked",
@@ -63526,6 +63574,10 @@ var messageSchemaDefinition = external_exports.object({
63526
63574
  mirrorDeliveryWaking: external_exports.boolean().optional(),
63527
63575
  /** Beside a failed delivery: why it was not sent; an unknown reason reads as none. */
63528
63576
  mirrorDeliveryReason: mirrorDeliveryReasonSchema.optional().catch(void 0),
63577
+ /** Set beside a waiting delivery while the computer looks in the chat for an unsure send. */
63578
+ mirrorDeliveryChecking: external_exports.boolean().optional(),
63579
+ /** On a sent message after that check: it was already in the chat, or it went now. */
63580
+ mirrorDeliveryChecked: mirrorDeliveryCheckedSchema.optional().catch(void 0),
63529
63581
  /** A thread reply also sent to its conversation: it shows in the thread and the channel. */
63530
63582
  alsoInChannel: external_exports.boolean().optional(),
63531
63583
  /** A Laze DM message also posted to its paired Slack DM, the id of that conversation. */
@@ -70052,6 +70104,39 @@ var liveStepsSchemaDefinition = external_exports.object({
70052
70104
  });
70053
70105
  var liveStepsSchema = liveStepsSchemaDefinition;
70054
70106
 
70107
+ // ../../modules/agent/contract/src/agent-login-choice.ts
70108
+ var agentLoginChoicesInputSchemaDefinition = external_exports.object({
70109
+ workspaceId: external_exports.string().min(1),
70110
+ agentId: external_exports.string().min(1)
70111
+ });
70112
+ var agentLoginChoicesInputSchema = agentLoginChoicesInputSchemaDefinition;
70113
+ var agentLoginChoiceSchemaDefinition = external_exports.object({
70114
+ id: external_exports.string().min(1),
70115
+ name: external_exports.string(),
70116
+ /** `room`: it can run now; `limited`: out of usage until `until`; `signed_out`: refused. */
70117
+ status: external_exports.enum(["room", "limited", "signed_out"]),
70118
+ until: external_exports.iso.datetime().nullable(),
70119
+ usedPercent: external_exports.number().nullable(),
70120
+ /** The login the agent runs on now. */
70121
+ current: external_exports.boolean(),
70122
+ /** Signed in on the owner's Laze computer rather than kept in the keychain. */
70123
+ onComputer: external_exports.boolean()
70124
+ });
70125
+ var agentLoginChoicesSchemaDefinition = external_exports.object({
70126
+ harness: external_exports.enum(["claude-code", "codex"]).nullable(),
70127
+ poolName: external_exports.string().nullable(),
70128
+ logins: external_exports.array(agentLoginChoiceSchemaDefinition)
70129
+ });
70130
+ var agentLoginChoicesSchema = agentLoginChoicesSchemaDefinition;
70131
+ var switchAgentLoginInputSchemaDefinition = external_exports.object({
70132
+ workspaceId: external_exports.string().min(1),
70133
+ agentId: external_exports.string().min(1),
70134
+ loginId: external_exports.string().min(1).max(200)
70135
+ });
70136
+ var switchAgentLoginInputSchema = switchAgentLoginInputSchemaDefinition;
70137
+ var switchedAgentLoginSchemaDefinition = external_exports.object({ loginName: external_exports.string() });
70138
+ var switchedAgentLoginSchema = switchedAgentLoginSchemaDefinition;
70139
+
70055
70140
  // ../../modules/agent/contract/src/agent-login-trouble.ts
70056
70141
  var loginCardActionInputSchemaDefinition = external_exports.object({
70057
70142
  workspaceId: external_exports.string().min(1),
@@ -71539,7 +71624,7 @@ var agentsCopy = {
71539
71624
  };
71540
71625
  var agentCoreTrpc = defineTrpcContract("agents").query("list", { mirrored: agentsCopy }).withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentListEntrySchema)).mutation("create").withInput(createAgentInputSchema).withOutput(agentSchema).mutation("update").withInput(updateAgentInputSchema).withOutput(agentSchema).mutation("remove").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ removed: external_exports.literal(true) })).mutation("transfer").withInput(transferAgentInputSchema).withOutput(agentSchema).mutation("resetSession").withInput(resetAgentSessionInputSchema).withOutput(agentSchema).query("faces").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentFaceSchema)).query("presence").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentPresenceSchema)).mutation("uploadAvatar").withInput(uploadAgentAvatarInputSchema).withOutput(uploadedAgentAvatarSchema).query("access").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(agentAccessSchema).query("loginActivity").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(loginActivitySchema).mutation("raiseBudget").withInput(raiseBudgetInputSchema).withOutput(raisedBudgetSchema).query("permissionPrompts").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentPermissionPromptSchema)).mutation("share").withInput(shareAgentInputSchema).withOutput(agentAccessSchema).mutation("unshare").withInput(shareAgentInputSchema).withOutput(agentAccessSchema).query("harnessLogins").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(harnessLoginsSchema).mutation("saveHarnessLogin").withInput(saveHarnessLoginInputSchema).withOutput(harnessLoginsSchema).mutation("removeHarnessLogin").withInput(removeHarnessLoginInputSchema).withOutput(harnessLoginsSchema).query("listHarnessLogins").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(harnessLoginListSchema).mutation("addHarnessLogin").withInput(addHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("renameHarnessLogin").withInput(renameHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("deleteHarnessLogin").withInput(deleteHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("checkLoginUsage").withInput(checkLoginUsageInputSchema).withOutput(loginUsageCheckSchema).query("loginPools").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(loginPoolsSchema).mutation("createLoginPool").withInput(createLoginPoolInputSchema).withOutput(loginPoolsSchema).mutation("renameLoginPool").withInput(renameLoginPoolInputSchema).withOutput(loginPoolsSchema).mutation("deleteLoginPool").withInput(loginPoolRefInputSchema).withOutput(loginPoolsSchema).mutation("addPoolLogin").withInput(addPoolLoginInputSchema).withOutput(loginPoolsSchema).mutation("removePoolLogin").withInput(removePoolLoginInputSchema).withOutput(loginPoolsSchema).mutation("setPoolMember").withInput(setPoolMemberInputSchema).withOutput(loginPoolsSchema).mutation("removePoolMember").withInput(removePoolMemberInputSchema).withOutput(loginPoolsSchema).mutation("setAgentPool").withInput(setAgentPoolInputSchema).withOutput(agentSchema).mutation("openDirect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ channelId: idSchema19 })).mutation("startConversation").withInput(startConversationInputSchema).withOutput(startedConversationSchema).query("conversations").withInput(listConversationsInputSchema).withOutput(external_exports.array(conversationSummarySchema2)).mutation("joinConversation").withInput(conversationInputSchema).withOutput(conversationSummarySchema2).mutation("renameConversation").withInput(renameConversationInputSchema).withOutput(conversationSummarySchema2).mutation("leaveConversation").withInput(conversationInputSchema).withOutput(external_exports.object({ left: external_exports.literal(true) })).mutation("deleteConversation").withInput(conversationInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).mutation("mintLink").withInput(mintLinkInputSchema).withOutput(mintedLinkSchema).query("linkRedemption").withInput(linkRedemptionInputSchema).withOutput(linkRedemptionSchema).query("oauthRequest").withInput(oauthRequestInputSchema).withOutput(oauthRequestViewSchema).mutation("oauthApprove").withInput(approveOAuthInputSchema).withOutput(oauthRedirectSchema).mutation("oauthDeny").withInput(oauthRequestInputSchema).withOutput(oauthRedirectSchema).mutation("disconnect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).mutation("setGithub").withInput(setAgentGithubInputSchema).withOutput(agentSchema).query("githubWatches").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentGithubWatchSchema)).mutation("watchGithub").withInput(watchGithubInputSchema).withOutput(agentGithubWatchSchema).mutation("unwatchGithub").withInput(unwatchGithubInputSchema).withOutput(external_exports.object({ removed: external_exports.literal(true) })).build();
71541
71626
  var agentTurnTrpc = defineTrpcContract("agents").mutation("answerAttention").withInput(answerAttentionInputSchema).withOutput(external_exports.object({ answered: external_exports.literal(true) })).query("attentionDetail").withInput(attentionDetailInputSchema).withOutput(attentionDetailSchema).mutation("stopTurn").withInput(stopAgentTurnInputSchema).withOutput(external_exports.object({ stopped: external_exports.literal(true) })).query("mayStopTurn").withInput(stopAgentTurnInputSchema).withOutput(external_exports.object({ allowed: external_exports.boolean() })).mutation("retryTurn").withInput(retryAgentTurnInputSchema).withOutput(external_exports.object({ retried: external_exports.literal(true) })).query("retryState").withInput(retryAgentTurnInputSchema).withOutput(agentRetryStateSchema).query("liveSteps").withInput(liveStepsInputSchema).withOutput(liveStepsSchema).query("workingNow").withInput(agentWorkingInputSchema).withOutput(agentWorkingSchema).mutation("compactSession").withInput(compactAgentSessionInputSchema).withOutput(external_exports.object({ requested: external_exports.literal(true) })).mutation("catchUp").withInput(startCatchUpInputSchema).withOutput(catchUpRunSchema).mutation("catchUpAsk").withInput(askCatchUpInputSchema).withOutput(catchUpRunSchema).query("catchUpRun").withInput(catchUpRunInputSchema).withOutput(catchUpRunSchema).mutation("catchUpStop").withInput(catchUpRunInputSchema).withOutput(catchUpRunSchema).mutation("restartComputer").withInput(restartAgentComputerInputSchema).withOutput(external_exports.object({ restarted: external_exports.boolean() })).build();
71542
- var agentChannelSettingsTrpc = defineTrpcContract("agents").query("monitors").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentMonitorSchema)).query("channelLevel").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19, channelId: idSchema19 })).withOutput(channelLevelSchema).mutation("setChannelLevel").withInput(setChannelLevelInputSchema).withOutput(channelLevelSchema).mutation("unmuteChannel").withInput(unmuteAgentChannelInputSchema).withOutput(channelLevelSchema).mutation("cancelHeld").withInput(cancelHeldInputSchema).withOutput(cancelHeldResultSchema).mutation("useLazeModelsUntilReset").withInput(useLazeModelsUntilResetInputSchema).withOutput(lazeModelsUntilResetSchema).build();
71627
+ var agentChannelSettingsTrpc = defineTrpcContract("agents").query("monitors").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentMonitorSchema)).query("channelLevel").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19, channelId: idSchema19 })).withOutput(channelLevelSchema).mutation("setChannelLevel").withInput(setChannelLevelInputSchema).withOutput(channelLevelSchema).mutation("unmuteChannel").withInput(unmuteAgentChannelInputSchema).withOutput(channelLevelSchema).mutation("cancelHeld").withInput(cancelHeldInputSchema).withOutput(cancelHeldResultSchema).mutation("useLazeModelsUntilReset").withInput(useLazeModelsUntilResetInputSchema).withOutput(lazeModelsUntilResetSchema).query("agentLoginChoices").withInput(agentLoginChoicesInputSchema).withOutput(agentLoginChoicesSchema).mutation("switchAgentLogin").withInput(switchAgentLoginInputSchema).withOutput(switchedAgentLoginSchema).build();
71543
71628
  var agentJoinTrpc = defineTrpcContract("agents").query("joinRequest").withInput(joinRequestInputSchema).withOutput(joinRequestViewSchema).mutation("approveJoinRequest").withInput(approveJoinRequestInputSchema).withOutput(joinRequestViewSchema).mutation("denyJoinRequest").withInput(joinRequestInputSchema).withOutput(joinRequestViewSchema).build();
71544
71629
  var agentLoginTroubleTrpc = defineTrpcContract("agents").mutation("replaceHarnessLogin").withInput(replaceHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("startHarnessSignIn").withInput(startHarnessSignInInputSchema).withOutput(harnessSignInSchema).mutation("pollHarnessSignIn").withInput(pollHarnessSignInInputSchema).withOutput(harnessSignInPollSchema).mutation("waitForLogins").withInput(loginCardActionInputSchema).withOutput(external_exports.object({ waiting: external_exports.boolean() })).mutation("useAnotherLogin").withInput(loginCardActionInputSchema).withOutput(external_exports.object({ loginName: external_exports.string() })).build();
71545
71630
  var agentWorkspaceDefaultTrpc = defineTrpcContract("agents").query("workspaceDefault").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(workspaceDefaultAgentSchema).mutation("setWorkspaceDefault").withInput(setWorkspaceDefaultAgentInputSchema).withOutput(workspaceDefaultAgentSchema).build();
@@ -80064,12 +80149,12 @@ function formatOnePool({ pool, nowMs: nowMs2 }) {
80064
80149
  return `${formatPool({ pool, nowMs: nowMs2 })}
80065
80150
  `;
80066
80151
  }
80067
- function formatUsageCheck({ check: check3 }) {
80068
- const checked = `Checked ${check3.checked} ${check3.checked === 1 ? "login" : "logins"}`;
80069
- if (check3.skipped === 0) return `${checked}.
80152
+ function formatUsageCheck({ check: check4 }) {
80153
+ const checked = `Checked ${check4.checked} ${check4.checked === 1 ? "login" : "logins"}`;
80154
+ if (check4.skipped === 0) return `${checked}.
80070
80155
  `;
80071
80156
  const minutes = Math.round(LOGIN_USAGE_CHECK_SECONDS / 60);
80072
- return `${checked}, ${check3.skipped} skipped (checked in the last ${minutes} minutes).
80157
+ return `${checked}, ${check4.skipped} skipped (checked in the last ${minutes} minutes).
80073
80158
  `;
80074
80159
  }
80075
80160
  function formatPools({ pools, nowMs: nowMs2 }) {
@@ -80541,7 +80626,7 @@ var LOGIN_ACTIONS = {
80541
80626
  words: 0,
80542
80627
  run: async (step) => {
80543
80628
  const wanted = flagText({ args: step.args, name: "pool" }).trim();
80544
- const check3 = await step.client.post(
80629
+ const check4 = await step.client.post(
80545
80630
  PATHS.checkLogins,
80546
80631
  wanted ? { poolId: wanted } : {}
80547
80632
  );
@@ -80550,17 +80635,17 @@ var LOGIN_ACTIONS = {
80550
80635
  const pools = await step.client.get(PATHS.pools);
80551
80636
  const pool = poolNamed({ pools: pools.pools, wanted });
80552
80637
  if (step.args.flags.json) {
80553
- return step.context.out(`${JSON.stringify({ ...check3, pool }, null, 2)}
80638
+ return step.context.out(`${JSON.stringify({ ...check4, pool }, null, 2)}
80554
80639
  `);
80555
80640
  }
80556
- return step.context.out(`${formatUsageCheck({ check: check3 })}${formatOnePool({ pool, nowMs: nowMs2 })}`);
80641
+ return step.context.out(`${formatUsageCheck({ check: check4 })}${formatOnePool({ pool, nowMs: nowMs2 })}`);
80557
80642
  }
80558
80643
  const list13 = await step.client.get(PATHS.logins);
80559
80644
  if (step.args.flags.json) {
80560
- return step.context.out(`${JSON.stringify({ ...check3, ...list13 }, null, 2)}
80645
+ return step.context.out(`${JSON.stringify({ ...check4, ...list13 }, null, 2)}
80561
80646
  `);
80562
80647
  }
80563
- step.context.out(`${formatUsageCheck({ check: check3 })}${formatLogins({ list: list13, nowMs: nowMs2 })}`);
80648
+ step.context.out(`${formatUsageCheck({ check: check4 })}${formatLogins({ list: list13, nowMs: nowMs2 })}`);
80564
80649
  }
80565
80650
  },
80566
80651
  history: {
@@ -91705,7 +91790,7 @@ var whatsappObservedPayloadDefinition = external_exports.object({
91705
91790
  // ../../modules/compute/contract/src/whatsapp-out.ts
91706
91791
  var WHATSAPP_OUT_KINDS = ["reply", "edit", "revoke", "react", "agent"];
91707
91792
  var whatsappOutKindSchema = external_exports.enum(WHATSAPP_OUT_KINDS);
91708
- var WHATSAPP_EVIDENCE_KINDS = ["ack", "delivered", "read", "echo"];
91793
+ var WHATSAPP_EVIDENCE_KINDS = ["ack", "delivered", "read", "echo", "found"];
91709
91794
  var whatsappEvidenceKindSchema = external_exports.enum(WHATSAPP_EVIDENCE_KINDS);
91710
91795
  var id2 = external_exports.string().min(1).max(200);
91711
91796
  var at3 = external_exports.iso.datetime();
@@ -91741,7 +91826,13 @@ var whatsappSendEvidencedDefinition = external_exports.object({
91741
91826
  evidence: whatsappEvidenceKindSchema
91742
91827
  });
91743
91828
  var whatsappSendRefusedDefinition = external_exports.object({ ...sendRef, code });
91744
- var whatsappSendUnresolvedDefinition = external_exports.object({ ...sendRef, sendBy: at3 });
91829
+ var check2 = external_exports.number().int().positive().optional();
91830
+ var whatsappSendUnresolvedDefinition = external_exports.object({ ...sendRef, sendBy: at3, check: check2 });
91831
+ var whatsappSendRecheckRequestedDefinition = external_exports.object({
91832
+ ...sendRef,
91833
+ sendBy: at3,
91834
+ asked: external_exports.number().int().nonnegative()
91835
+ });
91745
91836
  var WHATSAPP_SEND_STEPS = [
91746
91837
  "none",
91747
91838
  "queued",
@@ -91759,7 +91850,9 @@ var whatsappSendProcessStateDefinition = external_exports.object({
91759
91850
  step: whatsappSendStepSchema,
91760
91851
  /** Epoch ms of the deadline; null before requested. */
91761
91852
  sendBy: external_exports.number().int().nullable(),
91762
- attempts: external_exports.number().int().nonnegative()
91853
+ attempts: external_exports.number().int().nonnegative(),
91854
+ /** How many checks the owner asked for; absent before the first. */
91855
+ checks: external_exports.number().int().nonnegative().optional()
91763
91856
  });
91764
91857
  var whatsappSendUnresolvedIntentDefinition = external_exports.object({
91765
91858
  workspaceId: external_exports.string(),
@@ -91767,7 +91860,8 @@ var whatsappSendUnresolvedIntentDefinition = external_exports.object({
91767
91860
  sendId: external_exports.string(),
91768
91861
  stream: external_exports.string(),
91769
91862
  sendBy: at3,
91770
- at: at3
91863
+ at: at3,
91864
+ check: check2
91771
91865
  });
91772
91866
 
91773
91867
  // ../../modules/compute/contract/src/whatsapp-outbox.ts
@@ -91951,7 +92045,9 @@ var sendWakeIntentDefinition = external_exports.object({
91951
92045
  machineId: id4,
91952
92046
  sendId: id4,
91953
92047
  /** The send's deadline, epoch ms: the computer is wanted awake until it settles or then. */
91954
- until: ms
92048
+ until: ms,
92049
+ /** The owner's check of an unsure send it is for, counted from 1; none for its first go. */
92050
+ check: external_exports.number().int().positive().optional()
91955
92051
  });
91956
92052
 
91957
92053
  // ../../modules/compute/contract/src/whatsapp-ops.ts
@@ -92042,7 +92138,7 @@ var whatsappSendStreamsDefinition = external_exports.object({
92042
92138
  createdAt: at4,
92043
92139
  /** The stream's events, its last event's kind and time; zero and null for none. */
92044
92140
  events: count10,
92045
- lastEvent: external_exports.enum(["requested", "taken", "evidenced", "refused", "unresolved"]).nullable(),
92141
+ lastEvent: external_exports.enum(["requested", "taken", "evidenced", "refused", "unresolved", "recheck_requested"]).nullable(),
92046
92142
  lastEventAt: at4.nullable(),
92047
92143
  /** The process's step and deadline; null when no process holds the send. */
92048
92144
  step: external_exports.enum(["none", "queued", "taken", "sent", "refused", "unresolved"]).nullable(),
@@ -96197,7 +96293,9 @@ var feedApprovalSchemaDefinition = external_exports.object({
96197
96293
  /** An agent card's exact command, shown as code; null elsewhere. */
96198
96294
  call: external_exports.string().nullable().default(null),
96199
96295
  /** How the card ended, as the owning module words it: "Allowed by Ana". */
96200
- outcome: external_exports.string().nullable().default(null)
96296
+ outcome: external_exports.string().nullable().default(null),
96297
+ /** A joining agent's machine and note, so each reader's app words the card in their language. */
96298
+ origin: external_exports.object({ machine: external_exports.string(), note: external_exports.string() }).nullable().optional()
96201
96299
  });
96202
96300
  var feedApprovalSchema = feedApprovalSchemaDefinition;
96203
96301
  var feedViewerStateSchemaDefinition = external_exports.object({
@@ -96683,6 +96781,8 @@ var feedItemPostedPayloadSchemaDefinition = external_exports.object({
96683
96781
  authorId: external_exports.string(),
96684
96782
  recipientUserIds: external_exports.array(external_exports.string()),
96685
96783
  showAt: external_exports.iso.datetime().nullable(),
96784
+ /** A pending approval's timeout: the card settles as expired then, if no one answered. */
96785
+ approvalExpiresAt: external_exports.iso.datetime().nullable().optional(),
96686
96786
  at: external_exports.iso.datetime()
96687
96787
  });
96688
96788
  var feedItemChangedPayloadSchemaDefinition = external_exports.object({
@@ -96746,7 +96846,9 @@ var feedItemWokePayloadSchemaDefinition = external_exports.object({
96746
96846
  var feedWakeStateSchemaDefinition = external_exports.object({
96747
96847
  workspaceId: external_exports.string(),
96748
96848
  showAt: external_exports.number().nullable(),
96749
- snoozes: external_exports.record(external_exports.string(), external_exports.number())
96849
+ snoozes: external_exports.record(external_exports.string(), external_exports.number()),
96850
+ /** When a pending approval card times out; null once it is answered or ended. */
96851
+ approvalEndsAt: external_exports.number().nullable().default(null)
96750
96852
  });
96751
96853
  var feedWakeIntentSchemaDefinition = external_exports.object({
96752
96854
  workspaceId: external_exports.string().min(1),
@@ -97185,8 +97287,9 @@ async function feedPost({ context, args }) {
97185
97287
  sayLinked({ context, item: posted });
97186
97288
  const base = profile.url;
97187
97289
  if (args.flags.json) return printItem({ context, args, item: posted, base });
97188
- context.out(`${withLink({ text: posted.item.id, url: posted.item.url, base })}
97290
+ context.out(`${posted.item.id}
97189
97291
  `);
97292
+ context.err(linkLineOf({ url: posted.item.url, base }));
97190
97293
  }
97191
97294
  async function feedUpdate({ context, args }) {
97192
97295
  const itemId = args.words[2];
@@ -101529,6 +101632,13 @@ var cohortOutputDefinition = external_exports.object({
101529
101632
  turns: count11,
101530
101633
  appsCreated: count11,
101531
101634
  connectionsLinked: count11,
101635
+ /** Slack channels mirrored, Slack and Discord link and intake events, WhatsApp mirrors on. */
101636
+ messaging: external_exports.object({
101637
+ slackChannels: count11,
101638
+ slackEvents: count11,
101639
+ discordEvents: count11,
101640
+ whatsappMirrors: count11
101641
+ }),
101532
101642
  creatorLastMessageAt: external_exports.iso.datetime().nullable(),
101533
101643
  /** Live messages per UTC day; days with none are left out. */
101534
101644
  days: external_exports.array(
@@ -101847,6 +101957,17 @@ var keyFetchesOutputDefinition = external_exports.object({
101847
101957
  starts: vaultKeyFetchesSchema.shape.starts,
101848
101958
  hours: pageOf(vaultKeyFetchesSchema.shape.hours.element)
101849
101959
  });
101960
+ var contentBreakerInputDefinition = external_exports.object({
101961
+ days: external_exports.number().int().min(1).max(VAULT_CONTENT_BREAKER_MAX_DAYS).default(14),
101962
+ limit: external_exports.number().int().min(1).max(500).default(200),
101963
+ cursor: cursorDefinition.optional()
101964
+ }).strict();
101965
+ var contentBreakerOutputDefinition = external_exports.object({
101966
+ arming: vaultContentBreakerSchema.shape.arming,
101967
+ ceilings: vaultContentBreakerSchema.shape.ceilings,
101968
+ upkeepCeilings: vaultContentBreakerSchema.shape.upkeepCeilings,
101969
+ rows: pageOf(vaultContentBreakerSchema.shape.rows.element)
101970
+ });
101850
101971
  var judgeMeasureInputDefinition = external_exports.object({
101851
101972
  from: external_exports.iso.datetime(),
101852
101973
  to: external_exports.iso.datetime(),
@@ -102069,6 +102190,13 @@ var OPS_FUNCTIONS = {
102069
102190
  input: keyFetchesInputDefinition,
102070
102191
  output: keyFetchesOutputDefinition
102071
102192
  }),
102193
+ "vault.content_breaker": entry({
102194
+ title: "The content breaker's 14-day replay: per day and workspace the opens it counts, mirror upkeep, minute and hour peaks, and whether it would have locked, plus the arming record",
102195
+ scope: "platform",
102196
+ view: "table",
102197
+ input: contentBreakerInputDefinition,
102198
+ output: contentBreakerOutputDefinition
102199
+ }),
102072
102200
  "vault.judge_measure": entry({
102073
102201
  title: "The vault judge's verdicts against people's answers, with false allows and blocks",
102074
102202
  scope: "platform",
@@ -102579,8 +102707,8 @@ function printSchedule({
102579
102707
  const next = schedule2.nextFireAt ? `next ${schedule2.nextFireAt}` : "no next fire";
102580
102708
  const stats = schedule2.checkStats;
102581
102709
  const counts = stats ? ` (7 days: ${stats.checked} checks, ${stats.woke} woke, ${stats.failed} failed)` : "";
102582
- const check3 = schedule2.checkScript ? ` check ${schedule2.checkScript}${counts}` : "";
102583
- const text3 = `${schedule2.id} ${schedule2.status} ${schedule2.name} ${schedule2.source} (${schedule2.timezone}) ${next}${check3}`;
102710
+ const check4 = schedule2.checkScript ? ` check ${schedule2.checkScript}${counts}` : "";
102711
+ const text3 = `${schedule2.id} ${schedule2.status} ${schedule2.name} ${schedule2.source} (${schedule2.timezone}) ${next}${check4}`;
102584
102712
  context.out(`${withLink({ text: text3, url: schedule2.url, base })}
102585
102713
  `);
102586
102714
  }
@@ -102621,8 +102749,8 @@ function changesOf2(args) {
102621
102749
  }
102622
102750
  const channel = flagText({ args, name: "channel" });
102623
102751
  if (channel) changes2.channelId = channel === "none" ? null : channel;
102624
- const check3 = flagText({ args, name: "check" });
102625
- if (check3) changes2.checkScript = check3 === "none" ? null : check3;
102752
+ const check4 = flagText({ args, name: "check" });
102753
+ if (check4) changes2.checkScript = check4 === "none" ? null : check4;
102626
102754
  return changes2;
102627
102755
  }
102628
102756
  async function scheduleUpdate({ context, args }) {
@@ -104986,7 +105114,7 @@ var connect7 = async ({ context, args, client }) => {
104986
105114
  });
104987
105115
  if (!json6({ context, args, data: webhook })) printWebhook({ context, webhook });
104988
105116
  };
104989
- var check2 = async ({ context, args, client }) => {
105117
+ var check3 = async ({ context, args, client }) => {
104990
105118
  const answer6 = await client.post(WHATSAPP_BUSINESS_REST_PATHS.check, {});
104991
105119
  if (!json6({ context, args, data: answer6 })) printStatus2({ context, status: answer6 });
104992
105120
  return answer6.state === "connected" ? 0 : 1;
@@ -105029,7 +105157,7 @@ var RUNS7 = {
105029
105157
  templates,
105030
105158
  prices,
105031
105159
  connect: connect7,
105032
- check: check2,
105160
+ check: check3,
105033
105161
  "verify-token": verifyToken,
105034
105162
  settings: settings2,
105035
105163
  disconnect: disconnect5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "description": "The Laze command line: sign in, read and post in chat, and connect your own Claude Code or Codex session as an agent.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",