@eagleoutice/flowr 2.16.3 → 2.16.5

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 (148) hide show
  1. package/README.md +14 -14
  2. package/cli/repl/core.js +13 -2
  3. package/cli/repl/parser/slice-query-parser.d.ts +21 -5
  4. package/cli/repl/parser/slice-query-parser.js +33 -13
  5. package/core/steps/all/static-slicing/10-reconstruct.d.ts +2 -2
  6. package/dataflow/environments/built-in.d.ts +2 -0
  7. package/dataflow/environments/built-in.js +10 -2
  8. package/dataflow/environments/data-masking-functions.js +2 -1
  9. package/dataflow/environments/default-builtin-config.d.ts +31 -5
  10. package/dataflow/environments/default-builtin-config.js +12 -15
  11. package/dataflow/environments/query-fn-props.js +2 -1
  12. package/dataflow/eval/resolve/alias-tracking.js +5 -2
  13. package/dataflow/eval/resolve/node-value.js +1 -1
  14. package/dataflow/eval/resolve/resolve-argument.js +2 -0
  15. package/dataflow/eval/resolve/resolve-strings.d.ts +10 -0
  16. package/dataflow/eval/resolve/resolve-strings.js +79 -12
  17. package/dataflow/eval/resolve/resolve.js +2 -6
  18. package/dataflow/extractor.js +11 -4
  19. package/dataflow/graph/applied-arguments.d.ts +5 -0
  20. package/dataflow/graph/applied-arguments.js +17 -0
  21. package/dataflow/graph/df-helper.js +2 -2
  22. package/dataflow/graph/graph.d.ts +5 -0
  23. package/dataflow/graph/graph.js +5 -0
  24. package/dataflow/info.js +8 -1
  25. package/dataflow/internal/linker.js +35 -13
  26. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +9 -1
  27. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +32 -12
  28. package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +8 -1
  29. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +7 -4
  30. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +11 -1
  31. package/dataflow/internal/process/functions/call/named-call-handling.js +4 -2
  32. package/dataflow/internal/process/functions/call/quoted.js +3 -3
  33. package/dataflow/internal/program-order.js +7 -1
  34. package/dataflow/processor.d.ts +2 -0
  35. package/documentation/doc-util/doc-query.d.ts +1 -1
  36. package/documentation/doc-util/doc-query.js +3 -1
  37. package/documentation/doc-util/doc-timings.js +3 -2
  38. package/documentation/doc-util/doc-types.js +4 -0
  39. package/documentation/wiki-create-linting-rules.js +1 -1
  40. package/documentation/wiki-linter.d.ts +14 -0
  41. package/documentation/wiki-linter.js +341 -126
  42. package/linter/linter-executor.js +7 -0
  43. package/linter/linter-rules.d.ts +47 -47
  44. package/linter/rules/absolute-path.d.ts +1 -1
  45. package/linter/rules/absolute-path.js +6 -4
  46. package/linter/rules/cmd-check/call-arguments.d.ts +1 -1
  47. package/linter/rules/cmd-check/call-arguments.js +10 -5
  48. package/linter/rules/cmd-check/compiled-code.d.ts +1 -1
  49. package/linter/rules/cmd-check/compiled-code.js +1 -1
  50. package/linter/rules/cmd-check/conformance.d.ts +5 -1
  51. package/linter/rules/cmd-check/conformance.js +64 -64
  52. package/linter/rules/cmd-check/description-metadata.d.ts +1 -1
  53. package/linter/rules/cmd-check/description-metadata.js +1 -1
  54. package/linter/rules/cmd-check/documentation-mismatch.d.ts +6 -0
  55. package/linter/rules/cmd-check/foreign-function-calls.d.ts +1 -1
  56. package/linter/rules/cmd-check/foreign-function-calls.js +1 -1
  57. package/linter/rules/cmd-check/namespace-tampering.d.ts +1 -1
  58. package/linter/rules/cmd-check/namespace-tampering.js +1 -1
  59. package/linter/rules/cmd-check/non-ascii-code.d.ts +1 -1
  60. package/linter/rules/cmd-check/non-ascii-code.js +1 -1
  61. package/linter/rules/cmd-check/package-data.d.ts +3 -1
  62. package/linter/rules/cmd-check/package-data.js +1 -1
  63. package/linter/rules/cmd-check/package-hooks.d.ts +2 -2
  64. package/linter/rules/cmd-check/package-hooks.js +13 -5
  65. package/linter/rules/cmd-check/package-metafiles.d.ts +1 -1
  66. package/linter/rules/cmd-check/package-metafiles.js +1 -1
  67. package/linter/rules/cmd-check/package-structure.d.ts +1 -1
  68. package/linter/rules/cmd-check/package-structure.js +1 -1
  69. package/linter/rules/cmd-check/rd-files.d.ts +17 -1
  70. package/linter/rules/cmd-check/rd-files.js +1 -1
  71. package/linter/rules/cmd-check/true-false-abbreviation.d.ts +1 -1
  72. package/linter/rules/cmd-check/true-false-abbreviation.js +1 -1
  73. package/linter/rules/dataframe-access-validation.d.ts +1 -1
  74. package/linter/rules/dataframe-access-validation.js +1 -1
  75. package/linter/rules/dead-code.d.ts +4 -4
  76. package/linter/rules/dead-code.js +19 -4
  77. package/linter/rules/deprecated-functions.d.ts +1 -1
  78. package/linter/rules/deprecated-functions.js +1 -1
  79. package/linter/rules/file-path-validity.d.ts +6 -2
  80. package/linter/rules/file-path-validity.js +7 -3
  81. package/linter/rules/namespace-access.d.ts +3 -3
  82. package/linter/rules/namespace-access.js +12 -3
  83. package/linter/rules/naming-convention.d.ts +1 -1
  84. package/linter/rules/naming-convention.js +1 -1
  85. package/linter/rules/network-functions.d.ts +1 -1
  86. package/linter/rules/network-functions.js +1 -1
  87. package/linter/rules/no-leaked-credentials.d.ts +1 -1
  88. package/linter/rules/no-leaked-credentials.js +1 -1
  89. package/linter/rules/problematic-inputs.d.ts +2 -2
  90. package/linter/rules/problematic-inputs.js +4 -4
  91. package/linter/rules/roxygen-arguments.d.ts +2 -2
  92. package/linter/rules/roxygen-arguments.js +2 -2
  93. package/linter/rules/seeded-randomness.d.ts +2 -2
  94. package/linter/rules/seeded-randomness.js +2 -2
  95. package/linter/rules/software-has-license.d.ts +2 -2
  96. package/linter/rules/software-has-license.js +2 -2
  97. package/linter/rules/software-has-tests.d.ts +2 -2
  98. package/linter/rules/software-has-tests.js +2 -2
  99. package/linter/rules/stop-with-call-arg.d.ts +3 -3
  100. package/linter/rules/stop-with-call-arg.js +22 -5
  101. package/linter/rules/syntactically-valid.d.ts +1 -1
  102. package/linter/rules/syntactically-valid.js +1 -1
  103. package/linter/rules/unclosed-connection.d.ts +2 -2
  104. package/linter/rules/unclosed-connection.js +2 -2
  105. package/linter/rules/undefined-symbol.d.ts +1 -1
  106. package/linter/rules/undefined-symbol.js +27 -4
  107. package/linter/rules/unescaped-arguments.d.ts +1 -1
  108. package/linter/rules/unescaped-arguments.js +1 -1
  109. package/linter/rules/unused-definition.d.ts +1 -1
  110. package/linter/rules/unused-definition.js +21 -2
  111. package/linter/rules/unused-import.d.ts +1 -1
  112. package/linter/rules/unused-import.js +1 -1
  113. package/linter/rules/useless-loop.d.ts +1 -1
  114. package/linter/rules/useless-loop.js +1 -1
  115. package/package.json +1 -1
  116. package/project/context/flowr-analyzer-environment-context.d.ts +1 -1
  117. package/project/context/flowr-analyzer-environment-context.js +2 -1
  118. package/project/context/flowr-analyzer-files-context.js +12 -11
  119. package/project/dependency-version-space.js +4 -6
  120. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -0
  121. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +9 -8
  122. package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.js +1 -1
  123. package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.js +1 -1
  124. package/queries/catalog/dependencies-query/data-flow.d.ts +2 -0
  125. package/queries/catalog/dependencies-query/data-flow.js +6 -0
  126. package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -0
  127. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +5 -0
  128. package/queries/catalog/dependencies-query/implicit-echo.js +29 -30
  129. package/queries/catalog/dependencies-query/plot-objects.js +6 -2
  130. package/queries/catalog/dice-query/dice-query-format.d.ts +1 -1
  131. package/queries/catalog/dice-query/dice-query-format.js +1 -1
  132. package/queries/catalog/slice-query-options.d.ts +3 -3
  133. package/queries/catalog/slice-query-options.js +1 -1
  134. package/queries/catalog/static-slice-query/static-slice-query-executor.js +12 -1
  135. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +7 -1
  136. package/queries/catalog/static-slice-query/static-slice-query-format.js +4 -2
  137. package/queries/query.d.ts +2 -2
  138. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +19 -56
  139. package/reconstruct/inline/source-inline-map.d.ts +1 -1
  140. package/reconstruct/inline/source-inline-map.js +5 -3
  141. package/reconstruct/reconstruct.d.ts +8 -1
  142. package/reconstruct/reconstruct.js +12 -3
  143. package/slicing/static/removal-slice.d.ts +19 -0
  144. package/slicing/static/removal-slice.js +165 -0
  145. package/slicing/static/static-slicer.js +10 -5
  146. package/util/text/playground-link.d.ts +24 -1
  147. package/util/text/playground-link.js +16 -1
  148. package/util/version.js +2 -2
