@lesliechan721/aw 0.1.0-beta.93 → 0.1.0-beta.95

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 (92) hide show
  1. package/dist/authoring/scripts/add-skill.mjs +1 -1
  2. package/dist/authoring/scripts/init-plugin.mjs +2 -2
  3. package/dist/authoring/scripts/lib/skill-scaffold.d.mts +1 -1
  4. package/dist/authoring/scripts/lib/skill-scaffold.mjs +1 -1
  5. package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
  6. package/dist/authoring/scripts/validate-plugin.mjs +0 -10
  7. package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
  8. package/dist/scripts/test-plugin-scripts.js +2 -2
  9. package/dist/scripts/test-plugin-scripts.js.map +1 -1
  10. package/dist/src/commands/deployment-confirmation.js +13 -0
  11. package/dist/src/commands/deployment-confirmation.js.map +1 -1
  12. package/dist/src/commands/offline-cleanup-evidence.d.ts +1 -1
  13. package/dist/src/commands/offline-cleanup-evidence.js +30 -31
  14. package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
  15. package/dist/src/commands/operation-plan.d.ts +5 -0
  16. package/dist/src/commands/operation-plan.js +2 -0
  17. package/dist/src/commands/operation-plan.js.map +1 -1
  18. package/dist/src/commands/public-lifecycle-result.js +16 -0
  19. package/dist/src/commands/public-lifecycle-result.js.map +1 -1
  20. package/dist/src/commands/public-lifecycle.js +3 -1
  21. package/dist/src/commands/public-lifecycle.js.map +1 -1
  22. package/dist/src/commands/rebuild-command.d.ts +9 -16
  23. package/dist/src/commands/rebuild-command.js +149 -92
  24. package/dist/src/commands/rebuild-command.js.map +1 -1
  25. package/dist/src/commands/rebuild-integration.d.ts +1 -0
  26. package/dist/src/commands/rebuild-integration.js.map +1 -1
  27. package/dist/src/commands/rebuild-platform-integration.d.ts +1 -0
  28. package/dist/src/commands/rebuild-platform-integration.js +26 -15
  29. package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
  30. package/dist/src/commands/status-v6.js +7 -4
  31. package/dist/src/commands/status-v6.js.map +1 -1
  32. package/dist/src/index.js +2 -2
  33. package/dist/src/index.js.map +1 -1
  34. package/dist/src/platforms/contracts.d.ts +23 -1
  35. package/dist/src/platforms/discovery.d.ts +2 -0
  36. package/dist/src/platforms/discovery.js.map +1 -1
  37. package/dist/src/platforms/inspection-native.d.ts +4 -2
  38. package/dist/src/platforms/inspection-native.js +228 -24
  39. package/dist/src/platforms/inspection-native.js.map +1 -1
  40. package/dist/src/platforms/layout.js +15 -0
  41. package/dist/src/platforms/layout.js.map +1 -1
  42. package/dist/src/platforms/lifecycle-native-services.js +68 -2
  43. package/dist/src/platforms/lifecycle-native-services.js.map +1 -1
  44. package/dist/src/platforms/lifecycle-native.js +12 -1
  45. package/dist/src/platforms/lifecycle-native.js.map +1 -1
  46. package/dist/src/platforms/lifecycle.d.ts +3 -1
  47. package/dist/src/platforms/lifecycle.js +133 -12
  48. package/dist/src/platforms/lifecycle.js.map +1 -1
  49. package/dist/src/platforms/retirement-native.d.ts +6 -0
  50. package/dist/src/platforms/retirement-native.js +95 -0
  51. package/dist/src/platforms/retirement-native.js.map +1 -0
  52. package/dist/src/portable/materializer.js +4 -1
  53. package/dist/src/portable/materializer.js.map +1 -1
  54. package/dist/src/recovery/receipt.d.ts +2 -0
  55. package/dist/src/recovery/receipt.js.map +1 -1
  56. package/dist/src/recovery/retirement.js +58 -22
  57. package/dist/src/recovery/retirement.js.map +1 -1
  58. package/dist/src/recovery/status.js +12 -2
  59. package/dist/src/recovery/status.js.map +1 -1
  60. package/dist/src/tui/catalog-generation.d.ts +4 -1
  61. package/dist/src/tui/catalog-generation.js +34 -0
  62. package/dist/src/tui/catalog-generation.js.map +1 -1
  63. package/dist/src/tui/console-app-v4.js +50 -13
  64. package/dist/src/tui/console-app-v4.js.map +1 -1
  65. package/dist/src/tui/controller-runtime.js +16 -8
  66. package/dist/src/tui/controller-runtime.js.map +1 -1
  67. package/dist/src/tui/controller.d.ts +2 -1
  68. package/dist/src/tui/controller.js +14 -5
  69. package/dist/src/tui/controller.js.map +1 -1
  70. package/dist/src/tui/deployment-view.d.ts +1 -0
  71. package/dist/src/tui/deployment-view.js +21 -3
  72. package/dist/src/tui/deployment-view.js.map +1 -1
  73. package/dist/src/tui/entity-cards.js +7 -1
  74. package/dist/src/tui/entity-cards.js.map +1 -1
  75. package/dist/src/tui/model.d.ts +6 -1
  76. package/dist/src/tui/model.js +18 -5
  77. package/dist/src/tui/model.js.map +1 -1
  78. package/dist/src/tui/scoped-inventory.d.ts +9 -1
  79. package/dist/src/tui/scoped-inventory.js +16 -1
  80. package/dist/src/tui/scoped-inventory.js.map +1 -1
  81. package/dist/src/utils/catalog-source-references.d.ts +37 -1
  82. package/dist/src/utils/catalog-source-references.js +361 -94
  83. package/dist/src/utils/catalog-source-references.js.map +1 -1
  84. package/dist/src/utils/codex-config.d.ts +3 -0
  85. package/dist/src/utils/codex-config.js +7 -0
  86. package/dist/src/utils/codex-config.js.map +1 -1
  87. package/dist/src/utils/local-marketplace.d.ts +2 -0
  88. package/dist/src/utils/local-marketplace.js +12 -0
  89. package/dist/src/utils/local-marketplace.js.map +1 -1
  90. package/dist/src/utils/skill-validation.js +0 -5
  91. package/dist/src/utils/skill-validation.js.map +1 -1
  92. 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
  }