@osdlc/wayfinder 0.8.0 → 0.11.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 (61) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/CONTRIBUTING.md +6 -1
  3. package/README.md +31 -11
  4. package/dist/args.d.ts +7 -8
  5. package/dist/args.js +7 -8
  6. package/dist/catalog.d.ts +26 -3
  7. package/dist/catalog.js +65 -12
  8. package/dist/clean-command.d.ts +3 -1
  9. package/dist/clean-command.js +23 -11
  10. package/dist/cli.js +3 -3
  11. package/dist/commands/browse.js +4 -2
  12. package/dist/commands/index.js +1 -1
  13. package/dist/commands/list.d.ts +21 -2
  14. package/dist/commands/list.js +85 -9
  15. package/dist/commands/query.js +1 -1
  16. package/dist/commands/run.js +1 -1
  17. package/dist/commands/shared.js +2 -1
  18. package/dist/config-keys.d.ts +4 -0
  19. package/dist/config-keys.js +4 -0
  20. package/dist/config.d.ts +24 -9
  21. package/dist/config.js +64 -18
  22. package/dist/core/run.d.ts +2 -1
  23. package/dist/core/run.js +10 -2
  24. package/dist/core/saved-view.d.ts +2 -7
  25. package/dist/core/saved-view.js +5 -12
  26. package/dist/core/session.d.ts +32 -6
  27. package/dist/core/session.js +86 -36
  28. package/dist/core/writes.d.ts +13 -0
  29. package/dist/core/writes.js +22 -0
  30. package/dist/document-schemas.generated.js +6 -0
  31. package/dist/documents.d.ts +90 -1
  32. package/dist/documents.js +39 -12
  33. package/dist/guide.js +2 -2
  34. package/dist/index.d.ts +8 -2
  35. package/dist/index.js +8 -5
  36. package/dist/providers-command.d.ts +2 -2
  37. package/dist/schema.d.ts +1 -1
  38. package/dist/schema.js +1 -1
  39. package/dist/serve/auth.js +3 -16
  40. package/dist/serve/catalog-share.d.ts +13 -1
  41. package/dist/serve/catalog-share.js +42 -3
  42. package/dist/serve/index.d.ts +5 -3
  43. package/dist/serve/index.js +20 -12
  44. package/dist/serve/routes.d.ts +1 -1
  45. package/dist/serve/routes.js +1 -26
  46. package/dist/terminal-text.d.ts +4 -4
  47. package/dist/terminal-text.js +17 -12
  48. package/dist/tool-info.d.ts +2 -2
  49. package/dist/tools.js +1 -1
  50. package/dist/tui/app.d.ts +15 -2
  51. package/dist/tui/app.js +189 -43
  52. package/dist/tui/index.js +3 -3
  53. package/dist/vocabulary.d.ts +7 -1
  54. package/dist/vocabulary.js +5 -1
  55. package/dist/web/main.js +345 -59
  56. package/dist/web/page.html +2 -0
  57. package/dist/web/styles.css +56 -0
  58. package/dist/xdg.d.ts +0 -7
  59. package/dist/xdg.js +0 -14
  60. package/package.json +16 -14
  61. package/schema/config.json +14 -1
@@ -682,6 +682,52 @@ main {
682
682
  color: var(--wf-text-muted);
683
683
  }
684
684
 
685
+ /* A runner the first probe has not heard from yet: a quiet tab and a row,
686
+ each with a spinner, until its rows arrive. */
687
+ .tab-loading {
688
+ font: 13px/1 system-ui;
689
+ padding: 9px 14px;
690
+ color: var(--wf-text-muted);
691
+ white-space: nowrap;
692
+ gap: 6px;
693
+ }
694
+ .loading-rows {
695
+ padding: 8px 0;
696
+ }
697
+ .loading-row {
698
+ display: flex;
699
+ align-items: center;
700
+ gap: 8px;
701
+ padding: 5px 0;
702
+ color: var(--wf-text-secondary);
703
+ }
704
+ .loading-row .muted {
705
+ color: var(--wf-text-muted);
706
+ }
707
+ .loading-note {
708
+ color: var(--wf-text-secondary);
709
+ }
710
+ .spinner {
711
+ width: 10px;
712
+ height: 10px;
713
+ flex: none;
714
+ border-radius: 50%;
715
+ border: 2px solid var(--wf-control-border);
716
+ border-top-color: var(--wf-accent);
717
+ animation: spin 0.8s linear infinite;
718
+ }
719
+ @keyframes spin {
720
+ to {
721
+ transform: rotate(360deg);
722
+ }
723
+ }
724
+ @media (prefers-reduced-motion: reduce) {
725
+ .spinner {
726
+ animation: none;
727
+ border-top-color: var(--wf-control-border);
728
+ }
729
+ }
730
+
685
731
  /* The call-chain tree: each level indents one step, and leaves are table
686
732
  rows. Every header sticks below the sticky header and below its own
687
733
  parents, at a top offset this depth's inline style sets. A header stops
@@ -1627,3 +1673,13 @@ kbd {
1627
1673
  .tool-facts dt {
1628
1674
  margin: 0;
1629
1675
  }
1676
+
1677
+ /* Read by screen readers, not drawn. */
1678
+ .sr-only {
1679
+ position: absolute;
1680
+ width: 1px;
1681
+ height: 1px;
1682
+ overflow: hidden;
1683
+ clip-path: inset(50%);
1684
+ white-space: nowrap;
1685
+ }
package/dist/xdg.d.ts CHANGED
@@ -73,10 +73,3 @@ export declare function pre08Bases(env: Record<string, string | undefined>, home
73
73
  state: string;
74
74
  cache: string;
75
75
  };
