@dbx-tools/cli-service 0.9.131 → 0.9.136
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 +11 -12
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# @dbx-tools/cli-service
|
|
2
2
|
|
|
3
|
-
Add
|
|
4
|
-
Python dependencies, and a tray menu to a Commander CLI.
|
|
5
|
-
|
|
6
|
-
`service` commands on macOS, Linux, and Windows.
|
|
3
|
+
Add current-user service installation, lifecycle commands, optional uv-managed
|
|
4
|
+
Python dependencies, and a tray menu to a Commander CLI. The managed command
|
|
5
|
+
continues after its terminal closes on macOS, Linux, and Windows.
|
|
7
6
|
|
|
8
|
-
## Add
|
|
7
|
+
## Add service commands
|
|
9
8
|
|
|
10
9
|
```ts
|
|
11
10
|
import { buildServiceCommand } from "@dbx-tools/cli-service/cli";
|
|
@@ -27,7 +26,7 @@ await program.parseAsync(process.argv);
|
|
|
27
26
|
`defineService` uses the owning package's name, version, and default executable.
|
|
28
27
|
Use `command.binName` when the package has multiple executable entries. Set
|
|
29
28
|
`command.executable` to run an existing external program instead of compiling a
|
|
30
|
-
package entrypoint. Managed commands default `NODE_ENV` to `production
|
|
29
|
+
package entrypoint. Managed commands default `NODE_ENV` to `production`. An
|
|
31
30
|
explicit `command.environment.NODE_ENV` overrides it.
|
|
32
31
|
|
|
33
32
|
Set `pythonPackage` when the compiled service command needs a Python runtime:
|
|
@@ -70,7 +69,7 @@ defineService(import.meta.url, {
|
|
|
70
69
|
});
|
|
71
70
|
```
|
|
72
71
|
|
|
73
|
-
## Install
|
|
72
|
+
## Install and manage the service
|
|
74
73
|
|
|
75
74
|
For the example program above:
|
|
76
75
|
|
|
@@ -96,16 +95,16 @@ The service belongs to the current user. Login startup uses a LaunchAgent on
|
|
|
96
95
|
macOS, an XDG autostart entry on Linux, and a Startup command on Windows. Package
|
|
97
96
|
entrypoints are compiled with Bun into `~/.dbx-tools/bin`.
|
|
98
97
|
|
|
99
|
-
`restart` stops and starts the installed executable
|
|
98
|
+
`restart` stops and starts the installed executable. It does not rebuild it.
|
|
100
99
|
Re-run `install` after upgrading a consuming package to replace compiled
|
|
101
100
|
executables and update the saved configuration.
|
|
102
101
|
|
|
103
|
-
## Customize
|
|
102
|
+
## Customize the tray menu
|
|
104
103
|
|
|
105
104
|
The default tray menu shows the program name and version and offers `Quit`.
|
|
106
105
|
Add URL, command, or separator items through the service definition. Custom
|
|
107
|
-
command items can select a package binary or an external executable
|
|
108
|
-
the main service command.
|
|
106
|
+
command items can select a package binary or an external executable in the same
|
|
107
|
+
way as the main service command.
|
|
109
108
|
|
|
110
109
|
Use this package when adding service support to another CLI so users get the
|
|
111
110
|
same installation, lifecycle commands, and tray behavior. The generated
|
|
@@ -113,7 +112,7 @@ reference uses `<cli>` as a placeholder for the consuming program's name.
|
|
|
113
112
|
|
|
114
113
|
<!-- cli-reference:start -->
|
|
115
114
|
|
|
116
|
-
## Command
|
|
115
|
+
## Command reference
|
|
117
116
|
|
|
118
117
|
### `<cli> service`
|
|
119
118
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/cli-service";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.136";
|
|
7
7
|
export * as cli from "./src/cli.ts";
|
|
8
8
|
export * as definition from "./src/definition.ts";
|
|
9
9
|
export * as icon from "./src/icon.ts";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PACKAGE_IDENTIFIER = "@dbx-tools/cli-service";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.9.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.9.136";
|
|
3
3
|
export * as cli from "./src/cli.ts";
|
|
4
4
|
export * as definition from "./src/definition.ts";
|
|
5
5
|
export * as icon from "./src/icon.ts";
|
package/lib/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/cli-service";
|
|
5
|
-
export const PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.136";
|
|
6
6
|
export * as cli from "./src/cli.js";
|
|
7
7
|
export * as definition from "./src/definition.js";
|
|
8
8
|
export * as icon from "./src/icon.js";
|
|
9
9
|
export * as service from "./src/service.js";
|
|
10
10
|
export { CliServiceCommandSchema, CliServiceMenuItemSchema, CliServicePythonPackageSchema, CliServiceDefinitionSchema } from "./src/definition.js";
|
|
11
11
|
export { CliServiceInstallOptionsSchema, CliService } from "./src/service.js";
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQ0FBMkM7QUFDM0MsbURBQW1EO0FBQ25ELHdFQUF3RTtBQUV4RSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyx3QkFBd0IsQ0FBQztBQUMzRCxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsU0FBUyxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxHQUFHLE1BQU0sY0FBYyxDQUFDO0FBQ3BDLE9BQU8sS0FBSyxVQUFVLE1BQU0scUJBQXFCLENBQUM7QUFDbEQsT0FBTyxLQUFLLElBQUksTUFBTSxlQUFlLENBQUM7QUFDdEMsT0F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x-tools/core": "^0.9.136",
|
|
27
|
+
"@dbx-tools/shared-core": "^0.9.136",
|
|
28
28
|
"bun": "1.4.2",
|
|
29
29
|
"commander": "^15.0.0",
|
|
30
30
|
"systray2": "^2.1.4",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"./package.json": "./package.json"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"version": "0.9.
|
|
67
|
+
"version": "0.9.136",
|
|
68
68
|
"types": "./lib/index.d.ts",
|
|
69
69
|
"dbxToolsConfig": {
|
|
70
70
|
"tags": [
|