@lazehq/cli 0.1.104 → 0.1.105

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 +299 -113
  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.104";
36963
+ var STAMPED = "0.1.105";
36964
36964
  function cliVersionOf({ stamped = STAMPED } = {}) {
36965
36965
  return stamped.startsWith("__") ? "dev" : stamped;
36966
36966
  }
@@ -37414,7 +37414,8 @@ var SWITCHES = /* @__PURE__ */ new Set([
37414
37414
  "self",
37415
37415
  "all",
37416
37416
  "resend",
37417
- "replace"
37417
+ "replace",
37418
+ "ask"
37418
37419
  ]);
37419
37420
  function parseArgs({ argv }) {
37420
37421
  const words = [];
@@ -64844,6 +64845,40 @@ var emailMessageSchemaDefinition = external_exports.discriminatedUnion("template
64844
64845
  }),
64845
64846
  unsubscribeUrl: external_exports.url()
64846
64847
  }),
64848
+ /**
64849
+ * Optional lifecycle mail written as a short letter: a picture, an optional greeting, lines, a
64850
+ * numbered list of steps (each a linked title with plain words after it), closing lines and a
64851
+ * sign-off. Sent only where `optionalEmailReach` allows, with its off link.
64852
+ */
64853
+ external_exports.object({
64854
+ template: external_exports.literal("starters"),
64855
+ to: external_exports.email(),
64856
+ locale: localeSchema,
64857
+ /** Where the email as a whole opens: its first step. */
64858
+ url: external_exports.url(),
64859
+ subject: external_exports.string().min(1).max(200),
64860
+ greeting: external_exports.string().min(1).max(200).optional(),
64861
+ lines: external_exports.array(external_exports.string().min(1).max(600)).min(1).max(4),
64862
+ steps: external_exports.array(
64863
+ external_exports.object({
64864
+ label: external_exports.string().min(1).max(120),
64865
+ url: external_exports.url(),
64866
+ /** Plain words after the linked title, joined with a colon. */
64867
+ rest: external_exports.string().min(1).max(300).optional()
64868
+ })
64869
+ ).min(1).max(5),
64870
+ closing: external_exports.array(external_exports.string().min(1).max(600)).max(3),
64871
+ signOff: external_exports.string().min(1).max(80),
64872
+ image: external_exports.object({
64873
+ url: external_exports.url(),
64874
+ alt: external_exports.string().max(200),
64875
+ width: external_exports.number().int().positive().max(600),
64876
+ height: external_exports.number().int().positive().max(600)
64877
+ }),
64878
+ /** Where the picture sits: over the words (default) or under the sign-off. */
64879
+ imageAt: external_exports.enum(["top", "bottom"]).optional(),
64880
+ unsubscribeUrl: external_exports.url()
64881
+ }),
64847
64882
  /** A Laze app a person waited for is out; `url` is its store page. */
