@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,303 @@
1
+ import { buildStructuredSynthesisSystemPrompt, buildStructuredSynthesisUserPrompt, loadStructuredSynthesisTemplates, parseAndValidateSynthesizedPromptPayload, resolveMaxTokens, resolveOutputExpectation, runStructuredSynthesisGatewayCall, XynthesisInvokeError, XynthesisResponseParseError, } from "@exellix/xynthesis/ai-actions";
2
+ import { mapGatewayInvokeToTrace } from "@exellix/ai-skills";
3
+ import { LlmCallContextError } from "../types/llmCall.js";
4
+ function truncate(s, max) {
5
+ if (max <= 0)
6
+ return "";
7
+ if (s.length <= max)
8
+ return s;
9
+ return s.slice(0, max) + "…(truncated)";
10
+ }
11
+ function stringifyError(e) {
12
+ if (!e)
13
+ return String(e);
14
+ if (e instanceof Error)
15
+ return `${e.name}: ${e.message}`;
16
+ return String(e);
17
+ }
18
+ function isNormalizationError(e) {
19
+ const msg = stringifyError(e);
20
+ return (msg.includes("RESPONSE_NORMALIZATION_FAILED") ||
21
+ msg.includes("No JSON object found after response normalization"));
22
+ }
23
+ function extractJsonObjectBestEffort(text) {
24
+ const t = text.trim();
25
+ const fence = /^```(?:json)?\s*([\s\S]*?)```\s*$/im.exec(t);
26
+ const unfenced = fence ? fence[1].trim() : t;
27
+ const start = unfenced.indexOf("{");
28
+ const end = unfenced.lastIndexOf("}");
29
+ if (start !== -1 && end > start)
30
+ return unfenced.slice(start, end + 1);
31
+ return unfenced;
32
+ }
33
+ async function defaultInvokeTextViaAIGateway(req) {
34
+ const { systemPrompt, userPrompt, model, timeoutMs, maxOutputLength, maxTokens, jobId = "synthesis", agentId = "synthesis", } = req;
35
+ const doInvoke = async () => {
36
+ const startedAt = Date.now();
37
+ const { AIGateway } = await import("@x12i/ai-gateway");
38
+ const gateway = new AIGateway();
39
+ let response;
40
+ try {
41
+ response = await gateway.invoke({
42
+ jobId,
43
+ agentId,
44
+ instructions: systemPrompt,
45
+ workingMemory: { input: userPrompt },
46
+ // Forward `maxTokens` so the gateway honors the resolved cap from `resolveMaxTokens` instead of
47
+ // falling back to provider defaults.
48
+ config: model || maxTokens ? { ...(model ? { model } : {}), ...(maxTokens ? { maxTokens } : {}) } : undefined,
49
+ });
50
+ }
51
+ catch (gatewayErr) {
52
+ // Convert the failure into a SkillDiagnosticsTrace for consistency with ai-skills.
53
+ try {
54
+ lastRepairTrace = mapGatewayInvokeToTrace({
55
+ invokeStartedAtMs: startedAt,
56
+ invokeEndedAtMs: Date.now(),
57
+ aiRequestId: `${jobId}:structured-repair`,
58
+ maxTokensRequested: maxTokens,
59
+ invokeRequest: {
60
+ modelConfig: model ? { model, ...(maxTokens ? { maxTokens } : {}) } : undefined,
61
+ timeoutMs,
62
+ },
63
+ step: { phase: "pre", type: "structured-repair", stepId: "structured-repair-invoke" },
64
+ invokeError: gatewayErr,
65
+ });
66
+ }
67
+ catch {
68
+ // Best-effort: don't fail conversion if the helper signature shifts.
69
+ }
70
+ throw gatewayErr;
71
+ }
72
+ const raw = response;
73
+ let text;
74
+ if (typeof raw?.text === "string")
75
+ text = raw.text;
76
+ else if (typeof raw?.content === "string")
77
+ text = raw.content;
78
+ else if (typeof raw?.parsed?.content === "string")
79
+ text = raw.parsed.content;
80
+ else if (Array.isArray(raw?.choices) && raw.choices[0]) {
81
+ const first = raw.choices[0];
82
+ const msg = first?.message ?? first;
83
+ if (typeof msg?.content === "string")
84
+ text = msg.content;
85
+ }
86
+ if (typeof text !== "string") {
87
+ throw new Error("Structured synthesis repair: gateway response had no text/content; got " +
88
+ JSON.stringify(Object.keys(raw ?? {})));
89
+ }
90
+ text = text.trim();
91
+ if (typeof maxOutputLength === "number" && maxOutputLength > 0 && text.length > maxOutputLength) {
92
+ text = text.slice(0, maxOutputLength);
93
+ }
94
+ // Convert the successful gateway invoke into a SkillDiagnosticsTrace for trace consumers.
95
+ try {
96
+ lastRepairTrace = mapGatewayInvokeToTrace({
97
+ invokeStartedAtMs: startedAt,
98
+ invokeEndedAtMs: Date.now(),
99
+ aiRequestId: `${jobId}:structured-repair`,
100
+ gatewayResponse: raw,
101
+ maxTokensRequested: maxTokens,
102
+ invokeRequest: {
103
+ modelConfig: model ? { model, ...(maxTokens ? { maxTokens } : {}) } : undefined,
104
+ timeoutMs,
105
+ },
106
+ step: { phase: "pre", type: "structured-repair", stepId: "structured-repair-invoke" },
107
+ });
108
+ }
109
+ catch {
110
+ // Best-effort: don't fail the call if the helper signature shifts.
111
+ }
112
+ return text;
113
+ };
114
+ if (typeof timeoutMs === "number" && timeoutMs > 0) {
115
+ const timeoutPromise = new Promise((_, reject) => {
116
+ setTimeout(() => reject(new Error("Structured synthesis repair: timeout")), timeoutMs);
117
+ });
118
+ return Promise.race([doInvoke(), timeoutPromise]);
119
+ }
120
+ return doInvoke();
121
+ }
122
+ /**
123
+ * Module-local: last AIGateway repair trace from `defaultInvokeTextViaAIGateway`, used to enrich
124
+ * `LlmCallContextError.observation.diagnostics` on throw. Reset at the top of every
125
+ * `runStructuredSynthesisGatewayCallRobust` call. Tracks across attempts within one call.
126
+ */
127
+ let lastRepairTrace = undefined;
128
+ /**
129
+ * Robust structured synthesis:
130
+ * - First try the normal xynthesis gateway path (may use a strict invoker / JSON mode).
131
+ * - If response normalization fails, fall back to a plain-text ai-gateway call + JSON parse/validate.
132
+ * - Optionally retry once with a minimal "JSON only" hardening if parsing fails.
133
+ *
134
+ * Errors thrown from this function are wrapped with `LlmCallContextError` carrying
135
+ * `stage: "structured-repair"`, attempt index, and the existing diagnostics text. Upstream typed
136
+ * errors (`XynthesisInvokeError`, `XynthesisResponseParseError`) from the first path are passed
137
+ * through unchanged so callers can inspect their `invokeSummary`.
138
+ *
139
+ * This prevents flaky failures when providers/models return prose around JSON.
140
+ */
141
+ export async function runStructuredSynthesisGatewayCallRobust(params) {
142
+ const { enableRepair = true, repairMaxRetries = 1, diagnosticsMaxChars = 4000, invokeTextOverride, forceFirstPathError, ...base } = params;
143
+ lastRepairTrace = undefined;
144
+ try {
145
+ if (forceFirstPathError !== undefined)
146
+ throw forceFirstPathError;
147
+ return await runStructuredSynthesisGatewayCall(base);
148
+ }
149
+ catch (e) {
150
+ // Pass typed xynthesis errors through unchanged when no repair is allowed (they already carry
151
+ // `invokeSummary` so callers can read everything).
152
+ if ((!enableRepair || !isNormalizationError(e)) &&
153
+ (e instanceof XynthesisInvokeError || e instanceof XynthesisResponseParseError)) {
154
+ throw e;
155
+ }
156
+ if (!enableRepair || !isNormalizationError(e))
157
+ throw e;
158
+ const { system, user } = await loadStructuredSynthesisTemplates(base.templatesBasePath);
159
+ const systemPrompt = buildStructuredSynthesisSystemPrompt({
160
+ systemTemplate: system,
161
+ synthesisPromptOverride: base.synthesisPromptOverride,
162
+ customSynthesizingGuidelines: base.customSynthesizingGuidelines,
163
+ });
164
+ const userPrompt = buildStructuredSynthesisUserPrompt({
165
+ question: base.question,
166
+ localRaw: base.localMarkdown || "(empty)",
167
+ supportingRaw: base.supportingMarkdown || "(empty)",
168
+ renderedInstructions: base.renderedInstructions,
169
+ renderedPrompt: base.renderedPrompt,
170
+ metadata: base.metadata,
171
+ userTemplate: user,
172
+ });
173
+ // Resolve a maxTokens cap for the AIGateway repair fallback so we don't drift to provider defaults.
174
+ // Effective outputExpectation = caller override (if provided on `base.outputExpectation`) → action
175
+ // default for "synthesis".
176
+ const effectiveOutputExpectation = base.outputExpectation ?? resolveOutputExpectation("synthesis");
177
+ const callerCap = typeof base.maxTokensCap === "number" ? base.maxTokensCap : undefined;
178
+ let resolvedRepairMaxTokens;
179
+ try {
180
+ const resolution = resolveMaxTokens({
181
+ inputText: `${systemPrompt}\n\n${userPrompt}`,
182
+ outputExpectation: effectiveOutputExpectation,
183
+ modelId: base.model ?? "",
184
+ callerMaxTokens: callerCap,
185
+ structuredOutput: true,
186
+ });
187
+ resolvedRepairMaxTokens = resolution.maxTokens;
188
+ }
189
+ catch {
190
+ resolvedRepairMaxTokens = callerCap;
191
+ }
192
+ const invokeText = invokeTextOverride ?? defaultInvokeTextViaAIGateway;
193
+ let lastErr = e;
194
+ for (let attempt = 0; attempt <= repairMaxRetries; attempt++) {
195
+ const hardenedSystem = attempt === 0
196
+ ? systemPrompt
197
+ : systemPrompt +
198
+ "\n\nReturn ONLY a single valid JSON object. No markdown fences. No prose. No trailing text.";
199
+ let rawText;
200
+ try {
201
+ rawText = await invokeText({
202
+ systemPrompt: hardenedSystem,
203
+ userPrompt,
204
+ model: base.model,
205
+ timeoutMs: base.timeoutMs,
206
+ maxOutputLength: base.maxOutputLength,
207
+ maxTokens: resolvedRepairMaxTokens,
208
+ jobId: base.jobId,
209
+ agentId: base.agentId,
210
+ });
211
+ }
212
+ catch (invokeErr) {
213
+ // Wrap the invoke failure with a structured observation. We attach the
214
+ // `SkillDiagnosticsTrace` (built via ai-skills `mapGatewayInvokeToTrace`) as `debugTrace` on
215
+ // the request snapshot for cross-package consistency.
216
+ const obs = {
217
+ source: "xynthesis",
218
+ stage: "structured-repair",
219
+ request: {
220
+ model: base.model,
221
+ maxTokensCap: callerCap,
222
+ timeoutMs: base.timeoutMs,
223
+ maxOutputLength: base.maxOutputLength,
224
+ outputExpectation: effectiveOutputExpectation,
225
+ },
226
+ // Re-use the `debugTrace` slot for the SkillDiagnosticsTrace built by ai-skills helpers.
227
+ // Both are LLM-call traces; consumers may distinguish via `source`.
228
+ debugTrace: lastRepairTrace,
229
+ durationMs: 0,
230
+ ok: false,
231
+ error: {
232
+ name: invokeErr instanceof Error ? invokeErr.name : "Error",
233
+ message: invokeErr instanceof Error ? invokeErr.message : String(invokeErr),
234
+ },
235
+ };
236
+ throw new LlmCallContextError(`Structured synthesis repair invoke failed (attempt ${attempt + 1}/${repairMaxRetries + 1}): ${stringifyError(invokeErr)}`, obs, invokeErr);
237
+ }
238
+ try {
239
+ const extracted = extractJsonObjectBestEffort(rawText);
240
+ return parseAndValidateSynthesizedPromptPayload(extracted, {
241
+ expectedTemplateCores: base.templateCores,
242
+ expectedQuestion: base.question,
243
+ maxItemsPerSide: base.structuredMaxItemsPerSide ?? 50,
244
+ maxItemContentChars: base.structuredMaxItemContentChars ?? 8000,
245
+ });
246
+ }
247
+ catch (parseErr) {
248
+ lastErr = parseErr;
249
+ if (attempt >= repairMaxRetries) {
250
+ const diagnosticsText = [
251
+ "Structured synthesized-context failed to parse JSON payload after repair.",
252
+ `- originalError: ${stringifyError(e)}`,
253
+ `- repairAttempts: ${attempt + 1}`,
254
+ `- parseError: ${stringifyError(parseErr)}`,
255
+ `- model: ${base.model ?? "[default]"}`,
256
+ `- rawOutput: ${truncate(rawText, diagnosticsMaxChars)}`,
257
+ `- extractedJson: ${truncate(extractJsonObjectBestEffort(rawText), diagnosticsMaxChars)}`,
258
+ ].join("\n");
259
+ const obs = {
260
+ source: "xynthesis",
261
+ stage: "structured-repair",
262
+ request: {
263
+ model: base.model,
264
+ maxTokensCap: callerCap,
265
+ timeoutMs: base.timeoutMs,
266
+ maxOutputLength: base.maxOutputLength,
267
+ outputExpectation: effectiveOutputExpectation,
268
+ },
269
+ debugTrace: lastRepairTrace,
270
+ durationMs: 0,
271
+ ok: false,
272
+ error: {
273
+ name: parseErr instanceof Error ? parseErr.name : "Error",
274
+ message: parseErr instanceof Error ? parseErr.message : String(parseErr),
275
+ },
276
+ };
277
+ throw new LlmCallContextError(diagnosticsText, obs, parseErr);
278
+ }
279
+ }
280
+ }
281
+ if (lastErr instanceof LlmCallContextError)
282
+ throw lastErr;
283
+ if (lastErr instanceof Error) {
284
+ const obs = {
285
+ source: "xynthesis",
286
+ stage: "structured-repair",
287
+ request: {
288
+ model: base.model,
289
+ maxTokensCap: callerCap,
290
+ timeoutMs: base.timeoutMs,
291
+ maxOutputLength: base.maxOutputLength,
292
+ outputExpectation: effectiveOutputExpectation,
293
+ },
294
+ durationMs: 0,
295
+ ok: false,
296
+ error: { name: lastErr.name, message: lastErr.message },
297
+ };
298
+ throw new LlmCallContextError(lastErr.message, obs, lastErr);
299
+ }
300
+ throw new Error(String(lastErr ?? "Structured synthesis failed"));
301
+ }
302
+ }
303
+ //# sourceMappingURL=runStructuredSynthesisRobust.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runStructuredSynthesisRobust.js","sourceRoot":"","sources":["../../src/synthesis/runStructuredSynthesisRobust.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,gCAAgC,EAChC,wCAAwC,EACxC,gBAAgB,EAChB,wBAAwB,EACxB,iCAAiC,EACjC,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAc1D,SAAS,QAAQ,CAAC,CAAS,EAAE,GAAW;IACtC,IAAI,GAAG,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IACxB,IAAI,CAAC,CAAC,MAAM,IAAI,GAAG;QAAE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K,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO;4BACzD,OAAO,EAAE,QAAQ,YAAY,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;yBACzE;qBACF,CAAC;oBACF,MAAM,IAAI,mBAAmB,CAAC,eAAe,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;gBAChE,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,OAAO,YAAY,mBAAmB;YAAE,MAAM,OAAO,CAAC;QAC1D,IAAI,OAAO,YAAY,KAAK,EAAE,CAAC;YAC7B,MAAM,GAAG,GAAuB;gBAC9B,MAAM,EAAE,WAAW;gBACnB,KAAK,EAAE,mBAAmB;gBAC1B,OAAO,EAAE;oBACP,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,YAAY,EAAE,SAAS;oBACvB,SAAS,EAAE,IAAI,CAAC,SAAS;oBACzB,eAAe,EAAE,IAAI,CAAC,eAAe;oBACrC,iBAAiB,EAAE,0BAA0B;iBAC9C;gBACD,UAAU,EAAE,CAAC;gBACb,EAAE,EAAE,KAAK;gBACT,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE;aACxD,CAAC;YACF,MAAM,IAAI,mBAAmB,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QAC/D,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,IAAI,6BAA6B,CAAC,CAAC,CAAC;IACpE,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { CatalogDescriptor, CatalogDescriptorRecord } from "@x12i/catalox";
2
+ export type TaskStrategyCatalogDescriptorOptions = {
3
+ catalogId: string;
4
+ label: string;
5
+ description: string;
6
+ itemLabel?: string;
7
+ extraQueryableFields?: CatalogDescriptor["queryableFields"];
8
+ };
9
+ export declare function buildTaskStrategyCatalogDescriptorRecord(nowIso: string, opts: TaskStrategyCatalogDescriptorOptions): CatalogDescriptorRecord;
10
+ export declare function buildPreCoreTaskStrategiesCatalogDescriptorRecord(nowIso: string): CatalogDescriptorRecord;
11
+ export declare function buildPostCoreTaskStrategiesCatalogDescriptorRecord(nowIso: string): CatalogDescriptorRecord;
12
+ /** @deprecated Use {@link buildPreCoreTaskStrategiesCatalogDescriptorRecord}. */
13
+ export declare function buildAiTaskStrategiesCatalogDescriptorRecord(nowIso: string): CatalogDescriptorRecord;
14
+ export declare function buildInputStrategiesCatalogDescriptorRecord(nowIso: string): CatalogDescriptorRecord;
15
+ export declare function buildExecutionStrategyCatalogDescriptorRecord(nowIso: string): CatalogDescriptorRecord;
16
+ export declare function buildExecutionStrategiesCatalogDescriptorRecord(nowIso: string): CatalogDescriptorRecord;
17
+ export declare function buildMainExecutionWrappersCatalogDescriptorRecord(nowIso: string): CatalogDescriptorRecord;
18
+ export declare function buildNarrixModesCatalogDescriptorRecord(nowIso: string): CatalogDescriptorRecord;
19
+ //# sourceMappingURL=buildTaskStrategyCatalogDescriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildTaskStrategyCatalogDescriptor.d.ts","sourceRoot":"","sources":["../../src/task-strategies/buildTaskStrategyCatalogDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAahF,MAAM,MAAM,oCAAoC,GAAG;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CAC7D,CAAC;AA4FF,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,oCAAoC,GACzC,uBAAuB,CASzB;AAkFD,wBAAgB,iDAAiD,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAQzG;AAED,wBAAgB,kDAAkD,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAQ1G;AAED,iFAAiF;AACjF,wBAAgB,4CAA4C,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAEpG;AAED,wBAAgB,2CAA2C,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAQnG;AAED,wBAAgB,6CAA6C,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CASrG;AAED,wBAAgB,+CAA+C,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAQvG;AAED,wBAAgB,iDAAiD,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAQzG;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,MAAM,GAAG,uBAAuB,CAO/F"}
@@ -0,0 +1,242 @@
1
+ import { AI_TASK_EXECUTION_STRATEGIES_CATALOG_ID, AI_TASK_EXECUTION_STRATEGY_CATALOG_ID, AI_TASK_INPUT_STRATEGIES_CATALOG_ID, AI_TASK_MAIN_EXECUTION_WRAPPERS_CATALOG_ID, AI_TASK_NARRIX_MODES_CATALOG_ID, AI_TASK_POST_STRATEGIES_CATALOG_ID, AI_TASK_PRE_STRATEGIES_CATALOG_ID, } from "./constants.js";
2
+ const DESCRIPTOR_VERSION = "1";
3
+ function buildDescriptorBody(opts) {
4
+ const { catalogId, label, description, itemLabel = "Strategy" } = opts;
5
+ return {
6
+ catalogId,
7
+ label,
8
+ description,
9
+ itemLabel,
10
+ sourceMode: "native",
11
+ status: "active",
12
+ visibility: "visible",
13
+ capabilities: {
14
+ canList: true,
15
+ canGet: true,
16
+ canCreate: true,
17
+ canEdit: true,
18
+ canDelete: true,
19
+ canImport: true,
20
+ canExport: true,
21
+ canValidate: true,
22
+ canViewReferences: true,
23
+ },
24
+ queryableFields: [
25
+ {
26
+ key: "strategyKey",
27
+ label: "Strategy key",
28
+ type: "string",
29
+ path: "strategyKey",
30
+ indexed: true,
31
+ filterable: true,
32
+ listVisible: true,
33
+ detailVisible: true,
34
+ required: true,
35
+ },
36
+ {
37
+ key: "title",
38
+ label: "Title",
39
+ type: "string",
40
+ path: "title",
41
+ indexed: true,
42
+ listVisible: true,
43
+ detailVisible: true,
44
+ required: true,
45
+ },
46
+ {
47
+ key: "description",
48
+ label: "Description",
49
+ type: "string",
50
+ path: "description",
51
+ listVisible: true,
52
+ detailVisible: true,
53
+ },
54
+ {
55
+ key: "domain",
56
+ label: "Domain",
57
+ type: "string",
58
+ path: "domain",
59
+ indexed: true,
60
+ filterable: true,
61
+ listVisible: true,
62
+ detailVisible: true,
63
+ },
64
+ {
65
+ key: "multiSelectable",
66
+ label: "Multi-selectable",
67
+ type: "boolean",
68
+ path: "multiSelectable",
69
+ indexed: true,
70
+ filterable: true,
71
+ listVisible: true,
72
+ detailVisible: true,
73
+ },
74
+ {
75
+ key: "appliesTo",
76
+ label: "Applies to",
77
+ type: "array",
78
+ path: "appliesTo",
79
+ listVisible: true,
80
+ detailVisible: true,
81
+ multiValue: true,
82
+ },
83
+ ...(opts.extraQueryableFields ?? []),
84
+ ],
85
+ identity: {
86
+ itemIdStrategy: "natural",
87
+ itemIdField: "strategyKey",
88
+ titleField: "title",
89
+ },
90
+ };
91
+ }
92
+ export function buildTaskStrategyCatalogDescriptorRecord(nowIso, opts) {
93
+ const descriptor = buildDescriptorBody(opts);
94
+ return {
95
+ catalogId: opts.catalogId,
96
+ descriptorVersion: DESCRIPTOR_VERSION,
97
+ descriptor,
98
+ createdAt: nowIso,
99
+ updatedAt: nowIso,
100
+ };
101
+ }
102
+ const EXECUTION_STRATEGY_METADATA_FIELDS = [
103
+ {
104
+ key: "runtimeKind",
105
+ label: "Runtime kind",
106
+ type: "string",
107
+ path: "runtimeKind",
108
+ indexed: true,
109
+ filterable: true,
110
+ listVisible: true,
111
+ detailVisible: true,
112
+ },
113
+ {
114
+ key: "requestShape",
115
+ label: "Request shape",
116
+ type: "string",
117
+ path: "requestShape",
118
+ indexed: true,
119
+ filterable: true,
120
+ listVisible: true,
121
+ detailVisible: true,
122
+ },
123
+ {
124
+ key: "phase",
125
+ label: "Phase",
126
+ type: "string",
127
+ path: "phase",
128
+ indexed: true,
129
+ filterable: true,
130
+ listVisible: true,
131
+ detailVisible: true,
132
+ },
133
+ {
134
+ key: "selectableInExecutionStrategies",
135
+ label: "Selectable in executionStrategies",
136
+ type: "boolean",
137
+ path: "selectableInExecutionStrategies",
138
+ indexed: true,
139
+ filterable: true,
140
+ listVisible: true,
141
+ detailVisible: true,
142
+ },
143
+ {
144
+ key: "defaultFunctionId",
145
+ label: "Default Function ID",
146
+ type: "string",
147
+ path: "defaultFunctionId",
148
+ indexed: true,
149
+ filterable: true,
150
+ listVisible: true,
151
+ detailVisible: true,
152
+ },
153
+ {
154
+ key: "functionEnvelope",
155
+ label: "Function envelope",
156
+ type: "string",
157
+ path: "functionEnvelope",
158
+ indexed: true,
159
+ filterable: true,
160
+ listVisible: true,
161
+ detailVisible: true,
162
+ },
163
+ {
164
+ key: "retryBehavior",
165
+ label: "Retry behavior",
166
+ type: "string",
167
+ path: "retryBehavior",
168
+ listVisible: false,
169
+ detailVisible: true,
170
+ },
171
+ {
172
+ key: "safeRuntimeFields",
173
+ label: "Safe runtime fields",
174
+ type: "array",
175
+ path: "safeRuntimeFields",
176
+ listVisible: false,
177
+ detailVisible: true,
178
+ multiValue: true,
179
+ },
180
+ ];
181
+ export function buildPreCoreTaskStrategiesCatalogDescriptorRecord(nowIso) {
182
+ return buildTaskStrategyCatalogDescriptorRecord(nowIso, {
183
+ catalogId: AI_TASK_PRE_STRATEGIES_CATALOG_ID,
184
+ label: "Pre–core task strategies",
185
+ description: "Strategies before the main task: synthesis input for the synthesized-context PRE step (`synthesisInputStrategy`).",
186
+ itemLabel: "Pre strategy",
187
+ });
188
+ }
189
+ export function buildPostCoreTaskStrategiesCatalogDescriptorRecord(nowIso) {
190
+ return buildTaskStrategyCatalogDescriptorRecord(nowIso, {
191
+ catalogId: AI_TASK_POST_STRATEGIES_CATALOG_ID,
192
+ label: "Post–core task strategies",
193
+ description: "Strategies after the main task: e.g. audit `selectionStrategy`. Distinct catalog from pre–core synthesis strategies.",
194
+ itemLabel: "Post strategy",
195
+ });
196
+ }
197
+ /** @deprecated Use {@link buildPreCoreTaskStrategiesCatalogDescriptorRecord}. */
198
+ export function buildAiTaskStrategiesCatalogDescriptorRecord(nowIso) {
199
+ return buildPreCoreTaskStrategiesCatalogDescriptorRecord(nowIso);
200
+ }
201
+ export function buildInputStrategiesCatalogDescriptorRecord(nowIso) {
202
+ return buildTaskStrategyCatalogDescriptorRecord(nowIso, {
203
+ catalogId: AI_TASK_INPUT_STRATEGIES_CATALOG_ID,
204
+ label: "Task input strategies",
205
+ description: "Optional authoring / UX hints for `inputStrategyKey` on `RunTaskRequest` (Catalox native catalog).",
206
+ itemLabel: "Input strategy",
207
+ });
208
+ }
209
+ export function buildExecutionStrategyCatalogDescriptorRecord(nowIso) {
210
+ return buildTaskStrategyCatalogDescriptorRecord(nowIso, {
211
+ catalogId: AI_TASK_EXECUTION_STRATEGY_CATALOG_ID,
212
+ label: "Execution strategy",
213
+ description: "Preferred catalog for supported MAIN execution strategy metadata: direct, planner, and optimizer. Runtime behavior remains code-gated and only safe metadata fields are consumed.",
214
+ itemLabel: "Execution strategy",
215
+ extraQueryableFields: EXECUTION_STRATEGY_METADATA_FIELDS,
216
+ });
217
+ }
218
+ export function buildExecutionStrategiesCatalogDescriptorRecord(nowIso) {
219
+ return buildTaskStrategyCatalogDescriptorRecord(nowIso, {
220
+ catalogId: AI_TASK_EXECUTION_STRATEGIES_CATALOG_ID,
221
+ label: "Task execution strategies",
222
+ description: "MAIN wrappers metadata for `executionStrategies` on `RunTaskRequest` (required array; use [] for plain MAIN). Multiple planner/optimizer rows are selected by authoring order, phase, and priority.",
223
+ itemLabel: "Execution strategy",
224
+ });
225
+ }
226
+ export function buildMainExecutionWrappersCatalogDescriptorRecord(nowIso) {
227
+ return buildTaskStrategyCatalogDescriptorRecord(nowIso, {
228
+ catalogId: AI_TASK_MAIN_EXECUTION_WRAPPERS_CATALOG_ID,
229
+ label: "MAIN execution wrappers",
230
+ description: "FuncX-backed MAIN wrappers (`executionStrategies` on `RunTaskRequest`): `direct` (no wrappers), `planner` (before MAIN), `optimizer` (after MAIN). Same strategy keys as the legacy `ai-task-execution-strategies` catalog.",
231
+ itemLabel: "Wrapper",
232
+ });
233
+ }
234
+ export function buildNarrixModesCatalogDescriptorRecord(nowIso) {
235
+ return buildTaskStrategyCatalogDescriptorRecord(nowIso, {
236
+ catalogId: AI_TASK_NARRIX_MODES_CATALOG_ID,
237
+ label: "Narrix modes",
238
+ description: "Narrix invocation mode (`narrixMode` on `RunTaskRequest`): off, preprocessor, or handler.",
239
+ itemLabel: "Narrix mode",
240
+ });
241
+ }
242
+ //# sourceMappingURL=buildTaskStrategyCatalogDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildTaskStrategyCatalogDescriptor.js","sourceRoot":"","sources":["../../src/task-strategies/buildTaskStrategyCatalogDescriptor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uCAAuC,EACvC,qCAAqC,EACrC,mCAAmC,EACnC,0CAA0C,EAC1C,+BAA+B,EAC/B,kCAAkC,EAClC,iCAAiC,GAClC,MAAM,gBAAgB,CAAC;AAExB,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAU/B,SAAS,mBAAmB,CAAC,IAA0C;IACrE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,GAAG,UAAU,EAAE,GAAG,IAAI,CAAC;IACvE,OAAO;QACL,SAAS;QACT,KAAK;QACL,WAAW;QACX,SAAS;QACT,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE;YACZ,OAAO,EAAE,IA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