@warmhub/sdk-ts 0.79.0 → 0.80.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
|
@@ -1349,7 +1349,7 @@ type SubmittedStreamResult = {
|
|
|
1349
1349
|
}>;
|
|
1350
1350
|
};
|
|
1351
1351
|
/**
|
|
1352
|
-
*
|
|
1352
|
+
* Stream identity metadata for caller-managed streamed commit submissions.
|
|
1353
1353
|
* @see https://docs.warmhub.ai/sdk-reference/type-aliases/streamcontinuationstate/
|
|
1354
1354
|
*/
|
|
1355
1355
|
type StreamContinuationState = {
|
|
@@ -1860,7 +1860,7 @@ type ReviseInput = Omit<ReviseOp, 'operation'> | ReviseOp;
|
|
|
1860
1860
|
*
|
|
1861
1861
|
* Use this when a caller needs to build a batch incrementally, run local
|
|
1862
1862
|
* preflight checks, optionally validate data against known shapes, and submit
|
|
1863
|
-
* through the SDK stream-append path with
|
|
1863
|
+
* through the SDK stream-append path with stream identity and retry options.
|
|
1864
1864
|
*
|
|
1865
1865
|
* The builder is not a promise — there is no `build()` method, and `await cb`
|
|
1866
1866
|
* alone will not submit anything. Finalize the batch by calling
|
|
@@ -1973,7 +1973,7 @@ declare class OperationBuilder {
|
|
|
1973
1973
|
* @param params.message Optional commit message.
|
|
1974
1974
|
* @param params.committer Optional wref identifying the actor on whose behalf the write is made.
|
|
1975
1975
|
* @param params.chunkSize Maximum operations per stream append.
|
|
1976
|
-
* @param params.streamId
|
|
1976
|
+
* @param params.streamId Caller-managed stream identity for observability and diagnostic correlation.
|
|
1977
1977
|
* @param params.returnRepoSeq Return the writer's own repository-sequence acknowledgement.
|
|
1978
1978
|
* @param params.retry Retry policy for transient first-chunk failures, or `false` to disable automatic retry.
|
|
1979
1979
|
* @see https://docs.warmhub.ai/sdk-reference/classes/operationbuilder/#commit
|
|
@@ -3724,7 +3724,7 @@ declare class WarmHubClient {
|
|
|
3724
3724
|
* @param opts.componentRef Attribute writes to an installed component, identified by its `Org/Name` ref, when the caller is allowed to claim it.
|
|
3725
3725
|
* @param opts.chunkSize Maximum operations per stream append. Values are clamped by the SDK.
|
|
3726
3726
|
* @param opts.skipExisting Return `noop` for add operations whose target already exists.
|
|
3727
|
-
* @param opts.streamId
|
|
3727
|
+
* @param opts.streamId Caller-managed stream identity for observability and diagnostic correlation.
|
|
3728
3728
|
* @param opts.returnRepoSeq Return the sequence allocated to the writer's
|
|
3729
3729
|
* own commit acknowledgement. This does not disclose a reader-facing
|
|
3730
3730
|
* repository head. Multi-chunk submissions return the last sequence
|
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-
|
|
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-OVJASB3M.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-
|
|
2
|
-
export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-
|
|
1
|
+
import { WarmHubClient } from './chunk-OVJASB3M.js';
|
|
2
|
+
export { DEFAULT_API_URL, SDK_VERSION, WarmHubClient, WarmHubError, toWarmHubError } from './chunk-OVJASB3M.js';
|
|
3
3
|
import { createContext, useMemo, useState, useEffect, useContext } from 'react';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warmhub/sdk-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.80.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,7 +50,9 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
|
-
"build": "
|
|
53
|
+
"build": "if [ \"${WARMHUB_TEST_RUNTIME_BUILD:-}\" = \"1\" ]; then bun run build:test-runtime; else bun run build:full; fi",
|
|
54
|
+
"build:full": "tsc --noEmit && tsup && bun run scripts/inject-doc-links.ts",
|
|
55
|
+
"build:test-runtime": "tsup --config tsup.test-runtime.config.ts",
|
|
54
56
|
"generate:api-contract": "bun run scripts/generate-api-contract.ts",
|
|
55
57
|
"generate:backend-types": "bun run scripts/generate-backend-types.ts",
|
|
56
58
|
"audit:api-contract": "bun run scripts/audit-api-contract.ts",
|