sfscanner 0.2.0 → 0.2.1

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 (55) hide show
  1. package/README.md +13 -3
  2. package/THIRD_PARTY_NOTICES.md +385 -48
  3. package/dist/_types/contracts/preflight-prerequisite-types.d.ts +73 -0
  4. package/dist/_types/packages/scanner-cli/src/index.d.ts +6 -0
  5. package/dist/_types/packages/scanner-cli/src/v2/arguments.d.ts +102 -0
  6. package/dist/_types/packages/scanner-cli/src/v2/cli-runner.d.ts +22 -0
  7. package/dist/{v2 → _types/packages/scanner-cli/src/v2}/commands.d.ts +6 -2
  8. package/dist/{v2 → _types/packages/scanner-cli/src/v2}/contracts.d.ts +34 -7
  9. package/dist/_types/packages/scanner-cli/src/v2/help.d.ts +64 -0
  10. package/dist/_types/packages/scanner-cli/src/v2/metadata-output.d.ts +37 -0
  11. package/dist/_types/packages/scanner-cli/src/v2/preflight-readiness.d.ts +108 -0
  12. package/dist/_types/packages/scanner-cli/src/v2/privacy-prepare.d.ts +39 -0
  13. package/dist/index.d.ts +1 -4
  14. package/dist/index.js +17285 -1922
  15. package/dist/index.js.map +4 -4
  16. package/dist/main.js +25308 -8016
  17. package/dist/main.js.map +4 -4
  18. package/dist/mcp.js +16987 -1870
  19. package/dist/mcp.js.map +4 -4
  20. package/dist/scan-worker.js +20064 -3162
  21. package/dist/scan-worker.js.map +4 -4
  22. package/dist/v2/arguments.d.ts +1 -87
  23. package/dist/v2/arguments.js +96 -6
  24. package/dist/v2/arguments.js.map +2 -2
  25. package/dist/v2/cli-runner.d.ts +1 -22
  26. package/dist/v2/cli-runner.js +16813 -1772
  27. package/dist/v2/cli-runner.js.map +4 -4
  28. package/dist/v2/help.d.ts +1 -33
  29. package/dist/v2/help.js +28 -7
  30. package/dist/v2/help.js.map +2 -2
  31. package/dist/v2/metadata-output.d.ts +1 -37
  32. package/dist/v2/metadata-output.js +15405 -1469
  33. package/dist/v2/metadata-output.js.map +4 -4
  34. package/dist/v2/preflight-readiness.d.ts +1 -0
  35. package/dist/v2/preflight-readiness.js +447 -0
  36. package/dist/v2/preflight-readiness.js.map +7 -0
  37. package/dist/v2/privacy-prepare.d.ts +1 -0
  38. package/dist/v2/privacy-prepare.js +232 -0
  39. package/dist/v2/privacy-prepare.js.map +7 -0
  40. package/package.json +12 -4
  41. package/dist/v2/atomic-output.d.ts +0 -34
  42. package/dist/v2/batch-runner.d.ts +0 -50
  43. package/dist/v2/cli-runner-internal.d.ts +0 -28
  44. package/dist/v2/config.d.ts +0 -16
  45. package/dist/v2/exit-reducer.d.ts +0 -23
  46. package/dist/v2/input-read.d.ts +0 -26
  47. package/dist/v2/input-selection.d.ts +0 -38
  48. package/dist/v2/json-output.d.ts +0 -97
  49. package/dist/v2/metadata-validation.d.ts +0 -4
  50. package/dist/v2/ndjson-output.d.ts +0 -3
  51. package/dist/v2/path-admission.d.ts +0 -8
  52. package/dist/v2/scan-config-load.d.ts +0 -21
  53. package/dist/v2/scan-worker-host.d.ts +0 -29
  54. package/dist/v2/table-output.d.ts +0 -2
  55. package/dist/v2/worker-host.d.ts +0 -24
package/README.md CHANGED
@@ -2,15 +2,16 @@
2
2
 
