@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.
@@ -0,0 +1,167 @@
1
+ export interface GraphifyMaintenanceDiffOptionsV1 {
2
+ graphifyRoot?: string;
3
+ ocbRoot?: string;
4
+ repoRoot?: string;
5
+ workspaceRoot?: string;
6
+ outputRoot?: string | null;
7
+ runId?: string | null;
8
+ diffId?: string | null;
9
+ proposalId?: string | null;
10
+ rollbackKey?: string | null;
11
+ }
12
+ export interface GraphifyMaintenanceDiffFindingRefV1 {
13
+ sourceKind: string;
14
+ sourceId: string;
15
+ authority: string;
16
+ derivation: string;
17
+ excerpt?: string;
18
+ }
19
+ export interface GraphifyMaintenanceDiffClassBucketV1<T = unknown> {
20
+ items: T[];
21
+ truncated: boolean;
22
+ total: number;
23
+ }
24
+ export interface GraphifyMaintenanceDiffReportV1 {
25
+ contract: string;
26
+ diffId: string;
27
+ proposalId: string;
28
+ rollbackKey: string;
29
+ graphifyRoot: string;
30
+ ocbRoot: string;
31
+ repoRoot: string;
32
+ workspaceRoot: string;
33
+ currentBundleRoots: {
34
+ role: string;
35
+ bundleRoot: string;
36
+ relativePath: string;
37
+ }[];
38
+ ocbBundleRoots: {
39
+ role: string;
40
+ bundleRoot: string;
41
+ relativePath: string;
42
+ }[];
43
+ counts: Record<string, number>;
44
+ findings: {
45
+ missing_from_ocb: GraphifyMaintenanceDiffClassBucketV1<Record<string, unknown>>;
46
+ stale_in_ocb: GraphifyMaintenanceDiffClassBucketV1<Record<string, unknown>>;
47
+ candidate_only_edges_without_source_support: GraphifyMaintenanceDiffClassBucketV1<Record<string, unknown>>;
48
+ new_current_source_hubs: GraphifyMaintenanceDiffClassBucketV1<Record<string, unknown>>;
49
+ provenance_gap_candidates: GraphifyMaintenanceDiffClassBucketV1<Record<string, unknown>>;
50
+ possible_merge_split_review_hints: GraphifyMaintenanceDiffClassBucketV1<Record<string, unknown>>;
51
+ };
52
+ evidenceRefs: GraphifyMaintenanceDiffFindingRefV1[];
53
+ createdAt: string;
54
+ updatedAt: string;
55
+ sourceUniverse: {
56
+ currentSurfaceIds: string[];
57
+ ocbSurfaceIds: string[];
58
+ };
59
+ proposalSuggestion?: GraphifyMaintenanceDiffProposalSuggestionV1;
60
+ verdict?: GraphifyMaintenanceDiffVerdictV1;
61
+ summary?: string;
62
+ bundleHash?: string;
63
+ }
64
+ export interface GraphifyMaintenanceDiffProposalSuggestionV1 {
65
+ contract: string;
66
+ diffId: string;
67
+ proposalId: string;
68
+ rollbackKey: string;
69
+ reviewMode: string;
70
+ status: string;
71
+ summary: string;
72
+ suggestionCount: number;
73
+ suggestions: Array<Record<string, unknown>>;
74
+ counts: Record<string, number>;
75
+ currentBundleRoots: GraphifyMaintenanceDiffReportV1["currentBundleRoots"];
76
+ ocbBundleRoots: GraphifyMaintenanceDiffReportV1["ocbBundleRoots"];
77
+ createdAt: string;
78
+ updatedAt: string;
79
+ bundleHash?: string;
80
+ }
81
+ export interface GraphifyMaintenanceDiffVerdictV1 {
82
+ contract: string;
83
+ diffId: string;
84
+ proposalId: string;
85
+ verdict: string;
86
+ severity: string;
87
+ findingCount: number;
88
+ proposalSuggestionCount: number;
89
+ currentSurfaceCount: number;
90
+ ocbSurfaceCount: number;
91
+ why: string;
92
+ reviewMode: string;
93
+ targetStateOnly: boolean;
94
+ rollbackKey: string;
95
+ createdAt: string;
96
+ updatedAt: string;
97
+ bundleHash?: string;
98
+ }
99
+ export interface GraphifyMaintenanceDiffBundleV1 {
100
+ ok: boolean;
101
+ runId: string;
102
+ diffId: string;
103
+ proposalId: string;
104
+ rollbackKey: string;
105
+ repoRoot: string;
106
+ workspaceRoot: string;
107
+ graphifyRoot: string;
108
+ ocbRoot: string;
109
+ outputRoot: string;
110
+ outputDir: string;
111
+ report: GraphifyMaintenanceDiffReportV1;
112
+ proposalSuggestion: GraphifyMaintenanceDiffProposalSuggestionV1;
113
+ verdict: GraphifyMaintenanceDiffVerdictV1;
114
+ files: Record<string, string>;
115
+ paths: {
116
+ maintenanceDiff: string;
117
+ summary: string;
118
+ proposalSuggestion: string;
119
+ verdict: string;
120
+ };
121
+ digest: {
122
+ bundleHash: string;
123
+ fileCount: number;
124
+ files: Record<string, string>;
125
+ };
126
+ currentRecords: Record<string, unknown>[];
127
+ ocbRecords: Record<string, unknown>[];
128
+ }
129
+ export interface GraphifyMaintenanceDiffExportResultV1 extends GraphifyMaintenanceDiffBundleV1 {
130
+ writtenFiles?: string[];
131
+ fileCount?: number;
132
+ error?: string;
133
+ }
134
+ export declare function buildGraphifyMaintenanceDiffBundle(options?: GraphifyMaintenanceDiffOptionsV1): GraphifyMaintenanceDiffBundleV1;
135
+ export declare function writeGraphifyMaintenanceDiffBundle(outputDir: string, bundle: GraphifyMaintenanceDiffBundleV1): {
136
+ writtenFiles: string[];
137
+ fileCount: number;
138
+ };
139
+ export declare function parseGraphifyMaintenanceDiffCliArgs(argv: readonly string[]): {
140
+ command: "graphify-maintenance-diff";
141
+ graphifyRoot: string;
142
+ ocbRoot: string;
143
+ repoRoot: string;
144
+ workspaceRoot: string;
145
+ outputRoot: string | null;
146
+ runId: string | null;
147
+ json: boolean;
148
+ help: boolean;
149
+ };
150
+ export declare function formatGraphifyMaintenanceDiffSummary(result: GraphifyMaintenanceDiffBundleV1): string;
151
+ export declare function runGraphifyMaintenanceDiff(argvOrOptions?: readonly string[] | GraphifyMaintenanceDiffOptionsV1 | ({
152
+ command?: string;
153
+ json?: boolean;
154
+ help?: boolean;
155
+ graphifyRoot?: string;
156
+ ocbRoot?: string;
157
+ repoRoot?: string;
158
+ workspaceRoot?: string;
159
+ outputRoot?: string | null;
160
+ runId?: string | null;
161
+ } & Record<string, unknown>)): GraphifyMaintenanceDiffExportResultV1 & {
162
+ json: boolean;
163
+ summary: string;
164
+ help?: boolean;
165
+ outputDir?: string | null;
166
+ outputRoot?: string | null;
167
+ };