@cortexkit/aft-opencode 0.36.0 → 0.36.1

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.
@@ -1,29 +0,0 @@
1
- /**
2
- * Pending tool metadata store.
3
- *
4
- * OpenCode's `fromPlugin()` wrapper always replaces plugin metadata with
5
- * `{ truncated, outputPath }`, discarding title and custom metadata.
6
- *
7
- * This store captures metadata during execute(), then the `tool.execute.after`
8
- * hook consumes it and merges it back before the final part is written.
9
- *
10
- * Flow:
11
- * execute() → storeToolMetadata(sessionID, callID, data)
12
- * fromPlugin() → overwrites metadata with { truncated }
13
- * tool.execute.after → consumeToolMetadata(sessionID, callID) → merges back
14
- */
15
- export interface PendingToolMetadata {
16
- title?: string;
17
- metadata?: Record<string, unknown>;
18
- }
19
- /**
20
- * Store metadata to be restored after fromPlugin() overwrites it.
21
- * Called from tool execute() functions.
22
- */
23
- export declare function storeToolMetadata(sessionID: string, callID: string, data: PendingToolMetadata): void;
24
- /**
25
- * Consume stored metadata (one-time read, removes from store).
26
- * Called from tool.execute.after hook.
27
- */
28
- export declare function consumeToolMetadata(sessionID: string, callID: string): PendingToolMetadata | undefined;
29
- //# sourceMappingURL=metadata-store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metadata-store.d.ts","sourceRoot":"","sources":["../src/metadata-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAmBD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,mBAAmB,GACxB,IAAI,CAMN;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,mBAAmB,GAAG,SAAS,CASjC"}