64848
64883
  external_exports.object({
64849
64884
  template: external_exports.literal("appAvailable"),
@@ -65368,6 +65403,24 @@ var feedDigestIntentSchemaDefinition = external_exports.object({
65368
65403
  userId: external_exports.string().min(1),
65369
65404
  at: external_exports.iso.datetime()
65370
65405
  });
65406
+ var emailDeliveryStateSchema = external_exports.enum([
65407
+ "accepted",
65408
+ "deferred",
65409
+ "delivered",
65410
+ "bounced",
65411
+ "complained",
65412
+ "dropped"
65413
+ ]);
65414
+ var emailDeliveryChangedPayloadSchemaDefinition = external_exports.object({
65415
+ deliveryId: external_exports.string().min(1),
65416
+ template: external_exports.string().min(1),
65417
+ state: emailDeliveryStateSchema,
65418
+ /** Null for a row the backfill created. */
65419
+ previousState: emailDeliveryStateSchema.nullable(),
65420
+ flags: external_exports.array(external_exports.string().min(1)),
65421
+ sentAt: external_exports.iso.datetime(),
65422
+ at: external_exports.iso.datetime()
65423
+ });
65371
65424
 
65372
65425
  // ../../modules/notification/contract/src/notification.ui.ts
65373
65426
  var notificationUi = uiTokens("notification");
@@ -65780,6 +65833,21 @@ var shareAgentInputSchemaDefinition = external_exports.object({
65780
65833
  grantee: agentGranteeSchemaDefinition
65781
65834
  });
65782
65835
  var shareAgentInputSchema = shareAgentInputSchemaDefinition;
65836
+ var askedGranteeSchemaDefinition = external_exports.object({
65837
+ grantee: agentGranteeSchemaDefinition,
65838
+ label: external_exports.string()
65839
+ });
65840
+ var agentShareRequestSchemaDefinition = external_exports.object({
65841
+ id: idSchema5,
65842
+ requesterUserId: idSchema5,
65843
+ requesterName: external_exports.string(),
65844
+ grantees: external_exports.array(askedGranteeSchemaDefinition),
65845
+ /** Who may approve it: its owner, and for a team agent Laze runs, the workspace admins. */
65846
+ deciderIds: external_exports.array(idSchema5),
65847
+ deciderNames: external_exports.array(external_exports.string()),
65848
+ askedAt: external_exports.iso.datetime(),
65849
+ expiresAt: external_exports.iso.datetime()
65850
+ });
65783
65851
  var agentLinkSchema = external_exports.object({
65784
65852
  agentId: idSchema5,
65785
65853
  name: external_exports.string(),
@@ -65811,7 +65879,11 @@ var agentAccessSchemaDefinition = external_exports.object({
65811
65879
  /** The agents it was added to, which it may DM; its owner takes it off any of them. */
65812
65880
  addedTo: external_exports.array(agentLinkSchema).optional(),
65813
65881
  /** Whether the reader may share it and take shares back. */
65814
- mayShare: external_exports.boolean()
65882
+ mayShare: external_exports.boolean(),
65883
+ /** A reader who talks to it but may not share it asks its deciders to add someone. */
65884
+ mayAsk: external_exports.boolean().optional(),
65885
+ /** Waiting requests: the reader's own, or every one for a reader who decides them. */
65886
+ shareRequests: external_exports.array(agentShareRequestSchemaDefinition).optional()
65815
65887
  });
65816
65888
  var agentAccessSchema = agentAccessSchemaDefinition;
65817
65889
 
@@ -69483,9 +69555,60 @@ var setRunsOnAsCallerInputSchema = setRunsOnInputSchemaDefinition.omit({
69483
69555
  workspaceId: true
69484
69556
  });
69485
69557
 
69558
+ // ../../modules/agent/contract/src/agent-share-request.ts
69559
+ var idSchema15 = external_exports.string().min(1).max(80);
69560
+ var AGENT_SHARE_REQUEST_MAX_GRANTEES = 20;
69561
+ var askAgentShareInputSchemaDefinition = external_exports.object({
69562
+ workspaceId: external_exports.string().min(1),
69563
+ agentId: idSchema15,
69564
+ grantees: external_exports.array(agentGranteeSchema).min(1).max(AGENT_SHARE_REQUEST_MAX_GRANTEES)
69565
+ });
69566
+ var askAgentShareInputSchema = askAgentShareInputSchemaDefinition;
69567
+ var decideAgentShareRequestInputSchemaDefinition = external_exports.object({
69568
+ workspaceId: external_exports.string().min(1),
69569
+ requestId: idSchema15,
69570
+ decision: external_exports.enum(["approved", "denied"])
69571
+ });
69572
+ var askAgentShareAsCallerInputSchemaDefinition = external_exports.object({
69573
+ agent: external_exports.string().trim().min(1).max(80),
69574
+ grantees: external_exports.array(agentGranteeSchema).min(1).max(AGENT_SHARE_REQUEST_MAX_GRANTEES)
69575
+ });
69576
+ var agentShareDecisionSchemaDefinition = external_exports.object({
69577
+ state: external_exports.enum(["approved", "denied"]),
69578
+ added: external_exports.array(external_exports.string()),
69579
+ skipped: external_exports.array(external_exports.string())
69580
+ });
69581
+ var agentShareRequestedPayloadSchemaDefinition = external_exports.object({
69582
+ workspaceId: external_exports.string().min(1),
69583
+ requestId: external_exports.string().min(1),
69584
+ agentId: external_exports.string().min(1),
69585
+ agentName: external_exports.string(),
69586
+ requesterUserId: external_exports.string().min(1),
69587
+ requesterName: external_exports.string(),
69588
+ /** The requester's agent whose key asked for them; empty when they asked themselves. */
69589
+ viaAgentName: external_exports.string().default(""),
69590
+ grantees: external_exports.array(external_exports.string()),
69591
+ deciderIds: external_exports.array(external_exports.string().min(1)),
69592
+ expiresAt: external_exports.iso.datetime()
69593
+ });
69594
+ var agentShareResolvedPayloadSchemaDefinition = external_exports.object({
69595
+ workspaceId: external_exports.string().min(1),
69596
+ requestId: external_exports.string().min(1),
69597
+ agentId: external_exports.string().min(1),
69598
+ agentName: external_exports.string(),
69599
+ requesterUserId: external_exports.string().min(1),
69600
+ state: external_exports.enum(["approved", "denied", "expired"]),
69601
+ /** The decider; null when it expired. */
69602
+ resolvedByUserId: external_exports.string().min(1).nullable(),
69603
+ resolvedByName: external_exports.string(),
69604
+ asked: external_exports.array(external_exports.string()),
69605
+ added: external_exports.array(external_exports.string()),
69606
+ skipped: external_exports.array(external_exports.string())
69607
+ });
69608
+
69486
69609
  // ../../modules/agent/contract/src/agent-transfer.ts
69487
69610
  var workspaceIdSchema12 = external_exports.string().min(1);
69488
- var idSchema15 = external_exports.string().min(1).max(200);
69611
+ var idSchema16 = external_exports.string().min(1).max(200);
69489
69612
  var agentRefSchema7 = external_exports.string().trim().min(1).max(80);
69490
69613
  var agentTransferOfferSchemaDefinition = external_exports.object({
69491
69614
  id: external_exports.string().min(1),
@@ -69502,7 +69625,7 @@ var agentTransferOfferSchemaDefinition = external_exports.object({
69502
69625
  var agentTransferOfferSchema = agentTransferOfferSchemaDefinition;
69503
69626
  var agentTransferInputSchemaDefinition = external_exports.object({
69504
69627
  workspaceId: workspaceIdSchema12,
69505
- agentId: idSchema15
69628
+ agentId: idSchema16
69506
69629
  });
69507
69630
  var agentTransferInputSchema = agentTransferInputSchemaDefinition;
69508
69631
  var agentTransferAsCallerInputSchemaDefinition = external_exports.object({ agent: agentRefSchema7 });
@@ -69562,18 +69685,18 @@ var agentWorkingSchema = agentWorkingSchemaDefinition;
69562
69685
 
69563
69686
  // ../../modules/agent/contract/src/agent-workspace-default.ts
69564
69687
  var workspaceIdSchema13 = external_exports.string().min(1);
69565
- var idSchema16 = external_exports.string().min(1).max(200);
69688
+ var idSchema17 = external_exports.string().min(1).max(200);
69566
69689
  var agentRefSchema8 = external_exports.string().trim().min(1).max(80);
69567
69690
  var workspaceDefaultAgentSchemaDefinition = external_exports.object({
69568
69691
  /** Null when the workspace has none, or its pick was removed. */
69569
- agentId: idSchema16.nullable(),
69692
+ agentId: idSchema17.nullable(),
69570
69693
  name: external_exports.string().nullable()
69571
69694
  });
69572
69695
  var workspaceDefaultAgentSchema = workspaceDefaultAgentSchemaDefinition;
69573
69696
  var setWorkspaceDefaultAgentInputSchemaDefinition = external_exports.object({
69574
69697
  workspaceId: workspaceIdSchema13,
69575
69698
  /** A team agent of the workspace; null clears the pick. */
69576
- agentId: idSchema16.nullable()
69699
+ agentId: idSchema17.nullable()
69577
69700
  });
69578
69701
  var setWorkspaceDefaultAgentInputSchema = setWorkspaceDefaultAgentInputSchemaDefinition;
69579
69702
  var setWorkspaceDefaultAgentAsCallerInputSchemaDefinition = external_exports.object({
@@ -69587,7 +69710,7 @@ var AGENT_JOIN_REQUEST_TTL_SECONDS = 24 * 60 * 60;
69587
69710
  var AGENT_ONLINE_WINDOW_SECONDS = 2 * 60;
69588
69711
  var INBOX_WAIT_MAX_SECONDS = 55;
69589
69712
  var workspaceIdSchema14 = external_exports.string().min(1);
69590
- var idSchema17 = external_exports.string().min(1).max(80);
69713
+ var idSchema18 = external_exports.string().min(1).max(80);
69591
69714
  var agentHarnessSchema = external_exports.enum([
69592
69715
  "claude-code",
69593
69716
  "codex",
@@ -69635,17 +69758,17 @@ var agentContextSchemaDefinition = external_exports.object({
69635
69758
  updatedAt: external_exports.iso.datetime().nullable()
69636
69759
  });
69637
69760
  var agentHostSchemaDefinition = external_exports.object({
69638
- machineId: idSchema17,
69761
+ machineId: idSchema18,
69639
69762
  whenOffline: external_exports.enum(["wait", "sandbox"])
69640
69763
  });
69641
69764
  var setAgentHostInputSchemaDefinition = external_exports.object({
69642
69765
  workspaceId: workspaceIdSchema14,
69643
- agentId: idSchema17,
69766
+ agentId: idSchema18,
69644
69767
  host: agentHostSchemaDefinition.nullable()
69645
69768
  });
69646
69769
  var setAgentComputerKeyInputSchemaDefinition = external_exports.object({
69647
69770
  workspaceId: workspaceIdSchema14,
69648
- agentId: idSchema17,
69771
+ agentId: idSchema18,
69649
69772
  computerKey: external_exports.string().min(1).max(200).nullable()
69650
69773
  });
69651
69774
  var agentSetupStateSchemaDefinition = external_exports.enum(["setting_up", "ready", "failed"]);
@@ -69657,13 +69780,13 @@ var agentSetupReadingSchemaDefinition = external_exports.object({
69657
69780
  });
69658
69781
  var agentSetupReadingSchema = agentSetupReadingSchemaDefinition;
69659
69782
  var agentSchemaDefinition = external_exports.object({
69660
- id: idSchema17,
69783
+ id: idSchema18,
69661
69784
  workspaceId: workspaceIdSchema14,
69662
69785
  name: external_exports.string(),
69663
69786
  kind: external_exports.enum(["personal", "team"]),
69664
69787
  hosting: agentHostingSchema,
69665
69788
  harness: agentHarnessSchema,
69666
- ownerUserId: idSchema17,
69789
+ ownerUserId: idSchema18,
69667
69790
  status: external_exports.enum(["connected", "disconnected"]),
69668
69791
  online: external_exports.boolean(),
69669
69792
  lastSeenAt: external_exports.iso.datetime().nullable(),
@@ -69716,7 +69839,7 @@ var agentSchemaDefinition = external_exports.object({
69716
69839
  });
69717
69840
  var agentSchema = agentSchemaDefinition;
69718
69841
  var agentChannelSchemaDefinition = external_exports.object({
69719
- id: idSchema17,
69842
+ id: idSchema18,
69720
69843
  name: external_exports.string(),
69721
69844
  kind: external_exports.enum(["public", "private", "dm", "group", "chat"])
69722
69845
  });
@@ -69738,7 +69861,7 @@ var createAgentInputSchemaDefinition = external_exports.object({
69738
69861
  modelLevel: agentModelLevelSchema.optional(),
69739
69862
  kind: external_exports.enum(["personal", "team"]).default("personal"),
69740
69863
  instructions: instructionsSchema.default(""),
69741
- channelIds: external_exports.array(idSchema17).max(50).default([]),
69864
+ channelIds: external_exports.array(idSchema18).max(50).default([]),
69742
69865
  /** A Claude Code or Codex agent drawing from this login pool; a team one needs a pool. */
69743
69866
  /** The pool's id or name. */
69744
69867
  loginPoolId: external_exports.string().min(1).max(200).optional()
@@ -69751,7 +69874,7 @@ var createSupportAgentInputSchemaDefinition = external_exports.object({
69751
69874
  });
69752
69875
  var updateAgentInputSchemaDefinition = external_exports.object({
69753
69876
  workspaceId: workspaceIdSchema14,
69754
- agentId: idSchema17,
69877
+ agentId: idSchema18,
69755
69878
  name: agentNameSchema.optional(),
69756
69879
  avatar: agentAvatarInputSchema.optional(),
69757
69880
  /** A Laze models agent's level; null puts it back on Default. */
@@ -69764,7 +69887,7 @@ var updateAgentInputSchemaDefinition = external_exports.object({
69764
69887
  effort: runEffortInputSchema.optional(),
69765
69888
  instructions: instructionsSchema.optional(),
69766
69889
  /** The whole set: channels left out are left. */
69767
- channelIds: external_exports.array(idSchema17).max(50).optional(),
69890
+ channelIds: external_exports.array(idSchema18).max(50).optional(),
69768
69891
  /** Agents Laze runs only: paused, it does not wake until resumed and its messages wait. */
69769
69892
  paused: external_exports.boolean().optional(),
69770
69893
  /** Why it is paused, shown on the agents page and in the notice under held messages. */
@@ -69795,9 +69918,9 @@ var mintLinkInputSchemaDefinition = external_exports.object({
69795
69918
  /** Left out, the agent names itself when it joins, else it takes its harness's name. */
69796
69919
  name: external_exports.string().trim().max(80).optional(),
69797
69920
  /** The channel the agent joins once linked. */
69798
- channelId: idSchema17.optional(),
69921
+ channelId: idSchema18.optional(),
69799
69922
  /** One of the minting person's connected agents: redeeming gives it a new key instead. */
69800
- reconnectAgentId: idSchema17.optional()
69923
+ reconnectAgentId: idSchema18.optional()
69801
69924
  });
69802
69925
  var mintLinkInputSchema = mintLinkInputSchemaDefinition;
69803
69926
  var mintedLinkSchemaDefinition = external_exports.object({
@@ -69829,7 +69952,7 @@ var redeemedLinkSchemaDefinition = external_exports.object({
69829
69952
  agent: agentSchemaDefinition,
69830
69953
  /** The agent's own `lz_` key, shown once. */
69831
69954
  apiKey: external_exports.string(),
69832
- channelId: idSchema17.nullable(),
69955
+ channelId: idSchema18.nullable(),
69833
69956
  /** The owner's key that may only ask for a new agent (`laze agent request`), shown once. */
69834
69957
  requestKey: external_exports.string().nullable().optional()
69835
69958
  });
@@ -69894,12 +70017,12 @@ var inboxCatchUpSchemaDefinition = external_exports.object({
69894
70017
  });
69895
70018
  var inboxCatchUpSchema = inboxCatchUpSchemaDefinition;
69896
70019
  var inboxMessageSchemaDefinition = external_exports.object({
69897
- messageId: idSchema17,
69898
- channelId: idSchema17,
70020
+ messageId: idSchema18,
70021
+ channelId: idSchema18,
69899
70022
  channelName: external_exports.string(),
69900
70023
  channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
69901
- threadRootId: idSchema17.nullable(),
69902
- author: external_exports.object({ kind: external_exports.enum(["person", "agent"]), id: idSchema17, name: external_exports.string() }),
70024
+ threadRootId: idSchema18.nullable(),
70025
+ author: external_exports.object({ kind: external_exports.enum(["person", "agent"]), id: idSchema18, name: external_exports.string() }),
69903
70026
  body: external_exports.string(),
69904
70027
  postedAt: external_exports.iso.datetime(),
69905
70028
  /** On the first message of each conversation in a catch up (agent-catch-up.feature). */
@@ -69920,18 +70043,18 @@ var inboxWaitingSchemaDefinition = external_exports.object({
69920
70043
  session: agentSessionSchemaDefinition.nullable()
69921
70044
  });
69922
70045
  var inboxPreviewSchemaDefinition = external_exports.object({
69923
- messageId: idSchema17,
69924
- channelId: idSchema17,
70046
+ messageId: idSchema18,
70047
+ channelId: idSchema18,
69925
70048
  channelName: external_exports.string(),
69926
70049
  channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
69927
- author: external_exports.object({ kind: external_exports.enum(["person", "agent"]), id: idSchema17, name: external_exports.string() }),
70050
+ author: external_exports.object({ kind: external_exports.enum(["person", "agent"]), id: idSchema18, name: external_exports.string() }),
69928
70051
  /** At most 200 characters of the message. */
69929
70052
  preview: external_exports.string().max(200),
69930
70053
  postedAt: external_exports.iso.datetime()
69931
70054
  });
69932
70055
  var callerSchemaDefinition = external_exports.object({
69933
70056
  kind: external_exports.enum(["person", "agent"]),
69934
- id: idSchema17,
70057
+ id: idSchema18,
69935
70058
  name: external_exports.string(),
69936
70059
  workspaceId: workspaceIdSchema14,
69937
70060
  agent: agentSchemaDefinition.nullable(),
@@ -69951,7 +70074,7 @@ var agentGuideFilesSchemaDefinition = external_exports.object({
69951
70074
  });
69952
70075
  var agentChannelLevelSchema = external_exports.enum(["everything", "mentions"]);
69953
70076
  var callerChannelSchemaDefinition = external_exports.object({
69954
- id: idSchema17,
70077
+ id: idSchema18,
69955
70078
  name: external_exports.string(),
69956
70079
  kind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
69957
70080
  unread: external_exports.number().int().nonnegative(),
@@ -69966,8 +70089,8 @@ var callerChannelSchemaDefinition = external_exports.object({
69966
70089
  });
69967
70090
  var setChannelLevelInputSchemaDefinition = external_exports.object({
69968
70091
  workspaceId: workspaceIdSchema14,
69969
- agentId: idSchema17,
69970
- channelId: idSchema17,
70092
+ agentId: idSchema18,
70093
+ channelId: idSchema18,
69971
70094
  level: agentChannelLevelSchema
69972
70095
  });
69973
70096
  var setChannelLevelInputSchema = setChannelLevelInputSchemaDefinition;
@@ -69990,14 +70113,14 @@ var postAsCallerInputSchemaDefinition = external_exports.object({
69990
70113
  /** A channel's name (with or without `#`) or id. */
69991
70114
  channel: external_exports.string().trim().min(1).max(81),
69992
70115
  body: external_exports.string().trim().min(1).max(4e4),
69993
- threadRootId: idSchema17.optional(),
70116
+ threadRootId: idSchema18.optional(),
69994
70117
  /** Files the caller uploaded to this conversation, carried as the composer's attachments are. */
69995
- attachmentIds: external_exports.array(idSchema17).max(10).optional(),
70118
+ attachmentIds: external_exports.array(idSchema18).max(10).optional(),
69996
70119
  /** The messages of the agent's turn this post answers. */
69997
- answers: external_exports.array(idSchema17).max(200).optional()
70120
+ answers: external_exports.array(idSchema18).max(200).optional()
69998
70121
  });
69999
70122
  var replyAsCallerInputSchemaDefinition = external_exports.object({
70000
- messageId: idSchema17,
70123
+ messageId: idSchema18,
70001
70124
  body: external_exports.string().trim().min(1).max(4e4),
70002
70125
  /** Needed for a message that is not in the caller's inbox. */
70003
70126
  channel: external_exports.string().trim().min(1).max(81).optional(),
@@ -70006,20 +70129,20 @@ var replyAsCallerInputSchemaDefinition = external_exports.object({
70006
70129
  /** A thread reply also shows in the channel, as "Also send to #channel" does. */
70007
70130
  alsoInChannel: external_exports.boolean().optional(),
70008
70131
  /** Files the caller uploaded to the reply's conversation, carried as the composer's are. */
70009
- attachmentIds: external_exports.array(idSchema17).max(10).optional(),
70132
+ attachmentIds: external_exports.array(idSchema18).max(10).optional(),
70010
70133
  /** The other messages of the agent's turn this reply answers. */
70011
- answers: external_exports.array(idSchema17).max(200).optional()
70134
+ answers: external_exports.array(idSchema18).max(200).optional()
70012
70135
  });
70013
70136
  var postedMessageSchemaDefinition = external_exports.object({
70014
- messageId: idSchema17,
70015
- channelId: idSchema17,
70016
- threadRootId: idSchema17.nullable(),
70137
+ messageId: idSchema18,
70138
+ channelId: idSchema18,
70139
+ threadRootId: idSchema18.nullable(),
70017
70140
  /** Workspace members the message mentioned who are not in the channel: it did not reach them. */
70018
70141
  notInChannel: external_exports.array(external_exports.object({ ...notInChannelSchema.shape, name: external_exports.string() })).default([]),
70019
70142
  /** Mentioned agents that are paused or out of usage: the message waits for each of them. */
70020
70143
  waitsFor: external_exports.array(
70021
70144
  external_exports.object({
70022
- agentId: idSchema17,
70145
+ agentId: idSchema18,
70023
70146
  name: external_exports.string(),
70024
70147
  cause: external_exports.enum(["paused", "out_of_usage"]),
70025
70148
  /** When an agent out of usage gets its usage back; null while paused. */
@@ -70036,15 +70159,15 @@ var searchAsCallerInputSchemaDefinition = external_exports.object({
70036
70159
  });
70037
70160
  var callerActorNameSchema = external_exports.object({
70038
70161
  kind: external_exports.enum(["person", "agent"]),
70039
- id: idSchema17,
70162
+ id: idSchema18,
70040
70163
  name: external_exports.string()
70041
70164
  });
70042
70165
  var callerSearchHitSchemaDefinition = external_exports.object({
70043
- messageId: idSchema17,
70044
- channelId: idSchema17,
70166
+ messageId: idSchema18,
70167
+ channelId: idSchema18,
70045
70168
  channelName: external_exports.string(),
70046
70169
  channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
70047
- threadRootId: idSchema17.nullable(),
70170
+ threadRootId: idSchema18.nullable(),
70048
70171
  seq: external_exports.number().int().positive(),
70049
70172
  /** `external` for a mirrored message from someone outside Laze. */
70050
70173
  author: external_exports.object({
@@ -70066,7 +70189,7 @@ var callerSearchResultSchemaDefinition = external_exports.object({
70066
70189
  /** Names for the mention tokens in the bodies. */
70067
70190
  mentions: external_exports.object({
70068
70191
  actors: external_exports.array(callerActorNameSchema),
70069
- channels: external_exports.array(external_exports.object({ id: idSchema17, name: external_exports.string() }))
70192
+ channels: external_exports.array(external_exports.object({ id: idSchema18, name: external_exports.string() }))
70070
70193
  })
70071
70194
  });
70072
70195
  var agentMachineInputSchemaDefinition = external_exports.object({ host: external_exports.string().trim().min(1).max(200) });
@@ -70149,27 +70272,29 @@ var agentsCopy = {
70149
70272
  paintOnly: true,
70150
70273
  storable: agentsForDisk
70151
70274
  };
70152
- 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: idSchema17 })).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: idSchema17 })).withOutput(agentAccessSchema).query("loginActivity").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).withOutput(loginActivitySchema).mutation("raiseBudget").withInput(raiseBudgetInputSchema).withOutput(external_exports.object({ limitUsd: external_exports.number() })).query("permissionPrompts").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).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: idSchema17 })).withOutput(external_exports.object({ channelId: idSchema17 })).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: idSchema17 })).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).mutation("setGithub").withInput(setAgentGithubInputSchema).withOutput(agentSchema).query("githubWatches").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).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();
70275
+ 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: idSchema18 })).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: idSchema18 })).withOutput(agentAccessSchema).query("loginActivity").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18 })).withOutput(loginActivitySchema).mutation("raiseBudget").withInput(raiseBudgetInputSchema).withOutput(external_exports.object({ limitUsd: external_exports.number() })).query("permissionPrompts").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18 })).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: idSchema18 })).withOutput(external_exports.object({ channelId: idSchema18 })).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: idSchema18 })).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).mutation("setGithub").withInput(setAgentGithubInputSchema).withOutput(agentSchema).query("githubWatches").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18 })).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();
70153
70276
  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();
70154
- var agentChannelSettingsTrpc = defineTrpcContract("agents").query("monitors").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).withOutput(external_exports.array(agentMonitorSchema)).query("channelLevel").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17, channelId: idSchema17 })).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();
70277
+ var agentChannelSettingsTrpc = defineTrpcContract("agents").query("monitors").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18 })).withOutput(external_exports.array(agentMonitorSchema)).query("channelLevel").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18, channelId: idSchema18 })).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();
70155
70278
  var agentJoinTrpc = defineTrpcContract("agents").query("joinRequest").withInput(joinRequestInputSchema).withOutput(joinRequestViewSchema).mutation("approveJoinRequest").withInput(approveJoinRequestInputSchema).withOutput(joinRequestViewSchema).mutation("denyJoinRequest").withInput(joinRequestInputSchema).withOutput(joinRequestViewSchema).build();
