@modality-counter/core 1.5.1 → 1.5.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.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Provides bidirectional mapping for alias resolution.
|
|
9
9
|
*/
|
|
10
10
|
declare const METHOD_TO_ALIASES: {
|
|
11
|
-
readonly code: readonly ["change", "modify", "develop", "update", "implement", "add", "
|
|
11
|
+
readonly code: readonly ["change", "modify", "develop", "update", "implement", "add", "fix", "improve"];
|
|
12
12
|
readonly "code-verify": readonly ["check", "code-test"];
|
|
13
13
|
readonly "fix-bun-test": readonly ["bun-test"];
|
|
14
14
|
readonly "fresh-eyes-review": readonly ["review"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -30,6 +30,24 @@ 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
|
+
/**
|
|
34
|
+
* DO NOT REMOVE — LLM AGENT INSTRUCTION.
|
|
35
|
+
*
|
|
36
|
+
* Normalizes kebab-case method param keys to camelCase so CLI-style flags
|
|
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.
|
|
49
|
+
*/
|
|
50
|
+
export declare function camelCaseParamKeys(input: unknown): unknown;
|
|
33
51
|
export declare const heroMethodSchema: z.ZodPreprocess<z.ZodObject<{
|
|
34
52
|
method: z.ZodString;
|
|
35
53
|
params: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
package/package.json
CHANGED