@tasklight/cli 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Revaz Zakalashvili
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # @tasklight/cli
2
+
3
+ npm package for the Tasklight CLI.
4
+
5
+ Tasklight notifies you when long-running developer tasks finish, fail, or need attention.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @tasklight/cli
11
+ ```
12
+
13
+ Then:
14
+
15
+ ```bash
16
+ tasklight --version
17
+ tasklight doctor
18
+ tasklight run -- pnpm test
19
+ tasklight notify --subtitle "✅ Done" --message "Finished"
20
+ ```
21
+
22
+ ## Platform support
23
+
24
+ This package currently bundles prebuilt Tasklight binaries for:
25
+
26
+ - macOS arm64
27
+ - macOS x64
28
+ - Linux arm64
29
+ - Linux x64
30
+
31
+ Windows is not packaged yet.
32
+
33
+ ## macOS optional enhancement
34
+
35
+ Tasklight works on macOS with built-in `osascript` notifications. For better notification identity, custom icon support, and click-to-focus behavior, install:
36
+
37
+ ```bash
38
+ brew install terminal-notifier
39
+ ```
40
+
41
+ ## Linux notification dependency
42
+
43
+ Linux desktop notifications use `notify-send`.
44
+
45
+ ```bash
46
+ # Ubuntu/Debian
47
+ sudo apt install libnotify-bin
48
+
49
+ # Fedora
50
+ sudo dnf install libnotify
51
+
52
+ # Arch
53
+ sudo pacman -S libnotify
54
+ ```
55
+
56
+ ## Development
57
+
58
+ From the Tasklight repository root:
59
+
60
+ ```bash
61
+ npm --prefix npm/tasklight-cli run build:vendor
62
+ npm --prefix npm/tasklight-cli run test:local
63
+ npm --prefix npm/tasklight-cli run pack:check
64
+ ```
65
+
66
+ ## Source
67
+
68
+ https://github.com/revazi/tasklight
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawnSync } = require("node:child_process");
4
+ const fs = require("node:fs");
5
+ const path = require("node:path");
6
+
7
+ const platform = process.platform;
8
+ const arch = process.arch;
9
+ const key = `${platform}-${arch}`;
10
+
11
+ const targets = {
12
+ "darwin-arm64": "darwin-arm64",
13
+ "darwin-x64": "darwin-amd64",
14
+ "linux-arm64": "linux-arm64",
15
+ "linux-x64": "linux-amd64",
16
+ };
17
+
18
+ const target = targets[key];
19
+
20
+ if (!target) {
21
+ console.error(`Tasklight: unsupported platform ${platform}/${arch}.`);
22
+ console.error("Supported platforms: macOS/Linux on arm64/x64.");
23
+ process.exit(1);
24
+ }
25
+
26
+ const binary = path.join(__dirname, "..", "vendor", target, "tasklight");
27
+
28
+ if (!fs.existsSync(binary)) {
29
+ console.error(`Tasklight binary not found for ${platform}/${arch}: ${binary}`);
30
+ console.error("If you are developing locally, run: npm run build:vendor");
31
+ process.exit(1);
32
+ }
33
+
34
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
35
+
36
+ if (result.error) {
37
+ console.error(result.error.message);
38
+ process.exit(1);
39
+ }
40
+
41
+ process.exit(result.status ?? 1);
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@tasklight/cli",
3
+ "version": "0.1.0",
4
+ "description": "Tasklight CLI: get notified when long-running developer tasks finish, fail, or need attention.",
5
+ "license": "MIT",
6
+ "author": "Revaz Zakalashvili",
7
+ "homepage": "https://github.com/revazi/tasklight#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/revazi/tasklight.git",
11
+ "directory": "npm/tasklight-cli"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/revazi/tasklight/issues"
15
+ },
16
+ "keywords": [
17
+ "tasklight",
18
+ "cli",
19
+ "developer-tools",
20
+ "notifications",
21
+ "macos",
22
+ "linux",
23
+ "tmux",
24
+ "coding-agents",
25
+ "golang"
26
+ ],
27
+ "bin": {
28
+ "tasklight": "./bin/tasklight.js"
29
+ },
30
+ "files": [
31
+ "bin/",
32
+ "vendor/",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "scripts": {
37
+ "build:vendor": "../../scripts/build-npm-cli.sh",
38
+ "pack:check": "npm pack --dry-run",
39
+ "test:local": "node ./bin/tasklight.js --version && node ./bin/tasklight.js doctor"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "engines": {
45
+ "node": ">=18"
46
+ },
47
+ "os": [
48
+ "darwin",
49
+ "linux"
50
+ ],
51
+ "cpu": [
52
+ "arm64",
53
+ "x64"
54
+ ]
55
+ }
Binary file
Binary file
Binary file
Binary file