@openclawbrain/cli 0.4.35 → 0.4.36

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.
@@ -26,11 +26,138 @@ export interface ImportResult {
26
26
  warning?: string;
27
27
  error?: string;
28
28
  }
29
+ export interface GraphifySourceBundleExportOptionsV1 {
30
+ openclawHome?: string;
31
+ activationRoot?: string;
32
+ outputDir: string;
33
+ homeDir?: string;
34
+ profileRoots?: readonly string[];
35
+ cursor?: unknown;
36
+ observedAt?: string;
37
+ createdAt?: string;
38
+ }
39
+ export interface GraphifySourceBundleExportResultV1 {
40
+ ok: boolean;
41
+ bundleDir: string | null;
42
+ bundleId?: string;
43
+ corpusId?: string;
44
+ corpusDigest?: string;
45
+ outputPaths?: {
46
+ corpusManifest: string;
47
+ normalizedEventExport: string;
48
+ runtimeStatus: string;
49
+ workspaceMetadata: string;
50
+ proofDir: string;
51
+ proofFiles: Record<string, string>;
52
+ };
53
+ corpusManifest?: unknown;
54
+ normalizedEventExport?: unknown;
55
+ runtimeStatus?: unknown;
56
+ workspaceMetadata?: unknown;
57
+ sourceSummaries?: unknown[];
58
+ error?: string;
59
+ }
60
+ export interface GraphifyExportOptionsV1 {
61
+ activationRoot: string;
62
+ outputRoot?: string | null;
63
+ runId?: string | null;
64
+ repoRoot?: string | null;
65
+ workspaceRoot?: string | null;
66
+ sessionKey?: string | null;
67
+ sessionTimestamp?: string | null;
68
+ sessionSourcePath?: string | null;
69
+ proofSummarySourcePath?: string | null;
70
+ docsRoot?: string | null;
71
+ codeRoot?: string | null;
72
+ generatedAt?: string | null;
73
+ }
74
+ export interface GraphifyExportResultV1 {
75
+ ok: boolean;
76
+ runId: string;
77
+ bundleRoot: string;
78
+ sourceBundleHash: string | null;
79
+ canonicalArchivePath: string;
80
+ canonicalArchiveSha256: string | null;
81
+ manifestPath: string | null;
82
+ sessionProjectionPath: string | null;
83
+ workspaceMemoryPath: string | null;
84
+ workspaceTasksPath: string | null;
85
+ proofSummaryPath: string | null;
86
+ docsMirrorRoot: string | null;
87
+ codeMirrorRoot: string | null;
88
+ warnings?: string[];
89
+ error?: string;
90
+ }
91
+ export interface GraphifyCompiledArtifactsExportOptionsV1 {
92
+ bundleStartedAt?: string | Date;
93
+ bundleId?: string | null;
94
+ outputDir?: string | null;
95
+ proposalId?: string | null;
96
+ packId?: string | null;
97
+ graphifyRunId?: string | null;
98
+ graphifyVersion?: string | null;
99
+ graphifyCommand?: string | null;
100
+ sourceBundleId?: string | null;
101
+ sourceBundleHash?: string | null;
102
+ graphHash?: string | null;
103
+ configHash?: string | null;
104
+ labelsHash?: string | null;
105
+ sourceDocs?: string[];
106
+ sourceFixtures?: string[];
107
+ }
108
+ export interface GraphifyCompiledArtifactsExportResultV1 {
109
+ ok: boolean;
110
+ bundleId?: string;
111
+ packId?: string;
112
+ proposalId?: string;
113
+ outputDir: string;
114
+ manifestPath?: string;
115
+ compilerProposalPath?: string;
116
+ surfaceMapPath?: string;
117
+ proposalReportPath?: string;
118
+ verdictPath?: string;
119
+ artifactCount?: number;
120
+ validation?: {
121
+ ok: boolean;
122
+ errors: string[];
123
+ bundleHash: string;
124
+ fileCount: number;
125
+ artifactCount: number;
126
+ };
127
+ digest?: {
128
+ bundleId: string;
129
+ packId: string;
130
+ proposalId: string;
131
+ files: Record<string, string>;
132
+ fileCount: number;
133
+ bundleHash: string;
134
+ };
135
+ writtenFiles?: string[];
136
+ fileCount?: number;
137
+ error?: string;
138
+ }
139
+ import type { GraphifyMaintenanceDiffBundleV1, GraphifyMaintenanceDiffOptionsV1, GraphifyMaintenanceDiffExportResultV1 } from "./graphify-maintenance-diff.js";
29
140
  /**
30
141
  * Export (backup) the activation root to a tar.gz archive.
31
142
  */
32
143
  export declare function exportBrain(options: ExportOptions): ExportResult;
144
+ /**
145
+ * Export a canonical Graphify source bundle from the current OpenClaw corpus.
146
+ */
147
+ export declare function exportGraphifySourceBundle(options: GraphifySourceBundleExportOptionsV1): GraphifySourceBundleExportResultV1;
148
+ /**
149
+ * Project the canonical machine export into Graphify-friendly markdown and filesystem surfaces.
150
+ */
151
+ export declare function exportGraphifyProjection(options: GraphifyExportOptionsV1): GraphifyExportResultV1;
33
152
  /**
34
153
  * Import (restore) a tar.gz archive into the activation root.
35
154
  */
36
155
  export declare function importBrain(options: ImportOptions): ImportResult;
156
+ /**
157
+ * Build and write a Graphify-derived compiled artifact pack.
158
+ */
159
+ export declare function exportGraphifyCompiledArtifactsPack(options: GraphifyCompiledArtifactsExportOptionsV1): GraphifyCompiledArtifactsExportResultV1;
160
+ /**
161
+ * Build and write a Graphify maintenance diff bundle.
162
+ */
163
+ export declare function exportGraphifyMaintenanceDiff(options: GraphifyMaintenanceDiffOptionsV1): GraphifyMaintenanceDiffExportResultV1;