stratagem-x7 0.3.57 → 0.3.60
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/cli.mjs +193 -247
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -35243,13 +35243,6 @@ var init_env = __esm(() => {
|
|
|
35243
35243
|
};
|
|
35244
35244
|
});
|
|
35245
35245
|
|
|
35246
|
-
// missing-module-stub:./providerProfile.js
|
|
35247
|
-
var noop6 = () => null, PROFILE_FILE_NAME, redactSecretValueForDisplay;
|
|
35248
|
-
var init_providerProfile = __esm(() => {
|
|
35249
|
-
PROFILE_FILE_NAME = noop6;
|
|
35250
|
-
redactSecretValueForDisplay = noop6;
|
|
35251
|
-
});
|
|
35252
|
-
|
|
35253
35246
|
// src/providers/providerSecrets.ts
|
|
35254
35247
|
function sanitizeApiKey(key) {
|
|
35255
35248
|
if (!key || key === "SUA_CHAVE")
|
|
@@ -35297,7 +35290,7 @@ function maskSecretForDisplay(value) {
|
|
|
35297
35290
|
}
|
|
35298
35291
|
return `${sanitized.slice(0, 2)}...${sanitized.slice(-4)}`;
|
|
35299
35292
|
}
|
|
35300
|
-
function
|
|
35293
|
+
function redactSecretValueForDisplay(value, ...sources) {
|
|
35301
35294
|
if (!value)
|
|
35302
35295
|
return;
|
|
35303
35296
|
const trimmed = value.trim();
|
|
@@ -35426,7 +35419,7 @@ async function getProviderValidationError(env3 = process.env, options) {
|
|
|
35426
35419
|
if (!credentials.apiKey) {
|
|
35427
35420
|
const oauthHint = isBareMode() ? "" : ", choose Codex OAuth in /provider";
|
|
35428
35421
|
const authHint = credentials.authPath ? `${oauthHint} or put auth.json at ${credentials.authPath}` : oauthHint;
|
|
35429
|
-
const safeModel =
|
|
35422
|
+
const safeModel = redactSecretValueForDisplay(request.requestedModel, secretSource) ?? "the requested model";
|
|
35430
35423
|
return `Codex auth is required for ${safeModel}. Set CODEX_API_KEY${authHint}.`;
|
|
35431
35424
|
}
|
|
35432
35425
|
if (!credentials.accountId) {
|
|
@@ -35468,7 +35461,7 @@ function resolveProfileFilePath(options) {
|
|
|
35468
35461
|
if (options?.filePath) {
|
|
35469
35462
|
return options.filePath;
|
|
35470
35463
|
}
|
|
35471
|
-
return resolve3(options?.cwd ?? process.cwd(),
|
|
35464
|
+
return resolve3(options?.cwd ?? process.cwd(), PROFILE_FILE_NAME);
|
|
35472
35465
|
}
|
|
35473
35466
|
function isProviderProfile(value) {
|
|
35474
35467
|
return value === "openai" || value === "ollama" || value === "codex" || value === "gemini" || value === "atomic-chat" || value === "nvidia-nim" || value === "minimax" || value === "mistral" || value === "opencode" || value === "opencode-go";
|
|
@@ -35883,8 +35876,8 @@ async function applySavedProfileToCurrentSession(options) {
|
|
|
35883
35876
|
applyProfileEnvToProcessEnv(processEnv, nextEnv);
|
|
35884
35877
|
return null;
|
|
35885
35878
|
}
|
|
35886
|
-
var
|
|
35887
|
-
var
|
|
35879
|
+
var PROFILE_FILE_NAME = ".stratagem-profile.json", DEFAULT_GEMINI_BASE_URL = "https://generativelanguage.googleapis.com/v1beta/openai", DEFAULT_GEMINI_MODEL = "gemini-2.0-flash", DEFAULT_MISTRAL_BASE_URL2 = "https://api.mistral.ai/v1", DEFAULT_MISTRAL_MODEL = "devstral-latest", DEFAULT_OPENCODE_BASE_URL = "https://opencode.ai/zen/v1", DEFAULT_OPENCODE_GO_BASE_URL = "https://opencode.ai/zen/go/v1", DEFAULT_OPENCODE_MODEL = "gpt-5.4", DEFAULT_OPENCODE_GO_MODEL = "glm-5", PROFILE_ENV_KEYS;
|
|
35880
|
+
var init_providerProfile = __esm(() => {
|
|
35888
35881
|
init_providerConfig();
|
|
35889
35882
|
init_codexOAuthShared();
|
|
35890
35883
|
init_providerRecommendation();
|
|
@@ -36166,7 +36159,7 @@ function _getFlagValue(key, defaultValue) {
|
|
|
36166
36159
|
return defaultValue;
|
|
36167
36160
|
}
|
|
36168
36161
|
function onGrowthBookRefresh() {
|
|
36169
|
-
return
|
|
36162
|
+
return noop6;
|
|
36170
36163
|
}
|
|
36171
36164
|
function hasGrowthBookEnvOverride() {
|
|
36172
36165
|
return false;
|
|
@@ -36216,7 +36209,7 @@ async function getDynamicConfig_BLOCKS_ON_INIT(configName, defaultValue) {
|
|
|
36216
36209
|
function getDynamicConfig_CACHED_MAY_BE_STALE(configName, defaultValue) {
|
|
36217
36210
|
return _getFlagValue(configName, defaultValue);
|
|
36218
36211
|
}
|
|
36219
|
-
var _flags = undefined,
|
|
36212
|
+
var _flags = undefined, noop6 = () => {}, initializeGrowthBook = async () => null;
|
|
36220
36213
|
var init_growthbook = () => {};
|
|
36221
36214
|
|
|
36222
36215
|
// src/constants/files.ts
|
|
@@ -56026,7 +56019,7 @@ var require_graceful_fs = __commonJS((exports, module) => {
|
|
|
56026
56019
|
gracefulQueue = "___graceful-fs.queue";
|
|
56027
56020
|
previousSymbol = "___graceful-fs.previous";
|
|
56028
56021
|
}
|
|
56029
|
-
function
|
|
56022
|
+
function noop7() {}
|
|
56030
56023
|
function publishQueue(context, queue2) {
|
|
56031
56024
|
Object.defineProperty(context, gracefulQueue, {
|
|
56032
56025
|
get: function() {
|
|
@@ -56034,7 +56027,7 @@ var require_graceful_fs = __commonJS((exports, module) => {
|
|
|
56034
56027
|
}
|
|
56035
56028
|
});
|
|
56036
56029
|
}
|
|
56037
|
-
var debug =
|
|
56030
|
+
var debug = noop7;
|
|
56038
56031
|
if (util3.debuglog)
|
|
56039
56032
|
debug = util3.debuglog("gfs4");
|
|
56040
56033
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
@@ -63203,7 +63196,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63203
63196
|
yield* this[kBody];
|
|
63204
63197
|
}
|
|
63205
63198
|
}
|
|
63206
|
-
function
|
|
63199
|
+
function noop7() {}
|
|
63207
63200
|
function wrapRequestBody(body) {
|
|
63208
63201
|
if (isStream3(body)) {
|
|
63209
63202
|
if (bodyLength(body) === 0) {
|
|
@@ -63855,7 +63848,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63855
63848
|
}
|
|
63856
63849
|
var setupConnectTimeout = process.platform === "win32" ? (socketWeakRef, opts) => {
|
|
63857
63850
|
if (!opts.timeout) {
|
|
63858
|
-
return
|
|
63851
|
+
return noop7;
|
|
63859
63852
|
}
|
|
63860
63853
|
let s1 = null;
|
|
63861
63854
|
let s2 = null;
|
|
@@ -63871,7 +63864,7 @@ var require_util = __commonJS((exports, module) => {
|
|
|
63871
63864
|
};
|
|
63872
63865
|
} : (socketWeakRef, opts) => {
|
|
63873
63866
|
if (!opts.timeout) {
|
|
63874
|
-
return
|
|
63867
|
+
return noop7;
|
|
63875
63868
|
}
|
|
63876
63869
|
let s1 = null;
|
|
63877
63870
|
const fastTimer = timers.setFastTimeout(() => {
|
|
@@ -67935,11 +67928,11 @@ var require_body = __commonJS((exports, module) => {
|
|
|
67935
67928
|
var { runtimeFeatures } = require_runtime_features();
|
|
67936
67929
|
var random = runtimeFeatures.has("crypto") ? __require("node:crypto").randomInt : (max) => Math.floor(Math.random() * max);
|
|
67937
67930
|
var textEncoder4 = new TextEncoder;
|
|
67938
|
-
function
|
|
67931
|
+
function noop7() {}
|
|
67939
67932
|
var streamRegistry = new FinalizationRegistry((weakRef) => {
|
|
67940
67933
|
const stream4 = weakRef.deref();
|
|
67941
67934
|
if (stream4 && !stream4.locked && !isDisturbed(stream4) && !isErrored(stream4)) {
|
|
67942
|
-
stream4.cancel("Response object has been garbage collected").catch(
|
|
67935
|
+
stream4.cancel("Response object has been garbage collected").catch(noop7);
|
|
67943
67936
|
}
|
|
67944
67937
|
});
|
|
67945
67938
|
function extractBody(object2, keepalive = false) {
|
|
@@ -69949,7 +69942,7 @@ var require_client = __commonJS((exports, module) => {
|
|
|
69949
69942
|
var getDefaultNodeMaxHeaderSize = http3 && http3.maxHeaderSize && Number.isInteger(http3.maxHeaderSize) && http3.maxHeaderSize > 0 ? () => http3.maxHeaderSize : () => {
|
|
69950
69943
|
throw new InvalidArgumentError("http module not available or http.maxHeaderSize invalid");
|
|
69951
69944
|
};
|
|
69952
|
-
var
|
|
69945
|
+
var noop7 = () => {};
|
|
69953
69946
|
function getPipelining(client) {
|
|
69954
69947
|
return client[kPipelining] ?? client[kHTTPContext]?.defaultPipelining ?? 1;
|
|
69955
69948
|
}
|
|
@@ -70237,7 +70230,7 @@ var require_client = __commonJS((exports, module) => {
|
|
|
70237
70230
|
return;
|
|
70238
70231
|
}
|
|
70239
70232
|
if (client.destroyed) {
|
|
70240
|
-
util3.destroy(socket.on("error",
|
|
70233
|
+
util3.destroy(socket.on("error", noop7), new ClientDestroyedError);
|
|
70241
70234
|
client[kResume]();
|
|
70242
70235
|
return;
|
|
70243
70236
|
}
|
|
@@ -70245,7 +70238,7 @@ var require_client = __commonJS((exports, module) => {
|
|
|
70245
70238
|
try {
|
|
70246
70239
|
client[kHTTPContext] = socket.alpnProtocol === "h2" ? connectH2(client, socket) : connectH1(client, socket);
|
|
70247
70240
|
} catch (err2) {
|
|
70248
|
-
socket.destroy().on("error",
|
|
70241
|
+
socket.destroy().on("error", noop7);
|
|
70249
70242
|
handleConnectError(client, err2, { host, hostname: hostname2, protocol, port });
|
|
70250
70243
|
client[kResume]();
|
|
70251
70244
|
return;
|
|
@@ -71746,7 +71739,7 @@ var require_proxy_agent = __commonJS((exports, module) => {
|
|
|
71746
71739
|
function defaultFactory(origin2, opts) {
|
|
71747
71740
|
return new Pool(origin2, opts);
|
|
71748
71741
|
}
|
|
71749
|
-
var
|
|
71742
|
+
var noop7 = () => {};
|
|
71750
71743
|
function defaultAgentFactory(origin2, opts) {
|
|
71751
71744
|
if (opts.connections === 1) {
|
|
71752
71745
|
return new Client(origin2, opts);
|
|
@@ -71884,7 +71877,7 @@ var require_proxy_agent = __commonJS((exports, module) => {
|
|
|
71884
71877
|
};
|
|
71885
71878
|
const { socket, statusCode } = await this[kClient].connect(connectParams);
|
|
71886
71879
|
if (statusCode !== 200) {
|
|
71887
|
-
socket.on("error",
|
|
71880
|
+
socket.on("error", noop7).destroy();
|
|
71888
71881
|
callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`));
|
|
71889
71882
|
return;
|
|
71890
71883
|
}
|
|
@@ -72451,7 +72444,7 @@ var require_readable = __commonJS((exports, module) => {
|
|
|
72451
72444
|
var kContentLength = Symbol("kContentLength");
|
|
72452
72445
|
var kUsed = Symbol("kUsed");
|
|
72453
72446
|
var kBytesRead = Symbol("kBytesRead");
|
|
72454
|
-
var
|
|
72447
|
+
var noop7 = () => {};
|
|
72455
72448
|
|
|
72456
72449
|
class BodyReadable extends Readable5 {
|
|
72457
72450
|
constructor({
|
|
@@ -72582,7 +72575,7 @@ var require_readable = __commonJS((exports, module) => {
|
|
|
72582
72575
|
} else {
|
|
72583
72576
|
this.on("close", resolve10);
|
|
72584
72577
|
}
|
|
72585
|
-
this.on("error",
|
|
72578
|
+
this.on("error", noop7).on("data", () => {
|
|
72586
72579
|
if (this[kBytesRead] > limit) {
|
|
72587
72580
|
this.destroy();
|
|
72588
72581
|
}
|
|
@@ -72743,7 +72736,7 @@ var require_api_request = __commonJS((exports, module) => {
|
|
|
72743
72736
|
var { Readable: Readable5 } = require_readable();
|
|
72744
72737
|
var { InvalidArgumentError, RequestAbortedError } = require_errors();
|
|
72745
72738
|
var util3 = require_util();
|
|
72746
|
-
function
|
|
72739
|
+
function noop7() {}
|
|
72747
72740
|
|
|
72748
72741
|
class RequestHandler extends AsyncResource {
|
|
72749
72742
|
constructor(opts, callback) {
|
|
@@ -72770,7 +72763,7 @@ var require_api_request = __commonJS((exports, module) => {
|
|
|
72770
72763
|
super("UNDICI_REQUEST");
|
|
72771
72764
|
} catch (err) {
|
|
72772
72765
|
if (util3.isStream(body)) {
|
|
72773
|
-
util3.destroy(body.on("error",
|
|
72766
|
+
util3.destroy(body.on("error", noop7), err);
|
|
72774
72767
|
}
|
|
72775
72768
|
throw err;
|
|
72776
72769
|
}
|
|
@@ -72793,7 +72786,7 @@ var require_api_request = __commonJS((exports, module) => {
|
|
|
72793
72786
|
this.removeAbortListener = util3.addAbortListener(signal, () => {
|
|
72794
72787
|
this.reason = signal.reason ?? new RequestAbortedError;
|
|
72795
72788
|
if (this.res) {
|
|
72796
|
-
util3.destroy(this.res.on("error",
|
|
72789
|
+
util3.destroy(this.res.on("error", noop7), this.reason);
|
|
72797
72790
|
} else if (this.abort) {
|
|
72798
72791
|
this.abort(this.reason);
|
|
72799
72792
|
}
|
|
@@ -72847,7 +72840,7 @@ var require_api_request = __commonJS((exports, module) => {
|
|
|
72847
72840
|
});
|
|
72848
72841
|
} catch (err) {
|
|
72849
72842
|
this.res = null;
|
|
72850
|
-
util3.destroy(res.on("error",
|
|
72843
|
+
util3.destroy(res.on("error", noop7), err);
|
|
72851
72844
|
queueMicrotask(() => {
|
|
72852
72845
|
throw err;
|
|
72853
72846
|
});
|
|
@@ -72872,13 +72865,13 @@ var require_api_request = __commonJS((exports, module) => {
|
|
|
72872
72865
|
if (res) {
|
|
72873
72866
|
this.res = null;
|
|
72874
72867
|
queueMicrotask(() => {
|
|
72875
|
-
util3.destroy(res.on("error",
|
|
72868
|
+
util3.destroy(res.on("error", noop7), err);
|
|
72876
72869
|
});
|
|
72877
72870
|
}
|
|
72878
72871
|
if (body) {
|
|
72879
72872
|
this.body = null;
|
|
72880
72873
|
if (util3.isStream(body)) {
|
|
72881
|
-
body.on("error",
|
|
72874
|
+
body.on("error", noop7);
|
|
72882
72875
|
util3.destroy(body, err);
|
|
72883
72876
|
}
|
|
72884
72877
|
}
|
|
@@ -72968,7 +72961,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72968
72961
|
var { InvalidArgumentError, InvalidReturnValueError } = require_errors();
|
|
72969
72962
|
var util3 = require_util();
|
|
72970
72963
|
var { addSignal, removeSignal } = require_abort_signal();
|
|
72971
|
-
function
|
|
72964
|
+
function noop7() {}
|
|
72972
72965
|
|
|
72973
72966
|
class StreamHandler extends AsyncResource {
|
|
72974
72967
|
constructor(opts, factory2, callback) {
|
|
@@ -72995,7 +72988,7 @@ var require_api_stream = __commonJS((exports, module) => {
|
|
|
72995
72988
|
super("UNDICI_STREAM");
|
|
72996
72989
|
} catch (err) {
|
|
72997
72990
|
if (util3.isStream(body)) {
|
|
72998
|
-
util3.destroy(body.on("error",
|
|
72991
|
+
util3.destroy(body.on("error", noop7), err);
|
|
72999
72992
|
}
|
|
73000
72993
|
throw err;
|
|
73001
72994
|
}
|
|
@@ -73134,7 +73127,7 @@ var require_api_pipeline = __commonJS((exports, module) => {
|
|
|
73134
73127
|
} = require_errors();
|
|
73135
73128
|
var util3 = require_util();
|
|
73136
73129
|
var { addSignal, removeSignal } = require_abort_signal();
|
|
73137
|
-
function
|
|
73130
|
+
function noop7() {}
|
|
73138
73131
|
var kResume = Symbol("resume");
|
|
73139
73132
|
|
|
73140
73133
|
class PipelineRequest extends Readable5 {
|
|
@@ -73196,7 +73189,7 @@ var require_api_pipeline = __commonJS((exports, module) => {
|
|
|
73196
73189
|
this.abort = null;
|
|
73197
73190
|
this.context = null;
|
|
73198
73191
|
this.onInfo = onInfo || null;
|
|
73199
|
-
this.req = new PipelineRequest().on("error",
|
|
73192
|
+
this.req = new PipelineRequest().on("error", noop7);
|
|
73200
73193
|
this.ret = new Duplex4({
|
|
73201
73194
|
readableObjectMode: opts.objectMode,
|
|
73202
73195
|
autoDestroy: true,
|
|
@@ -73267,7 +73260,7 @@ var require_api_pipeline = __commonJS((exports, module) => {
|
|
|
73267
73260
|
context
|
|
73268
73261
|
});
|
|
73269
73262
|
} catch (err) {
|
|
73270
|
-
this.res.on("error",
|
|
73263
|
+
this.res.on("error", noop7);
|
|
73271
73264
|
throw err;
|
|
73272
73265
|
}
|
|
73273
73266
|
if (!body || typeof body.on !== "function") {
|
|
@@ -75265,7 +75258,7 @@ var require_redirect_handler = __commonJS((exports, module) => {
|
|
|
75265
75258
|
var EE = __require("node:events");
|
|
75266
75259
|
var redirectableStatusCodes = [300, 301, 302, 303, 307, 308];
|
|
75267
75260
|
var kBody = Symbol("body");
|
|
75268
|
-
var
|
|
75261
|
+
var noop7 = () => {};
|
|
75269
75262
|
|
|
75270
75263
|
class BodyAsyncIterable {
|
|
75271
75264
|
constructor(body) {
|
|
@@ -75329,14 +75322,14 @@ var require_redirect_handler = __commonJS((exports, module) => {
|
|
|
75329
75322
|
if ((statusCode === 301 || statusCode === 302) && this.opts.method === "POST") {
|
|
75330
75323
|
this.opts.method = "GET";
|
|
75331
75324
|
if (util3.isStream(this.opts.body)) {
|
|
75332
|
-
util3.destroy(this.opts.body.on("error",
|
|
75325
|
+
util3.destroy(this.opts.body.on("error", noop7));
|
|
75333
75326
|
}
|
|
75334
75327
|
this.opts.body = null;
|
|
75335
75328
|
}
|
|
75336
75329
|
if (statusCode === 303 && this.opts.method !== "HEAD") {
|
|
75337
75330
|
this.opts.method = "GET";
|
|
75338
75331
|
if (util3.isStream(this.opts.body)) {
|
|
75339
|
-
util3.destroy(this.opts.body.on("error",
|
|
75332
|
+
util3.destroy(this.opts.body.on("error", noop7));
|
|
75340
75333
|
}
|
|
75341
75334
|
this.opts.body = null;
|
|
75342
75335
|
}
|
|
@@ -76783,7 +76776,7 @@ var require_cache_handler = __commonJS((exports, module) => {
|
|
|
76783
76776
|
isEtagUsable
|
|
76784
76777
|
} = require_cache();
|
|
76785
76778
|
var { parseHttpDate } = require_date();
|
|
76786
|
-
function
|
|
76779
|
+
function noop7() {}
|
|
76787
76780
|
var HEURISTICALLY_CACHEABLE_STATUS_CODES = [
|
|
76788
76781
|
200,
|
|
76789
76782
|
203,
|
|
@@ -76830,7 +76823,7 @@ var require_cache_handler = __commonJS((exports, module) => {
|
|
|
76830
76823
|
const handler = this;
|
|
76831
76824
|
if (!util3.safeHTTPMethods.includes(this.#cacheKey.method) && statusCode >= 200 && statusCode <= 399) {
|
|
76832
76825
|
try {
|
|
76833
|
-
this.#store.delete(this.#cacheKey)?.catch?.(
|
|
76826
|
+
this.#store.delete(this.#cacheKey)?.catch?.(noop7);
|
|
76834
76827
|
} catch {}
|
|
76835
76828
|
return downstreamOnHeaders();
|
|
76836
76829
|
}
|
|
@@ -117059,7 +117052,7 @@ var require_react_development = __commonJS((exports, module) => {
|
|
|
117059
117052
|
this.refs = emptyObject;
|
|
117060
117053
|
this.updater = updater || ReactNoopUpdateQueue;
|
|
117061
117054
|
}
|
|
117062
|
-
function
|
|
117055
|
+
function noop7() {}
|
|
117063
117056
|
function testStringCoercion(value) {
|
|
117064
117057
|
return "" + value;
|
|
117065
117058
|
}
|
|
@@ -117234,7 +117227,7 @@ var require_react_development = __commonJS((exports, module) => {
|
|
|
117234
117227
|
case "rejected":
|
|
117235
117228
|
throw thenable.reason;
|
|
117236
117229
|
default:
|
|
117237
|
-
switch (typeof thenable.status === "string" ? thenable.then(
|
|
117230
|
+
switch (typeof thenable.status === "string" ? thenable.then(noop7, noop7) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
117238
117231
|
thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
117239
117232
|
}, function(error41) {
|
|
117240
117233
|
thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error41);
|
|
@@ -117771,7 +117764,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
117771
117764
|
try {
|
|
117772
117765
|
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
117773
117766
|
onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue);
|
|
117774
|
-
typeof returnValue === "object" && returnValue !== null && typeof returnValue.then === "function" && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(
|
|
117767
|
+
typeof returnValue === "object" && returnValue !== null && typeof returnValue.then === "function" && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop7, reportGlobalError));
|
|
117775
117768
|
} catch (error41) {
|
|
117776
117769
|
reportGlobalError(error41);
|
|
117777
117770
|
} finally {
|
|
@@ -118601,10 +118594,10 @@ var getAllProperties = (object2) => {
|
|
|
118601
118594
|
};
|
|
118602
118595
|
|
|
118603
118596
|
// node_modules/lodash-es/noop.js
|
|
118604
|
-
function
|
|
118597
|
+
function noop7() {}
|
|
118605
118598
|
var noop_default;
|
|
118606
118599
|
var init_noop = __esm(() => {
|
|
118607
|
-
noop_default =
|
|
118600
|
+
noop_default = noop7;
|
|
118608
118601
|
});
|
|
118609
118602
|
|
|
118610
118603
|
// node_modules/lodash-es/now.js
|
|
@@ -122134,7 +122127,7 @@ var require_react_reconciler_development = __commonJS((exports, module) => {
|
|
|
122134
122127
|
function warnInvalidContextAccess() {
|
|
122135
122128
|
console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");
|
|
122136
122129
|
}
|
|
122137
|
-
function
|
|
122130
|
+
function noop8() {}
|
|
122138
122131
|
function warnForMissingKey() {}
|
|
122139
122132
|
function setToSortedString(set2) {
|
|
122140
122133
|
var array2 = [];
|
|
@@ -132495,7 +132488,7 @@ No matching component was found for:
|
|
|
132495
132488
|
throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");
|
|
132496
132489
|
var queue = ensureFormComponentIsStateful(formFiber).queue;
|
|
132497
132490
|
startHostActionTimer(formFiber);
|
|
132498
|
-
startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ?
|
|
132491
|
+
startTransition(formFiber, queue, pendingState, NotPendingTransition, action === null ? noop8 : function() {
|
|
132499
132492
|
ReactSharedInternals.T === null && console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");
|
|
132500
132493
|
var stateHook = ensureFormComponentIsStateful(formFiber);
|
|
132501
132494
|
stateHook.next === null && (stateHook = formFiber.alternate.memoizedState);
|
|
@@ -152909,7 +152902,7 @@ __export(exports_mcpb, {
|
|
|
152909
152902
|
ATTR_SERVICE_VERSION: () => ATTR_SERVICE_VERSION,
|
|
152910
152903
|
ATTR_SERVICE_NAME: () => ATTR_SERVICE_NAME
|
|
152911
152904
|
});
|
|
152912
|
-
var
|
|
152905
|
+
var noop8 = () => null, noopClass = class {
|
|
152913
152906
|
}, handler, stub, mcpb_default, __stub = true, SandboxViolationStore = null, SandboxManager, SandboxRuntimeConfigSchema, BROWSER_TOOLS, getMcpConfigForManifest, ColorDiff = null, ColorFile = null, getSyntaxTheme, plot, createClaudeForChromeMcpServer, ExportResultCode, resourceFromAttributes, Resource, SimpleSpanProcessor, BatchSpanProcessor, NodeTracerProvider, BasicTracerProvider, OTLPTraceExporter, OTLPLogExporter, OTLPMetricExporter, PrometheusExporter, LoggerProvider, SimpleLogRecordProcessor, BatchLogRecordProcessor, MeterProvider, PeriodicExportingMetricReader, trace, context, SpanStatusCode, ATTR_SERVICE_NAME = "service.name", ATTR_SERVICE_VERSION = "service.version", SEMRESATTRS_SERVICE_NAME = "service.name", SEMRESATTRS_SERVICE_VERSION = "service.version", AggregationTemporality, DataPointType, InstrumentType, PushMetricExporter, SeverityNumber;
|
|
152914
152907
|
var init_mcpb = __esm(() => {
|
|
152915
152908
|
handler = {
|
|
@@ -152924,20 +152917,20 @@ var init_mcpb = __esm(() => {
|
|
|
152924
152917
|
return () => ({});
|
|
152925
152918
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
152926
152919
|
return { parse: () => ({}) };
|
|
152927
|
-
return
|
|
152920
|
+
return noop8;
|
|
152928
152921
|
}
|
|
152929
152922
|
};
|
|
152930
|
-
stub = new Proxy(
|
|
152923
|
+
stub = new Proxy(noop8, handler);
|
|
152931
152924
|
mcpb_default = stub;
|
|
152932
|
-
SandboxManager = new Proxy({}, { get: () =>
|
|
152925
|
+
SandboxManager = new Proxy({}, { get: () => noop8 });
|
|
152933
152926
|
SandboxRuntimeConfigSchema = { parse: () => ({}) };
|
|
152934
152927
|
BROWSER_TOOLS = [];
|
|
152935
|
-
getMcpConfigForManifest =
|
|
152936
|
-
getSyntaxTheme =
|
|
152937
|
-
plot =
|
|
152938
|
-
createClaudeForChromeMcpServer =
|
|
152928
|
+
getMcpConfigForManifest = noop8;
|
|
152929
|
+
getSyntaxTheme = noop8;
|
|
152930
|
+
plot = noop8;
|
|
152931
|
+
createClaudeForChromeMcpServer = noop8;
|
|
152939
152932
|
ExportResultCode = { SUCCESS: 0, FAILED: 1 };
|
|
152940
|
-
resourceFromAttributes =
|
|
152933
|
+
resourceFromAttributes = noop8;
|
|
152941
152934
|
Resource = noopClass;
|
|
152942
152935
|
SimpleSpanProcessor = noopClass;
|
|
152943
152936
|
BatchSpanProcessor = noopClass;
|
|
@@ -152952,8 +152945,8 @@ var init_mcpb = __esm(() => {
|
|
|
152952
152945
|
BatchLogRecordProcessor = noopClass;
|
|
152953
152946
|
MeterProvider = noopClass;
|
|
152954
152947
|
PeriodicExportingMetricReader = noopClass;
|
|
152955
|
-
trace = { getTracer: () => ({ startSpan: () => ({ end:
|
|
152956
|
-
context = { active:
|
|
152948
|
+
trace = { getTracer: () => ({ startSpan: () => ({ end: noop8, setAttribute: noop8, setStatus: noop8, recordException: noop8 }) }) };
|
|
152949
|
+
context = { active: noop8, with: (_, fn) => fn() };
|
|
152957
152950
|
SpanStatusCode = { OK: 0, ERROR: 1, UNSET: 2 };
|
|
152958
152951
|
AggregationTemporality = { CUMULATIVE: 0, DELTA: 1 };
|
|
152959
152952
|
DataPointType = { HISTOGRAM: 0, SUM: 1, GAUGE: 2 };
|
|
@@ -155833,7 +155826,7 @@ var init_mcpbHandler = __esm(() => {
|
|
|
155833
155826
|
});
|
|
155834
155827
|
|
|
155835
155828
|
// native-stub:@anthropic-ai/sandbox-runtime
|
|
155836
|
-
var
|
|
155829
|
+
var noop9 = () => null, handler2, stub2, SandboxViolationStore2 = null, SandboxManager2, SandboxRuntimeConfigSchema2;
|
|
155837
155830
|
var init_sandbox_runtime = __esm(() => {
|
|
155838
155831
|
handler2 = {
|
|
155839
155832
|
get(_, prop) {
|
|
@@ -155847,11 +155840,11 @@ var init_sandbox_runtime = __esm(() => {
|
|
|
155847
155840
|
return () => ({});
|
|
155848
155841
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
155849
155842
|
return { parse: () => ({}) };
|
|
155850
|
-
return
|
|
155843
|
+
return noop9;
|
|
155851
155844
|
}
|
|
155852
155845
|
};
|
|
155853
|
-
stub2 = new Proxy(
|
|
155854
|
-
SandboxManager2 = new Proxy({}, { get: () =>
|
|
155846
|
+
stub2 = new Proxy(noop9, handler2);
|
|
155847
|
+
SandboxManager2 = new Proxy({}, { get: () => noop9 });
|
|
155855
155848
|
SandboxRuntimeConfigSchema2 = { parse: () => ({}) };
|
|
155856
155849
|
});
|
|
155857
155850
|
|
|
@@ -175238,7 +175231,7 @@ __export(exports_image_processor_napi, {
|
|
|
175238
175231
|
ATTR_SERVICE_VERSION: () => ATTR_SERVICE_VERSION2,
|
|
175239
175232
|
ATTR_SERVICE_NAME: () => ATTR_SERVICE_NAME2
|
|
175240
175233
|
});
|
|
175241
|
-
var
|
|
175234
|
+
var noop10 = () => null, noopClass2 = class {
|
|
175242
175235
|
}, handler3, stub3, image_processor_napi_default, __stub2 = true, SandboxViolationStore3 = null, SandboxManager4, SandboxRuntimeConfigSchema3, BROWSER_TOOLS2, getMcpConfigForManifest2, ColorDiff2 = null, ColorFile2 = null, getSyntaxTheme2, plot2, createClaudeForChromeMcpServer2, ExportResultCode2, resourceFromAttributes2, Resource2, SimpleSpanProcessor2, BatchSpanProcessor2, NodeTracerProvider2, BasicTracerProvider2, OTLPTraceExporter2, OTLPLogExporter2, OTLPMetricExporter2, PrometheusExporter2, LoggerProvider2, SimpleLogRecordProcessor2, BatchLogRecordProcessor2, MeterProvider2, PeriodicExportingMetricReader2, trace2, context2, SpanStatusCode2, ATTR_SERVICE_NAME2 = "service.name", ATTR_SERVICE_VERSION2 = "service.version", SEMRESATTRS_SERVICE_NAME2 = "service.name", SEMRESATTRS_SERVICE_VERSION2 = "service.version", AggregationTemporality2, DataPointType2, InstrumentType2, PushMetricExporter2, SeverityNumber2;
|
|
175243
175236
|
var init_image_processor_napi = __esm(() => {
|
|
175244
175237
|
handler3 = {
|
|
@@ -175253,20 +175246,20 @@ var init_image_processor_napi = __esm(() => {
|
|
|
175253
175246
|
return () => ({});
|
|
175254
175247
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
175255
175248
|
return { parse: () => ({}) };
|
|
175256
|
-
return
|
|
175249
|
+
return noop10;
|
|
175257
175250
|
}
|
|
175258
175251
|
};
|
|
175259
|
-
stub3 = new Proxy(
|
|
175252
|
+
stub3 = new Proxy(noop10, handler3);
|
|
175260
175253
|
image_processor_napi_default = stub3;
|
|
175261
|
-
SandboxManager4 = new Proxy({}, { get: () =>
|
|
175254
|
+
SandboxManager4 = new Proxy({}, { get: () => noop10 });
|
|
175262
175255
|
SandboxRuntimeConfigSchema3 = { parse: () => ({}) };
|
|
175263
175256
|
BROWSER_TOOLS2 = [];
|
|
175264
|
-
getMcpConfigForManifest2 =
|
|
175265
|
-
getSyntaxTheme2 =
|
|
175266
|
-
plot2 =
|
|
175267
|
-
createClaudeForChromeMcpServer2 =
|
|
175257
|
+
getMcpConfigForManifest2 = noop10;
|
|
175258
|
+
getSyntaxTheme2 = noop10;
|
|
175259
|
+
plot2 = noop10;
|
|
175260
|
+
createClaudeForChromeMcpServer2 = noop10;
|
|
175268
175261
|
ExportResultCode2 = { SUCCESS: 0, FAILED: 1 };
|
|
175269
|
-
resourceFromAttributes2 =
|
|
175262
|
+
resourceFromAttributes2 = noop10;
|
|
175270
175263
|
Resource2 = noopClass2;
|
|
175271
175264
|
SimpleSpanProcessor2 = noopClass2;
|
|
175272
175265
|
BatchSpanProcessor2 = noopClass2;
|
|
@@ -175281,8 +175274,8 @@ var init_image_processor_napi = __esm(() => {
|
|
|
175281
175274
|
BatchLogRecordProcessor2 = noopClass2;
|
|
175282
175275
|
MeterProvider2 = noopClass2;
|
|
175283
175276
|
PeriodicExportingMetricReader2 = noopClass2;
|
|
175284
|
-
trace2 = { getTracer: () => ({ startSpan: () => ({ end:
|
|
175285
|
-
context2 = { active:
|
|
175277
|
+
trace2 = { getTracer: () => ({ startSpan: () => ({ end: noop10, setAttribute: noop10, setStatus: noop10, recordException: noop10 }) }) };
|
|
175278
|
+
context2 = { active: noop10, with: (_, fn) => fn() };
|
|
175286
175279
|
SpanStatusCode2 = { OK: 0, ERROR: 1, UNSET: 2 };
|
|
175287
175280
|
AggregationTemporality2 = { CUMULATIVE: 0, DELTA: 1 };
|
|
175288
175281
|
DataPointType2 = { HISTOGRAM: 0, SUM: 1, GAUGE: 2 };
|
|
@@ -178536,7 +178529,7 @@ class OpenAIShimMessages {
|
|
|
178536
178529
|
if (!credentials.apiKey) {
|
|
178537
178530
|
const oauthHint = isBareMode() ? "" : ", choose Codex OAuth in /provider";
|
|
178538
178531
|
const authHint = credentials.authPath ? `${oauthHint} or place a Codex auth.json at ${credentials.authPath}` : oauthHint;
|
|
178539
|
-
const safeModel =
|
|
178532
|
+
const safeModel = redactSecretValueForDisplay(request.requestedModel, process.env) ?? "the requested model";
|
|
178540
178533
|
throw new Error(`Codex auth is required for ${safeModel}. Set CODEX_API_KEY${authHint}.`);
|
|
178541
178534
|
}
|
|
178542
178535
|
if (!credentials.accountId) {
|
|
@@ -178865,7 +178858,7 @@ var init_openaiShim = __esm(() => {
|
|
|
178865
178858
|
init_cockpit();
|
|
178866
178859
|
init_providerConfig();
|
|
178867
178860
|
init_schemaSanitizer();
|
|
178868
|
-
|
|
178861
|
+
init_providerProfile();
|
|
178869
178862
|
init_toolArgumentNormalization();
|
|
178870
178863
|
COPILOT_HEADERS2 = {
|
|
178871
178864
|
"User-Agent": "GitHubCopilotChat/0.26.7",
|
|
@@ -185079,10 +185072,10 @@ var init_values3 = __esm(() => {
|
|
|
185079
185072
|
});
|
|
185080
185073
|
|
|
185081
185074
|
// node_modules/@anthropic-ai/bedrock-sdk/internal/utils/log.mjs
|
|
185082
|
-
function
|
|
185075
|
+
function noop11() {}
|
|
185083
185076
|
function makeLogFn2(fnLevel, logger, logLevel) {
|
|
185084
185077
|
if (!logger || levelNumbers2[fnLevel] > levelNumbers2[logLevel]) {
|
|
185085
|
-
return
|
|
185078
|
+
return noop11;
|
|
185086
185079
|
} else {
|
|
185087
185080
|
return logger[fnLevel].bind(logger);
|
|
185088
185081
|
}
|
|
@@ -185117,10 +185110,10 @@ var init_log4 = __esm(() => {
|
|
|
185117
185110
|
debug: 500
|
|
185118
185111
|
};
|
|
185119
185112
|
noopLogger2 = {
|
|
185120
|
-
error:
|
|
185121
|
-
warn:
|
|
185122
|
-
info:
|
|
185123
|
-
debug:
|
|
185113
|
+
error: noop11,
|
|
185114
|
+
warn: noop11,
|
|
185115
|
+
info: noop11,
|
|
185116
|
+
debug: noop11
|
|
185124
185117
|
};
|
|
185125
185118
|
cachedLoggers2 = /* @__PURE__ */ new WeakMap;
|
|
185126
185119
|
});
|
|
@@ -211194,11 +211187,11 @@ var init_client6 = __esm(() => {
|
|
|
211194
211187
|
});
|
|
211195
211188
|
|
|
211196
211189
|
// node_modules/eventsource-parser/dist/index.js
|
|
211197
|
-
function
|
|
211190
|
+
function noop12(_arg) {}
|
|
211198
211191
|
function createParser(callbacks) {
|
|
211199
211192
|
if (typeof callbacks == "function")
|
|
211200
211193
|
throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");
|
|
211201
|
-
const { onEvent =
|
|
211194
|
+
const { onEvent = noop12, onError = noop12, onRetry = noop12, onComment } = callbacks;
|
|
211202
211195
|
let incompleteLine = "", isFirstChunk = true, id, data = "", eventType = "";
|
|
211203
211196
|
function feed(newChunk) {
|
|
211204
211197
|
const chunk = isFirstChunk ? newChunk.replace(/^\xEF\xBB\xBF/, "") : newChunk, [complete, incomplete] = splitLines2(`${incompleteLine}${chunk}`);
|
|
@@ -224039,7 +224032,7 @@ __export(exports_claude_for_chrome_mcp, {
|
|
|
224039
224032
|
ATTR_SERVICE_VERSION: () => ATTR_SERVICE_VERSION3,
|
|
224040
224033
|
ATTR_SERVICE_NAME: () => ATTR_SERVICE_NAME3
|
|
224041
224034
|
});
|
|
224042
|
-
var
|
|
224035
|
+
var noop13 = () => null, noopClass3 = class {
|
|
224043
224036
|
}, handler4, stub4, claude_for_chrome_mcp_default, __stub3 = true, SandboxViolationStore4 = null, SandboxManager5, SandboxRuntimeConfigSchema4, BROWSER_TOOLS3, getMcpConfigForManifest3, ColorDiff3 = null, ColorFile3 = null, getSyntaxTheme3, plot3, createClaudeForChromeMcpServer3, ExportResultCode3, resourceFromAttributes3, Resource3, SimpleSpanProcessor3, BatchSpanProcessor3, NodeTracerProvider3, BasicTracerProvider3, OTLPTraceExporter3, OTLPLogExporter3, OTLPMetricExporter3, PrometheusExporter3, LoggerProvider3, SimpleLogRecordProcessor3, BatchLogRecordProcessor3, MeterProvider3, PeriodicExportingMetricReader3, trace3, context3, SpanStatusCode3, ATTR_SERVICE_NAME3 = "service.name", ATTR_SERVICE_VERSION3 = "service.version", SEMRESATTRS_SERVICE_NAME3 = "service.name", SEMRESATTRS_SERVICE_VERSION3 = "service.version", AggregationTemporality3, DataPointType3, InstrumentType3, PushMetricExporter3, SeverityNumber3;
|
|
224044
224037
|
var init_claude_for_chrome_mcp = __esm(() => {
|
|
224045
224038
|
handler4 = {
|
|
@@ -224054,20 +224047,20 @@ var init_claude_for_chrome_mcp = __esm(() => {
|
|
|
224054
224047
|
return () => ({});
|
|
224055
224048
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
224056
224049
|
return { parse: () => ({}) };
|
|
224057
|
-
return
|
|
224050
|
+
return noop13;
|
|
224058
224051
|
}
|
|
224059
224052
|
};
|
|
224060
|
-
stub4 = new Proxy(
|
|
224053
|
+
stub4 = new Proxy(noop13, handler4);
|
|
224061
224054
|
claude_for_chrome_mcp_default = stub4;
|
|
224062
|
-
SandboxManager5 = new Proxy({}, { get: () =>
|
|
224055
|
+
SandboxManager5 = new Proxy({}, { get: () => noop13 });
|
|
224063
224056
|
SandboxRuntimeConfigSchema4 = { parse: () => ({}) };
|
|
224064
224057
|
BROWSER_TOOLS3 = [];
|
|
224065
|
-
getMcpConfigForManifest3 =
|
|
224066
|
-
getSyntaxTheme3 =
|
|
224067
|
-
plot3 =
|
|
224068
|
-
createClaudeForChromeMcpServer3 =
|
|
224058
|
+
getMcpConfigForManifest3 = noop13;
|
|
224059
|
+
getSyntaxTheme3 = noop13;
|
|
224060
|
+
plot3 = noop13;
|
|
224061
|
+
createClaudeForChromeMcpServer3 = noop13;
|
|
224069
224062
|
ExportResultCode3 = { SUCCESS: 0, FAILED: 1 };
|
|
224070
|
-
resourceFromAttributes3 =
|
|
224063
|
+
resourceFromAttributes3 = noop13;
|
|
224071
224064
|
Resource3 = noopClass3;
|
|
224072
224065
|
SimpleSpanProcessor3 = noopClass3;
|
|
224073
224066
|
BatchSpanProcessor3 = noopClass3;
|
|
@@ -224082,8 +224075,8 @@ var init_claude_for_chrome_mcp = __esm(() => {
|
|
|
224082
224075
|
BatchLogRecordProcessor3 = noopClass3;
|
|
224083
224076
|
MeterProvider3 = noopClass3;
|
|
224084
224077
|
PeriodicExportingMetricReader3 = noopClass3;
|
|
224085
|
-
trace3 = { getTracer: () => ({ startSpan: () => ({ end:
|
|
224086
|
-
context3 = { active:
|
|
224078
|
+
trace3 = { getTracer: () => ({ startSpan: () => ({ end: noop13, setAttribute: noop13, setStatus: noop13, recordException: noop13 }) }) };
|
|
224079
|
+
context3 = { active: noop13, with: (_, fn) => fn() };
|
|
224087
224080
|
SpanStatusCode3 = { OK: 0, ERROR: 1, UNSET: 2 };
|
|
224088
224081
|
AggregationTemporality3 = { CUMULATIVE: 0, DELTA: 1 };
|
|
224089
224082
|
DataPointType3 = { HISTOGRAM: 0, SUM: 1, GAUGE: 2 };
|
|
@@ -292128,7 +292121,7 @@ __export(exports_plist, {
|
|
|
292128
292121
|
ATTR_SERVICE_VERSION: () => ATTR_SERVICE_VERSION5,
|
|
292129
292122
|
ATTR_SERVICE_NAME: () => ATTR_SERVICE_NAME5
|
|
292130
292123
|
});
|
|
292131
|
-
var
|
|
292124
|
+
var noop14 = () => null, noopClass4 = class {
|
|
292132
292125
|
}, handler5, stub5, plist_default, __stub4 = true, SandboxViolationStore5 = null, SandboxManager6, SandboxRuntimeConfigSchema5, BROWSER_TOOLS4, getMcpConfigForManifest4, ColorDiff4 = null, ColorFile4 = null, getSyntaxTheme4, plot4, createClaudeForChromeMcpServer4, ExportResultCode4, resourceFromAttributes5, Resource4, SimpleSpanProcessor4, BatchSpanProcessor5, NodeTracerProvider4, BasicTracerProvider5, OTLPTraceExporter4, OTLPLogExporter4, OTLPMetricExporter4, PrometheusExporter4, LoggerProvider5, SimpleLogRecordProcessor4, BatchLogRecordProcessor5, MeterProvider5, PeriodicExportingMetricReader5, trace5, context4, SpanStatusCode4, ATTR_SERVICE_NAME5 = "service.name", ATTR_SERVICE_VERSION5 = "service.version", SEMRESATTRS_SERVICE_NAME4 = "service.name", SEMRESATTRS_SERVICE_VERSION4 = "service.version", AggregationTemporality4, DataPointType4, InstrumentType4, PushMetricExporter4, SeverityNumber4;
|
|
292133
292126
|
var init_plist = __esm(() => {
|
|
292134
292127
|
handler5 = {
|
|
@@ -292143,20 +292136,20 @@ var init_plist = __esm(() => {
|
|
|
292143
292136
|
return () => ({});
|
|
292144
292137
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
292145
292138
|
return { parse: () => ({}) };
|
|
292146
|
-
return
|
|
292139
|
+
return noop14;
|
|
292147
292140
|
}
|
|
292148
292141
|
};
|
|
292149
|
-
stub5 = new Proxy(
|
|
292142
|
+
stub5 = new Proxy(noop14, handler5);
|
|
292150
292143
|
plist_default = stub5;
|
|
292151
|
-
SandboxManager6 = new Proxy({}, { get: () =>
|
|
292144
|
+
SandboxManager6 = new Proxy({}, { get: () => noop14 });
|
|
292152
292145
|
SandboxRuntimeConfigSchema5 = { parse: () => ({}) };
|
|
292153
292146
|
BROWSER_TOOLS4 = [];
|
|
292154
|
-
getMcpConfigForManifest4 =
|
|
292155
|
-
getSyntaxTheme4 =
|
|
292156
|
-
plot4 =
|
|
292157
|
-
createClaudeForChromeMcpServer4 =
|
|
292147
|
+
getMcpConfigForManifest4 = noop14;
|
|
292148
|
+
getSyntaxTheme4 = noop14;
|
|
292149
|
+
plot4 = noop14;
|
|
292150
|
+
createClaudeForChromeMcpServer4 = noop14;
|
|
292158
292151
|
ExportResultCode4 = { SUCCESS: 0, FAILED: 1 };
|
|
292159
|
-
resourceFromAttributes5 =
|
|
292152
|
+
resourceFromAttributes5 = noop14;
|
|
292160
292153
|
Resource4 = noopClass4;
|
|
292161
292154
|
SimpleSpanProcessor4 = noopClass4;
|
|
292162
292155
|
BatchSpanProcessor5 = noopClass4;
|
|
@@ -292171,8 +292164,8 @@ var init_plist = __esm(() => {
|
|
|
292171
292164
|
BatchLogRecordProcessor5 = noopClass4;
|
|
292172
292165
|
MeterProvider5 = noopClass4;
|
|
292173
292166
|
PeriodicExportingMetricReader5 = noopClass4;
|
|
292174
|
-
trace5 = { getTracer: () => ({ startSpan: () => ({ end:
|
|
292175
|
-
context4 = { active:
|
|
292167
|
+
trace5 = { getTracer: () => ({ startSpan: () => ({ end: noop14, setAttribute: noop14, setStatus: noop14, recordException: noop14 }) }) };
|
|
292168
|
+
context4 = { active: noop14, with: (_, fn) => fn() };
|
|
292176
292169
|
SpanStatusCode4 = { OK: 0, ERROR: 1, UNSET: 2 };
|
|
292177
292170
|
AggregationTemporality4 = { CUMULATIVE: 0, DELTA: 1 };
|
|
292178
292171
|
DataPointType4 = { HISTOGRAM: 0, SUM: 1, GAUGE: 2 };
|
|
@@ -294042,7 +294035,7 @@ var init_ProviderManager = __esm(() => {
|
|
|
294042
294035
|
init_codexCredentials();
|
|
294043
294036
|
init_envUtils();
|
|
294044
294037
|
init_model();
|
|
294045
|
-
|
|
294038
|
+
init_providerProfile();
|
|
294046
294039
|
init_providerProfiles();
|
|
294047
294040
|
init_githubModelsCredentials();
|
|
294048
294041
|
init_providerDiscovery();
|
|
@@ -309786,28 +309779,19 @@ function AssistantTextMessage(t0) {
|
|
|
309786
309779
|
borderStyle: "single",
|
|
309787
309780
|
borderColor: "claude",
|
|
309788
309781
|
borderLeft: true,
|
|
309789
|
-
borderTop:
|
|
309782
|
+
borderTop: true,
|
|
309790
309783
|
borderRight: false,
|
|
309791
309784
|
borderBottom: false,
|
|
309792
309785
|
paddingLeft: 1,
|
|
309793
|
-
|
|
309794
|
-
|
|
309795
|
-
|
|
309796
|
-
|
|
309797
|
-
|
|
309798
|
-
|
|
309799
|
-
|
|
309800
|
-
|
|
309801
|
-
|
|
309802
|
-
/* @__PURE__ */ jsx_dev_runtime95.jsxDEV(ThemedBox_default, {
|
|
309803
|
-
flexDirection: "row",
|
|
309804
|
-
children: [
|
|
309805
|
-
t4,
|
|
309806
|
-
t5
|
|
309807
|
-
]
|
|
309808
|
-
}, undefined, true, undefined, this)
|
|
309809
|
-
]
|
|
309810
|
-
}, undefined, true, undefined, this);
|
|
309786
|
+
borderText: { content: " STRATAGEM ", position: "top", align: "start", offset: 1 },
|
|
309787
|
+
children: /* @__PURE__ */ jsx_dev_runtime95.jsxDEV(ThemedBox_default, {
|
|
309788
|
+
flexDirection: "row",
|
|
309789
|
+
children: [
|
|
309790
|
+
t4,
|
|
309791
|
+
t5
|
|
309792
|
+
]
|
|
309793
|
+
}, undefined, true, undefined, this)
|
|
309794
|
+
}, undefined, false, undefined, this);
|
|
309811
309795
|
$2[27] = t4;
|
|
309812
309796
|
$2[28] = t5;
|
|
309813
309797
|
$2[29] = t6;
|
|
@@ -309882,9 +309866,9 @@ function AssistantThinkingMessage(t0) {
|
|
|
309882
309866
|
const shouldShowFullThinking = isTranscriptMode || verbose;
|
|
309883
309867
|
if (!shouldShowFullThinking) {
|
|
309884
309868
|
const t42 = addMargin ? 1 : 0;
|
|
309885
|
-
let
|
|
309869
|
+
let t5;
|
|
309886
309870
|
if ($2[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
309887
|
-
|
|
309871
|
+
t5 = /* @__PURE__ */ jsx_dev_runtime96.jsxDEV(ThemedText, {
|
|
309888
309872
|
dimColor: true,
|
|
309889
309873
|
italic: true,
|
|
309890
309874
|
children: [
|
|
@@ -309893,9 +309877,9 @@ function AssistantThinkingMessage(t0) {
|
|
|
309893
309877
|
/* @__PURE__ */ jsx_dev_runtime96.jsxDEV(CtrlOToExpand, {}, undefined, false, undefined, this)
|
|
309894
309878
|
]
|
|
309895
309879
|
}, undefined, true, undefined, this);
|
|
309896
|
-
$2[0] =
|
|
309880
|
+
$2[0] = t5;
|
|
309897
309881
|
} else {
|
|
309898
|
-
|
|
309882
|
+
t5 = $2[0];
|
|
309899
309883
|
}
|
|
309900
309884
|
let t62;
|
|
309901
309885
|
if ($2[1] !== t42) {
|
|
@@ -309908,7 +309892,7 @@ function AssistantThinkingMessage(t0) {
|
|
|
309908
309892
|
borderRight: false,
|
|
309909
309893
|
borderBottom: false,
|
|
309910
309894
|
paddingLeft: 1,
|
|
309911
|
-
children:
|
|
309895
|
+
children: t5
|
|
309912
309896
|
}, undefined, false, undefined, this);
|
|
309913
309897
|
$2[1] = t42;
|
|
309914
309898
|
$2[2] = t62;
|
|
@@ -309918,20 +309902,6 @@ function AssistantThinkingMessage(t0) {
|
|
|
309918
309902
|
return t62;
|
|
309919
309903
|
}
|
|
309920
309904
|
const t4 = addMargin ? 1 : 0;
|
|
309921
|
-
let t5;
|
|
309922
|
-
if ($2[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
309923
|
-
t5 = /* @__PURE__ */ jsx_dev_runtime96.jsxDEV(ThemedText, {
|
|
309924
|
-
dimColor: true,
|
|
309925
|
-
italic: true,
|
|
309926
|
-
children: [
|
|
309927
|
-
"TRACE // COGNITION",
|
|
309928
|
-
"…"
|
|
309929
|
-
]
|
|
309930
|
-
}, undefined, true, undefined, this);
|
|
309931
|
-
$2[3] = t5;
|
|
309932
|
-
} else {
|
|
309933
|
-
t5 = $2[3];
|
|
309934
|
-
}
|
|
309935
309905
|
let t6;
|
|
309936
309906
|
if ($2[4] !== thinking) {
|
|
309937
309907
|
t6 = /* @__PURE__ */ jsx_dev_runtime96.jsxDEV(ThemedBox_default, {
|
|
@@ -309950,21 +309920,18 @@ function AssistantThinkingMessage(t0) {
|
|
|
309950
309920
|
if ($2[6] !== t4 || $2[7] !== t6) {
|
|
309951
309921
|
t7 = /* @__PURE__ */ jsx_dev_runtime96.jsxDEV(ThemedBox_default, {
|
|
309952
309922
|
flexDirection: "column",
|
|
309953
|
-
gap: 1,
|
|
309954
309923
|
marginTop: t4,
|
|
309955
309924
|
width: "100%",
|
|
309956
309925
|
borderStyle: "single",
|
|
309957
309926
|
borderColor: "dim",
|
|
309958
309927
|
borderLeft: true,
|
|
309959
|
-
borderTop:
|
|
309928
|
+
borderTop: true,
|
|
309960
309929
|
borderRight: false,
|
|
309961
309930
|
borderBottom: false,
|
|
309962
309931
|
paddingLeft: 1,
|
|
309963
|
-
|
|
309964
|
-
|
|
309965
|
-
|
|
309966
|
-
]
|
|
309967
|
-
}, undefined, true, undefined, this);
|
|
309932
|
+
borderText: { content: " TRACE // COGNITION ", position: "top", align: "start", offset: 1 },
|
|
309933
|
+
children: t6
|
|
309934
|
+
}, undefined, false, undefined, this);
|
|
309968
309935
|
$2[6] = t4;
|
|
309969
309936
|
$2[7] = t6;
|
|
309970
309937
|
$2[8] = t7;
|
|
@@ -312076,6 +312043,7 @@ ${tail}`;
|
|
|
312076
312043
|
logError2(new Error("No content found in user prompt message"));
|
|
312077
312044
|
return null;
|
|
312078
312045
|
}
|
|
312046
|
+
const borderText = useBriefLayout ? undefined : { content: " USER ", position: "top", align: "start", offset: 1 };
|
|
312079
312047
|
return /* @__PURE__ */ jsx_dev_runtime110.jsxDEV(ThemedBox_default, {
|
|
312080
312048
|
flexDirection: "column",
|
|
312081
312049
|
marginTop: addMargin ? 1 : 0,
|
|
@@ -312085,25 +312053,16 @@ ${tail}`;
|
|
|
312085
312053
|
borderStyle: useBriefLayout ? undefined : "single",
|
|
312086
312054
|
borderColor: useBriefLayout ? undefined : "promptBorder",
|
|
312087
312055
|
borderLeft: useBriefLayout ? false : true,
|
|
312088
|
-
borderTop: false,
|
|
312056
|
+
borderTop: useBriefLayout ? false : true,
|
|
312089
312057
|
borderRight: false,
|
|
312090
312058
|
borderBottom: false,
|
|
312091
|
-
|
|
312092
|
-
|
|
312093
|
-
|
|
312094
|
-
|
|
312095
|
-
|
|
312096
|
-
|
|
312097
|
-
|
|
312098
|
-
}, undefined, false, undefined, this)
|
|
312099
|
-
}, undefined, false, undefined, this),
|
|
312100
|
-
/* @__PURE__ */ jsx_dev_runtime110.jsxDEV(HighlightedThinkingText, {
|
|
312101
|
-
text: displayText,
|
|
312102
|
-
useBriefLayout,
|
|
312103
|
-
timestamp: useBriefLayout ? timestamp : undefined
|
|
312104
|
-
}, undefined, false, undefined, this)
|
|
312105
|
-
]
|
|
312106
|
-
}, undefined, true, undefined, this);
|
|
312059
|
+
borderText,
|
|
312060
|
+
children: /* @__PURE__ */ jsx_dev_runtime110.jsxDEV(HighlightedThinkingText, {
|
|
312061
|
+
text: displayText,
|
|
312062
|
+
useBriefLayout,
|
|
312063
|
+
timestamp: useBriefLayout ? timestamp : undefined
|
|
312064
|
+
}, undefined, false, undefined, this)
|
|
312065
|
+
}, undefined, false, undefined, this);
|
|
312107
312066
|
}
|
|
312108
312067
|
var import_react82, jsx_dev_runtime110, MAX_DISPLAY_CHARS = 1e4, TRUNCATE_HEAD_CHARS = 2500, TRUNCATE_TAIL_CHARS = 2500;
|
|
312109
312068
|
var init_UserPromptMessage = __esm(() => {
|
|
@@ -350377,7 +350336,7 @@ function getAnthropicEnvMetadata() {
|
|
|
350377
350336
|
function getBuildAgeMinutes() {
|
|
350378
350337
|
if (false)
|
|
350379
350338
|
;
|
|
350380
|
-
const buildTime = new Date("2026-05-
|
|
350339
|
+
const buildTime = new Date("2026-05-08T02:26:11.339Z").getTime();
|
|
350381
350340
|
if (isNaN(buildTime))
|
|
350382
350341
|
return;
|
|
350383
350342
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -356417,7 +356376,6 @@ function It2SetupPrompt(t0) {
|
|
|
356417
356376
|
gap: t10,
|
|
356418
356377
|
paddingBottom: t11,
|
|
356419
356378
|
children: [
|
|
356420
|
-
t12,
|
|
356421
356379
|
t13,
|
|
356422
356380
|
t15
|
|
356423
356381
|
]
|
|
@@ -356437,6 +356395,7 @@ function It2SetupPrompt(t0) {
|
|
|
356437
356395
|
if ($2[40] !== T1 || $2[41] !== t14 || $2[42] !== t16) {
|
|
356438
356396
|
t17 = /* @__PURE__ */ jsx_dev_runtime144.jsxDEV(T1, {
|
|
356439
356397
|
color: t14,
|
|
356398
|
+
title: "ITERM2 SPLIT",
|
|
356440
356399
|
children: t16
|
|
356441
356400
|
}, undefined, false, undefined, this);
|
|
356442
356401
|
$2[40] = T1;
|
|
@@ -376186,7 +376145,7 @@ var toString5, getPrototypeOf2, iterator2, toStringTag2, kindOf2, kindOfTest2 =
|
|
|
376186
376145
|
};
|
|
376187
376146
|
isArray5(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter4));
|
|
376188
376147
|
return obj;
|
|
376189
|
-
},
|
|
376148
|
+
}, noop15 = () => {}, toFiniteNumber2 = (value, defaultValue) => {
|
|
376190
376149
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
376191
376150
|
}, toJSONObject2 = (obj) => {
|
|
376192
376151
|
const stack = new Array(10);
|
|
@@ -376319,7 +376278,7 @@ var init_utils10 = __esm(() => {
|
|
|
376319
376278
|
freezeMethods: freezeMethods2,
|
|
376320
376279
|
toObjectSet: toObjectSet2,
|
|
376321
376280
|
toCamelCase: toCamelCase2,
|
|
376322
|
-
noop:
|
|
376281
|
+
noop: noop15,
|
|
376323
376282
|
toFiniteNumber: toFiniteNumber2,
|
|
376324
376283
|
findKey: findKey2,
|
|
376325
376284
|
global: _global2,
|
|
@@ -418190,7 +418149,7 @@ function buildPrimarySection() {
|
|
|
418190
418149
|
}, undefined, false, undefined, this);
|
|
418191
418150
|
return [{
|
|
418192
418151
|
label: "Version",
|
|
418193
|
-
value: "0.3.
|
|
418152
|
+
value: "0.3.60"
|
|
418194
418153
|
}, {
|
|
418195
418154
|
label: "Session name",
|
|
418196
418155
|
value: nameValue
|
|
@@ -418758,20 +418717,6 @@ var init_ThemePicker = __esm(() => {
|
|
|
418758
418717
|
};
|
|
418759
418718
|
});
|
|
418760
418719
|
|
|
418761
|
-
// missing-module-stub:../providerProfiles.js
|
|
418762
|
-
var noop17 = () => null, getActiveOpenAIModelOptionsCache2, getActiveProviderProfile2, getProfileModelOptions2;
|
|
418763
|
-
var init_providerProfiles2 = __esm(() => {
|
|
418764
|
-
getActiveOpenAIModelOptionsCache2 = noop17;
|
|
418765
|
-
getActiveProviderProfile2 = noop17;
|
|
418766
|
-
getProfileModelOptions2 = noop17;
|
|
418767
|
-
});
|
|
418768
|
-
|
|
418769
|
-
// missing-module-stub:../providerDiscovery.js
|
|
418770
|
-
var noop18 = () => null, getOllamaApiBaseUrl2;
|
|
418771
|
-
var init_providerDiscovery2 = __esm(() => {
|
|
418772
|
-
getOllamaApiBaseUrl2 = noop18;
|
|
418773
|
-
});
|
|
418774
|
-
|
|
418775
418720
|
// src/utils/model/ollamaModels.ts
|
|
418776
418721
|
function isOllamaProvider() {
|
|
418777
418722
|
if (process.env.OLLAMA_BASE_URL)
|
|
@@ -418787,7 +418732,7 @@ function isOllamaProvider() {
|
|
|
418787
418732
|
return false;
|
|
418788
418733
|
}
|
|
418789
418734
|
async function fetchOllamaModels() {
|
|
418790
|
-
const apiUrl =
|
|
418735
|
+
const apiUrl = getOllamaApiBaseUrl();
|
|
418791
418736
|
if (!apiUrl)
|
|
418792
418737
|
return [];
|
|
418793
418738
|
const controller = new AbortController;
|
|
@@ -418836,7 +418781,7 @@ function getCachedOllamaModelOptions() {
|
|
|
418836
418781
|
}
|
|
418837
418782
|
var cachedOllamaOptions = null, fetchPromise = null;
|
|
418838
418783
|
var init_ollamaModels = __esm(() => {
|
|
418839
|
-
|
|
418784
|
+
init_providerDiscovery();
|
|
418840
418785
|
});
|
|
418841
418786
|
|
|
418842
418787
|
// src/utils/model/nvidiaNimModels.ts
|
|
@@ -419687,7 +419632,7 @@ function getModelOptionsBase(fastMode = false) {
|
|
|
419687
419632
|
return standardOptions;
|
|
419688
419633
|
}
|
|
419689
419634
|
if (getAdditionalModelOptionsCacheScope()?.startsWith("openai:")) {
|
|
419690
|
-
const activeOpenAIOptions =
|
|
419635
|
+
const activeOpenAIOptions = getActiveOpenAIModelOptionsCache();
|
|
419691
419636
|
return [
|
|
419692
419637
|
getDefaultOptionForUser(fastMode),
|
|
419693
419638
|
...activeOpenAIOptions.length > 0 ? activeOpenAIOptions : getScopedAdditionalModelOptions()
|
|
@@ -419696,9 +419641,9 @@ function getModelOptionsBase(fastMode = false) {
|
|
|
419696
419641
|
const profileEnvApplied = process.env.CLAUDE_CODE_PROVIDER_PROFILE_ENV_APPLIED === "1";
|
|
419697
419642
|
const profileModelOptions = [];
|
|
419698
419643
|
if (profileEnvApplied) {
|
|
419699
|
-
const activeProfile =
|
|
419644
|
+
const activeProfile = getActiveProviderProfile();
|
|
419700
419645
|
if (activeProfile) {
|
|
419701
|
-
const models =
|
|
419646
|
+
const models = getProfileModelOptions(activeProfile);
|
|
419702
419647
|
profileModelOptions.push(...models);
|
|
419703
419648
|
}
|
|
419704
419649
|
}
|
|
@@ -419883,7 +419828,7 @@ var init_modelOptions = __esm(() => {
|
|
|
419883
419828
|
init_model();
|
|
419884
419829
|
init_context();
|
|
419885
419830
|
init_config8();
|
|
419886
|
-
|
|
419831
|
+
init_providerProfiles();
|
|
419887
419832
|
init_ollamaModels();
|
|
419888
419833
|
init_nvidiaNimModels();
|
|
419889
419834
|
init_minimaxModels();
|
|
@@ -427621,9 +427566,9 @@ var init_diff4 = __esm(() => {
|
|
|
427621
427566
|
});
|
|
427622
427567
|
|
|
427623
427568
|
// missing-module-stub:./dream.js
|
|
427624
|
-
var
|
|
427569
|
+
var noop16 = () => null, dream_default;
|
|
427625
427570
|
var init_dream = __esm(() => {
|
|
427626
|
-
dream_default =
|
|
427571
|
+
dream_default = noop16;
|
|
427627
427572
|
});
|
|
427628
427573
|
|
|
427629
427574
|
// src/commands/dream/index.ts
|
|
@@ -456368,6 +456313,7 @@ function MobileQRCode(t0) {
|
|
|
456368
456313
|
let t28;
|
|
456369
456314
|
if ($2[49] !== T1 || $2[50] !== t27) {
|
|
456370
456315
|
t28 = /* @__PURE__ */ jsx_dev_runtime252.jsxDEV(T1, {
|
|
456316
|
+
title: "MOBILE BRIDGE",
|
|
456371
456317
|
children: t27
|
|
456372
456318
|
}, undefined, false, undefined, this);
|
|
456373
456319
|
$2[49] = T1;
|
|
@@ -457890,7 +457836,7 @@ function getStartupLines(termWidth) {
|
|
|
457890
457836
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
457891
457837
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
457892
457838
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
457893
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
457839
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.60"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
457894
457840
|
out.push("");
|
|
457895
457841
|
return out;
|
|
457896
457842
|
}
|
|
@@ -470055,9 +470001,9 @@ var exports_MonitorMcpDetailDialog = {};
|
|
|
470055
470001
|
__export(exports_MonitorMcpDetailDialog, {
|
|
470056
470002
|
default: () => MonitorMcpDetailDialog_default
|
|
470057
470003
|
});
|
|
470058
|
-
var
|
|
470004
|
+
var noop17 = () => null, MonitorMcpDetailDialog_default;
|
|
470059
470005
|
var init_MonitorMcpDetailDialog = __esm(() => {
|
|
470060
|
-
MonitorMcpDetailDialog_default =
|
|
470006
|
+
MonitorMcpDetailDialog_default = noop17;
|
|
470061
470007
|
});
|
|
470062
470008
|
|
|
470063
470009
|
// src/components/tasks/BackgroundTasksDialog.tsx
|
|
@@ -475348,6 +475294,7 @@ function Passes({
|
|
|
475348
475294
|
}, []);
|
|
475349
475295
|
if (loading) {
|
|
475350
475296
|
return /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(Pane, {
|
|
475297
|
+
title: "GUEST PASSES",
|
|
475351
475298
|
children: /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(ThemedBox_default, {
|
|
475352
475299
|
flexDirection: "column",
|
|
475353
475300
|
gap: 1,
|
|
@@ -475375,6 +475322,7 @@ function Passes({
|
|
|
475375
475322
|
}
|
|
475376
475323
|
if (!isAvailable) {
|
|
475377
475324
|
return /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(Pane, {
|
|
475325
|
+
title: "GUEST PASSES",
|
|
475378
475326
|
children: /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(ThemedBox_default, {
|
|
475379
475327
|
flexDirection: "column",
|
|
475380
475328
|
gap: 1,
|
|
@@ -475447,6 +475395,7 @@ function Passes({
|
|
|
475447
475395
|
}, pass.passNumber, true, undefined, this);
|
|
475448
475396
|
};
|
|
475449
475397
|
return /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(Pane, {
|
|
475398
|
+
title: "GUEST PASSES",
|
|
475450
475399
|
children: /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(ThemedBox_default, {
|
|
475451
475400
|
flexDirection: "column",
|
|
475452
475401
|
gap: 1,
|
|
@@ -476389,7 +476338,7 @@ function isEnvTruthy10(value) {
|
|
|
476389
476338
|
return normalized !== "" && normalized !== "0" && normalized !== "false" && normalized !== "no";
|
|
476390
476339
|
}
|
|
476391
476340
|
function getSafeDisplayValue(value, processEnv, profileEnv, fallback = "(not set)") {
|
|
476392
|
-
return
|
|
476341
|
+
return redactSecretValueForDisplay(value, processEnv, profileEnv) ?? fallback;
|
|
476393
476342
|
}
|
|
476394
476343
|
function getProviderWizardDefaults(processEnv = process.env) {
|
|
476395
476344
|
const secretSource = processEnv;
|
|
@@ -477613,7 +477562,7 @@ var init_provider = __esm(() => {
|
|
|
477613
477562
|
init_useTerminalSize();
|
|
477614
477563
|
init_ink2();
|
|
477615
477564
|
init_providerConfig();
|
|
477616
|
-
|
|
477565
|
+
init_providerProfile();
|
|
477617
477566
|
init_geminiAuth();
|
|
477618
477567
|
init_geminiCredentials();
|
|
477619
477568
|
init_envUtils();
|
|
@@ -486638,7 +486587,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
486638
486587
|
var call61 = async () => {
|
|
486639
486588
|
return {
|
|
486640
486589
|
type: "text",
|
|
486641
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
486590
|
+
value: `${"99.0.0"} (built ${"2026-05-08T02:26:11.339Z"})`
|
|
486642
486591
|
};
|
|
486643
486592
|
}, version2, version_default;
|
|
486644
486593
|
var init_version = __esm(() => {
|
|
@@ -491864,18 +491813,11 @@ function EffortPicker({ onSelect, onCancel }) {
|
|
|
491864
491813
|
/* @__PURE__ */ jsx_dev_runtime355.jsxDEV(ThemedBox_default, {
|
|
491865
491814
|
marginBottom: 1,
|
|
491866
491815
|
flexDirection: "column",
|
|
491867
|
-
children:
|
|
491868
|
-
|
|
491869
|
-
|
|
491870
|
-
|
|
491871
|
-
|
|
491872
|
-
}, undefined, false, undefined, this),
|
|
491873
|
-
/* @__PURE__ */ jsx_dev_runtime355.jsxDEV(ThemedText, {
|
|
491874
|
-
dimColor: true,
|
|
491875
|
-
children: supportsEffort && usesOpenAIEffort ? `OpenAI/Codex provider (${provider2})` : supportsEffort ? `Stratagem model · ${provider2} provider` : `Effort not supported for this model`
|
|
491876
|
-
}, undefined, false, undefined, this)
|
|
491877
|
-
]
|
|
491878
|
-
}, undefined, true, undefined, this),
|
|
491816
|
+
children: /* @__PURE__ */ jsx_dev_runtime355.jsxDEV(ThemedText, {
|
|
491817
|
+
dimColor: true,
|
|
491818
|
+
children: supportsEffort && usesOpenAIEffort ? `OpenAI/Codex provider (${provider2})` : supportsEffort ? `Stratagem model · ${provider2} provider` : `Effort not supported for this model`
|
|
491819
|
+
}, undefined, false, undefined, this)
|
|
491820
|
+
}, undefined, false, undefined, this),
|
|
491879
491821
|
/* @__PURE__ */ jsx_dev_runtime355.jsxDEV(ThemedBox_default, {
|
|
491880
491822
|
marginBottom: 1,
|
|
491881
491823
|
children: /* @__PURE__ */ jsx_dev_runtime355.jsxDEV(Select, {
|
|
@@ -492160,9 +492102,12 @@ function EffortPickerWrapper({ onDone }) {
|
|
|
492160
492102
|
function handleCancel() {
|
|
492161
492103
|
onDone("Cancelled");
|
|
492162
492104
|
}
|
|
492163
|
-
return /* @__PURE__ */ jsx_dev_runtime356.jsxDEV(
|
|
492164
|
-
|
|
492165
|
-
|
|
492105
|
+
return /* @__PURE__ */ jsx_dev_runtime356.jsxDEV(Pane, {
|
|
492106
|
+
title: "EFFORT",
|
|
492107
|
+
children: /* @__PURE__ */ jsx_dev_runtime356.jsxDEV(EffortPicker, {
|
|
492108
|
+
onSelect: handleSelect,
|
|
492109
|
+
onCancel: handleCancel
|
|
492110
|
+
}, undefined, false, undefined, this)
|
|
492166
492111
|
}, undefined, false, undefined, this);
|
|
492167
492112
|
}
|
|
492168
492113
|
var import_react_compiler_runtime261, React119, jsx_dev_runtime356, COMMON_HELP_ARGS2;
|
|
@@ -492171,6 +492116,7 @@ var init_effort2 = __esm(() => {
|
|
|
492171
492116
|
init_AppState();
|
|
492172
492117
|
init_effort();
|
|
492173
492118
|
init_EffortPicker();
|
|
492119
|
+
init_Pane();
|
|
492174
492120
|
init_settings2();
|
|
492175
492121
|
import_react_compiler_runtime261 = __toESM(require_dist3(), 1);
|
|
492176
492122
|
React119 = __toESM(require_react(), 1);
|
|
@@ -492195,7 +492141,7 @@ var init_effort3 = __esm(() => {
|
|
|
492195
492141
|
});
|
|
492196
492142
|
|
|
492197
492143
|
// native-stub:asciichart
|
|
492198
|
-
var
|
|
492144
|
+
var noop18 = () => null, handler6, stub7, SandboxManager7, plot5;
|
|
492199
492145
|
var init_asciichart = __esm(() => {
|
|
492200
492146
|
handler6 = {
|
|
492201
492147
|
get(_, prop) {
|
|
@@ -492209,12 +492155,12 @@ var init_asciichart = __esm(() => {
|
|
|
492209
492155
|
return () => ({});
|
|
492210
492156
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
492211
492157
|
return { parse: () => ({}) };
|
|
492212
|
-
return
|
|
492158
|
+
return noop18;
|
|
492213
492159
|
}
|
|
492214
492160
|
};
|
|
492215
|
-
stub7 = new Proxy(
|
|
492216
|
-
SandboxManager7 = new Proxy({}, { get: () =>
|
|
492217
|
-
plot5 =
|
|
492161
|
+
stub7 = new Proxy(noop18, handler6);
|
|
492162
|
+
SandboxManager7 = new Proxy({}, { get: () => noop18 });
|
|
492163
|
+
plot5 = noop18;
|
|
492218
492164
|
});
|
|
492219
492165
|
|
|
492220
492166
|
// src/utils/statsCache.ts
|
|
@@ -502956,9 +502902,9 @@ var init_config8 = __esm(() => {
|
|
|
502956
502902
|
});
|
|
502957
502903
|
|
|
502958
502904
|
// missing-module-stub:./providerProfiles.js
|
|
502959
|
-
var
|
|
502960
|
-
var
|
|
502961
|
-
applyActiveProviderProfileFromConfig2 =
|
|
502905
|
+
var noop19 = () => null, applyActiveProviderProfileFromConfig2;
|
|
502906
|
+
var init_providerProfiles2 = __esm(() => {
|
|
502907
|
+
applyActiveProviderProfileFromConfig2 = noop19;
|
|
502962
502908
|
});
|
|
502963
502909
|
|
|
502964
502910
|
// src/utils/managedEnv.ts
|
|
@@ -503047,7 +502993,7 @@ var init_managedEnv = __esm(() => {
|
|
|
503047
502993
|
init_managedEnvConstants();
|
|
503048
502994
|
init_mtls();
|
|
503049
502995
|
init_proxy();
|
|
503050
|
-
|
|
502996
|
+
init_providerProfiles2();
|
|
503051
502997
|
init_constants2();
|
|
503052
502998
|
init_settings2();
|
|
503053
502999
|
TRUSTED_SETTING_SOURCES = [
|
|
@@ -537691,7 +537637,7 @@ __export(exports_cacache, {
|
|
|
537691
537637
|
ATTR_SERVICE_VERSION: () => ATTR_SERVICE_VERSION6,
|
|
537692
537638
|
ATTR_SERVICE_NAME: () => ATTR_SERVICE_NAME6
|
|
537693
537639
|
});
|
|
537694
|
-
var
|
|
537640
|
+
var noop20 = () => null, noopClass5 = class {
|
|
537695
537641
|
}, handler7, stub8, cacache_default, __stub5 = true, SandboxViolationStore6 = null, SandboxManager8, SandboxRuntimeConfigSchema6, BROWSER_TOOLS5, getMcpConfigForManifest5, ColorDiff6 = null, ColorFile6 = null, getSyntaxTheme7, plot6, createClaudeForChromeMcpServer5, ExportResultCode5, resourceFromAttributes6, Resource5, SimpleSpanProcessor5, BatchSpanProcessor6, NodeTracerProvider5, BasicTracerProvider6, OTLPTraceExporter5, OTLPLogExporter5, OTLPMetricExporter5, PrometheusExporter5, LoggerProvider6, SimpleLogRecordProcessor5, BatchLogRecordProcessor6, MeterProvider6, PeriodicExportingMetricReader6, trace6, context6, SpanStatusCode5, ATTR_SERVICE_NAME6 = "service.name", ATTR_SERVICE_VERSION6 = "service.version", SEMRESATTRS_SERVICE_NAME5 = "service.name", SEMRESATTRS_SERVICE_VERSION5 = "service.version", AggregationTemporality5, DataPointType5, InstrumentType5, PushMetricExporter5, SeverityNumber5;
|
|
537696
537642
|
var init_cacache = __esm(() => {
|
|
537697
537643
|
handler7 = {
|
|
@@ -537706,20 +537652,20 @@ var init_cacache = __esm(() => {
|
|
|
537706
537652
|
return () => ({});
|
|
537707
537653
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
537708
537654
|
return { parse: () => ({}) };
|
|
537709
|
-
return
|
|
537655
|
+
return noop20;
|
|
537710
537656
|
}
|
|
537711
537657
|
};
|
|
537712
|
-
stub8 = new Proxy(
|
|
537658
|
+
stub8 = new Proxy(noop20, handler7);
|
|
537713
537659
|
cacache_default = stub8;
|
|
537714
|
-
SandboxManager8 = new Proxy({}, { get: () =>
|
|
537660
|
+
SandboxManager8 = new Proxy({}, { get: () => noop20 });
|
|
537715
537661
|
SandboxRuntimeConfigSchema6 = { parse: () => ({}) };
|
|
537716
537662
|
BROWSER_TOOLS5 = [];
|
|
537717
|
-
getMcpConfigForManifest5 =
|
|
537718
|
-
getSyntaxTheme7 =
|
|
537719
|
-
plot6 =
|
|
537720
|
-
createClaudeForChromeMcpServer5 =
|
|
537663
|
+
getMcpConfigForManifest5 = noop20;
|
|
537664
|
+
getSyntaxTheme7 = noop20;
|
|
537665
|
+
plot6 = noop20;
|
|
537666
|
+
createClaudeForChromeMcpServer5 = noop20;
|
|
537721
537667
|
ExportResultCode5 = { SUCCESS: 0, FAILED: 1 };
|
|
537722
|
-
resourceFromAttributes6 =
|
|
537668
|
+
resourceFromAttributes6 = noop20;
|
|
537723
537669
|
Resource5 = noopClass5;
|
|
537724
537670
|
SimpleSpanProcessor5 = noopClass5;
|
|
537725
537671
|
BatchSpanProcessor6 = noopClass5;
|
|
@@ -537734,8 +537680,8 @@ var init_cacache = __esm(() => {
|
|
|
537734
537680
|
BatchLogRecordProcessor6 = noopClass5;
|
|
537735
537681
|
MeterProvider6 = noopClass5;
|
|
537736
537682
|
PeriodicExportingMetricReader6 = noopClass5;
|
|
537737
|
-
trace6 = { getTracer: () => ({ startSpan: () => ({ end:
|
|
537738
|
-
context6 = { active:
|
|
537683
|
+
trace6 = { getTracer: () => ({ startSpan: () => ({ end: noop20, setAttribute: noop20, setStatus: noop20, recordException: noop20 }) }) };
|
|
537684
|
+
context6 = { active: noop20, with: (_, fn) => fn() };
|
|
537739
537685
|
SpanStatusCode5 = { OK: 0, ERROR: 1, UNSET: 2 };
|
|
537740
537686
|
AggregationTemporality5 = { CUMULATIVE: 0, DELTA: 1 };
|
|
537741
537687
|
DataPointType5 = { HISTOGRAM: 0, SUM: 1, GAUGE: 2 };
|
|
@@ -555467,7 +555413,7 @@ function WelcomeV2() {
|
|
|
555467
555413
|
dimColor: true,
|
|
555468
555414
|
children: [
|
|
555469
555415
|
"v",
|
|
555470
|
-
"0.3.
|
|
555416
|
+
"0.3.60",
|
|
555471
555417
|
" "
|
|
555472
555418
|
]
|
|
555473
555419
|
}, undefined, true, undefined, this)
|
|
@@ -556490,7 +556436,7 @@ function BypassPermissionsModeDialog(t0) {
|
|
|
556490
556436
|
children: [
|
|
556491
556437
|
/* @__PURE__ */ jsx_dev_runtime481.jsxDEV(ThemedText, {
|
|
556492
556438
|
children: [
|
|
556493
|
-
"In Bypass Permissions mode,
|
|
556439
|
+
"In Bypass Permissions mode, STRATAGEM X7 will not ask for your approval before running potentially dangerous commands.",
|
|
556494
556440
|
/* @__PURE__ */ jsx_dev_runtime481.jsxDEV(Newline, {}, undefined, false, undefined, this),
|
|
556495
556441
|
"This mode should only be used in a sandboxed container/VM that has restricted internet access and can easily be restored if damaged."
|
|
556496
556442
|
]
|
|
@@ -556523,7 +556469,7 @@ function BypassPermissionsModeDialog(t0) {
|
|
|
556523
556469
|
let t5;
|
|
556524
556470
|
if ($2[5] !== onChange) {
|
|
556525
556471
|
t5 = /* @__PURE__ */ jsx_dev_runtime481.jsxDEV(Dialog, {
|
|
556526
|
-
title: "WARNING:
|
|
556472
|
+
title: "WARNING: STRATAGEM X7 running in Bypass Permissions mode",
|
|
556527
556473
|
color: "error",
|
|
556528
556474
|
onCancel: handleEscape,
|
|
556529
556475
|
children: [
|
|
@@ -574925,7 +574871,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
574925
574871
|
pendingHookMessages
|
|
574926
574872
|
}, renderAndRun);
|
|
574927
574873
|
}
|
|
574928
|
-
}).version("0.3.
|
|
574874
|
+
}).version("0.3.60 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
574929
574875
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
574930
574876
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
574931
574877
|
if (canUserConfigureAdvisor()) {
|
|
@@ -575358,7 +575304,7 @@ var init_main3 = __esm(() => {
|
|
|
575358
575304
|
});
|
|
575359
575305
|
|
|
575360
575306
|
// src/entrypoints/cli.tsx
|
|
575361
|
-
|
|
575307
|
+
init_providerProfile();
|
|
575362
575308
|
init_providerValidation();
|
|
575363
575309
|
if (typeof globalThis.File === "undefined") {
|
|
575364
575310
|
try {
|
|
@@ -575386,7 +575332,7 @@ if (false) {}
|
|
|
575386
575332
|
async function main2() {
|
|
575387
575333
|
const args = process.argv.slice(2);
|
|
575388
575334
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
575389
|
-
console.log(`${"0.3.
|
|
575335
|
+
console.log(`${"0.3.60"} (STRATAGEM X7)`);
|
|
575390
575336
|
return;
|
|
575391
575337
|
}
|
|
575392
575338
|
if (args.includes("--provider")) {
|
|
@@ -575508,4 +575454,4 @@ async function main2() {
|
|
|
575508
575454
|
}
|
|
575509
575455
|
main2();
|
|
575510
575456
|
|
|
575511
|
-
//# debugId=
|
|
575457
|
+
//# debugId=D5777F805277E58A64756E2164756E21
|