@evomap/evolver-cli 2.0.0-beta.8 → 2.0.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.js +2 -0
- package/dist/antiGeneRollout.js +9 -3
- package/dist/assetHealth.js +2 -0
- package/dist/assetTrust.js +14 -1
- 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/autoDistillLlm.js +2 -1
- package/dist/autoDistillTranscript.js +3 -2
- package/dist/autoexec.d.ts +101 -13
- package/dist/autoexec.js +794 -91
- package/dist/cli.js +13 -0
- package/dist/cliContracts.d.ts +23 -2
- package/dist/cliContracts.js +504 -54
- 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 +13 -0
- package/dist/cycleConsumer.js +186 -20
- package/dist/dashboard.js +47 -9
- package/dist/dispatch.js +8 -2
- package/dist/distillAdmission.d.ts +13 -0
- package/dist/distillAdmission.js +35 -0
- package/dist/distillObserver.js +4 -6
- package/dist/distillPrimitives.d.ts +11 -12
- package/dist/distillPrimitives.js +115 -21
- package/dist/doctor.js +120 -11
- package/dist/identityHome.d.ts +9 -0
- package/dist/identityHome.js +47 -0
- package/dist/index.d.ts +70 -40
- package/dist/index.js +586 -200
- package/dist/learningTrace.d.ts +15 -0
- package/dist/learningTrace.js +73 -0
- package/dist/lifecycle.d.ts +67 -1
- package/dist/lifecycle.js +738 -44
- package/dist/localMemoryGraph.d.ts +90 -3
- package/dist/localMemoryGraph.js +2031 -231
- package/dist/login.d.ts +1 -1
- package/dist/login.js +3 -3
- package/dist/materialPackage.js +3 -6
- package/dist/materialSnapshot.d.ts +9 -1
- package/dist/materialSnapshot.js +23 -6
- 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 +4 -2
- package/dist/migrate/fieldMap.js +9 -5
- package/dist/migrate/oauthImport.d.ts +66 -0
- package/dist/migrate/oauthImport.js +667 -0
- package/dist/migrate/v1Import.d.ts +92 -1
- package/dist/migrate/v1Import.js +1481 -141
- 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 +7 -1
- package/dist/recipe.js +426 -56
- package/dist/requiredSandboxValidation.d.ts +5 -0
- package/dist/requiredSandboxValidation.js +4 -0
- package/dist/reuse.d.ts +9 -0
- package/dist/reuse.js +159 -58
- package/dist/runtimeCapabilities.js +15 -15
- package/dist/runtimeSessionSource.d.ts +3 -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 +37 -0
- package/dist/sessionIngest.js +156 -0
- package/dist/setupHooks.js +95 -1
- package/dist/skill2gep.d.ts +13 -9
- package/dist/skill2gep.js +42 -30
- package/dist/skillDistill.d.ts +8 -4
- package/dist/skillDistill.js +38 -9
- package/dist/solo/mode.js +1 -0
- package/dist/sync.d.ts +12 -0
- package/dist/sync.js +1246 -151
- 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/workflowRuntime.js +24 -18
- package/package.json +11 -8
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { hub } from '@evomap/evolver-core';
|
|
2
|
+
import { type PublicAuthPathOptions } from '../login.js';
|
|
3
|
+
type OAuthMigrateStatus = 'migrated' | 'dry_run' | 'skipped_existing' | 'source_missing' | 'invalid_source' | 'refused';
|
|
4
|
+
export interface OAuthMigrateReport {
|
|
5
|
+
status: OAuthMigrateStatus;
|
|
6
|
+
fromPath: string;
|
|
7
|
+
toPath: string;
|
|
8
|
+
/** Field presence only — never raw secrets. */
|
|
9
|
+
sourceFields: {
|
|
10
|
+
hasAccessToken: boolean;
|
|
11
|
+
hasRefreshToken: boolean;
|
|
12
|
+
hasExpires: boolean;
|
|
13
|
+
hasDevice: boolean;
|
|
14
|
+
shape: 'v2-credential' | 'oauth2-snake' | 'nested' | 'unknown';
|
|
15
|
+
};
|
|
16
|
+
/** True when access token is past expiresAt (refresh may still work). */
|
|
17
|
+
accessExpired?: boolean;
|
|
18
|
+
message: string;
|
|
19
|
+
}
|
|
20
|
+
export interface OAuthMigrateOptions {
|
|
21
|
+
fromPath?: string;
|
|
22
|
+
toPath?: string;
|
|
23
|
+
force?: boolean;
|
|
24
|
+
dryRun?: boolean;
|
|
25
|
+
json?: boolean;
|
|
26
|
+
now?: () => number;
|
|
27
|
+
env?: NodeJS.ProcessEnv;
|
|
28
|
+
homeDir?: string;
|
|
29
|
+
/** Test seam for deterministic source replacement races. */
|
|
30
|
+
sourceReadTestHook?: (stage: 'before-open' | 'after-open' | 'after-read', path: string) => void;
|
|
31
|
+
/** Test seam for security metadata changes between snapshot and trust inspection. */
|
|
32
|
+
beforeSourceTrustTestHook?: (path: string) => void;
|
|
33
|
+
/** Test seam for a destination created immediately before no-clobber publish. */
|
|
34
|
+
beforeSaveTestHook?: (path: string) => void;
|
|
35
|
+
/** Test seam that avoids creating a real soft machine id. */
|
|
36
|
+
deviceFingerprint?: string;
|
|
37
|
+
}
|
|
38
|
+
/** Normalize expires fields: ms epoch preferred; accept seconds epoch or expires_in relative. */
|
|
39
|
+
export declare function normalizeExpiresAt(raw: Record<string, unknown>, nowMs: number): number | undefined;
|
|
40
|
+
export interface ParsedV1OAuth {
|
|
41
|
+
cred: hub.Credential & {
|
|
42
|
+
token: string;
|
|
43
|
+
};
|
|
44
|
+
shape: OAuthMigrateReport['sourceFields']['shape'];
|
|
45
|
+
hasAccessToken: boolean;
|
|
46
|
+
hasRefreshToken: boolean;
|
|
47
|
+
hasExpires: boolean;
|
|
48
|
+
hasDevice: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Parse a V1 (or already-V2) OAuth JSON object into a V2 hub.Credential.
|
|
52
|
+
* Accepts snake_case OAuth2, nested token objects, and V2 credential shape.
|
|
53
|
+
*/
|
|
54
|
+
export declare function parseV1OAuthJson(raw: unknown, nowMs?: number): ParsedV1OAuth;
|
|
55
|
+
export declare function defaultV1OAuthPath(opts?: PublicAuthPathOptions): string;
|
|
56
|
+
/**
|
|
57
|
+
* Convert V1 ~/.evomap/oauth_token.json into V2 token.json via CredentialStore.
|
|
58
|
+
* Never prints secret values. Fail-closed on unsafe paths / missing tokens.
|
|
59
|
+
*/
|
|
60
|
+
export declare function migrateV1OAuth(options?: OAuthMigrateOptions): OAuthMigrateReport;
|
|
61
|
+
export declare function runMigrateOAuthCommand(argv: readonly string[], io?: {
|
|
62
|
+
stdout?: (s: string) => void;
|
|
63
|
+
stderr?: (s: string) => void;
|
|
64
|
+
env?: NodeJS.ProcessEnv;
|
|
65
|
+
}): Promise<number>;
|
|
66
|
+
export {};
|