@uru-intelligence/cli 0.4.18 → 0.5.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/dist/library.mjs CHANGED
@@ -5868,6 +5868,17 @@ var zAppJobRun = object({
5868
5868
  inputSummary: record(string2(), unknown()).nullish(),
5869
5869
  jobKey: string2().nullish(),
5870
5870
  lastStatusAt: string2().nullish(),
5871
+ latestAttempt: object({
5872
+ attemptNumber: number2(),
5873
+ error: record(string2(), unknown()),
5874
+ hasCheckpoint: boolean2(),
5875
+ id: string2(),
5876
+ progress: record(string2(), unknown()),
5877
+ startedAt: string2(),
5878
+ status: string2(),
5879
+ stoppedAt: string2().nullable(),
5880
+ updatedAt: string2()
5881
+ }).nullish(),
5871
5882
  maxAttempts: number2().nullish(),
5872
5883
  metadata: record(string2(), unknown()).nullish(),
5873
5884
  nextRetryAt: string2().nullish(),
@@ -5906,6 +5917,10 @@ var zAppLogRecord = object({
5906
5917
  status: string2().nullish(),
5907
5918
  workspaceId: string2()
5908
5919
  });
5920
+ var zAppLogPage = object({
5921
+ logs: array(zAppLogRecord),
5922
+ nextCursor: string2().nullable()
5923
+ });
5909
5924
  var zAppPublishCheck = object({
5910
5925
  artifactId: string2(),
5911
5926
  checkKey: string2().nullish(),
@@ -5986,9 +6001,7 @@ var zAppResourceBindingUpsertRequest = object({
5986
6001
  "job",
5987
6002
  "endpoint",
5988
6003
  "storage"
5989
- ]),
5990
- toolCapabilityId: uuid2().nullish(),
5991
- toolConnectionId: string2().nullish()
6004
+ ])
5992
6005
  });
