@evomap/evolver-cli 2.0.0-beta.18 → 2.0.0-beta.19
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/antiGeneRollout.js +7 -3
- package/dist/assetTrust.js +14 -1
- package/dist/atp.d.ts +8 -3
- package/dist/atp.js +82 -11
- package/dist/atpAutoBuyer.d.ts +120 -0
- package/dist/atpAutoBuyer.js +814 -0
- package/dist/atpAutoDeliver.js +2 -2
- package/dist/autoDistillLlm.js +2 -1
- package/dist/autoDistillTranscript.js +3 -2
- package/dist/autoexec.d.ts +90 -13
- package/dist/autoexec.js +731 -84
- package/dist/cli.js +13 -0
- package/dist/cliContracts.d.ts +5 -2
- package/dist/cliContracts.js +135 -8
- 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 +4 -0
- package/dist/cycleConsumer.js +175 -20
- package/dist/dashboard.js +47 -9
- package/dist/dispatch.js +6 -2
- package/dist/distillPrimitives.js +18 -6
- package/dist/doctor.js +63 -5
- package/dist/identityHome.js +2 -1
- package/dist/index.d.ts +67 -39
- package/dist/index.js +504 -185
- package/dist/learningTrace.js +8 -2
- package/dist/lifecycle.d.ts +54 -1
- package/dist/lifecycle.js +489 -37
- package/dist/materialSnapshot.d.ts +9 -1
- package/dist/materialSnapshot.js +23 -6
- package/dist/migrate/envTranslate.d.ts +26 -0
- package/dist/migrate/envTranslate.js +145 -0
- package/dist/migrate/oauthImport.d.ts +66 -0
- package/dist/migrate/oauthImport.js +667 -0
- package/dist/migrate/v1Import.d.ts +13 -1
- package/dist/migrate/v1Import.js +621 -122
- 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/requiredSandboxValidation.d.ts +5 -0
- package/dist/requiredSandboxValidation.js +4 -0
- package/dist/reuse.d.ts +1 -0
- package/dist/reuse.js +45 -37
- package/dist/runtimeCapabilities.js +13 -13
- package/dist/runtimeSessionSource.d.ts +3 -2
- package/dist/runtimeSessionSource.js +63 -11
- package/dist/sessionIngest.d.ts +37 -0
- package/dist/sessionIngest.js +156 -0
- package/dist/setupHooks.js +95 -1
- package/dist/skill2gep.d.ts +4 -7
- package/dist/skill2gep.js +4 -21
- package/dist/solo/mode.js +1 -0
- package/dist/sync.js +125 -23
- package/dist/thesis.d.ts +1 -1
- package/dist/thesis.js +18 -3
- package/dist/trajectoryExport.js +21 -3
- package/dist/v1Compat.d.ts +1 -0
- package/dist/v1Compat.js +9 -0
- package/dist/workflowRuntime.js +24 -18
- package/package.json +10 -7
package/dist/learningTrace.js
CHANGED
|
@@ -8,7 +8,8 @@ import { join } from 'node:path';
|
|
|
8
8
|
import { homedir } from 'node:os';
|
|
9
9
|
import { existsSync, readFileSync } from 'node:fs';
|
|
10
10
|
import { HubLearningPacketSink, TeeLearningPacketSink, connectPublicHub, resolveHubUrl, globalFetchLike, } from '@evomap/evolver-adapter-public';
|
|
11
|
-
import {
|
|
11
|
+
import { resolveAtpSenderId } from './atp.js';
|
|
12
|
+
import { resolveIdentityHome } from './identityHome.js';
|
|
12
13
|
/** Same default node-secret resolution as trajectory export: env first, then ~/.evomap/node_secret. Best-effort —
|
|
13
14
|
* without a secret the fold still reads plaintext/metadata-only rows; encrypted envelopes are just skipped. */
|
|
14
15
|
function defaultNodeSecret(env) {
|
|
@@ -26,7 +27,12 @@ function defaultNodeSecret(env) {
|
|
|
26
27
|
function resolveHubUpload(env) {
|
|
27
28
|
if (env['EVOLVER_LEARNING_TRACE_UPLOAD'] !== '1')
|
|
28
29
|
return { sink: null, state: 'off' };
|
|
29
|
-
const
|
|
30
|
+
const configuredHubMode = env['EVOMAP_HUB_MODE'];
|
|
31
|
+
const publicUploadAllowed = configuredHubMode === undefined
|
|
32
|
+
|| configuredHubMode.trim().toLowerCase() === 'public';
|
|
33
|
+
if (!publicUploadAllowed)
|
|
34
|
+
return { sink: null, state: 'off' };
|
|
35
|
+
const dir = resolveIdentityHome(env) ?? join(homedir(), '.evomap');
|
|
30
36
|
if (!existsSync(join(dir, 'token.json')))
|
|
31
37
|
return { sink: null, state: 'no_credentials' };
|
|
32
38
|
try {
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
|
+
export type ServiceTarget = 'launchd' | 'systemd' | 'windows';
|
|
2
3
|
export interface DaemonCommand {
|
|
3
4
|
command: string;
|
|
4
5
|
args: string[];
|
|
@@ -9,7 +10,7 @@ interface ProcessIdentity {
|
|
|
9
10
|
parentPid?: number;
|
|
10
11
|
startedAt?: number;
|
|
11
12
|
}
|
|
12
|
-
interface LifecyclePaths {
|
|
13
|
+
export interface LifecyclePaths {
|
|
13
14
|
home: string;
|
|
14
15
|
stateDir: string;
|
|
15
16
|
logDir: string;
|
|
@@ -33,6 +34,8 @@ export interface LifecycleResult {
|
|
|
33
34
|
logFile?: string;
|
|
34
35
|
files?: string[];
|
|
35
36
|
service?: string;
|
|
37
|
+
autoexecHome?: string;
|
|
38
|
+
actions?: string[];
|
|
36
39
|
}
|
|
37
40
|
type UnixRecoveryControllerModule = Pick<typeof import('@evomap/evolver-proxy'), 'provisionStableUnixRecoveryController' | 'stableUnixRecoveryControllerPathForTarget' | 'UNIX_RECOVERY_CONTROLLER_ARG'>;
|
|
38
41
|
type LoadUnixRecoveryController = () => Promise<UnixRecoveryControllerModule>;
|
|
@@ -40,9 +43,22 @@ interface RunLifecycleDeps {
|
|
|
40
43
|
argv1?: string;
|
|
41
44
|
env?: NodeJS.ProcessEnv;
|
|
42
45
|
loadUnixRecoveryController?: LoadUnixRecoveryController;
|
|
46
|
+
removeAutoexecService?: (target: ServiceTarget, dryRun: boolean) => LifecycleResult;
|
|
43
47
|
stdout?: (text: string) => void;
|
|
44
48
|
stderr?: (text: string) => void;
|
|
45
49
|
}
|
|
50
|
+
interface ServiceControlResult {
|
|
51
|
+
status: number | null;
|
|
52
|
+
error?: unknown;
|
|
53
|
+
}
|
|
54
|
+
export interface RemoveAutoexecServiceDeps {
|
|
55
|
+
paths?: Partial<Record<ServiceTarget, string>>;
|
|
56
|
+
run?: (command: string, args: readonly string[]) => ServiceControlResult;
|
|
57
|
+
exists?: (path: string) => boolean;
|
|
58
|
+
remove?: (path: string) => void;
|
|
59
|
+
write?: (path: string, content: string, mode: number) => void;
|
|
60
|
+
uid?: number;
|
|
61
|
+
}
|
|
46
62
|
export type SessionStartSpawn = (command: string, args: readonly string[], options: Parameters<typeof spawn>[2]) => ReturnType<typeof spawn>;
|
|
47
63
|
interface SessionStartAutostartDeps {
|
|
48
64
|
stderr?: (text: string) => void;
|
|
@@ -52,6 +68,7 @@ interface SessionStartAutostartDeps {
|
|
|
52
68
|
export interface StopLifecycleDeps {
|
|
53
69
|
processCommandLine?: (pid: number) => string | undefined;
|
|
54
70
|
processIdentity?: (pid: number) => ProcessIdentity | undefined;
|
|
71
|
+
platform?: NodeJS.Platform;
|
|
55
72
|
}
|
|
56
73
|
export declare function runLifecycleCommand(argv: readonly string[], deps?: RunLifecycleDeps): Promise<number>;
|
|
57
74
|
export declare function maybeAutoRestartProxyForSessionStart(env?: NodeJS.ProcessEnv, argv1?: string | undefined, deps?: SessionStartAutostartDeps): Promise<void>;
|
|
@@ -62,6 +79,16 @@ export declare function lifecycleStatus(paths: LifecyclePaths, env?: NodeJS.Proc
|
|
|
62
79
|
quietSettingsReadError?: boolean;
|
|
63
80
|
stderr?: (text: string) => void;
|
|
64
81
|
}): Promise<LifecycleStatus>;
|
|
82
|
+
/** Extended connection status for `evolver daily`: includes hub_auth_status and last_sync_at from proxy. */
|
|
83
|
+
export interface DailyConnectionStatus extends LifecycleStatus {
|
|
84
|
+
hubAuthStatus?: string;
|
|
85
|
+
lastSyncAt?: string;
|
|
86
|
+
}
|
|
87
|
+
/** Fetch enriched connection status for the daily summary. Builds on lifecycleStatus, adding hub details. */
|
|
88
|
+
export declare function dailyConnectionStatus(paths: LifecyclePaths, env?: NodeJS.ProcessEnv, options?: {
|
|
89
|
+
timeoutMs?: number;
|
|
90
|
+
stderr?: (text: string) => void;
|
|
91
|
+
}): Promise<DailyConnectionStatus>;
|
|
65
92
|
export declare function lifecyclePaths(env?: NodeJS.ProcessEnv): LifecyclePaths;
|
|
66
93
|
export declare function renderSystemdUnit(opts?: {
|
|
67
94
|
envFile?: string;
|
|
@@ -70,6 +97,11 @@ export declare function renderSystemdUnit(opts?: {
|
|
|
70
97
|
selfUpdateStateDir?: string;
|
|
71
98
|
selfUpdateTarget?: string;
|
|
72
99
|
}): string;
|
|
100
|
+
export declare function renderAutoexecSystemdUnit(opts: {
|
|
101
|
+
envFile?: string;
|
|
102
|
+
workingDirectory?: string;
|
|
103
|
+
execStart: string;
|
|
104
|
+
}): string;
|
|
73
105
|
export declare function renderLaunchdPlist(opts?: {
|
|
74
106
|
envFile?: string;
|
|
75
107
|
workingDirectory?: string;
|
|
@@ -79,6 +111,15 @@ export declare function renderLaunchdPlist(opts?: {
|
|
|
79
111
|
logDir?: string;
|
|
80
112
|
selfUpdateStateDir?: string;
|
|
81
113
|
selfUpdateTarget?: string;
|
|
114
|
+
label?: string;
|
|
115
|
+
logName?: string;
|
|
116
|
+
selfUpdateSupervisor?: boolean;
|
|
117
|
+
}): string;
|
|
118
|
+
export declare function renderAutoexecLaunchdPlist(opts: {
|
|
119
|
+
envFile?: string;
|
|
120
|
+
workingDirectory?: string;
|
|
121
|
+
programArguments: readonly string[];
|
|
122
|
+
logDir?: string;
|
|
82
123
|
}): string;
|
|
83
124
|
export declare function renderWindowsInstaller(defaults?: {
|
|
84
125
|
evolverBin?: string;
|
|
@@ -87,10 +128,22 @@ export declare function renderWindowsInstaller(defaults?: {
|
|
|
87
128
|
envFile?: string;
|
|
88
129
|
selfUpdateStateDir?: string;
|
|
89
130
|
}): string;
|
|
131
|
+
export declare function renderWindowsAutoexecInstaller(defaults?: {
|
|
132
|
+
evolverBin?: string;
|
|
133
|
+
nodePath?: string;
|
|
134
|
+
cliBin?: string;
|
|
135
|
+
envFile?: string;
|
|
136
|
+
autoexecHome?: string;
|
|
137
|
+
workingDirectory?: string;
|
|
138
|
+
}): string;
|
|
139
|
+
export declare function removeAutoexecService(target: ServiceTarget, dryRun: boolean, deps?: RemoveAutoexecServiceDeps): LifecycleResult;
|
|
90
140
|
export declare function resolveDaemonCommand(env: NodeJS.ProcessEnv, execPath?: string, argv1?: string | undefined): DaemonCommand;
|
|
91
141
|
export declare function resolveSelfUpdatingExecutable(execPath: string, argv1: string | undefined): DaemonCommand | undefined;
|
|
142
|
+
export declare function resolveAutoexecDaemonCommand(env: NodeJS.ProcessEnv, execPath?: string, argv1?: string | undefined, autoexecHome?: string): DaemonCommand | undefined;
|
|
92
143
|
export declare function resolveProxyBinPath(): string | undefined;
|
|
93
144
|
export declare function resolveStableNodePath(): string;
|
|
94
145
|
export declare function sessionStartHookVerboseEnabled(env?: NodeJS.ProcessEnv): boolean;
|
|
95
146
|
export declare function proxyExpected(env?: NodeJS.ProcessEnv): boolean;
|
|
147
|
+
declare function writeWindowsHelper(preferredPath: string, content: string): string;
|
|
148
|
+
export declare const _writeWindowsHelperForTest: typeof writeWindowsHelper;
|
|
96
149
|
export {};
|