@lesliechan721/aw 0.1.0-beta.64 → 0.1.0-beta.66

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 (304) hide show
  1. package/dist/authoring/assets/aw-runtime-config.mjs +3 -3
  2. package/dist/authoring/assets/aw-runtime-config.mjs.map +1 -1
  3. package/dist/authoring/scripts/add-skill.mjs +3 -17
  4. package/dist/authoring/scripts/add-skill.mjs.map +1 -1
  5. package/dist/authoring/scripts/init-plugin.mjs +1 -0
  6. package/dist/authoring/scripts/init-plugin.mjs.map +1 -1
  7. package/dist/authoring/scripts/lib/plugin-version-check.mjs +1 -1
  8. package/dist/authoring/scripts/lib/skill-scaffold.d.mts +2 -0
  9. package/dist/authoring/scripts/lib/skill-scaffold.mjs +2 -0
  10. package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -1
  11. package/dist/authoring/scripts/validate-plugin.mjs +95 -698
  12. package/dist/authoring/scripts/validate-plugin.mjs.map +1 -1
  13. package/dist/scripts/aw-skill-eval-materializer.d.ts +2 -0
  14. package/dist/scripts/aw-skill-eval-materializer.js +74 -44
  15. package/dist/scripts/aw-skill-eval-materializer.js.map +1 -1
  16. package/dist/scripts/bundle-plugins.js +10 -2
  17. package/dist/scripts/bundle-plugins.js.map +1 -1
  18. package/dist/scripts/plugin-staging.d.ts +1 -1
  19. package/dist/scripts/plugin-staging.js +1 -1
  20. package/dist/scripts/plugin-staging.js.map +1 -1
  21. package/dist/scripts/test-plugin-scripts.js +31 -31
  22. package/dist/scripts/test-plugin-scripts.js.map +1 -1
  23. package/dist/src/commands/aw-capabilities.d.ts +1 -1
  24. package/dist/src/commands/aw-capabilities.js +2 -0
  25. package/dist/src/commands/aw-capabilities.js.map +1 -1
  26. package/dist/src/commands/catalog-publication-inspection.js +2 -2
  27. package/dist/src/commands/catalog-publication-inspection.js.map +1 -1
  28. package/dist/src/commands/console.js +4 -3
  29. package/dist/src/commands/console.js.map +1 -1
  30. package/dist/src/commands/intent-command.d.ts +30 -0
  31. package/dist/src/commands/intent-command.js +164 -0
  32. package/dist/src/commands/intent-command.js.map +1 -0
  33. package/dist/src/commands/operation-plan.d.ts +2 -0
  34. package/dist/src/commands/operation-plan.js +2 -1
  35. package/dist/src/commands/operation-plan.js.map +1 -1
  36. package/dist/src/commands/options.d.ts +3 -11
  37. package/dist/src/commands/options.js +11 -17
  38. package/dist/src/commands/options.js.map +1 -1
  39. package/dist/src/commands/plugin-capabilities.js +27 -33
  40. package/dist/src/commands/plugin-capabilities.js.map +1 -1
  41. package/dist/src/commands/rebuild-command.d.ts +108 -6
  42. package/dist/src/commands/rebuild-command.js +617 -1549
  43. package/dist/src/commands/rebuild-command.js.map +1 -1
  44. package/dist/src/commands/rebuild-integration.d.ts +19 -3
  45. package/dist/src/commands/rebuild-integration.js +500 -459
  46. package/dist/src/commands/rebuild-integration.js.map +1 -1
  47. package/dist/src/commands/rebuild-operations.js +1 -2
  48. package/dist/src/commands/rebuild-operations.js.map +1 -1
  49. package/dist/src/commands/review-inspection.d.ts +2 -2
  50. package/dist/src/commands/review-inspection.js +30 -86
  51. package/dist/src/commands/review-inspection.js.map +1 -1
  52. package/dist/src/commands/review-preparation.js +16 -7
  53. package/dist/src/commands/review-preparation.js.map +1 -1
  54. package/dist/src/commands/skill-eval.d.ts +2 -0
  55. package/dist/src/commands/skill-eval.js +15 -9
  56. package/dist/src/commands/skill-eval.js.map +1 -1
  57. package/dist/src/commands/status-v6.d.ts +38 -5
  58. package/dist/src/commands/status-v6.js +269 -102
  59. package/dist/src/commands/status-v6.js.map +1 -1
  60. package/dist/src/commands/targets-command.d.ts +27 -0
  61. package/dist/src/commands/targets-command.js +77 -0
  62. package/dist/src/commands/targets-command.js.map +1 -0
  63. package/dist/src/commands/write-commands.js +5 -5
  64. package/dist/src/commands/write-commands.js.map +1 -1
  65. package/dist/src/eval/manifest-v1.d.ts +2 -0
  66. package/dist/src/eval/manifest-v1.js +7 -2
  67. package/dist/src/eval/manifest-v1.js.map +1 -1
  68. package/dist/src/generators/local-plugin.d.ts +2 -1
  69. package/dist/src/generators/local-plugin.js +111 -108
  70. package/dist/src/generators/local-plugin.js.map +1 -1
  71. package/dist/src/index.d.ts +10 -17
  72. package/dist/src/index.js +585 -1349
  73. package/dist/src/index.js.map +1 -1
  74. package/dist/src/intent/deployment-preferences.d.ts +63 -0
  75. package/dist/src/intent/deployment-preferences.js +170 -0
  76. package/dist/src/intent/deployment-preferences.js.map +1 -0
  77. package/dist/src/intent/diagnostics.d.ts +11 -0
  78. package/dist/src/intent/diagnostics.js +14 -0
  79. package/dist/src/intent/diagnostics.js.map +1 -0
  80. package/dist/src/intent/intent-codec.d.ts +19 -0
  81. package/dist/src/intent/intent-codec.js +117 -0
  82. package/dist/src/intent/intent-codec.js.map +1 -0
  83. package/dist/src/intent/intent-store.d.ts +43 -0
  84. package/dist/src/intent/intent-store.js +118 -0
  85. package/dist/src/intent/intent-store.js.map +1 -0
  86. package/dist/src/intent/scope-context.d.ts +33 -0
  87. package/dist/src/intent/scope-context.js +145 -0
  88. package/dist/src/intent/scope-context.js.map +1 -0
  89. package/dist/src/intent/work-context.d.ts +13 -0
  90. package/dist/src/intent/work-context.js +22 -0
  91. package/dist/src/intent/work-context.js.map +1 -0
  92. package/dist/src/output/command-receipt.js +16 -9
  93. package/dist/src/output/command-receipt.js.map +1 -1
  94. package/dist/src/portable/commands.d.ts +18 -8
  95. package/dist/src/portable/commands.js +46 -562
  96. package/dist/src/portable/commands.js.map +1 -1
  97. package/dist/src/portable/historical-materialization.d.ts +22 -0
  98. package/dist/src/portable/historical-materialization.js +124 -0
  99. package/dist/src/portable/historical-materialization.js.map +1 -0
  100. package/dist/src/portable/materializer.d.ts +8 -0
  101. package/dist/src/portable/materializer.js +75 -44
  102. package/dist/src/portable/materializer.js.map +1 -1
  103. package/dist/src/portable/recovery-layout.d.ts +17 -0
  104. package/dist/src/portable/recovery-layout.js +55 -0
  105. package/dist/src/portable/recovery-layout.js.map +1 -0
  106. package/dist/src/portable/recovery.d.ts +143 -0
  107. package/dist/src/portable/recovery.js +339 -0
  108. package/dist/src/portable/recovery.js.map +1 -0
  109. package/dist/src/portable/writer.d.ts +64 -0
  110. package/dist/src/portable/writer.js +316 -0
  111. package/dist/src/portable/writer.js.map +1 -0
  112. package/dist/src/recovery/coordinator.d.ts +137 -0
  113. package/dist/src/recovery/coordinator.js +1198 -0
  114. package/dist/src/recovery/coordinator.js.map +1 -0
  115. package/dist/src/recovery/demand.d.ts +44 -0
  116. package/dist/src/recovery/demand.js +178 -0
  117. package/dist/src/recovery/demand.js.map +1 -0
  118. package/dist/src/recovery/joint-coordinator.d.ts +24 -0
  119. package/dist/src/recovery/joint-coordinator.js +770 -0
  120. package/dist/src/recovery/joint-coordinator.js.map +1 -0
  121. package/dist/src/recovery/joint-demand.d.ts +68 -0
  122. package/dist/src/recovery/joint-demand.js +166 -0
  123. package/dist/src/recovery/joint-demand.js.map +1 -0
  124. package/dist/src/recovery/receipt.d.ts +81 -0
  125. package/dist/src/recovery/receipt.js +2 -0
  126. package/dist/src/recovery/receipt.js.map +1 -0
  127. package/dist/src/recovery/retirement.d.ts +45 -0
  128. package/dist/src/recovery/retirement.js +366 -0
  129. package/dist/src/recovery/retirement.js.map +1 -0
  130. package/dist/src/recovery/status.d.ts +108 -0
  131. package/dist/src/recovery/status.js +417 -0
  132. package/dist/src/recovery/status.js.map +1 -0
  133. package/dist/src/recovery/types.d.ts +86 -0
  134. package/dist/src/recovery/types.js +2 -0
  135. package/dist/src/recovery/types.js.map +1 -0
  136. package/dist/src/review/review-profile.d.ts +2 -1
  137. package/dist/src/review/review-profile.js +15 -15
  138. package/dist/src/review/review-profile.js.map +1 -1
  139. package/dist/src/review/review-selection.d.ts +1 -2
  140. package/dist/src/review/review-selection.js +40 -114
  141. package/dist/src/review/review-selection.js.map +1 -1
  142. package/dist/src/review/review-types.d.ts +4 -4
  143. package/dist/src/review/review-types.js.map +1 -1
  144. package/dist/src/review/skill-materialization.js +15 -6
  145. package/dist/src/review/skill-materialization.js.map +1 -1
  146. package/dist/src/review/source-binding.d.ts +14 -4
  147. package/dist/src/review/source-binding.js +62 -117
  148. package/dist/src/review/source-binding.js.map +1 -1
  149. package/dist/src/tui/agent-management.d.ts +23 -0
  150. package/dist/src/tui/agent-management.js +217 -0
  151. package/dist/src/tui/agent-management.js.map +1 -0
  152. package/dist/src/tui/agent-settings.d.ts +44 -0
  153. package/dist/src/tui/agent-settings.js +98 -0
  154. package/dist/src/tui/agent-settings.js.map +1 -0
  155. package/dist/src/tui/components.d.ts +3 -0
  156. package/dist/src/tui/components.js +10 -1
  157. package/dist/src/tui/components.js.map +1 -1
  158. package/dist/src/tui/config-references.d.ts +6 -3
  159. package/dist/src/tui/config-references.js +17 -12
  160. package/dist/src/tui/config-references.js.map +1 -1
  161. package/dist/src/tui/console-app-v4.d.ts +1 -2
  162. package/dist/src/tui/console-app-v4.js +1533 -1047
  163. package/dist/src/tui/console-app-v4.js.map +1 -1
  164. package/dist/src/tui/controller-runtime.d.ts +2 -1
  165. package/dist/src/tui/controller-runtime.js +405 -1626
  166. package/dist/src/tui/controller-runtime.js.map +1 -1
  167. package/dist/src/tui/controller.d.ts +131 -81
  168. package/dist/src/tui/controller.js +307 -227
  169. package/dist/src/tui/controller.js.map +1 -1
  170. package/dist/src/tui/entity-cards.d.ts +2 -2
  171. package/dist/src/tui/entity-cards.js +98 -20
  172. package/dist/src/tui/entity-cards.js.map +1 -1
  173. package/dist/src/tui/glossary.d.ts +2 -0
  174. package/dist/src/tui/glossary.js +20 -0
  175. package/dist/src/tui/glossary.js.map +1 -1
  176. package/dist/src/tui/model.d.ts +28 -10
  177. package/dist/src/tui/model.js +41 -41
  178. package/dist/src/tui/model.js.map +1 -1
  179. package/dist/src/tui/operation-review-planner.d.ts +2 -0
  180. package/dist/src/tui/operation-review-planner.js +58 -122
  181. package/dist/src/tui/operation-review-planner.js.map +1 -1
  182. package/dist/src/tui/plugin-content.js +7 -4
  183. package/dist/src/tui/plugin-content.js.map +1 -1
  184. package/dist/src/tui/plugin-detail.d.ts +22 -3
  185. package/dist/src/tui/plugin-detail.js +113 -26
  186. package/dist/src/tui/plugin-detail.js.map +1 -1
  187. package/dist/src/tui/reader.d.ts +1 -0
  188. package/dist/src/tui/reader.js +3 -1
  189. package/dist/src/tui/reader.js.map +1 -1
  190. package/dist/src/tui/router.d.ts +23 -33
  191. package/dist/src/tui/router.js.map +1 -1
  192. package/dist/src/tui/scoped-flow.d.ts +45 -0
  193. package/dist/src/tui/scoped-flow.js +96 -0
  194. package/dist/src/tui/scoped-flow.js.map +1 -0
  195. package/dist/src/tui/scoped-inventory.d.ts +122 -0
  196. package/dist/src/tui/scoped-inventory.js +225 -0
  197. package/dist/src/tui/scoped-inventory.js.map +1 -0
  198. package/dist/src/tui/screen-registry.d.ts +25 -25
  199. package/dist/src/tui/screen-registry.js +3 -7
  200. package/dist/src/tui/screen-registry.js.map +1 -1
  201. package/dist/src/tui/session-console-app.js +1 -1
  202. package/dist/src/tui/session-console-app.js.map +1 -1
  203. package/dist/src/tui/session-host.js +12 -2
  204. package/dist/src/tui/session-host.js.map +1 -1
  205. package/dist/src/types.d.ts +15 -12
  206. package/dist/src/types.js.map +1 -1
  207. package/dist/src/utils/agent-version.js +2 -0
  208. package/dist/src/utils/agent-version.js.map +1 -1
  209. package/dist/src/utils/artifact-plan.js +13 -6
  210. package/dist/src/utils/artifact-plan.js.map +1 -1
  211. package/dist/src/utils/artifact-renderer.d.ts +6 -3
  212. package/dist/src/utils/artifact-renderer.js +27 -32
  213. package/dist/src/utils/artifact-renderer.js.map +1 -1
  214. package/dist/src/utils/artifact-request.d.ts +1 -0
  215. package/dist/src/utils/artifact-request.js +22 -12
  216. package/dist/src/utils/artifact-request.js.map +1 -1
  217. package/dist/src/utils/artifact-sources.d.ts +2 -2
  218. package/dist/src/utils/bundle-layout.js +18 -16
  219. package/dist/src/utils/bundle-layout.js.map +1 -1
  220. package/dist/src/utils/catalog-digests.js +2 -0
  221. package/dist/src/utils/catalog-digests.js.map +1 -1
  222. package/dist/src/utils/catalog-runtime-projection.d.ts +4 -3
  223. package/dist/src/utils/catalog-runtime-projection.js.map +1 -1
  224. package/dist/src/utils/catalog-source-references.d.ts +5 -0
  225. package/dist/src/utils/catalog-source-references.js +42 -57
  226. package/dist/src/utils/catalog-source-references.js.map +1 -1
  227. package/dist/src/utils/claude-native-render-receipt.d.ts +14 -0
  228. package/dist/src/utils/claude-native-render-receipt.js +26 -0
  229. package/dist/src/utils/claude-native-render-receipt.js.map +1 -0
  230. package/dist/src/utils/claude-skills-root.js +14 -3
  231. package/dist/src/utils/claude-skills-root.js.map +1 -1
  232. package/dist/src/utils/codex-manager.js +6 -12
  233. package/dist/src/utils/codex-manager.js.map +1 -1
  234. package/dist/src/utils/codex-native-observation.js +29 -13
  235. package/dist/src/utils/codex-native-observation.js.map +1 -1
  236. package/dist/src/utils/codex-reconciler.d.ts +2 -5
  237. package/dist/src/utils/codex-reconciler.js +25 -1
  238. package/dist/src/utils/codex-reconciler.js.map +1 -1
  239. package/dist/src/utils/codex-surface-analysis.js +5 -3
  240. package/dist/src/utils/codex-surface-analysis.js.map +1 -1
  241. package/dist/src/utils/local-marketplace.d.ts +14 -2
  242. package/dist/src/utils/local-marketplace.js +209 -42
  243. package/dist/src/utils/local-marketplace.js.map +1 -1
  244. package/dist/src/utils/managed-command-evidence.js +1 -1
  245. package/dist/src/utils/managed-command-evidence.js.map +1 -1
  246. package/dist/src/utils/managed-command-materialization.d.ts +4 -0
  247. package/dist/src/utils/managed-command-materialization.js +15 -6
  248. package/dist/src/utils/managed-command-materialization.js.map +1 -1
  249. package/dist/src/utils/managed-command-store.d.ts +15 -0
  250. package/dist/src/utils/managed-command-store.js +73 -8
  251. package/dist/src/utils/managed-command-store.js.map +1 -1
  252. package/dist/src/utils/native-cli.d.ts +2 -0
  253. package/dist/src/utils/native-cli.js +22 -0
  254. package/dist/src/utils/native-cli.js.map +1 -1
  255. package/dist/src/utils/native-demand.d.ts +10 -0
  256. package/dist/src/utils/native-demand.js +4 -0
  257. package/dist/src/utils/native-demand.js.map +1 -0
  258. package/dist/src/utils/ownership.js +2 -0
  259. package/dist/src/utils/ownership.js.map +1 -1
  260. package/dist/src/utils/paths.js +1 -1
  261. package/dist/src/utils/paths.js.map +1 -1
  262. package/dist/src/utils/platform-support.d.ts +1 -1
  263. package/dist/src/utils/platform-support.js +1 -1
  264. package/dist/src/utils/platform-support.js.map +1 -1
  265. package/dist/src/utils/plugin-config-impact.d.ts +3 -0
  266. package/dist/src/utils/plugin-config-impact.js +115 -273
  267. package/dist/src/utils/plugin-config-impact.js.map +1 -1
  268. package/dist/src/utils/plugin-config-references.d.ts +9 -2
  269. package/dist/src/utils/plugin-config-references.js +75 -85
  270. package/dist/src/utils/plugin-config-references.js.map +1 -1
  271. package/dist/src/utils/plugin-config-write.d.ts +58 -1
  272. package/dist/src/utils/plugin-config-write.js +756 -809
  273. package/dist/src/utils/plugin-config-write.js.map +1 -1
  274. package/dist/src/utils/plugin-config.d.ts +47 -46
  275. package/dist/src/utils/plugin-config.js +292 -833
  276. package/dist/src/utils/plugin-config.js.map +1 -1
  277. package/dist/src/utils/plugin-scripts.d.ts +11 -6
  278. package/dist/src/utils/plugin-scripts.js +52 -35
  279. package/dist/src/utils/plugin-scripts.js.map +1 -1
  280. package/dist/src/utils/runtime-config.js +5 -4
  281. package/dist/src/utils/runtime-config.js.map +1 -1
  282. package/dist/src/utils/runtime-skill-closure.d.ts +2 -2
  283. package/dist/src/utils/runtime-skill-closure.js.map +1 -1
  284. package/dist/src/utils/state-paths.d.ts +8 -3
  285. package/dist/src/utils/state-paths.js +53 -16
  286. package/dist/src/utils/state-paths.js.map +1 -1
  287. package/dist/src/utils/windows-npm-shim.d.ts +2 -0
  288. package/dist/src/utils/windows-npm-shim.js +5 -7
  289. package/dist/src/utils/windows-npm-shim.js.map +1 -1
  290. package/dist/vitest.config.js +1 -0
  291. package/dist/vitest.config.js.map +1 -1
  292. package/package.json +3 -3
  293. package/dist/src/commands/sync-command.d.ts +0 -40
  294. package/dist/src/commands/sync-command.js +0 -254
  295. package/dist/src/commands/sync-command.js.map +0 -1
  296. package/dist/src/portable/skills-cli.d.ts +0 -51
  297. package/dist/src/portable/skills-cli.js +0 -202
  298. package/dist/src/portable/skills-cli.js.map +0 -1
  299. package/dist/src/tui/project-inventory.d.ts +0 -68
  300. package/dist/src/tui/project-inventory.js +0 -203
  301. package/dist/src/tui/project-inventory.js.map +0 -1
  302. package/dist/src/utils/plugin-intent-state.d.ts +0 -49
  303. package/dist/src/utils/plugin-intent-state.js +0 -320
  304. package/dist/src/utils/plugin-intent-state.js.map +0 -1
