funkscript 0.2.4 → 0.2.7

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 (447) hide show
  1. package/README.md +23 -5
  2. package/dist/ast/types.d.ts.map +1 -1
  3. package/dist/ast/types.js.map +1 -1
  4. package/dist/ast/walk.d.ts.map +1 -1
  5. package/dist/ast/walk.js.map +1 -1
  6. package/dist/cli/build-bun.d.ts.map +1 -1
  7. package/dist/cli/build-bun.js.map +1 -1
  8. package/dist/cli/build-watch.d.ts.map +1 -1
  9. package/dist/cli/build-watch.js +9 -27
  10. package/dist/cli/build-watch.js.map +1 -1
  11. package/dist/cli/build.d.ts +1 -1
  12. package/dist/cli/build.d.ts.map +1 -1
  13. package/dist/cli/build.js +3 -58
  14. package/dist/cli/build.js.map +1 -1
  15. package/dist/cli/check-policy.d.ts +9 -0
  16. package/dist/cli/check-policy.d.ts.map +1 -0
  17. package/dist/cli/check-policy.js +39 -0
  18. package/dist/cli/check-policy.js.map +1 -0
  19. package/dist/cli/check.d.ts.map +1 -1
  20. package/dist/cli/check.js +16 -30
  21. package/dist/cli/check.js.map +1 -1
  22. package/dist/cli/commands.d.ts.map +1 -1
  23. package/dist/cli/commands.js +11 -0
  24. package/dist/cli/commands.js.map +1 -1
  25. package/dist/cli/doc.d.ts.map +1 -1
  26. package/dist/cli/doc.js.map +1 -1
  27. package/dist/cli/doctor.d.ts.map +1 -1
  28. package/dist/cli/doctor.js +5 -7
  29. package/dist/cli/doctor.js.map +1 -1
  30. package/dist/cli/emit.d.ts +1 -1
  31. package/dist/cli/emit.d.ts.map +1 -1
  32. package/dist/cli/emit.js.map +1 -1
  33. package/dist/cli/explain.d.ts.map +1 -1
  34. package/dist/cli/explain.js.map +1 -1
  35. package/dist/cli/fmt.d.ts.map +1 -1
  36. package/dist/cli/fmt.js.map +1 -1
  37. package/dist/cli/index.d.ts.map +1 -1
  38. package/dist/cli/index.js +3 -0
  39. package/dist/cli/index.js.map +1 -1
  40. package/dist/cli/init.d.ts +1 -1
  41. package/dist/cli/init.d.ts.map +1 -1
  42. package/dist/cli/init.js +66 -21
  43. package/dist/cli/init.js.map +1 -1
  44. package/dist/cli/io.d.ts.map +1 -1
  45. package/dist/cli/io.js.map +1 -1
  46. package/dist/cli/pipeline-style.d.ts.map +1 -1
  47. package/dist/cli/pipeline-style.js.map +1 -1
  48. package/dist/cli/query.d.ts +3 -0
  49. package/dist/cli/query.d.ts.map +1 -0
  50. package/dist/cli/query.js +152 -0
  51. package/dist/cli/query.js.map +1 -0
  52. package/dist/cli/repl.d.ts.map +1 -1
  53. package/dist/cli/repl.js.map +1 -1
  54. package/dist/cli/run.d.ts.map +1 -1
  55. package/dist/cli/run.js +2 -29
  56. package/dist/cli/run.js.map +1 -1
  57. package/dist/cli/test.d.ts +1 -1
  58. package/dist/cli/test.d.ts.map +1 -1
  59. package/dist/cli/test.js.map +1 -1
  60. package/dist/cli/tsc.d.ts.map +1 -1
  61. package/dist/cli/tsc.js +6 -8
  62. package/dist/cli/tsc.js.map +1 -1
  63. package/dist/cli/typecheck.d.ts.map +1 -1
  64. package/dist/cli/typecheck.js.map +1 -1
  65. package/dist/compiler/ast-inspection.d.ts.map +1 -1
  66. package/dist/compiler/ast-inspection.js.map +1 -1
  67. package/dist/compiler/boolean-operators.d.ts.map +1 -1
  68. package/dist/compiler/boolean-operators.js +12 -2
  69. package/dist/compiler/boolean-operators.js.map +1 -1
  70. package/dist/compiler/check.d.ts.map +1 -1
  71. package/dist/compiler/check.js +113 -131
  72. package/dist/compiler/check.js.map +1 -1
  73. package/dist/compiler/diagnostics-json.d.ts +73 -0
  74. package/dist/compiler/diagnostics-json.d.ts.map +1 -0
  75. package/dist/compiler/diagnostics-json.js +957 -0
  76. package/dist/compiler/diagnostics-json.js.map +1 -0
  77. package/dist/compiler/diagnostics.d.ts.map +1 -1
  78. package/dist/compiler/diagnostics.js.map +1 -1
  79. package/dist/compiler/effect-mutation-rule.d.ts.map +1 -1
  80. package/dist/compiler/effect-mutation-rule.js.map +1 -1
  81. package/dist/compiler/entry-rules.d.ts.map +1 -1
  82. package/dist/compiler/entry-rules.js.map +1 -1
  83. package/dist/compiler/escape-audit.d.ts +46 -0
  84. package/dist/compiler/escape-audit.d.ts.map +1 -0
  85. package/dist/compiler/escape-audit.js +682 -0
  86. package/dist/compiler/escape-audit.js.map +1 -0
  87. package/dist/compiler/incremental-build.d.ts.map +1 -1
  88. package/dist/compiler/incremental-build.js.map +1 -1
  89. package/dist/compiler/incremental-dependencies.d.ts.map +1 -1
  90. package/dist/compiler/incremental-dependencies.js.map +1 -1
  91. package/dist/compiler/js-interop-nullability.d.ts.map +1 -1
  92. package/dist/compiler/js-interop-nullability.js.map +1 -1
  93. package/dist/compiler/modules/output-collisions.d.ts.map +1 -1
  94. package/dist/compiler/modules/output-collisions.js.map +1 -1
  95. package/dist/compiler/modules/output-plan.d.ts.map +1 -1
  96. package/dist/compiler/modules/output-plan.js +10 -5
  97. package/dist/compiler/modules/output-plan.js.map +1 -1
  98. package/dist/compiler/modules/resolution.d.ts.map +1 -1
  99. package/dist/compiler/modules/resolution.js +2 -1
  100. package/dist/compiler/modules/resolution.js.map +1 -1
  101. package/dist/compiler/modules/source-files.d.ts +5 -0
  102. package/dist/compiler/modules/source-files.d.ts.map +1 -0
  103. package/dist/compiler/modules/source-files.js +13 -0
  104. package/dist/compiler/modules/source-files.js.map +1 -0
  105. package/dist/compiler/numeric-comparisons.d.ts.map +1 -1
  106. package/dist/compiler/numeric-comparisons.js +13 -7
  107. package/dist/compiler/numeric-comparisons.js.map +1 -1
  108. package/dist/compiler/optional-arguments.d.ts.map +1 -1
  109. package/dist/compiler/optional-arguments.js.map +1 -1
  110. package/dist/compiler/package-fingerprint.d.ts.map +1 -1
  111. package/dist/compiler/package-fingerprint.js.map +1 -1
  112. package/dist/compiler/package-record-contracts.d.ts.map +1 -1
  113. package/dist/compiler/package-record-contracts.js.map +1 -1
  114. package/dist/compiler/pipelines/catalog.d.ts.map +1 -1
  115. package/dist/compiler/pipelines/catalog.js.map +1 -1
  116. package/dist/compiler/pipelines/companions.d.ts.map +1 -1
  117. package/dist/compiler/pipelines/companions.js.map +1 -1
  118. package/dist/compiler/pipelines/resolution.d.ts.map +1 -1
  119. package/dist/compiler/pipelines/resolution.js +24 -23
  120. package/dist/compiler/pipelines/resolution.js.map +1 -1
  121. package/dist/compiler/project-config.d.ts.map +1 -1
  122. package/dist/compiler/project-config.js +29 -19
  123. package/dist/compiler/project-config.js.map +1 -1
  124. package/dist/compiler/query.d.ts +53 -0
  125. package/dist/compiler/query.d.ts.map +1 -0
  126. package/dist/compiler/query.js +781 -0
  127. package/dist/compiler/query.js.map +1 -0
  128. package/dist/compiler/record-contracts.d.ts.map +1 -1
  129. package/dist/compiler/record-contracts.js.map +1 -1
  130. package/dist/compiler/rules/control-flow.d.ts.map +1 -1
  131. package/dist/compiler/rules/control-flow.js.map +1 -1
  132. package/dist/compiler/rules/diagnostic.d.ts.map +1 -1
  133. package/dist/compiler/rules/diagnostic.js.map +1 -1
  134. package/dist/compiler/rules/module-scope-refs.d.ts.map +1 -1
  135. package/dist/compiler/rules/module-scope-refs.js.map +1 -1
  136. package/dist/compiler/rules/resource-escape.d.ts +7 -0
  137. package/dist/compiler/rules/resource-escape.d.ts.map +1 -0
  138. package/dist/compiler/rules/resource-escape.js +146 -0
  139. package/dist/compiler/rules/resource-escape.js.map +1 -0
  140. package/dist/compiler/rules/resource-providers.d.ts +19 -0
  141. package/dist/compiler/rules/resource-providers.d.ts.map +1 -0
  142. package/dist/compiler/rules/resource-providers.js +222 -0
  143. package/dist/compiler/rules/resource-providers.js.map +1 -0
  144. package/dist/compiler/schemas/analysis.d.ts.map +1 -1
  145. package/dist/compiler/schemas/analysis.js.map +1 -1
  146. package/dist/compiler/schemas/imported-record-functions.d.ts.map +1 -1
  147. package/dist/compiler/schemas/imported-record-functions.js.map +1 -1
  148. package/dist/compiler/schemas/imported-schemas.d.ts.map +1 -1
  149. package/dist/compiler/schemas/imported-schemas.js.map +1 -1
  150. package/dist/compiler/source-map.d.ts.map +1 -1
  151. package/dist/compiler/source-map.js +2 -7
  152. package/dist/compiler/source-map.js.map +1 -1
  153. package/dist/compiler/type-view-paths.d.ts +6 -0
  154. package/dist/compiler/type-view-paths.d.ts.map +1 -0
  155. package/dist/compiler/type-view-paths.js +12 -0
  156. package/dist/compiler/type-view-paths.js.map +1 -0
  157. package/dist/compiler/typescript-context.d.ts.map +1 -1
  158. package/dist/compiler/typescript-context.js +5 -7
  159. package/dist/compiler/typescript-context.js.map +1 -1
  160. package/dist/compiler.d.ts.map +1 -1
  161. package/dist/compiler.js.map +1 -1
  162. package/dist/emitter/assemblyscript.d.ts.map +1 -1
  163. package/dist/emitter/assemblyscript.js +120 -136
  164. package/dist/emitter/assemblyscript.js.map +1 -1
  165. package/dist/emitter/declarations.d.ts.map +1 -1
  166. package/dist/emitter/declarations.js.map +1 -1
  167. package/dist/emitter/emitter.d.ts +3 -1
  168. package/dist/emitter/emitter.d.ts.map +1 -1
  169. package/dist/emitter/emitter.js +10 -1
  170. package/dist/emitter/emitter.js.map +1 -1
  171. package/dist/emitter/imports.d.ts.map +1 -1
  172. package/dist/emitter/imports.js.map +1 -1
  173. package/dist/emitter/indent.d.ts.map +1 -1
  174. package/dist/emitter/indent.js.map +1 -1
  175. package/dist/emitter/jsx.d.ts.map +1 -1
  176. package/dist/emitter/jsx.js.map +1 -1
  177. package/dist/emitter/local-bindings.d.ts.map +1 -1
  178. package/dist/emitter/local-bindings.js.map +1 -1
  179. package/dist/emitter/match.d.ts.map +1 -1
  180. package/dist/emitter/match.js.map +1 -1
  181. package/dist/emitter/runtime-helpers.d.ts.map +1 -1
  182. package/dist/emitter/runtime-helpers.js.map +1 -1
  183. package/dist/emitter/schemas.d.ts.map +1 -1
  184. package/dist/emitter/schemas.js.map +1 -1
  185. package/dist/emitter/statements.d.ts +1 -0
  186. package/dist/emitter/statements.d.ts.map +1 -1
  187. package/dist/emitter/statements.js +1 -0
  188. package/dist/emitter/statements.js.map +1 -1
  189. package/dist/emitter/tagged-match.d.ts.map +1 -1
  190. package/dist/emitter/tagged-match.js.map +1 -1
  191. package/dist/emitter/types.d.ts.map +1 -1
  192. package/dist/emitter/types.js.map +1 -1
  193. package/dist/errors.d.ts.map +1 -1
  194. package/dist/errors.js.map +1 -1
  195. package/dist/formatter/comments.d.ts.map +1 -1
  196. package/dist/formatter/comments.js +13 -0
  197. package/dist/formatter/comments.js.map +1 -1
  198. package/dist/formatter/index.d.ts +9 -0
  199. package/dist/formatter/index.d.ts.map +1 -1
  200. package/dist/formatter/index.js +215 -5
  201. package/dist/formatter/index.js.map +1 -1
  202. package/dist/formatter/operator-precedence.d.ts.map +1 -1
  203. package/dist/formatter/operator-precedence.js.map +1 -1
  204. package/dist/formatter/prettier.d.ts.map +1 -1
  205. package/dist/formatter/prettier.js.map +1 -1
  206. package/dist/index.d.ts +3 -0
  207. package/dist/index.d.ts.map +1 -1
  208. package/dist/index.js +3 -0
  209. package/dist/index.js.map +1 -1
  210. package/dist/interop/callback.d.ts.map +1 -1
  211. package/dist/interop/callback.js.map +1 -1
  212. package/dist/interop/js.d.ts.map +1 -1
  213. package/dist/interop/js.js.map +1 -1
  214. package/dist/interop/record.d.ts.map +1 -1
  215. package/dist/interop/record.js.map +1 -1
  216. package/dist/interop/valibot.d.ts.map +1 -1
  217. package/dist/interop/valibot.js.map +1 -1
  218. package/dist/interop/zod.d.ts.map +1 -1
  219. package/dist/interop/zod.js.map +1 -1
  220. package/dist/lexer/lexer.d.ts +1 -0
  221. package/dist/lexer/lexer.d.ts.map +1 -1
  222. package/dist/lexer/lexer.js +26 -10
  223. package/dist/lexer/lexer.js.map +1 -1
  224. package/dist/lexer/tokens.d.ts.map +1 -1
  225. package/dist/lexer/tokens.js.map +1 -1
  226. package/dist/lsp/code-action-worker.d.ts.map +1 -1
  227. package/dist/lsp/code-action-worker.js.map +1 -1
  228. package/dist/lsp/completion.d.ts +25 -0
  229. package/dist/lsp/completion.d.ts.map +1 -1
  230. package/dist/lsp/completion.js +1114 -51
  231. package/dist/lsp/completion.js.map +1 -1
  232. package/dist/lsp/definition.d.ts +2 -0
  233. package/dist/lsp/definition.d.ts.map +1 -1
  234. package/dist/lsp/definition.js +52 -58
  235. package/dist/lsp/definition.js.map +1 -1
  236. package/dist/lsp/diagnostics-worker.d.ts.map +1 -1
  237. package/dist/lsp/diagnostics-worker.js +1 -1
  238. package/dist/lsp/diagnostics-worker.js.map +1 -1
  239. package/dist/lsp/docs.d.ts +1 -1
  240. package/dist/lsp/docs.d.ts.map +1 -1
  241. package/dist/lsp/docs.js +4 -3
  242. package/dist/lsp/docs.js.map +1 -1
  243. package/dist/lsp/error-channel.d.ts.map +1 -1
  244. package/dist/lsp/error-channel.js.map +1 -1
  245. package/dist/lsp/hover.d.ts +5 -1
  246. package/dist/lsp/hover.d.ts.map +1 -1
  247. package/dist/lsp/hover.js +1016 -46
  248. package/dist/lsp/hover.js.map +1 -1
  249. package/dist/lsp/imports.d.ts +2 -0
  250. package/dist/lsp/imports.d.ts.map +1 -1
  251. package/dist/lsp/imports.js +45 -21
  252. package/dist/lsp/imports.js.map +1 -1
  253. package/dist/lsp/index.d.ts.map +1 -1
  254. package/dist/lsp/index.js.map +1 -1
  255. package/dist/lsp/inlay-hints.d.ts.map +1 -1
  256. package/dist/lsp/inlay-hints.js.map +1 -1
  257. package/dist/lsp/interop-rename.d.ts.map +1 -1
  258. package/dist/lsp/interop-rename.js.map +1 -1
  259. package/dist/lsp/match-arms.d.ts.map +1 -1
  260. package/dist/lsp/match-arms.js.map +1 -1
  261. package/dist/lsp/navigation.d.ts +1 -1
  262. package/dist/lsp/navigation.d.ts.map +1 -1
  263. package/dist/lsp/navigation.js +30 -12
  264. package/dist/lsp/navigation.js.map +1 -1
  265. package/dist/lsp/parsed-documents.d.ts.map +1 -1
  266. package/dist/lsp/parsed-documents.js.map +1 -1
  267. package/dist/lsp/range-format.d.ts +4 -0
  268. package/dist/lsp/range-format.d.ts.map +1 -0
  269. package/dist/lsp/range-format.js +88 -0
  270. package/dist/lsp/range-format.js.map +1 -0
  271. package/dist/lsp/rename-worker.d.ts.map +1 -1
  272. package/dist/lsp/rename-worker.js.map +1 -1
  273. package/dist/lsp/schema-import-hover.d.ts +8 -0
  274. package/dist/lsp/schema-import-hover.d.ts.map +1 -0
  275. package/dist/lsp/schema-import-hover.js +52 -0
  276. package/dist/lsp/schema-import-hover.js.map +1 -0
  277. package/dist/lsp/server.d.ts +3 -1
  278. package/dist/lsp/server.d.ts.map +1 -1
  279. package/dist/lsp/server.js +73 -48
  280. package/dist/lsp/server.js.map +1 -1
  281. package/dist/lsp/signature-help.d.ts +6 -0
  282. package/dist/lsp/signature-help.d.ts.map +1 -0
  283. package/dist/lsp/signature-help.js +183 -0
  284. package/dist/lsp/signature-help.js.map +1 -0
  285. package/dist/lsp/thunk-pipeline.d.ts.map +1 -1
  286. package/dist/lsp/thunk-pipeline.js.map +1 -1
  287. package/dist/lsp/validation.d.ts.map +1 -1
  288. package/dist/lsp/validation.js +3 -2
  289. package/dist/lsp/validation.js.map +1 -1
  290. package/dist/lsp/workspace.d.ts +3 -1
  291. package/dist/lsp/workspace.d.ts.map +1 -1
  292. package/dist/lsp/workspace.js +66 -10
  293. package/dist/lsp/workspace.js.map +1 -1
  294. package/dist/parser/declarations.d.ts.map +1 -1
  295. package/dist/parser/declarations.js +22 -1
  296. package/dist/parser/declarations.js.map +1 -1
  297. package/dist/parser/errors.d.ts.map +1 -1
  298. package/dist/parser/errors.js.map +1 -1
  299. package/dist/parser/jsx.d.ts.map +1 -1
  300. package/dist/parser/jsx.js.map +1 -1
  301. package/dist/parser/operator-expressions.d.ts.map +1 -1
  302. package/dist/parser/operator-expressions.js.map +1 -1
  303. package/dist/parser/parser.d.ts.map +1 -1
  304. package/dist/parser/parser.js.map +1 -1
  305. package/dist/parser/patterns.d.ts.map +1 -1
  306. package/dist/parser/patterns.js.map +1 -1
  307. package/dist/parser/pipeline-expressions.d.ts.map +1 -1
  308. package/dist/parser/pipeline-expressions.js.map +1 -1
  309. package/dist/parser/scope.d.ts.map +1 -1
  310. package/dist/parser/scope.js.map +1 -1
  311. package/dist/parser/statements.d.ts.map +1 -1
  312. package/dist/parser/statements.js.map +1 -1
  313. package/dist/parser/types.d.ts.map +1 -1
  314. package/dist/parser/types.js.map +1 -1
  315. package/dist/plugins/bun-preload.d.ts.map +1 -1
  316. package/dist/plugins/bun-preload.js.map +1 -1
  317. package/dist/plugins/bun.d.ts +2 -18
  318. package/dist/plugins/bun.d.ts.map +1 -1
  319. package/dist/plugins/bun.js +5 -30
  320. package/dist/plugins/bun.js.map +1 -1
  321. package/dist/plugins/esbuild.d.ts +1 -1
  322. package/dist/plugins/esbuild.d.ts.map +1 -1
  323. package/dist/plugins/esbuild.js +10 -36
  324. package/dist/plugins/esbuild.js.map +1 -1
  325. package/dist/plugins/server-boundary.d.ts +14 -0
  326. package/dist/plugins/server-boundary.d.ts.map +1 -0
  327. package/dist/plugins/server-boundary.js +25 -0
  328. package/dist/plugins/server-boundary.js.map +1 -0
  329. package/dist/plugins/type-view.d.ts.map +1 -1
  330. package/dist/plugins/type-view.js +5 -3
  331. package/dist/plugins/type-view.js.map +1 -1
  332. package/dist/plugins/vite.d.ts +2 -18
  333. package/dist/plugins/vite.d.ts.map +1 -1
  334. package/dist/plugins/vite.js +4 -29
  335. package/dist/plugins/vite.js.map +1 -1
  336. package/dist/testing/index.d.ts.map +1 -1
  337. package/dist/testing/index.js.map +1 -1
  338. package/dist/tooling/doc.d.ts.map +1 -1
  339. package/dist/tooling/doc.js.map +1 -1
  340. package/dist/tooling/idiomatic.d.ts.map +1 -1
  341. package/dist/tooling/idiomatic.js.map +1 -1
  342. package/dist/tooling/pipeline-style.d.ts.map +1 -1
  343. package/dist/tooling/pipeline-style.js.map +1 -1
  344. package/dist/version.d.ts.map +1 -1
  345. package/dist/version.js.map +1 -1
  346. package/package.json +13 -6
  347. package/src/cli/build-watch.ts +10 -29
  348. package/src/cli/build.ts +9 -60
  349. package/src/cli/check-policy.ts +54 -0
  350. package/src/cli/check.ts +19 -31
  351. package/src/cli/commands.ts +13 -0
  352. package/src/cli/doctor.ts +10 -7
  353. package/src/cli/index.ts +3 -0
  354. package/src/cli/init.ts +66 -21
  355. package/src/cli/query.ts +191 -0
  356. package/src/cli/run.ts +5 -30
  357. package/src/cli/tsc.ts +10 -8
  358. package/src/compiler/boolean-operators.ts +11 -2
  359. package/src/compiler/check.ts +152 -180
  360. package/src/compiler/diagnostics-json.ts +1205 -0
  361. package/src/compiler/escape-audit.ts +913 -0
  362. package/src/compiler/modules/output-plan.ts +11 -9
  363. package/src/compiler/modules/resolution.ts +2 -1
  364. package/src/compiler/modules/source-files.ts +13 -0
  365. package/src/compiler/numeric-comparisons.ts +14 -8
  366. package/src/compiler/pipelines/resolution.ts +30 -26
  367. package/src/compiler/project-config.ts +30 -19
  368. package/src/compiler/query.ts +1177 -0
  369. package/src/compiler/rules/resource-escape.ts +223 -0
  370. package/src/compiler/rules/resource-providers.ts +293 -0
  371. package/src/compiler/source-map.ts +3 -7
  372. package/src/compiler/type-view-paths.ts +10 -0
  373. package/src/compiler/typescript-context.ts +6 -7
  374. package/src/emitter/assemblyscript.ts +101 -147
  375. package/src/emitter/emitter.ts +13 -1
  376. package/src/emitter/statements.ts +2 -0
  377. package/src/formatter/comments.ts +14 -0
  378. package/src/formatter/index.ts +299 -4
  379. package/src/index.ts +3 -0
  380. package/src/lexer/lexer.ts +39 -20
  381. package/src/lsp/completion.ts +1452 -66
  382. package/src/lsp/definition.ts +50 -58
  383. package/src/lsp/diagnostics-worker.ts +1 -4
  384. package/src/lsp/docs.ts +4 -3
  385. package/src/lsp/hover.ts +1465 -44
  386. package/src/lsp/imports.ts +75 -22
  387. package/src/lsp/navigation.ts +41 -22
  388. package/src/lsp/range-format.ts +102 -0
  389. package/src/lsp/schema-import-hover.ts +76 -0
  390. package/src/lsp/server.ts +99 -69
  391. package/src/lsp/signature-help.ts +226 -0
  392. package/src/lsp/validation.ts +3 -2
  393. package/src/lsp/workspace.ts +63 -9
  394. package/src/parser/declarations.ts +27 -1
  395. package/src/plugins/bun.ts +14 -66
  396. package/src/plugins/esbuild.ts +16 -55
  397. package/src/plugins/server-boundary.ts +41 -0
  398. package/src/plugins/type-view.ts +11 -3
  399. package/src/plugins/vite.ts +12 -62
  400. package/dist/Widget.tsx +0 -9
  401. package/dist/cli/output-collisions.d.ts +0 -2
  402. package/dist/cli/output-collisions.d.ts.map +0 -1
  403. package/dist/cli/output-collisions.js +0 -39
  404. package/dist/cli/output-collisions.js.map +0 -1
  405. package/dist/compiler/imported-record-functions.d.ts +0 -4
  406. package/dist/compiler/imported-record-functions.d.ts.map +0 -1
  407. package/dist/compiler/imported-record-functions.js +0 -706
  408. package/dist/compiler/imported-record-functions.js.map +0 -1
  409. package/dist/compiler/imported-schemas.d.ts +0 -21
  410. package/dist/compiler/imported-schemas.d.ts.map +0 -1
  411. package/dist/compiler/imported-schemas.js +0 -461
  412. package/dist/compiler/imported-schemas.js.map +0 -1
  413. package/dist/compiler/module-resolution.d.ts +0 -6
  414. package/dist/compiler/module-resolution.d.ts.map +0 -1
  415. package/dist/compiler/module-resolution.js +0 -44
  416. package/dist/compiler/module-resolution.js.map +0 -1
  417. package/dist/compiler/pipeline-companions.d.ts +0 -18
  418. package/dist/compiler/pipeline-companions.d.ts.map +0 -1
  419. package/dist/compiler/pipeline-companions.js +0 -1042
  420. package/dist/compiler/pipeline-companions.js.map +0 -1
  421. package/dist/compiler/providers.d.ts +0 -4
  422. package/dist/compiler/providers.d.ts.map +0 -1
  423. package/dist/compiler/providers.js +0 -101
  424. package/dist/compiler/providers.js.map +0 -1
  425. package/dist/emitter/pipeline-catalog.d.ts +0 -15
  426. package/dist/emitter/pipeline-catalog.d.ts.map +0 -1
  427. package/dist/emitter/pipeline-catalog.js +0 -55
  428. package/dist/emitter/pipeline-catalog.js.map +0 -1
  429. package/dist/emitter/pipeline-resolution.d.ts +0 -38
  430. package/dist/emitter/pipeline-resolution.d.ts.map +0 -1
  431. package/dist/emitter/pipeline-resolution.js +0 -571
  432. package/dist/emitter/pipeline-resolution.js.map +0 -1
  433. package/dist/interop/index.d.ts +0 -6
  434. package/dist/interop/index.d.ts.map +0 -1
  435. package/dist/interop/index.js +0 -6
  436. package/dist/interop/index.js.map +0 -1
  437. package/dist/math.ts +0 -1
  438. package/dist/parser/index.d.ts +0 -9
  439. package/dist/parser/index.d.ts.map +0 -1
  440. package/dist/parser/index.js +0 -9
  441. package/dist/parser/index.js.map +0 -1
  442. package/dist/service.ts +0 -3
  443. package/dist/service.ts.map +0 -1
  444. package/dist/tooling/migrate.d.ts +0 -62
  445. package/dist/tooling/migrate.d.ts.map +0 -1
  446. package/dist/tooling/migrate.js +0 -608
  447. package/dist/tooling/migrate.js.map +0 -1
