@truefoundry/trueforge-sdk 0.1.3 → 0.1.4-rc.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.
Files changed (29) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/types/CompactionConfig.d.ts +5 -2
  3. package/dist/cjs/api/types/InputTokensCompactionTrigger.d.ts +6 -0
  4. package/dist/cjs/api/types/InputTokensCompactionTrigger.js +3 -0
  5. package/dist/cjs/api/types/index.d.ts +1 -0
  6. package/dist/cjs/api/types/index.js +1 -0
  7. package/dist/cjs/serialization/types/CompactionConfig.d.ts +2 -1
  8. package/dist/cjs/serialization/types/CompactionConfig.js +2 -1
  9. package/dist/cjs/serialization/types/InputTokensCompactionTrigger.d.ts +10 -0
  10. package/dist/cjs/serialization/types/InputTokensCompactionTrigger.js +42 -0
  11. package/dist/cjs/serialization/types/index.d.ts +1 -0
  12. package/dist/cjs/serialization/types/index.js +1 -0
  13. package/dist/cjs/version.d.ts +1 -1
  14. package/dist/cjs/version.js +1 -1
  15. package/dist/esm/BaseClient.mjs +2 -2
  16. package/dist/esm/api/types/CompactionConfig.d.mts +5 -2
  17. package/dist/esm/api/types/InputTokensCompactionTrigger.d.mts +6 -0
  18. package/dist/esm/api/types/InputTokensCompactionTrigger.mjs +2 -0
  19. package/dist/esm/api/types/index.d.mts +1 -0
  20. package/dist/esm/api/types/index.mjs +1 -0
  21. package/dist/esm/serialization/types/CompactionConfig.d.mts +2 -1
  22. package/dist/esm/serialization/types/CompactionConfig.mjs +2 -1
  23. package/dist/esm/serialization/types/InputTokensCompactionTrigger.d.mts +10 -0
  24. package/dist/esm/serialization/types/InputTokensCompactionTrigger.mjs +6 -0
  25. package/dist/esm/serialization/types/index.d.mts +1 -0
  26. package/dist/esm/serialization/types/index.mjs +1 -0
  27. package/dist/esm/version.d.mts +1 -1
  28. package/dist/esm/version.mjs +1 -1
  29. package/package.json +1 -1
@@ -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.3",
47
- "User-Agent": "@truefoundry/trueforge-sdk/0.1.3",
46
+ "X-Fern-SDK-Version": "0.1.4-rc.0",
47
+ "User-Agent": "@truefoundry/trueforge-sdk/0.1.4-rc.0",
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);
@@ -1,6 +1,9 @@
1
+ import type * as TrueForge from "../index.js";
2
+ /**
3
+ * Uses 80% of the model context length when the explicit trigger is omitted, or 50000 tokens if unknown.
4
+ */
1
5
  export interface CompactionConfig {
2
- /** Context size in tokens that triggers compaction. Default: 50000. */
3
- compactionThresholdTokens?: number;
4
6
  /** Summarize older history when context grows too large. Default: true. */
5
7
  enabled?: boolean;
8
+ trigger?: TrueForge.InputTokensCompactionTrigger;
6
9
  }
