Commit 97cc381
cursor update & path extraction utility (#77)
* feat(cursor): Add project-level hooks support
Cursor now supports project-level hooks at `.cursor/hooks.json` in
addition to user-level hooks at `~/.cursor/hooks.json`.
Changes:
- Update CursorHarness::settings_path() to respect global parameter
- Project init creates .cursor/hooks.json (project-level)
- Global init creates ~/.cursor/hooks.json (user-level)
- Update example scripts to use project-level hooks
- Fix check_appointment_time.py to handle patient_name lookups
- Add tests for cursor init hook locations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* cleanup repo and examples
* feat(cursor): Add lifecycle events, schema updates, and stop continuation
New lifecycle events (fire-and-forget):
- afterShellExecution: command, output, duration
- afterMCPExecution: tool_name, tool_input, result_json, duration
- afterAgentResponse: text
- afterAgentThought: text, duration_ms
Schema updates:
- Common fields: model, cursor_version, user_email (all optional)
- Response fields: snake_case (user_message, agent_message)
- beforeSubmitPrompt: user_message on block
- stop: loop_count input field
Stop hook agent looping:
- Block decision returns followup_message
- Cursor submits as next user message (max 5 auto-followups)
- Mirrors Claude Code's block+reason pattern
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* clean up example for cursor
* more robust form of protected paths
* command path extraction is proper
* finalize cursor example
* chore: fmt and checks
* introduce shell-words for command string parsing
* test readme idea
* test readme idea
* test readme idea
* test readme idea
* test readme idea
* test readme idea
* test readme idea
* test readme idea
* test readme idea
* test readme idea
* test readme idea
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent ef3a6ea commit 97cc381
65 files changed
Lines changed: 2356 additions & 11975 deletions
File tree
- cupcake-cli
- src
- tests
- cupcake-core
- src
- engine
- harness
- events/cursor
- response
- cursor
- preprocessing
- cupcake-onboard
- source
- docs/docs/reference/harnesses
- examples
- claude-code/0_Welcome
- cursor/0_Welcome
- screenshots
- fixtures
- cursor
- fixtures
- claude/builtins
- cursor/builtins
- factory/builtins
- opencode/builtins
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
74 | | - | |
75 | | - | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 107 | | |
115 | 108 | | |
116 | 109 | | |
| |||
119 | 112 | | |
120 | 113 | | |
121 | 114 | | |
122 | | - | |
123 | | - | |
| 115 | + | |
| 116 | + | |
124 | 117 | | |
125 | 118 | | |
126 | 119 | | |
| |||
130 | 123 | | |
131 | 124 | | |
132 | 125 | | |
133 | | - | |
| 126 | + | |
134 | 127 | | |
135 | 128 | | |
136 | 129 | | |
137 | 130 | | |
138 | 131 | | |
139 | 132 | | |
140 | 133 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
149 | 142 | | |
150 | 143 | | |
151 | 144 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
| |||
0 commit comments