@opencode/browse 0.0.17-dev.186 → 0.0.17-dev.188

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.
Files changed (32) hide show
  1. package/dist/{cli-7289awyd.mjs → cli-5ezftnv2.mjs} +25 -25
  2. package/dist/cli.mjs +13 -16
  3. package/dist/{helpers-21yzw670.mjs → helpers-k5ybc61c.mjs} +1 -1
  4. package/dist/{index-4tw494gw.mjs → index-37ssbv86.mjs} +1 -1
  5. package/dist/{legacy-runtime-ytvtb4p6.mjs → legacy-runtime-j0sw664c.mjs} +7 -8
  6. package/dist/{main-97vjgp95.mjs → main-4qq4n32k.mjs} +2 -2
  7. package/dist/{main-3ymzbg04.mjs → main-66fy08h5.mjs} +28 -28
  8. package/dist/{main-81fht5nj.mjs → main-7h3v45ag.mjs} +13 -6
  9. package/dist/{main-hv8t6206.mjs → main-7v4scg8t.mjs} +3 -3
  10. package/dist/{main-gmhbkamn.mjs → main-9q9919e3.mjs} +2 -2
  11. package/dist/{main-gnfmgnwj.mjs → main-ba028a85.mjs} +32 -22
  12. package/dist/{main-vw7jwd0n.mjs → main-d8km89cz.mjs} +2 -2
  13. package/dist/{main-y3h7b6gd.mjs → main-dab23et4.mjs} +1 -1
  14. package/dist/{main-z3txr4wt.mjs → main-kzcrfvmh.mjs} +4 -4
  15. package/dist/{main-7y134fzj.mjs → main-m9n50a86.mjs} +17 -7
  16. package/dist/{main-ns026dfw.mjs → main-mvjg1jye.mjs} +1 -1
  17. package/dist/{main-czz5kqq9.mjs → main-pqxrvknr.mjs} +2 -2
  18. package/dist/main-qrqem3fy.mjs +4 -0
  19. package/dist/{main-ghh2tvn1.mjs → main-svhdexdh.mjs} +4 -4
  20. package/dist/{main-wq3rxzcg.mjs → main-tryp3jph.mjs} +2 -2
  21. package/dist/{mcp-gqnkhtt0.mjs → mcp-jh4atts2.mjs} +116 -110
  22. package/dist/{migrate-der69rr4.mjs → migrate-r433scvg.mjs} +7 -7
  23. package/dist/{relay-32ed2ae2.mjs → relay-1epy67be.mjs} +62 -49
  24. package/dist/{remove-stored-secrets-58r3xd1b.mjs → remove-stored-secrets-wy3pakjj.mjs} +1 -1
  25. package/dist/{runtime-update-3v5znrk0.mjs → runtime-update-ww2pejn2.mjs} +11 -11
  26. package/dist/{setup-tzttzgb4.mjs → setup-n1hpbkz2.mjs} +11 -11
  27. package/dist/{update-exnjhpqb.mjs → update-z7qvagkc.mjs} +3 -3
  28. package/dist/{version-h0n5h8j4.mjs → version-2123c138.mjs} +1 -1
  29. package/package.json +1 -1
  30. package/dist/main-xz6gd1xb.mjs +0 -4
  31. package/dist/supervisor-84gbxv46.mjs +0 -271
  32. package/dist/{main-qjr69cgp.mjs → main-3514h33n.mjs} +3 -3
@@ -42,14 +42,14 @@ import {
42
42
  empty3,
43
43
  jsonUnsafe,
44
44
  layer
45
- } from "./main-qjr69cgp.mjs";
45
+ } from "./main-3514h33n.mjs";
46
46
  import"./main-pmfd055v.mjs";