@@ -0,0 +1,6 @@
1
+ export interface InputTokensCompactionTrigger {
2
+ /** Trigger compaction when the estimated input reaches a token limit. */
3
+ type: "input_tokens";
4
+ /** Estimated input-token count that triggers compaction. */
5
+ value: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -64,6 +64,7 @@ export * from "./GetSkillResponse.js";
64
64
  export * from "./GetTurnResponse.js";
65
65
  export * from "./GoogleGeminiModelProvider.js";
66
66
  export * from "./InitialUserMessage.js";
67
+ export * from "./InputTokensCompactionTrigger.js";
67
68
  export * from "./LargeToolResponseConfig.js";
68
69
  export * from "./ListAgentsResponse.js";
69
70
  export * from "./ListAvailableMcpServersResponse.js";
@@ -80,6 +80,7 @@ __exportStar(require("./GetSkillResponse.js"), exports);
80
80
  __exportStar(require("./GetTurnResponse.js"), exports);
81
81
  __exportStar(require("./GoogleGeminiModelProvider.js"), exports);
82
82
  __exportStar(require("./InitialUserMessage.js"), exports);
83
+ __exportStar(require("./InputTokensCompactionTrigger.js"), exports);
83
84
  __exportStar(require("./LargeToolResponseConfig.js"), exports);
84
85
  __exportStar(require("./ListAgentsResponse.js"), exports);
85
86
  __exportStar(require("./ListAvailableMcpServersResponse.js"), exports);
@@ -1,10 +1,11 @@
1
1
  import type * as TrueForge from "../../api/index.js";
2
2
  import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
+ import { InputTokensCompactionTrigger } from "./InputTokensCompactionTrigger.js";
4
5
  export declare const CompactionConfig: core.serialization.ObjectSchema<serializers.CompactionConfig.Raw, TrueForge.CompactionConfig>;
5
6
  export declare namespace CompactionConfig {
6
7
  interface Raw {
7
- compaction_threshold_tokens?: number | null;
8
8
  enabled?: boolean | null;
9
+ trigger?: InputTokensCompactionTrigger.Raw | null;
9
10
  }
10
11
  }
@@ -36,7 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.CompactionConfig = void 0;
38
38
  const core = __importStar(require("../../core/index.js"));
39
+ const InputTokensCompactionTrigger_js_1 = require("./InputTokensCompactionTrigger.js");
39
40
  exports.CompactionConfig = core.serialization.object({
40
- compactionThresholdTokens: core.serialization.property("compaction_threshold_tokens", core.serialization.number().optional()),
41
41
  enabled: core.serialization.boolean().optional(),
42
+ trigger: InputTokensCompactionTrigger_js_1.InputTokensCompactionTrigger.optional(),
42
43
  });
@@ -0,0 +1,10 @@
1
+ import type * as TrueForge from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const InputTokensCompactionTrigger: core.serialization.ObjectSchema<serializers.InputTokensCompactionTrigger.Raw, TrueForge.InputTokensCompactionTrigger>;
5
+ export declare namespace InputTokensCompactionTrigger {
6
+ interface Raw {
7
+ type: "input_tokens";
8
+ value: number;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.InputTokensCompactionTrigger = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.InputTokensCompactionTrigger = core.serialization.object({
40
+ type: core.serialization.stringLiteral("input_tokens"),
41
+ value: core.serialization.number(),
42
+ });
@@ -64,6 +64,7 @@ export * from "./GetSkillResponse.js";
64
64
  export * from "./GetTurnResponse.js";
65
65
  export * from "./GoogleGeminiModelProvider.js";
66
66
  export * from "./InitialUserMessage.js";
67
+ export * from "./InputTokensCompactionTrigger.js";
67
68
  export * from "./LargeToolResponseConfig.js";
68
69
  export * from "./ListAgentsResponse.js";
69
70
  export * from "./ListAvailableMcpServersResponse.js";
@@ -80,6 +80,7 @@ __exportStar(require("./GetSkillResponse.js"), exports);
80
80
  __exportStar(require("./GetTurnResponse.js"), exports);
81
81
  __exportStar(require("./GoogleGeminiModelProvider.js"), exports);
82
82
  __exportStar(require("./InitialUserMessage.js"), exports);
83
+ __exportStar(require("./InputTokensCompactionTrigger.js"), exports);
83
84
  __exportStar(require("./LargeToolResponseConfig.js"), exports);
84
85
  __exportStar(require("./ListAgentsResponse.js"), exports);
85
86
  __exportStar(require("./ListAvailableMcpServersResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.3";
1
+ export declare const SDK_VERSION = "0.1.4-rc.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.3";
4
+ exports.SDK_VERSION = "0.1.4-rc.0";
@@ -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.3",
10
- "User-Agent": "@truefoundry/trueforge-sdk/0.1.3",
9
+ "X-Fern-SDK-Version": "0.1.4-rc.0",
10
+ "User-Agent": "@truefoundry/trueforge-sdk/0.1.4-rc.0",
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);
@@ -1,6 +1,9 @@
1
+ import type * as TrueForge from "../index.mjs";
2
+ /**
3
+ * Uses 80% of the model context length when the explicit trigger is omitted, or 50000 tokens if unknown.
4
+ */
1
5
  export interface CompactionConfig {
2
- /** Context size in tokens that triggers compaction. Default: 50000. */
3
- compactionThresholdTokens?: number;
4
6
  /** Summarize older history when context grows too large. Default: true. */
5
7
  enabled?: boolean;
8
+ trigger?: TrueForge.InputTokensCompactionTrigger;
6
9
  }
@@ -0,0 +1,6 @@
1
+ export interface InputTokensCompactionTrigger {
2
+ /** Trigger compaction when the estimated input reaches a token limit. */
3
+ type: "input_tokens";
4
+ /** Estimated input-token count that triggers compaction. */
5
+ value: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -64,6 +64,7 @@ export * from "./GetSkillResponse.mjs";
64
64
  export * from "./GetTurnResponse.mjs";
65
65
  export * from "./GoogleGeminiModelProvider.mjs";
66
66
  export * from "./InitialUserMessage.mjs";
67
+ export * from "./InputTokensCompactionTrigger.mjs";
67
68
  export * from "./LargeToolResponseConfig.mjs";
68
69
  export * from "./ListAgentsResponse.mjs";
69
70
  export * from "./ListAvailableMcpServersResponse.mjs";
@@ -64,6 +64,7 @@ export * from "./GetSkillResponse.mjs";
64
64
  export * from "./GetTurnResponse.mjs";
65
65
  export * from "./GoogleGeminiModelProvider.mjs";
66
66
  export * from "./InitialUserMessage.mjs";
67
+ export * from "./InputTokensCompactionTrigger.mjs";
67
68
  export * from "./LargeToolResponseConfig.mjs";
68
69
  export * from "./ListAgentsResponse.mjs";
69
70
  export * from "./ListAvailableMcpServersResponse.mjs";
@@ -1,10 +1,11 @@
1
1
  import type * as TrueForge from "../../api/index.mjs";
2
2
  import * as core from "../../core/index.mjs";
3
3
  import type * as serializers from "../index.mjs";
4
+ import { InputTokensCompactionTrigger } from "./InputTokensCompactionTrigger.mjs";
4
5
  export declare const CompactionConfig: core.serialization.ObjectSchema<serializers.CompactionConfig.Raw, TrueForge.CompactionConfig>;
5
6
  export declare namespace CompactionConfig {
6
7
  interface Raw {
7
- compaction_threshold_tokens?: number | null;
8
8
  enabled?: boolean | null;
9
+ trigger?: InputTokensCompactionTrigger.Raw | null;
9
10
  }
10
11
  }
@@ -1,6 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.mjs";
3
+ import { InputTokensCompactionTrigger } from "./InputTokensCompactionTrigger.mjs";
3
4
  export const CompactionConfig = core.serialization.object({
4
- compactionThresholdTokens: core.serialization.property("compaction_threshold_tokens", core.serialization.number().optional()),
5
5
  enabled: core.serialization.boolean().optional(),
6
+ trigger: InputTokensCompactionTrigger.optional(),
6
7
  });
@@ -0,0 +1,10 @@
1
+ import type * as TrueForge from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ export declare const InputTokensCompactionTrigger: core.serialization.ObjectSchema<serializers.InputTokensCompactionTrigger.Raw, TrueForge.InputTokensCompactionTrigger>;
5
+ export declare namespace InputTokensCompactionTrigger {
6
+ interface Raw {
7
+ type: "input_tokens";
8
+ value: number;
9
+ }
10
+ }
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const InputTokensCompactionTrigger = core.serialization.object({
4
+ type: core.serialization.stringLiteral("input_tokens"),
5
+ value: core.serialization.number(),
6
+ });
@@ -64,6 +64,7 @@ export * from "./GetSkillResponse.mjs";
64
64
  export * from "./GetTurnResponse.mjs";
65
65
  export * from "./GoogleGeminiModelProvider.mjs";
66
66
  export * from "./InitialUserMessage.mjs";
67
+ export * from "./InputTokensCompactionTrigger.mjs";
67
68
  export * from "./LargeToolResponseConfig.mjs";
68
69
  export * from "./ListAgentsResponse.mjs";
69
70
  export * from "./ListAvailableMcpServersResponse.mjs";
@@ -64,6 +64,7 @@ export * from "./GetSkillResponse.mjs";
64
64
  export * from "./GetTurnResponse.mjs";
65
65
  export * from "./GoogleGeminiModelProvider.mjs";
66
66
  export * from "./InitialUserMessage.mjs";
67
+ export * from "./InputTokensCompactionTrigger.mjs";
67
68
  export * from "./LargeToolResponseConfig.mjs";
68
69
  export * from "./ListAgentsResponse.mjs";
69
70
  export * from "./ListAvailableMcpServersResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.3";
1
+ export declare const SDK_VERSION = "0.1.4-rc.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.3";
1
+ export const SDK_VERSION = "0.1.4-rc.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truefoundry/trueforge-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-rc.0",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "main": "./dist/cjs/index.js",