chaffbroom 0.0.0-stage → 0.3.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 +105 -0
- package/README.md +41 -2
- package/THIRD-PARTY-LICENSES.md +19 -0
- package/dist/chaffbroom.js +9787 -0
- package/package.json +44 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-ALv2
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Siva Koza d.o.o.
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# chaffbroom
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[Chaffbroom Winnow](https://github.com/chaffbroom/chaffbroom/tree/main/winnow#readme) and
|
|
4
|
+
[Chaffbroom Tollbook](https://github.com/chaffbroom/chaffbroom/tree/main/tollbook#readme) from
|
|
5
|
+
one command. Node 20+, one bundled file, no dependencies.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npx chaffbroom init # shows the workflow files it would write; writes nothing
|
|
9
|
+
npx chaffbroom init --yes # writes them
|
|
10
|
+
npx chaffbroom winnow plan # orphaned preview environments; deletes nothing
|
|
11
|
+
npx chaffbroom tollbook pr --repo owner/name --pr 123 # what one pull request cost in Actions
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## init
|
|
15
|
+
|
|
16
|
+
Writes, into the repository you run it in:
|
|
17
|
+
|
|
18
|
+
- `.winnow.yml`: the Winnow config, with only the preview providers the repository shows
|
|
19
|
+
(`vercel.json`, `fly.toml`, `railway.json`, `supabase/config.toml`, `wrangler.toml`, Neon in
|
|
20
|
+
`package.json`), or the ones you name with `--provider`.
|
|
21
|
+
- `.github/workflows/winnow.yml`: nightly and on PR close, with `uses: chaffbroom/winnow@v0`.
|
|
22
|
+
It starts in plan mode: it lists, it deletes nothing, until you set `WINNOW_MODE: apply`.
|
|
23
|
+
- `.github/workflows/tollbook-pr.yml`: the sticky PR cost comment, after each workflow that
|
|
24
|
+
runs on your pull requests, with `uses: chaffbroom/tollbook@v0`.
|
|
25
|
+
- `.github/workflows/tollbook-weekly.yml`: the Monday summary.
|
|
26
|
+
|
|
27
|
+
It shows every file first and writes only with `--yes` (`--dry-run` never writes). A file that
|
|
28
|
+
exists and differs is kept unless you add `--force`. It never asks for a token and never
|
|
29
|
+
writes one: it prints the `gh secret set NAME` lines, and `gh` asks you for each value.
|
|
30
|
+
`npx chaffbroom init --help` lists the options.
|
|
31
|
+
|
|
32
|
+
## winnow, tollbook
|
|
33
|
+
|
|
34
|
+
`npx chaffbroom winnow ...` and `npx chaffbroom tollbook ...` are the products' own CLIs, with
|
|
35
|
+
the same commands and flags (`--help` on each). Tokens come from the environment
|
|
36
|
+
(`GITHUB_TOKEN`, `VERCEL_TOKEN`, ...). Nothing is sent anywhere but GitHub and your providers.
|
|
37
|
+
|
|
38
|
+
## Licence
|
|
39
|
+
|
|
40
|
+
Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2): see `LICENSE`.
|
|
41
|
+
Third-party code inlined into the bundle: `THIRD-PARTY-LICENSES.md`. Source:
|
|
42
|
+
<https://github.com/chaffbroom/chaffbroom/tree/main/cli>.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Third-party code in dist/chaffbroom.js
|
|
2
|
+
|
|
3
|
+
## yaml 2.9.1 (ISC)
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
Copyright Eemeli Aro <eemeli@gmail.com>
|
|
7
|
+
|
|
8
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
9
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
10
|
+
and this permission notice appear in all copies.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
14
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
16
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
17
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
18
|
+
THIS SOFTWARE.
|
|
19
|
+
```
|