@lazehq/cli 0.1.111 → 0.1.113

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.
Files changed (2) hide show
  1. package/dist/laze.mjs +673 -311
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -832,11 +832,11 @@ var require_node_gyp_build = __commonJS({
832
832
  var libc = process.env.LIBC || (isAlpine(platform) ? "musl" : "glibc");
833
833
  var armv = process.env.ARM_VERSION || (arch === "arm64" ? "8" : vars.arm_version) || "";
834
834
  var uv = (process.versions.uv || "").split(".")[0];
835
- module.exports = load;
836
- function load(dir) {
837
- return runtimeRequire(load.resolve(dir));
835
+ module.exports = load2;
836
+ function load2(dir) {
837
+ return runtimeRequire(load2.resolve(dir));
838
838
  }
839
- load.resolve = load.path = function(dir) {
839
+ load2.resolve = load2.path = function(dir) {
840
840
  dir = path.resolve(dir || ".");
841
841
  try {
842
842
  var name3 = runtimeRequire(path.join(dir, "package.json")).name.toUpperCase().replace(/-/g, "_");
@@ -976,12 +976,12 @@ var require_node_gyp_build = __commonJS({
976
976
  function isAlpine(platform2) {
977
977
  return platform2 === "linux" && fs.existsSync("/etc/alpine-release");
978
978
  }
979
- load.parseTags = parseTags;
980
- load.matchTags = matchTags;
981
- load.compareTags = compareTags;
982
- load.parseTuple = parseTuple;
983
- load.matchTuple = matchTuple;
984
- load.compareTuples = compareTuples;
979
+ load2.parseTags = parseTags;
980
+ load2.matchTags = matchTags;
981
+ load2.compareTags = compareTags;
982
+ load2.parseTuple = parseTuple;
983
+ load2.matchTuple = matchTuple;
984
+ load2.compareTuples = compareTuples;
985
985
  }
986
986
  });
987
987
 
@@ -7512,14 +7512,14 @@ var require_connect = __commonJS({
7512
7512
  port,
7513
7513
  host: hostname8
7514
7514
  };
7515
- const family = net.isIP(hostname8);
7516
- if (family !== 0 && servername && servername !== hostname8) {
7515
+ const family2 = net.isIP(hostname8);
7516
+ if (family2 !== 0 && servername && servername !== hostname8) {
7517
7517
  connectOptions.host = servername;
7518
7518
  connectOptions.lookup = (_hostname, lookupOptions, cb) => {
7519
7519
  if (lookupOptions.all) {
7520
- cb(null, [{ address: hostname8, family }]);
7520
+ cb(null, [{ address: hostname8, family: family2 }]);
7521
7521
  } else {
7522
- cb(null, hostname8, family);
7522
+ cb(null, hostname8, family2);
7523
7523
  }
7524
7524
  };
7525
7525
  }
@@ -11254,7 +11254,7 @@ var require_client_h1 = __commonJS({
11254
11254
  * @param {number} len
11255
11255
  * @returns {number}
11256
11256
  */
11257
- wasm_on_url: (p, at2, len) => {
11257
+ wasm_on_url: (p, at4, len) => {
11258
11258
  return 0;
11259
11259
  },
11260
11260
  /**
@@ -11263,9 +11263,9 @@ var require_client_h1 = __commonJS({
11263
11263
  * @param {number} len
11264
11264
  * @returns {number}
11265
11265
  */
11266
- wasm_on_status: (p, at2, len) => {
11266
+ wasm_on_status: (p, at4, len) => {
11267
11267
  assert2(currentParser.ptr === p);
11268
- const start2 = at2 - currentBufferPtr + currentBufferRef.byteOffset;
11268
+ const start2 = at4 - currentBufferPtr + currentBufferRef.byteOffset;
11269
11269
  return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start2, len));
11270
11270
  },
11271
11271
  /**
@@ -11282,9 +11282,9 @@ var require_client_h1 = __commonJS({
11282
11282
  * @param {number} len
11283
11283
  * @returns {number}
11284
11284
  */
11285
- wasm_on_header_field: (p, at2, len) => {
11285
+ wasm_on_header_field: (p, at4, len) => {
11286
11286
  assert2(currentParser.ptr === p);
11287
- const start2 = at2 - currentBufferPtr + currentBufferRef.byteOffset;
11287
+ const start2 = at4 - currentBufferPtr + currentBufferRef.byteOffset;
11288
11288
  return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start2, len));
11289
11289
  },
11290
11290
  /**
@@ -11293,9 +11293,9 @@ var require_client_h1 = __commonJS({
11293
11293
  * @param {number} len
11294
11294
  * @returns {number}
11295
11295
  */
11296
- wasm_on_header_value: (p, at2, len) => {
11296
+ wasm_on_header_value: (p, at4, len) => {
11297
11297
  assert2(currentParser.ptr === p);
11298
- const start2 = at2 - currentBufferPtr + currentBufferRef.byteOffset;
11298
+ const start2 = at4 - currentBufferPtr + currentBufferRef.byteOffset;
11299
11299
  return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start2, len));
11300
11300
  },
11301
11301
  /**
@@ -11315,9 +11315,9 @@ var require_client_h1 = __commonJS({
11315
11315
  * @param {number} len
11316
11316
  * @returns {number}
11317
11317
  */
11318
- wasm_on_body: (p, at2, len) => {
11318
+ wasm_on_body: (p, at4, len) => {
11319
11319
  assert2(currentParser.ptr === p);
11320
- const start2 = at2 - currentBufferPtr + currentBufferRef.byteOffset;
11320
+ const start2 = at4 - currentBufferPtr + currentBufferRef.byteOffset;
11321
11321
  return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start2, len));
11322
11322
  },
11323
11323
  /**
@@ -20885,7 +20885,7 @@ var require_dns = __commonJS({
20885
20885
  #defaultPick(origin, hostnameRecords, affinity) {
20886
20886
  let ip2 = null;
20887
20887
  const { records, offset } = hostnameRecords;
20888
- let family;
20888
+ let family2;
20889
20889
  if (this.dualStack) {
20890
20890
  if (affinity == null) {
20891
20891
  if (offset == null || offset === maxInt) {
@@ -20897,28 +20897,28 @@ var require_dns = __commonJS({
20897
20897
  }
20898
20898
  }
20899
20899
  if (records[affinity] != null && records[affinity].ips.length > 0) {
20900
- family = records[affinity];
20900
+ family2 = records[affinity];
20901
20901
  } else {
20902
- family = records[affinity === 4 ? 6 : 4];
20902
+ family2 = records[affinity === 4 ? 6 : 4];
20903
20903
  }
20904
20904
  } else {
20905
- family = records[affinity];
20905
+ family2 = records[affinity];
20906
20906
  }
20907
- if (family == null || family.ips.length === 0) {
20907
+ if (family2 == null || family2.ips.length === 0) {
20908
20908
  return ip2;
20909
20909
  }
20910
- if (family.offset == null || family.offset === maxInt) {
20911
- family.offset = 0;
20910
+ if (family2.offset == null || family2.offset === maxInt) {
20911
+ family2.offset = 0;
20912
20912
  } else {
20913
- family.offset++;
20913
+ family2.offset++;
20914
20914
  }
20915
- const position = family.offset % family.ips.length;
20916
- ip2 = family.ips[position] ?? null;
20915
+ const position = family2.offset % family2.ips.length;
20916
+ ip2 = family2.ips[position] ?? null;
20917
20917
  if (ip2 == null) {
20918
20918
  return ip2;
20919
20919
  }
20920
20920
  if (Date.now() - ip2.timestamp > ip2.ttl) {
20921
- family.ips.splice(position, 1);
20921
+ family2.ips.splice(position, 1);
20922
20922
  return this.pick(origin, hostnameRecords, affinity);
20923
20923
  }
20924
20924
  return ip2;
@@ -20928,22 +20928,22 @@ var require_dns = __commonJS({
20928
20928
  if (!records) {
20929
20929
  return null;
20930
20930
  }
20931
- const family = records[ipFamily];
20932
- if (!family) {
20931
+ const family2 = records[ipFamily];
20932
+ if (!family2) {
20933
20933
  return null;
20934
20934
  }
20935
- if (family.offset == null || family.offset === maxInt) {
20936
- family.offset = 0;
20935
+ if (family2.offset == null || family2.offset === maxInt) {
20936
+ family2.offset = 0;
20937
20937
  } else {
20938
- family.offset++;
20938
+ family2.offset++;
20939
20939
  }
20940
- const position = family.offset % family.ips.length;
20941
- const ip2 = family.ips[position] ?? null;
20940
+ const position = family2.offset % family2.ips.length;
20941
+ const ip2 = family2.ips[position] ?? null;
20942
20942
  if (ip2 == null) {
20943
20943
  return ip2;
20944
20944
  }
20945
20945
  if (Date.now() - ip2.timestamp > ip2.ttl) {
20946
- family.ips.splice(position, 1);
20946
+ family2.ips.splice(position, 1);
20947
20947
  }
20948
20948
  return ip2;
20949
20949
  }
@@ -31077,15 +31077,15 @@ ${value}`;
31077
31077
  pos = 0;
31078
31078
  }
31079
31079
  }
31080
- discardLeadingBytes(count8) {
31081
- while (count8 > 0 && this.lineChunkIndex < this.chunks.length) {
31080
+ discardLeadingBytes(count10) {
31081
+ while (count10 > 0 && this.lineChunkIndex < this.chunks.length) {
31082
31082
  const chunk = this.chunks[this.lineChunkIndex];
31083
31083
  const remaining = chunk.length - this.linePos;
31084
- if (count8 < remaining) {
31085
- this.linePos += count8;
31086
- count8 = 0;
31084
+ if (count10 < remaining) {
31085
+ this.linePos += count10;
31086
+ count10 = 0;
31087
31087
  } else {
31088
- count8 -= remaining;
31088
+ count10 -= remaining;
31089
31089
  this.lineChunkIndex++;
31090
31090
  this.linePos = 0;
31091
31091
  }
@@ -31723,15 +31723,15 @@ function pairsIn({
31723
31723
  end,
31724
31724
  out
31725
31725
  }) {
31726
- let at2 = start2;
31727
- while (at2 < end) {
31728
- const next = text3.indexOf("&", at2);
31726
+ let at4 = start2;
31727
+ while (at4 < end) {
31728
+ const next = text3.indexOf("&", at4);
31729
31729
  const stop3 = next === -1 || next > end ? end : next;
31730
- const pair = text3.slice(at2, stop3);
31730
+ const pair = text3.slice(at4, stop3);
31731
31731
  const equals = pair.indexOf("=");
31732
- if (equals === -1) out.push({ start: at2, end: stop3, name: "" });
31733
- else out.push({ start: at2 + equals + 1, end: stop3, name: pair.slice(0, equals) });
31734
- at2 = stop3 + 1;
31732
+ if (equals === -1) out.push({ start: at4, end: stop3, name: "" });
31733
+ else out.push({ start: at4 + equals + 1, end: stop3, name: pair.slice(0, equals) });
31734
+ at4 = stop3 + 1;
31735
31735
  }
31736
31736
  }
31737
31737
  function segmentsIn({
@@ -31789,8 +31789,8 @@ function isRecordIdValue(value) {
31789
31789
  const prefix = RECORD_ID.exec(value)?.[1];
31790
31790
  return prefix !== void 0 && !CREDENTIAL_ID_PREFIXES.has(prefix);
31791
31791
  }
31792
- function isPlainRecordId({ text: text3, at: at2 }) {
31793
- return !isSecretParameterName(at2.name) && isRecordIdValue(text3.slice(at2.start, at2.end));
31792
+ function isPlainRecordId({ text: text3, at: at4 }) {
31793
+ return !isSecretParameterName(at4.name) && isRecordIdValue(text3.slice(at4.start, at4.end));
31794
31794
  }
31795
31795
  function isSecretParameterValue(value) {
31796
31796
  if (value.length < 8) return false;
@@ -31834,8 +31834,8 @@ function shannonEntropyBits(value) {
31834
31834
  const counts = /* @__PURE__ */ new Map();
31835
31835
  for (const char of sample) counts.set(char, (counts.get(char) ?? 0) + 1);
31836
31836
  let entropy = 0;
31837
- for (const count8 of counts.values()) {
31838
- const p = count8 / sample.length;
31837
+ for (const count10 of counts.values()) {
31838
+ const p = count10 / sample.length;
31839
31839
  entropy -= p * Math.log2(p);
31840
31840
  }
31841
31841
  return entropy;
@@ -32086,8 +32086,8 @@ var SECRET_RULE_IDS = [
32086
32086
  URL_PARAMETER_RULE_ID
32087
32087
  ];
32088
32088
  function keptLengthAtBoundary(match) {
32089
- const at2 = match.search(/["'`]/);
32090
- return at2 === -1 ? match.length : at2;
32089
+ const at4 = match.search(/["'`]/);
32090
+ return at4 === -1 ? match.length : at4;
32091
32091
  }
32092
32092
  function valueSpan(rule, match) {
32093
32093
  const fullStart = match.index ?? 0;
@@ -32396,41 +32396,41 @@ var FILE_EXTENSION = /^\.[A-Za-z][A-Za-z0-9]{0,7}$/;
32396
32396
  function isPathShapeMatch({
32397
32397
  text: text3,
32398
32398
  match,
32399
- at: at2
32399
+ at: at4
32400
32400
  }) {
32401
- if (match.end > at2.end) {
32401
+ if (match.end > at4.end) {
32402
32402
  const rule = RULES.find((candidate) => candidate.id === match.ruleId);
32403
- return !rule || rawMatches(rule, text3.slice(at2.start, at2.end)).length === 0;
32403
+ return !rule || rawMatches(rule, text3.slice(at4.start, at4.end)).length === 0;
32404
32404
  }
32405
- return FILE_EXTENSION.test(text3.slice(match.end, at2.end));
32405
+ return FILE_EXTENSION.test(text3.slice(match.end, at4.end));
32406
32406
  }
32407
32407
  function placedInLink({
32408
32408
  text: text3,
32409
32409
  match,
32410
32410
  urlValues
32411
32411
  }) {
32412
- const at2 = urlValueAt({ values: urlValues, offset: match.start });
32413
- if (!at2) return [match];
32412
+ const at4 = urlValueAt({ values: urlValues, offset: match.start });
32413
+ if (!at4) return [match];
32414
32414
  const shape = SHAPE_RULE_IDS.has(match.ruleId);
32415
- if (shape && isPlainRecordId({ text: text3, at: at2 })) return [];
32416
- if (shape && !isSecretParameterName(at2.name) && isPathShapeMatch({ text: text3, match, at: at2 })) return [];
32417
- const secretName = isSecretParameterName(at2.name);
32418
- const named = secretName && shape ? { parameter: at2.name } : {};
32415
+ if (shape && isPlainRecordId({ text: text3, at: at4 })) return [];
32416
+ if (shape && !isSecretParameterName(at4.name) && isPathShapeMatch({ text: text3, match, at: at4 })) return [];
32417
+ const secretName = isSecretParameterName(at4.name);
32418
+ const named = secretName && shape ? { parameter: at4.name } : {};
32419
32419
  return [
32420
- { ...match, ...named, spanStart: at2.start, start: at2.start, end: at2.end, spanEnd: at2.end }
32420
+ { ...match, ...named, spanStart: at4.start, start: at4.start, end: at4.end, spanEnd: at4.end }
32421
32421
  ];
32422
32422
  }
32423
32423
  function secretParameterValues({
32424
32424
  text: text3,
32425
32425
  urlValues
32426
32426
  }) {
32427
- return urlValues.filter((at2) => isSecretParameterName(at2.name)).filter((at2) => isSecretParameterValue(text3.slice(at2.start, at2.end))).map((at2) => ({
32427
+ return urlValues.filter((at4) => isSecretParameterName(at4.name)).filter((at4) => isSecretParameterValue(text3.slice(at4.start, at4.end))).map((at4) => ({
32428
32428
  ruleId: URL_PARAMETER_RULE_ID,
32429
- spanStart: at2.start,
32430
- start: at2.start,
32431
- end: at2.end,
32432
- spanEnd: at2.end,
32433
- parameter: at2.name
32429
+ spanStart: at4.start,
32430
+ start: at4.start,
32431
+ end: at4.end,
32432
+ spanEnd: at4.end,
32433
+ parameter: at4.name
32434
32434
  }));
32435
32435
  }
32436
32436
  function withExtension({ text: text3, match }) {
@@ -32653,17 +32653,17 @@ function createRedactor({ values }) {
32653
32653
  let carry = "";
32654
32654
  const scan = (text3, limit) => {
32655
32655
  let out = "";
32656
- let at2 = 0;
32656
+ let at4 = 0;
32657
32657
  pattern.lastIndex = 0;
32658
32658
  for (const match of text3.matchAll(pattern)) {
32659
32659
  if (match.index >= limit) break;
32660
- if (match.index < at2) continue;
32661
- out += text3.slice(at2, match.index) + REDACTED;
32662
- at2 = match.index + match[0].length;
32660
+ if (match.index < at4) continue;
32661
+ out += text3.slice(at4, match.index) + REDACTED;
32662
+ at4 = match.index + match[0].length;
32663
32663
  }
32664
- const emitUntil = Math.max(at2, limit);
32664
+ const emitUntil = Math.max(at4, limit);
32665
32665
  carry = text3.slice(emitUntil);
32666
- return out + text3.slice(at2, emitUntil);
32666
+ return out + text3.slice(at4, emitUntil);
32667
32667
  };
32668
32668
  return {
32669
32669
  push(chunk) {
@@ -36522,14 +36522,14 @@ var registry = /* @__PURE__ */ new Map();
36522
36522
  function defineMessages({
36523
36523
  namespace,
36524
36524
  en: en2,
36525
- load
36525
+ load: load2
36526
36526
  }) {
36527
36527
  const messages = {
36528
36528
  namespace,
36529
36529
  en: en2,
36530
36530
  load: async (locale) => {
36531
36531
  if (locale === DEFAULT_LOCALE) return {};
36532
- const loaded = await load(locale).catch(() => ({}));
36532
+ const loaded = await load2(locale).catch(() => ({}));
36533
36533
  return translationsOf(loaded);
36534
36534
  }
36535
36535
  };
@@ -36960,7 +36960,7 @@ function shadowedLinkLineOf({ shadow }) {
36960
36960
  }
36961
36961
 
36962
36962
  // src/rules/cli-version.rules.ts
36963
- var STAMPED = "0.1.111";
36963
+ var STAMPED = "0.1.113";
36964
36964
  function cliVersionOf({ stamped = STAMPED } = {}) {
36965
36965
  return stamped.startsWith("__") ? "dev" : stamped;
36966
36966
  }
@@ -38725,14 +38725,14 @@ function codePointLength(str) {
38725
38725
  const units = str.length;
38726
38726
  if (!highSurrogate.test(str))
38727
38727
  return units;
38728
- let count8 = units;
38728
+ let count10 = units;
38729
38729
  for (let i = 0; i < units - 1; i++) {
38730
38730
  if ((str.charCodeAt(i) & 64512) === 55296 && (str.charCodeAt(i + 1) & 64512) === 56320) {
38731
- count8--;
38731
+ count10--;
38732
38732
  i++;
38733
38733
  }
38734
38734
  }
38735
- return count8;
38735
+ return count10;
38736
38736
  }
38737
38737
  function getLengthableOrigin(input2) {
38738
38738
  if (Array.isArray(input2))
@@ -43087,8 +43087,8 @@ function az_default() {
43087
43087
  }
43088
43088
 
43089
43089
  // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/be.js
43090
- function getBelarusianPlural(count8, one, few, many) {
43091
- const absCount = Math.abs(count8);
43090
+ function getBelarusianPlural(count10, one, few, many) {
43091
+ const absCount = Math.abs(count10);
43092
43092
  const lastDigit = absCount % 10;
43093
43093
  const lastTwoDigits = absCount % 100;
43094
43094
  if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
@@ -45735,8 +45735,8 @@ function hu_default() {
45735
45735
  }
45736
45736
 
45737
45737
  // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hy.js
45738
- function getArmenianPlural(count8, one, many) {
45739
- return Math.abs(count8) === 1 ? one : many;
45738
+ function getArmenianPlural(count10, one, many) {
45739
+ return Math.abs(count10) === 1 ? one : many;
45740
45740
  }
45741
45741
  function withDefiniteArticle(word3) {
45742
45742
  if (!word3)
@@ -48474,8 +48474,8 @@ function ro_default() {
48474
48474
  }
48475
48475
 
48476
48476
  // ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ru.js
48477
- function getRussianPlural(count8, one, few, many) {
48478
- const absCount = Math.abs(count8);
48477
+ function getRussianPlural(count10, one, few, many) {
48478
+ const absCount = Math.abs(count10);
48479
48479
  const lastDigit = absCount % 10;
48480
48480
  const lastTwoDigits = absCount % 100;
48481
48481
  if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
@@ -57370,6 +57370,11 @@ var AUTHZ_RESOURCES = {
57370
57370
  ownerKeys: {
57371
57371
  actions: ["use"],
57372
57372
  scopes: ["workspace"]
57373
+ },
57374
+ /** `manage`: change a running plan, auto-recharge, billing details and codes. */
57375
+ billing: {
57376
+ actions: ["manage"],
57377
+ scopes: ["workspace"]
57373
57378
  }
57374
57379
  };
57375
57380
  var AUTHZ_RESOURCE_NAMES = Object.keys(AUTHZ_RESOURCES);
@@ -61807,15 +61812,15 @@ function clustersIn({
61807
61812
  const out = [];
61808
61813
  let current3 = null;
61809
61814
  for (let index = segment.start; index <= segment.end; index += 1) {
61810
- const count8 = flagged[index] ?? 0;
61811
- if (count8 === 0) continue;
61815
+ const count10 = flagged[index] ?? 0;
61816
+ if (count10 === 0) continue;
61812
61817
  if (current3 && index - current3.end - 1 <= REDACTED_BLOCK_MAX_GAP) {
61813
61818
  current3.end = index;
61814
- current3.values += count8;
61819
+ current3.values += count10;
61815
61820
  continue;
61816
61821
  }
61817
61822
  if (current3) out.push(current3);
61818
- current3 = { start: index, end: index, values: count8 };
61823
+ current3 = { start: index, end: index, values: count10 };
61819
61824
  }
61820
61825
  if (current3) out.push(current3);
61821
61826
  return out;
@@ -61842,10 +61847,10 @@ function redactedBlocksAt({
61842
61847
  }) {
61843
61848
  const lines2 = text3.split("\n");
61844
61849
  const starts = [];
61845
- let at2 = 0;
61850
+ let at4 = 0;
61846
61851
  for (const line of lines2) {
61847
- starts.push(at2);
61848
- at2 += line.length + 1;
61852
+ starts.push(at4);
61853
+ at4 += line.length + 1;
61849
61854
  }
61850
61855
  const lineAt = (offset) => starts.findLastIndex((start2) => start2 <= offset);
61851
61856
  const flagged = lines2.map(() => 0);
@@ -61855,7 +61860,7 @@ function redactedBlocksAt({
61855
61860
  }
61856
61861
  const blocks = redactedBlocks({ lines: lines2, flagged });
61857
61862
  const inside = (line) => blocks.some((block2) => line >= block2.start && line <= block2.end);
61858
- const values = flagged.reduce((sum, count8, line) => inside(line) ? sum + count8 : sum, 0);
61863
+ const values = flagged.reduce((sum, count10, line) => inside(line) ? sum + count10 : sum, 0);
61859
61864
  return { values, insideAt: (offset) => inside(lineAt(offset)) };
61860
61865
  }
61861
61866
 
@@ -62333,6 +62338,39 @@ var vaultJudgeMeasureSchemaDefinition = external_exports.object({
62333
62338
  });
62334
62339
  var vaultJudgeMeasureSchema = vaultJudgeMeasureSchemaDefinition;
62335
62340
 
62341
+ // ../../modules/vault/contract/src/vault-ops-asks.ts
62342
+ var count3 = external_exports.number().int().nonnegative();
62343
+ var idText2 = external_exports.string().max(128);
62344
+ var codeText = external_exports.string().regex(/^[a-z][a-z0-9_.]{0,39}$/);
62345
+ var vaultOpsAskSchemaDefinition = external_exports.object({
62346
+ requestId: idText2,
62347
+ agentId: idText2,
62348
+ agentKind: vaultAgentKindSchema,
62349
+ channelId: idText2,
62350
+ connectionId: idText2.nullable(),
62351
+ action: codeText,
62352
+ whyCode: codeText,
62353
+ /** `withdrawn`: the asking turn ended first; `expired`: nobody answered in time. */
62354
+ state: external_exports.enum([...vaultApprovalStateSchema.options, "withdrawn"]),
62355
+ createdAt: external_exports.iso.datetime(),
62356
+ expiresAt: external_exports.iso.datetime(),
62357
+ answeredAt: external_exports.iso.datetime().nullable(),
62358
+ answeredVia: vaultAnswerViaSchema.nullable(),
62359
+ /** Who settled it: a person, the timeout, the turn ending, or another card's lease. */
62360
+ decider: external_exports.enum(["human", "timeout", "turn_ended", "lease"]).nullable(),
62361
+ joinCount: count3,
62362
+ turnId: idText2.nullable(),
62363
+ batchId: idText2.nullable(),
62364
+ /** The join key's first 8 hex: equal prefixes are asks that would join one card. */
62365
+ joinKeyPrefix: external_exports.string().regex(/^[0-9a-f]{0,8}$/),
62366
+ noteDeliveredAt: external_exports.iso.datetime().nullable(),
62367
+ consumedAt: external_exports.iso.datetime().nullable(),
62368
+ /** `sealed`: the value goes only to the asking run, encrypted to its key. */
62369
+ delivery: external_exports.enum(["sealed", "plain"])
62370
+ });
62371
+ var vaultOpsAskSchema = vaultOpsAskSchemaDefinition;
62372
+ var vaultOpsAsksSchemaDefinition = external_exports.object({ rows: external_exports.array(vaultOpsAskSchema), total: count3 });
62373
+
62336
62374
  // ../../modules/chat/contract/src/chat.close.ts
62337
62375
  var conversationOpenDaysSchemaDefinition = external_exports.union([external_exports.literal(7), external_exports.literal(14), external_exports.literal(30), external_exports.literal(90)]).nullable();
62338
62376
  var conversationOpenDaysSchema = conversationOpenDaysSchemaDefinition;
@@ -63821,6 +63859,11 @@ var agentChatMemberInputSchemaDefinition = external_exports.object({
63821
63859
  ownerUserId: idSchema4,
63822
63860
  userId: idSchema4
63823
63861
  });
63862
+ var agentChatGuestInputSchemaDefinition = external_exports.object({
63863
+ ...openAgentDirectInputSchemaDefinition.omit({ watcherUserIds: true, openerName: true }).shape,
63864
+ ownerUserId: idSchema4,
63865
+ guest: openAgentDirectInputSchemaDefinition.shape.agent
63866
+ });
63824
63867
  var handAgentChatInputSchemaDefinition = external_exports.object({
63825
63868
  workspaceId: workspaceIdSchema,
63826
63869
  agent: openAgentDirectInputSchemaDefinition.shape.agent,
@@ -64346,7 +64389,11 @@ var followThreadInputSchemaDefinition = external_exports.object({
64346
64389
  following: external_exports.boolean()
64347
64390
  });
64348
64391
  var followThreadInputSchema = followThreadInputSchemaDefinition;
64349
- var threadFollowSchemaDefinition = external_exports.object({ following: external_exports.boolean() });
64392
+ var threadFollowSchemaDefinition = external_exports.object({
64393
+ following: external_exports.boolean(),
64394
+ /** When the reader last read the thread; null when never, absent from older servers. */
64395
+ readAt: external_exports.iso.datetime().nullable().optional()
64396
+ });
64350
64397
  var threadFollowSchema = threadFollowSchemaDefinition;
64351
64398
  var followedThreadSchemaDefinition = external_exports.object({
64352
64399
  root: messageSchemaDefinition,
@@ -65426,7 +65473,11 @@ var heldPhonePushShape = {
65426
65473
  /** A message alert's sender, so a held alert still shows their picture. */
65427
65474
  sender: apnsSenderSchema.optional(),
65428
65475
  /** The sender's name sealed; sealed mode leaves `sender.name` empty. */
65429
- senderNameSealed: sealedNameSchema.optional()
65476
+ senderNameSealed: sealedNameSchema.optional(),
65477
+ /** When the push was first held; a hold carried on while the person stays active keeps it. */
65478
+ firstHeldAt: external_exports.iso.datetime().optional(),
65479
+ /** How many times the hold was carried on because the person was still active. */
65480
+ round: external_exports.number().int().min(1).optional()
65430
65481
  };
65431
65482
  var phonePushHeldPayloadSchemaDefinition = external_exports.object({
65432
65483
  workspaceId: external_exports.string().min(1),
@@ -65931,6 +65982,8 @@ var observeEditInputSchemaDefinition = external_exports.object({
65931
65982
  layout: messageLayoutSchema.nullable().optional(),
65932
65983
  rerendered: external_exports.boolean().default(false),
65933
65984
  renderHash: external_exports.string().max(200).nullable().default(null),
65985
+ /** The source's order of this render within `version`: a later one with a new look lands. */
65986
+ renderOrder: external_exports.number().int().min(0).optional(),
65934
65987
  /** The source says the message was never edited: an edited mark Laze gave it comes off. */
65935
65988
  neverEdited: external_exports.boolean().default(false),
65936
65989
  fileIds: external_exports.array(external_exports.string().min(1).max(64)).max(10).default([])
@@ -68390,7 +68443,9 @@ var mcpServerViewSchemaDefinition = external_exports.object({
68390
68443
  external_exports.object({ ...mcpToolSchemaDefinition.shape, sensitivity: vaultSensitivitySchema.nullable() })
68391
68444
  ),
68392
68445
  refreshedAt: external_exports.iso.datetime(),
68393
- lastError: external_exports.string().nullable()
68446
+ lastError: external_exports.string().nullable(),
68447
+ /** The server site's own favicon through the logo route; none for a relayed server. */
68448
+ logoUrl: external_exports.string().nullable().optional()
68394
68449
  });
68395
68450
  var mcpServerViewSchema = mcpServerViewSchemaDefinition;
68396
68451
  var addedMcpServerSchemaDefinition = external_exports.discriminatedUnion("outcome", [
@@ -69316,10 +69371,71 @@ var agentLimitsClearedPayloadSchemaDefinition = external_exports.object({
69316
69371
  at: external_exports.iso.datetime()
69317
69372
  });
69318
69373
 
69374
+ // ../../modules/agent/contract/src/sign-in-attempts.ts
69375
+ var signInAttemptStepSchema = external_exports.enum([
69376
+ "started",
69377
+ "code_submitted",
69378
+ "accepted",
69379
+ "saved",
69380
+ "refused",
69381
+ "ended_without_code"
69382
+ ]);
69383
+ var signInAttemptReasonSchemaDefinition = external_exports.union([
69384
+ external_exports.enum([
69385
+ "code_refused",
69386
+ "code_expired",
69387
+ "invalid_request",
69388
+ "verifier_mismatch",
69389
+ "not_eligible",
69390
+ "rate_limited",
69391
+ "not_this_sign_in",
69392
+ "unreachable",
69393
+ "unavailable",
69394
+ "expired",
69395
+ "denied",
69396
+ "not_signed_in"
69397
+ ]),
69398
+ external_exports.string().regex(/^unknown_\d{1,3}$/)
69399
+ ]);
69400
+ var signInAttemptReasonSchema = signInAttemptReasonSchemaDefinition;
69401
+ var providerErrorSchema = external_exports.string().regex(/^(?:[a-z_]{1,40})$/);
69402
+ var signInAttemptSourceSchema = external_exports.enum(["computer", "server"]);
69403
+ var signInAttemptIdSchema = external_exports.string().regex(/^[A-Za-z0-9_-]{8,40}$/);
69404
+ var harnessSchema2 = external_exports.enum(["claude-code", "codex"]);
69405
+ var signInAttemptFactDefinition = external_exports.object({
69406
+ workspaceId: external_exports.string().min(1),
69407
+ userId: external_exports.string().min(1),
69408
+ harness: harnessSchema2,
69409
+ source: signInAttemptSourceSchema,
69410
+ attemptId: signInAttemptIdSchema,
69411
+ step: signInAttemptStepSchema,
69412
+ reason: signInAttemptReasonSchema.nullable(),
69413
+ providerError: providerErrorSchema.nullable()
69414
+ });
69415
+ var lastSignInTryDefinition = external_exports.discriminatedUnion("outcome", [
69416
+ external_exports.object({
69417
+ outcome: external_exports.literal("refused"),
69418
+ at: external_exports.iso.datetime(),
69419
+ reason: signInAttemptReasonSchema
69420
+ }),
69421
+ external_exports.object({ outcome: external_exports.literal("none") })
69422
+ ]);
69423
+ var signInAttemptViewSchemaDefinition = external_exports.object({
69424
+ attemptId: signInAttemptIdSchema,
69425
+ userId: external_exports.string(),
69426
+ harness: harnessSchema2,
69427
+ source: signInAttemptSourceSchema,
69428
+ step: signInAttemptStepSchema,
69429
+ reason: signInAttemptReasonSchema.nullable(),
69430
+ providerError: providerErrorSchema.nullable(),
69431
+ at: external_exports.iso.datetime()
69432
+ });
69433
+ var signInAttemptViewSchema = signInAttemptViewSchemaDefinition;
69434
+
69319
69435
  // ../../modules/agent/contract/src/agent-logins.ts
69320
69436
  var workspaceIdSchema9 = external_exports.string().min(1);
69321
69437
  var idSchema12 = external_exports.string().min(1).max(80);
69322
- var harnessSchema2 = external_exports.enum(["claude-code", "codex"]);
69438
+ var harnessSchema3 = external_exports.enum(["claude-code", "codex"]);
69323
69439
  var loginNameSchema = external_exports.string().max(200);
69324
69440
  var secretSchema = external_exports.string().max(2e4);
69325
69441
  var harnessSignInValueSchemaDefinition = external_exports.object({
@@ -69335,7 +69451,7 @@ var loginValueShape = {
69335
69451
  var harnessLoginEntrySchemaDefinition = external_exports.object({
69336
69452
  /** The vault connection id. */
69337
69453
  id: idSchema12,
69338
- harness: harnessSchema2,
69454
+ harness: harnessSchema3,
69339
69455
  name: external_exports.string(),
69340
69456
  /** `invalid` once its provider refused the token; `out_of_usage` until `limitedUntil`. */
69341
69457
  state: external_exports.enum(["ready", "out_of_usage", "invalid"]),
@@ -69359,7 +69475,7 @@ var harnessLoginListSchemaDefinition = external_exports.object({
69359
69475
  var harnessLoginListSchema = harnessLoginListSchemaDefinition;
69360
69476
  var addHarnessLoginInputSchemaDefinition = external_exports.object({
69361
69477
  workspaceId: workspaceIdSchema9,
69362
- harness: harnessSchema2,
69478
+ harness: harnessSchema3,
69363
69479
  name: loginNameSchema,
69364
69480
  ...loginValueShape
69365
69481
  });
@@ -69403,11 +69519,11 @@ var loginPoolSchemaDefinition = external_exports.object({
69403
69519
  groups: external_exports.array(external_exports.object({ id: idSchema12, name: external_exports.string() })).optional(),
69404
69520
  agents: external_exports.array(external_exports.object({ id: idSchema12, name: external_exports.string(), harness: external_exports.string() })),
69405
69521
  /** What its agents on Default run per harness; a harness left out has none set. */
69406
- defaultModels: external_exports.array(external_exports.object({ harness: harnessSchema2, model: external_exports.string(), name: external_exports.string() })).default([]),
69522
+ defaultModels: external_exports.array(external_exports.object({ harness: harnessSchema3, model: external_exports.string(), name: external_exports.string() })).default([]),
69407
69523
  /** The models the workspace's agents listed per harness, for the default model picker. */
69408
69524
  modelOptions: external_exports.array(
69409
69525
  external_exports.object({
69410
- harness: harnessSchema2,
69526
+ harness: harnessSchema3,
69411
69527
  models: external_exports.array(external_exports.object({ id: external_exports.string(), name: external_exports.string() }))
69412
69528
  })
69413
69529
  ).default([]),
@@ -69415,7 +69531,7 @@ var loginPoolSchemaDefinition = external_exports.object({
69415
69531
  external_exports.object({
69416
69532
  id: idSchema12,
69417
69533
  name: external_exports.string(),
69418
- harness: harnessSchema2,
69534
+ harness: harnessSchema3,
69419
69535
  contributedByUserId: idSchema12,
69420
69536
  contributedByName: external_exports.string(),
69421
69537
  /** Whether an agent runs on it now. */
@@ -69451,7 +69567,7 @@ var loginPoolRefInputSchema = loginPoolRefInputSchemaDefinition;
69451
69567
  var addPoolLoginInputSchemaDefinition = external_exports.object({
69452
69568
  workspaceId: workspaceIdSchema9,
69453
69569
  poolId: external_exports.string().min(1).max(200),
69454
- harness: harnessSchema2,
69570
+ harness: harnessSchema3,
69455
69571
  name: loginNameSchema,
69456
69572
  ...loginValueShape
69457
69573
  });
@@ -69492,7 +69608,7 @@ var setLoginPoolModelInputSchemaDefinition = external_exports.object({
69492
69608
  workspaceId: workspaceIdSchema9,
69493
69609
  /** The pool's id or, from the CLI, its name. */
69494
69610
  poolId: external_exports.string().min(1).max(200),
69495
- harness: harnessSchema2,
69611
+ harness: harnessSchema3,
69496
69612
  model: external_exports.string().trim().min(1).max(200).nullable()
69497
69613
  });
69498
69614
  var setLoginPoolModelInputSchema = setLoginPoolModelInputSchemaDefinition;
@@ -69589,11 +69705,11 @@ var checkLoginUsageAsCallerInputSchema = checkLoginUsageInputSchemaDefinition.om
69589
69705
  });
69590
69706
  var startHarnessSignInInputSchemaDefinition = external_exports.object({
69591
69707
  workspaceId: workspaceIdSchema9,
69592
- harness: harnessSchema2
69708
+ harness: harnessSchema3
69593
69709
  });
69594
69710
  var startHarnessSignInInputSchema = startHarnessSignInInputSchemaDefinition;
69595
69711
  var harnessSignInSchemaDefinition = external_exports.object({
69596
- harness: harnessSchema2,
69712
+ harness: harnessSchema3,
69597
69713
  flow: external_exports.string(),
69598
69714
  url: external_exports.url(),
69599
69715
  userCode: external_exports.string().nullable(),
@@ -69616,14 +69732,14 @@ var isoSchema = external_exports.iso.datetime();
69616
69732
  var loginStatesSchemaDefinition = external_exports.object({
69617
69733
  /** Logins signed in on a person's own Laze computer; Laze holds only the fact. */
69618
69734
  computerLogins: external_exports.array(
69619
- external_exports.object({ userId: external_exports.string(), harness: harnessSchema2, savedAt: isoSchema })
69735
+ external_exports.object({ userId: external_exports.string(), harness: harnessSchema3, savedAt: isoSchema })
69620
69736
  ),
69621
69737
  /** Logins in people's personal keychains in the vault. */
69622
69738
  personalLogins: external_exports.array(
69623
69739
  external_exports.object({
69624
69740
  id: external_exports.string(),
69625
69741
  ownerUserId: external_exports.string(),
69626
- harness: harnessSchema2,
69742
+ harness: harnessSchema3,
69627
69743
  state: loginStateSchema,
69628
69744
  /** The vault's own state: `needs_reconnect`, or still waiting for an admin's approval. */
69629
69745
  vaultStatus: external_exports.enum(["active", "needs_reconnect"]),
@@ -69642,7 +69758,7 @@ var loginStatesSchemaDefinition = external_exports.object({
69642
69758
  logins: external_exports.array(
69643
69759
  external_exports.object({
69644
69760
  id: external_exports.string(),
69645
- harness: harnessSchema2,
69761
+ harness: harnessSchema3,
69646
69762
  state: loginStateSchema,
69647
69763
  contributedByUserId: external_exports.string(),
69648
69764
  limitedUntil: isoSchema.nullable(),
@@ -69660,7 +69776,9 @@ var loginStatesSchemaDefinition = external_exports.object({
69660
69776
  loginPoolId: external_exports.string().nullable(),
69661
69777
  activeLoginId: external_exports.string().nullable()
69662
69778
  })
69663
- )
69779
+ ),
69780
+ /** Recent sign-in attempt steps, newest first; closed reason codes only. */
69781
+ signInAttempts: external_exports.array(signInAttemptViewSchema)
69664
69782
  });
69665
69783
  var loginStatesSchema = loginStatesSchemaDefinition;
69666
69784
 
@@ -71294,7 +71412,9 @@ var callerWorkspaceMemberSchemaDefinition = external_exports.object({
71294
71412
  role: roleSchema,
71295
71413
  joinedAt: external_exports.iso.datetime(),
71296
71414
  /** Other names they go by in the workspace; absent or empty without any. */
71297
- aliases: external_exports.array(external_exports.string()).optional()
71415
+ aliases: external_exports.array(external_exports.string()).optional(),
71416
+ /** Holds the Billing role beside their role; absent is false. */
71417
+ billing: external_exports.boolean().optional()
71298
71418
  });
71299
71419
  var callerWorkspaceInviteSchemaDefinition = external_exports.object({
71300
71420
  id: external_exports.string().min(1),
@@ -71361,6 +71481,10 @@ var changeRoleAsCallerInputSchemaDefinition = external_exports.object({
71361
71481
  member: memberRefSchema3,
71362
71482
  role: roleSchema
71363
71483
  });
71484
+ var setBillingAsCallerInputSchemaDefinition = external_exports.object({
71485
+ member: memberRefSchema3,
71486
+ billing: external_exports.boolean()
71487
+ });
71364
71488
  var groupRefSchema = external_exports.string().trim().min(1).max(80);
71365
71489
  var callerGroupSchemaDefinition = external_exports.object({
71366
71490
  id: external_exports.string().min(1),
@@ -72655,10 +72779,10 @@ function whereOf(message2) {
72655
72779
  }
72656
72780
  function catchUpLinesOf(message2) {
72657
72781
  if (!message2.catchUp) return [];
72658
- const { count: count8, older } = message2.catchUp;
72782
+ const { count: count10, older } = message2.catchUp;
72659
72783
  const where = whereOf(message2);
72660
72784
  const lines2 = [
72661
- `${count8} ${count8 === 1 ? "message" : "messages"} in ${where} while you were away.`
72785
+ `${count10} ${count10 === 1 ? "message" : "messages"} in ${where} while you were away.`
72662
72786
  ];
72663
72787
  if (older === 0) return lines2;
72664
72788
  const channel = message2.channelKind === "public" || message2.channelKind === "private";
@@ -72681,9 +72805,9 @@ function hookContextOf({
72681
72805
  messages,
72682
72806
  self: self2
72683
72807
  }) {
72684
- const count8 = messages.length === 1 ? "A message" : `${messages.length} messages`;
72808
+ const count10 = messages.length === 1 ? "A message" : `${messages.length} messages`;
72685
72809
  return [
72686
- `${count8} reached you in Laze${selfClauseOf({ self: self2 })}:`,
72810
+ `${count10} reached you in Laze${selfClauseOf({ self: self2 })}:`,
72687
72811
  "",
72688
72812
  ...messages.map((message2) => formatInboxMessage({ message: message2 })),
72689
72813
  "",
@@ -72698,7 +72822,7 @@ function selfClauseOf({ self: self2 }) {
72698
72822
  function record2(value) {
72699
72823
  return typeof value === "object" && value !== null ? value : {};
72700
72824
  }
72701
- function count3(value) {
72825
+ function count4(value) {
72702
72826
  return typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : void 0;
72703
72827
  }
72704
72828
  function parse3(line) {
@@ -72719,17 +72843,17 @@ function compactionOf({
72719
72843
  return {
72720
72844
  key: typeof entry2.uuid === "string" ? entry2.uuid : String(index),
72721
72845
  trigger: meta3.trigger === "manual" ? "manual" : "auto",
72722
- tokensBefore: count3(meta3.preTokens),
72723
- tokensAfter: count3(meta3.postTokens),
72846
+ tokensBefore: count4(meta3.preTokens),
72847
+ tokensAfter: count4(meta3.postTokens),
72724
72848
  at: typeof entry2.timestamp === "string" ? entry2.timestamp : "1970-01-01T00:00:00.000Z"
72725
72849
  };
72726
72850
  }
72727
72851
  function usageOf({ entry: entry2 }) {
72728
72852
  const message2 = record2(entry2.message);
72729
72853
  const usage = record2(message2.usage);
72730
- const input2 = count3(usage.input_tokens);
72854
+ const input2 = count4(usage.input_tokens);
72731
72855
  if (input2 === void 0) return void 0;
72732
- const cached2 = (count3(usage.cache_read_input_tokens) ?? 0) + (count3(usage.cache_creation_input_tokens) ?? 0);
72856
+ const cached2 = (count4(usage.cache_read_input_tokens) ?? 0) + (count4(usage.cache_creation_input_tokens) ?? 0);
72733
72857
  return {
72734
72858
  tokens: input2 + cached2,
72735
72859
  ...typeof message2.model === "string" ? { model: message2.model } : {}
@@ -73433,7 +73557,9 @@ var slackFileParamsSchemaDefinition = external_exports.object({
73433
73557
  var slackFileQuerySchemaDefinition = external_exports.object({
73434
73558
  via: external_exports.string().min(1).max(200).optional(),
73435
73559
  /** "1" answers the file as a download of plain bytes, whatever its type. */
73436
- download: external_exports.literal("1").optional()
73560
+ download: external_exports.literal("1").optional(),
73561
+ /** "poster" answers a video's still frame as Slack made it, in place of the video. */
73562
+ variant: external_exports.literal("poster").optional()
73437
73563
  });
73438
73564
  var SLACK_SEARCH_QUERY_MIN = 2;
73439
73565
  var SLACK_SEARCH_QUERY_MAX = 200;
@@ -73584,6 +73710,38 @@ var slackConfig = Config.define((c) => ({
73584
73710
  reconnectMaxSeconds: c.env("SLACK_RECONNECT_MAX_SECONDS", positiveInt4.default(30))
73585
73711
  }));
73586
73712
 
73713
+ // ../../modules/slack/contract/src/slack-ops.ts
73714
+ var count5 = external_exports.number().int().nonnegative();
73715
+ var at = external_exports.iso.datetime();
73716
+ var slackMirrorHealthDefinition = external_exports.object({
73717
+ mirrors: external_exports.array(
73718
+ external_exports.object({
73719
+ teamId: external_exports.string(),
73720
+ slackChannelId: external_exports.string(),
73721
+ lazeChannelId: external_exports.string(),
73722
+ /** channel, private, mpim or im. */
73723
+ kind: external_exports.string(),
73724
+ /** Shared with another organisation, such as a Slack Connect channel. */
73725
+ external: external_exports.boolean(),
73726
+ botMember: external_exports.boolean(),
73727
+ linkedMembers: count5,
73728
+ cacheDays: count5,
73729
+ backfilledAt: at.nullable(),
73730
+ reconciledAt: at.nullable(),
73731
+ /** Message links Laze holds for the conversation, both ways. */
73732
+ links: count5,
73733
+ /** Thread roots Laze holds a reply of. */
73734
+ threads: count5,
73735
+ /** Roots whose Slack reply count, when last read, is above the replies Laze holds. */
73736
+ threadsShort: count5,
73737
+ repliesShort: count5,
73738
+ /** Threads Laze holds whose root is older than the cache window. */
73739
+ oldThreads: count5
73740
+ })
73741
+ )
73742
+ });
73743
+ var slackMirrorHealthSchema = slackMirrorHealthDefinition;
73744
+
73587
73745
  // src/rules/not-in-channel.rules.ts
73588
73746
  function notInChannelLineOf({
73589
73747
  posted,
@@ -73720,7 +73878,7 @@ function slackHitLines({
73720
73878
  ...link2 ? [` ${link2}`] : []
73721
73879
  ];
73722
73880
  }
73723
- var count4 = (n) => `${n} message${n === 1 ? "" : "s"}`;
73881
+ var count6 = (n) => `${n} message${n === 1 ? "" : "s"}`;
73724
73882
  function slackSectionLines({
73725
73883
  slack: slack2,
73726
73884
  laze,
@@ -73733,7 +73891,7 @@ function slackSectionLines({
73733
73891
  });
73734
73892
  if (slack2.teams.some((team) => team.state === "searched")) {
73735
73893
  const found = slack2.hits.length;
73736
- lines2.push(found === 0 ? "From Slack: nothing more." : `From Slack: ${count4(found)}`);
73894
+ lines2.push(found === 0 ? "From Slack: nothing more." : `From Slack: ${count6(found)}`);
73737
73895
  }
73738
73896
  for (const hit of slack2.hits) lines2.push(...slackHitLines({ hit, laze, url: url2, workspaceId }), "");
73739
73897
  return lines2;
@@ -73744,7 +73902,7 @@ function formatSearch({
73744
73902
  workspaceId
73745
73903
  }) {
73746
73904
  const { laze, slack: slack2, query } = output2;
73747
- const lines2 = laze.hits.length === 0 ? [`No Laze messages match "${query}".`] : [`Laze: ${count4(laze.hits.length)} for "${query}"`];
73905
+ const lines2 = laze.hits.length === 0 ? [`No Laze messages match "${query}".`] : [`Laze: ${count6(laze.hits.length)} for "${query}"`];
73748
73906
  for (const hit of laze.hits) {
73749
73907
  lines2.push(...lazeHitLines({ hit, laze, url: url2, workspaceId }), "");
73750
73908
  }
@@ -73776,8 +73934,8 @@ function lastCallAtOf({ text: text3, command }) {
73776
73934
  } catch {
73777
73935
  continue;
73778
73936
  }
73779
- const at2 = callAtOf({ entry: entry2, command });
73780
- if (at2 !== null) return at2;
73937
+ const at4 = callAtOf({ entry: entry2, command });
73938
+ if (at4 !== null) return at4;
73781
73939
  }
73782
73940
  return null;
73783
73941
  }
@@ -73800,7 +73958,7 @@ function newestIsSubagent({
73800
73958
  session,
73801
73959
  subagents
73802
73960
  }) {
73803
- const newest = Math.max(...subagents.map((at2) => at2 ?? Number.NEGATIVE_INFINITY));
73961
+ const newest = Math.max(...subagents.map((at4) => at4 ?? Number.NEGATIVE_INFINITY));
73804
73962
  return Number.isFinite(newest) && newest >= (session ?? Number.NEGATIVE_INFINITY);
73805
73963
  }
73806
73964
 
@@ -73958,11 +74116,11 @@ async function sessionNotesOf({
73958
74116
  dropped.push(await dropStale({ context, pid, path, tell }));
73959
74117
  continue;
73960
74118
  }
73961
- const at2 = await stat2(path).then(
74119
+ const at4 = await stat2(path).then(
73962
74120
  (info) => info.mtimeMs,
73963
74121
  () => 0
73964
74122
  );
73965
- notes.push({ pid, note, standing, at: at2 });
74123
+ notes.push({ pid, note, standing, at: at4 });
73966
74124
  }
73967
74125
  return { notes: notes.toSorted((a, b) => b.at - a.at), dropped };
73968
74126
  }
@@ -74559,8 +74717,8 @@ var AT_USAGE = `--at takes a date and time such as 2026-10-20T09:00, read in --t
74559
74717
  such as Europe/Amsterdam) or this machine's zone; a time with its own offset is taken as written.`;
74560
74718
  var OFFSET = /(Z|[+-]\d{2}(:?\d{2})?)$/i;
74561
74719
  var DATE_AND_TIME = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}/;
74562
- function sendAtOf({ at: at2, timeZone }) {
74563
- const text3 = at2.trim();
74720
+ function sendAtOf({ at: at4, timeZone }) {
74721
+ const text3 = at4.trim();
74564
74722
  if (!DATE_AND_TIME.test(text3)) return null;
74565
74723
  try {
74566
74724
  if (OFFSET.test(text3)) return Temporal3.Instant.from(text3.replace(" ", "T")).toString();
@@ -74624,9 +74782,9 @@ function scheduleAtOf({
74624
74782
  usage
74625
74783
  }) {
74626
74784
  if (args.flags.at === void 0 && args.flags.tz === void 0) return null;
74627
- const at2 = flagText({ args, name: "at" });
74785
+ const at4 = flagText({ args, name: "at" });
74628
74786
  const timeZone = flagText({ args, name: "tz" }) || currentTimeZone();
74629
- const sendAt = at2 ? sendAtOf({ at: at2, timeZone }) : null;
74787
+ const sendAt = at4 ? sendAtOf({ at: at4, timeZone }) : null;
74630
74788
  if (!sendAt) throw new CliUsageError(`${usage}
74631
74789
  ${AT_USAGE}`);
74632
74790
  return { sendAt, timeZone };
@@ -74635,19 +74793,19 @@ async function scheduleMessage({
74635
74793
  context,
74636
74794
  args,
74637
74795
  client,
74638
- at: at2,
74796
+ at: at4,
74639
74797
  target,
74640
74798
  body
74641
74799
  }) {
74642
74800
  const scheduled2 = await client.post("/api/agents/me/scheduled", {
74643
74801
  ...target,
74644
74802
  body,
74645
- sendAt: at2.sendAt,
74803
+ sendAt: at4.sendAt,
74646
74804
  ..."replyTo" in target && args.flags["also-channel"] === true ? { alsoInChannel: true } : {}
74647
74805
  });
74648
74806
  if (args.flags.json) context.out(`${JSON.stringify(scheduled2, null, 2)}
74649
74807
  `);
74650
- else context.out(scheduledLine({ scheduled: scheduled2, timeZone: at2.timeZone }));
74808
+ else context.out(scheduledLine({ scheduled: scheduled2, timeZone: at4.timeZone }));
74651
74809
  return void 0;
74652
74810
  }
74653
74811
  var USAGE = "Usage: laze scheduled [--channel <channel>] [--json], laze scheduled send|cancel <id>, laze scheduled edit <id> [--text <text|->] [--at <time> [--tz <zone>]]";
@@ -74688,18 +74846,18 @@ async function editOne({
74688
74846
  args,
74689
74847
  id: id4
74690
74848
  }) {
74691
- const at2 = scheduleAtOf({ args, usage: EDIT_USAGE });
74849
+ const at4 = scheduleAtOf({ args, usage: EDIT_USAGE });
74692
74850
  const body = await newTextOf({ context, args });
74693
- if (!at2 && body === void 0) throw new CliUsageError(EDIT_USAGE);
74851
+ if (!at4 && body === void 0) throw new CliUsageError(EDIT_USAGE);
74694
74852
  const { client } = await signedIn({ context, args });
74695
74853
  const edited = await client.post("/api/agents/me/scheduled/edit", {
74696
74854
  scheduledId: id4,
74697
74855
  ...body === void 0 ? {} : { body },
74698
- ...at2 ? { sendAt: at2.sendAt } : {}
74856
+ ...at4 ? { sendAt: at4.sendAt } : {}
74699
74857
  });
74700
74858
  if (args.flags.json) return context.out(`${JSON.stringify(edited, null, 2)}
74701
74859
  `);
74702
- const timeZone = at2?.timeZone ?? currentTimeZone();
74860
+ const timeZone = at4?.timeZone ?? currentTimeZone();
74703
74861
  context.out(scheduledLine({ scheduled: edited, timeZone }).replace(/^Scheduled /, "Updated "));
74704
74862
  }
74705
74863
  async function actOn({
@@ -74883,12 +75041,12 @@ async function filesOf({
74883
75041
  context,
74884
75042
  args,
74885
75043
  client,
74886
- at: at2,
75044
+ at: at4,
74887
75045
  channel
74888
75046
  }) {
74889
75047
  const sources = fileSourcesOf({ args, what: "A message" });
74890
75048
  if (sources.length === 0) return {};
74891
- if (at2) throw new CliUsageError("A scheduled message (--at) cannot carry --image or --file yet");
75049
+ if (at4) throw new CliUsageError("A scheduled message (--at) cannot carry --image or --file yet");
74892
75050
  const attachmentIds = await attachmentIdsOf({ context, client, sources, channel });
74893
75051
  return { attachmentIds };
74894
75052
  }
@@ -74907,16 +75065,16 @@ async function post({
74907
75065
  }) {
74908
75066
  const channel = args.words[1];
74909
75067
  if (!channel) throw new CliUsageError(POST_USAGE);
74910
- const at2 = scheduleAtOf({ args, usage: POST_USAGE });
75068
+ const at4 = scheduleAtOf({ args, usage: POST_USAGE });
74911
75069
  const { client, profile } = await signedIn({ context, args });
74912
75070
  const typed = await textOf({ context, args, from: 2 });
74913
75071
  const leaves = leavesLazeOf({ client, channel });
74914
75072
  const body = await textToSend({ context, args, profile, client, text: typed, leaves });
74915
75073
  const thread2 = flagText({ args, name: "thread" });
74916
- const files2 = await filesOf({ context, args, client, at: at2, channel: async () => channel });
74917
- if (at2) {
75074
+ const files2 = await filesOf({ context, args, client, at: at4, channel: async () => channel });
75075
+ if (at4) {
74918
75076
  const target = { channel, ...thread2 ? { threadRootId: thread2 } : {} };
74919
- return scheduleMessage({ context, args, client, at: at2, target, body });
75077
+ return scheduleMessage({ context, args, client, at: at4, target, body });
74920
75078
  }
74921
75079
  const posted = await client.post("/api/agents/me/messages", {
74922
75080
  channel,
@@ -74942,7 +75100,7 @@ async function reply({
74942
75100
  }) {
74943
75101
  const messageId = args.words[1];
74944
75102
  if (!messageId) throw new CliUsageError(REPLY_USAGE);
74945
- const at2 = scheduleAtOf({ args, usage: REPLY_USAGE });
75103
+ const at4 = scheduleAtOf({ args, usage: REPLY_USAGE });
74946
75104
  const { client, profile, name: name3 } = await signedIn({ context, args });
74947
75105
  const channel = flagText({ args, name: "channel" });
74948
75106
  const typed = await textOf({ context, args, from: 2 });
@@ -74952,11 +75110,11 @@ async function reply({
74952
75110
  context,
74953
75111
  args,
74954
75112
  client,
74955
- at: at2,
75113
+ at: at4,
74956
75114
  channel: () => replyChannelOf({ client, messageId, channel })
74957
75115
  });
74958
- if (at2) {
74959
- return scheduleMessage({ context, args, client, at: at2, target: { replyTo: messageId }, body });
75116
+ if (at4) {
75117
+ return scheduleMessage({ context, args, client, at: at4, target: { replyTo: messageId }, body });
74960
75118
  }
74961
75119
  const posted = await client.post("/api/agents/me/replies", {
74962
75120
  messageId,
@@ -76466,8 +76624,8 @@ function boundAwayOf({ waiting, key }) {
76466
76624
  }
76467
76625
  async function logDelivery({ context, line }) {
76468
76626
  const folder = join13(dirname11(context.environment.configPath), "connect");
76469
- const at2 = Temporal3.Instant.fromEpochMilliseconds(context.nowMs());
76470
- const stamped = `${at2.toString({ smallestUnit: "second" })} ${line}
76627
+ const at4 = Temporal3.Instant.fromEpochMilliseconds(context.nowMs());
76628
+ const stamped = `${at4.toString({ smallestUnit: "second" })} ${line}
76471
76629
  `;
76472
76630
  context.out(stamped);
76473
76631
  await mkdir2(folder, { recursive: true, mode: 448 });
@@ -81589,9 +81747,9 @@ function formatAppMoney({
81589
81747
  maximumFractionDigits: tiny ? 4 : 2
81590
81748
  }).format(amount);
81591
81749
  }
81592
- var count5 = new Intl.NumberFormat("en-US");
81750
+ var count7 = new Intl.NumberFormat("en-US");
81593
81751
  function plural2({ value, one, many }) {
81594
- return `${count5.format(value)} ${value === 1 ? one : many}`;
81752
+ return `${count7.format(value)} ${value === 1 ? one : many}`;
81595
81753
  }
81596
81754
  function appCostQuantityText(line) {
81597
81755
  const { quantity } = line;
@@ -82862,19 +83020,19 @@ function buildFileOf({ path, bytes }) {
82862
83020
  }
82863
83021
  var WEEKDAYS = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
82864
83022
  function whenLabel({
82865
- at: at2,
83023
+ at: at4,
82866
83024
  now,
82867
83025
  timeZone
82868
83026
  }) {
82869
83027
  const zone = { timeZone: timeZone ?? currentTimeZone() };
82870
- const days = differenceInCalendarDays(now.epochMilliseconds, at2, zone);
82871
- const time3 = format(at2, "HH:mm", zone);
83028
+ const days = differenceInCalendarDays(now.epochMilliseconds, at4, zone);
83029
+ const time3 = format(at4, "HH:mm", zone);
82872
83030
  if (days === 0) return `Today ${time3}`;
82873
83031
  if (days === 1) return `Yesterday ${time3}`;
82874
83032
  if (days > 1 && days < 7) {
82875
- return `${WEEKDAYS[toZonedDateTime(at2, zone).dayOfWeek - 1] ?? ""} ${time3}`;
83033
+ return `${WEEKDAYS[toZonedDateTime(at4, zone).dayOfWeek - 1] ?? ""} ${time3}`;
82876
83034
  }
82877
- return format(at2, "d MMM HH:mm", zone);
83035
+ return format(at4, "d MMM HH:mm", zone);
82878
83036
  }
82879
83037
  function versionLine({
82880
83038
  version: version2,
@@ -82889,8 +83047,8 @@ function versionLine({
82889
83047
  }
82890
83048
  function messageOf({ args }) {
82891
83049
  const words = [...args.words];
82892
- const at2 = words.indexOf("-m");
82893
- const short = at2 >= 0 ? words.splice(at2, 2)[1] ?? "" : "";
83050
+ const at4 = words.indexOf("-m");
83051
+ const short = at4 >= 0 ? words.splice(at4, 2)[1] ?? "" : "";
82894
83052
  const long = typeof args.flags.message === "string" ? args.flags.message : "";
82895
83053
  return { message: (short || long).trim(), words };
82896
83054
  }
@@ -82946,19 +83104,19 @@ async function h264LevelOf(path) {
82946
83104
  try {
82947
83105
  const { size } = await file4.stat();
82948
83106
  const head = Buffer.alloc(16);
82949
- for (let at2 = 0; at2 + 8 <= size; ) {
82950
- await file4.read(head, 0, 16, at2);
83107
+ for (let at4 = 0; at4 + 8 <= size; ) {
83108
+ await file4.read(head, 0, 16, at4);
82951
83109
  let length = head.readUInt32BE(0);
82952
83110
  if (length === 1) length = Number(head.readBigUInt64BE(8));
82953
- if (length === 0) length = size - at2;
83111
+ if (length === 0) length = size - at4;
82954
83112
  if (length < 8) return null;
82955
83113
  if (head.toString("latin1", 4, 8) === "moov") {
82956
83114
  const moov = Buffer.alloc(Math.min(length, 64 * 1024 * 1024));
82957
- await file4.read(moov, 0, moov.byteLength, at2);
83115
+ await file4.read(moov, 0, moov.byteLength, at4);
82958
83116
  const box = moov.indexOf("avcC", 0, "latin1");
82959
83117
  return box === -1 || box + 8 > moov.byteLength ? null : moov[box + 7] ?? null;
82960
83118
  }
82961
- at2 += length;
83119
+ at4 += length;
82962
83120
  }
82963
83121
  return null;
82964
83122
  } finally {
@@ -83568,8 +83726,8 @@ function channelOf({ context, args }) {
83568
83726
  const channel = flagText({ args, name: "channel" }) || context.environment.inherited.LAZE_CHANNEL;
83569
83727
  return channel ? { channel } : {};
83570
83728
  }
83571
- function word({ args, at: at2 }) {
83572
- const value = args.words[at2];
83729
+ function word({ args, at: at4 }) {
83730
+ const value = args.words[at4];
83573
83731
  if (!value) throw new CliUsageError(BROWSER_TAB_USAGE);
83574
83732
  return value;
83575
83733
  }
@@ -84341,8 +84499,8 @@ function json2({
84341
84499
  function withServeThemeScript(page) {
84342
84500
  const head = /<head(\s[^>]*)?>/i.exec(page);
84343
84501
  if (!head) return THEME_SCRIPT + page;
84344
- const at2 = head.index + head[0].length;
84345
- return page.slice(0, at2) + THEME_SCRIPT + page.slice(at2);
84502
+ const at4 = head.index + head[0].length;
84503
+ return page.slice(0, at4) + THEME_SCRIPT + page.slice(at4);
84346
84504
  }
84347
84505
  async function staticFile({
84348
84506
  folder,
@@ -84898,7 +85056,7 @@ var appWrite = async ({ context, args }) => {
84898
85056
  });
84899
85057
  };
84900
85058
  function seedLine(seeded) {
84901
- const created = Object.entries(seeded.created).map(([name3, count8]) => `${count8} in ${name3}`);
85059
+ const created = Object.entries(seeded.created).map(([name3, count10]) => `${count10} in ${name3}`);
84902
85060
  const parts = [
84903
85061
  created.length ? `Loaded starter records: ${created.join(", ")}.` : "",
84904
85062
  seeded.skipped.length ? `Left ${seeded.skipped.join(", ")} as it was: it already holds records.` : ""
@@ -85223,8 +85381,8 @@ function cardLine({ choice }) {
85223
85381
  var appCard = async ({ context, args }) => {
85224
85382
  const client = await appClient({ context, args });
85225
85383
  const appId = await appIdOf({ client, args, folder: folderOf({ context, word: void 0 }) });
85226
- const count8 = Number(flagText({ args, name: "rows", fallback: "5" }));
85227
- if (!Number.isInteger(count8) || count8 < 1 || count8 > 10) {
85384
+ const count10 = Number(flagText({ args, name: "rows", fallback: "5" }));
85385
+ if (!Number.isInteger(count10) || count10 < 1 || count10 > 10) {
85228
85386
  throw new CliUsageError("--rows is a whole number from 1 to 10");
85229
85387
  }
85230
85388
  const text3 = (name3) => flagText({ args, name: name3 }) || null;
@@ -85237,7 +85395,7 @@ var appCard = async ({ context, args }) => {
85237
85395
  collection: text3("collection"),
85238
85396
  filter: flagText({ args, name: "where" }) || flagText({ args, name: "filter" }),
85239
85397
  sort: flagText({ args, name: "sort" }),
85240
- rows: count8,
85398
+ rows: count10,
85241
85399
  caption: text3("caption")
85242
85400
  }
85243
85401
  });
@@ -86872,9 +87030,9 @@ function presenceColumns(member) {
86872
87030
  return [member.presence, `${status11.emoji} ${status11.text}`.trim() + until, ...dndColumn(member)];
86873
87031
  }
86874
87032
  function formatMembers({ detail }) {
86875
- const count8 = `${detail.members.length} ${detail.members.length === 1 ? "member" : "members"}`;
87033
+ const count10 = `${detail.members.length} ${detail.members.length === 1 ? "member" : "members"}`;
86876
87034
  const ends = detail.endsAt ? `, ends ${utcTimeOf(detail.endsAt)}` : "";
86877
- const head = `${channelLabelOf(detail)} (${detail.id}), ${count8}${ends}`;
87035
+ const head = `${channelLabelOf(detail)} (${detail.id}), ${count10}${ends}`;
86878
87036
  const rows = detail.members.map(
86879
87037
  (member) => [ROLE[member.role], member.name, member.kind, member.id, ...presenceColumns(member)].join(" ")
86880
87038
  );
@@ -86913,13 +87071,13 @@ function formatBrowsable({
86913
87071
  }) {
86914
87072
  if (channels3.length === 0) return "No channels to browse.\n";
86915
87073
  const rows = channels3.map((channel) => {
86916
- const count8 = `${channel.memberCount} ${channel.memberCount === 1 ? "member" : "members"}`;
87074
+ const count10 = `${channel.memberCount} ${channel.memberCount === 1 ? "member" : "members"}`;
86917
87075
  const marks = [
86918
87076
  channel.joined ? "joined" : "not joined",
86919
87077
  ...channel.private ? ["private"] : [],
86920
87078
  ...channel.archived ? ["archived"] : []
86921
87079
  ].join(", ");
86922
- return `#${channel.name} ${channel.id} ${count8} ${marks} ${channel.topic}`;
87080
+ return `#${channel.name} ${channel.id} ${count10} ${marks} ${channel.topic}`;
86923
87081
  });
86924
87082
  return `${rows.join("\n")}
86925
87083
  `;
@@ -86968,10 +87126,10 @@ var DURATION = /^(\d+)\s*(m|min|mins|minutes?|h|hours?|d|days?)$/i;
86968
87126
  function minutesOf({ text: text3 }) {
86969
87127
  const match = DURATION.exec(text3.trim());
86970
87128
  if (!match?.[1] || !match[2]) return null;
86971
- const count8 = Number(match[1]);
87129
+ const count10 = Number(match[1]);
86972
87130
  const unit = match[2].toLowerCase()[0];
86973
87131
  const perUnit = { d: 1440, h: 60, m: 1 };
86974
- const minutes = count8 * (perUnit[unit ?? "m"] ?? 1);
87132
+ const minutes = count10 * (perUnit[unit ?? "m"] ?? 1);
86975
87133
  return minutes > 0 ? minutes : null;
86976
87134
  }
86977
87135
  function muteTextOf({ mute }) {
@@ -88479,9 +88637,8 @@ var computerWaitlistChangedDefinition = external_exports.object({
88479
88637
  var priceId = external_exports.string().min(1).optional();
88480
88638
  var MAC_QA_WORKSPACE_ID = "workspace_0004i5nUrgRHO0Mz9PXEeGpqnPFDM";
88481
88639
  var billingConfig = Config.define((c) => ({
88640
+ /** Every link billing hands out, referral links included (`BASE_HOST`, laze.so on prod). */
88482
88641
  publicBaseUrl,
88483
- /** The first alias (`laze.so` on prod) is the short origin referral links are shared on. */
88484
- publicOriginAliases,
88485
88642
  /** Stripe's API, or the payment simulator in tests and local stacks. */
88486
88643
  stripeApiBase: c.env("STRIPE_API_BASE", external_exports.url().default("https://api.stripe.com")),
88487
88644
  /** Team's graduated per-person price (`TEAM_PRICING`), one quantity per person. */
@@ -90290,7 +90447,9 @@ var loginTerminalDefinition = external_exports.discriminatedUnion("status", [
90290
90447
  status: external_exports.literal("ready"),
90291
90448
  /** The WebSocket path of the terminal, token included; add `cols` and `rows`. */
90292
90449
  streamPath: external_exports.string(),
90293
- expiresAt: external_exports.iso.datetime()
90450
+ expiresAt: external_exports.iso.datetime(),
90451
+ /** The caller's last sign-in try of this CLI, when it ended refused: when, and why. */
90452
+ lastTry: external_exports.object({ at: external_exports.iso.datetime(), reason: external_exports.string().regex(/^[a-z0-9_]{1,40}$/) }).optional()
90294
90453
  })
90295
90454
  ]);
90296
90455
  var loginTerminalSchema = loginTerminalDefinition;
@@ -90555,8 +90714,8 @@ var whatsappObservedPayloadDefinition = external_exports.object({
90555
90714
  });
90556
90715
 
90557
90716
  // ../../modules/compute/contract/src/whatsapp-ops.ts
90558
- var count6 = external_exports.number().int().nonnegative();
90559
- var at = external_exports.iso.datetime();
90717
+ var count8 = external_exports.number().int().nonnegative();
90718
+ var at2 = external_exports.iso.datetime();
90560
90719
  var whatsappMirrorHealthDefinition = external_exports.object({
90561
90720
  mirrors: external_exports.array(
90562
90721
  external_exports.object({
@@ -90566,23 +90725,23 @@ var whatsappMirrorHealthDefinition = external_exports.object({
90566
90725
  provider: external_exports.string(),
90567
90726
  mirrorOn: external_exports.boolean(),
90568
90727
  /** When the mirror took its changes only as events (ADR-216); null while it still pulls. */
90569
- eventsAt: at.nullable(),
90728
+ eventsAt: at2.nullable(),
90570
90729
  cursor: external_exports.number().int(),
90571
- nextVisitAt: at.nullable(),
90572
- touchedAt: at.nullable(),
90573
- createdAt: at,
90574
- skipped: external_exports.object({ count: count6, from: external_exports.number().int().nullable(), at: at.nullable() }),
90730
+ nextVisitAt: at2.nullable(),
90731
+ touchedAt: at2.nullable(),
90732
+ createdAt: at2,
90733
+ skipped: external_exports.object({ count: count8, from: external_exports.number().int().nullable(), at: at2.nullable() }),
90575
90734
  /** The last pull that met files; null when none did. */
90576
90735
  files: external_exports.object({
90577
- at,
90578
- attached: count6,
90579
- unavailable: count6,
90580
- retrying: count6,
90581
- dropped: count6,
90736
+ at: at2,
90737
+ attached: count8,
90738
+ unavailable: count8,
90739
+ retrying: count8,
90740
+ dropped: count8,
90582
90741
  failureCode: external_exports.string().nullable()
90583
90742
  }).nullable(),
90584
90743
  /** Intake holds (ADR-216 §11) by kind and code, with when the oldest was made. */
90585
- holds: external_exports.array(external_exports.object({ kind: external_exports.string(), code: external_exports.string(), count: count6, oldestAt: at }))
90744
+ holds: external_exports.array(external_exports.object({ kind: external_exports.string(), code: external_exports.string(), count: count8, oldestAt: at2 }))
90586
90745
  })
90587
90746
  )
90588
90747
  });
@@ -90606,7 +90765,7 @@ var whatsappWakeTimelineDefinition = external_exports.object({
90606
90765
  /** Newest first. */
90607
90766
  wakes: external_exports.array(
90608
90767
  external_exports.object({
90609
- requestedAt: at,
90768
+ requestedAt: at2,
90610
90769
  /** watch, send, message, visit, link or unpair. */
90611
90770
  cause: external_exports.string(),
90612
90771
  /** done, failed, or open when no step came for a while. */
@@ -90623,12 +90782,12 @@ var whatsappWakeTimelineDefinition = external_exports.object({
90623
90782
  steps: external_exports.array(
90624
90783
  external_exports.object({
90625
90784
  step: external_exports.enum(WHATSAPP_WAKE_STEPS),
90626
- at,
90627
- sincePreviousMs: count6,
90628
- sinceRequestMs: count6
90785
+ at: at2,
90786
+ sincePreviousMs: count8,
90787
+ sinceRequestMs: count8
90629
90788
  })
90630
90789
  ),
90631
- totalMs: count6.nullable()
90790
+ totalMs: count8.nullable()
90632
90791
  })
90633
90792
  )
90634
90793
  })
@@ -91317,8 +91476,8 @@ var CONNECT_HELP = `laze connect: services for your agent's work.
91317
91476
  laze connect suggest <service|domain|https url> --reason "<one plain sentence>"
91318
91477
  [--label <name>] [--instructions "<markdown>"] [--auth oauth|key|none]
91319
91478
  [--header <name>] [--prefix "<text>"] [--keychain workspace]
91320
- post a card for the person who asked: they sign in or paste the key there, and you hear
91321
- back once it is connected. A service Laze has no card for works by its MCP URL or domain:
91479
+ post a card for your owner (a team agent: the person who asked), whose keychain you use:
91480
+ they sign in or paste the key there, and you hear back once it is connected. A service Laze has no card for works by its MCP URL or domain:
91322
91481
  Laze finds how it signs in. --instructions says where the key is and what to turn on;
91323
91482
  --keychain workspace asks an admin to connect it for the whole workspace instead
91324
91483
  laze connect search <text> find a server's MCP URL in the registry and indexes
@@ -91496,11 +91655,11 @@ function bundleOf({ text: text3, field }) {
91496
91655
  for (const line of text3.split(/\r?\n/)) {
91497
91656
  const kept = line.trim();
91498
91657
  if (!kept || kept.startsWith("#")) continue;
91499
- const at2 = line.indexOf("=");
91500
- if (at2 <= 0) {
91658
+ const at4 = line.indexOf("=");
91659
+ if (at4 <= 0) {
91501
91660
  throw new CliUsageError("Give KEY=value lines, or one value with --field <FIELD>.");
91502
91661
  }
91503
- fields[line.slice(0, at2).trim()] = line.slice(at2 + 1);
91662
+ fields[line.slice(0, at4).trim()] = line.slice(at4 + 1);
91504
91663
  }
91505
91664
  return { kind: "api_key_set", fields };
91506
91665
  }
@@ -93056,7 +93215,7 @@ function nextClock({
93056
93215
  timeZone
93057
93216
  }) {
93058
93217
  const local2 = now.toZonedDateTimeISO(timeZone);
93059
- const at2 = local2.with({
93218
+ const at4 = local2.with({
93060
93219
  hour: Number(clock[1]),
93061
93220
  minute: Number(clock[2]),
93062
93221
  second: 0,
@@ -93064,7 +93223,7 @@ function nextClock({
93064
93223
  microsecond: 0,
93065
93224
  nanosecond: 0
93066
93225
  });
93067
- const next = Temporal3.ZonedDateTime.compare(at2, local2) > 0 ? at2 : at2.add({ days: 1 });
93226
+ const next = Temporal3.ZonedDateTime.compare(at4, local2) > 0 ? at4 : at4.add({ days: 1 });
93068
93227
  return next.toString({ timeZoneName: "never", smallestUnit: "second" });
93069
93228
  }
93070
93229
  function dndInputOf({
@@ -93783,7 +93942,8 @@ async function list6({ context, args }) {
93783
93942
  answer: answer6,
93784
93943
  text: (members3) => members3.map((it) => {
93785
93944
  const aka2 = it.aliases?.length ? ` aka ${it.aliases.join(", ")}` : "";
93786
- return `${ROLE_NAMES2[it.role]} ${it.name} ${it.email} ${it.userId}${aka2}
93945
+ const role2 = it.billing ? `${ROLE_NAMES2[it.role]}, Billing` : ROLE_NAMES2[it.role];
93946
+ return `${role2} ${it.name} ${it.email} ${it.userId}${aka2}
93787
93947
  `;
93788
93948
  }).join("")
93789
93949
  });
@@ -93884,6 +94044,25 @@ async function role({ context, args }) {
93884
94044
  `
93885
94045
  });
93886
94046
  }
94047
+ async function billing2({ context, args }) {
94048
+ const [, , member, word3] = args.words;
94049
+ if (!member || word3 !== "on" && word3 !== "off")
94050
+ throw new CliUsageError("Usage: laze members billing <member> on|off");
94051
+ const on = word3 === "on";
94052
+ const { client } = await signedIn({ context, args });
94053
+ const answer6 = await client.post("/api/agents/me/workspace/billing-role", {
94054
+ member,
94055
+ billing: on
94056
+ });
94057
+ print7({
94058
+ context,
94059
+ args,
94060
+ answer: answer6,
94061
+ text: (it) => it.billing ? `${it.name} now holds the Billing role and can change the plan.
94062
+ ` : `${it.name} no longer holds the Billing role.
94063
+ `
94064
+ });
94065
+ }
93887
94066
  async function remove5({ context, args }) {
93888
94067
  const member = args.words[2];
93889
94068
  if (!member) throw new CliUsageError("Usage: laze members remove <member>");
@@ -93933,6 +94112,7 @@ var MEMBERS_COMMANDS = {
93933
94112
  "revoke-invite": revokeInvite,
93934
94113
  "invite-link": inviteLink,
93935
94114
  role,
94115
+ billing: billing2,
93936
94116
  aka,
93937
94117
  remove: remove5,
93938
94118
  requests,
@@ -93945,7 +94125,7 @@ async function members2({ context, args }) {
93945
94125
  const command = MEMBERS_COMMANDS[sub];
93946
94126
  if (!command) {
93947
94127
  throw new CliUsageError(
93948
- "Usage: laze members [invite | invites | revoke-invite | invite-link | role | aka | remove | requests | approve | deny]"
94128
+ "Usage: laze members [invite | invites | revoke-invite | invite-link | role | billing | aka | remove | requests | approve | deny]"
93949
94129
  );
93950
94130
  }
93951
94131
  return command({ context, args });
@@ -93975,8 +94155,8 @@ var EXTERNAL_USAGE = `Usage:
93975
94155
  laze external report <workspace> --note "<why>" report a workspace to Laze staff, and block it (admins)`;
93976
94156
  var printJson6 = (context, data) => context.out(`${JSON.stringify(data, null, 2)}
93977
94157
  `);
93978
- function wordAt5({ args, at: at2, what }) {
93979
- const word3 = args.words[at2]?.trim();
94158
+ function wordAt5({ args, at: at4, what }) {
94159
+ const word3 = args.words[at4]?.trim();
93980
94160
  if (!word3) throw new CliUsageError(`Name ${what}.
93981
94161
  ${EXTERNAL_USAGE}`);
93982
94162
  return word3;
@@ -94080,9 +94260,9 @@ async function invite2({ context, args }) {
94080
94260
  });
94081
94261
  if (args.flags.json) return printJson6(context, sent);
94082
94262
  const sharing = sent.share ? `, sharing #${sent.share.name} once accepted` : "";
94083
- const at2 = sent.company ? ` at ${sent.company}` : "";
94263
+ const at4 = sent.company ? ` at ${sent.company}` : "";
94084
94264
  context.out(
94085
- `Invited ${sent.email}${at2}${sharing}. Invitation ${sent.id} expires ${utcTimeOf(sent.expiresAt)}.
94265
+ `Invited ${sent.email}${at4}${sharing}. Invitation ${sent.id} expires ${utcTimeOf(sent.expiresAt)}.
94086
94266
  `
94087
94267
  );
94088
94268
  }
@@ -95219,8 +95399,8 @@ function draftFilesMissingText(names) {
95219
95399
  }
95220
95400
 
95221
95401
  // ../../modules/feed/contract/src/feed.decisions.ts
95222
- function decisionsLineOf(count8) {
95223
- return `${count8} ${count8 === 1 ? "decision" : "decisions"} waiting on you`;
95402
+ function decisionsLineOf(count10) {
95403
+ return `${count10} ${count10 === 1 ? "decision" : "decisions"} waiting on you`;
95224
95404
  }
95225
95405
 
95226
95406
  // src/rules/feed-input.rules.ts
@@ -95228,11 +95408,11 @@ function csvCellsOf(line) {
95228
95408
  const cells = [];
95229
95409
  let cell = "";
95230
95410
  let quoted2 = false;
95231
- for (let at2 = 0; at2 < line.length; at2 += 1) {
95232
- const char = line[at2];
95233
- if (quoted2 && char === '"' && line[at2 + 1] === '"') {
95411
+ for (let at4 = 0; at4 < line.length; at4 += 1) {
95412
+ const char = line[at4];
95413
+ if (quoted2 && char === '"' && line[at4 + 1] === '"') {
95234
95414
  cell += '"';
95235
- at2 += 1;
95415
+ at4 += 1;
95236
95416
  } else if (char === '"') {
95237
95417
  quoted2 = !quoted2;
95238
95418
  } else if (char === "," && !quoted2) {
@@ -95297,11 +95477,11 @@ feed_draft_missing when a card points at a draft without its text; fix it, or pa
95297
95477
  to post it as written.`;
95298
95478
  var FEED_NO_BODY = "feed cards have no body: put the point in the title and one --summary line, text to send in --draft, sources in --link";
95299
95479
  function pairOf({ value, flag: flag2 }) {
95300
- const at2 = value.indexOf("=");
95301
- if (at2 <= 0 || at2 === value.length - 1) {
95480
+ const at4 = value.indexOf("=");
95481
+ if (at4 <= 0 || at4 === value.length - 1) {
95302
95482
  throw new Error(`--${flag2} takes <label>=<value>, got "${value}"`);
95303
95483
  }
95304
- return [value.slice(0, at2), value.slice(at2 + 1)];
95484
+ return [value.slice(0, at4), value.slice(at4 + 1)];
95305
95485
  }
95306
95486
  function sourceOf(value) {
95307
95487
  return value.startsWith("@") && value.length > 1 ? { file: value.slice(1) } : { text: value };
@@ -95722,8 +95902,8 @@ function optionalWords(words) {
95722
95902
  }
95723
95903
  function shareLinesOf({ move: move3, answer: answer6 }) {
95724
95904
  const names = answer6.people.map((person) => person.name).join(", ") || "no one new";
95725
- const count8 = answer6.itemIds.length;
95726
- const items = `${count8} item${count8 === 1 ? "" : "s"}`;
95905
+ const count10 = answer6.itemIds.length;
95906
+ const items = `${count10} item${count10 === 1 ? "" : "s"}`;
95727
95907
  const head = move3 === "share" ? `Shared ${items} with ${names}` : `Took ${names} off ${items}`;
95728
95908
  return [head, ...answer6.itemIds].map((line) => `${line}
95729
95909
  `).join("");
@@ -95883,10 +96063,10 @@ async function ranksOf({
95883
96063
  const [itemId, priority] = args.words.slice(2);
95884
96064
  const named = itemId && priority ? [`${itemId}=${priority}`] : [];
95885
96065
  return [...named, ...args.lists.set ?? []].map((pair) => {
95886
- const at2 = pair.indexOf("=");
95887
- if (at2 < 1) throw new CliUsageError(USAGE11);
96066
+ const at4 = pair.indexOf("=");
96067
+ if (at4 < 1) throw new CliUsageError(USAGE11);
95888
96068
  try {
95889
- return { itemId: pair.slice(0, at2), priority: rankOf(pair.slice(at2 + 1)) };
96069
+ return { itemId: pair.slice(0, at4), priority: rankOf(pair.slice(at4 + 1)) };
95890
96070
  } catch (error63) {
95891
96071
  throw new CliUsageError(error63 instanceof Error ? error63.message : String(error63));
95892
96072
  }
@@ -96234,8 +96414,8 @@ function peopleOf({ args }) {
96234
96414
  if (people2.length > 0) return people2;
96235
96415
  return one ? [one] : [];
96236
96416
  }
96237
- function wordAt6({ args, at: at2 }) {
96238
- const word3 = args.words[at2];
96417
+ function wordAt6({ args, at: at4 }) {
96418
+ const word3 = args.words[at4];
96239
96419
  if (!word3) throw new CliUsageError(USAGE12);
96240
96420
  return word3;
96241
96421
  }
@@ -96354,13 +96534,13 @@ function formatHistory(output2) {
96354
96534
  const lines2 = linesOf3(output2);
96355
96535
  if (lines2.length === 0) return `${where}${from}: no messages.
96356
96536
  `;
96357
- const count8 = lines2.length === 1 ? "1 message" : `${lines2.length} messages`;
96537
+ const count10 = lines2.length === 1 ? "1 message" : `${lines2.length} messages`;
96358
96538
  const blocks = lines2.map(blockOf2).join("\n\n");
96359
96539
  const cursor = olderCursorOf(output2);
96360
96540
  const older = cursor ? `
96361
96541
 
96362
96542
  Older: laze history ${output2.channel} --before ${cursor}` : "";
96363
- return `${where}${from}: ${count8}, oldest first
96543
+ return `${where}${from}: ${count10}, oldest first
96364
96544
 
96365
96545
  ${blocks}${older}
96366
96546
  `;
@@ -96446,7 +96626,7 @@ function money2({ amount, currency: currency2 }) {
96446
96626
  return `${currency2.toUpperCase()} ${Number(amount.toFixed(2))}`;
96447
96627
  }
96448
96628
  function inviteQuoteText(quote4) {
96449
- const at2 = (amount) => money2({ amount, currency: quote4.currency });
96629
+ const at4 = (amount) => money2({ amount, currency: quote4.currency });
96450
96630
  const people2 = `${quote4.peopleAfter} ${quote4.peopleAfter === 1 ? "person" : "people"}`;
96451
96631
  const seats = quote4.freeSeatsLeft ? ` ${quote4.freeSeatsLeft} free ${quote4.freeSeatsLeft === 1 ? "seat" : "seats"} left.` : "";
96452
96632
  if (quote4.plan === "free" && !quote4.upgradeNeeded) {
@@ -96456,11 +96636,11 @@ function inviteQuoteText(quote4) {
96456
96636
  return `Your plan holds ${quote4.seatCap} people, at no charge.
96457
96637
  `;
96458
96638
  }
96459
- const price = `${at2(quote4.monthlyAfter)} a month for ${people2} (${at2(quote4.perPersonAfter)} per person).${seats}`;
96639
+ const price = `${at4(quote4.monthlyAfter)} a month for ${people2} (${at4(quote4.perPersonAfter)} per person).${seats}`;
96460
96640
  if (quote4.upgradeNeeded)
96461
96641
  return `Team: ${price} This starts Team, paid through Stripe Checkout.
96462
96642
  `;
96463
- const change2 = quote4.monthlyAfter === quote4.monthlyNow ? "No change to your price." : `Was ${at2(quote4.monthlyNow)}; the change is prorated as each person joins.`;
96643
+ const change2 = quote4.monthlyAfter === quote4.monthlyNow ? "No change to your price." : `Was ${at4(quote4.monthlyNow)}; the change is prorated as each person joins.`;
96464
96644
  return `New price: ${price} ${change2}
96465
96645
  `;
96466
96646
  }
@@ -97012,7 +97192,7 @@ var KEYS_USAGE = `Usage:
97012
97192
  laze keys revoke <id> --any revoke any key of the workspace (admins)`;
97013
97193
  var printJson8 = (context, data) => context.out(`${JSON.stringify(data, null, 2)}
97014
97194
  `);
97015
- var lastUsed = (at2) => at2 ? `last used ${at2}` : "never used";
97195
+ var lastUsed = (at4) => at4 ? `last used ${at4}` : "never used";
97016
97196
  async function mine3({ context, args }) {
97017
97197
  const { client } = await signedIn({ context, args });
97018
97198
  const keys2 = await client.get("/api/api-keys/mine");
@@ -97292,8 +97472,8 @@ var MACHINE_ACCESS_USAGE = [
97292
97472
  " laze machine grant|revoke <machine> --member <userId> | --agent <agentId> share it or stop (owner)",
97293
97473
  " laze machine budget <machine> <usd> [--period day|week|month] its spend cap (owner)"
97294
97474
  ].join("\n");
97295
- function wordAt7({ args, at: at2 }) {
97296
- const value = args.words[at2];
97475
+ function wordAt7({ args, at: at4 }) {
97476
+ const value = args.words[at4];
97297
97477
  if (!value) throw new CliUsageError(`Usage:
97298
97478
  ${MACHINE_ACCESS_USAGE}`);
97299
97479
  return value;
@@ -97571,10 +97751,10 @@ ${USAGE13}`);
97571
97751
  if ("exitCode" in released) return released;
97572
97752
  Object.assign(env, released.env);
97573
97753
  }
97574
- const count8 = Object.keys(env).length;
97575
- if (count8 > EXEC_ENV_MAX) {
97754
+ const count10 = Object.keys(env).length;
97755
+ if (count10 > EXEC_ENV_MAX) {
97576
97756
  context.err(
97577
- `laze: these connections hold ${count8} variables; at most ${EXEC_ENV_MAX} go with a command. Send fewer connections, or run the command with \`laze vault run\` where you run.
97757
+ `laze: these connections hold ${count10} variables; at most ${EXEC_ENV_MAX} go with a command. Send fewer connections, or run the command with \`laze vault run\` where you run.
97578
97758
  `
97579
97759
  );
97580
97760
  return { exitCode: 1 };
@@ -97729,7 +97909,7 @@ function secretRefusal({
97729
97909
  rules = MCP_SECRET_COMMANDS
97730
97910
  }) {
97731
97911
  const { words, flags: flags2 } = parseArgs({ argv });
97732
- const command = [3, 2, 1].map((count8) => words.slice(0, count8).join(" ")).find((name3) => Object.hasOwn(rules, name3));
97912
+ const command = [3, 2, 1].map((count10) => words.slice(0, count10).join(" ")).find((name3) => Object.hasOwn(rules, name3));
97733
97913
  const rule = command === void 0 ? void 0 : rules[command];
97734
97914
  if (!command || !rule) return void 0;
97735
97915
  const vaultFlag = rule.vaultFlag ?? "from-vault";
@@ -98480,11 +98660,11 @@ async function monitorAdd({ context, args }) {
98480
98660
  });
98481
98661
  if (args.flags.json) return context.out(`${JSON.stringify(added, null, 2)}
98482
98662
  `);
98483
- const count8 = added.watching.length;
98663
+ const count10 = added.watching.length;
98484
98664
  context.out(
98485
98665
  `${added.monitor.id} ${added.monitor.name}
98486
98666
  ${added.watching.join(" ")}
98487
- Watching ${count8} ${count8 === 1 ? "channel" : "channels"}
98667
+ Watching ${count10} ${count10 === 1 ? "channel" : "channels"}
98488
98668
  `
98489
98669
  );
98490
98670
  }
@@ -99229,7 +99409,9 @@ var workspaceMemberSchemaDefinition = external_exports.object({
99229
99409
  /** Their picture, an uploaded or Google one; null or absent without one. */
99230
99410
  image: external_exports.string().nullable().optional(),
99231
99411
  /** Other names they go by in this workspace ("Also known as"); absent or empty without any. */
99232
- aliases: external_exports.array(external_exports.string()).optional()
99412
+ aliases: external_exports.array(external_exports.string()).optional(),
99413
+ /** Holds the Billing role beside their role: changes the running plan; absent is false. */
99414
+ billing: external_exports.boolean().optional()
99233
99415
  });
99234
99416
  var workspaceMemberSchema = workspaceMemberSchemaDefinition;
99235
99417
  var ALIASES_MAX_COUNT = 5;
@@ -99388,6 +99570,12 @@ var changeRoleInputSchemaDefinition = external_exports.object({
99388
99570
  role: workspaceRoleSchema
99389
99571
  });
99390
99572
  var changeRoleInputSchema = changeRoleInputSchemaDefinition;
99573
+ var setBillingInputSchemaDefinition = external_exports.object({
99574
+ workspaceId: external_exports.string().min(1),
99575
+ userId: external_exports.string().min(1),
99576
+ billing: external_exports.boolean()
99577
+ });
99578
+ var setBillingInputSchema = setBillingInputSchemaDefinition;
99391
99579
  var removeMemberInputSchemaDefinition2 = external_exports.object({
99392
99580
  workspaceId: external_exports.string().min(1),
99393
99581
  userId: external_exports.string().min(1)
@@ -99410,7 +99598,7 @@ var settingsCopy = {
99410
99598
  paintOnly: true,
99411
99599
  storable: (copy2) => copy2
99412
99600
  };
99413
- var workspaceTrpc = defineTrpcContract("workspace").mutation("create").withInput(createWorkspaceInputSchema).withOutput(workspaceCreatedSchema).query("get", { mirrored: settingsCopy }).withInput(workspaceIdInputSchema).withOutput(workspaceSchema).query("mine").withInput(external_exports.object({})).withOutput(external_exports.array(myWorkspaceSchema)).query("members").withInput(workspaceIdInputSchema).withOutput(external_exports.array(workspaceMemberSchema)).query("myMembership").withInput(workspaceIdInputSchema).withOutput(workspaceMemberSchema.nullable()).mutation("setMyAliases").withInput(setAliasesInputSchema).withOutput(workspaceMemberSchema).mutation("changeRole").withInput(changeRoleInputSchema).withOutput(workspaceMemberSchema).mutation("removeMember").withInput(removeMemberInputSchema2).withOutput(external_exports.object({ removed: external_exports.literal(true) })).mutation("leave").withInput(workspaceIdInputSchema).withOutput(external_exports.object({ left: external_exports.literal(true) })).mutation("invite").withInput(inviteMemberInputSchema).withOutput(workspaceInviteSchema).mutation("inviteMany").withInput(inviteManyInputSchema).withOutput(inviteManyResultSchema).mutation("requestInvites").withInput(inviteManyInputSchema).withOutput(requestInvitesResultSchema).query("invites").withInput(workspaceIdInputSchema).withOutput(external_exports.array(workspaceInviteSchema)).query("invitees").withInput(workspaceIdInputSchema).withOutput(external_exports.array(workspaceInviteeSchema)).mutation("revokeInvite").withInput(revokeInviteInputSchema).withOutput(external_exports.object({ revoked: external_exports.literal(true) })).mutation("copyInviteLink").withInput(revokeInviteInputSchema).withOutput(copiedInviteLinkSchema).query("previewInvite").withInput(inviteLinkInputSchema).withOutput(invitePreviewSchema).mutation("acceptInvite").withInput(inviteLinkInputSchema).withOutput(acceptedInviteSchema).mutation("rename").withInput(renameWorkspaceInputSchema).withOutput(workspaceSchema).mutation("setLogo").withInput(setWorkspaceLogoInputSchema).withOutput(workspaceSchema).mutation("removeLogo").withInput(workspaceIdInputSchema).withOutput(workspaceSchema).mutation("delete").withInput(deleteWorkspaceInputSchema).withOutput(workspaceSchema).mutation("cancelDeletion").withInput(workspaceIdInputSchema).withOutput(workspaceSchema).mutation("requestInvite").withInput(requestInviteInputSchema).withOutput(accessRequestSchema).query("accessRequests").withInput(workspaceIdInputSchema).withOutput(external_exports.array(accessRequestSchema)).mutation("decideAccessRequest").withInput(decideAccessRequestInputSchema).withOutput(accessRequestSchema).mutation("withdrawJoinRequest").withInput(external_exports.object({ workspaceId: external_exports.string().min(1), requestId: external_exports.string().min(1) })).withOutput(accessRequestSchema).query("groups").withInput(workspaceIdInputSchema).withOutput(external_exports.array(workspaceGroupSchema)).mutation("createGroup").withInput(createGroupInputSchema).withOutput(workspaceGroupSchema).mutation("renameGroup").withInput(renameGroupInputSchema).withOutput(workspaceGroupSchema).mutation("deleteGroup").withInput(groupInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).mutation("changeGroupMembers").withInput(changeGroupMembersInputSchema).withOutput(workspaceGroupSchema).build();
99601
+ var workspaceTrpc = defineTrpcContract("workspace").mutation("create").withInput(createWorkspaceInputSchema).withOutput(workspaceCreatedSchema).query("get", { mirrored: settingsCopy }).withInput(workspaceIdInputSchema).withOutput(workspaceSchema).query("mine").withInput(external_exports.object({})).withOutput(external_exports.array(myWorkspaceSchema)).query("members").withInput(workspaceIdInputSchema).withOutput(external_exports.array(workspaceMemberSchema)).query("myMembership").withInput(workspaceIdInputSchema).withOutput(workspaceMemberSchema.nullable()).mutation("setMyAliases").withInput(setAliasesInputSchema).withOutput(workspaceMemberSchema).mutation("changeRole").withInput(changeRoleInputSchema).withOutput(workspaceMemberSchema).mutation("setBilling").withInput(setBillingInputSchema).withOutput(workspaceMemberSchema).mutation("removeMember").withInput(removeMemberInputSchema2).withOutput(external_exports.object({ removed: external_exports.literal(true) })).mutation("leave").withInput(workspaceIdInputSchema).withOutput(external_exports.object({ left: external_exports.literal(true) })).mutation("invite").withInput(inviteMemberInputSchema).withOutput(workspaceInviteSchema).mutation("inviteMany").withInput(inviteManyInputSchema).withOutput(inviteManyResultSchema).mutation("requestInvites").withInput(inviteManyInputSchema).withOutput(requestInvitesResultSchema).query("invites").withInput(workspaceIdInputSchema).withOutput(external_exports.array(workspaceInviteSchema)).query("invitees").withInput(workspaceIdInputSchema).withOutput(external_exports.array(workspaceInviteeSchema)).mutation("revokeInvite").withInput(revokeInviteInputSchema).withOutput(external_exports.object({ revoked: external_exports.literal(true) })).mutation("copyInviteLink").withInput(revokeInviteInputSchema).withOutput(copiedInviteLinkSchema).query("previewInvite").withInput(inviteLinkInputSchema).withOutput(invitePreviewSchema).mutation("acceptInvite").withInput(inviteLinkInputSchema).withOutput(acceptedInviteSchema).mutation("rename").withInput(renameWorkspaceInputSchema).withOutput(workspaceSchema).mutation("setLogo").withInput(setWorkspaceLogoInputSchema).withOutput(workspaceSchema).mutation("removeLogo").withInput(workspaceIdInputSchema).withOutput(workspaceSchema).mutation("delete").withInput(deleteWorkspaceInputSchema).withOutput(workspaceSchema).mutation("cancelDeletion").withInput(workspaceIdInputSchema).withOutput(workspaceSchema).mutation("requestInvite").withInput(requestInviteInputSchema).withOutput(accessRequestSchema).query("accessRequests").withInput(workspaceIdInputSchema).withOutput(external_exports.array(accessRequestSchema)).mutation("decideAccessRequest").withInput(decideAccessRequestInputSchema).withOutput(accessRequestSchema).mutation("withdrawJoinRequest").withInput(external_exports.object({ workspaceId: external_exports.string().min(1), requestId: external_exports.string().min(1) })).withOutput(accessRequestSchema).query("groups").withInput(workspaceIdInputSchema).withOutput(external_exports.array(workspaceGroupSchema)).mutation("createGroup").withInput(createGroupInputSchema).withOutput(workspaceGroupSchema).mutation("renameGroup").withInput(renameGroupInputSchema).withOutput(workspaceGroupSchema).mutation("deleteGroup").withInput(groupInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).mutation("changeGroupMembers").withInput(changeGroupMembersInputSchema).withOutput(workspaceGroupSchema).build();
99414
99602
 
99415
99603
  // ../../modules/workspace/contract/src/workspace.config.ts
99416
99604
  var workspaceConfig = Config.define((c) => ({
@@ -100212,6 +100400,124 @@ var viewDefinition = external_exports.object({
100212
100400
  });
100213
100401
  var hostLoadViewSchema = viewDefinition;
100214
100402
 
100403
+ // ../../modules/rum/contract/src/browser-trace-reads.ts
100404
+ var browserSessionIdSchema = external_exports.string().regex(/^[0-9a-f]{32}$/, "a session id: 32 hex characters");
100405
+ var at3 = external_exports.iso.datetime();
100406
+ var browserErrorDefinition = external_exports.object({
100407
+ at: at3,
100408
+ traceId: external_exports.string(),
100409
+ spanId: external_exports.string(),
100410
+ sessionId: external_exports.string().nullable(),
100411
+ /** console, window or unhandledrejection. */
100412
+ source: external_exports.string().nullable(),
100413
+ /** Scrubbed by the page and again here, capped at 300 characters; untrusted text. */
100414
+ message: external_exports.string(),
100415
+ /** `file:line` per frame, at most 10. */
100416
+ frames: external_exports.array(external_exports.string()),
100417
+ uiRoute: external_exports.string().nullable(),
100418
+ /** The page build's `service.version`. */
100419
+ release: external_exports.string().nullable(),
100420
+ service: external_exports.string().nullable()
100421
+ });
100422
+ var browserErrorSchema = browserErrorDefinition;
100423
+ var sessionSpanDefinition = external_exports.object({
100424
+ at: at3,
100425
+ durationMs: external_exports.number().nonnegative(),
100426
+ traceId: external_exports.string(),
100427
+ spanId: external_exports.string(),
100428
+ name: external_exports.string().nullable(),
100429
+ kind: external_exports.string().nullable(),
100430
+ status: external_exports.string().nullable(),
100431
+ uiRoute: external_exports.string().nullable(),
100432
+ httpRoute: external_exports.string().nullable(),
100433
+ method: external_exports.string().nullable(),
100434
+ statusCode: external_exports.number().int().nullable(),
100435
+ /** The request's path: no host, query string or fragment, share links as `/share/:id`. */
100436
+ path: external_exports.string().nullable()
100437
+ });
100438
+ var sessionSpanSchema = sessionSpanDefinition;
100439
+
100440
+ // ../../modules/rum/contract/src/rum.api.ts
100441
+ var RumApi = moduleApi()("rum");
100442
+
100443
+ // ../../packages/secrets/src/secret.ts
100444
+ var SecretHandle = class {
100445
+ constructor(id4, optional2, schema) {
100446
+ this.id = id4;
100447
+ this.optional = optional2;
100448
+ this.schema = schema;
100449
+ }
100450
+ id;
100451
+ optional;
100452
+ schema;
100453
+ };
100454
+ var SecretFamilyHandle = class extends SecretHandle {
100455
+ family = true;
100456
+ constructor(prefix) {
100457
+ super(prefix, true, void 0);
100458
+ }
100459
+ };
100460
+ function load(id4, options) {
100461
+ return new SecretHandle(id4, options?.optional === true, options?.schema);
100462
+ }
100463
+ function family(prefix) {
100464
+ return new SecretFamilyHandle(prefix);
100465
+ }
100466
+ var Secret = { load, family };
100467
+
100468
+ // ../../packages/secrets/src/shared-secrets.ts
100469
+ var sessionSecret = Secret.load("NEXTAUTH_SECRET", { optional: true });
100470
+ var credentialsSecret = Secret.load("CREDENTIALS_SECRET", { optional: true });
100471
+ var credentialsSecretPrevious = Secret.load("CREDENTIALS_SECRET_PREVIOUS", {
100472
+ optional: true
100473
+ });
100474
+ var gatewayInternalSecret = Secret.load("LW_GATEWAY_INTERNAL_SECRET", { optional: true });
100475
+ var virtualKeyPepper = Secret.load("LW_VIRTUAL_KEY_PEPPER", { optional: true });
100476
+ var telemetryExporterHeaders = Secret.load("OTEL_EXPORTER_OTLP_HEADERS", {
100477
+ optional: true
100478
+ });
100479
+ var openAiApiKey = Secret.load("OPENAI_API_KEY", { optional: true });
100480
+ var internalSlackSignupsWebhook = Secret.load("SLACK_CHANNEL_SIGNUPS", { optional: true });
100481
+ var signInProviderSecrets = {
100482
+ googleClientSecret: Secret.load("GOOGLE_CLIENT_SECRET", { optional: true }),
100483
+ githubClientSecret: Secret.load("GITHUB_CLIENT_SECRET", { optional: true }),
100484
+ gitlabClientSecret: Secret.load("GITLAB_CLIENT_SECRET", { optional: true }),
100485
+ azureAdClientSecret: Secret.load("AZURE_AD_CLIENT_SECRET", { optional: true }),
100486
+ auth0ClientSecret: Secret.load("AUTH0_CLIENT_SECRET", { optional: true }),
100487
+ oktaClientSecret: Secret.load("OKTA_CLIENT_SECRET", { optional: true }),
100488
+ cognitoClientSecret: Secret.load("COGNITO_CLIENT_SECRET", { optional: true }),
100489
+ oneLoginClientSecret: Secret.load("ONELOGIN_CLIENT_SECRET", { optional: true }),
100490
+ oidcClientSecret: Secret.load("OIDC_CLIENT_SECRET", { optional: true })
100491
+ };
100492
+
100493
+ // ../../modules/rum/contract/src/rum.config.ts
100494
+ var blankIsUnset2 = (value) => value === "" ? void 0 : value;
100495
+ var ON_SPELLING = /^(1|true|on|yes)$/i;
100496
+ var OFF_SPELLING = /^(0|false|off|no)$/i;
100497
+ var rumConfig = Config.define((c) => ({
100498
+ browserTracing: c.env(
100499
+ "LAZE_BROWSER_TRACING",
100500
+ external_exports.string().optional().transform((value) => {
100501
+ if (value === void 0 || value.trim() === "") return void 0;
100502
+ if (ON_SPELLING.test(value.trim())) return true;
100503
+ return OFF_SPELLING.test(value.trim()) ? false : void 0;
100504
+ })
100505
+ ),
100506
+ sampleRatio: c.env(
100507
+ "LAZE_BROWSER_TRACING_SAMPLE_RATIO",
100508
+ external_exports.preprocess(blankIsUnset2, external_exports.coerce.number().min(0).max(1).default(1).catch(1))
100509
+ ),
100510
+ telemetryEndpoint: telemetryExporterEndpoint,
100511
+ /** Tempo's HTTP API, which the ops reads of browser errors and sessions search. */
100512
+ tempoUrl: c.env("LAZE_TEMPO_URL", external_exports.url().default("http://127.0.0.1:6651"))
100513
+ }));
100514
+ var rumBrowserConfigDefinition = external_exports.strictObject({
100515
+ /** Whether the page starts tracing and exports to `/api/rum/v1/traces`. */
100516
+ browserTracing: external_exports.boolean(),
100517
+ /** Share of visits recorded; the collector samples the rest of the way. */
100518
+ sampleRatio: external_exports.number().min(0).max(1)
100519
+ });
100520
+
100215
100521
  // ../../modules/ops/contract/src/ops-functions.ts
100216
100522
  var OPS_FUNCTION = {
100217
100523
  /** Functions one lease may name. */
@@ -100270,12 +100576,12 @@ var funnelInputDefinition = external_exports.object({
100270
100576
  to: external_exports.iso.datetime(),
100271
100577
  bucketMinutes: external_exports.union([external_exports.literal(10), external_exports.literal(60), external_exports.literal(1440)]).default(60)
100272
100578
  }).strict();
100273
- var count7 = external_exports.number().int().nonnegative();
100579
+ var count9 = external_exports.number().int().nonnegative();
100274
100580
  var funnelCountsDefinition = external_exports.object({
100275
- signUps: count7,
100276
- workspaces: count7,
100277
- activatedTeams: count7,
100278
- payingTeams: count7
100581
+ signUps: count9,
100582
+ workspaces: count9,
100583
+ activatedTeams: count9,
100584
+ payingTeams: count9
100279
100585
  });
100280
100586
  var funnelOutputDefinition = external_exports.object({
100281
100587
  bucketMinutes: external_exports.number().int(),
@@ -100301,23 +100607,23 @@ var cohortOutputDefinition = external_exports.object({
100301
100607
  promotionId: external_exports.string().nullable(),
100302
100608
  plan: external_exports.string(),
100303
100609
  paying: external_exports.boolean(),
100304
- members: count7,
100610
+ members: count9,
100305
100611
  agents: external_exports.object({
100306
- laze: count7,
100307
- connected: count7,
100612
+ laze: count9,
100613
+ connected: count9,
100308
100614
  firstLazeAgentAt: external_exports.iso.datetime().nullable()
100309
100615
  }),
100310
- turns: count7,
100311
- appsCreated: count7,
100312
- connectionsLinked: count7,
100616
+ turns: count9,
100617
+ appsCreated: count9,
100618
+ connectionsLinked: count9,
100313
100619
  creatorLastMessageAt: external_exports.iso.datetime().nullable(),
100314
100620
  /** Live messages per UTC day; days with none are left out. */
100315
100621
  days: external_exports.array(
100316
100622
  external_exports.object({
100317
100623
  day: external_exports.string(),
100318
- byPeople: count7,
100319
- byAgents: count7,
100320
- people: count7
100624
+ byPeople: count9,
100625
+ byAgents: count9,
100626
+ people: count9
100321
100627
  })
100322
100628
  ),
100323
100629
  /** The once-only sends nurturing kept (first_agent_made, first_agent_nudge, ...). */
@@ -100341,25 +100647,25 @@ var capacityOutputDefinition = external_exports.object({
100341
100647
  /** The last day of host load, oldest first. */
100342
100648
  history: external_exports.array(hostLoadPointSchema)
100343
100649
  });
100344
- var tally = external_exports.array(external_exports.object({ key: external_exports.string(), count: count7 }));
100650
+ var tally = external_exports.array(external_exports.object({ key: external_exports.string(), count: count9 }));
100345
100651
  var snapshotOutputDefinition = external_exports.object({
100346
100652
  workspaceId: external_exports.string(),
100347
100653
  createdAt: external_exports.iso.datetime(),
100348
100654
  plan: external_exports.string(),
100349
100655
  status: external_exports.string(),
100350
- seats: external_exports.object({ people: count7, limit: external_exports.number().int().nullable() }),
100656
+ seats: external_exports.object({ people: count9, limit: external_exports.number().int().nullable() }),
100351
100657
  membersByRole: tally,
100352
100658
  invitesByStatus: tally,
100353
100659
  agentsByKind: tally,
100354
100660
  agentsByHosting: tally,
100355
- agentsConnected: count7,
100661
+ agentsConnected: count9,
100356
100662
  flagsOn: external_exports.array(external_exports.string()),
100357
- complimentaryComputers: count7
100663
+ complimentaryComputers: count9
100358
100664
  });
100359
100665
  var eventsInputDefinition = external_exports.object({ from: external_exports.iso.datetime(), to: external_exports.iso.datetime() }).strict();
100360
100666
  var eventCountsDefinition = external_exports.object({
100361
- total: count7,
100362
- byType: external_exports.array(external_exports.object({ eventType: external_exports.string(), count: count7 }))
100667
+ total: count9,
100668
+ byType: external_exports.array(external_exports.object({ eventType: external_exports.string(), count: count9 }))
100363
100669
  });
100364
100670
  var tenantEventsInputDefinition = external_exports.object({
100365
100671
  from: external_exports.iso.datetime(),
@@ -100388,9 +100694,9 @@ var databaseHealthDefinition = external_exports.object({
100388
100694
  deadlocks: external_exports.number().nonnegative(),
100389
100695
  tempBytes: external_exports.number().nonnegative(),
100390
100696
  connections: external_exports.object({
100391
- total: count7,
100392
- byState: external_exports.array(external_exports.object({ state: external_exports.string(), count: count7 })),
100393
- waitingOnLocks: count7,
100697
+ total: count9,
100698
+ byState: external_exports.array(external_exports.object({ state: external_exports.string(), count: count9 })),
100699
+ waitingOnLocks: count9,
100394
100700
  longestActiveSeconds: external_exports.number().nonnegative(),
100395
100701
  longestIdleInTransactionSeconds: external_exports.number().nonnegative()
100396
100702
  }),
@@ -100421,7 +100727,7 @@ var tenantAgentsDefinition = external_exports.object({
100421
100727
  createdAt: external_exports.iso.datetime(),
100422
100728
  modelLevel: external_exports.string().nullable(),
100423
100729
  model: external_exports.string().nullable(),
100424
- channels: count7,
100730
+ channels: count9,
100425
100731
  limitedUntil: external_exports.iso.datetime().nullable(),
100426
100732
  limitedBy: external_exports.string().nullable(),
100427
100733
  pausedAt: external_exports.iso.datetime().nullable(),
@@ -100470,8 +100776,8 @@ var tenantBillingDefinition = external_exports.object({
100470
100776
  currency: external_exports.string(),
100471
100777
  cancelAtPeriodEnd: external_exports.boolean(),
100472
100778
  period: external_exports.object({ start: external_exports.iso.datetime(), end: external_exports.iso.datetime() }).nullable(),
100473
- seats: external_exports.object({ people: count7, limit: count7.nullable(), monthlyPrice: external_exports.number() }),
100474
- complimentarySeats: count7.nullable(),
100779
+ seats: external_exports.object({ people: count9, limit: count9.nullable(), monthlyPrice: external_exports.number() }),
100780
+ complimentarySeats: count9.nullable(),
100475
100781
  credits: external_exports.object({
100476
100782
  included: external_exports.number(),
100477
100783
  includedLeft: external_exports.number(),
@@ -100510,14 +100816,14 @@ var tenantVaultDefinition = external_exports.object({
100510
100816
  external_exports.object({
100511
100817
  subject: external_exports.string(),
100512
100818
  most: external_exports.string(),
100513
- maxLeaseSeconds: count7.nullable(),
100819
+ maxLeaseSeconds: count9.nullable(),
100514
100820
  blocked: external_exports.boolean(),
100515
100821
  approveNew: external_exports.boolean(),
100516
100822
  updatedAt: external_exports.iso.datetime()
100517
100823
  })
100518
100824
  ),
100519
100825
  /** Connections waiting for an admin, counted by kind; never a name, label or field. */
100520
- waitingByKind: external_exports.array(external_exports.object({ key: external_exports.string(), count: count7 }))
100826
+ waitingByKind: external_exports.array(external_exports.object({ key: external_exports.string(), count: count9 }))
100521
100827
  });
100522
100828
  var WHATSAPP_INTAKE_KEY_KINDS = ["msg", "edit", "del", "react", "read"];
100523
100829
  var tenantWhatsappInputDefinition = external_exports.object({
@@ -100530,8 +100836,8 @@ var tenantWhatsappOutputDefinition = external_exports.object({
100530
100836
  intake: external_exports.object({
100531
100837
  since: external_exports.iso.datetime(),
100532
100838
  until: external_exports.iso.datetime(),
100533
- total: count7,
100534
- byKind: external_exports.array(external_exports.object({ kind: external_exports.enum([...WHATSAPP_INTAKE_KEY_KINDS, "other"]), count: count7 }))
100839
+ total: count9,
100840
+ byKind: external_exports.array(external_exports.object({ kind: external_exports.enum([...WHATSAPP_INTAKE_KEY_KINDS, "other"]), count: count9 }))
100535
100841
  })
100536
100842
  });
100537
100843
  var wakeTimelineInputDefinition = external_exports.object({
@@ -100559,6 +100865,32 @@ var judgeMeasureOutputDefinition = external_exports.object({
100559
100865
  thresholds: vaultJudgeMeasureSchema.shape.thresholds,
100560
100866
  keys: pageOf(vaultJudgeMeasureSchema.shape.keys.element)
100561
100867
  });
100868
+ var vaultAsksInputDefinition = external_exports.object({
100869
+ from: external_exports.iso.datetime(),
100870
+ to: external_exports.iso.datetime(),
100871
+ agentId: external_exports.string().trim().min(1).max(128).optional(),
100872
+ limit: external_exports.number().int().min(1).max(500).default(100),
100873
+ cursor: cursorDefinition.optional()
100874
+ }).strict();
100875
+ var vaultAsksOutputDefinition = external_exports.object({ asks: pageOf(vaultOpsAskSchema) });
100876
+ var browserErrorsInputDefinition = external_exports.object({
100877
+ from: external_exports.iso.datetime(),
100878
+ to: external_exports.iso.datetime(),
100879
+ /** Keeps errors whose message holds this, ignoring case. */
100880
+ message: external_exports.string().trim().min(1).max(200).optional(),
100881
+ sessionId: browserSessionIdSchema.optional(),
100882
+ limit: external_exports.number().int().min(1).max(500).default(100),
100883
+ cursor: cursorDefinition.optional()
100884
+ }).strict();
100885
+ var browserErrorsOutputDefinition = external_exports.object({ errors: pageOf(browserErrorSchema) });
100886
+ var sessionSpansInputDefinition = external_exports.object({
100887
+ from: external_exports.iso.datetime(),
100888
+ to: external_exports.iso.datetime(),
100889
+ sessionId: browserSessionIdSchema,
100890
+ limit: external_exports.number().int().min(1).max(500).default(200),
100891
+ cursor: cursorDefinition.optional()
100892
+ }).strict();
100893
+ var sessionSpansOutputDefinition = external_exports.object({ spans: pageOf(sessionSpanSchema) });
100562
100894
  var entry = (value) => value;
100563
100895
  var OPS_FUNCTIONS = {
100564
100896
  "workspaces.find": entry({
@@ -100667,6 +100999,20 @@ var OPS_FUNCTIONS = {
100667
100999
  input: tenantWhatsappInputDefinition,
100668
101000
  output: tenantWhatsappOutputDefinition
100669
101001
  }),
101002
+ "tenant.slack": entry({
101003
+ title: "One workspace's Slack mirrors: bot, cache window and thread gaps as counts",
101004
+ scope: "tenant",
101005
+ view: "table",
101006
+ input: noInputDefinition,
101007
+ output: slackMirrorHealthSchema
101008
+ }),
101009
+ "tenant.vault_asks": entry({
101010
+ title: "One workspace's vault approval cards over a range: state, decider, joins and times",
101011
+ scope: "tenant",
101012
+ view: "table",
101013
+ input: vaultAsksInputDefinition,
101014
+ output: vaultAsksOutputDefinition
101015
+ }),
100670
101016
  "computers.wake_timeline": entry({
100671
101017
  title: "One workspace's last WhatsApp wakes per computer, with each step's time",
100672
101018
  scope: "tenant",
@@ -100688,6 +101034,21 @@ var OPS_FUNCTIONS = {
100688
101034
  input: judgeMeasureInputDefinition,
100689
101035
  output: judgeMeasureOutputDefinition
100690
101036
  }),
101037
+ "traces.browser_errors": entry({
101038
+ title: "Browser errors over a range: message, frames, route, release and session",
101039
+ scope: "platform",
101040
+ view: "table",
101041
+ input: browserErrorsInputDefinition,
101042
+ output: browserErrorsOutputDefinition,
101043
+ scrubbedText: ["message"]
101044
+ }),
101045
+ "traces.session_spans": entry({
101046
+ title: "One browser session's spans over a range: names, routes, status codes and times",
101047
+ scope: "platform",
101048
+ view: "table",
101049
+ input: sessionSpansInputDefinition,
101050
+ output: sessionSpansOutputDefinition
101051
+ }),
100691
101052
  "tenant.snapshot": entry({
100692
101053
  title: "One workspace's plan, members, agents and flags, as counts",
100693
101054
  scope: "tenant",
@@ -100754,11 +101115,11 @@ function typedArg(text3) {
100754
101115
  }
100755
101116
  function argsOf({ args }) {
100756
101117
  const pairs = (args.lists.arg ?? []).map((pair) => {
100757
- const at2 = pair.indexOf("=");
100758
- if (at2 < 1) throw new CliUsageError(`--arg takes name=value.
101118
+ const at4 = pair.indexOf("=");
101119
+ if (at4 < 1) throw new CliUsageError(`--arg takes name=value.
100759
101120
  ${OPERATOR_KEY_USAGE}`);
100760
- const text3 = pair.slice(at2 + 1);
100761
- return [pair.slice(0, at2), typedArg(text3)];
101121
+ const text3 = pair.slice(at4 + 1);
101122
+ return [pair.slice(0, at4), typedArg(text3)];
100762
101123
  });
100763
101124
  return Object.fromEntries(pairs);
100764
101125
  }
@@ -101155,14 +101516,14 @@ var CHECK_WAIT_TRIES = 30;
101155
101516
  function timingOf(args) {
101156
101517
  const cron = flagText({ args, name: "cron" });
101157
101518
  const rrule = flagText({ args, name: "rrule" });
101158
- const at2 = flagText({ args, name: "at" });
101159
- const given = [cron, rrule, at2].filter(Boolean);
101519
+ const at4 = flagText({ args, name: "at" });
101520
+ const given = [cron, rrule, at4].filter(Boolean);
101160
101521
  if (given.length !== 1)
101161
101522
  throw new CliUsageError(`Give exactly one of --cron, --rrule or --at.
101162
101523
  ${USAGE17}`);
101163
101524
  if (cron) return { kind: "cron", cron };
101164
101525
  if (rrule) return { kind: "rrule", rrule };
101165
- return { kind: "once", at: at2 };
101526
+ return { kind: "once", at: at4 };
101166
101527
  }
101167
101528
  function printSchedule({ context, schedule: schedule2 }) {
101168
101529
  const next = schedule2.nextFireAt ? `next ${schedule2.nextFireAt}` : "no next fire";
@@ -102271,10 +102632,10 @@ function bareLineOf({ line, where }) {
102271
102632
  throw new CliUsageError(`${where}: not a name: ${line}`);
102272
102633
  }
102273
102634
  function lineOf4({ line, where }) {
102274
- const at2 = line.indexOf("=");
102275
- if (at2 === -1) return bareLineOf({ line, where });
102276
- const variable = line.slice(0, at2).trim();
102277
- const value = line.slice(at2 + 1).trim();
102635
+ const at4 = line.indexOf("=");
102636
+ if (at4 === -1) return bareLineOf({ line, where });
102637
+ const variable = line.slice(0, at4).trim();
102638
+ const value = line.slice(at4 + 1).trim();
102278
102639
  if (!VARIABLE.test(variable)) {
102279
102640
  throw new CliUsageError(`${where}: not a variable name: ${variable}`);
102280
102641
  }
@@ -102558,12 +102919,12 @@ The reason comes from --reason, else KV_REASON or LAZE_VAULT_REASON: set it on e
102558
102919
  helm or terraform command, which reach this through credential_process.`;
102559
102920
  function withWaitSeconds(args) {
102560
102921
  if (args.flags.wait !== true) return args;
102561
- const at2 = args.words.findLastIndex((word3, index) => index >= 2 && /^\d+$/.test(word3));
102562
- if (at2 === -1) return args;
102922
+ const at4 = args.words.findLastIndex((word3, index) => index >= 2 && /^\d+$/.test(word3));
102923
+ if (at4 === -1) return args;
102563
102924
  return {
102564
102925
  ...args,
102565
- words: args.words.filter((_, index) => index !== at2),
102566
- flags: { ...args.flags, wait: args.words[at2] ?? "" }
102926
+ words: args.words.filter((_, index) => index !== at4),
102927
+ flags: { ...args.flags, wait: args.words[at4] ?? "" }
102567
102928
  };
102568
102929
  }
102569
102930
  function reasonOf({ context, args }) {
@@ -102753,9 +103114,9 @@ function execProviderIds({ request: request2 }) {
102753
103114
  return Array.isArray(ids) ? ids.filter((id4) => typeof id4 === "string") : [];
102754
103115
  }
102755
103116
  function splitExecId({ id: id4 }) {
102756
- const at2 = id4.indexOf("#");
102757
- if (at2 === -1) return { connection: id4 };
102758
- return { connection: id4.slice(0, at2), field: id4.slice(at2 + 1) };
103117
+ const at4 = id4.indexOf("#");
103118
+ if (at4 === -1) return { connection: id4 };
103119
+ return { connection: id4.slice(0, at4), field: id4.slice(at4 + 1) };
102759
103120
  }
102760
103121
  function valueOf({
102761
103122
  fields,
@@ -102899,7 +103260,7 @@ async function vaultSave({ context, args }) {
102899
103260
  // src/services/vault-scrub-commands.service.ts
102900
103261
  function lineOf5(channel) {
102901
103262
  const where = channel.name ? `#${channel.name}` : channel.channelId;
102902
- const found = Object.entries(channel.found).map(([vendor, count8]) => `${vendor} ${count8}`).join(", ");
103263
+ const found = Object.entries(channel.found).map(([vendor, count10]) => `${vendor} ${count10}`).join(", ");
102903
103264
  const kinds = [`held ${channel.held}`, ...found ? [`found: ${found}`] : []].join("; ");
102904
103265
  return `${where} scanned ${channel.scanned} changed ${channel.messages} ${kinds}
102905
103266
  `;
@@ -103588,8 +103949,8 @@ var USAGE20 = [
103588
103949
  "With no machine it is the WhatsApp linked on your (or your agent's owner's) Laze computer.",
103589
103950
  "A chat is its id, a phone number or a contact or group name."
103590
103951
  ].join("\n");
103591
- function word2({ args, at: at2 }) {
103592
- const value = args.words[at2];
103952
+ function word2({ args, at: at4 }) {
103953
+ const value = args.words[at4];
103593
103954
  if (!value) throw new CliUsageError(USAGE20);
103594
103955
  return value;
103595
103956
  }
@@ -103889,8 +104250,8 @@ async function roles({ context, args }) {
103889
104250
  const catalogue = await client.get("/api/roles");
103890
104251
  if (args.flags.json) return printJson11(context, catalogue);
103891
104252
  for (const role2 of catalogue) {
103892
- const count8 = `${role2.permissions.length} permissions`;
103893
- context.out(`${role2.label} ${count8} ${role2.description}
104253
+ const count10 = `${role2.permissions.length} permissions`;
104254
+ context.out(`${role2.label} ${count10} ${role2.description}
103894
104255
  `);
103895
104256
  context.out(` ${role2.permissions.join(", ")}
103896
104257
  `);
@@ -103992,6 +104353,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
103992
104353
  laze members invite-link <email|id> a fresh link for an invitation, shown once (admins)
103993
104354
  laze members aka [<name>...] [--clear] the other names you go by, such as a nickname
103994
104355
  laze members role <member> owner|admin|member|guest change a member's role (admins)
104356
+ laze members billing <member> on|off give or take away the Billing role (admins)
103995
104357
  laze members remove <member> take someone out of the workspace (admins)
103996
104358
  laze members requests | approve <id> | deny <id> access requests waiting for an admin
103997
104359
  laze groups [list] the workspace's groups and who is in each
@@ -104147,7 +104509,7 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
104147
104509
  laze vault grant|share|lend|grants|ungrant|leases|end-lease|limits|set-limit sharing, leases, limits
104148
104510
  laze vault audit|activity|most-asked|approvals|judge|devices what happened (audit: admins)
104149
104511
  laze vault every laze vault command, with its flags
104150
- laze connect suggest <service|domain|url> --reason "<why>" a connect card for whoever asked (agents)
104512
+ laze connect suggest <service|domain|url> --reason "<why>" a connect card for your owner (agents)
104151
104513
  When a person asks for something in a service that is not connected, run
104152
104514
  laze connect suggest yourself (a name, the vendor's domain or its MCP URL); never ask for
104153
104515
  passwords or keys in chat, never ask a person to run a command: the card signs in or takes the key