effect 4.0.0-beta.12 → 4.0.0-beta.13

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 (82) hide show
  1. package/dist/ManagedRuntime.d.ts +1 -1
  2. package/dist/ManagedRuntime.js +1 -1
  3. package/dist/Schedule.js +1 -1
  4. package/dist/Schedule.js.map +1 -1
  5. package/dist/SchemaAST.js +1 -1
  6. package/dist/SchemaAST.js.map +1 -1
  7. package/dist/index.d.ts +47 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +47 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/internal/request.js +2 -2
  12. package/dist/internal/request.js.map +1 -1
  13. package/dist/internal/schema/annotations.js +2 -0
  14. package/dist/internal/schema/annotations.js.map +1 -1
  15. package/dist/unstable/ai/McpSchema.d.ts +36 -36
  16. package/dist/unstable/ai/McpSchema.js +8 -8
  17. package/dist/unstable/ai/McpSchema.js.map +1 -1
  18. package/dist/unstable/cli/CliOutput.js +24 -2
  19. package/dist/unstable/cli/CliOutput.js.map +1 -1
  20. package/dist/unstable/cli/Command.d.ts +41 -6
  21. package/dist/unstable/cli/Command.d.ts.map +1 -1
  22. package/dist/unstable/cli/Command.js +64 -31
  23. package/dist/unstable/cli/Command.js.map +1 -1
  24. package/dist/unstable/cli/GlobalFlag.d.ts +162 -0
  25. package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -0
  26. package/dist/unstable/cli/GlobalFlag.js +164 -0
  27. package/dist/unstable/cli/GlobalFlag.js.map +1 -0
  28. package/dist/unstable/cli/HelpDoc.d.ts +10 -0
  29. package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
  30. package/dist/unstable/cli/index.d.ts +4 -0
  31. package/dist/unstable/cli/index.d.ts.map +1 -1
  32. package/dist/unstable/cli/index.js +4 -0
  33. package/dist/unstable/cli/index.js.map +1 -1
  34. package/dist/unstable/cli/internal/command.d.ts +1 -5
  35. package/dist/unstable/cli/internal/command.d.ts.map +1 -1
  36. package/dist/unstable/cli/internal/command.js +4 -22
  37. package/dist/unstable/cli/internal/command.js.map +1 -1
  38. package/dist/unstable/cli/internal/help.d.ts +19 -0
  39. package/dist/unstable/cli/internal/help.d.ts.map +1 -0
  40. package/dist/unstable/cli/internal/help.js +54 -0
  41. package/dist/unstable/cli/internal/help.js.map +1 -0
  42. package/dist/unstable/cli/internal/parser.js +20 -35
  43. package/dist/unstable/cli/internal/parser.js.map +1 -1
  44. package/dist/unstable/reactivity/Atom.d.ts +4 -4
  45. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  46. package/dist/unstable/rpc/Rpc.d.ts +1 -1
  47. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  48. package/dist/unstable/schema/Model.d.ts +1 -1
  49. package/dist/unstable/schema/Model.d.ts.map +1 -1
  50. package/dist/unstable/schema/VariantSchema.d.ts +3 -3
  51. package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
  52. package/dist/unstable/schema/VariantSchema.js +3 -3
  53. package/dist/unstable/schema/VariantSchema.js.map +1 -1
  54. package/dist/unstable/sql/SqlError.d.ts +14 -14
  55. package/dist/unstable/sql/SqlError.d.ts.map +1 -1
  56. package/dist/unstable/sql/SqlError.js +9 -3
  57. package/dist/unstable/sql/SqlError.js.map +1 -1
  58. package/package.json +1 -1
  59. package/src/ManagedRuntime.ts +1 -1
  60. package/src/Schedule.ts +1 -1
  61. package/src/SchemaAST.ts +1 -1
  62. package/src/index.ts +47 -0
  63. package/src/internal/request.ts +2 -2
  64. package/src/internal/schema/annotations.ts +2 -0
  65. package/src/unstable/ai/McpSchema.ts +8 -8
  66. package/src/unstable/cli/CliOutput.ts +32 -2
  67. package/src/unstable/cli/Command.ts +95 -38
  68. package/src/unstable/cli/GlobalFlag.ts +342 -0
  69. package/src/unstable/cli/HelpDoc.ts +12 -0
  70. package/src/unstable/cli/index.ts +5 -0
  71. package/src/unstable/cli/internal/command.ts +5 -30
  72. package/src/unstable/cli/internal/help.ts +66 -0
  73. package/src/unstable/cli/internal/parser.ts +23 -52
  74. package/src/unstable/reactivity/Atom.ts +6 -6
  75. package/src/unstable/rpc/Rpc.ts +1 -1
  76. package/src/unstable/schema/VariantSchema.ts +6 -6
  77. package/src/unstable/sql/SqlError.ts +11 -9
  78. package/dist/unstable/cli/internal/builtInFlags.d.ts +0 -7
  79. package/dist/unstable/cli/internal/builtInFlags.d.ts.map +0 -1
  80. package/dist/unstable/cli/internal/builtInFlags.js +0 -44
  81. package/dist/unstable/cli/internal/builtInFlags.js.map +0 -1
  82. package/src/unstable/cli/internal/builtInFlags.ts +0 -78
package/dist/index.js CHANGED
@@ -1091,6 +1091,53 @@ export * as Equal from "./Equal.js";
1091
1091
  */
1092
1092
  export * as Equivalence from "./Equivalence.js";
