@skylandnpm/octopus-proxy 0.1.15 → 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/README.md CHANGED
@@ -72,6 +72,6 @@ npm run publish
72
72
 
73
73
  ## 编码工具账号与 OpenCode 服务
74
74
 
75
- OpenCode 使用 external HTTP 模式。可自行运行 `opencode serve --hostname 127.0.0.1 --port 4096`,也可在 Claw 工作区点击“启动服务”,由 Proxy 在目标主机使用 `tool.command` 拉起服务;配置 `tool.baseUrl` 与端口一致。启动日志保存在 `stateDirectory/opencode-serve.log`,`autoStart: true` 可让 Proxy 启动时自动尝试拉起。旧 managed 配置必须迁移;Proxy 不停止或重启已有 OpenCode 服务。
75
+ OpenCode 使用 external HTTP 模式。Proxy 默认在启动时使用 `tool.command` 拉起未运行的服务;也可自行运行 `opencode serve --hostname 127.0.0.1 --port 4096`,或在 Claw 工作区点击“启动服务”重试。配置的 `tool.baseUrl` 必须与端口一致。启动日志保存在 `stateDirectory/opencode-serve.log`;如需只连接自行管理的服务,可显式设置 `autoStart: false`。旧 managed 配置必须迁移;Proxy 不停止或重启已有 OpenCode 服务。
76
76
 
77
77
  Claw 的“编码工具账号”窗口支持 Codex API Key/设备码、ZCode 原生 Z.AI OAuth、OpenCode 原生 API Key/OAuth。凭据由编码工具保存,模型列表从原生接口读取。详细行为与验证边界见 [编码工具账号](../../docs/tool-authentication.md)。
@@ -11607,7 +11607,7 @@ var ToolSchema = z.object({
11607
11607
  password: z.string().optional()
11608
11608
  }).superRefine((tool, context) => {
11609
11609
  if (tool.kind === "opencode" && tool.mode === "managed") context.addIssue({ code: z.ZodIssueCode.custom, path: ["mode"], message: "OpenCode \u4EC5\u652F\u6301 external \u6A21\u5F0F\uFF1B\u8BF7\u5C06 tool.mode \u6539\u4E3A external\uFF0C\u7136\u540E\u53EF\u4ECE Claw \u8FDC\u7A0B\u542F\u52A8\u670D\u52A1" });
11610
- }).transform((tool) => ({ ...tool, mode: tool.kind === "opencode" ? "external" : tool.mode ?? "managed", autoStart: tool.autoStart ?? tool.kind !== "opencode" }));
11610
+ }).transform((tool) => ({ ...tool, mode: tool.kind === "opencode" ? "external" : tool.mode ?? "managed", autoStart: tool.autoStart ?? true }));
11611
11611
  var ConfigSchema = z.object({
11612
11612
  hubUrl: z.string().url(),
11613
11613
  botId: z.string().uuid(),
package/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  runDaemon,
23
23
  supportedPlatform,
24
24
  systemdUnitPath
25
- } from "./chunk-JHJQMGCD.js";
25
+ } from "./chunk-N4L5M6MC.js";
26
26
 
27
27
  // src/cli.ts
28
28
  import { spawn } from "node:child_process";
@@ -625,7 +625,7 @@ async function runOnboard(opts) {
625
625
  stateDirectory,
626
626
  ...loopbackHttp ? { allowInsecureLocalhost: true } : {},
627
627
  projects: projects.map((project) => ({ id: project.id, name: project.name, directory: project.directory, specDirectories: project.specDirectories ?? ["specs", "docs"] })),
628
- tool: { kind: toolKind, command: toolCommand || describeTool(toolKind).defaultCommand, ...toolKind === "opencode" ? { baseUrl, mode: "external" } : {}, ...toolKind === existing?.tool.kind && existing.tool.password ? { password: existing.tool.password } : {}, autoStart: toolKind === existing?.tool.kind ? existing.tool.autoStart : toolKind !== "opencode" }
628
+ tool: { kind: toolKind, command: toolCommand || describeTool(toolKind).defaultCommand, ...toolKind === "opencode" ? { baseUrl, mode: "external" } : {}, ...toolKind === existing?.tool.kind && existing.tool.password ? { password: existing.tool.password } : {}, autoStart: toolKind === existing?.tool.kind ? existing.tool.autoStart : true }
629
629
  });
630
630
  await loadConfig(opts.configPath);
631
631
  console.log(`\u5DF2\u5199\u5165\u914D\u7F6E\uFF1A${opts.configPath}\uFF080600\uFF09`);
package/dist/main.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  ConfigError,
4
4
  runDaemon
5
- } from "./chunk-JHJQMGCD.js";
5
+ } from "./chunk-N4L5M6MC.js";
6
6
 
7
7
  // src/main.ts
8
8
  runDaemon(process.env.OCTOPUS_PROXY_CONFIG ?? "proxy.json").catch((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skylandnpm/octopus-proxy",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "description": "Octopus host proxy: OpenCode, Codex, ZCode and Pi adapters with service installer CLI",
6
6
  "bin": {