@vm0/cli 9.131.5 → 9.132.1
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/{chunk-Y4LOXQJP.js → chunk-ZKOPXRWA.js} +82 -92
- package/chunk-ZKOPXRWA.js.map +1 -0
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +35 -224
- package/zero.js.map +1 -1
- package/chunk-Y4LOXQJP.js.map +0 -1
|
@@ -66268,7 +66268,7 @@ if (DSN) {
|
|
|
66268
66268
|
init2({
|
|
66269
66269
|
dsn: DSN,
|
|
66270
66270
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
66271
|
-
release: "9.
|
|
66271
|
+
release: "9.132.1",
|
|
66272
66272
|
sendDefaultPii: false,
|
|
66273
66273
|
tracesSampleRate: 0,
|
|
66274
66274
|
shutdownTimeout: 500,
|
|
@@ -66287,7 +66287,7 @@ if (DSN) {
|
|
|
66287
66287
|
}
|
|
66288
66288
|
});
|
|
66289
66289
|
setContext("cli", {
|
|
66290
|
-
version: "9.
|
|
66290
|
+
version: "9.132.1",
|
|
66291
66291
|
command: process.argv.slice(2).join(" ")
|
|
66292
66292
|
});
|
|
66293
66293
|
setContext("runtime", {
|
|
@@ -85239,6 +85239,21 @@ var volumeConfigSchema = external_exports.object({
|
|
|
85239
85239
|
/** When true, skip mounting without error if volume doesn't exist */
|
|
85240
85240
|
optional: external_exports.boolean().optional()
|
|
85241
85241
|
});
|
|
85242
|
+
var MOUNT_PATH_TEMPLATE = "${{ working_dir }}";
|
|
85243
|
+
var mountPathSchema = external_exports.string().min(1, "mount_path cannot be empty").refine((val) => {
|
|
85244
|
+
return val === MOUNT_PATH_TEMPLATE || val.startsWith("/");
|
|
85245
|
+
}, `mount_path must be an absolute path or "${MOUNT_PATH_TEMPLATE}"`);
|
|
85246
|
+
var artifactConfigSchema = external_exports.object({
|
|
85247
|
+
name: external_exports.string().min(1, "Artifact name is required"),
|
|
85248
|
+
version: external_exports.string().min(1).optional(),
|
|
85249
|
+
mount_path: mountPathSchema.optional()
|
|
85250
|
+
});
|
|
85251
|
+
var artifactsArraySchema = external_exports.array(artifactConfigSchema).refine((items) => {
|
|
85252
|
+
const names = items.map((i) => {
|
|
85253
|
+
return i.name;
|
|
85254
|
+
});
|
|
85255
|
+
return new Set(names).size === names.length;
|
|
85256
|
+
}, "Artifact names must be unique");
|
|
85242
85257
|
var agentDefinitionSchema = external_exports.object({
|
|
85243
85258
|
description: external_exports.string().optional(),
|
|
85244
85259
|
framework: external_exports.string().min(1, "Framework is required"),
|
|
@@ -85292,7 +85307,8 @@ var agentDefinitionSchema = external_exports.object({
|
|
|
85292
85307
|
var agentComposeContentSchema = external_exports.object({
|
|
85293
85308
|
version: external_exports.string().min(1, "Version is required"),
|
|
85294
85309
|
agents: external_exports.record(external_exports.string(), agentDefinitionSchema),
|
|
85295
|
-
volumes: external_exports.record(external_exports.string(), volumeConfigSchema).optional()
|
|
85310
|
+
volumes: external_exports.record(external_exports.string(), volumeConfigSchema).optional(),
|
|
85311
|
+
artifacts: artifactsArraySchema.optional()
|
|
85296
85312
|
});
|
|
85297
85313
|
var agentComposeApiContentSchema = external_exports.object({
|
|
85298
85314
|
version: external_exports.string().min(1, "Version is required"),
|
|
@@ -85304,7 +85320,8 @@ var agentComposeApiContentSchema = external_exports.object({
|
|
|
85304
85320
|
firewalls: external_exports.unknown().optional()
|
|
85305
85321
|
})
|
|
85306
85322
|
),
|
|
85307
|
-
volumes: external_exports.record(external_exports.string(), volumeConfigSchema).optional()
|
|
85323
|
+
volumes: external_exports.record(external_exports.string(), volumeConfigSchema).optional(),
|
|
85324
|
+
artifacts: artifactsArraySchema.optional()
|
|
85308
85325
|
});
|
|
85309
85326
|
var composeResponseSchema = external_exports.object({
|
|
85310
85327
|
id: external_exports.string(),
|
|
@@ -86630,32 +86647,6 @@ var agentmail = {
|
|
|
86630
86647
|
}
|
|
86631
86648
|
};
|
|
86632
86649
|
|
|
86633
|
-
// ../../packages/core/src/contracts/connectors/agentphone.ts
|
|
86634
|
-
init_esm_shims();
|
|
86635
|
-
var agentphone = {
|
|
86636
|
-
agentphone: {
|
|
86637
|
-
label: "AgentPhone",
|
|
86638
|
-
environmentMapping: {
|
|
86639
|
-
AGENTPHONE_TOKEN: "$secrets.AGENTPHONE_TOKEN"
|
|
86640
|
-
},
|
|
86641
|
-
helpText: "Connect your AgentPhone account to make and receive phone calls, send SMS, manage phone numbers, and build voice AI agents",
|
|
86642
|
-
authMethods: {
|
|
86643
|
-
"api-token": {
|
|
86644
|
-
label: "API Key",
|
|
86645
|
-
helpText: "1. Sign up at [agentphone.to](https://agentphone.to)\n2. Go to **Dashboard > API Keys**\n3. Create a new API key and copy it (starts with `sk_live_`)",
|
|
86646
|
-
secrets: {
|
|
86647
|
-
AGENTPHONE_TOKEN: {
|
|
86648
|
-
label: "API Key",
|
|
86649
|
-
required: true,
|
|
86650
|
-
placeholder: "sk_live_..."
|
|
86651
|
-
}
|
|
86652
|
-
}
|
|
86653
|
-
}
|
|
86654
|
-
},
|
|
86655
|
-
defaultAuthMethod: "api-token"
|
|
86656
|
-
}
|
|
86657
|
-
};
|
|
86658
|
-
|
|
86659
86650
|
// ../../packages/core/src/contracts/connectors/airtable.ts
|
|
86660
86651
|
init_esm_shims();
|
|
86661
86652
|
var airtable = {
|
|
@@ -90050,6 +90041,32 @@ var browserbase = {
|
|
|
90050
90041
|
}
|
|
90051
90042
|
};
|
|
90052
90043
|
|
|
90044
|
+
// ../../packages/core/src/contracts/connectors/browser-use.ts
|
|
90045
|
+
init_esm_shims();
|
|
90046
|
+
var browserUse = {
|
|
90047
|
+
"browser-use": {
|
|
90048
|
+
label: "Browser Use",
|
|
90049
|
+
environmentMapping: {
|
|
90050
|
+
BROWSER_USE_TOKEN: "$secrets.BROWSER_USE_TOKEN"
|
|
90051
|
+
},
|
|
90052
|
+
helpText: "Connect Browser Use to run AI-powered browser automation tasks \u2014 submit natural-language prompts and let agents complete web tasks in hosted browsers",
|
|
90053
|
+
authMethods: {
|
|
90054
|
+
"api-token": {
|
|
90055
|
+
label: "API Key",
|
|
90056
|
+
helpText: "1. Sign in at [cloud.browser-use.com](https://cloud.browser-use.com)\n2. Go to **Settings \u2192 API Keys**\n3. Click **Create new key**\n4. Copy the generated API key",
|
|
90057
|
+
secrets: {
|
|
90058
|
+
BROWSER_USE_TOKEN: {
|
|
90059
|
+
label: "API Key",
|
|
90060
|
+
required: true,
|
|
90061
|
+
placeholder: "bu_CoffeeSafeLocalCoffeeSafeLocalCoffee"
|
|
90062
|
+
}
|
|
90063
|
+
}
|
|
90064
|
+
}
|
|
90065
|
+
},
|
|
90066
|
+
defaultAuthMethod: "api-token"
|
|
90067
|
+
}
|
|
90068
|
+
};
|
|
90069
|
+
|
|
90053
90070
|
// ../../packages/core/src/contracts/connectors/browserless.ts
|
|
90054
90071
|
init_esm_shims();
|
|
90055
90072
|
var browserless = {
|
|
@@ -90849,6 +90866,8 @@ init_esm_shims();
|
|
|
90849
90866
|
var zapier = {
|
|
90850
90867
|
zapier: {
|
|
90851
90868
|
label: "Zapier",
|
|
90869
|
+
featureFlag: "zapierConnector" /* ZapierConnector */,
|
|
90870
|
+
strictFeatureFlag: true,
|
|
90852
90871
|
environmentMapping: {
|
|
90853
90872
|
ZAPIER_TOKEN: "$secrets.ZAPIER_TOKEN"
|
|
90854
90873
|
},
|
|
@@ -92047,7 +92066,6 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
92047
92066
|
...axiom,
|
|
92048
92067
|
...ahrefs,
|
|
92049
92068
|
...agentmail,
|
|
92050
|
-
...agentphone,
|
|
92051
92069
|
...airtable,
|
|
92052
92070
|
...anthropicManagedAgents,
|
|
92053
92071
|
...github,
|
|
@@ -92149,6 +92167,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
92149
92167
|
...braveSearch,
|
|
92150
92168
|
...brightData,
|
|
92151
92169
|
...browserbase,
|
|
92170
|
+
...browserUse,
|
|
92152
92171
|
...browserless,
|
|
92153
92172
|
...fireflies,
|
|
92154
92173
|
...firecrawl,
|
|
@@ -92510,8 +92529,6 @@ var triggerSourceSchema = external_exports.enum([
|
|
|
92510
92529
|
"github",
|
|
92511
92530
|
"cli",
|
|
92512
92531
|
"agent",
|
|
92513
|
-
"phone",
|
|
92514
|
-
"imessage",
|
|
92515
92532
|
"voice-chat"
|
|
92516
92533
|
]);
|
|
92517
92534
|
var logEntrySchema = external_exports.object({
|
|
@@ -93496,6 +93513,13 @@ var agentEventSchema = external_exports.object({
|
|
|
93496
93513
|
type: external_exports.string(),
|
|
93497
93514
|
sequenceNumber: external_exports.number().int().nonnegative()
|
|
93498
93515
|
}).passthrough();
|
|
93516
|
+
var artifactSnapshotsSchema = external_exports.array(
|
|
93517
|
+
external_exports.object({
|
|
93518
|
+
name: external_exports.string(),
|
|
93519
|
+
version: external_exports.string(),
|
|
93520
|
+
mountPath: external_exports.string()
|
|
93521
|
+
})
|
|
93522
|
+
);
|
|
93499
93523
|
var volumeVersionsSnapshotSchema = external_exports.object({
|
|
93500
93524
|
versions: external_exports.record(external_exports.string(), external_exports.string())
|
|
93501
93525
|
});
|
|
@@ -93579,9 +93603,10 @@ var webhookCheckpointsContract = c11.router({
|
|
|
93579
93603
|
64,
|
|
93580
93604
|
"cliAgentSessionHistoryHash must be a 64-character SHA-256 hex string"
|
|
93581
93605
|
),
|
|
93582
|
-
// Multi-artifact snapshot
|
|
93583
|
-
//
|
|
93584
|
-
|
|
93606
|
+
// Multi-artifact snapshot payload. Canonical
|
|
93607
|
+
// `Array<{name, version, mountPath}>` form persisted verbatim to
|
|
93608
|
+
// checkpoints.artifact_snapshots.
|
|
93609
|
+
artifactSnapshots: artifactSnapshotsSchema.optional(),
|
|
93585
93610
|
volumeVersionsSnapshot: volumeVersionsSnapshotSchema.optional()
|
|
93586
93611
|
}).strict(),
|
|
93587
93612
|
responses: {
|
|
@@ -93589,7 +93614,7 @@ var webhookCheckpointsContract = c11.router({
|
|
|
93589
93614
|
checkpointId: external_exports.string(),
|
|
93590
93615
|
agentSessionId: external_exports.string(),
|
|
93591
93616
|
conversationId: external_exports.string(),
|
|
93592
|
-
artifacts:
|
|
93617
|
+
artifacts: artifactSnapshotsSchema.optional(),
|
|
93593
93618
|
volumes: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
93594
93619
|
}),
|
|
93595
93620
|
400: apiErrorSchema,
|
|
@@ -94988,11 +95013,13 @@ var chatThreadMessagesContract = c13.router({
|
|
|
94988
95013
|
pathParams: external_exports.object({ threadId: external_exports.string() }),
|
|
94989
95014
|
query: external_exports.object({
|
|
94990
95015
|
sinceId: external_exports.string().uuid().optional(),
|
|
95016
|
+
beforeId: external_exports.string().uuid().optional(),
|
|
94991
95017
|
limit: external_exports.coerce.number().min(1).max(50).default(50)
|
|
94992
95018
|
}),
|
|
94993
95019
|
responses: {
|
|
94994
95020
|
200: external_exports.object({
|
|
94995
|
-
messages: external_exports.array(pagedChatMessageSchema)
|
|
95021
|
+
messages: external_exports.array(pagedChatMessageSchema),
|
|
95022
|
+
hasMore: external_exports.boolean().optional()
|
|
94996
95023
|
}),
|
|
94997
95024
|
401: apiErrorSchema,
|
|
94998
95025
|
404: apiErrorSchema
|
|
@@ -95231,7 +95258,7 @@ var sessionResponseSchema = external_exports.object({
|
|
|
95231
95258
|
id: external_exports.string(),
|
|
95232
95259
|
agentComposeId: external_exports.string(),
|
|
95233
95260
|
conversationId: external_exports.string().nullable(),
|
|
95234
|
-
|
|
95261
|
+
artifactNames: external_exports.array(external_exports.string()),
|
|
95235
95262
|
secretNames: external_exports.array(external_exports.string()).nullable(),
|
|
95236
95263
|
createdAt: external_exports.string(),
|
|
95237
95264
|
updatedAt: external_exports.string()
|
|
@@ -95244,14 +95271,26 @@ var agentComposeSnapshotSchema = external_exports.object({
|
|
|
95244
95271
|
var volumeVersionsSnapshotSchema2 = external_exports.object({
|
|
95245
95272
|
versions: external_exports.record(external_exports.string(), external_exports.string())
|
|
95246
95273
|
});
|
|
95274
|
+
var artifactSnapshotsSchema2 = external_exports.union([
|
|
95275
|
+
external_exports.record(external_exports.string(), external_exports.string()),
|
|
95276
|
+
external_exports.array(
|
|
95277
|
+
external_exports.object({
|
|
95278
|
+
name: external_exports.string(),
|
|
95279
|
+
version: external_exports.string(),
|
|
95280
|
+
mountPath: external_exports.string()
|
|
95281
|
+
})
|
|
95282
|
+
)
|
|
95283
|
+
]);
|
|
95247
95284
|
var checkpointResponseSchema = external_exports.object({
|
|
95248
95285
|
id: external_exports.string(),
|
|
95249
95286
|
runId: external_exports.string(),
|
|
95250
95287
|
conversationId: external_exports.string(),
|
|
95251
95288
|
agentComposeSnapshot: agentComposeSnapshotSchema,
|
|
95252
|
-
// Multi-artifact snapshot
|
|
95253
|
-
//
|
|
95254
|
-
|
|
95289
|
+
// Multi-artifact snapshot payload. Accepts both the legacy
|
|
95290
|
+
// `Record<name, version>` map and the canonical
|
|
95291
|
+
// `Array<{name, version, mountPath}>` form. Null when the checkpoint has
|
|
95292
|
+
// no artifacts.
|
|
95293
|
+
artifactSnapshots: artifactSnapshotsSchema2.nullable(),
|
|
95255
95294
|
volumeVersionsSnapshot: volumeVersionsSnapshotSchema2.nullable(),
|
|
95256
95295
|
createdAt: external_exports.string()
|
|
95257
95296
|
});
|
|
@@ -96621,52 +96660,6 @@ async function getComputerUseHost() {
|
|
|
96621
96660
|
handleError(result, "Failed to get computer-use host");
|
|
96622
96661
|
}
|
|
96623
96662
|
|
|
96624
|
-
// src/lib/api/domains/phone-calls.ts
|
|
96625
|
-
init_esm_shims();
|
|
96626
|
-
async function fetchJson(path3, init3) {
|
|
96627
|
-
const config4 = await getClientConfig();
|
|
96628
|
-
const url2 = `${config4.baseUrl}${path3}`;
|
|
96629
|
-
const res = await fetch(url2, {
|
|
96630
|
-
...init3,
|
|
96631
|
-
headers: {
|
|
96632
|
-
...config4.baseHeaders,
|
|
96633
|
-
...init3?.body ? { "Content-Type": "application/json" } : {},
|
|
96634
|
-
...init3?.headers
|
|
96635
|
-
}
|
|
96636
|
-
});
|
|
96637
|
-
if (!res.ok) {
|
|
96638
|
-
const body = await res.json().catch(() => {
|
|
96639
|
-
return {};
|
|
96640
|
-
});
|
|
96641
|
-
throw new ApiRequestError(
|
|
96642
|
-
body.error ?? `Request failed with status ${res.status}`,
|
|
96643
|
-
"API_ERROR",
|
|
96644
|
-
res.status
|
|
96645
|
-
);
|
|
96646
|
-
}
|
|
96647
|
-
return await res.json();
|
|
96648
|
-
}
|
|
96649
|
-
async function createPhoneCall(body) {
|
|
96650
|
-
return fetchJson("/api/zero/phone-calls", {
|
|
96651
|
-
method: "POST",
|
|
96652
|
-
body: JSON.stringify(body)
|
|
96653
|
-
});
|
|
96654
|
-
}
|
|
96655
|
-
async function listPhoneCalls(query) {
|
|
96656
|
-
const params = new URLSearchParams();
|
|
96657
|
-
if (query?.limit) params.set("limit", String(query.limit));
|
|
96658
|
-
if (query?.offset) params.set("offset", String(query.offset));
|
|
96659
|
-
const qs = params.toString();
|
|
96660
|
-
return fetchJson(
|
|
96661
|
-
`/api/zero/phone-calls${qs ? `?${qs}` : ""}`
|
|
96662
|
-
);
|
|
96663
|
-
}
|
|
96664
|
-
async function getPhoneCallDetail(callId) {
|
|
96665
|
-
return fetchJson(
|
|
96666
|
-
`/api/zero/phone-calls/${encodeURIComponent(callId)}`
|
|
96667
|
-
);
|
|
96668
|
-
}
|
|
96669
|
-
|
|
96670
96663
|
// src/lib/api/domains/web.ts
|
|
96671
96664
|
init_esm_shims();
|
|
96672
96665
|
import { createWriteStream as createWriteStream2, readFileSync as readFileSync3, statSync } from "fs";
|
|
@@ -97955,9 +97948,6 @@ export {
|
|
|
97955
97948
|
registerComputerUseHost,
|
|
97956
97949
|
unregisterComputerUseHost,
|
|
97957
97950
|
getComputerUseHost,
|
|
97958
|
-
createPhoneCall,
|
|
97959
|
-
listPhoneCalls,
|
|
97960
|
-
getPhoneCallDetail,
|
|
97961
97951
|
downloadWebFile,
|
|
97962
97952
|
uploadWebFile,
|
|
97963
97953
|
getInstructionsFilename,
|
|
@@ -97994,4 +97984,4 @@ undici/lib/web/fetch/body.js:
|
|
|
97994
97984
|
undici/lib/web/websocket/frame.js:
|
|
97995
97985
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
97996
97986
|
*/
|
|
97997
|
-
//# sourceMappingURL=chunk-
|
|
97987
|
+
//# sourceMappingURL=chunk-ZKOPXRWA.js.map
|