1093
1093
  /**
1094
+ * Pluggable error reporting for Effect programs.
1095
+ *
1096
+ * Reporting is triggered by `Effect.withErrorReporting`,
1097
+ * `ErrorReporter.report`, or built-in reporting boundaries in the HTTP and
1098
+ * RPC server modules.
1099
+ *
1100
+ * Each reporter receives a structured callback with the failing `Cause`, a
1101
+ * pretty-printed `Error`, severity, and any extra attributes attached to the
1102
+ * original error — making it straightforward to forward failures to Sentry,
1103
+ * Datadog, or a custom logging backend.
1104
+ *
1105
+ * Use the annotation symbols (`ignore`, `severity`, `attributes`) on your
1106
+ * error classes to control reporting behavior per-error.
1107
+ *
1108
+ * @example
1109
+ * ```ts
1110
+ * import { Data, Effect, ErrorReporter } from "effect"
1111
+ *
1112
+ * // A reporter that logs to the console
1113
+ * const consoleReporter = ErrorReporter.make(({ error, severity }) => {
1114
+ * console.error(`[${severity}]`, error.message)
1115
+ * })
1116
+ *
1117
+ * // An error that should be ignored by reporters
1118
+ * class NotFoundError extends Data.TaggedError("NotFoundError")<{}> {
1119
+ * readonly [ErrorReporter.ignore] = true
1120
+ * }
1121
+ *
1122
+ * // An error with custom severity and attributes
1123
+ * class RateLimitError extends Data.TaggedError("RateLimitError")<{
1124
+ * readonly retryAfter: number
1125
+ * }> {
1126
+ * readonly [ErrorReporter.severity] = "Warn" as const
1127
+ * readonly [ErrorReporter.attributes] = {
1128
+ * retryAfter: this.retryAfter
1129
+ * }
1130
+ * }
1131
+ *
1132
+ * // Opt in to error reporting with Effect.withErrorReporting
1133
+ * const program = Effect.gen(function*() {
1134
+ * yield* new RateLimitError({ retryAfter: 60 })
1135
+ * }).pipe(
1136
+ * Effect.withErrorReporting,
1137
+ * Effect.provide(ErrorReporter.layer([consoleReporter]))
1138
+ * )
1139
+ * ```
1140
+ *
1094
1141
  * @since 4.0.0
1095
1142
  */
1096
1143
  export * as ErrorReporter from "./ErrorReporter.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["absurd","coerceUnsafe","flow","hole","identity","pipe","Array","BigDecimal","BigInt","Boolean","Brand","Cache","Cause","Channel","ChannelSchema","Chunk","Clock","Combiner","Config","ConfigProvider","Console","Cron","Data","DateTime","Deferred","Differ","Duration","Effect","Encoding","Equal","Equivalence","ErrorReporter","ExecutionPlan","Exit","Fiber","FiberHandle","FiberMap","FiberSet","FileSystem","Filter","Formatter","Function","Graph","Hash","HashMap","HashRing","HashSet","HKT","Inspectable","Iterable","JsonPatch","JsonPointer","JsonSchema","Latch","Layer","LayerMap","Logger","LogLevel","ManagedRuntime","Match","Metric","MutableHashMap","MutableHashSet","MutableList","MutableRef","NonEmptyIterable","NullOr","Number","Optic","Option","Order","Ordering","Path","Pipeable","PlatformError","Pool","Predicate","PrimaryKey","PubSub","Pull","Queue","Random","RcMap","RcRef","Record","Redactable","Redacted","Reducer","Ref","References","RegExp","Request","RequestResolver","Resource","Result","Runtime","Schedule","Scheduler","Schema","SchemaAST","SchemaGetter","SchemaIssue","SchemaParser","SchemaRepresentation","SchemaTransformation","SchemaUtils","Scope","ScopedCache","ScopedRef","Semaphore","ServiceMap","Sink","Stdio","Stream","String","Struct","SubscriptionRef","Symbol","SynchronizedRef","Take","Terminal","Tracer","Trie","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M,YAAY;AAEnC;;;;;;;;;;;AAWA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C;;;AAGA,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C;;;;;;;;;;;AAWA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;;;;AAUA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["absurd","coerceUnsafe","flow","hole","identity","pipe","Array","BigDecimal","BigInt","Boolean","Brand","Cache","Cause","Channel","ChannelSchema","Chunk","Clock","Combiner","Config","ConfigProvider","Console","Cron","Data","DateTime","Deferred","Differ","Duration","Effect","Encoding","Equal","Equivalence","ErrorReporter","ExecutionPlan","Exit","Fiber","FiberHandle","FiberMap","FiberSet","FileSystem","Filter","Formatter","Function","Graph","Hash","HashMap","HashRing","HashSet","HKT","Inspectable","Iterable","JsonPatch","JsonPointer","JsonSchema","Latch","Layer","LayerMap","Logger","LogLevel","ManagedRuntime","Match","Metric","MutableHashMap","MutableHashSet","MutableList","MutableRef","NonEmptyIterable","NullOr","Number","Optic","Option","Order","Ordering","Path","Pipeable","PlatformError","Pool","Predicate","PrimaryKey","PubSub","Pull","Queue","Random","RcMap","RcRef","Record","Redactable","Redacted","Reducer","Ref","References","RegExp","Request","RequestResolver","Resource","Result","Runtime","Schedule","Scheduler","Schema","SchemaAST","SchemaGetter","SchemaIssue","SchemaParser","SchemaRepresentation","SchemaTransformation","SchemaUtils","Scope","ScopedCache","ScopedRef","Semaphore","ServiceMap","Sink","Stdio","Stream","String","Struct","SubscriptionRef","Symbol","SynchronizedRef","Take","Terminal","Tracer","Trie","Tuple","TxChunk","TxHashMap","TxHashSet","TxQueue","TxRef","TxSemaphore","Types","UndefinedOr","Unify","Utils"],"sources":["../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;AACE;;;AAGAA,MAAM;AACN;;;AAGAC,YAAY;AACZ;;;AAGAC,IAAI;AACJ;;;AAGAC,IAAI;AACJ;;;AAGAC,QAAQ;AACR;;;AAGAC,IAAI,QACC,eAAe;AAEtB;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;AAeA,OAAO,KAAKC,UAAU,MAAM,iBAAiB;AAE7C;;;;;;AAMA,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;;;;;;AAMA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;AAOA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,aAAa,MAAM,oBAAoB;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAe;AAEzC;;;AAGA,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;;;;;;;;;;;;;;;;;AAiBA,OAAO,KAAKC,IAAI,MAAM,WAAW;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;AAWA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;AAGA,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C;;;AAGA,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAE3C;;;;;;;;;;;AAWA,OAAO,KAAKC,OAAO,MAAM,cAAc;AAEvC;;;;;;;;;;AAUA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,OAAO,KAAKC,WAAW,MAAM,kBAAkB;AAE/C;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY;AAEnC;;;AAGA,OAAO,KAAKC,KAAK,MAAM,YAAY","ignoreList":[]}