76
- /**
77
- * Expand a leading `~` against `home`, and `~\` too on Windows; anything
78
- * else is returned unchanged.
79
- * direnv, `.env` loaders and CI YAML pass a literal tilde through, and
80
- * `<cwd>/~/x` would be a silent wrong answer.
81
- */
82
- export declare function expandTilde(path: string, home: string, platform?: NodeJS.Platform): string;
package/dist/xdg.js CHANGED
@@ -73,17 +73,3 @@ export function pre08Bases(env, home) {
73
73
  cache: xdgHome(env, home, 'XDG_CACHE_HOME', '.cache'),
74
74
  };
75
75
  }
76
- /**
77
- * Expand a leading `~` against `home`, and `~\` too on Windows; anything
78
- * else is returned unchanged.
79
- * direnv, `.env` loaders and CI YAML pass a literal tilde through, and
80
- * `<cwd>/~/x` would be a silent wrong answer.
81
- */
82
- export function expandTilde(path, home, platform = process.platform) {
83
- if (path === '~')
84
- return home;
85
- if (path.startsWith('~/') || (platform === 'win32' && path.startsWith('~\\'))) {
86
- return join(home, path.slice(2));
87
- }
88
- return path;
89
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osdlc/wayfinder",
3
- "version": "0.8.0",
3
+ "version": "0.11.1",
4
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",
@@ -55,16 +55,17 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "zod": "4.4.3",
58
- "@osdlc/cli-tool": "^0.9.0",
59
- "@osdlc/command-seam": "^0.12.0",
60
- "@osdlc/config-layers": "^0.7.3",
61
- "@osdlc/detect-harness": "^0.5.0",
62
- "@osdlc/etag-write": "^0.2.1",
63
- "@osdlc/system-model": "^0.5.0",
64
- "@osdlc/trust-repo": "^0.4.0",
65
- "@osdlc/typed-git": "^0.8.1",
66
- "@osdlc/tiered-dirs": "^0.4.0",
67
- "@osdlc/ux": "^0.1.0"
58
+ "@osdlc/command-seam": "^0.14.0",
59
+ "@osdlc/cli-tool": "^0.10.1",
60
+ "@osdlc/detect-harness": "^0.7.0",
61
+ "@osdlc/etag-write": "^0.3.0",
62
+ "@osdlc/path-guard": "^0.3.1",
63
+ "@osdlc/config-layers": "^0.8.0",
64
+ "@osdlc/system-model": "^0.7.1",
65
+ "@osdlc/tiered-dirs": "^0.5.0",
66
+ "@osdlc/trust-repo": "^0.5.1",
67
+ "@osdlc/typed-git": "^0.10.0",
68
+ "@osdlc/ux": "^0.1.1"
68
69
  },
69
70
  "devDependencies": {
70
71
  "@types/node": "^26.1.0",
@@ -76,11 +77,12 @@
76
77
  "typescript": "~6.0.3",
77
78
  "vitest": "^5.0.5",
78
79
  "@osdlc/prettier-config": "^0.3.1",
79
- "@osdlc/tsconfig": "^0.4.1",
80
- "@osdlc/color": "^1.1.0"
80
+ "@osdlc/color": "^1.1.0",
81
+ "@osdlc/tsconfig": "^0.4.1"
81
82
  },
82
83
  "scripts": {
83
- "build": "node scripts/write-document-schemas.ts && tsc -p tsconfig.build.json && node scripts/build-web.mjs && node scripts/write-config-schema.mjs",
84
+ "build": "node scripts/write-document-schemas.ts && tsc -p tsconfig.build.json && node scripts/build-web.mjs",
85
+ "write:config-schema": "node scripts/write-config-schema.mjs",
84
86
  "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
85
87
  "test": "vitest run",
86
88
  "test:e2e": "vitest run tests/e2e",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://unpkg.com/@osdlc/wayfinder@0.8/schema/config.json",
3
+ "$id": "https://unpkg.com/@osdlc/wayfinder@0.11/schema/config.json",
4
4
  "title": "wayfinder configuration",
5
5
  "type": "object",
6
6
  "properties": {
@@ -24,6 +24,19 @@
24
24
  "type": "string"
25
25
  },
26
26
  "description": "Preferred display order. Runners not named follow alphabetically."
27
+ },
28
+ "timeout": {
29
+ "anyOf": [
30
+ {
31
+ "type": "number",
32
+ "minimum": 1,
33
+ "maximum": 3600
34
+ },
35
+ {
36
+ "type": "null"
37
+ }
38
+ ],
39
+ "description": "Seconds one runner may take to list its tasks, its subprocesses included. A runner still running then is stopped and shows \"timed out\". null (the default): each runner has its own limit, 10 for just and task, 30 for mise and rake, 120 for moon, 300 for gradle and sbt, 60 for the rest. A project file can only lower a limit: each runner takes the smaller of its value and the limit it would have."
27
40
  }
28
41
  },
29
42
  "description": "Which runners are read, and in what order they are shown."