@lesliechan721/aw 0.1.0-beta.10

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 (508) hide show
  1. package/dist/authoring/assets/aw-config.d.mts +51 -0
  2. package/dist/authoring/assets/aw-config.mjs +1025 -0
  3. package/dist/authoring/assets/aw-config.mjs.map +1 -0
  4. package/dist/authoring/scripts/add-skill.d.mts +2 -0
  5. package/dist/authoring/scripts/add-skill.mjs +355 -0
  6. package/dist/authoring/scripts/add-skill.mjs.map +1 -0
  7. package/dist/authoring/scripts/init-plugin.d.mts +2 -0
  8. package/dist/authoring/scripts/init-plugin.mjs +487 -0
  9. package/dist/authoring/scripts/init-plugin.mjs.map +1 -0
  10. package/dist/authoring/scripts/lib/javascript-import-scanner.d.mts +4 -0
  11. package/dist/authoring/scripts/lib/javascript-import-scanner.mjs +261 -0
  12. package/dist/authoring/scripts/lib/javascript-import-scanner.mjs.map +1 -0
  13. package/dist/authoring/scripts/lib/plugin-root.d.mts +26 -0
  14. package/dist/authoring/scripts/lib/plugin-root.mjs +125 -0
  15. package/dist/authoring/scripts/lib/plugin-root.mjs.map +1 -0
  16. package/dist/authoring/scripts/lib/plugin-version-check.d.mts +69 -0
  17. package/dist/authoring/scripts/lib/plugin-version-check.mjs +563 -0
  18. package/dist/authoring/scripts/lib/plugin-version-check.mjs.map +1 -0
  19. package/dist/authoring/scripts/lib/semver.d.mts +9 -0
  20. package/dist/authoring/scripts/lib/semver.mjs +63 -0
  21. package/dist/authoring/scripts/lib/semver.mjs.map +1 -0
  22. package/dist/authoring/scripts/lib/skill-scaffold.d.mts +111 -0
  23. package/dist/authoring/scripts/lib/skill-scaffold.mjs +353 -0
  24. package/dist/authoring/scripts/lib/skill-scaffold.mjs.map +1 -0
  25. package/dist/authoring/scripts/plugin-status.d.mts +2 -0
  26. package/dist/authoring/scripts/plugin-status.mjs +93 -0
  27. package/dist/authoring/scripts/plugin-status.mjs.map +1 -0
  28. package/dist/authoring/scripts/remove-plugin.d.mts +2 -0
  29. package/dist/authoring/scripts/remove-plugin.mjs +367 -0
  30. package/dist/authoring/scripts/remove-plugin.mjs.map +1 -0
  31. package/dist/authoring/scripts/validate-plugin.d.mts +2 -0
  32. package/dist/authoring/scripts/validate-plugin.mjs +3465 -0
  33. package/dist/authoring/scripts/validate-plugin.mjs.map +1 -0
  34. package/dist/authoring/scripts/validate-skill.d.mts +2 -0
  35. package/dist/authoring/scripts/validate-skill.mjs +126 -0
  36. package/dist/authoring/scripts/validate-skill.mjs.map +1 -0
  37. package/dist/authoring/templates/aw-config-runtime.d.mts +2 -0
  38. package/dist/authoring/templates/aw-config-runtime.mjs +407 -0
  39. package/dist/authoring/templates/aw-config-runtime.mjs.map +1 -0
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.js +8 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/scripts/aw-skill-eval-materializer.d.ts +24 -0
  44. package/dist/scripts/aw-skill-eval-materializer.js +309 -0
  45. package/dist/scripts/aw-skill-eval-materializer.js.map +1 -0
  46. package/dist/scripts/bundle-plugins.d.ts +17 -0
  47. package/dist/scripts/bundle-plugins.js +126 -0
  48. package/dist/scripts/bundle-plugins.js.map +1 -0
  49. package/dist/scripts/plugin-staging.d.ts +26 -0
  50. package/dist/scripts/plugin-staging.js +76 -0
  51. package/dist/scripts/plugin-staging.js.map +1 -0
  52. package/dist/scripts/test-plugin-scripts.d.ts +7 -0
  53. package/dist/scripts/test-plugin-scripts.js +610 -0
  54. package/dist/scripts/test-plugin-scripts.js.map +1 -0
  55. package/dist/src/adapters/helpers.d.ts +44 -0
  56. package/dist/src/adapters/helpers.js +95 -0
  57. package/dist/src/adapters/helpers.js.map +1 -0
  58. package/dist/src/authoring/workspace-commands.d.ts +70 -0
  59. package/dist/src/authoring/workspace-commands.js +158 -0
  60. package/dist/src/authoring/workspace-commands.js.map +1 -0
  61. package/dist/src/commands/aw-capabilities.d.ts +78 -0
  62. package/dist/src/commands/aw-capabilities.js +254 -0
  63. package/dist/src/commands/aw-capabilities.js.map +1 -0
  64. package/dist/src/commands/catalog-dev-source.d.ts +120 -0
  65. package/dist/src/commands/catalog-dev-source.js +434 -0
  66. package/dist/src/commands/catalog-dev-source.js.map +1 -0
  67. package/dist/src/commands/catalog-generation.d.ts +16 -0
  68. package/dist/src/commands/catalog-generation.js +9 -0
  69. package/dist/src/commands/catalog-generation.js.map +1 -0
  70. package/dist/src/commands/catalog-publication-inspection.d.ts +138 -0
  71. package/dist/src/commands/catalog-publication-inspection.js +711 -0
  72. package/dist/src/commands/catalog-publication-inspection.js.map +1 -0
  73. package/dist/src/commands/catalog-publication-journal.d.ts +56 -0
  74. package/dist/src/commands/catalog-publication-journal.js +215 -0
  75. package/dist/src/commands/catalog-publication-journal.js.map +1 -0
  76. package/dist/src/commands/catalog-publication-target.d.ts +18 -0
  77. package/dist/src/commands/catalog-publication-target.js +95 -0
  78. package/dist/src/commands/catalog-publication-target.js.map +1 -0
  79. package/dist/src/commands/catalog-publish.d.ts +103 -0
  80. package/dist/src/commands/catalog-publish.js +804 -0
  81. package/dist/src/commands/catalog-publish.js.map +1 -0
  82. package/dist/src/commands/catalog-source.d.ts +134 -0
  83. package/dist/src/commands/catalog-source.js +377 -0
  84. package/dist/src/commands/catalog-source.js.map +1 -0
  85. package/dist/src/commands/catalog-status.d.ts +56 -0
  86. package/dist/src/commands/catalog-status.js +217 -0
  87. package/dist/src/commands/catalog-status.js.map +1 -0
  88. package/dist/src/commands/catalog-store.d.ts +80 -0
  89. package/dist/src/commands/catalog-store.js +348 -0
  90. package/dist/src/commands/catalog-store.js.map +1 -0
  91. package/dist/src/commands/catalog-workspace-resolution.d.ts +13 -0
  92. package/dist/src/commands/catalog-workspace-resolution.js +42 -0
  93. package/dist/src/commands/catalog-workspace-resolution.js.map +1 -0
  94. package/dist/src/commands/console.d.ts +3 -0
  95. package/dist/src/commands/console.js +44 -0
  96. package/dist/src/commands/console.js.map +1 -0
  97. package/dist/src/commands/dependency-operation-plan.d.ts +58 -0
  98. package/dist/src/commands/dependency-operation-plan.js +261 -0
  99. package/dist/src/commands/dependency-operation-plan.js.map +1 -0
  100. package/dist/src/commands/init.d.ts +25 -0
  101. package/dist/src/commands/init.js +42 -0
  102. package/dist/src/commands/init.js.map +1 -0
  103. package/dist/src/commands/offline-cleanup-evidence.d.ts +59 -0
  104. package/dist/src/commands/offline-cleanup-evidence.js +163 -0
  105. package/dist/src/commands/offline-cleanup-evidence.js.map +1 -0
  106. package/dist/src/commands/operation-plan.d.ts +126 -0
  107. package/dist/src/commands/operation-plan.js +47 -0
  108. package/dist/src/commands/operation-plan.js.map +1 -0
  109. package/dist/src/commands/operation-planner.d.ts +46 -0
  110. package/dist/src/commands/operation-planner.js +139 -0
  111. package/dist/src/commands/operation-planner.js.map +1 -0
  112. package/dist/src/commands/options.d.ts +70 -0
  113. package/dist/src/commands/options.js +194 -0
  114. package/dist/src/commands/options.js.map +1 -0
  115. package/dist/src/commands/plugin-capabilities.d.ts +22 -0
  116. package/dist/src/commands/plugin-capabilities.js +159 -0
  117. package/dist/src/commands/plugin-capabilities.js.map +1 -0
  118. package/dist/src/commands/rebuild-command.d.ts +88 -0
  119. package/dist/src/commands/rebuild-command.js +3626 -0
  120. package/dist/src/commands/rebuild-command.js.map +1 -0
  121. package/dist/src/commands/rebuild-integration.d.ts +190 -0
  122. package/dist/src/commands/rebuild-integration.js +4439 -0
  123. package/dist/src/commands/rebuild-integration.js.map +1 -0
  124. package/dist/src/commands/rebuild-operations.d.ts +100 -0
  125. package/dist/src/commands/rebuild-operations.js +625 -0
  126. package/dist/src/commands/rebuild-operations.js.map +1 -0
  127. package/dist/src/commands/reconcile-operation-plan.d.ts +26 -0
  128. package/dist/src/commands/reconcile-operation-plan.js +28 -0
  129. package/dist/src/commands/reconcile-operation-plan.js.map +1 -0
  130. package/dist/src/commands/review-publication.d.ts +99 -0
  131. package/dist/src/commands/review-publication.js +904 -0
  132. package/dist/src/commands/review-publication.js.map +1 -0
  133. package/dist/src/commands/runtime.d.ts +172 -0
  134. package/dist/src/commands/runtime.js +720 -0
  135. package/dist/src/commands/runtime.js.map +1 -0
  136. package/dist/src/commands/skill-eval.d.ts +33 -0
  137. package/dist/src/commands/skill-eval.js +363 -0
  138. package/dist/src/commands/skill-eval.js.map +1 -0
  139. package/dist/src/commands/status-v6.d.ts +206 -0
  140. package/dist/src/commands/status-v6.js +2175 -0
  141. package/dist/src/commands/status-v6.js.map +1 -0
  142. package/dist/src/commands/sync-command.d.ts +23 -0
  143. package/dist/src/commands/sync-command.js +242 -0
  144. package/dist/src/commands/sync-command.js.map +1 -0
  145. package/dist/src/commands/wizard.d.ts +56 -0
  146. package/dist/src/commands/wizard.js +58 -0
  147. package/dist/src/commands/wizard.js.map +1 -0
  148. package/dist/src/commands/write-commands.d.ts +7 -0
  149. package/dist/src/commands/write-commands.js +190 -0
  150. package/dist/src/commands/write-commands.js.map +1 -0
  151. package/dist/src/constants.d.ts +31 -0
  152. package/dist/src/constants.js +32 -0
  153. package/dist/src/constants.js.map +1 -0
  154. package/dist/src/eval/manifest-v1.d.ts +67 -0
  155. package/dist/src/eval/manifest-v1.js +347 -0
  156. package/dist/src/eval/manifest-v1.js.map +1 -0
  157. package/dist/src/generators/agents.d.ts +3 -0
  158. package/dist/src/generators/agents.js +46 -0
  159. package/dist/src/generators/agents.js.map +1 -0
  160. package/dist/src/generators/hooks.d.ts +15 -0
  161. package/dist/src/generators/hooks.js +76 -0
  162. package/dist/src/generators/hooks.js.map +1 -0
  163. package/dist/src/generators/instructions.d.ts +13 -0
  164. package/dist/src/generators/instructions.js +66 -0
  165. package/dist/src/generators/instructions.js.map +1 -0
  166. package/dist/src/generators/local-plugin.d.ts +56 -0
  167. package/dist/src/generators/local-plugin.js +1373 -0
  168. package/dist/src/generators/local-plugin.js.map +1 -0
  169. package/dist/src/generators/permissions.d.ts +10 -0
  170. package/dist/src/generators/permissions.js +37 -0
  171. package/dist/src/generators/permissions.js.map +1 -0
  172. package/dist/src/generators/shared.d.ts +2 -0
  173. package/dist/src/generators/shared.js +15 -0
  174. package/dist/src/generators/shared.js.map +1 -0
  175. package/dist/src/index.d.ts +41 -0
  176. package/dist/src/index.js +3327 -0
  177. package/dist/src/index.js.map +1 -0
  178. package/dist/src/output/command-receipt.d.ts +87 -0
  179. package/dist/src/output/command-receipt.js +302 -0
  180. package/dist/src/output/command-receipt.js.map +1 -0
  181. package/dist/src/output/debug-log.d.ts +4 -0
  182. package/dist/src/output/debug-log.js +97 -0
  183. package/dist/src/output/debug-log.js.map +1 -0
  184. package/dist/src/output/equivalent-command.d.ts +9 -0
  185. package/dist/src/output/equivalent-command.js +39 -0
  186. package/dist/src/output/equivalent-command.js.map +1 -0
  187. package/dist/src/output/model.d.ts +76 -0
  188. package/dist/src/output/model.js +2 -0
  189. package/dist/src/output/model.js.map +1 -0
  190. package/dist/src/output/rebuild-progress.d.ts +21 -0
  191. package/dist/src/output/rebuild-progress.js +128 -0
  192. package/dist/src/output/rebuild-progress.js.map +1 -0
  193. package/dist/src/output/redact.d.ts +3 -0
  194. package/dist/src/output/redact.js +39 -0
  195. package/dist/src/output/redact.js.map +1 -0
  196. package/dist/src/output/reporter.d.ts +9 -0
  197. package/dist/src/output/reporter.js +133 -0
  198. package/dist/src/output/reporter.js.map +1 -0
  199. package/dist/src/portable/commands.d.ts +124 -0
  200. package/dist/src/portable/commands.js +557 -0
  201. package/dist/src/portable/commands.js.map +1 -0
  202. package/dist/src/portable/materializer.d.ts +50 -0
  203. package/dist/src/portable/materializer.js +462 -0
  204. package/dist/src/portable/materializer.js.map +1 -0
  205. package/dist/src/portable/skills-cli.d.ts +43 -0
  206. package/dist/src/portable/skills-cli.js +148 -0
  207. package/dist/src/portable/skills-cli.js.map +1 -0
  208. package/dist/src/tui/catalog-freshness.d.ts +1 -0
  209. package/dist/src/tui/catalog-freshness.js +2 -0
  210. package/dist/src/tui/catalog-freshness.js.map +1 -0
  211. package/dist/src/tui/catalog-generation.d.ts +21 -0
  212. package/dist/src/tui/catalog-generation.js +116 -0
  213. package/dist/src/tui/catalog-generation.js.map +1 -0
  214. package/dist/src/tui/catalog-sources/projection.d.ts +4 -0
  215. package/dist/src/tui/catalog-sources/projection.js +17 -0
  216. package/dist/src/tui/catalog-sources/projection.js.map +1 -0
  217. package/dist/src/tui/catalog-sources/review.d.ts +3 -0
  218. package/dist/src/tui/catalog-sources/review.js +13 -0
  219. package/dist/src/tui/catalog-sources/review.js.map +1 -0
  220. package/dist/src/tui/catalog-sources/screens.d.ts +12 -0
  221. package/dist/src/tui/catalog-sources/screens.js +33 -0
  222. package/dist/src/tui/catalog-sources/screens.js.map +1 -0
  223. package/dist/src/tui/catalog-sources/session.d.ts +22 -0
  224. package/dist/src/tui/catalog-sources/session.js +225 -0
  225. package/dist/src/tui/catalog-sources/session.js.map +1 -0
  226. package/dist/src/tui/catalog-sources/types.d.ts +41 -0
  227. package/dist/src/tui/catalog-sources/types.js +2 -0
  228. package/dist/src/tui/catalog-sources/types.js.map +1 -0
  229. package/dist/src/tui/components.d.ts +102 -0
  230. package/dist/src/tui/components.js +184 -0
  231. package/dist/src/tui/components.js.map +1 -0
  232. package/dist/src/tui/console-app-v4.d.ts +20 -0
  233. package/dist/src/tui/console-app-v4.js +5066 -0
  234. package/dist/src/tui/console-app-v4.js.map +1 -0
  235. package/dist/src/tui/controller-runtime.d.ts +23 -0
  236. package/dist/src/tui/controller-runtime.js +2011 -0
  237. package/dist/src/tui/controller-runtime.js.map +1 -0
  238. package/dist/src/tui/controller.d.ts +557 -0
  239. package/dist/src/tui/controller.js +2120 -0
  240. package/dist/src/tui/controller.js.map +1 -0
  241. package/dist/src/tui/diagnostics.d.ts +30 -0
  242. package/dist/src/tui/diagnostics.js +71 -0
  243. package/dist/src/tui/diagnostics.js.map +1 -0
  244. package/dist/src/tui/index.d.ts +17 -0
  245. package/dist/src/tui/index.js +17 -0
  246. package/dist/src/tui/index.js.map +1 -0
  247. package/dist/src/tui/input-display.d.ts +8 -0
  248. package/dist/src/tui/input-display.js +36 -0
  249. package/dist/src/tui/input-display.js.map +1 -0
  250. package/dist/src/tui/keys.d.ts +12 -0
  251. package/dist/src/tui/keys.js +22 -0
  252. package/dist/src/tui/keys.js.map +1 -0
  253. package/dist/src/tui/layout.d.ts +12 -0
  254. package/dist/src/tui/layout.js +19 -0
  255. package/dist/src/tui/layout.js.map +1 -0
  256. package/dist/src/tui/model.d.ts +424 -0
  257. package/dist/src/tui/model.js +1493 -0
  258. package/dist/src/tui/model.js.map +1 -0
  259. package/dist/src/tui/operation-review-planner.d.ts +21 -0
  260. package/dist/src/tui/operation-review-planner.js +622 -0
  261. package/dist/src/tui/operation-review-planner.js.map +1 -0
  262. package/dist/src/tui/prompt.d.ts +8 -0
  263. package/dist/src/tui/prompt.js +231 -0
  264. package/dist/src/tui/prompt.js.map +1 -0
  265. package/dist/src/tui/router.d.ts +206 -0
  266. package/dist/src/tui/router.js +137 -0
  267. package/dist/src/tui/router.js.map +1 -0
  268. package/dist/src/tui/runner.d.ts +11 -0
  269. package/dist/src/tui/runner.js +71 -0
  270. package/dist/src/tui/runner.js.map +1 -0
  271. package/dist/src/tui/source-ref-presets.d.ts +3 -0
  272. package/dist/src/tui/source-ref-presets.js +11 -0
  273. package/dist/src/tui/source-ref-presets.js.map +1 -0
  274. package/dist/src/tui/theme.d.ts +26 -0
  275. package/dist/src/tui/theme.js +28 -0
  276. package/dist/src/tui/theme.js.map +1 -0
  277. package/dist/src/tui/viewport.d.ts +20 -0
  278. package/dist/src/tui/viewport.js +29 -0
  279. package/dist/src/tui/viewport.js.map +1 -0
  280. package/dist/src/tui/views.d.ts +57 -0
  281. package/dist/src/tui/views.js +201 -0
  282. package/dist/src/tui/views.js.map +1 -0
  283. package/dist/src/tui/wizard.d.ts +11 -0
  284. package/dist/src/tui/wizard.js +323 -0
  285. package/dist/src/tui/wizard.js.map +1 -0
  286. package/dist/src/types.d.ts +474 -0
  287. package/dist/src/types.js +34 -0
  288. package/dist/src/types.js.map +1 -0
  289. package/dist/src/utils/agent-version.d.ts +19 -0
  290. package/dist/src/utils/agent-version.js +205 -0
  291. package/dist/src/utils/agent-version.js.map +1 -0
  292. package/dist/src/utils/artifact-plan.d.ts +27 -0
  293. package/dist/src/utils/artifact-plan.js +453 -0
  294. package/dist/src/utils/artifact-plan.js.map +1 -0
  295. package/dist/src/utils/artifact-renderer.d.ts +129 -0
  296. package/dist/src/utils/artifact-renderer.js +400 -0
  297. package/dist/src/utils/artifact-renderer.js.map +1 -0
  298. package/dist/src/utils/artifact-request.d.ts +16 -0
  299. package/dist/src/utils/artifact-request.js +42 -0
  300. package/dist/src/utils/artifact-request.js.map +1 -0
  301. package/dist/src/utils/artifact-sources.d.ts +8 -0
  302. package/dist/src/utils/artifact-sources.js +10 -0
  303. package/dist/src/utils/artifact-sources.js.map +1 -0
  304. package/dist/src/utils/aw-home-mutation-lock.d.ts +11 -0
  305. package/dist/src/utils/aw-home-mutation-lock.js +83 -0
  306. package/dist/src/utils/aw-home-mutation-lock.js.map +1 -0
  307. package/dist/src/utils/bundle-integrity.d.ts +2 -0
  308. package/dist/src/utils/bundle-integrity.js +63 -0
  309. package/dist/src/utils/bundle-integrity.js.map +1 -0
  310. package/dist/src/utils/bundle-layout.d.ts +4 -0
  311. package/dist/src/utils/bundle-layout.js +531 -0
  312. package/dist/src/utils/bundle-layout.js.map +1 -0
  313. package/dist/src/utils/catalog-digests.d.ts +18 -0
  314. package/dist/src/utils/catalog-digests.js +156 -0
  315. package/dist/src/utils/catalog-digests.js.map +1 -0
  316. package/dist/src/utils/catalog-generation-control-snapshot.d.ts +11 -0
  317. package/dist/src/utils/catalog-generation-control-snapshot.js +45 -0
  318. package/dist/src/utils/catalog-generation-control-snapshot.js.map +1 -0
  319. package/dist/src/utils/catalog-generation-error.d.ts +16 -0
  320. package/dist/src/utils/catalog-generation-error.js +30 -0
  321. package/dist/src/utils/catalog-generation-error.js.map +1 -0
  322. package/dist/src/utils/catalog-generation-resolver.d.ts +32 -0
  323. package/dist/src/utils/catalog-generation-resolver.js +251 -0
  324. package/dist/src/utils/catalog-generation-resolver.js.map +1 -0
  325. package/dist/src/utils/catalog-generation-service.d.ts +161 -0
  326. package/dist/src/utils/catalog-generation-service.js +1237 -0
  327. package/dist/src/utils/catalog-generation-service.js.map +1 -0
  328. package/dist/src/utils/catalog-generation-state.d.ts +22 -0
  329. package/dist/src/utils/catalog-generation-state.js +192 -0
  330. package/dist/src/utils/catalog-generation-state.js.map +1 -0
  331. package/dist/src/utils/catalog-generation-store.d.ts +57 -0
  332. package/dist/src/utils/catalog-generation-store.js +397 -0
  333. package/dist/src/utils/catalog-generation-store.js.map +1 -0
  334. package/dist/src/utils/catalog-manifest-v7.d.ts +5 -0
  335. package/dist/src/utils/catalog-manifest-v7.js +98 -0
  336. package/dist/src/utils/catalog-manifest-v7.js.map +1 -0
  337. package/dist/src/utils/catalog-operation-context.d.ts +20 -0
  338. package/dist/src/utils/catalog-operation-context.js +141 -0
  339. package/dist/src/utils/catalog-operation-context.js.map +1 -0
  340. package/dist/src/utils/catalog-public-error.d.ts +19 -0
  341. package/dist/src/utils/catalog-public-error.js +100 -0
  342. package/dist/src/utils/catalog-public-error.js.map +1 -0
  343. package/dist/src/utils/catalog-runtime-projection.d.ts +33 -0
  344. package/dist/src/utils/catalog-runtime-projection.js +77 -0
  345. package/dist/src/utils/catalog-runtime-projection.js.map +1 -0
  346. package/dist/src/utils/catalog-snapshot.d.ts +10 -0
  347. package/dist/src/utils/catalog-snapshot.js +20 -0
  348. package/dist/src/utils/catalog-snapshot.js.map +1 -0
  349. package/dist/src/utils/catalog-source-identity.d.ts +5 -0
  350. package/dist/src/utils/catalog-source-identity.js +137 -0
  351. package/dist/src/utils/catalog-source-identity.js.map +1 -0
  352. package/dist/src/utils/catalog-source-impact.d.ts +20 -0
  353. package/dist/src/utils/catalog-source-impact.js +222 -0
  354. package/dist/src/utils/catalog-source-impact.js.map +1 -0
  355. package/dist/src/utils/catalog-source-presentation.d.ts +1 -0
  356. package/dist/src/utils/catalog-source-presentation.js +32 -0
  357. package/dist/src/utils/catalog-source-presentation.js.map +1 -0
  358. package/dist/src/utils/catalog-source-references.d.ts +66 -0
  359. package/dist/src/utils/catalog-source-references.js +1180 -0
  360. package/dist/src/utils/catalog-source-references.js.map +1 -0
  361. package/dist/src/utils/catalog-sources.d.ts +53 -0
  362. package/dist/src/utils/catalog-sources.js +456 -0
  363. package/dist/src/utils/catalog-sources.js.map +1 -0
  364. package/dist/src/utils/codex-config.d.ts +126 -0
  365. package/dist/src/utils/codex-config.js +1032 -0
  366. package/dist/src/utils/codex-config.js.map +1 -0
  367. package/dist/src/utils/codex-manager.d.ts +81 -0
  368. package/dist/src/utils/codex-manager.js +810 -0
  369. package/dist/src/utils/codex-manager.js.map +1 -0
  370. package/dist/src/utils/codex-marketplace-path.d.ts +5 -0
  371. package/dist/src/utils/codex-marketplace-path.js +45 -0
  372. package/dist/src/utils/codex-marketplace-path.js.map +1 -0
  373. package/dist/src/utils/codex-native-observation.d.ts +16 -0
  374. package/dist/src/utils/codex-native-observation.js +22 -0
  375. package/dist/src/utils/codex-native-observation.js.map +1 -0
  376. package/dist/src/utils/codex-native-render-receipt.d.ts +40 -0
  377. package/dist/src/utils/codex-native-render-receipt.js +205 -0
  378. package/dist/src/utils/codex-native-render-receipt.js.map +1 -0
  379. package/dist/src/utils/codex-reconciler.d.ts +128 -0
  380. package/dist/src/utils/codex-reconciler.js +294 -0
  381. package/dist/src/utils/codex-reconciler.js.map +1 -0
  382. package/dist/src/utils/codex-roles.d.ts +71 -0
  383. package/dist/src/utils/codex-roles.js +257 -0
  384. package/dist/src/utils/codex-roles.js.map +1 -0
  385. package/dist/src/utils/codex-shared-native.d.ts +63 -0
  386. package/dist/src/utils/codex-shared-native.js +142 -0
  387. package/dist/src/utils/codex-shared-native.js.map +1 -0
  388. package/dist/src/utils/codex-skill-staging.d.ts +11 -0
  389. package/dist/src/utils/codex-skill-staging.js +8 -0
  390. package/dist/src/utils/codex-skill-staging.js.map +1 -0
  391. package/dist/src/utils/codex-surface-analysis.d.ts +45 -0
  392. package/dist/src/utils/codex-surface-analysis.js +245 -0
  393. package/dist/src/utils/codex-surface-analysis.js.map +1 -0
  394. package/dist/src/utils/config-value.d.ts +3 -0
  395. package/dist/src/utils/config-value.js +23 -0
  396. package/dist/src/utils/config-value.js.map +1 -0
  397. package/dist/src/utils/dynamic-skill-tree.d.ts +36 -0
  398. package/dist/src/utils/dynamic-skill-tree.js +466 -0
  399. package/dist/src/utils/dynamic-skill-tree.js.map +1 -0
  400. package/dist/src/utils/file-rules.d.ts +1 -0
  401. package/dist/src/utils/file-rules.js +2 -0
  402. package/dist/src/utils/file-rules.js.map +1 -0
  403. package/dist/src/utils/git-catalog-provider.d.ts +22 -0
  404. package/dist/src/utils/git-catalog-provider.js +497 -0
  405. package/dist/src/utils/git-catalog-provider.js.map +1 -0
  406. package/dist/src/utils/hooks-contract.d.ts +1 -0
  407. package/dist/src/utils/hooks-contract.js +2 -0
  408. package/dist/src/utils/hooks-contract.js.map +1 -0
  409. package/dist/src/utils/json.d.ts +4 -0
  410. package/dist/src/utils/json.js +29 -0
  411. package/dist/src/utils/json.js.map +1 -0
  412. package/dist/src/utils/local-marketplace.d.ts +41 -0
  413. package/dist/src/utils/local-marketplace.js +316 -0
  414. package/dist/src/utils/local-marketplace.js.map +1 -0
  415. package/dist/src/utils/manifest.d.ts +11 -0
  416. package/dist/src/utils/manifest.js +33 -0
  417. package/dist/src/utils/manifest.js.map +1 -0
  418. package/dist/src/utils/marketplace.d.ts +3 -0
  419. package/dist/src/utils/marketplace.js +76 -0
  420. package/dist/src/utils/marketplace.js.map +1 -0
  421. package/dist/src/utils/multi-source-catalog.d.ts +66 -0
  422. package/dist/src/utils/multi-source-catalog.js +345 -0
  423. package/dist/src/utils/multi-source-catalog.js.map +1 -0
  424. package/dist/src/utils/native-cli.d.ts +118 -0
  425. package/dist/src/utils/native-cli.js +518 -0
  426. package/dist/src/utils/native-cli.js.map +1 -0
  427. package/dist/src/utils/orphan-marketplace-cleanup.d.ts +18 -0
  428. package/dist/src/utils/orphan-marketplace-cleanup.js +198 -0
  429. package/dist/src/utils/orphan-marketplace-cleanup.js.map +1 -0
  430. package/dist/src/utils/ownership.d.ts +194 -0
  431. package/dist/src/utils/ownership.js +723 -0
  432. package/dist/src/utils/ownership.js.map +1 -0
  433. package/dist/src/utils/path-catalog-provider.d.ts +7 -0
  434. package/dist/src/utils/path-catalog-provider.js +74 -0
  435. package/dist/src/utils/path-catalog-provider.js.map +1 -0
  436. package/dist/src/utils/paths.d.ts +40 -0
  437. package/dist/src/utils/paths.js +137 -0
  438. package/dist/src/utils/paths.js.map +1 -0
  439. package/dist/src/utils/platform-entries.d.ts +1 -0
  440. package/dist/src/utils/platform-entries.js +2 -0
  441. package/dist/src/utils/platform-entries.js.map +1 -0
  442. package/dist/src/utils/platform-support.d.ts +1 -0
  443. package/dist/src/utils/platform-support.js +2 -0
  444. package/dist/src/utils/platform-support.js.map +1 -0
  445. package/dist/src/utils/plugin-config-write.d.ts +110 -0
  446. package/dist/src/utils/plugin-config-write.js +773 -0
  447. package/dist/src/utils/plugin-config-write.js.map +1 -0
  448. package/dist/src/utils/plugin-config.d.ts +389 -0
  449. package/dist/src/utils/plugin-config.js +1642 -0
  450. package/dist/src/utils/plugin-config.js.map +1 -0
  451. package/dist/src/utils/plugin-dependencies.d.ts +12 -0
  452. package/dist/src/utils/plugin-dependencies.js +162 -0
  453. package/dist/src/utils/plugin-dependencies.js.map +1 -0
  454. package/dist/src/utils/plugin-intent-state.d.ts +34 -0
  455. package/dist/src/utils/plugin-intent-state.js +289 -0
  456. package/dist/src/utils/plugin-intent-state.js.map +1 -0
  457. package/dist/src/utils/plugin-script-contract.d.ts +1 -0
  458. package/dist/src/utils/plugin-script-contract.js +2 -0
  459. package/dist/src/utils/plugin-script-contract.js.map +1 -0
  460. package/dist/src/utils/plugin-scripts.d.ts +101 -0
  461. package/dist/src/utils/plugin-scripts.js +253 -0
  462. package/dist/src/utils/plugin-scripts.js.map +1 -0
  463. package/dist/src/utils/process-lock.d.ts +47 -0
  464. package/dist/src/utils/process-lock.js +532 -0
  465. package/dist/src/utils/process-lock.js.map +1 -0
  466. package/dist/src/utils/process-tree.d.ts +2 -0
  467. package/dist/src/utils/process-tree.js +2 -0
  468. package/dist/src/utils/process-tree.js.map +1 -0
  469. package/dist/src/utils/project-boundary.d.ts +9 -0
  470. package/dist/src/utils/project-boundary.js +67 -0
  471. package/dist/src/utils/project-boundary.js.map +1 -0
  472. package/dist/src/utils/rendered-contract.d.ts +8 -0
  473. package/dist/src/utils/rendered-contract.js +134 -0
  474. package/dist/src/utils/rendered-contract.js.map +1 -0
  475. package/dist/src/utils/runtime-skill-closure.d.ts +13 -0
  476. package/dist/src/utils/runtime-skill-closure.js +863 -0
  477. package/dist/src/utils/runtime-skill-closure.js.map +1 -0
  478. package/dist/src/utils/safe-fs.d.ts +21 -0
  479. package/dist/src/utils/safe-fs.js +111 -0
  480. package/dist/src/utils/safe-fs.js.map +1 -0
  481. package/dist/src/utils/skill-authoring.d.ts +1 -0
  482. package/dist/src/utils/skill-authoring.js +2 -0
  483. package/dist/src/utils/skill-authoring.js.map +1 -0
  484. package/dist/src/utils/skill-validation.d.ts +37 -0
  485. package/dist/src/utils/skill-validation.js +326 -0
  486. package/dist/src/utils/skill-validation.js.map +1 -0
  487. package/dist/src/utils/slash-commands.d.ts +1 -0
  488. package/dist/src/utils/slash-commands.js +2 -0
  489. package/dist/src/utils/slash-commands.js.map +1 -0
  490. package/dist/src/utils/state-paths.d.ts +14 -0
  491. package/dist/src/utils/state-paths.js +139 -0
  492. package/dist/src/utils/state-paths.js.map +1 -0
  493. package/dist/src/utils/target-eligibility.d.ts +13 -0
  494. package/dist/src/utils/target-eligibility.js +35 -0
  495. package/dist/src/utils/target-eligibility.js.map +1 -0
  496. package/dist/src/utils/target-order.d.ts +7 -0
  497. package/dist/src/utils/target-order.js +10 -0
  498. package/dist/src/utils/target-order.js.map +1 -0
  499. package/dist/src/utils/template-engine.d.ts +1 -0
  500. package/dist/src/utils/template-engine.js +2 -0
  501. package/dist/src/utils/template-engine.js.map +1 -0
  502. package/dist/src/utils/test-path-fence.d.ts +12 -0
  503. package/dist/src/utils/test-path-fence.js +31 -0
  504. package/dist/src/utils/test-path-fence.js.map +1 -0
  505. package/dist/vitest.config.d.ts +2 -0
  506. package/dist/vitest.config.js +16 -0
  507. package/dist/vitest.config.js.map +1 -0
  508. package/package.json +64 -0
