@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.
Files changed (189) hide show
  1. package/dist/index.js +2 -6
  2. package/dist/index.js.map +1 -1
  3. package/dist/src/commands/public-lifecycle-result.d.ts +3 -8
  4. package/dist/src/commands/public-lifecycle-result.js +85 -30
  5. package/dist/src/commands/public-lifecycle-result.js.map +1 -1
  6. package/dist/src/commands/public-plugin-query.js +21 -5
  7. package/dist/src/commands/public-plugin-query.js.map +1 -1
  8. package/dist/src/commands/rebuild-command.js +19 -3
  9. package/dist/src/commands/rebuild-command.js.map +1 -1
  10. package/dist/src/commands/rebuild-integration.d.ts +1 -0
  11. package/dist/src/commands/rebuild-integration.js +5 -0
  12. package/dist/src/commands/rebuild-integration.js.map +1 -1
  13. package/dist/src/commands/rebuild-operations.js +5 -2
  14. package/dist/src/commands/rebuild-operations.js.map +1 -1
  15. package/dist/src/commands/rebuild-platform-integration.d.ts +7 -2
  16. package/dist/src/commands/rebuild-platform-integration.js +539 -65
  17. package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
  18. package/dist/src/generators/permissions.d.ts +7 -1
  19. package/dist/src/generators/permissions.js +56 -0
  20. package/dist/src/generators/permissions.js.map +1 -1
  21. package/dist/src/index.d.ts +1 -0
  22. package/dist/src/index.js +7 -4
  23. package/dist/src/index.js.map +1 -1
  24. package/dist/src/intent/scope-context.d.ts +4 -2
  25. package/dist/src/intent/scope-context.js +37 -7
  26. package/dist/src/intent/scope-context.js.map +1 -1
  27. package/dist/src/output/component-delivery.d.ts +21 -0
  28. package/dist/src/output/component-delivery.js +82 -0
  29. package/dist/src/output/component-delivery.js.map +1 -0
  30. package/dist/src/output/public-result.d.ts +2 -0
  31. package/dist/src/output/public-result.js +49 -16
  32. package/dist/src/output/public-result.js.map +1 -1
  33. package/dist/src/output/receipt-projection.js +13 -5
  34. package/dist/src/output/receipt-projection.js.map +1 -1
  35. package/dist/src/output/skill-invocation-notices.d.ts +2 -0
  36. package/dist/src/output/skill-invocation-notices.js +40 -4
  37. package/dist/src/output/skill-invocation-notices.js.map +1 -1
  38. package/dist/src/platforms/capabilities.d.ts +4 -1
  39. package/dist/src/platforms/capabilities.js +93 -9
  40. package/dist/src/platforms/capabilities.js.map +1 -1
  41. package/dist/src/platforms/contracts.d.ts +36 -1
  42. package/dist/src/platforms/discovery.d.ts +11 -0
  43. package/dist/src/platforms/discovery.js +170 -30
  44. package/dist/src/platforms/discovery.js.map +1 -1
  45. package/dist/src/platforms/inspection-grok.js +121 -9
  46. package/dist/src/platforms/inspection-grok.js.map +1 -1
  47. package/dist/src/platforms/inspection-native.js +53 -18
  48. package/dist/src/platforms/inspection-native.js.map +1 -1
  49. package/dist/src/platforms/inspection-pi.d.ts +7 -1
  50. package/dist/src/platforms/inspection-pi.js +295 -95
  51. package/dist/src/platforms/inspection-pi.js.map +1 -1
  52. package/dist/src/platforms/inspection-query.d.ts +4 -2
  53. package/dist/src/platforms/inspection-query.js +24 -8
  54. package/dist/src/platforms/inspection-query.js.map +1 -1
  55. package/dist/src/platforms/inspection.d.ts +4 -1
  56. package/dist/src/platforms/inspection.js +36 -4
  57. package/dist/src/platforms/inspection.js.map +1 -1
  58. package/dist/src/platforms/layout.d.ts +6 -0
  59. package/dist/src/platforms/layout.js +44 -7
  60. package/dist/src/platforms/layout.js.map +1 -1
  61. package/dist/src/platforms/lifecycle-native.d.ts +1 -0
  62. package/dist/src/platforms/lifecycle-native.js +25 -1
  63. package/dist/src/platforms/lifecycle-native.js.map +1 -1
  64. package/dist/src/platforms/lifecycle.d.ts +2 -0
  65. package/dist/src/platforms/lifecycle.js +67 -16
  66. package/dist/src/platforms/lifecycle.js.map +1 -1
  67. package/dist/src/platforms/projection-code-extension.js +2 -1
  68. package/dist/src/platforms/projection-code-extension.js.map +1 -1
  69. package/dist/src/platforms/projection.js +70 -22
  70. package/dist/src/platforms/projection.js.map +1 -1
  71. package/dist/src/platforms/supplement-layout.d.ts +5 -1
  72. package/dist/src/platforms/supplement-layout.js +23 -1
  73. package/dist/src/platforms/supplement-layout.js.map +1 -1
  74. package/dist/src/platforms/supplement-state.d.ts +1 -1
  75. package/dist/src/platforms/supplement-state.js +18 -7
  76. package/dist/src/platforms/supplement-state.js.map +1 -1
  77. package/dist/src/portable/commands.js +1 -1
  78. package/dist/src/portable/commands.js.map +1 -1
  79. package/dist/src/portable/materializer.d.ts +4 -0
  80. package/dist/src/portable/materializer.js +8 -1
  81. package/dist/src/portable/materializer.js.map +1 -1
  82. package/dist/src/portable/recovery.d.ts +2 -0
  83. package/dist/src/portable/recovery.js +45 -8
  84. package/dist/src/portable/recovery.js.map +1 -1
  85. package/dist/src/recovery/coordinator.d.ts +1 -1
  86. package/dist/src/recovery/coordinator.js +77 -10
  87. package/dist/src/recovery/coordinator.js.map +1 -1
  88. package/dist/src/recovery/install-concurrency.js +3 -2
  89. package/dist/src/recovery/install-concurrency.js.map +1 -1
  90. package/dist/src/recovery/joint-coordinator.d.ts +7 -0
  91. package/dist/src/recovery/joint-coordinator.js +173 -23
  92. package/dist/src/recovery/joint-coordinator.js.map +1 -1
  93. package/dist/src/recovery/joint-demand.d.ts +14 -2
  94. package/dist/src/recovery/joint-demand.js +54 -7
  95. package/dist/src/recovery/joint-demand.js.map +1 -1
  96. package/dist/src/recovery/receipt.d.ts +15 -4
  97. package/dist/src/recovery/receipt.js +23 -0
  98. package/dist/src/recovery/receipt.js.map +1 -1
  99. package/dist/src/recovery/status.d.ts +20 -8
  100. package/dist/src/recovery/status.js +380 -90
  101. package/dist/src/recovery/status.js.map +1 -1
  102. package/dist/src/review/platform-profile.js +2 -1
  103. package/dist/src/review/platform-profile.js.map +1 -1
  104. package/dist/src/review/skill-materialization.d.ts +1 -0
  105. package/dist/src/review/skill-materialization.js +45 -39
  106. package/dist/src/review/skill-materialization.js.map +1 -1
  107. package/dist/src/review/source-binding.js +5 -1
  108. package/dist/src/review/source-binding.js.map +1 -1
  109. package/dist/src/tui/console-app-v4.js +67 -30
  110. package/dist/src/tui/console-app-v4.js.map +1 -1
  111. package/dist/src/tui/controller-runtime.js +1 -1
  112. package/dist/src/tui/controller-runtime.js.map +1 -1
  113. package/dist/src/tui/controller.d.ts +2 -1
  114. package/dist/src/tui/controller.js +17 -4
  115. package/dist/src/tui/controller.js.map +1 -1
  116. package/dist/src/tui/deployment-view.d.ts +6 -3
  117. package/dist/src/tui/deployment-view.js +39 -10
  118. package/dist/src/tui/deployment-view.js.map +1 -1
  119. package/dist/src/tui/diagnostic-projection.d.ts +7 -1
  120. package/dist/src/tui/diagnostic-projection.js +47 -2
  121. package/dist/src/tui/diagnostic-projection.js.map +1 -1
  122. package/dist/src/tui/entity-cards.d.ts +2 -1
  123. package/dist/src/tui/entity-cards.js +34 -11
  124. package/dist/src/tui/entity-cards.js.map +1 -1
  125. package/dist/src/tui/glossary.js +5 -0
  126. package/dist/src/tui/glossary.js.map +1 -1
  127. package/dist/src/tui/model.js +2 -1
  128. package/dist/src/tui/model.js.map +1 -1
  129. package/dist/src/tui/operation-diagnostic-screens.js +3 -1
  130. package/dist/src/tui/operation-diagnostic-screens.js.map +1 -1
  131. package/dist/src/tui/operation-history.d.ts +6 -0
  132. package/dist/src/tui/operation-history.js +20 -2
  133. package/dist/src/tui/operation-history.js.map +1 -1
  134. package/dist/src/tui/plugin-detail.d.ts +4 -1
  135. package/dist/src/tui/plugin-detail.js +9 -2
  136. package/dist/src/tui/plugin-detail.js.map +1 -1
  137. package/dist/src/tui/scoped-flow.js +34 -16
  138. package/dist/src/tui/scoped-flow.js.map +1 -1
  139. package/dist/src/tui/scoped-inventory.d.ts +6 -2
  140. package/dist/src/tui/scoped-inventory.js +29 -7
  141. package/dist/src/tui/scoped-inventory.js.map +1 -1
  142. package/dist/src/types.d.ts +2 -1
  143. package/dist/src/types.js.map +1 -1
  144. package/dist/src/utils/artifact-plan.js +5 -1
  145. package/dist/src/utils/artifact-plan.js.map +1 -1
  146. package/dist/src/utils/artifact-renderer.d.ts +1 -1
  147. package/dist/src/utils/artifact-renderer.js +29 -8
  148. package/dist/src/utils/artifact-renderer.js.map +1 -1
  149. package/dist/src/utils/catalog-source-references.js +12 -3
  150. package/dist/src/utils/catalog-source-references.js.map +1 -1
  151. package/dist/src/utils/codex-native-observation.d.ts +6 -0
  152. package/dist/src/utils/codex-native-observation.js +32 -3
  153. package/dist/src/utils/codex-native-observation.js.map +1 -1
  154. package/dist/src/utils/component-command-preparation.d.ts +2 -0
  155. package/dist/src/utils/component-command-preparation.js +23 -4
  156. package/dist/src/utils/component-command-preparation.js.map +1 -1
  157. package/dist/src/utils/component-gap.d.ts +4 -0
  158. package/dist/src/utils/component-gap.js +20 -0
  159. package/dist/src/utils/component-gap.js.map +1 -0
  160. package/dist/src/utils/component-resources.js +2 -4
  161. package/dist/src/utils/component-resources.js.map +1 -1
  162. package/dist/src/utils/dynamic-skill-tree.js +2 -32
  163. package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
  164. package/dist/src/utils/native-cli-interruption.d.ts +8 -0
  165. package/dist/src/utils/native-cli-interruption.js +65 -0
  166. package/dist/src/utils/native-cli-interruption.js.map +1 -0
  167. package/dist/src/utils/native-cli.d.ts +5 -0
  168. package/dist/src/utils/native-cli.js +166 -53
  169. package/dist/src/utils/native-cli.js.map +1 -1
  170. package/dist/src/utils/ownership.d.ts +1 -0
  171. package/dist/src/utils/ownership.js +17 -3
  172. package/dist/src/utils/ownership.js.map +1 -1
  173. package/dist/src/utils/package-content.d.ts +7 -0
  174. package/dist/src/utils/package-content.js +70 -0
  175. package/dist/src/utils/package-content.js.map +1 -0
  176. package/dist/src/utils/platform-empty-state.d.ts +31 -6
  177. package/dist/src/utils/platform-empty-state.js +135 -65
  178. package/dist/src/utils/platform-empty-state.js.map +1 -1
  179. package/dist/src/utils/plugin-config-write.js +5 -1
  180. package/dist/src/utils/plugin-config-write.js.map +1 -1
  181. package/dist/src/utils/plugin-scripts.js +19 -8
  182. package/dist/src/utils/plugin-scripts.js.map +1 -1
  183. package/dist/src/utils/process-tree.d.ts +1 -1
  184. package/dist/src/utils/process-tree.js +1 -1
  185. package/dist/src/utils/process-tree.js.map +1 -1
  186. package/dist/src/utils/skill-invocation-warning.d.ts +8 -3
  187. package/dist/src/utils/skill-invocation-warning.js +27 -1
  188. package/dist/src/utils/skill-invocation-warning.js.map +1 -1
  189. 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 diagnostics = [...projected.diagnostics,
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.targets ?? summary.configTargets ?? [] : projected.targets ?? [];
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) => ({ ...target, diagnosticIds: target.diagnosticIds ?? [] })),
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
  : {}),