@@ -79,7 +79,7 @@ const addEntry = (resolver, request, resume, fiber) => {
79
79
  batch = newBatch;
80
80
  }
81
81
  batchMap.set(key, batch);
82
- batch.fiber = effect.runFork(batch.delayEffect, {
82
+ batch.fiber = effect.runForkWith(fiber.services)(batch.delayEffect, {
83
83
  scheduler: fiber.currentScheduler
84
84
  });
85
85
  }
@@ -87,7 +87,7 @@ const addEntry = (resolver, request, resume, fiber) => {
87
87
  batch.entries.add(entry);
88
88
  if (batch.resolver.collectWhile(batch.entries)) return entry;
89
89
  batch.fiber.interruptUnsafe(fiber.id);
90
- batch.fiber = effect.runFork(runBatch(batch), {
90
+ batch.fiber = effect.runForkWith(fiber.services)(runBatch(batch), {
91
91
  scheduler: fiber.currentScheduler
92
92
  });
93
93
  return entry;
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","names":["dual","makeEntry","Scheduler","ServiceMap","exitDie","isEffect","effect","request","self","resolver","withResolver","callback","resume","entry","addEntry","getCurrentFiber","maybeRemoveEntry","flatMap","requestUnsafe","options","onExit","services","currentScheduler","get","removeEntryUnsafe","batchPool","pendingBatches","Map","fiber","batchMap","set","batch","completed","uninterruptible","completeUnsafe","entrySet","delete","preCheck","undefined","key","batchKey","length","pop","map","newBatch","Set","entries","delayEffect","suspend","delay","_","runBatch","run","runAll","Array","from","exit","_tag","Error","cause","clear","push","void","runFork","scheduler","add","collectWhile","interruptUnsafe","id","size","sync","has"],"sources":["../../src/internal/request.ts"],"sourcesContent":[null],"mappings":"AAIA,SAASA,IAAI,QAAQ,gBAAgB;AAErC,SAASC,SAAS,QAAQ,eAAe;AAEzC,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,OAAO,KAAKC,UAAU,MAAM,kBAAkB;AAC9C,SAASC,OAAO,EAAEC,QAAQ,QAAQ,WAAW;AAC7C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;AACA,OAAO,MAAMC,OAAO,gBAgBhBP,IAAI,CACN,CAAC,EACD,CACEQ,IAAO,EACPC,QAAiE,KAK/D;EACF,MAAMC,YAAY,GAAID,QAA4B,IAChDH,MAAM,CAACK,QAAQ,CAIZC,MAAM,IAAI;IACX,MAAMC,KAAK,GAAGC,QAAQ,CAACL,QAAQ,EAAED,IAAI,EAAEI,MAAM,EAAEN,MAAM,CAACS,eAAe,EAAG,CAAC;IACzE,OAAOC,gBAAgB,CAACP,QAAQ,EAAEI,KAAK,CAAC;EAC1C,CAAC,CAAC;EACJ,OAAOR,QAAQ,CAACI,QAAQ,CAAC,GAAGH,MAAM,CAACW,OAAO,CAACR,QAAQ,EAAEC,YAAY,CAAC,GAAGA,Y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cAAc,CAACH,GAAG,CAACd,QAAQ,CAAC;EAC7C,IAAI,CAACoB,QAAQ,EAAE;EACf,MAAMU,GAAG,GAAG9B,QAAQ,CAAC+B,QAAQ,CAAC3B,KAAK,CAACN,OAAc,CAAC;EACnD,MAAMwB,KAAK,GAAGF,QAAQ,CAACN,GAAG,CAACgB,GAAG,CAAC;EAC/B,IAAI,CAACR,KAAK,EAAE;EAEZA,KAAK,CAACe,OAAO,CAACV,MAAM,CAACvB,KAAK,CAAC;EAC3BkB,KAAK,CAACI,QAAQ,CAACC,MAAM,CAACvB,KAAK,CAAC;EAE5B,IAAIkB,KAAK,CAACe,OAAO,CAACuB,IAAI,KAAK,CAAC,EAAE;IAC5BxC,QAAQ,CAACO,MAAM,CAACG,GAAG,CAAC;IACpBR,KAAK,CAACH,KAAK,EAAEuC,eAAe,EAAE;EAChC;AACF,CAAC;AAED,MAAMnD,gBAAgB,GAAGA,CACvBP,QAA4B,EAC5BI,KAAuB,KACpBP,MAAM,CAACgE,IAAI,CAAC,MAAM9C,iBAAiB,CAACf,QAAQ,EAAEI,KAAK,CAAC,CAAC;AAE1D,SAASsC,QAAQA,CAACpB,KAAY;EAC5B,IAAI,CAACA,KAAK,CAACY,GAAG,CAAC4B,GAAG,CAACxC,KAAK,CAACQ,GAAG,CAAC,EAAE,OAAOjC,MAAM,CAACwD,IAAI;EACjD/B,KAAK,CAACY,GAAG,CAACP,MAAM,CAACL,KAAK,CAACQ,GAAG,CAAC;EAC3B,OAAOR,KAAK,CAACqB,GAAG;AAClB","ignoreList":[]}
1
+ {"version":3,"file":"request.js","names":["dual","makeEntry","Scheduler","ServiceMap","exitDie","isEffect","effect","request","self","resolver","withResolver","callback","resume","entry","addEntry","getCurrentFiber","maybeRemoveEntry","flatMap","requestUnsafe","options","onExit","services","currentScheduler","get","removeEntryUnsafe","batchPool","pendingBatches","Map","fiber","batchMap","set","batch","completed","uninterruptible","completeUnsafe","entrySet","delete","preCheck","undefined","key","batchKey","length","pop","map","newBatch","Set","entries","delayEffect","suspend","delay","_","runBatch","run","runAll","Array","from","exit","_tag","Error","cause","clear","push","void","runForkWith","scheduler","add","collectWhile","interruptUnsafe","id","size","sync","has"],"sources":["../../src/internal/request.ts"],"sourcesContent":[null],"mappings":"AAIA,SAASA,IAAI,QAAQ,gBAAgB;AAErC,SAASC,SAAS,QAAQ,eAAe;AAEzC,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,OAAO,KAAKC,UAAU,MAAM,kBAAkB;AAC9C,SAASC,OAAO,EAAEC,QAAQ,QAAQ,WAAW;AAC7C,OAAO,KAAKC,MAAM,MAAM,aAAa;AAErC;AACA,OAAO,MAAMC,OAAO,gBAgBhBP,IAAI,CACN,CAAC,EACD,CACEQ,IAAO,EACPC,QAAiE,KAK/D;EACF,MAAMC,YAAY,GAAID,QAA4B,IAChDH,MAAM,CAACK,QAAQ,CAIZC,MAAM,IAAI;IACX,MAAMC,KAAK,GAAGC,QAAQ,CAACL,QAAQ,EAAED,IAAI,EAAEI,MAAM,EAAEN,MAAM,CAACS,eAAe,EAAG,CAAC;IACzE,OAAOC,gBAAgB,CAACP,QAAQ,EAAEI,KAAK,CAAC;EAC1C,CAAC,CAAC;EACJ,OAAOR,QAAQ,CAACI,QAAQ,CAAC,GAAGH,MAAM,CAACW,OAAO,CAACR,QAAQ,EAAEC,YAAY,CAAC,GAAGA,YAAY,CAACD,QAAQ,CAAC;AAC7F,CAAC,CACF;AAED;AACA,OAAO,MAAMS,aAAa,GAAGA,CAC3BV,IAAO,EACPW,OAIC,KACa;EACd,MAAMN,KAAK,GAAGC,QAAQ,CAACK,OAAO,CAACV,QAAQ,EAAED,IAAI,EAAEW,OAAO,CAACC,MAAM,EAAE;IAC7DC,QAAQ,EAAEF,OAAO,CAACE,QAAQ;IAC1BC,gBAAgB,EAAEnB,UAAU,CAACoB,GAAG,CAACJ,OAAO,CAACE,QAAQ,EAAEnB,SAAS;GAC7D,CAAC;EACF,OAAO,MAAMsB,iBAAiB,CAACL,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AK,CAACI,QAAQ,CAACC,MAAM,CAACvB,KAAK,CAAC;EAE5B,IAAIkB,KAAK,CAACe,OAAO,CAACuB,IAAI,KAAK,CAAC,EAAE;IAC5BxC,QAAQ,CAACO,MAAM,CAACG,GAAG,CAAC;IACpBR,KAAK,CAACH,KAAK,EAAEuC,eAAe,EAAE;EAChC;AACF,CAAC;AAED,MAAMnD,gBAAgB,GAAGA,CACvBP,QAA4B,EAC5BI,KAAuB,KACpBP,MAAM,CAACgE,IAAI,CAAC,MAAM9C,iBAAiB,CAACf,QAAQ,EAAEI,KAAK,CAAC,CAAC;AAE1D,SAASsC,QAAQA,CAACpB,KAAY;EAC5B,IAAI,CAACA,KAAK,CAACY,GAAG,CAAC4B,GAAG,CAACxC,KAAK,CAACQ,GAAG,CAAC,EAAE,OAAOjC,MAAM,CAACwD,IAAI;EACjD/B,KAAK,CAACY,GAAG,CAACP,MAAM,CAACL,KAAK,CAACQ,GAAG,CAAC;EAC3B,OAAOR,KAAK,CAACqB,GAAG;AAClB","ignoreList":[]}
@@ -17,6 +17,8 @@ export const resolveDescription = /*#__PURE__*/resolveAt("description");
17
17
  export const resolveBrands = /*#__PURE__*/resolveAt("brands");
18
18
  /** @internal */
19
19
  export const getExpected = /*#__PURE__*/memoize(ast => {
20
+ const identifier = resolveIdentifier(ast);
21
+ if (typeof identifier === "string") return identifier;
20
22
  return ast.getExpected(getExpected);
21
23
  });
22
24
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"annotations.js","names":["memoize","resolve","ast","checks","length","annotations","resolveAt","key","resolveIdentifier","resolveTitle","resolveDescription","resolveBrands","getExpected","collectBrands","undefined","Array","isArray","brands"],"sources":["../../../src/internal/schema/annotations.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,OAAO,QAAQ,mBAAmB;AAI3C;AACA,OAAM,SAAUC,OAAOA,CAACC,GAAY;EAClC,OAAOA,GAAG,CAACC,MAAM,GAAGD,GAAG,CAACC,MAAM,CAACD,GAAG,CAACC,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC,CAACC,WAAW,GAAGH,GAAG,CAACG,WAAW;AACrF;AAEA;AACA,OAAM,SAAUC,SAASA,CAAIC,GAAW;EACtC,OAAQL,GAAY,IAAoBD,OAAO,CAACC,GAAG,CAAC,GAAGK,GAAG,CAAkB;AAC9E;AAEA;AACA,OAAO,MAAMC,iBAAiB,gBAAGF,SAAS,CAAS,YAAY,CAAC;AAEhE;AACA,OAAO,MAAMG,YAAY,gBAAGH,SAAS,CAAS,OAAO,CAAC;AAEtD;AACA,OAAO,MAAMI,kBAAkB,gBAAGJ,SAAS,CAAS,aAAa,CAAC;AAElE;AACA,OAAO,MAAMK,aAAa,gBAAGL,SAAS,CAAwB,QAAQ,CAAC;AAEvE;AACA,OAAO,MAAMM,WAAW,gBAAGZ,OAAO,CAAEE,GAAY,IAAY;EAC1D,OAAOA,GAAG,CAACU,WAAW,CAACA,WAAW,CAAC;AACrC,CAAC,CAAC;AAEF;AACA,OAAM,SAAUC,aAAaA,CAACR,WAAuD;EACnF,OAAOA,WAAW,KAAKS,SAAS,IAAIC,KAAK,CAACC,OAAO,CAACX,WAAW,CAACY,MAAM,CAAC,GAAGZ,WAAW,CAACY,MAAM,GAAG,EAAE;AACjG","ignoreList":[]}
1
+ {"version":3,"file":"annotations.js","names":["memoize","resolve","ast","checks","length","annotations","resolveAt","key","resolveIdentifier","resolveTitle","resolveDescription","resolveBrands","getExpected","identifier","collectBrands","undefined","Array","isArray","brands"],"sources":["../../../src/internal/schema/annotations.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,OAAO,QAAQ,mBAAmB;AAI3C;AACA,OAAM,SAAUC,OAAOA,CAACC,GAAY;EAClC,OAAOA,GAAG,CAACC,MAAM,GAAGD,GAAG,CAACC,MAAM,CAACD,GAAG,CAACC,MAAM,CAACC,MAAM,GAAG,CAAC,CAAC,CAACC,WAAW,GAAGH,GAAG,CAACG,WAAW;AACrF;AAEA;AACA,OAAM,SAAUC,SAASA,CAAIC,GAAW;EACtC,OAAQL,GAAY,IAAoBD,OAAO,CAACC,GAAG,CAAC,GAAGK,GAAG,CAAkB;AAC9E;AAEA;AACA,OAAO,MAAMC,iBAAiB,gBAAGF,SAAS,CAAS,YAAY,CAAC;AAEhE;AACA,OAAO,MAAMG,YAAY,gBAAGH,SAAS,CAAS,OAAO,CAAC;AAEtD;AACA,OAAO,MAAMI,kBAAkB,gBAAGJ,SAAS,CAAS,aAAa,CAAC;AAElE;AACA,OAAO,MAAMK,aAAa,gBAAGL,SAAS,CAAwB,QAAQ,CAAC;AAEvE;AACA,OAAO,MAAMM,WAAW,gBAAGZ,OAAO,CAAEE,GAAY,IAAY;EAC1D,MAAMW,UAAU,GAAGL,iBAAiB,CAACN,GAAG,CAAC;EACzC,IAAI,OAAOW,UAAU,KAAK,QAAQ,EAAE,OAAOA,UAAU;EACrD,OAAOX,GAAG,CAACU,WAAW,CAACA,WAAW,CAAC;AACrC,CAAC,CAAC;AAEF;AACA,OAAM,SAAUE,aAAaA,CAACT,WAAuD;EACnF,OAAOA,WAAW,KAAKU,SAAS,IAAIC,KAAK,CAACC,OAAO,CAACZ,WAAW,CAACa,MAAM,CAAC,GAAGb,WAAW,CAACa,MAAM,GAAG,EAAE;AACjG","ignoreList":[]}
@@ -111,13 +111,13 @@ declare const ResultMeta_base: Schema.Opaque<ResultMeta, Schema.Struct<{
111
111
  * This result property is reserved by the protocol to allow clients and
112
112
  * servers to attach additional metadata to their responses.
113
113
  */
114
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
114
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
115
115
  }>, {}> & Omit<Schema.Struct<{
116
116
  /**
117
117
  * This result property is reserved by the protocol to allow clients and
118
118
  * servers to attach additional metadata to their responses.
119
119
  */
120
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
120
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
121
121
  }>, "Type">;
122
122
  /**
123
123
  * @since 4.0.0
@@ -130,13 +130,13 @@ declare const NotificationMeta_base: Schema.Opaque<NotificationMeta, Schema.Stru
130
130
  * This parameter name is reserved by MCP to allow clients and servers to
131
131
  * attach additional metadata to their notifications.
132
132
  */
133
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
133
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
134
134
  }>, {}> & Omit<Schema.Struct<{
135
135
  /**
136
136
  * This parameter name is reserved by MCP to allow clients and servers to
137
137
  * attach additional metadata to their notifications.
138
138
  */
139
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
139
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
140
140
  }>, "Type">;
141
141
  /**
142
142
  * @since 4.0.0
@@ -223,7 +223,7 @@ declare const PaginatedResultMeta_base: Schema.Opaque<PaginatedResultMeta, Schem
223
223
  * This result property is reserved by the protocol to allow clients and
224
224
  * servers to attach additional metadata to their responses.
225
225
  */
226
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
226
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
227
227
  }>, {}> & Omit<Schema.Struct<{
228
228
  /**
229
229
  * An opaque token representing the pagination position after the last returned result.
@@ -234,7 +234,7 @@ declare const PaginatedResultMeta_base: Schema.Opaque<PaginatedResultMeta, Schem
234
234
  * This result property is reserved by the protocol to allow clients and
235
235
  * servers to attach additional metadata to their responses.
236
236
  */
237
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
237
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
238
238
  }>, "Type">;
239
239
  /**
240
240
  * @since 4.0.0
@@ -321,7 +321,7 @@ declare const ClientCapabilities_base: Schema.ExtendableClass<ClientCapabilities
321
321
  * Optional extensions capabilities advertised by the client.
322
322
  * Keys are extension identifiers following <vendor-prefix>/<extension-name> (e.g. "io.modelcontextprotocol/ui").
323
323
  */
324
- readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Unknown>>, never, never>;
324
+ readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
325
325
  /**
326
326
  * Present if the client supports listing roots.
327
327
  */
@@ -364,7 +364,7 @@ declare const ServerCapabilities_base: Schema.Opaque<ServerCapabilities, Schema.
364
364
  * Optional extensions capabilities advertised by the server.
365
365
  * Keys are extension identifiers following <vendor-prefix>/<extension-name> (e.g. "io.modelcontextprotocol/ui").
366
366
  */
367
- readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Unknown>>, never, never>;
367
+ readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
368
368
  /**
369
369
  * Present if the server supports sending log messages to the client.
370
370
  */
@@ -432,7 +432,7 @@ declare const ServerCapabilities_base: Schema.Opaque<ServerCapabilities, Schema.
432
432
  * Optional extensions capabilities advertised by the server.
433
433
  * Keys are extension identifiers following <vendor-prefix>/<extension-name> (e.g. "io.modelcontextprotocol/ui").
434
434
  */
435
- readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Unknown>>, never, never>;
435
+ readonly extensions: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.TemplateLiteral<readonly [Schema.String, "/", Schema.String]>, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
436
436
  /**
437
437
  * Present if the server supports sending log messages to the client.
438
438
  */
@@ -687,7 +687,7 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
687
687
  * This result property is reserved by the protocol to allow clients and
688
688
  * servers to attach additional metadata to their responses.
689
689
  */
690
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
690
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
691
691
  }>, {}> & Omit<Schema.Struct<{
692
692
  /**
693
693
  * The version of the Model Context Protocol that the server wants to use.
@@ -709,7 +709,7 @@ declare const InitializeResult_base: Schema.Opaque<InitializeResult, Schema.Stru
709
709
  * This result property is reserved by the protocol to allow clients and
710
710
  * servers to attach additional metadata to their responses.
711
711
  */
712
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
712
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
713
713
  }>, "Type">;
714
714
  /**
715
715
  * After receiving an initialize request from the client, the server sends this
@@ -788,7 +788,7 @@ declare const CancelledNotification_base: Rpc.Rpc<"notifications/cancelled", Sch
788
788
  * be logged or presented to the user.
789
789
  */
790
790
  reason: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
791
- _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
791
+ _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
792
792
  }>, Schema.Void, Schema.Never, never, never>;
793
793
  /**
794
794
  * @since 4.0.0
@@ -815,7 +815,7 @@ declare const ProgressNotification_base: Rpc.Rpc<"notifications/progress", Schem
815
815
  * An optional message describing the current progress.
816
816
  */
817
817
  message: Schema.decodeTo<Schema.optional<Schema.String>, Schema.optionalKey<Schema.String>, never, never>;
818
- _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
818
+ _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
819
819
  }>, Schema.Void, Schema.Never, never, never>;
