@eagleoutice/flowr 2.17.2 → 2.17.4

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 (106) hide show
  1. package/README.md +9 -9
  2. package/cli/repl/commands/repl-signature.d.ts +1 -1
  3. package/cli/repl/completion.d.ts +23 -0
  4. package/cli/repl/completion.js +9 -0
  5. package/cli/repl/core.d.ts +0 -23
  6. package/cli/repl/core.js +0 -5
  7. package/cli/repl/parser/slice-query-parser.d.ts +1 -1
  8. package/cli/repl/parser/slice-query-parser.js +3 -3
  9. package/data/r-reexports.generated.d.ts +4 -0
  10. package/data/r-reexports.generated.js +43 -0
  11. package/dataflow/environments/built-in-props.d.ts +8 -1
  12. package/dataflow/environments/built-in-props.js +9 -1
  13. package/dataflow/environments/built-in.d.ts +5 -3
  14. package/dataflow/environments/built-in.js +5 -4
  15. package/dataflow/environments/default-builtin-config.d.ts +21 -3
  16. package/dataflow/environments/default-builtin-config.js +49 -47
  17. package/dataflow/eval/resolve/resolve-argument.js +11 -6
  18. package/dataflow/eval/resolve/resolve-numbers.d.ts +1 -178
  19. package/dataflow/eval/resolve/resolve-numbers.js +2 -13
  20. package/dataflow/eval/resolve/resolve-strings.d.ts +1 -93
  21. package/dataflow/eval/resolve/resolve-strings.js +2 -17
  22. package/dataflow/eval/resolve/resolve-working-directory.js +3 -4
  23. package/dataflow/extractor.js +44 -26
  24. package/dataflow/graph/df-helper.d.ts +10 -1
  25. package/dataflow/graph/df-helper.js +27 -3
  26. package/dataflow/internal/linker.js +2 -1
  27. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +8 -0
  28. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +44 -7
  29. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +3 -2
  30. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +9 -6
  31. package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +2 -1
  32. package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +0 -9
  33. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +11 -21
  34. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +3 -3
  35. package/dataflow/internal/process/functions/call/built-in/built-in-with.js +2 -1
  36. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +13 -3
  37. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +15 -5
  38. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +1 -24
  39. package/dataflow/internal/process/functions/call/known-call-handling.js +8 -34
  40. package/dataflow/internal/process/functions/call/nse-kind.d.ts +24 -0
  41. package/dataflow/internal/process/functions/call/nse-kind.js +30 -0
  42. package/documentation/wiki-dataflow-graph.js +7 -2
  43. package/documentation/wiki-query.js +3 -2
  44. package/linter/rules/absolute-path.js +5 -5
  45. package/linter/rules/cmd-check/dependency-declaration.js +2 -2
  46. package/linter/rules/cmd-check/package-runtime.js +2 -2
  47. package/linter/rules/deprecated-functions.js +2 -2
  48. package/linter/rules/file-path-validity.js +5 -5
  49. package/linter/rules/function-finder-util.js +2 -2
  50. package/linter/rules/overwritten-file.js +2 -4
  51. package/linter/rules/secret-exfiltration.d.ts +3 -2
  52. package/linter/rules/secret-exfiltration.js +8 -3
  53. package/linter/rules/unused-import.js +20 -6
  54. package/package.json +1 -1
  55. package/project/cache/flowr-analyzer-controlflow-cache.d.ts +0 -6
  56. package/project/cache/flowr-analyzer-controlflow-cache.js +7 -27
  57. package/project/context/flowr-analyzer-context.d.ts +2 -2
  58. package/project/context/flowr-analyzer-context.js +2 -2
  59. package/project/context/flowr-analyzer-files-context.d.ts +8 -0
  60. package/project/context/flowr-analyzer-files-context.js +51 -6
  61. package/project/flowr-analyzer.d.ts +0 -9
  62. package/project/flowr-analyzer.js +7 -28
  63. package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +5 -3
  64. package/project/plugins/file-plugins/files/flowr-namespace-file.js +70 -163
  65. package/project/plugins/file-plugins/flowr-analyzer-file-plugin.d.ts +2 -3
  66. package/project/plugins/file-plugins/flowr-analyzer-file-plugin.js +2 -3
  67. package/project/plugins/file-plugins/flowr-analyzer-rprofile-file-plugin.js +3 -3
  68. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +2 -2
  69. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-namespace-file-plugin.js +1 -2
  70. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +1 -1
  71. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +25 -3
  72. package/project/plugins/package-version-plugins/package.js +1 -1
  73. package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +2 -3
  74. package/project/sigdb/build.js +7 -6
  75. package/project/sigdb/decode.d.ts +2 -0
  76. package/project/sigdb/decode.js +9 -3
  77. package/project/sigdb/schema.d.ts +8 -3
  78. package/queries/catalog/absint-query/absint-query-format.d.ts +1 -1
  79. package/queries/catalog/config-query/config-query-format.d.ts +1 -1
  80. package/queries/catalog/config-query/config-query-format.js +4 -4
  81. package/queries/catalog/dependencies-query/dependencies-query-executor.js +6 -5
  82. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +1 -4
  83. package/queries/catalog/dependencies-query/dependencies-query-format.js +11 -11
  84. package/queries/catalog/dependencies-query/dependency-values.d.ts +9 -0
  85. package/queries/catalog/dependencies-query/dependency-values.js +13 -0
  86. package/queries/catalog/dependencies-query/function-info/remote-functions.js +2 -2
  87. package/queries/catalog/dependencies-query/function-info/write-functions.js +8 -7
  88. package/queries/catalog/dependencies-query/implicit-echo.js +2 -1
  89. package/queries/catalog/dependencies-query/plot-description.d.ts +1 -1
  90. package/queries/catalog/dependencies-query/plot-description.js +2 -2
  91. package/queries/catalog/dice-query/dice-query-format.d.ts +1 -1
  92. package/queries/catalog/files-query/files-query-format.d.ts +1 -1
  93. package/queries/catalog/linter-query/linter-query-format.d.ts +2 -2
  94. package/queries/catalog/linter-query/linter-query-format.js +13 -9
  95. package/queries/catalog/signature-query/signature-query-executor.d.ts +1 -1
  96. package/queries/catalog/taint-query/taint-query-format.d.ts +1 -1
  97. package/queries/query-function-filter.d.ts +1 -1
  98. package/queries/query.d.ts +2 -2
  99. package/r-bridge/init.js +1 -1
  100. package/search/flowr-search-filters.js +2 -2
  101. package/search/search-executor/search-generators.d.ts +0 -1
  102. package/search/search-executor/search-generators.js +5 -6
  103. package/search/search-logger.d.ts +1 -0
  104. package/search/search-logger.js +6 -0
  105. package/util/flowr-version.d.ts +1 -1
  106. package/util/flowr-version.js +2 -2
