@aventurevc/api-schemas 0.8.381 → 0.8.383
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.
|
@@ -122,6 +122,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
122
122
|
suspectedShellStrip: "suspectedShellStrip";
|
|
123
123
|
suspected_shell_strip: "suspected_shell_strip";
|
|
124
124
|
task_plan_operation_unserved: "task_plan_operation_unserved";
|
|
125
|
+
text_send_limit_reached: "text_send_limit_reached";
|
|
125
126
|
url_surface_misclassification: "url_surface_misclassification";
|
|
126
127
|
web_crawl_fetch_failed: "web_crawl_fetch_failed";
|
|
127
128
|
website_not_own_live_site: "website_not_own_live_site";
|
|
@@ -316,11 +317,15 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
316
317
|
passage: string;
|
|
317
318
|
problem: string;
|
|
318
319
|
reason: string;
|
|
320
|
+
supportedWording?: string | null | undefined;
|
|
321
|
+
unsupportedSpan?: string[] | null | undefined;
|
|
319
322
|
}, import("../prose/violation.ts").ProseViolationSchemaInput, z.core.$ZodTypeInternals<{
|
|
320
323
|
overridable: boolean;
|
|
321
324
|
passage: string;
|
|
322
325
|
problem: string;
|
|
323
326
|
reason: string;
|
|
327
|
+
supportedWording?: string | null | undefined;
|
|
328
|
+
unsupportedSpan?: string[] | null | undefined;
|
|
324
329
|
}, import("../prose/violation.ts").ProseViolationSchemaInput>>>>>;
|
|
325
330
|
remaining: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
326
331
|
requiredRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -66,6 +66,8 @@ export const ProblemDetailSchema = z.object({
|
|
|
66
66
|
"suspected_shell_strip",
|
|
67
67
|
/** Entity text or a research snippet failed its prose judge or contract. Rewrite every ProblemDetail.proseViolation passage and resend the whole text. ProblemDetail.hint names an override only when every violation is overridable. */
|
|
68
68
|
"prose_rejected",
|
|
69
|
+
/** This prose write (entity, text type, and evidence basis) was already refused by the prose judge five times, so the server refused this send without judging it. Agent action: stop and report the write; only a genuinely new source or evidence basis opens a new write, and an edited payload on the same evidence does not. */
|
|
70
|
+
"text_send_limit_reached",
|
|
69
71
|
/** Name casing failed policy or source check; follow ProblemDetail.hint. */
|
|
70
72
|
"entity_name_casing_rejected",
|
|
71
73
|
/** Cited source does not establish this round or role; follow its detail. */
|
|
@@ -98,13 +100,13 @@ export const ProblemDetailSchema = z.object({
|
|
|
98
100
|
"sentry_api_error",
|
|
99
101
|
/** Frontend cache epoch requires the cache invalidation outbox consumer to run in targeted mode. Agent action: stop polling; this 503 is a designed cutover guard, and only the operator switching the outbox mode to targeted (docs/database/cache-invalidation.md) makes the epoch readable. */
|
|
100
102
|
"frontend_cache_epoch_mode_not_targeted",
|
|
101
|
-
/** Image
|
|
103
|
+
/** Image is blocklisted; follow ProblemDetail.hint, never resend it. */
|
|
102
104
|
"image_blocklist_match",
|
|
103
|
-
/** Image
|
|
105
|
+
/** Image is blank or monochrome; follow ProblemDetail.hint, never resend it. */
|
|
104
106
|
"image_monochrome",
|
|
105
|
-
/** Image
|
|
107
|
+
/** Image is too small; follow ProblemDetail.hint, never resend it. */
|
|
106
108
|
"image_too_small",
|
|
107
|
-
/** Image
|
|
109
|
+
/** Image is a wide banner; follow ProblemDetail.hint, never resend it. */
|
|
108
110
|
"image_wrong_aspect",
|
|
109
111
|
/** Image upload was classified as a monogram (single letter / generated initial) when a real photograph or logo was required. Agent action: supply a non-monogram image or set permitMonogram=true on the read endpoint if a monogram is acceptable for the use case. */
|
|
110
112
|
"image_monogram",
|
|
@@ -120,7 +122,7 @@ export const ProblemDetailSchema = z.object({
|
|
|
120
122
|
"logo_first_party_missing",
|
|
121
123
|
/** Dead or parked logo source. Supply a live first-party source; do not retry. */
|
|
122
124
|
"logo_source_dead",
|
|
123
|
-
/** Image
|
|
125
|
+
/** Image is a photo, not a mark; follow ProblemDetail.hint, never resend it. */
|
|
124
126
|
"image_photographic",
|
|
125
127
|
/** An outbound fetch from an external target site (robots.txt, sitemap, page, or logo or thumbnail image) failed after retries or with the breaker open. Agent action: the failure belongs to the target; crawl jobs may fall back to rendered extraction; do not retry immediately. */
|
|
126
128
|
"web_crawl_fetch_failed",
|
|
@@ -44,6 +44,8 @@ declare const ProseViolationSchemaDefinition: z.ZodObject<{
|
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
reason: z.ZodString;
|
|
47
|
+
supportedWording: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
unsupportedSpan: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
47
49
|
}, z.core.$strip>;
|
|
48
50
|
type ProseViolationDefinition = z.infer<typeof ProseViolationSchemaDefinition>;
|
|
49
51
|
export interface ProseViolationSchemaInput extends z.input<typeof ProseViolationSchemaDefinition> {
|
package/dist/prose/violation.js
CHANGED
|
@@ -10,6 +10,10 @@ const ProseViolationSchemaDefinition = z.object({
|
|
|
10
10
|
problem: ProseProblemSchema,
|
|
11
11
|
/** Why the passage was rejected and how to fix it. */
|
|
12
12
|
reason: z.string(),
|
|
13
|
+
/** Present only on a writerBrief grounding refusal with unsupportedSpan: the passage without those clauses, which its cited quotes support. Absent when that remaining wording is still refused. */
|
|
14
|
+
supportedWording: z.string().nullish(),
|
|
15
|
+
/** Present only on a writerBrief grounding refusal of a statement with several clauses: the clauses its cited quotes do not support. Absent when every clause or none is refused. */
|
|
16
|
+
unsupportedSpan: z.array(z.string()).nullish(),
|
|
13
17
|
});
|
|
14
18
|
/**
|
|
15
19
|
* One rejected passage and one problem it shows; a passage with several problems appears once per problem.
|