@agentvault/openai-bridge 0.1.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/lock.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /** Serialize inspection and stale-PID reclamation across independent processes.
2
+ * An orphaned guard is deliberately NOT auto-reclaimed: doing so would recreate
3
+ * the same read/unlink race. It requires explicit operator recovery. */
4
+ export declare function acquireLock(root: string): Promise<() => Promise<void>>;
5
+ //# sourceMappingURL=lock.d.ts.map
@@ -0,0 +1,12 @@
1
+ import type { Layout } from "./driver.js";
2
+ export interface RolloutSnapshot {
3
+ path: string;
4
+ size: number;
5
+ ino: number;
6
+ dev: number;
7
+ }
8
+ export declare function snapshotRollout(layout: Layout, id: string): Promise<RolloutSnapshot>;
9
+ /** The exec stream omits assistant phase. Verify only bytes written by this
10
+ * invocation in the pinned local rollout, never a prior resumed turn's final. */
11
+ export declare function verifyFinalReply(layout: Layout, id: string, stdoutText: string, before?: RolloutSnapshot): Promise<string>;
12
+ //# sourceMappingURL=rollout.d.ts.map
@@ -0,0 +1,19 @@
1
+ import type { EventEmitter } from "node:events";
2
+ import type { SecureChannelConfig } from "@agentvault/agentvault";
3
+ import { type BridgeChannel, type TurnDriver } from "./bridge.js";
4
+ import { type RunConfig } from "./cli.js";
5
+ export interface RuntimeChannel extends BridgeChannel {
6
+ start(): Promise<void>;
7
+ stop(): Promise<void>;
8
+ }
9
+ export interface RuntimeDependencies {
10
+ createChannel(config: SecureChannelConfig): RuntimeChannel;
11
+ driver: TurnDriver;
12
+ signals: Pick<EventEmitter, "once" | "off">;
13
+ report(event: string): void;
14
+ shutdownMs?: number;
15
+ deliveryTimeoutMs?: number;
16
+ }
17
+ /** Only CLI run enters here. Tests supply fixture channels, drivers and signals. */
18
+ export declare function startBridge(config: RunConfig, injected?: RuntimeDependencies): Promise<void>;
19
+ //# sourceMappingURL=runtime.d.ts.map
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@agentvault/openai-bridge", "version": "0.1.0", "type": "module",
3
+ "description": "AgentVault OpenAI Codex bridge for encrypted owner messages and rooms",
4
+ "main": "dist/index.js", "types": "dist/index.d.ts",
5
+ "bin": { "agentvault-openai-bridge": "dist/index.js" },
6
+ "engines": { "node": ">=20" }, "files": ["dist", "README.md", "!dist/*.map"],
7
+ "scripts": {
8
+ "build": "npm --prefix ../plugin run build && tsc --emitDeclarationOnly && node build.mjs",
9
+ "test": "vitest run", "typecheck": "tsc -p tsconfig.test.json", "prepublishOnly": "npm run build"
10
+ },
11
+ "dependencies": { "ws": "^8.16.0" },
12
+ "devDependencies": {
13
+ "@agentvault/agentvault": "file:../plugin", "@types/node": "^20.0.0",
14
+ "esbuild": "^0.27.3", "typescript": "^5.4.0", "vitest": "^2.0.0"
15
+ },
16
+ "publishConfig": { "access": "public" }, "license": "MIT"
17
+ }