@cotal-ai/connector-claude-code 0.50.1 → 0.51.0
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-source.d.ts +10 -1
- package/dist/agui-source.d.ts.map +1 -1
- package/dist/extension.d.ts.map +1 -1
- package/dist/hook.cjs +24 -18
- package/dist/hooks.d.ts.map +1 -1
- package/dist/index.js +26 -25
- package/dist/mcp.cjs +136 -33
- package/hooks/hooks.json +1 -1
- package/package.json +3 -3
package/dist/agui-source.d.ts
CHANGED
|
@@ -6,11 +6,20 @@
|
|
|
6
6
|
* assistant/tool record maps to nothing. Only `source: "startup"` names a genuinely new session;
|
|
7
7
|
* resume, fork, clear and compact all point at retained history and must keep ordinary adopt-at-end
|
|
8
8
|
* semantics.
|
|
9
|
+
*
|
|
10
|
+
* A forked session (`--resume <id> --fork-session`) is retained history in a NEW file: Claude
|
|
11
|
+
* copies the parent transcript under the fork's own session id after its SessionStart hook has
|
|
12
|
+
* fired. Measured live with a manager-launched seat, the connector's first flush reached the source
|
|
13
|
+
* before that copy existed, `open` threw ENOENT, and the holder, terminal on its first error, took
|
|
14
|
+
* the whole session dark with one stderr line the harness does not retain. So `fork` waits for the
|
|
15
|
+
* real file with the same bounded wait the startup path uses, and then still adopts at the end of
|
|
16
|
+
* it: the copied history is the parent's, never republished here.
|
|
9
17
|
*/
|
|
10
18
|
import { type DurableSource, type SourceRead } from "@cotal-ai/connector-core";
|
|
11
19
|
import type { ClaudeEntry } from "./agui-map.js";
|
|
12
20
|
export interface ClaudeTranscriptSourceOpts {
|
|
13
|
-
/** Production defaults to five seconds
|
|
21
|
+
/** Production defaults to five seconds for both the startup and the fork wait. Tests can shorten
|
|
22
|
+
* only the fail-loud deadline. */
|
|
14
23
|
startupFileWaitMs?: number;
|
|
15
24
|
}
|
|
16
25
|
export declare function readStartupTranscriptWhenReady<T>(read: () => Promise<SourceRead<T>>, opts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agui-source.d.ts","sourceRoot":"","sources":["../src/agui-source.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"agui-source.d.ts","sourceRoot":"","sources":["../src/agui-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAmB,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAChG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAUjD,MAAM,WAAW,0BAA0B;IACzC;uCACmC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID,wBAAsB,8BAA8B,CAAC,CAAC,EACpD,IAAI,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAClC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,GAC9D,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAiCxB;AA2BD,8FAA8F;AAC9F,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,OAAO,EACtB,IAAI,GAAE,0BAA+B,GACpC,aAAa,CAAC,WAAW,CAAC,CAiB5B"}
|
package/dist/extension.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2D,KAAK,SAAS,EAAoC,MAAM,gBAAgB,CAAC;AAM3I;;;;;;;;;4FAS4F;AAC5F,eAAO,MAAM,oBAAoB,8/DA4EvB,CAAC;AAsDX,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2D,KAAK,SAAS,EAAoC,MAAM,gBAAgB,CAAC;AAM3I;;;;;;;;;4FAS4F;AAC5F,eAAO,MAAM,oBAAoB,8/DA4EvB,CAAC;AAsDX,eAAO,MAAM,eAAe,EAAE,SAkM7B,CAAC"}
|