@eagleoutice/flowr 2.17.5 → 2.17.6

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 (357) hide show
  1. package/README.md +13 -51
  2. package/abstract-interpretation/absint-inference.d.ts +4 -4
  3. package/abstract-interpretation/absint-inference.js +11 -11
  4. package/abstract-interpretation/abstract-semantics.d.ts +2 -1
  5. package/abstract-interpretation/branch-paths-interpreter.d.ts +1 -0
  6. package/abstract-interpretation/branch-paths-interpreter.js +60 -0
  7. package/abstract-interpretation/branch-paths.d.ts +60 -0
  8. package/abstract-interpretation/branch-paths.js +120 -0
  9. package/abstract-interpretation/data-frame/dataframe-semantics.d.ts +6 -1
  10. package/abstract-interpretation/data-frame/dataframe-semantics.js +60 -1
  11. package/abstract-interpretation/data-frame/semantics.js +4 -10
  12. package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
  13. package/cli/repl/core.js +51 -0
  14. package/control-flow/cfg-dead-code.js +12 -7
  15. package/data/packed.d.ts +10 -0
  16. package/data/packed.js +33 -0
  17. package/data/r-base-guards.generated.d.ts +7 -0
  18. package/data/r-base-guards.generated.js +12 -0
  19. package/data/r-datasets.generated.d.ts +4 -0
  20. package/data/r-datasets.generated.js +10 -0
  21. package/data/r-formals.generated.d.ts +4 -0
  22. package/data/r-formals.generated.js +10 -0
  23. package/data/r-group-method-guards.generated.d.ts +3 -0
  24. package/data/r-group-method-guards.generated.js +8 -0
  25. package/dataflow/environments/ambient-effect.d.ts +1000 -0
  26. package/dataflow/environments/ambient-effect.js +234 -0
  27. package/dataflow/environments/ambient-state-name.d.ts +45 -2
  28. package/dataflow/environments/ambient-state-name.js +61 -3
  29. package/dataflow/environments/apply-kill.js +11 -4
  30. package/dataflow/environments/built-in-kinds.d.ts +4 -46
  31. package/dataflow/environments/built-in-kinds.js +6 -2
  32. package/dataflow/environments/built-in-props.d.ts +16 -4
  33. package/dataflow/environments/built-in-props.js +11 -3
  34. package/dataflow/environments/built-in.d.ts +6 -1
  35. package/dataflow/environments/built-in.js +13 -36
  36. package/dataflow/environments/default-builtin-config/base-functions.d.ts +1 -1
  37. package/dataflow/environments/default-builtin-config/base-functions.js +110 -52
  38. package/dataflow/environments/default-builtin-config/base-language.d.ts +1 -1
  39. package/dataflow/environments/default-builtin-config/base-language.js +11 -8
  40. package/dataflow/environments/default-builtin-config/dev-tooling.js +1 -1
  41. package/dataflow/environments/default-builtin-config/file-io.js +6 -4
  42. package/dataflow/environments/default-builtin-config/graphics-devices.d.ts +1 -1
  43. package/dataflow/environments/default-builtin-config/graphics-devices.js +24 -14
  44. package/dataflow/environments/default-builtin-config/guard-builders.d.ts +16 -0
  45. package/dataflow/environments/default-builtin-config/guard-builders.js +29 -0
  46. package/dataflow/environments/default-builtin-config/guards-primitive-lang.d.ts +15 -0
  47. package/dataflow/environments/default-builtin-config/guards-primitive-lang.js +228 -0
  48. package/dataflow/environments/default-builtin-config/guards-primitive-ops.d.ts +11 -0
  49. package/dataflow/environments/default-builtin-config/guards-primitive-ops.js +154 -0
  50. package/dataflow/environments/default-builtin-config/guards.d.ts +9 -0
  51. package/dataflow/environments/default-builtin-config/guards.js +211 -0
  52. package/dataflow/environments/default-builtin-config/index.d.ts +3 -3
  53. package/dataflow/environments/default-builtin-config/index.js +22 -7
  54. package/dataflow/environments/default-builtin-config/media-formats.js +4 -4
  55. package/dataflow/environments/default-builtin-config/package-spatial.js +2 -1
  56. package/dataflow/environments/default-builtin-config/package-tidyverse.js +3 -2
  57. package/dataflow/environments/default-builtin-config/package-utils.d.ts +1 -1
  58. package/dataflow/environments/default-builtin-config/package-utils.js +5 -2
  59. package/dataflow/environments/default-builtin-config/parallel-execution.d.ts +1 -1
  60. package/dataflow/environments/default-builtin-config/parallel-execution.js +3 -1
  61. package/dataflow/environments/default-builtin-config/r-formals.d.ts +13 -0
  62. package/dataflow/environments/default-builtin-config/r-formals.js +110 -0
  63. package/dataflow/environments/default-builtin-config/shared-configs.d.ts +138 -77
  64. package/dataflow/environments/default-builtin-config/shared-configs.js +52 -88
  65. package/dataflow/environments/default-builtin-config/statistics.d.ts +1 -1
  66. package/dataflow/environments/default-builtin-config/statistics.js +4 -1
  67. package/dataflow/environments/diff.js +5 -2
  68. package/dataflow/environments/environment.d.ts +20 -0
  69. package/dataflow/environments/environment.js +39 -4
  70. package/dataflow/environments/group-generics.d.ts +5 -1
  71. package/dataflow/environments/group-generics.js +13 -3
  72. package/dataflow/environments/guard-facts.d.ts +169 -0
  73. package/dataflow/environments/guard-facts.js +26 -0
  74. package/dataflow/environments/identifier.d.ts +9 -1
  75. package/dataflow/environments/identifier.js +5 -0
  76. package/dataflow/environments/pkg-name.d.ts +1 -0
  77. package/dataflow/environments/query-fn-props.d.ts +3 -5
  78. package/dataflow/environments/query-fn-props.js +44 -21
  79. package/dataflow/environments/removal-marker.d.ts +2 -0
  80. package/dataflow/environments/removal-marker.js +5 -0
  81. package/dataflow/eval/resolve/resolve-strings.d.ts +2 -5
  82. package/dataflow/eval/resolve/resolve-strings.js +2 -2
  83. package/dataflow/extractor.js +24 -15
  84. package/dataflow/fn/condition-handlers.d.ts +2 -0
  85. package/dataflow/fn/condition-handlers.js +3 -1
  86. package/dataflow/fn/frame-reflection.d.ts +4 -2
  87. package/dataflow/fn/frame-reflection.js +16 -0
  88. package/dataflow/fn/function-props.js +15 -22
  89. package/dataflow/fn/function-semantics.d.ts +31 -1
  90. package/dataflow/fn/function-semantics.js +15 -0
  91. package/dataflow/fn/guards/built-in-guards.d.ts +112 -0
  92. package/dataflow/fn/guards/built-in-guards.js +199 -0
  93. package/dataflow/fn/guards/call-contracts.d.ts +97 -0
  94. package/dataflow/fn/guards/call-contracts.js +331 -0
  95. package/dataflow/fn/guards/condition-grouping.d.ts +20 -0
  96. package/dataflow/fn/guards/condition-grouping.js +135 -0
  97. package/dataflow/fn/guards/function-guards.d.ts +112 -0
  98. package/dataflow/fn/guards/function-guards.js +1549 -0
  99. package/dataflow/fn/guards/group-method-guards.d.ts +28 -0
  100. package/dataflow/fn/guards/group-method-guards.js +56 -0
  101. package/dataflow/fn/guards/guard-claims.d.ts +125 -0
  102. package/dataflow/fn/guards/guard-claims.js +678 -0
  103. package/dataflow/fn/guards/guard-knowledge.d.ts +41 -0
  104. package/dataflow/fn/guards/guard-knowledge.js +180 -0
  105. package/dataflow/fn/guards/guard-term-syntax.d.ts +9 -0
  106. package/dataflow/fn/guards/guard-term-syntax.js +210 -0
  107. package/dataflow/fn/guards/guard-term.d.ts +136 -0
  108. package/dataflow/fn/guards/guard-term.js +550 -0
  109. package/dataflow/fn/guards/stated-guards.d.ts +13 -0
  110. package/dataflow/fn/guards/stated-guards.js +35 -0
  111. package/dataflow/fn/higher-order-function.d.ts +2 -0
  112. package/dataflow/fn/higher-order-function.js +1 -0
  113. package/dataflow/fn/strict-function.d.ts +4 -0
  114. package/dataflow/fn/strict-function.js +66 -17
  115. package/dataflow/graph/ambient-access.d.ts +4 -1
  116. package/dataflow/graph/ambient-access.js +8 -2
  117. package/dataflow/graph/closure-frames.js +1 -1
  118. package/dataflow/graph/dataflowgraph-builder.d.ts +1 -1
  119. package/dataflow/graph/dataflowgraph-builder.js +2 -2
  120. package/dataflow/graph/df-helper.d.ts +6 -0
  121. package/dataflow/graph/df-helper.js +15 -0
  122. package/dataflow/graph/graph.d.ts +12 -6
  123. package/dataflow/graph/graph.js +21 -28
  124. package/dataflow/info.d.ts +2 -1
  125. package/dataflow/info.js +3 -1
  126. package/dataflow/internal/dispatch-linking.d.ts +3 -1
  127. package/dataflow/internal/dispatch-linking.js +1 -0
  128. package/dataflow/internal/linker.d.ts +2 -0
  129. package/dataflow/internal/linker.js +115 -6
  130. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +2 -1
  131. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.d.ts +5 -2
  132. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.js +2 -1
  133. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +19 -57
  134. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +471 -295
  135. package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +13 -1
  136. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +2 -0
  137. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +106 -19
  138. package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -1
  139. package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +24 -3
  140. package/dataflow/internal/process/functions/call/built-in/built-in-deferred-env-ops.d.ts +1 -1
  141. package/dataflow/internal/process/functions/call/built-in/built-in-deferred-env-ops.js +33 -11
  142. package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +4 -0
  143. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +4 -4
  144. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +23 -7
  145. package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +14 -4
  146. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.d.ts +19 -2
  147. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +347 -46
  148. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +2 -1
  149. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +5 -0
  150. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +110 -16
  151. package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +2 -0
  152. package/dataflow/internal/process/functions/call/built-in/built-in-get.js +9 -2
  153. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.d.ts +1 -1
  154. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +4 -2
  155. package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +5 -0
  156. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +28 -0
  157. package/dataflow/internal/process/functions/call/built-in/built-in-load.js +16 -6
  158. package/dataflow/internal/process/functions/call/built-in/built-in-local.d.ts +6 -1
  159. package/dataflow/internal/process/functions/call/built-in/built-in-local.js +37 -2
  160. package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +4 -0
  161. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +19 -1
  162. package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +1 -1
  163. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +55 -11
  164. package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +2 -2
  165. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +11 -10
  166. package/dataflow/internal/process/functions/call/built-in/built-in-special-bin-op.js +3 -1
  167. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +8 -0
  168. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +64 -7
  169. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +1 -1
  170. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +160 -20
  171. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +5 -3
  172. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +6 -0
  173. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +142 -4
  174. package/dataflow/internal/process/functions/call/quoted.d.ts +2 -0
  175. package/dataflow/internal/process/functions/call/quoted.js +23 -4
  176. package/dataflow/processor.d.ts +2 -0
  177. package/documentation/data/dfg/doc-ambient.d.ts +4 -0
  178. package/documentation/data/dfg/doc-ambient.js +74 -0
  179. package/documentation/wiki-dataflow-graph.js +10 -4
  180. package/documentation/wiki-linter.js +12 -0
  181. package/documentation/wiki-query.js +112 -1
  182. package/linter/linter-rules.d.ts +41 -1
  183. package/linter/linter-rules.js +5 -1
  184. package/linter/rules/call-contracts.d.ts +40 -0
  185. package/linter/rules/call-contracts.js +56 -0
  186. package/linter/rules/cmd-check/bogus-return.js +1 -1
  187. package/linter/rules/cmd-check/call-arguments.js +5 -6
  188. package/linter/rules/cmd-check/cmd-check-util.d.ts +0 -6
  189. package/linter/rules/cmd-check/cmd-check-util.js +0 -28
  190. package/linter/rules/cmd-check/package-hooks.js +2 -1
  191. package/linter/rules/cmd-check/s-three-method-consistency.js +1 -1
  192. package/linter/rules/interactive-functions.d.ts +30 -0
  193. package/linter/rules/interactive-functions.js +87 -0
  194. package/linter/rules/process-state-in-session.js +1 -1
  195. package/linter/rules/undefined-symbol-util.d.ts +1 -1
  196. package/linter/rules/undefined-symbol-util.js +8 -2
  197. package/linter/rules/undefined-symbol.js +18 -7
  198. package/linter/rules/useless-loop.d.ts +1 -1
  199. package/package.json +1 -1
  200. package/project/context/flowr-analyzer-dependencies-context.js +2 -1
  201. package/project/flowr-analyzer.d.ts +1 -0
  202. package/project/flowr-analyzer.js +5 -5
  203. package/project/sigdb/build.js +14 -4
  204. package/project/sigdb/decode.d.ts +3 -0
  205. package/project/sigdb/decode.js +10 -1
  206. package/project/sigdb/guarded-source.d.ts +6 -0
  207. package/project/sigdb/guarded-source.js +29 -0
  208. package/project/sigdb/reader.d.ts +5 -0
  209. package/project/sigdb/reader.js +27 -1
  210. package/project/sigdb/schema.d.ts +24 -2
  211. package/queries/catalog/absint-query/absint-query-format.d.ts +6 -3
  212. package/queries/catalog/absint-query/absint-query-format.js +57 -2
  213. package/queries/catalog/ambient-access-query/ambient-access-query-format.d.ts +6 -2
  214. package/queries/catalog/ambient-access-query/ambient-access-query-format.js +48 -3
  215. package/queries/catalog/cluster-query/cluster-query-format.d.ts +5 -2
  216. package/queries/catalog/cluster-query/cluster-query-format.js +19 -2
  217. package/queries/catalog/code-clones-query/code-clones-query-format.d.ts +5 -2
  218. package/queries/catalog/code-clones-query/code-clones-query-format.js +34 -2
  219. package/queries/catalog/config-query/config-query-format.d.ts +5 -2
  220. package/queries/catalog/config-query/config-query-format.js +41 -2
  221. package/queries/catalog/control-flow-query/control-flow-query-format.d.ts +5 -2
  222. package/queries/catalog/control-flow-query/control-flow-query-format.js +19 -2
  223. package/queries/catalog/data-columns-query/data-columns-query-format.d.ts +72 -0
  224. package/queries/catalog/data-columns-query/data-columns-query-format.js +215 -0
  225. package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.d.ts +5 -2
  226. package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.js +38 -2
  227. package/queries/catalog/dataflow-query/dataflow-query-format.d.ts +5 -2
  228. package/queries/catalog/dataflow-query/dataflow-query-format.js +18 -2
  229. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +1 -1
  230. package/queries/catalog/dependencies-query/dependencies-query-format.js +8 -3
  231. package/queries/catalog/dependencies-query/function-info/other-path-functions.js +1 -1
  232. package/queries/catalog/dependencies-query/function-info/tagged-functions.d.ts +11 -0
  233. package/queries/catalog/dependencies-query/function-info/tagged-functions.js +18 -0
  234. package/queries/catalog/dice-query/dice-query-format.d.ts +7 -2
  235. package/queries/catalog/dice-query/dice-query-format.js +34 -2
  236. package/queries/catalog/does-call-query/does-call-query-format.d.ts +7 -4
  237. package/queries/catalog/does-call-query/does-call-query-format.js +114 -2
  238. package/queries/catalog/files-query/files-query-format.d.ts +5 -2
  239. package/queries/catalog/files-query/files-query-format.js +45 -2
  240. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +6 -3
  241. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +303 -2
  242. package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +8 -4
  243. package/queries/catalog/happens-before-query/happens-before-query-format.js +37 -2
  244. package/queries/catalog/id-map-query/id-map-query-format.d.ts +5 -2
  245. package/queries/catalog/id-map-query/id-map-query-format.js +18 -2
  246. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +5 -2
  247. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +29 -2
  248. package/queries/catalog/inspect-fn-guards-query/inspect-fn-guards-query-format.d.ts +37 -0
  249. package/queries/catalog/inspect-fn-guards-query/inspect-fn-guards-query-format.js +125 -0
  250. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.d.ts +3 -2
  251. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +54 -2
  252. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +6 -2
  253. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +23 -2
  254. package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.d.ts +6 -2
  255. package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.js +15 -2
  256. package/queries/catalog/linter-query/linter-query-format.d.ts +8 -2
  257. package/queries/catalog/linter-query/linter-query-format.js +69 -4
  258. package/queries/catalog/location-map-query/location-map-query-format.d.ts +7 -3
  259. package/queries/catalog/location-map-query/location-map-query-format.js +70 -2
  260. package/queries/catalog/normalized-ast-query/normalized-ast-query-format.d.ts +5 -2
  261. package/queries/catalog/normalized-ast-query/normalized-ast-query-format.js +18 -2
  262. package/queries/catalog/origin-query/origin-query-format.d.ts +6 -3
  263. package/queries/catalog/origin-query/origin-query-format.js +29 -2
  264. package/queries/catalog/project-query/project-query-format.d.ts +6 -3
  265. package/queries/catalog/project-query/project-query-format.js +98 -2
  266. package/queries/catalog/provenance-query/provenance-query-format.d.ts +6 -3
  267. package/queries/catalog/provenance-query/provenance-query-format.js +30 -2
  268. package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +9 -2
  269. package/queries/catalog/resolve-value-query/resolve-value-query-format.js +38 -2
  270. package/queries/catalog/search-query/search-query-format.d.ts +5 -2
  271. package/queries/catalog/search-query/search-query-format.js +23 -2
  272. package/queries/catalog/signature-query/signature-query-executor.js +3 -1
  273. package/queries/catalog/signature-query/signature-query-format.d.ts +3 -0
  274. package/queries/catalog/signature-query/signature-query-render.js +23 -0
  275. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +13 -2
  276. package/queries/catalog/static-slice-query/static-slice-query-format.js +55 -2
  277. package/queries/catalog/taint-query/taint-query-format.d.ts +6 -3
  278. package/queries/catalog/taint-query/taint-query-format.js +28 -2
  279. package/queries/query.d.ts +48 -27
  280. package/queries/query.js +6 -4
  281. package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +2 -0
  282. package/r-bridge/lang-4.x/ast/model/processing/node-id.js +4 -0
  283. package/r-bridge/shell.js +7 -2
  284. package/reconstruct/reconstruct.js +18 -3
  285. package/slicing/static/removal-slice.js +4 -3
  286. package/slicing/static/slice-call.d.ts +11 -0
  287. package/slicing/static/slice-call.js +43 -2
  288. package/slicing/static/static-slicer.d.ts +2 -0
  289. package/slicing/static/static-slicer.js +137 -21
  290. package/slicing/static/visiting-queue.d.ts +2 -0
  291. package/slicing/static/visiting-queue.js +4 -0
  292. package/util/flowr-version.d.ts +1 -1
  293. package/util/flowr-version.js +2 -2
  294. package/util/objects.d.ts +2 -0
  295. package/util/objects.js +5 -0
  296. package/util/r-datasets.d.ts +27 -0
  297. package/util/r-datasets.js +45 -0
  298. package/util/text/playground-link.d.ts +2 -0
  299. package/util/text/playground-link.js +2 -0
  300. package/queries/catalog/absint-query/absint-query-executor.d.ts +0 -6
  301. package/queries/catalog/absint-query/absint-query-executor.js +0 -61
  302. package/queries/catalog/ambient-access-query/ambient-access-query-executor.d.ts +0 -6
  303. package/queries/catalog/ambient-access-query/ambient-access-query-executor.js +0 -50
  304. package/queries/catalog/cluster-query/cluster-query-executor.d.ts +0 -6
  305. package/queries/catalog/cluster-query/cluster-query-executor.js +0 -21
  306. package/queries/catalog/code-clones-query/code-clones-query-executor.d.ts +0 -6
  307. package/queries/catalog/code-clones-query/code-clones-query-executor.js +0 -38
  308. package/queries/catalog/config-query/config-query-executor.d.ts +0 -6
  309. package/queries/catalog/config-query/config-query-executor.js +0 -45
  310. package/queries/catalog/control-flow-query/control-flow-query-executor.d.ts +0 -6
  311. package/queries/catalog/control-flow-query/control-flow-query-executor.js +0 -21
  312. package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.d.ts +0 -6
  313. package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.js +0 -40
  314. package/queries/catalog/dataflow-query/dataflow-query-executor.d.ts +0 -6
  315. package/queries/catalog/dataflow-query/dataflow-query-executor.js +0 -20
  316. package/queries/catalog/dependencies-query/function-info/statistics-functions.d.ts +0 -9
  317. package/queries/catalog/dependencies-query/function-info/statistics-functions.js +0 -18
  318. package/queries/catalog/dice-query/dice-query-executor.d.ts +0 -8
  319. package/queries/catalog/dice-query/dice-query-executor.js +0 -37
  320. package/queries/catalog/does-call-query/does-call-query-executor.d.ts +0 -6
  321. package/queries/catalog/does-call-query/does-call-query-executor.js +0 -116
  322. package/queries/catalog/files-query/files-query-executor.d.ts +0 -6
  323. package/queries/catalog/files-query/files-query-executor.js +0 -47
  324. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.d.ts +0 -6
  325. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +0 -307
  326. package/queries/catalog/happens-before-query/happens-before-query-executor.d.ts +0 -7
  327. package/queries/catalog/happens-before-query/happens-before-query-executor.js +0 -40
  328. package/queries/catalog/id-map-query/id-map-query-executor.d.ts +0 -6
  329. package/queries/catalog/id-map-query/id-map-query-executor.js +0 -20
  330. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.d.ts +0 -6
  331. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.js +0 -31
  332. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.d.ts +0 -4
  333. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +0 -58
  334. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.d.ts +0 -7
  335. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +0 -25
  336. package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.d.ts +0 -7
  337. package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.js +0 -17
  338. package/queries/catalog/linter-query/linter-query-executor.d.ts +0 -9
  339. package/queries/catalog/linter-query/linter-query-executor.js +0 -62
  340. package/queries/catalog/location-map-query/location-map-query-executor.d.ts +0 -7
  341. package/queries/catalog/location-map-query/location-map-query-executor.js +0 -73
  342. package/queries/catalog/normalized-ast-query/normalized-ast-query-executor.d.ts +0 -6
  343. package/queries/catalog/normalized-ast-query/normalized-ast-query-executor.js +0 -20
  344. package/queries/catalog/origin-query/origin-query-executor.d.ts +0 -6
  345. package/queries/catalog/origin-query/origin-query-executor.js +0 -31
  346. package/queries/catalog/project-query/project-query-executor.d.ts +0 -6
  347. package/queries/catalog/project-query/project-query-executor.js +0 -103
  348. package/queries/catalog/provenance-query/provenance-query-executor.d.ts +0 -6
  349. package/queries/catalog/provenance-query/provenance-query-executor.js +0 -33
  350. package/queries/catalog/resolve-value-query/resolve-value-query-executor.d.ts +0 -10
  351. package/queries/catalog/resolve-value-query/resolve-value-query-executor.js +0 -40
  352. package/queries/catalog/search-query/search-query-executor.d.ts +0 -6
  353. package/queries/catalog/search-query/search-query-executor.js +0 -25
  354. package/queries/catalog/static-slice-query/static-slice-query-executor.d.ts +0 -14
  355. package/queries/catalog/static-slice-query/static-slice-query-executor.js +0 -59
  356. package/queries/catalog/taint-query/taint-query-executor.d.ts +0 -7
  357. package/queries/catalog/taint-query/taint-query-executor.js +0 -30