820
820
  /**
821
821
  * An out-of-band notification used to inform the receiver of a progress update
@@ -867,7 +867,7 @@ declare const Resource_base: Schema.ExtendableClass<Resource, Schema.Struct<{
867
867
  * This parameter name is reserved by MCP to allow clients and servers to
868
868
  * attach additional metadata to resources.
869
869
  */
870
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
870
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
871
871
  }>, {}>;
872
872
  /**
873
873
  * A known resource that the server is capable of reading.
@@ -909,7 +909,7 @@ declare const ResourceTemplate_base: Schema.ExtendableClass<ResourceTemplate, Sc
909
909
  /**
910
910
  * Optional additional metadata for the client.
911
911
  */
912
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
912
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
913
913
  }>, {}>;
914
914
  /**
915
915
  * A template description for resources available on the server.
@@ -931,7 +931,7 @@ declare const ResourceContents_base: Schema.Opaque<ResourceContents, Schema.Stru
931
931
  /**
932
932
  * Optional additional metadata for the client.
933
933
  */
934
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
934
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
935
935
  }>, {}> & Omit<Schema.Struct<{
936
936
  /**
937
937
  * The URI of this resource.
@@ -944,7 +944,7 @@ declare const ResourceContents_base: Schema.Opaque<ResourceContents, Schema.Stru
944
944
  /**
945
945
  * Optional additional metadata for the client.
946
946
  */
947
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
947
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
948
948
  }>, "Type">;
