@cotal-ai/connector-claude-code 0.171.1 → 0.171.3
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/dist/agui-map.d.ts +2 -0
- package/dist/agui-map.d.ts.map +1 -1
- package/dist/docs-bundle.bin +0 -0
- package/dist/docs-index.bin +0 -0
- package/dist/extension.d.ts.map +1 -1
- package/dist/hook.cjs +2 -2
- package/dist/hooks.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/interrupt-watch.d.ts +13 -0
- package/dist/interrupt-watch.d.ts.map +1 -0
- package/dist/mcp.cjs +23 -21
- package/package.json +3 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Watch a Claude Code transcript for an interrupt of the turn that is open now.
|
|
3
|
+
*
|
|
4
|
+
* Claude Code fires no hook when its user interrupts a turn, so a seat that waited for one stayed
|
|
5
|
+
* `working` until its next turn ended. The transcript does record the interrupt, as a `user` entry
|
|
6
|
+
* (see `userInterrupt`). This reads every complete line written after the call and calls
|
|
7
|
+
* `onInterrupt` once, at the first interrupt record. A transcript Claude has not created yet is read
|
|
8
|
+
* from its start once it appears. `watchFile` polls, so it also sees a file that does not exist yet.
|
|
9
|
+
*
|
|
10
|
+
* @returns a function that stops the watch.
|
|
11
|
+
*/
|
|
12
|
+
export declare function watchForInterrupt(path: string, onInterrupt: () => void): () => void;
|
|
13
|
+
//# sourceMappingURL=interrupt-watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interrupt-watch.d.ts","sourceRoot":"","sources":["../src/interrupt-watch.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CA0DnF"}
|