@lesliechan721/aw 0.1.0-beta.22 → 0.1.0-beta.24

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 (45) hide show
  1. package/dist/scripts/aw-skill-eval-materializer.js +12 -63
  2. package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
  3. package/dist/src/commands/aw-capabilities.d.ts +1 -1
  4. package/dist/src/commands/aw-capabilities.js +2 -1
  5. package/dist/src/commands/aw-capabilities.js.map +1 -1
  6. package/dist/src/commands/rebuild-integration.d.ts +25 -0
  7. package/dist/src/commands/rebuild-integration.js +154 -6
  8. package/dist/src/commands/rebuild-integration.js.map +1 -1
  9. package/dist/src/commands/review-inspection.d.ts +71 -12
  10. package/dist/src/commands/review-inspection.js +488 -63
  11. package/dist/src/commands/review-inspection.js.map +1 -1
  12. package/dist/src/commands/review-preparation.d.ts +49 -0
  13. package/dist/src/commands/review-preparation.js +427 -0
  14. package/dist/src/commands/review-preparation.js.map +1 -0
  15. package/dist/src/generators/local-plugin.d.ts +2 -1
  16. package/dist/src/generators/local-plugin.js +40 -34
  17. package/dist/src/generators/local-plugin.js.map +1 -1
  18. package/dist/src/index.js +146 -20
  19. package/dist/src/index.js.map +1 -1
  20. package/dist/src/portable/materializer.d.ts +1 -0
  21. package/dist/src/portable/materializer.js +51 -11
  22. package/dist/src/portable/materializer.js.map +1 -1
  23. package/dist/src/review/review-profile.d.ts +17 -0
  24. package/dist/src/review/review-profile.js +177 -0
  25. package/dist/src/review/review-profile.js.map +1 -0
  26. package/dist/src/review/review-selection.d.ts +30 -0
  27. package/dist/src/review/review-selection.js +527 -0
  28. package/dist/src/review/review-selection.js.map +1 -0
  29. package/dist/src/review/review-types.d.ts +68 -0
  30. package/dist/src/review/review-types.js +16 -0
  31. package/dist/src/review/review-types.js.map +1 -0
  32. package/dist/src/review/skill-materialization.d.ts +13 -0
  33. package/dist/src/review/skill-materialization.js +72 -0
  34. package/dist/src/review/skill-materialization.js.map +1 -0
  35. package/dist/src/review/source-binding.d.ts +21 -9
  36. package/dist/src/review/source-binding.js +58 -18
  37. package/dist/src/review/source-binding.js.map +1 -1
  38. package/dist/src/tui/console-app-v4.js +2 -1
  39. package/dist/src/tui/console-app-v4.js.map +1 -1
  40. package/dist/src/tui/controller-runtime.js +5 -2
  41. package/dist/src/tui/controller-runtime.js.map +1 -1
  42. package/dist/src/tui/model.d.ts +1 -0
  43. package/dist/src/tui/model.js +32 -3
  44. package/dist/src/tui/model.js.map +1 -1
  45. package/package.json +3 -3
@@ -4,6 +4,60 @@ import { type CatalogWorkspaceResolvedFrom } from './catalog-workspace-resolutio
4
4
  import { type AwSourceBindingProfile, type AwSourceBindingEvalInput, type AwSourceBindingSource, type AwSourceBindingSubject, type AwSourceBindingVerifiedOutput } from '../review/source-binding.js';
5
5
  export type ReviewInspectionIssueCategory = 'missing' | 'invalid' | 'unsupported' | 'unknown';
6
6
  export type ReviewInspectionFinalProfile = 'codex-user' | 'codex-project' | 'claude-user' | 'claude-project' | 'agent-skills-user' | 'agent-skills-project';