@@ -7,7 +7,9 @@ export declare enum PlaygroundBox {
7
7
  /** what the dependency query found */
8
8
  Deps = "deps",
9
9
  /** what the linter found */
10
- Lints = "lints"
10
+ Lints = "lints",
11
+ /** what the DESCRIPTION of the project says */
12
+ Project = "project"
11
13
  }
12
14
  /**
13
15
  * What a link can point at, written the way flowR names a place in a script:
@@ -53,6 +55,22 @@ export interface PlaygroundLinkParts {
53
55
  /** another deployment of the page, for a local build or a fork */
54
56
  readonly base?: string;
55
57
  }
58
+ /**
59
+ * The letter each setting of the view takes in the view field of a link, in the order a link writes them. Links in
60
+ * papers and mails have to open as they were sent: a letter is never reused for something else, only new ones are added.
61
+ */
62
+ declare const ViewFlags: {
63
+ readonly forward: ">";
64
+ readonly removal: "-";
65
+ readonly dim: "d";
66
+ readonly replOpen: "r";
67
+ readonly wholeSlice: "a";
68
+ readonly inline: "i";
69
+ };
70
+ /** how the view of the page was left, as the view field of a link carries it */
71
+ export type PlaygroundView = {
72
+ readonly [Setting in keyof typeof ViewFlags]?: boolean;
73
+ };
56
74
  /**
57
75
  * Everything about flowR's playground that is not the page itself: what a link to it carries, and how
58
76
  * one is written. The page reads back exactly what {@link Playground.link} writes.
@@ -86,6 +104,10 @@ export declare const Playground: {
86
104
  };
87
105
  /** the boxes of the page a mark can point at */
