@hyperfixi/core 3.3.0 → 4.0.1

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 (378) hide show
  1. package/README.md +57 -179
  2. package/dist/ast-utils/index.cjs +74 -806
  3. package/dist/ast-utils/index.d.ts +1 -1
  4. package/dist/ast-utils/index.mjs +74 -805
  5. package/dist/ast-utils/interchange/engine-positions.d.ts +3 -0
  6. package/dist/ast-utils/interchange/index.d.ts +1 -2
  7. package/dist/hyperfixi.js +19 -2
  8. package/dist/index.d.ts +2 -22
  9. package/dist/index.mjs +3 -29128
  10. package/dist/lsp-metadata.cjs +77 -73
  11. package/dist/lsp-metadata.d.ts +4 -4
  12. package/dist/lsp-metadata.mjs +77 -73
  13. package/dist/metadata.cjs +34 -266
  14. package/dist/metadata.d.ts +31 -26
  15. package/dist/metadata.mjs +34 -266
  16. package/dist/multilingual/index.cjs +16 -382
  17. package/dist/multilingual/index.d.ts +4 -32
  18. package/dist/multilingual/index.mjs +15 -377
  19. package/dist/reference/index.cjs +67 -216
  20. package/dist/reference/index.d.ts +0 -3
  21. package/dist/reference/index.mjs +68 -216
  22. package/dist/version.d.ts +1 -1
  23. package/package.json +13 -179
  24. package/dist/__test-utils__/context-builders.d.ts +0 -42
  25. package/dist/__test-utils__/error-testing.d.ts +0 -18
  26. package/dist/__test-utils__/index.d.ts +0 -6
  27. package/dist/__test-utils__/mock-types.d.ts +0 -57
  28. package/dist/__test-utils__/parser-context-mock.d.ts +0 -7
  29. package/dist/__test-utils__/parser-helpers.d.ts +0 -38
  30. package/dist/api/hyperscript-api.d.ts +0 -90
  31. package/dist/api/lokascript-api.d.ts +0 -9
  32. package/dist/ast/command-slots.d.ts +0 -140
  33. package/dist/ast/guards.d.ts +0 -15
  34. package/dist/ast/legacy.d.ts +0 -15
  35. package/dist/ast/nodes.d.ts +0 -243
  36. package/dist/ast-utils/interchange/from-core.d.ts +0 -12
  37. package/dist/ast-utils/interchange/to-core.d.ts +0 -8
  38. package/dist/behaviors/boosted.d.ts +0 -29
  39. package/dist/behaviors/history-swap.d.ts +0 -24
  40. package/dist/behaviors/index.cjs +0 -1155
  41. package/dist/behaviors/index.d.ts +0 -4
  42. package/dist/behaviors/index.mjs +0 -1145
  43. package/dist/bundle-generator/executor-core.d.ts +0 -4
  44. package/dist/bundle-generator/generator.d.ts +0 -4
  45. package/dist/bundle-generator/index.cjs +0 -2804
  46. package/dist/bundle-generator/index.d.ts +0 -6
  47. package/dist/bundle-generator/index.mjs +0 -2779
  48. package/dist/bundle-generator/parser-templates.d.ts +0 -6
  49. package/dist/bundle-generator/template-capabilities.d.ts +0 -12
  50. package/dist/bundle-generator/templates.d.ts +0 -12
  51. package/dist/bundle-generator/types.d.ts +0 -34
  52. package/dist/chunks/bridge-CI9SOl8u.js +0 -2
  53. package/dist/chunks/browser-modular-7CpI5VF2.js +0 -2
  54. package/dist/chunks/index-BwXDEK0m.js +0 -2
  55. package/dist/chunks/index-DQi2o8Lk.js +0 -2
  56. package/dist/chunks/index-uCOQ8Qn0.js +0 -2
  57. package/dist/commands/advanced/js.d.ts +0 -40
  58. package/dist/commands/animation/measure.d.ts +0 -43
  59. package/dist/commands/animation/settle.d.ts +0 -38
  60. package/dist/commands/animation/start-view-transition.d.ts +0 -38
  61. package/dist/commands/animation/take.d.ts +0 -41
  62. package/dist/commands/animation/transition.d.ts +0 -49
  63. package/dist/commands/async/fetch.d.ts +0 -61
  64. package/dist/commands/async/wait.d.ts +0 -51
  65. package/dist/commands/behaviors/install.d.ts +0 -40
  66. package/dist/commands/content/append.d.ts +0 -26
  67. package/dist/commands/content/insertion-base.d.ts +0 -60
  68. package/dist/commands/content/prepend.d.ts +0 -26
  69. package/dist/commands/control-flow/break.d.ts +0 -29
  70. package/dist/commands/control-flow/continue.d.ts +0 -29
  71. package/dist/commands/control-flow/exit.d.ts +0 -29
  72. package/dist/commands/control-flow/halt.d.ts +0 -39
  73. package/dist/commands/control-flow/if.d.ts +0 -58
  74. package/dist/commands/control-flow/repeat.d.ts +0 -50
  75. package/dist/commands/control-flow/return.d.ts +0 -33
  76. package/dist/commands/control-flow/signal-base.d.ts +0 -18
  77. package/dist/commands/control-flow/throw.d.ts +0 -34
  78. package/dist/commands/control-flow/unless.d.ts +0 -3
  79. package/dist/commands/data/clear.d.ts +0 -37
  80. package/dist/commands/data/decrement.d.ts +0 -3
  81. package/dist/commands/data/default.d.ts +0 -60
  82. package/dist/commands/data/get.d.ts +0 -35
  83. package/dist/commands/data/increment.d.ts +0 -42
  84. package/dist/commands/data/set.d.ts +0 -76
  85. package/dist/commands/decorators/index.d.ts +0 -14
  86. package/dist/commands/dom/add.d.ts +0 -44
  87. package/dist/commands/dom/close.d.ts +0 -32
  88. package/dist/commands/dom/dom-modification-base.d.ts +0 -48
  89. package/dist/commands/dom/empty.d.ts +0 -32
  90. package/dist/commands/dom/hide.d.ts +0 -28
  91. package/dist/commands/dom/make.d.ts +0 -34
  92. package/dist/commands/dom/open.d.ts +0 -34
  93. package/dist/commands/dom/process-partials.d.ts +0 -51
  94. package/dist/commands/dom/put.d.ts +0 -42
  95. package/dist/commands/dom/remove.d.ts +0 -46
  96. package/dist/commands/dom/reset.d.ts +0 -32
  97. package/dist/commands/dom/select.d.ts +0 -32
  98. package/dist/commands/dom/show.d.ts +0 -29
  99. package/dist/commands/dom/swap.d.ts +0 -65
  100. package/dist/commands/dom/toggle.d.ts +0 -69
  101. package/dist/commands/dom/visibility-base.d.ts +0 -22
  102. package/dist/commands/events/send.d.ts +0 -3
  103. package/dist/commands/events/trigger.d.ts +0 -49
  104. package/dist/commands/execution/blur.d.ts +0 -32
  105. package/dist/commands/execution/call.d.ts +0 -35
  106. package/dist/commands/execution/focus.d.ts +0 -32
  107. package/dist/commands/execution/pseudo-command.d.ts +0 -41
  108. package/dist/commands/helpers/attribute-manipulation.d.ts +0 -11
  109. package/dist/commands/helpers/attribute-target.d.ts +0 -9
  110. package/dist/commands/helpers/batch-dom-operations.d.ts +0 -12
  111. package/dist/commands/helpers/body-ops.d.ts +0 -10
  112. package/dist/commands/helpers/class-manipulation.d.ts +0 -11
  113. package/dist/commands/helpers/condition-helpers.d.ts +0 -4
  114. package/dist/commands/helpers/dom-mutation.d.ts +0 -16
  115. package/dist/commands/helpers/duration-parsing.d.ts +0 -8
  116. package/dist/commands/helpers/element-property-access.d.ts +0 -7
  117. package/dist/commands/helpers/element-resolution.d.ts +0 -16
  118. package/dist/commands/helpers/error-helpers.d.ts +0 -17
  119. package/dist/commands/helpers/event-helpers.d.ts +0 -13
  120. package/dist/commands/helpers/event-waiting.d.ts +0 -37
  121. package/dist/commands/helpers/index.d.ts +0 -32
  122. package/dist/commands/helpers/input-validator.d.ts +0 -23
  123. package/dist/commands/helpers/loop-executor.d.ts +0 -56
  124. package/dist/commands/helpers/numeric-target-parser.d.ts +0 -21
  125. package/dist/commands/helpers/property-target.d.ts +0 -20
  126. package/dist/commands/helpers/selector-type-detection.d.ts +0 -24
  127. package/dist/commands/helpers/slots.d.ts +0 -5
  128. package/dist/commands/helpers/smart-element.d.ts +0 -16
  129. package/dist/commands/helpers/style-manipulation.d.ts +0 -16
  130. package/dist/commands/helpers/target-elements.d.ts +0 -5
  131. package/dist/commands/helpers/temporal-modifiers.d.ts +0 -15
  132. package/dist/commands/helpers/url-argument-parser.d.ts +0 -13
  133. package/dist/commands/helpers/url-validation.d.ts +0 -7
  134. package/dist/commands/helpers/variable-access.d.ts +0 -13
  135. package/dist/commands/helpers/visibility-target-parser.d.ts +0 -15
  136. package/dist/commands/helpers/write-target.d.ts +0 -42
  137. package/dist/commands/index.cjs +0 -24168
  138. package/dist/commands/index.d.ts +0 -171
  139. package/dist/commands/index.mjs +0 -23981
  140. package/dist/commands/manifest.d.ts +0 -17
  141. package/dist/commands/navigation/go.d.ts +0 -58
  142. package/dist/commands/navigation/push-url.d.ts +0 -48
  143. package/dist/commands/navigation/replace-url.d.ts +0 -3
  144. package/dist/commands/navigation/scroll-to.d.ts +0 -43
  145. package/dist/commands/templates/render.d.ts +0 -47
  146. package/dist/commands/utility/beep.d.ts +0 -41
  147. package/dist/commands/utility/breakpoint.d.ts +0 -32
  148. package/dist/commands/utility/copy.d.ts +0 -41
  149. package/dist/commands/utility/log.d.ts +0 -36
  150. package/dist/commands/utility/pick.d.ts +0 -47
  151. package/dist/commands/utility/tell.d.ts +0 -39
  152. package/dist/compatibility/browser-bundle-classic.d.ts +0 -17
  153. package/dist/compatibility/browser-bundle-hybrid-complete.d.ts +0 -22
  154. package/dist/compatibility/browser-bundle-hybrid-hx.d.ts +0 -43
  155. package/dist/compatibility/browser-bundle-lite.d.ts +0 -15
  156. package/dist/compatibility/browser-bundle-modular.d.ts +0 -18
  157. package/dist/compatibility/browser-bundle-multilingual.d.ts +0 -19
  158. package/dist/compatibility/browser-bundle-semantic-complete.d.ts +0 -24
  159. package/dist/compatibility/browser-bundle-textshelf-minimal.d.ts +0 -16
  160. package/dist/compatibility/browser-bundle-textshelf-profile.d.ts +0 -18
  161. package/dist/compatibility/browser-modular.d.ts +0 -42
  162. package/dist/compatibility/browser-tests/helpers/semantic-page.d.ts +0 -3
  163. package/dist/compatibility/browser-tests/test-utils.d.ts +0 -21
  164. package/dist/compatibility/bundle-shell.d.ts +0 -13
  165. package/dist/compatibility/bundle-sources.d.ts +0 -4
  166. package/dist/compatibility/eval-hyperscript.d.ts +0 -16
  167. package/dist/compatibility/hyperscript-adapter.d.ts +0 -38
  168. package/dist/core/ast-property-utils.d.ts +0 -2
  169. package/dist/core/context.d.ts +0 -19
  170. package/dist/core/dom.d.ts +0 -15
  171. package/dist/core/evaluator-types.d.ts +0 -5
  172. package/dist/core/events.d.ts +0 -48
  173. package/dist/core/executor.d.ts +0 -34
  174. package/dist/core/expression-evaluator.d.ts +0 -6
  175. package/dist/core/expression-registry.d.ts +0 -8
  176. package/dist/core/scope-hooks.d.ts +0 -24
  177. package/dist/debug/debug-controller.d.ts +0 -62
  178. package/dist/debug/index.d.ts +0 -5
  179. package/dist/dom/attribute-processor.d.ts +0 -75
  180. package/dist/dom/detect-language.d.ts +0 -3
  181. package/dist/dom/minimal-attribute-processor.d.ts +0 -20
  182. package/dist/expressions/base-expression.d.ts +0 -27
  183. package/dist/expressions/bundles/common-expressions.d.ts +0 -10
  184. package/dist/expressions/bundles/core-expressions.d.ts +0 -8
  185. package/dist/expressions/bundles/full-expressions.d.ts +0 -11
  186. package/dist/expressions/bundles/index.d.ts +0 -7
  187. package/dist/expressions/collection/index.d.ts +0 -10
  188. package/dist/expressions/conversion/index.d.ts +0 -31
  189. package/dist/expressions/expression-tiers.d.ts +0 -13
  190. package/dist/expressions/index.cjs +0 -4331
  191. package/dist/expressions/index.d.ts +0 -13
  192. package/dist/expressions/index.mjs +0 -4312
  193. package/dist/expressions/logical/index.d.ts +0 -61
  194. package/dist/expressions/mathematical/index.d.ts +0 -80
  195. package/dist/expressions/positional/index.d.ts +0 -31
  196. package/dist/expressions/properties/index.d.ts +0 -27
  197. package/dist/expressions/property-access-utils.d.ts +0 -23
  198. package/dist/expressions/references/index.d.ts +0 -39
  199. package/dist/expressions/shared/comparison-utils.d.ts +0 -10
  200. package/dist/expressions/shared/index.d.ts +0 -10
  201. package/dist/expressions/shared/number-utils.d.ts +0 -8
  202. package/dist/expressions/shared/tracking.d.ts +0 -20
  203. package/dist/expressions/shared/validation-utils.d.ts +0 -13
  204. package/dist/expressions/special/index.d.ts +0 -78
  205. package/dist/expressions/type-helpers.d.ts +0 -11
  206. package/dist/expressions/type-registry.d.ts +0 -57
  207. package/dist/expressions/validation-helpers.d.ts +0 -15
  208. package/dist/htmx/hcon.d.ts +0 -9
  209. package/dist/htmx/htmx-attribute-processor.d.ts +0 -120
  210. package/dist/htmx/htmx-translator.d.ts +0 -22
  211. package/dist/htmx/i18n-hooks.d.ts +0 -18
  212. package/dist/htmx/i18n-orchestrator.d.ts +0 -16
  213. package/dist/htmx/index.d.ts +0 -3
  214. package/dist/htmx/lang-resolver.d.ts +0 -3
  215. package/dist/htmx/sse.d.ts +0 -60
  216. package/dist/htmx/ws.d.ts +0 -59
  217. package/dist/hyperfixi-browser-classic-i18n.js +0 -2
  218. package/dist/hyperfixi-browser.js +0 -2
  219. package/dist/hyperfixi-classic-i18n.js +0 -2
  220. package/dist/hyperfixi-hx-v4.js +0 -1
  221. package/dist/hyperfixi-hx.js +0 -1
  222. package/dist/hyperfixi-hybrid-complete.js +0 -1
  223. package/dist/hyperfixi-hybrid-hx.js +0 -1
  224. package/dist/hyperfixi-multilingual.js +0 -2
  225. package/dist/hyperfixi.mjs +0 -2
  226. package/dist/i18n/error-catalog.d.ts +0 -12
  227. package/dist/index.cjs +0 -29159
  228. package/dist/index.min.js +0 -2
  229. package/dist/lib/dom-globals-shim.d.ts +0 -2
  230. package/dist/lib/index.d.ts +0 -4
  231. package/dist/lib/morph-adapter.d.ts +0 -9
  232. package/dist/lib/swap-executor.d.ts +0 -12
  233. package/dist/lib/view-transitions.d.ts +0 -7
  234. package/dist/lokascript-browser-classic-i18n.js +0 -2
  235. package/dist/lokascript-browser.js +0 -2
  236. package/dist/lokascript-hybrid-complete.js +0 -1
  237. package/dist/lokascript-hybrid-hx.js +0 -1
  238. package/dist/lokascript-multilingual.js +0 -2
  239. package/dist/lse/index.cjs +0 -84
  240. package/dist/lse/index.d.ts +0 -15
  241. package/dist/lse/index.mjs +0 -71
  242. package/dist/multilingual/bridge.d.ts +0 -38
  243. package/dist/multilingual/schema-roles.d.ts +0 -3
  244. package/dist/parser/__types__/test-helpers.d.ts +0 -25
  245. package/dist/parser/command-grammar.d.ts +0 -14
  246. package/dist/parser/command-node-builder.d.ts +0 -46
  247. package/dist/parser/command-parsers/animation-commands.d.ts +0 -6
  248. package/dist/parser/command-parsers/async-commands.d.ts +0 -5
  249. package/dist/parser/command-parsers/control-flow-commands.d.ts +0 -7
  250. package/dist/parser/command-parsers/declared-commands.d.ts +0 -6
  251. package/dist/parser/command-parsers/dom-commands.d.ts +0 -11
  252. package/dist/parser/command-parsers/event-commands.d.ts +0 -4
  253. package/dist/parser/command-parsers/navigation-commands.d.ts +0 -6
  254. package/dist/parser/command-parsers/utility-commands.d.ts +0 -14
  255. package/dist/parser/command-parsers/variable-commands.d.ts +0 -12
  256. package/dist/parser/error-handler.d.ts +0 -34
  257. package/dist/parser/extensions.d.ts +0 -43
  258. package/dist/parser/full-parser.cjs +0 -7943
  259. package/dist/parser/full-parser.d.ts +0 -4
  260. package/dist/parser/full-parser.mjs +0 -7940
  261. package/dist/parser/helpers/ast-helpers.d.ts +0 -24
  262. package/dist/parser/helpers/parsing-helpers.d.ts +0 -19
  263. package/dist/parser/helpers/token-helpers.d.ts +0 -28
  264. package/dist/parser/hybrid/aliases.cjs +0 -44
  265. package/dist/parser/hybrid/aliases.d.ts +0 -7
  266. package/dist/parser/hybrid/aliases.mjs +0 -37
  267. package/dist/parser/hybrid/ast-types.cjs +0 -3
  268. package/dist/parser/hybrid/ast-types.d.ts +0 -97
  269. package/dist/parser/hybrid/ast-types.mjs +0 -2
  270. package/dist/parser/hybrid/index.cjs +0 -1185
  271. package/dist/parser/hybrid/index.d.ts +0 -6
  272. package/dist/parser/hybrid/index.mjs +0 -1175
  273. package/dist/parser/hybrid/parser-core.cjs +0 -1171
  274. package/dist/parser/hybrid/parser-core.d.ts +0 -69
  275. package/dist/parser/hybrid/parser-core.mjs +0 -1169
  276. package/dist/parser/hybrid/tokenizer.cjs +0 -255
  277. package/dist/parser/hybrid/tokenizer.d.ts +0 -9
  278. package/dist/parser/hybrid/tokenizer.mjs +0 -252
  279. package/dist/parser/hybrid-parser.cjs +0 -1249
  280. package/dist/parser/hybrid-parser.d.ts +0 -10
  281. package/dist/parser/hybrid-parser.mjs +0 -1242
  282. package/dist/parser/parser-constants.d.ts +0 -100
  283. package/dist/parser/parser-interface.d.ts +0 -12
  284. package/dist/parser/parser-types.d.ts +0 -164
  285. package/dist/parser/parser.d.ts +0 -165
  286. package/dist/parser/pratt-parser.d.ts +0 -41
  287. package/dist/parser/regex-parser.cjs +0 -422
  288. package/dist/parser/regex-parser.d.ts +0 -4
  289. package/dist/parser/regex-parser.mjs +0 -419
  290. package/dist/parser/runtime.d.ts +0 -14
  291. package/dist/parser/semantic-integration.d.ts +0 -17
  292. package/dist/parser/token-consumer.d.ts +0 -34
  293. package/dist/parser/token-predicates.d.ts +0 -77
  294. package/dist/parser/tokenizer.d.ts +0 -28
  295. package/dist/parser/types.d.ts +0 -105
  296. package/dist/performance/expression-cache.d.ts +0 -78
  297. package/dist/performance/integration.d.ts +0 -40
  298. package/dist/performance/production-monitor.d.ts +0 -67
  299. package/dist/registry/browser-types.cjs +0 -81
  300. package/dist/registry/browser-types.d.ts +0 -20
  301. package/dist/registry/browser-types.mjs +0 -76
  302. package/dist/registry/environment.cjs +0 -36
  303. package/dist/registry/environment.d.ts +0 -19
  304. package/dist/registry/environment.mjs +0 -30
  305. package/dist/registry/event-source-registry.d.ts +0 -54
  306. package/dist/registry/examples/server-commands.d.ts +0 -6
  307. package/dist/registry/examples/server-event-source.d.ts +0 -32
  308. package/dist/registry/index.cjs +0 -14055
  309. package/dist/registry/index.d.ts +0 -39
  310. package/dist/registry/index.mjs +0 -14039
  311. package/dist/registry/runtime-integration.d.ts +0 -23
  312. package/dist/registry/universal-types.cjs +0 -91
  313. package/dist/registry/universal-types.d.ts +0 -35
  314. package/dist/registry/universal-types.mjs +0 -86
  315. package/dist/runtime/cleanup-registry.d.ts +0 -47
  316. package/dist/runtime/command-adapter.d.ts +0 -69
  317. package/dist/runtime/environment.d.ts +0 -75
  318. package/dist/runtime/plugin.d.ts +0 -14
  319. package/dist/runtime/runtime-base.d.ts +0 -100
  320. package/dist/runtime/runtime-factory.d.ts +0 -29
  321. package/dist/runtime/runtime.d.ts +0 -20
  322. package/dist/runtime/temporal-modifiers.d.ts +0 -37
  323. package/dist/test-setup.d.ts +0 -28
  324. package/dist/test-utilities.d.ts +0 -39
  325. package/dist/types/base-types.d.ts +0 -231
  326. package/dist/types/code-fix.d.ts +0 -39
  327. package/dist/types/command-metadata.d.ts +0 -57
  328. package/dist/types/command-types.d.ts +0 -262
  329. package/dist/types/context-types.d.ts +0 -106
  330. package/dist/types/core-context.d.ts +0 -22
  331. package/dist/types/core.d.ts +0 -143
  332. package/dist/types/error-codes.d.ts +0 -207
  333. package/dist/types/expression-types.d.ts +0 -155
  334. package/dist/types/hooks.d.ts +0 -45
  335. package/dist/types/index.d.ts +0 -32
  336. package/dist/types/program.d.ts +0 -8
  337. package/dist/types/result.d.ts +0 -73
  338. package/dist/types/template-types.d.ts +0 -162
  339. package/dist/types/type-guards.d.ts +0 -24
  340. package/dist/types/unified-types.d.ts +0 -91
  341. package/dist/utils/beep.d.ts +0 -8
  342. package/dist/utils/debug-events.d.ts +0 -41
  343. package/dist/utils/debug.d.ts +0 -35
  344. package/dist/utils/dom-utils.d.ts +0 -16
  345. package/dist/utils/element-check.d.ts +0 -8
  346. package/dist/utils/keyboard-shortcuts.d.ts +0 -18
  347. package/dist/utils/performance.d.ts +0 -40
  348. package/dist/validation/command-pattern-validator.d.ts +0 -53
  349. package/dist/validation/common-validators.d.ts +0 -24
  350. package/dist/validation/lightweight-validators.d.ts +0 -113
  351. package/dist/validation/partial-validation-types.d.ts +0 -50
  352. package/dist/validation/partial-validator.d.ts +0 -6
  353. package/dist/validation/partial-warning-formatter.d.ts +0 -6
  354. package/dist/validation/validate-cli.d.ts +0 -41
  355. package/vocab/htmx/ar.js +0 -62
  356. package/vocab/htmx/bn.js +0 -65
  357. package/vocab/htmx/de.js +0 -83
  358. package/vocab/htmx/en.js +0 -24
  359. package/vocab/htmx/es.js +0 -79
  360. package/vocab/htmx/fr.js +0 -79
  361. package/vocab/htmx/he.js +0 -61
  362. package/vocab/htmx/hi.js +0 -81
  363. package/vocab/htmx/id.js +0 -76
  364. package/vocab/htmx/it.js +0 -79
  365. package/vocab/htmx/ja.js +0 -85
  366. package/vocab/htmx/ko.js +0 -81
  367. package/vocab/htmx/ms.js +0 -58
  368. package/vocab/htmx/pl.js +0 -80
  369. package/vocab/htmx/pt.js +0 -81
  370. package/vocab/htmx/qu.js +0 -83
  371. package/vocab/htmx/ru.js +0 -82
  372. package/vocab/htmx/sw.js +0 -79
  373. package/vocab/htmx/th.js +0 -67
  374. package/vocab/htmx/tl.js +0 -56
  375. package/vocab/htmx/tr.js +0 -86
  376. package/vocab/htmx/uk.js +0 -82
  377. package/vocab/htmx/vi.js +0 -59
  378. package/vocab/htmx/zh.js +0 -79
