@vm0/cli 9.79.1 → 9.79.3
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-ZKST6ZZZ.js → chunk-MKJBEFRH.js} +575 -94
- package/chunk-MKJBEFRH.js.map +1 -0
- package/index.js +13 -19
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/zero.js +2 -2
- package/chunk-ZKST6ZZZ.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.79.
|
|
50
|
+
release: "9.79.3",
|
|
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.79.
|
|
69
|
+
version: "9.79.3",
|
|
70
70
|
command: process.argv.slice(2).join(" ")
|
|
71
71
|
});
|
|
72
72
|
Sentry.setContext("runtime", {
|
|
@@ -768,7 +768,7 @@ var triggerSourceSchema = z5.enum([
|
|
|
768
768
|
var logEntrySchema = z5.object({
|
|
769
769
|
id: z5.uuid(),
|
|
770
770
|
sessionId: z5.string().nullable(),
|
|
771
|
-
|
|
771
|
+
agentId: z5.string().nullable(),
|
|
772
772
|
displayName: z5.string().nullable(),
|
|
773
773
|
orgSlug: z5.string().nullable(),
|
|
774
774
|
framework: z5.string().nullable(),
|
|
@@ -795,7 +795,7 @@ var artifactSchema = z5.object({
|
|
|
795
795
|
var logDetailSchema = z5.object({
|
|
796
796
|
id: z5.uuid(),
|
|
797
797
|
sessionId: z5.string().nullable(),
|
|
798
|
-
|
|
798
|
+
agentId: z5.string().nullable(),
|
|
799
799
|
displayName: z5.string().nullable(),
|
|
800
800
|
framework: z5.string().nullable(),
|
|
801
801
|
modelProvider: z5.string().nullable(),
|
|
@@ -920,11 +920,11 @@ var orgDefaultAgentContract = c3.router({
|
|
|
920
920
|
org: z7.string().optional()
|
|
921
921
|
}),
|
|
922
922
|
body: z7.object({
|
|
923
|
-
|
|
923
|
+
agentId: z7.uuid().nullable()
|
|
924
924
|
}),
|
|
925
925
|
responses: {
|
|
926
926
|
200: z7.object({
|
|
927
|
-
|
|
927
|
+
agentId: z7.uuid().nullable()
|
|
928
928
|
}),
|
|
929
929
|
400: apiErrorSchema,
|
|
930
930
|
401: apiErrorSchema,
|
|
@@ -2754,7 +2754,7 @@ var chatThreadListItemSchema = z18.object({
|
|
|
2754
2754
|
id: z18.string(),
|
|
2755
2755
|
title: z18.string().nullable(),
|
|
2756
2756
|
preview: z18.string().nullable(),
|
|
2757
|
-
|
|
2757
|
+
agentId: z18.string(),
|
|
2758
2758
|
createdAt: z18.string(),
|
|
2759
2759
|
updatedAt: z18.string()
|
|
2760
2760
|
});
|
|
@@ -2775,7 +2775,7 @@ var unsavedRunSchema = z18.object({
|
|
|
2775
2775
|
var chatThreadDetailSchema = z18.object({
|
|
2776
2776
|
id: z18.string(),
|
|
2777
2777
|
title: z18.string().nullable(),
|
|
2778
|
-
|
|
2778
|
+
agentId: z18.string(),
|
|
2779
2779
|
chatMessages: z18.array(storedChatMessageSchema2),
|
|
2780
2780
|
latestSessionId: z18.string().nullable(),
|
|
2781
2781
|
unsavedRuns: z18.array(unsavedRunSchema),
|
|
@@ -2788,7 +2788,7 @@ var chatThreadsContract = c11.router({
|
|
|
2788
2788
|
path: "/api/zero/chat-threads",
|
|
2789
2789
|
headers: authHeadersSchema,
|
|
2790
2790
|
body: z18.object({
|
|
2791
|
-
|
|
2791
|
+
agentId: z18.string().min(1),
|
|
2792
2792
|
title: z18.string().optional()
|
|
2793
2793
|
}),
|
|
2794
2794
|
responses: {
|
|
@@ -2806,7 +2806,7 @@ var chatThreadsContract = c11.router({
|
|
|
2806
2806
|
path: "/api/zero/chat-threads",
|
|
2807
2807
|
headers: authHeadersSchema,
|
|
2808
2808
|
query: z18.object({
|
|
2809
|
-
|
|
2809
|
+
agentId: z18.string().min(1, "agentId is required")
|
|
2810
2810
|
}),
|
|
2811
2811
|
responses: {
|
|
2812
2812
|
200: z18.object({ threads: z18.array(chatThreadListItemSchema) }),
|
|
@@ -2918,9 +2918,7 @@ var storedExecutionContextSchema = z19.object({
|
|
|
2918
2918
|
apiStartTime: z19.number().optional(),
|
|
2919
2919
|
// User's timezone preference (IANA format, e.g., "Asia/Shanghai")
|
|
2920
2920
|
userTimezone: z19.string().optional(),
|
|
2921
|
-
//
|
|
2922
|
-
agentName: z19.string().optional(),
|
|
2923
|
-
agentComposeId: z19.string().optional(),
|
|
2921
|
+
// Org slug for agent — used for VM0_ACTIVE_ORG when capabilities are present
|
|
2924
2922
|
agentOrgSlug: z19.string().optional(),
|
|
2925
2923
|
// Memory storage name (for first-run when manifest.memory is null)
|
|
2926
2924
|
memoryName: z19.string().optional(),
|
|
@@ -2962,9 +2960,7 @@ var executionContextSchema = z19.object({
|
|
|
2962
2960
|
apiStartTime: z19.number().optional(),
|
|
2963
2961
|
// User's timezone preference (IANA format, e.g., "Asia/Shanghai")
|
|
2964
2962
|
userTimezone: z19.string().optional(),
|
|
2965
|
-
//
|
|
2966
|
-
agentName: z19.string().optional(),
|
|
2967
|
-
agentComposeId: z19.string().optional(),
|
|
2963
|
+
// Org slug for agent — used for VM0_ACTIVE_ORG when capabilities are present
|
|
2968
2964
|
agentOrgSlug: z19.string().optional(),
|
|
2969
2965
|
// Memory storage name (for first-run when manifest.memory is null)
|
|
2970
2966
|
memoryName: z19.string().optional(),
|
|
@@ -6522,7 +6518,7 @@ var axiomFirewall = {
|
|
|
6522
6518
|
name: "axiom",
|
|
6523
6519
|
description: "Axiom API",
|
|
6524
6520
|
placeholders: {
|
|
6525
|
-
AXIOM_TOKEN: "xaat-
|
|
6521
|
+
AXIOM_TOKEN: "xaat-00000000-0000-0000-0000-000000000000"
|
|
6526
6522
|
},
|
|
6527
6523
|
apis: [
|
|
6528
6524
|
{
|
|
@@ -6543,6 +6539,58 @@ var axiomFirewall = {
|
|
|
6543
6539
|
]
|
|
6544
6540
|
};
|
|
6545
6541
|
|
|
6542
|
+
// ../../packages/core/src/firewalls/brave-search.generated.ts
|
|
6543
|
+
var braveSearchFirewall = {
|
|
6544
|
+
name: "brave-search",
|
|
6545
|
+
description: "Brave Search API",
|
|
6546
|
+
placeholders: {
|
|
6547
|
+
BRAVE_API_KEY: "BSAIVm0PlaceHolder00000000"
|
|
6548
|
+
},
|
|
6549
|
+
apis: [
|
|
6550
|
+
{
|
|
6551
|
+
base: "https://api.search.brave.com",
|
|
6552
|
+
auth: {
|
|
6553
|
+
headers: {
|
|
6554
|
+
"X-Subscription-Token": "${{ secrets.BRAVE_API_KEY }}"
|
|
6555
|
+
}
|
|
6556
|
+
},
|
|
6557
|
+
permissions: [
|
|
6558
|
+
{
|
|
6559
|
+
name: "unrestricted",
|
|
6560
|
+
description: "Allow all endpoints",
|
|
6561
|
+
rules: ["ANY /{path*}"]
|
|
6562
|
+
}
|
|
6563
|
+
]
|
|
6564
|
+
}
|
|
6565
|
+
]
|
|
6566
|
+
};
|
|
6567
|
+
|
|
6568
|
+
// ../../packages/core/src/firewalls/clickup.generated.ts
|
|
6569
|
+
var clickupFirewall = {
|
|
6570
|
+
name: "clickup",
|
|
6571
|
+
description: "ClickUp API",
|
|
6572
|
+
placeholders: {
|
|
6573
|
+
CLICKUP_TOKEN: "pk_0000000_VM0PLACEHOLDER0000000000000000000A"
|
|
6574
|
+
},
|
|
6575
|
+
apis: [
|
|
6576
|
+
{
|
|
6577
|
+
base: "https://api.clickup.com/api/v2",
|
|
6578
|
+
auth: {
|
|
6579
|
+
headers: {
|
|
6580
|
+
Authorization: "${{ secrets.CLICKUP_TOKEN }}"
|
|
6581
|
+
}
|
|
6582
|
+
},
|
|
6583
|
+
permissions: [
|
|
6584
|
+
{
|
|
6585
|
+
name: "unrestricted",
|
|
6586
|
+
description: "Allow all endpoints",
|
|
6587
|
+
rules: ["ANY /{path*}"]
|
|
6588
|
+
}
|
|
6589
|
+
]
|
|
6590
|
+
}
|
|
6591
|
+
]
|
|
6592
|
+
};
|
|
6593
|
+
|
|
6546
6594
|
// ../../packages/core/src/firewalls/cloudflare.generated.ts
|
|
6547
6595
|
var cloudflareFirewall = {
|
|
6548
6596
|
name: "cloudflare",
|
|
@@ -6943,6 +6991,32 @@ var elevenlabsFirewall = {
|
|
|
6943
6991
|
]
|
|
6944
6992
|
};
|
|
6945
6993
|
|
|
6994
|
+
// ../../packages/core/src/firewalls/fal.generated.ts
|
|
6995
|
+
var falFirewall = {
|
|
6996
|
+
name: "fal",
|
|
6997
|
+
description: "fal.ai API",
|
|
6998
|
+
placeholders: {
|
|
6999
|
+
FAL_TOKEN: "Vm0PlaceHolder00:sk_live_Vm0PlaceHolder00000000000000"
|
|
7000
|
+
},
|
|
7001
|
+
apis: [
|
|
7002
|
+
{
|
|
7003
|
+
base: "https://api.fal.ai",
|
|
7004
|
+
auth: {
|
|
7005
|
+
headers: {
|
|
7006
|
+
Authorization: "Key ${{ secrets.FAL_TOKEN }}"
|
|
7007
|
+
}
|
|
7008
|
+
},
|
|
7009
|
+
permissions: [
|
|
7010
|
+
{
|
|
7011
|
+
name: "unrestricted",
|
|
7012
|
+
description: "Allow all endpoints",
|
|
7013
|
+
rules: ["ANY /{path*}"]
|
|
7014
|
+
}
|
|
7015
|
+
]
|
|
7016
|
+
}
|
|
7017
|
+
]
|
|
7018
|
+
};
|
|
7019
|
+
|
|
6946
7020
|
// ../../packages/core/src/firewalls/figma.generated.ts
|
|
6947
7021
|
var figmaFirewall = {
|
|
6948
7022
|
name: "figma",
|
|
@@ -9267,6 +9341,150 @@ var gmailFirewall = {
|
|
|
9267
9341
|
]
|
|
9268
9342
|
}
|
|
9269
9343
|
]
|
|
9344
|
+
},
|
|
9345
|
+
{
|
|
9346
|
+
base: "https://gmail.googleapis.com/upload/gmail",
|
|
9347
|
+
auth: {
|
|
9348
|
+
headers: {
|
|
9349
|
+
Authorization: "Bearer ${{ secrets.GMAIL_TOKEN }}"
|
|
9350
|
+
}
|
|
9351
|
+
},
|
|
9352
|
+
permissions: [
|
|
9353
|
+
{
|
|
9354
|
+
name: "unrestricted",
|
|
9355
|
+
description: "Allow all endpoints",
|
|
9356
|
+
rules: ["ANY /{path*}"]
|
|
9357
|
+
},
|
|
9358
|
+
{
|
|
9359
|
+
name: "gmail",
|
|
9360
|
+
description: "Read, compose, send, and permanently delete all your email from Gmail",
|
|
9361
|
+
rules: [
|
|
9362
|
+
"POST /v1/users/{userId}/drafts",
|
|
9363
|
+
"POST /v1/users/{userId}/drafts/send",
|
|
9364
|
+
"PUT /v1/users/{userId}/drafts/{id}",
|
|
9365
|
+
"POST /v1/users/{userId}/messages",
|
|
9366
|
+
"POST /v1/users/{userId}/messages/import",
|
|
9367
|
+
"POST /v1/users/{userId}/messages/send"
|
|
9368
|
+
]
|
|
9369
|
+
},
|
|
9370
|
+
{
|
|
9371
|
+
name: "gmail.addons.current.action.compose",
|
|
9372
|
+
description: "Manage drafts and send emails when you interact with the add-on",
|
|
9373
|
+
rules: [
|
|
9374
|
+
"POST /v1/users/{userId}/drafts",
|
|
9375
|
+
"POST /v1/users/{userId}/drafts/send",
|
|
9376
|
+
"PUT /v1/users/{userId}/drafts/{id}",
|
|
9377
|
+
"POST /v1/users/{userId}/messages/send"
|
|
9378
|
+
]
|
|
9379
|
+
},
|
|
9380
|
+
{
|
|
9381
|
+
name: "gmail.compose",
|
|
9382
|
+
description: "Manage drafts and send emails",
|
|
9383
|
+
rules: [
|
|
9384
|
+
"POST /v1/users/{userId}/drafts",
|
|
9385
|
+
"POST /v1/users/{userId}/drafts/send",
|
|
9386
|
+
"PUT /v1/users/{userId}/drafts/{id}",
|
|
9387
|
+
"POST /v1/users/{userId}/messages/send"
|
|
9388
|
+
]
|
|
9389
|
+
},
|
|
9390
|
+
{
|
|
9391
|
+
name: "gmail.insert",
|
|
9392
|
+
description: "Add emails into your Gmail mailbox",
|
|
9393
|
+
rules: [
|
|
9394
|
+
"POST /v1/users/{userId}/messages",
|
|
9395
|
+
"POST /v1/users/{userId}/messages/import"
|
|
9396
|
+
]
|
|
9397
|
+
},
|
|
9398
|
+
{
|
|
9399
|
+
name: "gmail.modify",
|
|
9400
|
+
description: "Read, compose, and send emails from your Gmail account",
|
|
9401
|
+
rules: [
|
|
9402
|
+
"POST /v1/users/{userId}/drafts",
|
|
9403
|
+
"POST /v1/users/{userId}/drafts/send",
|
|
9404
|
+
"PUT /v1/users/{userId}/drafts/{id}",
|
|
9405
|
+
"POST /v1/users/{userId}/messages",
|
|
9406
|
+
"POST /v1/users/{userId}/messages/import",
|
|
9407
|
+
"POST /v1/users/{userId}/messages/send"
|
|
9408
|
+
]
|
|
9409
|
+
},
|
|
9410
|
+
{
|
|
9411
|
+
name: "gmail.send",
|
|
9412
|
+
description: "Send email on your behalf",
|
|
9413
|
+
rules: ["POST /v1/users/{userId}/messages/send"]
|
|
9414
|
+
}
|
|
9415
|
+
]
|
|
9416
|
+
},
|
|
9417
|
+
{
|
|
9418
|
+
base: "https://gmail.googleapis.com/resumable/upload/gmail",
|
|
9419
|
+
auth: {
|
|
9420
|
+
headers: {
|
|
9421
|
+
Authorization: "Bearer ${{ secrets.GMAIL_TOKEN }}"
|
|
9422
|
+
}
|
|
9423
|
+
},
|
|
9424
|
+
permissions: [
|
|
9425
|
+
{
|
|
9426
|
+
name: "unrestricted",
|
|
9427
|
+
description: "Allow all endpoints",
|
|
9428
|
+
rules: ["ANY /{path*}"]
|
|
9429
|
+
},
|
|
9430
|
+
{
|
|
9431
|
+
name: "gmail",
|
|
9432
|
+
description: "Read, compose, send, and permanently delete all your email from Gmail",
|
|
9433
|
+
rules: [
|
|
9434
|
+
"POST /v1/users/{userId}/drafts",
|
|
9435
|
+
"POST /v1/users/{userId}/drafts/send",
|
|
9436
|
+
"PUT /v1/users/{userId}/drafts/{id}",
|
|
9437
|
+
"POST /v1/users/{userId}/messages",
|
|
9438
|
+
"POST /v1/users/{userId}/messages/import",
|
|
9439
|
+
"POST /v1/users/{userId}/messages/send"
|
|
9440
|
+
]
|
|
9441
|
+
},
|
|
9442
|
+
{
|
|
9443
|
+
name: "gmail.addons.current.action.compose",
|
|
9444
|
+
description: "Manage drafts and send emails when you interact with the add-on",
|
|
9445
|
+
rules: [
|
|
9446
|
+
"POST /v1/users/{userId}/drafts",
|
|
9447
|
+
"POST /v1/users/{userId}/drafts/send",
|
|
9448
|
+
"PUT /v1/users/{userId}/drafts/{id}",
|
|
9449
|
+
"POST /v1/users/{userId}/messages/send"
|
|
9450
|
+
]
|
|
9451
|
+
},
|
|
9452
|
+
{
|
|
9453
|
+
name: "gmail.compose",
|
|
9454
|
+
description: "Manage drafts and send emails",
|
|
9455
|
+
rules: [
|
|
9456
|
+
"POST /v1/users/{userId}/drafts",
|
|
9457
|
+
"POST /v1/users/{userId}/drafts/send",
|
|
9458
|
+
"PUT /v1/users/{userId}/drafts/{id}",
|
|
9459
|
+
"POST /v1/users/{userId}/messages/send"
|
|
9460
|
+
]
|
|
9461
|
+
},
|
|
9462
|
+
{
|
|
9463
|
+
name: "gmail.insert",
|
|
9464
|
+
description: "Add emails into your Gmail mailbox",
|
|
9465
|
+
rules: [
|
|
9466
|
+
"POST /v1/users/{userId}/messages",
|
|
9467
|
+
"POST /v1/users/{userId}/messages/import"
|
|
9468
|
+
]
|
|
9469
|
+
},
|
|
9470
|
+
{
|
|
9471
|
+
name: "gmail.modify",
|
|
9472
|
+
description: "Read, compose, and send emails from your Gmail account",
|
|
9473
|
+
rules: [
|
|
9474
|
+
"POST /v1/users/{userId}/drafts",
|
|
9475
|
+
"POST /v1/users/{userId}/drafts/send",
|
|
9476
|
+
"PUT /v1/users/{userId}/drafts/{id}",
|
|
9477
|
+
"POST /v1/users/{userId}/messages",
|
|
9478
|
+
"POST /v1/users/{userId}/messages/import",
|
|
9479
|
+
"POST /v1/users/{userId}/messages/send"
|
|
9480
|
+
]
|
|
9481
|
+
},
|
|
9482
|
+
{
|
|
9483
|
+
name: "gmail.send",
|
|
9484
|
+
description: "Send email on your behalf",
|
|
9485
|
+
rules: ["POST /v1/users/{userId}/messages/send"]
|
|
9486
|
+
}
|
|
9487
|
+
]
|
|
9270
9488
|
}
|
|
9271
9489
|
]
|
|
9272
9490
|
};
|
|
@@ -10236,6 +10454,126 @@ var googleDriveFirewall = {
|
|
|
10236
10454
|
]
|
|
10237
10455
|
}
|
|
10238
10456
|
]
|
|
10457
|
+
},
|
|
10458
|
+
{
|
|
10459
|
+
base: "https://www.googleapis.com/upload/drive",
|
|
10460
|
+
auth: {
|
|
10461
|
+
headers: {
|
|
10462
|
+
Authorization: "Bearer ${{ secrets.GOOGLE_DRIVE_TOKEN }}"
|
|
10463
|
+
}
|
|
10464
|
+
},
|
|
10465
|
+
permissions: [
|
|
10466
|
+
{
|
|
10467
|
+
name: "unrestricted",
|
|
10468
|
+
description: "Allow all endpoints",
|
|
10469
|
+
rules: ["ANY /{path*}"]
|
|
10470
|
+
},
|
|
10471
|
+
{
|
|
10472
|
+
name: "drive",
|
|
10473
|
+
description: "See, edit, create, and delete all of your Google Drive files",
|
|
10474
|
+
rules: [
|
|
10475
|
+
"POST /v2/files",
|
|
10476
|
+
"PUT /v2/files/{fileId}",
|
|
10477
|
+
"POST /v3/files",
|
|
10478
|
+
"PATCH /v3/files/{fileId}"
|
|
10479
|
+
]
|
|
10480
|
+
},
|
|
10481
|
+
{
|
|
10482
|
+
name: "drive.appdata",
|
|
10483
|
+
description: "See, create, and delete its own configuration data in your Google Drive",
|
|
10484
|
+
rules: [
|
|
10485
|
+
"POST /v2/files",
|
|
10486
|
+
"PUT /v2/files/{fileId}",
|
|
10487
|
+
"POST /v3/files",
|
|
10488
|
+
"PATCH /v3/files/{fileId}"
|
|
10489
|
+
]
|
|
10490
|
+
},
|
|
10491
|
+
{
|
|
10492
|
+
name: "drive.apps.readonly",
|
|
10493
|
+
description: "View your Google Drive apps",
|
|
10494
|
+
rules: ["POST /v2/files", "PUT /v2/files/{fileId}"]
|
|
10495
|
+
},
|
|
10496
|
+
{
|
|
10497
|
+
name: "drive.file",
|
|
10498
|
+
description: "See, edit, create, and delete only the specific Google Drive files you use with this app",
|
|
10499
|
+
rules: [
|
|
10500
|
+
"POST /v2/files",
|
|
10501
|
+
"PUT /v2/files/{fileId}",
|
|
10502
|
+
"POST /v3/files",
|
|
10503
|
+
"PATCH /v3/files/{fileId}"
|
|
10504
|
+
]
|
|
10505
|
+
},
|
|
10506
|
+
{
|
|
10507
|
+
name: "drive.metadata",
|
|
10508
|
+
description: "View and manage metadata of files in your Google Drive",
|
|
10509
|
+
rules: ["PUT /v2/files/{fileId}", "PATCH /v3/files/{fileId}"]
|
|
10510
|
+
},
|
|
10511
|
+
{
|
|
10512
|
+
name: "drive.scripts",
|
|
10513
|
+
description: "Modify your Google Apps Script scripts' behavior",
|
|
10514
|
+
rules: ["PUT /v2/files/{fileId}", "PATCH /v3/files/{fileId}"]
|
|
10515
|
+
}
|
|
10516
|
+
]
|
|
10517
|
+
},
|
|
10518
|
+
{
|
|
10519
|
+
base: "https://www.googleapis.com/resumable/upload/drive",
|
|
10520
|
+
auth: {
|
|
10521
|
+
headers: {
|
|
10522
|
+
Authorization: "Bearer ${{ secrets.GOOGLE_DRIVE_TOKEN }}"
|
|
10523
|
+
}
|
|
10524
|
+
},
|
|
10525
|
+
permissions: [
|
|
10526
|
+
{
|
|
10527
|
+
name: "unrestricted",
|
|
10528
|
+
description: "Allow all endpoints",
|
|
10529
|
+
rules: ["ANY /{path*}"]
|
|
10530
|
+
},
|
|
10531
|
+
{
|
|
10532
|
+
name: "drive",
|
|
10533
|
+
description: "See, edit, create, and delete all of your Google Drive files",
|
|
10534
|
+
rules: [
|
|
10535
|
+
"POST /v2/files",
|
|
10536
|
+
"PUT /v2/files/{fileId}",
|
|
10537
|
+
"POST /v3/files",
|
|
10538
|
+
"PATCH /v3/files/{fileId}"
|
|
10539
|
+
]
|
|
10540
|
+
},
|
|
10541
|
+
{
|
|
10542
|
+
name: "drive.appdata",
|
|
10543
|
+
description: "See, create, and delete its own configuration data in your Google Drive",
|
|
10544
|
+
rules: [
|
|
10545
|
+
"POST /v2/files",
|
|
10546
|
+
"PUT /v2/files/{fileId}",
|
|
10547
|
+
"POST /v3/files",
|
|
10548
|
+
"PATCH /v3/files/{fileId}"
|
|
10549
|
+
]
|
|
10550
|
+
},
|
|
10551
|
+
{
|
|
10552
|
+
name: "drive.apps.readonly",
|
|
10553
|
+
description: "View your Google Drive apps",
|
|
10554
|
+
rules: ["POST /v2/files", "PUT /v2/files/{fileId}"]
|
|
10555
|
+
},
|
|
10556
|
+
{
|
|
10557
|
+
name: "drive.file",
|
|
10558
|
+
description: "See, edit, create, and delete only the specific Google Drive files you use with this app",
|
|
10559
|
+
rules: [
|
|
10560
|
+
"POST /v2/files",
|
|
10561
|
+
"PUT /v2/files/{fileId}",
|
|
10562
|
+
"POST /v3/files",
|
|
10563
|
+
"PATCH /v3/files/{fileId}"
|
|
10564
|
+
]
|
|
10565
|
+
},
|
|
10566
|
+
{
|
|
10567
|
+
name: "drive.metadata",
|
|
10568
|
+
description: "View and manage metadata of files in your Google Drive",
|
|
10569
|
+
rules: ["PUT /v2/files/{fileId}", "PATCH /v3/files/{fileId}"]
|
|
10570
|
+
},
|
|
10571
|
+
{
|
|
10572
|
+
name: "drive.scripts",
|
|
10573
|
+
description: "Modify your Google Apps Script scripts' behavior",
|
|
10574
|
+
rules: ["PUT /v2/files/{fileId}", "PATCH /v3/files/{fileId}"]
|
|
10575
|
+
}
|
|
10576
|
+
]
|
|
10239
10577
|
}
|
|
10240
10578
|
]
|
|
10241
10579
|
};
|
|
@@ -11069,7 +11407,7 @@ var mondayFirewall = {
|
|
|
11069
11407
|
name: "monday",
|
|
11070
11408
|
description: "Monday.com API",
|
|
11071
11409
|
placeholders: {
|
|
11072
|
-
MONDAY_TOKEN: "
|
|
11410
|
+
MONDAY_TOKEN: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlZtMFBsYWNlSG9sZGVyIiwiaWF0IjoxNTE2MjM5MDIyfQ.Vm0PlaceHolder00000000000000000000000000000a"
|
|
11073
11411
|
},
|
|
11074
11412
|
apis: [
|
|
11075
11413
|
{
|
|
@@ -11090,6 +11428,32 @@ var mondayFirewall = {
|
|
|
11090
11428
|
]
|
|
11091
11429
|
};
|
|
11092
11430
|
|
|
11431
|
+
// ../../packages/core/src/firewalls/neon.generated.ts
|
|
11432
|
+
var neonFirewall = {
|
|
11433
|
+
name: "neon",
|
|
11434
|
+
description: "Neon API",
|
|
11435
|
+
placeholders: {
|
|
11436
|
+
NEON_ACCESS_TOKEN: "Vm0PlaceHolder00000000000000000a"
|
|
11437
|
+
},
|
|
11438
|
+
apis: [
|
|
11439
|
+
{
|
|
11440
|
+
base: "https://console.neon.tech/api/v2",
|
|
11441
|
+
auth: {
|
|
11442
|
+
headers: {
|
|
11443
|
+
Authorization: "Bearer ${{ secrets.NEON_ACCESS_TOKEN }}"
|
|
11444
|
+
}
|
|
11445
|
+
},
|
|
11446
|
+
permissions: [
|
|
11447
|
+
{
|
|
11448
|
+
name: "unrestricted",
|
|
11449
|
+
description: "Allow all endpoints",
|
|
11450
|
+
rules: ["ANY /{path*}"]
|
|
11451
|
+
}
|
|
11452
|
+
]
|
|
11453
|
+
}
|
|
11454
|
+
]
|
|
11455
|
+
};
|
|
11456
|
+
|
|
11093
11457
|
// ../../packages/core/src/firewalls/notion.generated.ts
|
|
11094
11458
|
var notionFirewall = {
|
|
11095
11459
|
name: "notion",
|
|
@@ -11209,12 +11573,38 @@ var openaiFirewall = {
|
|
|
11209
11573
|
]
|
|
11210
11574
|
};
|
|
11211
11575
|
|
|
11576
|
+
// ../../packages/core/src/firewalls/perplexity.generated.ts
|
|
11577
|
+
var perplexityFirewall = {
|
|
11578
|
+
name: "perplexity",
|
|
11579
|
+
description: "Perplexity API",
|
|
11580
|
+
placeholders: {
|
|
11581
|
+
PERPLEXITY_TOKEN: "pplx-Vm0PlaceHolder0000000000000000000000000000000000"
|
|
11582
|
+
},
|
|
11583
|
+
apis: [
|
|
11584
|
+
{
|
|
11585
|
+
base: "https://api.perplexity.ai",
|
|
11586
|
+
auth: {
|
|
11587
|
+
headers: {
|
|
11588
|
+
Authorization: "Bearer ${{ secrets.PERPLEXITY_TOKEN }}"
|
|
11589
|
+
}
|
|
11590
|
+
},
|
|
11591
|
+
permissions: [
|
|
11592
|
+
{
|
|
11593
|
+
name: "unrestricted",
|
|
11594
|
+
description: "Allow all endpoints",
|
|
11595
|
+
rules: ["ANY /{path*}"]
|
|
11596
|
+
}
|
|
11597
|
+
]
|
|
11598
|
+
}
|
|
11599
|
+
]
|
|
11600
|
+
};
|
|
11601
|
+
|
|
11212
11602
|
// ../../packages/core/src/firewalls/posthog.generated.ts
|
|
11213
11603
|
var posthogFirewall = {
|
|
11214
11604
|
name: "posthog",
|
|
11215
11605
|
description: "PostHog API",
|
|
11216
11606
|
placeholders: {
|
|
11217
|
-
POSTHOG_TOKEN: "
|
|
11607
|
+
POSTHOG_TOKEN: "phx_Vm0PlaceHolder00000000000000000000000000000000a"
|
|
11218
11608
|
},
|
|
11219
11609
|
apis: [
|
|
11220
11610
|
{
|
|
@@ -11302,6 +11692,32 @@ var sentryFirewall = {
|
|
|
11302
11692
|
]
|
|
11303
11693
|
};
|
|
11304
11694
|
|
|
11695
|
+
// ../../packages/core/src/firewalls/serpapi.generated.ts
|
|
11696
|
+
var serpapiFirewall = {
|
|
11697
|
+
name: "serpapi",
|
|
11698
|
+
description: "SerpApi",
|
|
11699
|
+
placeholders: {
|
|
11700
|
+
SERPAPI_TOKEN: "Vm0PlaceHolder00000000000000000000000000000000000a"
|
|
11701
|
+
},
|
|
11702
|
+
apis: [
|
|
11703
|
+
{
|
|
11704
|
+
base: "https://serpapi.com",
|
|
11705
|
+
auth: {
|
|
11706
|
+
headers: {
|
|
11707
|
+
Authorization: "Bearer ${{ secrets.SERPAPI_TOKEN }}"
|
|
11708
|
+
}
|
|
11709
|
+
},
|
|
11710
|
+
permissions: [
|
|
11711
|
+
{
|
|
11712
|
+
name: "unrestricted",
|
|
11713
|
+
description: "Allow all endpoints",
|
|
11714
|
+
rules: ["ANY /{path*}"]
|
|
11715
|
+
}
|
|
11716
|
+
]
|
|
11717
|
+
}
|
|
11718
|
+
]
|
|
11719
|
+
};
|
|
11720
|
+
|
|
11305
11721
|
// ../../packages/core/src/firewalls/slack.generated.ts
|
|
11306
11722
|
var slackFirewall = {
|
|
11307
11723
|
name: "slack",
|
|
@@ -12156,6 +12572,58 @@ var stripeFirewall = {
|
|
|
12156
12572
|
]
|
|
12157
12573
|
};
|
|
12158
12574
|
|
|
12575
|
+
// ../../packages/core/src/firewalls/supabase.generated.ts
|
|
12576
|
+
var supabaseFirewall = {
|
|
12577
|
+
name: "supabase",
|
|
12578
|
+
description: "Supabase Management API",
|
|
12579
|
+
placeholders: {
|
|
12580
|
+
SUPABASE_ACCESS_TOKEN: "sbp_oauth_0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b"
|
|
12581
|
+
},
|
|
12582
|
+
apis: [
|
|
12583
|
+
{
|
|
12584
|
+
base: "https://api.supabase.com",
|
|
12585
|
+
auth: {
|
|
12586
|
+
headers: {
|
|
12587
|
+
Authorization: "Bearer ${{ secrets.SUPABASE_ACCESS_TOKEN }}"
|
|
12588
|
+
}
|
|
12589
|
+
},
|
|
12590
|
+
permissions: [
|
|
12591
|
+
{
|
|
12592
|
+
name: "unrestricted",
|
|
12593
|
+
description: "Allow all endpoints",
|
|
12594
|
+
rules: ["ANY /{path*}"]
|
|
12595
|
+
}
|
|
12596
|
+
]
|
|
12597
|
+
}
|
|
12598
|
+
]
|
|
12599
|
+
};
|
|
12600
|
+
|
|
12601
|
+
// ../../packages/core/src/firewalls/tavily.generated.ts
|
|
12602
|
+
var tavilyFirewall = {
|
|
12603
|
+
name: "tavily",
|
|
12604
|
+
description: "Tavily API",
|
|
12605
|
+
placeholders: {
|
|
12606
|
+
TAVILY_TOKEN: "tvly-Vm0PlaceHolder0000000000000000000"
|
|
12607
|
+
},
|
|
12608
|
+
apis: [
|
|
12609
|
+
{
|
|
12610
|
+
base: "https://api.tavily.com",
|
|
12611
|
+
auth: {
|
|
12612
|
+
headers: {
|
|
12613
|
+
Authorization: "Bearer ${{ secrets.TAVILY_TOKEN }}"
|
|
12614
|
+
}
|
|
12615
|
+
},
|
|
12616
|
+
permissions: [
|
|
12617
|
+
{
|
|
12618
|
+
name: "unrestricted",
|
|
12619
|
+
description: "Allow all endpoints",
|
|
12620
|
+
rules: ["ANY /{path*}"]
|
|
12621
|
+
}
|
|
12622
|
+
]
|
|
12623
|
+
}
|
|
12624
|
+
]
|
|
12625
|
+
};
|
|
12626
|
+
|
|
12159
12627
|
// ../../packages/core/src/firewalls/todoist.generated.ts
|
|
12160
12628
|
var todoistFirewall = {
|
|
12161
12629
|
name: "todoist",
|
|
@@ -12911,11 +13379,14 @@ var builtinFirewalls = {
|
|
|
12911
13379
|
airtable: airtableFirewall,
|
|
12912
13380
|
asana: asanaFirewall,
|
|
12913
13381
|
axiom: axiomFirewall,
|
|
13382
|
+
"brave-search": braveSearchFirewall,
|
|
13383
|
+
clickup: clickupFirewall,
|
|
12914
13384
|
cloudflare: cloudflareFirewall,
|
|
12915
13385
|
confluence: confluenceFirewall,
|
|
12916
13386
|
deepseek: deepseekFirewall,
|
|
12917
13387
|
discord: discordFirewall,
|
|
12918
13388
|
elevenlabs: elevenlabsFirewall,
|
|
13389
|
+
fal: falFirewall,
|
|
12919
13390
|
figma: figmaFirewall,
|
|
12920
13391
|
firecrawl: firecrawlFirewall,
|
|
12921
13392
|
github: githubFirewall,
|
|
@@ -12929,13 +13400,18 @@ var builtinFirewalls = {
|
|
|
12929
13400
|
jira: jiraFirewall,
|
|
12930
13401
|
linear: linearFirewall,
|
|
12931
13402
|
monday: mondayFirewall,
|
|
13403
|
+
neon: neonFirewall,
|
|
12932
13404
|
notion: notionFirewall,
|
|
12933
13405
|
openai: openaiFirewall,
|
|
13406
|
+
perplexity: perplexityFirewall,
|
|
12934
13407
|
posthog: posthogFirewall,
|
|
12935
13408
|
resend: resendFirewall,
|
|
12936
13409
|
sentry: sentryFirewall,
|
|
13410
|
+
serpapi: serpapiFirewall,
|
|
12937
13411
|
slack: slackFirewall,
|
|
12938
13412
|
stripe: stripeFirewall,
|
|
13413
|
+
supabase: supabaseFirewall,
|
|
13414
|
+
tavily: tavilyFirewall,
|
|
12939
13415
|
todoist: todoistFirewall,
|
|
12940
13416
|
vercel: vercelFirewall,
|
|
12941
13417
|
x: xFirewall,
|
|
@@ -13242,8 +13718,7 @@ var onboardingStatusResponseSchema = z24.object({
|
|
|
13242
13718
|
isAdmin: z24.boolean(),
|
|
13243
13719
|
hasOrg: z24.boolean(),
|
|
13244
13720
|
hasDefaultAgent: z24.boolean(),
|
|
13245
|
-
|
|
13246
|
-
defaultAgentComposeId: z24.string().nullable(),
|
|
13721
|
+
defaultAgentId: z24.string().nullable(),
|
|
13247
13722
|
defaultAgentMetadata: z24.object({
|
|
13248
13723
|
displayName: z24.string().optional(),
|
|
13249
13724
|
description: z24.string().optional(),
|
|
@@ -13302,8 +13777,7 @@ var skillsResolveContract = c16.router({
|
|
|
13302
13777
|
import { z as z26 } from "zod";
|
|
13303
13778
|
var c17 = initContract();
|
|
13304
13779
|
var zeroAgentResponseSchema = z26.object({
|
|
13305
|
-
|
|
13306
|
-
agentComposeId: z26.string(),
|
|
13780
|
+
agentId: z26.string(),
|
|
13307
13781
|
description: z26.string().nullable(),
|
|
13308
13782
|
displayName: z26.string().nullable(),
|
|
13309
13783
|
sound: z26.string().nullable(),
|
|
@@ -13353,24 +13827,24 @@ var zeroAgentsMainContract = c17.router({
|
|
|
13353
13827
|
summary: "List zero agents"
|
|
13354
13828
|
}
|
|
13355
13829
|
});
|
|
13356
|
-
var
|
|
13830
|
+
var zeroAgentsByIdContract = c17.router({
|
|
13357
13831
|
get: {
|
|
13358
13832
|
method: "GET",
|
|
13359
|
-
path: "/api/zero/agents/:
|
|
13833
|
+
path: "/api/zero/agents/:id",
|
|
13360
13834
|
headers: authHeadersSchema,
|
|
13361
|
-
pathParams: z26.object({
|
|
13835
|
+
pathParams: z26.object({ id: z26.string() }),
|
|
13362
13836
|
responses: {
|
|
13363
13837
|
200: zeroAgentResponseSchema,
|
|
13364
13838
|
401: apiErrorSchema,
|
|
13365
13839
|
404: apiErrorSchema
|
|
13366
13840
|
},
|
|
13367
|
-
summary: "Get zero agent by
|
|
13841
|
+
summary: "Get zero agent by id"
|
|
13368
13842
|
},
|
|
13369
13843
|
update: {
|
|
13370
13844
|
method: "PUT",
|
|
13371
|
-
path: "/api/zero/agents/:
|
|
13845
|
+
path: "/api/zero/agents/:id",
|
|
13372
13846
|
headers: authHeadersSchema,
|
|
13373
|
-
pathParams: z26.object({
|
|
13847
|
+
pathParams: z26.object({ id: z26.string() }),
|
|
13374
13848
|
body: zeroAgentRequestSchema,
|
|
13375
13849
|
responses: {
|
|
13376
13850
|
200: zeroAgentResponseSchema,
|
|
@@ -13383,9 +13857,9 @@ var zeroAgentsByNameContract = c17.router({
|
|
|
13383
13857
|
},
|
|
13384
13858
|
updateMetadata: {
|
|
13385
13859
|
method: "PATCH",
|
|
13386
|
-
path: "/api/zero/agents/:
|
|
13860
|
+
path: "/api/zero/agents/:id",
|
|
13387
13861
|
headers: authHeadersSchema,
|
|
13388
|
-
pathParams: z26.object({
|
|
13862
|
+
pathParams: z26.object({ id: z26.string() }),
|
|
13389
13863
|
body: zeroAgentMetadataRequestSchema,
|
|
13390
13864
|
responses: {
|
|
13391
13865
|
200: zeroAgentResponseSchema,
|
|
@@ -13396,20 +13870,20 @@ var zeroAgentsByNameContract = c17.router({
|
|
|
13396
13870
|
},
|
|
13397
13871
|
delete: {
|
|
13398
13872
|
method: "DELETE",
|
|
13399
|
-
path: "/api/zero/agents/:
|
|
13873
|
+
path: "/api/zero/agents/:id",
|
|
13400
13874
|
headers: authHeadersSchema,
|
|
13401
|
-
pathParams: z26.object({
|
|
13875
|
+
pathParams: z26.object({ id: z26.string() }),
|
|
13402
13876
|
body: c17.noBody(),
|
|
13403
13877
|
responses: {
|
|
13404
13878
|
204: c17.noBody(),
|
|
13405
13879
|
401: apiErrorSchema,
|
|
13406
13880
|
404: apiErrorSchema
|
|
13407
13881
|
},
|
|
13408
|
-
summary: "Delete zero agent by
|
|
13882
|
+
summary: "Delete zero agent by id"
|
|
13409
13883
|
}
|
|
13410
13884
|
});
|
|
13411
13885
|
var zeroAgentFirewallPoliciesRequestSchema = z26.object({
|
|
13412
|
-
|
|
13886
|
+
agentId: z26.string(),
|
|
13413
13887
|
policies: firewallPoliciesSchema
|
|
13414
13888
|
});
|
|
13415
13889
|
var zeroAgentFirewallPoliciesContract = c17.router({
|
|
@@ -13431,9 +13905,9 @@ var zeroAgentFirewallPoliciesContract = c17.router({
|
|
|
13431
13905
|
var zeroAgentInstructionsContract = c17.router({
|
|
13432
13906
|
get: {
|
|
13433
13907
|
method: "GET",
|
|
13434
|
-
path: "/api/zero/agents/:
|
|
13908
|
+
path: "/api/zero/agents/:id/instructions",
|
|
13435
13909
|
headers: authHeadersSchema,
|
|
13436
|
-
pathParams: z26.object({
|
|
13910
|
+
pathParams: z26.object({ id: z26.string() }),
|
|
13437
13911
|
responses: {
|
|
13438
13912
|
200: zeroAgentInstructionsResponseSchema,
|
|
13439
13913
|
401: apiErrorSchema,
|
|
@@ -13443,9 +13917,9 @@ var zeroAgentInstructionsContract = c17.router({
|
|
|
13443
13917
|
},
|
|
13444
13918
|
update: {
|
|
13445
13919
|
method: "PUT",
|
|
13446
|
-
path: "/api/zero/agents/:
|
|
13920
|
+
path: "/api/zero/agents/:id/instructions",
|
|
13447
13921
|
headers: authHeadersSchema,
|
|
13448
|
-
pathParams: z26.object({
|
|
13922
|
+
pathParams: z26.object({ id: z26.string() }),
|
|
13449
13923
|
body: zeroAgentInstructionsRequestSchema,
|
|
13450
13924
|
responses: {
|
|
13451
13925
|
200: zeroAgentResponseSchema,
|
|
@@ -13835,7 +14309,10 @@ var zeroRunRequestSchema = unifiedRunRequestSchema.omit({
|
|
|
13835
14309
|
disallowedTools: true,
|
|
13836
14310
|
volumeVersions: true,
|
|
13837
14311
|
vars: true,
|
|
13838
|
-
secrets: true
|
|
14312
|
+
secrets: true,
|
|
14313
|
+
agentComposeId: true
|
|
14314
|
+
}).extend({
|
|
14315
|
+
agentId: z30.string().optional()
|
|
13839
14316
|
});
|
|
13840
14317
|
var c23 = initContract();
|
|
13841
14318
|
var zeroRunsMainContract = c23.router({
|
|
@@ -13931,7 +14408,6 @@ var c24 = initContract();
|
|
|
13931
14408
|
var scheduleResponseSchema = z31.object({
|
|
13932
14409
|
id: z31.string().uuid(),
|
|
13933
14410
|
agentId: z31.string().uuid(),
|
|
13934
|
-
agentName: z31.string(),
|
|
13935
14411
|
orgSlug: z31.string(),
|
|
13936
14412
|
userId: z31.string(),
|
|
13937
14413
|
name: z31.string(),
|
|
@@ -13978,14 +14454,11 @@ var zeroDeployScheduleRequestSchema = z31.object({
|
|
|
13978
14454
|
artifactName: z31.string().optional(),
|
|
13979
14455
|
artifactVersion: z31.string().optional(),
|
|
13980
14456
|
volumeVersions: z31.record(z31.string(), z31.string()).optional(),
|
|
13981
|
-
agentId: z31.string().uuid("Invalid agent ID")
|
|
13982
|
-
composeId: z31.string().uuid("Invalid compose ID").optional(),
|
|
14457
|
+
agentId: z31.string().uuid("Invalid agent ID"),
|
|
13983
14458
|
enabled: z31.boolean().optional(),
|
|
13984
14459
|
notifyEmail: z31.boolean().optional(),
|
|
13985
14460
|
notifySlack: z31.boolean().optional(),
|
|
13986
14461
|
slackChannelId: z31.string().nullable().optional()
|
|
13987
|
-
}).refine((data) => Boolean(data.agentId ?? data.composeId), {
|
|
13988
|
-
message: "Either 'agentId' or 'composeId' must be provided"
|
|
13989
14462
|
}).refine(
|
|
13990
14463
|
(data) => {
|
|
13991
14464
|
const triggers = [
|
|
@@ -14036,10 +14509,7 @@ var zeroSchedulesByNameContract = c24.router({
|
|
|
14036
14509
|
name: z31.string().min(1, "Schedule name required")
|
|
14037
14510
|
}),
|
|
14038
14511
|
query: z31.object({
|
|
14039
|
-
agentId: z31.string().uuid("Invalid agent ID")
|
|
14040
|
-
composeId: z31.string().uuid("Invalid compose ID").optional()
|
|
14041
|
-
}).refine((data) => Boolean(data.agentId ?? data.composeId), {
|
|
14042
|
-
message: "Either 'agentId' or 'composeId' must be provided"
|
|
14512
|
+
agentId: z31.string().uuid("Invalid agent ID")
|
|
14043
14513
|
}),
|
|
14044
14514
|
responses: {
|
|
14045
14515
|
204: c24.noBody(),
|
|
@@ -14059,10 +14529,7 @@ var zeroSchedulesEnableContract = c24.router({
|
|
|
14059
14529
|
name: z31.string().min(1, "Schedule name required")
|
|
14060
14530
|
}),
|
|
14061
14531
|
body: z31.object({
|
|
14062
|
-
agentId: z31.string().uuid("Invalid agent ID")
|
|
14063
|
-
composeId: z31.string().uuid("Invalid compose ID").optional()
|
|
14064
|
-
}).refine((data) => Boolean(data.agentId ?? data.composeId), {
|
|
14065
|
-
message: "Either 'agentId' or 'composeId' must be provided"
|
|
14532
|
+
agentId: z31.string().uuid("Invalid agent ID")
|
|
14066
14533
|
}),
|
|
14067
14534
|
responses: {
|
|
14068
14535
|
200: scheduleResponseSchema,
|
|
@@ -14081,10 +14548,7 @@ var zeroSchedulesEnableContract = c24.router({
|
|
|
14081
14548
|
name: z31.string().min(1, "Schedule name required")
|
|
14082
14549
|
}),
|
|
14083
14550
|
body: z31.object({
|
|
14084
|
-
agentId: z31.string().uuid("Invalid agent ID")
|
|
14085
|
-
composeId: z31.string().uuid("Invalid compose ID").optional()
|
|
14086
|
-
}).refine((data) => Boolean(data.agentId ?? data.composeId), {
|
|
14087
|
-
message: "Either 'agentId' or 'composeId' must be provided"
|
|
14551
|
+
agentId: z31.string().uuid("Invalid agent ID")
|
|
14088
14552
|
}),
|
|
14089
14553
|
responses: {
|
|
14090
14554
|
200: scheduleResponseSchema,
|
|
@@ -14280,6 +14744,16 @@ var zeroVariablesByNameContract = c26.router({
|
|
|
14280
14744
|
// ../../packages/core/src/contracts/zero-sessions.ts
|
|
14281
14745
|
import { z as z34 } from "zod";
|
|
14282
14746
|
var c27 = initContract();
|
|
14747
|
+
var zeroSessionResponseSchema = z34.object({
|
|
14748
|
+
id: z34.string(),
|
|
14749
|
+
agentId: z34.string(),
|
|
14750
|
+
conversationId: z34.string().nullable(),
|
|
14751
|
+
artifactName: z34.string().nullable(),
|
|
14752
|
+
secretNames: z34.array(z34.string()).nullable(),
|
|
14753
|
+
chatMessages: z34.array(storedChatMessageSchema).optional(),
|
|
14754
|
+
createdAt: z34.string(),
|
|
14755
|
+
updatedAt: z34.string()
|
|
14756
|
+
});
|
|
14283
14757
|
var zeroSessionsByIdContract = c27.router({
|
|
14284
14758
|
getById: {
|
|
14285
14759
|
method: "GET",
|
|
@@ -14289,7 +14763,7 @@ var zeroSessionsByIdContract = c27.router({
|
|
|
14289
14763
|
id: z34.string().min(1, "Session ID is required")
|
|
14290
14764
|
}),
|
|
14291
14765
|
responses: {
|
|
14292
|
-
200:
|
|
14766
|
+
200: zeroSessionResponseSchema,
|
|
14293
14767
|
401: apiErrorSchema,
|
|
14294
14768
|
403: apiErrorSchema,
|
|
14295
14769
|
404: apiErrorSchema
|
|
@@ -15319,43 +15793,43 @@ async function listZeroAgents() {
|
|
|
15319
15793
|
if (result.status === 200) return result.body;
|
|
15320
15794
|
handleError(result, "Failed to list zero agents");
|
|
15321
15795
|
}
|
|
15322
|
-
async function getZeroAgent(
|
|
15796
|
+
async function getZeroAgent(id) {
|
|
15323
15797
|
const config = await getClientConfig();
|
|
15324
|
-
const client = initClient12(
|
|
15325
|
-
const result = await client.get({ params: {
|
|
15798
|
+
const client = initClient12(zeroAgentsByIdContract, config);
|
|
15799
|
+
const result = await client.get({ params: { id } });
|
|
15326
15800
|
if (result.status === 200) return result.body;
|
|
15327
|
-
handleError(result, `Zero agent "${
|
|
15801
|
+
handleError(result, `Zero agent "${id}" not found`);
|
|
15328
15802
|
}
|
|
15329
|
-
async function updateZeroAgent(
|
|
15803
|
+
async function updateZeroAgent(id, body) {
|
|
15330
15804
|
const config = await getClientConfig();
|
|
15331
|
-
const client = initClient12(
|
|
15332
|
-
const result = await client.update({ params: {
|
|
15805
|
+
const client = initClient12(zeroAgentsByIdContract, config);
|
|
15806
|
+
const result = await client.update({ params: { id }, body });
|
|
15333
15807
|
if (result.status === 200) return result.body;
|
|
15334
|
-
handleError(result, `Failed to update zero agent "${
|
|
15808
|
+
handleError(result, `Failed to update zero agent "${id}"`);
|
|
15335
15809
|
}
|
|
15336
|
-
async function deleteZeroAgent(
|
|
15810
|
+
async function deleteZeroAgent(id) {
|
|
15337
15811
|
const config = await getClientConfig();
|
|
15338
|
-
const client = initClient12(
|
|
15339
|
-
const result = await client.delete({ params: {
|
|
15812
|
+
const client = initClient12(zeroAgentsByIdContract, config);
|
|
15813
|
+
const result = await client.delete({ params: { id } });
|
|
15340
15814
|
if (result.status === 204) return;
|
|
15341
|
-
handleError(result, `Zero agent "${
|
|
15815
|
+
handleError(result, `Zero agent "${id}" not found`);
|
|
15342
15816
|
}
|
|
15343
|
-
async function getZeroAgentInstructions(
|
|
15817
|
+
async function getZeroAgentInstructions(id) {
|
|
15344
15818
|
const config = await getClientConfig();
|
|
15345
15819
|
const client = initClient12(zeroAgentInstructionsContract, config);
|
|
15346
|
-
const result = await client.get({ params: {
|
|
15820
|
+
const result = await client.get({ params: { id } });
|
|
15347
15821
|
if (result.status === 200) return result.body;
|
|
15348
|
-
handleError(result, `Failed to get instructions for zero agent "${
|
|
15822
|
+
handleError(result, `Failed to get instructions for zero agent "${id}"`);
|
|
15349
15823
|
}
|
|
15350
|
-
async function updateZeroAgentInstructions(
|
|
15824
|
+
async function updateZeroAgentInstructions(id, content) {
|
|
15351
15825
|
const config = await getClientConfig();
|
|
15352
15826
|
const client = initClient12(zeroAgentInstructionsContract, config);
|
|
15353
15827
|
const result = await client.update({
|
|
15354
|
-
params: {
|
|
15828
|
+
params: { id },
|
|
15355
15829
|
body: { content }
|
|
15356
15830
|
});
|
|
15357
15831
|
if (result.status === 200) return;
|
|
15358
|
-
handleError(result, `Failed to update instructions for zero agent "${
|
|
15832
|
+
handleError(result, `Failed to update instructions for zero agent "${id}"`);
|
|
15359
15833
|
}
|
|
15360
15834
|
|
|
15361
15835
|
// src/lib/api/domains/zero-connectors.ts
|
|
@@ -15495,8 +15969,12 @@ async function disableZeroSchedule(params) {
|
|
|
15495
15969
|
handleError(result, `Failed to disable schedule "${params.name}"`);
|
|
15496
15970
|
}
|
|
15497
15971
|
async function resolveZeroScheduleByAgent(agentName, scheduleName) {
|
|
15972
|
+
const compose = await getComposeByName(agentName);
|
|
15973
|
+
if (!compose) {
|
|
15974
|
+
throw new Error(`Agent not found: ${agentName}`);
|
|
15975
|
+
}
|
|
15498
15976
|
const { schedules } = await listZeroSchedules();
|
|
15499
|
-
const agentSchedules = schedules.filter((s) => s.
|
|
15977
|
+
const agentSchedules = schedules.filter((s) => s.agentId === compose.id);
|
|
15500
15978
|
if (agentSchedules.length === 0) {
|
|
15501
15979
|
throw new Error(`No schedule found for agent "${agentName}"`);
|
|
15502
15980
|
}
|
|
@@ -16600,10 +17078,10 @@ var createCommand = new Command24().name("create").description("Create a new zer
|
|
|
16600
17078
|
});
|
|
16601
17079
|
if (options.instructionsFile) {
|
|
16602
17080
|
const content = readFileSync(options.instructionsFile, "utf-8");
|
|
16603
|
-
await updateZeroAgentInstructions(agent.
|
|
17081
|
+
await updateZeroAgentInstructions(agent.agentId, content);
|
|
16604
17082
|
}
|
|
16605
|
-
console.log(chalk23.green(`\u2713 Zero agent '${agent.
|
|
16606
|
-
console.log(`
|
|
17083
|
+
console.log(chalk23.green(`\u2713 Zero agent '${agent.agentId}' created`));
|
|
17084
|
+
console.log(` Agent ID: ${agent.agentId}`);
|
|
16607
17085
|
console.log(` Connectors: ${agent.connectors.join(", ")}`);
|
|
16608
17086
|
if (agent.displayName) {
|
|
16609
17087
|
console.log(` Display Name: ${agent.displayName}`);
|
|
@@ -16657,10 +17135,10 @@ var viewCommand = new Command26().name("view").description("View a zero agent").
|
|
|
16657
17135
|
withErrorHandler(
|
|
16658
17136
|
async (name, options) => {
|
|
16659
17137
|
const agent = await getZeroAgent(name);
|
|
16660
|
-
console.log(chalk25.bold(agent.
|
|
17138
|
+
console.log(chalk25.bold(agent.agentId));
|
|
16661
17139
|
if (agent.displayName) console.log(chalk25.dim(agent.displayName));
|
|
16662
17140
|
console.log();
|
|
16663
|
-
console.log(`
|
|
17141
|
+
console.log(`Agent ID: ${agent.agentId}`);
|
|
16664
17142
|
console.log(`Connectors: ${agent.connectors.join(", ") || "-"}`);
|
|
16665
17143
|
if (agent.description)
|
|
16666
17144
|
console.log(`Description: ${agent.description}`);
|
|
@@ -16694,20 +17172,20 @@ var listCommand5 = new Command27().name("list").alias("ls").description("List al
|
|
|
16694
17172
|
);
|
|
16695
17173
|
return;
|
|
16696
17174
|
}
|
|
16697
|
-
const
|
|
17175
|
+
const idWidth = Math.max(8, ...agents.map((a) => a.agentId.length));
|
|
16698
17176
|
const displayWidth = Math.max(
|
|
16699
17177
|
12,
|
|
16700
17178
|
...agents.map((a) => (a.displayName ?? "").length)
|
|
16701
17179
|
);
|
|
16702
17180
|
const header = [
|
|
16703
|
-
"
|
|
17181
|
+
"AGENT ID".padEnd(idWidth),
|
|
16704
17182
|
"DISPLAY NAME".padEnd(displayWidth),
|
|
16705
17183
|
"CONNECTORS"
|
|
16706
17184
|
].join(" ");
|
|
16707
17185
|
console.log(chalk26.dim(header));
|
|
16708
17186
|
for (const agent of agents) {
|
|
16709
17187
|
const row = [
|
|
16710
|
-
agent.
|
|
17188
|
+
agent.agentId.padEnd(idWidth),
|
|
16711
17189
|
(agent.displayName ?? "-").padEnd(displayWidth),
|
|
16712
17190
|
agent.connectors.join(", ") || "-"
|
|
16713
17191
|
].join(" ");
|
|
@@ -17786,10 +18264,10 @@ async function gatherTiming(frequency, options, defaults) {
|
|
|
17786
18264
|
if (!time) return null;
|
|
17787
18265
|
return { day, time, atTime: void 0, intervalSeconds: void 0 };
|
|
17788
18266
|
}
|
|
17789
|
-
async function findExistingSchedule(
|
|
18267
|
+
async function findExistingSchedule(agentId, scheduleName) {
|
|
17790
18268
|
const { schedules } = await listZeroSchedules();
|
|
17791
18269
|
return schedules.find(
|
|
17792
|
-
(s) => s.
|
|
18270
|
+
(s) => s.agentId === agentId && s.name === scheduleName
|
|
17793
18271
|
);
|
|
17794
18272
|
}
|
|
17795
18273
|
async function buildAndDeploy(params) {
|
|
@@ -17910,11 +18388,14 @@ async function handleScheduleEnabling(params) {
|
|
|
17910
18388
|
}
|
|
17911
18389
|
var setupCommand2 = new Command36().name("setup").description("Create or edit a schedule for a zero agent").argument("<agent-name>", "Agent name to configure schedule for").option("-n, --name <schedule-name>", 'Schedule name (default: "default")').option("-f, --frequency <type>", "Frequency: daily|weekly|monthly|once|loop").option("-t, --time <HH:MM>", "Time to run (24-hour format)").option("-d, --day <day>", "Day of week (mon-sun) or day of month (1-31)").option("-i, --interval <seconds>", "Interval in seconds for loop mode").option("-z, --timezone <tz>", "IANA timezone").option("-p, --prompt <text>", "Prompt to run").option("--artifact-name <name>", "Artifact name", "artifact").option("-e, --enable", "Enable schedule immediately after creation").option("--notify-email", "Enable email notifications (default: true)").option("--no-notify-email", "Disable email notifications").option("--notify-slack", "Enable Slack notifications (default: true)").option("--no-notify-slack", "Disable Slack notifications").action(
|
|
17912
18390
|
withErrorHandler(async (agentName, options) => {
|
|
17913
|
-
const
|
|
17914
|
-
|
|
18391
|
+
const compose = await getComposeByName(agentName);
|
|
18392
|
+
if (!compose) {
|
|
18393
|
+
throw new Error(`Agent not found: ${agentName}`);
|
|
18394
|
+
}
|
|
18395
|
+
const agentId = compose.id;
|
|
17915
18396
|
const scheduleName = options.name || "default";
|
|
17916
18397
|
const existingSchedule = await findExistingSchedule(
|
|
17917
|
-
|
|
18398
|
+
agentId,
|
|
17918
18399
|
scheduleName
|
|
17919
18400
|
);
|
|
17920
18401
|
console.log(
|
|
@@ -18000,7 +18481,7 @@ var listCommand7 = new Command37().name("list").alias("ls").description("List al
|
|
|
18000
18481
|
}
|
|
18001
18482
|
const agentWidth = Math.max(
|
|
18002
18483
|
5,
|
|
18003
|
-
...result.schedules.map((s) => s.
|
|
18484
|
+
...result.schedules.map((s) => s.agentId.length)
|
|
18004
18485
|
);
|
|
18005
18486
|
const scheduleWidth = Math.max(
|
|
18006
18487
|
8,
|
|
@@ -18025,7 +18506,7 @@ var listCommand7 = new Command37().name("list").alias("ls").description("List al
|
|
|
18025
18506
|
const status = schedule.enabled ? chalk35.green("enabled") : chalk35.yellow("disabled");
|
|
18026
18507
|
const nextRun = schedule.enabled ? formatRelativeTime(schedule.nextRunAt) : "-";
|
|
18027
18508
|
const row = [
|
|
18028
|
-
schedule.
|
|
18509
|
+
schedule.agentId.padEnd(agentWidth),
|
|
18029
18510
|
schedule.name.padEnd(scheduleWidth),
|
|
18030
18511
|
trigger.padEnd(triggerWidth),
|
|
18031
18512
|
status.padEnd(8 + (schedule.enabled ? 0 : 2)),
|
|
@@ -18060,7 +18541,7 @@ function printRunConfiguration(schedule) {
|
|
|
18060
18541
|
const statusText = schedule.enabled ? chalk36.green("enabled") : chalk36.yellow("disabled");
|
|
18061
18542
|
console.log(`${"Status:".padEnd(16)}${statusText}`);
|
|
18062
18543
|
console.log(
|
|
18063
|
-
`${"Agent:".padEnd(16)}${schedule.
|
|
18544
|
+
`${"Agent:".padEnd(16)}${schedule.agentId} ${chalk36.dim(`(${schedule.orgSlug})`)}`
|
|
18064
18545
|
);
|
|
18065
18546
|
const promptPreview = schedule.prompt.length > 60 ? schedule.prompt.slice(0, 57) + "..." : schedule.prompt;
|
|
18066
18547
|
console.log(`${"Prompt:".padEnd(16)}${chalk36.dim(promptPreview)}`);
|
|
@@ -18506,4 +18987,4 @@ export {
|
|
|
18506
18987
|
zeroSecretCommand,
|
|
18507
18988
|
zeroVariableCommand
|
|
18508
18989
|
};
|
|
18509
|
-
//# sourceMappingURL=chunk-
|
|
18990
|
+
//# sourceMappingURL=chunk-MKJBEFRH.js.map
|