@vm0/cli 9.80.0 → 9.81.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/{chunk-QKXNL42S.js → chunk-3EOIDO3I.js} +233 -16
- package/chunk-3EOIDO3I.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +75 -36
- package/zero.js.map +1 -1
- package/chunk-QKXNL42S.js.map +0 -1
|
@@ -47,7 +47,7 @@ if (DSN) {
|
|
|
47
47
|
Sentry.init({
|
|
48
48
|
dsn: DSN,
|
|
49
49
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
50
|
-
release: "9.
|
|
50
|
+
release: "9.81.0",
|
|
51
51
|
sendDefaultPii: false,
|
|
52
52
|
tracesSampleRate: 0,
|
|
53
53
|
shutdownTimeout: 500,
|
|
@@ -66,7 +66,7 @@ if (DSN) {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
Sentry.setContext("cli", {
|
|
69
|
-
version: "9.
|
|
69
|
+
version: "9.81.0",
|
|
70
70
|
command: process.argv.slice(2).join(" ")
|
|
71
71
|
});
|
|
72
72
|
Sentry.setContext("runtime", {
|
|
@@ -187,7 +187,7 @@ async function getApiUrl() {
|
|
|
187
187
|
}
|
|
188
188
|
return config.apiUrl ?? "https://www.vm0.ai";
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function decodeZeroTokenPayload() {
|
|
191
191
|
const token = process.env.ZERO_TOKEN;
|
|
192
192
|
if (!token) return void 0;
|
|
193
193
|
const prefix = "vm0_sandbox_";
|
|
@@ -199,16 +199,14 @@ function decodeOrgIdFromZeroToken() {
|
|
|
199
199
|
const payload = JSON.parse(
|
|
200
200
|
Buffer.from(parts[1], "base64url").toString()
|
|
201
201
|
);
|
|
202
|
-
if (payload.scope === "zero"
|
|
203
|
-
return payload.orgId;
|
|
204
|
-
}
|
|
202
|
+
if (payload.scope === "zero") return payload;
|
|
205
203
|
} catch {
|
|
206
204
|
}
|
|
207
205
|
return void 0;
|
|
208
206
|
}
|
|
209
207
|
async function getActiveOrg() {
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
208
|
+
const zeroPayload = decodeZeroTokenPayload();
|
|
209
|
+
if (zeroPayload) return zeroPayload.orgId;
|
|
212
210
|
if (process.env.VM0_ACTIVE_ORG) {
|
|
213
211
|
return process.env.VM0_ACTIVE_ORG;
|
|
214
212
|
}
|
|
@@ -1194,6 +1192,34 @@ var confluenceFirewall = {
|
|
|
1194
1192
|
]
|
|
1195
1193
|
};
|
|
1196
1194
|
|
|
1195
|
+
// ../../packages/core/src/firewalls/cronlytic.generated.ts
|
|
1196
|
+
var cronlyticFirewall = {
|
|
1197
|
+
name: "cronlytic",
|
|
1198
|
+
description: "Cronlytic API",
|
|
1199
|
+
placeholders: {
|
|
1200
|
+
CRONLYTIC_API_KEY: "vm0placeholderCronlyticApiKey000000000000000000000000a",
|
|
1201
|
+
CRONLYTIC_USER_ID: "vm0placeholderCronlyticUserId000000000000000000000000a"
|
|
1202
|
+
},
|
|
1203
|
+
apis: [
|
|
1204
|
+
{
|
|
1205
|
+
base: "https://api.cronlytic.com",
|
|
1206
|
+
auth: {
|
|
1207
|
+
headers: {
|
|
1208
|
+
"x-api-key": "${{ secrets.CRONLYTIC_API_KEY }}",
|
|
1209
|
+
"x-user-id": "${{ secrets.CRONLYTIC_USER_ID }}"
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
permissions: [
|
|
1213
|
+
{
|
|
1214
|
+
name: "unrestricted",
|
|
1215
|
+
description: "Allow all Cronlytic API endpoints",
|
|
1216
|
+
rules: ["ANY /{path*}"]
|
|
1217
|
+
}
|
|
1218
|
+
]
|
|
1219
|
+
}
|
|
1220
|
+
]
|
|
1221
|
+
};
|
|
1222
|
+
|
|
1197
1223
|
// ../../packages/core/src/firewalls/customer-io.generated.ts
|
|
1198
1224
|
var customerIoFirewall = {
|
|
1199
1225
|
name: "customer-io",
|
|
@@ -1391,6 +1417,32 @@ var elevenlabsFirewall = {
|
|
|
1391
1417
|
]
|
|
1392
1418
|
};
|
|
1393
1419
|
|
|
1420
|
+
// ../../packages/core/src/firewalls/explorium.generated.ts
|
|
1421
|
+
var exploriumFirewall = {
|
|
1422
|
+
name: "explorium",
|
|
1423
|
+
description: "Explorium API",
|
|
1424
|
+
placeholders: {
|
|
1425
|
+
EXPLORIUM_TOKEN: "vm0placeholderExploriumToken0000000000000000000000000a"
|
|
1426
|
+
},
|
|
1427
|
+
apis: [
|
|
1428
|
+
{
|
|
1429
|
+
base: "https://api.explorium.ai",
|
|
1430
|
+
auth: {
|
|
1431
|
+
headers: {
|
|
1432
|
+
api_key: "${{ secrets.EXPLORIUM_TOKEN }}"
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
permissions: [
|
|
1436
|
+
{
|
|
1437
|
+
name: "unrestricted",
|
|
1438
|
+
description: "Allow all Explorium API endpoints",
|
|
1439
|
+
rules: ["ANY /{path*}"]
|
|
1440
|
+
}
|
|
1441
|
+
]
|
|
1442
|
+
}
|
|
1443
|
+
]
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1394
1446
|
// ../../packages/core/src/firewalls/fal.generated.ts
|
|
1395
1447
|
var falFirewall = {
|
|
1396
1448
|
name: "fal",
|
|
@@ -6412,6 +6464,32 @@ var openaiFirewall = {
|
|
|
6412
6464
|
]
|
|
6413
6465
|
};
|
|
6414
6466
|
|
|
6467
|
+
// ../../packages/core/src/firewalls/pdfco.generated.ts
|
|
6468
|
+
var pdfcoFirewall = {
|
|
6469
|
+
name: "pdfco",
|
|
6470
|
+
description: "PDF.co API",
|
|
6471
|
+
placeholders: {
|
|
6472
|
+
PDFCO_TOKEN: "vm0placeholderPdfcoToken0000000000000000000000000000a"
|
|
6473
|
+
},
|
|
6474
|
+
apis: [
|
|
6475
|
+
{
|
|
6476
|
+
base: "https://api.pdf.co/v1",
|
|
6477
|
+
auth: {
|
|
6478
|
+
headers: {
|
|
6479
|
+
"x-api-key": "${{ secrets.PDFCO_TOKEN }}"
|
|
6480
|
+
}
|
|
6481
|
+
},
|
|
6482
|
+
permissions: [
|
|
6483
|
+
{
|
|
6484
|
+
name: "unrestricted",
|
|
6485
|
+
description: "Allow all PDF.co API endpoints",
|
|
6486
|
+
rules: ["ANY /{path*}"]
|
|
6487
|
+
}
|
|
6488
|
+
]
|
|
6489
|
+
}
|
|
6490
|
+
]
|
|
6491
|
+
};
|
|
6492
|
+
|
|
6415
6493
|
// ../../packages/core/src/firewalls/perplexity.generated.ts
|
|
6416
6494
|
var perplexityFirewall = {
|
|
6417
6495
|
name: "perplexity",
|
|
@@ -6505,6 +6583,32 @@ var posthogFirewall = {
|
|
|
6505
6583
|
]
|
|
6506
6584
|
};
|
|
6507
6585
|
|
|
6586
|
+
// ../../packages/core/src/firewalls/pushinator.generated.ts
|
|
6587
|
+
var pushinatorFirewall = {
|
|
6588
|
+
name: "pushinator",
|
|
6589
|
+
description: "Pushinator API",
|
|
6590
|
+
placeholders: {
|
|
6591
|
+
PUSHINATOR_TOKEN: "vm0placeholderPushinatorToken000000000000000000000000a"
|
|
6592
|
+
},
|
|
6593
|
+
apis: [
|
|
6594
|
+
{
|
|
6595
|
+
base: "https://api.pushinator.com",
|
|
6596
|
+
auth: {
|
|
6597
|
+
headers: {
|
|
6598
|
+
Authorization: "Bearer ${{ secrets.PUSHINATOR_TOKEN }}"
|
|
6599
|
+
}
|
|
6600
|
+
},
|
|
6601
|
+
permissions: [
|
|
6602
|
+
{
|
|
6603
|
+
name: "unrestricted",
|
|
6604
|
+
description: "Allow all Pushinator API endpoints",
|
|
6605
|
+
rules: ["ANY /{path*}"]
|
|
6606
|
+
}
|
|
6607
|
+
]
|
|
6608
|
+
}
|
|
6609
|
+
]
|
|
6610
|
+
};
|
|
6611
|
+
|
|
6508
6612
|
// ../../packages/core/src/firewalls/qiita.generated.ts
|
|
6509
6613
|
var qiitaFirewall = {
|
|
6510
6614
|
name: "qiita",
|
|
@@ -6583,6 +6687,32 @@ var resendFirewall = {
|
|
|
6583
6687
|
]
|
|
6584
6688
|
};
|
|
6585
6689
|
|
|
6690
|
+
// ../../packages/core/src/firewalls/revenuecat.generated.ts
|
|
6691
|
+
var revenuecatFirewall = {
|
|
6692
|
+
name: "revenuecat",
|
|
6693
|
+
description: "RevenueCat API",
|
|
6694
|
+
placeholders: {
|
|
6695
|
+
REVENUECAT_TOKEN: "vm0placeholderRevenuecatToken000000000000000000000000a"
|
|
6696
|
+
},
|
|
6697
|
+
apis: [
|
|
6698
|
+
{
|
|
6699
|
+
base: "https://api.revenuecat.com",
|
|
6700
|
+
auth: {
|
|
6701
|
+
headers: {
|
|
6702
|
+
Authorization: "Bearer ${{ secrets.REVENUECAT_TOKEN }}"
|
|
6703
|
+
}
|
|
6704
|
+
},
|
|
6705
|
+
permissions: [
|
|
6706
|
+
{
|
|
6707
|
+
name: "unrestricted",
|
|
6708
|
+
description: "Allow all RevenueCat API endpoints",
|
|
6709
|
+
rules: ["ANY /{path*}"]
|
|
6710
|
+
}
|
|
6711
|
+
]
|
|
6712
|
+
}
|
|
6713
|
+
]
|
|
6714
|
+
};
|
|
6715
|
+
|
|
6586
6716
|
// ../../packages/core/src/firewalls/runway.generated.ts
|
|
6587
6717
|
var runwayFirewall = {
|
|
6588
6718
|
name: "runway",
|
|
@@ -6609,6 +6739,32 @@ var runwayFirewall = {
|
|
|
6609
6739
|
]
|
|
6610
6740
|
};
|
|
6611
6741
|
|
|
6742
|
+
// ../../packages/core/src/firewalls/scrapeninja.generated.ts
|
|
6743
|
+
var scrapeninjaFirewall = {
|
|
6744
|
+
name: "scrapeninja",
|
|
6745
|
+
description: "ScrapeNinja Web Scraping API",
|
|
6746
|
+
placeholders: {
|
|
6747
|
+
SCRAPENINJA_TOKEN: "vm0placeholderScrapeninjaToken0000000000000000000000a"
|
|
6748
|
+
},
|
|
6749
|
+
apis: [
|
|
6750
|
+
{
|
|
6751
|
+
base: "https://scrapeninja.p.rapidapi.com",
|
|
6752
|
+
auth: {
|
|
6753
|
+
headers: {
|
|
6754
|
+
"X-RapidAPI-Key": "${{ secrets.SCRAPENINJA_TOKEN }}"
|
|
6755
|
+
}
|
|
6756
|
+
},
|
|
6757
|
+
permissions: [
|
|
6758
|
+
{
|
|
6759
|
+
name: "unrestricted",
|
|
6760
|
+
description: "Allow all ScrapeNinja API endpoints",
|
|
6761
|
+
rules: ["ANY /{path*}"]
|
|
6762
|
+
}
|
|
6763
|
+
]
|
|
6764
|
+
}
|
|
6765
|
+
]
|
|
6766
|
+
};
|
|
6767
|
+
|
|
6612
6768
|
// ../../packages/core/src/firewalls/sentry.generated.ts
|
|
6613
6769
|
var sentryFirewall = {
|
|
6614
6770
|
name: "sentry",
|
|
@@ -6687,6 +6843,32 @@ var shortioFirewall = {
|
|
|
6687
6843
|
]
|
|
6688
6844
|
};
|
|
6689
6845
|
|
|
6846
|
+
// ../../packages/core/src/firewalls/similarweb.generated.ts
|
|
6847
|
+
var similarwebFirewall = {
|
|
6848
|
+
name: "similarweb",
|
|
6849
|
+
description: "SimilarWeb API",
|
|
6850
|
+
placeholders: {
|
|
6851
|
+
SIMILARWEB_TOKEN: "vm0placeholderSimilarwebToken00000000000000000000000a"
|
|
6852
|
+
},
|
|
6853
|
+
apis: [
|
|
6854
|
+
{
|
|
6855
|
+
base: "https://api.similarweb.com",
|
|
6856
|
+
auth: {
|
|
6857
|
+
headers: {
|
|
6858
|
+
"api-key": "${{ secrets.SIMILARWEB_TOKEN }}"
|
|
6859
|
+
}
|
|
6860
|
+
},
|
|
6861
|
+
permissions: [
|
|
6862
|
+
{
|
|
6863
|
+
name: "unrestricted",
|
|
6864
|
+
description: "Allow all SimilarWeb API endpoints",
|
|
6865
|
+
rules: ["ANY /{path*}"]
|
|
6866
|
+
}
|
|
6867
|
+
]
|
|
6868
|
+
}
|
|
6869
|
+
]
|
|
6870
|
+
};
|
|
6871
|
+
|
|
6690
6872
|
// ../../packages/core/src/firewalls/slack.generated.ts
|
|
6691
6873
|
var slackFirewall = {
|
|
6692
6874
|
name: "slack",
|
|
@@ -7697,6 +7879,32 @@ var todoistFirewall = {
|
|
|
7697
7879
|
]
|
|
7698
7880
|
};
|
|
7699
7881
|
|
|
7882
|
+
// ../../packages/core/src/firewalls/v0.generated.ts
|
|
7883
|
+
var v0Firewall = {
|
|
7884
|
+
name: "v0",
|
|
7885
|
+
description: "v0 API",
|
|
7886
|
+
placeholders: {
|
|
7887
|
+
V0_TOKEN: "vm0placeholderV0Token00000000000000000000000000000000a"
|
|
7888
|
+
},
|
|
7889
|
+
apis: [
|
|
7890
|
+
{
|
|
7891
|
+
base: "https://api.v0.dev",
|
|
7892
|
+
auth: {
|
|
7893
|
+
headers: {
|
|
7894
|
+
Authorization: "Bearer ${{ secrets.V0_TOKEN }}"
|
|
7895
|
+
}
|
|
7896
|
+
},
|
|
7897
|
+
permissions: [
|
|
7898
|
+
{
|
|
7899
|
+
name: "unrestricted",
|
|
7900
|
+
description: "Allow all v0 API endpoints",
|
|
7901
|
+
rules: ["ANY /{path*}"]
|
|
7902
|
+
}
|
|
7903
|
+
]
|
|
7904
|
+
}
|
|
7905
|
+
]
|
|
7906
|
+
};
|
|
7907
|
+
|
|
7700
7908
|
// ../../packages/core/src/firewalls/vercel.generated.ts
|
|
7701
7909
|
var vercelFirewall = {
|
|
7702
7910
|
name: "vercel",
|
|
@@ -8517,6 +8725,7 @@ var builtinFirewalls = {
|
|
|
8517
8725
|
close: closeFirewall,
|
|
8518
8726
|
cloudflare: cloudflareFirewall,
|
|
8519
8727
|
confluence: confluenceFirewall,
|
|
8728
|
+
cronlytic: cronlyticFirewall,
|
|
8520
8729
|
"customer-io": customerIoFirewall,
|
|
8521
8730
|
deepseek: deepseekFirewall,
|
|
8522
8731
|
deel: deelFirewall,
|
|
@@ -8524,6 +8733,7 @@ var builtinFirewalls = {
|
|
|
8524
8733
|
discord: discordFirewall,
|
|
8525
8734
|
dropbox: dropboxFirewall,
|
|
8526
8735
|
elevenlabs: elevenlabsFirewall,
|
|
8736
|
+
explorium: exploriumFirewall,
|
|
8527
8737
|
fal: falFirewall,
|
|
8528
8738
|
figma: figmaFirewall,
|
|
8529
8739
|
firecrawl: firecrawlFirewall,
|
|
@@ -8555,16 +8765,21 @@ var builtinFirewalls = {
|
|
|
8555
8765
|
neon: neonFirewall,
|
|
8556
8766
|
notion: notionFirewall,
|
|
8557
8767
|
openai: openaiFirewall,
|
|
8768
|
+
pdfco: pdfcoFirewall,
|
|
8558
8769
|
perplexity: perplexityFirewall,
|
|
8559
8770
|
plausible: plausibleFirewall,
|
|
8560
8771
|
posthog: posthogFirewall,
|
|
8772
|
+
pushinator: pushinatorFirewall,
|
|
8561
8773
|
qiita: qiitaFirewall,
|
|
8562
8774
|
reddit: redditFirewall,
|
|
8563
8775
|
resend: resendFirewall,
|
|
8776
|
+
revenuecat: revenuecatFirewall,
|
|
8564
8777
|
runway: runwayFirewall,
|
|
8778
|
+
scrapeninja: scrapeninjaFirewall,
|
|
8565
8779
|
sentry: sentryFirewall,
|
|
8566
8780
|
serpapi: serpapiFirewall,
|
|
8567
8781
|
shortio: shortioFirewall,
|
|
8782
|
+
similarweb: similarwebFirewall,
|
|
8568
8783
|
slack: slackFirewall,
|
|
8569
8784
|
strava: stravaFirewall,
|
|
8570
8785
|
stripe: stripeFirewall,
|
|
@@ -8573,6 +8788,7 @@ var builtinFirewalls = {
|
|
|
8573
8788
|
tavily: tavilyFirewall,
|
|
8574
8789
|
tldv: tldvFirewall,
|
|
8575
8790
|
todoist: todoistFirewall,
|
|
8791
|
+
v0: v0Firewall,
|
|
8576
8792
|
vercel: vercelFirewall,
|
|
8577
8793
|
webflow: webflowFirewall,
|
|
8578
8794
|
wix: wixFirewall,
|
|
@@ -14902,7 +15118,7 @@ var zeroAgentsByIdContract = c17.router({
|
|
|
14902
15118
|
method: "GET",
|
|
14903
15119
|
path: "/api/zero/agents/:id",
|
|
14904
15120
|
headers: authHeadersSchema,
|
|
14905
|
-
pathParams: z26.object({ id: z26.string() }),
|
|
15121
|
+
pathParams: z26.object({ id: z26.string().uuid() }),
|
|
14906
15122
|
responses: {
|
|
14907
15123
|
200: zeroAgentResponseSchema,
|
|
14908
15124
|
401: apiErrorSchema,
|
|
@@ -14914,7 +15130,7 @@ var zeroAgentsByIdContract = c17.router({
|
|
|
14914
15130
|
method: "PUT",
|
|
14915
15131
|
path: "/api/zero/agents/:id",
|
|
14916
15132
|
headers: authHeadersSchema,
|
|
14917
|
-
pathParams: z26.object({ id: z26.string() }),
|
|
15133
|
+
pathParams: z26.object({ id: z26.string().uuid() }),
|
|
14918
15134
|
body: zeroAgentRequestSchema,
|
|
14919
15135
|
responses: {
|
|
14920
15136
|
200: zeroAgentResponseSchema,
|
|
@@ -14929,7 +15145,7 @@ var zeroAgentsByIdContract = c17.router({
|
|
|
14929
15145
|
method: "PATCH",
|
|
14930
15146
|
path: "/api/zero/agents/:id",
|
|
14931
15147
|
headers: authHeadersSchema,
|
|
14932
|
-
pathParams: z26.object({ id: z26.string() }),
|
|
15148
|
+
pathParams: z26.object({ id: z26.string().uuid() }),
|
|
14933
15149
|
body: zeroAgentMetadataRequestSchema,
|
|
14934
15150
|
responses: {
|
|
14935
15151
|
200: zeroAgentResponseSchema,
|
|
@@ -14942,7 +15158,7 @@ var zeroAgentsByIdContract = c17.router({
|
|
|
14942
15158
|
method: "DELETE",
|
|
14943
15159
|
path: "/api/zero/agents/:id",
|
|
14944
15160
|
headers: authHeadersSchema,
|
|
14945
|
-
pathParams: z26.object({ id: z26.string() }),
|
|
15161
|
+
pathParams: z26.object({ id: z26.string().uuid() }),
|
|
14946
15162
|
body: c17.noBody(),
|
|
14947
15163
|
responses: {
|
|
14948
15164
|
204: c17.noBody(),
|
|
@@ -14953,7 +15169,7 @@ var zeroAgentsByIdContract = c17.router({
|
|
|
14953
15169
|
}
|
|
14954
15170
|
});
|
|
14955
15171
|
var zeroAgentFirewallPoliciesRequestSchema = z26.object({
|
|
14956
|
-
agentId: z26.string(),
|
|
15172
|
+
agentId: z26.string().uuid(),
|
|
14957
15173
|
policies: firewallPoliciesSchema
|
|
14958
15174
|
});
|
|
14959
15175
|
var zeroAgentFirewallPoliciesContract = c17.router({
|
|
@@ -14977,7 +15193,7 @@ var zeroAgentInstructionsContract = c17.router({
|
|
|
14977
15193
|
method: "GET",
|
|
14978
15194
|
path: "/api/zero/agents/:id/instructions",
|
|
14979
15195
|
headers: authHeadersSchema,
|
|
14980
|
-
pathParams: z26.object({ id: z26.string() }),
|
|
15196
|
+
pathParams: z26.object({ id: z26.string().uuid() }),
|
|
14981
15197
|
responses: {
|
|
14982
15198
|
200: zeroAgentInstructionsResponseSchema,
|
|
14983
15199
|
401: apiErrorSchema,
|
|
@@ -14989,7 +15205,7 @@ var zeroAgentInstructionsContract = c17.router({
|
|
|
14989
15205
|
method: "PUT",
|
|
14990
15206
|
path: "/api/zero/agents/:id/instructions",
|
|
14991
15207
|
headers: authHeadersSchema,
|
|
14992
|
-
pathParams: z26.object({ id: z26.string() }),
|
|
15208
|
+
pathParams: z26.object({ id: z26.string().uuid() }),
|
|
14993
15209
|
body: zeroAgentInstructionsRequestSchema,
|
|
14994
15210
|
responses: {
|
|
14995
15211
|
200: zeroAgentResponseSchema,
|
|
@@ -17256,6 +17472,7 @@ export {
|
|
|
17256
17472
|
getToken,
|
|
17257
17473
|
getActiveToken,
|
|
17258
17474
|
getApiUrl,
|
|
17475
|
+
decodeZeroTokenPayload,
|
|
17259
17476
|
getActiveOrg,
|
|
17260
17477
|
clearConfig,
|
|
17261
17478
|
extractAndGroupVariables,
|
|
@@ -17379,4 +17596,4 @@ export {
|
|
|
17379
17596
|
promptSelect,
|
|
17380
17597
|
promptPassword
|
|
17381
17598
|
};
|
|
17382
|
-
//# sourceMappingURL=chunk-
|
|
17599
|
+
//# sourceMappingURL=chunk-3EOIDO3I.js.map
|