@vm0/cli 9.87.0 → 9.87.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.87.0",
50
+ release: "9.87.1",
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.87.0",
69
+ version: "9.87.1",
70
70
  command: process.argv.slice(2).join(" ")
71
71
  });
72
72
  Sentry.setContext("runtime", {
@@ -476,7 +476,7 @@ var agentDefinitionSchema = z3.object({
476
476
  experimental_runner: z3.object({
477
477
  group: z3.string().regex(
478
478
  /^[a-z0-9-]+\/[a-z0-9-]+$/,
479
- "Runner group must be in org/name format (e.g., acme/production)"
479
+ "Runner group must be in vm0/<name> format (e.g., vm0/production)"
480
480
  )
481
481
  }).optional(),
482
482
  /**
@@ -2819,23 +2819,6 @@ var chatThreadByIdContract = c10.router({
2819
2819
  summary: "Get chat thread detail with messages"
2820
2820
  }
2821
2821
  });
2822
- var chatThreadRunsContract = c10.router({
2823
- addRun: {
2824
- method: "POST",
2825
- path: "/api/zero/chat-threads/:id/runs",
2826
- headers: authHeadersSchema,
2827
- pathParams: z17.object({ id: z17.string() }),
2828
- body: z17.object({
2829
- runId: z17.string().min(1)
2830
- }),
2831
- responses: {
2832
- 204: c10.noBody(),
2833
- 401: apiErrorSchema,
2834
- 404: apiErrorSchema
2835
- },
2836
- summary: "Associate a run to a chat thread"
2837
- }
2838
- });
2839
2822
  var chatMessagesContract = c10.router({
2840
2823
  send: {
2841
2824
  method: "POST",
@@ -3007,7 +2990,7 @@ import { z as z19 } from "zod";
3007
2990
  var c12 = initContract();
3008
2991
  var runnerGroupSchema = z19.string().regex(
3009
2992
  /^[a-z0-9-]+\/[a-z0-9-]+$/,
3010
- "Runner group must be in org/name format (e.g., acme/production)"
2993
+ "Runner group must be in vm0/<name> format (e.g., vm0/production)"
3011
2994
  );
3012
2995
  var jobSchema = z19.object({
3013
2996
  runId: z19.uuid(),
@@ -13456,6 +13439,26 @@ var mercuryFirewall = {
13456
13439
  ]
13457
13440
  };
13458
13441
 
13442
+ // ../../packages/core/src/firewalls/metabase.generated.ts
13443
+ var metabaseFirewall = {
13444
+ name: "metabase",
13445
+ description: "Metabase API",
13446
+ placeholders: {
13447
+ METABASE_TOKEN: "mb_Vm0PlaceHolder00000000000000000000000000000"
13448
+ },
13449
+ apis: [
13450
+ {
13451
+ base: "${{ vars.METABASE_BASE_URL }}",
13452
+ auth: {
13453
+ headers: {
13454
+ "x-api-key": "${{ secrets.METABASE_TOKEN }}"
13455
+ }
13456
+ },
13457
+ permissions: []
13458
+ }
13459
+ ]
13460
+ };
13461
+
13459
13462
  // ../../packages/core/src/firewalls/meta-ads.generated.ts
13460
13463
  var metaAdsFirewall = {
13461
13464
  name: "meta-ads",
@@ -13898,6 +13901,26 @@ var pushinatorFirewall = {
13898
13901
  ]
13899
13902
  };
13900
13903
 
13904
+ // ../../packages/core/src/firewalls/qdrant.generated.ts
13905
+ var qdrantFirewall = {
13906
+ name: "qdrant",
13907
+ description: "Qdrant Vector Database API",
13908
+ placeholders: {
13909
+ QDRANT_TOKEN: "Vm0PlaceHolder0000000000000000000000000000"
13910
+ },
13911
+ apis: [
13912
+ {
13913
+ base: "${{ vars.QDRANT_BASE_URL }}",
13914
+ auth: {
13915
+ headers: {
13916
+ "api-key": "${{ secrets.QDRANT_TOKEN }}"
13917
+ }
13918
+ },
13919
+ permissions: []
13920
+ }
13921
+ ]
13922
+ };
13923
+
13901
13924
  // ../../packages/core/src/firewalls/qiita.generated.ts
13902
13925
  var qiitaFirewall = {
13903
13926
  name: "qiita",
@@ -14018,6 +14041,26 @@ var runwayFirewall = {
14018
14041
  ]
14019
14042
  };
14020
14043
 
14044
+ // ../../packages/core/src/firewalls/salesforce.generated.ts
14045
+ var salesforceFirewall = {
14046
+ name: "salesforce",
14047
+ description: "Salesforce REST API",
14048
+ placeholders: {
14049
+ SALESFORCE_TOKEN: "00D0x000000Vm0P!AQEAQFVm0PlaceHolder0000000000000000000000000000000000000000000000000000000000000000000"
14050
+ },
14051
+ apis: [
14052
+ {
14053
+ base: "https://${{ vars.SALESFORCE_INSTANCE }}.my.salesforce.com",
14054
+ auth: {
14055
+ headers: {
14056
+ Authorization: "Bearer ${{ secrets.SALESFORCE_TOKEN }}"
14057
+ }
14058
+ },
14059
+ permissions: []
14060
+ }
14061
+ ]
14062
+ };
14063
+
14021
14064
  // ../../packages/core/src/firewalls/scrapeninja.generated.ts
14022
14065
  var scrapeninjaFirewall = {
14023
14066
  name: "scrapeninja",
@@ -16296,6 +16339,7 @@ var CONNECTOR_FIREWALLS = {
16296
16339
  make: makeFirewall,
16297
16340
  mailsac: mailsacFirewall,
16298
16341
  mercury: mercuryFirewall,
16342
+ metabase: metabaseFirewall,
16299
16343
  "meta-ads": metaAdsFirewall,
16300
16344
  minimax: minimaxFirewall,
16301
16345
  monday: mondayFirewall,
@@ -16314,12 +16358,14 @@ var CONNECTOR_FIREWALLS = {
16314
16358
  "prisma-postgres": prismaPostgresFirewall,
16315
16359
  productlane: productlaneFirewall,
16316
16360
  pushinator: pushinatorFirewall,
16361
+ qdrant: qdrantFirewall,
16317
16362
  qiita: qiitaFirewall,
16318
16363
  reddit: redditFirewall,
16319
16364
  reportei: reporteiFirewall,
16320
16365
  resend: resendFirewall,
16321
16366
  revenuecat: revenuecatFirewall,
16322
16367
  runway: runwayFirewall,
16368
+ salesforce: salesforceFirewall,
16323
16369
  scrapeninja: scrapeninjaFirewall,
16324
16370
  sentry: sentryFirewall,
16325
16371
  serpapi: serpapiFirewall,
@@ -16526,7 +16572,8 @@ var zeroAgentResponseSchema = z26.object({
16526
16572
  sound: z26.string().nullable(),
16527
16573
  avatarUrl: z26.string().nullable(),
16528
16574
  connectors: z26.array(z26.string()),
16529
- firewallPolicies: firewallPoliciesSchema.nullable()
16575
+ firewallPolicies: firewallPoliciesSchema.nullable(),
16576
+ customSkills: z26.array(z26.string()).default([])
16530
16577
  });
16531
16578
  var zeroAgentRequestSchema = z26.object({
16532
16579
  description: z26.string().optional(),
@@ -16685,6 +16732,111 @@ var zeroAgentInstructionsContract = c17.router({
16685
16732
  summary: "Update zero agent instructions"
16686
16733
  }
16687
16734
  });
16735
+ var zeroAgentCustomSkillNameSchema = z26.string().min(2).max(64).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/);
16736
+ var zeroAgentCustomSkillSchema = z26.object({
16737
+ name: zeroAgentCustomSkillNameSchema,
16738
+ displayName: z26.string().max(256).nullable(),
16739
+ description: z26.string().max(1024).nullable()
16740
+ });
16741
+ var zeroAgentSkillContentRequestSchema = z26.object({
16742
+ content: z26.string()
16743
+ });
16744
+ var zeroAgentSkillContentResponseSchema = z26.object({
16745
+ name: z26.string(),
16746
+ displayName: z26.string().nullable(),
16747
+ description: z26.string().nullable(),
16748
+ content: z26.string().nullable()
16749
+ });
16750
+ var zeroAgentSkillListResponseSchema = z26.array(
16751
+ zeroAgentCustomSkillSchema
16752
+ );
16753
+ var zeroAgentSkillsCollectionContract = c17.router({
16754
+ list: {
16755
+ method: "GET",
16756
+ path: "/api/zero/agents/:id/skills",
16757
+ headers: authHeadersSchema,
16758
+ pathParams: z26.object({ id: z26.string().uuid() }),
16759
+ responses: {
16760
+ 200: zeroAgentSkillListResponseSchema,
16761
+ 401: apiErrorSchema,
16762
+ 403: apiErrorSchema,
16763
+ 404: apiErrorSchema
16764
+ },
16765
+ summary: "List custom skills for agent"
16766
+ },
16767
+ create: {
16768
+ method: "POST",
16769
+ path: "/api/zero/agents/:id/skills",
16770
+ headers: authHeadersSchema,
16771
+ pathParams: z26.object({ id: z26.string().uuid() }),
16772
+ body: zeroAgentSkillContentRequestSchema.extend({
16773
+ name: zeroAgentCustomSkillNameSchema,
16774
+ displayName: z26.string().max(256).optional(),
16775
+ description: z26.string().max(1024).optional()
16776
+ }),
16777
+ responses: {
16778
+ 201: zeroAgentCustomSkillSchema,
16779
+ 400: apiErrorSchema,
16780
+ 401: apiErrorSchema,
16781
+ 403: apiErrorSchema,
16782
+ 404: apiErrorSchema,
16783
+ 409: apiErrorSchema
16784
+ },
16785
+ summary: "Create custom skill for agent"
16786
+ }
16787
+ });
16788
+ var zeroAgentSkillsDetailContract = c17.router({
16789
+ get: {
16790
+ method: "GET",
16791
+ path: "/api/zero/agents/:id/skills/:name",
16792
+ headers: authHeadersSchema,
16793
+ pathParams: z26.object({
16794
+ id: z26.string().uuid(),
16795
+ name: zeroAgentCustomSkillNameSchema
16796
+ }),
16797
+ responses: {
16798
+ 200: zeroAgentSkillContentResponseSchema,
16799
+ 401: apiErrorSchema,
16800
+ 403: apiErrorSchema,
16801
+ 404: apiErrorSchema
16802
+ },
16803
+ summary: "Get custom skill with content"
16804
+ },
16805
+ update: {
16806
+ method: "PUT",
16807
+ path: "/api/zero/agents/:id/skills/:name",
16808
+ headers: authHeadersSchema,
16809
+ pathParams: z26.object({
16810
+ id: z26.string().uuid(),
16811
+ name: zeroAgentCustomSkillNameSchema
16812
+ }),
16813
+ body: zeroAgentSkillContentRequestSchema,
16814
+ responses: {
16815
+ 200: zeroAgentSkillContentResponseSchema,
16816
+ 401: apiErrorSchema,
16817
+ 403: apiErrorSchema,
16818
+ 404: apiErrorSchema
16819
+ },
16820
+ summary: "Update custom skill content"
16821
+ },
16822
+ delete: {
16823
+ method: "DELETE",
16824
+ path: "/api/zero/agents/:id/skills/:name",
16825
+ headers: authHeadersSchema,
16826
+ pathParams: z26.object({
16827
+ id: z26.string().uuid(),
16828
+ name: zeroAgentCustomSkillNameSchema
16829
+ }),
16830
+ body: c17.noBody(),
16831
+ responses: {
16832
+ 204: c17.noBody(),
16833
+ 401: apiErrorSchema,
16834
+ 403: apiErrorSchema,
16835
+ 404: apiErrorSchema
16836
+ },
16837
+ summary: "Delete custom skill"
16838
+ }
16839
+ });
16688
16840
 
16689
16841
  // ../../packages/core/src/contracts/zero-connectors.ts
16690
16842
  import { z as z27 } from "zod";
@@ -17277,13 +17429,11 @@ var scheduleResponseSchema = z31.object({
17277
17429
  appendSystemPrompt: z31.string().nullable(),
17278
17430
  vars: z31.record(z31.string(), z31.string()).nullable(),
17279
17431
  secretNames: z31.array(z31.string()).nullable(),
17280
- artifactName: z31.string().nullable(),
17281
- artifactVersion: z31.string().nullable(),
17282
17432
  volumeVersions: z31.record(z31.string(), z31.string()).nullable(),
17283
17433
  enabled: z31.boolean(),
17284
17434
  notifyEmail: z31.boolean(),
17285
17435
  notifySlack: z31.boolean(),
17286
- slackChannelId: z31.string().nullable(),
17436
+ notifySlackChannelId: z31.string().nullable(),
17287
17437
  nextRunAt: z31.string().nullable(),
17288
17438
  lastRunAt: z31.string().nullable(),
17289
17439
  retryStartedAt: z31.string().nullable(),
@@ -17307,14 +17457,12 @@ var zeroDeployScheduleRequestSchema = z31.object({
17307
17457
  prompt: z31.string().min(1, "Prompt required"),
17308
17458
  description: z31.string().optional(),
17309
17459
  appendSystemPrompt: z31.string().optional(),
17310
- artifactName: z31.string().optional(),
17311
- artifactVersion: z31.string().optional(),
17312
17460
  volumeVersions: z31.record(z31.string(), z31.string()).optional(),
17313
17461
  agentId: z31.string().uuid("Invalid agent ID"),
17314
17462
  enabled: z31.boolean().optional(),
17315
17463
  notifyEmail: z31.boolean().optional(),
17316
17464
  notifySlack: z31.boolean().optional(),
17317
- slackChannelId: z31.string().nullable().optional()
17465
+ notifySlackChannelId: z31.string().nullable().optional()
17318
17466
  }).refine(
17319
17467
  (data) => {
17320
17468
  const triggers = [
@@ -20426,4 +20574,4 @@ export {
20426
20574
  pollEvents,
20427
20575
  showNextSteps
20428
20576
  };
20429
- //# sourceMappingURL=chunk-JOVCRTRX.js.map
20577
+ //# sourceMappingURL=chunk-QAFCEPXB.js.map