@@ -0,0 +1,63 @@
1
+ import type { CodexMarketplaceSnapshot } from './codex-config.js';
2
+ import { type CodexNativeRenderProjection, type CodexNativeRenderReceipt } from './codex-native-render-receipt.js';
3
+ import type { CodexNativePluginObservation } from './codex-native-observation.js';
4
+ export type CodexSharedNativeDiagnostic = 'staleCacheObserved' | 'marketplaceRegistrationForeign' | 'marketplacePathUnsafe' | 'pluginListUnavailable' | 'pluginListDuplicate' | 'pluginNameCollision' | 'pluginListVersionMismatch' | 'manifestMissing' | 'manifestUnreadable' | 'manifestIdentityMismatch' | 'manifestVersionInvalid' | 'payloadPathUnsafe' | 'payloadDigestMismatch' | 'projectionReceiptMissing' | 'projectionReceiptUnreadable' | 'projectionExpectedPayloadDigestMissing' | 'projectionReceiptIdentityMismatch' | 'projectionPayloadDigestMismatch' | 'projectionRenderDrift';
5
+ export type CodexSharedNativeState = 'missing' | 'usable' | 'replaceable' | 'blocked' | 'unobserved';
6
+ export type CodexSharedNativeInspection = {
7
+ state: 'unobserved';
8
+ staleCacheObserved?: true;
9
+ } | {
10
+ state: 'missing';
11
+ staleCacheObserved?: true;
12
+ } | {
13
+ state: 'usable';
14
+ version: string;
15
+ } | {
16
+ state: 'replaceable';
17
+ reason: 'outdated' | 'damaged' | 'renderDrift';
18
+ version?: string;
19
+ desiredVersion?: string;
20
+ diagnostic?: CodexSharedNativeDiagnostic;
21
+ } | {
22
+ state: 'blocked';
23
+ reason: 'foreign' | 'unreadable';
24
+ diagnostic: CodexSharedNativeDiagnostic;
25
+ };
26
+ export type CodexSharedNativeManifestEvidence = {
27
+ state: 'absent';
28
+ } | {
29
+ state: 'unreadable';
30
+ } | {
31
+ state: 'present';
32
+ identity: string;
33
+ version: string;
34
+ payloadDigest?: string;
35
+ payloadPath: string;
36
+ pathSafe: boolean;
37
+ };
38
+ export interface CodexSharedNativeEvidence {
39
+ pluginName: string;
40
+ pluginId: string;
41
+ marketplaceName: string;
42
+ canonicalMarketplaceRoot: string;
43
+ desiredVersion: string;
44
+ expectedPayloadDigest?: string;
45
+ marketplaceRegistration?: CodexMarketplaceSnapshot;
46
+ marketplacePathSafe: boolean;
47
+ observation: CodexNativePluginObservation;
48
+ manifest: CodexSharedNativeManifestEvidence;
49
+ expectedProjectionRequired?: boolean;
50
+ expectedProjectionIdentity?: Pick<CodexNativeRenderProjection, 'logicalPluginId' | 'strategy'>;
51
+ expectedProjection?: CodexNativeRenderProjection;
52
+ projectionReceipt?: {
53
+ state: 'absent';
54
+ } | {
55
+ state: 'unreadable';
56
+ } | {
57
+ state: 'present';
58
+ receipt: CodexNativeRenderReceipt;
59
+ };
60
+ }
61
+ export declare function isCanonicalCodexMarketplaceRegistration(registration: CodexMarketplaceSnapshot | undefined, canonicalMarketplaceRoot: string): boolean;
62
+ export declare function inspectCodexSharedNative(evidence: CodexSharedNativeEvidence): CodexSharedNativeInspection;
63
+ export declare const classifyCodexSharedNativeEvidence: typeof inspectCodexSharedNative;
@@ -0,0 +1,142 @@
1
+ import path from 'node:path';
2
+ import { tryParseStrictSemVer } from './manifest.js';
3
+ import { codexNativeRenderProjectionsEqual, } from './codex-native-render-receipt.js';
4
+ function samePath(left, right) {
5
+ return path.resolve(left) === path.resolve(right);
6
+ }
7
+ export function isCanonicalCodexMarketplaceRegistration(registration, canonicalMarketplaceRoot) {
8
+ return registration?.sourceType === 'local'
9
+ && registration.sourcePointsToManifest === false
10
+ && typeof registration.source === 'string'
11
+ && samePath(registration.source, canonicalMarketplaceRoot);
12
+ }
13
+ function damaged(diagnostic) {
14
+ return { state: 'replaceable', reason: 'damaged', diagnostic };
15
+ }
16
+ function blocked(reason, diagnostic) {
17
+ return { state: 'blocked', reason, diagnostic };
18
+ }
19
+ export function inspectCodexSharedNative(evidence) {
20
+ const expectedPluginId = `${evidence.pluginName}@${evidence.marketplaceName}`;
21
+ if (evidence.pluginId !== expectedPluginId) {
22
+ throw new Error(`Invalid Codex shared native identity: expected ${expectedPluginId}.`);
23
+ }
24
+ if (!tryParseStrictSemVer(evidence.desiredVersion)) {
25
+ throw new Error(`Invalid desired Codex shared native version: ${evidence.desiredVersion}.`);
26
+ }
27
+ if (evidence.expectedPayloadDigest !== undefined
28
+ && !/^sha256:[0-9a-f]{64}$/u.test(evidence.expectedPayloadDigest)) {
29
+ throw new Error('Invalid expected Codex shared native payload digest.');
30
+ }
31
+ if (!evidence.marketplacePathSafe)
32
+ return blocked('foreign', 'marketplacePathUnsafe');
33
+ if (evidence.observation.state === 'unobserved') {
34
+ return evidence.manifest.state === 'absent'
35
+ ? { state: 'unobserved' }
36
+ : { state: 'unobserved', staleCacheObserved: true };
37
+ }
38
+ if (evidence.observation.state === 'failed') {
39
+ return blocked('unreadable', evidence.observation.reason === 'duplicate' ? 'pluginListDuplicate' : 'pluginListUnavailable');
40
+ }
41
+ if (evidence.observation.value === 'absent') {
42
+ return evidence.manifest.state === 'absent'
43
+ ? { state: 'missing' }
44
+ : { state: 'missing', staleCacheObserved: true };
45
+ }
46
+ const listEntry = evidence.observation.entry;
47
+ if (evidence.marketplaceRegistration && !isCanonicalCodexMarketplaceRegistration(evidence.marketplaceRegistration, evidence.canonicalMarketplaceRoot)) {
48
+ return blocked('foreign', 'marketplaceRegistrationForeign');
49
+ }
50
+ if (evidence.manifest.state === 'unreadable')
51
+ return blocked('unreadable', 'manifestUnreadable');
52
+ if (evidence.manifest.state === 'absent') {
53
+ return damaged('manifestMissing');
54
+ }
55
+ if (!evidence.marketplaceRegistration) {
56
+ return blocked('foreign', 'marketplaceRegistrationForeign');
57
+ }
58
+ if (!evidence.manifest.pathSafe)
59
+ return blocked('foreign', 'payloadPathUnsafe');
60
+ if (evidence.manifest.identity !== evidence.pluginId
61
+ && evidence.manifest.identity !== evidence.pluginName) {
62
+ return blocked('foreign', 'manifestIdentityMismatch');
63
+ }
64
+ const projectionExpected = evidence.expectedProjectionRequired
65
+ || evidence.expectedProjection !== undefined;
66
+ let projectionReceipt;
67
+ if (projectionExpected) {
68
+ if (evidence.projectionReceipt === undefined || evidence.projectionReceipt.state === 'absent') {
69
+ return damaged('projectionReceiptMissing');
70
+ }
71
+ if (evidence.projectionReceipt.state === 'unreadable') {
72
+ return blocked('unreadable', 'projectionReceiptUnreadable');
73
+ }
74
+ projectionReceipt = evidence.projectionReceipt.receipt;
75
+ const expectedIdentity = evidence.expectedProjectionIdentity ?? evidence.expectedProjection;
76
+ if (expectedIdentity
77
+ && (projectionReceipt.logicalPluginId !== expectedIdentity.logicalPluginId
78
+ || projectionReceipt.strategy !== expectedIdentity.strategy)) {
79
+ return blocked('foreign', 'projectionReceiptIdentityMismatch');
80
+ }
81
+ }
82
+ if (!tryParseStrictSemVer(evidence.manifest.version)) {
83
+ return damaged('manifestVersionInvalid');
84
+ }
85
+ if (listEntry.version !== undefined && listEntry.version !== evidence.manifest.version) {
86
+ return {
87
+ state: 'replaceable',
88
+ reason: 'outdated',
89
+ version: listEntry.version,
90
+ desiredVersion: evidence.desiredVersion,
91
+ };
92
+ }
93
+ if (evidence.manifest.version !== evidence.desiredVersion) {
94
+ return {
95
+ state: 'replaceable',
96
+ reason: 'outdated',
97
+ version: evidence.manifest.version,
98
+ desiredVersion: evidence.desiredVersion,
99
+ };
100
+ }
101
+ if (projectionExpected) {
102
+ const receipt = projectionReceipt;
103
+ if (evidence.expectedProjection === undefined) {
104
+ return damaged('projectionExpectedPayloadDigestMissing');
105
+ }
106
+ if (evidence.expectedPayloadDigest === undefined) {
107
+ return damaged('projectionExpectedPayloadDigestMissing');
108
+ }
109
+ if (receipt.logicalPluginId !== evidence.expectedProjection.logicalPluginId
110
+ || receipt.strategy !== evidence.expectedProjection.strategy) {
111
+ return blocked('foreign', 'projectionReceiptIdentityMismatch');
112
+ }
113
+ if (evidence.manifest.payloadDigest !== evidence.expectedPayloadDigest
114
+ || evidence.manifest.payloadDigest !== receipt.payloadDigest
115
+ || receipt.payloadDigest !== evidence.expectedPayloadDigest) {
116
+ return damaged('projectionPayloadDigestMismatch');
117
+ }
118
+ if (!codexNativeRenderProjectionsEqual(receipt, evidence.expectedProjection)) {
119
+ return {
120
+ state: 'replaceable',
121
+ reason: 'renderDrift',
122
+ version: evidence.manifest.version,
123
+ desiredVersion: evidence.desiredVersion,
124
+ diagnostic: 'projectionRenderDrift',
125
+ };
126
+ }
127
+ return {
128
+ state: 'usable',
129
+ version: evidence.manifest.version,
130
+ };
131
+ }
132
+ if (evidence.expectedPayloadDigest !== undefined
133
+ && evidence.manifest.payloadDigest !== evidence.expectedPayloadDigest) {
134
+ return damaged('payloadDigestMismatch');
135
+ }
136
+ return {
137
+ state: 'usable',
138
+ version: evidence.manifest.version,
139
+ };
140
+ }
141
+ export const classifyCodexSharedNativeEvidence = inspectCodexSharedNative;
142
+ //# sourceMappingURL=codex-shared-native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex-shared-native.js","sourceRoot":"","sources":["../../../src/utils/codex-shared-native.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,iCAAiC,GAGlC,MAAM,kCAAkC,CAAC;AAoF1C,SAAS,QAAQ,CAAC,IAAY,EAAE,KAAa;IAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,uCAAuC,CACrD,YAAkD,EAClD,wBAAgC;IAEhC,OAAO,YA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C,qBAAqB;eACjE,QAAQ,CAAC,QAAQ,CAAC,aAAa,KAAK,OAAO,CAAC,aAAa;eACzD,OAAO,CAAC,aAAa,KAAK,QAAQ,CAAC,qBAAqB,EAAE,CAAC;YAC9D,OAAO,OAAO,CAAC,iCAAiC,CAAC,CAAC;QACpD,CAAC;QACD,IAAI,CAAC,iCAAiC,CAAC,OAAO,EAAE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;YAC7E,OAAO;gBACL,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,aAAa;gBACrB,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO;gBAClC,cAAc,EAAE,QAAQ,CAAC,cAAc;gBACvC,UAAU,EAAE,uBAAuB;aACpC,CAAC;QACJ,CAAC;QACD,OAAO;YACL,KAAK,EAAE,QAAQ;YACf,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO;SACnC,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,CAAC,qBAAqB,KAAK,SAAS;WAC3C,QAAQ,CAAC,QAAQ,CAAC,aAAa,KAAK,QAAQ,CAAC,qBAAqB,EAAE,CAAC;QACxE,OAAO,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO;QACL,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO;KACnC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,iCAAiC,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { CodexSkillArtifact } from '../types.js';
2
+ import { type DynamicSkillTree } from './dynamic-skill-tree.js';
3
+ export type CodexSkillStagingTree = DynamicSkillTree;
4
+ export declare function createCodexSkillExpectedTree(options: {
5
+ artifact: Pick<CodexSkillArtifact, 'target' | 'skillKey' | 'state' | 'content'>;
6
+ sourceDirs?: string[];
7
+ requireReadme?: boolean;
8
+ requirementsReceipt?: Buffer;
9
+ sourceRequirementsReceiptPolicy?: 'reject' | 'allow' | 'ignore';
10
+ }): Promise<CodexSkillStagingTree>;
11
+ export declare function createCodexSkillStagingTreeContentDigest(tree: CodexSkillStagingTree): string;
@@ -0,0 +1,8 @@
1
+ import { createDynamicSkillExpectedTree, createDynamicSkillTreeContentDigest, } from './dynamic-skill-tree.js';
2
+ export async function createCodexSkillExpectedTree(options) {
3
+ return createDynamicSkillExpectedTree(options);
4
+ }
5
+ export function createCodexSkillStagingTreeContentDigest(tree) {
6
+ return createDynamicSkillTreeContentDigest(tree);
7
+ }
8
+ //# sourceMappingURL=codex-skill-staging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex-skill-staging.js","sourceRoot":"","sources":["../../../src/utils/codex-skill-staging.ts"],"names":[],"mappings":"AACA,OAAO,EACL,8BAA8B,EAC9B,mCAAmC,GAEpC,MAAM,yBAAyB,CAAC;AAIjC,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,OAMlD;IACC,OAAO,8BAA8B,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,IAA2B;IAE3B,OAAO,mCAAmC,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC"}
@@ -0,0 +1,45 @@
1
+ import type { NormalizedPluginManifest, Scope } from '../types.js';
2
+ export declare const QUALIFIED_CODEX_NATIVE_KINDS: readonly ["skill", "mcp", "hook", "app"];
3
+ export type CodexNativeKind = typeof QUALIFIED_CODEX_NATIVE_KINDS[number];
4
+ export type CodexUnsupportedNativeKind = 'slashCommand';
5
+ export type CodexExtensionKind = 'skill' | 'instruction' | 'permission' | 'agent';
6
+ export type CodexSurfaceClassification = 'empty' | 'native' | 'aw-extension' | 'mixed' | 'unsupported';
7
+ export type CodexSurfaceDeliveryOwner = 'none' | 'codex-native' | 'aw' | 'split' | 'unsupported';
8
+ export type CodexScopeOverlap = 'none' | 'native-compatible' | 'aw-owned-conflict';
9
+ export interface CodexSurfaceComponent {
10
+ key: string;
11
+ kind: CodexNativeKind | CodexExtensionKind;
12
+ owner: 'codex-native' | 'aw';
13
+ scopes: Scope[];
14
+ dynamic: boolean;
15
+ name?: string;
16
+ }
17
+ export interface CodexSurfaceOwnerCollision {
18
+ kind: CodexNativeKind | CodexExtensionKind;
19
+ name: string;
20
+ owners: ['codex-native', 'aw'];
21
+ }
22
+ export interface CodexSurfaceAnalysisOptions {
23
+ nativeArtifactNames?: Partial<Record<CodexNativeKind, readonly string[]>>;
24
+ }
25
+ export interface CodexSurfaceAnalysis {
26
+ ok: boolean;
27
+ configInputs: string[];
28
+ nativeKinds: CodexNativeKind[];
29
+ extensionKinds: CodexExtensionKind[];
30
+ unsupportedKinds: CodexUnsupportedNativeKind[];
31
+ classification: CodexSurfaceClassification;
32
+ deliveryOwner: CodexSurfaceDeliveryOwner;
33
+ scopeOverlap: CodexScopeOverlap;
34
+ components: CodexSurfaceComponent[];
35
+ collisions: CodexSurfaceOwnerCollision[];
36
+ missingNativeIdentityKinds: CodexNativeKind[];
37
+ errorCode?: 'codexSurfaceOwnerCollision' | 'codexSurfaceNativeIdentityMissing' | 'codexNativeKindUnsupported';
38
+ }
39
+ export declare class CodexSurfaceAnalysisError extends Error {
40
+ readonly code: 'codexSurfaceOwnerCollision' | 'codexSurfaceNativeIdentityMissing' | 'codexNativeKindUnsupported';
41
+ readonly analysis: CodexSurfaceAnalysis;
42
+ constructor(analysis: CodexSurfaceAnalysis);
43
+ }
44
+ export declare function analyzeCodexSurface(manifest: NormalizedPluginManifest, options?: CodexSurfaceAnalysisOptions): CodexSurfaceAnalysis;
45
+ export declare function assertCodexSurfaceSupported(analysis: CodexSurfaceAnalysis): CodexSurfaceAnalysis;
@@ -0,0 +1,245 @@
1
+ import { resolvePlatformHookDefinitions } from './hooks-contract.js';
2
+ import { resolvePlatformEntries } from './platform-entries.js';
3
+ import { supportsPlatform } from './platform-support.js';
4
+ export const QUALIFIED_CODEX_NATIVE_KINDS = [
5
+ 'skill',
6
+ 'mcp',
7
+ 'hook',
8
+ 'app',
9
+ ];
10
+ export class CodexSurfaceAnalysisError extends Error {
11
+ code;
12
+ analysis;
13
+ constructor(analysis) {
14
+ const code = analysis.errorCode ?? 'codexNativeKindUnsupported';
15
+ super(`${code}: Codex surface delivery is ambiguous or unsupported.`);
16
+ this.name = 'CodexSurfaceAnalysisError';
17
+ this.code = code;
18
+ this.analysis = analysis;
19
+ }
20
+ }
21
+ const BOTH_SCOPES = ['project', 'user'];
22
+ const NATIVE_KIND_ORDER = [
23
+ 'skill',
24
+ 'mcp',
25
+ 'hook',
26
+ 'app',
27
+ 'slashCommand',
28
+ ];
29
+ const EXTENSION_KIND_ORDER = [
30
+ 'skill',
31
+ 'instruction',
32
+ 'permission',
33
+ 'agent',
34
+ ];
35
+ function compareText(left, right) {
36
+ return left < right ? -1 : left > right ? 1 : 0;
37
+ }
38
+ function addNativeComponents(components, kind, key, names) {
39
+ const canonicalNames = [...new Set(names ?? [])].sort(compareText);
40
+ if (canonicalNames.length === 0) {
41
+ components.push({
42
+ key,
43
+ kind,
44
+ owner: 'codex-native',
45
+ scopes: [...BOTH_SCOPES],
46
+ dynamic: false,
47
+ });
48
+ return;
49
+ }
50
+ for (const name of canonicalNames) {
51
+ components.push({
52
+ key: `${key}:${name}`,
53
+ kind,
54
+ owner: 'codex-native',
55
+ scopes: [...BOTH_SCOPES],
56
+ dynamic: false,
57
+ name,
58
+ });
59
+ }
60
+ }
61
+ function addAwComponent(components, component) {
62
+ components.push({ ...component, owner: 'aw' });
63
+ }
64
+ function collectOwnerCollisions(components) {
65
+ const byIdentity = new Map();
66
+ for (const component of components) {
67
+ if (!component.name)
68
+ continue;
69
+ const identity = `${component.kind}\0${component.name}`;
70
+ const owners = byIdentity.get(identity) ?? new Set();
71
+ owners.add(component.owner);
72
+ byIdentity.set(identity, owners);
73
+ }
74
+ return [...byIdentity.entries()]
75
+ .filter(([, owners]) => owners.size > 1)
76
+ .map(([identity]) => {
77
+ const [kind, name] = identity.split('\0');
78
+ return {
79
+ kind,
80
+ name,
81
+ owners: ['codex-native', 'aw'],
82
+ };
83
+ })
84
+ .sort((left, right) => compareText(`${left.kind}\0${left.name}`, `${right.kind}\0${right.name}`));
85
+ }
86
+ export function analyzeCodexSurface(manifest, options = {}) {
87
+ if (!supportsPlatform(manifest, 'codex')) {
88
+ return {
89
+ ok: true,
90
+ configInputs: [],
91
+ nativeKinds: [],
92
+ extensionKinds: [],
93
+ unsupportedKinds: [],
94
+ classification: 'empty',
95
+ deliveryOwner: 'none',
96
+ scopeOverlap: 'none',
97
+ components: [],
98
+ collisions: [],
99
+ missingNativeIdentityKinds: [],
100
+ };
101
+ }
102
+ const components = [];
103
+ const nativeKinds = new Set();
104
+ const extensionKinds = new Set();
105
+ const unsupportedKinds = new Set();
106
+ const declareNative = (kind, key) => {
107
+ nativeKinds.add(kind);
108
+ addNativeComponents(components, kind, key, options.nativeArtifactNames?.[kind]);
109
+ };
110
+ if (manifest.skills)
111
+ declareNative('skill', 'manifest.skills');
112
+ if (manifest.mcpServers)
113
+ declareNative('mcp', 'manifest.mcpServers');
114
+ if (resolvePlatformHookDefinitions(manifest, 'codex').length > 0) {
115
+ declareNative('hook', 'manifest.hooks');
116
+ }
117
+ if (manifest.apps)
118
+ declareNative('app', 'manifest.apps');
119
+ if (manifest.slashCommands)
120
+ unsupportedKinds.add('slashCommand');
121
+ const configInputs = Object.keys(manifest.config?.fields ?? {}).sort(compareText);
122
+ for (const instruction of resolvePlatformEntries(manifest.extensions?.instructions, 'codex')) {
123
+ extensionKinds.add('instruction');
124
+ addAwComponent(components, {
125
+ key: `extensions.instructions:${instruction.name}`,
126
+ kind: 'instruction',
127
+ scopes: [...BOTH_SCOPES],
128
+ dynamic: false,
129
+ name: instruction.name,
130
+ });
131
+ }
132
+ for (const permission of resolvePlatformEntries(manifest.extensions?.permissions, 'codex')) {
133
+ extensionKinds.add('permission');
134
+ addAwComponent(components, {
135
+ key: `extensions.permissions:${permission.name}`,
136
+ kind: 'permission',
137
+ scopes: [...BOTH_SCOPES],
138
+ dynamic: false,
139
+ name: permission.name,
140
+ });
141
+ }
142
+ for (const agent of resolvePlatformEntries(manifest.extensions?.agents, 'codex')) {
143
+ extensionKinds.add('agent');
144
+ addAwComponent(components, {
145
+ key: `extensions.agents:${agent.name}`,
146
+ kind: 'agent',
147
+ scopes: [...BOTH_SCOPES],
148
+ dynamic: false,
149
+ name: agent.name,
150
+ });
151
+ }
152
+ for (const target of manifest.artifacts?.targets ?? []) {
153
+ if (target.platform !== 'codex')
154
+ continue;
155
+ const kind = target.target === 'codex.skill'
156
+ ? 'skill'
157
+ : target.target === 'codex.agentRole'
158
+ ? 'agent'
159
+ : 'instruction';
160
+ if (target.target === 'codex.skill' && target.delivery?.mode === 'codex-native') {
161
+ nativeKinds.add('skill');
162
+ components.push({
163
+ key: `artifacts.targets:${target.id}`,
164
+ kind: 'skill',
165
+ owner: 'codex-native',
166
+ scopes: [...target.scopes],
167
+ dynamic: true,
168
+ name: target.skillKey,
169
+ });
170
+ }
171
+ else {
172
+ extensionKinds.add(kind);
173
+ addAwComponent(components, {
174
+ key: `artifacts.targets:${target.id}`,
175
+ kind,
176
+ scopes: [...target.scopes],
177
+ dynamic: true,
178
+ name: target.skillKey ?? target.roleKey ?? target.id,
179
+ });
180
+ }
181
+ }
182
+ const orderedNativeKinds = NATIVE_KIND_ORDER
183
+ .filter((kind) => kind !== 'slashCommand' && nativeKinds.has(kind));
184
+ const orderedExtensionKinds = EXTENSION_KIND_ORDER.filter((kind) => extensionKinds.has(kind));
185
+ const orderedUnsupportedKinds = NATIVE_KIND_ORDER
186
+ .filter((kind) => kind === 'slashCommand' && unsupportedKinds.has(kind));
187
+ const collisions = collectOwnerCollisions(components);
188
+ const missingNativeIdentityKinds = orderedNativeKinds.filter((kind) => components.some((component) => component.owner === 'aw'
189
+ && component.dynamic
190
+ && component.kind === kind)
191
+ && components.some((component) => component.owner === 'codex-native'
192
+ && component.kind === kind
193
+ && !component.name));
194
+ const errorCode = collisions.length > 0
195
+ ? 'codexSurfaceOwnerCollision'
196
+ : missingNativeIdentityKinds.length > 0
197
+ ? 'codexSurfaceNativeIdentityMissing'
198
+ : orderedUnsupportedKinds.length > 0
199
+ ? 'codexNativeKindUnsupported'
200
+ : undefined;
201
+ const classification = errorCode
202
+ ? 'unsupported'
203
+ : orderedNativeKinds.length > 0 && orderedExtensionKinds.length > 0
204
+ ? 'mixed'
205
+ : orderedNativeKinds.length > 0
206
+ ? 'native'
207
+ : orderedExtensionKinds.length > 0
208
+ ? 'aw-extension'
209
+ : 'empty';
210
+ const deliveryOwner = errorCode
211
+ ? 'unsupported'
212
+ : classification === 'mixed'
213
+ ? 'split'
214
+ : classification === 'native'
215
+ ? 'codex-native'
216
+ : classification === 'aw-extension'
217
+ ? 'aw'
218
+ : 'none';
219
+ return {
220
+ ok: errorCode === undefined,
221
+ configInputs,
222
+ nativeKinds: orderedNativeKinds,
223
+ extensionKinds: orderedExtensionKinds,
224
+ unsupportedKinds: orderedUnsupportedKinds,
225
+ classification,
226
+ deliveryOwner,
227
+ scopeOverlap: errorCode
228
+ ? 'none'
229
+ : orderedExtensionKinds.length > 0
230
+ ? 'aw-owned-conflict'
231
+ : orderedNativeKinds.length > 0
232
+ ? 'native-compatible'
233
+ : 'none',
234
+ components,
235
+ collisions,
236
+ missingNativeIdentityKinds,
237
+ ...(errorCode ? { errorCode } : {}),
238
+ };
239
+ }
240
+ export function assertCodexSurfaceSupported(analysis) {
241
+ if (!analysis.ok)
242
+ throw new CodexSurfaceAnalysisError(analysis);
243
+ return analysis;
244
+ }
245
+ //# sourceMappingURL=codex-surface-analysis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codex-surface-analysis.js","sourceRoot":"","sources":["../../../src/utils/codex-surface-analysis.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,gBA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cAAc;QACd,aAAa;QACb,YAAY,EAAE,SAAS;YACrB,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,qBAAqB,CAAC,MAAM,GAAG,CAAC;gBAChC,CAAC,CAAC,mBAAmB;gBACrB,CAAC,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC;oBAC7B,CAAC,CAAC,mBAAmB;oBACrB,CAAC,CAAC,MAAM;QACd,UAAU;QACV,UAAU;QACV,0BAA0B;QAC1B,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,QAA8B;IAE9B,IAAI,CAAC,QAAQ,CAAC,EAAE;QAAE,MAAM,IAAI,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAChE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const INVALID_CONFIG_JSON_VALUE_MESSAGE = "Invalid JSON value for --value-json: expected a valid JSON literal.";
2
+ export declare function parseConfigValue(value: unknown, valueJson: boolean): unknown;
3
+ export declare function formatConfigCommandValue(value: unknown, valueJson: boolean): string;
@@ -0,0 +1,23 @@
1
+ export const INVALID_CONFIG_JSON_VALUE_MESSAGE = 'Invalid JSON value for --value-json: expected a valid JSON literal.';
2
+ export function parseConfigValue(value, valueJson) {
3
+ if (!valueJson)
4
+ return value;
5
+ try {
6
+ const raw = typeof value === 'string' ? value : JSON.stringify(value);
7
+ if (raw === undefined)
8
+ throw new Error('undefined JSON value');
9
+ return JSON.parse(raw);
10
+ }
11
+ catch {
12
+ throw new Error(INVALID_CONFIG_JSON_VALUE_MESSAGE);
13
+ }
14
+ }
15
+ export function formatConfigCommandValue(value, valueJson) {
16
+ if (!valueJson)
17
+ return String(value);
18
+ if (typeof value === 'string')
19
+ return value;
20
+ const serialized = JSON.stringify(value);
21
+ return serialized === undefined ? String(value) : serialized;
22
+ }
23
+ //# sourceMappingURL=config-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-value.js","sourceRoot":"","sources":["../../../src/utils/config-value.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iCAAiC,GAC5C,qEAAqE,CAAC;AAExE,MAAM,UAAU,gBAAgB,CAAC,KAAc,EAAE,SAAkB;IACjE,IAAI,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IAE7B,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACtE,IAAI,GAAG,KAAK,SAAS;YAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAY,CAAC;IACpC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;AACH,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,KAAc,EAAE,SAAkB;IACzE,IAAI,CAAC,SAAS;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACrC,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,36 @@
1
+ import type { ClaudeSkillArtifact, CodexSkillArtifact } from '../types.js';
2
+ import { type OwnerIdentity } from './ownership.js';
3
+ export declare const SKILL_FILE_PATH = "SKILL.md";
4
+ export declare const CODEX_OPENAI_YAML_PATH = "agents/openai.yaml";
5
+ export declare const AW_PLUGIN_REQUIREMENTS_RECEIPT_PATH = "aw-plugin-requirements.json";
6
+ export interface DynamicSkillTree {
7
+ skillKey: string;
8
+ files: Record<string, Buffer>;
9
+ }
10
+ export declare function validatePortableSkillName(value: string, fieldName?: string): void;
11
+ export declare function validateCodexOpenAiYaml(rawContent: string): void;
12
+ export declare function validateClaudeSkillFrontmatter(rawContent: string, expectedSkillName?: string): void;
13
+ export declare function validatePortableSkillFrontmatter(rawContent: string, expectedSkillName?: string): void;
14
+ export declare function parsePortableSkillFrontmatter(rawContent: string): Record<string, unknown>;
15
+ export declare function validatePortableSkillDirectory(rootDir: string): Promise<DynamicSkillTree>;
16
+ export declare function validatePortableSkillDirectoriesRoot(rootDir: string): Promise<DynamicSkillTree[]>;
17
+ export declare function validateSkillDirectory(rootDir: string, target: CodexSkillArtifact['target'] | ClaudeSkillArtifact['target'], options?: {
18
+ ownerMarkerPolicy?: 'reject' | 'ignore';
19
+ requirementsReceiptPolicy?: 'reject' | 'allow';
20
+ }): Promise<DynamicSkillTree>;
21
+ export declare function validateSkillDirectoriesRoot(rootDir: string, target: CodexSkillArtifact['target'] | ClaudeSkillArtifact['target']): Promise<DynamicSkillTree[]>;
22
+ export declare function createDynamicSkillExpectedTree(options: {
23
+ artifact: Pick<CodexSkillArtifact | ClaudeSkillArtifact, 'target' | 'skillKey' | 'state' | 'content'>;
24
+ sourceDirs?: string[];
25
+ requireReadme?: boolean;
26
+ requirementsReceipt?: Buffer;
27
+ sourceRequirementsReceiptPolicy?: 'reject' | 'allow' | 'ignore';
28
+ }): Promise<DynamicSkillTree>;
29
+ export declare function createDynamicSkillTreeContentDigest(tree: DynamicSkillTree): string;
30
+ export declare function skillDirectoryMatchesExpectedTree(rootDir: string, tree: DynamicSkillTree): Promise<boolean>;
31
+ export declare function writeDynamicSkillTree(rootDir: string, tree: DynamicSkillTree, ownership?: {
32
+ allowedRoot: string;
33
+ identity: OwnerIdentity;
34
+ allowPristineUnowned?: boolean;
35
+ }): Promise<string[]>;
36
+ export declare function readDynamicSkillTree(rootDir: string, target: CodexSkillArtifact['target'] | ClaudeSkillArtifact['target']): Promise<DynamicSkillTree | null>;