@warmhub/sdk-ts 0.62.0 → 0.63.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/index.d.ts CHANGED
@@ -185,6 +185,7 @@ type ActionAttempt = {
185
185
  type ActionLiveFeedResult = {
186
186
  items: Array<{
187
187
  subscriptionName: string;
188
+ deliveryId: string;
188
189
  runId?: string;
189
190
  status: string;
190
191
  matchedOperationIndexes: Array<number>;
@@ -433,6 +434,44 @@ type Capabilities = {
433
434
  minSupportedSdk: string;
434
435
  features: Record<string, boolean>;
435
436
  };
437
+ type HomepageFeaturedListsResult$1 = {
438
+ lists: Array<{
439
+ slug: string;
440
+ title: string;
441
+ description?: string;
442
+ surface?: string;
443
+ itemKind?: 'repo' | 'component' | 'skill';
444
+ sortOrder?: number;
445
+ items: Array<{
446
+ kind: 'repo' | 'component' | 'skill';
447
+ slug: string;
448
+ title: string;
449
+ description?: string;
450
+ sortOrder: number;
451
+ tagline?: string;
452
+ category?: string;
453
+ ctaLabel?: string;
454
+ curationReason?: string;
455
+ featuredSince?: string;
456
+ orgName?: string;
457
+ repoName?: string;
458
+ componentName?: string;
459
+ componentRef?: string;
460
+ marketplace?: string;
461
+ skillName?: string;
462
+ packageName?: string;
463
+ installCommand?: string;
464
+ externalUrl?: string;
465
+ createdAt?: number;
466
+ total?: number;
467
+ byKind?: {
468
+ shape: number;
469
+ thing: number;
470
+ assertion: number;
471
+ };
472
+ }>;
473
+ }>;
474
+ };
436
475
  type StreamAppendInput$1 = {
437
476
  orgName: string;
438
477
  repoName: string;
@@ -539,6 +578,16 @@ type StreamAppendResult$1 = {
539
578
  } | {
540
579
  reason: 'lease_held';
541
580
  leaseExpiresAt: string;
581
+ } | {
582
+ reason: 'validation_failed';
583
+ issues: Array<{
584
+ path: string;
585
+ message: string;
586
+ }>;
587
+ } | {
588
+ reason: 'rate_limit_reset';
589
+ retryAfterSeconds: number;
590
+ resetAt: string;
542
591
  };
543
592
  };
544
593
  resolvedName?: string;
@@ -1724,6 +1773,7 @@ declare class OperationBuilder {
1724
1773
  retry?: RetryPolicyOptions | false;
1725
1774
  }): Promise<OperationSubmitResult$1>;
1726
1775
  private assertNotSubmitted;
1776
+ private assertCanModify;
1727
1777
  }
1728
1778
 
1729
1779
  /** @internal */
@@ -1860,7 +1910,7 @@ type CoreErrorKind = 'BACKEND' | 'NOT_FOUND' | 'FORBIDDEN' | 'UNAUTHENTICATED' |
1860
1910
  * Stable kinds (members of `CoreErrorKind`):
1861
1911
  *
1862
1912
  * - `BACKEND` — cause: server-side failure that did not carry a more specific domain code (tRPC error data has no `data.warmhub.code`, REST status mapped to the catch-all default — primarily 5xx that lack a body `error.code` — or an SDK transport throw such as a non-OK SSE response); retryable: true; action: retry with backoff and surface the message if it persists; if the underlying error is a deterministic local-adapter failure (e.g. a misconfigured custom `fetch`), fix the adapter rather than retrying; origin: SDK tRPC fallback, `httpStatusToWarmHubCode` default for unmapped HTTP statuses, SSE transport, unknown thrown values inside tRPC paths (custom-`fetch` adapter throws are normalized to `BACKEND` only on tRPC surfaces — on REST and `ping` surfaces the raw error escapes uncaught). REST responses with a parseable body surface as their pass-through `error.code` (typically `INTERNAL_ERROR`), and REST 4xx responses without a body code fall through to the HTTP-status mapping (`NOT_FOUND`, `UNAUTHENTICATED`, `FORBIDDEN`, `CONFLICT`, `VALIDATION_ERROR`, `RATE_LIMITED`), not `BACKEND`.
1863
- * - `NOT_FOUND` — cause: a referenced entity (repo, org, thing, shape, subscription, credential set, etc.) is missing or the caller cannot see it; retryable: false; action: verify the identifier the call site used (wref, slug, name) and escalate to a caller with read access if the entity should exist; origin: SDK reads across all surfaces, commit pipeline, REST query endpoints
1913
+ * - `NOT_FOUND` — cause: a referenced entity (repo, org, thing, shape, subscription, credential set, etc.) is missing or the caller cannot see it, or the client hit a removed/renamed tRPC procedure path or unsupported method because its route contract is out of sync with the backend; retryable: false; action: verify the identifier the call site used (wref, slug, name) and escalate to a caller with read access if the entity should exist; when the message or hint names a procedure/method mismatch, upgrade the WarmHub client to match the backend; origin: SDK reads across all surfaces, commit pipeline, REST query endpoints, tRPC transport 404/405 route-missing/version-skew failures
1864
1914
  * - `FORBIDDEN` — cause: caller is authenticated but lacks the required permission; retryable: false; action: request the missing permission or use a token with broader scope; origin: SDK + REST authorization middleware
1865
1915
  * - `UNAUTHENTICATED` — cause: missing, expired, or invalid bearer token on a tRPC or REST call; retryable: false; action: mint a fresh PAT and update whichever client option the application wires it into (`auth.getToken` callback or `accessToken` — the SDK does not read `WH_TOKEN` or any env var directly); `wh auth login` only refreshes the CLI's on-disk credentials and does not propagate to a constructed SDK client; for export tickets, remint via the appropriate backend endpoint; origin: SDK + REST auth middleware. Live-ticket SSE auth failures surface as `BACKEND`, not `UNAUTHENTICATED`, because `openSse` maps every non-OK SSE response to `BACKEND`.
1866
1916
  * - `VALIDATION_ERROR` — cause: input failed schema, shape, content-length, or read-pagination cursor validation; retryable: false; action: fix the offending field per the error message, or restart the read without a stale/non-advancing cursor; origin: commit pipeline, SDK writes, SDK read pagination helpers, client-side content limits
@@ -2048,6 +2098,14 @@ type ActionLeaseOp = {
2048
2098
  ok: false;
2049
2099
  reason: string;
2050
2100
  };
2101
+ /** @internal */
2102
+ type ActionDeliveryTarget = string | {
2103
+ runId: string;
2104
+ deliveryId?: never;
2105
+ } | {
2106
+ deliveryId: string;
2107
+ runId?: never;
2108
+ };
2051
2109
  /**
2052
2110
  * Result returned by in-place rename mutations: `client.shape.rename` and
2053
2111
  * `client.thing.rename`. A rename patches the identity field directly and
@@ -2058,6 +2116,8 @@ type ActionLeaseOp = {
2058
2116
  * @see https://docs.warmhub.ai/data-modeling/naming-as-navigation/
2059
2117
  */
2060
2118
  type RenameResult = RenameResult$1;
2119
+ /** @internal Curated lists returned by `client.homepage.featuredLists()`. */
2120
+ type HomepageFeaturedListsResult = HomepageFeaturedListsResult$1;
2061
2121
  /**
2062
2122
  * A single entry in the indexed-fields report.
2063
2123
  * @see https://docs.warmhub.ai/sdk-reference/type-aliases/indexedfieldentry/
@@ -3100,6 +3160,16 @@ declare class WarmHubClient {
3100
3160
  */
3101
3161
  whoami: () => Promise<WhoamiInfo>;
3102
3162
  };