5993
6006
  var zAppRouteManifestRecord = object({
5994
6007
  accessPolicy: string2(),
@@ -6041,6 +6054,10 @@ var zAppRuntimeInvocationResponse = object({
6041
6054
  state: string2(),
6042
6055
  status: string2()
6043
6056
  });
6057
+ var zAppRuntimeLogStoreStatus = object({
6058
+ availability: _enum(["available", "not_configured", "unavailable"]),
6059
+ code: string2().nullish()
6060
+ });
6044
6061
  var zAppRuntimePowerAction = _enum(["stop", "start", "restart"]);
6045
6062
  var zAppRuntimePowerRequest = object({
6046
6063
  action: zAppRuntimePowerAction
@@ -6118,6 +6135,7 @@ var zAppReleaseOverview = object({
6118
6135
  environments: array(zAppEnvironment),
6119
6136
  jobRuns: array(zAppJobRun).optional(),
6120
6137
  linkTargets: array(zAppReleaseLinkTarget).optional(),
6138
+ logStoreStatus: zAppRuntimeLogStoreStatus.optional(),
6121
6139
  logs: array(zAppLogRecord),
6122
6140
  providerDeployments: array(zAppRuntimeProviderDeployment).optional(),
6123
6141
  providerReadiness: record(string2(), zAppRuntimeProviderReadinessReport).nullish(),
@@ -6126,8 +6144,7 @@ var zAppReleaseOverview = object({
6126
6144
  runtimeProfile: record(string2(), unknown()).nullable()
6127
6145
  });
6128
6146
  var zAppSafeBindingResolveRequest = object({
6129
- buildId: string2().min(1),
6130
- environmentKey: _enum(["preview", "release"]).optional().default("release")
6147
+ buildId: string2().min(1)
6131
6148
  });
6132
6149
  var zAppSafeBindingResolveResponse = object({
6133
6150
  artifactId: string2(),
@@ -6154,7 +6171,6 @@ var zAppSecretMetadata = object({
6154
6171
  workspaceId: string2()
6155
6172
  });
6156
6173
  var zAppSecretValueUpsertRequest = object({
6157
- environmentKey: _enum(["preview", "release"]).optional().default("release"),
6158
6174
  metadata: record(string2(), unknown()).optional().default({}),
6159
6175
  secretName: string2().min(1).max(128),
6160
6176
  secretValue: string2().min(1)
@@ -6243,6 +6259,38 @@ var zAppSupportBundleResponse = object({
6243
6259
  bundle: record(string2(), unknown()),
6244
6260
  record: zAppSupportBundleRecord
6245
6261
  });
6262
+ var zAppUploadCompleteResponse = object({
6263
+ cleanupFailed: boolean2(),
6264
+ contentType: string2(),
6265
+ filename: string2(),
6266
+ outcome: _enum([
6267
+ "verified",
6268
+ "pending",
6269
+ "absent",
6270
+ "expired",
6271
+ "unverifiable",
6272
+ "size_mismatch",
6273
+ "type_mismatch"
6274
+ ]),
6275
+ sizeBytes: number2().nullable(),
6276
+ state: _enum(["granted", "verified", "rejected", "expired"]),
6277
+ uploadId: string2()
6278
+ });
6279
+ var zAppUploadGrantRequest = strictObject({
6280
+ contentType: string2().min(3).max(255),
6281
+ filename: string2().min(1).max(255),
6282
+ sizeBytes: int().gte(1).lte(104857600)
6283
+ });
6284
+ var zAppUploadGrantResponse = object({
6285
+ contentType: string2(),
6286
+ expiresAt: string2(),
6287
+ filename: string2(),
6288
+ method: _enum(["PUT"]),
6289
+ requiredHeaders: record(string2(), string2()),
6290
+ sizeBytes: number2(),
6291
+ uploadId: string2(),
6292
+ uploadUrl: string2()
6293
+ });
6246
6294
  var zArtifactAiMessage = object({
6247
6295
  content: union([
6248
6296
  record(string2(), unknown()),
@@ -7865,11 +7913,16 @@ var zGemEditsPage = strictObject({
7865
7913
  edits: array(zGemEdit),
7866
7914
  nextCursor: string2().nullable()
7867
7915
  });
7916
+ var zGemGitSourceBindingError = strictObject({
7917
+ at: exports_iso.datetime({ offset: true }),
7918
+ code: string2().min(1).max(128),
7919
+ message: string2().min(1).max(512)
7920
+ }).nullable();
7868
7921
  var zGemGitSourceCallbackRequest = strictObject({
7869
7922
  code: string2().min(1).max(2048).optional(),
7870
- installationId: string2().regex(/^[1-9][0-9]{0,19}$\/u/).optional(),
7923
+ installationId: string2().regex(/^[1-9][0-9]{0,19}$/).optional(),
7871
7924
  setupAction: _enum(["install", "update", "request"]).optional(),
7872
- state: string2().regex(/^[A-Za-z0-9_-]{43}$\/u/)
7925
+ state: string2().regex(/^[A-Za-z0-9_-]{43}$/)
7873
7926
  });
7874
7927
  var zGemGitSourceCommand = union([
7875
7928
  strictObject({
@@ -7877,7 +7930,7 @@ var zGemGitSourceCommand = union([
7877
7930
  }),
7878
7931
  strictObject({
7879
7932
  action: _enum(["retry"]),
7880
- idempotencyKey: string2().min(1).max(200).regex(/^[A-Za-z0-9._:-]+$\/u/),
7933
+ idempotencyKey: string2().min(1).max(200).regex(/^[A-Za-z0-9._:-]+$/),
7881
7934
  importId: uuid2()
7882
7935
  }),
7883
7936
  strictObject({
@@ -7897,14 +7950,14 @@ var zGemGitSourceCommand = union([
7897
7950
  }),
7898
7951
  strictObject({
7899
7952
  action: _enum(["create_branch_preview"]),
7900
- commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7953
+ commitSha: string2().regex(/^[0-9a-fA-F]{40}$/),
7901
7954
  ref: string2().min(1).max(512)
7902
7955
  }),
7903
7956
  strictObject({
7904
7957
  action: _enum(["approve_preview"]),
7905
- headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7958
+ headSha: string2().regex(/^[0-9a-fA-F]{40}$/),
7906
7959
  previewId: uuid2(),
7907
- resourcePolicyHash: string2().regex(/^[0-9a-f]{64}$\/iu/)
7960
+ resourcePolicyHash: string2().regex(/^[0-9a-fA-F]{64}$/)
7908
7961
  }),
7909
7962
  strictObject({
7910
7963
  action: _enum(["expire_preview"]),
@@ -7921,7 +7974,7 @@ var zGemGitSourceCommand = union([
7921
7974
  strictObject({
7922
7975
  action: _enum(["change_source"]),
7923
7976
  appDirectory: string2().max(240),
7924
- commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7977
+ commitSha: string2().regex(/^[0-9a-fA-F]{40}$/),
7925
7978
  expectedRevision: int().gt(0),
7926
7979
  ref: string2().min(1).max(512)
7927
7980
  })
@@ -7929,13 +7982,23 @@ var zGemGitSourceCommand = union([
7929
7982
  var zGemGitSourceConnectRequest = strictObject({
7930
7983
  appDirectory: string2().max(240),
7931
7984
  automaticPublishing: boolean2(),
7932
- commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7985
+ commitSha: string2().regex(/^[0-9a-fA-F]{40}$/),
7933
7986
  connectionId: uuid2(),
7934
7987
  folderId: uuid2().nullish(),
7935
- idempotencyKey: string2().min(1).max(200).regex(/^[A-Za-z0-9._:-]+$\/u/),
7988
+ idempotencyKey: string2().min(1).max(200).regex(/^[A-Za-z0-9._:-]+$/),
7936
7989
  previewsEnabled: boolean2(),
7937
7990
  ref: string2().min(1).max(512),
7938
- repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
7991
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$/),
7992
+ title: string2().min(1).max(256)
7993
+ });
7994
+ var zGemGitSourceCopyResult = strictObject({
7995
+ artifactId: uuid2(),
7996
+ copiedFromArtifactId: uuid2(),
7997
+ copiedFromCommitSha: string2().regex(/^[0-9a-fA-F]{40}$/),
7998
+ copiedFromVersionId: uuid2(),
7999
+ copiedFromVersionNumber: int().gte(1),
8000
+ libraryItemId: uuid2().nullable(),
8001
+ slug: string2().min(1).max(256),
7939
8002
  title: string2().min(1).max(256)
7940
8003
  });
7941
8004
  var zGemGitSourceImportError = strictObject({
@@ -7946,7 +8009,7 @@ var zGemGitSourceImport = strictObject({
7946
8009
  attempt: int().gte(0),
7947
8010
  buildId: uuid2().nullable(),
7948
8011
  commitMessage: string2().max(16384),
7949
- commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
8012
+ commitSha: string2().regex(/^[0-9a-fA-F]{40}$/),
7950
8013
  completedAt: exports_iso.datetime({ offset: true }).nullable(),
7951
8014
  createdAt: exports_iso.datetime({ offset: true }),
7952
8015
  error: zGemGitSourceImportError,
@@ -7966,13 +8029,11 @@ var zGemGitSourceImport = strictObject({
7966
8029
  "queued",
7967
8030
  "fetching",
7968
8031
  "validating",
7969
- "needs_version",
7970
8032
  "preparing",
7971
8033
  "ready",
7972
8034
  "needs_access",
7973
8035
  "needs_configuration",
7974
8036
  "needs_resource_grant",
7975
- "budget_blocked",
7976
8037
  "failed",
7977
8038
  "canceled",
7978
8039
  "superseded"
@@ -7984,7 +8045,7 @@ var zGemGitSourceInspectRequest = strictObject({
7984
8045
  appDirectory: string2().max(240),
7985
8046
  connectionId: uuid2(),
7986
8047
  ref: string2().min(1).max(512),
7987
- repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/)
8048
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$/)
7988
8049
  });
7989
8050
  var zGemGitSourceInspectionDiagnostic = strictObject({
7990
8051
  code: string2().min(1).max(128),
@@ -7995,14 +8056,14 @@ var zGemGitSourceInspection = strictObject({
7995
8056
  appDirectory: string2().max(240),
7996
8057
  candidateDirectories: array(string2().max(240)).max(5000),
7997
8058
  commitMessage: string2().max(16384),
7998
- commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
8059
+ commitSha: string2().regex(/^[0-9a-fA-F]{40}$/),
7999
8060
  connectionId: uuid2(),
8000
8061
  diagnostics: array(zGemGitSourceInspectionDiagnostic).max(100),
8001
8062
  fileCount: int().gte(0).lte(5000),
8002
8063
  framework: string2().max(128).nullable(),
8003
8064
  proposedConfiguration: string2().max(65536).nullable(),
8004
8065
  ref: string2().min(1).max(512),
8005
- repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
8066
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$/),
8006
8067
  resourceNeeds: array(object({
8007
8068
  kind: string2().min(1).max(128),
8008
8069
  name: string2().min(1).max(512)
@@ -8011,12 +8072,12 @@ var zGemGitSourceInspection = strictObject({
8011
8072
  totalBytes: int().gte(0).lte(25165824)
8012
8073
  });
8013
8074
  var zGemGitSourcePreview = strictObject({
8014
- approvedHeadSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
8075
+ approvedHeadSha: string2().regex(/^[0-9a-fA-F]{40}$/).nullable(),
8015
8076
  canOpen: boolean2(),
8016
8077
  error: zGemGitSourceImportError,
8017
8078
  expiresAt: exports_iso.datetime({ offset: true }),
8018
8079
  fork: boolean2(),
8019
- headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
8080
+ headSha: string2().regex(/^[0-9a-fA-F]{40}$/),
8020
8081
  id: uuid2(),
8021
8082
  pullRequestNumber: int().gt(0).nullable(),
8022
8083
  ref: string2().min(1).max(512),
@@ -8031,12 +8092,12 @@ var zGemGitSourcePreview = strictObject({
8031
8092
  title: string2().max(16384)
8032
8093
  });
8033
8094
  var zGemGitSourcePreviewInspectRequest = strictObject({
8034
- headSha: string2().regex(/^[0-9a-f]{40}$\/iu/)
8095
+ headSha: string2().regex(/^[0-9a-fA-F]{40}$/)
8035
8096
  });
8036
8097
  var zGemGitSourcePreviewInspection = strictObject({
8037
8098
  appDirectory: string2().max(240),
8038
8099
  diagnostics: array(zGemGitSourceInspectionDiagnostic).max(100),
8039
- headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
8100
+ headSha: string2().regex(/^[0-9a-fA-F]{40}$/),
8040
8101
  previewId: uuid2(),
8041
8102
  proposedConfiguration: string2().max(65536).nullable(),
8042
8103
  ref: string2().min(1).max(512),
@@ -8044,26 +8105,33 @@ var zGemGitSourcePreviewInspection = strictObject({
8044
8105
  kind: string2().min(1).max(128),
8045
8106
  name: string2().min(1).max(512)
8046
8107
  })).max(100),
8047
- resourcePolicyHash: string2().regex(/^[0-9a-f]{64}$\/iu/).nullable(),
8108
+ resourcePolicyHash: string2().regex(/^[0-9a-fA-F]{64}$/).nullable(),
8048
8109
  state: _enum(["ready", "needs_configuration", "rejected"])
8049
8110
  });
8050
- var zGemGitSourceRefs = array(object({
8111
+ var zGemGitSourceRef = strictObject({
8051
8112
  kind: _enum(["branch", "tag"]),
8052
8113
  name: string2().min(1).max(512),
8053
8114
  ref: string2().min(1).max(512)
8054
- })).max(2000);
8115
+ });
8116
+ var zGemGitSourceRefs = strictObject({
8117
+ defaultBranch: zGemGitSourceRef,
8118
+ nextPage: int().gte(2).lte(100).nullable(),
8119
+ refs: array(zGemGitSourceRef).max(300)
8120
+ });
8055
8121
  var zGemGitSourceRefsRequest = strictObject({
8056
8122
  connectionId: uuid2(),
8057
- repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/)
8123
+ page: int().gte(1).lte(100).optional(),
8124
+ query: string2().max(512).optional(),
8125
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$/)
8058
8126
  });
8059
8127
  var zGemGitSourceRepository = strictObject({
8060
8128
  connectionId: uuid2(),
8061
8129
  defaultBranch: string2().min(1).max(512),
8062
- installationId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
8130
+ installationId: string2().regex(/^[1-9][0-9]{0,19}$/),
8063
8131
  name: string2().min(1).max(255),
8064
8132
  owner: string2().min(1).max(255),
8065
8133
  private: boolean2(),
8066
- repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
8134
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$/),
8067
8135
  url: url().max(2048)
8068
8136
  });
8069
8137
  var zGemGitSourceConnection = strictObject({
@@ -8104,11 +8172,12 @@ var zGemGitSourceState = strictObject({
8104
8172
  access: _enum(["active", "suspended", "revoked", "needs_access"]),
8105
8173
  active: boolean2(),
8106
8174
  appDirectory: string2().max(240),
8107
- currentCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
8108
- desiredCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
8175
+ currentCommitSha: string2().regex(/^[0-9a-fA-F]{40}$/).nullable(),
8176
+ desiredCommitSha: string2().regex(/^[0-9a-fA-F]{40}$/).nullable(),
8109
8177
  generation: int().gte(0),
8110
8178
  id: uuid2(),
8111
- lastBuiltCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
8179
+ lastBuiltCommitSha: string2().regex(/^[0-9a-fA-F]{40}$/).nullable(),
8180
+ lastError: zGemGitSourceBindingError,
8112
8181
  ref: string2().min(1).max(512),
8113
8182
  repository: zGemGitSourceRepository
8114
8183
  }).nullable(),
@@ -8927,6 +8996,7 @@ var zLibraryExternalSourceStatus = _enum([
8927
8996
  "pending",
8928
8997
  "ready",
8929
8998
  "syncing",
8999
+ "deleting",
8930
9000
  "error",
8931
9001
  "rebind_required"
8932
9002
  ]);
@@ -9722,6 +9792,24 @@ var zModelRelayForwardRequest = strictObject({
9722
9792
  opaqueToken: string2().min(1),
9723
9793
  provider: string2().min(1)
9724
9794
  });
9795
+ var zModelRelayImageRequest = strictObject({
9796
+ opaqueToken: string2().min(1),
9797
+ outputFormat: _enum(["png", "jpeg", "webp"]).optional().default("png"),
9798
+ prompt: string2().min(1).max(4000),
9799
+ quality: _enum(["low", "medium", "high", "auto"]).optional().default("auto"),
9800
+ size: _enum(["1024x1024", "1536x1024", "1024x1536", "auto"]).optional().default("auto")
9801
+ });
9802
+ var zModelRelayImageResponse = object({
9803
+ costUsd: string2(),
9804
+ imageBase64: string2(),
9805
+ mimeType: string2(),
9806
+ model: string2(),
9807
+ usage: object({
9808
+ imageOutputTokens: int().gte(0),
9809
+ inputTokens: int().gte(0),
9810
+ textOutputTokens: int().gte(0)
9811
+ })
9812
+ });
9725
9813
  var zModelRelayKillSwitchEngageRequest = object({
9726
9814
  reason: string2().min(1)
9727
9815
  });
@@ -10192,6 +10280,15 @@ var zProtectedResourceMetadata = object({
10192
10280
  });
10193
10281
  var zProviderAppRuntimePanelLogsResponse = object({
10194
10282
  deploymentId: string2(),
10283
+ logStatus: object({
10284
+ code: string2().nullable(),
10285
+ historicalComplete: boolean2(),
10286
+ sink: object({
10287
+ availability: _enum(["available", "not_configured", "unavailable"]),
10288
+ code: string2().nullable()
10289
+ }),
10290
+ state: _enum(["complete", "partial", "delayed", "lost"])
10291
+ }),
10195
10292
  logs: array(object({
10196
10293
  capabilityName: string2().nullable(),
10197
10294
  durationMs: number2().nullable(),
@@ -10201,7 +10298,7 @@ var zProviderAppRuntimePanelLogsResponse = object({
10201
10298
  message: string2().nullable(),
10202
10299
  metadata: record(string2(), unknown()),
10203
10300
  requestId: string2().nullable(),
10204
- source: _enum(["app_logs", "tenant_tail"]),
10301
+ source: _enum(["app_logs", "tenant_tail", "tenant_loki"]),
10205
10302
  status: string2().nullable(),
10206
10303
  timestamp: string2()
10207
10304
  })),
@@ -10533,6 +10630,10 @@ var zRestoreGemVersionResponse = strictObject({
10533
10630
  var zRetryGemReleaseRequest = strictObject({
10534
10631
  idempotencyKey: string2().min(1).max(128)
10535
10632
  });
10633
+ var zRetryGemVersionResponse = strictObject({
10634
+ linksChanged: literal(false),
10635
+ version: zGemVersion
10636
+ });
10536
10637
  var zRevokeCrossWorkspaceShareRequest = object({
10537
10638
  reason: string2().nullish(),
10538
10639
  shareId: uuid2()
@@ -10822,6 +10923,7 @@ var zPersonaIntegrationResponse = object({
10822
10923
  data: zPersonaIntegration
10823
10924
  });
10824
10925
  var zSupabaseExternalDatasetWebhookRequest = object({
10926
+ eventId: string2().min(1).max(64).optional(),
10825
10927
  schema: string2().nullish(),
10826
10928
  table: string2().nullish()
10827
10929
  });
@@ -11747,6 +11849,7 @@ var zThreadMessagePart = union([
11747
11849
  "provider_content_filtered",
11748
11850
  "context_window_exceeded",
11749
11851
  "compaction_loop_exceeded",
11852
+ "compaction_refused",
11750
11853
  "automation_turn_budget_exceeded",
11751
11854
  "output_length_limit_reached",
11752
11855
  "out_of_usage",
@@ -12174,20 +12277,11 @@ var zTriggersResponse = object({
12174
12277
  success: boolean2(),
12175
12278
  triggers: array(record(string2(), unknown()))
12176
12279
  });
12177
- var zUpdateBillingRequest = object({
12178
- architectEnabled: boolean2().nullish(),
12179
- automationsEnabled: boolean2().nullish(),
12180
- automationsMonthlyPriceUsd: number2().nullish(),
12181
- automationsPlanTier: string2().nullish(),
12280
+ var zUpdateBillingRequest = strictObject({
12182
12281
  automationsWeeklyBudgetUsd: number2().gte(0).nullish(),
12183
12282
  billingEmail: email2().nullish(),
12184
12283
  billingName: string2().nullish(),
12185
- chatEnabled: boolean2().nullish(),
12186
- chatMonthlyPriceUsd: number2().nullish(),
12187
- chatPlanTier: string2().nullish(),
12188
12284
  chatWeeklyBudgetUsd: number2().gte(0).nullish(),
12189
- markupPercentage: number2().nullish(),
12190
- planType: string2().nullish(),
12191
12285
  spendingAlertThresholdUsd: number2().gte(0).nullish(),
12192
12286
  spendingLimitUsd: number2().gte(0).nullish()
12193
12287
  });
@@ -12210,6 +12304,10 @@ var zUpdateConnectionLabelResponse = object({
12210
12304
  var zUpdateExternalPermissionsRequest = object({
12211
12305
  permissions: zExternalPermissions
12212
12306
  });
12307
+ var zUpdateLibraryExternalSourceRequest = object({
12308
+ enabled: boolean2().optional(),
12309
+ syncIntervalMinutes: int().gte(1).lte(10080).optional()
12310
+ });
12213
12311
  var zUpdatePersonaIdentity = object({
12214
12312
  avatarUrl: string2().nullish(),
12215
12313
  departments: array(string2()).nullish(),
@@ -12263,7 +12361,7 @@ var zUpdatePersonaRequest = object({
12263
12361
  var zUpdatePublishedPageLinkGateRequest = object({
12264
12362
  emailAllowlist: array(string2()).nullish(),
12265
12363
  emailGateEnabled: boolean2().nullish(),
12266
- expiresAt: string2().nullish(),
12364
+ expiresAt: exports_iso.datetime({ offset: true }).nullish(),
12267
12365
  gateType: _enum(["none", "passcode", "email_otp", "passcode_email_otp"]).nullish(),
12268
12366
  passcode: string2().max(128).nullish(),
12269
12367
  searchIndexingDisabled: boolean2().nullish(),
@@ -12841,7 +12939,13 @@ var zGetToolAccessMatrixApiAccessControlToolsToolMatrixGetPath = object({
12841
12939
  });
12842
12940
  var zGetAdminAuditLogApiAdminAuditLogGetQuery = object({
12843
12941
  limit: int().gte(1).lte(100).optional().default(50),
12844
- offset: int().gte(0).nullish().default(0)
12942
+ offset: int().gte(0).nullish().default(0),
12943
+ actorUserId: string2().optional(),
12944
+ action: string2().min(1).max(120).optional(),
12945
+ targetType: string2().min(1).max(80).optional(),
12946
+ targetId: string2().min(1).max(200).optional(),
12947
+ since: exports_iso.datetime({ offset: true }).optional(),
12948
+ until: exports_iso.datetime({ offset: true }).optional()
12845
12949
  });
12846
12950
  var zAdminListInvitationsApiAdminInvitationsGetQuery = object({
12847
12951
  limit: int().gte(1).lte(100).optional().default(50),
@@ -13831,9 +13935,25 @@ var zGetAvailableModelsApiModelsAvailableGetQuery = object({
13831
13935
  });
13832
13936
  var zExportActivityLogsApiMonitoringActivityExportGetQuery = object({
13833
13937
  dateRange: string2().optional().default("7d"),
13834
- format: string2().optional().default("json")
13938
+ format: string2().optional().default("json"),
13939
+ action: string2().nullish(),
13940
+ resourceType: string2().nullish(),
13941
+ actorUserId: string2().nullish()
13835
13942
  });
13836
13943
  var zExportActivityLogsApiMonitoringActivityExportGetResponse = record(string2(), unknown());
13944
+ var zListAuditLedgerApiMonitoringActivityLedgersLedgerGetPath = object({
13945
+ ledger: _enum([
13946
+ "rubric_events",
13947
+ "webhook_credential_events",
13948
+ "dataset_sql_writes"
13949
+ ])
13950
+ });
13951
+ var zListAuditLedgerApiMonitoringActivityLedgersLedgerGetQuery = object({
13952
+ page: int().gte(1).optional().default(1),
13953
+ pageSize: int().gte(1).lte(200).optional().default(50),
13954
+ dateRange: string2().optional().default("7d")
13955
+ });
13956
+ var zListAuditLedgerApiMonitoringActivityLedgersLedgerGetResponse = record(string2(), unknown());
13837
13957
  var zGetRecentActivityApiMonitoringActivityRecentGetQuery = object({
13838
13958
  limit: int().gte(1).lte(500).optional().default(100)
13839
13959
  });
@@ -14290,11 +14410,14 @@ var zListAppLogsApiPlatformArtifactsArtifactSlugAppLogsGetPath = object({
14290
14410
  var zListAppLogsApiPlatformArtifactsArtifactSlugAppLogsGetQuery = object({
14291
14411
  limit: int().gte(1).lte(500).optional().default(100),
14292
14412
  deploymentId: string2().nullish(),
14413
+ releaseId: string2().nullish(),
14293
14414
  runtimeRunId: string2().nullish(),
14294
14415
  level: string2().nullish(),
14295
- requestId: string2().nullish()
14416
+ requestId: string2().nullish(),
14417
+ cursor: string2().nullish(),
14418
+ since: string2().nullish(),
14419
+ until: string2().nullish()
14296
14420
  });
14297
- var zListAppLogsApiPlatformArtifactsArtifactSlugAppLogsGetResponse = array(zAppLogRecord);
14298
14421
  var zStreamAppLogsApiPlatformArtifactsArtifactSlugAppLogsStreamGetPath = object({
14299
14422
  artifactSlug: string2()
14300
14423
  });
@@ -14305,7 +14428,9 @@ var zStreamAppLogsApiPlatformArtifactsArtifactSlugAppLogsStreamGetQuery = object
14305
14428
  releaseId: string2().nullish(),
14306
14429
  runtimeRunId: string2().nullish(),
14307
14430
  level: string2().nullish(),
14308
- requestId: string2().nullish()
14431
+ requestId: string2().nullish(),
14432
+ since: string2().nullish(),
14433
+ until: string2().nullish()
14309
14434
  });
14310
14435
  var zStreamAppLogsApiPlatformArtifactsArtifactSlugAppLogsStreamGetResponse = string2();
14311
14436
  var zGetAppReleaseOverviewApiPlatformArtifactsArtifactSlugAppReleaseOverviewGetPath = object({
@@ -15071,6 +15196,8 @@ var zDatasetExternalSourceGetResponse = object({
15071
15196
  relationName: string2().nullable(),
15072
15197
  relationSchema: string2().nullable(),
15073
15198
  supabaseRef: string2(),
15199
+ syncIntervalSeconds: int(),
15200
+ syncMode: _enum(["manual", "scheduled"]),
15074
15201
  workspaceId: string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/),
15075
15202
  writeEnabled: boolean2().nullable()
15076
15203
  }).nullable();
@@ -15093,6 +15220,8 @@ var zDatasetExternalSourcePutBody = object({
15093
15220
  relationName: string2().nullish().default(null),
15094
15221
  relationSchema: string2().nullish().default(null),
15095
15222
  supabaseRef: string2().min(1),
15223
+ syncIntervalSeconds: int().gte(60).lte(86400).optional().default(1800),
15224
+ syncMode: _enum(["manual", "scheduled"]).optional().default("manual"),
15096
15225
  writeEnabled: boolean2().nullish().default(null)
15097
15226
  });
15098
15227
  var zDatasetExternalSourcePutPath = object({
@@ -15121,9 +15250,38 @@ var zDatasetExternalSourcePutResponse = object({
15121
15250
  relationName: string2().nullable(),
15122
15251
  relationSchema: string2().nullable(),
15123
15252
  supabaseRef: string2(),
15253
+ syncIntervalSeconds: int(),
15254
+ syncMode: _enum(["manual", "scheduled"]),
15124
15255
  workspaceId: string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/),
15125
15256
  writeEnabled: boolean2().nullable()
15126
15257
  });
15258
+ var zDatasetExternalSourceSyncBody = strictObject({
15259
+ expectedDatasetRevision: string2().regex(/^(0|[1-9][0-9]{0,19})$/),
15260
+ expectedSchemaRevision: string2().regex(/^(0|[1-9][0-9]{0,19})$/),
15261
+ idempotencyKey: string2().min(1).max(128)
15262
+ });
15263
+ var zDatasetExternalSourceSyncPath = object({
15264
+ datasetId: string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/)
15265
+ });
15266
+ var zDatasetExternalSourceSyncResponse = object({
15267
+ commandId: string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/),
15268
+ currentDatasetRevision: string2().regex(/^(0|[1-9][0-9]{0,19})$/),
15269
+ currentSchemaRevision: string2().regex(/^(0|[1-9][0-9]{0,19})$/),
15270
+ datasetId: string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/),
15271
+ jobId: string2().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/),
15272
+ operation: _enum(["external_source"]),
15273
+ replayed: boolean2(),
15274
+ state: _enum([
15275
+ "queued",
15276
+ "claimed",
15277
+ "running",
15278
+ "cancelRequested",
15279
+ "finalizing",
15280
+ "succeeded",
15281
+ "failed",
15282
+ "cancelled"
15283
+ ])
15284
+ });
15127
15285
  var zDatasetExternalSourceTestBody = object({
15128
15286
  allowedColumns: array(string2().min(1)).nullish().default(null),
15129
15287
  allowedWriteColumns: array(string2()).nullish().default(null),
@@ -15143,6 +15301,8 @@ var zDatasetExternalSourceTestBody = object({
15143
15301
  relationName: string2().nullish().default(null),
15144
15302
  relationSchema: string2().nullish().default(null),
15145
15303
  supabaseRef: string2().min(1),
15304
+ syncIntervalSeconds: int().gte(60).lte(86400).optional().default(1800),
15305
+ syncMode: _enum(["manual", "scheduled"]).optional().default("manual"),
15146
15306
  writeEnabled: boolean2().nullish().default(null)
15147
15307
  });
15148
15308
  var zDatasetExternalSourceTestPath = object({
@@ -15889,6 +16049,9 @@ var zGetFrictionReportCleanupResponse = object({
15889
16049
  severity: string2(),
15890
16050
  status: string2()
15891
16051
  });
16052
+ var zDeleteGemLinkHeaders = object({
16053
+ "idempotency-key": string2().min(1).max(200)
16054
+ });
15892
16055
  var zDeleteGemLinkPath = object({
15893
16056
  linkId: string2()
15894
16057
  });
@@ -15900,10 +16063,16 @@ var zUpdateGemLinkAccessResponse = record(string2(), unknown());
15900
16063
  var zCreateGemLinkEmailCaptureDatasetPath = object({
15901
16064
  linkId: string2()
15902
16065
  });
16066
+ var zRevokeGemLinkHeaders = object({
16067
+ "idempotency-key": string2().min(1).max(200)
16068
+ });
15903
16069
  var zRevokeGemLinkPath = object({
15904
16070
  linkId: string2()
15905
16071
  });
15906
16072
  var zRevokeGemLinkResponse = record(string2(), unknown());
16073
+ var zRotateGemLinkHeaders = object({
16074
+ "idempotency-key": string2().min(1).max(200)
16075
+ });
15907
16076
  var zRotateGemLinkPath = object({
15908
16077
  linkId: string2()
15909
16078
  });
@@ -16021,6 +16190,10 @@ var zRestoreGemVersionPath = object({
16021
16190
  gemRef: string2().min(1),
16022
16191
  resourceId: string2().min(1)
16023
16192
  });
16193
+ var zRetryGemVersionPath = object({
16194
+ gemRef: string2().min(1),
16195
+ resourceId: string2().min(1)
16196
+ });
16024
16197
  var zGetAvailableLibrariesApiPlatformLibrariesAvailableGetResponse = record(string2(), unknown());
16025
16198
  var zGetAvailableIconsApiPlatformLibrariesIconsGetResponse = record(string2(), unknown());
16026
16199
  var zGetLibrariesManifestApiPlatformLibrariesManifestGetResponse = record(string2(), unknown());
@@ -16045,9 +16218,24 @@ var zDeleteLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdDeleteP
16045
16218
  var zGetLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdGetPath = object({
16046
16219
  sourceId: string2()
16047
16220
  });
16221
+ var zUpdateLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdPatchPath = object({
16222
+ sourceId: string2()
16223
+ });
16224
+ var zCancelLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdCancelPostPath = object({
16225
+ sourceId: string2()
16226
+ });
16227
+ var zPauseLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdPausePostPath = object({
16228
+ sourceId: string2()
16229
+ });
16048
16230
  var zRebindLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdRebindPostPath = object({
16049
16231
  sourceId: string2()
16050
16232
  });
16233
+ var zResumeLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdResumePostPath = object({
16234
+ sourceId: string2()
16235
+ });
16236
+ var zRunNowLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdRunNowPostPath = object({
16237
+ sourceId: string2()
16238
+ });
16051
16239
  var zSyncLibraryExternalSourceApiPlatformLibraryExternalSourcesSourceIdSyncPostPath = object({
16052
16240
  sourceId: string2()
16053
16241
  });
@@ -16667,8 +16855,9 @@ var zGetPublishedPagePreviewImageApiPublicPagesSlugPreviewImagePublicPreviewRout
16667
16855
  var zPublicArtifactToolProxyExecuteApiPublicPagesSlugToolProxyExecutePostBody = strictObject({
16668
16856
  forceRefresh: boolean2().optional().default(false),
16669
16857
  idempotencyKey: string2().max(128).nullish(),
16670
- operation: string2().min(1).max(256).regex(/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)*$/),
16858
+ operation: string2().min(1).max(256),
16671
16859
  parameters: record(string2(), unknown()).optional().default({}),
16860
+ requestId: string2().regex(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/).optional(),
16672
16861
  role: string2().min(1).max(64).regex(/^[a-z][a-z0-9_]{0,63}$/),
16673
16862
  timeoutMs: int().gte(1000).lte(60000).optional().default(25000)
16674
16863
  });
@@ -16757,6 +16946,13 @@ var zInvokeAppQueryApiRuntimeAppsDeploymentIdQueryCapabilityNamePostPath = objec
16757
16946
  var zAppRuntimeStorageExecutePath = object({
16758
16947
  deploymentId: uuid2()
16759
16948
  });
16949
+ var zAppRuntimeUploadGrantCreatePath = object({
16950
+ deploymentId: uuid2()
16951
+ });
16952
+ var zAppRuntimeUploadGrantCompletePath = object({
16953
+ deploymentId: uuid2(),
16954
+ uploadId: uuid2()
16955
+ });
16760
16956
  var zProviderInvokeAppActionApiRuntimeProviderAppsDeploymentIdActionCapabilityNamePostPath = object({
16761
16957
  deploymentId: string2(),
16762
16958
  capabilityName: string2()
@@ -17225,6 +17421,9 @@ var zGetGemGitSourcePath = object({
17225
17421
  var zCommandGemGitSourcePath = object({
17226
17422
  artifactId: uuid2()
17227
17423
  });
17424
+ var zCopyGemGitSourcePath = object({
17425
+ artifactId: uuid2()
17426
+ });
17228
17427
  var zInspectGemGitPreviewPath = object({
17229
17428
  artifactId: uuid2(),
17230
17429
  previewId: uuid2()
@@ -17284,6 +17483,19 @@ var zDeviceAuthorizationOauthDeviceCodePostBody = object({
17284
17483
  var zValidateMcpTokenOauthMcpTokenValidatePostResponse = record(string2(), unknown());
17285
17484
  var zRobotsTxtRobotsTxtGetResponse = string2();
17286
17485
 
17486
+ // ../../packages/types/src/mcp/gemResult.ts
17487
+ var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
17488
+ // src/terminal-safety.ts
17489
+ function stripTerminalControl(value) {
17490
+ let out = "";
17491
+ for (const ch of value) {
17492
+ const code = ch.codePointAt(0) ?? 0;
17493
+ const isControl = code < 32 && code !== 10 && code !== 9 || code === 127 || code >= 128 && code <= 159;
17494
+ out += isControl ? "�" : ch;
17495
+ }
17496
+ return out;
17497
+ }
17498
+
17287
17499
  // src/json.ts
17288
17500
  function isRecord(value) {
17289
17501
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -17318,7 +17530,7 @@ function pickString(record2, keys) {
17318
17530
  // package.json
17319
17531
  var package_default = {
17320
17532
  name: "@uru-intelligence/cli",
17321
- version: "0.4.18",
17533
+ version: "0.5.0",
17322
17534
  private: false,
17323
17535
  description: "Uru full-platform command line interface",
17324
17536
  repository: {
@@ -17432,23 +17644,11 @@ function defaultCliErrorCode(exitCode) {
17432
17644
  }
17433
17645
  }
17434
17646
 
17435
- // src/gem-panel-client.ts
17436
- function stripTerminalControl(value) {
17437
- let out = "";
17438
- for (const ch of value) {
17439
- const code = ch.codePointAt(0) ?? 0;
17440
- const isControl = code < 32 && code !== 10 && code !== 9 || code === 127 || code >= 128 && code <= 159;
17441
- out += isControl ? "�" : ch;
17442
- }
17443
- return out;
17444
- }
17445
-
17446
- // ../../packages/types/src/mcp/gemResult.ts
17447
- var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
17448
17647
  // src/gem-result.ts
17449
17648
  function gemEnvelope(body, operation) {
17450
17649
  if (!isRecord(body) || body["schema"] !== GEM_RESULT_SCHEMA_V1) {
17451
- throw new CliError(`Gem ${operation} returned an unsupported result envelope schema.`);
17650
+ const seen = isRecord(body) && typeof body["schema"] === "string" ? body["schema"] : "none";
17651
+ throw new CliError(`Gem ${operation} answered with a result envelope this CLI does not read ` + `(schema ${seen}; this CLI reads ${GEM_RESULT_SCHEMA_V1}). The operation may ` + "have completed on the server: check with `uru library ls` before you retry, " + "then use the CLI version that matches the server.");
17452
17652
  }
17453
17653
  if (!Object.hasOwn(body, "result") || !Object.hasOwn(body, "error")) {
17454
17654
  throw new CliError(`Gem ${operation} returned an incomplete result envelope.`);
@@ -17577,6 +17777,7 @@ class UruApiClient {
17577
17777
  Accept: "application/json",
17578
17778
  "X-Uru-Client-Name": "uru-cli",
17579
17779
  "X-Uru-Client-Version": CLI_VERSION,
17780
+ "X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
17580
17781
  ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
17581
17782
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
17582
17783
  ...options.body === undefined ? {} : { "Content-Type": "application/json" }
@@ -17603,6 +17804,7 @@ class UruApiClient {
17603
17804
  Accept: "application/x-ndjson, application/json",
17604
17805
  "X-Uru-Client-Name": "uru-cli",
17605
17806
  "X-Uru-Client-Version": CLI_VERSION,
17807
+ "X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
17606
17808
  ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
17607
17809
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
17608
17810
  ...options.body === undefined ? {} : { "Content-Type": "application/json" }
@@ -17636,6 +17838,7 @@ class UruApiClient {
17636
17838
  Accept: "text/event-stream",
17637
17839
  "X-Uru-Client-Name": "uru-cli",
17638
17840
  "X-Uru-Client-Version": CLI_VERSION,
17841
+ "X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
17639
17842
  ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
17640
17843
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
17641
17844
  ...options.lastEventId === undefined || options.lastEventId === "" ? {} : { "Last-Event-ID": options.lastEventId }