@lobehub/cli 0.0.150 → 0.0.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import { finished, pipeline } from "node:stream/promises";
21
21
  import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark, pipeline as pipeline$1 } from "node:stream";
22
22
  import readline, { createInterface } from "node:readline";
23
23
  import { ReadableStream as ReadableStream$1 } from "node:stream/web";
24
- import { text } from "node:stream/consumers";
24
+ import { buffer, text } from "node:stream/consumers";
25
25
  import http, { Agent, ServerResponse, createServer as createServer$1, request } from "node:http";
26
26
  import { createServer as createServer$2, request as request$1 } from "node:https";
27
27
  import zlib, { zstdDecompress } from "node:zlib";
@@ -5656,7 +5656,7 @@ function nativeEnum(entries, params) {
5656
5656
  ...normalizeParams(params)
5657
5657
  });
5658
5658
  }
5659
- function literal(value, params) {
5659
+ function literal$1(value, params) {
5660
5660
  return new ZodLiteral$1({
5661
5661
  type: "literal",
5662
5662
  values: Array.isArray(value) ? value : [value],
@@ -7788,7 +7788,7 @@ var init_pluginConfig = __esmMin((() => {
7788
7788
  "disabled"
7789
7789
  ]);
7790
7790
  AgentPluginEntrySchema = union([string(), object$1({
7791
- builtinOverride: literal(true).optional(),
7791
+ builtinOverride: literal$1(true).optional(),
7792
7792
  identifier: string(),
7793
7793
  mode: AgentPluginModeSchema.optional()
7794
7794
  })]);
@@ -8154,8 +8154,8 @@ var init_agentHook = __esmMin((() => {
8154
8154
  var toolCallHookDecisionSchema;
8155
8155
  var init_agentHookResponse = __esmMin((() => {
8156
8156
  init_zod$1();
8157
- toolCallHookDecisionSchema = discriminatedUnion("decision", [object$1({ decision: literal("allow") }), object$1({
8158
- decision: literal("deny"),
8157
+ toolCallHookDecisionSchema = discriminatedUnion("decision", [object$1({ decision: literal$1("allow") }), object$1({
8158
+ decision: literal$1("deny"),
8159
8159
  reason: string().optional()
8160
8160
  })]);
8161
8161
  }));
@@ -8239,9 +8239,9 @@ var init_base$1 = __esmMin((() => {
8239
8239
  ]).optional(),
8240
8240
  summary: array(object$1({
8241
8241
  text: string(),
8242
- type: literal("summary_text")
8242
+ type: literal$1("summary_text")
8243
8243
  })),
8244
- type: literal("reasoning")
8244
+ type: literal$1("reasoning")
8245
8245
  }).passthrough();
8246
8246
  ModelReasoningSchema = object$1({
8247
8247
  content: string().optional(),
@@ -8370,7 +8370,7 @@ var init_contextAccounting = __esmMin((() => {
8370
8370
  toolCalls: 0,
8371
8371
  toolDefinition: 0
8372
8372
  }),
8373
- estimator: literal("tokenx").catch("tokenx"),
8373
+ estimator: literal$1("tokenx").catch("tokenx"),
8374
8374
  messageCount: tokens,
8375
8375
  system: tokens,
8376
8376
  total: tokens
@@ -8407,7 +8407,7 @@ var init_contextSelection = __esmMin((() => {
8407
8407
  startOffset: number$1()
8408
8408
  }).optional(),
8409
8409
  pageId: string(),
8410
- source: literal("page"),
8410
+ source: literal$1("page"),
8411
8411
  xml: string().optional()
8412
8412
  });
8413
8413
  CodeContextSelectionSchema = ContextSelectionBaseSchema.extend({
@@ -8418,10 +8418,10 @@ var init_contextSelection = __esmMin((() => {
8418
8418
  "context",
8419
8419
  "deletions"
8420
8420
  ]).optional(),
8421
- source: literal("code"),
8421
+ source: literal$1("code"),
8422
8422
  workingDirectory: string().optional()
8423
8423
  });
8424
- TextContextSelectionSchema = ContextSelectionBaseSchema.extend({ source: literal("text") });
8424
+ TextContextSelectionSchema = ContextSelectionBaseSchema.extend({ source: literal$1("text") });
8425
8425
  ElementContextSelectionSchema = ContextSelectionBaseSchema.extend({
8426
8426
  element: object$1({
8427
8427
  pageTitle: string().optional(),
@@ -8431,11 +8431,11 @@ var init_contextSelection = __esmMin((() => {
8431
8431
  thumbnailUrl: string().optional(),
8432
8432
  url: string().optional()
8433
8433
  }),
8434
- source: literal("element")
8434
+ source: literal$1("element")
8435
8435
  });
8436
8436
  McpAppContextSelectionSchema = ContextSelectionBaseSchema.extend({
8437
8437
  identifier: string(),
8438
- source: literal("mcpApp")
8438
+ source: literal$1("mcpApp")
8439
8439
  });
8440
8440
  ContextSelectionSchema = discriminatedUnion("source", [
8441
8441
  PageContextSelectionSchema,
@@ -8487,17 +8487,17 @@ var init_metadata = __esmMin((() => {
8487
8487
  taskId: string().optional(),
8488
8488
  taskIdentifier: string().optional()
8489
8489
  })),
8490
- type: literal("task")
8490
+ type: literal$1("task")
8491
8491
  }),
8492
8492
  object$1({
8493
8493
  args: record(string(), unknown()).optional(),
8494
8494
  data: unknown(),
8495
8495
  provider: string(),
8496
8496
  toolName: string(),
8497
- type: literal("skill")
8497
+ type: literal$1("skill")
8498
8498
  }),
8499
8499
  object$1({
8500
- action: literal("register"),
8500
+ action: literal$1("register"),
8501
8501
  document: object$1({
8502
8502
  agentDocumentId: string().nullish(),
8503
8503
  agentId: string().nullish(),
@@ -8506,19 +8506,19 @@ var init_metadata = __esmMin((() => {
8506
8506
  changeType: _enum(["created", "updated"]),
8507
8507
  toolName: string()
8508
8508
  }),
8509
- type: literal("document")
8509
+ type: literal$1("document")
8510
8510
  }),
8511
8511
  object$1({
8512
- action: literal("delete"),
8512
+ action: literal$1("delete"),
8513
8513
  document: object$1({
8514
8514
  agentDocumentId: string().nullish(),
8515
8515
  agentId: string().nullish(),
8516
8516
  documentId: string()
8517
8517
  }),
8518
- type: literal("document")
8518
+ type: literal$1("document")
8519
8519
  }),
8520
8520
  object$1({
8521
- action: literal("register"),
8521
+ action: literal$1("register"),
8522
8522
  canvas: object$1({
8523
8523
  canvasId: string(),
8524
8524
  description: string().nullish(),
@@ -8532,7 +8532,7 @@ var init_metadata = __esmMin((() => {
8532
8532
  totalSize: number$1()
8533
8533
  })
8534
8534
  }),
8535
- type: literal("canvas")
8535
+ type: literal$1("canvas")
8536
8536
  })
8537
8537
  ]);
8538
8538
  LocalSystemToolSnapshotSchema = object$1({
@@ -8546,7 +8546,7 @@ var init_metadata = __esmMin((() => {
8546
8546
  capturedAt: string(),
8547
8547
  content: string().nullable(),
8548
8548
  error: unknown().optional(),
8549
- identifier: literal("lobe-local-system"),
8549
+ identifier: literal$1("lobe-local-system"),
8550
8550
  result: unknown().optional(),
8551
8551
  snapshotId: string(),
8552
8552
  state: unknown().optional(),
@@ -8625,7 +8625,7 @@ var init_metadata = __esmMin((() => {
8625
8625
  });
8626
8626
  AgentDispatchMetadataSchema = object$1({
8627
8627
  kind: _enum(["callAgent"]),
8628
- visibility: literal("internal")
8628
+ visibility: literal$1("internal")
8629
8629
  });
8630
8630
  AgentSenderMetadataSchema = object$1({
8631
8631
  agentId: string(),
@@ -9003,14 +9003,14 @@ var init_builtin = __esmMin((() => {
9003
9003
  identifier: string(),
9004
9004
  meta: MetaSchema,
9005
9005
  systemRole: string(),
9006
- type: literal("builtin").optional()
9006
+ type: literal$1("builtin").optional()
9007
9007
  });
9008
9008
  LobeBuiltinToolSchema = object$1({
9009
9009
  discoverable: boolean().optional(),
9010
9010
  hidden: boolean().optional(),
9011
9011
  identifier: string(),
9012
9012
  manifest: BuiltinToolManifestSchema,
9013
- type: literal("builtin")
9013
+ type: literal$1("builtin")
9014
9014
  });
9015
9015
  }));
9016
9016
 
@@ -9031,7 +9031,7 @@ var init_manifest = __esmMin((() => {
9031
9031
  ToolManifestSettingsSchema = object$1({
9032
9032
  properties: record(string(), any()),
9033
9033
  required: array(string()).optional(),
9034
- type: literal("object")
9034
+ type: literal$1("object")
9035
9035
  });
9036
9036
  ToolManifestSchema = object$1({
9037
9037
  $schema: string().optional(),
@@ -9097,7 +9097,7 @@ var init_tool$2 = __esmMin((() => {
9097
9097
  additionalProperties: boolean().optional(),
9098
9098
  properties: record(string(), any()),
9099
9099
  required: array(string()).optional(),
9100
- type: literal("object")
9100
+ type: literal$1("object")
9101
9101
  })
9102
9102
  });
9103
9103
  }));
@@ -9130,7 +9130,7 @@ var init_understanding = __esmMin((() => {
9130
9130
  MAX_UNDERSTANDING_FEEDBACK_LENGTH = 2e3;
9131
9131
  MAX_UNDERSTANDING_FEEDBACK_TURNS = 16;
9132
9132
  MAX_PERSONA_CONTENT_LENGTH = 12e3;
9133
- OnboardingUnderstandingThreadMarkerSchema = object$1({ kind: literal("writing") }).strict();
9133
+ OnboardingUnderstandingThreadMarkerSchema = object$1({ kind: literal$1("writing") }).strict();
9134
9134
  CollectionErrorSchema = object$1({
9135
9135
  code: string().max(64),
9136
9136
  message: string(),
@@ -9192,7 +9192,7 @@ var init_understanding = __esmMin((() => {
9192
9192
  diagnostics: CollectionDiagnosticsSchema,
9193
9193
  feedbackRevision: number$1().int().nonnegative().max(MAX_COLLECTION_COUNT).default(0),
9194
9194
  generationRevision: number$1().int().nonnegative().max(MAX_COLLECTION_COUNT).default(0),
9195
- kind: literal("proposal"),
9195
+ kind: literal$1("proposal"),
9196
9196
  providers: array(string().max(64)),
9197
9197
  resultId: string(),
9198
9198
  sourceFingerprint: string()
@@ -9222,16 +9222,16 @@ var init_understanding = __esmMin((() => {
9222
9222
  understandingWritingStateBaseShape = {
9223
9223
  detailed: discriminatedUnion("status", [
9224
9224
  object$1({
9225
- status: literal("running"),
9225
+ status: literal$1("running"),
9226
9226
  updatedAt: string()
9227
9227
  }).strict(),
9228
9228
  object$1({
9229
- status: literal("completed"),
9229
+ status: literal$1("completed"),
9230
9230
  updatedAt: string()
9231
9231
  }).strict(),
9232
9232
  object$1({
9233
9233
  error: CollectionErrorSchema,
9234
- status: literal("failed"),
9234
+ status: literal$1("failed"),
9235
9235
  updatedAt: string()
9236
9236
  }).strict()
9237
9237
  ]).optional(),
@@ -9244,18 +9244,18 @@ var init_understanding = __esmMin((() => {
9244
9244
  object$1({
9245
9245
  ...understandingWritingStateBaseShape,
9246
9246
  resultMessageId: string().optional(),
9247
- status: literal("running")
9247
+ status: literal$1("running")
9248
9248
  }).strict(),
9249
9249
  object$1({
9250
9250
  ...understandingWritingStateBaseShape,
9251
9251
  resultMessageId: string(),
9252
- status: literal("completed")
9252
+ status: literal$1("completed")
9253
9253
  }).strict(),
9254
9254
  object$1({
9255
9255
  ...understandingWritingStateBaseShape,
9256
9256
  error: CollectionErrorSchema,
9257
9257
  resultMessageId: string().optional(),
9258
- status: literal("failed")
9258
+ status: literal$1("failed")
9259
9259
  }).strict()
9260
9260
  ]);
9261
9261
  OnboardingUnderstandingSessionSchema = object$1({
@@ -9404,7 +9404,7 @@ var init_aiChat = __esmMin((() => {
9404
9404
  additionalProperties: boolean().optional(),
9405
9405
  properties: record(string(), any()),
9406
9406
  required: array(string()).optional(),
9407
- type: literal("object")
9407
+ type: literal$1("object")
9408
9408
  }),
9409
9409
  strict: boolean().optional()
9410
9410
  });
@@ -9420,7 +9420,7 @@ var init_aiChat = __esmMin((() => {
9420
9420
  schema: StructureSchema.optional(),
9421
9421
  tools: array(object$1({
9422
9422
  function: LobeUniformToolSchema,
9423
- type: literal("function")
9423
+ type: literal$1("function")
9424
9424
  })).optional(),
9425
9425
  /**
9426
9426
  * Structured tracing config (scenario / promptVersion / schemaName /
@@ -9447,17 +9447,17 @@ var init_aiChat = __esmMin((() => {
9447
9447
  true: DecisionContentSchema
9448
9448
  }).optional(),
9449
9449
  instructions: DecisionContentSchema,
9450
- type: literal("boolean")
9450
+ type: literal$1("boolean")
9451
9451
  }),
9452
9452
  object$1({
9453
9453
  criteria: record(string(), DecisionContentSchema.nullable()),
9454
9454
  instructions: DecisionContentSchema,
9455
- type: literal("choice")
9455
+ type: literal$1("choice")
9456
9456
  }),
9457
9457
  object$1({
9458
9458
  criteria: array(DecisionContentSchema).min(1),
9459
9459
  instructions: DecisionContentSchema,
9460
- type: literal("score")
9460
+ type: literal$1("score")
9461
9461
  })
9462
9462
  ]);
9463
9463
  DecisionOutputSchema = object$1({
@@ -10110,9 +10110,9 @@ var init_followUpAction = __esmMin((() => {
10110
10110
  init_zod$1();
10111
10111
  init_agentOnboarding();
10112
10112
  FollowUpHintSchema = union([object$1({
10113
- kind: literal("onboarding"),
10113
+ kind: literal$1("onboarding"),
10114
10114
  phase: OnboardingPhaseSchema
10115
- }), object$1({ kind: literal("chat") })]);
10115
+ }), object$1({ kind: literal$1("chat") })]);
10116
10116
  FollowUpModelConfigSchema = object$1({
10117
10117
  model: string().min(1),
10118
10118
  provider: string().min(1)
@@ -10240,7 +10240,7 @@ var init_heteroSessionImport = __esmMin((() => {
10240
10240
  arguments: string(),
10241
10241
  id: string(),
10242
10242
  identifier: string(),
10243
- type: literal("default")
10243
+ type: literal$1("default")
10244
10244
  });
10245
10245
  heteroSessionImportMessageSchema = object$1({
10246
10246
  clientId: string(),
@@ -11068,7 +11068,7 @@ var init_topic$1 = __esmMin((() => {
11068
11068
  resumeAfterRateLimitRunSchema = topicScheduledRunBaseSchema.extend({
11069
11069
  /** The failed assistant turn that hit the rate limit (regenerated in place). */
11070
11070
  failedAssistantMessageId: string(),
11071
- kind: literal("resume_after_rate_limit"),
11071
+ kind: literal$1("resume_after_rate_limit"),
11072
11072
  /** Diagnostics only — `runAt` is derived from `resetsAt` at write time. */
11073
11073
  rateLimit: object$1({
11074
11074
  rateLimitType: string().optional(),
@@ -11079,12 +11079,12 @@ var init_topic$1 = __esmMin((() => {
11079
11079
  sessionId: string().optional(),
11080
11080
  workingDirectory: string().optional()
11081
11081
  }).optional(),
11082
- source: literal("heterogeneous_agent"),
11082
+ source: literal$1("heterogeneous_agent"),
11083
11083
  /** The user message whose turn is being continued. */
11084
11084
  userMessageId: string()
11085
11085
  });
11086
11086
  delayedStartRunSchema = topicScheduledRunBaseSchema.extend({
11087
- kind: literal("delayed_start"),
11087
+ kind: literal$1("delayed_start"),
11088
11088
  /** Model override captured at schedule time (the agent default is used if absent). */
11089
11089
  model: string().optional(),
11090
11090
  /** Provider override captured at schedule time. */
@@ -11109,7 +11109,7 @@ var init_topic$1 = __esmMin((() => {
11109
11109
  });
11110
11110
  worktreeStartRunSchema = topicScheduledRunBaseSchema.extend({
11111
11111
  error: string().optional(),
11112
- kind: literal("worktree_start"),
11112
+ kind: literal$1("worktree_start"),
11113
11113
  operationId: string(),
11114
11114
  retryable: boolean().optional(),
11115
11115
  userMessageId: string(),
@@ -11129,12 +11129,12 @@ var init_topic$1 = __esmMin((() => {
11129
11129
  rateLimitType: string().optional(),
11130
11130
  resetsAt: number$1().optional()
11131
11131
  }).optional(),
11132
- reason: literal("rate_limit"),
11132
+ reason: literal$1("rate_limit"),
11133
11133
  resume: object$1({
11134
11134
  sessionId: string().optional(),
11135
11135
  workingDirectory: string().optional()
11136
11136
  }).optional(),
11137
- source: literal("heterogeneous_agent"),
11137
+ source: literal$1("heterogeneous_agent"),
11138
11138
  updatedAt: string(),
11139
11139
  userMessageId: string()
11140
11140
  });
@@ -11815,23 +11815,23 @@ var init_tools = __esmMin((() => {
11815
11815
  ]);
11816
11816
  searchMemoryDayIntentSchema = object$1({
11817
11817
  date: date$1(),
11818
- selector: literal("day")
11818
+ selector: literal$1("day")
11819
11819
  });
11820
11820
  searchMemoryMonthIntentSchema = object$1({
11821
11821
  month: number$1().int().min(1).max(12),
11822
- selector: literal("month"),
11822
+ selector: literal$1("month"),
11823
11823
  year: number$1().int().min(1970).max(9999)
11824
11824
  });
11825
11825
  searchMemoryRangeIntentSchema = object$1({
11826
11826
  end: date$1().optional(),
11827
- selector: literal("range"),
11827
+ selector: literal$1("range"),
11828
11828
  start: date$1().optional()
11829
11829
  }).refine((value) => Boolean(value.start || value.end), {
11830
11830
  message: "range selector requires start or end",
11831
11831
  path: ["start"]
11832
11832
  });
11833
11833
  searchMemoryYearIntentSchema = object$1({
11834
- selector: literal("year"),
11834
+ selector: literal$1("year"),
11835
11835
  year: number$1().int().min(1970).max(9999)
11836
11836
  });
11837
11837
  searchMemoryLegacyRelativeDayAnchorSchema = _enum(["today", "yesterday"]);
@@ -11842,7 +11842,7 @@ var init_tools = __esmMin((() => {
11842
11842
  object$1({
11843
11843
  anchor: union([searchMemoryLegacyRelativeDayAnchorSchema, searchMemoryTimeIntentSchema]),
11844
11844
  offsetDays: number$1().int(),
11845
- selector: literal("relativeDay")
11845
+ selector: literal$1("relativeDay")
11846
11846
  }),
11847
11847
  searchMemoryRangeIntentSchema,
11848
11848
  searchMemoryYearIntentSchema
@@ -12064,7 +12064,7 @@ var init_acceptanceReview = __esmMin((() => {
12064
12064
  })).max(8),
12065
12065
  title: string().max(300).optional(),
12066
12066
  url: string().url().max(2e3),
12067
- v: literal(1),
12067
+ v: literal$1(1),
12068
12068
  viewport: object$1({
12069
12069
  dpr: number$1().positive(),
12070
12070
  height: number$1().finite(),
@@ -12178,7 +12178,251 @@ var init_acceptanceReviewRound = __esmMin((() => {
12178
12178
 
12179
12179
  //#endregion
12180
12180
  //#region ../../packages/types/src/artboard.ts
12181
- var init_artboard = __esmMin((() => {}));
12181
+ var ARTBOARD_GROUP_KINDS, ARTBOARD_BOARD_TYPES, text$1, coordinate, size$1, artboardBoardSourceSchema, artboardBoardSourceInputSchema, ref, id, boardFields, groupFields, artboardOpSchema, formatArtboardResultLine;
12182
+ var init_artboard = __esmMin((() => {
12183
+ init_zod$1();
12184
+ ARTBOARD_GROUP_KINDS = [
12185
+ "journey",
12186
+ "options",
12187
+ "references",
12188
+ "other"
12189
+ ];
12190
+ ARTBOARD_BOARD_TYPES = [
12191
+ "html",
12192
+ "image",
12193
+ "video",
12194
+ "decision"
12195
+ ];
12196
+ text$1 = string();
12197
+ coordinate = number$1().finite();
12198
+ size$1 = number$1().finite().positive();
12199
+ artboardBoardSourceSchema = object$1({
12200
+ /** Version tag of the file (its object ETag); null while the file does not exist. */
12201
+ hash: string().min(1).nullable(),
12202
+ kind: literal$1("file"),
12203
+ path: string().min(1)
12204
+ });
12205
+ artboardBoardSourceInputSchema = object$1({
12206
+ kind: literal$1("file"),
12207
+ path: string().min(1)
12208
+ });
12209
+ ref = string().min(1).optional();
12210
+ id = string().min(1);
12211
+ boardFields = {
12212
+ expected: text$1.optional(),
12213
+ groupId: id.optional(),
12214
+ h: size$1.optional(),
12215
+ pageId: id.optional(),
12216
+ recommended: boolean().optional(),
12217
+ roundId: id.optional(),
12218
+ source: artboardBoardSourceInputSchema.optional(),
12219
+ title: text$1,
12220
+ type: _enum(ARTBOARD_BOARD_TYPES).optional(),
12221
+ w: size$1.optional(),
12222
+ x: coordinate,
12223
+ y: coordinate
12224
+ };
12225
+ groupFields = {
12226
+ desc: text$1.optional(),
12227
+ kind: _enum(ARTBOARD_GROUP_KINDS),
12228
+ pageId: id.optional(),
12229
+ title: text$1
12230
+ };
12231
+ artboardOpSchema = discriminatedUnion("type", [
12232
+ object$1({
12233
+ page: object$1({ name: text$1.min(1) }),
12234
+ ref,
12235
+ type: literal$1("addPage")
12236
+ }),
12237
+ object$1({
12238
+ id,
12239
+ patch: object$1({ name: text$1.min(1) }),
12240
+ type: literal$1("updatePage")
12241
+ }),
12242
+ object$1({
12243
+ id,
12244
+ type: literal$1("removePage")
12245
+ }),
12246
+ object$1({
12247
+ ref,
12248
+ round: object$1({
12249
+ batchId: id.optional(),
12250
+ pageId: id.optional(),
12251
+ title: text$1.min(1)
12252
+ }),
12253
+ type: literal$1("addRound")
12254
+ }),
12255
+ object$1({
12256
+ id,
12257
+ patch: object$1({ title: text$1.min(1) }),
12258
+ type: literal$1("updateRound")
12259
+ }),
12260
+ object$1({
12261
+ group: object$1(groupFields),
12262
+ ref,
12263
+ type: literal$1("addGroup")
12264
+ }),
12265
+ object$1({
12266
+ id,
12267
+ patch: object$1({
12268
+ desc: text$1,
12269
+ kind: _enum(ARTBOARD_GROUP_KINDS),
12270
+ title: text$1
12271
+ }).partial(),
12272
+ type: literal$1("updateGroup")
12273
+ }),
12274
+ object$1({
12275
+ id,
12276
+ type: literal$1("removeGroup")
12277
+ }),
12278
+ object$1({
12279
+ board: object$1(boardFields),
12280
+ ref,
12281
+ type: literal$1("addBoard")
12282
+ }),
12283
+ object$1({
12284
+ id,
12285
+ patch: object$1({
12286
+ ...boardFields,
12287
+ groupId: id.nullable(),
12288
+ roundId: id.nullable()
12289
+ }).omit({
12290
+ pageId: true,
12291
+ type: true
12292
+ }).partial(),
12293
+ type: literal$1("updateBoard")
12294
+ }),
12295
+ object$1({
12296
+ id,
12297
+ type: literal$1("removeBoard")
12298
+ }),
12299
+ object$1({
12300
+ edge: object$1({
12301
+ condition: text$1.optional(),
12302
+ from: id,
12303
+ isDefault: boolean().optional(),
12304
+ label: text$1.optional(),
12305
+ to: id
12306
+ }),
12307
+ ref,
12308
+ type: literal$1("addEdge")
12309
+ }),
12310
+ object$1({
12311
+ id,
12312
+ type: literal$1("removeEdge")
12313
+ }),
12314
+ object$1({
12315
+ boardId: id,
12316
+ expected: text$1,
12317
+ type: literal$1("setCheck")
12318
+ })
12319
+ ]);
12320
+ formatArtboardResultLine = ({ boardCount, groupCount, id: artboardId, revision }) => `artboard ${artboardId} · revision ${revision} · ${groupCount} groups · ${boardCount} boards`;
12321
+ }));
12322
+
12323
+ //#endregion
12324
+ //#region ../../packages/types/src/artboardFiles.ts
12325
+ var ARTBOARD_FILE_LIMITS, CONTENT_TYPES, TEXT_EXTENSIONS, SEGMENT, extensionOf, artboardFileContentType, isArtboardTextPath, normalizeArtboardFilePath, filePathSchema, artboardFileWriteSchema, artboardFileUploadsSchema, artboardFileEditSchema, artboardFileChangesSchema;
12326
+ var init_artboardFiles = __esmMin((() => {
12327
+ init_zod$1();
12328
+ ARTBOARD_FILE_LIMITS = {
12329
+ maxFiles: 500,
12330
+ maxImageBytes: 10 * 1024 * 1024,
12331
+ maxPathLength: 200,
12332
+ maxTextFileBytes: 512 * 1024,
12333
+ maxTotalBytes: 50 * 1024 * 1024
12334
+ };
12335
+ CONTENT_TYPES = {
12336
+ css: "text/css; charset=utf-8",
12337
+ gif: "image/gif",
12338
+ htm: "text/html; charset=utf-8",
12339
+ html: "text/html; charset=utf-8",
12340
+ jpeg: "image/jpeg",
12341
+ jpg: "image/jpeg",
12342
+ js: "text/javascript; charset=utf-8",
12343
+ json: "application/json; charset=utf-8",
12344
+ mjs: "text/javascript; charset=utf-8",
12345
+ png: "image/png",
12346
+ svg: "image/svg+xml",
12347
+ txt: "text/plain; charset=utf-8",
12348
+ webp: "image/webp",
12349
+ woff: "font/woff",
12350
+ woff2: "font/woff2"
12351
+ };
12352
+ TEXT_EXTENSIONS = new Set([
12353
+ "css",
12354
+ "htm",
12355
+ "html",
12356
+ "js",
12357
+ "json",
12358
+ "mjs",
12359
+ "svg",
12360
+ "txt"
12361
+ ]);
12362
+ SEGMENT = /^[\w.@-]+$/;
12363
+ extensionOf = (path) => {
12364
+ const name = path.slice(path.lastIndexOf("/") + 1);
12365
+ const dot = name.lastIndexOf(".");
12366
+ return dot > 0 ? name.slice(dot + 1).toLowerCase() : "";
12367
+ };
12368
+ artboardFileContentType = (path) => CONTENT_TYPES[extensionOf(path)];
12369
+ isArtboardTextPath = (path) => TEXT_EXTENSIONS.has(extensionOf(path));
12370
+ normalizeArtboardFilePath = (path) => {
12371
+ const trimmed = path.trim().replace(/^\.\//, "");
12372
+ if (!trimmed || trimmed.length > ARTBOARD_FILE_LIMITS.maxPathLength) return;
12373
+ if (trimmed.split("/").some((segment) => !SEGMENT.test(segment) || segment === "." || segment === "..")) return;
12374
+ if (!artboardFileContentType(trimmed)) return;
12375
+ return trimmed;
12376
+ };
12377
+ filePathSchema = string().min(1).max(ARTBOARD_FILE_LIMITS.maxPathLength + 2);
12378
+ artboardFileWriteSchema = union([
12379
+ object$1({
12380
+ content: string(),
12381
+ path: filePathSchema
12382
+ }).strict(),
12383
+ object$1({
12384
+ fileRef: string().min(1),
12385
+ path: filePathSchema
12386
+ }).strict(),
12387
+ object$1({
12388
+ base64: string().min(1),
12389
+ path: filePathSchema
12390
+ }).strict(),
12391
+ object$1({
12392
+ path: filePathSchema,
12393
+ uploaded: literal$1(true)
12394
+ }).strict(),
12395
+ object$1({
12396
+ fromCanvas: object$1({
12397
+ canvasId: string().min(1),
12398
+ version: number$1().int().positive().optional()
12399
+ }).strict(),
12400
+ path: filePathSchema
12401
+ }).strict()
12402
+ ]);
12403
+ artboardFileUploadsSchema = array(object$1({
12404
+ path: filePathSchema,
12405
+ size: number$1().int().nonnegative()
12406
+ }).strict()).min(1).max(ARTBOARD_FILE_LIMITS.maxFiles);
12407
+ artboardFileEditSchema = object$1({
12408
+ newText: string(),
12409
+ oldText: string().min(1),
12410
+ path: filePathSchema
12411
+ }).strict();
12412
+ artboardFileChangesSchema = object$1({
12413
+ deletes: array(filePathSchema).max(ARTBOARD_FILE_LIMITS.maxFiles).optional(),
12414
+ edits: array(artboardFileEditSchema).max(200).optional(),
12415
+ writes: array(artboardFileWriteSchema).max(ARTBOARD_FILE_LIMITS.maxFiles).optional()
12416
+ }).strict();
12417
+ }));
12418
+
12419
+ //#endregion
12420
+ //#region ../../packages/types/src/artboardPublish.ts
12421
+ var init_artboardPublish = __esmMin((() => {}));
12422
+
12423
+ //#endregion
12424
+ //#region ../../packages/types/src/artboardReadiness.ts
12425
+ var init_artboardReadiness = __esmMin((() => {}));
12182
12426
 
12183
12427
  //#endregion
12184
12428
  //#region ../../packages/types/src/connector.ts
@@ -12219,7 +12463,7 @@ var init_inboundWebhook = __esmMin((() => {
12219
12463
  remoteSubscriptionId: string().optional(),
12220
12464
  truncated: boolean().optional()
12221
12465
  }).strict();
12222
- McpEventsWebhookVerificationSchema = object$1({ scheme: literal("standard_webhooks") }).strict();
12466
+ McpEventsWebhookVerificationSchema = object$1({ scheme: literal$1("standard_webhooks") }).strict();
12223
12467
  GenericWebhookConfigSchema = object$1({
12224
12468
  autoApprove: boolean(),
12225
12469
  delivery: InboundWebhookChannelDeliverySchema.optional(),
@@ -12228,14 +12472,14 @@ var init_inboundWebhook = __esmMin((() => {
12228
12472
  topicId: string().min(1).optional()
12229
12473
  }).strict();
12230
12474
  GenericWebhookStateSchema = object$1({}).strict();
12231
- GenericWebhookVerificationSchema = object$1({ scheme: literal("bearer_token") }).strict();
12475
+ GenericWebhookVerificationSchema = object$1({ scheme: literal$1("bearer_token") }).strict();
12232
12476
  InboundWebhookDataSchema = discriminatedUnion("kind", [object$1({
12233
- kind: literal("mcp_events"),
12477
+ kind: literal$1("mcp_events"),
12234
12478
  config: McpEventsWebhookConfigSchema,
12235
12479
  state: McpEventsWebhookStateSchema,
12236
12480
  verification: McpEventsWebhookVerificationSchema
12237
12481
  }), object$1({
12238
- kind: literal("generic"),
12482
+ kind: literal$1("generic"),
12239
12483
  config: GenericWebhookConfigSchema,
12240
12484
  state: GenericWebhookStateSchema,
12241
12485
  verification: GenericWebhookVerificationSchema
@@ -12392,6 +12636,9 @@ var init_src$2 = __esmMin((() => {
12392
12636
  init_acceptanceReviewRound();
12393
12637
  init_agentRuntime();
12394
12638
  init_artboard();
12639
+ init_artboardFiles();
12640
+ init_artboardPublish();
12641
+ init_artboardReadiness();
12395
12642
  init_connector();
12396
12643
  init_connectorToolIdentifier();
12397
12644
  init_heteroPermissionMode();
@@ -18233,6 +18480,7 @@ const TRPC_NAMESPACE_API_KEY_RULES = {
18233
18480
  apiKey: "blocked",
18234
18481
  asr: { any: "model:invoke" },
18235
18482
  auth: "open",
18483
+ artboard: "blocked",
18236
18484
  artifactShare: rw("chat:read", null),
18237
18485
  botMessage: "blocked",
18238
18486
  brief: rw("chat:read", "chat:write"),
@@ -46450,8 +46698,8 @@ const AGENT_GRAPH_ROOT_NODE_ID = "__root__";
46450
46698
  const AgentGraphNodeSchema = discriminatedUnion("type", [object$1({
46451
46699
  allowedToolApiNames: array(string().min(1)).optional(),
46452
46700
  maxAgentSteps: number$1().int().positive().optional(),
46453
- type: literal("agent")
46454
- }), object$1({ type: literal("llm") })]);
46701
+ type: literal$1("agent")
46702
+ }), object$1({ type: literal$1("llm") })]);
46455
46703
  const AgentGraphFieldSchema = object$1({
46456
46704
  desc: string().min(1),
46457
46705
  schema: record(string(), unknown())
@@ -50780,6 +51028,539 @@ function registerAgentSignalCommand(program) {
50780
51028
  });
50781
51029
  }
50782
51030
 
51031
+ //#endregion
51032
+ //#region src/commands/artboardComments.ts
51033
+ const runAgentId = () => {
51034
+ const id = process.env.LOBEHUB_AGENT_ID?.trim();
51035
+ if (!id) throw new Error("Comments are answered by the agent of a LobeHub conversation, and LOBEHUB_AGENT_ID is not set in this shell");
51036
+ return id;
51037
+ };
51038
+ const placeOf = (thread, content) => {
51039
+ const board = content.boards.find((item) => item.id === thread.boardId);
51040
+ if (board) return `board ${board.id} "${board.title}"`;
51041
+ const group = content.groups.find((item) => item.id === thread.groupId);
51042
+ if (group) return `group ${group.id} "${group.title}"`;
51043
+ const page = content.pages.find((item) => item.id === thread.pageId);
51044
+ return page ? `page ${page.id} "${page.name}"` : "the canvas";
51045
+ };
51046
+ const speaker = (comment) => comment.authorAgentId ? "you" : "user";
51047
+ const formatThread = (thread, content) => {
51048
+ const tags = [
51049
+ thread.unread && "new",
51050
+ thread.resolvedAt && "resolved",
51051
+ thread.stale && "screen changed since"
51052
+ ].filter(Boolean);
51053
+ return [`${thread.id} on ${placeOf(thread, content)}${tags.length ? ` [${tags.join(", ")}]` : ""}`, ...[thread, ...thread.replies].map((comment) => ` ${speaker(comment)}: ${comment.content}`)].join("\n");
51054
+ };
51055
+ const textOf = (words) => {
51056
+ const text = words.join(" ").trim();
51057
+ if (!text) throw new Error("Write the text after the id");
51058
+ return text;
51059
+ };
51060
+ const registerArtboardCommentCommands = (artboard) => {
51061
+ artboard.command("comments <id>").description("Print the user's comment threads waiting for you, with their ids; the ones printed count as read").option("--json", "Print structured JSON").action(async (id, options) => {
51062
+ const agentId = runAgentId();
51063
+ const client = await getTrpcClient();
51064
+ const [threads, { artboard: board }] = await Promise.all([client.artboard.takeComments.mutate({
51065
+ agentId,
51066
+ id
51067
+ }), client.artboard.read.query({ id })]);
51068
+ if (options.json) return outputJson(threads);
51069
+ if (!threads.length) return console.log("No comment threads are waiting for you");
51070
+ console.log(threads.map((thread) => formatThread(thread, board.content)).join("\n\n"));
51071
+ });
51072
+ artboard.command("reply <commentId> <text...>").description("Answer a comment thread on the artboard").action(async (commentId, words) => {
51073
+ const agentId = runAgentId();
51074
+ await (await getTrpcClient()).artboard.replyAsAgent.mutate({
51075
+ agentId,
51076
+ commentId,
51077
+ content: textOf(words)
51078
+ });
51079
+ console.log(`replied in ${commentId}`);
51080
+ });
51081
+ artboard.command("resolve <commentId>").description("Close a thread once what it asks for is done, or once your question in it is answered").action(async (commentId) => {
51082
+ await (await getTrpcClient()).artboard.resolveComment.mutate({ commentId });
51083
+ console.log(`resolved ${commentId}`);
51084
+ });
51085
+ artboard.command("ask <id> <text...>").description("Ask the user a question on the artboard as a new thread; the artboard cannot be finalized while it is open").option("--board <boardId>", "Board the question is about").option("--group <groupId>", "Group the question is about").option("--page <pageId>", "Page the question is about").action(async (id, words, options) => {
51086
+ const agentId = runAgentId();
51087
+ const question = await (await getTrpcClient()).artboard.askQuestion.mutate({
51088
+ agentId,
51089
+ boardId: options.board,
51090
+ content: textOf(words),
51091
+ groupId: options.group,
51092
+ id,
51093
+ pageId: options.page
51094
+ });
51095
+ console.log(`asked ${question.id}`);
51096
+ });
51097
+ };
51098
+
51099
+ //#endregion
51100
+ //#region src/commands/artboardOps.ts
51101
+ init_src$2();
51102
+ init_zod$1();
51103
+ const literal = (value) => JSON.stringify(value);
51104
+ const renderNode = (node) => {
51105
+ if (node.const !== void 0) return literal(node.const);
51106
+ if (node.enum) return node.enum.map(literal).join(" | ");
51107
+ const variants = node.oneOf ?? node.anyOf;
51108
+ if (variants) return variants.map(renderNode).join(" | ");
51109
+ if (node.type === "object" && node.properties) return renderObject(node);
51110
+ if (node.type === "integer") return "number";
51111
+ return node.type ?? "unknown";
51112
+ };
51113
+ const renderObject = (node) => {
51114
+ const required = new Set(node.required);
51115
+ const rank = ([key, value]) => value.const !== void 0 ? 0 : required.has(key) ? 1 : 2;
51116
+ return `{ ${Object.entries(node.properties).map((entry, index) => ({
51117
+ entry,
51118
+ index,
51119
+ rank: rank(entry)
51120
+ })).sort((a, b) => a.rank - b.rank || a.index - b.index).map(({ entry: [key, value] }) => `"${key}"${required.has(key) ? "" : "?"}: ${renderNode(value)}`).join(", ")} }`;
51121
+ };
51122
+ const NOTES = [
51123
+ "--ops takes a JSON array of these, inline or as @file.json. Every op in one call applies, or none does.",
51124
+ "A field marked ? is optional.",
51125
+ "\"ref\" is a name you choose on an add op; later ops in the same call can use it wherever an id is expected.",
51126
+ "x and y are page coordinates; w and h default to 640×400. A board without pageId lands on the page of its group or round, otherwise on the first page.",
51127
+ "A file source names a file of the artboard: put it there with `lh artboard push <id> <dir>` or --files, then point the board at its relative path.",
51128
+ "A board of type \"decision\" has no source and no \"expected\". An .html file makes an \"html\" board and an image file an \"image\" board; \"video\" is refused.",
51129
+ "\"recommended\" marks a board as the option you would pick in its round; it needs \"roundId\", and a board with a \"roundId\" must sit in an options group."
51130
+ ];
51131
+ const opsAction = (options) => {
51132
+ const schema = toJSONSchema(artboardOpSchema);
51133
+ if (options.json) return outputJson(schema);
51134
+ console.log("Ops accepted by `lh artboard create --ops` and `lh artboard update --ops`:\n");
51135
+ for (const op of schema.oneOf ?? schema.anyOf ?? []) console.log(` ${renderNode(op)}\n`);
51136
+ for (const note of NOTES) console.log(`- ${note}`);
51137
+ };
51138
+ const registerArtboardOpsCommand = (artboard) => {
51139
+ artboard.command("ops").description("Print the shape of every op that create and update accept").option("--json", "Print the ops as JSON Schema").action(opsAction);
51140
+ };
51141
+
51142
+ //#endregion
51143
+ //#region src/commands/artboardPush.ts
51144
+ init_src$2();
51145
+ /**
51146
+ * Encoded JSON size of one writeFiles request. Vercel rejects bodies over 4.5 MB
51147
+ * and tRPC can batch other calls into the same request, so stay at 2 MB like
51148
+ * the web client's message write batcher.
51149
+ */
51150
+ const BATCH_BYTES = 2 * 1024 * 1024;
51151
+ const encodedBytes = (value) => Buffer.byteLength(JSON.stringify(value));
51152
+ const toLocalArtboardFile = (relative, bytes) => ({
51153
+ bytes,
51154
+ hash: createHash("md5").update(bytes).digest("hex"),
51155
+ path: relative
51156
+ });
51157
+ const putBlob = async (file, upload) => {
51158
+ const response = await fetch(upload.url, {
51159
+ body: file.bytes,
51160
+ headers: upload.headers,
51161
+ method: "PUT"
51162
+ }).catch((error) => {
51163
+ throw new Error(`Upload of ${file.path} failed: ${error?.message ?? String(error)}`);
51164
+ });
51165
+ if (!response.ok) throw new Error(`Upload of ${file.path} failed: ${response.status} ${response.statusText}`);
51166
+ };
51167
+ /**
51168
+ * Writes files to an artboard in requests of at most 2 MB encoded. A file too
51169
+ * large for one request is PUT to its path through a presigned URL first and
51170
+ * then committed as uploaded.
51171
+ */
51172
+ const writeArtboardFiles = async (api, id, files) => {
51173
+ const envelope = encodedBytes({
51174
+ files: { writes: [] },
51175
+ id
51176
+ });
51177
+ const writes = [];
51178
+ const large = [];
51179
+ for (const file of files) {
51180
+ const write = isArtboardTextPath(file.path) ? {
51181
+ content: file.bytes.toString("utf8"),
51182
+ path: file.path
51183
+ } : {
51184
+ base64: file.bytes.toString("base64"),
51185
+ path: file.path
51186
+ };
51187
+ if (envelope + encodedBytes(write) > BATCH_BYTES) large.push(file);
51188
+ else writes.push(write);
51189
+ }
51190
+ if (large.length) {
51191
+ const { uploads } = await api.prepareFileUploads.mutate({
51192
+ files: large.map((file) => ({
51193
+ path: file.path,
51194
+ size: file.bytes.byteLength
51195
+ })),
51196
+ id
51197
+ });
51198
+ const byPath = new Map(uploads.map((upload) => [upload.path, upload]));
51199
+ for (const file of large) {
51200
+ const upload = byPath.get(file.path);
51201
+ if (!upload) throw new Error(`Upload of ${file.path} failed: the server returned no upload URL`);
51202
+ await putBlob(file, upload);
51203
+ writes.push({
51204
+ path: file.path,
51205
+ uploaded: true
51206
+ });
51207
+ }
51208
+ }
51209
+ let batch = [];
51210
+ let batchBytes = envelope;
51211
+ for (const write of writes) {
51212
+ const bytes = encodedBytes(write) + 1;
51213
+ if (batch.length && batchBytes + bytes > BATCH_BYTES) {
51214
+ await api.writeFiles.mutate({
51215
+ files: { writes: batch },
51216
+ id
51217
+ });
51218
+ batch = [];
51219
+ batchBytes = envelope;
51220
+ }
51221
+ batch.push(write);
51222
+ batchBytes += bytes;
51223
+ }
51224
+ if (batch.length) await api.writeFiles.mutate({
51225
+ files: { writes: batch },
51226
+ id
51227
+ });
51228
+ };
51229
+ const listLocal = (root, dir = root) => fs.readdirSync(dir, { withFileTypes: true }).flatMap((entry) => {
51230
+ if (entry.name.startsWith(".")) return [];
51231
+ const full = path.join(dir, entry.name);
51232
+ if (entry.isDirectory()) return listLocal(root, full);
51233
+ return entry.isFile() ? [path.relative(root, full).split(path.sep).join("/")] : [];
51234
+ });
51235
+ const pushArtboardDir = async (api, id, dir, options) => {
51236
+ const remote = new Map((await api.listFiles.query({ id })).map((file) => [file.path, file.hash]));
51237
+ const result = {
51238
+ deleted: [],
51239
+ skipped: [],
51240
+ unchanged: [],
51241
+ uploaded: []
51242
+ };
51243
+ const local = /* @__PURE__ */ new Set();
51244
+ const changed = [];
51245
+ for (const relative of listLocal(dir).sort()) {
51246
+ const normalized = normalizeArtboardFilePath(relative);
51247
+ if (!normalized) {
51248
+ result.skipped.push(relative);
51249
+ continue;
51250
+ }
51251
+ local.add(normalized);
51252
+ const file = toLocalArtboardFile(normalized, fs.readFileSync(path.join(dir, relative)));
51253
+ if (remote.get(normalized) === file.hash) {
51254
+ result.unchanged.push(normalized);
51255
+ continue;
51256
+ }
51257
+ changed.push(file);
51258
+ result.uploaded.push(normalized);
51259
+ }
51260
+ await writeArtboardFiles(api, id, changed);
51261
+ if (options.prune) {
51262
+ const missing = [...remote.keys()].filter((file) => !local.has(file));
51263
+ if (missing.length) {
51264
+ await api.writeFiles.mutate({
51265
+ files: { deletes: missing },
51266
+ id
51267
+ });
51268
+ result.deleted = missing;
51269
+ }
51270
+ }
51271
+ return result;
51272
+ };
51273
+
51274
+ //#endregion
51275
+ //#region src/commands/artboardSkillContent.ts
51276
+ const artboardSkillDescription = "Lay out a feature or requirement on a LobeHub artboard so the user decides on the canvas. Use when the user wants to discuss, explore, shape or confirm a feature or requirement and this session runs inside a LobeHub project conversation (`LOBEHUB_TOPIC_ID` is set). In that case this skill takes the place of a generic brainstorming or requirements skill: the open decisions go on the artboard as choices, not into a run of questions in chat. Not for bug fixes, small or already specified changes, or questions about existing code.";
51277
+ const artboardSkillBody = `# Requirement artboard
51278
+
51279
+ An artboard is a canvas in the user's LobeHub project. You lay a requirement out on it: the screens, the flow between them, and the decisions you are unsure of as choices. The user picks on the canvas and submits; you carry on from their picks. You work on it through the \`lh\` CLI, which is already installed and signed in for this run.
51280
+
51281
+ ## 1. Check first
51282
+
51283
+ - \`LOBEHUB_TOPIC_ID\` is set: this session runs inside a LobeHub conversation.
51284
+ - \`lh artboard --help\` prints the artboard commands.
51285
+
51286
+ If either fails, or \`lh artboard create\` is refused, say so in one line and hold the discussion in chat the way you normally would. Do not install or upgrade \`lh\`.
51287
+
51288
+ ## 2. Read before you draw
51289
+
51290
+ Read the repository for the data and the screens the requirement touches, so the artboard starts from what exists. Change no code while the requirement is being discussed.
51291
+
51292
+ ## 3. Lay it out
51293
+
51294
+ Run \`lh man artboard\` for the exact flags and \`lh artboard ops\` for the shape of every op; both come from the installed CLI and are not repeated here. One requirement gets one artboard: \`lh artboard create\` makes it for this conversation's project, \`lh artboard list\` shows the ones that already exist.
51295
+
51296
+ **Screens.** A board shows a screen. Write each screen as a plain HTML page, a real screen of the product at the board's size with its own layout, colors, type and inline SVG, in a folder laid out like the artboard (for example \`pages/checkout/a.html\`, shared CSS in \`shared/base.css\`, screenshots in \`shots/\`, all referenced by relative paths). A board points at its page with source \`{"kind":"file","path":"pages/checkout/a.html"}\`; the file may not be written yet, and the board shows the page as soon as it is. Build the artboard in this order, so the user watches it fill in:
51297
+
51298
+ 1. Lay out the whole structure first: one \`lh artboard create --ops\` (or \`lh artboard update --ops\` on an artboard that exists) with the pages, groups, edges and every board, each board's source pointing at the path its page will have although that file is not written yet.
51299
+ 2. Then write the pages one board at a time with \`lh artboard files write <id> <path> --from <file>\` (or from stdin), each as soon as it is ready, so the boards appear one by one. Write the shared CSS and images a page uses before the page.
51300
+ 3. \`lh artboard push <id> <dir>\` re-syncs a whole folder later: it uploads only the files that changed, and with \`--prune\` deletes the artboard files that are no longer in the folder.
51301
+
51302
+ - a page cannot fetch or open network connections; https images, fonts, styles and scripts load;
51303
+ - to change a screen, write its file again: every board showing it updates and comments on it are marked outdated;
51304
+ - \`lh artboard files list <id>\`, \`lh artboard files read <id> <path>\` and \`lh artboard files rm <id> <path>\` list, print and remove files; a board whose file is removed stays and shows the page again once it is written;
51305
+ - a screenshot of the current product can be an image board: write it under \`shots/\` and point a board at it.
51306
+
51307
+ A board of type "decision" needs no source.
51308
+
51309
+ If no screen can be made (writing the files is refused or times out), tell the user in one line which step failed and hold the discussion in chat. Never stand a decision board or a text card in for a screen: a decision board marks where the journey branches and shows only a short title.
51310
+
51311
+ **Layout.**
51312
+
51313
+ - An artboard has pages; each page has its own coordinates. Use a second page when the choices would crowd the flow.
51314
+ - Group the boards: one journey group for the flow the user will accept, and separate groups for options and references.
51315
+ - In the journey group one board is one page state. Edges connect boards. The journey has exactly one starting screen, the only journey board no edge points to, and every other journey board is reached from it. No edge may point back to it: a way back to the start belongs in that screen's acceptance check. A journey that breaks this cannot be finalized. Label an edge, in at most four words, only when the two screens do not already show what the user does to get there.
51316
+ - Where the flow branches, add a decision board, give each edge leaving it a condition, and mark the fallback branch as the default.
51317
+ - Give every journey board an acceptance check: what the user must see on that page. A decision board takes none; one that carries a check is refused.
51318
+ - You place every board; the user cannot move them. Boards are 640×400 unless you set a size. Leave 80 between boards in a row and lay a journey out left to right.
51319
+ - A frame is drawn around each group (144 above its boards, 48 on the other sides). Leave 240 between the boards of two groups stacked vertically and 200 between groups side by side, measured from the lowest and rightmost board of a group. An update whose group frames overlap is refused.
51320
+
51321
+ **Choices.** Every decision you are not sure of becomes a round:
51322
+
51323
+ - add a round whose title is the question, then add each alternative as a board that carries that round's id and sits in an options group, and mark the one you would pick as recommended;
51324
+ - one options group holds the options of exactly one round;
51325
+ - the user submits every open round at once, so open only the rounds you want answered now.
51326
+
51327
+ **Comments and questions.** The user comments on boards, groups and pages. Answer them on the artboard, not only in chat:
51328
+
51329
+ - \`lh artboard comments <id>\` prints the threads waiting for you, each with its id and what it is on; the ones printed count as read;
51330
+ - \`lh artboard reply <commentId> <text>\` answers a thread, and \`lh artboard resolve <commentId>\` closes it once what it asks for is done;
51331
+ - to ask about one screen, group or page, use \`lh artboard ask <id> --board <boardId> <question>\` (or \`--group\`, \`--page\`) instead of asking in chat. The user answers in that thread, and the artboard cannot be finalized while your question is open: resolve it once you have the answer.
51332
+
51333
+ ## 4. Hand over
51334
+
51335
+ Reply with what is on the artboard and what is waiting for the user's choice. Do not ask the same questions again in chat. A question about something on the artboard goes there with \`lh artboard ask\`; ask in your reply only what concerns no screen.
51336
+
51337
+ ## 5. After the user submits
51338
+
51339
+ The picks and the user's new comments arrive as one message in this conversation. Then:
51340
+
51341
+ 1. \`lh artboard read <id>\` to see each round's chosen board; a round the user left unpicked takes your recommendation.
51342
+ 2. \`lh artboard comments <id>\` for the threads and their ids; the user's answers to your questions are there too.
51343
+ 3. Apply the picks and what the comments ask for in one \`lh artboard update\`.
51344
+ 4. Reply in each thread with what you changed, then resolve the threads that are done and the questions that are answered.
51345
+ 5. Open the next rounds if something is still undecided; otherwise say the requirement is settled and what was decided.
51346
+
51347
+ ## 6. After the user finalizes
51348
+
51349
+ Finalizing turns the journey into an acceptance. The message that arrives carries its link, and \`lh artboard read <id> --json\` gives its \`acceptanceId\`. Its flow is already published: one check per journey board, whose expected result is that board's acceptance check. Then:
51350
+
51351
+ 1. Build the journey in this repository.
51352
+ 2. Verify it with the acceptance skill (\`lh acceptance install\` adds it to \`.agents/skills\` when it is missing), on that acceptance and its published flow: \`lh acceptance flow plan <acceptanceId>\` opens a round, \`lh acceptance flow record\` records each check's verdict, \`lh acceptance run evidence upload\` attaches a screenshot of the page to it, and \`lh acceptance flow complete\` closes the round. Do not publish another flow or create another acceptance: the artboard shows only this one.
51353
+ 3. Reply with the acceptance link and which checks passed or failed. Each journey board on the artboard then shows its check's result and screenshot.
51354
+
51355
+ ## Editing rules
51356
+
51357
+ - \`lh artboard update\` needs the revision you last read. If it is refused as stale, read again and redo the change on the new revision.
51358
+ - Every op in one update applies, or none does.
51359
+ - Use only ids the CLI returned; never invent one. Inside one call, give an added item a ref so later ops can point at it.
51360
+ - After the artboard is finalized, the journey group's boards, edges and checks are locked; other groups can still change.
51361
+ `;
51362
+
51363
+ //#endregion
51364
+ //#region src/commands/artboardSkill.ts
51365
+ const ARTBOARD_SKILL_ID = "lobehub-artboard";
51366
+ const VERSION_LINE = /^\s+version:\s*["']?(\d+)\.(\d+)\.(\d+)/m;
51367
+ const renderSkill = (version) => [
51368
+ "---",
51369
+ `name: ${ARTBOARD_SKILL_ID}`,
51370
+ `description: ${JSON.stringify(artboardSkillDescription)}`,
51371
+ "metadata:",
51372
+ ` version: ${JSON.stringify(version)}`,
51373
+ "---",
51374
+ "",
51375
+ artboardSkillBody
51376
+ ].join("\n");
51377
+ const versionParts = (text) => {
51378
+ const match = /^(\d+)\.(\d+)\.(\d+)/.exec(text);
51379
+ return match ? match.slice(1).map(Number) : void 0;
51380
+ };
51381
+ const installedVersion = (skillFile) => {
51382
+ if (!existsSync(skillFile)) return void 0;
51383
+ const match = VERSION_LINE.exec(readFileSync(skillFile, "utf8"));
51384
+ return match ? match.slice(1, 4).join(".") : void 0;
51385
+ };
51386
+ const isNewer = (installed, current) => {
51387
+ const a = installed && versionParts(installed);
51388
+ const b = versionParts(current);
51389
+ if (!a || !b) return false;
51390
+ for (let index = 0; index < 3; index += 1) if (a[index] !== b[index]) return a[index] > b[index];
51391
+ return false;
51392
+ };
51393
+ const listFiles = (directory) => {
51394
+ if (!existsSync(directory)) return [];
51395
+ return readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
51396
+ const entryPath = path.join(directory, entry.name);
51397
+ return entry.isDirectory() ? listFiles(entryPath) : [entryPath];
51398
+ });
51399
+ };
51400
+ const printLinks = (links) => {
51401
+ const arrow = import_picocolors.default.dim(" ↳");
51402
+ for (const link of links) if (link.kind === "linked" || link.kind === "linked-single") console.log(`${arrow} linked ${link.link} → ${import_picocolors.default.dim(link.target)}`);
51403
+ else if (link.kind === "already") console.log(`${arrow} ${import_picocolors.default.dim(`${link.link} already linked`)}`);
51404
+ else if (link.kind === "skipped") console.log(`${arrow} ${import_picocolors.default.yellow(`skipped ${link.link}: ${link.reason}`)}`);
51405
+ else console.log(`${arrow} ${import_picocolors.default.dim("no harness dirs detected — agents that read .agents/skills pick it up automatically")}`);
51406
+ };
51407
+ const initAction = (options) => {
51408
+ const baseDir = options.dir ? path.resolve(options.dir) : process.cwd();
51409
+ const skillDir = path.join(baseDir, AGENTS_SKILLS_DIR, ARTBOARD_SKILL_ID);
51410
+ const skillFile = path.join(skillDir, "SKILL.md");
51411
+ if (lstatSync(skillDir, { throwIfNoEntry: false })?.isSymbolicLink()) throw new Error(`${skillDir} is a symbolic link; remove it or point --dir at the repository that owns the skill`);
51412
+ const installed = installedVersion(skillFile);
51413
+ if (isNewer(installed, cliVersion)) {
51414
+ const result = {
51415
+ dir: skillDir,
51416
+ installedVersion: installed,
51417
+ links: [],
51418
+ removed: [],
51419
+ skill: ARTBOARD_SKILL_ID,
51420
+ status: "newer-installed",
51421
+ version: cliVersion,
51422
+ written: []
51423
+ };
51424
+ if (options.json) return outputJson(result);
51425
+ console.log(`${import_picocolors.default.yellow("!")} ${ARTBOARD_SKILL_ID} v${installed} is already installed and this lh is v${cliVersion}; nothing changed`);
51426
+ return;
51427
+ }
51428
+ const removed = listFiles(skillDir).filter((file) => file !== skillFile).map((file) => {
51429
+ rmSync(file, { force: true });
51430
+ return path.relative(skillDir, file).split(path.sep).join("/");
51431
+ });
51432
+ mkdirSync(skillDir, { recursive: true });
51433
+ writeFileSync(skillFile, renderSkill(cliVersion), "utf8");
51434
+ const links = linkHarnessSkills(baseDir, ARTBOARD_SKILL_ID);
51435
+ const result = {
51436
+ dir: skillDir,
51437
+ installedVersion: installed,
51438
+ links,
51439
+ removed,
51440
+ skill: ARTBOARD_SKILL_ID,
51441
+ status: "installed",
51442
+ version: cliVersion,
51443
+ written: ["SKILL.md"]
51444
+ };
51445
+ if (options.json) return outputJson(result);
51446
+ console.log(`${import_picocolors.default.green("✓")} ${import_picocolors.default.bold(ARTBOARD_SKILL_ID)} ${import_picocolors.default.dim(`v${cliVersion}`)} skill → ${import_picocolors.default.dim(path.relative(process.cwd(), skillDir) || skillDir)}`);
51447
+ console.log(` written: SKILL.md${removed.length ? ` · removed: ${removed.join(", ")}` : ""}`);
51448
+ printLinks(links);
51449
+ console.log(import_picocolors.default.dim(" Commit these files so agents working in this repository load the skill."));
51450
+ };
51451
+ const registerArtboardSkillCommand = (artboard) => {
51452
+ artboard.command("skill").description("The agent skill that tells CLI agents when and how to use the artboard").command("init").description("Write the artboard skill into this repository (.agents/skills) or bring it up to date").option("--dir <path>", "Target working directory (default: current dir)").option("--json", "Print structured JSON").action(initAction);
51453
+ };
51454
+
51455
+ //#endregion
51456
+ //#region src/commands/artboard.ts
51457
+ init_src$2();
51458
+ const resultLine = (artboard) => formatArtboardResultLine({
51459
+ boardCount: artboard.content.boards.length,
51460
+ groupCount: artboard.content.groups.length,
51461
+ id: artboard.id,
51462
+ revision: artboard.revision
51463
+ });
51464
+ const parseOps = (value) => {
51465
+ if (value === void 0) return void 0;
51466
+ const text = value.startsWith("@") ? fs.readFileSync(value.slice(1), "utf8") : value;
51467
+ const ops = JSON.parse(text);
51468
+ if (!Array.isArray(ops)) throw new Error("--ops must be a JSON array of ops");
51469
+ return ops;
51470
+ };
51471
+ const parseFiles = (value) => {
51472
+ if (value === void 0) return void 0;
51473
+ const text = value.startsWith("@") ? fs.readFileSync(value.slice(1), "utf8") : value;
51474
+ const files = JSON.parse(text);
51475
+ if (!files || typeof files !== "object" || Array.isArray(files)) throw new Error("--files must be a JSON object of writes, edits and deletes");
51476
+ return files;
51477
+ };
51478
+ const FILES_HELP = "File changes applied before the ops: {\"writes\":[{\"path\",\"content\"}],\"edits\":[{\"path\",\"oldText\",\"newText\"}],\"deletes\":[path]} as JSON, or @file.json";
51479
+ const positiveInteger = (value) => {
51480
+ const result = Number(value);
51481
+ if (!Number.isSafeInteger(result) || result < 1) throw new Error("Expected a positive integer");
51482
+ return result;
51483
+ };
51484
+ const topicId = () => process.env.LOBEHUB_TOPIC_ID || void 0;
51485
+ const registerArtboardCommand = (program) => {
51486
+ const artboard = program.command("artboard").description("Lay out a requirement on a project artboard (same ops as the builtin-artboard tool)");
51487
+ artboard.command("create").description("Create the artboard for a task; without --task it uses the run's conversation project").requiredOption("--title <title>", "Board title").option("--description <text>", "One line shown on the board card").option("--task <task>", "Task id or identifier, such as PRJ-12").option("--files <json>", FILES_HELP).option("--ops <json>", "Initial ops (addGroup, addBoard, addEdge, addRound, addPage, …) as a JSON array, or @file.json; shapes: lh artboard ops").option("--json", "Print structured JSON").action(async (options) => {
51488
+ if (!options.task && !topicId()) throw new Error("Pass --task: this shell has no LOBEHUB_TOPIC_ID to find the project");
51489
+ const result = await (await getTrpcClient()).artboard.create.mutate({
51490
+ description: options.description,
51491
+ files: parseFiles(options.files),
51492
+ ops: parseOps(options.ops),
51493
+ taskId: options.task,
51494
+ title: options.title,
51495
+ topicId: topicId()
51496
+ });
51497
+ if (options.json) return outputJson(result);
51498
+ console.log(resultLine(result.artboard));
51499
+ });
51500
+ artboard.command("update <id>").description("Apply file changes and ops; everything applies or nothing does").requiredOption("--revision <n>", "Revision you last read", positiveInteger).option("--files <json>", FILES_HELP).option("--ops <json>", "Ops (add/update/remove Board, Group, Page; addRound, updateRound; addEdge, removeEdge; setCheck) as a JSON array, or @file.json; shapes: lh artboard ops").option("--json", "Print structured JSON").action(async (id, options) => {
51501
+ if (options.files === void 0 && options.ops === void 0) throw new Error("Pass --ops, --files or both");
51502
+ const result = await (await getTrpcClient()).artboard.update.mutate({
51503
+ files: parseFiles(options.files),
51504
+ id,
51505
+ ops: parseOps(options.ops),
51506
+ revision: options.revision
51507
+ });
51508
+ if (options.json) return outputJson(result);
51509
+ console.log(resultLine(result.artboard));
51510
+ });
51511
+ artboard.command("read <id>").description("Print the artboard and its revision").option("--json", "Print structured JSON").action(async (id, options) => {
51512
+ const result = await (await getTrpcClient()).artboard.read.query({ id });
51513
+ if (options.json) return outputJson(result);
51514
+ console.log(resultLine(result.artboard));
51515
+ console.log(JSON.stringify(result.artboard.content, null, 2));
51516
+ });
51517
+ artboard.command("push <id> <dir>").description("Upload the HTML pages, styles and images under <dir> as files of the artboard; unchanged files are skipped").option("--prune", "Also delete artboard files that are not in <dir>").option("--json", "Print structured JSON").action(async (id, dir, options) => {
51518
+ const result = await pushArtboardDir((await getTrpcClient()).artboard, id, dir, { prune: options.prune });
51519
+ if (options.json) return outputJson(result);
51520
+ console.log(`pushed ${result.uploaded.length} · unchanged ${result.unchanged.length} · deleted ${result.deleted.length}`);
51521
+ for (const skipped of result.skipped) console.log(`skipped ${skipped}: not a file a board can serve`);
51522
+ });
51523
+ const files = artboard.command("files").description("List, read, write and remove artboard files");
51524
+ files.command("list <id>").description("List the files of the artboard").option("--json", "Print structured JSON").action(async (id, options) => {
51525
+ const list = await (await getTrpcClient()).artboard.listFiles.query({ id });
51526
+ if (options.json) return outputJson(list);
51527
+ for (const file of list) console.log(`${file.path} ${file.size} B`);
51528
+ });
51529
+ files.command("read <id> <path>").description("Print one text file of the artboard").action(async (id, path) => {
51530
+ const file = await (await getTrpcClient()).artboard.readFile.query({
51531
+ id,
51532
+ path
51533
+ });
51534
+ if (file.content === void 0) throw new Error(`${file.path} is binary`);
51535
+ process.stdout.write(file.content);
51536
+ });
51537
+ files.command("write <id> <path>").description("Write one file of the artboard from stdin, or from a local file with --from").option("--from <file>", "Local file to upload instead of stdin").action(async (id, path, options) => {
51538
+ const normalized = normalizeArtboardFilePath(path);
51539
+ if (!normalized) throw new Error(`${path} is not a file a board can serve`);
51540
+ const bytes = options.from ? fs.readFileSync(options.from) : await buffer(process.stdin);
51541
+ await writeArtboardFiles((await getTrpcClient()).artboard, id, [toLocalArtboardFile(normalized, bytes)]);
51542
+ console.log(`wrote ${normalized} ${bytes.byteLength} B`);
51543
+ });
51544
+ files.command("rm <id> <paths...>").description("Delete files of the artboard; boards that show one stay and wait for it again").action(async (id, paths) => {
51545
+ await (await getTrpcClient()).artboard.writeFiles.mutate({
51546
+ files: { deletes: paths },
51547
+ id
51548
+ });
51549
+ for (const path of paths) console.log(`deleted ${path}`);
51550
+ });
51551
+ artboard.command("list").description("List the artboards in the run's project").option("--task <task>", "Find the project through this task instead").option("--json", "Print structured JSON").action(async (options) => {
51552
+ const boards = await (await getTrpcClient()).artboard.list.query({
51553
+ taskId: options.task,
51554
+ topicId: topicId()
51555
+ });
51556
+ if (options.json) return outputJson(boards);
51557
+ for (const board of boards) console.log(`${board.id} ${board.title} ${board.phase} revision ${board.revision}`);
51558
+ });
51559
+ registerArtboardCommentCommands(artboard);
51560
+ registerArtboardOpsCommand(artboard);
51561
+ registerArtboardSkillCommand(artboard);
51562
+ };
51563
+
50783
51564
  //#endregion
50784
51565
  //#region ../../packages/html-artifact/src/fileExtension.ts
50785
51566
  const getFileExtension = (filename) => {
@@ -56659,6 +57440,10 @@ const bindingSchema = object$1({
56659
57440
  workId: string().min(1)
56660
57441
  }).optional()
56661
57442
  }).optional(),
57443
+ pendingCanvasSave: object$1({
57444
+ fingerprint: string().regex(/^[\da-f]{64}$/),
57445
+ requestId: uuid()
57446
+ }).optional(),
56662
57447
  pendingCreateFingerprint: string().min(1).optional(),
56663
57448
  pendingCreateKey: string().min(1).optional(),
56664
57449
  pendingType: _enum(["canvas", "html"]).optional()
@@ -56670,7 +57455,7 @@ const bindingSchema = object$1({
56670
57455
  });
56671
57456
  const manifestSchema = object$1({
56672
57457
  artifacts: record(string(), bindingSchema),
56673
- version: literal(1)
57458
+ version: literal$1(1)
56674
57459
  }).passthrough();
56675
57460
  const emptyManifest = () => ({
56676
57461
  artifacts: {},
@@ -56871,6 +57656,55 @@ const publishCanvasArtifact = async (client, params) => {
56871
57656
  subdomainLabel: published.subdomainLabel
56872
57657
  };
56873
57658
  };
57659
+ const saveFingerprint = (html, title, createNew) => createHash("sha256").update(JSON.stringify([
57660
+ "save",
57661
+ html,
57662
+ title,
57663
+ createNew
57664
+ ])).digest("hex");
57665
+ const saveCanvasArtifact = async (client, params) => {
57666
+ const { binding, html, manifest, title } = params;
57667
+ if (binding.pendingCanvas) throw new Error("A Canvas publication is pending; retry lh artifact publish with the original input first");
57668
+ if (binding.pendingCreateKey && binding.pendingType !== "canvas") throw new Error("Complete the pending HTML publication before saving a Canvas");
57669
+ const context = await client.canvas.getPublishContext.query();
57670
+ const scope = JSON.stringify([
57671
+ resolveServerUrl(),
57672
+ context.userId,
57673
+ context.workspaceId
57674
+ ]);
57675
+ if (binding.scope && binding.scope !== scope) throw new Error("This artifact is bound to a different server, account or workspace");
57676
+ const createNew = !!params.new;
57677
+ const canvasId = createNew ? void 0 : binding.canvasId;
57678
+ const current = canvasId ? await client.canvas.getVersion.query({ canvasId }) : null;
57679
+ if (canvasId && !current) throw new Error("The bound Canvas is unavailable to this account; save it with --new");
57680
+ const fingerprint = saveFingerprint(html, title, createNew);
57681
+ const requestId = binding.pendingCanvasSave?.fingerprint === fingerprint ? binding.pendingCanvasSave.requestId : createIdempotencyKey();
57682
+ writeBinding(manifest, {
57683
+ ...binding,
57684
+ pendingCanvasSave: {
57685
+ fingerprint,
57686
+ requestId
57687
+ }
57688
+ });
57689
+ const saved = await client.canvas.save.mutate({
57690
+ canvasId,
57691
+ expectedVersion: current?.version ?? 0,
57692
+ html,
57693
+ requestId,
57694
+ title
57695
+ });
57696
+ const { pendingCanvasSave: _pending, ...settled } = binding;
57697
+ writeBinding(manifest, {
57698
+ ...settled,
57699
+ ...createNew && { deploymentId: void 0 },
57700
+ canvasId: saved.canvasId,
57701
+ scope,
57702
+ type: "canvas",
57703
+ version: saved.version,
57704
+ workId: saved.workId
57705
+ });
57706
+ return saved;
57707
+ };
56874
57708
 
56875
57709
  //#endregion
56876
57710
  //#region src/commands/artifact.ts
@@ -56924,6 +57758,42 @@ function registerArtifactCommand(program) {
56924
57758
  }
56925
57759
  console.log(output.content);
56926
57760
  });
57761
+ artifact.command("save <file>").description("Save a local Canvas page as a new Canvas version without publishing it to the web").option("--root <dir>", "Directory the page may reference assets from (defaults to the working directory)").option("--new", "Start a separate Canvas instead of a new version of the bound one").option("--title <title>", "Override the page title").option("--json [fields]", "Output JSON, optionally specify fields (comma-separated)").action(async (file, options) => {
57762
+ const entryPath = path.resolve(file);
57763
+ const rootDirectory = path.resolve(options.root ?? process.cwd());
57764
+ if (!entryPath.startsWith(`${rootDirectory}${path.sep}`) && entryPath !== rootDirectory) {
57765
+ fail$4(`${file} is outside ${rootDirectory}. Pass --root to widen the saved directory.`);
57766
+ return;
57767
+ }
57768
+ const entry = await readLocalHtmlAsset(entryPath);
57769
+ if (!entry.ok || entry.text === void 0) {
57770
+ fail$4(`Cannot read ${file}`);
57771
+ return;
57772
+ }
57773
+ const manifest = resolveManifest(entryPath, rootDirectory);
57774
+ const binding = readBinding(manifest);
57775
+ if (!options.new && binding.deploymentId && (binding.type ?? "html") !== "canvas") {
57776
+ fail$4("This file is bound to an HTML artifact; pass --new to save it as a Canvas.");
57777
+ return;
57778
+ }
57779
+ try {
57780
+ const saved = await saveCanvasArtifact(await getTrpcClient(), {
57781
+ binding,
57782
+ html: entry.text,
57783
+ manifest,
57784
+ new: options.new,
57785
+ title: options.title || extractHtmlTitle(entry.text) || path.basename(entryPath, path.extname(entryPath))
57786
+ });
57787
+ if (options.json !== void 0) outputJson(saved, typeof options.json === "string" ? options.json : void 0);
57788
+ else console.log(`${import_picocolors.default.green("✓")} Saved Canvas ${saved.canvasId} (version ${saved.version})`);
57789
+ } catch (error) {
57790
+ if (options.json !== void 0) outputJson({
57791
+ error: formatError(error),
57792
+ success: false
57793
+ });
57794
+ fail$4(formatError(error));
57795
+ }
57796
+ });
56927
57797
  artifact.command("publish <file>").description("Publish a local HTML file, bundling the assets it references").option("--root <dir>", "Directory the page may reference assets from (defaults to the working directory)").option("--deployment <id>", "Publish to this deployment for this run only").option("--new", "Create a separate deployment instead of updating the bound one").option("--type <type>", "Artifact content type: html or canvas (defaults to the bound type, then html)").option("--title <title>", "Override the page title").option("--slug <slug>", "Requested public slug").option("--json [fields]", "Output JSON, optionally specify fields (comma-separated)").action(async (file, options) => {
56928
57798
  const entryPath = path.resolve(file);
56929
57799
  const rootDirectory = path.resolve(options.root ?? process.cwd());
@@ -60771,7 +61641,7 @@ const LOBEHUB_CLI_GUIDE_CONTEXT = "lobehub-cli-guide";
60771
61641
  * agent keeps in context, so it names the LobeHub-shaped requests and, just as
60772
61642
  * deliberately, says what is not one.
60773
61643
  */
60774
- const lobeHubCliSkillDescription = "Reach the user's LobeHub — the app this conversation runs in — through the preinstalled `lh` CLI. Use when the request concerns LobeHub itself: its documents, knowledge bases, files, memory, earlier conversations (topic ids start with `tpc_`, or a `<refer_topic>` tag), agents and your own agent configuration, tasks, projects, widgets, bots, models, providers, plugins or skills, or generating images, video or speech there. Not needed for ordinary work on local files or other tools.";
61644
+ const lobeHubCliSkillDescription = "Reach the user's LobeHub — the app this conversation runs in — through the preinstalled `lh` CLI. Use when the request concerns LobeHub itself: its documents, knowledge bases, files, memory, earlier conversations (topic ids start with `tpc_`, or a `<refer_topic>` tag), agents and your own agent configuration, tasks, projects, artboards, widgets, bots, models, providers, plugins or skills, or generating images, video or speech there. Not needed for ordinary work on local files or other tools.";
60775
61645
  const lobeHubCliGuideBody = [
60776
61646
  "You are running inside a LobeHub conversation, on a machine where the `lh` CLI is already installed and the run normally carries the user's credentials in its environment. Never install, upgrade or replace `lh` globally — that binary may be the one running `lh connect`, which is executing you — and never run `lh login`.",
60777
61647
  "",
@@ -60781,7 +61651,7 @@ const lobeHubCliGuideBody = [
60781
61651
  "- **Talking to another conversation:** `lh topic send <tpc_id> -c \"…\"` delivers a message to that conversation and has its agent act on it (queued behind its current turn if it is busy). To hand work to a fresh conversation instead, `lh topic send --new -c \"…\"` opens one for you (or `--agent-id` another agent), optionally on a given machine with `--device <id|local>` and named with `--title`; it is linked to this conversation as its parent (`--parent-topic-id <tpc_id>` names another, `--detach` links none), and `lh topic list --opened-by-me` lists the ones you opened; `lh topic stop <tpc_id>` stops a topic's running turn and `lh topic archive <tpc_id>` archives it; `lh message send -c \"…\"` is the same thing spelled message-first: without `--topic-id` it opens a new conversation, with `--topic-id <tpc_id>` it sends to that one. Prefer these over `lh agent run` for handing off work. `lh message create` only writes a row — nobody sees or answers it. A message another agent sent you starts with an `<agent_sender>` header; answer it with `lh message reply <message_id> -c \"…\"`, which wakes the sender's conversation. Your ordinary response is not delivered to that agent.",
60782
61652
  "- **If `lh` is too old** — `lh man` lacks a command you expect, or `lh` reports an unknown command or option — the shell may have found a stale global install first. When `LOBEHUB_CLI` is set it is the path of the CLI this app ships — run that path instead of `lh` for the rest of the session. Otherwise, or if that one is too old as well, run the latest CLI once without installing it: `pnpm --package @lobehub/cli@latest dlx lh …` (or `npx -y -p @lobehub/cli@latest lh …`). It reads the same environment and saved login as `lh`. If the user asks you to run `lh` this way, do so.",
60783
61653
  "- **Look commands up, do not guess them.** `lh man` lists every command, and `lh man <command>` (e.g. `lh man doc create`) prints the manual for the CLI actually installed here, including exactly which flags that command takes. Many commands offer `--json` for structured output, but not all of them — the manual is what says so, and an invented flag just fails the call.",
60784
- "- **What it reaches:** `lh kb` knowledge bases · `lh doc` documents · `lh file` files · `lh artifact` artifacts · `lh topic` / `lh message` past conversations · `lh agent` agents · `lh task` / `lh project` work · `lh widget` / `lh dashboard` monitoring widgets and dashboards · `lh search` local resources and the web · `lh recall` past messages, topics, goals and pages in a time window · `lh gen` text/image/video/TTS/ASR generation · `lh memory` user memory · `lh notify` notifications to the user · `lh model` / `lh provider` / `lh legacy-plugin` / `lh skill` platform configuration · `lh bot` chat-platform bots.",
61654
+ "- **What it reaches:** `lh kb` knowledge bases · `lh doc` documents · `lh file` files · `lh artifact` artifacts · `lh topic` / `lh message` past conversations · `lh agent` agents · `lh task` / `lh project` work · `lh artboard` the requirement artboard of a project (boards, flows and choices the user answers on the canvas) · `lh widget` / `lh dashboard` monitoring widgets and dashboards · `lh search` local resources and the web · `lh recall` past messages, topics, goals and pages in a time window · `lh gen` text/image/video/TTS/ASR generation · `lh memory` user memory · `lh notify` notifications to the user · `lh model` / `lh provider` / `lh legacy-plugin` / `lh skill` platform configuration · `lh bot` chat-platform bots.",
60785
61655
  "- **Widgets run code with the user's credentials.** Before `lh widget dry-run` of a draft that declares connector credentials (`manifest.env`) or network hosts (`manifest.network.allow`), show the user that version id, what the script does and which credentials and hosts it uses, and wait for their explicit approval of that exact version before passing `--version <id> --yes`. Never publish (`lh widget publish`) without the user's confirmation.",
60786
61656
  "- **If a command fails with an authentication or permission error**, tell the user what you were trying to do — do not work around it.",
60787
61657
  "- **Leave these alone:** `lh hetero` and `lh connect` run the infrastructure that is executing you. And never change the persistent workspace scope with `lh workspace use` — it silently rewrites the target of every later command on this machine."
@@ -63242,7 +64112,7 @@ init_zod$1();
63242
64112
  const questionSchema = object$1({
63243
64113
  header: string().max(200),
63244
64114
  id: string().min(1),
63245
- isSecret: literal(false),
64115
+ isSecret: literal$1(false),
63246
64116
  options: array(object$1({
63247
64117
  description: string().max(1e3),
63248
64118
  label: string().min(1).max(200)
@@ -63290,13 +64160,13 @@ const codexUserInputResponse = (request, answer) => {
63290
64160
  init_zod$1();
63291
64161
  const nonBlank = string().refine((value) => value.trim().length > 0);
63292
64162
  const notificationSchema = object$1({ item: object$1({
63293
- delivery: literal("async"),
64163
+ delivery: literal$1("async"),
63294
64164
  id: nonBlank,
63295
64165
  questions: array(object$1({
63296
64166
  options: array(nonBlank).nullish(),
63297
64167
  title: nonBlank
63298
64168
  })).min(1),
63299
- type: literal("agentMessage")
64169
+ type: literal$1("agentMessage")
63300
64170
  }) });
63301
64171
  const readCodexAsyncQuestion = (params) => {
63302
64172
  const item = notificationSchema.safeParse(params).data?.item;
@@ -98646,14 +99516,14 @@ var require_stream$1 = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
98646
99516
  //#endregion
98647
99517
  //#region node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js
98648
99518
  var require_safe_buffer$1 = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
98649
- var buffer$1 = __require("buffer");
98650
- var Buffer = buffer$1.Buffer;
99519
+ var buffer$2 = __require("buffer");
99520
+ var Buffer = buffer$2.Buffer;
98651
99521
  function copyProps(src, dst) {
98652
99522
  for (var key in src) dst[key] = src[key];
98653
99523
  }
98654
- if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer$1;
99524
+ if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer$2;
98655
99525
  else {
98656
- copyProps(buffer$1, exports);
99526
+ copyProps(buffer$2, exports);
98657
99527
  exports.Buffer = SafeBuffer;
98658
99528
  }
98659
99529
  function SafeBuffer(arg, encodingOrOffset, length) {
@@ -98678,7 +99548,7 @@ var require_safe_buffer$1 = /* @__PURE__ */ __commonJSMin$2(((exports, module) =
98678
99548
  };
98679
99549
  SafeBuffer.allocUnsafeSlow = function(size) {
98680
99550
  if (typeof size !== "number") throw new TypeError("Argument must be a number");
98681
- return buffer$1.SlowBuffer(size);
99551
+ return buffer$2.SlowBuffer(size);
98682
99552
  };
98683
99553
  }));
98684
99554
 
@@ -260886,14 +261756,14 @@ var require__stream_duplex = /* @__PURE__ */ __commonJSMin$2(((exports, module)
260886
261756
  //#region node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js
260887
261757
  var require_safe_buffer = /* @__PURE__ */ __commonJSMin$2(((exports, module) => {
260888
261758
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
260889
- var buffer = __require("buffer");
260890
- var Buffer = buffer.Buffer;
261759
+ var buffer$1 = __require("buffer");
261760
+ var Buffer = buffer$1.Buffer;
260891
261761
  function copyProps(src, dst) {
260892
261762
  for (var key in src) dst[key] = src[key];
260893
261763
  }
260894
- if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer;
261764
+ if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer$1;
260895
261765
  else {
260896
- copyProps(buffer, exports);
261766
+ copyProps(buffer$1, exports);
260897
261767
  exports.Buffer = SafeBuffer;
260898
261768
  }
260899
261769
  function SafeBuffer(arg, encodingOrOffset, length) {
@@ -260919,7 +261789,7 @@ var require_safe_buffer = /* @__PURE__ */ __commonJSMin$2(((exports, module) =>
260919
261789
  };
260920
261790
  SafeBuffer.allocUnsafeSlow = function(size) {
260921
261791
  if (typeof size !== "number") throw new TypeError("Argument must be a number");
260922
- return buffer.SlowBuffer(size);
261792
+ return buffer$1.SlowBuffer(size);
260923
261793
  };
260924
261794
  }));
260925
261795
 
@@ -308759,21 +309629,21 @@ var init_schemas_DscsoNZN = __esmMin((() => {
308759
309629
  ResultSchema = looseObject({ _meta: ResultMetaObjectSchema.optional() });
308760
309630
  RequestIdSchema = union([string(), number$1().int()]);
308761
309631
  JSONRPCRequestSchema = object$1({
308762
- jsonrpc: literal("2.0"),
309632
+ jsonrpc: literal$1("2.0"),
308763
309633
  id: RequestIdSchema,
308764
309634
  ...RequestSchema.shape
308765
309635
  }).strict();
308766
309636
  JSONRPCNotificationSchema = object$1({
308767
- jsonrpc: literal("2.0"),
309637
+ jsonrpc: literal$1("2.0"),
308768
309638
  ...NotificationSchema.shape
308769
309639
  }).strict();
308770
309640
  JSONRPCResultResponseSchema = object$1({
308771
- jsonrpc: literal("2.0"),
309641
+ jsonrpc: literal$1("2.0"),
308772
309642
  id: RequestIdSchema,
308773
309643
  result: ResultSchema
308774
309644
  }).strict();
308775
309645
  JSONRPCErrorResponseSchema = object$1({
308776
- jsonrpc: literal("2.0"),
309646
+ jsonrpc: literal$1("2.0"),
308777
309647
  id: RequestIdSchema.optional(),
308778
309648
  error: object$1({
308779
309649
  code: number$1().int(),
@@ -308794,7 +309664,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
308794
309664
  reason: string().optional()
308795
309665
  });
308796
309666
  CancelledNotificationSchema = NotificationSchema.extend({
308797
- method: literal("notifications/cancelled"),
309667
+ method: literal$1("notifications/cancelled"),
308798
309668
  params: CancelledNotificationParamsSchema
308799
309669
  });
308800
309670
  IconSchema = object$1({
@@ -308853,7 +309723,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
308853
309723
  clientInfo: ImplementationSchema
308854
309724
  });
308855
309725
  InitializeRequestSchema = RequestSchema.extend({
308856
- method: literal("initialize"),
309726
+ method: literal$1("initialize"),
308857
309727
  params: InitializeRequestParamsSchema
308858
309728
  });
308859
309729
  ServerCapabilitiesSchema = object$1({
@@ -308876,11 +309746,11 @@ var init_schemas_DscsoNZN = __esmMin((() => {
308876
309746
  instructions: string().optional()
308877
309747
  });
308878
309748
  InitializedNotificationSchema = NotificationSchema.extend({
308879
- method: literal("notifications/initialized"),
309749
+ method: literal$1("notifications/initialized"),
308880
309750
  params: NotificationsParamsSchema.optional()
308881
309751
  });
308882
309752
  DiscoverRequestSchema = RequestSchema.extend({
308883
- method: literal("server/discover"),
309753
+ method: literal$1("server/discover"),
308884
309754
  params: BaseRequestParamsSchema.optional()
308885
309755
  });
308886
309756
  DiscoverResultSchema = ResultSchema.extend({
@@ -308889,7 +309759,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
308889
309759
  instructions: string().optional()
308890
309760
  });
308891
309761
  PingRequestSchema = RequestSchema.extend({
308892
- method: literal("ping"),
309762
+ method: literal$1("ping"),
308893
309763
  params: BaseRequestParamsSchema.optional()
308894
309764
  });
308895
309765
  ProgressSchema = object$1({
@@ -308903,7 +309773,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
308903
309773
  progressToken: ProgressTokenSchema
308904
309774
  });
308905
309775
  ProgressNotificationSchema = NotificationSchema.extend({
308906
- method: literal("notifications/progress"),
309776
+ method: literal$1("notifications/progress"),
308907
309777
  params: ProgressNotificationParamsSchema
308908
309778
  });
308909
309779
  PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({ cursor: CursorSchema.optional() });
@@ -308949,29 +309819,29 @@ var init_schemas_DscsoNZN = __esmMin((() => {
308949
309819
  annotations: AnnotationsSchema.optional(),
308950
309820
  _meta: optional(looseObject({}))
308951
309821
  });
308952
- ListResourcesRequestSchema = PaginatedRequestSchema.extend({ method: literal("resources/list") });
309822
+ ListResourcesRequestSchema = PaginatedRequestSchema.extend({ method: literal$1("resources/list") });
308953
309823
  ListResourcesResultSchema = PaginatedResultSchema.extend({ resources: array(ResourceSchema) });
308954
- ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({ method: literal("resources/templates/list") });
309824
+ ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({ method: literal$1("resources/templates/list") });
308955
309825
  ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({ resourceTemplates: array(ResourceTemplateSchema) });
308956
309826
  ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({ uri: string() });
308957
309827
  ReadResourceRequestParamsSchema = ResourceRequestParamsSchema;
308958
309828
  ReadResourceRequestSchema = RequestSchema.extend({
308959
- method: literal("resources/read"),
309829
+ method: literal$1("resources/read"),
308960
309830
  params: ReadResourceRequestParamsSchema
308961
309831
  });
308962
309832
  ReadResourceResultSchema = ResultSchema.extend({ contents: array(union([TextResourceContentsSchema, BlobResourceContentsSchema])) });
308963
309833
  ResourceListChangedNotificationSchema = NotificationSchema.extend({
308964
- method: literal("notifications/resources/list_changed"),
309834
+ method: literal$1("notifications/resources/list_changed"),
308965
309835
  params: NotificationsParamsSchema.optional()
308966
309836
  });
308967
309837
  SubscribeRequestParamsSchema = ResourceRequestParamsSchema;
308968
309838
  SubscribeRequestSchema = RequestSchema.extend({
308969
- method: literal("resources/subscribe"),
309839
+ method: literal$1("resources/subscribe"),
308970
309840
  params: SubscribeRequestParamsSchema
308971
309841
  });
308972
309842
  UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema;
308973
309843
  UnsubscribeRequestSchema = RequestSchema.extend({
308974
- method: literal("resources/unsubscribe"),
309844
+ method: literal$1("resources/unsubscribe"),
308975
309845
  params: UnsubscribeRequestParamsSchema
308976
309846
  });
308977
309847
  SubscriptionFilterSchema = object$1({
@@ -308982,19 +309852,19 @@ var init_schemas_DscsoNZN = __esmMin((() => {
308982
309852
  });
308983
309853
  SubscriptionsListenRequestParamsSchema = BaseRequestParamsSchema.extend({ notifications: SubscriptionFilterSchema });
308984
309854
  SubscriptionsListenRequestSchema = RequestSchema.extend({
308985
- method: literal("subscriptions/listen"),
309855
+ method: literal$1("subscriptions/listen"),
308986
309856
  params: SubscriptionsListenRequestParamsSchema
308987
309857
  });
308988
309858
  SubscriptionsAcknowledgedNotificationParamsSchema = NotificationsParamsSchema.extend({ notifications: SubscriptionFilterSchema });
308989
309859
  SubscriptionsAcknowledgedNotificationSchema = NotificationSchema.extend({
308990
- method: literal("notifications/subscriptions/acknowledged"),
309860
+ method: literal$1("notifications/subscriptions/acknowledged"),
308991
309861
  params: SubscriptionsAcknowledgedNotificationParamsSchema
308992
309862
  });
308993
309863
  SubscriptionsListenResultMetaSchema = ResultMetaObjectSchema.extend({ [SUBSCRIPTION_ID_META_KEY]: RequestIdSchema });
308994
309864
  SubscriptionsListenResultSchema = ResultSchema.extend({ _meta: SubscriptionsListenResultMetaSchema });
308995
309865
  ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({ uri: string() });
308996
309866
  ResourceUpdatedNotificationSchema = NotificationSchema.extend({
308997
- method: literal("notifications/resources/updated"),
309867
+ method: literal$1("notifications/resources/updated"),
308998
309868
  params: ResourceUpdatedNotificationParamsSchema
308999
309869
  });
309000
309870
  PromptArgumentSchema = object$1({
@@ -309009,50 +309879,50 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309009
309879
  arguments: optional(array(PromptArgumentSchema)),
309010
309880
  _meta: optional(looseObject({}))
309011
309881
  });
309012
- ListPromptsRequestSchema = PaginatedRequestSchema.extend({ method: literal("prompts/list") });
309882
+ ListPromptsRequestSchema = PaginatedRequestSchema.extend({ method: literal$1("prompts/list") });
309013
309883
  ListPromptsResultSchema = PaginatedResultSchema.extend({ prompts: array(PromptSchema) });
309014
309884
  GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
309015
309885
  name: string(),
309016
309886
  arguments: record(string(), string()).optional()
309017
309887
  });
309018
309888
  GetPromptRequestSchema = RequestSchema.extend({
309019
- method: literal("prompts/get"),
309889
+ method: literal$1("prompts/get"),
309020
309890
  params: GetPromptRequestParamsSchema
309021
309891
  });
309022
309892
  TextContentSchema = object$1({
309023
- type: literal("text"),
309893
+ type: literal$1("text"),
309024
309894
  text: string(),
309025
309895
  annotations: AnnotationsSchema.optional(),
309026
309896
  _meta: record(string(), unknown()).optional()
309027
309897
  });
309028
309898
  ImageContentSchema = object$1({
309029
- type: literal("image"),
309899
+ type: literal$1("image"),
309030
309900
  data: Base64Schema,
309031
309901
  mimeType: string(),
309032
309902
  annotations: AnnotationsSchema.optional(),
309033
309903
  _meta: record(string(), unknown()).optional()
309034
309904
  });
309035
309905
  AudioContentSchema = object$1({
309036
- type: literal("audio"),
309906
+ type: literal$1("audio"),
309037
309907
  data: Base64Schema,
309038
309908
  mimeType: string(),
309039
309909
  annotations: AnnotationsSchema.optional(),
309040
309910
  _meta: record(string(), unknown()).optional()
309041
309911
  });
309042
309912
  ToolUseContentSchema = object$1({
309043
- type: literal("tool_use"),
309913
+ type: literal$1("tool_use"),
309044
309914
  name: string(),
309045
309915
  id: string(),
309046
309916
  input: record(string(), unknown()),
309047
309917
  _meta: record(string(), unknown()).optional()
309048
309918
  });
309049
309919
  EmbeddedResourceSchema = object$1({
309050
- type: literal("resource"),
309920
+ type: literal$1("resource"),
309051
309921
  resource: union([TextResourceContentsSchema, BlobResourceContentsSchema]),
309052
309922
  annotations: AnnotationsSchema.optional(),
309053
309923
  _meta: record(string(), unknown()).optional()
309054
309924
  });
309055
- ResourceLinkSchema = ResourceSchema.extend({ type: literal("resource_link") });
309925
+ ResourceLinkSchema = ResourceSchema.extend({ type: literal$1("resource_link") });
309056
309926
  ContentBlockSchema = union([
309057
309927
  TextContentSchema,
309058
309928
  ImageContentSchema,
@@ -309069,7 +309939,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309069
309939
  messages: array(PromptMessageSchema)
309070
309940
  });
309071
309941
  PromptListChangedNotificationSchema = NotificationSchema.extend({
309072
- method: literal("notifications/prompts/list_changed"),
309942
+ method: literal$1("notifications/prompts/list_changed"),
309073
309943
  params: NotificationsParamsSchema.optional()
309074
309944
  });
309075
309945
  ToolAnnotationsSchema = object$1({
@@ -309089,7 +309959,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309089
309959
  ...IconsSchema.shape,
309090
309960
  description: string().optional(),
309091
309961
  inputSchema: object$1({
309092
- type: literal("object"),
309962
+ type: literal$1("object"),
309093
309963
  properties: record(string(), JSONValueSchema).optional(),
309094
309964
  required: array(string()).optional()
309095
309965
  }).catchall(unknown()),
@@ -309098,7 +309968,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309098
309968
  execution: ToolExecutionSchema.optional(),
309099
309969
  _meta: record(string(), unknown()).optional()
309100
309970
  });
309101
- ListToolsRequestSchema = PaginatedRequestSchema.extend({ method: literal("tools/list") });
309971
+ ListToolsRequestSchema = PaginatedRequestSchema.extend({ method: literal$1("tools/list") });
309102
309972
  ListToolsResultSchema = PaginatedResultSchema.extend({ tools: array(ToolSchema) });
309103
309973
  CallToolResultSchema = ResultSchema.extend({
309104
309974
  content: array(ContentBlockSchema).default([]),
@@ -309111,11 +309981,11 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309111
309981
  arguments: record(string(), unknown()).optional()
309112
309982
  });
309113
309983
  CallToolRequestSchema = RequestSchema.extend({
309114
- method: literal("tools/call"),
309984
+ method: literal$1("tools/call"),
309115
309985
  params: CallToolRequestParamsSchema
309116
309986
  });
309117
309987
  ToolListChangedNotificationSchema = NotificationSchema.extend({
309118
- method: literal("notifications/tools/list_changed"),
309988
+ method: literal$1("notifications/tools/list_changed"),
309119
309989
  params: NotificationsParamsSchema.optional()
309120
309990
  });
309121
309991
  ListChangedOptionsBaseSchema = object$1({
@@ -309134,7 +310004,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309134
310004
  ]);
309135
310005
  SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({ level: LoggingLevelSchema });
309136
310006
  SetLevelRequestSchema = RequestSchema.extend({
309137
- method: literal("logging/setLevel"),
310007
+ method: literal$1("logging/setLevel"),
309138
310008
  params: SetLevelRequestParamsSchema
309139
310009
  });
309140
310010
  LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
@@ -309143,7 +310013,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309143
310013
  data: unknown()
309144
310014
  });
309145
310015
  LoggingMessageNotificationSchema = NotificationSchema.extend({
309146
- method: literal("notifications/message"),
310016
+ method: literal$1("notifications/message"),
309147
310017
  params: LoggingMessageNotificationParamsSchema
309148
310018
  });
309149
310019
  ModelHintSchema = object$1({ name: string().optional() });
@@ -309159,7 +310029,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309159
310029
  "none"
309160
310030
  ]).optional() });
309161
310031
  ToolResultContentSchema = object$1({
309162
- type: literal("tool_result"),
310032
+ type: literal$1("tool_result"),
309163
310033
  toolUseId: string().describe("The unique identifier for the corresponding tool call."),
309164
310034
  content: array(ContentBlockSchema),
309165
310035
  structuredContent: unknown().optional(),
@@ -309200,7 +310070,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309200
310070
  toolChoice: ToolChoiceSchema.optional()
309201
310071
  });
309202
310072
  CreateMessageRequestSchema = RequestSchema.extend({
309203
- method: literal("sampling/createMessage"),
310073
+ method: literal$1("sampling/createMessage"),
309204
310074
  params: CreateMessageRequestParamsSchema
309205
310075
  });
309206
310076
  CreateMessageResultSchema = ResultSchema.extend({
@@ -309225,13 +310095,13 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309225
310095
  content: union([SamplingMessageContentBlockSchema, array(SamplingMessageContentBlockSchema)])
309226
310096
  });
309227
310097
  BooleanSchemaSchema = object$1({
309228
- type: literal("boolean"),
310098
+ type: literal$1("boolean"),
309229
310099
  title: string().optional(),
309230
310100
  description: string().optional(),
309231
310101
  default: boolean().optional()
309232
310102
  });
309233
310103
  StringSchemaSchema = object$1({
309234
- type: literal("string"),
310104
+ type: literal$1("string"),
309235
310105
  title: string().optional(),
309236
310106
  description: string().optional(),
309237
310107
  minLength: number$1().optional(),
@@ -309253,14 +310123,14 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309253
310123
  default: number$1().optional()
309254
310124
  });
309255
310125
  UntitledSingleSelectEnumSchemaSchema = object$1({
309256
- type: literal("string"),
310126
+ type: literal$1("string"),
309257
310127
  title: string().optional(),
309258
310128
  description: string().optional(),
309259
310129
  enum: array(string()),
309260
310130
  default: string().optional()
309261
310131
  });
309262
310132
  TitledSingleSelectEnumSchemaSchema = object$1({
309263
- type: literal("string"),
310133
+ type: literal$1("string"),
309264
310134
  title: string().optional(),
309265
310135
  description: string().optional(),
309266
310136
  oneOf: array(object$1({
@@ -309270,7 +310140,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309270
310140
  default: string().optional()
309271
310141
  });
309272
310142
  LegacyTitledEnumSchemaSchema = object$1({
309273
- type: literal("string"),
310143
+ type: literal$1("string"),
309274
310144
  title: string().optional(),
309275
310145
  description: string().optional(),
309276
310146
  enum: array(string()),
@@ -309279,19 +310149,19 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309279
310149
  });
309280
310150
  SingleSelectEnumSchemaSchema = union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]);
309281
310151
  UntitledMultiSelectEnumSchemaSchema = object$1({
309282
- type: literal("array"),
310152
+ type: literal$1("array"),
309283
310153
  title: string().optional(),
309284
310154
  description: string().optional(),
309285
310155
  minItems: number$1().optional(),
309286
310156
  maxItems: number$1().optional(),
309287
310157
  items: object$1({
309288
- type: literal("string"),
310158
+ type: literal$1("string"),
309289
310159
  enum: array(string())
309290
310160
  }),
309291
310161
  default: array(string()).optional()
309292
310162
  });
309293
310163
  TitledMultiSelectEnumSchemaSchema = object$1({
309294
- type: literal("array"),
310164
+ type: literal$1("array"),
309295
310165
  title: string().optional(),
309296
310166
  description: string().optional(),
309297
310167
  minItems: number$1().optional(),
@@ -309315,28 +310185,28 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309315
310185
  NumberSchemaSchema
309316
310186
  ]);
309317
310187
  ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
309318
- mode: literal("form").optional(),
310188
+ mode: literal$1("form").optional(),
309319
310189
  message: string(),
309320
310190
  requestedSchema: object$1({
309321
- type: literal("object"),
310191
+ type: literal$1("object"),
309322
310192
  properties: record(string(), PrimitiveSchemaDefinitionSchema),
309323
310193
  required: array(string()).optional()
309324
310194
  }).catchall(unknown())
309325
310195
  });
309326
310196
  ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
309327
- mode: literal("url"),
310197
+ mode: literal$1("url"),
309328
310198
  message: string(),
309329
310199
  elicitationId: string(),
309330
310200
  url: string().url()
309331
310201
  });
309332
310202
  ElicitRequestParamsSchema = union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]);
309333
310203
  ElicitRequestSchema = RequestSchema.extend({
309334
- method: literal("elicitation/create"),
310204
+ method: literal$1("elicitation/create"),
309335
310205
  params: ElicitRequestParamsSchema
309336
310206
  });
309337
310207
  ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({ elicitationId: string() });
309338
310208
  ElicitationCompleteNotificationSchema = NotificationSchema.extend({
309339
- method: literal("notifications/elicitation/complete"),
310209
+ method: literal$1("notifications/elicitation/complete"),
309340
310210
  params: ElicitationCompleteNotificationParamsSchema
309341
310211
  });
309342
310212
  ElicitResultSchema = ResultSchema.extend({
@@ -309353,11 +310223,11 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309353
310223
  ])).optional())
309354
310224
  });
309355
310225
  ResourceTemplateReferenceSchema = object$1({
309356
- type: literal("ref/resource"),
310226
+ type: literal$1("ref/resource"),
309357
310227
  uri: string()
309358
310228
  });
309359
310229
  PromptReferenceSchema = object$1({
309360
- type: literal("ref/prompt"),
310230
+ type: literal$1("ref/prompt"),
309361
310231
  name: string()
309362
310232
  });
309363
310233
  CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
@@ -309369,7 +310239,7 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309369
310239
  context: object$1({ arguments: record(string(), string()).optional() }).optional()
309370
310240
  });
309371
310241
  CompleteRequestSchema = RequestSchema.extend({
309372
- method: literal("completion/complete"),
310242
+ method: literal$1("completion/complete"),
309373
310243
  params: CompleteRequestParamsSchema
309374
310244
  });
309375
310245
  CompleteResultSchema = ResultSchema.extend({ completion: looseObject({
@@ -309383,12 +310253,12 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309383
310253
  _meta: record(string(), unknown()).optional()
309384
310254
  });
309385
310255
  ListRootsRequestSchema = RequestSchema.extend({
309386
- method: literal("roots/list"),
310256
+ method: literal$1("roots/list"),
309387
310257
  params: BaseRequestParamsSchema.optional()
309388
310258
  });
309389
310259
  ListRootsResultSchema = ResultSchema.extend({ roots: array(RootSchema) });
309390
310260
  RootsListChangedNotificationSchema = NotificationSchema.extend({
309391
- method: literal("notifications/roots/list_changed"),
310261
+ method: literal$1("notifications/roots/list_changed"),
309392
310262
  params: NotificationsParamsSchema.optional()
309393
310263
  });
309394
310264
  TaskCreationParamsSchema = looseObject({
@@ -309414,23 +310284,23 @@ var init_schemas_DscsoNZN = __esmMin((() => {
309414
310284
  CreateTaskResultSchema = ResultSchema.extend({ task: TaskSchema });
309415
310285
  TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema);
309416
310286
  TaskStatusNotificationSchema = NotificationSchema.extend({
309417
- method: literal("notifications/tasks/status"),
310287
+ method: literal$1("notifications/tasks/status"),
309418
310288
  params: TaskStatusNotificationParamsSchema
309419
310289
  });
309420
310290
  GetTaskRequestSchema = RequestSchema.extend({
309421
- method: literal("tasks/get"),
310291
+ method: literal$1("tasks/get"),
309422
310292
  params: BaseRequestParamsSchema.extend({ taskId: string() })
309423
310293
  });
309424
310294
  GetTaskResultSchema = ResultSchema.merge(TaskSchema);
309425
310295
  GetTaskPayloadRequestSchema = RequestSchema.extend({
309426
- method: literal("tasks/result"),
310296
+ method: literal$1("tasks/result"),
309427
310297
  params: BaseRequestParamsSchema.extend({ taskId: string() })
309428
310298
  });
309429
310299
  GetTaskPayloadResultSchema = ResultSchema.loose();
309430
- ListTasksRequestSchema = PaginatedRequestSchema.extend({ method: literal("tasks/list") });
310300
+ ListTasksRequestSchema = PaginatedRequestSchema.extend({ method: literal$1("tasks/list") });
309431
310301
  ListTasksResultSchema = PaginatedResultSchema.extend({ tasks: array(TaskSchema) });
309432
310302
  CancelTaskRequestSchema = RequestSchema.extend({
309433
- method: literal("tasks/cancel"),
310303
+ method: literal$1("tasks/cancel"),
309434
310304
  params: BaseRequestParamsSchema.extend({ taskId: string() })
309435
310305
  });
309436
310306
  CancelTaskResultSchema = ResultSchema.merge(TaskSchema);
@@ -309607,7 +310477,7 @@ var init_auth_UMQCo_ad = __esmMin((() => {
309607
310477
  issuer: string().optional().catch(void 0)
309608
310478
  }).strip();
309609
310479
  IdJagTokenExchangeResponseSchema = object$1({
309610
- issued_token_type: literal("urn:ietf:params:oauth:token-type:id-jag"),
310480
+ issued_token_type: literal$1("urn:ietf:params:oauth:token-type:id-jag"),
309611
310481
  access_token: string(),
309612
310482
  token_type: string().optional(),
309613
310483
  expires_in: number$1().optional(),
@@ -309618,7 +310488,7 @@ var init_auth_UMQCo_ad = __esmMin((() => {
309618
310488
  error_description: string().optional(),
309619
310489
  error_uri: string().optional()
309620
310490
  });
309621
- OptionalSafeUrlSchema = SafeUrlSchema.optional().or(literal("").transform(() => void 0));
310491
+ OptionalSafeUrlSchema = SafeUrlSchema.optional().or(literal$1("").transform(() => void 0));
309622
310492
  OAuthClientMetadataSchema = object$1({
309623
310493
  redirect_uris: array(SafeUrlSchema),
309624
310494
  token_endpoint_auth_method: string().optional(),
@@ -309891,7 +310761,7 @@ function build$1$1() {
309891
310761
  * A client MUST NOT attempt to cancel its {@linkcode InitializeRequest | initialize} request.
309892
310762
  */
309893
310763
  const CancelledNotificationSchema$1 = NotificationSchema$1.extend({
309894
- method: literal("notifications/cancelled"),
310764
+ method: literal$1("notifications/cancelled"),
309895
310765
  params: CancelledNotificationParamsSchema$1
309896
310766
  });
309897
310767
  /**
@@ -309979,7 +310849,7 @@ function build$1$1() {
309979
310849
  * This request is sent from the client to the server when it first connects, asking it to begin initialization.
309980
310850
  */
309981
310851
  const InitializeRequestSchema$1 = RequestSchema$1.extend({
309982
- method: literal("initialize"),
310852
+ method: literal$1("initialize"),
309983
310853
  params: InitializeRequestParamsSchema$1
309984
310854
  });
309985
310855
  /**
@@ -310011,14 +310881,14 @@ function build$1$1() {
310011
310881
  * This notification is sent from the client to the server after initialization has finished.
310012
310882
  */
310013
310883
  const InitializedNotificationSchema$1 = NotificationSchema$1.extend({
310014
- method: literal("notifications/initialized"),
310884
+ method: literal$1("notifications/initialized"),
310015
310885
  params: NotificationsParamsSchema$1.optional()
310016
310886
  });
310017
310887
  /**
310018
310888
  * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
310019
310889
  */
310020
310890
  const PingRequestSchema$1 = RequestSchema$1.extend({
310021
- method: literal("ping"),
310891
+ method: literal$1("ping"),
310022
310892
  params: BaseRequestParamsSchema$1.optional()
310023
310893
  });
310024
310894
  const ProgressSchema$1 = object$1({
@@ -310037,7 +310907,7 @@ function build$1$1() {
310037
310907
  * @category notifications/progress
310038
310908
  */
310039
310909
  const ProgressNotificationSchema$1 = NotificationSchema$1.extend({
310040
- method: literal("notifications/progress"),
310910
+ method: literal$1("notifications/progress"),
310041
310911
  params: ProgressNotificationParamsSchema$1
310042
310912
  });
310043
310913
  const PaginatedRequestParamsSchema$1 = BaseRequestParamsSchema$1.extend({ cursor: CursorSchema$1.optional() });
@@ -310106,7 +310976,7 @@ function build$1$1() {
310106
310976
  /**
310107
310977
  * Sent from the client to request a list of resources the server has.
310108
310978
  */
310109
- const ListResourcesRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("resources/list") });
310979
+ const ListResourcesRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("resources/list") });
310110
310980
  /**
310111
310981
  * The server's response to a {@linkcode ListResourcesRequest | resources/list} request from the client.
310112
310982
  */
@@ -310114,7 +310984,7 @@ function build$1$1() {
310114
310984
  /**
310115
310985
  * Sent from the client to request a list of resource templates the server has.
310116
310986
  */
310117
- const ListResourceTemplatesRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("resources/templates/list") });
310987
+ const ListResourceTemplatesRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("resources/templates/list") });
310118
310988
  /**
310119
310989
  * The server's response to a {@linkcode ListResourceTemplatesRequest | resources/templates/list} request from the client.
310120
310990
  */
@@ -310128,7 +310998,7 @@ function build$1$1() {
310128
310998
  * Sent from the client to the server, to read a specific resource URI.
310129
310999
  */
310130
311000
  const ReadResourceRequestSchema$1 = RequestSchema$1.extend({
310131
- method: literal("resources/read"),
311001
+ method: literal$1("resources/read"),
310132
311002
  params: ReadResourceRequestParamsSchema$1
310133
311003
  });
310134
311004
  /**
@@ -310139,7 +311009,7 @@ function build$1$1() {
310139
311009
  * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
310140
311010
  */
310141
311011
  const ResourceListChangedNotificationSchema$1 = NotificationSchema$1.extend({
310142
- method: literal("notifications/resources/list_changed"),
311012
+ method: literal$1("notifications/resources/list_changed"),
310143
311013
  params: NotificationsParamsSchema$1.optional()
310144
311014
  });
310145
311015
  const SubscribeRequestParamsSchema$1 = ResourceRequestParamsSchema$1;
@@ -310147,7 +311017,7 @@ function build$1$1() {
310147
311017
  * Sent from the client to request `resources/updated` notifications from the server whenever a particular resource changes.
310148
311018
  */
310149
311019
  const SubscribeRequestSchema$1 = RequestSchema$1.extend({
310150
- method: literal("resources/subscribe"),
311020
+ method: literal$1("resources/subscribe"),
310151
311021
  params: SubscribeRequestParamsSchema$1
310152
311022
  });
310153
311023
  const UnsubscribeRequestParamsSchema$1 = ResourceRequestParamsSchema$1;
@@ -310155,7 +311025,7 @@ function build$1$1() {
310155
311025
  * Sent from the client to request cancellation of {@linkcode ResourceUpdatedNotification | resources/updated} notifications from the server. This should follow a previous {@linkcode SubscribeRequest | resources/subscribe} request.
310156
311026
  */
310157
311027
  const UnsubscribeRequestSchema$1 = RequestSchema$1.extend({
310158
- method: literal("resources/unsubscribe"),
311028
+ method: literal$1("resources/unsubscribe"),
310159
311029
  params: UnsubscribeRequestParamsSchema$1
310160
311030
  });
310161
311031
  /**
@@ -310166,7 +311036,7 @@ function build$1$1() {
310166
311036
  * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a {@linkcode SubscribeRequest | resources/subscribe} request.
310167
311037
  */
310168
311038
  const ResourceUpdatedNotificationSchema$1 = NotificationSchema$1.extend({
310169
- method: literal("notifications/resources/updated"),
311039
+ method: literal$1("notifications/resources/updated"),
310170
311040
  params: ResourceUpdatedNotificationParamsSchema$1
310171
311041
  });
310172
311042
  /**
@@ -310190,7 +311060,7 @@ function build$1$1() {
310190
311060
  /**
310191
311061
  * Sent from the client to request a list of prompts and prompt templates the server has.
310192
311062
  */
310193
- const ListPromptsRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("prompts/list") });
311063
+ const ListPromptsRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("prompts/list") });
310194
311064
  /**
310195
311065
  * The server's response to a {@linkcode ListPromptsRequest | prompts/list} request from the client.
310196
311066
  */
@@ -310206,14 +311076,14 @@ function build$1$1() {
310206
311076
  * Used by the client to get a prompt provided by the server.
310207
311077
  */
310208
311078
  const GetPromptRequestSchema$1 = RequestSchema$1.extend({
310209
- method: literal("prompts/get"),
311079
+ method: literal$1("prompts/get"),
310210
311080
  params: GetPromptRequestParamsSchema$1
310211
311081
  });
310212
311082
  /**
310213
311083
  * Text provided to or from an LLM.
310214
311084
  */
310215
311085
  const TextContentSchema$1 = object$1({
310216
- type: literal("text"),
311086
+ type: literal$1("text"),
310217
311087
  text: string(),
310218
311088
  annotations: AnnotationsSchema$1.optional(),
310219
311089
  _meta: record(string(), unknown()).optional()
@@ -310222,7 +311092,7 @@ function build$1$1() {
310222
311092
  * An image provided to or from an LLM.
310223
311093
  */
310224
311094
  const ImageContentSchema$1 = object$1({
310225
- type: literal("image"),
311095
+ type: literal$1("image"),
310226
311096
  data: Base64Schema,
310227
311097
  mimeType: string(),
310228
311098
  annotations: AnnotationsSchema$1.optional(),
@@ -310232,7 +311102,7 @@ function build$1$1() {
310232
311102
  * Audio content provided to or from an LLM.
310233
311103
  */
310234
311104
  const AudioContentSchema$1 = object$1({
310235
- type: literal("audio"),
311105
+ type: literal$1("audio"),
310236
311106
  data: Base64Schema,
310237
311107
  mimeType: string(),
310238
311108
  annotations: AnnotationsSchema$1.optional(),
@@ -310247,7 +311117,7 @@ function build$1$1() {
310247
311117
  * provider APIs directly.
310248
311118
  */
310249
311119
  const ToolUseContentSchema$1 = object$1({
310250
- type: literal("tool_use"),
311120
+ type: literal$1("tool_use"),
310251
311121
  name: string(),
310252
311122
  id: string(),
310253
311123
  input: record(string(), unknown()),
@@ -310257,7 +311127,7 @@ function build$1$1() {
310257
311127
  * The contents of a resource, embedded into a prompt or tool call result.
310258
311128
  */
310259
311129
  const EmbeddedResourceSchema$1 = object$1({
310260
- type: literal("resource"),
311130
+ type: literal$1("resource"),
310261
311131
  resource: union([TextResourceContentsSchema$1, BlobResourceContentsSchema$1]),
310262
311132
  annotations: AnnotationsSchema$1.optional(),
310263
311133
  _meta: record(string(), unknown()).optional()
@@ -310267,7 +311137,7 @@ function build$1$1() {
310267
311137
  *
310268
311138
  * Note: resource links returned by tools are not guaranteed to appear in the results of {@linkcode ListResourcesRequest | resources/list} requests.
310269
311139
  */
310270
- const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal("resource_link") });
311140
+ const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal$1("resource_link") });
310271
311141
  /**
310272
311142
  * A content block that can be used in prompts and tool results.
310273
311143
  */
@@ -310296,7 +311166,7 @@ function build$1$1() {
310296
311166
  * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
310297
311167
  */
310298
311168
  const PromptListChangedNotificationSchema$1 = NotificationSchema$1.extend({
310299
- method: literal("notifications/prompts/list_changed"),
311169
+ method: literal$1("notifications/prompts/list_changed"),
310300
311170
  params: NotificationsParamsSchema$1.optional()
310301
311171
  });
310302
311172
  /**
@@ -310332,12 +311202,12 @@ function build$1$1() {
310332
311202
  ...IconsSchema$1.shape,
310333
311203
  description: string().optional(),
310334
311204
  inputSchema: object$1({
310335
- type: literal("object"),
311205
+ type: literal$1("object"),
310336
311206
  properties: record(string(), JSONValueSchema$1).optional(),
310337
311207
  required: array(string()).optional()
310338
311208
  }).catchall(unknown()),
310339
311209
  outputSchema: object$1({
310340
- type: literal("object"),
311210
+ type: literal$1("object"),
310341
311211
  properties: record(string(), JSONValueSchema$1).optional(),
310342
311212
  required: array(string()).optional()
310343
311213
  }).catchall(unknown()).optional(),
@@ -310348,7 +311218,7 @@ function build$1$1() {
310348
311218
  /**
310349
311219
  * Sent from the client to request a list of tools the server has.
310350
311220
  */
310351
- const ListToolsRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("tools/list") });
311221
+ const ListToolsRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("tools/list") });
310352
311222
  /**
310353
311223
  * The server's response to a {@linkcode ListToolsRequest | tools/list} request from the client.
310354
311224
  */
@@ -310372,14 +311242,14 @@ function build$1$1() {
310372
311242
  * Used by the client to invoke a tool provided by the server.
310373
311243
  */
310374
311244
  const CallToolRequestSchema$1 = RequestSchema$1.extend({
310375
- method: literal("tools/call"),
311245
+ method: literal$1("tools/call"),
310376
311246
  params: CallToolRequestParamsSchema$1
310377
311247
  });
310378
311248
  /**
310379
311249
  * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
310380
311250
  */
310381
311251
  const ToolListChangedNotificationSchema$1 = NotificationSchema$1.extend({
310382
- method: literal("notifications/tools/list_changed"),
311252
+ method: literal$1("notifications/tools/list_changed"),
310383
311253
  params: NotificationsParamsSchema$1.optional()
310384
311254
  });
310385
311255
  /**
@@ -310415,7 +311285,7 @@ function build$1$1() {
310415
311285
  * (STDIO servers) or OpenTelemetry.
310416
311286
  */
310417
311287
  const SetLevelRequestSchema$1 = RequestSchema$1.extend({
310418
- method: literal("logging/setLevel"),
311288
+ method: literal$1("logging/setLevel"),
310419
311289
  params: SetLevelRequestParamsSchema$1
310420
311290
  });
310421
311291
  /**
@@ -310438,7 +311308,7 @@ function build$1$1() {
310438
311308
  * (STDIO servers) or OpenTelemetry.
310439
311309
  */
310440
311310
  const LoggingMessageNotificationSchema$1 = NotificationSchema$1.extend({
310441
- method: literal("notifications/message"),
311311
+ method: literal$1("notifications/message"),
310442
311312
  params: LoggingMessageNotificationParamsSchema$1
310443
311313
  });
310444
311314
  /**
@@ -310483,7 +311353,7 @@ function build$1$1() {
310483
311353
  * provider APIs directly.
310484
311354
  */
310485
311355
  const ToolResultContentSchema$1 = object$1({
310486
- type: literal("tool_result"),
311356
+ type: literal$1("tool_result"),
310487
311357
  toolUseId: string().describe("The unique identifier for the corresponding tool call."),
310488
311358
  content: array(ContentBlockSchema$1),
310489
311359
  structuredContent: object$1({}).loose().optional(),
@@ -310561,7 +311431,7 @@ function build$1$1() {
310561
311431
  * provider APIs directly.
310562
311432
  */
310563
311433
  const CreateMessageRequestSchema$1 = RequestSchema$1.extend({
310564
- method: literal("sampling/createMessage"),
311434
+ method: literal$1("sampling/createMessage"),
310565
311435
  params: CreateMessageRequestParamsSchema$1
310566
311436
  });
310567
311437
  /**
@@ -310606,7 +311476,7 @@ function build$1$1() {
310606
311476
  * Primitive schema definition for boolean fields.
310607
311477
  */
310608
311478
  const BooleanSchemaSchema$1 = object$1({
310609
- type: literal("boolean"),
311479
+ type: literal$1("boolean"),
310610
311480
  title: string().optional(),
310611
311481
  description: string().optional(),
310612
311482
  default: boolean().optional()
@@ -310615,7 +311485,7 @@ function build$1$1() {
310615
311485
  * Primitive schema definition for string fields.
310616
311486
  */
310617
311487
  const StringSchemaSchema$1 = object$1({
310618
- type: literal("string"),
311488
+ type: literal$1("string"),
310619
311489
  title: string().optional(),
310620
311490
  description: string().optional(),
310621
311491
  minLength: number$1().optional(),
@@ -310643,7 +311513,7 @@ function build$1$1() {
310643
311513
  * Schema for single-selection enumeration without display titles for options.
310644
311514
  */
310645
311515
  const UntitledSingleSelectEnumSchemaSchema$1 = object$1({
310646
- type: literal("string"),
311516
+ type: literal$1("string"),
310647
311517
  title: string().optional(),
310648
311518
  description: string().optional(),
310649
311519
  enum: array(string()),
@@ -310653,7 +311523,7 @@ function build$1$1() {
310653
311523
  * Schema for single-selection enumeration with display titles for each option.
310654
311524
  */
310655
311525
  const TitledSingleSelectEnumSchemaSchema$1 = object$1({
310656
- type: literal("string"),
311526
+ type: literal$1("string"),
310657
311527
  title: string().optional(),
310658
311528
  description: string().optional(),
310659
311529
  oneOf: array(object$1({
@@ -310667,7 +311537,7 @@ function build$1$1() {
310667
311537
  * This interface will be removed in a future version.
310668
311538
  */
310669
311539
  const LegacyTitledEnumSchemaSchema$1 = object$1({
310670
- type: literal("string"),
311540
+ type: literal$1("string"),
310671
311541
  title: string().optional(),
310672
311542
  description: string().optional(),
310673
311543
  enum: array(string()),
@@ -310679,13 +311549,13 @@ function build$1$1() {
310679
311549
  * Schema for multiple-selection enumeration without display titles for options.
310680
311550
  */
310681
311551
  const UntitledMultiSelectEnumSchemaSchema$1 = object$1({
310682
- type: literal("array"),
311552
+ type: literal$1("array"),
310683
311553
  title: string().optional(),
310684
311554
  description: string().optional(),
310685
311555
  minItems: number$1().optional(),
310686
311556
  maxItems: number$1().optional(),
310687
311557
  items: object$1({
310688
- type: literal("string"),
311558
+ type: literal$1("string"),
310689
311559
  enum: array(string())
310690
311560
  }),
310691
311561
  default: array(string()).optional()
@@ -310694,7 +311564,7 @@ function build$1$1() {
310694
311564
  * Schema for multiple-selection enumeration with display titles for each option.
310695
311565
  */
310696
311566
  const TitledMultiSelectEnumSchemaSchema$1 = object$1({
310697
- type: literal("array"),
311567
+ type: literal$1("array"),
310698
311568
  title: string().optional(),
310699
311569
  description: string().optional(),
310700
311570
  minItems: number$1().optional(),
@@ -310730,10 +311600,10 @@ function build$1$1() {
310730
311600
  * Parameters for an `elicitation/create` request for form-based elicitation.
310731
311601
  */
310732
311602
  const ElicitRequestFormParamsSchema$1 = TaskAugmentedRequestParamsSchema$1.extend({
310733
- mode: literal("form").optional(),
311603
+ mode: literal$1("form").optional(),
310734
311604
  message: string(),
310735
311605
  requestedSchema: object$1({
310736
- type: literal("object"),
311606
+ type: literal$1("object"),
310737
311607
  properties: record(string(), PrimitiveSchemaDefinitionSchema$1),
310738
311608
  required: array(string()).optional()
310739
311609
  }).catchall(unknown())
@@ -310742,7 +311612,7 @@ function build$1$1() {
310742
311612
  * Parameters for an {@linkcode ElicitRequest | elicitation/create} request for URL-based elicitation.
310743
311613
  */
310744
311614
  const ElicitRequestURLParamsSchema$1 = TaskAugmentedRequestParamsSchema$1.extend({
310745
- mode: literal("url"),
311615
+ mode: literal$1("url"),
310746
311616
  message: string(),
310747
311617
  elicitationId: string(),
310748
311618
  url: string().url()
@@ -310757,7 +311627,7 @@ function build$1$1() {
310757
311627
  * or navigate to a URL (URL mode).
310758
311628
  */
310759
311629
  const ElicitRequestSchema$1 = RequestSchema$1.extend({
310760
- method: literal("elicitation/create"),
311630
+ method: literal$1("elicitation/create"),
310761
311631
  params: ElicitRequestParamsSchema$1
310762
311632
  });
310763
311633
  /**
@@ -310772,7 +311642,7 @@ function build$1$1() {
310772
311642
  * @category notifications/elicitation/complete
310773
311643
  */
310774
311644
  const ElicitationCompleteNotificationSchema$1 = NotificationSchema$1.extend({
310775
- method: literal("notifications/elicitation/complete"),
311645
+ method: literal$1("notifications/elicitation/complete"),
310776
311646
  params: ElicitationCompleteNotificationParamsSchema$1
310777
311647
  });
310778
311648
  /**
@@ -310795,14 +311665,14 @@ function build$1$1() {
310795
311665
  * A reference to a resource or resource template definition.
310796
311666
  */
310797
311667
  const ResourceTemplateReferenceSchema$1 = object$1({
310798
- type: literal("ref/resource"),
311668
+ type: literal$1("ref/resource"),
310799
311669
  uri: string()
310800
311670
  });
310801
311671
  /**
310802
311672
  * Identifies a prompt.
310803
311673
  */
310804
311674
  const PromptReferenceSchema$1 = object$1({
310805
- type: literal("ref/prompt"),
311675
+ type: literal$1("ref/prompt"),
310806
311676
  name: string()
310807
311677
  });
310808
311678
  /**
@@ -310820,7 +311690,7 @@ function build$1$1() {
310820
311690
  * A request from the client to the server, to ask for completion options.
310821
311691
  */
310822
311692
  const CompleteRequestSchema$1 = RequestSchema$1.extend({
310823
- method: literal("completion/complete"),
311693
+ method: literal$1("completion/complete"),
310824
311694
  params: CompleteRequestParamsSchema$1
310825
311695
  });
310826
311696
  /**
@@ -310851,7 +311721,7 @@ function build$1$1() {
310851
311721
  * tool parameters, resource URIs, or configuration.
310852
311722
  */
310853
311723
  const ListRootsRequestSchema$1 = RequestSchema$1.extend({
310854
- method: literal("roots/list"),
311724
+ method: literal$1("roots/list"),
310855
311725
  params: BaseRequestParamsSchema$1.optional()
310856
311726
  });
310857
311727
  /**
@@ -310870,7 +311740,7 @@ function build$1$1() {
310870
311740
  * tool parameters, resource URIs, or configuration.
310871
311741
  */
310872
311742
  const RootsListChangedNotificationSchema$1 = NotificationSchema$1.extend({
310873
- method: literal("notifications/roots/list_changed"),
311743
+ method: literal$1("notifications/roots/list_changed"),
310874
311744
  params: NotificationsParamsSchema$1.optional()
310875
311745
  });
310876
311746
  /**
@@ -310926,7 +311796,7 @@ function build$1$1() {
310926
311796
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
310927
311797
  */
310928
311798
  const TaskStatusNotificationSchema$1 = NotificationSchema$1.extend({
310929
- method: literal("notifications/tasks/status"),
311799
+ method: literal$1("notifications/tasks/status"),
310930
311800
  params: TaskStatusNotificationParamsSchema$1
310931
311801
  });
310932
311802
  /**
@@ -310935,7 +311805,7 @@ function build$1$1() {
310935
311805
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
310936
311806
  */
310937
311807
  const GetTaskRequestSchema$1 = RequestSchema$1.extend({
310938
- method: literal("tasks/get"),
311808
+ method: literal$1("tasks/get"),
310939
311809
  params: BaseRequestParamsSchema$1.extend({ taskId: string() })
310940
311810
  });
310941
311811
  /**
@@ -310950,7 +311820,7 @@ function build$1$1() {
310950
311820
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
310951
311821
  */
310952
311822
  const GetTaskPayloadRequestSchema$1 = RequestSchema$1.extend({
310953
- method: literal("tasks/result"),
311823
+ method: literal$1("tasks/result"),
310954
311824
  params: BaseRequestParamsSchema$1.extend({ taskId: string() })
310955
311825
  });
310956
311826
  /**
@@ -310967,7 +311837,7 @@ function build$1$1() {
310967
311837
  *
310968
311838
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
310969
311839
  */
310970
- const ListTasksRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("tasks/list") });
311840
+ const ListTasksRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("tasks/list") });
310971
311841
  /**
310972
311842
  * The response to a {@linkcode ListTasksRequest | tasks/list} request.
310973
311843
  *
@@ -310980,7 +311850,7 @@ function build$1$1() {
310980
311850
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
310981
311851
  */
310982
311852
  const CancelTaskRequestSchema$1 = RequestSchema$1.extend({
310983
- method: literal("tasks/cancel"),
311853
+ method: literal$1("tasks/cancel"),
310984
311854
  params: BaseRequestParamsSchema$1.extend({ taskId: string() })
310985
311855
  });
310986
311856
  return {
@@ -311598,7 +312468,7 @@ function build$2() {
311598
312468
  progressToken: ProgressTokenSchema$1
311599
312469
  });
311600
312470
  const ProgressNotificationSchema$1 = NotificationSchema$1.extend({
311601
- method: literal("notifications/progress"),
312471
+ method: literal$1("notifications/progress"),
311602
312472
  params: ProgressNotificationParamsSchema$1
311603
312473
  });
311604
312474
  const LoggingMessageNotificationParamsSchema$1 = NotificationsParamsSchema$1.extend({
@@ -311607,7 +312477,7 @@ function build$2() {
311607
312477
  data: unknown()
311608
312478
  });
311609
312479
  const LoggingMessageNotificationSchema$1 = NotificationSchema$1.extend({
311610
- method: literal("notifications/message"),
312480
+ method: literal$1("notifications/message"),
311611
312481
  params: LoggingMessageNotificationParamsSchema$1
311612
312482
  });
311613
312483
  const ResourceContentsSchema$1 = object$1({
@@ -311642,12 +312512,12 @@ function build$2() {
311642
312512
  _meta: optional(looseObject({}))
311643
312513
  });
311644
312514
  const ResourceListChangedNotificationSchema$1 = NotificationSchema$1.extend({
311645
- method: literal("notifications/resources/list_changed"),
312515
+ method: literal$1("notifications/resources/list_changed"),
311646
312516
  params: NotificationsParamsSchema$1.optional()
311647
312517
  });
311648
312518
  const ResourceUpdatedNotificationParamsSchema$1 = NotificationsParamsSchema$1.extend({ uri: string() });
311649
312519
  const ResourceUpdatedNotificationSchema$1 = NotificationSchema$1.extend({
311650
- method: literal("notifications/resources/updated"),
312520
+ method: literal$1("notifications/resources/updated"),
311651
312521
  params: ResourceUpdatedNotificationParamsSchema$1
311652
312522
  });
311653
312523
  const PromptArgumentSchema$1 = object$1({
@@ -311663,43 +312533,43 @@ function build$2() {
311663
312533
  _meta: optional(looseObject({}))
311664
312534
  });
311665
312535
  const PromptListChangedNotificationSchema$1 = NotificationSchema$1.extend({
311666
- method: literal("notifications/prompts/list_changed"),
312536
+ method: literal$1("notifications/prompts/list_changed"),
311667
312537
  params: NotificationsParamsSchema$1.optional()
311668
312538
  });
311669
312539
  const TextContentSchema$1 = object$1({
311670
- type: literal("text"),
312540
+ type: literal$1("text"),
311671
312541
  text: string(),
311672
312542
  annotations: AnnotationsSchema$1.optional(),
311673
312543
  _meta: record(string(), unknown()).optional()
311674
312544
  });
311675
312545
  const ImageContentSchema$1 = object$1({
311676
- type: literal("image"),
312546
+ type: literal$1("image"),
311677
312547
  data: Base64Schema,
311678
312548
  mimeType: string(),
311679
312549
  annotations: AnnotationsSchema$1.optional(),
311680
312550
  _meta: record(string(), unknown()).optional()
311681
312551
  });
311682
312552
  const AudioContentSchema$1 = object$1({
311683
- type: literal("audio"),
312553
+ type: literal$1("audio"),
311684
312554
  data: Base64Schema,
311685
312555
  mimeType: string(),
311686
312556
  annotations: AnnotationsSchema$1.optional(),
311687
312557
  _meta: record(string(), unknown()).optional()
311688
312558
  });
311689
312559
  const ToolUseContentSchema$1 = object$1({
311690
- type: literal("tool_use"),
312560
+ type: literal$1("tool_use"),
311691
312561
  name: string(),
311692
312562
  id: string(),
311693
312563
  input: record(string(), unknown()),
311694
312564
  _meta: record(string(), unknown()).optional()
311695
312565
  });
311696
312566
  const EmbeddedResourceSchema$1 = object$1({
311697
- type: literal("resource"),
312567
+ type: literal$1("resource"),
311698
312568
  resource: union([TextResourceContentsSchema$1, BlobResourceContentsSchema$1]),
311699
312569
  annotations: AnnotationsSchema$1.optional(),
311700
312570
  _meta: record(string(), unknown()).optional()
311701
312571
  });
311702
- const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal("resource_link") });
312572
+ const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal$1("resource_link") });
311703
312573
  const ContentBlockSchema$1 = union([
311704
312574
  TextContentSchema$1,
311705
312575
  ImageContentSchema$1,
@@ -311719,7 +312589,7 @@ function build$2() {
311719
312589
  openWorldHint: boolean().optional()
311720
312590
  });
311721
312591
  const ToolListChangedNotificationSchema$1 = NotificationSchema$1.extend({
311722
- method: literal("notifications/tools/list_changed"),
312592
+ method: literal$1("notifications/tools/list_changed"),
311723
312593
  params: NotificationsParamsSchema$1.optional()
311724
312594
  });
311725
312595
  const ModelHintSchema$1 = object$1({ name: string().optional() });
@@ -311735,13 +312605,13 @@ function build$2() {
311735
312605
  "none"
311736
312606
  ]).optional() });
311737
312607
  const BooleanSchemaSchema$1 = object$1({
311738
- type: literal("boolean"),
312608
+ type: literal$1("boolean"),
311739
312609
  title: string().optional(),
311740
312610
  description: string().optional(),
311741
312611
  default: boolean().optional()
311742
312612
  });
311743
312613
  const StringSchemaSchema$1 = object$1({
311744
- type: literal("string"),
312614
+ type: literal$1("string"),
311745
312615
  title: string().optional(),
311746
312616
  description: string().optional(),
311747
312617
  minLength: number$1().optional(),
@@ -311763,14 +312633,14 @@ function build$2() {
311763
312633
  default: number$1().optional()
311764
312634
  });
311765
312635
  const UntitledSingleSelectEnumSchemaSchema$1 = object$1({
311766
- type: literal("string"),
312636
+ type: literal$1("string"),
311767
312637
  title: string().optional(),
311768
312638
  description: string().optional(),
311769
312639
  enum: array(string()),
311770
312640
  default: string().optional()
311771
312641
  });
311772
312642
  const TitledSingleSelectEnumSchemaSchema$1 = object$1({
311773
- type: literal("string"),
312643
+ type: literal$1("string"),
311774
312644
  title: string().optional(),
311775
312645
  description: string().optional(),
311776
312646
  oneOf: array(object$1({
@@ -311780,7 +312650,7 @@ function build$2() {
311780
312650
  default: string().optional()
311781
312651
  });
311782
312652
  const LegacyTitledEnumSchemaSchema$1 = object$1({
311783
- type: literal("string"),
312653
+ type: literal$1("string"),
311784
312654
  title: string().optional(),
311785
312655
  description: string().optional(),
311786
312656
  enum: array(string()),
@@ -311789,19 +312659,19 @@ function build$2() {
311789
312659
  });
311790
312660
  const SingleSelectEnumSchemaSchema$1 = union([UntitledSingleSelectEnumSchemaSchema$1, TitledSingleSelectEnumSchemaSchema$1]);
311791
312661
  const UntitledMultiSelectEnumSchemaSchema$1 = object$1({
311792
- type: literal("array"),
312662
+ type: literal$1("array"),
311793
312663
  title: string().optional(),
311794
312664
  description: string().optional(),
311795
312665
  minItems: number$1().optional(),
311796
312666
  maxItems: number$1().optional(),
311797
312667
  items: object$1({
311798
- type: literal("string"),
312668
+ type: literal$1("string"),
311799
312669
  enum: array(string())
311800
312670
  }),
311801
312671
  default: array(string()).optional()
311802
312672
  });
311803
312673
  const TitledMultiSelectEnumSchemaSchema$1 = object$1({
311804
- type: literal("array"),
312674
+ type: literal$1("array"),
311805
312675
  title: string().optional(),
311806
312676
  description: string().optional(),
311807
312677
  minItems: number$1().optional(),
@@ -311825,20 +312695,20 @@ function build$2() {
311825
312695
  NumberSchemaSchema$1
311826
312696
  ]);
311827
312697
  const ElicitRequestFormParamsSchema$1 = TaskAugmentedRequestParamsSchema$1.extend({
311828
- mode: literal("form").optional(),
312698
+ mode: literal$1("form").optional(),
311829
312699
  message: string(),
311830
312700
  requestedSchema: object$1({
311831
- type: literal("object"),
312701
+ type: literal$1("object"),
311832
312702
  properties: record(string(), PrimitiveSchemaDefinitionSchema$1),
311833
312703
  required: array(string()).optional()
311834
312704
  }).catchall(unknown())
311835
312705
  });
311836
312706
  const ResourceTemplateReferenceSchema$1 = object$1({
311837
- type: literal("ref/resource"),
312707
+ type: literal$1("ref/resource"),
311838
312708
  uri: string()
311839
312709
  });
311840
312710
  const PromptReferenceSchema$1 = object$1({
311841
- type: literal("ref/prompt"),
312711
+ type: literal$1("ref/prompt"),
311842
312712
  name: string()
311843
312713
  });
311844
312714
  const RootSchema$1 = object$1({
@@ -311889,7 +312759,7 @@ function build$2() {
311889
312759
  description: string().optional(),
311890
312760
  inputSchema: looseObject({
311891
312761
  $schema: string().optional(),
311892
- type: literal("object")
312762
+ type: literal$1("object")
311893
312763
  }),
311894
312764
  outputSchema: looseObject({ $schema: string().optional() }).optional(),
311895
312765
  annotations: ToolAnnotationsSchema$1.optional(),
@@ -311897,7 +312767,7 @@ function build$2() {
311897
312767
  });
311898
312768
  /** 2026-era ToolResultContent (anchor-exact: `structuredContent?: unknown`). */
311899
312769
  const ToolResultContentSchema$1 = object$1({
311900
- type: literal("tool_result"),
312770
+ type: literal$1("tool_result"),
311901
312771
  toolUseId: string(),
311902
312772
  content: array(ContentBlockSchema$1),
311903
312773
  structuredContent: unknown().optional(),
@@ -312010,7 +312880,7 @@ function build$2() {
312010
312880
  });
312011
312881
  /** 2026-era embedded sampling request (de-JSON-RPC'd). */
312012
312882
  const CreateMessageRequestSchema$1 = object$1({
312013
- method: literal("sampling/createMessage"),
312883
+ method: literal$1("sampling/createMessage"),
312014
312884
  params: CreateMessageRequestParamsSchema$1
312015
312885
  });
312016
312886
  /**
@@ -312019,7 +312889,7 @@ function build$2() {
312019
312889
  * the anchor declares a bare optional `_meta` on `params`.
312020
312890
  */
312021
312891
  const ListRootsRequestSchema$1 = object$1({
312022
- method: literal("roots/list"),
312892
+ method: literal$1("roots/list"),
312023
312893
  params: object$1({ _meta: record(string(), unknown()).optional() }).optional()
312024
312894
  });
312025
312895
  /** 2026-era embedded sampling response (anchor-exact: extends the forked SamplingMessage). */
@@ -312051,7 +312921,7 @@ function build$2() {
312051
312921
  * frozen 2025-11-25 revision.
312052
312922
  */
312053
312923
  const ElicitRequestURLParamsSchema$1 = object$1({
312054
- mode: literal("url"),
312924
+ mode: literal$1("url"),
312055
312925
  message: string(),
312056
312926
  url: string().url()
312057
312927
  });
@@ -312059,7 +312929,7 @@ function build$2() {
312059
312929
  const ElicitRequestParamsSchema$1 = union([ElicitRequestFormParamsSchema$1, ElicitRequestURLParamsSchema$1]);
312060
312930
  /** 2026-era embedded elicitation request (de-JSON-RPC'd; see the URL-mode fork above). */
312061
312931
  const ElicitRequestSchema$1 = object$1({
312062
- method: literal("elicitation/create"),
312932
+ method: literal$1("elicitation/create"),
312063
312933
  params: ElicitRequestParamsSchema$1
312064
312934
  });
312065
312935
  /** A single embedded input request (one of the three demoted server→client requests). */
@@ -312101,7 +312971,7 @@ function build$2() {
312101
312971
  const DispatchRequestMetaSchema = looseObject({ progressToken: ProgressTokenSchema$1.optional() });
312102
312972
  function wireRequest(method, paramsShape) {
312103
312973
  return object$1({
312104
- method: literal(method),
312974
+ method: literal$1(method),
312105
312975
  params: object$1({
312106
312976
  _meta: RequestMetaEnvelopeSchema,
312107
312977
  ...paramsShape
@@ -312110,7 +312980,7 @@ function build$2() {
312110
312980
  }
312111
312981
  function dispatchRequest(method, paramsShape) {
312112
312982
  return object$1({
312113
- method: literal(method),
312983
+ method: literal$1(method),
312114
312984
  params: object$1({
312115
312985
  _meta: DispatchRequestMetaSchema.optional(),
312116
312986
  ...paramsShape
@@ -312258,7 +313128,7 @@ function build$2() {
312258
313128
  const NotificationMetaSchema = looseObject({ "io.modelcontextprotocol/subscriptionId": RequestIdSchema$1.optional() });
312259
313129
  /** Anchor SubscriptionsAcknowledgedNotification (2026-only). */
312260
313130
  const SubscriptionsAcknowledgedNotificationSchema$1 = object$1({
312261
- method: literal("notifications/subscriptions/acknowledged"),
313131
+ method: literal$1("notifications/subscriptions/acknowledged"),
312262
313132
  params: object$1({
312263
313133
  _meta: NotificationMetaSchema.optional(),
312264
313134
  notifications: SubscriptionFilterSchema$1
@@ -312278,7 +313148,7 @@ function build$2() {
312278
313148
  });
312279
313149
  /** 2026-era `notifications/cancelled` (see the params fork above). */
312280
313150
  const CancelledNotificationSchema$1 = object$1({
312281
- method: literal("notifications/cancelled"),
313151
+ method: literal$1("notifications/cancelled"),
312282
313152
  params: CancelledNotificationParamsSchema$1
312283
313153
  });
312284
313154
  const notificationSchemas2026 = {
@@ -312292,7 +313162,7 @@ function build$2() {
312292
313162
  "notifications/subscriptions/acknowledged": SubscriptionsAcknowledgedNotificationSchema$1
312293
313163
  };
312294
313164
  const wireResultResponse = (result) => object$1({
312295
- jsonrpc: literal("2.0"),
313165
+ jsonrpc: literal$1("2.0"),
312296
313166
  id: union([string(), number$1().int()]),
312297
313167
  result
312298
313168
  }).strict();
@@ -312575,15 +313445,15 @@ function inputSchemaMaps$1() {
312575
313445
  maps$2 = {
312576
313446
  request: {
312577
313447
  "elicitation/create": object$1({
312578
- method: literal("elicitation/create"),
313448
+ method: literal$1("elicitation/create"),
312579
313449
  params: s.ElicitRequestParamsSchema
312580
313450
  }),
312581
313451
  "sampling/createMessage": object$1({
312582
- method: literal("sampling/createMessage"),
313452
+ method: literal$1("sampling/createMessage"),
312583
313453
  params: s.CreateMessageRequestParamsSchema
312584
313454
  }),
312585
313455
  "roots/list": object$1({
312586
- method: literal("roots/list"),
313456
+ method: literal$1("roots/list"),
312587
313457
  params: looseObject({}).optional()
312588
313458
  })
312589
313459
  },
@@ -564035,7 +564905,7 @@ function build$1() {
564035
564905
  * A client MUST NOT attempt to cancel its {@linkcode InitializeRequest | initialize} request.
564036
564906
  */
564037
564907
  const CancelledNotificationSchema$1 = NotificationSchema$1.extend({
564038
- method: literal("notifications/cancelled"),
564908
+ method: literal$1("notifications/cancelled"),
564039
564909
  params: CancelledNotificationParamsSchema$1
564040
564910
  });
564041
564911
  /**
@@ -564123,7 +564993,7 @@ function build$1() {
564123
564993
  * This request is sent from the client to the server when it first connects, asking it to begin initialization.
564124
564994
  */
564125
564995
  const InitializeRequestSchema$1 = RequestSchema$1.extend({
564126
- method: literal("initialize"),
564996
+ method: literal$1("initialize"),
564127
564997
  params: InitializeRequestParamsSchema$1
564128
564998
  });
564129
564999
  /**
@@ -564155,14 +565025,14 @@ function build$1() {
564155
565025
  * This notification is sent from the client to the server after initialization has finished.
564156
565026
  */
564157
565027
  const InitializedNotificationSchema$1 = NotificationSchema$1.extend({
564158
- method: literal("notifications/initialized"),
565028
+ method: literal$1("notifications/initialized"),
564159
565029
  params: NotificationsParamsSchema$1.optional()
564160
565030
  });
564161
565031
  /**
564162
565032
  * A ping, issued by either the server or the client, to check that the other party is still alive. The receiver must promptly respond, or else may be disconnected.
564163
565033
  */
564164
565034
  const PingRequestSchema$1 = RequestSchema$1.extend({
564165
- method: literal("ping"),
565035
+ method: literal$1("ping"),
564166
565036
  params: BaseRequestParamsSchema$1.optional()
564167
565037
  });
564168
565038
  const ProgressSchema$1 = object$1({
@@ -564181,7 +565051,7 @@ function build$1() {
564181
565051
  * @category notifications/progress
564182
565052
  */
564183
565053
  const ProgressNotificationSchema$1 = NotificationSchema$1.extend({
564184
- method: literal("notifications/progress"),
565054
+ method: literal$1("notifications/progress"),
564185
565055
  params: ProgressNotificationParamsSchema$1
564186
565056
  });
564187
565057
  const PaginatedRequestParamsSchema$1 = BaseRequestParamsSchema$1.extend({ cursor: CursorSchema$1.optional() });
@@ -564250,7 +565120,7 @@ function build$1() {
564250
565120
  /**
564251
565121
  * Sent from the client to request a list of resources the server has.
564252
565122
  */
564253
- const ListResourcesRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("resources/list") });
565123
+ const ListResourcesRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("resources/list") });
564254
565124
  /**
564255
565125
  * The server's response to a {@linkcode ListResourcesRequest | resources/list} request from the client.
564256
565126
  */
@@ -564258,7 +565128,7 @@ function build$1() {
564258
565128
  /**
564259
565129
  * Sent from the client to request a list of resource templates the server has.
564260
565130
  */
564261
- const ListResourceTemplatesRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("resources/templates/list") });
565131
+ const ListResourceTemplatesRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("resources/templates/list") });
564262
565132
  /**
564263
565133
  * The server's response to a {@linkcode ListResourceTemplatesRequest | resources/templates/list} request from the client.
564264
565134
  */
@@ -564272,7 +565142,7 @@ function build$1() {
564272
565142
  * Sent from the client to the server, to read a specific resource URI.
564273
565143
  */
564274
565144
  const ReadResourceRequestSchema$1 = RequestSchema$1.extend({
564275
- method: literal("resources/read"),
565145
+ method: literal$1("resources/read"),
564276
565146
  params: ReadResourceRequestParamsSchema$1
564277
565147
  });
564278
565148
  /**
@@ -564283,7 +565153,7 @@ function build$1() {
564283
565153
  * An optional notification from the server to the client, informing it that the list of resources it can read from has changed. This may be issued by servers without any previous subscription from the client.
564284
565154
  */
564285
565155
  const ResourceListChangedNotificationSchema$1 = NotificationSchema$1.extend({
564286
- method: literal("notifications/resources/list_changed"),
565156
+ method: literal$1("notifications/resources/list_changed"),
564287
565157
  params: NotificationsParamsSchema$1.optional()
564288
565158
  });
564289
565159
  const SubscribeRequestParamsSchema$1 = ResourceRequestParamsSchema$1;
@@ -564291,7 +565161,7 @@ function build$1() {
564291
565161
  * Sent from the client to request `resources/updated` notifications from the server whenever a particular resource changes.
564292
565162
  */
564293
565163
  const SubscribeRequestSchema$1 = RequestSchema$1.extend({
564294
- method: literal("resources/subscribe"),
565164
+ method: literal$1("resources/subscribe"),
564295
565165
  params: SubscribeRequestParamsSchema$1
564296
565166
  });
564297
565167
  const UnsubscribeRequestParamsSchema$1 = ResourceRequestParamsSchema$1;
@@ -564299,7 +565169,7 @@ function build$1() {
564299
565169
  * Sent from the client to request cancellation of {@linkcode ResourceUpdatedNotification | resources/updated} notifications from the server. This should follow a previous {@linkcode SubscribeRequest | resources/subscribe} request.
564300
565170
  */
564301
565171
  const UnsubscribeRequestSchema$1 = RequestSchema$1.extend({
564302
- method: literal("resources/unsubscribe"),
565172
+ method: literal$1("resources/unsubscribe"),
564303
565173
  params: UnsubscribeRequestParamsSchema$1
564304
565174
  });
564305
565175
  /**
@@ -564310,7 +565180,7 @@ function build$1() {
564310
565180
  * A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a {@linkcode SubscribeRequest | resources/subscribe} request.
564311
565181
  */
564312
565182
  const ResourceUpdatedNotificationSchema$1 = NotificationSchema$1.extend({
564313
- method: literal("notifications/resources/updated"),
565183
+ method: literal$1("notifications/resources/updated"),
564314
565184
  params: ResourceUpdatedNotificationParamsSchema$1
564315
565185
  });
564316
565186
  /**
@@ -564334,7 +565204,7 @@ function build$1() {
564334
565204
  /**
564335
565205
  * Sent from the client to request a list of prompts and prompt templates the server has.
564336
565206
  */
564337
- const ListPromptsRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("prompts/list") });
565207
+ const ListPromptsRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("prompts/list") });
564338
565208
  /**
564339
565209
  * The server's response to a {@linkcode ListPromptsRequest | prompts/list} request from the client.
564340
565210
  */
@@ -564350,14 +565220,14 @@ function build$1() {
564350
565220
  * Used by the client to get a prompt provided by the server.
564351
565221
  */
564352
565222
  const GetPromptRequestSchema$1 = RequestSchema$1.extend({
564353
- method: literal("prompts/get"),
565223
+ method: literal$1("prompts/get"),
564354
565224
  params: GetPromptRequestParamsSchema$1
564355
565225
  });
564356
565226
  /**
564357
565227
  * Text provided to or from an LLM.
564358
565228
  */
564359
565229
  const TextContentSchema$1 = object$1({
564360
- type: literal("text"),
565230
+ type: literal$1("text"),
564361
565231
  text: string(),
564362
565232
  annotations: AnnotationsSchema$1.optional(),
564363
565233
  _meta: record(string(), unknown()).optional()
@@ -564366,7 +565236,7 @@ function build$1() {
564366
565236
  * An image provided to or from an LLM.
564367
565237
  */
564368
565238
  const ImageContentSchema$1 = object$1({
564369
- type: literal("image"),
565239
+ type: literal$1("image"),
564370
565240
  data: Base64Schema,
564371
565241
  mimeType: string(),
564372
565242
  annotations: AnnotationsSchema$1.optional(),
@@ -564376,7 +565246,7 @@ function build$1() {
564376
565246
  * Audio content provided to or from an LLM.
564377
565247
  */
564378
565248
  const AudioContentSchema$1 = object$1({
564379
- type: literal("audio"),
565249
+ type: literal$1("audio"),
564380
565250
  data: Base64Schema,
564381
565251
  mimeType: string(),
564382
565252
  annotations: AnnotationsSchema$1.optional(),
@@ -564391,7 +565261,7 @@ function build$1() {
564391
565261
  * provider APIs directly.
564392
565262
  */
564393
565263
  const ToolUseContentSchema$1 = object$1({
564394
- type: literal("tool_use"),
565264
+ type: literal$1("tool_use"),
564395
565265
  name: string(),
564396
565266
  id: string(),
564397
565267
  input: record(string(), unknown()),
@@ -564401,7 +565271,7 @@ function build$1() {
564401
565271
  * The contents of a resource, embedded into a prompt or tool call result.
564402
565272
  */
564403
565273
  const EmbeddedResourceSchema$1 = object$1({
564404
- type: literal("resource"),
565274
+ type: literal$1("resource"),
564405
565275
  resource: union([TextResourceContentsSchema$1, BlobResourceContentsSchema$1]),
564406
565276
  annotations: AnnotationsSchema$1.optional(),
564407
565277
  _meta: record(string(), unknown()).optional()
@@ -564411,7 +565281,7 @@ function build$1() {
564411
565281
  *
564412
565282
  * Note: resource links returned by tools are not guaranteed to appear in the results of {@linkcode ListResourcesRequest | resources/list} requests.
564413
565283
  */
564414
- const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal("resource_link") });
565284
+ const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal$1("resource_link") });
564415
565285
  /**
564416
565286
  * A content block that can be used in prompts and tool results.
564417
565287
  */
@@ -564440,7 +565310,7 @@ function build$1() {
564440
565310
  * An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This may be issued by servers without any previous subscription from the client.
564441
565311
  */
564442
565312
  const PromptListChangedNotificationSchema$1 = NotificationSchema$1.extend({
564443
- method: literal("notifications/prompts/list_changed"),
565313
+ method: literal$1("notifications/prompts/list_changed"),
564444
565314
  params: NotificationsParamsSchema$1.optional()
564445
565315
  });
564446
565316
  /**
@@ -564476,12 +565346,12 @@ function build$1() {
564476
565346
  ...IconsSchema$1.shape,
564477
565347
  description: string().optional(),
564478
565348
  inputSchema: object$1({
564479
- type: literal("object"),
565349
+ type: literal$1("object"),
564480
565350
  properties: record(string(), JSONValueSchema$1).optional(),
564481
565351
  required: array(string()).optional()
564482
565352
  }).catchall(unknown()),
564483
565353
  outputSchema: object$1({
564484
- type: literal("object"),
565354
+ type: literal$1("object"),
564485
565355
  properties: record(string(), JSONValueSchema$1).optional(),
564486
565356
  required: array(string()).optional()
564487
565357
  }).catchall(unknown()).optional(),
@@ -564492,7 +565362,7 @@ function build$1() {
564492
565362
  /**
564493
565363
  * Sent from the client to request a list of tools the server has.
564494
565364
  */
564495
- const ListToolsRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("tools/list") });
565365
+ const ListToolsRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("tools/list") });
564496
565366
  /**
564497
565367
  * The server's response to a {@linkcode ListToolsRequest | tools/list} request from the client.
564498
565368
  */
@@ -564516,14 +565386,14 @@ function build$1() {
564516
565386
  * Used by the client to invoke a tool provided by the server.
564517
565387
  */
564518
565388
  const CallToolRequestSchema$1 = RequestSchema$1.extend({
564519
- method: literal("tools/call"),
565389
+ method: literal$1("tools/call"),
564520
565390
  params: CallToolRequestParamsSchema$1
564521
565391
  });
564522
565392
  /**
564523
565393
  * An optional notification from the server to the client, informing it that the list of tools it offers has changed. This may be issued by servers without any previous subscription from the client.
564524
565394
  */
564525
565395
  const ToolListChangedNotificationSchema$1 = NotificationSchema$1.extend({
564526
- method: literal("notifications/tools/list_changed"),
565396
+ method: literal$1("notifications/tools/list_changed"),
564527
565397
  params: NotificationsParamsSchema$1.optional()
564528
565398
  });
564529
565399
  /**
@@ -564559,7 +565429,7 @@ function build$1() {
564559
565429
  * (STDIO servers) or OpenTelemetry.
564560
565430
  */
564561
565431
  const SetLevelRequestSchema$1 = RequestSchema$1.extend({
564562
- method: literal("logging/setLevel"),
565432
+ method: literal$1("logging/setLevel"),
564563
565433
  params: SetLevelRequestParamsSchema$1
564564
565434
  });
564565
565435
  /**
@@ -564582,7 +565452,7 @@ function build$1() {
564582
565452
  * (STDIO servers) or OpenTelemetry.
564583
565453
  */
564584
565454
  const LoggingMessageNotificationSchema$1 = NotificationSchema$1.extend({
564585
- method: literal("notifications/message"),
565455
+ method: literal$1("notifications/message"),
564586
565456
  params: LoggingMessageNotificationParamsSchema$1
564587
565457
  });
564588
565458
  /**
@@ -564627,7 +565497,7 @@ function build$1() {
564627
565497
  * provider APIs directly.
564628
565498
  */
564629
565499
  const ToolResultContentSchema$1 = object$1({
564630
- type: literal("tool_result"),
565500
+ type: literal$1("tool_result"),
564631
565501
  toolUseId: string().describe("The unique identifier for the corresponding tool call."),
564632
565502
  content: array(ContentBlockSchema$1),
564633
565503
  structuredContent: object$1({}).loose().optional(),
@@ -564705,7 +565575,7 @@ function build$1() {
564705
565575
  * provider APIs directly.
564706
565576
  */
564707
565577
  const CreateMessageRequestSchema$1 = RequestSchema$1.extend({
564708
- method: literal("sampling/createMessage"),
565578
+ method: literal$1("sampling/createMessage"),
564709
565579
  params: CreateMessageRequestParamsSchema$1
564710
565580
  });
564711
565581
  /**
@@ -564750,7 +565620,7 @@ function build$1() {
564750
565620
  * Primitive schema definition for boolean fields.
564751
565621
  */
564752
565622
  const BooleanSchemaSchema$1 = object$1({
564753
- type: literal("boolean"),
565623
+ type: literal$1("boolean"),
564754
565624
  title: string().optional(),
564755
565625
  description: string().optional(),
564756
565626
  default: boolean().optional()
@@ -564759,7 +565629,7 @@ function build$1() {
564759
565629
  * Primitive schema definition for string fields.
564760
565630
  */
564761
565631
  const StringSchemaSchema$1 = object$1({
564762
- type: literal("string"),
565632
+ type: literal$1("string"),
564763
565633
  title: string().optional(),
564764
565634
  description: string().optional(),
564765
565635
  minLength: number$1().optional(),
@@ -564787,7 +565657,7 @@ function build$1() {
564787
565657
  * Schema for single-selection enumeration without display titles for options.
564788
565658
  */
564789
565659
  const UntitledSingleSelectEnumSchemaSchema$1 = object$1({
564790
- type: literal("string"),
565660
+ type: literal$1("string"),
564791
565661
  title: string().optional(),
564792
565662
  description: string().optional(),
564793
565663
  enum: array(string()),
@@ -564797,7 +565667,7 @@ function build$1() {
564797
565667
  * Schema for single-selection enumeration with display titles for each option.
564798
565668
  */
564799
565669
  const TitledSingleSelectEnumSchemaSchema$1 = object$1({
564800
- type: literal("string"),
565670
+ type: literal$1("string"),
564801
565671
  title: string().optional(),
564802
565672
  description: string().optional(),
564803
565673
  oneOf: array(object$1({
@@ -564811,7 +565681,7 @@ function build$1() {
564811
565681
  * This interface will be removed in a future version.
564812
565682
  */
564813
565683
  const LegacyTitledEnumSchemaSchema$1 = object$1({
564814
- type: literal("string"),
565684
+ type: literal$1("string"),
564815
565685
  title: string().optional(),
564816
565686
  description: string().optional(),
564817
565687
  enum: array(string()),
@@ -564823,13 +565693,13 @@ function build$1() {
564823
565693
  * Schema for multiple-selection enumeration without display titles for options.
564824
565694
  */
564825
565695
  const UntitledMultiSelectEnumSchemaSchema$1 = object$1({
564826
- type: literal("array"),
565696
+ type: literal$1("array"),
564827
565697
  title: string().optional(),
564828
565698
  description: string().optional(),
564829
565699
  minItems: number$1().optional(),
564830
565700
  maxItems: number$1().optional(),
564831
565701
  items: object$1({
564832
- type: literal("string"),
565702
+ type: literal$1("string"),
564833
565703
  enum: array(string())
564834
565704
  }),
564835
565705
  default: array(string()).optional()
@@ -564838,7 +565708,7 @@ function build$1() {
564838
565708
  * Schema for multiple-selection enumeration with display titles for each option.
564839
565709
  */
564840
565710
  const TitledMultiSelectEnumSchemaSchema$1 = object$1({
564841
- type: literal("array"),
565711
+ type: literal$1("array"),
564842
565712
  title: string().optional(),
564843
565713
  description: string().optional(),
564844
565714
  minItems: number$1().optional(),
@@ -564874,10 +565744,10 @@ function build$1() {
564874
565744
  * Parameters for an `elicitation/create` request for form-based elicitation.
564875
565745
  */
564876
565746
  const ElicitRequestFormParamsSchema$1 = TaskAugmentedRequestParamsSchema$1.extend({
564877
- mode: literal("form").optional(),
565747
+ mode: literal$1("form").optional(),
564878
565748
  message: string(),
564879
565749
  requestedSchema: object$1({
564880
- type: literal("object"),
565750
+ type: literal$1("object"),
564881
565751
  properties: record(string(), PrimitiveSchemaDefinitionSchema$1),
564882
565752
  required: array(string()).optional()
564883
565753
  }).catchall(unknown())
@@ -564886,7 +565756,7 @@ function build$1() {
564886
565756
  * Parameters for an {@linkcode ElicitRequest | elicitation/create} request for URL-based elicitation.
564887
565757
  */
564888
565758
  const ElicitRequestURLParamsSchema$1 = TaskAugmentedRequestParamsSchema$1.extend({
564889
- mode: literal("url"),
565759
+ mode: literal$1("url"),
564890
565760
  message: string(),
564891
565761
  elicitationId: string(),
564892
565762
  url: string().url()
@@ -564901,7 +565771,7 @@ function build$1() {
564901
565771
  * or navigate to a URL (URL mode).
564902
565772
  */
564903
565773
  const ElicitRequestSchema$1 = RequestSchema$1.extend({
564904
- method: literal("elicitation/create"),
565774
+ method: literal$1("elicitation/create"),
564905
565775
  params: ElicitRequestParamsSchema$1
564906
565776
  });
564907
565777
  /**
@@ -564916,7 +565786,7 @@ function build$1() {
564916
565786
  * @category notifications/elicitation/complete
564917
565787
  */
564918
565788
  const ElicitationCompleteNotificationSchema$1 = NotificationSchema$1.extend({
564919
- method: literal("notifications/elicitation/complete"),
565789
+ method: literal$1("notifications/elicitation/complete"),
564920
565790
  params: ElicitationCompleteNotificationParamsSchema$1
564921
565791
  });
564922
565792
  /**
@@ -564939,14 +565809,14 @@ function build$1() {
564939
565809
  * A reference to a resource or resource template definition.
564940
565810
  */
564941
565811
  const ResourceTemplateReferenceSchema$1 = object$1({
564942
- type: literal("ref/resource"),
565812
+ type: literal$1("ref/resource"),
564943
565813
  uri: string()
564944
565814
  });
564945
565815
  /**
564946
565816
  * Identifies a prompt.
564947
565817
  */
564948
565818
  const PromptReferenceSchema$1 = object$1({
564949
- type: literal("ref/prompt"),
565819
+ type: literal$1("ref/prompt"),
564950
565820
  name: string()
564951
565821
  });
564952
565822
  /**
@@ -564964,7 +565834,7 @@ function build$1() {
564964
565834
  * A request from the client to the server, to ask for completion options.
564965
565835
  */
564966
565836
  const CompleteRequestSchema$1 = RequestSchema$1.extend({
564967
- method: literal("completion/complete"),
565837
+ method: literal$1("completion/complete"),
564968
565838
  params: CompleteRequestParamsSchema$1
564969
565839
  });
564970
565840
  /**
@@ -564995,7 +565865,7 @@ function build$1() {
564995
565865
  * tool parameters, resource URIs, or configuration.
564996
565866
  */
564997
565867
  const ListRootsRequestSchema$1 = RequestSchema$1.extend({
564998
- method: literal("roots/list"),
565868
+ method: literal$1("roots/list"),
564999
565869
  params: BaseRequestParamsSchema$1.optional()
565000
565870
  });
565001
565871
  /**
@@ -565014,7 +565884,7 @@ function build$1() {
565014
565884
  * tool parameters, resource URIs, or configuration.
565015
565885
  */
565016
565886
  const RootsListChangedNotificationSchema$1 = NotificationSchema$1.extend({
565017
- method: literal("notifications/roots/list_changed"),
565887
+ method: literal$1("notifications/roots/list_changed"),
565018
565888
  params: NotificationsParamsSchema$1.optional()
565019
565889
  });
565020
565890
  /**
@@ -565070,7 +565940,7 @@ function build$1() {
565070
565940
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
565071
565941
  */
565072
565942
  const TaskStatusNotificationSchema$1 = NotificationSchema$1.extend({
565073
- method: literal("notifications/tasks/status"),
565943
+ method: literal$1("notifications/tasks/status"),
565074
565944
  params: TaskStatusNotificationParamsSchema$1
565075
565945
  });
565076
565946
  /**
@@ -565079,7 +565949,7 @@ function build$1() {
565079
565949
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
565080
565950
  */
565081
565951
  const GetTaskRequestSchema$1 = RequestSchema$1.extend({
565082
- method: literal("tasks/get"),
565952
+ method: literal$1("tasks/get"),
565083
565953
  params: BaseRequestParamsSchema$1.extend({ taskId: string() })
565084
565954
  });
565085
565955
  /**
@@ -565094,7 +565964,7 @@ function build$1() {
565094
565964
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
565095
565965
  */
565096
565966
  const GetTaskPayloadRequestSchema$1 = RequestSchema$1.extend({
565097
- method: literal("tasks/result"),
565967
+ method: literal$1("tasks/result"),
565098
565968
  params: BaseRequestParamsSchema$1.extend({ taskId: string() })
565099
565969
  });
565100
565970
  /**
@@ -565111,7 +565981,7 @@ function build$1() {
565111
565981
  *
565112
565982
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
565113
565983
  */
565114
- const ListTasksRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal("tasks/list") });
565984
+ const ListTasksRequestSchema$1 = PaginatedRequestSchema$1.extend({ method: literal$1("tasks/list") });
565115
565985
  /**
565116
565986
  * The response to a {@linkcode ListTasksRequest | tasks/list} request.
565117
565987
  *
@@ -565124,7 +565994,7 @@ function build$1() {
565124
565994
  * @deprecated 2025-11-25 wire vocabulary with no SDK runtime; kept importable for interoperability only.
565125
565995
  */
565126
565996
  const CancelTaskRequestSchema$1 = RequestSchema$1.extend({
565127
- method: literal("tasks/cancel"),
565997
+ method: literal$1("tasks/cancel"),
565128
565998
  params: BaseRequestParamsSchema$1.extend({ taskId: string() })
565129
565999
  });
565130
566000
  return {
@@ -565878,7 +566748,7 @@ function build() {
565878
566748
  progressToken: ProgressTokenSchema$1
565879
566749
  });
565880
566750
  const ProgressNotificationSchema$1 = NotificationSchema$1.extend({
565881
- method: literal("notifications/progress"),
566751
+ method: literal$1("notifications/progress"),
565882
566752
  params: ProgressNotificationParamsSchema$1
565883
566753
  });
565884
566754
  const LoggingMessageNotificationParamsSchema$1 = NotificationsParamsSchema$1.extend({
@@ -565887,7 +566757,7 @@ function build() {
565887
566757
  data: unknown()
565888
566758
  });
565889
566759
  const LoggingMessageNotificationSchema$1 = NotificationSchema$1.extend({
565890
- method: literal("notifications/message"),
566760
+ method: literal$1("notifications/message"),
565891
566761
  params: LoggingMessageNotificationParamsSchema$1
565892
566762
  });
565893
566763
  const ResourceContentsSchema$1 = object$1({
@@ -565922,12 +566792,12 @@ function build() {
565922
566792
  _meta: optional(looseObject({}))
565923
566793
  });
565924
566794
  const ResourceListChangedNotificationSchema$1 = NotificationSchema$1.extend({
565925
- method: literal("notifications/resources/list_changed"),
566795
+ method: literal$1("notifications/resources/list_changed"),
565926
566796
  params: NotificationsParamsSchema$1.optional()
565927
566797
  });
565928
566798
  const ResourceUpdatedNotificationParamsSchema$1 = NotificationsParamsSchema$1.extend({ uri: string() });
565929
566799
  const ResourceUpdatedNotificationSchema$1 = NotificationSchema$1.extend({
565930
- method: literal("notifications/resources/updated"),
566800
+ method: literal$1("notifications/resources/updated"),
565931
566801
  params: ResourceUpdatedNotificationParamsSchema$1
565932
566802
  });
565933
566803
  const PromptArgumentSchema$1 = object$1({
@@ -565943,43 +566813,43 @@ function build() {
565943
566813
  _meta: optional(looseObject({}))
565944
566814
  });
565945
566815
  const PromptListChangedNotificationSchema$1 = NotificationSchema$1.extend({
565946
- method: literal("notifications/prompts/list_changed"),
566816
+ method: literal$1("notifications/prompts/list_changed"),
565947
566817
  params: NotificationsParamsSchema$1.optional()
565948
566818
  });
565949
566819
  const TextContentSchema$1 = object$1({
565950
- type: literal("text"),
566820
+ type: literal$1("text"),
565951
566821
  text: string(),
565952
566822
  annotations: AnnotationsSchema$1.optional(),
565953
566823
  _meta: record(string(), unknown()).optional()
565954
566824
  });
565955
566825
  const ImageContentSchema$1 = object$1({
565956
- type: literal("image"),
566826
+ type: literal$1("image"),
565957
566827
  data: Base64Schema,
565958
566828
  mimeType: string(),
565959
566829
  annotations: AnnotationsSchema$1.optional(),
565960
566830
  _meta: record(string(), unknown()).optional()
565961
566831
  });
565962
566832
  const AudioContentSchema$1 = object$1({
565963
- type: literal("audio"),
566833
+ type: literal$1("audio"),
565964
566834
  data: Base64Schema,
565965
566835
  mimeType: string(),
565966
566836
  annotations: AnnotationsSchema$1.optional(),
565967
566837
  _meta: record(string(), unknown()).optional()
565968
566838
  });
565969
566839
  const ToolUseContentSchema$1 = object$1({
565970
- type: literal("tool_use"),
566840
+ type: literal$1("tool_use"),
565971
566841
  name: string(),
565972
566842
  id: string(),
565973
566843
  input: record(string(), unknown()),
565974
566844
  _meta: record(string(), unknown()).optional()
565975
566845
  });
565976
566846
  const EmbeddedResourceSchema$1 = object$1({
565977
- type: literal("resource"),
566847
+ type: literal$1("resource"),
565978
566848
  resource: union([TextResourceContentsSchema$1, BlobResourceContentsSchema$1]),
565979
566849
  annotations: AnnotationsSchema$1.optional(),
565980
566850
  _meta: record(string(), unknown()).optional()
565981
566851
  });
565982
- const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal("resource_link") });
566852
+ const ResourceLinkSchema$1 = ResourceSchema$1.extend({ type: literal$1("resource_link") });
565983
566853
  const ContentBlockSchema$1 = union([
565984
566854
  TextContentSchema$1,
565985
566855
  ImageContentSchema$1,
@@ -565999,7 +566869,7 @@ function build() {
565999
566869
  openWorldHint: boolean().optional()
566000
566870
  });
566001
566871
  const ToolListChangedNotificationSchema$1 = NotificationSchema$1.extend({
566002
- method: literal("notifications/tools/list_changed"),
566872
+ method: literal$1("notifications/tools/list_changed"),
566003
566873
  params: NotificationsParamsSchema$1.optional()
566004
566874
  });
566005
566875
  const ModelHintSchema$1 = object$1({ name: string().optional() });
@@ -566015,13 +566885,13 @@ function build() {
566015
566885
  "none"
566016
566886
  ]).optional() });
566017
566887
  const BooleanSchemaSchema$1 = object$1({
566018
- type: literal("boolean"),
566888
+ type: literal$1("boolean"),
566019
566889
  title: string().optional(),
566020
566890
  description: string().optional(),
566021
566891
  default: boolean().optional()
566022
566892
  });
566023
566893
  const StringSchemaSchema$1 = object$1({
566024
- type: literal("string"),
566894
+ type: literal$1("string"),
566025
566895
  title: string().optional(),
566026
566896
  description: string().optional(),
566027
566897
  minLength: number$1().optional(),
@@ -566043,14 +566913,14 @@ function build() {
566043
566913
  default: number$1().optional()
566044
566914
  });
566045
566915
  const UntitledSingleSelectEnumSchemaSchema$1 = object$1({
566046
- type: literal("string"),
566916
+ type: literal$1("string"),
566047
566917
  title: string().optional(),
566048
566918
  description: string().optional(),
566049
566919
  enum: array(string()),
566050
566920
  default: string().optional()
566051
566921
  });
566052
566922
  const TitledSingleSelectEnumSchemaSchema$1 = object$1({
566053
- type: literal("string"),
566923
+ type: literal$1("string"),
566054
566924
  title: string().optional(),
566055
566925
  description: string().optional(),
566056
566926
  oneOf: array(object$1({
@@ -566060,7 +566930,7 @@ function build() {
566060
566930
  default: string().optional()
566061
566931
  });
566062
566932
  const LegacyTitledEnumSchemaSchema$1 = object$1({
566063
- type: literal("string"),
566933
+ type: literal$1("string"),
566064
566934
  title: string().optional(),
566065
566935
  description: string().optional(),
566066
566936
  enum: array(string()),
@@ -566069,19 +566939,19 @@ function build() {
566069
566939
  });
566070
566940
  const SingleSelectEnumSchemaSchema$1 = union([UntitledSingleSelectEnumSchemaSchema$1, TitledSingleSelectEnumSchemaSchema$1]);
566071
566941
  const UntitledMultiSelectEnumSchemaSchema$1 = object$1({
566072
- type: literal("array"),
566942
+ type: literal$1("array"),
566073
566943
  title: string().optional(),
566074
566944
  description: string().optional(),
566075
566945
  minItems: number$1().optional(),
566076
566946
  maxItems: number$1().optional(),
566077
566947
  items: object$1({
566078
- type: literal("string"),
566948
+ type: literal$1("string"),
566079
566949
  enum: array(string())
566080
566950
  }),
566081
566951
  default: array(string()).optional()
566082
566952
  });
566083
566953
  const TitledMultiSelectEnumSchemaSchema$1 = object$1({
566084
- type: literal("array"),
566954
+ type: literal$1("array"),
566085
566955
  title: string().optional(),
566086
566956
  description: string().optional(),
566087
566957
  minItems: number$1().optional(),
@@ -566105,20 +566975,20 @@ function build() {
566105
566975
  NumberSchemaSchema$1
566106
566976
  ]);
566107
566977
  const ElicitRequestFormParamsSchema$1 = TaskAugmentedRequestParamsSchema$1.extend({
566108
- mode: literal("form").optional(),
566978
+ mode: literal$1("form").optional(),
566109
566979
  message: string(),
566110
566980
  requestedSchema: object$1({
566111
- type: literal("object"),
566981
+ type: literal$1("object"),
566112
566982
  properties: record(string(), PrimitiveSchemaDefinitionSchema$1),
566113
566983
  required: array(string()).optional()
566114
566984
  }).catchall(unknown())
566115
566985
  });
566116
566986
  const ResourceTemplateReferenceSchema$1 = object$1({
566117
- type: literal("ref/resource"),
566987
+ type: literal$1("ref/resource"),
566118
566988
  uri: string()
566119
566989
  });
566120
566990
  const PromptReferenceSchema$1 = object$1({
566121
- type: literal("ref/prompt"),
566991
+ type: literal$1("ref/prompt"),
566122
566992
  name: string()
566123
566993
  });
566124
566994
  const RootSchema$1 = object$1({
@@ -566169,7 +567039,7 @@ function build() {
566169
567039
  description: string().optional(),
566170
567040
  inputSchema: looseObject({
566171
567041
  $schema: string().optional(),
566172
- type: literal("object")
567042
+ type: literal$1("object")
566173
567043
  }),
566174
567044
  outputSchema: looseObject({ $schema: string().optional() }).optional(),
566175
567045
  annotations: ToolAnnotationsSchema$1.optional(),
@@ -566177,7 +567047,7 @@ function build() {
566177
567047
  });
566178
567048
  /** 2026-era ToolResultContent (anchor-exact: `structuredContent?: unknown`). */
566179
567049
  const ToolResultContentSchema$1 = object$1({
566180
- type: literal("tool_result"),
567050
+ type: literal$1("tool_result"),
566181
567051
  toolUseId: string(),
566182
567052
  content: array(ContentBlockSchema$1),
566183
567053
  structuredContent: unknown().optional(),
@@ -566290,7 +567160,7 @@ function build() {
566290
567160
  });
566291
567161
  /** 2026-era embedded sampling request (de-JSON-RPC'd). */
566292
567162
  const CreateMessageRequestSchema$1 = object$1({
566293
- method: literal("sampling/createMessage"),
567163
+ method: literal$1("sampling/createMessage"),
566294
567164
  params: CreateMessageRequestParamsSchema$1
566295
567165
  });
566296
567166
  /**
@@ -566299,7 +567169,7 @@ function build() {
566299
567169
  * the anchor declares a bare optional `_meta` on `params`.
566300
567170
  */
566301
567171
  const ListRootsRequestSchema$1 = object$1({
566302
- method: literal("roots/list"),
567172
+ method: literal$1("roots/list"),
566303
567173
  params: object$1({ _meta: record(string(), unknown()).optional() }).optional()
566304
567174
  });
566305
567175
  /** 2026-era embedded sampling response (anchor-exact: extends the forked SamplingMessage). */
@@ -566331,7 +567201,7 @@ function build() {
566331
567201
  * frozen 2025-11-25 revision.
566332
567202
  */
566333
567203
  const ElicitRequestURLParamsSchema$1 = object$1({
566334
- mode: literal("url"),
567204
+ mode: literal$1("url"),
566335
567205
  message: string(),
566336
567206
  url: string().url()
566337
567207
  });
@@ -566339,7 +567209,7 @@ function build() {
566339
567209
  const ElicitRequestParamsSchema$1 = union([ElicitRequestFormParamsSchema$1, ElicitRequestURLParamsSchema$1]);
566340
567210
  /** 2026-era embedded elicitation request (de-JSON-RPC'd; see the URL-mode fork above). */
566341
567211
  const ElicitRequestSchema$1 = object$1({
566342
- method: literal("elicitation/create"),
567212
+ method: literal$1("elicitation/create"),
566343
567213
  params: ElicitRequestParamsSchema$1
566344
567214
  });
566345
567215
  /** A single embedded input request (one of the three demoted server→client requests). */
@@ -566381,7 +567251,7 @@ function build() {
566381
567251
  const DispatchRequestMetaSchema = looseObject({ progressToken: ProgressTokenSchema$1.optional() });
566382
567252
  function wireRequest(method, paramsShape) {
566383
567253
  return object$1({
566384
- method: literal(method),
567254
+ method: literal$1(method),
566385
567255
  params: object$1({
566386
567256
  _meta: RequestMetaEnvelopeSchema,
566387
567257
  ...paramsShape
@@ -566390,7 +567260,7 @@ function build() {
566390
567260
  }
566391
567261
  function dispatchRequest(method, paramsShape) {
566392
567262
  return object$1({
566393
- method: literal(method),
567263
+ method: literal$1(method),
566394
567264
  params: object$1({
566395
567265
  _meta: DispatchRequestMetaSchema.optional(),
566396
567266
  ...paramsShape
@@ -566538,7 +567408,7 @@ function build() {
566538
567408
  const NotificationMetaSchema = looseObject({ "io.modelcontextprotocol/subscriptionId": RequestIdSchema$1.optional() });
566539
567409
  /** Anchor SubscriptionsAcknowledgedNotification (2026-only). */
566540
567410
  const SubscriptionsAcknowledgedNotificationSchema$1 = object$1({
566541
- method: literal("notifications/subscriptions/acknowledged"),
567411
+ method: literal$1("notifications/subscriptions/acknowledged"),
566542
567412
  params: object$1({
566543
567413
  _meta: NotificationMetaSchema.optional(),
566544
567414
  notifications: SubscriptionFilterSchema$1
@@ -566558,7 +567428,7 @@ function build() {
566558
567428
  });
566559
567429
  /** 2026-era `notifications/cancelled` (see the params fork above). */
566560
567430
  const CancelledNotificationSchema$1 = object$1({
566561
- method: literal("notifications/cancelled"),
567431
+ method: literal$1("notifications/cancelled"),
566562
567432
  params: CancelledNotificationParamsSchema$1
566563
567433
  });
566564
567434
  const notificationSchemas2026 = {
@@ -566572,7 +567442,7 @@ function build() {
566572
567442
  "notifications/subscriptions/acknowledged": SubscriptionsAcknowledgedNotificationSchema$1
566573
567443
  };
566574
567444
  const wireResultResponse = (result) => object$1({
566575
- jsonrpc: literal("2.0"),
567445
+ jsonrpc: literal$1("2.0"),
566576
567446
  id: union([string(), number$1().int()]),
566577
567447
  result
566578
567448
  }).strict();
@@ -567151,15 +568021,15 @@ function inputSchemaMaps() {
567151
568021
  maps = {
567152
568022
  request: {
567153
568023
  "elicitation/create": object$1({
567154
- method: literal("elicitation/create"),
568024
+ method: literal$1("elicitation/create"),
567155
568025
  params: s.ElicitRequestParamsSchema
567156
568026
  }),
567157
568027
  "sampling/createMessage": object$1({
567158
- method: literal("sampling/createMessage"),
568028
+ method: literal$1("sampling/createMessage"),
567159
568029
  params: s.CreateMessageRequestParamsSchema
567160
568030
  }),
567161
568031
  "roots/list": object$1({
567162
- method: literal("roots/list"),
568032
+ method: literal$1("roots/list"),
567163
568033
  params: looseObject({}).optional()
567164
568034
  })
567165
568035
  },
@@ -592813,6 +593683,7 @@ function createProgram() {
592813
593683
  registerAgentGroupCommand(program);
592814
593684
  registerAgentSignalCommand(program);
592815
593685
  registerBotCommand(program);
593686
+ registerArtboardCommand(program);
592816
593687
  registerChannelCommand(program);
592817
593688
  registerGenerateCommand(program);
592818
593689
  registerGoalCommand$1(program);