@aaac/runtime 0.2.0 → 0.2.2
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/adk-sdk.d.ts +1 -1
- package/dist/adapters/claude-agent-sdk.d.ts +1 -1
- package/dist/adapters/mock.d.ts +1 -1
- package/dist/adapters/openai-agents-sdk.d.ts +1 -1
- package/dist/{chunk-ABXDSTUV.js → chunk-MG2ULUX6.js} +17 -7
- package/dist/chunk-MG2ULUX6.js.map +1 -0
- package/dist/claude-bundles/full.js +179 -179
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/claude-native/index.js +1 -1
- package/dist/{task-runner-GWoI7_71.d.ts → task-runner-37cFPFas.d.ts} +15 -0
- package/package.json +4 -4
- package/dist/chunk-ABXDSTUV.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as SdkFunctionTool, O as ObserverEmitFn, c as ObservabilityIds, S as SdkAdapter, d as TaskOutcome, e as TaskContractLike, f as AgentContractLike, g as TaskContext, L as LibraryToolRegistry, P as PromptBuilderOptions, h as MemoryStore, M as MemoryRef, i as TaskRunResult } from './task-runner-
|
|
2
|
-
export { A as AdapterSendOptions, a as AgentExecutionRequest, j as AgentProgressEvent, C as CacheConfig, k as CandidateAgent, E as EnvelopeParams, I as InMemoryStore, l as InnerSpanOptions, m as LibraryToolDefinition, n as OBSERVABILITY_ENV_VARS, R as RetryDecision, o as SplitPrompt, p as TaskRunOptions, T as TokenUsage, q as buildCandidateAgents, r as buildObservabilityEnv, s as buildRetryFollowUp, t as buildSdkFunctionTools, u as buildSplitTaskPrompt, v as buildTaskPrompt, w as collectAnalyzerToolIds, x as createExecutionEnvelope, y as createLibraryToolRegistry, z as createRegistryFromSdkTools, B as emitIterationClose, D as emitIterationMetric, F as emitIterationOpen, G as emitLlmTurnClose, H as emitLlmTurnOpen, J as emitSessionClose, K as emitSessionOpen, N as emitSubagentClose, Q as emitSubagentOpen, U as emitToolExecClose, V as emitToolExecOpen, W as emitToolchainClose, X as emitToolchainOpen, Y as extractStructuredResult, Z as renderAgentSystemPrompt, _ as renderAnalyzerExplorationMandatePrompt, $ as runTask, a0 as serializeObserverEmit, a1 as shouldInjectAnalyzerExplorationMandate, a2 as zodSchemaToPromptDescription, a3 as zodSchemaToYamlExample } from './task-runner-
|
|
1
|
+
import { b as SdkFunctionTool, O as ObserverEmitFn, c as ObservabilityIds, S as SdkAdapter, d as TaskOutcome, e as TaskContractLike, f as AgentContractLike, g as TaskContext, L as LibraryToolRegistry, P as PromptBuilderOptions, h as MemoryStore, M as MemoryRef, i as TaskRunResult } from './task-runner-37cFPFas.js';
|
|
2
|
+
export { A as AdapterSendOptions, a as AgentExecutionRequest, j as AgentProgressEvent, C as CacheConfig, k as CandidateAgent, E as EnvelopeParams, I as InMemoryStore, l as InnerSpanOptions, m as LibraryToolDefinition, n as OBSERVABILITY_ENV_VARS, R as RetryDecision, o as SplitPrompt, p as TaskRunOptions, T as TokenUsage, q as buildCandidateAgents, r as buildObservabilityEnv, s as buildRetryFollowUp, t as buildSdkFunctionTools, u as buildSplitTaskPrompt, v as buildTaskPrompt, w as collectAnalyzerToolIds, x as createExecutionEnvelope, y as createLibraryToolRegistry, z as createRegistryFromSdkTools, B as emitIterationClose, D as emitIterationMetric, F as emitIterationOpen, G as emitLlmTurnClose, H as emitLlmTurnOpen, J as emitSessionClose, K as emitSessionOpen, N as emitSubagentClose, Q as emitSubagentOpen, U as emitToolExecClose, V as emitToolExecOpen, W as emitToolchainClose, X as emitToolchainOpen, Y as extractStructuredResult, Z as renderAgentSystemPrompt, _ as renderAnalyzerExplorationMandatePrompt, $ as runTask, a0 as serializeObserverEmit, a1 as shouldInjectAnalyzerExplorationMandate, a2 as zodSchemaToPromptDescription, a3 as zodSchemaToYamlExample } from './task-runner-37cFPFas.js';
|
|
3
3
|
import { ProjectModelMapping, ModelClass, ComponentIR, OperationIR } from '@aaac/contracts';
|
|
4
4
|
export { ModelClass } from '@aaac/contracts';
|
|
5
5
|
import { z } from 'zod';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
resolveGuardrailContext,
|
|
15
15
|
resolveNavigationDsl,
|
|
16
16
|
resolveNavigationSources
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MG2ULUX6.js";
|
|
18
18
|
import {
|
|
19
19
|
jsonSchemaToZod
|
|
20
20
|
} from "./chunk-ET6TGQRT.js";
|
|
@@ -9326,7 +9326,7 @@ function parseClaudeConfig(raw) {
|
|
|
9326
9326
|
|
|
9327
9327
|
// src/lib/claude-materialize/workflow-render.ts
|
|
9328
9328
|
import { resolveSchemaRefs } from "agent-contracts";
|
|
9329
|
-
import { pathSegmentForId as pathSegmentForId4 } from "@aaac/contracts";
|
|
9329
|
+
import { pathSegmentForId as pathSegmentForId4, readDslExtension } from "@aaac/contracts";
|
|
9330
9330
|
|
|
9331
9331
|
// src/lib/claude-materialize/dsl-sources.ts
|
|
9332
9332
|
import { existsSync as existsSync4 } from "fs";
|
|
@@ -9465,7 +9465,8 @@ function computeWaves(steps, deps) {
|
|
|
9465
9465
|
return waves;
|
|
9466
9466
|
}
|
|
9467
9467
|
function renderDelegatePrompt(agent, task, step) {
|
|
9468
|
-
const
|
|
9468
|
+
const instruction = readDslExtension(step, "x-instruction");
|
|
9469
|
+
const userRequest = (instruction ?? step.description ?? "").trim() || "Perform the task described above.";
|
|
9469
9470
|
return buildTaskPrompt(agent, task, { user_request: userRequest });
|
|
9470
9471
|
}
|
|
9471
9472
|
var PRIOR_CONTEXT_PREFIX = "\n\n---\n\n## Prior Context\n";
|
|
@@ -9979,6 +9980,8 @@ ${agent.mode}`,
|
|
|
9979
9980
|
].filter((s) => s !== void 0);
|
|
9980
9981
|
}
|
|
9981
9982
|
function agentDescription(agent) {
|
|
9983
|
+
const authored = agent.description?.replace(/\s+/g, " ").trim();
|
|
9984
|
+
if (authored) return authored;
|
|
9982
9985
|
const purpose = agent.purpose.replace(/\s+/g, " ").trim();
|
|
9983
9986
|
if (!purpose) return agent.role_name;
|
|
9984
9987
|
return `${agent.role_name} \u2014 ${purpose}`;
|