omniharness-cli 0.1.14 → 0.1.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/package.json +27 -14
- package/cli.js +0 -29
- package/vendor/win32-x64/omniharness.exe +0 -0
package/package.json
CHANGED
|
@@ -1,35 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omniharness-cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "OmniHarness — local-first agent orchestration harness for OmniRoute.
|
|
3
|
+
"version": "0.1.16",
|
|
4
|
+
"description": "OmniHarness — local-first agent orchestration harness for OmniRoute.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/mattycigemp-crypto/omniharness.git"
|
|
9
9
|
},
|
|
10
10
|
"bin": {
|
|
11
|
-
"omniharness": "cli.js"
|
|
11
|
+
"omniharness": "dist/cli.js"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
|
-
"
|
|
15
|
-
"vendor/",
|
|
14
|
+
"dist/",
|
|
16
15
|
"README.md"
|
|
17
16
|
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc -p tsconfig.json",
|
|
19
|
+
"dev": "tsx src/cli.ts",
|
|
20
|
+
"start": "node dist/cli.js",
|
|
21
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
22
|
+
"test": "node --test --import tsx test/**/*.test.ts"
|
|
23
|
+
},
|
|
18
24
|
"keywords": [
|
|
19
25
|
"omniroute",
|
|
26
|
+
"omniharness",
|
|
20
27
|
"agents",
|
|
21
28
|
"orchestration",
|
|
22
|
-
"harness",
|
|
23
|
-
"llm",
|
|
24
29
|
"cli"
|
|
25
30
|
],
|
|
26
|
-
"os": [
|
|
27
|
-
"win32"
|
|
28
|
-
],
|
|
29
|
-
"cpu": [
|
|
30
|
-
"x64"
|
|
31
|
-
],
|
|
32
31
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
32
|
+
"node": ">=20"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@ai-sdk/provider": "^1.0.0",
|
|
36
|
+
"@mastra/core": "^0.10.0",
|
|
37
|
+
"ink": "^5.1.0",
|
|
38
|
+
"ink-spinner": "^5.0.0",
|
|
39
|
+
"react": "^18.3.1",
|
|
40
|
+
"zod": "^3.23.8"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^22.10.0",
|
|
44
|
+
"@types/react": "^18.3.12",
|
|
45
|
+
"tsx": "^4.19.2",
|
|
46
|
+
"typescript": "^5.7.2"
|
|
34
47
|
}
|
|
35
48
|
}
|
package/cli.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// omniharness-cli launcher: runs the platform-specific prebuilt binary.
|
|
3
|
-
// The binary is self-contained; this shim only locates and spawns it.
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
const { spawnSync } = require('child_process');
|
|
7
|
-
const fs = require('fs');
|
|
8
|
-
const path = require('path');
|
|
9
|
-
|
|
10
|
-
const platform = process.platform;
|
|
11
|
-
const arch = process.arch;
|
|
12
|
-
const exe = platform === 'win32' ? 'omniharness.exe' : 'omniharness';
|
|
13
|
-
const binPath = path.join(__dirname, 'vendor', `${platform}-${arch}`, exe);
|
|
14
|
-
|
|
15
|
-
if (!fs.existsSync(binPath)) {
|
|
16
|
-
console.error(
|
|
17
|
-
`omniharness-cli: no prebuilt binary for ${platform}-${arch}.\n` +
|
|
18
|
-
'This package ships binaries for the platforms listed in its package.json ' +
|
|
19
|
-
'"os"/"cpu" fields. Build one with scripts/release-npm.sh.'
|
|
20
|
-
);
|
|
21
|
-
process.exit(1);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const result = spawnSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
25
|
-
if (result.error) {
|
|
26
|
-
console.error(`omniharness-cli: failed to launch ${binPath}: ${result.error.message}`);
|
|
27
|
-
process.exit(1);
|
|
28
|
-
}
|
|
29
|
-
process.exit(result.status === null ? 1 : result.status);
|
|
Binary file
|