@vm0/cli 9.88.0 → 9.90.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-NM4FYPVK.js → chunk-KEYG4DHY.js} +321 -189
- package/chunk-KEYG4DHY.js.map +1 -0
- package/index.js +10 -10
- package/package.json +1 -1
- package/zero.js +395 -76
- package/zero.js.map +1 -1
- package/chunk-NM4FYPVK.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.90.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.90.0",
|
|
70
70
|
command: process.argv.slice(2).join(" ")
|
|
71
71
|
});
|
|
72
72
|
Sentry.setContext("runtime", {
|
|
@@ -810,6 +810,7 @@ var logEntrySchema = z5.object({
|
|
|
810
810
|
orgSlug: z5.string().nullable(),
|
|
811
811
|
framework: z5.string().nullable(),
|
|
812
812
|
triggerSource: triggerSourceSchema.nullable(),
|
|
813
|
+
triggerAgentName: z5.string().nullable(),
|
|
813
814
|
scheduleId: z5.string().nullable(),
|
|
814
815
|
status: logStatusSchema,
|
|
815
816
|
createdAt: z5.string(),
|
|
@@ -837,7 +838,9 @@ var logDetailSchema = z5.object({
|
|
|
837
838
|
displayName: z5.string().nullable(),
|
|
838
839
|
framework: z5.string().nullable(),
|
|
839
840
|
modelProvider: z5.string().nullable(),
|
|
841
|
+
selectedModel: z5.string().nullable(),
|
|
840
842
|
triggerSource: triggerSourceSchema.nullable(),
|
|
843
|
+
triggerAgentName: z5.string().nullable(),
|
|
841
844
|
scheduleId: z5.string().nullable(),
|
|
842
845
|
status: logStatusSchema,
|
|
843
846
|
prompt: z5.string(),
|
|
@@ -3226,10 +3229,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3226
3229
|
oauth: {
|
|
3227
3230
|
authorizationUrl: "https://app.ahrefs.com/api/auth",
|
|
3228
3231
|
tokenUrl: "https://app.ahrefs.com/api/token",
|
|
3229
|
-
scopes: ["api"]
|
|
3230
|
-
environmentMapping: {
|
|
3231
|
-
AHREFS_TOKEN: "$secrets.AHREFS_ACCESS_TOKEN"
|
|
3232
|
-
}
|
|
3232
|
+
scopes: ["api"]
|
|
3233
3233
|
}
|
|
3234
3234
|
},
|
|
3235
3235
|
agentmail: {
|
|
@@ -3287,10 +3287,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3287
3287
|
"schema.bases:read",
|
|
3288
3288
|
"schema.bases:write",
|
|
3289
3289
|
"user.email:read"
|
|
3290
|
-
]
|
|
3291
|
-
environmentMapping: {
|
|
3292
|
-
AIRTABLE_TOKEN: "$secrets.AIRTABLE_ACCESS_TOKEN"
|
|
3293
|
-
}
|
|
3290
|
+
]
|
|
3294
3291
|
}
|
|
3295
3292
|
},
|
|
3296
3293
|
github: {
|
|
@@ -3316,11 +3313,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3316
3313
|
oauth: {
|
|
3317
3314
|
authorizationUrl: "https://github.com/login/oauth/authorize",
|
|
3318
3315
|
tokenUrl: "https://github.com/login/oauth/access_token",
|
|
3319
|
-
scopes: ["repo", "project"]
|
|
3320
|
-
environmentMapping: {
|
|
3321
|
-
GH_TOKEN: "$secrets.GITHUB_ACCESS_TOKEN",
|
|
3322
|
-
GITHUB_TOKEN: "$secrets.GITHUB_ACCESS_TOKEN"
|
|
3323
|
-
}
|
|
3316
|
+
scopes: ["repo", "project"]
|
|
3324
3317
|
}
|
|
3325
3318
|
},
|
|
3326
3319
|
notion: {
|
|
@@ -3349,10 +3342,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3349
3342
|
oauth: {
|
|
3350
3343
|
authorizationUrl: "https://api.notion.com/v1/oauth/authorize",
|
|
3351
3344
|
tokenUrl: "https://api.notion.com/v1/oauth/token",
|
|
3352
|
-
scopes: []
|
|
3353
|
-
environmentMapping: {
|
|
3354
|
-
NOTION_TOKEN: "$secrets.NOTION_ACCESS_TOKEN"
|
|
3355
|
-
}
|
|
3345
|
+
scopes: []
|
|
3356
3346
|
}
|
|
3357
3347
|
},
|
|
3358
3348
|
gmail: {
|
|
@@ -3381,10 +3371,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3381
3371
|
oauth: {
|
|
3382
3372
|
authorizationUrl: "https://accounts.google.com/o/oauth2/v2/auth",
|
|
3383
3373
|
tokenUrl: "https://oauth2.googleapis.com/token",
|
|
3384
|
-
scopes: ["https://www.googleapis.com/auth/gmail.modify"]
|
|
3385
|
-
environmentMapping: {
|
|
3386
|
-
GMAIL_TOKEN: "$secrets.GMAIL_ACCESS_TOKEN"
|
|
3387
|
-
}
|
|
3374
|
+
scopes: ["https://www.googleapis.com/auth/gmail.modify"]
|
|
3388
3375
|
}
|
|
3389
3376
|
},
|
|
3390
3377
|
"google-sheets": {
|
|
@@ -3416,10 +3403,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3416
3403
|
scopes: [
|
|
3417
3404
|
"https://www.googleapis.com/auth/spreadsheets",
|
|
3418
3405
|
"https://www.googleapis.com/auth/userinfo.email"
|
|
3419
|
-
]
|
|
3420
|
-
environmentMapping: {
|
|
3421
|
-
GOOGLE_SHEETS_TOKEN: "$secrets.GOOGLE_SHEETS_ACCESS_TOKEN"
|
|
3422
|
-
}
|
|
3406
|
+
]
|
|
3423
3407
|
}
|
|
3424
3408
|
},
|
|
3425
3409
|
"google-docs": {
|
|
@@ -3451,10 +3435,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3451
3435
|
scopes: [
|
|
3452
3436
|
"https://www.googleapis.com/auth/documents",
|
|
3453
3437
|
"https://www.googleapis.com/auth/userinfo.email"
|
|
3454
|
-
]
|
|
3455
|
-
environmentMapping: {
|
|
3456
|
-
GOOGLE_DOCS_TOKEN: "$secrets.GOOGLE_DOCS_ACCESS_TOKEN"
|
|
3457
|
-
}
|
|
3438
|
+
]
|
|
3458
3439
|
}
|
|
3459
3440
|
},
|
|
3460
3441
|
"google-drive": {
|
|
@@ -3486,10 +3467,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3486
3467
|
scopes: [
|
|
3487
3468
|
"https://www.googleapis.com/auth/drive",
|
|
3488
3469
|
"https://www.googleapis.com/auth/userinfo.email"
|
|
3489
|
-
]
|
|
3490
|
-
environmentMapping: {
|
|
3491
|
-
GOOGLE_DRIVE_TOKEN: "$secrets.GOOGLE_DRIVE_ACCESS_TOKEN"
|
|
3492
|
-
}
|
|
3470
|
+
]
|
|
3493
3471
|
}
|
|
3494
3472
|
},
|
|
3495
3473
|
"google-calendar": {
|
|
@@ -3521,10 +3499,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3521
3499
|
scopes: [
|
|
3522
3500
|
"https://www.googleapis.com/auth/calendar",
|
|
3523
3501
|
"https://www.googleapis.com/auth/userinfo.email"
|
|
3524
|
-
]
|
|
3525
|
-
environmentMapping: {
|
|
3526
|
-
GOOGLE_CALENDAR_TOKEN: "$secrets.GOOGLE_CALENDAR_ACCESS_TOKEN"
|
|
3527
|
-
}
|
|
3502
|
+
]
|
|
3528
3503
|
}
|
|
3529
3504
|
},
|
|
3530
3505
|
close: {
|
|
@@ -3554,10 +3529,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3554
3529
|
oauth: {
|
|
3555
3530
|
authorizationUrl: "https://app.close.com/oauth2/authorize/",
|
|
3556
3531
|
tokenUrl: "https://api.close.com/oauth2/token/",
|
|
3557
|
-
scopes: ["all.full_access", "offline_access"]
|
|
3558
|
-
environmentMapping: {
|
|
3559
|
-
CLOSE_TOKEN: "$secrets.CLOSE_ACCESS_TOKEN"
|
|
3560
|
-
}
|
|
3532
|
+
scopes: ["all.full_access", "offline_access"]
|
|
3561
3533
|
}
|
|
3562
3534
|
},
|
|
3563
3535
|
"hugging-face": {
|
|
@@ -3660,10 +3632,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3660
3632
|
"crm.lists.read",
|
|
3661
3633
|
"crm.schemas.contacts.read",
|
|
3662
3634
|
"settings.users.read"
|
|
3663
|
-
]
|
|
3664
|
-
environmentMapping: {
|
|
3665
|
-
HUBSPOT_TOKEN: "$secrets.HUBSPOT_ACCESS_TOKEN"
|
|
3666
|
-
}
|
|
3635
|
+
]
|
|
3667
3636
|
}
|
|
3668
3637
|
},
|
|
3669
3638
|
computer: {
|
|
@@ -3694,11 +3663,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3694
3663
|
}
|
|
3695
3664
|
}
|
|
3696
3665
|
},
|
|
3697
|
-
defaultAuthMethod: "api"
|
|
3698
|
-
bridgeMapping: {
|
|
3699
|
-
COMPUTER_CONNECTOR_BRIDGE_TOKEN: "$secrets.COMPUTER_CONNECTOR_BRIDGE_TOKEN",
|
|
3700
|
-
COMPUTER_CONNECTOR_DOMAIN: "$secrets.COMPUTER_CONNECTOR_DOMAIN"
|
|
3701
|
-
}
|
|
3666
|
+
defaultAuthMethod: "api"
|
|
3702
3667
|
},
|
|
3703
3668
|
slack: {
|
|
3704
3669
|
label: "Slack",
|
|
@@ -3763,10 +3728,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3763
3728
|
"team:read",
|
|
3764
3729
|
// Custom emoji (low priority)
|
|
3765
3730
|
"emoji:read"
|
|
3766
|
-
]
|
|
3767
|
-
environmentMapping: {
|
|
3768
|
-
SLACK_TOKEN: "$secrets.SLACK_ACCESS_TOKEN"
|
|
3769
|
-
}
|
|
3731
|
+
]
|
|
3770
3732
|
}
|
|
3771
3733
|
},
|
|
3772
3734
|
docusign: {
|
|
@@ -3796,10 +3758,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3796
3758
|
oauth: {
|
|
3797
3759
|
authorizationUrl: "https://account.docusign.com/oauth/auth",
|
|
3798
3760
|
tokenUrl: "https://account.docusign.com/oauth/token",
|
|
3799
|
-
scopes: ["signature", "extended", "openid"]
|
|
3800
|
-
environmentMapping: {
|
|
3801
|
-
DOCUSIGN_TOKEN: "$secrets.DOCUSIGN_ACCESS_TOKEN"
|
|
3802
|
-
}
|
|
3761
|
+
scopes: ["signature", "extended", "openid"]
|
|
3803
3762
|
}
|
|
3804
3763
|
},
|
|
3805
3764
|
dropbox: {
|
|
@@ -3843,10 +3802,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3843
3802
|
"account_info.read",
|
|
3844
3803
|
"files.metadata.read",
|
|
3845
3804
|
"files.content.read"
|
|
3846
|
-
]
|
|
3847
|
-
environmentMapping: {
|
|
3848
|
-
DROPBOX_TOKEN: "$secrets.DROPBOX_ACCESS_TOKEN"
|
|
3849
|
-
}
|
|
3805
|
+
]
|
|
3850
3806
|
}
|
|
3851
3807
|
},
|
|
3852
3808
|
linear: {
|
|
@@ -3881,10 +3837,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
3881
3837
|
"issues:create",
|
|
3882
3838
|
"comments:create",
|
|
3883
3839
|
"timeSchedule:write"
|
|
3884
|
-
]
|
|
3885
|
-
environmentMapping: {
|
|
3886
|
-
LINEAR_TOKEN: "$secrets.LINEAR_ACCESS_TOKEN"
|
|
3887
|
-
}
|
|
3840
|
+
]
|
|
3888
3841
|
}
|
|
3889
3842
|
},
|
|
3890
3843
|
intercom: {
|
|
@@ -4158,10 +4111,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4158
4111
|
"time-off:write",
|
|
4159
4112
|
"invoice-adjustments:read",
|
|
4160
4113
|
"invoice-adjustments:write"
|
|
4161
|
-
]
|
|
4162
|
-
environmentMapping: {
|
|
4163
|
-
DEEL_TOKEN: "$secrets.DEEL_ACCESS_TOKEN"
|
|
4164
|
-
}
|
|
4114
|
+
]
|
|
4165
4115
|
}
|
|
4166
4116
|
},
|
|
4167
4117
|
deepseek: {
|
|
@@ -4367,10 +4317,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4367
4317
|
"file_comments:write",
|
|
4368
4318
|
"library_assets:read",
|
|
4369
4319
|
"library_content:read"
|
|
4370
|
-
]
|
|
4371
|
-
environmentMapping: {
|
|
4372
|
-
FIGMA_TOKEN: "$secrets.FIGMA_ACCESS_TOKEN"
|
|
4373
|
-
}
|
|
4320
|
+
]
|
|
4374
4321
|
}
|
|
4375
4322
|
},
|
|
4376
4323
|
mercury: {
|
|
@@ -4411,10 +4358,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4411
4358
|
oauth: {
|
|
4412
4359
|
authorizationUrl: "https://oauth2.mercury.com/oauth2/auth",
|
|
4413
4360
|
tokenUrl: "https://oauth2.mercury.com/oauth2/token",
|
|
4414
|
-
scopes: ["offline_access"]
|
|
4415
|
-
environmentMapping: {
|
|
4416
|
-
MERCURY_TOKEN: "$secrets.MERCURY_ACCESS_TOKEN"
|
|
4417
|
-
}
|
|
4361
|
+
scopes: ["offline_access"]
|
|
4418
4362
|
}
|
|
4419
4363
|
},
|
|
4420
4364
|
minimax: {
|
|
@@ -4532,10 +4476,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4532
4476
|
oauth: {
|
|
4533
4477
|
authorizationUrl: "https://www.reddit.com/api/v1/authorize",
|
|
4534
4478
|
tokenUrl: "https://www.reddit.com/api/v1/access_token",
|
|
4535
|
-
scopes: ["identity", "read"]
|
|
4536
|
-
environmentMapping: {
|
|
4537
|
-
REDDIT_TOKEN: "$secrets.REDDIT_ACCESS_TOKEN"
|
|
4538
|
-
}
|
|
4479
|
+
scopes: ["identity", "read"]
|
|
4539
4480
|
}
|
|
4540
4481
|
},
|
|
4541
4482
|
strava: {
|
|
@@ -4569,10 +4510,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4569
4510
|
"profile:read_all",
|
|
4570
4511
|
"activity:read_all",
|
|
4571
4512
|
"activity:write"
|
|
4572
|
-
]
|
|
4573
|
-
environmentMapping: {
|
|
4574
|
-
STRAVA_TOKEN: "$secrets.STRAVA_ACCESS_TOKEN"
|
|
4575
|
-
}
|
|
4513
|
+
]
|
|
4576
4514
|
}
|
|
4577
4515
|
},
|
|
4578
4516
|
x: {
|
|
@@ -4647,10 +4585,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4647
4585
|
// Send and manage Direct Messages for you.
|
|
4648
4586
|
"media.write"
|
|
4649
4587
|
// Upload media.
|
|
4650
|
-
]
|
|
4651
|
-
environmentMapping: {
|
|
4652
|
-
X_TOKEN: "$secrets.X_ACCESS_TOKEN"
|
|
4653
|
-
}
|
|
4588
|
+
]
|
|
4654
4589
|
}
|
|
4655
4590
|
},
|
|
4656
4591
|
neon: {
|
|
@@ -4697,10 +4632,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4697
4632
|
"urn:neoncloud:projects:create",
|
|
4698
4633
|
"urn:neoncloud:projects:update",
|
|
4699
4634
|
"urn:neoncloud:projects:delete"
|
|
4700
|
-
]
|
|
4701
|
-
environmentMapping: {
|
|
4702
|
-
NEON_TOKEN: "$secrets.NEON_ACCESS_TOKEN"
|
|
4703
|
-
}
|
|
4635
|
+
]
|
|
4704
4636
|
}
|
|
4705
4637
|
},
|
|
4706
4638
|
gamma: {
|
|
@@ -4751,10 +4683,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4751
4683
|
oauth: {
|
|
4752
4684
|
authorizationUrl: "https://connect.garmin.com/oauth2Confirm",
|
|
4753
4685
|
tokenUrl: "https://diauth.garmin.com/di-oauth2-service/oauth/token",
|
|
4754
|
-
scopes: []
|
|
4755
|
-
environmentMapping: {
|
|
4756
|
-
GARMIN_CONNECT_TOKEN: "$secrets.GARMIN_CONNECT_ACCESS_TOKEN"
|
|
4757
|
-
}
|
|
4686
|
+
scopes: []
|
|
4758
4687
|
}
|
|
4759
4688
|
},
|
|
4760
4689
|
vercel: {
|
|
@@ -4778,10 +4707,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4778
4707
|
defaultAuthMethod: "oauth",
|
|
4779
4708
|
oauth: {
|
|
4780
4709
|
tokenUrl: "https://api.vercel.com/v2/oauth/access_token",
|
|
4781
|
-
scopes: []
|
|
4782
|
-
environmentMapping: {
|
|
4783
|
-
VERCEL_TOKEN: "$secrets.VERCEL_ACCESS_TOKEN"
|
|
4784
|
-
}
|
|
4710
|
+
scopes: []
|
|
4785
4711
|
}
|
|
4786
4712
|
},
|
|
4787
4713
|
sentry: {
|
|
@@ -4817,10 +4743,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4817
4743
|
"member:read",
|
|
4818
4744
|
"event:read",
|
|
4819
4745
|
"event:write"
|
|
4820
|
-
]
|
|
4821
|
-
environmentMapping: {
|
|
4822
|
-
SENTRY_TOKEN: "$secrets.SENTRY_ACCESS_TOKEN"
|
|
4823
|
-
}
|
|
4746
|
+
]
|
|
4824
4747
|
}
|
|
4825
4748
|
},
|
|
4826
4749
|
posthog: {
|
|
@@ -4885,10 +4808,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4885
4808
|
"survey:read",
|
|
4886
4809
|
"survey:write",
|
|
4887
4810
|
"error_tracking:read"
|
|
4888
|
-
]
|
|
4889
|
-
environmentMapping: {
|
|
4890
|
-
POSTHOG_TOKEN: "$secrets.POSTHOG_ACCESS_TOKEN"
|
|
4891
|
-
}
|
|
4811
|
+
]
|
|
4892
4812
|
}
|
|
4893
4813
|
},
|
|
4894
4814
|
productlane: {
|
|
@@ -4913,6 +4833,9 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4913
4833
|
},
|
|
4914
4834
|
"intervals-icu": {
|
|
4915
4835
|
label: "Intervals.icu",
|
|
4836
|
+
environmentMapping: {
|
|
4837
|
+
INTERVALS_ICU_TOKEN: "$secrets.INTERVALS_ICU_ACCESS_TOKEN"
|
|
4838
|
+
},
|
|
4916
4839
|
helpText: "Connect your Intervals.icu account to access training, activity, wellness, and calendar data",
|
|
4917
4840
|
authMethods: {
|
|
4918
4841
|
oauth: {
|
|
@@ -4930,10 +4853,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4930
4853
|
oauth: {
|
|
4931
4854
|
authorizationUrl: "https://intervals.icu/oauth/authorize",
|
|
4932
4855
|
tokenUrl: "https://intervals.icu/api/oauth/token",
|
|
4933
|
-
scopes: ["ACTIVITY", "WELLNESS", "CALENDAR", "SETTINGS", "LIBRARY"]
|
|
4934
|
-
environmentMapping: {
|
|
4935
|
-
INTERVALS_ICU_TOKEN: "$secrets.INTERVALS_ICU_ACCESS_TOKEN"
|
|
4936
|
-
}
|
|
4856
|
+
scopes: ["ACTIVITY", "WELLNESS", "CALENDAR", "SETTINGS", "LIBRARY"]
|
|
4937
4857
|
}
|
|
4938
4858
|
},
|
|
4939
4859
|
monday: {
|
|
@@ -4977,10 +4897,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
4977
4897
|
"assets:read",
|
|
4978
4898
|
"tags:read",
|
|
4979
4899
|
"teams:read"
|
|
4980
|
-
]
|
|
4981
|
-
environmentMapping: {
|
|
4982
|
-
MONDAY_TOKEN: "$secrets.MONDAY_ACCESS_TOKEN"
|
|
4983
|
-
}
|
|
4900
|
+
]
|
|
4984
4901
|
}
|
|
4985
4902
|
},
|
|
4986
4903
|
calendly: {
|
|
@@ -5044,10 +4961,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5044
4961
|
"folder:read",
|
|
5045
4962
|
"folder:write",
|
|
5046
4963
|
"profile:read"
|
|
5047
|
-
]
|
|
5048
|
-
environmentMapping: {
|
|
5049
|
-
CANVA_TOKEN: "$secrets.CANVA_ACCESS_TOKEN"
|
|
5050
|
-
}
|
|
4964
|
+
]
|
|
5051
4965
|
}
|
|
5052
4966
|
},
|
|
5053
4967
|
"cal-com": {
|
|
@@ -5120,10 +5034,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5120
5034
|
"files",
|
|
5121
5035
|
"assets",
|
|
5122
5036
|
"projects"
|
|
5123
|
-
]
|
|
5124
|
-
environmentMapping: {
|
|
5125
|
-
XERO_TOKEN: "$secrets.XERO_ACCESS_TOKEN"
|
|
5126
|
-
}
|
|
5037
|
+
]
|
|
5127
5038
|
}
|
|
5128
5039
|
},
|
|
5129
5040
|
supabase: {
|
|
@@ -5176,10 +5087,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5176
5087
|
"analytics:read",
|
|
5177
5088
|
"environment:read",
|
|
5178
5089
|
"domains:read"
|
|
5179
|
-
]
|
|
5180
|
-
environmentMapping: {
|
|
5181
|
-
SUPABASE_TOKEN: "$secrets.SUPABASE_ACCESS_TOKEN"
|
|
5182
|
-
}
|
|
5090
|
+
]
|
|
5183
5091
|
}
|
|
5184
5092
|
},
|
|
5185
5093
|
todoist: {
|
|
@@ -5204,10 +5112,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5204
5112
|
oauth: {
|
|
5205
5113
|
authorizationUrl: "https://todoist.com/oauth/authorize",
|
|
5206
5114
|
tokenUrl: "https://todoist.com/oauth/access_token",
|
|
5207
|
-
scopes: ["data:read_write", "data:delete", "project:delete"]
|
|
5208
|
-
environmentMapping: {
|
|
5209
|
-
TODOIST_TOKEN: "$secrets.TODOIST_ACCESS_TOKEN"
|
|
5210
|
-
}
|
|
5115
|
+
scopes: ["data:read_write", "data:delete", "project:delete"]
|
|
5211
5116
|
}
|
|
5212
5117
|
},
|
|
5213
5118
|
webflow: {
|
|
@@ -5259,10 +5164,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5259
5164
|
"workspace:read",
|
|
5260
5165
|
"custom_code:read",
|
|
5261
5166
|
"custom_code:write"
|
|
5262
|
-
]
|
|
5263
|
-
environmentMapping: {
|
|
5264
|
-
WEBFLOW_TOKEN: "$secrets.WEBFLOW_ACCESS_TOKEN"
|
|
5265
|
-
}
|
|
5167
|
+
]
|
|
5266
5168
|
}
|
|
5267
5169
|
},
|
|
5268
5170
|
wrike: {
|
|
@@ -5311,10 +5213,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5311
5213
|
oauth: {
|
|
5312
5214
|
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
|
|
5313
5215
|
tokenUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/token",
|
|
5314
|
-
scopes: ["Mail.ReadWrite", "Mail.Send", "User.Read", "offline_access"]
|
|
5315
|
-
environmentMapping: {
|
|
5316
|
-
OUTLOOK_MAIL_TOKEN: "$secrets.OUTLOOK_MAIL_ACCESS_TOKEN"
|
|
5317
|
-
}
|
|
5216
|
+
scopes: ["Mail.ReadWrite", "Mail.Send", "User.Read", "offline_access"]
|
|
5318
5217
|
}
|
|
5319
5218
|
},
|
|
5320
5219
|
"outlook-calendar": {
|
|
@@ -5344,10 +5243,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5344
5243
|
oauth: {
|
|
5345
5244
|
authorizationUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
|
|
5346
5245
|
tokenUrl: "https://login.microsoftonline.com/common/oauth2/v2.0/token",
|
|
5347
|
-
scopes: ["Calendars.ReadWrite", "User.Read", "offline_access"]
|
|
5348
|
-
environmentMapping: {
|
|
5349
|
-
OUTLOOK_CALENDAR_TOKEN: "$secrets.OUTLOOK_CALENDAR_ACCESS_TOKEN"
|
|
5350
|
-
}
|
|
5246
|
+
scopes: ["Calendars.ReadWrite", "User.Read", "offline_access"]
|
|
5351
5247
|
}
|
|
5352
5248
|
},
|
|
5353
5249
|
asana: {
|
|
@@ -5376,10 +5272,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5376
5272
|
oauth: {
|
|
5377
5273
|
authorizationUrl: "https://app.asana.com/-/oauth_authorize",
|
|
5378
5274
|
tokenUrl: "https://app.asana.com/-/oauth_token",
|
|
5379
|
-
scopes: []
|
|
5380
|
-
environmentMapping: {
|
|
5381
|
-
ASANA_TOKEN: "$secrets.ASANA_ACCESS_TOKEN"
|
|
5382
|
-
}
|
|
5275
|
+
scopes: []
|
|
5383
5276
|
}
|
|
5384
5277
|
},
|
|
5385
5278
|
atlassian: {
|
|
@@ -5442,10 +5335,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5442
5335
|
oauth: {
|
|
5443
5336
|
authorizationUrl: "https://www.facebook.com/v22.0/dialog/oauth",
|
|
5444
5337
|
tokenUrl: "https://graph.facebook.com/v22.0/oauth/access_token",
|
|
5445
|
-
scopes: ["ads_management", "ads_read", "business_management"]
|
|
5446
|
-
environmentMapping: {
|
|
5447
|
-
META_ADS_TOKEN: "$secrets.META_ADS_ACCESS_TOKEN"
|
|
5448
|
-
}
|
|
5338
|
+
scopes: ["ads_management", "ads_read", "business_management"]
|
|
5449
5339
|
}
|
|
5450
5340
|
},
|
|
5451
5341
|
stripe: {
|
|
@@ -5475,10 +5365,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5475
5365
|
oauth: {
|
|
5476
5366
|
authorizationUrl: "https://connect.stripe.com/oauth/authorize",
|
|
5477
5367
|
tokenUrl: "https://connect.stripe.com/oauth/token",
|
|
5478
|
-
scopes: ["read_write"]
|
|
5479
|
-
environmentMapping: {
|
|
5480
|
-
STRIPE_TOKEN: "$secrets.STRIPE_ACCESS_TOKEN"
|
|
5481
|
-
}
|
|
5368
|
+
scopes: ["read_write"]
|
|
5482
5369
|
}
|
|
5483
5370
|
},
|
|
5484
5371
|
openai: {
|
|
@@ -5593,11 +5480,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
5593
5480
|
oauth: {
|
|
5594
5481
|
authorizationUrl: "https://login.mailchimp.com/oauth2/authorize",
|
|
5595
5482
|
tokenUrl: "https://login.mailchimp.com/oauth2/token",
|
|
5596
|
-
scopes: []
|
|
5597
|
-
environmentMapping: {
|
|
5598
|
-
MAILCHIMP_TOKEN: "$secrets.MAILCHIMP_ACCESS_TOKEN",
|
|
5599
|
-
MAILCHIMP_DC: "$vars.MAILCHIMP_DC"
|
|
5600
|
-
}
|
|
5483
|
+
scopes: []
|
|
5601
5484
|
}
|
|
5602
5485
|
},
|
|
5603
5486
|
chatwoot: {
|
|
@@ -6584,6 +6467,9 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
6584
6467
|
},
|
|
6585
6468
|
spotify: {
|
|
6586
6469
|
label: "Spotify",
|
|
6470
|
+
environmentMapping: {
|
|
6471
|
+
SPOTIFY_TOKEN: "$secrets.SPOTIFY_ACCESS_TOKEN"
|
|
6472
|
+
},
|
|
6587
6473
|
featureFlag: "spotifyConnector" /* SpotifyConnector */,
|
|
6588
6474
|
helpText: "Connect your Spotify account to manage playlists, control playback, and access music data",
|
|
6589
6475
|
authMethods: {
|
|
@@ -6626,10 +6512,7 @@ var CONNECTOR_TYPES_DEF = {
|
|
|
6626
6512
|
"user-library-read",
|
|
6627
6513
|
"user-read-email",
|
|
6628
6514
|
"user-read-private"
|
|
6629
|
-
]
|
|
6630
|
-
environmentMapping: {
|
|
6631
|
-
SPOTIFY_TOKEN: "$secrets.SPOTIFY_ACCESS_TOKEN"
|
|
6632
|
-
}
|
|
6515
|
+
]
|
|
6633
6516
|
}
|
|
6634
6517
|
},
|
|
6635
6518
|
"slack-webhook": {
|
|
@@ -6725,8 +6608,7 @@ var connectorTypeSchema = z21.enum(
|
|
|
6725
6608
|
Object.keys(CONNECTOR_TYPES_DEF)
|
|
6726
6609
|
);
|
|
6727
6610
|
function getConnectorEnvironmentMapping(type) {
|
|
6728
|
-
|
|
6729
|
-
return config.environmentMapping ?? config.oauth?.environmentMapping ?? config.bridgeMapping ?? {};
|
|
6611
|
+
return CONNECTOR_TYPES[type].environmentMapping;
|
|
6730
6612
|
}
|
|
6731
6613
|
function getConnectorDerivedNames(secretName) {
|
|
6732
6614
|
const allTypes = Object.keys(CONNECTOR_TYPES);
|
|
@@ -16457,10 +16339,70 @@ var EXPANDED_CONNECTOR_FIREWALLS = Object.fromEntries(
|
|
|
16457
16339
|
expandPlaceholders(firewall, type)
|
|
16458
16340
|
])
|
|
16459
16341
|
);
|
|
16342
|
+
function isFirewallConnectorType(type) {
|
|
16343
|
+
return type in CONNECTOR_FIREWALLS;
|
|
16344
|
+
}
|
|
16345
|
+
function getConnectorFirewall(type) {
|
|
16346
|
+
return EXPANDED_CONNECTOR_FIREWALLS[type];
|
|
16347
|
+
}
|
|
16460
16348
|
|
|
16461
16349
|
// ../../packages/core/src/firewall-loader.ts
|
|
16462
16350
|
var MAX_RESPONSE_SIZE = 128 * 1024;
|
|
16463
16351
|
|
|
16352
|
+
// ../../packages/core/src/contracts/firewall-rule-matcher.ts
|
|
16353
|
+
var PARAM_SEG = /^\{([^}]+)\}$/;
|
|
16354
|
+
function matchFirewallPath(path, pattern) {
|
|
16355
|
+
const pathSegs = path.split("/").filter(Boolean);
|
|
16356
|
+
const patternSegs = pattern.split("/").filter(Boolean);
|
|
16357
|
+
const params = {};
|
|
16358
|
+
let pi = 0;
|
|
16359
|
+
for (const seg of patternSegs) {
|
|
16360
|
+
const m = PARAM_SEG.exec(seg);
|
|
16361
|
+
if (m) {
|
|
16362
|
+
const name = m[1];
|
|
16363
|
+
if (name.endsWith("+")) {
|
|
16364
|
+
if (pi >= pathSegs.length) return null;
|
|
16365
|
+
params[name.slice(0, -1)] = pathSegs.slice(pi).join("/");
|
|
16366
|
+
return params;
|
|
16367
|
+
}
|
|
16368
|
+
if (name.endsWith("*")) {
|
|
16369
|
+
params[name.slice(0, -1)] = pathSegs.slice(pi).join("/");
|
|
16370
|
+
return params;
|
|
16371
|
+
}
|
|
16372
|
+
if (pi >= pathSegs.length) return null;
|
|
16373
|
+
params[name] = pathSegs[pi];
|
|
16374
|
+
pi++;
|
|
16375
|
+
} else {
|
|
16376
|
+
if (pi >= pathSegs.length || pathSegs[pi] !== seg) return null;
|
|
16377
|
+
pi++;
|
|
16378
|
+
}
|
|
16379
|
+
}
|
|
16380
|
+
if (pi !== pathSegs.length) return null;
|
|
16381
|
+
return params;
|
|
16382
|
+
}
|
|
16383
|
+
function findMatchingPermissions(method, path, config) {
|
|
16384
|
+
const upperMethod = method.toUpperCase();
|
|
16385
|
+
const matched = /* @__PURE__ */ new Set();
|
|
16386
|
+
for (const api of config.apis) {
|
|
16387
|
+
if (!api.permissions) continue;
|
|
16388
|
+
for (const perm of api.permissions) {
|
|
16389
|
+
if (matched.has(perm.name)) continue;
|
|
16390
|
+
for (const rule of perm.rules) {
|
|
16391
|
+
const spaceIdx = rule.indexOf(" ");
|
|
16392
|
+
if (spaceIdx === -1) continue;
|
|
16393
|
+
const ruleMethod = rule.slice(0, spaceIdx).toUpperCase();
|
|
16394
|
+
const rulePath = rule.slice(spaceIdx + 1);
|
|
16395
|
+
if (ruleMethod !== "ANY" && ruleMethod !== upperMethod) continue;
|
|
16396
|
+
if (matchFirewallPath(path, rulePath) !== null) {
|
|
16397
|
+
matched.add(perm.name);
|
|
16398
|
+
break;
|
|
16399
|
+
}
|
|
16400
|
+
}
|
|
16401
|
+
}
|
|
16402
|
+
}
|
|
16403
|
+
return [...matched];
|
|
16404
|
+
}
|
|
16405
|
+
|
|
16464
16406
|
// ../../packages/core/src/contracts/zero-user-preferences.ts
|
|
16465
16407
|
import { z as z22 } from "zod";
|
|
16466
16408
|
var c14 = initContract();
|
|
@@ -16595,6 +16537,7 @@ var skillsResolveContract = c16.router({
|
|
|
16595
16537
|
// ../../packages/core/src/contracts/zero-agents.ts
|
|
16596
16538
|
import { z as z26 } from "zod";
|
|
16597
16539
|
var c17 = initContract();
|
|
16540
|
+
var zeroAgentCustomSkillNameSchema = z26.string().min(2).max(64).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/);
|
|
16598
16541
|
var zeroAgentResponseSchema = z26.object({
|
|
16599
16542
|
agentId: z26.string(),
|
|
16600
16543
|
description: z26.string().nullable(),
|
|
@@ -16608,7 +16551,8 @@ var zeroAgentRequestSchema = z26.object({
|
|
|
16608
16551
|
description: z26.string().optional(),
|
|
16609
16552
|
displayName: z26.string().optional(),
|
|
16610
16553
|
sound: z26.string().optional(),
|
|
16611
|
-
avatarUrl: z26.string().optional()
|
|
16554
|
+
avatarUrl: z26.string().optional(),
|
|
16555
|
+
customSkills: z26.array(zeroAgentCustomSkillNameSchema).optional()
|
|
16612
16556
|
});
|
|
16613
16557
|
var zeroAgentMetadataRequestSchema = z26.object({
|
|
16614
16558
|
displayName: z26.string().optional(),
|
|
@@ -16760,7 +16704,6 @@ var zeroAgentInstructionsContract = c17.router({
|
|
|
16760
16704
|
summary: "Update zero agent instructions"
|
|
16761
16705
|
}
|
|
16762
16706
|
});
|
|
16763
|
-
var zeroAgentCustomSkillNameSchema = z26.string().min(2).max(64).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/);
|
|
16764
16707
|
var zeroAgentCustomSkillSchema = z26.object({
|
|
16765
16708
|
name: zeroAgentCustomSkillNameSchema,
|
|
16766
16709
|
displayName: z26.string().max(256).nullable(),
|
|
@@ -16865,6 +16808,83 @@ var zeroAgentSkillsDetailContract = c17.router({
|
|
|
16865
16808
|
summary: "Delete custom skill"
|
|
16866
16809
|
}
|
|
16867
16810
|
});
|
|
16811
|
+
var firewallAccessRequestStatusSchema = z26.enum([
|
|
16812
|
+
"pending",
|
|
16813
|
+
"approved",
|
|
16814
|
+
"rejected"
|
|
16815
|
+
]);
|
|
16816
|
+
var firewallAccessRequestResponseSchema = z26.object({
|
|
16817
|
+
id: z26.string().uuid(),
|
|
16818
|
+
agentId: z26.string().uuid(),
|
|
16819
|
+
firewallRef: z26.string(),
|
|
16820
|
+
permission: z26.string(),
|
|
16821
|
+
method: z26.string().nullable(),
|
|
16822
|
+
path: z26.string().nullable(),
|
|
16823
|
+
reason: z26.string().nullable(),
|
|
16824
|
+
status: firewallAccessRequestStatusSchema,
|
|
16825
|
+
requesterUserId: z26.string(),
|
|
16826
|
+
resolvedBy: z26.string().nullable(),
|
|
16827
|
+
resolvedAt: z26.string().nullable(),
|
|
16828
|
+
createdAt: z26.string()
|
|
16829
|
+
});
|
|
16830
|
+
var createFirewallAccessRequestSchema = z26.object({
|
|
16831
|
+
agentId: z26.string().uuid(),
|
|
16832
|
+
firewallRef: z26.string(),
|
|
16833
|
+
permission: z26.string(),
|
|
16834
|
+
method: z26.string().optional(),
|
|
16835
|
+
path: z26.string().optional(),
|
|
16836
|
+
reason: z26.string().optional()
|
|
16837
|
+
});
|
|
16838
|
+
var resolveFirewallAccessRequestSchema = z26.object({
|
|
16839
|
+
requestId: z26.string().uuid(),
|
|
16840
|
+
action: z26.enum(["approve", "reject"])
|
|
16841
|
+
});
|
|
16842
|
+
var firewallAccessRequestsCreateContract = c17.router({
|
|
16843
|
+
create: {
|
|
16844
|
+
method: "POST",
|
|
16845
|
+
path: "/api/zero/firewall-access-requests",
|
|
16846
|
+
headers: authHeadersSchema,
|
|
16847
|
+
body: createFirewallAccessRequestSchema,
|
|
16848
|
+
responses: {
|
|
16849
|
+
201: firewallAccessRequestResponseSchema,
|
|
16850
|
+
400: apiErrorSchema,
|
|
16851
|
+
401: apiErrorSchema,
|
|
16852
|
+
403: apiErrorSchema,
|
|
16853
|
+
404: apiErrorSchema
|
|
16854
|
+
},
|
|
16855
|
+
summary: "Create firewall access request"
|
|
16856
|
+
}
|
|
16857
|
+
});
|
|
16858
|
+
var firewallAccessRequestsListContract = c17.router({
|
|
16859
|
+
list: {
|
|
16860
|
+
method: "GET",
|
|
16861
|
+
path: "/api/zero/firewall-access-requests",
|
|
16862
|
+
headers: authHeadersSchema,
|
|
16863
|
+
responses: {
|
|
16864
|
+
200: z26.array(firewallAccessRequestResponseSchema),
|
|
16865
|
+
400: apiErrorSchema,
|
|
16866
|
+
401: apiErrorSchema,
|
|
16867
|
+
403: apiErrorSchema
|
|
16868
|
+
},
|
|
16869
|
+
summary: "List firewall access requests for an agent"
|
|
16870
|
+
}
|
|
16871
|
+
});
|
|
16872
|
+
var firewallAccessRequestsResolveContract = c17.router({
|
|
16873
|
+
resolve: {
|
|
16874
|
+
method: "PUT",
|
|
16875
|
+
path: "/api/zero/firewall-access-requests",
|
|
16876
|
+
headers: authHeadersSchema,
|
|
16877
|
+
body: resolveFirewallAccessRequestSchema,
|
|
16878
|
+
responses: {
|
|
16879
|
+
200: firewallAccessRequestResponseSchema,
|
|
16880
|
+
400: apiErrorSchema,
|
|
16881
|
+
401: apiErrorSchema,
|
|
16882
|
+
403: apiErrorSchema,
|
|
16883
|
+
404: apiErrorSchema
|
|
16884
|
+
},
|
|
16885
|
+
summary: "Resolve (approve/reject) a firewall access request (admin only)"
|
|
16886
|
+
}
|
|
16887
|
+
});
|
|
16868
16888
|
|
|
16869
16889
|
// ../../packages/core/src/contracts/user-connectors.ts
|
|
16870
16890
|
import { z as z27 } from "zod";
|
|
@@ -17473,6 +17493,61 @@ var zeroRunAgentEventsContract = c25.router({
|
|
|
17473
17493
|
summary: "Get agent events with pagination (zero proxy)"
|
|
17474
17494
|
}
|
|
17475
17495
|
});
|
|
17496
|
+
var runContextVolumeSchema = z31.object({
|
|
17497
|
+
name: z31.string(),
|
|
17498
|
+
mountPath: z31.string(),
|
|
17499
|
+
vasStorageName: z31.string(),
|
|
17500
|
+
vasVersionId: z31.string()
|
|
17501
|
+
});
|
|
17502
|
+
var runContextArtifactSchema = z31.object({
|
|
17503
|
+
mountPath: z31.string(),
|
|
17504
|
+
vasStorageName: z31.string(),
|
|
17505
|
+
vasVersionId: z31.string()
|
|
17506
|
+
});
|
|
17507
|
+
var runContextFirewallSchema = z31.object({
|
|
17508
|
+
name: z31.string(),
|
|
17509
|
+
ref: z31.string(),
|
|
17510
|
+
apis: z31.array(
|
|
17511
|
+
z31.object({
|
|
17512
|
+
base: z31.string(),
|
|
17513
|
+
permissions: z31.array(
|
|
17514
|
+
z31.object({
|
|
17515
|
+
name: z31.string(),
|
|
17516
|
+
description: z31.string().optional(),
|
|
17517
|
+
rules: z31.array(z31.string())
|
|
17518
|
+
})
|
|
17519
|
+
).optional()
|
|
17520
|
+
})
|
|
17521
|
+
)
|
|
17522
|
+
});
|
|
17523
|
+
var runContextResponseSchema = z31.object({
|
|
17524
|
+
prompt: z31.string(),
|
|
17525
|
+
appendSystemPrompt: z31.string().nullable(),
|
|
17526
|
+
secretNames: z31.array(z31.string()),
|
|
17527
|
+
vars: z31.record(z31.string(), z31.string()).nullable(),
|
|
17528
|
+
environment: z31.record(z31.string(), z31.string()),
|
|
17529
|
+
firewalls: z31.array(runContextFirewallSchema),
|
|
17530
|
+
volumes: z31.array(runContextVolumeSchema),
|
|
17531
|
+
artifact: runContextArtifactSchema.nullable(),
|
|
17532
|
+
memory: runContextArtifactSchema.nullable()
|
|
17533
|
+
});
|
|
17534
|
+
var zeroRunContextContract = c25.router({
|
|
17535
|
+
getContext: {
|
|
17536
|
+
method: "GET",
|
|
17537
|
+
path: "/api/zero/runs/:id/context",
|
|
17538
|
+
headers: authHeadersSchema,
|
|
17539
|
+
pathParams: z31.object({
|
|
17540
|
+
id: z31.string().min(1, "Run ID is required")
|
|
17541
|
+
}),
|
|
17542
|
+
responses: {
|
|
17543
|
+
200: runContextResponseSchema,
|
|
17544
|
+
400: apiErrorSchema,
|
|
17545
|
+
401: apiErrorSchema,
|
|
17546
|
+
404: apiErrorSchema
|
|
17547
|
+
},
|
|
17548
|
+
summary: "Get run execution context snapshot for debugging"
|
|
17549
|
+
}
|
|
17550
|
+
});
|
|
17476
17551
|
|
|
17477
17552
|
// ../../packages/core/src/contracts/zero-schedules.ts
|
|
17478
17553
|
import { z as z32 } from "zod";
|
|
@@ -18621,6 +18696,17 @@ var FEATURE_SWITCHES = {
|
|
|
18621
18696
|
["creditAddOn" /* CreditAddOn */]: {
|
|
18622
18697
|
maintainer: "ethan@vm0.ai",
|
|
18623
18698
|
enabled: false
|
|
18699
|
+
},
|
|
18700
|
+
["modelDetail" /* ModelDetail */]: {
|
|
18701
|
+
maintainer: "ethan@vm0.ai",
|
|
18702
|
+
enabled: false,
|
|
18703
|
+
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
18704
|
+
},
|
|
18705
|
+
["runContext" /* RunContext */]: {
|
|
18706
|
+
maintainer: "ethan@vm0.ai",
|
|
18707
|
+
enabled: false,
|
|
18708
|
+
enabledUserHashes: STAFF_USER_HASHES,
|
|
18709
|
+
enabledOrgIdHashes: STAFF_ORG_ID_HASHES
|
|
18624
18710
|
}
|
|
18625
18711
|
};
|
|
18626
18712
|
async function isFeatureEnabled(key, ctx) {
|
|
@@ -19529,11 +19615,49 @@ async function updateZeroAgentInstructions(id, content) {
|
|
|
19529
19615
|
handleError(result, `Failed to update instructions for zero agent "${id}"`);
|
|
19530
19616
|
}
|
|
19531
19617
|
|
|
19532
|
-
// src/lib/api/domains/
|
|
19618
|
+
// src/lib/api/domains/zero-agent-skills.ts
|
|
19533
19619
|
import { initClient as initClient16 } from "@ts-rest/core";
|
|
19620
|
+
async function listAgentSkills(agentId) {
|
|
19621
|
+
const config = await getClientConfig();
|
|
19622
|
+
const client = initClient16(zeroAgentSkillsCollectionContract, config);
|
|
19623
|
+
const result = await client.list({ params: { id: agentId } });
|
|
19624
|
+
if (result.status === 200) return result.body;
|
|
19625
|
+
handleError(result, `Failed to list skills for agent "${agentId}"`);
|
|
19626
|
+
}
|
|
19627
|
+
async function createAgentSkill(agentId, body) {
|
|
19628
|
+
const config = await getClientConfig();
|
|
19629
|
+
const client = initClient16(zeroAgentSkillsCollectionContract, config);
|
|
19630
|
+
const result = await client.create({ params: { id: agentId }, body });
|
|
19631
|
+
if (result.status === 201) return result.body;
|
|
19632
|
+
handleError(result, `Failed to create skill "${body.name}"`);
|
|
19633
|
+
}
|
|
19634
|
+
async function getAgentSkill(agentId, name) {
|
|
19635
|
+
const config = await getClientConfig();
|
|
19636
|
+
const client = initClient16(zeroAgentSkillsDetailContract, config);
|
|
19637
|
+
const result = await client.get({ params: { id: agentId, name } });
|
|
19638
|
+
if (result.status === 200) return result.body;
|
|
19639
|
+
handleError(result, `Skill "${name}" not found`);
|
|
19640
|
+
}
|
|
19641
|
+
async function updateAgentSkill(agentId, name, body) {
|
|
19642
|
+
const config = await getClientConfig();
|
|
19643
|
+
const client = initClient16(zeroAgentSkillsDetailContract, config);
|
|
19644
|
+
const result = await client.update({ params: { id: agentId, name }, body });
|
|
19645
|
+
if (result.status === 200) return result.body;
|
|
19646
|
+
handleError(result, `Failed to update skill "${name}"`);
|
|
19647
|
+
}
|
|
19648
|
+
async function deleteAgentSkill(agentId, name) {
|
|
19649
|
+
const config = await getClientConfig();
|
|
19650
|
+
const client = initClient16(zeroAgentSkillsDetailContract, config);
|
|
19651
|
+
const result = await client.delete({ params: { id: agentId, name } });
|
|
19652
|
+
if (result.status === 204) return;
|
|
19653
|
+
handleError(result, `Skill "${name}" not found`);
|
|
19654
|
+
}
|
|
19655
|
+
|
|
19656
|
+
// src/lib/api/domains/integrations-slack.ts
|
|
19657
|
+
import { initClient as initClient17 } from "@ts-rest/core";
|
|
19534
19658
|
async function sendSlackMessage(body) {
|
|
19535
19659
|
const config = await getClientConfig();
|
|
19536
|
-
const client =
|
|
19660
|
+
const client = initClient17(integrationsSlackMessageContract, config);
|
|
19537
19661
|
const result = await client.sendMessage({ body, headers: {} });
|
|
19538
19662
|
if (result.status === 200) {
|
|
19539
19663
|
return result.body;
|
|
@@ -19542,10 +19666,10 @@ async function sendSlackMessage(body) {
|
|
|
19542
19666
|
}
|
|
19543
19667
|
|
|
19544
19668
|
// src/lib/api/domains/zero-schedules.ts
|
|
19545
|
-
import { initClient as
|
|
19669
|
+
import { initClient as initClient18 } from "@ts-rest/core";
|
|
19546
19670
|
async function deployZeroSchedule(body) {
|
|
19547
19671
|
const config = await getClientConfig();
|
|
19548
|
-
const client =
|
|
19672
|
+
const client = initClient18(zeroSchedulesMainContract, config);
|
|
19549
19673
|
const result = await client.deploy({ body });
|
|
19550
19674
|
if (result.status === 200 || result.status === 201) {
|
|
19551
19675
|
return result.body;
|
|
@@ -19554,7 +19678,7 @@ async function deployZeroSchedule(body) {
|
|
|
19554
19678
|
}
|
|
19555
19679
|
async function listZeroSchedules() {
|
|
19556
19680
|
const config = await getClientConfig();
|
|
19557
|
-
const client =
|
|
19681
|
+
const client = initClient18(zeroSchedulesMainContract, config);
|
|
19558
19682
|
const result = await client.list({ headers: {} });
|
|
19559
19683
|
if (result.status === 200) {
|
|
19560
19684
|
return result.body;
|
|
@@ -19563,7 +19687,7 @@ async function listZeroSchedules() {
|
|
|
19563
19687
|
}
|
|
19564
19688
|
async function deleteZeroSchedule(params) {
|
|
19565
19689
|
const config = await getClientConfig();
|
|
19566
|
-
const client =
|
|
19690
|
+
const client = initClient18(zeroSchedulesByNameContract, config);
|
|
19567
19691
|
const result = await client.delete({
|
|
19568
19692
|
params: { name: params.name },
|
|
19569
19693
|
query: { agentId: params.agentId }
|
|
@@ -19575,7 +19699,7 @@ async function deleteZeroSchedule(params) {
|
|
|
19575
19699
|
}
|
|
19576
19700
|
async function enableZeroSchedule(params) {
|
|
19577
19701
|
const config = await getClientConfig();
|
|
19578
|
-
const client =
|
|
19702
|
+
const client = initClient18(zeroSchedulesEnableContract, config);
|
|
19579
19703
|
const result = await client.enable({
|
|
19580
19704
|
params: { name: params.name },
|
|
19581
19705
|
body: { agentId: params.agentId }
|
|
@@ -19587,7 +19711,7 @@ async function enableZeroSchedule(params) {
|
|
|
19587
19711
|
}
|
|
19588
19712
|
async function disableZeroSchedule(params) {
|
|
19589
19713
|
const config = await getClientConfig();
|
|
19590
|
-
const client =
|
|
19714
|
+
const client = initClient18(zeroSchedulesEnableContract, config);
|
|
19591
19715
|
const result = await client.disable({
|
|
19592
19716
|
params: { name: params.name },
|
|
19593
19717
|
body: { agentId: params.agentId }
|
|
@@ -19627,24 +19751,24 @@ async function resolveZeroScheduleByAgent(agentIdentifier, scheduleName) {
|
|
|
19627
19751
|
}
|
|
19628
19752
|
|
|
19629
19753
|
// src/lib/api/domains/zero-runs.ts
|
|
19630
|
-
import { initClient as
|
|
19754
|
+
import { initClient as initClient19 } from "@ts-rest/core";
|
|
19631
19755
|
async function createZeroRun(body) {
|
|
19632
19756
|
const config = await getClientConfig();
|
|
19633
|
-
const client =
|
|
19757
|
+
const client = initClient19(zeroRunsMainContract, config);
|
|
19634
19758
|
const result = await client.create({ body });
|
|
19635
19759
|
if (result.status === 201) return result.body;
|
|
19636
19760
|
handleError(result, "Failed to create zero run");
|
|
19637
19761
|
}
|
|
19638
19762
|
async function getZeroRun(id) {
|
|
19639
19763
|
const config = await getClientConfig();
|
|
19640
|
-
const client =
|
|
19764
|
+
const client = initClient19(zeroRunsByIdContract, config);
|
|
19641
19765
|
const result = await client.getById({ params: { id } });
|
|
19642
19766
|
if (result.status === 200) return result.body;
|
|
19643
19767
|
handleError(result, `Failed to get zero run "${id}"`);
|
|
19644
19768
|
}
|
|
19645
19769
|
async function getZeroRunAgentEvents(id, options) {
|
|
19646
19770
|
const config = await getClientConfig();
|
|
19647
|
-
const client =
|
|
19771
|
+
const client = initClient19(zeroRunAgentEventsContract, config);
|
|
19648
19772
|
const result = await client.getAgentEvents({
|
|
19649
19773
|
params: { id },
|
|
19650
19774
|
query: {
|
|
@@ -19658,17 +19782,17 @@ async function getZeroRunAgentEvents(id, options) {
|
|
|
19658
19782
|
}
|
|
19659
19783
|
|
|
19660
19784
|
// src/lib/api/domains/zero-ask-user.ts
|
|
19661
|
-
import { initClient as
|
|
19785
|
+
import { initClient as initClient20 } from "@ts-rest/core";
|
|
19662
19786
|
async function postAskUserQuestion(body) {
|
|
19663
19787
|
const config = await getClientConfig();
|
|
19664
|
-
const client =
|
|
19788
|
+
const client = initClient20(zeroAskUserQuestionContract, config);
|
|
19665
19789
|
const result = await client.postQuestion({ body, headers: {} });
|
|
19666
19790
|
if (result.status === 200) return result.body;
|
|
19667
19791
|
handleError(result, "Failed to post question");
|
|
19668
19792
|
}
|
|
19669
19793
|
async function getAskUserAnswer(pendingId) {
|
|
19670
19794
|
const config = await getClientConfig();
|
|
19671
|
-
const client =
|
|
19795
|
+
const client = initClient20(zeroAskUserAnswerContract, config);
|
|
19672
19796
|
const result = await client.getAnswer({
|
|
19673
19797
|
query: { pendingId },
|
|
19674
19798
|
headers: {}
|
|
@@ -20559,6 +20683,9 @@ export {
|
|
|
20559
20683
|
parseGitHubTreeUrl,
|
|
20560
20684
|
parseGitHubUrl,
|
|
20561
20685
|
resolveSkillRef,
|
|
20686
|
+
isFirewallConnectorType,
|
|
20687
|
+
getConnectorFirewall,
|
|
20688
|
+
findMatchingPermissions,
|
|
20562
20689
|
getInstructionsStorageName,
|
|
20563
20690
|
getSkillStorageName,
|
|
20564
20691
|
getInstructionsFilename,
|
|
@@ -20620,6 +20747,11 @@ export {
|
|
|
20620
20747
|
getZeroAgentUserConnectors,
|
|
20621
20748
|
setZeroAgentUserConnectors,
|
|
20622
20749
|
updateZeroAgentInstructions,
|
|
20750
|
+
listAgentSkills,
|
|
20751
|
+
createAgentSkill,
|
|
20752
|
+
getAgentSkill,
|
|
20753
|
+
updateAgentSkill,
|
|
20754
|
+
deleteAgentSkill,
|
|
20623
20755
|
listZeroConnectors,
|
|
20624
20756
|
getZeroConnector,
|
|
20625
20757
|
deleteZeroConnector,
|
|
@@ -20664,4 +20796,4 @@ export {
|
|
|
20664
20796
|
pollEvents,
|
|
20665
20797
|
showNextSteps
|
|
20666
20798
|
};
|
|
20667
|
-
//# sourceMappingURL=chunk-
|
|
20799
|
+
//# sourceMappingURL=chunk-KEYG4DHY.js.map
|