@modality-counter/core 0.11.5 → 0.12.1

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.
@@ -1,18 +1,3 @@
1
- /**
2
- * Zod-Based Template Validator with Enhanced YAML Validation
3
- *
4
- * This test suite uses TypeScript-first Zod schemas for template validation,
5
- * ensuring type-safe validation with superior error messages.
6
- * Performance optimized with caching to prevent repeated file I/O.
7
- *
8
- * Features:
9
- * - Type-safe validation with automatic TypeScript types
10
- * - Runtime validation with detailed error paths
11
- * - Comprehensive template structure validation
12
- * - Quality metrics validation with precise scoring
13
- * - EXPLICIT YAML format validation - any invalid YAML will cause test failure
14
- * - Enhanced error handling for both YAML syntax and template structure errors
15
- */
16
1
  /**
17
2
  * Setup template validation tests - can be imported and reused in other projects
18
3
  */
@@ -10,7 +10,7 @@ export declare const partyModeSchema: z.ZodObject<{
10
10
  export type PartyMode = z.infer<typeof partyModeSchema>;
11
11
  export declare const heroMethodSchema: z.ZodObject<{
12
12
  method: z.ZodString;
13
- params: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
13
+ params: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodAny>>>;
14
14
  }, z.core.$strip>;
15
15
  export type HeroMethodType = z.infer<typeof heroMethodSchema>;
16
16
  export declare const heroDeploySchema: z.ZodObject<{
@@ -58,7 +58,7 @@ declare const TemplateContentSchema: z.ZodObject<{
58
58
  export declare const TemplateFileSchema: z.ZodObject<{
59
59
  name: z.ZodString;
60
60
  description: z.ZodString;
61
- }, z.core.$catchall<z.ZodObject<{
61
+ }, z.core.$catchall<z.ZodUnion<readonly [z.ZodObject<{
62
62
  template: z.ZodObject<{
63
63
  output: z.ZodOptional<z.ZodObject<{
64
64
  format: z.ZodOptional<z.ZodString>;
@@ -85,7 +85,7 @@ export declare const TemplateFileSchema: z.ZodObject<{
85
85
  type: z.ZodOptional<z.ZodString>;
86
86
  focus: z.ZodOptional<z.ZodString>;
87
87
  }, z.core.$catchall<z.ZodUnknown>>>;
88
- }, z.core.$strict>>>;
88
+ }, z.core.$strict>, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodUnknown>]>>>;
89
89
  /**
90
90
  * TYPE EXPORTS FOR TYPESCRIPT INTEGRATION
91
91
  *
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.5",
2
+ "version": "0.12.1",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",
@@ -14,27 +14,25 @@
14
14
  "author": "Hill <hill@kimo.com>",
15
15
  "license": "ISC",
16
16
  "peerDependencies": {
17
- "modality-mcp-kit": "^1.6.2",
18
- "react": "^19.2.5",
19
- "react-dom": "^19.2.5"
17
+ "modality-mcp-kit": "^1.7.0",
18
+ "react": "^19.2.6",
19
+ "react-dom": "^19.2.6"
20
20
  },
21
21
  "dependencies": {
22
22
  "@mdx-js/esbuild": "^3.1.1",
23
23
  "modality-ai": "^0.6.0",
24
24
  "modality-kit": "^0.17.8",
25
- "modality-safe": "^0.3.3",
25
+ "modality-safe": "^0.4.1",
26
26
  "node-html-markdown": "^2.0.0",
27
27
  "remark-frontmatter": "^5.0.0",
28
28
  "reshow-build": "^1.3.2",
29
29
  "ucfirst-js": "^0.2.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@types/bun": "^1.3.13",
33
32
  "@types/react": "^19.2.14",
34
33
  "@types/react-dom": "^19.2.3",
35
- "modality-bun-kit": "^1.3.13",
36
- "typescript": "^6.0.3",
37
- "valibot": "^1.3.1",
34
+ "modality-bun-kit": "^1.3.14",
35
+ "valibot": "^1.4.0",
38
36
  "xdm": "^3.4.0"
39
37
  },
40
38
  "exports": {