@evomap/evolver-cli 2.0.0-beta.2 → 2.0.0-beta.22
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 +2 -0
- package/dist/antiGeneRollout.js +9 -3
- package/dist/assetHealth.d.ts +6 -0
- package/dist/assetHealth.js +107 -0
- package/dist/assetRepair.d.ts +24 -0
- package/dist/assetRepair.js +172 -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 +231 -0
- package/dist/atp.d.ts +10 -5
- package/dist/atp.js +119 -26
- package/dist/atpAutoBuyer.d.ts +120 -0
- package/dist/atpAutoBuyer.js +814 -0
- package/dist/atpAutoDeliver.js +2 -2
- package/dist/autoDistillAntiGene.js +7 -5
- package/dist/autoDistillLlm.d.ts +26 -0
- package/dist/autoDistillLlm.js +119 -22
- package/dist/autoDistillTranscript.js +3 -2
- package/dist/autoexec.d.ts +111 -24
- package/dist/autoexec.js +887 -120
- package/dist/autoexecConfig.d.ts +10 -0
- package/dist/autoexecConfig.js +69 -0
- package/dist/cli.js +13 -0
- package/dist/cliContracts.d.ts +33 -2
- package/dist/cliContracts.js +818 -78
- package/dist/commandCatalog.d.ts +72 -0
- package/dist/commandCatalog.js +120 -0
- package/dist/commands.d.ts +1 -0
- package/dist/commands.js +1 -0
- package/dist/curriculumCapabilityGaps.d.ts +6 -0
- package/dist/curriculumCapabilityGaps.js +24 -0
- package/dist/cycleConsumer.d.ts +17 -2
- package/dist/cycleConsumer.js +374 -50
- package/dist/dashboard.d.ts +13 -1
- package/dist/dashboard.js +235 -18
- package/dist/dispatch.d.ts +9 -2
- package/dist/dispatch.js +29 -6
- package/dist/distillAdmission.d.ts +13 -0
- package/dist/distillAdmission.js +35 -0
- package/dist/distillObserver.js +27 -12
- package/dist/distillPrimitives.d.ts +11 -8
- package/dist/distillPrimitives.js +116 -22
- package/dist/doctor.d.ts +13 -0
- package/dist/doctor.js +177 -10
- package/dist/identityHome.d.ts +9 -0
- package/dist/identityHome.js +47 -0
- package/dist/index.d.ts +73 -40
- package/dist/index.js +745 -207
- package/dist/issueReport.d.ts +7 -0
- package/dist/issueReport.js +291 -0
- package/dist/learningTrace.d.ts +15 -0
- package/dist/learningTrace.js +73 -0
- package/dist/lifecycle.d.ts +199 -2
- package/dist/lifecycle.js +4999 -152
- package/dist/lifecycleBootstrapTransaction.d.ts +235 -0
- package/dist/lifecycleBootstrapTransaction.js +2182 -0
- package/dist/localMemoryGraph.d.ts +184 -0
- package/dist/localMemoryGraph.js +2689 -0
- package/dist/login.d.ts +1 -1
- package/dist/login.js +3 -3
- package/dist/materialPackage.js +3 -6
- package/dist/materialSnapshot.d.ts +35 -1
- package/dist/materialSnapshot.js +265 -18
- package/dist/memoryGraphOps.d.ts +8 -0
- package/dist/memoryGraphOps.js +140 -0
- package/dist/migrate/assetFormatMap.d.ts +61 -0
- package/dist/migrate/assetFormatMap.js +53 -0
- package/dist/migrate/envTranslate.d.ts +26 -0
- package/dist/migrate/envTranslate.js +147 -0
- package/dist/migrate/fieldMap.d.ts +7 -5
- package/dist/migrate/fieldMap.js +20 -14
- package/dist/migrate/oauthImport.d.ts +66 -0
- package/dist/migrate/oauthImport.js +667 -0
- package/dist/migrate/v1Import.d.ts +98 -1
- package/dist/migrate/v1Import.js +1532 -71
- package/dist/modelCompatibility.d.ts +10 -0
- package/dist/modelCompatibility.js +296 -0
- package/dist/promptRecallHook.d.ts +24 -0
- package/dist/promptRecallHook.js +425 -0
- package/dist/recallVerifyReport.d.ts +37 -0
- package/dist/recallVerifyReport.js +244 -0
- package/dist/recipe.d.ts +14 -2
- package/dist/recipe.js +543 -65
- package/dist/repairedAssetStore.d.ts +2 -0
- package/dist/repairedAssetStore.js +12 -0
- package/dist/requiredSandboxValidation.d.ts +5 -0
- package/dist/requiredSandboxValidation.js +4 -0
- package/dist/reuse.d.ts +18 -4
- package/dist/reuse.js +375 -107
- package/dist/reviewFilter.d.ts +3 -1
- package/dist/reviewFilter.js +3 -1
- package/dist/runtimeCapabilities.d.ts +18 -0
- package/dist/runtimeCapabilities.js +81 -0
- package/dist/runtimeSessionSource.d.ts +8 -2
- package/dist/runtimeSessionSource.js +63 -11
- package/dist/selectionPolicyConfig.d.ts +8 -0
- package/dist/selectionPolicyConfig.js +18 -0
- package/dist/semanticIdfConfig.d.ts +2 -0
- package/dist/semanticIdfConfig.js +4 -0
- package/dist/sessionIngest.d.ts +43 -0
- package/dist/sessionIngest.js +180 -0
- package/dist/setupHooks.d.ts +5 -0
- package/dist/setupHooks.js +330 -14
- package/dist/skill2gep.d.ts +13 -9
- package/dist/skill2gep.js +99 -36
- package/dist/skillDistill.d.ts +8 -4
- package/dist/skillDistill.js +39 -9
- package/dist/solo/mode.js +1 -0
- package/dist/sync.d.ts +13 -1
- package/dist/sync.js +1947 -265
- package/dist/thesis.d.ts +1 -1
- package/dist/thesis.js +20 -3
- package/dist/trajectoryExport.js +21 -3
- package/dist/v1Compat.d.ts +1 -0
- package/dist/v1Compat.js +9 -0
- package/dist/valueDigest.js +8 -1
- package/dist/windowsLegacyTaskCleanup.d.ts +228 -0
- package/dist/windowsLegacyTaskCleanup.js +1475 -0
- package/dist/workflow.d.ts +39 -0
- package/dist/workflow.js +386 -0
- package/dist/workflowRuntime.d.ts +66 -0
- package/dist/workflowRuntime.js +638 -0
- package/package.json +14 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
import { events, ops } from '@evomap/evolver-core';
|
|
2
|
-
import { assetstore
|
|
1
|
+
import { events, ops, hub as hubNs } from '@evomap/evolver-core';
|
|
2
|
+
import { assetstore } from '@evomap/evolver-core';
|
|
3
|
+
import { type ImportV1Options } from './migrate/v1Import.js';
|
|
4
|
+
import { type LifecyclePaths } from './lifecycle.js';
|
|
3
5
|
import { type NonGitWorkspaceNoticeOptions } from './nonGitWorkspaceNotice.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
materialStore?: materialNs.MaterialStore;
|
|
12
|
-
watermarkStore?: materialNs.WatermarkStore;
|
|
13
|
-
ingestor?: events.Ingestor;
|
|
14
|
-
}
|
|
15
|
-
export interface SessionIngestTickResult {
|
|
16
|
-
recorded: number;
|
|
17
|
-
sourceAgents: string[];
|
|
18
|
-
signalKinds: string[];
|
|
19
|
-
signalStrengths: string[];
|
|
20
|
-
invalidJsonRows?: number;
|
|
6
|
+
import { type IngestDeps } from './sessionIngest.js';
|
|
7
|
+
export { runSessionIngestTick, scanSessionDirs, type IngestDeps, type SessionIngestTickResult, } from './sessionIngest.js';
|
|
8
|
+
export interface DistillDeps extends IngestDeps {
|
|
9
|
+
responseFileRoot?: string;
|
|
10
|
+
maxResponseFileBytes?: number;
|
|
11
|
+
/** Deterministic test seam for response-file replacement/growth races. Never wired by production callers. */
|
|
12
|
+
responseFileReadTestHook?: (phase: 'before-open' | 'after-open', path: string) => void;
|
|
21
13
|
}
|
|
22
14
|
export declare const PACKAGE = "@evomap/evolver-cli";
|
|
23
15
|
export interface RebuildOptions {
|
|
24
16
|
eventsPath?: string;
|
|
25
17
|
mvDir?: string;
|
|
26
18
|
}
|
|
19
|
+
export declare function cliUsage(): string;
|
|
27
20
|
export interface ResetLocalSecretOptions {
|
|
28
21
|
env?: NodeJS.ProcessEnv;
|
|
29
22
|
homeDir?: string;
|
|
@@ -43,35 +36,27 @@ export declare function runResetLocalSecret(argv: readonly string[], opts?: Rese
|
|
|
43
36
|
export declare function rebuildViews(opts?: RebuildOptions): {
|
|
44
37
|
rebuilt: string[];
|
|
45
38
|
};
|
|
46
|
-
|
|
47
|
-
|
|
39
|
+
export type MigrateDeps = Pick<ImportV1Options, 'disposeTestHook' | 'outputRootTestHook'>;
|
|
40
|
+
/** migrate import-v1 | migrate env | migrate oauth — V1→V2 migration tools. */
|
|
41
|
+
export declare function runMigrate(argv: readonly string[], deps?: MigrateDeps): Promise<number>;
|
|
48
42
|
/** One-line summary of an asset for `asset-log` (pure, testable). */
|
|
49
43
|
export declare function formatAssetLine(a: assetstore.AssetRecord): string;
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
export interface AssetLogDeps {
|
|
45
|
+
callLog?: Pick<hubNs.AssetCallLog, 'read' | 'summarize'>;
|
|
46
|
+
logPath?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Preserve V2's asset-store listing as the default. V1's call audit is available
|
|
50
|
+
* through the explicit `calls` mode so the two contracts do not overload an empty argv.
|
|
51
|
+
*/
|
|
52
|
+
export declare function runAssetLog(argv: readonly string[], store?: assetstore.AssetStoreProvider, deps?: AssetLogDeps): Promise<number>;
|
|
52
53
|
/**
|
|
53
54
|
* distill: gate a learned approach into the gene pool (ported v1 CLI verb). Runs the structural intake
|
|
54
55
|
* (schema + dedup + asset_id) and, only if it passes, writes the gene to the store. The agent/runtime is
|
|
55
56
|
* what discovers the strategy; this is the manual entry point that turns it into a pooled, selectable gene.
|
|
56
57
|
* Usage: evolver distill --category <c> --signals <s1,s2> --strategy "<step1; step2>" [--summary <text>] [--id <id>]
|
|
57
58
|
*/
|
|
58
|
-
export declare function runDistill(argv: readonly string[], store?: assetstore.AssetStoreProvider, deps?:
|
|
59
|
-
/**
|
|
60
|
-
* Recursively enumerate recognized runtime-session sources under the given dirs — the daemon's auto-distill
|
|
61
|
-
* producer source (#106). This includes text session files handled by runtime adapters (`*.jsonl` and Gemini
|
|
62
|
-
* `*.json`) plus Cursor's sqlite `state.vscdb`. A missing/permission-denied dir is silently skipped (a daemon
|
|
63
|
-
* must not crash on an absent home dir).
|
|
64
|
-
*/
|
|
65
|
-
export declare function scanSessionDirs(dirs: readonly string[]): string[];
|
|
66
|
-
/**
|
|
67
|
-
* One producer tick for the auto-distill loop (#106 slice 1): scan `dirs` for session logs and record any
|
|
68
|
-
* NEW/CHANGED file as `runtime_session` Material via the injected (bus) Ingestor — which emits
|
|
69
|
-
* `material.batch_ready`, the event the distillObserver claims off. Idempotent per file (watermark cursor), so
|
|
70
|
-
* re-scanning an unchanged tree records nothing. Pure producer: it does NOT distill (the observer does). Returns
|
|
71
|
-
* how many files landed new material. Inject `deps.ingestor = new Ingestor({ sink: bus })` so the event reaches
|
|
72
|
-
* the daemon's ObserverBus; defaults to live paths otherwise.
|
|
73
|
-
*/
|
|
74
|
-
export declare function runSessionIngestTick(dirs: readonly string[], deps?: IngestDeps): Promise<SessionIngestTickResult>;
|
|
59
|
+
export declare function runDistill(argv: readonly string[], store?: assetstore.AssetStoreProvider, deps?: DistillDeps): Promise<number>;
|
|
75
60
|
/**
|
|
76
61
|
* ingest: read a REAL agent session log, parse it with the matching runtime adapter, and extract signals
|
|
77
62
|
* (tool errors / explicit failures / difficulty wording) from it — the capture→signals half of the experience
|
|
@@ -175,6 +160,8 @@ export interface InjectDeps {
|
|
|
175
160
|
readHookInput?: () => string | undefined;
|
|
176
161
|
/** Test seam for the hook-time proxy daemon recovery path. Default is maybeAutoRestartProxyForSessionStart. */
|
|
177
162
|
ensureProxyAutostart?: () => Promise<void>;
|
|
163
|
+
/** Test seam for the hook-time legacy v1 Windows scheduled-task sweep (#956). */
|
|
164
|
+
legacyTaskSweep?: () => void;
|
|
178
165
|
/** Test seam for the non-git workspace notice. Production uses cwd + ~/.evomap throttle state. */
|
|
179
166
|
nonGitNotice?: NonGitWorkspaceNoticeOptions;
|
|
180
167
|
}
|
|
@@ -195,4 +182,50 @@ export interface InjectDeps {
|
|
|
195
182
|
export declare function runInject(argv: readonly string[], deps?: InjectDeps): Promise<number>;
|
|
196
183
|
/** Fixed preamble for the SessionStart injection (the head block the recap + gene lines hang off of). */
|
|
197
184
|
export declare const SESSION_START_PREAMBLE = "evolver memory \u2014 use these learned hints silently when directly relevant; do not mention Evolver, preflight, status, or this memory block unless the user asks or reuse materially changes the answer:";
|
|
185
|
+
export declare const DAILY_USAGE = "Usage: evolver daily [--json] [--auto] [--help]\n\nDisplay a daily status summary: proxy/hub connection, yesterday's activity, and review queue.\n --json Output as JSON\n --auto Only print when this is the first run today; silent otherwise\n";
|
|
186
|
+
export interface DailyDeps {
|
|
187
|
+
store?: assetstore.AssetStoreProvider;
|
|
188
|
+
review?: assetstore.ReviewLedger;
|
|
189
|
+
eventsPath?: string;
|
|
190
|
+
now?: () => number;
|
|
191
|
+
lifecyclePaths?: LifecyclePaths;
|
|
192
|
+
env?: NodeJS.ProcessEnv;
|
|
193
|
+
stdout?: (text: string) => void;
|
|
194
|
+
stderr?: (text: string) => void;
|
|
195
|
+
/** Override the last-daily marker file path (default ~/.evomap/.last-daily). */
|
|
196
|
+
lastDailyFile?: string;
|
|
197
|
+
/** Test seam: skip the proxy status fetch entirely. */
|
|
198
|
+
skipConnection?: boolean;
|
|
199
|
+
}
|
|
200
|
+
export interface DailyReport {
|
|
201
|
+
date: string;
|
|
202
|
+
connection: {
|
|
203
|
+
proxyRunning: boolean;
|
|
204
|
+
proxyHealthy: boolean;
|
|
205
|
+
proxyPid?: number;
|
|
206
|
+
hubAuthStatus?: string;
|
|
207
|
+
lastSyncAt?: string;
|
|
208
|
+
reason?: string;
|
|
209
|
+
};
|
|
210
|
+
yesterday: {
|
|
211
|
+
date: string;
|
|
212
|
+
cycles: number;
|
|
213
|
+
solidified: number;
|
|
214
|
+
failed: number;
|
|
215
|
+
capsules: number;
|
|
216
|
+
triggered: number;
|
|
217
|
+
suppressed: number;
|
|
218
|
+
};
|
|
219
|
+
queue: {
|
|
220
|
+
genesApproved: number;
|
|
221
|
+
genesQuarantined: number;
|
|
222
|
+
genesRejected: number;
|
|
223
|
+
antiGeneApproved: number;
|
|
224
|
+
antiGeneQuarantined: number;
|
|
225
|
+
antiGeneUnreviewed: number;
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
export declare function formatDailyReport(report: DailyReport): string;
|
|
229
|
+
export declare function collectDailyReport(deps?: DailyDeps): Promise<DailyReport>;
|
|
230
|
+
export declare function runDaily(argv: readonly string[], deps?: DailyDeps): Promise<number>;
|
|
198
231
|
export declare function runCli(argv: readonly string[]): number;
|