@lazehq/cli 0.1.93 → 0.1.95
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 +539 -73
- package/package.json +1 -1
package/dist/laze.mjs
CHANGED
|
@@ -37171,7 +37171,7 @@ function flagText({
|
|
|
37171
37171
|
}
|
|
37172
37172
|
|
|
37173
37173
|
// src/rules/cli-version.rules.ts
|
|
37174
|
-
var STAMPED = "0.1.
|
|
37174
|
+
var STAMPED = "0.1.95";
|
|
37175
37175
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
37176
37176
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
37177
37177
|
}
|
|
@@ -60229,7 +60229,8 @@ var createVaultConnectionInputSchemaDefinition = external_exports.object({
|
|
|
60229
60229
|
name: vaultConnectionNameSchema,
|
|
60230
60230
|
label: external_exports.string().trim().min(1).max(120),
|
|
60231
60231
|
keychain: vaultOwnedKeychainSchema,
|
|
60232
|
-
|
|
60232
|
+
/** Left out, the connection starts at its connector tier's level (connector-tiers.feature). */
|
|
60233
|
+
sensitivity: vaultSensitivitySchema.optional(),
|
|
60233
60234
|
rules: external_exports.string().max(2e3).default(""),
|
|
60234
60235
|
approverUserIds: external_exports.array(external_exports.string().min(1)).default([]),
|
|
60235
60236
|
maxLeaseSeconds: external_exports.number().int().positive().max(VAULT_MAX_LEASE_SECONDS).nullable().default(null),
|
|
@@ -60355,6 +60356,8 @@ var vaultWaitingShareSchemaDefinition = external_exports.object({
|
|
|
60355
60356
|
keyLabel: external_exports.string(),
|
|
60356
60357
|
/** The teammate the share is for. */
|
|
60357
60358
|
recipientUserId: external_exports.string().min(1),
|
|
60359
|
+
/** The key's owner, who answers the share. */
|
|
60360
|
+
ownerUserId: external_exports.string().min(1),
|
|
60358
60361
|
/** The agent that asked the share; null when it was asked from the CLI. */
|
|
60359
60362
|
agentId: external_exports.string().nullable().default(null),
|
|
60360
60363
|
expiresAt: external_exports.iso.datetime().nullable(),
|
|
@@ -60656,7 +60659,7 @@ var vaultConnectionUseSchemaDefinition = external_exports.object({
|
|
|
60656
60659
|
requestId: external_exports.string().nullable().default(null),
|
|
60657
60660
|
leaseId: external_exports.string().nullable().default(null),
|
|
60658
60661
|
origin: vaultUseOriginSchema.nullable().default(null),
|
|
60659
|
-
/** How a
|
|
60662
|
+
/** How a read happened: `page` (Reveal), `own_secret` (the CLI) or `laze` (Laze's own code). */
|
|
60660
60663
|
via: external_exports.string().nullable().default(null),
|
|
60661
60664
|
/** On a share or a tier change: the person it named, the new tier, and the proof used. */
|
|
60662
60665
|
change: external_exports.object({
|
|
@@ -60693,6 +60696,49 @@ var saveGithubInstallationInputSchemaDefinition = external_exports.object({
|
|
|
60693
60696
|
var vaultJudgeStatusSchemaDefinition = external_exports.object({ configured: external_exports.boolean() });
|
|
60694
60697
|
var vaultJudgeStatusSchema = vaultJudgeStatusSchemaDefinition;
|
|
60695
60698
|
var vaultLimitSubjectSchema = external_exports.string().regex(/^[a-z0-9-]+(\.[a-z]+)?$/);
|
|
60699
|
+
var vaultTierSchema = external_exports.enum(["sensitive", "standard", "low_risk"]);
|
|
60700
|
+
var vaultTierSettingSchemaDefinition = external_exports.object({
|
|
60701
|
+
tier: vaultTierSchema,
|
|
60702
|
+
defaultLevel: vaultSensitivitySchema,
|
|
60703
|
+
/** Members cannot set a connection of this tier below its default, checked at every use. */
|
|
60704
|
+
enforced: external_exports.boolean()
|
|
60705
|
+
});
|
|
60706
|
+
var vaultTierSettingSchema = vaultTierSettingSchemaDefinition;
|
|
60707
|
+
var vaultTierSubjectSchemaDefinition = external_exports.object({
|
|
60708
|
+
subject: vaultLimitSubjectSchema,
|
|
60709
|
+
label: external_exports.string(),
|
|
60710
|
+
tier: vaultTierSchema,
|
|
60711
|
+
/** The tier Laze puts it in; null for a rule an admin added. */
|
|
60712
|
+
builtInTier: vaultTierSchema.nullable(),
|
|
60713
|
+
reason: external_exports.string()
|
|
60714
|
+
});
|
|
60715
|
+
var vaultTierSubjectSchema = vaultTierSubjectSchemaDefinition;
|
|
60716
|
+
var vaultTierPolicySchemaDefinition = external_exports.object({
|
|
60717
|
+
tiers: external_exports.array(vaultTierSettingSchema),
|
|
60718
|
+
subjects: external_exports.array(vaultTierSubjectSchema)
|
|
60719
|
+
});
|
|
60720
|
+
var vaultTierPolicySchema = vaultTierPolicySchemaDefinition;
|
|
60721
|
+
var setVaultTierSettingInputSchemaDefinition = external_exports.object({
|
|
60722
|
+
workspaceId: external_exports.string().min(1),
|
|
60723
|
+
tier: vaultTierSchema,
|
|
60724
|
+
defaultLevel: vaultSensitivitySchema,
|
|
60725
|
+
enforced: external_exports.boolean(),
|
|
60726
|
+
/** A passkey proof, needed when the change lowers a tier that started at Always ask or above. */
|
|
60727
|
+
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
60728
|
+
});
|
|
60729
|
+
var setVaultTierSettingInputSchema = setVaultTierSettingInputSchemaDefinition;
|
|
60730
|
+
var setVaultSubjectTierInputSchemaDefinition = external_exports.object({
|
|
60731
|
+
workspaceId: external_exports.string().min(1),
|
|
60732
|
+
subject: vaultLimitSubjectSchema.optional(),
|
|
60733
|
+
serverUrl: external_exports.string().trim().min(3).max(500).optional(),
|
|
60734
|
+
label: external_exports.string().trim().min(1).max(80).optional(),
|
|
60735
|
+
tier: vaultTierSchema.nullable(),
|
|
60736
|
+
/** A passkey proof, needed when the move lowers a connector from Always ask or above. */
|
|
60737
|
+
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
60738
|
+
}).refine((input2) => Boolean(input2.subject) !== Boolean(input2.serverUrl), {
|
|
60739
|
+
message: "Name a subject or a server address, not both"
|
|
60740
|
+
});
|
|
60741
|
+
var setVaultSubjectTierInputSchema = setVaultSubjectTierInputSchemaDefinition;
|
|
60696
60742
|
var vaultLevelLimitSchemaDefinition = external_exports.object({
|
|
60697
60743
|
subject: vaultLimitSubjectSchema,
|
|
60698
60744
|
most: vaultSensitivitySchema,
|
|
@@ -60791,7 +60837,13 @@ var vaultCoreTrpc = defineTrpcContract("vault").mutation("createConnection").wit
|
|
|
60791
60837
|
})
|
|
60792
60838
|
).withOutput(vaultSealedMaterialSchema).query("getSealedApproval").withInput(external_exports.object({ ...workspaceInput.shape, requestId: external_exports.string().min(1) })).withOutput(vaultSealedApprovalSchema).mutation("answerSealedApproval").withInput(answerSealedApprovalInputSchema).withOutput(vaultApprovalRequestSchema).mutation("compareSecret").withInput(compareVaultSecretInputSchema).withOutput(vaultSecretComparisonSchema).mutation("replaceSecretValue").withInput(replaceVaultSecretValueInputSchema).withOutput(vaultConnectionSchema).mutation("savePastedSecret").withInput(external_exports.object({ ...workspaceInput.shape, ...saveVaultPastedSecretBodySchema.shape })).withOutput(vaultPastedSecretSavedSchema).build();
|
|
60793
60839
|
var vaultAgentRuleTrpc = defineTrpcContract("vault").query("listAgentRules").withInput(listVaultAgentRulesInputSchema).withOutput(external_exports.array(vaultAgentRuleEntrySchema)).mutation("setAgentRule").withInput(setVaultAgentRuleInputSchema).withOutput(external_exports.array(vaultAgentRuleEntrySchema)).build();
|
|
60794
|
-
var
|
|
60840
|
+
var vaultTierTrpc = defineTrpcContract("vault").query("tierPolicy").withInput(workspaceInput).withOutput(vaultTierPolicySchema).mutation("setTierSetting").withInput(setVaultTierSettingInputSchema).withOutput(vaultTierPolicySchema).mutation("setSubjectTier").withInput(setVaultSubjectTierInputSchema).withOutput(vaultTierPolicySchema).build();
|
|
60841
|
+
var vaultTrpc = joinTrpcContracts(
|
|
60842
|
+
"vault",
|
|
60843
|
+
vaultCoreTrpc,
|
|
60844
|
+
vaultAgentRuleTrpc,
|
|
60845
|
+
vaultTierTrpc
|
|
60846
|
+
);
|
|
60795
60847
|
|
|
60796
60848
|
// ../../modules/vault/contract/src/vault.config.ts
|
|
60797
60849
|
var positiveInt = external_exports.coerce.number().int().positive();
|
|
@@ -60957,6 +61009,19 @@ var vaultShareSettledPayloadSchemaDefinition = external_exports.object({
|
|
|
60957
61009
|
resolutionNote: external_exports.string().default(""),
|
|
60958
61010
|
at: external_exports.iso.datetime()
|
|
60959
61011
|
});
|
|
61012
|
+
var vaultShareWaitingPayloadSchemaDefinition = external_exports.object({
|
|
61013
|
+
workspaceId: external_exports.string().min(1),
|
|
61014
|
+
grantId: external_exports.string().min(1),
|
|
61015
|
+
ownerUserId: external_exports.string().min(1),
|
|
61016
|
+
at: external_exports.iso.datetime()
|
|
61017
|
+
});
|
|
61018
|
+
|
|
61019
|
+
// ../../modules/vault/contract/src/vault-tiers.ts
|
|
61020
|
+
var VAULT_TIER_BUILT_IN_LEVELS = {
|
|
61021
|
+
sensitive: "ask",
|
|
61022
|
+
standard: "checked",
|
|
61023
|
+
low_risk: "auto"
|
|
61024
|
+
};
|
|
60960
61025
|
|
|
60961
61026
|
// ../../modules/vault/contract/src/vault-oauth.ts
|
|
60962
61027
|
var tokenFieldsSchema = external_exports.object({
|
|
@@ -61184,6 +61249,12 @@ var vaultConnectionReconnectedPayloadSchemaDefinition = external_exports.object(
|
|
|
61184
61249
|
outcome: external_exports.enum(["reconnected", "deleted"]),
|
|
61185
61250
|
at: external_exports.iso.datetime()
|
|
61186
61251
|
});
|
|
61252
|
+
var vaultConnectionDeletedPayloadSchemaDefinition = external_exports.object({
|
|
61253
|
+
workspaceId: external_exports.string().min(1),
|
|
61254
|
+
connectionId: external_exports.string().min(1),
|
|
61255
|
+
kind: external_exports.string().min(1),
|
|
61256
|
+
at: external_exports.iso.datetime()
|
|
61257
|
+
});
|
|
61187
61258
|
var vaultConnectionSecretSetPayloadSchemaDefinition = external_exports.object({
|
|
61188
61259
|
workspaceId: external_exports.string().min(1),
|
|
61189
61260
|
connectionId: external_exports.string().min(1),
|
|
@@ -61975,6 +62046,9 @@ var externalImageQuerySchemaDefinition = external_exports.object({
|
|
|
61975
62046
|
u: external_exports.string().min(1).max(2e3),
|
|
61976
62047
|
sig: external_exports.string().max(100).default("")
|
|
61977
62048
|
});
|
|
62049
|
+
var noticeAvatarParamsSchemaDefinition = external_exports.object({
|
|
62050
|
+
token: external_exports.string().min(1).max(4e3).regex(/^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.png$/)
|
|
62051
|
+
});
|
|
61978
62052
|
|
|
61979
62053
|
// ../../modules/chat/contract/src/chat.layout.ts
|
|
61980
62054
|
var LAYOUT_BLOCKS_MAX = 50;
|
|
@@ -62064,6 +62138,12 @@ var layoutFileSchemaDefinition = external_exports.object({
|
|
|
62064
62138
|
path: external_exports.string().max(600).regex(/^\/api\/[^\s]*$/),
|
|
62065
62139
|
image: external_exports.boolean()
|
|
62066
62140
|
});
|
|
62141
|
+
var layoutQuotedSchemaDefinition = external_exports.object({
|
|
62142
|
+
originKey: external_exports.string().min(1).max(200),
|
|
62143
|
+
channelId: external_exports.string().min(1).max(100).nullable(),
|
|
62144
|
+
seq: external_exports.number().int().positive().nullable(),
|
|
62145
|
+
imageId: external_exports.string().min(1).max(100).nullable()
|
|
62146
|
+
});
|
|
62067
62147
|
var layoutAttachmentSchemaDefinition = external_exports.object({
|
|
62068
62148
|
type: external_exports.literal("attachment"),
|
|
62069
62149
|
/** A list item draws its fields as a table; a shared message is a quoted message. */
|
|
@@ -62086,7 +62166,9 @@ var layoutAttachmentSchemaDefinition = external_exports.object({
|
|
|
62086
62166
|
footer: markdown,
|
|
62087
62167
|
footerIcon: imageUrl.nullable(),
|
|
62088
62168
|
/** The attachment's time, a `<!date^...>` token the reader formats; "" for none. */
|
|
62089
|
-
ts: markdown
|
|
62169
|
+
ts: markdown,
|
|
62170
|
+
/** A quote's original by its source key; Laze adds its place and picture when it holds it. */
|
|
62171
|
+
quoted: layoutQuotedSchemaDefinition.optional()
|
|
62090
62172
|
});
|
|
62091
62173
|
var layoutPartSchemaDefinition = external_exports.union([
|
|
62092
62174
|
layoutBlockSchemaDefinition,
|
|
@@ -62702,6 +62784,14 @@ var scheduleRunCardSchemaDefinition = external_exports.object({
|
|
|
62702
62784
|
prompt: external_exports.string().max(SCHEDULE_RUN_PROMPT_MAX)
|
|
62703
62785
|
});
|
|
62704
62786
|
var welcomeCardActionSchema = external_exports.enum(["slides", "connect_agent", "new_channel", "invite"]);
|
|
62787
|
+
var welcomeCollabSchemaDefinition = external_exports.object({
|
|
62788
|
+
/** The open invitation it sends again, by the invited address's name; null opens the dialog. */
|
|
62789
|
+
invite: external_exports.object({ inviteId: external_exports.string().min(1).max(200), name: external_exports.string().min(1).max(200) }).nullable(),
|
|
62790
|
+
/** The invitation went out again from the card. */
|
|
62791
|
+
sent: external_exports.boolean(),
|
|
62792
|
+
/** Closed by its person: it shows to no one. */
|
|
62793
|
+
dismissed: external_exports.boolean()
|
|
62794
|
+
});
|
|
62705
62795
|
var welcomeCardSchemaDefinition = external_exports.object({
|
|
62706
62796
|
type: external_exports.literal("welcome"),
|
|
62707
62797
|
agentId: idSchema4,
|
|
@@ -62710,7 +62800,9 @@ var welcomeCardSchemaDefinition = external_exports.object({
|
|
|
62710
62800
|
/** `welcome`: slides, connect and new channel; `invite`: the follow-up after the slides. */
|
|
62711
62801
|
step: external_exports.enum(["welcome", "invite"]),
|
|
62712
62802
|
/** The buttons already pressed that run once. */
|
|
62713
|
-
pressed: external_exports.array(welcomeCardActionSchema).max(4)
|
|
62803
|
+
pressed: external_exports.array(welcomeCardActionSchema).max(4),
|
|
62804
|
+
/** Set on the boxed invite card that follows the slides. */
|
|
62805
|
+
collab: welcomeCollabSchemaDefinition.optional()
|
|
62714
62806
|
});
|
|
62715
62807
|
var messageCardSchemaDefinition = external_exports.discriminatedUnion("type", [
|
|
62716
62808
|
attentionCardSchemaDefinition,
|
|
@@ -62838,7 +62930,9 @@ var messageSchemaDefinition = external_exports.object({
|
|
|
62838
62930
|
/** On the sender's post answer only: who the mentions did not reach, being outside it. */
|
|
62839
62931
|
notInChannel: external_exports.array(notInChannelSchemaDefinition).optional(),
|
|
62840
62932
|
/** An agent's reply: the feed cards it added or changed in that turn; absent means none. */
|
|
62841
|
-
feedRefs: external_exports.array(messageFeedRefSchemaDefinition).max(MESSAGE_FEED_REFS_MAX).optional()
|
|
62933
|
+
feedRefs: external_exports.array(messageFeedRefSchemaDefinition).max(MESSAGE_FEED_REFS_MAX).optional(),
|
|
62934
|
+
/** On an afterChange page and in realtime: its newest change number in this conversation. */
|
|
62935
|
+
changeSeq: external_exports.number().int().nonnegative().optional()
|
|
62842
62936
|
});
|
|
62843
62937
|
var messageSchema = messageSchemaDefinition;
|
|
62844
62938
|
var departedPersonSchemaDefinition = external_exports.object({
|
|
@@ -62946,10 +63040,24 @@ var browsableChannelSchemaDefinition = external_exports.object({
|
|
|
62946
63040
|
external: external_exports.boolean().optional()
|
|
62947
63041
|
});
|
|
62948
63042
|
var browsableChannelSchema = browsableChannelSchemaDefinition;
|
|
63043
|
+
var removedMessageSchemaDefinition = external_exports.object({
|
|
63044
|
+
id: external_exports.string(),
|
|
63045
|
+
/** Its newest change number in this conversation: it was moved out or erased. */
|
|
63046
|
+
changeSeq: external_exports.number().int().nonnegative()
|
|
63047
|
+
});
|
|
62949
63048
|
var historyPageSchemaDefinition = external_exports.object({
|
|
62950
63049
|
messages: external_exports.array(messageSchemaDefinition),
|
|
62951
63050
|
hasOlder: external_exports.boolean(),
|
|
62952
|
-
hasNewer: external_exports.boolean()
|
|
63051
|
+
hasNewer: external_exports.boolean(),
|
|
63052
|
+
/**
|
|
63053
|
+
* The afterChange that reads what changed after this page, so nothing is skipped. Spec:
|
|
63054
|
+
* modules/chat/specs/change-sync.feature. Absent from servers before ADR-202 M2.
|
|
63055
|
+
*/
|
|
63056
|
+
nextChange: external_exports.number().int().nonnegative().optional(),
|
|
63057
|
+
/** On an afterChange page: messages that changed but are no longer in this conversation. */
|
|
63058
|
+
removed: external_exports.array(removedMessageSchemaDefinition).optional(),
|
|
63059
|
+
/** afterChange is older than the change log keeps: reload the conversation by seq. */
|
|
63060
|
+
resync: external_exports.literal(true).optional()
|
|
62953
63061
|
});
|
|
62954
63062
|
var historyPageSchema = historyPageSchemaDefinition;
|
|
62955
63063
|
var threadSchemaDefinition = external_exports.object({
|
|
@@ -63160,8 +63268,19 @@ var historyInputSchemaDefinition = external_exports.object({
|
|
|
63160
63268
|
before: external_exports.number().int().positive().optional(),
|
|
63161
63269
|
after: external_exports.number().int().nonnegative().optional(),
|
|
63162
63270
|
around: external_exports.number().int().positive().optional(),
|
|
63271
|
+
/**
|
|
63272
|
+
* Messages with a change numbered above this one, by their newest change, deleted ones
|
|
63273
|
+
* included; never with before, after or around. Spec: modules/chat/specs/change-sync.feature.
|
|
63274
|
+
*/
|
|
63275
|
+
afterChange: external_exports.number().int().nonnegative().optional(),
|
|
63163
63276
|
limit: external_exports.number().int().min(1).max(HISTORY_PAGE_MAX).default(50)
|
|
63164
|
-
})
|
|
63277
|
+
}).refine(
|
|
63278
|
+
(input2) => input2.afterChange === void 0 || input2.before === void 0 && input2.after === void 0 && input2.around === void 0,
|
|
63279
|
+
{
|
|
63280
|
+
message: "afterChange reads changes; it takes no before, after or around",
|
|
63281
|
+
path: ["afterChange"]
|
|
63282
|
+
}
|
|
63283
|
+
);
|
|
63165
63284
|
var historyInputSchema = historyInputSchemaDefinition;
|
|
63166
63285
|
var postMessageInputSchemaDefinition = external_exports.object({
|
|
63167
63286
|
workspaceId: workspaceIdSchema,
|
|
@@ -63261,6 +63380,7 @@ var postMirroredInputSchemaDefinition = external_exports.object({
|
|
|
63261
63380
|
/** Files the mirror stored in this workspace's files, attached to the message. */
|
|
63262
63381
|
fileIds: external_exports.array(idSchema4).max(10).default([])
|
|
63263
63382
|
});
|
|
63383
|
+
var postMirroredInputSchema = postMirroredInputSchemaDefinition;
|
|
63264
63384
|
var MIRROR_BATCH_MAX = 500;
|
|
63265
63385
|
var postMirroredBatchInputSchemaDefinition = external_exports.object({
|
|
63266
63386
|
workspaceId: workspaceIdSchema,
|
|
@@ -63831,6 +63951,7 @@ var draftFileSchemaDefinition = external_exports.object({
|
|
|
63831
63951
|
label: external_exports.string().min(1).max(300),
|
|
63832
63952
|
attachmentId: idSchema4
|
|
63833
63953
|
});
|
|
63954
|
+
var draftFileSchema = draftFileSchemaDefinition;
|
|
63834
63955
|
var draftSchemaDefinition = external_exports.object({
|
|
63835
63956
|
channelId: idSchema4,
|
|
63836
63957
|
threadRootId: idSchema4.nullable(),
|
|
@@ -63868,6 +63989,8 @@ var draftSavedSchema = draftSavedSchemaDefinition;
|
|
|
63868
63989
|
var cardDraftSchemaDefinition = external_exports.object({
|
|
63869
63990
|
cardId: idSchema4,
|
|
63870
63991
|
text: external_exports.string().max(MESSAGE_BODY_MAX),
|
|
63992
|
+
/** The chips of files the comment's composer finished uploading; none from an older client. */
|
|
63993
|
+
files: external_exports.array(draftFileSchemaDefinition).max(10).default([]),
|
|
63871
63994
|
/** The writer's clock when they typed it; the newest save wins. */
|
|
63872
63995
|
savedAt: external_exports.iso.datetime()
|
|
63873
63996
|
});
|
|
@@ -64047,6 +64170,12 @@ var apnsDeviceSchemaDefinition = external_exports.object({
|
|
|
64047
64170
|
}).strict();
|
|
64048
64171
|
var apnsStatusSchemaDefinition = external_exports.object({ available: external_exports.boolean(), bundleId: external_exports.string().min(1) }).strict();
|
|
64049
64172
|
var apnsStatusSchema = apnsStatusSchemaDefinition;
|
|
64173
|
+
var apnsSenderSchemaDefinition = external_exports.object({
|
|
64174
|
+
id: external_exports.string().min(1).max(200),
|
|
64175
|
+
name: external_exports.string().max(120),
|
|
64176
|
+
image: external_exports.url().max(4096)
|
|
64177
|
+
}).strict();
|
|
64178
|
+
var apnsSenderSchema = apnsSenderSchemaDefinition;
|
|
64050
64179
|
var apnsPayloadSchemaDefinition = external_exports.object({
|
|
64051
64180
|
aps: external_exports.object({
|
|
64052
64181
|
alert: external_exports.object({ title: external_exports.string().min(1).max(120), body: external_exports.string().max(400) }).optional(),
|
|
@@ -64056,7 +64185,9 @@ var apnsPayloadSchemaDefinition = external_exports.object({
|
|
|
64056
64185
|
"thread-id": external_exports.string().min(1).max(200).optional(),
|
|
64057
64186
|
category: external_exports.literal(APNS_APPROVAL_CATEGORY).optional(),
|
|
64058
64187
|
"interruption-level": external_exports.enum(["passive", "active", "time-sensitive"]).optional(),
|
|
64059
|
-
"content-available": external_exports.literal(1).optional()
|
|
64188
|
+
"content-available": external_exports.literal(1).optional(),
|
|
64189
|
+
/** The app's notification service may add the sender's picture before it shows. */
|
|
64190
|
+
"mutable-content": external_exports.literal(1).optional()
|
|
64060
64191
|
}).strict(),
|
|
64061
64192
|
workspaceId: external_exports.string().min(1),
|
|
64062
64193
|
link: external_exports.string().startsWith("laze://").max(2048).optional(),
|
|
@@ -64081,7 +64212,9 @@ var apnsPayloadSchemaDefinition = external_exports.object({
|
|
|
64081
64212
|
/** A read push: everything in the conversation (or thread) up to this seq is read. */
|
|
64082
64213
|
readUpToSeq: external_exports.number().int().nonnegative().optional(),
|
|
64083
64214
|
/** A read or retraction push: the person's Notifications total, as alert pushes carry it. */
|
|
64084
|
-
badge: external_exports.number().int().nonnegative().optional()
|
|
64215
|
+
badge: external_exports.number().int().nonnegative().optional(),
|
|
64216
|
+
/** Who a message alert is from, for a communication notification with their picture. */
|
|
64217
|
+
sender: apnsSenderSchemaDefinition.optional()
|
|
64085
64218
|
}).strict();
|
|
64086
64219
|
|
|
64087
64220
|
// ../../modules/notification/contract/src/web-push.ts
|
|
@@ -64122,7 +64255,9 @@ var webPushPayloadSchemaDefinition = external_exports.object({
|
|
|
64122
64255
|
url: external_exports.string().min(1).max(2048),
|
|
64123
64256
|
tag: external_exports.string().min(1).max(200),
|
|
64124
64257
|
/** Shown without the system sound, such as for a message a Slack mirror brought in. */
|
|
64125
|
-
silent: external_exports.boolean().optional()
|
|
64258
|
+
silent: external_exports.boolean().optional(),
|
|
64259
|
+
/** The notification's picture, a path on this deployment; the Laze icon without one. */
|
|
64260
|
+
icon: external_exports.string().startsWith("/").max(4096).optional()
|
|
64126
64261
|
}).strict();
|
|
64127
64262
|
var webPushPayloadSchema = webPushPayloadSchemaDefinition;
|
|
64128
64263
|
var requestWebPushDeliveryCommandSchemaDefinition = external_exports.object({
|
|
@@ -64324,6 +64459,10 @@ var noticeSenderSchemaDefinition = external_exports.object({
|
|
|
64324
64459
|
name: external_exports.string().max(120)
|
|
64325
64460
|
});
|
|
64326
64461
|
var noticeSenderSchema = noticeSenderSchemaDefinition;
|
|
64462
|
+
var noticeAvatarSchemaDefinition = external_exports.object({
|
|
64463
|
+
icon: external_exports.string().startsWith("/").max(4096),
|
|
64464
|
+
sender: external_exports.string().startsWith("/").max(4096)
|
|
64465
|
+
});
|
|
64327
64466
|
var messageNoticeSchema = external_exports.object({
|
|
64328
64467
|
workspaceId: workspaceIdSchema2,
|
|
64329
64468
|
userId: userIdSchema,
|
|
@@ -64350,7 +64489,9 @@ var messageNoticeSchema = external_exports.object({
|
|
|
64350
64489
|
/** An @channel or @here raised it, not the conversation's every-message level. */
|
|
64351
64490
|
broadcast: external_exports.boolean().optional(),
|
|
64352
64491
|
/** The person's Notifications count, from chat: the iPhone's icon badge shows it. */
|
|
64353
|
-
badge: external_exports.number().int().nonnegative().optional()
|
|
64492
|
+
badge: external_exports.number().int().nonnegative().optional(),
|
|
64493
|
+
/** Who it is from, as a picture; absent for a plain Laze channel, which shows the app icon. */
|
|
64494
|
+
avatar: noticeAvatarSchemaDefinition.optional()
|
|
64354
64495
|
});
|
|
64355
64496
|
var approvalNoticeSchema = external_exports.object({
|
|
64356
64497
|
workspaceId: workspaceIdSchema2,
|
|
@@ -64410,7 +64551,9 @@ var desktopPublicationSchemaDefinition = external_exports.object({
|
|
|
64410
64551
|
/** The message's place in its conversation, so reading past it closes the notification. */
|
|
64411
64552
|
seq: external_exports.number().int().nonnegative().optional(),
|
|
64412
64553
|
/** Shown without any sound, such as for a message a Slack mirror brought in. */
|
|
64413
|
-
silent: external_exports.boolean().optional()
|
|
64554
|
+
silent: external_exports.boolean().optional(),
|
|
64555
|
+
/** Who it is from, as a picture; the desktop app shows the app icon without one. */
|
|
64556
|
+
avatar: noticeAvatarSchemaDefinition.optional()
|
|
64414
64557
|
}).nullable(),
|
|
64415
64558
|
badge: external_exports.number().int().nonnegative(),
|
|
64416
64559
|
/** The tag of a notification to take back, such as one for a message since deleted. */
|
|
@@ -64597,7 +64740,9 @@ var heldPhonePushShape = {
|
|
|
64597
64740
|
broadcast: external_exports.boolean().optional(),
|
|
64598
64741
|
silent: external_exports.boolean().optional(),
|
|
64599
64742
|
feed: heldFeedPushSchema.optional(),
|
|
64600
|
-
burst: heldBurstPushSchema.optional()
|
|
64743
|
+
burst: heldBurstPushSchema.optional(),
|
|
64744
|
+
/** A message alert's sender, so a held alert still shows their picture. */
|
|
64745
|
+
sender: apnsSenderSchema.optional()
|
|
64601
64746
|
};
|
|
64602
64747
|
var phonePushHeldPayloadSchemaDefinition = external_exports.object({
|
|
64603
64748
|
workspaceId: external_exports.string().min(1),
|
|
@@ -64801,7 +64946,9 @@ var messageChangedPayloadSchemaDefinition = external_exports.object({
|
|
|
64801
64946
|
/** Members the message mentioned from outside were added, so its mentions now reach them. */
|
|
64802
64947
|
"mentioned",
|
|
64803
64948
|
/** A mirror is still waiting to send it to the source, or gave up. */
|
|
64804
|
-
"mirror_delivery"
|
|
64949
|
+
"mirror_delivery",
|
|
64950
|
+
/** A mirror put a reply that landed before its root under that root (ADR-202 §3). */
|
|
64951
|
+
"moved"
|
|
64805
64952
|
]),
|
|
64806
64953
|
/** Distinguishes two changes of one kind to one message. */
|
|
64807
64954
|
changeId: external_exports.string().min(1),
|
|
@@ -64842,6 +64989,8 @@ var readMarkerMovedPayloadSchemaDefinition = external_exports.object({
|
|
|
64842
64989
|
channelId: external_exports.string().min(1),
|
|
64843
64990
|
reader: chatActorSchema,
|
|
64844
64991
|
seq: external_exports.number().int().nonnegative(),
|
|
64992
|
+
/** The message at seq when the marker moved, as seq may be renumbered (ADR-202 §5). */
|
|
64993
|
+
messageId: external_exports.string().min(1).optional(),
|
|
64845
64994
|
at: external_exports.iso.datetime(),
|
|
64846
64995
|
/** A mirror moved it to match its source, so the source needs no telling. */
|
|
64847
64996
|
fromSource: external_exports.boolean().default(false),
|
|
@@ -64870,7 +65019,10 @@ var realtimePublicationSchemaDefinition = external_exports.discriminatedUnion("t
|
|
|
64870
65019
|
type: external_exports.literal("read_marker_moved"),
|
|
64871
65020
|
workspaceId: external_exports.string(),
|
|
64872
65021
|
channelId: external_exports.string(),
|
|
64873
|
-
|
|
65022
|
+
/** iOS 1.0 decodes it as a required Int: kept beside messageId (ADR-202 §5). */
|
|
65023
|
+
seq: external_exports.number().int(),
|
|
65024
|
+
/** The message the marker is at; absent at 0 and from servers before ADR-202 M2. */
|
|
65025
|
+
messageId: external_exports.string().optional()
|
|
64874
65026
|
}),
|
|
64875
65027
|
external_exports.object({
|
|
64876
65028
|
type: external_exports.literal("activity"),
|
|
@@ -64983,6 +65135,7 @@ var ChatNewChannelDialogSlot = chatUi.component("new-channel-dialog");
|
|
|
64983
65135
|
var ChatPeoplePickerSlot = chatUi.component("people-picker");
|
|
64984
65136
|
var ChatAddPeopleDialogSlot = chatUi.component("add-people-dialog");
|
|
64985
65137
|
var ChatHandoffComposerSlot = chatUi.component("handoff-composer");
|
|
65138
|
+
var ChatConversationsWithSlot = chatUi.component("conversations-with");
|
|
64986
65139
|
|
|
64987
65140
|
// ../../modules/chat/contract/src/chat.markers.ts
|
|
64988
65141
|
var FILE_MARKER = /<file:([A-Za-z0-9_-]{1,64})>/g;
|
|
@@ -65004,6 +65157,70 @@ function withSlackMarkupAsText(text3) {
|
|
|
65004
65157
|
return withSlackPeopleAsNames(text3).replace(SLACK_DATE_TOKEN, "$1").replace(ANGLE_LINK, (_link, address, label3) => label3 ?? address);
|
|
65005
65158
|
}
|
|
65006
65159
|
|
|
65160
|
+
// ../../modules/chat/contract/src/chat.observe.ts
|
|
65161
|
+
var originKeySchema = external_exports.string().min(1).max(200);
|
|
65162
|
+
var sourceMessageSchemaDefinition = external_exports.object({
|
|
65163
|
+
workspaceId: external_exports.string().min(1),
|
|
65164
|
+
channelId: external_exports.string().min(1).max(64),
|
|
65165
|
+
/** The message's key at the source, as `origin.key` named it when it was observed. */
|
|
65166
|
+
originKey: originKeySchema,
|
|
65167
|
+
/** The Laze message the mirror linked it to, such as one Laze sent there and has no origin. */
|
|
65168
|
+
messageId: external_exports.string().min(1).max(64).optional()
|
|
65169
|
+
});
|
|
65170
|
+
var observeMessageInputSchemaDefinition = external_exports.object({
|
|
65171
|
+
...postMirroredInputSchema.shape,
|
|
65172
|
+
/** The source's render of the text, so a restyle of the same version is told apart. */
|
|
65173
|
+
renderHash: external_exports.string().max(200).nullable().default(null),
|
|
65174
|
+
/** The thread root's origin key, for a reply. */
|
|
65175
|
+
rootOriginKey: originKeySchema.nullable().default(null),
|
|
65176
|
+
/** Its edit version when first read already edited, such as from history. */
|
|
65177
|
+
version: external_exports.number().int().min(0).default(0)
|
|
65178
|
+
});
|
|
65179
|
+
var observeEditInputSchemaDefinition = external_exports.object({
|
|
65180
|
+
...sourceMessageSchemaDefinition.shape,
|
|
65181
|
+
keyOwnerUserId: external_exports.string().min(1).max(64),
|
|
65182
|
+
version: external_exports.number().int().min(0),
|
|
65183
|
+
body: external_exports.string().max(MESSAGE_BODY_MAX),
|
|
65184
|
+
/** The source's blocks and attachments now; null drops them; left out keeps them. */
|
|
65185
|
+
layout: messageLayoutSchema.nullable().optional(),
|
|
65186
|
+
rerendered: external_exports.boolean().default(false),
|
|
65187
|
+
renderHash: external_exports.string().max(200).nullable().default(null),
|
|
65188
|
+
/** The source says the message was never edited: an edited mark Laze gave it comes off. */
|
|
65189
|
+
neverEdited: external_exports.boolean().default(false),
|
|
65190
|
+
fileIds: external_exports.array(external_exports.string().min(1).max(64)).max(10).default([])
|
|
65191
|
+
});
|
|
65192
|
+
var observeReactionsInputSchemaDefinition = external_exports.object({
|
|
65193
|
+
...sourceMessageSchemaDefinition.shape,
|
|
65194
|
+
change: external_exports.discriminatedUnion("kind", [
|
|
65195
|
+
external_exports.object({
|
|
65196
|
+
kind: external_exports.literal("one"),
|
|
65197
|
+
actor: messageAuthorSchema,
|
|
65198
|
+
emoji: external_exports.string().trim().min(1).max(64),
|
|
65199
|
+
present: external_exports.boolean(),
|
|
65200
|
+
atMs: external_exports.number().int().min(0)
|
|
65201
|
+
}),
|
|
65202
|
+
external_exports.object({
|
|
65203
|
+
kind: external_exports.literal("snapshot"),
|
|
65204
|
+
readAtMs: external_exports.number().int().min(0),
|
|
65205
|
+
present: external_exports.array(external_exports.object({ actor: messageAuthorSchema, emoji: external_exports.string().trim().min(1).max(64) })).max(500)
|
|
65206
|
+
})
|
|
65207
|
+
])
|
|
65208
|
+
});
|
|
65209
|
+
var observePinInputSchemaDefinition = external_exports.object({
|
|
65210
|
+
...sourceMessageSchemaDefinition.shape,
|
|
65211
|
+
actor: messageAuthorSchema,
|
|
65212
|
+
/** The pinner's name at the source, kept when they are outside Laze. */
|
|
65213
|
+
actorName: external_exports.string().max(200).nullable().default(null),
|
|
65214
|
+
pinned: external_exports.boolean(),
|
|
65215
|
+
atMs: external_exports.number().int().min(0)
|
|
65216
|
+
});
|
|
65217
|
+
var observeSenderInputSchemaDefinition = external_exports.object({
|
|
65218
|
+
workspaceId: external_exports.string().min(1),
|
|
65219
|
+
identity: external_exports.string().min(1).max(64),
|
|
65220
|
+
name: external_exports.string().trim().min(1).max(200),
|
|
65221
|
+
avatarUrl: external_exports.string().max(2e3).nullable().default(null)
|
|
65222
|
+
});
|
|
65223
|
+
|
|
65007
65224
|
// ../../modules/agent/contract/src/agent-access.ts
|
|
65008
65225
|
var idSchema5 = external_exports.string().min(1).max(80);
|
|
65009
65226
|
var agentGranteeSchemaDefinition = external_exports.discriminatedUnion("kind", [
|
|
@@ -66192,7 +66409,7 @@ var computerMoveIntentSchemaDefinition = external_exports.object({ moveId: exter
|
|
|
66192
66409
|
|
|
66193
66410
|
// ../../modules/agent/contract/src/agent-context-window.ts
|
|
66194
66411
|
var AGENT_CONTEXT_WINDOW = {
|
|
66195
|
-
default:
|
|
66412
|
+
default: 35e4,
|
|
66196
66413
|
min: 1e5,
|
|
66197
66414
|
max: 1e6
|
|
66198
66415
|
};
|
|
@@ -66378,37 +66595,42 @@ var LEVEL_NAMES = { fast: "Laze Small", frontier: "Laze Frontier" };
|
|
|
66378
66595
|
function modelLineOf({ agent: agent3 }) {
|
|
66379
66596
|
if (agent3.harness === "laze-models") {
|
|
66380
66597
|
const { level: level2, source } = levelOf({ agent: agent3 });
|
|
66381
|
-
|
|
66382
|
-
return source === "workspace" ? `Default (${LEVEL_NAMES[level2]}, the workspace default)` : `Default (${LEVEL_NAMES[level2]})`;
|
|
66598
|
+
return source === "workspace" ? `${LEVEL_NAMES[level2]}, the workspace default` : LEVEL_NAMES[level2];
|
|
66383
66599
|
}
|
|
66384
66600
|
const running = pickRunningModel({ agent: agent3 });
|
|
66385
66601
|
const name3 = running ? versionedNameOf({ model: running }) || running.id : describeUnlistedPoolModel({ agent: agent3 }) ?? null;
|
|
66386
66602
|
if (agent3.model) return name3 || agent3.model;
|
|
66387
|
-
if (!name3) return "
|
|
66603
|
+
if (!name3) return agent3.harness === "codex" ? "Codex's default model" : "Opus";
|
|
66388
66604
|
const choice = defaultModelChoiceOf({ agent: agent3 });
|
|
66389
66605
|
const from = choice.kind === "laze" && choice.poolName ? choice.poolName : null;
|
|
66390
|
-
return from ?
|
|
66606
|
+
return from ? `${name3}, from ${poolPhraseOf({ poolName: from })}` : name3;
|
|
66391
66607
|
}
|
|
66392
|
-
|
|
66608
|
+
var AGENT_DEFAULT_EFFORT = "high";
|
|
66609
|
+
function launchEffortOf({ agent: agent3 }) {
|
|
66393
66610
|
const running = pickRunningModel({ agent: agent3 });
|
|
66394
|
-
|
|
66395
|
-
|
|
66396
|
-
const fallback = running?.defaultEffort;
|
|
66397
|
-
return fallback ? `Default (${effortLabelOf({ effort: fallback })})` : "Default";
|
|
66611
|
+
const effort = agent3.effort ?? (!running || running.efforts.includes(AGENT_DEFAULT_EFFORT) ? AGENT_DEFAULT_EFFORT : running.defaultEffort);
|
|
66612
|
+
return effort ? { kind: "set", effort } : { kind: "none" };
|
|
66398
66613
|
}
|
|
66399
|
-
function
|
|
66614
|
+
function describeEffort({ agent: agent3 }) {
|
|
66615
|
+
const launched = launchEffortOf({ agent: agent3 });
|
|
66616
|
+
return launched.kind === "set" ? effortLabelOf({ effort: launched.effort }) : null;
|
|
66617
|
+
}
|
|
66618
|
+
function claudeWindowOf({ model }) {
|
|
66619
|
+
const name3 = model ? `${model.name} ${model.description} ${model.id}` : "";
|
|
66620
|
+
return /haiku[ -]4[.-]5/i.test(name3) ? 2e5 : 1e6;
|
|
66621
|
+
}
|
|
66622
|
+
function contextTokensOf({ agent: agent3 }) {
|
|
66623
|
+
const set2 = agent3.contextWindow ?? AGENT_CONTEXT_WINDOW.default;
|
|
66624
|
+
if (agent3.harness === "laze-models") return set2;
|
|
66400
66625
|
const cap = contextCapOf({ agent: agent3 });
|
|
66401
|
-
if (
|
|
66402
|
-
|
|
66403
|
-
return
|
|
66404
|
-
}
|
|
66405
|
-
if (!cap.known) {
|
|
66406
|
-
return agent3.contextWindow ? `${tokensLabelOf({ tokens: agent3.contextWindow })}, or the model's window if smaller` : "The model's own window";
|
|
66626
|
+
if (cap.known) return Math.min(set2, cap.tokens);
|
|
66627
|
+
if (agent3.harness === "claude-code") {
|
|
66628
|
+
return Math.min(set2, claudeWindowOf({ model: pickRunningModel({ agent: agent3 }) }));
|
|
66407
66629
|
}
|
|
66408
|
-
|
|
66409
|
-
|
|
66410
|
-
|
|
66411
|
-
return
|
|
66630
|
+
return set2;
|
|
66631
|
+
}
|
|
66632
|
+
function contextLineOf({ agent: agent3 }) {
|
|
66633
|
+
return tokensLabelOf({ tokens: contextTokensOf({ agent: agent3 }) });
|
|
66412
66634
|
}
|
|
66413
66635
|
function agentRunSummaryOf({ agent: agent3 }) {
|
|
66414
66636
|
return {
|
|
@@ -66769,6 +66991,11 @@ var startConversationInputSchemaDefinition = external_exports.object({
|
|
|
66769
66991
|
contextMessageId: idSchema7.optional()
|
|
66770
66992
|
});
|
|
66771
66993
|
var startConversationInputSchema = startConversationInputSchemaDefinition;
|
|
66994
|
+
var openConversationInputSchemaDefinition = external_exports.object({
|
|
66995
|
+
workspaceId: workspaceIdSchema4,
|
|
66996
|
+
agentId: idSchema7
|
|
66997
|
+
});
|
|
66998
|
+
var openConversationInputSchema = openConversationInputSchemaDefinition;
|
|
66772
66999
|
var startedConversationSchemaDefinition = external_exports.object({
|
|
66773
67000
|
channelId: idSchema7,
|
|
66774
67001
|
messageId: idSchema7
|
|
@@ -67055,7 +67282,7 @@ var CONNECTOR_PROVIDERS = [
|
|
|
67055
67282
|
description: "Search, read, archive and label mail and write drafts. Sending, trash and unsubscribing ask you first.",
|
|
67056
67283
|
// gmail.modify covers reading, drafts and sending as well as labels, archive and trash.
|
|
67057
67284
|
scopes: ["openid", "email", GMAIL_MODIFY_SCOPE],
|
|
67058
|
-
sensitivity:
|
|
67285
|
+
sensitivity: VAULT_TIER_BUILT_IN_LEVELS.sensitive,
|
|
67059
67286
|
maxLeaseSeconds: TWO_DAYS,
|
|
67060
67287
|
egress: {
|
|
67061
67288
|
upstream: "https://gmail.googleapis.com",
|
|
@@ -67077,7 +67304,7 @@ var CONNECTOR_PROVIDERS = [
|
|
|
67077
67304
|
// Narrowest scope with events.list and events.insert on the primary calendar.
|
|
67078
67305
|
"https://www.googleapis.com/auth/calendar.events.owned"
|
|
67079
67306
|
],
|
|
67080
|
-
sensitivity:
|
|
67307
|
+
sensitivity: VAULT_TIER_BUILT_IN_LEVELS.standard,
|
|
67081
67308
|
maxLeaseSeconds: null,
|
|
67082
67309
|
egress: {
|
|
67083
67310
|
upstream: "https://www.googleapis.com/calendar/v3",
|
|
@@ -67093,7 +67320,7 @@ var CONNECTOR_PROVIDERS = [
|
|
|
67093
67320
|
category: "Files and knowledge",
|
|
67094
67321
|
description: "Find and read your documents and files.",
|
|
67095
67322
|
scopes: ["openid", "email", "https://www.googleapis.com/auth/drive.readonly"],
|
|
67096
|
-
sensitivity:
|
|
67323
|
+
sensitivity: VAULT_TIER_BUILT_IN_LEVELS.sensitive,
|
|
67097
67324
|
maxLeaseSeconds: TWO_DAYS,
|
|
67098
67325
|
egress: {
|
|
67099
67326
|
upstream: "https://www.googleapis.com/drive/v3",
|
|
@@ -67124,7 +67351,7 @@ var CONNECTOR_PROVIDERS = [
|
|
|
67124
67351
|
url: "https://api.github.com/applications/{client_id}/grant"
|
|
67125
67352
|
}
|
|
67126
67353
|
},
|
|
67127
|
-
sensitivity:
|
|
67354
|
+
sensitivity: VAULT_TIER_BUILT_IN_LEVELS.standard,
|
|
67128
67355
|
maxLeaseSeconds: null,
|
|
67129
67356
|
egress: { upstream: "https://api.github.com", header: "Authorization", prefix: "Bearer " },
|
|
67130
67357
|
account: { url: "https://api.github.com/user", field: "login" },
|
|
@@ -67185,7 +67412,8 @@ var addMcpServerInputSchemaDefinition = external_exports.object({
|
|
|
67185
67412
|
name: vaultConnectionNameSchema,
|
|
67186
67413
|
label: external_exports.string().trim().min(1).max(120),
|
|
67187
67414
|
keychain: vaultOwnedKeychainSchema,
|
|
67188
|
-
|
|
67415
|
+
/** Left out, the server starts at its tier's level (vault specs/connector-tiers.feature). */
|
|
67416
|
+
sensitivity: vaultSensitivitySchema.optional(),
|
|
67189
67417
|
auth: mcpAuthSchema,
|
|
67190
67418
|
/** Sign in again into an existing MCP connection, keeping its grants and settings. */
|
|
67191
67419
|
connectionId: external_exports.string().min(1).optional(),
|
|
@@ -67261,6 +67489,14 @@ var waitingMcpServerSchemaDefinition = external_exports.object({
|
|
|
67261
67489
|
/** ISO 8601 */
|
|
67262
67490
|
addedAt: external_exports.iso.datetime()
|
|
67263
67491
|
});
|
|
67492
|
+
var mcpServerApprovalChangedPayloadSchemaDefinition = external_exports.object({
|
|
67493
|
+
workspaceId: external_exports.string().min(1),
|
|
67494
|
+
connectionId: external_exports.string().min(1),
|
|
67495
|
+
change: external_exports.enum(["saved", "approved", "denied", "deleted"]),
|
|
67496
|
+
/** Unique per change. */
|
|
67497
|
+
changeId: external_exports.string().min(1),
|
|
67498
|
+
at: external_exports.iso.datetime()
|
|
67499
|
+
});
|
|
67264
67500
|
var ConnectorApi = moduleApi()("connector");
|
|
67265
67501
|
var workspaceInput2 = external_exports.object({ workspaceId: external_exports.string().min(1) });
|
|
67266
67502
|
var connectionInput2 = external_exports.object({
|
|
@@ -68642,6 +68878,17 @@ var pressedWelcomeSchemaDefinition = external_exports.object({
|
|
|
68642
68878
|
messageId: external_exports.string().min(1)
|
|
68643
68879
|
});
|
|
68644
68880
|
var pressedWelcomeSchema = pressedWelcomeSchemaDefinition;
|
|
68881
|
+
var pressCollabInputSchemaDefinition = external_exports.object({
|
|
68882
|
+
workspaceId: external_exports.string().min(1),
|
|
68883
|
+
/** The invite card's message. */
|
|
68884
|
+
messageId: external_exports.string().min(1),
|
|
68885
|
+
action: external_exports.enum(["resend", "dismiss"])
|
|
68886
|
+
});
|
|
68887
|
+
var pressCollabInputSchema = pressCollabInputSchemaDefinition;
|
|
68888
|
+
var pressedCollabSchemaDefinition = external_exports.object({
|
|
68889
|
+
outcome: external_exports.enum(["sent", "dismissed", "fallback"])
|
|
68890
|
+
});
|
|
68891
|
+
var pressedCollabSchema = pressedCollabSchemaDefinition;
|
|
68645
68892
|
|
|
68646
68893
|
// ../../modules/agent/contract/src/agent-working.ts
|
|
68647
68894
|
var agentWorkingInputSchemaDefinition = external_exports.object({
|
|
@@ -69242,14 +69489,16 @@ var agentArchiveTrpc = defineTrpcContract("agents").query("archived").withInput(
|
|
|
69242
69489
|
var agentLangwatchTrpc = defineTrpcContract("agents").query("langwatchTracing").withInput(agentLangwatchInputSchema).withOutput(agentLangwatchTracingSchema).mutation("setLangwatchTracing").withInput(setAgentLangwatchInputSchema).withOutput(agentLangwatchTracingSchema).build();
|
|
69243
69490
|
var agentPoolModelTrpc = defineTrpcContract("agents").mutation("setLoginPoolModel").withInput(setLoginPoolModelInputSchema).withOutput(loginPoolsSchema).build();
|
|
69244
69491
|
var agentRunsOnTrpc = defineTrpcContract("agents").mutation("setRunsOn").withInput(setRunsOnInputSchema).withOutput(agentSchema).build();
|
|
69245
|
-
var agentWelcomeTrpc = defineTrpcContract("agents").mutation("pressWelcome").withInput(pressWelcomeInputSchema).withOutput(pressedWelcomeSchema).build();
|
|
69492
|
+
var agentWelcomeTrpc = defineTrpcContract("agents").mutation("pressWelcome").withInput(pressWelcomeInputSchema).withOutput(pressedWelcomeSchema).mutation("pressCollab").withInput(pressCollabInputSchema).withOutput(pressedCollabSchema).build();
|
|
69246
69493
|
var agentPoolGroupTrpc = defineTrpcContract("agents").mutation("addPoolGroup").withInput(poolGroupInputSchema).withOutput(loginPoolsSchema).mutation("removePoolGroup").withInput(poolGroupInputSchema).withOutput(loginPoolsSchema).build();
|
|
69494
|
+
var agentOpenConversationTrpc = defineTrpcContract("agents").mutation("openConversation").withInput(openConversationInputSchema).withOutput(external_exports.object({ channelId: idSchema17 })).build();
|
|
69247
69495
|
var agentReconnectTrpc = defineTrpcContract("agents").query("reconnect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).withOutput(agentReconnectSchema).build();
|
|
69248
69496
|
var agentTrpc = joinTrpcContracts(
|
|
69249
69497
|
"agents",
|
|
69250
69498
|
agentCoreTrpc,
|
|
69251
69499
|
agentPoolGroupTrpc,
|
|
69252
69500
|
agentReconnectTrpc,
|
|
69501
|
+
agentOpenConversationTrpc,
|
|
69253
69502
|
agentTurnTrpc,
|
|
69254
69503
|
agentChannelSettingsTrpc,
|
|
69255
69504
|
agentJoinTrpc,
|
|
@@ -69270,6 +69519,7 @@ var AgentComputerCardSlot = agentUi.component("computerCard");
|
|
|
69270
69519
|
var AgentLoginCardSlot = agentUi.component("loginCard");
|
|
69271
69520
|
var AgentBudgetCardSlot = agentUi.component("budgetCard");
|
|
69272
69521
|
var AgentWelcomeCardSlot = agentUi.component("welcomeCard");
|
|
69522
|
+
var AgentCollabCardSlot = agentUi.component("collabCard");
|
|
69273
69523
|
var AgentStopTurnSlot = agentUi.component("stopTurn");
|
|
69274
69524
|
var AgentOfflineLineSlot = agentUi.component("offlineLine");
|
|
69275
69525
|
var AgentLiveStepsSlot = agentUi.component("liveSteps");
|
|
@@ -69285,6 +69535,8 @@ var AgentNameSlot = agentUi.component("name");
|
|
|
69285
69535
|
var AgentFaceSlot = agentUi.component("face");
|
|
69286
69536
|
var AgentAccessSlot = agentUi.component("access");
|
|
69287
69537
|
var AgentConnectDialogSlot = agentUi.component("connectDialog");
|
|
69538
|
+
var AgentConnectWaitSlot = agentUi.component("connectWait");
|
|
69539
|
+
var AgentConnectWaitRowSlot = agentUi.component("connectWaitRow");
|
|
69288
69540
|
var AgentMigrateDialogSlot = agentUi.component("migrateDialog");
|
|
69289
69541
|
var AgentChannelLevelSlot = agentUi.component("channelLevel");
|
|
69290
69542
|
var AgentMuteNoticeSlot = agentUi.component("muteNotice");
|
|
@@ -71302,6 +71554,10 @@ var slackExternalPeopleSchemaDefinition = external_exports.object({
|
|
|
71302
71554
|
)
|
|
71303
71555
|
});
|
|
71304
71556
|
var slackExternalPeopleSchema = slackExternalPeopleSchemaDefinition;
|
|
71557
|
+
var slackChannelPeopleSchemaDefinition = external_exports.object({
|
|
71558
|
+
people: external_exports.array(slackExternalPersonSchemaDefinition)
|
|
71559
|
+
});
|
|
71560
|
+
var slackChannelPeopleSchema = slackChannelPeopleSchemaDefinition;
|
|
71305
71561
|
var slackExternalPeopleCountsInputSchemaDefinition = external_exports.object({
|
|
71306
71562
|
workspaceId: external_exports.string().min(1),
|
|
71307
71563
|
channelIds: external_exports.array(external_exports.string().min(1).max(64)).max(200)
|
|
@@ -71483,6 +71739,10 @@ var slackBotCleanupRequestedPayloadSchemaDefinition = external_exports.object({
|
|
|
71483
71739
|
runId: external_exports.string().min(1),
|
|
71484
71740
|
dryRun: external_exports.boolean()
|
|
71485
71741
|
});
|
|
71742
|
+
var slackMetadataProbeRequestedPayloadSchemaDefinition = external_exports.object({
|
|
71743
|
+
workspaceId: external_exports.string().min(1),
|
|
71744
|
+
runId: external_exports.string().min(1)
|
|
71745
|
+
});
|
|
71486
71746
|
var slackCacheTrimRequestedPayloadSchemaDefinition = external_exports.object({
|
|
71487
71747
|
workspaceId: external_exports.string().min(1),
|
|
71488
71748
|
teamId: external_exports.string().min(1),
|
|
@@ -71720,7 +71980,7 @@ var slackSearchAnswerSchemaDefinition = external_exports.object({
|
|
|
71720
71980
|
var slackSearchAnswerSchema = slackSearchAnswerSchemaDefinition;
|
|
71721
71981
|
var SlackApi = moduleApi()("slack");
|
|
71722
71982
|
var workspaceInput3 = external_exports.object({ workspaceId: workspaceIdSchema17 });
|
|
71723
|
-
var slackTrpc = defineTrpcContract("slack").query("overview").withInput(workspaceInput3).withOutput(slackOverviewSchema).mutation("startSetup").withInput(startSlackSetupInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("beginSetup").withInput(beginSlackSetupInputSchema).withOutput(slackSetupSchema).mutation("saveAppCredentials").withInput(saveSlackAppCredentialsInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("installApp").withInput(installSlackAppInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("startInstall").withInput(startSlackInstallInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("startLink").withInput(startSlackLinkInputSchema).withOutput(startedSlackAuthorizeSchema).query("channels").withInput(slackTeamInputSchema).withOutput(external_exports.array(slackChannelViewSchema)).mutation("setMirror").withInput(setSlackMirrorInputSchema).withOutput(slackConnectionViewSchema).mutation("updateConnection").withInput(updateSlackConnectionInputSchema).withOutput(slackConnectionViewSchema).mutation("disconnect").withInput(slackTeamInputSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).mutation("unlink").withInput(slackTeamInputSchema).withOutput(slackConnectionViewSchema).query("linkPrompts").withInput(workspaceInput3).withOutput(slackLinkPromptsSchema).mutation("dismissLinkPrompt").withInput(dismissSlackLinkPromptInputSchema).withOutput(slackLinkPromptsSchema).query("people").withInput(slackPeopleInputSchema).withOutput(slackPeopleSchema).query("bookmarks").withInput(slackBookmarksInputSchema).withOutput(slackBookmarksSchema).query("profiles").withInput(slackProfilesInputSchema).withOutput(slackProfilesSchema).query("linkedNames").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(slackLinkedNamesSchema).query("externalPeople").withInput(slackExternalPeopleInputSchema).withOutput(slackExternalPeopleSchema).query("externalPeopleCounts").withInput(slackExternalPeopleCountsInputSchema).withOutput(slackExternalPeopleCountsSchema).mutation("openDirect").withInput(openSlackDirectInputSchema).withOutput(openedSlackDirectSchema).mutation("invite").withInput(slackInviteInputSchema).withOutput(slackInvitedSchema).mutation("updateApp").withInput(updateSlackAppInputSchema).withOutput(external_exports.object({ updated: external_exports.literal(true) })).query("history").withInput(slackHistoryInputSchema).withOutput(slackHistoryPageSchema).query("search").withInput(slackSearchInputSchema).withOutput(slackSearchAnswerSchema).query("movePreview").withInput(slackMoveChannelInputSchema).withOutput(slackMovePreviewSchema).mutation("startMoves").withInput(startSlackMovesInputSchema).withOutput(startedSlackMovesSchema).mutation("cancelMove").withInput(slackMoveInputSchema).withOutput(slackMoveViewSchema).query("moves").withInput(workspaceInput3).withOutput(slackMovesSchema).query("emojiSource").withInput(workspaceInput3).withOutput(slackEmojiSourceSchema).mutation("importEmoji").withInput(workspaceInput3).withOutput(slackEmojiImportSchema).build();
|
|
71983
|
+
var slackTrpc = defineTrpcContract("slack").query("overview").withInput(workspaceInput3).withOutput(slackOverviewSchema).mutation("startSetup").withInput(startSlackSetupInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("beginSetup").withInput(beginSlackSetupInputSchema).withOutput(slackSetupSchema).mutation("saveAppCredentials").withInput(saveSlackAppCredentialsInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("installApp").withInput(installSlackAppInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("startInstall").withInput(startSlackInstallInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("startLink").withInput(startSlackLinkInputSchema).withOutput(startedSlackAuthorizeSchema).query("channels").withInput(slackTeamInputSchema).withOutput(external_exports.array(slackChannelViewSchema)).mutation("setMirror").withInput(setSlackMirrorInputSchema).withOutput(slackConnectionViewSchema).mutation("updateConnection").withInput(updateSlackConnectionInputSchema).withOutput(slackConnectionViewSchema).mutation("disconnect").withInput(slackTeamInputSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).mutation("unlink").withInput(slackTeamInputSchema).withOutput(slackConnectionViewSchema).query("linkPrompts").withInput(workspaceInput3).withOutput(slackLinkPromptsSchema).mutation("dismissLinkPrompt").withInput(dismissSlackLinkPromptInputSchema).withOutput(slackLinkPromptsSchema).query("people").withInput(slackPeopleInputSchema).withOutput(slackPeopleSchema).query("bookmarks").withInput(slackBookmarksInputSchema).withOutput(slackBookmarksSchema).query("profiles").withInput(slackProfilesInputSchema).withOutput(slackProfilesSchema).query("linkedNames").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(slackLinkedNamesSchema).query("externalPeople").withInput(slackExternalPeopleInputSchema).withOutput(slackExternalPeopleSchema).query("channelPeople").withInput(slackExternalPeopleInputSchema).withOutput(slackChannelPeopleSchema).query("externalPeopleCounts").withInput(slackExternalPeopleCountsInputSchema).withOutput(slackExternalPeopleCountsSchema).mutation("openDirect").withInput(openSlackDirectInputSchema).withOutput(openedSlackDirectSchema).mutation("invite").withInput(slackInviteInputSchema).withOutput(slackInvitedSchema).mutation("updateApp").withInput(updateSlackAppInputSchema).withOutput(external_exports.object({ updated: external_exports.literal(true) })).query("history").withInput(slackHistoryInputSchema).withOutput(slackHistoryPageSchema).query("search").withInput(slackSearchInputSchema).withOutput(slackSearchAnswerSchema).query("movePreview").withInput(slackMoveChannelInputSchema).withOutput(slackMovePreviewSchema).mutation("startMoves").withInput(startSlackMovesInputSchema).withOutput(startedSlackMovesSchema).mutation("cancelMove").withInput(slackMoveInputSchema).withOutput(slackMoveViewSchema).query("moves").withInput(workspaceInput3).withOutput(slackMovesSchema).query("emojiSource").withInput(workspaceInput3).withOutput(slackEmojiSourceSchema).mutation("importEmoji").withInput(workspaceInput3).withOutput(slackEmojiImportSchema).build();
|
|
71724
71984
|
|
|
71725
71985
|
// ../../modules/slack/contract/src/slack-keys.ts
|
|
71726
71986
|
var SLACK_KEY_PATHS = {
|
|
@@ -71811,6 +72071,8 @@ var slackConfig = Config.define((c) => ({
|
|
|
71811
72071
|
signatureMaxAgeSeconds: c.env("SLACK_SIGNATURE_MAX_AGE_SECONDS", positiveInt4.default(300)),
|
|
71812
72072
|
/** The progress board's alerts folder; unset, the missed-events card is only logged. */
|
|
71813
72073
|
opsAlertDir: c.env("SLACK_OPS_ALERT_DIR", external_exports.string().min(1).optional()),
|
|
72074
|
+
/** On, Slack's changes land through chat's merge rows (ADR-202 M3); off keeps the old path. */
|
|
72075
|
+
mirrorObserve: c.env("SLACK_MIRROR_OBSERVE", external_exports.enum(["on", "off"]).default("off")),
|
|
71814
72076
|
/** The longest wait between two Socket Mode reconnects. */
|
|
71815
72077
|
reconnectMaxSeconds: c.env("SLACK_RECONNECT_MAX_SECONDS", positiveInt4.default(30))
|
|
71816
72078
|
}));
|
|
@@ -78791,6 +79053,11 @@ var listAppsInputSchemaDefinition = external_exports.object({
|
|
|
78791
79053
|
archived: external_exports.boolean().optional()
|
|
78792
79054
|
});
|
|
78793
79055
|
var listAppsInputSchema = listAppsInputSchemaDefinition;
|
|
79056
|
+
var findAppInputSchemaDefinition = external_exports.object({
|
|
79057
|
+
workspaceId: external_exports.string().min(1),
|
|
79058
|
+
/** The app's id or its slug; archived apps are found too. */
|
|
79059
|
+
app: external_exports.string().min(1)
|
|
79060
|
+
});
|
|
78794
79061
|
var renameAppInputSchemaDefinition = external_exports.object({
|
|
78795
79062
|
...appRefSchemaDefinition.shape,
|
|
78796
79063
|
name: external_exports.string().trim().min(1).max(80)
|
|
@@ -79951,6 +80218,57 @@ var appCreatedPayloadSchemaDefinition = external_exports.object({
|
|
|
79951
80218
|
at: external_exports.iso.datetime()
|
|
79952
80219
|
});
|
|
79953
80220
|
|
|
80221
|
+
// ../../modules/app/contract/src/app.requests.ts
|
|
80222
|
+
var appPublishRequestChangedPayloadSchemaDefinition = external_exports.object({
|
|
80223
|
+
workspaceId: external_exports.string().min(1),
|
|
80224
|
+
appId: external_exports.string().min(1),
|
|
80225
|
+
requestId: external_exports.string().min(1),
|
|
80226
|
+
change: external_exports.enum(["requested", "answered", "expired", "withdrawn"]),
|
|
80227
|
+
/** One per change, so a request that waits again is a new fact. */
|
|
80228
|
+
changeId: external_exports.string().min(1),
|
|
80229
|
+
at: external_exports.iso.datetime()
|
|
80230
|
+
});
|
|
80231
|
+
var appAccessRequestChangedPayloadSchemaDefinition = external_exports.object({
|
|
80232
|
+
workspaceId: external_exports.string().min(1),
|
|
80233
|
+
appId: external_exports.string().min(1),
|
|
80234
|
+
requestId: external_exports.string().min(1),
|
|
80235
|
+
change: external_exports.enum(["requested", "answered", "withdrawn"]),
|
|
80236
|
+
changeId: external_exports.string().min(1),
|
|
80237
|
+
at: external_exports.iso.datetime()
|
|
80238
|
+
});
|
|
80239
|
+
var appTriggerPauseChangedPayloadSchemaDefinition = external_exports.object({
|
|
80240
|
+
workspaceId: external_exports.string().min(1),
|
|
80241
|
+
appId: external_exports.string().min(1),
|
|
80242
|
+
triggerId: external_exports.string().min(1),
|
|
80243
|
+
change: external_exports.enum(["paused", "resumed", "removed"]),
|
|
80244
|
+
changeId: external_exports.string().min(1),
|
|
80245
|
+
at: external_exports.iso.datetime()
|
|
80246
|
+
});
|
|
80247
|
+
var appBudgetAlertChangedPayloadSchemaDefinition = external_exports.object({
|
|
80248
|
+
workspaceId: external_exports.string().min(1),
|
|
80249
|
+
appId: external_exports.string().min(1),
|
|
80250
|
+
/** YYYY-MM in UTC, and the level the month stands at after the change: 0, 75, 95 or 100. */
|
|
80251
|
+
month: external_exports.string().min(1),
|
|
80252
|
+
level: external_exports.number().int().min(0),
|
|
80253
|
+
change: external_exports.enum(["reached", "set", "month_began"]),
|
|
80254
|
+
changeId: external_exports.string().min(1),
|
|
80255
|
+
at: external_exports.iso.datetime()
|
|
80256
|
+
});
|
|
80257
|
+
var appBackupCheckChangedPayloadSchemaDefinition = external_exports.object({
|
|
80258
|
+
workspaceId: external_exports.string().min(1),
|
|
80259
|
+
/** When the host's check finished; one check is one fact per workspace. */
|
|
80260
|
+
checkAt: external_exports.string().min(1),
|
|
80261
|
+
changeId: external_exports.string().min(1),
|
|
80262
|
+
at: external_exports.iso.datetime()
|
|
80263
|
+
});
|
|
80264
|
+
var appQuotaAlertChangedPayloadSchemaDefinition = external_exports.object({
|
|
80265
|
+
workspaceId: external_exports.string().min(1),
|
|
80266
|
+
/** Whether any app of the workspace reached a warning level; false lets old notices settle. */
|
|
80267
|
+
warned: external_exports.boolean(),
|
|
80268
|
+
changeId: external_exports.string().min(1),
|
|
80269
|
+
at: external_exports.iso.datetime()
|
|
80270
|
+
});
|
|
80271
|
+
|
|
79954
80272
|
// ../../modules/app/contract/src/app.templates.ts
|
|
79955
80273
|
var APP_TEMPLATE_SOURCES = ["laze"];
|
|
79956
80274
|
var templateCollectionsSchema = external_exports.record(
|
|
@@ -80025,6 +80343,7 @@ var createAppByKeyInputSchemaDefinition = external_exports.object({
|
|
|
80025
80343
|
channel: external_exports.string().min(1).optional()
|
|
80026
80344
|
});
|
|
80027
80345
|
var appByKeySchemaDefinition = external_exports.object({ appId: external_exports.string().min(1) });
|
|
80346
|
+
var appFindByKeySchemaDefinition = external_exports.object({ app: external_exports.string().min(1) });
|
|
80028
80347
|
var appDataByKeySchemaDefinition = external_exports.object({
|
|
80029
80348
|
...appByKeySchemaDefinition.shape,
|
|
80030
80349
|
site: legacySiteSchema
|
|
@@ -81307,17 +81626,23 @@ async function readManifest(folder) {
|
|
|
81307
81626
|
}
|
|
81308
81627
|
return parsed.data;
|
|
81309
81628
|
}
|
|
81310
|
-
async function appIdOf({
|
|
81629
|
+
async function appIdOf(input2) {
|
|
81630
|
+
return (await appNamed(input2)).appId;
|
|
81631
|
+
}
|
|
81632
|
+
async function appNamed({
|
|
81311
81633
|
client,
|
|
81312
81634
|
args,
|
|
81313
81635
|
folder
|
|
81314
81636
|
}) {
|
|
81315
81637
|
const named = flagText({ args, name: "app" });
|
|
81316
81638
|
if (named) {
|
|
81317
|
-
const
|
|
81318
|
-
|
|
81319
|
-
|
|
81320
|
-
|
|
81639
|
+
const found = await client.post("/api/apps/find", { app: named }).catch((error63) => {
|
|
81640
|
+
if (error63 instanceof LazeApiError && error63.code === "app_not_found") {
|
|
81641
|
+
throw new CliUsageError(`No app called ${named} in this workspace`);
|
|
81642
|
+
}
|
|
81643
|
+
throw error63;
|
|
81644
|
+
});
|
|
81645
|
+
return { appId: found.id, name: found.name };
|
|
81321
81646
|
}
|
|
81322
81647
|
const manifest = await readManifest(folder);
|
|
81323
81648
|
if (!manifest) {
|
|
@@ -81325,7 +81650,7 @@ async function appIdOf({
|
|
|
81325
81650
|
`No ${APP_MANIFEST_FILE} here: run this in the app's folder or pass --app <id|slug>`
|
|
81326
81651
|
);
|
|
81327
81652
|
}
|
|
81328
|
-
return manifest.app.id;
|
|
81653
|
+
return { appId: manifest.app.id, name: manifest.app.name };
|
|
81329
81654
|
}
|
|
81330
81655
|
async function jsonFlag({
|
|
81331
81656
|
context,
|
|
@@ -82302,14 +82627,12 @@ async function appOfWord({
|
|
|
82302
82627
|
}) {
|
|
82303
82628
|
const scoped = word3 ? { ...args, flags: { ...args.flags, app: word3 } } : args;
|
|
82304
82629
|
const client = await appClient({ context, args: scoped });
|
|
82305
|
-
const
|
|
82630
|
+
const named = await appNamed({
|
|
82306
82631
|
client,
|
|
82307
82632
|
args: scoped,
|
|
82308
82633
|
folder: folderOf({ context, word: void 0 })
|
|
82309
82634
|
});
|
|
82310
|
-
|
|
82311
|
-
const listed = apps.find((found) => found.id === appId) ?? (await client.get("/api/apps?archived=true")).find((found) => found.id === appId);
|
|
82312
|
-
return { client, appId, name: listed?.name ?? appId };
|
|
82635
|
+
return { client, ...named };
|
|
82313
82636
|
}
|
|
82314
82637
|
var appCost = async ({ context, args }) => {
|
|
82315
82638
|
const { client, appId, name: name3 } = await appOfWord({ context, args, word: args.words[2] });
|
|
@@ -84965,7 +85288,7 @@ var CHAT_ACTIONS_USAGE = `Usage:
|
|
|
84965
85288
|
laze thread following <messageId> whether you follow it
|
|
84966
85289
|
laze thread read <messageId> mark a followed thread read (people)
|
|
84967
85290
|
laze threads [--limit <n>] | laze threads unread the threads you follow (people)
|
|
84968
|
-
laze message edit <messageId> <text
|
|
85291
|
+
laze message edit <messageId> <text|-> edit your own message; - reads stdin
|
|
84969
85292
|
laze message delete <messageId> delete your own message
|
|
84970
85293
|
laze message remove <messageId> remove anyone's message (admins)
|
|
84971
85294
|
laze message react <messageId> <emoji> add a reaction, or take yours back
|
|
@@ -85078,10 +85401,11 @@ var threads = async ({ context, args, client }) => {
|
|
|
85078
85401
|
};
|
|
85079
85402
|
var MESSAGE_VERBS = {
|
|
85080
85403
|
edit: async ({ context, args, client }) => {
|
|
85081
|
-
const
|
|
85082
|
-
if (
|
|
85404
|
+
const messageId = wordAt(args, 2);
|
|
85405
|
+
if (args.words.length < 4) throw new CliUsageError(CHAT_ACTIONS_USAGE);
|
|
85406
|
+
const body = await textOf({ context, args, from: 3 });
|
|
85083
85407
|
const answer6 = await client.post(CHAT_KEY_PATHS.edit, {
|
|
85084
|
-
messageId
|
|
85408
|
+
messageId,
|
|
85085
85409
|
body
|
|
85086
85410
|
});
|
|
85087
85411
|
print6({ context, args, answer: answer6, text: (it) => `Edited ${it.id}.
|
|
@@ -85673,6 +85997,8 @@ var computeConfig = Config.define((c) => ({
|
|
|
85673
85997
|
"LAZE_COMPUTE_MACHINE_IMAGE",
|
|
85674
85998
|
external_exports.string().min(1).default("rg.fr-par.scw.cloud/laze-prod/laze-browser-machine:latest")
|
|
85675
85999
|
),
|
|
86000
|
+
/** `b` on the spare api (ADR-206): its link sweeps run only while it holds machine links. */
|
|
86001
|
+
apiSlot: c.env("LAZE_API_SLOT", external_exports.enum(["a", "b"]).default("a")),
|
|
85676
86002
|
/** Who sells dedicated IPs, on once its keys are set; `memory` locally, `none` for off. */
|
|
85677
86003
|
ipVendor: c.env(
|
|
85678
86004
|
"LAZE_IP_VENDOR",
|
|
@@ -85685,7 +86011,9 @@ var computeConfig = Config.define((c) => ({
|
|
|
85685
86011
|
iproyalApiBase: c.env(
|
|
85686
86012
|
"LAZE_IPROYAL_API_BASE",
|
|
85687
86013
|
external_exports.url().default("https://apid.iproyal.com/v1/reseller")
|
|
85688
|
-
)
|
|
86014
|
+
),
|
|
86015
|
+
/** WhatsApp edits and deletes land through chat's merge rows (ADR-202 M3); off keeps old path. */
|
|
86016
|
+
whatsappMirrorObserve: c.env("WHATSAPP_MIRROR_OBSERVE", external_exports.enum(["on", "off"]).default("off"))
|
|
85689
86017
|
}));
|
|
85690
86018
|
|
|
85691
86019
|
// ../../modules/billing/contract/src/billing.config.ts
|
|
@@ -85831,7 +86159,8 @@ var accountChangedDefinition = external_exports.object({
|
|
|
85831
86159
|
"recharged",
|
|
85832
86160
|
"recharge_failed",
|
|
85833
86161
|
"auto_recharge",
|
|
85834
|
-
"referral"
|
|
86162
|
+
"referral",
|
|
86163
|
+
"promotion"
|
|
85835
86164
|
]),
|
|
85836
86165
|
plan: storedPlanSchema,
|
|
85837
86166
|
status: external_exports.string(),
|
|
@@ -85840,6 +86169,8 @@ var accountChangedDefinition = external_exports.object({
|
|
|
85840
86169
|
extraSeats: external_exports.number().int().nonnegative().optional(),
|
|
85841
86170
|
/** People a complimentary Team holds; absent or null when the plan sets the limit. */
|
|
85842
86171
|
seatCap: external_exports.number().int().positive().nullable().optional(),
|
|
86172
|
+
/** The promotion the workspace applied (`tlc-2026-11`); absent or null when none. */
|
|
86173
|
+
promotionId: external_exports.string().nullable().optional(),
|
|
85843
86174
|
at: external_exports.iso.datetime()
|
|
85844
86175
|
});
|
|
85845
86176
|
var usageRecordedDefinition = external_exports.object({
|
|
@@ -85868,6 +86199,42 @@ var referralRewardedDefinition = external_exports.object({
|
|
|
85868
86199
|
var creditCheckStateDefinition = external_exports.object({ nextWakeAt: external_exports.number().nullable() });
|
|
85869
86200
|
var creditCheckIntentDefinition = external_exports.object({ workspaceId: external_exports.string().min(1) });
|
|
85870
86201
|
|
|
86202
|
+
// ../../modules/billing/contract/src/billing.promotions.ts
|
|
86203
|
+
var promotionStateSchema = external_exports.enum(["waiting", "running", "used", "lapsed"]);
|
|
86204
|
+
var promotionViewDefinition = external_exports.object({
|
|
86205
|
+
id: external_exports.string(),
|
|
86206
|
+
code: external_exports.string(),
|
|
86207
|
+
percentOff: external_exports.number(),
|
|
86208
|
+
months: external_exports.number().int().positive(),
|
|
86209
|
+
redeemBy: external_exports.iso.datetime(),
|
|
86210
|
+
upgradeBy: external_exports.iso.datetime(),
|
|
86211
|
+
appliedAt: external_exports.iso.datetime(),
|
|
86212
|
+
state: promotionStateSchema,
|
|
86213
|
+
/** When the discount stops, once Team started with it. */
|
|
86214
|
+
discountEndsAt: external_exports.iso.datetime().nullable()
|
|
86215
|
+
});
|
|
86216
|
+
var promotionViewSchema = promotionViewDefinition;
|
|
86217
|
+
var promotionRefusalSchema = external_exports.enum([
|
|
86218
|
+
"unknown",
|
|
86219
|
+
"ended",
|
|
86220
|
+
"already_applied",
|
|
86221
|
+
"subscribed",
|
|
86222
|
+
"referral_applied"
|
|
86223
|
+
]);
|
|
86224
|
+
var applyPromotionInputDefinition = external_exports.object({
|
|
86225
|
+
workspaceId: external_exports.string().min(1),
|
|
86226
|
+
code: external_exports.string().trim().min(1).max(64)
|
|
86227
|
+
});
|
|
86228
|
+
var applyPromotionInputSchema = applyPromotionInputDefinition;
|
|
86229
|
+
var claimPromotionInputDefinition = external_exports.object({ code: external_exports.string().trim().min(1).max(64) });
|
|
86230
|
+
var claimPromotionInputSchema = claimPromotionInputDefinition;
|
|
86231
|
+
var claimPromotionOutputDefinition = external_exports.object({
|
|
86232
|
+
outcome: external_exports.enum(["kept", "applied", "refused"]),
|
|
86233
|
+
reason: promotionRefusalSchema.nullable(),
|
|
86234
|
+
workspaceId: external_exports.string().nullable()
|
|
86235
|
+
});
|
|
86236
|
+
var claimPromotionOutputSchema = claimPromotionOutputDefinition;
|
|
86237
|
+
|
|
85871
86238
|
// ../../modules/billing/contract/src/billing.ts
|
|
85872
86239
|
var workspaceInputDefinition2 = external_exports.object({ workspaceId: external_exports.string().min(1) });
|
|
85873
86240
|
var billingWorkspaceInputSchema = workspaceInputDefinition2;
|
|
@@ -85951,6 +86318,8 @@ var billingAccountViewDefinition = external_exports.object({
|
|
|
85951
86318
|
/** Rewards earned in the last 365 days, against `REFERRAL_CARD_TERMS.yearlyRewardLimit`. */
|
|
85952
86319
|
rewardsThisYear: external_exports.number().int().nonnegative().default(0)
|
|
85953
86320
|
}),
|
|
86321
|
+
/** The promotion code this workspace applied, if any. */
|
|
86322
|
+
promotion: promotionViewSchema.nullable().default(null),
|
|
85954
86323
|
portalAvailable: external_exports.boolean(),
|
|
85955
86324
|
/** A Team payment that failed or waits for the buyer's bank, until an invoice is paid. */
|
|
85956
86325
|
paymentIssue: external_exports.object({
|
|
@@ -86066,7 +86435,9 @@ var inviteQuoteDefinition = external_exports.object({
|
|
|
86066
86435
|
/** The most people the plan holds; null when it holds everyone. */
|
|
86067
86436
|
seatCap: external_exports.number().int().positive().nullable(),
|
|
86068
86437
|
/** How many of the added people the cap leaves waiting. */
|
|
86069
|
-
overCap: external_exports.number().int().nonnegative()
|
|
86438
|
+
overCap: external_exports.number().int().nonnegative(),
|
|
86439
|
+
/** A promotion that will discount the Team this invite starts; null when none applies. */
|
|
86440
|
+
promotion: promotionViewSchema.nullable().default(null)
|
|
86070
86441
|
});
|
|
86071
86442
|
var inviteQuoteSchema = inviteQuoteDefinition;
|
|
86072
86443
|
var setCurrencyInputDefinition = external_exports.object({
|
|
@@ -86149,7 +86520,7 @@ var grantCreditsInputDefinition = external_exports.object({
|
|
|
86149
86520
|
reason: external_exports.string().trim().min(3).max(500)
|
|
86150
86521
|
});
|
|
86151
86522
|
var BillingApi = moduleApi()("billing");
|
|
86152
|
-
var billingTrpc = defineTrpcContract("billing").query("account").withInput(billingWorkspaceInputSchema).withOutput(billingAccountViewSchema).query("invoices").withInput(billingWorkspaceInputSchema).withOutput(external_exports.array(billingInvoiceSchema)).mutation("startCheckout").withInput(startCheckoutInputSchema).withOutput(billingRedirectSchema).query("inviteQuote").withInput(inviteQuoteInputSchema).withOutput(inviteQuoteSchema).mutation("openPortal").withInput(openPortalInputSchema).withOutput(billingRedirectSchema).mutation("setCurrency").withInput(setCurrencyInputSchema).withOutput(billingAccountViewSchema).mutation("topUp").withInput(topUpInputSchema).withOutput(billingRedirectSchema).mutation("setAutoRecharge").withInput(setAutoRechargeInputSchema).withOutput(billingAccountViewSchema).mutation("applyReferral").withInput(applyReferralInputSchema).withOutput(billingAccountViewSchema).query("referralCard").withInput(billingWorkspaceInputSchema).withOutput(referralCardSchema).mutation("dismissReferralCard").withInput(billingWorkspaceInputSchema).withOutput(referralCardSchema).mutation("claimReferral").withInput(claimReferralInputSchema).withOutput(claimReferralOutputSchema).query("billingDetails").withInput(billingWorkspaceInputSchema).withOutput(billingDetailsSchema).mutation("setBillingDetails").withInput(setBillingDetailsInputSchema).withOutput(billingDetailsSchema).mutation("cancelPlan").withInput(billingWorkspaceInputSchema).withOutput(billingAccountViewSchema).mutation("keepPlan").withInput(billingWorkspaceInputSchema).withOutput(billingAccountViewSchema).build();
|
|
86523
|
+
var billingTrpc = defineTrpcContract("billing").query("account").withInput(billingWorkspaceInputSchema).withOutput(billingAccountViewSchema).query("invoices").withInput(billingWorkspaceInputSchema).withOutput(external_exports.array(billingInvoiceSchema)).mutation("startCheckout").withInput(startCheckoutInputSchema).withOutput(billingRedirectSchema).query("inviteQuote").withInput(inviteQuoteInputSchema).withOutput(inviteQuoteSchema).mutation("openPortal").withInput(openPortalInputSchema).withOutput(billingRedirectSchema).mutation("setCurrency").withInput(setCurrencyInputSchema).withOutput(billingAccountViewSchema).mutation("topUp").withInput(topUpInputSchema).withOutput(billingRedirectSchema).mutation("setAutoRecharge").withInput(setAutoRechargeInputSchema).withOutput(billingAccountViewSchema).mutation("applyReferral").withInput(applyReferralInputSchema).withOutput(billingAccountViewSchema).query("referralCard").withInput(billingWorkspaceInputSchema).withOutput(referralCardSchema).mutation("dismissReferralCard").withInput(billingWorkspaceInputSchema).withOutput(referralCardSchema).mutation("claimReferral").withInput(claimReferralInputSchema).withOutput(claimReferralOutputSchema).mutation("applyPromotion").withInput(applyPromotionInputSchema).withOutput(billingAccountViewSchema).mutation("claimPromotion").withInput(claimPromotionInputSchema).withOutput(claimPromotionOutputSchema).query("billingDetails").withInput(billingWorkspaceInputSchema).withOutput(billingDetailsSchema).mutation("setBillingDetails").withInput(setBillingDetailsInputSchema).withOutput(billingDetailsSchema).mutation("cancelPlan").withInput(billingWorkspaceInputSchema).withOutput(billingAccountViewSchema).mutation("keepPlan").withInput(billingWorkspaceInputSchema).withOutput(billingAccountViewSchema).build();
|
|
86153
86524
|
var stripeWebhookHeadersDefinition = external_exports.object({
|
|
86154
86525
|
"stripe-signature": external_exports.string().max(1e3).default("")
|
|
86155
86526
|
});
|
|
@@ -86403,6 +86774,24 @@ var myComputersDefinition = external_exports.object({
|
|
|
86403
86774
|
canAddShared: external_exports.boolean()
|
|
86404
86775
|
});
|
|
86405
86776
|
var myComputersSchema = myComputersDefinition;
|
|
86777
|
+
var computerUseDefinition = external_exports.object({
|
|
86778
|
+
computerId: external_exports.string(),
|
|
86779
|
+
name: external_exports.string(),
|
|
86780
|
+
state: external_exports.enum(["running", "asleep", "none"]),
|
|
86781
|
+
size: computerSizeSchema,
|
|
86782
|
+
cpu: external_exports.object({ busy: external_exports.number().nonnegative(), vcpu: external_exports.number().positive() }),
|
|
86783
|
+
memory: external_exports.object({ usedGb: external_exports.number().nonnegative(), totalGb: external_exports.number().positive() }),
|
|
86784
|
+
disk: external_exports.object({ usedGb: external_exports.number().nonnegative().nullable(), totalGb: external_exports.number().positive() }),
|
|
86785
|
+
/** Memory or disk at `COMPUTER_NEAR_FULL_SHARE` of the size or more. */
|
|
86786
|
+
nearFull: external_exports.boolean()
|
|
86787
|
+
});
|
|
86788
|
+
var computerUseSchema2 = computerUseDefinition;
|
|
86789
|
+
var personComputerInputDefinition = external_exports.object({
|
|
86790
|
+
workspaceId: external_exports.string().min(1).max(64),
|
|
86791
|
+
userId: external_exports.string().min(1).max(64),
|
|
86792
|
+
computerId: external_exports.string().min(1).max(64).optional()
|
|
86793
|
+
});
|
|
86794
|
+
var personComputerInputSchema = personComputerInputDefinition;
|
|
86406
86795
|
var createComputerInputDefinition = external_exports.object({
|
|
86407
86796
|
workspaceId: external_exports.string().min(1),
|
|
86408
86797
|
name: external_exports.string().trim().min(1).max(40),
|
|
@@ -86504,6 +86893,16 @@ var computerChangedDefinition = external_exports.object({
|
|
|
86504
86893
|
nextCheckAt: external_exports.number().int().nullable(),
|
|
86505
86894
|
at: external_exports.iso.datetime()
|
|
86506
86895
|
});
|
|
86896
|
+
var computerAttentionChangedDefinition = external_exports.object({
|
|
86897
|
+
workspaceId: external_exports.string().min(1),
|
|
86898
|
+
change: external_exports.enum(["request_opened", "request_closed", "guard_event", "whatsapp_touched"]),
|
|
86899
|
+
/** The request, guard event or machine the change is about. */
|
|
86900
|
+
subjectId: external_exports.string().min(1),
|
|
86901
|
+
/** Whose computer it is; null for a guard event, which is the workspace's. */
|
|
86902
|
+
userId: external_exports.string().nullable(),
|
|
86903
|
+
changeId: external_exports.string().min(1),
|
|
86904
|
+
at: external_exports.iso.datetime()
|
|
86905
|
+
});
|
|
86507
86906
|
|
|
86508
86907
|
// ../../modules/compute/contract/src/dedicated-ip.ts
|
|
86509
86908
|
var DEDICATED_IP_MAX_DOMAINS = 50;
|
|
@@ -86785,6 +87184,16 @@ var messagesResultDefinition = external_exports.object({
|
|
|
86785
87184
|
chat: whatsappChatDefinition.pick({ id: true, name: true, group: true }),
|
|
86786
87185
|
messages: external_exports.array(whatsappMessageDefinition)
|
|
86787
87186
|
});
|
|
87187
|
+
var chatPeopleInputDefinition = external_exports.object({
|
|
87188
|
+
workspaceId: workspaceIdSchema20,
|
|
87189
|
+
channelId: external_exports.string().min(1).max(64)
|
|
87190
|
+
});
|
|
87191
|
+
var whatsappChatPeopleInputSchema = chatPeopleInputDefinition;
|
|
87192
|
+
var chatPeopleDefinition = external_exports.object({
|
|
87193
|
+
people: external_exports.array(external_exports.object({ name: external_exports.string().min(1).max(200) })),
|
|
87194
|
+
state: external_exports.enum(["listed", "none", "asleep", "unreachable"])
|
|
87195
|
+
});
|
|
87196
|
+
var whatsappChatPeopleSchema = chatPeopleDefinition;
|
|
86788
87197
|
var limitSchema = external_exports.number().int().min(1).max(WHATSAPP_LIMIT_MAX);
|
|
86789
87198
|
var chatRefSchema = external_exports.string().trim().min(1).max(200);
|
|
86790
87199
|
var whatsappMachineRef = machineRefText2.optional();
|
|
@@ -86939,6 +87348,10 @@ var whatsappChangeDefinition = external_exports.object({
|
|
|
86939
87348
|
sender: external_exports.string().max(500),
|
|
86940
87349
|
text: external_exports.string(),
|
|
86941
87350
|
deleted: external_exports.boolean(),
|
|
87351
|
+
/** Numbered again above Laze's floor: a message Laze holds already takes nothing from it. */
|
|
87352
|
+
replay: external_exports.boolean().optional(),
|
|
87353
|
+
/** The change's place in the store's change feed; absent from older connectors. */
|
|
87354
|
+
seq: external_exports.number().int().min(1).optional(),
|
|
86942
87355
|
/** Fetched with a "media" request while the store is open; absent from older connectors. */
|
|
86943
87356
|
media: whatsappChangeMediaDefinition.optional(),
|
|
86944
87357
|
/** The chat's other ids, such as the hidden id it was first seen under; new in Nov 2026. */
|
|
@@ -87258,7 +87671,9 @@ var loginTerminalDefinition = external_exports.discriminatedUnion("status", [
|
|
|
87258
87671
|
status: external_exports.literal("starting"),
|
|
87259
87672
|
retryAfterSeconds: external_exports.number().int().positive(),
|
|
87260
87673
|
/** The computer is awake and only its link is coming back, e.g. after a deploy. */
|
|
87261
|
-
reconnecting: external_exports.boolean().optional()
|
|
87674
|
+
reconnecting: external_exports.boolean().optional(),
|
|
87675
|
+
/** Where the start is: the computer booting, or up and connecting to Laze. */
|
|
87676
|
+
step: external_exports.enum(["booting", "connecting"]).optional()
|
|
87262
87677
|
}),
|
|
87263
87678
|
external_exports.object({
|
|
87264
87679
|
status: external_exports.literal("ready"),
|
|
@@ -87311,7 +87726,7 @@ var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
|
|
|
87311
87726
|
var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema22, machineId: idSchema23 });
|
|
87312
87727
|
var ComputeApi = moduleApi()("compute");
|
|
87313
87728
|
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();
|
|
87314
|
-
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).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).build();
|
|
87729
|
+
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).build();
|
|
87315
87730
|
var computeTrpc = joinTrpcContracts("compute", computeCoreTrpc, computeFleetTrpc);
|
|
87316
87731
|
var restMachineInputDefinition = external_exports.object({ machine: external_exports.string().min(1).max(64) });
|
|
87317
87732
|
var restRenameInputDefinition = external_exports.object({
|
|
@@ -87383,6 +87798,7 @@ var ComputeWhatsappMessagingSlot = computeUi.component("whatsapp-messaging");
|
|
|
87383
87798
|
var ComputeBrowserTabSlot = computeUi.component("browser-tab");
|
|
87384
87799
|
var ComputeOpenBrowserSlot = computeUi.component("open-browser");
|
|
87385
87800
|
var ComputeLoginTerminalSlot = computeUi.component("login-terminal");
|
|
87801
|
+
var ComputeComputerUseSlot = computeUi.component("computer-use");
|
|
87386
87802
|
|
|
87387
87803
|
// ../../modules/compute/contract/src/computer-copy.ts
|
|
87388
87804
|
var COMPUTER_COPY_MAX_BYTES = 2 * 1024 * 1024 * 1024;
|
|
@@ -89235,6 +89651,15 @@ var historyInputDefinition = external_exports.object({
|
|
|
89235
89651
|
before: external_exports.iso.datetime()
|
|
89236
89652
|
});
|
|
89237
89653
|
var discordHistoryInputSchema = historyInputDefinition;
|
|
89654
|
+
var channelPeopleInputDefinition = external_exports.object({
|
|
89655
|
+
workspaceId: workspaceIdSchema24,
|
|
89656
|
+
channelId: external_exports.string().min(1).max(200)
|
|
89657
|
+
});
|
|
89658
|
+
var discordChannelPeopleInputSchema = channelPeopleInputDefinition;
|
|
89659
|
+
var channelPeopleDefinition = external_exports.object({
|
|
89660
|
+
people: external_exports.array(external_exports.object({ name: external_exports.string().min(1).max(100) })).max(200)
|
|
89661
|
+
});
|
|
89662
|
+
var discordChannelPeopleSchema = channelPeopleDefinition;
|
|
89238
89663
|
var discordFileDefinition = external_exports.object({
|
|
89239
89664
|
id: external_exports.string(),
|
|
89240
89665
|
name: external_exports.string(),
|
|
@@ -89288,7 +89713,7 @@ var DISCORD_KEY_PATHS = {
|
|
|
89288
89713
|
history: "/api/discord/history"
|
|
89289
89714
|
};
|
|
89290
89715
|
var DiscordApi = moduleApi()("discord");
|
|
89291
|
-
var discordTrpc = defineTrpcContract("discord").query("overview").withInput(workspaceInput4).withOutput(discordOverviewSchema).mutation("beginSetup").withInput(workspaceInput4).withOutput(discordSetupSchema).mutation("saveApp").withInput(saveDiscordAppInputSchema).withOutput(startedDiscordAuthorizeSchema).mutation("startInstall").withInput(workspaceInput4).withOutput(startedDiscordAuthorizeSchema).mutation("startLink").withInput(discordGuildInputSchema).withOutput(startedDiscordAuthorizeSchema).mutation("unlink").withInput(discordGuildInputSchema).withOutput(discordConnectionViewSchema).query("channels").withInput(discordGuildInputSchema).withOutput(external_exports.array(discordChannelViewSchema)).mutation("pick").withInput(discordPickInputSchema).withOutput(discordChannelViewSchema).mutation("updateConnection").withInput(updateDiscordConnectionInputSchema).withOutput(discordConnectionViewSchema).mutation("disconnect").withInput(discordGuildInputSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).query("history").withInput(discordHistoryInputSchema).withOutput(discordHistoryPageSchema).build();
|
|
89716
|
+
var discordTrpc = defineTrpcContract("discord").query("overview").withInput(workspaceInput4).withOutput(discordOverviewSchema).mutation("beginSetup").withInput(workspaceInput4).withOutput(discordSetupSchema).mutation("saveApp").withInput(saveDiscordAppInputSchema).withOutput(startedDiscordAuthorizeSchema).mutation("startInstall").withInput(workspaceInput4).withOutput(startedDiscordAuthorizeSchema).mutation("startLink").withInput(discordGuildInputSchema).withOutput(startedDiscordAuthorizeSchema).mutation("unlink").withInput(discordGuildInputSchema).withOutput(discordConnectionViewSchema).query("channels").withInput(discordGuildInputSchema).withOutput(external_exports.array(discordChannelViewSchema)).mutation("pick").withInput(discordPickInputSchema).withOutput(discordChannelViewSchema).mutation("updateConnection").withInput(updateDiscordConnectionInputSchema).withOutput(discordConnectionViewSchema).mutation("disconnect").withInput(discordGuildInputSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).query("history").withInput(discordHistoryInputSchema).withOutput(discordHistoryPageSchema).query("channelPeople").withInput(discordChannelPeopleInputSchema).withOutput(discordChannelPeopleSchema).build();
|
|
89292
89717
|
|
|
89293
89718
|
// ../../modules/discord/contract/src/discord.config.ts
|
|
89294
89719
|
var positiveInt6 = external_exports.coerce.number().int().positive();
|
|
@@ -89296,6 +89721,8 @@ var discordConfig = Config.define((c) => ({
|
|
|
89296
89721
|
publicBaseUrl,
|
|
89297
89722
|
/** The versioned REST base; routes are `${apiUrl}/<route>`. */
|
|
89298
89723
|
apiUrl: c.env("DISCORD_API_URL", external_exports.url().default("https://discord.com/api/v10")),
|
|
89724
|
+
/** On, Discord's changes land through chat's merge rows (ADR-202 M3); off keeps the old path. */
|
|
89725
|
+
mirrorObserve: c.env("DISCORD_MIRROR_OBSERVE", external_exports.enum(["on", "off"]).default("off")),
|
|
89299
89726
|
/** Discord's consent page for installs and links. */
|
|
89300
89727
|
authorizeUrl: c.env(
|
|
89301
89728
|
"DISCORD_AUTHORIZE_URL",
|
|
@@ -89389,6 +89816,10 @@ var sweepIntentDefinition = external_exports.object({
|
|
|
89389
89816
|
workspaceId: external_exports.string().min(1),
|
|
89390
89817
|
guildId: external_exports.string().min(1)
|
|
89391
89818
|
});
|
|
89819
|
+
var webhookProbeRequestedDefinition = external_exports.object({
|
|
89820
|
+
workspaceId: external_exports.string().min(1),
|
|
89821
|
+
runId: external_exports.string().min(1)
|
|
89822
|
+
});
|
|
89392
89823
|
|
|
89393
89824
|
// src/services/discord-commands.service.ts
|
|
89394
89825
|
var DISCORD_USAGE = `Usage (a person's key; Discord stays the source, each person picks their own channels):
|
|
@@ -90522,7 +90953,7 @@ var EXTERNAL_USAGE = `Usage:
|
|
|
90522
90953
|
laze external accept-share <share id> [--name <name>] [--private] take a shared channel (admins)
|
|
90523
90954
|
laze external decline-share <share id> turn a shared channel down (admins)
|
|
90524
90955
|
laze external unshare <share id|#channel> stop sharing a channel, or leave one shared with you (admins)
|
|
90525
|
-
laze external dm <person> [--connection <workspace>] [<message
|
|
90956
|
+
laze external dm <person> [--connection <workspace>] [<message>|-] a DM with someone you share a channel with
|
|
90526
90957
|
laze external block <workspace> disconnect and refuse their invitations (admins)
|
|
90527
90958
|
laze external report <workspace> --note "<why>" report a workspace to Laze staff, and block it (admins)`;
|
|
90528
90959
|
var printJson6 = (context, data) => context.out(`${JSON.stringify(data, null, 2)}
|
|
@@ -90776,7 +91207,7 @@ async function unshare({ context, args }) {
|
|
|
90776
91207
|
}
|
|
90777
91208
|
async function direct({ context, args }) {
|
|
90778
91209
|
const person = wordAt5({ args, at: 2, what: "the person" });
|
|
90779
|
-
const body = args.words.
|
|
91210
|
+
const body = args.words.length > 3 ? await textOf({ context, args, from: 3 }) : "";
|
|
90780
91211
|
const connection = flagText({ args, name: "connection" })?.trim();
|
|
90781
91212
|
const { client } = await clientOf2({ context, args });
|
|
90782
91213
|
const answer6 = await client.post(EXTERNAL_CONNECTION_REST_PATHS.dm, {
|
|
@@ -91392,6 +91823,8 @@ var feedCommentPlaceSchema = feedCommentPlaceSchemaDefinition;
|
|
|
91392
91823
|
var saveCommentDraftInputSchemaDefinition = external_exports.object({
|
|
91393
91824
|
...itemRef.shape,
|
|
91394
91825
|
text: external_exports.string().max(MESSAGE_BODY_MAX),
|
|
91826
|
+
/** The chips of uploaded files in the comment; none from an older client. */
|
|
91827
|
+
files: external_exports.array(draftFileSchema).max(FEED_ATTACHMENTS_MAX).default([]),
|
|
91395
91828
|
/** The writer's clock when they typed it; the newest save wins. */
|
|
91396
91829
|
savedAt: external_exports.iso.datetime()
|
|
91397
91830
|
});
|
|
@@ -91399,7 +91832,14 @@ var saveCommentDraftInputSchema = saveCommentDraftInputSchemaDefinition;
|
|
|
91399
91832
|
var commentDraftSavedSchemaDefinition = external_exports.object({ saved: external_exports.boolean() });
|
|
91400
91833
|
var commentDraftSavedSchema = commentDraftSavedSchemaDefinition;
|
|
91401
91834
|
var commentDraftListSchemaDefinition = external_exports.object({
|
|
91402
|
-
drafts: external_exports.array(
|
|
91835
|
+
drafts: external_exports.array(
|
|
91836
|
+
external_exports.object({
|
|
91837
|
+
itemId: external_exports.string(),
|
|
91838
|
+
text: external_exports.string(),
|
|
91839
|
+
files: external_exports.array(draftFileSchema).default([]),
|
|
91840
|
+
savedAt: external_exports.iso.datetime()
|
|
91841
|
+
})
|
|
91842
|
+
),
|
|
91403
91843
|
/** Comments sent or deleted, and when, so a copy saved before that is dropped. */
|
|
91404
91844
|
cleared: external_exports.array(external_exports.object({ itemId: external_exports.string(), savedAt: external_exports.iso.datetime() }))
|
|
91405
91845
|
});
|
|
@@ -95306,6 +95746,7 @@ var verificationStatusSchemaDefinition = external_exports.discriminatedUnion("st
|
|
|
95306
95746
|
external_exports.object({ state: external_exports.literal("verified") }),
|
|
95307
95747
|
external_exports.object({ state: external_exports.literal("pending"), email: external_exports.string() })
|
|
95308
95748
|
]);
|
|
95749
|
+
var accountLookupSchemaDefinition = external_exports.object({ exists: external_exports.boolean() });
|
|
95309
95750
|
|
|
95310
95751
|
// ../../modules/auth/contract/src/auth.api.ts
|
|
95311
95752
|
var authUserSchemaDefinition = external_exports.object({
|
|
@@ -95813,6 +96254,12 @@ var revokeInviteInputSchemaDefinition = external_exports.object({
|
|
|
95813
96254
|
inviteId: external_exports.string().min(1)
|
|
95814
96255
|
});
|
|
95815
96256
|
var revokeInviteInputSchema = revokeInviteInputSchemaDefinition;
|
|
96257
|
+
var resendInviteInputSchemaDefinition = external_exports.object({
|
|
96258
|
+
workspaceId: external_exports.string().min(1),
|
|
96259
|
+
inviteId: external_exports.string().min(1),
|
|
96260
|
+
/** Where the invited person lands on joining now; it replaces the invitation's landing. */
|
|
96261
|
+
landing: inviteLandingSchema.nullable()
|
|
96262
|
+
});
|
|
95816
96263
|
var copiedInviteLinkSchemaDefinition = external_exports.object({
|
|
95817
96264
|
inviteId: external_exports.string().min(1),
|
|
95818
96265
|
email: external_exports.string(),
|
|
@@ -95932,6 +96379,25 @@ var requestApprovedDefinition = external_exports.object({
|
|
|
95932
96379
|
/** ISO 8601. */
|
|
95933
96380
|
at: external_exports.iso.datetime()
|
|
95934
96381
|
});
|
|
96382
|
+
var accessRequestChangedDefinition = external_exports.object({
|
|
96383
|
+
workspaceId: external_exports.string().min(1),
|
|
96384
|
+
requestId: external_exports.string().min(1),
|
|
96385
|
+
change: external_exports.enum(["requested", "approved", "denied", "withdrawn", "expired"]),
|
|
96386
|
+
/** Unique per change. */
|
|
96387
|
+
changeId: external_exports.string().min(1),
|
|
96388
|
+
/** ISO 8601. */
|
|
96389
|
+
at: external_exports.iso.datetime()
|
|
96390
|
+
});
|
|
96391
|
+
var memberRoleChangedDefinition = external_exports.object({
|
|
96392
|
+
workspaceId: external_exports.string().min(1),
|
|
96393
|
+
userId: external_exports.string().min(1),
|
|
96394
|
+
/** The role the member holds now. */
|
|
96395
|
+
role: external_exports.string().min(1),
|
|
96396
|
+
/** Unique per change. */
|
|
96397
|
+
changeId: external_exports.string().min(1),
|
|
96398
|
+
/** ISO 8601. */
|
|
96399
|
+
at: external_exports.iso.datetime()
|
|
96400
|
+
});
|
|
95935
96401
|
var deletionScheduledDefinition = external_exports.object({
|
|
95936
96402
|
workspaceId: external_exports.string().min(1),
|
|
95937
96403
|
byUserId: external_exports.string().min(1),
|
|
@@ -99139,7 +99605,7 @@ var WHATSAPP_BUSINESS_USAGE = `Usage (the workspace's WhatsApp Business number o
|
|
|
99139
99605
|
laze whatsapp-business status the number, its name, the answering agent, the reply mode
|
|
99140
99606
|
laze whatsapp-business conversations [--limit <n>] the conversations you are in, newest first
|
|
99141
99607
|
laze whatsapp-business read <contact> [--limit <n>] a contact's messages, oldest first, with each send's state
|
|
99142
|
-
laze whatsapp-business send <contact> "<text>" text, only within 24 hours of their last message
|
|
99608
|
+
laze whatsapp-business send <contact> "<text>"|- text (- reads stdin), only within 24 hours of their last message
|
|
99143
99609
|
laze whatsapp-business templates the account's message templates
|
|
99144
99610
|
laze whatsapp-business send-template <contact> <template> [--language <code>] [--param <text>]... [--yes]
|
|
99145
99611
|
without --yes it prints Meta's price and sends nothing; to someone who never wrote,
|
|
@@ -99310,7 +99776,7 @@ var read2 = async ({ context, args, client }) => {
|
|
|
99310
99776
|
}
|
|
99311
99777
|
};
|
|
99312
99778
|
var send3 = async ({ context, args, client }) => {
|
|
99313
|
-
const text3 = args.words.
|
|
99779
|
+
const text3 = args.words.length > 3 ? await textOf({ context, args, from: 3 }) : args.rest.join(" ").trim();
|
|
99314
99780
|
if (!text3) throw new CliUsageError(WHATSAPP_BUSINESS_USAGE);
|
|
99315
99781
|
const asked = await client.post(WHATSAPP_BUSINESS_REST_PATHS.send, {
|
|
99316
99782
|
to: wordAt10(args, 2),
|
|
@@ -99497,7 +99963,7 @@ var USAGE19 = [
|
|
|
99497
99963
|
" laze whatsapp read [<machine>] <chat> [--limit <n>] a chat's last messages, oldest first",
|
|
99498
99964
|
" (a read your owner set to Always ask waits for their answer; --request <id> picks it up later)",
|
|
99499
99965
|
" laze whatsapp file [<machine>] <chat> <message-id> [--out <path>] save a message's photo, voice message or file",
|
|
99500
|
-
' laze whatsapp send <machine> <chat> "<text>"
|
|
99966
|
+
' laze whatsapp send <machine> <chat> "<text>"|- send as the owner (- reads stdin); an agent waits for their approval',
|
|
99501
99967
|
" laze whatsapp status <send-id> where a send stands",
|
|
99502
99968
|
" laze whatsapp sync [<machine>] check WhatsApp now (the owner only)",
|
|
99503
99969
|
WHATSAPP_PAIRING_USAGE,
|
|
@@ -99634,7 +100100,7 @@ Still waiting. Run \`laze whatsapp status ${send5.id}\` later to see the answer.
|
|
|
99634
100100
|
return send5.state === "sent" || !SETTLED.has(send5.state) ? 0 : 1;
|
|
99635
100101
|
}
|
|
99636
100102
|
async function send4({ context, args }) {
|
|
99637
|
-
const text3 = args.words.
|
|
100103
|
+
const text3 = args.words.length > 4 ? await textOf({ context, args, from: 4 }) : args.rest.join(" ").trim();
|
|
99638
100104
|
if (!text3) throw new CliUsageError(USAGE19);
|
|
99639
100105
|
const client = await computeClient({ context, args });
|
|
99640
100106
|
const asked = await client.post(PATHS3.send, {
|
package/package.json
CHANGED