@modality-counter/core 0.1.0 → 0.1.3

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.
@@ -19,7 +19,7 @@ interface CounterContent {
19
19
  scriptSuccess?: boolean;
20
20
  partyMode?: string;
21
21
  }
22
- export declare function getCounterContent(items: CounterItem[], callSign: string, params?: any, executeScript?: boolean): Promise<CounterContent>;
22
+ export declare function getCounterContent(items: CounterItem[], callSign: string, params?: any, executeScript?: boolean): Promise<CounterContent | false>;
23
23
  export declare function getAllCounterItems(types?: ResourceType[], baseDir?: string): Promise<CounterItem[]>;
24
24
  /**
25
25
  * Generic recursive file finder that scans directories for files matching criteria
@@ -3,10 +3,7 @@ import React from "react";
3
3
  * Parse YAML frontmatter from markdown/mdx content
4
4
  * Returns object with parsed frontmatter data and remaining content
5
5
  */
6
- export declare function parseFrontmatter(content: string): {
7
- data: Record<string, unknown>;
8
- content: string;
9
- };
6
+ export declare function parseFrontmatter(content: string): Record<string, unknown>;
10
7
  export declare const readMdx: (Component: React.ReactElement) => string;
11
8
  export declare const importMdx: (filePath: string) => Promise<any>;
12
9
  export declare const getDirName: () => string;
@@ -1,9 +1,10 @@
1
+ import * as React from "react";
1
2
  interface CodeBlock {
2
3
  language: string;
3
4
  code: string;
4
5
  }
5
- export declare const readMpxPrompt: (promptPath: string, params?: any) => Promise<string>;
6
- export declare const readMpxYaml: (promptPath: string, params?: any) => Promise<any>;
6
+ export declare const readMpxPrompt: (Prompt: string | React.ComponentType<any>, params?: any) => Promise<string>;
7
+ export declare const readMpxYaml: (Prompt: string | React.ComponentType<any>, params?: any) => Promise<any>;
7
8
  /**
8
9
  * Read a prompt file from the prompts directory
9
10
  */
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.1.3",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",
@@ -19,18 +19,17 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@mdx-js/esbuild": "^3.1.1",
22
- "hono": "^4.11.3",
23
22
  "modality-ai": "^0.2.1",
24
23
  "modality-kit": "^0.15.3",
25
24
  "modality-safe": "^0.3.3",
26
25
  "node-html-markdown": "^2.0.0",
27
26
  "remark-frontmatter": "^5.0.0",
28
27
  "reshow-build": "^1.3.2",
29
- "ucfirst-js": "^0.2.0",
30
- "valibot": "^1.2.0",
31
- "xdm": "^3.4.0"
28
+ "ucfirst-js": "^0.2.0"
32
29
  },
33
30
  "devDependencies": {
31
+ "xdm": "^3.4.0",
32
+ "valibot": "^1.2.0",
34
33
  "@types/bun": "^1.3.5",
35
34
  "@types/react": "^19.2.7",
36
35
  "@types/react-dom": "^19.2.3",