88
106
  Box: typeof PlaygroundBox;
107
+ /** the view field's letters for the settings of `view` that are on */
108
+ viewFlags(this: void, view: PlaygroundView): string;
109
+ /** which settings of the view the letters of a view field turn on */
110
+ readView(this: void, flags: string): Required<PlaygroundView>;
89
111
  /**
90
112
  * The link that opens the playground on exactly this: a script, what it points at, where its cursor
91
113
  * sits, and how the page is laid out.
@@ -127,3 +149,4 @@ export declare const Playground: {
127
149
  /** where a name stands in a line, as a name rather than as a substring of a longer one */
128
150
  nameIndexIn(this: void, text: string, name: string): number | undefined;
129
151
  };
152
+ export {};
@@ -15,6 +15,8 @@ var PlaygroundBox;
15
15
  PlaygroundBox["Deps"] = "deps";
16
16
  /** what the linter found */
17
17
  PlaygroundBox["Lints"] = "lints";
18
+ /** what the DESCRIPTION of the project says */
19
+ PlaygroundBox["Project"] = "project";
18
20
  })(PlaygroundBox || (exports.PlaygroundBox = PlaygroundBox = {}));
19
21
  /** a mark that stands for a place in the script: a line, a range, a column, or a name on a line, in another file with a `(file-regex)` */
