@lesliechan721/aw 0.1.0-beta.50 → 0.1.0-beta.52

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.
@@ -1,10 +1,5 @@
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 type ReviewInspectionView = 'review' | 'release';
1
+ import { type Scope } from '@lesliechan721/aw-plugin-core';
2
+ export type ReviewInspectionView = 'review';
8
3
  export type ReviewInspectionPlatform = 'codex' | 'claude' | 'agent-skills';
9
4
  export interface ReviewInspectionOptions {
10
5
  cwd: string;
@@ -52,177 +47,14 @@ export interface ReviewInspectionNavigationReceipt {
52
47
  }>;
53
48
  issues: ReviewInspectionNavigationIssue[];
54
49
  }
55
- export type ReviewInspectionReceipt = ReviewInspectionNavigationReceipt | ReviewInspectionReleaseReceipt;
50
+ export type ReviewInspectionReceipt = ReviewInspectionNavigationReceipt;
56
51
  export declare class ReviewInspectionInputError extends Error {
57
52
  readonly code: string;
58
53
  readonly exitCode: 2;
59
54
  constructor(code: string, message: string);
60
55
  }
61
- export interface ReviewInspectionIssue {
62
- category: ReviewInspectionIssueCategory;
63
- code: string;
64
- message: string;
65
- blocking: boolean;
66
- subjectKey?: string;
67
- path?: string;
68
- }
69
- export interface ReviewInspectionSubject {
70
- key: string;
71
- kind: 'catalog-source' | 'catalog-snapshot' | 'aw-plugin-source' | 'aw-plugin' | 'source-skill' | 'portable-source-skill' | 'artifact-source' | 'materialized-skill';
72
- plugin: string | null;
73
- skill: string | null;
74
- path: string;
75
- profile: ReviewInspectionFinalProfile | null;
76
- digest: string;
77
- origin: 'workspace' | 'catalog-snapshot' | 'source-binding';
78
- targetId?: string;
79
- materializationProfile?: {
80
- kind: 'eval' | 'portable' | 'review';
81
- id: string;
82
- scope: Scope;
83
- inputDigest: string;
84
- };
85
- }
86
- export interface ReviewInspectionRequiredFinal {
87
- key: string;
88
- kind: 'materialized-skill';
89
- plugin: string;
90
- skill: string;
91
- path: string | null;
92
- profile: ReviewInspectionFinalProfile;
93
- digest: string | null;
94
- targetId: string | null;
95
- sourceSubjectKey: string;
96
- status: 'resolved' | 'missing' | 'invalid' | 'unknown';
97
- matchedFinalKeys: string[];
98
- }
99
- export interface ReviewInspectionRequiredEval {
100
- key: string;
101
- plugin: string;
102
- skill: string;
103
- finalProfile: ReviewInspectionFinalProfile;
104
- requiredFinalKey: string;
105
- evalProfile: {
106
- id: string;
107
- scope: Scope;
108
- inputDigest: string;
109
- plugins: string[];
110
- };
111
- suite: {
112
- id: string;
113
- kind: AwSkillEvalManifestV1Suite['kind'];
114
- provider: AwSkillEvalManifestV1Suite['provider'] | null;
115
- suiteDefaultsDigest: string;
116
- };
117
- cases: {
118
- sourcePath: string;
119
- sourceCorpusDigest: string;
120
- selectedCasesDigest: string;
121
- selected: Array<{
122
- id: string;
123
- split: string;
124
- minimumRuns: number;
125
- }>;
126
- };
127
- runs: number;
128
- timeoutMs: number | null;
129
- minimumPassRate: number;
130
- processManagement: 'managed-only' | 'allow-unmanaged-confirmed';
131
- materializedFinalKeys: string[];
132
- verifiedBindingPaths: string[];
133
- }
134
- export interface ReviewInspectionPlugin {
135
- id: string;
136
- name: string;
137
- version: string;
138
- path: string;
139
- sourceContainerKey: string;
140
- finalContainerKey: string | null;
141
- dependencies: string[];
142
- supportedPlatforms: Array<'claude' | 'codex'>;
143
- finalProfiles: ReviewInspectionFinalProfile[];
144
- imports: Array<{
145
- purpose: 'build' | 'skill-runtime-file' | 'artifact-runtime';
146
- provider: string;
147
- export: string;
148
- consumer: string;
149
- }>;
150
- snapshotEntry: Pick<CatalogManifestV7Entry, 'artifactDigest' | 'manifestDigest' | 'contentDigest'> | null;
151
- sourceSubjectKeys: string[];
152
- requiredFinalKeys: string[];
153
- requiredEvalKeys: string[];
154
- }
155
- export interface ReviewInspectionMaterialization {
156
- path: string;
157
- state: 'verified' | 'incomplete' | 'invalid' | 'drifted' | 'unsupported';
158
- plugin: string | null;
159
- skill: string | null;
160
- profile: ReviewInspectionFinalProfile | null;
161
- finalKeys: string[];
162
- verifiedBinding: {
163
- source: AwSourceBindingSource;
164
- subject: AwSourceBindingSubject;
165
- profile: AwSourceBindingProfile;
166
- evalInput: AwSourceBindingEvalInput | null;
167
- finalDigest: string;
168
- artifacts: AwSourceBindingVerifiedOutput[];
169
- } | null;
170
- issues: string[];
171
- }
172
- export interface ReviewInspectionReleaseReceipt {
173
- schemaVersion: 2;
174
- command: 'review:inspect';
175
- view: 'release';
176
- ok: boolean;
177
- completeness: 'complete' | 'incomplete';
178
- target: {
179
- kind: 'catalog' | 'plugin';
180
- id: string;
181
- path: string;
182
- };
183
- workspace: {
184
- root: string;
185
- resolvedFrom: CatalogWorkspaceResolvedFrom;
186
- identity: string;
187
- sourceIdentity: string;
188
- catalogVersion: string;
189
- };
190
- snapshot: {
191
- path: string;
192
- state: 'absent' | 'current' | 'stale' | 'invalid';
193
- catalogVersion: string | null;
194
- snapshotDigest: string | null;
195
- workspaceIdentity: string | null;
196
- sourceIdentity: string | null;
197
- };
198
- plugins: ReviewInspectionPlugin[];
199
- subjects: ReviewInspectionSubject[];
200
- requiredFinals: ReviewInspectionRequiredFinal[];
201
- finalMappings: Array<{
202
- requiredFinalKey: string;
203
- sourceSubjectKey: string;
204
- finalSubjectKeys: string[];
205
- status: ReviewInspectionRequiredFinal['status'];
206
- }>;
207
- requiredEvals: ReviewInspectionRequiredEval[];
208
- materializations: ReviewInspectionMaterialization[];
209
- issues: ReviewInspectionIssue[];
210
- }
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
56
  export declare function inspectReviewTarget(options: ReviewInspectionOptions): Promise<ReviewInspectionReceipt>;
218
- export type ReviewInspectionFailureReceipt = Omit<ReviewInspectionNavigationReceipt, 'snapshot'> | {
219
- schemaVersion: 2;
220
- command: 'review:inspect';
221
- view: 'release';
222
- ok: false;
223
- completeness: 'incomplete';
224
- issues: ReviewInspectionIssue[];
225
- };
57
+ export type ReviewInspectionFailureReceipt = Omit<ReviewInspectionNavigationReceipt, 'snapshot'>;
226
58
  export declare function getReviewInspectionErrorCode(error: unknown, fallback?: string): string;
227
59
  export declare function getReviewInspectionExitCode(error: unknown): 1 | 2 | 3;
228
- export declare function createReviewInspectionFailure(error: unknown, view?: ReviewInspectionView, fallbackCode?: string): ReviewInspectionFailureReceipt;
60
+ export declare function createReviewInspectionFailure(error: unknown, fallbackCode?: string): ReviewInspectionFailureReceipt;