3163
+ /**
3164
+ * Homepage surfaces.
3165
+ * @see https://docs.warmhub.ai/sdk-reference/classes/warmhubclient/#homepage
3166
+ */
3167
+ readonly homepage: {
3168
+ /**
3169
+ * Return manually curated featured homepage lists.
3170
+ */
3171
+ featuredLists: () => Promise<HomepageFeaturedListsResult$1>;
3172
+ };
3103
3173
  /**
3104
3174
  * Effective-access resolution for UI gating and service-side authorization.
3105
3175
  * First-party surface (web UI + whedge edge); the underlying `access.resolve`
@@ -3745,13 +3815,13 @@ declare class WarmHubClient {
3745
3815
  */
3746
3816
  releaseLease: (orgName: string, repoName: string, subscriptionName: string, holderId: string) => Promise<ActionLeaseOp>;
3747
3817
  /**
3748
- * Claim one action delivery run for processing.
3818
+ * Claim one action delivery for processing.
3749
3819
  */
3750
- claimDelivery: (orgName: string, repoName: string, runId: string, holderId: string) => Promise<ActionLeaseOp>;
3820
+ claimDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
3751
3821
  /**
3752
- * Mark one claimed action delivery run as complete.
3822
+ * Mark one claimed action delivery as complete.
3753
3823
  */
3754
- completeDelivery: (orgName: string, repoName: string, runId: string, holderId: string) => Promise<ActionLeaseOp>;
3824
+ completeDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
3755
3825
  /**
3756
3826
  * Query the live delivery feed for a subscription.
3757
3827
  *
@@ -4318,13 +4388,13 @@ declare class WarmHubClient {
4318
4388
  */
