@lazehq/cli 0.1.141 → 0.1.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/laze.mjs +439 -242
- package/package.json +1 -1
package/dist/laze.mjs
CHANGED
|
@@ -21645,12 +21645,12 @@ var require_date = __commonJS({
|
|
|
21645
21645
|
return parseRfc850Date(date5);
|
|
21646
21646
|
}
|
|
21647
21647
|
}
|
|
21648
|
-
function makeDate(year, monthIdx,
|
|
21649
|
-
const result2 = new Date(Date.UTC(year, monthIdx,
|
|
21648
|
+
function makeDate(year, monthIdx, day3, hour, minute, second, weekday) {
|
|
21649
|
+
const result2 = new Date(Date.UTC(year, monthIdx, day3, hour, minute, second));
|
|
21650
21650
|
if (year >= 0 && year <= 99) {
|
|
21651
21651
|
result2.setUTCFullYear(year);
|
|
21652
21652
|
}
|
|
21653
|
-
return result2.getUTCFullYear() === year && result2.getUTCMonth() === monthIdx && result2.getUTCDate() ===
|
|
21653
|
+
return result2.getUTCFullYear() === year && result2.getUTCMonth() === monthIdx && result2.getUTCDate() === day3 && result2.getUTCHours() === hour && result2.getUTCMinutes() === minute && result2.getUTCSeconds() === second && result2.getUTCDay() === weekday ? result2 : void 0;
|
|
21654
21654
|
}
|
|
21655
21655
|
function parseImfDate(date5) {
|
|
21656
21656
|
if (date5.length !== 29 || date5[4] !== " " || date5[7] !== " " || date5[11] !== " " || date5[16] !== " " || date5[19] !== ":" || date5[22] !== ":" || date5[25] !== " " || date5[26] !== "G" || date5[27] !== "M" || date5[28] !== "T") {
|
|
@@ -21674,13 +21674,13 @@ var require_date = __commonJS({
|
|
|
21674
21674
|
} else {
|
|
21675
21675
|
return void 0;
|
|
21676
21676
|
}
|
|
21677
|
-
let
|
|
21677
|
+
let day3 = 0;
|
|
21678
21678
|
if (date5[5] === "0") {
|
|
21679
21679
|
const code4 = date5.charCodeAt(6);
|
|
21680
21680
|
if (code4 < 49 || code4 > 57) {
|
|
21681
21681
|
return void 0;
|
|
21682
21682
|
}
|
|
21683
|
-
|
|
21683
|
+
day3 = code4 - 48;
|
|
21684
21684
|
} else {
|
|
21685
21685
|
const code1 = date5.charCodeAt(5);
|
|
21686
21686
|
if (code1 < 49 || code1 > 51) {
|
|
@@ -21690,7 +21690,7 @@ var require_date = __commonJS({
|
|
|
21690
21690
|
if (code22 < 48 || code22 > 57) {
|
|
21691
21691
|
return void 0;
|
|
21692
21692
|
}
|
|
21693
|
-
|
|
21693
|
+
day3 = (code1 - 48) * 10 + (code22 - 48);
|
|
21694
21694
|
}
|
|
21695
21695
|
let monthIdx = -1;
|
|
21696
21696
|
if (date5[8] === "J" && date5[9] === "a" && date5[10] === "n") {
|
|
@@ -21812,7 +21812,7 @@ var require_date = __commonJS({
|
|
|
21812
21812
|
}
|
|
21813
21813
|
second = (code1 - 48) * 10 + (code22 - 48);
|
|
21814
21814
|
}
|
|
21815
|
-
return makeDate(year, monthIdx,
|
|
21815
|
+
return makeDate(year, monthIdx, day3, hour, minute, second, weekday);
|
|
21816
21816
|
}
|
|
21817
21817
|
function parseAscTimeDate(date5) {
|
|
21818
21818
|
if (date5.length !== 24 || date5[7] !== " " || date5[10] !== " " || date5[19] !== " ") {
|
|
@@ -21882,13 +21882,13 @@ var require_date = __commonJS({
|
|
|
21882
21882
|
} else {
|
|
21883
21883
|
return void 0;
|
|
21884
21884
|
}
|
|
21885
|
-
let
|
|
21885
|
+
let day3 = 0;
|
|
21886
21886
|
if (date5[8] === " ") {
|
|
21887
21887
|
const code4 = date5.charCodeAt(9);
|
|
21888
21888
|
if (code4 < 49 || code4 > 57) {
|
|
21889
21889
|
return void 0;
|
|
21890
21890
|
}
|
|
21891
|
-
|
|
21891
|
+
day3 = code4 - 48;
|
|
21892
21892
|
} else {
|
|
21893
21893
|
const code1 = date5.charCodeAt(8);
|
|
21894
21894
|
if (code1 < 49 || code1 > 51) {
|
|
@@ -21898,7 +21898,7 @@ var require_date = __commonJS({
|
|
|
21898
21898
|
if (code22 < 48 || code22 > 57) {
|
|
21899
21899
|
return void 0;
|
|
21900
21900
|
}
|
|
21901
|
-
|
|
21901
|
+
day3 = (code1 - 48) * 10 + (code22 - 48);
|
|
21902
21902
|
}
|
|
21903
21903
|
let hour = 0;
|
|
21904
21904
|
if (date5[11] === "0") {
|
|
@@ -21974,7 +21974,7 @@ var require_date = __commonJS({
|
|
|
21974
21974
|
return void 0;
|
|
21975
21975
|
}
|
|
21976
21976
|
const year = (yearDigit1 - 48) * 1e3 + (yearDigit2 - 48) * 100 + (yearDigit3 - 48) * 10 + (yearDigit4 - 48);
|
|
21977
|
-
return makeDate(year, monthIdx,
|
|
21977
|
+
return makeDate(year, monthIdx, day3, hour, minute, second, weekday);
|
|
21978
21978
|
}
|
|
21979
21979
|
function parseRfc850Date(date5) {
|
|
21980
21980
|
let commaIndex = -1;
|
|
@@ -22010,13 +22010,13 @@ var require_date = __commonJS({
|
|
|
22010
22010
|
if (date5[commaIndex] !== "," || date5.length - commaIndex - 1 !== 23 || date5[commaIndex + 1] !== " " || date5[commaIndex + 4] !== "-" || date5[commaIndex + 8] !== "-" || date5[commaIndex + 11] !== " " || date5[commaIndex + 14] !== ":" || date5[commaIndex + 17] !== ":" || date5[commaIndex + 20] !== " " || date5[commaIndex + 21] !== "G" || date5[commaIndex + 22] !== "M" || date5[commaIndex + 23] !== "T") {
|
|
22011
22011
|
return void 0;
|
|
22012
22012
|
}
|
|
22013
|
-
let
|
|
22013
|
+
let day3 = 0;
|
|
22014
22014
|
if (date5[commaIndex + 2] === "0") {
|
|
22015
22015
|
const code4 = date5.charCodeAt(commaIndex + 3);
|
|
22016
22016
|
if (code4 < 49 || code4 > 57) {
|
|
22017
22017
|
return void 0;
|
|
22018
22018
|
}
|
|
22019
|
-
|
|
22019
|
+
day3 = code4 - 48;
|
|
22020
22020
|
} else {
|
|
22021
22021
|
const code1 = date5.charCodeAt(commaIndex + 2);
|
|
22022
22022
|
if (code1 < 49 || code1 > 51) {
|
|
@@ -22026,7 +22026,7 @@ var require_date = __commonJS({
|
|
|
22026
22026
|
if (code22 < 48 || code22 > 57) {
|
|
22027
22027
|
return void 0;
|
|
22028
22028
|
}
|
|
22029
|
-
|
|
22029
|
+
day3 = (code1 - 48) * 10 + (code22 - 48);
|
|
22030
22030
|
}
|
|
22031
22031
|
let monthIdx = -1;
|
|
22032
22032
|
if (date5[commaIndex + 5] === "J" && date5[commaIndex + 6] === "a" && date5[commaIndex + 7] === "n") {
|
|
@@ -22123,7 +22123,7 @@ var require_date = __commonJS({
|
|
|
22123
22123
|
}
|
|
22124
22124
|
second = (code1 - 48) * 10 + (code22 - 48);
|
|
22125
22125
|
}
|
|
22126
|
-
return makeDate(year, monthIdx,
|
|
22126
|
+
return makeDate(year, monthIdx, day3, hour, minute, second, weekday);
|
|
22127
22127
|
}
|
|
22128
22128
|
module.exports = {
|
|
22129
22129
|
parseHttpDate
|
|
@@ -31077,15 +31077,15 @@ ${value}`;
|
|
|
31077
31077
|
pos = 0;
|
|
31078
31078
|
}
|
|
31079
31079
|
}
|
|
31080
|
-
discardLeadingBytes(
|
|
31081
|
-
while (
|
|
31080
|
+
discardLeadingBytes(count19) {
|
|
31081
|
+
while (count19 > 0 && this.lineChunkIndex < this.chunks.length) {
|
|
31082
31082
|
const chunk = this.chunks[this.lineChunkIndex];
|
|
31083
31083
|
const remaining = chunk.length - this.linePos;
|
|
31084
|
-
if (
|
|
31085
|
-
this.linePos +=
|
|
31086
|
-
|
|
31084
|
+
if (count19 < remaining) {
|
|
31085
|
+
this.linePos += count19;
|
|
31086
|
+
count19 = 0;
|
|
31087
31087
|
} else {
|
|
31088
|
-
|
|
31088
|
+
count19 -= remaining;
|
|
31089
31089
|
this.lineChunkIndex++;
|
|
31090
31090
|
this.linePos = 0;
|
|
31091
31091
|
}
|
|
@@ -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
|
|
31838
|
-
const p =
|
|
31837
|
+
for (const count19 of counts.values()) {
|
|
31838
|
+
const p = count19 / sample.length;
|
|
31839
31839
|
entropy -= p * Math.log2(p);
|
|
31840
31840
|
}
|
|
31841
31841
|
return entropy;
|
|
@@ -33150,11 +33150,11 @@ function computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, isLeapMonth) {
|
|
|
33150
33150
|
};
|
|
33151
33151
|
}
|
|
33152
33152
|
}
|
|
33153
|
-
function computeIsoFieldsFromParts(year, month,
|
|
33153
|
+
function computeIsoFieldsFromParts(year, month, day3) {
|
|
33154
33154
|
return {
|
|
33155
33155
|
year,
|
|
33156
33156
|
month,
|
|
33157
|
-
day:
|
|
33157
|
+
day: day3
|
|
33158
33158
|
};
|
|
33159
33159
|
}
|
|
33160
33160
|
function computeIsoDaysInMonth(year, month) {
|
|
@@ -33244,8 +33244,8 @@ function computeCalendarMonthCodeParts(calendar, year, month) {
|
|
|
33244
33244
|
function computeCalendarEraFields(calendar, isoDate) {
|
|
33245
33245
|
return 0 === calendar ? computeGregoryEraFields(isoDate) : calendar && calendar.h?.(isoDate) || {};
|
|
33246
33246
|
}
|
|
33247
|
-
function computeCalendarIsoFieldsFromParts(calendar, year, month,
|
|
33248
|
-
return calendar ? calendar.de(year, month,
|
|
33247
|
+
function computeCalendarIsoFieldsFromParts(calendar, year, month, day3) {
|
|
33248
|
+
return calendar ? calendar.de(year, month, day3) : computeIsoFieldsFromParts(year, month, day3);
|
|
33249
33249
|
}
|
|
33250
33250
|
function computeCalendarMonthsInYearForYear(calendar, year) {
|
|
33251
33251
|
return calendar ? calendar.j(year) : 12;
|
|
@@ -33677,8 +33677,8 @@ function roundBigNanoToInc(bigNano, bigNanoInc, roundingMode) {
|
|
|
33677
33677
|
return roundBigNanoToIncWithTail(bigNano, bigNanoInc, roundingMode, bigNano / bigNanoInc % 2n);
|
|
33678
33678
|
}
|
|
33679
33679
|
function roundBigNanoToDayOriginInc(bigNano, bigNanoInc, roundingMode) {
|
|
33680
|
-
const [
|
|
33681
|
-
const dayOriginNano =
|
|
33680
|
+
const [day3, timeNano] = divModFloorBigInt(bigNano, bigNanoInUtcDay);
|
|
33681
|
+
const dayOriginNano = day3 * bigNanoInUtcDay;
|
|
33682
33682
|
return dayOriginNano + roundBigNanoToIncWithTail(timeNano, bigNanoInc, roundingMode, (dayOriginNano / bigNanoInc + timeNano / bigNanoInc) % 2n);
|
|
33683
33683
|
}
|
|
33684
33684
|
function roundBigNanoToIncWithTail(bigNano, bigNanoInc, roundingMode, quotientTail) {
|
|
@@ -33880,7 +33880,7 @@ function dateAddWithOverflow(calendar, isoDateFields, durationFields, overflow)
|
|
|
33880
33880
|
}
|
|
33881
33881
|
function addDateMonths(calendar, isoDateFields, years, months, overflow) {
|
|
33882
33882
|
const dateParts = computeCalendarDateFields(calendar, isoDateFields);
|
|
33883
|
-
let { year, month, day:
|
|
33883
|
+
let { year, month, day: day3 } = dateParts;
|
|
33884
33884
|
if (years) {
|
|
33885
33885
|
const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, year, month);
|
|
33886
33886
|
year += years, month = computeYearMovedMonth(calendar, monthCodeNumber, isLeapMonth, calendar ? calendar.p(year) : void 0, overflow), month = clampEntity("month", month, 1, computeCalendarMonthsInYearForYear(calendar, year), overflow);
|
|
@@ -33889,7 +33889,7 @@ function addDateMonths(calendar, isoDateFields, years, months, overflow) {
|
|
|
33889
33889
|
const yearMonthParts = calendar ? calendar.K(year, month, months) : addIsoMonths(year, month, months);
|
|
33890
33890
|
({ year, month } = yearMonthParts);
|
|
33891
33891
|
}
|
|
33892
|
-
return
|
|
33892
|
+
return day3 = clampEntity("day", day3, 1, computeCalendarDaysInMonthForYearMonth(calendar, year, month), overflow), computeCalendarIsoFieldsFromParts(calendar, year, month, day3);
|
|
33893
33893
|
}
|
|
33894
33894
|
function computeYearMovedMonth(calendar, monthCodeNumber, isLeapMonth, targetLeapMonth, overflow) {
|
|
33895
33895
|
if (isLeapMonth) {
|
|
@@ -34464,31 +34464,31 @@ function createPlainMonthDayFromFields(calendar, fields, options) {
|
|
|
34464
34464
|
const monthCodeParts = parseMonthCodeField(fields);
|
|
34465
34465
|
let yearMaybe = void 0 !== fields.eraYear || void 0 !== fields.year ? resolveCalendarYear(calendar, fields) : void 0;
|
|
34466
34466
|
const overflow = refineOverflowOptions(options);
|
|
34467
|
-
let
|
|
34467
|
+
let day3;
|
|
34468
34468
|
let monthCodeNumber;
|
|
34469
34469
|
let isLeapMonth;
|
|
34470
34470
|
if (void 0 === yearMaybe && isIso && (yearMaybe = 1972), void 0 !== yearMaybe) {
|
|
34471
34471
|
isIso || checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, yearMaybe, 1, 1));
|
|
34472
34472
|
const month = resolveCalendarMonth(calendar, fields, yearMaybe, overflow, monthCodeParts);
|
|
34473
|
-
|
|
34473
|
+
day3 = resolveCalendarDay(calendar, fields, month, yearMaybe, overflow), [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, yearMaybe, month);
|
|
34474
34474
|
} else {
|
|
34475
34475
|
void 0 === fields.monthCode && throwTypeError("Missing month/monthCode"), [monthCodeNumber, isLeapMonth] = monthCodeParts;
|
|
34476
34476
|
const referenceYear = calendar ? calendar.ne : 1972;
|
|
34477
34477
|
if (void 0 !== referenceYear) {
|
|
34478
|
-
|
|
34478
|
+
day3 = resolveCalendarDay(calendar, fields, resolveCalendarMonth(calendar, fields, referenceYear, overflow, monthCodeParts), referenceYear, overflow);
|
|
34479
34479
|
} else {
|
|
34480
34480
|
const constrainedDay = 0 === overflow && calendar ? calendar.fe?.(monthCodeNumber, isLeapMonth, fields.day) : void 0;
|
|
34481
|
-
|
|
34481
|
+
day3 = void 0 !== constrainedDay ? constrainedDay : fields.day;
|
|
34482
34482
|
}
|
|
34483
34483
|
}
|
|
34484
|
-
isLeapMonth && ((calendar && calendar.U?.[monthCodeNumber]) ?? 1 / 0) < fields.day && (1 === overflow && throwRangeError(invalidLeapMonth), isLeapMonth = 0,
|
|
34485
|
-
let res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth),
|
|
34486
|
-
for (; !res && 0 === overflow &&
|
|
34487
|
-
|
|
34484
|
+
isLeapMonth && ((calendar && calendar.U?.[monthCodeNumber]) ?? 1 / 0) < fields.day && (1 === overflow && throwRangeError(invalidLeapMonth), isLeapMonth = 0, day3 = constrainToRange2(fields.day, 1, (calendar && calendar.R) ?? 1 / 0));
|
|
34485
|
+
let res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth), day3) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, Boolean(isLeapMonth));
|
|
34486
|
+
for (; !res && 0 === overflow && day3 > 1; ) {
|
|
34487
|
+
day3--, res = calendar ? calendar.u(monthCodeNumber, Boolean(isLeapMonth), day3) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber, Boolean(isLeapMonth));
|
|
34488
34488
|
}
|
|
34489
34489
|
res || throwRangeError("Cannot guess year");
|
|
34490
34490
|
const { year: finalYear, month: finalMonth } = res;
|
|
34491
|
-
return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, finalYear, finalMonth,
|
|
34491
|
+
return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, finalYear, finalMonth, day3)), calendar);
|
|
34492
34492
|
}
|
|
34493
34493
|
var RawDateTimeFormat = Intl.DateTimeFormat;
|
|
34494
34494
|
function formatEpochMilliToPartsRecord(intlFormat, epochMilli) {
|
|
@@ -34950,13 +34950,13 @@ function parsePlainMonthDay(s, resolveCalendar) {
|
|
|
34950
34950
|
}
|
|
34951
34951
|
const dateSlots = finalizeDateLike(parsePlainDateLike(s), projectIsoMonthDayDate, resolveCalendar);
|
|
34952
34952
|
const { calendar } = dateSlots;
|
|
34953
|
-
const { year: origYear, month: origMonth, day:
|
|
34953
|
+
const { year: origYear, month: origMonth, day: day3 } = computeCalendarDateFields(calendar, dateSlots);
|
|
34954
34954
|
const [monthCodeNumber, isLeapMonth] = computeCalendarMonthCodeParts(calendar, origYear, origMonth);
|
|
34955
|
-
const { year, month } = ((calendar2, monthCodeNumber2, isLeapMonth2,
|
|
34956
|
-
const yearMonthFields = calendar2 ? calendar2.u(monthCodeNumber2, isLeapMonth2,
|
|
34955
|
+
const { year, month } = ((calendar2, monthCodeNumber2, isLeapMonth2, day4) => {
|
|
34956
|
+
const yearMonthFields = calendar2 ? calendar2.u(monthCodeNumber2, isLeapMonth2, day4) : computeIsoYearMonthFieldsForMonthDay(monthCodeNumber2, isLeapMonth2);
|
|
34957
34957
|
return yearMonthFields || throwRangeError("Cannot guess year"), yearMonthFields;
|
|
34958
|
-
})(calendar, monthCodeNumber, isLeapMonth,
|
|
34959
|
-
return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month,
|
|
34958
|
+
})(calendar, monthCodeNumber, isLeapMonth, day3);
|
|
34959
|
+
return createDateSlots(checkIsoDateInBounds(computeCalendarIsoFieldsFromParts(calendar, year, month, day3)), calendar);
|
|
34960
34960
|
}
|
|
34961
34961
|
function parsePlainTime(s) {
|
|
34962
34962
|
let organized = ((s2) => {
|
|
@@ -35017,10 +35017,10 @@ function finalizeDateLike(organized, isoDateProjector, resolveCalendar) {
|
|
|
35017
35017
|
return isoDateProjector && "iso8601" === organized.calendarId ? (validateIsoDateFields(organized), organized.re && validateTimeFields(organized), finalizeDate(isoDateProjector(organized), resolveCalendar)) : organized.re ? finalizeDateTime(organized, resolveCalendar) : finalizeDate(organized, resolveCalendar);
|
|
35018
35018
|
}
|
|
35019
35019
|
function projectIsoYearMonthDate(organized) {
|
|
35020
|
-
const
|
|
35020
|
+
const day3 = 12 * organized.year + organized.month === isoYearMonthIndexMin ? 20 : 1;
|
|
35021
35021
|
return {
|
|
35022
35022
|
...organized,
|
|
35023
|
-
day:
|
|
35023
|
+
day: day3
|
|
35024
35024
|
};
|
|
35025
35025
|
}
|
|
35026
35026
|
function projectIsoMonthDayDate(organized) {
|
|
@@ -35156,11 +35156,11 @@ function mergeZonedDateTimeFields(zonedDateTimeSlots, modFields, options) {
|
|
|
35156
35156
|
const { calendar, timeZone } = zonedDateTimeSlots;
|
|
35157
35157
|
const validFieldNames = getCalendarFieldNames(calendar, dateTimeAndOffsetFieldNamesAlpha, dateTimeAndOffsetFieldNamesWithEraAlpha);
|
|
35158
35158
|
const zonedSlots = zonedEpochSlotsToIso(zonedDateTimeSlots);
|
|
35159
|
-
const { year, month, day:
|
|
35159
|
+
const { year, month, day: day3 } = computeCalendarDateFields(calendar, zonedSlots);
|
|
35160
35160
|
const origFields = {
|
|
35161
35161
|
year,
|
|
35162
35162
|
monthCode: computeMonthCode(calendar, year, month),
|
|
35163
|
-
day:
|
|
35163
|
+
day: day3,
|
|
35164
35164
|
hour: zonedSlots.hour,
|
|
35165
35165
|
minute: zonedSlots.minute,
|
|
35166
35166
|
second: zonedSlots.second,
|
|
@@ -35181,11 +35181,11 @@ function mergeZonedDateTimeFields(zonedDateTimeSlots, modFields, options) {
|
|
|
35181
35181
|
function mergePlainDateTimeFields(plainDateTimeSlots, modFields, options) {
|
|
35182
35182
|
const { calendar } = plainDateTimeSlots;
|
|
35183
35183
|
const validFieldNames = getCalendarFieldNames(calendar, dateTimeFieldNamesAlpha, dateTimeFieldNamesWithEraAlpha);
|
|
35184
|
-
const { year, month, day:
|
|
35184
|
+
const { year, month, day: day3 } = computeCalendarDateFields(calendar, plainDateTimeSlots);
|
|
35185
35185
|
const origFields = {
|
|
35186
35186
|
year,
|
|
35187
35187
|
monthCode: computeMonthCode(calendar, year, month),
|
|
35188
|
-
day:
|
|
35188
|
+
day: day3,
|
|
35189
35189
|
hour: plainDateTimeSlots.hour,
|
|
35190
35190
|
minute: plainDateTimeSlots.minute,
|
|
35191
35191
|
second: plainDateTimeSlots.second,
|
|
@@ -35205,11 +35205,11 @@ function mergePlainDateTimeFields(plainDateTimeSlots, modFields, options) {
|
|
|
35205
35205
|
function mergePlainDateFields(plainDateSlots, modFields, options) {
|
|
35206
35206
|
const { calendar } = plainDateSlots;
|
|
35207
35207
|
const validFieldNames = getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha);
|
|
35208
|
-
const { year, month, day:
|
|
35208
|
+
const { year, month, day: day3 } = computeCalendarDateFields(calendar, plainDateSlots);
|
|
35209
35209
|
return createPlainDateFromFields(calendar, mergeCalendarFields(calendar, {
|
|
35210
35210
|
year,
|
|
35211
35211
|
monthCode: computeMonthCode(calendar, year, month),
|
|
35212
|
-
day:
|
|
35212
|
+
day: day3
|
|
35213
35213
|
}, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners)), options);
|
|
35214
35214
|
}
|
|
35215
35215
|
function mergePlainYearMonthFields(plainYearMonthSlots, modFields, options) {
|
|
@@ -35224,10 +35224,10 @@ function mergePlainYearMonthFields(plainYearMonthSlots, modFields, options) {
|
|
|
35224
35224
|
function mergePlainMonthDayFields(plainMonthDaySlots, modFields, options) {
|
|
35225
35225
|
const { calendar } = plainMonthDaySlots;
|
|
35226
35226
|
const validFieldNames = getCalendarFieldNames(calendar, dateFieldNamesAlpha, dateFieldNamesWithEraAlpha);
|
|
35227
|
-
const { year, month, day:
|
|
35227
|
+
const { year, month, day: day3 } = computeCalendarDateFields(calendar, plainMonthDaySlots);
|
|
35228
35228
|
return createPlainMonthDayFromFields(calendar, mergeCalendarFields(calendar, {
|
|
35229
35229
|
monthCode: computeMonthCode(calendar, year, month),
|
|
35230
|
-
day:
|
|
35230
|
+
day: day3
|
|
35231
35231
|
}, readAndRefineBagFields(modFields, validFieldNames, dateFieldRefiners)), options);
|
|
35232
35232
|
}
|
|
35233
35233
|
function mergePlainTimeFields(initialFields, mod, options) {
|
|
@@ -36984,7 +36984,7 @@ function shadowedLinkLineOf({ shadow }) {
|
|
|
36984
36984
|
}
|
|
36985
36985
|
|
|
36986
36986
|
// src/rules/cli-version.rules.ts
|
|
36987
|
-
var STAMPED = "0.1.
|
|
36987
|
+
var STAMPED = "0.1.143";
|
|
36988
36988
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
36989
36989
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
36990
36990
|
}
|
|
@@ -37086,7 +37086,7 @@ import { basename as basename2, dirname as dirname3, join as join4, resolve } fr
|
|
|
37086
37086
|
|
|
37087
37087
|
// src/rules/hook-settings.rules.ts
|
|
37088
37088
|
var LAZE_HOOK_MARKER = "laze-cli-hook";
|
|
37089
|
-
var HOOK_TIMEOUTS = { Stop: 30, PreToolUse:
|
|
37089
|
+
var HOOK_TIMEOUTS = { Stop: 30, PreToolUse: 30, SessionStart: 30 };
|
|
37090
37090
|
var TIMEOUTS = HOOK_TIMEOUTS;
|
|
37091
37091
|
var WAIT_HOOK_TIMEOUT_SECONDS = 7 * 24 * 60 * 60;
|
|
37092
37092
|
function withHooks({
|
|
@@ -37563,7 +37563,8 @@ var SWITCHES = /* @__PURE__ */ new Set([
|
|
|
37563
37563
|
"ask",
|
|
37564
37564
|
"real-value",
|
|
37565
37565
|
"default",
|
|
37566
|
-
"set-default"
|
|
37566
|
+
"set-default",
|
|
37567
|
+
"full-access"
|
|
37567
37568
|
]);
|
|
37568
37569
|
function parseArgs({ argv }) {
|
|
37569
37570
|
const words = [];
|
|
@@ -38873,14 +38874,14 @@ function codePointLength(str) {
|
|
|
38873
38874
|
const units = str.length;
|
|
38874
38875
|
if (!highSurrogate.test(str))
|
|
38875
38876
|
return units;
|
|
38876
|
-
let
|
|
38877
|
+
let count19 = units;
|
|
38877
38878
|
for (let i = 0; i < units - 1; i++) {
|
|
38878
38879
|
if ((str.charCodeAt(i) & 64512) === 55296 && (str.charCodeAt(i + 1) & 64512) === 56320) {
|
|
38879
|
-
|
|
38880
|
+
count19--;
|
|
38880
38881
|
i++;
|
|
38881
38882
|
}
|
|
38882
38883
|
}
|
|
38883
|
-
return
|
|
38884
|
+
return count19;
|
|
38884
38885
|
}
|
|
38885
38886
|
function getLengthableOrigin(input2) {
|
|
38886
38887
|
if (Array.isArray(input2))
|
|
@@ -43235,8 +43236,8 @@ function az_default() {
|
|
|
43235
43236
|
}
|
|
43236
43237
|
|
|
43237
43238
|
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/be.js
|
|
43238
|
-
function getBelarusianPlural(
|
|
43239
|
-
const absCount = Math.abs(
|
|
43239
|
+
function getBelarusianPlural(count19, one, few, many) {
|
|
43240
|
+
const absCount = Math.abs(count19);
|
|
43240
43241
|
const lastDigit = absCount % 10;
|
|
43241
43242
|
const lastTwoDigits = absCount % 100;
|
|
43242
43243
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -45883,8 +45884,8 @@ function hu_default() {
|
|
|
45883
45884
|
}
|
|
45884
45885
|
|
|
45885
45886
|
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/hy.js
|
|
45886
|
-
function getArmenianPlural(
|
|
45887
|
-
return Math.abs(
|
|
45887
|
+
function getArmenianPlural(count19, one, many) {
|
|
45888
|
+
return Math.abs(count19) === 1 ? one : many;
|
|
45888
45889
|
}
|
|
45889
45890
|
function withDefiniteArticle(word3) {
|
|
45890
45891
|
if (!word3)
|
|
@@ -48622,8 +48623,8 @@ function ro_default() {
|
|
|
48622
48623
|
}
|
|
48623
48624
|
|
|
48624
48625
|
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/ru.js
|
|
48625
|
-
function getRussianPlural(
|
|
48626
|
-
const absCount = Math.abs(
|
|
48626
|
+
function getRussianPlural(count19, one, few, many) {
|
|
48627
|
+
const absCount = Math.abs(count19);
|
|
48627
48628
|
const lastDigit = absCount % 10;
|
|
48628
48629
|
const lastTwoDigits = absCount % 100;
|
|
48629
48630
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -59871,7 +59872,7 @@ var deviceGrantSummarySchemaDefinition = external_exports.object({
|
|
|
59871
59872
|
});
|
|
59872
59873
|
var deviceGrantSummarySchema = deviceGrantSummarySchemaDefinition;
|
|
59873
59874
|
var ApiKeyApi = moduleApi()("api-key");
|
|
59874
|
-
var apiKeyTrpc = defineTrpcContract("apiKey").mutation("create").withInput(createApiKeyInputSchema).withOutput(createdApiKeySchema).query("list").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.array(apiKeySummarySchema)).mutation("revoke").withInput(revokeApiKeyInputSchema).withOutput(external_exports.object({ revoked: external_exports.literal(true) })).query("listMine").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.array(personalApiKeySchema)).mutation("revokeMine").withInput(revokeApiKeyInputSchema).withOutput(external_exports.object({ revoked: external_exports.literal(true) })).query("deviceGrant").withInput(external_exports.object({ workspaceId: external_exports.string().min(1), userCode: external_exports.string().min(1).max(20) })).withOutput(deviceGrantSummarySchema).mutation("approveDevice").withInput(decideDeviceGrantInputSchema).withOutput(external_exports.object({ approved: external_exports.literal(true) })).mutation("denyDevice").withInput(decideDeviceGrantInputSchema).withOutput(external_exports.object({ denied: external_exports.literal(true) })).build();
|
|
59875
|
+
var apiKeyTrpc = defineTrpcContract("apiKey").mutation("create").withInput(createApiKeyInputSchema).withOutput(createdApiKeySchema.meta({ deprecated: true })).query("list").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.array(apiKeySummarySchema).meta({ deprecated: true })).mutation("revoke").withInput(revokeApiKeyInputSchema).withOutput(external_exports.object({ revoked: external_exports.literal(true) }).meta({ deprecated: true })).query("listMine").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(external_exports.array(personalApiKeySchema)).mutation("revokeMine").withInput(revokeApiKeyInputSchema).withOutput(external_exports.object({ revoked: external_exports.literal(true) })).query("deviceGrant").withInput(external_exports.object({ workspaceId: external_exports.string().min(1), userCode: external_exports.string().min(1).max(20) })).withOutput(deviceGrantSummarySchema).mutation("approveDevice").withInput(decideDeviceGrantInputSchema).withOutput(external_exports.object({ approved: external_exports.literal(true) })).mutation("denyDevice").withInput(decideDeviceGrantInputSchema).withOutput(external_exports.object({ denied: external_exports.literal(true) })).build();
|
|
59875
59876
|
|
|
59876
59877
|
// ../../modules/api-key/contract/src/api-key.events.ts
|
|
59877
59878
|
var API_KEY_MACHINE_ALERT_KINDS = [
|
|
@@ -61157,7 +61158,9 @@ var answerVaultApprovalInputSchemaDefinition = external_exports.object({
|
|
|
61157
61158
|
/** A short reason, question or steer for the agent, sent with the answer. */
|
|
61158
61159
|
resolutionNote: resolutionNoteSchema,
|
|
61159
61160
|
/** A fresh passkey, Touch ID or Face ID proof: an Allow on a device-approval key needs one. */
|
|
61160
|
-
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
61161
|
+
reauthToken: external_exports.string().min(1).max(200).optional(),
|
|
61162
|
+
/** The request ids the card showed; a joined ask not among them gets a card of its own. */
|
|
61163
|
+
seenRequestIds: external_exports.array(external_exports.string().min(1).max(64)).max(50).optional()
|
|
61161
61164
|
});
|
|
61162
61165
|
var answerVaultApprovalInputSchema = answerVaultApprovalInputSchemaDefinition;
|
|
61163
61166
|
var requestVaultActionInputSchemaDefinition = external_exports.object({
|
|
@@ -61436,7 +61439,7 @@ var vaultCoreTrpc = defineTrpcContract("vault").mutation("createConnection").wit
|
|
|
61436
61439
|
reason: external_exports.string().trim().min(1).max(200),
|
|
61437
61440
|
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
61438
61441
|
})
|
|
61439
|
-
).withOutput(external_exports.object({ fields: external_exports.record(external_exports.string(), external_exports.string()) })).mutation("beginReauth").withInput(beginVaultReauthInputSchema).withOutput(vaultReauthChallengeSchema).mutation("confirmReauth").withInput(confirmVaultReauthInputSchema).withOutput(vaultReauthProofSchema).mutation("grantConnection").withInput(grantVaultConnectionInputSchema).withOutput(vaultGrantSchema).mutation("lendToChannel").withInput(lendVaultConnectionInputSchema).withOutput(vaultGrantSchema).mutation("revokeGrant").withInput(revokeVaultGrantInputSchema).withOutput(external_exports.object({ revoked: external_exports.literal(true) })).query("listGrants").withInput(connectionInput).withOutput(external_exports.array(vaultGrantSchema)).query("listKeyActivity").withInput(listVaultKeyActivityInputSchema).withOutput(external_exports.array(vaultKeyActivitySchema)).mutation("shareConnection").withInput(shareVaultConnectionInputSchema).withOutput(vaultGrantSchema).mutation("approveShare").withInput(approveVaultShareInputSchema).withOutput(vaultGrantSchema).mutation("approveMachineKey").withInput(approveVaultMachineKeyInputSchema).withOutput(approvedVaultMachineKeySchema).query("readLock").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(vaultReadLockSchema).query("referenceHolder").withInput(vaultReferenceHolderInputSchema).withOutput(vaultReferenceHolderSchema).mutation("unlockReads").withInput(unlockVaultReadsInputSchema).withOutput(vaultReadLockSchema).mutation("sealConnection").withInput(sealVaultConnectionInputSchema).withOutput(vaultConnectionSchema).query("listApprovals").withInput(external_exports.object({ ...workspaceInput.shape, state: vaultApprovalListStateSchema.optional() })).withOutput(external_exports.array(vaultApprovalRequestSchema)).mutation("answerApproval").withInput(answerVaultApprovalInputSchema).withOutput(vaultApprovalRequestSchema).query("listAudit").withInput(vaultAuditReadInputSchema).withOutput(vaultAuditPageSchema).query("listActivity").withInput(vaultAuditReadInputSchema).withOutput(external_exports.array(vaultAuditEntrySchema)).query("listLeases").withInput(workspaceInput).withOutput(external_exports.array(vaultLeaseSchema)).mutation("endLease").withInput(endVaultLeaseInputSchema).withOutput(external_exports.object({ ended: external_exports.literal(true) })).query("mostAsked").withInput(vaultMostAskedInputSchema).withOutput(vaultMostAskedSchema).query("judgeStatus").withInput(workspaceInput).withOutput(vaultJudgeStatusSchema).query("listLevelLimits").withInput(workspaceInput).withOutput(external_exports.array(vaultLevelLimitSchema)).mutation("setLevelLimit").withInput(setVaultLevelLimitInputSchema).withOutput(external_exports.array(vaultLevelLimitSchema)).query("listDevices").withInput(listVaultDevicesInput).withOutput(external_exports.array(vaultDeviceSchema)).mutation("beginDeviceEnrolment").withInput(workspaceInput).withOutput(vaultDeviceEnrolmentSchema).mutation("finishDeviceEnrolment").withInput(finishVaultDeviceEnrolmentInputSchema).withOutput(vaultDeviceSchema).mutation("beginDeviceApproval").withInput(external_exports.object({ ...workspaceInput.shape, deviceId: external_exports.string().min(1) })).withOutput(external_exports.object({ challenge: external_exports.string(), sealed: external_exports.array(vaultSealedMaterialSchema) })).mutation("approveDevice").withInput(approveVaultDeviceInputSchema).withOutput(vaultDeviceSchema).mutation("renameDevice").withInput(renameVaultDeviceInputSchema).withOutput(vaultDeviceSchema).mutation("removeDevice").withInput(
|
|
61442
|
+
).withOutput(external_exports.object({ fields: external_exports.record(external_exports.string(), external_exports.string()) })).mutation("beginReauth").withInput(beginVaultReauthInputSchema).withOutput(vaultReauthChallengeSchema).mutation("confirmReauth").withInput(confirmVaultReauthInputSchema).withOutput(vaultReauthProofSchema).mutation("grantConnection").withInput(grantVaultConnectionInputSchema).withOutput(vaultGrantSchema).mutation("lendToChannel").withInput(lendVaultConnectionInputSchema).withOutput(vaultGrantSchema).mutation("revokeGrant").withInput(revokeVaultGrantInputSchema).withOutput(external_exports.object({ revoked: external_exports.literal(true) })).query("listGrants").withInput(connectionInput).withOutput(external_exports.array(vaultGrantSchema)).query("listKeyActivity").withInput(listVaultKeyActivityInputSchema).withOutput(external_exports.array(vaultKeyActivitySchema)).mutation("shareConnection").withInput(shareVaultConnectionInputSchema).withOutput(vaultGrantSchema).mutation("approveShare").withInput(approveVaultShareInputSchema).withOutput(vaultGrantSchema).mutation("approveMachineKey").withInput(approveVaultMachineKeyInputSchema).withOutput(approvedVaultMachineKeySchema).query("readLock").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(vaultReadLockSchema).query("referenceHolder").withInput(vaultReferenceHolderInputSchema).withOutput(vaultReferenceHolderSchema).mutation("unlockReads").withInput(unlockVaultReadsInputSchema).withOutput(vaultReadLockSchema).mutation("sealConnection").withInput(sealVaultConnectionInputSchema).withOutput(vaultConnectionSchema).query("listApprovals").withInput(external_exports.object({ ...workspaceInput.shape, state: vaultApprovalListStateSchema.optional() })).withOutput(external_exports.array(vaultApprovalRequestSchema)).mutation("answerApproval").withInput(answerVaultApprovalInputSchema).withOutput(vaultApprovalRequestSchema).query("listAudit").withInput(vaultAuditReadInputSchema).withOutput(vaultAuditPageSchema).query("listActivity").withInput(vaultAuditReadInputSchema).withOutput(external_exports.array(vaultAuditEntrySchema)).query("listLeases").withInput(workspaceInput).withOutput(external_exports.array(vaultLeaseSchema)).mutation("endLease").withInput(endVaultLeaseInputSchema).withOutput(external_exports.object({ ended: external_exports.literal(true) })).query("mostAsked").withInput(vaultMostAskedInputSchema).withOutput(vaultMostAskedSchema.meta({ deprecated: true })).query("judgeStatus").withInput(workspaceInput).withOutput(vaultJudgeStatusSchema).query("listLevelLimits").withInput(workspaceInput).withOutput(external_exports.array(vaultLevelLimitSchema)).mutation("setLevelLimit").withInput(setVaultLevelLimitInputSchema).withOutput(external_exports.array(vaultLevelLimitSchema)).query("listDevices").withInput(listVaultDevicesInput).withOutput(external_exports.array(vaultDeviceSchema)).mutation("beginDeviceEnrolment").withInput(workspaceInput).withOutput(vaultDeviceEnrolmentSchema).mutation("finishDeviceEnrolment").withInput(finishVaultDeviceEnrolmentInputSchema).withOutput(vaultDeviceSchema).mutation("beginDeviceApproval").withInput(external_exports.object({ ...workspaceInput.shape, deviceId: external_exports.string().min(1) })).withOutput(external_exports.object({ challenge: external_exports.string(), sealed: external_exports.array(vaultSealedMaterialSchema) })).mutation("approveDevice").withInput(approveVaultDeviceInputSchema).withOutput(vaultDeviceSchema).mutation("renameDevice").withInput(renameVaultDeviceInputSchema).withOutput(vaultDeviceSchema).mutation("removeDevice").withInput(
|
|
61440
61443
|
external_exports.object({
|
|
61441
61444
|
...workspaceInput.shape,
|
|
61442
61445
|
deviceId: external_exports.string().min(1),
|
|
@@ -61448,7 +61451,7 @@ var vaultCoreTrpc = defineTrpcContract("vault").mutation("createConnection").wit
|
|
|
61448
61451
|
reason: external_exports.string().trim().min(1).max(200),
|
|
61449
61452
|
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
61450
61453
|
})
|
|
61451
|
-
).withOutput(vaultSealedMaterialSchema).query("getSealedApproval").withInput(external_exports.object({ ...workspaceInput.shape, requestId: external_exports.string().min(1) })).withOutput(vaultSealedApprovalSchema).mutation("answerSealedApproval").withInput(answerSealedApprovalInputSchema).withOutput(vaultApprovalRequestSchema).mutation("compareSecret").withInput(compareVaultSecretInputSchema).withOutput(vaultSecretComparisonSchema).mutation("replaceSecretValue").withInput(replaceVaultSecretValueInputSchema).withOutput(vaultConnectionSchema).mutation("savePastedSecret").withInput(external_exports.object({ ...workspaceInput.shape, ...saveVaultPastedSecretBodySchema.shape })).withOutput(vaultPastedSecretSavedSchema).build();
|
|
61454
|
+
).withOutput(vaultSealedMaterialSchema).query("getSealedApproval").withInput(external_exports.object({ ...workspaceInput.shape, requestId: external_exports.string().min(1) })).withOutput(vaultSealedApprovalSchema).mutation("answerSealedApproval").withInput(answerSealedApprovalInputSchema).withOutput(vaultApprovalRequestSchema).mutation("compareSecret").withInput(compareVaultSecretInputSchema).withOutput(vaultSecretComparisonSchema.meta({ deprecated: true })).mutation("replaceSecretValue").withInput(replaceVaultSecretValueInputSchema).withOutput(vaultConnectionSchema.meta({ deprecated: true })).mutation("savePastedSecret").withInput(external_exports.object({ ...workspaceInput.shape, ...saveVaultPastedSecretBodySchema.shape })).withOutput(vaultPastedSecretSavedSchema).build();
|
|
61452
61455
|
var vaultAgentRuleTrpc = defineTrpcContract("vault").query("listAgentRules").withInput(listVaultAgentRulesInputSchema).withOutput(external_exports.array(vaultAgentRuleEntrySchema)).mutation("setAgentRule").withInput(setVaultAgentRuleInputSchema).withOutput(external_exports.array(vaultAgentRuleEntrySchema)).build();
|
|
61453
61456
|
var vaultTierTrpc = defineTrpcContract("vault").query("tierPolicy").withInput(workspaceInput).withOutput(vaultTierPolicySchema).mutation("setTierSetting").withInput(setVaultTierSettingInputSchema).withOutput(vaultTierPolicySchema).mutation("setSubjectTier").withInput(setVaultSubjectTierInputSchema).withOutput(vaultTierPolicySchema).build();
|
|
61454
61457
|
var vaultEgressHostTrpc = defineTrpcContract("vault").query("listEgressHosts").withInput(vaultEgressHostInputSchema.omit({ host: true })).withOutput(external_exports.array(vaultEgressHostSchema)).mutation("addEgressHost").withInput(vaultEgressHostInputSchema).withOutput(external_exports.array(vaultEgressHostSchema)).mutation("removeEgressHost").withInput(vaultEgressHostInputSchema).withOutput(external_exports.array(vaultEgressHostSchema)).build();
|
|
@@ -61557,6 +61560,21 @@ var vaultApprovalRequestedPayloadSchemaDefinition = external_exports.object({
|
|
|
61557
61560
|
/** The connector's service ("Gmail") when the key is one; what everyone may see of the ask. */
|
|
61558
61561
|
service: external_exports.string().nullish()
|
|
61559
61562
|
});
|
|
61563
|
+
var vaultApprovalUpdatedPayloadSchemaDefinition = external_exports.object({
|
|
61564
|
+
workspaceId: external_exports.string().min(1),
|
|
61565
|
+
/** The card's own request, the one its feed card and push name. */
|
|
61566
|
+
requestId: external_exports.string().min(1),
|
|
61567
|
+
/** Every ask the card shows, `requestId` first; an answer covers only those its client saw. */
|
|
61568
|
+
requestIds: external_exports.array(external_exports.string().min(1)).min(1),
|
|
61569
|
+
/** "2 keys: ClickHouse prod, Grafana prod". */
|
|
61570
|
+
connectionLabel: external_exports.string(),
|
|
61571
|
+
/** The connector's service when every key shares it; null otherwise. */
|
|
61572
|
+
service: external_exports.string().nullish(),
|
|
61573
|
+
agentId: external_exports.string(),
|
|
61574
|
+
channelId: external_exports.string(),
|
|
61575
|
+
approverUserIds: external_exports.array(external_exports.string()),
|
|
61576
|
+
at: external_exports.iso.datetime()
|
|
61577
|
+
});
|
|
61560
61578
|
var vaultApprovalResolvedPayloadSchemaDefinition = external_exports.object({
|
|
61561
61579
|
workspaceId: external_exports.string().min(1),
|
|
61562
61580
|
requestId: external_exports.string().min(1),
|
|
@@ -61576,6 +61594,8 @@ var vaultApprovalResolvedPayloadSchemaDefinition = external_exports.object({
|
|
|
61576
61594
|
blockedUntil: external_exports.iso.datetime().nullable().default(null),
|
|
61577
61595
|
/** An expired card closed because the agent's turn that asked ended; nothing is blocked. */
|
|
61578
61596
|
endedWithTurn: external_exports.boolean().optional(),
|
|
61597
|
+
/** Closed because the key's level now lets the use through; `endedWithTurn` is set too. */
|
|
61598
|
+
keyNowAllows: external_exports.boolean().optional(),
|
|
61579
61599
|
/** A task card: its Allow covered the rest of the agent's turn. */
|
|
61580
61600
|
coversTask: external_exports.boolean().optional(),
|
|
61581
61601
|
/** Settled by another card's Allow for this agent, whose lease now covers this ask too. */
|
|
@@ -62087,15 +62107,15 @@ function clustersIn({
|
|
|
62087
62107
|
const out = [];
|
|
62088
62108
|
let current3 = null;
|
|
62089
62109
|
for (let index = segment.start; index <= segment.end; index += 1) {
|
|
62090
|
-
const
|
|
62091
|
-
if (
|
|
62110
|
+
const count19 = flagged[index] ?? 0;
|
|
62111
|
+
if (count19 === 0) continue;
|
|
62092
62112
|
if (current3 && index - current3.end - 1 <= REDACTED_BLOCK_MAX_GAP) {
|
|
62093
62113
|
current3.end = index;
|
|
62094
|
-
current3.values +=
|
|
62114
|
+
current3.values += count19;
|
|
62095
62115
|
continue;
|
|
62096
62116
|
}
|
|
62097
62117
|
if (current3) out.push(current3);
|
|
62098
|
-
current3 = { start: index, end: index, values:
|
|
62118
|
+
current3 = { start: index, end: index, values: count19 };
|
|
62099
62119
|
}
|
|
62100
62120
|
if (current3) out.push(current3);
|
|
62101
62121
|
return out;
|
|
@@ -62135,7 +62155,7 @@ function redactedBlocksAt({
|
|
|
62135
62155
|
}
|
|
62136
62156
|
const blocks = redactedBlocks({ lines: lines2, flagged });
|
|
62137
62157
|
const inside = (line) => blocks.some((block2) => line >= block2.start && line <= block2.end);
|
|
62138
|
-
const values = flagged.reduce((sum,
|
|
62158
|
+
const values = flagged.reduce((sum, count19, line) => inside(line) ? sum + count19 : sum, 0);
|
|
62139
62159
|
return { values, insideAt: (offset) => inside(lineAt(offset)) };
|
|
62140
62160
|
}
|
|
62141
62161
|
|
|
@@ -62470,6 +62490,13 @@ var vaultAlertsSettleRequestedPayloadSchemaDefinition = external_exports.object(
|
|
|
62470
62490
|
requestId: external_exports.string().min(1),
|
|
62471
62491
|
at: external_exports.iso.datetime()
|
|
62472
62492
|
});
|
|
62493
|
+
var vaultLockRequestedPayloadSchemaDefinition = external_exports.object({
|
|
62494
|
+
/** The alert workspace (VAULT_ALERT_WORKSPACE_ID), whose stream records the request. */
|
|
62495
|
+
workspaceId: external_exports.string().min(1),
|
|
62496
|
+
reason: external_exports.string().trim().min(1).max(200),
|
|
62497
|
+
requestId: external_exports.string().min(1),
|
|
62498
|
+
at: external_exports.iso.datetime()
|
|
62499
|
+
});
|
|
62473
62500
|
var vaultWatchReportReceivedPayloadSchemaDefinition = external_exports.object({
|
|
62474
62501
|
/** The alert workspace (VAULT_ALERT_WORKSPACE_ID), where a stopped watchdog's card lands. */
|
|
62475
62502
|
workspaceId: external_exports.string().min(1),
|
|
@@ -62578,7 +62605,8 @@ function unusableFieldProblems({
|
|
|
62578
62605
|
fields
|
|
62579
62606
|
}) {
|
|
62580
62607
|
return Object.entries(fields).flatMap(([field, value]) => {
|
|
62581
|
-
if (PLACEHOLDER.test(value))
|
|
62608
|
+
if (PLACEHOLDER.test(value))
|
|
62609
|
+
return [`${field} holds a reference to a vault key, not the key itself`];
|
|
62582
62610
|
return [];
|
|
62583
62611
|
});
|
|
62584
62612
|
}
|
|
@@ -63595,8 +63623,12 @@ var attentionCardSchemaDefinition = external_exports.object({
|
|
|
63595
63623
|
/**
|
|
63596
63624
|
* A vault approval as everyone sees it: who decides and, for a connector, its service. The key,
|
|
63597
63625
|
* call and reason are only in the vault, which its deciders read through `attentionDetail`.
|
|
63626
|
+
* `keys` counts the keys of a card that gained some, so a decider's client reads it again.
|
|
63598
63627
|
*/
|
|
63599
|
-
waiting: external_exports.object({
|
|
63628
|
+
waiting: external_exports.object({
|
|
63629
|
+
service: external_exports.string().max(120).nullable(),
|
|
63630
|
+
keys: external_exports.number().int().min(2).max(50).optional()
|
|
63631
|
+
}).optional(),
|
|
63600
63632
|
/** People who may decide; empty means anyone in the conversation. */
|
|
63601
63633
|
deciderIds: external_exports.array(external_exports.string()),
|
|
63602
63634
|
state: attentionCardStateSchema,
|
|
@@ -63735,6 +63767,8 @@ var loginCardLoginSchemaDefinition = external_exports.object({
|
|
|
63735
63767
|
id: idSchema4,
|
|
63736
63768
|
name: external_exports.string().max(120),
|
|
63737
63769
|
status: external_exports.enum(["ready", "limited", "signed_out"]),
|
|
63770
|
+
/** With `signed_out`: Anthropic refused Claude Code on its subscription. */
|
|
63771
|
+
blocked: external_exports.boolean().optional(),
|
|
63738
63772
|
/** "session limit", "weekly limit": the window that ran out, for people. */
|
|
63739
63773
|
window: external_exports.string().max(40).nullable(),
|
|
63740
63774
|
until: external_exports.iso.datetime().nullable()
|
|
@@ -65420,7 +65454,7 @@ var chatChannelRolesTrpc = defineTrpcContract("chat").mutation("setChannelRole")
|
|
|
65420
65454
|
var chatMessagesTrpc = defineTrpcContract("chat").query("history", { mirrored: historyMirror }).withInput(historyInputSchema).withOutput(historyPageSchema).query("thread").withInput(messageInputSchema).withOutput(threadSchema).query("message").withInput(messageInputSchema).withOutput(messageSchema).mutation("post").withInput(postMessageInputSchema).withOutput(messageSchema).mutation("forward").withInput(forwardMessageInputSchema).withOutput(messageSchema).mutation("addMentioned").withInput(addMentionedInputSchema).withOutput(messageSchema).mutation("letMentionedKnow").withInput(letMentionedKnowInputSchema).withOutput(letMentionedKnowResultSchema).mutation("edit").withInput(editMessageInputSchema).withOutput(messageSchema).mutation("delete").withInput(messageInputSchema).withOutput(messageSchema).mutation("remove").withInput(messageInputSchema).withOutput(messageSchema).mutation("react").withInput(reactInputSchema).withOutput(messageSchema).mutation("signalTyping").withInput(signalTypingInputSchema).withOutput(external_exports.object({ sent: external_exports.literal(true) })).mutation("markRead").withInput(markReadInputSchema).withOutput(external_exports.object({ lastReadSeq: external_exports.number().int().nonnegative() })).mutation("markUnread").withInput(markUnreadInputSchema).withOutput(external_exports.object({ lastReadSeq: external_exports.number().int().nonnegative() })).query("search").withInput(searchInputSchema).withOutput(searchResultSchema).build();
|
|
65421
65455
|
var chatFilesTrpc = defineTrpcContract("chat").mutation("startUpload").withInput(startUploadInputSchema).withOutput(uploadTicketSchema).mutation("completeUpload").withInput(completeUploadInputSchema).withOutput(attachmentSchema).mutation("transcribeVoiceSegment").withInput(transcribeVoiceSegmentInputSchema).withOutput(voiceSegmentTextSchema).mutation("abortUpload").withInput(fileInputSchema).withOutput(external_exports.object({ aborted: external_exports.literal(true) })).query("fileLink").withInput(fileLinkInputSchema).withOutput(fileLinkSchema).query("fileLinks").withInput(fileLinksInputSchema).withOutput(fileLinksSchema).query("channelFiles").withInput(channelFilesInputSchema).withOutput(channelFilesSchema).mutation("renameAttachment").withInput(renameAttachmentInputSchema).withOutput(attachmentSchema).mutation("hideUnfurl").withInput(hideUnfurlInputSchema).withOutput(messageSchema).query("unfurlImage").withInput(unfurlImageInputSchema).withOutput(fileLinkSchema).query("searchGifs").withInput(searchGifsInputSchema).withOutput(gifResultsSchema).build();
|
|
65422
65456
|
var chatFollowingTrpc = defineTrpcContract("chat").mutation("setNotify").withInput(setNotifyInputSchema).withOutput(conversationSummarySchema).mutation("setReplySide").withInput(setReplySideInputSchema).withOutput(conversationSummarySchema).mutation("hideConversation").withInput(channelInputSchema).withOutput(external_exports.object({ hidden: external_exports.literal(true) })).mutation("followThread").withInput(followThreadInputSchema).withOutput(threadFollowSchema).query("threadFollow").withInput(messageInputSchema).withOutput(threadFollowSchema).query("threads", { mirrored: threadsMirror }).withInput(threadsInputSchema).withOutput(threadsPageSchema).query("threadsUnread").withInput(workspaceInputSchema).withOutput(threadsUnreadSchema).query("notificationCount").withInput(workspaceInputSchema).withOutput(external_exports.object({ count: external_exports.number().int().nonnegative() })).mutation("markThreadRead").withInput(messageInputSchema).withOutput(external_exports.object({ read: external_exports.literal(true) })).mutation("pin").withInput(pinMessageInputSchema).withOutput(messageSchema).mutation("retryMirrorDelivery").withInput(messageInputSchema).withOutput(external_exports.object({ retried: external_exports.boolean() })).mutation("alsoSendToSlack").withInput(messageInputSchema).withOutput(messageSchema).query("pins").withInput(channelInputSchema).withOutput(pinsPageSchema).query("saved").withInput(savedInputSchema).withOutput(savedPageSchema).query("savedMarks").withInput(workspaceInputSchema).withOutput(savedMarksSchema).mutation("saveMessage").withInput(saveMessageInputSchema).withOutput(savedStatusSchema).mutation("markSavedDone").withInput(markSavedDoneInputSchema).withOutput(savedStatusSchema).mutation("setReminder").withInput(setReminderInputSchema).withOutput(savedStatusSchema).query("activity").withInput(activityInputSchema).withOutput(activityPageSchema).mutation("markActivityRead").withInput(markActivityReadInputSchema).withOutput(external_exports.object({ read: external_exports.literal(true) })).build();
|
|
65423
|
-
var chatSessionTrpc = defineTrpcContract("chat").mutation("realtimeToken").withInput(workspaceInputSchema).withOutput(realtimeTokenSchema).query("drafts").withInput(workspaceInputSchema).withOutput(draftListSchema).mutation("saveDraft").withInput(saveDraftInputSchema).withOutput(draftSavedSchema).mutation("deleteDraft").withInput(deleteDraftInputSchema).withOutput(draftSavedSchema).query("sent").withInput(listSentInputSchema).withOutput(sentPageSchema).query("sidebarLayout").withInput(workspaceInputSchema).withOutput(sidebarLayoutSchema).mutation("editSidebar").withInput(editSidebarInputSchema).withOutput(sidebarLayoutSchema).query("inProgress").withInput(workspaceInputSchema).withOutput(inProgressListSchema).mutation("clearInProgress").withInput(clearInProgressInputSchema).withOutput(inProgressListSchema).query("readerPreferences").withInput(workspaceInputSchema).withOutput(readerPreferencesSchema).mutation("setReaderPreferences").withInput(setReaderPreferencesInputSchema).withOutput(readerPreferencesSchema).mutation("star").withInput(starInputSchema).withOutput(starStatusSchema).query("starred").withInput(workspaceInputSchema).withOutput(starredListSchema).mutation("scrubSecrets").withInput(scrubChatInputSchema).withOutput(chatScrubReportSchema).mutation("restoreScrubbed").withInput(messageInputSchema).withOutput(messageSchema).build();
|
|
65457
|
+
var chatSessionTrpc = defineTrpcContract("chat").mutation("realtimeToken").withInput(workspaceInputSchema).withOutput(realtimeTokenSchema).query("drafts").withInput(workspaceInputSchema).withOutput(draftListSchema).mutation("saveDraft").withInput(saveDraftInputSchema).withOutput(draftSavedSchema).mutation("deleteDraft").withInput(deleteDraftInputSchema).withOutput(draftSavedSchema).query("sent").withInput(listSentInputSchema).withOutput(sentPageSchema).query("sidebarLayout").withInput(workspaceInputSchema).withOutput(sidebarLayoutSchema).mutation("editSidebar").withInput(editSidebarInputSchema).withOutput(sidebarLayoutSchema).query("inProgress").withInput(workspaceInputSchema).withOutput(inProgressListSchema).mutation("clearInProgress").withInput(clearInProgressInputSchema).withOutput(inProgressListSchema).query("readerPreferences").withInput(workspaceInputSchema).withOutput(readerPreferencesSchema).mutation("setReaderPreferences").withInput(setReaderPreferencesInputSchema).withOutput(readerPreferencesSchema).mutation("star").withInput(starInputSchema).withOutput(starStatusSchema).query("starred").withInput(workspaceInputSchema).withOutput(starredListSchema).mutation("scrubSecrets").withInput(scrubChatInputSchema).withOutput(chatScrubReportSchema.meta({ deprecated: true })).mutation("restoreScrubbed").withInput(messageInputSchema).withOutput(messageSchema).build();
|
|
65424
65458
|
var chatScheduledTrpc = defineTrpcContract("chat").mutation("scheduleMessage").withInput(scheduleMessageInputSchema).withOutput(scheduledMessageSchema).query("scheduled").withInput(listScheduledInputSchema).withOutput(scheduledListSchema).mutation("editScheduled").withInput(editScheduledInputSchema).withOutput(scheduledMessageSchema).mutation("sendScheduledNow").withInput(scheduledInputSchema).withOutput(scheduledMessageSchema).mutation("cancelScheduled").withInput(scheduledInputSchema).withOutput(scheduledMessageSchema).build();
|
|
65425
65459
|
var chatPresenceTrpc = defineTrpcContract("chat").mutation("heartbeat").withInput(workspaceInputSchema).withOutput(heartbeatSchema).query("presence").withInput(workspaceInputSchema).withOutput(presenceListSchema).mutation("setStatus").withInput(setStatusInputSchema).withOutput(personPresenceSchema).mutation("clearStatus").withInput(workspaceInputSchema).withOutput(personPresenceSchema).mutation("setAway").withInput(setAwayInputSchema).withOutput(personPresenceSchema).build();
|
|
65426
65460
|
var chatTrpc = joinTrpcContracts(
|
|
@@ -66272,6 +66306,48 @@ var personSessionStartedPayloadSchemaDefinition = external_exports.object({
|
|
|
66272
66306
|
at: external_exports.iso.datetime()
|
|
66273
66307
|
});
|
|
66274
66308
|
|
|
66309
|
+
// ../../modules/notification/contract/src/push-outcomes.ts
|
|
66310
|
+
var pushOutcomeCodeSchema = external_exports.enum([
|
|
66311
|
+
"queued",
|
|
66312
|
+
"delivered",
|
|
66313
|
+
"token_gone",
|
|
66314
|
+
"retry",
|
|
66315
|
+
"refused",
|
|
66316
|
+
"expired",
|
|
66317
|
+
"withdrawn",
|
|
66318
|
+
"install_gone",
|
|
66319
|
+
"no_install",
|
|
66320
|
+
"push_off",
|
|
66321
|
+
"quiet",
|
|
66322
|
+
"burst",
|
|
66323
|
+
"held_active",
|
|
66324
|
+
"dropped_active"
|
|
66325
|
+
]);
|
|
66326
|
+
var PUSH_OUTCOME_APNS_STATUS = /^(?:|\d{3}(?: [A-Za-z]{1,40})?|unreachable)$/;
|
|
66327
|
+
var pushOutcomePushTypeSchema = external_exports.enum(["alert", "background"]);
|
|
66328
|
+
var count6 = external_exports.number().int().nonnegative();
|
|
66329
|
+
var day2 = external_exports.string().regex(/^\d{4}-\d{2}-\d{2}$/);
|
|
66330
|
+
var pushOutcomeRowSchemaDefinition = external_exports.object({
|
|
66331
|
+
userId: external_exports.string().max(128),
|
|
66332
|
+
pushType: pushOutcomePushTypeSchema,
|
|
66333
|
+
code: pushOutcomeCodeSchema,
|
|
66334
|
+
apnsStatus: external_exports.string().regex(PUSH_OUTCOME_APNS_STATUS),
|
|
66335
|
+
count: count6
|
|
66336
|
+
}).strict();
|
|
66337
|
+
var pushOutcomeRowSchema = pushOutcomeRowSchemaDefinition;
|
|
66338
|
+
var pushOutcomeDayRowSchemaDefinition = external_exports.object({ day: day2, pushType: pushOutcomePushTypeSchema, code: pushOutcomeCodeSchema, count: count6 }).strict();
|
|
66339
|
+
var pushOutcomeDayRowSchema = pushOutcomeDayRowSchemaDefinition;
|
|
66340
|
+
var pushInstallRowSchemaDefinition = external_exports.object({
|
|
66341
|
+
userId: external_exports.string().max(128),
|
|
66342
|
+
environment: apnsEnvironmentSchema,
|
|
66343
|
+
installs: count6,
|
|
66344
|
+
/** The newest install's registration, ISO. */
|
|
66345
|
+
registeredAt: external_exports.iso.datetime(),
|
|
66346
|
+
/** The last push APNs took for any of them, ISO; null when none ever went through. */
|
|
66347
|
+
lastSuccessAt: external_exports.iso.datetime().nullable()
|
|
66348
|
+
}).strict();
|
|
66349
|
+
var pushInstallRowSchema = pushInstallRowSchemaDefinition;
|
|
66350
|
+
|
|
66275
66351
|
// ../../modules/notification/contract/src/notification.ui.ts
|
|
66276
66352
|
var notificationUi = uiTokens("notification");
|
|
66277
66353
|
var NotificationPauseHooksToken = notificationUi.hooks("pause");
|
|
@@ -66595,6 +66671,7 @@ var ChatExternalPersonCardSlot = chatUi.extension("external-person-card");
|
|
|
66595
66671
|
var ChatNewChannelDialogSlot = chatUi.component("new-channel-dialog");
|
|
66596
66672
|
var ChatPeoplePickerSlot = chatUi.component("people-picker");
|
|
66597
66673
|
var ChatActorFaceSlot = chatUi.component("actor-face");
|
|
66674
|
+
var ChatMembersDialogSlot = chatUi.component("members-dialog");
|
|
66598
66675
|
var ChatAddPeopleDialogSlot = chatUi.component("add-people-dialog");
|
|
66599
66676
|
var ChatHandoffComposerSlot = chatUi.component("handoff-composer");
|
|
66600
66677
|
var ChatConversationsWithSlot = chatUi.component("conversations-with");
|
|
@@ -66697,10 +66774,10 @@ var unlinkMirrorSenderInputSchemaDefinition = external_exports.object({
|
|
|
66697
66774
|
});
|
|
66698
66775
|
|
|
66699
66776
|
// ../../modules/chat/contract/src/chat.read-ops.ts
|
|
66700
|
-
var
|
|
66777
|
+
var count7 = external_exports.number().int().nonnegative();
|
|
66701
66778
|
var at = external_exports.iso.datetime();
|
|
66702
66779
|
var unreadMessageDefinition = external_exports.object({
|
|
66703
|
-
seq:
|
|
66780
|
+
seq: count7,
|
|
66704
66781
|
createdAt: at,
|
|
66705
66782
|
/** self is the reader; the others are the author's kind. */
|
|
66706
66783
|
author: external_exports.enum(["self", "person", "agent", "external"]),
|
|
@@ -66719,12 +66796,12 @@ var readConversationDefinition = external_exports.object({
|
|
|
66719
66796
|
direct: external_exports.boolean(),
|
|
66720
66797
|
/** The other side of a Laze DM paired with a Slack DM, or null. */
|
|
66721
66798
|
pairedWith: external_exports.string().nullable(),
|
|
66722
|
-
lastSeq:
|
|
66723
|
-
lastReadSeq:
|
|
66724
|
-
unreadHeldToSeq:
|
|
66725
|
-
hiddenAtSeq:
|
|
66726
|
-
unread:
|
|
66727
|
-
mentions:
|
|
66799
|
+
lastSeq: count7,
|
|
66800
|
+
lastReadSeq: count7,
|
|
66801
|
+
unreadHeldToSeq: count7.nullable(),
|
|
66802
|
+
hiddenAtSeq: count7.nullable(),
|
|
66803
|
+
unread: count7,
|
|
66804
|
+
mentions: count7,
|
|
66728
66805
|
lastMessageAt: at.nullable(),
|
|
66729
66806
|
/** When the newest message at or before the marker was written. */
|
|
66730
66807
|
markerAt: at.nullable(),
|
|
@@ -66734,7 +66811,7 @@ var readConversationDefinition = external_exports.object({
|
|
|
66734
66811
|
var chatReadFactsDefinition = external_exports.object({
|
|
66735
66812
|
conversations: external_exports.array(readConversationDefinition).max(40),
|
|
66736
66813
|
/** Conversations that qualified before the cap. */
|
|
66737
|
-
total:
|
|
66814
|
+
total: count7
|
|
66738
66815
|
});
|
|
66739
66816
|
var chatReadFactsSchema = chatReadFactsDefinition;
|
|
66740
66817
|
|
|
@@ -66754,43 +66831,43 @@ var supportAnswerNoticesDefinition = external_exports.object({
|
|
|
66754
66831
|
var supportAnswerNoticesSchema = supportAnswerNoticesDefinition;
|
|
66755
66832
|
|
|
66756
66833
|
// ../../modules/chat/contract/src/chat.link-domain-ops.ts
|
|
66757
|
-
var
|
|
66834
|
+
var count8 = external_exports.number().int().nonnegative();
|
|
66758
66835
|
var linkDomainDefinition = external_exports.object({
|
|
66759
66836
|
/** The link's host, lowercased, without `www.`. */
|
|
66760
66837
|
domain: external_exports.string(),
|
|
66761
66838
|
/** Previews on messages, one per message and preview. */
|
|
66762
|
-
links:
|
|
66839
|
+
links: count8,
|
|
66763
66840
|
/** Messages with at least one preview of this host. */
|
|
66764
|
-
messageCount:
|
|
66841
|
+
messageCount: count8,
|
|
66765
66842
|
/** Previews of this host a message author took off. */
|
|
66766
|
-
removed:
|
|
66843
|
+
removed: count8,
|
|
66767
66844
|
/** Distinct previews (addresses) of this host. */
|
|
66768
|
-
pages:
|
|
66845
|
+
pages: count8,
|
|
66769
66846
|
/** Pages whose preview carries a picture, and a page name. */
|
|
66770
|
-
pictured:
|
|
66771
|
-
named:
|
|
66847
|
+
pictured: count8,
|
|
66848
|
+
named: count8,
|
|
66772
66849
|
/** Pages whose fetch failed or was blocked. */
|
|
66773
|
-
failed:
|
|
66850
|
+
failed: count8,
|
|
66774
66851
|
/** The commonest path shapes, at most 5, each with its page count. */
|
|
66775
|
-
shapes: external_exports.array(external_exports.object({ shape: external_exports.string(), pages:
|
|
66852
|
+
shapes: external_exports.array(external_exports.object({ shape: external_exports.string(), pages: count8 })).max(5)
|
|
66776
66853
|
});
|
|
66777
66854
|
var linkDomainFactsDefinition = external_exports.object({
|
|
66778
66855
|
domains: external_exports.array(linkDomainDefinition),
|
|
66779
66856
|
/** Messages with previews read on this page, and how many previews they carry. */
|
|
66780
|
-
scannedMessageCount:
|
|
66781
|
-
scannedLinks:
|
|
66857
|
+
scannedMessageCount: count8,
|
|
66858
|
+
scannedLinks: count8,
|
|
66782
66859
|
/** Messages carrying exactly 1, 2, and 3 or more previews on this page. */
|
|
66783
|
-
messageCountByLinks: external_exports.array(
|
|
66860
|
+
messageCountByLinks: external_exports.array(count8).length(3),
|
|
66784
66861
|
/** Over the whole workspace: live messages with a link, and those with a preview. */
|
|
66785
|
-
linkedMessageCount:
|
|
66786
|
-
previewedMessageCount:
|
|
66862
|
+
linkedMessageCount: count8,
|
|
66863
|
+
previewedMessageCount: count8,
|
|
66787
66864
|
/** The last message id read; pass it back as `cursor` to read on, null at the end. */
|
|
66788
66865
|
nextCursor: external_exports.string().nullable()
|
|
66789
66866
|
});
|
|
66790
66867
|
var linkDomainFactsSchema = linkDomainFactsDefinition;
|
|
66791
66868
|
|
|
66792
66869
|
// ../../modules/chat/contract/src/chat.author-ops.ts
|
|
66793
|
-
var
|
|
66870
|
+
var count9 = external_exports.number().int().nonnegative();
|
|
66794
66871
|
var at2 = external_exports.iso.datetime();
|
|
66795
66872
|
var conversationAuthorDefinition = external_exports.object({
|
|
66796
66873
|
kind: external_exports.enum(["person", "agent", "external"]),
|
|
@@ -66798,7 +66875,7 @@ var conversationAuthorDefinition = external_exports.object({
|
|
|
66798
66875
|
id: external_exports.string(),
|
|
66799
66876
|
/** The mirror that brought the messages in, or null for messages written in Laze. */
|
|
66800
66877
|
source: external_exports.string().nullable(),
|
|
66801
|
-
messageCount:
|
|
66878
|
+
messageCount: count9,
|
|
66802
66879
|
firstAt: at2,
|
|
66803
66880
|
lastAt: at2
|
|
66804
66881
|
});
|
|
@@ -67685,8 +67762,8 @@ var lazeAgentEventSchemaDefinition = external_exports.discriminatedUnion("type",
|
|
|
67685
67762
|
}),
|
|
67686
67763
|
external_exports.object({
|
|
67687
67764
|
type: external_exports.literal("error"),
|
|
67688
|
-
/** `model_key_denied`, `
|
|
67689
|
-
* `harness_error`, `harness_stopped`, `harness_start_failed`. */
|
|
67765
|
+
/** `model_key_denied`, `model_login_blocked`, `model_usage_limit`, `model_unavailable`,
|
|
67766
|
+
* `model_error`, `harness_error`, `harness_stopped`, `harness_start_failed`. */
|
|
67690
67767
|
code: external_exports.string().min(1),
|
|
67691
67768
|
message: external_exports.string(),
|
|
67692
67769
|
retryable: external_exports.boolean()
|
|
@@ -67850,7 +67927,9 @@ var agentSandboxSpecSchemaDefinition = external_exports.object({
|
|
|
67850
67927
|
/** The agent's turns go to LangWatch: the harness exports OpenTelemetry at this level. */
|
|
67851
67928
|
telemetry: external_exports.object({ content: external_exports.enum(["full", "metadata"]) }).optional(),
|
|
67852
67929
|
/** The agent's profile; absent reads as `standard`. */
|
|
67853
|
-
profile: sandboxProfileSchema.optional()
|
|
67930
|
+
profile: sandboxProfileSchema.optional(),
|
|
67931
|
+
/** Claude Code in a workspace with the staff flag claude_code_mode: it asks for Code Mode. */
|
|
67932
|
+
codeMode: external_exports.boolean().optional()
|
|
67854
67933
|
});
|
|
67855
67934
|
var deliveredFileSchemaDefinition = external_exports.object({
|
|
67856
67935
|
/** Relative to the agent's work folder, e.g. `attachments/<messageId>/report.pdf`. */
|
|
@@ -68094,6 +68173,8 @@ var supervisorLaunchSchemaDefinition = external_exports.object({
|
|
|
68094
68173
|
machine: supervisorMachineSchemaDefinition.optional(),
|
|
68095
68174
|
/** On a machine, by relay connection id: the placeholder a local caller must present. */
|
|
68096
68175
|
relayPlaceholders: external_exports.record(external_exports.string().regex(/^[A-Za-z0-9_-]+$/), external_exports.string().min(1)).default({}),
|
|
68176
|
+
/** The workspace asks for Claude Code's Code Mode (staff flag claude_code_mode). */
|
|
68177
|
+
codeMode: external_exports.boolean().optional(),
|
|
68097
68178
|
/** Set by the computer daemon: this supervisor's own ports inside the workspace's computer. */
|
|
68098
68179
|
computer: external_exports.object({
|
|
68099
68180
|
port: external_exports.number().int().min(1).max(65535),
|
|
@@ -68101,7 +68182,9 @@ var supervisorLaunchSchemaDefinition = external_exports.object({
|
|
|
68101
68182
|
/** The updated Claude Code's bin directory, first on the harness PATH (else the image's). */
|
|
68102
68183
|
claudeCodeBin: external_exports.string().min(1).max(4096).optional(),
|
|
68103
68184
|
/** The updated Codex CLI's bin directory, first on the harness PATH (else the image's). */
|
|
68104
|
-
codexBin: external_exports.string().min(1).max(4096).optional()
|
|
68185
|
+
codexBin: external_exports.string().min(1).max(4096).optional(),
|
|
68186
|
+
/** The launch asked for Code Mode and the Claude Code on the harness PATH is patched. */
|
|
68187
|
+
codeMode: external_exports.boolean().optional()
|
|
68105
68188
|
}).optional()
|
|
68106
68189
|
});
|
|
68107
68190
|
var ATTENTION_DISMISS_NOTE_MAX = 32e3;
|
|
@@ -68328,7 +68411,9 @@ var computerDaemonUseSchemaDefinition = computerUseSchema.omit({ state: true, la
|
|
|
68328
68411
|
/** The Claude Code agents run (the update in use, else the image's) and the last check. */
|
|
68329
68412
|
claudeCode: external_exports.object({
|
|
68330
68413
|
version: external_exports.string().max(40).nullable(),
|
|
68331
|
-
checkedAt: external_exports.string().max(40).nullable()
|
|
68414
|
+
checkedAt: external_exports.string().max(40).nullable(),
|
|
68415
|
+
/** A release the Code Mode patch or its REPL check refused since the daemon started. */
|
|
68416
|
+
codeModeRefused: external_exports.string().max(40).optional()
|
|
68332
68417
|
}).optional(),
|
|
68333
68418
|
/** The Codex CLI agents run (the update in use, else the image's) and the last check. */
|
|
68334
68419
|
codex: external_exports.object({
|
|
@@ -69113,7 +69198,9 @@ var attentionDetailSchemaDefinition = external_exports.object({
|
|
|
69113
69198
|
line: external_exports.string(),
|
|
69114
69199
|
call: external_exports.string(),
|
|
69115
69200
|
detail: external_exports.string(),
|
|
69116
|
-
judgeLine: external_exports.string().nullable()
|
|
69201
|
+
judgeLine: external_exports.string().nullable(),
|
|
69202
|
+
/** The vault requests the card covers, its own first; an answer sends back the ones shown. */
|
|
69203
|
+
requestIds: external_exports.array(external_exports.string()).optional()
|
|
69117
69204
|
});
|
|
69118
69205
|
var attentionDetailSchema = attentionDetailSchemaDefinition;
|
|
69119
69206
|
var answerAttentionInputSchemaDefinition = external_exports.object({
|
|
@@ -69126,7 +69213,9 @@ var answerAttentionInputSchemaDefinition = external_exports.object({
|
|
|
69126
69213
|
/** Where the person answered a vault card from; a browser leaves it out. */
|
|
69127
69214
|
via: external_exports.enum(["channel", "ios"]).optional(),
|
|
69128
69215
|
/** "always" on a vault card for the card's 30 days instead of the key's own length. */
|
|
69129
|
-
durationSeconds: external_exports.number().int().positive().optional()
|
|
69216
|
+
durationSeconds: external_exports.number().int().positive().optional(),
|
|
69217
|
+
/** On a vault card, the request ids the client showed; the answer covers only those. */
|
|
69218
|
+
seenRequestIds: external_exports.array(external_exports.string().min(1).max(64)).max(50).optional()
|
|
69130
69219
|
});
|
|
69131
69220
|
var answerAttentionInputSchema = answerAttentionInputSchemaDefinition;
|
|
69132
69221
|
var askAgentApprovalInputSchemaDefinition = external_exports.object({
|
|
@@ -70945,8 +71034,13 @@ var agentLoginChoicesInputSchema = agentLoginChoicesInputSchemaDefinition;
|
|
|
70945
71034
|
var agentLoginChoiceSchemaDefinition = external_exports.object({
|
|
70946
71035
|
id: external_exports.string().min(1),
|
|
70947
71036
|
name: external_exports.string(),
|
|
70948
|
-
/**
|
|
71037
|
+
/**
|
|
71038
|
+
* `room`: it can run now; `limited`: out of usage until `until`; `signed_out`: refused, or
|
|
71039
|
+
* refused for its Claude subscription (`blocked`).
|
|
71040
|
+
*/
|
|
70949
71041
|
status: external_exports.enum(["room", "limited", "signed_out"]),
|
|
71042
|
+
/** Anthropic refused Claude Code on its subscription; absent on older servers. */
|
|
71043
|
+
blocked: external_exports.boolean().optional(),
|
|
70950
71044
|
until: external_exports.iso.datetime().nullable(),
|
|
70951
71045
|
usedPercent: external_exports.number().nullable(),
|
|
70952
71046
|
/** The login the agent runs on now. */
|
|
@@ -71100,8 +71194,13 @@ var harnessLoginEntrySchemaDefinition = external_exports.object({
|
|
|
71100
71194
|
id: idSchema13,
|
|
71101
71195
|
harness: harnessSchema3,
|
|
71102
71196
|
name: external_exports.string(),
|
|
71103
|
-
/**
|
|
71197
|
+
/**
|
|
71198
|
+
* `invalid` once its provider refused the token, or while Anthropic refuses Claude Code on its
|
|
71199
|
+
* subscription (`blocked`); `out_of_usage` until `limitedUntil`.
|
|
71200
|
+
*/
|
|
71104
71201
|
state: external_exports.enum(["ready", "out_of_usage", "invalid"]),
|
|
71202
|
+
/** Anthropic refused Claude Code on its subscription; absent on older servers. */
|
|
71203
|
+
blocked: external_exports.boolean().optional(),
|
|
71105
71204
|
/** The tightest usage window's percent at the latest reading; null before one. */
|
|
71106
71205
|
usedPercent: external_exports.number().nullable(),
|
|
71107
71206
|
/** The soonest window reset at the latest reading. */
|
|
@@ -71316,6 +71415,8 @@ var loginSwitchSchemaDefinition = external_exports.object({
|
|
|
71316
71415
|
from: external_exports.string(),
|
|
71317
71416
|
to: external_exports.string(),
|
|
71318
71417
|
reason: loginSwitchReasonSchema,
|
|
71418
|
+
/** With `signed_out`: Anthropic refused the login's subscription, not its token. */
|
|
71419
|
+
blocked: external_exports.boolean().optional(),
|
|
71319
71420
|
/** The person who pressed the switch; null when the rotation rule made it. */
|
|
71320
71421
|
byName: external_exports.string().nullable()
|
|
71321
71422
|
});
|
|
@@ -71378,7 +71479,7 @@ var harnessSignInPollSchemaDefinition = external_exports.discriminatedUnion("sta
|
|
|
71378
71479
|
external_exports.object({ status: external_exports.literal("approved"), flow: external_exports.string() })
|
|
71379
71480
|
]);
|
|
71380
71481
|
var harnessSignInPollSchema = harnessSignInPollSchemaDefinition;
|
|
71381
|
-
var loginStateSchema = external_exports.enum(["ready", "out_of_usage", "invalid"]);
|
|
71482
|
+
var loginStateSchema = external_exports.enum(["ready", "out_of_usage", "invalid", "blocked"]);
|
|
71382
71483
|
var isoSchema = external_exports.iso.datetime();
|
|
71383
71484
|
var loginStatesSchemaDefinition = external_exports.object({
|
|
71384
71485
|
/** Logins signed in on a person's own Laze computer; Laze holds only the fact. */
|
|
@@ -72647,7 +72748,7 @@ var agentsCopy = {
|
|
|
72647
72748
|
paintOnly: true,
|
|
72648
72749
|
storable: agentsForDisk
|
|
72649
72750
|
};
|
|
72650
|
-
var agentCoreTrpc = defineTrpcContract("agents").query("list", { mirrored: agentsCopy }).withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentListEntrySchema)).mutation("create").withInput(createAgentInputSchema).withOutput(agentSchema).mutation("update").withInput(updateAgentInputSchema).withOutput(agentSchema).mutation("remove").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ removed: external_exports.literal(true) })).mutation("transfer").withInput(transferAgentInputSchema).withOutput(agentSchema).mutation("resetSession").withInput(resetAgentSessionInputSchema).withOutput(agentSchema).query("faces").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentFaceSchema)).query("presence").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentPresenceSchema)).mutation("uploadAvatar").withInput(uploadAgentAvatarInputSchema).withOutput(uploadedAgentAvatarSchema).query("access").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(agentAccessSchema).query("loginActivity").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(loginActivitySchema).mutation("raiseBudget").withInput(raiseBudgetInputSchema).withOutput(raisedBudgetSchema).query("permissionPrompts").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentPermissionPromptSchema)).mutation("share").withInput(shareAgentInputSchema).withOutput(agentAccessSchema).mutation("unshare").withInput(shareAgentInputSchema).withOutput(agentAccessSchema).query("harnessLogins").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(harnessLoginsSchema).mutation("saveHarnessLogin").withInput(saveHarnessLoginInputSchema).withOutput(harnessLoginsSchema).mutation("removeHarnessLogin").withInput(removeHarnessLoginInputSchema).withOutput(harnessLoginsSchema).query("listHarnessLogins").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(harnessLoginListSchema).mutation("addHarnessLogin").withInput(addHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("renameHarnessLogin").withInput(renameHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("deleteHarnessLogin").withInput(deleteHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("checkLoginUsage").withInput(checkLoginUsageInputSchema).withOutput(loginUsageCheckSchema).query("loginPools").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(loginPoolsSchema).mutation("createLoginPool").withInput(createLoginPoolInputSchema).withOutput(loginPoolsSchema).mutation("renameLoginPool").withInput(renameLoginPoolInputSchema).withOutput(loginPoolsSchema).mutation("deleteLoginPool").withInput(loginPoolRefInputSchema).withOutput(loginPoolsSchema).mutation("addPoolLogin").withInput(addPoolLoginInputSchema).withOutput(loginPoolsSchema).mutation("removePoolLogin").withInput(removePoolLoginInputSchema).withOutput(loginPoolsSchema).mutation("setPoolMember").withInput(setPoolMemberInputSchema).withOutput(loginPoolsSchema).mutation("removePoolMember").withInput(removePoolMemberInputSchema).withOutput(loginPoolsSchema).mutation("setAgentPool").withInput(setAgentPoolInputSchema).withOutput(agentSchema).mutation("openDirect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ channelId: idSchema19 })).mutation("startConversation").withInput(startConversationInputSchema).withOutput(startedConversationSchema).query("conversations").withInput(listConversationsInputSchema).withOutput(external_exports.array(conversationSummarySchema2)).mutation("joinConversation").withInput(conversationInputSchema).withOutput(conversationSummarySchema2).mutation("renameConversation").withInput(renameConversationInputSchema).withOutput(conversationSummarySchema2).mutation("leaveConversation").withInput(conversationInputSchema).withOutput(external_exports.object({ left: external_exports.literal(true) })).mutation("deleteConversation").withInput(conversationInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).mutation("mintLink").withInput(mintLinkInputSchema).withOutput(mintedLinkSchema).query("linkRedemption").withInput(linkRedemptionInputSchema).withOutput(linkRedemptionSchema).query("oauthRequest").withInput(oauthRequestInputSchema).withOutput(oauthRequestViewSchema).mutation("oauthApprove").withInput(approveOAuthInputSchema).withOutput(oauthRedirectSchema).mutation("oauthDeny").withInput(oauthRequestInputSchema).withOutput(oauthRedirectSchema).mutation("disconnect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).mutation("setGithub").withInput(setAgentGithubInputSchema).withOutput(agentSchema).query("githubWatches").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentGithubWatchSchema)).mutation("watchGithub").withInput(watchGithubInputSchema).withOutput(agentGithubWatchSchema).mutation("unwatchGithub").withInput(unwatchGithubInputSchema).withOutput(external_exports.object({ removed: external_exports.literal(true) })).build();
|
|
72751
|
+
var agentCoreTrpc = defineTrpcContract("agents").query("list", { mirrored: agentsCopy }).withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentListEntrySchema)).mutation("create").withInput(createAgentInputSchema).withOutput(agentSchema).mutation("update").withInput(updateAgentInputSchema).withOutput(agentSchema).mutation("remove").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ removed: external_exports.literal(true) })).mutation("transfer").withInput(transferAgentInputSchema).withOutput(agentSchema).mutation("resetSession").withInput(resetAgentSessionInputSchema).withOutput(agentSchema).query("faces").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentFaceSchema)).query("presence").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(external_exports.array(agentPresenceSchema)).mutation("uploadAvatar").withInput(uploadAgentAvatarInputSchema).withOutput(uploadedAgentAvatarSchema).query("access").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(agentAccessSchema).query("loginActivity").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(loginActivitySchema).mutation("raiseBudget").withInput(raiseBudgetInputSchema).withOutput(raisedBudgetSchema).query("permissionPrompts").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentPermissionPromptSchema)).mutation("share").withInput(shareAgentInputSchema).withOutput(agentAccessSchema).mutation("unshare").withInput(shareAgentInputSchema).withOutput(agentAccessSchema).query("harnessLogins").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(harnessLoginsSchema).mutation("saveHarnessLogin").withInput(saveHarnessLoginInputSchema).withOutput(harnessLoginsSchema).mutation("removeHarnessLogin").withInput(removeHarnessLoginInputSchema).withOutput(harnessLoginsSchema).query("listHarnessLogins").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(harnessLoginListSchema).mutation("addHarnessLogin").withInput(addHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("renameHarnessLogin").withInput(renameHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("deleteHarnessLogin").withInput(deleteHarnessLoginInputSchema).withOutput(harnessLoginListSchema).mutation("checkLoginUsage").withInput(checkLoginUsageInputSchema).withOutput(loginUsageCheckSchema).query("loginPools").withInput(external_exports.object({ workspaceId: workspaceIdSchema14 })).withOutput(loginPoolsSchema).mutation("createLoginPool").withInput(createLoginPoolInputSchema).withOutput(loginPoolsSchema).mutation("renameLoginPool").withInput(renameLoginPoolInputSchema).withOutput(loginPoolsSchema).mutation("deleteLoginPool").withInput(loginPoolRefInputSchema).withOutput(loginPoolsSchema).mutation("addPoolLogin").withInput(addPoolLoginInputSchema).withOutput(loginPoolsSchema).mutation("removePoolLogin").withInput(removePoolLoginInputSchema).withOutput(loginPoolsSchema).mutation("setPoolMember").withInput(setPoolMemberInputSchema).withOutput(loginPoolsSchema).mutation("removePoolMember").withInput(removePoolMemberInputSchema).withOutput(loginPoolsSchema).mutation("setAgentPool").withInput(setAgentPoolInputSchema).withOutput(agentSchema).mutation("openDirect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ channelId: idSchema19 })).mutation("startConversation").withInput(startConversationInputSchema).withOutput(startedConversationSchema).query("conversations").withInput(listConversationsInputSchema).withOutput(external_exports.array(conversationSummarySchema2)).mutation("joinConversation").withInput(conversationInputSchema).withOutput(conversationSummarySchema2).mutation("renameConversation").withInput(renameConversationInputSchema).withOutput(conversationSummarySchema2).mutation("leaveConversation").withInput(conversationInputSchema).withOutput(external_exports.object({ left: external_exports.literal(true) })).mutation("deleteConversation").withInput(conversationInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).mutation("mintLink").withInput(mintLinkInputSchema).withOutput(mintedLinkSchema).query("linkRedemption").withInput(linkRedemptionInputSchema).withOutput(linkRedemptionSchema).query("oauthRequest").withInput(oauthRequestInputSchema).withOutput(oauthRequestViewSchema).mutation("oauthApprove").withInput(approveOAuthInputSchema).withOutput(oauthRedirectSchema).mutation("oauthDeny").withInput(oauthRequestInputSchema).withOutput(oauthRedirectSchema).mutation("disconnect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.object({ disconnected: external_exports.literal(true) }).meta({ deprecated: true })).mutation("setGithub").withInput(setAgentGithubInputSchema).withOutput(agentSchema).query("githubWatches").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentGithubWatchSchema)).mutation("watchGithub").withInput(watchGithubInputSchema).withOutput(agentGithubWatchSchema).mutation("unwatchGithub").withInput(unwatchGithubInputSchema).withOutput(external_exports.object({ removed: external_exports.literal(true) })).build();
|
|
72651
72752
|
var agentTurnTrpc = defineTrpcContract("agents").mutation("answerAttention").withInput(answerAttentionInputSchema).withOutput(external_exports.object({ answered: external_exports.literal(true) })).query("attentionDetail").withInput(attentionDetailInputSchema).withOutput(attentionDetailSchema).mutation("stopTurn").withInput(stopAgentTurnInputSchema).withOutput(external_exports.object({ stopped: external_exports.literal(true) })).query("mayStopTurn").withInput(stopAgentTurnInputSchema).withOutput(external_exports.object({ allowed: external_exports.boolean() })).mutation("retryTurn").withInput(retryAgentTurnInputSchema).withOutput(external_exports.object({ retried: external_exports.literal(true) })).query("retryState").withInput(retryAgentTurnInputSchema).withOutput(agentRetryStateSchema).query("liveSteps").withInput(liveStepsInputSchema).withOutput(liveStepsSchema).query("workingNow").withInput(agentWorkingInputSchema).withOutput(agentWorkingSchema).mutation("compactSession").withInput(compactAgentSessionInputSchema).withOutput(external_exports.object({ requested: external_exports.literal(true) })).mutation("catchUp").withInput(startCatchUpInputSchema).withOutput(catchUpRunSchema).mutation("catchUpAsk").withInput(askCatchUpInputSchema).withOutput(catchUpRunSchema).query("catchUpRun").withInput(catchUpRunInputSchema).withOutput(catchUpRunSchema).mutation("catchUpStop").withInput(catchUpRunInputSchema).withOutput(catchUpRunSchema).mutation("restartComputer").withInput(restartAgentComputerInputSchema).withOutput(external_exports.object({ restarted: external_exports.boolean() })).build();
|
|
72652
72753
|
var agentChannelSettingsTrpc = defineTrpcContract("agents").query("monitors").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19 })).withOutput(external_exports.array(agentMonitorSchema)).query("channelLevel").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema19, channelId: idSchema19 })).withOutput(channelLevelSchema).mutation("setChannelLevel").withInput(setChannelLevelInputSchema).withOutput(channelLevelSchema).mutation("unmuteChannel").withInput(unmuteAgentChannelInputSchema).withOutput(channelLevelSchema).mutation("cancelHeld").withInput(cancelHeldInputSchema).withOutput(cancelHeldResultSchema).mutation("useLazeModelsUntilReset").withInput(useLazeModelsUntilResetInputSchema).withOutput(lazeModelsUntilResetSchema).query("agentLoginChoices").withInput(agentLoginChoicesInputSchema).withOutput(agentLoginChoicesSchema).mutation("switchAgentLogin").withInput(switchAgentLoginInputSchema).withOutput(switchedAgentLoginSchema).build();
|
|
72653
72754
|
var agentJoinTrpc = defineTrpcContract("agents").query("joinRequest").withInput(joinRequestInputSchema).withOutput(joinRequestViewSchema).mutation("approveJoinRequest").withInput(approveJoinRequestInputSchema).withOutput(joinRequestViewSchema).mutation("denyJoinRequest").withInput(joinRequestInputSchema).withOutput(joinRequestViewSchema).build();
|
|
@@ -72703,6 +72804,7 @@ var AgentLiveStepsSlot = agentUi.component("liveSteps");
|
|
|
72703
72804
|
var AgentComputerRestoreSlot = agentUi.component("computerRestore");
|
|
72704
72805
|
var AgentCatchUpSlot = agentUi.component("catchUp");
|
|
72705
72806
|
var AgentSessionHooksToken = agentUi.hooks("session");
|
|
72807
|
+
var AgentTurnHooksToken = agentUi.hooks("turn");
|
|
72706
72808
|
var AgentSetupBannerSlot = agentUi.component("setupBanner");
|
|
72707
72809
|
var AgentChatStartHooksToken = agentUi.hooks("chatStart");
|
|
72708
72810
|
var AgentThingsToDoSlot = agentUi.component("thingsToDo");
|
|
@@ -72711,7 +72813,7 @@ var AgentRunsOnPickerSlot = agentUi.component("runsOnPicker");
|
|
|
72711
72813
|
var AgentEditDialogSlot = agentUi.component("editDialog");
|
|
72712
72814
|
var AgentNameSlot = agentUi.component("name");
|
|
72713
72815
|
var AgentFaceSlot = agentUi.component("face");
|
|
72714
|
-
var
|
|
72816
|
+
var AgentChatMembersHooksToken = agentUi.hooks("chatMembers");
|
|
72715
72817
|
var AgentConnectDialogSlot = agentUi.component("connectDialog");
|
|
72716
72818
|
var AgentConnectWaitSlot = agentUi.component("connectWait");
|
|
72717
72819
|
var AgentConnectWaitRowSlot = agentUi.component("connectWaitRow");
|
|
@@ -74550,8 +74652,8 @@ async function periodStartOf({
|
|
|
74550
74652
|
);
|
|
74551
74653
|
return report3.from;
|
|
74552
74654
|
} catch {
|
|
74553
|
-
const
|
|
74554
|
-
return Temporal3.PlainDateTime.from({ year:
|
|
74655
|
+
const day3 = now.toZonedDateTimeISO("UTC");
|
|
74656
|
+
return Temporal3.PlainDateTime.from({ year: day3.year, month: day3.month, day: 1 }).toZonedDateTime("UTC").toInstant().toString();
|
|
74555
74657
|
}
|
|
74556
74658
|
}
|
|
74557
74659
|
async function agentsActivity({ context, args }) {
|
|
@@ -74781,10 +74883,10 @@ function whereOf(message2) {
|
|
|
74781
74883
|
}
|
|
74782
74884
|
function catchUpLinesOf(message2) {
|
|
74783
74885
|
if (!message2.catchUp) return [];
|
|
74784
|
-
const { count:
|
|
74886
|
+
const { count: count19, older } = message2.catchUp;
|
|
74785
74887
|
const where = whereOf(message2);
|
|
74786
74888
|
const lines2 = [
|
|
74787
|
-
`${
|
|
74889
|
+
`${count19} ${count19 === 1 ? "message" : "messages"} in ${where} while you were away.`
|
|
74788
74890
|
];
|
|
74789
74891
|
if (older === 0) return lines2;
|
|
74790
74892
|
const channel = message2.channelKind === "public" || message2.channelKind === "private";
|
|
@@ -74812,9 +74914,9 @@ function hookContextOf({
|
|
|
74812
74914
|
messages,
|
|
74813
74915
|
self: self2
|
|
74814
74916
|
}) {
|
|
74815
|
-
const
|
|
74917
|
+
const count19 = messages.length === 1 ? "A message" : `${messages.length} messages`;
|
|
74816
74918
|
return [
|
|
74817
|
-
`${
|
|
74919
|
+
`${count19} reached you in Laze${selfClauseOf({ self: self2 })}:`,
|
|
74818
74920
|
"",
|
|
74819
74921
|
...messages.map((message2) => formatInboxMessage({ message: message2 })),
|
|
74820
74922
|
"",
|
|
@@ -74829,7 +74931,7 @@ function selfClauseOf({ self: self2 }) {
|
|
|
74829
74931
|
function record2(value) {
|
|
74830
74932
|
return typeof value === "object" && value !== null ? value : {};
|
|
74831
74933
|
}
|
|
74832
|
-
function
|
|
74934
|
+
function count10(value) {
|
|
74833
74935
|
return typeof value === "number" && Number.isFinite(value) && value >= 0 ? value : void 0;
|
|
74834
74936
|
}
|
|
74835
74937
|
function parse3(line) {
|
|
@@ -74865,17 +74967,17 @@ function compactionOf({
|
|
|
74865
74967
|
return {
|
|
74866
74968
|
key: typeof entry2.uuid === "string" ? entry2.uuid : String(index),
|
|
74867
74969
|
trigger: meta3.trigger === "manual" ? "manual" : "auto",
|
|
74868
|
-
tokensBefore:
|
|
74869
|
-
tokensAfter:
|
|
74970
|
+
tokensBefore: count10(meta3.preTokens),
|
|
74971
|
+
tokensAfter: count10(meta3.postTokens),
|
|
74870
74972
|
at: typeof entry2.timestamp === "string" ? entry2.timestamp : "1970-01-01T00:00:00.000Z"
|
|
74871
74973
|
};
|
|
74872
74974
|
}
|
|
74873
74975
|
function usageOf({ entry: entry2 }) {
|
|
74874
74976
|
const message2 = record2(entry2.message);
|
|
74875
74977
|
const usage2 = record2(message2.usage);
|
|
74876
|
-
const input2 =
|
|
74978
|
+
const input2 = count10(usage2.input_tokens);
|
|
74877
74979
|
if (input2 === void 0) return void 0;
|
|
74878
|
-
const cached2 = (
|
|
74980
|
+
const cached2 = (count10(usage2.cache_read_input_tokens) ?? 0) + (count10(usage2.cache_creation_input_tokens) ?? 0);
|
|
74879
74981
|
return {
|
|
74880
74982
|
tokens: input2 + cached2,
|
|
74881
74983
|
...typeof message2.model === "string" ? { model: message2.model } : {}
|
|
@@ -75506,6 +75608,8 @@ var slackConnectionViewSchemaDefinition = external_exports.object({
|
|
|
75506
75608
|
viewerLinkState: slackLinkStateSchema.nullable().default(null),
|
|
75507
75609
|
/** The scope Slack said the viewer's link lacks, for `missing_scope`. */
|
|
75508
75610
|
viewerMissingScope: external_exports.string().nullable().default(null),
|
|
75611
|
+
/** Bot scopes Laze asks that this install lacks; installing the app again grants them. */
|
|
75612
|
+
missingBotScopes: external_exports.array(external_exports.string()).default([]),
|
|
75509
75613
|
linkedPeople: external_exports.number().int().nonnegative()
|
|
75510
75614
|
});
|
|
75511
75615
|
var slackConnectionViewSchema = slackConnectionViewSchemaDefinition;
|
|
@@ -75767,6 +75871,22 @@ var slackOwnerPostedSchemaDefinition = external_exports.object({
|
|
|
75767
75871
|
channelId: external_exports.string()
|
|
75768
75872
|
});
|
|
75769
75873
|
|
|
75874
|
+
// ../../modules/slack/contract/src/slack-connect-invite.ts
|
|
75875
|
+
var SLACK_CONNECT_INVITE_PATH = "/api/slack/connect-invite";
|
|
75876
|
+
var slackConnectInviteInputSchemaDefinition = external_exports.object({
|
|
75877
|
+
/** The mirrored conversation's Laze id, or the Slack channel id it mirrors. */
|
|
75878
|
+
channelId: external_exports.string().trim().min(1).max(200),
|
|
75879
|
+
/** Who to invite: Slack sends them an email with a link to join. */
|
|
75880
|
+
email: external_exports.email().max(320),
|
|
75881
|
+
/** True lets them only post; false lets them also invite others and manage the channel. */
|
|
75882
|
+
externalLimited: external_exports.boolean().default(true)
|
|
75883
|
+
});
|
|
75884
|
+
var slackConnectInvitedSchemaDefinition = external_exports.object({
|
|
75885
|
+
inviteId: external_exports.string(),
|
|
75886
|
+
channelId: external_exports.string(),
|
|
75887
|
+
email: external_exports.string()
|
|
75888
|
+
});
|
|
75889
|
+
|
|
75770
75890
|
// ../../modules/slack/contract/src/slack.config.ts
|
|
75771
75891
|
var positiveInt4 = external_exports.coerce.number().int().positive();
|
|
75772
75892
|
var slackConfig = Config.define((c) => ({
|
|
@@ -75798,7 +75918,7 @@ var slackConfig = Config.define((c) => ({
|
|
|
75798
75918
|
}));
|
|
75799
75919
|
|
|
75800
75920
|
// ../../modules/slack/contract/src/slack-ops.ts
|
|
75801
|
-
var
|
|
75921
|
+
var count11 = external_exports.number().int().nonnegative();
|
|
75802
75922
|
var at3 = external_exports.iso.datetime();
|
|
75803
75923
|
var slackMirrorHealthDefinition = external_exports.object({
|
|
75804
75924
|
mirrors: external_exports.array(
|
|
@@ -75811,19 +75931,19 @@ var slackMirrorHealthDefinition = external_exports.object({
|
|
|
75811
75931
|
/** Shared with another organisation, such as a Slack Connect channel. */
|
|
75812
75932
|
external: external_exports.boolean(),
|
|
75813
75933
|
botMember: external_exports.boolean(),
|
|
75814
|
-
linkedMembers:
|
|
75815
|
-
cacheDays:
|
|
75934
|
+
linkedMembers: count11,
|
|
75935
|
+
cacheDays: count11,
|
|
75816
75936
|
backfilledAt: at3.nullable(),
|
|
75817
75937
|
reconciledAt: at3.nullable(),
|
|
75818
75938
|
/** Message links Laze holds for the conversation, both ways. */
|
|
75819
|
-
links:
|
|
75939
|
+
links: count11,
|
|
75820
75940
|
/** Thread roots Laze holds a reply of. */
|
|
75821
|
-
threads:
|
|
75941
|
+
threads: count11,
|
|
75822
75942
|
/** Roots whose Slack reply count, when last read, is above the replies Laze holds. */
|
|
75823
|
-
threadsShort:
|
|
75824
|
-
repliesShort:
|
|
75943
|
+
threadsShort: count11,
|
|
75944
|
+
repliesShort: count11,
|
|
75825
75945
|
/** Threads Laze holds whose root is older than the cache window. */
|
|
75826
|
-
oldThreads:
|
|
75946
|
+
oldThreads: count11
|
|
75827
75947
|
})
|
|
75828
75948
|
)
|
|
75829
75949
|
});
|
|
@@ -75834,10 +75954,10 @@ var DURATION = /^(\d+)\s*(m|min|mins|minutes?|h|hours?|d|days?)$/i;
|
|
|
75834
75954
|
function minutesOf({ text: text3 }) {
|
|
75835
75955
|
const match = DURATION.exec(text3.trim());
|
|
75836
75956
|
if (!match?.[1] || !match[2]) return null;
|
|
75837
|
-
const
|
|
75957
|
+
const count19 = Number(match[1]);
|
|
75838
75958
|
const unit = match[2].toLowerCase()[0];
|
|
75839
75959
|
const perUnit = { d: 1440, h: 60, m: 1 };
|
|
75840
|
-
const minutes =
|
|
75960
|
+
const minutes = count19 * (perUnit[unit ?? "m"] ?? 1);
|
|
75841
75961
|
return minutes > 0 ? minutes : null;
|
|
75842
75962
|
}
|
|
75843
75963
|
function muteTextOf({ mute }) {
|
|
@@ -75854,7 +75974,7 @@ function hasSettingIn({ channel }) {
|
|
|
75854
75974
|
}
|
|
75855
75975
|
function placeOf({ channel }) {
|
|
75856
75976
|
if (channel.kind === "public" || channel.kind === "private") return `#${channel.name}`;
|
|
75857
|
-
const what =
|
|
75977
|
+
const what = { chat: "conversation", group: "group DM", dm: "agent chat" }[channel.kind];
|
|
75858
75978
|
return channel.name ? `${what} ${channel.name} (${channel.id})` : `${what} ${channel.id}`;
|
|
75859
75979
|
}
|
|
75860
75980
|
function settingRowOf({ channel }) {
|
|
@@ -76050,7 +76170,7 @@ function slackHitLines({
|
|
|
76050
76170
|
...link3 ? [` ${link3}`] : []
|
|
76051
76171
|
];
|
|
76052
76172
|
}
|
|
76053
|
-
var
|
|
76173
|
+
var count12 = (n) => `${n} message${n === 1 ? "" : "s"}`;
|
|
76054
76174
|
function slackSectionLines({
|
|
76055
76175
|
slack: slack2,
|
|
76056
76176
|
laze,
|
|
@@ -76063,7 +76183,7 @@ function slackSectionLines({
|
|
|
76063
76183
|
});
|
|
76064
76184
|
if (slack2.teams.some((team) => team.state === "searched")) {
|
|
76065
76185
|
const found = slack2.hits.length;
|
|
76066
|
-
lines2.push(found === 0 ? "From Slack: nothing more." : `From Slack: ${
|
|
76186
|
+
lines2.push(found === 0 ? "From Slack: nothing more." : `From Slack: ${count12(found)}`);
|
|
76067
76187
|
}
|
|
76068
76188
|
for (const hit of slack2.hits) lines2.push(...slackHitLines({ hit, laze, url: url2, workspaceId }), "");
|
|
76069
76189
|
return lines2;
|
|
@@ -76074,7 +76194,7 @@ function formatSearch({
|
|
|
76074
76194
|
workspaceId
|
|
76075
76195
|
}) {
|
|
76076
76196
|
const { laze, slack: slack2, query } = output2;
|
|
76077
|
-
const lines2 = laze.hits.length === 0 ? [`No Laze messages match "${query}".`] : [`Laze: ${
|
|
76197
|
+
const lines2 = laze.hits.length === 0 ? [`No Laze messages match "${query}".`] : [`Laze: ${count12(laze.hits.length)} for "${query}"`];
|
|
76078
76198
|
for (const hit of laze.hits) {
|
|
76079
76199
|
lines2.push(...lazeHitLines({ hit, laze, url: url2, workspaceId }), "");
|
|
76080
76200
|
}
|
|
@@ -78411,7 +78531,7 @@ var openclawAgentKeySchemaDefinition = external_exports.object({
|
|
|
78411
78531
|
});
|
|
78412
78532
|
var openclawAgentKeySchema = openclawAgentKeySchemaDefinition;
|
|
78413
78533
|
var OpenclawApi = moduleApi()("openclaw");
|
|
78414
|
-
var openclawTrpc = defineTrpcContract("openclaw").query("overview").withInput(external_exports.object({ workspaceId: workspaceIdSchema18 })).withOutput(openclawOverviewSchema).mutation("connect").withInput(connectOpenclawInputSchema).withOutput(openclawConnectionViewSchema).mutation("setAgent").withInput(setOpenclawAgentInputSchema).withOutput(openclawConnectionViewSchema).mutation("setFeed").withInput(setOpenclawFeedInputSchema).withOutput(openclawConnectionViewSchema).mutation("agentKey").withInput(openclawAgentRefSchema).withOutput(openclawAgentKeySchema).mutation("disconnect").withInput(openclawConnectionRefSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).build();
|
|
78534
|
+
var openclawTrpc = defineTrpcContract("openclaw").query("overview").withInput(external_exports.object({ workspaceId: workspaceIdSchema18 })).withOutput(openclawOverviewSchema).mutation("connect").withInput(connectOpenclawInputSchema).withOutput(openclawConnectionViewSchema).mutation("setAgent").withInput(setOpenclawAgentInputSchema).withOutput(openclawConnectionViewSchema).mutation("setFeed").withInput(setOpenclawFeedInputSchema).withOutput(openclawConnectionViewSchema).mutation("agentKey").withInput(openclawAgentRefSchema).withOutput(openclawAgentKeySchema.meta({ deprecated: true })).mutation("disconnect").withInput(openclawConnectionRefSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).build();
|
|
78415
78535
|
|
|
78416
78536
|
// ../../modules/openclaw/contract/src/openclaw.config.ts
|
|
78417
78537
|
var positiveInt5 = external_exports.coerce.number().int().positive();
|
|
@@ -80422,6 +80542,8 @@ them that link, never only where to find it ("a card in your feed").
|
|
|
80422
80542
|
see it. Never ask for a Slack token. \`laze slack post <channelId> "text"\` (\`--thread <id>\`
|
|
80423
80543
|
to reply) posts there as them, from their own Slack account, in a turn they started; it can
|
|
80424
80544
|
wait for their OK. Post as them only a message they told you to send.
|
|
80545
|
+
\`laze slack connect-invite <channelId> <email>\` sends a Slack Connect invite to someone at
|
|
80546
|
+
another company, from a Slack channel they are in; they always OK it on a card first.
|
|
80425
80547
|
- \`laze channels list\` lists the conversations you are in.
|
|
80426
80548
|
- \`laze conversation new <agent> "text"\` starts a conversation for your person, with you in
|
|
80427
80549
|
it and your text posted as you; \`laze conversation add <id> <member>\` adds workspace members
|
|
@@ -84465,9 +84587,9 @@ function formatAppMoney({
|
|
|
84465
84587
|
maximumFractionDigits: tiny ? 4 : 2
|
|
84466
84588
|
}).format(amount);
|
|
84467
84589
|
}
|
|
84468
|
-
var
|
|
84590
|
+
var count13 = new Intl.NumberFormat("en-US");
|
|
84469
84591
|
function plural2({ value, one, many }) {
|
|
84470
|
-
return `${
|
|
84592
|
+
return `${count13.format(value)} ${value === 1 ? one : many}`;
|
|
84471
84593
|
}
|
|
84472
84594
|
function appCostQuantityText(line) {
|
|
84473
84595
|
const { quantity } = line;
|
|
@@ -86514,7 +86636,7 @@ function preparedCommand({
|
|
|
86514
86636
|
const [problem] = unusableFieldProblems({ fields });
|
|
86515
86637
|
if (problem !== void 0) {
|
|
86516
86638
|
return {
|
|
86517
|
-
refusal: `laze vault: ${name3}: ${problem}, so the command did not run. Ask its owner to
|
|
86639
|
+
refusal: `laze vault: ${name3}: ${problem}, so the command did not run. Ask its owner to paste the key itself on the vault page.`
|
|
86518
86640
|
};
|
|
86519
86641
|
}
|
|
86520
86642
|
}
|
|
@@ -87943,7 +88065,7 @@ var appWrite = async ({ context, args }) => {
|
|
|
87943
88065
|
});
|
|
87944
88066
|
};
|
|
87945
88067
|
function seedLine(seeded) {
|
|
87946
|
-
const created = Object.entries(seeded.created).map(([name3,
|
|
88068
|
+
const created = Object.entries(seeded.created).map(([name3, count19]) => `${count19} in ${name3}`);
|
|
87947
88069
|
const parts = [
|
|
87948
88070
|
created.length ? `Loaded starter records: ${created.join(", ")}.` : "",
|
|
87949
88071
|
seeded.skipped.length ? `Left ${seeded.skipped.join(", ")} as it was: it already holds records.` : ""
|
|
@@ -88269,8 +88391,8 @@ function cardLine({ choice }) {
|
|
|
88269
88391
|
var appCard = async ({ context, args }) => {
|
|
88270
88392
|
const client = await appClient({ context, args });
|
|
88271
88393
|
const appId = await appIdOf({ client, args, folder: folderOf({ context, word: void 0 }) });
|
|
88272
|
-
const
|
|
88273
|
-
if (!Number.isInteger(
|
|
88394
|
+
const count19 = Number(flagText({ args, name: "rows", fallback: "5" }));
|
|
88395
|
+
if (!Number.isInteger(count19) || count19 < 1 || count19 > 10) {
|
|
88274
88396
|
throw new CliUsageError("--rows is a whole number from 1 to 10");
|
|
88275
88397
|
}
|
|
88276
88398
|
const text3 = (name3) => flagText({ args, name: name3 }) || null;
|
|
@@ -88283,7 +88405,7 @@ var appCard = async ({ context, args }) => {
|
|
|
88283
88405
|
collection: text3("collection"),
|
|
88284
88406
|
filter: flagText({ args, name: "where" }) || flagText({ args, name: "filter" }),
|
|
88285
88407
|
sort: flagText({ args, name: "sort" }),
|
|
88286
|
-
rows:
|
|
88408
|
+
rows: count19,
|
|
88287
88409
|
caption: text3("caption")
|
|
88288
88410
|
}
|
|
88289
88411
|
});
|
|
@@ -89981,9 +90103,9 @@ function presenceColumns(member) {
|
|
|
89981
90103
|
return [member.presence, `${status11.emoji} ${status11.text}`.trim() + until, ...dndColumn(member)];
|
|
89982
90104
|
}
|
|
89983
90105
|
function formatMembers({ detail }) {
|
|
89984
|
-
const
|
|
90106
|
+
const count19 = `${detail.members.length} ${detail.members.length === 1 ? "member" : "members"}`;
|
|
89985
90107
|
const ends = detail.endsAt ? `, ends ${utcTimeOf(detail.endsAt)}` : "";
|
|
89986
|
-
const head = `${channelLabelOf(detail)} (${detail.id}), ${
|
|
90108
|
+
const head = `${channelLabelOf(detail)} (${detail.id}), ${count19}${ends}`;
|
|
89987
90109
|
const rows = detail.members.map(
|
|
89988
90110
|
(member) => [ROLE[member.role], member.name, member.kind, member.id, ...presenceColumns(member)].join(" ")
|
|
89989
90111
|
);
|
|
@@ -90023,13 +90145,13 @@ function formatBrowsable({
|
|
|
90023
90145
|
}) {
|
|
90024
90146
|
if (channels3.length === 0) return "No channels to browse.\n";
|
|
90025
90147
|
const rows = channels3.map((channel) => {
|
|
90026
|
-
const
|
|
90148
|
+
const count19 = `${channel.memberCount} ${channel.memberCount === 1 ? "member" : "members"}`;
|
|
90027
90149
|
const marks = [
|
|
90028
90150
|
channel.joined ? "joined" : "not joined",
|
|
90029
90151
|
...channel.private ? ["private"] : [],
|
|
90030
90152
|
...channel.archived ? ["archived"] : []
|
|
90031
90153
|
].join(", ");
|
|
90032
|
-
const text3 = `#${channel.name} ${channel.id} ${
|
|
90154
|
+
const text3 = `#${channel.name} ${channel.id} ${count19} ${marks} ${channel.topic}`;
|
|
90033
90155
|
return withLink({ text: text3, url: channel.url, base });
|
|
90034
90156
|
});
|
|
90035
90157
|
return `${rows.join("\n")}
|
|
@@ -90547,7 +90669,7 @@ async function channelSettings({ context, args }) {
|
|
|
90547
90669
|
const shown2 = wanted ? channels3.filter((channel) => channel.id === wanted || channel.name === name3) : channels3;
|
|
90548
90670
|
if (wanted && shown2.length === 0) {
|
|
90549
90671
|
throw new CliUsageError(
|
|
90550
|
-
`${wanted} has no setting for you: you are not in it, or it is a 1:1 DM, which always
|
|
90672
|
+
`${wanted} has no setting for you: you are not in it, or it is a 1:1 DM or your own chat, which always reach you. laze channel settings lists your channels, shared conversations and agent chats.`
|
|
90551
90673
|
);
|
|
90552
90674
|
}
|
|
90553
90675
|
if (args.flags.json) {
|
|
@@ -91322,6 +91444,7 @@ var browserTabAskDefinition = external_exports.object({
|
|
|
91322
91444
|
savedIn: external_exports.string(),
|
|
91323
91445
|
at: external_exports.iso.datetime()
|
|
91324
91446
|
});
|
|
91447
|
+
var browserTabSignInHintSchema = external_exports.enum(["google_code", "none"]);
|
|
91325
91448
|
var browserTabDefinition = external_exports.object({
|
|
91326
91449
|
id: external_exports.string().min(1),
|
|
91327
91450
|
workspaceId: external_exports.string().min(1),
|
|
@@ -91340,6 +91463,8 @@ var browserTabDefinition = external_exports.object({
|
|
|
91340
91463
|
reused: external_exports.boolean().optional(),
|
|
91341
91464
|
/** Only on a read: the site the owner's dedicated IP last failed to reach, lately. */
|
|
91342
91465
|
routeFailure: external_exports.object({ host: external_exports.string().min(1), at: external_exports.iso.datetime() }).nullable().optional(),
|
|
91466
|
+
/** Only on a read while a request is open, for who sees the screen: help for the page now. */
|
|
91467
|
+
signInHint: browserTabSignInHintSchema.optional(),
|
|
91343
91468
|
/** What the reader may do: see the screen, type into it, change the tab; asked: the open
|
|
91344
91469
|
* request names them. */
|
|
91345
91470
|
you: external_exports.object({
|
|
@@ -93618,7 +93743,7 @@ var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
|
|
|
93618
93743
|
var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, machineId: idSchema26 });
|
|
93619
93744
|
var ComputeApi = moduleApi()("compute");
|
|
93620
93745
|
var computeBrowserTabTrpc = defineTrpcContract("compute").query("browserTabs").withInput(browserTabListInputSchema).withOutput(browserTabListSchema).query("browserTab").withInput(browserTabInputSchema).withOutput(browserTabSchema).mutation("openBrowserTab").withInput(openBrowserTabInputSchema).withOutput(browserTabSchema).mutation("browserTabScreen").withInput(browserTabInputSchema).withOutput(browserTabScreenSchema).mutation("sizeBrowserTabScreen").withInput(browserTabScreenSizeInputSchema).withOutput(browserTabScreenSizeSchema).mutation("gotoBrowserTab").withInput(browserTabGotoInputSchema).withOutput(browserTabPageSchema).mutation("stepBrowserTab").withInput(browserTabStepInputSchema).withOutput(browserTabPageSchema).mutation("doneOnBrowserTab").withInput(browserTabInputSchema).withOutput(browserTabSchema).mutation("shareBrowserTab").withInput(browserTabShareInputSchema).withOutput(browserTabSchema).mutation("closeBrowserTab").withInput(browserTabInputSchema).withOutput(external_exports.object({ closed: external_exports.literal(true) })).build();
|
|
93621
|
-
var computeCoreTrpc = defineTrpcContract("compute").query("status").withInput(computeWorkspaceInputSchema).withOutput(computeStatusSchema).query("computer").withInput(computeWorkspaceInputSchema).withOutput(computerStatusSchema).mutation("setComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerSizeAnswerSchema).mutation("requestComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerRequestSchema).mutation("cancelComputerRequest").withInput(computerRequestRefSchema).withOutput(computerRequestSchema).mutation("restartComputer").withInput(restartComputerInputSchema).withOutput(computerRestartAnswerSchema).query("computers").withInput(computeWorkspaceInputSchema).withOutput(computerListSchema).query("dedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpStatusSchema).mutation("setDedicatedIp").withInput(setDedicatedIpInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("turnOffDedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("setDedicatedIpDomains").withInput(setDedicatedIpDomainsInputSchema).withOutput(dedicatedIpAnswerSchema).query("dedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpListSchema).query("dedicatedIpCountries").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpCountriesSchema).query("dedicatedIpOffer").withInput(dedicatedIpOfferInputSchema).withOutput(dedicatedIpOfferSchema).query("myDedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(myDedicatedIpsSchema).mutation("buyDedicatedIp").withInput(buyDedicatedIpInputSchema).withOutput(heldIpAnswerSchema).mutation("attachDedicatedIp").withInput(attachDedicatedIpInputSchema).withOutput(heldIpAnswerSchema).mutation("detachDedicatedIp").withInput(detachDedicatedIpInputSchema).withOutput(heldIpAnswerSchema).mutation("releaseDedicatedIp").withInput(heldIpRefSchema).withOutput(heldIpAnswerSchema).mutation("setHeldIpSites").withInput(setHeldIpSitesInputSchema).withOutput(heldIpAnswerSchema).query("machineDedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(machineDedicatedIpsSchema).query("list").withInput(computeWorkspaceInputSchema).withOutput(external_exports.array(machineSchema)).query("get").withInput(machineRefSchema).withOutput(machineSchema).mutation("setupBrowser").withInput(setupBrowserInputSchema).withOutput(machineSchema).mutation("sleep").withInput(machineRefSchema).withOutput(machineSchema).mutation("wake").withInput(machineRefSchema).withOutput(machineSchema).mutation("delete").withInput(machineRefSchema).withOutput(machineSchema).mutation("rename").withInput(renameMachineInputSchema).withOutput(machineSchema).mutation("grant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("revokeGrant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("setBudget").withInput(setMachineBudgetInputSchema).withOutput(machineSchema).mutation("openScreen").withInput(openScreenInputSchema).withOutput(screenSessionSchema).mutation("openLoginTerminal").withInput(openLoginTerminalInputSchema).withOutput(loginTerminalSchema).mutation("finishScreen").withInput(screenRefSchema).withOutput(machineSchema).mutation("connectOwn").withInput(connectOwnMachineInputSchema).withOutput(ownMachineConnectSchema).mutation("newConnectCommand").withInput(machineRefSchema).withOutput(ownMachineConnectSchema).mutation("connectSsh").withInput(connectSshMachineInputSchema).withOutput(ownMachineSshConnectSchema).mutation("trustHostKey").withInput(trustHostKeyInputSchema).withOutput(machineSchema).mutation("checkHealth").withInput(machineRefSchema).withOutput(machineSchema).mutation("hostAgent").withInput(hostAgentInputSchema).withOutput(machineSchema).mutation("unhostAgent").withInput(unhostAgentInputSchema).withOutput(external_exports.object({ agentId: external_exports.string() })).mutation("pairWhatsapp").withInput(whatsappPairInputSchema).withOutput(whatsappPairingSchema).query("whatsappMirror").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).mutation("setWhatsappMirror").withInput(setWhatsappMirrorInputSchema).withOutput(whatsappMirrorSettingsSchema).query("whatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("cancelWhatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("unpairWhatsapp").withInput(machineRefSchema).withOutput(machineSchema).build();
|
|
93746
|
+
var computeCoreTrpc = defineTrpcContract("compute").query("status").withInput(computeWorkspaceInputSchema).withOutput(computeStatusSchema).query("computer").withInput(computeWorkspaceInputSchema).withOutput(computerStatusSchema).mutation("setComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerSizeAnswerSchema).mutation("requestComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerRequestSchema).mutation("cancelComputerRequest").withInput(computerRequestRefSchema).withOutput(computerRequestSchema).mutation("restartComputer").withInput(restartComputerInputSchema).withOutput(computerRestartAnswerSchema).query("computers").withInput(computeWorkspaceInputSchema).withOutput(computerListSchema).query("dedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpStatusSchema).mutation("setDedicatedIp").withInput(setDedicatedIpInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("turnOffDedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("setDedicatedIpDomains").withInput(setDedicatedIpDomainsInputSchema).withOutput(dedicatedIpAnswerSchema).query("dedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpListSchema).query("dedicatedIpCountries").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpCountriesSchema).query("dedicatedIpOffer").withInput(dedicatedIpOfferInputSchema).withOutput(dedicatedIpOfferSchema).query("myDedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(myDedicatedIpsSchema).mutation("buyDedicatedIp").withInput(buyDedicatedIpInputSchema).withOutput(heldIpAnswerSchema).mutation("attachDedicatedIp").withInput(attachDedicatedIpInputSchema).withOutput(heldIpAnswerSchema).mutation("detachDedicatedIp").withInput(detachDedicatedIpInputSchema).withOutput(heldIpAnswerSchema).mutation("releaseDedicatedIp").withInput(heldIpRefSchema).withOutput(heldIpAnswerSchema).mutation("setHeldIpSites").withInput(setHeldIpSitesInputSchema).withOutput(heldIpAnswerSchema).query("machineDedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(machineDedicatedIpsSchema).query("list").withInput(computeWorkspaceInputSchema).withOutput(external_exports.array(machineSchema)).query("get").withInput(machineRefSchema).withOutput(machineSchema).mutation("setupBrowser").withInput(setupBrowserInputSchema).withOutput(machineSchema).mutation("sleep").withInput(machineRefSchema).withOutput(machineSchema).mutation("wake").withInput(machineRefSchema).withOutput(machineSchema).mutation("delete").withInput(machineRefSchema).withOutput(machineSchema).mutation("rename").withInput(renameMachineInputSchema).withOutput(machineSchema).mutation("grant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("revokeGrant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("setBudget").withInput(setMachineBudgetInputSchema).withOutput(machineSchema).mutation("openScreen").withInput(openScreenInputSchema).withOutput(screenSessionSchema).mutation("openLoginTerminal").withInput(openLoginTerminalInputSchema).withOutput(loginTerminalSchema).mutation("finishScreen").withInput(screenRefSchema).withOutput(machineSchema).mutation("connectOwn").withInput(connectOwnMachineInputSchema).withOutput(ownMachineConnectSchema).mutation("newConnectCommand").withInput(machineRefSchema).withOutput(ownMachineConnectSchema).mutation("connectSsh").withInput(connectSshMachineInputSchema).withOutput(ownMachineSshConnectSchema.meta({ deprecated: true })).mutation("trustHostKey").withInput(trustHostKeyInputSchema).withOutput(machineSchema.meta({ deprecated: true })).mutation("checkHealth").withInput(machineRefSchema).withOutput(machineSchema).mutation("hostAgent").withInput(hostAgentInputSchema).withOutput(machineSchema).mutation("unhostAgent").withInput(unhostAgentInputSchema).withOutput(external_exports.object({ agentId: external_exports.string() })).mutation("pairWhatsapp").withInput(whatsappPairInputSchema).withOutput(whatsappPairingSchema).query("whatsappMirror").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).mutation("setWhatsappMirror").withInput(setWhatsappMirrorInputSchema).withOutput(whatsappMirrorSettingsSchema).query("whatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("cancelWhatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("unpairWhatsapp").withInput(machineRefSchema).withOutput(machineSchema).build();
|
|
93622
93747
|
var computeFleetTrpc = defineTrpcContract("compute").query("whatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("prepareWhatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("warmComputer").withInput(computeWorkspaceInputSchema).withOutput(warmComputerSchema).query("myComputers").withInput(computeWorkspaceInputSchema).withOutput(myComputersSchema).query("personComputer").withInput(personComputerInputSchema).withOutput(computerUseSchema2).mutation("createComputer").withInput(createComputerInputSchema).withOutput(computerStatusSchema).mutation("deleteComputer").withInput(deleteComputerInputSchema).withOutput(deleteComputerAnswerSchema).mutation("setComputerCreators").withInput(setComputerCreatorsInputSchema).withOutput(computerStatusSchema).mutation("setAgentComputer").withInput(setAgentComputerInputSchema).withOutput(agentComputerAnswerSchema).query("whatsappAgents").withInput(machineRefSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgent").withInput(setWhatsappAgentInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgentLease").withInput(setWhatsappAgentLeaseInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappEveryAgent").withInput(setWhatsappEveryAgentInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgentAccess").withInput(setWhatsappAgentAccessInputSchema).withOutput(whatsappAgentsSchema).mutation("checkWhatsappNow").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).query("whatsappChatPeople").withInput(whatsappChatPeopleInputSchema).withOutput(whatsappChatPeopleSchema).query("whatsappHistory").withInput(whatsappHistoryInputSchema).withOutput(whatsappHistoryPageSchema).mutation("watchWhatsappChat").withInput(whatsappWatchInputSchema).withOutput(whatsappWatchSchema).mutation("checkWhatsappReply").withInput(whatsappReplyCheckInputSchema).withOutput(whatsappReplyCheckSchema).build();
|
|
93623
93748
|
var computeTrpc = joinTrpcContracts(
|
|
93624
93749
|
"compute",
|
|
@@ -94101,7 +94226,7 @@ var sendWakeIntentDefinition = external_exports.object({
|
|
|
94101
94226
|
});
|
|
94102
94227
|
|
|
94103
94228
|
// ../../modules/compute/contract/src/whatsapp-ops.ts
|
|
94104
|
-
var
|
|
94229
|
+
var count14 = external_exports.number().int().nonnegative();
|
|
94105
94230
|
var at5 = external_exports.iso.datetime();
|
|
94106
94231
|
var whatsappMirrorHealthDefinition = external_exports.object({
|
|
94107
94232
|
mirrors: external_exports.array(
|
|
@@ -94119,33 +94244,33 @@ var whatsappMirrorHealthDefinition = external_exports.object({
|
|
|
94119
94244
|
nextVisitAt: at5.nullable(),
|
|
94120
94245
|
touchedAt: at5.nullable(),
|
|
94121
94246
|
createdAt: at5,
|
|
94122
|
-
skipped: external_exports.object({ count:
|
|
94247
|
+
skipped: external_exports.object({ count: count14, from: external_exports.number().int().nullable(), at: at5.nullable() }),
|
|
94123
94248
|
/** The last pull that met files; null when none did. */
|
|
94124
94249
|
files: external_exports.object({
|
|
94125
94250
|
at: at5,
|
|
94126
|
-
attached:
|
|
94127
|
-
unavailable:
|
|
94128
|
-
retrying:
|
|
94129
|
-
dropped:
|
|
94251
|
+
attached: count14,
|
|
94252
|
+
unavailable: count14,
|
|
94253
|
+
retrying: count14,
|
|
94254
|
+
dropped: count14,
|
|
94130
94255
|
failureCode: external_exports.string().nullable()
|
|
94131
94256
|
}).nullable(),
|
|
94132
94257
|
/** Intake holds (ADR-216 §11) by kind and code, with when the oldest was made. */
|
|
94133
|
-
holds: external_exports.array(external_exports.object({ kind: external_exports.string(), code: external_exports.string(), count:
|
|
94258
|
+
holds: external_exports.array(external_exports.object({ kind: external_exports.string(), code: external_exports.string(), count: count14, oldestAt: at5 })),
|
|
94134
94259
|
/**
|
|
94135
94260
|
* The computer store's fill (ADR-223): chats done, how many mirrored items from the last 6
|
|
94136
94261
|
* months Laze held, those the store held and those sent; the mirrored items Laze holds now
|
|
94137
94262
|
* and how many a trim to 7 days after last read would delete. Null before a fill started.
|
|
94138
94263
|
*/
|
|
94139
94264
|
storeFill: external_exports.object({
|
|
94140
|
-
chats:
|
|
94141
|
-
lazeHeld:
|
|
94142
|
-
alreadyHeld:
|
|
94143
|
-
sent:
|
|
94265
|
+
chats: count14,
|
|
94266
|
+
lazeHeld: count14,
|
|
94267
|
+
alreadyHeld: count14,
|
|
94268
|
+
sent: count14,
|
|
94144
94269
|
problem: external_exports.string().nullable(),
|
|
94145
94270
|
filledAt: at5.nullable(),
|
|
94146
94271
|
updatedAt: at5,
|
|
94147
|
-
mirrored:
|
|
94148
|
-
trimmable:
|
|
94272
|
+
mirrored: count14,
|
|
94273
|
+
trimmable: count14
|
|
94149
94274
|
}).nullable().optional()
|
|
94150
94275
|
})
|
|
94151
94276
|
)
|
|
@@ -94175,7 +94300,7 @@ var whatsappSendsDefinition = external_exports.object({
|
|
|
94175
94300
|
quoted: external_exports.boolean(),
|
|
94176
94301
|
/** Sends to the same chat share a number, counted from 1 in this answer; never the chat. */
|
|
94177
94302
|
chatIndex: external_exports.number().int().min(1),
|
|
94178
|
-
files:
|
|
94303
|
+
files: count14,
|
|
94179
94304
|
/**
|
|
94180
94305
|
* Why a failed send did not go: its stored code, or for older sends the code its outcome
|
|
94181
94306
|
* line reads as; "other" when none fits, null for a send that did not fail.
|
|
@@ -94203,7 +94328,7 @@ var whatsappSendStreamsDefinition = external_exports.object({
|
|
|
94203
94328
|
failureCode: external_exports.string().nullable(),
|
|
94204
94329
|
createdAt: at5,
|
|
94205
94330
|
/** The stream's events, its last event's kind and time; zero and null for none. */
|
|
94206
|
-
events:
|
|
94331
|
+
events: count14,
|
|
94207
94332
|
lastEvent: external_exports.enum(["requested", "taken", "evidenced", "refused", "unresolved", "recheck_requested"]).nullable(),
|
|
94208
94333
|
lastEventAt: at5.nullable(),
|
|
94209
94334
|
/** The process's step and deadline; null when no process holds the send. */
|
|
@@ -94214,9 +94339,9 @@ var whatsappSendStreamsDefinition = external_exports.object({
|
|
|
94214
94339
|
})
|
|
94215
94340
|
),
|
|
94216
94341
|
/** Counts over the answered sends. */
|
|
94217
|
-
total:
|
|
94218
|
-
agree:
|
|
94219
|
-
disagree:
|
|
94342
|
+
total: count14,
|
|
94343
|
+
agree: count14,
|
|
94344
|
+
disagree: count14
|
|
94220
94345
|
});
|
|
94221
94346
|
var whatsappSendStreamsSchema = whatsappSendStreamsDefinition;
|
|
94222
94347
|
var WHATSAPP_WAKE_STEPS = [
|
|
@@ -94256,11 +94381,11 @@ var whatsappWakeTimelineDefinition = external_exports.object({
|
|
|
94256
94381
|
external_exports.object({
|
|
94257
94382
|
step: external_exports.enum(WHATSAPP_WAKE_STEPS),
|
|
94258
94383
|
at: at5,
|
|
94259
|
-
sincePreviousMs:
|
|
94260
|
-
sinceRequestMs:
|
|
94384
|
+
sincePreviousMs: count14,
|
|
94385
|
+
sinceRequestMs: count14
|
|
94261
94386
|
})
|
|
94262
94387
|
),
|
|
94263
|
-
totalMs:
|
|
94388
|
+
totalMs: count14.nullable()
|
|
94264
94389
|
})
|
|
94265
94390
|
)
|
|
94266
94391
|
})
|
|
@@ -98684,7 +98809,9 @@ var answerFeedApprovalInputSchemaDefinition = external_exports.object({
|
|
|
98684
98809
|
via: external_exports.enum(["feed", "ios"]).optional(),
|
|
98685
98810
|
durationSeconds: external_exports.number().int().positive().optional(),
|
|
98686
98811
|
/** Why, or a steer for the agent: one line, at most 500 characters once cleaned. */
|
|
98687
|
-
resolutionNote: external_exports.string().max(4e3).default("")
|
|
98812
|
+
resolutionNote: external_exports.string().max(4e3).default(""),
|
|
98813
|
+
/** A vault card's request ids as the client showed them; joined asks not among them stay open. */
|
|
98814
|
+
seenRequestIds: external_exports.array(external_exports.string().min(1).max(64)).max(50).optional()
|
|
98688
98815
|
});
|
|
98689
98816
|
var answerFeedApprovalInputSchema = answerFeedApprovalInputSchemaDefinition;
|
|
98690
98817
|
var decideFeedRequestInputSchemaDefinition = external_exports.object({
|
|
@@ -99011,12 +99138,12 @@ function draftFilesMissingText(names) {
|
|
|
99011
99138
|
}
|
|
99012
99139
|
|
|
99013
99140
|
// ../../modules/feed/contract/src/feed.decisions.ts
|
|
99014
|
-
function decisionsLineOf(
|
|
99015
|
-
return `${
|
|
99141
|
+
function decisionsLineOf(count19) {
|
|
99142
|
+
return `${count19} ${count19 === 1 ? "decision" : "decisions"} waiting on you`;
|
|
99016
99143
|
}
|
|
99017
99144
|
|
|
99018
99145
|
// ../../modules/feed/contract/src/feed.ops-counts.ts
|
|
99019
|
-
var
|
|
99146
|
+
var count15 = external_exports.number().int().nonnegative();
|
|
99020
99147
|
var FEED_OPS_SYSTEM_AUTHOR = /^[a-z][a-z0-9_-]{0,39}$/;
|
|
99021
99148
|
var FEED_OPS_NOTICE_FAMILY = /^notice:[a-z][a-z0-9_-]{0,39}$/;
|
|
99022
99149
|
var feedOpsCountRowSchemaDefinition = external_exports.object({
|
|
@@ -99030,13 +99157,13 @@ var feedOpsCountRowSchemaDefinition = external_exports.object({
|
|
|
99030
99157
|
/** The notice family of a notice card (`notice:other` when its reference has no plain one). */
|
|
99031
99158
|
noticeFamily: external_exports.string().regex(FEED_OPS_NOTICE_FAMILY).nullable(),
|
|
99032
99159
|
/** In the person's open list: what "N things need you" counts. */
|
|
99033
|
-
open:
|
|
99160
|
+
open: count15,
|
|
99034
99161
|
/** Open and not read, as the summary's "N unread" counts. */
|
|
99035
|
-
unread:
|
|
99162
|
+
unread: count15,
|
|
99036
99163
|
/** Open and urgent. */
|
|
99037
|
-
urgent:
|
|
99164
|
+
urgent: count15,
|
|
99038
99165
|
/** Coming up: snoozed or shown later, as the Snoozed tab lists. */
|
|
99039
|
-
snoozed:
|
|
99166
|
+
snoozed: count15
|
|
99040
99167
|
});
|
|
99041
99168
|
var feedOpsCountRowSchema = feedOpsCountRowSchemaDefinition;
|
|
99042
99169
|
|
|
@@ -99650,8 +99777,8 @@ function optionalWords(words) {
|
|
|
99650
99777
|
}
|
|
99651
99778
|
function shareLinesOf({ move: move3, answer: answer6 }) {
|
|
99652
99779
|
const names = answer6.people.map((person) => person.name).join(", ") || "no one new";
|
|
99653
|
-
const
|
|
99654
|
-
const items = `${
|
|
99780
|
+
const count19 = answer6.itemIds.length;
|
|
99781
|
+
const items = `${count19} item${count19 === 1 ? "" : "s"}`;
|
|
99655
99782
|
const head = move3 === "share" ? `Shared ${items} with ${names}` : `Took ${names} off ${items}`;
|
|
99656
99783
|
return [head, ...answer6.itemIds].map((line) => `${line}
|
|
99657
99784
|
`).join("");
|
|
@@ -100300,13 +100427,13 @@ function formatHistory(output2) {
|
|
|
100300
100427
|
const lines2 = linesOf3(output2);
|
|
100301
100428
|
if (lines2.length === 0) return `${where}${from}: no messages.
|
|
100302
100429
|
`;
|
|
100303
|
-
const
|
|
100430
|
+
const count19 = lines2.length === 1 ? "1 message" : `${lines2.length} messages`;
|
|
100304
100431
|
const blocks = lines2.map(blockOf2).join("\n\n");
|
|
100305
100432
|
const cursor = olderCursorOf(output2);
|
|
100306
100433
|
const older = cursor ? `
|
|
100307
100434
|
|
|
100308
100435
|
Older: laze history ${output2.channel} --before ${cursor}` : "";
|
|
100309
|
-
return `${where}${from}: ${
|
|
100436
|
+
return `${where}${from}: ${count19}, oldest first
|
|
100310
100437
|
|
|
100311
100438
|
${blocks}${older}
|
|
100312
100439
|
`;
|
|
@@ -101762,10 +101889,10 @@ ${USAGE13}`);
|
|
|
101762
101889
|
if ("exitCode" in released) return released;
|
|
101763
101890
|
Object.assign(env, released.env);
|
|
101764
101891
|
}
|
|
101765
|
-
const
|
|
101766
|
-
if (
|
|
101892
|
+
const count19 = Object.keys(env).length;
|
|
101893
|
+
if (count19 > EXEC_ENV_MAX) {
|
|
101767
101894
|
context.err(
|
|
101768
|
-
`laze: these connections hold ${
|
|
101895
|
+
`laze: these connections hold ${count19} variables; at most ${EXEC_ENV_MAX} go with a command. Send fewer connections, or run the command with \`laze vault run\` where you run.
|
|
101769
101896
|
`
|
|
101770
101897
|
);
|
|
101771
101898
|
return { exitCode: 1 };
|
|
@@ -101922,7 +102049,7 @@ function secretRefusal({
|
|
|
101922
102049
|
rules = MCP_SECRET_COMMANDS
|
|
101923
102050
|
}) {
|
|
101924
102051
|
const { words, flags: flags2 } = parseArgs({ argv });
|
|
101925
|
-
const command = [3, 2, 1].map((
|
|
102052
|
+
const command = [3, 2, 1].map((count19) => words.slice(0, count19).join(" ")).find((name3) => Object.hasOwn(rules, name3));
|
|
101926
102053
|
const rule = command === void 0 ? void 0 : rules[command];
|
|
101927
102054
|
if (!command || !rule) return void 0;
|
|
101928
102055
|
const vaultFlag = rule.vaultFlag ?? "from-vault";
|
|
@@ -102673,11 +102800,11 @@ async function monitorAdd({ context, args }) {
|
|
|
102673
102800
|
});
|
|
102674
102801
|
if (args.flags.json) return context.out(`${JSON.stringify(added, null, 2)}
|
|
102675
102802
|
`);
|
|
102676
|
-
const
|
|
102803
|
+
const count19 = added.watching.length;
|
|
102677
102804
|
context.out(
|
|
102678
102805
|
`${added.monitor.id} ${added.monitor.name}
|
|
102679
102806
|
${added.watching.join(" ")}
|
|
102680
|
-
Watching ${
|
|
102807
|
+
Watching ${count19} ${count19 === 1 ? "channel" : "channels"}
|
|
102681
102808
|
`
|
|
102682
102809
|
);
|
|
102683
102810
|
}
|
|
@@ -103015,7 +103142,7 @@ import { dirname as dirname24, join as join34 } from "node:path";
|
|
|
103015
103142
|
var OPERATOR_KEY = {
|
|
103016
103143
|
lifetimeMinutes: 60,
|
|
103017
103144
|
/** A key nobody answered expires this long after it was asked for. */
|
|
103018
|
-
pendingMinutes:
|
|
103145
|
+
pendingMinutes: 120,
|
|
103019
103146
|
/** Requests one API key may have waiting at once. */
|
|
103020
103147
|
maxWaiting: 3
|
|
103021
103148
|
};
|
|
@@ -103225,6 +103352,23 @@ var serviceTraceDefinition = external_exports.object({
|
|
|
103225
103352
|
rootService: external_exports.string().nullable()
|
|
103226
103353
|
});
|
|
103227
103354
|
var serviceTraceSchema = serviceTraceDefinition;
|
|
103355
|
+
var tracedProcedureSchema = external_exports.string().regex(
|
|
103356
|
+
/^[a-zA-Z][a-zA-Z0-9.]{0,127}$/,
|
|
103357
|
+
"a procedure: letters, digits and dots, such as chat.post"
|
|
103358
|
+
);
|
|
103359
|
+
var handledErrorCodeSchema = external_exports.string().regex(/^[a-z][a-z0-9_]{0,63}$/, "an error code: lower case letters, digits and underscores");
|
|
103360
|
+
var refusedCallDefinition = external_exports.object({
|
|
103361
|
+
at: at7,
|
|
103362
|
+
durationMs: external_exports.number().nonnegative(),
|
|
103363
|
+
traceId: external_exports.string(),
|
|
103364
|
+
spanId: external_exports.string(),
|
|
103365
|
+
/** The procedure's path and the handled error's code; null when the span carried none. */
|
|
103366
|
+
procedure: external_exports.string().nullable(),
|
|
103367
|
+
code: external_exports.string().nullable(),
|
|
103368
|
+
/** The handled error's fault, `customer` or `system`; null when the span carried none. */
|
|
103369
|
+
fault: external_exports.string().nullable()
|
|
103370
|
+
});
|
|
103371
|
+
var refusedCallSchema = refusedCallDefinition;
|
|
103228
103372
|
|
|
103229
103373
|
// ../../modules/rum/contract/src/rum.api.ts
|
|
103230
103374
|
var RumApi = moduleApi()("rum");
|
|
@@ -103941,17 +104085,17 @@ var wikiMentionedPayloadSchemaDefinition = external_exports.object({
|
|
|
103941
104085
|
}).strict();
|
|
103942
104086
|
|
|
103943
104087
|
// ../../modules/wiki/contract/src/wiki-support-pages.ts
|
|
103944
|
-
var
|
|
103945
|
-
var wikiSupportPageCountDefinition = external_exports.object({ pages:
|
|
104088
|
+
var count16 = external_exports.number().int().nonnegative();
|
|
104089
|
+
var wikiSupportPageCountDefinition = external_exports.object({ pages: count16, workspaces: count16 }).strict();
|
|
103946
104090
|
var wikiSupportPageCountSchema = wikiSupportPageCountDefinition;
|
|
103947
104091
|
|
|
103948
104092
|
// ../../modules/wiki/contract/src/wiki-locked-pages.ts
|
|
103949
104093
|
var WIKI_LOCKED_PAGES_LIMIT = 200;
|
|
103950
|
-
var
|
|
104094
|
+
var count17 = external_exports.number().int().nonnegative();
|
|
103951
104095
|
var id6 = external_exports.string().min(1).max(200);
|
|
103952
104096
|
var wikiLockedPagesDefinition = external_exports.object({
|
|
103953
|
-
pages:
|
|
103954
|
-
workspaces:
|
|
104097
|
+
pages: count17,
|
|
104098
|
+
workspaces: count17,
|
|
103955
104099
|
locked: external_exports.array(external_exports.object({ workspaceId: id6, pageId: id6 }).strict()).max(WIKI_LOCKED_PAGES_LIMIT),
|
|
103956
104100
|
truncated: external_exports.boolean()
|
|
103957
104101
|
}).strict();
|
|
@@ -104015,12 +104159,12 @@ var funnelInputDefinition = external_exports.object({
|
|
|
104015
104159
|
to: external_exports.iso.datetime(),
|
|
104016
104160
|
bucketMinutes: external_exports.union([external_exports.literal(10), external_exports.literal(60), external_exports.literal(1440)]).default(60)
|
|
104017
104161
|
}).strict();
|
|
104018
|
-
var
|
|
104162
|
+
var count18 = external_exports.number().int().nonnegative();
|
|
104019
104163
|
var funnelCountsDefinition = external_exports.object({
|
|
104020
|
-
signUps:
|
|
104021
|
-
workspaces:
|
|
104022
|
-
activatedTeams:
|
|
104023
|
-
payingTeams:
|
|
104164
|
+
signUps: count18,
|
|
104165
|
+
workspaces: count18,
|
|
104166
|
+
activatedTeams: count18,
|
|
104167
|
+
payingTeams: count18
|
|
104024
104168
|
});
|
|
104025
104169
|
var funnelOutputDefinition = external_exports.object({
|
|
104026
104170
|
bucketMinutes: external_exports.number().int(),
|
|
@@ -104049,34 +104193,34 @@ var cohortOutputDefinition = external_exports.object({
|
|
|
104049
104193
|
promotionId: external_exports.string().nullable(),
|
|
104050
104194
|
plan: external_exports.string(),
|
|
104051
104195
|
paying: external_exports.boolean(),
|
|
104052
|
-
members:
|
|
104196
|
+
members: count18,
|
|
104053
104197
|
agents: external_exports.object({
|
|
104054
|
-
laze:
|
|
104055
|
-
connected:
|
|
104198
|
+
laze: count18,
|
|
104199
|
+
connected: count18,
|
|
104056
104200
|
firstLazeAgentAt: external_exports.iso.datetime().nullable()
|
|
104057
104201
|
}),
|
|
104058
|
-
turns:
|
|
104059
|
-
appsCreated:
|
|
104060
|
-
connectionsLinked:
|
|
104202
|
+
turns: count18,
|
|
104203
|
+
appsCreated: count18,
|
|
104204
|
+
connectionsLinked: count18,
|
|
104061
104205
|
/** Slack channels mirrored, Slack and Discord link and intake events, WhatsApp mirrors on. */
|
|
104062
104206
|
messaging: external_exports.object({
|
|
104063
|
-
slackChannels:
|
|
104064
|
-
slackEvents:
|
|
104065
|
-
discordEvents:
|
|
104066
|
-
whatsappMirrors:
|
|
104207
|
+
slackChannels: count18,
|
|
104208
|
+
slackEvents: count18,
|
|
104209
|
+
discordEvents: count18,
|
|
104210
|
+
whatsappMirrors: count18
|
|
104067
104211
|
}),
|
|
104068
104212
|
creatorLastMessageAt: external_exports.iso.datetime().nullable(),
|
|
104069
104213
|
/** The creator's last heartbeat from a Laze web or desktop window here; null when never. */
|
|
104070
104214
|
creatorLastSeenAt: external_exports.iso.datetime().nullable(),
|
|
104071
104215
|
/** Members whose last heartbeat here falls in the 7 days before `until`. */
|
|
104072
|
-
peopleSeenLast7Days:
|
|
104216
|
+
peopleSeenLast7Days: count18,
|
|
104073
104217
|
/** Live messages per UTC day; days with none are left out. */
|
|
104074
104218
|
days: external_exports.array(
|
|
104075
104219
|
external_exports.object({
|
|
104076
104220
|
day: external_exports.string(),
|
|
104077
|
-
byPeople:
|
|
104078
|
-
byAgents:
|
|
104079
|
-
people:
|
|
104221
|
+
byPeople: count18,
|
|
104222
|
+
byAgents: count18,
|
|
104223
|
+
people: count18
|
|
104080
104224
|
})
|
|
104081
104225
|
),
|
|
104082
104226
|
/** The once-only sends nurturing kept (first_agent_made, first_agent_nudge, ...). */
|
|
@@ -104100,29 +104244,29 @@ var capacityOutputDefinition = external_exports.object({
|
|
|
104100
104244
|
/** The last day of host load, oldest first. */
|
|
104101
104245
|
history: external_exports.array(hostLoadPointSchema)
|
|
104102
104246
|
});
|
|
104103
|
-
var tally = external_exports.array(external_exports.object({ key: external_exports.string(), count:
|
|
104247
|
+
var tally = external_exports.array(external_exports.object({ key: external_exports.string(), count: count18 }));
|
|
104104
104248
|
var snapshotOutputDefinition = external_exports.object({
|
|
104105
104249
|
workspaceId: external_exports.string(),
|
|
104106
104250
|
createdAt: external_exports.iso.datetime(),
|
|
104107
104251
|
plan: external_exports.string(),
|
|
104108
104252
|
status: external_exports.string(),
|
|
104109
|
-
seats: external_exports.object({ people:
|
|
104253
|
+
seats: external_exports.object({ people: count18, limit: external_exports.number().int().nullable() }),
|
|
104110
104254
|
membersByRole: tally,
|
|
104111
104255
|
invitesByStatus: tally,
|
|
104112
104256
|
agentsByKind: tally,
|
|
104113
104257
|
agentsByHosting: tally,
|
|
104114
|
-
agentsConnected:
|
|
104258
|
+
agentsConnected: count18,
|
|
104115
104259
|
flagsOn: external_exports.array(external_exports.string()),
|
|
104116
|
-
complimentaryComputers:
|
|
104260
|
+
complimentaryComputers: count18
|
|
104117
104261
|
});
|
|
104118
104262
|
var eventsInputDefinition = external_exports.object({ from: external_exports.iso.datetime(), to: external_exports.iso.datetime() }).strict();
|
|
104119
104263
|
var eventCountsDefinition = external_exports.object({
|
|
104120
|
-
total:
|
|
104264
|
+
total: count18,
|
|
104121
104265
|
/** Per type: how many, and the stored bytes of their payloads and sealed copies. */
|
|
104122
104266
|
byType: external_exports.array(
|
|
104123
104267
|
external_exports.object({
|
|
104124
104268
|
eventType: external_exports.string(),
|
|
104125
|
-
count:
|
|
104269
|
+
count: count18,
|
|
104126
104270
|
payloadBytes: external_exports.number().nonnegative(),
|
|
104127
104271
|
encryptedCopyBytes: external_exports.number().nonnegative()
|
|
104128
104272
|
})
|
|
@@ -104176,9 +104320,9 @@ var databaseHealthDefinition = external_exports.object({
|
|
|
104176
104320
|
deadlocks: external_exports.number().nonnegative(),
|
|
104177
104321
|
tempBytes: external_exports.number().nonnegative(),
|
|
104178
104322
|
connections: external_exports.object({
|
|
104179
|
-
total:
|
|
104180
|
-
byState: external_exports.array(external_exports.object({ state: external_exports.string(), count:
|
|
104181
|
-
waitingOnLocks:
|
|
104323
|
+
total: count18,
|
|
104324
|
+
byState: external_exports.array(external_exports.object({ state: external_exports.string(), count: count18 })),
|
|
104325
|
+
waitingOnLocks: count18,
|
|
104182
104326
|
longestActiveSeconds: external_exports.number().nonnegative(),
|
|
104183
104327
|
longestIdleInTransactionSeconds: external_exports.number().nonnegative()
|
|
104184
104328
|
}),
|
|
@@ -104233,7 +104377,7 @@ var tenantAgentsDefinition = external_exports.object({
|
|
|
104233
104377
|
createdAt: external_exports.iso.datetime(),
|
|
104234
104378
|
modelLevel: external_exports.string().nullable(),
|
|
104235
104379
|
model: external_exports.string().nullable(),
|
|
104236
|
-
channels:
|
|
104380
|
+
channels: count18,
|
|
104237
104381
|
limitedUntil: external_exports.iso.datetime().nullable(),
|
|
104238
104382
|
limitedBy: external_exports.string().nullable(),
|
|
104239
104383
|
pausedAt: external_exports.iso.datetime().nullable(),
|
|
@@ -104287,8 +104431,8 @@ var tenantBillingDefinition = external_exports.object({
|
|
|
104287
104431
|
currencyChosen: external_exports.boolean(),
|
|
104288
104432
|
cancelAtPeriodEnd: external_exports.boolean(),
|
|
104289
104433
|
period: external_exports.object({ start: external_exports.iso.datetime(), end: external_exports.iso.datetime() }).nullable(),
|
|
104290
|
-
seats: external_exports.object({ people:
|
|
104291
|
-
complimentarySeats:
|
|
104434
|
+
seats: external_exports.object({ people: count18, limit: count18.nullable(), monthlyPrice: external_exports.number() }),
|
|
104435
|
+
complimentarySeats: count18.nullable(),
|
|
104292
104436
|
credits: external_exports.object({
|
|
104293
104437
|
included: external_exports.number(),
|
|
104294
104438
|
includedLeft: external_exports.number(),
|
|
@@ -104327,14 +104471,14 @@ var tenantVaultDefinition = external_exports.object({
|
|
|
104327
104471
|
external_exports.object({
|
|
104328
104472
|
subject: external_exports.string(),
|
|
104329
104473
|
most: external_exports.string(),
|
|
104330
|
-
maxLeaseSeconds:
|
|
104474
|
+
maxLeaseSeconds: count18.nullable(),
|
|
104331
104475
|
blocked: external_exports.boolean(),
|
|
104332
104476
|
approveNew: external_exports.boolean(),
|
|
104333
104477
|
updatedAt: external_exports.iso.datetime()
|
|
104334
104478
|
})
|
|
104335
104479
|
),
|
|
104336
104480
|
/** Connections waiting for an admin, counted by kind; never a name, label or field. */
|
|
104337
|
-
waitingByKind: external_exports.array(external_exports.object({ key: external_exports.string(), count:
|
|
104481
|
+
waitingByKind: external_exports.array(external_exports.object({ key: external_exports.string(), count: count18 }))
|
|
104338
104482
|
});
|
|
104339
104483
|
var WHATSAPP_INTAKE_KEY_KINDS = ["msg", "edit", "del", "react", "read"];
|
|
104340
104484
|
var tenantWhatsappInputDefinition = external_exports.object({
|
|
@@ -104347,17 +104491,17 @@ var tenantWhatsappOutputDefinition = external_exports.object({
|
|
|
104347
104491
|
intake: external_exports.object({
|
|
104348
104492
|
since: external_exports.iso.datetime(),
|
|
104349
104493
|
until: external_exports.iso.datetime(),
|
|
104350
|
-
total:
|
|
104494
|
+
total: count18,
|
|
104351
104495
|
byKind: external_exports.array(
|
|
104352
104496
|
external_exports.object({
|
|
104353
104497
|
kind: external_exports.enum([...WHATSAPP_INTAKE_KEY_KINDS, "other"]),
|
|
104354
|
-
count:
|
|
104498
|
+
count: count18,
|
|
104355
104499
|
/** Events dated over a second after Laze got them, and the most ahead: a fast clock. */
|
|
104356
|
-
aheadOfLaze: external_exports.object({ count:
|
|
104500
|
+
aheadOfLaze: external_exports.object({ count: count18, maxAheadMs: external_exports.number().int() }).optional()
|
|
104357
104501
|
})
|
|
104358
104502
|
),
|
|
104359
104503
|
/** The workspace's chat messages and changes dated over a second after Laze stored them. */
|
|
104360
|
-
chatAheadOfLaze: external_exports.object({ count:
|
|
104504
|
+
chatAheadOfLaze: external_exports.object({ count: count18, maxAheadMs: external_exports.number().int() }).optional()
|
|
104361
104505
|
})
|
|
104362
104506
|
});
|
|
104363
104507
|
var computerBrowserInputDefinition = external_exports.object({
|
|
@@ -104487,6 +104631,18 @@ var feedCountsInputDefinition = external_exports.object({
|
|
|
104487
104631
|
cursor: cursorDefinition.optional()
|
|
104488
104632
|
}).strict();
|
|
104489
104633
|
var feedCountsOutputDefinition = external_exports.object({ counts: pageOf(feedOpsCountRowSchema) });
|
|
104634
|
+
var pushOutcomesInputDefinition = external_exports.object({
|
|
104635
|
+
from: external_exports.iso.datetime(),
|
|
104636
|
+
to: external_exports.iso.datetime(),
|
|
104637
|
+
userId: external_exports.string().trim().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/).optional(),
|
|
104638
|
+
limit: external_exports.number().int().min(1).max(500).default(200),
|
|
104639
|
+
cursor: cursorDefinition.optional()
|
|
104640
|
+
}).strict();
|
|
104641
|
+
var pushOutcomesOutputDefinition = external_exports.object({
|
|
104642
|
+
outcomes: pageOf(pushOutcomeRowSchema),
|
|
104643
|
+
byDay: external_exports.array(pushOutcomeDayRowSchema),
|
|
104644
|
+
installs: external_exports.array(pushInstallRowSchema)
|
|
104645
|
+
});
|
|
104490
104646
|
var variableReferenceKeysInputDefinition = external_exports.object({
|
|
104491
104647
|
limit: external_exports.number().int().min(1).max(500).default(100),
|
|
104492
104648
|
cursor: cursorDefinition.optional()
|
|
@@ -104544,6 +104700,17 @@ var serviceTracesInputDefinition = external_exports.object({
|
|
|
104544
104700
|
cursor: cursorDefinition.optional()
|
|
104545
104701
|
}).strict();
|
|
104546
104702
|
var serviceTracesOutputDefinition = external_exports.object({ traces: pageOf(serviceTraceSchema) });
|
|
104703
|
+
var refusedCallsInputDefinition = external_exports.object({
|
|
104704
|
+
from: external_exports.iso.datetime(),
|
|
104705
|
+
to: external_exports.iso.datetime(),
|
|
104706
|
+
/** The procedure's path, such as `chat.post`; every procedure when absent. */
|
|
104707
|
+
procedure: tracedProcedureSchema.optional(),
|
|
104708
|
+
/** The handled error's code, such as `message_not_found`; every code when absent. */
|
|
104709
|
+
code: handledErrorCodeSchema.optional(),
|
|
104710
|
+
limit: external_exports.number().int().min(1).max(500).default(100),
|
|
104711
|
+
cursor: cursorDefinition.optional()
|
|
104712
|
+
}).strict();
|
|
104713
|
+
var refusedCallsOutputDefinition = external_exports.object({ calls: pageOf(refusedCallSchema) });
|
|
104547
104714
|
var supportRenotifyInputDefinition = external_exports.object({
|
|
104548
104715
|
since: external_exports.iso.datetime(),
|
|
104549
104716
|
staffUserId: external_exports.string().min(1).max(64).optional(),
|
|
@@ -104693,6 +104860,13 @@ var OPS_FUNCTIONS = {
|
|
|
104693
104860
|
input: feedCountsInputDefinition,
|
|
104694
104861
|
output: feedCountsOutputDefinition
|
|
104695
104862
|
}),
|
|
104863
|
+
"tenant.push_outcomes": entry({
|
|
104864
|
+
title: "One workspace's phone pushes over a range: queued, delivered, failed and held, by code",
|
|
104865
|
+
scope: "tenant",
|
|
104866
|
+
view: "table",
|
|
104867
|
+
input: pushOutcomesInputDefinition,
|
|
104868
|
+
output: pushOutcomesOutputDefinition
|
|
104869
|
+
}),
|
|
104696
104870
|
"tenant.vault_connections": entry({
|
|
104697
104871
|
title: "One workspace's vault connections: status, sealing, provider and their audit codes",
|
|
104698
104872
|
scope: "tenant",
|
|
@@ -104806,6 +104980,13 @@ var OPS_FUNCTIONS = {
|
|
|
104806
104980
|
input: serviceTracesInputDefinition,
|
|
104807
104981
|
output: serviceTracesOutputDefinition
|
|
104808
104982
|
}),
|
|
104983
|
+
"traces.refused_calls": entry({
|
|
104984
|
+
title: "tRPC calls refused with an error code over a range: procedure, code, fault, trace ids and times",
|
|
104985
|
+
scope: "platform",
|
|
104986
|
+
view: "table",
|
|
104987
|
+
input: refusedCallsInputDefinition,
|
|
104988
|
+
output: refusedCallsOutputDefinition
|
|
104989
|
+
}),
|
|
104809
104990
|
"wiki.support_pages": entry({
|
|
104810
104991
|
title: "Wiki pages in a Laze Support channel or the staff triage, and their workspaces, as counts",
|
|
104811
104992
|
scope: "platform",
|
|
@@ -105727,6 +105908,10 @@ var SLACK_USAGE = `Usage (a person's key; Slack stays the source, the bot joins
|
|
|
105727
105908
|
laze slack post <channelId> <text> [--thread <messageId>]
|
|
105728
105909
|
an agent posts in its owner's Slack mirror as the owner, in a turn the owner started;
|
|
105729
105910
|
the text from stdin when none is given. Read Slack with laze history, search and thread
|
|
105911
|
+
laze slack connect-invite <channelId> <email> [--full-access]
|
|
105912
|
+
an agent has the Laze bot invite someone from another company to its owner's Slack
|
|
105913
|
+
channel (Slack Connect), in a turn the owner started, once the owner allows it;
|
|
105914
|
+
--full-access lets them also invite others and manage the channel
|
|
105730
105915
|
laze slack profiles <slack:T:U>... Slack status, title and time zone of authors
|
|
105731
105916
|
laze slack bookmarks <channelId> a mirrored Slack channel's bookmarks
|
|
105732
105917
|
laze slack link <teamId> prints the link that links your own Slack
|
|
@@ -105879,6 +106064,17 @@ var post2 = async ({ context, args, client }) => {
|
|
|
105879
106064
|
context.out(`Posted as your owner: ${posted.messageId} in ${posted.channelId}
|
|
105880
106065
|
`);
|
|
105881
106066
|
};
|
|
106067
|
+
var connectInvite = async ({ context, args, client }) => {
|
|
106068
|
+
const email3 = wordAt9(args, 3);
|
|
106069
|
+
const invited = await client.post(SLACK_CONNECT_INVITE_PATH, {
|
|
106070
|
+
channelId: wordAt9(args, 2),
|
|
106071
|
+
email: email3,
|
|
106072
|
+
externalLimited: args.flags["full-access"] !== true
|
|
106073
|
+
});
|
|
106074
|
+
if (json5({ context, args, data: invited })) return;
|
|
106075
|
+
context.out(`Slack Connect invite sent to ${invited.email} (${invited.inviteId})
|
|
106076
|
+
`);
|
|
106077
|
+
};
|
|
105882
106078
|
var dm = async ({ context, args, client }) => {
|
|
105883
106079
|
const opened = await client.post(SLACK_KEY_PATHS.direct, {
|
|
105884
106080
|
teamId: wordAt9(args, 2),
|
|
@@ -106048,6 +106244,7 @@ var RUNS6 = {
|
|
|
106048
106244
|
bookmarks,
|
|
106049
106245
|
dm,
|
|
106050
106246
|
post: post2,
|
|
106247
|
+
"connect-invite": connectInvite,
|
|
106051
106248
|
link: authorizeRun2(SLACK_KEY_PATHS.link, "Open this link to link your Slack account", teamOf),
|
|
106052
106249
|
unlink: connectionRun2(SLACK_KEY_PATHS.unlink, teamOf),
|
|
106053
106250
|
install: authorizeRun2(
|
|
@@ -107350,7 +107547,7 @@ async function vaultSave({ context, args }) {
|
|
|
107350
107547
|
// src/services/vault-scrub-commands.service.ts
|
|
107351
107548
|
function lineOf6(channel) {
|
|
107352
107549
|
const where = channel.name ? `#${channel.name}` : channel.channelId;
|
|
107353
|
-
const found = Object.entries(channel.found).map(([vendor,
|
|
107550
|
+
const found = Object.entries(channel.found).map(([vendor, count19]) => `${vendor} ${count19}`).join(", ");
|
|
107354
107551
|
const kinds = [`held ${channel.held}`, ...found ? [`found: ${found}`] : []].join("; ");
|
|
107355
107552
|
return `${where} scanned ${channel.scanned} changed ${channel.messages} ${kinds}
|
|
107356
107553
|
`;
|
|
@@ -108740,8 +108937,8 @@ async function roles({ context, args }) {
|
|
|
108740
108937
|
const catalogue = await client.get("/api/roles");
|
|
108741
108938
|
if (args.flags.json) return printJson11(context, catalogue);
|
|
108742
108939
|
for (const role2 of catalogue) {
|
|
108743
|
-
const
|
|
108744
|
-
context.out(`${role2.label} ${
|
|
108940
|
+
const count19 = `${role2.permissions.length} permissions`;
|
|
108941
|
+
context.out(`${role2.label} ${count19} ${role2.description}
|
|
108745
108942
|
`);
|
|
108746
108943
|
context.out(` ${role2.permissions.join(", ")}
|
|
108747
108944
|
`);
|
|
@@ -108855,10 +109052,10 @@ var HELP = `laze: work in a Laze workspace from your terminal or your agent.
|
|
|
108855
109052
|
laze groups rename <group> <name> | delete <group> rename one, or delete it and take back what it shared (admins)
|
|
108856
109053
|
laze groups add|remove <group> --person <member>.. change who is in it (admins)
|
|
108857
109054
|
laze channels list the conversations you are in, with your setting
|
|
108858
|
-
laze channel set <channel> everything|mentions what of a channel
|
|
109055
|
+
laze channel set <channel> everything|mentions what of a channel, shared conversation or agent chat (3+ members, by id) reaches your agent
|
|
108859
109056
|
laze channel mute <channel> --reason "<why>" [--for 30m|2h|1d] stop hearing a noisy channel or conversation unless named (agents)
|
|
108860
109057
|
laze channel unmute <channel> hear the channel or conversation on your setting again (agents)
|
|
108861
|
-
laze channel settings [<channel>] [--json] each channel
|
|
109058
|
+
laze channel settings [<channel>] [--json] the setting and mute in each channel, shared conversation and agent chat; a 1:1 DM and your own chat always reach you (agents)
|
|
108862
109059
|
laze monitor add <name> --channel '#x-*' --prompt '<what to do>' [--from anyone|people|slack] [--not-from bots] [--thread roots-only] [--matches '<re>'] a turn on each new matching message (agents)
|
|
108863
109060
|
laze monitor list | pause | resume | rm <name> [--json] the agent's monitors
|
|
108864
109061
|
laze channel members <channel> its people and agents, each an Admin or a Member
|