@lesliechan721/aw 0.1.0-beta.92 → 0.1.0-beta.94

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 (137) hide show
  1. package/dist/authoring/scripts/validate-plugin.mjs +3 -0
  2. package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
  3. package/dist/src/commands/aw-capabilities.d.ts +1 -1
  4. package/dist/src/commands/aw-capabilities.js +2 -1
  5. package/dist/src/commands/aw-capabilities.js.map +1 -1
  6. package/dist/src/commands/deployment-confirmation.js +13 -0
  7. package/dist/src/commands/deployment-confirmation.js.map +1 -1
  8. package/dist/src/commands/offline-cleanup-evidence.d.ts +1 -1
  9. package/dist/src/commands/offline-cleanup-evidence.js +30 -31
  10. package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
  11. package/dist/src/commands/operation-plan.d.ts +5 -0
  12. package/dist/src/commands/operation-plan.js +2 -0
  13. package/dist/src/commands/operation-plan.js.map +1 -1
  14. package/dist/src/commands/plugin-capabilities.js +7 -2
  15. package/dist/src/commands/plugin-capabilities.js.map +1 -1
  16. package/dist/src/commands/public-lifecycle-result.js +18 -1
  17. package/dist/src/commands/public-lifecycle-result.js.map +1 -1
  18. package/dist/src/commands/public-lifecycle.js +3 -1
  19. package/dist/src/commands/public-lifecycle.js.map +1 -1
  20. package/dist/src/commands/rebuild-command.d.ts +9 -16
  21. package/dist/src/commands/rebuild-command.js +149 -92
  22. package/dist/src/commands/rebuild-command.js.map +1 -1
  23. package/dist/src/commands/rebuild-integration.d.ts +1 -0
  24. package/dist/src/commands/rebuild-integration.js.map +1 -1
  25. package/dist/src/commands/rebuild-platform-integration.d.ts +4 -0
  26. package/dist/src/commands/rebuild-platform-integration.js +106 -60
  27. package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
  28. package/dist/src/commands/status-v6.js +7 -4
  29. package/dist/src/commands/status-v6.js.map +1 -1
  30. package/dist/src/generators/local-plugin.js +20 -12
  31. package/dist/src/generators/local-plugin.js.map +1 -1
  32. package/dist/src/output/component-delivery.js +3 -0
  33. package/dist/src/output/component-delivery.js.map +1 -1
  34. package/dist/src/output/skill-invocation-notices.d.ts +1 -1
  35. package/dist/src/output/skill-invocation-notices.js +5 -5
  36. package/dist/src/output/skill-invocation-notices.js.map +1 -1
  37. package/dist/src/platforms/capabilities.d.ts +7 -15
  38. package/dist/src/platforms/capabilities.js +62 -265
  39. package/dist/src/platforms/capabilities.js.map +1 -1
  40. package/dist/src/platforms/contracts.d.ts +29 -43
  41. package/dist/src/platforms/discovery.d.ts +2 -0
  42. package/dist/src/platforms/discovery.js.map +1 -1
  43. package/dist/src/platforms/inspection-native.d.ts +4 -2
  44. package/dist/src/platforms/inspection-native.js +228 -24
  45. package/dist/src/platforms/inspection-native.js.map +1 -1
  46. package/dist/src/platforms/inspection-pi.js +22 -14
  47. package/dist/src/platforms/inspection-pi.js.map +1 -1
  48. package/dist/src/platforms/layout.js +15 -0
  49. package/dist/src/platforms/layout.js.map +1 -1
  50. package/dist/src/platforms/lifecycle-native-services.js +68 -2
  51. package/dist/src/platforms/lifecycle-native-services.js.map +1 -1
  52. package/dist/src/platforms/lifecycle-native.js +12 -1
  53. package/dist/src/platforms/lifecycle-native.js.map +1 -1
  54. package/dist/src/platforms/lifecycle.d.ts +3 -1
  55. package/dist/src/platforms/lifecycle.js +133 -12
  56. package/dist/src/platforms/lifecycle.js.map +1 -1
  57. package/dist/src/platforms/projection-files.d.ts +4 -3
  58. package/dist/src/platforms/projection-files.js +7 -5
  59. package/dist/src/platforms/projection-files.js.map +1 -1
  60. package/dist/src/platforms/projection.js +6 -4
  61. package/dist/src/platforms/projection.js.map +1 -1
  62. package/dist/src/platforms/retirement-native.d.ts +6 -0
  63. package/dist/src/platforms/retirement-native.js +95 -0
  64. package/dist/src/platforms/retirement-native.js.map +1 -0
  65. package/dist/src/platforms/supplement-layout.js +8 -7
  66. package/dist/src/platforms/supplement-layout.js.map +1 -1
  67. package/dist/src/portable/materializer.js +1 -1
  68. package/dist/src/portable/materializer.js.map +1 -1
  69. package/dist/src/recovery/receipt.d.ts +2 -0
  70. package/dist/src/recovery/receipt.js.map +1 -1
  71. package/dist/src/recovery/retirement.js +58 -22
  72. package/dist/src/recovery/retirement.js.map +1 -1
  73. package/dist/src/recovery/status.js +14 -3
  74. package/dist/src/recovery/status.js.map +1 -1
  75. package/dist/src/review/platform-profile.d.ts +2 -3
  76. package/dist/src/review/platform-profile.js +4 -15
  77. package/dist/src/review/platform-profile.js.map +1 -1
  78. package/dist/src/review/skill-materialization.d.ts +1 -0
  79. package/dist/src/review/skill-materialization.js +15 -7
  80. package/dist/src/review/skill-materialization.js.map +1 -1
  81. package/dist/src/review/source-binding.d.ts +4 -2
  82. package/dist/src/review/source-binding.js +11 -2
  83. package/dist/src/review/source-binding.js.map +1 -1
  84. package/dist/src/tui/catalog-generation.d.ts +4 -1
  85. package/dist/src/tui/catalog-generation.js +34 -0
  86. package/dist/src/tui/catalog-generation.js.map +1 -1
  87. package/dist/src/tui/console-app-v4.js +52 -17
  88. package/dist/src/tui/console-app-v4.js.map +1 -1
  89. package/dist/src/tui/controller-runtime.js +16 -8
  90. package/dist/src/tui/controller-runtime.js.map +1 -1
  91. package/dist/src/tui/controller.d.ts +2 -1
  92. package/dist/src/tui/controller.js +14 -5
  93. package/dist/src/tui/controller.js.map +1 -1
  94. package/dist/src/tui/deployment-view.d.ts +1 -0
  95. package/dist/src/tui/deployment-view.js +23 -3
  96. package/dist/src/tui/deployment-view.js.map +1 -1
  97. package/dist/src/tui/entity-cards.js +7 -1
  98. package/dist/src/tui/entity-cards.js.map +1 -1
  99. package/dist/src/tui/model.d.ts +6 -1
  100. package/dist/src/tui/model.js +18 -5
  101. package/dist/src/tui/model.js.map +1 -1
  102. package/dist/src/tui/scoped-inventory.d.ts +9 -1
  103. package/dist/src/tui/scoped-inventory.js +16 -1
  104. package/dist/src/tui/scoped-inventory.js.map +1 -1
  105. package/dist/src/utils/artifact-plan.d.ts +4 -3
  106. package/dist/src/utils/artifact-plan.js.map +1 -1
  107. package/dist/src/utils/artifact-renderer.d.ts +3 -3
  108. package/dist/src/utils/artifact-renderer.js +16 -18
  109. package/dist/src/utils/artifact-renderer.js.map +1 -1
  110. package/dist/src/utils/artifact-request.d.ts +3 -3
  111. package/dist/src/utils/catalog-source-references.d.ts +37 -1
  112. package/dist/src/utils/catalog-source-references.js +361 -94
  113. package/dist/src/utils/catalog-source-references.js.map +1 -1
  114. package/dist/src/utils/codex-config.d.ts +3 -0
  115. package/dist/src/utils/codex-config.js +7 -0
  116. package/dist/src/utils/codex-config.js.map +1 -1
  117. package/dist/src/utils/component-agent-binding.d.ts +17 -0
  118. package/dist/src/utils/component-agent-binding.js +119 -0
  119. package/dist/src/utils/component-agent-binding.js.map +1 -0
  120. package/dist/src/utils/component-command-preparation.d.ts +2 -0
  121. package/dist/src/utils/component-command-preparation.js +18 -16
  122. package/dist/src/utils/component-command-preparation.js.map +1 -1
  123. package/dist/src/utils/component-gap.js +0 -4
  124. package/dist/src/utils/component-gap.js.map +1 -1
  125. package/dist/src/utils/component-resources.d.ts +9 -7
  126. package/dist/src/utils/component-resources.js +22 -1
  127. package/dist/src/utils/component-resources.js.map +1 -1
  128. package/dist/src/utils/local-marketplace.d.ts +2 -0
  129. package/dist/src/utils/local-marketplace.js +12 -0
  130. package/dist/src/utils/local-marketplace.js.map +1 -1
  131. package/dist/src/utils/platform-empty-state.d.ts +2 -2
  132. package/dist/src/utils/platform-empty-state.js +42 -19
  133. package/dist/src/utils/platform-empty-state.js.map +1 -1
  134. package/dist/src/utils/skill-invocation-warning.d.ts +3 -4
  135. package/dist/src/utils/skill-invocation-warning.js +11 -36
  136. package/dist/src/utils/skill-invocation-warning.js.map +1 -1
  137. package/package.json +3 -3
