@clawos-dev/clawd 0.2.640 → 0.2.641

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.
@@ -32954,6 +32954,7 @@ var SessionFileSchema = external_exports.object({
32954
32954
  updatedAt: external_exports.string().min(1)
32955
32955
  });
32956
32956
  var ParsedEventBase = {
32957
+ turnId: external_exports.string().min(1).optional(),
32957
32958
  seq: external_exports.number().int().nonnegative().optional(),
32958
32959
  ts: external_exports.string().optional(),
32959
32960
  // CC top-level uuid:同一逻辑帧从 stream-json stdout 和 JSONL 落地时携带相同值,
@@ -33317,7 +33318,26 @@ var HistoryReadArgs = external_exports.object({
33317
33318
  /** 云历史分页快照标识;续页原样带回,避免多条链交错时混读。 */
33318
33319
  snapshotId: external_exports.string().uuid().optional(),
33319
33320
  /** Slim drops large non-rendered fields and truncates metadata text. Failed tool results keep output and page-local matching calls keep input, so error diagnosis remains possible. */
33320
- slim: external_exports.boolean().optional()
33321
+ slim: external_exports.boolean().optional(),
33322
+ view: external_exports.enum(["turns", "items"]).optional(),
33323
+ cursor: external_exports.string().min(1).max(16384).optional(),
33324
+ turnId: external_exports.string().min(1).max(256).optional()
33325
+ }).superRefine((args, context) => {
33326
+ if (args.view === "items" && !args.turnId) {
33327
+ context.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["turnId"], message: "items requires turnId" });
33328
+ }
33329
+ if (args.view && (args.offset !== void 0 || args.slim !== void 0)) {
33330
+ context.addIssue({ code: external_exports.ZodIssueCode.custom, message: "native views do not accept offset or slim" });
33331
+ }
33332
+ if (!args.view && (args.cursor !== void 0 || args.turnId !== void 0)) {
33333
+ context.addIssue({ code: external_exports.ZodIssueCode.custom, message: "cursor and turnId require a native view" });
33334
+ }
33335
+ if (args.view === "turns" && args.turnId !== void 0) {
33336
+ context.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["turnId"], message: "turns does not accept turnId" });
33337
+ }
33338
+ if (args.view && args.limit !== void 0 && args.limit > 100) {
33339
+ context.addIssue({ code: external_exports.ZodIssueCode.custom, path: ["limit"], message: "native page limit is 100" });
33340
+ }
33321
33341
  });
33322
33342
  var HistorySubagentsArgs = external_exports.object({
33323
33343
  cwd: external_exports.string().min(1),
@@ -33673,8 +33693,23 @@ var METHOD_DOCS = {
33673
33693
  args: HistoryListArgs
33674
33694
  },
33675
33695
  "history:read": {
33676
- summary: "\u8BFB\u4E00\u6761\u5386\u53F2\u4F1A\u8BDD\u7684\u5B8C\u6574\u6D88\u606F\uFF08\u89E3\u6790 CC jsonl\uFF09",
33677
- args: HistoryReadArgs
33696
+ summary: "\u8BFB\u5386\u53F2\u6D88\u606F\uFF1BCodex \u652F\u6301\u8F6E\u6458\u8981\u6E38\u6807\u5206\u9875\u4E0E\u6309\u8F6E\u8BE6\u60C5",
33697
+ args: HistoryReadArgs,
33698
+ argsConstraints: {
33699
+ anyOf: [
33700
+ { not: { anyOf: [{ required: ["view"] }, { required: ["cursor"] }, { required: ["turnId"] }] } },
33701
+ {
33702
+ required: ["view"],
33703
+ properties: { view: { const: "turns" }, limit: { maximum: 100 } },
33704
+ not: { anyOf: [{ required: ["offset"] }, { required: ["slim"] }, { required: ["turnId"] }] }
33705
+ },
33706
+ {
33707
+ required: ["view", "turnId"],
33708
+ properties: { view: { const: "items" }, limit: { maximum: 100 } },
33709
+ not: { anyOf: [{ required: ["offset"] }, { required: ["slim"] }] }
33710
+ }
33711
+ ]
33712
+ }
33678
33713
  },
33679
33714
  "history:subagents": {
33680
33715
  summary: "\u5217\u51FA\u67D0\u6B21\u4F1A\u8BDD\u91CC\u7684 subagent \u8FD0\u884C\u8BB0\u5F55",