@lesliechan721/aw 0.1.0-beta.15 → 0.1.0-beta.17

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 (46) hide show
  1. package/dist/src/commands/aw-capabilities.d.ts +1 -1
  2. package/dist/src/commands/aw-capabilities.js +1 -0
  3. package/dist/src/commands/aw-capabilities.js.map +1 -1
  4. package/dist/src/commands/offline-cleanup-evidence.d.ts +8 -0
  5. package/dist/src/commands/offline-cleanup-evidence.js +18 -0
  6. package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
  7. package/dist/src/commands/rebuild-command.d.ts +4 -1
  8. package/dist/src/commands/rebuild-command.js +658 -172
  9. package/dist/src/commands/rebuild-command.js.map +1 -1
  10. package/dist/src/commands/review-inspection.d.ts +169 -0
  11. package/dist/src/commands/review-inspection.js +916 -0
  12. package/dist/src/commands/review-inspection.js.map +1 -0
  13. package/dist/src/commands/skill-eval.d.ts +5 -0
  14. package/dist/src/commands/skill-eval.js +86 -63
  15. package/dist/src/commands/skill-eval.js.map +1 -1
  16. package/dist/src/eval/manifest-v1.js +0 -5
  17. package/dist/src/eval/manifest-v1.js.map +1 -1
  18. package/dist/src/index.js +40 -7
  19. package/dist/src/index.js.map +1 -1
  20. package/dist/src/output/command-receipt.js +11 -6
  21. package/dist/src/output/command-receipt.js.map +1 -1
  22. package/dist/src/portable/commands.d.ts +1 -0
  23. package/dist/src/portable/commands.js +43 -1
  24. package/dist/src/portable/commands.js.map +1 -1
  25. package/dist/src/portable/materializer.d.ts +12 -0
  26. package/dist/src/portable/materializer.js +67 -41
  27. package/dist/src/portable/materializer.js.map +1 -1
  28. package/dist/src/review/eval-source-input.d.ts +43 -0
  29. package/dist/src/review/eval-source-input.js +207 -0
  30. package/dist/src/review/eval-source-input.js.map +1 -0
  31. package/dist/src/review/source-binding.d.ts +170 -0
  32. package/dist/src/review/source-binding.js +622 -0
  33. package/dist/src/review/source-binding.js.map +1 -0
  34. package/dist/src/tui/console-app-v4.js +3 -3
  35. package/dist/src/tui/console-app-v4.js.map +1 -1
  36. package/dist/src/tui/controller-runtime.js +191 -151
  37. package/dist/src/tui/controller-runtime.js.map +1 -1
  38. package/dist/src/tui/controller.d.ts +1 -0
  39. package/dist/src/tui/controller.js +10 -7
  40. package/dist/src/tui/controller.js.map +1 -1
  41. package/dist/src/tui/model.d.ts +1 -1
  42. package/dist/src/tui/model.js +18 -6
  43. package/dist/src/tui/model.js.map +1 -1
  44. package/dist/src/tui/operation-review-planner.js +103 -26
  45. package/dist/src/tui/operation-review-planner.js.map +1 -1
  46. package/package.json +3 -3
