@clawos-dev/clawd 0.2.135-beta.282.8ee36dc → 0.2.135-beta.284.17b2ea2
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/dist/cli.cjs +5 -7
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -35501,10 +35501,6 @@ function num(v2) {
|
|
|
35501
35501
|
}
|
|
35502
35502
|
|
|
35503
35503
|
// src/tools/codex-app-server-params.ts
|
|
35504
|
-
function resolveSandbox(ctx) {
|
|
35505
|
-
if (ctx.personaMode === "guest") return "workspace-write";
|
|
35506
|
-
return "danger-full-access";
|
|
35507
|
-
}
|
|
35508
35504
|
function resolveApprovalPolicy(ctx) {
|
|
35509
35505
|
if (ctx.personaMode === "owner" || ctx.personaMode === "guest") return "never";
|
|
35510
35506
|
const m2 = ctx.permissionMode ?? "";
|
|
@@ -35556,9 +35552,11 @@ function threadStartParams(ctx) {
|
|
|
35556
35552
|
approvalPolicy: resolveApprovalPolicy(ctx),
|
|
35557
35553
|
approvalsReviewer: "user",
|
|
35558
35554
|
...ctx.model ? { model: ctx.model } : {},
|
|
35559
|
-
// guest 沙箱由 app-server 启动 -c 注入的
|
|
35560
|
-
//
|
|
35561
|
-
|
|
35555
|
+
// sandbox = persona 侧 shell 沙箱边界(不进会话设置)。guest 沙箱由 app-server 启动 -c 注入的
|
|
35556
|
+
// permission profile(codexGuestCliArgs)控制——profile 是进程启动解析的,故 guest **不发
|
|
35557
|
+
// sandbox 字段**(避免 sandbox mode 覆盖 profile);owner / 普通会话 → danger-full-access
|
|
35558
|
+
// (owner 全权,对齐 CC owner 无 OS 沙箱),不读 permissionMode(那是审批预设,进 approvalPolicy)。
|
|
35559
|
+
...ctx.personaMode === "guest" ? {} : { sandbox: "danger-full-access" },
|
|
35562
35560
|
// 连接 intro(owner/guest 人称差异化)走 developerInstructions(developer 级、不进消息流、不显示在 UI),
|
|
35563
35561
|
// 取代旧的"折进首条 turn 文本"(那个被当用户消息显示)。thread/start + thread/resume 都带,幂等。
|
|
35564
35562
|
...ctx.extraSystemPrompt ? { developerInstructions: ctx.extraSystemPrompt } : {}
|
package/package.json
CHANGED