@lesliechan721/aw 0.1.0-beta.80 → 0.1.0-beta.82
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/validate-plugin.mjs +114 -81
- package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
- package/dist/src/commands/catalog-publication-inspection.d.ts +0 -1
- package/dist/src/commands/catalog-publication-inspection.js +36 -29
- package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
- package/dist/src/commands/intent-command.d.ts +2 -1
- package/dist/src/commands/intent-command.js +3 -4
- package/dist/src/commands/intent-command.js.map +1 -1
- package/dist/src/commands/public-lifecycle-result.js +4 -0
- package/dist/src/commands/public-lifecycle-result.js.map +1 -1
- package/dist/src/commands/public-lifecycle.js +1 -1
- package/dist/src/commands/public-lifecycle.js.map +1 -1
- package/dist/src/commands/rebuild-command.d.ts +2 -1
- package/dist/src/commands/rebuild-command.js +22 -13
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-integration.d.ts +2 -0
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +1 -0
- package/dist/src/commands/rebuild-platform-integration.js +56 -9
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
- package/dist/src/platforms/discovery.d.ts +4 -3
- package/dist/src/platforms/discovery.js +33 -9
- package/dist/src/platforms/discovery.js.map +1 -1
- package/dist/src/platforms/inspection-native.js +15 -4
- package/dist/src/platforms/inspection-native.js.map +1 -1
- package/dist/src/platforms/inspection-query.d.ts +12 -1
- package/dist/src/platforms/inspection-query.js +24 -6
- package/dist/src/platforms/inspection-query.js.map +1 -1
- package/dist/src/portable/commands.d.ts +2 -2
- package/dist/src/portable/commands.js +7 -3
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/materializer.d.ts +2 -1
- package/dist/src/portable/materializer.js +4 -4
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery.d.ts +3 -3
- package/dist/src/portable/recovery.js +7 -7
- package/dist/src/portable/recovery.js.map +1 -1
- package/dist/src/recovery/coordinator.d.ts +11 -2
- package/dist/src/recovery/coordinator.js +12 -9
- package/dist/src/recovery/coordinator.js.map +1 -1
- package/dist/src/recovery/demand.d.ts +3 -1
- package/dist/src/recovery/demand.js +36 -6
- package/dist/src/recovery/demand.js.map +1 -1
- package/dist/src/recovery/joint-coordinator.d.ts +8 -1
- package/dist/src/recovery/joint-coordinator.js +110 -26
- package/dist/src/recovery/joint-coordinator.js.map +1 -1
- package/dist/src/recovery/joint-demand.d.ts +2 -0
- package/dist/src/recovery/joint-demand.js +46 -9
- package/dist/src/recovery/joint-demand.js.map +1 -1
- package/dist/src/recovery/status.d.ts +4 -0
- package/dist/src/recovery/status.js +37 -19
- package/dist/src/recovery/status.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +4 -0
- package/dist/src/utils/catalog-generation-resolver.js +28 -17
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-generation-store.d.ts +3 -0
- package/dist/src/utils/catalog-generation-store.js +7 -4
- package/dist/src/utils/catalog-generation-store.js.map +1 -1
- package/dist/src/utils/catalog-operation-context.d.ts +16 -3
- package/dist/src/utils/catalog-operation-context.js +58 -3
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- package/dist/src/utils/catalog-snapshot.d.ts +3 -0
- package/dist/src/utils/catalog-snapshot.js +4 -1
- package/dist/src/utils/catalog-snapshot.js.map +1 -1
- package/dist/src/utils/codex-executable-discovery.js +8 -8
- package/dist/src/utils/codex-executable-discovery.js.map +1 -1
- package/dist/src/utils/native-cli.js +36 -9
- package/dist/src/utils/native-cli.js.map +1 -1
- package/package.json +3 -3
|
@@ -11,9 +11,9 @@ import { getCodexOperationRequirement, probeAgentVersion } from '../utils/agent-
|
|
|
11
11
|
import { resolveArtifactRenderConfig } from '../utils/artifact-renderer.js';
|
|
12
12
|
import { catalogGenerationErrorCode, isOfflineCleanupCatalogGenerationError, } from '../utils/catalog-generation-error.js';
|
|
13
13
|
import { resolveActiveCatalogGeneration, resolveActiveCatalogPluginShallow } from '../utils/catalog-generation-resolver.js';
|
|
14
|
-
import { resolveCatalogOperationContext, } from '../utils/catalog-operation-context.js';
|
|
14
|
+
import { CatalogPreparationReadScope, resolveCatalogOperationContext, } from '../utils/catalog-operation-context.js';
|
|
15
15
|
import { sanitizeCatalogSourceErrorMessage } from '../utils/catalog-public-error.js';
|
|
16
|
-
import { validateCatalogSnapshotComplete
|
|
16
|
+
import { validateCatalogSnapshotComplete } from '../utils/catalog-snapshot.js';
|
|
17
17
|
import { assertCatalogSourceInventoryComplete, canonicalMarketplaceRegistrationNames, inventoryCatalogSourceReferences, offlineOwnedPathEvidence, } from '../utils/catalog-source-references.js';
|
|
18
18
|
import { readCatalogSourcesConfigSnapshot } from '../utils/catalog-sources.js';
|
|
19
19
|
import { readCodexConfigFile } from '../utils/codex-config.js';
|
|
@@ -2420,7 +2420,7 @@ async function runRebuildCommandInSession(options) {
|
|
|
2420
2420
|
.filter((candidate) => candidate.source.sourceId === source.sourceId)
|
|
2421
2421
|
.map((candidate) => candidate.entry.name);
|
|
2422
2422
|
if (names.length > 0) {
|
|
2423
|
-
await
|
|
2423
|
+
await CatalogPreparationReadScope.validateEntries(options.runtime?.catalogReadScope, source, names);
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
});
|
|
@@ -2528,6 +2528,14 @@ async function runRebuildCommandInSession(options) {
|
|
|
2528
2528
|
taskSelectionMethods.set(key, selection.requestedMethod);
|
|
2529
2529
|
}
|
|
2530
2530
|
let executionSelections = normalizedExecutionSelections;
|
|
2531
|
+
const targetIdentity = ({ entry, platform }, scope) => ({
|
|
2532
|
+
sourceId: entry.source.sourceId,
|
|
2533
|
+
sourceIdentity: entry.source.sourceIdentity,
|
|
2534
|
+
pluginId: entry.pluginId,
|
|
2535
|
+
pluginName: entry.plugin.manifest.name,
|
|
2536
|
+
pluginVersion: entry.plugin.manifest.version,
|
|
2537
|
+
platform, scope, cwd: options.commandOptions.cwd,
|
|
2538
|
+
});
|
|
2531
2539
|
const planTargetFor = (plan, selection) => plan.targets.find((target) => target.pluginId === selection.entry.pluginId
|
|
2532
2540
|
&& target.platform === selection.platform
|
|
2533
2541
|
&& (selection.requestedScope === undefined
|
|
@@ -2734,6 +2742,7 @@ async function runRebuildCommandInSession(options) {
|
|
|
2734
2742
|
debugLogger: options.runtime?.debugLogger ?? createNoopDebugLogger(),
|
|
2735
2743
|
expectedCatalogConfigDigest: catalog.configDigest,
|
|
2736
2744
|
codexObservationSession: options.runtime?.codexObservationSession,
|
|
2745
|
+
nativeObservationBatch: options.runtime?.previewOperationPlan ? options.runtime.nativeObservationBatch : undefined,
|
|
2737
2746
|
codexObservationScopeByMarketplace,
|
|
2738
2747
|
preApplyExecutionCache: options.runtime?.preApplyExecutionCache,
|
|
2739
2748
|
managedCommandProducerCache: options.runtime?.managedCommandProducerCache,
|
|
@@ -3488,6 +3497,15 @@ async function runRebuildCommandInSession(options) {
|
|
|
3488
3497
|
result.deploymentReceipts = [...receipts];
|
|
3489
3498
|
return [{ result, code: diagnostics[0]?.code ?? 'nativePreparationBlocked' }];
|
|
3490
3499
|
});
|
|
3500
|
+
// A check can discover drift before a target has any deployment receipts.
|
|
3501
|
+
for (const selection of executionSelections) {
|
|
3502
|
+
const error = previewPreparation.preparedTargetErrors.get(executionKey(selection, initialPlan));
|
|
3503
|
+
if (!(error instanceof Error) || error.message.split(':', 1)[0] !== 'operationPlanStale')
|
|
3504
|
+
continue;
|
|
3505
|
+
const scope = planTargetFor(initialPlan, selection).resolvedScope;
|
|
3506
|
+
blockedTargets.push({ result: failedResult(options.command, targetIdentity(selection, scope), error.message),
|
|
3507
|
+
code: 'operationPlanStale' });
|
|
3508
|
+
}
|
|
3491
3509
|
if (blockedTargets.length) {
|
|
3492
3510
|
preview.rebuildResults = blockedTargets.map(({ result }) => result);
|
|
3493
3511
|
preview.targetResults = blockedTargets.map(({ result, code }) => ({ ...toTargetResult(result), errorCode: code }));
|
|
@@ -4146,16 +4164,7 @@ async function runRebuildCommandInSession(options) {
|
|
|
4146
4164
|
const state = dependencyStates.get(consumerKey);
|
|
4147
4165
|
return state === 'failed' || state === 'skipped';
|
|
4148
4166
|
});
|
|
4149
|
-
const identity =
|
|
4150
|
-
sourceId: entry.source.sourceId,
|
|
4151
|
-
sourceIdentity: entry.source.sourceIdentity,
|
|
4152
|
-
pluginId: entry.pluginId,
|
|
4153
|
-
pluginName: entry.plugin.manifest.name,
|
|
4154
|
-
pluginVersion: entry.plugin.manifest.version,
|
|
4155
|
-
platform,
|
|
4156
|
-
scope: planned.resolvedScope,
|
|
4157
|
-
cwd: options.commandOptions.cwd,
|
|
4158
|
-
};
|
|
4167
|
+
const identity = targetIdentity(selection, planned.resolvedScope);
|
|
4159
4168
|
const codexReconcilePlan = platform === 'codex'
|
|
4160
4169
|
? lockedCodexPlans.find((plan) => plan.desiredTargets.some((target) => target.pluginId === entry.pluginId))
|
|
4161
4170
|
: undefined;
|