70156
70279
  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();
70157
70280
  var agentWorkspaceDefaultTrpc = defineTrpcContract("agents").query("workspaceDefault").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(workspaceDefaultAgentSchema).mutation("setWorkspaceDefault").withInput(setWorkspaceDefaultAgentInputSchema).withOutput(workspaceDefaultAgentSchema).build();
70158
- var agentRuntimeChoiceTrpc = defineTrpcContract("agents").query("setup").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).withOutput(agentSetupReadingSchema).mutation("retrySetup").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).withOutput(agentSchema).query("lastRuntime").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(lastRuntimeSchema).build();
70281
+ var agentRuntimeChoiceTrpc = defineTrpcContract("agents").query("setup").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18 })).withOutput(agentSetupReadingSchema).mutation("retrySetup").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18 })).withOutput(agentSchema).query("lastRuntime").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(lastRuntimeSchema).build();
70159
70282
  var agentArchiveTrpc = defineTrpcContract("agents").query("archived").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(archivedAgentSchema)).mutation("restore").withInput(restoreAgentInputSchema).withOutput(agentSchema).mutation("copy").withInput(copyAgentInputSchema).withOutput(agentSchema).mutation("deleteArchived").withInput(restoreAgentInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).query("transferOffers").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentTransferOfferSchema)).mutation("acceptTransfer").withInput(agentTransferInputSchema).withOutput(agentSchema).mutation("declineTransfer").withInput(agentTransferInputSchema).withOutput(external_exports.object({ declined: external_exports.literal(true) })).mutation("cancelTransfer").withInput(agentTransferInputSchema).withOutput(external_exports.object({ cancelled: external_exports.literal(true) })).build();
