@opencode/browse 0.0.11-dev.76 → 0.0.11-dev.78
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-qpkh40gh.mjs → cli-e9x2hzbm.mjs} +63 -52
- package/dist/cli.mjs +30 -19
- package/dist/{helpers-kp0j46jt.mjs → helpers-681ybn8r.mjs} +2 -2
- package/dist/{index-0dcypq31.mjs → index-yzz55kxm.mjs} +1 -1
- package/dist/{main-eej5z0y5.mjs → main-0yxzwqt8.mjs} +6 -6
- package/dist/main-1ja7rnnp.mjs +4 -0
- package/dist/main-3d4mj1xj.mjs +157 -0
- package/dist/main-4qeb707s.mjs +161 -0
- package/dist/{main-rt6g5418.mjs → main-8z9d979q.mjs} +15 -15
- package/dist/{main-nqmm7pdz.mjs → main-93xmqcr3.mjs} +47 -47
- package/dist/{main-gevbt7h7.mjs → main-csnx585b.mjs} +151 -151
- package/dist/{setup-j76yv51b.mjs → main-fkskfb8a.mjs} +3608 -4406
- package/dist/main-ftsbt0hk.mjs +73 -0
- package/dist/{main-brv9dhy5.mjs → main-gdvgbgce.mjs} +9 -9
- package/dist/{main-ajza8egc.mjs → main-mysz5yma.mjs} +44 -39
- package/dist/main-qzvstggv.mjs +465 -0
- package/dist/main-vgzr4689.mjs +61 -0
- package/dist/{mcp-sy8qgkyr.mjs → mcp-3v0wxzr5.mjs} +139 -138
- package/dist/migrate-5phz1hha.mjs +233 -0
- package/dist/{relay-ateyg5ax.mjs → relay-4chyv51v.mjs} +128 -123
- package/dist/runtime-update-pzazb7sh.mjs +156 -0
- package/dist/setup-5g5kza58.mjs +956 -0
- package/dist/{skill-text-x7sccp6h.mjs → skill-text-mrxy6zpc.mjs} +5 -4
- package/dist/{supervisor-0rvjpf4e.mjs → supervisor-bfrn5cxb.mjs} +38 -17
- package/dist/{update-rbd2025v.mjs → update-42j1j7w1.mjs} +3 -3
- package/dist/{version-4cjr3wpp.mjs → version-w0dwcyve.mjs} +1 -1
- package/package.json +1 -1
- package/skills/browse/SKILL.md +5 -4
- package/dist/main-7wgmq04v.mjs +0 -303
- package/dist/main-exnm62gg.mjs +0 -4
- package/dist/main-hm4fcpfz.mjs +0 -131
- package/dist/main-rn7hdcq2.mjs +0 -805
- package/dist/runtime-update-70gqzynp.mjs +0 -200
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
parseTargetSelection2,
|
|
13
13
|
getObject2,
|
|
14
14
|
getString2
|
|
15
|
-
} from "./main-
|
|
15
|
+
} from "./main-mysz5yma.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isNodeError,
|
|
18
18
|
writeJsonFileAtomically
|
|
19
|
-
} from "./main-
|
|
19
|
+
} from "./main-vgzr4689.mjs";
|
|
20
20
|
import {
|
|
21
21
|
getStackTraceLimit,
|
|
22
22
|
setStackTraceLimit,
|
|
@@ -45,8 +45,8 @@ import {
|
|
|
45
45
|
flatMap2,
|
|
46
46
|
onExitPrimitive,
|
|
47
47
|
uninterruptibleMask,
|
|
48
|
-
effectContext,
|
|
49
48
|
StackTrace,
|
|
49
|
+
effectContext,
|
|
50
50
|
isEffect,
|
|
51
51
|
promise,
|
|
52
52
|
tryPromise,
|
|
@@ -54,19 +54,17 @@ import {
|
|
|
54
54
|
sync2,
|
|
55
55
|
callback2,
|
|
56
56
|
gen,
|
|
57
|
-
|
|
57
|
+
fail5,
|
|
58
58
|
try_,
|
|
59
59
|
option2,
|
|
60
60
|
catchIf,
|
|
61
61
|
mapError,
|
|
62
|
-
|
|
62
|
+
context2,
|
|
63
63
|
contextWith,
|
|
64
64
|
provide3,
|
|
65
65
|
acquireUseRelease,
|
|
66
66
|
fnUntraced,
|
|
67
67
|
fn,
|
|
68
|
-
isStream,
|
|
69
|
-
provideContext2,
|
|
70
68
|
passthrough,
|
|
71
69
|
transformOptional,
|
|
72
70
|
withDefault2,
|
|
@@ -74,7 +72,7 @@ import {
|
|
|
74
72
|
decodeUnknownEffect2,
|
|
75
73
|
decodeUnknownSync,
|
|
76
74
|
encodeUnknownOption,
|
|
77
|
-
|
|
75
|
+
make8,
|
|
78
76
|
isSchema,
|
|
79
77
|
optionalKey,
|
|
80
78
|
optional,
|
|
@@ -99,7 +97,7 @@ import {
|
|
|
99
97
|
decodeTo2,
|
|
100
98
|
decode2,
|
|
101
99
|
withConstructorDefault,
|
|
102
|
-
|
|
100
|
+
tag2,
|
|
103
101
|
Opaque,
|
|
104
102
|
makeFilter,
|
|
105
103
|
isPattern,
|
|
@@ -114,8 +112,10 @@ import {
|
|
|
114
112
|
TaggedError2,
|
|
115
113
|
toJsonSchemaDocument,
|
|
116
114
|
Json,
|
|
117
|
-
JsonObject
|
|
118
|
-
|
|
115
|
+
JsonObject,
|
|
116
|
+
isStream,
|
|
117
|
+
provideContext2
|
|
118
|
+
} from "./main-csnx585b.mjs";
|
|
119
119
|
import {
|
|
120
120
|
pipeArguments,
|
|
121
121
|
identity,
|
|
@@ -131,7 +131,7 @@ import {
|
|
|
131
131
|
import {
|
|
132
132
|
dataRoot,
|
|
133
133
|
cliCommand
|
|
134
|
-
} from "./main-
|
|
134
|
+
} from "./main-qzvstggv.mjs";
|
|
135
135
|
|
|
136
136
|
// node_modules/effect/dist/Semaphore.js
|
|
137
137
|
var makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
@@ -252,7 +252,7 @@ function getStreamSchemas(schema) {
|
|
|
252
252
|
}
|
|
253
253
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
254
254
|
function Stream(success, error) {
|
|
255
|
-
return
|
|
255
|
+
return make8(schema.ast, {
|
|
256
256
|
[StreamSchemaTypeId]: StreamSchemaTypeId,
|
|
257
257
|
success,
|
|
258
258
|
error
|
|
@@ -467,7 +467,7 @@ var RpcGroupProto = {
|
|
|
467
467
|
toHandlers(build) {
|
|
468
468
|
const self = this;
|
|
469
469
|
return gen(function* () {
|
|
470
|
-
const services = yield*
|
|
470
|
+
const services = yield* context2();
|
|
471
471
|
const handlers = isEffect(build) ? yield* build : build;
|
|
472
472
|
const contextMap = new Map;
|
|
473
473
|
self.requests.forEach((rpc, tag) => {
|
|
@@ -498,7 +498,7 @@ var RpcGroupProto = {
|
|
|
498
498
|
toLayerHandler(service, build) {
|
|
499
499
|
const self = this;
|
|
500
500
|
return effectContext(gen(function* () {
|
|
501
|
-
const services = yield*
|
|
501
|
+
const services = yield* context2();
|
|
502
502
|
const handler = isEffect(build) ? yield* build : build;
|
|
503
503
|
const contextMap = new Map;
|
|
504
504
|
const rpc = self.requests.get(service);
|
|
@@ -708,36 +708,36 @@ var HEADER_MISMATCH_ERROR_CODE = -32020;
|
|
|
708
708
|
|
|
709
709
|
class ParseError extends (/* @__PURE__ */ Error2("effect/ai/McpSchema/ParseError")({
|
|
710
710
|
...McpErrorBase.fields,
|
|
711
|
-
_tag: /* @__PURE__ */
|
|
712
|
-
code: /* @__PURE__ */
|
|
711
|
+
_tag: /* @__PURE__ */ tag2("ParseError"),
|
|
712
|
+
code: /* @__PURE__ */ tag2(PARSE_ERROR_CODE)
|
|
713
713
|
})) {
|
|
714
714
|
}
|
|
715
715
|
|
|
716
716
|
class InvalidRequest extends (/* @__PURE__ */ Error2("effect/ai/McpSchema/InvalidRequest")({
|
|
717
717
|
...McpErrorBase.fields,
|
|
718
|
-
_tag: /* @__PURE__ */
|
|
719
|
-
code: /* @__PURE__ */
|
|
718
|
+
_tag: /* @__PURE__ */ tag2("InvalidRequest"),
|
|
719
|
+
code: /* @__PURE__ */ tag2(INVALID_REQUEST_ERROR_CODE)
|
|
720
720
|
})) {
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
class MethodNotFound extends (/* @__PURE__ */ Error2("effect/ai/McpSchema/MethodNotFound")({
|
|
724
724
|
...McpErrorBase.fields,
|
|
725
|
-
_tag: /* @__PURE__ */
|
|
726
|
-
code: /* @__PURE__ */
|
|
725
|
+
_tag: /* @__PURE__ */ tag2("MethodNotFound"),
|
|
726
|
+
code: /* @__PURE__ */ tag2(METHOD_NOT_FOUND_ERROR_CODE)
|
|
727
727
|
})) {
|
|
728
728
|
}
|
|
729
729
|
|
|
730
730
|
class InvalidParams extends (/* @__PURE__ */ Error2("effect/ai/McpSchema/InvalidParams")({
|
|
731
731
|
...McpErrorBase.fields,
|
|
732
|
-
_tag: /* @__PURE__ */
|
|
733
|
-
code: /* @__PURE__ */
|
|
732
|
+
_tag: /* @__PURE__ */ tag2("InvalidParams"),
|
|
733
|
+
code: /* @__PURE__ */ tag2(INVALID_PARAMS_ERROR_CODE)
|
|
734
734
|
})) {
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
class InternalError extends (/* @__PURE__ */ Error2("effect/ai/McpSchema/InternalError")({
|
|
738
738
|
...McpErrorBase.fields,
|
|
739
|
-
_tag: /* @__PURE__ */
|
|
740
|
-
code: /* @__PURE__ */
|
|
739
|
+
_tag: /* @__PURE__ */ tag2("InternalError"),
|
|
740
|
+
code: /* @__PURE__ */ tag2(INTERNAL_ERROR_CODE)
|
|
741
741
|
})) {
|
|
742
742
|
static notImplemented = /* @__PURE__ */ new InternalError({
|
|
743
743
|
message: "Not implemented"
|
|
@@ -914,7 +914,7 @@ class Prompt extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/Prompt")({
|
|
|
914
914
|
}
|
|
915
915
|
|
|
916
916
|
class TextContent extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct({
|
|
917
|
-
type: /* @__PURE__ */
|
|
917
|
+
type: /* @__PURE__ */ tag2("text"),
|
|
918
918
|
text: String3,
|
|
919
919
|
annotations: /* @__PURE__ */ optional2(Annotations),
|
|
920
920
|
_meta: /* @__PURE__ */ optional2(JsonObject)
|
|
@@ -922,7 +922,7 @@ class TextContent extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct({
|
|
|
922
922
|
}
|
|
923
923
|
|
|
924
924
|
class ImageContent extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct({
|
|
925
|
-
type: /* @__PURE__ */
|
|
925
|
+
type: /* @__PURE__ */ tag2("image"),
|
|
926
926
|
data: Uint8ArrayFromBase64,
|
|
927
927
|
mimeType: String3,
|
|
928
928
|
annotations: /* @__PURE__ */ optional2(Annotations),
|
|
@@ -931,7 +931,7 @@ class ImageContent extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct({
|
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
class AudioContent extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct({
|
|
934
|
-
type: /* @__PURE__ */
|
|
934
|
+
type: /* @__PURE__ */ tag2("audio"),
|
|
935
935
|
data: Uint8ArrayFromBase64,
|
|
936
936
|
mimeType: String3,
|
|
937
937
|
annotations: /* @__PURE__ */ optional2(Annotations),
|
|
@@ -940,7 +940,7 @@ class AudioContent extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct({
|
|
|
940
940
|
}
|
|
941
941
|
|
|
942
942
|
class EmbeddedResource extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct({
|
|
943
|
-
type: /* @__PURE__ */
|
|
943
|
+
type: /* @__PURE__ */ tag2("resource"),
|
|
944
944
|
resource: /* @__PURE__ */ Union([TextResourceContents, BlobResourceContents]),
|
|
945
945
|
annotations: /* @__PURE__ */ optional2(Annotations),
|
|
946
946
|
_meta: /* @__PURE__ */ optional2(JsonObject)
|
|
@@ -949,7 +949,7 @@ class EmbeddedResource extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct(
|
|
|
949
949
|
|
|
950
950
|
class ResourceLink extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct({
|
|
951
951
|
...Resource.fields,
|
|
952
|
-
type: /* @__PURE__ */
|
|
952
|
+
type: /* @__PURE__ */ tag2("resource_link")
|
|
953
953
|
}))) {
|
|
954
954
|
}
|
|
955
955
|
var ContentBlock = /* @__PURE__ */ Union([TextContent, ImageContent, AudioContent, EmbeddedResource, ResourceLink]);
|
|
@@ -1067,7 +1067,7 @@ class LoggingMessageNotification extends (/* @__PURE__ */ make2("notifications/m
|
|
|
1067
1067
|
}
|
|
1068
1068
|
|
|
1069
1069
|
class ToolUseContent extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/ToolUseContent")({
|
|
1070
|
-
type: /* @__PURE__ */
|
|
1070
|
+
type: /* @__PURE__ */ tag2("tool_use"),
|
|
1071
1071
|
id: String3,
|
|
1072
1072
|
name: String3,
|
|
1073
1073
|
input: /* @__PURE__ */ Record(String3, Unknown),
|
|
@@ -1076,7 +1076,7 @@ class ToolUseContent extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/ToolU
|
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
1078
|
class ToolResultContent extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/ToolResultContent")({
|
|
1079
|
-
type: /* @__PURE__ */
|
|
1079
|
+
type: /* @__PURE__ */ tag2("tool_result"),
|
|
1080
1080
|
toolUseId: String3,
|
|
1081
1081
|
content: /* @__PURE__ */ ArraySchema(ContentBlock),
|
|
1082
1082
|
structuredContent: /* @__PURE__ */ optional2(Json),
|
|
@@ -1181,7 +1181,7 @@ class ListRoots extends (/* @__PURE__ */ make2("roots/list", {
|
|
|
1181
1181
|
})) {
|
|
1182
1182
|
}
|
|
1183
1183
|
class ElicitationString extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/ElicitationString")({
|
|
1184
|
-
type: /* @__PURE__ */
|
|
1184
|
+
type: /* @__PURE__ */ tag2("string"),
|
|
1185
1185
|
title: /* @__PURE__ */ optional2(String3),
|
|
1186
1186
|
description: /* @__PURE__ */ optional2(String3),
|
|
1187
1187
|
minLength: /* @__PURE__ */ optional2(Int2),
|
|
@@ -1202,7 +1202,7 @@ class ElicitationNumber extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/El
|
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
1204
|
class ElicitationBoolean extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/ElicitationBoolean")({
|
|
1205
|
-
type: /* @__PURE__ */
|
|
1205
|
+
type: /* @__PURE__ */ tag2("boolean"),
|
|
1206
1206
|
title: /* @__PURE__ */ optional2(String3),
|
|
1207
1207
|
description: /* @__PURE__ */ optional2(String3),
|
|
1208
1208
|
default: /* @__PURE__ */ optional2(Boolean3)
|
|
@@ -1210,7 +1210,7 @@ class ElicitationBoolean extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/E
|
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
1212
|
class UntitledSingleSelectEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/UntitledSingleSelectEnum")({
|
|
1213
|
-
type: /* @__PURE__ */
|
|
1213
|
+
type: /* @__PURE__ */ tag2("string"),
|
|
1214
1214
|
title: /* @__PURE__ */ optional2(String3),
|
|
1215
1215
|
description: /* @__PURE__ */ optional2(String3),
|
|
1216
1216
|
enum: /* @__PURE__ */ ArraySchema(String3),
|
|
@@ -1219,7 +1219,7 @@ class UntitledSingleSelectEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSc
|
|
|
1219
1219
|
}
|
|
1220
1220
|
|
|
1221
1221
|
class TitledSingleSelectEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/TitledSingleSelectEnum")({
|
|
1222
|
-
type: /* @__PURE__ */
|
|
1222
|
+
type: /* @__PURE__ */ tag2("string"),
|
|
1223
1223
|
title: /* @__PURE__ */ optional2(String3),
|
|
1224
1224
|
description: /* @__PURE__ */ optional2(String3),
|
|
1225
1225
|
oneOf: /* @__PURE__ */ ArraySchema(/* @__PURE__ */ Struct({
|
|
@@ -1232,13 +1232,13 @@ class TitledSingleSelectEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSche
|
|
|
1232
1232
|
var SingleSelectEnum = /* @__PURE__ */ Union([UntitledSingleSelectEnum, TitledSingleSelectEnum]);
|
|
1233
1233
|
|
|
1234
1234
|
class UntitledMultiSelectEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/UntitledMultiSelectEnum")({
|
|
1235
|
-
type: /* @__PURE__ */
|
|
1235
|
+
type: /* @__PURE__ */ tag2("array"),
|
|
1236
1236
|
title: /* @__PURE__ */ optional2(String3),
|
|
1237
1237
|
description: /* @__PURE__ */ optional2(String3),
|
|
1238
1238
|
minItems: /* @__PURE__ */ optional2(Int2),
|
|
1239
1239
|
maxItems: /* @__PURE__ */ optional2(Int2),
|
|
1240
1240
|
items: /* @__PURE__ */ Struct({
|
|
1241
|
-
type: /* @__PURE__ */
|
|
1241
|
+
type: /* @__PURE__ */ tag2("string"),
|
|
1242
1242
|
enum: /* @__PURE__ */ ArraySchema(String3)
|
|
1243
1243
|
}),
|
|
1244
1244
|
default: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String3))
|
|
@@ -1246,7 +1246,7 @@ class UntitledMultiSelectEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSch
|
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
1248
|
class TitledMultiSelectEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/TitledMultiSelectEnum")({
|
|
1249
|
-
type: /* @__PURE__ */
|
|
1249
|
+
type: /* @__PURE__ */ tag2("array"),
|
|
1250
1250
|
title: /* @__PURE__ */ optional2(String3),
|
|
1251
1251
|
description: /* @__PURE__ */ optional2(String3),
|
|
1252
1252
|
minItems: /* @__PURE__ */ optional2(Int2),
|
|
@@ -1263,7 +1263,7 @@ class TitledMultiSelectEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSchem
|
|
|
1263
1263
|
var MultiSelectEnum = /* @__PURE__ */ Union([UntitledMultiSelectEnum, TitledMultiSelectEnum]);
|
|
1264
1264
|
|
|
1265
1265
|
class LegacyTitledEnum extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/LegacyTitledEnum")({
|
|
1266
|
-
type: /* @__PURE__ */
|
|
1266
|
+
type: /* @__PURE__ */ tag2("string"),
|
|
1267
1267
|
title: /* @__PURE__ */ optional2(String3),
|
|
1268
1268
|
description: /* @__PURE__ */ optional2(String3),
|
|
1269
1269
|
enum: /* @__PURE__ */ ArraySchema(String3),
|
|
@@ -1275,7 +1275,7 @@ var ElicitationEnum = /* @__PURE__ */ Union([LegacyTitledEnum, SingleSelectEnum,
|
|
|
1275
1275
|
var PrimitiveSchemaDefinition = /* @__PURE__ */ Union([ElicitationEnum, ElicitationString, ElicitationNumber, ElicitationBoolean]);
|
|
1276
1276
|
var ElicitationForm = /* @__PURE__ */ Struct({
|
|
1277
1277
|
$schema: /* @__PURE__ */ optional2(String3),
|
|
1278
|
-
type: /* @__PURE__ */
|
|
1278
|
+
type: /* @__PURE__ */ tag2("object"),
|
|
1279
1279
|
properties: /* @__PURE__ */ Record(String3, PrimitiveSchemaDefinition),
|
|
1280
1280
|
required: /* @__PURE__ */ optional2(/* @__PURE__ */ ArraySchema(String3))
|
|
1281
1281
|
});
|
|
@@ -1326,7 +1326,7 @@ class ElicitationCompleteNotification extends (/* @__PURE__ */ make2("notificati
|
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
1328
|
class ElicitationDeclined extends (/* @__PURE__ */ Error2("@effect/ai/McpSchema/ElicitationDeclined")({
|
|
1329
|
-
_tag: /* @__PURE__ */
|
|
1329
|
+
_tag: /* @__PURE__ */ tag2("ElicitationDeclined"),
|
|
1330
1330
|
request: Elicit.payloadSchema,
|
|
1331
1331
|
cause: /* @__PURE__ */ optional2(/* @__PURE__ */ Defect())
|
|
1332
1332
|
})) {
|
|
@@ -1360,7 +1360,7 @@ var settingSpecs = {
|
|
|
1360
1360
|
cursor: { label: "Agent cursor on agent tabs outside recordings (pages can detect it)", values: ["off", "always"], variable: "OPENCODE_BROWSER_GHOST_CURSOR" },
|
|
1361
1361
|
humanInput: { label: "Human-like input (off is faster, but easier for sites to flag)", values: ["on", "off"], variable: "OPENCODE_BROWSER_HUMAN_INPUT" },
|
|
1362
1362
|
handoffNotifications: { label: "System notification on a handoff (only while recorded, or every handoff)", values: ["recording", "always"] },
|
|
1363
|
-
autoUpdate: { label: "
|
|
1363
|
+
autoUpdate: { label: "installs: install updates automatically when idle, only notify, or never check", values: ["on", "notify", "off"], variable: "OPENCODE_BROWSER_AUTO_UPDATE" }
|
|
1364
1364
|
};
|
|
1365
1365
|
var securityVariables = [
|
|
1366
1366
|
"OPENCODE_BROWSER_ALLOW_NODE",
|
|
@@ -1672,7 +1672,7 @@ var ensureSessionExists = fnUntraced(function* (relay, id) {
|
|
|
1672
1672
|
return session.id === id;
|
|
1673
1673
|
});
|
|
1674
1674
|
if (!exists) {
|
|
1675
|
-
return yield*
|
|
1675
|
+
return yield* fail5(new Error(`Session not found: ${id}`));
|
|
1676
1676
|
}
|
|
1677
1677
|
});
|
|
1678
1678
|
function parseExecuteArguments(input) {
|
|
@@ -2486,7 +2486,7 @@ function summary(profile) {
|
|
|
2486
2486
|
}
|
|
2487
2487
|
var profileNamePattern = /^[a-z0-9][a-z0-9._-]{0,63}$/i;
|
|
2488
2488
|
function profilePath(baseDir, name) {
|
|
2489
|
-
return profileNamePattern.test(name) ? succeed6(path.join(baseDir, `${name}.json`)) :
|
|
2489
|
+
return profileNamePattern.test(name) ? succeed6(path.join(baseDir, `${name}.json`)) : fail5(new AuthProfileError({ message: `Invalid auth profile name: ${name}`, operation: "path", reason: "invalid-name" }));
|
|
2490
2490
|
}
|
|
2491
2491
|
function sameSlots(left, right) {
|
|
2492
2492
|
return JSON.stringify(left) === JSON.stringify(right);
|
|
@@ -2564,7 +2564,7 @@ function runChild(options) {
|
|
|
2564
2564
|
if (settled)
|
|
2565
2565
|
return;
|
|
2566
2566
|
settled = true;
|
|
2567
|
-
resume(
|
|
2567
|
+
resume(fail5(cause));
|
|
2568
2568
|
});
|
|
2569
2569
|
child.once("close", (code, signal) => {
|
|
2570
2570
|
clearTimeout(timeout);
|
|
@@ -2805,7 +2805,7 @@ class SiteSecretError extends TaggedError2()("SiteSecret.Error", {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
var defaultSiteSecretsDir = () => path2.join(dataRoot(), "site-secrets");
|
|
2807
2807
|
function secretPath(baseDir, name) {
|
|
2808
|
-
return profileNamePattern.test(name) ? succeed6(path2.join(baseDir, `${name}.json`)) :
|
|
2808
|
+
return profileNamePattern.test(name) ? succeed6(path2.join(baseDir, `${name}.json`)) : fail5(new SiteSecretError({ message: `Invalid secret name: ${name} (letters, digits, ".", "_" and "-", up to 64)`, reason: "invalid-name" }));
|
|
2809
2809
|
}
|
|
2810
2810
|
function summary2(secret) {
|
|
2811
2811
|
return { name: secret.name, kind: secret.kind, allowedOrigins: [...secret.allowedOrigins], createdAt: secret.createdAt, updatedAt: secret.updatedAt };
|