@lazehq/cli 0.1.114 → 0.1.115
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 +139 -15
- package/package.json +1 -1
package/dist/laze.mjs
CHANGED
|
@@ -36960,7 +36960,7 @@ function shadowedLinkLineOf({ shadow }) {
|
|
|
36960
36960
|
}
|
|
36961
36961
|
|
|
36962
36962
|
// src/rules/cli-version.rules.ts
|
|
36963
|
-
var STAMPED = "0.1.
|
|
36963
|
+
var STAMPED = "0.1.115";
|
|
36964
36964
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
36965
36965
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
36966
36966
|
}
|
|
@@ -66749,7 +66749,9 @@ var supervisorLaunchSchemaDefinition = external_exports.object({
|
|
|
66749
66749
|
/** Set by the computer daemon: this supervisor's own ports inside the workspace's computer. */
|
|
66750
66750
|
computer: external_exports.object({
|
|
66751
66751
|
port: external_exports.number().int().min(1).max(65535),
|
|
66752
|
-
apiPort: external_exports.number().int().min(1).max(65535)
|
|
66752
|
+
apiPort: external_exports.number().int().min(1).max(65535),
|
|
66753
|
+
/** The updated Claude Code's bin directory, first on the harness PATH (else the image's). */
|
|
66754
|
+
claudeCodeBin: external_exports.string().min(1).max(4096).optional()
|
|
66753
66755
|
}).optional()
|
|
66754
66756
|
});
|
|
66755
66757
|
var ATTENTION_DISMISS_NOTE_MAX = 32e3;
|
|
@@ -67418,6 +67420,8 @@ var agentAvatarInputSchema = external_exports.string().trim().max(AGENT_AVATAR_M
|
|
|
67418
67420
|
(value) => value === "" || FACE_PATTERN.test(value) || FILE_PATTERN.test(value) || isEmojiAvatar(value),
|
|
67419
67421
|
{ message: "An avatar is a face, an uploaded picture or one emoji" }
|
|
67420
67422
|
);
|
|
67423
|
+
var AGENT_AVATAR_STORED_MAX = 1e3;
|
|
67424
|
+
var agentAvatarUpdateSchema = external_exports.string().max(AGENT_AVATAR_STORED_MAX);
|
|
67421
67425
|
var agentFaceRosterSchema = external_exports.enum(AGENT_FACE_ROSTERS).default(DEFAULT_AGENT_FACE_ROSTER).catch(DEFAULT_AGENT_FACE_ROSTER);
|
|
67422
67426
|
var uploadAgentAvatarInputSchemaDefinition = external_exports.object({
|
|
67423
67427
|
workspaceId: external_exports.string().min(1),
|
|
@@ -70404,7 +70408,7 @@ var updateAgentInputSchemaDefinition = external_exports.object({
|
|
|
70404
70408
|
workspaceId: workspaceIdSchema14,
|
|
70405
70409
|
agentId: idSchema18,
|
|
70406
70410
|
name: agentNameSchema.optional(),
|
|
70407
|
-
avatar:
|
|
70411
|
+
avatar: agentAvatarUpdateSchema.optional(),
|
|
70408
70412
|
/** A Laze models agent's level; null puts it back on Default. */
|
|
70409
70413
|
modelLevel: agentModelLevelSchema.nullable().optional(),
|
|
70410
70414
|
/** Agents Laze runs only; a connected agent refuses it. Null puts back the default. */
|
|
@@ -70887,6 +70891,10 @@ var lazeChangeSchemaDefinition = external_exports.object({
|
|
|
70887
70891
|
|
|
70888
70892
|
// ../../modules/agent/contract/src/agent.config.ts
|
|
70889
70893
|
var positiveInt3 = external_exports.coerce.number().int().positive();
|
|
70894
|
+
var LAZE_LEVEL_MODELS = {
|
|
70895
|
+
frontier: "claude-opus-5-5",
|
|
70896
|
+
fast: "claude-sonnet-5-5"
|
|
70897
|
+
};
|
|
70890
70898
|
var agentConfig = Config.define((c) => ({
|
|
70891
70899
|
/** Agent messages in a row, each within 10 minutes of the last, before agents stop waking. */
|
|
70892
70900
|
hopLimit: c.env("AGENT_HOP_LIMIT", positiveInt3.default(12)),
|
|
@@ -70897,7 +70905,7 @@ var agentConfig = Config.define((c) => ({
|
|
|
70897
70905
|
),
|
|
70898
70906
|
claudeGatewayFrontierModel: c.env(
|
|
70899
70907
|
"AGENT_CLAUDE_GATEWAY_FRONTIER",
|
|
70900
|
-
external_exports.string().min(1).default(
|
|
70908
|
+
external_exports.string().min(1).default(LAZE_LEVEL_MODELS.frontier)
|
|
70901
70909
|
),
|
|
70902
70910
|
claudeGatewayMiddleModel: c.env(
|
|
70903
70911
|
"AGENT_CLAUDE_GATEWAY_MIDDLE",
|
|
@@ -70906,7 +70914,7 @@ var agentConfig = Config.define((c) => ({
|
|
|
70906
70914
|
/** Laze Small: Sonnet 5.5, the small level (Haiku was too weak, Rogerio 2026-10-28). */
|
|
70907
70915
|
claudeGatewayFastModel: c.env(
|
|
70908
70916
|
"AGENT_CLAUDE_GATEWAY_FAST",
|
|
70909
|
-
external_exports.string().min(1).default(
|
|
70917
|
+
external_exports.string().min(1).default(LAZE_LEVEL_MODELS.fast)
|
|
70910
70918
|
),
|
|
70911
70919
|
/** What a staff haiku override runs (staff-model-override.feature); never a level people pick. */
|
|
70912
70920
|
claudeGatewayHaikuModel: c.env(
|
|
@@ -73712,6 +73720,21 @@ var slackMoveChannelByKeyInputSchemaDefinition = slackMoveChannelInputSchema.omi
|
|
|
73712
73720
|
var startSlackMovesByKeyInputSchemaDefinition = startSlackMovesInputSchema.omit(noWorkspace);
|
|
73713
73721
|
var slackMoveByKeyInputSchemaDefinition = slackMoveInputSchema.omit(noWorkspace);
|
|
73714
73722
|
|
|
73723
|
+
// ../../modules/slack/contract/src/slack-owner-post.ts
|
|
73724
|
+
var SLACK_OWNER_POST_PATH = "/api/slack/post";
|
|
73725
|
+
var SLACK_OWNER_POST_MAX = 8e3;
|
|
73726
|
+
var slackOwnerPostInputSchemaDefinition = external_exports.object({
|
|
73727
|
+
/** The mirrored conversation's Laze id, as `laze history` and `laze search` print it. */
|
|
73728
|
+
channelId: external_exports.string().trim().min(1).max(200),
|
|
73729
|
+
text: external_exports.string().trim().min(1).max(SLACK_OWNER_POST_MAX),
|
|
73730
|
+
/** The Laze message to reply under; null posts in the conversation. */
|
|
73731
|
+
threadRootId: external_exports.string().trim().min(1).max(200).nullable().default(null)
|
|
73732
|
+
});
|
|
73733
|
+
var slackOwnerPostedSchemaDefinition = external_exports.object({
|
|
73734
|
+
messageId: external_exports.string(),
|
|
73735
|
+
channelId: external_exports.string()
|
|
73736
|
+
});
|
|
73737
|
+
|
|
73715
73738
|
// ../../modules/slack/contract/src/slack.config.ts
|
|
73716
73739
|
var positiveInt4 = external_exports.coerce.number().int().positive();
|
|
73717
73740
|
var slackConfig = Config.define((c) => ({
|
|
@@ -74028,13 +74051,14 @@ function newestIsSubagent({
|
|
|
74028
74051
|
}
|
|
74029
74052
|
|
|
74030
74053
|
// src/rules/rush-host.rules.ts
|
|
74054
|
+
var HOST_ACTIONS = /* @__PURE__ */ new Set(["run", "adopt"]);
|
|
74031
74055
|
function rushSessionOf({
|
|
74032
74056
|
parentArgs
|
|
74033
74057
|
}) {
|
|
74034
74058
|
if (!parentArgs) return void 0;
|
|
74035
74059
|
const [program = "", verb, action, id4] = parentArgs;
|
|
74036
|
-
if (!program ||
|
|
74037
|
-
return { id: id4, program };
|
|
74060
|
+
if (!program || !id4 || verb !== "host") return void 0;
|
|
74061
|
+
return HOST_ACTIONS.has(action ?? "") ? { id: id4, program } : void 0;
|
|
74038
74062
|
}
|
|
74039
74063
|
function rushSendCommand({ program, id: id4 }) {
|
|
74040
74064
|
return ["sh", "-c", 'printf "%s\\n" "$LAZE_WAKE_TEXT" | "$0" session send "$1"', program, id4];
|
|
@@ -78138,6 +78162,11 @@ without a recap; the person's DM already shows your messages elsewhere.
|
|
|
78138
78162
|
\`--file <path|url>\` (repeatable, at most 6) to \`laze post\` or \`laze reply\` to send files.
|
|
78139
78163
|
- \`laze history <channel>\` and \`laze thread <id>\` read a conversation.
|
|
78140
78164
|
- \`laze search "words"\` searches messages.
|
|
78165
|
+
- When you work for your person alone (their own turn, or no one else's), \`laze history\`,
|
|
78166
|
+
\`laze search\` and \`laze thread\` also read their mirrored Slack, channels and DMs, as they
|
|
78167
|
+
see it. Never ask for a Slack token. \`laze slack post <channelId> "text"\` (\`--thread <id>\`
|
|
78168
|
+
to reply) posts there as them, from their own Slack account, in a turn they started; it can
|
|
78169
|
+
wait for their OK. Post as them only a message they told you to send.
|
|
78141
78170
|
- \`laze channels list\` lists the conversations you are in.
|
|
78142
78171
|
- \`laze conversation new <agent> "text"\` starts a conversation (yours starts it for your
|
|
78143
78172
|
person), \`laze conversation add <id> <member>\` adds workspace members or agents to it,
|
|
@@ -78219,6 +78248,7 @@ guide first: https://laze.so/docs/agents/apps.md. The short version:
|
|
|
78219
78248
|
a deck and keep its data-el attributes. A deck made earlier gets this with \`laze app upgrade\`.
|
|
78220
78249
|
An app that already exists goes in with \`laze app pin <app> --channel <channel>\`, never as a
|
|
78221
78250
|
pinned message with a link. A pin opens it to everyone there, and their agents may build on it.
|
|
78251
|
+
\`--path /#section\` (or any page of the app) opens the tab on that page; pin again to move it.
|
|
78222
78252
|
- A new app is Restricted. Do not share it with only the person who asked when they asked in a
|
|
78223
78253
|
channel: pin it there. \`laze app members\` shows who can open it; check it before announcing.
|
|
78224
78254
|
- Every \`laze app push -m "<what changed>"\` is live at once. There are no drafts, branches or
|
|
@@ -81946,6 +81976,11 @@ var appTriggerFiredPayloadSchemaDefinition = external_exports.object({
|
|
|
81946
81976
|
});
|
|
81947
81977
|
|
|
81948
81978
|
// ../../modules/app/contract/src/app.pins.ts
|
|
81979
|
+
var APP_PIN_PATH_MAX = 2e3;
|
|
81980
|
+
var appPinPathSchema = external_exports.string().trim().max(APP_PIN_PATH_MAX).refine(
|
|
81981
|
+
(path) => path.startsWith("/") && !path.startsWith("//") && !path.includes("\\") && !/[\s\p{Cc}]/u.test(path),
|
|
81982
|
+
{ message: "The path is a page of the app, starting with /, like /#failed-payments" }
|
|
81983
|
+
);
|
|
81949
81984
|
var APP_PINS_PER_CHANNEL_MAX = 6;
|
|
81950
81985
|
var appPinChangedPayloadSchemaDefinition = external_exports.object({
|
|
81951
81986
|
workspaceId: external_exports.string().min(1),
|
|
@@ -81983,6 +82018,8 @@ var appPinSchemaDefinition = external_exports.object({
|
|
|
81983
82018
|
canUnpin: external_exports.boolean().default(true),
|
|
81984
82019
|
/** The app's own origin, so links to it open in the panel; null for a browser tab. */
|
|
81985
82020
|
url: external_exports.string().nullable().default(null),
|
|
82021
|
+
/** The page of the app the tab opens on, relative to `url`; null opens its first page. */
|
|
82022
|
+
path: external_exports.string().nullable().default(null),
|
|
81986
82023
|
/**
|
|
81987
82024
|
* The workspace that owns the app, when it is not the reader's: an app pinned in the other
|
|
81988
82025
|
* side's copy of a shared channel. Null for the reader's own workspace's apps.
|
|
@@ -82007,7 +82044,9 @@ var pinAppInputSchemaDefinition = external_exports.object({
|
|
|
82007
82044
|
/** The conversation, by id or by channel name with or without `#`. */
|
|
82008
82045
|
channel: external_exports.string().trim().min(1).max(120),
|
|
82009
82046
|
/** What the conversation's members may do: builder unless the pinner picked edit or view only. */
|
|
82010
|
-
role: appRoleSchema.optional()
|
|
82047
|
+
role: appRoleSchema.optional(),
|
|
82048
|
+
/** The page the tab opens on; absent keeps the pin's page, `/` sets it back to the first. */
|
|
82049
|
+
path: appPinPathSchema.optional()
|
|
82011
82050
|
});
|
|
82012
82051
|
var pinAppInputSchema = pinAppInputSchemaDefinition;
|
|
82013
82052
|
var channelPinsInputSchemaDefinition = external_exports.object({
|
|
@@ -82035,7 +82074,9 @@ var pinAppByKeyInputSchemaDefinition = external_exports.object({
|
|
|
82035
82074
|
/** Absent in an agent's turn means the conversation the turn runs in. */
|
|
82036
82075
|
channel: external_exports.string().trim().min(1).max(120).optional(),
|
|
82037
82076
|
/** On a pin: what the conversation's members may do, builder unless edit or view only. */
|
|
82038
|
-
role: appRoleSchema.optional()
|
|
82077
|
+
role: appRoleSchema.optional(),
|
|
82078
|
+
/** On a pin: the page the tab opens on; absent keeps the pin's page, `/` the first page. */
|
|
82079
|
+
path: appPinPathSchema.optional()
|
|
82039
82080
|
});
|
|
82040
82081
|
var channelPinsByKeyInputSchemaDefinition = channelPinsInputSchemaDefinition.omit({
|
|
82041
82082
|
workspaceId: true
|
|
@@ -84383,7 +84424,7 @@ var appManageCommands = {
|
|
|
84383
84424
|
|
|
84384
84425
|
// src/services/app-pin-commands.service.ts
|
|
84385
84426
|
var USAGE5 = `Usage:
|
|
84386
|
-
laze app pin [app] --channel <c> [--role builder|editor|viewer | --view-only]
|
|
84427
|
+
laze app pin [app] --channel <c> [--role builder|editor|viewer | --view-only] [--path <page>]
|
|
84387
84428
|
laze app unpin [app] --channel <c>
|
|
84388
84429
|
laze app pins <channel> [--order <app,app,...>]`;
|
|
84389
84430
|
function print3({
|
|
@@ -84407,6 +84448,20 @@ function pinRoleOf(args) {
|
|
|
84407
84448
|
if (word3 === "builder" || word3 === "editor" || word3 === "viewer") return word3;
|
|
84408
84449
|
throw new CliUsageError("The pin's role is builder, editor or viewer");
|
|
84409
84450
|
}
|
|
84451
|
+
function pinPathOf(args) {
|
|
84452
|
+
const word3 = flagText({ args, name: "path" }).trim();
|
|
84453
|
+
if (!word3) return void 0;
|
|
84454
|
+
if (word3.startsWith("//") || /^[a-z][a-z0-9+.-]*:/i.test(word3)) {
|
|
84455
|
+
throw new CliUsageError(
|
|
84456
|
+
"--path is the page relative to the app: for https://<app>.lazeapps.com/#failed-payments use --path /#failed-payments"
|
|
84457
|
+
);
|
|
84458
|
+
}
|
|
84459
|
+
const parsed = appPinPathSchema.safeParse(word3.startsWith("/") ? word3 : `/${word3}`);
|
|
84460
|
+
if (!parsed.success) {
|
|
84461
|
+
throw new CliUsageError(parsed.error.issues[0]?.message ?? "That is not a page of the app");
|
|
84462
|
+
}
|
|
84463
|
+
return parsed.data;
|
|
84464
|
+
}
|
|
84410
84465
|
function readLineOf(pin) {
|
|
84411
84466
|
if (pin.kind === "browser") return ` read it: laze browser read ${pin.appId}
|
|
84412
84467
|
`;
|
|
@@ -84417,13 +84472,19 @@ function readLineOf(pin) {
|
|
|
84417
84472
|
return ` read it: laze app pull --app ${pin.appId} (its files), laze app records list <collection> --app ${pin.appId} (its data)
|
|
84418
84473
|
`;
|
|
84419
84474
|
}
|
|
84475
|
+
function pageLineOf({ listed, appId }) {
|
|
84476
|
+
const pin = listed.pins.find((each) => each.appId === appId && each.kind === "app");
|
|
84477
|
+
if (!pin) return "";
|
|
84478
|
+
return pin.path ? `The tab opens on ${pin.path}.
|
|
84479
|
+
` : "The tab opens on the app's first page.\n";
|
|
84480
|
+
}
|
|
84420
84481
|
function pinsText({ channel, listed }) {
|
|
84421
84482
|
if (listed.pins.length === 0) {
|
|
84422
84483
|
return `No apps are pinned to ${channel}. laze app pin --channel ${channel} pins one.
|
|
84423
84484
|
`;
|
|
84424
84485
|
}
|
|
84425
84486
|
const lines2 = listed.pins.map(
|
|
84426
|
-
(pin) => `${pin.name} ${pin.appId} pinned by ${pin.pinnedByName ?? pin.pinnedBy.id} ${pin.pinnedAt.slice(0, 10)}
|
|
84487
|
+
(pin) => `${pin.name} ${pin.appId} pinned by ${pin.pinnedByName ?? pin.pinnedBy.id} ${pin.pinnedAt.slice(0, 10)}${pin.path ? ` opens on ${pin.path}` : ""}
|
|
84427
84488
|
` + readLineOf(pin)
|
|
84428
84489
|
);
|
|
84429
84490
|
return `Pinned to ${channel}:
|
|
@@ -84438,10 +84499,12 @@ async function appPinCommand({
|
|
|
84438
84499
|
const channel = flagText({ args, name: "channel" });
|
|
84439
84500
|
const { client, appId, name: name3 } = await open7();
|
|
84440
84501
|
const role2 = verb === "pin" ? pinRoleOf(args) : void 0;
|
|
84502
|
+
const path = verb === "pin" ? pinPathOf(args) : void 0;
|
|
84441
84503
|
const listed = await client.post(`/api/apps/${verb}`, {
|
|
84442
84504
|
appId,
|
|
84443
84505
|
...channel ? { channel } : {},
|
|
84444
|
-
...role2 ? { role: role2 } : {}
|
|
84506
|
+
...role2 ? { role: role2 } : {},
|
|
84507
|
+
...path ? { path } : {}
|
|
84445
84508
|
});
|
|
84446
84509
|
const where = channel || "this conversation";
|
|
84447
84510
|
const may = PIN_MAY[role2 ?? "builder"];
|
|
@@ -84450,7 +84513,7 @@ async function appPinCommand({
|
|
|
84450
84513
|
args,
|
|
84451
84514
|
value: listed,
|
|
84452
84515
|
text: verb === "pin" ? `Pinned ${name3} to ${where}: everyone in it and their agents see the tab and ${may}.
|
|
84453
|
-
` : `Unpinned ${name3} from ${where}. The app and its data stay.
|
|
84516
|
+
` + pageLineOf({ listed, appId }) : `Unpinned ${name3} from ${where}. The app and its data stay.
|
|
84454
84517
|
`
|
|
84455
84518
|
});
|
|
84456
84519
|
}
|
|
@@ -90791,6 +90854,16 @@ var whatsappMirrorHealthDefinition = external_exports.object({
|
|
|
90791
90854
|
});
|
|
90792
90855
|
var whatsappMirrorHealthSchema = whatsappMirrorHealthDefinition;
|
|
90793
90856
|
var WHATSAPP_SEND_KINDS = ["reply", "edit", "revoke", "react", "read", "agent"];
|
|
90857
|
+
var WHATSAPP_SEND_BLOCK_REASONS = [
|
|
90858
|
+
"not_linked",
|
|
90859
|
+
"chat_form",
|
|
90860
|
+
"chat_device",
|
|
90861
|
+
"chat_kind_broadcast",
|
|
90862
|
+
"chat_kind_newsletter",
|
|
90863
|
+
"chat_kind_bot",
|
|
90864
|
+
"chat_kind_other",
|
|
90865
|
+
"own_chat_only"
|
|
90866
|
+
];
|
|
90794
90867
|
var whatsappSendsDefinition = external_exports.object({
|
|
90795
90868
|
/** Newest first. */
|
|
90796
90869
|
sends: external_exports.array(
|
|
@@ -90802,6 +90875,8 @@ var whatsappSendsDefinition = external_exports.object({
|
|
|
90802
90875
|
state: external_exports.string(),
|
|
90803
90876
|
/** Whether it quoted a message, and how many files it carried. */
|
|
90804
90877
|
quoted: external_exports.boolean(),
|
|
90878
|
+
/** Sends to the same chat share a number, counted from 1 in this answer; never the chat. */
|
|
90879
|
+
chatIndex: external_exports.number().int().min(1),
|
|
90805
90880
|
files: count8,
|
|
90806
90881
|
/**
|
|
90807
90882
|
* Why a failed send did not go: its stored code, or for older sends the code its outcome
|
|
@@ -90810,6 +90885,8 @@ var whatsappSendsDefinition = external_exports.object({
|
|
|
90810
90885
|
failureCode: external_exports.string().nullable(),
|
|
90811
90886
|
/** For a refused or unknown failure, the error number WhatsApp's server gave, if any. */
|
|
90812
90887
|
serverErrorCode: external_exports.number().int().nullable(),
|
|
90888
|
+
/** For a blocked send, the computer's allow-list rule that refused it, when it named one. */
|
|
90889
|
+
blockedBy: external_exports.enum(WHATSAPP_SEND_BLOCK_REASONS).nullable(),
|
|
90813
90890
|
createdAt: at2,
|
|
90814
90891
|
claimedAt: at2.nullable(),
|
|
90815
90892
|
sentAt: at2.nullable()
|
|
@@ -100778,6 +100855,27 @@ var tenantEventsOutputDefinition = external_exports.object({
|
|
|
100778
100855
|
external_exports.object({ at: external_exports.iso.datetime(), aggregateType: external_exports.string(), eventType: external_exports.string() })
|
|
100779
100856
|
)
|
|
100780
100857
|
});
|
|
100858
|
+
var agentTimelineInputDefinition = external_exports.object({
|
|
100859
|
+
agentId: external_exports.string().trim().min(1).max(128),
|
|
100860
|
+
from: external_exports.iso.datetime(),
|
|
100861
|
+
to: external_exports.iso.datetime(),
|
|
100862
|
+
limit: external_exports.number().int().min(1).max(500).default(200),
|
|
100863
|
+
cursor: cursorDefinition.optional()
|
|
100864
|
+
}).strict();
|
|
100865
|
+
var agentTimelineOutputDefinition = external_exports.object({
|
|
100866
|
+
/**
|
|
100867
|
+
* Oldest first: the agent's own events and its sessions' events, with a session event's kind
|
|
100868
|
+
* (turn_started, compaction_started, stalled...) and channel id; never a payload or text.
|
|
100869
|
+
*/
|
|
100870
|
+
events: pageOf(
|
|
100871
|
+
external_exports.object({
|
|
100872
|
+
at: external_exports.iso.datetime(),
|
|
100873
|
+
eventType: external_exports.string(),
|
|
100874
|
+
sessionEvent: external_exports.string().nullable(),
|
|
100875
|
+
channelId: external_exports.string().nullable()
|
|
100876
|
+
})
|
|
100877
|
+
)
|
|
100878
|
+
});
|
|
100781
100879
|
var databaseHealthInputDefinition = external_exports.object({
|
|
100782
100880
|
limit: external_exports.number().int().min(1).max(100).default(15),
|
|
100783
100881
|
cursor: cursorDefinition.optional()
|
|
@@ -100942,7 +101040,9 @@ var tenantWhatsappOutputDefinition = external_exports.object({
|
|
|
100942
101040
|
/** Events dated over a second after Laze got them, and the most ahead: a fast clock. */
|
|
100943
101041
|
aheadOfLaze: external_exports.object({ count: count9, maxAheadMs: external_exports.number().int() }).optional()
|
|
100944
101042
|
})
|
|
100945
|
-
)
|
|
101043
|
+
),
|
|
101044
|
+
/** The workspace's chat messages and changes dated over a second after Laze stored them. */
|
|
101045
|
+
chatAheadOfLaze: external_exports.object({ count: count9, maxAheadMs: external_exports.number().int() }).optional()
|
|
100946
101046
|
})
|
|
100947
101047
|
});
|
|
100948
101048
|
var whatsappSendsInputDefinition = external_exports.object({
|
|
@@ -101051,6 +101151,13 @@ var OPS_FUNCTIONS = {
|
|
|
101051
101151
|
input: tenantEventsInputDefinition,
|
|
101052
101152
|
output: tenantEventsOutputDefinition
|
|
101053
101153
|
}),
|
|
101154
|
+
"tenant.agent_timeline": entry({
|
|
101155
|
+
title: "One agent's events and session events over at most a day, with kinds and times",
|
|
101156
|
+
scope: "tenant",
|
|
101157
|
+
view: "table",
|
|
101158
|
+
input: agentTimelineInputDefinition,
|
|
101159
|
+
output: agentTimelineOutputDefinition
|
|
101160
|
+
}),
|
|
101054
101161
|
"db.health": entry({
|
|
101055
101162
|
title: "Postgres size, connections, waits, cache and the largest tables",
|
|
101056
101163
|
scope: "platform",
|
|
@@ -101949,6 +102056,9 @@ var SLACK_USAGE = `Usage (a person's key; Slack stays the source, the bot joins
|
|
|
101949
102056
|
laze slack dismiss-link-prompt connect|relink no thanks: stop asking here
|
|
101950
102057
|
laze slack people [name] people in your linked Slack, to message
|
|
101951
102058
|
laze slack dm <teamId> <slackUserId> start a Slack DM as yourself
|
|
102059
|
+
laze slack post <channelId> <text> [--thread <messageId>]
|
|
102060
|
+
an agent posts in its owner's Slack mirror as the owner, in a turn the owner started;
|
|
102061
|
+
the text from stdin when none is given. Read Slack with laze history, search and thread
|
|
101952
102062
|
laze slack profiles <slack:T:U>... Slack status, title and time zone of authors
|
|
101953
102063
|
laze slack bookmarks <channelId> a mirrored Slack channel's bookmarks
|
|
101954
102064
|
laze slack link <teamId> prints the link that links your own Slack
|
|
@@ -102088,6 +102198,19 @@ var bookmarks = async ({ context, args, client }) => {
|
|
|
102088
102198
|
for (const each of answer6.bookmarks) context.out(`${each.title} ${each.link}
|
|
102089
102199
|
`);
|
|
102090
102200
|
};
|
|
102201
|
+
var post2 = async ({ context, args, client }) => {
|
|
102202
|
+
const given = args.words.slice(3).join(" ").trim();
|
|
102203
|
+
const text3 = given || (await context.readStdin()).trim();
|
|
102204
|
+
if (!text3) throw new CliUsageError(SLACK_USAGE);
|
|
102205
|
+
const posted = await client.post(SLACK_OWNER_POST_PATH, {
|
|
102206
|
+
channelId: wordAt9(args, 2),
|
|
102207
|
+
text: text3,
|
|
102208
|
+
threadRootId: flagText({ args, name: "thread" }) || null
|
|
102209
|
+
});
|
|
102210
|
+
if (json5({ context, args, data: posted })) return;
|
|
102211
|
+
context.out(`Posted as your owner: ${posted.messageId} in ${posted.channelId}
|
|
102212
|
+
`);
|
|
102213
|
+
};
|
|
102091
102214
|
var dm = async ({ context, args, client }) => {
|
|
102092
102215
|
const opened = await client.post(SLACK_KEY_PATHS.direct, {
|
|
102093
102216
|
teamId: wordAt9(args, 2),
|
|
@@ -102256,6 +102379,7 @@ var RUNS6 = {
|
|
|
102256
102379
|
profiles,
|
|
102257
102380
|
bookmarks,
|
|
102258
102381
|
dm,
|
|
102382
|
+
post: post2,
|
|
102259
102383
|
link: authorizeRun2(SLACK_KEY_PATHS.link, "Open this link to link your Slack account", teamOf),
|
|
102260
102384
|
unlink: connectionRun2(SLACK_KEY_PATHS.unlink, teamOf),
|
|
102261
102385
|
install: authorizeRun2(
|
|
@@ -104564,7 +104688,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
|
|
|
104564
104688
|
laze app create <name> ... build an app from scratch (--template slides for a deck), push, revert
|
|
104565
104689
|
apps are also called artifacts: asked for an artifact, page, dashboard, deck or mock, build a Laze app
|
|
104566
104690
|
laze app open|screenshot [file] look at your app in a browser tab, signed in as you, view only
|
|
104567
|
-
laze app pin <app> --channel <c>
|
|
104691
|
+
laze app pin <app> --channel <c> [--path /#x] put an app in a conversation as a tab (not laze message pin)
|
|
104568
104692
|
laze app every laze app command, with its flags
|
|
104569
104693
|
laze agents list | laze agents status <name> the workspace's agents and their context
|
|
104570
104694
|
laze agents show <name> [--json] an agent's profile: kind, how it runs, intelligence
|
package/package.json
CHANGED