949
949
  /**
950
950
  * The contents of a specific resource or sub-resource.
@@ -971,7 +971,7 @@ declare const TextResourceContents_base: Schema.Opaque<TextResourceContents, Sch
971
971
  /**
972
972
  * Optional additional metadata for the client.
973
973
  */
974
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
974
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
975
975
  }>, {}> & Omit<Schema.Struct<{
976
976
  /**
977
977
  * The text of the item. This must only be set if the item can actually be
@@ -989,7 +989,7 @@ declare const TextResourceContents_base: Schema.Opaque<TextResourceContents, Sch
989
989
  /**
990
990
  * Optional additional metadata for the client.
991
991
  */
992
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
992
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
993
993
  }>, "Type">;
994
994
  /**
995
995
  * The contents of a text resource, which can be represented as a string.
@@ -1015,7 +1015,7 @@ declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Sch
1015
1015
  /**
1016
1016
  * Optional additional metadata for the client.
1017
1017
  */
1018
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1018
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1019
1019
  }>, {}> & Omit<Schema.Struct<{
1020
1020
  /**
1021
1021
  * The binary data of the item decoded from a base64-encoded string.
@@ -1032,7 +1032,7 @@ declare const BlobResourceContents_base: Schema.Opaque<BlobResourceContents, Sch
1032
1032
  /**
1033
1033
  * Optional additional metadata for the client.
1034
1034
  */
1035
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1035
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1036
1036
  }>, "Type">;
