@tempad-dev/mcp 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +5 -1
  2. package/README.zh-Hans.md +3 -1
  3. package/dist/{acquire-TEiVy85j.mjs → acquire-C1v5UQB2.mjs} +1 -1
  4. package/dist/{acquire-DkkzoJ5Z.mjs → acquire-DK4Fg36-.mjs} +6 -7
  5. package/dist/{acquire-DkkzoJ5Z.mjs.map → acquire-DK4Fg36-.mjs.map} +1 -1
  6. package/dist/{bootstrap-Cz9cxf6f.mjs → bootstrap-CNJpiOAm.mjs} +14 -15
  7. package/dist/{bootstrap-Cz9cxf6f.mjs.map → bootstrap-CNJpiOAm.mjs.map} +1 -1
  8. package/dist/cli.mjs +12 -13
  9. package/dist/cli.mjs.map +1 -1
  10. package/dist/{client-binding-CuHY1-__.mjs → client-binding-CvSSv9JC.mjs} +4 -5
  11. package/dist/{client-binding-CuHY1-__.mjs.map → client-binding-CvSSv9JC.mjs.map} +1 -1
  12. package/dist/{cold-start-DnlXxs4o.mjs → cold-start-BOLlW_0n.mjs} +11 -12
  13. package/dist/{cold-start-DnlXxs4o.mjs.map → cold-start-BOLlW_0n.mjs.map} +1 -1
  14. package/dist/{cold-start-r07QQPSK.mjs → cold-start-DeFnhN3x.mjs} +1 -1
  15. package/dist/{config-CM4LsvW5.mjs → config-Busa_Dqv.mjs} +42 -31
  16. package/dist/config-Busa_Dqv.mjs.map +1 -0
  17. package/dist/{design-task-store-C9DJ_EQq.mjs → design-task-store-BHR54v8-.mjs} +8 -10
  18. package/dist/{design-task-store-C9DJ_EQq.mjs.map → design-task-store-BHR54v8-.mjs.map} +1 -1
  19. package/dist/{durable-json-dsqpwT93.mjs → durable-json-_WKesGDj.mjs} +2 -3
  20. package/dist/{durable-json-dsqpwT93.mjs.map → durable-json-_WKesGDj.mjs.map} +1 -1
  21. package/dist/{edge-C5SyBEy3.mjs → edge-DP-CwLYS.mjs} +1 -1
  22. package/dist/{edge-DBOKhsN4.mjs → edge-m9VuTeju.mjs} +14 -15
  23. package/dist/{edge-DBOKhsN4.mjs.map → edge-m9VuTeju.mjs.map} +1 -1
  24. package/dist/{hook-receipts-DcO9rRhi.mjs → hook-receipts-QJU3AMoY.mjs} +4 -5
  25. package/dist/{hook-receipts-DcO9rRhi.mjs.map → hook-receipts-QJU3AMoY.mjs.map} +1 -1
  26. package/dist/{host-context-CRMK5AI5.mjs → host-context-9TVtjsSm.mjs} +3 -4
  27. package/dist/{host-context-CRMK5AI5.mjs.map → host-context-9TVtjsSm.mjs.map} +1 -1
  28. package/dist/{hub-control-591ZGr_p.mjs → hub-control-UlA4Fncg.mjs} +7 -9
  29. package/dist/{hub-control-591ZGr_p.mjs.map → hub-control-UlA4Fncg.mjs.map} +1 -1
  30. package/dist/{hub-runtime-j_CZJnWz.mjs → hub-runtime-BBnfo1yd.mjs} +162 -158
  31. package/dist/hub-runtime-BBnfo1yd.mjs.map +1 -0
  32. package/dist/{hub-runtime-_GWa0RDc.mjs → hub-runtime-U3Set0EC.mjs} +1 -1
  33. package/dist/hub.mjs +3 -4
  34. package/dist/{identity-BgzOQE2L.mjs → identity-CCaDEwgc.mjs} +4 -5
  35. package/dist/{identity-BgzOQE2L.mjs.map → identity-CCaDEwgc.mjs.map} +1 -1
  36. package/dist/{indexes-CCA-CTcL.mjs → indexes-zYqwqnU6.mjs} +10 -12
  37. package/dist/{indexes-CCA-CTcL.mjs.map → indexes-zYqwqnU6.mjs.map} +1 -1
  38. package/dist/log-transport.mjs +234 -143
  39. package/dist/log-transport.mjs.map +1 -1
  40. package/dist/managed-runtime.mjs +15 -17
  41. package/dist/managed-runtime.mjs.map +1 -1
  42. package/dist/{on-exit-leak-free-BvimJ0rP.mjs → on-exit-leak-free-By20-eFK.mjs} +6 -8
  43. package/dist/{on-exit-leak-free-BvimJ0rP.mjs.map → on-exit-leak-free-By20-eFK.mjs.map} +1 -1
  44. package/dist/{pino-CLoB7tK6.mjs → pino-BiEyUxFF.mjs} +56 -82
  45. package/dist/pino-BiEyUxFF.mjs.map +1 -0
  46. package/dist/{pino-abstract-transport-B0ISte63.mjs → pino-abstract-transport-BBwCGDga.mjs} +4 -6
  47. package/dist/{pino-abstract-transport-B0ISte63.mjs.map → pino-abstract-transport-BBwCGDga.mjs.map} +1 -1
  48. package/dist/pino-file.mjs +3 -4
  49. package/dist/pino-worker.mjs +6 -8
  50. package/dist/pino-worker.mjs.map +1 -1
  51. package/dist/{probe-B6KQJxXU.mjs → probe-CqjOWdnP.mjs} +40 -55
  52. package/dist/probe-CqjOWdnP.mjs.map +1 -0
  53. package/dist/{process-environment-DJDtCcdv.mjs → process-environment-DRRIdoL8.mjs} +2 -3
  54. package/dist/{process-environment-DJDtCcdv.mjs.map → process-environment-DRRIdoL8.mjs.map} +1 -1
  55. package/dist/{processes-n0G2xAWb.mjs → processes-BnvaDi81.mjs} +1 -1
  56. package/dist/{processes-CQvuh1Sl.mjs → processes-DOmrri5n.mjs} +17 -23
  57. package/dist/{processes-CQvuh1Sl.mjs.map → processes-DOmrri5n.mjs.map} +1 -1
  58. package/dist/{proper-lockfile-CisPoFAZ.mjs → proper-lockfile-BgKrOq5D.mjs} +19 -32
  59. package/dist/{proper-lockfile-CisPoFAZ.mjs.map → proper-lockfile-BgKrOq5D.mjs.map} +1 -1
  60. package/dist/{protocol-DNswG6F2.mjs → protocol-7m-E_iFu.mjs} +57 -108
  61. package/dist/protocol-7m-E_iFu.mjs.map +1 -0
  62. package/dist/{protocol-0jvK718o.mjs → protocol-COK3rM6m.mjs} +1 -1
  63. package/dist/{rolldown-runtime-CLlik3RS.mjs → rolldown-runtime-BH1-_iVd.mjs} +2 -3
  64. package/dist/{runtime-identity-BiWIlGgw.mjs → runtime-identity-D9V-g5M-.mjs} +2 -3
  65. package/dist/{runtime-identity-BiWIlGgw.mjs.map → runtime-identity-D9V-g5M-.mjs.map} +1 -1
  66. package/dist/runtime-installer.mjs +4 -5
  67. package/dist/runtime-manifest.json +109 -109
  68. package/dist/{runtime-platform-EULgJm_w.mjs → runtime-platform-CpunJOI4.mjs} +144 -45
  69. package/dist/runtime-platform-CpunJOI4.mjs.map +1 -0
  70. package/dist/{runtime-recovery-Dq3hD3IT.mjs → runtime-recovery-DAYSaVV2.mjs} +1 -1
  71. package/dist/{runtime-recovery-DpqftTl9.mjs → runtime-recovery-DaRaQ8qY.mjs} +5 -6
  72. package/dist/{runtime-recovery-DpqftTl9.mjs.map → runtime-recovery-DaRaQ8qY.mjs.map} +1 -1
  73. package/dist/runtime-verification.mjs +6 -6
  74. package/dist/{schemas-BgOH6OcJ.mjs → schemas-ZDdPV7RQ.mjs} +23 -39
  75. package/dist/schemas-ZDdPV7RQ.mjs.map +1 -0
  76. package/dist/{server-C-tcoOT7.mjs → server-CsCpY0Ft.mjs} +645 -287
  77. package/dist/server-CsCpY0Ft.mjs.map +1 -0
  78. package/dist/{shared--CO_WPTx.mjs → shared-8_j_xlsJ.mjs} +20 -22
  79. package/dist/{shared--CO_WPTx.mjs.map → shared-8_j_xlsJ.mjs.map} +1 -1
  80. package/dist/{state-3mPLv7lh.mjs → shared-Bvmw_Pv0.mjs} +1 -1
  81. package/dist/{src-BGNQgTr6.mjs → src-BSnzZMvK.mjs} +3 -4
  82. package/dist/{src-BGNQgTr6.mjs.map → src-BSnzZMvK.mjs.map} +1 -1
  83. package/dist/{stable-edge-DQmYi4Mf.mjs → stable-edge-VAAxSYSS.mjs} +10 -14
  84. package/dist/stable-edge-VAAxSYSS.mjs.map +1 -0
  85. package/dist/{startup-log-iSoBU74r.mjs → startup-log-BI24ryBR.mjs} +3 -4
  86. package/dist/{startup-log-iSoBU74r.mjs.map → startup-log-BI24ryBR.mjs.map} +1 -1
  87. package/dist/{startup-log-C4DVL-6M.mjs → startup-log-isQ9Wv18.mjs} +1 -1
  88. package/dist/{state-CnkSwi5E.mjs → state-4Dz7r-_n.mjs} +5 -6
  89. package/dist/{state-CnkSwi5E.mjs.map → state-4Dz7r-_n.mjs.map} +1 -1
  90. package/dist/{shared-B8lb63iG.mjs → state-DDpxeTVd.mjs} +1 -1
  91. package/dist/{stdio-CZb1NNIa.mjs → stdio-20SBFdww.mjs} +3 -4
  92. package/dist/{stdio-CZb1NNIa.mjs.map → stdio-20SBFdww.mjs.map} +1 -1
  93. package/dist/{supervisor-B9lkK4ey.mjs → supervisor-Cu-xRt1k.mjs} +23 -27
  94. package/dist/{supervisor-B9lkK4ey.mjs.map → supervisor-Cu-xRt1k.mjs.map} +1 -1
  95. package/dist/{task-storage-recovery-_JdAWD5X.mjs → task-storage-recovery-fSo2eskS.mjs} +6 -7
  96. package/dist/{task-storage-recovery-_JdAWD5X.mjs.map → task-storage-recovery-fSo2eskS.mjs.map} +1 -1
  97. package/dist/thread-stream-worker.mjs +5 -6
  98. package/dist/thread-stream-worker.mjs.map +1 -1
  99. package/dist/{types-BEqvvpHh.mjs → types-C8GH0osr.mjs} +1 -1
  100. package/dist/{types-gJ5HkL66.mjs → types-kNTSQOnR.mjs} +4 -6
  101. package/dist/{types-gJ5HkL66.mjs.map → types-kNTSQOnR.mjs.map} +1 -1
  102. package/package.json +1 -1
  103. package/dist/config-CM4LsvW5.mjs.map +0 -1
  104. package/dist/hub-runtime-j_CZJnWz.mjs.map +0 -1
  105. package/dist/pino-CLoB7tK6.mjs.map +0 -1
  106. package/dist/probe-B6KQJxXU.mjs.map +0 -1
  107. package/dist/protocol-DNswG6F2.mjs.map +0 -1
  108. package/dist/runtime-platform-EULgJm_w.mjs.map +0 -1
  109. package/dist/schemas-BgOH6OcJ.mjs.map +0 -1
  110. package/dist/server-C-tcoOT7.mjs.map +0 -1
  111. package/dist/stable-edge-DQmYi4Mf.mjs.map +0 -1
