hablas-ai 1.3.19 → 1.3.21
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/CHANGELOG.md +50 -0
- package/README.md +130 -85
- package/dist/index.js +221 -321
- package/package.json +5 -4
- package/postinstall.js +8 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hablas-ai",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "Premium
|
|
3
|
+
"version": "1.3.21",
|
|
4
|
+
"description": "Premium terminal AI coding agent with a unified runtime — direct leader handling for simple turns, internal specialist coordination for serious engineering work.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"hablas": "./bin/hablas-shim.js"
|
|
@@ -25,9 +25,10 @@
|
|
|
25
25
|
"dev": "ts-node src/index.ts",
|
|
26
26
|
"start": "node dist/index.js",
|
|
27
27
|
"lint": "tsc --noEmit",
|
|
28
|
-
"test": "npm run test:channel && npm run test:parity",
|
|
28
|
+
"test": "npm run test:channel && npm run test:parity && npm run test:runtime",
|
|
29
29
|
"test:channel": "ts-node --transpile-only src/agents/__tests__/agent-channel.test.ts",
|
|
30
|
-
"test:parity": "ts-node --transpile-only src/agents/__tests__/parity.test.ts"
|
|
30
|
+
"test:parity": "ts-node --transpile-only src/agents/__tests__/parity.test.ts",
|
|
31
|
+
"test:runtime": "ts-node --transpile-only src/runtime/__tests__/unified-runtime.test.ts"
|
|
31
32
|
},
|
|
32
33
|
"keywords": [
|
|
33
34
|
"cli",
|
package/postinstall.js
CHANGED
|
@@ -81,6 +81,12 @@ async function main() {
|
|
|
81
81
|
const destPath = path.resolve(BIN_DIR, config.filename);
|
|
82
82
|
const downloadUrl = `https://github.com/${REPO}/releases/download/v${VERSION}/${config.filename}`;
|
|
83
83
|
|
|
84
|
+
if (!fs.existsSync(CHECKSUM_FILE)) {
|
|
85
|
+
console.log(`ℹ️ No bundled checksum database found for v${VERSION}.`);
|
|
86
|
+
console.log(`👉 Using the bundled Node.js runtime wrapper for this installation.`);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
console.log(`🌐 Downloading native binary for ${process.platform}-${process.arch}...`);
|
|
85
91
|
console.log(` URL: ${downloadUrl}`);
|
|
86
92
|
|
|
@@ -124,8 +130,8 @@ async function main() {
|
|
|
124
130
|
console.log(`🎉 Hablas CLI production binary successfully installed globally!`);
|
|
125
131
|
|
|
126
132
|
} catch (err) {
|
|
127
|
-
console.error(`\n
|
|
128
|
-
console.log(
|
|
133
|
+
console.error(`\n⚠️ Native binary setup skipped: ${err.message}`);
|
|
134
|
+
console.log(`👉 Falling back to the bundled Node.js runtime wrapper.`);
|
|
129
135
|
|
|
130
136
|
// Clean up corrupted file if any
|
|
131
137
|
if (fs.existsSync(destPath)) {
|