@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/dist/xdg.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Home-relative paths. `home` is always injected, so a test never reads or
3
+ * writes the real home directory.
4
+ */
5
+ /**
6
+ * Expand a leading `~` against `home`; anything else is returned unchanged.
7
+ * direnv, `.env` loaders and CI YAML pass a literal tilde through, and
8
+ * `<cwd>/~/x` would be a silent wrong answer.
9
+ */
10
+ export declare function expandTilde(path: string, home: string): string;
package/dist/xdg.js ADDED
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Home-relative paths. `home` is always injected, so a test never reads or
3
+ * writes the real home directory.
4
+ */
5
+ import { join } from 'node:path';
6
+ /**
7
+ * Expand a leading `~` against `home`; anything else is returned unchanged.
8
+ * direnv, `.env` loaders and CI YAML pass a literal tilde through, and
9
+ * `<cwd>/~/x` would be a silent wrong answer.
10
+ */
11
+ export function expandTilde(path, home) {
12
+ if (path === '~')
13
+ return home;
14
+ if (path.startsWith('~/'))
15
+ return join(home, path.slice(2));
16
+ return path;
17
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@osdlc/wayfinder",
3
- "version": "0.0.1-stage",
4
- "description": "Find a project's tasks and run them: the `way` command.",
3
+ "version": "0.7.1",
4
+ "description": "Browse and run every task in a repository from one list: a terminal UI where Enter runs the selected task, a live web view, and JSON for scripts. Tasks, installs, tool trust and git hooks come from @osdlc/system-model.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "author": "sksizer",
7
7
  "repository": {
@@ -13,18 +13,63 @@
13
13
  "bugs": "https://github.com/osdlc/osdlc/issues",
14
14
  "keywords": [
15
15
  "task-runner",
16
- "cli",
17
- "tasks",
18
- "runner"
16
+ "tui",
17
+ "monorepo",
18
+ "moon",
19
+ "just",
20
+ "npm-scripts",
21
+ "cli"
19
22
  ],
20
23
  "publishConfig": {
21
24
  "access": "public"
22
25
  },
23
26
  "type": "module",
24
- "engines": {
25
- "node": ">=22"
27
+ "sideEffects": false,
28
+ "bin": {
29
+ "way": "./bin/way.js"
26
30
  },
27
31
  "files": [
28
- "README.md"
29
- ]
32
+ "dist/",
33
+ "bin/",
34
+ "README.md",
35
+ "CHANGELOG.md",
36
+ "LICENSE-MIT",
37
+ "LICENSE-APACHE",
38
+ "SECURITY.md",
39
+ "CONTRIBUTING.md"
40
+ ],
41
+ "engines": {
42
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
43
+ },
44
+ "dependencies": {
45
+ "@osdlc/cli-tool": "^0.7.0",
46
+ "@osdlc/command-seam": "^0.9.1",
47
+ "@osdlc/config-layers": "^0.7.0",
48
+ "@osdlc/trust-repo": "^0.2.2",
49
+ "@osdlc/typed-git": "^0.7.0",
50
+ "@osdlc/system-model": "^0.4.0"
51
+ },
52
+ "devDependencies": {
53
+ "@types/node": "^26.1.0",
54
+ "@vitest/coverage-v8": "^5.0.5",
55
+ "jsdom": "^26.1.0",
56
+ "oxlint": "^1.65.0",
57
+ "prettier": "3.9.6",
58
+ "rolldown": "^1.2.14",
59
+ "typescript": "~6.0.3",
60
+ "vitest": "^5.0.5",
61
+ "@osdlc/tsconfig": "^0.4.1",
62
+ "@osdlc/prettier-config": "^0.3.1"
63
+ },
64
+ "scripts": {
65
+ "build": "tsc -p tsconfig.build.json && node scripts/build-web.mjs",
66
+ "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
67
+ "test": "vitest run",
68
+ "smoke": "node tests/smoke.mjs",
69
+ "coverage": "vitest run --coverage",
70
+ "format": "prettier --write .",
71
+ "format:check": "prettier --check .",
72
+ "lint": "oxlint .",
73
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.build.json --noEmit"
74
+ }
30
75
  }