@lesliechan721/aw 0.1.0-beta.4 → 0.1.0-beta.6
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.
- package/dist/authoring/scripts/lib/plugin-version-check.d.mts +14 -0
- package/dist/authoring/scripts/lib/plugin-version-check.mjs +10 -224
- package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -1
- package/dist/authoring/scripts/remove-plugin.d.mts +2 -0
- package/dist/authoring/scripts/remove-plugin.mjs +366 -0
- package/dist/authoring/scripts/remove-plugin.mjs.map +1 -0
- package/dist/authoring/scripts/validate-plugin.mjs +9 -46
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/scripts/bundle-plugins.d.ts +0 -2
- package/dist/scripts/bundle-plugins.js +4 -2
- package/dist/scripts/bundle-plugins.js.map +1 -1
- package/dist/scripts/plugin-staging.d.ts +1 -16
- package/dist/scripts/plugin-staging.js +8 -115
- package/dist/scripts/plugin-staging.js.map +1 -1
- package/dist/src/authoring/workspace-commands.d.ts +9 -1
- package/dist/src/authoring/workspace-commands.js +24 -16
- package/dist/src/authoring/workspace-commands.js.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +106 -0
- package/dist/src/commands/catalog-publication-inspection.js +444 -0
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -0
- package/dist/src/commands/catalog-publish.d.ts +18 -2
- package/dist/src/commands/catalog-publish.js +261 -316
- package/dist/src/commands/catalog-publish.js.map +1 -1
- package/dist/src/commands/catalog-status.d.ts +60 -0
- package/dist/src/commands/catalog-status.js +251 -0
- package/dist/src/commands/catalog-status.js.map +1 -0
- package/dist/src/commands/plugin-capabilities.d.ts +22 -0
- package/dist/src/commands/plugin-capabilities.js +143 -0
- package/dist/src/commands/plugin-capabilities.js.map +1 -0
- package/dist/src/commands/rebuild-command.d.ts +2 -0
- package/dist/src/commands/rebuild-command.js +37 -6
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +1 -0
- package/dist/src/commands/rebuild-integration.js +55 -57
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/status-v4.d.ts +21 -0
- package/dist/src/commands/status-v4.js +63 -2
- package/dist/src/commands/status-v4.js.map +1 -1
- package/dist/src/index.js +79 -18
- package/dist/src/index.js.map +1 -1
- package/dist/src/tui/components.d.ts +70 -0
- package/dist/src/tui/components.js +149 -6
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/console-app-v4.js +1660 -628
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/controller-runtime.d.ts +5 -1
- package/dist/src/tui/controller-runtime.js +184 -33
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +35 -2
- package/dist/src/tui/controller.js +300 -39
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/diagnostics.d.ts +31 -0
- package/dist/src/tui/diagnostics.js +71 -0
- package/dist/src/tui/diagnostics.js.map +1 -0
- package/dist/src/tui/index.d.ts +5 -3
- package/dist/src/tui/index.js +3 -1
- package/dist/src/tui/index.js.map +1 -1
- package/dist/src/tui/model.d.ts +33 -4
- package/dist/src/tui/model.js +252 -17
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/router.d.ts +15 -9
- package/dist/src/tui/router.js +35 -0
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/theme.d.ts +18 -10
- package/dist/src/tui/theme.js +18 -10
- package/dist/src/tui/theme.js.map +1 -1
- package/dist/src/tui/viewport.d.ts +20 -0
- package/dist/src/tui/viewport.js +29 -0
- package/dist/src/tui/viewport.js.map +1 -0
- package/dist/src/utils/catalog-runtime-projection.d.ts +1 -7
- package/dist/src/utils/catalog-runtime-projection.js +2 -62
- package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
- package/dist/src/utils/catalog-source-cache.d.ts +12 -11
- package/dist/src/utils/catalog-source-cache.js +20 -0
- package/dist/src/utils/catalog-source-cache.js.map +1 -1
- package/dist/src/utils/dynamic-skill-tree.js +1 -1
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/git-catalog-provider.js +1 -1
- package/dist/src/utils/git-catalog-provider.js.map +1 -1
- package/dist/src/utils/manifest.d.ts +0 -1
- package/dist/src/utils/manifest.js +0 -1
- package/dist/src/utils/manifest.js.map +1 -1
- package/dist/src/utils/plugin-config.js +28 -30
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/dist/src/utils/skill-validation.d.ts +1 -1
- package/dist/src/utils/skill-validation.js +1 -1
- package/dist/src/utils/skill-validation.js.map +1 -1
- package/dist/src/utils/state-paths.d.ts +1 -0
- package/dist/src/utils/state-paths.js +5 -0
- package/dist/src/utils/state-paths.js.map +1 -1
- package/package.json +3 -4
- package/dist/src/utils/plugin-authoring-capabilities.d.ts +0 -23
- package/dist/src/utils/plugin-authoring-capabilities.js +0 -37
- package/dist/src/utils/plugin-authoring-capabilities.js.map +0 -1
- package/dist/src/utils/plugin-authoring-capabilities.json +0 -92
- package/dist/src/utils/skill-frontmatter-capabilities.d.ts +0 -201
- package/dist/src/utils/skill-frontmatter-capabilities.js +0 -5
- package/dist/src/utils/skill-frontmatter-capabilities.js.map +0 -1
- package/dist/src/utils/skill-frontmatter-capabilities.json +0 -200
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { CatalogSource, PlatformName, Scope } from '../types.js';
|
|
2
2
|
import type { PortableReview } from '../portable/commands.js';
|
|
3
3
|
import type { CatalogSourceUpdate } from '../utils/catalog-sources.js';
|
|
4
|
-
import type { StatusV4Payload, StatusV4PluginSummary } from '../commands/status-v4.js';
|
|
4
|
+
import type { StatusV4Payload, StatusV4PluginSummary, StatusTargetRevision } from '../commands/status-v4.js';
|
|
5
5
|
import type { ProjectConfigStoreLayer } from '../utils/plugin-config.js';
|
|
6
6
|
import type { DependencyOperationPlan } from '../commands/dependency-operation-plan.js';
|
|
7
7
|
import type { RebuildProgressFeed, RebuildProgressSnapshot } from '../output/rebuild-progress.js';
|
|
8
8
|
import { type ConfigPageViewModel, type ConfigGroupViewModel, type PluginListItemViewModel, type PluginDependencyOverviewViewModel, type PortableSkillSelectionViewModel, type SourceHealthViewModel, type SourceDetailViewModel, type TuiViewModel, type UserIssueCategory, type UserIssueViewModel } from './model.js';
|
|
9
|
-
import { type PortableBlockerCode, type TuiPageContext, type TuiRoute, type TuiRouterSnapshot } from './router.js';
|
|
9
|
+
import { type PluginInstallFilter, type PortableBlockerCode, type TuiPageContext, type TuiRoute, type TuiRouterSnapshot } from './router.js';
|
|
10
10
|
export type PluginWriteOperation = 'install' | 'upgrade' | 'reinstall' | 'uninstall' | 'cleanup';
|
|
11
11
|
export type OperationKind = OperationIntent['kind'];
|
|
12
12
|
export interface IssueOrigin {
|
|
@@ -134,6 +134,21 @@ export interface OperationReviewModel {
|
|
|
134
134
|
primaryLabel: string;
|
|
135
135
|
destructive?: boolean;
|
|
136
136
|
}
|
|
137
|
+
export type ReviewPreparationStageId = 'validate' | 'status' | 'catalog' | 'inventory' | 'dependencyPlan' | 'config' | 'portable' | 'evidence';
|
|
138
|
+
export interface ReviewPreparationStage {
|
|
139
|
+
id: ReviewPreparationStageId;
|
|
140
|
+
label: string;
|
|
141
|
+
state: 'pending' | 'running' | 'completed' | 'failed';
|
|
142
|
+
}
|
|
143
|
+
export interface ReviewPreparationSnapshot {
|
|
144
|
+
id: string;
|
|
145
|
+
intent: OperationIntent;
|
|
146
|
+
state: 'running' | 'failed';
|
|
147
|
+
stages: ReviewPreparationStage[];
|
|
148
|
+
currentLabel: string;
|
|
149
|
+
code?: 'reviewPreparationFailed';
|
|
150
|
+
message?: string;
|
|
151
|
+
}
|
|
137
152
|
export type OperationExecuteResult = {
|
|
138
153
|
state: 'succeeded';
|
|
139
154
|
operationId: string;
|
|
@@ -179,6 +194,7 @@ export type OperationExecuteResult = {
|
|
|
179
194
|
originIssue?: IssueOrigin;
|
|
180
195
|
writeMayHaveCompleted?: boolean;
|
|
181
196
|
verification?: 'issueStillPresent' | 'verificationFailed';
|
|
197
|
+
summary?: OperationResultSummary;
|
|
182
198
|
};
|
|
183
199
|
export interface OperationResultSummary {
|
|
184
200
|
code: 'operationSucceeded' | 'operationPartial' | 'operationFailed';
|
|
@@ -193,6 +209,7 @@ export interface OperationResultSummary {
|
|
|
193
209
|
requestedAgents: string[];
|
|
194
210
|
scope: Scope;
|
|
195
211
|
materializationDigest: string;
|
|
212
|
+
skillsCliVersion: string;
|
|
196
213
|
missing: Array<{
|
|
197
214
|
skill: string;
|
|
198
215
|
agent?: string;
|
|
@@ -208,6 +225,7 @@ export interface OperationResultSummary {
|
|
|
208
225
|
state: 'completed' | 'kept' | 'failed' | 'skipped';
|
|
209
226
|
relation?: 'requested' | 'direct' | 'transitive';
|
|
210
227
|
requiredBy?: string[];
|
|
228
|
+
errorCode?: 'dependencyStillRequired';
|
|
211
229
|
}>;
|
|
212
230
|
}
|
|
213
231
|
export interface PluginOperationProgressLine {
|
|
@@ -221,10 +239,16 @@ export interface PluginOperationProgressLine {
|
|
|
221
239
|
export interface TuiStatusLoadResult {
|
|
222
240
|
payload: StatusV4Payload;
|
|
223
241
|
pluginSummaries: StatusV4PluginSummary[];
|
|
242
|
+
targetRevisions?: StatusTargetRevision[];
|
|
224
243
|
sourceDetails?: SourceDetailViewModel[];
|
|
225
244
|
dependencyOverviews?: PluginDependencyOverviewViewModel[];
|
|
226
245
|
portablePluginIds?: string[];
|
|
227
246
|
}
|
|
247
|
+
export interface InstallTargetOption {
|
|
248
|
+
platform: PlatformName;
|
|
249
|
+
compatible: boolean;
|
|
250
|
+
disabled?: string;
|
|
251
|
+
}
|
|
228
252
|
export interface SourceReferenceSummaryViewModel {
|
|
229
253
|
blocked: boolean;
|
|
230
254
|
inventoryComplete: boolean;
|
|
@@ -249,6 +273,7 @@ export interface TuiControllerDependencies {
|
|
|
249
273
|
inspectSourceRemoval?: (sourceId: string, signal: AbortSignal) => Promise<SourceReferenceSummaryViewModel>;
|
|
250
274
|
captureEvidence: (intent: OperationIntent, signal?: AbortSignal) => Promise<OperationEvidence>;
|
|
251
275
|
validateIntent?: (intent: OperationIntent, signal: AbortSignal) => Promise<void>;
|
|
276
|
+
prepareReviewEvidence?: (intent: OperationIntent, signal: AbortSignal, onStage: (stage: ReviewPreparationStageId) => void | Promise<void>) => Promise<OperationEvidence>;
|
|
252
277
|
executeIntent: (intent: OperationIntent, expectedEvidence: OperationEvidence) => Promise<unknown>;
|
|
253
278
|
getConfigGroups?: (pluginId: string, layer: {
|
|
254
279
|
scope: Scope;
|
|
@@ -284,6 +309,7 @@ export interface TuiControllerSnapshot {
|
|
|
284
309
|
progress: RebuildProgressSnapshot;
|
|
285
310
|
progressTargets: PluginOperationProgressLine[];
|
|
286
311
|
activeReview?: OperationReviewModel;
|
|
312
|
+
reviewPreparation?: ReviewPreparationSnapshot;
|
|
287
313
|
result?: OperationExecuteResult;
|
|
288
314
|
loadError?: {
|
|
289
315
|
code: string;
|
|
@@ -322,8 +348,11 @@ export declare class TuiController {
|
|
|
322
348
|
setPortableAgentMode(mode: 'automatic' | 'explicit', requestedAgents?: string[]): void;
|
|
323
349
|
setPortableScope(scope: Scope): void;
|
|
324
350
|
buildPortableInstallReview(): Promise<OperationReviewModel>;
|
|
351
|
+
startPortableInstallReviewPreparation(): ReviewPreparationSnapshot;
|
|
325
352
|
discardPortableDraft(): void;
|
|
326
353
|
replace(route: TuiRoute, context?: TuiPageContext): void;
|
|
354
|
+
beginConfigFlow(pluginId: string): void;
|
|
355
|
+
configOrigin(pluginId: string): TuiRoute | undefined;
|
|
327
356
|
updatePageContext(context: Partial<TuiPageContext>): void;
|
|
328
357
|
back(): void;
|
|
329
358
|
discardSourceDraft(owner: string, returnRoute: Extract<TuiRoute, {
|
|
@@ -335,11 +364,13 @@ export declare class TuiController {
|
|
|
335
364
|
mode: 'browse' | 'installed';
|
|
336
365
|
sourceId?: string;
|
|
337
366
|
query?: string;
|
|
367
|
+
installFilter?: PluginInstallFilter;
|
|
338
368
|
}): PluginListItemViewModel[];
|
|
339
369
|
getPluginOverview(pluginId: string): PluginListItemViewModel | undefined;
|
|
340
370
|
getPluginDependencyOverview(pluginId: string): PluginDependencyOverviewViewModel | undefined;
|
|
341
371
|
getBlockingDependents(pluginId: string, platform: PlatformName, scope: Scope): PluginDependencyOverviewViewModel['dependents'];
|
|
342
372
|
getPlatformPlacement(pluginId: string, platform: PlatformName): PluginListItemViewModel['installedPlacements'][number] | undefined;
|
|
373
|
+
listInstallTargets(pluginId: string, scope: Scope): InstallTargetOption[];
|
|
343
374
|
getTargetState(pluginId: string, platform: PlatformName, scope: Scope): StatusV4Payload['targets'][number]['state'] | undefined;
|
|
344
375
|
listSources(): TuiViewModel['sourceTabs'];
|
|
345
376
|
getSourceOverview(sourceId: string): {
|
|
@@ -362,6 +393,8 @@ export declare class TuiController {
|
|
|
362
393
|
}): Promise<ConfigResetAvailability>;
|
|
363
394
|
listUserIssues(): UserIssueViewModel[];
|
|
364
395
|
buildOperationReview(intent: OperationIntent, returnRoute?: TuiRoute): Promise<OperationReviewModel>;
|
|
396
|
+
startReviewPreparation(intent: OperationIntent, returnRoute?: TuiRoute): ReviewPreparationSnapshot;
|
|
397
|
+
retryReviewPreparation(): ReviewPreparationSnapshot | undefined;
|
|
365
398
|
executeOperation(reviewToken: string): Promise<OperationExecuteResult>;
|
|
366
399
|
dispose(): void;
|
|
367
400
|
}
|