@@ -4,26 +4,26 @@ globalThis.__bundlerPathsOverrides = {
4
4
  'pino-worker': runtimeFilePath(new URL('./pino-worker.mjs', import.meta.url)),
5
5
  'pino/file': runtimeFilePath(new URL('./pino-file.mjs', import.meta.url))
6
6
  };
7
- import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-CLlik3RS.mjs";
8
- import { t as require_proper_lockfile } from "./proper-lockfile-CisPoFAZ.mjs";
9
- import { m as object$3, n as ZodOptional, o as array } from "./schemas-BgOH6OcJ.mjs";
10
- import { Bn as assertCompleteRequestResourceTemplate, F as ErrorCode, L as GetPromptRequestSchema, Vt as ReadResourceRequestSchema, ct as ListResourcesRequestSchema, g as CompleteRequestSchema, it as ListPromptsRequestSchema, mt as ListToolsRequestSchema, ot as ListResourceTemplatesRequestSchema, s as CallToolRequestSchema, yt as McpError, zn as assertCompleteRequestPrompt } from "./types-gJ5HkL66.mjs";
11
- import { a as codexConversationKey, c as hostConversationKey, l as requireHostContext, n as HostContextSchema, o as codexStoreKey, r as MISSING_HOST_CONTEXT_MESSAGE, s as hostContextKey, t as HostContextNotificationSchema } from "./host-context-CRMK5AI5.mjs";
12
- import { A as TEMPAD_MCP_ERROR_CODES, B as RESUMABLE_DESIGN_TASK_STATUSES, C as measureCallToolResultBytes, E as MessageFromExtensionSchema, F as DesignTaskIdSchema, G as MCP_NODE_READ_BATCH_WORK_BUDGET_MS, H as formatDesignFeedback, I as DesignTaskSchema, J as TEMPAD_MCP_BRIDGE_SUPPORTED_PROTOCOL_VERSIONS, K as MCP_TOOL_INLINE_BUDGET_BYTES, L as FigmaSessionSchema, O as sameRuntimeProfile, P as DesignAnchorSchema, S as buildUploadAssetToolResult, T as LegacyMessageFromExtensionSchema, V as SetDesignAnchorParametersSchema, W as MCP_MAX_ASSET_BYTES, _ as buildApplyCanvasToolResult, a as ClientHookRequestSchema, b as buildGetScreenshotToolResult, c as GetDesignSystemResultSchema, d as UploadAssetParametersSchema, f as UploadAssetResultSchema, h as CanvasPageSnapshotSchema, i as ClientHookParamsSchema, j as AGENT_CLIENTS, k as LegacyToolCallPayloadSchema, l as GetScreenshotParametersSchema, m as ApplyCanvasResultSchema, o as GetCodeParametersSchema, p as ApplyCanvasParametersSchema, q as TEMPAD_MCP_BRIDGE_SUBPROTOCOL, s as GetDesignSystemParametersSchema, t as getMcpServerConfig, u as GetStructureParametersSchema, v as buildGetCodeToolResult, w as utf8Bytes, x as buildGetStructureToolResult, y as buildGetDesignSystemToolResult, z as ManageDesignTaskParametersSchema } from "./config-CM4LsvW5.mjs";
13
- import { n as bindRequestMetadata, r as clientDescriptor, t as ClientEventSchema } from "./identity-BgzOQE2L.mjs";
14
- import { r as deserializeMessage } from "./stdio-CZb1NNIa.mjs";
15
- import { n as ClientBindingSubscribeSchema, r as ClientBindingUpdateSchema } from "./client-binding-CuHY1-__.mjs";
16
- import { t as hostEnvironment } from "./process-environment-DJDtCcdv.mjs";
17
- import { a as HUB_RUNTIME_IDENTITY_PATH, b as resolveStateDir, c as PACKAGE_VERSION, d as SOCK_PATH, g as log, h as getRecordProperty, i as HUB_LOCK_UPDATE_MS, l as RUNTIME_DIR, m as ensureFile, n as HUB_LOCK_PATH, p as ensureDir, r as HUB_LOCK_STALE_MS, t as ASSET_DIR, u as RUNTIME_PROFILE, x as assertTrustedSocket } from "./shared--CO_WPTx.mjs";
18
- import { C as getSchemaDescription, E as objectFromShape, O as safeParseAsync, S as getParseErrorMessage, T as normalizeObjectSchema, a as IdSchema, b as getLiteralValue, d as RuntimeDataTransport, f as SocketTransport, g as ConsumerTransport, h as unavailable, w as isSchemaOptional, x as getObjectShape, y as toJsonSchemaCompat } from "./protocol-DNswG6F2.mjs";
19
- import { t as Server } from "./server-C-tcoOT7.mjs";
20
- import { i as ClientHooks, n as HubControl } from "./hub-control-591ZGr_p.mjs";
21
- import { a as LEGACY_HOOK_EXHAUSTED_RESULT, c as hookPressureCutoff, d as isExpiredHookResult, l as hookRetentionCutoff, n as ExpiredHookError, o as LegacyHookCapacityError, s as hookCutoff, t as EXPIRED_HOOK_RESULT, u as hookSignature } from "./hook-receipts-DcO9rRhi.mjs";
22
- import { t as DesignTaskStore } from "./design-task-store-C9DJ_EQq.mjs";
23
- import { a as removeHubRuntimeIdentityIfOwned, n as getExtensionRuntimeIssues, o as writeHubRuntimeIdentity, t as createHubRuntimeIdentity } from "./runtime-identity-BiWIlGgw.mjs";
24
- import { o as listenPrivate } from "./processes-CQvuh1Sl.mjs";
25
- import { d as writeEndpoints, o as readEndpoints } from "./state-CnkSwi5E.mjs";
26
- import { n as attachRuntimeRecovery, t as RECOVERY_METHODS } from "./runtime-recovery-DpqftTl9.mjs";
7
+ import { i as __toESM, r as __require, t as __commonJSMin } from "./rolldown-runtime-BH1-_iVd.mjs";
8
+ import { t as Server } from "./server-CsCpY0Ft.mjs";
9
+ import { C as getSchemaDescription, E as objectFromShape, O as safeParseAsync, S as getParseErrorMessage, T as normalizeObjectSchema, a as IdSchema, b as getLiteralValue, d as RuntimeDataTransport, f as SocketTransport, g as ConsumerTransport, h as unavailable, w as isSchemaOptional, x as getObjectShape, y as toJsonSchemaCompat } from "./protocol-7m-E_iFu.mjs";
10
+ import { Bn as assertCompleteRequestResourceTemplate, F as ErrorCode, L as GetPromptRequestSchema, Vt as ReadResourceRequestSchema, ct as ListResourcesRequestSchema, g as CompleteRequestSchema, it as ListPromptsRequestSchema, mt as ListToolsRequestSchema, ot as ListResourceTemplatesRequestSchema, s as CallToolRequestSchema, yt as McpError, zn as assertCompleteRequestPrompt } from "./types-kNTSQOnR.mjs";
11
+ import { m as object$3, n as ZodOptional, o as array } from "./schemas-ZDdPV7RQ.mjs";
12
+ import { r as deserializeMessage } from "./stdio-20SBFdww.mjs";
13
+ import { A as TEMPAD_MCP_ERROR_CODES, B as RESUMABLE_DESIGN_TASK_STATUSES, C as measureCallToolResultBytes, E as MessageFromExtensionSchema, F as DesignTaskIdSchema, G as MCP_NODE_READ_BATCH_WORK_BUDGET_MS, H as formatDesignFeedback, I as DesignTaskSchema, J as TEMPAD_MCP_BRIDGE_SUPPORTED_PROTOCOL_VERSIONS, K as MCP_TOOL_INLINE_BUDGET_BYTES, L as FigmaSessionSchema, O as sameRuntimeProfile, P as DesignAnchorSchema, S as buildUploadAssetToolResult, T as LegacyMessageFromExtensionSchema, V as SetDesignAnchorParametersSchema, W as MCP_MAX_ASSET_BYTES, _ as buildApplyCanvasToolResult, a as ClientHookRequestSchema, b as buildGetScreenshotToolResult, c as GetDesignSystemResultSchema, d as UploadAssetParametersSchema, f as UploadAssetResultSchema, h as CanvasPageSnapshotSchema, i as ClientHookParamsSchema, j as AGENT_CLIENTS, k as LegacyToolCallPayloadSchema, l as GetScreenshotParametersSchema, m as ApplyCanvasResultSchema, o as GetCodeParametersSchema, p as ApplyCanvasParametersSchema, q as TEMPAD_MCP_BRIDGE_SUBPROTOCOL, s as GetDesignSystemParametersSchema, t as getMcpServerConfig, u as GetStructureParametersSchema, v as buildGetCodeToolResult, w as utf8Bytes, x as buildGetStructureToolResult, y as buildGetDesignSystemToolResult, z as ManageDesignTaskParametersSchema } from "./config-Busa_Dqv.mjs";
14
+ import { t as require_proper_lockfile } from "./proper-lockfile-BgKrOq5D.mjs";
15
+ import { t as hostEnvironment } from "./process-environment-DRRIdoL8.mjs";
16
+ import { a as codexConversationKey, c as hostConversationKey, l as requireHostContext, n as HostContextSchema, o as codexStoreKey, r as MISSING_HOST_CONTEXT_MESSAGE, s as hostContextKey, t as HostContextNotificationSchema } from "./host-context-9TVtjsSm.mjs";
17
+ import { i as ClientHooks, n as HubControl } from "./hub-control-UlA4Fncg.mjs";
18
+ import { n as bindRequestMetadata, r as clientDescriptor, t as ClientEventSchema } from "./identity-CCaDEwgc.mjs";
19
+ import { a as LEGACY_HOOK_EXHAUSTED_RESULT, c as hookPressureCutoff, d as isExpiredHookResult, l as hookRetentionCutoff, n as ExpiredHookError, o as LegacyHookCapacityError, s as hookCutoff, t as EXPIRED_HOOK_RESULT, u as hookSignature } from "./hook-receipts-QJU3AMoY.mjs";
20
+ import { a as HUB_RUNTIME_IDENTITY_PATH, b as resolveStateDir, c as PACKAGE_VERSION, d as SOCK_PATH, g as log, h as getRecordProperty, i as HUB_LOCK_UPDATE_MS, l as RUNTIME_DIR, m as ensureFile, n as HUB_LOCK_PATH, p as ensureDir, r as HUB_LOCK_STALE_MS, t as ASSET_DIR, u as RUNTIME_PROFILE, x as assertTrustedSocket } from "./shared-8_j_xlsJ.mjs";
21
+ import { n as ClientBindingSubscribeSchema, r as ClientBindingUpdateSchema } from "./client-binding-CvSSv9JC.mjs";
22
+ import { t as DesignTaskStore } from "./design-task-store-BHR54v8-.mjs";
23
+ import { a as removeHubRuntimeIdentityIfOwned, n as getExtensionRuntimeIssues, o as writeHubRuntimeIdentity, t as createHubRuntimeIdentity } from "./runtime-identity-D9V-g5M-.mjs";
24
+ import { o as listenPrivate } from "./processes-DOmrri5n.mjs";
25
+ import { d as writeEndpoints, o as readEndpoints } from "./state-4Dz7r-_n.mjs";
26
+ import { n as attachRuntimeRecovery, t as RECOVERY_METHODS } from "./runtime-recovery-DaRaQ8qY.mjs";
27
27
  import { execFile, spawn } from "node:child_process";
28
28
  import { connect, createServer } from "node:net";
29
29
  import { dirname, join } from "node:path";
@@ -36,7 +36,7 @@ import { lstat, mkdir, opendir, readFile, rename, stat, unlink, writeFile } from
36
36
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
37
37
  import { createInterface } from "node:readline";
38
38
  import { createServer as createServer$1 } from "node:http";
39
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
39
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
40
40
  const COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
41
41
  /**
42
42
  * Checks if a schema is completable (has completion metadata).
@@ -54,8 +54,7 @@ var McpZodTypeKind;
54
54
  (function(McpZodTypeKind) {
55
55
  McpZodTypeKind["Completable"] = "McpCompletable";
56
56
  })(McpZodTypeKind || (McpZodTypeKind = {}));
57
- //#endregion
58
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
57
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
59
58
  /**
60
59
  * Tool name validation utilities according to SEP: Specify Format for Tool Names
61
60
  *
@@ -125,8 +124,7 @@ function validateAndWarnToolName(name) {
125
124
  issueToolNameWarning(name, result.warnings);
126
125
  return result.isValid;
127
126
  }
128
- //#endregion
129
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
127
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
130
128
  /**
131
129
  * Experimental McpServer task features for MCP SDK.
132
130
  * WARNING: These APIs are experimental and may change without notice.
@@ -156,8 +154,7 @@ var ExperimentalMcpServerTasks = class {
156
154
  return this._mcpServer._createRegisteredTool(name, config.title, config.description, config.inputSchema, config.outputSchema, config.annotations, execution, config._meta, handler);
157
155
  }
158
156
  };
159
- //#endregion
160
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.1_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
157
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.32.2_supports-color@7.2.0_zod@4.6.7/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
161
158
  function toolInputElementCount(value, max) {
162
159
  let count = 0;
163
160
  const stack = [value];
@@ -178,7 +175,7 @@ function toolInputElementCount(value, max) {
178
175
  return count;
179
176
  }
180
177
  function resolveMaxToolInputElements(value) {
181
- if (value === void 0 || value === Infinity) return void 0;
178
+ if (value === void 0 || value === 1e400) return void 0;
182
179
  if (typeof value !== "number" || Number.isNaN(value) || value < 1) throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(value)}`);
183
180
  return value;
184
181
  }
@@ -199,6 +196,9 @@ var McpServer = class {
199
196
  this._promptHandlersInitialized = false;
200
197
  this.server = new Server(serverInfo, options);
201
198
  this._maxToolInputElements = resolveMaxToolInputElements(options?.maxToolInputElements);
199
+ if (options?.capabilities?.tools) this.setToolRequestHandlers();
200
+ if (options?.capabilities?.resources) this.setResourceRequestHandlers();
201
+ if (options?.capabilities?.prompts) this.setPromptRequestHandlers();
202
202
  }
203
203
  /**
204
204
  * Access experimental features.
@@ -814,8 +814,7 @@ const EMPTY_COMPLETION_RESULT = { completion: {
814
814
  values: [],
815
815
  hasMore: false
816
816
  } };
817
- //#endregion
818
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/constants.js
817
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/constants.js
819
818
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
820
819
  const BINARY_TYPES = [
821
820
  "nodebuffer",
@@ -837,9 +836,9 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
837
836
  NOOP: () => {}
838
837
  };
839
838
  }));
840
- //#endregion
841
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/buffer-util.js
839
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/buffer-util.js
842
840
  var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
841
+ const { websocketMask, websocketUnmask } = __require("http");
843
842
  const { EMPTY_BUFFER } = require_constants();
844
843
  const FastBuffer = Buffer[Symbol.species];
845
844
  /**
@@ -924,8 +923,16 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
924
923
  toBuffer,
925
924
  unmask: _unmask
926
925
  };
927
- /* istanbul ignore else */
928
- if (!process.env.WS_NO_BUFFER_UTIL) try {
926
+ if (websocketMask) {
927
+ module.exports.mask = function(source, mask, output, offset, length) {
928
+ if (length < 24) _mask(source, mask, output, offset, length);
929
+ else websocketMask(source, mask, output, offset, length);
930
+ };
931
+ module.exports.unmask = function(buffer, mask) {
932
+ if (buffer.length < 24) _unmask(buffer, mask);
933
+ else websocketUnmask(buffer, mask);
934
+ };
935
+ } else if (!process.env.WS_NO_BUFFER_UTIL) try {
929
936
  const bufferUtil = __require("bufferutil");
930
937
  module.exports.mask = function(source, mask, output, offset, length) {
931
938
  if (length < 48) _mask(source, mask, output, offset, length);
@@ -937,8 +944,7 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
937
944
  };
938
945
  } catch (e) {}
939
946
  }));
