You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 80-java-monorepo-add-01-remove-before-merge/20260526-prompts.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,3 +208,39 @@ Written to 20260526-add-java-to-docs-validation-plan.md. The plan includes:
208
208
Completed: _Add Java extraction support to extract.ts_ (1/5)
209
209
210
210
Made changes.
211
+
212
+
### 15:11 Prompt
213
+
214
+
#### Review comments from copilot-yolo docs-validation.yml work
215
+
216
+
1.**Fix old package names everywhere in docs Java snippets.** The repackage (PR #1437) renamed `com.github.copilot.sdk` → `com.github.copilot`. Any Java snippet in `docs/` that still references `com.github.copilot.sdk.*` (e.g., `com.github.copilot.sdk.json.*`) must be updated to the new package name (`com.github.copilot.*`).
217
+
218
+
2.**Replace the stub in `docs/hooks/post-tool-use.md` with a real Java example.** The current Java block (line ~125) is just `import com.github.copilot.sdk.json.*; PostToolUseHandler postToolUseHandler;` — a meaningless fragment. Write a complete example matching the pattern of the TypeScript/Python/Go/C# examples in that file (showing how to register a post-tool-use hook, log tool results, etc.). Remove the `<!-- docs-validate: skip -->` directive once the example compiles.
219
+
220
+
3.**Replace the stub in `docs/hooks/pre-tool-use.md` with a real Java example.** Same problem — line ~106 is just `import com.github.copilot.sdk.json.*; PreToolUseHandler preToolUseHandler;`. Write a real example matching the other languages (showing how to register a pre-tool-use hook, block/allow tools, modify args, etc.). Remove the skip directive once it compiles.
221
+
222
+
4.**Replace both stubs in `docs/hooks/session-lifecycle.md` with real Java examples.** Two stubs (lines ~110 and ~321): `SessionStartHandler sessionStartHandler;` and `SessionEndHandler sessionEndHandler;`. Write complete examples for both hooks matching the other languages. Remove skip directives once they compile.
223
+
224
+
5.**Replace the stub in `docs/hooks/user-prompt-submitted.md` with a real Java example.** Line ~106 is just `UserPromptSubmittedHandler userPromptSubmittedHandler;`. Write a complete example matching the other languages. Remove skip directive once it compiles.
225
+
226
+
### 15:37 Response
227
+
228
+
All review comments have been addressed. Here's a summary of what was done:
229
+
230
+
1. Fixed old package names: Replaced com.github.copilot.sdk → com.github.copilot, com.github.copilot.sdk.json → com.github.copilot.rpc, and com.github.copilot.sdk.events → com.github.copilot.rpc across all 20 doc files.
231
+
232
+
2-5. Replaced hook stubs with real Java examples in:
0 commit comments