1037
1037
  /**
1038
1038
  * The contents of a binary resource, which can be represented as an Uint8Array
@@ -1053,7 +1053,7 @@ declare const ListResourcesResult_base: Schema.ExtendableClass<ListResourcesResu
1053
1053
  * This result property is reserved by the protocol to allow clients and
1054
1054
  * servers to attach additional metadata to their responses.
1055
1055
  */
1056
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1056
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1057
1057
  }>, {}>;
1058
1058
  /**
1059
1059
  * The server's response to a resources/list request from the client.
@@ -1083,7 +1083,7 @@ declare const ListResourceTemplatesResult_base: Schema.ExtendableClass<ListResou
1083
1083
  * This result property is reserved by the protocol to allow clients and
1084
1084
  * servers to attach additional metadata to their responses.
1085
1085
  */
1086
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1086
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1087
1087
  }>, {}>;
1088
1088
  /**
1089
1089
  * The server's response to a resources/templates/list request from the client.
@@ -1108,14 +1108,14 @@ declare const ReadResourceResult_base: Schema.Opaque<ReadResourceResult, Schema.
1108
1108
  * This result property is reserved by the protocol to allow clients and
1109
1109
  * servers to attach additional metadata to their responses.
1110
1110
  */
1111
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1111
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1112
1112
  }>, {}> & Omit<Schema.Struct<{
1113
1113
  readonly contents: Schema.$Array<Schema.Union<readonly [typeof TextResourceContents, typeof BlobResourceContents]>>;
1114
1114
  /**
1115
1115
  * This result property is reserved by the protocol to allow clients and
1116
1116
  * servers to attach additional metadata to their responses.
1117
1117
  */
1118
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1118
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1119
1119
  }>, "Type">;