@@ -12,27 +12,16 @@ import { TypeScriptCompilationContext } from "../compiler/typescript-context.js"
12
12
  import { isFileNotFoundError } from "../errors.js";
13
13
  import { FUNSCRIPT_VERSION } from "../version.js";
14
14
  import { TypeView, type TypeViewOptions } from "./type-view.js";
15
+ import {
16
+ matchesAnyPattern,
17
+ isServerBoundaryEnabled,
18
+ createServerBoundary,
19
+ type ServerBoundaryOptions,
20
+ } from "./server-boundary.js";
15
21
 
16
22
  export { TypeView, type TypeViewOptions };
17
23
 
18
- export interface ServerBoundaryOptions {
19
- /**
20
- * Whether to enforce compile-time separation of server modules in client builds.
21
- * Defaults to false (opt-in).
22
- */
23
- enabled?: boolean;
24
- /**
25
- * Matchers for server-only modules that must not be bundled into client builds.
26
- * Defaults to [/\.server(\.|$)/].
27
- */
28
- serverPatterns?: (string | RegExp)[];
29
- /**
30
- * Matchers for permitted boundary/bridge modules (e.g. route modules in full-stack
31
- * frameworks) where a framework compiler plugin tree-shakes server code from client outputs.
32
- * Defaults to [].
33
- */
34
- allowedImporters?: (string | RegExp)[];
35
- }
24
+ export type { ServerBoundaryOptions } from "./server-boundary.js";
36
25
 
