@osdlc/wayfinder 0.7.4 → 0.9.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 +240 -0
- package/CONTRIBUTING.md +6 -0
- package/README.md +310 -150
- package/SECURITY.md +19 -5
- package/dist/actions.d.ts +23 -0
- package/dist/actions.js +97 -0
- package/dist/app.d.ts +1 -13
- package/dist/app.js +1 -13
- package/dist/args.d.ts +11 -6
- package/dist/args.js +25 -7
- package/dist/cache.d.ts +2 -4
- package/dist/cache.js +5 -10
- package/dist/catalog.d.ts +45 -4
- package/dist/catalog.js +134 -13
- package/dist/clean-command.d.ts +65 -36
- package/dist/clean-command.js +372 -226
- package/dist/cli.d.ts +24 -57
- package/dist/cli.js +139 -568
- package/dist/commands/browse.d.ts +128 -0
- package/dist/commands/browse.js +153 -0
- package/dist/commands/index.d.ts +25 -0
- package/dist/commands/index.js +71 -0
- package/dist/commands/list.d.ts +224 -0
- package/dist/commands/list.js +178 -0
- package/dist/commands/query.d.ts +166 -0
- package/dist/commands/query.js +73 -0
- package/dist/commands/run.d.ts +114 -0
- package/dist/commands/run.js +139 -0
- package/dist/commands/shared.d.ts +152 -0
- package/dist/commands/shared.js +209 -0
- package/dist/config-command.d.ts +27 -43
- package/dist/config-command.js +129 -330
- package/dist/config-keys.d.ts +25 -0
- package/dist/config-keys.js +29 -0
- package/dist/config.d.ts +272 -257
- package/dist/config.js +611 -460
- package/dist/core/copy-text.d.ts +30 -0
- package/dist/core/copy-text.js +50 -0
- package/dist/core/filter.d.ts +55 -0
- package/dist/core/filter.js +59 -0
- package/dist/core/run.d.ts +22 -0
- package/dist/core/run.js +59 -0
- package/dist/core/saved-view.d.ts +59 -0
- package/dist/core/saved-view.js +119 -0
- package/dist/core/session.d.ts +282 -0
- package/dist/core/session.js +602 -0
- package/dist/core/skills.d.ts +53 -0
- package/dist/core/skills.js +54 -0
- package/dist/core/unknowns.d.ts +72 -0
- package/dist/core/unknowns.js +68 -0
- package/dist/devlink.d.ts +3 -0
- package/dist/devlink.js +5 -2
- package/dist/document-schemas.generated.d.ts +22 -0
- package/dist/document-schemas.generated.js +916 -0
- package/dist/documents.d.ts +508 -0
- package/dist/documents.js +181 -0
- package/dist/groups.d.ts +22 -26
- package/dist/groups.js +13 -29
- package/dist/guide.d.ts +26 -13
- package/dist/guide.js +119 -103
- package/dist/index.d.ts +118 -0
- package/dist/index.js +61 -0
- package/dist/keys.d.ts +51 -0
- package/dist/keys.js +273 -0
- package/dist/page.d.ts +18 -8
- package/dist/page.js +28 -17
- package/dist/providers-command.d.ts +81 -20
- package/dist/providers-command.js +33 -75
- package/dist/schema.d.ts +48 -0
- package/dist/schema.js +61 -0
- package/dist/serve/auth.d.ts +46 -0
- package/dist/serve/auth.js +82 -0
- package/dist/serve/catalog-share.d.ts +63 -0
- package/dist/serve/catalog-share.js +155 -0
- package/dist/serve/index.d.ts +100 -0
- package/dist/serve/index.js +259 -0
- package/dist/serve/routes.d.ts +60 -0
- package/dist/serve/routes.js +186 -0
- package/dist/serve/terminal-input.d.ts +50 -0
- package/dist/serve/terminal-input.js +108 -0
- package/dist/skills.d.ts +19 -0
- package/dist/skills.js +54 -0
- package/dist/terminal-text.d.ts +8 -0
- package/dist/terminal-text.js +19 -6
- package/dist/tool-info.d.ts +24 -0
- package/dist/tool-info.js +17 -0
- package/dist/trust-command.d.ts +15 -27
- package/dist/trust-command.js +110 -208
- package/dist/trust-store.d.ts +5 -10
- package/dist/trust-store.js +9 -42
- package/dist/tui/app.d.ts +193 -0
- package/dist/tui/app.js +1400 -0
- package/dist/tui/copy.d.ts +29 -0
- package/dist/tui/copy.js +39 -0
- package/dist/tui/index.d.ts +33 -0
- package/dist/tui/index.js +97 -0
- package/dist/tui/keys-input.d.ts +27 -0
- package/dist/tui/keys-input.js +87 -0
- package/dist/tui/settings.d.ts +94 -0
- package/dist/tui/settings.js +198 -0
- package/dist/tui/style.d.ts +62 -0
- package/dist/tui/style.js +77 -0
- package/dist/version.d.ts +6 -0
- package/dist/version.js +7 -0
- package/dist/vocabulary.d.ts +91 -0
- package/dist/vocabulary.js +155 -0
- package/dist/web/main.js +2232 -582
- package/dist/web/page.html +41 -33
- package/dist/web/styles.css +513 -329
- package/dist/xdg.d.ts +76 -4
- package/dist/xdg.js +77 -5
- package/package.json +27 -8
- package/schema/config.json +133 -0
- package/dist/http.d.ts +0 -22
- package/dist/http.js +0 -149
- package/dist/origin-owner.d.ts +0 -19
- package/dist/origin-owner.js +0 -85
- package/dist/serve.d.ts +0 -98
- package/dist/serve.js +0 -671
- package/dist/tui.d.ts +0 -177
- package/dist/tui.js +0 -840
package/dist/cli.d.ts
CHANGED
|
@@ -1,75 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `way`: browse and run every task in a repository.
|
|
3
3
|
*
|
|
4
|
+
* The commands are a `@osdlc/cli-tool` command tree (`commands/index.ts`).
|
|
5
|
+
* This module is the entry point: it runs `dev`, which parses its own
|
|
6
|
+
* arguments, maps the old surface flags onto commands, and hands the rest to
|
|
7
|
+
* the tree.
|
|
8
|
+
*
|
|
4
9
|
* wayfinder's `allowExec` default is `true`. You usually run it in your own
|
|
5
10
|
* repository, and a task browser that cannot see the build graph is of little
|
|
6
|
-
* use. `--no-exec` turns execution off.
|
|
7
|
-
*
|
|
8
|
-
* The default alone does not allow execution. The repository must also be
|
|
9
|
-
* trusted. `@osdlc/trust-repo`'s `policyExecGate` combines the configured value
|
|
10
|
-
* with the marker store and the user file's `trust.paths`/`trust.owners`
|
|
11
|
-
* policy. Execution happens only once a person, or a policy they configured,
|
|
12
|
-
* has trusted this repository. A configured `false` means no execution, however
|
|
13
|
-
* trusted the repository is.
|
|
11
|
+
* use. `--no-exec` turns execution off. The default alone does not allow
|
|
12
|
+
* execution: the repository must also be trusted (see `core/session.ts`).
|
|
14
13
|
*/
|
|
15
14
|
import { type CliIo } from '@osdlc/cli-tool';
|
|
16
|
-
import
|
|
17
|
-
import { type Mode } from '@osdlc/system-model/match';
|
|
18
|
-
import { type GuideTool } from './guide.ts';
|
|
19
|
-
/** What the `guide` command needs: the complete help, and what it cannot say. */
|
|
20
|
-
export declare const GUIDE_TOOL: GuideTool;
|
|
15
|
+
import type { GuideTool } from './guide.ts';
|
|
21
16
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
17
|
+
* Exit quietly when the reader of `stream` goes away, as `way list --json |
|
|
18
|
+
* head -1` does: the rest of the output has nowhere to go, which is not an
|
|
19
|
+
* error. Any other write error is thrown as before.
|
|
25
20
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/** Answer --json/--list from the stored probe. The UI surfaces always do. */
|
|
30
|
-
cached: boolean;
|
|
31
|
-
allowExec?: boolean;
|
|
32
|
-
open: boolean;
|
|
33
|
-
port?: number;
|
|
34
|
-
only?: string[];
|
|
35
|
-
exclude?: string[];
|
|
36
|
-
/**
|
|
37
|
-
* Repeatable: `--exclude-path a --exclude-path b` means both. Passing any
|
|
38
|
-
* replaces the configured list, as with every other array setting.
|
|
39
|
-
*/
|
|
40
|
-
excludePaths?: string[];
|
|
41
|
-
discovery?: 'git' | 'walk' | 'auto';
|
|
42
|
-
help: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* `query`'s search terms. Present only for a query. In every other mode the
|
|
45
|
-
* one positional is a directory instead.
|
|
46
|
-
*/
|
|
47
|
-
terms?: string[];
|
|
48
|
-
/** `query --json`: the matching tasks, rather than one command line each. */
|
|
49
|
-
json: boolean;
|
|
50
|
-
/** `query --exact`, the terminal UI's `^e`. */
|
|
51
|
-
matchMode: Mode;
|
|
52
|
-
/** `query --services`, the terminal UI's `^t`. */
|
|
53
|
-
servicesOnly: boolean;
|
|
54
|
-
/** `--help --all`: the complete {@link USAGE} rather than {@link SHORT_USAGE}. */
|
|
55
|
-
all: boolean;
|
|
56
|
-
/** `--config` modules, as typed. */
|
|
57
|
-
toolModules: string[];
|
|
58
|
-
}
|
|
21
|
+
export declare function quietOnBrokenPipe(stream: Pick<NodeJS.WriteStream, 'on'>, exit?: (code: number) => void): void;
|
|
22
|
+
/** What the `guide` command needs: the complete help, and what it cannot say. */
|
|
23
|
+
export declare const GUIDE_TOOL: GuideTool;
|
|
59
24
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
25
|
+
* Map the old surface flags onto commands, for this release: `--serve` is
|
|
26
|
+
* `serve`, `--list` is `list`, and `--json` alone is `list --json`. They
|
|
27
|
+
* apply only where no command word is given. Two of them together are
|
|
28
|
+
* refused, since each chooses a surface. `alias` names the flag that was
|
|
29
|
+
* mapped, so the caller can say it is deprecated.
|
|
64
30
|
*/
|
|
65
|
-
export declare function
|
|
31
|
+
export declare function rewriteAliases(argv: readonly string[], commandWords: readonly string[]): {
|
|
32
|
+
argv: string[];
|
|
33
|
+
alias?: string;
|
|
34
|
+
} | {
|
|
66
35
|
error: string;
|
|
67
36
|
};
|
|
68
|
-
/** `--json`'s document: the catalog, its groups, and the cache verdict under `--cached`. */
|
|
69
|
-
export declare function catalogJson(catalog: Catalog, cache?: RunnerCacheState[]): object;
|
|
70
37
|
/**
|
|
38
|
+
* Run `way` with `argv`, the words after the binary. Returns the exit code.
|
|
71
39
|
* `env` and `home` are injectable so a test never reads the developer's own
|
|
72
40
|
* config, cache or trust store. `io` defaults to the real process streams.
|
|
73
41
|
*/
|
|
74
42
|
export declare function main(argv: string[], env?: Record<string, string | undefined>, home?: string, io?: CliIo): Promise<number>;
|
|
75
|
-
export {};
|