@riddledc/riddle-proof 0.7.125 → 0.7.127

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.
@@ -38,6 +38,30 @@ interface RiddleProofProfileHttpStatusPreflightFetchResponse {
38
38
  text?: () => Promise<string>;
39
39
  }
40
40
  type RiddleProofProfileHttpStatusPreflightFetch = (url: string, init?: Record<string, unknown>) => Promise<RiddleProofProfileHttpStatusPreflightFetchResponse>;
41
+ type RiddleProofProfileJsonValueType = "array" | "boolean" | "null" | "number" | "object" | "string";
42
+ interface RiddleProofProfileHttpStatusBodyJsonAssertion {
43
+ label?: string;
44
+ path: string;
45
+ exists?: boolean;
46
+ equals?: JsonValue;
47
+ not_equals?: JsonValue;
48
+ contains?: JsonValue;
49
+ type?: RiddleProofProfileJsonValueType;
50
+ }
51
+ interface RiddleProofProfileHttpStatusBodyJsonAssertionResult {
52
+ label: string;
53
+ path: string;
54
+ ok: boolean;
55
+ exists: boolean;
56
+ observed?: JsonValue;
57
+ observed_type: RiddleProofProfileJsonValueType | "missing";
58
+ expected_exists?: boolean;
59
+ equals?: JsonValue;
60
+ not_equals?: JsonValue;
61
+ contains?: JsonValue;
62
+ type?: RiddleProofProfileJsonValueType;
63
+ errors?: string[];
64
+ }
41
65
  interface RiddleProofProfileHttpStatusPreflightOptions {
42
66
  fetchImpl?: RiddleProofProfileHttpStatusPreflightFetch;
43
67
  target_url?: string;
@@ -60,6 +84,8 @@ interface RiddleProofProfileHttpStatusPreflightCheckResult {
60
84
  body_not_contains_found: string[];
61
85
  body_not_patterns: Record<string, boolean> | null;
62
86
  body_not_patterns_found: string[];
87
+ body_json_assertions: RiddleProofProfileHttpStatusBodyJsonAssertionResult[] | null;
88
+ body_json_assertions_failed: RiddleProofProfileHttpStatusBodyJsonAssertionResult[];
63
89
  }
64
90
  interface RiddleProofProfileHttpStatusPreflightResult {
65
91
  version: "riddle-proof.profile-http-status-preflight.v1";
@@ -142,6 +168,7 @@ interface RiddleProofProfileNetworkMock extends RiddleProofProfileNetworkMockRes
142
168
  method?: string;
143
169
  responses?: RiddleProofProfileNetworkMockResponse[];
144
170
  repeat_responses?: boolean;
171
+ sequence_scope?: "global" | "viewport";
145
172
  required_hit_count?: number;
146
173
  max_hit_count?: number;
147
174
  forbidden?: boolean;
@@ -184,6 +211,7 @@ interface RiddleProofProfileCheck {
184
211
  body_contains?: string[];
185
212
  body_not_contains?: string[];
186
213
  body_not_patterns?: string[];
214
+ body_json_assertions?: RiddleProofProfileHttpStatusBodyJsonAssertion[];
187
215
  expected_texts?: string[];
188
216
  link_selector?: string;
189
217
  source_selector?: string;
@@ -389,4 +417,4 @@ declare function buildRiddleProofProfileScript(profile: RiddleProofProfile): str
389
417
  declare function collectRiddleProfileArtifactRefs(input: unknown): RiddleProofProfileArtifactRef[];
390
418
  declare function extractRiddleProofProfileResult(input: unknown): RiddleProofProfileResult | undefined;
391
419
 
392
- export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofArtifactBodyAssertionInput, type RiddleProofArtifactBodyAssertionResult, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileBoundsOffender, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileHttpStatusPreflightCheckResult, type RiddleProofProfileHttpStatusPreflightFetch, type RiddleProofProfileHttpStatusPreflightFetchResponse, type RiddleProofProfileHttpStatusPreflightOptions, type RiddleProofProfileHttpStatusPreflightResult, type RiddleProofProfileNetworkAbortErrorCode, type RiddleProofProfileNetworkMock, type RiddleProofProfileNetworkMockResponse, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRouteInventoryRoute, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
420
+ export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofArtifactBodyAssertionInput, type RiddleProofArtifactBodyAssertionResult, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileBoundsOffender, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileHttpStatusBodyJsonAssertion, type RiddleProofProfileHttpStatusBodyJsonAssertionResult, type RiddleProofProfileHttpStatusPreflightCheckResult, type RiddleProofProfileHttpStatusPreflightFetch, type RiddleProofProfileHttpStatusPreflightFetchResponse, type RiddleProofProfileHttpStatusPreflightOptions, type RiddleProofProfileHttpStatusPreflightResult, type RiddleProofProfileJsonValueType, type RiddleProofProfileNetworkAbortErrorCode, type RiddleProofProfileNetworkMock, type RiddleProofProfileNetworkMockResponse, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRouteInventoryRoute, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
package/dist/profile.d.ts CHANGED
@@ -38,6 +38,30 @@ interface RiddleProofProfileHttpStatusPreflightFetchResponse {
38
38
  text?: () => Promise<string>;
39
39
  }
40
40
  type RiddleProofProfileHttpStatusPreflightFetch = (url: string, init?: Record<string, unknown>) => Promise<RiddleProofProfileHttpStatusPreflightFetchResponse>;
41
+ type RiddleProofProfileJsonValueType = "array" | "boolean" | "null" | "number" | "object" | "string";
42
+ interface RiddleProofProfileHttpStatusBodyJsonAssertion {
43
+ label?: string;
44
+ path: string;
45
+ exists?: boolean;
46
+ equals?: JsonValue;
47
+ not_equals?: JsonValue;
48
+ contains?: JsonValue;
49
+ type?: RiddleProofProfileJsonValueType;
50
+ }
51
+ interface RiddleProofProfileHttpStatusBodyJsonAssertionResult {
52
+ label: string;
53
+ path: string;
54
+ ok: boolean;
55
+ exists: boolean;
56
+ observed?: JsonValue;
57
+ observed_type: RiddleProofProfileJsonValueType | "missing";
58
+ expected_exists?: boolean;
59
+ equals?: JsonValue;
60
+ not_equals?: JsonValue;
61
+ contains?: JsonValue;
62
+ type?: RiddleProofProfileJsonValueType;
63
+ errors?: string[];
64
+ }
41
65
  interface RiddleProofProfileHttpStatusPreflightOptions {
42
66
  fetchImpl?: RiddleProofProfileHttpStatusPreflightFetch;
43
67
  target_url?: string;
@@ -60,6 +84,8 @@ interface RiddleProofProfileHttpStatusPreflightCheckResult {
60
84
  body_not_contains_found: string[];
61
85
  body_not_patterns: Record<string, boolean> | null;
62
86
  body_not_patterns_found: string[];
87
+ body_json_assertions: RiddleProofProfileHttpStatusBodyJsonAssertionResult[] | null;
88
+ body_json_assertions_failed: RiddleProofProfileHttpStatusBodyJsonAssertionResult[];
63
89
  }
64
90
  interface RiddleProofProfileHttpStatusPreflightResult {
65
91
  version: "riddle-proof.profile-http-status-preflight.v1";
@@ -142,6 +168,7 @@ interface RiddleProofProfileNetworkMock extends RiddleProofProfileNetworkMockRes
142
168
  method?: string;
143
169
  responses?: RiddleProofProfileNetworkMockResponse[];
144
170
  repeat_responses?: boolean;
171
+ sequence_scope?: "global" | "viewport";
145
172
  required_hit_count?: number;
146
173
  max_hit_count?: number;
147
174
  forbidden?: boolean;
@@ -184,6 +211,7 @@ interface RiddleProofProfileCheck {
184
211
  body_contains?: string[];
185
212
  body_not_contains?: string[];
186
213
  body_not_patterns?: string[];
214
+ body_json_assertions?: RiddleProofProfileHttpStatusBodyJsonAssertion[];
187
215
  expected_texts?: string[];
188
216
  link_selector?: string;
189
217
  source_selector?: string;
@@ -389,4 +417,4 @@ declare function buildRiddleProofProfileScript(profile: RiddleProofProfile): str
389
417
  declare function collectRiddleProfileArtifactRefs(input: unknown): RiddleProofProfileArtifactRef[];
390
418
  declare function extractRiddleProofProfileResult(input: unknown): RiddleProofProfileResult | undefined;
391
419
 
392
- export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofArtifactBodyAssertionInput, type RiddleProofArtifactBodyAssertionResult, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileBoundsOffender, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileHttpStatusPreflightCheckResult, type RiddleProofProfileHttpStatusPreflightFetch, type RiddleProofProfileHttpStatusPreflightFetchResponse, type RiddleProofProfileHttpStatusPreflightOptions, type RiddleProofProfileHttpStatusPreflightResult, type RiddleProofProfileNetworkAbortErrorCode, type RiddleProofProfileNetworkMock, type RiddleProofProfileNetworkMockResponse, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRouteInventoryRoute, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
420
+ export { type NormalizeRiddleProofProfileOptions, RIDDLE_PROOF_PROFILE_CHECK_TYPES, RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION, RIDDLE_PROOF_PROFILE_NETWORK_ABORT_ERROR_CODES, RIDDLE_PROOF_PROFILE_RESULT_VERSION, RIDDLE_PROOF_PROFILE_SETUP_ACTION_TYPES, RIDDLE_PROOF_PROFILE_STATUSES, RIDDLE_PROOF_PROFILE_VERSION, type RiddleProofArtifactBodyAssertionInput, type RiddleProofArtifactBodyAssertionResult, type RiddleProofProfile, type RiddleProofProfileArtifactRef, type RiddleProofProfileBaselinePolicy, type RiddleProofProfileBoundsOffender, type RiddleProofProfileCheck, type RiddleProofProfileCheckResult, type RiddleProofProfileCheckType, type RiddleProofProfileEvidence, type RiddleProofProfileFailureAction, type RiddleProofProfileHttpStatusBodyJsonAssertion, type RiddleProofProfileHttpStatusBodyJsonAssertionResult, type RiddleProofProfileHttpStatusPreflightCheckResult, type RiddleProofProfileHttpStatusPreflightFetch, type RiddleProofProfileHttpStatusPreflightFetchResponse, type RiddleProofProfileHttpStatusPreflightOptions, type RiddleProofProfileHttpStatusPreflightResult, type RiddleProofProfileJsonValueType, type RiddleProofProfileNetworkAbortErrorCode, type RiddleProofProfileNetworkMock, type RiddleProofProfileNetworkMockResponse, type RiddleProofProfileResult, type RiddleProofProfileRouteEvidence, type RiddleProofProfileRouteInventoryRoute, type RiddleProofProfileRunner, type RiddleProofProfileSetupAction, type RiddleProofProfileSetupActionType, type RiddleProofProfileStatus, type RiddleProofProfileTarget, type RiddleProofProfileViewport, type RiddleProofProfileViewportEvidence, assessRiddleProofProfileEvidence, buildRiddleProofProfileScript, collectRiddleProfileArtifactRefs, collectRiddleProofProfileWarnings, createRiddleProofProfileConfigurationError, createRiddleProofProfileEnvironmentBlockedResult, createRiddleProofProfileInsufficientResult, deriveRiddleProofArtifactBodyAssertions, extractRiddleProofProfileResult, normalizeRiddleProofProfile, preflightRiddleProofProfileHttpStatusChecks, profileStatusExitCode, resolveRiddleProofProfileRouteUrl, resolveRiddleProofProfileTargetUrl, resolveRiddleProofProfileTimeoutSec, slugifyRiddleProofProfileName, summarizeRiddleProofProfileResult };
package/dist/profile.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  resolveRiddleProofProfileTimeoutSec,
24
24
  slugifyRiddleProofProfileName,
25
25
  summarizeRiddleProofProfileResult
26
- } from "./chunk-JVZWSI55.js";
26
+ } from "./chunk-JLINSUKO.js";
27
27
  export {
28
28
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
29
29
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.7.125",
3
+ "version": "0.7.127",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",