@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.
- package/CHANGELOG.md +100 -0
- package/CONTRIBUTING.md +6 -1
- package/README.md +31 -11
- package/dist/args.d.ts +7 -8
- package/dist/args.js +7 -8
- package/dist/catalog.d.ts +26 -3
- package/dist/catalog.js +65 -12
- package/dist/clean-command.d.ts +3 -1
- package/dist/clean-command.js +23 -11
- package/dist/cli.js +3 -3
- package/dist/commands/browse.js +4 -2
- package/dist/commands/index.js +1 -1
- package/dist/commands/list.d.ts +21 -2
- package/dist/commands/list.js +85 -9
- package/dist/commands/query.js +1 -1
- package/dist/commands/run.js +1 -1
- package/dist/commands/shared.js +2 -1
- package/dist/config-keys.d.ts +4 -0
- package/dist/config-keys.js +4 -0
- package/dist/config.d.ts +24 -9
- package/dist/config.js +64 -18
- package/dist/core/run.d.ts +2 -1
- package/dist/core/run.js +10 -2
- package/dist/core/saved-view.d.ts +2 -7
- package/dist/core/saved-view.js +5 -12
- package/dist/core/session.d.ts +32 -6
- package/dist/core/session.js +86 -36
- package/dist/core/writes.d.ts +13 -0
- package/dist/core/writes.js +22 -0
- package/dist/document-schemas.generated.js +6 -0
- package/dist/documents.d.ts +90 -1
- package/dist/documents.js +39 -12
- package/dist/guide.js +2 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +8 -5
- package/dist/providers-command.d.ts +2 -2
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +1 -1
- package/dist/serve/auth.js +3 -16
- package/dist/serve/catalog-share.d.ts +13 -1
- package/dist/serve/catalog-share.js +42 -3
- package/dist/serve/index.d.ts +5 -3
- package/dist/serve/index.js +20 -12
- package/dist/serve/routes.d.ts +1 -1
- package/dist/serve/routes.js +1 -26
- package/dist/terminal-text.d.ts +4 -4
- package/dist/terminal-text.js +17 -12
- package/dist/tool-info.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/tui/app.d.ts +15 -2
- package/dist/tui/app.js +189 -43
- package/dist/tui/index.js +3 -3
- package/dist/vocabulary.d.ts +7 -1
- package/dist/vocabulary.js +5 -1
- package/dist/web/main.js +345 -59
- package/dist/web/page.html +2 -0
- package/dist/web/styles.css +56 -0
- package/dist/xdg.d.ts +0 -7
- package/dist/xdg.js +0 -14
- package/package.json +16 -14
- package/schema/config.json +14 -1
package/dist/web/styles.css
CHANGED
|
@@ -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.
|
|
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/
|
|
59
|
-
"@osdlc/
|
|
60
|
-
"@osdlc/
|
|
61
|
-
"@osdlc/
|
|
62
|
-
"@osdlc/
|
|
63
|
-
"@osdlc/
|
|
64
|
-
"@osdlc/
|
|
65
|
-
"@osdlc/
|
|
66
|
-
"@osdlc/
|
|
67
|
-
"@osdlc/
|
|
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/
|
|
80
|
-
"@osdlc/
|
|
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
|
|
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",
|
package/schema/config.json
CHANGED
|
@@ -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.
|
|
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."
|