@adcp/sdk 13.0.0-rc.13 → 13.0.0-rc.14

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.
Files changed (73) hide show
  1. package/dist/lib/index.d.mts +2 -2
  2. package/dist/lib/index.d.ts +2 -2
  3. package/dist/lib/index.d.ts.map +1 -1
  4. package/dist/lib/index.js +6 -0
  5. package/dist/lib/index.js.map +1 -1
  6. package/dist/lib/index.mjs +6 -0
  7. package/dist/lib/index.mjs.map +1 -1
  8. package/dist/lib/protocols/transportDiagnostics.js +2 -1
  9. package/dist/lib/protocols/transportDiagnostics.js.map +1 -1
  10. package/dist/lib/protocols/transportDiagnostics.mjs +2 -1
  11. package/dist/lib/protocols/transportDiagnostics.mjs.map +1 -1
  12. package/dist/lib/registry/index.d.mts +17 -0
  13. package/dist/lib/registry/index.d.ts +17 -0
  14. package/dist/lib/registry/index.d.ts.map +1 -1
  15. package/dist/lib/registry/index.js +81 -7
  16. package/dist/lib/registry/index.js.map +1 -1
  17. package/dist/lib/registry/index.mjs +79 -7
  18. package/dist/lib/registry/index.mjs.map +1 -1
  19. package/dist/lib/registry/types.generated.d.mts +157 -7
  20. package/dist/lib/registry/types.generated.d.ts +157 -7
  21. package/dist/lib/registry/types.generated.d.ts.map +1 -1
  22. package/dist/lib/registry/types.generated.js.map +1 -1
  23. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  24. package/dist/lib/server/errors.d.mts +10 -2
  25. package/dist/lib/server/errors.d.ts +10 -2
  26. package/dist/lib/server/errors.d.ts.map +1 -1
  27. package/dist/lib/server/errors.js +9 -2
  28. package/dist/lib/server/errors.js.map +1 -1
  29. package/dist/lib/server/errors.mjs +9 -2
  30. package/dist/lib/server/errors.mjs.map +1 -1
  31. package/dist/lib/testing/compliance/comply.d.mts +6 -0
  32. package/dist/lib/testing/compliance/comply.d.ts +6 -0
  33. package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
  34. package/dist/lib/testing/compliance/comply.js +3 -0
  35. package/dist/lib/testing/compliance/comply.js.map +1 -1
  36. package/dist/lib/testing/compliance/comply.mjs +3 -0
  37. package/dist/lib/testing/compliance/comply.mjs.map +1 -1
  38. package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
  39. package/dist/lib/testing/storyboard/runner.js +31 -5
  40. package/dist/lib/testing/storyboard/runner.js.map +1 -1
  41. package/dist/lib/testing/storyboard/runner.mjs +36 -6
  42. package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
  43. package/dist/lib/testing/storyboard/types.d.mts +16 -5
  44. package/dist/lib/testing/storyboard/types.d.ts +16 -5
  45. package/dist/lib/testing/storyboard/types.d.ts.map +1 -1
  46. package/dist/lib/testing/storyboard/types.js +1 -1
  47. package/dist/lib/testing/storyboard/types.js.map +1 -1
  48. package/dist/lib/testing/storyboard/types.mjs +1 -1
  49. package/dist/lib/testing/storyboard/types.mjs.map +1 -1
  50. package/dist/lib/testing/storyboard/validations.d.mts +1 -1
  51. package/dist/lib/testing/storyboard/validations.d.ts +1 -1
  52. package/dist/lib/v2/projection/augment-response.d.mts +16 -0
  53. package/dist/lib/v2/projection/augment-response.d.ts +16 -0
  54. package/dist/lib/v2/projection/augment-response.d.ts.map +1 -1
  55. package/dist/lib/v2/projection/augment-response.js +13 -4
  56. package/dist/lib/v2/projection/augment-response.js.map +1 -1
  57. package/dist/lib/v2/projection/augment-response.mjs +12 -4
  58. package/dist/lib/v2/projection/augment-response.mjs.map +1 -1
  59. package/dist/lib/v2/projection/index.d.mts +3 -1
  60. package/dist/lib/v2/projection/index.d.ts +3 -1
  61. package/dist/lib/v2/projection/index.d.ts.map +1 -1
  62. package/dist/lib/v2/projection/index.js +2 -0
  63. package/dist/lib/v2/projection/index.js.map +1 -1
  64. package/dist/lib/v2/projection/index.mjs +2 -0
  65. package/dist/lib/v2/projection/index.mjs.map +1 -1
  66. package/dist/lib/version.d.mts +3 -3
  67. package/dist/lib/version.d.ts +3 -3
  68. package/dist/lib/version.js +3 -3
  69. package/dist/lib/version.js.map +1 -1
  70. package/dist/lib/version.mjs +3 -3
  71. package/dist/lib/version.mjs.map +1 -1
  72. package/examples/error-compliant-server.ts +9 -3
  73. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../../src/lib/testing/storyboard/runner.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAgGH,OAAO,KAAK,EAiBV,2BAA2B,EAG3B,UAAU,EACV,cAAc,EAEd,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAEhB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EAErB,uBAAuB,EACvB,qBAAqB,EAGtB,MAAM,SAAS,CAAC;AASjB,OAAO,KAAK,EAA4B,cAAc,EAAE,MAAM,UAAU,CAAC;AAqCzE,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,oBAAoB,GAC5B,oBAAoB,CAEtB;AAED,wBAAgB,0BAA0B,CACxC,kBAAkB,EAAE,MAAM,GAAG,SAAS,EACtC,OAAO,EAAE,oBAAoB,GAC5B,oBAAoB,CAUtB;AAuED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAS/E;AAoCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,2BAA2B,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CA2ClH;AAonBD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAE9D;AAED,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAC1C,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAEpC;AAED,wBAAgB,sCAAsC,CACpD,O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BAAsB,iBAAiB,CACrC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,oBAAoB,CAAC,CAe/B;AA85FD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,CAAC,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GACrC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAyDzB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAyBpH;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,cAAc,GACnB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKzB;AAkfD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,UAAU,EACtB,OAAO,GAAE,iBAAsB,GAC9B,qBAAqB,GAAG,SAAS,CAgBnC"}
