@evomap/evolver-cli 2.0.0-beta.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/antiGeneBenchmark.d.ts +9 -0
- package/dist/antiGeneBenchmark.js +173 -0
- package/dist/antiGeneRollout.d.ts +14 -0
- package/dist/antiGeneRollout.js +276 -0
- package/dist/atp.d.ts +122 -0
- package/dist/atp.js +413 -0
- package/dist/atpAutoDeliver.d.ts +53 -0
- package/dist/atpAutoDeliver.js +197 -0
- package/dist/atpAutobuyPrompt.d.ts +48 -0
- package/dist/atpAutobuyPrompt.js +109 -0
- package/dist/autoDistillAntiGene.d.ts +63 -0
- package/dist/autoDistillAntiGene.js +396 -0
- package/dist/autoDistillLlm.d.ts +94 -0
- package/dist/autoDistillLlm.js +510 -0
- package/dist/autoDistillTranscript.d.ts +87 -0
- package/dist/autoDistillTranscript.js +364 -0
- package/dist/autoRecall.d.ts +25 -0
- package/dist/autoRecall.js +80 -0
- package/dist/autoexec.d.ts +237 -0
- package/dist/autoexec.js +1041 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +7 -0
- package/dist/cliContracts.d.ts +72 -0
- package/dist/cliContracts.js +815 -0
- package/dist/commands.d.ts +9 -0
- package/dist/commands.js +10 -0
- package/dist/cursorRewrite.d.ts +42 -0
- package/dist/cursorRewrite.js +65 -0
- package/dist/cycleConsumer.d.ts +42 -0
- package/dist/cycleConsumer.js +519 -0
- package/dist/daemonLoop.d.ts +33 -0
- package/dist/daemonLoop.js +72 -0
- package/dist/dispatch.d.ts +10 -0
- package/dist/dispatch.js +75 -0
- package/dist/distillObserver.d.ts +33 -0
- package/dist/distillObserver.js +146 -0
- package/dist/distillPrimitives.d.ts +48 -0
- package/dist/distillPrimitives.js +142 -0
- package/dist/doctor.d.ts +54 -0
- package/dist/doctor.js +931 -0
- package/dist/geneValue.d.ts +37 -0
- package/dist/geneValue.js +97 -0
- package/dist/index.d.ts +193 -0
- package/dist/index.js +1135 -0
- package/dist/lifecycle.d.ts +75 -0
- package/dist/lifecycle.js +859 -0
- package/dist/login.d.ts +10 -0
- package/dist/login.js +38 -0
- package/dist/migrate/divergenceAudit.d.ts +29 -0
- package/dist/migrate/divergenceAudit.js +37 -0
- package/dist/migrate/fieldMap.d.ts +18 -0
- package/dist/migrate/fieldMap.js +68 -0
- package/dist/migrate/v1Import.d.ts +16 -0
- package/dist/migrate/v1Import.js +118 -0
- package/dist/phub.d.ts +18 -0
- package/dist/phub.js +284 -0
- package/dist/recall.d.ts +26 -0
- package/dist/recall.js +162 -0
- package/dist/recipe.d.ts +61 -0
- package/dist/recipe.js +564 -0
- package/dist/reflectionObserver.d.ts +8 -0
- package/dist/reflectionObserver.js +6 -0
- package/dist/reuse.d.ts +48 -0
- package/dist/reuse.js +300 -0
- package/dist/reuseReport.d.ts +20 -0
- package/dist/reuseReport.js +255 -0
- package/dist/reviewFilter.d.ts +4 -0
- package/dist/reviewFilter.js +6 -0
- package/dist/runtimeSessionSource.d.ts +9 -0
- package/dist/runtimeSessionSource.js +29 -0
- package/dist/setupHooks.d.ts +2 -0
- package/dist/setupHooks.js +410 -0
- package/dist/skill2gep.d.ts +144 -0
- package/dist/skill2gep.js +321 -0
- package/dist/skillDistill.d.ts +75 -0
- package/dist/skillDistill.js +342 -0
- package/dist/solo/breaker.d.ts +14 -0
- package/dist/solo/breaker.js +21 -0
- package/dist/solo/gitGuard.d.ts +17 -0
- package/dist/solo/gitGuard.js +62 -0
- package/dist/solo/mode.d.ts +12 -0
- package/dist/solo/mode.js +55 -0
- package/dist/thesis.d.ts +43 -0
- package/dist/thesis.js +179 -0
- package/dist/trajectoryExport.d.ts +1 -0
- package/dist/trajectoryExport.js +895 -0
- package/dist/valueDigest.d.ts +33 -0
- package/dist/valueDigest.js +94 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +14 -0
- package/package.json +38 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
interface ProcessIdentity {
|
|
3
|
+
executable?: string;
|
|
4
|
+
parentPid?: number;
|
|
5
|
+
startedAt?: number;
|
|
6
|
+
}
|
|
7
|
+
interface LifecyclePaths {
|
|
8
|
+
home: string;
|
|
9
|
+
stateDir: string;
|
|
10
|
+
logDir: string;
|
|
11
|
+
pidFile: string;
|
|
12
|
+
logFile: string;
|
|
13
|
+
settingsFile: string;
|
|
14
|
+
}
|
|
15
|
+
export interface LifecycleStatus {
|
|
16
|
+
running: boolean;
|
|
17
|
+
pid?: number;
|
|
18
|
+
healthy?: boolean;
|
|
19
|
+
reason?: string;
|
|
20
|
+
logFile?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface LifecycleResult {
|
|
23
|
+
status: string;
|
|
24
|
+
pid?: number;
|
|
25
|
+
pids?: number[];
|
|
26
|
+
healthy?: boolean;
|
|
27
|
+
reason?: string;
|
|
28
|
+
logFile?: string;
|
|
29
|
+
files?: string[];
|
|
30
|
+
service?: string;
|
|
31
|
+
}
|
|
32
|
+
interface RunLifecycleDeps {
|
|
33
|
+
argv1?: string;
|
|
34
|
+
env?: NodeJS.ProcessEnv;
|
|
35
|
+
stdout?: (text: string) => void;
|
|
36
|
+
stderr?: (text: string) => void;
|
|
37
|
+
}
|
|
38
|
+
export type SessionStartSpawn = (command: string, args: readonly string[], options: Parameters<typeof spawn>[2]) => ReturnType<typeof spawn>;
|
|
39
|
+
interface SessionStartAutostartDeps {
|
|
40
|
+
stderr?: (text: string) => void;
|
|
41
|
+
spawnDetached?: SessionStartSpawn;
|
|
42
|
+
platform?: NodeJS.Platform;
|
|
43
|
+
}
|
|
44
|
+
export interface StopLifecycleDeps {
|
|
45
|
+
processCommandLine?: (pid: number) => string | undefined;
|
|
46
|
+
processIdentity?: (pid: number) => ProcessIdentity | undefined;
|
|
47
|
+
}
|
|
48
|
+
export declare function runLifecycleCommand(argv: readonly string[], deps?: RunLifecycleDeps): Promise<number>;
|
|
49
|
+
export declare function maybeAutoRestartProxyForSessionStart(env?: NodeJS.ProcessEnv, argv1?: string | undefined, deps?: SessionStartAutostartDeps): Promise<void>;
|
|
50
|
+
export declare function startLifecycle(paths: LifecyclePaths, env?: NodeJS.ProcessEnv): Promise<LifecycleResult>;
|
|
51
|
+
export declare function stopLifecycle(paths: LifecyclePaths, deps?: StopLifecycleDeps): LifecycleResult;
|
|
52
|
+
export declare function lifecycleStatus(paths: LifecyclePaths, env?: NodeJS.ProcessEnv, options?: {
|
|
53
|
+
timeoutMs?: number;
|
|
54
|
+
quietSettingsReadError?: boolean;
|
|
55
|
+
stderr?: (text: string) => void;
|
|
56
|
+
}): Promise<LifecycleStatus>;
|
|
57
|
+
export declare function lifecyclePaths(env?: NodeJS.ProcessEnv): LifecyclePaths;
|
|
58
|
+
export declare function renderSystemdUnit(opts?: {
|
|
59
|
+
envFile?: string;
|
|
60
|
+
workingDirectory?: string;
|
|
61
|
+
execStart?: string;
|
|
62
|
+
}): string;
|
|
63
|
+
export declare function renderLaunchdPlist(opts?: {
|
|
64
|
+
envFile?: string;
|
|
65
|
+
workingDirectory?: string;
|
|
66
|
+
nodePath?: string;
|
|
67
|
+
proxyBin?: string;
|
|
68
|
+
logDir?: string;
|
|
69
|
+
}): string;
|
|
70
|
+
export declare function renderWindowsInstaller(): string;
|
|
71
|
+
export declare function resolveProxyBinPath(): string | undefined;
|
|
72
|
+
export declare function resolveStableNodePath(): string;
|
|
73
|
+
export declare function sessionStartHookVerboseEnabled(env?: NodeJS.ProcessEnv): boolean;
|
|
74
|
+
export declare function proxyExpected(env?: NodeJS.ProcessEnv): boolean;
|
|
75
|
+
export {};
|