3
3
  **Deterministic, offline security scanning for n8n workflows** — JSON, NDJSON, a table, or SARIF 2.1.0. The workflow never leaves your machine.
4
4
 
5
- > **Licensing:** MIT for this package's code and scanner tooling. The catalogue dataset has separate Personal / Non-Commercial terms; see https://github.com/jitwark/n8n-Secureflow/blob/main/docs/LICENSING.md.
5
+ > **Licensing:** MIT for this package's code and scanner tooling. The catalogue dataset has separate Personal / Non-Commercial terms; see https://github.com/jitwark/sfscanner/blob/main/docs/LICENSING.md.
6
6
 
7
+ > Release candidate: the supported profile is `beta-default`; experimental hardened analysis is not publicly admitted. Supply-chain opt-in reports canonical advisory state and unknown coverage when no snapshot is admitted. See the [CLI guide](https://github.com/jitwark/sfscanner/blob/main/docs/scanner/cli-v2.md) for supported contracts and limits.
7
8
  ```bash
8
9
  npx sfscanner scan my-workflow.json
9
10
  ```
10
11
 
11
12
  > This package is the scanner. The workflow **catalogue** — 11,464 public n8n workflows, their
12
13
  > provenance and how much of each one the scanner could actually read — lives on the website:
13
- > <https://n8n-enterprise-1.web.app>.
14
+ > <https://jitwark.github.io/sfscanner/>.
14
15
 
15
16
  ---
16
17
 
@@ -61,6 +62,12 @@ so, and selecting it fails instead of silently running something weaker.
61
62
  Formats: `json` (default), `ndjson`, `sarif`, `table`. SARIF is 2.1.0 with CWE tags, so GitHub,
62
63
  GitLab and VS Code can read it directly.
63
64
 
65
+ Every one of these is a first-class surface, and none is deprecated: the JSON result, NDJSON
66
+ streaming, SARIF 2.1.0 and the table stay supported for the scanner, while the published dataset
67
+ bundle keeps its NDJSON shards, SQLite database and Excel workbook. Removing a format needs usage or
68
+ cost evidence, an owner decision, migration or export access and explicit documentation — a research
69
+ note is not enough. See [Preflight and handover](../../docs/scanner/preflight-handover.md#preserved-product-formats).
70
+
64
71
  | Exit | Meaning |
65
72
  | :---: | --- |
66
73
  | `0` | Clean — nothing met the `--fail-on` threshold. |
@@ -73,6 +80,8 @@ GitLab and VS Code can read it directly.
73
80
  `--fail-on <CRITICAL|HIGH|MEDIUM|LOW|INFO>` (Default: `INFO`). `--schema v2` is required for
74
81
  directory scans, `--output` and `--fail-on`; without it those are usage errors by design.
75
82
 
83
+ Optional readiness assessment: `--include-readiness` (default `false`) extends `json`, `ndjson`, or `table` output with offline preflight checks (completeness status, declared credentials, integrations, and subworkflows). SARIF format combined with `--include-readiness` is rejected.
84
+
76
85
  ---
77
86
 
78
87
  ## 🤖 MCP server
@@ -115,6 +124,7 @@ Invalid arguments answer JSON-RPC `-32602` without running a scan.
115
124
 
116
125
  - [`docs/scanner/cli-v2.md`](../../docs/scanner/cli-v2.md) — v2 admission rules and Windows example
117
126
  - [`docs/scanner/limitations.md`](../../docs/scanner/limitations.md) — what the scanner does not do
127
+ - [`docs/scanner/preflight-handover.md`](../../docs/scanner/preflight-handover.md) — offline preflight and handover: prerequisite and target checks, opt-in privacy preparation, preserved output formats, bounded catalogue expansion
118
128
  - [`docs/scanner/rule-reference.md`](../../docs/scanner/rule-reference.md) — every rule and remediation
119
129
  - [`docs/scanner/migration-v1-v2.md`](../../docs/scanner/migration-v1-v2.md) — v1 remains supported
120
130
  - [`docs/LICENSING.md`](../../docs/LICENSING.md) — licence terms
@@ -126,6 +136,6 @@ v1 (`sfscanner scan file.json`) still works for one input with the `beta-default
126
136
  ## ⚖️ Licence
127
137
 
128
138
  MIT for this package's code and scanner tooling. The catalogue dataset has separate Personal /
129
- Non-Commercial terms; see https://github.com/jitwark/n8n-Secureflow/blob/main/docs/LICENSING.md.
139
+ Non-Commercial terms; see https://github.com/jitwark/sfscanner/blob/main/docs/LICENSING.md.
130
140
  The dataset is not shipped in this package. A finding tells you what to read before importing a
131
141
  workflow; it does not make one safe.
@@ -1,48 +1,385 @@
1
- # Third-party notices
2
-
3
- This package ships a built CLI bundle plus its own documentation. The package's own code is licensed
4
- under [`LICENSE`](LICENSE) (MIT). No workflow corpus, private repository data, or runtime network
5
- client is included in this package.
6
-
7
- The classification below is derived from the packed artifact, not from declared intent: a module
8
- counts as shipped only when the bundle's shipped `dist/*.js.map` sources name it. The same split is
9
- machine-readable in `outputs/distribution/scanner-sbom.cyclonedx.json`
10
- (`scope` plus the `sfscanner:observed-in-packed-artifact` property).
11
-
12
- ## Inlined in the packed bundle
13
-
14
- | Component | Version | License |
15
- | --- | --- | --- |
16
- | `@humanwhocodes/momoa` | 3.3.10 | Apache-2.0 |
17
- | `@noble/hashes` | 2.3.0 | MIT |
18
- | `@hub/contracts` | 0.1.0 | MIT — this project's workspace package |
19
- | `@hub/scanner-core` | 0.1.0 | MIT — this project's workspace package |
20
-
21
- `@hub/contracts` and `@hub/scanner-core` are this project's own MIT-licensed workspace packages. Their
22
- code is compiled into `dist/main.js` and `dist/mcp.js`; they are not runtime package dependencies.
23
-
24
- ## Declared runtime dependencies this build does not ship
25
-
26
- These packages are installed as runtime dependencies of `@hub/scanner-core` and are imported by its
27
- optional code-analysis modules, but they are unreachable from this CLI's admitted profile
28
- (`beta-default` only, `packages/scanner-cli/src/v2/commands.ts`), so they are tree-shaken out of the
29
- packed bundle. They are listed because their absence is a verified property of this artifact: the
30
- string `acorn` / `@lezer` occurs zero times anywhere under `packages/scanner-cli/dist`, and the
31
- shipped source maps name none of their modules.
32
-
33
- | Component | Version | License |
34
- | --- | --- | --- |
35
- | `acorn` | 8.17.0 | MIT |
36
- | `@lezer/common` | 1.5.2 | MIT |
37
- | `@lezer/highlight` | 1.2.3 | MIT |
38
- | `@lezer/lr` | 1.4.10 | MIT |
39
- | `@lezer/python` | 1.1.19 | MIT |
40
-
41
- The scanner package's build/test-only tooling (`esbuild`, `typescript`, `vitest`, `@types/node` and
42
- their transitive dependencies) is likewise absent from the packed artifact and carries no notice
43
- obligation for it.
44
-
45
- This is a prepared dependency inventory, not a claim that the release's notice obligations are
46
- complete. A release owner must reconcile these versions against the exact lockfile, attach the
47
- verbatim upstream license texts, and complete the legal review (`PENDING_OWNER`). This package is
48
- published on npm as `sfscanner`.
1
+ # Third-party notices
2
+
3
+ SecureFlow Scanner is MIT licensed; its license is included in `LICENSE`.
4
+ The following modules are compiled into the current CLI distribution. Versions below
5
+ match the lockfile and installed dependency manifests. The bundled JavaScript source
6
+ maps and the generated CycloneDX SBOM identify the final artifact's observed module set;
7
+ reconcile those against this inventory when cutting a release.
8
+
9
+ | Component | Version | License |
10
+ | --- | --- | --- |
11
+ | `@humanwhocodes/momoa` | 3.3.10 | Apache-2.0 |
12
+ | `@noble/hashes` | 2.4.0 | MIT |
13
+ | `acorn` | 8.17.0 | MIT |
14
+ | `@lezer/common` | 1.5.2 | MIT |
15
+ | `@lezer/highlight` | 1.2.3 | MIT |
16
+ | `@lezer/lr` | 1.4.10 | MIT |
17
+ | `@lezer/python` | 1.1.19 | MIT |
18
+ | `@hub/contracts` | 0.1.0 | MIT (this project's workspace) |
19
+ | `@hub/scanner-core` | 0.1.0 | MIT (this project's workspace) |
20
+
21
+ The workspace modules use this package's MIT license. Third-party license texts
22
+ follow verbatim. Development tooling is not included unless its modules appear
23
+ in the shipped artifact. No workflow corpus is included in this npm package.
24
+
25
+ ## @humanwhocodes/momoa 3.3.10
26
+
27
+ ```text
28
+ Apache License
29
+ Version 2.0, January 2004
30
+ http://www.apache.org/licenses/
31
+
32
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
33
+
34
+ 1. Definitions.
35
+
36
+ "License" shall mean the terms and conditions for use, reproduction,
37
+ and distribution as defined by Sections 1 through 9 of this document.
38
+
39
+ "Licensor" shall mean the copyright owner or entity authorized by
40
+ the copyright owner that is granting the License.
41
+
42
+ "Legal Entity" shall mean the union of the acting entity and all
43
+ other entities that control, are controlled by, or are under common
44
+ control with that entity. For the purposes of this definition,
45
+ "control" means (i) the power, direct or indirect, to cause the
46
+ direction or management of such entity, whether by contract or
47
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
48
+ outstanding shares, or (iii) beneficial ownership of such entity.
49
+
50
+ "You" (or "Your") shall mean an individual or Legal Entity
51
+ exercising permissions granted by this License.
52
+
53
+ "Source" form shall mean the preferred form for making modifications,
54
+ including but not limited to software source code, documentation
55
+ source, and configuration files.
56
+
57
+ "Object" form shall mean any form resulting from mechanical
58
+ transformation or translation of a Source form, including but
59
+ not limited to compiled object code, generated documentation,
60
+ and conversions to other media types.
61
+
62
+ "Work" shall mean the work of authorship, whether in Source or
63
+ Object form, made available under the License, as indicated by a
64
+ copyright notice that is included in or attached to the work
65
+ (an example is provided in the Appendix below).
66
+
67
+ "Derivative Works" shall mean any work, whether in Source or Object
68
+ form, that is based on (or derived from) the Work and for which the
69
+ editorial revisions, annotations, elaborations, or other modifications
70
+ represent, as a whole, an original work of authorship. For the purposes
71
+ of this License, Derivative Works shall not include works that remain
72
+ separable from, or merely link (or bind by name) to the interfaces of,
73
+ the Work and Derivative Works thereof.
74
+
75
+ "Contribution" shall mean any work of authorship, including
76
+ the original version of the Work and any modifications or additions
77
+ to that Work or Derivative Works thereof, that is intentionally
78
+ submitted to Licensor for inclusion in the Work by the copyright owner
79
+ or by an individual or Legal Entity authorized to submit on behalf of
80
+ the copyright owner. For the purposes of this definition, "submitted"
81
+ means any form of electronic, verbal, or written communication sent
82
+ to the Licensor or its representatives, including but not limited to
83
+ communication on electronic mailing lists, source code control systems,
84
+ and issue tracking systems that are managed by, or on behalf of, the
85
+ Licensor for the purpose of discussing and improving the Work, but
86
+ excluding communication that is conspicuously marked or otherwise
87
+ designated in writing by the copyright owner as "Not a Contribution."
88
+
89
+ "Contributor" shall mean Licensor and any individual or Legal Entity
90
+ on behalf of whom a Contribution has been received by Licensor and
91
+ subsequently incorporated within the Work.
92
+
93
+ 2. Grant of Copyright License. Subject to the terms and conditions of
94
+ this License, each Contributor hereby grants to You a perpetual,
95
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
96
+ copyright license to reproduce, prepare Derivative Works of,
97
+ publicly display, publicly perform, sublicense, and distribute the
98
+ Work and such Derivative Works in Source or Object form.
99
+
100
+ 3. Grant of Patent License. Subject to the terms and conditions of
101
+ this License, each Contributor hereby grants to You a perpetual,
102
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
103
+ (except as stated in this section) patent license to make, have made,
104
+ use, offer to sell, sell, import, and otherwise transfer the Work,
105
+ where such license applies only to those patent claims licensable
106
+ by such Contributor that are necessarily infringed by their
107
+ Contribution(s) alone or by combination of their Contribution(s)
108
+ with the Work to which such Contribution(s) was submitted. If You
109
+ institute patent litigation against any entity (including a
110
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
111
+ or a Contribution incorporated within the Work constitutes direct
112
+ or contributory patent infringement, then any patent licenses
113
+ granted to You under this License for that Work shall terminate
114
+ as of the date such litigation is filed.
115
+
116
+ 4. Redistribution. You may reproduce and distribute copies of the
117
+ Work or Derivative Works thereof in any medium, with or without
118
+ modifications, and in Source or Object form, provided that You
119
+ meet the following conditions:
120
+
121
+ (a) You must give any other recipients of the Work or
122
+ Derivative Works a copy of this License; and
123
+
124
+ (b) You must cause any modified files to carry prominent notices
125
+ stating that You changed the files; and
126
+
127
+ (c) You must retain, in the Source form of any Derivative Works
128
+ that You distribute, all copyright, patent, trademark, and
129
+ attribution notices from the Source form of the Work,
130
+ excluding those notices that do not pertain to any part of
131
+ the Derivative Works; and
132
+
133
+ (d) If the Work includes a "NOTICE" text file as part of its
134
+ distribution, then any Derivative Works that You distribute must
135
+ include a readable copy of the attribution notices contained
136
+ within such NOTICE file, excluding those notices that do not
137
+ pertain to any part of the Derivative Works, in at least one
138
+ of the following places: within a NOTICE text file distributed
139
+ as part of the Derivative Works; within the Source form or
140
+ documentation, if provided along with the Derivative Works; or,
141
+ within a display generated by the Derivative Works, if and
142
+ wherever such third-party notices normally appear. The contents
143
+ of the NOTICE file are for informational purposes only and
144
+ do not modify the License. You may add Your own attribution
145
+ notices within Derivative Works that You distribute, alongside
146
+ or as an addendum to the NOTICE text from the Work, provided
147
+ that such additional attribution notices cannot be construed
148
+ as modifying the License.
149
+
150
+ You may add Your own copyright statement to Your modifications and
151
+ may provide additional or different license terms and conditions
152
+ for use, reproduction, or distribution of Your modifications, or
153
+ for any such Derivative Works as a whole, provided Your use,
154
+ reproduction, and distribution of the Work otherwise complies with
155
+ the conditions stated in this License.
156
+
157
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
158
+ any Contribution intentionally submitted for inclusion in the Work
159
+ by You to the Licensor shall be under the terms and conditions of
160
+ this License, without any additional terms or conditions.
161
+ Notwithstanding the above, nothing herein shall supersede or modify
162
+ the terms of any separate license agreement you may have executed
163
+ with Licensor regarding such Contributions.
164
+
165
+ 6. Trademarks. This License does not grant permission to use the trade
166
+ names, trademarks, service marks, or product names of the Licensor,
167
+ except as required for reasonable and customary use in describing the
168
+ origin of the Work and reproducing the content of the NOTICE file.
169
+
170
+ 7. Disclaimer of Warranty. Unless required by applicable law or
171
+ agreed to in writing, Licensor provides the Work (and each
172
+ Contributor provides its Contributions) on an "AS IS" BASIS,
173
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
174
+ implied, including, without limitation, any warranties or conditions
175
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
176
+ PARTICULAR PURPOSE. You are solely responsible for determining the
177
+ appropriateness of using or redistributing the Work and assume any
178
+ risks associated with Your exercise of permissions under this License.
179
+
180
+ 8. Limitation of Liability. In no event and under no legal theory,
181
+ whether in tort (including negligence), contract, or otherwise,
182
+ unless required by applicable law (such as deliberate and grossly
183
+ negligent acts) or agreed to in writing, shall any Contributor be
184
+ liable to You for damages, including any direct, indirect, special,
185
+ incidental, or consequential damages of any character arising as a
186
+ result of this License or out of the use or inability to use the
187
+ Work (including but not limited to damages for loss of goodwill,
188
+ work stoppage, computer failure or malfunction, or any and all
189
+ other commercial damages or losses), even if such Contributor
190
+ has been advised of the possibility of such damages.
191
+
192
+ 9. Accepting Warranty or Additional Liability. While redistributing
193
+ the Work or Derivative Works thereof, You may choose to offer,
194
+ and charge a fee for, acceptance of support, warranty, indemnity,
195
+ or other liability obligations and/or rights consistent with this
196
+ License. However, in accepting such obligations, You may act only
197
+ on Your own behalf and on Your sole responsibility, not on behalf
198
+ of any other Contributor, and only if You agree to indemnify,
199
+ defend, and hold each Contributor harmless for any liability
200
+ incurred by, or claims asserted against, such Contributor by reason
201
+ of your accepting any such warranty or additional liability.
202
+
203
+ END OF TERMS AND CONDITIONS
204
+
205
+ APPENDIX: How to apply the Apache License to your work.
206
+
207
+ To apply the Apache License to your work, attach the following
208
+ boilerplate notice, with the fields enclosed by brackets "[]"
209
+ replaced with your own identifying information. (Don't include
210
+ the brackets!) The text should be enclosed in the appropriate
211
+ comment syntax for the file format. We also recommend that a
212
+ file or class name and description of purpose be included on the
213
+ same "printed page" as the copyright notice for easier
214
+ identification within third-party archives.
215
+
216
+ Copyright [yyyy] [name of copyright owner]
217
+
218
+ Licensed under the Apache License, Version 2.0 (the "License");
219
+ you may not use this file except in compliance with the License.
220
+ You may obtain a copy of the License at
221
+
222
+ http://www.apache.org/licenses/LICENSE-2.0
223
+
224
+ Unless required by applicable law or agreed to in writing, software
225
+ distributed under the License is distributed on an "AS IS" BASIS,
226
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
227
+ See the License for the specific language governing permissions and
228
+ limitations under the License.
229
+ ```
230
+
231
+ ## @noble/hashes 2.4.0
232
+
233
+ ```text
234
+ The MIT License (MIT)
235
+
236
+ Copyright (c) 2022 Paul Miller (https://paulmillr.com)
237
+
238
+ Permission is hereby granted, free of charge, to any person obtaining a copy
239
+ of this software and associated documentation files (the “Software”), to deal
240
+ in the Software without restriction, including without limitation the rights
241
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
242
+ copies of the Software, and to permit persons to whom the Software is
243
+ furnished to do so, subject to the following conditions:
244
+
245
+ The above copyright notice and this permission notice shall be included in
246
+ all copies or substantial portions of the Software.
247
+
248
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
249
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
250
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
251
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
252
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
253
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
254
+ THE SOFTWARE.
255
+ ```
256
+
257
+ ## acorn 8.17.0
258
+
259
+ ```text
260
+ MIT License
261
+
262
+ Copyright (C) 2012-2022 by various contributors (see AUTHORS)
263
+
264
+ Permission is hereby granted, free of charge, to any person obtaining a copy
265
+ of this software and associated documentation files (the "Software"), to deal
266
+ in the Software without restriction, including without limitation the rights
267
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
268
+ copies of the Software, and to permit persons to whom the Software is
269
+ furnished to do so, subject to the following conditions:
270
+
271
+ The above copyright notice and this permission notice shall be included in
272
+ all copies or substantial portions of the Software.
273
+
274
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
275
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
276
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
277
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
278
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
279
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
280
+ THE SOFTWARE.
281
+ ```
282
+
283
+ ## @lezer/common 1.5.2
284
+
285
+ ```text
286
+ MIT License
287
+
288
+ Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
289
+
290
+ Permission is hereby granted, free of charge, to any person obtaining a copy
291
+ of this software and associated documentation files (the "Software"), to deal
292
+ in the Software without restriction, including without limitation the rights
293
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
294
+ copies of the Software, and to permit persons to whom the Software is
295
+ furnished to do so, subject to the following conditions:
296
+
297
+ The above copyright notice and this permission notice shall be included in
298
+ all copies or substantial portions of the Software.
299
+
300
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
301
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
302
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
303
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
304
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
305
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
306
+ THE SOFTWARE.
307
+ ```
308
+
309
+ ## @lezer/highlight 1.2.3
310
+
311
+ ```text
312
+ MIT License
313
+
314
+ Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
315
+
316
+ Permission is hereby granted, free of charge, to any person obtaining a copy
317
+ of this software and associated documentation files (the "Software"), to deal
318
+ in the Software without restriction, including without limitation the rights
319
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
320
+ copies of the Software, and to permit persons to whom the Software is
321
+ furnished to do so, subject to the following conditions:
322
+
323
+ The above copyright notice and this permission notice shall be included in
324
+ all copies or substantial portions of the Software.
325
+
326
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
327
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
328
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
329
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
330
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
331
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
332
+ THE SOFTWARE.
333
+ ```
334
+
335
+ ## @lezer/lr 1.4.10
336
+
337
+ ```text
338
+ MIT License
339
+
340
+ Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
341
+
342
+ Permission is hereby granted, free of charge, to any person obtaining a copy
343
+ of this software and associated documentation files (the "Software"), to deal
344
+ in the Software without restriction, including without limitation the rights
345
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
346
+ copies of the Software, and to permit persons to whom the Software is
347
+ furnished to do so, subject to the following conditions:
348
+
349
+ The above copyright notice and this permission notice shall be included in
350
+ all copies or substantial portions of the Software.
351
+
352
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
353
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
354
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
355
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
356
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
357
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
358
+ THE SOFTWARE.
359
+ ```
360
+
361
+ ## @lezer/python 1.1.19
362
+
363
+ ```text
364
+ MIT License
365
+
366
+ Copyright (C) 2020 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
367
+
368
+ Permission is hereby granted, free of charge, to any person obtaining a copy
369
+ of this software and associated documentation files (the "Software"), to deal
370
+ in the Software without restriction, including without limitation the rights
371
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
372
+ copies of the Software, and to permit persons to whom the Software is
373
+ furnished to do so, subject to the following conditions:
374
+
375
+ The above copyright notice and this permission notice shall be included in
376
+ all copies or substantial portions of the Software.
377
+
378
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
379
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
380
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
381
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
382
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
383
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
384
+ THE SOFTWARE.
385
+ ```
@@ -0,0 +1,73 @@
1
+ /** Browser-safe prerequisite observations. These shapes describe export evidence only, never live state. */
2
+ export type RawNodeV1 = Readonly<{
3
+ index: number;
4
+ name: string;
5
+ type: string;
6
+ typeVersion: string | null;
7
+ parameters: unknown;
8
+ credentials: Readonly<Record<string, unknown>> | null;
9
+ }>;
10
+ export type PreflightNodeEvidenceV1 = Readonly<{
11
+ source: 'WORKFLOW_EXPORT';
12
+ pointer: string;
13
+ node: string;
14
+ nodeType: string;
15
+ typeVersion: string | null;
16
+ }>;
17
+ export type PreflightEnvironmentV1 = Readonly<{
18
+ namespace: 'ENV' | 'VARS';
19
+ name: string;
20
+ value: 'UNKNOWN';
21
+ availability: 'UNKNOWN';
22
+ evidence: PreflightNodeEvidenceV1;
23
+ }>;
24
+ export type PreflightProvenanceV1 = Readonly<{
25
+ source: 'WORKFLOW_EXPORT';
26
+ pointer: '/';
27
+ repository: 'UNKNOWN';
28
+ commit: 'UNKNOWN';
29
+ licence: 'UNKNOWN';
30
+ verification: 'UNKNOWN';
31
+ }>;
32
+ export type PreflightCredentialV1 = Readonly<{
33
+ credentialType: string;
34
+ credentialName: string | null;
35
+ reference: 'ID_AND_NAME' | 'ID_ONLY' | 'NAME_ONLY' | 'EMPTY';
36
+ node: string;
37
+ nodeType: string;
38
+ pointer: string;
39
+ offlineValidity: 'UNKNOWN';
40
+ ownership: 'UNKNOWN';
41
+ }>;
42
+ export type PreflightCommunityNodeV1 = Readonly<{
43
+ packageName: string | null;
44
+ nodeTypes: readonly string[];
45
+ nodes: readonly string[];
46
+ typeVersions: readonly string[];
47
+ evidence: readonly PreflightNodeEvidenceV1[];
48
+ packageVersion: null;
49
+ installed: 'UNKNOWN';
50
+ }>;
51
+ export type PreflightIntegrationV1 = Readonly<{
52
+ service: string;
53
+ nodeType: string;
54
+ nodes: readonly string[];
55
+ credentialTypes: readonly string[];
56
+ evidence: readonly PreflightNodeEvidenceV1[];
57
+ }>;
58
+ export type PreflightSubworkflowV1 = Readonly<{
59
+ node: string;
60
+ pointer: string;
61
+ targetWorkflowId: string | null;
62
+ resolution: 'LITERAL' | 'DYNAMIC' | 'ABSENT';
63
+ targetExistence: 'UNKNOWN';
64
+ }>;
65
+ export type PreflightPrerequisitesV1 = Readonly<{
66
+ credentials: readonly PreflightCredentialV1[];
67
+ communityNodes: readonly PreflightCommunityNodeV1[];
68
+ integrations: readonly PreflightIntegrationV1[];
69
+ subworkflows: readonly PreflightSubworkflowV1[];
70
+ environment: readonly PreflightEnvironmentV1[];
71
+ provenance: PreflightProvenanceV1;
72
+ unknowns: readonly string[];
73
+ }>;
@@ -0,0 +1,6 @@
1
+ export { parseCliArguments } from "./v2/arguments.js";
2
+ export { runCliV2, type PublicRunOptionsV2, type PublicRunResultV2, type PublicScanCommandV2, } from "./v2/cli-runner.js";
3
+ export { getHelpV2 } from "./v2/help.js";
4
+ export { emitMetadataCommandResultV2 } from "./v2/metadata-output.js";
5
+ export { buildPreflightReadinessReport, type PreflightReadinessReportV1, type PreflightReadinessOptionsV1, type PreflightCompletenessV1, type PreflightFindingInputV1, type PreflightFindingV1, type PlatformCompatibilityFactV1, } from "./v2/preflight-readiness.js";
6
+ export { prepareWorkflowPrivacy, type PrivacyPrepareResult, type PrivacyPrepareOptions, type PrivacyChange, type PrivacyChangeKind, } from "./v2/privacy-prepare.js";