@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.
Files changed (91) hide show
  1. package/dist/antiGeneBenchmark.js +2 -0
  2. package/dist/antiGeneRollout.js +9 -3
  3. package/dist/assetHealth.js +2 -0
  4. package/dist/assetTrust.js +14 -1
  5. package/dist/atp.d.ts +10 -5
  6. package/dist/atp.js +119 -26
  7. package/dist/atpAutoBuyer.d.ts +120 -0
  8. package/dist/atpAutoBuyer.js +814 -0
  9. package/dist/atpAutoDeliver.js +2 -2
  10. package/dist/autoDistillLlm.js +2 -1
  11. package/dist/autoDistillTranscript.js +3 -2
  12. package/dist/autoexec.d.ts +101 -13
  13. package/dist/autoexec.js +794 -91
  14. package/dist/cli.js +13 -0
  15. package/dist/cliContracts.d.ts +23 -2
  16. package/dist/cliContracts.js +504 -54
  17. package/dist/commands.d.ts +1 -0
  18. package/dist/commands.js +1 -0
  19. package/dist/curriculumCapabilityGaps.d.ts +6 -0
  20. package/dist/curriculumCapabilityGaps.js +24 -0
  21. package/dist/cycleConsumer.d.ts +13 -0
  22. package/dist/cycleConsumer.js +186 -20
  23. package/dist/dashboard.js +47 -9
  24. package/dist/dispatch.js +8 -2
  25. package/dist/distillAdmission.d.ts +13 -0
  26. package/dist/distillAdmission.js +35 -0
  27. package/dist/distillObserver.js +4 -6
  28. package/dist/distillPrimitives.d.ts +11 -12
  29. package/dist/distillPrimitives.js +115 -21
  30. package/dist/doctor.js +120 -11
  31. package/dist/identityHome.d.ts +9 -0
  32. package/dist/identityHome.js +47 -0
  33. package/dist/index.d.ts +70 -40
  34. package/dist/index.js +586 -200
  35. package/dist/learningTrace.d.ts +15 -0
  36. package/dist/learningTrace.js +73 -0
  37. package/dist/lifecycle.d.ts +67 -1
  38. package/dist/lifecycle.js +738 -44
  39. package/dist/localMemoryGraph.d.ts +90 -3
  40. package/dist/localMemoryGraph.js +2031 -231
  41. package/dist/login.d.ts +1 -1
  42. package/dist/login.js +3 -3
  43. package/dist/materialPackage.js +3 -6
  44. package/dist/materialSnapshot.d.ts +9 -1
  45. package/dist/materialSnapshot.js +23 -6
  46. package/dist/memoryGraphOps.d.ts +8 -0
  47. package/dist/memoryGraphOps.js +140 -0
  48. package/dist/migrate/assetFormatMap.d.ts +61 -0
  49. package/dist/migrate/assetFormatMap.js +53 -0
  50. package/dist/migrate/envTranslate.d.ts +26 -0
  51. package/dist/migrate/envTranslate.js +147 -0
  52. package/dist/migrate/fieldMap.d.ts +4 -2
  53. package/dist/migrate/fieldMap.js +9 -5
  54. package/dist/migrate/oauthImport.d.ts +66 -0
  55. package/dist/migrate/oauthImport.js +667 -0
  56. package/dist/migrate/v1Import.d.ts +92 -1
  57. package/dist/migrate/v1Import.js +1481 -141
  58. package/dist/promptRecallHook.d.ts +24 -0
  59. package/dist/promptRecallHook.js +425 -0
  60. package/dist/recallVerifyReport.d.ts +37 -0
  61. package/dist/recallVerifyReport.js +244 -0
  62. package/dist/recipe.d.ts +7 -1
  63. package/dist/recipe.js +426 -56
  64. package/dist/requiredSandboxValidation.d.ts +5 -0
  65. package/dist/requiredSandboxValidation.js +4 -0
  66. package/dist/reuse.d.ts +9 -0
  67. package/dist/reuse.js +159 -58
  68. package/dist/runtimeCapabilities.js +15 -15
  69. package/dist/runtimeSessionSource.d.ts +3 -2
  70. package/dist/runtimeSessionSource.js +63 -11
  71. package/dist/selectionPolicyConfig.d.ts +8 -0
  72. package/dist/selectionPolicyConfig.js +18 -0
  73. package/dist/semanticIdfConfig.d.ts +2 -0
  74. package/dist/semanticIdfConfig.js +4 -0
  75. package/dist/sessionIngest.d.ts +37 -0
  76. package/dist/sessionIngest.js +156 -0
  77. package/dist/setupHooks.js +95 -1
  78. package/dist/skill2gep.d.ts +13 -9
  79. package/dist/skill2gep.js +42 -30
  80. package/dist/skillDistill.d.ts +8 -4
  81. package/dist/skillDistill.js +38 -9
  82. package/dist/solo/mode.js +1 -0
  83. package/dist/sync.d.ts +12 -0
  84. package/dist/sync.js +1246 -151
  85. package/dist/thesis.d.ts +1 -1
  86. package/dist/thesis.js +20 -3
  87. package/dist/trajectoryExport.js +21 -3
  88. package/dist/v1Compat.d.ts +1 -0
  89. package/dist/v1Compat.js +9 -0
  90. package/dist/workflowRuntime.js +24 -18
  91. package/package.json +11 -8
