@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.
- package/.env.example +3 -0
- package/.metadata/instructions-builders/create-expected-output-instructions.md +195 -0
- package/.metadata/readme.md +48 -0
- package/.metadata/shared/audit.md +29 -0
- package/.metadata/skills/professional-answer +32 -0
- package/.metadata/skills/professional-answer.compressed.md +11 -0
- package/.metadata/skills/professional-answer.instructions +33 -0
- package/.metadata/skills/professional-answer.instructions.md +33 -0
- package/.metadata/skills/professional-answer.l2.md +28 -0
- package/.metadata/skills/professional-answer.md +32 -0
- package/.metadata/skills/professional-answer.prompt +1 -0
- package/.metadata/skills/professional-answer.prompt.md +1 -0
- package/.metadata/skills/professional-decision.md +26 -0
- package/BREAKING-CHANGES.md +43 -0
- package/CHANGELOG.md +147 -0
- package/README.md +2497 -0
- package/RUNTASK_REQUEST.md +369 -0
- package/dist/activix/activixClient.d.ts +6 -0
- package/dist/activix/activixClient.d.ts.map +1 -0
- package/dist/activix/activixClient.js +131 -0
- package/dist/activix/activixClient.js.map +1 -0
- package/dist/activix/getTaskActivities.d.ts +10 -0
- package/dist/activix/getTaskActivities.d.ts.map +1 -0
- package/dist/activix/getTaskActivities.js +17 -0
- package/dist/activix/getTaskActivities.js.map +1 -0
- package/dist/activix/phaseTracking.d.ts +17 -0
- package/dist/activix/phaseTracking.d.ts.map +1 -0
- package/dist/activix/phaseTracking.js +85 -0
- package/dist/activix/phaseTracking.js.map +1 -0
- package/dist/aiScoping/index.d.ts +6 -0
- package/dist/aiScoping/index.d.ts.map +1 -0
- package/dist/aiScoping/index.js +4 -0
- package/dist/aiScoping/index.js.map +1 -0
- package/dist/aiScoping/runAiScoping.d.ts +36 -0
- package/dist/aiScoping/runAiScoping.d.ts.map +1 -0
- package/dist/aiScoping/runAiScoping.js +100 -0
- package/dist/aiScoping/runAiScoping.js.map +1 -0
- package/dist/aiScoping/runScopingCall.d.ts +23 -0
- package/dist/aiScoping/runScopingCall.d.ts.map +1 -0
- package/dist/aiScoping/runScopingCall.js +50 -0
- package/dist/aiScoping/runScopingCall.js.map +1 -0
- package/dist/aiScoping/validateAiScoping.d.ts +7 -0
- package/dist/aiScoping/validateAiScoping.d.ts.map +1 -0
- package/dist/aiScoping/validateAiScoping.js +33 -0
- package/dist/aiScoping/validateAiScoping.js.map +1 -0
- package/dist/aiSkillsUpstreamExports.d.ts +13 -0
- package/dist/aiSkillsUpstreamExports.d.ts.map +1 -0
- package/dist/aiSkillsUpstreamExports.js +12 -0
- package/dist/aiSkillsUpstreamExports.js.map +1 -0
- package/dist/analysis/analyzeRunTaskRequest.d.ts +29 -0
- package/dist/analysis/analyzeRunTaskRequest.d.ts.map +1 -0
- package/dist/analysis/analyzeRunTaskRequest.js +85 -0
- package/dist/analysis/analyzeRunTaskRequest.js.map +1 -0
- package/dist/analysis/index.d.ts +3 -0
- package/dist/analysis/index.d.ts.map +1 -0
- package/dist/analysis/index.js +2 -0
- package/dist/analysis/index.js.map +1 -0
- package/dist/builders/task-request-builder.d.ts +310 -0
- package/dist/builders/task-request-builder.d.ts.map +1 -0
- package/dist/builders/task-request-builder.js +581 -0
- package/dist/builders/task-request-builder.js.map +1 -0
- package/dist/compile/compileTaskConfiguration.d.ts +15 -0
- package/dist/compile/compileTaskConfiguration.d.ts.map +1 -0
- package/dist/compile/compileTaskConfiguration.js +184 -0
- package/dist/compile/compileTaskConfiguration.js.map +1 -0
- package/dist/compile/index.d.ts +2 -0
- package/dist/compile/index.d.ts.map +1 -0
- package/dist/compile/index.js +2 -0
- package/dist/compile/index.js.map +1 -0
- package/dist/core/task-sdk.d.ts +36 -0
- package/dist/core/task-sdk.d.ts.map +1 -0
- package/dist/core/task-sdk.js +2432 -0
- package/dist/core/task-sdk.js.map +1 -0
- package/dist/errors/smartInputValidationError.d.ts +39 -0
- package/dist/errors/smartInputValidationError.d.ts.map +1 -0
- package/dist/errors/smartInputValidationError.js +97 -0
- package/dist/errors/smartInputValidationError.js.map +1 -0
- package/dist/errors/taskConfigurationCompileError.d.ts +16 -0
- package/dist/errors/taskConfigurationCompileError.d.ts.map +1 -0
- package/dist/errors/taskConfigurationCompileError.js +20 -0
- package/dist/errors/taskConfigurationCompileError.js.map +1 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.d.ts +17 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.d.ts.map +1 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.js +63 -0
- package/dist/execution-strategies/applyExecutionStrategyOutputs.js.map +1 -0
- package/dist/execution-strategies/constants.d.ts +14 -0
- package/dist/execution-strategies/constants.d.ts.map +1 -0
- package/dist/execution-strategies/constants.js +13 -0
- package/dist/execution-strategies/constants.js.map +1 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.d.ts +9 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.d.ts.map +1 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.js +37 -0
- package/dist/execution-strategies/executionStrategyCatalogMetadata.js.map +1 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.d.ts +94 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.d.ts.map +1 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.js +306 -0
- package/dist/execution-strategies/genericExecutionFuncxEnvelope.js.map +1 -0
- package/dist/execution-strategies/resolveExecutionStrategies.d.ts +14 -0
- package/dist/execution-strategies/resolveExecutionStrategies.d.ts.map +1 -0
- package/dist/execution-strategies/resolveExecutionStrategies.js +108 -0
- package/dist/execution-strategies/resolveExecutionStrategies.js.map +1 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.d.ts +37 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.d.ts.map +1 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.js +72 -0
- package/dist/execution-strategies/runFuncxExecutionStrategy.js.map +1 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/resolveLlmCallForXynthesis.d.ts +52 -0
- package/dist/internal/resolveLlmCallForXynthesis.d.ts.map +1 -0
- package/dist/internal/resolveLlmCallForXynthesis.js +81 -0
- package/dist/internal/resolveLlmCallForXynthesis.js.map +1 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.d.ts +19 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.d.ts.map +1 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.js +52 -0
- package/dist/internal/resolveRunTaskRuntimeKnobs.js.map +1 -0
- package/dist/internal/runPostStepLlmCall.d.ts +52 -0
- package/dist/internal/runPostStepLlmCall.d.ts.map +1 -0
- package/dist/internal/runPostStepLlmCall.js +170 -0
- package/dist/internal/runPostStepLlmCall.js.map +1 -0
- package/dist/localTasks/collectEvidence.d.ts +3 -0
- package/dist/localTasks/collectEvidence.d.ts.map +1 -0
- package/dist/localTasks/collectEvidence.js +364 -0
- package/dist/localTasks/collectEvidence.js.map +1 -0
- package/dist/localTasks/decideWebScope.d.ts +3 -0
- package/dist/localTasks/decideWebScope.d.ts.map +1 -0
- package/dist/localTasks/decideWebScope.js +56 -0
- package/dist/localTasks/decideWebScope.js.map +1 -0
- package/dist/localTasks/index.d.ts +5 -0
- package/dist/localTasks/index.d.ts.map +1 -0
- package/dist/localTasks/index.js +19 -0
- package/dist/localTasks/index.js.map +1 -0
- package/dist/localTasks/narrixAssetPlayground.d.ts +13 -0
- package/dist/localTasks/narrixAssetPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixAssetPlayground.js +161 -0
- package/dist/localTasks/narrixAssetPlayground.js.map +1 -0
- package/dist/localTasks/narrixSubnetPlayground.d.ts +14 -0
- package/dist/localTasks/narrixSubnetPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixSubnetPlayground.js +168 -0
- package/dist/localTasks/narrixSubnetPlayground.js.map +1 -0
- package/dist/localTasks/narrixVulnGroupPlayground.d.ts +13 -0
- package/dist/localTasks/narrixVulnGroupPlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixVulnGroupPlayground.js +161 -0
- package/dist/localTasks/narrixVulnGroupPlayground.js.map +1 -0
- package/dist/localTasks/narrixVulnInstancePlayground.d.ts +13 -0
- package/dist/localTasks/narrixVulnInstancePlayground.d.ts.map +1 -0
- package/dist/localTasks/narrixVulnInstancePlayground.js +165 -0
- package/dist/localTasks/narrixVulnInstancePlayground.js.map +1 -0
- package/dist/localTasks/nodeCallExport.d.ts +6 -0
- package/dist/localTasks/nodeCallExport.d.ts.map +1 -0
- package/dist/localTasks/nodeCallExport.js +99 -0
- package/dist/localTasks/nodeCallExport.js.map +1 -0
- package/dist/localTasks/nodeCallExportBatch.d.ts +3 -0
- package/dist/localTasks/nodeCallExportBatch.d.ts.map +1 -0
- package/dist/localTasks/nodeCallExportBatch.js +52 -0
- package/dist/localTasks/nodeCallExportBatch.js.map +1 -0
- package/dist/localTasks/normalizeNarrixResult.d.ts +3 -0
- package/dist/localTasks/normalizeNarrixResult.d.ts.map +1 -0
- package/dist/localTasks/normalizeNarrixResult.js +106 -0
- package/dist/localTasks/normalizeNarrixResult.js.map +1 -0
- package/dist/localTasks/registry.d.ts +4 -0
- package/dist/localTasks/registry.d.ts.map +1 -0
- package/dist/localTasks/registry.js +8 -0
- package/dist/localTasks/registry.js.map +1 -0
- package/dist/localTasks/types.d.ts +28 -0
- package/dist/localTasks/types.d.ts.map +1 -0
- package/dist/localTasks/types.js +2 -0
- package/dist/localTasks/types.js.map +1 -0
- package/dist/localTasks/validateInput.d.ts +3 -0
- package/dist/localTasks/validateInput.d.ts.map +1 -0
- package/dist/localTasks/validateInput.js +66 -0
- package/dist/localTasks/validateInput.js.map +1 -0
- package/dist/methods/convenience-methods.d.ts +45 -0
- package/dist/methods/convenience-methods.d.ts.map +1 -0
- package/dist/methods/convenience-methods.js +39 -0
- package/dist/methods/convenience-methods.js.map +1 -0
- package/dist/narrix/applyNarrixScope.d.ts +10 -0
- package/dist/narrix/applyNarrixScope.d.ts.map +1 -0
- package/dist/narrix/applyNarrixScope.js +69 -0
- package/dist/narrix/applyNarrixScope.js.map +1 -0
- package/dist/narrix/buildNarrixAttachment.d.ts +9 -0
- package/dist/narrix/buildNarrixAttachment.d.ts.map +1 -0
- package/dist/narrix/buildNarrixAttachment.js +29 -0
- package/dist/narrix/buildNarrixAttachment.js.map +1 -0
- package/dist/narrix/buildWebScopeScopeInput.d.ts +39 -0
- package/dist/narrix/buildWebScopeScopeInput.d.ts.map +1 -0
- package/dist/narrix/buildWebScopeScopeInput.js +193 -0
- package/dist/narrix/buildWebScopeScopeInput.js.map +1 -0
- package/dist/narrix/flags.d.ts +4 -0
- package/dist/narrix/flags.d.ts.map +1 -0
- package/dist/narrix/flags.js +4 -0
- package/dist/narrix/flags.js.map +1 -0
- package/dist/narrix/index.d.ts +11 -0
- package/dist/narrix/index.d.ts.map +1 -0
- package/dist/narrix/index.js +14 -0
- package/dist/narrix/index.js.map +1 -0
- package/dist/narrix/narrixClient.d.ts +9 -0
- package/dist/narrix/narrixClient.d.ts.map +1 -0
- package/dist/narrix/narrixClient.js +46 -0
- package/dist/narrix/narrixClient.js.map +1 -0
- package/dist/narrix/narrixContextMarkdown.d.ts +15 -0
- package/dist/narrix/narrixContextMarkdown.d.ts.map +1 -0
- package/dist/narrix/narrixContextMarkdown.js +98 -0
- package/dist/narrix/narrixContextMarkdown.js.map +1 -0
- package/dist/narrix/narrixRunnerModule.d.ts +11 -0
- package/dist/narrix/narrixRunnerModule.d.ts.map +1 -0
- package/dist/narrix/narrixRunnerModule.js +17 -0
- package/dist/narrix/narrixRunnerModule.js.map +1 -0
- package/dist/narrix/runNarrixForChat.d.ts +3 -0
- package/dist/narrix/runNarrixForChat.d.ts.map +1 -0
- package/dist/narrix/runNarrixForChat.js +51 -0
- package/dist/narrix/runNarrixForChat.js.map +1 -0
- package/dist/narrix/runNarrixForDocs.d.ts +3 -0
- package/dist/narrix/runNarrixForDocs.d.ts.map +1 -0
- package/dist/narrix/runNarrixForDocs.js +50 -0
- package/dist/narrix/runNarrixForDocs.js.map +1 -0
- package/dist/narrix/runNarrixForRecord.d.ts +3 -0
- package/dist/narrix/runNarrixForRecord.d.ts.map +1 -0
- package/dist/narrix/runNarrixForRecord.js +47 -0
- package/dist/narrix/runNarrixForRecord.js.map +1 -0
- package/dist/narrix/runNarrixForText.d.ts +3 -0
- package/dist/narrix/runNarrixForText.d.ts.map +1 -0
- package/dist/narrix/runNarrixForText.js +49 -0
- package/dist/narrix/runNarrixForText.js.map +1 -0
- package/dist/narrix/runnerDispatch.d.ts +12 -0
- package/dist/narrix/runnerDispatch.d.ts.map +1 -0
- package/dist/narrix/runnerDispatch.js +19 -0
- package/dist/narrix/runnerDispatch.js.map +1 -0
- package/dist/narrix/seedBundleRouting.d.ts +15 -0
- package/dist/narrix/seedBundleRouting.d.ts.map +1 -0
- package/dist/narrix/seedBundleRouting.js +46 -0
- package/dist/narrix/seedBundleRouting.js.map +1 -0
- package/dist/narrix/task.d.ts +4 -0
- package/dist/narrix/task.d.ts.map +1 -0
- package/dist/narrix/task.js +143 -0
- package/dist/narrix/task.js.map +1 -0
- package/dist/narrix/types.d.ts +104 -0
- package/dist/narrix/types.d.ts.map +1 -0
- package/dist/narrix/types.js +3 -0
- package/dist/narrix/types.js.map +1 -0
- package/dist/narrix/webContextMarkdown.d.ts +54 -0
- package/dist/narrix/webContextMarkdown.d.ts.map +1 -0
- package/dist/narrix/webContextMarkdown.js +206 -0
- package/dist/narrix/webContextMarkdown.js.map +1 -0
- package/dist/narrix/webScoper.d.ts +43 -0
- package/dist/narrix/webScoper.d.ts.map +1 -0
- package/dist/narrix/webScoper.js +144 -0
- package/dist/narrix/webScoper.js.map +1 -0
- package/dist/observability/debugTrace.d.ts +31 -0
- package/dist/observability/debugTrace.d.ts.map +1 -0
- package/dist/observability/debugTrace.js +117 -0
- package/dist/observability/debugTrace.js.map +1 -0
- package/dist/observability/extractAiTasksObservability.d.ts +7 -0
- package/dist/observability/extractAiTasksObservability.d.ts.map +1 -0
- package/dist/observability/extractAiTasksObservability.js +98 -0
- package/dist/observability/extractAiTasksObservability.js.map +1 -0
- package/dist/observability/graphExecutionRunLogContract.d.ts +19 -0
- package/dist/observability/graphExecutionRunLogContract.d.ts.map +1 -0
- package/dist/observability/graphExecutionRunLogContract.js +11 -0
- package/dist/observability/graphExecutionRunLogContract.js.map +1 -0
- package/dist/packaged-tasks-client.d.ts +66 -0
- package/dist/packaged-tasks-client.d.ts.map +1 -0
- package/dist/packaged-tasks-client.js +100 -0
- package/dist/packaged-tasks-client.js.map +1 -0
- package/dist/planWebScopeQuestions/index.d.ts +78 -0
- package/dist/planWebScopeQuestions/index.d.ts.map +1 -0
- package/dist/planWebScopeQuestions/index.js +282 -0
- package/dist/planWebScopeQuestions/index.js.map +1 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.d.ts +18 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.d.ts.map +1 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.js +42 -0
- package/dist/planWebScopeQuestions/runResearchPlanQuestionsFuncx.js.map +1 -0
- package/dist/post-steps/audit/loadAuditTemplates.d.ts +72 -0
- package/dist/post-steps/audit/loadAuditTemplates.d.ts.map +1 -0
- package/dist/post-steps/audit/loadAuditTemplates.js +62 -0
- package/dist/post-steps/audit/loadAuditTemplates.js.map +1 -0
- package/dist/post-steps/audit/parseAuditOutput.d.ts +11 -0
- package/dist/post-steps/audit/parseAuditOutput.d.ts.map +1 -0
- package/dist/post-steps/audit/parseAuditOutput.js +50 -0
- package/dist/post-steps/audit/parseAuditOutput.js.map +1 -0
- package/dist/post-steps/audit/runAudit.d.ts +22 -0
- package/dist/post-steps/audit/runAudit.d.ts.map +1 -0
- package/dist/post-steps/audit/runAudit.js +406 -0
- package/dist/post-steps/audit/runAudit.js.map +1 -0
- package/dist/post-steps/audit/runAuditCall.d.ts +23 -0
- package/dist/post-steps/audit/runAuditCall.d.ts.map +1 -0
- package/dist/post-steps/audit/runAuditCall.js +32 -0
- package/dist/post-steps/audit/runAuditCall.js.map +1 -0
- package/dist/post-steps/polish/loadPolishTemplates.d.ts +35 -0
- package/dist/post-steps/polish/loadPolishTemplates.d.ts.map +1 -0
- package/dist/post-steps/polish/loadPolishTemplates.js +38 -0
- package/dist/post-steps/polish/loadPolishTemplates.js.map +1 -0
- package/dist/post-steps/polish/parsePolishOutput.d.ts +6 -0
- package/dist/post-steps/polish/parsePolishOutput.d.ts.map +1 -0
- package/dist/post-steps/polish/parsePolishOutput.js +47 -0
- package/dist/post-steps/polish/parsePolishOutput.js.map +1 -0
- package/dist/post-steps/polish/runPolish.d.ts +24 -0
- package/dist/post-steps/polish/runPolish.d.ts.map +1 -0
- package/dist/post-steps/polish/runPolish.js +147 -0
- package/dist/post-steps/polish/runPolish.js.map +1 -0
- package/dist/post-steps/polish/runPolishCall.d.ts +22 -0
- package/dist/post-steps/polish/runPolishCall.d.ts.map +1 -0
- package/dist/post-steps/polish/runPolishCall.js +32 -0
- package/dist/post-steps/polish/runPolishCall.js.map +1 -0
- package/dist/post-steps/resolvePostStepConfig.d.ts +58 -0
- package/dist/post-steps/resolvePostStepConfig.d.ts.map +1 -0
- package/dist/post-steps/resolvePostStepConfig.js +105 -0
- package/dist/post-steps/resolvePostStepConfig.js.map +1 -0
- package/dist/rendrixUpstreamExports.d.ts +7 -0
- package/dist/rendrixUpstreamExports.d.ts.map +1 -0
- package/dist/rendrixUpstreamExports.js +6 -0
- package/dist/rendrixUpstreamExports.js.map +1 -0
- package/dist/skillCatalogExports.d.ts +8 -0
- package/dist/skillCatalogExports.d.ts.map +1 -0
- package/dist/skillCatalogExports.js +8 -0
- package/dist/skillCatalogExports.js.map +1 -0
- package/dist/strategies/direct-execution-strategy.d.ts +31 -0
- package/dist/strategies/direct-execution-strategy.d.ts.map +1 -0
- package/dist/strategies/direct-execution-strategy.js +107 -0
- package/dist/strategies/direct-execution-strategy.js.map +1 -0
- package/dist/strategies/execution-strategy.interface.d.ts +31 -0
- package/dist/strategies/execution-strategy.interface.d.ts.map +1 -0
- package/dist/strategies/execution-strategy.interface.js +2 -0
- package/dist/strategies/execution-strategy.interface.js.map +1 -0
- package/dist/strategies/index.d.ts +9 -0
- package/dist/strategies/index.d.ts.map +1 -0
- package/dist/strategies/index.js +8 -0
- package/dist/strategies/index.js.map +1 -0
- package/dist/strategies/strategy-factory.d.ts +45 -0
- package/dist/strategies/strategy-factory.d.ts.map +1 -0
- package/dist/strategies/strategy-factory.js +59 -0
- package/dist/strategies/strategy-factory.js.map +1 -0
- package/dist/synthesis/index.d.ts +9 -0
- package/dist/synthesis/index.d.ts.map +1 -0
- package/dist/synthesis/index.js +8 -0
- package/dist/synthesis/index.js.map +1 -0
- package/dist/synthesis/resolveSourceMaterial.d.ts +35 -0
- package/dist/synthesis/resolveSourceMaterial.d.ts.map +1 -0
- package/dist/synthesis/resolveSourceMaterial.js +152 -0
- package/dist/synthesis/resolveSourceMaterial.js.map +1 -0
- package/dist/synthesis/runStructuredSynthesisRobust.d.ts +42 -0
- package/dist/synthesis/runStructuredSynthesisRobust.d.ts.map +1 -0
- package/dist/synthesis/runStructuredSynthesisRobust.js +303 -0
- package/dist/synthesis/runStructuredSynthesisRobust.js.map +1 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts +19 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.d.ts.map +1 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js +242 -0
- package/dist/task-strategies/buildTaskStrategyCatalogDescriptor.js.map +1 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts +171 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.d.ts.map +1 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.js +117 -0
- package/dist/task-strategies/canonicalInputExecutionStrategies.js.map +1 -0
- package/dist/task-strategies/canonicalNarrixModes.d.ts +31 -0
- package/dist/task-strategies/canonicalNarrixModes.d.ts.map +1 -0
- package/dist/task-strategies/canonicalNarrixModes.js +35 -0
- package/dist/task-strategies/canonicalNarrixModes.js.map +1 -0
- package/dist/task-strategies/canonicalTaskStrategies.d.ts +104 -0
- package/dist/task-strategies/canonicalTaskStrategies.d.ts.map +1 -0
- package/dist/task-strategies/canonicalTaskStrategies.js +77 -0
- package/dist/task-strategies/canonicalTaskStrategies.js.map +1 -0
- package/dist/task-strategies/cataloxCatalogViews.d.ts +55 -0
- package/dist/task-strategies/cataloxCatalogViews.d.ts.map +1 -0
- package/dist/task-strategies/cataloxCatalogViews.js +65 -0
- package/dist/task-strategies/cataloxCatalogViews.js.map +1 -0
- package/dist/task-strategies/constants.d.ts +49 -0
- package/dist/task-strategies/constants.d.ts.map +1 -0
- package/dist/task-strategies/constants.js +49 -0
- package/dist/task-strategies/constants.js.map +1 -0
- package/dist/task-strategies/index.d.ts +22 -0
- package/dist/task-strategies/index.d.ts.map +1 -0
- package/dist/task-strategies/index.js +13 -0
- package/dist/task-strategies/index.js.map +1 -0
- package/dist/task-strategies/listAiTaskStrategies.d.ts +43 -0
- package/dist/task-strategies/listAiTaskStrategies.d.ts.map +1 -0
- package/dist/task-strategies/listAiTaskStrategies.js +74 -0
- package/dist/task-strategies/listAiTaskStrategies.js.map +1 -0
- package/dist/task-strategies/normalize.d.ts +7 -0
- package/dist/task-strategies/normalize.d.ts.map +1 -0
- package/dist/task-strategies/normalize.js +44 -0
- package/dist/task-strategies/normalize.js.map +1 -0
- package/dist/task-strategies/types.d.ts +37 -0
- package/dist/task-strategies/types.d.ts.map +1 -0
- package/dist/task-strategies/types.js +2 -0
- package/dist/task-strategies/types.js.map +1 -0
- package/dist/types/decision-contracts.d.ts +31 -0
- package/dist/types/decision-contracts.d.ts.map +1 -0
- package/dist/types/decision-contracts.js +23 -0
- package/dist/types/decision-contracts.js.map +1 -0
- package/dist/types/evidence-types.d.ts +108 -0
- package/dist/types/evidence-types.d.ts.map +1 -0
- package/dist/types/evidence-types.js +9 -0
- package/dist/types/evidence-types.js.map +1 -0
- package/dist/types/executionType.d.ts +9 -0
- package/dist/types/executionType.d.ts.map +1 -0
- package/dist/types/executionType.js +8 -0
- package/dist/types/executionType.js.map +1 -0
- package/dist/types/index.d.ts +28 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +12 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/llmCall.d.ts +121 -0
- package/dist/types/llmCall.d.ts.map +1 -0
- package/dist/types/llmCall.js +39 -0
- package/dist/types/llmCall.js.map +1 -0
- package/dist/types/task-configuration.d.ts +60 -0
- package/dist/types/task-configuration.d.ts.map +1 -0
- package/dist/types/task-configuration.js +3 -0
- package/dist/types/task-configuration.js.map +1 -0
- package/dist/types/task-types.d.ts +887 -0
- package/dist/types/task-types.d.ts.map +1 -0
- package/dist/types/task-types.js +21 -0
- package/dist/types/task-types.js.map +1 -0
- package/dist/utilities/runUtility.d.ts +3 -0
- package/dist/utilities/runUtility.d.ts.map +1 -0
- package/dist/utilities/runUtility.js +204 -0
- package/dist/utilities/runUtility.js.map +1 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.d.ts +7 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.d.ts.map +1 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.js +17 -0
- package/dist/utils/assertRequiredRunSkillCorrelation.js.map +1 -0
- package/dist/utils/assertValidSmartInputConfig.d.ts +5 -0
- package/dist/utils/assertValidSmartInputConfig.d.ts.map +1 -0
- package/dist/utils/assertValidSmartInputConfig.js +71 -0
- package/dist/utils/assertValidSmartInputConfig.js.map +1 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.d.ts +13 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.d.ts.map +1 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.js +65 -0
- package/dist/utils/bridgeRunSkillGatewayMemory.js.map +1 -0
- package/dist/utils/extractSmartInputRenderResult.d.ts +7 -0
- package/dist/utils/extractSmartInputRenderResult.d.ts.map +1 -0
- package/dist/utils/extractSmartInputRenderResult.js +30 -0
- package/dist/utils/extractSmartInputRenderResult.js.map +1 -0
- package/dist/utils/jsonPaths.d.ts +6 -0
- package/dist/utils/jsonPaths.d.ts.map +1 -0
- package/dist/utils/jsonPaths.js +32 -0
- package/dist/utils/jsonPaths.js.map +1 -0
- package/dist/utils/normalizeSmartInputConfig.d.ts +5 -0
- package/dist/utils/normalizeSmartInputConfig.d.ts.map +1 -0
- package/dist/utils/normalizeSmartInputConfig.js +30 -0
- package/dist/utils/normalizeSmartInputConfig.js.map +1 -0
- package/dist/utils/outputValidation.d.ts +19 -0
- package/dist/utils/outputValidation.d.ts.map +1 -0
- package/dist/utils/outputValidation.js +75 -0
- package/dist/utils/outputValidation.js.map +1 -0
- package/dist/utils/runTaskRequestShape.d.ts +16 -0
- package/dist/utils/runTaskRequestShape.d.ts.map +1 -0
- package/dist/utils/runTaskRequestShape.js +80 -0
- package/dist/utils/runTaskRequestShape.js.map +1 -0
- package/dist/utils/skillTemplateVariables.d.ts +20 -0
- package/dist/utils/skillTemplateVariables.d.ts.map +1 -0
- package/dist/utils/skillTemplateVariables.js +63 -0
- package/dist/utils/skillTemplateVariables.js.map +1 -0
- package/dist/utils/xynthesizedSmartInputPaths.d.ts +16 -0
- package/dist/utils/xynthesizedSmartInputPaths.d.ts.map +1 -0
- package/dist/utils/xynthesizedSmartInputPaths.js +56 -0
- package/dist/utils/xynthesizedSmartInputPaths.js.map +1 -0
- package/dist/utils/xynthesizedWrite.d.ts +10 -0
- package/dist/utils/xynthesizedWrite.d.ts.map +1 -0
- package/dist/utils/xynthesizedWrite.js +61 -0
- package/dist/utils/xynthesizedWrite.js.map +1 -0
- package/dist/validation/analyzeExpectedRunTaskInput.d.ts +41 -0
- package/dist/validation/analyzeExpectedRunTaskInput.d.ts.map +1 -0
- package/dist/validation/analyzeExpectedRunTaskInput.js +133 -0
- package/dist/validation/analyzeExpectedRunTaskInput.js.map +1 -0
- package/dist/validation/collectSmartInputValidationIssues.d.ts +6 -0
- package/dist/validation/collectSmartInputValidationIssues.d.ts.map +1 -0
- package/dist/validation/collectSmartInputValidationIssues.js +38 -0
- package/dist/validation/collectSmartInputValidationIssues.js.map +1 -0
- package/dist/validation/helpers.d.ts +15 -0
- package/dist/validation/helpers.d.ts.map +1 -0
- package/dist/validation/helpers.js +184 -0
- package/dist/validation/helpers.js.map +1 -0
- package/dist/validation/index.d.ts +9 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +6 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/types.d.ts +51 -0
- package/dist/validation/types.d.ts.map +1 -0
- package/dist/validation/types.js +5 -0
- package/dist/validation/types.js.map +1 -0
- package/dist/validation/validateRunTaskConfig.d.ts +8 -0
- package/dist/validation/validateRunTaskConfig.d.ts.map +1 -0
- package/dist/validation/validateRunTaskConfig.js +158 -0
- package/dist/validation/validateRunTaskConfig.js.map +1 -0
- package/dist/validation/validateRunTaskInvoke.d.ts +30 -0
- package/dist/validation/validateRunTaskInvoke.d.ts.map +1 -0
- package/dist/validation/validateRunTaskInvoke.js +108 -0
- package/dist/validation/validateRunTaskInvoke.js.map +1 -0
- package/documenations/activix-feature-request-identity.md +123 -0
- package/documenations/activix.md +175 -0
- package/documenations/bug-report-xynthesis-and-synthesis-call.md +217 -0
- package/documenations/core-runtime-tokens-and-strategies.md +123 -0
- package/documenations/downstream-environment.md +48 -0
- package/documenations/downstream-test-runtime-teardown-cleanup.md +73 -0
- package/documenations/examples/xynthesis-run-task-request.example.json +170 -0
- package/documenations/feature-request-ai-skills-raw-template-access.md +82 -0
- package/documenations/feature-request-athenix-core-directive.md +145 -0
- package/documenations/feature-request-athenix-token-extraction.md +124 -0
- package/documenations/funcx-catalog-hosting-checklist.md +107 -0
- package/documenations/funcx-scoping-integration-gaps.md +120 -0
- package/documenations/funcx-upstream-github-issues-draft.md +153 -0
- package/documenations/identity-metadata-contract.md +165 -0
- package/documenations/intermediate-steps.md +33 -0
- package/documenations/record-and-template-variables.md +32 -0
- package/documenations/run-task-execution-flow.md +153 -0
- package/documenations/run-task-single-run-checklist.md +109 -0
- package/documenations/schemas/README.md +40 -0
- package/documenations/schemas/openapi-3.1-components.yaml +24 -0
- package/documenations/schemas/v1/output-schema.json +55 -0
- package/documenations/schemas/v1/output-validation-result.json +41 -0
- package/documenations/schemas/v1/run-task-request.json +219 -0
- package/documenations/schemas/v1/synthesized-artifacts.json +133 -0
- package/documenations/synthesis-invocation-notes.md +26 -0
- package/documenations/synthesized-context-guide.md +84 -0
- package/documenations/task-core-and-core-aware-synthesis.md +58 -0
- package/documenations/upstream-feature-requests/ai-skills-llm-observability.md +129 -0
- package/documenations/upstream-feature-requests/xynthesis-llm-observability.md +125 -0
- package/documenations/upstream-feedback-request-shape-clarification.md +101 -0
- package/documenations/web-context-precedence.md +33 -0
- package/documenations/web-scoping-in-ai-tasks.md +503 -0
- package/documenations/xynthesis-activix-telemetry.md +28 -0
- package/documenations/xynthesis-upstream-fixes-checklist.md +71 -0
- package/package.json +92 -0
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
import { SYNTHESIZED_CONTEXT } from "../types/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Builder for constructing task requests.
|
|
4
|
+
*
|
|
5
|
+
* Provides a fluent API for building task requests with proper defaults
|
|
6
|
+
* and validation. This makes it easier to construct complex requests
|
|
7
|
+
* and ensures consistency across the SDK.
|
|
8
|
+
*/
|
|
9
|
+
export class TaskRequestBuilder {
|
|
10
|
+
request;
|
|
11
|
+
constructor() {
|
|
12
|
+
this.request = {};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Set the skill key to execute.
|
|
16
|
+
*
|
|
17
|
+
* @param skillKey The skill key (e.g., "skills/professional-answer")
|
|
18
|
+
* @returns The builder instance for chaining
|
|
19
|
+
*/
|
|
20
|
+
withSkillKey(skillKey) {
|
|
21
|
+
this.request.skillKey = skillKey;
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Required `@exellix/ai-skills` correlation ids (agent, job type, task type). Must be set before `build()`.
|
|
26
|
+
*/
|
|
27
|
+
withAiSkillsCorrelation(agentId, jobTypeId, taskTypeId) {
|
|
28
|
+
this.request.agentId = agentId;
|
|
29
|
+
this.request.jobTypeId = jobTypeId;
|
|
30
|
+
this.request.taskTypeId = taskTypeId;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Set the input data.
|
|
35
|
+
*
|
|
36
|
+
* @param input The input data (object or string)
|
|
37
|
+
* @returns The builder instance for chaining
|
|
38
|
+
*/
|
|
39
|
+
withInput(input) {
|
|
40
|
+
this.request.input = input;
|
|
41
|
+
return this;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Set AI scoping instructions (optional). When present, internal AI calls scope memory content into input.aiScoped before the main task runs.
|
|
45
|
+
*
|
|
46
|
+
* @param instructions Array of { source, instructions, targetToken }
|
|
47
|
+
* @returns The builder instance for chaining
|
|
48
|
+
*/
|
|
49
|
+
withAiScoping(instructions) {
|
|
50
|
+
this.request.aiScoping = instructions;
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Set the execution pipeline (pre → main → post steps).
|
|
55
|
+
*
|
|
56
|
+
* @param steps Array of { phase, type, config? }
|
|
57
|
+
* @returns The builder instance for chaining
|
|
58
|
+
*/
|
|
59
|
+
withExecutionPipeline(steps) {
|
|
60
|
+
this.request.executionPipeline = steps;
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* MAIN wrappers (`RunTaskRequest.executionStrategies`): required at runtime; defaults to `[]` in `build()` when unset.
|
|
65
|
+
*/
|
|
66
|
+
withExecutionStrategies(executionStrategies) {
|
|
67
|
+
this.request.executionStrategies = executionStrategies;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Add a synthesized-context PRE step before the main task. A weak model synthesizes context from narrix/memory;
|
|
72
|
+
* the main task then runs with that as context. Sets includeContextInPrompt to true.
|
|
73
|
+
* If no pipeline is set yet, defaults to [main: direct] and inserts this pre step.
|
|
74
|
+
*
|
|
75
|
+
* @param modelOrConfig Optional model name (e.g. "gpt-5-nano") or full SynthesisConfig
|
|
76
|
+
* @returns The builder instance for chaining
|
|
77
|
+
*/
|
|
78
|
+
withSynthesizedContextPreStep(modelOrConfig) {
|
|
79
|
+
this.request.includeContextInPrompt = true;
|
|
80
|
+
const config = typeof modelOrConfig === "string"
|
|
81
|
+
? { modelConfig: { model: modelOrConfig } }
|
|
82
|
+
: modelOrConfig ?? {};
|
|
83
|
+
const preStep = {
|
|
84
|
+
phase: "pre",
|
|
85
|
+
type: SYNTHESIZED_CONTEXT,
|
|
86
|
+
config,
|
|
87
|
+
};
|
|
88
|
+
const existing = this.request.executionPipeline;
|
|
89
|
+
if (existing && Array.isArray(existing) && existing.length > 0) {
|
|
90
|
+
const mainIdx = existing.findIndex((s) => s.phase === "main");
|
|
91
|
+
if (mainIdx >= 0) {
|
|
92
|
+
const before = existing.slice(0, mainIdx);
|
|
93
|
+
const after = existing.slice(mainIdx);
|
|
94
|
+
this.request.executionPipeline = [...before, preStep, ...after];
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
this.request.executionPipeline = [preStep, { phase: "main", type: "direct" }];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
this.request.executionPipeline = [preStep, { phase: "main", type: "direct" }];
|
|
102
|
+
}
|
|
103
|
+
return this;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Set synthesis mode on existing synthesized-context PRE step configs.
|
|
107
|
+
*/
|
|
108
|
+
withSynthesisMode(synthesisMode) {
|
|
109
|
+
const pipeline = this.request.executionPipeline;
|
|
110
|
+
if (!pipeline || !Array.isArray(pipeline))
|
|
111
|
+
return this;
|
|
112
|
+
this.request.executionPipeline = pipeline.map((step) => {
|
|
113
|
+
if (step.phase !== "pre" || step.type !== SYNTHESIZED_CONTEXT)
|
|
114
|
+
return step;
|
|
115
|
+
return {
|
|
116
|
+
...step,
|
|
117
|
+
config: {
|
|
118
|
+
...(step.config ?? {}),
|
|
119
|
+
synthesisMode,
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
return this;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Add an audit POST step. Quality-gate loop with re-runs and optional synthesis.
|
|
127
|
+
* Ensures executionPipeline exists with a MAIN "direct" step, then appends the audit step.
|
|
128
|
+
*
|
|
129
|
+
* @param config AuditConfig (gateway.must, gateway.should, threshold, maxCycles, etc.)
|
|
130
|
+
* @returns The builder instance for chaining
|
|
131
|
+
*/
|
|
132
|
+
withAuditPostStep(config) {
|
|
133
|
+
const postStep = { phase: "post", type: "audit", config };
|
|
134
|
+
const existing = this.request.executionPipeline;
|
|
135
|
+
if (existing && Array.isArray(existing) && existing.length > 0) {
|
|
136
|
+
const hasMain = existing.some((s) => s.phase === "main");
|
|
137
|
+
if (hasMain) {
|
|
138
|
+
this.request.executionPipeline = [...existing, postStep];
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
this.request.executionPipeline = [{ phase: "main", type: "direct" }, postStep];
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
this.request.executionPipeline = [{ phase: "main", type: "direct" }, postStep];
|
|
146
|
+
}
|
|
147
|
+
return this;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Add a polish POST step. Refinement pass against a prioritized checklist.
|
|
151
|
+
* Ensures executionPipeline exists with a MAIN "direct" step, then appends the polish step.
|
|
152
|
+
*
|
|
153
|
+
* @param config PolishConfig (checklist, maxPasses, etc.)
|
|
154
|
+
* @returns The builder instance for chaining
|
|
155
|
+
*/
|
|
156
|
+
withPolishPostStep(config) {
|
|
157
|
+
const postStep = { phase: "post", type: "polish", config };
|
|
158
|
+
const existing = this.request.executionPipeline;
|
|
159
|
+
if (existing && Array.isArray(existing) && existing.length > 0) {
|
|
160
|
+
const hasMain = existing.some((s) => s.phase === "main");
|
|
161
|
+
if (hasMain) {
|
|
162
|
+
this.request.executionPipeline = [...existing, postStep];
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
this.request.executionPipeline = [{ phase: "main", type: "direct" }, postStep];
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
else {
|
|
169
|
+
this.request.executionPipeline = [{ phase: "main", type: "direct" }, postStep];
|
|
170
|
+
}
|
|
171
|
+
return this;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Set contextual variables.
|
|
175
|
+
*
|
|
176
|
+
* @param variables The variables object
|
|
177
|
+
* @returns The builder instance for chaining
|
|
178
|
+
*/
|
|
179
|
+
withVariables(variables) {
|
|
180
|
+
this.request.variables = variables;
|
|
181
|
+
return this;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Set job- or graph-level fields merged into template variables (lowest precedence vs `withVariables` and `input`-derived bindings).
|
|
185
|
+
*/
|
|
186
|
+
withJobContext(jobContext) {
|
|
187
|
+
this.request.jobContext = jobContext;
|
|
188
|
+
return this;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Set context data.
|
|
192
|
+
*
|
|
193
|
+
* @param context The context (object or string)
|
|
194
|
+
* @returns The builder instance for chaining
|
|
195
|
+
*/
|
|
196
|
+
withContext(context) {
|
|
197
|
+
this.request.context = context;
|
|
198
|
+
return this;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Set knowledge data.
|
|
202
|
+
*
|
|
203
|
+
* @param knowledge The knowledge object
|
|
204
|
+
* @returns The builder instance for chaining
|
|
205
|
+
*/
|
|
206
|
+
withKnowledge(knowledge) {
|
|
207
|
+
this.request.knowledge = knowledge;
|
|
208
|
+
return this;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Set job memory.
|
|
212
|
+
*
|
|
213
|
+
* @param jobMemory The job memory
|
|
214
|
+
* @returns The builder instance for chaining
|
|
215
|
+
*/
|
|
216
|
+
withJobMemory(jobMemory) {
|
|
217
|
+
this.request.jobMemory = jobMemory;
|
|
218
|
+
return this;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Set task memory.
|
|
222
|
+
*
|
|
223
|
+
* @param taskMemory The task memory
|
|
224
|
+
* @returns The builder instance for chaining
|
|
225
|
+
*/
|
|
226
|
+
withTaskMemory(taskMemory) {
|
|
227
|
+
this.request.taskMemory = taskMemory;
|
|
228
|
+
return this;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Set execution memory.
|
|
232
|
+
*
|
|
233
|
+
* @param executionMemory The execution memory (history of execution context)
|
|
234
|
+
* @returns The builder instance for chaining
|
|
235
|
+
*/
|
|
236
|
+
withExecutionMemory(executionMemory) {
|
|
237
|
+
this.request.executionMemory = executionMemory;
|
|
238
|
+
return this;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Set job ID.
|
|
242
|
+
*
|
|
243
|
+
* @param jobId The job ID
|
|
244
|
+
* @returns The builder instance for chaining
|
|
245
|
+
*/
|
|
246
|
+
withJobId(jobId) {
|
|
247
|
+
this.request.jobId = jobId;
|
|
248
|
+
return this;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Set agent ID.
|
|
252
|
+
*
|
|
253
|
+
* @param agentId The agent ID
|
|
254
|
+
* @returns The builder instance for chaining
|
|
255
|
+
*/
|
|
256
|
+
withAgentId(agentId) {
|
|
257
|
+
this.request.agentId = agentId;
|
|
258
|
+
return this;
|
|
259
|
+
}
|
|
260
|
+
/** `@exellix/ai-skills` job type id (required with agentId / taskTypeId for `build()`). */
|
|
261
|
+
withJobTypeId(jobTypeId) {
|
|
262
|
+
this.request.jobTypeId = jobTypeId;
|
|
263
|
+
return this;
|
|
264
|
+
}
|
|
265
|
+
/** `@exellix/ai-skills` task type id (required with agentId / jobTypeId for `build()`). */
|
|
266
|
+
withTaskTypeId(taskTypeId) {
|
|
267
|
+
this.request.taskTypeId = taskTypeId;
|
|
268
|
+
return this;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Set timeout in milliseconds.
|
|
272
|
+
*
|
|
273
|
+
* @param timeoutMs The timeout in milliseconds
|
|
274
|
+
* @returns The builder instance for chaining
|
|
275
|
+
*/
|
|
276
|
+
withTimeout(timeoutMs) {
|
|
277
|
+
this.request.timeoutMs = timeoutMs;
|
|
278
|
+
return this;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Set additional skill-related IDs.
|
|
282
|
+
*
|
|
283
|
+
* @param coreSkillId The core skill ID (renamed from skillId to avoid confusion with runSkill's skillId)
|
|
284
|
+
* @param masterSkillId The master skill ID
|
|
285
|
+
* @param masterSkillActivityId The master skill activity ID
|
|
286
|
+
* @returns The builder instance for chaining
|
|
287
|
+
*/
|
|
288
|
+
withSkillIds(coreSkillId, masterSkillId, masterSkillActivityId) {
|
|
289
|
+
if (coreSkillId)
|
|
290
|
+
this.request.coreSkillId = coreSkillId;
|
|
291
|
+
if (masterSkillId)
|
|
292
|
+
this.request.masterSkillId = masterSkillId;
|
|
293
|
+
if (masterSkillActivityId)
|
|
294
|
+
this.request.masterSkillActivityId = masterSkillActivityId;
|
|
295
|
+
return this;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Set graph execution context for better activity tracking.
|
|
299
|
+
*
|
|
300
|
+
* These fields enable smarter activity tracking and identity for nodes
|
|
301
|
+
* executing within graph workflows. When provided, they are automatically
|
|
302
|
+
* mapped to activity identity fields in the gateway.
|
|
303
|
+
*
|
|
304
|
+
* @param graphId Graph identifier for activity tracking
|
|
305
|
+
* @param nodeId Node identifier for activity tracking
|
|
306
|
+
* @param prevNodeId Previous node identifier for activity tracking
|
|
307
|
+
* @returns The builder instance for chaining
|
|
308
|
+
*/
|
|
309
|
+
withGraphContext(graphId, nodeId, prevNodeId) {
|
|
310
|
+
if (graphId)
|
|
311
|
+
this.request.graphId = graphId;
|
|
312
|
+
if (nodeId)
|
|
313
|
+
this.request.nodeId = nodeId;
|
|
314
|
+
if (prevNodeId)
|
|
315
|
+
this.request.prevNodeId = prevNodeId;
|
|
316
|
+
return this;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Set graph identifier for activity tracking.
|
|
320
|
+
*
|
|
321
|
+
* @param graphId The graph identifier
|
|
322
|
+
* @returns The builder instance for chaining
|
|
323
|
+
*/
|
|
324
|
+
withGraphId(graphId) {
|
|
325
|
+
this.request.graphId = graphId;
|
|
326
|
+
return this;
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Set node identifier for activity tracking.
|
|
330
|
+
*
|
|
331
|
+
* @param nodeId The node identifier
|
|
332
|
+
* @returns The builder instance for chaining
|
|
333
|
+
*/
|
|
334
|
+
withNodeId(nodeId) {
|
|
335
|
+
this.request.nodeId = nodeId;
|
|
336
|
+
return this;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Set previous node identifier for activity tracking.
|
|
340
|
+
*
|
|
341
|
+
* Used to track the previous node in a graph execution flow.
|
|
342
|
+
* Automatically mapped to identity.prevNodeId in activity tracking.
|
|
343
|
+
*
|
|
344
|
+
* @param prevNodeId The previous node identifier
|
|
345
|
+
* @returns The builder instance for chaining
|
|
346
|
+
*/
|
|
347
|
+
withPrevNodeId(prevNodeId) {
|
|
348
|
+
this.request.prevNodeId = prevNodeId;
|
|
349
|
+
return this;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Set model configuration for this task execution.
|
|
353
|
+
*
|
|
354
|
+
* Controls which model is used and how it generates responses.
|
|
355
|
+
* This configuration overrides default model settings from client initialization
|
|
356
|
+
* and is passed through to the gateway for model selection and parameter control.
|
|
357
|
+
*
|
|
358
|
+
* @param modelConfig Model configuration (model, temperature, maxTokens, etc.)
|
|
359
|
+
* @returns The builder instance for chaining
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* ```typescript
|
|
363
|
+
* builder.withModelConfig({
|
|
364
|
+
* model: "gpt-4-turbo",
|
|
365
|
+
* temperature: 0.7,
|
|
366
|
+
* maxTokens: 2000
|
|
367
|
+
* })
|
|
368
|
+
* ```
|
|
369
|
+
*/
|
|
370
|
+
withModelConfig(modelConfig) {
|
|
371
|
+
this.request.modelConfig = modelConfig;
|
|
372
|
+
return this;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Set the **main-skill** LLM call configuration (`RunTaskRequest.llmCall`).
|
|
376
|
+
*
|
|
377
|
+
* `LlmCallConfig` is the canonical, per-stage knob set used everywhere LLMs are invoked
|
|
378
|
+
* (PRE synthesis, AI scoping, MAIN skill, POST audit/polish, utilities). It supports:
|
|
379
|
+
*
|
|
380
|
+
* - `model` — provider/model id (overrides `modelConfig.model`).
|
|
381
|
+
* - `maxTokensCap` — **hard ceiling** for completion tokens; passed to `xynthesis.resolveMaxTokens`
|
|
382
|
+
* so the dynamic budget never exceeds this value. Use this instead of a bare
|
|
383
|
+
* `maxTokens` when you want to keep auto-sizing on but bound it.
|
|
384
|
+
* - `maxTokens` — alias for `maxTokensCap` (kept for ergonomic parity with `ModelConfig`).
|
|
385
|
+
* - `temperature` — sampling temperature.
|
|
386
|
+
* - `topP` — nucleus-sampling cutoff.
|
|
387
|
+
* - `outputExpectation` — caller-supplied size/density hint forwarded to `resolveMaxTokens`
|
|
388
|
+
* (overrides per-action `ACTION_OUTPUT_DEFAULTS` from xynthesis routing JSON).
|
|
389
|
+
* - `maxOutputLength` — character cap applied after the LLM returns (post-truncation, not a token cap).
|
|
390
|
+
* - `timeoutMs` — per-call timeout for the underlying invoke.
|
|
391
|
+
*
|
|
392
|
+
* `LlmCallConfig` is composable with the deprecated `modelConfig` and per-step `model`/`timeoutMs`/
|
|
393
|
+
* `maxOutputLength` fields — when both are set, `llmCall.*` wins.
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
* ```typescript
|
|
397
|
+
* builder.withLlmCall({
|
|
398
|
+
* model: "gpt-5-mini",
|
|
399
|
+
* maxTokensCap: 4096,
|
|
400
|
+
* temperature: 0.4,
|
|
401
|
+
* outputExpectation: { size: { kind: "absolute", maxWords: 600 }, density: "default" },
|
|
402
|
+
* })
|
|
403
|
+
* ```
|
|
404
|
+
*/
|
|
405
|
+
withLlmCall(llmCall) {
|
|
406
|
+
this.request.llmCall = llmCall;
|
|
407
|
+
return this;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Set AI-scoping execution options (request-level fallback for every per-instruction scoping call).
|
|
411
|
+
*
|
|
412
|
+
* - `llmCall` — default {@link LlmCallConfig} for scoping LLM calls. Per-instruction `instruction.llmCall`
|
|
413
|
+
* overrides this.
|
|
414
|
+
* - `concurrency` — max parallel scoping calls (default 5; env `AI_SCOPING_CONCURRENCY`).
|
|
415
|
+
* - `timeoutMsPerItem` — per-instruction timeout in ms (default 30_000; env `AI_SCOPING_TIMEOUT_MS`).
|
|
416
|
+
*
|
|
417
|
+
* Per-item failures are captured (not silently dropped) on the response under
|
|
418
|
+
* `result.metadata.aiScopingFailures`. In trace mode the per-item observations are also surfaced
|
|
419
|
+
* under `result.metadata.aiScopingLlmCalls`.
|
|
420
|
+
*/
|
|
421
|
+
withAiScopingOptions(opts) {
|
|
422
|
+
this.request.aiScopingOptions = opts;
|
|
423
|
+
return this;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Replace the `llmCall` config on the synthesized-context PRE step (must be added first via
|
|
427
|
+
* {@link withSynthesizedContextPreStep}).
|
|
428
|
+
*/
|
|
429
|
+
withSynthesisLlmCall(llmCall) {
|
|
430
|
+
const pipeline = this.request.executionPipeline;
|
|
431
|
+
if (!pipeline || !Array.isArray(pipeline))
|
|
432
|
+
return this;
|
|
433
|
+
this.request.executionPipeline = pipeline.map((step) => {
|
|
434
|
+
if (step.phase !== "pre" || step.type !== SYNTHESIZED_CONTEXT)
|
|
435
|
+
return step;
|
|
436
|
+
return {
|
|
437
|
+
...step,
|
|
438
|
+
config: {
|
|
439
|
+
...(step.config ?? {}),
|
|
440
|
+
llmCall,
|
|
441
|
+
},
|
|
442
|
+
};
|
|
443
|
+
});
|
|
444
|
+
return this;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Replace the `llmCall` config on the audit POST step (must be added first via
|
|
448
|
+
* {@link withAuditPostStep}). When `role` is omitted, sets the top-level audit `llmCall` (used by both
|
|
449
|
+
* the audit evaluator and the synthesis-merge call). Use `role: "audit"` or `role: "synthesis"` to
|
|
450
|
+
* target a specific sub-call.
|
|
451
|
+
*/
|
|
452
|
+
withAuditLlmCall(llmCall, role) {
|
|
453
|
+
const pipeline = this.request.executionPipeline;
|
|
454
|
+
if (!pipeline || !Array.isArray(pipeline))
|
|
455
|
+
return this;
|
|
456
|
+
this.request.executionPipeline = pipeline.map((step) => {
|
|
457
|
+
if (step.phase !== "post" || step.type !== "audit")
|
|
458
|
+
return step;
|
|
459
|
+
const cfg = (step.config ?? {});
|
|
460
|
+
const nextCfg = role
|
|
461
|
+
? {
|
|
462
|
+
...cfg,
|
|
463
|
+
audit: {
|
|
464
|
+
...(cfg.audit ?? {}),
|
|
465
|
+
...(role === "audit" ? { llmCall } : {}),
|
|
466
|
+
...(role === "synthesis" ? { synthesis: { ...(cfg?.audit?.synthesis ?? {}), llmCall } } : {}),
|
|
467
|
+
},
|
|
468
|
+
}
|
|
469
|
+
: { ...cfg, llmCall };
|
|
470
|
+
return { ...step, config: nextCfg };
|
|
471
|
+
});
|
|
472
|
+
return this;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* Replace the `llmCall` config on the polish POST step (must be added first via
|
|
476
|
+
* {@link withPolishPostStep}).
|
|
477
|
+
*/
|
|
478
|
+
withPolishLlmCall(llmCall) {
|
|
479
|
+
const pipeline = this.request.executionPipeline;
|
|
480
|
+
if (!pipeline || !Array.isArray(pipeline))
|
|
481
|
+
return this;
|
|
482
|
+
this.request.executionPipeline = pipeline.map((step) => {
|
|
483
|
+
if (step.phase !== "post" || step.type !== "polish")
|
|
484
|
+
return step;
|
|
485
|
+
const cfg = (step.config ?? {});
|
|
486
|
+
return { ...step, config: { ...cfg, llmCall } };
|
|
487
|
+
});
|
|
488
|
+
return this;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Per-task overrides for gateway / athenix-parser template rendering (merged on client defaults for this invoke).
|
|
492
|
+
* See `@exellix/ai-skills` gateway template v4 docs (`subPathSearch`, optional tokens, etc.).
|
|
493
|
+
*/
|
|
494
|
+
withTemplateRenderOptions(templateRenderOptions) {
|
|
495
|
+
this.request.templateRenderOptions = templateRenderOptions;
|
|
496
|
+
return this;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Highest-priority template token overlay for this invoke (gateway `templateTokens`).
|
|
500
|
+
*/
|
|
501
|
+
withTemplateTokens(templateTokens) {
|
|
502
|
+
this.request.templateTokens = templateTokens;
|
|
503
|
+
return this;
|
|
504
|
+
}
|
|
505
|
+
/** Graph/job-level xynthesized memory (job, task, and execution scopes). */
|
|
506
|
+
withXynthesized(xynthesized) {
|
|
507
|
+
this.request.xynthesized = xynthesized;
|
|
508
|
+
return this;
|
|
509
|
+
}
|
|
510
|
+
/** Passthrough smart-input config for upstream / Rendrix (legacy string paths or native `{ title, path }[]`). */
|
|
511
|
+
withSmartInput(config) {
|
|
512
|
+
this.request.smartInput = config;
|
|
513
|
+
return this;
|
|
514
|
+
}
|
|
515
|
+
/** Sets {@link RunTaskRequest.smartInput} with Rendrix-native path entries (`title` defaults to each path string). */
|
|
516
|
+
withSmartInputPaths(paths) {
|
|
517
|
+
this.request.smartInput = {
|
|
518
|
+
paths: paths.map((path) => ({ title: path, path })),
|
|
519
|
+
};
|
|
520
|
+
return this;
|
|
521
|
+
}
|
|
522
|
+
/** Gateway/Rendrix rendering options for the smart-input macro (merged like `RunSkillRequest.smartInputRenderOptions`). */
|
|
523
|
+
withSmartInputRenderOptions(opts) {
|
|
524
|
+
this.request.smartInputRenderOptions = opts;
|
|
525
|
+
return this;
|
|
526
|
+
}
|
|
527
|
+
/** Merge one key into `xynthesized.job`. */
|
|
528
|
+
withXynthesizedJob(key, value) {
|
|
529
|
+
const prev = this.request.xynthesized?.job ?? {};
|
|
530
|
+
this.request.xynthesized = {
|
|
531
|
+
...this.request.xynthesized,
|
|
532
|
+
job: { ...prev, [key]: value },
|
|
533
|
+
};
|
|
534
|
+
return this;
|
|
535
|
+
}
|
|
536
|
+
/** Merge one key into `xynthesized.task`. */
|
|
537
|
+
withXynthesizedTask(key, value) {
|
|
538
|
+
const prev = this.request.xynthesized?.task ?? {};
|
|
539
|
+
this.request.xynthesized = {
|
|
540
|
+
...this.request.xynthesized,
|
|
541
|
+
task: { ...prev, [key]: value },
|
|
542
|
+
};
|
|
543
|
+
return this;
|
|
544
|
+
}
|
|
545
|
+
/** Merge one key into `xynthesized.execution`. */
|
|
546
|
+
withXynthesizedExecution(key, value) {
|
|
547
|
+
const prev = this.request.xynthesized?.execution ?? {};
|
|
548
|
+
this.request.xynthesized = {
|
|
549
|
+
...this.request.xynthesized,
|
|
550
|
+
execution: { ...prev, [key]: value },
|
|
551
|
+
};
|
|
552
|
+
return this;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Build the final task request.
|
|
556
|
+
*
|
|
557
|
+
* @returns The complete task request
|
|
558
|
+
*/
|
|
559
|
+
build() {
|
|
560
|
+
if (!this.request.skillKey) {
|
|
561
|
+
throw new Error("skillKey is required");
|
|
562
|
+
}
|
|
563
|
+
if (!this.request.input) {
|
|
564
|
+
throw new Error("input is required");
|
|
565
|
+
}
|
|
566
|
+
if (!this.request.agentId?.trim()) {
|
|
567
|
+
throw new Error("agentId is required (RunSkillRequest / runTask contract)");
|
|
568
|
+
}
|
|
569
|
+
if (!this.request.jobTypeId?.trim()) {
|
|
570
|
+
throw new Error("jobTypeId is required (RunSkillRequest / runTask contract)");
|
|
571
|
+
}
|
|
572
|
+
if (!this.request.taskTypeId?.trim()) {
|
|
573
|
+
throw new Error("taskTypeId is required (RunSkillRequest / runTask contract)");
|
|
574
|
+
}
|
|
575
|
+
return {
|
|
576
|
+
...this.request,
|
|
577
|
+
executionStrategies: this.request.executionStrategies ?? [],
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
//# sourceMappingURL=task-request-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-request-builder.js","sourceRoot":"","sources":["../../src/builders/task-request-builder.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,OAAO,kBAAkB;IACrB,OAAO,CAA0B;IAEzC;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;IACpB,CAAC;IAED;;;;;OAKG;IACH,YAAY,CAAC,QAAgB;QAC3B,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,uBAAuB,CAAC,OAAe,EAAE,SAAiB,EAAE,UAAkB;QAC5E,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;QACnC,IAAI,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,KAAmC;QAC3C,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACH,aAAa,CAAC,YAAoC;QAChD,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,YAAY,CAAC;QACtC,OAAO,IA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from "../types/task-configuration.js";
|
|
2
|
+
import type { RunTaskRequest } from "../types/task-types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Compile graph `taskConfiguration` on a {@link RunTaskRequest} into `executionPipeline`,
|
|
5
|
+
* `includeContextInPrompt`, and related PRE synthesis fields.
|
|
6
|
+
*
|
|
7
|
+
* - **`aiTaskStrategies.pre: "synthesis"`** (or array containing `"synthesis"`) → PRE step.
|
|
8
|
+
* - **`aiTaskProfile.inputSynthesis.enabled: true`** → PRE step (same as graph-engine compile table).
|
|
9
|
+
* - **`preInputStrategy`** / pre-core keys on `pre` → `SynthesisConfig.synthesisInputStrategy`.
|
|
10
|
+
*
|
|
11
|
+
* Removes `taskConfiguration` from the returned request (compile-only blob).
|
|
12
|
+
*/
|
|
13
|
+
export declare function compileTaskConfigurationOnRunTaskRequest(request: RunTaskRequest): CompileTaskConfigurationResult;
|
|
14
|
+
export type { CompileTaskConfigurationResult };
|
|
15
|
+
//# sourceMappingURL=compileTaskConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compileTaskConfiguration.d.ts","sourceRoot":"","sources":["../../src/compile/compileTaskConfiguration.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,8BAA8B,EAGpC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,wBAAwB,CAAC;AA2JhC;;;;;;;;;GASG;AACH,wBAAgB,wCAAwC,CACtD,OAAO,EAAE,cAAc,GACtB,8BAA8B,CAkFhC;AAED,YAAY,EAAE,8BAA8B,EAAE,CAAC"}
|