@coana-tech/cli 14.12.76 → 14.12.77

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 (149) hide show
  1. package/cli.mjs +1 -1
  2. package/package.json +1 -1
  3. package/reachability-analyzers-cli.mjs +1 -1
  4. package/repos/coana-tech/alucard/alucard.jar +0 -0
  5. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/cli.mjs +24669 -0
  6. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/LICENSE.md +9 -0
  7. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/README.md +95 -0
  8. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/common.gypi +21 -0
  9. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/except.gypi +25 -0
  10. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/index.js +14 -0
  11. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi-inl.deprecated.h +186 -0
  12. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi-inl.h +6941 -0
  13. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/napi.h +3295 -0
  14. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/node_addon_api.gyp +42 -0
  15. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/node_api.gyp +9 -0
  16. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/noexcept.gypi +26 -0
  17. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/nothing.c +0 -0
  18. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/package-support.json +21 -0
  19. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/package.json +480 -0
  20. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/README.md +73 -0
  21. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/check-napi.js +99 -0
  22. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/clang-format.js +71 -0
  23. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-addon-api/tools/conversion.js +301 -0
  24. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/LICENSE +21 -0
  25. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/README.md +58 -0
  26. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/SECURITY.md +5 -0
  27. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/bin.js +84 -0
  28. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/build-test.js +19 -0
  29. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/index.js +6 -0
  30. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/node-gyp-build.js +207 -0
  31. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/optional.js +7 -0
  32. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/node-gyp-build/package.json +43 -0
  33. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/LICENSE +21 -0
  34. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/README.md +128 -0
  35. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/binding.gyp +80 -0
  36. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/index.js +919 -0
  37. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build +16 -0
  38. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build-optional +16 -0
  39. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/node_modules/.bin/node-gyp-build-test +16 -0
  40. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/package.json +76 -0
  41. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/darwin-arm64/tree-sitter.node +0 -0
  42. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/darwin-x64/tree-sitter.node +0 -0
  43. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/linux-arm64/tree-sitter.node +0 -0
  44. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/linux-x64/tree-sitter.node +0 -0
  45. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/win32-arm64/tree-sitter.node +0 -0
  46. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/prebuilds/win32-x64/tree-sitter.node +0 -0
  47. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/addon_data.h +47 -0
  48. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/binding.cc +35 -0
  49. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/conversions.cc +140 -0
  50. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/conversions.h +22 -0
  51. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/language.cc +106 -0
  52. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/language.h +17 -0
  53. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/logger.cc +70 -0
  54. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/logger.h +19 -0
  55. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/lookaheaditerator.cc +122 -0
  56. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/lookaheaditerator.h +33 -0
  57. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/node.cc +1088 -0
  58. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/node.h +30 -0
  59. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/parser.cc +306 -0
  60. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/parser.h +35 -0
  61. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/query.cc +397 -0
  62. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/query.h +40 -0
  63. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree.cc +316 -0
  64. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree.h +45 -0
  65. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree_cursor.cc +213 -0
  66. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/src/tree_cursor.h +52 -0
  67. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/tree-sitter.d.ts +1042 -0
  68. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +1318 -0
  69. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +48 -0
  70. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +41 -0
  71. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +291 -0
  72. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +68 -0
  73. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +146 -0
  74. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +11 -0
  75. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +501 -0
  76. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +36 -0
  77. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +21 -0
  78. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +223 -0
  79. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +297 -0
  80. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +52 -0
  81. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +435 -0
  82. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +49 -0
  83. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +12 -0
  84. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +920 -0
  85. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +2165 -0
  86. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +266 -0
  87. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +62 -0
  88. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +206 -0
  89. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +4187 -0
  90. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +34 -0
  91. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +95 -0
  92. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +899 -0
  93. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +130 -0
  94. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +1066 -0
  95. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +399 -0
  96. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +170 -0
  97. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +31 -0
  98. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +712 -0
  99. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +48 -0
  100. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +11 -0
  101. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +1 -0
  102. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +414 -0
  103. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +29 -0
  104. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +1 -0
  105. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +448 -0
  106. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +1 -0
  107. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +1 -0
  108. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +733 -0
  109. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +881 -0
  110. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +83 -0
  111. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +24 -0
  112. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +109 -0
  113. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +1302 -0
  114. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +1859 -0
  115. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +31 -0
  116. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/LICENSE +22 -0
  117. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/README.md +21 -0
  118. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/binding.gyp +30 -0
  119. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/binding.cc +20 -0
  120. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/binding_test.js +9 -0
  121. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/index.d.ts +28 -0
  122. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/bindings/node/index.js +11 -0
  123. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/grammar.js +1281 -0
  124. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build +16 -0
  125. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build-optional +16 -0
  126. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/node_modules/.bin/node-gyp-build-test +16 -0
  127. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/package.json +77 -0
  128. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/darwin-arm64/tree-sitter-ruby.node +0 -0
  129. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/darwin-x64/tree-sitter-ruby.node +0 -0
  130. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/linux-arm64/tree-sitter-ruby.node +0 -0
  131. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/linux-x64/tree-sitter-ruby.node +0 -0
  132. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/win32-arm64/tree-sitter-ruby.node +0 -0
  133. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/prebuilds/win32-x64/tree-sitter-ruby.node +0 -0
  134. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/highlights.scm +154 -0
  135. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/locals.scm +27 -0
  136. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/queries/tags.scm +64 -0
  137. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/grammar.json +8364 -0
  138. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/node-types.json +4108 -0
  139. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/parser.c +471247 -0
  140. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/scanner.c +1107 -0
  141. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/alloc.h +54 -0
  142. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/array.h +290 -0
  143. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/src/tree_sitter/parser.h +266 -0
  144. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/tree-sitter-ruby.wasm +0 -0
  145. package/repos/coana-tech/callgraph-reachability-analyzers/packages/cli/dist/bundle/node_modules/tree-sitter-ruby/tree-sitter.json +46 -0
  146. package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
  147. package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
  148. package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
  149. package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
