@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.
- package/changelog.md +66 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.flexharness.d.ts +86 -30
- package/dist_ts/classes.flexharness.js +2593 -1131
- package/dist_ts/classes.stores.d.ts +19 -20
- package/dist_ts/classes.stores.js +968 -75
- package/dist_ts/errors.d.ts +5 -0
- package/dist_ts/errors.js +11 -1
- package/dist_ts/interfaces.d.ts +130 -23
- package/dist_ts/plugins.d.ts +3 -3
- package/dist_ts/plugins.js +3 -3
- package/dist_ts/utils.json.d.ts +4 -2
- package/dist_ts/utils.json.js +283 -140
- package/dist_ts/utils.prompt.d.ts +1 -2
- package/dist_ts/utils.prompt.js +3 -26
- package/dist_ts_migration/index.d.ts +1 -0
- package/dist_ts_migration/index.js +2 -0
- package/dist_ts_migration/v3_legacyflexharness.d.ts +17 -0
- package/dist_ts_migration/v3_legacyflexharness.js +426 -0
- package/package.json +17 -3
- package/readme.hints.md +13 -11
- package/readme.md +94 -27
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.flexharness.ts +2966 -1421
- package/ts/classes.stores.ts +1226 -97
- package/ts/errors.ts +20 -0
- package/ts/interfaces.ts +168 -22
- package/ts/plugins.ts +46 -3
- package/ts/utils.json.ts +341 -154
- package/ts/utils.prompt.ts +6 -27
- package/ts_migration/index.ts +1 -0
- package/ts_migration/v3_legacyflexharness.ts +620 -0
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare class
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
9
|
+
export interface IJsonFileFlexHarnessStoresOptions {
|
|
8
10
|
directory: string;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
|
-
* Atomic and CAS-safe across instances in this process.
|
|
12
|
-
*
|
|
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
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
private
|
|
21
|
-
|
|
22
|
-
|
|
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
|
}
|