@evomap/evolver-cli 2.0.0-beta.1 → 2.0.0-beta.4
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/antiGeneBenchmark.js +12 -0
- package/dist/antiGeneEvidence.d.ts +15 -0
- package/dist/antiGeneEvidence.js +49 -0
- package/dist/antiGeneRollout.d.ts +3 -1
- package/dist/antiGeneRollout.js +16 -2
- package/dist/assetHealth.d.ts +6 -0
- package/dist/assetHealth.js +105 -0
- package/dist/assetSidecarRecovery.d.ts +14 -0
- package/dist/assetSidecarRecovery.js +171 -0
- package/dist/assetTrust.d.ts +24 -0
- package/dist/assetTrust.js +218 -0
- package/dist/atp.js +4 -2
- package/dist/autoDistillLlm.js +4 -1
- package/dist/autoexec.d.ts +13 -3
- package/dist/autoexec.js +71 -13
- package/dist/cli.js +12 -5
- package/dist/cliContracts.js +8 -2
- package/dist/cliLifecycle.d.ts +7 -0
- package/dist/cliLifecycle.js +9 -0
- package/dist/cycleConsumer.d.ts +61 -1
- package/dist/cycleConsumer.js +551 -16
- package/dist/dashboard.d.ts +23 -0
- package/dist/dashboard.js +191 -0
- package/dist/dispatch.d.ts +10 -1
- package/dist/dispatch.js +36 -2
- package/dist/distillObserver.js +2 -2
- package/dist/distillPrimitives.d.ts +1 -1
- package/dist/distillPrimitives.js +29 -2
- package/dist/doctor.d.ts +2 -0
- package/dist/doctor.js +33 -3
- package/dist/index.d.ts +7 -2
- package/dist/index.js +292 -36
- package/dist/lifecycle.d.ts +19 -1
- package/dist/lifecycle.js +226 -29
- package/dist/localMemoryGraph.d.ts +97 -0
- package/dist/localMemoryGraph.js +889 -0
- package/dist/login.d.ts +20 -4
- package/dist/login.js +58 -8
- package/dist/materialPackage.d.ts +52 -0
- package/dist/materialPackage.js +404 -0
- package/dist/materialSnapshot.d.ts +30 -0
- package/dist/materialSnapshot.js +148 -0
- package/dist/memoryEventMirror.d.ts +23 -0
- package/dist/memoryEventMirror.js +140 -0
- package/dist/migrate/fieldMap.js +25 -0
- package/dist/migrate/v1Import.d.ts +7 -1
- package/dist/migrate/v1Import.js +132 -11
- package/dist/nonGitWorkspaceNotice.d.ts +24 -0
- package/dist/nonGitWorkspaceNotice.js +122 -0
- package/dist/proxyToken.d.ts +10 -0
- package/dist/proxyToken.js +80 -0
- package/dist/recipe.d.ts +10 -2
- package/dist/recipe.js +349 -7
- package/dist/reuseReport.js +16 -16
- package/dist/runtimeCapabilities.d.ts +18 -0
- package/dist/runtimeCapabilities.js +81 -0
- package/dist/runtimeSessionSource.d.ts +10 -0
- package/dist/runtimeSessionSource.js +32 -5
- package/dist/setupHooks.d.ts +6 -1
- package/dist/setupHooks.js +5 -2
- package/dist/skill2gep.d.ts +38 -9
- package/dist/skill2gep.js +147 -14
- package/dist/skillDistill.d.ts +1 -0
- package/dist/skillDistill.js +4 -4
- package/dist/skillFetch.d.ts +18 -0
- package/dist/skillFetch.js +391 -0
- package/dist/solo/mode.js +5 -0
- package/dist/sync.d.ts +26 -0
- package/dist/sync.js +988 -0
- package/dist/trajectoryExport.js +23 -12
- package/dist/v1Compat.d.ts +24 -0
- package/dist/v1Compat.js +249 -0
- package/package.json +12 -6
package/dist/cycleConsumer.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { assetstore, algo, events, exec, material as materialNs, personality } from '@evomap/evolver-core';
|
|
1
|
+
import { assetstore, algo, events, exec, material as materialNs, personality, verify } from '@evomap/evolver-core';
|
|
2
2
|
type RunnerName = NonNullable<exec.AutonomousSafety['runner']>;
|
|
3
|
+
type SleepFn = (ms: number, signal?: AbortSignal) => Promise<void>;
|
|
4
|
+
type SandboxedValidationRunner = typeof verify.runSandboxedValidation;
|
|
3
5
|
type MaterialCycleAction = 'cycle' | 'observe' | 'skip' | 'fail';
|
|
4
6
|
type MaterialCycleStatus = exec.AutoExecVerdict['status'] | 'observed' | 'already_consumed' | 'already_terminal' | 'already_running' | 'no_signals' | 'parse_failed' | 'pending';
|
|
5
7
|
interface MaterialCycleItem {
|
|
@@ -14,17 +16,63 @@ export interface MaterialCycleResult {
|
|
|
14
16
|
processed: number;
|
|
15
17
|
items: MaterialCycleItem[];
|
|
16
18
|
}
|
|
19
|
+
export interface MaterialCycleWatchIteration {
|
|
20
|
+
ok: true;
|
|
21
|
+
group: 'cycle.watch';
|
|
22
|
+
iteration: number;
|
|
23
|
+
claimed: number;
|
|
24
|
+
processed: number;
|
|
25
|
+
cursor: number;
|
|
26
|
+
idle: boolean;
|
|
27
|
+
nextDelayMs: number;
|
|
28
|
+
items: MaterialCycleItem[];
|
|
29
|
+
}
|
|
30
|
+
export interface MaterialCycleWatchResult {
|
|
31
|
+
ok: true;
|
|
32
|
+
group: 'cycle.watch';
|
|
33
|
+
iterations: number;
|
|
34
|
+
claimed: number;
|
|
35
|
+
processed: number;
|
|
36
|
+
idleIterations: number;
|
|
37
|
+
failedItems: number;
|
|
38
|
+
cursor: number;
|
|
39
|
+
stopped: 'max_iterations' | 'max_idle' | 'cancelled';
|
|
40
|
+
}
|
|
41
|
+
export interface MaterialCycleWatchState {
|
|
42
|
+
ok: true;
|
|
43
|
+
group: 'cycle.watch.state';
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
running: boolean;
|
|
46
|
+
iteration: number;
|
|
47
|
+
cursor: number;
|
|
48
|
+
claimed: number;
|
|
49
|
+
processed: number;
|
|
50
|
+
idleIterations: number;
|
|
51
|
+
failedItems: number;
|
|
52
|
+
lastIteration?: MaterialCycleWatchIteration;
|
|
53
|
+
stopped?: MaterialCycleWatchResult['stopped'] | 'state_write_failed';
|
|
54
|
+
}
|
|
17
55
|
export interface MaterialCycleOptions {
|
|
18
56
|
repo: string;
|
|
19
57
|
limit?: number;
|
|
20
58
|
target?: string;
|
|
21
59
|
expectedEffect?: string;
|
|
60
|
+
validationCmds?: readonly string[];
|
|
61
|
+
validate?: exec.AutoExecDeps['validate'];
|
|
22
62
|
runner?: RunnerName;
|
|
23
63
|
timeoutMs?: number;
|
|
64
|
+
signal?: AbortSignal;
|
|
24
65
|
safety?: Partial<exec.AutonomousSafety>;
|
|
25
66
|
agent?: exec.AgentRunner;
|
|
26
67
|
git?: exec.GitRunner;
|
|
27
68
|
}
|
|
69
|
+
export interface MaterialCycleWatchOptions extends MaterialCycleOptions {
|
|
70
|
+
idleMs?: number;
|
|
71
|
+
maxIdleMs?: number;
|
|
72
|
+
backoffMultiplier?: number;
|
|
73
|
+
maxIdle?: number;
|
|
74
|
+
maxIterations?: number;
|
|
75
|
+
}
|
|
28
76
|
export interface MaterialCycleDeps {
|
|
29
77
|
materialStore?: materialNs.MaterialStore;
|
|
30
78
|
consumer?: materialNs.ConsumerGroups;
|
|
@@ -34,9 +82,21 @@ export interface MaterialCycleDeps {
|
|
|
34
82
|
ingestor?: events.Ingestor;
|
|
35
83
|
engine?: algo.CycleEngine;
|
|
36
84
|
personality?: personality.PersonalityStore;
|
|
85
|
+
memoryGraph?: algo.MemoryGraphProvider;
|
|
86
|
+
validate?: exec.AutoExecDeps['validate'];
|
|
87
|
+
/** Test/composition seam for the external validator; production defaults to the hardened core runner. */
|
|
88
|
+
runSandboxedValidation?: SandboxedValidationRunner;
|
|
89
|
+
agent?: exec.AgentRunner;
|
|
90
|
+
git?: exec.GitRunner;
|
|
91
|
+
safety?: Partial<exec.AutonomousSafety>;
|
|
92
|
+
sleep?: SleepFn;
|
|
93
|
+
watchStateWriter?: (path: string, state: MaterialCycleWatchState) => void;
|
|
37
94
|
}
|
|
38
95
|
export declare function cycleIdForMaterial(materialId: string): string;
|
|
39
96
|
export declare function cycleLockPathForMaterial(materialStorePath: string, materialId: string): string;
|
|
40
97
|
export declare function runMaterialCycleConsumer(opts: MaterialCycleOptions, injectedDeps?: MaterialCycleDeps): Promise<MaterialCycleResult>;
|
|
98
|
+
export declare function runMaterialCycleWatch(opts: MaterialCycleWatchOptions, injectedDeps?: MaterialCycleDeps, hooks?: {
|
|
99
|
+
onIteration?: (iteration: MaterialCycleWatchIteration) => void;
|
|
100
|
+
}): Promise<MaterialCycleWatchResult>;
|
|
41
101
|
export declare function runCycleCommand(argv: readonly string[], injectedDeps?: MaterialCycleDeps): Promise<number>;
|
|
42
102
|
export {};
|