@trydecember/cli 0.2.5 → 0.2.6
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/december.js +1087 -425
- package/package.json +1 -1
- package/src/index.ts +3 -0
package/dist/december.js
CHANGED
|
@@ -47,7 +47,7 @@ var __export = (target, all) => {
|
|
|
47
47
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
48
48
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
49
49
|
|
|
50
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
50
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/tslib.mjs
|
|
51
51
|
function __classPrivateFieldSet2(receiver, state, value, kind, f) {
|
|
52
52
|
if (kind === "m")
|
|
53
53
|
throw new TypeError("Private method is not writable");
|
|
@@ -66,7 +66,7 @@ function __classPrivateFieldGet2(receiver, state, kind, f) {
|
|
|
66
66
|
}
|
|
67
67
|
var init_tslib = () => {};
|
|
68
68
|
|
|
69
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
69
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs
|
|
70
70
|
var uuid42 = function() {
|
|
71
71
|
const { crypto: crypto2 } = globalThis;
|
|
72
72
|
if (crypto2?.randomUUID) {
|
|
@@ -78,7 +78,7 @@ var uuid42 = function() {
|
|
|
78
78
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (+c ^ randomByte() & 15 >> +c / 4).toString(16));
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
81
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/errors.mjs
|
|
82
82
|
function isAbortError2(err) {
|
|
83
83
|
return typeof err === "object" && err !== null && (("name" in err) && err.name === "AbortError" || ("message" in err) && String(err.message).includes("FetchRequestCanceledException"));
|
|
84
84
|
}
|
|
@@ -105,7 +105,7 @@ var castToError2 = (err) => {
|
|
|
105
105
|
return new Error(err);
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
108
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/core/error.mjs
|
|
109
109
|
var AnthropicError, APIError2, APIUserAbortError2, APIConnectionError2, APIConnectionTimeoutError2, RetryableError, BadRequestError2, AuthenticationError2, PermissionDeniedError2, NotFoundError2, ConflictError2, UnprocessableEntityError2, RateLimitError2, InternalServerError2;
|
|
110
110
|
var init_error = __esm(() => {
|
|
111
111
|
AnthropicError = class AnthropicError extends Error {
|
|
@@ -207,7 +207,7 @@ var init_error = __esm(() => {
|
|
|
207
207
|
};
|
|
208
208
|
});
|
|
209
209
|
|
|
210
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
210
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs
|
|
211
211
|
function maybeObj2(x) {
|
|
212
212
|
if (typeof x !== "object") {
|
|
213
213
|
return {};
|
|
@@ -247,7 +247,7 @@ var init_values = __esm(() => {
|
|
|
247
247
|
isReadonlyArray2 = isArray2;
|
|
248
248
|
});
|
|
249
249
|
|
|
250
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
250
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs
|
|
251
251
|
var sleep3 = (ms, signal) => new Promise((resolve) => {
|
|
252
252
|
if (signal?.aborted)
|
|
253
253
|
return resolve();
|
|
@@ -262,10 +262,10 @@ var sleep3 = (ms, signal) => new Promise((resolve) => {
|
|
|
262
262
|
signal?.addEventListener("abort", onAbort, { once: true });
|
|
263
263
|
});
|
|
264
264
|
|
|
265
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
266
|
-
var VERSION2 = "0.
|
|
265
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/version.mjs
|
|
266
|
+
var VERSION2 = "0.111.0";
|
|
267
267
|
|
|
268
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
268
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs
|
|
269
269
|
function getDetectedPlatform2() {
|
|
270
270
|
if (typeof Deno !== "undefined" && Deno.build != null) {
|
|
271
271
|
return "deno";
|
|
@@ -390,7 +390,7 @@ var isRunningInBrowser2 = () => {
|
|
|
390
390
|
};
|
|
391
391
|
var init_detect_platform = () => {};
|
|
392
392
|
|
|
393
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
393
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/shims.mjs
|
|
394
394
|
function getDefaultFetch2() {
|
|
395
395
|
if (typeof fetch !== "undefined") {
|
|
396
396
|
return fetch;
|
|
@@ -461,7 +461,7 @@ async function CancelReadableStream2(stream) {
|
|
|
461
461
|
await cancelPromise;
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
464
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/request-options.mjs
|
|
465
465
|
var FallbackEncoder2 = ({ headers, body }) => {
|
|
466
466
|
return {
|
|
467
467
|
bodyHeaders: {
|
|
@@ -471,7 +471,7 @@ var FallbackEncoder2 = ({ headers, body }) => {
|
|
|
471
471
|
};
|
|
472
472
|
};
|
|
473
473
|
|
|
474
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
474
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs
|
|
475
475
|
var default_format2 = "RFC3986", default_formatter2 = (v) => String(v), formatters2, RFC17382 = "RFC1738";
|
|
476
476
|
var init_formats = __esm(() => {
|
|
477
477
|
formatters2 = {
|
|
@@ -480,7 +480,7 @@ var init_formats = __esm(() => {
|
|
|
480
480
|
};
|
|
481
481
|
});
|
|
482
482
|
|
|
483
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
483
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs
|
|
484
484
|
function is_buffer2(obj) {
|
|
485
485
|
if (!obj || typeof obj !== "object") {
|
|
486
486
|
return false;
|
|
@@ -554,7 +554,7 @@ var init_utils = __esm(() => {
|
|
|
554
554
|
})();
|
|
555
555
|
});
|
|
556
556
|
|
|
557
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
557
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs
|
|
558
558
|
function is_non_nullish_primitive2(v) {
|
|
559
559
|
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
560
560
|
}
|
|
@@ -786,7 +786,7 @@ var init_stringify = __esm(() => {
|
|
|
786
786
|
sentinel2 = {};
|
|
787
787
|
});
|
|
788
788
|
|
|
789
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
789
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs
|
|
790
790
|
function stringifyQuery2(query2) {
|
|
791
791
|
return stringify2(query2, { arrayFormat: "brackets" });
|
|
792
792
|
}
|
|
@@ -794,7 +794,7 @@ var init_query = __esm(() => {
|
|
|
794
794
|
init_stringify();
|
|
795
795
|
});
|
|
796
796
|
|
|
797
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
797
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs
|
|
798
798
|
function requireSecureTokenEndpoint(baseURL) {
|
|
799
799
|
if (!baseURL)
|
|
800
800
|
return;
|
|
@@ -952,12 +952,12 @@ var init_types = __esm(() => {
|
|
|
952
952
|
};
|
|
953
953
|
});
|
|
954
954
|
|
|
955
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
955
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs
|
|
956
956
|
function nowAsSeconds() {
|
|
957
957
|
return Math.floor(Date.now() / 1000);
|
|
958
958
|
}
|
|
959
959
|
|
|
960
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
960
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs
|
|
961
961
|
class TokenCache {
|
|
962
962
|
constructor(provider, onAdvisoryRefreshError) {
|
|
963
963
|
this.cached = null;
|
|
@@ -1027,7 +1027,7 @@ var init_token_cache = __esm(() => {
|
|
|
1027
1027
|
init_types();
|
|
1028
1028
|
});
|
|
1029
1029
|
|
|
1030
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1030
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs
|
|
1031
1031
|
var readEnv2 = (env2) => {
|
|
1032
1032
|
if (typeof globalThis.process !== "undefined") {
|
|
1033
1033
|
return globalThis.process.env?.[env2]?.trim() || undefined;
|
|
@@ -1038,7 +1038,7 @@ var readEnv2 = (env2) => {
|
|
|
1038
1038
|
return;
|
|
1039
1039
|
};
|
|
1040
1040
|
|
|
1041
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1041
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs
|
|
1042
1042
|
function concatBytes2(buffers) {
|
|
1043
1043
|
let length = 0;
|
|
1044
1044
|
for (const buffer of buffers) {
|
|
@@ -1062,12 +1062,12 @@ function decodeUTF82(bytes) {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
var encodeUTF8_2, decodeUTF8_2;
|
|
1064
1064
|
|
|
1065
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1065
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs
|
|
1066
1066
|
var init_base64 = __esm(() => {
|
|
1067
1067
|
init_error();
|
|
1068
1068
|
});
|
|
1069
1069
|
|
|
1070
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1070
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs
|
|
1071
1071
|
function noop2() {}
|
|
1072
1072
|
function makeLogFn2(fnLevel, logger, logLevel) {
|
|
1073
1073
|
if (!logger || levelNumbers2[fnLevel] > levelNumbers2[logLevel]) {
|
|
@@ -1152,7 +1152,7 @@ var init_log = __esm(() => {
|
|
|
1152
1152
|
cachedLoggers2 = /* @__PURE__ */ new WeakMap;
|
|
1153
1153
|
});
|
|
1154
1154
|
|
|
1155
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1155
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils.mjs
|
|
1156
1156
|
var init_utils2 = __esm(() => {
|
|
1157
1157
|
init_values();
|
|
1158
1158
|
init_base64();
|
|
@@ -1160,7 +1160,7 @@ var init_utils2 = __esm(() => {
|
|
|
1160
1160
|
init_query();
|
|
1161
1161
|
});
|
|
1162
1162
|
|
|
1163
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1163
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/core/credentials.mjs
|
|
1164
1164
|
function validateProfileName(name) {
|
|
1165
1165
|
if (!name) {
|
|
1166
1166
|
throw new Error("profile name is empty");
|
|
@@ -1329,7 +1329,7 @@ var init_credentials = __esm(() => {
|
|
|
1329
1329
|
PROFILE_NAME_PATTERN = /^[A-Za-z0-9_.-]+$/;
|
|
1330
1330
|
});
|
|
1331
1331
|
|
|
1332
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1332
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs
|
|
1333
1333
|
function identityTokenFromFile(path4) {
|
|
1334
1334
|
if (!path4) {
|
|
1335
1335
|
throw new AnthropicError("Identity token file path is empty");
|
|
@@ -1359,7 +1359,7 @@ var init_identity_token = __esm(() => {
|
|
|
1359
1359
|
init_error();
|
|
1360
1360
|
});
|
|
1361
1361
|
|
|
1362
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1362
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs
|
|
1363
1363
|
function oidcFederationProvider(config2) {
|
|
1364
1364
|
return async () => {
|
|
1365
1365
|
requireSecureTokenEndpoint(config2.baseURL);
|
|
@@ -1420,7 +1420,7 @@ var init_oidc_federation = __esm(() => {
|
|
|
1420
1420
|
init_types();
|
|
1421
1421
|
});
|
|
1422
1422
|
|
|
1423
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1423
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs
|
|
1424
1424
|
function userOAuthProvider(config2) {
|
|
1425
1425
|
return async (opts) => {
|
|
1426
1426
|
const fs3 = await import("node:fs");
|
|
@@ -1498,7 +1498,7 @@ var init_user_oauth = __esm(() => {
|
|
|
1498
1498
|
init_types();
|
|
1499
1499
|
});
|
|
1500
1500
|
|
|
1501
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1501
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs
|
|
1502
1502
|
function resolveCredentialsFromConfig(config2, options) {
|
|
1503
1503
|
const credentialsPath = config2.authentication.credentials_path ?? null;
|
|
1504
1504
|
const effectiveBaseURL = (config2.base_url || options.baseURL).replace(/\/+$/, "");
|
|
@@ -1637,7 +1637,7 @@ var init_credential_chain = __esm(() => {
|
|
|
1637
1637
|
init_user_oauth();
|
|
1638
1638
|
});
|
|
1639
1639
|
|
|
1640
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1640
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs
|
|
1641
1641
|
class LineDecoder2 {
|
|
1642
1642
|
constructor() {
|
|
1643
1643
|
_LineDecoder_buffer2.set(this, undefined);
|
|
@@ -1718,7 +1718,7 @@ var init_line = __esm(() => {
|
|
|
1718
1718
|
LineDecoder2.NEWLINE_REGEXP = /\r\n|[\n\r]/g;
|
|
1719
1719
|
});
|
|
1720
1720
|
|
|
1721
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1721
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/core/streaming.mjs
|
|
1722
1722
|
async function* _iterSSEMessages2(response, controller) {
|
|
1723
1723
|
if (!response.body) {
|
|
1724
1724
|
controller.abort();
|
|
@@ -1970,7 +1970,7 @@ var init_streaming = __esm(() => {
|
|
|
1970
1970
|
};
|
|
1971
1971
|
});
|
|
1972
1972
|
|
|
1973
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
1973
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/parse.mjs
|
|
1974
1974
|
async function defaultParseResponse2(client, props) {
|
|
1975
1975
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
1976
1976
|
const body = await (async () => {
|
|
@@ -2021,7 +2021,7 @@ var init_parse = __esm(() => {
|
|
|
2021
2021
|
init_log();
|
|
2022
2022
|
});
|
|
2023
2023
|
|
|
2024
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2024
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/core/middleware.mjs
|
|
2025
2025
|
function isFetchOriginError(err) {
|
|
2026
2026
|
return typeof err === "object" && err !== null && fetchOriginErrors.has(err);
|
|
2027
2027
|
}
|
|
@@ -2122,7 +2122,7 @@ var init_middleware = __esm(() => {
|
|
|
2122
2122
|
fetchOriginErrors = new WeakSet;
|
|
2123
2123
|
});
|
|
2124
2124
|
|
|
2125
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2125
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/core/api-promise.mjs
|
|
2126
2126
|
var _APIPromise_client2, APIPromise2;
|
|
2127
2127
|
var init_api_promise = __esm(() => {
|
|
2128
2128
|
init_tslib();
|
|
@@ -2166,7 +2166,7 @@ var init_api_promise = __esm(() => {
|
|
|
2166
2166
|
_APIPromise_client2 = new WeakMap;
|
|
2167
2167
|
});
|
|
2168
2168
|
|
|
2169
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2169
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/core/pagination.mjs
|
|
2170
2170
|
var _AbstractPage_client2, AbstractPage2, PagePromise2, Page2, PageCursor, BidirectionalPageCursor;
|
|
2171
2171
|
var init_pagination = __esm(() => {
|
|
2172
2172
|
init_tslib();
|
|
@@ -2315,7 +2315,7 @@ var init_pagination = __esm(() => {
|
|
|
2315
2315
|
};
|
|
2316
2316
|
});
|
|
2317
2317
|
|
|
2318
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2318
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/uploads.mjs
|
|
2319
2319
|
function makeFile2(fileBits, fileName, options) {
|
|
2320
2320
|
checkFileSupport2();
|
|
2321
2321
|
return new File(fileBits, fileName ?? "unknown_file", options);
|
|
@@ -2390,7 +2390,7 @@ var init_uploads = __esm(() => {
|
|
|
2390
2390
|
supportsFormDataMap2 = /* @__PURE__ */ new WeakMap;
|
|
2391
2391
|
});
|
|
2392
2392
|
|
|
2393
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2393
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/to-file.mjs
|
|
2394
2394
|
async function toFile2(value, name, options) {
|
|
2395
2395
|
checkFileSupport2();
|
|
2396
2396
|
value = await value;
|
|
@@ -2447,22 +2447,22 @@ var init_to_file = __esm(() => {
|
|
|
2447
2447
|
init_uploads();
|
|
2448
2448
|
});
|
|
2449
2449
|
|
|
2450
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2450
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/core/uploads.mjs
|
|
2451
2451
|
var init_uploads2 = __esm(() => {
|
|
2452
2452
|
init_to_file();
|
|
2453
2453
|
});
|
|
2454
2454
|
|
|
2455
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2455
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/shared.mjs
|
|
2456
2456
|
var init_shared = () => {};
|
|
2457
2457
|
|
|
2458
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2458
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/core/resource.mjs
|
|
2459
2459
|
class APIResource2 {
|
|
2460
2460
|
constructor(client) {
|
|
2461
2461
|
this._client = client;
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
2465
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2465
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/headers.mjs
|
|
2466
2466
|
function* iterateHeaders2(headers) {
|
|
2467
2467
|
if (!headers)
|
|
2468
2468
|
return;
|
|
@@ -2551,7 +2551,7 @@ var init_headers = __esm(() => {
|
|
|
2551
2551
|
APPEND_HEADERS = new Set(["x-stainless-helper"]);
|
|
2552
2552
|
});
|
|
2553
2553
|
|
|
2554
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2554
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs
|
|
2555
2555
|
function encodeURIPath2(str2) {
|
|
2556
2556
|
return str2.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
2557
2557
|
}
|
|
@@ -2609,7 +2609,7 @@ var init_path = __esm(() => {
|
|
|
2609
2609
|
path4 = /* @__PURE__ */ createPathTagFunction2(encodeURIPath2);
|
|
2610
2610
|
});
|
|
2611
2611
|
|
|
2612
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2612
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs
|
|
2613
2613
|
var DeploymentRuns;
|
|
2614
2614
|
var init_deployment_runs = __esm(() => {
|
|
2615
2615
|
init_pagination();
|
|
@@ -2640,7 +2640,7 @@ var init_deployment_runs = __esm(() => {
|
|
|
2640
2640
|
};
|
|
2641
2641
|
});
|
|
2642
2642
|
|
|
2643
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2643
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs
|
|
2644
2644
|
var Deployments;
|
|
2645
2645
|
var init_deployments = __esm(() => {
|
|
2646
2646
|
init_pagination();
|
|
@@ -2733,7 +2733,69 @@ var init_deployments = __esm(() => {
|
|
|
2733
2733
|
};
|
|
2734
2734
|
});
|
|
2735
2735
|
|
|
2736
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2736
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs
|
|
2737
|
+
var Dreams;
|
|
2738
|
+
var init_dreams = __esm(() => {
|
|
2739
|
+
init_pagination();
|
|
2740
|
+
init_headers();
|
|
2741
|
+
init_path();
|
|
2742
|
+
Dreams = class Dreams extends APIResource2 {
|
|
2743
|
+
create(params, options) {
|
|
2744
|
+
const { betas, ...body } = params;
|
|
2745
|
+
return this._client.post("/v1/dreams?beta=true", {
|
|
2746
|
+
body,
|
|
2747
|
+
...options,
|
|
2748
|
+
headers: buildHeaders2([
|
|
2749
|
+
{ "anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString() },
|
|
2750
|
+
options?.headers
|
|
2751
|
+
])
|
|
2752
|
+
});
|
|
2753
|
+
}
|
|
2754
|
+
retrieve(dreamID, params = {}, options) {
|
|
2755
|
+
const { betas } = params ?? {};
|
|
2756
|
+
return this._client.get(path4`/v1/dreams/${dreamID}?beta=true`, {
|
|
2757
|
+
...options,
|
|
2758
|
+
headers: buildHeaders2([
|
|
2759
|
+
{ "anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString() },
|
|
2760
|
+
options?.headers
|
|
2761
|
+
])
|
|
2762
|
+
});
|
|
2763
|
+
}
|
|
2764
|
+
list(params = {}, options) {
|
|
2765
|
+
const { betas, ...query3 } = params ?? {};
|
|
2766
|
+
return this._client.getAPIList("/v1/dreams?beta=true", PageCursor, {
|
|
2767
|
+
query: query3,
|
|
2768
|
+
...options,
|
|
2769
|
+
headers: buildHeaders2([
|
|
2770
|
+
{ "anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString() },
|
|
2771
|
+
options?.headers
|
|
2772
|
+
])
|
|
2773
|
+
});
|
|
2774
|
+
}
|
|
2775
|
+
archive(dreamID, params = {}, options) {
|
|
2776
|
+
const { betas } = params ?? {};
|
|
2777
|
+
return this._client.post(path4`/v1/dreams/${dreamID}/archive?beta=true`, {
|
|
2778
|
+
...options,
|
|
2779
|
+
headers: buildHeaders2([
|
|
2780
|
+
{ "anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString() },
|
|
2781
|
+
options?.headers
|
|
2782
|
+
])
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
cancel(dreamID, params = {}, options) {
|
|
2786
|
+
const { betas } = params ?? {};
|
|
2787
|
+
return this._client.post(path4`/v1/dreams/${dreamID}/cancel?beta=true`, {
|
|
2788
|
+
...options,
|
|
2789
|
+
headers: buildHeaders2([
|
|
2790
|
+
{ "anthropic-beta": [...betas ?? [], "dreaming-2026-04-21"].toString() },
|
|
2791
|
+
options?.headers
|
|
2792
|
+
])
|
|
2793
|
+
});
|
|
2794
|
+
}
|
|
2795
|
+
};
|
|
2796
|
+
});
|
|
2797
|
+
|
|
2798
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs
|
|
2737
2799
|
function helperHeader(value) {
|
|
2738
2800
|
return { [STAINLESS_HELPER_HEADER]: value };
|
|
2739
2801
|
}
|
|
@@ -2783,7 +2845,7 @@ var init_stainless_helper_header = __esm(() => {
|
|
|
2783
2845
|
SDK_HELPER_SYMBOL = Symbol("anthropic.sdk.stainlessHelper");
|
|
2784
2846
|
});
|
|
2785
2847
|
|
|
2786
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2848
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs
|
|
2787
2849
|
var Files4;
|
|
2788
2850
|
var init_files = __esm(() => {
|
|
2789
2851
|
init_pagination();
|
|
@@ -2852,7 +2914,7 @@ var init_files = __esm(() => {
|
|
|
2852
2914
|
};
|
|
2853
2915
|
});
|
|
2854
2916
|
|
|
2855
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2917
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs
|
|
2856
2918
|
var Models2;
|
|
2857
2919
|
var init_models = __esm(() => {
|
|
2858
2920
|
init_pagination();
|
|
@@ -2883,7 +2945,7 @@ var init_models = __esm(() => {
|
|
|
2883
2945
|
};
|
|
2884
2946
|
});
|
|
2885
2947
|
|
|
2886
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
2948
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs
|
|
2887
2949
|
var UserProfiles;
|
|
2888
2950
|
var init_user_profiles = __esm(() => {
|
|
2889
2951
|
init_pagination();
|
|
@@ -3705,7 +3767,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
3705
3767
|
Webhook.prefix = "whsec_";
|
|
3706
3768
|
});
|
|
3707
3769
|
|
|
3708
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
3770
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs
|
|
3709
3771
|
var import_standardwebhooks, Webhooks2;
|
|
3710
3772
|
var init_webhooks = __esm(() => {
|
|
3711
3773
|
import_standardwebhooks = __toESM(require_dist(), 1);
|
|
@@ -3723,7 +3785,7 @@ var init_webhooks = __esm(() => {
|
|
|
3723
3785
|
};
|
|
3724
3786
|
});
|
|
3725
3787
|
|
|
3726
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
3788
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs
|
|
3727
3789
|
var Versions2;
|
|
3728
3790
|
var init_versions = __esm(() => {
|
|
3729
3791
|
init_pagination();
|
|
@@ -3744,7 +3806,7 @@ var init_versions = __esm(() => {
|
|
|
3744
3806
|
};
|
|
3745
3807
|
});
|
|
3746
3808
|
|
|
3747
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
3809
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs
|
|
3748
3810
|
var Agents;
|
|
3749
3811
|
var init_agents = __esm(() => {
|
|
3750
3812
|
init_versions();
|
|
@@ -3815,7 +3877,7 @@ var init_agents = __esm(() => {
|
|
|
3815
3877
|
Agents.Versions = Versions2;
|
|
3816
3878
|
});
|
|
3817
3879
|
|
|
3818
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
3880
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs
|
|
3819
3881
|
function linkAbort(external, controller) {
|
|
3820
3882
|
if (!external)
|
|
3821
3883
|
return () => {};
|
|
@@ -3828,7 +3890,7 @@ function linkAbort(external, controller) {
|
|
|
3828
3890
|
return () => external.removeEventListener("abort", onAbort);
|
|
3829
3891
|
}
|
|
3830
3892
|
|
|
3831
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
3893
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs
|
|
3832
3894
|
function isStatus(e, code) {
|
|
3833
3895
|
return e instanceof APIError2 && e.status === code;
|
|
3834
3896
|
}
|
|
@@ -3851,7 +3913,7 @@ var init_backoff = __esm(() => {
|
|
|
3851
3913
|
init_error();
|
|
3852
3914
|
});
|
|
3853
3915
|
|
|
3854
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
3916
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs
|
|
3855
3917
|
function copyClientForHelper(client, { authToken, helper }) {
|
|
3856
3918
|
if (!authToken) {
|
|
3857
3919
|
throw new AnthropicError(`copyClientForHelper: expected a non-empty authToken but received ${JSON.stringify(authToken)}`);
|
|
@@ -3882,7 +3944,7 @@ var init_helper_client = __esm(() => {
|
|
|
3882
3944
|
init_stainless_helper_header();
|
|
3883
3945
|
});
|
|
3884
3946
|
|
|
3885
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
3947
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs
|
|
3886
3948
|
function backoff2(attempt) {
|
|
3887
3949
|
return backoff(attempt, POLL_BACKOFF_BASE_MS, POLL_BACKOFF_CAP_MS);
|
|
3888
3950
|
}
|
|
@@ -4005,7 +4067,7 @@ var init_poller = __esm(() => {
|
|
|
4005
4067
|
};
|
|
4006
4068
|
});
|
|
4007
4069
|
|
|
4008
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4070
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs
|
|
4009
4071
|
class AsyncQueue2 {
|
|
4010
4072
|
constructor() {
|
|
4011
4073
|
_AsyncQueue_items.set(this, []);
|
|
@@ -4063,7 +4125,7 @@ var init_async_queue = __esm(() => {
|
|
|
4063
4125
|
_AsyncQueue_items = new WeakMap, _AsyncQueue_waiters = new WeakMap, _AsyncQueue_closed = new WeakMap;
|
|
4064
4126
|
});
|
|
4065
4127
|
|
|
4066
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4128
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs
|
|
4067
4129
|
var ToolError;
|
|
4068
4130
|
var init_ToolError = __esm(() => {
|
|
4069
4131
|
ToolError = class ToolError extends Error {
|
|
@@ -4080,7 +4142,7 @@ var init_ToolError = __esm(() => {
|
|
|
4080
4142
|
};
|
|
4081
4143
|
});
|
|
4082
4144
|
|
|
4083
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4145
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs
|
|
4084
4146
|
function toolName(tool) {
|
|
4085
4147
|
return "name" in tool ? tool.name : tool.mcp_server_name;
|
|
4086
4148
|
}
|
|
@@ -4100,10 +4162,62 @@ var init_BetaRunnableTool = __esm(() => {
|
|
|
4100
4162
|
init_ToolError();
|
|
4101
4163
|
});
|
|
4102
4164
|
|
|
4103
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4165
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs
|
|
4104
4166
|
function isEndTurnIdle(ev) {
|
|
4105
4167
|
return ev.type === "session.status_idle" && ev.stop_reason?.type === "end_turn";
|
|
4106
4168
|
}
|
|
4169
|
+
|
|
4170
|
+
class IdleClock {
|
|
4171
|
+
constructor(maxIdleMs, onExpire) {
|
|
4172
|
+
_IdleClock_maxIdleMs.set(this, undefined);
|
|
4173
|
+
_IdleClock_onExpire.set(this, undefined);
|
|
4174
|
+
_IdleClock_blockers.set(this, new Set);
|
|
4175
|
+
_IdleClock_armPending.set(this, false);
|
|
4176
|
+
_IdleClock_timer.set(this, undefined);
|
|
4177
|
+
__classPrivateFieldSet2(this, _IdleClock_maxIdleMs, maxIdleMs, "f");
|
|
4178
|
+
__classPrivateFieldSet2(this, _IdleClock_onExpire, onExpire, "f");
|
|
4179
|
+
}
|
|
4180
|
+
noteEvent(ev) {
|
|
4181
|
+
if (ev.type === "user.tool_confirmation")
|
|
4182
|
+
return;
|
|
4183
|
+
if (isEndTurnIdle(ev))
|
|
4184
|
+
this.arm();
|
|
4185
|
+
else
|
|
4186
|
+
this.disarm();
|
|
4187
|
+
}
|
|
4188
|
+
block(toolUseId) {
|
|
4189
|
+
__classPrivateFieldGet2(this, _IdleClock_blockers, "f").add(toolUseId);
|
|
4190
|
+
if (__classPrivateFieldGet2(this, _IdleClock_timer, "f") !== undefined) {
|
|
4191
|
+
__classPrivateFieldSet2(this, _IdleClock_armPending, true, "f");
|
|
4192
|
+
clearTimeout(__classPrivateFieldGet2(this, _IdleClock_timer, "f"));
|
|
4193
|
+
__classPrivateFieldSet2(this, _IdleClock_timer, undefined, "f");
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
4196
|
+
unblock(toolUseId) {
|
|
4197
|
+
__classPrivateFieldGet2(this, _IdleClock_blockers, "f").delete(toolUseId);
|
|
4198
|
+
if (__classPrivateFieldGet2(this, _IdleClock_blockers, "f").size === 0 && __classPrivateFieldGet2(this, _IdleClock_armPending, "f"))
|
|
4199
|
+
this.arm();
|
|
4200
|
+
}
|
|
4201
|
+
arm() {
|
|
4202
|
+
if (__classPrivateFieldGet2(this, _IdleClock_maxIdleMs, "f") <= 0)
|
|
4203
|
+
return;
|
|
4204
|
+
if (__classPrivateFieldGet2(this, _IdleClock_blockers, "f").size > 0) {
|
|
4205
|
+
__classPrivateFieldSet2(this, _IdleClock_armPending, true, "f");
|
|
4206
|
+
return;
|
|
4207
|
+
}
|
|
4208
|
+
__classPrivateFieldSet2(this, _IdleClock_armPending, false, "f");
|
|
4209
|
+
if (__classPrivateFieldGet2(this, _IdleClock_timer, "f") !== undefined)
|
|
4210
|
+
clearTimeout(__classPrivateFieldGet2(this, _IdleClock_timer, "f"));
|
|
4211
|
+
__classPrivateFieldSet2(this, _IdleClock_timer, setTimeout(__classPrivateFieldGet2(this, _IdleClock_onExpire, "f"), __classPrivateFieldGet2(this, _IdleClock_maxIdleMs, "f")), "f");
|
|
4212
|
+
}
|
|
4213
|
+
disarm() {
|
|
4214
|
+
__classPrivateFieldSet2(this, _IdleClock_armPending, false, "f");
|
|
4215
|
+
if (__classPrivateFieldGet2(this, _IdleClock_timer, "f") !== undefined) {
|
|
4216
|
+
clearTimeout(__classPrivateFieldGet2(this, _IdleClock_timer, "f"));
|
|
4217
|
+
__classPrivateFieldSet2(this, _IdleClock_timer, undefined, "f");
|
|
4218
|
+
}
|
|
4219
|
+
}
|
|
4220
|
+
}
|
|
4107
4221
|
function buildResultEvent(ev, isError2, content) {
|
|
4108
4222
|
if (ev.type === "agent.custom_tool_use") {
|
|
4109
4223
|
return { type: "user.custom_tool_result", custom_tool_use_id: ev.id, is_error: isError2, content };
|
|
@@ -4131,7 +4245,7 @@ function toSessionContent(content) {
|
|
|
4131
4245
|
});
|
|
4132
4246
|
return out.length > 0 ? out : [{ type: "text", text: "(no output)" }];
|
|
4133
4247
|
}
|
|
4134
|
-
var _SessionToolRunner_instances, _SessionToolRunner_consumed, _SessionToolRunner_controller, _SessionToolRunner_detachExternal, _SessionToolRunner_requestOpts, _SessionToolRunner_toolByName, _SessionToolRunner_logger, _SessionToolRunner_seen, _SessionToolRunner_answered, _SessionToolRunner_results, _SessionToolRunner_inFlightCount, _SessionToolRunner_onIdle,
|
|
4248
|
+
var _IdleClock_maxIdleMs, _IdleClock_onExpire, _IdleClock_blockers, _IdleClock_armPending, _IdleClock_timer, _SessionToolRunner_instances, _SessionToolRunner_consumed, _SessionToolRunner_controller, _SessionToolRunner_detachExternal, _SessionToolRunner_requestOpts, _SessionToolRunner_toolByName, _SessionToolRunner_logger, _SessionToolRunner_seen, _SessionToolRunner_answered, _SessionToolRunner_confirmationVerdicts, _SessionToolRunner_awaitingConfirmation, _SessionToolRunner_results, _SessionToolRunner_inFlightCount, _SessionToolRunner_onIdle, _SessionToolRunner_idleClock, _SessionToolRunner_requestOptions, _SessionToolRunner_streamLoop, _SessionToolRunner_reconcile, _SessionToolRunner_ingestHistory, _SessionToolRunner_handleStreamEvent, _SessionToolRunner_routeToolEvent, _SessionToolRunner_noteConfirmation, _SessionToolRunner_applyVerdict, _SessionToolRunner_surfaceCall, _SessionToolRunner_execute, _SessionToolRunner_sendResult, _SessionToolRunner_drain, STREAM_BACKOFF_START_MS = 500, STREAM_BACKOFF_CAP_MS = 1e4, TOOL_TIMEOUT_MS = 120000, DRAIN_TIMEOUT_MS = 30000, SEND_RETRIES = 3, DEFAULT_MAX_IDLE_MS = 60000, SessionToolRunner;
|
|
4135
4249
|
var init_SessionToolRunner = __esm(() => {
|
|
4136
4250
|
init_tslib();
|
|
4137
4251
|
init_error();
|
|
@@ -4141,6 +4255,7 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4141
4255
|
init_headers();
|
|
4142
4256
|
init_stainless_helper_header();
|
|
4143
4257
|
init_BetaRunnableTool();
|
|
4258
|
+
_IdleClock_maxIdleMs = new WeakMap, _IdleClock_onExpire = new WeakMap, _IdleClock_blockers = new WeakMap, _IdleClock_armPending = new WeakMap, _IdleClock_timer = new WeakMap;
|
|
4144
4259
|
SessionToolRunner = class SessionToolRunner {
|
|
4145
4260
|
constructor(sessionId, opts) {
|
|
4146
4261
|
_SessionToolRunner_instances.add(this);
|
|
@@ -4152,10 +4267,12 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4152
4267
|
_SessionToolRunner_logger.set(this, undefined);
|
|
4153
4268
|
_SessionToolRunner_seen.set(this, new Set);
|
|
4154
4269
|
_SessionToolRunner_answered.set(this, new Set);
|
|
4270
|
+
_SessionToolRunner_confirmationVerdicts.set(this, new Map);
|
|
4271
|
+
_SessionToolRunner_awaitingConfirmation.set(this, new Map);
|
|
4155
4272
|
_SessionToolRunner_results.set(this, new AsyncQueue2);
|
|
4156
4273
|
_SessionToolRunner_inFlightCount.set(this, 0);
|
|
4157
4274
|
_SessionToolRunner_onIdle.set(this, null);
|
|
4158
|
-
|
|
4275
|
+
_SessionToolRunner_idleClock.set(this, undefined);
|
|
4159
4276
|
this.client = opts.client;
|
|
4160
4277
|
this.sessionId = sessionId;
|
|
4161
4278
|
this.tools = opts.tools;
|
|
@@ -4165,6 +4282,14 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4165
4282
|
__classPrivateFieldSet2(this, _SessionToolRunner_controller, new AbortController, "f");
|
|
4166
4283
|
__classPrivateFieldSet2(this, _SessionToolRunner_detachExternal, linkAbort(opts.signal, __classPrivateFieldGet2(this, _SessionToolRunner_controller, "f")), "f");
|
|
4167
4284
|
__classPrivateFieldSet2(this, _SessionToolRunner_requestOpts, opts.requestOptions, "f");
|
|
4285
|
+
__classPrivateFieldSet2(this, _SessionToolRunner_idleClock, new IdleClock(this.maxIdleMs, () => {
|
|
4286
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_logger, "f").info("session idle after end_turn; stopping", {
|
|
4287
|
+
component: "session-tool-runner",
|
|
4288
|
+
session_id: this.sessionId,
|
|
4289
|
+
max_idle_ms: this.maxIdleMs
|
|
4290
|
+
});
|
|
4291
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_controller, "f").abort();
|
|
4292
|
+
}), "f");
|
|
4168
4293
|
}
|
|
4169
4294
|
get signal() {
|
|
4170
4295
|
return __classPrivateFieldGet2(this, _SessionToolRunner_controller, "f").signal;
|
|
@@ -4172,7 +4297,7 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4172
4297
|
abort() {
|
|
4173
4298
|
__classPrivateFieldGet2(this, _SessionToolRunner_controller, "f").abort();
|
|
4174
4299
|
}
|
|
4175
|
-
async* [(_SessionToolRunner_consumed = new WeakMap, _SessionToolRunner_controller = new WeakMap, _SessionToolRunner_detachExternal = new WeakMap, _SessionToolRunner_requestOpts = new WeakMap, _SessionToolRunner_toolByName = new WeakMap, _SessionToolRunner_logger = new WeakMap, _SessionToolRunner_seen = new WeakMap, _SessionToolRunner_answered = new WeakMap, _SessionToolRunner_results = new WeakMap, _SessionToolRunner_inFlightCount = new WeakMap, _SessionToolRunner_onIdle = new WeakMap,
|
|
4300
|
+
async* [(_SessionToolRunner_consumed = new WeakMap, _SessionToolRunner_controller = new WeakMap, _SessionToolRunner_detachExternal = new WeakMap, _SessionToolRunner_requestOpts = new WeakMap, _SessionToolRunner_toolByName = new WeakMap, _SessionToolRunner_logger = new WeakMap, _SessionToolRunner_seen = new WeakMap, _SessionToolRunner_answered = new WeakMap, _SessionToolRunner_confirmationVerdicts = new WeakMap, _SessionToolRunner_awaitingConfirmation = new WeakMap, _SessionToolRunner_results = new WeakMap, _SessionToolRunner_inFlightCount = new WeakMap, _SessionToolRunner_onIdle = new WeakMap, _SessionToolRunner_idleClock = new WeakMap, _SessionToolRunner_instances = new WeakSet, Symbol.asyncIterator)]() {
|
|
4176
4301
|
if (__classPrivateFieldGet2(this, _SessionToolRunner_consumed, "f")) {
|
|
4177
4302
|
throw new AnthropicError("Cannot iterate over a consumed SessionToolRunner");
|
|
4178
4303
|
}
|
|
@@ -4201,7 +4326,7 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4201
4326
|
}
|
|
4202
4327
|
} finally {
|
|
4203
4328
|
__classPrivateFieldGet2(this, _SessionToolRunner_controller, "f").abort();
|
|
4204
|
-
__classPrivateFieldGet2(this,
|
|
4329
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").disarm();
|
|
4205
4330
|
await streamPromise;
|
|
4206
4331
|
try {
|
|
4207
4332
|
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_drain).call(this);
|
|
@@ -4271,12 +4396,19 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4271
4396
|
return;
|
|
4272
4397
|
}
|
|
4273
4398
|
const unanswered = pending.filter((ev) => !__classPrivateFieldGet2(this, _SessionToolRunner_answered, "f").has(ev.id));
|
|
4274
|
-
|
|
4275
|
-
__classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_armIdleTimer).call(this);
|
|
4276
|
-
else
|
|
4277
|
-
__classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_disarmIdleTimer).call(this);
|
|
4399
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").disarm();
|
|
4278
4400
|
for (const ev of unanswered)
|
|
4279
|
-
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m",
|
|
4401
|
+
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_routeToolEvent).call(this, ev);
|
|
4402
|
+
for (const held of [...__classPrivateFieldGet2(this, _SessionToolRunner_awaitingConfirmation, "f").values()]) {
|
|
4403
|
+
const verdict = __classPrivateFieldGet2(this, _SessionToolRunner_confirmationVerdicts, "f").get(held.id);
|
|
4404
|
+
if (verdict !== undefined)
|
|
4405
|
+
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_applyVerdict).call(this, held, verdict);
|
|
4406
|
+
}
|
|
4407
|
+
const outstanding = unanswered.filter((ev) => !__classPrivateFieldGet2(this, _SessionToolRunner_answered, "f").has(ev.id) && !__classPrivateFieldGet2(this, _SessionToolRunner_awaitingConfirmation, "f").has(ev.id));
|
|
4408
|
+
if (lastWasEndTurn && outstanding.length === 0)
|
|
4409
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").arm();
|
|
4410
|
+
else
|
|
4411
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").disarm();
|
|
4280
4412
|
}, _SessionToolRunner_ingestHistory = function _SessionToolRunner_ingestHistory2(ev, pending) {
|
|
4281
4413
|
if (ev.type === "agent.tool_use" || ev.type === "agent.custom_tool_use") {
|
|
4282
4414
|
__classPrivateFieldGet2(this, _SessionToolRunner_seen, "f").add(ev.id);
|
|
@@ -4286,20 +4418,23 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4286
4418
|
__classPrivateFieldGet2(this, _SessionToolRunner_answered, "f").add(ev.tool_use_id);
|
|
4287
4419
|
} else if (ev.type === "user.custom_tool_result") {
|
|
4288
4420
|
__classPrivateFieldGet2(this, _SessionToolRunner_answered, "f").add(ev.custom_tool_use_id);
|
|
4421
|
+
} else if (ev.type === "user.tool_confirmation") {
|
|
4422
|
+
if (!__classPrivateFieldGet2(this, _SessionToolRunner_answered, "f").has(ev.tool_use_id))
|
|
4423
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_confirmationVerdicts, "f").set(ev.tool_use_id, ev.result);
|
|
4289
4424
|
}
|
|
4290
4425
|
}, _SessionToolRunner_handleStreamEvent = async function _SessionToolRunner_handleStreamEvent2(ev) {
|
|
4291
|
-
|
|
4292
|
-
__classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_armIdleTimer).call(this);
|
|
4293
|
-
else
|
|
4294
|
-
__classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_disarmIdleTimer).call(this);
|
|
4426
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").noteEvent(ev);
|
|
4295
4427
|
switch (ev.type) {
|
|
4296
4428
|
case "agent.tool_use":
|
|
4297
4429
|
case "agent.custom_tool_use":
|
|
4298
4430
|
if (!__classPrivateFieldGet2(this, _SessionToolRunner_seen, "f").has(ev.id)) {
|
|
4299
4431
|
__classPrivateFieldGet2(this, _SessionToolRunner_seen, "f").add(ev.id);
|
|
4300
|
-
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m",
|
|
4432
|
+
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_routeToolEvent).call(this, ev);
|
|
4301
4433
|
}
|
|
4302
4434
|
return false;
|
|
4435
|
+
case "user.tool_confirmation":
|
|
4436
|
+
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_noteConfirmation).call(this, ev);
|
|
4437
|
+
return false;
|
|
4303
4438
|
case "user.tool_result":
|
|
4304
4439
|
__classPrivateFieldGet2(this, _SessionToolRunner_answered, "f").add(ev.tool_use_id);
|
|
4305
4440
|
return false;
|
|
@@ -4317,24 +4452,69 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4317
4452
|
default:
|
|
4318
4453
|
return false;
|
|
4319
4454
|
}
|
|
4320
|
-
},
|
|
4321
|
-
|
|
4322
|
-
|
|
4455
|
+
}, _SessionToolRunner_routeToolEvent = async function _SessionToolRunner_routeToolEvent2(ev) {
|
|
4456
|
+
const permission = ev.evaluated_permission;
|
|
4457
|
+
const verdict = permission === "deny" ? "deny" : __classPrivateFieldGet2(this, _SessionToolRunner_confirmationVerdicts, "f").get(ev.id);
|
|
4458
|
+
if (verdict === undefined) {
|
|
4459
|
+
if (permission === undefined || permission === "allow") {
|
|
4460
|
+
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_execute).call(this, ev, undefined);
|
|
4461
|
+
} else if (!__classPrivateFieldGet2(this, _SessionToolRunner_awaitingConfirmation, "f").has(ev.id)) {
|
|
4462
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_logger, "f").info("tool call awaiting confirmation; holding", {
|
|
4463
|
+
component: "session-tool-runner",
|
|
4464
|
+
session_id: this.sessionId,
|
|
4465
|
+
tool: ev.name,
|
|
4466
|
+
tool_use_id: ev.id
|
|
4467
|
+
});
|
|
4468
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_awaitingConfirmation, "f").set(ev.id, ev);
|
|
4469
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").block(ev.id);
|
|
4470
|
+
}
|
|
4323
4471
|
return;
|
|
4324
|
-
|
|
4325
|
-
|
|
4472
|
+
}
|
|
4473
|
+
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_applyVerdict).call(this, ev, verdict);
|
|
4474
|
+
}, _SessionToolRunner_noteConfirmation = async function _SessionToolRunner_noteConfirmation2(ev) {
|
|
4475
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_confirmationVerdicts, "f").set(ev.tool_use_id, ev.result);
|
|
4476
|
+
const held = __classPrivateFieldGet2(this, _SessionToolRunner_awaitingConfirmation, "f").get(ev.tool_use_id);
|
|
4477
|
+
if (held === undefined)
|
|
4478
|
+
return;
|
|
4479
|
+
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_applyVerdict).call(this, held, ev.result);
|
|
4480
|
+
}, _SessionToolRunner_applyVerdict = async function _SessionToolRunner_applyVerdict2(ev, verdict) {
|
|
4481
|
+
const wasHeld = __classPrivateFieldGet2(this, _SessionToolRunner_awaitingConfirmation, "f").delete(ev.id);
|
|
4482
|
+
if (verdict === "allow") {
|
|
4483
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_logger, "f").info("tool call confirmed", {
|
|
4326
4484
|
component: "session-tool-runner",
|
|
4327
4485
|
session_id: this.sessionId,
|
|
4328
|
-
|
|
4486
|
+
tool: ev.name,
|
|
4487
|
+
tool_use_id: ev.id
|
|
4329
4488
|
});
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4489
|
+
if (!wasHeld)
|
|
4490
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").block(ev.id);
|
|
4491
|
+
try {
|
|
4492
|
+
await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_execute).call(this, ev, "allow");
|
|
4493
|
+
} finally {
|
|
4494
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").unblock(ev.id);
|
|
4495
|
+
}
|
|
4496
|
+
return;
|
|
4336
4497
|
}
|
|
4337
|
-
|
|
4498
|
+
if (wasHeld)
|
|
4499
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_idleClock, "f").unblock(ev.id);
|
|
4500
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_answered, "f").add(ev.id);
|
|
4501
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_logger, "f").info("tool call denied; not executing", {
|
|
4502
|
+
component: "session-tool-runner",
|
|
4503
|
+
session_id: this.sessionId,
|
|
4504
|
+
tool: ev.name,
|
|
4505
|
+
tool_use_id: ev.id
|
|
4506
|
+
});
|
|
4507
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_surfaceCall).call(this, {
|
|
4508
|
+
event: ev,
|
|
4509
|
+
toolUseId: ev.id,
|
|
4510
|
+
name: ev.name,
|
|
4511
|
+
isError: false,
|
|
4512
|
+
posted: false,
|
|
4513
|
+
confirmation: "deny"
|
|
4514
|
+
});
|
|
4515
|
+
}, _SessionToolRunner_surfaceCall = function _SessionToolRunner_surfaceCall2(call) {
|
|
4516
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_results, "f").push(call);
|
|
4517
|
+
}, _SessionToolRunner_execute = async function _SessionToolRunner_execute2(ev, confirmation) {
|
|
4338
4518
|
var _a3, _b;
|
|
4339
4519
|
if (__classPrivateFieldGet2(this, _SessionToolRunner_answered, "f").has(ev.id))
|
|
4340
4520
|
return;
|
|
@@ -4354,7 +4534,14 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4354
4534
|
tool: ev.name,
|
|
4355
4535
|
tool_use_id: ev.id
|
|
4356
4536
|
});
|
|
4357
|
-
__classPrivateFieldGet2(this,
|
|
4537
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_surfaceCall).call(this, {
|
|
4538
|
+
event: ev,
|
|
4539
|
+
toolUseId: ev.id,
|
|
4540
|
+
name: ev.name,
|
|
4541
|
+
isError: false,
|
|
4542
|
+
posted: false,
|
|
4543
|
+
confirmation
|
|
4544
|
+
});
|
|
4358
4545
|
return;
|
|
4359
4546
|
}
|
|
4360
4547
|
let content;
|
|
@@ -4376,13 +4563,14 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4376
4563
|
}
|
|
4377
4564
|
const result = buildResultEvent(ev, isError2, toSessionContent(content));
|
|
4378
4565
|
const posted = await __classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_sendResult).call(this, result, ev.id);
|
|
4379
|
-
__classPrivateFieldGet2(this,
|
|
4566
|
+
__classPrivateFieldGet2(this, _SessionToolRunner_instances, "m", _SessionToolRunner_surfaceCall).call(this, {
|
|
4380
4567
|
event: ev,
|
|
4381
4568
|
result,
|
|
4382
4569
|
toolUseId: ev.id,
|
|
4383
4570
|
name: ev.name,
|
|
4384
4571
|
isError: isError2,
|
|
4385
|
-
posted
|
|
4572
|
+
posted,
|
|
4573
|
+
confirmation
|
|
4386
4574
|
});
|
|
4387
4575
|
} finally {
|
|
4388
4576
|
__classPrivateFieldSet2(this, _SessionToolRunner_inFlightCount, (_b = __classPrivateFieldGet2(this, _SessionToolRunner_inFlightCount, "f"), _b--, _b), "f");
|
|
@@ -4422,7 +4610,7 @@ var init_SessionToolRunner = __esm(() => {
|
|
|
4422
4610
|
};
|
|
4423
4611
|
});
|
|
4424
4612
|
|
|
4425
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4613
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs
|
|
4426
4614
|
var SUPPORTED_STRING_FORMATS;
|
|
4427
4615
|
var init_transform_json_schema = __esm(() => {
|
|
4428
4616
|
init_utils2();
|
|
@@ -4440,7 +4628,7 @@ var init_transform_json_schema = __esm(() => {
|
|
|
4440
4628
|
]);
|
|
4441
4629
|
});
|
|
4442
4630
|
|
|
4443
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4631
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs
|
|
4444
4632
|
function betaTool(options) {
|
|
4445
4633
|
if (options.inputSchema.type !== "object") {
|
|
4446
4634
|
throw new Error(`JSON schema for tool "${options.name}" must be an object, but got ${options.inputSchema.type}`);
|
|
@@ -4460,7 +4648,7 @@ var init_json_schema = __esm(() => {
|
|
|
4460
4648
|
init_transform_json_schema();
|
|
4461
4649
|
});
|
|
4462
4650
|
|
|
4463
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4651
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs
|
|
4464
4652
|
function promiseWithResolvers() {
|
|
4465
4653
|
let resolve;
|
|
4466
4654
|
let reject;
|
|
@@ -4471,7 +4659,7 @@ function promiseWithResolvers() {
|
|
|
4471
4659
|
return { promise, resolve, reject };
|
|
4472
4660
|
}
|
|
4473
4661
|
|
|
4474
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4662
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs
|
|
4475
4663
|
import * as fs3 from "node:fs/promises";
|
|
4476
4664
|
import * as path5 from "node:path";
|
|
4477
4665
|
import { randomUUID } from "node:crypto";
|
|
@@ -4572,7 +4760,7 @@ var init_fs_util = __esm(() => {
|
|
|
4572
4760
|
init_ToolError();
|
|
4573
4761
|
});
|
|
4574
4762
|
|
|
4575
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4763
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs
|
|
4576
4764
|
import * as fs4 from "node:fs/promises";
|
|
4577
4765
|
import * as fssync from "node:fs";
|
|
4578
4766
|
import * as path6 from "node:path";
|
|
@@ -4737,7 +4925,7 @@ var init_skills = __esm(() => {
|
|
|
4737
4925
|
execFileAsync = promisify(execFile);
|
|
4738
4926
|
});
|
|
4739
4927
|
|
|
4740
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
4928
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs
|
|
4741
4929
|
var exports_node = {};
|
|
4742
4930
|
__export(exports_node, {
|
|
4743
4931
|
setupSkills: () => setupSkills,
|
|
@@ -5321,7 +5509,7 @@ var init_node = __esm(() => {
|
|
|
5321
5509
|
};
|
|
5322
5510
|
});
|
|
5323
5511
|
|
|
5324
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
5512
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs
|
|
5325
5513
|
class EnvironmentWorker {
|
|
5326
5514
|
constructor(opts) {
|
|
5327
5515
|
_EnvironmentWorker_instances.add(this);
|
|
@@ -5486,7 +5674,7 @@ var init_worker = __esm(() => {
|
|
|
5486
5674
|
};
|
|
5487
5675
|
});
|
|
5488
5676
|
|
|
5489
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
5677
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs
|
|
5490
5678
|
var Work;
|
|
5491
5679
|
var init_work = __esm(() => {
|
|
5492
5680
|
init_pagination();
|
|
@@ -5596,7 +5784,7 @@ var init_work = __esm(() => {
|
|
|
5596
5784
|
Work.EnvironmentWorker = EnvironmentWorker;
|
|
5597
5785
|
});
|
|
5598
5786
|
|
|
5599
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
5787
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs
|
|
5600
5788
|
var Environments;
|
|
5601
5789
|
var init_environments = __esm(() => {
|
|
5602
5790
|
init_work();
|
|
@@ -5676,7 +5864,7 @@ var init_environments = __esm(() => {
|
|
|
5676
5864
|
Environments.Work = Work;
|
|
5677
5865
|
});
|
|
5678
5866
|
|
|
5679
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
5867
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs
|
|
5680
5868
|
var Memories;
|
|
5681
5869
|
var init_memories = __esm(() => {
|
|
5682
5870
|
init_pagination();
|
|
@@ -5743,7 +5931,7 @@ var init_memories = __esm(() => {
|
|
|
5743
5931
|
};
|
|
5744
5932
|
});
|
|
5745
5933
|
|
|
5746
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
5934
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs
|
|
5747
5935
|
var MemoryVersions;
|
|
5748
5936
|
var init_memory_versions = __esm(() => {
|
|
5749
5937
|
init_pagination();
|
|
@@ -5785,7 +5973,7 @@ var init_memory_versions = __esm(() => {
|
|
|
5785
5973
|
};
|
|
5786
5974
|
});
|
|
5787
5975
|
|
|
5788
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
5976
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs
|
|
5789
5977
|
var MemoryStores;
|
|
5790
5978
|
var init_memory_stores = __esm(() => {
|
|
5791
5979
|
init_memories();
|
|
@@ -5869,12 +6057,12 @@ var init_memory_stores = __esm(() => {
|
|
|
5869
6057
|
MemoryStores.MemoryVersions = MemoryVersions;
|
|
5870
6058
|
});
|
|
5871
6059
|
|
|
5872
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6060
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/error.mjs
|
|
5873
6061
|
var init_error2 = __esm(() => {
|
|
5874
6062
|
init_error();
|
|
5875
6063
|
});
|
|
5876
6064
|
|
|
5877
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6065
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs
|
|
5878
6066
|
var JSONLDecoder;
|
|
5879
6067
|
var init_jsonl = __esm(() => {
|
|
5880
6068
|
init_error();
|
|
@@ -5911,7 +6099,7 @@ var init_jsonl = __esm(() => {
|
|
|
5911
6099
|
};
|
|
5912
6100
|
});
|
|
5913
6101
|
|
|
5914
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6102
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs
|
|
5915
6103
|
var Batches2;
|
|
5916
6104
|
var init_batches = __esm(() => {
|
|
5917
6105
|
init_pagination();
|
|
@@ -5997,7 +6185,7 @@ var init_batches = __esm(() => {
|
|
|
5997
6185
|
};
|
|
5998
6186
|
});
|
|
5999
6187
|
|
|
6000
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6188
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/constants.mjs
|
|
6001
6189
|
var MODEL_NONSTREAMING_TOKENS;
|
|
6002
6190
|
var init_constants = __esm(() => {
|
|
6003
6191
|
MODEL_NONSTREAMING_TOKENS = {
|
|
@@ -6012,7 +6200,7 @@ var init_constants = __esm(() => {
|
|
|
6012
6200
|
};
|
|
6013
6201
|
});
|
|
6014
6202
|
|
|
6015
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6203
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs
|
|
6016
6204
|
function getOutputFormat(params) {
|
|
6017
6205
|
return params?.output_format ?? params?.output_config?.format;
|
|
6018
6206
|
}
|
|
@@ -6088,12 +6276,12 @@ var init_beta_parser = __esm(() => {
|
|
|
6088
6276
|
init_error();
|
|
6089
6277
|
});
|
|
6090
6278
|
|
|
6091
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6279
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/streaming.mjs
|
|
6092
6280
|
var init_streaming2 = __esm(() => {
|
|
6093
6281
|
init_streaming();
|
|
6094
6282
|
});
|
|
6095
6283
|
|
|
6096
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6284
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs
|
|
6097
6285
|
var tokenize = (input) => {
|
|
6098
6286
|
let current = 0;
|
|
6099
6287
|
let tokens = [];
|
|
@@ -6310,7 +6498,7 @@ var tokenize = (input) => {
|
|
|
6310
6498
|
}, partialParse2 = (input) => JSON.parse(generate(unstrip(strip(tokenize(input)))));
|
|
6311
6499
|
var init_parser = () => {};
|
|
6312
6500
|
|
|
6313
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6501
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs
|
|
6314
6502
|
function withLazyInput(prev, jsonBuf) {
|
|
6315
6503
|
const next = {};
|
|
6316
6504
|
for (const key of Object.keys(prev)) {
|
|
@@ -6338,7 +6526,7 @@ var init_message_stream_utils = __esm(() => {
|
|
|
6338
6526
|
init_parser();
|
|
6339
6527
|
});
|
|
6340
6528
|
|
|
6341
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
6529
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs
|
|
6342
6530
|
function tracksToolInput(content) {
|
|
6343
6531
|
return content.type === "tool_use" || content.type === "server_tool_use" || content.type === "mcp_tool_use";
|
|
6344
6532
|
}
|
|
@@ -6892,7 +7080,7 @@ var init_BetaMessageStream = __esm(() => {
|
|
|
6892
7080
|
};
|
|
6893
7081
|
});
|
|
6894
7082
|
|
|
6895
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7083
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs
|
|
6896
7084
|
var DEFAULT_TOKEN_THRESHOLD = 1e5, DEFAULT_SUMMARY_PROMPT = `You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
|
|
6897
7085
|
1. Task Overview
|
|
6898
7086
|
The user's core request and success criteria
|
|
@@ -6917,7 +7105,7 @@ Any promises made to the user
|
|
|
6917
7105
|
Be concise but complete—err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.
|
|
6918
7106
|
Wrap your summary in <summary></summary> tags.`;
|
|
6919
7107
|
|
|
6920
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7108
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs
|
|
6921
7109
|
async function generateToolResponse(params, lastMessage = params.messages.at(-1), requestOptions) {
|
|
6922
7110
|
if (!lastMessage || lastMessage.role !== "assistant" || !lastMessage.content || typeof lastMessage.content === "string") {
|
|
6923
7111
|
return null;
|
|
@@ -7186,7 +7374,7 @@ var init_BetaToolRunner = __esm(() => {
|
|
|
7186
7374
|
};
|
|
7187
7375
|
});
|
|
7188
7376
|
|
|
7189
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7377
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs
|
|
7190
7378
|
function transformOutputFormat(params) {
|
|
7191
7379
|
if (!params.output_format) {
|
|
7192
7380
|
return params;
|
|
@@ -7313,7 +7501,7 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
|
|
|
7313
7501
|
Messages3.ToolError = ToolError;
|
|
7314
7502
|
});
|
|
7315
7503
|
|
|
7316
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7504
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs
|
|
7317
7505
|
var Events;
|
|
7318
7506
|
var init_events = __esm(() => {
|
|
7319
7507
|
init_pagination();
|
|
@@ -7363,7 +7551,7 @@ var init_events = __esm(() => {
|
|
|
7363
7551
|
Events.SessionToolRunner = SessionToolRunner;
|
|
7364
7552
|
});
|
|
7365
7553
|
|
|
7366
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7554
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs
|
|
7367
7555
|
var Resources;
|
|
7368
7556
|
var init_resources = __esm(() => {
|
|
7369
7557
|
init_pagination();
|
|
@@ -7426,7 +7614,7 @@ var init_resources = __esm(() => {
|
|
|
7426
7614
|
};
|
|
7427
7615
|
});
|
|
7428
7616
|
|
|
7429
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7617
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs
|
|
7430
7618
|
var Events2;
|
|
7431
7619
|
var init_events2 = __esm(() => {
|
|
7432
7620
|
init_pagination();
|
|
@@ -7458,7 +7646,7 @@ var init_events2 = __esm(() => {
|
|
|
7458
7646
|
};
|
|
7459
7647
|
});
|
|
7460
7648
|
|
|
7461
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7649
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs
|
|
7462
7650
|
var Threads3;
|
|
7463
7651
|
var init_threads = __esm(() => {
|
|
7464
7652
|
init_events2();
|
|
@@ -7506,7 +7694,7 @@ var init_threads = __esm(() => {
|
|
|
7506
7694
|
Threads3.Events = Events2;
|
|
7507
7695
|
});
|
|
7508
7696
|
|
|
7509
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7697
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs
|
|
7510
7698
|
var Sessions3;
|
|
7511
7699
|
var init_sessions = __esm(() => {
|
|
7512
7700
|
init_events();
|
|
@@ -7594,7 +7782,7 @@ var init_sessions = __esm(() => {
|
|
|
7594
7782
|
Sessions3.Threads = Threads3;
|
|
7595
7783
|
});
|
|
7596
7784
|
|
|
7597
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7785
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs
|
|
7598
7786
|
var Versions3;
|
|
7599
7787
|
var init_versions2 = __esm(() => {
|
|
7600
7788
|
init_pagination();
|
|
@@ -7661,7 +7849,7 @@ var init_versions2 = __esm(() => {
|
|
|
7661
7849
|
};
|
|
7662
7850
|
});
|
|
7663
7851
|
|
|
7664
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7852
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs
|
|
7665
7853
|
var Skills2;
|
|
7666
7854
|
var init_skills2 = __esm(() => {
|
|
7667
7855
|
init_versions2();
|
|
@@ -7721,7 +7909,7 @@ var init_skills2 = __esm(() => {
|
|
|
7721
7909
|
Skills2.Versions = Versions3;
|
|
7722
7910
|
});
|
|
7723
7911
|
|
|
7724
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7912
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs
|
|
7725
7913
|
var Credentials;
|
|
7726
7914
|
var init_credentials2 = __esm(() => {
|
|
7727
7915
|
init_pagination();
|
|
@@ -7804,7 +7992,7 @@ var init_credentials2 = __esm(() => {
|
|
|
7804
7992
|
};
|
|
7805
7993
|
});
|
|
7806
7994
|
|
|
7807
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
7995
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs
|
|
7808
7996
|
var Vaults;
|
|
7809
7997
|
var init_vaults = __esm(() => {
|
|
7810
7998
|
init_credentials2();
|
|
@@ -7884,13 +8072,15 @@ var init_vaults = __esm(() => {
|
|
|
7884
8072
|
Vaults.Credentials = Credentials;
|
|
7885
8073
|
});
|
|
7886
8074
|
|
|
7887
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8075
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs
|
|
7888
8076
|
var Beta2;
|
|
7889
8077
|
var init_beta = __esm(() => {
|
|
7890
8078
|
init_deployment_runs();
|
|
7891
8079
|
init_deployment_runs();
|
|
7892
8080
|
init_deployments();
|
|
7893
8081
|
init_deployments();
|
|
8082
|
+
init_dreams();
|
|
8083
|
+
init_dreams();
|
|
7894
8084
|
init_files();
|
|
7895
8085
|
init_files();
|
|
7896
8086
|
init_models();
|
|
@@ -7929,6 +8119,7 @@ var init_beta = __esm(() => {
|
|
|
7929
8119
|
this.skills = new Skills2(this._client);
|
|
7930
8120
|
this.webhooks = new Webhooks2(this._client);
|
|
7931
8121
|
this.userProfiles = new UserProfiles(this._client);
|
|
8122
|
+
this.dreams = new Dreams(this._client);
|
|
7932
8123
|
}
|
|
7933
8124
|
};
|
|
7934
8125
|
Beta2.Models = Models2;
|
|
@@ -7944,9 +8135,10 @@ var init_beta = __esm(() => {
|
|
|
7944
8135
|
Beta2.Skills = Skills2;
|
|
7945
8136
|
Beta2.Webhooks = Webhooks2;
|
|
7946
8137
|
Beta2.UserProfiles = UserProfiles;
|
|
8138
|
+
Beta2.Dreams = Dreams;
|
|
7947
8139
|
});
|
|
7948
8140
|
|
|
7949
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8141
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/completions.mjs
|
|
7950
8142
|
var Completions3;
|
|
7951
8143
|
var init_completions = __esm(() => {
|
|
7952
8144
|
init_headers();
|
|
@@ -7967,7 +8159,7 @@ var init_completions = __esm(() => {
|
|
|
7967
8159
|
};
|
|
7968
8160
|
});
|
|
7969
8161
|
|
|
7970
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8162
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/parser.mjs
|
|
7971
8163
|
function getOutputFormat2(params) {
|
|
7972
8164
|
return params?.output_config?.format;
|
|
7973
8165
|
}
|
|
@@ -8031,7 +8223,7 @@ var init_parser2 = __esm(() => {
|
|
|
8031
8223
|
init_error();
|
|
8032
8224
|
});
|
|
8033
8225
|
|
|
8034
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8226
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs
|
|
8035
8227
|
function tracksToolInput2(content) {
|
|
8036
8228
|
return content.type === "tool_use" || content.type === "server_tool_use";
|
|
8037
8229
|
}
|
|
@@ -8544,7 +8736,7 @@ var init_MessageStream = __esm(() => {
|
|
|
8544
8736
|
};
|
|
8545
8737
|
});
|
|
8546
8738
|
|
|
8547
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8739
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs
|
|
8548
8740
|
var Batches3;
|
|
8549
8741
|
var init_batches2 = __esm(() => {
|
|
8550
8742
|
init_pagination();
|
|
@@ -8591,7 +8783,7 @@ var init_batches2 = __esm(() => {
|
|
|
8591
8783
|
};
|
|
8592
8784
|
});
|
|
8593
8785
|
|
|
8594
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8786
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs
|
|
8595
8787
|
var Messages4, DEPRECATED_MODELS2, MODELS_TO_WARN_WITH_THINKING_ENABLED2;
|
|
8596
8788
|
var init_messages2 = __esm(() => {
|
|
8597
8789
|
init_headers();
|
|
@@ -8677,7 +8869,7 @@ Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resour
|
|
|
8677
8869
|
Messages4.Batches = Batches3;
|
|
8678
8870
|
});
|
|
8679
8871
|
|
|
8680
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8872
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/models.mjs
|
|
8681
8873
|
var Models3;
|
|
8682
8874
|
var init_models2 = __esm(() => {
|
|
8683
8875
|
init_pagination();
|
|
@@ -8708,7 +8900,7 @@ var init_models2 = __esm(() => {
|
|
|
8708
8900
|
};
|
|
8709
8901
|
});
|
|
8710
8902
|
|
|
8711
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8903
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/resources/index.mjs
|
|
8712
8904
|
var init_resources2 = __esm(() => {
|
|
8713
8905
|
init_beta();
|
|
8714
8906
|
init_completions();
|
|
@@ -8717,7 +8909,7 @@ var init_resources2 = __esm(() => {
|
|
|
8717
8909
|
init_shared();
|
|
8718
8910
|
});
|
|
8719
8911
|
|
|
8720
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
8912
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/client.mjs
|
|
8721
8913
|
class BaseAnthropic {
|
|
8722
8914
|
get credentials() {
|
|
8723
8915
|
return this._authState.provider;
|
|
@@ -9370,7 +9562,7 @@ var init_client = __esm(() => {
|
|
|
9370
9562
|
Anthropic.Beta = Beta2;
|
|
9371
9563
|
});
|
|
9372
9564
|
|
|
9373
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
9565
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/lib/middleware.mjs
|
|
9374
9566
|
var encoder;
|
|
9375
9567
|
var init_middleware2 = __esm(() => {
|
|
9376
9568
|
init_error();
|
|
@@ -9381,7 +9573,7 @@ var init_middleware2 = __esm(() => {
|
|
|
9381
9573
|
encoder = new TextEncoder;
|
|
9382
9574
|
});
|
|
9383
9575
|
|
|
9384
|
-
// ../../node_modules/.bun/@anthropic-ai+sdk@0.
|
|
9576
|
+
// ../../node_modules/.bun/@anthropic-ai+sdk@0.111.0+68a1e3a0c4588df3/node_modules/@anthropic-ai/sdk/index.mjs
|
|
9385
9577
|
var init_sdk = __esm(() => {
|
|
9386
9578
|
init_client();
|
|
9387
9579
|
init_uploads2();
|
|
@@ -63337,7 +63529,7 @@ var require_path = __commonJS((exports) => {
|
|
|
63337
63529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63338
63530
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = undefined;
|
|
63339
63531
|
var os6 = __require("os");
|
|
63340
|
-
var
|
|
63532
|
+
var path18 = __require("path");
|
|
63341
63533
|
var IS_WINDOWS_PLATFORM = os6.platform() === "win32";
|
|
63342
63534
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
63343
63535
|
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
@@ -63349,7 +63541,7 @@ var require_path = __commonJS((exports) => {
|
|
|
63349
63541
|
}
|
|
63350
63542
|
exports.unixify = unixify;
|
|
63351
63543
|
function makeAbsolute(cwd2, filepath) {
|
|
63352
|
-
return
|
|
63544
|
+
return path18.resolve(cwd2, filepath);
|
|
63353
63545
|
}
|
|
63354
63546
|
exports.makeAbsolute = makeAbsolute;
|
|
63355
63547
|
function removeLeadingDotSegment(entry) {
|
|
@@ -64607,7 +64799,7 @@ var require_braces = __commonJS((exports, module) => {
|
|
|
64607
64799
|
|
|
64608
64800
|
// ../../node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
|
|
64609
64801
|
var require_constants5 = __commonJS((exports, module) => {
|
|
64610
|
-
var
|
|
64802
|
+
var path18 = __require("path");
|
|
64611
64803
|
var WIN_SLASH = "\\\\/";
|
|
64612
64804
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
64613
64805
|
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
@@ -64733,7 +64925,7 @@ var require_constants5 = __commonJS((exports, module) => {
|
|
|
64733
64925
|
CHAR_UNDERSCORE: 95,
|
|
64734
64926
|
CHAR_VERTICAL_LINE: 124,
|
|
64735
64927
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
64736
|
-
SEP:
|
|
64928
|
+
SEP: path18.sep,
|
|
64737
64929
|
extglobChars(chars) {
|
|
64738
64930
|
return {
|
|
64739
64931
|
"!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
|
|
@@ -64751,7 +64943,7 @@ var require_constants5 = __commonJS((exports, module) => {
|
|
|
64751
64943
|
|
|
64752
64944
|
// ../../node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
|
|
64753
64945
|
var require_utils2 = __commonJS((exports) => {
|
|
64754
|
-
var
|
|
64946
|
+
var path18 = __require("path");
|
|
64755
64947
|
var win32 = process.platform === "win32";
|
|
64756
64948
|
var {
|
|
64757
64949
|
REGEX_BACKSLASH,
|
|
@@ -64780,7 +64972,7 @@ var require_utils2 = __commonJS((exports) => {
|
|
|
64780
64972
|
if (options && typeof options.windows === "boolean") {
|
|
64781
64973
|
return options.windows;
|
|
64782
64974
|
}
|
|
64783
|
-
return win32 === true ||
|
|
64975
|
+
return win32 === true || path18.sep === "\\";
|
|
64784
64976
|
};
|
|
64785
64977
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
64786
64978
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -66133,7 +66325,7 @@ var require_parse5 = __commonJS((exports, module) => {
|
|
|
66133
66325
|
|
|
66134
66326
|
// ../../node_modules/.bun/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
|
|
66135
66327
|
var require_picomatch = __commonJS((exports, module) => {
|
|
66136
|
-
var
|
|
66328
|
+
var path18 = __require("path");
|
|
66137
66329
|
var scan = require_scan();
|
|
66138
66330
|
var parse2 = require_parse5();
|
|
66139
66331
|
var utils = require_utils2();
|
|
@@ -66219,7 +66411,7 @@ var require_picomatch = __commonJS((exports, module) => {
|
|
|
66219
66411
|
};
|
|
66220
66412
|
picomatch.matchBase = (input, glob2, options, posix = utils.isWindows(options)) => {
|
|
66221
66413
|
const regex2 = glob2 instanceof RegExp ? glob2 : picomatch.makeRe(glob2, options);
|
|
66222
|
-
return regex2.test(
|
|
66414
|
+
return regex2.test(path18.basename(input));
|
|
66223
66415
|
};
|
|
66224
66416
|
picomatch.isMatch = (str2, patterns, options) => picomatch(patterns, options)(str2);
|
|
66225
66417
|
picomatch.parse = (pattern, options) => {
|
|
@@ -66440,7 +66632,7 @@ var require_micromatch = __commonJS((exports, module) => {
|
|
|
66440
66632
|
var require_pattern = __commonJS((exports) => {
|
|
66441
66633
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66442
66634
|
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = undefined;
|
|
66443
|
-
var
|
|
66635
|
+
var path18 = __require("path");
|
|
66444
66636
|
var globParent = require_glob_parent();
|
|
66445
66637
|
var micromatch = require_micromatch();
|
|
66446
66638
|
var GLOBSTAR = "**";
|
|
@@ -66535,7 +66727,7 @@ var require_pattern = __commonJS((exports) => {
|
|
|
66535
66727
|
}
|
|
66536
66728
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
66537
66729
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
66538
|
-
const basename5 =
|
|
66730
|
+
const basename5 = path18.basename(pattern);
|
|
66539
66731
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename5);
|
|
66540
66732
|
}
|
|
66541
66733
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -66593,7 +66785,7 @@ var require_pattern = __commonJS((exports) => {
|
|
|
66593
66785
|
}
|
|
66594
66786
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
66595
66787
|
function isAbsolute3(pattern) {
|
|
66596
|
-
return
|
|
66788
|
+
return path18.isAbsolute(pattern);
|
|
66597
66789
|
}
|
|
66598
66790
|
exports.isAbsolute = isAbsolute3;
|
|
66599
66791
|
});
|
|
@@ -66756,10 +66948,10 @@ var require_utils3 = __commonJS((exports) => {
|
|
|
66756
66948
|
exports.array = array;
|
|
66757
66949
|
var errno = require_errno();
|
|
66758
66950
|
exports.errno = errno;
|
|
66759
|
-
var
|
|
66760
|
-
exports.fs =
|
|
66761
|
-
var
|
|
66762
|
-
exports.path =
|
|
66951
|
+
var fs19 = require_fs();
|
|
66952
|
+
exports.fs = fs19;
|
|
66953
|
+
var path18 = require_path();
|
|
66954
|
+
exports.path = path18;
|
|
66763
66955
|
var pattern = require_pattern();
|
|
66764
66956
|
exports.pattern = pattern;
|
|
66765
66957
|
var stream = require_stream3();
|
|
@@ -66855,8 +67047,8 @@ var require_tasks = __commonJS((exports) => {
|
|
|
66855
67047
|
var require_async = __commonJS((exports) => {
|
|
66856
67048
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66857
67049
|
exports.read = undefined;
|
|
66858
|
-
function read2(
|
|
66859
|
-
settings.fs.lstat(
|
|
67050
|
+
function read2(path18, settings, callback) {
|
|
67051
|
+
settings.fs.lstat(path18, (lstatError, lstat2) => {
|
|
66860
67052
|
if (lstatError !== null) {
|
|
66861
67053
|
callFailureCallback(callback, lstatError);
|
|
66862
67054
|
return;
|
|
@@ -66865,7 +67057,7 @@ var require_async = __commonJS((exports) => {
|
|
|
66865
67057
|
callSuccessCallback(callback, lstat2);
|
|
66866
67058
|
return;
|
|
66867
67059
|
}
|
|
66868
|
-
settings.fs.stat(
|
|
67060
|
+
settings.fs.stat(path18, (statError, stat4) => {
|
|
66869
67061
|
if (statError !== null) {
|
|
66870
67062
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
66871
67063
|
callFailureCallback(callback, statError);
|
|
@@ -66894,13 +67086,13 @@ var require_async = __commonJS((exports) => {
|
|
|
66894
67086
|
var require_sync = __commonJS((exports) => {
|
|
66895
67087
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66896
67088
|
exports.read = undefined;
|
|
66897
|
-
function read2(
|
|
66898
|
-
const lstat2 = settings.fs.lstatSync(
|
|
67089
|
+
function read2(path18, settings) {
|
|
67090
|
+
const lstat2 = settings.fs.lstatSync(path18);
|
|
66899
67091
|
if (!lstat2.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
66900
67092
|
return lstat2;
|
|
66901
67093
|
}
|
|
66902
67094
|
try {
|
|
66903
|
-
const stat4 = settings.fs.statSync(
|
|
67095
|
+
const stat4 = settings.fs.statSync(path18);
|
|
66904
67096
|
if (settings.markSymbolicLink) {
|
|
66905
67097
|
stat4.isSymbolicLink = () => true;
|
|
66906
67098
|
}
|
|
@@ -66919,12 +67111,12 @@ var require_sync = __commonJS((exports) => {
|
|
|
66919
67111
|
var require_fs2 = __commonJS((exports) => {
|
|
66920
67112
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66921
67113
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = undefined;
|
|
66922
|
-
var
|
|
67114
|
+
var fs19 = __require("fs");
|
|
66923
67115
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
66924
|
-
lstat:
|
|
66925
|
-
stat:
|
|
66926
|
-
lstatSync:
|
|
66927
|
-
statSync:
|
|
67116
|
+
lstat: fs19.lstat,
|
|
67117
|
+
stat: fs19.stat,
|
|
67118
|
+
lstatSync: fs19.lstatSync,
|
|
67119
|
+
statSync: fs19.statSync
|
|
66928
67120
|
};
|
|
66929
67121
|
function createFileSystemAdapter(fsMethods) {
|
|
66930
67122
|
if (fsMethods === undefined) {
|
|
@@ -66938,13 +67130,13 @@ var require_fs2 = __commonJS((exports) => {
|
|
|
66938
67130
|
// ../../node_modules/.bun/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
|
|
66939
67131
|
var require_settings = __commonJS((exports) => {
|
|
66940
67132
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66941
|
-
var
|
|
67133
|
+
var fs19 = require_fs2();
|
|
66942
67134
|
|
|
66943
67135
|
class Settings {
|
|
66944
67136
|
constructor(_options = {}) {
|
|
66945
67137
|
this._options = _options;
|
|
66946
67138
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
66947
|
-
this.fs =
|
|
67139
|
+
this.fs = fs19.createFileSystemAdapter(this._options.fs);
|
|
66948
67140
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
66949
67141
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
66950
67142
|
}
|
|
@@ -66963,17 +67155,17 @@ var require_out = __commonJS((exports) => {
|
|
|
66963
67155
|
var sync = require_sync();
|
|
66964
67156
|
var settings_1 = require_settings();
|
|
66965
67157
|
exports.Settings = settings_1.default;
|
|
66966
|
-
function stat4(
|
|
67158
|
+
function stat4(path18, optionsOrSettingsOrCallback, callback) {
|
|
66967
67159
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
66968
|
-
async.read(
|
|
67160
|
+
async.read(path18, getSettings(), optionsOrSettingsOrCallback);
|
|
66969
67161
|
return;
|
|
66970
67162
|
}
|
|
66971
|
-
async.read(
|
|
67163
|
+
async.read(path18, getSettings(optionsOrSettingsOrCallback), callback);
|
|
66972
67164
|
}
|
|
66973
67165
|
exports.stat = stat4;
|
|
66974
|
-
function statSync3(
|
|
67166
|
+
function statSync3(path18, optionsOrSettings) {
|
|
66975
67167
|
const settings = getSettings(optionsOrSettings);
|
|
66976
|
-
return sync.read(
|
|
67168
|
+
return sync.read(path18, settings);
|
|
66977
67169
|
}
|
|
66978
67170
|
exports.statSync = statSync3;
|
|
66979
67171
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -67089,8 +67281,8 @@ var require_fs3 = __commonJS((exports) => {
|
|
|
67089
67281
|
var require_utils4 = __commonJS((exports) => {
|
|
67090
67282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67091
67283
|
exports.fs = undefined;
|
|
67092
|
-
var
|
|
67093
|
-
exports.fs =
|
|
67284
|
+
var fs19 = require_fs3();
|
|
67285
|
+
exports.fs = fs19;
|
|
67094
67286
|
});
|
|
67095
67287
|
|
|
67096
67288
|
// ../../node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
@@ -67176,16 +67368,16 @@ var require_async2 = __commonJS((exports) => {
|
|
|
67176
67368
|
return;
|
|
67177
67369
|
}
|
|
67178
67370
|
const tasks = names.map((name) => {
|
|
67179
|
-
const
|
|
67371
|
+
const path18 = common2.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
67180
67372
|
return (done) => {
|
|
67181
|
-
fsStat.stat(
|
|
67373
|
+
fsStat.stat(path18, settings.fsStatSettings, (error3, stats) => {
|
|
67182
67374
|
if (error3 !== null) {
|
|
67183
67375
|
done(error3);
|
|
67184
67376
|
return;
|
|
67185
67377
|
}
|
|
67186
67378
|
const entry = {
|
|
67187
67379
|
name,
|
|
67188
|
-
path:
|
|
67380
|
+
path: path18,
|
|
67189
67381
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
67190
67382
|
};
|
|
67191
67383
|
if (settings.stats) {
|
|
@@ -67273,14 +67465,14 @@ var require_sync2 = __commonJS((exports) => {
|
|
|
67273
67465
|
var require_fs4 = __commonJS((exports) => {
|
|
67274
67466
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67275
67467
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = undefined;
|
|
67276
|
-
var
|
|
67468
|
+
var fs19 = __require("fs");
|
|
67277
67469
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
67278
|
-
lstat:
|
|
67279
|
-
stat:
|
|
67280
|
-
lstatSync:
|
|
67281
|
-
statSync:
|
|
67282
|
-
readdir:
|
|
67283
|
-
readdirSync:
|
|
67470
|
+
lstat: fs19.lstat,
|
|
67471
|
+
stat: fs19.stat,
|
|
67472
|
+
lstatSync: fs19.lstatSync,
|
|
67473
|
+
statSync: fs19.statSync,
|
|
67474
|
+
readdir: fs19.readdir,
|
|
67475
|
+
readdirSync: fs19.readdirSync
|
|
67284
67476
|
};
|
|
67285
67477
|
function createFileSystemAdapter(fsMethods) {
|
|
67286
67478
|
if (fsMethods === undefined) {
|
|
@@ -67294,16 +67486,16 @@ var require_fs4 = __commonJS((exports) => {
|
|
|
67294
67486
|
// ../../node_modules/.bun/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
|
|
67295
67487
|
var require_settings2 = __commonJS((exports) => {
|
|
67296
67488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67297
|
-
var
|
|
67489
|
+
var path18 = __require("path");
|
|
67298
67490
|
var fsStat = require_out();
|
|
67299
|
-
var
|
|
67491
|
+
var fs19 = require_fs4();
|
|
67300
67492
|
|
|
67301
67493
|
class Settings {
|
|
67302
67494
|
constructor(_options = {}) {
|
|
67303
67495
|
this._options = _options;
|
|
67304
67496
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
67305
|
-
this.fs =
|
|
67306
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
67497
|
+
this.fs = fs19.createFileSystemAdapter(this._options.fs);
|
|
67498
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path18.sep);
|
|
67307
67499
|
this.stats = this._getValue(this._options.stats, false);
|
|
67308
67500
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
67309
67501
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -67327,17 +67519,17 @@ var require_out2 = __commonJS((exports) => {
|
|
|
67327
67519
|
var sync = require_sync2();
|
|
67328
67520
|
var settings_1 = require_settings2();
|
|
67329
67521
|
exports.Settings = settings_1.default;
|
|
67330
|
-
function scandir(
|
|
67522
|
+
function scandir(path18, optionsOrSettingsOrCallback, callback) {
|
|
67331
67523
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
67332
|
-
async.read(
|
|
67524
|
+
async.read(path18, getSettings(), optionsOrSettingsOrCallback);
|
|
67333
67525
|
return;
|
|
67334
67526
|
}
|
|
67335
|
-
async.read(
|
|
67527
|
+
async.read(path18, getSettings(optionsOrSettingsOrCallback), callback);
|
|
67336
67528
|
}
|
|
67337
67529
|
exports.scandir = scandir;
|
|
67338
|
-
function scandirSync(
|
|
67530
|
+
function scandirSync(path18, optionsOrSettings) {
|
|
67339
67531
|
const settings = getSettings(optionsOrSettings);
|
|
67340
|
-
return sync.read(
|
|
67532
|
+
return sync.read(path18, settings);
|
|
67341
67533
|
}
|
|
67342
67534
|
exports.scandirSync = scandirSync;
|
|
67343
67535
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -67961,7 +68153,7 @@ var require_sync4 = __commonJS((exports) => {
|
|
|
67961
68153
|
// ../../node_modules/.bun/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
|
|
67962
68154
|
var require_settings3 = __commonJS((exports) => {
|
|
67963
68155
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67964
|
-
var
|
|
68156
|
+
var path18 = __require("path");
|
|
67965
68157
|
var fsScandir = require_out2();
|
|
67966
68158
|
|
|
67967
68159
|
class Settings {
|
|
@@ -67972,7 +68164,7 @@ var require_settings3 = __commonJS((exports) => {
|
|
|
67972
68164
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
67973
68165
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
67974
68166
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
67975
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
68167
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path18.sep);
|
|
67976
68168
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
67977
68169
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
67978
68170
|
fs: this._options.fs,
|
|
@@ -68028,7 +68220,7 @@ var require_out3 = __commonJS((exports) => {
|
|
|
68028
68220
|
// ../../node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
68029
68221
|
var require_reader2 = __commonJS((exports) => {
|
|
68030
68222
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68031
|
-
var
|
|
68223
|
+
var path18 = __require("path");
|
|
68032
68224
|
var fsStat = require_out();
|
|
68033
68225
|
var utils = require_utils3();
|
|
68034
68226
|
|
|
@@ -68042,7 +68234,7 @@ var require_reader2 = __commonJS((exports) => {
|
|
|
68042
68234
|
});
|
|
68043
68235
|
}
|
|
68044
68236
|
_getFullEntryPath(filepath) {
|
|
68045
|
-
return
|
|
68237
|
+
return path18.resolve(this._settings.cwd, filepath);
|
|
68046
68238
|
}
|
|
68047
68239
|
_makeEntry(stats, pattern) {
|
|
68048
68240
|
const entry = {
|
|
@@ -68439,7 +68631,7 @@ var require_entry2 = __commonJS((exports) => {
|
|
|
68439
68631
|
// ../../node_modules/.bun/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
68440
68632
|
var require_provider = __commonJS((exports) => {
|
|
68441
68633
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68442
|
-
var
|
|
68634
|
+
var path18 = __require("path");
|
|
68443
68635
|
var deep_1 = require_deep();
|
|
68444
68636
|
var entry_1 = require_entry();
|
|
68445
68637
|
var error_1 = require_error2();
|
|
@@ -68454,7 +68646,7 @@ var require_provider = __commonJS((exports) => {
|
|
|
68454
68646
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
68455
68647
|
}
|
|
68456
68648
|
_getRootDirectory(task) {
|
|
68457
|
-
return
|
|
68649
|
+
return path18.resolve(this._settings.cwd, task.base);
|
|
68458
68650
|
}
|
|
68459
68651
|
_getReaderOptions(task) {
|
|
68460
68652
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -68623,16 +68815,16 @@ var require_sync6 = __commonJS((exports) => {
|
|
|
68623
68815
|
var require_settings4 = __commonJS((exports) => {
|
|
68624
68816
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
68625
68817
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = undefined;
|
|
68626
|
-
var
|
|
68818
|
+
var fs19 = __require("fs");
|
|
68627
68819
|
var os6 = __require("os");
|
|
68628
68820
|
var CPU_COUNT = Math.max(os6.cpus().length, 1);
|
|
68629
68821
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
68630
|
-
lstat:
|
|
68631
|
-
lstatSync:
|
|
68632
|
-
stat:
|
|
68633
|
-
statSync:
|
|
68634
|
-
readdir:
|
|
68635
|
-
readdirSync:
|
|
68822
|
+
lstat: fs19.lstat,
|
|
68823
|
+
lstatSync: fs19.lstatSync,
|
|
68824
|
+
stat: fs19.stat,
|
|
68825
|
+
statSync: fs19.statSync,
|
|
68826
|
+
readdir: fs19.readdir,
|
|
68827
|
+
readdirSync: fs19.readdirSync
|
|
68636
68828
|
};
|
|
68637
68829
|
|
|
68638
68830
|
class Settings {
|
|
@@ -69834,7 +70026,7 @@ if (!globalSymbols.__taskManager) {
|
|
|
69834
70026
|
var taskManager = globalSymbols.__taskManager;
|
|
69835
70027
|
// ../../packages/providers/src/registry.ts
|
|
69836
70028
|
var providers = new Map;
|
|
69837
|
-
// ../../node_modules/.bun/openai@6.
|
|
70029
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/tslib.mjs
|
|
69838
70030
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
69839
70031
|
if (kind === "m")
|
|
69840
70032
|
throw new TypeError("Private method is not writable");
|
|
@@ -69852,7 +70044,7 @@ function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
|
69852
70044
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
69853
70045
|
}
|
|
69854
70046
|
|
|
69855
|
-
// ../../node_modules/.bun/openai@6.
|
|
70047
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/uuid.mjs
|
|
69856
70048
|
var uuid4 = function() {
|
|
69857
70049
|
const { crypto: crypto2 } = globalThis;
|
|
69858
70050
|
if (crypto2?.randomUUID) {
|
|
@@ -69864,7 +70056,7 @@ var uuid4 = function() {
|
|
|
69864
70056
|
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c) => (+c ^ randomByte() & 15 >> +c / 4).toString(16));
|
|
69865
70057
|
};
|
|
69866
70058
|
|
|
69867
|
-
// ../../node_modules/.bun/openai@6.
|
|
70059
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/errors.mjs
|
|
69868
70060
|
function isAbortError(err) {
|
|
69869
70061
|
return typeof err === "object" && err !== null && (("name" in err) && err.name === "AbortError" || ("message" in err) && String(err.message).includes("FetchRequestCanceledException"));
|
|
69870
70062
|
}
|
|
@@ -69891,7 +70083,7 @@ var castToError = (err) => {
|
|
|
69891
70083
|
return new Error(err);
|
|
69892
70084
|
};
|
|
69893
70085
|
|
|
69894
|
-
// ../../node_modules/.bun/openai@6.
|
|
70086
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/core/error.mjs
|
|
69895
70087
|
class OpenAIError extends Error {
|
|
69896
70088
|
}
|
|
69897
70089
|
|
|
@@ -70042,7 +70234,7 @@ class SubjectTokenProviderError extends OpenAIError {
|
|
|
70042
70234
|
}
|
|
70043
70235
|
}
|
|
70044
70236
|
|
|
70045
|
-
// ../../node_modules/.bun/openai@6.
|
|
70237
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/values.mjs
|
|
70046
70238
|
var startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
70047
70239
|
var isAbsoluteURL = (url) => {
|
|
70048
70240
|
return startsWithSchemeRegexp.test(url);
|
|
@@ -70085,13 +70277,13 @@ var safeJSON = (text) => {
|
|
|
70085
70277
|
}
|
|
70086
70278
|
};
|
|
70087
70279
|
|
|
70088
|
-
// ../../node_modules/.bun/openai@6.
|
|
70280
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/sleep.mjs
|
|
70089
70281
|
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
70090
70282
|
|
|
70091
|
-
// ../../node_modules/.bun/openai@6.
|
|
70092
|
-
var VERSION = "6.
|
|
70283
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/version.mjs
|
|
70284
|
+
var VERSION = "6.46.0";
|
|
70093
70285
|
|
|
70094
|
-
// ../../node_modules/.bun/openai@6.
|
|
70286
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/detect-platform.mjs
|
|
70095
70287
|
var isRunningInBrowser = () => {
|
|
70096
70288
|
return typeof window !== "undefined" && typeof window.document !== "undefined" && typeof navigator !== "undefined";
|
|
70097
70289
|
};
|
|
@@ -70220,7 +70412,7 @@ var getPlatformHeaders = () => {
|
|
|
70220
70412
|
return _platformHeaders ?? (_platformHeaders = getPlatformProperties());
|
|
70221
70413
|
};
|
|
70222
70414
|
|
|
70223
|
-
// ../../node_modules/.bun/openai@6.
|
|
70415
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/shims.mjs
|
|
70224
70416
|
function getDefaultFetch() {
|
|
70225
70417
|
if (typeof fetch !== "undefined") {
|
|
70226
70418
|
return fetch;
|
|
@@ -70291,7 +70483,7 @@ async function CancelReadableStream(stream) {
|
|
|
70291
70483
|
await cancelPromise;
|
|
70292
70484
|
}
|
|
70293
70485
|
|
|
70294
|
-
// ../../node_modules/.bun/openai@6.
|
|
70486
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/request-options.mjs
|
|
70295
70487
|
var FallbackEncoder = ({ headers, body }) => {
|
|
70296
70488
|
return {
|
|
70297
70489
|
bodyHeaders: {
|
|
@@ -70301,7 +70493,7 @@ var FallbackEncoder = ({ headers, body }) => {
|
|
|
70301
70493
|
};
|
|
70302
70494
|
};
|
|
70303
70495
|
|
|
70304
|
-
// ../../node_modules/.bun/openai@6.
|
|
70496
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/qs/formats.mjs
|
|
70305
70497
|
var default_format = "RFC3986";
|
|
70306
70498
|
var default_formatter = (v) => String(v);
|
|
70307
70499
|
var formatters = {
|
|
@@ -70310,7 +70502,7 @@ var formatters = {
|
|
|
70310
70502
|
};
|
|
70311
70503
|
var RFC1738 = "RFC1738";
|
|
70312
70504
|
|
|
70313
|
-
// ../../node_modules/.bun/openai@6.
|
|
70505
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/qs/utils.mjs
|
|
70314
70506
|
var has = (obj, key) => (has = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty), has(obj, key));
|
|
70315
70507
|
var hex_table = /* @__PURE__ */ (() => {
|
|
70316
70508
|
const array = [];
|
|
@@ -70382,7 +70574,7 @@ function maybe_map(val, fn) {
|
|
|
70382
70574
|
return fn(val);
|
|
70383
70575
|
}
|
|
70384
70576
|
|
|
70385
|
-
// ../../node_modules/.bun/openai@6.
|
|
70577
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/qs/stringify.mjs
|
|
70386
70578
|
var array_prefix_generators = {
|
|
70387
70579
|
brackets(prefix) {
|
|
70388
70580
|
return String(prefix) + "[]";
|
|
@@ -70610,12 +70802,12 @@ function stringify(object, opts = {}) {
|
|
|
70610
70802
|
return joined.length > 0 ? prefix + joined : "";
|
|
70611
70803
|
}
|
|
70612
70804
|
|
|
70613
|
-
// ../../node_modules/.bun/openai@6.
|
|
70805
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/query.mjs
|
|
70614
70806
|
function stringifyQuery(query) {
|
|
70615
70807
|
return stringify(query, { arrayFormat: "brackets" });
|
|
70616
70808
|
}
|
|
70617
70809
|
|
|
70618
|
-
// ../../node_modules/.bun/openai@6.
|
|
70810
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/bytes.mjs
|
|
70619
70811
|
function concatBytes(buffers) {
|
|
70620
70812
|
let length = 0;
|
|
70621
70813
|
for (const buffer of buffers) {
|
|
@@ -70640,7 +70832,7 @@ function decodeUTF8(bytes) {
|
|
|
70640
70832
|
return (decodeUTF8_ ?? (decoder = new globalThis.TextDecoder, decodeUTF8_ = decoder.decode.bind(decoder)))(bytes);
|
|
70641
70833
|
}
|
|
70642
70834
|
|
|
70643
|
-
// ../../node_modules/.bun/openai@6.
|
|
70835
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/decoders/line.mjs
|
|
70644
70836
|
var _LineDecoder_buffer;
|
|
70645
70837
|
var _LineDecoder_carriageReturnIndex;
|
|
70646
70838
|
|
|
@@ -70720,7 +70912,7 @@ function findDoubleNewlineIndex(buffer) {
|
|
|
70720
70912
|
return -1;
|
|
70721
70913
|
}
|
|
70722
70914
|
|
|
70723
|
-
// ../../node_modules/.bun/openai@6.
|
|
70915
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/log.mjs
|
|
70724
70916
|
var levelNumbers = {
|
|
70725
70917
|
off: 0,
|
|
70726
70918
|
error: 200,
|
|
@@ -70792,7 +70984,7 @@ var formatRequestDetails = (details) => {
|
|
|
70792
70984
|
return details;
|
|
70793
70985
|
};
|
|
70794
70986
|
|
|
70795
|
-
// ../../node_modules/.bun/openai@6.
|
|
70987
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/core/streaming.mjs
|
|
70796
70988
|
var _Stream_client;
|
|
70797
70989
|
|
|
70798
70990
|
class Stream {
|
|
@@ -71041,7 +71233,7 @@ function partition(str, delimiter) {
|
|
|
71041
71233
|
return [str, "", ""];
|
|
71042
71234
|
}
|
|
71043
71235
|
|
|
71044
|
-
// ../../node_modules/.bun/openai@6.
|
|
71236
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/parse.mjs
|
|
71045
71237
|
async function defaultParseResponse(client, props) {
|
|
71046
71238
|
const { response, requestLogID, retryOfRequestLogID, startTime } = props;
|
|
71047
71239
|
const body = await (async () => {
|
|
@@ -71091,7 +71283,7 @@ function addRequestID(value, response) {
|
|
|
71091
71283
|
});
|
|
71092
71284
|
}
|
|
71093
71285
|
|
|
71094
|
-
// ../../node_modules/.bun/openai@6.
|
|
71286
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/core/api-promise.mjs
|
|
71095
71287
|
var _APIPromise_client;
|
|
71096
71288
|
|
|
71097
71289
|
class APIPromise extends Promise {
|
|
@@ -71132,7 +71324,7 @@ class APIPromise extends Promise {
|
|
|
71132
71324
|
}
|
|
71133
71325
|
_APIPromise_client = new WeakMap;
|
|
71134
71326
|
|
|
71135
|
-
// ../../node_modules/.bun/openai@6.
|
|
71327
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/core/pagination.mjs
|
|
71136
71328
|
var _AbstractPage_client;
|
|
71137
71329
|
|
|
71138
71330
|
class AbstractPage {
|
|
@@ -71292,7 +71484,7 @@ class NextCursorPage extends AbstractPage {
|
|
|
71292
71484
|
}
|
|
71293
71485
|
}
|
|
71294
71486
|
|
|
71295
|
-
// ../../node_modules/.bun/openai@6.
|
|
71487
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/auth/workload-identity-auth.mjs
|
|
71296
71488
|
var SUBJECT_TOKEN_TYPES = {
|
|
71297
71489
|
jwt: "urn:ietf:params:oauth:token-type:jwt",
|
|
71298
71490
|
id: "urn:ietf:params:oauth:token-type:id_token"
|
|
@@ -71384,7 +71576,7 @@ class WorkloadIdentityAuth {
|
|
|
71384
71576
|
}
|
|
71385
71577
|
}
|
|
71386
71578
|
|
|
71387
|
-
// ../../node_modules/.bun/openai@6.
|
|
71579
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/uploads.mjs
|
|
71388
71580
|
var checkFileSupport = () => {
|
|
71389
71581
|
if (typeof File === "undefined") {
|
|
71390
71582
|
const { process: process2 } = globalThis;
|
|
@@ -71475,7 +71667,7 @@ var addFormValue = async (form, key, value) => {
|
|
|
71475
71667
|
}
|
|
71476
71668
|
};
|
|
71477
71669
|
|
|
71478
|
-
// ../../node_modules/.bun/openai@6.
|
|
71670
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/to-file.mjs
|
|
71479
71671
|
var isBlobLike = (value) => value != null && typeof value === "object" && typeof value.size === "number" && typeof value.type === "string" && typeof value.text === "function" && typeof value.slice === "function" && typeof value.arrayBuffer === "function";
|
|
71480
71672
|
var isFileLike = (value) => value != null && typeof value === "object" && typeof value.name === "string" && typeof value.lastModified === "number" && isBlobLike(value);
|
|
71481
71673
|
var isResponseLike = (value) => value != null && typeof value === "object" && typeof value.url === "string" && typeof value.blob === "function";
|
|
@@ -71525,14 +71717,14 @@ function propsForError(value) {
|
|
|
71525
71717
|
const props = Object.getOwnPropertyNames(value);
|
|
71526
71718
|
return `; props: [${props.map((p) => `"${p}"`).join(", ")}]`;
|
|
71527
71719
|
}
|
|
71528
|
-
// ../../node_modules/.bun/openai@6.
|
|
71720
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/core/resource.mjs
|
|
71529
71721
|
class APIResource {
|
|
71530
71722
|
constructor(client) {
|
|
71531
71723
|
this._client = client;
|
|
71532
71724
|
}
|
|
71533
71725
|
}
|
|
71534
71726
|
|
|
71535
|
-
// ../../node_modules/.bun/openai@6.
|
|
71727
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/path.mjs
|
|
71536
71728
|
function encodeURIPath(str) {
|
|
71537
71729
|
return str.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g, encodeURIComponent);
|
|
71538
71730
|
}
|
|
@@ -71587,13 +71779,13 @@ ${underline}`);
|
|
|
71587
71779
|
};
|
|
71588
71780
|
var path3 = /* @__PURE__ */ createPathTagFunction(encodeURIPath);
|
|
71589
71781
|
|
|
71590
|
-
// ../../node_modules/.bun/openai@6.
|
|
71782
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/chat/completions/messages.mjs
|
|
71591
71783
|
class Messages extends APIResource {
|
|
71592
71784
|
list(completionID, query = {}, options) {
|
|
71593
71785
|
return this._client.getAPIList(path3`/chat/completions/${completionID}/messages`, CursorPage, { query, ...options, __security: { bearerAuth: true } });
|
|
71594
71786
|
}
|
|
71595
71787
|
}
|
|
71596
|
-
// ../../node_modules/.bun/openai@6.
|
|
71788
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/parser.mjs
|
|
71597
71789
|
function isChatCompletionFunctionTool(tool) {
|
|
71598
71790
|
return tool !== undefined && "function" in tool && tool.function !== undefined;
|
|
71599
71791
|
}
|
|
@@ -71700,7 +71892,7 @@ function validateInputTools(tools) {
|
|
|
71700
71892
|
}
|
|
71701
71893
|
}
|
|
71702
71894
|
|
|
71703
|
-
// ../../node_modules/.bun/openai@6.
|
|
71895
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/chatCompletionUtils.mjs
|
|
71704
71896
|
var isAssistantMessage = (message) => {
|
|
71705
71897
|
return message?.role === "assistant";
|
|
71706
71898
|
};
|
|
@@ -71708,7 +71900,7 @@ var isToolMessage = (message) => {
|
|
|
71708
71900
|
return message?.role === "tool";
|
|
71709
71901
|
};
|
|
71710
71902
|
|
|
71711
|
-
// ../../node_modules/.bun/openai@6.
|
|
71903
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/EventStream.mjs
|
|
71712
71904
|
var _EventStream_instances;
|
|
71713
71905
|
var _EventStream_connectedPromise;
|
|
71714
71906
|
var _EventStream_resolveConnectedPromise;
|
|
@@ -71880,12 +72072,12 @@ _EventStream_connectedPromise = new WeakMap, _EventStream_resolveConnectedPromis
|
|
|
71880
72072
|
return this._emit("error", new OpenAIError(String(error2)));
|
|
71881
72073
|
};
|
|
71882
72074
|
|
|
71883
|
-
// ../../node_modules/.bun/openai@6.
|
|
72075
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/RunnableFunction.mjs
|
|
71884
72076
|
function isRunnableFunctionWithParse(fn) {
|
|
71885
72077
|
return typeof fn.parse === "function";
|
|
71886
72078
|
}
|
|
71887
72079
|
|
|
71888
|
-
// ../../node_modules/.bun/openai@6.
|
|
72080
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/AbstractChatCompletionRunner.mjs
|
|
71889
72081
|
var _AbstractChatCompletionRunner_instances;
|
|
71890
72082
|
var _AbstractChatCompletionRunner_getFinalContent;
|
|
71891
72083
|
var _AbstractChatCompletionRunner_getFinalMessage;
|
|
@@ -71895,6 +72087,15 @@ var _AbstractChatCompletionRunner_calculateTotalUsage;
|
|
|
71895
72087
|
var _AbstractChatCompletionRunner_validateParams;
|
|
71896
72088
|
var _AbstractChatCompletionRunner_stringifyFunctionCallResult;
|
|
71897
72089
|
var DEFAULT_MAX_CHAT_COMPLETIONS = 10;
|
|
72090
|
+
function normalizeToolCallIds(chatCompletion) {
|
|
72091
|
+
for (const choice of chatCompletion.choices) {
|
|
72092
|
+
for (const toolCall of choice.message.tool_calls ?? []) {
|
|
72093
|
+
if (!toolCall.id) {
|
|
72094
|
+
toolCall.id = `call_${uuid4()}`;
|
|
72095
|
+
}
|
|
72096
|
+
}
|
|
72097
|
+
}
|
|
72098
|
+
}
|
|
71898
72099
|
|
|
71899
72100
|
class AbstractChatCompletionRunner extends EventStream {
|
|
71900
72101
|
constructor() {
|
|
@@ -71904,6 +72105,7 @@ class AbstractChatCompletionRunner extends EventStream {
|
|
|
71904
72105
|
this.messages = [];
|
|
71905
72106
|
}
|
|
71906
72107
|
_addChatCompletion(chatCompletion) {
|
|
72108
|
+
normalizeToolCallIds(chatCompletion);
|
|
71907
72109
|
this._chatCompletions.push(chatCompletion);
|
|
71908
72110
|
this._emit("chatCompletion", chatCompletion);
|
|
71909
72111
|
const message = chatCompletion.choices[0]?.message;
|
|
@@ -72164,7 +72366,7 @@ _AbstractChatCompletionRunner_instances = new WeakSet, _AbstractChatCompletionRu
|
|
|
72164
72366
|
return typeof rawContent === "string" ? rawContent : rawContent === undefined ? "undefined" : JSON.stringify(rawContent);
|
|
72165
72367
|
};
|
|
72166
72368
|
|
|
72167
|
-
// ../../node_modules/.bun/openai@6.
|
|
72369
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/ChatCompletionRunner.mjs
|
|
72168
72370
|
class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
72169
72371
|
static runTools(client, params, options) {
|
|
72170
72372
|
const runner = new ChatCompletionRunner;
|
|
@@ -72183,7 +72385,7 @@ class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
|
|
72183
72385
|
}
|
|
72184
72386
|
}
|
|
72185
72387
|
|
|
72186
|
-
// ../../node_modules/.bun/openai@6.
|
|
72388
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/_vendor/partial-json-parser/parser.mjs
|
|
72187
72389
|
var STR = 1;
|
|
72188
72390
|
var NUM = 2;
|
|
72189
72391
|
var ARR = 4;
|
|
@@ -72396,7 +72598,7 @@ var _parseJSON = (jsonString, allow) => {
|
|
|
72396
72598
|
return parseAny();
|
|
72397
72599
|
};
|
|
72398
72600
|
var partialParse = (input) => parseJSON(input, Allow.ALL ^ Allow.NUM);
|
|
72399
|
-
// ../../node_modules/.bun/openai@6.
|
|
72601
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/ChatCompletionStream.mjs
|
|
72400
72602
|
var _ChatCompletionStream_instances;
|
|
72401
72603
|
var _ChatCompletionStream_params;
|
|
72402
72604
|
var _ChatCompletionStream_choiceEventStates;
|
|
@@ -72815,10 +73017,6 @@ function finalizeChatCompletion(snapshot, params) {
|
|
|
72815
73017
|
tool_calls: tool_calls.map((tool_call, i) => {
|
|
72816
73018
|
const { function: fn, type, id: id2, ...toolRest } = tool_call;
|
|
72817
73019
|
const { arguments: args, name, ...fnRest } = fn || {};
|
|
72818
|
-
if (id2 == null) {
|
|
72819
|
-
throw new OpenAIError(`missing choices[${index}].tool_calls[${i}].id
|
|
72820
|
-
${str(snapshot)}`);
|
|
72821
|
-
}
|
|
72822
73020
|
if (type == null) {
|
|
72823
73021
|
throw new OpenAIError(`missing choices[${index}].tool_calls[${i}].type
|
|
72824
73022
|
${str(snapshot)}`);
|
|
@@ -72831,7 +73029,12 @@ ${str(snapshot)}`);
|
|
|
72831
73029
|
throw new OpenAIError(`missing choices[${index}].tool_calls[${i}].function.arguments
|
|
72832
73030
|
${str(snapshot)}`);
|
|
72833
73031
|
}
|
|
72834
|
-
return {
|
|
73032
|
+
return {
|
|
73033
|
+
...toolRest,
|
|
73034
|
+
id: id2 || `call_${uuid4()}`,
|
|
73035
|
+
type,
|
|
73036
|
+
function: { ...fnRest, name, arguments: args }
|
|
73037
|
+
};
|
|
72835
73038
|
})
|
|
72836
73039
|
}
|
|
72837
73040
|
};
|
|
@@ -72859,7 +73062,7 @@ function assertIsEmpty(obj) {
|
|
|
72859
73062
|
}
|
|
72860
73063
|
function assertNever(_x) {}
|
|
72861
73064
|
|
|
72862
|
-
// ../../node_modules/.bun/openai@6.
|
|
73065
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs
|
|
72863
73066
|
class ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
72864
73067
|
static fromReadableStream(stream) {
|
|
72865
73068
|
const runner = new ChatCompletionStreamingRunner(null);
|
|
@@ -72877,7 +73080,7 @@ class ChatCompletionStreamingRunner extends ChatCompletionStream {
|
|
|
72877
73080
|
}
|
|
72878
73081
|
}
|
|
72879
73082
|
|
|
72880
|
-
// ../../node_modules/.bun/openai@6.
|
|
73083
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/chat/completions/completions.mjs
|
|
72881
73084
|
class Completions extends APIResource {
|
|
72882
73085
|
constructor() {
|
|
72883
73086
|
super(...arguments);
|
|
@@ -72939,7 +73142,7 @@ class Completions extends APIResource {
|
|
|
72939
73142
|
}
|
|
72940
73143
|
Completions.Messages = Messages;
|
|
72941
73144
|
|
|
72942
|
-
// ../../node_modules/.bun/openai@6.
|
|
73145
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/chat/chat.mjs
|
|
72943
73146
|
class Chat extends APIResource {
|
|
72944
73147
|
constructor() {
|
|
72945
73148
|
super(...arguments);
|
|
@@ -72947,7 +73150,7 @@ class Chat extends APIResource {
|
|
|
72947
73150
|
}
|
|
72948
73151
|
}
|
|
72949
73152
|
Chat.Completions = Completions;
|
|
72950
|
-
// ../../node_modules/.bun/openai@6.
|
|
73153
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/admin-api-keys.mjs
|
|
72951
73154
|
class AdminAPIKeys extends APIResource {
|
|
72952
73155
|
create(body, options) {
|
|
72953
73156
|
return this._client.post("/organization/admin_api_keys", {
|
|
@@ -72977,7 +73180,7 @@ class AdminAPIKeys extends APIResource {
|
|
|
72977
73180
|
}
|
|
72978
73181
|
}
|
|
72979
73182
|
|
|
72980
|
-
// ../../node_modules/.bun/openai@6.
|
|
73183
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/audit-logs.mjs
|
|
72981
73184
|
class AuditLogs extends APIResource {
|
|
72982
73185
|
list(query = {}, options) {
|
|
72983
73186
|
return this._client.getAPIList("/organization/audit_logs", ConversationCursorPage, {
|
|
@@ -72988,7 +73191,7 @@ class AuditLogs extends APIResource {
|
|
|
72988
73191
|
}
|
|
72989
73192
|
}
|
|
72990
73193
|
|
|
72991
|
-
// ../../node_modules/.bun/openai@6.
|
|
73194
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/certificates.mjs
|
|
72992
73195
|
class Certificates extends APIResource {
|
|
72993
73196
|
create(body, options) {
|
|
72994
73197
|
return this._client.post("/organization/certificates", {
|
|
@@ -73033,7 +73236,7 @@ class Certificates extends APIResource {
|
|
|
73033
73236
|
}
|
|
73034
73237
|
}
|
|
73035
73238
|
|
|
73036
|
-
// ../../node_modules/.bun/openai@6.
|
|
73239
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/data-retention.mjs
|
|
73037
73240
|
class DataRetention extends APIResource {
|
|
73038
73241
|
retrieve(options) {
|
|
73039
73242
|
return this._client.get("/organization/data_retention", {
|
|
@@ -73050,7 +73253,7 @@ class DataRetention extends APIResource {
|
|
|
73050
73253
|
}
|
|
73051
73254
|
}
|
|
73052
73255
|
|
|
73053
|
-
// ../../node_modules/.bun/openai@6.
|
|
73256
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/invites.mjs
|
|
73054
73257
|
class Invites extends APIResource {
|
|
73055
73258
|
create(body, options) {
|
|
73056
73259
|
return this._client.post("/organization/invites", {
|
|
@@ -73080,7 +73283,7 @@ class Invites extends APIResource {
|
|
|
73080
73283
|
}
|
|
73081
73284
|
}
|
|
73082
73285
|
|
|
73083
|
-
// ../../node_modules/.bun/openai@6.
|
|
73286
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/roles.mjs
|
|
73084
73287
|
class Roles extends APIResource {
|
|
73085
73288
|
create(body, options) {
|
|
73086
73289
|
return this._client.post("/organization/roles", {
|
|
@@ -73117,7 +73320,7 @@ class Roles extends APIResource {
|
|
|
73117
73320
|
}
|
|
73118
73321
|
}
|
|
73119
73322
|
|
|
73120
|
-
// ../../node_modules/.bun/openai@6.
|
|
73323
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/spend-alerts.mjs
|
|
73121
73324
|
class SpendAlerts extends APIResource {
|
|
73122
73325
|
create(body, options) {
|
|
73123
73326
|
return this._client.post("/organization/spend_alerts", {
|
|
@@ -73150,7 +73353,7 @@ class SpendAlerts extends APIResource {
|
|
|
73150
73353
|
}
|
|
73151
73354
|
}
|
|
73152
73355
|
|
|
73153
|
-
// ../../node_modules/.bun/openai@6.
|
|
73356
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/usage.mjs
|
|
73154
73357
|
class Usage extends APIResource {
|
|
73155
73358
|
audioSpeeches(query, options) {
|
|
73156
73359
|
return this._client.get("/organization/usage/audio_speeches", {
|
|
@@ -73231,7 +73434,7 @@ class Usage extends APIResource {
|
|
|
73231
73434
|
}
|
|
73232
73435
|
}
|
|
73233
73436
|
|
|
73234
|
-
// ../../node_modules/.bun/openai@6.
|
|
73437
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/groups/roles.mjs
|
|
73235
73438
|
class Roles2 extends APIResource {
|
|
73236
73439
|
create(groupID, body, options) {
|
|
73237
73440
|
return this._client.post(path3`/organization/groups/${groupID}/roles`, {
|
|
@@ -73259,7 +73462,7 @@ class Roles2 extends APIResource {
|
|
|
73259
73462
|
}
|
|
73260
73463
|
}
|
|
73261
73464
|
|
|
73262
|
-
// ../../node_modules/.bun/openai@6.
|
|
73465
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/groups/users.mjs
|
|
73263
73466
|
class Users extends APIResource {
|
|
73264
73467
|
create(groupID, body, options) {
|
|
73265
73468
|
return this._client.post(path3`/organization/groups/${groupID}/users`, {
|
|
@@ -73287,7 +73490,7 @@ class Users extends APIResource {
|
|
|
73287
73490
|
}
|
|
73288
73491
|
}
|
|
73289
73492
|
|
|
73290
|
-
// ../../node_modules/.bun/openai@6.
|
|
73493
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/groups/groups.mjs
|
|
73291
73494
|
class Groups extends APIResource {
|
|
73292
73495
|
constructor() {
|
|
73293
73496
|
super(...arguments);
|
|
@@ -73331,7 +73534,7 @@ class Groups extends APIResource {
|
|
|
73331
73534
|
Groups.Users = Users;
|
|
73332
73535
|
Groups.Roles = Roles2;
|
|
73333
73536
|
|
|
73334
|
-
// ../../node_modules/.bun/openai@6.
|
|
73537
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/api-keys.mjs
|
|
73335
73538
|
class APIKeys extends APIResource {
|
|
73336
73539
|
retrieve(apiKeyID, params, options) {
|
|
73337
73540
|
const { project_id } = params;
|
|
@@ -73352,7 +73555,7 @@ class APIKeys extends APIResource {
|
|
|
73352
73555
|
}
|
|
73353
73556
|
}
|
|
73354
73557
|
|
|
73355
|
-
// ../../node_modules/.bun/openai@6.
|
|
73558
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/certificates.mjs
|
|
73356
73559
|
class Certificates2 extends APIResource {
|
|
73357
73560
|
list(projectID, query = {}, options) {
|
|
73358
73561
|
return this._client.getAPIList(path3`/organization/projects/${projectID}/certificates`, ConversationCursorPage, { query, ...options, __security: { adminAPIKeyAuth: true } });
|
|
@@ -73365,7 +73568,7 @@ class Certificates2 extends APIResource {
|
|
|
73365
73568
|
}
|
|
73366
73569
|
}
|
|
73367
73570
|
|
|
73368
|
-
// ../../node_modules/.bun/openai@6.
|
|
73571
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/data-retention.mjs
|
|
73369
73572
|
class DataRetention2 extends APIResource {
|
|
73370
73573
|
retrieve(projectID, options) {
|
|
73371
73574
|
return this._client.get(path3`/organization/projects/${projectID}/data_retention`, {
|
|
@@ -73382,7 +73585,7 @@ class DataRetention2 extends APIResource {
|
|
|
73382
73585
|
}
|
|
73383
73586
|
}
|
|
73384
73587
|
|
|
73385
|
-
// ../../node_modules/.bun/openai@6.
|
|
73588
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.mjs
|
|
73386
73589
|
class HostedToolPermissions extends APIResource {
|
|
73387
73590
|
retrieve(projectID, options) {
|
|
73388
73591
|
return this._client.get(path3`/organization/projects/${projectID}/hosted_tool_permissions`, {
|
|
@@ -73399,7 +73602,7 @@ class HostedToolPermissions extends APIResource {
|
|
|
73399
73602
|
}
|
|
73400
73603
|
}
|
|
73401
73604
|
|
|
73402
|
-
// ../../node_modules/.bun/openai@6.
|
|
73605
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/model-permissions.mjs
|
|
73403
73606
|
class ModelPermissions extends APIResource {
|
|
73404
73607
|
retrieve(projectID, options) {
|
|
73405
73608
|
return this._client.get(path3`/organization/projects/${projectID}/model_permissions`, {
|
|
@@ -73422,7 +73625,7 @@ class ModelPermissions extends APIResource {
|
|
|
73422
73625
|
}
|
|
73423
73626
|
}
|
|
73424
73627
|
|
|
73425
|
-
// ../../node_modules/.bun/openai@6.
|
|
73628
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/rate-limits.mjs
|
|
73426
73629
|
class RateLimits extends APIResource {
|
|
73427
73630
|
listRateLimits(projectID, query = {}, options) {
|
|
73428
73631
|
return this._client.getAPIList(path3`/organization/projects/${projectID}/rate_limits`, ConversationCursorPage, { query, ...options, __security: { adminAPIKeyAuth: true } });
|
|
@@ -73437,7 +73640,7 @@ class RateLimits extends APIResource {
|
|
|
73437
73640
|
}
|
|
73438
73641
|
}
|
|
73439
73642
|
|
|
73440
|
-
// ../../node_modules/.bun/openai@6.
|
|
73643
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/roles.mjs
|
|
73441
73644
|
class Roles3 extends APIResource {
|
|
73442
73645
|
create(projectID, body, options) {
|
|
73443
73646
|
return this._client.post(path3`/projects/${projectID}/roles`, {
|
|
@@ -73477,7 +73680,7 @@ class Roles3 extends APIResource {
|
|
|
73477
73680
|
}
|
|
73478
73681
|
}
|
|
73479
73682
|
|
|
73480
|
-
// ../../node_modules/.bun/openai@6.
|
|
73683
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs
|
|
73481
73684
|
class ServiceAccounts extends APIResource {
|
|
73482
73685
|
create(projectID, body, options) {
|
|
73483
73686
|
return this._client.post(path3`/organization/projects/${projectID}/service_accounts`, {
|
|
@@ -73506,7 +73709,7 @@ class ServiceAccounts extends APIResource {
|
|
|
73506
73709
|
}
|
|
73507
73710
|
}
|
|
73508
73711
|
|
|
73509
|
-
// ../../node_modules/.bun/openai@6.
|
|
73712
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/spend-alerts.mjs
|
|
73510
73713
|
class SpendAlerts2 extends APIResource {
|
|
73511
73714
|
create(projectID, body, options) {
|
|
73512
73715
|
return this._client.post(path3`/organization/projects/${projectID}/spend_alerts`, {
|
|
@@ -73542,7 +73745,7 @@ class SpendAlerts2 extends APIResource {
|
|
|
73542
73745
|
}
|
|
73543
73746
|
}
|
|
73544
73747
|
|
|
73545
|
-
// ../../node_modules/.bun/openai@6.
|
|
73748
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/groups/roles.mjs
|
|
73546
73749
|
class Roles4 extends APIResource {
|
|
73547
73750
|
create(groupID, params, options) {
|
|
73548
73751
|
const { project_id, ...body } = params;
|
|
@@ -73572,7 +73775,7 @@ class Roles4 extends APIResource {
|
|
|
73572
73775
|
}
|
|
73573
73776
|
}
|
|
73574
73777
|
|
|
73575
|
-
// ../../node_modules/.bun/openai@6.
|
|
73778
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/groups/groups.mjs
|
|
73576
73779
|
class Groups2 extends APIResource {
|
|
73577
73780
|
constructor() {
|
|
73578
73781
|
super(...arguments);
|
|
@@ -73606,7 +73809,7 @@ class Groups2 extends APIResource {
|
|
|
73606
73809
|
}
|
|
73607
73810
|
Groups2.Roles = Roles4;
|
|
73608
73811
|
|
|
73609
|
-
// ../../node_modules/.bun/openai@6.
|
|
73812
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/users/roles.mjs
|
|
73610
73813
|
class Roles5 extends APIResource {
|
|
73611
73814
|
create(userID, params, options) {
|
|
73612
73815
|
const { project_id, ...body } = params;
|
|
@@ -73636,7 +73839,7 @@ class Roles5 extends APIResource {
|
|
|
73636
73839
|
}
|
|
73637
73840
|
}
|
|
73638
73841
|
|
|
73639
|
-
// ../../node_modules/.bun/openai@6.
|
|
73842
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/users/users.mjs
|
|
73640
73843
|
class Users2 extends APIResource {
|
|
73641
73844
|
constructor() {
|
|
73642
73845
|
super(...arguments);
|
|
@@ -73677,7 +73880,7 @@ class Users2 extends APIResource {
|
|
|
73677
73880
|
}
|
|
73678
73881
|
Users2.Roles = Roles5;
|
|
73679
73882
|
|
|
73680
|
-
// ../../node_modules/.bun/openai@6.
|
|
73883
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/projects/projects.mjs
|
|
73681
73884
|
class Projects extends APIResource {
|
|
73682
73885
|
constructor() {
|
|
73683
73886
|
super(...arguments);
|
|
@@ -73739,7 +73942,7 @@ Projects.DataRetention = DataRetention2;
|
|
|
73739
73942
|
Projects.SpendAlerts = SpendAlerts2;
|
|
73740
73943
|
Projects.Certificates = Certificates2;
|
|
73741
73944
|
|
|
73742
|
-
// ../../node_modules/.bun/openai@6.
|
|
73945
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/users/roles.mjs
|
|
73743
73946
|
class Roles6 extends APIResource {
|
|
73744
73947
|
create(userID, body, options) {
|
|
73745
73948
|
return this._client.post(path3`/organization/users/${userID}/roles`, {
|
|
@@ -73767,7 +73970,7 @@ class Roles6 extends APIResource {
|
|
|
73767
73970
|
}
|
|
73768
73971
|
}
|
|
73769
73972
|
|
|
73770
|
-
// ../../node_modules/.bun/openai@6.
|
|
73973
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/users/users.mjs
|
|
73771
73974
|
class Users3 extends APIResource {
|
|
73772
73975
|
constructor() {
|
|
73773
73976
|
super(...arguments);
|
|
@@ -73802,7 +74005,7 @@ class Users3 extends APIResource {
|
|
|
73802
74005
|
}
|
|
73803
74006
|
Users3.Roles = Roles6;
|
|
73804
74007
|
|
|
73805
|
-
// ../../node_modules/.bun/openai@6.
|
|
74008
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/organization/organization.mjs
|
|
73806
74009
|
class Organization extends APIResource {
|
|
73807
74010
|
constructor() {
|
|
73808
74011
|
super(...arguments);
|
|
@@ -73831,7 +74034,7 @@ Organization.SpendAlerts = SpendAlerts;
|
|
|
73831
74034
|
Organization.Certificates = Certificates;
|
|
73832
74035
|
Organization.Projects = Projects;
|
|
73833
74036
|
|
|
73834
|
-
// ../../node_modules/.bun/openai@6.
|
|
74037
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/admin/admin.mjs
|
|
73835
74038
|
class Admin extends APIResource {
|
|
73836
74039
|
constructor() {
|
|
73837
74040
|
super(...arguments);
|
|
@@ -73839,7 +74042,7 @@ class Admin extends APIResource {
|
|
|
73839
74042
|
}
|
|
73840
74043
|
}
|
|
73841
74044
|
Admin.Organization = Organization;
|
|
73842
|
-
// ../../node_modules/.bun/openai@6.
|
|
74045
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/headers.mjs
|
|
73843
74046
|
var brand_privateNullableHeaders = /* @__PURE__ */ Symbol("brand.privateNullableHeaders");
|
|
73844
74047
|
function* iterateHeaders(headers) {
|
|
73845
74048
|
if (!headers)
|
|
@@ -73902,7 +74105,7 @@ var buildHeaders = (newHeaders) => {
|
|
|
73902
74105
|
return { [brand_privateNullableHeaders]: true, values: targetHeaders, nulls: nullHeaders };
|
|
73903
74106
|
};
|
|
73904
74107
|
|
|
73905
|
-
// ../../node_modules/.bun/openai@6.
|
|
74108
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/audio/speech.mjs
|
|
73906
74109
|
class Speech extends APIResource {
|
|
73907
74110
|
create(body, options) {
|
|
73908
74111
|
return this._client.post("/audio/speech", {
|
|
@@ -73915,7 +74118,7 @@ class Speech extends APIResource {
|
|
|
73915
74118
|
}
|
|
73916
74119
|
}
|
|
73917
74120
|
|
|
73918
|
-
// ../../node_modules/.bun/openai@6.
|
|
74121
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/audio/transcriptions.mjs
|
|
73919
74122
|
class Transcriptions extends APIResource {
|
|
73920
74123
|
create(body, options) {
|
|
73921
74124
|
return this._client.post("/audio/transcriptions", multipartFormRequestOptions({
|
|
@@ -73928,14 +74131,14 @@ class Transcriptions extends APIResource {
|
|
|
73928
74131
|
}
|
|
73929
74132
|
}
|
|
73930
74133
|
|
|
73931
|
-
// ../../node_modules/.bun/openai@6.
|
|
74134
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/audio/translations.mjs
|
|
73932
74135
|
class Translations extends APIResource {
|
|
73933
74136
|
create(body, options) {
|
|
73934
74137
|
return this._client.post("/audio/translations", multipartFormRequestOptions({ body, ...options, __metadata: { model: body.model }, __security: { bearerAuth: true } }, this._client));
|
|
73935
74138
|
}
|
|
73936
74139
|
}
|
|
73937
74140
|
|
|
73938
|
-
// ../../node_modules/.bun/openai@6.
|
|
74141
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/audio/audio.mjs
|
|
73939
74142
|
class Audio extends APIResource {
|
|
73940
74143
|
constructor() {
|
|
73941
74144
|
super(...arguments);
|
|
@@ -73947,7 +74150,7 @@ class Audio extends APIResource {
|
|
|
73947
74150
|
Audio.Transcriptions = Transcriptions;
|
|
73948
74151
|
Audio.Translations = Translations;
|
|
73949
74152
|
Audio.Speech = Speech;
|
|
73950
|
-
// ../../node_modules/.bun/openai@6.
|
|
74153
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/batches.mjs
|
|
73951
74154
|
class Batches extends APIResource {
|
|
73952
74155
|
create(body, options) {
|
|
73953
74156
|
return this._client.post("/batches", { body, ...options, __security: { bearerAuth: true } });
|
|
@@ -73969,7 +74172,7 @@ class Batches extends APIResource {
|
|
|
73969
74172
|
});
|
|
73970
74173
|
}
|
|
73971
74174
|
}
|
|
73972
|
-
// ../../node_modules/.bun/openai@6.
|
|
74175
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/assistants.mjs
|
|
73973
74176
|
class Assistants extends APIResource {
|
|
73974
74177
|
create(body, options) {
|
|
73975
74178
|
return this._client.post("/assistants", {
|
|
@@ -74011,7 +74214,7 @@ class Assistants extends APIResource {
|
|
|
74011
74214
|
}
|
|
74012
74215
|
}
|
|
74013
74216
|
|
|
74014
|
-
// ../../node_modules/.bun/openai@6.
|
|
74217
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/realtime/sessions.mjs
|
|
74015
74218
|
class Sessions extends APIResource {
|
|
74016
74219
|
create(body, options) {
|
|
74017
74220
|
return this._client.post("/realtime/sessions", {
|
|
@@ -74023,7 +74226,7 @@ class Sessions extends APIResource {
|
|
|
74023
74226
|
}
|
|
74024
74227
|
}
|
|
74025
74228
|
|
|
74026
|
-
// ../../node_modules/.bun/openai@6.
|
|
74229
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs
|
|
74027
74230
|
class TranscriptionSessions extends APIResource {
|
|
74028
74231
|
create(body, options) {
|
|
74029
74232
|
return this._client.post("/realtime/transcription_sessions", {
|
|
@@ -74035,7 +74238,7 @@ class TranscriptionSessions extends APIResource {
|
|
|
74035
74238
|
}
|
|
74036
74239
|
}
|
|
74037
74240
|
|
|
74038
|
-
// ../../node_modules/.bun/openai@6.
|
|
74241
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/realtime/realtime.mjs
|
|
74039
74242
|
class Realtime extends APIResource {
|
|
74040
74243
|
constructor() {
|
|
74041
74244
|
super(...arguments);
|
|
@@ -74046,7 +74249,7 @@ class Realtime extends APIResource {
|
|
|
74046
74249
|
Realtime.Sessions = Sessions;
|
|
74047
74250
|
Realtime.TranscriptionSessions = TranscriptionSessions;
|
|
74048
74251
|
|
|
74049
|
-
// ../../node_modules/.bun/openai@6.
|
|
74252
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/chatkit/sessions.mjs
|
|
74050
74253
|
class Sessions2 extends APIResource {
|
|
74051
74254
|
create(body, options) {
|
|
74052
74255
|
return this._client.post("/chatkit/sessions", {
|
|
@@ -74065,7 +74268,7 @@ class Sessions2 extends APIResource {
|
|
|
74065
74268
|
}
|
|
74066
74269
|
}
|
|
74067
74270
|
|
|
74068
|
-
// ../../node_modules/.bun/openai@6.
|
|
74271
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/chatkit/threads.mjs
|
|
74069
74272
|
class Threads extends APIResource {
|
|
74070
74273
|
retrieve(threadID, options) {
|
|
74071
74274
|
return this._client.get(path3`/chatkit/threads/${threadID}`, {
|
|
@@ -74099,7 +74302,7 @@ class Threads extends APIResource {
|
|
|
74099
74302
|
}
|
|
74100
74303
|
}
|
|
74101
74304
|
|
|
74102
|
-
// ../../node_modules/.bun/openai@6.
|
|
74305
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/chatkit/chatkit.mjs
|
|
74103
74306
|
class ChatKit extends APIResource {
|
|
74104
74307
|
constructor() {
|
|
74105
74308
|
super(...arguments);
|
|
@@ -74110,7 +74313,110 @@ class ChatKit extends APIResource {
|
|
|
74110
74313
|
ChatKit.Sessions = Sessions2;
|
|
74111
74314
|
ChatKit.Threads = Threads;
|
|
74112
74315
|
|
|
74113
|
-
// ../../node_modules/.bun/openai@6.
|
|
74316
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/responses/input-items.mjs
|
|
74317
|
+
class InputItems extends APIResource {
|
|
74318
|
+
list(responseID, params = {}, options) {
|
|
74319
|
+
const { betas, ...query } = params ?? {};
|
|
74320
|
+
return this._client.getAPIList(path3`/responses/${responseID}/input_items?beta=true`, CursorPage, {
|
|
74321
|
+
query,
|
|
74322
|
+
...options,
|
|
74323
|
+
headers: buildHeaders([
|
|
74324
|
+
{ ...betas?.toString() != null ? { "openai-beta": betas?.toString() } : undefined },
|
|
74325
|
+
options?.headers
|
|
74326
|
+
]),
|
|
74327
|
+
__security: { bearerAuth: true }
|
|
74328
|
+
});
|
|
74329
|
+
}
|
|
74330
|
+
}
|
|
74331
|
+
|
|
74332
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/responses/input-tokens.mjs
|
|
74333
|
+
class InputTokens extends APIResource {
|
|
74334
|
+
count(params = {}, options) {
|
|
74335
|
+
const { betas, ...body } = params ?? {};
|
|
74336
|
+
return this._client.post("/responses/input_tokens?beta=true", {
|
|
74337
|
+
body,
|
|
74338
|
+
...options,
|
|
74339
|
+
headers: buildHeaders([
|
|
74340
|
+
{ ...betas?.toString() != null ? { "openai-beta": betas?.toString() } : undefined },
|
|
74341
|
+
options?.headers
|
|
74342
|
+
]),
|
|
74343
|
+
__security: { bearerAuth: true }
|
|
74344
|
+
});
|
|
74345
|
+
}
|
|
74346
|
+
}
|
|
74347
|
+
|
|
74348
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/responses/responses.mjs
|
|
74349
|
+
class Responses extends APIResource {
|
|
74350
|
+
constructor() {
|
|
74351
|
+
super(...arguments);
|
|
74352
|
+
this.inputItems = new InputItems(this._client);
|
|
74353
|
+
this.inputTokens = new InputTokens(this._client);
|
|
74354
|
+
}
|
|
74355
|
+
create(params, options) {
|
|
74356
|
+
const { betas, ...body } = params;
|
|
74357
|
+
return this._client.post("/responses?beta=true", {
|
|
74358
|
+
body,
|
|
74359
|
+
...options,
|
|
74360
|
+
headers: buildHeaders([
|
|
74361
|
+
{ ...betas?.toString() != null ? { "openai-beta": betas?.toString() } : undefined },
|
|
74362
|
+
options?.headers
|
|
74363
|
+
]),
|
|
74364
|
+
stream: params.stream ?? false,
|
|
74365
|
+
__security: { bearerAuth: true }
|
|
74366
|
+
});
|
|
74367
|
+
}
|
|
74368
|
+
retrieve(responseID, params = {}, options) {
|
|
74369
|
+
const { betas, ...query } = params ?? {};
|
|
74370
|
+
return this._client.get(path3`/responses/${responseID}?beta=true`, {
|
|
74371
|
+
query,
|
|
74372
|
+
...options,
|
|
74373
|
+
headers: buildHeaders([
|
|
74374
|
+
{ ...betas?.toString() != null ? { "openai-beta": betas?.toString() } : undefined },
|
|
74375
|
+
options?.headers
|
|
74376
|
+
]),
|
|
74377
|
+
stream: params?.stream ?? false,
|
|
74378
|
+
__security: { bearerAuth: true }
|
|
74379
|
+
});
|
|
74380
|
+
}
|
|
74381
|
+
delete(responseID, params = {}, options) {
|
|
74382
|
+
const { betas } = params ?? {};
|
|
74383
|
+
return this._client.delete(path3`/responses/${responseID}?beta=true`, {
|
|
74384
|
+
...options,
|
|
74385
|
+
headers: buildHeaders([
|
|
74386
|
+
{ Accept: "*/*", ...betas?.toString() != null ? { "openai-beta": betas?.toString() } : undefined },
|
|
74387
|
+
options?.headers
|
|
74388
|
+
]),
|
|
74389
|
+
__security: { bearerAuth: true }
|
|
74390
|
+
});
|
|
74391
|
+
}
|
|
74392
|
+
cancel(responseID, params = {}, options) {
|
|
74393
|
+
const { betas } = params ?? {};
|
|
74394
|
+
return this._client.post(path3`/responses/${responseID}/cancel?beta=true`, {
|
|
74395
|
+
...options,
|
|
74396
|
+
headers: buildHeaders([
|
|
74397
|
+
{ ...betas?.toString() != null ? { "openai-beta": betas?.toString() } : undefined },
|
|
74398
|
+
options?.headers
|
|
74399
|
+
]),
|
|
74400
|
+
__security: { bearerAuth: true }
|
|
74401
|
+
});
|
|
74402
|
+
}
|
|
74403
|
+
compact(params, options) {
|
|
74404
|
+
const { betas, ...body } = params;
|
|
74405
|
+
return this._client.post("/responses/compact?beta=true", {
|
|
74406
|
+
body,
|
|
74407
|
+
...options,
|
|
74408
|
+
headers: buildHeaders([
|
|
74409
|
+
{ ...betas?.toString() != null ? { "openai-beta": betas?.toString() } : undefined },
|
|
74410
|
+
options?.headers
|
|
74411
|
+
]),
|
|
74412
|
+
__security: { bearerAuth: true }
|
|
74413
|
+
});
|
|
74414
|
+
}
|
|
74415
|
+
}
|
|
74416
|
+
Responses.InputItems = InputItems;
|
|
74417
|
+
Responses.InputTokens = InputTokens;
|
|
74418
|
+
|
|
74419
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/threads/messages.mjs
|
|
74114
74420
|
class Messages2 extends APIResource {
|
|
74115
74421
|
create(threadID, body, options) {
|
|
74116
74422
|
return this._client.post(path3`/threads/${threadID}/messages`, {
|
|
@@ -74155,7 +74461,7 @@ class Messages2 extends APIResource {
|
|
|
74155
74461
|
}
|
|
74156
74462
|
}
|
|
74157
74463
|
|
|
74158
|
-
// ../../node_modules/.bun/openai@6.
|
|
74464
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/threads/runs/steps.mjs
|
|
74159
74465
|
class Steps extends APIResource {
|
|
74160
74466
|
retrieve(stepID, params, options) {
|
|
74161
74467
|
const { thread_id, run_id, ...query } = params;
|
|
@@ -74176,7 +74482,7 @@ class Steps extends APIResource {
|
|
|
74176
74482
|
});
|
|
74177
74483
|
}
|
|
74178
74484
|
}
|
|
74179
|
-
// ../../node_modules/.bun/openai@6.
|
|
74485
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/base64.mjs
|
|
74180
74486
|
var toFloat32Array = (base64Str) => {
|
|
74181
74487
|
if (typeof Buffer !== "undefined") {
|
|
74182
74488
|
const buf = Buffer.from(base64Str, "base64");
|
|
@@ -74191,7 +74497,7 @@ var toFloat32Array = (base64Str) => {
|
|
|
74191
74497
|
return Array.from(new Float32Array(bytes.buffer));
|
|
74192
74498
|
}
|
|
74193
74499
|
};
|
|
74194
|
-
// ../../node_modules/.bun/openai@6.
|
|
74500
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/utils/env.mjs
|
|
74195
74501
|
var readEnv = (env) => {
|
|
74196
74502
|
if (typeof globalThis.process !== "undefined") {
|
|
74197
74503
|
return globalThis.process.env?.[env]?.trim() || undefined;
|
|
@@ -74201,7 +74507,7 @@ var readEnv = (env) => {
|
|
|
74201
74507
|
}
|
|
74202
74508
|
return;
|
|
74203
74509
|
};
|
|
74204
|
-
// ../../node_modules/.bun/openai@6.
|
|
74510
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/AssistantStream.mjs
|
|
74205
74511
|
var _AssistantStream_instances;
|
|
74206
74512
|
var _a;
|
|
74207
74513
|
var _AssistantStream_events;
|
|
@@ -74446,7 +74752,7 @@ class AssistantStream extends EventStream {
|
|
|
74446
74752
|
}
|
|
74447
74753
|
const accEntry = accValue[index];
|
|
74448
74754
|
if (accEntry == null) {
|
|
74449
|
-
accValue
|
|
74755
|
+
accValue[index] = deltaEntry;
|
|
74450
74756
|
} else {
|
|
74451
74757
|
accValue[index] = this.accumulateDelta(accEntry, deltaEntry);
|
|
74452
74758
|
}
|
|
@@ -74720,7 +75026,7 @@ _a = AssistantStream, _AssistantStream_addEvent = function _AssistantStream_addE
|
|
|
74720
75026
|
};
|
|
74721
75027
|
function assertNever2(_x) {}
|
|
74722
75028
|
|
|
74723
|
-
// ../../node_modules/.bun/openai@6.
|
|
75029
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/threads/runs/runs.mjs
|
|
74724
75030
|
class Runs extends APIResource {
|
|
74725
75031
|
constructor() {
|
|
74726
75032
|
super(...arguments);
|
|
@@ -74843,7 +75149,7 @@ class Runs extends APIResource {
|
|
|
74843
75149
|
}
|
|
74844
75150
|
Runs.Steps = Steps;
|
|
74845
75151
|
|
|
74846
|
-
// ../../node_modules/.bun/openai@6.
|
|
75152
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/threads/threads.mjs
|
|
74847
75153
|
class Threads2 extends APIResource {
|
|
74848
75154
|
constructor() {
|
|
74849
75155
|
super(...arguments);
|
|
@@ -74901,21 +75207,23 @@ class Threads2 extends APIResource {
|
|
|
74901
75207
|
Threads2.Runs = Runs;
|
|
74902
75208
|
Threads2.Messages = Messages2;
|
|
74903
75209
|
|
|
74904
|
-
// ../../node_modules/.bun/openai@6.
|
|
75210
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/beta/beta.mjs
|
|
74905
75211
|
class Beta extends APIResource {
|
|
74906
75212
|
constructor() {
|
|
74907
75213
|
super(...arguments);
|
|
74908
75214
|
this.realtime = new Realtime(this._client);
|
|
75215
|
+
this.responses = new Responses(this._client);
|
|
74909
75216
|
this.chatkit = new ChatKit(this._client);
|
|
74910
75217
|
this.assistants = new Assistants(this._client);
|
|
74911
75218
|
this.threads = new Threads2(this._client);
|
|
74912
75219
|
}
|
|
74913
75220
|
}
|
|
74914
75221
|
Beta.Realtime = Realtime;
|
|
75222
|
+
Beta.Responses = Responses;
|
|
74915
75223
|
Beta.ChatKit = ChatKit;
|
|
74916
75224
|
Beta.Assistants = Assistants;
|
|
74917
75225
|
Beta.Threads = Threads2;
|
|
74918
|
-
// ../../node_modules/.bun/openai@6.
|
|
75226
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/completions.mjs
|
|
74919
75227
|
class Completions2 extends APIResource {
|
|
74920
75228
|
create(body, options) {
|
|
74921
75229
|
return this._client.post("/completions", {
|
|
@@ -74926,7 +75234,7 @@ class Completions2 extends APIResource {
|
|
|
74926
75234
|
});
|
|
74927
75235
|
}
|
|
74928
75236
|
}
|
|
74929
|
-
// ../../node_modules/.bun/openai@6.
|
|
75237
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/containers/files/content.mjs
|
|
74930
75238
|
class Content extends APIResource {
|
|
74931
75239
|
retrieve(fileID, params, options) {
|
|
74932
75240
|
const { container_id } = params;
|
|
@@ -74939,7 +75247,7 @@ class Content extends APIResource {
|
|
|
74939
75247
|
}
|
|
74940
75248
|
}
|
|
74941
75249
|
|
|
74942
|
-
// ../../node_modules/.bun/openai@6.
|
|
75250
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/containers/files/files.mjs
|
|
74943
75251
|
class Files extends APIResource {
|
|
74944
75252
|
constructor() {
|
|
74945
75253
|
super(...arguments);
|
|
@@ -74973,7 +75281,7 @@ class Files extends APIResource {
|
|
|
74973
75281
|
}
|
|
74974
75282
|
Files.Content = Content;
|
|
74975
75283
|
|
|
74976
|
-
// ../../node_modules/.bun/openai@6.
|
|
75284
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/containers/containers.mjs
|
|
74977
75285
|
class Containers extends APIResource {
|
|
74978
75286
|
constructor() {
|
|
74979
75287
|
super(...arguments);
|
|
@@ -75004,7 +75312,7 @@ class Containers extends APIResource {
|
|
|
75004
75312
|
}
|
|
75005
75313
|
}
|
|
75006
75314
|
Containers.Files = Files;
|
|
75007
|
-
// ../../node_modules/.bun/openai@6.
|
|
75315
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/conversations/items.mjs
|
|
75008
75316
|
class Items extends APIResource {
|
|
75009
75317
|
create(conversationID, params, options) {
|
|
75010
75318
|
const { include, ...body } = params;
|
|
@@ -75035,7 +75343,7 @@ class Items extends APIResource {
|
|
|
75035
75343
|
}
|
|
75036
75344
|
}
|
|
75037
75345
|
|
|
75038
|
-
// ../../node_modules/.bun/openai@6.
|
|
75346
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/conversations/conversations.mjs
|
|
75039
75347
|
class Conversations extends APIResource {
|
|
75040
75348
|
constructor() {
|
|
75041
75349
|
super(...arguments);
|
|
@@ -75065,7 +75373,7 @@ class Conversations extends APIResource {
|
|
|
75065
75373
|
}
|
|
75066
75374
|
}
|
|
75067
75375
|
Conversations.Items = Items;
|
|
75068
|
-
// ../../node_modules/.bun/openai@6.
|
|
75376
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/embeddings.mjs
|
|
75069
75377
|
class Embeddings extends APIResource {
|
|
75070
75378
|
create(body, options) {
|
|
75071
75379
|
const hasUserProvidedEncodingFormat = !!body.encoding_format;
|
|
@@ -75096,7 +75404,7 @@ class Embeddings extends APIResource {
|
|
|
75096
75404
|
});
|
|
75097
75405
|
}
|
|
75098
75406
|
}
|
|
75099
|
-
// ../../node_modules/.bun/openai@6.
|
|
75407
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/evals/runs/output-items.mjs
|
|
75100
75408
|
class OutputItems extends APIResource {
|
|
75101
75409
|
retrieve(outputItemID, params, options) {
|
|
75102
75410
|
const { eval_id, run_id } = params;
|
|
@@ -75111,7 +75419,7 @@ class OutputItems extends APIResource {
|
|
|
75111
75419
|
}
|
|
75112
75420
|
}
|
|
75113
75421
|
|
|
75114
|
-
// ../../node_modules/.bun/openai@6.
|
|
75422
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/evals/runs/runs.mjs
|
|
75115
75423
|
class Runs2 extends APIResource {
|
|
75116
75424
|
constructor() {
|
|
75117
75425
|
super(...arguments);
|
|
@@ -75155,7 +75463,7 @@ class Runs2 extends APIResource {
|
|
|
75155
75463
|
}
|
|
75156
75464
|
Runs2.OutputItems = OutputItems;
|
|
75157
75465
|
|
|
75158
|
-
// ../../node_modules/.bun/openai@6.
|
|
75466
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/evals/evals.mjs
|
|
75159
75467
|
class Evals extends APIResource {
|
|
75160
75468
|
constructor() {
|
|
75161
75469
|
super(...arguments);
|
|
@@ -75182,7 +75490,7 @@ class Evals extends APIResource {
|
|
|
75182
75490
|
}
|
|
75183
75491
|
}
|
|
75184
75492
|
Evals.Runs = Runs2;
|
|
75185
|
-
// ../../node_modules/.bun/openai@6.
|
|
75493
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/files.mjs
|
|
75186
75494
|
class Files2 extends APIResource {
|
|
75187
75495
|
create(body, options) {
|
|
75188
75496
|
return this._client.post("/files", multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client));
|
|
@@ -75224,11 +75532,11 @@ class Files2 extends APIResource {
|
|
|
75224
75532
|
return file;
|
|
75225
75533
|
}
|
|
75226
75534
|
}
|
|
75227
|
-
// ../../node_modules/.bun/openai@6.
|
|
75535
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/fine-tuning/methods.mjs
|
|
75228
75536
|
class Methods extends APIResource {
|
|
75229
75537
|
}
|
|
75230
75538
|
|
|
75231
|
-
// ../../node_modules/.bun/openai@6.
|
|
75539
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/fine-tuning/alpha/graders.mjs
|
|
75232
75540
|
class Graders extends APIResource {
|
|
75233
75541
|
run(body, options) {
|
|
75234
75542
|
return this._client.post("/fine_tuning/alpha/graders/run", {
|
|
@@ -75246,7 +75554,7 @@ class Graders extends APIResource {
|
|
|
75246
75554
|
}
|
|
75247
75555
|
}
|
|
75248
75556
|
|
|
75249
|
-
// ../../node_modules/.bun/openai@6.
|
|
75557
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs
|
|
75250
75558
|
class Alpha extends APIResource {
|
|
75251
75559
|
constructor() {
|
|
75252
75560
|
super(...arguments);
|
|
@@ -75255,7 +75563,7 @@ class Alpha extends APIResource {
|
|
|
75255
75563
|
}
|
|
75256
75564
|
Alpha.Graders = Graders;
|
|
75257
75565
|
|
|
75258
|
-
// ../../node_modules/.bun/openai@6.
|
|
75566
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs
|
|
75259
75567
|
class Permissions extends APIResource {
|
|
75260
75568
|
create(fineTunedModelCheckpoint, body, options) {
|
|
75261
75569
|
return this._client.getAPIList(path3`/fine_tuning/checkpoints/${fineTunedModelCheckpoint}/permissions`, Page, { body, method: "post", ...options, __security: { adminAPIKeyAuth: true } });
|
|
@@ -75276,7 +75584,7 @@ class Permissions extends APIResource {
|
|
|
75276
75584
|
}
|
|
75277
75585
|
}
|
|
75278
75586
|
|
|
75279
|
-
// ../../node_modules/.bun/openai@6.
|
|
75587
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs
|
|
75280
75588
|
class Checkpoints extends APIResource {
|
|
75281
75589
|
constructor() {
|
|
75282
75590
|
super(...arguments);
|
|
@@ -75285,14 +75593,14 @@ class Checkpoints extends APIResource {
|
|
|
75285
75593
|
}
|
|
75286
75594
|
Checkpoints.Permissions = Permissions;
|
|
75287
75595
|
|
|
75288
|
-
// ../../node_modules/.bun/openai@6.
|
|
75596
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs
|
|
75289
75597
|
class Checkpoints2 extends APIResource {
|
|
75290
75598
|
list(fineTuningJobID, query2 = {}, options) {
|
|
75291
75599
|
return this._client.getAPIList(path3`/fine_tuning/jobs/${fineTuningJobID}/checkpoints`, CursorPage, { query: query2, ...options, __security: { bearerAuth: true } });
|
|
75292
75600
|
}
|
|
75293
75601
|
}
|
|
75294
75602
|
|
|
75295
|
-
// ../../node_modules/.bun/openai@6.
|
|
75603
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
|
|
75296
75604
|
class Jobs extends APIResource {
|
|
75297
75605
|
constructor() {
|
|
75298
75606
|
super(...arguments);
|
|
@@ -75338,7 +75646,7 @@ class Jobs extends APIResource {
|
|
|
75338
75646
|
}
|
|
75339
75647
|
Jobs.Checkpoints = Checkpoints2;
|
|
75340
75648
|
|
|
75341
|
-
// ../../node_modules/.bun/openai@6.
|
|
75649
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/fine-tuning/fine-tuning.mjs
|
|
75342
75650
|
class FineTuning extends APIResource {
|
|
75343
75651
|
constructor() {
|
|
75344
75652
|
super(...arguments);
|
|
@@ -75352,11 +75660,11 @@ FineTuning.Methods = Methods;
|
|
|
75352
75660
|
FineTuning.Jobs = Jobs;
|
|
75353
75661
|
FineTuning.Checkpoints = Checkpoints;
|
|
75354
75662
|
FineTuning.Alpha = Alpha;
|
|
75355
|
-
// ../../node_modules/.bun/openai@6.
|
|
75663
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/graders/grader-models.mjs
|
|
75356
75664
|
class GraderModels extends APIResource {
|
|
75357
75665
|
}
|
|
75358
75666
|
|
|
75359
|
-
// ../../node_modules/.bun/openai@6.
|
|
75667
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/graders/graders.mjs
|
|
75360
75668
|
class Graders2 extends APIResource {
|
|
75361
75669
|
constructor() {
|
|
75362
75670
|
super(...arguments);
|
|
@@ -75364,7 +75672,7 @@ class Graders2 extends APIResource {
|
|
|
75364
75672
|
}
|
|
75365
75673
|
}
|
|
75366
75674
|
Graders2.GraderModels = GraderModels;
|
|
75367
|
-
// ../../node_modules/.bun/openai@6.
|
|
75675
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/images.mjs
|
|
75368
75676
|
class Images extends APIResource {
|
|
75369
75677
|
createVariation(body, options) {
|
|
75370
75678
|
return this._client.post("/images/variations", multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client));
|
|
@@ -75381,7 +75689,7 @@ class Images extends APIResource {
|
|
|
75381
75689
|
});
|
|
75382
75690
|
}
|
|
75383
75691
|
}
|
|
75384
|
-
// ../../node_modules/.bun/openai@6.
|
|
75692
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/models.mjs
|
|
75385
75693
|
class Models extends APIResource {
|
|
75386
75694
|
retrieve(model, options) {
|
|
75387
75695
|
return this._client.get(path3`/models/${model}`, { ...options, __security: { bearerAuth: true } });
|
|
@@ -75393,13 +75701,13 @@ class Models extends APIResource {
|
|
|
75393
75701
|
return this._client.delete(path3`/models/${model}`, { ...options, __security: { bearerAuth: true } });
|
|
75394
75702
|
}
|
|
75395
75703
|
}
|
|
75396
|
-
// ../../node_modules/.bun/openai@6.
|
|
75704
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/moderations.mjs
|
|
75397
75705
|
class Moderations extends APIResource {
|
|
75398
75706
|
create(body, options) {
|
|
75399
75707
|
return this._client.post("/moderations", { body, ...options, __security: { bearerAuth: true } });
|
|
75400
75708
|
}
|
|
75401
75709
|
}
|
|
75402
|
-
// ../../node_modules/.bun/openai@6.
|
|
75710
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/realtime/calls.mjs
|
|
75403
75711
|
class Calls extends APIResource {
|
|
75404
75712
|
accept(callID, body, options) {
|
|
75405
75713
|
return this._client.post(path3`/realtime/calls/${callID}/accept`, {
|
|
@@ -75434,7 +75742,7 @@ class Calls extends APIResource {
|
|
|
75434
75742
|
}
|
|
75435
75743
|
}
|
|
75436
75744
|
|
|
75437
|
-
// ../../node_modules/.bun/openai@6.
|
|
75745
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/realtime/client-secrets.mjs
|
|
75438
75746
|
class ClientSecrets extends APIResource {
|
|
75439
75747
|
create(body, options) {
|
|
75440
75748
|
return this._client.post("/realtime/client_secrets", {
|
|
@@ -75445,7 +75753,7 @@ class ClientSecrets extends APIResource {
|
|
|
75445
75753
|
}
|
|
75446
75754
|
}
|
|
75447
75755
|
|
|
75448
|
-
// ../../node_modules/.bun/openai@6.
|
|
75756
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/realtime/realtime.mjs
|
|
75449
75757
|
class Realtime2 extends APIResource {
|
|
75450
75758
|
constructor() {
|
|
75451
75759
|
super(...arguments);
|
|
@@ -75455,7 +75763,7 @@ class Realtime2 extends APIResource {
|
|
|
75455
75763
|
}
|
|
75456
75764
|
Realtime2.ClientSecrets = ClientSecrets;
|
|
75457
75765
|
Realtime2.Calls = Calls;
|
|
75458
|
-
// ../../node_modules/.bun/openai@6.
|
|
75766
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/ResponsesParser.mjs
|
|
75459
75767
|
function maybeParseResponse(response, params) {
|
|
75460
75768
|
if (!params || !hasAutoParseableInput2(params)) {
|
|
75461
75769
|
const parsed = {
|
|
@@ -75584,7 +75892,7 @@ function addOutputText(rsp) {
|
|
|
75584
75892
|
rsp.output_text = texts.join("");
|
|
75585
75893
|
}
|
|
75586
75894
|
|
|
75587
|
-
// ../../node_modules/.bun/openai@6.
|
|
75895
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/responses/ResponseAccumulator.mjs
|
|
75588
75896
|
function accumulateResponse(event, snapshot) {
|
|
75589
75897
|
if (!snapshot) {
|
|
75590
75898
|
if (event.type !== "response.created") {
|
|
@@ -75938,6 +76246,7 @@ function accumulateResponse(event, snapshot) {
|
|
|
75938
76246
|
case "response.mcp_list_tools.in_progress":
|
|
75939
76247
|
case "response.mcp_list_tools.completed":
|
|
75940
76248
|
case "response.mcp_list_tools.failed":
|
|
76249
|
+
case "keepalive":
|
|
75941
76250
|
case "error": {
|
|
75942
76251
|
break;
|
|
75943
76252
|
}
|
|
@@ -75972,7 +76281,7 @@ function assertNever3(value) {
|
|
|
75972
76281
|
throw new OpenAIError(`Unhandled response stream event: ${JSON.stringify(value)}`);
|
|
75973
76282
|
}
|
|
75974
76283
|
|
|
75975
|
-
// ../../node_modules/.bun/openai@6.
|
|
76284
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/responses/ResponseStream.mjs
|
|
75976
76285
|
var _ResponseStream_instances;
|
|
75977
76286
|
var _ResponseStream_params;
|
|
75978
76287
|
var _ResponseStream_currentResponseSnapshot;
|
|
@@ -76145,15 +76454,15 @@ function finalizeResponse(snapshot, params) {
|
|
|
76145
76454
|
return maybeParseResponse(snapshot, params);
|
|
76146
76455
|
}
|
|
76147
76456
|
|
|
76148
|
-
// ../../node_modules/.bun/openai@6.
|
|
76149
|
-
class
|
|
76457
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/responses/input-items.mjs
|
|
76458
|
+
class InputItems2 extends APIResource {
|
|
76150
76459
|
list(responseID, query2 = {}, options) {
|
|
76151
76460
|
return this._client.getAPIList(path3`/responses/${responseID}/input_items`, CursorPage, { query: query2, ...options, __security: { bearerAuth: true } });
|
|
76152
76461
|
}
|
|
76153
76462
|
}
|
|
76154
76463
|
|
|
76155
|
-
// ../../node_modules/.bun/openai@6.
|
|
76156
|
-
class
|
|
76464
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/responses/input-tokens.mjs
|
|
76465
|
+
class InputTokens2 extends APIResource {
|
|
76157
76466
|
count(body = {}, options) {
|
|
76158
76467
|
return this._client.post("/responses/input_tokens", {
|
|
76159
76468
|
body,
|
|
@@ -76163,12 +76472,12 @@ class InputTokens extends APIResource {
|
|
|
76163
76472
|
}
|
|
76164
76473
|
}
|
|
76165
76474
|
|
|
76166
|
-
// ../../node_modules/.bun/openai@6.
|
|
76167
|
-
class
|
|
76475
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/responses/responses.mjs
|
|
76476
|
+
class Responses2 extends APIResource {
|
|
76168
76477
|
constructor() {
|
|
76169
76478
|
super(...arguments);
|
|
76170
|
-
this.inputItems = new
|
|
76171
|
-
this.inputTokens = new
|
|
76479
|
+
this.inputItems = new InputItems2(this._client);
|
|
76480
|
+
this.inputTokens = new InputTokens2(this._client);
|
|
76172
76481
|
}
|
|
76173
76482
|
create(body, options) {
|
|
76174
76483
|
return this._client.post("/responses", {
|
|
@@ -76219,9 +76528,9 @@ class Responses extends APIResource {
|
|
|
76219
76528
|
return this._client.post("/responses/compact", { body, ...options, __security: { bearerAuth: true } });
|
|
76220
76529
|
}
|
|
76221
76530
|
}
|
|
76222
|
-
|
|
76223
|
-
|
|
76224
|
-
// ../../node_modules/.bun/openai@6.
|
|
76531
|
+
Responses2.InputItems = InputItems2;
|
|
76532
|
+
Responses2.InputTokens = InputTokens2;
|
|
76533
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/skills/content.mjs
|
|
76225
76534
|
class Content2 extends APIResource {
|
|
76226
76535
|
retrieve(skillID, options) {
|
|
76227
76536
|
return this._client.get(path3`/skills/${skillID}/content`, {
|
|
@@ -76233,7 +76542,7 @@ class Content2 extends APIResource {
|
|
|
76233
76542
|
}
|
|
76234
76543
|
}
|
|
76235
76544
|
|
|
76236
|
-
// ../../node_modules/.bun/openai@6.
|
|
76545
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/skills/versions/content.mjs
|
|
76237
76546
|
class Content3 extends APIResource {
|
|
76238
76547
|
retrieve(version, params, options) {
|
|
76239
76548
|
const { skill_id } = params;
|
|
@@ -76246,7 +76555,7 @@ class Content3 extends APIResource {
|
|
|
76246
76555
|
}
|
|
76247
76556
|
}
|
|
76248
76557
|
|
|
76249
|
-
// ../../node_modules/.bun/openai@6.
|
|
76558
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/skills/versions/versions.mjs
|
|
76250
76559
|
class Versions extends APIResource {
|
|
76251
76560
|
constructor() {
|
|
76252
76561
|
super(...arguments);
|
|
@@ -76279,7 +76588,7 @@ class Versions extends APIResource {
|
|
|
76279
76588
|
}
|
|
76280
76589
|
Versions.Content = Content3;
|
|
76281
76590
|
|
|
76282
|
-
// ../../node_modules/.bun/openai@6.
|
|
76591
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/skills/skills.mjs
|
|
76283
76592
|
class Skills extends APIResource {
|
|
76284
76593
|
constructor() {
|
|
76285
76594
|
super(...arguments);
|
|
@@ -76312,14 +76621,14 @@ class Skills extends APIResource {
|
|
|
76312
76621
|
}
|
|
76313
76622
|
Skills.Content = Content2;
|
|
76314
76623
|
Skills.Versions = Versions;
|
|
76315
|
-
// ../../node_modules/.bun/openai@6.
|
|
76624
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/uploads/parts.mjs
|
|
76316
76625
|
class Parts extends APIResource {
|
|
76317
76626
|
create(uploadID, body, options) {
|
|
76318
76627
|
return this._client.post(path3`/uploads/${uploadID}/parts`, multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client));
|
|
76319
76628
|
}
|
|
76320
76629
|
}
|
|
76321
76630
|
|
|
76322
|
-
// ../../node_modules/.bun/openai@6.
|
|
76631
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/uploads/uploads.mjs
|
|
76323
76632
|
class Uploads extends APIResource {
|
|
76324
76633
|
constructor() {
|
|
76325
76634
|
super(...arguments);
|
|
@@ -76343,7 +76652,7 @@ class Uploads extends APIResource {
|
|
|
76343
76652
|
}
|
|
76344
76653
|
}
|
|
76345
76654
|
Uploads.Parts = Parts;
|
|
76346
|
-
// ../../node_modules/.bun/openai@6.
|
|
76655
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/lib/Util.mjs
|
|
76347
76656
|
var allSettledWithThrow = async (promises) => {
|
|
76348
76657
|
const results = await Promise.allSettled(promises);
|
|
76349
76658
|
const rejected = results.filter((result) => result.status === "rejected");
|
|
@@ -76362,7 +76671,7 @@ var allSettledWithThrow = async (promises) => {
|
|
|
76362
76671
|
return values2;
|
|
76363
76672
|
};
|
|
76364
76673
|
|
|
76365
|
-
// ../../node_modules/.bun/openai@6.
|
|
76674
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/vector-stores/file-batches.mjs
|
|
76366
76675
|
class FileBatches extends APIResource {
|
|
76367
76676
|
create(vectorStoreID, body, options) {
|
|
76368
76677
|
return this._client.post(path3`/vector_stores/${vectorStoreID}/file_batches`, {
|
|
@@ -76460,7 +76769,7 @@ class FileBatches extends APIResource {
|
|
|
76460
76769
|
}
|
|
76461
76770
|
}
|
|
76462
76771
|
|
|
76463
|
-
// ../../node_modules/.bun/openai@6.
|
|
76772
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/vector-stores/files.mjs
|
|
76464
76773
|
class Files3 extends APIResource {
|
|
76465
76774
|
create(vectorStoreID, body, options) {
|
|
76466
76775
|
return this._client.post(path3`/vector_stores/${vectorStoreID}/files`, {
|
|
@@ -76560,7 +76869,7 @@ class Files3 extends APIResource {
|
|
|
76560
76869
|
}
|
|
76561
76870
|
}
|
|
76562
76871
|
|
|
76563
|
-
// ../../node_modules/.bun/openai@6.
|
|
76872
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/vector-stores/vector-stores.mjs
|
|
76564
76873
|
class VectorStores extends APIResource {
|
|
76565
76874
|
constructor() {
|
|
76566
76875
|
super(...arguments);
|
|
@@ -76617,7 +76926,7 @@ class VectorStores extends APIResource {
|
|
|
76617
76926
|
}
|
|
76618
76927
|
VectorStores.Files = Files3;
|
|
76619
76928
|
VectorStores.FileBatches = FileBatches;
|
|
76620
|
-
// ../../node_modules/.bun/openai@6.
|
|
76929
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/videos.mjs
|
|
76621
76930
|
class Videos extends APIResource {
|
|
76622
76931
|
create(body, options) {
|
|
76623
76932
|
return this._client.post("/videos", multipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client));
|
|
@@ -76663,7 +76972,7 @@ class Videos extends APIResource {
|
|
|
76663
76972
|
return this._client.post(path3`/videos/${videoID}/remix`, maybeMultipartFormRequestOptions({ body, ...options, __security: { bearerAuth: true } }, this._client));
|
|
76664
76973
|
}
|
|
76665
76974
|
}
|
|
76666
|
-
// ../../node_modules/.bun/openai@6.
|
|
76975
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/resources/webhooks/webhooks.mjs
|
|
76667
76976
|
var _Webhooks_instances;
|
|
76668
76977
|
var _Webhooks_validateSecret;
|
|
76669
76978
|
var _Webhooks_getRequiredHeader;
|
|
@@ -76729,7 +77038,7 @@ _Webhooks_instances = new WeakSet, _Webhooks_validateSecret = function _Webhooks
|
|
|
76729
77038
|
}
|
|
76730
77039
|
return value;
|
|
76731
77040
|
};
|
|
76732
|
-
// ../../node_modules/.bun/openai@6.
|
|
77041
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/internal/provider.mjs
|
|
76733
77042
|
var providerDefinitionsKey = Symbol.for("openai.node.providerDefinitions.v1");
|
|
76734
77043
|
var providerGlobal = globalThis;
|
|
76735
77044
|
var existingProviderDefinitions = providerGlobal[providerDefinitionsKey];
|
|
@@ -76745,7 +77054,7 @@ function configureProvider(provider) {
|
|
|
76745
77054
|
return definition.configure();
|
|
76746
77055
|
}
|
|
76747
77056
|
|
|
76748
|
-
// ../../node_modules/.bun/openai@6.
|
|
77057
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/client.mjs
|
|
76749
77058
|
var _OpenAI_instances;
|
|
76750
77059
|
var _a2;
|
|
76751
77060
|
var _OpenAI_encoder;
|
|
@@ -76772,7 +77081,7 @@ class OpenAI {
|
|
|
76772
77081
|
this.batches = new Batches(this);
|
|
76773
77082
|
this.uploads = new Uploads(this);
|
|
76774
77083
|
this.admin = new Admin(this);
|
|
76775
|
-
this.responses = new
|
|
77084
|
+
this.responses = new Responses2(this);
|
|
76776
77085
|
this.realtime = new Realtime2(this);
|
|
76777
77086
|
this.conversations = new Conversations(this);
|
|
76778
77087
|
this.evals = new Evals(this);
|
|
@@ -77339,7 +77648,7 @@ OpenAI.Beta = Beta;
|
|
|
77339
77648
|
OpenAI.Batches = Batches;
|
|
77340
77649
|
OpenAI.Uploads = Uploads;
|
|
77341
77650
|
OpenAI.Admin = Admin;
|
|
77342
|
-
OpenAI.Responses =
|
|
77651
|
+
OpenAI.Responses = Responses2;
|
|
77343
77652
|
OpenAI.Realtime = Realtime2;
|
|
77344
77653
|
OpenAI.Conversations = Conversations;
|
|
77345
77654
|
OpenAI.Evals = Evals;
|
|
@@ -77363,7 +77672,7 @@ function isUndiciDispatcherVersionMismatchError(error2) {
|
|
|
77363
77672
|
}
|
|
77364
77673
|
return false;
|
|
77365
77674
|
}
|
|
77366
|
-
// ../../node_modules/.bun/openai@6.
|
|
77675
|
+
// ../../node_modules/.bun/openai@6.46.0+842cab36901b74d2/node_modules/openai/azure.mjs
|
|
77367
77676
|
var _deployments_endpoints = new Set([
|
|
77368
77677
|
"/completions",
|
|
77369
77678
|
"/chat/completions",
|
|
@@ -77563,7 +77872,7 @@ class AnthropicProvider {
|
|
|
77563
77872
|
}
|
|
77564
77873
|
}
|
|
77565
77874
|
}
|
|
77566
|
-
// ../../node_modules/.bun/@google+genai@2.
|
|
77875
|
+
// ../../node_modules/.bun/@google+genai@2.11.0+6dc9e9ccb27012c9/node_modules/@google/genai/dist/node/index.mjs
|
|
77567
77876
|
init_wrapper();
|
|
77568
77877
|
var import_p_retry2 = __toESM(require_p_retry(), 1);
|
|
77569
77878
|
var import_google_auth_library = __toESM(require_src5(), 1);
|
|
@@ -78300,6 +78609,38 @@ var Modality;
|
|
|
78300
78609
|
Modality2["AUDIO"] = "AUDIO";
|
|
78301
78610
|
Modality2["VIDEO"] = "VIDEO";
|
|
78302
78611
|
})(Modality || (Modality = {}));
|
|
78612
|
+
var Delivery;
|
|
78613
|
+
(function(Delivery2) {
|
|
78614
|
+
Delivery2["DELIVERY_UNSPECIFIED"] = "DELIVERY_UNSPECIFIED";
|
|
78615
|
+
Delivery2["INLINE"] = "INLINE";
|
|
78616
|
+
Delivery2["URI"] = "URI";
|
|
78617
|
+
})(Delivery || (Delivery = {}));
|
|
78618
|
+
var AspectRatio;
|
|
78619
|
+
(function(AspectRatio2) {
|
|
78620
|
+
AspectRatio2["ASPECT_RATIO_UNSPECIFIED"] = "ASPECT_RATIO_UNSPECIFIED";
|
|
78621
|
+
AspectRatio2["ASPECT_RATIO_ONE_BY_ONE"] = "ASPECT_RATIO_ONE_BY_ONE";
|
|
78622
|
+
AspectRatio2["ASPECT_RATIO_TWO_BY_THREE"] = "ASPECT_RATIO_TWO_BY_THREE";
|
|
78623
|
+
AspectRatio2["ASPECT_RATIO_THREE_BY_TWO"] = "ASPECT_RATIO_THREE_BY_TWO";
|
|
78624
|
+
AspectRatio2["ASPECT_RATIO_THREE_BY_FOUR"] = "ASPECT_RATIO_THREE_BY_FOUR";
|
|
78625
|
+
AspectRatio2["ASPECT_RATIO_FOUR_BY_THREE"] = "ASPECT_RATIO_FOUR_BY_THREE";
|
|
78626
|
+
AspectRatio2["ASPECT_RATIO_FOUR_BY_FIVE"] = "ASPECT_RATIO_FOUR_BY_FIVE";
|
|
78627
|
+
AspectRatio2["ASPECT_RATIO_FIVE_BY_FOUR"] = "ASPECT_RATIO_FIVE_BY_FOUR";
|
|
78628
|
+
AspectRatio2["ASPECT_RATIO_NINE_BY_SIXTEEN"] = "ASPECT_RATIO_NINE_BY_SIXTEEN";
|
|
78629
|
+
AspectRatio2["ASPECT_RATIO_SIXTEEN_BY_NINE"] = "ASPECT_RATIO_SIXTEEN_BY_NINE";
|
|
78630
|
+
AspectRatio2["ASPECT_RATIO_TWENTY_ONE_BY_NINE"] = "ASPECT_RATIO_TWENTY_ONE_BY_NINE";
|
|
78631
|
+
AspectRatio2["ASPECT_RATIO_ONE_BY_EIGHT"] = "ASPECT_RATIO_ONE_BY_EIGHT";
|
|
78632
|
+
AspectRatio2["ASPECT_RATIO_EIGHT_BY_ONE"] = "ASPECT_RATIO_EIGHT_BY_ONE";
|
|
78633
|
+
AspectRatio2["ASPECT_RATIO_ONE_BY_FOUR"] = "ASPECT_RATIO_ONE_BY_FOUR";
|
|
78634
|
+
AspectRatio2["ASPECT_RATIO_FOUR_BY_ONE"] = "ASPECT_RATIO_FOUR_BY_ONE";
|
|
78635
|
+
})(AspectRatio || (AspectRatio = {}));
|
|
78636
|
+
var ImageSize;
|
|
78637
|
+
(function(ImageSize2) {
|
|
78638
|
+
ImageSize2["IMAGE_SIZE_UNSPECIFIED"] = "IMAGE_SIZE_UNSPECIFIED";
|
|
78639
|
+
ImageSize2["IMAGE_SIZE_FIVE_TWELVE"] = "IMAGE_SIZE_FIVE_TWELVE";
|
|
78640
|
+
ImageSize2["IMAGE_SIZE_ONE_K"] = "IMAGE_SIZE_ONE_K";
|
|
78641
|
+
ImageSize2["IMAGE_SIZE_TWO_K"] = "IMAGE_SIZE_TWO_K";
|
|
78642
|
+
ImageSize2["IMAGE_SIZE_FOUR_K"] = "IMAGE_SIZE_FOUR_K";
|
|
78643
|
+
})(ImageSize || (ImageSize = {}));
|
|
78303
78644
|
var TuningMode;
|
|
78304
78645
|
(function(TuningMode2) {
|
|
78305
78646
|
TuningMode2["TUNING_MODE_UNSPECIFIED"] = "TUNING_MODE_UNSPECIFIED";
|
|
@@ -78316,6 +78657,25 @@ var AdapterSize;
|
|
|
78316
78657
|
AdapterSize2["ADAPTER_SIZE_SIXTEEN"] = "ADAPTER_SIZE_SIXTEEN";
|
|
78317
78658
|
AdapterSize2["ADAPTER_SIZE_THIRTY_TWO"] = "ADAPTER_SIZE_THIRTY_TWO";
|
|
78318
78659
|
})(AdapterSize || (AdapterSize = {}));
|
|
78660
|
+
var ResponseParseType;
|
|
78661
|
+
(function(ResponseParseType2) {
|
|
78662
|
+
ResponseParseType2["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
|
|
78663
|
+
ResponseParseType2["IDENTITY"] = "IDENTITY";
|
|
78664
|
+
ResponseParseType2["REGEX_EXTRACT"] = "REGEX_EXTRACT";
|
|
78665
|
+
})(ResponseParseType || (ResponseParseType = {}));
|
|
78666
|
+
var MatchOperation;
|
|
78667
|
+
(function(MatchOperation2) {
|
|
78668
|
+
MatchOperation2["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
|
|
78669
|
+
MatchOperation2["REGEX_CONTAINS"] = "REGEX_CONTAINS";
|
|
78670
|
+
MatchOperation2["PARTIAL_MATCH"] = "PARTIAL_MATCH";
|
|
78671
|
+
MatchOperation2["EXACT_MATCH"] = "EXACT_MATCH";
|
|
78672
|
+
})(MatchOperation || (MatchOperation = {}));
|
|
78673
|
+
var ReinforcementTuningThinkingLevel;
|
|
78674
|
+
(function(ReinforcementTuningThinkingLevel2) {
|
|
78675
|
+
ReinforcementTuningThinkingLevel2["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
|
|
78676
|
+
ReinforcementTuningThinkingLevel2["MINIMAL"] = "MINIMAL";
|
|
78677
|
+
ReinforcementTuningThinkingLevel2["HIGH"] = "HIGH";
|
|
78678
|
+
})(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
|
|
78319
78679
|
var JobState;
|
|
78320
78680
|
(function(JobState2) {
|
|
78321
78681
|
JobState2["JOB_STATE_UNSPECIFIED"] = "JOB_STATE_UNSPECIFIED";
|
|
@@ -78508,25 +78868,6 @@ var ImageResizeMode;
|
|
|
78508
78868
|
ImageResizeMode2["CROP"] = "CROP";
|
|
78509
78869
|
ImageResizeMode2["PAD"] = "PAD";
|
|
78510
78870
|
})(ImageResizeMode || (ImageResizeMode = {}));
|
|
78511
|
-
var ResponseParseType;
|
|
78512
|
-
(function(ResponseParseType2) {
|
|
78513
|
-
ResponseParseType2["RESPONSE_PARSE_TYPE_UNSPECIFIED"] = "RESPONSE_PARSE_TYPE_UNSPECIFIED";
|
|
78514
|
-
ResponseParseType2["IDENTITY"] = "IDENTITY";
|
|
78515
|
-
ResponseParseType2["REGEX_EXTRACT"] = "REGEX_EXTRACT";
|
|
78516
|
-
})(ResponseParseType || (ResponseParseType = {}));
|
|
78517
|
-
var MatchOperation;
|
|
78518
|
-
(function(MatchOperation2) {
|
|
78519
|
-
MatchOperation2["MATCH_OPERATION_UNSPECIFIED"] = "MATCH_OPERATION_UNSPECIFIED";
|
|
78520
|
-
MatchOperation2["REGEX_CONTAINS"] = "REGEX_CONTAINS";
|
|
78521
|
-
MatchOperation2["PARTIAL_MATCH"] = "PARTIAL_MATCH";
|
|
78522
|
-
MatchOperation2["EXACT_MATCH"] = "EXACT_MATCH";
|
|
78523
|
-
})(MatchOperation || (MatchOperation = {}));
|
|
78524
|
-
var ReinforcementTuningThinkingLevel;
|
|
78525
|
-
(function(ReinforcementTuningThinkingLevel2) {
|
|
78526
|
-
ReinforcementTuningThinkingLevel2["REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED"] = "REINFORCEMENT_TUNING_THINKING_LEVEL_UNSPECIFIED";
|
|
78527
|
-
ReinforcementTuningThinkingLevel2["MINIMAL"] = "MINIMAL";
|
|
78528
|
-
ReinforcementTuningThinkingLevel2["HIGH"] = "HIGH";
|
|
78529
|
-
})(ReinforcementTuningThinkingLevel || (ReinforcementTuningThinkingLevel = {}));
|
|
78530
78871
|
var TuningMethod;
|
|
78531
78872
|
(function(TuningMethod2) {
|
|
78532
78873
|
TuningMethod2["SUPERVISED_FINE_TUNING"] = "SUPERVISED_FINE_TUNING";
|
|
@@ -78783,7 +79124,6 @@ class ListModelsResponse {
|
|
|
78783
79124
|
|
|
78784
79125
|
class DeleteModelResponse {
|
|
78785
79126
|
}
|
|
78786
|
-
|
|
78787
79127
|
class CountTokensResponse {
|
|
78788
79128
|
}
|
|
78789
79129
|
|
|
@@ -80801,6 +81141,9 @@ function toolToMldev$4(fromObject) {
|
|
|
80801
81141
|
}
|
|
80802
81142
|
setValueByPath(toObject, ["mcpServers"], transformedList);
|
|
80803
81143
|
}
|
|
81144
|
+
if (getValueByPath(fromObject, ["exaAiSearch"]) !== undefined) {
|
|
81145
|
+
throw new Error("exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.");
|
|
81146
|
+
}
|
|
80804
81147
|
return toObject;
|
|
80805
81148
|
}
|
|
80806
81149
|
function vertexMultimodalDatasetDestinationFromVertex(fromObject) {
|
|
@@ -82041,6 +82384,9 @@ function toolToMldev$3(fromObject) {
|
|
|
82041
82384
|
}
|
|
82042
82385
|
setValueByPath(toObject, ["mcpServers"], transformedList);
|
|
82043
82386
|
}
|
|
82387
|
+
if (getValueByPath(fromObject, ["exaAiSearch"]) !== undefined) {
|
|
82388
|
+
throw new Error("exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.");
|
|
82389
|
+
}
|
|
82044
82390
|
return toObject;
|
|
82045
82391
|
}
|
|
82046
82392
|
function toolToVertex$2(fromObject) {
|
|
@@ -82114,6 +82460,10 @@ function toolToVertex$2(fromObject) {
|
|
|
82114
82460
|
}
|
|
82115
82461
|
setValueByPath(toObject, ["mcpServers"], transformedList);
|
|
82116
82462
|
}
|
|
82463
|
+
const fromExaAiSearch = getValueByPath(fromObject, ["exaAiSearch"]);
|
|
82464
|
+
if (fromExaAiSearch != null) {
|
|
82465
|
+
setValueByPath(toObject, ["exaAiSearch"], fromExaAiSearch);
|
|
82466
|
+
}
|
|
82117
82467
|
return toObject;
|
|
82118
82468
|
}
|
|
82119
82469
|
function updateCachedContentConfigToMldev(fromObject, parentObject) {
|
|
@@ -83315,7 +83665,7 @@ function generationConfigToVertex$1(fromObject) {
|
|
|
83315
83665
|
}
|
|
83316
83666
|
const fromSpeechConfig = getValueByPath(fromObject, ["speechConfig"]);
|
|
83317
83667
|
if (fromSpeechConfig != null) {
|
|
83318
|
-
setValueByPath(toObject, ["speechConfig"], fromSpeechConfig);
|
|
83668
|
+
setValueByPath(toObject, ["speechConfig"], speechConfigToVertex$1(fromSpeechConfig));
|
|
83319
83669
|
}
|
|
83320
83670
|
const fromStopSequences = getValueByPath(fromObject, [
|
|
83321
83671
|
"stopSequences"
|
|
@@ -83344,6 +83694,21 @@ function generationConfigToVertex$1(fromObject) {
|
|
|
83344
83694
|
if (getValueByPath(fromObject, ["enableEnhancedCivicAnswers"]) !== undefined) {
|
|
83345
83695
|
throw new Error("enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.");
|
|
83346
83696
|
}
|
|
83697
|
+
const fromResponseFormat = getValueByPath(fromObject, [
|
|
83698
|
+
"responseFormat"
|
|
83699
|
+
]);
|
|
83700
|
+
if (fromResponseFormat != null) {
|
|
83701
|
+
let transformedList = fromResponseFormat;
|
|
83702
|
+
if (Array.isArray(transformedList)) {
|
|
83703
|
+
transformedList = transformedList.map((item) => {
|
|
83704
|
+
return item;
|
|
83705
|
+
});
|
|
83706
|
+
}
|
|
83707
|
+
setValueByPath(toObject, ["responseFormat"], transformedList);
|
|
83708
|
+
}
|
|
83709
|
+
if (getValueByPath(fromObject, ["translationConfig"]) !== undefined) {
|
|
83710
|
+
throw new Error("translationConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.");
|
|
83711
|
+
}
|
|
83347
83712
|
return toObject;
|
|
83348
83713
|
}
|
|
83349
83714
|
function googleMapsToMldev$2(fromObject) {
|
|
@@ -83557,7 +83922,7 @@ function liveConnectConfigToVertex(fromObject, parentObject) {
|
|
|
83557
83922
|
}
|
|
83558
83923
|
const fromSpeechConfig = getValueByPath(fromObject, ["speechConfig"]);
|
|
83559
83924
|
if (parentObject !== undefined && fromSpeechConfig != null) {
|
|
83560
|
-
setValueByPath(parentObject, ["setup", "generationConfig", "speechConfig"], tLiveSpeechConfig(fromSpeechConfig));
|
|
83925
|
+
setValueByPath(parentObject, ["setup", "generationConfig", "speechConfig"], speechConfigToVertex$1(tLiveSpeechConfig(fromSpeechConfig)));
|
|
83561
83926
|
}
|
|
83562
83927
|
const fromThinkingConfig = getValueByPath(fromObject, [
|
|
83563
83928
|
"thinkingConfig"
|
|
@@ -83846,6 +84211,22 @@ function mcpServerToVertex$1(fromObject) {
|
|
|
83846
84211
|
}
|
|
83847
84212
|
return toObject;
|
|
83848
84213
|
}
|
|
84214
|
+
function multiSpeakerVoiceConfigToVertex$1(fromObject) {
|
|
84215
|
+
const toObject = {};
|
|
84216
|
+
const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
|
|
84217
|
+
"speakerVoiceConfigs"
|
|
84218
|
+
]);
|
|
84219
|
+
if (fromSpeakerVoiceConfigs != null) {
|
|
84220
|
+
let transformedList = fromSpeakerVoiceConfigs;
|
|
84221
|
+
if (Array.isArray(transformedList)) {
|
|
84222
|
+
transformedList = transformedList.map((item) => {
|
|
84223
|
+
return speakerVoiceConfigToVertex$1(item);
|
|
84224
|
+
});
|
|
84225
|
+
}
|
|
84226
|
+
setValueByPath(toObject, ["speakerVoiceConfigs"], transformedList);
|
|
84227
|
+
}
|
|
84228
|
+
return toObject;
|
|
84229
|
+
}
|
|
83849
84230
|
function partToMldev$2(fromObject) {
|
|
83850
84231
|
const toObject = {};
|
|
83851
84232
|
const fromMediaResolution = getValueByPath(fromObject, [
|
|
@@ -83987,6 +84368,26 @@ function partToVertex$2(fromObject) {
|
|
|
83987
84368
|
}
|
|
83988
84369
|
return toObject;
|
|
83989
84370
|
}
|
|
84371
|
+
function replicatedVoiceConfigToVertex$1(fromObject) {
|
|
84372
|
+
const toObject = {};
|
|
84373
|
+
const fromMimeType = getValueByPath(fromObject, ["mimeType"]);
|
|
84374
|
+
if (fromMimeType != null) {
|
|
84375
|
+
setValueByPath(toObject, ["mimeType"], fromMimeType);
|
|
84376
|
+
}
|
|
84377
|
+
const fromVoiceSampleAudio = getValueByPath(fromObject, [
|
|
84378
|
+
"voiceSampleAudio"
|
|
84379
|
+
]);
|
|
84380
|
+
if (fromVoiceSampleAudio != null) {
|
|
84381
|
+
setValueByPath(toObject, ["voiceSampleAudio"], fromVoiceSampleAudio);
|
|
84382
|
+
}
|
|
84383
|
+
if (getValueByPath(fromObject, ["consentAudio"]) !== undefined) {
|
|
84384
|
+
throw new Error("consentAudio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.");
|
|
84385
|
+
}
|
|
84386
|
+
if (getValueByPath(fromObject, ["voiceConsentSignature"]) !== undefined) {
|
|
84387
|
+
throw new Error("voiceConsentSignature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.");
|
|
84388
|
+
}
|
|
84389
|
+
return toObject;
|
|
84390
|
+
}
|
|
83990
84391
|
function safetySettingToMldev$2(fromObject) {
|
|
83991
84392
|
const toObject = {};
|
|
83992
84393
|
const fromCategory = getValueByPath(fromObject, ["category"]);
|
|
@@ -84013,6 +84414,36 @@ function sessionResumptionConfigToMldev$1(fromObject) {
|
|
|
84013
84414
|
}
|
|
84014
84415
|
return toObject;
|
|
84015
84416
|
}
|
|
84417
|
+
function speakerVoiceConfigToVertex$1(fromObject) {
|
|
84418
|
+
const toObject = {};
|
|
84419
|
+
const fromSpeaker = getValueByPath(fromObject, ["speaker"]);
|
|
84420
|
+
if (fromSpeaker != null) {
|
|
84421
|
+
setValueByPath(toObject, ["speaker"], fromSpeaker);
|
|
84422
|
+
}
|
|
84423
|
+
const fromVoiceConfig = getValueByPath(fromObject, ["voiceConfig"]);
|
|
84424
|
+
if (fromVoiceConfig != null) {
|
|
84425
|
+
setValueByPath(toObject, ["voiceConfig"], voiceConfigToVertex$1(fromVoiceConfig));
|
|
84426
|
+
}
|
|
84427
|
+
return toObject;
|
|
84428
|
+
}
|
|
84429
|
+
function speechConfigToVertex$1(fromObject) {
|
|
84430
|
+
const toObject = {};
|
|
84431
|
+
const fromVoiceConfig = getValueByPath(fromObject, ["voiceConfig"]);
|
|
84432
|
+
if (fromVoiceConfig != null) {
|
|
84433
|
+
setValueByPath(toObject, ["voiceConfig"], voiceConfigToVertex$1(fromVoiceConfig));
|
|
84434
|
+
}
|
|
84435
|
+
const fromLanguageCode = getValueByPath(fromObject, ["languageCode"]);
|
|
84436
|
+
if (fromLanguageCode != null) {
|
|
84437
|
+
setValueByPath(toObject, ["languageCode"], fromLanguageCode);
|
|
84438
|
+
}
|
|
84439
|
+
const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
|
|
84440
|
+
"multiSpeakerVoiceConfig"
|
|
84441
|
+
]);
|
|
84442
|
+
if (fromMultiSpeakerVoiceConfig != null) {
|
|
84443
|
+
setValueByPath(toObject, ["multiSpeakerVoiceConfig"], multiSpeakerVoiceConfigToVertex$1(fromMultiSpeakerVoiceConfig));
|
|
84444
|
+
}
|
|
84445
|
+
return toObject;
|
|
84446
|
+
}
|
|
84016
84447
|
function toolToMldev$2(fromObject) {
|
|
84017
84448
|
const toObject = {};
|
|
84018
84449
|
if (getValueByPath(fromObject, ["retrieval"]) !== undefined) {
|
|
@@ -84078,6 +84509,9 @@ function toolToMldev$2(fromObject) {
|
|
|
84078
84509
|
}
|
|
84079
84510
|
setValueByPath(toObject, ["mcpServers"], transformedList);
|
|
84080
84511
|
}
|
|
84512
|
+
if (getValueByPath(fromObject, ["exaAiSearch"]) !== undefined) {
|
|
84513
|
+
throw new Error("exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.");
|
|
84514
|
+
}
|
|
84081
84515
|
return toObject;
|
|
84082
84516
|
}
|
|
84083
84517
|
function toolToVertex$1(fromObject) {
|
|
@@ -84151,6 +84585,10 @@ function toolToVertex$1(fromObject) {
|
|
|
84151
84585
|
}
|
|
84152
84586
|
setValueByPath(toObject, ["mcpServers"], transformedList);
|
|
84153
84587
|
}
|
|
84588
|
+
const fromExaAiSearch = getValueByPath(fromObject, ["exaAiSearch"]);
|
|
84589
|
+
if (fromExaAiSearch != null) {
|
|
84590
|
+
setValueByPath(toObject, ["exaAiSearch"], fromExaAiSearch);
|
|
84591
|
+
}
|
|
84154
84592
|
return toObject;
|
|
84155
84593
|
}
|
|
84156
84594
|
function usageMetadataFromVertex(fromObject) {
|
|
@@ -84257,6 +84695,22 @@ function voiceActivityFromVertex(fromObject) {
|
|
|
84257
84695
|
}
|
|
84258
84696
|
return toObject;
|
|
84259
84697
|
}
|
|
84698
|
+
function voiceConfigToVertex$1(fromObject) {
|
|
84699
|
+
const toObject = {};
|
|
84700
|
+
const fromReplicatedVoiceConfig = getValueByPath(fromObject, [
|
|
84701
|
+
"replicatedVoiceConfig"
|
|
84702
|
+
]);
|
|
84703
|
+
if (fromReplicatedVoiceConfig != null) {
|
|
84704
|
+
setValueByPath(toObject, ["replicatedVoiceConfig"], replicatedVoiceConfigToVertex$1(fromReplicatedVoiceConfig));
|
|
84705
|
+
}
|
|
84706
|
+
const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
|
|
84707
|
+
"prebuiltVoiceConfig"
|
|
84708
|
+
]);
|
|
84709
|
+
if (fromPrebuiltVoiceConfig != null) {
|
|
84710
|
+
setValueByPath(toObject, ["prebuiltVoiceConfig"], fromPrebuiltVoiceConfig);
|
|
84711
|
+
}
|
|
84712
|
+
return toObject;
|
|
84713
|
+
}
|
|
84260
84714
|
function authConfigToMldev$1(fromObject, _rootObject) {
|
|
84261
84715
|
const toObject = {};
|
|
84262
84716
|
const fromApiKey = getValueByPath(fromObject, ["apiKey"]);
|
|
@@ -85496,7 +85950,7 @@ function generateContentConfigToVertex(apiClient, fromObject, parentObject, root
|
|
|
85496
85950
|
}
|
|
85497
85951
|
const fromSpeechConfig = getValueByPath(fromObject, ["speechConfig"]);
|
|
85498
85952
|
if (fromSpeechConfig != null) {
|
|
85499
|
-
setValueByPath(toObject, ["speechConfig"], tSpeechConfig(fromSpeechConfig));
|
|
85953
|
+
setValueByPath(toObject, ["speechConfig"], speechConfigToVertex(tSpeechConfig(fromSpeechConfig)));
|
|
85500
85954
|
}
|
|
85501
85955
|
const fromAudioTimestamp = getValueByPath(fromObject, [
|
|
85502
85956
|
"audioTimestamp"
|
|
@@ -86382,7 +86836,7 @@ function generatedVideoFromVertex(fromObject, rootObject) {
|
|
|
86382
86836
|
}
|
|
86383
86837
|
return toObject;
|
|
86384
86838
|
}
|
|
86385
|
-
function generationConfigToVertex(fromObject,
|
|
86839
|
+
function generationConfigToVertex(fromObject, rootObject) {
|
|
86386
86840
|
const toObject = {};
|
|
86387
86841
|
const fromModelSelectionConfig = getValueByPath(fromObject, [
|
|
86388
86842
|
"modelSelectionConfig"
|
|
@@ -86478,7 +86932,7 @@ function generationConfigToVertex(fromObject, _rootObject) {
|
|
|
86478
86932
|
}
|
|
86479
86933
|
const fromSpeechConfig = getValueByPath(fromObject, ["speechConfig"]);
|
|
86480
86934
|
if (fromSpeechConfig != null) {
|
|
86481
|
-
setValueByPath(toObject, ["speechConfig"], fromSpeechConfig);
|
|
86935
|
+
setValueByPath(toObject, ["speechConfig"], speechConfigToVertex(fromSpeechConfig));
|
|
86482
86936
|
}
|
|
86483
86937
|
const fromStopSequences = getValueByPath(fromObject, [
|
|
86484
86938
|
"stopSequences"
|
|
@@ -86507,6 +86961,21 @@ function generationConfigToVertex(fromObject, _rootObject) {
|
|
|
86507
86961
|
if (getValueByPath(fromObject, ["enableEnhancedCivicAnswers"]) !== undefined) {
|
|
86508
86962
|
throw new Error("enableEnhancedCivicAnswers parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.");
|
|
86509
86963
|
}
|
|
86964
|
+
const fromResponseFormat = getValueByPath(fromObject, [
|
|
86965
|
+
"responseFormat"
|
|
86966
|
+
]);
|
|
86967
|
+
if (fromResponseFormat != null) {
|
|
86968
|
+
let transformedList = fromResponseFormat;
|
|
86969
|
+
if (Array.isArray(transformedList)) {
|
|
86970
|
+
transformedList = transformedList.map((item) => {
|
|
86971
|
+
return item;
|
|
86972
|
+
});
|
|
86973
|
+
}
|
|
86974
|
+
setValueByPath(toObject, ["responseFormat"], transformedList);
|
|
86975
|
+
}
|
|
86976
|
+
if (getValueByPath(fromObject, ["translationConfig"]) !== undefined) {
|
|
86977
|
+
throw new Error("translationConfig parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.");
|
|
86978
|
+
}
|
|
86510
86979
|
return toObject;
|
|
86511
86980
|
}
|
|
86512
86981
|
function getModelParametersToMldev(apiClient, fromObject, _rootObject) {
|
|
@@ -86943,6 +87412,22 @@ function modelFromVertex(fromObject, rootObject) {
|
|
|
86943
87412
|
}
|
|
86944
87413
|
return toObject;
|
|
86945
87414
|
}
|
|
87415
|
+
function multiSpeakerVoiceConfigToVertex(fromObject, rootObject) {
|
|
87416
|
+
const toObject = {};
|
|
87417
|
+
const fromSpeakerVoiceConfigs = getValueByPath(fromObject, [
|
|
87418
|
+
"speakerVoiceConfigs"
|
|
87419
|
+
]);
|
|
87420
|
+
if (fromSpeakerVoiceConfigs != null) {
|
|
87421
|
+
let transformedList = fromSpeakerVoiceConfigs;
|
|
87422
|
+
if (Array.isArray(transformedList)) {
|
|
87423
|
+
transformedList = transformedList.map((item) => {
|
|
87424
|
+
return speakerVoiceConfigToVertex(item);
|
|
87425
|
+
});
|
|
87426
|
+
}
|
|
87427
|
+
setValueByPath(toObject, ["speakerVoiceConfigs"], transformedList);
|
|
87428
|
+
}
|
|
87429
|
+
return toObject;
|
|
87430
|
+
}
|
|
86946
87431
|
function partToMldev$1(fromObject, rootObject) {
|
|
86947
87432
|
const toObject = {};
|
|
86948
87433
|
const fromMediaResolution = getValueByPath(fromObject, [
|
|
@@ -87252,6 +87737,26 @@ function referenceImageAPIInternalToVertex(fromObject, rootObject) {
|
|
|
87252
87737
|
}
|
|
87253
87738
|
return toObject;
|
|
87254
87739
|
}
|
|
87740
|
+
function replicatedVoiceConfigToVertex(fromObject, _rootObject) {
|
|
87741
|
+
const toObject = {};
|
|
87742
|
+
const fromMimeType = getValueByPath(fromObject, ["mimeType"]);
|
|
87743
|
+
if (fromMimeType != null) {
|
|
87744
|
+
setValueByPath(toObject, ["mimeType"], fromMimeType);
|
|
87745
|
+
}
|
|
87746
|
+
const fromVoiceSampleAudio = getValueByPath(fromObject, [
|
|
87747
|
+
"voiceSampleAudio"
|
|
87748
|
+
]);
|
|
87749
|
+
if (fromVoiceSampleAudio != null) {
|
|
87750
|
+
setValueByPath(toObject, ["voiceSampleAudio"], fromVoiceSampleAudio);
|
|
87751
|
+
}
|
|
87752
|
+
if (getValueByPath(fromObject, ["consentAudio"]) !== undefined) {
|
|
87753
|
+
throw new Error("consentAudio parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.");
|
|
87754
|
+
}
|
|
87755
|
+
if (getValueByPath(fromObject, ["voiceConsentSignature"]) !== undefined) {
|
|
87756
|
+
throw new Error("voiceConsentSignature parameter is only supported in Gemini Developer API mode, not in Gemini Enterprise Agent Platform mode.");
|
|
87757
|
+
}
|
|
87758
|
+
return toObject;
|
|
87759
|
+
}
|
|
87255
87760
|
function safetyAttributesFromMldev(fromObject, _rootObject) {
|
|
87256
87761
|
const toObject = {};
|
|
87257
87762
|
const fromCategories = getValueByPath(fromObject, [
|
|
@@ -87401,6 +87906,36 @@ function segmentImageSourceToVertex(fromObject, parentObject, rootObject) {
|
|
|
87401
87906
|
}
|
|
87402
87907
|
return toObject;
|
|
87403
87908
|
}
|
|
87909
|
+
function speakerVoiceConfigToVertex(fromObject, rootObject) {
|
|
87910
|
+
const toObject = {};
|
|
87911
|
+
const fromSpeaker = getValueByPath(fromObject, ["speaker"]);
|
|
87912
|
+
if (fromSpeaker != null) {
|
|
87913
|
+
setValueByPath(toObject, ["speaker"], fromSpeaker);
|
|
87914
|
+
}
|
|
87915
|
+
const fromVoiceConfig = getValueByPath(fromObject, ["voiceConfig"]);
|
|
87916
|
+
if (fromVoiceConfig != null) {
|
|
87917
|
+
setValueByPath(toObject, ["voiceConfig"], voiceConfigToVertex(fromVoiceConfig));
|
|
87918
|
+
}
|
|
87919
|
+
return toObject;
|
|
87920
|
+
}
|
|
87921
|
+
function speechConfigToVertex(fromObject, rootObject) {
|
|
87922
|
+
const toObject = {};
|
|
87923
|
+
const fromVoiceConfig = getValueByPath(fromObject, ["voiceConfig"]);
|
|
87924
|
+
if (fromVoiceConfig != null) {
|
|
87925
|
+
setValueByPath(toObject, ["voiceConfig"], voiceConfigToVertex(fromVoiceConfig));
|
|
87926
|
+
}
|
|
87927
|
+
const fromLanguageCode = getValueByPath(fromObject, ["languageCode"]);
|
|
87928
|
+
if (fromLanguageCode != null) {
|
|
87929
|
+
setValueByPath(toObject, ["languageCode"], fromLanguageCode);
|
|
87930
|
+
}
|
|
87931
|
+
const fromMultiSpeakerVoiceConfig = getValueByPath(fromObject, [
|
|
87932
|
+
"multiSpeakerVoiceConfig"
|
|
87933
|
+
]);
|
|
87934
|
+
if (fromMultiSpeakerVoiceConfig != null) {
|
|
87935
|
+
setValueByPath(toObject, ["multiSpeakerVoiceConfig"], multiSpeakerVoiceConfigToVertex(fromMultiSpeakerVoiceConfig));
|
|
87936
|
+
}
|
|
87937
|
+
return toObject;
|
|
87938
|
+
}
|
|
87404
87939
|
function toolConfigToMldev(fromObject, rootObject) {
|
|
87405
87940
|
const toObject = {};
|
|
87406
87941
|
const fromRetrievalConfig = getValueByPath(fromObject, [
|
|
@@ -87505,6 +88040,9 @@ function toolToMldev$1(fromObject, rootObject) {
|
|
|
87505
88040
|
}
|
|
87506
88041
|
setValueByPath(toObject, ["mcpServers"], transformedList);
|
|
87507
88042
|
}
|
|
88043
|
+
if (getValueByPath(fromObject, ["exaAiSearch"]) !== undefined) {
|
|
88044
|
+
throw new Error("exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.");
|
|
88045
|
+
}
|
|
87508
88046
|
return toObject;
|
|
87509
88047
|
}
|
|
87510
88048
|
function toolToVertex(fromObject, rootObject) {
|
|
@@ -87578,6 +88116,10 @@ function toolToVertex(fromObject, rootObject) {
|
|
|
87578
88116
|
}
|
|
87579
88117
|
setValueByPath(toObject, ["mcpServers"], transformedList);
|
|
87580
88118
|
}
|
|
88119
|
+
const fromExaAiSearch = getValueByPath(fromObject, ["exaAiSearch"]);
|
|
88120
|
+
if (fromExaAiSearch != null) {
|
|
88121
|
+
setValueByPath(toObject, ["exaAiSearch"], fromExaAiSearch);
|
|
88122
|
+
}
|
|
87581
88123
|
return toObject;
|
|
87582
88124
|
}
|
|
87583
88125
|
function tunedModelInfoFromMldev(fromObject, _rootObject) {
|
|
@@ -87889,6 +88431,22 @@ function videoToVertex(fromObject, _rootObject) {
|
|
|
87889
88431
|
}
|
|
87890
88432
|
return toObject;
|
|
87891
88433
|
}
|
|
88434
|
+
function voiceConfigToVertex(fromObject, rootObject) {
|
|
88435
|
+
const toObject = {};
|
|
88436
|
+
const fromReplicatedVoiceConfig = getValueByPath(fromObject, [
|
|
88437
|
+
"replicatedVoiceConfig"
|
|
88438
|
+
]);
|
|
88439
|
+
if (fromReplicatedVoiceConfig != null) {
|
|
88440
|
+
setValueByPath(toObject, ["replicatedVoiceConfig"], replicatedVoiceConfigToVertex(fromReplicatedVoiceConfig));
|
|
88441
|
+
}
|
|
88442
|
+
const fromPrebuiltVoiceConfig = getValueByPath(fromObject, [
|
|
88443
|
+
"prebuiltVoiceConfig"
|
|
88444
|
+
]);
|
|
88445
|
+
if (fromPrebuiltVoiceConfig != null) {
|
|
88446
|
+
setValueByPath(toObject, ["prebuiltVoiceConfig"], fromPrebuiltVoiceConfig);
|
|
88447
|
+
}
|
|
88448
|
+
return toObject;
|
|
88449
|
+
}
|
|
87892
88450
|
function createFileSearchStoreConfigToMldev(apiClient, fromObject, parentObject) {
|
|
87893
88451
|
const toObject = {};
|
|
87894
88452
|
const fromDisplayName = getValueByPath(fromObject, ["displayName"]);
|
|
@@ -88127,7 +88685,7 @@ var CONTENT_TYPE_HEADER = "Content-Type";
|
|
|
88127
88685
|
var SERVER_TIMEOUT_HEADER = "X-Server-Timeout";
|
|
88128
88686
|
var USER_AGENT_HEADER = "User-Agent";
|
|
88129
88687
|
var GOOGLE_API_CLIENT_HEADER = "x-goog-api-client";
|
|
88130
|
-
var SDK_VERSION = "2.
|
|
88688
|
+
var SDK_VERSION = "2.11.0";
|
|
88131
88689
|
var LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
88132
88690
|
var VERTEX_AI_API_DEFAULT_VERSION = "v1beta1";
|
|
88133
88691
|
var GOOGLE_AI_API_DEFAULT_VERSION = "v1beta";
|
|
@@ -88987,10 +89545,26 @@ class Live {
|
|
|
88987
89545
|
onopenResolve({});
|
|
88988
89546
|
};
|
|
88989
89547
|
const apiClient = this.apiClient;
|
|
89548
|
+
let sessionResolved = false;
|
|
89549
|
+
const messageQueue = [];
|
|
89550
|
+
let setupCompleteResolve = () => {};
|
|
89551
|
+
const setupCompletePromise = new Promise((resolve4) => {
|
|
89552
|
+
setupCompleteResolve = resolve4;
|
|
89553
|
+
});
|
|
88990
89554
|
const websocketCallbacks = {
|
|
88991
89555
|
onopen: onopenAwaitedCallback,
|
|
88992
89556
|
onmessage: (event) => {
|
|
88993
|
-
handleWebSocketMessage(apiClient,
|
|
89557
|
+
handleWebSocketMessage(apiClient, (msg) => {
|
|
89558
|
+
if (msg.setupComplete && !session.setupComplete) {
|
|
89559
|
+
session.setupComplete = msg.setupComplete;
|
|
89560
|
+
setupCompleteResolve({});
|
|
89561
|
+
}
|
|
89562
|
+
if (sessionResolved) {
|
|
89563
|
+
callbacks.onmessage(msg);
|
|
89564
|
+
} else {
|
|
89565
|
+
messageQueue.push(msg);
|
|
89566
|
+
}
|
|
89567
|
+
}, event);
|
|
88994
89568
|
},
|
|
88995
89569
|
onerror: (_a4 = callbacks === null || callbacks === undefined ? undefined : callbacks.onerror) !== null && _a4 !== undefined ? _a4 : function(e2) {},
|
|
88996
89570
|
onclose: (_b = callbacks === null || callbacks === undefined ? undefined : callbacks.onclose) !== null && _b !== undefined ? _b : function(e2) {}
|
|
@@ -89041,8 +89615,14 @@ class Live {
|
|
|
89041
89615
|
clientMessage = liveConnectParametersToMldev(this.apiClient, liveConnectParameters);
|
|
89042
89616
|
}
|
|
89043
89617
|
delete clientMessage["config"];
|
|
89618
|
+
const session = new Session(conn, this.apiClient);
|
|
89044
89619
|
conn.send(JSON.stringify(clientMessage));
|
|
89045
|
-
|
|
89620
|
+
await setupCompletePromise;
|
|
89621
|
+
sessionResolved = true;
|
|
89622
|
+
for (const msg of messageQueue) {
|
|
89623
|
+
callbacks.onmessage(msg);
|
|
89624
|
+
}
|
|
89625
|
+
return session;
|
|
89046
89626
|
}
|
|
89047
89627
|
isCallableTool(tool) {
|
|
89048
89628
|
return "callTool" in tool && typeof tool.callTool === "function";
|
|
@@ -90962,6 +91542,9 @@ function toolToMldev(fromObject) {
|
|
|
90962
91542
|
}
|
|
90963
91543
|
setValueByPath(toObject, ["mcpServers"], transformedList);
|
|
90964
91544
|
}
|
|
91545
|
+
if (getValueByPath(fromObject, ["exaAiSearch"]) !== undefined) {
|
|
91546
|
+
throw new Error("exaAiSearch parameter is only supported in Gemini Enterprise Agent Platform mode, not in Gemini Developer API mode.");
|
|
91547
|
+
}
|
|
90965
91548
|
return toObject;
|
|
90966
91549
|
}
|
|
90967
91550
|
function getFieldMasks(setup) {
|
|
@@ -91493,21 +92076,17 @@ function env3() {
|
|
|
91493
92076
|
return envMemo;
|
|
91494
92077
|
}
|
|
91495
92078
|
function fillGlobals(options) {
|
|
91496
|
-
var _a4, _b
|
|
92079
|
+
var _a4, _b;
|
|
91497
92080
|
const clone2 = Object.assign({}, options);
|
|
91498
92081
|
const envVars = env3();
|
|
91499
92082
|
if (typeof envVars.GOOGLE_GENAI_API_VERSION !== "undefined") {
|
|
91500
92083
|
(_a4 = clone2.api_version) !== null && _a4 !== undefined || (clone2.api_version = envVars.GOOGLE_GENAI_API_VERSION);
|
|
91501
92084
|
}
|
|
91502
|
-
if (typeof envVars.GOOGLE_GENAI_API_REVISION !== "undefined") {
|
|
91503
|
-
(_b = clone2.api_revision) !== null && _b !== undefined || (clone2.api_revision = envVars.GOOGLE_GENAI_API_REVISION);
|
|
91504
|
-
}
|
|
91505
92085
|
if (typeof envVars.GOOGLE_GENAI_USER_PROJECT !== "undefined") {
|
|
91506
|
-
(
|
|
92086
|
+
(_b = clone2.user_project) !== null && _b !== undefined || (clone2.user_project = envVars.GOOGLE_GENAI_USER_PROJECT);
|
|
91507
92087
|
}
|
|
91508
92088
|
return clone2;
|
|
91509
92089
|
}
|
|
91510
|
-
var GOOGLE_GENAI_API_REVISION = "2026-05-20";
|
|
91511
92090
|
|
|
91512
92091
|
class GoogleGenAISecurityProvider {
|
|
91513
92092
|
constructor(options) {
|
|
@@ -91527,7 +92106,6 @@ class GoogleGenAIAuthHook {
|
|
|
91527
92106
|
}
|
|
91528
92107
|
async beforeRequest(hookCtx, request) {
|
|
91529
92108
|
applyDefaultHeaders(request.headers, getStaticDefaultHeaders(hookCtx.security_source));
|
|
91530
|
-
applyApiRevision(hookCtx, request.headers);
|
|
91531
92109
|
applyUserProject(hookCtx, request.headers);
|
|
91532
92110
|
if (hasAuthHeaders(request.headers)) {
|
|
91533
92111
|
return request;
|
|
@@ -91603,12 +92181,6 @@ function applyDefaultHeaders(target, source) {
|
|
|
91603
92181
|
}
|
|
91604
92182
|
}
|
|
91605
92183
|
}
|
|
91606
|
-
function applyApiRevision(hookCtx, headers) {
|
|
91607
|
-
var _a4;
|
|
91608
|
-
if (headers.get("api-revision") === null) {
|
|
91609
|
-
headers.set("Api-Revision", (_a4 = hookCtx.options.api_revision) !== null && _a4 !== undefined ? _a4 : GOOGLE_GENAI_API_REVISION);
|
|
91610
|
-
}
|
|
91611
|
-
}
|
|
91612
92184
|
function applyUserProject(hookCtx, headers) {
|
|
91613
92185
|
if (hookCtx.options.user_project !== undefined && headers.get("x-goog-user-project") === null) {
|
|
91614
92186
|
headers.set("x-goog-user-project", hookCtx.options.user_project);
|
|
@@ -92014,7 +92586,7 @@ function serverURLFromOptions(options) {
|
|
|
92014
92586
|
return new URL(u);
|
|
92015
92587
|
}
|
|
92016
92588
|
var SDK_METADATA = {
|
|
92017
|
-
userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.
|
|
92589
|
+
userAgent: "speakeasy-sdk/typescript 2.4.1-preview.4 2.913.3 v1beta @google/genai"
|
|
92018
92590
|
};
|
|
92019
92591
|
function combineSignals(...signals) {
|
|
92020
92592
|
const filtered = [];
|
|
@@ -96020,6 +96592,18 @@ function generationConfigFromVertex(fromObject, _rootObject) {
|
|
|
96020
96592
|
if (fromTopP != null) {
|
|
96021
96593
|
setValueByPath(toObject, ["topP"], fromTopP);
|
|
96022
96594
|
}
|
|
96595
|
+
const fromResponseFormat = getValueByPath(fromObject, [
|
|
96596
|
+
"responseFormat"
|
|
96597
|
+
]);
|
|
96598
|
+
if (fromResponseFormat != null) {
|
|
96599
|
+
let transformedList = fromResponseFormat;
|
|
96600
|
+
if (Array.isArray(transformedList)) {
|
|
96601
|
+
transformedList = transformedList.map((item) => {
|
|
96602
|
+
return item;
|
|
96603
|
+
});
|
|
96604
|
+
}
|
|
96605
|
+
setValueByPath(toObject, ["responseFormat"], transformedList);
|
|
96606
|
+
}
|
|
96023
96607
|
return toObject;
|
|
96024
96608
|
}
|
|
96025
96609
|
function getTuningJobParametersToMldev(fromObject, _rootObject) {
|
|
@@ -98311,6 +98895,9 @@ var SubagentTool = {
|
|
|
98311
98895
|
}
|
|
98312
98896
|
}
|
|
98313
98897
|
};
|
|
98898
|
+
// ../../packages/tui/src/index.tsx
|
|
98899
|
+
var import_react47 = __toESM(require_react(), 1);
|
|
98900
|
+
|
|
98314
98901
|
// ../../node_modules/.bun/ink@7.1.0+90ffd46201e3176f/node_modules/ink/build/render.js
|
|
98315
98902
|
import { Stream as Stream6 } from "node:stream";
|
|
98316
98903
|
import process13 from "node:process";
|
|
@@ -108097,10 +108684,7 @@ function Header({
|
|
|
108097
108684
|
color: "white",
|
|
108098
108685
|
children: [
|
|
108099
108686
|
"✱ December CLI ",
|
|
108100
|
-
|
|
108101
|
-
color: "white",
|
|
108102
|
-
children: cliVersion.replace(/^v/, "")
|
|
108103
|
-
}, undefined, false, undefined, this)
|
|
108687
|
+
cliVersion.replace(/^v/, "")
|
|
108104
108688
|
]
|
|
108105
108689
|
}, undefined, true, undefined, this),
|
|
108106
108690
|
userEmail && /* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Text, {
|
|
@@ -108123,6 +108707,24 @@ function Header({
|
|
|
108123
108707
|
]
|
|
108124
108708
|
}, undefined, true, undefined, this)
|
|
108125
108709
|
]
|
|
108710
|
+
}, undefined, true, undefined, this),
|
|
108711
|
+
/* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Box_default, {
|
|
108712
|
+
flexDirection: "column",
|
|
108713
|
+
marginTop: 1,
|
|
108714
|
+
children: [
|
|
108715
|
+
/* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Text, {
|
|
108716
|
+
color: "#89B4F8",
|
|
108717
|
+
children: "Tips for getting started"
|
|
108718
|
+
}, undefined, false, undefined, this),
|
|
108719
|
+
/* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Text, {
|
|
108720
|
+
color: "gray",
|
|
108721
|
+
children: "Run /init to scaffold .december workspace for custom rules and skills"
|
|
108722
|
+
}, undefined, false, undefined, this),
|
|
108723
|
+
/* @__PURE__ */ jsx_dev_runtime6.jsxDEV(Text, {
|
|
108724
|
+
color: "gray",
|
|
108725
|
+
children: "Use /handoff to continue this session in December (trydecember.com)"
|
|
108726
|
+
}, undefined, false, undefined, this)
|
|
108727
|
+
]
|
|
108126
108728
|
}, undefined, true, undefined, this)
|
|
108127
108729
|
]
|
|
108128
108730
|
}, undefined, true, undefined, this);
|
|
@@ -110071,6 +110673,8 @@ var import_react45 = __toESM(require_react(), 1);
|
|
|
110071
110673
|
|
|
110072
110674
|
// ../../packages/tui/src/components/command-menu/commands.tsx
|
|
110073
110675
|
import { exec as exec3 } from "child_process";
|
|
110676
|
+
import fs16 from "node:fs";
|
|
110677
|
+
import path16 from "node:path";
|
|
110074
110678
|
|
|
110075
110679
|
// ../../node_modules/.bun/clipboardy@5.3.1/node_modules/clipboardy/index.js
|
|
110076
110680
|
import process28 from "node:process";
|
|
@@ -117727,6 +118331,56 @@ var COMMANDS = [
|
|
|
117727
118331
|
value: "/hooks",
|
|
117728
118332
|
action: (ctx) => {}
|
|
117729
118333
|
},
|
|
118334
|
+
{
|
|
118335
|
+
name: "init",
|
|
118336
|
+
description: "Create a .december folder with initial agent rules",
|
|
118337
|
+
value: "/init",
|
|
118338
|
+
action: (ctx) => {
|
|
118339
|
+
try {
|
|
118340
|
+
const rootDir = process.cwd();
|
|
118341
|
+
const decDir = path16.join(rootDir, ".december");
|
|
118342
|
+
if (fs16.existsSync(decDir)) {
|
|
118343
|
+
ctx.toast.show({ message: "December workspace is already initialized." });
|
|
118344
|
+
return;
|
|
118345
|
+
}
|
|
118346
|
+
fs16.mkdirSync(decDir);
|
|
118347
|
+
const mdFile = path16.join(decDir, "DECEMBER.md");
|
|
118348
|
+
const rulesDir = path16.join(decDir, "rules");
|
|
118349
|
+
const rulesReadme = path16.join(rulesDir, "README.md");
|
|
118350
|
+
const skillsDir = path16.join(decDir, "skills");
|
|
118351
|
+
const skillsReadme = path16.join(skillsDir, "README.md");
|
|
118352
|
+
const ignoreFile = path16.join(decDir, ".decemberignore");
|
|
118353
|
+
fs16.writeFileSync(mdFile, `# December Configuration
|
|
118354
|
+
`);
|
|
118355
|
+
fs16.mkdirSync(rulesDir);
|
|
118356
|
+
fs16.writeFileSync(rulesReadme, "# Rules\n\nDrop Markdown files here (e.g., `database.md` or `styling.md`) with specific instructions. December will automatically read these modular rules when working on related files.\n");
|
|
118357
|
+
fs16.mkdirSync(skillsDir);
|
|
118358
|
+
fs16.writeFileSync(skillsReadme, `# Skills
|
|
118359
|
+
|
|
118360
|
+
Add executable scripts or custom tool definitions here. December will be able to run these skills as custom tools to perform specific actions in your workspace.
|
|
118361
|
+
`);
|
|
118362
|
+
if (!fs16.existsSync(ignoreFile)) {
|
|
118363
|
+
fs16.writeFileSync(ignoreFile, `# Ignore these files and directories when searching or reading
|
|
118364
|
+
node_modules
|
|
118365
|
+
.git
|
|
118366
|
+
dist
|
|
118367
|
+
build
|
|
118368
|
+
.env
|
|
118369
|
+
.next
|
|
118370
|
+
`);
|
|
118371
|
+
}
|
|
118372
|
+
ctx.toast.show({
|
|
118373
|
+
variant: "success",
|
|
118374
|
+
message: "Initialized December workspace successfully!"
|
|
118375
|
+
});
|
|
118376
|
+
} catch (err) {
|
|
118377
|
+
ctx.toast.show({
|
|
118378
|
+
variant: "error",
|
|
118379
|
+
message: "Failed to initialize December workspace"
|
|
118380
|
+
});
|
|
118381
|
+
}
|
|
118382
|
+
}
|
|
118383
|
+
},
|
|
117730
118384
|
{
|
|
117731
118385
|
name: "login",
|
|
117732
118386
|
description: "Configure API keys or Connect via December Cloud",
|
|
@@ -118153,6 +118807,7 @@ function InputBar({
|
|
|
118153
118807
|
width: "100%",
|
|
118154
118808
|
children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(Text, {
|
|
118155
118809
|
color: "#555555",
|
|
118810
|
+
wrap: "truncate",
|
|
118156
118811
|
children: sep4
|
|
118157
118812
|
}, undefined, false, undefined, this)
|
|
118158
118813
|
}, undefined, false, undefined, this),
|
|
@@ -118177,11 +118832,12 @@ function InputBar({
|
|
|
118177
118832
|
width: "100%",
|
|
118178
118833
|
children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(Text, {
|
|
118179
118834
|
color: "#555555",
|
|
118835
|
+
wrap: "truncate",
|
|
118180
118836
|
children: sep4
|
|
118181
118837
|
}, undefined, false, undefined, this)
|
|
118182
118838
|
}, undefined, false, undefined, this),
|
|
118183
118839
|
!showCommandMenu && !authUI && /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(Box_default, {
|
|
118184
|
-
width:
|
|
118840
|
+
width: "100%",
|
|
118185
118841
|
justifyContent: "space-between",
|
|
118186
118842
|
children: [
|
|
118187
118843
|
/* @__PURE__ */ jsx_dev_runtime18.jsxDEV(Box_default, {
|
|
@@ -118211,7 +118867,7 @@ function InputBar({
|
|
|
118211
118867
|
gap: 0,
|
|
118212
118868
|
children: /* @__PURE__ */ jsx_dev_runtime18.jsxDEV(Text, {
|
|
118213
118869
|
color: "#AAAAAA",
|
|
118214
|
-
children: "
|
|
118870
|
+
children: "? for shortcuts"
|
|
118215
118871
|
}, undefined, false, undefined, this)
|
|
118216
118872
|
}, undefined, false, undefined, this)
|
|
118217
118873
|
]
|
|
@@ -121644,6 +122300,10 @@ function App2({
|
|
|
121644
122300
|
onLogin,
|
|
121645
122301
|
onLoginHeadless
|
|
121646
122302
|
}) {
|
|
122303
|
+
import_react47.useEffect(() => {
|
|
122304
|
+
process.title = "december";
|
|
122305
|
+
process.stdout.write("\x1B]0;december\x07");
|
|
122306
|
+
}, []);
|
|
121647
122307
|
return /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(RootLayout, {
|
|
121648
122308
|
children: /* @__PURE__ */ jsx_dev_runtime20.jsxDEV(Chat3, {
|
|
121649
122309
|
agent: agent2,
|
|
@@ -121658,14 +122318,14 @@ function App2({
|
|
|
121658
122318
|
}
|
|
121659
122319
|
|
|
121660
122320
|
// src/index.ts
|
|
121661
|
-
var
|
|
122321
|
+
var import_react48 = __toESM(require_react(), 1);
|
|
121662
122322
|
// package.json
|
|
121663
122323
|
var package_default = {
|
|
121664
122324
|
name: "@trydecember/cli",
|
|
121665
122325
|
module: "src/index.ts",
|
|
121666
122326
|
type: "module",
|
|
121667
122327
|
private: false,
|
|
121668
|
-
version: "0.2.
|
|
122328
|
+
version: "0.2.6",
|
|
121669
122329
|
description: "Turn ideas into reality.",
|
|
121670
122330
|
author: "Chaitanya Sonawane",
|
|
121671
122331
|
license: "Apache-2.0",
|
|
@@ -121706,15 +122366,15 @@ import http3 from "node:http";
|
|
|
121706
122366
|
|
|
121707
122367
|
// ../../node_modules/.bun/open@11.0.0/node_modules/open/index.js
|
|
121708
122368
|
import process34 from "node:process";
|
|
121709
|
-
import
|
|
122369
|
+
import path17 from "node:path";
|
|
121710
122370
|
import { fileURLToPath as fileURLToPath6 } from "node:url";
|
|
121711
122371
|
import childProcess5 from "node:child_process";
|
|
121712
|
-
import
|
|
122372
|
+
import fs18, { constants as fsConstants2 } from "node:fs/promises";
|
|
121713
122373
|
|
|
121714
122374
|
// ../../node_modules/.bun/wsl-utils@0.3.1/node_modules/wsl-utils/index.js
|
|
121715
122375
|
import { promisify as promisify9 } from "node:util";
|
|
121716
122376
|
import childProcess4 from "node:child_process";
|
|
121717
|
-
import
|
|
122377
|
+
import fs17, { constants as fsConstants } from "node:fs/promises";
|
|
121718
122378
|
|
|
121719
122379
|
// ../../node_modules/.bun/powershell-utils@0.1.0/node_modules/powershell-utils/index.js
|
|
121720
122380
|
import process29 from "node:process";
|
|
@@ -121774,13 +122434,13 @@ var wslDrivesMountPoint = (() => {
|
|
|
121774
122434
|
const configFilePath = "/etc/wsl.conf";
|
|
121775
122435
|
let isConfigFileExists = false;
|
|
121776
122436
|
try {
|
|
121777
|
-
await
|
|
122437
|
+
await fs17.access(configFilePath, fsConstants.F_OK);
|
|
121778
122438
|
isConfigFileExists = true;
|
|
121779
122439
|
} catch {}
|
|
121780
122440
|
if (!isConfigFileExists) {
|
|
121781
122441
|
return defaultMountPoint;
|
|
121782
122442
|
}
|
|
121783
|
-
const configContent = await
|
|
122443
|
+
const configContent = await fs17.readFile(configFilePath, { encoding: "utf8" });
|
|
121784
122444
|
const parsedMountPoint = parseMountPointFromConfig(configContent);
|
|
121785
122445
|
if (parsedMountPoint === undefined) {
|
|
121786
122446
|
return defaultMountPoint;
|
|
@@ -121800,7 +122460,7 @@ var canAccessPowerShell = async () => {
|
|
|
121800
122460
|
canAccessPowerShellPromise ??= (async () => {
|
|
121801
122461
|
try {
|
|
121802
122462
|
const psPath = await powerShellPath3();
|
|
121803
|
-
await
|
|
122463
|
+
await fs17.access(psPath, fsConstants.X_OK);
|
|
121804
122464
|
return true;
|
|
121805
122465
|
} catch {
|
|
121806
122466
|
return false;
|
|
@@ -121814,15 +122474,15 @@ var wslDefaultBrowser = async () => {
|
|
|
121814
122474
|
const { stdout } = await executePowerShell2(command, { powerShellPath: psPath });
|
|
121815
122475
|
return stdout.trim();
|
|
121816
122476
|
};
|
|
121817
|
-
var convertWslPathToWindows = async (
|
|
121818
|
-
if (/^[a-z]+:\/\//i.test(
|
|
121819
|
-
return
|
|
122477
|
+
var convertWslPathToWindows = async (path17) => {
|
|
122478
|
+
if (/^[a-z]+:\/\//i.test(path17)) {
|
|
122479
|
+
return path17;
|
|
121820
122480
|
}
|
|
121821
122481
|
try {
|
|
121822
|
-
const { stdout } = await execFile4("wslpath", ["-aw",
|
|
122482
|
+
const { stdout } = await execFile4("wslpath", ["-aw", path17], { encoding: "utf8" });
|
|
121823
122483
|
return stdout.trim();
|
|
121824
122484
|
} catch {
|
|
121825
|
-
return
|
|
122485
|
+
return path17;
|
|
121826
122486
|
}
|
|
121827
122487
|
};
|
|
121828
122488
|
|
|
@@ -121964,8 +122624,8 @@ var is_in_ssh_default = isInSsh;
|
|
|
121964
122624
|
|
|
121965
122625
|
// ../../node_modules/.bun/open@11.0.0/node_modules/open/index.js
|
|
121966
122626
|
var fallbackAttemptSymbol = Symbol("fallbackAttempt");
|
|
121967
|
-
var __dirname4 = import.meta.url ?
|
|
121968
|
-
var localXdgOpenPath =
|
|
122627
|
+
var __dirname4 = import.meta.url ? path17.dirname(fileURLToPath6(import.meta.url)) : "";
|
|
122628
|
+
var localXdgOpenPath = path17.join(__dirname4, "xdg-open");
|
|
121969
122629
|
var { platform: platform3, arch } = process34;
|
|
121970
122630
|
var tryEachApp = async (apps, opener) => {
|
|
121971
122631
|
if (apps.length === 0) {
|
|
@@ -122112,7 +122772,7 @@ var baseOpen = async (options) => {
|
|
|
122112
122772
|
const isBundled = !__dirname4 || __dirname4 === "/";
|
|
122113
122773
|
let exeLocalXdgOpen = false;
|
|
122114
122774
|
try {
|
|
122115
|
-
await
|
|
122775
|
+
await fs18.access(localXdgOpenPath, fsConstants2.X_OK);
|
|
122116
122776
|
exeLocalXdgOpen = true;
|
|
122117
122777
|
} catch {}
|
|
122118
122778
|
const useSystemXdgOpen = process34.versions.electron ?? (platform3 === "android" || isBundled || !exeLocalXdgOpen);
|
|
@@ -122415,8 +123075,8 @@ async function loginViaDeviceCode(baseUrl = "http://localhost:4000", onCodeGener
|
|
|
122415
123075
|
}
|
|
122416
123076
|
// src/local-operations.ts
|
|
122417
123077
|
import { spawn as spawn3, exec as exec4 } from "node:child_process";
|
|
122418
|
-
import
|
|
122419
|
-
import
|
|
123078
|
+
import fs19 from "node:fs/promises";
|
|
123079
|
+
import path18 from "node:path";
|
|
122420
123080
|
import { promisify as promisify14 } from "node:util";
|
|
122421
123081
|
var import_fast_glob = __toESM(require_out4(), 1);
|
|
122422
123082
|
var execAsync = promisify14(exec4);
|
|
@@ -122477,16 +123137,16 @@ var localOperations = {
|
|
|
122477
123137
|
},
|
|
122478
123138
|
fs: {
|
|
122479
123139
|
readFile: async (filepath) => {
|
|
122480
|
-
return
|
|
123140
|
+
return fs19.readFile(path18.resolve(process.cwd(), filepath), "utf8");
|
|
122481
123141
|
},
|
|
122482
123142
|
writeFile: async (filepath, content) => {
|
|
122483
|
-
const absolutePath =
|
|
122484
|
-
await
|
|
122485
|
-
await
|
|
123143
|
+
const absolutePath = path18.resolve(process.cwd(), filepath);
|
|
123144
|
+
await fs19.mkdir(path18.dirname(absolutePath), { recursive: true });
|
|
123145
|
+
await fs19.writeFile(absolutePath, content, "utf8");
|
|
122486
123146
|
},
|
|
122487
123147
|
readdir: async (dirPath) => {
|
|
122488
|
-
const absolutePath =
|
|
122489
|
-
const entries = await
|
|
123148
|
+
const absolutePath = path18.resolve(process.cwd(), dirPath);
|
|
123149
|
+
const entries = await fs19.readdir(absolutePath, { withFileTypes: true });
|
|
122490
123150
|
return entries.map((entry) => {
|
|
122491
123151
|
const type = entry.isDirectory() ? "DIR " : "FILE";
|
|
122492
123152
|
return `[${type}] ${entry.name}`;
|
|
@@ -122520,6 +123180,8 @@ var localOperations = {
|
|
|
122520
123180
|
// src/index.ts
|
|
122521
123181
|
var originalConsoleError = console.error;
|
|
122522
123182
|
async function main() {
|
|
123183
|
+
process.title = "december";
|
|
123184
|
+
process.stdout.write("\x1B]0;december\x07");
|
|
122523
123185
|
console.warn = () => {};
|
|
122524
123186
|
console.error = () => {};
|
|
122525
123187
|
console.log = () => {};
|
|
@@ -122597,7 +123259,7 @@ async function main() {
|
|
|
122597
123259
|
await agent2.loadContext();
|
|
122598
123260
|
const config2 = await loadConfig();
|
|
122599
123261
|
const userEmail = config2.decemberToken ? config2.email : undefined;
|
|
122600
|
-
render_default(
|
|
123262
|
+
render_default(import_react48.default.createElement(App2, {
|
|
122601
123263
|
agent: agent2,
|
|
122602
123264
|
isAuthenticated,
|
|
122603
123265
|
cliVersion: package_default.version,
|