billion-context-omp 0.2.1 → 0.2.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.
@@ -0,0 +1,13 @@
1
+ export interface InstanceMarker {
2
+ path: string;
3
+ version: string | null;
4
+ pid: number;
5
+ ts: number;
6
+ }
7
+ /** Returns the conflicting instance's marker when a dual load is detected. */
8
+ export declare function detectDualInstance(selfPath: string, now?: number): InstanceMarker | undefined;
9
+ export declare function stampInstance(selfPath: string, version: string | null, pid?: number, now?: number): void;
10
+ /** Stamp ourselves; report a conflicting live marker if one exists. Stamp
11
+ * order matters: the OTHER instance's stamp may be from this same process
12
+ * (both loaded), so we overwrite only after reading the conflict. */
13
+ export declare function stampAndDetect(selfPath: string, version: string | null, now?: number): InstanceMarker | undefined;
package/dist/runtime.d.ts CHANGED
@@ -22,6 +22,9 @@ export interface AcpRuntime {
22
22
  coreMessages: CoreMessage[];
23
23
  }>;
24
24
  commitFoldState(ctx: ExtensionContext, state: CompressionState, toolCallId?: string): void;
25
+ /** Record the identity sequence of the last rebuilt output so the next
26
+ * foldStream can recognize omp re-feeding it (issue #52). */
27
+ recordRebuiltOutput(ctx: ExtensionContext, rebuilt: AgentMessage[]): void;
25
28
  /** Track the per-session streak of consecutively REJECTED compress calls.
26
29
  * `ok=false` increments and returns the new streak; `ok=true` resets to 0.
27
30
  * A re-fold (rewritten stream prefix) drops the slot and starts at 0. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billion-context-omp",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "One billion, not one million. Model-driven context management for the oh-my-pi (omp) coding agent.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",