@lazehq/cli 0.1.50 → 0.1.51
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 +47 -15
- package/package.json +1 -1
package/dist/laze.mjs
CHANGED
|
@@ -35775,7 +35775,7 @@ function flagText({
|
|
|
35775
35775
|
}
|
|
35776
35776
|
|
|
35777
35777
|
// src/rules/cli-version.rules.ts
|
|
35778
|
-
var STAMPED = "0.1.
|
|
35778
|
+
var STAMPED = "0.1.51";
|
|
35779
35779
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
35780
35780
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
35781
35781
|
}
|
|
@@ -58183,6 +58183,7 @@ var NOTICE_DETAILS_MAX = 2e3;
|
|
|
58183
58183
|
var workspaceIdSchema = external_exports.string().min(1);
|
|
58184
58184
|
var idSchema4 = external_exports.string().min(1).max(64);
|
|
58185
58185
|
var chatActorKindSchema = external_exports.enum(["person", "agent"]);
|
|
58186
|
+
var agentLimitCauseSchema = external_exports.enum(["usage", "budget"]);
|
|
58186
58187
|
var chatActorSchemaDefinition = external_exports.object({ kind: chatActorKindSchema, id: idSchema4 });
|
|
58187
58188
|
var chatActorSchema = chatActorSchemaDefinition;
|
|
58188
58189
|
var messageAuthorSchemaDefinition = external_exports.object({
|
|
@@ -58660,6 +58661,8 @@ var directoryEntrySchemaDefinition = external_exports.object({
|
|
|
58660
58661
|
email: external_exports.string().nullable(),
|
|
58661
58662
|
/** An agent out of usage until then; null for people and agents that can work. */
|
|
58662
58663
|
limitedUntil: external_exports.iso.datetime().nullable().default(null),
|
|
58664
|
+
/** Why the agent is limited while `limitedUntil` lasts; absent reads as "usage". */
|
|
58665
|
+
limitedBy: agentLimitCauseSchema.optional(),
|
|
58663
58666
|
/** An agent removed from the workspace, when and by whom; null while it is active. */
|
|
58664
58667
|
removedAt: external_exports.iso.datetime().nullable().default(null),
|
|
58665
58668
|
removedByName: external_exports.string().nullable().default(null),
|
|
@@ -59082,7 +59085,9 @@ var signalActivityInputSchemaDefinition = external_exports.object({
|
|
|
59082
59085
|
});
|
|
59083
59086
|
var setAgentLimitInputSchemaDefinition = external_exports.object({
|
|
59084
59087
|
workspaceId: workspaceIdSchema,
|
|
59085
|
-
limitedUntil: external_exports.iso.datetime().nullable()
|
|
59088
|
+
limitedUntil: external_exports.iso.datetime().nullable(),
|
|
59089
|
+
/** Why it is limited: its login or its budget. */
|
|
59090
|
+
limitedBy: agentLimitCauseSchema.default("usage")
|
|
59086
59091
|
});
|
|
59087
59092
|
var setAgentNameInputSchemaDefinition = external_exports.object({
|
|
59088
59093
|
workspaceId: workspaceIdSchema,
|
|
@@ -60534,7 +60539,9 @@ var realtimePublicationSchemaDefinition = external_exports.discriminatedUnion("t
|
|
|
60534
60539
|
type: external_exports.literal("agent_limit"),
|
|
60535
60540
|
workspaceId: external_exports.string(),
|
|
60536
60541
|
agentId: external_exports.string(),
|
|
60537
|
-
limitedUntil: external_exports.iso.datetime().nullable()
|
|
60542
|
+
limitedUntil: external_exports.iso.datetime().nullable(),
|
|
60543
|
+
/** Why it is limited; absent reads as "usage". */
|
|
60544
|
+
limitedBy: agentLimitCauseSchema.optional()
|
|
60538
60545
|
}),
|
|
60539
60546
|
/** An agent was removed from the workspace; its direct messages stay as history. */
|
|
60540
60547
|
external_exports.object({
|
|
@@ -61206,7 +61213,12 @@ var openVaultTurnInputSchemaDefinition = external_exports.object({
|
|
|
61206
61213
|
/** Everyone else's messages, oldest first: context for the judge, never permission. */
|
|
61207
61214
|
otherMessages: external_exports.array(external_exports.object({ sender: external_exports.string().min(1), text: external_exports.string() })).default([]),
|
|
61208
61215
|
/** A shorter life than the deployment's turn TTL, for a token made for one command. */
|
|
61209
|
-
ttlMinutes: external_exports.number().int().positive().optional()
|
|
61216
|
+
ttlMinutes: external_exports.number().int().positive().optional(),
|
|
61217
|
+
/**
|
|
61218
|
+
* The task an "Allow for this task" covers: left out, the turn is its own task; null asks for
|
|
61219
|
+
* each command; named, every turn opened for it shares one task, which `scope` describes.
|
|
61220
|
+
*/
|
|
61221
|
+
task: external_exports.object({ id: external_exports.string().min(1).max(200), scope: external_exports.string().max(300).nullable() }).nullable().optional()
|
|
61210
61222
|
});
|
|
61211
61223
|
var vaultAlwaysApprovalActionSchema = external_exports.enum([
|
|
61212
61224
|
"send_external",
|
|
@@ -61668,7 +61680,9 @@ var vaultApprovalRequestedPayloadSchemaDefinition = external_exports.object({
|
|
|
61668
61680
|
/** For a send, the message it would send, read from the provider. */
|
|
61669
61681
|
draft: vaultDraftPreviewSchema.nullable().default(null),
|
|
61670
61682
|
/** Allow covers the rest of the agent's turn ("Allow for this task"), not one command. */
|
|
61671
|
-
coversTask: external_exports.boolean().optional()
|
|
61683
|
+
coversTask: external_exports.boolean().optional(),
|
|
61684
|
+
/** What a task card's Allow covers when it is wider than one turn: "this session of ...". */
|
|
61685
|
+
taskScope: external_exports.string().nullable().optional()
|
|
61672
61686
|
});
|
|
61673
61687
|
var vaultApprovalResolvedPayloadSchemaDefinition = external_exports.object({
|
|
61674
61688
|
workspaceId: external_exports.string().min(1),
|
|
@@ -65330,6 +65344,8 @@ var agentSchemaDefinition = external_exports.object({
|
|
|
65330
65344
|
github: agentGithubSchema.nullable().default(null),
|
|
65331
65345
|
/** Out of usage (its login or its Laze models budget) until this time; null when it can work. */
|
|
65332
65346
|
limitedUntil: external_exports.iso.datetime().nullable().default(null),
|
|
65347
|
+
/** Why it is limited: "usage" (its login; also when absent) or "budget" (Laze models). */
|
|
65348
|
+
limitedBy: agentLimitCauseSchema.optional(),
|
|
65333
65349
|
/** Paused by a person since this time: it does not wake until resumed; null when it runs. */
|
|
65334
65350
|
pausedAt: external_exports.iso.datetime().nullable().default(null),
|
|
65335
65351
|
/** Who paused it and the reason they gave; null when it runs or no reason was given. */
|
|
@@ -65631,7 +65647,9 @@ var postedMessageSchemaDefinition = external_exports.object({
|
|
|
65631
65647
|
name: external_exports.string(),
|
|
65632
65648
|
cause: external_exports.enum(["paused", "out_of_usage"]),
|
|
65633
65649
|
/** When an agent out of usage gets its usage back; null while paused. */
|
|
65634
|
-
until: external_exports.iso.datetime().nullable()
|
|
65650
|
+
until: external_exports.iso.datetime().nullable(),
|
|
65651
|
+
/** Why an agent out of usage is limited: its login or budget; absent reads as "usage". */
|
|
65652
|
+
limitedBy: agentLimitCauseSchema.optional()
|
|
65635
65653
|
})
|
|
65636
65654
|
).default([])
|
|
65637
65655
|
});
|
|
@@ -66852,7 +66870,8 @@ function howItRunsOf({ agent: agent2, owner }) {
|
|
|
66852
66870
|
function statusOf({ agent: agent2 }) {
|
|
66853
66871
|
if (agent2.pausedAt) return `Paused since ${agent2.pausedAt.slice(0, 16).replace("T", " ")} UTC`;
|
|
66854
66872
|
if (agent2.limitedUntil) {
|
|
66855
|
-
|
|
66873
|
+
const until = `${agent2.limitedUntil.slice(0, 16).replace("T", " ")} UTC`;
|
|
66874
|
+
return agent2.limitedBy === "budget" ? `At its budget until ${until}` : `Out of usage until ${until}`;
|
|
66856
66875
|
}
|
|
66857
66876
|
if (agent2.status === "disconnected") return "Disconnected";
|
|
66858
66877
|
return agent2.online ? "Working" : "Ready";
|
|
@@ -67834,11 +67853,13 @@ function notInChannelLineOf({
|
|
|
67834
67853
|
`;
|
|
67835
67854
|
}
|
|
67836
67855
|
function waitsForLinesOf({ posted }) {
|
|
67837
|
-
return (posted.waitsFor ?? []).map(
|
|
67838
|
-
(
|
|
67839
|
-
|
|
67840
|
-
|
|
67841
|
-
|
|
67856
|
+
return (posted.waitsFor ?? []).map(({ name: name3, cause, until, limitedBy }) => {
|
|
67857
|
+
if (cause === "paused") return `${name3} is paused; your message waits until it is resumed.
|
|
67858
|
+
`;
|
|
67859
|
+
const state = limitedBy === "budget" ? "at its budget" : "out of usage";
|
|
67860
|
+
return `${name3} is ${state} until ${until}; your message waits for it.
|
|
67861
|
+
`;
|
|
67862
|
+
}).join("");
|
|
67842
67863
|
}
|
|
67843
67864
|
|
|
67844
67865
|
// src/rules/search-format.rules.ts
|
|
@@ -73917,7 +73938,9 @@ var appPinSchemaDefinition = external_exports.object({
|
|
|
73917
73938
|
/** Set for a browser tab, null for an app. */
|
|
73918
73939
|
browser: browserPinSchemaDefinition.nullable(),
|
|
73919
73940
|
/** Whether the reader may unpin it; a browser tab only its owner, their agents or an Admin. */
|
|
73920
|
-
canUnpin: external_exports.boolean().default(true)
|
|
73941
|
+
canUnpin: external_exports.boolean().default(true),
|
|
73942
|
+
/** The app's own origin, so links to it open in the panel; null for a browser tab. */
|
|
73943
|
+
url: external_exports.string().nullable().default(null)
|
|
73921
73944
|
});
|
|
73922
73945
|
var appPinViewSchemaDefinition = external_exports.object({
|
|
73923
73946
|
activeAppId: external_exports.string().nullable(),
|
|
@@ -74442,6 +74465,7 @@ var AppNavSlot = appUi.component("nav");
|
|
|
74442
74465
|
var AppPanelSlot = appUi.component("panel");
|
|
74443
74466
|
var AppCardSlot = appUi.component("card");
|
|
74444
74467
|
var AppPinStripSlot = appUi.component("pin-strip");
|
|
74468
|
+
var AppLinkHooksToken = appUi.hooks("links");
|
|
74445
74469
|
var AppPinListSlot = appUi.component("pin-list");
|
|
74446
74470
|
|
|
74447
74471
|
// ../../modules/app/contract/src/app.config.ts
|
|
@@ -77047,7 +77071,11 @@ async function keyRelease({
|
|
|
77047
77071
|
);
|
|
77048
77072
|
const signed2 = await signedIn({ context, args }).catch(() => null);
|
|
77049
77073
|
if (signed2?.profile.kind !== "agent") throw where;
|
|
77050
|
-
const {
|
|
77074
|
+
const { name: name3 } = signed2;
|
|
77075
|
+
const client = forSession({
|
|
77076
|
+
client: signed2.client,
|
|
77077
|
+
session: await currentSessionOf({ context, args })
|
|
77078
|
+
});
|
|
77051
77079
|
const channelId = flagText({ args, name: "channel" }) || null;
|
|
77052
77080
|
const keyPath = runKeyPathOf({ turnFile: void 0, connection, profile: name3 });
|
|
77053
77081
|
const run4 = await runKeyAt({ path: keyPath });
|
|
@@ -86778,7 +86806,11 @@ async function doorOf({
|
|
|
86778
86806
|
}
|
|
86779
86807
|
const signed2 = await signedIn({ context, args }).catch(() => null);
|
|
86780
86808
|
if (signed2?.profile.kind !== "agent") throw new CliUsageError(WHERE);
|
|
86781
|
-
const {
|
|
86809
|
+
const { name: name3 } = signed2;
|
|
86810
|
+
const client = forSession({
|
|
86811
|
+
client: signed2.client,
|
|
86812
|
+
session: await currentSessionOf({ context, args })
|
|
86813
|
+
});
|
|
86782
86814
|
const channelId = flagText({ args, name: "channel" }) || null;
|
|
86783
86815
|
return {
|
|
86784
86816
|
keyPath: runKeyPathOf({ turnFile: void 0, connection: keyName, profile: name3 }),
|
package/package.json
CHANGED