@abelxiaoxing/cadence 2.1.3 → 2.1.5

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.
@@ -85,10 +85,11 @@ export function createWorkerToolkit(options) {
85
85
  name: "cadence_report",
86
86
  label: "Report assignment outcome",
87
87
  description:
88
- "Submit this assignment's structured result after all work. Completed means assigned work is done, not that owner checks or review passed. Use blocked for remaining work. Then give a brief final answer; no JSON formatting is required in that answer. Any later tool call requires a new report.",
88
+ "Submit this assignment's structured result after all work. Completed means assigned work is done, not that owner checks or review passed. Use partial when useful work is preserved but assigned work remains, or blocked when a concrete prerequisite prevents further progress. Neither is an execution crash or passing verification. Then give a brief final answer; no JSON formatting is required in that answer. Any later editing, shell or unknown tool call requires a new report; readonly inspection does not invalidate it.",
89
89
  parameters: Type.Object({
90
90
  status: Type.Union([
91
91
  Type.Literal("completed"),
92
+ Type.Literal("partial"),
92
93
  Type.Literal("blocked"),
93
94
  ]),
94
95
  summary: Type.String({ minLength: 1, maxLength: 8192 }),
@@ -103,7 +104,7 @@ export function createWorkerToolkit(options) {
103
104
  async execute(_id, input) {
104
105
  if (
105
106
  !input ||
106
- !["completed", "blocked"].includes(input.status) ||
107
+ !["completed", "partial", "blocked"].includes(input.status) ||
107
108
  typeof input.summary !== "string" ||
108
109
  !input.summary.trim() ||
109
110
  Object.keys(input).some(