940
- //#endregion
941
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/limiter.js
947
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/limiter.js
942
948
  var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
943
949
  const kDone = Symbol("kDone");
944
950
  const kRun = Symbol("kRun");
@@ -958,7 +964,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
958
964
  this.pending--;
959
965
  this[kRun]();
960
966
  };
961
- this.concurrency = concurrency || Infinity;
967
+ this.concurrency = concurrency || 1e400;
962
968
  this.jobs = [];
963
969
  this.pending = 0;
964
970
  }
@@ -988,8 +994,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
988
994
  };
989
995
  module.exports = Limiter;
990
996
  }));
991
- //#endregion
992
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/permessage-deflate.js
997
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/permessage-deflate.js
993
998
  var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
994
999
  const zlib = __require("zlib");
995
1000
  const bufferUtil = require_buffer_util();
@@ -1324,8 +1329,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
1324
1329
  this[kCallback](err);
1325
1330
  }
1326
1331
  }));
1327
- //#endregion
1328
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/validation.js
1332
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/validation.js
1329
1333
  var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1330
1334
  const { isUtf8 } = __require("buffer");
1331
1335
  const { hasBlob } = require_constants();
@@ -1520,10 +1524,9 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1520
1524
  };
1521
1525
  } catch (e) {}
1522
1526
  }));
1523
- //#endregion
1524
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/receiver.js
1527
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/receiver.js
1525
1528
  var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1526
- const { Writable: Writable$1 } = __require("stream");
1529
+ const { Writable } = __require("stream");
1527
1530
  const PerMessageDeflate = require_permessage_deflate();
1528
1531
  const { BINARY_TYPES, EMPTY_BUFFER, kStatusCode, kWebSocket } = require_constants();
1529
1532
  const { concat, toArrayBuffer, unmask } = require_buffer_util();
@@ -1541,7 +1544,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1541
1544
  *
1542
1545
  * @extends Writable
1543
1546
  */
1544
- var Receiver = class extends Writable$1 {
1547
+ var Receiver = class extends Writable {
1545
1548
  /**
1546
1549
  * Creates a Receiver instance.
1547
1550
  *
@@ -1821,6 +1824,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1821
1824
  data = this.consume(this._payloadLength);
1822
1825
  if (this._masked && (this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3]) !== 0) unmask(data, this._mask);
1823
1826
  }
1827
+ this._mask = void 0;
1824
1828
  if (this._opcode > 7) {
1825
1829
  this.controlMessage(data, cb);
1826
1830
  return;
@@ -1983,10 +1987,9 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1983
1987
  };
1984
1988
  module.exports = Receiver;
1985
1989
  }));
1986
- //#endregion
1987
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/sender.js
1990
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/sender.js
1988
1991
  var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1989
- const { Duplex: Duplex$3 } = __require("stream");
1992
+ const { Duplex } = __require("stream");
1990
1993
  const { randomFillSync } = __require("crypto");
1991
1994
  const { types: { isUint8Array } } = __require("util");
1992
1995
  const PerMessageDeflate = require_permessage_deflate();
@@ -2097,12 +2100,13 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2097
2100
  target[2] = target[3] = 0;
2098
2101
  target.writeUIntBE(dataLength, 4, 6);
2099
2102
  }
2100
- if (!options.mask) return [target, data];
2103
+ if (!options.mask) return dataLength ? [target, data] : [target];
2101
2104
  target[1] |= 128;
2102
2105
  target[offset - 4] = mask[0];
2103
2106
  target[offset - 3] = mask[1];
2104
2107
  target[offset - 2] = mask[2];
2105
2108
  target[offset - 1] = mask[3];
2109
+ if (!dataLength) return [target];
2106
2110
  if (skipMasking) return [target, data];
2107
2111
  if (merge) {
2108
2112
  applyMask(data, mask, target, offset, dataLength);
@@ -2481,8 +2485,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2481
2485
  sender.onerror(err);
2482
2486
  }
2483
2487
  }));
2484
- //#endregion
2485
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/event-target.js
2488
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/event-target.js
2486
2489
  var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2487
2490
  const { kForOnEventAttribute, kListener } = require_constants();
2488
2491
  const kCode = Symbol("kCode");
@@ -2712,8 +2715,7 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2712
2715
  else listener.call(thisArg, event);
2713
2716
  }
2714
2717
  }));
2715
- //#endregion
2716
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/extension.js
2718
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/extension.js
2717
2719
  var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2718
2720
  const { tokenChars } = require_validation();
2719
2721
  /**
@@ -2858,17 +2860,17 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2858
2860
  parse
2859
2861
  };
2860
2862
  }));
2861
- //#endregion
2862
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket.js
2863
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/websocket.js
2863
2864
  var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2864
- const EventEmitter$1 = __require("events");
2865
+ const EventEmitter = __require("events");
2865
2866
  const https = __require("https");
2866
- const http$1 = __require("http");
2867
+ const http = __require("http");
2867
2868
  const net = __require("net");
2869
+ const querystring = __require("querystring");
2868
2870
  const tls = __require("tls");
2869
- const { randomBytes: randomBytes$1, createHash: createHash$2 } = __require("crypto");
2870
- const { Duplex: Duplex$2, Readable } = __require("stream");
2871
- const { URL: URL$2 } = __require("url");
2871
+ const { randomBytes, createHash } = __require("crypto");
2872
+ const { Duplex, Readable } = __require("stream");
2873
+ const { URL } = __require("url");
2872
2874
  const PerMessageDeflate = require_permessage_deflate();
2873
2875
  const Receiver = require_receiver();
2874
2876
  const Sender = require_sender();
@@ -2891,7 +2893,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2891
2893
  *
2892
2894
  * @extends EventEmitter
2893
2895
  */
2894
- var WebSocket = class WebSocket extends EventEmitter$1 {
2896
+ var WebSocket = class WebSocket extends EventEmitter {
2895
2897
  /**
2896
2898
  * Create a new `WebSocket`.
2897
2899
  *
@@ -2931,12 +2933,15 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2931
2933
  else protocols = [options.protocols];
2932
2934
  } else protocols = [protocols];
2933
2935
  }
2934
- initAsClient(this, address, protocols, options);
2935
- } else {
2936
- this._autoPong = options.autoPong;
2937
- this._closeTimeout = options.closeTimeout;
2938
- this._isServer = true;
2936
+ options = initAsClient(this, address, protocols, options);
2937
+ } else this._isServer = true;
2938
+ if (options.autoPong) {
2939
+ this._autoPong = true;
2940
+ this._autoPongComplete = () => autoPongComplete(this);
2941
+ this._pendingAutoPongs = 0;
2942
+ this._maxPendingAutoPongs = options.maxPendingAutoPongs | 0;
2939
2943
  }
2944
+ this._closeTimeout = options.closeTimeout;
2940
2945
  }
2941
2946
  /**
2942
2947
  * For historical reasons, the custom "nodebuffer" type is used by the default
@@ -3377,6 +3382,8 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3377
3382
  * fragments
3378
3383
  * @param {Number} [options.maxPayload=104857600] The maximum allowed message
3379
3384
  * size
3385
+ * @param {Number} [options.maxPendingAutoPongs=60] The maximum number of
3386
+ * pending automatic pongs
3380
3387
  * @param {Number} [options.maxRedirects=10] The maximum number of redirects
3381
3388
  * allowed
3382
3389
  * @param {String} [options.origin] Value of the `Origin` or
@@ -3387,6 +3394,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3387
3394
  * `Sec-WebSocket-Version` header
3388
3395
  * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
3389
3396
  * not to skip UTF-8 validation for text and close messages
3397
+ * @return {Object} The resolved options object used for initialization
3390
3398
  * @private
3391
3399
  */
3392
3400
  function initAsClient(websocket, address, protocols, options) {
@@ -3398,6 +3406,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3398
3406
  maxBufferedChunks: 262144,
3399
3407
  maxFragments: 16384,
3400
3408
  maxPayload: 104857600,
3409
+ maxPendingAutoPongs: 60,
3401
3410
  skipUTF8Validation: false,
3402
3411
  perMessageDeflate: true,
3403
3412
  followRedirects: false,
@@ -3413,18 +3422,18 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3413
3422
  path: void 0,
3414
3423
  port: void 0
3415
3424
  };
3416
- websocket._autoPong = opts.autoPong;
3417
- websocket._closeTimeout = opts.closeTimeout;
3418
3425
  if (!protocolVersions.includes(opts.protocolVersion)) throw new RangeError(`Unsupported protocol version: ${opts.protocolVersion} (supported versions: ${protocolVersions.join(", ")})`);
3419
3426
  let parsedUrl;
3420
- if (address instanceof URL$2) parsedUrl = address;
3427
+ if (address instanceof URL) parsedUrl = address;
3421
3428
  else try {
3422
- parsedUrl = new URL$2(address);
3429
+ parsedUrl = new URL(address);
3423
3430
  } catch {
3424
3431
  throw new SyntaxError(`Invalid URL: ${address}`);
3425
3432
  }
3426
- if (parsedUrl.protocol === "http:") parsedUrl.protocol = "ws:";
3427
- else if (parsedUrl.protocol === "https:") parsedUrl.protocol = "wss:";
3433
+ if (parsedUrl.protocol === "http:" || parsedUrl.protocol === "https:") {
3434
+ parsedUrl = new URL(parsedUrl);
3435
+ parsedUrl.protocol = parsedUrl.protocol === "http:" ? "ws:" : "wss:";
3436
+ }
3428
3437
  websocket._url = parsedUrl.href;
3429
3438
  const isSecure = parsedUrl.protocol === "wss:";
3430
3439
  const isIpcUrl = parsedUrl.protocol === "ws+unix:";
@@ -3441,8 +3450,8 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3441
3450
  }
3442
3451
  }
3443
3452
  const defaultPort = isSecure ? 443 : 80;
3444
- const key = randomBytes$1(16).toString("base64");
3445
- const request = isSecure ? https.request : http$1.request;
3453
+ const key = randomBytes(16).toString("base64");
3454
+ const request = isSecure ? https.request : http.request;
3446
3455
  const protocolSet = /* @__PURE__ */ new Set();
3447
3456
  let perMessageDeflate;
3448
3457
  opts.createConnection = opts.createConnection || (isSecure ? tlsConnect : netConnect);
@@ -3477,11 +3486,16 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3477
3486
  if (opts.protocolVersion < 13) opts.headers["Sec-WebSocket-Origin"] = opts.origin;
3478
3487
  else opts.headers.Origin = opts.origin;
3479
3488
  }
3480
- if (parsedUrl.username || parsedUrl.password) opts.auth = `${parsedUrl.username}:${parsedUrl.password}`;
3489
+ if (parsedUrl.username || parsedUrl.password) opts.auth = `${querystring.unescape(parsedUrl.username)}:${querystring.unescape(parsedUrl.password)}`;
3481
3490
  if (isIpcUrl) {
3482
- const parts = opts.path.split(":");
3483
- opts.socketPath = parts[0];
3484
- opts.path = parts[1];
3491
+ const i = opts.path.indexOf(":");
3492
+ if (i === -1) {
3493
+ opts.socketPath = opts.path;
3494
+ opts.path = "";
3495
+ } else {
3496
+ opts.socketPath = opts.path.slice(0, i);
3497
+ opts.path = opts.path.slice(i + 1);
3498
+ }
3485
3499
  }
3486
3500
  let req;
3487
3501
  if (opts.followRedirects) {
@@ -3527,7 +3541,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3527
3541
  req.abort();
3528
3542
  let addr;
3529
3543
  try {
3530
- addr = new URL$2(location, address);
3544
+ addr = new URL(location, address);
3531
3545
  } catch (e) {
3532
3546
  emitErrorAndClose(websocket, /* @__PURE__ */ new SyntaxError(`Invalid URL: ${location}`));
3533
3547
  return;
@@ -3544,7 +3558,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3544
3558
  abortHandshake(websocket, socket, "Invalid Upgrade header");
3545
3559
  return;
3546
3560
  }
3547
- const digest = createHash$2("sha1").update(key + GUID).digest("base64");
3561
+ const digest = createHash("sha1").update(key + GUID).digest("base64");
3548
3562
  if (res.headers["sec-websocket-accept"] !== digest) {
3549
3563
  abortHandshake(websocket, socket, "Invalid Sec-WebSocket-Accept header");
3550
3564
  return;
@@ -3597,6 +3611,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3597
3611
  });
3598
3612
  if (opts.finishRequest) opts.finishRequest(req, websocket);
3599
3613
  else req.end();
3614
+ return opts;
3600
3615
  }