@@ -1,19 +1,53 @@
1
- import type { CatalogResolution, CommandOptions, InstallCommandOptions, PlatformName, PluginMeta, RebuildReceiptOverallState, ReceiptTargetResult, CommandProducerResult, Scope } from '../types.js';
1
+ import type { CatalogResolution, CommandOptions, InstallCommandOptions, PlatformName, PlatformTarget, PluginMeta, RebuildReceiptOverallState, ReceiptTargetResult, CommandProducerResult, Scope } from '../types.js';
2
2
  import { previewCodexManager, resolveCodexManager, resolveCodexOperationConsumer, type CodexManagerPreview, type ManagedCodexAuthorizer } from '../utils/codex-manager.js';
3
+ import { type CodexManager, type NativeCliRunner } from '../utils/native-cli.js';
3
4
  import { type CodexReconcilePlan } from '../utils/codex-reconciler.js';
4
5
  import { executeRebuildOperation, type RebuildCommand, type RebuildResult, type RebuildTargetIdentity } from './rebuild-operations.js';
5
6
  import { type RebuildExecutionContext } from './rebuild-integration.js';
6
7
  import type { AwHomeMutationToken } from '../utils/aw-home-mutation-lock.js';
7
8
  import { type CatalogOperationContext } from '../utils/catalog-operation-context.js';
