@modality-counter/core 2.9.3 → 2.9.4
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.
- package/dist/index.js +317 -317
- package/dist/mdx.js +131 -131
- package/dist/testing.js +253 -253
- package/dist/types/schemas/__tests__/ParseInputFlags.test.d.ts +1 -0
- package/dist/types/schemas/counter_schemas.d.ts +5 -16
- package/package.json +5 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -30,24 +30,13 @@ export type PartyMode = z.infer<typeof partyModeSchema>;
|
|
|
30
30
|
* any client that sends flattened wire format.
|
|
31
31
|
*/
|
|
32
32
|
export declare function liftDottedParams(input: unknown): unknown;
|
|
33
|
+
export declare function camelCaseParamKeys(input: unknown): unknown;
|
|
33
34
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* (e.g. `--step-to`) bind to a method's camelCase Zod schema key (`stepTo`).
|
|
38
|
-
* Method inputSchemas declare camelCase keys and Zod strips unknown keys under
|
|
39
|
-
* its default mode, so without this an incoming `step-to` key reaches the
|
|
40
|
-
* method's schema, is dropped, and the parameter is silently lost.
|
|
41
|
-
*
|
|
42
|
-
* Scope & safety:
|
|
43
|
-
* - Hyphens only — snake_case keys (e.g. `chunk_index`) are left untouched so
|
|
44
|
-
* methods that intentionally use underscores keep binding.
|
|
45
|
-
* - A leading `--`/`-` from a literal flag token is stripped first.
|
|
46
|
-
* - Collision-safe: if the camelCase key already exists on the object, the
|
|
47
|
-
* kebab variant is dropped rather than overwriting it.
|
|
48
|
-
* - Top-level params keys only; values are never recursed into.
|
|
35
|
+
* Parse CLI-style flag tokens carried in a params.input string
|
|
36
|
+
* (e.g. "--deep --fix") into boolean/valued param keys
|
|
37
|
+
* (e.g. { deep: true, fix: true }). Non-flag tokens are retained in `input`.
|
|
49
38
|
*/
|
|
50
|
-
export declare function
|
|
39
|
+
export declare function parseInputFlags(input: unknown): unknown;
|
|
51
40
|
export declare const heroMethodSchema: z.ZodPreprocess<z.ZodObject<{
|
|
52
41
|
method: z.ZodString;
|
|
53
42
|
params: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodAny>, unknown>>;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.9.
|
|
2
|
+
"version": "2.9.4",
|
|
3
3
|
"name": "@modality-counter/core",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"modality-mcp-kit": "^2.1.0",
|
|
18
|
-
"react": "^19.3.
|
|
19
|
-
"react-dom": "^19.3.
|
|
18
|
+
"react": "^19.3.1",
|
|
19
|
+
"react-dom": "^19.3.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@mdx-js/esbuild": "^3.1.1",
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
"node-html-markdown": "^2.0.0",
|
|
28
28
|
"remark-frontmatter": "^5.0.0",
|
|
29
29
|
"reshow-build": "^1.19.2",
|
|
30
|
+
"set-object-value": "^0.3.0",
|
|
30
31
|
"ucfirst-js": "^0.2.0",
|
|
31
32
|
"yaml": "^2.9.1"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@types/react": "^19.3.0",
|
|
35
36
|
"@types/react-dom": "^19.3.0",
|
|
36
|
-
"modality-bun-kit": "^1.4.
|
|
37
|
+
"modality-bun-kit": "^1.4.4",
|
|
37
38
|
"xdm": "3.4.0"
|
|
38
39
|
},
|
|
39
40
|
"exports": {
|