clawborrator-cli 0.0.1 → 0.0.2
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/bin/claw +4 -2
- package/package.json +1 -1
package/bin/claw
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// `npm link` checkouts resolve identically.
|
|
7
7
|
import { existsSync } from 'node:fs';
|
|
8
8
|
import { dirname, resolve } from 'node:path';
|
|
9
|
-
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
10
10
|
|
|
11
11
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
12
12
|
const candidates = [
|
|
@@ -19,7 +19,9 @@ if (!target) {
|
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
import(
|
|
22
|
+
// On Windows, dynamic import() requires a file:// URL — bare absolute
|
|
23
|
+
// paths like C:\Users\... are interpreted as a 'c:' URL scheme and rejected.
|
|
24
|
+
import(pathToFileURL(target).href).catch((err) => {
|
|
23
25
|
console.error(err);
|
|
24
26
|
process.exit(1);
|
|
25
27
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawborrator-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "claw — command-line client for clawborrator hub_v1. Manages PATs, channel tokens, sessions, cross-session routing, and webhooks; ships an inline TUI for live multi-operator session attach.",
|
|
6
6
|
"license": "MIT",
|