47
47
  import {
48
48
  opencodeBrowserVersion2
49
- } from "./main-xz6gd1xb.mjs";
49
+ } from "./main-qrqem3fy.mjs";
50
50
  import {
51
51
  autoUpdateStatus
52
- } from "./main-7y134fzj.mjs";
52
+ } from "./main-m9n50a86.mjs";
53
53
  import {
54
54
  SessionContainer,
55
55
  SessionsContainer,
@@ -57,7 +57,7 @@ import {
57
57
  SessionAdoptResponse,
58
58
  TabsCleanupResponse,
59
59
  getObject2
60
- } from "./main-ns026dfw.mjs";
60
+ } from "./main-mvjg1jye.mjs";
61
61
  import {
62
62
  option,
63
63
  String2,
@@ -65,24 +65,23 @@ import {
65
65
  Service,
66
66
  layerFetchMcp,
67
67
  relayBuildProblem,
68
+ olderMcpClientAdvice,
68
69
  ensureRelay,
69
70
  ensureExtensionConnected
70
- } from "./main-gnfmgnwj.mjs";
71
+ } from "./main-ba028a85.mjs";
71
72
  import {
72
73
  updateJson2,
73
74
  createUpdateWatcher2
74
- } from "./main-hv8t6206.mjs";
75
+ } from "./main-7v4scg8t.mjs";
75
76
  import {
76
- settingSpecs,
77
- securityVariables,
78
77
  isStreamSchema,
79
78
  getStreamSchemas,
80
79
  ClientAbort,
81
80
  ServerClient,
82
- make2,
81
+ make,
83
82
  exitSchema,
84
83
  isWrapper,
85
- make3,
84
+ make2,
86
85
  Implementation,
87
86
  ClientCapabilities,
88
87
  INVALID_REQUEST_ERROR_CODE,
@@ -121,6 +120,8 @@ import {
121
120
  McpServerClientMiddleware,
122
121
  ServerNotificationRpcs,
123
122
  EnabledWhen,
123
+ settingSpecs,
124
+ securityVariables,
124
125
  mcpUpdateNote2,
125
126
  objectSchema,
126
127
  valuesSchema,
@@ -150,11 +151,11 @@ import {
150
151
  toolResultForValue2,
151
152
  mcpErrorMessage2,
152
153
  toolResult
153
- } from "./main-3ymzbg04.mjs";
154
+ } from "./main-66fy08h5.mjs";
154
155
  import {
155
156
  Clock,
156
157
  makeUnsafe,
157
- make,
158
+ make3,
158
159
  type,
159
160
  value,
160
161
  when,
@@ -166,9 +167,9 @@ import {
166
167
  boolean,
167
168
  orElse,
168
169
  exhaustive
169
- } from "./main-gmhbkamn.mjs";
170
- import"./main-czz5kqq9.mjs";
171
- import"./main-97vjgp95.mjs";
170
+ } from "./main-9q9919e3.mjs";
171
+ import"./main-pqxrvknr.mjs";
172
+ import"./main-4qq4n32k.mjs";
172
173
  import {
173
174
  Class,
174
175
  taggedEnum,
@@ -2605,7 +2606,7 @@ var headerMismatch = (message) => ({
2605
2606
  message
2606
2607
  }
2607
2608
  });
2608
- var PingRpcs = /* @__PURE__ */ make3(Ping);
2609
+ var PingRpcs = /* @__PURE__ */ make2(Ping);
2609
2610
  var stateful = (transport) => ({
2610
2611
  _tag: "Stateful",
2611
2612
  transport
@@ -3217,14 +3218,14 @@ var ListRootsResult2 = /* @__PURE__ */ Struct({
3217
3218
  roots: /* @__PURE__ */ ArraySchema(Root)
3218
3219
  });
3219
3220
 
3220
- class Ping2 extends (/* @__PURE__ */ make2("ping", {
3221
+ class Ping2 extends (/* @__PURE__ */ make("ping", {
3221
3222
  success: ResultMeta,
3222
3223
  error: McpError2,
3223
3224
  payload: /* @__PURE__ */ UndefinedOr(RequestMeta)
3224
3225
  })) {
3225
3226
  }
3226
3227
 
3227
- class Initialize2 extends (/* @__PURE__ */ make2("initialize", {
3228
+ class Initialize2 extends (/* @__PURE__ */ make("initialize", {
3228
3229
  success: InitializeResult,
3229
3230
  error: McpError2,
3230
3231
  payload: {
@@ -3236,7 +3237,7 @@ class Initialize2 extends (/* @__PURE__ */ make2("initialize", {
3236
3237
  })) {
3237
3238
  }
3238
3239
 
3239
- class Complete extends (/* @__PURE__ */ make2("completion/complete", {
3240
+ class Complete extends (/* @__PURE__ */ make("completion/complete", {
3240
3241
  success: CompleteResult,
3241
3242
  error: McpError2,
3242
3243
  payload: {
@@ -3250,7 +3251,7 @@ class Complete extends (/* @__PURE__ */ make2("completion/complete", {
3250
3251
  })) {
3251
3252
  }
3252
3253
 
3253
- class SetLevel extends (/* @__PURE__ */ make2("logging/setLevel", {
3254
+ class SetLevel extends (/* @__PURE__ */ make("logging/setLevel", {
3254
3255
  success: ResultMeta,
3255
3256
  error: McpError2,
3256
3257
  payload: {
@@ -3260,7 +3261,7 @@ class SetLevel extends (/* @__PURE__ */ make2("logging/setLevel", {
3260
3261
  })) {
3261
3262
  }
3262
3263
 
3263
- class GetPrompt extends (/* @__PURE__ */ make2("prompts/get", {
3264
+ class GetPrompt extends (/* @__PURE__ */ make("prompts/get", {
3264
3265
  success: GetPromptResult,
3265
3266
  error: McpError2,
3266
3267
  payload: {
@@ -3271,28 +3272,28 @@ class GetPrompt extends (/* @__PURE__ */ make2("prompts/get", {
3271
3272
  })) {
3272
3273
  }
3273
3274
 
3274
- class ListPrompts extends (/* @__PURE__ */ make2("prompts/list", {
3275
+ class ListPrompts extends (/* @__PURE__ */ make("prompts/list", {
3275
3276
  success: ListPromptsResult,
3276
3277
  error: McpError2,
3277
3278
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
3278
3279
  })) {
3279
3280
  }
3280
3281
 
3281
- class ListResources extends (/* @__PURE__ */ make2("resources/list", {
3282
+ class ListResources extends (/* @__PURE__ */ make("resources/list", {
3282
3283
  success: ListResourcesResult,
3283
3284
  error: McpError2,
3284
3285
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
3285
3286
  })) {
3286
3287
  }
3287
3288
 
3288
- class ListResourceTemplates extends (/* @__PURE__ */ make2("resources/templates/list", {
3289
+ class ListResourceTemplates extends (/* @__PURE__ */ make("resources/templates/list", {
3289
3290
  success: ListResourceTemplatesResult,
3290
3291
  error: McpError2,
3291
3292
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
3292
3293
  })) {
3293
3294
  }
3294
3295
 
3295
- class ReadResource extends (/* @__PURE__ */ make2("resources/read", {
3296
+ class ReadResource extends (/* @__PURE__ */ make("resources/read", {
3296
3297
  success: ReadResourceResult,
3297
3298
  error: McpError2,
3298
3299
  payload: {
@@ -3302,7 +3303,7 @@ class ReadResource extends (/* @__PURE__ */ make2("resources/read", {
3302
3303
  })) {
3303
3304
  }
3304
3305
 
3305
- class Subscribe extends (/* @__PURE__ */ make2("resources/subscribe", {
3306
+ class Subscribe extends (/* @__PURE__ */ make("resources/subscribe", {
3306
3307
  success: ResultMeta,
3307
3308
  error: McpError2,
3308
3309
  payload: {
@@ -3312,7 +3313,7 @@ class Subscribe extends (/* @__PURE__ */ make2("resources/subscribe", {
3312
3313
  })) {
3313
3314
  }
3314
3315
 
3315
- class Unsubscribe extends (/* @__PURE__ */ make2("resources/unsubscribe", {
3316
+ class Unsubscribe extends (/* @__PURE__ */ make("resources/unsubscribe", {
3316
3317
  success: ResultMeta,
3317
3318
  error: McpError2,
3318
3319
  payload: {
@@ -3322,7 +3323,7 @@ class Unsubscribe extends (/* @__PURE__ */ make2("resources/unsubscribe", {
3322
3323
  })) {
3323
3324
  }
3324
3325
 
3325
- class CallTool extends (/* @__PURE__ */ make2("tools/call", {
3326
+ class CallTool extends (/* @__PURE__ */ make("tools/call", {
3326
3327
  success: CallToolResult2,
3327
3328
  error: McpError2,
3328
3329
  payload: {
@@ -3333,14 +3334,14 @@ class CallTool extends (/* @__PURE__ */ make2("tools/call", {
3333
3334
  })) {
3334
3335
  }
3335
3336
 
3336
- class ListTools extends (/* @__PURE__ */ make2("tools/list", {
3337
+ class ListTools extends (/* @__PURE__ */ make("tools/list", {
3337
3338
  success: ListToolsResult,
3338
3339
  error: McpError2,
3339
3340
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
3340
3341
  })) {
3341
3342
  }
3342
3343
 
3343
- class CreateMessage2 extends (/* @__PURE__ */ make2("sampling/createMessage", {
3344
+ class CreateMessage2 extends (/* @__PURE__ */ make("sampling/createMessage", {
3344
3345
  success: CreateMessageResult,
3345
3346
  error: McpError2,
3346
3347
  payload: {
@@ -3357,14 +3358,14 @@ class CreateMessage2 extends (/* @__PURE__ */ make2("sampling/createMessage", {
3357
3358
  })) {
3358
3359
  }
3359
3360
 
3360
- class ListRoots2 extends (/* @__PURE__ */ make2("roots/list", {
3361
+ class ListRoots2 extends (/* @__PURE__ */ make("roots/list", {
3361
3362
  success: ListRootsResult2,
3362
3363
  error: McpError2,
3363
3364
  payload: /* @__PURE__ */ UndefinedOr(RequestMeta)
3364
3365
  })) {
3365
3366
  }
3366
3367
 
3367
- class CancelledNotification2 extends (/* @__PURE__ */ make2("notifications/cancelled", {
3368
+ class CancelledNotification2 extends (/* @__PURE__ */ make("notifications/cancelled", {
3368
3369
  payload: {
3369
3370
  ...NotificationMeta.fields,
3370
3371
  requestId: RequestId2,
@@ -3373,7 +3374,7 @@ class CancelledNotification2 extends (/* @__PURE__ */ make2("notifications/cance
3373
3374
  })) {
3374
3375
  }
3375
3376
 
3376
- class ProgressNotification2 extends (/* @__PURE__ */ make2("notifications/progress", {
3377
+ class ProgressNotification2 extends (/* @__PURE__ */ make("notifications/progress", {
3377
3378
  payload: {
3378
3379
  ...NotificationMeta.fields,
3379
3380
  progressToken: ProgressToken,
@@ -3383,17 +3384,17 @@ class ProgressNotification2 extends (/* @__PURE__ */ make2("notifications/progre
3383
3384
  })) {
3384
3385
  }
3385
3386
 
3386
- class InitializedNotification extends (/* @__PURE__ */ make2("notifications/initialized", {
3387
+ class InitializedNotification extends (/* @__PURE__ */ make("notifications/initialized", {
3387
3388
  payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
3388
3389
  })) {
3389
3390
  }
3390
3391
 
3391
- class RootsListChangedNotification extends (/* @__PURE__ */ make2("notifications/roots/list_changed", {
3392
+ class RootsListChangedNotification extends (/* @__PURE__ */ make("notifications/roots/list_changed", {
3392
3393
  payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
3393
3394
  })) {
3394
3395
  }
3395
3396
 
3396
- class LoggingMessageNotification2 extends (/* @__PURE__ */ make2("notifications/message", {
3397
+ class LoggingMessageNotification2 extends (/* @__PURE__ */ make("notifications/message", {
3397
3398
  payload: {
3398
3399
  ...NotificationMeta.fields,
3399
3400
  level: LoggingLevel2,
@@ -3403,7 +3404,7 @@ class LoggingMessageNotification2 extends (/* @__PURE__ */ make2("notifications/
3403
3404
  })) {
3404
3405
  }
3405
3406
 
3406
- class ResourceUpdatedNotification2 extends (/* @__PURE__ */ make2("notifications/resources/updated", {
3407
+ class ResourceUpdatedNotification2 extends (/* @__PURE__ */ make("notifications/resources/updated", {
3407
3408
  payload: {
3408
3409
  ...NotificationMeta.fields,
3409
3410
  uri: String3
@@ -3411,31 +3412,31 @@ class ResourceUpdatedNotification2 extends (/* @__PURE__ */ make2("notifications
3411
3412
  })) {
3412
3413
  }
3413
3414
 
3414
- class ResourceListChangedNotification2 extends (/* @__PURE__ */ make2("notifications/resources/list_changed", {
3415
+ class ResourceListChangedNotification2 extends (/* @__PURE__ */ make("notifications/resources/list_changed", {
3415
3416
  payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
3416
3417
  })) {
3417
3418
  }
3418
3419
 
3419
- class ToolListChangedNotification2 extends (/* @__PURE__ */ make2("notifications/tools/list_changed", {
3420
+ class ToolListChangedNotification2 extends (/* @__PURE__ */ make("notifications/tools/list_changed", {
3420
3421
  payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
3421
3422
  })) {
3422
3423
  }
3423
3424
 
3424
- class PromptListChangedNotification2 extends (/* @__PURE__ */ make2("notifications/prompts/list_changed", {
3425
+ class PromptListChangedNotification2 extends (/* @__PURE__ */ make("notifications/prompts/list_changed", {
3425
3426
  payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
3426
3427
  })) {
3427
3428
  }
3428
3429
 
3429
- class ClientRequestRpcs extends (/* @__PURE__ */ make3(Ping2, Initialize2, Complete, SetLevel, GetPrompt, ListPrompts, ListResources, ListResourceTemplates, ReadResource, Subscribe, Unsubscribe, CallTool, ListTools)) {
3430
+ class ClientRequestRpcs extends (/* @__PURE__ */ make2(Ping2, Initialize2, Complete, SetLevel, GetPrompt, ListPrompts, ListResources, ListResourceTemplates, ReadResource, Subscribe, Unsubscribe, CallTool, ListTools)) {
3430
3431
  }
3431
3432
 
3432
- class ClientNotificationRpcs extends (/* @__PURE__ */ make3(CancelledNotification2, ProgressNotification2, InitializedNotification, RootsListChangedNotification)) {
3433
+ class ClientNotificationRpcs extends (/* @__PURE__ */ make2(CancelledNotification2, ProgressNotification2, InitializedNotification, RootsListChangedNotification)) {
3433
3434
  }
3434
3435
 
3435
- class ServerRequestRpcs extends (/* @__PURE__ */ make3(Ping2, CreateMessage2, ListRoots2)) {
3436
+ class ServerRequestRpcs extends (/* @__PURE__ */ make2(Ping2, CreateMessage2, ListRoots2)) {
3436
3437
  }
3437
3438
 
3438
- class ServerNotificationRpcs2 extends (/* @__PURE__ */ make3(CancelledNotification2, ProgressNotification2, LoggingMessageNotification2, ResourceUpdatedNotification2, ResourceListChangedNotification2, ToolListChangedNotification2, PromptListChangedNotification2)) {
3439
+ class ServerNotificationRpcs2 extends (/* @__PURE__ */ make2(CancelledNotification2, ProgressNotification2, LoggingMessageNotification2, ResourceUpdatedNotification2, ResourceListChangedNotification2, ToolListChangedNotification2, PromptListChangedNotification2)) {
3439
3440
  }
3440
3441
 
3441
3442
  // node_modules/effect/dist/ai/internal/mcpProtocol/v2024_11_05.js
@@ -3763,7 +3764,7 @@ var CreateMessageResult2 = /* @__PURE__ */ Struct({
3763
3764
  stopReason: /* @__PURE__ */ optional3(String3)
3764
3765
  });
3765
3766
 
3766
- class Initialize3 extends (/* @__PURE__ */ make2("initialize", {
3767
+ class Initialize3 extends (/* @__PURE__ */ make("initialize", {
3767
3768
  success: InitializeResult2,
3768
3769
  error: McpError2,
3769
3770
  payload: {
@@ -3775,7 +3776,7 @@ class Initialize3 extends (/* @__PURE__ */ make2("initialize", {
3775
3776
  })) {
3776
3777
  }
3777
3778
 
3778
- class GetPrompt2 extends (/* @__PURE__ */ make2("prompts/get", {
3779
+ class GetPrompt2 extends (/* @__PURE__ */ make("prompts/get", {
3779
3780
  success: GetPromptResult2,
3780
3781
  error: McpError2,
3781
3782
  payload: {
@@ -3786,14 +3787,14 @@ class GetPrompt2 extends (/* @__PURE__ */ make2("prompts/get", {
3786
3787
  })) {
3787
3788
  }
3788
3789
 
3789
- class ListTools2 extends (/* @__PURE__ */ make2("tools/list", {
3790
+ class ListTools2 extends (/* @__PURE__ */ make("tools/list", {
3790
3791
  success: ListToolsResult2,
3791
3792
  error: McpError2,
3792
3793
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
3793
3794
  })) {
3794
3795
  }
3795
3796
 
3796
- class CallTool2 extends (/* @__PURE__ */ make2("tools/call", {
3797
+ class CallTool2 extends (/* @__PURE__ */ make("tools/call", {
3797
3798
  success: CallToolResult3,
3798
3799
  error: McpError2,
3799
3800
  payload: {
@@ -3804,7 +3805,7 @@ class CallTool2 extends (/* @__PURE__ */ make2("tools/call", {
3804
3805
  })) {
3805
3806
  }
3806
3807
 
3807
- class CreateMessage3 extends (/* @__PURE__ */ make2("sampling/createMessage", {
3808
+ class CreateMessage3 extends (/* @__PURE__ */ make("sampling/createMessage", {
3808
3809
  success: CreateMessageResult2,
3809
3810
  error: McpError2,
3810
3811
  payload: {
@@ -3821,7 +3822,7 @@ class CreateMessage3 extends (/* @__PURE__ */ make2("sampling/createMessage", {
3821
3822
  })) {
3822
3823
  }
3823
3824
 
3824
- class ProgressNotification3 extends (/* @__PURE__ */ make2("notifications/progress", {
3825
+ class ProgressNotification3 extends (/* @__PURE__ */ make("notifications/progress", {
3825
3826
  payload: {
3826
3827
  ...NotificationMeta.fields,
3827
3828
  progressToken: ProgressToken,
@@ -3832,16 +3833,16 @@ class ProgressNotification3 extends (/* @__PURE__ */ make2("notifications/progre
3832
3833
  })) {
3833
3834
  }
3834
3835
 
3835
- class ClientRequestRpcs3 extends (/* @__PURE__ */ make3(Ping2, Initialize3, Complete, SetLevel, GetPrompt2, ListPrompts, ListResources, ListResourceTemplates, ReadResource, Subscribe, Unsubscribe, CallTool2, ListTools2)) {
3836
+ class ClientRequestRpcs3 extends (/* @__PURE__ */ make2(Ping2, Initialize3, Complete, SetLevel, GetPrompt2, ListPrompts, ListResources, ListResourceTemplates, ReadResource, Subscribe, Unsubscribe, CallTool2, ListTools2)) {
3836
3837
  }
3837
3838
 
3838
- class ClientNotificationRpcs2 extends (/* @__PURE__ */ make3(CancelledNotification2, ProgressNotification3, InitializedNotification, RootsListChangedNotification)) {
3839
+ class ClientNotificationRpcs2 extends (/* @__PURE__ */ make2(CancelledNotification2, ProgressNotification3, InitializedNotification, RootsListChangedNotification)) {
3839
3840
  }
3840
3841
 
3841
- class ServerRequestRpcs2 extends (/* @__PURE__ */ make3(Ping2, CreateMessage3, ListRoots2)) {
3842
+ class ServerRequestRpcs2 extends (/* @__PURE__ */ make2(Ping2, CreateMessage3, ListRoots2)) {
3842
3843
  }
3843
3844
 
3844
- class ServerNotificationRpcs3 extends (/* @__PURE__ */ make3(CancelledNotification2, ProgressNotification3, LoggingMessageNotification2, ResourceUpdatedNotification2, ResourceListChangedNotification2, ToolListChangedNotification2, PromptListChangedNotification2)) {
3845
+ class ServerNotificationRpcs3 extends (/* @__PURE__ */ make2(CancelledNotification2, ProgressNotification3, LoggingMessageNotification2, ResourceUpdatedNotification2, ResourceListChangedNotification2, ToolListChangedNotification2, PromptListChangedNotification2)) {
3845
3846
  }
3846
3847
 
3847
3848
  // node_modules/effect/dist/ai/internal/mcpProtocol/v2025_03_26.js
@@ -4224,7 +4225,7 @@ var InitializeResult3 = /* @__PURE__ */ Struct({
4224
4225
  instructions: /* @__PURE__ */ optional4(String3)
4225
4226
  });
4226
4227
 
4227
- class Initialize4 extends (/* @__PURE__ */ make2("initialize", {
4228
+ class Initialize4 extends (/* @__PURE__ */ make("initialize", {
4228
4229
  success: InitializeResult3,
4229
4230
  error: McpError2,
4230
4231
  payload: {
@@ -4263,7 +4264,7 @@ var CreateMessageResult3 = /* @__PURE__ */ Struct({
4263
4264
  stopReason: /* @__PURE__ */ optional4(String3)
4264
4265
  });
4265
4266
 
4266
- class CreateMessage4 extends (/* @__PURE__ */ make2("sampling/createMessage", {
4267
+ class CreateMessage4 extends (/* @__PURE__ */ make("sampling/createMessage", {
4267
4268
  success: CreateMessageResult3,
4268
4269
  error: McpError2,
4269
4270
  payload: {
@@ -4289,7 +4290,7 @@ var ResourceTemplateReference = /* @__PURE__ */ Struct({
4289
4290
  });
4290
4291
  var CompleteResult2 = CompleteResult;
4291
4292
 
4292
- class Complete2 extends (/* @__PURE__ */ make2("completion/complete", {
4293
+ class Complete2 extends (/* @__PURE__ */ make("completion/complete", {
4293
4294
  success: CompleteResult2,
4294
4295
  error: McpError2,
4295
4296
  payload: {
@@ -4331,21 +4332,21 @@ var ListToolsResult3 = /* @__PURE__ */ Struct({
4331
4332
  tools: /* @__PURE__ */ ArraySchema(Tool4)
4332
4333
  });
4333
4334
 
4334
- class ListResources2 extends (/* @__PURE__ */ make2("resources/list", {
4335
+ class ListResources2 extends (/* @__PURE__ */ make("resources/list", {
4335
4336
  success: ListResourcesResult2,
4336
4337
  error: McpError2,
4337
4338
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
4338
4339
  })) {
4339
4340
  }
4340
4341
 
4341
- class ListResourceTemplates2 extends (/* @__PURE__ */ make2("resources/templates/list", {
4342
+ class ListResourceTemplates2 extends (/* @__PURE__ */ make("resources/templates/list", {
4342
4343
  success: ListResourceTemplatesResult2,
4343
4344
  error: McpError2,
4344
4345
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
4345
4346
  })) {
4346
4347
  }
4347
4348
 
4348
- class ReadResource2 extends (/* @__PURE__ */ make2("resources/read", {
4349
+ class ReadResource2 extends (/* @__PURE__ */ make("resources/read", {
4349
4350
  success: ReadResourceResult2,
4350
4351
  error: McpError2,
4351
4352
  payload: {
@@ -4355,14 +4356,14 @@ class ReadResource2 extends (/* @__PURE__ */ make2("resources/read", {
4355
4356
  })) {
4356
4357
  }
4357
4358
 
4358
- class ListPrompts2 extends (/* @__PURE__ */ make2("prompts/list", {
4359
+ class ListPrompts2 extends (/* @__PURE__ */ make("prompts/list", {
4359
4360
  success: ListPromptsResult2,
4360
4361
  error: McpError2,
4361
4362
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
4362
4363
  })) {
4363
4364
  }
4364
4365
 
4365
- class GetPrompt3 extends (/* @__PURE__ */ make2("prompts/get", {
4366
+ class GetPrompt3 extends (/* @__PURE__ */ make("prompts/get", {
4366
4367
  success: GetPromptResult3,
4367
4368
  error: McpError2,
4368
4369
  payload: {
@@ -4373,14 +4374,14 @@ class GetPrompt3 extends (/* @__PURE__ */ make2("prompts/get", {
4373
4374
  })) {
4374
4375
  }
4375
4376
 
4376
- class ListTools3 extends (/* @__PURE__ */ make2("tools/list", {
4377
+ class ListTools3 extends (/* @__PURE__ */ make("tools/list", {
4377
4378
  success: ListToolsResult3,
4378
4379
  error: McpError2,
4379
4380
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
4380
4381
  })) {
4381
4382
  }
4382
4383
 
4383
- class CallTool3 extends (/* @__PURE__ */ make2("tools/call", {
4384
+ class CallTool3 extends (/* @__PURE__ */ make("tools/call", {
4384
4385
  success: CallToolResult4,
4385
4386
  error: McpError2,
4386
4387
  payload: {
@@ -4429,7 +4430,7 @@ var RequestedSchema = /* @__PURE__ */ Struct({
4429
4430
  required: /* @__PURE__ */ optional4(/* @__PURE__ */ ArraySchema(String3))
4430
4431
  });
4431
4432
 
4432
- class Elicit2 extends (/* @__PURE__ */ make2("elicitation/create", {
4433
+ class Elicit2 extends (/* @__PURE__ */ make("elicitation/create", {
4433
4434
  success: ElicitResult,
4434
4435
  error: McpError2,
4435
4436
  payload: {
@@ -4440,16 +4441,16 @@ class Elicit2 extends (/* @__PURE__ */ make2("elicitation/create", {
4440
4441
  })) {
4441
4442
  }
4442
4443
 
4443
- class ClientRequestRpcs5 extends (/* @__PURE__ */ make3(Ping2, Initialize4, Complete2, SetLevel, GetPrompt3, ListPrompts2, ListResources2, ListResourceTemplates2, ReadResource2, Subscribe, Unsubscribe, CallTool3, ListTools3)) {
4444
+ class ClientRequestRpcs5 extends (/* @__PURE__ */ make2(Ping2, Initialize4, Complete2, SetLevel, GetPrompt3, ListPrompts2, ListResources2, ListResourceTemplates2, ReadResource2, Subscribe, Unsubscribe, CallTool3, ListTools3)) {
4444
4445
  }
4445
4446
 
4446
- class ClientNotificationRpcs3 extends (/* @__PURE__ */ make3(CancelledNotification2, ProgressNotification3, InitializedNotification, RootsListChangedNotification)) {
4447
+ class ClientNotificationRpcs3 extends (/* @__PURE__ */ make2(CancelledNotification2, ProgressNotification3, InitializedNotification, RootsListChangedNotification)) {
4447
4448
  }
4448
4449
 
4449
- class ServerRequestRpcs3 extends (/* @__PURE__ */ make3(Ping2, CreateMessage4, ListRoots2, Elicit2)) {
4450
+ class ServerRequestRpcs3 extends (/* @__PURE__ */ make2(Ping2, CreateMessage4, ListRoots2, Elicit2)) {
4450
4451
  }
4451
4452
 
4452
- class ServerNotificationRpcs4 extends (/* @__PURE__ */ make3(CancelledNotification2, ProgressNotification3, LoggingMessageNotification2, ResourceUpdatedNotification2, ResourceListChangedNotification2, ToolListChangedNotification2, PromptListChangedNotification2)) {
4453
+ class ServerNotificationRpcs4 extends (/* @__PURE__ */ make2(CancelledNotification2, ProgressNotification3, LoggingMessageNotification2, ResourceUpdatedNotification2, ResourceListChangedNotification2, ToolListChangedNotification2, PromptListChangedNotification2)) {
4453
4454
  }
4454
4455
 
4455
4456
  // node_modules/effect/dist/ai/internal/mcpProtocol/v2025_06_18.js
@@ -4821,7 +4822,7 @@ var CallToolResult5 = /* @__PURE__ */ Struct({
4821
4822
  content: /* @__PURE__ */ ArraySchema(ContentBlock2)
4822
4823
  });
4823
4824
 
4824
- class CallTool4 extends (/* @__PURE__ */ make2("tools/call", {
4825
+ class CallTool4 extends (/* @__PURE__ */ make("tools/call", {
4825
4826
  success: CallToolResult5,
4826
4827
  error: McpError2,
4827
4828
  payload: CallTool3.payloadSchema
@@ -4858,7 +4859,7 @@ var CreateMessageResult4 = /* @__PURE__ */ Struct({
4858
4859
  stopReason: /* @__PURE__ */ optional5(String3)
4859
4860
  });
4860
4861
 
4861
- class CreateMessage5 extends (/* @__PURE__ */ make2("sampling/createMessage", {
4862
+ class CreateMessage5 extends (/* @__PURE__ */ make("sampling/createMessage", {
4862
4863
  success: CreateMessageResult4,
4863
4864
  error: McpError2,
4864
4865
  payload: {
@@ -4879,7 +4880,7 @@ var ListRootsResult3 = /* @__PURE__ */ Struct({
4879
4880
  roots: /* @__PURE__ */ ArraySchema(Root2)
4880
4881
  });
4881
4882
 
4882
- class ListRoots3 extends (/* @__PURE__ */ make2("roots/list", {
4883
+ class ListRoots3 extends (/* @__PURE__ */ make("roots/list", {
4883
4884
  success: ListRootsResult3,
4884
4885
  error: McpError2,
4885
4886
  payload: /* @__PURE__ */ UndefinedOr(RequestMeta)
@@ -4987,14 +4988,14 @@ var ElicitResult2 = /* @__PURE__ */ Struct({
4987
4988
  content: /* @__PURE__ */ optional5(/* @__PURE__ */ Record(String3, /* @__PURE__ */ Union([String3, Finite, Boolean3, /* @__PURE__ */ ArraySchema(String3)])))
4988
4989
  });
4989
4990
 
4990
- class Elicit3 extends (/* @__PURE__ */ make2("elicitation/create", {
4991
+ class Elicit3 extends (/* @__PURE__ */ make("elicitation/create", {
4991
4992
  success: ElicitResult2,
4992
4993
  error: McpError2,
4993
4994
  payload: ElicitRequestParams
4994
4995
  })) {
4995
4996
  }
4996
4997
 
4997
- class ElicitationCompleteNotification extends (/* @__PURE__ */ make2("notifications/elicitation/complete", {
4998
+ class ElicitationCompleteNotification extends (/* @__PURE__ */ make("notifications/elicitation/complete", {
4998
4999
  payload: {
4999
5000
  elicitationId: String3
5000
5001
  }
@@ -5005,7 +5006,7 @@ var InitializeResult4 = /* @__PURE__ */ Struct({
5005
5006
  serverInfo: Implementation4
5006
5007
  });
5007
5008
 
5008
- class Initialize5 extends (/* @__PURE__ */ make2("initialize", {
5009
+ class Initialize5 extends (/* @__PURE__ */ make("initialize", {
5009
5010
  success: InitializeResult4,
5010
5011
  error: McpError2,
5011
5012
  payload: {
@@ -5036,28 +5037,28 @@ var ListToolsResult4 = /* @__PURE__ */ Struct({
5036
5037
  tools: /* @__PURE__ */ ArraySchema(Tool5)
5037
5038
  });
5038
5039
 
5039
- class ListResources3 extends (/* @__PURE__ */ make2("resources/list", {
5040
+ class ListResources3 extends (/* @__PURE__ */ make("resources/list", {
5040
5041
  success: ListResourcesResult3,
5041
5042
  error: McpError2,
5042
5043
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
5043
5044
  })) {
5044
5045
  }
5045
5046
 
5046
- class ListResourceTemplates3 extends (/* @__PURE__ */ make2("resources/templates/list", {
5047
+ class ListResourceTemplates3 extends (/* @__PURE__ */ make("resources/templates/list", {
5047
5048
  success: ListResourceTemplatesResult3,
5048
5049
  error: McpError2,
5049
5050
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
5050
5051
  })) {
5051
5052
  }
5052
5053
 
5053
- class ListPrompts3 extends (/* @__PURE__ */ make2("prompts/list", {
5054
+ class ListPrompts3 extends (/* @__PURE__ */ make("prompts/list", {
5054
5055
  success: ListPromptsResult3,
5055
5056
  error: McpError2,
5056
5057
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
5057
5058
  })) {
5058
5059
  }
5059
5060
 
5060
- class GetPrompt4 extends (/* @__PURE__ */ make2("prompts/get", {
5061
+ class GetPrompt4 extends (/* @__PURE__ */ make("prompts/get", {
5061
5062
  success: GetPromptResult4,
5062
5063
  error: McpError2,
5063
5064
  payload: {
@@ -5068,23 +5069,23 @@ class GetPrompt4 extends (/* @__PURE__ */ make2("prompts/get", {
5068
5069
  })) {
5069
5070
  }
5070
5071
 
5071
- class ListTools4 extends (/* @__PURE__ */ make2("tools/list", {
5072
+ class ListTools4 extends (/* @__PURE__ */ make("tools/list", {
5072
5073
  success: ListToolsResult4,
5073
5074
  error: McpError2,
5074
5075
  payload: /* @__PURE__ */ UndefinedOr(PaginatedRequest)
5075
5076
  })) {
5076
5077
  }
5077
5078
 
5078
- class ClientRequestRpcs7 extends (/* @__PURE__ */ make3(Ping2, Initialize5, Complete2, SetLevel, GetPrompt4, ListPrompts3, ListResources3, ListResourceTemplates3, ReadResource2, Subscribe, Unsubscribe, CallTool4, ListTools4)) {
5079
+ class ClientRequestRpcs7 extends (/* @__PURE__ */ make2(Ping2, Initialize5, Complete2, SetLevel, GetPrompt4, ListPrompts3, ListResources3, ListResourceTemplates3, ReadResource2, Subscribe, Unsubscribe, CallTool4, ListTools4)) {
5079
5080
  }
5080
5081
 
5081
- class ClientNotificationRpcs4 extends (/* @__PURE__ */ make3(CancelledNotification2, ProgressNotification3, InitializedNotification, RootsListChangedNotification)) {
5082
+ class ClientNotificationRpcs4 extends (/* @__PURE__ */ make2(CancelledNotification2, ProgressNotification3, InitializedNotification, RootsListChangedNotification)) {
5082
5083
  }
5083
5084
 
5084
- class ServerRequestRpcs4 extends (/* @__PURE__ */ make3(Ping2, CreateMessage5, ListRoots3, Elicit3)) {
5085
+ class ServerRequestRpcs4 extends (/* @__PURE__ */ make2(Ping2, CreateMessage5, ListRoots3, Elicit3)) {
5085
5086
  }
5086
5087
 
5087
- class ServerNotificationRpcs5 extends (/* @__PURE__ */ make3(CancelledNotification2, ProgressNotification3, LoggingMessageNotification2, ResourceUpdatedNotification2, ResourceListChangedNotification2, ToolListChangedNotification2, PromptListChangedNotification2, ElicitationCompleteNotification)) {
5088
+ class ServerNotificationRpcs5 extends (/* @__PURE__ */ make2(CancelledNotification2, ProgressNotification3, LoggingMessageNotification2, ResourceUpdatedNotification2, ResourceListChangedNotification2, ToolListChangedNotification2, PromptListChangedNotification2, ElicitationCompleteNotification)) {
5088
5089
  }
5089
5090
 
5090
5091
  // node_modules/effect/dist/ai/internal/mcpProtocol/v2025_11_25.js
@@ -5643,7 +5644,7 @@ var DiscoverResult = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ Struct({
5643
5644
  instructions: /* @__PURE__ */ optional6(String3)
5644
5645
  }), [JsonObject]);
5645
5646
 
5646
- class Discover extends (/* @__PURE__ */ make2("server/discover", {
5647
+ class Discover extends (/* @__PURE__ */ make("server/discover", {
5647
5648
  success: DiscoverResult,
5648
5649
  error: McpError3,
5649
5650
  payload: RequestParams
@@ -5655,7 +5656,7 @@ var ListResourcesResult4 = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ Struct
5655
5656
  resources: /* @__PURE__ */ ArraySchema(Resource4)
5656
5657
  }), [JsonObject]);
5657
5658
 
5658
- class ListResources4 extends (/* @__PURE__ */ make2("resources/list", {
5659
+ class ListResources4 extends (/* @__PURE__ */ make("resources/list", {
5659
5660
  success: ListResourcesResult4,
5660
5661
  error: McpError3,
5661
5662
  payload: PaginatedRequestParams
@@ -5667,7 +5668,7 @@ var ListResourceTemplatesResult4 = /* @__PURE__ */ StructWithRest(/* @__PURE__ *
5667
5668
  resourceTemplates: /* @__PURE__ */ ArraySchema(ResourceTemplate4)
5668
5669
  }), [JsonObject]);
5669
5670
 
5670
- class ListResourceTemplates4 extends (/* @__PURE__ */ make2("resources/templates/list", {
5671
+ class ListResourceTemplates4 extends (/* @__PURE__ */ make("resources/templates/list", {
5671
5672
  success: ListResourceTemplatesResult4,
5672
5673
  error: McpError3,
5673
5674
  payload: PaginatedRequestParams
@@ -5678,7 +5679,7 @@ var ReadResourceResult3 = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ Struct(
5678
5679
  contents: /* @__PURE__ */ ArraySchema(ResourceContents3)
5679
5680
  }), [JsonObject]);
5680
5681
 
5681
- class ReadResource3 extends (/* @__PURE__ */ make2("resources/read", {
5682
+ class ReadResource3 extends (/* @__PURE__ */ make("resources/read", {
5682
5683
  success: /* @__PURE__ */ Union([ReadResourceResult3, InputRequiredResult]),
5683
5684
  error: McpError3,
5684
5685
  payload: {
@@ -5693,7 +5694,7 @@ var ListPromptsResult4 = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ Struct({
5693
5694
  prompts: /* @__PURE__ */ ArraySchema(Prompt5)
5694
5695
  }), [JsonObject]);
5695
5696
 
5696
- class ListPrompts4 extends (/* @__PURE__ */ make2("prompts/list", {
5697
+ class ListPrompts4 extends (/* @__PURE__ */ make("prompts/list", {
5697
5698
  success: ListPromptsResult4,
5698
5699
  error: McpError3,
5699
5700
  payload: PaginatedRequestParams
@@ -5705,7 +5706,7 @@ var GetPromptResult5 = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ Struct({
5705
5706
  messages: /* @__PURE__ */ ArraySchema(PromptMessage5)
5706
5707
  }), [JsonObject]);
5707
5708
 
5708
- class GetPrompt5 extends (/* @__PURE__ */ make2("prompts/get", {
5709
+ class GetPrompt5 extends (/* @__PURE__ */ make("prompts/get", {
5709
5710
  success: /* @__PURE__ */ Union([GetPromptResult5, InputRequiredResult]),
5710
5711
  error: McpError3,
5711
5712
  payload: {
@@ -5721,7 +5722,7 @@ var ListToolsResult5 = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ Struct({
5721
5722
  tools: /* @__PURE__ */ ArraySchema(Tool6)
5722
5723
  }), [JsonObject]);
5723
5724
 
5724
- class ListTools5 extends (/* @__PURE__ */ make2("tools/list", {
5725
+ class ListTools5 extends (/* @__PURE__ */ make("tools/list", {
5725
5726
  success: ListToolsResult5,
5726
5727
  error: McpError3,
5727
5728
  payload: PaginatedRequestParams
@@ -5734,7 +5735,7 @@ var CallToolResult6 = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ Struct({
5734
5735
  isError: /* @__PURE__ */ optional6(Boolean3)
5735
5736
  }), [JsonObject]);
5736
5737
 
5737
- class CallTool5 extends (/* @__PURE__ */ make2("tools/call", {
5738
+ class CallTool5 extends (/* @__PURE__ */ make("tools/call", {
5738
5739
  success: /* @__PURE__ */ Union([CallToolResult6, InputRequiredResult]),
5739
5740
  error: McpError3,
5740
5741
  payload: {
@@ -5755,7 +5756,7 @@ var CompleteResult3 = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ Struct({
5755
5756
  })
5756
5757
  }), [JsonObject]);
5757
5758
 
5758
- class Complete3 extends (/* @__PURE__ */ make2("completion/complete", {
5759
+ class Complete3 extends (/* @__PURE__ */ make("completion/complete", {
5759
5760
  success: CompleteResult3,
5760
5761
  error: McpError3,
5761
5762
  payload: {
@@ -5786,7 +5787,7 @@ var SubscriptionsListenResult = /* @__PURE__ */ StructWithRest(/* @__PURE__ */ S
5786
5787
  resultType: /* @__PURE__ */ Literal("complete")
5787
5788
  }), [JsonObject]);
5788
5789
 
5789
- class SubscriptionsListen extends (/* @__PURE__ */ make2("subscriptions/listen", {
5790
+ class SubscriptionsListen extends (/* @__PURE__ */ make("subscriptions/listen", {
5790
5791
  success: SubscriptionsListenResult,
5791
5792
  error: McpError3,
5792
5793
  payload: {
@@ -5796,7 +5797,7 @@ class SubscriptionsListen extends (/* @__PURE__ */ make2("subscriptions/listen",
5796
5797
  })) {
5797
5798
  }
5798
5799
 
5799
- class CancelledNotification3 extends (/* @__PURE__ */ make2("notifications/cancelled", {
5800
+ class CancelledNotification3 extends (/* @__PURE__ */ make("notifications/cancelled", {
5800
5801
  payload: {
5801
5802
  ...NotificationParams.fields,
5802
5803
  requestId: RequestId3,
@@ -5805,7 +5806,7 @@ class CancelledNotification3 extends (/* @__PURE__ */ make2("notifications/cance
5805
5806
  })) {
5806
5807
  }
5807
5808
 
5808
- class ProgressNotification4 extends (/* @__PURE__ */ make2("notifications/progress", {
5809
+ class ProgressNotification4 extends (/* @__PURE__ */ make("notifications/progress", {
5809
5810
  payload: {
5810
5811
  ...NotificationParams.fields,
5811
5812
  progressToken: ProgressToken2,
@@ -5816,7 +5817,7 @@ class ProgressNotification4 extends (/* @__PURE__ */ make2("notifications/progre
5816
5817
  })) {
5817
5818
  }
5818
5819
 
5819
- class LoggingMessageNotification3 extends (/* @__PURE__ */ make2("notifications/message", {
5820
+ class LoggingMessageNotification3 extends (/* @__PURE__ */ make("notifications/message", {
5820
5821
  payload: {
5821
5822
  ...NotificationParams.fields,
5822
5823
  level: LoggingLevel3,
@@ -5826,7 +5827,7 @@ class LoggingMessageNotification3 extends (/* @__PURE__ */ make2("notifications/
5826
5827
  })) {
5827
5828
  }
5828
5829
 
5829
- class ResourceUpdatedNotification3 extends (/* @__PURE__ */ make2("notifications/resources/updated", {
5830
+ class ResourceUpdatedNotification3 extends (/* @__PURE__ */ make("notifications/resources/updated", {
5830
5831
  payload: {
5831
5832
  ...NotificationParams.fields,
5832
5833
  uri: String3
@@ -5834,22 +5835,22 @@ class ResourceUpdatedNotification3 extends (/* @__PURE__ */ make2("notifications
5834
5835
  })) {
5835
5836
  }
5836
5837
 
5837
- class ResourceListChangedNotification3 extends (/* @__PURE__ */ make2("notifications/resources/list_changed", {
5838
+ class ResourceListChangedNotification3 extends (/* @__PURE__ */ make("notifications/resources/list_changed", {
5838
5839
  payload: /* @__PURE__ */ UndefinedOr(NotificationParams)
5839
5840
  })) {
5840
5841
  }
5841
5842
 
5842
- class ToolListChangedNotification3 extends (/* @__PURE__ */ make2("notifications/tools/list_changed", {
5843
+ class ToolListChangedNotification3 extends (/* @__PURE__ */ make("notifications/tools/list_changed", {
5843
5844
  payload: /* @__PURE__ */ UndefinedOr(NotificationParams)
5844
5845
  })) {
5845
5846
  }
5846
5847
 
5847
- class PromptListChangedNotification3 extends (/* @__PURE__ */ make2("notifications/prompts/list_changed", {
5848
+ class PromptListChangedNotification3 extends (/* @__PURE__ */ make("notifications/prompts/list_changed", {
5848
5849
  payload: /* @__PURE__ */ UndefinedOr(NotificationParams)
5849
5850
  })) {
5850
5851
  }
5851
5852
 
5852
- class SubscriptionsAcknowledgedNotification extends (/* @__PURE__ */ make2("notifications/subscriptions/acknowledged", {
5853
+ class SubscriptionsAcknowledgedNotification extends (/* @__PURE__ */ make("notifications/subscriptions/acknowledged", {
5853
5854
  payload: {
5854
5855
  ...NotificationParams.fields,
5855
5856
  notifications: SubscriptionFilter
@@ -5857,19 +5858,19 @@ class SubscriptionsAcknowledgedNotification extends (/* @__PURE__ */ make2("noti
5857
5858
  })) {
5858
5859
  }
5859
5860
 
5860
- class ClientRequestRpcs9 extends (/* @__PURE__ */ make3(Discover, Complete3, GetPrompt5, ListPrompts4, ListResources4, ListResourceTemplates4, ReadResource3, SubscriptionsListen, CallTool5, ListTools5)) {
5861
+ class ClientRequestRpcs9 extends (/* @__PURE__ */ make2(Discover, Complete3, GetPrompt5, ListPrompts4, ListResources4, ListResourceTemplates4, ReadResource3, SubscriptionsListen, CallTool5, ListTools5)) {
5861
5862
  }
5862
5863
 
5863
- class ClientNotificationRpcs5 extends (/* @__PURE__ */ make3(CancelledNotification3)) {
5864
+ class ClientNotificationRpcs5 extends (/* @__PURE__ */ make2(CancelledNotification3)) {
5864
5865
  }
5865
5866
 
5866
5867
  class ClientRpcs5 extends (/* @__PURE__ */ ClientRequestRpcs9.merge(ClientNotificationRpcs5)) {
5867
5868
  }
5868
5869
 
5869
- class ServerRequestRpcs5 extends (/* @__PURE__ */ make3()) {
5870
+ class ServerRequestRpcs5 extends (/* @__PURE__ */ make2()) {
5870
5871
  }
5871
5872
 
5872
- class ServerNotificationRpcs6 extends (/* @__PURE__ */ make3(CancelledNotification3, ProgressNotification4, LoggingMessageNotification3, ResourceUpdatedNotification3, ResourceListChangedNotification3, ToolListChangedNotification3, PromptListChangedNotification3, SubscriptionsAcknowledgedNotification)) {
5873
+ class ServerNotificationRpcs6 extends (/* @__PURE__ */ make2(CancelledNotification3, ProgressNotification4, LoggingMessageNotification3, ResourceUpdatedNotification3, ResourceListChangedNotification3, ToolListChangedNotification3, PromptListChangedNotification3, SubscriptionsAcknowledgedNotification)) {
5873
5874
  }
5874
5875
 
5875
5876
  // node_modules/effect/dist/ai/internal/mcpProtocol/v2026_07_28.js
@@ -7252,7 +7253,7 @@ var makeNoSerialization2 = /* @__PURE__ */ fnUntraced(function* (group, options)
7252
7253
  const services = yield* context2();
7253
7254
  const scope = get2(services, Scope);
7254
7255
  const trackFiber = runIn(forkUnsafe(scope, "parallel"));
7255
- const concurrencySemaphore = concurrency === "unbounded" ? undefined : yield* make(concurrency);
7256
+ const concurrencySemaphore = concurrency === "unbounded" ? undefined : yield* make3(concurrency);
7256
7257
  const clients = new Map;
7257
7258
  let isShutdown = false;
7258
7259
  const shutdownLatch = makeUnsafe2(false);
@@ -9512,7 +9513,7 @@ Give a session an allowlist (\`session_new\` with \`allowedOrigins\`, or \`sessi
9512
9513
  Each agent has its own current session when the client names the agent (OpenCode does), so bare calls don't land on another agent's page. When the client doesn't name agents, \`status\` reports \`sharedSession: true\` and all agents on this server share one current session, so when several (such as subagents) use it each should \`session_new\` its own and pass \`session\` on every call. When finished, \`session_reset\` (or \`session_delete\`) your own session; keep a session only when follow-up work is expected.
9513
9514
 
9514
9515
  The \`status\` tool reports relay and extension state. \`browse doctor\` (setup and connection problems) and \`browse skill\` (the longer agent reference) are shell commands, not MCP tools.`;
9515
- function shimSession() {
9516
+ function inheritedSession() {
9516
9517
  const value = process.env.OPENCODE_BROWSER_MCP_SESSION;
9517
9518
  return value && /^mcp-[0-9a-f]{8}$/.test(value) ? value : undefined;
9518
9519
  }
@@ -9521,7 +9522,7 @@ var registerTools = gen(function* () {
9521
9522
  const relay = yield* Service;
9522
9523
  const configuredSession = getOrUndefined(yield* option(String2("OPENCODE_BROWSER_SESSION")));
9523
9524
  const currentSession = {
9524
- id: configuredSession || shimSession() || `mcp-${crypto.randomUUID().slice(0, 8)}`,
9525
+ id: configuredSession || inheritedSession() || `mcp-${crypto.randomUUID().slice(0, 8)}`,
9525
9526
  established: Boolean(configuredSession)
9526
9527
  };
9527
9528
  const updates = createUpdateWatcher2();
@@ -9561,7 +9562,12 @@ var registerTools = gen(function* () {
9561
9562
  annotations: empty4(),
9562
9563
  handle: (payload) => {
9563
9564
  const requiresRelay = typeof spec.requiresRelayCompatibility === "function" ? spec.requiresRelayCompatibility(payload) : spec.requiresRelayCompatibility !== false;
9564
- const operation = requiresRelay ? ensureRelay({ relay }).pipe(flatMap3((readiness) => readiness.buildProblem ? fail6(new Error(readiness.buildProblem)) : spec.handle(payload))) : spec.handle(payload);
9565
+ const operation = requiresRelay ? ensureRelay({ relay }).pipe(flatMap3((readiness) => readiness.buildProblem ? fail6(new Error(readiness.buildProblem)) : spec.handle(payload).pipe(mapError2((error) => {
9566
+ const advice = olderMcpClientAdvice(readiness.version, error);
9567
+ return advice ? new Error(`${error.message}
9568
+
9569
+ ${advice}`) : error;
9570
+ })))) : spec.handle(payload);
9565
9571
  return acquireUseRelease(sync2(toolCallStarted), () => operation.pipe(match4({
9566
9572
  onFailure: (error) => toolResult({ text: mcpErrorMessage2(spec.name, error.message), isError: true }),
9567
9573
  onSuccess: (value) => spec.result ? spec.result(value) : toolResultForValue2(value, spec.outputSchema ? { outputSchema: spec.outputSchema } : {})