8
9
  import type { CatalogGenerationServiceRuntime } from '../utils/catalog-generation-service.js';
9
- import { inventoryCatalogSourceReferences } from '../utils/catalog-source-references.js';
10
+ import { inventoryCatalogSourceReferences, type CatalogSourceReferenceInventory } from '../utils/catalog-source-references.js';
11
+ import { inspectPluginConfigResetTarget } from '../utils/plugin-config.js';
10
12
  import { type OwnedComponent } from '../utils/ownership.js';
11
- import { writePluginIntentState } from '../utils/plugin-intent-state.js';
13
+ import type { NativeDemandView } from '../utils/native-demand.js';
14
+ import type { ScopeContext } from '../intent/scope-context.js';
12
15
  import { type OperationPlan } from './operation-plan.js';
13
16
  import { type ReconcileOperationPlan } from './reconcile-operation-plan.js';
14
17
  import { type OfflineCleanupTargetEvidence } from './offline-cleanup-evidence.js';
18
+ export interface NativeExecutionInput {
19
+ context: ScopeContext;
20
+ /** Complete demand for context.scope, including targets outside this operation. */
21
+ requirements: NativeDemandView;
22
+ selectedTargets: readonly {
23
+ pluginId: string;
24
+ platform: PlatformName;
25
+ scope: Scope;
26
+ }[];
27
+ preserveOtherObservedTargets: true;
28
+ }
15
29
  export type RebuildCommandRuntime = Partial<RebuildExecutionContext> & {
30
+ nativePlannedRetirements?: readonly {
31
+ pluginId: string;
32
+ platform: PlatformName;
33
+ scope: Scope;
34
+ }[];
35
+ nativeTargetExecution?: {
36
+ beforeApply(identity: RebuildTargetIdentity): Promise<CommandProducerResult[]>;
37
+ blocked?(identity: RebuildTargetIdentity, code: string): CommandProducerResult[];
38
+ };
39
+ configApplyPackages?: {
40
+ targets: Array<{
41
+ pluginId: string;
42
+ scope: Scope;
43
+ dependencies: string[];
44
+ }>;
45
+ evidence: unknown;
46
+ execute(pluginId: string, scope: Scope, token: AwHomeMutationToken): Promise<CommandProducerResult[]>;
47
+ blocked?(pluginId: string, scope: Scope, code: string): CommandProducerResult[];
48
+ };
16
49
  awHomeMutationToken?: AwHomeMutationToken;
50
+ executionInput?: NativeExecutionInput;
17
51
  catalogResolution?: CatalogResolution;
18
52
  resolvedCatalogPlugins?: PluginMeta[];
19
53
  namespacedSource?: {
@@ -44,7 +78,6 @@ export type RebuildCommandRuntime = Partial<RebuildExecutionContext> & {
44
78
  codexManagerPreviewer?: typeof previewCodexManager;
45
79
  onPreviewStage?: (stage: 'catalog' | 'inventory' | 'dependencyPlan') => Promise<void> | void;
46
80
  removeObsoleteInstallationContracts?: (directory: string) => Promise<void>;
47
- writePluginIntentState?: typeof writePluginIntentState;
48
81
  executeCleanupOperation?: typeof executeRebuildOperation;
49
82
  operationDiagnosticSink?: (results: readonly RebuildResult[]) => void;
50
83
  };
@@ -97,10 +130,18 @@ export interface RebuildCommandResult {
97
130
  }>;
98
131
  dependencyPlan?: ReconcileOperationPlan;
99
132
  codexReconcilePlans?: CodexReconcilePlan[];
133
+ /** In-memory physical output paths from the prepared targets; never persisted. */
134
+ nativeFootprints?: Array<{
135
+ path: string;
136
+ pluginId: string;
137
+ platform: PlatformName;
138
+ scope: Scope;
139
+ shared: boolean;
140
+ sharedMarketplace?: boolean;
141
+ }>;
100
142
  operationPlan?: OperationPlan;
101
143
  codexManagerPreview?: CodexManagerPreview;
102
144
  offlineCleanupPlans?: OfflineCleanupTargetEvidence[];
103
- removedPluginCleanupIds?: string[];
104
145
  preApplyAuthorization?: PreApplyAuthorizationTarget[];
105
146
  }
106
147
  export interface PreApplyAuthorizationTarget {
@@ -108,7 +149,7 @@ export interface PreApplyAuthorizationTarget {
108
149
  pluginName: string;
109
150
  sourceId: string;
110
151
  sourceIdentity: string;
111
- platform: PlatformName;
152
+ platform: PlatformTarget;
112
153
  scope: Scope;
113
154
  relation: 'requested' | 'direct' | 'transitive';
114
155
  }
@@ -121,6 +162,67 @@ export interface RebuildCommandTestHooks {
121
162
  afterActivationLegacyCleanupQuarantine?: (component: OwnedComponent, quarantinePath: string) => Promise<void>;
122
163
  }
123
164
  export declare function setRebuildCommandTestHooksForTests(hooks: RebuildCommandTestHooks | undefined): void;
165
+ export type RemovedPluginCleanupTarget = {
166
+ pluginId: string;
167
+ pluginName: string;
168
+ sourceId: string;
169
+ sourceIdentity: string;
170
+ logicalIdentity: string;
171
+ snapshotDigest: string;
172
+ marketplaceRoot: string;
173
+ marketplaceName?: string;
174
+ nativeOwnershipVerified: boolean;
175
+ projectionOwnershipVerified: boolean;
176
+ claudeNativeCleanupBlocked: boolean;
177
+ nativeState: 'installed' | 'absent' | 'unknown' | 'unbound';
178
+ nativeObservationFingerprint: string;
179
+ marketplaceEvidenceFingerprint: string;
180
+ projectionFingerprint: string;
181
+ projectionPresent: boolean;
182
+ activationScopes: Array<{
183
+ scope: Scope;
184
+ enabled: boolean | undefined;
185
+ }>;
186
+ configTargets: Array<{
187
+ scope: Scope;
188
+ kind: Awaited<ReturnType<typeof inspectPluginConfigResetTarget>>['kind'];
189
+ fingerprint: string;
190
+ }>;
191
+ evidence: OfflineCleanupTargetEvidence[];
192
+ blockers: string[];
193
+ };
194
+ export declare function inspectRemovedPluginConfig(options: {
195
+ sourceId: string;
196
+ sourceIdentity: string;
197
+ logicalIdentity: string;
198
+ pluginName: string;
199
+ scope: Scope;
200
+ cwd: string;
201
+ env: NodeJS.ProcessEnv;
202
+ }): Promise<{
203
+ kind: Awaited<ReturnType<typeof inspectPluginConfigResetTarget>>['kind'];
204
+ fingerprint: string;
205
+ conflict?: string;
206
+ }>;
207
+ export declare function inspectRemovedPluginCleanup(options: {
208
+ pluginId: string;
209
+ scope: Scope;
210
+ inventory: CatalogSourceReferenceInventory;
211
+ cwd: string;
212
+ env: NodeJS.ProcessEnv;
213
+ nativeCliRunner: NativeCliRunner;
214
+ codexManager?: CodexManager;
215
+ }): Promise<RemovedPluginCleanupTarget | null>;
216
+ export declare function executeRemovedPluginOutputCleanup(options: {
217
+ target: RemovedPluginCleanupTarget;
218
+ selectedTargets: readonly {
219
+ pluginId: string;
220
+ platform: PlatformName;
221
+ scope: Scope;
222
+ }[];
223
+ context: ScopeContext;
224
+ runtime?: RebuildCommandRuntime;
225
+ }): Promise<RebuildCommandResult>;
124
226
  export declare function runRebuildCommand(options: RebuildCommandInvocation): Promise<RebuildCommandResult>;
125
227
  export declare function runRebuildTaskCommand(targets: readonly RebuildTaskTarget[], options: RebuildTaskCommandOptions, runtime?: RebuildCommandRuntime): Promise<RebuildCommandResult>;
126
228
  export {};