@vm0/cli 9.219.0 → 9.220.0
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/{agent-4SQZDYYN.js → agent-7NASKRN2.js} +4 -4
- package/{automation-WPG4IYVE.js → automation-DL2TSVCY.js} +21 -11
- package/automation-DL2TSVCY.js.map +1 -0
- package/{banking-S7GOP6WI.js → banking-7766P2VA.js} +2 -2
- package/{chat-6E34QZHI.js → chat-7Y3GRRQU.js} +2 -2
- package/{chunk-NUCGXUQW.js → chunk-2WLLGU5G.js} +2 -2
- package/{chunk-UQBJX5J5.js → chunk-BDVHHGRQ.js} +7 -7
- package/{chunk-O5WIIYWN.js → chunk-CYWNKBCJ.js} +2 -2
- package/{chunk-B33JIZI2.js → chunk-EIORAGIM.js} +3 -3
- package/chunk-H63W4KQL.js +160 -0
- package/chunk-H63W4KQL.js.map +1 -0
- package/{chunk-7DWLR3AY.js → chunk-IP5MKNYO.js} +9 -7
- package/{chunk-7DWLR3AY.js.map → chunk-IP5MKNYO.js.map} +1 -1
- package/{chunk-RYGMBENC.js → chunk-JJNOLW3F.js} +2 -2
- package/{chunk-Q47FRJVT.js → chunk-MES7TURQ.js} +51 -182
- package/chunk-MES7TURQ.js.map +1 -0
- package/{chunk-C3NCF7AC.js → chunk-PHLVIRTN.js} +56 -29
- package/chunk-PHLVIRTN.js.map +1 -0
- package/{chunk-PTXI3X6L.js → chunk-QCBHUHCP.js} +2 -2
- package/clerk.generated-ERU55NQP.js +402 -0
- package/clerk.generated-ERU55NQP.js.map +1 -0
- package/{computer-use-P5NZISFJ.js → computer-use-DFWKRS5C.js} +2 -2
- package/{connector-BF7GN5KJ.js → connector-XXMPNPPI.js} +3 -3
- package/{credit-MUMH2AFQ.js → credit-EXQA2ZKH.js} +2 -2
- package/{developer-support-YRODRFDP.js → developer-support-HV2KNBFK.js} +2 -2
- package/{doctor-SYQVWI4X.js → doctor-B3XKCTAQ.js} +5 -5
- package/dropbox.generated-ZZKEVL5X.js +140 -0
- package/dropbox.generated-ZZKEVL5X.js.map +1 -0
- package/{generate-SOTMY5L2.js → generate-76KZOWWD.js} +3 -3
- package/{github-M5QMAGUR.js → github-R33X2DZP.js} +2 -2
- package/{goal-UCWUNBDX.js → goal-6EHEH3W6.js} +2 -2
- package/{host-FBIUSQM5.js → host-QJVQWPTD.js} +2 -2
- package/index.js +20 -18
- package/index.js.map +1 -1
- package/{logs-2WS7C3NG.js → logs-TP25S725.js} +13 -11
- package/{logs-2WS7C3NG.js.map → logs-TP25S725.js.map} +1 -1
- package/{maps-F6HS3TX3.js → maps-GGAFUIRJ.js} +2 -2
- package/{model-WVSFDOUB.js → model-B3IPEBEY.js} +3 -3
- package/{model-provider-RW5KSE2A.js → model-provider-3AKAPHTA.js} +3 -3
- package/{org-HG7QC6H2.js → org-LCUQ4U3K.js} +2 -2
- package/package.json +1 -1
- package/{phone-Y53A3YR6.js → phone-3PZOGXP5.js} +2 -2
- package/{preference-PDDNKSID.js → preference-7BNRZYGT.js} +2 -2
- package/{resource-4RXH7SID.js → resource-FYGZW3VK.js} +2 -2
- package/{schedule-XUGLVIVF.js → schedule-MTI5OP23.js} +2 -2
- package/schedule-MTI5OP23.js.map +1 -0
- package/{search-NRX5C4BZ.js → search-G5335REW.js} +10 -8
- package/{search-NRX5C4BZ.js.map → search-G5335REW.js.map} +1 -1
- package/{secret-G6ZROM3S.js → secret-DPVN2UF2.js} +3 -3
- package/sentry.generated-Y3V3MFG5.js +112 -0
- package/sentry.generated-Y3V3MFG5.js.map +1 -0
- package/{slack-UE7PHE5Q.js → slack-T7G7IOD7.js} +2 -2
- package/strava.generated-FDURULCZ.js +76 -0
- package/strava.generated-FDURULCZ.js.map +1 -0
- package/{telegram-FMO5JNQL.js → telegram-AIUOTF4A.js} +2 -2
- package/{variable-3QU5KSPD.js → variable-UNXSGRUU.js} +2 -2
- package/{web-NUS7HONQ.js → web-NX3LRDTP.js} +2 -2
- package/{whoami-BVBVPCEX.js → whoami-W6ZRUGTN.js} +4 -4
- package/{workflow-KFXYP54E.js → workflow-F2YOTCAJ.js} +135 -95
- package/workflow-F2YOTCAJ.js.map +1 -0
- package/xero.generated-NPSQE6GC.js +164 -0
- package/xero.generated-NPSQE6GC.js.map +1 -0
- package/zero.js +32 -32
- package/automation-WPG4IYVE.js.map +0 -1
- package/chunk-C3NCF7AC.js.map +0 -1
- package/chunk-Q47FRJVT.js.map +0 -1
- package/clerk.generated-CUIJPEBA.js +0 -335
- package/clerk.generated-CUIJPEBA.js.map +0 -1
- package/dropbox.generated-SM45XNZI.js +0 -111
- package/dropbox.generated-SM45XNZI.js.map +0 -1
- package/schedule-XUGLVIVF.js.map +0 -1
- package/sentry.generated-TQZTJGQ4.js +0 -90
- package/sentry.generated-TQZTJGQ4.js.map +0 -1
- package/strava.generated-FK4SMYR7.js +0 -63
- package/strava.generated-FK4SMYR7.js.map +0 -1
- package/workflow-KFXYP54E.js.map +0 -1
- package/xero.generated-UVAXXS6Q.js +0 -129
- package/xero.generated-UVAXXS6Q.js.map +0 -1
- /package/{agent-4SQZDYYN.js.map → agent-7NASKRN2.js.map} +0 -0
- /package/{banking-S7GOP6WI.js.map → banking-7766P2VA.js.map} +0 -0
- /package/{chat-6E34QZHI.js.map → chat-7Y3GRRQU.js.map} +0 -0
- /package/{chunk-NUCGXUQW.js.map → chunk-2WLLGU5G.js.map} +0 -0
- /package/{chunk-UQBJX5J5.js.map → chunk-BDVHHGRQ.js.map} +0 -0
- /package/{chunk-O5WIIYWN.js.map → chunk-CYWNKBCJ.js.map} +0 -0
- /package/{chunk-B33JIZI2.js.map → chunk-EIORAGIM.js.map} +0 -0
- /package/{chunk-RYGMBENC.js.map → chunk-JJNOLW3F.js.map} +0 -0
- /package/{chunk-PTXI3X6L.js.map → chunk-QCBHUHCP.js.map} +0 -0
- /package/{computer-use-P5NZISFJ.js.map → computer-use-DFWKRS5C.js.map} +0 -0
- /package/{connector-BF7GN5KJ.js.map → connector-XXMPNPPI.js.map} +0 -0
- /package/{credit-MUMH2AFQ.js.map → credit-EXQA2ZKH.js.map} +0 -0
- /package/{developer-support-YRODRFDP.js.map → developer-support-HV2KNBFK.js.map} +0 -0
- /package/{doctor-SYQVWI4X.js.map → doctor-B3XKCTAQ.js.map} +0 -0
- /package/{generate-SOTMY5L2.js.map → generate-76KZOWWD.js.map} +0 -0
- /package/{github-M5QMAGUR.js.map → github-R33X2DZP.js.map} +0 -0
- /package/{goal-UCWUNBDX.js.map → goal-6EHEH3W6.js.map} +0 -0
- /package/{host-FBIUSQM5.js.map → host-QJVQWPTD.js.map} +0 -0
- /package/{maps-F6HS3TX3.js.map → maps-GGAFUIRJ.js.map} +0 -0
- /package/{model-WVSFDOUB.js.map → model-B3IPEBEY.js.map} +0 -0
- /package/{model-provider-RW5KSE2A.js.map → model-provider-3AKAPHTA.js.map} +0 -0
- /package/{org-HG7QC6H2.js.map → org-LCUQ4U3K.js.map} +0 -0
- /package/{phone-Y53A3YR6.js.map → phone-3PZOGXP5.js.map} +0 -0
- /package/{preference-PDDNKSID.js.map → preference-7BNRZYGT.js.map} +0 -0
- /package/{resource-4RXH7SID.js.map → resource-FYGZW3VK.js.map} +0 -0
- /package/{secret-G6ZROM3S.js.map → secret-DPVN2UF2.js.map} +0 -0
- /package/{slack-UE7PHE5Q.js.map → slack-T7G7IOD7.js.map} +0 -0
- /package/{telegram-FMO5JNQL.js.map → telegram-AIUOTF4A.js.map} +0 -0
- /package/{variable-3QU5KSPD.js.map → variable-UNXSGRUU.js.map} +0 -0
- /package/{web-NUS7HONQ.js.map → web-NX3LRDTP.js.map} +0 -0
- /package/{whoami-BVBVPCEX.js.map → whoami-W6ZRUGTN.js.map} +0 -0
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
authHeadersSchema,
|
|
9
9
|
composeListItemSchema,
|
|
10
10
|
composeResponseSchema,
|
|
11
|
+
connectorReconnectReasonSchema,
|
|
11
12
|
connectorTypeSchema,
|
|
12
13
|
firewallPoliciesSchema,
|
|
13
14
|
getEvents,
|
|
@@ -21,7 +22,7 @@ import {
|
|
|
21
22
|
upsertModelProviderRequestSchema,
|
|
22
23
|
upsertModelProviderResponseSchema,
|
|
23
24
|
zeroAgentVisibilitySchema
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PHLVIRTN.js";
|
|
25
26
|
import {
|
|
26
27
|
apiErrorSchema,
|
|
27
28
|
external_exports
|
|
@@ -13349,6 +13350,31 @@ var publicConnectorCatalogListResponseSchema = external_exports.object({
|
|
|
13349
13350
|
var publicConnectorCatalogDetailResponseSchema = external_exports.object({
|
|
13350
13351
|
connector: publicConnectorCatalogDetailSchema
|
|
13351
13352
|
});
|
|
13353
|
+
var publicConnectorCatalogConnectionStatusSchema = external_exports.enum([
|
|
13354
|
+
"not-connected",
|
|
13355
|
+
"connected",
|
|
13356
|
+
"scope-mismatch",
|
|
13357
|
+
"reconnect-required"
|
|
13358
|
+
]);
|
|
13359
|
+
var publicConnectorCatalogConnectionSchema = external_exports.object({
|
|
13360
|
+
authMethod: external_exports.string(),
|
|
13361
|
+
externalUsername: external_exports.string().nullable(),
|
|
13362
|
+
externalEmail: external_exports.string().nullable(),
|
|
13363
|
+
reconnectReason: connectorReconnectReasonSchema.nullable()
|
|
13364
|
+
});
|
|
13365
|
+
var publicConnectorCatalogStatusItemSchema = publicConnectorCatalogDetailSchema.extend({
|
|
13366
|
+
connection: publicConnectorCatalogConnectionSchema.nullable(),
|
|
13367
|
+
connected: external_exports.boolean(),
|
|
13368
|
+
connectionStatus: publicConnectorCatalogConnectionStatusSchema,
|
|
13369
|
+
scopeMismatch: external_exports.boolean(),
|
|
13370
|
+
authMethodSupportsRefresh: external_exports.boolean(),
|
|
13371
|
+
tokenExpiresAt: external_exports.string().nullable(),
|
|
13372
|
+
singleAuthCodeAuthMethodId: external_exports.string().nullable(),
|
|
13373
|
+
connectNotice: external_exports.enum(["google-security-warning"]).nullable()
|
|
13374
|
+
});
|
|
13375
|
+
var publicConnectorCatalogStatusResponseSchema = external_exports.object({
|
|
13376
|
+
connectors: external_exports.array(publicConnectorCatalogStatusItemSchema)
|
|
13377
|
+
});
|
|
13352
13378
|
var publicFirewallPolicyValueSchema = external_exports.enum(["allow", "deny", "ask"]);
|
|
13353
13379
|
var publicConnectorCatalogPermissionSchema = external_exports.object({
|
|
13354
13380
|
name: external_exports.string(),
|
|
@@ -13389,6 +13415,17 @@ var zeroConnectorCatalogContract = c45.router({
|
|
|
13389
13415
|
},
|
|
13390
13416
|
summary: "List public connector catalog metadata"
|
|
13391
13417
|
},
|
|
13418
|
+
status: {
|
|
13419
|
+
method: "GET",
|
|
13420
|
+
path: "/api/zero/connector-catalog/status",
|
|
13421
|
+
headers: authHeadersSchema,
|
|
13422
|
+
responses: {
|
|
13423
|
+
200: publicConnectorCatalogStatusResponseSchema,
|
|
13424
|
+
401: apiErrorSchema,
|
|
13425
|
+
403: apiErrorSchema
|
|
13426
|
+
},
|
|
13427
|
+
summary: "List public connector catalog metadata with connection status"
|
|
13428
|
+
},
|
|
13392
13429
|
get: {
|
|
13393
13430
|
method: "GET",
|
|
13394
13431
|
path: "/api/zero/connector-catalog/:connectorRef",
|
|
@@ -13629,23 +13666,6 @@ var zeroComposesByIdContract = c49.router({
|
|
|
13629
13666
|
404: apiErrorSchema
|
|
13630
13667
|
},
|
|
13631
13668
|
summary: "Get agent compose by ID (zero proxy)"
|
|
13632
|
-
},
|
|
13633
|
-
delete: {
|
|
13634
|
-
method: "DELETE",
|
|
13635
|
-
path: "/api/zero/composes/:id",
|
|
13636
|
-
headers: authHeadersSchema,
|
|
13637
|
-
pathParams: external_exports.object({
|
|
13638
|
-
id: external_exports.string().uuid("Compose ID is required")
|
|
13639
|
-
}),
|
|
13640
|
-
body: c49.noBody(),
|
|
13641
|
-
responses: {
|
|
13642
|
-
204: c49.noBody(),
|
|
13643
|
-
401: apiErrorSchema,
|
|
13644
|
-
403: apiErrorSchema,
|
|
13645
|
-
404: apiErrorSchema,
|
|
13646
|
-
409: apiErrorSchema
|
|
13647
|
-
},
|
|
13648
|
-
summary: "Delete agent compose (zero proxy)"
|
|
13649
13669
|
}
|
|
13650
13670
|
});
|
|
13651
13671
|
var zeroComposesMetadataContract = c49.router({
|
|
@@ -16238,17 +16258,17 @@ var FEATURE_SWITCHES = {
|
|
|
16238
16258
|
enabled: false,
|
|
16239
16259
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
16240
16260
|
},
|
|
16261
|
+
["codexFrameworkForMinimax" /* CodexFrameworkForMinimax */]: {
|
|
16262
|
+
maintainer: "lancy@vm0.ai",
|
|
16263
|
+
description: "Expose the experimental MiniMax Codex framework provider route for Responses API compatibility testing.",
|
|
16264
|
+
enabled: false,
|
|
16265
|
+
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
16266
|
+
},
|
|
16241
16267
|
["zapierConnector" /* ZapierConnector */]: {
|
|
16242
16268
|
maintainer: "yuma@vm0.ai",
|
|
16243
16269
|
description: "Enable the Zapier connector. When disabled, Zapier is hidden from the connectors list and cannot be connected.",
|
|
16244
16270
|
enabled: false
|
|
16245
16271
|
},
|
|
16246
|
-
["sandboxIoLimiters" /* SandboxIoLimiters */]: {
|
|
16247
|
-
maintainer: "liangyou@vm0.ai",
|
|
16248
|
-
description: "Enable runner-provided disk and network device rate limiters for sandbox VMs.",
|
|
16249
|
-
enabled: false,
|
|
16250
|
-
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
16251
|
-
},
|
|
16252
16272
|
["chatGithubPrTracking" /* ChatGithubPrTracking */]: {
|
|
16253
16273
|
maintainer: "linghan@vm0.ai",
|
|
16254
16274
|
description: "Show GitHub PR tracking in chat thread headers when the current agent is connected to and authorized for GitHub. Individuals opt in via feature-switch overrides.",
|
|
@@ -16266,12 +16286,6 @@ var FEATURE_SWITCHES = {
|
|
|
16266
16286
|
enabled: false,
|
|
16267
16287
|
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
16268
16288
|
},
|
|
16269
|
-
["memoryDevRefresh" /* MemoryDevRefresh */]: {
|
|
16270
|
-
maintainer: "lancy@vm0.ai",
|
|
16271
|
-
description: "Show the internal Memory page dev refresh action for staff prompt iteration.",
|
|
16272
|
-
enabled: false,
|
|
16273
|
-
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
16274
|
-
},
|
|
16275
16289
|
["htmlArtifactCommentEditing" /* HtmlArtifactCommentEditing */]: {
|
|
16276
16290
|
maintainer: "bingjie@vm0.ai",
|
|
16277
16291
|
description: "Enable the HTML artifact comment-editing workflow for collecting DOM comments and preparing instrumented working-copy edits.",
|
|
@@ -16299,6 +16313,11 @@ var FEATURE_SWITCHES = {
|
|
|
16299
16313
|
maintainer: "ethan@vm0.ai",
|
|
16300
16314
|
description: "Show chat unread indicators in sidebar pinned agent lists and the conversation picker.",
|
|
16301
16315
|
enabled: false
|
|
16316
|
+
},
|
|
16317
|
+
["agentsPageRedesign" /* AgentsPageRedesign */]: {
|
|
16318
|
+
maintainer: "ming@vm0.ai",
|
|
16319
|
+
description: "New Agents page with Public/Private tabs, a public-slot indicator, a Created by footer on every card, a name-first create dialog with a visibility select, and a private empty state.",
|
|
16320
|
+
enabled: false
|
|
16302
16321
|
}
|
|
16303
16322
|
};
|
|
16304
16323
|
|
|
@@ -18447,151 +18466,6 @@ function showNextSteps(result) {
|
|
|
18447
18466
|
}
|
|
18448
18467
|
}
|
|
18449
18468
|
|
|
18450
|
-
// src/lib/utils/time-parser.ts
|
|
18451
|
-
init_esm_shims();
|
|
18452
|
-
var ISO_8601_PATTERN = /^(\d{4})-(\d{2})-(\d{2})(?:[Tt](\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,9})?)?(?:[Zz]|[+-]\d{2}:?\d{2})?)?$/;
|
|
18453
|
-
var DAYS_BY_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
18454
|
-
var MAX_DATE_TIMESTAMP_MS = 864e13;
|
|
18455
|
-
function parseTime(timeStr) {
|
|
18456
|
-
const relativeMatch = timeStr.match(/^(\d+)([smhdw])$/);
|
|
18457
|
-
if (relativeMatch) {
|
|
18458
|
-
const value = Number(relativeMatch[1]);
|
|
18459
|
-
const unit = relativeMatch[2];
|
|
18460
|
-
const timestamp2 = parseRelativeTime(value, unit);
|
|
18461
|
-
if (timestamp2 !== void 0) {
|
|
18462
|
-
return timestamp2;
|
|
18463
|
-
}
|
|
18464
|
-
}
|
|
18465
|
-
if (/^\d+$/.test(timeStr)) {
|
|
18466
|
-
const rawTimestamp = Number(timeStr);
|
|
18467
|
-
const timestamp2 = rawTimestamp < 1e10 ? rawTimestamp * 1e3 : rawTimestamp;
|
|
18468
|
-
if (isValidTimestamp(timestamp2)) {
|
|
18469
|
-
return timestamp2;
|
|
18470
|
-
}
|
|
18471
|
-
}
|
|
18472
|
-
const timestamp = parseIsoTime(timeStr);
|
|
18473
|
-
if (timestamp !== void 0) {
|
|
18474
|
-
return timestamp;
|
|
18475
|
-
}
|
|
18476
|
-
throw new Error(
|
|
18477
|
-
`Invalid time format: "${timeStr}". Supported formats: relative (5m, 2h, 1d), ISO 8601 (2024-01-15T10:30:00Z), Unix timestamp`
|
|
18478
|
-
);
|
|
18479
|
-
}
|
|
18480
|
-
function parseIsoTime(timeStr) {
|
|
18481
|
-
const match = ISO_8601_PATTERN.exec(timeStr);
|
|
18482
|
-
if (!match) {
|
|
18483
|
-
return void 0;
|
|
18484
|
-
}
|
|
18485
|
-
const year = Number(match[1]);
|
|
18486
|
-
const month = Number(match[2]);
|
|
18487
|
-
const day = Number(match[3]);
|
|
18488
|
-
const hour = match[4] ? Number(match[4]) : 0;
|
|
18489
|
-
const minute = match[5] ? Number(match[5]) : 0;
|
|
18490
|
-
const second = match[6] ? Number(match[6]) : 0;
|
|
18491
|
-
if (!Number.isInteger(year) || !Number.isInteger(month) || !Number.isInteger(day) || !Number.isInteger(hour) || !Number.isInteger(minute) || !Number.isInteger(second) || month < 1 || month > 12 || day < 1 || day > daysInMonth(year, month) || hour > 23 || minute > 59 || second > 59) {
|
|
18492
|
-
return void 0;
|
|
18493
|
-
}
|
|
18494
|
-
const timestamp = new Date(timeStr).getTime();
|
|
18495
|
-
return isValidTimestamp(timestamp) ? timestamp : void 0;
|
|
18496
|
-
}
|
|
18497
|
-
function daysInMonth(year, month) {
|
|
18498
|
-
if (month === 2) {
|
|
18499
|
-
return isLeapYear(year) ? 29 : 28;
|
|
18500
|
-
}
|
|
18501
|
-
return DAYS_BY_MONTH[month - 1] ?? 0;
|
|
18502
|
-
}
|
|
18503
|
-
function isLeapYear(year) {
|
|
18504
|
-
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
18505
|
-
}
|
|
18506
|
-
function parseRelativeTime(value, unit) {
|
|
18507
|
-
if (!Number.isSafeInteger(value)) {
|
|
18508
|
-
return void 0;
|
|
18509
|
-
}
|
|
18510
|
-
const now = Date.now();
|
|
18511
|
-
const multipliers = {
|
|
18512
|
-
s: 1e3,
|
|
18513
|
-
// seconds
|
|
18514
|
-
m: 60 * 1e3,
|
|
18515
|
-
// minutes
|
|
18516
|
-
h: 60 * 60 * 1e3,
|
|
18517
|
-
// hours
|
|
18518
|
-
d: 24 * 60 * 60 * 1e3,
|
|
18519
|
-
// days
|
|
18520
|
-
w: 7 * 24 * 60 * 60 * 1e3
|
|
18521
|
-
// weeks
|
|
18522
|
-
};
|
|
18523
|
-
const multiplier = multipliers[unit];
|
|
18524
|
-
if (!multiplier) {
|
|
18525
|
-
throw new Error(`Unknown time unit: ${unit}`);
|
|
18526
|
-
}
|
|
18527
|
-
const timestamp = now - value * multiplier;
|
|
18528
|
-
return isValidTimestamp(timestamp) ? timestamp : void 0;
|
|
18529
|
-
}
|
|
18530
|
-
function isValidTimestamp(timestamp) {
|
|
18531
|
-
return Number.isSafeInteger(timestamp) && Math.abs(timestamp) <= MAX_DATE_TIMESTAMP_MS;
|
|
18532
|
-
}
|
|
18533
|
-
|
|
18534
|
-
// src/lib/utils/log-pagination.ts
|
|
18535
|
-
init_esm_shims();
|
|
18536
|
-
function parsePositiveLogCount(value, optionName) {
|
|
18537
|
-
const trimmed = value.trim();
|
|
18538
|
-
if (!/^0*[1-9]\d*$/.test(trimmed)) {
|
|
18539
|
-
throw new Error(`Option ${optionName} must be a positive integer`);
|
|
18540
|
-
}
|
|
18541
|
-
const count = Number(trimmed);
|
|
18542
|
-
if (!Number.isSafeInteger(count)) {
|
|
18543
|
-
throw new Error(`Option ${optionName} must be a positive integer`);
|
|
18544
|
-
}
|
|
18545
|
-
return count;
|
|
18546
|
-
}
|
|
18547
|
-
function parseBoundedLogCount(value, optionName, min, max) {
|
|
18548
|
-
const trimmed = value.trim();
|
|
18549
|
-
if (!/^\d+$/.test(trimmed)) {
|
|
18550
|
-
throw new Error(`${optionName} must be between ${min} and ${max}`);
|
|
18551
|
-
}
|
|
18552
|
-
const count = Number(trimmed);
|
|
18553
|
-
if (!Number.isSafeInteger(count) || count < min || count > max) {
|
|
18554
|
-
throw new Error(`${optionName} must be between ${min} and ${max}`);
|
|
18555
|
-
}
|
|
18556
|
-
return count;
|
|
18557
|
-
}
|
|
18558
|
-
async function collectLogItems(options) {
|
|
18559
|
-
const collected = [];
|
|
18560
|
-
const seenCursors = /* @__PURE__ */ new Set();
|
|
18561
|
-
let cursor;
|
|
18562
|
-
while (true) {
|
|
18563
|
-
const requestLimit = options.targetCount === "all" ? options.pageLimit : Math.min(options.pageLimit, options.targetCount - collected.length);
|
|
18564
|
-
const page = await options.fetchPage({
|
|
18565
|
-
sinceTime: options.sinceTime,
|
|
18566
|
-
cursor,
|
|
18567
|
-
limit: requestLimit,
|
|
18568
|
-
order: options.order
|
|
18569
|
-
});
|
|
18570
|
-
collected.push(...page.items);
|
|
18571
|
-
if (options.targetCount !== "all" && collected.length >= options.targetCount) {
|
|
18572
|
-
break;
|
|
18573
|
-
}
|
|
18574
|
-
const nextCursor = page.nextCursor ?? null;
|
|
18575
|
-
if (!page.hasMore || !nextCursor || seenCursors.has(nextCursor)) {
|
|
18576
|
-
break;
|
|
18577
|
-
}
|
|
18578
|
-
seenCursors.add(nextCursor);
|
|
18579
|
-
cursor = nextCursor;
|
|
18580
|
-
}
|
|
18581
|
-
const entries = options.targetCount === "all" ? collected : collected.slice(0, options.targetCount);
|
|
18582
|
-
return options.order === "desc" ? entries.reverse() : entries;
|
|
18583
|
-
}
|
|
18584
|
-
|
|
18585
|
-
// src/lib/utils/search-query.ts
|
|
18586
|
-
init_esm_shims();
|
|
18587
|
-
function parseSearchQuery(value, label) {
|
|
18588
|
-
const trimmed = value.trim();
|
|
18589
|
-
if (!trimmed) {
|
|
18590
|
-
throw new Error(`${label} cannot be empty.`);
|
|
18591
|
-
}
|
|
18592
|
-
return trimmed;
|
|
18593
|
-
}
|
|
18594
|
-
|
|
18595
18469
|
export {
|
|
18596
18470
|
require_dist,
|
|
18597
18471
|
extractAndGroupVariables,
|
|
@@ -18613,11 +18487,6 @@ export {
|
|
|
18613
18487
|
parseIdentifier,
|
|
18614
18488
|
renderRunCreated,
|
|
18615
18489
|
pollEvents,
|
|
18616
|
-
showNextSteps
|
|
18617
|
-
parseTime,
|
|
18618
|
-
parsePositiveLogCount,
|
|
18619
|
-
parseBoundedLogCount,
|
|
18620
|
-
collectLogItems,
|
|
18621
|
-
parseSearchQuery
|
|
18490
|
+
showNextSteps
|
|
18622
18491
|
};
|
|
18623
|
-
//# sourceMappingURL=chunk-
|
|
18492
|
+
//# sourceMappingURL=chunk-MES7TURQ.js.map
|