@adcp/sdk 13.0.0-rc.2 → 13.0.0-rc.4
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/README.md +11 -14
- package/dist/lib/index.d.mts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs.map +1 -1
- package/dist/lib/protocols/mcp-modern.d.ts.map +1 -1
- package/dist/lib/protocols/mcp-modern.js +14 -0
- package/dist/lib/protocols/mcp-modern.js.map +1 -1
- package/dist/lib/protocols/mcp-modern.mjs +14 -0
- package/dist/lib/protocols/mcp-modern.mjs.map +1 -1
- package/dist/lib/registry/index.d.mts +5 -25
- package/dist/lib/registry/index.d.ts +5 -25
- package/dist/lib/registry/index.d.ts.map +1 -1
- package/dist/lib/registry/index.js +5 -130
- package/dist/lib/registry/index.js.map +1 -1
- package/dist/lib/registry/index.mjs +5 -130
- package/dist/lib/registry/index.mjs.map +1 -1
- package/dist/lib/registry/sync.d.mts +8 -2
- package/dist/lib/registry/sync.d.ts +8 -2
- package/dist/lib/registry/sync.d.ts.map +1 -1
- package/dist/lib/registry/sync.js +8 -2
- package/dist/lib/registry/sync.js.map +1 -1
- package/dist/lib/registry/sync.mjs +8 -2
- package/dist/lib/registry/sync.mjs.map +1 -1
- package/dist/lib/registry/types.d.mts +15 -29
- package/dist/lib/registry/types.d.ts +15 -29
- package/dist/lib/registry/types.d.ts.map +1 -1
- package/dist/lib/registry/types.generated.d.mts +20 -5
- package/dist/lib/registry/types.generated.d.ts +20 -5
- package/dist/lib/registry/types.generated.d.ts.map +1 -1
- package/dist/lib/registry/types.generated.js.map +1 -1
- package/dist/lib/registry/types.js.map +1 -1
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/runner.js +40 -6
- package/dist/lib/testing/storyboard/runner.js.map +1 -1
- package/dist/lib/testing/storyboard/runner.mjs +40 -6
- package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
- package/dist/lib/types/core.generated.d.mts +105 -58
- package/dist/lib/types/core.generated.d.ts +105 -58
- package/dist/lib/types/core.generated.d.ts.map +1 -1
- package/dist/lib/types/core.generated.js.map +1 -1
- package/dist/lib/types/schemas.generated.d.mts +2352 -473
- package/dist/lib/types/schemas.generated.d.ts +2352 -473
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +78 -45
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/schemas.generated.mjs +71 -45
- package/dist/lib/types/schemas.generated.mjs.map +1 -1
- package/dist/lib/types/tools.generated.d.mts +48 -44
- package/dist/lib/types/tools.generated.d.ts +48 -44
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/dist/lib/types/tools.generated.js.map +1 -1
- package/dist/lib/version.d.mts +3 -3
- package/dist/lib/version.d.ts +3 -3
- package/dist/lib/version.js +3 -3
- package/dist/lib/version.js.map +1 -1
- package/dist/lib/version.mjs +3 -3
- package/dist/lib/version.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1296,7 +1296,7 @@ async function executeStoryboardPass(agentUrls, storyboard, options, dispatchOff
|
|
|
1296
1296
|
});
|
|
1297
1297
|
if (webhookReceiver) armWebhookAssertions(storyboard, runnerVars, webhookReceiver);
|
|
1298
1298
|
const allSteps = flattenSteps(storyboard);
|
|
1299
|
-
const dispatch = routingContext && options.agents ? createRoutingDispatcher(routingContext, options, options.agents) : createDispatcher(agentUrls, clients, "round-robin", dispatchOffset);
|
|
1299
|
+
const dispatch = routingContext && options.agents ? createRoutingDispatcher(routingContext, options, options.agents) : createDispatcher(agentUrls, clients, "round-robin", dispatchOffset, profile);
|
|
1300
1300
|
const assertions = resolveAssertions(storyboard.invariants);
|
|
1301
1301
|
validateStepInvariants(storyboard, assertions);
|
|
1302
1302
|
const assertionContexts = /* @__PURE__ */ new Map();
|
|
@@ -1582,7 +1582,9 @@ async function executeStoryboardPass(agentUrls, storyboard, options, dispatchOff
|
|
|
1582
1582
|
priorA2aEnvelopes,
|
|
1583
1583
|
stepRequestStarts,
|
|
1584
1584
|
responseDerivedNotApplicableContextKeys,
|
|
1585
|
-
|
|
1585
|
+
agentProfile: assignment.profile,
|
|
1586
|
+
agentLibraryVersion: assignment.profile?.library_version,
|
|
1587
|
+
storyboardRequiresRequestSigner: allRequires.includes("request_signer")
|
|
1586
1588
|
}
|
|
1587
1589
|
);
|
|
1588
1590
|
const result2 = { ...rawResult, storyboard_id: storyboard.id };
|
|
@@ -2048,7 +2050,9 @@ async function runStoryboardStepBody(agentUrl, storyboard, stepId, options) {
|
|
|
2048
2050
|
priorA2aEnvelopes: /* @__PURE__ */ new Map(),
|
|
2049
2051
|
stepRequestStarts: /* @__PURE__ */ new Map(),
|
|
2050
2052
|
responseDerivedNotApplicableContextKeys,
|
|
2051
|
-
|
|
2053
|
+
agentProfile: profile,
|
|
2054
|
+
agentLibraryVersion: profile?.library_version,
|
|
2055
|
+
storyboardRequiresRequestSigner: resolveStoryboardRequires(storyboard, options).includes("request_signer")
|
|
2052
2056
|
});
|
|
2053
2057
|
if (!result.skipped && result.passed && found.step.contributes_to) {
|
|
2054
2058
|
if (evalContributesIf(found.step.contributes_if, /* @__PURE__ */ new Map())) {
|
|
@@ -2448,6 +2452,33 @@ async function executeStep(client, step, storyboardId, phaseId, context, allStep
|
|
|
2448
2452
|
taskResult?.debug_logs,
|
|
2449
2453
|
storyboardId
|
|
2450
2454
|
);
|
|
2455
|
+
const requiredForSigning = resolveCapabilityPath(
|
|
2456
|
+
runState.agentProfile?.raw_capabilities,
|
|
2457
|
+
"request_signing.required_for"
|
|
2458
|
+
);
|
|
2459
|
+
if (taskResult?.adcp_error?.code === "request_signature_required" && Array.isArray(requiredForSigning) && requiredForSigning.includes(effectiveStep.task) && runState.storyboardRequiresRequestSigner !== true) {
|
|
2460
|
+
const next2 = getNextStepPreview(step.id, allSteps, context, runState.runnerVars);
|
|
2461
|
+
const detail = `Agent declared request_signing.required_for includes "${effectiveStep.task}" and rejected the unsigned request with request_signature_required; storyboard "${storyboardId}" does not require request_signer.`;
|
|
2462
|
+
return {
|
|
2463
|
+
step_id: step.id,
|
|
2464
|
+
phase_id: phaseId,
|
|
2465
|
+
title: step.title,
|
|
2466
|
+
task: step.task,
|
|
2467
|
+
passed: true,
|
|
2468
|
+
skipped: true,
|
|
2469
|
+
skip_reason: "not_applicable",
|
|
2470
|
+
skip: buildSkip("not_applicable", detail),
|
|
2471
|
+
duration_ms: stepResult.duration_ms,
|
|
2472
|
+
validations: [],
|
|
2473
|
+
context,
|
|
2474
|
+
response: redactSecrets(taskResult.data),
|
|
2475
|
+
next: next2,
|
|
2476
|
+
request: requestRecord,
|
|
2477
|
+
...responseRecord && { response_record: responseRecord },
|
|
2478
|
+
extraction: extractionFromTaskResult(taskResult),
|
|
2479
|
+
...inputSchemaStripNotices.length > 0 && { notices: inputSchemaStripNotices }
|
|
2480
|
+
};
|
|
2481
|
+
}
|
|
2451
2482
|
{
|
|
2452
2483
|
const controllerData = taskResult?.data;
|
|
2453
2484
|
const requestScenario = request.scenario;
|
|
@@ -3989,7 +4020,7 @@ function getNextStepPreview(currentStepId, allSteps, context, runnerVars) {
|
|
|
3989
4020
|
sample_request: previewRequest
|
|
3990
4021
|
};
|
|
3991
4022
|
}
|
|
3992
|
-
function createDispatcher(agentUrls, clients, _strategy, startOffset = 0) {
|
|
4023
|
+
function createDispatcher(agentUrls, clients, _strategy, startOffset = 0, profile) {
|
|
3993
4024
|
let counter = startOffset;
|
|
3994
4025
|
return {
|
|
3995
4026
|
nextFor(_step) {
|
|
@@ -3998,7 +4029,8 @@ function createDispatcher(agentUrls, clients, _strategy, startOffset = 0) {
|
|
|
3998
4029
|
return {
|
|
3999
4030
|
client: clients[idx],
|
|
4000
4031
|
agentUrl: agentUrls[idx],
|
|
4001
|
-
instanceIndex: idx
|
|
4032
|
+
instanceIndex: idx,
|
|
4033
|
+
profile
|
|
4002
4034
|
};
|
|
4003
4035
|
}
|
|
4004
4036
|
};
|
|
@@ -4010,6 +4042,7 @@ function createRoutingDispatcher(ctx, options, agents) {
|
|
|
4010
4042
|
nextFor(step) {
|
|
4011
4043
|
const key = resolveAgentForStep(step, options, ctx);
|
|
4012
4044
|
const client = ctx.clients.get(key);
|
|
4045
|
+
const profile = ctx.profiles.get(key);
|
|
4013
4046
|
const url = agents[key]?.url;
|
|
4014
4047
|
if (!client || !url) {
|
|
4015
4048
|
throw new RoutingError(
|
|
@@ -4021,7 +4054,8 @@ function createRoutingDispatcher(ctx, options, agents) {
|
|
|
4021
4054
|
return {
|
|
4022
4055
|
client,
|
|
4023
4056
|
agentUrl: url,
|
|
4024
|
-
instanceIndex: keyToIndex.get(key) ?? 0
|
|
4057
|
+
instanceIndex: keyToIndex.get(key) ?? 0,
|
|
4058
|
+
profile
|
|
4025
4059
|
};
|
|
4026
4060
|
}
|
|
4027
4061
|
};
|