7
+ export type ReviewInspectionView = 'review' | 'release';
8
+ export type ReviewInspectionPlatform = 'codex' | 'claude' | 'agent-skills';
9
+ export interface ReviewInspectionOptions {
10
+ cwd: string;
11
+ target: string;
12
+ workspaceRoot?: string;
13
+ skills?: readonly string[];
14
+ platform?: ReviewInspectionPlatform;
15
+ scope?: Scope;
16
+ configFile?: string;
17
+ materializations?: readonly string[];
18
+ view?: ReviewInspectionView;
19
+ env?: NodeJS.ProcessEnv;
20
+ }
21
+ export interface ReviewInspectionNavigationIssue {
22
+ code: string;
23
+ path: string | null;
24
+ message: string;
25
+ }
26
+ export interface ReviewInspectionNavigationReceipt {
27
+ schemaVersion: 2;
28
+ command: 'review:inspect';
29
+ view: 'review';
30
+ ok: boolean;
31
+ target: {
32
+ kind: 'skill' | 'plugin' | 'catalog';
33
+ path: string;
34
+ } | null;
35
+ sources: string[];
36
+ snapshot?: {
37
+ path: string;
38
+ state: 'absent' | 'current' | 'stale' | 'invalid';
39
+ };
40
+ skills: Array<{
41
+ skill: string;
42
+ sourcePath: string;
43
+ profile: {
44
+ platform: ReviewInspectionPlatform;
45
+ scope: Scope;
46
+ inputDigest: string | null;
47
+ };
48
+ finalPath: string | null;
49
+ digest: string | null;
50
+ state: 'ready' | 'missing' | 'stale' | 'invalid' | 'unsupported';
51
+ evidencePath: string | null;
52
+ }>;
53
+ issues: ReviewInspectionNavigationIssue[];
54
+ }
55
+ export type ReviewInspectionReceipt = ReviewInspectionNavigationReceipt | ReviewInspectionReleaseReceipt;
56
+ export declare class ReviewInspectionInputError extends Error {
57
+ readonly code: string;
58
+ readonly exitCode: 2;
59
+ constructor(code: string, message: string);
60
+ }
7
61
  export interface ReviewInspectionIssue {
8
62
  category: ReviewInspectionIssueCategory;
9
63
  code: string;
@@ -23,7 +77,7 @@ export interface ReviewInspectionSubject {
23
77
  origin: 'workspace' | 'catalog-snapshot' | 'source-binding';
24
78
  targetId?: string;
25
79
  materializationProfile?: {
26
- kind: 'eval' | 'portable';
80
+ kind: 'eval' | 'portable' | 'review';
27
81
  id: string;
28
82
  scope: Scope;
29
83
  inputDigest: string;
@@ -115,9 +169,10 @@ export interface ReviewInspectionMaterialization {
115
169
  } | null;
116
170
  issues: string[];
117
171
  }
118
- export interface ReviewInspectionReceipt {
119
- schemaVersion: 1;
172
+ export interface ReviewInspectionReleaseReceipt {
173
+ schemaVersion: 2;
120
174
  command: 'review:inspect';
175
+ view: 'release';
121
176
  ok: boolean;
122
177
  completeness: 'complete' | 'incomplete';
123
178
  target: {
@@ -153,17 +208,21 @@ export interface ReviewInspectionReceipt {
153
208
  materializations: ReviewInspectionMaterialization[];
154
209
  issues: ReviewInspectionIssue[];
155
210
  }
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;
211
+ export declare function inspectReviewTarget(options: ReviewInspectionOptions & {
212
+ view: 'release';
213
+ }): Promise<ReviewInspectionReleaseReceipt>;
214
+ export declare function inspectReviewTarget(options: ReviewInspectionOptions & {
215
+ view?: 'review';
216
+ }): Promise<ReviewInspectionNavigationReceipt>;
217
+ export declare function inspectReviewTarget(options: ReviewInspectionOptions): Promise<ReviewInspectionReceipt>;
218
+ export type ReviewInspectionFailureReceipt = Omit<ReviewInspectionNavigationReceipt, 'snapshot'> | {
219
+ schemaVersion: 2;
165
220
  command: 'review:inspect';
221
+ view: 'release';
166
222
  ok: false;
167
223
  completeness: 'incomplete';
168
224
  issues: ReviewInspectionIssue[];
169
225
  };
226
+ export declare function getReviewInspectionErrorCode(error: unknown, fallback?: string): string;
227
+ export declare function getReviewInspectionExitCode(error: unknown): 1 | 2 | 3;
228
+ export declare function createReviewInspectionFailure(error: unknown, view?: ReviewInspectionView, fallbackCode?: string): ReviewInspectionFailureReceipt;