@osdlc/wayfinder 0.0.1-stage → 0.7.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 (53) hide show
  1. package/CHANGELOG.md +245 -0
  2. package/CONTRIBUTING.md +62 -0
  3. package/{LICENSE → LICENSE-APACHE} +1 -11
  4. package/LICENSE-MIT +21 -0
  5. package/README.md +505 -2
  6. package/SECURITY.md +44 -0
  7. package/bin/way.js +18 -0
  8. package/dist/app.d.ts +24 -0
  9. package/dist/app.js +24 -0
  10. package/dist/args.d.ts +44 -0
  11. package/dist/args.js +93 -0
  12. package/dist/cache.d.ts +7 -0
  13. package/dist/cache.js +15 -0
  14. package/dist/catalog.d.ts +38 -0
  15. package/dist/catalog.js +61 -0
  16. package/dist/clean-command.d.ts +43 -0
  17. package/dist/clean-command.js +274 -0
  18. package/dist/cli.d.ts +76 -0
  19. package/dist/cli.js +612 -0
  20. package/dist/config-command.d.ts +52 -0
  21. package/dist/config-command.js +342 -0
  22. package/dist/config.d.ts +367 -0
  23. package/dist/config.js +700 -0
  24. package/dist/devlink.d.ts +14 -0
  25. package/dist/devlink.js +30 -0
  26. package/dist/groups.d.ts +34 -0
  27. package/dist/groups.js +38 -0
  28. package/dist/guide.d.ts +32 -0
  29. package/dist/guide.js +411 -0
  30. package/dist/http.d.ts +22 -0
  31. package/dist/http.js +149 -0
  32. package/dist/origin-owner.d.ts +14 -0
  33. package/dist/origin-owner.js +69 -0
  34. package/dist/page.d.ts +15 -0
  35. package/dist/page.js +58 -0
  36. package/dist/providers-command.d.ts +40 -0
  37. package/dist/providers-command.js +132 -0
  38. package/dist/serve.d.ts +97 -0
  39. package/dist/serve.js +678 -0
  40. package/dist/tools.d.ts +46 -0
  41. package/dist/tools.js +102 -0
  42. package/dist/trust-command.d.ts +33 -0
  43. package/dist/trust-command.js +221 -0
  44. package/dist/trust-store.d.ts +18 -0
  45. package/dist/trust-store.js +46 -0
  46. package/dist/tui.d.ts +178 -0
  47. package/dist/tui.js +846 -0
  48. package/dist/web/main.js +2315 -0
  49. package/dist/web/page.html +110 -0
  50. package/dist/web/styles.css +1514 -0
  51. package/dist/xdg.d.ts +10 -0
  52. package/dist/xdg.js +17 -0
  53. package/package.json +54 -9
