cocheck 0.4.0 → 0.4.1
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.
- package/README.md +17 -3
- package/dist/agent-transcripts.js +15 -12
- package/dist/attribution/evidence.js +2 -1
- package/dist/attribution/reconstruct.js +19 -0
- package/dist/attribution/tag.js +3 -3
- package/dist/build-info.json +1 -1
- package/dist/cli.js +31 -11
- package/dist/connector/export-view.js +1 -1
- package/dist/coverage.js +5 -3
- package/dist/credit-guard.js +59 -54
- package/dist/harness-cmd/create.js +76 -0
- package/dist/harness-cmd/index.js +19 -0
- package/dist/harness-cmd/record.js +327 -0
- package/dist/harness-cmd/scrub.js +25 -0
- package/dist/harness-cmd/test.js +318 -0
- package/dist/harnesses/README.md +5 -0
- package/dist/harnesses/claude/cocheck-harness.json +344 -0
- package/dist/harnesses/codex/cocheck-harness.json +212 -0
- package/dist/harnesses/copilot/cocheck-harness.json +296 -0
- package/dist/{copilot-helpers.js → helper-linker.js} +43 -32
- package/dist/hook-adapter.js +287 -63
- package/dist/hook-cli.js +73 -36
- package/dist/hook-journal.js +40 -12
- package/dist/hosts/claude.js +23 -159
- package/dist/hosts/codex.js +41 -81
- package/dist/hosts/compile.js +275 -0
- package/dist/hosts/copilot.js +7 -162
- package/dist/hosts/extras.js +55 -0
- package/dist/hosts/harnesses.js +66 -0
- package/dist/hosts/index.js +176 -8
- package/dist/hosts/install-block.js +332 -0
- package/dist/hosts/manifest.js +372 -0
- package/dist/hosts/shared.js +21 -0
- package/dist/hosts/tool-classes.js +6 -0
- package/dist/hosts/types.js +1 -0
- package/dist/install.js +69 -22
- package/dist/ledger.js +11 -0
- package/dist/normalize.js +33 -9
- package/dist/open-pick.js +5 -3
- package/dist/patch-secrets.js +11 -11
- package/dist/review-server.js +2 -2
- package/dist/timeline/attribution.js +2 -2
- package/dist/timeline/describe.js +20 -17
- package/dist/timeline/load.js +2 -2
- package/dist/timeline/rail/assets/review.js +1 -1
- package/dist/timeline/rail/model.js +8 -8
- package/dist/timeline/read-signal.js +4 -4
- package/dist/timeline/render/view-v1.js +2 -13
- package/dist/timeline/runs.js +9 -9
- package/dist/timeline/timeline.js +8 -8
- package/dist/timeline/write-signal.js +4 -3
- package/package.json +2 -2
- package/public-kit/harness/GUIDE.md +81 -0
- package/public-kit/harness/README.md +10 -0
- package/public-kit/harness/cases/claude/shell-writes-file.json +120 -0
- package/public-kit/harness/cases/codex/apply-patch-writes-files.json +177 -0
- package/public-kit/harness/cases/codex/helper-writes-file.json +160 -0
- package/public-kit/harness/cases/codex/shell-writes-and-fails.json +110 -0
- package/public-kit/harness/cases/copilot/camel-case-patch-and-failure.json +126 -0
- package/public-kit/harness/cases/copilot/helper-writes-file.json +209 -0
- package/public-kit/harness/cases/copilot/vscode-helper-writes-file.json +236 -0
- package/public-kit/harness/examples/toyagent/cases/write-notes.json +142 -0
- package/public-kit/harness/examples/toyagent/cocheck-harness.json +47 -0
- package/public-kit/harness/examples/toyagent/recordings/payloads.jsonl +8 -0
- package/public-kit/harness/harnesses/antigravity/README.md +32 -0
- package/public-kit/harness/harnesses/antigravity/cases/failed-edit.json +99 -0
- package/public-kit/harness/harnesses/antigravity/cases/helper-writes-file.json +270 -0
- package/public-kit/harness/harnesses/antigravity/cases/shell-ok-fail-and-denied.json +211 -0
- package/public-kit/harness/harnesses/antigravity/cases/write-then-edit.json +191 -0
- package/public-kit/harness/harnesses/antigravity/cocheck-harness.json +62 -0
- package/public-kit/harness/harnesses/antigravity/recordings/payloads.jsonl +63 -0
- package/public-kit/harness/harnesses/cursor/README.md +40 -0
- package/public-kit/harness/harnesses/cursor/cases/editor-write-edit-shell-helper.json +359 -0
- package/public-kit/harness/harnesses/cursor/cases/read-then-write-one-call-id.json +159 -0
- package/public-kit/harness/harnesses/cursor/cocheck-harness.json +67 -0
- package/public-kit/harness/harnesses/cursor/recordings/payloads.jsonl +28 -0
- package/public-kit/harness/scaffold/README.md +42 -0
- package/public-kit/harness/scaffold/cocheck-harness.json +72 -0
- package/public-kit/harness/scaffold/recordings/.gitkeep +0 -0
- package/public-kit/harness/spec/v1.md +286 -0
- package/scripts/hook-launch.sh +1 -1
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "cocheck-harness-case/1",
|
|
3
|
+
"harness": "cursor",
|
|
4
|
+
"description": "Cursor 3.31.15 editor agent chat: Write creates hello.txt, Write edits seed.txt (afterFileEdit arrives inside each Write call, without a call id), a shell call succeeds, one fails (postToolUseFailure), and a Task helper reads a file under its own conversation id.",
|
|
5
|
+
"level": "L2",
|
|
6
|
+
"recording": [
|
|
7
|
+
{
|
|
8
|
+
"event": "sessionStart",
|
|
9
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"\", \"model\": \"grok-4.7-medium\", \"model_id\": \"grok-4.7\", \"model_params\": [{\"id\": \"context\", \"value\": \"256k\"}, {\"id\": \"reasoning_effort\", \"value\": \"medium\"}, {\"id\": \"fast\", \"value\": \"false\"}], \"is_background_agent\": false, \"composer_mode\": \"agent\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"sessionStart\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
10
|
+
"argv": []
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"event": "beforeSubmitPrompt",
|
|
14
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7-medium\", \"model_id\": \"grok-4.7\", \"model_params\": [{\"id\": \"context\", \"value\": \"256k\"}, {\"id\": \"reasoning_effort\", \"value\": \"medium\"}, {\"id\": \"fast\", \"value\": \"false\"}], \"composer_mode\": \"agent\", \"prompt\": \"This is a test run in a scratch folder. Please do these steps in order, one tool call each, and don't ask me anything:\\n1. Create a new file named hello.txt containing the single line: hello from cursor\\n2. Edit seed.txt: change the line \\\"status: draft\\\" to \\\"status: recorded\\\". Leave the other lines as they are.\\n3. Run this shell command: ls -la\\n4. Run this shell command, which is expected to fail, and just report that it failed: cat does-not-exist.txt\\n5. Use a subagent (the Task tool) to read hello.txt and reply with its contents. If you have no subagent tool, say so and skip this step.\\nThen give a one-line summary of what you did.\", \"attachments\": [], \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"beforeSubmitPrompt\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
15
|
+
"argv": []
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"event": "preToolUse",
|
|
19
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\"}, \"tool_use_id\": \"call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
20
|
+
"argv": []
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"event": "postToolUseFailure",
|
|
24
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\"}, \"error_message\": \"File not found: <folder>/hello.txt\", \"failure_type\": \"error\", \"duration\": 2.492, \"tool_use_id\": \"call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0\", \"is_interrupt\": false, \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"postToolUseFailure\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
25
|
+
"argv": []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"event": "preToolUse",
|
|
29
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\", \"content\": \"hello from cursor\\n\"}, \"tool_use_id\": \"call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
30
|
+
"argv": []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"event": "afterFileEdit",
|
|
34
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"file_path\": \"<folder>/hello.txt\", \"edits\": [{\"old_string\": \"\", \"new_string\": \"hello from cursor\\n\"}], \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"afterFileEdit\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
35
|
+
"argv": []
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"event": "postToolUse",
|
|
39
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\", \"content\": \"hello from cursor\\n\"}, \"tool_output\": \"{\\\"file_path\\\":\\\"<folder>/hello.txt\\\",\\\"success\\\":true}\", \"duration\": 15.341, \"tool_use_id\": \"call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
40
|
+
"argv": []
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"event": "preToolUse",
|
|
44
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/seed.txt\"}, \"tool_use_id\": \"call-1a0c295f-a03e-434d-957b-84212dabc35a-1\\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
45
|
+
"argv": []
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"event": "postToolUse",
|
|
49
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/seed.txt\"}, \"tool_output\": \"{\\\"file_path\\\":\\\"<folder>/seed.txt\\\",\\\"content_length\\\":51}\", \"duration\": 2.966, \"tool_use_id\": \"call-1a0c295f-a03e-434d-957b-84212dabc35a-1\\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
50
|
+
"argv": []
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"event": "preToolUse",
|
|
54
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"<folder>/seed.txt\", \"content\": \"CoCheck recording seed\\nstatus: recorded\\nowner: nobody\\n\"}, \"tool_use_id\": \"call-1a0c295f-a03e-434d-957b-84212dabc35a-1\\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
55
|
+
"argv": []
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"event": "afterFileEdit",
|
|
59
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"file_path\": \"<folder>/seed.txt\", \"edits\": [{\"old_string\": \"status: draft\", \"new_string\": \"status: recorded\"}], \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"afterFileEdit\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
60
|
+
"argv": []
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"event": "postToolUse",
|
|
64
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"<folder>/seed.txt\", \"content\": \"CoCheck recording seed\\nstatus: recorded\\nowner: nobody\\n\"}, \"tool_output\": \"{\\\"file_path\\\":\\\"<folder>/seed.txt\\\",\\\"success\\\":true}\", \"duration\": 9.555, \"tool_use_id\": \"call-1a0c295f-a03e-434d-957b-84212dabc35a-1\\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
65
|
+
"argv": []
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"event": "preToolUse",
|
|
69
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Shell\", \"tool_input\": {\"command\": \"ls -la\", \"cwd\": \"\", \"timeout\": 30000}, \"tool_use_id\": \"ecbec0ca-9c34-4a41-8b14-656478895237\", \"cwd\": \"\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
70
|
+
"argv": []
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"event": "beforeShellExecution",
|
|
74
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"command\": \"ls -la\", \"cwd\": \"\", \"sandbox\": true, \"tool_use_id\": \"ecbec0ca-9c34-4a41-8b14-656478895237\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"beforeShellExecution\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
75
|
+
"argv": []
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"event": "afterShellExecution",
|
|
79
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"command\": \"ls -la\", \"output\": \"total 24\\ndrwxr-xr-x@ 7 <user> staff 224 Nov 22 11:31 .\\ndrwxr-x---+ 61 <user> staff 1952 Nov 22 11:29 ..\\ndrwxr-xr-x@ 5 <user> staff 160 Nov 22 11:15 .cursor\\n-rw-r--r--@ 1 <user> staff 637 Nov 22 11:15 PROMPT.txt\\ndrwxr-xr-x@ 3 <user> staff 96 Nov 22 11:15 capture\\n-rw-r--r--@ 1 <user> staff 18 Nov 22 11:31 hello.txt\\n-rw-r--r--@ 1 <user> staff 54 Nov 22 11:31 seed.txt\\n\", \"duration\": 492.336, \"sandbox\": true, \"tool_use_id\": \"ecbec0ca-9c34-4a41-8b14-656478895237\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"afterShellExecution\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
80
|
+
"argv": []
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"event": "postToolUse",
|
|
84
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Shell\", \"tool_input\": {\"command\": \"ls -la\", \"cwd\": \"\", \"timeout\": 30000}, \"tool_output\": \"{\\\"output\\\":\\\"total 24\\\\ndrwxr-xr-x@ 7 <user> staff 224 Nov 22 11:31 .\\\\ndrwxr-x---+ 61 <user> staff 1952 Nov 22 11:29 ..\\\\ndrwxr-xr-x@ 5 <user> staff 160 Nov 22 11:15 .cursor\\\\n-rw-r--r--@ 1 <user> staff 637 Nov 22 11:15 PROMPT.txt\\\\ndrwxr-xr-x@ 3 <user> staff 96 Nov 22 11:15 capture\\\\n-rw-r--r--@ 1 <user> staff 18 Nov 22 11:31 hello.txt\\\\n-rw-r--r--@ 1 <user> staff 54 Nov 22 11:31 seed.txt\\\\n\\\",\\\"exitCode\\\":0}\", \"duration\": 492.336, \"tool_use_id\": \"ecbec0ca-9c34-4a41-8b14-656478895237\", \"cwd\": \"\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
85
|
+
"argv": []
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"event": "preToolUse",
|
|
89
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Shell\", \"tool_input\": {\"command\": \"cat does-not-exist.txt\", \"cwd\": \"\", \"timeout\": 30000}, \"tool_use_id\": \"a63eefc0-84a9-4d8b-8efc-8587911281ec\", \"cwd\": \"\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
90
|
+
"argv": []
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"event": "beforeShellExecution",
|
|
94
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"command\": \"cat does-not-exist.txt\", \"cwd\": \"\", \"sandbox\": true, \"tool_use_id\": \"a63eefc0-84a9-4d8b-8efc-8587911281ec\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"beforeShellExecution\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
95
|
+
"argv": []
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"event": "afterShellExecution",
|
|
99
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"command\": \"cat does-not-exist.txt\", \"output\": \"cat: does-not-exist.txt: No such file or directory\\n\", \"duration\": 150.739, \"sandbox\": true, \"tool_use_id\": \"a63eefc0-84a9-4d8b-8efc-8587911281ec\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"afterShellExecution\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
100
|
+
"argv": []
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"event": "postToolUseFailure",
|
|
104
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7\", \"tool_name\": \"Shell\", \"tool_input\": {\"command\": \"cat does-not-exist.txt\", \"cwd\": \"\", \"timeout\": 30000}, \"error_message\": \"cat: does-not-exist.txt: No such file or directory\", \"failure_type\": \"error\", \"duration\": 150.739, \"tool_use_id\": \"a63eefc0-84a9-4d8b-8efc-8587911281ec\", \"is_interrupt\": false, \"cwd\": \"\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"postToolUseFailure\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
105
|
+
"argv": []
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"event": "preToolUse",
|
|
109
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"\", \"tool_name\": \"Task\", \"tool_input\": {\"description\": \"Read hello.txt contents\", \"prompt\": \"Read the file <folder>/hello.txt and reply with its exact contents and nothing else. Do not modify any files.\", \"subagent_type\": \"generalPurpose\", \"run_in_background\": false}, \"tool_use_id\": \"call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
110
|
+
"argv": []
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"event": "subagentStart",
|
|
114
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7-medium\", \"subagent_id\": \"call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0\", \"subagent_type\": \"general-purpose\", \"task\": \"Read the file <folder>/hello.txt and reply with its exact contents and nothing else. Do not modify any files.\", \"parent_conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"tool_call_id\": \"call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0\", \"subagent_model\": \"grok-4.7-medium\", \"is_parallel_worker\": false, \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"subagentStart\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"parent_agent_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
115
|
+
"argv": []
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"event": "preToolUse",
|
|
119
|
+
"stdin": "{\"conversation_id\": \"b0d6fa01-b7d8-4b6e-996f-e5158d433dce\", \"generation_id\": \"799cb1ac-2b29-4c9e-84ad-3e5e4c57e64f\", \"model\": \"grok-4.7-medium\", \"parent_tool_call_id\": \"call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\"}, \"tool_use_id\": \"call-d8f4f580-e4e2-4cea-af81-a1720eca9e7c-1\\nfc_bfe28f19-e35e-421f-a5cc-f3d3c6f6c750_1\", \"session_id\": \"b0d6fa01-b7d8-4b6e-996f-e5158d433dce\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"parent_agent_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
120
|
+
"argv": []
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"event": "postToolUse",
|
|
124
|
+
"stdin": "{\"conversation_id\": \"b0d6fa01-b7d8-4b6e-996f-e5158d433dce\", \"generation_id\": \"799cb1ac-2b29-4c9e-84ad-3e5e4c57e64f\", \"model\": \"grok-4.7-medium\", \"parent_tool_call_id\": \"call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\"}, \"tool_output\": \"{\\\"file_path\\\":\\\"<folder>/hello.txt\\\",\\\"content_length\\\":18}\", \"duration\": 2.658, \"tool_use_id\": \"call-d8f4f580-e4e2-4cea-af81-a1720eca9e7c-1\\nfc_bfe28f19-e35e-421f-a5cc-f3d3c6f6c750_1\", \"session_id\": \"b0d6fa01-b7d8-4b6e-996f-e5158d433dce\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"parent_agent_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
125
|
+
"argv": []
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"event": "postToolUse",
|
|
129
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7-medium\", \"tool_name\": \"Task\", \"tool_input\": {\"description\": \"Read hello.txt contents\", \"prompt\": \"Read the file <folder>/hello.txt and reply with its exact contents and nothing else. Do not modify any files.\", \"subagent_type\": \"generalPurpose\", \"run_in_background\": false}, \"tool_output\": \"{\\\"status\\\":\\\"success\\\",\\\"agentId\\\":\\\"b0d6fa01-b7d8-4b6e-996f-e5158d433dce\\\",\\\"durationMs\\\":15532,\\\"isBackground\\\":false}\", \"duration\": 15532, \"tool_use_id\": \"call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
130
|
+
"argv": []
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"event": "subagentStop",
|
|
134
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7-medium\", \"subagent_id\": \"call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0\", \"subagent_type\": \"general-purpose\", \"status\": \"completed\", \"duration_ms\": 15709, \"parent_conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"child_conversation_id\": \"b0d6fa01-b7d8-4b6e-996f-e5158d433dce\", \"message_count\": 0, \"tool_call_count\": 0, \"loop_count\": 0, \"task\": \"Read the file <folder>/hello.txt and reply with its exact contents and nothing else. Do not modify any files.\", \"description\": \"Read hello.txt contents\", \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"subagentStop\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"parent_agent_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"user_email\": \"user@example.com\", \"transcript_path\": null, \"agent_transcript_path\": null}",
|
|
135
|
+
"argv": []
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"event": "afterAgentResponse",
|
|
139
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7-medium\", \"model_id\": \"grok-4.7\", \"model_params\": [{\"id\": \"context\", \"value\": \"256k\"}, {\"id\": \"reasoning_effort\", \"value\": \"medium\"}, {\"id\": \"fast\", \"value\": \"false\"}], \"text\": \"EXECUTE\\n\\nCreated `hello.txt` (`hello from cursor`), set `seed.txt` to `status: recorded`, listed the directory, confirmed `cat does-not-exist.txt` failed, and [Read hello.txt](b0d6fa01-b7d8-4b6e-996f-e5158d433dce) returned `hello from cursor`.\", \"input_tokens\": 136854, \"output_tokens\": 1977, \"cache_read_tokens\": 104320, \"cache_write_tokens\": 0, \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"afterAgentResponse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": \"<root>/.cursor/projects/Users-<user>-cocheck-cursor-recording/agent-transcripts/c49868f9-7b4e-426e-942a-47796279c579/c49868f9-7b4e-426e-942a-47796279c579.jsonl\"}",
|
|
140
|
+
"argv": []
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"event": "stop",
|
|
144
|
+
"stdin": "{\"conversation_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"generation_id\": \"bf81fa1c-bfc2-4e3e-8688-82e918a4b0ad\", \"model\": \"grok-4.7-medium\", \"model_id\": \"grok-4.7\", \"model_params\": [{\"id\": \"context\", \"value\": \"256k\"}, {\"id\": \"reasoning_effort\", \"value\": \"medium\"}, {\"id\": \"fast\", \"value\": \"false\"}], \"status\": \"completed\", \"loop_count\": 0, \"input_tokens\": 136854, \"output_tokens\": 1977, \"cache_read_tokens\": 104320, \"cache_write_tokens\": 0, \"session_id\": \"c49868f9-7b4e-426e-942a-47796279c579\", \"hook_event_name\": \"stop\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": \"<root>/.cursor/projects/Users-<user>-cocheck-cursor-recording/agent-transcripts/c49868f9-7b4e-426e-942a-47796279c579/c49868f9-7b4e-426e-942a-47796279c579.jsonl\"}",
|
|
145
|
+
"argv": []
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"files": {
|
|
149
|
+
"before": {
|
|
150
|
+
"seed.txt": "CoCheck recording seed\nstatus: draft\nowner: nobody\n"
|
|
151
|
+
},
|
|
152
|
+
"writes": [
|
|
153
|
+
{
|
|
154
|
+
"afterEvent": 5,
|
|
155
|
+
"path": "hello.txt",
|
|
156
|
+
"content": "hello from cursor\n"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"afterEvent": 10,
|
|
160
|
+
"path": "seed.txt",
|
|
161
|
+
"content": "CoCheck recording seed\nstatus: recorded\nowner: nobody\n"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"expect": {
|
|
166
|
+
"normalized": [
|
|
167
|
+
{
|
|
168
|
+
"kind": "other",
|
|
169
|
+
"eventName": "sessionStart",
|
|
170
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"kind": "prompt",
|
|
174
|
+
"eventName": "beforeSubmitPrompt",
|
|
175
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"kind": "tool-pre",
|
|
179
|
+
"eventName": "preToolUse",
|
|
180
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
181
|
+
"toolName": "Read",
|
|
182
|
+
"callId": "call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "tool-failure",
|
|
186
|
+
"eventName": "postToolUseFailure",
|
|
187
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
188
|
+
"toolName": "Read",
|
|
189
|
+
"failure": {
|
|
190
|
+
"raw": "File not found: <folder>/hello.txt",
|
|
191
|
+
"interrupted": false
|
|
192
|
+
},
|
|
193
|
+
"callId": "call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"kind": "tool-pre",
|
|
197
|
+
"eventName": "preToolUse",
|
|
198
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
199
|
+
"toolName": "Write",
|
|
200
|
+
"callId": "call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "other",
|
|
204
|
+
"eventName": "afterFileEdit",
|
|
205
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"kind": "tool-post",
|
|
209
|
+
"eventName": "postToolUse",
|
|
210
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
211
|
+
"toolName": "Write",
|
|
212
|
+
"callId": "call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"kind": "tool-pre",
|
|
216
|
+
"eventName": "preToolUse",
|
|
217
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
218
|
+
"toolName": "Read",
|
|
219
|
+
"callId": "call-1a0c295f-a03e-434d-957b-84212dabc35a-1\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"kind": "tool-post",
|
|
223
|
+
"eventName": "postToolUse",
|
|
224
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
225
|
+
"toolName": "Read",
|
|
226
|
+
"callId": "call-1a0c295f-a03e-434d-957b-84212dabc35a-1\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"kind": "tool-pre",
|
|
230
|
+
"eventName": "preToolUse",
|
|
231
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
232
|
+
"toolName": "Write",
|
|
233
|
+
"callId": "call-1a0c295f-a03e-434d-957b-84212dabc35a-1\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"kind": "other",
|
|
237
|
+
"eventName": "afterFileEdit",
|
|
238
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"kind": "tool-post",
|
|
242
|
+
"eventName": "postToolUse",
|
|
243
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
244
|
+
"toolName": "Write",
|
|
245
|
+
"callId": "call-1a0c295f-a03e-434d-957b-84212dabc35a-1\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"kind": "tool-pre",
|
|
249
|
+
"eventName": "preToolUse",
|
|
250
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
251
|
+
"toolName": "Shell",
|
|
252
|
+
"callId": "ecbec0ca-9c34-4a41-8b14-656478895237"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"kind": "other",
|
|
256
|
+
"eventName": "beforeShellExecution",
|
|
257
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "other",
|
|
261
|
+
"eventName": "afterShellExecution",
|
|
262
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"kind": "tool-post",
|
|
266
|
+
"eventName": "postToolUse",
|
|
267
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
268
|
+
"toolName": "Shell",
|
|
269
|
+
"callId": "ecbec0ca-9c34-4a41-8b14-656478895237"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"kind": "tool-pre",
|
|
273
|
+
"eventName": "preToolUse",
|
|
274
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
275
|
+
"toolName": "Shell",
|
|
276
|
+
"callId": "a63eefc0-84a9-4d8b-8efc-8587911281ec"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"kind": "other",
|
|
280
|
+
"eventName": "beforeShellExecution",
|
|
281
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"kind": "other",
|
|
285
|
+
"eventName": "afterShellExecution",
|
|
286
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"kind": "tool-failure",
|
|
290
|
+
"eventName": "postToolUseFailure",
|
|
291
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
292
|
+
"toolName": "Shell",
|
|
293
|
+
"failure": {
|
|
294
|
+
"raw": "cat: does-not-exist.txt: No such file or directory",
|
|
295
|
+
"interrupted": false
|
|
296
|
+
},
|
|
297
|
+
"callId": "a63eefc0-84a9-4d8b-8efc-8587911281ec"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"kind": "tool-pre",
|
|
301
|
+
"eventName": "preToolUse",
|
|
302
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
303
|
+
"toolName": "Task",
|
|
304
|
+
"callId": "call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"kind": "other",
|
|
308
|
+
"eventName": "subagentStart",
|
|
309
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "tool-pre",
|
|
313
|
+
"eventName": "preToolUse",
|
|
314
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
315
|
+
"toolName": "Read",
|
|
316
|
+
"callId": "call-d8f4f580-e4e2-4cea-af81-a1720eca9e7c-1\nfc_bfe28f19-e35e-421f-a5cc-f3d3c6f6c750_1"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"kind": "tool-post",
|
|
320
|
+
"eventName": "postToolUse",
|
|
321
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
322
|
+
"toolName": "Read",
|
|
323
|
+
"callId": "call-d8f4f580-e4e2-4cea-af81-a1720eca9e7c-1\nfc_bfe28f19-e35e-421f-a5cc-f3d3c6f6c750_1"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"kind": "tool-post",
|
|
327
|
+
"eventName": "postToolUse",
|
|
328
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579",
|
|
329
|
+
"toolName": "Task",
|
|
330
|
+
"callId": "call-981e8a13-6224-4e6f-baa4-cf2aaefecf58-5\nfc_58bb2bb6-3075-4bfe-8fe8-f20c8f622937_0"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"kind": "subagent-stop",
|
|
334
|
+
"eventName": "subagentStop",
|
|
335
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"kind": "other",
|
|
339
|
+
"eventName": "afterAgentResponse",
|
|
340
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"kind": "stop",
|
|
344
|
+
"eventName": "stop",
|
|
345
|
+
"session": "c49868f9-7b4e-426e-942a-47796279c579"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"credit": {
|
|
349
|
+
"hello.txt": {
|
|
350
|
+
"creditedTo": "call:call-09bdd4e8-c214-483d-b0e3-37a516bd4133-0\nfc_efc3824d-6272-9819-93fc-cbb67bf2de7e_0-r2",
|
|
351
|
+
"basis": "inferred"
|
|
352
|
+
},
|
|
353
|
+
"seed.txt": {
|
|
354
|
+
"creditedTo": "call:call-1a0c295f-a03e-434d-957b-84212dabc35a-1\nfc_7f434272-1c3a-43e5-86ec-be60809ca51d_0-r2",
|
|
355
|
+
"basis": "inferred"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "cocheck-harness-case/1",
|
|
3
|
+
"harness": "cursor",
|
|
4
|
+
"description": "Cursor 3.31.15 editor agent chat, no afterFileEdit: Cursor gives a Read and the Write after it in the same step one call id (a failed Read of hello.txt then a Write that creates it; a Read of seed.txt then a Write that edits it). Each Write is a call of its own and is credited with its file.",
|
|
5
|
+
"level": "L2",
|
|
6
|
+
"recording": [
|
|
7
|
+
{
|
|
8
|
+
"event": "beforeSubmitPrompt",
|
|
9
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7-medium\", \"model_id\": \"grok-4.7\", \"model_params\": [{\"id\": \"context\", \"value\": \"256k\"}, {\"id\": \"reasoning_effort\", \"value\": \"medium\"}, {\"id\": \"fast\", \"value\": \"false\"}], \"composer_mode\": \"agent\", \"prompt\": \"This is a test run in a scratch folder. Please do these steps in order, one tool call each, and don't ask me anything:\\n1. Create a new file named hello.txt containing the single line: hello from cursor\\n2. Edit seed.txt: change the line \\\"status: draft\\\" to \\\"status: recorded\\\". Leave the other lines as they are.\\n3. Run this shell command: ls -la\\n4. Run this shell command, which is expected to fail, and just report that it failed: cat does-not-exist.txt\\n5. Use a subagent (the Task tool) to read hello.txt and reply with its contents. If you have no subagent tool, say so and skip this step.\\nThen give a one-line summary of what you did.\\n\", \"attachments\": [], \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"beforeSubmitPrompt\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
10
|
+
"argv": []
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"event": "preToolUse",
|
|
14
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\"}, \"tool_use_id\": \"call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0\", \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
15
|
+
"argv": []
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"event": "postToolUseFailure",
|
|
19
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\"}, \"error_message\": \"File not found: <folder>/hello.txt\", \"failure_type\": \"error\", \"duration\": 2.58, \"tool_use_id\": \"call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0\", \"is_interrupt\": false, \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"postToolUseFailure\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
20
|
+
"argv": []
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"event": "preToolUse",
|
|
24
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7\", \"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\", \"content\": \"hello from cursor\\n\"}, \"tool_use_id\": \"call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0\", \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
25
|
+
"argv": []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"event": "postToolUse",
|
|
29
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7\", \"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"<folder>/hello.txt\", \"content\": \"hello from cursor\\n\"}, \"tool_output\": \"{\\\"file_path\\\":\\\"<folder>/hello.txt\\\",\\\"success\\\":true}\", \"duration\": 11.17, \"tool_use_id\": \"call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0\", \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
30
|
+
"argv": []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"event": "preToolUse",
|
|
34
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/seed.txt\"}, \"tool_use_id\": \"call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0\", \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
35
|
+
"argv": []
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"event": "postToolUse",
|
|
39
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7\", \"tool_name\": \"Read\", \"tool_input\": {\"file_path\": \"<folder>/seed.txt\"}, \"tool_output\": \"{\\\"file_path\\\":\\\"<folder>/seed.txt\\\",\\\"content_length\\\":51}\", \"duration\": 2.872, \"tool_use_id\": \"call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0\", \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
40
|
+
"argv": []
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"event": "preToolUse",
|
|
44
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7\", \"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"<folder>/seed.txt\", \"content\": \"CoCheck recording seed\\nstatus: recorded\\nowner: nobody\\n\"}, \"tool_use_id\": \"call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0\", \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"preToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
45
|
+
"argv": []
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"event": "postToolUse",
|
|
49
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7\", \"tool_name\": \"Write\", \"tool_input\": {\"file_path\": \"<folder>/seed.txt\", \"content\": \"CoCheck recording seed\\nstatus: recorded\\nowner: nobody\\n\"}, \"tool_output\": \"{\\\"file_path\\\":\\\"<folder>/seed.txt\\\",\\\"success\\\":true}\", \"duration\": 7.178, \"tool_use_id\": \"call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0\", \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"postToolUse\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": null}",
|
|
50
|
+
"argv": []
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"event": "stop",
|
|
54
|
+
"stdin": "{\"conversation_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"generation_id\": \"b73e34b1-6922-4c0c-b214-1f0394c4d9b1\", \"model\": \"grok-4.7-medium\", \"model_id\": \"grok-4.7\", \"model_params\": [{\"id\": \"context\", \"value\": \"256k\"}, {\"id\": \"reasoning_effort\", \"value\": \"medium\"}, {\"id\": \"fast\", \"value\": \"false\"}], \"status\": \"completed\", \"loop_count\": 0, \"input_tokens\": 159394, \"output_tokens\": 1965, \"cache_read_tokens\": 97408, \"cache_write_tokens\": 0, \"session_id\": \"a675250a-9904-4013-a64a-fb3d431c4af2\", \"hook_event_name\": \"stop\", \"cursor_version\": \"3.31.15\", \"workspace_roots\": [\"<folder>\"], \"user_email\": \"user@example.com\", \"transcript_path\": \"<root>/.cursor/projects/Users-<user>-cocheck-cursor-e2e/agent-transcripts/a675250a-9904-4013-a64a-fb3d431c4af2/a675250a-9904-4013-a64a-fb3d431c4af2.jsonl\"}",
|
|
55
|
+
"argv": []
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"files": {
|
|
59
|
+
"before": {
|
|
60
|
+
"seed.txt": "CoCheck recording seed\nstatus: draft\nowner: nobody\n"
|
|
61
|
+
},
|
|
62
|
+
"writes": [
|
|
63
|
+
{
|
|
64
|
+
"afterEvent": 4,
|
|
65
|
+
"path": "hello.txt",
|
|
66
|
+
"content": "hello from cursor\n"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"afterEvent": 8,
|
|
70
|
+
"path": "seed.txt",
|
|
71
|
+
"content": "CoCheck recording seed\nstatus: recorded\nowner: nobody\n"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"expect": {
|
|
76
|
+
"normalized": [
|
|
77
|
+
{
|
|
78
|
+
"kind": "prompt",
|
|
79
|
+
"eventName": "beforeSubmitPrompt",
|
|
80
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"kind": "tool-pre",
|
|
84
|
+
"eventName": "preToolUse",
|
|
85
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2",
|
|
86
|
+
"toolName": "Read",
|
|
87
|
+
"callId": "call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"kind": "tool-failure",
|
|
91
|
+
"eventName": "postToolUseFailure",
|
|
92
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2",
|
|
93
|
+
"toolName": "Read",
|
|
94
|
+
"failure": {
|
|
95
|
+
"raw": "File not found: <folder>/hello.txt",
|
|
96
|
+
"interrupted": false
|
|
97
|
+
},
|
|
98
|
+
"callId": "call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"kind": "tool-pre",
|
|
102
|
+
"eventName": "preToolUse",
|
|
103
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2",
|
|
104
|
+
"toolName": "Write",
|
|
105
|
+
"callId": "call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"kind": "tool-post",
|
|
109
|
+
"eventName": "postToolUse",
|
|
110
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2",
|
|
111
|
+
"toolName": "Write",
|
|
112
|
+
"callId": "call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"kind": "tool-pre",
|
|
116
|
+
"eventName": "preToolUse",
|
|
117
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2",
|
|
118
|
+
"toolName": "Read",
|
|
119
|
+
"callId": "call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"kind": "tool-post",
|
|
123
|
+
"eventName": "postToolUse",
|
|
124
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2",
|
|
125
|
+
"toolName": "Read",
|
|
126
|
+
"callId": "call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"kind": "tool-pre",
|
|
130
|
+
"eventName": "preToolUse",
|
|
131
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2",
|
|
132
|
+
"toolName": "Write",
|
|
133
|
+
"callId": "call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"kind": "tool-post",
|
|
137
|
+
"eventName": "postToolUse",
|
|
138
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2",
|
|
139
|
+
"toolName": "Write",
|
|
140
|
+
"callId": "call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"kind": "stop",
|
|
144
|
+
"eventName": "stop",
|
|
145
|
+
"session": "a675250a-9904-4013-a64a-fb3d431c4af2"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"credit": {
|
|
149
|
+
"hello.txt": {
|
|
150
|
+
"creditedTo": "call:call-c71ff737-27b1-463f-80f9-65fdc903a45a-1\nfc_a3d5da42-512e-9a1f-84f4-0afdd21fb749_0-r2",
|
|
151
|
+
"basis": "inferred"
|
|
152
|
+
},
|
|
153
|
+
"seed.txt": {
|
|
154
|
+
"creditedTo": "call:call-8887122a-e2f7-46a9-8cf5-ebada6005ccd-2\nfc_37ee0f12-baf2-4d60-b3a6-15591e46aaab_0-r2",
|
|
155
|
+
"basis": "inferred"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "cocheck-harness/1",
|
|
3
|
+
"key": "cursor",
|
|
4
|
+
"displayName": "Cursor",
|
|
5
|
+
"chip": "U",
|
|
6
|
+
"testedVersions": ["3.31.15"],
|
|
7
|
+
"events": {
|
|
8
|
+
"sessionStart": "other",
|
|
9
|
+
"beforeSubmitPrompt": "prompt",
|
|
10
|
+
"preToolUse": "tool-pre",
|
|
11
|
+
"postToolUse": "tool-post",
|
|
12
|
+
"postToolUseFailure": "tool-failure",
|
|
13
|
+
"beforeShellExecution": "other",
|
|
14
|
+
"afterShellExecution": "other",
|
|
15
|
+
"afterFileEdit": "other",
|
|
16
|
+
"subagentStart": "other",
|
|
17
|
+
"subagentStop": "subagent-stop",
|
|
18
|
+
"afterAgentResponse": "other",
|
|
19
|
+
"stop": "stop"
|
|
20
|
+
},
|
|
21
|
+
"eventFrom": { "payload": "hook_event_name" },
|
|
22
|
+
"unverifiedEvents": ["sessionEnd", "afterTabFileEdit", "beforeReadFile", "beforeMCPExecution", "afterMCPExecution", "preCompact", "afterAgentThought"],
|
|
23
|
+
"fields": {
|
|
24
|
+
"session": "conversation_id",
|
|
25
|
+
"cwd": "workspace_roots[0]",
|
|
26
|
+
"toolName": "tool_name",
|
|
27
|
+
"toolInput": "tool_input",
|
|
28
|
+
"toolResponse": "tool_output",
|
|
29
|
+
"prompt": "prompt",
|
|
30
|
+
"parentSession": "parent_agent_id",
|
|
31
|
+
"callReason": "description"
|
|
32
|
+
},
|
|
33
|
+
"toolInputEncoding": "json-text",
|
|
34
|
+
"callId": { "payload": "tool_use_id", "synthesized": true },
|
|
35
|
+
"failure": {
|
|
36
|
+
"tool-failure": { "text": ["error_message"], "interrupt": "is_interrupt" }
|
|
37
|
+
},
|
|
38
|
+
"toolClasses": {
|
|
39
|
+
"Read": { "class": "read" },
|
|
40
|
+
"Write": { "class": "write", "pathFields": ["file_path"], "pathChecked": true, "fileInput": true },
|
|
41
|
+
"Shell": { "class": "shell", "dialect": "bash" },
|
|
42
|
+
"Task": { "class": "launcher" }
|
|
43
|
+
},
|
|
44
|
+
"capabilities": { "failureEvent": true, "argvTag": false, "helperSessions": false, "launchKey": false, "readsForeignHooks": true },
|
|
45
|
+
"foreignHookFingerprint": { "present": ["cursor_version", "workspace_roots"], "strings": ["cursor_version", "conversation_id", "hook_event_name"], "absent": [] },
|
|
46
|
+
"readsConfigsOf": ["claude"],
|
|
47
|
+
"install": {
|
|
48
|
+
"skillRoot": ".cursor/skills",
|
|
49
|
+
"hostFlag": "cursor",
|
|
50
|
+
"projectDirEnv": "CURSOR_PROJECT_DIR",
|
|
51
|
+
"folderFromPayloadCwd": true,
|
|
52
|
+
"promptContext": false,
|
|
53
|
+
"afterInstall": "Cursor runs project hooks only in a trusted workspace: trust the folder when Cursor asks, or CoCheck records nothing from it.",
|
|
54
|
+
"checkPayload": {
|
|
55
|
+
"payload": { "conversation_id": "install-check", "hook_event_name": "preToolUse", "workspace_roots": ["{folder}"], "tool_name": "Shell", "tool_input": { "command": "true" }, "tool_use_id": "install-check" },
|
|
56
|
+
"event": "preToolUse"
|
|
57
|
+
},
|
|
58
|
+
"format": "json",
|
|
59
|
+
"path": "{project}/.cursor/hooks.json",
|
|
60
|
+
"mode": "merge",
|
|
61
|
+
"rootKey": "hooks",
|
|
62
|
+
"envelope": { "version": 1 },
|
|
63
|
+
"events": ["beforeSubmitPrompt", "preToolUse", "postToolUse", "postToolUseFailure", "subagentStop", "stop"],
|
|
64
|
+
"entryTemplate": { "command": "{command}", "timeout": 30 },
|
|
65
|
+
"failOpenEvents": ["preToolUse"]
|
|
66
|
+
}
|
|
67
|
+
}
|