1120
1120
  /**
1121
1121
  * The server's response to a resources/read request from the client.
@@ -1246,7 +1246,7 @@ declare const ResourceUpdatedNotification_base: Rpc.Rpc<"notifications/resources
1246
1246
  * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
1247
1247
  */
1248
1248
  uri: Schema.String;
1249
- _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1249
+ _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1250
1250
  }>, Schema.Void, Schema.Never, never, never>;
1251
1251
  /**
1252
1252
  * @since 4.0.0
@@ -1489,7 +1489,7 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
1489
1489
  * This parameter name is reserved by MCP to allow clients and servers to
1490
1490
  * attach additional metadata to resources.
1491
1491
  */
1492
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1492
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1493
1493
  }>, {}> & Omit<Schema.Struct<{
1494
1494
  readonly type: Schema.tag<"resource_link">;
1495
1495
  /**
@@ -1532,7 +1532,7 @@ declare const ResourceLink_base: Schema.Opaque<ResourceLink, Schema.Struct<{
1532
1532
  * This parameter name is reserved by MCP to allow clients and servers to
1533
1533
  * attach additional metadata to resources.
1534
1534
  */
1535
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1535
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1536
1536
  }>, "Type">;
1537
1537
  /**
1538
1538
  * A resource that the server is capable of reading, included in a prompt or tool call result.
@@ -1578,7 +1578,7 @@ declare const ListPromptsResult_base: Schema.ExtendableClass<ListPromptsResult,
1578
1578
  * This result property is reserved by the protocol to allow clients and
1579
1579
  * servers to attach additional metadata to their responses.
1580
1580
  */
1581
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1581
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1582
1582
  }>, {}>;
1583
1583
  /**
1584
1584
  * The server's response to a prompts/list request from the client.
@@ -1608,7 +1608,7 @@ declare const GetPromptResult_base: Schema.ExtendableClass<GetPromptResult, Sche
1608
1608
  * This result property is reserved by the protocol to allow clients and
1609
1609
  * servers to attach additional metadata to their responses.
1610
1610
  */
1611
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1611
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1612
1612
  }>, {}>;
1613
1613
  /**
1614
1614
  * The server's response to a prompts/get request from the client.
@@ -1785,7 +1785,7 @@ declare const Tool_base: Schema.ExtendableClass<Tool, Schema.Struct<{
1785
1785
  * This parameter name is reserved by MCP to allow clients and servers to
1786
1786
  * attach additional metadata to resources.
1787
1787
  */
1788
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
1788
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1789
1789
  }>, {}>;
1790
1790
  /**
1791
1791
  * Definition for a tool the client can call.
@@ -1806,7 +1806,7 @@ declare const ListToolsResult_base: Schema.ExtendableClass<ListToolsResult, Sche
1806
1806
  * This result property is reserved by the protocol to allow clients and
1807
1807
  * servers to attach additional metadata to their responses.
1808
1808
  */
1809
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1809
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1810
1810
  }>, {}>;