@@ -0,0 +1,169 @@
1
+ import { type CatalogManifestV7Entry, type Scope } from '@lesliechan721/aw-plugin-core';
2
+ import { type AwSkillEvalManifestV1Suite } from '../eval/manifest-v1.js';
3
+ import { type CatalogWorkspaceResolvedFrom } from './catalog-workspace-resolution.js';
4
+ import { type AwSourceBindingProfile, type AwSourceBindingEvalInput, type AwSourceBindingSource, type AwSourceBindingSubject, type AwSourceBindingVerifiedOutput } from '../review/source-binding.js';
5
+ export type ReviewInspectionIssueCategory = 'missing' | 'invalid' | 'unsupported' | 'unknown';
6
+ export type ReviewInspectionFinalProfile = 'codex-user' | 'codex-project' | 'claude-user' | 'claude-project' | 'agent-skills-user' | 'agent-skills-project';
7
+ export interface ReviewInspectionIssue {
8
+ category: ReviewInspectionIssueCategory;
9
+ code: string;
10
+ message: string;
11
+ blocking: boolean;
12
+ subjectKey?: string;
13
+ path?: string;
14
+ }
15
+ export interface ReviewInspectionSubject {
16
+ key: string;
17
+ kind: 'catalog-source' | 'catalog-snapshot' | 'aw-plugin-source' | 'aw-plugin' | 'source-skill' | 'portable-source-skill' | 'artifact-source' | 'materialized-skill';
18
+ plugin: string | null;
19
+ skill: string | null;
20
+ path: string;
21
+ profile: ReviewInspectionFinalProfile | null;
22
+ digest: string;
23
+ origin: 'workspace' | 'catalog-snapshot' | 'source-binding';
24
+ targetId?: string;
25
+ materializationProfile?: {
26
+ kind: 'eval' | 'portable';
27
+ id: string;
28
+ scope: Scope;
29
+ inputDigest: string;
30
+ };
31
+ }
32
+ export interface ReviewInspectionRequiredFinal {
33
+ key: string;
34
+ kind: 'materialized-skill';
35
+ plugin: string;
36
+ skill: string;
37
+ path: string | null;
38
+ profile: ReviewInspectionFinalProfile;
39
+ digest: string | null;
40
+ targetId: string | null;
41
+ sourceSubjectKey: string;
42
+ status: 'resolved' | 'missing' | 'invalid' | 'unknown';
43
+ matchedFinalKeys: string[];
44
+ }
45
+ export interface ReviewInspectionRequiredEval {
46
+ key: string;
47
+ plugin: string;
48
+ skill: string;
49
+ finalProfile: ReviewInspectionFinalProfile;
50
+ requiredFinalKey: string;
51
+ evalProfile: {
52
+ id: string;
53
+ scope: Scope;
54
+ inputDigest: string;
55
+ plugins: string[];
56
+ };
57
+ suite: {
58
+ id: string;
59
+ kind: AwSkillEvalManifestV1Suite['kind'];
60
+ provider: AwSkillEvalManifestV1Suite['provider'] | null;
61
+ suiteDefaultsDigest: string;
62
+ };
63
+ cases: {
64
+ sourcePath: string;
65
+ sourceCorpusDigest: string;
66
+ selectedCasesDigest: string;
67
+ selected: Array<{
68
+ id: string;
69
+ split: string;
70
+ minimumRuns: number;
71
+ }>;
72
+ };
73
+ runs: number;
74
+ timeoutMs: number | null;
75
+ minimumPassRate: number;
76
+ processManagement: 'managed-only' | 'allow-unmanaged-confirmed';
77
+ materializedFinalKeys: string[];
78
+ verifiedBindingPaths: string[];
79
+ }
80
+ export interface ReviewInspectionPlugin {
81
+ id: string;
82
+ name: string;
83
+ version: string;
84
+ path: string;
85
+ sourceContainerKey: string;
86
+ finalContainerKey: string | null;
87
+ dependencies: string[];
88
+ supportedPlatforms: Array<'claude' | 'codex'>;
89
+ finalProfiles: ReviewInspectionFinalProfile[];
90
+ imports: Array<{
91
+ purpose: 'build' | 'skill-runtime-file' | 'artifact-runtime';
92
+ provider: string;
93
+ export: string;
94
+ consumer: string;
95
+ }>;
96
+ snapshotEntry: Pick<CatalogManifestV7Entry, 'artifactDigest' | 'manifestDigest' | 'contentDigest'> | null;
97
+ sourceSubjectKeys: string[];
98
+ requiredFinalKeys: string[];
99
+ requiredEvalKeys: string[];
100
+ }
101
+ export interface ReviewInspectionMaterialization {
102
+ path: string;
103
+ state: 'verified' | 'incomplete' | 'invalid' | 'drifted' | 'unsupported';
104
+ plugin: string | null;
105
+ skill: string | null;
106
+ profile: ReviewInspectionFinalProfile | null;
107
+ finalKeys: string[];
108
+ verifiedBinding: {
109
+ source: AwSourceBindingSource;
110
+ subject: AwSourceBindingSubject;
111
+ profile: AwSourceBindingProfile;
112
+ evalInput: AwSourceBindingEvalInput | null;
113
+ finalDigest: string;
114
+ artifacts: AwSourceBindingVerifiedOutput[];
115
+ } | null;
116
+ issues: string[];
117
+ }
118
+ export interface ReviewInspectionReceipt {
119
+ schemaVersion: 1;
120
+ command: 'review:inspect';
121
+ ok: boolean;
122
+ completeness: 'complete' | 'incomplete';
123
+ target: {
124
+ kind: 'catalog' | 'plugin';
125
+ id: string;
126
+ path: string;
127
+ };
128
+ workspace: {
129
+ root: string;
130
+ resolvedFrom: CatalogWorkspaceResolvedFrom;
131
+ identity: string;
132
+ sourceIdentity: string;
133
+ catalogVersion: string;
134
+ };
135
+ snapshot: {
136
+ path: string;
137
+ state: 'absent' | 'current' | 'stale' | 'invalid';
138
+ catalogVersion: string | null;
139
+ snapshotDigest: string | null;
140
+ workspaceIdentity: string | null;
141
+ sourceIdentity: string | null;
142
+ };
143
+ plugins: ReviewInspectionPlugin[];
144
+ subjects: ReviewInspectionSubject[];
145
+ requiredFinals: ReviewInspectionRequiredFinal[];
146
+ finalMappings: Array<{
147
+ requiredFinalKey: string;
148
+ sourceSubjectKey: string;
149
+ finalSubjectKeys: string[];
150
+ status: ReviewInspectionRequiredFinal['status'];
151
+ }>;
152
+ requiredEvals: ReviewInspectionRequiredEval[];
153
+ materializations: ReviewInspectionMaterialization[];
154
+ issues: ReviewInspectionIssue[];
155
+ }
156
+ export declare function inspectReviewTarget(options: {
157
+ cwd: string;
158
+ target: string;
159
+ workspaceRoot?: string;
160
+ materializations?: readonly string[];
161
+ env?: NodeJS.ProcessEnv;
162
+ }): Promise<ReviewInspectionReceipt>;
163
+ export declare function createReviewInspectionFailure(error: unknown, code?: string): {
164
+ schemaVersion: 1;
165
+ command: 'review:inspect';
166
+ ok: false;
167
+ completeness: 'incomplete';
168
+ issues: ReviewInspectionIssue[];
169
+ };