@@ -2,7 +2,7 @@ import type { BasicQueryData } from '../../base-query-format';
2
2
  import type { SignatureQuery, SignatureQueryResult, SignaturePackageView, SignatureFunctionView } from './signature-query-format';
3
3
  import { type PackageSignatureSource } from '../../../project/sigdb/reader';
4
4
  import type { REnvironmentInformation } from '../../../dataflow/environments/environment';
5
- import type { CommandCompletions } from '../../../cli/repl/core';
5
+ import type { CommandCompletions } from '../../../cli/repl/completion';
6
6
  import { cranMirrorSourceUrl, cranPageUrl, rSourceRef, rSourceUrl } from '../../../util/r-package-urls';
7
7
  export { cranMirrorSourceUrl, cranPageUrl, rSourceRef, rSourceUrl };
8
8
  /**
@@ -5,7 +5,7 @@ import type { ParsedQueryLine } from '../../query';
5
5
  import Joi from 'joi';
6
6
  import { executeTaintQuery } from './taint-query-executor';
7
7
  import type { AnyPredefinedTaintAnalysisName } from '../../../taint-analysis/predefined/predefined';
8
- import type { CommandCompletions } from '../../../cli/repl/core';
8
+ import type { CommandCompletions } from '../../../cli/repl/completion';
9
9
  import type { TaintInferenceResult } from '../../../taint-analysis/builder/taint-analysis';
10
10
  export interface TaintQuery extends BaseQueryFormat {
11
11
  readonly type: 'taint';
@@ -27,7 +27,7 @@ export declare const QueryFunctionFilter: {
27
27
  /** The call graph together with the functions the given queries want to inspect. */