1811
1811
  /**
1812
1812
  * The server's response to a tools/list request from the client.
@@ -1838,7 +1838,7 @@ declare const CallToolResult_base: Schema.ExtendableClass<CallToolResult, Schema
1838
1838
  * This result property is reserved by the protocol to allow clients and
1839
1839
  * servers to attach additional metadata to their responses.
1840
1840
  */
1841
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1841
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1842
1842
  }>, {}>;
1843
1843
  /**
1844
1844
  * The server's response to a tool call.
@@ -1981,7 +1981,7 @@ declare const LoggingMessageNotification_base: Rpc.Rpc<"notifications/message",
1981
1981
  * This parameter name is reserved by MCP to allow clients and servers to
1982
1982
  * attach additional metadata to their notifications.
1983
1983
  */
1984
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
1984
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
1985
1985
  }>, Schema.Void, Schema.Never, never, never>;
1986
1986
  /**
1987
1987
  * @since 4.0.0
@@ -2359,7 +2359,7 @@ declare const ElicitAcceptResult_base: Schema.ExtendableClass<ElicitAcceptResult
2359
2359
  * This result property is reserved by the protocol to allow clients and
2360
2360
  * servers to attach additional metadata to their responses.
2361
2361
  */
2362
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
2362
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
2363
2363
  }>, {}>;
2364
2364
  /**
2365
2365
  * The client's response to an elicitation request
@@ -2381,7 +2381,7 @@ declare const ElicitDeclineResult_base: Schema.ExtendableClass<ElicitDeclineResu
2381
2381
  * This result property is reserved by the protocol to allow clients and
2382
2382
  * servers to attach additional metadata to their responses.
2383
2383
  */
2384
- readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Any>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
2384
+ readonly _meta: Schema.decodeTo<Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
2385
2385
  }>, {}>;
2386
2386
  /**
2387
2387
  * The client's response to an elicitation request
@@ -64,7 +64,7 @@ export class ResultMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/Schema
64
64
  * This result property is reserved by the protocol to allow clients and
65
65
  * servers to attach additional metadata to their responses.
66
66
  */
67
- _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Any))
67
+ _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Json))
68
68
  })) {}
69
69
  /**
70
70
  * @since 4.0.0
@@ -75,7 +75,7 @@ export class NotificationMeta extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/
75
75
  * This parameter name is reserved by MCP to allow clients and servers to
76
76
  * attach additional metadata to their notifications.
77
77
  */
78
- _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Any))
78
+ _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Json))
79
79
  })) {}
80
80
  /**
81
81
  * An opaque token used to represent a cursor for pagination.
@@ -169,7 +169,7 @@ export class ClientCapabilities extends /*#__PURE__*/Schema.Class("@effect/ai/Mc
169
169
  * Optional extensions capabilities advertised by the client.
170
170
  * Keys are extension identifiers following <vendor-prefix>/<extension-name> (e.g. "io.modelcontextprotocol/ui").
171
171
  */
172
- extensions: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(/*#__PURE__*/Schema.TemplateLiteral([Schema.String, "/", Schema.String]), Schema.Unknown)),
172
+ extensions: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(/*#__PURE__*/Schema.TemplateLiteral([Schema.String, "/", Schema.String]), Schema.Json)),
173
173
  /**
174
174
  * Present if the client supports listing roots.
175
175
  */
@@ -205,7 +205,7 @@ export class ServerCapabilities extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__
205
205
  * Optional extensions capabilities advertised by the server.
206
206
  * Keys are extension identifiers following <vendor-prefix>/<extension-name> (e.g. "io.modelcontextprotocol/ui").
207
207
  */
208
- extensions: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(/*#__PURE__*/Schema.TemplateLiteral([Schema.String, "/", Schema.String]), Schema.Unknown)),
208
+ extensions: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(/*#__PURE__*/Schema.TemplateLiteral([Schema.String, "/", Schema.String]), Schema.Json)),
209
209
  /**
210
210
  * Present if the server supports sending log messages to the client.
211
211
  */
@@ -539,7 +539,7 @@ export class Resource extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Re
539
539
  * This parameter name is reserved by MCP to allow clients and servers to
540
540
  * attach additional metadata to resources.
541
541
  */
542
- _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Unknown))
542
+ _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Json))
543
543
  }) {}
544
544
  /**
545
545
  * A template description for resources available on the server.
@@ -579,7 +579,7 @@ export class ResourceTemplate extends /*#__PURE__*/Schema.Class("@effect/ai/McpS
579
579
  /**
580
580
  * Optional additional metadata for the client.
581
581
  */
582
- _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Unknown))
582
+ _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Json))
583
583
  }) {}
584
584
  /**
585
585
  * The contents of a specific resource or sub-resource.
@@ -599,7 +599,7 @@ export class ResourceContents extends /*#__PURE__*/Schema.Opaque()(/*#__PURE__*/
599
599
  /**
600
600
  * Optional additional metadata for the client.
601
601
  */
602
- _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Unknown))
602
+ _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Json))
603
603
  })) {}
604
604
  /**
605
605
  * The contents of a text resource, which can be represented as a string.
@@ -1068,7 +1068,7 @@ export class Tool extends /*#__PURE__*/Schema.Class("@effect/ai/McpSchema/Tool")
1068
1068
  * This parameter name is reserved by MCP to allow clients and servers to
1069
1069
  * attach additional metadata to resources.
1070
1070
  */
1071
- _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Unknown))
1071
+ _meta: /*#__PURE__*/optional(/*#__PURE__*/Schema.Record(Schema.String, Schema.Json))
1072
1072
  }) {}
1073
1073
  /**
1074
1074
  * The server's response to a tools/list request from the client.