@tbox.cn/tboxcode-dsh-bundle 0.1.0-rc.13 → 0.1.0-rc.15

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/cordis.patch.yml CHANGED
@@ -68,6 +68,9 @@
68
68
  disabled: true
69
69
  - id: tool-subagent-fork
70
70
  disabled: true
71
+ # 先读后写(0.2.2 基线默认 disabled:true;tboxcode 保持既有强制语义)
72
+ - id: fs-observation-policy
73
+ disabled: false
71
74
 
72
75
  # ── 新增行组(insert 语义——裸行 = 覆盖语义会 not found,新增行必须包 insert 块;
73
76
  # persona-identity 与 skill-filesystem 是覆盖行保持裸行)──
@@ -125,3 +128,14 @@
125
128
  # acp/headless 链 base 已启用,同 id 冗余覆盖 = 两形态一致纪律)──
126
129
  - id: skill-filesystem
127
130
  name: '@deepseek-ai/dsh-skill-filesystem'
131
+
132
+ # ── agent preset 默认值(四 profile 恒挂;决策:默认 preset 改为 standard)──
133
+ # server/web 显式钉住官方 web-app registry 的 default: standard;
134
+ # acp/headless 覆盖 tboxcode-presets 的 insert default: standard。
135
+ # config.jsonc 的 agent_preset 经 CLI overlay 再覆盖本行(启动期生效)。
136
+ # 不写 selectedDefault:用户 make-default 是 settings-owned volatile 字段,
137
+ # bundle 不得把它擦掉。
138
+ - id: agent-preset-registry
139
+ name: '@deepseek-ai/dsh-agent-preset-registry'
140
+ config:
141
+ default: standard
@@ -2,15 +2,15 @@ import { t as createConvergenceCore } from "./convergence-core-CbS-hTjK.js";
2
2
  import { existsSync } from "node:fs";
3
3
  import { dirname, join } from "node:path";
4
4
  import { pathToFileURL } from "node:url";
5
- import { OVERLAY_ROW_IDS, loadConfig, resolveConfigDir, rowsToPatchElements, translateConfig, watchConfigFiles } from "@tbox.cn/tboxcode-dsh-runtime";
5
+ import { LIVE_OVERLAY_ROW_IDS, loadConfig, resolveConfigDir, rowsToPatchElements, translateConfig, watchConfigFiles } from "@tbox.cn/tboxcode-dsh-runtime";
6
6
 
7
7
  //#region src/convergence.ts
8
8
  const name = "tboxcode-convergence";
9
9
  const inject = [];
10
- /** 翻译产出行 id 是否我方(覆盖行闭集——OVERLAY_ROW_IDS 契约共享,runtime patch.ts;
11
- * 0.2.1 原生采纳后翻译产物全量落在闭集内,agents 域新增行前缀已随类型面退役删除)。 */
10
+ /** 收敛环可热替换行 id(LIVE_OVERLAY_ROW_IDS;agent-preset-registry 是 startup-only,
11
+ * 必须留在 overlays 里,不能随收敛环重放被移除)。 */
12
12
  function isMineRowId(id) {
13
- return OVERLAY_ROW_IDS.has(id);
13
+ return LIVE_OVERLAY_ROW_IDS.has(id);
14
14
  }
15
15
  /** patch 元素是否为我方行(覆盖行 id 判定 / insert 块内行 id 判定)。 */