@@ -1,12 +1,8 @@
1
1
  import type { BuiltInDefinitions } from '../built-in-config';
2
- import type { DataflowGraph } from '../../graph/graph';
3
- import { type DataflowGraphVertexInfo } from '../../graph/vertex';
4
- import type { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/node-id';
5
- import { CascadeAction } from '../../../queries/catalog/call-context-query/cascade-action';
6
2
  import { Identifier, PkgName, type BrandedIdentifier, type BrandedNamespace } from '../identifier';
7
3
  import { CallProp, type FnSig, SemanticCallTag, type SemanticCallTags } from '../built-in-props';
8
- import { AmbientStateAccessType } from '../built-in-kinds';
9
- import { AmbientStateName, KeyedState } from '../ambient-state-name';
4
+ import { KeyedState } from '../ambient-state-name';
5
+ import { type AmbientFamilySummary, AmbientVerb } from '../ambient-effect';
10
6
  /** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
11
7
  export declare enum StackEnvKind {
12
8
  Global = 0,
@@ -26,6 +22,7 @@ export declare const StackEnvBuiltins: {
26
22
  readonly environment: StackEnvKind.Current;
27
23
  readonly 'parent.env': StackEnvKind.Parent;
28
24
  readonly 'parent.frame': StackEnvKind.CallerFrame;
25
+ readonly 'sys.frame': StackEnvKind.CallerFrame;
29
26
  readonly 'as.environment': StackEnvKind.Named;
30
27
  readonly '.env': StackEnvKind.Current;
31
28
  readonly '.GlobalEnv': StackEnvKind.Global;
@@ -48,7 +45,6 @@ export declare const PlotCreate: string[];
48
45
  export declare const VisiblePlotCreate: ReadonlySet<string>;
49
46
  /** the plot creators that return the plot to draw when printed, where base graphics draw at once and return something else */
50
47
  export declare const PlotObjectCreate: ReadonlySet<string>;
51
- export declare const GraphicDeviceOpen: readonly ["pdf", "jpeg", "png", "windows", "postscript", "xfig", "bitmap", "pictex", "cairo_pdf", "svg", "bmp", "tiff", "X11", "quartz", "image_graph", "image_draw", "dev.new", "trellis.device", "raster_pdf", "agg_png", "agg_jpeg", "agg_tiff", "agg_ppm", "agg_webp", "agg_capture"];
52
48
  export declare const TinyPlotAddons: string[];
53
49
  /** the addons that change the theme of later plots and hand back the old one invisibly */
54
50
  export declare const InvisibleGgPlotAddons: readonly string[];
@@ -56,7 +52,6 @@ export declare const GgPlotImplicitAddons: readonly ["geom_count", "geom_bin_2d"
56
52
  export declare const PlotFunctionsWithAddParam: Set<BrandedIdentifier>;
57
53
  export declare const GraphicsPlotAddons: BrandedIdentifier[];
58
54
  export declare const GgPlotAddons: string[];
59
- export declare const PlotAddons: BrandedIdentifier[];
60
55
  /** The packages exporting magrittr's `%>%`: the tidyverse and friends re-export the very same function. */
61
56
  export declare const MagrittrPipePackages: readonly [PkgName.Magrittr, PkgName.Dplyr, PkgName.Purrr, PkgName.Stringr, PkgName.Tibble, PkgName.TidyR, PkgName.Testthat, PkgName.Magick, PkgName.Promises];
62
57
  /** The packages re-exporting rlang's tidy-evaluation helpers unchanged. */
@@ -65,22 +60,29 @@ export declare const TidyEvalPackages: readonly [PkgName.Rlang, PkgName.Dplyr, P
65
60
  export declare const DbConnectSig: FnSig;
66
61
  export declare const DbConnSig: FnSig;
67
62
  export declare const DbReads: {
68
- readonly type: AmbientStateAccessType.ReadFiles;
69
63
  readonly sig: FnSig;
64
+ readonly family: import("../ambient-effect").AmbientFamilyName;
65
+ readonly access: AmbientVerb.Reads;
70
66
  };
71
67
  export declare const DbReadsWrites: (sig: FnSig) => readonly [{
72
- readonly type: AmbientStateAccessType.ReadFiles;
73
68
  readonly sig: FnSig;
69
+ readonly family: import("../ambient-effect").AmbientFamilyName;
70
+ readonly access: AmbientVerb.Reads;
74
71
  }, {
75
- readonly type: AmbientStateAccessType.WriteFiles;
76
72
  readonly sig: FnSig;
73
+ readonly family: import("../ambient-effect").AmbientFamilyName;
74
+ readonly access: AmbientVerb.Writes;
77
75
  }];
78
76
  export declare const DbPackages: readonly [PkgName.Dbi, PkgName.Rsqlite, "RPostgres", "RMariaDB", "odbc", "pool"];
79
77
  /** reads the files some arguments name and writes the ones its {@link ArgProp.Written} arguments name, like `file.copy` or `unzip` */
80
78
  export declare const SetsAnyEnvVar: {
81
- readonly type: AmbientStateAccessType.SetState;
82
- readonly state: AmbientStateName;
83
- }[];
79
+ readonly member: {
80
+ readonly from: "constant";
81
+ readonly keys: readonly ["*"];
82
+ };
83
+ readonly family: import("../ambient-effect").AmbientFamilyName;
84
+ readonly access: AmbientVerb.Writes;
85
+ };
84
86
  export declare const CopiesFiles: SemanticCallTag[];
85
87
  /** reads what its URL (or remote object) arguments name from the network and writes the file its {@link ArgProp.Written} arguments name, like `download.file` */
86
88
  export declare const Downloads: SemanticCallTag[];
@@ -100,12 +102,16 @@ export declare const WithSig: FnSig;
100
102
  export interface StatedSignature {
101
103
  /** the package the definition is for, `base` when it names none */
102
104
  readonly pkg: BrandedNamespace;
103
- /** The formals flowR models, `x, ...`, or `undefined` where it declares none (not R's own declaration). */
105
+ /** The formals flowR models, `x, ...`, or `undefined` where it declares none; R's own where {@link StatedSignature#unverified} is not set. */
104
106
  readonly params?: string;
105
- /** what it does, from {@link CallProps.labels} */
107
+ /** set where R's formals were unknown when the table of them was generated (the package was not installed or exports no such function), so the stated ones stay */
108
+ readonly unverified?: true;
109
+ /** what it does, from {@link CallProps.labels}, `ambient state` for every function declaring an {@link AmbientEffect} */
106
110
  readonly props: readonly string[];
107
111
  /** each formal with what it is used for, from {@link ArgProps.words}; the roles read like the types R has none of */
108
112
  readonly args?: readonly (readonly [name: string, roles: readonly string[]])[];
113
+ /** what it does to the global state, by part and access, see {@link ambientSummaryOf} */
114
+ readonly ambient?: readonly AmbientFamilySummary[];
109
115
  }
110
116
  /** The manual page documenting a base R primitive, for the ones not documented under their own name (a primitive is written in C, so no signature/source/help-topic extractor sees it; `sin` is documented under `Trig`). */
111
117
  export declare const PrimitivesPerTopic: Readonly<Record<string, readonly BrandedIdentifier[]>>;
@@ -116,19 +122,11 @@ export declare function statedSignatureOf(stated: ReadonlyMap<BrandedIdentifier,
116
122
  export declare const RegexConvIn: RegExp;
117
123
  /** Builds a regex from an array of plain names or namespaced {@link Identifier}s, deduplicating by name. */
118
124
  export declare function toRegex(n: readonly Identifier[]): RegExp;
119
- export declare const DeviceClose: string[];
120
- /** `dev.off()` closes the active device, `dev.off(which)` maybe another one */
121
- export declare function closesActiveDevice(target: DataflowGraphVertexInfo): boolean;
122
- /** what ggplot's `last_plot()` is: the last ggplot created or added to */
125
+ /** what ggplot's `last_plot()` is: the last ggplot created or added to, which is no state of the device */
123
126
  export declare const LinkToLastGgPlot: {
124
127
  readonly type: "link-to-last-call";
125
128
  readonly callName: RegExp;
126
129
  };
127
- /** what closing or exporting a device links back to: the plot calls that filled it */
128
- export declare const LinkToLastPlot: {
129
- readonly type: "link-to-last-call";
130
- readonly callName: RegExp;
131
- };
132
130
  /** The internal generics: they dispatch in C rather than through `UseMethod`, so the list has to be written down. */
133
131
  export declare const InternalGenerics: ReadonlySet<BrandedIdentifier>;
134
132
  /** Every name R dispatches on: the generated closure generics plus the {@link InternalGenerics} (no R body, so {@link fnInfoFromSignature} never sees them). */
@@ -137,52 +135,114 @@ export declare const RGenerics: ReadonlySet<BrandedIdentifier>;
137
135
  export declare function markGenerics(definitions: BuiltInDefinitions): BuiltInDefinitions;
138
136
  /** Label every base name R itself provides ({@link RBasePrimitives}, read out of a real R) {@link CallProp.Primitive}. */
139
137
  export declare function markPrimitives(definitions: BuiltInDefinitions): BuiltInDefinitions;
140
- /** Whether the call names a plot function with an `add` parameter ({@link PlotFunctionsWithAddParam}), and if so whether its `add` argument says that it appends to the existing plot, and `undefined` for any other function. */
141
- export declare function appendsToPlot(source: NodeId, graph: DataflowGraph): boolean | undefined;
138
+ /** a base graphics plot, see {@link AmbientStateName.plot} */
139
+ export declare const NewPlot: readonly [{
140
+ readonly family: import("../ambient-effect").AmbientFamilyName;
141
+ readonly access: AmbientVerb.Resets;
142
+ }, {
143
+ readonly family: import("../ambient-effect").AmbientFamilyName;
144
+ readonly access: AmbientVerb.Reads;
145
+ }, {
146
+ readonly family: import("../ambient-effect").AmbientFamilyName;
147
+ readonly access: AmbientVerb.Reads;
148
+ }];
149
+ export declare const AddsToPlot: readonly [{
150
+ readonly family: import("../ambient-effect").AmbientFamilyName;
151
+ readonly access: AmbientVerb.Adds;
152
+ }, {
153
+ readonly family: import("../ambient-effect").AmbientFamilyName;
154
+ readonly access: AmbientVerb.Reads;
155
+ }, {
156
+ readonly family: import("../ambient-effect").AmbientFamilyName;
157
+ readonly access: AmbientVerb.Reads;
158
+ }];
159
+ /** `curve(f, add = TRUE)` adds to the plot, `curve(f)` starts a new one */
160
+ export declare const MayAddToPlot: readonly [{
161
+ readonly when: {
162
+ readonly flag: "add";
163
+ };
164
+ readonly family: import("../ambient-effect").AmbientFamilyName;
165
+ readonly access: AmbientVerb.Adds;
166
+ }, {
167
+ readonly unless: {
168
+ readonly flag: "add";
169
+ };
170
+ readonly family: import("../ambient-effect").AmbientFamilyName;
171
+ readonly access: AmbientVerb.Resets;
172
+ }, {
173
+ readonly family: import("../ambient-effect").AmbientFamilyName;
174
+ readonly access: AmbientVerb.Reads;
175
+ }, {
176
+ readonly family: import("../ambient-effect").AmbientFamilyName;
177
+ readonly access: AmbientVerb.Reads;
178
+ }];
179
+ /** a plot object (`ggplot`, `xyplot`), which draws once printed */
180
+ export declare const BuildsPlot: {
181
+ readonly family: import("../ambient-effect").AmbientFamilyName;
182
+ readonly access: AmbientVerb.Builds;
183
+ };
184
+ /** what queries the coordinates of the plot (`strwidth`): it reads the plot and opens a device if none is open */
185
+ export declare const ReadsPlot: readonly [{
186
+ readonly family: import("../ambient-effect").AmbientFamilyName;
187
+ readonly access: AmbientVerb.Reads;
188
+ }, {
189
+ readonly family: import("../ambient-effect").AmbientFamilyName;
190
+ readonly access: AmbientVerb.Reads;
191
+ }, {
192
+ readonly family: import("../ambient-effect").AmbientFamilyName;
193
+ readonly access: AmbientVerb.Reads;
194
+ }];
142
195
  /** what adding to a plot does */
143
196
  export declare const PlotAddonConfig: {
144
197
  readonly treatAsFnCall: {
145
198
  readonly facet_grid: readonly ["labeller"];
146
199
  };
147
- readonly hasUnknownSideEffects: {
148
- readonly type: "link-to-last-call";
149
- readonly callName: RegExp;
150
- readonly ignoreIf: (source: NodeId, graph: DataflowGraph) => boolean;
151
- readonly cascadeIf: (targetVertex: DataflowGraphVertexInfo, _: NodeId, graph: DataflowGraph) => CascadeAction.Stop | CascadeAction.Continue;
152
- };
200
+ readonly ambient: readonly [{
201
+ readonly family: import("../ambient-effect").AmbientFamilyName;
202
+ readonly access: AmbientVerb.Builds;
203
+ }, {
204
+ readonly family: import("../ambient-effect").AmbientFamilyName;
205
+ readonly access: AmbientVerb.Writes;
206
+ }];
153
207
  readonly tags: SemanticCallTags;
154
208
  readonly sig: FnSig;
155
209
  };
156
210
  /** the devices withr opens for a scope, as `with_<device>` and `local_<device>` */
157
211
  export declare const WithrDevices: readonly ["bmp", "cairo_pdf", "cairo_ps", "jpeg", "pdf", "png", "svg", "tiff", "xfig", "postscript"];
158
- export declare const ReadGraphicsState: {
159
- readonly type: AmbientStateAccessType.ReadGraphics;
160
- };
161
212
  export declare const ReadPrintingOptions: {
162
- readonly type: AmbientStateAccessType.ReadOptions;
163
- readonly keys: readonly string[];
213
+ readonly member: {
214
+ readonly from: "constant";
215
+ readonly keys: readonly string[];
216
+ };
217
+ readonly family: import("../ambient-effect").AmbientFamilyName;
218
+ readonly access: AmbientVerb.Reads;
164
219
  };
165
220
  export declare const PrintDispatched: {
166
- readonly type: AmbientStateAccessType.ReadOptions;
167
- readonly keys: readonly string[];
168
221
  readonly dispatchOn: 0;
222
+ readonly member: {
223
+ readonly from: "constant";
224
+ readonly keys: readonly string[];
225
+ };
226
+ readonly family: import("../ambient-effect").AmbientFamilyName;
227
+ readonly access: AmbientVerb.Reads;
169
228
  };
170
- export declare const OpenDevice: {
171
- readonly type: AmbientStateAccessType.OpenDevice;
229
+ /** what turning a number into text reads */
230
+ export declare const ReadsNumberFormat: {
231
+ readonly member: {
232
+ readonly from: "constant";
233
+ readonly keys: readonly string[];
234
+ };
235
+ readonly family: import("../ambient-effect").AmbientFamilyName;
236
+ readonly access: AmbientVerb.Reads;
172
237
  };
173
- /** the devices that are open, which `dev.cur()` and `dev.list()` report */
174
- export declare const ReadDevices: {
175
- readonly type: AmbientStateAccessType.ReadState;
176
- readonly state: "#device" | "#device:other";
177
- }[];
178
238
  /** sets the entries of an environment variable, a locale or a search path state that the call names with the parameter `name` of the given signature */
179
239
  export declare const SetsEntryNamedBy: (state: KeyedState, signature: readonly string[], name: string, rest?: {
180
240
  readonly fallback?: string;
181
241
  readonly quoted?: boolean | string;
182
242
  }) => {
183
- readonly type: AmbientStateAccessType.SetKeyed;
184
- readonly state: KeyedState;
185
- readonly keys: {
243
+ readonly family: KeyedState;
244
+ readonly access: AmbientVerb.Writes;
245
+ readonly member: {
186
246
  readonly fallback?: string;
187
247
  readonly quoted?: boolean | string;
188
248
  readonly from: "parameter";
@@ -191,18 +251,18 @@ export declare const SetsEntryNamedBy: (state: KeyedState, signature: readonly s
191
251
  };
192
252
  };
193
253
  export declare const SetsEntry: (state: KeyedState, key: string) => {
194
- readonly type: AmbientStateAccessType.SetKeyed;
195
- readonly state: KeyedState;
196
- readonly keys: {
254
+ readonly family: KeyedState;
255
+ readonly access: AmbientVerb.Writes;
256
+ readonly member: {
197
257
  readonly from: "constant";
198
- readonly key: string;
258
+ readonly keys: readonly [string];
199
259
  };
200
260
  };
201
261
  /** `library(pkg)` and `library("pkg")` name the package, `library(pkg, character.only = TRUE)` looks the variable up */
202
262
  export declare const LibrarySearchPath: {
203
- readonly type: AmbientStateAccessType.SetKeyed;
204
- readonly state: KeyedState;
205
- readonly keys: {
263
+ readonly family: KeyedState;
264
+ readonly access: AmbientVerb.Writes;
265
+ readonly member: {
206
266
  readonly fallback?: string;
207
267
  readonly quoted?: boolean | string;
208
268
  readonly from: "parameter";
@@ -211,17 +271,17 @@ export declare const LibrarySearchPath: {
211
271
  };
212
272
  };
213
273
  export declare const LoaderSearchPath: (quoted: boolean) => {
214
- readonly type: AmbientStateAccessType.SetKeyed;
215
- readonly state: KeyedState.SearchPath;
216
- readonly keys: {
274
+ readonly member: {
217
275
  readonly from: "unnamed";
218
276
  readonly quoted: boolean;
219
277
  };
278
+ readonly family: import("../ambient-effect").AmbientFamilyName;
279
+ readonly access: AmbientVerb.Writes;
220
280
  };
221
281
  export declare const DetachSearchPath: readonly [{
222
- readonly type: AmbientStateAccessType.SetKeyed;
223
- readonly state: KeyedState;
224
- readonly keys: {
282
+ readonly access: AmbientVerb.Kills;
283
+ readonly family: KeyedState;
284
+ readonly member: {
225
285
  readonly fallback?: string;
226
286
  readonly quoted?: boolean | string;
227
287
  readonly from: "parameter";
@@ -229,13 +289,13 @@ export declare const DetachSearchPath: readonly [{
229
289
  readonly names: readonly [string];
230
290
  };
231
291
  }, {
232
- readonly type: AmbientStateAccessType.ReadState;
233
- readonly state: AmbientStateName;
292
+ readonly family: import("../ambient-effect").AmbientFamilyName;
293
+ readonly access: AmbientVerb.Reads;
234
294
  }];
235
295
  export declare const ImportSearchPath: {
236
- readonly type: AmbientStateAccessType.SetKeyed;
237
- readonly state: KeyedState;
238
- readonly keys: {
296
+ readonly family: KeyedState;
297
+ readonly access: AmbientVerb.Writes;
298
+ readonly member: {
239
299
  readonly fallback?: string;
240
300
  readonly quoted?: boolean | string;
241
301
  readonly from: "parameter";
@@ -245,23 +305,24 @@ export declare const ImportSearchPath: {
245
305
  };
246
306
  /** `attach(df)` is named `df`, `attach(df, name = "data")` is named `data` */
247
307
  export declare const AttachSearchPath: {
248
- readonly type: AmbientStateAccessType.SetKeyed;
249
- readonly state: KeyedState.SearchPath;
250
- readonly keys: {
308
+ readonly member: {
251
309
  readonly from: "parameter";
252
310
  readonly signature: readonly ["what", "pos", "name", "warn.conflicts"];
253
311
  readonly names: readonly ["name", "what"];
254
312
  readonly quoted: true;
255
313
  };
314
+ readonly family: import("../ambient-effect").AmbientFamilyName;
315
+ readonly access: AmbientVerb.Writes;
256
316
  };
257
317
  /** what creating a plot does; restated by the deprecated plot creators, which do the same but should not be used */
258
318
  export declare const PlotCreateConfig: {
259
- readonly hasUnknownSideEffects: {
260
- readonly type: "link-to-last-call";
261
- readonly ignoreIf: (source: NodeId, graph: DataflowGraph) => boolean;
262
- readonly callName: RegExp;
263
- readonly cascadeIf: (target: DataflowGraphVertexInfo) => CascadeAction.Stop | CascadeAction.Block;
264
- };
319
+ readonly ambient: readonly [{
320
+ readonly family: import("../ambient-effect").AmbientFamilyName;
321
+ readonly access: AmbientVerb.Builds;
322
+ }, {
323
+ readonly family: import("../ambient-effect").AmbientFamilyName;
324
+ readonly access: AmbientVerb.Writes;
325
+ }];
265
326
  readonly tags: SemanticCallTags;
266
327
  readonly sig: FnSig;
267
328
  };