@cmdless/ui 0.0.4 → 0.0.6

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 "Deploy to production?" --detail "3 services will restart." --button Deploy --button Cancel --cancel 1 --checkbox "Don't ask again"
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 what was chosen: `{ response, checkboxChecked }`, where `response` is the button's index. `--detail` adds smaller text under the message, `--button <label>` (repeated) sets the buttons in order (just OK without any), `--default`/`--cancel <index>` pick what Enter and Escape choose, and `--checkbox <label>` (with `--checked` to start it ticked) adds a checkbox.
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,130 @@
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();
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
+ // the options every command takes for its host
9
+ const onHost = (command) => command
10
+ .option('--app <name>', 'App name: the host to show it on, joined if it is already running')
11
+ .option('--root <path>', 'cmdless root to run the host from')
12
+ .option('--timeout <ms>', 'How long the host gets to start', Number);
13
+ // the options a command showing a window takes for how it looks
14
+ const inWindow = (command, title = 'Title of the window') => command
15
+ .option('--width <number>', 'Width of the window', Number)
16
+ .option('--height <number>', 'Height of the window', Number)
17
+ .option('--title <title>', title);
18
+ // a command's options split in two: the host's, as UIHost wants them, and
19
+ // the rest
20
+ function hostFrom({ app, root, timeout, ...rest }) {
21
+ const host = { app, cmdlessRoot: root, timeoutMs: timeout };
22
+ return [host, rest];
23
+ }
24
+ const program = new Command().name('ui').enablePositionalOptions();
25
+ // shows a window on a host - this one's own, unless --app names one to join -
26
+ // and prints the value it ends with
27
+ inWindow(onHost(program
28
+ .command('window').description('Show a window, and print the value it ends with')
29
+ .addArgument(new Argument('<type>', 'Source type to show in the window').choices(types.ShowTypes))
30
+ .argument('<source>', 'File or URL to open in the window')), 'Title of the window, kept whatever the page calls itself')
31
+ .option('--redirect <prefix>', 'End the window when it navigates to a URL starting with this, resolving to that URL')
32
+ .option('--external', 'Show a third party\'s pages: no preload, a browser user agent, popups as child windows')
33
+ .action(async (type, source, options) => {
34
+ const [host, { width, height, title, ...page }] = hostFrom(options);
35
+ process.stdout.write(binOutput(await UIHost.showWindow({ type, source, ...page, window: { width, height, title } }, host)));
36
+ });
37
+ // --button can be given more than once, each adding a button
38
+ const collect = (value, previous = []) => [...previous, value];
39
+ // shows a message box on a host, and prints what was chosen: the button's
40
+ // index, and whether the checkbox ended ticked
41
+ onHost(program
42
+ .command('dialog').description('Show a message box, and print the button that was chosen')
43
+ .addArgument(new Argument('<type>', 'Type of message').choices(types.MessageBoxTypes))
44
+ .argument('<message>', 'Message to show')
45
+ .option('--detail <text>', 'Smaller text under the message')
46
+ .option('--button <label>', 'A button to choose from, in order - repeat for more (default: OK)', collect)
47
+ .option('--default <index>', 'Index of the button Enter chooses', Number)
48
+ .option('--cancel <index>', 'Index of the button Escape (or closing it) chooses', Number)
49
+ .option('--checkbox <label>', 'A checkbox under the message')
50
+ .option('--checked', 'Start the checkbox ticked'))
51
+ .action(async (type, message, options) => {
52
+ const [host, { detail, button: buttons, default: defaultId, cancel: cancelId, checkbox: checkboxLabel, checked: checkboxChecked }] = hostFrom(options);
53
+ const value = await UIHost.showDialog({ type, message, detail, buttons, defaultId, cancelId, checkboxLabel, checkboxChecked }, host);
54
+ process.stdout.write(binOutput(value));
55
+ });
56
+ // a JSON file's contents
57
+ const readJson = async (file) => JSON.parse(await readFile(file, 'utf8'));
58
+ // shows an Adaptive Card on a host, and prints the Action.Submit chosen on
59
+ // it - nothing, and exit code 1, if it was closed instead
60
+ inWindow(onHost(program
61
+ .command('card').description('Show an Adaptive Card, and print the Submit action chosen on it with its inputs')
62
+ .argument('<file>', 'Adaptive Card JSON file (already expanded: no ${} bindings)')
63
+ .option('--host-config <file>', 'Adaptive Cards host config JSON file')))
64
+ .action(async (file, options) => {
65
+ const [host, { hostConfig, ...window }] = hostFrom(options);
66
+ const value = await UIHost.showCard({
67
+ window,
68
+ card: await readJson(file),
69
+ hostConfig: hostConfig ? await readJson(hostConfig) : undefined,
70
+ }, host);
71
+ if (value === undefined)
72
+ process.exitCode = 1;
73
+ else
74
+ process.stdout.write(binOutput(value));
75
+ });
76
+ // shows a JSON Schema form on a host, and prints the data it was submitted
77
+ // with - nothing, and exit code 1, if it was cancelled
78
+ inWindow(onHost(program
79
+ .command('form').description('Show a JSON Schema form, and print the data it was submitted with')
80
+ .argument('<schema>', 'JSON Schema file')
81
+ .option('--ui-schema <file>', 'react-jsonschema-form uiSchema JSON file')
82
+ .option('--data <file>', 'JSON file of the values to start with')
83
+ .option('--submit-text <text>', 'What the submit button says')))
84
+ .action(async (schema, options) => {
85
+ const [host, { uiSchema, data, submitText, ...window }] = hostFrom(options);
86
+ const value = await UIHost.showForm({
87
+ window,
88
+ submitText,
89
+ schema: await readJson(schema),
90
+ uiSchema: uiSchema ? await readJson(uiSchema) : undefined,
91
+ formData: data ? await readJson(data) : undefined,
92
+ }, host);
93
+ if (value === undefined)
94
+ process.exitCode = 1;
95
+ else
96
+ process.stdout.write(binOutput(value));
97
+ });
98
+ // asks an elicitation (MCP's or ACP's, form mode) as a card, and prints its
99
+ // answer: { action: accept, content } or { action: decline | cancel }
100
+ inWindow(onHost(program
101
+ .command('elicit').description('Ask an elicitation as a card, and print its result')
102
+ .argument('<file>', 'JSON file of the request: { message, requestedSchema }')))
103
+ .action(async (file, options) => {
104
+ const [host, window] = hostFrom(options);
105
+ const request = await readJson(file);
106
+ process.stdout.write(binOutput(await UIHost.showElicitation({ ...request, window }, host)));
107
+ });
108
+ // asks a permission request (ACP's) as a card, and prints its outcome:
109
+ // { outcome: selected, optionId } or { outcome: cancelled }
110
+ inWindow(onHost(program
111
+ .command('permission').description('Ask a permission request as a card, and print its outcome')
112
+ .argument('<file>', 'JSON file of the request: { title, description?, options: [{ optionId, name, kind }] }')))
113
+ .action(async (file, options) => {
114
+ const [host, window] = hostFrom(options);
115
+ const request = await readJson(file);
116
+ process.stdout.write(binOutput(await UIHost.showPermission({ ...request, window }, host)));
117
+ });
118
+ // runs a package's bin from cmdless's own package cache, installing it the
119
+ // first time, and prints what it printed
5
120
  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);
121
+ .command('package').description('Run a package\'s bin from the cmdless cache, passing the rest of the arguments on')
122
+ .argument('<specifier>', 'Package to run, with a version if wanted (name@version)')
123
+ .argument('[args...]', 'Arguments for the package\'s bin')
124
+ .allowUnknownOption()
125
+ .passThroughOptions()
126
+ .action(async (specifier, args) => {
127
+ process.stdout.write(await runAsPackage({ specifier }, args));
13
128
  });
14
129
  await program.parseAsync();
15
130
  //# sourceMappingURL=bin.js.map
package/dist/bin.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,C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,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.6",
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.6"
31
31
  },
32
32
  "devDependencies": {}
33
33
  }