@runtypelabs/sdk 9.9.0 → 9.9.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/dist/index.cjs +2 -1
- package/dist/index.d.cts +37 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -233,6 +233,7 @@ var UNIFIED_EVENT_TYPES = /* @__PURE__ */ new Set([
|
|
|
233
233
|
"approval_complete",
|
|
234
234
|
"await",
|
|
235
235
|
"error",
|
|
236
|
+
"context_notice",
|
|
236
237
|
"ping",
|
|
237
238
|
"custom"
|
|
238
239
|
]);
|
|
@@ -6465,7 +6466,7 @@ function transformQueryParams(params) {
|
|
|
6465
6466
|
|
|
6466
6467
|
// src/version.ts
|
|
6467
6468
|
var FALLBACK_VERSION = "0.0.0";
|
|
6468
|
-
var SDK_VERSION = "9.9.
|
|
6469
|
+
var SDK_VERSION = "9.9.1".length > 0 ? "9.9.1" : FALLBACK_VERSION;
|
|
6469
6470
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6470
6471
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6471
6472
|
|
package/dist/index.d.cts
CHANGED
|
@@ -1947,6 +1947,24 @@ interface paths {
|
|
|
1947
1947
|
enabled: true;
|
|
1948
1948
|
types: ("markdown" | "component")[];
|
|
1949
1949
|
};
|
|
1950
|
+
contextManagement?: {
|
|
1951
|
+
compaction?: {
|
|
1952
|
+
enabled?: boolean;
|
|
1953
|
+
instructions?: string;
|
|
1954
|
+
model?: string;
|
|
1955
|
+
retainRecentTokens?: number;
|
|
1956
|
+
/** @enum {string} */
|
|
1957
|
+
strategy?: "auto" | "provider_native" | "summary";
|
|
1958
|
+
thresholdRatio?: number;
|
|
1959
|
+
thresholdTokens?: number;
|
|
1960
|
+
};
|
|
1961
|
+
toolResults?: {
|
|
1962
|
+
inlineThresholdChars?: number;
|
|
1963
|
+
pruneHotWindowTokens?: number;
|
|
1964
|
+
/** @enum {string} */
|
|
1965
|
+
pruneMode?: "mask" | "off";
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1950
1968
|
durability?: {
|
|
1951
1969
|
/** @enum {string} */
|
|
1952
1970
|
forced?: "durable" | "in_process";
|
|
@@ -47091,6 +47109,25 @@ interface components {
|
|
|
47091
47109
|
seq: number;
|
|
47092
47110
|
/** @enum {string} */
|
|
47093
47111
|
type: "error";
|
|
47112
|
+
} | {
|
|
47113
|
+
epoch: number;
|
|
47114
|
+
executionId: string;
|
|
47115
|
+
/** @enum {string} */
|
|
47116
|
+
kind: "compaction";
|
|
47117
|
+
/** @enum {string} */
|
|
47118
|
+
outcome?: "ok" | "failed" | "gap" | "skipped";
|
|
47119
|
+
/** @enum {string} */
|
|
47120
|
+
phase: "start" | "complete";
|
|
47121
|
+
/** @enum {string} */
|
|
47122
|
+
reason: "threshold" | "overflow" | "manual" | "surface_policy" | "provider_mismatch";
|
|
47123
|
+
seq: number;
|
|
47124
|
+
/** @enum {string} */
|
|
47125
|
+
strategy: "provider_native" | "summary";
|
|
47126
|
+
tier: number;
|
|
47127
|
+
tokensAfter?: number;
|
|
47128
|
+
tokensBefore?: number;
|
|
47129
|
+
/** @enum {string} */
|
|
47130
|
+
type: "context_notice";
|
|
47094
47131
|
} | {
|
|
47095
47132
|
executionId: string;
|
|
47096
47133
|
seq: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1947,6 +1947,24 @@ interface paths {
|
|
|
1947
1947
|
enabled: true;
|
|
1948
1948
|
types: ("markdown" | "component")[];
|
|
1949
1949
|
};
|
|
1950
|
+
contextManagement?: {
|
|
1951
|
+
compaction?: {
|
|
1952
|
+
enabled?: boolean;
|
|
1953
|
+
instructions?: string;
|
|
1954
|
+
model?: string;
|
|
1955
|
+
retainRecentTokens?: number;
|
|
1956
|
+
/** @enum {string} */
|
|
1957
|
+
strategy?: "auto" | "provider_native" | "summary";
|
|
1958
|
+
thresholdRatio?: number;
|
|
1959
|
+
thresholdTokens?: number;
|
|
1960
|
+
};
|
|
1961
|
+
toolResults?: {
|
|
1962
|
+
inlineThresholdChars?: number;
|
|
1963
|
+
pruneHotWindowTokens?: number;
|
|
1964
|
+
/** @enum {string} */
|
|
1965
|
+
pruneMode?: "mask" | "off";
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1950
1968
|
durability?: {
|
|
1951
1969
|
/** @enum {string} */
|
|
1952
1970
|
forced?: "durable" | "in_process";
|
|
@@ -47091,6 +47109,25 @@ interface components {
|
|
|
47091
47109
|
seq: number;
|
|
47092
47110
|
/** @enum {string} */
|
|
47093
47111
|
type: "error";
|
|
47112
|
+
} | {
|
|
47113
|
+
epoch: number;
|
|
47114
|
+
executionId: string;
|
|
47115
|
+
/** @enum {string} */
|
|
47116
|
+
kind: "compaction";
|
|
47117
|
+
/** @enum {string} */
|
|
47118
|
+
outcome?: "ok" | "failed" | "gap" | "skipped";
|
|
47119
|
+
/** @enum {string} */
|
|
47120
|
+
phase: "start" | "complete";
|
|
47121
|
+
/** @enum {string} */
|
|
47122
|
+
reason: "threshold" | "overflow" | "manual" | "surface_policy" | "provider_mismatch";
|
|
47123
|
+
seq: number;
|
|
47124
|
+
/** @enum {string} */
|
|
47125
|
+
strategy: "provider_native" | "summary";
|
|
47126
|
+
tier: number;
|
|
47127
|
+
tokensAfter?: number;
|
|
47128
|
+
tokensBefore?: number;
|
|
47129
|
+
/** @enum {string} */
|
|
47130
|
+
type: "context_notice";
|
|
47094
47131
|
} | {
|
|
47095
47132
|
executionId: string;
|
|
47096
47133
|
seq: number;
|
package/dist/index.mjs
CHANGED
|
@@ -37,6 +37,7 @@ var UNIFIED_EVENT_TYPES = /* @__PURE__ */ new Set([
|
|
|
37
37
|
"approval_complete",
|
|
38
38
|
"await",
|
|
39
39
|
"error",
|
|
40
|
+
"context_notice",
|
|
40
41
|
"ping",
|
|
41
42
|
"custom"
|
|
42
43
|
]);
|
|
@@ -6269,7 +6270,7 @@ function transformQueryParams(params) {
|
|
|
6269
6270
|
|
|
6270
6271
|
// src/version.ts
|
|
6271
6272
|
var FALLBACK_VERSION = "0.0.0";
|
|
6272
|
-
var SDK_VERSION = "9.9.
|
|
6273
|
+
var SDK_VERSION = "9.9.1".length > 0 ? "9.9.1" : FALLBACK_VERSION;
|
|
6273
6274
|
var RUNTYPE_CLIENT_KIND = "sdk";
|
|
6274
6275
|
var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
|
|
6275
6276
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/sdk",
|
|
3
|
-
"version": "9.9.
|
|
3
|
+
"version": "9.9.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@runtypelabs/shared": "3.
|
|
27
|
+
"@runtypelabs/shared": "3.44.0",
|
|
28
28
|
"openapi-typescript": "^7.13.0",
|
|
29
29
|
"tsup": "^8.0.2",
|
|
30
30
|
"typescript": "^6.0.3",
|