Просмотр исходного кода

test(snapshot): re-record tool schemas for the todo item key tightening

additionalProperties: false on the todo_write item schema is model-visible
(tool schemas ride the request header and the code-mode prompt types), so
the pinned ACP/headless expected outputs re-record. Keyless refresh; the
two locally-failing scenarios are this machine's known environment issues
(HOME-symlink cwd normalization, SQLite ExperimentalWarning), not the diff.
Chinesezjc 2 месяцев назад
Родитель
Сommit
34eef10f04
16 измененных файлов с 17 добавлено и 17 удалено
  1. 1 1
      examples/acp-agent/tests/snapshots/advanced-toolchain/system-prompt.expected.md
  2. 1 1
      examples/acp-agent/tests/snapshots/advanced-toolchain/tool-schemas.expected.json
  3. 1 1
      examples/acp-agent/tests/snapshots/both-mode-turn/system-prompt.expected.md
  4. 1 1
      examples/acp-agent/tests/snapshots/both-mode-turn/tool-schemas.expected.json
  5. 1 1
      examples/acp-agent/tests/snapshots/code-mode-turn/system-prompt.expected.md
  6. 1 1
      examples/acp-agent/tests/snapshots/code-mode-workspace-context/system-prompt.expected.md
  7. 1 1
      examples/acp-agent/tests/snapshots/lsp-definition/tool-schemas.expected.json
  8. 2 2
      examples/acp-agent/tests/snapshots/model-switching/tool-schemas.expected.json
  9. 2 2
      examples/acp-agent/tests/snapshots/permission-switching/tool-schemas.expected.json
  10. 2 2
      examples/acp-agent/tests/snapshots/plan-mode/tool-schemas.expected.json
  11. 1 1
      examples/acp-agent/tests/snapshots/pty-tools/tool-schemas.expected.json
  12. 1 1
      examples/acp-agent/tests/snapshots/skill-load/tool-schemas.expected.json
  13. 1 1
      examples/acp-agent/tests/snapshots/text-turn/tool-schemas.expected.json
  14. 1 1
      examples/acp-agent/tests/snapshots/workspace-context/tool-schemas.expected.json
  15. 0 0
      examples/headless-agent/tests/snapshots/advanced-toolchain/session.1.jsonl
  16. 0 0
      examples/headless-agent/tests/snapshots/advanced-toolchain/session.2.jsonl

+ 1 - 1
examples/acp-agent/tests/snapshots/advanced-toolchain/system-prompt.expected.md

