@pixelml/claw 0.4.0 → 1.0.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/bin/claw +15 -0
- package/package.json +12 -12
package/bin/claw
CHANGED
|
@@ -56,6 +56,21 @@ function findBinary(startDir) {
|
|
|
56
56
|
for (; ;) {
|
|
57
57
|
const modules = path.join(current, "node_modules")
|
|
58
58
|
if (fs.existsSync(modules)) {
|
|
59
|
+
// Check in @pixelml scope first
|
|
60
|
+
const scopedModules = path.join(modules, "@pixelml")
|
|
61
|
+
if (fs.existsSync(scopedModules)) {
|
|
62
|
+
const entries = fs.readdirSync(scopedModules)
|
|
63
|
+
for (const entry of entries) {
|
|
64
|
+
if (!entry.startsWith(base)) {
|
|
65
|
+
continue
|
|
66
|
+
}
|
|
67
|
+
const candidate = path.join(scopedModules, entry, "bin", binary)
|
|
68
|
+
if (fs.existsSync(candidate)) {
|
|
69
|
+
return candidate
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
// Fallback to unscoped packages
|
|
59
74
|
const entries = fs.readdirSync(modules)
|
|
60
75
|
for (const entry of entries) {
|
|
61
76
|
if (!entry.startsWith(base)) {
|
package/package.json
CHANGED
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "1.0.0",
|
|
10
10
|
"optionalDependencies": {
|
|
11
|
-
"@pixelml/claw-linux-arm64": "0.
|
|
12
|
-
"@pixelml/claw-linux-x64": "0.
|
|
13
|
-
"@pixelml/claw-linux-x64-baseline": "0.
|
|
14
|
-
"@pixelml/claw-linux-arm64-musl": "0.
|
|
15
|
-
"@pixelml/claw-linux-x64-musl": "0.
|
|
16
|
-
"@pixelml/claw-linux-x64-baseline-musl": "0.
|
|
17
|
-
"@pixelml/claw-darwin-arm64": "0.
|
|
18
|
-
"@pixelml/claw-darwin-x64": "0.
|
|
19
|
-
"@pixelml/claw-darwin-x64-baseline": "0.
|
|
20
|
-
"@pixelml/claw-windows-x64": "0.
|
|
21
|
-
"@pixelml/claw-windows-x64-baseline": "0.
|
|
11
|
+
"@pixelml/claw-linux-arm64": "1.0.0",
|
|
12
|
+
"@pixelml/claw-linux-x64": "1.0.0",
|
|
13
|
+
"@pixelml/claw-linux-x64-baseline": "1.0.0",
|
|
14
|
+
"@pixelml/claw-linux-arm64-musl": "1.0.0",
|
|
15
|
+
"@pixelml/claw-linux-x64-musl": "1.0.0",
|
|
16
|
+
"@pixelml/claw-linux-x64-baseline-musl": "1.0.0",
|
|
17
|
+
"@pixelml/claw-darwin-arm64": "1.0.0",
|
|
18
|
+
"@pixelml/claw-darwin-x64": "1.0.0",
|
|
19
|
+
"@pixelml/claw-darwin-x64-baseline": "1.0.0",
|
|
20
|
+
"@pixelml/claw-windows-x64": "1.0.0",
|
|
21
|
+
"@pixelml/claw-windows-x64-baseline": "1.0.0"
|
|
22
22
|
}
|
|
23
23
|
}
|