@@ -11,7 +11,7 @@ import path from 'node:path';
11
11
  import { analyzeCodexSurface } from '../utils/codex-surface-analysis.js';
12
12
  import { catalogSourceErrorCode, sanitizeCatalogSourceError, } from '../utils/catalog-public-error.js';
13
13
  import { calculateCatalogSourceIdentity } from '../utils/catalog-source-identity.js';
14
- import { canonicalMarketplaceRegistrationNames, inventoryCatalogSourceReferences, inventoryLegacyOwnerReferences, } from '../utils/catalog-source-references.js';
14
+ import { legacyCanonicalMarketplaceRegistrationNames, inventoryCatalogSourceReferences, inventoryLegacyOwnerReferences, } from '../utils/catalog-source-references.js';
15
15
  import { readStrictNamespacedMarketplaceRoot } from '../utils/local-marketplace.js';
16
16
  import { readCatalogSourcesConfigSnapshot, resolveCatalogSourceRef } from '../utils/catalog-sources.js';
17
17
  import { formatPluginId, parsePluginId, planPluginSelectorSourceIds, withResolvedMultiSourceCatalog, } from '../utils/multi-source-catalog.js';
@@ -25,7 +25,7 @@ import { createNoopDebugLogger } from '../output/debug-log.js';
25
25
  import { bindNativeCliRunnerSignal, getDefaultNativeCliRunner } from '../utils/native-cli.js';
