@lazehq/cli 0.1.104 → 0.1.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/laze.mjs +563 -124
- 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.
|
|
36963
|
+
var STAMPED = "0.1.106";
|
|
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 = [];
|
|
@@ -62434,6 +62435,8 @@ var noticeAvatarParamsSchemaDefinition = external_exports.object({
|
|
|
62434
62435
|
var LAYOUT_BLOCKS_MAX = 50;
|
|
62435
62436
|
var LAYOUT_TEXT_MAX = 3e3;
|
|
62436
62437
|
var LAYOUT_ITEMS_MAX = 25;
|
|
62438
|
+
var LAYOUT_ACTION_ID_MAX = 255;
|
|
62439
|
+
var LAYOUT_ACTION_VALUE_MAX = 2e3;
|
|
62437
62440
|
var markdown = external_exports.string().max(LAYOUT_TEXT_MAX);
|
|
62438
62441
|
var plain = external_exports.string().max(LAYOUT_TEXT_MAX);
|
|
62439
62442
|
var imageUrl = external_exports.url({ protocol: /^https?$/ }).max(2e3);
|
|
@@ -62450,7 +62453,14 @@ var layoutConfirmSchemaDefinition = external_exports.object({
|
|
|
62450
62453
|
var layoutOptionSchemaDefinition = external_exports.object({
|
|
62451
62454
|
text: plain,
|
|
62452
62455
|
url: linkUrl.nullable(),
|
|
62453
|
-
selected: external_exports.boolean().optional()
|
|
62456
|
+
selected: external_exports.boolean().optional(),
|
|
62457
|
+
/** The value the source's app reads when this option is picked. */
|
|
62458
|
+
value: external_exports.string().max(LAYOUT_ACTION_VALUE_MAX).optional()
|
|
62459
|
+
});
|
|
62460
|
+
var layoutActionSchemaDefinition = external_exports.object({
|
|
62461
|
+
id: external_exports.string().min(1).max(LAYOUT_ACTION_ID_MAX),
|
|
62462
|
+
blockId: external_exports.string().max(LAYOUT_ACTION_ID_MAX),
|
|
62463
|
+
value: external_exports.string().max(LAYOUT_ACTION_VALUE_MAX).optional()
|
|
62454
62464
|
});
|
|
62455
62465
|
var layoutButtonSchemaDefinition = external_exports.object({
|
|
62456
62466
|
text: plain,
|
|
@@ -62459,7 +62469,8 @@ var layoutButtonSchemaDefinition = external_exports.object({
|
|
|
62459
62469
|
opens: external_exports.enum(["link", "source"]).optional(),
|
|
62460
62470
|
control: external_exports.enum(["button", "overflow", "select", "date", "time", "datetime", "checkboxes", "radio"]).optional(),
|
|
62461
62471
|
options: external_exports.array(layoutOptionSchemaDefinition).max(LAYOUT_ITEMS_MAX).optional(),
|
|
62462
|
-
confirm: layoutConfirmSchemaDefinition.optional()
|
|
62472
|
+
confirm: layoutConfirmSchemaDefinition.optional(),
|
|
62473
|
+
action: layoutActionSchemaDefinition.optional()
|
|
62463
62474
|
});
|
|
62464
62475
|
var layoutAccessorySchemaDefinition = external_exports.discriminatedUnion("type", [
|
|
62465
62476
|
external_exports.object({ type: external_exports.literal("image"), image: layoutImageSchemaDefinition }),
|
|
@@ -64844,6 +64855,40 @@ var emailMessageSchemaDefinition = external_exports.discriminatedUnion("template
|
|
|
64844
64855
|
}),
|
|
64845
64856
|
unsubscribeUrl: external_exports.url()
|
|
64846
64857
|
}),
|
|
64858
|
+
/**
|
|
64859
|
+
* Optional lifecycle mail written as a short letter: a picture, an optional greeting, lines, a
|
|
64860
|
+
* numbered list of steps (each a linked title with plain words after it), closing lines and a
|
|
64861
|
+
* sign-off. Sent only where `optionalEmailReach` allows, with its off link.
|
|
64862
|
+
*/
|
|
64863
|
+
external_exports.object({
|
|
64864
|
+
template: external_exports.literal("starters"),
|
|
64865
|
+
to: external_exports.email(),
|
|
64866
|
+
locale: localeSchema,
|
|
64867
|
+
/** Where the email as a whole opens: its first step. */
|
|
64868
|
+
url: external_exports.url(),
|
|
64869
|
+
subject: external_exports.string().min(1).max(200),
|
|
64870
|
+
greeting: external_exports.string().min(1).max(200).optional(),
|
|
64871
|
+
lines: external_exports.array(external_exports.string().min(1).max(600)).min(1).max(4),
|
|
64872
|
+
steps: external_exports.array(
|
|
64873
|
+
external_exports.object({
|
|
64874
|
+
label: external_exports.string().min(1).max(120),
|
|
64875
|
+
url: external_exports.url(),
|
|
64876
|
+
/** Plain words after the linked title, joined with a colon. */
|
|
64877
|
+
rest: external_exports.string().min(1).max(300).optional()
|
|
64878
|
+
})
|
|
64879
|
+
).min(1).max(5),
|
|
64880
|
+
closing: external_exports.array(external_exports.string().min(1).max(600)).max(3),
|
|
64881
|
+
signOff: external_exports.string().min(1).max(80),
|
|
64882
|
+
image: external_exports.object({
|
|
64883
|
+
url: external_exports.url(),
|
|
64884
|
+
alt: external_exports.string().max(200),
|
|
64885
|
+
width: external_exports.number().int().positive().max(600),
|
|
64886
|
+
height: external_exports.number().int().positive().max(600)
|
|
64887
|
+
}),
|
|
64888
|
+
/** Where the picture sits: over the words (default) or under the sign-off. */
|
|
64889
|
+
imageAt: external_exports.enum(["top", "bottom"]).optional(),
|
|
64890
|
+
unsubscribeUrl: external_exports.url()
|
|
64891
|
+
}),
|
|
64847
64892
|
/** A Laze app a person waited for is out; `url` is its store page. */
|
|
64848
64893
|
external_exports.object({
|
|
64849
64894
|
template: external_exports.literal("appAvailable"),
|
|
@@ -65368,6 +65413,24 @@ var feedDigestIntentSchemaDefinition = external_exports.object({
|
|
|
65368
65413
|
userId: external_exports.string().min(1),
|
|
65369
65414
|
at: external_exports.iso.datetime()
|
|
65370
65415
|
});
|
|
65416
|
+
var emailDeliveryStateSchema = external_exports.enum([
|
|
65417
|
+
"accepted",
|
|
65418
|
+
"deferred",
|
|
65419
|
+
"delivered",
|
|
65420
|
+
"bounced",
|
|
65421
|
+
"complained",
|
|
65422
|
+
"dropped"
|
|
65423
|
+
]);
|
|
65424
|
+
var emailDeliveryChangedPayloadSchemaDefinition = external_exports.object({
|
|
65425
|
+
deliveryId: external_exports.string().min(1),
|
|
65426
|
+
template: external_exports.string().min(1),
|
|
65427
|
+
state: emailDeliveryStateSchema,
|
|
65428
|
+
/** Null for a row the backfill created. */
|
|
65429
|
+
previousState: emailDeliveryStateSchema.nullable(),
|
|
65430
|
+
flags: external_exports.array(external_exports.string().min(1)),
|
|
65431
|
+
sentAt: external_exports.iso.datetime(),
|
|
65432
|
+
at: external_exports.iso.datetime()
|
|
65433
|
+
});
|
|
65371
65434
|
|
|
65372
65435
|
// ../../modules/notification/contract/src/notification.ui.ts
|
|
65373
65436
|
var notificationUi = uiTokens("notification");
|
|
@@ -65780,6 +65843,21 @@ var shareAgentInputSchemaDefinition = external_exports.object({
|
|
|
65780
65843
|
grantee: agentGranteeSchemaDefinition
|
|
65781
65844
|
});
|
|
65782
65845
|
var shareAgentInputSchema = shareAgentInputSchemaDefinition;
|
|
65846
|
+
var askedGranteeSchemaDefinition = external_exports.object({
|
|
65847
|
+
grantee: agentGranteeSchemaDefinition,
|
|
65848
|
+
label: external_exports.string()
|
|
65849
|
+
});
|
|
65850
|
+
var agentShareRequestSchemaDefinition = external_exports.object({
|
|
65851
|
+
id: idSchema5,
|
|
65852
|
+
requesterUserId: idSchema5,
|
|
65853
|
+
requesterName: external_exports.string(),
|
|
65854
|
+
grantees: external_exports.array(askedGranteeSchemaDefinition),
|
|
65855
|
+
/** Who may approve it: its owner, and for a team agent Laze runs, the workspace admins. */
|
|
65856
|
+
deciderIds: external_exports.array(idSchema5),
|
|
65857
|
+
deciderNames: external_exports.array(external_exports.string()),
|
|
65858
|
+
askedAt: external_exports.iso.datetime(),
|
|
65859
|
+
expiresAt: external_exports.iso.datetime()
|
|
65860
|
+
});
|
|
65783
65861
|
var agentLinkSchema = external_exports.object({
|
|
65784
65862
|
agentId: idSchema5,
|
|
65785
65863
|
name: external_exports.string(),
|
|
@@ -65811,7 +65889,11 @@ var agentAccessSchemaDefinition = external_exports.object({
|
|
|
65811
65889
|
/** The agents it was added to, which it may DM; its owner takes it off any of them. */
|
|
65812
65890
|
addedTo: external_exports.array(agentLinkSchema).optional(),
|
|
65813
65891
|
/** Whether the reader may share it and take shares back. */
|
|
65814
|
-
mayShare: external_exports.boolean()
|
|
65892
|
+
mayShare: external_exports.boolean(),
|
|
65893
|
+
/** A reader who talks to it but may not share it asks its deciders to add someone. */
|
|
65894
|
+
mayAsk: external_exports.boolean().optional(),
|
|
65895
|
+
/** Waiting requests: the reader's own, or every one for a reader who decides them. */
|
|
65896
|
+
shareRequests: external_exports.array(agentShareRequestSchemaDefinition).optional()
|
|
65815
65897
|
});
|
|
65816
65898
|
var agentAccessSchema = agentAccessSchemaDefinition;
|
|
65817
65899
|
|
|
@@ -69483,9 +69565,66 @@ var setRunsOnAsCallerInputSchema = setRunsOnInputSchemaDefinition.omit({
|
|
|
69483
69565
|
workspaceId: true
|
|
69484
69566
|
});
|
|
69485
69567
|
|
|
69568
|
+
// ../../modules/agent/contract/src/agent-share-request.ts
|
|
69569
|
+
var idSchema15 = external_exports.string().min(1).max(80);
|
|
69570
|
+
var AGENT_SHARE_REQUEST_MAX_GRANTEES = 20;
|
|
69571
|
+
var askAgentShareInputSchemaDefinition = external_exports.object({
|
|
69572
|
+
workspaceId: external_exports.string().min(1),
|
|
69573
|
+
agentId: idSchema15,
|
|
69574
|
+
grantees: external_exports.array(agentGranteeSchema).min(1).max(AGENT_SHARE_REQUEST_MAX_GRANTEES)
|
|
69575
|
+
});
|
|
69576
|
+
var askAgentShareInputSchema = askAgentShareInputSchemaDefinition;
|
|
69577
|
+
var cancelAgentShareAskInputSchemaDefinition = external_exports.object({
|
|
69578
|
+
workspaceId: external_exports.string().min(1),
|
|
69579
|
+
agentId: idSchema15,
|
|
69580
|
+
grantee: agentGranteeSchema
|
|
69581
|
+
});
|
|
69582
|
+
var cancelAgentShareAskInputSchema = cancelAgentShareAskInputSchemaDefinition;
|
|
69583
|
+
var decideAgentShareRequestInputSchemaDefinition = external_exports.object({
|
|
69584
|
+
workspaceId: external_exports.string().min(1),
|
|
69585
|
+
requestId: idSchema15,
|
|
69586
|
+
decision: external_exports.enum(["approved", "denied"])
|
|
69587
|
+
});
|
|
69588
|
+
var askAgentShareAsCallerInputSchemaDefinition = external_exports.object({
|
|
69589
|
+
agent: external_exports.string().trim().min(1).max(80),
|
|
69590
|
+
grantees: external_exports.array(agentGranteeSchema).min(1).max(AGENT_SHARE_REQUEST_MAX_GRANTEES)
|
|
69591
|
+
});
|
|
69592
|
+
var agentShareDecisionSchemaDefinition = external_exports.object({
|
|
69593
|
+
state: external_exports.enum(["approved", "denied"]),
|
|
69594
|
+
added: external_exports.array(external_exports.string()),
|
|
69595
|
+
skipped: external_exports.array(external_exports.string())
|
|
69596
|
+
});
|
|
69597
|
+
var agentShareRequestedPayloadSchemaDefinition = external_exports.object({
|
|
69598
|
+
workspaceId: external_exports.string().min(1),
|
|
69599
|
+
requestId: external_exports.string().min(1),
|
|
69600
|
+
agentId: external_exports.string().min(1),
|
|
69601
|
+
agentName: external_exports.string(),
|
|
69602
|
+
requesterUserId: external_exports.string().min(1),
|
|
69603
|
+
requesterName: external_exports.string(),
|
|
69604
|
+
/** The requester's agent whose key asked for them; empty when they asked themselves. */
|
|
69605
|
+
viaAgentName: external_exports.string().default(""),
|
|
69606
|
+
grantees: external_exports.array(external_exports.string()),
|
|
69607
|
+
deciderIds: external_exports.array(external_exports.string().min(1)),
|
|
69608
|
+
expiresAt: external_exports.iso.datetime()
|
|
69609
|
+
});
|
|
69610
|
+
var agentShareResolvedPayloadSchemaDefinition = external_exports.object({
|
|
69611
|
+
workspaceId: external_exports.string().min(1),
|
|
69612
|
+
requestId: external_exports.string().min(1),
|
|
69613
|
+
agentId: external_exports.string().min(1),
|
|
69614
|
+
agentName: external_exports.string(),
|
|
69615
|
+
requesterUserId: external_exports.string().min(1),
|
|
69616
|
+
state: external_exports.enum(["approved", "denied", "expired", "cancelled"]),
|
|
69617
|
+
/** The decider, or the requester who took it back; null when it expired. */
|
|
69618
|
+
resolvedByUserId: external_exports.string().min(1).nullable(),
|
|
69619
|
+
resolvedByName: external_exports.string(),
|
|
69620
|
+
asked: external_exports.array(external_exports.string()),
|
|
69621
|
+
added: external_exports.array(external_exports.string()),
|
|
69622
|
+
skipped: external_exports.array(external_exports.string())
|
|
69623
|
+
});
|
|
69624
|
+
|
|
69486
69625
|
// ../../modules/agent/contract/src/agent-transfer.ts
|
|
69487
69626
|
var workspaceIdSchema12 = external_exports.string().min(1);
|
|
69488
|
-
var
|
|
69627
|
+
var idSchema16 = external_exports.string().min(1).max(200);
|
|
69489
69628
|
var agentRefSchema7 = external_exports.string().trim().min(1).max(80);
|
|
69490
69629
|
var agentTransferOfferSchemaDefinition = external_exports.object({
|
|
69491
69630
|
id: external_exports.string().min(1),
|
|
@@ -69502,7 +69641,7 @@ var agentTransferOfferSchemaDefinition = external_exports.object({
|
|
|
69502
69641
|
var agentTransferOfferSchema = agentTransferOfferSchemaDefinition;
|
|
69503
69642
|
var agentTransferInputSchemaDefinition = external_exports.object({
|
|
69504
69643
|
workspaceId: workspaceIdSchema12,
|
|
69505
|
-
agentId:
|
|
69644
|
+
agentId: idSchema16
|
|
69506
69645
|
});
|
|
69507
69646
|
var agentTransferInputSchema = agentTransferInputSchemaDefinition;
|
|
69508
69647
|
var agentTransferAsCallerInputSchemaDefinition = external_exports.object({ agent: agentRefSchema7 });
|
|
@@ -69562,18 +69701,18 @@ var agentWorkingSchema = agentWorkingSchemaDefinition;
|
|
|
69562
69701
|
|
|
69563
69702
|
// ../../modules/agent/contract/src/agent-workspace-default.ts
|
|
69564
69703
|
var workspaceIdSchema13 = external_exports.string().min(1);
|
|
69565
|
-
var
|
|
69704
|
+
var idSchema17 = external_exports.string().min(1).max(200);
|
|
69566
69705
|
var agentRefSchema8 = external_exports.string().trim().min(1).max(80);
|
|
69567
69706
|
var workspaceDefaultAgentSchemaDefinition = external_exports.object({
|
|
69568
69707
|
/** Null when the workspace has none, or its pick was removed. */
|
|
69569
|
-
agentId:
|
|
69708
|
+
agentId: idSchema17.nullable(),
|
|
69570
69709
|
name: external_exports.string().nullable()
|
|
69571
69710
|
});
|
|
69572
69711
|
var workspaceDefaultAgentSchema = workspaceDefaultAgentSchemaDefinition;
|
|
69573
69712
|
var setWorkspaceDefaultAgentInputSchemaDefinition = external_exports.object({
|
|
69574
69713
|
workspaceId: workspaceIdSchema13,
|
|
69575
69714
|
/** A team agent of the workspace; null clears the pick. */
|
|
69576
|
-
agentId:
|
|
69715
|
+
agentId: idSchema17.nullable()
|
|
69577
69716
|
});
|
|
69578
69717
|
var setWorkspaceDefaultAgentInputSchema = setWorkspaceDefaultAgentInputSchemaDefinition;
|
|
69579
69718
|
var setWorkspaceDefaultAgentAsCallerInputSchemaDefinition = external_exports.object({
|
|
@@ -69587,7 +69726,7 @@ var AGENT_JOIN_REQUEST_TTL_SECONDS = 24 * 60 * 60;
|
|
|
69587
69726
|
var AGENT_ONLINE_WINDOW_SECONDS = 2 * 60;
|
|
69588
69727
|
var INBOX_WAIT_MAX_SECONDS = 55;
|
|
69589
69728
|
var workspaceIdSchema14 = external_exports.string().min(1);
|
|
69590
|
-
var
|
|
69729
|
+
var idSchema18 = external_exports.string().min(1).max(80);
|
|
69591
69730
|
var agentHarnessSchema = external_exports.enum([
|
|
69592
69731
|
"claude-code",
|
|
69593
69732
|
"codex",
|
|
@@ -69635,17 +69774,17 @@ var agentContextSchemaDefinition = external_exports.object({
|
|
|
69635
69774
|
updatedAt: external_exports.iso.datetime().nullable()
|
|
69636
69775
|
});
|
|
69637
69776
|
var agentHostSchemaDefinition = external_exports.object({
|
|
69638
|
-
machineId:
|
|
69777
|
+
machineId: idSchema18,
|
|
69639
69778
|
whenOffline: external_exports.enum(["wait", "sandbox"])
|
|
69640
69779
|
});
|
|
69641
69780
|
var setAgentHostInputSchemaDefinition = external_exports.object({
|
|
69642
69781
|
workspaceId: workspaceIdSchema14,
|
|
69643
|
-
agentId:
|
|
69782
|
+
agentId: idSchema18,
|
|
69644
69783
|
host: agentHostSchemaDefinition.nullable()
|
|
69645
69784
|
});
|
|
69646
69785
|
var setAgentComputerKeyInputSchemaDefinition = external_exports.object({
|
|
69647
69786
|
workspaceId: workspaceIdSchema14,
|
|
69648
|
-
agentId:
|
|
69787
|
+
agentId: idSchema18,
|
|
69649
69788
|
computerKey: external_exports.string().min(1).max(200).nullable()
|
|
69650
69789
|
});
|
|
69651
69790
|
var agentSetupStateSchemaDefinition = external_exports.enum(["setting_up", "ready", "failed"]);
|
|
@@ -69657,13 +69796,13 @@ var agentSetupReadingSchemaDefinition = external_exports.object({
|
|
|
69657
69796
|
});
|
|
69658
69797
|
var agentSetupReadingSchema = agentSetupReadingSchemaDefinition;
|
|
69659
69798
|
var agentSchemaDefinition = external_exports.object({
|
|
69660
|
-
id:
|
|
69799
|
+
id: idSchema18,
|
|
69661
69800
|
workspaceId: workspaceIdSchema14,
|
|
69662
69801
|
name: external_exports.string(),
|
|
69663
69802
|
kind: external_exports.enum(["personal", "team"]),
|
|
69664
69803
|
hosting: agentHostingSchema,
|
|
69665
69804
|
harness: agentHarnessSchema,
|
|
69666
|
-
ownerUserId:
|
|
69805
|
+
ownerUserId: idSchema18,
|
|
69667
69806
|
status: external_exports.enum(["connected", "disconnected"]),
|
|
69668
69807
|
online: external_exports.boolean(),
|
|
69669
69808
|
lastSeenAt: external_exports.iso.datetime().nullable(),
|
|
@@ -69716,7 +69855,7 @@ var agentSchemaDefinition = external_exports.object({
|
|
|
69716
69855
|
});
|
|
69717
69856
|
var agentSchema = agentSchemaDefinition;
|
|
69718
69857
|
var agentChannelSchemaDefinition = external_exports.object({
|
|
69719
|
-
id:
|
|
69858
|
+
id: idSchema18,
|
|
69720
69859
|
name: external_exports.string(),
|
|
69721
69860
|
kind: external_exports.enum(["public", "private", "dm", "group", "chat"])
|
|
69722
69861
|
});
|
|
@@ -69738,7 +69877,7 @@ var createAgentInputSchemaDefinition = external_exports.object({
|
|
|
69738
69877
|
modelLevel: agentModelLevelSchema.optional(),
|
|
69739
69878
|
kind: external_exports.enum(["personal", "team"]).default("personal"),
|
|
69740
69879
|
instructions: instructionsSchema.default(""),
|
|
69741
|
-
channelIds: external_exports.array(
|
|
69880
|
+
channelIds: external_exports.array(idSchema18).max(50).default([]),
|
|
69742
69881
|
/** A Claude Code or Codex agent drawing from this login pool; a team one needs a pool. */
|
|
69743
69882
|
/** The pool's id or name. */
|
|
69744
69883
|
loginPoolId: external_exports.string().min(1).max(200).optional()
|
|
@@ -69751,7 +69890,7 @@ var createSupportAgentInputSchemaDefinition = external_exports.object({
|
|
|
69751
69890
|
});
|
|
69752
69891
|
var updateAgentInputSchemaDefinition = external_exports.object({
|
|
69753
69892
|
workspaceId: workspaceIdSchema14,
|
|
69754
|
-
agentId:
|
|
69893
|
+
agentId: idSchema18,
|
|
69755
69894
|
name: agentNameSchema.optional(),
|
|
69756
69895
|
avatar: agentAvatarInputSchema.optional(),
|
|
69757
69896
|
/** A Laze models agent's level; null puts it back on Default. */
|
|
@@ -69764,7 +69903,7 @@ var updateAgentInputSchemaDefinition = external_exports.object({
|
|
|
69764
69903
|
effort: runEffortInputSchema.optional(),
|
|
69765
69904
|
instructions: instructionsSchema.optional(),
|
|
69766
69905
|
/** The whole set: channels left out are left. */
|
|
69767
|
-
channelIds: external_exports.array(
|
|
69906
|
+
channelIds: external_exports.array(idSchema18).max(50).optional(),
|
|
69768
69907
|
/** Agents Laze runs only: paused, it does not wake until resumed and its messages wait. */
|
|
69769
69908
|
paused: external_exports.boolean().optional(),
|
|
69770
69909
|
/** Why it is paused, shown on the agents page and in the notice under held messages. */
|
|
@@ -69795,9 +69934,9 @@ var mintLinkInputSchemaDefinition = external_exports.object({
|
|
|
69795
69934
|
/** Left out, the agent names itself when it joins, else it takes its harness's name. */
|
|
69796
69935
|
name: external_exports.string().trim().max(80).optional(),
|
|
69797
69936
|
/** The channel the agent joins once linked. */
|
|
69798
|
-
channelId:
|
|
69937
|
+
channelId: idSchema18.optional(),
|
|
69799
69938
|
/** One of the minting person's connected agents: redeeming gives it a new key instead. */
|
|
69800
|
-
reconnectAgentId:
|
|
69939
|
+
reconnectAgentId: idSchema18.optional()
|
|
69801
69940
|
});
|
|
69802
69941
|
var mintLinkInputSchema = mintLinkInputSchemaDefinition;
|
|
69803
69942
|
var mintedLinkSchemaDefinition = external_exports.object({
|
|
@@ -69829,7 +69968,7 @@ var redeemedLinkSchemaDefinition = external_exports.object({
|
|
|
69829
69968
|
agent: agentSchemaDefinition,
|
|
69830
69969
|
/** The agent's own `lz_` key, shown once. */
|
|
69831
69970
|
apiKey: external_exports.string(),
|
|
69832
|
-
channelId:
|
|
69971
|
+
channelId: idSchema18.nullable(),
|
|
69833
69972
|
/** The owner's key that may only ask for a new agent (`laze agent request`), shown once. */
|
|
69834
69973
|
requestKey: external_exports.string().nullable().optional()
|
|
69835
69974
|
});
|
|
@@ -69894,12 +70033,12 @@ var inboxCatchUpSchemaDefinition = external_exports.object({
|
|
|
69894
70033
|
});
|
|
69895
70034
|
var inboxCatchUpSchema = inboxCatchUpSchemaDefinition;
|
|
69896
70035
|
var inboxMessageSchemaDefinition = external_exports.object({
|
|
69897
|
-
messageId:
|
|
69898
|
-
channelId:
|
|
70036
|
+
messageId: idSchema18,
|
|
70037
|
+
channelId: idSchema18,
|
|
69899
70038
|
channelName: external_exports.string(),
|
|
69900
70039
|
channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
|
|
69901
|
-
threadRootId:
|
|
69902
|
-
author: external_exports.object({ kind: external_exports.enum(["person", "agent"]), id:
|
|
70040
|
+
threadRootId: idSchema18.nullable(),
|
|
70041
|
+
author: external_exports.object({ kind: external_exports.enum(["person", "agent"]), id: idSchema18, name: external_exports.string() }),
|
|
69903
70042
|
body: external_exports.string(),
|
|
69904
70043
|
postedAt: external_exports.iso.datetime(),
|
|
69905
70044
|
/** On the first message of each conversation in a catch up (agent-catch-up.feature). */
|
|
@@ -69920,18 +70059,18 @@ var inboxWaitingSchemaDefinition = external_exports.object({
|
|
|
69920
70059
|
session: agentSessionSchemaDefinition.nullable()
|
|
69921
70060
|
});
|
|
69922
70061
|
var inboxPreviewSchemaDefinition = external_exports.object({
|
|
69923
|
-
messageId:
|
|
69924
|
-
channelId:
|
|
70062
|
+
messageId: idSchema18,
|
|
70063
|
+
channelId: idSchema18,
|
|
69925
70064
|
channelName: external_exports.string(),
|
|
69926
70065
|
channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
|
|
69927
|
-
author: external_exports.object({ kind: external_exports.enum(["person", "agent"]), id:
|
|
70066
|
+
author: external_exports.object({ kind: external_exports.enum(["person", "agent"]), id: idSchema18, name: external_exports.string() }),
|
|
69928
70067
|
/** At most 200 characters of the message. */
|
|
69929
70068
|
preview: external_exports.string().max(200),
|
|
69930
70069
|
postedAt: external_exports.iso.datetime()
|
|
69931
70070
|
});
|
|
69932
70071
|
var callerSchemaDefinition = external_exports.object({
|
|
69933
70072
|
kind: external_exports.enum(["person", "agent"]),
|
|
69934
|
-
id:
|
|
70073
|
+
id: idSchema18,
|
|
69935
70074
|
name: external_exports.string(),
|
|
69936
70075
|
workspaceId: workspaceIdSchema14,
|
|
69937
70076
|
agent: agentSchemaDefinition.nullable(),
|
|
@@ -69951,7 +70090,7 @@ var agentGuideFilesSchemaDefinition = external_exports.object({
|
|
|
69951
70090
|
});
|
|
69952
70091
|
var agentChannelLevelSchema = external_exports.enum(["everything", "mentions"]);
|
|
69953
70092
|
var callerChannelSchemaDefinition = external_exports.object({
|
|
69954
|
-
id:
|
|
70093
|
+
id: idSchema18,
|
|
69955
70094
|
name: external_exports.string(),
|
|
69956
70095
|
kind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
|
|
69957
70096
|
unread: external_exports.number().int().nonnegative(),
|
|
@@ -69966,8 +70105,8 @@ var callerChannelSchemaDefinition = external_exports.object({
|
|
|
69966
70105
|
});
|
|
69967
70106
|
var setChannelLevelInputSchemaDefinition = external_exports.object({
|
|
69968
70107
|
workspaceId: workspaceIdSchema14,
|
|
69969
|
-
agentId:
|
|
69970
|
-
channelId:
|
|
70108
|
+
agentId: idSchema18,
|
|
70109
|
+
channelId: idSchema18,
|
|
69971
70110
|
level: agentChannelLevelSchema
|
|
69972
70111
|
});
|
|
69973
70112
|
var setChannelLevelInputSchema = setChannelLevelInputSchemaDefinition;
|
|
@@ -69990,14 +70129,14 @@ var postAsCallerInputSchemaDefinition = external_exports.object({
|
|
|
69990
70129
|
/** A channel's name (with or without `#`) or id. */
|
|
69991
70130
|
channel: external_exports.string().trim().min(1).max(81),
|
|
69992
70131
|
body: external_exports.string().trim().min(1).max(4e4),
|
|
69993
|
-
threadRootId:
|
|
70132
|
+
threadRootId: idSchema18.optional(),
|
|
69994
70133
|
/** Files the caller uploaded to this conversation, carried as the composer's attachments are. */
|
|
69995
|
-
attachmentIds: external_exports.array(
|
|
70134
|
+
attachmentIds: external_exports.array(idSchema18).max(10).optional(),
|
|
69996
70135
|
/** The messages of the agent's turn this post answers. */
|
|
69997
|
-
answers: external_exports.array(
|
|
70136
|
+
answers: external_exports.array(idSchema18).max(200).optional()
|
|
69998
70137
|
});
|
|
69999
70138
|
var replyAsCallerInputSchemaDefinition = external_exports.object({
|
|
70000
|
-
messageId:
|
|
70139
|
+
messageId: idSchema18,
|
|
70001
70140
|
body: external_exports.string().trim().min(1).max(4e4),
|
|
70002
70141
|
/** Needed for a message that is not in the caller's inbox. */
|
|
70003
70142
|
channel: external_exports.string().trim().min(1).max(81).optional(),
|
|
@@ -70006,20 +70145,20 @@ var replyAsCallerInputSchemaDefinition = external_exports.object({
|
|
|
70006
70145
|
/** A thread reply also shows in the channel, as "Also send to #channel" does. */
|
|
70007
70146
|
alsoInChannel: external_exports.boolean().optional(),
|
|
70008
70147
|
/** Files the caller uploaded to the reply's conversation, carried as the composer's are. */
|
|
70009
|
-
attachmentIds: external_exports.array(
|
|
70148
|
+
attachmentIds: external_exports.array(idSchema18).max(10).optional(),
|
|
70010
70149
|
/** The other messages of the agent's turn this reply answers. */
|
|
70011
|
-
answers: external_exports.array(
|
|
70150
|
+
answers: external_exports.array(idSchema18).max(200).optional()
|
|
70012
70151
|
});
|
|
70013
70152
|
var postedMessageSchemaDefinition = external_exports.object({
|
|
70014
|
-
messageId:
|
|
70015
|
-
channelId:
|
|
70016
|
-
threadRootId:
|
|
70153
|
+
messageId: idSchema18,
|
|
70154
|
+
channelId: idSchema18,
|
|
70155
|
+
threadRootId: idSchema18.nullable(),
|
|
70017
70156
|
/** Workspace members the message mentioned who are not in the channel: it did not reach them. */
|
|
70018
70157
|
notInChannel: external_exports.array(external_exports.object({ ...notInChannelSchema.shape, name: external_exports.string() })).default([]),
|
|
70019
70158
|
/** Mentioned agents that are paused or out of usage: the message waits for each of them. */
|
|
70020
70159
|
waitsFor: external_exports.array(
|
|
70021
70160
|
external_exports.object({
|
|
70022
|
-
agentId:
|
|
70161
|
+
agentId: idSchema18,
|
|
70023
70162
|
name: external_exports.string(),
|
|
70024
70163
|
cause: external_exports.enum(["paused", "out_of_usage"]),
|
|
70025
70164
|
/** When an agent out of usage gets its usage back; null while paused. */
|
|
@@ -70036,15 +70175,15 @@ var searchAsCallerInputSchemaDefinition = external_exports.object({
|
|
|
70036
70175
|
});
|
|
70037
70176
|
var callerActorNameSchema = external_exports.object({
|
|
70038
70177
|
kind: external_exports.enum(["person", "agent"]),
|
|
70039
|
-
id:
|
|
70178
|
+
id: idSchema18,
|
|
70040
70179
|
name: external_exports.string()
|
|
70041
70180
|
});
|
|
70042
70181
|
var callerSearchHitSchemaDefinition = external_exports.object({
|
|
70043
|
-
messageId:
|
|
70044
|
-
channelId:
|
|
70182
|
+
messageId: idSchema18,
|
|
70183
|
+
channelId: idSchema18,
|
|
70045
70184
|
channelName: external_exports.string(),
|
|
70046
70185
|
channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
|
|
70047
|
-
threadRootId:
|
|
70186
|
+
threadRootId: idSchema18.nullable(),
|
|
70048
70187
|
seq: external_exports.number().int().positive(),
|
|
70049
70188
|
/** `external` for a mirrored message from someone outside Laze. */
|
|
70050
70189
|
author: external_exports.object({
|
|
@@ -70066,7 +70205,7 @@ var callerSearchResultSchemaDefinition = external_exports.object({
|
|
|
70066
70205
|
/** Names for the mention tokens in the bodies. */
|
|
70067
70206
|
mentions: external_exports.object({
|
|
70068
70207
|
actors: external_exports.array(callerActorNameSchema),
|
|
70069
|
-
channels: external_exports.array(external_exports.object({ id:
|
|
70208
|
+
channels: external_exports.array(external_exports.object({ id: idSchema18, name: external_exports.string() }))
|
|
70070
70209
|
})
|
|
70071
70210
|
});
|
|
70072
70211
|
var agentMachineInputSchemaDefinition = external_exports.object({ host: external_exports.string().trim().min(1).max(200) });
|
|
@@ -70149,27 +70288,29 @@ var agentsCopy = {
|
|
|
70149
70288
|
paintOnly: true,
|
|
70150
70289
|
storable: agentsForDisk
|
|
70151
70290
|
};
|
|
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:
|
|
70291
|
+
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
70292
|
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:
|
|
70293
|
+
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
70294
|
var agentJoinTrpc = defineTrpcContract("agents").query("joinRequest").withInput(joinRequestInputSchema).withOutput(joinRequestViewSchema).mutation("approveJoinRequest").withInput(approveJoinRequestInputSchema).withOutput(joinRequestViewSchema).mutation("denyJoinRequest").withInput(joinRequestInputSchema).withOutput(joinRequestViewSchema).build();
|
|
70156
70295
|
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
70296
|
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:
|
|
70297
|
+
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
70298
|
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
70299
|
var agentLangwatchTrpc = defineTrpcContract("agents").query("langwatchTracing").withInput(agentLangwatchInputSchema).withOutput(agentLangwatchTracingSchema).mutation("setLangwatchTracing").withInput(setAgentLangwatchInputSchema).withOutput(agentLangwatchTracingSchema).build();
|
|
70161
70300
|
var agentPoolModelTrpc = defineTrpcContract("agents").mutation("setLoginPoolModel").withInput(setLoginPoolModelInputSchema).withOutput(loginPoolsSchema).build();
|
|
70162
70301
|
var agentRunsOnTrpc = defineTrpcContract("agents").mutation("setRunsOn").withInput(setRunsOnInputSchema).withOutput(agentSchema).build();
|
|
70163
70302
|
var agentWelcomeTrpc = defineTrpcContract("agents").mutation("pressWelcome").withInput(pressWelcomeInputSchema).withOutput(pressedWelcomeSchema).mutation("pressCollab").withInput(pressCollabInputSchema).withOutput(pressedCollabSchema).build();
|
|
70164
70303
|
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:
|
|
70304
|
+
var agentOpenConversationTrpc = defineTrpcContract("agents").mutation("openConversation").withInput(openConversationInputSchema).withOutput(external_exports.object({ channelId: idSchema18 })).build();
|
|
70166
70305
|
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
|
|
70306
|
+
var agentShareRequestTrpc = defineTrpcContract("agents").mutation("askShare").withInput(askAgentShareInputSchema).withOutput(agentAccessSchema).mutation("cancelShareAsk").withInput(cancelAgentShareAskInputSchema).withOutput(agentAccessSchema).build();
|
|
70307
|
+
var agentReconnectTrpc = defineTrpcContract("agents").query("reconnect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema18 })).withOutput(agentReconnectSchema).build();
|
|
70168
70308
|
var agentTrpc = joinTrpcContracts(
|
|
70169
70309
|
"agents",
|
|
70170
70310
|
agentCoreTrpc,
|
|
70171
70311
|
agentPoolGroupTrpc,
|
|
70172
70312
|
agentReconnectTrpc,
|
|
70313
|
+
agentShareRequestTrpc,
|
|
70173
70314
|
agentOpenConversationTrpc,
|
|
70174
70315
|
agentConversationCloseTrpc,
|
|
70175
70316
|
agentTurnTrpc,
|
|
@@ -70348,7 +70489,7 @@ var agentKeepsFailingPayloadSchemaDefinition = external_exports.object({
|
|
|
70348
70489
|
|
|
70349
70490
|
// ../../modules/agent/contract/src/agent-caller-access.ts
|
|
70350
70491
|
var agentRefSchema9 = external_exports.string().trim().min(1).max(80);
|
|
70351
|
-
var
|
|
70492
|
+
var idSchema19 = external_exports.string().min(1).max(64);
|
|
70352
70493
|
var agentAsCallerInputSchemaDefinition = external_exports.object({ agent: agentRefSchema9 });
|
|
70353
70494
|
var shareAgentAsCallerInputSchemaDefinition = external_exports.object({
|
|
70354
70495
|
agent: agentRefSchema9,
|
|
@@ -70356,18 +70497,18 @@ var shareAgentAsCallerInputSchemaDefinition = external_exports.object({
|
|
|
70356
70497
|
});
|
|
70357
70498
|
var stopTurnAsCallerInputSchemaDefinition = external_exports.object({
|
|
70358
70499
|
agent: agentRefSchema9,
|
|
70359
|
-
channelId:
|
|
70500
|
+
channelId: idSchema19
|
|
70360
70501
|
});
|
|
70361
70502
|
var retryTurnAsCallerInputSchemaDefinition = external_exports.object({
|
|
70362
70503
|
agent: agentRefSchema9,
|
|
70363
|
-
channelId:
|
|
70364
|
-
messageId:
|
|
70504
|
+
channelId: idSchema19,
|
|
70505
|
+
messageId: idSchema19
|
|
70365
70506
|
});
|
|
70366
70507
|
var postTurnFailureAsCallerInputSchemaDefinition = external_exports.object({
|
|
70367
|
-
channelId:
|
|
70368
|
-
threadRootId:
|
|
70508
|
+
channelId: idSchema19,
|
|
70509
|
+
threadRootId: idSchema19.optional(),
|
|
70369
70510
|
/** The person's message the turn was on, which Try again sends to the agent again. */
|
|
70370
|
-
messageId:
|
|
70511
|
+
messageId: idSchema19,
|
|
70371
70512
|
/** The attempt that failed, so Try again knows once a later one is stored. */
|
|
70372
70513
|
attempt: external_exports.number().int().min(1).optional(),
|
|
70373
70514
|
line: external_exports.string().trim().min(1).max(1e3),
|
|
@@ -70376,7 +70517,7 @@ var postTurnFailureAsCallerInputSchemaDefinition = external_exports.object({
|
|
|
70376
70517
|
var mintLinkAsCallerInputSchemaDefinition = external_exports.object({
|
|
70377
70518
|
/** Left out, the agent that joins with the link names itself. */
|
|
70378
70519
|
name: external_exports.string().trim().max(80).optional(),
|
|
70379
|
-
channelId:
|
|
70520
|
+
channelId: idSchema19.optional(),
|
|
70380
70521
|
/** One of the key's person's agents by id or name: redeeming gives it a new key instead. */
|
|
70381
70522
|
reconnect: external_exports.string().trim().min(1).max(80).optional()
|
|
70382
70523
|
});
|
|
@@ -70517,26 +70658,58 @@ var agentPersonMessageReceivedPayloadSchemaDefinition = external_exports.object(
|
|
|
70517
70658
|
at: external_exports.iso.datetime()
|
|
70518
70659
|
});
|
|
70519
70660
|
|
|
70661
|
+
// ../../modules/agent/contract/src/agent-link-telemetry.ts
|
|
70662
|
+
var agentLinkRedeemReasonSchema = external_exports.enum([
|
|
70663
|
+
"connected",
|
|
70664
|
+
"reconnected",
|
|
70665
|
+
"malformed_token",
|
|
70666
|
+
"unknown_link",
|
|
70667
|
+
"expired",
|
|
70668
|
+
"already_used",
|
|
70669
|
+
"secret_mismatch",
|
|
70670
|
+
/** A CLI link redeemed as an OAuth code, or an OAuth code redeemed by the CLI. */
|
|
70671
|
+
"wrong_kind",
|
|
70672
|
+
/** An OAuth code exchanged by another client, redirect URI or PKCE verifier. */
|
|
70673
|
+
"binding_mismatch",
|
|
70674
|
+
"owner_mismatch",
|
|
70675
|
+
/** The reconnect agent is gone or no longer connected. */
|
|
70676
|
+
"agent_unavailable"
|
|
70677
|
+
]);
|
|
70678
|
+
var agentLinkRedeemPathSchema = external_exports.enum(["link", "oauth"]);
|
|
70679
|
+
var agentLinkRedeemAttemptedPayloadSchemaDefinition = external_exports.object({
|
|
70680
|
+
workspaceId: external_exports.string().min(1),
|
|
70681
|
+
linkId: external_exports.string().min(1).max(64),
|
|
70682
|
+
outcome: external_exports.enum(["connected", "reconnected", "refused"]),
|
|
70683
|
+
reason: agentLinkRedeemReasonSchema,
|
|
70684
|
+
path: agentLinkRedeemPathSchema,
|
|
70685
|
+
harness: agentHarnessSchema.catch("other"),
|
|
70686
|
+
/** The `x-laze-cli-version` the request carried; null for any other client. */
|
|
70687
|
+
cliVersion: external_exports.string().max(32).nullable(),
|
|
70688
|
+
/** The agent connected or reconnected; null when refused. */
|
|
70689
|
+
agentId: external_exports.string().min(1).nullable(),
|
|
70690
|
+
at: external_exports.iso.datetime()
|
|
70691
|
+
});
|
|
70692
|
+
|
|
70520
70693
|
// ../../modules/agent/contract/src/agent-history.ts
|
|
70521
|
-
var
|
|
70694
|
+
var idSchema20 = external_exports.string().min(1).max(80);
|
|
70522
70695
|
var CALLER_HISTORY_LIMIT_MAX = 100;
|
|
70523
70696
|
var historyAsCallerInputSchemaDefinition = external_exports.object({
|
|
70524
70697
|
/** A channel the key's speaker is in, by id or name. */
|
|
70525
70698
|
channel: external_exports.string().trim().min(1).max(200),
|
|
70526
70699
|
/** Messages before this Laze message; none reads the newest page. */
|
|
70527
|
-
before:
|
|
70700
|
+
before: idSchema20.optional(),
|
|
70528
70701
|
/** Already past the cache: no cached messages, only where the live read goes on. */
|
|
70529
70702
|
olderThan: external_exports.iso.datetime().optional(),
|
|
70530
70703
|
limit: external_exports.number().int().min(1).max(CALLER_HISTORY_LIMIT_MAX).default(50)
|
|
70531
70704
|
});
|
|
70532
70705
|
var callerHistoryMessageSchemaDefinition = external_exports.object({
|
|
70533
|
-
messageId:
|
|
70534
|
-
threadRootId:
|
|
70706
|
+
messageId: idSchema20,
|
|
70707
|
+
threadRootId: idSchema20.nullable(),
|
|
70535
70708
|
seq: external_exports.number().int().positive(),
|
|
70536
70709
|
/** `external` for a mirrored message from someone outside Laze. */
|
|
70537
70710
|
author: external_exports.object({
|
|
70538
70711
|
kind: external_exports.enum(["person", "agent", "external"]),
|
|
70539
|
-
id:
|
|
70712
|
+
id: idSchema20,
|
|
70540
70713
|
name: external_exports.string()
|
|
70541
70714
|
}),
|
|
70542
70715
|
body: external_exports.string(),
|
|
@@ -70546,7 +70719,7 @@ var callerHistoryMessageSchemaDefinition = external_exports.object({
|
|
|
70546
70719
|
originKey: external_exports.string().nullable()
|
|
70547
70720
|
});
|
|
70548
70721
|
var callerHistorySchemaDefinition = external_exports.object({
|
|
70549
|
-
channelId:
|
|
70722
|
+
channelId: idSchema20,
|
|
70550
70723
|
channelName: external_exports.string(),
|
|
70551
70724
|
channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
|
|
70552
70725
|
/** The outside workspace a mirrored conversation shows, such as "Slack ACME HQ". */
|
|
@@ -70560,21 +70733,21 @@ var callerHistorySchemaDefinition = external_exports.object({
|
|
|
70560
70733
|
});
|
|
70561
70734
|
|
|
70562
70735
|
// ../../modules/agent/contract/src/agent-feed-refs.ts
|
|
70563
|
-
var
|
|
70736
|
+
var idSchema21 = external_exports.string().min(1).max(80);
|
|
70564
70737
|
var recordTurnFeedRefInputSchemaDefinition = external_exports.object({
|
|
70565
|
-
cardId:
|
|
70738
|
+
cardId: idSchema21,
|
|
70566
70739
|
kind: external_exports.enum(["added", "updated"]),
|
|
70567
70740
|
/** The card's own chat threads: a reply in one of them links nothing. */
|
|
70568
|
-
ownThreadRootIds: external_exports.array(
|
|
70741
|
+
ownThreadRootIds: external_exports.array(idSchema21).max(50).default([])
|
|
70569
70742
|
});
|
|
70570
70743
|
|
|
70571
70744
|
// ../../modules/agent/contract/src/agent-channel-admin.ts
|
|
70572
|
-
var
|
|
70745
|
+
var idSchema22 = external_exports.string().min(1).max(80);
|
|
70573
70746
|
var channelRefSchema = external_exports.string().trim().min(1).max(200);
|
|
70574
70747
|
var channelAsCallerInputSchemaDefinition = external_exports.object({ channel: channelRefSchema });
|
|
70575
70748
|
var callerChannelMemberSchemaDefinition = external_exports.object({
|
|
70576
70749
|
kind: external_exports.enum(["person", "agent"]),
|
|
70577
|
-
id:
|
|
70750
|
+
id: idSchema22,
|
|
70578
70751
|
name: external_exports.string(),
|
|
70579
70752
|
role: external_exports.enum(["admin", "member"]),
|
|
70580
70753
|
/** Active, away or unknown for a person the speaker may see; absent for agents. */
|
|
@@ -70584,7 +70757,7 @@ var callerChannelMemberSchemaDefinition = external_exports.object({
|
|
|
70584
70757
|
doNotDisturb: doNotDisturbSchema.nullable().optional()
|
|
70585
70758
|
});
|
|
70586
70759
|
var callerChannelDetailSchemaDefinition = external_exports.object({
|
|
70587
|
-
id:
|
|
70760
|
+
id: idSchema22,
|
|
70588
70761
|
name: external_exports.string(),
|
|
70589
70762
|
kind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
|
|
70590
70763
|
topic: external_exports.string(),
|
|
@@ -70618,17 +70791,17 @@ var activityAsCallerInputSchemaDefinition = external_exports.object({
|
|
|
70618
70791
|
limit: external_exports.number().int().min(1).max(100).default(50)
|
|
70619
70792
|
});
|
|
70620
70793
|
var callerActivityItemSchemaDefinition = external_exports.object({
|
|
70621
|
-
id:
|
|
70794
|
+
id: idSchema22,
|
|
70622
70795
|
kind: external_exports.enum(["mention", "thread_reply", "keyword", "reaction"]),
|
|
70623
|
-
channelId:
|
|
70796
|
+
channelId: idSchema22,
|
|
70624
70797
|
channelName: external_exports.string(),
|
|
70625
70798
|
channelKind: external_exports.enum(["public", "private", "dm", "group", "chat"]),
|
|
70626
|
-
messageId:
|
|
70627
|
-
threadRootId:
|
|
70799
|
+
messageId: idSchema22,
|
|
70800
|
+
threadRootId: idSchema22.nullable(),
|
|
70628
70801
|
/** `external` is someone outside Laze whose message a mirror brought in, named at the source. */
|
|
70629
70802
|
actor: external_exports.object({
|
|
70630
70803
|
kind: external_exports.enum(["person", "agent", "external"]),
|
|
70631
|
-
id:
|
|
70804
|
+
id: idSchema22,
|
|
70632
70805
|
name: external_exports.string()
|
|
70633
70806
|
}),
|
|
70634
70807
|
emoji: external_exports.string().nullable(),
|
|
@@ -70645,12 +70818,12 @@ var setStatusAsCallerInputSchemaDefinition = setStatusInputSchema.omit({ workspa
|
|
|
70645
70818
|
var setAwayAsCallerInputSchemaDefinition = external_exports.object({ away: external_exports.boolean() });
|
|
70646
70819
|
|
|
70647
70820
|
// ../../modules/agent/contract/src/agent-scheduled.ts
|
|
70648
|
-
var
|
|
70821
|
+
var idSchema23 = external_exports.string().min(1).max(80);
|
|
70649
70822
|
var channelRefSchema2 = external_exports.string().trim().min(1).max(200);
|
|
70650
70823
|
var scheduleAsCallerInputSchemaDefinition = external_exports.object({
|
|
70651
70824
|
channel: channelRefSchema2.optional(),
|
|
70652
|
-
threadRootId:
|
|
70653
|
-
replyTo:
|
|
70825
|
+
threadRootId: idSchema23.optional(),
|
|
70826
|
+
replyTo: idSchema23.optional(),
|
|
70654
70827
|
body: external_exports.string().trim().min(1).max(4e4),
|
|
70655
70828
|
sendAt: external_exports.iso.datetime({ offset: true }),
|
|
70656
70829
|
/** A reply that also goes to the channel at its time (`--also-channel`). */
|
|
@@ -70661,9 +70834,9 @@ var scheduleAsCallerInputSchemaDefinition = external_exports.object({
|
|
|
70661
70834
|
var listScheduledAsCallerInputSchemaDefinition = external_exports.object({
|
|
70662
70835
|
channel: channelRefSchema2.optional()
|
|
70663
70836
|
});
|
|
70664
|
-
var scheduledAsCallerInputSchemaDefinition = external_exports.object({ scheduledId:
|
|
70837
|
+
var scheduledAsCallerInputSchemaDefinition = external_exports.object({ scheduledId: idSchema23 });
|
|
70665
70838
|
var editScheduledAsCallerInputSchemaDefinition = external_exports.object({
|
|
70666
|
-
scheduledId:
|
|
70839
|
+
scheduledId: idSchema23,
|
|
70667
70840
|
body: external_exports.string().trim().min(1).max(4e4).optional(),
|
|
70668
70841
|
sendAt: external_exports.iso.datetime({ offset: true }).optional()
|
|
70669
70842
|
}).refine((input2) => input2.body !== void 0 || input2.sendAt !== void 0, {
|
|
@@ -71681,7 +71854,7 @@ function serverUrlOf({ context, args }) {
|
|
|
71681
71854
|
}
|
|
71682
71855
|
|
|
71683
71856
|
// 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>";
|
|
71857
|
+
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
71858
|
function agentWord({ args, usage }) {
|
|
71686
71859
|
const agent3 = args.words[2];
|
|
71687
71860
|
if (!agent3) throw new CliUsageError(usage);
|
|
@@ -71744,8 +71917,35 @@ function granteeOf({
|
|
|
71744
71917
|
if (agent3) return { kind: "agent", agentId: agent3 };
|
|
71745
71918
|
return { kind: "channel", channelId: channel };
|
|
71746
71919
|
}
|
|
71920
|
+
var GRANTEE_FLAGS = ["person", "group", "channel", "agent"];
|
|
71921
|
+
function askedGranteesOf(args) {
|
|
71922
|
+
return GRANTEE_FLAGS.flatMap(
|
|
71923
|
+
(name3) => (args.lists[name3] ?? []).map(
|
|
71924
|
+
(value) => granteeOf({
|
|
71925
|
+
person: name3 === "person" ? value : void 0,
|
|
71926
|
+
group: name3 === "group" ? value : void 0,
|
|
71927
|
+
channel: name3 === "channel" ? value : void 0,
|
|
71928
|
+
agent: name3 === "agent" ? value : void 0
|
|
71929
|
+
})
|
|
71930
|
+
)
|
|
71931
|
+
);
|
|
71932
|
+
}
|
|
71933
|
+
async function askToShare({ context, args, agent: agent3 }) {
|
|
71934
|
+
const grantees = askedGranteesOf(args);
|
|
71935
|
+
if (grantees.length === 0) throw new CliUsageError(SHARE_USAGE);
|
|
71936
|
+
const { client } = await signedIn({ context, args });
|
|
71937
|
+
const access = await client.post("/api/agents/share/ask", { agent: agent3, grantees });
|
|
71938
|
+
const request2 = access.shareRequests?.[0];
|
|
71939
|
+
if (args.flags.json || access.mayShare || !request2) return printAccess({ context, args, access });
|
|
71940
|
+
context.out(`Asked ${request2.deciderNames.join(" or ")} to add them to ${agent3}.
|
|
71941
|
+
`);
|
|
71942
|
+
}
|
|
71747
71943
|
async function shareAgent({ context, args }) {
|
|
71748
71944
|
const agent3 = agentWord({ args, usage: SHARE_USAGE });
|
|
71945
|
+
if (args.flags.ask === true) {
|
|
71946
|
+
if (args.words[1] === "unshare") throw new CliUsageError(SHARE_USAGE);
|
|
71947
|
+
return askToShare({ context, args, agent: agent3 });
|
|
71948
|
+
}
|
|
71749
71949
|
const person = flagText({ args, name: "person" });
|
|
71750
71950
|
const group = flagText({ args, name: "group" });
|
|
71751
71951
|
const channel = flagText({ args, name: "channel" });
|
|
@@ -88939,7 +89139,7 @@ var agentHostGrantDefinition = external_exports.object({
|
|
|
88939
89139
|
});
|
|
88940
89140
|
|
|
88941
89141
|
// ../../modules/compute/contract/src/compute.ts
|
|
88942
|
-
var
|
|
89142
|
+
var idSchema24 = external_exports.string().min(1).max(64);
|
|
88943
89143
|
var workspaceIdSchema23 = external_exports.string().min(1).max(64);
|
|
88944
89144
|
var machineStateSchema = external_exports.enum([
|
|
88945
89145
|
"starting",
|
|
@@ -88961,24 +89161,24 @@ var machinePriceDefinition = external_exports.object({
|
|
|
88961
89161
|
asleepMonthUsd: external_exports.number()
|
|
88962
89162
|
});
|
|
88963
89163
|
var machineGranteeKindSchema = external_exports.enum(["member", "agent"]);
|
|
88964
|
-
var machineGranteeDefinition = external_exports.object({ kind: machineGranteeKindSchema, id:
|
|
89164
|
+
var machineGranteeDefinition = external_exports.object({ kind: machineGranteeKindSchema, id: idSchema24 });
|
|
88965
89165
|
var machineGrantDefinition = external_exports.object({
|
|
88966
89166
|
kind: machineGranteeKindSchema,
|
|
88967
|
-
id:
|
|
88968
|
-
grantedByUserId:
|
|
89167
|
+
id: idSchema24,
|
|
89168
|
+
grantedByUserId: idSchema24,
|
|
88969
89169
|
grantedAt: external_exports.iso.datetime()
|
|
88970
89170
|
});
|
|
88971
89171
|
var machineDefinition = external_exports.object({
|
|
88972
|
-
id:
|
|
89172
|
+
id: idSchema24,
|
|
88973
89173
|
workspaceId: workspaceIdSchema23,
|
|
88974
89174
|
name: external_exports.string(),
|
|
88975
89175
|
type: machineTypeSchema,
|
|
88976
89176
|
zone: external_exports.string(),
|
|
88977
89177
|
state: machineStateSchema,
|
|
88978
|
-
ownerUserId:
|
|
88979
|
-
requesterUserId:
|
|
88980
|
-
renterAgentId:
|
|
88981
|
-
channelId:
|
|
89178
|
+
ownerUserId: idSchema24,
|
|
89179
|
+
requesterUserId: idSchema24,
|
|
89180
|
+
renterAgentId: idSchema24.nullable(),
|
|
89181
|
+
channelId: idSchema24.nullable(),
|
|
88982
89182
|
ipAddress: external_exports.string().nullable(),
|
|
88983
89183
|
sites: external_exports.array(machineSiteDefinition),
|
|
88984
89184
|
/** Members and agents the owner shared the machine with, beyond the owner's own agents. */
|
|
@@ -89010,7 +89210,7 @@ var machineDefinition = external_exports.object({
|
|
|
89010
89210
|
/** The owner's agents set to run on this own machine. */
|
|
89011
89211
|
hostedAgents: external_exports.array(
|
|
89012
89212
|
external_exports.object({
|
|
89013
|
-
id:
|
|
89213
|
+
id: idSchema24,
|
|
89014
89214
|
name: external_exports.string(),
|
|
89015
89215
|
whenOffline: external_exports.enum(["wait", "sandbox"])
|
|
89016
89216
|
})
|
|
@@ -89089,11 +89289,11 @@ var loginTerminalDefinition = external_exports.discriminatedUnion("status", [
|
|
|
89089
89289
|
var loginTerminalSchema = loginTerminalDefinition;
|
|
89090
89290
|
var warmComputerDefinition = external_exports.object({ status: external_exports.enum(["starting", "ready"]) });
|
|
89091
89291
|
var warmComputerSchema = warmComputerDefinition;
|
|
89092
|
-
var screenRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, sessionId:
|
|
89292
|
+
var screenRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, sessionId: idSchema24 });
|
|
89093
89293
|
var screenRefSchema = screenRefDefinition;
|
|
89094
89294
|
var screenSessionDefinition = external_exports.object({
|
|
89095
|
-
sessionId:
|
|
89096
|
-
machineId:
|
|
89295
|
+
sessionId: idSchema24,
|
|
89296
|
+
machineId: idSchema24,
|
|
89097
89297
|
machineName: external_exports.string(),
|
|
89098
89298
|
site: external_exports.string().nullable(),
|
|
89099
89299
|
expiresAt: external_exports.iso.datetime(),
|
|
@@ -89127,7 +89327,7 @@ var ownMachineSshConnectDefinition = external_exports.object({
|
|
|
89127
89327
|
publicKey: external_exports.string()
|
|
89128
89328
|
});
|
|
89129
89329
|
var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
|
|
89130
|
-
var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, machineId:
|
|
89330
|
+
var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, machineId: idSchema24 });
|
|
89131
89331
|
var ComputeApi = moduleApi()("compute");
|
|
89132
89332
|
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
89333
|
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 +92032,7 @@ var EXTERNAL_CONNECTION_REST_PATHS = {
|
|
|
91832
92032
|
report: "/api/external-connections/report"
|
|
91833
92033
|
};
|
|
91834
92034
|
var workspaceIdSchema26 = external_exports.string().min(1).max(64);
|
|
91835
|
-
var
|
|
92035
|
+
var idSchema25 = external_exports.string().min(1).max(64);
|
|
91836
92036
|
var iso2 = external_exports.iso.datetime();
|
|
91837
92037
|
var workspaceInput5 = external_exports.object({ workspaceId: workspaceIdSchema26 });
|
|
91838
92038
|
var connectionReference = external_exports.string().trim().min(1).max(120);
|
|
@@ -91938,11 +92138,11 @@ var rosterDefinition = external_exports.object({
|
|
|
91938
92138
|
members: external_exports.array(rosterMemberDefinition)
|
|
91939
92139
|
});
|
|
91940
92140
|
var externalRosterSchema = rosterDefinition;
|
|
91941
|
-
var rosterInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, channelId:
|
|
92141
|
+
var rosterInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, channelId: idSchema25 });
|
|
91942
92142
|
var externalRosterInputSchema = rosterInputDefinition;
|
|
91943
92143
|
var rosterCountsInputDefinition = external_exports.object({
|
|
91944
92144
|
workspaceId: workspaceIdSchema26,
|
|
91945
|
-
channelIds: external_exports.array(
|
|
92145
|
+
channelIds: external_exports.array(idSchema25).max(200)
|
|
91946
92146
|
});
|
|
91947
92147
|
var externalRosterCountsInputSchema = rosterCountsInputDefinition;
|
|
91948
92148
|
var rosterCountsDefinition = external_exports.object({
|
|
@@ -91958,7 +92158,7 @@ var inviteInputDefinition = external_exports.object({
|
|
|
91958
92158
|
company: external_exports.string().trim().min(1).max(80).optional()
|
|
91959
92159
|
});
|
|
91960
92160
|
var externalInviteInputSchema = inviteInputDefinition;
|
|
91961
|
-
var inviteRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, inviteId:
|
|
92161
|
+
var inviteRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, inviteId: idSchema25 });
|
|
91962
92162
|
var externalInviteRefSchema = inviteRefDefinition;
|
|
91963
92163
|
var pendingShareDefinition = external_exports.object({
|
|
91964
92164
|
channelId: external_exports.string(),
|
|
@@ -91983,7 +92183,7 @@ var externalPendingSharesSchema = pendingSharesDefinition;
|
|
|
91983
92183
|
var acceptInviteDefinition = external_exports.object({
|
|
91984
92184
|
/** The workspace to connect: one where the person is Admin or Owner. */
|
|
91985
92185
|
workspaceId: workspaceIdSchema26,
|
|
91986
|
-
inviteId:
|
|
92186
|
+
inviteId: idSchema25,
|
|
91987
92187
|
/** The emailed link's secret; without it the invitation must be addressed to the person. */
|
|
91988
92188
|
secret: external_exports.string().trim().max(200).optional()
|
|
91989
92189
|
});
|
|
@@ -92004,8 +92204,8 @@ var settingsInputDefinition = external_exports.object({
|
|
|
92004
92204
|
var externalSettingsInputSchema = settingsInputDefinition;
|
|
92005
92205
|
var letAgentInInputDefinition = external_exports.object({
|
|
92006
92206
|
workspaceId: workspaceIdSchema26,
|
|
92007
|
-
channelId:
|
|
92008
|
-
agentId:
|
|
92207
|
+
channelId: idSchema25,
|
|
92208
|
+
agentId: idSchema25
|
|
92009
92209
|
});
|
|
92010
92210
|
var externalLetAgentInInputSchema = letAgentInInputDefinition;
|
|
92011
92211
|
var agentLetInDefinition = external_exports.object({
|
|
@@ -92024,7 +92224,7 @@ var shareInputDefinition = external_exports.object({
|
|
|
92024
92224
|
var externalShareInputSchema = shareInputDefinition;
|
|
92025
92225
|
var acceptShareDefinition = external_exports.object({
|
|
92026
92226
|
workspaceId: workspaceIdSchema26,
|
|
92027
|
-
shareId:
|
|
92227
|
+
shareId: idSchema25,
|
|
92028
92228
|
/** Its name here; the host's name when left out. */
|
|
92029
92229
|
name: external_exports.string().trim().min(1).max(80).optional(),
|
|
92030
92230
|
visibility: external_exports.enum(["public", "private"]).default("public")
|
|
@@ -93181,7 +93381,8 @@ var feedApprovalSchemaDefinition = external_exports.object({
|
|
|
93181
93381
|
"computer",
|
|
93182
93382
|
"agent_join",
|
|
93183
93383
|
"agent_transfer",
|
|
93184
|
-
"vault_share"
|
|
93384
|
+
"vault_share",
|
|
93385
|
+
"agent_share"
|
|
93185
93386
|
]),
|
|
93186
93387
|
requestId: external_exports.string(),
|
|
93187
93388
|
/** Every request an invite card answers at once, `requestId` first; absent means just it. */
|
|
@@ -93673,7 +93874,7 @@ var feedPageMirror = {
|
|
|
93673
93874
|
},
|
|
93674
93875
|
storable: feedPageForDisk
|
|
93675
93876
|
};
|
|
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();
|
|
93877
|
+
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
93878
|
var feedUi = uiTokens("feed");
|
|
93678
93879
|
var FeedNavSlot = feedUi.component("nav");
|
|
93679
93880
|
var FeedDecisionsSlot = feedUi.component("decisions");
|
|
@@ -97682,9 +97883,9 @@ var seatAddedSchemaDefinition = external_exports.object({
|
|
|
97682
97883
|
|
|
97683
97884
|
// ../../modules/workspace/contract/src/workspace-groups.ts
|
|
97684
97885
|
var GROUP_MEMBERS_MAX_PER_CALL = 200;
|
|
97685
|
-
var
|
|
97886
|
+
var idSchema26 = external_exports.string().min(1).max(80);
|
|
97686
97887
|
var workspaceGroupSchemaDefinition = external_exports.object({
|
|
97687
|
-
id:
|
|
97888
|
+
id: idSchema26,
|
|
97688
97889
|
name: external_exports.string(),
|
|
97689
97890
|
/** Who is in it, by user id. */
|
|
97690
97891
|
memberIds: external_exports.array(external_exports.string()),
|
|
@@ -97692,7 +97893,7 @@ var workspaceGroupSchemaDefinition = external_exports.object({
|
|
|
97692
97893
|
createdAt: external_exports.iso.datetime()
|
|
97693
97894
|
});
|
|
97694
97895
|
var workspaceGroupSchema = workspaceGroupSchemaDefinition;
|
|
97695
|
-
var memberIdsSchema = external_exports.array(
|
|
97896
|
+
var memberIdsSchema = external_exports.array(idSchema26).max(GROUP_MEMBERS_MAX_PER_CALL);
|
|
97696
97897
|
var createGroupInputSchemaDefinition = external_exports.object({
|
|
97697
97898
|
workspaceId: external_exports.string().min(1),
|
|
97698
97899
|
name: external_exports.string().trim().min(1).max(80),
|
|
@@ -97701,18 +97902,18 @@ var createGroupInputSchemaDefinition = external_exports.object({
|
|
|
97701
97902
|
var createGroupInputSchema = createGroupInputSchemaDefinition;
|
|
97702
97903
|
var renameGroupInputSchemaDefinition = external_exports.object({
|
|
97703
97904
|
workspaceId: external_exports.string().min(1),
|
|
97704
|
-
groupId:
|
|
97905
|
+
groupId: idSchema26,
|
|
97705
97906
|
name: external_exports.string().trim().min(1).max(80)
|
|
97706
97907
|
});
|
|
97707
97908
|
var renameGroupInputSchema = renameGroupInputSchemaDefinition;
|
|
97708
97909
|
var groupInputSchemaDefinition = external_exports.object({
|
|
97709
97910
|
workspaceId: external_exports.string().min(1),
|
|
97710
|
-
groupId:
|
|
97911
|
+
groupId: idSchema26
|
|
97711
97912
|
});
|
|
97712
97913
|
var groupInputSchema = groupInputSchemaDefinition;
|
|
97713
97914
|
var changeGroupMembersInputSchemaDefinition = external_exports.object({
|
|
97714
97915
|
workspaceId: external_exports.string().min(1),
|
|
97715
|
-
groupId:
|
|
97916
|
+
groupId: idSchema26,
|
|
97716
97917
|
add: memberIdsSchema.default([]),
|
|
97717
97918
|
remove: memberIdsSchema.default([])
|
|
97718
97919
|
});
|
|
@@ -98362,13 +98563,29 @@ var parkedActDefinition = external_exports.discriminatedUnion("action", [
|
|
|
98362
98563
|
})
|
|
98363
98564
|
]);
|
|
98364
98565
|
var opsParkedActInputSchema = parkedActDefinition;
|
|
98365
|
-
var
|
|
98566
|
+
var visitDefinition = external_exports.object({
|
|
98366
98567
|
targetUserId: external_exports.string().min(1),
|
|
98367
98568
|
workspaceId: external_exports.string().min(1).nullable(),
|
|
98368
98569
|
reason: reasonSchema,
|
|
98369
98570
|
minutes: external_exports.number().int().min(1).max(60).default(30)
|
|
98370
98571
|
});
|
|
98572
|
+
var opsVisitChallengeInputSchema = visitDefinition;
|
|
98573
|
+
var impersonateDefinition = external_exports.object({
|
|
98574
|
+
...visitDefinition.shape,
|
|
98575
|
+
assertion: vaultPasskeyAssertionSchema.optional()
|
|
98576
|
+
});
|
|
98371
98577
|
var opsImpersonateInputSchema = impersonateDefinition;
|
|
98578
|
+
var auditActorDefinition = external_exports.object({
|
|
98579
|
+
id: external_exports.string(),
|
|
98580
|
+
kind: external_exports.enum(["person", "agent"]),
|
|
98581
|
+
name: external_exports.string(),
|
|
98582
|
+
/** A person's photo; null for initials. */
|
|
98583
|
+
image: external_exports.string().nullable(),
|
|
98584
|
+
/** An agent's drawn face, from its roster and seed; null for a person or an emoji. */
|
|
98585
|
+
face: external_exports.object({ roster: external_exports.string(), seed: external_exports.string() }).nullable(),
|
|
98586
|
+
/** An agent's emoji avatar; null otherwise. */
|
|
98587
|
+
emoji: external_exports.string().nullable()
|
|
98588
|
+
});
|
|
98372
98589
|
var auditRowDefinition = external_exports.object({
|
|
98373
98590
|
id: external_exports.string(),
|
|
98374
98591
|
operatorUserId: external_exports.string(),
|
|
@@ -98377,7 +98594,13 @@ var auditRowDefinition = external_exports.object({
|
|
|
98377
98594
|
targetId: external_exports.string(),
|
|
98378
98595
|
reason: external_exports.string(),
|
|
98379
98596
|
args: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
98380
|
-
createdAt: external_exports.iso.datetime()
|
|
98597
|
+
createdAt: external_exports.iso.datetime(),
|
|
98598
|
+
/** The operator by name; absent for a deleted account or `system`. */
|
|
98599
|
+
operator: auditActorDefinition.optional(),
|
|
98600
|
+
/** On operator key rows: the person or agent whose key asked. */
|
|
98601
|
+
asker: auditActorDefinition.optional(),
|
|
98602
|
+
/** Display names for the person ids the arguments carry, such as approvedBy. */
|
|
98603
|
+
names: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
98381
98604
|
});
|
|
98382
98605
|
var opsAuditRowSchema = auditRowDefinition;
|
|
98383
98606
|
var grantOperatorDefinition = external_exports.object({
|
|
@@ -98673,6 +98896,7 @@ var OPERATOR_KEY_COPY = {
|
|
|
98673
98896
|
operator_key_too_many_waiting: `At most ${OPERATOR_KEY.maxWaiting} keys can wait at once`,
|
|
98674
98897
|
operator_key_not_found: "There is no such operator key",
|
|
98675
98898
|
operator_key_not_pending: "This key was already answered or has expired",
|
|
98899
|
+
operator_key_self_approval: "You asked for this key yourself, so someone else approves it. Ask from an agent's profile instead.",
|
|
98676
98900
|
operator_key_not_live: "This key is not approved, or its time is over",
|
|
98677
98901
|
operator_key_proof_refused: "The operator passkey did not confirm this approval",
|
|
98678
98902
|
operator_key_refused: "This key does not work here"
|
|
@@ -98731,9 +98955,41 @@ var OPS_FUNCTION = {
|
|
|
98731
98955
|
platformTarget: "platform"
|
|
98732
98956
|
};
|
|
98733
98957
|
var opsFunctionScopeSchema = external_exports.enum(["lookup", "platform", "tenant"]);
|
|
98734
|
-
var
|
|
98958
|
+
var pageCount = external_exports.number().int().nonnegative();
|
|
98959
|
+
var cursorDefinition = external_exports.string().regex(/^\d{1,19}$/, "a cursor from the last page");
|
|
98960
|
+
function pageOf(row) {
|
|
98961
|
+
return external_exports.object({
|
|
98962
|
+
rows: external_exports.array(row),
|
|
98963
|
+
returned: pageCount,
|
|
98964
|
+
total: pageCount,
|
|
98965
|
+
totalExact: external_exports.boolean(),
|
|
98966
|
+
truncated: external_exports.boolean(),
|
|
98967
|
+
limit: pageCount,
|
|
98968
|
+
nextCursor: cursorDefinition.nullable()
|
|
98969
|
+
});
|
|
98970
|
+
}
|
|
98971
|
+
var opsPageDefinition = pageOf(external_exports.unknown());
|
|
98972
|
+
function opsPagesOf(result2) {
|
|
98973
|
+
if (!result2 || typeof result2 !== "object") return [];
|
|
98974
|
+
return Object.entries(result2).flatMap(([field, value]) => {
|
|
98975
|
+
const page = opsPageDefinition.safeParse(value);
|
|
98976
|
+
return page.success ? [{ field, page: page.data }] : [];
|
|
98977
|
+
});
|
|
98978
|
+
}
|
|
98979
|
+
function opsPageLine({ page, noun }) {
|
|
98980
|
+
const total = `${page.totalExact ? "" : "at least "}${page.total.toLocaleString("en-GB")}`;
|
|
98981
|
+
const shown2 = `Showing ${page.returned.toLocaleString("en-GB")} of ${total} ${noun}`;
|
|
98982
|
+
if (!page.truncated) return `${shown2}.`;
|
|
98983
|
+
const more = page.nextCursor ? ` Use --cursor ${page.nextCursor} for more.` : "";
|
|
98984
|
+
return `${shown2} (limit ${page.limit}).${more}`;
|
|
98985
|
+
}
|
|
98986
|
+
var findInputDefinition = external_exports.object({
|
|
98987
|
+
query: external_exports.string().trim().min(1).max(200),
|
|
98988
|
+
limit: external_exports.number().int().min(1).max(100).default(20),
|
|
98989
|
+
cursor: cursorDefinition.optional()
|
|
98990
|
+
}).strict();
|
|
98735
98991
|
var findOutputDefinition = external_exports.object({
|
|
98736
|
-
workspaces:
|
|
98992
|
+
workspaces: pageOf(
|
|
98737
98993
|
external_exports.object({
|
|
98738
98994
|
id: external_exports.string(),
|
|
98739
98995
|
name: external_exports.string(),
|
|
@@ -98781,6 +99037,135 @@ var snapshotOutputDefinition = external_exports.object({
|
|
|
98781
99037
|
flagsOn: external_exports.array(external_exports.string()),
|
|
98782
99038
|
complimentaryComputers: count5
|
|
98783
99039
|
});
|
|
99040
|
+
var eventsInputDefinition = external_exports.object({ from: external_exports.iso.datetime(), to: external_exports.iso.datetime() }).strict();
|
|
99041
|
+
var eventCountsDefinition = external_exports.object({
|
|
99042
|
+
total: count5,
|
|
99043
|
+
byType: external_exports.array(external_exports.object({ eventType: external_exports.string(), count: count5 }))
|
|
99044
|
+
});
|
|
99045
|
+
var tenantEventsInputDefinition = external_exports.object({
|
|
99046
|
+
from: external_exports.iso.datetime(),
|
|
99047
|
+
to: external_exports.iso.datetime(),
|
|
99048
|
+
limit: external_exports.number().int().min(1).max(500).default(200),
|
|
99049
|
+
cursor: cursorDefinition.optional()
|
|
99050
|
+
}).strict();
|
|
99051
|
+
var tenantEventsOutputDefinition = external_exports.object({
|
|
99052
|
+
counts: eventCountsDefinition,
|
|
99053
|
+
/** Oldest first: when, which aggregate kind, which event; never a payload or an id. */
|
|
99054
|
+
timeline: pageOf(
|
|
99055
|
+
external_exports.object({ at: external_exports.iso.datetime(), aggregateType: external_exports.string(), eventType: external_exports.string() })
|
|
99056
|
+
)
|
|
99057
|
+
});
|
|
99058
|
+
var databaseHealthInputDefinition = external_exports.object({
|
|
99059
|
+
limit: external_exports.number().int().min(1).max(100).default(15),
|
|
99060
|
+
cursor: cursorDefinition.optional()
|
|
99061
|
+
}).strict();
|
|
99062
|
+
var databaseHealthDefinition = external_exports.object({
|
|
99063
|
+
sizeBytes: external_exports.number().nonnegative(),
|
|
99064
|
+
/** The fastest of three `SELECT 1` round trips from the api. */
|
|
99065
|
+
roundTripMs: external_exports.number().nonnegative(),
|
|
99066
|
+
cacheHitPercent: external_exports.number().min(0).max(100).nullable(),
|
|
99067
|
+
commits: external_exports.number().nonnegative(),
|
|
99068
|
+
rollbacks: external_exports.number().nonnegative(),
|
|
99069
|
+
deadlocks: external_exports.number().nonnegative(),
|
|
99070
|
+
tempBytes: external_exports.number().nonnegative(),
|
|
99071
|
+
connections: external_exports.object({
|
|
99072
|
+
total: count5,
|
|
99073
|
+
byState: external_exports.array(external_exports.object({ state: external_exports.string(), count: count5 })),
|
|
99074
|
+
waitingOnLocks: count5,
|
|
99075
|
+
longestActiveSeconds: external_exports.number().nonnegative(),
|
|
99076
|
+
longestIdleInTransactionSeconds: external_exports.number().nonnegative()
|
|
99077
|
+
}),
|
|
99078
|
+
/** The tables, largest first: sizes, row estimates and scans; never a row. */
|
|
99079
|
+
tables: pageOf(
|
|
99080
|
+
external_exports.object({
|
|
99081
|
+
table: external_exports.string(),
|
|
99082
|
+
totalBytes: external_exports.number().nonnegative(),
|
|
99083
|
+
liveRows: external_exports.number().nonnegative(),
|
|
99084
|
+
deadRows: external_exports.number().nonnegative(),
|
|
99085
|
+
seqScans: external_exports.number().nonnegative(),
|
|
99086
|
+
indexScans: external_exports.number().nonnegative(),
|
|
99087
|
+
lastAutovacuum: external_exports.iso.datetime().nullable()
|
|
99088
|
+
})
|
|
99089
|
+
)
|
|
99090
|
+
});
|
|
99091
|
+
var tenantAgentsDefinition = external_exports.object({
|
|
99092
|
+
/** Each agent's setup and state; never its name, instructions or messages. */
|
|
99093
|
+
agents: external_exports.array(
|
|
99094
|
+
external_exports.object({
|
|
99095
|
+
id: external_exports.string(),
|
|
99096
|
+
kind: external_exports.string(),
|
|
99097
|
+
hosting: external_exports.string(),
|
|
99098
|
+
harness: external_exports.string(),
|
|
99099
|
+
status: external_exports.string(),
|
|
99100
|
+
online: external_exports.boolean(),
|
|
99101
|
+
lastSeenAt: external_exports.iso.datetime().nullable(),
|
|
99102
|
+
createdAt: external_exports.iso.datetime(),
|
|
99103
|
+
modelLevel: external_exports.string().nullable(),
|
|
99104
|
+
model: external_exports.string().nullable(),
|
|
99105
|
+
channels: count5,
|
|
99106
|
+
limitedUntil: external_exports.iso.datetime().nullable(),
|
|
99107
|
+
limitedBy: external_exports.string().nullable(),
|
|
99108
|
+
pausedAt: external_exports.iso.datetime().nullable(),
|
|
99109
|
+
/** A Laze-hosted agent's turn right now; null for a connected one. */
|
|
99110
|
+
turn: external_exports.enum(["running", "none", "unreachable"]).nullable()
|
|
99111
|
+
})
|
|
99112
|
+
)
|
|
99113
|
+
});
|
|
99114
|
+
var tenantBillingDefinition = external_exports.object({
|
|
99115
|
+
plan: external_exports.string(),
|
|
99116
|
+
status: external_exports.string(),
|
|
99117
|
+
currency: external_exports.string(),
|
|
99118
|
+
cancelAtPeriodEnd: external_exports.boolean(),
|
|
99119
|
+
period: external_exports.object({ start: external_exports.iso.datetime(), end: external_exports.iso.datetime() }).nullable(),
|
|
99120
|
+
seats: external_exports.object({ people: count5, limit: count5.nullable(), monthlyPrice: external_exports.number() }),
|
|
99121
|
+
complimentarySeats: count5.nullable(),
|
|
99122
|
+
credits: external_exports.object({
|
|
99123
|
+
included: external_exports.number(),
|
|
99124
|
+
includedLeft: external_exports.number(),
|
|
99125
|
+
prepaid: external_exports.number(),
|
|
99126
|
+
overdraft: external_exports.number(),
|
|
99127
|
+
paused: external_exports.boolean(),
|
|
99128
|
+
pauseReason: external_exports.string().nullable()
|
|
99129
|
+
}),
|
|
99130
|
+
autoRecharge: external_exports.object({
|
|
99131
|
+
enabled: external_exports.boolean(),
|
|
99132
|
+
amount: external_exports.number().nullable(),
|
|
99133
|
+
rechargeBelow: external_exports.number(),
|
|
99134
|
+
rechargedThisMonth: external_exports.number(),
|
|
99135
|
+
cardSaved: external_exports.boolean(),
|
|
99136
|
+
lastFailedAt: external_exports.iso.datetime().nullable()
|
|
99137
|
+
}),
|
|
99138
|
+
/** Spend this period, by agent id; app and channel lines are left out. */
|
|
99139
|
+
usage: external_exports.object({
|
|
99140
|
+
used: external_exports.number(),
|
|
99141
|
+
byAgent: external_exports.array(external_exports.object({ agentId: external_exports.string(), amount: external_exports.number() }))
|
|
99142
|
+
}),
|
|
99143
|
+
/** Invoices newest first: amount, status and date; never a link or a number. */
|
|
99144
|
+
invoices: external_exports.array(
|
|
99145
|
+
external_exports.object({
|
|
99146
|
+
status: external_exports.string(),
|
|
99147
|
+
total: external_exports.number(),
|
|
99148
|
+
tax: external_exports.number(),
|
|
99149
|
+
createdAt: external_exports.iso.datetime()
|
|
99150
|
+
})
|
|
99151
|
+
)
|
|
99152
|
+
});
|
|
99153
|
+
var tenantVaultDefinition = external_exports.object({
|
|
99154
|
+
judgeConfigured: external_exports.boolean(),
|
|
99155
|
+
/** The workspace's limits per connector or action; who set one is left out. */
|
|
99156
|
+
limits: external_exports.array(
|
|
99157
|
+
external_exports.object({
|
|
99158
|
+
subject: external_exports.string(),
|
|
99159
|
+
most: external_exports.string(),
|
|
99160
|
+
maxLeaseSeconds: count5.nullable(),
|
|
99161
|
+
blocked: external_exports.boolean(),
|
|
99162
|
+
approveNew: external_exports.boolean(),
|
|
99163
|
+
updatedAt: external_exports.iso.datetime()
|
|
99164
|
+
})
|
|
99165
|
+
),
|
|
99166
|
+
/** Connections waiting for an admin, counted by kind; never a name, label or field. */
|
|
99167
|
+
waitingByKind: external_exports.array(external_exports.object({ key: external_exports.string(), count: count5 }))
|
|
99168
|
+
});
|
|
98784
99169
|
var entry = (value) => value;
|
|
98785
99170
|
var OPS_FUNCTIONS = {
|
|
98786
99171
|
"workspaces.find": entry({
|
|
@@ -98804,6 +99189,48 @@ var OPS_FUNCTIONS = {
|
|
|
98804
99189
|
input: noInputDefinition,
|
|
98805
99190
|
output: capacityOutputDefinition
|
|
98806
99191
|
}),
|
|
99192
|
+
"events.counts": entry({
|
|
99193
|
+
title: "Events recorded over a range, by type",
|
|
99194
|
+
scope: "platform",
|
|
99195
|
+
view: "table",
|
|
99196
|
+
input: eventsInputDefinition,
|
|
99197
|
+
output: eventCountsDefinition
|
|
99198
|
+
}),
|
|
99199
|
+
"tenant.events": entry({
|
|
99200
|
+
title: "One workspace's events over a range: counts by type and a timeline",
|
|
99201
|
+
scope: "tenant",
|
|
99202
|
+
view: "table",
|
|
99203
|
+
input: tenantEventsInputDefinition,
|
|
99204
|
+
output: tenantEventsOutputDefinition
|
|
99205
|
+
}),
|
|
99206
|
+
"db.health": entry({
|
|
99207
|
+
title: "Postgres size, connections, waits, cache and the largest tables",
|
|
99208
|
+
scope: "platform",
|
|
99209
|
+
view: "numbers",
|
|
99210
|
+
input: databaseHealthInputDefinition,
|
|
99211
|
+
output: databaseHealthDefinition
|
|
99212
|
+
}),
|
|
99213
|
+
"tenant.agents": entry({
|
|
99214
|
+
title: "One workspace's agents: setup, state and whether a turn runs now",
|
|
99215
|
+
scope: "tenant",
|
|
99216
|
+
view: "table",
|
|
99217
|
+
input: noInputDefinition,
|
|
99218
|
+
output: tenantAgentsDefinition
|
|
99219
|
+
}),
|
|
99220
|
+
"tenant.billing": entry({
|
|
99221
|
+
title: "One workspace's plan, credits, auto-recharge, spend by agent and invoices",
|
|
99222
|
+
scope: "tenant",
|
|
99223
|
+
view: "numbers",
|
|
99224
|
+
input: noInputDefinition,
|
|
99225
|
+
output: tenantBillingDefinition
|
|
99226
|
+
}),
|
|
99227
|
+
"tenant.vault": entry({
|
|
99228
|
+
title: "One workspace's vault setup: judge, level limits and connections waiting",
|
|
99229
|
+
scope: "tenant",
|
|
99230
|
+
view: "table",
|
|
99231
|
+
input: noInputDefinition,
|
|
99232
|
+
output: tenantVaultDefinition
|
|
99233
|
+
}),
|
|
98807
99234
|
"tenant.snapshot": entry({
|
|
98808
99235
|
title: "One workspace's plan, members, agents and flags, as counts",
|
|
98809
99236
|
scope: "tenant",
|
|
@@ -98824,11 +99251,12 @@ var opsFunctionAnswerSchema = answerDefinition;
|
|
|
98824
99251
|
var OPS_FUNCTION_COPY = {
|
|
98825
99252
|
ops_function_unknown: `Choose one of: ${OPS_FUNCTION_NAMES.join(", ")}`,
|
|
98826
99253
|
ops_function_wrong_scope: "This function does not read that scope",
|
|
98827
|
-
ops_function_bad_input: "This function does not take that input"
|
|
99254
|
+
ops_function_bad_input: "This function does not take that input",
|
|
99255
|
+
ops_function_unavailable: "This function cannot read its source in this process"
|
|
98828
99256
|
};
|
|
98829
99257
|
|
|
98830
99258
|
// ../../modules/ops/contract/src/ops.trpc.ts
|
|
98831
|
-
var opsTrpc = defineTrpcContract("ops").query("me").withInput(external_exports.object({})).withOutput(opsOperatorSchema).query("workspaces").withInput(opsSearchInputSchema).withOutput(external_exports.array(opsWorkspaceRowSchema)).query("workspace").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(opsWorkspaceDetailSchema).query("users").withInput(opsSearchInputSchema).withOutput(external_exports.array(opsUserRowSchema)).mutation("setPlan").withInput(opsSetPlanInputSchema).withOutput(opsWorkspaceDetailSchema).mutation("setComplimentaryComputer").withInput(opsSetComputerInputSchema).withOutput(opsWorkspaceDetailSchema).mutation("grantCredits").withInput(opsGrantCreditsInputSchema).withOutput(opsWorkspaceDetailSchema).mutation("setFlag").withInput(opsSetFlagInputSchema).withOutput(opsWorkspaceDetailSchema).query("parked").withInput(external_exports.object({})).withOutput(opsParkedSchema).mutation("parkedAct").withInput(opsParkedActInputSchema).withOutput(external_exports.object({ changed: external_exports.number().int() })).mutation("impersonate").withInput(opsImpersonateInputSchema).withOutput(impersonationSchema).query("operators").withInput(external_exports.object({})).withOutput(external_exports.array(opsOperatorGrantSchema)).query("audit").withInput(external_exports.object({ limit: external_exports.number().int().min(1).max(200).default(100) })).withOutput(external_exports.array(opsAuditRowSchema)).query("vaultLockdown").withInput(external_exports.object({})).withOutput(vaultLockdownSchema).mutation("vaultBreakerChallenge").withInput(external_exports.object({})).withOutput(vaultBreakerChallengeSchema).mutation("proposeOperatorPasskey").withInput(opsProposeOperatorPasskeyInputSchema).withOutput(vaultOperatorProposalSchema).mutation("operatorPasskeyChallenge").withInput(vaultOperatorChallengeInputSchema).withOutput(vaultOperatorChallengeSchema).mutation("commitOperatorRecord").withInput(opsCommitOperatorRecordInputSchema).withOutput(external_exports.object({ seq: external_exports.number().int() })).mutation("resetVaultBreaker").withInput(opsResetVaultBreakerInputSchema).withOutput(external_exports.object({ breaker: external_exports.literal("closed") })).mutation("setVaultOverride").withInput(opsSetVaultOverrideInputSchema).withOutput(vaultLockdownOverrideSchema).mutation("endVaultOverride").withInput(opsEndVaultOverrideInputSchema).withOutput(external_exports.object({ ended: external_exports.boolean() })).query("breakGlassRequests").withInput(external_exports.object({})).withOutput(external_exports.array(breakGlassRequestSchema)).mutation("requestBreakGlass").withInput(breakGlassRequestInputSchema).withOutput(breakGlassRequestSchema).mutation("breakGlassChallenge").withInput(breakGlassRequestIdSchema).withOutput(vaultReauthChallengeSchema).mutation("approveBreakGlass").withInput(breakGlassApproveInputSchema).withOutput(breakGlassRequestSchema).mutation("denyBreakGlass").withInput(breakGlassDenyInputSchema).withOutput(breakGlassRequestSchema).mutation("readBreakGlass").withInput(breakGlassReadInputSchema).withOutput(breakGlassPageSchema).query("operatorKeys").withInput(external_exports.object({})).withOutput(external_exports.array(operatorKeySchema)).mutation("operatorKeyChallenge").withInput(operatorKeyIdSchema).withOutput(vaultOperatorKeyChallengeSchema).mutation("approveOperatorKey").withInput(operatorKeyApproveInputSchema).withOutput(operatorKeySchema).mutation("denyOperatorKey").withInput(operatorKeyDenyInputSchema).withOutput(operatorKeySchema).mutation("revokeOperatorKey").withInput(operatorKeyDenyInputSchema).withOutput(operatorKeySchema).query("hostLoad").withInput(external_exports.object({})).withOutput(hostLoadViewSchema).mutation("runOpsFunction").withInput(opsFunctionRunInputSchema).withOutput(opsFunctionAnswerSchema).build();
|
|
99259
|
+
var opsTrpc = defineTrpcContract("ops").query("me").withInput(external_exports.object({})).withOutput(opsOperatorSchema).query("workspaces").withInput(opsSearchInputSchema).withOutput(external_exports.array(opsWorkspaceRowSchema)).query("workspace").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(opsWorkspaceDetailSchema).query("users").withInput(opsSearchInputSchema).withOutput(external_exports.array(opsUserRowSchema)).mutation("setPlan").withInput(opsSetPlanInputSchema).withOutput(opsWorkspaceDetailSchema).mutation("setComplimentaryComputer").withInput(opsSetComputerInputSchema).withOutput(opsWorkspaceDetailSchema).mutation("grantCredits").withInput(opsGrantCreditsInputSchema).withOutput(opsWorkspaceDetailSchema).mutation("setFlag").withInput(opsSetFlagInputSchema).withOutput(opsWorkspaceDetailSchema).query("parked").withInput(external_exports.object({})).withOutput(opsParkedSchema).mutation("parkedAct").withInput(opsParkedActInputSchema).withOutput(external_exports.object({ changed: external_exports.number().int() })).mutation("visitChallenge").withInput(opsVisitChallengeInputSchema).withOutput(vaultOperatorKeyChallengeSchema).mutation("impersonate").withInput(opsImpersonateInputSchema).withOutput(impersonationSchema).query("operators").withInput(external_exports.object({})).withOutput(external_exports.array(opsOperatorGrantSchema)).query("audit").withInput(external_exports.object({ limit: external_exports.number().int().min(1).max(200).default(100) })).withOutput(external_exports.array(opsAuditRowSchema)).query("vaultLockdown").withInput(external_exports.object({})).withOutput(vaultLockdownSchema).mutation("vaultBreakerChallenge").withInput(external_exports.object({})).withOutput(vaultBreakerChallengeSchema).mutation("proposeOperatorPasskey").withInput(opsProposeOperatorPasskeyInputSchema).withOutput(vaultOperatorProposalSchema).mutation("operatorPasskeyChallenge").withInput(vaultOperatorChallengeInputSchema).withOutput(vaultOperatorChallengeSchema).mutation("commitOperatorRecord").withInput(opsCommitOperatorRecordInputSchema).withOutput(external_exports.object({ seq: external_exports.number().int() })).mutation("resetVaultBreaker").withInput(opsResetVaultBreakerInputSchema).withOutput(external_exports.object({ breaker: external_exports.literal("closed") })).mutation("setVaultOverride").withInput(opsSetVaultOverrideInputSchema).withOutput(vaultLockdownOverrideSchema).mutation("endVaultOverride").withInput(opsEndVaultOverrideInputSchema).withOutput(external_exports.object({ ended: external_exports.boolean() })).query("breakGlassRequests").withInput(external_exports.object({})).withOutput(external_exports.array(breakGlassRequestSchema)).mutation("requestBreakGlass").withInput(breakGlassRequestInputSchema).withOutput(breakGlassRequestSchema).mutation("breakGlassChallenge").withInput(breakGlassRequestIdSchema).withOutput(vaultReauthChallengeSchema).mutation("approveBreakGlass").withInput(breakGlassApproveInputSchema).withOutput(breakGlassRequestSchema).mutation("denyBreakGlass").withInput(breakGlassDenyInputSchema).withOutput(breakGlassRequestSchema).mutation("readBreakGlass").withInput(breakGlassReadInputSchema).withOutput(breakGlassPageSchema).query("operatorKeys").withInput(external_exports.object({})).withOutput(external_exports.array(operatorKeySchema)).mutation("operatorKeyChallenge").withInput(operatorKeyIdSchema).withOutput(vaultOperatorKeyChallengeSchema).mutation("approveOperatorKey").withInput(operatorKeyApproveInputSchema).withOutput(operatorKeySchema).mutation("denyOperatorKey").withInput(operatorKeyDenyInputSchema).withOutput(operatorKeySchema).mutation("revokeOperatorKey").withInput(operatorKeyDenyInputSchema).withOutput(operatorKeySchema).query("hostLoad").withInput(external_exports.object({})).withOutput(hostLoadViewSchema).mutation("runOpsFunction").withInput(opsFunctionRunInputSchema).withOutput(opsFunctionAnswerSchema).build();
|
|
98832
99260
|
|
|
98833
99261
|
// ../../modules/ops/contract/src/ops.config.ts
|
|
98834
99262
|
var opsConfig = Config.define((c) => ({
|
|
@@ -98849,7 +99277,9 @@ Ops function leases (ADR-214), instead of reading the database:
|
|
|
98849
99277
|
laze ops lease request --functions a,b --reason "<why>" [--tenant <workspace id>] [--wait]
|
|
98850
99278
|
without --tenant: lookup and platform functions; with it: that one workspace's functions
|
|
98851
99279
|
laze ops lease status <lease>
|
|
98852
|
-
laze ops call <lease> <function> [--input '<json>']
|
|
99280
|
+
laze ops call <lease> <function> [--input '<json>'] [--cursor <c>]
|
|
99281
|
+
call one function of an approved lease; a cut
|
|
99282
|
+
list says so and names the cursor of the next page`;
|
|
98853
99283
|
var POLL_MS3 = 5e3;
|
|
98854
99284
|
var keyFile = ({ context, keyId }) => join31(dirname22(context.environment.configPath), "operator-keys", keyId.replaceAll("/", "_"));
|
|
98855
99285
|
async function saveSecret({
|
|
@@ -98968,6 +99398,10 @@ async function useKey({
|
|
|
98968
99398
|
});
|
|
98969
99399
|
context.out(`${JSON.stringify(answer6.result, null, 2)}
|
|
98970
99400
|
`);
|
|
99401
|
+
for (const { field, page } of opsPagesOf(answer6.result)) {
|
|
99402
|
+
context.err(`${opsPageLine({ page, noun: PAGE_NOUNS[field] ?? field })}
|
|
99403
|
+
`);
|
|
99404
|
+
}
|
|
98971
99405
|
await forgetIfOver({ context, client, keyId });
|
|
98972
99406
|
} catch (error63) {
|
|
98973
99407
|
if (error63 instanceof LazeApiError && error63.code === "operator_key_refused") {
|
|
@@ -99017,14 +99451,18 @@ async function requestLease({ context, args }) {
|
|
|
99017
99451
|
context.out(`Lease ${key.id}: ${statusLine2({ key: answered, nowMs: context.nowMs() })}
|
|
99018
99452
|
`);
|
|
99019
99453
|
}
|
|
99454
|
+
var PAGE_NOUNS = { timeline: "events" };
|
|
99020
99455
|
function inputOf({ args }) {
|
|
99021
99456
|
const text3 = flagText({ args, name: "input" }).trim();
|
|
99022
|
-
|
|
99457
|
+
const cursor = flagText({ args, name: "cursor" }).trim();
|
|
99458
|
+
let input2 = {};
|
|
99023
99459
|
try {
|
|
99024
|
-
|
|
99460
|
+
if (text3) input2 = JSON.parse(text3);
|
|
99025
99461
|
} catch {
|
|
99026
99462
|
throw new CliUsageError(`--input takes JSON, such as '{"from":"...","to":"..."}'.`);
|
|
99027
99463
|
}
|
|
99464
|
+
if (!cursor) return input2;
|
|
99465
|
+
return { ...input2, cursor };
|
|
99028
99466
|
}
|
|
99029
99467
|
async function callFunction({ context, args }) {
|
|
99030
99468
|
const [, , keyId, name3] = args.words;
|
|
@@ -102222,6 +102660,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
|
|
|
102222
102660
|
laze agent access|dm|disconnect <agent> who can talk to it, your conversation with it, revoke its key
|
|
102223
102661
|
laze agent permission-prompts <agent> each permission prompt its harness raised and rush's answer
|
|
102224
102662
|
laze agent share|unshare <agent> --person <userId> | --group <groupId> | --channel <channelId> | --agent <agent> share it (its owner); an added agent DMs it
|
|
102663
|
+
laze agent share <agent> --ask --person <userId> [--agent <agent> ...] ask its owner to add them; they approve in their feed
|
|
102225
102664
|
laze agent stop <agent> --channel <channelId> stop its running turn there
|
|
102226
102665
|
laze agent retry <agent> --channel <id> --message <id> Try again on its failed turn on that message
|
|
102227
102666
|
laze agent invite [--name <name>] [--channel <id>] a one-time link that connects a new agent;
|