@opencode/browse 0.0.11-dev.69 → 0.0.11-dev.71
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-nhvexbva.mjs → cli-9qxmqyxx.mjs} +10 -10
- package/dist/cli.mjs +10 -10
- package/dist/{helpers-3b29018q.mjs → helpers-t569ktgs.mjs} +2 -2
- package/dist/{index-8v65jg3n.mjs → index-0dcypq31.mjs} +1 -1
- package/dist/{main-qx0ca9ve.mjs → main-3hpn75c3.mjs} +5 -5
- package/dist/{main-295er9ym.mjs → main-7j6g3ehy.mjs} +4 -4
- package/dist/{main-pb01wmte.mjs → main-f7j9dybj.mjs} +128 -11
- package/dist/{main-ta3yc4kx.mjs → main-gevbt7h7.mjs} +1134 -2
- package/dist/main-gss8ctxx.mjs +4 -0
- package/dist/{main-s2rg0ch9.mjs → main-ha41fhf2.mjs} +1 -1
- package/dist/{main-7h953tm4.mjs → main-hn9dbnbe.mjs} +2 -2
- package/dist/{main-s5vvzh5t.mjs → main-jfqp0hfn.mjs} +2 -2
- package/dist/{main-kxbs88e4.mjs → main-rt6g5418.mjs} +1 -1
- package/dist/{main-0pwv83eg.mjs → main-srh04zzr.mjs} +3 -3
- package/dist/{mcp-xr6cvq11.mjs → mcp-76x97qkg.mjs} +65 -13
- package/dist/{relay-6wm3d6x5.mjs → relay-dbqekz6m.mjs} +10 -10
- package/dist/{runtime-update-0w1aetb5.mjs → runtime-update-nj2y79eq.mjs} +5 -5
- package/dist/{setup-0dh3j903.mjs → setup-c2q8exjt.mjs} +5 -5
- package/dist/{supervisor-5a7prwcy.mjs → supervisor-pss92xc0.mjs} +3 -3
- package/dist/{update-n6f9xc26.mjs → update-2xgyxtvc.mjs} +3 -3
- package/dist/{version-0gxa766y.mjs → version-xpt0zd8b.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-zta0xfr1.mjs +0 -4
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
compareVersions,
|
|
7
7
|
npmRuntime,
|
|
8
8
|
autoUpdateStatus
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-srh04zzr.mjs";
|
|
10
10
|
import {
|
|
11
11
|
unpackedReloadAdvice
|
|
12
12
|
} from "./main-mrew6jy8.mjs";
|
|
@@ -315,7 +315,7 @@ function runUpdate(args, deps) {
|
|
|
315
315
|
async function runUpdateCommand2(args) {
|
|
316
316
|
const log = (line) => process.stdout.write(line + `
|
|
317
317
|
`);
|
|
318
|
-
const { runNpmUpdate } = await import("./runtime-update-
|
|
318
|
+
const { runNpmUpdate } = await import("./runtime-update-nj2y79eq.mjs");
|
|
319
319
|
if (await runNpmUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-ha41fhf2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
devExtensionUrl,
|
|
7
7
|
devExtensionFolder
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-srh04zzr.mjs";
|
|
9
9
|
|
|
10
10
|
// src/relay/browser-pairing.ts
|
|
11
11
|
import crypto from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-gss8ctxx.mjs";
|
|
4
4
|
|
|
5
5
|
// src/update/auto-update.ts
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -53,7 +53,7 @@ function cliInstall() {
|
|
|
53
53
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
54
54
|
if (fromCheckout())
|
|
55
55
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
56
|
-
return { kind: "npm", version: "0.0.11-dev.
|
|
56
|
+
return { kind: "npm", version: "0.0.11-dev.71" };
|
|
57
57
|
}
|
|
58
58
|
function cliPrefix(install = cliInstall()) {
|
|
59
59
|
if (install.kind === "binary") {
|
|
@@ -73,7 +73,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
73
73
|
return id ? { id } : {};
|
|
74
74
|
}
|
|
75
75
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
76
|
-
function devExtension(baked = { file: "browse-extension-0.0.11-dev.
|
|
76
|
+
function devExtension(baked = { file: "browse-extension-0.0.11-dev.71.zip", sha256: "ddcd63d8da9501ad99fa1627e0ea4a1cb552a8ad1abd60d294717ecbc380a12b", size: 182520 }) {
|
|
77
77
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
78
78
|
}
|
|
79
79
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -256,18 +256,34 @@ import {
|
|
|
256
256
|
jsonUnsafe,
|
|
257
257
|
Stdio,
|
|
258
258
|
layer
|
|
259
|
-
} from "./main-
|
|
259
|
+
} from "./main-gevbt7h7.mjs";
|
|
260
260
|
import {
|
|
261
261
|
opencodeBrowserVersion2
|
|
262
|
-
} from "./main-
|
|
262
|
+
} from "./main-gss8ctxx.mjs";
|
|
263
263
|
import {
|
|
264
264
|
cliCommand,
|
|
265
265
|
autoUpdateStatus
|
|
266
|
-
} from "./main-
|
|
266
|
+
} from "./main-srh04zzr.mjs";
|
|
267
267
|
import"./main-mrew6jy8.mjs";
|
|
268
268
|
import {
|
|
269
269
|
option,
|
|
270
270
|
String2,
|
|
271
|
+
SessionContainer,
|
|
272
|
+
SessionsContainer,
|
|
273
|
+
SessionResetResponse,
|
|
274
|
+
SessionAdoptResponse,
|
|
275
|
+
AuthProfileSummary,
|
|
276
|
+
NetworkStopResponse,
|
|
277
|
+
NetworkCancelResponse,
|
|
278
|
+
AuthRunResponse,
|
|
279
|
+
RecordingStartResponse,
|
|
280
|
+
RecordingStopResponse,
|
|
281
|
+
RecordingStatusResponse,
|
|
282
|
+
TabsCleanupResponse,
|
|
283
|
+
RecordingCancelResponse,
|
|
284
|
+
FlightRecorderStatusResponse,
|
|
285
|
+
FlightRecorderSaveResponse,
|
|
286
|
+
FlightRecorderCancelResponse,
|
|
271
287
|
getObject2,
|
|
272
288
|
RelayRejected,
|
|
273
289
|
Service,
|
|
@@ -275,12 +291,12 @@ import {
|
|
|
275
291
|
relayBuildProblem,
|
|
276
292
|
ensureRelay,
|
|
277
293
|
ensureExtensionConnected
|
|
278
|
-
} from "./main-
|
|
279
|
-
import"./main-
|
|
294
|
+
} from "./main-3hpn75c3.mjs";
|
|
295
|
+
import"./main-ha41fhf2.mjs";
|
|
280
296
|
import {
|
|
281
297
|
updateJson2,
|
|
282
298
|
createUpdateWatcher2
|
|
283
|
-
} from "./main-
|
|
299
|
+
} from "./main-hn9dbnbe.mjs";
|
|
284
300
|
import {
|
|
285
301
|
makeUnsafe,
|
|
286
302
|
make,
|
|
@@ -340,6 +356,15 @@ import {
|
|
|
340
356
|
sessionSchemaProperty,
|
|
341
357
|
sessionAliasSchemaProperty,
|
|
342
358
|
sessionOnlyInputSchema,
|
|
359
|
+
ExecuteToolOutput,
|
|
360
|
+
StatusToolOutput,
|
|
361
|
+
CurrentSessionToolOutput,
|
|
362
|
+
SessionDeleteToolOutput,
|
|
363
|
+
NetworkToolStatus,
|
|
364
|
+
SettingsToolOutput,
|
|
365
|
+
SecretsListToolOutput,
|
|
366
|
+
toolOutputJson,
|
|
367
|
+
executeToolResult,
|
|
343
368
|
ensureSessionExists,
|
|
344
369
|
parseExecuteArguments,
|
|
345
370
|
parseAdoptArguments,
|
|
@@ -353,7 +378,7 @@ import {
|
|
|
353
378
|
mcpErrorMessage2,
|
|
354
379
|
toolResult,
|
|
355
380
|
listSecrets
|
|
356
|
-
} from "./main-
|
|
381
|
+
} from "./main-f7j9dybj.mjs";
|
|
357
382
|
import {
|
|
358
383
|
Clock,
|
|
359
384
|
type,
|
|
@@ -367,7 +392,7 @@ import {
|
|
|
367
392
|
boolean,
|
|
368
393
|
orElse,
|
|
369
394
|
exhaustive
|
|
370
|
-
} from "./main-
|
|
395
|
+
} from "./main-rt6g5418.mjs";
|
|
371
396
|
import {
|
|
372
397
|
pipeArguments,
|
|
373
398
|
dual,
|
|
@@ -8794,6 +8819,7 @@ registerMcpTools({
|
|
|
8794
8819
|
readOnly: true,
|
|
8795
8820
|
destructive: false,
|
|
8796
8821
|
idempotent: false,
|
|
8822
|
+
outputSchema: StatusToolOutput,
|
|
8797
8823
|
handle: () => gen(function* () {
|
|
8798
8824
|
const [version, status] = yield* all([ctx.relay.version, ctx.relay.extensionStatus]);
|
|
8799
8825
|
const buildProblem = relayBuildProblem(version);
|
|
@@ -8827,6 +8853,7 @@ registerMcpTools({
|
|
|
8827
8853
|
readOnly: false,
|
|
8828
8854
|
destructive: true,
|
|
8829
8855
|
idempotent: true,
|
|
8856
|
+
outputSchema: TabsCleanupResponse,
|
|
8830
8857
|
handle: (input) => {
|
|
8831
8858
|
const value = typeof input === "object" && input !== null && "idleMinutes" in input ? input.idleMinutes : undefined;
|
|
8832
8859
|
return ctx.relay.tabsCleanup(typeof value === "number" && value >= 0 ? value : undefined);
|
|
@@ -8846,6 +8873,7 @@ registerMcpTools({
|
|
|
8846
8873
|
readOnly: false,
|
|
8847
8874
|
destructive: false,
|
|
8848
8875
|
idempotent: true,
|
|
8876
|
+
outputSchema: SettingsToolOutput,
|
|
8849
8877
|
handle: (input) => {
|
|
8850
8878
|
const set = getObject2(input)?.set;
|
|
8851
8879
|
if (set === undefined)
|
|
@@ -8911,6 +8939,8 @@ registerMcpTools({
|
|
|
8911
8939
|
readOnly: false,
|
|
8912
8940
|
destructive: true,
|
|
8913
8941
|
idempotent: false,
|
|
8942
|
+
outputSchema: ExecuteToolOutput,
|
|
8943
|
+
result: executeToolResult,
|
|
8914
8944
|
handle: (input) => gen(function* () {
|
|
8915
8945
|
const args = yield* try_(() => parseExecuteArguments(input));
|
|
8916
8946
|
const sessionId = args.session ?? ctx.currentSession.id;
|
|
@@ -8985,6 +9015,7 @@ registerMcpTools({
|
|
|
8985
9015
|
readOnly: false,
|
|
8986
9016
|
destructive: false,
|
|
8987
9017
|
idempotent: false,
|
|
9018
|
+
outputSchema: NetworkToolStatus,
|
|
8988
9019
|
handle: (input) => gen(function* () {
|
|
8989
9020
|
const object = requireObject(input);
|
|
8990
9021
|
const explicitSession = optionalStringField(object, "session");
|
|
@@ -9027,6 +9058,7 @@ registerMcpTools({
|
|
|
9027
9058
|
readOnly: true,
|
|
9028
9059
|
destructive: false,
|
|
9029
9060
|
idempotent: true,
|
|
9061
|
+
outputSchema: NetworkToolStatus,
|
|
9030
9062
|
handle: (input) => {
|
|
9031
9063
|
const sessionId = ctx.resolveSessionId(input);
|
|
9032
9064
|
return ctx.relay.networkStatus({ sessionId }).pipe(map5((result) => ({ session: sessionId, ...result })));
|
|
@@ -9046,6 +9078,7 @@ registerMcpTools({
|
|
|
9046
9078
|
readOnly: false,
|
|
9047
9079
|
destructive: false,
|
|
9048
9080
|
idempotent: false,
|
|
9081
|
+
outputSchema: NetworkStopResponse,
|
|
9049
9082
|
handle: (input) => gen(function* () {
|
|
9050
9083
|
const sessionId = ctx.resolveSessionId(input);
|
|
9051
9084
|
const outputPath = optionalStringField(input, "outputPath");
|
|
@@ -9067,6 +9100,7 @@ registerMcpTools({
|
|
|
9067
9100
|
readOnly: false,
|
|
9068
9101
|
destructive: true,
|
|
9069
9102
|
idempotent: true,
|
|
9103
|
+
outputSchema: NetworkCancelResponse,
|
|
9070
9104
|
handle: (input) => ctx.relay.networkCancel({ sessionId: ctx.resolveSessionId(input) })
|
|
9071
9105
|
}
|
|
9072
9106
|
]
|
|
@@ -9102,6 +9136,7 @@ registerMcpTools({
|
|
|
9102
9136
|
readOnly: false,
|
|
9103
9137
|
destructive: false,
|
|
9104
9138
|
idempotent: false,
|
|
9139
|
+
outputSchema: RecordingStartResponse,
|
|
9105
9140
|
handle: (input) => {
|
|
9106
9141
|
const object = requireObject(input);
|
|
9107
9142
|
const mode = optionalStringField(object, "mode");
|
|
@@ -9132,6 +9167,7 @@ registerMcpTools({
|
|
|
9132
9167
|
readOnly: false,
|
|
9133
9168
|
destructive: false,
|
|
9134
9169
|
idempotent: false,
|
|
9170
|
+
outputSchema: RecordingStopResponse,
|
|
9135
9171
|
handle: (input) => ctx.relay.recordingStop({ sessionId: ctx.resolveSessionId(input) })
|
|
9136
9172
|
}
|
|
9137
9173
|
]
|
|
@@ -9147,6 +9183,7 @@ registerMcpTools({
|
|
|
9147
9183
|
readOnly: true,
|
|
9148
9184
|
destructive: false,
|
|
9149
9185
|
idempotent: true,
|
|
9186
|
+
outputSchema: RecordingStatusResponse,
|
|
9150
9187
|
handle: (input) => ctx.relay.recordingStatus({ sessionId: ctx.resolveSessionId(input) })
|
|
9151
9188
|
},
|
|
9152
9189
|
{
|
|
@@ -9156,6 +9193,7 @@ registerMcpTools({
|
|
|
9156
9193
|
readOnly: false,
|
|
9157
9194
|
destructive: true,
|
|
9158
9195
|
idempotent: true,
|
|
9196
|
+
outputSchema: RecordingCancelResponse,
|
|
9159
9197
|
handle: (input) => ctx.relay.recordingCancel({ sessionId: ctx.resolveSessionId(input) })
|
|
9160
9198
|
},
|
|
9161
9199
|
{
|
|
@@ -9180,6 +9218,7 @@ registerMcpTools({
|
|
|
9180
9218
|
readOnly: false,
|
|
9181
9219
|
destructive: false,
|
|
9182
9220
|
idempotent: false,
|
|
9221
|
+
outputSchema: FlightRecorderStatusResponse,
|
|
9183
9222
|
handle: (input) => {
|
|
9184
9223
|
const object = requireObject(input);
|
|
9185
9224
|
const retentionMs = optionalPositiveIntegerField(object, "retentionMs");
|
|
@@ -9201,6 +9240,7 @@ registerMcpTools({
|
|
|
9201
9240
|
readOnly: true,
|
|
9202
9241
|
destructive: false,
|
|
9203
9242
|
idempotent: true,
|
|
9243
|
+
outputSchema: FlightRecorderStatusResponse,
|
|
9204
9244
|
handle: (input) => ctx.relay.flightRecorderStatus({ sessionId: ctx.resolveSessionId(input) })
|
|
9205
9245
|
},
|
|
9206
9246
|
{
|
|
@@ -9221,6 +9261,7 @@ registerMcpTools({
|
|
|
9221
9261
|
readOnly: false,
|
|
9222
9262
|
destructive: false,
|
|
9223
9263
|
idempotent: false,
|
|
9264
|
+
outputSchema: FlightRecorderSaveResponse,
|
|
9224
9265
|
handle: (input) => {
|
|
9225
9266
|
const object = requireObject(input);
|
|
9226
9267
|
const durationMs = optionalPositiveIntegerField(object, "durationMs");
|
|
@@ -9238,6 +9279,7 @@ registerMcpTools({
|
|
|
9238
9279
|
readOnly: false,
|
|
9239
9280
|
destructive: true,
|
|
9240
9281
|
idempotent: true,
|
|
9282
|
+
outputSchema: FlightRecorderCancelResponse,
|
|
9241
9283
|
handle: (input) => ctx.relay.flightRecorderCancel({ sessionId: ctx.resolveSessionId(input) })
|
|
9242
9284
|
}
|
|
9243
9285
|
]
|
|
@@ -9256,6 +9298,7 @@ registerMcpTools({
|
|
|
9256
9298
|
readOnly: true,
|
|
9257
9299
|
destructive: false,
|
|
9258
9300
|
idempotent: true,
|
|
9301
|
+
outputSchema: SecretsListToolOutput,
|
|
9259
9302
|
handle: () => gen(function* () {
|
|
9260
9303
|
const secrets = yield* listSecrets();
|
|
9261
9304
|
return { secrets };
|
|
@@ -9269,6 +9312,7 @@ registerMcpTools({
|
|
|
9269
9312
|
readOnly: true,
|
|
9270
9313
|
destructive: false,
|
|
9271
9314
|
idempotent: true,
|
|
9315
|
+
outputSchema: AuthProfileSummary,
|
|
9272
9316
|
handle: (input) => ctx.relay.authStatus({ name: requiredStringField(input, "name") })
|
|
9273
9317
|
},
|
|
9274
9318
|
{
|
|
@@ -9283,6 +9327,7 @@ registerMcpTools({
|
|
|
9283
9327
|
readOnly: false,
|
|
9284
9328
|
destructive: true,
|
|
9285
9329
|
idempotent: false,
|
|
9330
|
+
outputSchema: NetworkStopResponse,
|
|
9286
9331
|
handle: (input) => {
|
|
9287
9332
|
const object = requireObject(input);
|
|
9288
9333
|
const timeoutMs = optionalPositiveIntegerField(object, "timeoutMs");
|
|
@@ -9308,6 +9353,7 @@ registerMcpTools({
|
|
|
9308
9353
|
readOnly: false,
|
|
9309
9354
|
destructive: true,
|
|
9310
9355
|
idempotent: false,
|
|
9356
|
+
outputSchema: AuthRunResponse,
|
|
9311
9357
|
handle: (input) => {
|
|
9312
9358
|
const object = requireObject(input);
|
|
9313
9359
|
const args = optionalStringArrayField(object, "args");
|
|
@@ -9349,6 +9395,7 @@ registerMcpTools({
|
|
|
9349
9395
|
readOnly: false,
|
|
9350
9396
|
destructive: false,
|
|
9351
9397
|
idempotent: false,
|
|
9398
|
+
outputSchema: SessionContainer,
|
|
9352
9399
|
handle: (input) => gen(function* () {
|
|
9353
9400
|
const requestedId = optionalStringField(input, "id");
|
|
9354
9401
|
const readOnly = optionalBooleanField(input, "readOnly");
|
|
@@ -9378,6 +9425,7 @@ registerMcpTools({
|
|
|
9378
9425
|
readOnly: false,
|
|
9379
9426
|
destructive: false,
|
|
9380
9427
|
idempotent: true,
|
|
9428
|
+
outputSchema: SessionContainer,
|
|
9381
9429
|
handle: (input) => gen(function* () {
|
|
9382
9430
|
const sessionId = ctx.resolveSessionId(input);
|
|
9383
9431
|
const allowedOrigins = requireObject(input).allowedOrigins;
|
|
@@ -9395,6 +9443,7 @@ registerMcpTools({
|
|
|
9395
9443
|
readOnly: true,
|
|
9396
9444
|
destructive: false,
|
|
9397
9445
|
idempotent: false,
|
|
9446
|
+
outputSchema: SessionsContainer,
|
|
9398
9447
|
handle: () => ctx.relay.sessions.pipe(map5((sessions) => ({ sessions })))
|
|
9399
9448
|
},
|
|
9400
9449
|
{
|
|
@@ -9405,6 +9454,7 @@ registerMcpTools({
|
|
|
9405
9454
|
readOnly: true,
|
|
9406
9455
|
destructive: false,
|
|
9407
9456
|
idempotent: true,
|
|
9457
|
+
outputSchema: CurrentSessionToolOutput,
|
|
9408
9458
|
handle: () => succeed6({ currentSession: ctx.currentSession.id })
|
|
9409
9459
|
},
|
|
9410
9460
|
{
|
|
@@ -9416,6 +9466,7 @@ registerMcpTools({
|
|
|
9416
9466
|
readOnly: false,
|
|
9417
9467
|
destructive: false,
|
|
9418
9468
|
idempotent: true,
|
|
9469
|
+
outputSchema: CurrentSessionToolOutput,
|
|
9419
9470
|
handle: (input) => gen(function* () {
|
|
9420
9471
|
const id = yield* try_(() => requiredStringField(input, "id"));
|
|
9421
9472
|
yield* ensureSessionExists(ctx.relay, id);
|
|
@@ -9433,6 +9484,7 @@ registerMcpTools({
|
|
|
9433
9484
|
readOnly: false,
|
|
9434
9485
|
destructive: true,
|
|
9435
9486
|
idempotent: false,
|
|
9487
|
+
outputSchema: SessionResetResponse,
|
|
9436
9488
|
handle: (input) => gen(function* () {
|
|
9437
9489
|
const id = ctx.resolveSessionId(input, "id");
|
|
9438
9490
|
const reset = yield* ctx.relay.sessionReset(id);
|
|
@@ -9450,6 +9502,7 @@ registerMcpTools({
|
|
|
9450
9502
|
readOnly: false,
|
|
9451
9503
|
destructive: true,
|
|
9452
9504
|
idempotent: true,
|
|
9505
|
+
outputSchema: SessionDeleteToolOutput,
|
|
9453
9506
|
handle: (input) => gen(function* () {
|
|
9454
9507
|
const id = ctx.resolveSessionId(input, "id");
|
|
9455
9508
|
const result = yield* ctx.relay.sessionDelete(id);
|
|
@@ -9485,6 +9538,7 @@ registerMcpTools({
|
|
|
9485
9538
|
readOnly: false,
|
|
9486
9539
|
destructive: false,
|
|
9487
9540
|
idempotent: false,
|
|
9541
|
+
outputSchema: SessionAdoptResponse,
|
|
9488
9542
|
handle: (input) => gen(function* () {
|
|
9489
9543
|
const args = yield* try_(() => parseAdoptArguments(input));
|
|
9490
9544
|
const sessionId = args.session ?? ctx.currentSession.id;
|
|
@@ -9495,10 +9549,7 @@ registerMcpTools({
|
|
|
9495
9549
|
...args.tabId === undefined ? {} : { tabId: args.tabId }
|
|
9496
9550
|
});
|
|
9497
9551
|
ctx.establishCurrentSession(sessionId);
|
|
9498
|
-
return
|
|
9499
|
-
...result,
|
|
9500
|
-
confirmation: `Adopted session '${result.session.id}' default page: ${result.adoptedUrl}`
|
|
9501
|
-
};
|
|
9552
|
+
return result;
|
|
9502
9553
|
})
|
|
9503
9554
|
}
|
|
9504
9555
|
]
|
|
@@ -9539,6 +9590,7 @@ var registerTools = gen(function* () {
|
|
|
9539
9590
|
name: spec.name,
|
|
9540
9591
|
description: spec.description,
|
|
9541
9592
|
inputSchema: spec.inputSchema,
|
|
9593
|
+
...spec.outputSchema ? { outputSchema: toolOutputJson(spec.outputSchema) } : {},
|
|
9542
9594
|
annotations: {
|
|
9543
9595
|
readOnlyHint: spec.readOnly,
|
|
9544
9596
|
destructiveHint: spec.destructive,
|
|
@@ -9551,7 +9603,7 @@ var registerTools = gen(function* () {
|
|
|
9551
9603
|
const operation = spec.requiresRelayCompatibility !== false ? ensureRelay({ relay }).pipe(flatMap3((readiness) => readiness.buildProblem ? fail4(new Error(readiness.buildProblem)) : spec.handle(payload))) : spec.handle(payload);
|
|
9552
9604
|
return operation.pipe(match3({
|
|
9553
9605
|
onFailure: (error) => toolResult({ text: mcpErrorMessage2(spec.name, error.message), isError: true }),
|
|
9554
|
-
onSuccess: (value) => toolResultForValue2(value)
|
|
9606
|
+
onSuccess: (value) => spec.result ? spec.result(value) : toolResultForValue2(value, spec.outputSchema ? { outputSchema: spec.outputSchema } : {})
|
|
9555
9607
|
}), map5((result) => withUpdateNote(spec.name, result)));
|
|
9556
9608
|
}
|
|
9557
9609
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-gss8ctxx.mjs";
|
|
5
5
|
import {
|
|
6
6
|
dataRoot,
|
|
7
7
|
oldStoreMarker,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
setStoredMode,
|
|
20
20
|
autoUpdateStatus,
|
|
21
21
|
createAutoUpdater
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-srh04zzr.mjs";
|
|
23
23
|
import {
|
|
24
24
|
extensionProtocolVersion,
|
|
25
25
|
minExtensionProtocolVersion,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
relayToken,
|
|
45
45
|
secretsEqual,
|
|
46
46
|
ensurePrivateDirectory
|
|
47
|
-
} from "./main-
|
|
47
|
+
} from "./main-ha41fhf2.mjs";
|
|
48
48
|
import {
|
|
49
49
|
withDefault,
|
|
50
50
|
option,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
isRestrictedTarget2,
|
|
99
99
|
isRestrictedUrl2,
|
|
100
100
|
dataUrlDocument2
|
|
101
|
-
} from "./main-
|
|
101
|
+
} from "./main-3hpn75c3.mjs";
|
|
102
102
|
import {
|
|
103
103
|
relayHostname,
|
|
104
104
|
isLocalPeer,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
wrapToken,
|
|
121
121
|
installedDevExtension,
|
|
122
122
|
syncDevExtension
|
|
123
|
-
} from "./main-
|
|
123
|
+
} from "./main-jfqp0hfn.mjs";
|
|
124
124
|
import {
|
|
125
125
|
makeUnsafe,
|
|
126
126
|
SettingsInputError,
|
|
@@ -148,16 +148,16 @@ import {
|
|
|
148
148
|
checkNavigationUrl,
|
|
149
149
|
readSecret,
|
|
150
150
|
secretText
|
|
151
|
-
} from "./main-
|
|
151
|
+
} from "./main-f7j9dybj.mjs";
|
|
152
152
|
import {
|
|
153
153
|
defaultJournalBaseDir,
|
|
154
154
|
makeJournalEntry,
|
|
155
155
|
appendJournalEntry,
|
|
156
156
|
startJournalRetention
|
|
157
|
-
} from "./main-
|
|
157
|
+
} from "./main-7j6g3ehy.mjs";
|
|
158
158
|
import {
|
|
159
159
|
createUpdateWatcher2
|
|
160
|
-
} from "./main-
|
|
160
|
+
} from "./main-hn9dbnbe.mjs";
|
|
161
161
|
import {
|
|
162
162
|
isNone,
|
|
163
163
|
isSome,
|
|
@@ -256,14 +256,14 @@ import {
|
|
|
256
256
|
Int2,
|
|
257
257
|
Defect,
|
|
258
258
|
TaggedError2
|
|
259
|
-
} from "./main-
|
|
259
|
+
} from "./main-gevbt7h7.mjs";
|
|
260
260
|
import {
|
|
261
261
|
currentTimeMillis2,
|
|
262
262
|
value2,
|
|
263
263
|
when2,
|
|
264
264
|
orElse,
|
|
265
265
|
exhaustive
|
|
266
|
-
} from "./main-
|
|
266
|
+
} from "./main-rt6g5418.mjs";
|
|
267
267
|
import {
|
|
268
268
|
isString,
|
|
269
269
|
isNumber,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-gss8ctxx.mjs";
|
|
2
2
|
import {
|
|
3
3
|
cliCommand,
|
|
4
4
|
installCommand,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
installVersion,
|
|
19
19
|
pruneVersions,
|
|
20
20
|
switchVersion
|
|
21
|
-
} from "./main-
|
|
21
|
+
} from "./main-srh04zzr.mjs";
|
|
22
22
|
import"./main-mrew6jy8.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Service,
|
|
25
25
|
layerFetch,
|
|
26
26
|
restartRelay,
|
|
27
27
|
startManagedRelay
|
|
28
|
-
} from "./main-
|
|
29
|
-
import"./main-
|
|
28
|
+
} from "./main-3hpn75c3.mjs";
|
|
29
|
+
import"./main-ha41fhf2.mjs";
|
|
30
30
|
import {
|
|
31
31
|
succeed6,
|
|
32
32
|
suspend2,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
catch_,
|
|
39
39
|
provide3,
|
|
40
40
|
runPromise
|
|
41
|
-
} from "./main-
|
|
41
|
+
} from "./main-gevbt7h7.mjs";
|
|
42
42
|
|
|
43
43
|
// src/update/runtime-update.ts
|
|
44
44
|
import { existsSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-gss8ctxx.mjs";
|
|
5
5
|
import {
|
|
6
6
|
dataRoot,
|
|
7
7
|
oldStoreMarker,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
installVersion,
|
|
27
27
|
pruneVersions,
|
|
28
28
|
switchVersion
|
|
29
|
-
} from "./main-
|
|
29
|
+
} from "./main-srh04zzr.mjs";
|
|
30
30
|
import {
|
|
31
31
|
relayAuthorization
|
|
32
|
-
} from "./main-
|
|
32
|
+
} from "./main-ha41fhf2.mjs";
|
|
33
33
|
import {
|
|
34
34
|
parseHostname,
|
|
35
35
|
readRelayConfig,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
legacyPairingCode,
|
|
47
47
|
removeLegacyPairingCode,
|
|
48
48
|
syncDevExtension
|
|
49
|
-
} from "./main-
|
|
49
|
+
} from "./main-jfqp0hfn.mjs";
|
|
50
50
|
import {
|
|
51
51
|
unpackedExtensionId,
|
|
52
52
|
extensionProtocolSkew,
|
|
@@ -12147,7 +12147,7 @@ async function runSetup(command, args) {
|
|
|
12147
12147
|
if (command === "set")
|
|
12148
12148
|
return set(args);
|
|
12149
12149
|
if (command === "rollback") {
|
|
12150
|
-
const { runRollback } = await import("./runtime-update-
|
|
12150
|
+
const { runRollback } = await import("./runtime-update-nj2y79eq.mjs");
|
|
12151
12151
|
return runRollback(args);
|
|
12152
12152
|
}
|
|
12153
12153
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-gss8ctxx.mjs";
|
|
2
2
|
import {
|
|
3
3
|
versionEntry,
|
|
4
4
|
readCurrent,
|
|
5
5
|
npmRuntime
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-srh04zzr.mjs";
|
|
7
7
|
|
|
8
8
|
// src/mcp/supervisor.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -14,7 +14,7 @@ async function runBinaryMcp(args) {
|
|
|
14
14
|
const runtime = npmRuntime();
|
|
15
15
|
if (!runtime) {
|
|
16
16
|
process.env[directEnvironmentVariable] = "1";
|
|
17
|
-
const { runCli } = await import("./cli-
|
|
17
|
+
const { runCli } = await import("./cli-9qxmqyxx.mjs");
|
|
18
18
|
return runCli();
|
|
19
19
|
}
|
|
20
20
|
const { layout } = runtime;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-hn9dbnbe.mjs";
|
|
8
8
|
import"./main-mrew6jy8.mjs";
|
|
9
|
-
import"./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
import"./main-srh04zzr.mjs";
|
|
10
|
+
import"./main-gss8ctxx.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/dist/main-zta0xfr1.mjs
DELETED