@modality-counter/core 0.12.1 → 1.0.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.
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,18 @@
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
+ */
1
16
  /**
2
17
  * Setup template validation tests - can be imported and reused in other projects
3
18
  */
@@ -0,0 +1,3 @@
1
+ import { type CounterItem, type CounterTuple } from "./util_counter_data";
2
+ import type { HeroMethodType } from "./schemas/counter_schemas";
3
+ export declare function executeMethod(props: HeroMethodType, allMethodItems: CounterItem[]): Promise<CounterTuple>;
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * Counter Method CLI
4
+ *
5
+ * Usage:
6
+ * bun src/tools/execute-method.ts '<method>' ['<params-json>']
7
+ *
8
+ * Examples:
9
+ * bun src/tools/execute-method.ts '*assemble'
10
+ * bun src/tools/execute-method.ts '*code' '{"input":"fix login bug"}'
11
+ */
12
+ export {};
@@ -33,7 +33,7 @@ export interface CounterInstructions {
33
33
  }
34
34
  /** Execution result tuple: supports 0, 1, or 2 elements */
35
35
  export type CounterTuple = [] | [CounterInstructions] | [CounterInstructions, Array<MethodMetadata | ReferenceMetadata>];
36
- interface CounterItem {
36
+ export interface CounterItem {
37
37
  callSign: string;
38
38
  type: ResourceType;
39
39
  id: string;
@@ -43,6 +43,13 @@ interface CounterItem {
43
43
  folderPath?: string;
44
44
  category?: string;
45
45
  }
46
+ export declare const getNormalizedName: (name: string, counterType?: string) => {
47
+ resolveParams: Record<string, any> | undefined;
48
+ resolveName: string;
49
+ } | {
50
+ resolveName: string;
51
+ resolveParams?: undefined;
52
+ };
46
53
  /**
47
54
  * Get content by ID - TypeScript Promise Detection Solution
48
55
  */
@@ -57,4 +64,3 @@ export declare function getAllCounterItems(types?: ResourceType[], baseDir?: str
57
64
  * Find all template files - convenience wrapper around recursiveScanForFiles
58
65
  */
59
66
  export declare function findAllTemplateFiles(baseDir: string): ScannedFile[];
60
- export {};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.12.1",
2
+ "version": "1.0.0",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",