@plitzi/sdk-mcp 0.39.1 → 0.39.3

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 (193) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +5 -1
  3. package/dist/createServer.d.ts +3 -2
  4. package/dist/createServer.js +3 -13
  5. package/dist/index.js +8 -8
  6. package/dist/modules/mcp/accessibilityOutline.js +1 -2
  7. package/dist/modules/mcp/apps/index.js +3 -4
  8. package/dist/modules/mcp/apps/render/index.js +3 -7
  9. package/dist/modules/mcp/apps/render/styles.js +2 -3
  10. package/dist/modules/mcp/apps/shared/assets.d.ts +6 -0
  11. package/dist/modules/mcp/apps/shared/assets.js +15 -4
  12. package/dist/modules/mcp/apps/shared/bundle.js +3 -4
  13. package/dist/modules/mcp/apps/shared/index.d.ts +1 -1
  14. package/dist/modules/mcp/apps/shared/page.js +3 -5
  15. package/dist/modules/mcp/apps/shared/registerApp.js +1 -2
  16. package/dist/modules/mcp/apps/shared/resolve.js +1 -2
  17. package/dist/modules/mcp/apps/shared/zodEnglishOnly.js +1 -2
  18. package/dist/modules/mcp/catalogs/observed.js +1 -2
  19. package/dist/modules/mcp/catalogs/pluginCatalog.d.ts +1 -1
  20. package/dist/modules/mcp/catalogs/pluginCatalog.js +1 -2
  21. package/dist/modules/mcp/catalogs/registry.d.ts +2 -1
  22. package/dist/modules/mcp/catalogs/registry.js +1 -2
  23. package/dist/modules/mcp/handler.d.ts +1 -1
  24. package/dist/modules/mcp/handler.js +1 -2
  25. package/dist/modules/mcp/helpers/callToolResult.js +1 -2
  26. package/dist/modules/mcp/helpers/components.js +1 -2
  27. package/dist/modules/mcp/helpers/computeVersion.js +1 -2
  28. package/dist/modules/mcp/helpers/guide/index.js +1 -2
  29. package/dist/modules/mcp/helpers/guide/instructions.js +1 -2
  30. package/dist/modules/mcp/helpers/guide/logic.js +1 -2
  31. package/dist/modules/mcp/helpers/guide/practice.js +4 -4
  32. package/dist/modules/mcp/helpers/guide/reference.js +1 -2
  33. package/dist/modules/mcp/helpers/guide/server.d.ts +1 -1
  34. package/dist/modules/mcp/helpers/guide/server.js +3 -4
  35. package/dist/modules/mcp/helpers/guide/structure.js +1 -2
  36. package/dist/modules/mcp/helpers/guide/styling.js +1 -2
  37. package/dist/modules/mcp/helpers/guide/values.js +1 -2
  38. package/dist/modules/mcp/helpers/interactions.js +1 -2
  39. package/dist/modules/mcp/helpers/log.d.ts +1 -1
  40. package/dist/modules/mcp/helpers/log.js +2 -3
  41. package/dist/modules/mcp/helpers/opResult.js +1 -2
  42. package/dist/modules/mcp/helpers/space.d.ts +2 -1
  43. package/dist/modules/mcp/helpers/space.js +1 -2
  44. package/dist/modules/mcp/helpers/uris.js +1 -2
  45. package/dist/modules/mcp/localScreenshotClient.js +9 -6
  46. package/dist/modules/mcp/previewClient.js +1 -2
  47. package/dist/modules/mcp/proxy/config.d.ts +1 -1
  48. package/dist/modules/mcp/proxy/config.js +2 -3
  49. package/dist/modules/mcp/proxy/fetch.js +1 -2
  50. package/dist/modules/mcp/proxy/grant.js +1 -2
  51. package/dist/modules/mcp/proxy/guard.js +2 -3
  52. package/dist/modules/mcp/proxy/handler.d.ts +1 -1
  53. package/dist/modules/mcp/proxy/handler.js +2 -3
  54. package/dist/modules/mcp/proxy/payload.js +1 -2
  55. package/dist/modules/mcp/proxy/rewrite.js +1 -2
  56. package/dist/modules/mcp/proxy/sign.js +1 -2
  57. package/dist/modules/mcp/proxy/types.js +1 -2
  58. package/dist/modules/mcp/resources/actions.js +2 -3
  59. package/dist/modules/mcp/resources/canonical.js +1 -2
  60. package/dist/modules/mcp/resources/connectors.js +2 -3
  61. package/dist/modules/mcp/resources/core.js +4 -5
  62. package/dist/modules/mcp/resources/data.js +1 -2
  63. package/dist/modules/mcp/resources/envelope.js +1 -2
  64. package/dist/modules/mcp/resources/explain.js +1 -2
  65. package/dist/modules/mcp/resources/functions.js +1 -2
  66. package/dist/modules/mcp/resources/primer.js +7 -8
  67. package/dist/modules/mcp/resources/register.d.ts +1 -1
  68. package/dist/modules/mcp/resources/register.js +6 -7
  69. package/dist/modules/mcp/resources/renderGuide.js +2 -3
  70. package/dist/modules/mcp/resources/router.js +3 -4
  71. package/dist/modules/mcp/resources/schema.js +3 -4
  72. package/dist/modules/mcp/resources/style.js +2 -3
  73. package/dist/modules/mcp/screenshotClient.js +6 -5
  74. package/dist/modules/mcp/server.d.ts +1 -1
  75. package/dist/modules/mcp/server.js +4 -5
  76. package/dist/modules/mcp/tools/activity.js +1 -2
  77. package/dist/modules/mcp/tools/apply/dispatch.js +4 -5
  78. package/dist/modules/mcp/tools/apply/index.d.ts +4 -0
  79. package/dist/modules/mcp/tools/apply/index.js +3 -4
  80. package/dist/modules/mcp/tools/apply/writeResult.js +1 -2
  81. package/dist/modules/mcp/tools/describeOperation.js +2 -3
  82. package/dist/modules/mcp/tools/index.js +1 -2
  83. package/dist/modules/mcp/tools/intents.js +3 -4
  84. package/dist/modules/mcp/tools/look.js +2 -3
  85. package/dist/modules/mcp/tools/operations/actions/deleteAction.js +2 -3
  86. package/dist/modules/mcp/tools/operations/actions/document.d.ts +2 -0
  87. package/dist/modules/mcp/tools/operations/actions/document.js +4 -3
  88. package/dist/modules/mcp/tools/operations/actions/index.d.ts +4 -0
  89. package/dist/modules/mcp/tools/operations/actions/index.js +1 -2
  90. package/dist/modules/mcp/tools/operations/actions/patchAction.d.ts +2 -0
  91. package/dist/modules/mcp/tools/operations/actions/patchAction.js +3 -4
  92. package/dist/modules/mcp/tools/operations/actions/upsertAction.d.ts +2 -0
  93. package/dist/modules/mcp/tools/operations/actions/upsertAction.js +3 -4
  94. package/dist/modules/mcp/tools/operations/closed.js +1 -2
  95. package/dist/modules/mcp/tools/operations/connectors/deleteConnector.js +2 -3
  96. package/dist/modules/mcp/tools/operations/connectors/index.js +1 -2
  97. package/dist/modules/mcp/tools/operations/connectors/manifest.js +1 -2
  98. package/dist/modules/mcp/tools/operations/connectors/patchConnector.js +3 -4
  99. package/dist/modules/mcp/tools/operations/connectors/upsertConnector.js +3 -4
  100. package/dist/modules/mcp/tools/operations/data/index.js +1 -2
  101. package/dist/modules/mcp/tools/operations/functions/index.js +2 -3
  102. package/dist/modules/mcp/tools/operations/index.d.ts +8 -0
  103. package/dist/modules/mcp/tools/operations/index.js +1 -2
  104. package/dist/modules/mcp/tools/operations/schema/bindings/deleteBinding.js +1 -2
  105. package/dist/modules/mcp/tools/operations/schema/bindings/patchBinding.js +1 -2
  106. package/dist/modules/mcp/tools/operations/schema/bindings/upsertBinding.js +1 -2
  107. package/dist/modules/mcp/tools/operations/schema/components/deleteComponent.js +1 -2
  108. package/dist/modules/mcp/tools/operations/schema/components/upsertComponent.js +2 -3
  109. package/dist/modules/mcp/tools/operations/schema/elements/deleteElement.js +2 -3
  110. package/dist/modules/mcp/tools/operations/schema/elements/moveElement.js +3 -4
  111. package/dist/modules/mcp/tools/operations/schema/elements/patchElement.js +3 -4
  112. package/dist/modules/mcp/tools/operations/schema/elements/repeatElement.js +1 -2
  113. package/dist/modules/mcp/tools/operations/schema/elements/upsertElement.js +3 -4
  114. package/dist/modules/mcp/tools/operations/schema/flags/deleteFlag.js +2 -3
  115. package/dist/modules/mcp/tools/operations/schema/flags/upsertFlag.js +2 -3
  116. package/dist/modules/mcp/tools/operations/schema/folders/deleteFolder.js +2 -3
  117. package/dist/modules/mcp/tools/operations/schema/folders/upsertFolder.js +2 -3
  118. package/dist/modules/mcp/tools/operations/schema/interactions/deleteInteraction.js +1 -2
  119. package/dist/modules/mcp/tools/operations/schema/interactions/patchInteractionNode.js +1 -2
  120. package/dist/modules/mcp/tools/operations/schema/interactions/upsertInteractionFlow.js +2 -3
  121. package/dist/modules/mcp/tools/operations/schema/operations.js +1 -2
  122. package/dist/modules/mcp/tools/operations/schema/pages/deleteLayout.js +2 -3
  123. package/dist/modules/mcp/tools/operations/schema/pages/deletePage.js +2 -3
  124. package/dist/modules/mcp/tools/operations/schema/pages/upsertLayout.js +3 -4
  125. package/dist/modules/mcp/tools/operations/schema/pages/upsertPage.js +3 -4
  126. package/dist/modules/mcp/tools/operations/schema/settings/patchSettings.js +2 -3
  127. package/dist/modules/mcp/tools/operations/schema/shared.js +1 -2
  128. package/dist/modules/mcp/tools/operations/schema/translator.js +2 -3
  129. package/dist/modules/mcp/tools/operations/schema/variables/deleteVariable.js +2 -3
  130. package/dist/modules/mcp/tools/operations/schema/variables/upsertVariable.js +2 -3
  131. package/dist/modules/mcp/tools/operations/schema/write.js +3 -4
  132. package/dist/modules/mcp/tools/operations/schemaIds.js +1 -2
  133. package/dist/modules/mcp/tools/operations/style/definitions/deleteDefinition.js +1 -2
  134. package/dist/modules/mcp/tools/operations/style/definitions/patchDefinition.js +2 -3
  135. package/dist/modules/mcp/tools/operations/style/definitions/upsertDefinition.js +1 -2
  136. package/dist/modules/mcp/tools/operations/style/definitions/upsertDefinitions.js +1 -2
  137. package/dist/modules/mcp/tools/operations/style/fonts/deleteFont.js +2 -3
  138. package/dist/modules/mcp/tools/operations/style/fonts/upsertFont.js +2 -3
  139. package/dist/modules/mcp/tools/operations/style/globalStyles/deleteGlobalStyle.js +1 -2
  140. package/dist/modules/mcp/tools/operations/style/globalStyles/patchGlobalStyle.js +2 -3
  141. package/dist/modules/mcp/tools/operations/style/globalStyles/upsertGlobalStyle.js +1 -2
  142. package/dist/modules/mcp/tools/operations/style/idStyles/deleteIdStyle.js +1 -2
  143. package/dist/modules/mcp/tools/operations/style/idStyles/patchIdStyle.js +2 -3
  144. package/dist/modules/mcp/tools/operations/style/idStyles/upsertIdStyle.js +1 -2
  145. package/dist/modules/mcp/tools/operations/style/operations.js +1 -2
  146. package/dist/modules/mcp/tools/operations/style/shared.js +1 -2
  147. package/dist/modules/mcp/tools/operations/style/translator.js +1 -2
  148. package/dist/modules/mcp/tools/operations/style/validate.js +1 -2
  149. package/dist/modules/mcp/tools/operations/style/variables/deleteStyleVariable.js +2 -3
  150. package/dist/modules/mcp/tools/operations/style/variables/upsertStyleVariable.js +2 -3
  151. package/dist/modules/mcp/tools/operations/style/write.js +2 -3
  152. package/dist/modules/mcp/tools/read.js +2 -3
  153. package/dist/modules/mcp/tools/render.js +3 -4
  154. package/dist/modules/mcp/tools/renderWidget.js +2 -3
  155. package/dist/modules/mcp/tools/search.js +2 -3
  156. package/dist/modules/mcp/tools/shared/draftBatch.js +2 -3
  157. package/dist/modules/mcp/tools/shared/effects.js +1 -2
  158. package/dist/modules/mcp/tools/shared/expandOperations.js +1 -2
  159. package/dist/modules/mcp/tools/shared/interactionReport.js +1 -2
  160. package/dist/modules/mcp/tools/shared/lintDraft.js +1 -2
  161. package/dist/modules/mcp/tools/shared/look.js +1 -2
  162. package/dist/modules/mcp/tools/shared/newSuggestions.js +1 -2
  163. package/dist/modules/mcp/tools/shared/normalizeOperations.js +1 -2
  164. package/dist/modules/mcp/tools/shared/repeats.js +1 -2
  165. package/dist/modules/mcp/tools/shared/tool.js +1 -2
  166. package/dist/modules/mcp/tools/shared/validator/batch.js +1 -2
  167. package/dist/modules/mcp/tools/shared/validator/bindings.js +1 -2
  168. package/dist/modules/mcp/tools/shared/validator/connectors.js +2 -3
  169. package/dist/modules/mcp/tools/shared/validator/context.js +1 -2
  170. package/dist/modules/mcp/tools/shared/validator/css.js +2 -3
  171. package/dist/modules/mcp/tools/shared/validator/elements.js +2 -3
  172. package/dist/modules/mcp/tools/shared/validator/index.js +8 -9
  173. package/dist/modules/mcp/tools/shared/validator/interactions.js +2 -3
  174. package/dist/modules/mcp/tools/shared/validator/refs.js +1 -2
  175. package/dist/modules/mcp/tools/test.js +1 -2
  176. package/dist/modules/mcp/tools/tryFunction.js +1 -2
  177. package/dist/modules/mcp/types/screenshotTypes.d.ts +8 -0
  178. package/dist/options.d.ts +1 -1
  179. package/dist/pipeline.d.ts +2 -1
  180. package/dist/pipeline.js +4 -3
  181. package/dist/preview/createPreview.d.ts +1 -1
  182. package/dist/preview/createPreview.js +1 -2
  183. package/dist/preview.d.ts +7 -0
  184. package/dist/preview.js +1 -0
  185. package/dist/render.js +1 -1
  186. package/dist/server.js +3 -3
  187. package/dist/stages/mcp.d.ts +1 -1
  188. package/dist/stages/mcp.js +2 -3
  189. package/dist/stages/preview.d.ts +2 -1
  190. package/dist/stages/preview.js +3 -4
  191. package/dist/stages/proxy.d.ts +1 -1
  192. package/dist/stages/proxy.js +2 -3
  193. package/package.json +23 -16
