@lesliechan721/aw 0.1.0-beta.76 → 0.1.0-beta.79
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/scripts/test-plugin-scripts.js +31 -3
- package/dist/scripts/test-plugin-scripts.js.map +1 -1
- package/dist/src/commands/public-lifecycle-result.d.ts +3 -1
- package/dist/src/commands/public-lifecycle-result.js +59 -2
- package/dist/src/commands/public-lifecycle-result.js.map +1 -1
- package/dist/src/commands/public-plugin-query.js +8 -5
- package/dist/src/commands/public-plugin-query.js.map +1 -1
- package/dist/src/commands/rebuild-command.d.ts +1 -0
- package/dist/src/commands/rebuild-command.js +13 -1
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.js +4 -3
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
- package/dist/src/commands/runtime.d.ts +1 -1
- package/dist/src/commands/runtime.js +23 -4
- package/dist/src/commands/runtime.js.map +1 -1
- package/dist/src/commands/wizard.js +3 -2
- package/dist/src/commands/wizard.js.map +1 -1
- package/dist/src/index.js +4 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/output/public-result.d.ts +5 -0
- package/dist/src/output/public-result.js +10 -0
- package/dist/src/output/public-result.js.map +1 -1
- package/dist/src/platforms/capabilities.js +8 -5
- package/dist/src/platforms/capabilities.js.map +1 -1
- package/dist/src/platforms/contracts.d.ts +1 -0
- package/dist/src/platforms/discovery.d.ts +11 -0
- package/dist/src/platforms/discovery.js +53 -4
- package/dist/src/platforms/discovery.js.map +1 -1
- package/dist/src/platforms/gemini-consent.d.ts +2 -2
- package/dist/src/platforms/gemini-consent.js +8 -6
- package/dist/src/platforms/gemini-consent.js.map +1 -1
- package/dist/src/platforms/inspection-grok.js +7 -2
- package/dist/src/platforms/inspection-grok.js.map +1 -1
- package/dist/src/platforms/inspection-native.js +3 -4
- package/dist/src/platforms/inspection-native.js.map +1 -1
- package/dist/src/platforms/inspection-opencode.js +3 -2
- package/dist/src/platforms/inspection-opencode.js.map +1 -1
- package/dist/src/platforms/inspection-pi.js +0 -4
- package/dist/src/platforms/inspection-pi.js.map +1 -1
- package/dist/src/platforms/inspection-query.d.ts +7 -0
- package/dist/src/platforms/inspection-query.js +69 -9
- package/dist/src/platforms/inspection-query.js.map +1 -1
- package/dist/src/platforms/inspection.d.ts +2 -0
- package/dist/src/platforms/inspection.js +8 -0
- package/dist/src/platforms/inspection.js.map +1 -1
- package/dist/src/platforms/lifecycle-native-services.js +2 -2
- package/dist/src/platforms/lifecycle-native-services.js.map +1 -1
- package/dist/src/platforms/lifecycle-native.js +21 -15
- package/dist/src/platforms/lifecycle-native.js.map +1 -1
- package/dist/src/platforms/lifecycle.js +25 -9
- package/dist/src/platforms/lifecycle.js.map +1 -1
- package/dist/src/portable/recovery.d.ts +2 -1
- package/dist/src/portable/recovery.js +4 -2
- package/dist/src/portable/recovery.js.map +1 -1
- package/dist/src/portable/writer.d.ts +3 -0
- package/dist/src/portable/writer.js +8 -3
- package/dist/src/portable/writer.js.map +1 -1
- package/dist/src/recovery/coordinator.js +21 -0
- package/dist/src/recovery/coordinator.js.map +1 -1
- package/dist/src/recovery/demand.d.ts +6 -0
- package/dist/src/recovery/demand.js +20 -7
- package/dist/src/recovery/demand.js.map +1 -1
- package/dist/src/recovery/joint-demand.js +22 -2
- package/dist/src/recovery/joint-demand.js.map +1 -1
- package/dist/src/recovery/receipt.d.ts +2 -0
- package/dist/src/recovery/status.d.ts +10 -0
- package/dist/src/recovery/status.js +218 -37
- package/dist/src/recovery/status.js.map +1 -1
- package/dist/src/recovery/types.d.ts +2 -3
- package/dist/src/tui/components.js +9 -0
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/controller.js +1 -0
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/diagnostics.d.ts +3 -0
- package/dist/src/tui/diagnostics.js.map +1 -1
- package/dist/src/tui/model.d.ts +3 -1
- package/dist/src/tui/model.js +27 -6
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/utils/catalog-source-references.d.ts +8 -0
- package/dist/src/utils/catalog-source-references.js +36 -10
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/codex-native-observation.js +5 -1
- package/dist/src/utils/codex-native-observation.js.map +1 -1
- package/dist/src/utils/inventory-recovery-diagnostic.d.ts +4 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js +15 -0
- package/dist/src/utils/inventory-recovery-diagnostic.js.map +1 -0
- package/package.json +3 -3
|
@@ -113,6 +113,7 @@ export interface RebuildReviewPreflightEvidence {
|
|
|
113
113
|
contentDigest?: string;
|
|
114
114
|
}
|
|
115
115
|
export interface RebuildCommandResult {
|
|
116
|
+
recoveryDiagnostics?: import('../recovery/receipt.js').RecoveryDiagnostic[];
|
|
116
117
|
deploymentExclusions?: OperationPlan['deploymentExclusions'];
|
|
117
118
|
platforms: string[];
|
|
118
119
|
plugins: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import crypto from 'node:crypto';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
+
import { inventoryRecoveryDiagnostic } from '../utils/inventory-recovery-diagnostic.js';
|
|
3
4
|
import { withNativeToolRemovalImpact } from '../utils/native-tool-review.js';
|
|
4
5
|
import fs from 'fs-extra';
|
|
5
6
|
import { NATIVE_PLATFORM_TARGETS } from '@lesliechan721/aw-plugin-core/manifest';
|
|
@@ -4718,7 +4719,18 @@ export async function runRebuildCommand(options) {
|
|
|
4718
4719
|
const renderResults = options.runtime?.preparedArtifactRenderResults ?? new Map();
|
|
4719
4720
|
options = { ...options, runtime: { ...options.runtime, commandResults, preparedArtifactRenderResults: renderResults,
|
|
4720
4721
|
managedCommandProducerCache: options.runtime?.managedCommandProducerCache ?? new Map() } };
|
|
4721
|
-
const withCommands = (result) => {
|
|
4722
|
+
const withCommands = async (result) => {
|
|
4723
|
+
if (options.command === 'cleanup' && (!options.runtime?.previewOperationPlan || result.overallState !== 'succeeded')) {
|
|
4724
|
+
const inventory = await inventoryCatalogSourceReferences({ cwd: executionInput.context.executionCwd,
|
|
4725
|
+
env: executionInput.context.env, scope: options.commandOptions.scope });
|
|
4726
|
+
const selectedErrors = cleanupInventoryErrorsForSelection({ inventory, selectors: options.pluginNames,
|
|
4727
|
+
platforms: selectedPlatforms(options.commandOptions.platform), scope: options.commandOptions.scope, all: options.all === true });
|
|
4728
|
+
if (selectedErrors.length) {
|
|
4729
|
+
result.recoveryDiagnostics = selectedErrors.map(inventoryRecoveryDiagnostic);
|
|
4730
|
+
result.overallState = result.overallState === 'partial' || result.targetResults.some((target) => target.state === 'completed')
|
|
4731
|
+
|| result.rebuildResults.some((entry) => entry.removed.length > 0 || entry.quarantined.length > 0) ? 'partial' : 'failed';
|
|
4732
|
+
}
|
|
4733
|
+
}
|
|
4722
4734
|
const exclusions = result.operationPlan?.deploymentExclusions ?? result.deploymentExclusions
|
|
4723
4735
|
?? result.rebuildResults.flatMap((entry) => entry.deploymentExclusions ?? []);
|
|
4724
4736
|
if (exclusions.length)
|