@vm0/cli 9.83.0 → 9.83.2

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.83.0",
50
+ release: "9.83.2",
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.83.0",
69
+ version: "9.83.2",
70
70
  command: process.argv.slice(2).join(" ")
71
71
  });
72
72
  Sentry.setContext("runtime", {
@@ -11522,18 +11522,21 @@ var ANTHROPIC_API_BASE = "https://api.anthropic.com";
11522
11522
  function getFirewallBaseUrl(type) {
11523
11523
  return getEnvironmentMapping(type)?.ANTHROPIC_BASE_URL ?? ANTHROPIC_API_BASE;
11524
11524
  }
11525
- function mpFirewall(type, authHeaders, placeholders) {
11525
+ function mpFirewall(type, authHeader, placeholderValue) {
11526
+ const secretName = MODEL_PROVIDER_TYPES[type].secretName;
11527
+ const secretRef = `\${{ secrets.${secretName} }}`;
11528
+ const headerValue = authHeader.valuePrefix ? `${authHeader.valuePrefix} ${secretRef}` : secretRef;
11526
11529
  return {
11527
11530
  name: `model-provider:${type}`,
11528
11531
  ref: "__auto__",
11529
11532
  apis: [
11530
11533
  {
11531
11534
  base: getFirewallBaseUrl(type),
11532
- auth: { headers: authHeaders },
11535
+ auth: { headers: { [authHeader.name]: headerValue } },
11533
11536
  permissions: [{ name: "unrestricted", rules: ["ANY /{path*}"] }]
11534
11537
  }
11535
11538
  ],
11536
- placeholders
11539
+ placeholders: { [secretName]: placeholderValue }
11537
11540
  };
11538
11541
  }
11539
11542
  var MODEL_PROVIDER_FIREWALL_CONFIGS = {
@@ -11542,10 +11545,8 @@ var MODEL_PROVIDER_FIREWALL_CONFIGS = {
11542
11545
  // https://semgrep.dev/blog/2025/secrets-story-and-prefixed-secrets/
11543
11546
  "anthropic-api-key": mpFirewall(
11544
11547
  "anthropic-api-key",
11545
- { "x-api-key": "${{ secrets.ANTHROPIC_API_KEY }}" },
11546
- {
11547
- ANTHROPIC_API_KEY: "sk-ant-api03-vm0placeholder0000000000000000000000000000000000000000000000000000000000000000000000000000000AA"
11548
- }
11548
+ { name: "x-api-key" },
11549
+ "sk-ant-api03-vm0placeholder0000000000000000000000000000000000000000000000000000000000000000000000000000000AA"
11549
11550
  ),
11550
11551
  // Placeholder: sk-ant-oat01-{93 word/hyphen chars}AA (108 chars total)
11551
11552
  // Source: same structure as API key; prefix from claude setup-token output
@@ -11553,10 +11554,8 @@ var MODEL_PROVIDER_FIREWALL_CONFIGS = {
11553
11554
  // Example: sk-ant-oat01-xxxxx...xxxxx (1-year OAuth token)
11554
11555
  "claude-code-oauth-token": mpFirewall(
11555
11556
  "claude-code-oauth-token",
11556
- { Authorization: "Bearer ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}" },
11557
- {
11558
- CLAUDE_CODE_OAUTH_TOKEN: "sk-ant-oat01-vm0placeholder0000000000000000000000000000000000000000000000000000000000000000000000000000000AA"
11559
- }
11557
+ { name: "Authorization", valuePrefix: "Bearer" },
11558
+ "sk-ant-oat01-vm0placeholder0000000000000000000000000000000000000000000000000000000000000000000000000000000AA"
11560
11559
  ),
11561
11560
  // Placeholder: sk-or-v1-{64 hex chars} (73 chars total)
11562
11561
  // Source: real key observed in GitHub issue
@@ -11564,47 +11563,45 @@ var MODEL_PROVIDER_FIREWALL_CONFIGS = {
11564
11563
  // Example: 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
11565
11564
  "openrouter-api-key": mpFirewall(
11566
11565
  "openrouter-api-key",
11567
- { Authorization: "Bearer ${{ secrets.OPENROUTER_API_KEY }}" },
11568
- {
11569
- OPENROUTER_API_KEY: "sk-or-v1-vm0placeholder00000000000000000000000000000000000000000000000000"
11570
- }
11566
+ { name: "Authorization", valuePrefix: "Bearer" },
11567
+ "sk-or-v1-vm0placeholder00000000000000000000000000000000000000000000000000"
11571
11568
  ),
11572
11569
  // Placeholder: sk-{32 chars} (35 chars total)
11573
11570
  // Source: no authoritative format documentation found; using generic sk- prefix
11574
11571
  "moonshot-api-key": mpFirewall(
11575
11572
  "moonshot-api-key",
11576
- { Authorization: "Bearer ${{ secrets.MOONSHOT_API_KEY }}" },
11577
- { MOONSHOT_API_KEY: "sk-vm0placeholder000000000000000000" }
11573
+ { name: "Authorization", valuePrefix: "Bearer" },
11574
+ "sk-vm0placeholder000000000000000000"
11578
11575
  ),
11579
11576
  // Placeholder: eyJ... (JWT-style, variable length)
11580
11577
  // Source: no authoritative format documentation found; MiniMax docs do not disclose key format
11581
11578
  // https://platform.minimax.io/docs/api-reference/api-overview
11582
11579
  "minimax-api-key": mpFirewall(
11583
11580
  "minimax-api-key",
11584
- { Authorization: "Bearer ${{ secrets.MINIMAX_API_KEY }}" },
11585
- { MINIMAX_API_KEY: "eyvm0placeholder000000000000000000000000000000000000" }
11581
+ { name: "Authorization", valuePrefix: "Bearer" },
11582
+ "eyvm0placeholder000000000000000000000000000000000000"
11586
11583
  ),
11587
11584
  // Placeholder: sk-{32 hex chars} (35 chars total)
11588
11585
  // Source: Semgrep regex \bsk-[a-f0-9]{32}\b
11589
11586
  // https://semgrep.dev/blog/2025/secrets-story-and-prefixed-secrets/
11590
11587
  "deepseek-api-key": mpFirewall(
11591
11588
  "deepseek-api-key",
11592
- { Authorization: "Bearer ${{ secrets.DEEPSEEK_API_KEY }}" },
11593
- { DEEPSEEK_API_KEY: "sk-vm0placeholder000000000000000000" }
11589
+ { name: "Authorization", valuePrefix: "Bearer" },
11590
+ "sk-vm0placeholder000000000000000000"
11594
11591
  ),
11595
11592
  // Placeholder: sk-{32 chars} (35 chars total)
11596
11593
  // Source: no authoritative format documentation found; using generic sk- prefix
11597
11594
  "zai-api-key": mpFirewall(
11598
11595
  "zai-api-key",
11599
- { Authorization: "Bearer ${{ secrets.ZAI_API_KEY }}" },
11600
- { ZAI_API_KEY: "sk-vm0placeholder000000000000000000" }
11596
+ { name: "Authorization", valuePrefix: "Bearer" },
11597
+ "sk-vm0placeholder000000000000000000"
11601
11598
  ),
11602
11599
  // Placeholder: sk-{32 chars} (35 chars total)
11603
11600
  // Source: no authoritative format documentation found; Vercel gateway proxies upstream providers
11604
11601
  "vercel-ai-gateway": mpFirewall(
11605
11602
  "vercel-ai-gateway",
11606
- { Authorization: "Bearer ${{ secrets.VERCEL_AI_GATEWAY_API_KEY }}" },
11607
- { VERCEL_AI_GATEWAY_API_KEY: "sk-vm0placeholder000000000000000000" }
11603
+ { name: "Authorization", valuePrefix: "Bearer" },
11604
+ "sk-vm0placeholder000000000000000000"
11608
11605
  )
11609
11606
  };
11610
11607
  var modelProviderTypeSchema = z16.enum([
@@ -16753,7 +16750,8 @@ var memberUsageSchema = z37.object({
16753
16750
  outputTokens: z37.number(),
16754
16751
  cacheReadInputTokens: z37.number(),
16755
16752
  cacheCreationInputTokens: z37.number(),
16756
- creditsCharged: z37.number()
16753
+ creditsCharged: z37.number(),
16754
+ creditCap: z37.number().nullable()
16757
16755
  });
16758
16756
  var usageMembersResponseSchema = z37.object({
16759
16757
  period: z37.object({
@@ -17055,9 +17053,7 @@ var STAFF_ORG_ID_HASHES = [
17055
17053
  var FEATURE_SWITCHES = {
17056
17054
  ["pricing" /* Pricing */]: {
17057
17055
  maintainer: "ethan@vm0.ai",
17058
- enabled: false,
17059
- enabledUserHashes: STAFF_USER_HASHES,
17060
- enabledOrgIdHashes: STAFF_ORG_ID_HASHES
17056
+ enabled: true
17061
17057
  },
17062
17058
  ["dummy" /* Dummy */]: {
17063
17059
  maintainer: "ethan@vm0.ai",
@@ -17240,6 +17236,14 @@ var FEATURE_SWITCHES = {
17240
17236
  enabled: false,
17241
17237
  enabledUserHashes: STAFF_USER_HASHES,
17242
17238
  enabledOrgIdHashes: STAFF_ORG_ID_HASHES
17239
+ },
17240
+ ["concurrentAddOn" /* ConcurrentAddOn */]: {
17241
+ maintainer: "ethan@vm0.ai",
17242
+ enabled: false
17243
+ },
17244
+ ["creditAddOn" /* CreditAddOn */]: {
17245
+ maintainer: "ethan@vm0.ai",
17246
+ enabled: false
17243
17247
  }
17244
17248
  };
17245
17249
  async function isFeatureEnabled(key, ctx) {
@@ -17299,11 +17303,7 @@ var ApiRequestError = class extends Error {
17299
17303
  this.name = "ApiRequestError";
17300
17304
  }
17301
17305
  };
17302
- async function getHeaders() {
17303
- const token = await getActiveToken();
17304
- if (!token) {
17305
- throw new ApiRequestError("Not authenticated", "UNAUTHORIZED", 401);
17306
- }
17306
+ function buildHeaders(token) {
17307
17307
  const headers = {
17308
17308
  Authorization: `Bearer ${token}`
17309
17309
  };
@@ -17322,10 +17322,13 @@ async function getBaseUrl() {
17322
17322
  }
17323
17323
  async function getClientConfig() {
17324
17324
  const baseUrl = await getBaseUrl();
17325
- const baseHeaders = await getHeaders();
17326
17325
  const token = await getActiveToken();
17327
- const isJwtToken = decodeCliTokenPayload(token) ?? decodeZeroTokenPayload(token);
17328
- if (isJwtToken) {
17326
+ if (!token) {
17327
+ throw new ApiRequestError("Not authenticated", "UNAUTHORIZED", 401);
17328
+ }
17329
+ const baseHeaders = buildHeaders(token);
17330
+ const jwtPayload = decodeCliTokenPayload(token) ?? decodeZeroTokenPayload(token);
17331
+ if (jwtPayload) {
17329
17332
  return { baseUrl, baseHeaders, jsonQuery: false };
17330
17333
  }
17331
17334
  const activeOrg = await getActiveOrg();
@@ -17589,7 +17592,7 @@ async function switchZeroOrg(slug) {
17589
17592
  const config = await getUserTokenClientConfig();
17590
17593
  const client = initClient4(cliAuthOrgContract, config);
17591
17594
  const result = await client.switchOrg({
17592
- headers: { authorization: `Bearer ${await getToken()}` },
17595
+ headers: {},
17593
17596
  body: { slug }
17594
17597
  });
17595
17598
  if (result.status === 200) {
@@ -17742,11 +17745,97 @@ async function deleteZeroComputerConnector() {
17742
17745
  handleError(result, "Computer connector not found");
17743
17746
  }
17744
17747
 
17745
- // src/lib/api/domains/runs.ts
17748
+ // src/lib/api/domains/logs.ts
17746
17749
  import { initClient as initClient8 } from "@ts-rest/core";
17750
+ async function getSystemLog(runId, options) {
17751
+ const config = await getClientConfig();
17752
+ const client = initClient8(runSystemLogContract, config);
17753
+ const result = await client.getSystemLog({
17754
+ params: { id: runId },
17755
+ query: {
17756
+ since: options?.since,
17757
+ limit: options?.limit,
17758
+ order: options?.order
17759
+ }
17760
+ });
17761
+ if (result.status === 200) {
17762
+ return result.body;
17763
+ }
17764
+ handleError(result, "Failed to fetch system log");
17765
+ }
17766
+ async function getMetrics(runId, options) {
17767
+ const config = await getClientConfig();
17768
+ const client = initClient8(runMetricsContract, config);
17769
+ const result = await client.getMetrics({
17770
+ params: { id: runId },
17771
+ query: {
17772
+ since: options?.since,
17773
+ limit: options?.limit,
17774
+ order: options?.order
17775
+ }
17776
+ });
17777
+ if (result.status === 200) {
17778
+ return result.body;
17779
+ }
17780
+ handleError(result, "Failed to fetch metrics");
17781
+ }
17782
+ async function getAgentEvents(runId, options) {
17783
+ const config = await getClientConfig();
17784
+ const client = initClient8(runAgentEventsContract, config);
17785
+ const result = await client.getAgentEvents({
17786
+ params: { id: runId },
17787
+ query: {
17788
+ since: options?.since,
17789
+ limit: options?.limit,
17790
+ order: options?.order
17791
+ }
17792
+ });
17793
+ if (result.status === 200) {
17794
+ return result.body;
17795
+ }
17796
+ handleError(result, "Failed to fetch agent events");
17797
+ }
17798
+ async function getNetworkLogs(runId, options) {
17799
+ const config = await getClientConfig();
17800
+ const client = initClient8(runNetworkLogsContract, config);
17801
+ const result = await client.getNetworkLogs({
17802
+ params: { id: runId },
17803
+ query: {
17804
+ since: options?.since,
17805
+ limit: options?.limit,
17806
+ order: options?.order
17807
+ }
17808
+ });
17809
+ if (result.status === 200) {
17810
+ return result.body;
17811
+ }
17812
+ handleError(result, "Failed to fetch network logs");
17813
+ }
17814
+ async function searchLogs(options) {
17815
+ const config = await getClientConfig();
17816
+ const client = initClient8(logsSearchContract, config);
17817
+ const result = await client.searchLogs({
17818
+ query: {
17819
+ keyword: options.keyword,
17820
+ agent: options.agent,
17821
+ runId: options.runId,
17822
+ since: options.since,
17823
+ limit: options.limit,
17824
+ before: options.before,
17825
+ after: options.after
17826
+ }
17827
+ });
17828
+ if (result.status === 200) {
17829
+ return result.body;
17830
+ }
17831
+ handleError(result, "Failed to search logs");
17832
+ }
17833
+
17834
+ // src/lib/api/domains/runs.ts
17835
+ import { initClient as initClient9 } from "@ts-rest/core";
17747
17836
  async function createRun(body) {
17748
17837
  const config = await getClientConfig();
17749
- const client = initClient8(runsMainContract, config);
17838
+ const client = initClient9(runsMainContract, config);
17750
17839
  const result = await client.create({ body });
17751
17840
  if (result.status === 201) {
17752
17841
  return result.body;
@@ -17755,7 +17844,7 @@ async function createRun(body) {
17755
17844
  }
17756
17845
  async function getEvents(runId, options) {
17757
17846
  const config = await getClientConfig();
17758
- const client = initClient8(runEventsContract, config);
17847
+ const client = initClient9(runEventsContract, config);
17759
17848
  const result = await client.getEvents({
17760
17849
  params: { id: runId },
17761
17850
  query: {
@@ -17770,7 +17859,7 @@ async function getEvents(runId, options) {
17770
17859
  }
17771
17860
  async function listRuns(params) {
17772
17861
  const config = await getClientConfig();
17773
- const client = initClient8(runsMainContract, config);
17862
+ const client = initClient9(runsMainContract, config);
17774
17863
  const result = await client.list({
17775
17864
  query: {
17776
17865
  status: params?.status,
@@ -17787,7 +17876,7 @@ async function listRuns(params) {
17787
17876
  }
17788
17877
  async function getRunQueue() {
17789
17878
  const config = await getClientConfig();
17790
- const client = initClient8(runsQueueContract, config);
17879
+ const client = initClient9(runsQueueContract, config);
17791
17880
  const result = await client.getQueue({ headers: {} });
17792
17881
  if (result.status === 200) {
17793
17882
  return result.body;
@@ -17796,7 +17885,7 @@ async function getRunQueue() {
17796
17885
  }
17797
17886
  async function cancelRun(runId) {
17798
17887
  const config = await getClientConfig();
17799
- const client = initClient8(runsCancelContract, config);
17888
+ const client = initClient9(runsCancelContract, config);
17800
17889
  const result = await client.cancel({
17801
17890
  params: { id: runId }
17802
17891
  });
@@ -17807,10 +17896,10 @@ async function cancelRun(runId) {
17807
17896
  }
17808
17897
 
17809
17898
  // src/lib/api/domains/sessions.ts
17810
- import { initClient as initClient9 } from "@ts-rest/core";
17899
+ import { initClient as initClient10 } from "@ts-rest/core";
17811
17900
  async function getSession(sessionId) {
17812
17901
  const config = await getClientConfig();
17813
- const client = initClient9(sessionsByIdContract, config);
17902
+ const client = initClient10(sessionsByIdContract, config);
17814
17903
  const result = await client.getById({
17815
17904
  params: { id: sessionId }
17816
17905
  });
@@ -17823,7 +17912,7 @@ async function getSession(sessionId) {
17823
17912
  }
17824
17913
  async function getCheckpoint(checkpointId) {
17825
17914
  const config = await getClientConfig();
17826
- const client = initClient9(checkpointsByIdContract, config);
17915
+ const client = initClient10(checkpointsByIdContract, config);
17827
17916
  const result = await client.getById({
17828
17917
  params: { id: checkpointId }
17829
17918
  });
@@ -17834,10 +17923,10 @@ async function getCheckpoint(checkpointId) {
17834
17923
  }
17835
17924
 
17836
17925
  // src/lib/api/domains/storages.ts
17837
- import { initClient as initClient10 } from "@ts-rest/core";
17926
+ import { initClient as initClient11 } from "@ts-rest/core";
17838
17927
  async function prepareStorage(body) {
17839
17928
  const config = await getClientConfig();
17840
- const client = initClient10(storagesPrepareContract, config);
17929
+ const client = initClient11(storagesPrepareContract, config);
17841
17930
  const result = await client.prepare({ body });
17842
17931
  if (result.status === 200) {
17843
17932
  return result.body;
@@ -17846,7 +17935,7 @@ async function prepareStorage(body) {
17846
17935
  }
17847
17936
  async function commitStorage(body) {
17848
17937
  const config = await getClientConfig();
17849
- const client = initClient10(storagesCommitContract, config);
17938
+ const client = initClient11(storagesCommitContract, config);
17850
17939
  const result = await client.commit({ body });
17851
17940
  if (result.status === 200) {
17852
17941
  return result.body;
@@ -17855,7 +17944,7 @@ async function commitStorage(body) {
17855
17944
  }
17856
17945
  async function getStorageDownload(query) {
17857
17946
  const config = await getClientConfig();
17858
- const client = initClient10(storagesDownloadContract, config);
17947
+ const client = initClient11(storagesDownloadContract, config);
17859
17948
  const result = await client.download({
17860
17949
  query: {
17861
17950
  name: query.name,
@@ -17870,7 +17959,7 @@ async function getStorageDownload(query) {
17870
17959
  }
17871
17960
  async function listStorages(query) {
17872
17961
  const config = await getClientConfig();
17873
- const client = initClient10(storagesListContract, config);
17962
+ const client = initClient11(storagesListContract, config);
17874
17963
  const result = await client.list({ query });
17875
17964
  if (result.status === 200) {
17876
17965
  return result.body;
@@ -17879,10 +17968,10 @@ async function listStorages(query) {
17879
17968
  }
17880
17969
 
17881
17970
  // src/lib/api/domains/zero-org-secrets.ts
17882
- import { initClient as initClient11 } from "@ts-rest/core";
17971
+ import { initClient as initClient12 } from "@ts-rest/core";
17883
17972
  async function listZeroOrgSecrets() {
17884
17973
  const config = await getClientConfig();
17885
- const client = initClient11(zeroSecretsContract, config);
17974
+ const client = initClient12(zeroSecretsContract, config);
17886
17975
  const result = await client.list({ headers: {} });
17887
17976
  if (result.status === 200) {
17888
17977
  return result.body;
@@ -17891,7 +17980,7 @@ async function listZeroOrgSecrets() {
17891
17980
  }
17892
17981
  async function setZeroOrgSecret(body) {
17893
17982
  const config = await getClientConfig();
17894
- const client = initClient11(zeroSecretsContract, config);
17983
+ const client = initClient12(zeroSecretsContract, config);
17895
17984
  const result = await client.set({ body });
17896
17985
  if (result.status === 200 || result.status === 201) {
17897
17986
  return result.body;
@@ -17900,7 +17989,7 @@ async function setZeroOrgSecret(body) {
17900
17989
  }
17901
17990
  async function deleteZeroOrgSecret(name) {
17902
17991
  const config = await getClientConfig();
17903
- const client = initClient11(zeroSecretsByNameContract, config);
17992
+ const client = initClient12(zeroSecretsByNameContract, config);
17904
17993
  const result = await client.delete({
17905
17994
  params: { name }
17906
17995
  });
@@ -17911,10 +18000,10 @@ async function deleteZeroOrgSecret(name) {
17911
18000
  }
17912
18001
 
17913
18002
  // src/lib/api/domains/zero-org-variables.ts
17914
- import { initClient as initClient12 } from "@ts-rest/core";
18003
+ import { initClient as initClient13 } from "@ts-rest/core";
17915
18004
  async function listZeroOrgVariables() {
17916
18005
  const config = await getClientConfig();
17917
- const client = initClient12(zeroVariablesContract, config);
18006
+ const client = initClient13(zeroVariablesContract, config);
17918
18007
  const result = await client.list({ headers: {} });
17919
18008
  if (result.status === 200) {
17920
18009
  return result.body;
@@ -17923,7 +18012,7 @@ async function listZeroOrgVariables() {
17923
18012
  }
17924
18013
  async function setZeroOrgVariable(body) {
17925
18014
  const config = await getClientConfig();
17926
- const client = initClient12(zeroVariablesContract, config);
18015
+ const client = initClient13(zeroVariablesContract, config);
17927
18016
  const result = await client.set({ body });
17928
18017
  if (result.status === 200 || result.status === 201) {
17929
18018
  return result.body;
@@ -17932,7 +18021,7 @@ async function setZeroOrgVariable(body) {
17932
18021
  }
17933
18022
  async function deleteZeroOrgVariable(name) {
17934
18023
  const config = await getClientConfig();
17935
- const client = initClient12(zeroVariablesByNameContract, config);
18024
+ const client = initClient13(zeroVariablesByNameContract, config);
17936
18025
  const result = await client.delete({
17937
18026
  params: { name }
17938
18027
  });
@@ -17943,10 +18032,10 @@ async function deleteZeroOrgVariable(name) {
17943
18032
  }
17944
18033
 
17945
18034
  // src/lib/api/domains/zero-org-model-providers.ts
17946
- import { initClient as initClient13 } from "@ts-rest/core";
18035
+ import { initClient as initClient14 } from "@ts-rest/core";
17947
18036
  async function listZeroOrgModelProviders() {
17948
18037
  const config = await getClientConfig();
17949
- const client = initClient13(zeroModelProvidersMainContract, config);
18038
+ const client = initClient14(zeroModelProvidersMainContract, config);
17950
18039
  const result = await client.list({ headers: {} });
17951
18040
  if (result.status === 200) {
17952
18041
  return result.body;
@@ -17955,7 +18044,7 @@ async function listZeroOrgModelProviders() {
17955
18044
  }
17956
18045
  async function upsertZeroOrgModelProvider(body) {
17957
18046
  const config = await getClientConfig();
17958
- const client = initClient13(zeroModelProvidersMainContract, config);
18047
+ const client = initClient14(zeroModelProvidersMainContract, config);
17959
18048
  const result = await client.upsert({ body });
17960
18049
  if (result.status === 200 || result.status === 201) {
17961
18050
  return result.body;
@@ -17964,7 +18053,7 @@ async function upsertZeroOrgModelProvider(body) {
17964
18053
  }
17965
18054
  async function deleteZeroOrgModelProvider(type) {
17966
18055
  const config = await getClientConfig();
17967
- const client = initClient13(zeroModelProvidersByTypeContract, config);
18056
+ const client = initClient14(zeroModelProvidersByTypeContract, config);
17968
18057
  const result = await client.delete({
17969
18058
  params: { type }
17970
18059
  });
@@ -17975,7 +18064,7 @@ async function deleteZeroOrgModelProvider(type) {
17975
18064
  }
17976
18065
  async function setZeroOrgModelProviderDefault(type) {
17977
18066
  const config = await getClientConfig();
17978
- const client = initClient13(zeroModelProvidersDefaultContract, config);
18067
+ const client = initClient14(zeroModelProvidersDefaultContract, config);
17979
18068
  const result = await client.setDefault({
17980
18069
  params: { type }
17981
18070
  });
@@ -17986,7 +18075,7 @@ async function setZeroOrgModelProviderDefault(type) {
17986
18075
  }
17987
18076
  async function updateZeroOrgModelProviderModel(type, selectedModel) {
17988
18077
  const config = await getClientConfig();
17989
- const client = initClient13(zeroModelProvidersUpdateModelContract, config);
18078
+ const client = initClient14(zeroModelProvidersUpdateModelContract, config);
17990
18079
  const result = await client.updateModel({
17991
18080
  params: { type },
17992
18081
  body: { selectedModel }
@@ -17998,52 +18087,52 @@ async function updateZeroOrgModelProviderModel(type, selectedModel) {
17998
18087
  }
17999
18088
 
18000
18089
  // src/lib/api/domains/zero-agents.ts
18001
- import { initClient as initClient14 } from "@ts-rest/core";
18090
+ import { initClient as initClient15 } from "@ts-rest/core";
18002
18091
  async function createZeroAgent(body) {
18003
18092
  const config = await getClientConfig();
18004
- const client = initClient14(zeroAgentsMainContract, config);
18093
+ const client = initClient15(zeroAgentsMainContract, config);
18005
18094
  const result = await client.create({ body });
18006
18095
  if (result.status === 201) return result.body;
18007
18096
  handleError(result, "Failed to create zero agent");
18008
18097
  }
18009
18098
  async function listZeroAgents() {
18010
18099
  const config = await getClientConfig();
18011
- const client = initClient14(zeroAgentsMainContract, config);
18100
+ const client = initClient15(zeroAgentsMainContract, config);
18012
18101
  const result = await client.list({ headers: {} });
18013
18102
  if (result.status === 200) return result.body;
18014
18103
  handleError(result, "Failed to list zero agents");
18015
18104
  }
18016
18105
  async function getZeroAgent(id) {
18017
18106
  const config = await getClientConfig();
18018
- const client = initClient14(zeroAgentsByIdContract, config);
18107
+ const client = initClient15(zeroAgentsByIdContract, config);
18019
18108
  const result = await client.get({ params: { id } });
18020
18109
  if (result.status === 200) return result.body;
18021
18110
  handleError(result, `Zero agent "${id}" not found`);
18022
18111
  }
18023
18112
  async function updateZeroAgent(id, body) {
18024
18113
  const config = await getClientConfig();
18025
- const client = initClient14(zeroAgentsByIdContract, config);
18114
+ const client = initClient15(zeroAgentsByIdContract, config);
18026
18115
  const result = await client.update({ params: { id }, body });
18027
18116
  if (result.status === 200) return result.body;
18028
18117
  handleError(result, `Failed to update zero agent "${id}"`);
18029
18118
  }
18030
18119
  async function deleteZeroAgent(id) {
18031
18120
  const config = await getClientConfig();
18032
- const client = initClient14(zeroAgentsByIdContract, config);
18121
+ const client = initClient15(zeroAgentsByIdContract, config);
18033
18122
  const result = await client.delete({ params: { id } });
18034
18123
  if (result.status === 204) return;
18035
18124
  handleError(result, `Zero agent "${id}" not found`);
18036
18125
  }
18037
18126
  async function getZeroAgentInstructions(id) {
18038
18127
  const config = await getClientConfig();
18039
- const client = initClient14(zeroAgentInstructionsContract, config);
18128
+ const client = initClient15(zeroAgentInstructionsContract, config);
18040
18129
  const result = await client.get({ params: { id } });
18041
18130
  if (result.status === 200) return result.body;
18042
18131
  handleError(result, `Failed to get instructions for zero agent "${id}"`);
18043
18132
  }
18044
18133
  async function updateZeroAgentInstructions(id, content) {
18045
18134
  const config = await getClientConfig();
18046
- const client = initClient14(zeroAgentInstructionsContract, config);
18135
+ const client = initClient15(zeroAgentInstructionsContract, config);
18047
18136
  const result = await client.update({
18048
18137
  params: { id },
18049
18138
  body: { content }
@@ -18053,10 +18142,10 @@ async function updateZeroAgentInstructions(id, content) {
18053
18142
  }
18054
18143
 
18055
18144
  // src/lib/api/domains/integrations-slack.ts
18056
- import { initClient as initClient15 } from "@ts-rest/core";
18145
+ import { initClient as initClient16 } from "@ts-rest/core";
18057
18146
  async function sendSlackMessage(body) {
18058
18147
  const config = await getClientConfig();
18059
- const client = initClient15(integrationsSlackMessageContract, config);
18148
+ const client = initClient16(integrationsSlackMessageContract, config);
18060
18149
  const result = await client.sendMessage({ body, headers: {} });
18061
18150
  if (result.status === 200) {
18062
18151
  return result.body;
@@ -18065,10 +18154,10 @@ async function sendSlackMessage(body) {
18065
18154
  }
18066
18155
 
18067
18156
  // src/lib/api/domains/zero-schedules.ts
18068
- import { initClient as initClient16 } from "@ts-rest/core";
18157
+ import { initClient as initClient17 } from "@ts-rest/core";
18069
18158
  async function deployZeroSchedule(body) {
18070
18159
  const config = await getClientConfig();
18071
- const client = initClient16(zeroSchedulesMainContract, config);
18160
+ const client = initClient17(zeroSchedulesMainContract, config);
18072
18161
  const result = await client.deploy({ body });
18073
18162
  if (result.status === 200 || result.status === 201) {
18074
18163
  return result.body;
@@ -18077,7 +18166,7 @@ async function deployZeroSchedule(body) {
18077
18166
  }
18078
18167
  async function listZeroSchedules() {
18079
18168
  const config = await getClientConfig();
18080
- const client = initClient16(zeroSchedulesMainContract, config);
18169
+ const client = initClient17(zeroSchedulesMainContract, config);
18081
18170
  const result = await client.list({ headers: {} });
18082
18171
  if (result.status === 200) {
18083
18172
  return result.body;
@@ -18086,7 +18175,7 @@ async function listZeroSchedules() {
18086
18175
  }
18087
18176
  async function deleteZeroSchedule(params) {
18088
18177
  const config = await getClientConfig();
18089
- const client = initClient16(zeroSchedulesByNameContract, config);
18178
+ const client = initClient17(zeroSchedulesByNameContract, config);
18090
18179
  const result = await client.delete({
18091
18180
  params: { name: params.name },
18092
18181
  query: { agentId: params.agentId }
@@ -18098,7 +18187,7 @@ async function deleteZeroSchedule(params) {
18098
18187
  }
18099
18188
  async function enableZeroSchedule(params) {
18100
18189
  const config = await getClientConfig();
18101
- const client = initClient16(zeroSchedulesEnableContract, config);
18190
+ const client = initClient17(zeroSchedulesEnableContract, config);
18102
18191
  const result = await client.enable({
18103
18192
  params: { name: params.name },
18104
18193
  body: { agentId: params.agentId }
@@ -18110,7 +18199,7 @@ async function enableZeroSchedule(params) {
18110
18199
  }
18111
18200
  async function disableZeroSchedule(params) {
18112
18201
  const config = await getClientConfig();
18113
- const client = initClient16(zeroSchedulesEnableContract, config);
18202
+ const client = initClient17(zeroSchedulesEnableContract, config);
18114
18203
  const result = await client.disable({
18115
18204
  params: { name: params.name },
18116
18205
  body: { agentId: params.agentId }
@@ -18246,11 +18335,6 @@ export {
18246
18335
  volumeConfigSchema,
18247
18336
  agentDefinitionSchema,
18248
18337
  ALL_RUN_STATUSES,
18249
- runSystemLogContract,
18250
- runMetricsContract,
18251
- runAgentEventsContract,
18252
- runNetworkLogsContract,
18253
- logsSearchContract,
18254
18338
  MODEL_PROVIDER_TYPES,
18255
18339
  getSelectableProviderTypes,
18256
18340
  hasAuthMethods,
@@ -18280,8 +18364,6 @@ export {
18280
18364
  parseSkillFrontmatter,
18281
18365
  ApiRequestError,
18282
18366
  getBaseUrl,
18283
- getClientConfig,
18284
- handleError,
18285
18367
  withErrorHandler,
18286
18368
  getComposeByName,
18287
18369
  getComposeById,
@@ -18348,10 +18430,15 @@ export {
18348
18430
  enableZeroSchedule,
18349
18431
  disableZeroSchedule,
18350
18432
  resolveZeroScheduleByAgent,
18433
+ getSystemLog,
18434
+ getMetrics,
18435
+ getAgentEvents,
18436
+ getNetworkLogs,
18437
+ searchLogs,
18351
18438
  isInteractive,
18352
18439
  promptText,
18353
18440
  promptConfirm,
18354
18441
  promptSelect,
18355
18442
  promptPassword
18356
18443
  };
18357
- //# sourceMappingURL=chunk-Z7ZCVASY.js.map
18444
+ //# sourceMappingURL=chunk-37AJL4NM.js.map