agent-contracts-runtime 0.36.15 → 0.36.16
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/cli-contract.yaml +1 -1
- package/dist/adapters/adk-sdk.d.ts +4 -3
- package/dist/adapters/adk-sdk.js +1 -1
- package/dist/adapters/claude-agent-sdk.d.ts +4 -3
- package/dist/adapters/claude-agent-sdk.js +17 -9
- package/dist/adapters/claude-agent-sdk.js.map +1 -1
- package/dist/adapters/mock.d.ts +1 -1
- package/dist/adapters/openai-agents-sdk.d.ts +4 -3
- package/dist/agent-runtime.bundle.mjs +366 -373
- package/dist/agent-runtime.bundle.mjs.map +3 -3
- package/dist/{chunk-AL2N7IM2.js → chunk-6JVGBBP3.js} +2 -2
- package/dist/{chunk-MGRZBGQL.js → chunk-M57HVYUU.js} +7 -3
- package/dist/{chunk-MGRZBGQL.js.map → chunk-M57HVYUU.js.map} +1 -1
- package/dist/cli/index.js +9 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/{context-B_bekYiE.d.ts → context-BEisfYPn.d.ts} +2 -1
- package/dist/generator/index.d.ts +3 -2
- package/dist/{guardrail-hooks-C8G5NGsj.d.ts → guardrail-hooks-CFd3a8tQ.d.ts} +2 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.js +2 -2
- package/dist/{task-runner-Bo37lS9q.d.ts → task-runner-CD8nnKpn.d.ts} +2 -1
- package/docs/cli-reference.md +1 -1
- package/package.json +18 -17
- /package/dist/{chunk-AL2N7IM2.js.map → chunk-6JVGBBP3.js.map} +0 -0
|
@@ -103,4 +103,5 @@ interface GuardrailContext {
|
|
|
103
103
|
*/
|
|
104
104
|
declare function buildGuardrailContext(dsl: any, binding: any, policyName?: string): GuardrailContext;
|
|
105
105
|
|
|
106
|
-
export {
|
|
106
|
+
export { buildGuardrailContext as a, buildContractContext as b };
|
|
107
|
+
export type { GuardrailContext as G };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export { b as buildContractContext, a as buildGuardrailContext } from '../context-
|
|
2
|
+
export { b as buildContractContext, a as buildGuardrailContext } from '../context-BEisfYPn.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generator configuration — loads and validates agents.conf.yaml / agent-runtime.config.yaml
|
|
@@ -152,4 +152,5 @@ interface GenerateResult {
|
|
|
152
152
|
declare function generate(options?: GenerateOptions): Promise<GenerateResult>;
|
|
153
153
|
declare function checkFreshness(configPath?: string): Promise<boolean>;
|
|
154
154
|
|
|
155
|
-
export { DEFAULT_CONFIG_PATH,
|
|
155
|
+
export { DEFAULT_CONFIG_PATH, ProjectConfigSchema, checkFreshness, generate, loadConfig, loadProjectConfig };
|
|
156
|
+
export type { GenerateOptions, GenerateResult, ProjectConfig, ResolvedConfig };
|
|
@@ -80,4 +80,5 @@ declare function createGuardrailHooks(checks: GuardrailCheckFunctions): Guardrai
|
|
|
80
80
|
declare function createGuardrailHooksForAgent(agentId: string, perAgent: Map<string, GuardrailRuleData>): GuardrailHooks;
|
|
81
81
|
declare function createGuardrailHooksFromRules(rules: GuardrailRuleData): GuardrailHooks;
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { createGuardrailHooks as f, createGuardrailHooksForAgent as g, createGuardrailHooksFromRules as h, getBlockingViolations as i, getWarnings as j, hasBlockingViolation as k };
|
|
84
|
+
export type { GuardrailHooks as G, HookContext as H, GuardrailRuleData as a, GuardrailCheckFunctions as b, GuardrailCheckResult as c, GuardrailRule as d, HookResponse as e };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as SdkAdapter, T as TaskOutcome, b as TaskContractLike, c as AgentContractLike, d as TaskContext, P as PromptBuilderOptions, e as TaskRunResult } from './task-runner-
|
|
2
|
-
export { A as AdapterSendOptions, a as AgentExecutionRequest, f as AgentProgressEvent, C as CacheConfig, g as CandidateAgent, I as InMemoryStore, M as MemoryRef, h as MemoryStore, R as RetryDecision, i as SplitPrompt, j as TaskRunOptions, k as buildCandidateAgents, l as buildRetryFollowUp, m as buildSplitTaskPrompt, n as buildTaskPrompt, o as extractStructuredResult, r as renderAgentSystemPrompt, p as runTask, z as zodSchemaToPromptDescription, q as zodSchemaToYamlExample } from './task-runner-
|
|
1
|
+
import { S as SdkAdapter, T as TaskOutcome, b as TaskContractLike, c as AgentContractLike, d as TaskContext, P as PromptBuilderOptions, e as TaskRunResult } from './task-runner-CD8nnKpn.js';
|
|
2
|
+
export { A as AdapterSendOptions, a as AgentExecutionRequest, f as AgentProgressEvent, C as CacheConfig, g as CandidateAgent, I as InMemoryStore, M as MemoryRef, h as MemoryStore, R as RetryDecision, i as SplitPrompt, j as TaskRunOptions, k as buildCandidateAgents, l as buildRetryFollowUp, m as buildSplitTaskPrompt, n as buildTaskPrompt, o as extractStructuredResult, r as renderAgentSystemPrompt, p as runTask, z as zodSchemaToPromptDescription, q as zodSchemaToYamlExample } from './task-runner-CD8nnKpn.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { a as GuardrailRuleData, G as GuardrailHooks } from './guardrail-hooks-
|
|
5
|
-
export { b as GuardrailCheckFunctions, c as GuardrailCheckResult, d as GuardrailRule, H as HookContext, e as HookResponse, f as createGuardrailHooks, g as createGuardrailHooksForAgent, h as createGuardrailHooksFromRules, i as getBlockingViolations, j as getWarnings, k as hasBlockingViolation } from './guardrail-hooks-
|
|
6
|
-
import { G as GuardrailContext } from './context-
|
|
4
|
+
import { a as GuardrailRuleData, G as GuardrailHooks } from './guardrail-hooks-CFd3a8tQ.js';
|
|
5
|
+
export { b as GuardrailCheckFunctions, c as GuardrailCheckResult, d as GuardrailRule, H as HookContext, e as HookResponse, f as createGuardrailHooks, g as createGuardrailHooksForAgent, h as createGuardrailHooksFromRules, i as getBlockingViolations, j as getWarnings, k as hasBlockingViolation } from './guardrail-hooks-CFd3a8tQ.js';
|
|
6
|
+
import { G as GuardrailContext } from './context-BEisfYPn.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* ModelResolver — resolves a model_class to a concrete adapter + model pair.
|
|
@@ -619,4 +619,5 @@ interface ExecuteWorkflowOptions extends ExecuteOptions {
|
|
|
619
619
|
}
|
|
620
620
|
declare function executeWorkflow(workflowId: string, options: ExecuteWorkflowOptions): Promise<WorkflowResult>;
|
|
621
621
|
|
|
622
|
-
export {
|
|
622
|
+
export { AgentContractLike, BoundResolver, DslValidationError, GuardrailHooks, GuardrailRuleData, PluginRegistry, PromptBuilderOptions, SdkAdapter, TaskContext, TaskContractLike, TaskOutcome, TaskRunResult, WorkflowBuilder, buildGateEvaluationPrompt, buildGuardrailRulesFromDsl, buildPerAgentGuardrails, buildRegistriesFromDsl, createAdapter, createModelResolver, createProgressSink, createRuntime, executeTask, executeWorkflow, getEffectiveGuardrailIds, getGuardrailRulesForAgent, guardrailContextToRuleData, jsonSchemaToZod, loadDslContext, loadPlugins, loadPluginsFromDirectory, loadPluginsFromPaths, parseGateEvaluationResponse, pluginRegistry, runWorkflow };
|
|
623
|
+
export type { AdapterOrFactory, AgentPlugin, ArtifactBindingConfig, BoundResolveOptions, CreateAdapterOptions, DelegateStep, DslContext, ExecuteOptions, ExecuteTaskOptions, ExecuteWorkflowOptions, GateStep, GuardrailResult, HandoffInput, LoadDslOptions, ModelAwareSdkAdapterFactory, ModelClass, ModelMappingConfig, ModelResolver, ModelResolverOptions, PermissionMode, PluginLoadResult, ProgressSink, ProgressSinkOptions, PromptBuilderArgs, RequiredEntities, ResolvedComponent, ResolvedModel, Runtime, RuntimeConfig, SdkAdapterFactory, StepCompleteEvent, StepResult, TaskHookContext, WorkflowContractLike, WorkflowHookContext, WorkflowInvocation, WorkflowRegistries, WorkflowResult, WorkflowRunOptions, WorkflowStep };
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
runWorkflow,
|
|
22
22
|
zodSchemaToPromptDescription,
|
|
23
23
|
zodSchemaToYamlExample
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6JVGBBP3.js";
|
|
25
25
|
import {
|
|
26
26
|
BoundResolver,
|
|
27
27
|
buildPerAgentGuardrails,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getWarnings,
|
|
42
42
|
hasBlockingViolation,
|
|
43
43
|
pluginRegistry
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-M57HVYUU.js";
|
|
45
45
|
import "./chunk-KKJW4TE5.js";
|
|
46
46
|
import {
|
|
47
47
|
DslValidationError,
|
|
@@ -394,4 +394,5 @@ declare function runTask(adapter: SdkAdapter, taskId: string, context: TaskConte
|
|
|
394
394
|
};
|
|
395
395
|
}): Promise<TaskRunResult>;
|
|
396
396
|
|
|
397
|
-
export {
|
|
397
|
+
export { InMemoryStore as I, buildCandidateAgents as k, buildRetryFollowUp as l, buildSplitTaskPrompt as m, buildTaskPrompt as n, extractStructuredResult as o, runTask as p, zodSchemaToYamlExample as q, renderAgentSystemPrompt as r, zodSchemaToPromptDescription as z };
|
|
398
|
+
export type { AdapterSendOptions as A, CacheConfig as C, MemoryRef as M, PromptBuilderOptions as P, RetryDecision as R, SdkAdapter as S, TaskOutcome as T, AgentExecutionRequest as a, TaskContractLike as b, AgentContractLike as c, TaskContext as d, TaskRunResult as e, AgentProgressEvent as f, CandidateAgent as g, MemoryStore as h, SplitPrompt as i, TaskRunOptions as j };
|
package/docs/cli-reference.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-contracts-runtime",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.16",
|
|
4
4
|
"description": "Runtime bridge for executing agent-contracts workflows on Agent SDKs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -91,25 +91,25 @@
|
|
|
91
91
|
"agent-contracts": "^0.34.0",
|
|
92
92
|
"commander": "^12.1.0",
|
|
93
93
|
"dotenv": "^17.4.2",
|
|
94
|
-
"handlebars": "^4.7.
|
|
95
|
-
"tsx": "^4.
|
|
94
|
+
"handlebars": "^4.7.10",
|
|
95
|
+
"tsx": "^4.22.0",
|
|
96
96
|
"yaml": "^2.8.3",
|
|
97
|
-
"zod": "^4.
|
|
97
|
+
"zod": "^4.6.7"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@anthropic-ai/claude-agent-sdk": "^0.
|
|
101
|
-
"@google/adk": "^
|
|
102
|
-
"@openai/agents": "^0.
|
|
103
|
-
"@types/node": "^
|
|
104
|
-
"cli-contracts": "^0.34.
|
|
105
|
-
"esbuild": "^0.28.
|
|
106
|
-
"tsup": "^
|
|
107
|
-
"typescript": "^5.
|
|
108
|
-
"vitest": "^4.1.
|
|
100
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.323",
|
|
101
|
+
"@google/adk": "^2.5.0",
|
|
102
|
+
"@openai/agents": "^0.22.0",
|
|
103
|
+
"@types/node": "^26.6.6",
|
|
104
|
+
"cli-contracts": "^0.34.12",
|
|
105
|
+
"esbuild": "^0.28.2",
|
|
106
|
+
"tsup": "^9.0.0",
|
|
107
|
+
"typescript": "^5.9.3",
|
|
108
|
+
"vitest": "^4.1.12"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"@anthropic-ai/claude-agent-sdk": ">=0.2.0",
|
|
112
|
-
"@google/adk": ">=
|
|
112
|
+
"@google/adk": ">=2.2.0",
|
|
113
113
|
"@openai/agents": ">=0.10.0"
|
|
114
114
|
},
|
|
115
115
|
"peerDependenciesMeta": {
|
|
@@ -126,9 +126,10 @@
|
|
|
126
126
|
"overrides": {
|
|
127
127
|
"uuid": "^11.1.1",
|
|
128
128
|
"@opentelemetry/core": "^2.8.0",
|
|
129
|
-
"@hono/node-server": "^2.0.12",
|
|
130
129
|
"adm-zip": "^0.6.0",
|
|
131
|
-
"
|
|
132
|
-
"
|
|
130
|
+
"esbuild": "$esbuild",
|
|
131
|
+
"gcp-metadata@^8": {
|
|
132
|
+
"gaxios": "^7.3.1"
|
|
133
|
+
}
|
|
133
134
|
}
|
|
134
135
|
}
|
|
File without changes
|