@lesliechan721/aw 0.1.0-beta.89 → 0.1.0-beta.90
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/src/commands/aw-capabilities.d.ts +1 -1
- package/dist/src/commands/aw-capabilities.js +4 -1
- package/dist/src/commands/aw-capabilities.js.map +1 -1
- package/dist/src/commands/plugin-capabilities.js +4 -1
- package/dist/src/commands/plugin-capabilities.js.map +1 -1
- package/dist/src/commands/public-lifecycle-result.d.ts +3 -0
- package/dist/src/commands/public-lifecycle-result.js +30 -5
- package/dist/src/commands/public-lifecycle-result.js.map +1 -1
- package/dist/src/commands/public-lifecycle.js +8 -0
- package/dist/src/commands/public-lifecycle.js.map +1 -1
- package/dist/src/commands/public-plugin-query.js +6 -2
- package/dist/src/commands/public-plugin-query.js.map +1 -1
- package/dist/src/commands/rebuild-command.js +28 -17
- package/dist/src/commands/rebuild-command.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.js +23 -3
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
- package/dist/src/commands/reconcile-operation-plan.d.ts +3 -0
- package/dist/src/commands/reconcile-operation-plan.js +1 -0
- package/dist/src/commands/reconcile-operation-plan.js.map +1 -1
- package/dist/src/commands/status-v6.js +61 -9
- package/dist/src/commands/status-v6.js.map +1 -1
- package/dist/src/index.js +122 -28
- package/dist/src/index.js.map +1 -1
- package/dist/src/output/public-result.d.ts +1 -0
- package/dist/src/output/public-result.js +21 -3
- package/dist/src/output/public-result.js.map +1 -1
- package/dist/src/output/receipt-projection.js +19 -5
- package/dist/src/output/receipt-projection.js.map +1 -1
- package/dist/src/portable/recovery.d.ts +2 -7
- package/dist/src/portable/recovery.js +10 -0
- package/dist/src/portable/recovery.js.map +1 -1
- package/dist/src/recovery/coordinator.js +5 -0
- package/dist/src/recovery/coordinator.js.map +1 -1
- package/dist/src/recovery/joint-coordinator.js +12 -0
- package/dist/src/recovery/joint-coordinator.js.map +1 -1
- package/dist/src/recovery/status.d.ts +1 -0
- package/dist/src/recovery/status.js +151 -44
- package/dist/src/recovery/status.js.map +1 -1
- package/dist/src/review/source-binding.js +7 -4
- package/dist/src/review/source-binding.js.map +1 -1
- package/dist/src/tui/components.js +1 -0
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/config-object-suggestions.d.ts +15 -0
- package/dist/src/tui/config-object-suggestions.js +71 -0
- package/dist/src/tui/config-object-suggestions.js.map +1 -0
- package/dist/src/tui/config-suggestions.d.ts +7 -2
- package/dist/src/tui/config-suggestions.js +22 -14
- package/dist/src/tui/config-suggestions.js.map +1 -1
- package/dist/src/tui/console-app-v4.js +569 -102
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/controller-runtime.js +14 -16
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +6 -4
- package/dist/src/tui/controller.js +59 -12
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/guided-setup.d.ts +25 -0
- package/dist/src/tui/guided-setup.js +101 -0
- package/dist/src/tui/guided-setup.js.map +1 -0
- package/dist/src/tui/model.d.ts +5 -0
- package/dist/src/tui/model.js +120 -49
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/router.d.ts +5 -3
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/scoped-flow.d.ts +2 -0
- package/dist/src/tui/scoped-flow.js.map +1 -1
- package/dist/src/tui/scoped-inventory.d.ts +1 -0
- package/dist/src/tui/screen-registry.d.ts +3 -2
- package/dist/src/utils/config-platforms.d.ts +21 -0
- package/dist/src/utils/config-platforms.js +51 -0
- package/dist/src/utils/config-platforms.js.map +1 -0
- package/dist/src/utils/managed-command-materialization.d.ts +1 -0
- package/dist/src/utils/managed-command-materialization.js +8 -3
- package/dist/src/utils/managed-command-materialization.js.map +1 -1
- package/dist/src/utils/plugin-config-command-apply.js +7 -1
- package/dist/src/utils/plugin-config-command-apply.js.map +1 -1
- package/dist/src/utils/plugin-config-diagnostics.d.ts +16 -0
- package/dist/src/utils/plugin-config-diagnostics.js +44 -0
- package/dist/src/utils/plugin-config-diagnostics.js.map +1 -0
- package/dist/src/utils/plugin-config-impact.js +46 -18
- package/dist/src/utils/plugin-config-impact.js.map +1 -1
- package/dist/src/utils/plugin-config-references.d.ts +5 -0
- package/dist/src/utils/plugin-config-references.js +19 -7
- package/dist/src/utils/plugin-config-references.js.map +1 -1
- package/dist/src/utils/plugin-config-suggestion-runner.d.ts +45 -12
- package/dist/src/utils/plugin-config-suggestion-runner.js +174 -33
- package/dist/src/utils/plugin-config-suggestion-runner.js.map +1 -1
- package/dist/src/utils/plugin-config-suggestions.d.ts +10 -7
- package/dist/src/utils/plugin-config-suggestions.js +41 -13
- package/dist/src/utils/plugin-config-suggestions.js.map +1 -1
- package/dist/src/utils/plugin-config-write.d.ts +2 -0
- package/dist/src/utils/plugin-config-write.js +44 -4
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-config.d.ts +1 -0
- package/dist/src/utils/plugin-config.js +33 -8
- package/dist/src/utils/plugin-config.js.map +1 -1
- package/package.json +3 -3
|
@@ -554,6 +554,22 @@ export class PlatformRebuildSession {
|
|
|
554
554
|
if (!['grok-cli', 'grok-directory'].includes(binding.route) || operation !== 'ensure'
|
|
555
555
|
|| receipt.diagnostics.some((item) => item.severity === 'error') || sources?.observation !== 'complete' || !evidence)
|
|
556
556
|
return;
|
|
557
|
+
const incomplete = receipt.effects.filter((effect) => ['failed', 'unknown', 'blocked', 'skipped'].includes(effect.status));
|
|
558
|
+
if (incomplete.length) {
|
|
559
|
+
// First registration can be refused without touching the native copy,
|
|
560
|
+
// while an independent rule is confirmed. Never normalize uncertain
|
|
561
|
+
// native mutations or other failures against a sibling's frozen plan.
|
|
562
|
+
const registration = prepared.plan.effects.find(({ kind }) => kind === 'register');
|
|
563
|
+
const refusal = incomplete.find((effect) => effect.id === registration?.id && effect.status === 'blocked'
|
|
564
|
+
&& effect.diagnostics.some(({ code }) => code === 'nativeTrustRequired')
|
|
565
|
+
&& effect.diagnostics.every(({ code, severity }) => severity !== 'error' || code === 'nativeTrustRequired'));
|
|
566
|
+
if (binding.route !== 'grok-cli' || receipt.after.registration !== 'absent' || !refusal
|
|
567
|
+
|| receipt.effects.some(({ mutation }) => mutation === 'possible')
|
|
568
|
+
|| incomplete.some((effect) => effect.mutation !== 'none' || effect !== refusal
|
|
569
|
+
&& !(effect.status === 'skipped' && effect.diagnostics.length > 0
|
|
570
|
+
&& effect.diagnostics.every(({ code }) => code === 'deploymentDependencyFailed'))))
|
|
571
|
+
return;
|
|
572
|
+
}
|
|
557
573
|
const scope = binding.scope.kind;
|
|
558
574
|
const scopeRoot = binding.scope.kind === 'project' ? binding.scope.projectRoot : layout.activationPath;
|
|
559
575
|
const { before, packageComponent: owner, bundle, contributions } = prepared.driverState;
|
|
@@ -570,7 +586,7 @@ export class PlatformRebuildSession {
|
|
|
570
586
|
// native refresh explains a change to the User inventory in this operation.
|
|
571
587
|
const installedRoot = refreshed ? path.join(scopeRoot, 'installed-plugins', registrationId) : undefined;
|
|
572
588
|
const root = installedRoot ?? path.normalize(layout.packageRoot);
|
|
573
|
-
if ((refreshed || binding.route === 'grok-directory' && packagePublished) && priorSources?.observation === 'complete'
|
|
589
|
+
if (!incomplete.length && (refreshed || binding.route === 'grok-directory' && packagePublished) && priorSources?.observation === 'complete'
|
|
574
590
|
&& receipt.after.package === 'present' && receipt.after.ownership === 'aw' && bundle
|
|
575
591
|
&& owner?.kind === 'owned-directory' && owner.path === layout.packageRoot && identity?.route === binding.route
|
|
576
592
|
&& identity.sourceLocation === layout.packageRoot) {
|
|
@@ -1877,10 +1893,14 @@ export class PlatformRebuildSession {
|
|
|
1877
1893
|
subject: { target: prepared.plan.binding.platform, pluginId: prepared.plan.binding.plugin.pluginId, scope: prepared.plan.binding.scope.kind } });
|
|
1878
1894
|
continue;
|
|
1879
1895
|
}
|
|
1880
|
-
if (prepared.plan.evidence.retainPackage || receipt.diagnostics.some((diagnostic) => diagnostic.code === 'operationPlanStale')
|
|
1881
|
-
|| receipt.effects.some((effect) => ['failed', 'unknown', 'blocked', 'skipped'].includes(effect.status)))
|
|
1896
|
+
if (prepared.plan.evidence.retainPackage || receipt.diagnostics.some((diagnostic) => diagnostic.code === 'operationPlanStale'))
|
|
1882
1897
|
continue;
|
|
1898
|
+
// A Grok rule can be independently written even when native package
|
|
1899
|
+
// registration needs explicit trust. Account for the confirmed rule
|
|
1900
|
+
// bytes before considering the next target, not for the blocked package.
|
|
1883
1901
|
this.recordGrokWrites(prepared, receipt, publication?.mutation === 'confirmed', writtenFiles, shadowedUsers.get(prepared.plan.binding.id));
|
|
1902
|
+
if (receipt.effects.some((effect) => ['failed', 'unknown', 'blocked', 'skipped'].includes(effect.status)))
|
|
1903
|
+
continue;
|
|
1884
1904
|
const piInventoryKey = piProjectInventoryKey(prepared.plan.binding, prepared.plan.evidence.layout.activationPath);
|
|
1885
1905
|
if (piInventoryKey && piProjectEmptyDeliveryObserved(prepared.plan.binding, prepared.driverState.before)
|
|
1886
1906
|
&& receipt.after.registration === 'present' && receipt.after.ownership === 'aw' && receipt.after.configuration?.activation === 'enabled'
|