@modelprofile.com/flexharness 2.1.0 → 3.0.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,26 +1,25 @@
1
- import type { IFlexHarnessSnapshot, IFlexHarnessStore } from './interfaces.js';
2
- export declare class InMemoryFlexHarnessStore implements IFlexHarnessStore {
3
- private readonly snapshots;
4
- load(storageKey: string): Promise<IFlexHarnessSnapshot | undefined>;
5
- save(storageKey: string, snapshot: IFlexHarnessSnapshot, expectedRevision: number): Promise<void>;
1
+ import type { IFlexAgentEventStoreProvider, IFlexHarnessStores, IFlexPermissionStore, IFlexProjectionStore, IFlexScopeStore, IFlexToolJobStoreProvider } from './interfaces.js';
2
+ export declare class InMemoryFlexHarnessStores implements IFlexHarnessStores {
3
+ readonly scopes: IFlexScopeStore;
4
+ readonly projections: IFlexProjectionStore;
5
+ readonly permissions: IFlexPermissionStore;
6
+ readonly agentEvents: IFlexAgentEventStoreProvider;
7
+ readonly jobs: IFlexToolJobStoreProvider;
6
8
  }
7
- export interface IJsonFileFlexHarnessStoreOptions {
9
+ export interface IJsonFileFlexHarnessStoresOptions {
8
10
  directory: string;
9
11
  }
10
12
  /**
11
- * Atomic and CAS-safe across instances in this process. It intentionally does not
12
- * claim cross-process safety because no operating-system lock is held.
13
+ * Atomic and CAS-safe across instances in this process. No operating-system lock
14
+ * is held, so this store intentionally does not claim cross-process safety.
13
15
  */
14
- export declare class JsonFileFlexHarnessStore implements IFlexHarnessStore {
15
- private static readonly fileQueues;
16
- private readonly directory;
17
- constructor(options: IJsonFileFlexHarnessStoreOptions);
18
- load(storageKey: string): Promise<IFlexHarnessSnapshot | undefined>;
19
- save(storageKey: string, snapshot: IFlexHarnessSnapshot, expectedRevision: number): Promise<void>;
20
- private static inFileQueue;
21
- private filePath;
22
- private preparePath;
23
- private cleanupTemps;
24
- private readSnapshot;
25
- private writeSnapshot;
16
+ export declare class JsonFileFlexHarnessStores implements IFlexHarnessStores {
17
+ readonly scopes: IFlexScopeStore;
18
+ readonly projections: IFlexProjectionStore;
19
+ readonly permissions: IFlexPermissionStore;
20
+ readonly agentEvents: IFlexAgentEventStoreProvider;
21
+ readonly jobs: IFlexToolJobStoreProvider;
22
+ private readonly root;
23
+ constructor(options: IJsonFileFlexHarnessStoresOptions);
24
+ dispose(): Promise<void>;
26
25
  }