@corbat-tech/coco 2.39.0 → 2.40.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/dist/adapters/index.d.ts +15 -3
- package/dist/adapters/index.js +21 -1
- package/dist/adapters/index.js.map +1 -1
- package/dist/agent-runtime-Cd6pB640.d.ts +53 -0
- package/dist/{blueprints-DYgm3K65.d.ts → blueprints-Dmdaw6_I.d.ts} +4 -2
- package/dist/cli/index.js +974 -342
- package/dist/cli/index.js.map +1 -1
- package/dist/{index-Dp1o8c9g.d.ts → index-BD5_a3Q8.d.ts} +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +7675 -8101
- package/dist/index.js.map +1 -1
- package/dist/presets/index.d.ts +5 -5
- package/dist/presets/index.js +22243 -22921
- package/dist/presets/index.js.map +1 -1
- package/dist/{profiles-BcyL-gQ9.d.ts → profiles-BA9dvyaF.d.ts} +6 -3
- package/dist/rag-D-Zo1oyo.d.ts +112 -0
- package/dist/runtime/index.d.ts +7 -7
- package/dist/runtime/index.js +6459 -23994
- package/dist/runtime/index.js.map +1 -1
- package/dist/{extension-manifests-CAQQILhE.d.ts → runtime-tool-executor-L5i8QWzn.d.ts} +30 -3
- package/dist/tools/index.d.ts +4 -4
- package/dist/tools/index.js +9 -3
- package/dist/tools/index.js.map +1 -1
- package/dist/{agent-runtime-DJY9FzL_.d.ts → workflow-engine-DleSoUhy.d.ts} +383 -249
- package/package.json +1 -1
- package/dist/rag-BakFRE-u.d.ts +0 -31
- package/dist/registry-CEpl9Jq0.d.ts +0 -115
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as EventLog, a0 as AgentTask, g as AgentCapability, N as AgentTraceContext, ar as ToolRiskManifest, G as AgentRunResult, af as RuntimeTurnRunner, ad as RuntimeTurnInput, ac as RuntimeTurnContext, ae as RuntimeTurnResult, a2 as RuntimeEventType, a1 as RuntimeEvent, Y as PermissionPolicy, a3 as RuntimeMode, b2 as ToolDefinition, X as PermissionDecision, a8 as RuntimeSessionStore, a7 as RuntimeSessionCreateOptions, a6 as RuntimeSession, ap as ToolRegistry, a4 as RuntimePolicy, ab as RuntimeToolExecutionResult } from './workflow-engine-DleSoUhy.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
|
-
import {
|
|
3
|
+
import { A as AgentRuntime } from './agent-runtime-Cd6pB640.js';
|
|
4
4
|
|
|
5
5
|
interface AgentRunnerExecutionInput {
|
|
6
6
|
task: AgentTask;
|
|
@@ -144,4 +144,31 @@ interface McpToolPolicy {
|
|
|
144
144
|
}
|
|
145
145
|
declare function createMcpToolPolicy(server: string, tool: string, risk: ExtensionRisk, allowedModes?: string[]): McpToolPolicy;
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
interface RuntimeToolExecutorOptions {
|
|
148
|
+
toolRegistry: ToolRegistry;
|
|
149
|
+
eventLog?: EventLog;
|
|
150
|
+
permissionPolicy?: PermissionPolicy;
|
|
151
|
+
mode?: RuntimeMode;
|
|
152
|
+
runtimePolicy?: RuntimePolicy;
|
|
153
|
+
}
|
|
154
|
+
interface RuntimeToolExecutorInput {
|
|
155
|
+
toolName: string;
|
|
156
|
+
input: Record<string, unknown>;
|
|
157
|
+
mode?: RuntimeMode;
|
|
158
|
+
allowedTools?: string[];
|
|
159
|
+
confirmed?: boolean;
|
|
160
|
+
metadata?: Record<string, unknown>;
|
|
161
|
+
}
|
|
162
|
+
declare class RuntimeToolExecutor {
|
|
163
|
+
private readonly toolRegistry;
|
|
164
|
+
private readonly eventLog;
|
|
165
|
+
private readonly permissionPolicy;
|
|
166
|
+
private readonly defaultMode;
|
|
167
|
+
private readonly runtimePolicy?;
|
|
168
|
+
constructor(options: RuntimeToolExecutorOptions);
|
|
169
|
+
execute(input: RuntimeToolExecutorInput): Promise<RuntimeToolExecutionResult>;
|
|
170
|
+
private block;
|
|
171
|
+
}
|
|
172
|
+
declare function createRuntimeToolExecutor(options: RuntimeToolExecutorOptions): RuntimeToolExecutor;
|
|
173
|
+
|
|
174
|
+
export { AgentRunner as A, DefaultPermissionPolicy as D, type ExtensionRisk as E, FileEventLog as F, InMemoryEventLog as I, type McpToolPolicy as M, type RecipeManifest as R, type SkillManifest as S, ToolCallingRuntimeTurnRunner as T, type AgentRunnerExecutionContext as a, type AgentRunnerExecutionInput as b, type AgentRunnerExecutor as c, type AgentRunnerOptions as d, type AgentRunnerRawResult as e, type AgentSurface as f, DefaultRuntimeTurnRunner as g, FileRuntimeSessionStore as h, InMemoryRuntimeSessionStore as i, type RecipeStep as j, type RuntimeHttpServerOptions as k, RuntimeToolExecutor as l, type RuntimeToolExecutorInput as m, type RuntimeToolExecutorOptions as n, type ToolCallingRuntimeTurnRunnerOptions as o, createAgentRunner as p, createDefaultRuntimeTurnRunner as q, createEventLog as r, createFileEventLog as s, createFileRuntimeSessionStore as t, createMcpToolPolicy as u, createPermissionPolicy as v, createRuntimeHttpServer as w, createRuntimeSessionStore as x, createRuntimeToolExecutor as y, createToolCallingRuntimeTurnRunner as z };
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { H as HumanEscalationHandler, a as HumanEscalationInput, b as HumanEscalationOutput, I as InternalOpsDraftHandler, l as InternalOpsDraftInput, m as InternalOpsDraftOutput, n as InternalOpsToolRegistryOptions, o as SalesIntakeToolRegistryOptions, p as SalesLeadSummaryHandler, q as SalesLeadSummaryInput, r as SalesLeadSummaryOutput, S as SupportDraftHandler, c as SupportDraftInput, d as SupportDraftOutput, e as SupportRagToolRegistryOptions, f as createCodingToolRegistry, g as createCustomerSupportToolRegistry, s as createInternalOpsToolRegistry, h as createNoToolRegistry, i as createPublicWebToolRegistry, j as createRagToolRegistry, t as createSalesIntakeToolRegistry, k as createSupportRagToolRegistry } from '../profiles-
|
|
3
|
-
export { A as AgentTask, B as BuildResult, C as Checkpoint, d as ClassInfo, e as CodeAnalysisResult, f as CodeDefinition, g as CodeSuggestion, h as CodebaseMapOutput, i as ComplexityResult, j as ContextItem, k as CoverageResult, D as DefinitionType, l as DiagramOutput, E as ExecutionStrategy, m as ExportInfo, F as FileComplexity, n as FileMapEntry, o as FunctionComplexity, p as FunctionInfo, H as HttpResponse, I as ImageReadOutput, q as ImportInfo, L as LearningEntry, s as LintIssue, t as LintResult, u as LspReference, v as LspStatusOutput, w as LspSymbol, M as MCPConnectServerResult, x as MCPFleetServerStatus, y as MCPFleetStatus, z as Memory, O as OpenFileOutput, P as PRCheck, G as PackageManager, J as PdfReadOutput, R as RankedContextItem, K as RepoContextRequest, N as RepoContextResult, S as RepoGraphNode, T as RepoIntelligenceGraph, U as ReviewCategory, V as ReviewFinding, W as ReviewResult, X as ReviewSeverity, Y as ReviewSummary, Z as RiskLevel, _ as SchemaInspectOutput, $ as SearchMatch, a0 as SearchResult, a1 as SemanticSearchOutput, a2 as SemanticSearchResultItem, a3 as SkillDefinition, a4 as SqlQueryOutput, a5 as TestFailure, a6 as TestResult, a7 as ValidationResult, a8 as WebFetchOutput, a9 as WebSearchOutput, aa as WebSearchResultItem, ab as addContextTool, ac as agentCoordinatorTools, ad as aggregateResultsTool, ae as analyzeComplexityTool, af as analyzeDirectoryTool, ag as analyzeFileTool, ah as analyzeRepoHealthTool, ai as astValidatorTools, aj as bashBackgroundTool, ak as bashExecTool, al as bashTools, am as buildTools, an as calculateCodeScoreTool, ao as calculateQualityTool, ap as checkAgentCapabilityTool, aq as checkProtectedBranchTool, ar as checkpointTools, as as codeAnalyzerTools, at as codebaseMapTool, au as codebaseMapTools, av as commandExistsTool, aw as contextEnhancerTools, ax as copyFileTool, ay as createAgentPlanTool, az as createCheckpointTool, aA as createCustomToolTool, c as createFullToolRegistry, aB as createMemoryTool, aC as databaseTools, aD as delegateTaskTool, aE as deleteFileTool, aF as diagramTools, aG as diffTools, aH as discoverSkillsTool, aI as editFileTool, aJ as fileExistsTool, aK as fileTools, aL as findInFileTool, aM as findMissingImportsTool, aN as generateDiagramTool, aO as getCommitStatsTool, aP as getCoverageTool, aQ as getEffectDescription, aR as getEnvTool, aS as getLearnedPatternsTool, aT as getRelevantContextTool, aU as getRepoContext, aV as getRiskDescription, aW as getRiskLevel, aX as ghCheckAuthTool, aY as ghPrChecksTool, aZ as ghPrCreateTool, a_ as ghPrListTool, a$ as ghPrMergeTool, b0 as ghReleaseCreateTool, b1 as ghRepoInfoTool, b2 as gitAddTool, b3 as gitBranchTool, b4 as gitCheckoutTool, b5 as gitCommitTool, b6 as gitDiffTool, b7 as gitEnhancedTools, b8 as gitInitTool, b9 as gitLogTool, ba as gitPullTool, bb as gitPushTool, bc as gitSimpleTools, bd as gitStatusTool, be as gitTools, bf as githubTools, bg as globTool, bh as grepTool, bi as httpFetchTool, bj as httpJsonTool, bk as httpTools, bl as imageTools, bm as inspectSchemaTool, bn as installDepsTool, bo as listCheckpointsTool, bp as listDirTool, bq as listMemoriesTool, br as lspDefinitionTool, bs as lspDocumentSymbolsTool, bt as lspReferencesTool, bu as lspStatusTool, bv as lspTools, bw as lspWorkspaceSymbolsTool, bx as makeTool, by as managePermissionsTool, bz as mcpConnectServerTool, bA as mcpListServersTool, bB as mcpTools, bC as memoryTools, bD as moveFileTool, bE as openFileTool, bF as openTools, bG as pdfTools, bH as permissionsTools, bI as qualityTools, bJ as readFileTool, bK as readImageTool, bL as readPdfTool, bM as recallMemoryTool, bN as recommendBranchTool, bO as recordLearningTool, r as registerAllTools, bP as repoContext, bQ as repoContextTool, bR as repoIntelligenceTools, bS as restoreCheckpointTool, bT as reviewCodeTool, bU as reviewTools, bV as runLinterTool, bW as runScriptTool, bX as runTestFileTool, bY as runTestsTool, bZ as searchTools, b_ as semanticSearchTool, b$ as semanticSearchTools, c0 as showDiffTool, c1 as simpleAgentTools, c2 as simpleAutoCommitTool, c3 as skillEnhancerTools, c4 as smartSuggestionsTools, c5 as spawnSimpleAgentTool, c6 as sqlQueryTool, c7 as suggestImprovementsTool, c8 as testTools, c9 as treeTool, ca as tscTool, cb as validateCodeTool, cc as validateSkillTool, cd as webFetchTool, ce as webSearchTool, cf as webTools, cg as writeFileTool } from '../index-
|
|
1
|
+
export { b3 as ToolCategory, b2 as ToolDefinition, ap as ToolRegistry, b4 as ToolResult, aN as createToolRegistry, b5 as defineTool, b6 as getToolRegistry } from '../workflow-engine-DleSoUhy.js';
|
|
2
|
+
export { H as HumanEscalationHandler, a as HumanEscalationInput, b as HumanEscalationOutput, I as InternalOpsDraftHandler, l as InternalOpsDraftInput, m as InternalOpsDraftOutput, n as InternalOpsToolRegistryOptions, o as SalesIntakeToolRegistryOptions, p as SalesLeadSummaryHandler, q as SalesLeadSummaryInput, r as SalesLeadSummaryOutput, S as SupportDraftHandler, c as SupportDraftInput, d as SupportDraftOutput, e as SupportRagToolRegistryOptions, f as createCodingToolRegistry, g as createCustomerSupportToolRegistry, s as createInternalOpsToolRegistry, h as createNoToolRegistry, i as createPublicWebToolRegistry, j as createRagToolRegistry, t as createSalesIntakeToolRegistry, k as createSupportRagToolRegistry } from '../profiles-BA9dvyaF.js';
|
|
3
|
+
export { A as AgentTask, B as BuildResult, C as Checkpoint, d as ClassInfo, e as CodeAnalysisResult, f as CodeDefinition, g as CodeSuggestion, h as CodebaseMapOutput, i as ComplexityResult, j as ContextItem, k as CoverageResult, D as DefinitionType, l as DiagramOutput, E as ExecutionStrategy, m as ExportInfo, F as FileComplexity, n as FileMapEntry, o as FunctionComplexity, p as FunctionInfo, H as HttpResponse, I as ImageReadOutput, q as ImportInfo, L as LearningEntry, s as LintIssue, t as LintResult, u as LspReference, v as LspStatusOutput, w as LspSymbol, M as MCPConnectServerResult, x as MCPFleetServerStatus, y as MCPFleetStatus, z as Memory, O as OpenFileOutput, P as PRCheck, G as PackageManager, J as PdfReadOutput, R as RankedContextItem, K as RepoContextRequest, N as RepoContextResult, S as RepoGraphNode, T as RepoIntelligenceGraph, U as ReviewCategory, V as ReviewFinding, W as ReviewResult, X as ReviewSeverity, Y as ReviewSummary, Z as RiskLevel, _ as SchemaInspectOutput, $ as SearchMatch, a0 as SearchResult, a1 as SemanticSearchOutput, a2 as SemanticSearchResultItem, a3 as SkillDefinition, a4 as SqlQueryOutput, a5 as TestFailure, a6 as TestResult, a7 as ValidationResult, a8 as WebFetchOutput, a9 as WebSearchOutput, aa as WebSearchResultItem, ab as addContextTool, ac as agentCoordinatorTools, ad as aggregateResultsTool, ae as analyzeComplexityTool, af as analyzeDirectoryTool, ag as analyzeFileTool, ah as analyzeRepoHealthTool, ai as astValidatorTools, aj as bashBackgroundTool, ak as bashExecTool, al as bashTools, am as buildTools, an as calculateCodeScoreTool, ao as calculateQualityTool, ap as checkAgentCapabilityTool, aq as checkProtectedBranchTool, ar as checkpointTools, as as codeAnalyzerTools, at as codebaseMapTool, au as codebaseMapTools, av as commandExistsTool, aw as contextEnhancerTools, ax as copyFileTool, ay as createAgentPlanTool, az as createCheckpointTool, aA as createCustomToolTool, c as createFullToolRegistry, aB as createMemoryTool, aC as databaseTools, aD as delegateTaskTool, aE as deleteFileTool, aF as diagramTools, aG as diffTools, aH as discoverSkillsTool, aI as editFileTool, aJ as fileExistsTool, aK as fileTools, aL as findInFileTool, aM as findMissingImportsTool, aN as generateDiagramTool, aO as getCommitStatsTool, aP as getCoverageTool, aQ as getEffectDescription, aR as getEnvTool, aS as getLearnedPatternsTool, aT as getRelevantContextTool, aU as getRepoContext, aV as getRiskDescription, aW as getRiskLevel, aX as ghCheckAuthTool, aY as ghPrChecksTool, aZ as ghPrCreateTool, a_ as ghPrListTool, a$ as ghPrMergeTool, b0 as ghReleaseCreateTool, b1 as ghRepoInfoTool, b2 as gitAddTool, b3 as gitBranchTool, b4 as gitCheckoutTool, b5 as gitCommitTool, b6 as gitDiffTool, b7 as gitEnhancedTools, b8 as gitInitTool, b9 as gitLogTool, ba as gitPullTool, bb as gitPushTool, bc as gitSimpleTools, bd as gitStatusTool, be as gitTools, bf as githubTools, bg as globTool, bh as grepTool, bi as httpFetchTool, bj as httpJsonTool, bk as httpTools, bl as imageTools, bm as inspectSchemaTool, bn as installDepsTool, bo as listCheckpointsTool, bp as listDirTool, bq as listMemoriesTool, br as lspDefinitionTool, bs as lspDocumentSymbolsTool, bt as lspReferencesTool, bu as lspStatusTool, bv as lspTools, bw as lspWorkspaceSymbolsTool, bx as makeTool, by as managePermissionsTool, bz as mcpConnectServerTool, bA as mcpListServersTool, bB as mcpTools, bC as memoryTools, bD as moveFileTool, bE as openFileTool, bF as openTools, bG as pdfTools, bH as permissionsTools, bI as qualityTools, bJ as readFileTool, bK as readImageTool, bL as readPdfTool, bM as recallMemoryTool, bN as recommendBranchTool, bO as recordLearningTool, r as registerAllTools, bP as repoContext, bQ as repoContextTool, bR as repoIntelligenceTools, bS as restoreCheckpointTool, bT as reviewCodeTool, bU as reviewTools, bV as runLinterTool, bW as runScriptTool, bX as runTestFileTool, bY as runTestsTool, bZ as searchTools, b_ as semanticSearchTool, b$ as semanticSearchTools, c0 as showDiffTool, c1 as simpleAgentTools, c2 as simpleAutoCommitTool, c3 as skillEnhancerTools, c4 as smartSuggestionsTools, c5 as spawnSimpleAgentTool, c6 as sqlQueryTool, c7 as suggestImprovementsTool, c8 as testTools, c9 as treeTool, ca as tscTool, cb as validateCodeTool, cc as validateSkillTool, cd as webFetchTool, ce as webSearchTool, cf as webTools, cg as writeFileTool } from '../index-BD5_a3Q8.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../rag-
|
|
5
|
+
import '../rag-D-Zo1oyo.js';
|
package/dist/tools/index.js
CHANGED
|
@@ -2010,7 +2010,9 @@ function createCustomerSupportToolRegistry(source) {
|
|
|
2010
2010
|
return copyAllowedTools(CUSTOMER_SUPPORT_TOOLS, source);
|
|
2011
2011
|
}
|
|
2012
2012
|
function createSupportRagToolRegistry(options = {}) {
|
|
2013
|
-
const registry = createRagToolRegistry(options.retriever
|
|
2013
|
+
const registry = createRagToolRegistry(options.retriever, {
|
|
2014
|
+
runtimeContext: options.runtimeContext
|
|
2015
|
+
});
|
|
2014
2016
|
if (options.supportDraft) {
|
|
2015
2017
|
registry.register(
|
|
2016
2018
|
defineTool({
|
|
@@ -2098,7 +2100,7 @@ function createInternalOpsToolRegistry(options = {}) {
|
|
|
2098
2100
|
}
|
|
2099
2101
|
return registry;
|
|
2100
2102
|
}
|
|
2101
|
-
function createRagToolRegistry(retriever) {
|
|
2103
|
+
function createRagToolRegistry(retriever, options = {}) {
|
|
2102
2104
|
const registry = new ToolRegistry();
|
|
2103
2105
|
if (!retriever) return registry;
|
|
2104
2106
|
registry.register(
|
|
@@ -2110,7 +2112,11 @@ function createRagToolRegistry(retriever) {
|
|
|
2110
2112
|
query: z.string(),
|
|
2111
2113
|
limit: z.number().optional()
|
|
2112
2114
|
}),
|
|
2113
|
-
execute: async ({ query, limit }) => retriever.search(query, {
|
|
2115
|
+
execute: async ({ query, limit }) => retriever.search(query, {
|
|
2116
|
+
limit,
|
|
2117
|
+
tenantId: options.runtimeContext?.tenant?.id,
|
|
2118
|
+
runtimeContext: options.runtimeContext
|
|
2119
|
+
})
|
|
2114
2120
|
})
|
|
2115
2121
|
);
|
|
2116
2122
|
return registry;
|