@modality-counter/core 0.12.2 → 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 {};
@@ -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.2",
2
+ "version": "1.0.0",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",