26
26
  import { createCodexNativeObservationSession, } from '../utils/codex-native-observation.js';
27
27
  import { resolveAwHome } from '../utils/paths.js';
28
- import { codexProjectConfigAliasesUserHome, createProjectLocationKey, getClaudeHome, getCodexHome, resolveRequiredCanonicalRepoRoot, } from '../utils/state-paths.js';
28
+ import { codexProjectConfigAliasesUserHome, createProjectLocationKey, getClaudeHome, getCodexHome, resolveAwHomeCanonical, resolveRequiredCanonicalRepoRoot, } from '../utils/state-paths.js';
29
29
  import { resolveEffectivePluginConfig, resolveProjectArtifactRenderConfig, } from '../utils/plugin-config.js';
30
30
  import { readCodexConfigFile } from '../utils/codex-config.js';
31
31
  import { createEmptyNativeDemandView } from '../utils/native-demand.js';
@@ -1151,7 +1151,7 @@ async function statusCommandV8InSession(options) {
1151
1151
  available: placementEntries,
1152
1152
  codexProjectAllowed: !codexScopePathsAlias,
1153
1153
  });
1154
- const registeredNames = canonicalMarketplaceRegistrationNames(ownerInventory.references, item.resolution.sourceId);
1154
+ const registeredNames = legacyCanonicalMarketplaceRegistrationNames(ownerInventory.references, item.resolution.sourceId);
1155
1155
  if (registeredNames.length > 1) {
1156
1156
  throw new Error('marketplaceIdentityUnavailable: Multiple canonical native marketplace registrations match the source.');
1157
1157
  }
@@ -1304,18 +1304,21 @@ async function statusCommandV8InSession(options) {
1304
1304
  const defaultMarketplaceName = item.resolution.sourceId === resolution.primarySourceId
1305
1305
  ? 'aw'
1306
1306
  : `aw-${item.resolution.sourceId}`;
1307
+ const legacyMarketplaceRoot = path.join(await resolveAwHomeCanonical(env), 'marketplaces', item.resolution.sourceId);
1307
1308
  const marketplaceNameFor = (pluginName, platform, scope) => {
1308
1309
  const liveName = ownerInventory.references.find((reference) => (reference.kind === 'namespacedOwner' || reference.kind === 'namespacedMarketplace')
1309
1310
  && reference.sourceId === item.resolution.sourceId
1310
1311
  && reference.sourceIdentity === item.resolution.sourceIdentity
1311
1312
  && reference.pluginName === pluginName
1313
+ && (reference.kind !== 'namespacedMarketplace' || !reference.marketplaceRoot
1314
+ || reference.marketplaceRoot === legacyMarketplaceRoot)
1312
1315
  && reference.platform === platform
1313
1316
  && reference.scope === scope
1314
1317
  && (scope === 'user' || reference.projectKey === currentProjectKey)
1315
1318
  && reference.marketplaceName)?.marketplaceName;
1316
1319
  if (liveName)
1317
1320
  return liveName;
1318
- const registeredNames = canonicalMarketplaceRegistrationNames(ownerInventory.references, item.resolution.sourceId);
1321
+ const registeredNames = legacyCanonicalMarketplaceRegistrationNames(ownerInventory.references, item.resolution.sourceId);
1319
1322
  if (registeredNames.length > 1) {
1320
1323
  throw new Error('marketplaceIdentityUnavailable: Multiple canonical native marketplace registrations match the source.');
1321
1324
  }