37
26
  export interface BunPluginOptions {
38
27
  /** Reject raw TypeScript escapes in compiled FunkScript modules. */
@@ -139,19 +128,6 @@ export interface BunPlugin {
139
128
  setup(build: BunPluginBuilder): void | Promise<void>;
140
129
  }
141
130
 
142
- function matchesPattern(value: string, pattern: string | RegExp): boolean {
143
- return typeof pattern === "string"
144
- ? value.includes(pattern)
145
- : pattern.test(value);
146
- }
147
-
148
- function matchesAnyPattern(
149
- value: string,
150
- patterns: (string | RegExp)[],
151
- ): boolean {
152
- return patterns.some((p) => matchesPattern(value, p));
153
- }
154
-
155
131
  /**
156
132
  * Bun runtime loader plugin for FunkScript and FunX (.fun, .funx) compilation.
157
133
  * Compiles FunkScript in-memory directly to TypeScript for Bun's JavaScriptCore runtime,
@@ -190,43 +166,15 @@ export function funscriptBunPlugin(options: BunPluginOptions = {}): BunPlugin {
190
166
  await ensureTypeView();
191
167
  }
192
168
 
193
- const boundaryOption = options.serverBoundary;
194
- const boundaryEnabled =
195
- typeof boundaryOption === "boolean"
196
- ? boundaryOption
197
- : boundaryOption
198
- ? boundaryOption.enabled !== false
199
- : false;
200
-
201
- if (boundaryEnabled || resolveJsToFun) {
202
- const serverPatterns = (typeof boundaryOption === "object" &&
203
- boundaryOption?.serverPatterns) || [/\.server(\.|$)/];
204
- const allowedImporters =
205
- (typeof boundaryOption === "object" &&
206
- boundaryOption?.allowedImporters) ||
207
- [];
208
-
169
+ const violatesServerBoundary = createServerBoundary(
170
+ options.serverBoundary,
171
+ );
172
+ if (isServerBoundaryEnabled(options.serverBoundary) || resolveJsToFun) {
209
173
  build.onResolve({ filter: /.*/ }, (args) => {
210
- if (
211
- boundaryEnabled &&
212
- args.importer &&
213
- matchesAnyPattern(args.path, serverPatterns)
214
- ) {
215
- const isServerImporter = matchesAnyPattern(
216
- args.importer,
217
- serverPatterns,
174
+ if (violatesServerBoundary(args.path, args.importer)) {
175
+ throw new Error(
176
+ `[bun-plugin-funscript] Server module '${args.path}' cannot be imported into client module '${args.importer}'. FunkScript enforces strict server/client boundary separation. To permit framework bridge modules (e.g. route loaders), configure 'serverBoundary.allowedImporters' in funscriptBunPlugin().`,
218
177
  );
219
- if (!isServerImporter) {
220
- const isAllowedImporter = matchesAnyPattern(
221
- args.importer,
222
- allowedImporters,
223
- );
224
- if (!isAllowedImporter) {
225
- throw new Error(
226
- `[bun-plugin-funscript] Server module '${args.path}' cannot be imported into client module '${args.importer}'. FunkScript enforces strict server/client boundary separation. To permit framework bridge modules (e.g. route loaders), configure 'serverBoundary.allowedImporters' in funscriptBunPlugin().`,
227
- );
228
- }
229
- }
230
178
  }
231
179
 
232
180
  if (resolveJsToFun) {
@@ -8,8 +8,12 @@ import {
8
8
  isPathPolicyEnabled,
9
9
  loadProjectConfig,
10
10
  } from "../compiler/project-config.js";
11
- import type { ServerBoundaryOptions } from "./bun.js";
12
11
  import { TypeView, type TypeViewOptions } from "./type-view.js";
12
+ import {
13
+ matchesAnyPattern,
14
+ createServerBoundary,
15
+ type ServerBoundaryOptions,
16
+ } from "./server-boundary.js";
13
17
 
14
18
  export { TypeView, type ServerBoundaryOptions, type TypeViewOptions };
15
19
 
@@ -47,19 +51,6 @@ export interface EsbuildPluginOptions {
47
51
  entryFile?: string;
48
52
  }
49
53
 
50
- function matchesPattern(value: string, pattern: string | RegExp): boolean {
51
- return typeof pattern === "string"
52
- ? value.includes(pattern)
53
- : pattern.test(value);
54
- }
55
-
56
- function matchesAnyPattern(
57
- value: string,
58
- patterns: (string | RegExp)[],
59
- ): boolean {
60
- return patterns.some((p) => matchesPattern(value, p));
61
- }
62
-
63
54
  function isEsbuildEntry(
64
55
  filename: string,
65
56
  cwd: string,
@@ -116,49 +107,19 @@ export function funscriptEsbuildPlugin(
116
107
  await ensureTypeView();
117
108
  }
118
109
 
119
- const boundaryOption = options.serverBoundary;
120
- const boundaryEnabled =
121
- typeof boundaryOption === "boolean"
122
- ? boundaryOption
123
- : boundaryOption
124
- ? boundaryOption.enabled !== false
125
- : false;
126
-
127
- const serverPatterns = (typeof boundaryOption === "object" &&
128
- boundaryOption?.serverPatterns) || [/\.server(\.|$)/];
129
- const allowedImporters =
130
- (typeof boundaryOption === "object" &&
131
- boundaryOption?.allowedImporters) ||
132
- [];
133
-
110
+ const violatesServerBoundary = createServerBoundary(
111
+ options.serverBoundary,
112
+ );
134
113
  build.onResolve({ filter: /.*/ }, async (args) => {
135
114
  const specifier = args.path;
136
-
137
- // Check server boundary enforcement
138
- if (
139
- boundaryEnabled &&
140
- args.importer &&
141
- matchesAnyPattern(specifier, serverPatterns)
142
- ) {
143
- const isServerImporter = matchesAnyPattern(
144
- args.importer,
145
- serverPatterns,
146
- );
147
- if (!isServerImporter) {
148
- const isAllowedImporter = matchesAnyPattern(
149
- args.importer,
150
- allowedImporters,
151
- );
152
- if (!isAllowedImporter) {
153
- return {
154
- errors: [
155
- {
156
- text: `[funscript-esbuild] Server module '${specifier}' cannot be imported into client module '${args.importer}'. FunkScript enforces strict server/client boundary separation. To permit framework bridge modules (e.g. route loaders), configure 'serverBoundary.allowedImporters' in funscriptEsbuildPlugin().`,
157
- },
158
- ],
159
- };
160
- }
161
- }
115
+ if (violatesServerBoundary(specifier, args.importer)) {
116
+ return {
117
+ errors: [
118
+ {
119
+ text: `[funscript-esbuild] Server module '${specifier}' cannot be imported into client module '${args.importer}'. FunkScript enforces strict server/client boundary separation. To permit framework bridge modules (e.g. route loaders), configure 'serverBoundary.allowedImporters' in funscriptEsbuildPlugin().`,
120
+ },
121
+ ],
122
+ };
162
123
  }
163
124
 
164
125
  if (!specifier.startsWith(".") && !path.isAbsolute(specifier)) {
@@ -0,0 +1,41 @@
1
+ /** Compile-time separation of server modules in client builds. */
2
+ export interface ServerBoundaryOptions {
3
+ /** Enable boundary checks. Defaults to true when options are provided. */
4
+ enabled?: boolean;
5
+ /** Server-only module matchers. Defaults to [/\.server(\.|$)/]. */
6
+ serverPatterns?: (string | RegExp)[];
7
+ /** Importers permitted to bridge the server/client boundary. Defaults to []. */
8
+ allowedImporters?: (string | RegExp)[];
9
+ }
10
+
11
+ export function matchesAnyPattern(
12
+ value: string,
13
+ patterns: readonly (string | RegExp)[],
14
+ ): boolean {
15
+ return patterns.some((pattern) =>
16
+ typeof pattern === "string" ? value.includes(pattern) : pattern.test(value),
17
+ );
18
+ }
19
+
20
+ export function isServerBoundaryEnabled(
21
+ option: boolean | ServerBoundaryOptions | undefined,
22
+ ): boolean {
23
+ if (typeof option === "boolean") return option;
24
+ return option !== undefined && option !== null && option.enabled !== false;
25
+ }
26
+
27
+ /** Capture a boundary policy for the lifetime of a plugin setup. */
28
+ export function createServerBoundary(
29
+ option: boolean | ServerBoundaryOptions | undefined,
30
+ ): (source: string, importer: string | undefined) => boolean {
31
+ const enabled = isServerBoundaryEnabled(option);
32
+ const settings = typeof option === "object" && option !== null ? option : {};
33
+ const serverPatterns = settings.serverPatterns || [/\.server(\.|$)/];
34
+ const allowedImporters = settings.allowedImporters || [];
35
+ return (source, importer) => {
36
+ if (!enabled || !importer) return false;
37
+ if (!matchesAnyPattern(source, serverPatterns)) return false;
38
+ if (matchesAnyPattern(importer, serverPatterns)) return false;
39
+ return !matchesAnyPattern(importer, allowedImporters);
40
+ };
41
+ }
@@ -5,6 +5,11 @@ import * as path from "node:path";
5
5
  import ts from "typescript";
6
6
  import { compileString } from "../compiler.js";
7
7
  import { TypeScriptCompilationContext } from "../compiler/typescript-context.js";
8
+ import {
9
+ DEFAULT_TYPE_VIEW_DIR,
10
+ TYPE_VIEW_MANIFEST,
11
+ } from "../compiler/type-view-paths.js";
12
+ import { isFunSourceFile } from "../compiler/modules/source-files.js";
8
13
 
9
14
  export interface TypeViewOptions {
10
15
  /** Project-relative source directories or files. Defaults to ["app"]. */
@@ -69,11 +74,14 @@ export class TypeView {
69
74
 
70
75
  constructor(root: string, options: TypeViewOptions = {}) {
71
76
  this.root = path.resolve(root);
72
- this.outDir = path.resolve(this.root, options.outDir ?? ".funscript/types");
77
+ this.outDir = path.resolve(
78
+ this.root,
79
+ options.outDir ?? DEFAULT_TYPE_VIEW_DIR,
80
+ );
73
81
  this.inputs = (options.include ?? ["app"]).map((input) =>
74
82
  path.resolve(this.root, input),
75
83
  );
76
- this.manifest = path.join(this.outDir, ".funscript-type-view.json");
84
+ this.manifest = path.join(this.outDir, TYPE_VIEW_MANIFEST);
77
85
  this.context = new TypeScriptCompilationContext(
78
86
  path.join(this.root, "__funscript_type_view__.fun"),
79
87
  );
@@ -116,7 +124,7 @@ export class TypeView {
116
124
  throw error;
117
125
  }
118
126
  if (stat.isSymbolicLink()) return [];
119
- if (stat.isFile()) return /\.funx?$/.test(entry) ? [entry] : [];
127
+ if (stat.isFile()) return isFunSourceFile(entry) ? [entry] : [];
120
128
  if (!stat.isDirectory()) return [];
121
129
  const entries = await fs.readdir(entry, { withFileTypes: true });
122
130
  const nested = entries
@@ -10,25 +10,12 @@ import {
10
10
  } from "../compiler/project-config.js";
11
11
  import { TypeScriptCompilationContext } from "../compiler/typescript-context.js";
12
12
  import { TypeView, type TypeViewOptions } from "./type-view.js";
13
+ import {
14
+ createServerBoundary,
15
+ type ServerBoundaryOptions,
16
+ } from "./server-boundary.js";
13
17
 
14
- export interface ServerBoundaryOptions {
15
- /**
16
- * Whether to enforce compile-time separation of server modules in client builds.
17
- * Defaults to false (opt-in).
18
- */
19
- enabled?: boolean;
20
- /**
21
- * Matchers for server-only modules that must not be bundled into client builds.
22
- * Defaults to [/\.server(\.|$)/].
23
- */
24
- serverPatterns?: (string | RegExp)[];
25
- /**
26
- * Matchers for permitted boundary/bridge modules (e.g. route modules in full-stack
27
- * frameworks) where a framework compiler plugin tree-shakes server code from client outputs.
28
- * Defaults to [].
29
- */
30
- allowedImporters?: (string | RegExp)[];
31
- }
18
+ export type { ServerBoundaryOptions } from "./server-boundary.js";
32
19
 
33
20
  export interface FunscriptPluginOptions {
34
21
  /** Reject raw TypeScript escapes in compiled FunkScript modules. */
@@ -60,19 +47,6 @@ export interface FunscriptPluginOptions {
60
47
  serverBoundary?: boolean | ServerBoundaryOptions;
61
48
  }
62
49
 
63
- function matchesPattern(value: string, pattern: string | RegExp): boolean {
64
- return typeof pattern === "string"
65
- ? value.includes(pattern)
66
- : pattern.test(value);
67
- }
68
-
69
- function matchesAnyPattern(
70
- value: string,
71
- patterns: (string | RegExp)[],
72
- ): boolean {
73
- return patterns.some((p) => matchesPattern(value, p));
74
- }
75
-
76
50
  /**
77
51
  * Vite & Vitest plugin for FunkScript and FunX (.fun, .funx) compilation.
78
52
  */
@@ -126,37 +100,13 @@ export function funscriptPlugin(options: FunscriptPluginOptions = {}): Plugin {
126
100
  },
127
101
 
128
102
  async resolveId(source, importer, resolveOptions) {
129
- const boundaryOption = options.serverBoundary;
130
- const boundaryEnabled =
131
- typeof boundaryOption === "boolean"
132
- ? boundaryOption
133
- : boundaryOption
134
- ? boundaryOption.enabled !== false
135
- : false;
136
-
137
- if (boundaryEnabled && importer && !resolveOptions?.ssr) {
138
- const serverPatterns = (typeof boundaryOption === "object" &&
139
- boundaryOption?.serverPatterns) || [/\.server(\.|$)/];
140
-
141
- if (matchesAnyPattern(source, serverPatterns)) {
142
- const isServerImporter = matchesAnyPattern(importer, serverPatterns);
143
- if (!isServerImporter) {
144
- const allowedImporters =
145
- (typeof boundaryOption === "object" &&
146
- boundaryOption?.allowedImporters) ||
147
- [];
148
-
149
- const isAllowedImporter = matchesAnyPattern(
150
- importer,
151
- allowedImporters,
152
- );
153
- if (!isAllowedImporter) {
154
- throw new Error(
155
- `[vite-plugin-funscript] Server module '${source}' cannot be imported into client module '${importer}'. FunkScript enforces strict server/client boundary separation. To permit framework bridge modules (e.g. route loaders), configure 'serverBoundary.allowedImporters' in funscriptPlugin().`,
156
- );
157
- }
158
- }
159
- }
103
+ if (
104
+ !resolveOptions?.ssr &&
105
+ createServerBoundary(options.serverBoundary)(source, importer)
106
+ ) {
107
+ throw new Error(
108
+ `[vite-plugin-funscript] Server module '${source}' cannot be imported into client module '${importer}'. FunkScript enforces strict server/client boundary separation. To permit framework bridge modules (e.g. route loaders), configure 'serverBoundary.allowedImporters' in funscriptPlugin().`,
109
+ );
160
110
  }
161
111
 
162
112
  if (
package/dist/Widget.tsx DELETED
@@ -1,9 +0,0 @@
1
- import { Schema } from "effect";
2
-
3
- const Props = Schema.Struct({
4
- name: Schema.String
5
- });
6
- type Props = typeof Props.Type;
7
- const PropsFromUnknown = (input: unknown): Props => Schema.decodeUnknownSync(Props)(input);
8
-
9
- export const Widget = (props: Props) => <div className="widget"><h3>{props.name}</h3></div>;
@@ -1,2 +0,0 @@
1
- export declare function sourceOutputCollision(sources: ReadonlyMap<string, string>): string | undefined;
2
- //# sourceMappingURL=output-collisions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output-collisions.d.ts","sources":["../../src/cli/output-collisions.ts"],"names":[],"mappings":"AAMA,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,MAAM,GAAG,SAAS,CAuCpB"}
@@ -1,39 +0,0 @@
1
- import { existsSync } from "node:fs";
2
- import * as path from "node:path";
3
- import { FunScriptError } from "../errors.js";
4
- import { Lexer } from "../lexer/lexer.js";
5
- import { Parser } from "../parser/parser.js";
6
- export function sourceOutputCollision(sources) {
7
- const stems = new Map([...sources.keys()].map((file) => [
8
- path.resolve(file).replace(/\.funx?$/, ""),
9
- path.resolve(file),
10
- ]));
11
- for (const [file, source] of sources) {
12
- let declarations;
13
- try {
14
- declarations = new Parser(new Lexer(source, file).tokenize(), file, source).parse().body;
15
- }
16
- catch (error) {
17
- if (!(error instanceof FunScriptError))
18
- throw error;
19
- continue;
20
- }
21
- for (const declaration of declarations) {
22
- if (declaration.kind !== "ImportDeclaration" &&
23
- declaration.kind !== "ExportFromDeclaration")
24
- continue;
25
- if (declaration.source.parts.length !== 1 ||
26
- declaration.source.parts[0].kind !== "StringRawPart")
27
- continue;
28
- const specifier = declaration.source.parts[0].value;
29
- if (!/^\.{1,2}\//.test(specifier) || !/\.tsx?$/.test(specifier))
30
- continue;
31
- const target = path.resolve(path.dirname(file), specifier);
32
- const conflict = stems.get(target.replace(/\.tsx?$/, ""));
33
- if (conflict && existsSync(target))
34
- return `Build output collision: '${conflict}' and '${target}' both compile to the same JavaScript module. Rename one of the files.`;
35
- }
36
- }
37
- return undefined;
38
- }
39
- //# sourceMappingURL=output-collisions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"output-collisions.js","sources":["../../src/cli/output-collisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,UAAU,qBAAqB,CACnC,OAAoC;IAEpC,MAAM,KAAK,GAAG,IAAI,GAAG,CACnB,CAAC,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;QAChC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC;QAC1C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;KACnB,CAAC,CACH,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACrC,IAAI,YAAY,CAAC;QACjB,IAAI,CAAC;YACH,YAAY,GAAG,IAAI,MAAM,CACvB,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,QAAQ,EAAE,EAClC,IAAI,EACJ,MAAM,CACP,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC;QACjB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,CAAC,KAAK,YAAY,cAAc,CAAC;gBAAE,MAAM,KAAK,CAAC;YACpD,SAAS;QACX,CAAC;QACD,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;YACvC,IACE,WAAW,CAAC,IAAI,KAAK,mBAAmB;gBACxC,WAAW,CAAC,IAAI,KAAK,uBAAuB;gBAE5C,SAAS;YACX,IACE,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC;gBACrC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,eAAe;gBAEpD,SAAS;YACX,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YACpD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC;gBAAE,SAAS;YAC1E,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC;YAC3D,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC;YAC1D,IAAI,QAAQ,IAAI,UAAU,CAAC,MAAM,CAAC;gBAChC,OAAO,4BAA4B,QAAQ,UAAU,MAAM,wEAAwE,CAAC;QACxI,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { Program, RecordTypeNode, TypeNode } from "../ast/types.js";
2
- /** Resolve only unambiguous FunScript functions; unknown targets remain restricted. */
3
- export declare function resolveImportedRecordFunctions(ast: Program, filename: string, virtualSources?: ReadonlyMap<string, string>, importedContracts?: Map<string, RecordTypeNode>, importedIdentitySchemas?: Set<string>, importedGenericDataSchemas?: Map<string, number>, importedDataSchemas?: Set<string>, importedNullishSchemas?: Map<string, Map<string, TypeNode>>, importedTaggedUnionVariants?: Map<string, Set<string>>): Map<string, ReadonlySet<number>>;
4
- //# sourceMappingURL=imported-record-functions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"imported-record-functions.d.ts","sources":["../../src/compiler/imported-record-functions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAKV,OAAO,EACP,cAAc,EACd,QAAQ,EAET,MAAM,iBAAiB,CAAC;AAOzB,uFAAuF;AACvF,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5C,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,EAC/C,uBAAuB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACrC,0BAA0B,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAChD,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EACjC,sBAAsB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,EAC3D,2BAA2B,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,GACrD,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CA07BlC"}