stratagem-x7 0.3.58 → 0.3.61
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 +227 -205
- 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();
|
|
@@ -308313,52 +308306,98 @@ function OAuthStatusMessage({
|
|
|
308313
308306
|
}) {
|
|
308314
308307
|
switch (oauthStatus.state) {
|
|
308315
308308
|
case "idle": {
|
|
308316
|
-
const promptText = startingMessage || "
|
|
308317
|
-
const
|
|
308309
|
+
const promptText = startingMessage || "Connect STRATAGEM X7 to your provider. Anthropic supports Claude Pro/Max subscription OAuth or Console API key; other providers use API keys.";
|
|
308310
|
+
const providerOptions = [
|
|
308318
308311
|
{
|
|
308319
308312
|
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308320
308313
|
children: [
|
|
308321
|
-
"
|
|
308314
|
+
"Anthropic ·",
|
|
308322
308315
|
" ",
|
|
308323
308316
|
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308324
308317
|
dimColor: true,
|
|
308325
|
-
children: "Pro
|
|
308318
|
+
children: "Claude Pro/Max subscription or Console API key"
|
|
308326
308319
|
}, undefined, false, undefined, this),
|
|
308327
308320
|
`
|
|
308328
308321
|
`
|
|
308329
308322
|
]
|
|
308330
308323
|
}, undefined, true, undefined, this),
|
|
308331
|
-
value: "
|
|
308324
|
+
value: "anthropic"
|
|
308332
308325
|
},
|
|
308333
308326
|
{
|
|
308334
308327
|
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308335
308328
|
children: [
|
|
308336
|
-
"
|
|
308329
|
+
"Other provider ·",
|
|
308337
308330
|
" ",
|
|
308338
308331
|
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308339
308332
|
dimColor: true,
|
|
308340
|
-
children: "
|
|
308333
|
+
children: "OpenAI, Gemini, Bedrock, Ollama, Codex, and more"
|
|
308341
308334
|
}, undefined, false, undefined, this),
|
|
308342
308335
|
`
|
|
308343
308336
|
`
|
|
308344
308337
|
]
|
|
308345
308338
|
}, undefined, true, undefined, this),
|
|
308346
|
-
value: "
|
|
308339
|
+
value: "platform"
|
|
308340
|
+
}
|
|
308341
|
+
];
|
|
308342
|
+
return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308343
|
+
flexDirection: "column",
|
|
308344
|
+
gap: 1,
|
|
308345
|
+
marginTop: 1,
|
|
308346
|
+
children: [
|
|
308347
|
+
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308348
|
+
bold: true,
|
|
308349
|
+
children: promptText
|
|
308350
|
+
}, undefined, false, undefined, this),
|
|
308351
|
+
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308352
|
+
children: "Select provider:"
|
|
308353
|
+
}, undefined, false, undefined, this),
|
|
308354
|
+
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308355
|
+
children: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(Select, {
|
|
308356
|
+
options: providerOptions,
|
|
308357
|
+
onChange: (value) => {
|
|
308358
|
+
if (value === "platform") {
|
|
308359
|
+
logEvent("tengu_oauth_platform_selected", {});
|
|
308360
|
+
setOAuthStatus({ state: "platform_setup" });
|
|
308361
|
+
return;
|
|
308362
|
+
}
|
|
308363
|
+
setOAuthStatus({ state: "anthropic_auth" });
|
|
308364
|
+
}
|
|
308365
|
+
}, undefined, false, undefined, this)
|
|
308366
|
+
}, undefined, false, undefined, this)
|
|
308367
|
+
]
|
|
308368
|
+
}, undefined, true, undefined, this);
|
|
308369
|
+
}
|
|
308370
|
+
case "anthropic_auth": {
|
|
308371
|
+
const anthropicAuthOptions = [
|
|
308372
|
+
{
|
|
308373
|
+
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308374
|
+
children: [
|
|
308375
|
+
"Claude account with subscription ·",
|
|
308376
|
+
" ",
|
|
308377
|
+
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308378
|
+
dimColor: true,
|
|
308379
|
+
children: "Pro, Max, Team, or Enterprise"
|
|
308380
|
+
}, undefined, false, undefined, this),
|
|
308381
|
+
`
|
|
308382
|
+
`
|
|
308383
|
+
]
|
|
308384
|
+
}, undefined, true, undefined, this),
|
|
308385
|
+
value: "claudeai"
|
|
308347
308386
|
},
|
|
308348
308387
|
{
|
|
308349
308388
|
label: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308350
308389
|
children: [
|
|
308351
|
-
"
|
|
308390
|
+
"Anthropic Console account ·",
|
|
308352
308391
|
" ",
|
|
308353
308392
|
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308354
308393
|
dimColor: true,
|
|
308355
|
-
children: "
|
|
308394
|
+
children: "API usage billing"
|
|
308356
308395
|
}, undefined, false, undefined, this),
|
|
308357
308396
|
`
|
|
308358
308397
|
`
|
|
308359
308398
|
]
|
|
308360
308399
|
}, undefined, true, undefined, this),
|
|
308361
|
-
value: "
|
|
308400
|
+
value: "console"
|
|
308362
308401
|
}
|
|
308363
308402
|
];
|
|
308364
308403
|
return /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
@@ -308368,20 +308407,15 @@ function OAuthStatusMessage({
|
|
|
308368
308407
|
children: [
|
|
308369
308408
|
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308370
308409
|
bold: true,
|
|
308371
|
-
children:
|
|
308410
|
+
children: "Anthropic authentication"
|
|
308372
308411
|
}, undefined, false, undefined, this),
|
|
308373
308412
|
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedText, {
|
|
308374
|
-
children: "Select
|
|
308413
|
+
children: "Select auth method:"
|
|
308375
308414
|
}, undefined, false, undefined, this),
|
|
308376
308415
|
/* @__PURE__ */ jsx_dev_runtime91.jsxDEV(ThemedBox_default, {
|
|
308377
308416
|
children: /* @__PURE__ */ jsx_dev_runtime91.jsxDEV(Select, {
|
|
308378
|
-
options:
|
|
308417
|
+
options: anthropicAuthOptions,
|
|
308379
308418
|
onChange: (value) => {
|
|
308380
|
-
if (value === "platform") {
|
|
308381
|
-
logEvent("tengu_oauth_platform_selected", {});
|
|
308382
|
-
setOAuthStatus({ state: "platform_setup" });
|
|
308383
|
-
return;
|
|
308384
|
-
}
|
|
308385
308419
|
setOAuthStatus({ state: "ready_to_start" });
|
|
308386
308420
|
if (value === "claudeai") {
|
|
308387
308421
|
logEvent("tengu_oauth_claudeai_selected", {});
|
|
@@ -308390,7 +308424,8 @@ function OAuthStatusMessage({
|
|
|
308390
308424
|
logEvent("tengu_oauth_console_selected", {});
|
|
308391
308425
|
setLoginWithClaudeAi(false);
|
|
308392
308426
|
}
|
|
308393
|
-
}
|
|
308427
|
+
},
|
|
308428
|
+
onCancel: () => setOAuthStatus({ state: "idle" })
|
|
308394
308429
|
}, undefined, false, undefined, this)
|
|
308395
308430
|
}, undefined, false, undefined, this)
|
|
308396
308431
|
]
|
|
@@ -350343,7 +350378,7 @@ function getAnthropicEnvMetadata() {
|
|
|
350343
350378
|
function getBuildAgeMinutes() {
|
|
350344
350379
|
if (false)
|
|
350345
350380
|
;
|
|
350346
|
-
const buildTime = new Date("2026-05-
|
|
350381
|
+
const buildTime = new Date("2026-05-08T02:37:06.728Z").getTime();
|
|
350347
350382
|
if (isNaN(buildTime))
|
|
350348
350383
|
return;
|
|
350349
350384
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -356383,7 +356418,6 @@ function It2SetupPrompt(t0) {
|
|
|
356383
356418
|
gap: t10,
|
|
356384
356419
|
paddingBottom: t11,
|
|
356385
356420
|
children: [
|
|
356386
|
-
t12,
|
|
356387
356421
|
t13,
|
|
356388
356422
|
t15
|
|
356389
356423
|
]
|
|
@@ -356403,6 +356437,7 @@ function It2SetupPrompt(t0) {
|
|
|
356403
356437
|
if ($2[40] !== T1 || $2[41] !== t14 || $2[42] !== t16) {
|
|
356404
356438
|
t17 = /* @__PURE__ */ jsx_dev_runtime144.jsxDEV(T1, {
|
|
356405
356439
|
color: t14,
|
|
356440
|
+
title: "ITERM2 SPLIT",
|
|
356406
356441
|
children: t16
|
|
356407
356442
|
}, undefined, false, undefined, this);
|
|
356408
356443
|
$2[40] = T1;
|
|
@@ -376152,7 +376187,7 @@ var toString5, getPrototypeOf2, iterator2, toStringTag2, kindOf2, kindOfTest2 =
|
|
|
376152
376187
|
};
|
|
376153
376188
|
isArray5(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter4));
|
|
376154
376189
|
return obj;
|
|
376155
|
-
},
|
|
376190
|
+
}, noop15 = () => {}, toFiniteNumber2 = (value, defaultValue) => {
|
|
376156
376191
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
376157
376192
|
}, toJSONObject2 = (obj) => {
|
|
376158
376193
|
const stack = new Array(10);
|
|
@@ -376285,7 +376320,7 @@ var init_utils10 = __esm(() => {
|
|
|
376285
376320
|
freezeMethods: freezeMethods2,
|
|
376286
376321
|
toObjectSet: toObjectSet2,
|
|
376287
376322
|
toCamelCase: toCamelCase2,
|
|
376288
|
-
noop:
|
|
376323
|
+
noop: noop15,
|
|
376289
376324
|
toFiniteNumber: toFiniteNumber2,
|
|
376290
376325
|
findKey: findKey2,
|
|
376291
376326
|
global: _global2,
|
|
@@ -418156,7 +418191,7 @@ function buildPrimarySection() {
|
|
|
418156
418191
|
}, undefined, false, undefined, this);
|
|
418157
418192
|
return [{
|
|
418158
418193
|
label: "Version",
|
|
418159
|
-
value: "0.3.
|
|
418194
|
+
value: "0.3.61"
|
|
418160
418195
|
}, {
|
|
418161
418196
|
label: "Session name",
|
|
418162
418197
|
value: nameValue
|
|
@@ -418724,20 +418759,6 @@ var init_ThemePicker = __esm(() => {
|
|
|
418724
418759
|
};
|
|
418725
418760
|
});
|
|
418726
418761
|
|
|
418727
|
-
// missing-module-stub:../providerProfiles.js
|
|
418728
|
-
var noop17 = () => null, getActiveOpenAIModelOptionsCache2, getActiveProviderProfile2, getProfileModelOptions2;
|
|
418729
|
-
var init_providerProfiles2 = __esm(() => {
|
|
418730
|
-
getActiveOpenAIModelOptionsCache2 = noop17;
|
|
418731
|
-
getActiveProviderProfile2 = noop17;
|
|
418732
|
-
getProfileModelOptions2 = noop17;
|
|
418733
|
-
});
|
|
418734
|
-
|
|
418735
|
-
// missing-module-stub:../providerDiscovery.js
|
|
418736
|
-
var noop18 = () => null, getOllamaApiBaseUrl2;
|
|
418737
|
-
var init_providerDiscovery2 = __esm(() => {
|
|
418738
|
-
getOllamaApiBaseUrl2 = noop18;
|
|
418739
|
-
});
|
|
418740
|
-
|
|
418741
418762
|
// src/utils/model/ollamaModels.ts
|
|
418742
418763
|
function isOllamaProvider() {
|
|
418743
418764
|
if (process.env.OLLAMA_BASE_URL)
|
|
@@ -418753,7 +418774,7 @@ function isOllamaProvider() {
|
|
|
418753
418774
|
return false;
|
|
418754
418775
|
}
|
|
418755
418776
|
async function fetchOllamaModels() {
|
|
418756
|
-
const apiUrl =
|
|
418777
|
+
const apiUrl = getOllamaApiBaseUrl();
|
|
418757
418778
|
if (!apiUrl)
|
|
418758
418779
|
return [];
|
|
418759
418780
|
const controller = new AbortController;
|
|
@@ -418802,7 +418823,7 @@ function getCachedOllamaModelOptions() {
|
|
|
418802
418823
|
}
|
|
418803
418824
|
var cachedOllamaOptions = null, fetchPromise = null;
|
|
418804
418825
|
var init_ollamaModels = __esm(() => {
|
|
418805
|
-
|
|
418826
|
+
init_providerDiscovery();
|
|
418806
418827
|
});
|
|
418807
418828
|
|
|
418808
418829
|
// src/utils/model/nvidiaNimModels.ts
|
|
@@ -419653,7 +419674,7 @@ function getModelOptionsBase(fastMode = false) {
|
|
|
419653
419674
|
return standardOptions;
|
|
419654
419675
|
}
|
|
419655
419676
|
if (getAdditionalModelOptionsCacheScope()?.startsWith("openai:")) {
|
|
419656
|
-
const activeOpenAIOptions =
|
|
419677
|
+
const activeOpenAIOptions = getActiveOpenAIModelOptionsCache();
|
|
419657
419678
|
return [
|
|
419658
419679
|
getDefaultOptionForUser(fastMode),
|
|
419659
419680
|
...activeOpenAIOptions.length > 0 ? activeOpenAIOptions : getScopedAdditionalModelOptions()
|
|
@@ -419662,9 +419683,9 @@ function getModelOptionsBase(fastMode = false) {
|
|
|
419662
419683
|
const profileEnvApplied = process.env.CLAUDE_CODE_PROVIDER_PROFILE_ENV_APPLIED === "1";
|
|
419663
419684
|
const profileModelOptions = [];
|
|
419664
419685
|
if (profileEnvApplied) {
|
|
419665
|
-
const activeProfile =
|
|
419686
|
+
const activeProfile = getActiveProviderProfile();
|
|
419666
419687
|
if (activeProfile) {
|
|
419667
|
-
const models =
|
|
419688
|
+
const models = getProfileModelOptions(activeProfile);
|
|
419668
419689
|
profileModelOptions.push(...models);
|
|
419669
419690
|
}
|
|
419670
419691
|
}
|
|
@@ -419849,7 +419870,7 @@ var init_modelOptions = __esm(() => {
|
|
|
419849
419870
|
init_model();
|
|
419850
419871
|
init_context();
|
|
419851
419872
|
init_config8();
|
|
419852
|
-
|
|
419873
|
+
init_providerProfiles();
|
|
419853
419874
|
init_ollamaModels();
|
|
419854
419875
|
init_nvidiaNimModels();
|
|
419855
419876
|
init_minimaxModels();
|
|
@@ -427587,9 +427608,9 @@ var init_diff4 = __esm(() => {
|
|
|
427587
427608
|
});
|
|
427588
427609
|
|
|
427589
427610
|
// missing-module-stub:./dream.js
|
|
427590
|
-
var
|
|
427611
|
+
var noop16 = () => null, dream_default;
|
|
427591
427612
|
var init_dream = __esm(() => {
|
|
427592
|
-
dream_default =
|
|
427613
|
+
dream_default = noop16;
|
|
427593
427614
|
});
|
|
427594
427615
|
|
|
427595
427616
|
// src/commands/dream/index.ts
|
|
@@ -456334,6 +456355,7 @@ function MobileQRCode(t0) {
|
|
|
456334
456355
|
let t28;
|
|
456335
456356
|
if ($2[49] !== T1 || $2[50] !== t27) {
|
|
456336
456357
|
t28 = /* @__PURE__ */ jsx_dev_runtime252.jsxDEV(T1, {
|
|
456358
|
+
title: "MOBILE BRIDGE",
|
|
456337
456359
|
children: t27
|
|
456338
456360
|
}, undefined, false, undefined, this);
|
|
456339
456361
|
$2[49] = T1;
|
|
@@ -457856,7 +457878,7 @@ function getStartupLines(termWidth) {
|
|
|
457856
457878
|
const sLen = ` ● ${sL} buffer ready — /help for breach controls`.length;
|
|
457857
457879
|
out.push(centerAnsiLine(boxRow(sRow, W2, sLen), tw));
|
|
457858
457880
|
out.push(centerAnsiLine(`${rgb3(...BORDER)}└${"─".repeat(W2 - 2)}┘${RESET2}`, tw));
|
|
457859
|
-
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.
|
|
457881
|
+
out.push(centerAnsiLine(`${rgb3(...DIMCOL)}STRATAGEM X7${RESET2} ${rgb3(...ACCENT)}v${"0.3.61"}${RESET2} ${rgb3(...CYAN)}// breach link stable${RESET2}`, tw));
|
|
457860
457882
|
out.push("");
|
|
457861
457883
|
return out;
|
|
457862
457884
|
}
|
|
@@ -470021,9 +470043,9 @@ var exports_MonitorMcpDetailDialog = {};
|
|
|
470021
470043
|
__export(exports_MonitorMcpDetailDialog, {
|
|
470022
470044
|
default: () => MonitorMcpDetailDialog_default
|
|
470023
470045
|
});
|
|
470024
|
-
var
|
|
470046
|
+
var noop17 = () => null, MonitorMcpDetailDialog_default;
|
|
470025
470047
|
var init_MonitorMcpDetailDialog = __esm(() => {
|
|
470026
|
-
MonitorMcpDetailDialog_default =
|
|
470048
|
+
MonitorMcpDetailDialog_default = noop17;
|
|
470027
470049
|
});
|
|
470028
470050
|
|
|
470029
470051
|
// src/components/tasks/BackgroundTasksDialog.tsx
|
|
@@ -475314,6 +475336,7 @@ function Passes({
|
|
|
475314
475336
|
}, []);
|
|
475315
475337
|
if (loading) {
|
|
475316
475338
|
return /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(Pane, {
|
|
475339
|
+
title: "GUEST PASSES",
|
|
475317
475340
|
children: /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(ThemedBox_default, {
|
|
475318
475341
|
flexDirection: "column",
|
|
475319
475342
|
gap: 1,
|
|
@@ -475341,6 +475364,7 @@ function Passes({
|
|
|
475341
475364
|
}
|
|
475342
475365
|
if (!isAvailable) {
|
|
475343
475366
|
return /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(Pane, {
|
|
475367
|
+
title: "GUEST PASSES",
|
|
475344
475368
|
children: /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(ThemedBox_default, {
|
|
475345
475369
|
flexDirection: "column",
|
|
475346
475370
|
gap: 1,
|
|
@@ -475413,6 +475437,7 @@ function Passes({
|
|
|
475413
475437
|
}, pass.passNumber, true, undefined, this);
|
|
475414
475438
|
};
|
|
475415
475439
|
return /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(Pane, {
|
|
475440
|
+
title: "GUEST PASSES",
|
|
475416
475441
|
children: /* @__PURE__ */ jsx_dev_runtime300.jsxDEV(ThemedBox_default, {
|
|
475417
475442
|
flexDirection: "column",
|
|
475418
475443
|
gap: 1,
|
|
@@ -476355,7 +476380,7 @@ function isEnvTruthy10(value) {
|
|
|
476355
476380
|
return normalized !== "" && normalized !== "0" && normalized !== "false" && normalized !== "no";
|
|
476356
476381
|
}
|
|
476357
476382
|
function getSafeDisplayValue(value, processEnv, profileEnv, fallback = "(not set)") {
|
|
476358
|
-
return
|
|
476383
|
+
return redactSecretValueForDisplay(value, processEnv, profileEnv) ?? fallback;
|
|
476359
476384
|
}
|
|
476360
476385
|
function getProviderWizardDefaults(processEnv = process.env) {
|
|
476361
476386
|
const secretSource = processEnv;
|
|
@@ -477579,7 +477604,7 @@ var init_provider = __esm(() => {
|
|
|
477579
477604
|
init_useTerminalSize();
|
|
477580
477605
|
init_ink2();
|
|
477581
477606
|
init_providerConfig();
|
|
477582
|
-
|
|
477607
|
+
init_providerProfile();
|
|
477583
477608
|
init_geminiAuth();
|
|
477584
477609
|
init_geminiCredentials();
|
|
477585
477610
|
init_envUtils();
|
|
@@ -486604,7 +486629,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
486604
486629
|
var call61 = async () => {
|
|
486605
486630
|
return {
|
|
486606
486631
|
type: "text",
|
|
486607
|
-
value: `${"99.0.0"} (built ${"2026-05-
|
|
486632
|
+
value: `${"99.0.0"} (built ${"2026-05-08T02:37:06.728Z"})`
|
|
486608
486633
|
};
|
|
486609
486634
|
}, version2, version_default;
|
|
486610
486635
|
var init_version = __esm(() => {
|
|
@@ -491830,18 +491855,11 @@ function EffortPicker({ onSelect, onCancel }) {
|
|
|
491830
491855
|
/* @__PURE__ */ jsx_dev_runtime355.jsxDEV(ThemedBox_default, {
|
|
491831
491856
|
marginBottom: 1,
|
|
491832
491857
|
flexDirection: "column",
|
|
491833
|
-
children:
|
|
491834
|
-
|
|
491835
|
-
|
|
491836
|
-
|
|
491837
|
-
|
|
491838
|
-
}, undefined, false, undefined, this),
|
|
491839
|
-
/* @__PURE__ */ jsx_dev_runtime355.jsxDEV(ThemedText, {
|
|
491840
|
-
dimColor: true,
|
|
491841
|
-
children: supportsEffort && usesOpenAIEffort ? `OpenAI/Codex provider (${provider2})` : supportsEffort ? `Stratagem model · ${provider2} provider` : `Effort not supported for this model`
|
|
491842
|
-
}, undefined, false, undefined, this)
|
|
491843
|
-
]
|
|
491844
|
-
}, undefined, true, undefined, this),
|
|
491858
|
+
children: /* @__PURE__ */ jsx_dev_runtime355.jsxDEV(ThemedText, {
|
|
491859
|
+
dimColor: true,
|
|
491860
|
+
children: supportsEffort && usesOpenAIEffort ? `OpenAI/Codex provider (${provider2})` : supportsEffort ? `Stratagem model · ${provider2} provider` : `Effort not supported for this model`
|
|
491861
|
+
}, undefined, false, undefined, this)
|
|
491862
|
+
}, undefined, false, undefined, this),
|
|
491845
491863
|
/* @__PURE__ */ jsx_dev_runtime355.jsxDEV(ThemedBox_default, {
|
|
491846
491864
|
marginBottom: 1,
|
|
491847
491865
|
children: /* @__PURE__ */ jsx_dev_runtime355.jsxDEV(Select, {
|
|
@@ -492126,9 +492144,12 @@ function EffortPickerWrapper({ onDone }) {
|
|
|
492126
492144
|
function handleCancel() {
|
|
492127
492145
|
onDone("Cancelled");
|
|
492128
492146
|
}
|
|
492129
|
-
return /* @__PURE__ */ jsx_dev_runtime356.jsxDEV(
|
|
492130
|
-
|
|
492131
|
-
|
|
492147
|
+
return /* @__PURE__ */ jsx_dev_runtime356.jsxDEV(Pane, {
|
|
492148
|
+
title: "EFFORT",
|
|
492149
|
+
children: /* @__PURE__ */ jsx_dev_runtime356.jsxDEV(EffortPicker, {
|
|
492150
|
+
onSelect: handleSelect,
|
|
492151
|
+
onCancel: handleCancel
|
|
492152
|
+
}, undefined, false, undefined, this)
|
|
492132
492153
|
}, undefined, false, undefined, this);
|
|
492133
492154
|
}
|
|
492134
492155
|
var import_react_compiler_runtime261, React119, jsx_dev_runtime356, COMMON_HELP_ARGS2;
|
|
@@ -492137,6 +492158,7 @@ var init_effort2 = __esm(() => {
|
|
|
492137
492158
|
init_AppState();
|
|
492138
492159
|
init_effort();
|
|
492139
492160
|
init_EffortPicker();
|
|
492161
|
+
init_Pane();
|
|
492140
492162
|
init_settings2();
|
|
492141
492163
|
import_react_compiler_runtime261 = __toESM(require_dist3(), 1);
|
|
492142
492164
|
React119 = __toESM(require_react(), 1);
|
|
@@ -492161,7 +492183,7 @@ var init_effort3 = __esm(() => {
|
|
|
492161
492183
|
});
|
|
492162
492184
|
|
|
492163
492185
|
// native-stub:asciichart
|
|
492164
|
-
var
|
|
492186
|
+
var noop18 = () => null, handler6, stub7, SandboxManager7, plot5;
|
|
492165
492187
|
var init_asciichart = __esm(() => {
|
|
492166
492188
|
handler6 = {
|
|
492167
492189
|
get(_, prop) {
|
|
@@ -492175,12 +492197,12 @@ var init_asciichart = __esm(() => {
|
|
|
492175
492197
|
return () => ({});
|
|
492176
492198
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
492177
492199
|
return { parse: () => ({}) };
|
|
492178
|
-
return
|
|
492200
|
+
return noop18;
|
|
492179
492201
|
}
|
|
492180
492202
|
};
|
|
492181
|
-
stub7 = new Proxy(
|
|
492182
|
-
SandboxManager7 = new Proxy({}, { get: () =>
|
|
492183
|
-
plot5 =
|
|
492203
|
+
stub7 = new Proxy(noop18, handler6);
|
|
492204
|
+
SandboxManager7 = new Proxy({}, { get: () => noop18 });
|
|
492205
|
+
plot5 = noop18;
|
|
492184
492206
|
});
|
|
492185
492207
|
|
|
492186
492208
|
// src/utils/statsCache.ts
|
|
@@ -502922,9 +502944,9 @@ var init_config8 = __esm(() => {
|
|
|
502922
502944
|
});
|
|
502923
502945
|
|
|
502924
502946
|
// missing-module-stub:./providerProfiles.js
|
|
502925
|
-
var
|
|
502926
|
-
var
|
|
502927
|
-
applyActiveProviderProfileFromConfig2 =
|
|
502947
|
+
var noop19 = () => null, applyActiveProviderProfileFromConfig2;
|
|
502948
|
+
var init_providerProfiles2 = __esm(() => {
|
|
502949
|
+
applyActiveProviderProfileFromConfig2 = noop19;
|
|
502928
502950
|
});
|
|
502929
502951
|
|
|
502930
502952
|
// src/utils/managedEnv.ts
|
|
@@ -503013,7 +503035,7 @@ var init_managedEnv = __esm(() => {
|
|
|
503013
503035
|
init_managedEnvConstants();
|
|
503014
503036
|
init_mtls();
|
|
503015
503037
|
init_proxy();
|
|
503016
|
-
|
|
503038
|
+
init_providerProfiles2();
|
|
503017
503039
|
init_constants2();
|
|
503018
503040
|
init_settings2();
|
|
503019
503041
|
TRUSTED_SETTING_SOURCES = [
|
|
@@ -537657,7 +537679,7 @@ __export(exports_cacache, {
|
|
|
537657
537679
|
ATTR_SERVICE_VERSION: () => ATTR_SERVICE_VERSION6,
|
|
537658
537680
|
ATTR_SERVICE_NAME: () => ATTR_SERVICE_NAME6
|
|
537659
537681
|
});
|
|
537660
|
-
var
|
|
537682
|
+
var noop20 = () => null, noopClass5 = class {
|
|
537661
537683
|
}, 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;
|
|
537662
537684
|
var init_cacache = __esm(() => {
|
|
537663
537685
|
handler7 = {
|
|
@@ -537672,20 +537694,20 @@ var init_cacache = __esm(() => {
|
|
|
537672
537694
|
return () => ({});
|
|
537673
537695
|
if (prop === "SandboxRuntimeConfigSchema")
|
|
537674
537696
|
return { parse: () => ({}) };
|
|
537675
|
-
return
|
|
537697
|
+
return noop20;
|
|
537676
537698
|
}
|
|
537677
537699
|
};
|
|
537678
|
-
stub8 = new Proxy(
|
|
537700
|
+
stub8 = new Proxy(noop20, handler7);
|
|
537679
537701
|
cacache_default = stub8;
|
|
537680
|
-
SandboxManager8 = new Proxy({}, { get: () =>
|
|
537702
|
+
SandboxManager8 = new Proxy({}, { get: () => noop20 });
|
|
537681
537703
|
SandboxRuntimeConfigSchema6 = { parse: () => ({}) };
|
|
537682
537704
|
BROWSER_TOOLS5 = [];
|
|
537683
|
-
getMcpConfigForManifest5 =
|
|
537684
|
-
getSyntaxTheme7 =
|
|
537685
|
-
plot6 =
|
|
537686
|
-
createClaudeForChromeMcpServer5 =
|
|
537705
|
+
getMcpConfigForManifest5 = noop20;
|
|
537706
|
+
getSyntaxTheme7 = noop20;
|
|
537707
|
+
plot6 = noop20;
|
|
537708
|
+
createClaudeForChromeMcpServer5 = noop20;
|
|
537687
537709
|
ExportResultCode5 = { SUCCESS: 0, FAILED: 1 };
|
|
537688
|
-
resourceFromAttributes6 =
|
|
537710
|
+
resourceFromAttributes6 = noop20;
|
|
537689
537711
|
Resource5 = noopClass5;
|
|
537690
537712
|
SimpleSpanProcessor5 = noopClass5;
|
|
537691
537713
|
BatchSpanProcessor6 = noopClass5;
|
|
@@ -537700,8 +537722,8 @@ var init_cacache = __esm(() => {
|
|
|
537700
537722
|
BatchLogRecordProcessor6 = noopClass5;
|
|
537701
537723
|
MeterProvider6 = noopClass5;
|
|
537702
537724
|
PeriodicExportingMetricReader6 = noopClass5;
|
|
537703
|
-
trace6 = { getTracer: () => ({ startSpan: () => ({ end:
|
|
537704
|
-
context6 = { active:
|
|
537725
|
+
trace6 = { getTracer: () => ({ startSpan: () => ({ end: noop20, setAttribute: noop20, setStatus: noop20, recordException: noop20 }) }) };
|
|
537726
|
+
context6 = { active: noop20, with: (_, fn) => fn() };
|
|
537705
537727
|
SpanStatusCode5 = { OK: 0, ERROR: 1, UNSET: 2 };
|
|
537706
537728
|
AggregationTemporality5 = { CUMULATIVE: 0, DELTA: 1 };
|
|
537707
537729
|
DataPointType5 = { HISTOGRAM: 0, SUM: 1, GAUGE: 2 };
|
|
@@ -555433,7 +555455,7 @@ function WelcomeV2() {
|
|
|
555433
555455
|
dimColor: true,
|
|
555434
555456
|
children: [
|
|
555435
555457
|
"v",
|
|
555436
|
-
"0.3.
|
|
555458
|
+
"0.3.61",
|
|
555437
555459
|
" "
|
|
555438
555460
|
]
|
|
555439
555461
|
}, undefined, true, undefined, this)
|
|
@@ -556456,7 +556478,7 @@ function BypassPermissionsModeDialog(t0) {
|
|
|
556456
556478
|
children: [
|
|
556457
556479
|
/* @__PURE__ */ jsx_dev_runtime481.jsxDEV(ThemedText, {
|
|
556458
556480
|
children: [
|
|
556459
|
-
"In Bypass Permissions mode,
|
|
556481
|
+
"In Bypass Permissions mode, STRATAGEM X7 will not ask for your approval before running potentially dangerous commands.",
|
|
556460
556482
|
/* @__PURE__ */ jsx_dev_runtime481.jsxDEV(Newline, {}, undefined, false, undefined, this),
|
|
556461
556483
|
"This mode should only be used in a sandboxed container/VM that has restricted internet access and can easily be restored if damaged."
|
|
556462
556484
|
]
|
|
@@ -556489,7 +556511,7 @@ function BypassPermissionsModeDialog(t0) {
|
|
|
556489
556511
|
let t5;
|
|
556490
556512
|
if ($2[5] !== onChange) {
|
|
556491
556513
|
t5 = /* @__PURE__ */ jsx_dev_runtime481.jsxDEV(Dialog, {
|
|
556492
|
-
title: "WARNING:
|
|
556514
|
+
title: "WARNING: STRATAGEM X7 running in Bypass Permissions mode",
|
|
556493
556515
|
color: "error",
|
|
556494
556516
|
onCancel: handleEscape,
|
|
556495
556517
|
children: [
|
|
@@ -574891,7 +574913,7 @@ Usage: stx7 --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
574891
574913
|
pendingHookMessages
|
|
574892
574914
|
}, renderAndRun);
|
|
574893
574915
|
}
|
|
574894
|
-
}).version("0.3.
|
|
574916
|
+
}).version("0.3.61 (STRATAGEM X7)", "-v, --version", "Output the version number");
|
|
574895
574917
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
574896
574918
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
574897
574919
|
if (canUserConfigureAdvisor()) {
|
|
@@ -575324,7 +575346,7 @@ var init_main3 = __esm(() => {
|
|
|
575324
575346
|
});
|
|
575325
575347
|
|
|
575326
575348
|
// src/entrypoints/cli.tsx
|
|
575327
|
-
|
|
575349
|
+
init_providerProfile();
|
|
575328
575350
|
init_providerValidation();
|
|
575329
575351
|
if (typeof globalThis.File === "undefined") {
|
|
575330
575352
|
try {
|
|
@@ -575352,7 +575374,7 @@ if (false) {}
|
|
|
575352
575374
|
async function main2() {
|
|
575353
575375
|
const args = process.argv.slice(2);
|
|
575354
575376
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
575355
|
-
console.log(`${"0.3.
|
|
575377
|
+
console.log(`${"0.3.61"} (STRATAGEM X7)`);
|
|
575356
575378
|
return;
|
|
575357
575379
|
}
|
|
575358
575380
|
if (args.includes("--provider")) {
|
|
@@ -575474,4 +575496,4 @@ async function main2() {
|
|
|
575474
575496
|
}
|
|
575475
575497
|
main2();
|
|
575476
575498
|
|
|
575477
|
-
//# debugId=
|
|
575499
|
+
//# debugId=88C52A19098A92A864756E2164756E21
|