16
16
  function isMineElement(element) {
@@ -24,6 +24,13 @@ function isMineElement(element) {
24
24
  function hostBaseUrl() {
25
25
  return pathToFileURL(join(dirname(process.argv[1] ?? ""), "..")).href + "/";
26
26
  }
27
+ /** profile 名 → agent_preset 支持集(收敛环 startup-only,不发射 registry 行)。 */
28
+ function presetProfileOf(name$1) {
29
+ if (name$1 === "tboxcode-acp") return "acp";
30
+ if (name$1 === "tboxcode-web") return "web";
31
+ if (name$1 === "tboxcode-headless") return "headless";
32
+ return "server";
33
+ }
27
34
  /** 存量 agents/ 目录退役提示的去重标记(per-process 一次性)。 */
28
35
  let agentsDirWarned = false;
29
36
  function apply(ctx) {
@@ -36,7 +43,10 @@ function apply(ctx) {
36
43
  const loaded = loadConfig(configDir);
37
44
  let translation;
38
45
  try {
39
- translation = translateConfig(loaded.config, configDir, loaded.path !== null);
46
+ translation = translateConfig(loaded.config, configDir, loaded.path !== null, {
47
+ profile: presetProfileOf(pc.name),
48
+ includeAgentPreset: false
49
+ });
40
50
  } catch (error) {
41
51
  if (error.code === "MODEL_NOT_SET") return [];
42
52
  throw error;
@@ -1,4 +1,4 @@
1
1
  import "./convergence-core-CbS-hTjK.js";
2
- import { n as inject, r as name, t as apply } from "./convergence-BfoAE48C.js";
2
+ import { n as inject, r as name, t as apply } from "./convergence-BnrNjcuS.js";
3
3
 
4
4
  export { apply, inject, name };
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as rowsEqual, t as createConvergenceCore } from "./convergence-core-CbS-hTjK.js";
2
- import { r as name, t as apply } from "./convergence-BfoAE48C.js";
2
+ import { r as name, t as apply } from "./convergence-BnrNjcuS.js";
3
3
  import { a as sweepSessions, n as isOwnedHome, r as startRetentionScheduler, t as DEFAULT_KNOBS } from "./retention-DNEdnIxC.js";
4
4
  import { n as redactTokens, t as createLogger } from "./logger-BGwLHZXY.js";
5
5
  import { a as handleCommandsList, c as handleGitPushWatch, d as handleReload, f as handleRetentionRun, h as handleSkillsUserInvocable, i as handleCommandsExecute, l as handleHealth, o as handleCommit, p as handleSessionsFlush, s as handleDefaultSelection, t as TboxcodeRemoteGateway, u as handleMode, v as name$1 } from "./remote-lvZ2n78k.js";
package/lib/prompts.js CHANGED
@@ -222,12 +222,13 @@ function apply(ctx, config = {}) {
222
222
  const sp = scope.systemPrompt;
223
223
  const scopeGet = scope.get;
224
224
  const tools = scopeGet?.call(scope, "tools") ?? void 0;
225
- const projections = scopeGet?.call(scope, "sessionProjections") ?? void 0;
226
225
  const sandboxModeOf = (c) => {
227
226
  const session = c.agent?.session;
228
- if (projections === void 0 || session === void 0) return void 0;
227
+ if (session === void 0) return void 0;
228
+ const sandboxPolicy = scopeGet?.call(scope, "sandboxPolicy") ?? void 0;
229
+ if (sandboxPolicy === void 0) return void 0;
229
230
  try {
230
- return projections.stateOf(session, "sandboxMode");
231
+ return sandboxPolicy.resolve({ session })?.mode;
231
232
  } catch {
232
233
  return;
233
234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/tboxcode-dsh-bundle",
3
- "version": "0.1.0-rc.13",
3
+ "version": "0.1.0-rc.15",
4
4
  "type": "module",
5
5
  "description": "tboxcode 组合点(host 服务行 + agent 平面 host 行 + profile 模板三件):patch + prompts / reminders 插件 + tboxcode Remote 服务",
6
6
  "main": "lib/index.js",
@@ -47,22 +47,22 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "zod": "4.6.7",
50
- "@tbox.cn/tboxcode-dsh-tools": "0.1.0-rc.13",
51
- "@tbox.cn/tboxcode-dsh-runtime": "0.1.0-rc.13",
52
- "@tbox.cn/tboxcode-dsh-llm": "0.1.0-rc.13",
53
- "@tbox.cn/dsh-acp-bridge-core": "0.1.0-rc.13"
50
+ "@tbox.cn/tboxcode-dsh-tools": "0.1.0-rc.15",
51
+ "@tbox.cn/tboxcode-dsh-runtime": "0.1.0-rc.15",
52
+ "@tbox.cn/tboxcode-dsh-llm": "0.1.0-rc.15",
53
+ "@tbox.cn/dsh-acp-bridge-core": "0.1.0-rc.15"
54
54
  },
55
55
  "peerDependencies": {
56
- "@deepseek-ai/cordis": "4.0.5",
57
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
58
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.2"
56
+ "@deepseek-ai/cordis": "4.1.0",
57
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.1",
58
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@deepseek-ai/cordis": "4.0.5",
61
+ "@deepseek-ai/cordis": "4.1.0",
62
62
  "yaml": "^2.8.0",
63
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
64
- "@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.2",
65
- "@deepseek-ai/dsh-commands": "0.2.1-rc.2"
63
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.1",
64
+ "@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.1",
65
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.1"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "tsdown",