@cmdless/ui 0.0.4 → 0.0.5

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/README.md CHANGED
@@ -1,17 +1,29 @@
1
1
  # @cmdless/ui
2
2
 
3
- Thin CLI entry point for cmdless UI. It doesn't do any UI itself — it caches and runs the actual package that does.
4
-
5
- By default, it caches and forwards to [`@cmdless/ui-runtime`](../ui-runtime), matched to the version of `@cmdless/ui-sdk` it was installed with:
3
+ One-shot commands for cmdless UI. Each shows one thing on a host (through `UIHost` from [`@cmdless/ui-sdk`](../../packages/ui-sdk)), prints the value it ended with, and exits.
6
4
 
7
5
  ```
8
- npx @cmdless/ui show url https://example.com
6
+ npx @cmdless/ui window url https://example.com
7
+ npx @cmdless/ui dialog question "Continue?"
8
+ npx @cmdless/ui card samples/approval.card.json
9
+ npx @cmdless/ui form samples/settings.schema.json --ui-schema samples/settings.ui.json --data samples/settings.data.json
10
+ npx @cmdless/ui elicit samples/elicitation.json
11
+ npx @cmdless/ui permission samples/permission.json
9
12
  ```
10
13
 
11
- Pass `-p, --package <specifier>` to cache and run a different package instead:
14
+ - `window <url|file> <source>` — show a window, and print the value it ends with (its renderer's resolve, or the URL a `--redirect` caught). Options: `--width`, `--height`, `--redirect`, `--external`, `--title`.
15
+ - `dialog <type> <message>` — show a message box, and print the button that was chosen.
16
+ - `card <file>` — show an [Adaptive Card](https://adaptivecards.io) (already expanded: no `${}` bindings), and print the `Action.Submit` chosen on it as JSON (`{ action, inputs }`); closing it prints nothing and exits 1. Links open in the browser; `Action.Execute` (an event for a long-lived card, through `UIHost`) isn't printed. Options: `--host-config`, `--width`, `--height`, `--title`.
17
+ - `form <schema>` — show a JSON Schema form ([react-jsonschema-form](https://rjsf-team.github.io/react-jsonschema-form/), in Mantine), and print the data it was submitted with; cancelling prints nothing and exits 1. Options: `--ui-schema`, `--data`, `--submit-text`, `--width`, `--height`, `--title`.
18
+ - `elicit <file>` — ask an elicitation (MCP's or ACP's, form mode: `{ message, requestedSchema }`) as a card with the schema as a form, and print its result: `{ action: "accept", content }`, `{ action: "decline" }`, or `{ action: "cancel" }` if it's closed.
19
+ - `permission <file>` — ask a permission request (ACP's: `{ title, description?, options: [{ optionId, name, kind }] }`) as a card with a button per option, and print its outcome: `{ outcome: "selected", optionId }`, or `{ outcome: "cancelled" }` if it's closed.
20
+
21
+ Both take `--app <name>` to show it on that app's host (joined if it's already running), plus `--root` and `--timeout`. Without `--app`, each runs on a throwaway host of its own.
22
+
23
+ `package <specifier> [args...]` caches and runs a different package's bin instead, passing the rest of the arguments on:
12
24
 
13
25
  ```
14
- npx @cmdless/ui -p some-other-cli@1.2.3 --some-flag
26
+ npx @cmdless/ui package some-other-cli@1.2.3 --some-flag
15
27
  ```
16
28
 
17
29
  Packages are cached under `~/.cmdless` (or `$CMDLESS_ROOT`) on first use and reused on subsequent runs.
package/dist/bin.js CHANGED
@@ -1,15 +1,139 @@
1
1
  #!/usr/bin/env node
2
- import { Command } from 'commander';
3
- import { runAsPackage, runAsRuntime } from '@cmdless/ui-sdk/node';
4
- const program = new Command();
5
- program
6
- .option('-p, --package <specifier>')
7
- .argument('[args...]')
8
- .action(async (args, options) => {
9
- const buffer = options.package
10
- ? await runAsPackage({ specifier: options.package }, args)
11
- : await runAsRuntime(import.meta, args);
12
- process.stdout.write(buffer);
2
+ import { readFile } from 'node:fs/promises';
3
+ import { Argument, Command } from 'commander';
4
+ import { types } from '@cmdless/ui-sdk';
5
+ import { runAsPackage, UIHost } from '@cmdless/ui-sdk/node';
6
+ // how a one-shot command prints the value it ended with
7
+ const binOutput = (value) => typeof value === 'string' ? value : JSON.stringify(value);
8
+ const hostOptions = ({ app, root, timeout }) => ({ app, cmdlessRoot: root, timeoutMs: timeout });
9
+ const program = new Command().name('ui').enablePositionalOptions();
10
+ // shows a window on a host - this one's own, unless --app names one to join -
11
+ // and prints the value it ends with
12
+ program
13
+ .command('window').description('Show a window, and print the value it ends with')
14
+ .addArgument(new Argument('<type>', 'Source type to show in the window').choices(types.ShowTypes))
15
+ .argument('<source>', 'File or URL to open in the window')
16
+ .option('--app <name>', 'App name: the host to show it on, joined if it is already running')
17
+ .option('--root <path>', 'cmdless root to run the host from')
18
+ .option('--timeout <ms>', 'How long the host gets to start', Number)
19
+ .option('--width <number>', 'Width of the window', Number)
20
+ .option('--height <number>', 'Height of the window', Number)
21
+ .option('--redirect <prefix>', 'End the window when it navigates to a URL starting with this, resolving to that URL')
22
+ .option('--external', 'Show a third party\'s pages: no preload, a browser user agent, popups as child windows')
23
+ .option('--title <title>', 'Title of the window, kept whatever the page calls itself')
24
+ .action(async (type, source, options) => {
25
+ const { app, root, timeout, width, height, title, ...page } = options;
26
+ const value = await UIHost.showWindow(hostOptions({ app, root, timeout }), { type, source, ...page, window: { width, height, title } });
27
+ process.stdout.write(binOutput(value));
28
+ });
29
+ // shows a message box on a host, and prints what was chosen
30
+ program
31
+ .command('dialog').description('Show a message box, and print the button that was chosen')
32
+ .addArgument(new Argument('<type>', 'Type of message').choices(types.MessageBoxTypes))
33
+ .argument('<message>', 'Message to show')
34
+ .option('--app <name>', 'App name: the host to show it on, joined if it is already running')
35
+ .option('--root <path>', 'cmdless root to run the host from')
36
+ .option('--timeout <ms>', 'How long the host gets to start', Number)
37
+ .action(async (type, message, options) => {
38
+ const value = await UIHost.showDialog(hostOptions(options), { type, message });
39
+ process.stdout.write(binOutput(value));
40
+ });
41
+ // a JSON file's contents
42
+ const readJson = async (file) => JSON.parse(await readFile(file, 'utf8'));
43
+ // shows an Adaptive Card on a host, and prints the Action.Submit chosen on
44
+ // it - nothing, and exit code 1, if it was closed instead
45
+ program
46
+ .command('card').description('Show an Adaptive Card, and print the Submit action chosen on it with its inputs')
47
+ .argument('<file>', 'Adaptive Card JSON file (already expanded: no ${} bindings)')
48
+ .option('--host-config <file>', 'Adaptive Cards host config JSON file')
49
+ .option('--app <name>', 'App name: the host to show it on, joined if it is already running')
50
+ .option('--root <path>', 'cmdless root to run the host from')
51
+ .option('--timeout <ms>', 'How long the host gets to start', Number)
52
+ .option('--width <number>', 'Width of the window', Number)
53
+ .option('--height <number>', 'Height of the window', Number)
54
+ .option('--title <title>', 'Title of the window')
55
+ .action(async (file, options) => {
56
+ const { app, root, timeout, hostConfig, ...window } = options;
57
+ const value = await UIHost.showCard(hostOptions({ app, root, timeout }), {
58
+ window,
59
+ card: await readJson(file),
60
+ hostConfig: hostConfig ? await readJson(hostConfig) : undefined,
61
+ });
62
+ if (value === undefined)
63
+ process.exitCode = 1;
64
+ else
65
+ process.stdout.write(binOutput(value));
66
+ });
67
+ // shows a JSON Schema form on a host, and prints the data it was submitted
68
+ // with - nothing, and exit code 1, if it was cancelled
69
+ program
70
+ .command('form').description('Show a JSON Schema form, and print the data it was submitted with')
71
+ .argument('<schema>', 'JSON Schema file')
72
+ .option('--ui-schema <file>', 'react-jsonschema-form uiSchema JSON file')
73
+ .option('--data <file>', 'JSON file of the values to start with')
74
+ .option('--submit-text <text>', 'What the submit button says')
75
+ .option('--app <name>', 'App name: the host to show it on, joined if it is already running')
76
+ .option('--root <path>', 'cmdless root to run the host from')
77
+ .option('--timeout <ms>', 'How long the host gets to start', Number)
78
+ .option('--width <number>', 'Width of the window', Number)
79
+ .option('--height <number>', 'Height of the window', Number)
80
+ .option('--title <title>', 'Title of the window')
81
+ .action(async (schema, options) => {
82
+ const { app, root, timeout, uiSchema, data, submitText, ...window } = options;
83
+ const value = await UIHost.showForm(hostOptions({ app, root, timeout }), {
84
+ window,
85
+ submitText,
86
+ schema: await readJson(schema),
87
+ uiSchema: uiSchema ? await readJson(uiSchema) : undefined,
88
+ formData: data ? await readJson(data) : undefined,
89
+ });
90
+ if (value === undefined)
91
+ process.exitCode = 1;
92
+ else
93
+ process.stdout.write(binOutput(value));
94
+ });
95
+ // asks an elicitation (MCP's or ACP's, form mode) as a card, and prints its
96
+ // answer: { action: accept, content } or { action: decline | cancel }
97
+ program
98
+ .command('elicit').description('Ask an elicitation as a card, and print its result')
99
+ .argument('<file>', 'JSON file of the request: { message, requestedSchema }')
100
+ .option('--app <name>', 'App name: the host to show it on, joined if it is already running')
101
+ .option('--root <path>', 'cmdless root to run the host from')
102
+ .option('--timeout <ms>', 'How long the host gets to start', Number)
103
+ .option('--width <number>', 'Width of the window', Number)
104
+ .option('--height <number>', 'Height of the window', Number)
105
+ .option('--title <title>', 'Title of the window')
106
+ .action(async (file, options) => {
107
+ const { app, root, timeout, ...window } = options;
108
+ const request = await readJson(file);
109
+ process.stdout.write(binOutput(await UIHost.showElicitation(hostOptions({ app, root, timeout }), { ...request, window })));
110
+ });
111
+ // asks a permission request (ACP's) as a card, and prints its outcome:
112
+ // { outcome: selected, optionId } or { outcome: cancelled }
113
+ program
114
+ .command('permission').description('Ask a permission request as a card, and print its outcome')
115
+ .argument('<file>', 'JSON file of the request: { title, description?, options: [{ optionId, name, kind }] }')
116
+ .option('--app <name>', 'App name: the host to show it on, joined if it is already running')
117
+ .option('--root <path>', 'cmdless root to run the host from')
118
+ .option('--timeout <ms>', 'How long the host gets to start', Number)
119
+ .option('--width <number>', 'Width of the window', Number)
120
+ .option('--height <number>', 'Height of the window', Number)
121
+ .option('--title <title>', 'Title of the window')
122
+ .action(async (file, options) => {
123
+ const { app, root, timeout, ...window } = options;
124
+ const request = await readJson(file);
125
+ process.stdout.write(binOutput(await UIHost.showPermission(hostOptions({ app, root, timeout }), { ...request, window })));
126
+ });
127
+ // runs a package's bin from cmdless's own package cache, installing it the
128
+ // first time, and prints what it printed
129
+ program
130
+ .command('package').description('Run a package\'s bin from the cmdless cache, passing the rest of the arguments on')
131
+ .argument('<specifier>', 'Package to run, with a version if wanted (name@version)')
132
+ .argument('[args...]', 'Arguments for the package\'s bin')
133
+ .allowUnknownOption()
134
+ .passThroughOptions()
135
+ .action(async (specifier, args) => {
136
+ process.stdout.write(await runAsPackage({ specifier }, args));
13
137
  });
14
138
  await program.parseAsync();
15
139
  //# sourceMappingURL=bin.js.map
package/dist/bin.js.map CHANGED
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,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,CAAC;KAC3D,MAAM,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;KAChD,MAAM,CAAC,KAAK,EAAE,IAAY,EAAE,OAAoB,EAAE,EAAE;IACnD,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC;IAClD,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAoB,IAAI,CAAC,CAAC;IACxD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,MAAM,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5H,CAAC,CAAC,CAAC;AAEL,2EAA2E;AAC3E,yCAAyC;AACzC,OAAO;KACJ,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,mFAAmF,CAAC;KACnH,QAAQ,CAAC,aAAa,EAAE,yDAAyD,CAAC;KAClF,QAAQ,CAAC,WAAW,EAAE,kCAAkC,CAAC;KACzD,kBAAkB,EAAE;KACpB,kBAAkB,EAAE;KACpB,MAAM,CAAC,KAAK,EAAE,SAAiB,EAAE,IAAc,EAAE,EAAE;IAClD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;AAChE,CAAC,CAAC,CAAC;AAEL,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cmdless/ui",
3
- "description": "Runtime that wraps Electron convenience UI.",
4
- "version": "0.0.4",
3
+ "description": "One-shot commands for cmdless UI: show a window or a dialog, and print what it ended with.",
4
+ "version": "0.0.5",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "author": {
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "commander": "15.0.0",
30
- "@cmdless/ui-sdk": "0.0.4"
30
+ "@cmdless/ui-sdk": "0.0.5"
31
31
  },
32
32
  "devDependencies": {}
33
33
  }