20
22
  const CodeMarkPattern = /^\d+(:\d+|-\d+|@.+)?(\(.+\))?$/;
@@ -82,6 +84,11 @@ const Mark = {
82
84
  });
83
85
  }
84
86
  };
87
+ /**
88
+ * The letter each setting of the view takes in the view field of a link, in the order a link writes them. Links in
89
+ * papers and mails have to open as they were sent: a letter is never reused for something else, only new ones are added.
90
+ */
91
+ const ViewFlags = { forward: '>', removal: '-', dim: 'd', replOpen: 'r', wholeSlice: 'a', inline: 'i' };
85
92
  /**
86
93
  * Everything about flowR's playground that is not the page itself: what a link to it carries, and how
87
94
  * one is written. The page reads back exactly what {@link Playground.link} writes.
@@ -101,6 +108,14 @@ exports.Playground = {
101
108
  Mark,
102
109
  /** the boxes of the page a mark can point at */
103
110
  Box: PlaygroundBox,
111
+ /** the view field's letters for the settings of `view` that are on */
112
+ viewFlags(view) {
113
+ return Object.entries(ViewFlags).filter(([setting]) => view[setting]).map(([, letter]) => letter).join('');
114
+ },
115
+ /** which settings of the view the letters of a view field turn on */
116
+ readView(flags) {
117
+ return Object.fromEntries(Object.entries(ViewFlags).map(([setting, letter]) => [setting, flags.includes(letter)]));
118
+ },
104
119
  /**
105
120
  * The link that opens the playground on exactly this: a script, what it points at, where its cursor
106
121
  * sits, and how the page is laid out.
@@ -112,7 +127,7 @@ exports.Playground = {
112
127
  const view = [
113
128
  split === undefined ? '' : String(split),
114
129
  repl === undefined ? '' : String(repl),
115
- `${forward ? '>' : ''}${dim ? 'd' : ''}${replOpen ? 'r' : ''}${wholeSlice ? 'a' : ''}`
130
+ exports.Playground.viewFlags({ forward, dim, replOpen, wholeSlice })
116
131
  ];
117
132
  while (view.length > 0 && view[view.length - 1].length === 0) {
118
133
  view.pop();
package/util/version.js CHANGED
@@ -43,9 +43,9 @@ const sigdb_download_1 = require("../project/sigdb/sigdb-download");
43
43
  const doc_files_1 = require("../documentation/doc-util/doc-files");
44
44
  const strings_1 = require("./text/strings");
45
45
  // this is automatically replaced with the current version by release-it
46
- const version = '2.16.3';
46
+ const version = '2.16.5';
47
47
  // this is automatically replaced with the release date by release-it (scripts/bump-version.ts)
48
- const versionDate = '2026-10-19T07:04:59Z';
48
+ const versionDate = '2026-10-22T17:19:41Z';
49
49
  /**
50
50
  * Retrieves the current flowR version as a new {@link SemVer} object.
51
51
  */