@lesliechan721/aw 0.1.0-beta.19 → 0.1.0-beta.21

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 (43) hide show
  1. package/dist/src/commands/rebuild-command.js +0 -5
  2. package/dist/src/commands/rebuild-command.js.map +1 -1
  3. package/dist/src/commands/rebuild-integration.d.ts +0 -1
  4. package/dist/src/commands/rebuild-integration.js +3 -152
  5. package/dist/src/commands/rebuild-integration.js.map +1 -1
  6. package/dist/src/commands/status-v6.js +44 -25
  7. package/dist/src/commands/status-v6.js.map +1 -1
  8. package/dist/src/tui/components.d.ts +1 -0
  9. package/dist/src/tui/components.js +3 -1
  10. package/dist/src/tui/components.js.map +1 -1
  11. package/dist/src/tui/console-app-v4.d.ts +1 -1
  12. package/dist/src/tui/console-app-v4.js +765 -1129
  13. package/dist/src/tui/console-app-v4.js.map +1 -1
  14. package/dist/src/tui/controller-runtime.js +94 -51
  15. package/dist/src/tui/controller-runtime.js.map +1 -1
  16. package/dist/src/tui/controller.d.ts +4 -30
  17. package/dist/src/tui/controller.js +11 -219
  18. package/dist/src/tui/controller.js.map +1 -1
  19. package/dist/src/tui/dependency-graph.d.ts +3 -3
  20. package/dist/src/tui/dependency-graph.js +15 -14
  21. package/dist/src/tui/dependency-graph.js.map +1 -1
  22. package/dist/src/tui/glossary.d.ts +1 -1
  23. package/dist/src/tui/glossary.js +1 -1
  24. package/dist/src/tui/glossary.js.map +1 -1
  25. package/dist/src/tui/model.d.ts +2 -0
  26. package/dist/src/tui/model.js +63 -30
  27. package/dist/src/tui/model.js.map +1 -1
  28. package/dist/src/tui/operation-review-planner.js +8 -195
  29. package/dist/src/tui/operation-review-planner.js.map +1 -1
  30. package/dist/src/tui/plugin-write-task.js +4 -0
  31. package/dist/src/tui/plugin-write-task.js.map +1 -1
  32. package/dist/src/tui/router.d.ts +4 -16
  33. package/dist/src/tui/router.js.map +1 -1
  34. package/dist/src/tui/screen-registry.d.ts +10 -57
  35. package/dist/src/tui/screen-registry.js +1 -15
  36. package/dist/src/tui/screen-registry.js.map +1 -1
  37. package/package.json +3 -3
  38. package/dist/src/tui/catalog-management-screens.d.ts +0 -45
  39. package/dist/src/tui/catalog-management-screens.js +0 -25
  40. package/dist/src/tui/catalog-management-screens.js.map +0 -1
  41. package/dist/src/tui/catalog-management.d.ts +0 -240
  42. package/dist/src/tui/catalog-management.js +0 -856
  43. package/dist/src/tui/catalog-management.js.map +0 -1
