@syntax-syllogism/flow-delta 0.0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jacob Richter
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/LICENSE-APACHE ADDED
@@ -0,0 +1,194 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but not
32
+ limited to compiled object code, generated documentation, and
33
+ conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including the
49
+ original version of the Work and any modifications or additions to
50
+ that Work or Derivative Works thereof, that is intentionally submitted
51
+ to Licensor for inclusion in the Work by the copyright owner or by an
52
+ individual or Legal Entity authorized to submit on behalf of the
53
+ copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ world-wide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ world-wide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable by
79
+ such Contributor that are necessarily infringed by their Contribution(s)
80
+ alone or by combination of their Contribution(s) with the Work to which
81
+ such Contribution(s) was submitted. If You institute patent litigation
82
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
83
+ alleging that the Work or a Contribution incorporated within the Work
84
+ constitutes direct or contributory patent infringement, then any patent
85
+ licenses granted to You under this License for that Work shall terminate
86
+ as of the date such litigation is filed.
87
+
88
+ 4. Redistribution. You may reproduce and distribute copies of the Work
89
+ or Derivative Works thereof in any medium, with or without modifications,
90
+ and in Source or Object form, provided that You meet the following
91
+ conditions:
92
+
93
+ (a) You must give any other recipients of the Work or Derivative Works
94
+ a copy of this License; and
95
+
96
+ (b) You must cause any modified files to carry prominent notices stating
97
+ that You changed the files; and
98
+
99
+ (c) You must retain, in the Source form of any Derivative Works that You
100
+ distribute, all copyright, patent, trademark, and attribution notices
101
+ from the Source form of the Work, excluding those notices that do not
102
+ pertain to any part of the Derivative Works; and
103
+
104
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
105
+ then any Derivative Works that You distribute must include a readable
106
+ copy of the attribution notices contained within such NOTICE file,
107
+ excluding those notices that do not pertain to any part of the
108
+ Derivative Works, in at least one of the following places: within a
109
+ NOTICE text file distributed as part of the Derivative Works; within the
110
+ Source form or documentation, if provided along with the Derivative
111
+ Works; or, within a display generated by the Derivative Works, if and
112
+ wherever such third-party notices normally appear. The contents of the
113
+ NOTICE file are for informational purposes only and do not modify the
114
+ License. You may add Your own attribution notices within Derivative
115
+ Works that You distribute, alongside or as an addendum to the NOTICE
116
+ text from the Work, provided that such additional attribution notices
117
+ cannot be construed as modifying the License.
118
+
119
+ You may add Your own copyright statement to Your modifications and may
120
+ provide additional or different license terms and conditions for use,
121
+ reproduction, or distribution of Your modifications, or for any such
122
+ Derivative Works as a whole, provided Your use, reproduction, and
123
+ distribution of the Work otherwise complies with the conditions stated
124
+ in this License.
125
+
126
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
127
+ any Contribution intentionally submitted for inclusion in the Work by
128
+ You to the Licensor shall be under the terms and conditions of this
129
+ License, without any additional terms or conditions.
130
+
131
+ 6. Trademarks. This License does not grant permission to use the trade
132
+ names, trademarks, service marks, or product names of the Licensor,
133
+ except as required for reasonable and customary use in describing the
134
+ origin of the Work and reproducing the content of the NOTICE file.
135
+
136
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed
137
+ to in writing, Licensor provides the Work (and each Contributor
138
+ provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR
139
+ CONDITIONS OF ANY KIND, either express or implied, including, without
140
+ limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT,
141
+ MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely
142
+ responsible for determining the appropriateness of using or
143
+ redistributing the Work and assume any risks associated with Your
144
+ exercise of permissions under this License.
145
+
146
+ 8. Limitation of Liability. In no event and under no legal theory,
147
+ whether in tort (including negligence), contract, or otherwise, unless
148
+ required by applicable law (such as deliberate and grossly negligent
149
+ acts) or agreed to in writing, shall any Contributor be liable to You
150
+ for damages, including any direct, indirect, special, incidental, or
151
+ consequential damages of any character arising as a result of this
152
+ License or out of the use or inability to use the Work (including but
153
+ not limited to damages for loss of goodwill, work stoppage, computer
154
+ failure or malfunction, or any and all other commercial damages or
155
+ losses), even if such Contributor has been advised of the possibility
156
+ of such damages.
157
+
158
+ 9. Accepting Warranty or Additional Liability. While redistributing
159
+ the Work or Derivative Works thereof, You may choose to offer, and
160
+ charge a fee for, acceptance of support, warranty, indemnity, or
161
+ other liability obligations and/or rights consistent with this License.
162
+ However, in accepting such obligations, You may act only on Your own
163
+ behalf and on Your sole responsibility, not on behalf of any other
164
+ Contributor, and only if You agree to indemnify, defend, and hold each
165
+ Contributor harmless for any liability incurred by, or claims asserted
166
+ against, such Contributor by reason of your accepting any such
167
+ warranty or additional liability.
168
+
169
+ END OF TERMS AND CONDITIONS
170
+
171
+ APPENDIX: How to apply the Apache License to your work.
172
+
173
+ To apply the Apache License to your work, attach the following
174
+ boilerplate notice, with the fields enclosed by brackets "[]"
175
+ replaced with your own identifying information. (Don't include the
176
+ brackets!) The text should be enclosed in the appropriate comment
177
+ syntax for the file format. We also recommend that a file or class
178
+ name and description of purpose be included on the same "printed
179
+ page" as the copyright notice for easier identification within
180
+ third-party archives.
181
+
182
+ Copyright [yyyy] [name of copyright owner]
183
+
184
+ Licensed under the Apache License, Version 2.0 (the "License");
185
+ you may not use this file except in compliance with the License.
186
+ You may obtain a copy of the License at
187
+
188
+ http://www.apache.org/licenses/LICENSE-2.0
189
+
190
+ Unless required by applicable law or agreed to in writing, software
191
+ distributed under the License is distributed on an "AS IS" BASIS,
192
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
193
+ See the License for the specific language governing permissions and
194
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,7 @@
1
+ FlowDelta includes the Flow parser vendored from Google's Flow Lens project.
2
+
3
+ Upstream project: Google Flow Lens (google-flow-lens)
4
+ License: Apache License 2.0
5
+ Upstream commit used for the vendored parser: afaaef7fe998d46fc73c2e0683e9c989a82b1c28
6
+
7
+ The vendored parser files in src/parser/ retain their original Apache 2.0 headers.
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ # FlowDelta
2
+
3
+ A semantic, visual diff for Salesforce Flows: parse two versions of a
4
+ `.flow-meta.xml`, diff them by stable node name, and render a self-contained
5
+ interactive HTML artifact (plus `diff.json`) that shows added / deleted /
6
+ modified / unchanged nodes and edges with per-property deltas.
7
+
8
+ ## Usage
9
+
10
+ Runs as a TypeScript CLI via `tsx` (no build step). See [docs/cli.md](docs/cli.md)
11
+ for full file-mode and git-mode options.
12
+
13
+ ```bash
14
+ npx tsx src/cli.ts --old before.flow-meta.xml --new after.flow-meta.xml --out ./flow-delta-out --json
15
+ ```
16
+
17
+ ## Development
18
+
19
+ ```bash
20
+ npm install
21
+ npm test # parser + semantic diff / render / CLI suites
22
+ npm run render:fixtures # render every diff fixture to flow-delta-out/fixtures/
23
+ ```
24
+
25
+ Architecture, testing, and the vendored-parser policy are documented in
26
+ [docs/](docs/) (start with [docs/architecture.md](docs/architecture.md)).
27
+
28
+ ## Contributing
29
+
30
+ See [CONTRIBUTING.md](CONTRIBUTING.md) and the
31
+ [Code of Conduct](CODE_OF_CONDUCT.md).
32
+
33
+ ## Security
34
+
35
+ See [SECURITY.md](SECURITY.md) for how to report vulnerabilities.
36
+
37
+ ## License
38
+
39
+ [MIT](LICENSE) © Jacob Richter — applies to FlowDelta-authored code.
40
+
41
+ FlowDelta also vendors the Flow parser (`src/parser/`) from Google's
42
+ [Flow Lens (`google-flow-lens`)](https://github.com/google/flow-lens), which is
43
+ licensed under the [Apache License 2.0](LICENSE-APACHE). Those files retain their
44
+ original headers; see [`NOTICE`](NOTICE) for attribution and provenance, and
45
+ [docs/vendoring.md](docs/vendoring.md) for the policy.