@@ -1,14 +1,88 @@
1
1
  import { assetstore } from '@evomap/evolver-core';
2
2
  import { type V1Kind } from './fieldMap.js';
3
+ declare const IMPORT_V1_PLAN_SCHEMA: "evolver.migration.import-v1-plan.v1";
4
+ declare const IMPORT_V1_SOURCE_ROLES: readonly ["gene-envelope", "gene-jsonl", "capsule-envelope", "capsule-jsonl", "event-jsonl", "mailbox-jsonl", "memory-graph-jsonl", "candidates-jsonl", "failed-capsules-json"];
5
+ type ImportV1SourceRole = (typeof IMPORT_V1_SOURCE_ROLES)[number];
6
+ export interface ImportV1PlanSource {
7
+ role: ImportV1SourceRole;
8
+ path: string;
9
+ bytes: number;
10
+ sha256: string;
11
+ records: number;
12
+ }
13
+ export interface ImportV1PlanReport {
14
+ schema: typeof IMPORT_V1_PLAN_SCHEMA;
15
+ sourceSchemaVersions: Readonly<Record<string, number>>;
16
+ targetAuthoringSchemaVersion: string;
17
+ sources: readonly ImportV1PlanSource[];
18
+ assets: Readonly<Record<V1Kind, {
19
+ candidates: number;
20
+ verified: number;
21
+ unverified: number;
22
+ frozen: number;
23
+ recomputed: number;
24
+ writes: number;
25
+ deduped: number;
26
+ }>>;
27
+ provenance: {
28
+ candidates: number;
29
+ writes: number;
30
+ preserved: number;
31
+ };
32
+ extensions: {
33
+ candidates: number;
34
+ appends: number;
35
+ deduped: number;
36
+ };
37
+ mailbox: {
38
+ found: boolean;
39
+ candidates: number;
40
+ inserts: number;
41
+ updates: number;
42
+ protected: number;
43
+ };
44
+ memoryGraph: {
45
+ found: boolean;
46
+ candidates: number;
47
+ importable: number;
48
+ deduped: number;
49
+ rejected: number;
50
+ deferred: number;
51
+ disposition: 'import' | 'defer' | 'absent';
52
+ };
53
+ validationReports: {
54
+ found: boolean;
55
+ candidates: number;
56
+ disposition: 'preserve_source_no_v2_mapping' | 'absent';
57
+ };
58
+ candidates: {
59
+ found: boolean;
60
+ candidates: number;
61
+ disposition: 'skip_non_wire' | 'absent';
62
+ };
63
+ failedCapsules: {
64
+ found: boolean;
65
+ candidates: number;
66
+ disposition: 'preserve_manual_recovery' | 'absent';
67
+ };
68
+ planDigest: string;
69
+ }
70
+ export interface ImportV1Plan {
71
+ readonly report: ImportV1PlanReport;
72
+ dispose(): void;
73
+ }
3
74
  export interface ImportReport {
4
75
  imported: Record<V1Kind, number>;
5
76
  frozen: number;
6
77
  recomputed: number;
78
+ unverifiedFrozen: number;
7
79
  deduped: number;
8
80
  sidecarExtensions: number;
9
81
  memoryGraphArchived: boolean;
10
82
  memoryGraphImported: number;
11
83
  memoryGraphDeferred: boolean;
84
+ mailboxFound: boolean;
85
+ mailboxImported: number;
12
86
  candidatesSkipped: boolean;
13
87
  }
14
88
  /**
@@ -18,5 +92,22 @@ export interface ImportReport {
18
92
  export interface ImportV1Options {
19
93
  workspace?: string;
20
94
  userId?: string;
95
+ /** Test seam used to deterministically exercise source-path races. */
96
+ sourceSnapshotTestHook?: (stage: 'before-open' | 'after-open' | 'after-snapshot', source: string, snapshotPath?: string) => void;
97
+ /** Test seam used to prove extension metadata is durable before the asset write. */
98
+ sidecarAppendTestHook?: (stage: 'before-append' | 'after-append', path: string) => void;
99
+ /** Test seam used to exercise completion-marker publication failures. */
100
+ memoryGraphMarkerTestHook?: (stage: 'before-publish', temporaryPath: string, markerPath: string) => void;
101
+ /** Test seam used to deterministically exercise output-root rebinding races. */
102
+ outputRootTestHook?: (stage: 'before-secure', path: string) => void;
103
+ /** Test seam used to deterministically exercise owned-plan cleanup failures. */
104
+ disposeTestHook?: (stage: 'before-remove', snapshotDir: string) => void;
21
105
  }
22
- export declare function importV1(v1Dir: string, store: assetstore.LocalJsonlProvider, outDir: string, options?: ImportV1Options): Promise<ImportReport>;
106
+ export declare function planImportV1(v1Dir: string, outDir: string, options?: ImportV1Options): Promise<ImportV1Plan>;
107
+ export declare function applyImportV1Plan(plan: ImportV1Plan, store: assetstore.LocalJsonlProvider | undefined, outDir: string, options?: ImportV1Options): Promise<ImportReport>;
108
+ export declare function importV1(v1Dir: string, store: assetstore.LocalJsonlProvider, outDir: string, options?: ImportV1Options): Promise<ImportReport>;
109
+ export declare function validateMigrationRoots(v1Dir: string, outDir: string): {
110
+ sourceRoot: string;
111
+ outputRoot: string;
112
+ };
113
+ export {};