@@ -1,9 +1,9 @@
1
- import { findConnectorEntry } from "../../../helpers/space.js";
1
+ import { connectorConnection, readEndpoint, writeEndpoint } from "./manifest.js";
2
2
  import { connectorUri, connectorsUri } from "../../../helpers/uris.js";
3
3
  import { empty, fail } from "../../../helpers/opResult.js";
4
- import { connectorConnection, readEndpoint, writeEndpoint } from "./manifest.js";
4
+ import { findConnectorEntry } from "../../../helpers/space.js";
5
5
  import { z } from "zod";
6
- //#region src/modules/mcp/tools/operations/connectors/patchConnector.ts
6
+ // src/modules/mcp/tools/operations/connectors/patchConnector.ts
7
7
  var patchConnectorOp = z.object({
8
8
  type: z.literal("patchConnector"),
9
9
  ref: z.string().describe("Identifier of the connector to change"),
@@ -54,5 +54,4 @@ var patchConnector = (space, env, op) => {
54
54
  staleResources: [connectorsUri(env), connectorUri(env, op.ref)]
55
55
  };
56
56
  };
57
- //#endregion
58
57
  export { patchConnector, patchConnectorOp };
@@ -1,9 +1,9 @@
1
- import { findConnectorEntry } from "../../../helpers/space.js";
1
+ import { connectorConnection, readEndpoint, writeEndpoint } from "./manifest.js";
2
2
  import { connectorUri, connectorsUri } from "../../../helpers/uris.js";
3
3
  import { empty } from "../../../helpers/opResult.js";
4
- import { connectorConnection, readEndpoint, writeEndpoint } from "./manifest.js";
4
+ import { findConnectorEntry } from "../../../helpers/space.js";
5
5
  import { z } from "zod";
6
- //#region src/modules/mcp/tools/operations/connectors/upsertConnector.ts
6
+ // src/modules/mcp/tools/operations/connectors/upsertConnector.ts
7
7
  var upsertConnectorOp = z.object({
8
8
  type: z.literal("upsertConnector"),
9
9
  ref: z.string().describe("Identifier of the connector, chosen by you and stable forever: it is what a provider element stores. Letters, numbers, hyphens and underscores, starting with a letter (e.g. \"strapi-blog\")."),
@@ -60,5 +60,4 @@ var upsertConnector = (space, env, op) => {
60
60
  staleResources: stale
61
61
  };
62
62
  };
63
- //#endregion
64
63
  export { toManifest, upsertConnector, upsertConnectorOp };
@@ -1,7 +1,7 @@
1
1
  import { dataFileUri, dataUri } from "../../../helpers/uris.js";
2
2
  import { empty, fail } from "../../../helpers/opResult.js";
3
3
  import { z } from "zod";
4
- //#region src/modules/mcp/tools/operations/data/index.ts
4
+ // src/modules/mcp/tools/operations/data/index.ts
5
5
  var upsertDataFileOp = z.object({
6
6
  type: z.literal("upsertDataFile"),
7
7
  path: z.string().describe("e.g. \"products.json\" — read as query \"/data/<path>\""),
@@ -50,5 +50,4 @@ var dataOps = {
50
50
  upsertDataFile: upsertDataFileOp,
51
51
  deleteDataFile: deleteDataFileOp
52
52
  };
53
- //#endregion
54
53
  export { dataOps, deleteDataFile, deleteDataFileOp, upsertDataFile, upsertDataFileOp };
@@ -1,7 +1,7 @@
1
- import { functionFileUri, functionsUri } from "../../../helpers/uris.js";
2
1
  import { empty, fail } from "../../../helpers/opResult.js";
2
+ import { functionFileUri, functionsUri } from "../../../helpers/uris.js";
3
3
  import { z } from "zod";
4
- //#region src/modules/mcp/tools/operations/functions/index.ts
4
+ // src/modules/mcp/tools/operations/functions/index.ts
5
5
  var upsertFunctionFileOp = z.object({
6
6
  type: z.literal("upsertFunctionFile"),
7
7
  path: z.string().describe("e.g. \"index.ts\", \"lib/feed.ts\""),
@@ -44,5 +44,4 @@ var functionOps = {
44
44
  upsertFunctionFile: upsertFunctionFileOp,
45
45
  deleteFunctionFile: deleteFunctionFileOp
46
46
  };
47
- //#endregion
48
47
  export { deleteFunctionFile, deleteFunctionFileOp, functionOps, upsertFunctionFile, upsertFunctionFileOp };
@@ -3100,6 +3100,8 @@ export declare const operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
3100
3100
  streamTimeoutMs: z.ZodOptional<z.ZodNumber>;
3101
3101
  maxNodes: z.ZodOptional<z.ZodNumber>;
3102
3102
  maxRequests: z.ZodOptional<z.ZodNumber>;
3103
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
3104
+ maxRunBytes: z.ZodOptional<z.ZodNumber>;
3103
3105
  }, z.core.$strip>>;
3104
3106
  }, z.core.$strict>, z.ZodObject<{
3105
3107
  type: z.ZodLiteral<"patchAction">;
@@ -3142,6 +3144,8 @@ export declare const operation: z.ZodDiscriminatedUnion<[z.ZodObject<{
3142
3144
  streamTimeoutMs: z.ZodOptional<z.ZodNumber>;
3143
3145
  maxNodes: z.ZodOptional<z.ZodNumber>;
3144
3146
  maxRequests: z.ZodOptional<z.ZodNumber>;
3147
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
3148
+ maxRunBytes: z.ZodOptional<z.ZodNumber>;
3145
3149
  }, z.core.$strip>>;
3146
3150
  }, z.core.$strict>, z.ZodObject<{
3147
3151
  type: z.ZodLiteral<"deleteAction">;
@@ -4825,6 +4829,8 @@ export declare const operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject
4825
4829
  streamTimeoutMs: z.ZodOptional<z.ZodNumber>;
4826
4830
  maxNodes: z.ZodOptional<z.ZodNumber>;
4827
4831
  maxRequests: z.ZodOptional<z.ZodNumber>;
4832
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
4833
+ maxRunBytes: z.ZodOptional<z.ZodNumber>;
4828
4834
  }, z.core.$strip>>;
4829
4835
  }, z.core.$strict>, z.ZodObject<{
4830
4836
  type: z.ZodLiteral<"patchAction">;
@@ -4867,6 +4873,8 @@ export declare const operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject
4867
4873
  streamTimeoutMs: z.ZodOptional<z.ZodNumber>;
4868
4874
  maxNodes: z.ZodOptional<z.ZodNumber>;
4869
4875
  maxRequests: z.ZodOptional<z.ZodNumber>;
4876
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
4877
+ maxRunBytes: z.ZodOptional<z.ZodNumber>;
4870
4878
  }, z.core.$strip>>;
4871
4879
  }, z.core.$strict>, z.ZodObject<{
4872
4880
  type: z.ZodLiteral<"deleteAction">;
@@ -8,7 +8,7 @@ import { registerSharedSchemaIds } from "./schemaIds.js";
8
8
  import { styleOps } from "./style/operations.js";
9
9
  import { closest } from "@plitzi/sdk-authoring";
10
10
  import { z } from "zod";
11
- //#region src/modules/mcp/tools/operations/index.ts
11
+ // src/modules/mcp/tools/operations/index.ts
12
12
  registerSharedSchemaIds();
13
13
  /** A batch's operations, each read by its `type` — and a type none of them has answered with the nearest one. */
14
14
  var union = (options) => {
@@ -89,5 +89,4 @@ var DOCUMENT_OPERATION_TYPES = documentOperation.options.map((variant) => varian
89
89
  * schema per connection instead of two; what runs is still parsed against the full one.
90
90
  */
91
91
  var compactDocumentOperations = z.array(z.looseObject({ type: z.enum(DOCUMENT_OPERATION_TYPES) })).max(MAX_OPS).describe(`Operations applied atomically, in order (max ${MAX_OPS}) — the document operations of plitzi_apply, with the same fields; plitzi_describe_operation gives any one of them`);
92
- //#endregion
93
92
  export { MAX_OPS, OPERATIONS_BY_TYPE, compactDocumentOperations, documentOperation, documentOperations, environment, isStyleOp, operation, operations };
@@ -3,7 +3,7 @@ import { empty, fail } from "../../../../helpers/opResult.js";
3
3
  import { bindingCategory } from "../shared.js";
4
4
  import { resolveElement } from "../write.js";
5
5
  import { z } from "zod";
6
- //#region src/modules/mcp/tools/operations/schema/bindings/deleteBinding.ts
6
+ // src/modules/mcp/tools/operations/schema/bindings/deleteBinding.ts
7
7
  var deleteBindingOp = z.object({
8
8
  type: z.literal("deleteBinding"),
9
9
  pageRef: z.string().describe("The page, by name"),
@@ -28,5 +28,4 @@ var deleteBinding = (space, env, op) => {
28
28
  elementRefs: [op.ref]
29
29
  };
30
30
  };
31
- //#endregion
32
31
  export { deleteBinding, deleteBindingOp };
@@ -3,7 +3,7 @@ import { empty, fail } from "../../../../helpers/opResult.js";
3
3
  import { bindingCategory, bindingInput } from "../shared.js";
4
4
  import { resolveElement } from "../write.js";
5
5
  import { z } from "zod";
6
- //#region src/modules/mcp/tools/operations/schema/bindings/patchBinding.ts
6
+ // src/modules/mcp/tools/operations/schema/bindings/patchBinding.ts
7
7
  var patchBindingOp = z.object({
8
8
  type: z.literal("patchBinding"),
9
9
  pageRef: z.string().describe("The page, by name"),
@@ -32,5 +32,4 @@ var patchBinding = (space, env, op) => {
32
32
  elementRefs: [op.ref]
33
33
  };
34
34
  };
35
- //#endregion
36
35
  export { patchBinding, patchBindingOp };
@@ -4,7 +4,7 @@ import { bindingCategory, bindingInput } from "../shared.js";
4
4
  import { resolveElement } from "../write.js";
5
5
  import { positionalElementId } from "@plitzi/sdk-schema";
6
6
  import { z } from "zod";
7
- //#region src/modules/mcp/tools/operations/schema/bindings/upsertBinding.ts
7
+ // src/modules/mcp/tools/operations/schema/bindings/upsertBinding.ts
8
8
  var upsertBindingOp = z.object({
9
9
  type: z.literal("upsertBinding"),
10
10
  pageRef: z.string().describe("The page, by name"),
@@ -43,5 +43,4 @@ var upsertBinding = (space, env, op) => {
43
43
  elementRefs: [op.ref]
44
44
  };
45
45
  };
46
- //#endregion
47
46
  export { upsertBinding, upsertBindingOp };
@@ -2,7 +2,7 @@ import { componentsUri } from "../../../../helpers/uris.js";
2
2
  import { empty, fail } from "../../../../helpers/opResult.js";
3
3
  import { componentNamed, instancesOf, removeComponent } from "@plitzi/sdk-schema";
4
4
  import { z } from "zod";
5
- //#region src/modules/mcp/tools/operations/schema/components/deleteComponent.ts
5
+ // src/modules/mcp/tools/operations/schema/components/deleteComponent.ts
6
6
  var deleteComponentOp = z.object({
7
7
  type: z.literal("deleteComponent"),
8
8
  ref: z.string()
@@ -17,5 +17,4 @@ var deleteComponent = (space, env, op) => {
17
17
  staleResources: [componentsUri(env)]
18
18
  };
19
19
  };
20
- //#endregion
21
20
  export { deleteComponent, deleteComponentOp };
@@ -1,10 +1,10 @@
1
- import { invalidateIndex } from "../../../../helpers/space.js";
2
1
  import { componentsUri, pageUri } from "../../../../helpers/uris.js";
3
2
  import { empty, fail } from "../../../../helpers/opResult.js";
3
+ import { invalidateIndex } from "../../../../helpers/space.js";
4
4
  import { ID_REF_HINT, guardNewRef } from "../write.js";
5
5
  import { addComponent, componentNamed, descendants, isValidElementId, propNameProblem, treeOf, updateComponent } from "@plitzi/sdk-schema";
6
6
  import { z } from "zod";
7
- //#region src/modules/mcp/tools/operations/schema/components/upsertComponent.ts
7
+ // src/modules/mcp/tools/operations/schema/components/upsertComponent.ts
8
8
  /**
9
9
  * A prop as a component declares it. Checked when the op runs rather than spelled out in the op's schema: the op union
10
10
  * rides on every request of every conversation, and the guide — read once — says what a prop is.
@@ -141,5 +141,4 @@ var upsertComponent = (space, env, op) => {
141
141
  staleResources: stale
142
142
  };
143
143
  };
144
- //#endregion
145
144
  export { upsertComponent, upsertComponentOp };
@@ -1,9 +1,9 @@
1
+ import { empty, fail } from "../../../../helpers/opResult.js";
1
2
  import { findRootByRef, indexRemoveElements, resolveRef } from "../../../../helpers/space.js";
2
3
  import { pageUri } from "../../../../helpers/uris.js";
3
- import { empty, fail } from "../../../../helpers/opResult.js";
4
4
  import { FlatMap, descendants } from "@plitzi/sdk-schema";
5
5
  import { z } from "zod";
6
- //#region src/modules/mcp/tools/operations/schema/elements/deleteElement.ts
6
+ // src/modules/mcp/tools/operations/schema/elements/deleteElement.ts
7
7
  var deleteElementOp = z.object({
8
8
  type: z.literal("deleteElement"),
9
9
  pageRef: z.string().describe("The page, by name"),
@@ -23,5 +23,4 @@ var deleteElement = (space, env, op) => {
23
23
  staleResources: [pageUri(env, op.pageRef)]
24
24
  };
25
25
  };
26
- //#endregion
27
26
  export { deleteElement, deleteElementOp };
@@ -1,11 +1,11 @@
1
- import { findRootByRef, indexInvalidateDetails, resolveRef } from "../../../../helpers/space.js";
2
- import { pageUri } from "../../../../helpers/uris.js";
3
1
  import { empty, fail } from "../../../../helpers/opResult.js";
2
+ import { pageUri } from "../../../../helpers/uris.js";
3
+ import { findRootByRef, indexInvalidateDetails, resolveRef } from "../../../../helpers/space.js";
4
4
  import { position } from "../shared.js";
5
5
  import { DROP_POSITION } from "../write.js";
6
6
  import { FlatMap } from "@plitzi/sdk-schema";
7
7
  import { z } from "zod";
8
- //#region src/modules/mcp/tools/operations/schema/elements/moveElement.ts
8
+ // src/modules/mcp/tools/operations/schema/elements/moveElement.ts
9
9
  var moveElementOp = z.object({
10
10
  type: z.literal("moveElement"),
11
11
  pageRef: z.string().describe("The page, by name"),
@@ -29,5 +29,4 @@ var moveElement = (space, env, op) => {
29
29
  elementRefs: [op.ref]
30
30
  };
31
31
  };
32
- //#endregion
33
32
  export { moveElement, moveElementOp };
@@ -1,13 +1,13 @@
1
- import { findRootByRef, invalidateIndex, resolveRef } from "../../../../helpers/space.js";
2
- import { pageUri } from "../../../../helpers/uris.js";
3
1
  import { empty, fail } from "../../../../helpers/opResult.js";
2
+ import { pageUri } from "../../../../helpers/uris.js";
3
+ import { findRootByRef, invalidateIndex, resolveRef } from "../../../../helpers/space.js";
4
4
  import { elementAnchor, elementFlag, elementMotion, elementQuiet, elementRuntime, initialStateInput, styleRefs } from "../shared.js";
5
5
  import { guardNewRef, writeInitialState } from "../write.js";
6
6
  import { repointIds } from "@plitzi/sdk-schema";
7
7
  import { flagGateOf } from "@plitzi/sdk-authoring";
8
8
  import { z } from "zod";
9
9
  import { isMotion } from "@plitzi/sdk-shared/schema";
10
- //#region src/modules/mcp/tools/operations/schema/elements/patchElement.ts
10
+ // src/modules/mcp/tools/operations/schema/elements/patchElement.ts
11
11
  var patchElementOp = z.object({
12
12
  type: z.literal("patchElement"),
13
13
  pageRef: z.string().describe("The page, by name"),
@@ -69,5 +69,4 @@ var patchElement = (space, env, op) => {
69
69
  elementRefs: [op.ref]
70
70
  };
71
71
  };
72
- //#endregion
73
72
  export { patchElement, patchElementOp };
@@ -1,6 +1,6 @@
1
1
  import { elementInput, elementShape, position, styleRefs } from "../shared.js";
2
2
  import { z } from "zod";
3
- //#region src/modules/mcp/tools/operations/schema/elements/repeatElement.ts
3
+ // src/modules/mcp/tools/operations/schema/elements/repeatElement.ts
4
4
  var item = z.record(z.string(), z.unknown());
5
5
  var MAX_ITEMS = 100;
6
6
  var MAX_ROWS = 500;
@@ -144,5 +144,4 @@ var expandRepeat = (op) => {
144
144
  errors
145
145
  };
146
146
  };
147
- //#endregion
148
147
  export { expandRepeat, repeatElementOp };
@@ -1,12 +1,12 @@
1
- import { findRootByRef, resolveRef } from "../../../../helpers/space.js";
2
- import { pageUri } from "../../../../helpers/uris.js";
3
1
  import { empty, fail } from "../../../../helpers/opResult.js";
2
+ import { pageUri } from "../../../../helpers/uris.js";
3
+ import { findRootByRef, resolveRef } from "../../../../helpers/space.js";
4
4
  import { elementInput, position } from "../shared.js";
5
5
  import { DROP_POSITION, collectInputRefs, createElement, guardNewRef, writeInitialState } from "../write.js";
6
6
  import { flagGateOf } from "@plitzi/sdk-authoring";
7
7
  import { z } from "zod";
8
8
  import { isMotion } from "@plitzi/sdk-shared/schema";
9
- //#region src/modules/mcp/tools/operations/schema/elements/upsertElement.ts
9
+ // src/modules/mcp/tools/operations/schema/elements/upsertElement.ts
10
10
  var upsertElementOp = z.object({
11
11
  type: z.literal("upsertElement"),
12
12
  pageRef: z.string().describe("The page, by name"),
@@ -65,5 +65,4 @@ var upsertElement = (space, env, op) => {
65
65
  elementRefs: [op.element.ref]
66
66
  };
67
67
  };
68
- //#endregion
69
68
  export { upsertElement, upsertElementOp };
@@ -1,7 +1,7 @@
1
- import { flagsUri } from "../../../../helpers/uris.js";
2
1
  import { empty, fail } from "../../../../helpers/opResult.js";
2
+ import { flagsUri } from "../../../../helpers/uris.js";
3
3
  import { z } from "zod";
4
- //#region src/modules/mcp/tools/operations/schema/flags/deleteFlag.ts
4
+ // src/modules/mcp/tools/operations/schema/flags/deleteFlag.ts
5
5
  var deleteFlagOp = z.object({
6
6
  type: z.literal("deleteFlag"),
7
7
  name: z.string()
@@ -17,5 +17,4 @@ var deleteFlag = (space, env, op) => {
17
17
  staleResources: [flagsUri(env)]
18
18
  };
19
19
  };
20
- //#endregion
21
20
  export { deleteFlag, deleteFlagOp };
@@ -1,9 +1,9 @@
1
- import { flagsUri } from "../../../../helpers/uris.js";
2
1
  import { empty, fail } from "../../../../helpers/opResult.js";
2
+ import { flagsUri } from "../../../../helpers/uris.js";
3
3
  import { ruleGroup } from "../shared.js";
4
4
  import { z } from "zod";
5
5
  import { isFlagName, isSchemaFlag } from "@plitzi/sdk-shared/flags";
6
- //#region src/modules/mcp/tools/operations/schema/flags/upsertFlag.ts
6
+ // src/modules/mcp/tools/operations/schema/flags/upsertFlag.ts
7
7
  var ruleInput = z.object({
8
8
  when: ruleGroup,
9
9
  value: z.boolean()
@@ -34,5 +34,4 @@ var upsertFlag = (space, env, op) => {
34
34
  staleResources: [flagsUri(env)]
35
35
  };
36
36
  };
37
- //#endregion
38
37
  export { upsertFlag, upsertFlagOp };
@@ -1,8 +1,8 @@
1
+ import { empty, fail } from "../../../../helpers/opResult.js";
1
2
  import { findFolderByRef, isPageElement, pageFoldersOf, sortFolders } from "../../../../helpers/space.js";
2
3
  import { folderUri, foldersUri, pagesUri } from "../../../../helpers/uris.js";
3
- import { empty, fail } from "../../../../helpers/opResult.js";
4
4
  import { z } from "zod";
5
- //#region src/modules/mcp/tools/operations/schema/folders/deleteFolder.ts
5
+ // src/modules/mcp/tools/operations/schema/folders/deleteFolder.ts
6
6
  var deleteFolderOp = z.object({
7
7
  type: z.literal("deleteFolder"),
8
8
  ref: z.string()
@@ -28,5 +28,4 @@ var deleteFolder = (space, env, op) => {
28
28
  ]
29
29
  };
30
30
  };
31
- //#endregion
32
31
  export { deleteFolder, deleteFolderOp };
@@ -1,8 +1,8 @@
1
+ import { empty, fail } from "../../../../helpers/opResult.js";
1
2
  import { findFolderByRef, pageFoldersOf, slugify, sortFolders } from "../../../../helpers/space.js";
2
3
  import { folderUri, foldersUri } from "../../../../helpers/uris.js";
3
- import { empty, fail } from "../../../../helpers/opResult.js";
4
4
  import { z } from "zod";
5
- //#region src/modules/mcp/tools/operations/schema/folders/upsertFolder.ts
5
+ // src/modules/mcp/tools/operations/schema/folders/upsertFolder.ts
6
6
  var upsertFolderOp = z.object({
7
7
  type: z.literal("upsertFolder"),
8
8
  ref: z.string().describe("Folder ref: an existing folder id/name/slug to update, or a new id you choose"),
@@ -45,5 +45,4 @@ var upsertFolder = (space, env, op) => {
45
45
  staleResources: [folderUri(env, folder.id), foldersUri(env)]
46
46
  };
47
47
  };
48
- //#endregion
49
48
  export { upsertFolder, upsertFolderOp };
@@ -2,7 +2,7 @@ import { pageUri } from "../../../../helpers/uris.js";
2
2
  import { empty, fail } from "../../../../helpers/opResult.js";
3
3
  import { resolveElement } from "../write.js";
4
4
  import { z } from "zod";
5
- //#region src/modules/mcp/tools/operations/schema/interactions/deleteInteraction.ts
5
+ // src/modules/mcp/tools/operations/schema/interactions/deleteInteraction.ts
6
6
  var deleteInteractionOp = z.object({
7
7
  type: z.literal("deleteInteraction"),
8
8
  pageRef: z.string().describe("The page, by name"),
@@ -48,5 +48,4 @@ var deleteInteraction = (space, env, op) => {
48
48
  elementRefs: [op.ref]
49
49
  };
50
50
  };
51
- //#endregion
52
51
  export { deleteInteraction, deleteInteractionOp };
@@ -4,7 +4,7 @@ import { empty, fail } from "../../../../helpers/opResult.js";
4
4
  import { interactionNode } from "../shared.js";
5
5
  import { resolveElement, resolveTargetRef } from "../write.js";
6
6
  import { z } from "zod";
7
- //#region src/modules/mcp/tools/operations/schema/interactions/patchInteractionNode.ts
7
+ // src/modules/mcp/tools/operations/schema/interactions/patchInteractionNode.ts
8
8
  var { title, action, params, enabled, when, whileRunning, elementId, preview } = interactionNode.shape;
9
9
  var patchInteractionNodeOp = z.object({
10
10
  type: z.literal("patchInteractionNode"),
@@ -45,5 +45,4 @@ var patchInteractionNode = (space, env, op) => {
45
45
  elementRefs: [op.ref]
46
46
  };
47
47
  };
48
- //#endregion
49
48
  export { patchInteractionNode, patchInteractionNodeOp };
@@ -1,10 +1,10 @@
1
1
  import { pageUri } from "../../../../helpers/uris.js";
2
- import { materializeFlow } from "../../../../helpers/interactions.js";
3
2
  import { empty } from "../../../../helpers/opResult.js";
3
+ import { materializeFlow } from "../../../../helpers/interactions.js";
4
4
  import { interactionNode } from "../shared.js";
5
5
  import { resolveElement, resolveTargetRef } from "../write.js";
6
6
  import { z } from "zod";
7
- //#region src/modules/mcp/tools/operations/schema/interactions/upsertInteractionFlow.ts
7
+ // src/modules/mcp/tools/operations/schema/interactions/upsertInteractionFlow.ts
8
8
  var upsertInteractionFlowOp = z.object({
9
9
  type: z.literal("upsertInteractionFlow"),
10
10
  pageRef: z.string().describe("The page, by name"),
@@ -40,5 +40,4 @@ var upsertInteractionFlow = (space, env, op) => {
40
40
  elementRefs: [op.ref]
41
41
  };
42
42
  };
43
- //#endregion
44
43
  export { upsertInteractionFlow, upsertInteractionFlowOp };
@@ -22,7 +22,7 @@ import { upsertPageOp } from "./pages/upsertPage.js";
22
22
  import { patchSettingsOp } from "./settings/patchSettings.js";
23
23
  import { deleteVariableOp } from "./variables/deleteVariable.js";
24
24
  import { upsertVariableOp } from "./variables/upsertVariable.js";
25
- //#region src/modules/mcp/tools/operations/schema/operations.ts
25
+ // src/modules/mcp/tools/operations/schema/operations.ts
26
26
  var elementOps = {
27
27
  upsertElement: upsertElementOp,
28
28
  repeatElement: repeatElementOp,
@@ -49,5 +49,4 @@ var elementOps = {
49
49
  upsertComponent: upsertComponentOp,
50
50
  deleteComponent: deleteComponentOp
51
51
  };
52
- //#endregion
53
52
  export { elementOps };
@@ -1,9 +1,9 @@
1
+ import { empty, fail } from "../../../../helpers/opResult.js";
1
2
  import { findLayoutByRef, indexRemoveLayout, pagesUsingLayout } from "../../../../helpers/space.js";
2
3
  import { layoutsUri, pageUri } from "../../../../helpers/uris.js";
3
- import { empty, fail } from "../../../../helpers/opResult.js";
4
4
  import { descendants } from "@plitzi/sdk-schema";
5
5
  import { z } from "zod";
6
- //#region src/modules/mcp/tools/operations/schema/pages/deleteLayout.ts
6
+ // src/modules/mcp/tools/operations/schema/pages/deleteLayout.ts
7
7
  var deleteLayoutOp = z.object({
8
8
  type: z.literal("deleteLayout"),
9
9
  ref: z.string().describe("The layout shell, by name")
@@ -30,5 +30,4 @@ var deleteLayout = (space, env, op) => {
30
30
  staleResources: [pageUri(env, op.ref), layoutsUri(env)]
31
31
  };
32
32
  };
33
- //#endregion
34
33
  export { deleteLayout, deleteLayoutOp };
@@ -1,9 +1,9 @@
1
+ import { empty, fail } from "../../../../helpers/opResult.js";
1
2
  import { findPageByRef, indexRemovePage } from "../../../../helpers/space.js";
2
3
  import { pageUri, pagesUri } from "../../../../helpers/uris.js";
3
- import { empty, fail } from "../../../../helpers/opResult.js";
4
4
  import { descendants } from "@plitzi/sdk-schema";
5
5
  import { z } from "zod";
6
- //#region src/modules/mcp/tools/operations/schema/pages/deletePage.ts
6
+ // src/modules/mcp/tools/operations/schema/pages/deletePage.ts
7
7
  var deletePageOp = z.object({
8
8
  type: z.literal("deletePage"),
9
9
  ref: z.string().describe("The page, by name")
@@ -22,5 +22,4 @@ var deletePage = (space, env, op) => {
22
22
  staleResources: [pageUri(env, op.ref), pagesUri(env)]
23
23
  };
24
24
  };
25
- //#endregion
26
25
  export { deletePage, deletePageOp };
@@ -1,9 +1,9 @@
1
- import { findLayoutByRef, indexAddLayout } from "../../../../helpers/space.js";
2
- import { layoutsUri, pageUri } from "../../../../helpers/uris.js";
3
1
  import { empty } from "../../../../helpers/opResult.js";
2
+ import { layoutsUri, pageUri } from "../../../../helpers/uris.js";
3
+ import { findLayoutByRef, indexAddLayout } from "../../../../helpers/space.js";
4
4
  import { guardNewRef } from "../write.js";
5
5
  import { z } from "zod";
6
- //#region src/modules/mcp/tools/operations/schema/pages/upsertLayout.ts
6
+ // src/modules/mcp/tools/operations/schema/pages/upsertLayout.ts
7
7
  var upsertLayoutOp = z.object({
8
8
  type: z.literal("upsertLayout"),
9
9
  ref: z.string().describe("Layout id to update, or a new id to create one. Pages reference it by this name."),
@@ -57,5 +57,4 @@ var upsertLayout = (space, env, op) => {
57
57
  staleResources: [pageUri(env, op.ref), layoutsUri(env)]
58
58
  };
59
59
  };
60
- //#endregion
61
60
  export { upsertLayout, upsertLayoutOp };
@@ -1,11 +1,11 @@
1
- import { findFolderByRef, findLayoutByRef, findPageByRef, indexAddPage, resolveRef } from "../../../../helpers/space.js";
2
- import { layoutsUri, pageUri, pagesUri } from "../../../../helpers/uris.js";
3
1
  import { empty, fail } from "../../../../helpers/opResult.js";
2
+ import { layoutsUri, pageUri, pagesUri } from "../../../../helpers/uris.js";
3
+ import { findFolderByRef, findLayoutByRef, findPageByRef, indexAddPage, resolveRef } from "../../../../helpers/space.js";
4
4
  import { elementFlag } from "../shared.js";
5
5
  import { guardNewRef } from "../write.js";
6
6
  import { DOCUMENT_SCROLLS, flagGateOf } from "@plitzi/sdk-authoring";
7
7
  import { z } from "zod";
8
- //#region src/modules/mcp/tools/operations/schema/pages/upsertPage.ts
8
+ // src/modules/mcp/tools/operations/schema/pages/upsertPage.ts
9
9
  var upsertPageOp = z.object({
10
10
  type: z.literal("upsertPage"),
11
11
  ref: z.string().describe("Page id to update, or a new id you choose to create one. The id IS the page name — starts with a letter, then letters, numbers, hyphens and underscores (\"pricing\"), unique across the space."),
@@ -118,5 +118,4 @@ var upsertPage = (space, env, op) => {
118
118
  ]
119
119
  };
120
120
  };
121
- //#endregion
122
121
  export { upsertPage, upsertPageOp };
@@ -1,10 +1,10 @@
1
- import { settingsUri } from "../../../../helpers/uris.js";
2
1
  import { empty, fail } from "../../../../helpers/opResult.js";
2
+ import { settingsUri } from "../../../../helpers/uris.js";
3
3
  import { NOTIFICATIONS_FIELDS, splitNotificationsCss, withNotificationsCss } from "@plitzi/sdk-authoring";
4
4
  import { z } from "zod";
5
5
  import { spaceIdentity, spaceIdentityProblems, withheldPageOf } from "@plitzi/sdk-shared/schema";
6
6
  import { channelProblems } from "@plitzi/sdk-shared/realtime";
7
- //#region src/modules/mcp/tools/operations/schema/settings/patchSettings.ts
7
+ // src/modules/mcp/tools/operations/schema/settings/patchSettings.ts
8
8
  var userProvider = z.string();
9
9
  var storage = z.enum([
10
10
  "localStorage",
@@ -124,5 +124,4 @@ var patchSettings = (space, env, op) => {
124
124
  staleResources: [settingsUri(env)]
125
125
  };
126
126
  };
127
- //#endregion
128
127
  export { patchSettings, patchSettingsOp };
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  import { FLAG_GATE_PATTERN } from "@plitzi/sdk-shared/flags";
5
5
  import { ANCHOR_PATTERN, motionProblems } from "@plitzi/sdk-shared/schema";
6
6
  import { WHILE_RUNNING_MODES } from "@plitzi/sdk-shared/types";
7
- //#region src/modules/mcp/tools/operations/schema/shared.ts
7
+ // src/modules/mcp/tools/operations/schema/shared.ts
8
8
  var combinator = z.enum(["and", "or"]);
9
9
  var operator = z.enum([
10
10
  "",
@@ -161,5 +161,4 @@ var interactionNode = closedObject("A flow step", {
161
161
  elementId: z.string().optional().describe("Element whose callback this step invokes, by name; defaults to this element"),
162
162
  preview: z.record(z.string(), z.unknown()).optional()
163
163
  }, "plitzi_describe_operation { type: \"upsertInteractionFlow\" }");
164
- //#endregion
165
164
  export { bindingCategory, bindingInput, elementAnchor, elementFlag, elementInput, elementMotion, elementQuiet, elementRuntime, elementShape, initialStateInput, interactionNode, interactionNodeType, position, ruleGroup, scalar, styleRefs, styleVariantInput };
@@ -1,10 +1,10 @@
1
+ import { bindingsToAI, flowsFromInteractions } from "../../../helpers/interactions.js";
1
2
  import { computeVersion } from "../../../helpers/computeVersion.js";
2
3
  import { descendantCount, elementById, getLayoutElements, getPageElements, nameOf, orderedChildren, pageFoldersOf, pageRefOfElement, pagesUsingLayout, slugRouteParams, spaceIndex, strOr } from "../../../helpers/space.js";
3
- import { bindingsToAI, flowsFromInteractions } from "../../../helpers/interactions.js";
4
4
  import { definitionToAI, globalStylesForType, idStyleToAI } from "../style/translator.js";
5
5
  import { descendants } from "@plitzi/sdk-schema";
6
6
  import { flagSpecOf, isDocumentScroll, splitNotificationsCss } from "@plitzi/sdk-authoring";
7
- //#region src/modules/mcp/tools/operations/schema/translator.ts
7
+ // src/modules/mcp/tools/operations/schema/translator.ts
8
8
  var splitClasses = (value) => value ? value.split(/\s+/).filter(Boolean) : [];
9
9
  var propsOf = (el) => {
10
10
  const { subType, ...rest } = el.attributes;
@@ -234,5 +234,4 @@ var settingsToAI = (schema) => {
234
234
  }
235
235
  return result;
236
236
  };
237
- //#endregion
238
237
  export { elementDetailToAI, elementView, folderRefToAI, foldersToAI, layoutSummariesToAI, pageSkeletonToAI, pageStylesToAI, pageSummariesToAI, schemaVariablesToAI, settingsToAI };
@@ -1,7 +1,7 @@
1
- import { schemaVarsUri } from "../../../../helpers/uris.js";
2
1
  import { empty } from "../../../../helpers/opResult.js";
2
+ import { schemaVarsUri } from "../../../../helpers/uris.js";
3
3
  import { z } from "zod";
4
- //#region src/modules/mcp/tools/operations/schema/variables/deleteVariable.ts
4
+ // src/modules/mcp/tools/operations/schema/variables/deleteVariable.ts
5
5
  var deleteVariableOp = z.object({
6
6
  type: z.literal("deleteVariable"),
7
7
  name: z.string().describe("Name of the schema variable to delete")
@@ -14,5 +14,4 @@ var deleteVariable = (space, env, op) => {
14
14
  staleResources: [schemaVarsUri(env)]
15
15
  };
16
16
  };
17
- //#endregion
18
17
  export { deleteVariable, deleteVariableOp };
@@ -1,8 +1,8 @@
1
- import { schemaVarsUri } from "../../../../helpers/uris.js";
2
1
  import { empty } from "../../../../helpers/opResult.js";
3
2
  import { scalar } from "../shared.js";
3
+ import { schemaVarsUri } from "../../../../helpers/uris.js";
4
4
  import { z } from "zod";
5
- //#region src/modules/mcp/tools/operations/schema/variables/upsertVariable.ts
5
+ // src/modules/mcp/tools/operations/schema/variables/upsertVariable.ts
6
6
  var upsertVariableOp = z.object({
7
7
  type: z.literal("upsertVariable"),
8
8
  name: z.string().describe("Variable name; referenced in content as {{name}}"),
@@ -38,5 +38,4 @@ var upsertVariable = (space, env, op) => {
38
38
  staleResources: [schemaVarsUri(env)]
39
39
  };
40
40
  };
41
- //#endregion
42
41
  export { upsertVariable, upsertVariableOp };