@osdlc/wayfinder 0.0.1-stage → 0.7.0
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/CHANGELOG.md +231 -0
- package/CONTRIBUTING.md +62 -0
- package/{LICENSE → LICENSE-APACHE} +1 -11
- package/LICENSE-MIT +21 -0
- package/README.md +505 -2
- package/SECURITY.md +44 -0
- package/bin/way.js +18 -0
- package/dist/app.d.ts +24 -0
- package/dist/app.js +24 -0
- package/dist/args.d.ts +44 -0
- package/dist/args.js +93 -0
- package/dist/cache.d.ts +7 -0
- package/dist/cache.js +15 -0
- package/dist/catalog.d.ts +38 -0
- package/dist/catalog.js +61 -0
- package/dist/clean-command.d.ts +43 -0
- package/dist/clean-command.js +274 -0
- package/dist/cli.d.ts +76 -0
- package/dist/cli.js +612 -0
- package/dist/config-command.d.ts +52 -0
- package/dist/config-command.js +342 -0
- package/dist/config.d.ts +367 -0
- package/dist/config.js +700 -0
- package/dist/devlink.d.ts +14 -0
- package/dist/devlink.js +30 -0
- package/dist/groups.d.ts +34 -0
- package/dist/groups.js +38 -0
- package/dist/guide.d.ts +32 -0
- package/dist/guide.js +411 -0
- package/dist/http.d.ts +22 -0
- package/dist/http.js +149 -0
- package/dist/origin-owner.d.ts +14 -0
- package/dist/origin-owner.js +69 -0
- package/dist/page.d.ts +15 -0
- package/dist/page.js +58 -0
- package/dist/providers-command.d.ts +40 -0
- package/dist/providers-command.js +132 -0
- package/dist/serve.d.ts +97 -0
- package/dist/serve.js +678 -0
- package/dist/tools.d.ts +46 -0
- package/dist/tools.js +102 -0
- package/dist/trust-command.d.ts +33 -0
- package/dist/trust-command.js +221 -0
- package/dist/trust-store.d.ts +18 -0
- package/dist/trust-store.js +46 -0
- package/dist/tui.d.ts +178 -0
- package/dist/tui.js +846 -0
- package/dist/web/main.js +2315 -0
- package/dist/web/page.html +110 -0
- package/dist/web/styles.css +1514 -0
- package/dist/xdg.d.ts +10 -0
- package/dist/xdg.js +17 -0
- package/package.json +54 -9
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
# @osdlc/wayfinder
|
|
2
|
+
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e5a7a98: First release from osdlc, as `@osdlc/wayfinder`. The package was renamed from `@osdlc/waypost` before its first npm release. The command is still `way`. `way` browses and runs every task in a repository from one list, in a terminal UI, a live web view, `way query`, `--list` and `--json`. It is rebuilt on `@osdlc/system-model` in place of `@osdlc/detect-runners`.
|
|
8
|
+
|
|
9
|
+
- **Groups.** Besides runner tasks, every surface shows the commands system-model synthesizes from the detected package managers, tool managers and git-hook managers: Tasks, Dependencies, Tools and Git hooks, in that order. The tab bars show a break between groups, and `--json` adds a `groups` array of `{id, title, runners}`.
|
|
10
|
+
- **`way providers`.** Lists every registered tool with its roles, runner kind, binary, whether the binary is on PATH, and whether it is built in or custom. `--json` gives the same rows.
|
|
11
|
+
- **Your own tools.** `--config <module>` loads a module that exports `tools`, an array of `ToolDef`s, for one run. The `tools` config key loads modules every run: from the user file always, from the project file only when the repository is trusted and execution is allowed. `way guide extend` has an example.
|
|
12
|
+
- **Arguments.** Typed arguments are bound by each tool's `invoke(task, args)`, so `npm run` gets them after `--`.
|
|
13
|
+
- **Node.** Runs on Node 22.22+, 24.15+ and 26; Bun is no longer required. The web view is served through `node:http` and the page script is bundled at build time. Running a development checkout through `way dev` still needs Bun.
|
|
14
|
+
- **Rename.** Every path and name moved from `waypost` to `wayfinder`. The old ones are still read when the new ones are absent, with a warning. When both an old and a new config file exist, the new one is read and a warning says the old one is ignored:
|
|
15
|
+
- project file: `wayfinder.config.json`, falling back to `waypost.config.json`.
|
|
16
|
+
- user file: `$XDG_CONFIG_HOME/wayfinder/config.json`, falling back to `$XDG_CONFIG_HOME/waypost/config.json`.
|
|
17
|
+
- config variable: `WAYFINDER_CONFIG`, falling back to `WAYPOST_CONFIG`.
|
|
18
|
+
- trust store: `$XDG_STATE_HOME/wayfinder/trusted/`. Grants in `$XDG_STATE_HOME/waypost/trusted/` still count. `way trust --untrust` and `way clean --trust` remove a grant from both.
|
|
19
|
+
- cache: `$XDG_CACHE_HOME/wayfinder/`, with no fallback. The first run re-probes. `way clean --cache` also removes the old `$XDG_CACHE_HOME/waypost/`.
|
|
20
|
+
- **Names.** The devlink state directories take their overrides from `WAY_ROOT`, `WAY_CONFIG_DIR` and the other `WAY_*` variables, in place of `FLEET_*`, and the vendor segment is `wayfinder` in place of `com.sizerllc`. A link made with `way dev link` before the rename must be made again, and `way dev install` writes a `wayfinder` shim beside `way`. Subcommand usage and hints name the `way` command.
|
|
21
|
+
|
|
22
|
+
Behaviour changes for existing users: the stored probe cache uses system-model's layout, so the first run after upgrading re-probes. Runners that must be executed (moon, mise tasks, sbt) are reported only when the repository uses them. The config files and the trust store moved, with the fallbacks listed under Rename. The web view's settings screen refuses to write `tools`; use `way config set tools`.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [e5a7a98]
|
|
27
|
+
- @osdlc/system-model@0.3.0
|
|
28
|
+
|
|
29
|
+
## History before the first public release
|
|
30
|
+
|
|
31
|
+
These versions were never published. They are rebuilt from the git history.
|
|
32
|
+
|
|
33
|
+
### [0.6.3] - 2026-10-06 (unpublished)
|
|
34
|
+
|
|
35
|
+
#### Fixed
|
|
36
|
+
|
|
37
|
+
- The devlink directories are spelled out in the package.
|
|
38
|
+
|
|
39
|
+
### [0.6.2] - 2026-09-18 (unpublished)
|
|
40
|
+
|
|
41
|
+
#### Added
|
|
42
|
+
|
|
43
|
+
- A user-layer `trust` block, with `trust.paths` and `trust.owners`, trusts a class of repositories
|
|
44
|
+
without a per-repository marker. A project file cannot set it.
|
|
45
|
+
- `way trust --show` and `--json` report which layer decided (`by`) and the matching rule (`rule`).
|
|
46
|
+
|
|
47
|
+
### [0.6.1] - 2026-09-14 (unpublished)
|
|
48
|
+
|
|
49
|
+
#### Fixed
|
|
50
|
+
|
|
51
|
+
- Fixes in the command-line front end.
|
|
52
|
+
|
|
53
|
+
### [0.6.0] - 2026-09-14 (unpublished)
|
|
54
|
+
|
|
55
|
+
#### Changed
|
|
56
|
+
|
|
57
|
+
- Breaking: exit codes follow one rule. `2` means the command cannot run as typed, `1` means a
|
|
58
|
+
well-formed command failed. Scripts that checked other codes must update.
|
|
59
|
+
|
|
60
|
+
### [0.5.0] - 2026-09-13 (unpublished)
|
|
61
|
+
|
|
62
|
+
#### Changed
|
|
63
|
+
|
|
64
|
+
- Breaking: flags are declared once and both help tiers come from that list. An unknown flag is now
|
|
65
|
+
a usage error instead of being ignored.
|
|
66
|
+
|
|
67
|
+
### [0.4.4] - 2026-09-13 (unpublished)
|
|
68
|
+
|
|
69
|
+
#### Fixed
|
|
70
|
+
|
|
71
|
+
- The CLI runs on the shared `@osdlc/cli-tool` package. No change in behaviour.
|
|
72
|
+
|
|
73
|
+
### [0.4.3] - 2026-09-11 (unpublished)
|
|
74
|
+
|
|
75
|
+
#### Added
|
|
76
|
+
|
|
77
|
+
- `way dev`: run the installed `way` from a development checkout, with `install`, `link`,
|
|
78
|
+
`history`, `use` and `status`.
|
|
79
|
+
|
|
80
|
+
### [0.4.2] - 2026-09-06 (unpublished)
|
|
81
|
+
|
|
82
|
+
#### Changed
|
|
83
|
+
|
|
84
|
+
- `--help` prints the short form. `--help --all` prints every flag.
|
|
85
|
+
|
|
86
|
+
### [0.4.1] - 2026-09-05 (unpublished)
|
|
87
|
+
|
|
88
|
+
#### Added
|
|
89
|
+
|
|
90
|
+
- `way trust --json` and `way clean --json` print one JSON document.
|
|
91
|
+
|
|
92
|
+
### [0.4.0] - 2026-09-05 (unpublished)
|
|
93
|
+
|
|
94
|
+
#### Removed
|
|
95
|
+
|
|
96
|
+
- Breaking: the `waypost` command. The package installs one command, `way`.
|
|
97
|
+
|
|
98
|
+
### [0.3.10] - 2026-09-04 (unpublished)
|
|
99
|
+
|
|
100
|
+
#### Added
|
|
101
|
+
|
|
102
|
+
- `way query <terms>` searches tasks from the shell and exits 1 when nothing matched.
|
|
103
|
+
|
|
104
|
+
### [0.3.9] - 2026-09-03 (unpublished)
|
|
105
|
+
|
|
106
|
+
#### Fixed
|
|
107
|
+
|
|
108
|
+
- Ten defects across the terminal UI, the web view and the settings screen. A flag given on the
|
|
109
|
+
command line now survives a settings save.
|
|
110
|
+
|
|
111
|
+
### [0.3.8] - 2026-09-02 (unpublished)
|
|
112
|
+
|
|
113
|
+
#### Fixed
|
|
114
|
+
|
|
115
|
+
- Muted text in the web view meets WCAG AA contrast.
|
|
116
|
+
|
|
117
|
+
### [0.3.7] - 2026-09-01 (unpublished)
|
|
118
|
+
|
|
119
|
+
#### Added
|
|
120
|
+
|
|
121
|
+
- The settings screen shows execution settings, and the runner order can be reset.
|
|
122
|
+
|
|
123
|
+
### [0.3.6] - 2026-09-01 (unpublished)
|
|
124
|
+
|
|
125
|
+
#### Fixed
|
|
126
|
+
|
|
127
|
+
- Web view styling.
|
|
128
|
+
|
|
129
|
+
### [0.3.5] - 2026-09-01 (unpublished)
|
|
130
|
+
|
|
131
|
+
#### Added
|
|
132
|
+
|
|
133
|
+
- The settings screen writes changes behind an explicit Save.
|
|
134
|
+
|
|
135
|
+
### [0.3.4] - 2026-09-01 (unpublished)
|
|
136
|
+
|
|
137
|
+
#### Added
|
|
138
|
+
|
|
139
|
+
- A read-only settings screen in the web view and the terminal UI.
|
|
140
|
+
|
|
141
|
+
### [0.3.3] - 2026-08-31 (unpublished)
|
|
142
|
+
|
|
143
|
+
#### Added
|
|
144
|
+
|
|
145
|
+
- A recipe that takes arguments asks for them, then runs.
|
|
146
|
+
|
|
147
|
+
### [0.3.2] - 2026-08-31 (unpublished)
|
|
148
|
+
|
|
149
|
+
#### Added
|
|
150
|
+
|
|
151
|
+
- `--exclude-path` leaves a path out of discovery.
|
|
152
|
+
|
|
153
|
+
### [0.3.1] - 2026-08-31 (unpublished)
|
|
154
|
+
|
|
155
|
+
#### Fixed
|
|
156
|
+
|
|
157
|
+
- The runner picker's checkbox column lines up.
|
|
158
|
+
|
|
159
|
+
### [0.3.0] - 2026-08-31 (unpublished)
|
|
160
|
+
|
|
161
|
+
#### Changed
|
|
162
|
+
|
|
163
|
+
- Breaking: the tool is named waypost. The command, the config file `waypost.config.json`, the
|
|
164
|
+
`WAYPOST_CONFIG` variable and the state directories use the new name.
|
|
165
|
+
|
|
166
|
+
### [0.2.7] - 2026-08-31 (unpublished)
|
|
167
|
+
|
|
168
|
+
#### Fixed
|
|
169
|
+
|
|
170
|
+
- The withheld-runners notice has its own bar in the web view.
|
|
171
|
+
|
|
172
|
+
### [0.2.6] - 2026-08-31 (unpublished)
|
|
173
|
+
|
|
174
|
+
#### Fixed
|
|
175
|
+
|
|
176
|
+
- The web view says when runners were withheld.
|
|
177
|
+
|
|
178
|
+
### [0.2.5] - 2026-08-31 (unpublished)
|
|
179
|
+
|
|
180
|
+
#### Added
|
|
181
|
+
|
|
182
|
+
- A probe cache for slow runners. Both surfaces paint from the store, then refresh, and mark stale
|
|
183
|
+
rows.
|
|
184
|
+
|
|
185
|
+
### [0.2.4] - 2026-08-31 (unpublished)
|
|
186
|
+
|
|
187
|
+
#### Added
|
|
188
|
+
|
|
189
|
+
- docker-compose and GitHub Actions runners.
|
|
190
|
+
|
|
191
|
+
### [0.2.3] - 2026-08-31 (unpublished)
|
|
192
|
+
|
|
193
|
+
#### Changed
|
|
194
|
+
|
|
195
|
+
- The runner picker sorts by selection.
|
|
196
|
+
|
|
197
|
+
### [0.2.2] - 2026-08-31 (unpublished)
|
|
198
|
+
|
|
199
|
+
#### Added
|
|
200
|
+
|
|
201
|
+
- rake, go-task and gradle are read by asking the tool, when execution is allowed.
|
|
202
|
+
|
|
203
|
+
### [0.2.1] - 2026-08-31 (unpublished)
|
|
204
|
+
|
|
205
|
+
#### Added
|
|
206
|
+
|
|
207
|
+
- Three more runners, and a `guide` command.
|
|
208
|
+
|
|
209
|
+
### [0.2.0] - 2026-08-30 (unpublished)
|
|
210
|
+
|
|
211
|
+
#### Changed
|
|
212
|
+
|
|
213
|
+
- Breaking: a repository must be trusted before runners that execute its configuration run.
|
|
214
|
+
|
|
215
|
+
### [0.1.2] - 2026-08-30 (unpublished)
|
|
216
|
+
|
|
217
|
+
#### Added
|
|
218
|
+
|
|
219
|
+
- The web view can run a task in the server's terminal, behind a token handshake.
|
|
220
|
+
|
|
221
|
+
### [0.1.1] - 2026-08-30 (unpublished)
|
|
222
|
+
|
|
223
|
+
#### Fixed
|
|
224
|
+
|
|
225
|
+
- The web view's script bundles the library from source.
|
|
226
|
+
|
|
227
|
+
### [0.1.0] - 2026-08-30 (unpublished)
|
|
228
|
+
|
|
229
|
+
#### Added
|
|
230
|
+
|
|
231
|
+
- A terminal UI and a live web view over every task in a repository.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for your interest in `@osdlc/wayfinder`.
|
|
4
|
+
|
|
5
|
+
## Issues
|
|
6
|
+
|
|
7
|
+
Report bugs and ask for features in the
|
|
8
|
+
[issue tracker](https://github.com/osdlc/osdlc/issues). For a bug, include the
|
|
9
|
+
package version, your runtime and its version, your operating system, the
|
|
10
|
+
command you ran and the repository layout it misread. Report security problems
|
|
11
|
+
privately. See [SECURITY.md](./SECURITY.md).
|
|
12
|
+
|
|
13
|
+
## Pull requests
|
|
14
|
+
|
|
15
|
+
This package lives in [osdlc/osdlc](https://github.com/osdlc/osdlc) under
|
|
16
|
+
`packages/ts/wayfinder`. Open pull requests there. They are reviewed and merged
|
|
17
|
+
there.
|
|
18
|
+
|
|
19
|
+
## Running the tests
|
|
20
|
+
|
|
21
|
+
The repository is a pnpm workspace. Install from the repository root, then
|
|
22
|
+
work in the package directory. The tests run on [Vitest](https://vitest.dev)
|
|
23
|
+
under Node 22.22.2 or later. They build throwaway repositories in a temp
|
|
24
|
+
directory, need `git` on the PATH, and need no network. The package imports its
|
|
25
|
+
sibling libraries through their built `dist/`, so run `pnpm run build` at the
|
|
26
|
+
repository root first.
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
pnpm install
|
|
30
|
+
pnpm run build
|
|
31
|
+
cd packages/ts/wayfinder
|
|
32
|
+
pnpm test
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
To run the CLI from a checkout, build the package and run
|
|
36
|
+
`node bin/way.js --help`. The terminal UI's frames are committed under
|
|
37
|
+
`tests/frames/`; after a deliberate change to the UI, regenerate them with
|
|
38
|
+
`CAPTURE_FRAMES=1 pnpm exec vitest run tests/frames.test.ts` and review the
|
|
39
|
+
diff.
|
|
40
|
+
|
|
41
|
+
Other checks:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
pnpm run typecheck
|
|
45
|
+
pnpm run lint
|
|
46
|
+
pnpm run format:check
|
|
47
|
+
pnpm run smoke # the built binary, after pnpm run build
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Code style
|
|
51
|
+
|
|
52
|
+
- TypeScript, ES modules, and explicit `.ts` import paths.
|
|
53
|
+
- Prettier formats the code and oxlint checks it. Run `pnpm run format` and
|
|
54
|
+
`pnpm run lint` before you commit.
|
|
55
|
+
- Add a test for each behaviour change or bug fix.
|
|
56
|
+
- Shell out only through `@osdlc/command-seam`, never with a raw
|
|
57
|
+
`child_process` call.
|
|
58
|
+
- `src/web/` and `src/groups.ts` run in the browser: no Node built-ins there.
|
|
59
|
+
- For a change users can see, add a changeset: run `pnpm changeset` at the
|
|
60
|
+
repository root. Do not edit `CHANGELOG.md` or `version` by hand; the release
|
|
61
|
+
writes them. See
|
|
62
|
+
[packages/README.md](https://github.com/osdlc/osdlc/blob/main/packages/README.md).
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
Copyright 2026 SK Sizer
|
|
2
1
|
|
|
3
2
|
Apache License
|
|
4
3
|
Version 2.0, January 2004
|
|
@@ -188,7 +187,7 @@ Copyright 2026 SK Sizer
|
|
|
188
187
|
same "printed page" as the copyright notice for easier
|
|
189
188
|
identification within third-party archives.
|
|
190
189
|
|
|
191
|
-
Copyright
|
|
190
|
+
Copyright 2026 sksizer
|
|
192
191
|
|
|
193
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
194
193
|
you may not use this file except in compliance with the License.
|
|
@@ -201,12 +200,3 @@ Copyright 2026 SK Sizer
|
|
|
201
200
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
202
201
|
See the License for the specific language governing permissions and
|
|
203
202
|
limitations under the License.
|
|
204
|
-
|
|
205
|
-
ADDITIONAL CONDITION — AI TRAINING
|
|
206
|
-
|
|
207
|
-
Notwithstanding the above, you may not use the Work or any Derivative
|
|
208
|
-
Works, in whole or in part, as training, fine-tuning, or evaluation data
|
|
209
|
-
for machine-learning or artificial-intelligence models. This condition
|
|
210
|
-
does not restrict running, using, modifying, or distributing the Work
|
|
211
|
-
as software — including use of the Work by AI agents, coding
|
|
212
|
-
assistants, or other automated tools at runtime.
|
package/LICENSE-MIT
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sksizer
|
|
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.
|