@modality-counter/core 0.6.14 → 0.7.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.
@@ -7,7 +7,7 @@ export { DEPLOY_METHOD_TOOL } from "./confs/const.js";
7
7
  export { DeepWiki } from "./util_scripts/DeepWiki";
8
8
  export { recursiveScanForFiles, type ScannedFile, } from "./util_scripts/recursiveScanForFiles";
9
9
  export { getPagination, needsChunking, getChunk, } from "./util_scripts/pagination";
10
- export { getCounterContent, getAllCounterItems, type CounterContent, } from "./util_counter_data";
10
+ export { getCounterContent, getAllCounterItems, type CounterContent, type ExecutionResultTuple, } from "./util_counter_data";
11
11
  export { setupMcpCounter } from "./mcp_counter";
12
12
  export { validateMethodFile } from "./schemas/methodology-validation.js";
13
13
  export { validateTemplateFile } from "./schemas/template-validation.js";
@@ -1,5 +1,37 @@
1
1
  import { type ResourceType } from "./schemas/counter_schemas";
2
2
  import { type ScannedFile } from "./util_scripts/recursiveScanForFiles";
3
+ /**
4
+ * Extract all CounterMethod references from the references directory
5
+ * Returns object with filename as key and reference data as value
6
+ * When references array is provided, only those files are included with full content
7
+ */
8
+ export type MethodReference = Record<string, {
9
+ description: string;
10
+ name?: string;
11
+ content?: string;
12
+ }>;
13
+ /**
14
+ * Method execution response types
15
+ */
16
+ /** Metadata about method parameters and content */
17
+ export interface MethodMetadata {
18
+ methodParams?: Record<string, any>;
19
+ methodContent?: Record<string, any>;
20
+ }
21
+ /** Reference and tactical notes metadata */
22
+ export interface ReferenceMetadata {
23
+ references?: string[];
24
+ tactical_notes?: Record<string, any>;
25
+ }
26
+ /** Instructions object containing execution messages */
27
+ export interface ExecutionInstructions {
28
+ instructions: Array<{
29
+ message: string;
30
+ currentTimeAtUTC?: string;
31
+ } | Record<string, any>>;
32
+ }
33
+ /** Execution result tuple: supports 0, 1, or 2 elements */
34
+ export type ExecutionResultTuple = [] | [ExecutionInstructions] | [ExecutionInstructions, Array<MethodMetadata | ReferenceMetadata>];
3
35
  interface CounterItem {
4
36
  callSign: string;
5
37
  type: ResourceType;
@@ -15,8 +47,7 @@ interface CounterItem {
15
47
  */
16
48
  export interface CounterContent {
17
49
  promptData: Record<string, any>;
18
- scriptResult?: any;
19
- scriptSuccess?: boolean;
50
+ executeFunction?(props: any, willReturn?: ExecutionResultTuple): any;
20
51
  partyMode?: string;
21
52
  }
22
53
  export declare function getCounterContent(items: CounterItem[], callSign: string, params?: any, executeScript?: boolean): Promise<CounterContent | false>;
@@ -25,14 +56,4 @@ export declare function getAllCounterItems(types?: ResourceType[], baseDir?: str
25
56
  * Find all template files - convenience wrapper around recursiveScanForFiles
26
57
  */
27
58
  export declare function findAllTemplateFiles(baseDir: string): ScannedFile[];
28
- /**
29
- * Extract all CounterMethod references from the references directory
30
- * Returns object with filename as key and reference data as value
31
- * When references array is provided, only those files are included with full content
32
- */
33
- export type MethodReference = Record<string, {
34
- description: string;
35
- name?: string;
36
- content?: string;
37
- }>;
38
59
  export {};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.14",
2
+ "version": "0.7.0",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",