agentics-cli 0.1.6 → 0.1.7
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.
|
Binary file
|
|
Binary file
|
package/bin/run.js
CHANGED
|
@@ -53,7 +53,7 @@ function run() {
|
|
|
53
53
|
|
|
54
54
|
if (!existsSync(binaryPath)) {
|
|
55
55
|
console.error(`Binary not found: ${binaryPath}`);
|
|
56
|
-
console.error('Please reinstall the package: npm install -g
|
|
56
|
+
console.error('Please reinstall the package: npm install -g agentics-cli');
|
|
57
57
|
process.exit(1);
|
|
58
58
|
}
|
|
59
59
|
|
package/package.json
CHANGED
package/scripts/postinstall.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { chmod } from 'fs/promises';
|
|
4
|
-
import { existsSync } from 'fs';
|
|
5
|
-
import { fileURLToPath } from 'url';
|
|
6
|
-
import { dirname, join } from 'path';
|
|
7
|
-
import { execSync } from 'child_process';
|
|
8
|
-
|
|
9
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
-
const binDir = join(__dirname, '..', 'bin');
|
|
11
|
-
|
|
12
|
-
async function postinstall() {
|
|
13
|
-
const unpackScript = join(binDir, 'unpack.sh');
|
|
14
|
-
if (existsSync(unpackScript)) {
|
|
15
|
-
try {
|
|
16
|
-
execSync(`bash "${unpackScript}"`, { stdio: 'inherit' });
|
|
17
|
-
} catch (err) {
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const binaries = [
|
|
22
|
-
'AgenticsInference-windows-amd64.exe',
|
|
23
|
-
'AgenticsInference-windows-arm64.exe',
|
|
24
|
-
'AgenticsInference-darwin-amd64',
|
|
25
|
-
'AgenticsInference-darwin-arm64',
|
|
26
|
-
'AgenticsInference-linux-amd64',
|
|
27
|
-
'AgenticsInference-linux-arm64'
|
|
28
|
-
];
|
|
29
|
-
|
|
30
|
-
for (const binary of binaries) {
|
|
31
|
-
const binaryPath = join(binDir, binary);
|
|
32
|
-
if (existsSync(binaryPath)) {
|
|
33
|
-
try {
|
|
34
|
-
await chmod(binaryPath, 0o755);
|
|
35
|
-
} catch (err) {
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
console.log('⚡ Agentics Inference CLI installed successfully!');
|
|
41
|
-
console.log(' Run "agentics-inference" or "ai" to get started.');
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
postinstall().catch(console.error);
|