@@ -671,7 +671,7 @@ function buildCapabilityUnsupportedResult(agentUrls, storyboard, detail) {
671
671
  passed: true,
672
672
  skipped: true,
673
673
  skip_reason: "capability_unsupported",
674
- skip: { reason: "unsatisfied_contract", detail },
674
+ skip: { reason: import_types.DETAILED_SKIP_TO_CANONICAL.capability_unsupported, detail },
675
675
  duration_ms: 0,
676
676
  validations: [],
677
677
  context: {},
@@ -984,7 +984,8 @@ function detectImplicitRequires(storyboard, options = {}) {
984
984
  for (const phase of storyboard.phases) {
985
985
  for (const step of phase.steps) {
986
986
  const stepContractInScope = !step.requires_contract || contractsInScope.has(step.requires_contract);
987
- if (!needsWebhook && (step.sample_request && valueContainsWebhookToken(step.sample_request) || step.rate_limit_trip?.trip_target_sample_request && stepContractInScope && valueContainsWebhookToken(step.rate_limit_trip.trip_target_sample_request))) {
987
+ const rateLimitProbeInScope = step.task !== "expect_rate_limit_not_replayed" || stepContractInScope && contractsInScope.has(import_rate_limit_trip.RATE_LIMIT_TRIP_CONTRACT) && options.allowLiveSideEffects === true;
988
+ if (!needsWebhook && (step.sample_request && rateLimitProbeInScope && valueContainsWebhookToken(step.sample_request) || step.rate_limit_trip?.trip_target_sample_request && stepContractInScope && rateLimitProbeInScope && valueContainsWebhookToken(step.rate_limit_trip.trip_target_sample_request))) {
988
989
  needsWebhook = true;
989
990
  }
990
991
  if (!needsSigner && step.task === "request_signing_probe") {
@@ -3184,9 +3185,9 @@ async function executeProbeStep(client, step, phaseId, context, allSteps, option
3184
3185
  fetchFn: options.transport?.fetchFn
3185
3186
  };
3186
3187
  let requestRecordOverride;
3188
+ const contractsInScope = new Set(options.contracts ?? []);
3187
3189
  if (step.requires_contract) {
3188
- const contracts = new Set(options.contracts ?? []);
3189
- if (!contracts.has(step.requires_contract)) {
3190
+ if (!contractsInScope.has(step.requires_contract)) {
3190
3191
  httpResult = {
3191
3192
  url: runState.agentUrl,
3192
3193
  status: 0,
@@ -3198,6 +3199,17 @@ async function executeProbeStep(client, step, phaseId, context, allSteps, option
3198
3199
  };
3199
3200
  }
3200
3201
  }
3202
+ if (!httpResult && step.task === "expect_rate_limit_not_replayed" && !contractsInScope.has(import_rate_limit_trip.RATE_LIMIT_TRIP_CONTRACT)) {
3203
+ httpResult = {
3204
+ url: runState.agentUrl,
3205
+ status: 0,
3206
+ headers: {},
3207
+ body: null,
3208
+ skipped: true,
3209
+ skip_reason: "missing_test_kit_contract",
3210
+ error: `Test-kit contract "${import_rate_limit_trip.RATE_LIMIT_TRIP_CONTRACT}" is not configured on this runner.`
3211
+ };
3212
+ }
3201
3213
  if (httpResult) {
3202
3214
  } else if (step.task === "protected_resource_metadata") {
3203
3215
  if (step.validations?.some((validation) => validation.check === "oauth_metadata_graph")) {
@@ -3238,6 +3250,16 @@ async function executeProbeStep(client, step, phaseId, context, allSteps, option
3238
3250
  body: { attempts: 0, error: "rate_limit_trip_misconfigured" },
3239
3251
  error: specError
3240
3252
  };
3253
+ } else if (options.allowLiveSideEffects !== true) {
3254
+ httpResult = {
3255
+ url: runState.agentUrl,
3256
+ status: 0,
3257
+ headers: {},
3258
+ body: null,
3259
+ skipped: true,
3260
+ skip_reason: "live_side_effect_opt_in_required",
3261
+ error: "The rate-limit trip probe can send hundreds of mutating requests. Pass allowLiveSideEffects: true to authorize it explicitly."
3262
+ };
3241
3263
  } else {
3242
3264
  const rateLimitTrip = step.rate_limit_trip;
3243
3265
  const targetStep = {
@@ -3544,6 +3566,7 @@ function buildEffectiveStepRequest(step, context, options, runState) {
3544
3566
  };
3545
3567
  }
3546
3568
  function preflightRemainingCreativeAssetDirectives(allSteps, afterGlobalIndex, context, options, runState, excludedPhaseIds = /* @__PURE__ */ new Set()) {
3569
+ const contractsInScope = new Set(options.contracts ?? []);
3547
3570
  for (const target of allSteps) {
3548
3571
  if (target.globalIndex <= afterGlobalIndex) continue;
3549
3572
  if (excludedPhaseIds.has(target.phaseId)) continue;
@@ -3552,7 +3575,10 @@ function preflightRemainingCreativeAssetDirectives(allSteps, afterGlobalIndex, c
3552
3575
  if (target.step.requires_tool && options.agentTools && !options.agentTools.includes(target.step.requires_tool)) {
3553
3576
  continue;
3554
3577
  }
3555
- if (target.step.requires_contract && !new Set(options.contracts ?? []).has(target.step.requires_contract)) {
3578
+ if (target.step.requires_contract && !contractsInScope.has(target.step.requires_contract)) {
3579
+ continue;
3580
+ }
3581
+ if (target.step.task === "expect_rate_limit_not_replayed" && (!contractsInScope.has(import_rate_limit_trip.RATE_LIMIT_TRIP_CONTRACT) || options.allowLiveSideEffects !== true)) {
3556
3582
  continue;
3557
3583
  }
3558
3584
  if (!import_probes.PROBE_TASKS.has(target.step.task) && options.agentTools && !options.agentTools.includes(resolvedTask)) {