@@ -1,39 +0,0 @@
1
- import type { CoreExecutionContext, ExecutionContext, TypedExecutionContext } from './types/base-types';
2
- export type { CoreExecutionContext, ExecutionContext, TypedExecutionContext };
3
- export type MutableContext<T> = {
4
- -readonly [P in keyof T]: T[P];
5
- };
6
- export type TestExpressionContext = MutableContext<TypedExecutionContext> & {
7
- performanceMetrics?: {
8
- totalEvaluations: number;
9
- averageExecutionTime: number;
10
- lastEvaluationTime: number;
11
- };
12
- [key: string]: unknown;
13
- };
14
- export type TypedExpressionContext = TestExpressionContext;
15
- export declare function createMockElement(tag?: string, properties?: Record<string, any>, attributes?: Record<string, string>): HTMLElement;
16
- export interface TestContextOptions {
17
- me?: Element | null;
18
- you?: Element | null;
19
- it?: unknown;
20
- event?: Event | null;
21
- locals?: Map<string, unknown>;
22
- globals?: Map<string, unknown>;
23
- variables?: Map<string, unknown>;
24
- result?: unknown;
25
- }
26
- export declare function createCoreTestContext(options?: Partial<CoreExecutionContext>): CoreExecutionContext;
27
- export declare function createTestContext(options?: TestContextOptions): ExecutionContext;
28
- export declare function createTypedExecutionContext(options?: TestContextOptions): TypedExecutionContext;
29
- export declare function createTypedExpressionContext(data?: Record<string, unknown>): TestExpressionContext;
30
- export declare function setupMockDOM(): void;
31
- export declare function waitForTick(): Promise<void>;
32
- export declare function createPerformanceContext(): {
33
- mark: (name: string) => number;
34
- measure: <T>(name: string, operation: () => Promise<T> | T) => Promise<{
35
- result: T;
36
- duration: number;
37
- }>;
38
- };
39
- //# sourceMappingURL=test-utilities.d.ts.map
@@ -1,231 +0,0 @@
1
- import type { RuntimeValidator } from '../validation/lightweight-validators';
2
- import type { CoreExecutionContext } from './core-context';
3
- import type { ExpressionRegistry } from '../core/expression-registry';
4
- export type { CoreExecutionContext } from './core-context';
5
- export { createCoreContext, isCoreExecutionContext, assertHTMLElement, asHTMLElement, } from './core-context';
6
- export interface ValidationError {
7
- readonly type: 'type-mismatch' | 'missing-argument' | 'runtime-error' | 'validation-error' | 'syntax-error' | 'invalid-argument' | 'invalid-input' | 'empty-config' | 'schema-validation' | 'context-error' | 'invalid-syntax' | 'security-warning';
8
- readonly message: string;
9
- readonly suggestions: readonly string[] | string[];
10
- readonly path?: string;
11
- readonly code?: string;
12
- readonly name?: string;
13
- readonly severity?: 'error' | 'warning' | 'info';
14
- }
15
- export interface PerformanceCharacteristics {
16
- readonly evaluationCount: number;
17
- readonly totalTime: number;
18
- readonly averageTime: number;
19
- readonly successRate: number;
20
- readonly lastEvaluationTime: number;
21
- }
22
- export interface ValidationResult<T = unknown> {
23
- readonly isValid: boolean;
24
- readonly errors: ValidationError[];
25
- readonly suggestions: readonly string[] | string[];
26
- readonly warnings?: ValidationError[];
27
- readonly performance?: PerformanceCharacteristics;
28
- readonly success?: boolean;
29
- readonly data?: T;
30
- readonly error?: ValidationError;
31
- }
32
- export interface EvaluationResult<T = unknown> {
33
- readonly value?: T;
34
- readonly type?: HyperScriptValueType;
35
- readonly success: boolean;
36
- readonly error?: ValidationError;
37
- readonly performance?: PerformanceCharacteristics;
38
- }
39
- export type EvaluationType = 'String' | 'Number' | 'Boolean' | 'Element' | 'ElementList' | 'Array' | 'Object' | 'Promise' | 'Context' | 'Null' | 'Undefined' | 'Any';
40
- export type HyperScriptValueType = 'string' | 'number' | 'boolean' | 'element' | 'element-list' | 'array' | 'object' | 'promise' | 'fragment' | 'null' | 'undefined' | 'function' | 'event' | 'error' | 'unknown';
41
- export declare const evaluationToHyperScriptType: Record<EvaluationType, HyperScriptValueType>;
42
- export type ExpressionCategory = 'Reference' | 'Logical' | 'Conversion' | 'Positional' | 'Property' | 'Special' | 'Template' | 'Mathematical';
43
- export interface Scope extends CoreExecutionContext {
44
- result: unknown;
45
- registry?: ExpressionRegistry;
46
- readonly variables?: Map<string, unknown>;
47
- readonly parent?: ExecutionContext;
48
- readonly registerCleanup?: (element: Element, cleanup: () => void, description?: string) => void;
49
- }
50
- export type ExecutionContext = Scope;
51
- export type TypedExecutionContext = ExecutionContext;
52
- export interface ParseError {
53
- readonly name?: string;
54
- readonly message: string;
55
- readonly line: number;
56
- readonly column: number;
57
- readonly position?: number;
58
- readonly source?: string;
59
- }
60
- export type ParseDiagnosticSeverity = 'error' | 'warning' | 'info';
61
- export interface ParseDiagnostic {
62
- readonly message: string;
63
- readonly severity: ParseDiagnosticSeverity;
64
- readonly code?: string;
65
- readonly line?: number;
66
- readonly column?: number;
67
- readonly source?: string;
68
- readonly suggestions?: readonly string[];
69
- }
70
- export interface ASTNode {
71
- readonly type: string;
72
- readonly line?: number;
73
- readonly column?: number;
74
- readonly start?: number;
75
- readonly end?: number;
76
- readonly raw?: string;
77
- readonly diagnostics?: readonly ParseDiagnostic[];
78
- [key: string]: unknown;
79
- }
80
- export interface EnhancedError {
81
- readonly name: string;
82
- readonly message: string;
83
- readonly code: string;
84
- readonly suggestions: string[];
85
- readonly type?: string;
86
- }
87
- export type TypedResult<T = unknown> = {
88
- readonly success: true;
89
- readonly value: T;
90
- readonly type: HyperScriptValueType;
91
- } | {
92
- readonly success: false;
93
- readonly error: EnhancedError;
94
- readonly errors?: ValidationError[];
95
- readonly suggestions?: string[];
96
- readonly type?: string;
97
- };
98
- export interface ExpressionMetadata {
99
- readonly category: string;
100
- readonly complexity: 'simple' | 'medium' | 'complex';
101
- readonly sideEffects?: string[];
102
- readonly dependencies?: string[];
103
- readonly returnTypes?: EvaluationType[];
104
- readonly examples?: Array<{
105
- input: string;
106
- description: string;
107
- expectedOutput: unknown;
108
- context?: Record<string, unknown>;
109
- }>;
110
- readonly relatedExpressions?: string[];
111
- readonly performance?: {
112
- averageTime: number;
113
- complexity: string;
114
- };
115
- readonly environmentRequirements?: {
116
- browser?: boolean;
117
- server?: boolean;
118
- dom?: boolean;
119
- };
120
- }
121
- export interface LLMDocumentation {
122
- readonly summary: string;
123
- readonly parameters: Array<{
124
- name: string;
125
- type: string;
126
- description: string;
127
- optional: boolean;
128
- examples: string[];
129
- defaultValue?: unknown;
130
- }>;
131
- readonly returns: {
132
- type: string;
133
- description: string;
134
- examples: unknown[];
135
- };
136
- readonly examples: Array<{
137
- title: string;
138
- code: string;
139
- explanation: string;
140
- output: unknown;
141
- }>;
142
- readonly seeAlso: string[];
143
- readonly tags: string[];
144
- readonly returnValue?: unknown;
145
- }
146
- export interface BaseTypedExpression<T = unknown> {
147
- readonly name: string;
148
- readonly category: string;
149
- readonly syntax: string;
150
- readonly outputType: EvaluationType;
151
- readonly inputSchema: RuntimeValidator;
152
- readonly metadata: ExpressionMetadata;
153
- readonly documentation?: LLMDocumentation;
154
- readonly description?: string;
155
- evaluate(context: TypedExecutionContext, input: unknown): Promise<EvaluationResult<T>>;
156
- validate(input: unknown): ValidationResult;
157
- }
158
- export interface ExpressionEvaluationOptions {
159
- readonly validationMode?: 'strict' | 'permissive';
160
- readonly timeout?: number;
161
- readonly trackPerformance?: boolean;
162
- }
163
- export type TypedExpressionContext = ExecutionContext;
164
- export type FeatureCategory = 'Frontend' | 'Backend' | 'Data' | 'Communication' | 'Advanced';
165
- export interface BaseTypedFeature<TInput = unknown, TOutput = unknown> {
166
- readonly name: string;
167
- readonly category: FeatureCategory;
168
- readonly description: string;
169
- readonly inputSchema: RuntimeValidator<TInput>;
170
- readonly outputType: EvaluationType;
171
- readonly metadata: FeatureMetadata;
172
- readonly documentation?: LLMDocumentation;
173
- initialize(context: TypedExecutionContext): Promise<TypedResult<void>>;
174
- execute(context: TypedExecutionContext, input: TInput): Promise<TypedResult<TOutput>>;
175
- validate(input: unknown): ValidationResult;
176
- cleanup?(context: TypedExecutionContext): Promise<void>;
177
- }
178
- export interface FeatureMetadata {
179
- readonly version: string;
180
- readonly stability: 'stable' | 'experimental' | 'deprecated';
181
- readonly performance: {
182
- complexity: string;
183
- memoryUsage: 'low' | 'medium' | 'high';
184
- async: boolean;
185
- };
186
- readonly compatibility: {
187
- browsers: string[];
188
- nodeVersion?: string;
189
- };
190
- readonly examples: Array<{
191
- title: string;
192
- description: string;
193
- code: string;
194
- expectedOutput: unknown;
195
- }>;
196
- readonly relatedFeatures: string[];
197
- }
198
- export interface CommandResult {
199
- readonly success: boolean;
200
- readonly value?: unknown;
201
- readonly error?: string;
202
- readonly context?: ExecutionContext;
203
- }
204
- export interface BaseCommand {
205
- readonly name: string;
206
- readonly syntax: string;
207
- readonly description?: string;
208
- readonly metadata?: {
209
- category?: string;
210
- complexity?: 'simple' | 'medium' | 'complex';
211
- sideEffects?: string[];
212
- dependencies?: string[];
213
- examples?: Array<{
214
- code: string;
215
- description: string;
216
- }>;
217
- };
218
- execute(context: ExecutionContext, ...args: unknown[]): Promise<CommandResult>;
219
- validate?(args: unknown[]): ValidationResult;
220
- }
221
- export interface ExpressionNode extends ASTNode {
222
- readonly type: 'expression';
223
- readonly value?: unknown;
224
- readonly operator?: string;
225
- readonly operands?: ExpressionNode[];
226
- }
227
- export declare function createExecutionContext(me?: Element | null, overrides?: Partial<ExecutionContext>): ExecutionContext;
228
- export declare function createSuccessValidation(): ValidationResult;
229
- export declare function createFailureValidation(errors: ValidationError[], suggestions?: string[]): ValidationResult;
230
- export declare function createValidationError(type: ValidationError['type'], message: string, suggestions?: string[]): ValidationError;
231
- //# sourceMappingURL=base-types.d.ts.map
@@ -1,39 +0,0 @@
1
- export type CodeActionKind = 'quickfix' | 'refactor' | 'source';
2
- export interface TextRange {
3
- readonly start: number;
4
- readonly end: number;
5
- }
6
- export interface TextEdit {
7
- readonly type: 'insert' | 'replace' | 'delete';
8
- readonly range?: TextRange;
9
- readonly text?: string;
10
- }
11
- export interface FixCommand {
12
- readonly name: string;
13
- readonly arguments: readonly unknown[];
14
- }
15
- export interface CodeFix {
16
- readonly code: string;
17
- readonly title: string;
18
- readonly kind: CodeActionKind;
19
- readonly description?: string;
20
- readonly edit?: TextEdit;
21
- readonly command?: FixCommand;
22
- readonly priority?: number;
23
- readonly isPreferred?: boolean;
24
- }
25
- export interface FixableError {
26
- readonly code: string;
27
- readonly message: string;
28
- readonly severity: 'error' | 'warning' | 'info';
29
- readonly fixes?: readonly CodeFix[];
30
- }
31
- export interface DiagnosticWithFixes {
32
- readonly diagnosticIndex: number;
33
- readonly fixes: readonly CodeFix[];
34
- }
35
- export interface DiagnosticResponseWithFixes {
36
- readonly diagnostics: readonly unknown[];
37
- readonly codeActions?: readonly DiagnosticWithFixes[];
38
- }
39
- //# sourceMappingURL=code-fix.d.ts.map
@@ -1,57 +0,0 @@
1
- export type CommandCategory = 'animation' | 'async' | 'control-flow' | 'data' | 'dom' | 'content' | 'navigation' | 'utility' | 'advanced' | 'event' | 'storage' | 'execution' | 'templates' | 'behaviors';
2
- export declare const COMMAND_CATEGORIES: CommandCategory[];
3
- export type CommandSideEffect = 'dom-mutation' | 'dom-query' | 'dom-creation' | 'dom-observation' | 'element-modification' | 'context-modification' | 'context-switching' | 'context-mutation' | 'state-mutation' | 'conditional-execution' | 'iteration' | 'control-flow' | 'execution-termination' | 'time' | 'timing' | 'style-change' | 'event-listening' | 'event-dispatch' | 'event-dispatching' | 'event-prevention' | 'event-listeners' | 'custom-events' | 'command-execution' | 'code-execution' | 'function-execution' | 'method-execution' | 'async-execution' | 'data-mutation' | 'data-binding' | 'property-transfer' | 'network' | 'storage' | 'navigation' | 'clipboard' | 'clipboard-write' | 'console' | 'console-output' | 'animation' | 'focus' | 'scroll' | 'scrolling' | 'template-execution' | 'behavior-installation' | 'random-selection' | 'debugging' | 'error-throwing';
4
- export declare const COMMAND_SIDE_EFFECTS: CommandSideEffect[];
5
- export interface CommandMetadata {
6
- readonly description: string;
7
- readonly syntax: string | readonly string[];
8
- readonly examples: readonly string[];
9
- readonly category: CommandCategory;
10
- readonly sideEffects?: readonly CommandSideEffect[];
11
- readonly deprecated?: boolean;
12
- readonly deprecationMessage?: string;
13
- readonly aliases?: readonly string[];
14
- readonly relatedCommands?: readonly string[];
15
- readonly version?: string;
16
- readonly isBlocking?: boolean;
17
- readonly hasBody?: boolean;
18
- readonly performance?: {
19
- readonly complexity?: 'O(1)' | 'O(n)' | 'O(n log n)' | 'O(n²)';
20
- readonly isAsync?: boolean;
21
- readonly mayBlock?: boolean;
22
- };
23
- readonly compatibility?: 'standard' | 'lokascript-extension' | 'experimental';
24
- }
25
- export interface MetadataValidationResult {
26
- readonly isValid: boolean;
27
- readonly errors: string[];
28
- readonly warnings: string[];
29
- }
30
- export declare function validateCommandMetadata(metadata: unknown, commandName: string): MetadataValidationResult;
31
- export declare function normalizeCategory(category: string): CommandCategory;
32
- export declare function createCommandMetadata(partial: Partial<CommandMetadata> & {
33
- description: string;
34
- syntax: string | readonly string[];
35
- examples: readonly string[];
36
- category: CommandCategory;
37
- }): CommandMetadata;
38
- export declare function mergeCommandMetadata(base: CommandMetadata, overrides: Partial<CommandMetadata>): CommandMetadata;
39
- export declare function getSyntaxArray(metadata: CommandMetadata): readonly string[];
40
- export declare function formatMetadataForDocs(commandName: string, metadata: CommandMetadata): string;
41
- export interface CommandRegistryEntry {
42
- readonly name: string;
43
- readonly metadata: CommandMetadata;
44
- readonly implementation: unknown;
45
- }
46
- export declare class CommandMetadataRegistry {
47
- private commands;
48
- register(name: string, metadata: CommandMetadata, implementation: unknown): void;
49
- get(name: string): CommandRegistryEntry | undefined;
50
- getCommandNames(): string[];
51
- getByCategory(category: CommandCategory): CommandRegistryEntry[];
52
- getDeprecated(): CommandRegistryEntry[];
53
- validateAll(): Map<string, MetadataValidationResult>;
54
- generateDocs(): string;
55
- }
56
- export declare const commandMetadataRegistry: CommandMetadataRegistry;
57
- //# sourceMappingURL=command-metadata.d.ts.map
@@ -1,262 +0,0 @@
1
- import type { RuntimeValidator } from '../validation/lightweight-validators';
2
- import type { ValidationResult, ValidationError, EvaluationResult, TypedExecutionContext } from './base-types';
3
- export type { ExecutionContext, TypedExecutionContext, TypedExecutionContext as TypedExpressionContext, ValidationResult, TypedResult, LLMDocumentation, } from './base-types';
4
- export type HyperScriptValue = unknown;
5
- export type { EvaluationResult, EvaluationType, HyperScriptValueType } from './base-types';
6
- export declare const HyperScriptValueSchema: RuntimeValidator<unknown>;
7
- export interface ExecutionMeta {
8
- readonly startTime: number;
9
- readonly commandStack: string[];
10
- readonly sourceLocation?: SourceLocation;
11
- readonly debugMode: boolean;
12
- }
13
- export interface SourceLocation {
14
- readonly line: number;
15
- readonly column: number;
16
- readonly source: string;
17
- }
18
- export interface CommandMetadata {
19
- readonly category: CommandCategory;
20
- readonly complexity: 'simple' | 'medium' | 'complex';
21
- readonly sideEffects: SideEffect[];
22
- readonly examples: CommandExample[];
23
- readonly relatedCommands: string[];
24
- }
25
- export type CommandCategory = 'DOM' | 'Event' | 'Control' | 'Data' | 'Communication' | 'Style';
26
- export type SideEffect = string;
27
- export interface CommandExample {
28
- readonly code: string;
29
- readonly description: string;
30
- readonly expectedOutput: HyperScriptValue;
31
- }
32
- export interface TypedExpressionImplementation<TOutput extends HyperScriptValue = HyperScriptValue, TContext extends TypedExecutionContext = TypedExecutionContext> {
33
- readonly name: string;
34
- readonly category: ExpressionCategory;
35
- readonly precedence: number;
36
- readonly associativity: 'left' | 'right' | 'none';
37
- readonly outputType: string;
38
- evaluate(context: TContext, ...args: HyperScriptValue[]): Promise<EvaluationResult<TOutput>>;
39
- readonly analysisInfo: ExpressionAnalysisInfo;
40
- }
41
- export interface ExpressionAnalysisInfo {
42
- readonly isPure: boolean;
43
- readonly canThrow: boolean;
44
- readonly complexity: 'O(1)' | 'O(n)' | 'O(n²)' | 'O(log n)';
45
- readonly dependencies: string[];
46
- }
47
- export type ExpressionCategory = 'reference' | 'logical' | 'comparison' | 'arithmetic' | 'string' | 'array' | 'object' | 'conversion' | 'special';
48
- export interface EnhancedValidationError extends ValidationError {
49
- readonly position?: SourceLocation;
50
- readonly suggestion?: string;
51
- }
52
- export interface HyperScriptError {
53
- readonly name: string;
54
- readonly message: string;
55
- readonly code: string;
56
- readonly source?: SourceLocation;
57
- readonly cause?: Error;
58
- readonly suggestions: string[];
59
- }
60
- export declare class TypeChecker {
61
- static getType(value: unknown): string;
62
- static validateType(value: unknown, expectedType: string): ValidationResult;
63
- private static getTypeSuggestion;
64
- }
65
- export interface ParameterDoc {
66
- readonly name: string;
67
- readonly type: string;
68
- readonly description: string;
69
- readonly optional: boolean;
70
- readonly defaultValue?: HyperScriptValue;
71
- readonly examples: string[];
72
- }
73
- export interface ReturnDoc {
74
- readonly type: string;
75
- readonly description: string;
76
- readonly examples: HyperScriptValue[];
77
- }
78
- export interface DocumentationExample {
79
- readonly title: string;
80
- readonly code: string;
81
- readonly explanation: string;
82
- readonly output: HyperScriptValue;
83
- }
84
- export interface HyperScriptProgram {
85
- readonly source: string;
86
- readonly features: HyperScriptFeature[];
87
- readonly metadata: ProgramMetadata;
88
- readonly sourceInfo?: ProgramSourceInfo;
89
- readonly state: ProgramState;
90
- }
91
- export interface HyperScriptFeature {
92
- readonly type: HyperScriptFeatureType;
93
- readonly id: string;
94
- readonly trigger?: EventTrigger;
95
- readonly commands: ParsedCommand[];
96
- readonly config: FeatureConfig;
97
- readonly sourceRange: SourceRange;
98
- readonly metadata: FeatureMetadata;
99
- }
100
- export interface ParsedCommand {
101
- readonly type: ParsedCommandType;
102
- readonly name: string;
103
- readonly implementation?: unknown | TypedExpressionImplementation<unknown, TypedExecutionContext>;
104
- readonly args: ParsedArgument[];
105
- readonly options: CommandOptions;
106
- readonly sourceRange: SourceRange;
107
- readonly analysis?: CommandAnalysis;
108
- }
109
- export interface ParsedArgument {
110
- readonly value: HyperScriptValue;
111
- readonly type: string;
112
- readonly kind: 'literal' | 'expression' | 'reference';
113
- readonly sourceRange?: SourceRange;
114
- readonly analysis?: ArgumentAnalysis;
115
- }
116
- export type HyperScriptFeatureType = 'event' | 'behavior' | 'definition' | 'init' | 'worker' | 'socket' | 'eventsource' | 'set' | 'js' | 'custom';
117
- export type ParsedCommandType = 'dom-manipulation' | 'content' | 'navigation' | 'event' | 'async' | 'control-flow' | 'data' | 'expression' | 'custom';
118
- export interface EventTrigger {
119
- readonly event: string;
120
- readonly target?: string | HTMLElement;
121
- readonly options: EventListenerOptions & {
122
- readonly once?: boolean;
123
- readonly debounce?: number;
124
- readonly throttle?: number;
125
- };
126
- readonly filter?: EventFilter;
127
- }
128
- export interface EventFilter {
129
- readonly selector?: string;
130
- readonly keys?: string[];
131
- readonly condition?: string;
132
- }
133
- export interface FeatureConfig {
134
- readonly enabled: boolean;
135
- readonly priority: number;
136
- readonly options: Record<string, HyperScriptValue>;
137
- readonly dependencies: string[];
138
- readonly capabilities: FeatureCapabilities;
139
- }
140
- export interface FeatureCapabilities {
141
- readonly requiresDOM: boolean;
142
- readonly isAsync: boolean;
143
- readonly modifiesGlobalState: boolean;
144
- readonly requiredAPIs: string[];
145
- readonly performance: PerformanceCharacteristics;
146
- }
147
- export interface PerformanceCharacteristics {
148
- readonly complexity: 'low' | 'medium' | 'high';
149
- readonly memoryUsage: 'minimal' | 'moderate' | 'heavy';
150
- readonly cpuIntensive: boolean;
151
- readonly executionTime: {
152
- readonly min: number;
153
- readonly max: number;
154
- readonly typical: number;
155
- };
156
- }
157
- export interface ProgramMetadata {
158
- readonly compilation: {
159
- readonly compiled: boolean;
160
- readonly compiledAt?: Date;
161
- readonly compiler: string;
162
- readonly version: string;
163
- };
164
- readonly analysis: {
165
- readonly complexity: number;
166
- readonly estimatedExecutionTime: number;
167
- readonly memoryRequirements: number;
168
- readonly warnings: AnalysisWarning[];
169
- readonly optimizations: string[];
170
- };
171
- readonly performance?: {
172
- readonly lastExecutionTime: number;
173
- readonly averageExecutionTime: number;
174
- readonly executionCount: number;
175
- readonly errorCount: number;
176
- };
177
- }
178
- export interface FeatureMetadata {
179
- readonly compiledAt: Date;
180
- readonly stats: {
181
- readonly executionCount: number;
182
- readonly totalExecutionTime: number;
183
- readonly averageExecutionTime: number;
184
- readonly errorCount: number;
185
- readonly lastExecuted?: Date;
186
- };
187
- readonly resolvedDependencies: string[];
188
- readonly warnings: AnalysisWarning[];
189
- }
190
- export interface CommandOptions {
191
- readonly validateInputs: boolean;
192
- readonly trackPerformance: boolean;
193
- readonly errorHandling: 'throw' | 'return' | 'ignore';
194
- readonly timeout?: number;
195
- readonly retry?: {
196
- readonly attempts: number;
197
- readonly delay: number;
198
- readonly backoff: 'linear' | 'exponential';
199
- };
200
- }
201
- export interface CommandAnalysis {
202
- readonly complexity: number;
203
- readonly requirements: string[];
204
- readonly sideEffects: string[];
205
- readonly typeInference: {
206
- readonly inputTypes: string[];
207
- readonly outputType: string;
208
- readonly confidence: number;
209
- };
210
- readonly optimizations: string[];
211
- }
212
- export interface ArgumentAnalysis {
213
- readonly isUsed: boolean;
214
- readonly typeCompatibility: number;
215
- readonly suggestions: string[];
216
- }
217
- export interface ProgramSourceInfo {
218
- readonly element?: HTMLElement;
219
- readonly attribute?: string;
220
- readonly file?: string;
221
- readonly position?: {
222
- readonly line: number;
223
- readonly column: number;
224
- };
225
- }
226
- export interface SourceRange {
227
- readonly start: number;
228
- readonly end: number;
229
- readonly lines?: {
230
- readonly start: {
231
- line: number;
232
- column: number;
233
- };
234
- readonly end: {
235
- line: number;
236
- column: number;
237
- };
238
- };
239
- }
240
- export interface ProgramState {
241
- readonly status: 'ready' | 'running' | 'completed' | 'error' | 'suspended';
242
- readonly currentFeature?: string;
243
- readonly context: {
244
- readonly element: HTMLElement | null;
245
- readonly variables: Map<string, HyperScriptValue>;
246
- readonly callStack: string[];
247
- };
248
- readonly error?: HyperScriptError;
249
- readonly startedAt?: Date;
250
- readonly completedAt?: Date;
251
- }
252
- export interface AnalysisWarning {
253
- readonly level: 'info' | 'warning' | 'error';
254
- readonly message: string;
255
- readonly location: SourceRange;
256
- readonly suggestion?: string;
257
- readonly category: 'performance' | 'compatibility' | 'security' | 'style' | 'type-safety';
258
- }
259
- export declare const HyperScriptProgramSchema: RuntimeValidator<{
260
- [x: string]: unknown;
261
- }>;
262
- //# sourceMappingURL=command-types.d.ts.map