@truefoundry/trueforge-sdk 0.1.0 → 0.1.1
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/README.md +7 -2
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/sessions/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/sessions/client/Client.js +17 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/sessions/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/sessions/client/Client.mjs +17 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TrueForge TypeScript Library
|
|
2
2
|
|
|
3
3
|
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Truefoundry%2FTypeScript)
|
|
4
4
|
[](https://www.npmjs.com/package/@truefoundry/trueforge-sdk)
|
|
5
5
|
|
|
6
|
-
TypeScript client for the TrueForge
|
|
6
|
+
TypeScript client for the TrueForge Agent Harness Server: a self-hosted runtime that executes agent turns and streams them over Server-Sent Events.
|
|
7
7
|
|
|
8
8
|
When auth is enabled on the server, pass an ID token via the optional `token` client option (`Authorization: Bearer`).
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Table of Contents
|
|
12
12
|
|
|
13
|
+
- [Documentation](#documentation)
|
|
13
14
|
- [Installation](#installation)
|
|
14
15
|
- [Reference](#reference)
|
|
15
16
|
- [Usage](#usage)
|
|
@@ -31,6 +32,10 @@ When auth is enabled on the server, pass an ID token via the optional `token` cl
|
|
|
31
32
|
- [Runtime Compatibility](#runtime-compatibility)
|
|
32
33
|
- [Contributing](#contributing)
|
|
33
34
|
|
|
35
|
+
## Documentation
|
|
36
|
+
|
|
37
|
+
API reference documentation is available [here](https://trueforge.dev/api/use-agent).
|
|
38
|
+
|
|
34
39
|
## Installation
|
|
35
40
|
|
|
36
41
|
```sh
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@truefoundry/trueforge-sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.1.
|
|
47
|
-
"User-Agent": "@truefoundry/trueforge-sdk/0.1.
|
|
46
|
+
"X-Fern-SDK-Version": "0.1.1",
|
|
47
|
+
"User-Agent": "@truefoundry/trueforge-sdk/0.1.1",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -171,6 +171,7 @@ export declare class SessionsClient {
|
|
|
171
171
|
* @throws {@link TrueForge.ForbiddenError}
|
|
172
172
|
* @throws {@link TrueForge.NotFoundError}
|
|
173
173
|
* @throws {@link TrueForge.PreconditionFailedError}
|
|
174
|
+
* @throws {@link TrueForge.ContentTooLargeError}
|
|
174
175
|
* @throws {@link TrueForge.UnprocessableEntityError}
|
|
175
176
|
* @throws {@link errors.TrueForgeError}
|
|
176
177
|
* @throws {@link errors.TrueForgeTimeoutError}
|
|
@@ -866,6 +866,14 @@ class SessionsClient {
|
|
|
866
866
|
skipValidation: true,
|
|
867
867
|
breadcrumbsPrefix: ["response"],
|
|
868
868
|
}), _response.rawResponse);
|
|
869
|
+
case 413:
|
|
870
|
+
throw new TrueForge.ContentTooLargeError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
871
|
+
unrecognizedObjectKeys: "passthrough",
|
|
872
|
+
allowUnrecognizedUnionMembers: true,
|
|
873
|
+
allowUnrecognizedEnumValues: true,
|
|
874
|
+
skipValidation: true,
|
|
875
|
+
breadcrumbsPrefix: ["response"],
|
|
876
|
+
}), _response.rawResponse);
|
|
869
877
|
case 422:
|
|
870
878
|
throw new TrueForge.UnprocessableEntityError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
871
879
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -900,6 +908,7 @@ class SessionsClient {
|
|
|
900
908
|
* @throws {@link TrueForge.ForbiddenError}
|
|
901
909
|
* @throws {@link TrueForge.NotFoundError}
|
|
902
910
|
* @throws {@link TrueForge.PreconditionFailedError}
|
|
911
|
+
* @throws {@link TrueForge.ContentTooLargeError}
|
|
903
912
|
* @throws {@link TrueForge.UnprocessableEntityError}
|
|
904
913
|
* @throws {@link errors.TrueForgeError}
|
|
905
914
|
* @throws {@link errors.TrueForgeTimeoutError}
|
|
@@ -980,6 +989,14 @@ class SessionsClient {
|
|
|
980
989
|
skipValidation: true,
|
|
981
990
|
breadcrumbsPrefix: ["response"],
|
|
982
991
|
}), _response.rawResponse);
|
|
992
|
+
case 413:
|
|
993
|
+
throw new TrueForge.ContentTooLargeError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
994
|
+
unrecognizedObjectKeys: "passthrough",
|
|
995
|
+
allowUnrecognizedUnionMembers: true,
|
|
996
|
+
allowUnrecognizedEnumValues: true,
|
|
997
|
+
skipValidation: true,
|
|
998
|
+
breadcrumbsPrefix: ["response"],
|
|
999
|
+
}), _response.rawResponse);
|
|
983
1000
|
case 422:
|
|
984
1001
|
throw new TrueForge.UnprocessableEntityError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
985
1002
|
unrecognizedObjectKeys: "passthrough",
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@truefoundry/trueforge-sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.1.
|
|
10
|
-
"User-Agent": "@truefoundry/trueforge-sdk/0.1.
|
|
9
|
+
"X-Fern-SDK-Version": "0.1.1",
|
|
10
|
+
"User-Agent": "@truefoundry/trueforge-sdk/0.1.1",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -171,6 +171,7 @@ export declare class SessionsClient {
|
|
|
171
171
|
* @throws {@link TrueForge.ForbiddenError}
|
|
172
172
|
* @throws {@link TrueForge.NotFoundError}
|
|
173
173
|
* @throws {@link TrueForge.PreconditionFailedError}
|
|
174
|
+
* @throws {@link TrueForge.ContentTooLargeError}
|
|
174
175
|
* @throws {@link TrueForge.UnprocessableEntityError}
|
|
175
176
|
* @throws {@link errors.TrueForgeError}
|
|
176
177
|
* @throws {@link errors.TrueForgeTimeoutError}
|
|
@@ -830,6 +830,14 @@ export class SessionsClient {
|
|
|
830
830
|
skipValidation: true,
|
|
831
831
|
breadcrumbsPrefix: ["response"],
|
|
832
832
|
}), _response.rawResponse);
|
|
833
|
+
case 413:
|
|
834
|
+
throw new TrueForge.ContentTooLargeError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
835
|
+
unrecognizedObjectKeys: "passthrough",
|
|
836
|
+
allowUnrecognizedUnionMembers: true,
|
|
837
|
+
allowUnrecognizedEnumValues: true,
|
|
838
|
+
skipValidation: true,
|
|
839
|
+
breadcrumbsPrefix: ["response"],
|
|
840
|
+
}), _response.rawResponse);
|
|
833
841
|
case 422:
|
|
834
842
|
throw new TrueForge.UnprocessableEntityError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
835
843
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -864,6 +872,7 @@ export class SessionsClient {
|
|
|
864
872
|
* @throws {@link TrueForge.ForbiddenError}
|
|
865
873
|
* @throws {@link TrueForge.NotFoundError}
|
|
866
874
|
* @throws {@link TrueForge.PreconditionFailedError}
|
|
875
|
+
* @throws {@link TrueForge.ContentTooLargeError}
|
|
867
876
|
* @throws {@link TrueForge.UnprocessableEntityError}
|
|
868
877
|
* @throws {@link errors.TrueForgeError}
|
|
869
878
|
* @throws {@link errors.TrueForgeTimeoutError}
|
|
@@ -944,6 +953,14 @@ export class SessionsClient {
|
|
|
944
953
|
skipValidation: true,
|
|
945
954
|
breadcrumbsPrefix: ["response"],
|
|
946
955
|
}), _response.rawResponse);
|
|
956
|
+
case 413:
|
|
957
|
+
throw new TrueForge.ContentTooLargeError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
958
|
+
unrecognizedObjectKeys: "passthrough",
|
|
959
|
+
allowUnrecognizedUnionMembers: true,
|
|
960
|
+
allowUnrecognizedEnumValues: true,
|
|
961
|
+
skipValidation: true,
|
|
962
|
+
breadcrumbsPrefix: ["response"],
|
|
963
|
+
}), _response.rawResponse);
|
|
947
964
|
case 422:
|
|
948
965
|
throw new TrueForge.UnprocessableEntityError(serializers.RequestErrorResponse.parseOrThrow(_response.error.body, {
|
|
949
966
|
unrecognizedObjectKeys: "passthrough",
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.1";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.
|
|
1
|
+
export const SDK_VERSION = "0.1.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truefoundry/trueforge-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"crypto": false
|
|
243
243
|
},
|
|
244
244
|
"engines": {
|
|
245
|
-
"node": ">=
|
|
245
|
+
"node": ">=22"
|
|
246
246
|
},
|
|
247
247
|
"sideEffects": false,
|
|
248
248
|
"license": "MIT",
|
|
@@ -250,15 +250,15 @@
|
|
|
250
250
|
"repository": {
|
|
251
251
|
"type": "git",
|
|
252
252
|
"url": "git+https://github.com/truefoundry/trueforge.git",
|
|
253
|
-
"directory": "packages/sdk"
|
|
253
|
+
"directory": "packages/trueforge-sdk"
|
|
254
254
|
},
|
|
255
|
-
"homepage": "https://github.com/truefoundry/trueforge/tree/main/packages/sdk#readme",
|
|
255
|
+
"homepage": "https://github.com/truefoundry/trueforge/tree/main/packages/trueforge-sdk#readme",
|
|
256
256
|
"bugs": {
|
|
257
257
|
"url": "https://github.com/truefoundry/trueforge/issues"
|
|
258
258
|
},
|
|
259
259
|
"publishConfig": {
|
|
260
260
|
"access": "public",
|
|
261
|
-
"provenance":
|
|
261
|
+
"provenance": true
|
|
262
262
|
},
|
|
263
263
|
"scripts": {
|
|
264
264
|
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|