agents-shire 1.0.2
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/shire +47 -0
- package/package.json +26 -0
package/bin/shire
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { execFileSync } = require("child_process");
|
|
5
|
+
const { join } = require("path");
|
|
6
|
+
|
|
7
|
+
const PLATFORMS = {
|
|
8
|
+
"darwin-arm64": "@agents-shire/cli-darwin-arm64",
|
|
9
|
+
"darwin-x64": "@agents-shire/cli-darwin-x64",
|
|
10
|
+
"linux-x64": "@agents-shire/cli-linux-x64",
|
|
11
|
+
"linux-arm64": "@agents-shire/cli-linux-arm64",
|
|
12
|
+
"win32-x64": "@agents-shire/cli-win32-x64",
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const platformKey = `${process.platform}-${process.arch}`;
|
|
16
|
+
const packageName = PLATFORMS[platformKey];
|
|
17
|
+
|
|
18
|
+
if (!packageName) {
|
|
19
|
+
console.error(
|
|
20
|
+
`Unsupported platform: ${process.platform}-${process.arch}\n` +
|
|
21
|
+
`Shire supports: ${Object.keys(PLATFORMS).join(", ")}`,
|
|
22
|
+
);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let binPath;
|
|
27
|
+
try {
|
|
28
|
+
const packageDir = require.resolve(`${packageName}/package.json`);
|
|
29
|
+
const ext = process.platform === "win32" ? ".exe" : "";
|
|
30
|
+
binPath = join(packageDir, "..", `shire${ext}`);
|
|
31
|
+
} catch {
|
|
32
|
+
console.error(
|
|
33
|
+
`Could not find package "${packageName}".\n` +
|
|
34
|
+
`This usually means the optional dependency was not installed.\n` +
|
|
35
|
+
`Try: npm install -g agents-shire`,
|
|
36
|
+
);
|
|
37
|
+
process.exit(1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
42
|
+
} catch (err) {
|
|
43
|
+
if (err && typeof err === "object" && "status" in err) {
|
|
44
|
+
process.exit(err.status);
|
|
45
|
+
}
|
|
46
|
+
throw err;
|
|
47
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "agents-shire",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "AI agent orchestration platform",
|
|
5
|
+
"bin": {
|
|
6
|
+
"shire": "bin/shire"
|
|
7
|
+
},
|
|
8
|
+
"optionalDependencies": {
|
|
9
|
+
"@agents-shire/cli-darwin-arm64": "1.0.2",
|
|
10
|
+
"@agents-shire/cli-darwin-x64": "1.0.2",
|
|
11
|
+
"@agents-shire/cli-linux-x64": "1.0.2",
|
|
12
|
+
"@agents-shire/cli-linux-arm64": "1.0.2",
|
|
13
|
+
"@agents-shire/cli-win32-x64": "1.0.2"
|
|
14
|
+
},
|
|
15
|
+
"license": "BUSL-1.1",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/victor36max/shire"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"ai",
|
|
22
|
+
"agent",
|
|
23
|
+
"orchestration",
|
|
24
|
+
"llm"
|
|
25
|
+
]
|
|
26
|
+
}
|