Prechádzať zdrojové kódy

fix(test): make Goal replay host-independent

Tianyi Cui 1 mesiac pred
rodič
commit
84d172de3d

+ 31 - 2
snapshots/web/goal-multi-turn-actions/replay.override.json

@@ -44,8 +44,8 @@
           { "type": "reasoning-delta", "index": 0, "text": "There are 4 packages:\n- client/ui-conversation\n- context/session-reference\n- llm/token-meter\n- skill/skill-filesystem\n\nFor this turn (turn 1 of 2), I should randomly pick one package and output its file structure. Let me pick randomly — I'll use $RANDOM or just pick one. Let me use a quick random selection." },
           { "type": "block-end", "index": 0, "block": { "type": "reasoning", "text": "There are 4 packages:\n- client/ui-conversation\n- context/session-reference\n- llm/token-meter\n- skill/skill-filesystem\n\nFor this turn (turn 1 of 2), I should randomly pick one package and output its file structure. Let me pick randomly — I'll use $RANDOM or just pick one. Let me use a quick random selection." } },
           { "type": "block-start", "index": 1, "blockType": "tool-call" },
-          { "type": "tool-call-delta", "index": 1, "id": "call_00_dAM4qfVp4LLtRCiJi7d71418", "name": "bash", "argumentsDelta": "{\"command\": \"find packages -maxdepth 2 -mindepth 2 -type d | sort | awk '{print NR\\\": \\\"$0}' && echo \\\"---random pick---\\\" && find packages -maxdepth 2 -mindepth 2 -type d | sort | PATH=/__dsh_fixture_missing__ shuf -n 1\", \"description\": \"Randomly pick one package directory\"}" },
-          { "type": "block-end", "index": 1, "block": { "type": "tool-call", "id": "call_00_dAM4qfVp4LLtRCiJi7d71418", "name": "bash", "arguments": "{\"command\": \"find packages -maxdepth 2 -mindepth 2 -type d | sort | awk '{print NR\\\": \\\"$0}' && echo \\\"---random pick---\\\" && find packages -maxdepth 2 -mindepth 2 -type d | sort | PATH=/__dsh_fixture_missing__ shuf -n 1\", \"description\": \"Randomly pick one package directory\"}" } },
+          { "type": "tool-call-delta", "index": 1, "id": "call_00_dAM4qfVp4LLtRCiJi7d71418", "name": "bash", "argumentsDelta": "{\"command\":\"printf '1: packages/client/ui-conversation\\n2: packages/context/session-reference\\n3: packages/llm/token-meter\\n4: packages/skill/skill-filesystem\\n---random pick---\\n'; printf 'bash: shuf: command not found\\n' >&2; exit 127\",\"description\":\"Randomly pick one package directory\"}" },
+          { "type": "block-end", "index": 1, "block": { "type": "tool-call", "id": "call_00_dAM4qfVp4LLtRCiJi7d71418", "name": "bash", "arguments": "{\"command\":\"printf '1: packages/client/ui-conversation\\n2: packages/context/session-reference\\n3: packages/llm/token-meter\\n4: packages/skill/skill-filesystem\\n---random pick---\\n'; printf 'bash: shuf: command not found\\n' >&2; exit 127\",\"description\":\"Randomly pick one package directory\"}" } },
           { "type": "usage", "usage": { "inputTokens": 156, "outputTokens": 202, "cacheReadTokens": 8448, "reasoningTokens": 80 } },
           { "type": "finish", "reason": { "kind": "tool-calls" } }
         ]
@@ -67,6 +67,22 @@
         ]
       }
     },
+    {
+      "at": 4,
+      "entry": {
+        "kind": "chunks",
+        "chunks": [
+          { "type": "block-start", "index": 0, "blockType": "reasoning" },
+          { "type": "reasoning-delta", "index": 0, "text": "The random pick for turn 1 is `packages/context/session-reference`. Now I'll output its file structure. Let me get the file tree." },
+          { "type": "block-end", "index": 0, "block": { "type": "reasoning", "text": "The random pick for turn 1 is `packages/context/session-reference`. Now I'll output its file structure. Let me get the file tree." } },
+          { "type": "block-start", "index": 1, "blockType": "tool-call" },
+          { "type": "tool-call-delta", "index": 1, "id": "call_00_HNZzKyAOnDcNLscoKIdq3835", "name": "bash", "argumentsDelta": "{\"command\":\"find packages/context/session-reference -type f -not -path '*/node_modules/*' -not -path '*/.git/*' | LC_ALL=C sort\",\"description\":\"List all files in session-reference package\"}" },
+          { "type": "block-end", "index": 1, "block": { "type": "tool-call", "id": "call_00_HNZzKyAOnDcNLscoKIdq3835", "name": "bash", "arguments": "{\"command\":\"find packages/context/session-reference -type f -not -path '*/node_modules/*' -not -path '*/.git/*' | LC_ALL=C sort\",\"description\":\"List all files in session-reference package\"}" } },
+          { "type": "usage", "usage": { "inputTokens": 94, "outputTokens": 127, "cacheReadTokens": 8960, "reasoningTokens": 32 } },
+          { "type": "finish", "reason": { "kind": "tool-calls" } }
+        ]
+      }
+    },
     {
       "at": 6,
       "entry": {
@@ -99,6 +115,19 @@
         ]
       }
     },
+    {
+      "at": 8,
+      "entry": {
+        "kind": "chunks",
+        "chunks": [
+          { "type": "block-start", "index": 0, "blockType": "tool-call" },
+          { "type": "tool-call-delta", "index": 0, "id": "call_00_ET_mh4Jb1yklK6bS4luMCFO2893", "name": "bash", "argumentsDelta": "{\"command\":\"find packages/llm/token-meter -type f -not -path '*/node_modules/*' -not -path '*/.git/*' | LC_ALL=C sort\",\"description\":\"List all files in token-meter package\"}" },
+          { "type": "block-end", "index": 0, "block": { "type": "tool-call", "id": "call_00_ET_mh4Jb1yklK6bS4luMCFO2893", "name": "bash", "arguments": "{\"command\":\"find packages/llm/token-meter -type f -not -path '*/node_modules/*' -not -path '*/.git/*' | LC_ALL=C sort\",\"description\":\"List all files in token-meter package\"}" } },
+          { "type": "usage", "usage": { "inputTokens": 119, "outputTokens": 96, "cacheReadTokens": 9856, "reasoningTokens": 0 } },
+          { "type": "finish", "reason": { "kind": "tool-calls" } }
+        ]
+      }
+    },
     {
       "at": 10,
       "entry": {

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 15 - 15
snapshots/web/goal-multi-turn-actions/session.jsonl


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov