@corbat-tech/coco 2.38.0 → 2.39.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 +1 -1
- package/dist/{agent-runtime-DeLcB0Ie.d.ts → agent-runtime-DJY9FzL_.d.ts} +266 -53
- package/dist/{blueprints-BWcCJfnN.d.ts → blueprints-DYgm3K65.d.ts} +1 -1
- package/dist/cli/index.js +633 -168
- package/dist/cli/index.js.map +1 -1
- package/dist/{extension-manifests-DcvOnrp3.d.ts → extension-manifests-CAQQILhE.d.ts} +36 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +841 -112
- package/dist/index.js.map +1 -1
- package/dist/presets/index.d.ts +2 -2
- package/dist/presets/index.js +572 -107
- package/dist/presets/index.js.map +1 -1
- package/dist/runtime/index.d.ts +4 -4
- package/dist/runtime/index.js +841 -112
- package/dist/runtime/index.js.map +1 -1
- package/dist/tools/index.js +27 -2
- package/dist/tools/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as EventLog, $ as AgentTask, g as AgentCapability, O as AgentTraceContext, al as ToolRiskManifest, G as AgentRunResult, ab as RuntimeTurnRunner, a9 as RuntimeTurnInput, a8 as RuntimeTurnContext, aa as RuntimeTurnResult, a1 as RuntimeEventType, a0 as RuntimeEvent, I as AgentRuntime, X as PermissionPolicy, a2 as RuntimeMode, W as PermissionDecision, a5 as RuntimeSessionStore, a4 as RuntimeSessionCreateOptions, a3 as RuntimeSession } from './agent-runtime-DJY9FzL_.js';
|
|
2
2
|
import { Server } from 'node:http';
|
|
3
3
|
import { a as ToolDefinition } from './registry-CEpl9Jq0.js';
|
|
4
4
|
|
|
5
|
+
interface AgentRunnerExecutionInput {
|
|
6
|
+
task: AgentTask;
|
|
7
|
+
capability: AgentCapability;
|
|
8
|
+
trace?: AgentTraceContext;
|
|
9
|
+
toolRiskManifest?: ToolRiskManifest;
|
|
10
|
+
}
|
|
11
|
+
interface AgentRunnerExecutionContext {
|
|
12
|
+
task: AgentTask;
|
|
13
|
+
capability: AgentCapability;
|
|
14
|
+
trace: AgentTraceContext;
|
|
15
|
+
assertToolAllowed(toolName: string): void;
|
|
16
|
+
}
|
|
17
|
+
type AgentRunnerExecutor = (context: AgentRunnerExecutionContext) => Promise<AgentRunnerRawResult>;
|
|
18
|
+
interface AgentRunnerRawResult {
|
|
19
|
+
output: string;
|
|
20
|
+
success?: boolean;
|
|
21
|
+
turns?: number;
|
|
22
|
+
toolsUsed?: string[];
|
|
23
|
+
inputTokens?: number;
|
|
24
|
+
outputTokens?: number;
|
|
25
|
+
error?: string;
|
|
26
|
+
metadata?: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
interface AgentRunnerOptions {
|
|
29
|
+
eventLog?: EventLog;
|
|
30
|
+
executor?: AgentRunnerExecutor;
|
|
31
|
+
}
|
|
32
|
+
declare class AgentRunner {
|
|
33
|
+
private readonly options;
|
|
34
|
+
constructor(options?: AgentRunnerOptions);
|
|
35
|
+
run(input: AgentRunnerExecutionInput): Promise<AgentRunResult>;
|
|
36
|
+
}
|
|
37
|
+
declare function createAgentRunner(options?: AgentRunnerOptions): AgentRunner;
|
|
38
|
+
|
|
5
39
|
declare class DefaultRuntimeTurnRunner implements RuntimeTurnRunner {
|
|
6
40
|
run(input: RuntimeTurnInput, context: RuntimeTurnContext): Promise<RuntimeTurnResult>;
|
|
7
41
|
}
|
|
@@ -110,4 +144,4 @@ interface McpToolPolicy {
|
|
|
110
144
|
}
|
|
111
145
|
declare function createMcpToolPolicy(server: string, tool: string, risk: ExtensionRisk, allowedModes?: string[]): McpToolPolicy;
|
|
112
146
|
|
|
113
|
-
export {
|
|
147
|
+
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, type ToolCallingRuntimeTurnRunnerOptions as l, createAgentRunner as m, createDefaultRuntimeTurnRunner as n, createEventLog as o, createFileEventLog as p, createFileRuntimeSessionStore as q, createMcpToolPolicy as r, createPermissionPolicy as s, createRuntimeHttpServer as t, createRuntimeSessionStore as u, createToolCallingRuntimeTurnRunner as v };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Q as QualityScores, a as QualityDimensions } from './index-Dp1o8c9g.js';
|
|
2
2
|
export { b as QualityThresholds, c as createFullToolRegistry, r as registerAllTools } from './index-Dp1o8c9g.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { L as LLMProvider, P as ProviderConfig, M as Message$1, C as ChatOptions, a as ChatResponse$1, b as ChatWithToolsOptions, c as ChatWithToolsResponse$1, S as StreamChunk } from './agent-runtime-
|
|
5
|
-
export { A as AGENT_MODES, d as AgentArtifact, e as AgentArtifactKind, f as AgentBudget, g as AgentCapability, h as
|
|
6
|
-
export { A as AgentSurface, D as DefaultPermissionPolicy,
|
|
7
|
-
export { A as AgentActionMode, a as AgentBlueprint, b as AgentDeploymentSurface, c as AgentMaturity, d as AgentPreset, e as AgentRuntimeFactoryOptions, f as ApprovalPolicy, B as BlueprintAgent, G as GuardrailConfig, g as GuardrailFinding, h as GuardrailResult, i as GuardrailSeverity, j as GuardrailStage, M as MemoryConfig, O as ObservabilityConfig, S as SecretRedactionConfig, T as TopicBoundaryConfig, k as createAgentFromBlueprint, l as createBaseBlueprint, m as createSafeToolRegistry, n as defaultPublicGuardrails, o as mapActionModeToRuntimeMode, r as redactSecrets, p as runGuardrails, v as validateStructuredOutput } from './blueprints-
|
|
4
|
+
import { L as LLMProvider, P as ProviderConfig, M as Message$1, C as ChatOptions, a as ChatResponse$1, b as ChatWithToolsOptions, c as ChatWithToolsResponse$1, S as StreamChunk } from './agent-runtime-DJY9FzL_.js';
|
|
5
|
+
export { A as AGENT_MODES, d as AgentArtifact, e as AgentArtifactKind, f as AgentBudget, g as AgentCapability, h as AgentCard, i as AgentDefinition, j as AgentGateDefinition, k as AgentGateKind, l as AgentGraphDefinition, m as AgentGraphEdge, n as AgentGraphEngine, o as AgentGraphEngineOptions, p as AgentGraphNode, q as AgentGraphNodeExecution, r as AgentGraphNodeExecutor, s as AgentGraphRunInput, t as AgentGraphRunResult, u as AgentGraphRunStatus, v as AgentGraphValidationIssue, w as AgentGraphValidationResult, x as AgentGuardrailPolicy, y as AgentHandoff, z as AgentMessage, B as AgentMessageRole, D as AgentModeDefinition, E as AgentModeId, F as AgentRole, G as AgentRunResult, H as AgentRunStatus, I as AgentRuntime, J as AgentRuntimeOptions, K as AgentRuntimeSnapshot, N as AgentToolPolicyDecision, O as AgentTraceContext, Q as DEFAULT_WORKFLOWS, R as EventLog, T as FileSharedWorkspaceStore, U as InMemorySharedWorkspaceStore, V as LegacyAgentRoleMapping, W as PermissionDecision, X as PermissionPolicy, Y as ProviderRegistry, Z as ProviderRuntimeSelection, _ as ReasoningEffort, $ as RuntimeAgentTask, a0 as RuntimeEvent, a1 as RuntimeEventType, a2 as RuntimeMode, a3 as RuntimeSession, a4 as RuntimeSessionCreateOptions, a5 as RuntimeSessionStore, a6 as RuntimeToolExecutionInput, a7 as RuntimeToolExecutionResult, a8 as RuntimeTurnContext, a9 as RuntimeTurnInput, aa as RuntimeTurnResult, ab as RuntimeTurnRunner, ac as RuntimeTurnStreamEvent, ad as SharedWorkspaceProvenance, ae as SharedWorkspaceRecord, af as SharedWorkspaceRecordKind, ag as SharedWorkspaceState, ah as SharedWorkspaceStateSnapshot, ai as SharedWorkspaceStore, aj as SharedWorkspaceWriteInput, ak as ToolRiskLevel, al as ToolRiskManifest, am as ToolRiskManifestEntry, an as WorkflowCatalog, ao as WorkflowDefinition, ap as WorkflowEngine, aq as WorkflowHandler, ar as WorkflowPlan, as as WorkflowRegistry, at as WorkflowRetryPolicy, au as WorkflowRisk, av as WorkflowRunContext, aw as WorkflowRunInput, ax as WorkflowRunResult, ay as WorkflowRunStatus, az as WorkflowStepDefinition, aA as createAgentArtifact, aB as createAgentGraphEngine, aC as createAgentRuntime, aD as createAgentTraceContext, aE as createProvider, aF as createProviderRegistry, aG as createSummaryArtifact, aH as createWorkflowCatalog, aI as createWorkflowEngine, aJ as createWorkflowRegistry, aK as evaluateAgentToolPolicy, aL as getAgentMode, aM as isAgentMode, aN as listAgentModes, aO as listLegacyAgentRoleMappings, aP as mapLegacyAgentRole, aQ as normalizeAgentRunResult, aR as validateAgentCapabilities, aS as validateAgentGraph, aT as workflowToAgentGraph } from './agent-runtime-DJY9FzL_.js';
|
|
6
|
+
export { A as AgentRunner, a as AgentRunnerExecutionContext, b as AgentRunnerExecutionInput, c as AgentRunnerExecutor, d as AgentRunnerOptions, e as AgentRunnerRawResult, f as AgentSurface, D as DefaultPermissionPolicy, g as DefaultRuntimeTurnRunner, E as ExtensionRisk, F as FileEventLog, h as FileRuntimeSessionStore, I as InMemoryEventLog, i as InMemoryRuntimeSessionStore, M as McpToolPolicy, R as RecipeManifest, j as RecipeStep, k as RuntimeHttpServerOptions, S as SkillManifest, T as ToolCallingRuntimeTurnRunner, l as ToolCallingRuntimeTurnRunnerOptions, m as createAgentRunner, n as createDefaultRuntimeTurnRunner, o as createEventLog, p as createFileEventLog, q as createFileRuntimeSessionStore, r as createMcpToolPolicy, s as createPermissionPolicy, t as createRuntimeHttpServer, u as createRuntimeSessionStore, v as createToolCallingRuntimeTurnRunner } from './extension-manifests-CAQQILhE.js';
|
|
7
|
+
export { A as AgentActionMode, a as AgentBlueprint, b as AgentDeploymentSurface, c as AgentMaturity, d as AgentPreset, e as AgentRuntimeFactoryOptions, f as ApprovalPolicy, B as BlueprintAgent, G as GuardrailConfig, g as GuardrailFinding, h as GuardrailResult, i as GuardrailSeverity, j as GuardrailStage, M as MemoryConfig, O as ObservabilityConfig, S as SecretRedactionConfig, T as TopicBoundaryConfig, k as createAgentFromBlueprint, l as createBaseBlueprint, m as createSafeToolRegistry, n as defaultPublicGuardrails, o as mapActionModeToRuntimeMode, r as redactSecrets, p as runGuardrails, v as validateStructuredOutput } from './blueprints-DYgm3K65.js';
|
|
8
8
|
export { I as InMemoryKnowledgeDocument, a as InMemoryKnowledgeRetriever, K as KnowledgeRetriever, R as RetrievalOptions, b as RetrievedSource, c as createInMemoryKnowledgeRetriever, f as formatRetrievedSourcesForPrompt } from './rag-BakFRE-u.js';
|
|
9
9
|
export { H as HumanEscalationHandler, a as HumanEscalationInput, b as HumanEscalationOutput, S as SupportDraftHandler, c as SupportDraftInput, d as SupportDraftOutput, e as SupportRagToolRegistryOptions, f as createCodingToolRegistry, g as createCustomerSupportToolRegistry, h as createNoToolRegistry, i as createPublicWebToolRegistry, j as createRagToolRegistry, k as createSupportRagToolRegistry } from './profiles-BcyL-gQ9.js';
|
|
10
10
|
export { AGENT_PRESETS, AppointmentPresetConfig, BrandPresetConfig, RagPresetConfig, SupportRagPresetConfig, appointmentBookingAssistantPreset, codingAgentPreset, customerSupportAssistantPreset, internalOpsAssistantPreset, publicWebsiteAssistantPreset, ragKnowledgeAssistantPreset, salesIntakeAssistantPreset, supportRagAssistantPreset } from './presets/index.js';
|