@whaletalk/dsh-codex-collab 0.1.0 → 0.1.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Codex 主导的双向编码协作插件:ChatGPT 把编码任务下发给本机 DeepSeek Harness 的持久编码子代理执行,DeepSeek 在共享工作目录 D:\\Harness 中写代码并实时回传进度与汇报,Codex 读文件验收、反馈修正,直到通过。",
5
5
  "author": {
6
6
  "name": "FuJackGao"
@@ -235,12 +235,18 @@ export async function apply(ctx) {
235
235
 
236
236
  const createOwner = async (bucket) => {
237
237
  const modelOptions = pickModelOptions()
238
+ let ownerPreset = 'code'
239
+ if (agentPresets !== undefined) {
240
+ const presets = await agentPresets.list()
241
+ const available = (id) => presets.some((p) => p.id === id && !p.broken)
242
+ if (!available('code') && available('standard')) ownerPreset = 'standard'
243
+ }
238
244
  const handle = await agents.create({
239
245
  sessionId: 'dsh-bridge-owner-' + uid(),
240
- meta: { cwd: bucket.cwd, origin: 'subagent', agentPreset: 'code' },
246
+ meta: { cwd: bucket.cwd, origin: 'subagent', agentPreset: ownerPreset },
241
247
  agentOptions: modelOptions,
242
248
  setup: async (agentCtx) => {
243
- if (agentPresets !== undefined) await agentPresets.mount(agentCtx, 'code')
249
+ if (agentPresets !== undefined) await agentPresets.mount(agentCtx, ownerPreset)
244
250
  },
245
251
  })
246
252
  bucket.handle = handle
package/mcp/dsh-mcp.mjs CHANGED
@@ -6,7 +6,7 @@
6
6
  // 客户端(Secure MCP Tunnel / cloudflared)桥接给 ChatGPT 等远程产品。
7
7
  const GATEWAY = process.env.DSH_BRIDGE_URL || 'http://127.0.0.1:3080'
8
8
  const SERVER_NAME = 'dsh-bridge'
9
- const SERVER_VERSION = '0.2.0'
9
+ const SERVER_VERSION = '0.1.1'
10
10
  const PROTOCOL_VERSION = '2024-11-05'
11
11
 
12
12
  const log = (...args) => console.error('[dsh-mcp]', ...args)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whaletalk/dsh-codex-collab",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Codex × DeepSeek Harness 双向编码协作:Codex 主导派活与验收,DeepSeek Harness 编码子代理在共享工作目录执行并回传,独立评审子代理实际跑通构建/测试后出具报告。提供 DSH 宿主网关插件、零依赖 MCP 服务器与 Codex 技能三件套。",
5
5
  "license": "MIT",
6
6
  "type": "module",