package/CHANGELOG.md ADDED
@@ -0,0 +1,245 @@
1
+ # @osdlc/wayfinder
2
+
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [007d8ee]
8
+ - Updated dependencies [96b7144]
9
+ - Updated dependencies [3f0455e]
10
+ - Updated dependencies [b5aac07]
11
+ - Updated dependencies [41ef520]
12
+ - @osdlc/cli-tool@0.7.0
13
+ - @osdlc/config-layers@0.7.0
14
+ - @osdlc/system-model@0.4.0
15
+ - @osdlc/typed-git@0.7.0
16
+
17
+ ## 0.7.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 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`.
22
+
23
+ - **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}`.
24
+ - **`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.
25
+ - **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.
26
+ - **Arguments.** Typed arguments are bound by each tool's `invoke(task, args)`, so `npm run` gets them after `--`.
27
+ - **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.
28
+ - **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:
29
+ - project file: `wayfinder.config.json`, falling back to `waypost.config.json`.
30
+ - user file: `$XDG_CONFIG_HOME/wayfinder/config.json`, falling back to `$XDG_CONFIG_HOME/waypost/config.json`.
31
+ - config variable: `WAYFINDER_CONFIG`, falling back to `WAYPOST_CONFIG`.
32
+ - 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.
33
+ - cache: `$XDG_CACHE_HOME/wayfinder/`, with no fallback. The first run re-probes. `way clean --cache` also removes the old `$XDG_CACHE_HOME/waypost/`.
34
+ - **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.
35
+
36
+ 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`.
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [e5a7a98]
41
+ - @osdlc/system-model@0.3.0
42
+
43
+ ## History before the first public release
44
+
45
+ These versions were never published. They are rebuilt from the git history.
46
+
47
+ ### [0.6.3] - 2026-10-06 (unpublished)
48
+
49
+ #### Fixed
50
+
51
+ - The devlink directories are spelled out in the package.
52
+
53
+ ### [0.6.2] - 2026-09-18 (unpublished)
54
+
55
+ #### Added
56
+
57
+ - A user-layer `trust` block, with `trust.paths` and `trust.owners`, trusts a class of repositories
58
+ without a per-repository marker. A project file cannot set it.
59
+ - `way trust --show` and `--json` report which layer decided (`by`) and the matching rule (`rule`).
60
+
61
+ ### [0.6.1] - 2026-09-14 (unpublished)
62
+
63
+ #### Fixed
64
+
65
+ - Fixes in the command-line front end.
66
+
67
+ ### [0.6.0] - 2026-09-14 (unpublished)
68
+
69
+ #### Changed
70
+
71
+ - Breaking: exit codes follow one rule. `2` means the command cannot run as typed, `1` means a
72
+ well-formed command failed. Scripts that checked other codes must update.
73
+
74
+ ### [0.5.0] - 2026-09-13 (unpublished)
75
+
76
+ #### Changed
77
+
78
+ - Breaking: flags are declared once and both help tiers come from that list. An unknown flag is now
79
+ a usage error instead of being ignored.
80
+
81
+ ### [0.4.4] - 2026-09-13 (unpublished)
82
+
83
+ #### Fixed
84
+
85
+ - The CLI runs on the shared `@osdlc/cli-tool` package. No change in behaviour.
86
+
87
+ ### [0.4.3] - 2026-09-11 (unpublished)
88
+
89
+ #### Added
90
+
91
+ - `way dev`: run the installed `way` from a development checkout, with `install`, `link`,
92
+ `history`, `use` and `status`.
93
+
94
+ ### [0.4.2] - 2026-09-06 (unpublished)
95
+
96
+ #### Changed
97
+
98
+ - `--help` prints the short form. `--help --all` prints every flag.
99
+
100
+ ### [0.4.1] - 2026-09-05 (unpublished)
101
+
102
+ #### Added
103
+
104
+ - `way trust --json` and `way clean --json` print one JSON document.
105
+
106
+ ### [0.4.0] - 2026-09-05 (unpublished)
107
+
108
+ #### Removed
109
+
110
+ - Breaking: the `waypost` command. The package installs one command, `way`.
111
+
112
+ ### [0.3.10] - 2026-09-04 (unpublished)
113
+
114
+ #### Added
115
+
116
+ - `way query <terms>` searches tasks from the shell and exits 1 when nothing matched.
117
+
118
+ ### [0.3.9] - 2026-09-03 (unpublished)
119
+
120
+ #### Fixed
121
+
122
+ - Ten defects across the terminal UI, the web view and the settings screen. A flag given on the
123
+ command line now survives a settings save.
124
+
125
+ ### [0.3.8] - 2026-09-02 (unpublished)
126
+
127
+ #### Fixed
128
+
129
+ - Muted text in the web view meets WCAG AA contrast.
130
+
131
+ ### [0.3.7] - 2026-09-01 (unpublished)
132
+
133
+ #### Added
134
+
135
+ - The settings screen shows execution settings, and the runner order can be reset.
136
+
137
+ ### [0.3.6] - 2026-09-01 (unpublished)
138
+
139
+ #### Fixed
140
+
141
+ - Web view styling.
142
+
143
+ ### [0.3.5] - 2026-09-01 (unpublished)
144
+
145
+ #### Added
146
+
147
+ - The settings screen writes changes behind an explicit Save.
148
+
149
+ ### [0.3.4] - 2026-09-01 (unpublished)
150
+
151
+ #### Added
152
+
153
+ - A read-only settings screen in the web view and the terminal UI.
154
+
155
+ ### [0.3.3] - 2026-08-31 (unpublished)
156
+
157
+ #### Added
158
+
159
+ - A recipe that takes arguments asks for them, then runs.
160
+
161
+ ### [0.3.2] - 2026-08-31 (unpublished)
162
+
163
+ #### Added
164
+
165
+ - `--exclude-path` leaves a path out of discovery.
166
+
167
+ ### [0.3.1] - 2026-08-31 (unpublished)
168
+
169
+ #### Fixed
170
+
171
+ - The runner picker's checkbox column lines up.
172
+
173
+ ### [0.3.0] - 2026-08-31 (unpublished)
174
+
175
+ #### Changed
176
+
177
+ - Breaking: the tool is named waypost. The command, the config file `waypost.config.json`, the
178
+ `WAYPOST_CONFIG` variable and the state directories use the new name.
179
+
180
+ ### [0.2.7] - 2026-08-31 (unpublished)
181
+
182
+ #### Fixed
183
+
184
+ - The withheld-runners notice has its own bar in the web view.
185
+
186
+ ### [0.2.6] - 2026-08-31 (unpublished)
187
+
188
+ #### Fixed
189
+
190
+ - The web view says when runners were withheld.
191
+
192
+ ### [0.2.5] - 2026-08-31 (unpublished)
193
+
194
+ #### Added
195
+
196
+ - A probe cache for slow runners. Both surfaces paint from the store, then refresh, and mark stale
197
+ rows.
198
+
199
+ ### [0.2.4] - 2026-08-31 (unpublished)
200
+
201
+ #### Added
202
+
203
+ - docker-compose and GitHub Actions runners.
204
+
205
+ ### [0.2.3] - 2026-08-31 (unpublished)
206
+
207
+ #### Changed
208
+
209
+ - The runner picker sorts by selection.
210
+
211
+ ### [0.2.2] - 2026-08-31 (unpublished)
212
+
213
+ #### Added
214
+
215
+ - rake, go-task and gradle are read by asking the tool, when execution is allowed.
216
+
217
+ ### [0.2.1] - 2026-08-31 (unpublished)
218
+
219
+ #### Added
220
+
221
+ - Three more runners, and a `guide` command.
222
+
223
+ ### [0.2.0] - 2026-08-30 (unpublished)
224
+
225
+ #### Changed
226
+
227
+ - Breaking: a repository must be trusted before runners that execute its configuration run.
228
+
229
+ ### [0.1.2] - 2026-08-30 (unpublished)
230
+
231
+ #### Added
232
+
233
+ - The web view can run a task in the server's terminal, behind a token handshake.
234
+
235
+ ### [0.1.1] - 2026-08-30 (unpublished)
236
+
237
+ #### Fixed
238
+
239
+ - The web view's script bundles the library from source.
240
+
241
+ ### [0.1.0] - 2026-08-30 (unpublished)
242
+
243
+ #### Added
244
+
245
+ - A terminal UI and a live web view over every task in a repository.
@@ -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 [yyyy] [name of copyright owner]
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.