@manehorizons/cadence-types 1.1.1 → 1.5.0

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/anomaly.d.ts CHANGED
@@ -8,35 +8,54 @@ import { z } from 'zod';
8
8
  * (auto + standard×{standard,complex} cells). Informational only —
9
9
  * never block the emitting command.
10
10
  */
11
- export declare const AnomalyTypeZ: z.ZodEnum<["ac-blocked", "ac-needs-context", "coverage-bypassed", "files-outside-boundary", "verifier-failure", "force-used", "coherence-warn", "loop-violation", "per-task-fail", "code-review-high", "skill-audit-miss", "plan-review-unconverged", "spec-review-unconverged", "code-review-unconverged"]>;
11
+ export declare const AnomalyTypeZ: z.ZodEnum<{
12
+ "ac-blocked": "ac-blocked";
13
+ "ac-needs-context": "ac-needs-context";
14
+ "coverage-bypassed": "coverage-bypassed";
15
+ "files-outside-boundary": "files-outside-boundary";
16
+ "verifier-failure": "verifier-failure";
17
+ "force-used": "force-used";
18
+ "coherence-warn": "coherence-warn";
19
+ "loop-violation": "loop-violation";
20
+ "per-task-fail": "per-task-fail";
21
+ "code-review-high": "code-review-high";
22
+ "skill-audit-miss": "skill-audit-miss";
23
+ "plan-review-unconverged": "plan-review-unconverged";
24
+ "spec-review-unconverged": "spec-review-unconverged";
25
+ "code-review-unconverged": "code-review-unconverged";
26
+ }>;
12
27
  export type AnomalyType = z.infer<typeof AnomalyTypeZ>;
13
- export declare const AnomalySeverityZ: z.ZodEnum<["info", "warn", "error"]>;
28
+ export declare const AnomalySeverityZ: z.ZodEnum<{
29
+ info: "info";
30
+ warn: "warn";
31
+ error: "error";
32
+ }>;
14
33
  export type AnomalySeverity = z.infer<typeof AnomalySeverityZ>;
15
34
  export declare const AnomalyEventZ: z.ZodObject<{
16
- type: z.ZodEnum<["ac-blocked", "ac-needs-context", "coverage-bypassed", "files-outside-boundary", "verifier-failure", "force-used", "coherence-warn", "loop-violation", "per-task-fail", "code-review-high", "skill-audit-miss", "plan-review-unconverged", "spec-review-unconverged", "code-review-unconverged"]>;
17
- severity: z.ZodEnum<["info", "warn", "error"]>;
18
- /** One-line human-readable description. */
35
+ type: z.ZodEnum<{
36
+ "ac-blocked": "ac-blocked";
37
+ "ac-needs-context": "ac-needs-context";
38
+ "coverage-bypassed": "coverage-bypassed";
39
+ "files-outside-boundary": "files-outside-boundary";
40
+ "verifier-failure": "verifier-failure";
41
+ "force-used": "force-used";
42
+ "coherence-warn": "coherence-warn";
43
+ "loop-violation": "loop-violation";
44
+ "per-task-fail": "per-task-fail";
45
+ "code-review-high": "code-review-high";
46
+ "skill-audit-miss": "skill-audit-miss";
47
+ "plan-review-unconverged": "plan-review-unconverged";
48
+ "spec-review-unconverged": "spec-review-unconverged";
49
+ "code-review-unconverged": "code-review-unconverged";
50
+ }>;
51
+ severity: z.ZodEnum<{
52
+ info: "info";
53
+ warn: "warn";
54
+ error: "error";
55
+ }>;
19
56
  message: z.ZodString;
20
- /** Type-specific free-form payload. */
21
57
  context: z.ZodRecord<z.ZodString, z.ZodUnknown>;
22
- /**
23
- * Wall-clock when the event was constructed. ISO8601 with offset
24
- * (e.g., `"2026-05-14T22:30:00.000Z"`). Emitters stamp via
25
- * `new Date().toISOString()`. Phase 17.3.
26
- */
27
58
  ts: z.ZodString;
28
- }, "strip", z.ZodTypeAny, {
29
- message: string;
30
- type: "ac-blocked" | "ac-needs-context" | "coverage-bypassed" | "files-outside-boundary" | "verifier-failure" | "force-used" | "coherence-warn" | "loop-violation" | "per-task-fail" | "code-review-high" | "skill-audit-miss" | "plan-review-unconverged" | "spec-review-unconverged" | "code-review-unconverged";
31
- severity: "info" | "warn" | "error";
32
- context: Record<string, unknown>;
33
- ts: string;
34
- }, {
35
- message: string;
36
- type: "ac-blocked" | "ac-needs-context" | "coverage-bypassed" | "files-outside-boundary" | "verifier-failure" | "force-used" | "coherence-warn" | "loop-violation" | "per-task-fail" | "code-review-high" | "skill-audit-miss" | "plan-review-unconverged" | "spec-review-unconverged" | "code-review-unconverged";
37
- severity: "info" | "warn" | "error";
38
- context: Record<string, unknown>;
39
- ts: string;
40
- }>;
59
+ }, z.core.$strip>;
41
60
  export type AnomalyEvent = z.infer<typeof AnomalyEventZ>;
42
61
  //# sourceMappingURL=anomaly.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"anomaly.d.ts","sourceRoot":"","sources":["../src/anomaly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,8SAevB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD,eAAO,MAAM,gBAAgB,sCAAoC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa;;;IAGxB,2CAA2C;;IAE3C,uCAAuC;;IAEvC;;;;OAIG;;;;;;;;;;;;;;EAEH,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"anomaly.d.ts","sourceRoot":"","sources":["../src/anomaly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;EAevB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD,eAAO,MAAM,gBAAgB;;;;EAAoC,CAAC;AAClE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;iBAaxB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
package/dist/anomaly.js CHANGED
@@ -31,7 +31,7 @@ export const AnomalyEventZ = z.object({
31
31
  /** One-line human-readable description. */
32
32
  message: z.string(),
33
33
  /** Type-specific free-form payload. */
34
- context: z.record(z.unknown()),
34
+ context: z.record(z.string(), z.unknown()),
35
35
  /**
36
36
  * Wall-clock when the event was constructed. ISO8601 with offset
37
37
  * (e.g., `"2026-05-14T22:30:00.000Z"`). Emitters stamp via
@@ -1 +1 @@
1
- {"version":3,"file":"anomaly.js","sourceRoot":"","sources":["../src/anomaly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC;IACjC,YAAY;IACZ,kBAAkB;IAClB,mBAAmB;IACnB,wBAAwB;IACxB,kBAAkB;IAClB,YAAY;IACZ,gBAAgB;IAChB,gBAAgB;IAChB,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;CAC1B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAGlE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,gBAAgB;IAC1B,2CAA2C;IAC3C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,uCAAuC;IACvC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9B;;;;OAIG;IACH,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CAC1C,CA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