@lazehq/cli 0.1.142 → 0.1.143
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 +61 -12
- package/package.json +1 -1
package/dist/laze.mjs
CHANGED
|
@@ -36984,7 +36984,7 @@ function shadowedLinkLineOf({ shadow }) {
|
|
|
36984
36984
|
}
|
|
36985
36985
|
|
|
36986
36986
|
// src/rules/cli-version.rules.ts
|
|
36987
|
-
var STAMPED = "0.1.
|
|
36987
|
+
var STAMPED = "0.1.143";
|
|
36988
36988
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
36989
36989
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
36990
36990
|
}
|
|
@@ -37563,7 +37563,8 @@ var SWITCHES = /* @__PURE__ */ new Set([
|
|
|
37563
37563
|
"ask",
|
|
37564
37564
|
"real-value",
|
|
37565
37565
|
"default",
|
|
37566
|
-
"set-default"
|
|
37566
|
+
"set-default",
|
|
37567
|
+
"full-access"
|
|
37567
37568
|
]);
|
|
37568
37569
|
function parseArgs({ argv }) {
|
|
37569
37570
|
const words = [];
|
|
@@ -61593,6 +61594,8 @@ var vaultApprovalResolvedPayloadSchemaDefinition = external_exports.object({
|
|
|
61593
61594
|
blockedUntil: external_exports.iso.datetime().nullable().default(null),
|
|
61594
61595
|
/** An expired card closed because the agent's turn that asked ended; nothing is blocked. */
|
|
61595
61596
|
endedWithTurn: external_exports.boolean().optional(),
|
|
61597
|
+
/** Closed because the key's level now lets the use through; `endedWithTurn` is set too. */
|
|
61598
|
+
keyNowAllows: external_exports.boolean().optional(),
|
|
61596
61599
|
/** A task card: its Allow covered the rest of the agent's turn. */
|
|
61597
61600
|
coversTask: external_exports.boolean().optional(),
|
|
61598
61601
|
/** Settled by another card's Allow for this agent, whose lease now covers this ask too. */
|
|
@@ -62602,7 +62605,8 @@ function unusableFieldProblems({
|
|
|
62602
62605
|
fields
|
|
62603
62606
|
}) {
|
|
62604
62607
|
return Object.entries(fields).flatMap(([field, value]) => {
|
|
62605
|
-
if (PLACEHOLDER.test(value))
|
|
62608
|
+
if (PLACEHOLDER.test(value))
|
|
62609
|
+
return [`${field} holds a reference to a vault key, not the key itself`];
|
|
62606
62610
|
return [];
|
|
62607
62611
|
});
|
|
62608
62612
|
}
|
|
@@ -66667,6 +66671,7 @@ var ChatExternalPersonCardSlot = chatUi.extension("external-person-card");
|
|
|
66667
66671
|
var ChatNewChannelDialogSlot = chatUi.component("new-channel-dialog");
|
|
66668
66672
|
var ChatPeoplePickerSlot = chatUi.component("people-picker");
|
|
66669
66673
|
var ChatActorFaceSlot = chatUi.component("actor-face");
|
|
66674
|
+
var ChatMembersDialogSlot = chatUi.component("members-dialog");
|
|
66670
66675
|
var ChatAddPeopleDialogSlot = chatUi.component("add-people-dialog");
|
|
66671
66676
|
var ChatHandoffComposerSlot = chatUi.component("handoff-composer");
|
|
66672
66677
|
var ChatConversationsWithSlot = chatUi.component("conversations-with");
|
|
@@ -67922,7 +67927,9 @@ var agentSandboxSpecSchemaDefinition = external_exports.object({
|
|
|
67922
67927
|
/** The agent's turns go to LangWatch: the harness exports OpenTelemetry at this level. */
|
|
67923
67928
|
telemetry: external_exports.object({ content: external_exports.enum(["full", "metadata"]) }).optional(),
|
|
67924
67929
|
/** The agent's profile; absent reads as `standard`. */
|
|
67925
|
-
profile: sandboxProfileSchema.optional()
|
|
67930
|
+
profile: sandboxProfileSchema.optional(),
|
|
67931
|
+
/** Claude Code in a workspace with the staff flag claude_code_mode: it asks for Code Mode. */
|
|
67932
|
+
codeMode: external_exports.boolean().optional()
|
|
67926
67933
|
});
|
|
67927
67934
|
var deliveredFileSchemaDefinition = external_exports.object({
|
|
67928
67935
|
/** Relative to the agent's work folder, e.g. `attachments/<messageId>/report.pdf`. */
|
|
@@ -68166,6 +68173,8 @@ var supervisorLaunchSchemaDefinition = external_exports.object({
|
|
|
68166
68173
|
machine: supervisorMachineSchemaDefinition.optional(),
|
|
68167
68174
|
/** On a machine, by relay connection id: the placeholder a local caller must present. */
|
|
68168
68175
|
relayPlaceholders: external_exports.record(external_exports.string().regex(/^[A-Za-z0-9_-]+$/), external_exports.string().min(1)).default({}),
|
|
68176
|
+
/** The workspace asks for Claude Code's Code Mode (staff flag claude_code_mode). */
|
|
68177
|
+
codeMode: external_exports.boolean().optional(),
|
|
68169
68178
|
/** Set by the computer daemon: this supervisor's own ports inside the workspace's computer. */
|
|
68170
68179
|
computer: external_exports.object({
|
|
68171
68180
|
port: external_exports.number().int().min(1).max(65535),
|
|
@@ -68173,7 +68182,9 @@ var supervisorLaunchSchemaDefinition = external_exports.object({
|
|
|
68173
68182
|
/** The updated Claude Code's bin directory, first on the harness PATH (else the image's). */
|
|
68174
68183
|
claudeCodeBin: external_exports.string().min(1).max(4096).optional(),
|
|
68175
68184
|
/** The updated Codex CLI's bin directory, first on the harness PATH (else the image's). */
|
|
68176
|
-
codexBin: external_exports.string().min(1).max(4096).optional()
|
|
68185
|
+
codexBin: external_exports.string().min(1).max(4096).optional(),
|
|
68186
|
+
/** The launch asked for Code Mode and the Claude Code on the harness PATH is patched. */
|
|
68187
|
+
codeMode: external_exports.boolean().optional()
|
|
68177
68188
|
}).optional()
|
|
68178
68189
|
});
|
|
68179
68190
|
var ATTENTION_DISMISS_NOTE_MAX = 32e3;
|
|
@@ -68400,7 +68411,9 @@ var computerDaemonUseSchemaDefinition = computerUseSchema.omit({ state: true, la
|
|
|
68400
68411
|
/** The Claude Code agents run (the update in use, else the image's) and the last check. */
|
|
68401
68412
|
claudeCode: external_exports.object({
|
|
68402
68413
|
version: external_exports.string().max(40).nullable(),
|
|
68403
|
-
checkedAt: external_exports.string().max(40).nullable()
|
|
68414
|
+
checkedAt: external_exports.string().max(40).nullable(),
|
|
68415
|
+
/** A release the Code Mode patch or its REPL check refused since the daemon started. */
|
|
68416
|
+
codeModeRefused: external_exports.string().max(40).optional()
|
|
68404
68417
|
}).optional(),
|
|
68405
68418
|
/** The Codex CLI agents run (the update in use, else the image's) and the last check. */
|
|
68406
68419
|
codex: external_exports.object({
|
|
@@ -72800,7 +72813,7 @@ var AgentRunsOnPickerSlot = agentUi.component("runsOnPicker");
|
|
|
72800
72813
|
var AgentEditDialogSlot = agentUi.component("editDialog");
|
|
72801
72814
|
var AgentNameSlot = agentUi.component("name");
|
|
72802
72815
|
var AgentFaceSlot = agentUi.component("face");
|
|
72803
|
-
var
|
|
72816
|
+
var AgentChatMembersHooksToken = agentUi.hooks("chatMembers");
|
|
72804
72817
|
var AgentConnectDialogSlot = agentUi.component("connectDialog");
|
|
72805
72818
|
var AgentConnectWaitSlot = agentUi.component("connectWait");
|
|
72806
72819
|
var AgentConnectWaitRowSlot = agentUi.component("connectWaitRow");
|
|
@@ -75595,6 +75608,8 @@ var slackConnectionViewSchemaDefinition = external_exports.object({
|
|
|
75595
75608
|
viewerLinkState: slackLinkStateSchema.nullable().default(null),
|
|
75596
75609
|
/** The scope Slack said the viewer's link lacks, for `missing_scope`. */
|
|
75597
75610
|
viewerMissingScope: external_exports.string().nullable().default(null),
|
|
75611
|
+
/** Bot scopes Laze asks that this install lacks; installing the app again grants them. */
|
|
75612
|
+
missingBotScopes: external_exports.array(external_exports.string()).default([]),
|
|
75598
75613
|
linkedPeople: external_exports.number().int().nonnegative()
|
|
75599
75614
|
});
|
|
75600
75615
|
var slackConnectionViewSchema = slackConnectionViewSchemaDefinition;
|
|
@@ -75856,6 +75871,22 @@ var slackOwnerPostedSchemaDefinition = external_exports.object({
|
|
|
75856
75871
|
channelId: external_exports.string()
|
|
75857
75872
|
});
|
|
75858
75873
|
|
|
75874
|
+
// ../../modules/slack/contract/src/slack-connect-invite.ts
|
|
75875
|
+
var SLACK_CONNECT_INVITE_PATH = "/api/slack/connect-invite";
|
|
75876
|
+
var slackConnectInviteInputSchemaDefinition = external_exports.object({
|
|
75877
|
+
/** The mirrored conversation's Laze id, or the Slack channel id it mirrors. */
|
|
75878
|
+
channelId: external_exports.string().trim().min(1).max(200),
|
|
75879
|
+
/** Who to invite: Slack sends them an email with a link to join. */
|
|
75880
|
+
email: external_exports.email().max(320),
|
|
75881
|
+
/** True lets them only post; false lets them also invite others and manage the channel. */
|
|
75882
|
+
externalLimited: external_exports.boolean().default(true)
|
|
75883
|
+
});
|
|
75884
|
+
var slackConnectInvitedSchemaDefinition = external_exports.object({
|
|
75885
|
+
inviteId: external_exports.string(),
|
|
75886
|
+
channelId: external_exports.string(),
|
|
75887
|
+
email: external_exports.string()
|
|
75888
|
+
});
|
|
75889
|
+
|
|
75859
75890
|
// ../../modules/slack/contract/src/slack.config.ts
|
|
75860
75891
|
var positiveInt4 = external_exports.coerce.number().int().positive();
|
|
75861
75892
|
var slackConfig = Config.define((c) => ({
|
|
@@ -75943,7 +75974,7 @@ function hasSettingIn({ channel }) {
|
|
|
75943
75974
|
}
|
|
75944
75975
|
function placeOf({ channel }) {
|
|
75945
75976
|
if (channel.kind === "public" || channel.kind === "private") return `#${channel.name}`;
|
|
75946
|
-
const what =
|
|
75977
|
+
const what = { chat: "conversation", group: "group DM", dm: "agent chat" }[channel.kind];
|
|
75947
75978
|
return channel.name ? `${what} ${channel.name} (${channel.id})` : `${what} ${channel.id}`;
|
|
75948
75979
|
}
|
|
75949
75980
|
function settingRowOf({ channel }) {
|
|
@@ -80511,6 +80542,8 @@ them that link, never only where to find it ("a card in your feed").
|
|
|
80511
80542
|
see it. Never ask for a Slack token. \`laze slack post <channelId> "text"\` (\`--thread <id>\`
|
|
80512
80543
|
to reply) posts there as them, from their own Slack account, in a turn they started; it can
|
|
80513
80544
|
wait for their OK. Post as them only a message they told you to send.
|
|
80545
|
+
\`laze slack connect-invite <channelId> <email>\` sends a Slack Connect invite to someone at
|
|
80546
|
+
another company, from a Slack channel they are in; they always OK it on a card first.
|
|
80514
80547
|
- \`laze channels list\` lists the conversations you are in.
|
|
80515
80548
|
- \`laze conversation new <agent> "text"\` starts a conversation for your person, with you in
|
|
80516
80549
|
it and your text posted as you; \`laze conversation add <id> <member>\` adds workspace members
|
|
@@ -86603,7 +86636,7 @@ function preparedCommand({
|
|
|
86603
86636
|
const [problem] = unusableFieldProblems({ fields });
|
|
86604
86637
|
if (problem !== void 0) {
|
|
86605
86638
|
return {
|
|
86606
|
-
refusal: `laze vault: ${name3}: ${problem}, so the command did not run. Ask its owner to
|
|
86639
|
+
refusal: `laze vault: ${name3}: ${problem}, so the command did not run. Ask its owner to paste the key itself on the vault page.`
|
|
86607
86640
|
};
|
|
86608
86641
|
}
|
|
86609
86642
|
}
|
|
@@ -90636,7 +90669,7 @@ async function channelSettings({ context, args }) {
|
|
|
90636
90669
|
const shown2 = wanted ? channels3.filter((channel) => channel.id === wanted || channel.name === name3) : channels3;
|
|
90637
90670
|
if (wanted && shown2.length === 0) {
|
|
90638
90671
|
throw new CliUsageError(
|
|
90639
|
-
`${wanted} has no setting for you: you are not in it, or it is a 1:1 DM, which always
|
|
90672
|
+
`${wanted} has no setting for you: you are not in it, or it is a 1:1 DM or your own chat, which always reach you. laze channel settings lists your channels, shared conversations and agent chats.`
|
|
90640
90673
|
);
|
|
90641
90674
|
}
|
|
90642
90675
|
if (args.flags.json) {
|
|
@@ -105875,6 +105908,10 @@ var SLACK_USAGE = `Usage (a person's key; Slack stays the source, the bot joins
|
|
|
105875
105908
|
laze slack post <channelId> <text> [--thread <messageId>]
|
|
105876
105909
|
an agent posts in its owner's Slack mirror as the owner, in a turn the owner started;
|
|
105877
105910
|
the text from stdin when none is given. Read Slack with laze history, search and thread
|
|
105911
|
+
laze slack connect-invite <channelId> <email> [--full-access]
|
|
105912
|
+
an agent has the Laze bot invite someone from another company to its owner's Slack
|
|
105913
|
+
channel (Slack Connect), in a turn the owner started, once the owner allows it;
|
|
105914
|
+
--full-access lets them also invite others and manage the channel
|
|
105878
105915
|
laze slack profiles <slack:T:U>... Slack status, title and time zone of authors
|
|
105879
105916
|
laze slack bookmarks <channelId> a mirrored Slack channel's bookmarks
|
|
105880
105917
|
laze slack link <teamId> prints the link that links your own Slack
|
|
@@ -106027,6 +106064,17 @@ var post2 = async ({ context, args, client }) => {
|
|
|
106027
106064
|
context.out(`Posted as your owner: ${posted.messageId} in ${posted.channelId}
|
|
106028
106065
|
`);
|
|
106029
106066
|
};
|
|
106067
|
+
var connectInvite = async ({ context, args, client }) => {
|
|
106068
|
+
const email3 = wordAt9(args, 3);
|
|
106069
|
+
const invited = await client.post(SLACK_CONNECT_INVITE_PATH, {
|
|
106070
|
+
channelId: wordAt9(args, 2),
|
|
106071
|
+
email: email3,
|
|
106072
|
+
externalLimited: args.flags["full-access"] !== true
|
|
106073
|
+
});
|
|
106074
|
+
if (json5({ context, args, data: invited })) return;
|
|
106075
|
+
context.out(`Slack Connect invite sent to ${invited.email} (${invited.inviteId})
|
|
106076
|
+
`);
|
|
106077
|
+
};
|
|
106030
106078
|
var dm = async ({ context, args, client }) => {
|
|
106031
106079
|
const opened = await client.post(SLACK_KEY_PATHS.direct, {
|
|
106032
106080
|
teamId: wordAt9(args, 2),
|
|
@@ -106196,6 +106244,7 @@ var RUNS6 = {
|
|
|
106196
106244
|
bookmarks,
|
|
106197
106245
|
dm,
|
|
106198
106246
|
post: post2,
|
|
106247
|
+
"connect-invite": connectInvite,
|
|
106199
106248
|
link: authorizeRun2(SLACK_KEY_PATHS.link, "Open this link to link your Slack account", teamOf),
|
|
106200
106249
|
unlink: connectionRun2(SLACK_KEY_PATHS.unlink, teamOf),
|
|
106201
106250
|
install: authorizeRun2(
|
|
@@ -109003,10 +109052,10 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
|
|
|
109003
109052
|
laze groups rename <group> <name> | delete <group> rename one, or delete it and take back what it shared (admins)
|
|
109004
109053
|
laze groups add|remove <group> --person <member>.. change who is in it (admins)
|
|
109005
109054
|
laze channels list the conversations you are in, with your setting
|
|
109006
|
-
laze channel set <channel> everything|mentions what of a channel
|
|
109055
|
+
laze channel set <channel> everything|mentions what of a channel, shared conversation or agent chat (3+ members, by id) reaches your agent
|
|
109007
109056
|
laze channel mute <channel> --reason "<why>" [--for 30m|2h|1d] stop hearing a noisy channel or conversation unless named (agents)
|
|
109008
109057
|
laze channel unmute <channel> hear the channel or conversation on your setting again (agents)
|
|
109009
|
-
laze channel settings [<channel>] [--json] each channel
|
|
109058
|
+
laze channel settings [<channel>] [--json] the setting and mute in each channel, shared conversation and agent chat; a 1:1 DM and your own chat always reach you (agents)
|
|
109010
109059
|
laze monitor add <name> --channel '#x-*' --prompt '<what to do>' [--from anyone|people|slack] [--not-from bots] [--thread roots-only] [--matches '<re>'] a turn on each new matching message (agents)
|
|
109011
109060
|
laze monitor list | pause | resume | rm <name> [--json] the agent's monitors
|
|
109012
109061
|
laze channel members <channel> its people and agents, each an Admin or a Member
|
package/package.json
CHANGED