@xonovex/agent-cli-go 0.1.3 → 0.1.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xonovex/agent-cli-go",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Agent wrapper CLI (Go implementation)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "test": "go test ./..."
33
33
  },
34
34
  "devDependencies": {
35
- "@xonovex/ts-config-cli": "0.1.3"
35
+ "@xonovex/ts-config-cli": "0.1.4"
36
36
  },
37
37
  "optionalDependencies": {
38
38
  "@xonovex/agent-cli-go-linux-x64": "0.1.3",
package/dist/bin.js DELETED
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env node
2
- import { spawn } from "node:child_process";
3
- import { arch, platform } from "node:os";
4
- import { dirname, join } from "node:path";
5
- import { existsSync } from "node:fs";
6
- import { createRequire } from "node:module";
7
- const require = createRequire(import.meta.url);
8
- const getPlatformPackage = () => {
9
- const os = platform();
10
- const cpu = arch();
11
- const map = {
12
- "darwin-arm64": "@xonovex/agent-cli-go-darwin-arm64",
13
- "darwin-x64": "@xonovex/agent-cli-go-darwin-x64",
14
- "linux-arm64": "@xonovex/agent-cli-go-linux-arm64",
15
- "linux-x64": "@xonovex/agent-cli-go-linux-x64",
16
- "win32-x64": "@xonovex/agent-cli-go-win32-x64",
17
- };
18
- return map[`${os}-${cpu}`];
19
- };
20
- const findBinary = () => {
21
- const packageName = getPlatformPackage();
22
- if (!packageName) {
23
- console.error(`No binary available for ${platform()}-${arch()}`);
24
- process.exit(1);
25
- }
26
- const binaryName = platform() === "win32" ? "agent-cli-go.exe" : "agent-cli-go";
27
- try {
28
- const packageJsonPath = require.resolve(`${packageName}/package.json`);
29
- const binaryPath = join(dirname(packageJsonPath), "bin", binaryName);
30
- if (existsSync(binaryPath)) {
31
- return binaryPath;
32
- }
33
- }
34
- catch {
35
- // Package not found
36
- }
37
- console.error(`Binary not found. Install with: npm install -g @xonovex/agent-cli-go`);
38
- process.exit(1);
39
- };
40
- const main = () => {
41
- const binaryPath = findBinary();
42
- const child = spawn(binaryPath, process.argv.slice(2), {
43
- stdio: "inherit",
44
- env: process.env,
45
- });
46
- child.on("error", (err) => {
47
- console.error(`Failed to start: ${err.message}`);
48
- process.exit(1);
49
- });
50
- child.on("close", (code) => {
51
- process.exit(code ?? 0);
52
- });
53
- };
54
- main();
55
- //# sourceMappingURL=bin.js.map
package/dist/bin.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAK/C,MAAM,kBAAkB,GAAG,GAAuB,EAAE;IAClD,MAAM,EAAE,GAAG,QAAQ,EAAc,CAAC;IAClC,MAAM,GAAG,GAAG,IAAI,EAAU,CAAC;IAE3B,MAAM,GAAG,GAA2B;QAClC,cAAc,EAAE,oCAAoC;QACpD,YAAY,EAAE,kCAAkC;QAChD,aAAa,EAAE,mCAAmC;QAClD,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,iCAAiC;KAC/C,CAAC;IAEF,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AAC7B,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,GAAW,EAAE;IAC9B,MA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