@groma/scanner-vue 0.1.0

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 (108) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +67 -0
  3. package/dist/index.js +208819 -0
  4. package/dist/lib.d.ts +22 -0
  5. package/dist/lib.decorators.d.ts +384 -0
  6. package/dist/lib.decorators.legacy.d.ts +22 -0
  7. package/dist/lib.dom.asynciterable.d.ts +41 -0
  8. package/dist/lib.dom.d.ts +39429 -0
  9. package/dist/lib.dom.iterable.d.ts +571 -0
  10. package/dist/lib.es2015.collection.d.ts +147 -0
  11. package/dist/lib.es2015.core.d.ts +597 -0
  12. package/dist/lib.es2015.d.ts +28 -0
  13. package/dist/lib.es2015.generator.d.ts +77 -0
  14. package/dist/lib.es2015.iterable.d.ts +605 -0
  15. package/dist/lib.es2015.promise.d.ts +81 -0
  16. package/dist/lib.es2015.proxy.d.ts +128 -0
  17. package/dist/lib.es2015.reflect.d.ts +144 -0
  18. package/dist/lib.es2015.symbol.d.ts +46 -0
  19. package/dist/lib.es2015.symbol.wellknown.d.ts +326 -0
  20. package/dist/lib.es2016.array.include.d.ts +116 -0
  21. package/dist/lib.es2016.d.ts +21 -0
  22. package/dist/lib.es2016.full.d.ts +23 -0
  23. package/dist/lib.es2016.intl.d.ts +31 -0
  24. package/dist/lib.es2017.arraybuffer.d.ts +21 -0
  25. package/dist/lib.es2017.d.ts +26 -0
  26. package/dist/lib.es2017.date.d.ts +31 -0
  27. package/dist/lib.es2017.full.d.ts +23 -0
  28. package/dist/lib.es2017.intl.d.ts +44 -0
  29. package/dist/lib.es2017.object.d.ts +49 -0
  30. package/dist/lib.es2017.sharedmemory.d.ts +135 -0
  31. package/dist/lib.es2017.string.d.ts +45 -0
  32. package/dist/lib.es2017.typedarrays.d.ts +53 -0
  33. package/dist/lib.es2018.asyncgenerator.d.ts +77 -0
  34. package/dist/lib.es2018.asynciterable.d.ts +53 -0
  35. package/dist/lib.es2018.d.ts +24 -0
  36. package/dist/lib.es2018.full.d.ts +24 -0
  37. package/dist/lib.es2018.intl.d.ts +83 -0
  38. package/dist/lib.es2018.promise.d.ts +30 -0
  39. package/dist/lib.es2018.regexp.d.ts +37 -0
  40. package/dist/lib.es2019.array.d.ts +79 -0
  41. package/dist/lib.es2019.d.ts +24 -0
  42. package/dist/lib.es2019.full.d.ts +24 -0
  43. package/dist/lib.es2019.intl.d.ts +23 -0
  44. package/dist/lib.es2019.object.d.ts +33 -0
  45. package/dist/lib.es2019.string.d.ts +37 -0
  46. package/dist/lib.es2019.symbol.d.ts +24 -0
  47. package/dist/lib.es2020.bigint.d.ts +765 -0
  48. package/dist/lib.es2020.d.ts +27 -0
  49. package/dist/lib.es2020.date.d.ts +42 -0
  50. package/dist/lib.es2020.full.d.ts +24 -0
  51. package/dist/lib.es2020.intl.d.ts +474 -0
  52. package/dist/lib.es2020.number.d.ts +28 -0
  53. package/dist/lib.es2020.promise.d.ts +47 -0
  54. package/dist/lib.es2020.sharedmemory.d.ts +99 -0
  55. package/dist/lib.es2020.string.d.ts +44 -0
  56. package/dist/lib.es2020.symbol.wellknown.d.ts +41 -0
  57. package/dist/lib.es2021.d.ts +23 -0
  58. package/dist/lib.es2021.full.d.ts +24 -0
  59. package/dist/lib.es2021.intl.d.ts +166 -0
  60. package/dist/lib.es2021.promise.d.ts +48 -0
  61. package/dist/lib.es2021.string.d.ts +33 -0
  62. package/dist/lib.es2021.weakref.d.ts +78 -0
  63. package/dist/lib.es2022.array.d.ts +121 -0
  64. package/dist/lib.es2022.d.ts +25 -0
  65. package/dist/lib.es2022.error.d.ts +75 -0
  66. package/dist/lib.es2022.full.d.ts +24 -0
  67. package/dist/lib.es2022.intl.d.ts +145 -0
  68. package/dist/lib.es2022.object.d.ts +26 -0
  69. package/dist/lib.es2022.regexp.d.ts +39 -0
  70. package/dist/lib.es2022.string.d.ts +25 -0
  71. package/dist/lib.es2023.array.d.ts +924 -0
  72. package/dist/lib.es2023.collection.d.ts +21 -0
  73. package/dist/lib.es2023.d.ts +22 -0
  74. package/dist/lib.es2023.full.d.ts +24 -0
  75. package/dist/lib.es2023.intl.d.ts +56 -0
  76. package/dist/lib.es2024.arraybuffer.d.ts +65 -0
  77. package/dist/lib.es2024.collection.d.ts +29 -0
  78. package/dist/lib.es2024.d.ts +26 -0
  79. package/dist/lib.es2024.full.d.ts +24 -0
  80. package/dist/lib.es2024.object.d.ts +29 -0
  81. package/dist/lib.es2024.promise.d.ts +35 -0
  82. package/dist/lib.es2024.regexp.d.ts +25 -0
  83. package/dist/lib.es2024.sharedmemory.d.ts +68 -0
  84. package/dist/lib.es2024.string.d.ts +29 -0
  85. package/dist/lib.es5.d.ts +4601 -0
  86. package/dist/lib.es6.d.ts +23 -0
  87. package/dist/lib.esnext.array.d.ts +35 -0
  88. package/dist/lib.esnext.collection.d.ts +96 -0
  89. package/dist/lib.esnext.d.ts +29 -0
  90. package/dist/lib.esnext.decorators.d.ts +28 -0
  91. package/dist/lib.esnext.disposable.d.ts +193 -0
  92. package/dist/lib.esnext.error.d.ts +24 -0
  93. package/dist/lib.esnext.float16.d.ts +445 -0
  94. package/dist/lib.esnext.full.d.ts +24 -0
  95. package/dist/lib.esnext.intl.d.ts +21 -0
  96. package/dist/lib.esnext.iterator.d.ts +148 -0
  97. package/dist/lib.esnext.promise.d.ts +34 -0
  98. package/dist/lib.esnext.sharedmemory.d.ts +25 -0
  99. package/dist/lib.scripthost.d.ts +322 -0
  100. package/dist/lib.webworker.asynciterable.d.ts +41 -0
  101. package/dist/lib.webworker.d.ts +13150 -0
  102. package/dist/lib.webworker.importscripts.d.ts +23 -0
  103. package/dist/lib.webworker.iterable.d.ts +340 -0
  104. package/package.json +43 -0
  105. package/types/props-fallback.d.ts +5 -0
  106. package/types/template-helpers.d.ts +140 -0
  107. package/types/vue-3.4-shims.d.ts +6 -0
  108. package/validation.md +78 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alex Gavrilescu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # Vue scanner