3601
3616
  /**
3602
3617
  * Emit the `'error'` and `'close'` events.
@@ -3688,8 +3703,12 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3688
3703
  function receiverOnConclude(code, reason) {
3689
3704
  const websocket = this[kWebSocket];
3690
3705
  websocket._closeFrameReceived = true;
3691
- websocket._closeMessage = reason;
3692
3706
  websocket._closeCode = code;
3707
+ if (reason.length === 0) websocket._closeMessage = EMPTY_BUFFER;
3708
+ else {
3709
+ websocket._closeMessage = Buffer.allocUnsafeSlow(reason.length);
3710
+ websocket._closeMessage.set(reason);
3711
+ }
3693
3712
  if (websocket._socket[kWebSocket] === void 0) return;
3694
3713
  websocket._socket.removeListener("data", socketOnData);
3695
3714
  process.nextTick(resume, websocket._socket);
@@ -3749,10 +3768,25 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3749
3768
  */
3750
3769
  function receiverOnPing(data) {
3751
3770
  const websocket = this[kWebSocket];
3752
- if (websocket._autoPong) websocket.pong(data, !this._isServer, NOOP);
3771
+ if (websocket._autoPong && websocket.readyState === WebSocket.OPEN) {
3772
+ if (websocket._maxPendingAutoPongs > 0 && websocket._pendingAutoPongs >= websocket._maxPendingAutoPongs) websocket.terminate();
3773
+ else {
3774
+ websocket._pendingAutoPongs++;
3775
+ websocket.pong(data, !this._isServer, websocket._autoPongComplete);
3776
+ }
3777
+ }
3753
3778
  websocket.emit("ping", data);
3754
3779
  }
3755
3780
  /**
3781
+ * The callback for automatic pong responses.
3782
+ *
3783
+ * @param {WebSocket} websocket The WebSocket instance
3784
+ * @private
3785
+ */
3786
+ function autoPongComplete(websocket) {
3787
+ websocket._pendingAutoPongs--;
3788
+ }
3789
+ /**
3756
3790
  * The listener of the `Receiver` `'pong'` event.
3757
3791
  *
3758
3792
  * @param {Buffer} data The data included in the pong frame
@@ -3857,11 +3891,10 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3857
3891
  }
3858
3892
  }
3859
3893
  }));
3860
- //#endregion
3861
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/stream.js
3894
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/stream.js
3862
3895
  var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3863
3896
  require_websocket();
3864
- const { Duplex: Duplex$1 } = __require("stream");
3897
+ const { Duplex } = __require("stream");
3865
3898
  /**
3866
3899
  * Emits the `'close'` event on a stream.
3867
3900
  *
@@ -3900,7 +3933,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3900
3933
  */