70160
70283
  var agentLangwatchTrpc = defineTrpcContract("agents").query("langwatchTracing").withInput(agentLangwatchInputSchema).withOutput(agentLangwatchTracingSchema).mutation("setLangwatchTracing").withInput(setAgentLangwatchInputSchema).withOutput(agentLangwatchTracingSchema).build();
70161
70284
  var agentPoolModelTrpc = defineTrpcContract("agents").mutation("setLoginPoolModel").withInput(setLoginPoolModelInputSchema).withOutput(loginPoolsSchema).build();
70162
70285
  var agentRunsOnTrpc = defineTrpcContract("agents").mutation("setRunsOn").withInput(setRunsOnInputSchema).withOutput(agentSchema).build();
70163
70286
  var agentWelcomeTrpc = defineTrpcContract("agents").mutation("pressWelcome").withInput(pressWelcomeInputSchema).withOutput(pressedWelcomeSchema).mutation("pressCollab").withInput(pressCollabInputSchema).withOutput(pressedCollabSchema).build();
70164
70287
  var agentPoolGroupTrpc = defineTrpcContract("agents").mutation("addPoolGroup").withInput(poolGroupInputSchema).withOutput(loginPoolsSchema).mutation("removePoolGroup").withInput(poolGroupInputSchema).withOutput(loginPoolsSchema).build();
70165
- var agentOpenConversationTrpc = defineTrpcContract("agents").mutation("openConversation").withInput(openConversationInputSchema).withOutput(external_exports.object({ channelId: idSchema17 })).build();
70288
+ var agentOpenConversationTrpc = defineTrpcContract("agents").mutation("openConversation").withInput(openConversationInputSchema).withOutput(external_exports.object({ channelId: idSchema18 })).build();
70166
70289
  var agentConversationCloseTrpc = defineTrpcContract("agents").mutation("closeConversation").withInput(conversationInputSchema).withOutput(conversationSummarySchema2).mutation("reopenConversation").withInput(conversationInputSchema).withOutput(conversationSummarySchema2).mutation("convertConversation").withInput(convertConversationInputSchema).withOutput(convertedConversationSchema).build();