@@ -1,240 +0,0 @@
1
- import { type CatalogVersionBump } from '@lesliechan721/aw-plugin-core';
2
- import { type CatalogStoreEntryCategory, type CatalogStorePruneItemKey } from '../commands/catalog-store.js';
3
- import { type CatalogWorkspaceResolvedFrom } from '../commands/catalog-workspace-resolution.js';
4
- import type { CliExecutionContext } from '../commands/runtime.js';
5
- export interface CatalogManagementIssue {
6
- code: string;
7
- message: string;
8
- blocking: boolean;
9
- }
10
- export interface CatalogWorkspaceManagementViewModel {
11
- state: 'missing' | 'invalid' | 'ready';
12
- selected: boolean;
13
- label: string;
14
- resolvedFrom: CatalogWorkspaceResolvedFrom | null;
15
- identity: string | null;
16
- catalog: {
17
- version: string | null;
18
- channel: 'latest' | 'beta' | null;
19
- ownerName: string | null;
20
- ownerUrl: string | null;
21
- displayName: string | null;
22
- };
23
- plugins: Array<{
24
- name: string;
25
- version: string;
26
- dependencies: string[];
27
- }>;
28
- dependencyGraphValid: boolean;
29
- git: {
30
- checked: boolean;
31
- clean: boolean | null;
32
- hasHead: boolean;
33
- };
34
- snapshot: {
35
- state: 'absent' | 'current' | 'stale' | 'invalid';
36
- valid: boolean;
37
- catalogVersion: string | null;
38
- hasDigest: boolean;
39
- sourceIdentityMatches: boolean | null;
40
- };
41
- issues: CatalogManagementIssue[];
42
- }
43
- export interface CatalogValidationViewModel {
44
- state: 'absent' | 'invalid' | 'valid';
45
- catalogVersion: string | null;
46
- channel: 'latest' | 'beta' | null;
47
- hasSnapshotDigest: boolean;
48
- issues: CatalogManagementIssue[];
49
- }
50
- export interface CatalogDevManagementViewModel {
51
- state: 'workspaceUnavailable' | 'inactive' | 'needsAttention' | 'ready';
52
- ready: boolean;
53
- workspaceIdentity: string | null;
54
- snapshot: {
55
- state: 'absent' | 'current' | 'stale' | 'invalid';
56
- valid: boolean;
57
- hasDigest: boolean;
58
- };
59
- source: {
60
- exists: boolean;
61
- id: string | null;
62
- pathMatches: boolean | null;
63
- primary: boolean | null;
64
- };
65
- active: {
66
- exists: boolean;
67
- ready: boolean;
68
- digestMatchesSnapshot: boolean;
69
- compatibility: 'supported' | 'unsupported' | null;
70
- };
71
- issues: CatalogManagementIssue[];
72
- }
73
- export interface CatalogStoreManagementEntryViewModel {
74
- item: CatalogStorePruneItemKey;
75
- itemKey: string;
76
- category: CatalogStoreEntryCategory;
77
- status: 'active' | 'reclaimable' | 'retained' | 'error';
78
- generationReference: 'active' | 'orphan' | 'none';
79
- ageMs: number | null;
80
- reclaimableBytes: number | null;
81
- reason: string;
82
- }
83
- export interface CatalogStoreManagementViewModel {
84
- state: 'ready' | 'needsAttention';
85
- entries: CatalogStoreManagementEntryViewModel[];
86
- totals: {
87
- entries: number;
88
- reclaimableEntries: number;
89
- reclaimableBytes: number | null;
90
- retainedEntries: number;
91
- };
92
- issues: CatalogManagementIssue[];
93
- }
94
- export interface CatalogPublicationRecordViewModel {
95
- catalogVersion: string;
96
- state: 'prepared' | 'uncertain' | 'published' | 'damaged';
97
- channel: 'latest' | 'beta' | null;
98
- pluginCount: number | null;
99
- planDigest: string | null;
100
- remote: string | null;
101
- branch: string | null;
102
- canApply: boolean;
103
- requiresRemoteInput: boolean;
104
- mustIncreaseVersion: boolean;
105
- localRepositoryState: 'present' | 'absent' | 'notRequired' | 'unexpected';
106
- issue?: CatalogManagementIssue;
107
- }
108
- export interface CatalogPublicationManagementViewModel {
109
- state: 'none' | 'pending' | 'published' | 'needsAttention';
110
- records: CatalogPublicationRecordViewModel[];
111
- issues: CatalogManagementIssue[];
112
- }
113
- export type CatalogManagementIntent = {
114
- kind: 'catalogManagement';
115
- action: 'workspaceInit';
116
- ownerName?: string;
117
- ownerUrl?: string;
118
- displayName?: string;
119
- catalogVersion?: string;
120
- force?: boolean;
121
- } | {
122
- kind: 'catalogManagement';
123
- action: 'workspaceVersion';
124
- version?: string;
125
- bump?: CatalogVersionBump;
126
- } | {
127
- kind: 'catalogManagement';
128
- action: 'workspaceBuild';
129
- force?: boolean;
130
- } | {
131
- kind: 'catalogManagement';
132
- action: 'devActivate';
133
- sourceId?: string;
134
- primary?: boolean;
135
- forceBuild?: boolean;
136
- } | {
137
- kind: 'catalogManagement';
138
- action: 'devDeactivate';
139
- replacementPrimary?: string;
140
- } | {
141
- kind: 'catalogManagement';
142
- action: 'storePrune';
143
- items: CatalogStorePruneItemKey[];
144
- } | {
145
- kind: 'catalogManagement';
146
- action: 'publishPlan';
147
- remote?: string;
148
- remoteUrl?: string;
149
- branch?: string;
150
- } | {
151
- kind: 'catalogManagement';
152
- action: 'publishApply';
153
- expectedPlanDigest: string;
154
- remote?: string;
155
- remoteUrl?: string;
156
- branch?: string;
157
- };
158
- export interface CatalogManagementReviewEvidence {
159
- action: CatalogManagementIntent['action'];
160
- workspaceBinding: string | null;
161
- evidenceDigest: string;
162
- workspace?: CatalogWorkspaceManagementViewModel;
163
- workspaceStateDigest?: string;
164
- dev?: CatalogDevManagementViewModel;
165
- devActivation?: {
166
- evidenceDigest: string;
167
- sourceId: string;
168
- catalogVersion: string;
169
- inventoryComplete: boolean;
170
- primaryChange: boolean;
171
- references: {
172
- installation: number;
173
- config: number;
174
- lifecycle: number;
175
- marketplace: number;
176
- };
177
- changes: {
178
- added: number;
179
- removed: number;
180
- changed: number;
181
- newlyIncompatible: number;
182
- dependencyChanged: number;
183
- platformSupportChanged: number;
184
- };
185
- };
186
- devImpact?: {
187
- evidenceDigest: string;
188
- inventoryComplete: boolean;
189
- primaryChange: boolean;
190
- references: {
191
- installation: number;
192
- config: number;
193
- lifecycle: number;
194
- marketplace: number;
195
- };
196
- };
197
- store?: CatalogStoreManagementViewModel;
198
- authorizedStoreItems?: CatalogStorePruneItemKey[];
199
- publication?: CatalogPublicationRecordViewModel;
200
- target?: {
201
- remote: string | null;
202
- branch: string;
203
- };
204
- }
205
- export interface CatalogManagementExecutionResult {
206
- action: CatalogManagementIntent['action'];
207
- state: 'succeeded' | 'partial';
208
- message: string;
209
- messages: string[];
210
- catalogVersion?: string;
211
- planDigest?: string;
212
- store?: {
213
- deletedEntries: number;
214
- deletedBytes: number;
215
- retainedEntries: number;
216
- };
217
- publication?: {
218
- catalogVersion: string;
219
- planDigest: string;
220
- state: 'prepared' | 'uncertain' | 'published';
221
- remote: string;
222
- branch: string;
223
- };
224
- }
225
- export type CatalogManagementProgressStage = 'validate' | 'build' | 'source' | 'sync' | 'prune' | 'prepare' | 'remote' | 'verify';
226
- export interface CatalogManagementService {
227
- selectWorkspace(workspaceRoot?: string): Promise<CatalogWorkspaceManagementViewModel>;
228
- getWorkspace(): Promise<CatalogWorkspaceManagementViewModel>;
229
- validateWorkspace(): Promise<CatalogValidationViewModel>;
230
- getDev(): Promise<CatalogDevManagementViewModel>;
231
- getStore(): Promise<CatalogStoreManagementViewModel>;
232
- getPublication(): Promise<CatalogPublicationManagementViewModel>;
233
- captureEvidence(intent: CatalogManagementIntent): Promise<CatalogManagementReviewEvidence>;
234
- execute(intent: CatalogManagementIntent, expected: CatalogManagementReviewEvidence, onProgress?: (stage: CatalogManagementProgressStage) => void | Promise<void>): Promise<CatalogManagementExecutionResult>;
235
- }
236
- export declare class CatalogManagementError extends Error {
237
- readonly code: string;
238
- constructor(code: string, message: string);
239
- }
240
- export declare function createCatalogManagementService(context: CliExecutionContext): CatalogManagementService;