2
+
3
+ The Vue scanner adds single-file component (SFC) event bindings to Groma's
4
+ TypeScript scanner evidence. Install the project's dependencies using its
5
+ package manager and lockfile. The scanner reads the root `tsconfig.json`;
6
+ it does not install dependencies or execute application code.
7
+
8
+ ```sh
9
+ bun install --frozen-lockfile --ignore-scripts
10
+ bun plugins/scanners/vue/build.ts
11
+ ```
12
+
13
+ In the project being scanned:
14
+
15
+ ```sh
16
+ groma scanner add /absolute/path/to/groma/plugins/scanners/vue/dist/package
17
+ groma scan
18
+ ```
19
+
20
+ The package bundles Vue language-core 3.3.11, Volar TypeScript 2.4.28,
21
+ Vue compiler-dom 3.5.42 and its own TypeScript 5.9.3. Compiler-sfc 3.5.42
22
+ provides build-time declarations only. The build
23
+ pins compiler imports to that TypeScript installation. The separate TypeScript scanner uses its own 7.1 SDK. Compiler libraries and Vue helper declarations
24
+ ship in the package; no consumer build or installation script is required.
25
+
26
+ [Vue language tools](https://github.com/vuejs/language-tools) supply project
27
+ configuration, SFC parsing, template code generation and original-source
28
+ mappings. [Volar](https://github.com/volarjs/volar.js) integrates the generated
29
+ code with the TypeScript checker, which resolves component imports and handler
30
+ function identities. The scanner translates these facts into the existing
31
+ supplied-callback evidence contract; it has no separate name or type resolver.
32
+
33
+ ## Supported interaction
34
+
35
+ The qualified example is Vue REPL's CodeMirror `change` event bound to the
36
+ parent's `onChange` function. A static imported SFC must use a typed
37
+ `defineEmits` declaration assigned to a constant. A call to that same symbol
38
+ must supply a declared literal event name inside a source function. The parent
39
+ template must bind the event directly to one source function declaration or
40
+ constant function expression. Imported TypeScript functions use the same rule.
41
+ See [Vue component events](https://vuejs.org/guide/components/events).
42
+
43
+ The observation records the emitting function, literal emit call, concrete
44
+ template attribute and supplied handler. All positions refer to the original
45
+ physical source, as zero-based UTF-16 offsets; lines are one-based. The nearest
46
+ function owns a nested emit call. Repeated scans are deterministic.
47
+
48
+ Unresolved, dynamic or unsupported bindings produce `unsupported-vue-binding`
49
+ diagnostics and no certain relationship. This revision does not support
50
+ Options API events, runtime `defineEmits` arrays, dynamic components, dynamic
51
+ event names, handler expressions or modifiers, state stores, routing, server
52
+ frameworks or arbitrary event mutation. Compiler syntax/template errors fail
53
+ the scan and preserve the previous complete map. Readiness errors explain
54
+ missing project dependencies or invalid configuration.
55
+
56
+ Vue contributes `vue` Code provenance for configured source files. Shared core
57
+ keeps one physical-file owner, interprets complementary and conflicting
58
+ observations, and writes readable relationship rows. `.vue` and TypeScript
59
+ edits participate in the existing scan watcher.
60
+
61
+ In OKF, the result is ordinary source links and relationship Markdown. An SFC
62
+ is source evidence; it does not automatically define a C4 responsibility or
63
+ add a containment level. Groma's existing ownership and relationship model
64
+ owns that interpretation. No new architecture metadata is added.
65
+
66
+ See [validation](validation.md) for the pinned project and executed release
67
+ checks. This prototype package name does not imply public publication.