28
28
  readonly inCallGraph: (this: void, queries: readonly FunctionFilteringQuery[], analyzer: ReadonlyFlowrAnalysisProvider, onlyDefinitions?: boolean) => Promise<{
29
29
  cg: import("../dataflow/graph/call-graph").CallGraph;
30
- fns: IteratorObject<[NodeId, Required<import("../dataflow/graph/vertex").DataflowGraphVertexFunctionDefinition | import("../dataflow/graph/vertex").DataflowGraphVertexFunctionCall>], undefined, unknown>;
30
+ fns: IteratorObject<[NodeId, Required<import("../dataflow/graph/vertex").DataflowGraphVertexFunctionCall | import("../dataflow/graph/vertex").DataflowGraphVertexFunctionDefinition>], undefined, unknown>;
31
31
  }>;
32
32
  };
33
33
  export {};
@@ -27,7 +27,7 @@ import type { FlowrConfig } from '../config';
27
27
  import { type InspectHigherOrderQuery } from './catalog/inspect-higher-order-query/inspect-higher-order-query-format';
28
28
  import type { ReadonlyFlowrAnalysisProvider } from '../project/flowr-analyzer';
29
29
  import type { ReplOutput } from '../cli/repl/commands/repl-main';
30
- import type { CommandCompletions } from '../cli/repl/core';
30
+ import type { CommandCompletions } from '../cli/repl/completion';
31
31
  import type { FilesQuery } from './catalog/files-query/files-query-format';
32
32
  import type { CallGraphQuery } from './catalog/call-graph-query/call-graph-query-format';
33
33
  import type { InspectRecursionQuery } from './catalog/inspect-recursion-query/inspect-recursion-query-format';