@@ -188,7 +188,7 @@ interface ToolArgsMap {
       content: string;
       /** pending (not started) | in_progress (now) | completed (done). */
       status: "pending" | "in_progress" | "completed";
-    } & Record<string, JsonValue>)[];
+    })[];
   } & Record<string, JsonValue>;
   /** Update the exact current goal revision. edit, pause, and resume require a direct top-level human request. During an automatic continuation of the current goal, complete and blocked are also allowed. blocked is rejected before the configured minimum round count; the model remains responsible for judging that the same condition persisted across those rounds and must explain it in blocked_reason. */
   update_goal: {

+ 1 - 1
examples/acp-agent/tests/snapshots/advanced-toolchain/tool-schemas.expected.json

@@ -440,7 +440,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",

+ 1 - 1
examples/acp-agent/tests/snapshots/both-mode-turn/system-prompt.expected.md

@@ -171,7 +171,7 @@ interface ToolArgsMap {
       content: string;
       /** pending (not started) | in_progress (now) | completed (done). */
       status: "pending" | "in_progress" | "completed";
-    } & Record<string, JsonValue>)[];
+    })[];
   } & Record<string, JsonValue>;
   /** Update the exact current goal revision. edit, pause, and resume require a direct top-level human request. During an automatic continuation of the current goal, complete and blocked are also allowed. blocked is rejected before the configured minimum round count; the model remains responsible for judging that the same condition persisted across those rounds and must explain it in blocked_reason. */
   update_goal: {

+ 1 - 1
examples/acp-agent/tests/snapshots/both-mode-turn/tool-schemas.expected.json

@@ -383,7 +383,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",

+ 1 - 1
examples/acp-agent/tests/snapshots/code-mode-turn/system-prompt.expected.md

@@ -171,7 +171,7 @@ interface ToolArgsMap {
       content: string;
       /** pending (not started) | in_progress (now) | completed (done). */
       status: "pending" | "in_progress" | "completed";
-    } & Record<string, JsonValue>)[];
+    })[];
   } & Record<string, JsonValue>;
   /** Update the exact current goal revision. edit, pause, and resume require a direct top-level human request. During an automatic continuation of the current goal, complete and blocked are also allowed. blocked is rejected before the configured minimum round count; the model remains responsible for judging that the same condition persisted across those rounds and must explain it in blocked_reason. */
   update_goal: {

+ 1 - 1
examples/acp-agent/tests/snapshots/code-mode-workspace-context/system-prompt.expected.md

@@ -171,7 +171,7 @@ interface ToolArgsMap {
       content: string;
       /** pending (not started) | in_progress (now) | completed (done). */
       status: "pending" | "in_progress" | "completed";
-    } & Record<string, JsonValue>)[];
+    })[];
   } & Record<string, JsonValue>;
   /** Update the exact current goal revision. edit, pause, and resume require a direct top-level human request. During an automatic continuation of the current goal, complete and blocked are also allowed. blocked is rejected before the configured minimum round count; the model remains responsible for judging that the same condition persisted across those rounds and must explain it in blocked_reason. */
   update_goal: {

+ 1 - 1
examples/acp-agent/tests/snapshots/lsp-definition/tool-schemas.expected.json

@@ -404,7 +404,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",

+ 2 - 2
examples/acp-agent/tests/snapshots/model-switching/tool-schemas.expected.json

@@ -367,7 +367,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",
@@ -917,7 +917,7 @@
               "description": "The COMPLETE task list, replacing any previous list.",
               "items": {
                 "type": "object",
-                "additionalProperties": true,
+                "additionalProperties": false,
                 "properties": {
                   "content": {
                     "type": "string",

+ 2 - 2
examples/acp-agent/tests/snapshots/permission-switching/tool-schemas.expected.json

@@ -367,7 +367,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",
@@ -917,7 +917,7 @@
               "description": "The COMPLETE task list, replacing any previous list.",
               "items": {
                 "type": "object",
-                "additionalProperties": true,
+                "additionalProperties": false,
                 "properties": {
                   "content": {
                     "type": "string",

+ 2 - 2
examples/acp-agent/tests/snapshots/plan-mode/tool-schemas.expected.json

@@ -367,7 +367,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",
@@ -917,7 +917,7 @@
               "description": "The COMPLETE task list, replacing any previous list.",
               "items": {
                 "type": "object",
-                "additionalProperties": true,
+                "additionalProperties": false,
                 "properties": {
                   "content": {
                     "type": "string",

+ 1 - 1
examples/acp-agent/tests/snapshots/pty-tools/tool-schemas.expected.json

@@ -496,7 +496,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",

+ 1 - 1
examples/acp-agent/tests/snapshots/skill-load/tool-schemas.expected.json

@@ -367,7 +367,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",

+ 1 - 1
examples/acp-agent/tests/snapshots/text-turn/tool-schemas.expected.json

@@ -367,7 +367,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",

+ 1 - 1
examples/acp-agent/tests/snapshots/workspace-context/tool-schemas.expected.json

@@ -367,7 +367,7 @@
             "description": "The COMPLETE task list, replacing any previous list.",
             "items": {
               "type": "object",
-              "additionalProperties": true,
+              "additionalProperties": false,
               "properties": {
                 "content": {
                   "type": "string",

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
examples/headless-agent/tests/snapshots/advanced-toolchain/session.1.jsonl


Разница между файлами не показана из-за своего большого размера
+ 0 - 0
examples/headless-agent/tests/snapshots/advanced-toolchain/session.2.jsonl


Некоторые файлы не были показаны из-за большого количества измененных файлов