70167
- var agentReconnectTrpc = defineTrpcContract("agents").query("reconnect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).withOutput(agentReconnectSchema).build();
70290
+ var agentShareRequestTrpc = defineTrpcContract("agents").mutation("askShare").withInput(askAgentShareInputSchema).withOutput(agentAccessSchema).build();
70291
+ var agentReconnectTrpc = defineTrpcContract("agents").query("reconnect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18 })).withOutput(agentReconnectSchema).build();
70168
70292
  var agentTrpc = joinTrpcContracts(
70169
70293
  "agents",
70170
70294
  agentCoreTrpc,
70171
70295
  agentPoolGroupTrpc,
70172
70296
  agentReconnectTrpc,
70297
+ agentShareRequestTrpc,
70173
70298
  agentOpenConversationTrpc,
70174
70299
  agentConversationCloseTrpc,
70175
70300
  agentTurnTrpc,
@@ -70348,7 +70473,7 @@ var agentKeepsFailingPayloadSchemaDefinition = external_exports.object({
70348
70473
 
70349
70474
  // ../../modules/agent/contract/src/agent-caller-access.ts
70350
70475
  var agentRefSchema9 = external_exports.string().trim().min(1).max(80);
70351
- var idSchema18 = external_exports.string().min(1).max(64);
70476
+ var idSchema19 = external_exports.string().min(1).max(64);
70352
70477
  var agentAsCallerInputSchemaDefinition = external_exports.object({ agent: agentRefSchema9 });
70353
70478
  var shareAgentAsCallerInputSchemaDefinition = external_exports.object({
70354
70479
  agent: agentRefSchema9,
@@ -70356,18 +70481,18 @@ var shareAgentAsCallerInputSchemaDefinition = external_exports.object({
70356
70481
  });
70357
70482
  var stopTurnAsCallerInputSchemaDefinition = external_exports.object({
70358
70483
  agent: agentRefSchema9,
70359
- channelId: idSchema18
70484
+ channelId: idSchema19
70360
70485
  });
70361
70486
  var retryTurnAsCallerInputSchemaDefinition = external_exports.object({
70362
70487
  agent: agentRefSchema9,
70363
- channelId: idSchema18,
70364
- messageId: idSchema18
70488
+ channelId: idSchema19,
70489
+ messageId: idSchema19
70365
70490
  });
70366
70491
  var postTurnFailureAsCallerInputSchemaDefinition = external_exports.object({
70367
- channelId: idSchema18,
70368
- threadRootId: idSchema18.optional(),
70492
+ channelId: idSchema19,
70493
+ threadRootId: idSchema19.optional(),
70369
70494
  /** The person's message the turn was on, which Try again sends to the agent again. */
70370
- messageId: idSchema18,
70495
+ messageId: idSchema19,
70371
70496
  /** The attempt that failed, so Try again knows once a later one is stored. */
70372
70497
  attempt: external_exports.number().int().min(1).optional(),
70373
70498
  line: external_exports.string().trim().min(1).max(1e3),
@@ -70376,7 +70501,7 @@ var postTurnFailureAsCallerInputSchemaDefinition = external_exports.object({
70376
70501
  var mintLinkAsCallerInputSchemaDefinition = external_exports.object({
70377
70502
  /** Left out, the agent that joins with the link names itself. */
70378
70503
  name: external_exports.string().trim().max(80).optional(),
70379
- channelId: idSchema18.optional(),
70504
+ channelId: idSchema19.optional(),
70380
70505
  /** One of the key's person's agents by id or name: redeeming gives it a new key instead. */
70381
70506
  reconnect: external_exports.string().trim().min(1).max(80).optional()
70382
70507
  });
@@ -70517,26 +70642,58 @@ var agentPersonMessageReceivedPayloadSchemaDefinition = external_exports.object(
70517
70642
  at: external_exports.iso.datetime()
70518
70643
  });
70519
70644
 
70645
+ // ../../modules/agent/contract/src/agent-link-telemetry.ts
70646
+ var agentLinkRedeemReasonSchema = external_exports.enum([
70647
+ "connected",
70648
+ "reconnected",
70649
+ "malformed_token",
70650
+ "unknown_link",
70651
+ "expired",
70652
+ "already_used",
70653
+ "secret_mismatch",
70654
+ /** A CLI link redeemed as an OAuth code, or an OAuth code redeemed by the CLI. */
70655
+ "wrong_kind",
70656
+ /** An OAuth code exchanged by another client, redirect URI or PKCE verifier. */
70657
+ "binding_mismatch",
70658
+ "owner_mismatch",
70659
+ /** The reconnect agent is gone or no longer connected. */
70660
+ "agent_unavailable"
70661
+ ]);
70662
+ var agentLinkRedeemPathSchema = external_exports.enum(["link", "oauth"]);
70663
+ var agentLinkRedeemAttemptedPayloadSchemaDefinition = external_exports.object({
70664
+ workspaceId: external_exports.string().min(1),
70665
+ linkId: external_exports.string().min(1).max(64),
70666
+ outcome: external_exports.enum(["connected", "reconnected", "refused"]),
70667
+ reason: agentLinkRedeemReasonSchema,
70668
+ path: agentLinkRedeemPathSchema,
70669
+ harness: agentHarnessSchema.catch("other"),
70670
+ /** The `x-laze-cli-version` the request carried; null for any other client. */
70671
+ cliVersion: external_exports.string().max(32).nullable(),
70672
+ /** The agent connected or reconnected; null when refused. */
70673
+ agentId: external_exports.string().min(1).nullable(),
70674
+ at: external_exports.iso.datetime()
70675
+ });
70676
+
70520
70677
  // ../../modules/agent/contract/src/agent-history.ts
70521
- var idSchema19 = external_exports.string().min(1).max(80);
70678
+ var idSchema20 = external_exports.string().min(1).max(80);
70522
70679
  var CALLER_HISTORY_LIMIT_MAX = 100;
70523
70680
  var historyAsCallerInputSchemaDefinition = external_exports.object({
70524
70681
  /** A channel the key's speaker is in, by id or name. */
70525
70682
  channel: external_exports.string().trim().min(1).max(200),
70526
70683
  /** Messages before this Laze message; none reads the newest page. */
70527
- before: idSchema19.optional(),
70684
+ before: idSchema20.optional(),
70528
70685
  /** Already past the cache: no cached messages, only where the live read goes on. */
70529
70686
  olderThan: external_exports.iso.datetime().optional(),
70530
70687
  limit: external_exports.number().int().min(1).max(CALLER_HISTORY_LIMIT_MAX).default(50)
70531
70688
  });
70532
70689
  var callerHistoryMessageSchemaDefinition = external_exports.object({
70533
- messageId: idSchema19,
70534
- threadRootId: idSchema19.nullable(),
70690
+ messageId: idSchema20,
70691
+ threadRootId: idSchema20.nullable(),
70535
70692
  seq: external_exports.number().int().positive(),
70536
70693
  /** `external` for a mirrored message from someone outside Laze. */
70537
70694
  author: external_exports.object({
70538
70695
  kind: external_exports.enum(["person", "agent", "external"]),
70539
- id: idSchema19,
70696
+ id: idSchema20,
70540
70697
  name: external_exports.string()
70541
70698
  }),
70542
70699
  body: external_exports.string(),
@@ -70546,7 +70703,7 @@ var callerHistoryMessageSchemaDefinition = external_exports.object({
70546
70703
  originKey: external_exports.string().nullable()
70547
70704
  });
70548
70705
  var callerHistorySchemaDefinition = external_exports.object({
70549
- channelId: idSchema19,
70706
+ channelId: idSchema20,
70550
70707
  channelName: external_exports.string(),
70551
70708
  channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
70552
70709
  /** The outside workspace a mirrored conversation shows, such as "Slack ACME HQ". */
@@ -70560,21 +70717,21 @@ var callerHistorySchemaDefinition = external_exports.object({
70560
70717
  });
70561
70718
 
70562
70719
  // ../../modules/agent/contract/src/agent-feed-refs.ts
70563
- var idSchema20 = external_exports.string().min(1).max(80);
70720
+ var idSchema21 = external_exports.string().min(1).max(80);
70564
70721
  var recordTurnFeedRefInputSchemaDefinition = external_exports.object({
70565
- cardId: idSchema20,
70722
+ cardId: idSchema21,
70566
70723
  kind: external_exports.enum(["added", "updated"]),
70567
70724
  /** The card's own chat threads: a reply in one of them links nothing. */
70568
- ownThreadRootIds: external_exports.array(idSchema20).max(50).default([])
70725
+ ownThreadRootIds: external_exports.array(idSchema21).max(50).default([])
70569
70726
  });
70570
70727
 
70571
70728
  // ../../modules/agent/contract/src/agent-channel-admin.ts
70572
- var idSchema21 = external_exports.string().min(1).max(80);
70729
+ var idSchema22 = external_exports.string().min(1).max(80);
70573
70730
  var channelRefSchema = external_exports.string().trim().min(1).max(200);
70574
70731
  var channelAsCallerInputSchemaDefinition = external_exports.object({ channel: channelRefSchema });
70575
70732
  var callerChannelMemberSchemaDefinition = external_exports.object({
70576
70733
  kind: external_exports.enum(["person", "agent"]),
70577
- id: idSchema21,
70734
+ id: idSchema22,
70578
70735
  name: external_exports.string(),
70579
70736
  role: external_exports.enum(["admin", "member"]),
70580
70737
  /** Active, away or unknown for a person the speaker may see; absent for agents. */
@@ -70584,7 +70741,7 @@ var callerChannelMemberSchemaDefinition = external_exports.object({
70584
70741
  doNotDisturb: doNotDisturbSchema.nullable().optional()
70585
70742
  });
70586
70743
  var callerChannelDetailSchemaDefinition = external_exports.object({
70587
- id: idSchema21,
70744
+ id: idSchema22,
70588
70745
  name: external_exports.string(),
70589
70746
  kind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
70590
70747
  topic: external_exports.string(),
@@ -70618,17 +70775,17 @@ var activityAsCallerInputSchemaDefinition = external_exports.object({
70618
70775
  limit: external_exports.number().int().min(1).max(100).default(50)
70619
70776
  });
70620
70777
  var callerActivityItemSchemaDefinition = external_exports.object({
70621
- id: idSchema21,
70778
+ id: idSchema22,
70622
70779
  kind: external_exports.enum(["mention", "thread_reply", "keyword", "reaction"]),
70623
- channelId: idSchema21,
70780
+ channelId: idSchema22,
70624
70781
  channelName: external_exports.string(),
70625
70782
  channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
70626
- messageId: idSchema21,
70627
- threadRootId: idSchema21.nullable(),
70783
+ messageId: idSchema22,
70784
+ threadRootId: idSchema22.nullable(),
70628
70785
  /** `external` is someone outside Laze whose message a mirror brought in, named at the source. */
70629
70786
  actor: external_exports.object({
70630
70787
  kind: external_exports.enum(["person", "agent", "external"]),
70631
- id: idSchema21,
70788
+ id: idSchema22,
70632
70789
  name: external_exports.string()
70633
70790
  }),
70634
70791
  emoji: external_exports.string().nullable(),
@@ -70645,12 +70802,12 @@ var setStatusAsCallerInputSchemaDefinition = setStatusInputSchema.omit({ workspa
70645
70802
  var setAwayAsCallerInputSchemaDefinition = external_exports.object({ away: external_exports.boolean() });
70646
70803
 
70647
70804
  // ../../modules/agent/contract/src/agent-scheduled.ts
70648
- var idSchema22 = external_exports.string().min(1).max(80);
70805
+ var idSchema23 = external_exports.string().min(1).max(80);
70649
70806
  var channelRefSchema2 = external_exports.string().trim().min(1).max(200);
70650
70807
  var scheduleAsCallerInputSchemaDefinition = external_exports.object({
70651
70808
  channel: channelRefSchema2.optional(),
70652
- threadRootId: idSchema22.optional(),
70653
- replyTo: idSchema22.optional(),
70809
+ threadRootId: idSchema23.optional(),
70810
+ replyTo: idSchema23.optional(),
70654
70811
  body: external_exports.string().trim().min(1).max(4e4),
70655
70812
  sendAt: external_exports.iso.datetime({ offset: true }),
70656
70813
  /** A reply that also goes to the channel at its time (`--also-channel`). */
@@ -70661,9 +70818,9 @@ var scheduleAsCallerInputSchemaDefinition = external_exports.object({
70661
70818
  var listScheduledAsCallerInputSchemaDefinition = external_exports.object({
70662
70819
  channel: channelRefSchema2.optional()
70663
70820
  });
70664
- var scheduledAsCallerInputSchemaDefinition = external_exports.object({ scheduledId: idSchema22 });
70821
+ var scheduledAsCallerInputSchemaDefinition = external_exports.object({ scheduledId: idSchema23 });
70665
70822
  var editScheduledAsCallerInputSchemaDefinition = external_exports.object({
70666
- scheduledId: idSchema22,
70823
+ scheduledId: idSchema23,
70667
70824
  body: external_exports.string().trim().min(1).max(4e4).optional(),
70668
70825
  sendAt: external_exports.iso.datetime({ offset: true }).optional()
70669
70826
  }).refine((input2) => input2.body !== void 0 || input2.sendAt !== void 0, {
@@ -71681,7 +71838,7 @@ function serverUrlOf({ context, args }) {
71681
71838
  }
71682
71839
 
71683
71840
  // src/services/agent-access-commands.service.ts
71684
- var SHARE_USAGE = "Usage: laze agent share|unshare <agent> --person <userId> | --group <groupId> | --channel <channelId> | --agent <agent>";
71841
+ var SHARE_USAGE = "Usage: laze agent share|unshare <agent> --person <userId> | --group <groupId> | --channel <channelId> | --agent <agent>\n laze agent share <agent> --ask --person <userId> [--agent <agent> ...]";
71685
71842
  function agentWord({ args, usage }) {
71686
71843
  const agent3 = args.words[2];
71687
71844
  if (!agent3) throw new CliUsageError(usage);
@@ -71744,8 +71901,35 @@ function granteeOf({
71744
71901
  if (agent3) return { kind: "agent", agentId: agent3 };
71745
71902
  return { kind: "channel", channelId: channel };
71746
71903
  }
71904
+ var GRANTEE_FLAGS = ["person", "group", "channel", "agent"];
71905
+ function askedGranteesOf(args) {
71906
+ return GRANTEE_FLAGS.flatMap(
71907
+ (name3) => (args.lists[name3] ?? []).map(
71908
+ (value) => granteeOf({
71909
+ person: name3 === "person" ? value : void 0,
71910
+ group: name3 === "group" ? value : void 0,
71911
+ channel: name3 === "channel" ? value : void 0,
71912
+ agent: name3 === "agent" ? value : void 0
71913
+ })
71914
+ )
71915
+ );
71916
+ }
71917
+ async function askToShare({ context, args, agent: agent3 }) {
71918
+ const grantees = askedGranteesOf(args);
71919
+ if (grantees.length === 0) throw new CliUsageError(SHARE_USAGE);
71920
+ const { client } = await signedIn({ context, args });
71921
+ const access = await client.post("/api/agents/share/ask", { agent: agent3, grantees });
71922
+ const request2 = access.shareRequests?.[0];
71923
+ if (args.flags.json || access.mayShare || !request2) return printAccess({ context, args, access });
71924
+ context.out(`Asked ${request2.deciderNames.join(" or ")} to add them to ${agent3}.
71925
+ `);
71926
+ }
71747
71927
  async function shareAgent({ context, args }) {
71748
71928
  const agent3 = agentWord({ args, usage: SHARE_USAGE });
71929
+ if (args.flags.ask === true) {
71930
+ if (args.words[1] === "unshare") throw new CliUsageError(SHARE_USAGE);
71931
+ return askToShare({ context, args, agent: agent3 });
71932
+ }
71749
71933
  const person = flagText({ args, name: "person" });
71750
71934
  const group = flagText({ args, name: "group" });
71751
71935
  const channel = flagText({ args, name: "channel" });
@@ -88939,7 +89123,7 @@ var agentHostGrantDefinition = external_exports.object({
88939
89123
  });
88940
89124
 
88941
89125
  // ../../modules/compute/contract/src/compute.ts
88942
- var idSchema23 = external_exports.string().min(1).max(64);
89126
+ var idSchema24 = external_exports.string().min(1).max(64);
88943
89127
  var workspaceIdSchema23 = external_exports.string().min(1).max(64);
88944
89128
  var machineStateSchema = external_exports.enum([
88945
89129
  "starting",
@@ -88961,24 +89145,24 @@ var machinePriceDefinition = external_exports.object({
88961
89145
  asleepMonthUsd: external_exports.number()
88962
89146
  });
88963
89147
  var machineGranteeKindSchema = external_exports.enum(["member", "agent"]);
88964
- var machineGranteeDefinition = external_exports.object({ kind: machineGranteeKindSchema, id: idSchema23 });
89148
+ var machineGranteeDefinition = external_exports.object({ kind: machineGranteeKindSchema, id: idSchema24 });
88965
89149
  var machineGrantDefinition = external_exports.object({
88966
89150
  kind: machineGranteeKindSchema,
88967
- id: idSchema23,
88968
- grantedByUserId: idSchema23,
89151
+ id: idSchema24,
89152
+ grantedByUserId: idSchema24,
88969
89153
  grantedAt: external_exports.iso.datetime()
88970
89154
  });
88971
89155
  var machineDefinition = external_exports.object({
88972
- id: idSchema23,
89156
+ id: idSchema24,
88973
89157
  workspaceId: workspaceIdSchema23,
88974
89158
  name: external_exports.string(),
88975
89159
  type: machineTypeSchema,
88976
89160
  zone: external_exports.string(),
88977
89161
  state: machineStateSchema,
88978
- ownerUserId: idSchema23,
88979
- requesterUserId: idSchema23,
88980
- renterAgentId: idSchema23.nullable(),
88981
- channelId: idSchema23.nullable(),
89162
+ ownerUserId: idSchema24,
89163
+ requesterUserId: idSchema24,
89164
+ renterAgentId: idSchema24.nullable(),
89165
+ channelId: idSchema24.nullable(),
88982
89166
  ipAddress: external_exports.string().nullable(),
88983
89167
  sites: external_exports.array(machineSiteDefinition),
88984
89168
  /** Members and agents the owner shared the machine with, beyond the owner's own agents. */
@@ -89010,7 +89194,7 @@ var machineDefinition = external_exports.object({
89010
89194
  /** The owner's agents set to run on this own machine. */
89011
89195
  hostedAgents: external_exports.array(
89012
89196
  external_exports.object({
89013
- id: idSchema23,
89197
+ id: idSchema24,
89014
89198
  name: external_exports.string(),
89015
89199
  whenOffline: external_exports.enum(["wait", "sandbox"])
89016
89200
  })
@@ -89089,11 +89273,11 @@ var loginTerminalDefinition = external_exports.discriminatedUnion("status", [
89089
89273
  var loginTerminalSchema = loginTerminalDefinition;
89090
89274
  var warmComputerDefinition = external_exports.object({ status: external_exports.enum(["starting", "ready"]) });
89091
89275
  var warmComputerSchema = warmComputerDefinition;
89092
- var screenRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, sessionId: idSchema23 });
89276
+ var screenRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, sessionId: idSchema24 });
89093
89277
  var screenRefSchema = screenRefDefinition;
89094
89278
  var screenSessionDefinition = external_exports.object({
89095
- sessionId: idSchema23,
89096
- machineId: idSchema23,
89279
+ sessionId: idSchema24,
89280
+ machineId: idSchema24,
89097
89281
  machineName: external_exports.string(),
89098
89282
  site: external_exports.string().nullable(),
89099
89283
  expiresAt: external_exports.iso.datetime(),
@@ -89127,7 +89311,7 @@ var ownMachineSshConnectDefinition = external_exports.object({
89127
89311
  publicKey: external_exports.string()
89128
89312
  });
89129
89313
  var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
89130
- var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, machineId: idSchema23 });
89314
+ var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, machineId: idSchema24 });
89131
89315
  var ComputeApi = moduleApi()("compute");
89132
89316
  var computeCoreTrpc = defineTrpcContract("compute").query("status").withInput(computeWorkspaceInputSchema).withOutput(computeStatusSchema).query("browserTabs").withInput(browserTabListInputSchema).withOutput(browserTabListSchema).query("browserTab").withInput(browserTabInputSchema).withOutput(browserTabSchema).mutation("openBrowserTab").withInput(openBrowserTabInputSchema).withOutput(browserTabSchema).mutation("browserTabScreen").withInput(browserTabInputSchema).withOutput(browserTabScreenSchema).mutation("sizeBrowserTabScreen").withInput(browserTabScreenSizeInputSchema).withOutput(browserTabScreenSizeSchema).mutation("gotoBrowserTab").withInput(browserTabGotoInputSchema).withOutput(browserTabPageSchema).mutation("doneOnBrowserTab").withInput(browserTabInputSchema).withOutput(browserTabSchema).mutation("shareBrowserTab").withInput(browserTabShareInputSchema).withOutput(browserTabSchema).mutation("closeBrowserTab").withInput(browserTabInputSchema).withOutput(external_exports.object({ closed: external_exports.literal(true) })).query("computer").withInput(computeWorkspaceInputSchema).withOutput(computerStatusSchema).mutation("setComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerSizeAnswerSchema).mutation("requestComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerRequestSchema).mutation("cancelComputerRequest").withInput(computerRequestRefSchema).withOutput(computerRequestSchema).mutation("restartComputer").withInput(restartComputerInputSchema).withOutput(computerRestartAnswerSchema).query("computers").withInput(computeWorkspaceInputSchema).withOutput(computerListSchema).query("dedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpStatusSchema).mutation("setDedicatedIp").withInput(setDedicatedIpInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("turnOffDedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("setDedicatedIpDomains").withInput(setDedicatedIpDomainsInputSchema).withOutput(dedicatedIpAnswerSchema).query("dedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpListSchema).query("dedicatedIpCountries").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpCountriesSchema).query("dedicatedIpOffer").withInput(dedicatedIpOfferInputSchema).withOutput(dedicatedIpOfferSchema).query("list").withInput(computeWorkspaceInputSchema).withOutput(external_exports.array(machineSchema)).query("get").withInput(machineRefSchema).withOutput(machineSchema).mutation("setupBrowser").withInput(setupBrowserInputSchema).withOutput(machineSchema).mutation("sleep").withInput(machineRefSchema).withOutput(machineSchema).mutation("wake").withInput(machineRefSchema).withOutput(machineSchema).mutation("delete").withInput(machineRefSchema).withOutput(machineSchema).mutation("rename").withInput(renameMachineInputSchema).withOutput(machineSchema).mutation("grant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("revokeGrant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("setBudget").withInput(setMachineBudgetInputSchema).withOutput(machineSchema).mutation("openScreen").withInput(openScreenInputSchema).withOutput(screenSessionSchema).mutation("openLoginTerminal").withInput(openLoginTerminalInputSchema).withOutput(loginTerminalSchema).mutation("finishScreen").withInput(screenRefSchema).withOutput(machineSchema).mutation("connectOwn").withInput(connectOwnMachineInputSchema).withOutput(ownMachineConnectSchema).mutation("newConnectCommand").withInput(machineRefSchema).withOutput(ownMachineConnectSchema).mutation("connectSsh").withInput(connectSshMachineInputSchema).withOutput(ownMachineSshConnectSchema).mutation("trustHostKey").withInput(trustHostKeyInputSchema).withOutput(machineSchema).mutation("checkHealth").withInput(machineRefSchema).withOutput(machineSchema).mutation("hostAgent").withInput(hostAgentInputSchema).withOutput(machineSchema).mutation("unhostAgent").withInput(unhostAgentInputSchema).withOutput(external_exports.object({ agentId: external_exports.string() })).mutation("pairWhatsapp").withInput(whatsappPairInputSchema).withOutput(whatsappPairingSchema).query("whatsappMirror").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).mutation("setWhatsappMirror").withInput(setWhatsappMirrorInputSchema).withOutput(whatsappMirrorSettingsSchema).query("whatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("cancelWhatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("unpairWhatsapp").withInput(machineRefSchema).withOutput(machineSchema).build();
89133
89317
  var computeFleetTrpc = defineTrpcContract("compute").query("whatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("prepareWhatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("warmComputer").withInput(computeWorkspaceInputSchema).withOutput(warmComputerSchema).query("myComputers").withInput(computeWorkspaceInputSchema).withOutput(myComputersSchema).query("personComputer").withInput(personComputerInputSchema).withOutput(computerUseSchema2).mutation("createComputer").withInput(createComputerInputSchema).withOutput(computerStatusSchema).mutation("deleteComputer").withInput(deleteComputerInputSchema).withOutput(deleteComputerAnswerSchema).mutation("setComputerCreators").withInput(setComputerCreatorsInputSchema).withOutput(computerStatusSchema).mutation("setAgentComputer").withInput(setAgentComputerInputSchema).withOutput(agentComputerAnswerSchema).query("whatsappAgents").withInput(machineRefSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgent").withInput(setWhatsappAgentInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgentLease").withInput(setWhatsappAgentLeaseInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappEveryAgent").withInput(setWhatsappEveryAgentInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgentAccess").withInput(setWhatsappAgentAccessInputSchema).withOutput(whatsappAgentsSchema).mutation("checkWhatsappNow").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).query("whatsappChatPeople").withInput(whatsappChatPeopleInputSchema).withOutput(whatsappChatPeopleSchema).mutation("watchWhatsappChat").withInput(whatsappWatchInputSchema).withOutput(whatsappWatchSchema).mutation("checkWhatsappReply").withInput(whatsappReplyCheckInputSchema).withOutput(whatsappReplyCheckSchema).build();
@@ -91832,7 +92016,7 @@ var EXTERNAL_CONNECTION_REST_PATHS = {
91832
92016
  report: "/api/external-connections/report"
91833
92017
  };
91834
92018
  var workspaceIdSchema26 = external_exports.string().min(1).max(64);
91835
- var idSchema24 = external_exports.string().min(1).max(64);
92019
+ var idSchema25 = external_exports.string().min(1).max(64);
91836
92020
  var iso2 = external_exports.iso.datetime();
91837
92021
  var workspaceInput5 = external_exports.object({ workspaceId: workspaceIdSchema26 });
91838
92022
  var connectionReference = external_exports.string().trim().min(1).max(120);
@@ -91938,11 +92122,11 @@ var rosterDefinition = external_exports.object({
91938
92122
  members: external_exports.array(rosterMemberDefinition)
91939
92123
  });
91940
92124
  var externalRosterSchema = rosterDefinition;
91941
- var rosterInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, channelId: idSchema24 });
92125
+ var rosterInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, channelId: idSchema25 });
91942
92126
  var externalRosterInputSchema = rosterInputDefinition;
91943
92127
  var rosterCountsInputDefinition = external_exports.object({
91944
92128
  workspaceId: workspaceIdSchema26,
91945
- channelIds: external_exports.array(idSchema24).max(200)
92129
+ channelIds: external_exports.array(idSchema25).max(200)
91946
92130
  });
91947
92131
  var externalRosterCountsInputSchema = rosterCountsInputDefinition;
91948
92132
  var rosterCountsDefinition = external_exports.object({
@@ -91958,7 +92142,7 @@ var inviteInputDefinition = external_exports.object({
91958
92142
  company: external_exports.string().trim().min(1).max(80).optional()
91959
92143
  });
91960
92144
  var externalInviteInputSchema = inviteInputDefinition;
91961
- var inviteRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, inviteId: idSchema24 });
92145
+ var inviteRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, inviteId: idSchema25 });
91962
92146
  var externalInviteRefSchema = inviteRefDefinition;
91963
92147
  var pendingShareDefinition = external_exports.object({
91964
92148
  channelId: external_exports.string(),
@@ -91983,7 +92167,7 @@ var externalPendingSharesSchema = pendingSharesDefinition;
91983
92167
  var acceptInviteDefinition = external_exports.object({
91984
92168
  /** The workspace to connect: one where the person is Admin or Owner. */
91985
92169
  workspaceId: workspaceIdSchema26,
91986
- inviteId: idSchema24,
92170
+ inviteId: idSchema25,
91987
92171
  /** The emailed link's secret; without it the invitation must be addressed to the person. */
91988
92172
  secret: external_exports.string().trim().max(200).optional()
91989
92173
  });
@@ -92004,8 +92188,8 @@ var settingsInputDefinition = external_exports.object({
92004
92188
  var externalSettingsInputSchema = settingsInputDefinition;
92005
92189
  var letAgentInInputDefinition = external_exports.object({
92006
92190
  workspaceId: workspaceIdSchema26,
92007
- channelId: idSchema24,
92008
- agentId: idSchema24
92191
+ channelId: idSchema25,
92192
+ agentId: idSchema25
92009
92193
  });
92010
92194
  var externalLetAgentInInputSchema = letAgentInInputDefinition;
92011
92195
  var agentLetInDefinition = external_exports.object({
@@ -92024,7 +92208,7 @@ var shareInputDefinition = external_exports.object({
92024
92208
  var externalShareInputSchema = shareInputDefinition;
92025
92209
  var acceptShareDefinition = external_exports.object({
92026
92210
  workspaceId: workspaceIdSchema26,
92027
- shareId: idSchema24,
92211
+ shareId: idSchema25,
92028
92212
  /** Its name here; the host's name when left out. */
92029
92213
  name: external_exports.string().trim().min(1).max(80).optional(),
92030
92214
  visibility: external_exports.enum(["public", "private"]).default("public")
@@ -93181,7 +93365,8 @@ var feedApprovalSchemaDefinition = external_exports.object({
93181
93365
  "computer",
93182
93366
  "agent_join",
93183
93367
  "agent_transfer",
93184
- "vault_share"
93368
+ "vault_share",
93369
+ "agent_share"
93185
93370
  ]),
93186
93371
  requestId: external_exports.string(),
93187
93372
  /** Every request an invite card answers at once, `requestId` first; absent means just it. */
@@ -93673,7 +93858,7 @@ var feedPageMirror = {
93673
93858
  },
93674
93859
  storable: feedPageForDisk
93675
93860
  };
93676
- var feedTrpc = defineTrpcContract("feed").query("channelItems").withInput(external_exports.object({ workspaceId: external_exports.string().min(1), channelId: external_exports.string().min(1) })).withOutput(external_exports.array(feedAgentItemSchema)).query("list").withInput(listFeedInputSchema).withOutput(feedViewSchema).query("page", { mirrored: feedPageMirror }).withInput(pageFeedInputSchema).withOutput(feedPageSchema).query("card").withInput(itemRef).withOutput(feedCardViewSchema).query("fileLink").withInput(feedFileLinkInputSchema).withOutput(feedFileLinkSchema).query("count").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.object({ count: external_exports.number().int().nonnegative() })).query("decisions").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(feedDecisionsSchema).mutation("act").withInput(actFeedItemInputSchema).withOutput(feedItemSchema).mutation("comment").withInput(commentFeedItemInputSchema).withOutput(feedItemSchema).mutation("commentPlace").withInput(itemRef).withOutput(feedCommentPlaceSchema).query("commentDrafts").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(commentDraftListSchema).mutation("saveCommentDraft").withInput(saveCommentDraftInputSchema).withOutput(commentDraftSavedSchema).mutation("deleteCommentDraft").withInput(itemRef).withOutput(commentDraftSavedSchema).mutation("done").withInput(itemRef).withOutput(feedItemSchema).mutation("stopAutoSend").withInput(itemRef).withOutput(feedItemSchema).mutation("putBack").withInput(putBackFeedItemInputSchema).withOutput(feedItemSchema).mutation("snooze").withInput(snoozeFeedItemInputSchema).withOutput(feedItemSchema).mutation("unsnooze").withInput(itemRef).withOutput(feedItemSchema).mutation("saveDraft").withInput(saveFeedDraftInputSchema).withOutput(feedItemSchema).mutation("editItem").withInput(editFeedItemInputSchema).withOutput(feedItemSchema).mutation("saveMessage").withInput(saveFeedMessageInputSchema).withOutput(feedItemSchema).mutation("share").withInput(shareFeedItemInputSchema).withOutput(feedShareAnswerSchema).mutation("unshare").withInput(unshareFeedItemInputSchema).withOutput(feedShareAnswerSchema).query("shareCandidates").withInput(itemRef).withOutput(external_exports.array(feedSharePersonSchema)).query("commentReach").withInput(itemRef).withOutput(feedCommentReachSchema).mutation("moveToAgent").withInput(moveFeedItemToAgentInputSchema).withOutput(feedItemSchema).mutation("answerApproval").withInput(answerFeedApprovalInputSchema).withOutput(feedItemSchema).mutation("decidePublish").withInput(decideFeedPublishInputSchema).withOutput(feedItemSchema).mutation("decideAccess").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideServer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAppAccess").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideComputer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentJoin").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentTransfer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("pin").withInput(pinFeedItemInputSchema).withOutput(feedItemSchema).mutation("markRead").withInput(itemRef).withOutput(feedItemSchema).mutation("markUnread").withInput(itemRef).withOutput(feedItemSchema).mutation("markAllRead").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.object({ workspaceId: external_exports.string() })).query("delegates").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.array(feedDelegateSchema)).mutation("setDelegate").withInput(setFeedDelegateInputSchema).withOutput(external_exports.array(feedDelegateSchema)).build();
93861
+ var feedTrpc = defineTrpcContract("feed").query("channelItems").withInput(external_exports.object({ workspaceId: external_exports.string().min(1), channelId: external_exports.string().min(1) })).withOutput(external_exports.array(feedAgentItemSchema)).query("list").withInput(listFeedInputSchema).withOutput(feedViewSchema).query("page", { mirrored: feedPageMirror }).withInput(pageFeedInputSchema).withOutput(feedPageSchema).query("card").withInput(itemRef).withOutput(feedCardViewSchema).query("fileLink").withInput(feedFileLinkInputSchema).withOutput(feedFileLinkSchema).query("count").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.object({ count: external_exports.number().int().nonnegative() })).query("decisions").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(feedDecisionsSchema).mutation("act").withInput(actFeedItemInputSchema).withOutput(feedItemSchema).mutation("comment").withInput(commentFeedItemInputSchema).withOutput(feedItemSchema).mutation("commentPlace").withInput(itemRef).withOutput(feedCommentPlaceSchema).query("commentDrafts").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(commentDraftListSchema).mutation("saveCommentDraft").withInput(saveCommentDraftInputSchema).withOutput(commentDraftSavedSchema).mutation("deleteCommentDraft").withInput(itemRef).withOutput(commentDraftSavedSchema).mutation("done").withInput(itemRef).withOutput(feedItemSchema).mutation("stopAutoSend").withInput(itemRef).withOutput(feedItemSchema).mutation("putBack").withInput(putBackFeedItemInputSchema).withOutput(feedItemSchema).mutation("snooze").withInput(snoozeFeedItemInputSchema).withOutput(feedItemSchema).mutation("unsnooze").withInput(itemRef).withOutput(feedItemSchema).mutation("saveDraft").withInput(saveFeedDraftInputSchema).withOutput(feedItemSchema).mutation("editItem").withInput(editFeedItemInputSchema).withOutput(feedItemSchema).mutation("saveMessage").withInput(saveFeedMessageInputSchema).withOutput(feedItemSchema).mutation("share").withInput(shareFeedItemInputSchema).withOutput(feedShareAnswerSchema).mutation("unshare").withInput(unshareFeedItemInputSchema).withOutput(feedShareAnswerSchema).query("shareCandidates").withInput(itemRef).withOutput(external_exports.array(feedSharePersonSchema)).query("commentReach").withInput(itemRef).withOutput(feedCommentReachSchema).mutation("moveToAgent").withInput(moveFeedItemToAgentInputSchema).withOutput(feedItemSchema).mutation("answerApproval").withInput(answerFeedApprovalInputSchema).withOutput(feedItemSchema).mutation("decidePublish").withInput(decideFeedPublishInputSchema).withOutput(feedItemSchema).mutation("decideAccess").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideServer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAppAccess").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideComputer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentJoin").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentTransfer").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("decideAgentShare").withInput(decideFeedRequestInputSchema).withOutput(feedItemSchema).mutation("pin").withInput(pinFeedItemInputSchema).withOutput(feedItemSchema).mutation("markRead").withInput(itemRef).withOutput(feedItemSchema).mutation("markUnread").withInput(itemRef).withOutput(feedItemSchema).mutation("markAllRead").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.object({ workspaceId: external_exports.string() })).query("delegates").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.array(feedDelegateSchema)).mutation("setDelegate").withInput(setFeedDelegateInputSchema).withOutput(external_exports.array(feedDelegateSchema)).build();
93677
93862
  var feedUi = uiTokens("feed");
93678
93863
  var FeedNavSlot = feedUi.component("nav");
93679
93864
  var FeedDecisionsSlot = feedUi.component("decisions");
@@ -97682,9 +97867,9 @@ var seatAddedSchemaDefinition = external_exports.object({
97682
97867
 
97683
97868
  // ../../modules/workspace/contract/src/workspace-groups.ts
97684
97869
  var GROUP_MEMBERS_MAX_PER_CALL = 200;
97685
- var idSchema25 = external_exports.string().min(1).max(80);
97870
+ var idSchema26 = external_exports.string().min(1).max(80);
97686
97871
  var workspaceGroupSchemaDefinition = external_exports.object({
97687
- id: idSchema25,
97872
+ id: idSchema26,
97688
97873
  name: external_exports.string(),
97689
97874
  /** Who is in it, by user id. */
97690
97875
  memberIds: external_exports.array(external_exports.string()),
@@ -97692,7 +97877,7 @@ var workspaceGroupSchemaDefinition = external_exports.object({
97692
97877
  createdAt: external_exports.iso.datetime()
97693
97878
  });
97694
97879
  var workspaceGroupSchema = workspaceGroupSchemaDefinition;
97695
- var memberIdsSchema = external_exports.array(idSchema25).max(GROUP_MEMBERS_MAX_PER_CALL);
97880
+ var memberIdsSchema = external_exports.array(idSchema26).max(GROUP_MEMBERS_MAX_PER_CALL);
97696
97881
  var createGroupInputSchemaDefinition = external_exports.object({
97697
97882
  workspaceId: external_exports.string().min(1),
97698
97883
  name: external_exports.string().trim().min(1).max(80),
@@ -97701,18 +97886,18 @@ var createGroupInputSchemaDefinition = external_exports.object({
97701
97886
  var createGroupInputSchema = createGroupInputSchemaDefinition;
97702
97887
  var renameGroupInputSchemaDefinition = external_exports.object({
97703
97888
  workspaceId: external_exports.string().min(1),
97704
- groupId: idSchema25,
97889
+ groupId: idSchema26,
97705
97890
  name: external_exports.string().trim().min(1).max(80)
97706
97891
  });
97707
97892
  var renameGroupInputSchema = renameGroupInputSchemaDefinition;
97708
97893
  var groupInputSchemaDefinition = external_exports.object({
97709
97894
  workspaceId: external_exports.string().min(1),
97710
- groupId: idSchema25
97895
+ groupId: idSchema26
97711
97896
  });
97712
97897
  var groupInputSchema = groupInputSchemaDefinition;
97713
97898
  var changeGroupMembersInputSchemaDefinition = external_exports.object({
97714
97899
  workspaceId: external_exports.string().min(1),
97715
- groupId: idSchema25,
97900
+ groupId: idSchema26,
97716
97901
  add: memberIdsSchema.default([]),
97717
97902
  remove: memberIdsSchema.default([])
97718
97903
  });
@@ -102222,6 +102407,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
102222
102407
  laze agent access|dm|disconnect <agent> who can talk to it, your conversation with it, revoke its key
102223
102408
  laze agent permission-prompts <agent> each permission prompt its harness raised and rush's answer
102224
102409
  laze agent share|unshare <agent> --person <userId> | --group <groupId> | --channel <channelId> | --agent <agent> share it (its owner); an added agent DMs it
102410
+ laze agent share <agent> --ask --person <userId> [--agent <agent> ...] ask its owner to add them; they approve in their feed
102225
102411
  laze agent stop <agent> --channel <channelId> stop its running turn there
102226
102412
  laze agent retry <agent> --channel <id> --message <id> Try again on its failed turn on that message
102227
102413
  laze agent invite [--name <name>] [--channel <id>] a one-time link that connects a new agent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.104",
3
+ "version": "0.1.105",
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",