@@ -329,7 +329,7 @@ export declare const SupportedQueries: {
329
329
  readonly completer: (line: readonly string[], startingNewArg: boolean, _config: FlowrConfig) => CommandCompletions;
330
330
  readonly fromLine: (output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"linter">;
331
331
  readonly syntax: "@linter [rules:<r1>,<r2>,...] [tags:<t1>,...] [format:<fmt>] <code | file://path>";
332
- readonly schema: Joi.ObjectSchema<any>;
332
+ readonly schema: Joi.ObjectSchema;
333
333
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult, _queries: readonly Query[], certainty: LintingResultCertainty | undefined) => ((string & {
334
334
  __brand?: "node-id";
335
335
  }) | (number & {
package/r-bridge/init.js CHANGED
@@ -22,7 +22,7 @@ function initCommand(eol, pipeBind = false) {
22
22
  + (pipeBind ? 'Sys.setenv("_R_USE_PIPEBIND_"="true");' : '')
23
23
  + 'flowr_output<-NULL;flowr_get_ast<-compiler::cmpfun(function(...){tryCatch({'
24
24
  /* the actual code to parse the R code, ... allows us to keep the old 'file=path' and 'text=content' semantics. we define flowr_output using the super assignment to persist it in the env! */
25
- + 'flowr_output<<-getParseData(parse(...,keep.source=TRUE),includeText=TRUE);'
25
+ + 'flowr_output<<-utils::getParseData(parse(...,keep.source=TRUE),includeText=TRUE);'
26
26
  /* json conversion of the output, dataframe="values" allows us to receive a list of lists (which is more compact)!
27
27
  * so we do not depend on jsonlite and friends, we do so manually (:sparkles:)
28
28
  */
@@ -9,7 +9,7 @@ const type_1 = require("../r-bridge/lang-4.x/ast/model/type");
9
9
  const vertex_1 = require("../dataflow/graph/vertex");
10
10
  const search_enrichers_1 = require("./search-executor/search-enrichers");
11
11
  const objects_1 = require("../util/objects");
12
- const search_generators_1 = require("./search-executor/search-generators");
12
+ const search_logger_1 = require("./search-logger");
13
13
  const query_fn_props_1 = require("../dataflow/environments/query-fn-props");
14
14
  const r_argument_1 = require("../r-bridge/lang-4.x/ast/model/nodes/r-argument");
15
15
  var FlowrFilter;
@@ -56,7 +56,7 @@ exports.FlowrFilters = {
56
56
  }),
57
57
  [FlowrFilter.MatchesEnrichment]: ((e, args) => {
58
58
  const content = (0, search_enrichers_1.enrichmentContent)(e, args.enrichment);
59
- return content && (0, objects_1.looselyCompareObjects)(content, args.test, args.arrayMatch, search_generators_1.searchLogger);
59
+ return content && (0, objects_1.looselyCompareObjects)(content, args.test, args.arrayMatch, search_logger_1.searchLogger);
60
60
  }),
61
61
  [FlowrFilter.OriginKind]: ((e, args, data) => {
62
62
  const dfgNode = data.dataflow.graph.getVertex(e.node.info.id);
@@ -6,7 +6,6 @@ import { type Query } from '../../queries/query';
6
6
  import type { LintingResultCertainty } from '../../linter/linter-format';
7
7
  import type { ReadonlyFlowrAnalysisProvider } from '../../project/flowr-analyzer';
8
8
  import type TreeSitter from 'web-tree-sitter';
9
- export declare const searchLogger: import("tslog").Logger<import("tslog").ILogObj>;
10
9
  /**
11
10
  * This is a union of all possible generator node types
12
11
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generators = exports.searchLogger = void 0;
3
+ exports.generators = void 0;
4
4
  exports.getGenerator = getGenerator;
5
5
  const flowr_search_1 = require("../flowr-search");
6
6
  const parse_1 = require("../../slicing/criterion/parse");
@@ -9,9 +9,8 @@ const assert_1 = require("../../util/assert");
9
9
  const range_1 = require("../../util/range");
10
10
  const query_1 = require("../../queries/query");
11
11
  const search_enrichers_1 = require("./search-enrichers");
12
- const log_1 = require("../../util/log");
12
+ const search_logger_1 = require("../search-logger");
13
13
  const r_project_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-project");
14
- exports.searchLogger = log_1.log.getSubLogger({ name: 'search' });
15
14
  /**
16
15
  * All supported generators!
17
16
  */
@@ -124,7 +123,7 @@ async function generateSyntax(input, args) {
124
123
  const result = await info.treeSitterQuery(args.source);
125
124
  const relevant = result.filter(c => captures.has(c.name));
126
125
  if (!relevant.length) {
127
- exports.searchLogger.debug(`empty tree-sitter query result for query ${JSON.stringify(args)}`);
126
+ search_logger_1.searchLogger.debug(`empty tree-sitter query result for query ${JSON.stringify(args)}`);
128
127
  return new flowr_search_1.FlowrSearchElements([]);
129
128
  }
130
129
  const nodesByTreeSitterId = new Map();
@@ -134,7 +133,7 @@ async function generateSyntax(input, args) {
134
133
  nodesByTreeSitterId.set(treeSitterInfo.tsId, node);
135
134
  }
136
135
  else {
137
- exports.searchLogger.debug(`normalized ast node ${node.lexeme} with type ${node.type} does not have a tree-sitter id`);
136
+ search_logger_1.searchLogger.debug(`normalized ast node ${node.lexeme} with type ${node.type} does not have a tree-sitter id`);
138
137
  }
139
138
  });
140
139
  const ret = [];
@@ -144,7 +143,7 @@ async function generateSyntax(input, args) {
144
143
  ret.push({ node });
145
144
  }
146
145
  else {
147
- exports.searchLogger.debug(`tree-sitter node ${capture.node.id} with type ${capture.node.type} does not have a corresponding normalized ast node`);
146
+ search_logger_1.searchLogger.debug(`tree-sitter node ${capture.node.id} with type ${capture.node.type} does not have a corresponding normalized ast node`);
148
147
  }
149
148
  }
150
149
  return new flowr_search_1.FlowrSearchElements(ret);
@@ -0,0 +1 @@
1
+ export declare const searchLogger: import("tslog").Logger<import("tslog").ILogObj>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchLogger = void 0;
4
+ const log_1 = require("../util/log");
5
+ exports.searchLogger = log_1.log.getSubLogger({ name: 'search' });
6
+ //# sourceMappingURL=search-logger.js.map
@@ -3,7 +3,7 @@
3
3
  * @module
4
4
  */
5
5
  import { SemVer } from 'semver';
6
- export declare const versionDate = "2026-11-05T14:04:12Z";
6
+ export declare const versionDate = "2026-11-07T10:53:43Z";
7
7
  /**
8
8
  * Retrieves the current flowR version as a new {@link SemVer} object.
9
9
  */
@@ -8,9 +8,9 @@ exports.flowrVersion = flowrVersion;
8
8
  */
9
9
  const semver_1 = require("semver");
10
10
  // this is automatically replaced with the current version by release-it
11
- const version = '2.17.2';
11
+ const version = '2.17.4';
12
12
  // this is automatically replaced with the release date by release-it (scripts/bump-version.ts)
13
- exports.versionDate = '2026-11-05T14:04:12Z';
13
+ exports.versionDate = '2026-11-07T10:53:43Z';
14
14
  /**
15
15
  * Retrieves the current flowR version as a new {@link SemVer} object.
16
16
  */