@exellix/ai-tasks 7.8.0

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 (524) hide show
  1. package/.env.example +3 -0
  2. package/.metadata/instructions-builders/create-expected-output-instructions.md +195 -0
  3. package/.metadata/readme.md +48 -0
  4. package/.metadata/shared/audit.md +29 -0
  5. package/.metadata/skills/professional-answer +32 -0
  6. package/.metadata/skills/professional-answer.compressed.md +11 -0
  7. package/.metadata/skills/professional-answer.instructions +33 -0
  8. package/.metadata/skills/professional-answer.instructions.md +33 -0
  9. package/.metadata/skills/professional-answer.l2.md +28 -0
  10. package/.metadata/skills/professional-answer.md +32 -0
  11. package/.metadata/skills/professional-answer.prompt +1 -0
  12. package/.metadata/skills/professional-answer.prompt.md +1 -0
  13. package/.metadata/skills/professional-decision.md +26 -0
  14. package/BREAKING-CHANGES.md +43 -0
  15. package/CHANGELOG.md +147 -0
  16. package/README.md +2497 -0
  17. package/RUNTASK_REQUEST.md +369 -0
  18. package/dist/activix/activixClient.d.ts +6 -0
  19. package/dist/activix/activixClient.d.ts.map +1 -0
  20. package/dist/activix/activixClient.js +131 -0
  21. package/dist/activix/activixClient.js.map +1 -0
  22. package/dist/activix/getTaskActivities.d.ts +10 -0
  23. package/dist/activix/getTaskActivities.d.ts.map +1 -0
  24. package/dist/activix/getTaskActivities.js +17 -0
  25. package/dist/activix/getTaskActivities.js.map +1 -0
  26. package/dist/activix/phaseTracking.d.ts +17 -0
  27. package/dist/activix/phaseTracking.d.ts.map +1 -0
  28. package/dist/activix/phaseTracking.js +85 -0
  29. package/dist/activix/phaseTracking.js.map +1 -0
  30. package/dist/aiScoping/index.d.ts +6 -0
  31. package/dist/aiScoping/index.d.ts.map +1 -0
  32. package/dist/aiScoping/index.js +4 -0
  33. package/dist/aiScoping/index.js.map +1 -0
  34. package/dist/aiScoping/runAiScoping.d.ts +36 -0
  35. package/dist/aiScoping/runAiScoping.d.ts.map +1 -0
  36. package/dist/aiScoping/runAiScoping.js +100 -0
  37. package/dist/aiScoping/runAiScoping.js.map +1 -0
  38. package/dist/aiScoping/runScopingCall.d.ts +23 -0
  39. package/dist/aiScoping/runScopingCall.d.ts.map +1 -0
  40. package/dist/aiScoping/runScopingCall.js +50 -0
  41. package/dist/aiScoping/runScopingCall.js.map +1 -0
  42. package/dist/aiScoping/validateAiScoping.d.ts +7 -0
  43. package/dist/aiScoping/validateAiScoping.d.ts.map +1 -0
  44. package/dist/aiScoping/validateAiScoping.js +33 -0
  45. package/dist/aiScoping/validateAiScoping.js.map +1 -0
  46. package/dist/aiSkillsUpstreamExports.d.ts +13 -0
  47. package/dist/aiSkillsUpstreamExports.d.ts.map +1 -0
  48. package/dist/aiSkillsUpstreamExports.js +12 -0
  49. package/dist/aiSkillsUpstreamExports.js.map +1 -0
  50. package/dist/analysis/analyzeRunTaskRequest.d.ts +29 -0
  51. package/dist/analysis/analyzeRunTaskRequest.d.ts.map +1 -0
  52. package/dist/analysis/analyzeRunTaskRequest.js +85 -0
  53. package/dist/analysis/analyzeRunTaskRequest.js.map +1 -0
  54. package/dist/analysis/index.d.ts +3 -0
  55. package/dist/analysis/index.d.ts.map +1 -0
  56. package/dist/analysis/index.js +2 -0
  57. package/dist/analysis/index.js.map +1 -0
  58. package/dist/builders/task-request-builder.d.ts +310 -0
  59. package/dist/builders/task-request-builder.d.ts.map +1 -0
  60. package/dist/builders/task-request-builder.js +581 -0
  61. package/dist/builders/task-request-builder.js.map +1 -0
  62. package/dist/compile/compileTaskConfiguration.d.ts +15 -0
  63. package/dist/compile/compileTaskConfiguration.d.ts.map +1 -0
  64. package/dist/compile/compileTaskConfiguration.js +184 -0
  65. package/dist/compile/compileTaskConfiguration.js.map +1 -0
  66. package/dist/compile/index.d.ts +2 -0
  67. package/dist/compile/index.d.ts.map +1 -0
  68. package/dist/compile/index.js +2 -0
  69. package/dist/compile/index.js.map +1 -0
  70. package/dist/core/task-sdk.d.ts +36 -0
  71. package/dist/core/task-sdk.d.ts.map +1 -0
  72. package/dist/core/task-sdk.js +2432 -0
  73. package/dist/core/task-sdk.js.map +1 -0
  74. package/dist/errors/smartInputValidationError.d.ts +39 -0
  75. package/dist/errors/smartInputValidationError.d.ts.map +1 -0
  76. package/dist/errors/smartInputValidationError.js +97 -0
  77. package/dist/errors/smartInputValidationError.js.map +1 -0
  78. package/dist/errors/taskConfigurationCompileError.d.ts +16 -0
  79. package/dist/errors/taskConfigurationCompileError.d.ts.map +1 -0
  80. package/dist/errors/taskConfigurationCompileError.js +20 -0
  81. package/dist/errors/taskConfigurationCompileError.js.map +1 -0
  82. package/dist/execution-strategies/applyExecutionStrategyOutputs.d.ts +17 -0
  83. package/dist/execution-strategies/applyExecutionStrategyOutputs.d.ts.map +1 -0
  84. package/dist/execution-strategies/applyExecutionStrategyOutputs.js +63 -0
  85. package/dist/execution-strategies/applyExecutionStrategyOutputs.js.map +1 -0
  86. package/dist/execution-strategies/constants.d.ts +14 -0
  87. package/dist/execution-strategies/constants.d.ts.map +1 -0
  88. package/dist/execution-strategies/constants.js +13 -0
  89. package/dist/execution-strategies/constants.js.map +1 -0
  90. package/dist/execution-strategies/executionStrategyCatalogMetadata.d.ts +9 -0
  91. package/dist/execution-strategies/executionStrategyCatalogMetadata.d.ts.map +1 -0
  92. package/dist/execution-strategies/executionStrategyCatalogMetadata.js +37 -0
  93. package/dist/execution-strategies/executionStrategyCatalogMetadata.js.map +1 -0
  94. package/dist/execution-strategies/genericExecutionFuncxEnvelope.d.ts +94 -0
  95. package/dist/execution-strategies/genericExecutionFuncxEnvelope.d.ts.map +1 -0
  96. package/dist/execution-strategies/genericExecutionFuncxEnvelope.js +306 -0
  97. package/dist/execution-strategies/genericExecutionFuncxEnvelope.js.map +1 -0
  98. package/dist/execution-strategies/resolveExecutionStrategies.d.ts +14 -0
  99. package/dist/execution-strategies/resolveExecutionStrategies.d.ts.map +1 -0
  100. package/dist/execution-strategies/resolveExecutionStrategies.js +108 -0
  101. package/dist/execution-strategies/resolveExecutionStrategies.js.map +1 -0
  102. package/dist/execution-strategies/runFuncxExecutionStrategy.d.ts +37 -0
  103. package/dist/execution-strategies/runFuncxExecutionStrategy.d.ts.map +1 -0
  104. package/dist/execution-strategies/runFuncxExecutionStrategy.js +72 -0
  105. package/dist/execution-strategies/runFuncxExecutionStrategy.js.map +1 -0
  106. package/dist/index.d.ts +99 -0
  107. package/dist/index.d.ts.map +1 -0
  108. package/dist/index.js +106 -0
  109. package/dist/index.js.map +1 -0
  110. package/dist/internal/resolveLlmCallForXynthesis.d.ts +52 -0
  111. package/dist/internal/resolveLlmCallForXynthesis.d.ts.map +1 -0
  112. package/dist/internal/resolveLlmCallForXynthesis.js +81 -0
  113. package/dist/internal/resolveLlmCallForXynthesis.js.map +1 -0
  114. package/dist/internal/resolveRunTaskRuntimeKnobs.d.ts +19 -0
  115. package/dist/internal/resolveRunTaskRuntimeKnobs.d.ts.map +1 -0
  116. package/dist/internal/resolveRunTaskRuntimeKnobs.js +52 -0
  117. package/dist/internal/resolveRunTaskRuntimeKnobs.js.map +1 -0
  118. package/dist/internal/runPostStepLlmCall.d.ts +52 -0
  119. package/dist/internal/runPostStepLlmCall.d.ts.map +1 -0
  120. package/dist/internal/runPostStepLlmCall.js +170 -0
  121. package/dist/internal/runPostStepLlmCall.js.map +1 -0
  122. package/dist/localTasks/collectEvidence.d.ts +3 -0
  123. package/dist/localTasks/collectEvidence.d.ts.map +1 -0
  124. package/dist/localTasks/collectEvidence.js +364 -0
  125. package/dist/localTasks/collectEvidence.js.map +1 -0
  126. package/dist/localTasks/decideWebScope.d.ts +3 -0
  127. package/dist/localTasks/decideWebScope.d.ts.map +1 -0
  128. package/dist/localTasks/decideWebScope.js +56 -0
  129. package/dist/localTasks/decideWebScope.js.map +1 -0
  130. package/dist/localTasks/index.d.ts +5 -0
  131. package/dist/localTasks/index.d.ts.map +1 -0
  132. package/dist/localTasks/index.js +19 -0
  133. package/dist/localTasks/index.js.map +1 -0
  134. package/dist/localTasks/narrixAssetPlayground.d.ts +13 -0
  135. package/dist/localTasks/narrixAssetPlayground.d.ts.map +1 -0
  136. package/dist/localTasks/narrixAssetPlayground.js +161 -0
  137. package/dist/localTasks/narrixAssetPlayground.js.map +1 -0
  138. package/dist/localTasks/narrixSubnetPlayground.d.ts +14 -0
  139. package/dist/localTasks/narrixSubnetPlayground.d.ts.map +1 -0
  140. package/dist/localTasks/narrixSubnetPlayground.js +168 -0
  141. package/dist/localTasks/narrixSubnetPlayground.js.map +1 -0
  142. package/dist/localTasks/narrixVulnGroupPlayground.d.ts +13 -0
  143. package/dist/localTasks/narrixVulnGroupPlayground.d.ts.map +1 -0
  144. package/dist/localTasks/narrixVulnGroupPlayground.js +161 -0
  145. package/dist/localTasks/narrixVulnGroupPlayground.js.map +1 -0
  146. package/dist/localTasks/narrixVulnInstancePlayground.d.ts +13 -0
  147. package/dist/localTasks/narrixVulnInstancePlayground.d.ts.map +1 -0
  148. package/dist/localTasks/narrixVulnInstancePlayground.js +165 -0
  149. package/dist/localTasks/narrixVulnInstancePlayground.js.map +1 -0
  150. package/dist/localTasks/nodeCallExport.d.ts +6 -0
  151. package/dist/localTasks/nodeCallExport.d.ts.map +1 -0
  152. package/dist/localTasks/nodeCallExport.js +99 -0
  153. package/dist/localTasks/nodeCallExport.js.map +1 -0
  154. package/dist/localTasks/nodeCallExportBatch.d.ts +3 -0
  155. package/dist/localTasks/nodeCallExportBatch.d.ts.map +1 -0
  156. package/dist/localTasks/nodeCallExportBatch.js +52 -0
  157. package/dist/localTasks/nodeCallExportBatch.js.map +1 -0
  158. package/dist/localTasks/normalizeNarrixResult.d.ts +3 -0
  159. package/dist/localTasks/normalizeNarrixResult.d.ts.map +1 -0
  160. package/dist/localTasks/normalizeNarrixResult.js +106 -0
  161. package/dist/localTasks/normalizeNarrixResult.js.map +1 -0
  162. package/dist/localTasks/registry.d.ts +4 -0
  163. package/dist/localTasks/registry.d.ts.map +1 -0
  164. package/dist/localTasks/registry.js +8 -0
  165. package/dist/localTasks/registry.js.map +1 -0
  166. package/dist/localTasks/types.d.ts +28 -0
  167. package/dist/localTasks/types.d.ts.map +1 -0
  168. package/dist/localTasks/types.js +2 -0
  169. package/dist/localTasks/types.js.map +1 -0
  170. package/dist/localTasks/validateInput.d.ts +3 -0
  171. package/dist/localTasks/validateInput.d.ts.map +1 -0
  172. package/dist/localTasks/validateInput.js +66 -0
  173. package/dist/localTasks/validateInput.js.map +1 -0
  174. package/dist/methods/convenience-methods.d.ts +45 -0
  175. package/dist/methods/convenience-methods.d.ts.map +1 -0
  176. package/dist/methods/convenience-methods.js +39 -0
  177. package/dist/methods/convenience-methods.js.map +1 -0
  178. package/dist/narrix/applyNarrixScope.d.ts +10 -0
  179. package/dist/narrix/applyNarrixScope.d.ts.map +1 -0
  180. package/dist/narrix/applyNarrixScope.js +69 -0
  181. package/dist/narrix/applyNarrixScope.js.map +1 -0
  182. package/dist/narrix/buildNarrixAttachment.d.ts +9 -0
  183. package/dist/narrix/buildNarrixAttachment.d.ts.map +1 -0
  184. package/dist/narrix/buildNarrixAttachment.js +29 -0
  185. package/dist/narrix/buildNarrixAttachment.js.map +1 -0
  186. package/dist/narrix/buildWebScopeScopeInput.d.ts +39 -0
  187. package/dist/narrix/buildWebScopeScopeInput.d.ts.map +1 -0
  188. package/dist/narrix/buildWebScopeScopeInput.js +193 -0
  189. package/dist/narrix/buildWebScopeScopeInput.js.map +1 -0
  190. package/dist/narrix/flags.d.ts +4 -0
  191. package/dist/narrix/flags.d.ts.map +1 -0
  192. package/dist/narrix/flags.js +4 -0
  193. package/dist/narrix/flags.js.map +1 -0
  194. package/dist/narrix/index.d.ts +11 -0
  195. package/dist/narrix/index.d.ts.map +1 -0
  196. package/dist/narrix/index.js +14 -0
  197. package/dist/narrix/index.js.map +1 -0
  198. package/dist/narrix/narrixClient.d.ts +9 -0
  199. package/dist/narrix/narrixClient.d.ts.map +1 -0
  200. package/dist/narrix/narrixClient.js +46 -0
  201. package/dist/narrix/narrixClient.js.map +1 -0
  202. package/dist/narrix/narrixContextMarkdown.d.ts +15 -0
  203. package/dist/narrix/narrixContextMarkdown.d.ts.map +1 -0
  204. package/dist/narrix/narrixContextMarkdown.js +98 -0
  205. package/dist/narrix/narrixContextMarkdown.js.map +1 -0
  206. package/dist/narrix/narrixRunnerModule.d.ts +11 -0
  207. package/dist/narrix/narrixRunnerModule.d.ts.map +1 -0
  208. package/dist/narrix/narrixRunnerModule.js +17 -0
  209. package/dist/narrix/narrixRunnerModule.js.map +1 -0
  210. package/dist/narrix/runNarrixForChat.d.ts +3 -0
  211. package/dist/narrix/runNarrixForChat.d.ts.map +1 -0
  212. package/dist/narrix/runNarrixForChat.js +51 -0
  213. package/dist/narrix/runNarrixForChat.js.map +1 -0
  214. package/dist/narrix/runNarrixForDocs.d.ts +3 -0
  215. package/dist/narrix/runNarrixForDocs.d.ts.map +1 -0
  216. package/dist/narrix/runNarrixForDocs.js +50 -0
  217. package/dist/narrix/runNarrixForDocs.js.map +1 -0
  218. package/dist/narrix/runNarrixForRecord.d.ts +3 -0
  219. package/dist/narrix/runNarrixForRecord.d.ts.map +1 -0
  220. package/dist/narrix/runNarrixForRecord.js +47 -0
  221. package/dist/narrix/runNarrixForRecord.js.map +1 -0
  222. package/dist/narrix/runNarrixForText.d.ts +3 -0
  223. package/dist/narrix/runNarrixForText.d.ts.map +1 -0
  224. package/dist/narrix/runNarrixForText.js +49 -0
  225. package/dist/narrix/runNarrixForText.js.map +1 -0
  226. package/dist/narrix/runnerDispatch.d.ts +12 -0
  227. package/dist/narrix/runnerDispatch.d.ts.map +1 -0
  228. package/dist/narrix/runnerDispatch.js +19 -0
  229. package/dist/narrix/runnerDispatch.js.map +1 -0
  230. package/dist/narrix/seedBundleRouting.d.ts +15 -0
  231. package/dist/narrix/seedBundleRouting.d.ts.map +1 -0
  232. package/dist/narrix/seedBundleRouting.js +46 -0
  233. package/dist/narrix/seedBundleRouting.js.map +1 -0
  234. package/dist/narrix/task.d.ts +4 -0
  235. package/dist/narrix/task.d.ts.map +1 -0
  236. package/dist/narrix/task.js +143 -0
  237. package/dist/narrix/task.js.map +1 -0
  238. package/dist/narrix/types.d.ts +104 -0
  239. package/dist/narrix/types.d.ts.map +1 -0
  240. package/dist/narrix/types.js +3 -0
  241. package/dist/narrix/types.js.map +1 -0
  242. package/dist/narrix/webContextMarkdown.d.ts +54 -0
  243. package/dist/narrix/webContextMarkdown.d.ts.map +1 -0
  244. package/dist/narrix/webContextMarkdown.js +206 -0
  245. package/dist/narrix/webContextMarkdown.js.map +1 -0
  246. package/dist/narrix/webScoper.d.ts +43 -0
  247. package/dist/narrix/webScoper.d.ts.map +1 -0
  248. package/dist/narrix/webScoper.js +144 -0
  249. package/dist/narrix/webScoper.js.map +1 -0
  250. package/dist/observability/debugTrace.d.ts +31 -0
  251. package/dist/observability/debugTrace.d.ts.map +1 -0
  252. package/dist/observability/debugTrace.js +117 -0
  253. package/dist/observability/debugTrace.js.map +1 -0
  254. package/dist/observability/extractAiTasksObservability.d.ts +7 -0
  255. package/dist/observability/extractAiTasksObservability.d.ts.map +1 -0
  256. package/dist/observability/extractAiTasksObservability.js +98 -0
  257. package/dist/observability/extractAiTasksObservability.js.map +1 -0
  258. package/dist/observability/graphExecutionRunLogContract.d.ts +19 -0
  259. package/dist/observability/graphExecutionRunLogContract.d.ts.map +1 -0
  260. package/dist/observability/graphExecutionRunLogContract.js +11 -0
  261. package/dist/observability/graphExecutionRunLogContract.js.map +1 -0
  262. package/dist/packaged-tasks-client.d.ts +66 -0
  263. package/dist/packaged-tasks-client.d.ts.map +1 -0
  264. package/dist/packaged-tasks-client.js +100 -0
  265. package/dist/packaged-tasks-client.js.map +1 -0
  266. package/dist/planWebScopeQuestions/index.d.ts +78 -0
  267. package/dist/planWebScopeQuestions/index.d.ts.map +1 -0
  268. package/dist/planWebScopeQuestions/index.js +282 -0
  269. package/dist/planWebScopeQuestions/index.js.map +1 -0
  270. package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.d.ts +18 -0
  271. package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.d.ts.map +1 -0
  272. package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.js +42 -0
  273. package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.js.map +1 -0
  274. package/dist/post-steps/audit/loadAuditTemplates.d.ts +72 -0
  275. package/dist/post-steps/audit/loadAuditTemplates.d.ts.map +1 -0
  276. package/dist/post-steps/audit/loadAuditTemplates.js +62 -0
  277. package/dist/post-steps/audit/loadAuditTemplates.js.map +1 -0
  278. package/dist/post-steps/audit/parseAuditOutput.d.ts +11 -0
  279. package/dist/post-steps/audit/parseAuditOutput.d.ts.map +1 -0
  280. package/dist/post-steps/audit/parseAuditOutput.js +50 -0
  281. package/dist/post-steps/audit/parseAuditOutput.js.map +1 -0
  282. package/dist/post-steps/audit/runAudit.d.ts +22 -0
  283. package/dist/post-steps/audit/runAudit.d.ts.map +1 -0
  284. package/dist/post-steps/audit/runAudit.js +406 -0
  285. package/dist/post-steps/audit/runAudit.js.map +1 -0
  286. package/dist/post-steps/audit/runAuditCall.d.ts +23 -0
  287. package/dist/post-steps/audit/runAuditCall.d.ts.map +1 -0
  288. package/dist/post-steps/audit/runAuditCall.js +32 -0
  289. package/dist/post-steps/audit/runAuditCall.js.map +1 -0
  290. package/dist/post-steps/polish/loadPolishTemplates.d.ts +35 -0
  291. package/dist/post-steps/polish/loadPolishTemplates.d.ts.map +1 -0
  292. package/dist/post-steps/polish/loadPolishTemplates.js +38 -0
  293. package/dist/post-steps/polish/loadPolishTemplates.js.map +1 -0
  294. package/dist/post-steps/polish/parsePolishOutput.d.ts +6 -0
  295. package/dist/post-steps/polish/parsePolishOutput.d.ts.map +1 -0
  296. package/dist/post-steps/polish/parsePolishOutput.js +47 -0
  297. package/dist/post-steps/polish/parsePolishOutput.js.map +1 -0
  298. package/dist/post-steps/polish/runPolish.d.ts +24 -0
  299. package/dist/post-steps/polish/runPolish.d.ts.map +1 -0
  300. package/dist/post-steps/polish/runPolish.js +147 -0
  301. package/dist/post-steps/polish/runPolish.js.map +1 -0
  302. package/dist/post-steps/polish/runPolishCall.d.ts +22 -0
  303. package/dist/post-steps/polish/runPolishCall.d.ts.map +1 -0
  304. package/dist/post-steps/polish/runPolishCall.js +32 -0
  305. package/dist/post-steps/polish/runPolishCall.js.map +1 -0
  306. package/dist/post-steps/resolvePostStepConfig.d.ts +58 -0
  307. package/dist/post-steps/resolvePostStepConfig.d.ts.map +1 -0
  308. package/dist/post-steps/resolvePostStepConfig.js +105 -0
  309. package/dist/post-steps/resolvePostStepConfig.js.map +1 -0
  310. package/dist/rendrixUpstreamExports.d.ts +7 -0
  311. package/dist/rendrixUpstreamExports.d.ts.map +1 -0
  312. package/dist/rendrixUpstreamExports.js +6 -0
  313. package/dist/rendrixUpstreamExports.js.map +1 -0
  314. package/dist/skillCatalogExports.d.ts +8 -0
  315. package/dist/skillCatalogExports.d.ts.map +1 -0
  316. package/dist/skillCatalogExports.js +8 -0
  317. package/dist/skillCatalogExports.js.map +1 -0
  318. package/dist/strategies/direct-execution-strategy.d.ts +31 -0
  319. package/dist/strategies/direct-execution-strategy.d.ts.map +1 -0
  320. package/dist/strategies/direct-execution-strategy.js +107 -0
  321. package/dist/strategies/direct-execution-strategy.js.map +1 -0
  322. package/dist/strategies/execution-strategy.interface.d.ts +31 -0
  323. package/dist/strategies/execution-strategy.interface.d.ts.map +1 -0
  324. package/dist/strategies/execution-strategy.interface.js +2 -0
  325. package/dist/strategies/execution-strategy.interface.js.map +1 -0
  326. package/dist/strategies/index.d.ts +9 -0
  327. package/dist/strategies/index.d.ts.map +1 -0
  328. package/dist/strategies/index.js +8 -0
  329. package/dist/strategies/index.js.map +1 -0
  330. package/dist/strategies/strategy-factory.d.ts +45 -0
  331. package/dist/strategies/strategy-factory.d.ts.map +1 -0
  332. package/dist/strategies/strategy-factory.js +59 -0
  333. package/dist/strategies/strategy-factory.js.map +1 -0
  334. package/dist/synthesis/index.d.ts +9 -0
  335. package/dist/synthesis/index.d.ts.map +1 -0
  336. package/dist/synthesis/index.js +8 -0
  337. package/dist/synthesis/index.js.map +1 -0
  338. package/dist/synthesis/resolveSourceMaterial.d.ts +35 -0
  339. package/dist/synthesis/resolveSourceMaterial.d.ts.map +1 -0
  340. package/dist/synthesis/resolveSourceMaterial.js +152 -0
  341. package/dist/synthesis/resolveSourceMaterial.js.map +1 -0
  342. package/dist/synthesis/runStructuredSynthesisRobust.d.ts +42 -0
  343. package/dist/synthesis/runStructuredSynthesisRobust.d.ts.map +1 -0
  344. package/dist/synthesis/runStructuredSynthesisRobust.js +303 -0
  345. package/dist/synthesis/runStructuredSynthesisRobust.js.map +1 -0
  346. package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts +19 -0
  347. package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts.map +1 -0
  348. package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js +242 -0
  349. package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js.map +1 -0
  350. package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts +171 -0
  351. package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts.map +1 -0
  352. package/dist/task-strategies/canonicalInputExecutionStrategies.js +117 -0
  353. package/dist/task-strategies/canonicalInputExecutionStrategies.js.map +1 -0
  354. package/dist/task-strategies/canonicalNarrixModes.d.ts +31 -0
  355. package/dist/task-strategies/canonicalNarrixModes.d.ts.map +1 -0
  356. package/dist/task-strategies/canonicalNarrixModes.js +35 -0
  357. package/dist/task-strategies/canonicalNarrixModes.js.map +1 -0
  358. package/dist/task-strategies/canonicalTaskStrategies.d.ts +104 -0
  359. package/dist/task-strategies/canonicalTaskStrategies.d.ts.map +1 -0
  360. package/dist/task-strategies/canonicalTaskStrategies.js +77 -0
  361. package/dist/task-strategies/canonicalTaskStrategies.js.map +1 -0
  362. package/dist/task-strategies/cataloxCatalogViews.d.ts +55 -0
  363. package/dist/task-strategies/cataloxCatalogViews.d.ts.map +1 -0
  364. package/dist/task-strategies/cataloxCatalogViews.js +65 -0
  365. package/dist/task-strategies/cataloxCatalogViews.js.map +1 -0
  366. package/dist/task-strategies/constants.d.ts +49 -0
  367. package/dist/task-strategies/constants.d.ts.map +1 -0
  368. package/dist/task-strategies/constants.js +49 -0
  369. package/dist/task-strategies/constants.js.map +1 -0
  370. package/dist/task-strategies/index.d.ts +22 -0
  371. package/dist/task-strategies/index.d.ts.map +1 -0
  372. package/dist/task-strategies/index.js +13 -0
  373. package/dist/task-strategies/index.js.map +1 -0
  374. package/dist/task-strategies/listAiTaskStrategies.d.ts +43 -0
  375. package/dist/task-strategies/listAiTaskStrategies.d.ts.map +1 -0
  376. package/dist/task-strategies/listAiTaskStrategies.js +74 -0
  377. package/dist/task-strategies/listAiTaskStrategies.js.map +1 -0
  378. package/dist/task-strategies/normalize.d.ts +7 -0
  379. package/dist/task-strategies/normalize.d.ts.map +1 -0
  380. package/dist/task-strategies/normalize.js +44 -0
  381. package/dist/task-strategies/normalize.js.map +1 -0
  382. package/dist/task-strategies/types.d.ts +37 -0
  383. package/dist/task-strategies/types.d.ts.map +1 -0
  384. package/dist/task-strategies/types.js +2 -0
  385. package/dist/task-strategies/types.js.map +1 -0
  386. package/dist/types/decision-contracts.d.ts +31 -0
  387. package/dist/types/decision-contracts.d.ts.map +1 -0
  388. package/dist/types/decision-contracts.js +23 -0
  389. package/dist/types/decision-contracts.js.map +1 -0
  390. package/dist/types/evidence-types.d.ts +108 -0
  391. package/dist/types/evidence-types.d.ts.map +1 -0
  392. package/dist/types/evidence-types.js +9 -0
  393. package/dist/types/evidence-types.js.map +1 -0
  394. package/dist/types/executionType.d.ts +9 -0
  395. package/dist/types/executionType.d.ts.map +1 -0
  396. package/dist/types/executionType.js +8 -0
  397. package/dist/types/executionType.js.map +1 -0
  398. package/dist/types/index.d.ts +28 -0
  399. package/dist/types/index.d.ts.map +1 -0
  400. package/dist/types/index.js +12 -0
  401. package/dist/types/index.js.map +1 -0
  402. package/dist/types/llmCall.d.ts +121 -0
  403. package/dist/types/llmCall.d.ts.map +1 -0
  404. package/dist/types/llmCall.js +39 -0
  405. package/dist/types/llmCall.js.map +1 -0
  406. package/dist/types/task-configuration.d.ts +60 -0
  407. package/dist/types/task-configuration.d.ts.map +1 -0
  408. package/dist/types/task-configuration.js +3 -0
  409. package/dist/types/task-configuration.js.map +1 -0
  410. package/dist/types/task-types.d.ts +887 -0
  411. package/dist/types/task-types.d.ts.map +1 -0
  412. package/dist/types/task-types.js +21 -0
  413. package/dist/types/task-types.js.map +1 -0
  414. package/dist/utilities/runUtility.d.ts +3 -0
  415. package/dist/utilities/runUtility.d.ts.map +1 -0
  416. package/dist/utilities/runUtility.js +204 -0
  417. package/dist/utilities/runUtility.js.map +1 -0
  418. package/dist/utils/assertRequiredRunSkillCorrelation.d.ts +7 -0
  419. package/dist/utils/assertRequiredRunSkillCorrelation.d.ts.map +1 -0
  420. package/dist/utils/assertRequiredRunSkillCorrelation.js +17 -0
  421. package/dist/utils/assertRequiredRunSkillCorrelation.js.map +1 -0
  422. package/dist/utils/assertValidSmartInputConfig.d.ts +5 -0
  423. package/dist/utils/assertValidSmartInputConfig.d.ts.map +1 -0
  424. package/dist/utils/assertValidSmartInputConfig.js +71 -0
  425. package/dist/utils/assertValidSmartInputConfig.js.map +1 -0
  426. package/dist/utils/bridgeRunSkillGatewayMemory.d.ts +13 -0
  427. package/dist/utils/bridgeRunSkillGatewayMemory.d.ts.map +1 -0
  428. package/dist/utils/bridgeRunSkillGatewayMemory.js +65 -0
  429. package/dist/utils/bridgeRunSkillGatewayMemory.js.map +1 -0
  430. package/dist/utils/extractSmartInputRenderResult.d.ts +7 -0
  431. package/dist/utils/extractSmartInputRenderResult.d.ts.map +1 -0
  432. package/dist/utils/extractSmartInputRenderResult.js +30 -0
  433. package/dist/utils/extractSmartInputRenderResult.js.map +1 -0
  434. package/dist/utils/jsonPaths.d.ts +6 -0
  435. package/dist/utils/jsonPaths.d.ts.map +1 -0
  436. package/dist/utils/jsonPaths.js +32 -0
  437. package/dist/utils/jsonPaths.js.map +1 -0
  438. package/dist/utils/normalizeSmartInputConfig.d.ts +5 -0
  439. package/dist/utils/normalizeSmartInputConfig.d.ts.map +1 -0
  440. package/dist/utils/normalizeSmartInputConfig.js +30 -0
  441. package/dist/utils/normalizeSmartInputConfig.js.map +1 -0
  442. package/dist/utils/outputValidation.d.ts +19 -0
  443. package/dist/utils/outputValidation.d.ts.map +1 -0
  444. package/dist/utils/outputValidation.js +75 -0
  445. package/dist/utils/outputValidation.js.map +1 -0
  446. package/dist/utils/runTaskRequestShape.d.ts +16 -0
  447. package/dist/utils/runTaskRequestShape.d.ts.map +1 -0
  448. package/dist/utils/runTaskRequestShape.js +80 -0
  449. package/dist/utils/runTaskRequestShape.js.map +1 -0
  450. package/dist/utils/skillTemplateVariables.d.ts +20 -0
  451. package/dist/utils/skillTemplateVariables.d.ts.map +1 -0
  452. package/dist/utils/skillTemplateVariables.js +63 -0
  453. package/dist/utils/skillTemplateVariables.js.map +1 -0
  454. package/dist/utils/xynthesizedSmartInputPaths.d.ts +16 -0
  455. package/dist/utils/xynthesizedSmartInputPaths.d.ts.map +1 -0
  456. package/dist/utils/xynthesizedSmartInputPaths.js +56 -0
  457. package/dist/utils/xynthesizedSmartInputPaths.js.map +1 -0
  458. package/dist/utils/xynthesizedWrite.d.ts +10 -0
  459. package/dist/utils/xynthesizedWrite.d.ts.map +1 -0
  460. package/dist/utils/xynthesizedWrite.js +61 -0
  461. package/dist/utils/xynthesizedWrite.js.map +1 -0
  462. package/dist/validation/analyzeExpectedRunTaskInput.d.ts +41 -0
  463. package/dist/validation/analyzeExpectedRunTaskInput.d.ts.map +1 -0
  464. package/dist/validation/analyzeExpectedRunTaskInput.js +133 -0
  465. package/dist/validation/analyzeExpectedRunTaskInput.js.map +1 -0
  466. package/dist/validation/collectSmartInputValidationIssues.d.ts +6 -0
  467. package/dist/validation/collectSmartInputValidationIssues.d.ts.map +1 -0
  468. package/dist/validation/collectSmartInputValidationIssues.js +38 -0
  469. package/dist/validation/collectSmartInputValidationIssues.js.map +1 -0
  470. package/dist/validation/helpers.d.ts +15 -0
  471. package/dist/validation/helpers.d.ts.map +1 -0
  472. package/dist/validation/helpers.js +184 -0
  473. package/dist/validation/helpers.js.map +1 -0
  474. package/dist/validation/index.d.ts +9 -0
  475. package/dist/validation/index.d.ts.map +1 -0
  476. package/dist/validation/index.js +6 -0
  477. package/dist/validation/index.js.map +1 -0
  478. package/dist/validation/types.d.ts +51 -0
  479. package/dist/validation/types.d.ts.map +1 -0
  480. package/dist/validation/types.js +5 -0
  481. package/dist/validation/types.js.map +1 -0
  482. package/dist/validation/validateRunTaskConfig.d.ts +8 -0
  483. package/dist/validation/validateRunTaskConfig.d.ts.map +1 -0
  484. package/dist/validation/validateRunTaskConfig.js +158 -0
  485. package/dist/validation/validateRunTaskConfig.js.map +1 -0
  486. package/dist/validation/validateRunTaskInvoke.d.ts +30 -0
  487. package/dist/validation/validateRunTaskInvoke.d.ts.map +1 -0
  488. package/dist/validation/validateRunTaskInvoke.js +108 -0
  489. package/dist/validation/validateRunTaskInvoke.js.map +1 -0
  490. package/documenations/activix-feature-request-identity.md +123 -0
  491. package/documenations/activix.md +175 -0
  492. package/documenations/bug-report-xynthesis-and-synthesis-call.md +217 -0
  493. package/documenations/core-runtime-tokens-and-strategies.md +123 -0
  494. package/documenations/downstream-environment.md +48 -0
  495. package/documenations/downstream-test-runtime-teardown-cleanup.md +73 -0
  496. package/documenations/examples/xynthesis-run-task-request.example.json +170 -0
  497. package/documenations/feature-request-ai-skills-raw-template-access.md +82 -0
  498. package/documenations/feature-request-athenix-core-directive.md +145 -0
  499. package/documenations/feature-request-athenix-token-extraction.md +124 -0
  500. package/documenations/funcx-catalog-hosting-checklist.md +107 -0
  501. package/documenations/funcx-scoping-integration-gaps.md +120 -0
  502. package/documenations/funcx-upstream-github-issues-draft.md +153 -0
  503. package/documenations/identity-metadata-contract.md +165 -0
  504. package/documenations/intermediate-steps.md +33 -0
  505. package/documenations/record-and-template-variables.md +32 -0
  506. package/documenations/run-task-execution-flow.md +153 -0
  507. package/documenations/run-task-single-run-checklist.md +109 -0
  508. package/documenations/schemas/README.md +40 -0
  509. package/documenations/schemas/openapi-3.1-components.yaml +24 -0
  510. package/documenations/schemas/v1/output-schema.json +55 -0
  511. package/documenations/schemas/v1/output-validation-result.json +41 -0
  512. package/documenations/schemas/v1/run-task-request.json +219 -0
  513. package/documenations/schemas/v1/synthesized-artifacts.json +133 -0
  514. package/documenations/synthesis-invocation-notes.md +26 -0
  515. package/documenations/synthesized-context-guide.md +84 -0
  516. package/documenations/task-core-and-core-aware-synthesis.md +58 -0
  517. package/documenations/upstream-feature-requests/ai-skills-llm-observability.md +129 -0
  518. package/documenations/upstream-feature-requests/xynthesis-llm-observability.md +125 -0
  519. package/documenations/upstream-feedback-request-shape-clarification.md +101 -0
  520. package/documenations/web-context-precedence.md +33 -0
  521. package/documenations/web-scoping-in-ai-tasks.md +503 -0
  522. package/documenations/xynthesis-activix-telemetry.md +28 -0
  523. package/documenations/xynthesis-upstream-fixes-checklist.md +71 -0
  524. package/package.json +92 -0