3901
3934
  function createWebSocketStream(ws, options) {
3902
3935
  let terminateOnDestroy = true;
3903
- const duplex = new Duplex$1({
3936
+ const duplex = new Duplex({
3904
3937
  ...options,
3905
3938
  autoDestroy: false,
3906
3939
  emitClose: false,
@@ -3973,8 +4006,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3973
4006
  }
3974
4007
  module.exports = createWebSocketStream;
3975
4008
  }));
3976
- //#endregion
3977
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/subprotocol.js
4009
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/subprotocol.js
3978
4010
  var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3979
4011
  const { tokenChars } = require_validation();
3980
4012
  /**
@@ -4012,13 +4044,12 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4012
4044
  }
4013
4045
  module.exports = { parse };
4014
4046
  }));
4015
- //#endregion
4016
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/lib/websocket-server.js
4047
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/lib/websocket-server.js
4017
4048
  var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4018
4049
  const EventEmitter = __require("events");
4019
4050
  const http = __require("http");
4020
4051
  const { Duplex } = __require("stream");
4021
- const { createHash: createHash$1 } = __require("crypto");
4052
+ const { createHash } = __require("crypto");
4022
4053
  const extension = require_extension();
4023
4054
  const PerMessageDeflate = require_permessage_deflate();
4024
4055
  const subprotocol = require_subprotocol();
@@ -4058,6 +4089,8 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
4058
4089
  * fragments
4059
4090
  * @param {Number} [options.maxPayload=104857600] The maximum allowed message
4060
4091
  * size
4092
+ * @param {Number} [options.maxPendingAutoPongs=60] The maximum number of
4093
+ * pending automatic pongs
4061
4094
  * @param {Boolean} [options.noServer=false] Enable no server mode
4062
4095
  * @param {String} [options.path] Accept only connections matching this path
4063
4096
  * @param {(Boolean|Object)} [options.perMessageDeflate=false] Enable/disable
@@ -4080,6 +4113,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
4080
4113
  maxBufferedChunks: 262144,
4081
4114
  maxFragments: 16384,
4082
4115
  maxPayload: 104857600,
4116
+ maxPendingAutoPongs: 60,
4083
4117
  skipUTF8Validation: false,
4084
4118
  perMessageDeflate: false,
4085
4119
  handleProtocols: null,
@@ -4288,7 +4322,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
4288
4322
  "HTTP/1.1 101 Switching Protocols",
4289
4323
  "Upgrade: websocket",
4290
4324
  "Connection: Upgrade",
4291
- `Sec-WebSocket-Accept: ${createHash$1("sha1").update(key + GUID).digest("base64")}`
4325
+ `Sec-WebSocket-Accept: ${createHash("sha1").update(key + GUID).digest("base64")}`
4292
4326
  ];
4293
4327
  const ws = new this.options.WebSocket(null, void 0, this.options);
4294
4328
  if (protocols.size) {
@@ -4399,8 +4433,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
4399
4433
  } else abortHandshake(socket, code, message, headers);
4400
4434
  }
4401
4435
  }));
4402
- //#endregion
4403
- //#region ../../node_modules/.pnpm/ws@8.22.0/node_modules/ws/wrapper.mjs
4436
+ // ../../node_modules/.pnpm/ws@8.23.0/node_modules/ws/wrapper.mjs
4404
4437
  var import_proper_lockfile = /* @__PURE__ */ __toESM(require_proper_lockfile(), 1);
4405
4438
  require_stream();
4406
4439
  require_extension();
@@ -4410,12 +4443,10 @@ require_sender();
4410
4443
  require_subprotocol();
4411
4444
  var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
4412
4445
  var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
4413
- //#endregion
4414
- //#region src/history-retention.ts
4446
+ // src/history-retention.ts
4415
4447
  /** Closed task details and settled feedback receipts share a local retention window. */
4416
4448
  const HISTORY_RETENTION_MS = 2592e6;
4417
- //#endregion
4418
- //#region src/agent-clients/codex-ipc.ts
4449
+ // src/agent-clients/codex-ipc.ts
4419
4450
  const WINDOWS_PIPE = String.raw`\\.\pipe\codex-ipc`;
4420
4451
  var CodexIpcError = class extends Error {
4421
4452
  uncertain;
@@ -4622,8 +4653,7 @@ var CodexIpc = class CodexIpc {
4622
4653
  this.socket.destroy();
4623
4654
  }
4624
4655
  };
4625
- //#endregion
4626
- //#region src/agent-clients/codex-queue-rpc.ts
4656
+ // src/agent-clients/codex-queue-rpc.ts
4627
4657
  /** Use the running desktop's bundled binary, never an unrelated CLI on PATH. */
4628
4658
  async function codexQueueExecutable(context) {
4629
4659
  const options = {
@@ -4799,8 +4829,7 @@ var CodexQueueRpc = class {
4799
4829
  this.disconnect();
4800
4830
  }
4801
4831
  };
4802
- //#endregion
4803
- //#region src/agent-clients/codex-server-queue.ts
4832
+ // src/agent-clients/codex-server-queue.ts
4804
4833
  /** A missing database identifies an older store; an unreadable store is never empty. */
4805
4834
  async function readCodexServerQueue(conversationId, home) {
4806
4835
  const path = join(home, "queue_1.sqlite");
@@ -4823,8 +4852,7 @@ async function readCodexServerQueue(conversationId, home) {
4823
4852
  throw new Error("The Codex server queue could not be checked. Comments remain saved.", { cause: error });
4824
4853
  }
4825
4854
  }
4826
- //#endregion
4827
- //#region src/agent-clients/codex-queue.ts
4855
+ // src/agent-clients/codex-queue.ts
4828
4856
  function object$2(value) {
4829
4857
  if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("Codex queue state has an unsupported format.");
4830
4858
  return value;
@@ -4997,8 +5025,7 @@ var CodexNativeQueue = class CodexNativeQueue {
4997
5025
  if (response.handledByClientId !== owner || object$2(response.result).ok !== true) throw new CodexIpcError("Codex did not confirm queue admission.", true);
4998
5026
  }
4999
5027
  };
5000
- //#endregion
5001
- //#region src/agent-clients/types.ts
5028
+ // src/agent-clients/types.ts
5002
5029
  /** Only clients with a verified native conversation channel can carry comments or interruption. */
5003
5030
  function nativeFeedback(client) {
5004
5031
  return AGENT_CLIENTS[client.kind].feedback;
@@ -5018,8 +5045,7 @@ const CODEX_FEEDBACK_UNAVAILABLE = {
5018
5045
  ...CANVAS_ONLY,
5019
5046
  reason: "Codex App comment delivery is unavailable. Open the original conversation in Codex App and retry. Comments stay saved; they are never delivered through hooks."
5020
5047
  };
5021
- //#endregion
5022
- //#region src/agent-clients/codex-feedback.ts
5048
+ // src/agent-clients/codex-feedback.ts
5023
5049
  const CODEX_APP_FEEDBACK = {
5024
5050
  interrupt: false,
5025
5051
  continue: false,
@@ -5557,7 +5583,7 @@ var CodexAppFeedback = class {
5557
5583
  const entries = [];
5558
5584
  const files = background ? this.receiptScan ??= this.receiptFiles() : this.receiptFiles();
5559
5585
  try {
5560
- for (let index = 0; index < (background ? 128 : Infinity); index++) {
5586
+ for (let index = 0; index < (background ? 128 : 1e400); index++) {
5561
5587
  const next = await files.next();
5562
5588
  if (next.done) {
5563
5589
  if (background) this.receiptScan = void 0;
@@ -5612,8 +5638,7 @@ var CodexAppFeedback = class {
5612
5638
  this.hostQueues.clear();
5613
5639
  }
5614
5640
  };
5615
- //#endregion
5616
- //#region src/agent-clients/codex-turn-state.ts
5641
+ // src/agent-clients/codex-turn-state.ts
5617
5642
  function object$1(value) {
5618
5643
  if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error("Unsupported Codex lifecycle value.");
5619
5644
  return value;
@@ -5760,8 +5785,7 @@ var CodexTurnState = class {
5760
5785
  else throw new Error("Unsupported Codex turn field.");
5761
5786
  }
5762
5787
  };
5763
- //#endregion
5764
- //#region src/agent-clients/codex-lifecycle.ts
5788
+ // src/agent-clients/codex-lifecycle.ts
5765
5789
  function object(value) {
5766
5790
  return value && typeof value === "object" && !Array.isArray(value) ? value : {};
5767
5791
  }
@@ -5932,8 +5956,7 @@ var CodexAppLifecycle = class {
5932
5956
  this.retain(/* @__PURE__ */ new Set());
5933
5957
  }
5934
5958
  };
5935
- //#endregion
5936
- //#region src/legacy-extension.ts
5959
+ // src/legacy-extension.ts
5937
5960
  function extensionUpgradeRequired() {
5938
5961
  return Object.assign(/* @__PURE__ */ new Error("This operation requires a current TemPad Dev extension compatible with this Hub. Update the extension in Chrome, then reload the Figma tab and reconnect Agent integration. Until then, get_code, get_screenshot, and node-based get_structure remain available without a design task."), { code: TEMPAD_MCP_ERROR_CODES.EXTENSION_UPGRADE_REQUIRED });
5939
5962
  }
@@ -5946,8 +5969,7 @@ function legacyToolPayload(name, args) {
5946
5969
  if (result.data.name === "get_code" && result.data.args?.resolveTokens) throw Object.assign(/* @__PURE__ */ new Error("resolveTokens requires matching current Hub and extension builds. Update the extension, then reload the Figma tab and reconnect Agent integration. Older extensions flatten token definitions and cannot return consumer-aware code with preserved aliases."), { code: TEMPAD_MCP_ERROR_CODES.EXTENSION_UPGRADE_REQUIRED });
5947
5970
  return result.data;
5948
5971
  }
5949
- //#endregion
5950
- //#region src/design-tasks.ts
5972
+ // src/design-tasks.ts
5951
5973
  const ENDED_STATUSES = ["completed", "cancelled"];
5952
5974
  const RUNNING_STATUSES = ["active", "stopping"];
5953
5975
  /** Only a Hub begin request establishes a client binding; browser migration leaves it empty. */
@@ -5989,7 +6011,7 @@ var DesignTasks = class {
5989
6011
  readGeneration = 0;
5990
6012
  fileFences = /* @__PURE__ */ new Map();
5991
6013
  expiredRequests = /* @__PURE__ */ new Map();
5992
- nextHistorySweep = Infinity;
6014
+ nextHistorySweep = 1e400;
5993
6015
  now;
5994
6016
  leaseMs;
5995
6017
  revision = 0;
@@ -6497,7 +6519,7 @@ var DesignTasks = class {
6497
6519
  }
6498
6520
  pruneHistory(now) {
6499
6521
  if (now < this.nextHistorySweep || this.persistenceError) return;
6500
- this.nextHistorySweep = Infinity;
6522
+ this.nextHistorySweep = 1e400;
6501
6523
  const pendingTasks = new Set([...this.operations.values()].map(({ taskId }) => taskId));
6502
6524
  let changed = false;
6503
6525
  for (const [taskId, record] of this.records) {
@@ -6670,8 +6692,7 @@ var DesignTasks = class {
6670
6692
  if (this.options.store?.recoveryError || this.persistenceError) fail("DESIGN_TASK_INACTIVE", this.options.store?.recoveryError ?? "Design task state could not be saved. Canvas writes are blocked until storage recovers; stopped tasks remain fenced.");
6671
6693
  }
6672
6694
  };
6673
- //#endregion
6674
- //#region src/agent-clients/registry.ts
6695
+ // src/agent-clients/registry.ts
6675
6696
  /** A turn is a safe target only when the conversation has exactly one in progress. */
6676
6697
  function soleActiveTurn(state) {
6677
6698
  const active = state?.turns.filter((turn) => turn.status === "inProgress");
@@ -7171,8 +7192,7 @@ var AgentClients = class {
7171
7192
  }
7172
7193
  }
7173
7194
  };
7174
- //#endregion
7175
- //#region src/asset-data-url.ts
7195
+ // src/asset-data-url.ts
7176
7196
  const IMAGE_DATA_URL_PATTERN = /^data:(image\/(?:png|jpeg|gif));base64,([A-Za-z0-9+/]+={0,2})$/;
7177
7197
  function decodeImageDataUrl(dataUrl, maxBytes = MCP_MAX_ASSET_BYTES) {
7178
7198
  const match = IMAGE_DATA_URL_PATTERN.exec(dataUrl);
@@ -7190,11 +7210,9 @@ function decodeImageDataUrl(dataUrl, maxBytes = MCP_MAX_ASSET_BYTES) {
7190
7210
  mimeType
7191
7211
  };
7192
7212
  }
7193
- //#endregion
7194
- //#region ../../node_modules/.pnpm/nanoid@6.0.2/node_modules/nanoid/url-alphabet/index.js
7213
+ // ../../node_modules/.pnpm/nanoid@6.0.2/node_modules/nanoid/url-alphabet/index.js
7195
7214
  let urlAlphabet = "57X6y3wQZNzYjJB2L_10pxbackgroundhimselfUTF-8DEMOGRAPHICSVqvt4KW9";
7196
- //#endregion
7197
- //#region ../../node_modules/.pnpm/nanoid@6.0.2/node_modules/nanoid/index.js
7215
+ // ../../node_modules/.pnpm/nanoid@6.0.2/node_modules/nanoid/index.js
7198
7216
  const GET_RANDOM_LIMIT = 65536;
7199
7217
  function fillRandom(buffer) {
7200
7218
  let from = 0;
@@ -7287,8 +7305,7 @@ function customAlphabet(alphabet, defaultSize = 21) {
7287
7305
  };
7288
7306
  }
7289
7307
  const nanoid = customAlphabet(urlAlphabet);
7290
- //#endregion
7291
- //#region src/asset-utils.ts
7308
+ // src/asset-utils.ts
7292
7309
  const HASH_FILENAME_PATTERN = new RegExp(`^([a-f0-9]{64}|[a-f0-9]{8})(?:\\.[a-z0-9-]+)?$`);
7293
7310
  const SAFE_IMAGE_EXTENSION_PATTERN = /^[a-z0-9-]+$/;
7294
7311
  function normalizeMimeType(mimeType) {
@@ -7313,8 +7330,7 @@ function buildAssetFilename(hash, mimeType) {
7313
7330
  function getHashFromAssetFilename(filename) {
7314
7331
  return HASH_FILENAME_PATTERN.exec(filename)?.[1] ?? null;
7315
7332
  }
7316
- //#endregion
7317
- //#region src/security.ts
7333
+ // src/security.ts
7318
7334
  const CHROME_EXTENSION_ORIGIN_PATTERN = /^chrome-extension:\/\/[a-p]{32}$/;
7319
7335
  function createCapabilityToken() {
7320
7336
  return randomBytes(32).toString("base64url");
@@ -7354,8 +7370,7 @@ function secretsEqual(candidate, expected) {
7354
7370
  function isChromeExtensionOrigin(origin) {
7355
7371
  return CHROME_EXTENSION_ORIGIN_PATTERN.test(origin);
7356
7372
  }
7357
- //#endregion
7358
- //#region src/asset-http-server.ts
7373
+ // src/asset-http-server.ts
7359
7374
  const LOOPBACK_HOST = "127.0.0.1";
7360
7375
  const ASSET_REQUEST_TIMEOUT_MS = 15e3;
7361
7376
  const ASSET_HEADERS_TIMEOUT_MS = 5e3;
@@ -7758,8 +7773,7 @@ function getStoredAssetBytes(store, excludeHash) {
7758
7773
  return Number.isFinite(record.size) && record.size > 0 ? total + record.size : total;
7759
7774
  }, 0);
7760
7775
  }
7761
- //#endregion
7762
- //#region src/asset-store.ts
7776
+ // src/asset-store.ts
7763
7777
  const INDEX_FILENAME = "assets.json";
7764
7778
  const DEFAULT_INDEX_PATH = join(ASSET_DIR, INDEX_FILENAME);
7765
7779
  const IMAGE_MIME_TYPES = {
@@ -7938,8 +7952,7 @@ function createAssetStore(options = {}) {
7938
7952
  flush
7939
7953
  };
7940
7954
  }
7941
- //#endregion
7942
- //#region src/extension-registry.ts
7955
+ // src/extension-registry.ts
7943
7956
  var ExtensionRegistry = class {
7944
7957
  #autoActivateGraceMs;
7945
7958
  #extensions = [];
@@ -8010,8 +8023,7 @@ function unrefTimer(timer) {
8010
8023
  const handle = timer;
8011
8024
  if (typeof handle.unref === "function") handle.unref();
8012
8025
  }
8013
- //#endregion
8014
- //#region src/extension-socket.ts
8026
+ // src/extension-socket.ts
8015
8027
  const CHECKOUT_HANDSHAKE_TIMEOUT_MS = 5e3;
8016
8028
  function attachExtensionSocket(ws, options) {
8017
8029
  const extension = {
@@ -8206,11 +8218,9 @@ function rawDataToBuffer(raw) {
8206
8218
  if (raw instanceof ArrayBuffer) return Buffer.from(raw);
8207
8219
  return Buffer.concat(raw);
8208
8220
  }
8209
- //#endregion
8210
- //#region src/instructions.md?raw
8221
+ // src/instructions.md?raw
8211
8222
  var instructions_default = "You are connected to Figma through TemPad Dev. An active MCP badge selects the default file;\nbrowser focus does not. When the target is unclear, call `list_design_sessions` and pass the exact\n`sessionId` to `manage_design_task` with action `begin` or an independent read. Task targets never follow browser focus;\ntask-bound reads stay on their task's session. Independent reads need no task. Run calls against\nthe same file sequentially, including reads.\n\nFor new design work, call `manage_design_task` with action `begin` before research or writing,\nthen carry its `taskId`.\nChoose a known Frame with `set_design_anchor` once the region is clear; otherwise the first new\ntop-level Frame anchors automatically. Reads, selections, and later writes never change the anchor\nunless `set_design_anchor` does. Task identity survives turns. A pause or idle lease expiry releases\ncanvas ownership without cancelling the task;\nuse action `resume` with the current `epoch`, carry its returned `epoch` as `taskEpoch`, and reread the\nbound canvas with `get_structure` or `get_code` before writing. Use `get_design_task` for recovery,\nnot routine polling. Never replay a stale write or queue a write against an occupied file.\nActions `complete` and `cancel` require the current `epoch` and end a verified pass or explicitly\nabandon it; they are not for a wait for input.\nCompletion releases ownership but keeps the review and same task open for comments until the user\nclicks Done; resume that task for follow-up comments. Cancelled, closed, or replaced tasks cannot\nresume. The Figma Stop control permanently cancels the current task after its running operation\nsettles; do not resume or automatically replace it. If further work is necessary or requested,\nuse action `begin` with a fresh requestId; no separate\nFigma unlock or user turn is required. No progress or heartbeat calls are needed.\n\nFeedback drafts contain individually numbered elements captured when saved. Reread each exact node\nbefore acting; do not substitute the current selection. Supported hosts deliver submitted feedback\nthrough native conversation messages. Do not poll, launch helpers, or configure a control endpoint.\n\nTreat tool outputs as file-scoped facts. Never invent node IDs, resource refs, library keys, token\norigins, or design-system intent. Tool descriptions give mechanical affordances; the applicable host\nskill governs workflow, representation, and design judgment. For Figma-to-code, use `get_code` as\nvisible implementation evidence. Use `get_structure` only for hierarchy, geometry, managed-key\nuncertainty, or targeted mask, IMAGE paint, layout-grid, and frame-guide read-back via\n`options.native`.\n\nFor canvas authoring, choose the native representation through the skill, then describe one desired\nresult with `apply_canvas`. Canvas HTML serializes ordinary layers; typed fields carry selected\nnative state, resources, and bindings. Never send raw Plugin API operations or arbitrary JavaScript.\n`get_design_system` is optional when existing-resource reuse is relevant and permitted; new local\nresources do not require it. `scope: \"fonts\"` independently reads environment availability.\nFor large files, `scope: \"pages\"` finds a relevant component page before `pageId`-scoped discovery;\nvariables, styles, and shaders remain file-wide. Use catalog CSS names or a call-scoped `theme` for\nvariable utilities and native text-style classes. Load skill references only after choosing a\nnative concept.\n\nWhen design evidence is limited to the current page or an independent system without reuse, stay\non the Direct path: do not discover resource catalogs, inspect other pages, or use catalog refs.\n`scope: \"fonts\"` remains available. Local variables and styles remain file-wide Figma resources,\nand the extension may still check file-wide identities internally for safe reconciliation.\n\nCreates add and automatically place one root. Updates use exact node identity: omission preserves\nlive state; explicit removal removes managed content. Read structural verification and resolve\nwarnings before claiming completion. Use `get_screenshot` when pixels affect a decision and open\nits image before claiming visual verification. Use `asset.localPath` when present, otherwise\n`asset.url`; native media hashes identify assets within one Figma file, not preview bytes. Never\nship `data-hint-*` attributes from read-tool output.\n";
8212
- //#endregion
8213
- //#region src/request.ts
8223
+ // src/request.ts
8214
8224
  const pendingCalls = /* @__PURE__ */ new Map();
8215
8225
  const UNKNOWN_WRITE_OUTCOME = "The canvas operation outcome is unknown. Do not replay this write; inspect the canvas or reload the executing Figma tab before continuing.";
8216
8226
  function createToolError(code, message) {
@@ -8281,7 +8291,7 @@ function pendingResponse(requestId, extensionId, outcome) {
8281
8291
  }
8282
8292
  return call;
8283
8293
  }
8284
- function resolve$1(requestId, extensionId, payload) {
8294
+ function resolve(requestId, extensionId, payload) {
8285
8295
  const call = pendingResponse(requestId, extensionId, "result");
8286
8296
  if (!call) return;
8287
8297
  call.resolve(payload);
@@ -8311,8 +8321,7 @@ function cleanupAll() {
8311
8321
  });
8312
8322
  pendingCalls.clear();
8313
8323
  }
8314
- //#endregion
8315
- //#region src/terminal-receipts.ts
8324
+ // src/terminal-receipts.ts
8316
8325
  const MAX_RECEIPTS = 128;
8317
8326
  /** Persist write exclusion, never requests to replay or authority to resume a task. */
8318
8327
  var TerminalReceipts = class {
@@ -8439,8 +8448,7 @@ var TerminalReceipts = class {
8439
8448
  }
8440
8449
  }
8441
8450
  };
8442
- //#endregion
8443
- //#region src/tools.ts
8451
+ // src/tools.ts
8444
8452
  const READ_ONLY_ANNOTATIONS = {
8445
8453
  readOnlyHint: true,
8446
8454
  destructiveHint: false,
@@ -8553,7 +8561,7 @@ const TOOL_DEFS = [
8553
8561
  }),
8554
8562
  extTool({
8555
8563
  name: "get_structure",
8556
- description: "Read a compact hierarchy and geometry outline for exact nodeId/nodeIds, exact page id/key, or the current selection. Exact roots are preserved before descendants consume the budget; options.depth: 0 returns roots only. Inspect errors and continue remainingNodeIds with nodeIds. Every x/y is relative to the node's actual Figma parent; page-query roots are page-relative. Includes stable keys on TemPad-managed nodes and exact page context for page queries. Set options.native for selected native read-back; this does not provide rendered pixels or general appearance.",
8564
+ description: "Read a compact hierarchy and geometry outline for exact nodeId/nodeIds, exact page id/key, or the current selection. Exact roots are preserved before descendants consume the budget; options.depth: 0 returns roots only. Inspect errors and continue remainingNodeIds with nodeIds. Every x/y is relative to the node's actual Figma parent; page-query roots are page-relative. Includes stable keys on TemPad-managed nodes and exact page context for page queries. Set options.native for sparse native read-back, including 3D transforms, origins, and scenes: default/empty 3D fields are omitted, configured disabled states are retained. Missing fields alone do not prove API support or a successful clear. This does not provide rendered pixels or general appearance.",
8557
8565
  annotations: READ_ONLY_ANNOTATIONS,
8558
8566
  parameters: GetStructureParametersSchema,
8559
8567
  target: "extension",
@@ -8706,8 +8714,7 @@ function getBudgetRetryGuidance(toolName) {
8706
8714
  case "upload_asset": return "Generate a smaller PNG, JPEG, or GIF and retry without printing its data URL.";
8707
8715
  }
8708
8716
  }
8709
- //#endregion
8710
- //#region src/versioned-extension.ts
8717
+ // src/versioned-extension.ts
8711
8718
  const NODE_READS = /* @__PURE__ */ new Set([
8712
8719
  "get_code",
8713
8720
  "get_screenshot",
@@ -8724,8 +8731,7 @@ function versionedReadNotice(protocolVersion, name) {
8724
8731
  if (name === "get_code" || name === "get_token_defs") return "Protocol 13 compatibility: token metadata uses the installed extension’s original semantics; complete modes and alias dependencies are not guaranteed. Use exact nodeId reads for code. Upgrade the extension and reload Figma for consumer-aware resolution and complete definitions.";
8725
8732
  if (name === "get_structure" || name === "get_screenshot") return "Protocol 13 compatibility: omitted nodeId uses the installed extension’s original selection behavior; structure may use a common ancestor. Use exact nodeId reads to preserve each requested root.";
8726
8733
  }
8727
- //#endregion
8728
- //#region src/websocket-server.ts
8734
+ // src/websocket-server.ts
8729
8735
  async function startExtensionWebSocketServer({ maxPayloadBytes, maxConnections, originPolicy, portCandidates, onPortInUse, onConnectionLimit, onRejectedHandshake }) {
8730
8736
  for (const candidate of portCandidates) {
8731
8737
  const server = new import_websocket_server.default({
@@ -8780,8 +8786,7 @@ function resolveListeningPort(server, candidate) {
8780
8786
  const address = server.address();
8781
8787
  return address && typeof address === "object" ? address.port : candidate;
8782
8788
  }
8783
- //#endregion
8784
- //#region src/hub-runtime.ts
8789
+ // src/hub-runtime.ts
8785
8790
  function hasCanvasReadEvidence(tool, payload) {
8786
8791
  if (tool === "get_structure") {
8787
8792
  const roots = getRecordProperty(payload, "roots");
@@ -10149,7 +10154,7 @@ async function startHub(options = {}) {
10149
10154
  onToolResult: (requestId, extensionId, payload) => {
10150
10155
  terminalReceipts.settle(requestId, extensionId);
10151
10156
  designTasks.finishOperation(requestId, extensionId);
10152
- resolve$1(requestId, extensionId, payload);
10157
+ resolve(requestId, extensionId, payload);
10153
10158
  }
10154
10159
  });
10155
10160
  });
@@ -10160,7 +10165,6 @@ async function startHub(options = {}) {
10160
10165
  process.on("SIGINT", shutdown);
10161
10166
  process.on("SIGTERM", shutdown);
10162
10167
  }
10163
- //#endregion
10164
10168
  export { startHub as t };
10165
10169
 
10166
- //# sourceMappingURL=hub-runtime-j_CZJnWz.mjs.map
10170
+ //# sourceMappingURL=hub-runtime-BBnfo1yd.mjs.map