@lazehq/cli 0.1.115 → 0.1.117
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 +25 -13
- 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.117";
|
|
36964
36964
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
36965
36965
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
36966
36966
|
}
|
|
@@ -63829,6 +63829,12 @@ var openChatInputSchemaDefinition = external_exports.object({
|
|
|
63829
63829
|
name: external_exports.string().min(1).max(80),
|
|
63830
63830
|
runsOutside: external_exports.boolean().optional()
|
|
63831
63831
|
}),
|
|
63832
|
+
/** An agent that starts it for its person: in it from the start, beside the person. */
|
|
63833
|
+
starter: external_exports.object({
|
|
63834
|
+
id: idSchema4,
|
|
63835
|
+
name: external_exports.string().min(1).max(80),
|
|
63836
|
+
runsOutside: external_exports.boolean().optional()
|
|
63837
|
+
}).optional(),
|
|
63832
63838
|
/** The first message's client key: the conversation already started with it is answered again. */
|
|
63833
63839
|
startKey: external_exports.string().regex(/^[A-Za-z0-9_-]{8,64}$/).optional()
|
|
63834
63840
|
});
|
|
@@ -68059,12 +68065,12 @@ var NAMING_FREE_CLI_COMMANDS = [
|
|
|
68059
68065
|
"history"
|
|
68060
68066
|
];
|
|
68061
68067
|
var NAMING_IS_SILENT = "Naming or renaming a conversation is silent: never post a message about it.";
|
|
68062
|
-
function
|
|
68068
|
+
function namingReminderTextOf({ channelIds }) {
|
|
68063
68069
|
const lines2 = channelIds.map((id4) => ` laze conversation rename ${id4} "<a few words>"`);
|
|
68064
68070
|
return [
|
|
68065
|
-
"
|
|
68071
|
+
"Your new conversation has no name yet. Name it in a few words that say what it is about:",
|
|
68066
68072
|
...lines2,
|
|
68067
|
-
"(MCP: rename_conversation).
|
|
68073
|
+
"(MCP: rename_conversation).",
|
|
68068
68074
|
NAMING_IS_SILENT
|
|
68069
68075
|
].join("\n");
|
|
68070
68076
|
}
|
|
@@ -72342,7 +72348,7 @@ async function signedIn({
|
|
|
72342
72348
|
if (quiet && chosen.profile.refused) await askedAgain({ context, name: chosen.name, client });
|
|
72343
72349
|
if (chosen.profile.kind !== "agent")
|
|
72344
72350
|
return { name: chosen.name, profile: chosen.profile, client };
|
|
72345
|
-
await
|
|
72351
|
+
await namingReminder({ context, client, args });
|
|
72346
72352
|
if (!turn) {
|
|
72347
72353
|
const { name: name3, profile } = chosen;
|
|
72348
72354
|
await reportMachine({ context, profile: name3, token: profile.token, client });
|
|
@@ -72379,7 +72385,11 @@ var ALWAYS_FREE = [
|
|
|
72379
72385
|
"agent bind",
|
|
72380
72386
|
"agent migrate"
|
|
72381
72387
|
];
|
|
72382
|
-
async function
|
|
72388
|
+
async function namingReminder({
|
|
72389
|
+
context,
|
|
72390
|
+
client,
|
|
72391
|
+
args
|
|
72392
|
+
}) {
|
|
72383
72393
|
const [first = "", second = ""] = args.words;
|
|
72384
72394
|
const free = [...NAMING_FREE_CLI_COMMANDS, ...ALWAYS_FREE];
|
|
72385
72395
|
if (free.includes(first) || free.includes(`${first} ${second}`)) return;
|
|
@@ -72392,7 +72402,8 @@ async function namingFirst({ client, args }) {
|
|
|
72392
72402
|
return;
|
|
72393
72403
|
}
|
|
72394
72404
|
if (!Array.isArray(unnamed) || unnamed.length === 0) return;
|
|
72395
|
-
|
|
72405
|
+
context.err(`${namingReminderTextOf({ channelIds: unnamed.map((chat) => chat.id) })}
|
|
72406
|
+
`);
|
|
72396
72407
|
}
|
|
72397
72408
|
function serverUrlOf({ context, args }) {
|
|
72398
72409
|
return flagText({ args, name: "url" }) || context.environment.url || DEFAULT_LAZE_URL;
|
|
@@ -78168,9 +78179,9 @@ without a recap; the person's DM already shows your messages elsewhere.
|
|
|
78168
78179
|
to reply) posts there as them, from their own Slack account, in a turn they started; it can
|
|
78169
78180
|
wait for their OK. Post as them only a message they told you to send.
|
|
78170
78181
|
- \`laze channels list\` lists the conversations you are in.
|
|
78171
|
-
- \`laze conversation new <agent> "text"\` starts a conversation
|
|
78172
|
-
|
|
78173
|
-
and \`laze channel add <channel> <member>\` does the same for a channel. \`laze invite\` is only
|
|
78182
|
+
- \`laze conversation new <agent> "text"\` starts a conversation for your person, with you in
|
|
78183
|
+
it and your text posted as you; \`laze conversation add <id> <member>\` adds workspace members
|
|
78184
|
+
or agents to it, and \`laze channel add <channel> <member>\` does the same for a channel. \`laze invite\` is only
|
|
78174
78185
|
for people new to the workspace.
|
|
78175
78186
|
- \`laze agent update --self --name "<name>"\` renames you; \`--description <text>\` and
|
|
78176
78187
|
\`--avatar <file>\` change your description and face.
|
|
@@ -92670,8 +92681,9 @@ function stateOf2(chat) {
|
|
|
92670
92681
|
// src/services/conversation-commands.service.ts
|
|
92671
92682
|
var CONVERSATION_USAGE = `Usage:
|
|
92672
92683
|
laze conversation new <agent> <text|-> start a conversation with an agent; an agent's key
|
|
92673
|
-
[--about <message id>] starts it for its person
|
|
92674
|
-
|
|
92684
|
+
[--about <message id>] starts it for its person, is in it and posts the
|
|
92685
|
+
text as itself. --about continues from a message:
|
|
92686
|
+
the first one quotes it
|
|
92675
92687
|
laze conversation add <id> <member>... add workspace members or agents (by email, name or
|
|
92676
92688
|
id); laze invite is only for people new to it
|
|
92677
92689
|
laze conversation remove <id> <member> take a member out (whoever started it, or an Admin)
|
|
@@ -104630,7 +104642,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
|
|
|
104630
104642
|
laze emoji list | add <name> <file> [--alias <a,b>] | alias <alias> <name> | remove <name> the workspace's custom emoji
|
|
104631
104643
|
laze status set <emoji> [text] [--for 30m|1h|4h|today|week|never] your status next to your name (people)
|
|
104632
104644
|
laze status clear | away | active clear it, or set yourself away by hand until active
|
|
104633
|
-
laze conversation new <agent> <text|-> [--about <message id>] start a conversation with an agent; it names it (an agent's key starts it for its person)
|
|
104645
|
+
laze conversation new <agent> <text|-> [--about <message id>] start a conversation with an agent; it names it (an agent's key starts it for its person, with itself in it, and posts the text as itself)
|
|
104634
104646
|
laze conversation add <id> <member>... add workspace members or agents to a conversation, as to a channel
|
|
104635
104647
|
laze conversation remove <id> <member> take a member out of a conversation (whoever started it, or an Admin)
|
|
104636
104648
|
laze conversation list [--agent <agent>] [--unnamed] your conversations with agents
|
package/package.json
CHANGED