@uru-intelligence/cli 0.4.17 → 0.4.19

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
@@ -6211,6 +6211,19 @@ var zAppStorageResponse = object({
6211
6211
  operation: _enum(["get", "put", "delete", "list"]),
6212
6212
  value: unknown().optional()
6213
6213
  });
6214
+ var zAppSubtoolEntry = object({
6215
+ classification: _enum(["read", "write", "unknown"]),
6216
+ description: string2().nullable(),
6217
+ namespace: string2(),
6218
+ subToolName: string2()
6219
+ });
6220
+ var zAppSubtoolsResponse = object({
6221
+ appName: string2(),
6222
+ message: string2(),
6223
+ subtools: array(zAppSubtoolEntry),
6224
+ success: boolean2(),
6225
+ totalSubtools: int()
6226
+ });
6214
6227
  var zAppSupportBundleRecord = object({
6215
6228
  artifactId: string2(),
6216
6229
  buildId: string2().nullish(),
@@ -6761,21 +6774,21 @@ var zBacklinkInfo = object({
6761
6774
  var zBillingSettingsResponse = object({
6762
6775
  architectEnabled: boolean2(),
6763
6776
  automationsEnabled: boolean2(),
6764
- automationsHourlyRequestLimit: int(),
6765
6777
  automationsMonthlyPriceUsd: number2(),
6766
6778
  automationsPlanTier: string2(),
6767
6779
  automationsWeeklyBudgetUsd: number2(),
6768
6780
  billingEmail: string2().nullable(),
6769
6781
  billingName: string2().nullable(),
6770
6782
  chatEnabled: boolean2(),
6771
- chatHourlyRequestLimit: int(),
6772
6783
  chatMonthlyPriceUsd: number2(),
6773
6784
  chatPlanTier: string2(),
6774
6785
  chatWeeklyBudgetUsd: number2(),
6775
6786
  isTrial: boolean2(),
6776
6787
  markupPercentage: number2(),
6777
6788
  planType: string2(),
6789
+ spendingAlertSentAt: string2().nullable(),
6778
6790
  spendingAlertThresholdUsd: number2().nullable(),
6791
+ spendingLimitReachedAt: string2().nullable(),
6779
6792
  spendingLimitUsd: number2().nullable(),
6780
6793
  trialEndsAt: string2().nullable(),
6781
6794
  workspaceId: string2()
@@ -6873,7 +6886,6 @@ var zCanonicalToolCatalogEntry = object({
6873
6886
  personaLinkId: uuid2().nullish(),
6874
6887
  personaName: string2().nullish(),
6875
6888
  providerNativeToolName: string2(),
6876
- providerType: string2(),
6877
6889
  serviceSlug: string2(),
6878
6890
  sourceUserName: string2().nullish(),
6879
6891
  title: string2().nullish(),
@@ -7232,6 +7244,7 @@ var zConnectResponse = object({
7232
7244
  connectionId: string2().nullish(),
7233
7245
  error: string2().nullish(),
7234
7246
  errorType: string2().nullish(),
7247
+ expiresAt: exports_iso.datetime({ offset: true }).nullable(),
7235
7248
  message: string2(),
7236
7249
  providerNativeId: string2().nullish(),
7237
7250
  success: boolean2()
@@ -7253,10 +7266,12 @@ var zConnectionApproval = object({
7253
7266
  connectionIntegrationId: string2(),
7254
7267
  connectionServiceName: string2(),
7255
7268
  effectiveCapabilityIds: array(string2()),
7269
+ healthMessage: string2().nullable(),
7256
7270
  id: string2(),
7257
7271
  kind: _enum(["offer", "adoption"]),
7258
7272
  offerId: string2().nullish(),
7259
7273
  ownerCapabilityIds: array(string2()),
7274
+ ownerName: string2().nullable(),
7260
7275
  providerType: string2(),
7261
7276
  requestedAt: string2().nullish(),
7262
7277
  requesterDisplayName: string2().nullish(),
@@ -7317,13 +7332,6 @@ var zConnectionSubtoolEntry = object({
7317
7332
  toolSource: string2().nullish(),
7318
7333
  wrapperToolName: string2().nullish()
7319
7334
  });
7320
- var zAppSubtoolsResponse = object({
7321
- appName: string2(),
7322
- message: string2(),
7323
- subtools: array(zConnectionSubtoolEntry),
7324
- success: boolean2(),
7325
- totalSubtools: int()
7326
- });
7327
7335
  var zConnectionToolSummary = object({
7328
7336
  adminBlocked: int().optional().default(0),
7329
7337
  byEffectiveAccess: record(string2(), int()).optional(),
@@ -7857,6 +7865,266 @@ var zGemEditsPage = strictObject({
7857
7865
  edits: array(zGemEdit),
7858
7866
  nextCursor: string2().nullable()
7859
7867
  });
7868
+ var zGemGitSourceCallbackRequest = strictObject({
7869
+ code: string2().min(1).max(2048).optional(),
7870
+ installationId: string2().regex(/^[1-9][0-9]{0,19}$\/u/).optional(),
7871
+ setupAction: _enum(["install", "update", "request"]).optional(),
7872
+ state: string2().regex(/^[A-Za-z0-9_-]{43}$\/u/)
7873
+ });
7874
+ var zGemGitSourceCommand = union([
7875
+ strictObject({
7876
+ action: _enum(["refresh"])
7877
+ }),
7878
+ strictObject({
7879
+ action: _enum(["retry"]),
7880
+ idempotencyKey: string2().min(1).max(200).regex(/^[A-Za-z0-9._:-]+$\/u/),
7881
+ importId: uuid2()
7882
+ }),
7883
+ strictObject({
7884
+ action: _enum(["cancel"]),
7885
+ importId: uuid2()
7886
+ }),
7887
+ strictObject({
7888
+ action: _enum(["change_policy"]),
7889
+ automaticPublishing: boolean2(),
7890
+ expectedRevision: int().gte(0),
7891
+ previewsEnabled: boolean2()
7892
+ }),
7893
+ strictObject({
7894
+ action: _enum(["publish"]),
7895
+ expectedRevision: int().gte(0),
7896
+ importId: uuid2()
7897
+ }),
7898
+ strictObject({
7899
+ action: _enum(["create_branch_preview"]),
7900
+ commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7901
+ ref: string2().min(1).max(512)
7902
+ }),
7903
+ strictObject({
7904
+ action: _enum(["approve_preview"]),
7905
+ headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7906
+ previewId: uuid2(),
7907
+ resourcePolicyHash: string2().regex(/^[0-9a-f]{64}$\/iu/)
7908
+ }),
7909
+ strictObject({
7910
+ action: _enum(["expire_preview"]),
7911
+ previewId: uuid2()
7912
+ }),
7913
+ strictObject({
7914
+ action: _enum(["disconnect"]),
7915
+ expectedRevision: int().gte(0)
7916
+ }),
7917
+ strictObject({
7918
+ action: _enum(["reconnect"]),
7919
+ expectedRevision: int().gt(0)
7920
+ }),
7921
+ strictObject({
7922
+ action: _enum(["change_source"]),
7923
+ appDirectory: string2().max(240),
7924
+ commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7925
+ expectedRevision: int().gt(0),
7926
+ ref: string2().min(1).max(512)
7927
+ })
7928
+ ]);
7929
+ var zGemGitSourceConnectRequest = strictObject({
7930
+ appDirectory: string2().max(240),
7931
+ automaticPublishing: boolean2(),
7932
+ commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7933
+ connectionId: uuid2(),
7934
+ folderId: uuid2().nullish(),
7935
+ idempotencyKey: string2().min(1).max(200).regex(/^[A-Za-z0-9._:-]+$\/u/),
7936
+ previewsEnabled: boolean2(),
7937
+ ref: string2().min(1).max(512),
7938
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
7939
+ title: string2().min(1).max(256)
7940
+ });
7941
+ var zGemGitSourceImportError = strictObject({
7942
+ code: string2().min(1).max(128),
7943
+ message: string2().min(1).max(512)
7944
+ }).nullable();
7945
+ var zGemGitSourceImport = strictObject({
7946
+ attempt: int().gte(0),
7947
+ buildId: uuid2().nullable(),
7948
+ commitMessage: string2().max(16384),
7949
+ commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7950
+ completedAt: exports_iso.datetime({ offset: true }).nullable(),
7951
+ createdAt: exports_iso.datetime({ offset: true }),
7952
+ error: zGemGitSourceImportError,
7953
+ generation: int().gte(0),
7954
+ id: uuid2(),
7955
+ publication: _enum([
7956
+ "preparing",
7957
+ "awaiting_review",
7958
+ "authorized",
7959
+ "published",
7960
+ "superseded"
7961
+ ]),
7962
+ ref: string2().min(1).max(512),
7963
+ releaseId: uuid2().nullable(),
7964
+ sourceRevisionId: uuid2().nullable(),
7965
+ stage: _enum([
7966
+ "queued",
7967
+ "fetching",
7968
+ "validating",
7969
+ "needs_version",
7970
+ "preparing",
7971
+ "ready",
7972
+ "needs_access",
7973
+ "needs_configuration",
7974
+ "needs_resource_grant",
7975
+ "budget_blocked",
7976
+ "failed",
7977
+ "canceled",
7978
+ "superseded"
7979
+ ]),
7980
+ versionId: uuid2().nullable(),
7981
+ versionNumber: int().gte(1).nullable()
7982
+ });
7983
+ var zGemGitSourceInspectRequest = strictObject({
7984
+ appDirectory: string2().max(240),
7985
+ connectionId: uuid2(),
7986
+ ref: string2().min(1).max(512),
7987
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/)
7988
+ });
7989
+ var zGemGitSourceInspectionDiagnostic = strictObject({
7990
+ code: string2().min(1).max(128),
7991
+ message: string2().min(1).max(512),
7992
+ path: string2().max(512).nullable()
7993
+ });
7994
+ var zGemGitSourceInspection = strictObject({
7995
+ appDirectory: string2().max(240),
7996
+ candidateDirectories: array(string2().max(240)).max(5000),
7997
+ commitMessage: string2().max(16384),
7998
+ commitSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
7999
+ connectionId: uuid2(),
8000
+ diagnostics: array(zGemGitSourceInspectionDiagnostic).max(100),
8001
+ fileCount: int().gte(0).lte(5000),
8002
+ framework: string2().max(128).nullable(),
8003
+ proposedConfiguration: string2().max(65536).nullable(),
8004
+ ref: string2().min(1).max(512),
8005
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
8006
+ resourceNeeds: array(object({
8007
+ kind: string2().min(1).max(128),
8008
+ name: string2().min(1).max(512)
8009
+ })).max(100),
8010
+ state: _enum(["ready", "needs_configuration", "rejected"]),
8011
+ totalBytes: int().gte(0).lte(25165824)
8012
+ });
8013
+ var zGemGitSourcePreview = strictObject({
8014
+ approvedHeadSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
8015
+ canOpen: boolean2(),
8016
+ error: zGemGitSourceImportError,
8017
+ expiresAt: exports_iso.datetime({ offset: true }),
8018
+ fork: boolean2(),
8019
+ headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
8020
+ id: uuid2(),
8021
+ pullRequestNumber: int().gt(0).nullable(),
8022
+ ref: string2().min(1).max(512),
8023
+ state: _enum([
8024
+ "needs_commit_review",
8025
+ "queued",
8026
+ "building",
8027
+ "ready",
8028
+ "failed",
8029
+ "expired"
8030
+ ]),
8031
+ title: string2().max(16384)
8032
+ });
8033
+ var zGemGitSourcePreviewInspectRequest = strictObject({
8034
+ headSha: string2().regex(/^[0-9a-f]{40}$\/iu/)
8035
+ });
8036
+ var zGemGitSourcePreviewInspection = strictObject({
8037
+ appDirectory: string2().max(240),
8038
+ diagnostics: array(zGemGitSourceInspectionDiagnostic).max(100),
8039
+ headSha: string2().regex(/^[0-9a-f]{40}$\/iu/),
8040
+ previewId: uuid2(),
8041
+ proposedConfiguration: string2().max(65536).nullable(),
8042
+ ref: string2().min(1).max(512),
8043
+ resourceNeeds: array(object({
8044
+ kind: string2().min(1).max(128),
8045
+ name: string2().min(1).max(512)
8046
+ })).max(100),
8047
+ resourcePolicyHash: string2().regex(/^[0-9a-f]{64}$\/iu/).nullable(),
8048
+ state: _enum(["ready", "needs_configuration", "rejected"])
8049
+ });
8050
+ var zGemGitSourceRefs = array(object({
8051
+ kind: _enum(["branch", "tag"]),
8052
+ name: string2().min(1).max(512),
8053
+ ref: string2().min(1).max(512)
8054
+ })).max(2000);
8055
+ var zGemGitSourceRefsRequest = strictObject({
8056
+ connectionId: uuid2(),
8057
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/)
8058
+ });
8059
+ var zGemGitSourceRepository = strictObject({
8060
+ connectionId: uuid2(),
8061
+ defaultBranch: string2().min(1).max(512),
8062
+ installationId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
8063
+ name: string2().min(1).max(255),
8064
+ owner: string2().min(1).max(255),
8065
+ private: boolean2(),
8066
+ repositoryId: string2().regex(/^[1-9][0-9]{0,19}$\/u/),
8067
+ url: url().max(2048)
8068
+ });
8069
+ var zGemGitSourceConnection = strictObject({
8070
+ authorizeUrl: url().max(2048).nullable(),
8071
+ expiresAt: exports_iso.datetime({ offset: true }).nullable(),
8072
+ id: uuid2().nullable(),
8073
+ installUrl: url().max(2048).nullable(),
8074
+ manageUrl: url().max(2048).nullable(),
8075
+ nextPage: int().gte(1).lte(101).nullable(),
8076
+ repositories: array(zGemGitSourceRepository).max(100),
8077
+ state: _enum([
8078
+ "not_connected",
8079
+ "awaiting_github",
8080
+ "pending_approval",
8081
+ "authorizing",
8082
+ "connected",
8083
+ "needs_access",
8084
+ "expired"
8085
+ ])
8086
+ });
8087
+ var zGemGitSourceState = strictObject({
8088
+ allowedActions: array(_enum([
8089
+ "refresh",
8090
+ "retry",
8091
+ "cancel",
8092
+ "change_policy",
8093
+ "publish",
8094
+ "create_branch_preview",
8095
+ "approve_preview",
8096
+ "expire_preview",
8097
+ "disconnect",
8098
+ "reconnect",
8099
+ "change_source",
8100
+ "copy"
8101
+ ])).max(12),
8102
+ artifactId: uuid2(),
8103
+ binding: object({
8104
+ access: _enum(["active", "suspended", "revoked", "needs_access"]),
8105
+ active: boolean2(),
8106
+ appDirectory: string2().max(240),
8107
+ currentCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
8108
+ desiredCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
8109
+ generation: int().gte(0),
8110
+ id: uuid2(),
8111
+ lastBuiltCommitSha: string2().regex(/^[0-9a-f]{40}$\/iu/).nullable(),
8112
+ ref: string2().min(1).max(512),
8113
+ repository: zGemGitSourceRepository
8114
+ }).nullable(),
8115
+ imports: array(zGemGitSourceImport).max(50),
8116
+ policy: object({
8117
+ automaticPublishing: boolean2(),
8118
+ previewsEnabled: boolean2(),
8119
+ revision: int().gte(0)
8120
+ }).nullable(),
8121
+ previews: array(zGemGitSourcePreview).max(50)
8122
+ });
8123
+ var zGemGitSourceImportResponse = strictObject({
8124
+ artifactId: uuid2(),
8125
+ import: zGemGitSourceImport,
8126
+ state: zGemGitSourceState
8127
+ });
7860
8128
  var zGemLink = strictObject({
7861
8129
  buildId: string2().optional(),
7862
8130
  capabilityVersion: string2().optional(),
@@ -8374,7 +8642,7 @@ var zImpersonateResponse = object({
8374
8642
  var zIntegrationHealthDismissRequest = object({
8375
8643
  incidentIds: array(string2())
8376
8644
  });
8377
- var zIntegrationHealthExternalProvider = _enum(["none", "email", "slack"]).default("none");
8645
+ var zIntegrationHealthExternalProvider = _enum(["none", "email", "slack", "email_and_slack"]).default("none");
8378
8646
  var zIntegrationHealthMarkReadRequest = object({
8379
8647
  incidentIds: array(string2()).nullish()
8380
8648
  });
@@ -8459,7 +8727,16 @@ var zInvitationValidationResponse = object({
8459
8727
  workspaceSlug: string2()
8460
8728
  });
8461
8729
  var zLibraryBulkActionPreview = object({
8462
- action: string2(),
8730
+ action: _enum([
8731
+ "deleteForever",
8732
+ "downloadDatasets",
8733
+ "editLabels",
8734
+ "move",
8735
+ "moveToWorkspace",
8736
+ "removeFromLibrary",
8737
+ "restore",
8738
+ "setFavorite"
8739
+ ]),
8463
8740
  affectedCount: int(),
8464
8741
  confirmationRequired: boolean2(),
8465
8742
  conflictCount: int(),
@@ -8528,7 +8805,16 @@ var zLibraryBulkActionStartRequest = object({
8528
8805
  idempotencyKey: string2().min(1).max(128)
8529
8806
  });
8530
8807
  var zLibraryBulkJob = object({
8531
- action: string2(),
8808
+ action: _enum([
8809
+ "deleteForever",
8810
+ "downloadDatasets",
8811
+ "editLabels",
8812
+ "move",
8813
+ "moveToWorkspace",
8814
+ "removeFromLibrary",
8815
+ "restore",
8816
+ "setFavorite"
8817
+ ]),
8532
8818
  download: object({
8533
8819
  byteSize: int().nullable(),
8534
8820
  filename: string2().nullable(),
@@ -8548,7 +8834,14 @@ var zLibraryBulkJob = object({
8548
8834
  successful: int(),
8549
8835
  total: int()
8550
8836
  }),
8551
- status: string2()
8837
+ status: _enum([
8838
+ "completed",
8839
+ "completedWithErrors",
8840
+ "failed",
8841
+ "preview",
8842
+ "queued",
8843
+ "running"
8844
+ ])
8552
8845
  });
8553
8846
  var zLibraryBulkSelectionEntry = object({
8554
8847
  entryType: _enum(["item", "folder"]),
@@ -8556,7 +8849,16 @@ var zLibraryBulkSelectionEntry = object({
8556
8849
  });
8557
8850
  var zLibraryBulkSelectionPreview = object({
8558
8851
  affectedCount: int(),
8559
- availableActions: array(string2()),
8852
+ availableActions: array(_enum([
8853
+ "deleteForever",
8854
+ "downloadDatasets",
8855
+ "editLabels",
8856
+ "move",
8857
+ "moveToWorkspace",
8858
+ "removeFromLibrary",
8859
+ "restore",
8860
+ "setFavorite"
8861
+ ])),
8560
8862
  breakdown: object({
8561
8863
  ownedCount: int(),
8562
8864
  sharedReferenceCount: int(),
@@ -9332,6 +9634,7 @@ var zMcpConnectionOAuthStartRequest = object({
9332
9634
  var zMcpConnectionOAuthStartResponse = object({
9333
9635
  authorizationUrl: string2(),
9334
9636
  connectionId: string2(),
9637
+ expiresAt: exports_iso.datetime({ offset: true }),
9335
9638
  message: string2(),
9336
9639
  success: boolean2()
9337
9640
  });
@@ -9369,6 +9672,16 @@ var zExternalMemberResponse = object({
9369
9672
  userName: string2().nullish(),
9370
9673
  workspaceId: uuid2()
9371
9674
  });
9675
+ var zMemberWithBlocks = object({
9676
+ blockedCount: int(),
9677
+ email: string2(),
9678
+ memberUserId: string2(),
9679
+ name: string2()
9680
+ });
9681
+ var zMembersWithBlocksResponse = object({
9682
+ members: array(zMemberWithBlocks),
9683
+ success: boolean2()
9684
+ });
9372
9685
  var zModelCapabilities = object({
9373
9686
  codeGeneration: int().gte(1).lte(10),
9374
9687
  contextLength: int().gt(0),
@@ -9769,7 +10082,7 @@ var zPlatformToolExecuteResponse = object({
9769
10082
  error: string2().nullish(),
9770
10083
  errorCode: string2().nullish(),
9771
10084
  errorDetails: unknown().optional(),
9772
- errorId: uuid2().optional(),
10085
+ errorId: string2().optional(),
9773
10086
  errorMessage: string2().nullish(),
9774
10087
  executionTimeMs: int().nullish(),
9775
10088
  executorKind: string2().optional().default("platform"),
@@ -10611,15 +10924,15 @@ var zTeamResourcePolicyRequest = object({
10611
10924
  });
10612
10925
  var zTeamResponse = object({
10613
10926
  createdAt: exports_iso.datetime({ offset: true }),
10614
- createdBy: uuid2().nullish(),
10927
+ createdBy: string2().nullish(),
10615
10928
  description: string2().nullish(),
10616
- id: uuid2(),
10929
+ id: string2(),
10617
10930
  memberCount: int().optional().default(0),
10618
10931
  myRole: _enum(["member", "admin", "owner"]).nullish(),
10619
10932
  name: string2(),
10620
10933
  personaCount: int().optional().default(0),
10621
10934
  updatedAt: exports_iso.datetime({ offset: true }),
10622
- workspaceId: uuid2()
10935
+ workspaceId: string2()
10623
10936
  });
10624
10937
  var zTeamToolGuardrailRequest = object({
10625
10938
  blockWriteActions: boolean2().optional().default(false),
@@ -11003,7 +11316,21 @@ var zThreadQueuedInputView = object({
11003
11316
  clientMessageId: string2(),
11004
11317
  createdAtMs: int(),
11005
11318
  disposition: zThreadQueueDisposition,
11319
+ intent: union([
11320
+ object({
11321
+ kind: _enum(["send"])
11322
+ }),
11323
+ object({
11324
+ editOfMessageId: string2(),
11325
+ kind: _enum(["edit"])
11326
+ }),
11327
+ object({
11328
+ kind: _enum(["branch"]),
11329
+ parentMessageId: string2()
11330
+ })
11331
+ ]),
11006
11332
  parts: array(zThreadInputPart),
11333
+ position: int(),
11007
11334
  promotedRunId: string2().nullable(),
11008
11335
  queuedInputId: string2(),
11009
11336
  settledReason: _enum([
@@ -11011,6 +11338,7 @@ var zThreadQueuedInputView = object({
11011
11338
  "target_run_orphaned",
11012
11339
  "target_run_failed",
11013
11340
  "target_run_cancelled",
11341
+ "intent_target_gone",
11014
11342
  "unreachable_stale",
11015
11343
  "claim_fingerprint_stale"
11016
11344
  ]).nullable(),
@@ -11018,7 +11346,7 @@ var zThreadQueuedInputView = object({
11018
11346
  targetRunId: string2().nullable()
11019
11347
  });
11020
11348
  var zThreadQueueResponse = object({
11021
- queued: zThreadQueuedInputView.nullable()
11349
+ queued: array(zThreadQueuedInputView)
11022
11350
  });
11023
11351
  var zThreadQueueSteerNowResponse = object({
11024
11352
  queued: zThreadQueuedInputView
@@ -11328,6 +11656,7 @@ var zThreadToolIdentity = object({
11328
11656
  });
11329
11657
  var zThreadMessagePart = union([
11330
11658
  object({
11659
+ contentRef: string2().nullish(),
11331
11660
  mentions: array(object({
11332
11661
  agentId: string2().min(1),
11333
11662
  handle: string2().min(1)
@@ -11426,6 +11755,8 @@ var zThreadMessagePart = union([
11426
11755
  "tool_catalog_unavailable",
11427
11756
  "sandbox_unavailable",
11428
11757
  "sandbox_rate_limited",
11758
+ "tree_op_refused",
11759
+ "tree_rebuild_required",
11429
11760
  "stale_writer",
11430
11761
  "cancelled_by_user",
11431
11762
  "internal_error"
@@ -11569,6 +11900,16 @@ var zToolActionClassificationRequest = object({
11569
11900
  notes: string2().nullish(),
11570
11901
  subToolName: string2().min(1)
11571
11902
  });
11903
+ var zToolApprovalAnswerRequest = object({
11904
+ decision: _enum(["accept", "decline"])
11905
+ });
11906
+ var zToolApprovalAnswerResponse = object({
11907
+ alreadyResolved: boolean2(),
11908
+ approvalId: uuid2(),
11909
+ decidedAtMs: int(),
11910
+ decidedByUserId: uuid2().nullable(),
11911
+ decision: _enum(["approve", "approve_for_run", "deny", "cancel_run"])
11912
+ });
11572
11913
  var zToolDefinitionResponse = object({
11573
11914
  accountIdentifier: string2().nullish(),
11574
11915
  accountLabel: string2().nullish(),
@@ -11833,24 +12174,13 @@ var zTriggersResponse = object({
11833
12174
  success: boolean2(),
11834
12175
  triggers: array(record(string2(), unknown()))
11835
12176
  });
11836
- var zUpdateBillingRequest = object({
11837
- architectEnabled: boolean2().nullish(),
11838
- automationsEnabled: boolean2().nullish(),
11839
- automationsHourlyRequestLimit: int().nullish(),
11840
- automationsMonthlyPriceUsd: number2().nullish(),
11841
- automationsPlanTier: string2().nullish(),
11842
- automationsWeeklyBudgetUsd: number2().nullish(),
11843
- billingEmail: string2().nullish(),
12177
+ var zUpdateBillingRequest = strictObject({
12178
+ automationsWeeklyBudgetUsd: number2().gte(0).nullish(),
12179
+ billingEmail: email2().nullish(),
11844
12180
  billingName: string2().nullish(),
11845
- chatEnabled: boolean2().nullish(),
11846
- chatHourlyRequestLimit: int().nullish(),
11847
- chatMonthlyPriceUsd: number2().nullish(),
11848
- chatPlanTier: string2().nullish(),
11849
- chatWeeklyBudgetUsd: number2().nullish(),
11850
- markupPercentage: number2().nullish(),
11851
- planType: string2().nullish(),
11852
- spendingAlertThresholdUsd: number2().nullish(),
11853
- spendingLimitUsd: number2().nullish()
12181
+ chatWeeklyBudgetUsd: number2().gte(0).nullish(),
12182
+ spendingAlertThresholdUsd: number2().gte(0).nullish(),
12183
+ spendingLimitUsd: number2().gte(0).nullish()
11854
12184
  });
11855
12185
  var zUpdateCollectionRequest = object({
11856
12186
  description: string2().nullish(),
@@ -11951,15 +12281,21 @@ var zUploadResponse = object({
11951
12281
  size: int(),
11952
12282
  url: string2()
11953
12283
  });
12284
+ var zUsageMonthStatus = object({
12285
+ alert_threshold_usd: number2().nullable(),
12286
+ limit_usd: number2().nullable(),
12287
+ percentage: number2(),
12288
+ remaining_usd: number2().nullable(),
12289
+ resets_in_seconds: int(),
12290
+ used_usd: number2()
12291
+ });
11954
12292
  var zUsageStatusResponse = object({
11955
12293
  automations: record(string2(), unknown()),
11956
- chat: record(string2(), unknown())
12294
+ chat: record(string2(), unknown()),
12295
+ month: zUsageMonthStatus
11957
12296
  });
11958
12297
  var zUsageSummaryResponse = object({
11959
12298
  dailyUsage: array(unknown()),
11960
- hourlyRequestLimit: int(),
11961
- hourlyRequestsUsed: int(),
11962
- hourlyUsagePercentage: number2(),
11963
12299
  modelUsage: record(string2(), unknown()),
11964
12300
  serviceType: string2(),
11965
12301
  totalCachedTokens: int(),
@@ -12158,8 +12494,10 @@ var zWorkspaceConnectionOffer = object({
12158
12494
  decidedAt: string2().nullish(),
12159
12495
  decidedByUserId: string2().nullish(),
12160
12496
  deniedCapabilities: array(string2()),
12497
+ healthMessage: string2().nullable(),
12161
12498
  id: string2(),
12162
12499
  ownerCapabilities: array(string2()),
12500
+ ownerName: string2().nullable(),
12163
12501
  ownerUserId: string2(),
12164
12502
  providerType: string2(),
12165
12503
  state: _enum(["pending", "approved", "rejected", "withdrawn", "revoked"]),
@@ -12252,6 +12590,20 @@ var zAuthSessionState = union([
12252
12590
  workspaces: array(zWorkspaceLoginOption)
12253
12591
  })
12254
12592
  ]);
12593
+ var zWorkspaceMemberListItem = object({
12594
+ createdAt: string2().nullable(),
12595
+ email: string2(),
12596
+ homeWorkspaceId: string2().nullable(),
12597
+ id: string2(),
12598
+ memberType: _enum(["internal", "external"]),
12599
+ name: string2(),
12600
+ role: string2(),
12601
+ status: _enum(["active", "inactive"]),
12602
+ updatedAt: string2().nullable()
12603
+ });
12604
+ var zWorkspaceMembersResponse = object({
12605
+ members: array(zWorkspaceMemberListItem)
12606
+ });
12255
12607
  var zWorkspaceResourcePolicyRequest = object({
12256
12608
  enabled: boolean2().optional().default(false),
12257
12609
  personaRulesAlways: array(string2()).optional().default([]),
@@ -12677,7 +13029,6 @@ var zWhoamiApiAuthWhoamiGetHeaders = object({
12677
13029
  var zGetWorkspaceMembersApiAuthWorkspaceWorkspaceIdMembersGetPath = object({
12678
13030
  workspaceId: string2()
12679
13031
  });
12680
- var zGetWorkspaceMembersApiAuthWorkspaceWorkspaceIdMembersGetResponse = record(string2(), unknown());
12681
13032
  var zRemoveWorkspaceMemberApiAuthWorkspaceWorkspaceIdMembersUserIdDeletePath = object({
12682
13033
  workspaceId: string2(),
12683
13034
  userId: string2()
@@ -13000,6 +13351,18 @@ var zBackgroundSyncStatusApiBackgroundSyncStatusGetResponse = record(string2(),
13000
13351
  var zDeleteChatAccessConnectionApiChatAccessConnectionsProviderDeletePath = object({
13001
13352
  provider: string2()
13002
13353
  });
13354
+ var zGetChatAccessConnectionAttemptPath = object({
13355
+ provider: string2()
13356
+ });
13357
+ var zGetChatAccessConnectionAttemptResponse = object({
13358
+ attempt: union([zChatAccessDeviceCodeStart, zChatAccessBrowserPollStart]).nullable()
13359
+ });
13360
+ var zCancelChatAccessConnectionApiChatAccessConnectionsProviderCancelPostPath = object({
13361
+ provider: string2()
13362
+ });
13363
+ var zCancelChatAccessConnectionApiChatAccessConnectionsProviderCancelPostResponse = object({
13364
+ cancelled: boolean2()
13365
+ });
13003
13366
  var zCompleteChatAccessConnectionApiChatAccessConnectionsProviderCompletePostPath = object({
13004
13367
  provider: string2()
13005
13368
  });
@@ -15987,15 +16350,6 @@ var zGetLibraryVisitorItemPreviewImageApiPlatformLibraryVisitorSessionsItemsItem
15987
16350
  });
15988
16351
  var zGetLibraryVisitorItemPreviewImageApiPlatformLibraryVisitorSessionsItemsItemIdPreviewImagePostResponse = zFilePreviewImageResponse.and(unknown());
15989
16352
  var zVerifyLibraryVisitorSessionApiPlatformLibraryVisitorSessionsVerifyPostResponse = record(string2(), unknown());
15990
- var zListPinnedArtifactsApiPlatformPinnedArtifactsGetResponse = record(string2(), unknown());
15991
- var zUnpinArtifactApiPlatformPinnedArtifactsArtifactSlugDeletePath = object({
15992
- artifactSlug: string2()
15993
- });
15994
- var zUnpinArtifactApiPlatformPinnedArtifactsArtifactSlugDeleteResponse = record(string2(), unknown());
15995
- var zPinArtifactApiPlatformPinnedArtifactsArtifactSlugPostPath = object({
15996
- artifactSlug: string2()
15997
- });
15998
- var zPinArtifactApiPlatformPinnedArtifactsArtifactSlugPostResponse = record(string2(), unknown());
15999
16353
  var zSearchPromptsApiPlatformPromptsGetQuery = object({
16000
16354
  query: string2().nullish(),
16001
16355
  category: string2().nullish(),
@@ -16708,6 +17062,9 @@ var zThreadShareRevokePath = object({
16708
17062
  threadId: uuid2(),
16709
17063
  shareId: uuid2()
16710
17064
  });
17065
+ var zToolApprovalAnswerPath = object({
17066
+ questionId: uuid2()
17067
+ });
16711
17068
  var zListAvailableToolDefinitionsApiToolControlPlaneAvailableGetQuery = object({
16712
17069
  enabledOnly: _enum(["true", "false"]).optional().default("true")
16713
17070
  });
@@ -16853,6 +17210,48 @@ var zDeleteUserProfileApiUserProfilesDeleteResponse = record(string2(), string2(
16853
17210
  var zGetUserProfileByIdApiUserProfilesUserIdGetPath = object({
16854
17211
  userId: uuid2()
16855
17212
  });
17213
+ var zGetGemGitSourcePath = object({
17214
+ artifactId: uuid2()
17215
+ });
17216
+ var zCommandGemGitSourcePath = object({
17217
+ artifactId: uuid2()
17218
+ });
17219
+ var zInspectGemGitPreviewPath = object({
17220
+ artifactId: uuid2(),
17221
+ previewId: uuid2()
17222
+ });
17223
+ var zOpenGemGitPreviewPath = object({
17224
+ artifactId: uuid2(),
17225
+ previewId: uuid2()
17226
+ });
17227
+ var zOpenGemGitPreviewResponse = object({
17228
+ url: url()
17229
+ });
17230
+ var zListGemGitSourceConnectionsPath = object({
17231
+ workspaceId: uuid2()
17232
+ });
17233
+ var zListGemGitSourceConnectionsQuery = object({
17234
+ page: int().gte(1).lte(100).optional().default(1)
17235
+ });
17236
+ var zCompleteGemGitSourceConnectionPath = object({
17237
+ workspaceId: uuid2()
17238
+ });
17239
+ var zBeginGemGitSourceConnectionPath = object({
17240
+ workspaceId: uuid2()
17241
+ });
17242
+ var zGetGemGitSourceConnectionPath = object({
17243
+ workspaceId: uuid2(),
17244
+ setupId: uuid2()
17245
+ });
17246
+ var zImportGemGitSourcePath = object({
17247
+ workspaceId: uuid2()
17248
+ });
17249
+ var zInspectGemGitSourcePath = object({
17250
+ workspaceId: uuid2()
17251
+ });
17252
+ var zListGemGitSourceRefsPath = object({
17253
+ workspaceId: uuid2()
17254
+ });
16856
17255
  var zHealthCheckBasicAliasHealthGetResponse = object({
16857
17256
  status: string2()
16858
17257
  });
@@ -16876,6 +17275,8 @@ var zDeviceAuthorizationOauthDeviceCodePostBody = object({
16876
17275
  var zValidateMcpTokenOauthMcpTokenValidatePostResponse = record(string2(), unknown());
16877
17276
  var zRobotsTxtRobotsTxtGetResponse = string2();
16878
17277
 
17278
+ // ../../packages/types/src/mcp/gemResult.ts
17279
+ var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
16879
17280
  // src/json.ts
16880
17281
  function isRecord(value) {
16881
17282
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -16910,7 +17311,7 @@ function pickString(record2, keys) {
16910
17311
  // package.json
16911
17312
  var package_default = {
16912
17313
  name: "@uru-intelligence/cli",
16913
- version: "0.4.17",
17314
+ version: "0.4.19",
16914
17315
  private: false,
16915
17316
  description: "Uru full-platform command line interface",
16916
17317
  repository: {
@@ -17035,12 +17436,11 @@ function stripTerminalControl(value) {
17035
17436
  return out;
17036
17437
  }
17037
17438
 
17038
- // ../../packages/types/src/mcp/gemResult.ts
17039
- var GEM_RESULT_SCHEMA_V1 = "uru.gem.result.v1";
17040
17439
  // src/gem-result.ts
17041
17440
  function gemEnvelope(body, operation) {
17042
17441
  if (!isRecord(body) || body["schema"] !== GEM_RESULT_SCHEMA_V1) {
17043
- throw new CliError(`Gem ${operation} returned an unsupported result envelope schema.`);
17442
+ const seen = isRecord(body) && typeof body["schema"] === "string" ? body["schema"] : "none";
17443
+ 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.");
17044
17444
  }
17045
17445
  if (!Object.hasOwn(body, "result") || !Object.hasOwn(body, "error")) {
17046
17446
  throw new CliError(`Gem ${operation} returned an incomplete result envelope.`);
@@ -17169,6 +17569,7 @@ class UruApiClient {
17169
17569
  Accept: "application/json",
17170
17570
  "X-Uru-Client-Name": "uru-cli",
17171
17571
  "X-Uru-Client-Version": CLI_VERSION,
17572
+ "X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
17172
17573
  ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
17173
17574
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
17174
17575
  ...options.body === undefined ? {} : { "Content-Type": "application/json" }
@@ -17195,6 +17596,7 @@ class UruApiClient {
17195
17596
  Accept: "application/x-ndjson, application/json",
17196
17597
  "X-Uru-Client-Name": "uru-cli",
17197
17598
  "X-Uru-Client-Version": CLI_VERSION,
17599
+ "X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
17198
17600
  ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
17199
17601
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
17200
17602
  ...options.body === undefined ? {} : { "Content-Type": "application/json" }
@@ -17228,6 +17630,7 @@ class UruApiClient {
17228
17630
  Accept: "text/event-stream",
17229
17631
  "X-Uru-Client-Name": "uru-cli",
17230
17632
  "X-Uru-Client-Version": CLI_VERSION,
17633
+ "X-Uru-Gem-Result-Schema": GEM_RESULT_SCHEMA_V1,
17231
17634
  ...options.cliOperation === undefined ? {} : { "X-Uru-Client-Operation": options.cliOperation },
17232
17635
  ...this.workspaceId === undefined ? {} : { "X-Uru-Workspace-Id": this.workspaceId },
17233
17636
  ...options.lastEventId === undefined || options.lastEventId === "" ? {} : { "Last-Event-ID": options.lastEventId }