@@ -0,0 +1,30 @@
1
+ function strictFromSmartInput(smartInput) {
2
+ if (typeof smartInput !== "object" || smartInput === null || !("strict" in smartInput)) {
3
+ return undefined;
4
+ }
5
+ const strict = smartInput.strict;
6
+ return typeof strict === "boolean" ? strict : undefined;
7
+ }
8
+ /** Canonical Rendrix shape for gateway / ai-skills (legacy `paths: string[]` expanded). */
9
+ export function normalizeSmartInputConfig(smartInput) {
10
+ const strict = strictFromSmartInput(smartInput);
11
+ const paths = smartInput.paths;
12
+ if (!Array.isArray(paths)) {
13
+ return strict !== undefined ? { paths: [], strict } : { paths: [] };
14
+ }
15
+ if (paths.length === 0) {
16
+ return strict !== undefined ? { paths: [], strict } : { paths: [] };
17
+ }
18
+ const first = paths[0];
19
+ if (typeof first === "string") {
20
+ return {
21
+ paths: paths.map((p) => ({ title: p, path: p })),
22
+ ...(strict !== undefined ? { strict } : {}),
23
+ };
24
+ }
25
+ return {
26
+ paths: paths,
27
+ ...(strict !== undefined ? { strict } : {}),
28
+ };
29
+ }
30
+ //# sourceMappingURL=normalizeSmartInputConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeSmartInputConfig.js","sourceRoot":"","sources":["../../src/utils/normalizeSmartInputConfig.ts"],"names":[],"mappings":"AAGA,SAAS,oBAAoB,CAAC,UAA6B;IACzD,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,IAAI,IAAI,CAAC,CAAC,QAAQ,IAAI,UAAU,CAAC,EAAE,CAAC;QACvF,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,MAAM,GAAI,UAAmC,CAAC,MAAM,CAAC;IAC3D,OAAO,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,yBAAyB,CAAC,UAA6B;IACrE,MAAM,MAAM,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAChD,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;IAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACtE,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;IACtE,CAAC;IACD,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAY,CAAC;IAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO;YACL,KAAK,EAAG,KAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;YAC9D,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC5C,CAAC;IACJ,CAAC;IACD,OAAO;QACL,KAAK,EAAE,KAAkC;QACzC,GAAG,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { OutputSchema } from "../types/task-types.js";
2
+ /** Stable machine-readable codes for graph `outputValidation` and observability. */
3
+ export type OutputValidationErrorCode = "TYPE_MISMATCH" | "MISSING_REQUIRED" | "MIN_ITEMS" | "MAX_ITEMS" | "ADDITIONAL_PROPERTY";
4
+ export type OutputValidationErrorItem = {
5
+ path: string;
6
+ message: string;
7
+ code: OutputValidationErrorCode;
8
+ };
9
+ export type OutputValidationResult = {
10
+ ok: boolean;
11
+ errors: OutputValidationErrorItem[];
12
+ /**
13
+ * When set by the task runtime, matches `metadata.taskId` for the same `runTask()` invocation.
14
+ */
15
+ correlationId?: string;
16
+ };
17
+ /** Validates `parsed` against `OutputSchema`. Does not set `correlationId` — only `runTask()` attaches that on `metadata.outputValidation`. */
18
+ export declare function validateParsedOutput(parsed: unknown, schema: OutputSchema): OutputValidationResult;
19
+ //# sourceMappingURL=outputValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputValidation.d.ts","sourceRoot":"","sources":["../../src/utils/outputValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,oFAAoF;AACpF,MAAM,MAAM,yBAAyB,GACjC,eAAe,GACf,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,qBAAqB,CAAC;AAE1B,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,yBAAyB,EAAE,CAAC;IACpC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAwEF,+IAA+I;AAC/I,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAG,sBAAsB,CAIlG"}
@@ -0,0 +1,75 @@
1
+ function typeOf(value) {
2
+ if (value === null)
3
+ return "null";
4
+ if (Array.isArray(value))
5
+ return "array";
6
+ return typeof value;
7
+ }
8
+ function pushErr(errors, path, message, code) {
9
+ errors.push({ path, message, code });
10
+ }
11
+ function validate(value, schema, path, errors) {
12
+ const t = typeOf(value);
13
+ switch (schema.type) {
14
+ case "any":
15
+ return;
16
+ case "string":
17
+ case "number":
18
+ case "boolean":
19
+ case "null": {
20
+ if (t !== schema.type)
21
+ pushErr(errors, path, `expected ${schema.type}, got ${t}`, "TYPE_MISMATCH");
22
+ return;
23
+ }
24
+ case "array": {
25
+ if (t !== "array") {
26
+ pushErr(errors, path, `expected array, got ${t}`, "TYPE_MISMATCH");
27
+ return;
28
+ }
29
+ const arr = value;
30
+ if (schema.minItems !== undefined && arr.length < schema.minItems) {
31
+ pushErr(errors, path, `expected minItems ${schema.minItems}, got ${arr.length}`, "MIN_ITEMS");
32
+ }
33
+ if (schema.maxItems !== undefined && arr.length > schema.maxItems) {
34
+ pushErr(errors, path, `expected maxItems ${schema.maxItems}, got ${arr.length}`, "MAX_ITEMS");
35
+ }
36
+ if (schema.items) {
37
+ for (let i = 0; i < arr.length; i++)
38
+ validate(arr[i], schema.items, `${path}[${i}]`, errors);
39
+ }
40
+ return;
41
+ }
42
+ case "object": {
43
+ if (t !== "object") {
44
+ pushErr(errors, path, `expected object, got ${t}`, "TYPE_MISMATCH");
45
+ return;
46
+ }
47
+ const obj = value;
48
+ const required = Array.isArray(schema.required) ? schema.required : [];
49
+ for (const k of required) {
50
+ if (!(k in obj))
51
+ pushErr(errors, `${path}.${k}`, "missing required property", "MISSING_REQUIRED");
52
+ }
53
+ const props = schema.properties ?? {};
54
+ for (const [k, s] of Object.entries(props)) {
55
+ if (k in obj)
56
+ validate(obj[k], s, `${path}.${k}`, errors);
57
+ }
58
+ if (schema.additionalProperties === false) {
59
+ const allowed = new Set(Object.keys(props));
60
+ for (const k of Object.keys(obj)) {
61
+ if (!allowed.has(k))
62
+ pushErr(errors, `${path}.${k}`, "additional property not allowed", "ADDITIONAL_PROPERTY");
63
+ }
64
+ }
65
+ return;
66
+ }
67
+ }
68
+ }
69
+ /** Validates `parsed` against `OutputSchema`. Does not set `correlationId` — only `runTask()` attaches that on `metadata.outputValidation`. */
70
+ export function validateParsedOutput(parsed, schema) {
71
+ const errors = [];
72
+ validate(parsed, schema, "parsed", errors);
73
+ return { ok: errors.length === 0, errors };
74
+ }
75
+ //# sourceMappingURL=outputValidation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outputValidation.js","sourceRoot":"","sources":["../../src/utils/outputValidation.ts"],"names":[],"mappings":"AAyBA,SAAS,MAAM,CAAC,KAAc;IAC5B,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,MAAM,CAAC;IAClC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC;IACzC,OAAO,OAAO,KAAY,CAAC;AAC7B,CAAC;AAED,SAAS,OAAO,CACd,MAAmC,EACnC,IAAY,EACZ,OAAe,EACf,IAA+B;IAE/B,MAAM,CAAC,IAAI,CA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,MAAM,CAAC,oBAAoB,KAAK,KAAK,EAAE,CAAC;gBAC1C,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC5C,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;oBACjC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;wBAAE,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,IAAI,CAAC,EAAE,EAAE,iCAAiC,EAAE,qBAAqB,CAAC,CAAC;gBACjH,CAAC;YACH,CAAC;YACD,OAAO;QACT,CAAC;IACH,CAAC;AACH,CAAC;AAED,+IAA+I;AAC/I,MAAM,UAAU,oBAAoB,CAAC,MAAe,EAAE,MAAoB;IACxE,MAAM,MAAM,GAAgC,EAAE,CAAC;IAC/C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC3C,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;AAC7C,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ExecutionStep, RunTaskRequest } from "../types/task-types.js";
2
+ /** When set, `runTask` logs structured JSON lines for ignored pipeline steps. */
3
+ export declare function isRunTaskRequestWarningsEnabled(): boolean;
4
+ /**
5
+ * Pure analysis: duplicate mirrors and other shapes hosts should migrate away from.
6
+ * Does not mutate the request.
7
+ */
8
+ export declare function collectRunTaskRequestWarnings(_req: RunTaskRequest): string[];
9
+ /**
10
+ * Pipeline steps that are ignored or partially executed at runtime (see RUNTASK_REQUEST.md).
11
+ */
12
+ export declare function collectExecutionPipelineWarnings(pipeline: ExecutionStep[] | undefined): string[];
13
+ /** Canonical request clone (applies taskConfiguration compile when present). */
14
+ export declare function normalizeRunTaskRequest(req: RunTaskRequest): RunTaskRequest;
15
+ export declare function emitRunTaskRequestWarnings(req: RunTaskRequest): void;
16
+ //# sourceMappingURL=runTaskRequestShape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runTaskRequestShape.d.ts","sourceRoot":"","sources":["../../src/utils/runTaskRequestShape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM5E,iFAAiF;AACjF,wBAAgB,+BAA+B,IAAI,OAAO,CAGzD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,EAAE,CAE5E;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,QAAQ,EAAE,aAAa,EAAE,GAAG,SAAS,GACpC,MAAM,EAAE,CA0BV;AAED,gFAAgF;AAChF,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,cAAc,GAAG,cAAc,CAE3E;AAwBD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,CAqBpE"}
@@ -0,0 +1,80 @@
1
+ import { SYNTHESIZED_CONTEXT } from "../types/task-types.js";
2
+ import { compileTaskConfigurationOnRunTaskRequest } from "../compile/compileTaskConfiguration.js";
3
+ const WARN_ENV_KEYS = new Set(["1", "true", "yes"]);
4
+ /** When set, `runTask` logs structured JSON lines for ignored pipeline steps. */
5
+ export function isRunTaskRequestWarningsEnabled() {
6
+ const v = process.env.AI_TASKS_REQUEST_WARNINGS?.trim().toLowerCase();
7
+ return v !== undefined && WARN_ENV_KEYS.has(v);
8
+ }
9
+ /**
10
+ * Pure analysis: duplicate mirrors and other shapes hosts should migrate away from.
11
+ * Does not mutate the request.
12
+ */
13
+ export function collectRunTaskRequestWarnings(_req) {
14
+ return [];
15
+ }
16
+ /**
17
+ * Pipeline steps that are ignored or partially executed at runtime (see RUNTASK_REQUEST.md).
18
+ */
19
+ export function collectExecutionPipelineWarnings(pipeline) {
20
+ if (!pipeline?.length)
21
+ return [];
22
+ const warnings = [];
23
+ const pre = pipeline.filter((s) => s.phase === "pre");
24
+ const synthPre = pre.filter((s) => s.type === SYNTHESIZED_CONTEXT);
25
+ if (synthPre.length > 1) {
26
+ warnings.push(`executionPipeline: ${synthPre.length} PRE steps with type "${SYNTHESIZED_CONTEXT}"; only the first is executed — consolidate extra PRE steps.`);
27
+ }
28
+ for (const s of pre) {
29
+ if (s.type !== SYNTHESIZED_CONTEXT) {
30
+ warnings.push(`executionPipeline: PRE step type "${String(s.type)}" is not supported — runTask throws at execution (only "${SYNTHESIZED_CONTEXT}" is allowed).`);
31
+ }
32
+ }
33
+ const post = pipeline.filter((s) => s.phase === "post");
34
+ for (const s of post) {
35
+ if (s.type !== "audit" && s.type !== "polish") {
36
+ warnings.push(`executionPipeline: POST step type "${String(s.type)}" is not supported — ignored (only "audit" and "polish").`);
37
+ }
38
+ }
39
+ return warnings;
40
+ }
41
+ /** Canonical request clone (applies taskConfiguration compile when present). */
42
+ export function normalizeRunTaskRequest(req) {
43
+ return compileTaskConfigurationOnRunTaskRequest(req).request;
44
+ }
45
+ function collectRunTaskObservabilityHints(req) {
46
+ if (req.executionMode === "trace")
47
+ return [];
48
+ const hints = [];
49
+ const pipe = req.executionPipeline;
50
+ if (pipe?.some((s) => s.phase === "pre" && s.type === SYNTHESIZED_CONTEXT)) {
51
+ hints.push('Observability: PRE "synthesized-context" invokes xynthesis; use executionMode: "trace" for synthesis diagnostics.');
52
+ }
53
+ if (pipe?.some((s) => s.phase === "post" && (s.type === "audit" || s.type === "polish"))) {
54
+ hints.push('Observability: POST audit/polish invokes xynthesis; use executionMode: "trace" for per-step LLM observations.');
55
+ }
56
+ if (req.aiScoping && req.aiScoping.length > 0) {
57
+ hints.push('Observability: aiScoping runs scoped LLM calls via xynthesis; use executionMode: "trace" where supported.');
58
+ }
59
+ return hints;
60
+ }
61
+ export function emitRunTaskRequestWarnings(req) {
62
+ if (!isRunTaskRequestWarningsEnabled())
63
+ return;
64
+ const shapeMessages = [...collectRunTaskRequestWarnings(req), ...collectExecutionPipelineWarnings(req.executionPipeline)];
65
+ for (const message of shapeMessages) {
66
+ console.warn(JSON.stringify({
67
+ source: "@exellix/ai-tasks",
68
+ kind: "RunTaskRequestShape",
69
+ message,
70
+ }));
71
+ }
72
+ for (const message of collectRunTaskObservabilityHints(req)) {
73
+ console.warn(JSON.stringify({
74
+ source: "@exellix/ai-tasks",
75
+ kind: "RunTaskObservabilityHint",
76
+ message,
77
+ }));
78
+ }
79
+ }
80
+ //# sourceMappingURL=runTaskRequestShape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runTaskRequestShape.js","sourceRoot":"","sources":["../../src/utils/runTaskRequestShape.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,wCAAwC,EAAE,MAAM,wCAAwC,CAAC;AAElG,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AAEpD,iFAAiF;AACjF,MAAM,UAAU,+BAA+B;IAC7C,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACtE,OAAO,CAAC,KAAK,SAAS,IAAI,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,6BAA6B,CAAC,IAAoB;IAChE,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAC9C,QAAqC;IAErC,IAAI,CAAC,QAAQ,EAAE,MAAM;QAAE,OAAO,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IACtD,MAAM,Q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YAC3B,IAAI,EAAE,0BAA0B;YAChC,OAAO;SACR,CAAC,CACH,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { SmartInputConfig, RunTaskSmartInput, XynthesizedMemory } from "../types/task-types.js";
2
+ /**
3
+ * Forwards the job/graph template bucket unchanged (shallow clone).
4
+ * Used by `runTask` MAIN — does not fold `input`, `jobContext`, or `executionMemory.taskVariables` into `variables`.
5
+ */
6
+ export declare function passthroughJobTemplateVariables(variables: unknown): Record<string, unknown>;
7
+ /**
8
+ * Merges caller fields into a single template `variables` map (optional host helper — **not** used on `runTask` MAIN).
9
+ *
10
+ * Normative precedence: see `RUNTASK_REQUEST.md`. Graph-engine 5.13+ should compile scopes into
11
+ * `variables` (job) + `executionMemory.taskVariables` instead of relying on this merge at invoke time.
12
+ */
13
+ export declare function mergeSkillTemplateVariables(req: {
14
+ variables?: Record<string, unknown>;
15
+ input?: unknown;
16
+ jobContext?: Record<string, unknown>;
17
+ xynthesized?: XynthesizedMemory;
18
+ smartInput?: SmartInputConfig | RunTaskSmartInput;
19
+ }): Record<string, unknown>;
20
+ //# sourceMappingURL=skillTemplateVariables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skillTemplateVariables.d.ts","sourceRoot":"","sources":["../../src/utils/skillTemplateVariables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAErG;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAK3F;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAAE;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,UAAU,CAAC,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;CACnD,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAmD1B"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Forwards the job/graph template bucket unchanged (shallow clone).
3
+ * Used by `runTask` MAIN — does not fold `input`, `jobContext`, or `executionMemory.taskVariables` into `variables`.
4
+ */
5
+ export function passthroughJobTemplateVariables(variables) {
6
+ if (variables && typeof variables === "object" && !Array.isArray(variables)) {
7
+ return { ...variables };
8
+ }
9
+ return {};
10
+ }
11
+ /**
12
+ * Merges caller fields into a single template `variables` map (optional host helper — **not** used on `runTask` MAIN).
13
+ *
14
+ * Normative precedence: see `RUNTASK_REQUEST.md`. Graph-engine 5.13+ should compile scopes into
15
+ * `variables` (job) + `executionMemory.taskVariables` instead of relying on this merge at invoke time.
16
+ */
17
+ export function mergeSkillTemplateVariables(req) {
18
+ const job = req.jobContext && typeof req.jobContext === "object" && !Array.isArray(req.jobContext)
19
+ ? { ...req.jobContext }
20
+ : {};
21
+ const vars = req.variables && typeof req.variables === "object" && !Array.isArray(req.variables)
22
+ ? { ...req.variables }
23
+ : {};
24
+ const out = { ...job, ...vars };
25
+ if (out.xynthesized === undefined && req.xynthesized !== undefined) {
26
+ out.xynthesized = req.xynthesized;
27
+ }
28
+ if (out.smartInput === undefined && req.smartInput !== undefined) {
29
+ out.smartInput = req.smartInput;
30
+ }
31
+ const rawInput = req.input;
32
+ if (rawInput == null) {
33
+ return out;
34
+ }
35
+ if (typeof rawInput === "object" && !Array.isArray(rawInput)) {
36
+ const inp = rawInput;
37
+ const existing = out.inputs;
38
+ out.inputs =
39
+ existing && typeof existing === "object" && !Array.isArray(existing)
40
+ ? { ...existing, ...inp }
41
+ : { ...inp };
42
+ if (typeof inp.question === "string" && out.question === undefined) {
43
+ out.question = inp.question;
44
+ }
45
+ return out;
46
+ }
47
+ if (typeof rawInput === "string") {
48
+ if (out.question === undefined) {
49
+ out.question = rawInput;
50
+ }
51
+ if (out.inputs === undefined) {
52
+ out.inputs = { question: rawInput };
53
+ }
54
+ else if (typeof out.inputs === "object" && !Array.isArray(out.inputs)) {
55
+ const ins = out.inputs;
56
+ if (ins.question === undefined) {
57
+ out.inputs = { ...ins, question: rawInput };
58
+ }
59
+ }
60
+ }
61
+ return out;
62
+ }
63
+ //# sourceMappingURL=skillTemplateVariables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skillTemplateVariables.js","sourceRoot":"","sources":["../../src/utils/skillTemplateVariables.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,+BAA+B,CAAC,SAAkB;IAChE,IAAI,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;QAC5E,OAAO,EAAE,GAAI,SAAqC,EAAE,CAAC;IACvD,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,2BAA2B,CAAC,GAM3C;IACC,MAAM,GAAG,GACP,GAAG,CAAC,UAAU,IAAI,OAAO,GAAG,CAAC,UAAU,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;QACpF,CAAC,CAAC,EAAE,GAAI,GAAG,CAAC,UAAsC,EAAE;QACpD,CAAC,CAAC,EAAE,CAAC;IACT,MAAM,IAAI,GACR,GAAG,CAAC,SAAS,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;QACjF,CAAC,CAAC,EAAE,GAAI,GAAG,CAAC,SAAqC,EAAE;QACnD,CAAC,CAAC,EAAE,CAAC;IACT,MAAM,GAAG,GAA4B,EAAE,GAAG,GAAG,EAAE,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AC;QAC1B,CAAC;QACD,IAAI,GAAG,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAC7B,GAAG,CAAC,MAAM,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;QACtC,CAAC;aAAM,IAAI,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YACxE,MAAM,GAAG,GAAG,GAAG,CAAC,MAAiC,CAAC;YAClD,IAAI,GAAG,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC/B,GAAG,CAAC,MAAM,GAAG,EAAE,GAAG,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;YAC9C,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { SmartInputConfig, RunTaskSmartInput } from "../types/task-types.js";
2
+ /** Allowed top-level scopes under `xynthesized` for smart-input dot paths. */
3
+ export declare const XYNTHESIZED_SMART_INPUT_SCOPES: readonly ["job", "task", "execution"];
4
+ export type XynthesizedSmartInputScope = (typeof XYNTHESIZED_SMART_INPUT_SCOPES)[number];
5
+ /**
6
+ * Validates that a smart-input path under `xynthesized.*` uses an allowed scope (job | task | execution).
7
+ */
8
+ export declare function assertXynthesizedSmartInputPath(path: string, skillKey: string, pathIndex?: number): void;
9
+ /** Validates all `xynthesized.*` entries in a smart-input config. */
10
+ export declare function assertXynthesizedSmartInputPaths(smartInput: SmartInputConfig | RunTaskSmartInput, skillKey: string): void;
11
+ /**
12
+ * Resolves `xynthesized.<scope>...` smart-input paths against in-flight `xynthesized` memory.
13
+ * Non-xynthesized paths are returned unchanged.
14
+ */
15
+ export declare function resolveXynthesizedSmartInputPath(path: string, xynthesized: Record<string, unknown> | undefined): unknown;
16
+ //# sourceMappingURL=xynthesizedSmartInputPaths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xynthesizedSmartInputPaths.d.ts","sourceRoot":"","sources":["../../src/utils/xynthesizedSmartInputPaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAMlF,8EAA8E;AAC9E,eAAO,MAAM,8BAA8B,uCAAwC,CAAC;AAEpF,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzF;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,GACjB,IAAI,CAeN;AAMD,qEAAqE;AACrE,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,gBAAgB,GAAG,iBAAiB,EAChD,QAAQ,EAAE,MAAM,GACf,IAAI,CAKN;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC/C,OAAO,CAaT"}
@@ -0,0 +1,56 @@
1
+ import { formatSmartInputValidationMessage, throwSmartInputValidationError, } from "../errors/smartInputValidationError.js";
2
+ /** Allowed top-level scopes under `xynthesized` for smart-input dot paths. */
3
+ export const XYNTHESIZED_SMART_INPUT_SCOPES = ["job", "task", "execution"];
4
+ /**
5
+ * Validates that a smart-input path under `xynthesized.*` uses an allowed scope (job | task | execution).
6
+ */
7
+ export function assertXynthesizedSmartInputPath(path, skillKey, pathIndex) {
8
+ if (!path.startsWith("xynthesized."))
9
+ return;
10
+ const rest = path.slice("xynthesized.".length);
11
+ const scope = rest.split(".")[0] ?? "";
12
+ if (!XYNTHESIZED_SMART_INPUT_SCOPES.includes(scope)) {
13
+ const details = {
14
+ code: "UNSUPPORTED_XYNTHESIZED_SCOPE",
15
+ skillKey,
16
+ pathIndex,
17
+ path,
18
+ xynthesizedScope: scope,
19
+ allowedXynthesizedScopes: XYNTHESIZED_SMART_INPUT_SCOPES,
20
+ };
21
+ throwSmartInputValidationError(details, formatSmartInputValidationMessage(details));
22
+ }
23
+ }
24
+ function pathFromEntry(entry) {
25
+ return typeof entry === "string" ? entry : entry.path;
26
+ }
27
+ /** Validates all `xynthesized.*` entries in a smart-input config. */
28
+ export function assertXynthesizedSmartInputPaths(smartInput, skillKey) {
29
+ for (let i = 0; i < smartInput.paths.length; i++) {
30
+ const entry = smartInput.paths[i];
31
+ assertXynthesizedSmartInputPath(pathFromEntry(entry), skillKey, i);
32
+ }
33
+ }
34
+ /**
35
+ * Resolves `xynthesized.<scope>...` smart-input paths against in-flight `xynthesized` memory.
36
+ * Non-xynthesized paths are returned unchanged.
37
+ */
38
+ export function resolveXynthesizedSmartInputPath(path, xynthesized) {
39
+ if (!path.startsWith("xynthesized.") || !xynthesized)
40
+ return undefined;
41
+ const rest = path.slice("xynthesized.".length);
42
+ const segments = rest.split(".").filter(Boolean);
43
+ if (segments.length === 0)
44
+ return undefined;
45
+ const scope = segments[0];
46
+ if (!XYNTHESIZED_SMART_INPUT_SCOPES.includes(scope))
47
+ return undefined;
48
+ let cur = xynthesized[scope];
49
+ for (const seg of segments.slice(1)) {
50
+ if (cur == null || typeof cur !== "object" || Array.isArray(cur))
51
+ return undefined;
52
+ cur = cur[seg];
53
+ }
54
+ return cur;
55
+ }
56
+ //# sourceMappingURL=xynthesizedSmartInputPaths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xynthesizedSmartInputPaths.js","sourceRoot":"","sources":["../../src/utils/xynthesizedSmartInputPaths.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iCAAiC,EACjC,8BAA8B,GAC/B,MAAM,wCAAwC,CAAC;AAEhD,8EAA8E;AAC9E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAU,CAAC;AAIpF;;GAEG;AACH,MAAM,UAA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AI,CAAC,WAAW;QAAE,OAAO,SAAS,CAAC;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACjD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAA+B,CAAC;IACxD,IAAI,CAAE,8BAAoD,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC7F,IAAI,GAAG,GAAY,WAAW,CAAC,KAAK,CAAC,CAAC;IACtC,KAAK,MAAM,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACpC,IAAI,GAAG,IAAI,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;YAAE,OAAO,SAAS,CAAC;QACnF,GAAG,GAAI,GAA+B,CAAC,GAAG,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { XynthesizedMemory, XynthesizedOutputConfig } from "../types/task-types.js";
2
+ /**
3
+ * Applies one PRE synthesis write to in-flight xynthesized memory and returns a patch slice for the response.
4
+ */
5
+ export declare function applyXynthesizedOutputWrite(current: XynthesizedMemory | undefined, outCfg: XynthesizedOutputConfig, synthesizedResult: unknown): {
6
+ nextXynthesized: XynthesizedMemory;
7
+ patchSlice: XynthesizedMemory;
8
+ };
9
+ export declare function mergeXynthesizedPatchSlices(acc: XynthesizedMemory | undefined, slice: XynthesizedMemory): XynthesizedMemory;
10
+ //# sourceMappingURL=xynthesizedWrite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xynthesizedWrite.d.ts","sourceRoot":"","sources":["../../src/utils/xynthesizedWrite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EAEjB,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAgChC;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,iBAAiB,GAAG,SAAS,EACtC,MAAM,EAAE,uBAAuB,EAC/B,iBAAiB,EAAE,OAAO,GACzB;IAAE,eAAe,EAAE,iBAAiB,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,CAuBvE;AAED,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,iBAAiB,GAAG,SAAS,EAClC,KAAK,EAAE,iBAAiB,GACvB,iBAAiB,CAUnB"}
@@ -0,0 +1,61 @@
1
+ function isPlainObject(v) {
2
+ return typeof v === "object" && v !== null && !Array.isArray(v);
3
+ }
4
+ function deepMergePlain(a, b) {
5
+ const out = { ...a };
6
+ for (const [k, v] of Object.entries(b)) {
7
+ const av = out[k];
8
+ if (isPlainObject(av) && isPlainObject(v)) {
9
+ out[k] = deepMergePlain(av, v);
10
+ }
11
+ else {
12
+ out[k] = v;
13
+ }
14
+ }
15
+ return out;
16
+ }
17
+ function scopeRecord(current, scope) {
18
+ const prev = scope === "job"
19
+ ? current?.job
20
+ : scope === "task"
21
+ ? current?.task
22
+ : current?.execution;
23
+ return { ...(prev ?? {}) };
24
+ }
25
+ /**
26
+ * Applies one PRE synthesis write to in-flight xynthesized memory and returns a patch slice for the response.
27
+ */
28
+ export function applyXynthesizedOutputWrite(current, outCfg, synthesizedResult) {
29
+ const scope = outCfg.destination;
30
+ const mode = outCfg.mode ?? "replace";
31
+ const outputKey = outCfg.outputKey;
32
+ const scopeRecordCopy = scopeRecord(current, scope);
33
+ if (mode === "replace") {
34
+ scopeRecordCopy[outputKey] = synthesizedResult;
35
+ }
36
+ else {
37
+ const prevVal = scopeRecordCopy[outputKey];
38
+ if (isPlainObject(prevVal) && isPlainObject(synthesizedResult)) {
39
+ scopeRecordCopy[outputKey] = deepMergePlain(prevVal, synthesizedResult);
40
+ }
41
+ else {
42
+ scopeRecordCopy[outputKey] = synthesizedResult;
43
+ }
44
+ }
45
+ const written = scopeRecordCopy[outputKey];
46
+ const patchSlice = { [scope]: { [outputKey]: written } };
47
+ const nextXynthesized = { ...current, [scope]: scopeRecordCopy };
48
+ return { nextXynthesized, patchSlice };
49
+ }
50
+ export function mergeXynthesizedPatchSlices(acc, slice) {
51
+ const out = { ...acc };
52
+ const scopes = ["job", "task", "execution"];
53
+ for (const scope of scopes) {
54
+ const bucket = slice[scope];
55
+ if (bucket && Object.keys(bucket).length > 0) {
56
+ out[scope] = { ...(acc?.[scope] ?? {}), ...bucket };
57
+ }
58
+ }
59
+ return out;
60
+ }
61
+ //# sourceMappingURL=xynthesizedWrite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xynthesizedWrite.js","sourceRoot":"","sources":["../../src/utils/xynthesizedWrite.ts"],"names":[],"mappings":"AAMA,SAAS,aAAa,CAAC,CAAU;IAC/B,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,SAAS,cAAc,CAAC,CAA0B,EAAE,CAA0B;IAC5E,MAAM,GAAG,GAA4B,EAAE,GAAG,CAAC,EAAE,CAAC;IAC9C,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QACvC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QAClB,IAAI,aAAa,CAAC,EAAE,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1C,GAAG,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACjC,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,CAAC,C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AE,EAAE,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,CAAC;IAC5E,MAAM,eAAe,GAAsB,EAAE,GAAG,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAEpF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,GAAkC,EAClC,KAAwB;IAExB,MAAM,GAAG,GAAsB,EAAE,GAAG,GAAG,EAAE,CAAC;IAC1C,MAAM,MAAM,GAAkC,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAC3E,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7C,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC;QACtD,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,41 @@
1
+ import type { RunTaskRequest, RunTaskSmartInput } from "../types/task-types.js";
2
+ import type { AnalyzeExpectedRunTaskInputResult, ExpectedRunTaskInputPath } from "./types.js";
3
+ export type RunTaskTemplateResolver = {
4
+ resolveRawTemplate(skillKey: string, section: "instructions" | "prompt"): Promise<string | undefined>;
5
+ };
6
+ export type AnalyzeExpectedRunTaskInputParams = {
7
+ skillKey: string;
8
+ smartInput?: RunTaskSmartInput;
9
+ /** Inline template text (skips resolver when set for that section). */
10
+ instructions?: string;
11
+ prompt?: string;
12
+ /** When set, loads raw instructions/prompt from ai-skills content (same as PRE synthesis). */
13
+ templateResolver?: RunTaskTemplateResolver;
14
+ };
15
+ /**
16
+ * Lists dot-paths the task expects at invoke time:
17
+ * - explicit `smartInput.paths`
18
+ * - path tokens from skill instructions/prompt templates (Rendrix `listTokens`)
19
+ */
20
+ export declare function analyzeExpectedRunTaskInput(params: AnalyzeExpectedRunTaskInputParams): Promise<AnalyzeExpectedRunTaskInputResult>;
21
+ export type CheckExpectedInputAgainstRequestParams = {
22
+ request: RunTaskRequest;
23
+ expected: AnalyzeExpectedRunTaskInputResult;
24
+ /** When true, also run Rendrix `analyzeTemplateResolution` on prompt/instructions text. */
25
+ templateTexts?: {
26
+ instructions?: string;
27
+ prompt?: string;
28
+ };
29
+ };
30
+ /**
31
+ * Compare expected paths against a concrete `RunTaskRequest` payload (no LLM).
32
+ */
33
+ export declare function checkExpectedInputAgainstRequest(params: CheckExpectedInputAgainstRequestParams): {
34
+ missingInputPaths: ExpectedRunTaskInputPath[];
35
+ resolvedInputPaths: Array<ExpectedRunTaskInputPath & {
36
+ resolved: boolean;
37
+ valuePreview?: string;
38
+ }>;
39
+ templateUnresolvedPaths: string[];
40
+ };
41
+ //# sourceMappingURL=analyzeExpectedRunTaskInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyzeExpectedRunTaskInput.d.ts","sourceRoot":"","sources":["../../src/validation/analyzeExpectedRunTaskInput.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAOhF,OAAO,KAAK,EACV,iCAAiC,EACjC,wBAAwB,EAEzB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,kBAAkB,CAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,cAAc,GAAG,QAAQ,GACjC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,iBAAiB,CAAC;IA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