@skylandnpm/octopus-proxy 0.1.0
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/README.md +52 -0
- package/dist/chunk-TIHWE4WN.js +16201 -0
- package/dist/cli.js +738 -0
- package/dist/main.js +11 -0
- package/package.json +44 -0
- package/proxy.example.json +8 -0
package/dist/main.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ConfigError,
|
|
4
|
+
runDaemon
|
|
5
|
+
} from "./chunk-TIHWE4WN.js";
|
|
6
|
+
|
|
7
|
+
// src/main.ts
|
|
8
|
+
runDaemon(process.env.OCTOPUS_PROXY_CONFIG ?? "proxy.json").catch((error) => {
|
|
9
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
10
|
+
process.exit(error instanceof ConfigError ? 78 : 1);
|
|
11
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@skylandnpm/octopus-proxy",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Octopus host proxy: OpenCode, Codex, ZCode and Pi adapters with service installer CLI",
|
|
6
|
+
"bin": {
|
|
7
|
+
"octopus-proxy": "dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"proxy.example.json"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=22"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc --noEmit && tsup",
|
|
18
|
+
"build:patch:publish": "pnpm build && npm version patch && npm publish",
|
|
19
|
+
"typecheck": "tsc --noEmit",
|
|
20
|
+
"dev": "tsx src/main.ts",
|
|
21
|
+
"cli": "tsx src/cli.ts",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"help": "echo \"Run 'npm adduser --registry https://registry.npmjs.org' before 'npm run build:patch:publish'\""
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"ws": "8.18.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@octopus/protocol": "workspace:*",
|
|
30
|
+
"@types/node": "22.13.5",
|
|
31
|
+
"@types/ws": "8.5.14",
|
|
32
|
+
"ajv": "8.17.1",
|
|
33
|
+
"jsonc-parser": "3.3.1",
|
|
34
|
+
"tsup": "8.3.6",
|
|
35
|
+
"tsx": "4.19.3",
|
|
36
|
+
"typescript": "5.7.3",
|
|
37
|
+
"vitest": "3.0.7",
|
|
38
|
+
"zod": "3.24.2"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public",
|
|
42
|
+
"registry": "https://registry.npmjs.org"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hubUrl": "https://hub.example.com",
|
|
3
|
+
"secretKey": "PASTE_ONE_TIME_BOT_SECRET_HERE",
|
|
4
|
+
"botId": "00000000-0000-4000-8000-000000000000",
|
|
5
|
+
"stateDirectory": "/home/developer/.local/state/octopus",
|
|
6
|
+
"projects": [{ "id": "example", "name": "Example project", "directory": "/home/developer/projects/example", "specDirectories": ["specs", "docs"] }],
|
|
7
|
+
"tool": { "kind": "opencode", "command": "/usr/local/bin/opencode", "baseUrl": "http://127.0.0.1:4096", "mode": "managed", "autoStart": true }
|
|
8
|
+
}
|