@clawos-dev/clawd 0.2.721 → 0.2.722

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.
@@ -22289,7 +22289,7 @@ var DispatchRunArgsSchema = external_exports.object({
22289
22289
  }).refine((v) => v.targetPersona !== void 0 || v.dispatchId !== void 0, {
22290
22290
  message: "either targetPersona (new dispatch) or dispatchId (follow-up) is required"
22291
22291
  }).refine((v) => !(v.dispatchId !== void 0 && v.targetDeviceId !== void 0), {
22292
- message: "cross-device dispatch cannot be continued (dispatchId + targetDeviceId are mutually exclusive)"
22292
+ message: "follow-ups take only dispatchId; the target device comes from the ledger row (dispatchId + targetDeviceId are mutually exclusive)"
22293
22293
  }).refine((v) => !(v.tool !== void 0 && v.targetDeviceId !== void 0), {
22294
22294
  message: "engine override is not supported for cross-device dispatch (tool + targetDeviceId are mutually exclusive)"
22295
22295
  }).refine((v) => !(v.dispatchId !== void 0 && (v.tool !== void 0 || v.model !== void 0)), {
@@ -22308,6 +22308,10 @@ var DispatchRecordSchema = external_exports.object({
22308
22308
  targetPersonaId: external_exports.string().min(1),
22309
22309
  /** A-side target device attribution; absence means local for existing records. Forwarding strips it from the B-side local ledger. */
22310
22310
  targetDeviceId: external_exports.string().min(1).optional(),
22311
+ /** A-side cross-device rows: the B-side ledger id, used for follow-ups and for resuming polls after an A restart. */
22312
+ remoteDispatchId: external_exports.string().min(1).optional(),
22313
+ /** The A-side round B last accepted; a follow-up reopened but not yet accepted has remoteRound < round, so a restart must not resume polling it. */
22314
+ remoteRound: external_exports.number().int().positive().optional(),
22311
22315
  /** B 的 sessionId;registerBSession 后回填 */
22312
22316
  workerSessionId: external_exports.string().min(1).optional(),
22313
22317
  taskText: external_exports.string(),
@@ -24393,7 +24397,7 @@ var METHOD_DOCS = {
24393
24397
  args: PersonaIdArgsSchema
24394
24398
  },
24395
24399
  "personaDispatch:run": {
24396
- summary: "\u628A\u4EFB\u52A1\u59D4\u6D3E\u7ED9\u53E6\u4E00\u4E2A persona\uFF08\u53EF\u8DE8\u8BBE\u5907\uFF09\uFF0C\u5F02\u6B65\u79D2\u56DE { dispatchId }\u3002targetPersona \u4E0E dispatchId **\u81F3\u5C11\u7ED9\u4E00\u4E2A**\uFF08\u524D\u8005\u65B0\u5F00\u3001\u540E\u8005\u7EED\u6D3E\uFF09\uFF1BdispatchId \u4E0E targetDeviceId **\u4E92\u65A5**",
24400
+ summary: "\u628A\u4EFB\u52A1\u59D4\u6D3E\u7ED9\u53E6\u4E00\u4E2A persona\uFF08\u53EF\u8DE8\u8BBE\u5907\uFF09\uFF0C\u5F02\u6B65\u79D2\u56DE { dispatchId }\u3002targetPersona \u4E0E dispatchId **\u81F3\u5C11\u7ED9\u4E00\u4E2A**\uFF08\u524D\u8005\u65B0\u5F00\u3001\u540E\u8005\u7EED\u6D3E\uFF09\uFF1BdispatchId \u4E0E targetDeviceId **\u4E92\u65A5**\uFF08\u8DE8\u8BBE\u5907\u7EED\u6D3E\u4E5F\u53EA\u4F20 dispatchId\uFF0C\u8BBE\u5907\u4ECE\u53F0\u8D26\u53D6\uFF09",
24397
24401
  args: DispatchRunArgsSchema,
24398
24402
  argsConstraints: {
24399
24403
  anyOf: [{ required: ["targetPersona"] }, { required: ["dispatchId"] }],
@@ -25601,7 +25605,7 @@ async function main() {
25601
25605
  "what you are asking for and why it matters"
25602
25606
  ),
25603
25607
  targetDeviceId: external_exports.string().optional().describe(
25604
- "contact deviceId of the remote device when delegating cross-device (omit for a local persona)"
25608
+ "contact deviceId of the remote device when delegating cross-device (omit for a local persona; omit when continuing via dispatchId \u2014 the device is remembered)"
25605
25609
  ),
25606
25610
  // 模型列表随 engine 版本变化,不能编译期 enum 固定;daemon 按实际 engine capabilities 校验。
25607
25611
  model: external_exports.string().optional().describe(