@vividcodeai/pick 0.1.9 → 0.1.10-darwin-arm64
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 -3
- package/package.json +9 -20
- package/vendor/pick +0 -0
- package/bin/pick.js +0 -67
package/README.md
CHANGED
|
@@ -50,22 +50,30 @@ pick-sandbox (process isolation)
|
|
|
50
50
|
|
|
51
51
|
## Installation
|
|
52
52
|
|
|
53
|
+
### npm (requires Node.js >= 16)
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm install -g @vividcodeai/pick
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
> npm installation automatically downloads the correct platform binary for your system.
|
|
60
|
+
|
|
53
61
|
### Linux / macOS
|
|
54
62
|
|
|
55
63
|
```bash
|
|
56
|
-
curl -fsSL https://github.com/
|
|
64
|
+
curl -fsSL https://github.com/vividcode-ai/pick/releases/latest/download/install.sh | sh
|
|
57
65
|
```
|
|
58
66
|
|
|
59
67
|
### Windows (PowerShell)
|
|
60
68
|
|
|
61
69
|
```powershell
|
|
62
|
-
irm https://github.com/
|
|
70
|
+
irm https://github.com/vividcode-ai/pick/releases/latest/download/install.ps1 | iex
|
|
63
71
|
```
|
|
64
72
|
|
|
65
73
|
### From source
|
|
66
74
|
|
|
67
75
|
```bash
|
|
68
|
-
git clone https://github.com/
|
|
76
|
+
git clone https://github.com/vividcode-ai/pick.git
|
|
69
77
|
cd pick
|
|
70
78
|
cargo build --release
|
|
71
79
|
./target/release/pick --help
|
package/package.json
CHANGED
|
@@ -1,34 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vividcodeai/pick",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Pick CLI - An AI coding assistant that runs locally on your computer",
|
|
3
|
+
"version": "0.1.10-darwin-arm64",
|
|
5
4
|
"license": "MIT",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
5
|
+
"os": [
|
|
6
|
+
"darwin"
|
|
7
|
+
],
|
|
8
|
+
"cpu": [
|
|
9
|
+
"arm64"
|
|
10
|
+
],
|
|
13
11
|
"files": [
|
|
14
|
-
"
|
|
12
|
+
"vendor"
|
|
15
13
|
],
|
|
16
14
|
"repository": {
|
|
17
15
|
"type": "git",
|
|
18
|
-
"url": "git+https://github.com/vividcode-ai/pick.git"
|
|
19
|
-
"directory": "npm/pick"
|
|
16
|
+
"url": "git+https://github.com/vividcode-ai/pick.git"
|
|
20
17
|
},
|
|
21
18
|
"publishConfig": {
|
|
22
19
|
"registry": "https://registry.npmjs.org",
|
|
23
20
|
"access": "public",
|
|
24
21
|
"provenance": true
|
|
25
|
-
},
|
|
26
|
-
"optionalDependencies": {
|
|
27
|
-
"@vividcodeai/pick-linux-x64": "npm:@vividcodeai/pick@0.1.9-linux-x64",
|
|
28
|
-
"@vividcodeai/pick-linux-arm64": "npm:@vividcodeai/pick@0.1.9-linux-arm64",
|
|
29
|
-
"@vividcodeai/pick-darwin-x64": "npm:@vividcodeai/pick@0.1.9-darwin-x64",
|
|
30
|
-
"@vividcodeai/pick-darwin-arm64": "npm:@vividcodeai/pick@0.1.9-darwin-arm64",
|
|
31
|
-
"@vividcodeai/pick-win32-x64": "npm:@vividcodeai/pick@0.1.9-win32-x64",
|
|
32
|
-
"@vividcodeai/pick-win32-arm64": "npm:@vividcodeai/pick@0.1.9-win32-arm64"
|
|
33
22
|
}
|
|
34
23
|
}
|
package/vendor/pick
ADDED
|
Binary file
|
package/bin/pick.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { createRequire } from "module";
|
|
3
|
-
import { spawn } from "child_process";
|
|
4
|
-
import { existsSync } from "fs";
|
|
5
|
-
import { join, dirname } from "path";
|
|
6
|
-
import { fileURLToPath } from "url";
|
|
7
|
-
|
|
8
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
const require = createRequire(import.meta.url);
|
|
10
|
-
|
|
11
|
-
const PLATFORM_PACKAGES = {
|
|
12
|
-
"linux-x64": "@vividcodeai/pick-linux-x64",
|
|
13
|
-
"linux-arm64": "@vividcodeai/pick-linux-arm64",
|
|
14
|
-
"darwin-x64": "@vividcodeai/pick-darwin-x64",
|
|
15
|
-
"darwin-arm64": "@vividcodeai/pick-darwin-arm64",
|
|
16
|
-
"win32-x64": "@vividcodeai/pick-win32-x64",
|
|
17
|
-
"win32-arm64": "@vividcodeai/pick-win32-arm64",
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const BINARY_NAME = process.platform === "win32" ? "pick.exe" : "pick";
|
|
21
|
-
|
|
22
|
-
function getTargetTriple(platform, arch) {
|
|
23
|
-
if (platform === "linux" && arch === "x64") return "x86_64-unknown-linux-gnu";
|
|
24
|
-
if (platform === "linux" && arch === "arm64") return "aarch64-unknown-linux-gnu";
|
|
25
|
-
if (platform === "darwin" && arch === "x64") return "x86_64-apple-darwin";
|
|
26
|
-
if (platform === "darwin" && arch === "arm64") return "aarch64-apple-darwin";
|
|
27
|
-
if (platform === "win32" && arch === "x64") return "x86_64-pc-windows-msvc";
|
|
28
|
-
if (platform === "win32" && arch === "arm64") return "aarch64-pc-windows-msvc";
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function main() {
|
|
33
|
-
const platform = process.platform;
|
|
34
|
-
const arch = process.arch;
|
|
35
|
-
const mapKey = `${platform}-${arch}`;
|
|
36
|
-
const pkgName = PLATFORM_PACKAGES[mapKey];
|
|
37
|
-
|
|
38
|
-
if (!pkgName) {
|
|
39
|
-
console.error(`Unsupported platform: ${platform} ${arch}`);
|
|
40
|
-
process.exit(1);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
let pkgPath;
|
|
44
|
-
try {
|
|
45
|
-
pkgPath = dirname(require.resolve(`${pkgName}/package.json`));
|
|
46
|
-
} catch {
|
|
47
|
-
console.error(
|
|
48
|
-
`Platform package ${pkgName} not installed. Try: npm install -g ${pkgName}`
|
|
49
|
-
);
|
|
50
|
-
process.exit(1);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const binaryPath = join(pkgPath, "vendor", BINARY_NAME);
|
|
54
|
-
if (!existsSync(binaryPath)) {
|
|
55
|
-
console.error(`Binary not found at ${binaryPath}`);
|
|
56
|
-
process.exit(1);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const child = spawn(binaryPath, process.argv.slice(2), {
|
|
60
|
-
stdio: "inherit",
|
|
61
|
-
env: { ...process.env, PICK_MANAGED_BY_NPM: "1" },
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
child.on("exit", (code) => process.exit(code));
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
main();
|