@clawos-dev/clawd 0.2.500 → 0.2.502
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/app-builder-plugin/mcp-server.cjs +3 -2
- package/dist/cli.cjs +1783 -942
- package/dist/dispatch/mcp-server.cjs +5 -4
- package/dist/pi-mcp-bridge/extension.cjs +14966 -0
- package/dist/share-md-viewer-error.html +1 -1
- package/dist/share-md-viewer.html +1 -1
- package/dist/share-ui/assets/{guest-C3zmHnZF.js → guest-B8V08f7r.js} +133 -133
- package/dist/share-ui/assets/guest-Ci_CRwfz.css +32 -0
- package/dist/share-ui/guest.html +2 -2
- package/package.json +1 -1
- package/dist/share-ui/assets/guest-Bs9R1ccn.css +0 -32
|
@@ -22495,11 +22495,12 @@ var OnboardingCompleteResultSchema = external_exports.object({
|
|
|
22495
22495
|
/** 毫秒时间戳;重复调用幂等返回首次值(对齐 personaScanDoneAt 先例) */
|
|
22496
22496
|
onboardingCompletedAt: external_exports.number()
|
|
22497
22497
|
});
|
|
22498
|
+
var PROBE_TOOL_IDS = ["claude", "codex", "pi"];
|
|
22498
22499
|
var ToolsProbeArgs = external_exports.object({});
|
|
22499
22500
|
var ToolsProbeResultSchema = external_exports.object({
|
|
22500
22501
|
tools: external_exports.array(
|
|
22501
22502
|
external_exports.object({
|
|
22502
|
-
id: external_exports.enum(
|
|
22503
|
+
id: external_exports.enum(PROBE_TOOL_IDS),
|
|
22503
22504
|
available: external_exports.boolean(),
|
|
22504
22505
|
version: external_exports.string().optional(),
|
|
22505
22506
|
path: external_exports.string().optional()
|
|
@@ -22508,7 +22509,7 @@ var ToolsProbeResultSchema = external_exports.object({
|
|
|
22508
22509
|
});
|
|
22509
22510
|
var SessionExternalScanArgs = external_exports.object({});
|
|
22510
22511
|
var ExternalSessionCandidateSchema = external_exports.object({
|
|
22511
|
-
tool: external_exports.enum(
|
|
22512
|
+
tool: external_exports.enum(PROBE_TOOL_IDS),
|
|
22512
22513
|
cwd: external_exports.string(),
|
|
22513
22514
|
toolSessionId: external_exports.string(),
|
|
22514
22515
|
label: external_exports.string().optional(),
|
|
@@ -25454,13 +25455,13 @@ async function main() {
|
|
|
25454
25455
|
// 明明能选到的新模型。精确校验下沉到 daemon handler(按 target persona tool 查运行时
|
|
25455
25456
|
// capabilities,fail-fast 且错误消息列出 allowed 值,caller 据此自我纠正)。
|
|
25456
25457
|
model: external_exports.string().optional().describe(
|
|
25457
|
-
"override the target persona's default model for this one dispatch. New dispatches only (rejected together with dispatchId). Omit to use the persona default. The valid set depends on the engine that will actually run (see tool): claude \u2192 " + CLAUDE_MODEL_IDS.join(" / ") + "; codex \u2192 model ids vary by installed codex version (e.g. gpt-5.6-sol)
|
|
25458
|
+
"override the target persona's default model for this one dispatch. New dispatches only (rejected together with dispatchId). Omit to use the persona default. The valid set depends on the engine that will actually run (see tool): claude \u2192 " + CLAUDE_MODEL_IDS.join(" / ") + "; codex \u2192 model ids vary by installed codex version (e.g. gpt-5.6-sol); pi \u2192 ids are '<provider>/<model>' from pi's own model table. Omit unless you know the exact id (invalid values are rejected with the allowed list)."
|
|
25458
25459
|
),
|
|
25459
25460
|
// 一次性 engine override (spec 2026-08-24):model 的合法值集从属于 engine,所以
|
|
25460
25461
|
// 「这次用 codex 的某个模型干」必须能连 engine 一起换,否则 model 校验按 persona
|
|
25461
25462
|
// 绑定的 engine 选表直接拒。
|
|
25462
25463
|
tool: external_exports.string().optional().describe(
|
|
25463
|
-
"run this one dispatch on a specific engine instead of the persona's bound one: 'claude' or '
|
|
25464
|
+
"run this one dispatch on a specific engine instead of the persona's bound one: 'claude', 'codex' or 'pi'. One-off \u2014 the persona's own binding is untouched. Pass this whenever you pass a model that belongs to the other engine (e.g. tool='codex' + model='gpt-5.6-sol' for a persona bound to claude). New dispatches only: rejected together with dispatchId (follow-ups keep the worker session's engine) or with targetDeviceId (a remote persona keeps its owner's engine)."
|
|
25464
25465
|
),
|
|
25465
25466
|
// butler 顶部入口 (spec 2026-07-27):butler 给新 worker session 起 label 用。
|
|
25466
25467
|
// Sidebar 直接显示这个 label(否则兜底 cwd-basename 都是 persona 目录名,同一
|