@modality-counter/core 1.4.4 → 1.4.6
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type CounterItem, type CounterTuple } from "./util_counter_data";
|
|
2
2
|
import type { ReferenceOptions } from "./get_counter_reference";
|
|
3
|
-
import type
|
|
3
|
+
import { type HeroMethodType } from "./schemas/counter_schemas";
|
|
4
4
|
export declare function executeMethod(props: HeroMethodType, allMethodItems: CounterItem[], options?: ReferenceOptions): Promise<CounterTuple>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,10 +8,18 @@ export declare const partyModeSchema: z.ZodObject<{
|
|
|
8
8
|
deployedHeroes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export type PartyMode = z.infer<typeof partyModeSchema>;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* HACK: some MCP clients (e.g. certain Gemini tool runtimes) flatten a nested
|
|
13
|
+
* `params` object into dotted top-level keys on the wire — sending
|
|
14
|
+
* `{ "params.reference": "x" }` instead of `{ params: { reference: "x" } }`.
|
|
15
|
+
* Fold any `params.*` keys back into a nested `params` object so downstream
|
|
16
|
+
* code (and Zod's object-strip) sees the intended shape instead of dropping it.
|
|
17
|
+
*/
|
|
18
|
+
export declare function liftDottedParams(input: unknown): unknown;
|
|
19
|
+
export declare const heroMethodSchema: z.ZodPreprocess<z.ZodObject<{
|
|
12
20
|
method: z.ZodString;
|
|
13
21
|
params: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
14
|
-
}, z.core.$strip
|
|
22
|
+
}, z.core.$strip>>;
|
|
15
23
|
export type HeroMethodType = z.infer<typeof heroMethodSchema>;
|
|
16
24
|
export declare const heroDeploySchema: z.ZodObject<{
|
|
17
25
|
callSign: z.ZodString;
|
package/package.json
CHANGED