@lesliechan721/aw 0.1.0-beta.84 → 0.1.0-beta.85
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/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/src/commands/public-lifecycle-result.d.ts +3 -8
- package/dist/src/commands/public-lifecycle-result.js +85 -30
- package/dist/src/commands/public-lifecycle-result.js.map +1 -1
- package/dist/src/commands/public-plugin-query.js +21 -5
- package/dist/src/commands/public-plugin-query.js.map +1 -1
- package/dist/src/commands/rebuild-command.js +19 -3
- 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 +5 -0
- package/dist/src/commands/rebuild-integration.js.map +1 -1
- package/dist/src/commands/rebuild-operations.js +5 -2
- package/dist/src/commands/rebuild-operations.js.map +1 -1
- package/dist/src/commands/rebuild-platform-integration.d.ts +7 -2
- package/dist/src/commands/rebuild-platform-integration.js +539 -65
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
- package/dist/src/generators/permissions.d.ts +7 -1
- package/dist/src/generators/permissions.js +56 -0
- package/dist/src/generators/permissions.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +7 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/intent/scope-context.d.ts +4 -2
- package/dist/src/intent/scope-context.js +37 -7
- package/dist/src/intent/scope-context.js.map +1 -1
- package/dist/src/output/component-delivery.d.ts +21 -0
- package/dist/src/output/component-delivery.js +82 -0
- package/dist/src/output/component-delivery.js.map +1 -0
- package/dist/src/output/public-result.d.ts +2 -0
- package/dist/src/output/public-result.js +49 -16
- package/dist/src/output/public-result.js.map +1 -1
- package/dist/src/output/receipt-projection.js +13 -5
- package/dist/src/output/receipt-projection.js.map +1 -1
- package/dist/src/output/skill-invocation-notices.d.ts +2 -0
- package/dist/src/output/skill-invocation-notices.js +40 -4
- package/dist/src/output/skill-invocation-notices.js.map +1 -1
- package/dist/src/platforms/capabilities.d.ts +4 -1
- package/dist/src/platforms/capabilities.js +93 -9
- package/dist/src/platforms/capabilities.js.map +1 -1
- package/dist/src/platforms/contracts.d.ts +36 -1
- package/dist/src/platforms/discovery.d.ts +11 -0
- package/dist/src/platforms/discovery.js +170 -30
- package/dist/src/platforms/discovery.js.map +1 -1
- package/dist/src/platforms/inspection-grok.js +121 -9
- package/dist/src/platforms/inspection-grok.js.map +1 -1
- package/dist/src/platforms/inspection-native.js +53 -18
- package/dist/src/platforms/inspection-native.js.map +1 -1
- package/dist/src/platforms/inspection-pi.d.ts +7 -1
- package/dist/src/platforms/inspection-pi.js +295 -95
- package/dist/src/platforms/inspection-pi.js.map +1 -1
- package/dist/src/platforms/inspection-query.d.ts +4 -2
- package/dist/src/platforms/inspection-query.js +24 -8
- package/dist/src/platforms/inspection-query.js.map +1 -1
- package/dist/src/platforms/inspection.d.ts +4 -1
- package/dist/src/platforms/inspection.js +36 -4
- package/dist/src/platforms/inspection.js.map +1 -1
- package/dist/src/platforms/layout.d.ts +6 -0
- package/dist/src/platforms/layout.js +44 -7
- package/dist/src/platforms/layout.js.map +1 -1
- package/dist/src/platforms/lifecycle-native.d.ts +1 -0
- package/dist/src/platforms/lifecycle-native.js +25 -1
- package/dist/src/platforms/lifecycle-native.js.map +1 -1
- package/dist/src/platforms/lifecycle.d.ts +2 -0
- package/dist/src/platforms/lifecycle.js +67 -16
- package/dist/src/platforms/lifecycle.js.map +1 -1
- package/dist/src/platforms/projection-code-extension.js +2 -1
- package/dist/src/platforms/projection-code-extension.js.map +1 -1
- package/dist/src/platforms/projection.js +70 -22
- package/dist/src/platforms/projection.js.map +1 -1
- package/dist/src/platforms/supplement-layout.d.ts +5 -1
- package/dist/src/platforms/supplement-layout.js +23 -1
- package/dist/src/platforms/supplement-layout.js.map +1 -1
- package/dist/src/platforms/supplement-state.d.ts +1 -1
- package/dist/src/platforms/supplement-state.js +18 -7
- package/dist/src/platforms/supplement-state.js.map +1 -1
- package/dist/src/portable/commands.js +1 -1
- package/dist/src/portable/commands.js.map +1 -1
- package/dist/src/portable/materializer.d.ts +4 -0
- package/dist/src/portable/materializer.js +8 -1
- package/dist/src/portable/materializer.js.map +1 -1
- package/dist/src/portable/recovery.d.ts +2 -0
- package/dist/src/portable/recovery.js +45 -8
- package/dist/src/portable/recovery.js.map +1 -1
- package/dist/src/recovery/coordinator.d.ts +1 -1
- package/dist/src/recovery/coordinator.js +77 -10
- package/dist/src/recovery/coordinator.js.map +1 -1
- package/dist/src/recovery/install-concurrency.js +3 -2
- package/dist/src/recovery/install-concurrency.js.map +1 -1
- package/dist/src/recovery/joint-coordinator.d.ts +7 -0
- package/dist/src/recovery/joint-coordinator.js +173 -23
- package/dist/src/recovery/joint-coordinator.js.map +1 -1
- package/dist/src/recovery/joint-demand.d.ts +14 -2
- package/dist/src/recovery/joint-demand.js +54 -7
- package/dist/src/recovery/joint-demand.js.map +1 -1
- package/dist/src/recovery/receipt.d.ts +15 -4
- package/dist/src/recovery/receipt.js +23 -0
- package/dist/src/recovery/receipt.js.map +1 -1
- package/dist/src/recovery/status.d.ts +20 -8
- package/dist/src/recovery/status.js +380 -90
- package/dist/src/recovery/status.js.map +1 -1
- package/dist/src/review/platform-profile.js +2 -1
- package/dist/src/review/platform-profile.js.map +1 -1
- package/dist/src/review/skill-materialization.d.ts +1 -0
- package/dist/src/review/skill-materialization.js +45 -39
- package/dist/src/review/skill-materialization.js.map +1 -1
- package/dist/src/review/source-binding.js +5 -1
- package/dist/src/review/source-binding.js.map +1 -1
- package/dist/src/tui/console-app-v4.js +67 -30
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/controller-runtime.js +1 -1
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.d.ts +2 -1
- package/dist/src/tui/controller.js +17 -4
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/deployment-view.d.ts +6 -3
- package/dist/src/tui/deployment-view.js +39 -10
- package/dist/src/tui/deployment-view.js.map +1 -1
- package/dist/src/tui/diagnostic-projection.d.ts +7 -1
- package/dist/src/tui/diagnostic-projection.js +47 -2
- package/dist/src/tui/diagnostic-projection.js.map +1 -1
- package/dist/src/tui/entity-cards.d.ts +2 -1
- package/dist/src/tui/entity-cards.js +34 -11
- package/dist/src/tui/entity-cards.js.map +1 -1
- package/dist/src/tui/glossary.js +5 -0
- package/dist/src/tui/glossary.js.map +1 -1
- package/dist/src/tui/model.js +2 -1
- package/dist/src/tui/model.js.map +1 -1
- package/dist/src/tui/operation-diagnostic-screens.js +3 -1
- package/dist/src/tui/operation-diagnostic-screens.js.map +1 -1
- package/dist/src/tui/operation-history.d.ts +6 -0
- package/dist/src/tui/operation-history.js +20 -2
- package/dist/src/tui/operation-history.js.map +1 -1
- package/dist/src/tui/plugin-detail.d.ts +4 -1
- package/dist/src/tui/plugin-detail.js +9 -2
- package/dist/src/tui/plugin-detail.js.map +1 -1
- package/dist/src/tui/scoped-flow.js +34 -16
- package/dist/src/tui/scoped-flow.js.map +1 -1
- package/dist/src/tui/scoped-inventory.d.ts +6 -2
- package/dist/src/tui/scoped-inventory.js +29 -7
- package/dist/src/tui/scoped-inventory.js.map +1 -1
- package/dist/src/types.d.ts +2 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils/artifact-plan.js +5 -1
- package/dist/src/utils/artifact-plan.js.map +1 -1
- package/dist/src/utils/artifact-renderer.d.ts +1 -1
- package/dist/src/utils/artifact-renderer.js +29 -8
- package/dist/src/utils/artifact-renderer.js.map +1 -1
- package/dist/src/utils/catalog-source-references.js +12 -3
- package/dist/src/utils/catalog-source-references.js.map +1 -1
- package/dist/src/utils/codex-native-observation.d.ts +6 -0
- package/dist/src/utils/codex-native-observation.js +32 -3
- package/dist/src/utils/codex-native-observation.js.map +1 -1
- package/dist/src/utils/component-command-preparation.d.ts +2 -0
- package/dist/src/utils/component-command-preparation.js +23 -4
- package/dist/src/utils/component-command-preparation.js.map +1 -1
- package/dist/src/utils/component-gap.d.ts +4 -0
- package/dist/src/utils/component-gap.js +20 -0
- package/dist/src/utils/component-gap.js.map +1 -0
- package/dist/src/utils/component-resources.js +2 -4
- package/dist/src/utils/component-resources.js.map +1 -1
- package/dist/src/utils/dynamic-skill-tree.js +2 -32
- package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
- package/dist/src/utils/native-cli-interruption.d.ts +8 -0
- package/dist/src/utils/native-cli-interruption.js +65 -0
- package/dist/src/utils/native-cli-interruption.js.map +1 -0
- package/dist/src/utils/native-cli.d.ts +5 -0
- package/dist/src/utils/native-cli.js +166 -53
- package/dist/src/utils/native-cli.js.map +1 -1
- package/dist/src/utils/ownership.d.ts +1 -0
- package/dist/src/utils/ownership.js +17 -3
- package/dist/src/utils/ownership.js.map +1 -1
- package/dist/src/utils/package-content.d.ts +7 -0
- package/dist/src/utils/package-content.js +70 -0
- package/dist/src/utils/package-content.js.map +1 -0
- package/dist/src/utils/platform-empty-state.d.ts +31 -6
- package/dist/src/utils/platform-empty-state.js +135 -65
- package/dist/src/utils/platform-empty-state.js.map +1 -1
- package/dist/src/utils/plugin-config-write.js +5 -1
- package/dist/src/utils/plugin-config-write.js.map +1 -1
- package/dist/src/utils/plugin-scripts.js +19 -8
- package/dist/src/utils/plugin-scripts.js.map +1 -1
- package/dist/src/utils/process-tree.d.ts +1 -1
- package/dist/src/utils/process-tree.js +1 -1
- package/dist/src/utils/process-tree.js.map +1 -1
- package/dist/src/utils/skill-invocation-warning.d.ts +8 -3
- package/dist/src/utils/skill-invocation-warning.js +27 -1
- package/dist/src/utils/skill-invocation-warning.js.map +1 -1
- package/package.json +3 -3
|
@@ -15,6 +15,7 @@ import type { Diagnostic } from '../output/public-result.js';
|
|
|
15
15
|
import { type ConfigPageViewModel, type ConfigProfileOptions, type ConfigReadOptions, type ConfigProfileKey, type ConfigGroupViewModel, type InstallPlacementDraftViewModel, type PluginListItemViewModel, type PluginDependencyOverviewViewModel, type PortableSkillSelectionViewModel, type SourceHealthViewModel, type SourceDetailViewModel, type TuiViewModel, type UserIssueCategory, type UserIssueViewModel } from './model.js';
|
|
16
16
|
import type { PluginContentOverview } from './plugin-content.js';
|
|
17
17
|
import { type PluginDetailSubject } from './plugin-detail.js';
|
|
18
|
+
import { type ComponentDelivery } from '../output/component-delivery.js';
|
|
18
19
|
import { OperationHistoryStore, type OperationDiagnosticDetail, type OperationEffectFacts, type OperationHistorySummary, type OperationReportPreview, type SafeOperationDiagnostic, type SaveOperationReportResult } from './operation-history.js';
|
|
19
20
|
import { type ScopedInventoryViewModel, type ScopedInventoryLoadResult, type InventoryRoot } from './scoped-inventory.js';
|
|
20
21
|
import { type ScopedTuiPlan } from './scoped-flow.js';
|
|
@@ -562,7 +563,7 @@ export interface OperationResultSummary {
|
|
|
562
563
|
configScope?: Scope;
|
|
563
564
|
configPlatform?: PlatformTarget;
|
|
564
565
|
configContext?: Scope;
|
|
565
|
-
configTargets?: Array<{
|
|
566
|
+
configTargets?: Array<ComponentDelivery & {
|
|
566
567
|
pluginId?: string;
|
|
567
568
|
platform: PlatformTarget;
|
|
568
569
|
scope: Scope;
|
|
@@ -14,7 +14,8 @@ import { buildOperationReviewProjection } from './operation-review-planner.js';
|
|
|
14
14
|
import { buildTuiViewModel, dependencyPlacementTargets, hasScopedExtensionOwnership, } from './model.js';
|
|
15
15
|
import { buildPluginDetailSubject } from './plugin-detail.js';
|
|
16
16
|
import { safeDiagnosticCode, sanitizeDiagnosticText } from './diagnostics.js';
|
|
17
|
-
import { projectExecutionDiagnostics, projectSkillInvocationHistory, projectThrownOperationDiagnostic } from './diagnostic-projection.js';
|
|
17
|
+
import { projectComponentDeliveryHistory, projectDeliveryNoticeHistory, projectExecutionDiagnostics, projectSkillInvocationHistory, projectThrownOperationDiagnostic } from './diagnostic-projection.js';
|
|
18
|
+
import { projectComponentDelivery } from '../output/component-delivery.js';
|
|
18
19
|
import { OperationHistoryStore, } from './operation-history.js';
|
|
19
20
|
import { targetHasArtifactCollision } from '../utils/target-eligibility.js';
|
|
20
21
|
import { hasStatusInstallationEvidence } from './scoped-inventory.js';
|
|
@@ -975,10 +976,17 @@ export class TuiController {
|
|
|
975
976
|
if (summary) {
|
|
976
977
|
Object.assign(summary, sanitizeOperationSummary(summary, projected.sensitiveValues ?? []));
|
|
977
978
|
}
|
|
978
|
-
const
|
|
979
|
+
const deliveryNotices = projectDeliveryNoticeHistory(summary?.configDiagnostics ?? [], recordId, 'apply');
|
|
980
|
+
const configDelivery = (summary?.configTargets ?? []).map((target, index) => {
|
|
981
|
+
const notices = deliveryNotices.filter(({ target: notice }) => notice?.platform === target.platform
|
|
982
|
+
&& notice.scope === target.scope && notice.pluginId === target.pluginId);
|
|
983
|
+
const delivery = projectComponentDeliveryHistory(target, notices, `${recordId}:${index}`, 'apply', target.state === 'completed' || target.state === 'kept');
|
|
984
|
+
return { target, ...delivery };
|
|
985
|
+
});
|
|
986
|
+
const diagnostics = [...projected.diagnostics, ...deliveryNotices, ...configDelivery.flatMap(({ diagnostics }) => diagnostics),
|
|
979
987
|
...projectSkillInvocationHistory(summary?.configDiagnostics ?? [], recordId, 'apply')];
|
|
980
988
|
const diagnosticIds = diagnostics.map((diagnostic) => diagnostic.id);
|
|
981
|
-
const targets = summary ? summary.
|
|
989
|
+
const targets = summary ? summary.configTargets ?? summary.targets ?? [] : projected.targets ?? [];
|
|
982
990
|
Object.assign(result, { operationRecordId: recordId, diagnosticIds, effects: projected.effects });
|
|
983
991
|
if (summary) {
|
|
984
992
|
summary.diagnosticIds = diagnosticIds;
|
|
@@ -1011,7 +1019,11 @@ export class TuiController {
|
|
|
1011
1019
|
effects: projected.effects,
|
|
1012
1020
|
},
|
|
1013
1021
|
diagnostics,
|
|
1014
|
-
targets: targets.map((target) =>
|
|
1022
|
+
targets: targets.map((target) => {
|
|
1023
|
+
const delivery = configDelivery.find((entry) => entry.target === target);
|
|
1024
|
+
return { ...target, diagnosticIds: target.diagnosticIds ?? [],
|
|
1025
|
+
...(delivery?.facts ? { componentDelivery: delivery.facts } : {}) };
|
|
1026
|
+
}),
|
|
1015
1027
|
}, { sensitiveValues: projected.sensitiveValues });
|
|
1016
1028
|
this.#operationDiagnostics.delete(result.operationId);
|
|
1017
1029
|
this.#lastRecordedResultId = recordId;
|
|
@@ -4518,6 +4530,7 @@ function configApplyTargets(apply) {
|
|
|
4518
4530
|
: entry.state === 'failed' ? 'failed'
|
|
4519
4531
|
: entry.action === 'keep' ? 'kept' : 'completed',
|
|
4520
4532
|
...(entry.partialDelivery ? { partialDelivery: true } : {}),
|
|
4533
|
+
...projectComponentDelivery(entry),
|
|
4521
4534
|
...(typeof entry.errorCode === 'string'
|
|
4522
4535
|
? { errorCode: safeDiagnosticCode(entry.errorCode, 'configApplyFailed') }
|
|
4523
4536
|
: {}),
|