@@ -0,0 +1,30 @@
1
+ #ifndef NODE_TREE_SITTER_NODE_H_
2
+ #define NODE_TREE_SITTER_NODE_H_
3
+
4
+ #include "./tree.h"
5
+ #include "tree_sitter/api.h"
6
+
7
+ #include <napi.h>
8
+
9
+ namespace node_tree_sitter::node_methods {
10
+
11
+ void Init(Napi::Env env, Napi::Object exports);
12
+ Napi::Value MarshalNode(const Napi::CallbackInfo &info, const Tree *, TSNode);
13
+ Napi::Value GetMarshalNode(const Napi::CallbackInfo &info, const Tree *tree, TSNode node);
14
+ Napi::Value GetMarshalNodes(const Napi::CallbackInfo &info, const Tree *tree, const TSNode *nodes, uint32_t node_count);
15
+ TSNode UnmarshalNode(Napi::Env env, const Tree *tree, uint8_t offset = 0);
16
+
17
+ static inline const void *UnmarshalNodeId(const uint32_t *buffer) {
18
+ const void *result;
19
+ memcpy(&result, buffer, sizeof(result));
20
+ return result;
21
+ }
22
+
23
+ static inline void MarshalNodeId(const void *id, uint32_t *buffer) {
24
+ memset(buffer, 0, sizeof(uint64_t));
25
+ memcpy(buffer, &id, sizeof(id));
26
+ }
27
+
28
+ } // namespace node_tree_sitter::node_methods
29
+
30
+ #endif // NODE_TREE_SITTER_NODE_H_
@@ -0,0 +1,306 @@
1
+ #include "./parser.h"
2
+ #include "./conversions.h"
3
+ #include "./language.h"
4
+ #include "./logger.h"
5
+ #include "./tree.h"
6
+
7
+ #include <cstddef>
8
+ #include <napi.h>
9
+ #include <vector>
10
+
11
+ using namespace Napi;
12
+ using std::vector;
13
+
14
+ namespace node_tree_sitter {
15
+
16
+ class CallbackInput final {
17
+ public:
18
+ CallbackInput(Function callback, Napi::Value js_buffer_size) {
19
+ this->callback.Reset(callback, 1);
20
+ if (js_buffer_size.IsNumber()) {
21
+ buffer.resize(js_buffer_size.As<Number>().Uint32Value());
22
+ } else {
23
+ buffer.resize(static_cast<uint64_t>(32 * 1024));
24
+ }
25
+ }
26
+
27
+ ~CallbackInput() {
28
+ callback.Reset();
29
+ partial_string.Reset();
30
+ }
31
+
32
+ TSInput Input() {
33
+ TSInput result;
34
+ result.payload = static_cast<void *>(this);
35
+ result.encoding = TSInputEncodingUTF16LE;
36
+ result.read = Read;
37
+ return result;
38
+ }
39
+
40
+ private:
41
+ static String slice(String s, uint32_t offset) {
42
+ Env env = s.Env();
43
+ auto *data = env.GetInstanceData<AddonData>();
44
+ return data->string_slice.Call(s, {Number::New(s.Env(), offset)}).As<String>();
45
+ }
46
+
47
+ static const char * Read(void *payload, uint32_t byte, TSPoint position, uint32_t *bytes_read) {
48
+ auto *reader = static_cast<CallbackInput *>(payload);
49
+ Napi::Env env = reader->callback.Env();
50
+
51
+ if (byte != reader->byte_offset) {
52
+ reader->byte_offset = byte;
53
+ reader->partial_string.Reset();
54
+ }
55
+
56
+ *bytes_read = 0;
57
+ String result;
58
+ if (!reader->partial_string.IsEmpty()) {
59
+ result = reader->partial_string.Get("value").As<String>();
60
+ } else {
61
+ Function callback = reader->callback.Value();
62
+ Napi::Value result_value = callback({
63
+ ByteCountToJS(env, byte),
64
+ PointToJS(env, position),
65
+ });
66
+ if (env.IsExceptionPending()) {
67
+ return nullptr;
68
+ }
69
+ if (!result_value.IsString()) {
70
+ return nullptr;
71
+ }
72
+ result = result_value.As<String>();
73
+ }
74
+
75
+ size_t length = 0;
76
+ size_t utf16_units_read = 0;
77
+ napi_status status;
78
+ status = napi_get_value_string_utf16(
79
+ env, result, nullptr, 0, &length
80
+ );
81
+ if (status != napi_ok) {
82
+ return nullptr;
83
+ }
84
+ status = napi_get_value_string_utf16(
85
+ env, result, reinterpret_cast<char16_t *>(reader->buffer.data()), reader->buffer.size(), &utf16_units_read
86
+ );
87
+ if (status != napi_ok) {
88
+ return nullptr;
89
+ }
90
+
91
+ *bytes_read = 2 * utf16_units_read;
92
+ reader->byte_offset += *bytes_read;
93
+
94
+ if (utf16_units_read < length) {
95
+ if (reader->partial_string.IsEmpty()) {
96
+ reader->partial_string = Napi::Persistent(Object::New(env));
97
+ }
98
+ reader->partial_string.Set("value", slice(result, utf16_units_read));
99
+ } else {
100
+ reader->partial_string.Reset();
101
+ }
102
+
103
+ return reinterpret_cast<const char *>(reader->buffer.data());
104
+ }
105
+
106
+ FunctionReference callback;
107
+ std::vector<uint16_t> buffer;
108
+ size_t byte_offset {};
109
+ ObjectReference partial_string;
110
+ };
111
+
112
+ void Parser::Init(Napi::Env env, Napi::Object exports) {
113
+ auto *data = env.GetInstanceData<AddonData>();
114
+
115
+ Function ctor = DefineClass(env, "Parser", {
116
+ InstanceMethod("setLanguage", &Parser::SetLanguage, napi_default_method),
117
+ InstanceMethod("parse", &Parser::Parse, napi_default_method),
118
+ InstanceMethod("getIncludedRanges", &Parser::IncludedRanges, napi_default_method),
119
+ InstanceMethod("getTimeoutMicros", &Parser::TimeoutMicros, napi_default_method),
120
+ InstanceMethod("setTimeoutMicros", &Parser::SetTimeoutMicros, napi_default_method),
121
+ InstanceMethod("getLogger", &Parser::GetLogger, napi_default_method),
122
+ InstanceMethod("setLogger", &Parser::SetLogger, napi_default_method),
123
+ InstanceMethod("printDotGraphs", &Parser::PrintDotGraphs, napi_default_method),
124
+ InstanceMethod("reset", &Parser::Reset, napi_default_method),
125
+ });
126
+
127
+ data->parser_constructor = Napi::Persistent(ctor);
128
+ exports["Parser"] = ctor;
129
+ exports["LANGUAGE_VERSION"] = Number::New(env, TREE_SITTER_LANGUAGE_VERSION);
130
+
131
+ String s = String::New(env, "");
132
+ Napi::Value string_slice_value = s.As<Object>()["slice"];
133
+ data->string_slice = Napi::Persistent(string_slice_value.As<Function>());
134
+ }
135
+
136
+ Parser::Parser(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Parser>(info), parser_(ts_parser_new()) {}
137
+
138
+ Parser::~Parser() {
139
+ ts_parser_print_dot_graphs(parser_, -1);
140
+ ts_parser_set_logger(parser_, { nullptr, nullptr });
141
+ ts_parser_delete(parser_);
142
+ }
143
+
144
+ namespace {
145
+
146
+ bool handle_included_ranges(Napi::Env env, TSParser *parser, Napi::Value arg) {
147
+ uint32_t last_included_range_end = 0;
148
+ if (arg.IsArray()) {
149
+ auto js_included_ranges = arg.As<Array>();
150
+ vector<TSRange> included_ranges;
151
+ for (unsigned i = 0; i < js_included_ranges.Length(); i++) {
152
+ Value range_value = js_included_ranges[i];
153
+ if (!range_value.IsObject()) {
154
+ return false;
155
+ }
156
+ auto maybe_range = RangeFromJS(range_value);
157
+ if (!maybe_range.IsJust()) {
158
+ return false;
159
+ }
160
+ auto range = maybe_range.Unwrap();
161
+ if (range.start_byte < last_included_range_end) {
162
+ throw RangeError::New(env, "Overlapping ranges");
163
+ }
164
+ last_included_range_end = range.end_byte;
165
+ included_ranges.push_back(range);
166
+ }
167
+ ts_parser_set_included_ranges(parser, included_ranges.data(), included_ranges.size());
168
+ } else {
169
+ ts_parser_set_included_ranges(parser, nullptr, 0);
170
+ }
171
+
172
+ return true;
173
+ }
174
+
175
+ } // namespace
176
+
177
+ Napi::Value Parser::SetLanguage(const Napi::CallbackInfo &info) {
178
+ const TSLanguage *language = language_methods::UnwrapLanguage(info[0]);
179
+ if (language != nullptr) {
180
+ ts_parser_set_language(parser_, language);
181
+ return info.This();
182
+ }
183
+ return info.Env().Undefined();
184
+ }
185
+
186
+ Napi::Value Parser::Parse(const CallbackInfo &info) {
187
+ Napi::Env env = info.Env();
188
+
189
+ if (!info[0].IsFunction()) {
190
+ throw TypeError::New(env, "Input must be a function");
191
+ }
192
+
193
+ auto callback = info[0].As<Function>();
194
+
195
+ Object js_old_tree;
196
+ const TSTree *old_tree = nullptr;
197
+ if (info.Length() > 1 && !info[1].IsNull() && !info[1].IsUndefined() && info[1].IsObject()) {
198
+ js_old_tree = info[1].As<Object>();
199
+ const Tree *tree = Tree::UnwrapTree(js_old_tree);
200
+ if (tree == nullptr) {
201
+ throw TypeError::New(env, "Second argument must be a tree");
202
+ }
203
+ old_tree = tree->tree_;
204
+ }
205
+
206
+ Napi::Value buffer_size = env.Null();
207
+ if (info.Length() > 2) {
208
+ buffer_size = info[2];
209
+ }
210
+
211
+ if (!handle_included_ranges(env, parser_, info[3])) {
212
+ return env.Undefined();
213
+ }
214
+
215
+ CallbackInput callback_input(callback, buffer_size);
216
+ TSTree *tree = ts_parser_parse(parser_, old_tree, callback_input.Input());
217
+ Napi::Value result = Tree::NewInstance(env, tree);
218
+ return result;
219
+ }
220
+
221
+ Napi::Value Parser::IncludedRanges(const Napi::CallbackInfo &info) {
222
+ Napi::Env env = info.Env();
223
+ uint32_t count;
224
+ const TSRange *ranges = ts_parser_included_ranges(parser_, &count);
225
+
226
+ Napi::Array result = Napi::Array::New(env, count);
227
+ for (uint32_t i = 0; i < count; i++) {
228
+ result[i] = RangeToJS(env, ranges[i]);
229
+ }
230
+
231
+ return result;
232
+ }
233
+
234
+ Napi::Value Parser::TimeoutMicros(const Napi::CallbackInfo &info) {
235
+ uint64_t timeout_micros = ts_parser_timeout_micros(parser_);
236
+ return Number::New(info.Env(), static_cast<double>(timeout_micros));
237
+ }
238
+
239
+ Napi::Value Parser::SetTimeoutMicros(const Napi::CallbackInfo &info) {
240
+ uint64_t timeout_micros;
241
+ if (!info[0].IsNumber()) {
242
+ throw TypeError::New(info.Env(), "First argument must be a number");
243
+ }
244
+ timeout_micros = info[0].As<Number>().Uint32Value();
245
+ ts_parser_set_timeout_micros(parser_, timeout_micros);
246
+ return info.This();
247
+ }
248
+
249
+ Napi::Value Parser::GetLogger(const Napi::CallbackInfo &info) {
250
+ TSLogger current_logger = ts_parser_logger(parser_);
251
+ if ((current_logger.payload != nullptr) && current_logger.log == Logger::Log) {
252
+ auto *logger = static_cast<Logger *>(current_logger.payload);
253
+ return logger->func.Value();
254
+ }
255
+ return info.Env().Null();
256
+ }
257
+
258
+ Napi::Value Parser::SetLogger(const Napi::CallbackInfo &info) {
259
+ TSLogger current_logger = ts_parser_logger(parser_);
260
+
261
+ if (info[0].IsFunction()) {
262
+ if (current_logger.payload != nullptr) {
263
+ delete static_cast<Logger *>(current_logger.payload);
264
+ }
265
+ ts_parser_set_logger(parser_, Logger::Make(info[0].As<Function>()));
266
+ } else if (info[0].IsEmpty() || info[0].IsUndefined() || info[0].IsNull() || (info[0].IsBoolean() && !info[0].As<Boolean>())) {
267
+ if (current_logger.payload != nullptr) {
268
+ delete static_cast<Logger *>(current_logger.payload);
269
+ }
270
+ ts_parser_set_logger(parser_, { nullptr, nullptr });
271
+ } else {
272
+ throw TypeError::New(info.Env(), "Logger callback must either be a function or a falsy value");
273
+ }
274
+
275
+ return info.This();
276
+ }
277
+
278
+ Napi::Value Parser::PrintDotGraphs(const Napi::CallbackInfo &info) {
279
+ bool should_print = true;
280
+ int fd = fileno(stderr);
281
+
282
+ if (info.Length() > 0) {
283
+ if (!info[0].IsBoolean()) {
284
+ throw TypeError::New(info.Env(), "First argument must be a boolean");
285
+ }
286
+ should_print = info[0].As<Boolean>();
287
+ }
288
+
289
+ if (info.Length() > 1) {
290
+ if (!info[1].IsNumber()) {
291
+ throw TypeError::New(info.Env(), "Second argument must be a number");
292
+ }
293
+ fd = info[1].As<Number>().Int32Value();
294
+ }
295
+
296
+ ts_parser_print_dot_graphs(parser_, should_print ? fd : -1);
297
+
298
+ return info.This();
299
+ }
300
+
301
+ Napi::Value Parser::Reset(const Napi::CallbackInfo & info) {
302
+ ts_parser_reset(parser_);
303
+ return info.This();
304
+ }
305
+
306
+ } // namespace node_tree_sitter
@@ -0,0 +1,35 @@
1
+ #ifndef NODE_TREE_SITTER_PARSER_H_
2
+ #define NODE_TREE_SITTER_PARSER_H_
3
+
4
+ #include "tree_sitter/api.h"
5
+
6
+ #include <napi.h>
7
+ #include <node_object_wrap.h>
8
+
9
+ namespace node_tree_sitter {
10
+
11
+ class Parser final : public Napi::ObjectWrap<Parser> {
12
+ public:
13
+ static void Init(Napi::Env env, Napi::Object exports);
14
+
15
+ explicit Parser(const Napi::CallbackInfo &info);
16
+ ~Parser() final;
17
+
18
+ private:
19
+ TSParser *parser_;
20
+
21
+ Napi::Value SetLanguage(const Napi::CallbackInfo &);
22
+ Napi::Value Parse(const Napi::CallbackInfo &);
23
+ Napi::Value IncludedRanges(const Napi::CallbackInfo &info);
24
+ Napi::Value SetIncludedRanges(const Napi::CallbackInfo &info);
25
+ Napi::Value TimeoutMicros(const Napi::CallbackInfo &info);
26
+ Napi::Value SetTimeoutMicros(const Napi::CallbackInfo &info);
27
+ Napi::Value GetLogger(const Napi::CallbackInfo &);
28
+ Napi::Value SetLogger(const Napi::CallbackInfo &);
29
+ Napi::Value PrintDotGraphs(const Napi::CallbackInfo &);
30
+ Napi::Value Reset(const Napi::CallbackInfo &info);
31
+ };
32
+
33
+ } // namespace node_tree_sitter
34
+
35
+ #endif // NODE_TREE_SITTER_PARSER_H_