4319
4389
  releaseLease: (orgName: string, repoName: string, subscriptionName: string, holderId: string) => Promise<ActionLeaseOp>;
4320
4390
  /**
4321
- * Claim one action delivery run for processing.
4391
+ * Claim one action delivery for processing.
4322
4392
  */
4323
- claimDelivery: (orgName: string, repoName: string, runId: string, holderId: string) => Promise<ActionLeaseOp>;
4393
+ claimDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
4324
4394
  /**
4325
- * Mark one claimed action delivery run as complete.
4395
+ * Mark one claimed action delivery as complete.
4326
4396
  */
4327
- completeDelivery: (orgName: string, repoName: string, runId: string, holderId: string) => Promise<ActionLeaseOp>;
4397
+ completeDelivery: (orgName: string, repoName: string, target: ActionDeliveryTarget, holderId: string) => Promise<ActionLeaseOp>;
4328
4398
  /**
4329
4399
  * Query the live delivery feed for a subscription.
4330
4400
  *
@@ -4373,4 +4443,4 @@ declare class WarmHubClient {
4373
4443
  private watchRepoQuery;
4374
4444
  }
4375
4445
 
4376
- export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAbout, type CollectionAddOp, type CollectionAddType, type CollectionTag, type ComponentInfo, type ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, type ErrorKind, type FilterOptions, type FilterResult, type FunctionLogMode, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type HeadResult, type HistoryResult, type IndexedFieldEntry, type IndexedFieldsReport, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, type Operation, OperationBuilder, type OperationBuilderAddInput, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationSubmitResult, type OrgAccessResult, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, type RefLink, type RefsOptions, type RefsResult, type RenameOperation, type RenameResult, type RepoAccessResult, type RepoConfigureStatsView, type RepoDescribeResult, type RepoInfo, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RequestEvent, type ResolveWrefResult, type RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeReviseOptions, type ShapeValidatorResult, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, WarmHubClient, type WarmHubClientOptions, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
4446
+ export { type AboutOptions, type AboutResult, type AccessResolveInput, type AccessResolveResult, type AccessTokenProvider, type ActionAttemptInfo, type ActionDeliveryTarget, type ActionLeaseAcquire, type ActionLeaseOp, type ActionListNotificationsOptions, type ActionListRunsOptions, type ActionLiveFeed, type ActionLiveFeedOptions, type ActionNotificationInfo, type ActionRunInfo, type ActionRunStatsInfo, type ActionRunStatsOptions, type AddOp, type AddOperation, AllStreamOperationsFailedError, type Assertion, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, type CliCallSecrets, CliCallVerificationError, type CliCallVerificationFailureReason, type CollectionAbout, type CollectionAddOp, type CollectionAddType, type CollectionTag, type ComponentInfo, type ComponentInstallResult, type ComponentList, type ComponentListOptions, type ComponentUninstallResult, type ComponentView, type CoreErrorKind, type CountOptions, type CountResult, type CredentialAuditEntry, type CredentialDeleteResult, type CredentialGrantResult, type CredentialInfo, type CredentialKeyMutationResult, type CredentialRevokeResult, type CredentialUngrantResult, type CurrentUserInfo, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, type ErrorKind, type FilterOptions, type FilterResult, type FunctionLogMode, type GlobalSearchOptions, type GlobalSearchResult, type GlobalSearchResultItem, type HeadResult, type HistoryResult, type HomepageFeaturedListsResult, type IndexedFieldEntry, type IndexedFieldsReport, type LiveHandle, type LiveRepoEvent, type LiveSubscriptionLogOptions, type LiveThingHeadOptions, type LiveThingHistoryOptions, type LiveWatchResult, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, type Operation, OperationBuilder, type OperationBuilderAddInput, type OperationBuilderClient, type OperationBuilderOp, type OperationBuilderOptions, type OperationSubmitResult, type OrgAccessResult, type OrgInfo, type OrgList, type OrgListMembersOptions, type OrgListOptions, type OrgMemberInfo, type OrgMemberList, type OrgRef, type OrgRole, type Page, type PageRequest, PartialStreamSubmissionError, type PingResult, type RefLink, type RefsOptions, type RefsResult, type RenameOperation, type RenameResult, type RepoAccessResult, type RepoConfigureStatsView, type RepoDescribeResult, type RepoInfo, type RepoList, type RepoListForCallerOptions, type RepoListOptions, type RepoListPageOptions, type RepoListPageResult, type RepoLocator, type RepoRecentInfo, type RepoRef, type RepoShapeInstanceCountsView, type RepoSort, type RepoStatsBatchResult, type RepoStatsView, type RepoWithStatsInfo, type RequestEvent, type ResolveWrefResult, type RetractOp, type RetractOperation, type RetryPolicyOptions, type ReviseOp, type ReviseOperation, SDK_VERSION, type SearchOptions, type SearchResult, type Shape, type ShapeChange, type ShapeCreateOptions, type ShapeFields, type ShapeGetOptions, type ShapeHistory, type ShapeHistoryOptions, type ShapeList, type ShapeListOptions, type ShapeRef, type ShapeRemove, type ShapeReviseOptions, type ShapeValidatorResult, type StreamAppendInput, type StreamAppendResult, type StreamContinuationState, type SubscriptionBindCredentialsResult, type SubscriptionCompatCreateInput, type SubscriptionCompatUpdateInput, type SubscriptionInfo, type SubscriptionList, type SubscriptionUnbindCredentialsResult, type SynthesizedRepoContent, type ThingDetail, type ThingGet, type ThingGetManyResult, type ThingGetOptions, type ThingGetWithLease, type ThingGraphOptions, type ThingGraphResult, type ThingGraphValue, type ThingHead, type ThingHeadOptions, type ThingHeadRequest, type ThingHeadVersionsResult, type ThingHistory, type ThingHistoryOptions, type ThingItem, type ThingMetadata, type TokenInfo, type TokenResult, type UndeclaredFieldsWarning, type ValidationDiagnostic, type ValidationResult, type VerifiedCliCall, WarmHubClient, type WarmHubClientOptions, WarmHubError, type WarmHubErrorDetails, type WherePredicate, type WhoamiInfo, type WhoamiScopeEntry, type WireScopeEntry, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall } from './chunk-CN4352BX.js';
1
+ export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall } from './chunk-JPX7ZWWE.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/dist/react.js CHANGED
@@ -1,5 +1,5 @@
1
- import { WarmHubClient } from './chunk-CN4352BX.js';
2
- export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-CN4352BX.js';
1
+ import { WarmHubClient } from './chunk-JPX7ZWWE.js';
2
+ export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-JPX7ZWWE.js';
3
3
  import { createContext, useMemo, useState, useEffect, useContext } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -34,18 +34,19 @@ function AuthSyncGate({
34
34
  client,
35
35
  children
36
36
  }) {
37
- const [synced, setSynced] = useState(false);
37
+ const [syncedClient, setSyncedClient] = useState(null);
38
+ const synced = auth.isAuthenticated && syncedClient === client;
38
39
  useEffect(() => {
39
40
  if (!auth.isAuthenticated) {
40
- setSynced(false);
41
+ setSyncedClient(null);
41
42
  return;
42
43
  }
43
44
  let cancelled = false;
44
45
  client.auth.sync().then(() => {
45
- if (!cancelled) setSynced(true);
46
+ if (!cancelled) setSyncedClient(client);
46
47
  }).catch((err) => {
47
48
  console.error("auth.sync failed:", err);
48
- if (!cancelled) setSynced(true);
49
+ if (!cancelled) setSyncedClient(client);
49
50
  });
50
51
  return () => {
51
52
  cancelled = true;
package/dist/react.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react/provider.tsx"],"names":[],"mappings":";;;;;AAiCA,IAAM,aAAA,GAAgB,cAAoC,IAAI,CAAA;AAC9D,IAAM,cAAc,aAAA,CAAgC;AAAA,EAClD,eAAA,EAAiB,KAAA;AAAA,EACjB,SAAA,EAAW;AACb,CAAC,CAAA;AAGM,SAAS,eAAA,CAAgB;AAAA,EAC9B,MAAA;AAAA,EACA,Q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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmhub/sdk-ts",
3
- "version": "0.62.0",
3
+ "version": "0.63.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "The TypeScript SDK for WarmHub — create repos, commit and query data, and compound knowledge with your AI agents.",
@@ -50,8 +50,7 @@
50
50
  }
51
51
  },
52
52
  "scripts": {
53
- "prebuild": "tsc --noEmit",
54
- "build": "tsup && bun run scripts/inject-doc-links.ts",
53
+ "build": "tsc --noEmit && tsup && bun run scripts/inject-doc-links.ts",
55
54
  "generate:api-contract": "bun run scripts/generate-api-contract.ts",
56
55
  "generate:backend-types": "bun run scripts/generate-backend-types.ts",
57
56
  "audit:api-contract": "bun run scripts/audit-api-contract.ts",
@@ -86,6 +85,7 @@
86
85
  "@trpc/client": "11.17.0"
87
86
  },
88
87
  "devDependencies": {
88
+ "@trpc/server": "11.17.0",
89
89
  "@vitest/coverage-v8": "catalog:",
90
90
  "@types/react": "catalog:",
91
91
  "react": "19.2.6",