bincode-dev 0.0.14 → 0.0.16
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/bincode +3 -2
- package/package.json +5 -5
- package/scripts/prepack.js +39 -0
package/bin/bincode
CHANGED
|
@@ -10,8 +10,9 @@ function run(target) {
|
|
|
10
10
|
// Ensure this package variant uses its own config/data directories.
|
|
11
11
|
if (!env.BINCODE_APP_ID) env.BINCODE_APP_ID = "bincode-dev"
|
|
12
12
|
// Provide package-level defaults, but never override user-provided env vars.
|
|
13
|
-
|
|
14
|
-
if (!env.
|
|
13
|
+
// bincode-ai -> staging (requested) -- mirror the same defaults for testing
|
|
14
|
+
if (!env.BINERIC_API_URL) env.BINERIC_API_URL = "https://stagingapi.bineric.com/api/v1/ai"
|
|
15
|
+
if (!env.BINERIC_FRONTEND_URL) env.BINERIC_FRONTEND_URL = "https://stagingplatform.bineric.com"
|
|
15
16
|
|
|
16
17
|
// Best-effort: ensure executable bit on mac/linux.
|
|
17
18
|
try {
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bincode-dev",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Bincode: AI-powered development CLI (dev/test version, not affiliated with opencode)",
|
|
5
5
|
"bin": {
|
|
6
6
|
"bincode": "./bin/bincode"
|
|
7
7
|
},
|
|
8
8
|
"optionalDependencies": {
|
|
9
|
-
"bincode-dev-darwin-arm64": "0.0.
|
|
10
|
-
"bincode-dev-darwin-x64": "0.0.
|
|
11
|
-
"bincode-dev-linux-x64": "0.0.
|
|
12
|
-
"bincode-dev-windows-x64": "0.0.
|
|
9
|
+
"bincode-dev-darwin-arm64": "0.0.16",
|
|
10
|
+
"bincode-dev-darwin-x64": "0.0.16",
|
|
11
|
+
"bincode-dev-linux-x64": "0.0.16",
|
|
12
|
+
"bincode-dev-windows-x64": "0.0.16"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "bun script/build.ts",
|
package/scripts/prepack.js
CHANGED
|
@@ -14,6 +14,44 @@ const path = require("path")
|
|
|
14
14
|
const root = path.join(__dirname, "..")
|
|
15
15
|
const appDistDir = path.join(root, "app", "dist")
|
|
16
16
|
|
|
17
|
+
function syncOptionalDependencyVersions() {
|
|
18
|
+
const pkgPath = path.join(root, "package.json")
|
|
19
|
+
let pkg
|
|
20
|
+
try {
|
|
21
|
+
pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"))
|
|
22
|
+
} catch {
|
|
23
|
+
return
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const version = pkg.version
|
|
27
|
+
if (!version) return
|
|
28
|
+
|
|
29
|
+
const opt = pkg.optionalDependencies
|
|
30
|
+
if (!opt) return
|
|
31
|
+
|
|
32
|
+
// Keep these pinned exactly to the wrapper version to avoid mismatches.
|
|
33
|
+
const keys = [
|
|
34
|
+
"bincode-dev-darwin-arm64",
|
|
35
|
+
"bincode-dev-darwin-x64",
|
|
36
|
+
"bincode-dev-linux-x64",
|
|
37
|
+
"bincode-dev-windows-x64",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
let changed = false
|
|
41
|
+
for (const k of keys) {
|
|
42
|
+
if (opt[k] !== version) {
|
|
43
|
+
opt[k] = version
|
|
44
|
+
changed = true
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (changed) {
|
|
49
|
+
pkg.optionalDependencies = opt
|
|
50
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n")
|
|
51
|
+
console.log(`[prepack] synced optionalDependencies versions to ${version}`)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
17
55
|
function rmrf(targetPath) {
|
|
18
56
|
try {
|
|
19
57
|
fs.rmSync(targetPath, { recursive: true, force: true })
|
|
@@ -44,6 +82,7 @@ function removeSourcemaps() {
|
|
|
44
82
|
})
|
|
45
83
|
}
|
|
46
84
|
|
|
85
|
+
syncOptionalDependencyVersions()
|
|
47
86
|
removeSourcemaps()
|
|
48
87
|
|
|
49
88
|
console.log("[prepack] removed sourcemaps")
|