@cotal-ai/connector-opencode 0.67.0 → 0.69.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-map.d.ts +1 -14
- package/dist/agui-map.d.ts.map +1 -1
- package/dist/extension.d.ts.map +1 -1
- package/dist/index.js +13 -393
- package/dist/plugin/index.js +1395 -1319
- package/dist/plugin.d.ts.map +1 -1
- package/dist/serve.js +13 -12
- package/package.json +3 -3
package/dist/agui-map.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* holds no per-part state to drop: a part arrives once, complete, and is mapped in one shot. So the
|
|
21
21
|
* divergence log is the source's, and there is nothing here for a revert to invalidate.
|
|
22
22
|
*/
|
|
23
|
-
import { type
|
|
23
|
+
import { type RecordMapper } from "@cotal-ai/connector-core";
|
|
24
24
|
import type { OpenCodeRecord } from "./agui-source.js";
|
|
25
25
|
export interface OpenCodeMapperOptions {
|
|
26
26
|
/** The native session id. It is the `threadId` on every event and nothing else may claim it. */
|
|
@@ -34,25 +34,12 @@ export interface OpenCodeMapperOptions {
|
|
|
34
34
|
}
|
|
35
35
|
export interface OpenCodeMapper {
|
|
36
36
|
map: RecordMapper<OpenCodeRecord>;
|
|
37
|
-
/**
|
|
38
|
-
* Close the open run at a boundary the record stream cannot see: `session.idle`, which §3.2 makes
|
|
39
|
-
* the flush boundary. Returns `null` when nothing is open, so calling it twice cannot manufacture
|
|
40
|
-
* a second `RUN_FINISHED` for the bracket machine to refuse.
|
|
41
|
-
*/
|
|
42
|
-
closeOpenRun: (timestamp: number, stopReason?: string) => {
|
|
43
|
-
runId: string;
|
|
44
|
-
events: AguiEvent[];
|
|
45
|
-
} | null;
|
|
46
|
-
/** The run currently open, or `null`. */
|
|
47
|
-
openRun: () => string | null;
|
|
48
37
|
/**
|
|
49
38
|
* Forget a run the emitter closed out of band. KEYED ON THE ID: the report can arrive after this
|
|
50
39
|
* mapper has already opened a newer run, and clearing unconditionally would orphan that one, whose
|
|
51
40
|
* events would then emit under no run at all and halt a session that had done nothing wrong.
|
|
52
41
|
*/
|
|
53
42
|
forgetOpenRun: (runId: string) => void;
|
|
54
|
-
/** Why this session opened no runs, or `null` once one has. A silent refusal is the defect. */
|
|
55
|
-
diagnose: () => string | null;
|
|
56
43
|
}
|
|
57
44
|
export declare function createOpenCodeMapper(opts: OpenCodeMapperOptions): OpenCodeMapper;
|
|
58
45
|
//# sourceMappingURL=agui-map.d.ts.map
|
package/dist/agui-map.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agui-map.d.ts","sourceRoot":"","sources":["../src/agui-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"agui-map.d.ts","sourceRoot":"","sources":["../src/agui-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAEL,KAAK,YAAY,EAalB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,WAAW,qBAAqB;IACpC,gGAAgG;IAChG,QAAQ,EAAE,MAAM,CAAC;IACjB,oGAAoG;IACpG,SAAS,EAAE,MAAM,MAAM,CAAC;IACxB,sEAAsE;IACtE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kGAAkG;IAClG,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAClC;;;;OAIG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAkDD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,qBAAqB,GAAG,cAAc,CAuGhF"}
|
package/dist/extension.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../src/extension.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,KAAK,SAAS,EAAuE,MAAM,gBAAgB,CAAC;AAyG/H;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,SA0L/B,CAAC"}
|