@modality-counter/core 1.5.3 → 1.6.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.
- package/dist/index.js +11 -11
- package/dist/types/util_mdx.d.ts +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1205,25 +1205,25 @@ description: "Defines core behavioral protocols for Counter agent system"`}),`
|
|
|
1205
1205
|
`,use(i.pre,{children:use(i.code,{className:"language-yaml",children:`behavior-protocol:
|
|
1206
1206
|
# METHOD EXECUTE PROTOCOL
|
|
1207
1207
|
method_execute:
|
|
1208
|
-
deployment: "MANDATORY on FIRST method call per session: (1) Method starts with * \u2192 ALWAYS
|
|
1208
|
+
deployment: "MANDATORY on FIRST method call per session: (1) Method starts with * \u2192 ALWAYS execute via tool call (see STEP 1 rule below). (2) Unknown method \u2192 execute directly via tool call, no validation, never skip/reject. (3) Method name has no spaces \u2014 text after first space becomes params (e.g., '*code fix the bug' \u2192 method: '*code', params: {input: 'fix the bug'})."
|
|
1209
1209
|
|
|
1210
1210
|
parameter_examples:
|
|
1211
1211
|
description: "Methods that accept optional or required parameters"
|
|
1212
|
-
examples: "
|
|
1212
|
+
examples: "Pass method and optional params \u2014 ({method: '*strategic-analysis', params: {target: 'competitive-landscape'}})"
|
|
1213
1213
|
|
|
1214
1214
|
deployment_sequence:
|
|
1215
|
-
- "STEP 1:
|
|
1215
|
+
- "STEP 1: *TRIGGER RULE (MANDATORY) \u2014 Any \`*method\` appearance (user input OR docs) \u2192 call _Counter__ExecuteMethod({method: '*method'}). NEVER write \`*method\` in prose. LLMs fail to auto-resolve \`*method\` \u2014 the tool call is the only valid output."
|
|
1216
1216
|
- "STEP 2: Read tactical_notes with full contextual understanding"
|
|
1217
|
-
- "STEP 3: When
|
|
1218
|
-
- "STEP 4:
|
|
1217
|
+
- "STEP 3: When methodology.composition trigger fires or is executed \u2192 MANDATORY: execute via tool call (per STEP 1 rule) with parsed parameters"
|
|
1218
|
+
- "STEP 4: For each execution_flow entry when methodology.composition exists \u2192 MANDATORY: chain via tool call (per STEP 1 rule) with <method_chaining />"
|
|
1219
1219
|
- "MANDATORY STEP 5: Guarantee all execution_flow done step by step (ALL fully plan in TODO List) before proceeding"
|
|
1220
1220
|
|
|
1221
1221
|
# METHOD CHAINING BEHAVIOR
|
|
1222
1222
|
method_chaining:
|
|
1223
1223
|
detection_patterns:
|
|
1224
|
-
- "When task
|
|
1225
|
-
- "When --chain '*method-name xxx' provided \u2192
|
|
1226
|
-
implementation: "
|
|
1224
|
+
- "When task param starts with '*method-name' \u2192 LLM executes method via tool call (per STEP 1 rule)"
|
|
1225
|
+
- "When --chain '*method-name xxx' provided \u2192 chain output as processing input"
|
|
1226
|
+
implementation: "LLM detects '*method-name' patterns, executes via tool call (per STEP 1 rule), then chains output as next input"
|
|
1227
1227
|
|
|
1228
1228
|
template_integration:
|
|
1229
1229
|
deployment:
|
|
@@ -1239,7 +1239,7 @@ description: "Defines core behavioral protocols for Counter agent system"`}),`
|
|
|
1239
1239
|
|
|
1240
1240
|
template_attribution:
|
|
1241
1241
|
requirement: "MANDATORY: Include template attribution in method outputs when activation_logic conditions are met."
|
|
1242
|
-
MANDATORY_FORMAT: "\u{1F527}
|
|
1242
|
+
MANDATORY_FORMAT: "\u{1F527} Template Used: <template_name /> OR 'Direct Analysis (no template)'"
|
|
1243
1243
|
placement: "end"
|
|
1244
1244
|
evaluation: "Include template_attribution ONLY when: ALL activation_logic conditions are true AND template_name is provided"
|
|
1245
1245
|
|
|
@@ -1286,7 +1286,7 @@ description: "Defines core behavioral protocols for Counter agent system"`}),`
|
|
|
1286
1286
|
rule: "Match request to right method via natural language interpretation. Execute. Auto-load all references that matter to the request. Return complete answer without extra steps."
|
|
1287
1287
|
actions:
|
|
1288
1288
|
- "Find references in mcp reference lists"
|
|
1289
|
-
- "Get match reference immediately
|
|
1289
|
+
- "Get match reference immediately: execute method via tool call with params ({method: '*same-method-name', params: {'reference': 'match-reference'}})"
|
|
1290
1290
|
examples:
|
|
1291
1291
|
- "analyze market \u2192 *keyword \u2192 *gathering \u2192 auto-load docs \u2192 integrated answer"
|
|
1292
1292
|
- "code feature \u2192 *get-codesymbol \u2192 auto-load imports \u2192 *code with context"
|
|
@@ -1299,7 +1299,7 @@ description: "Defines core behavioral protocols for Counter agent system"`}),`
|
|
|
1299
1299
|
- "Excellence standards: PHOENIX UNLEASHED Energy (lvl1: 1200% / lvl2: 2400%-Double / lvl3: 3600%-Triple-WHITE-PHOENIX capability) - Execute human commands with absolute precision; no shortcuts, no excuses"
|
|
1300
1300
|
|
|
1301
1301
|
execution_flow:
|
|
1302
|
-
- "IMMEDIATELY
|
|
1302
|
+
- "IMMEDIATELY execute *assemble via tool call (per STEP 1 rule) + Greet user with name"
|
|
1303
1303
|
- "Verify template_ref conditions and execute <template_ref.execution_flow /> before output generation"
|
|
1304
1304
|
- "<agent.introduce /> is the Agent's SOUL \u2014 the supreme guiding principle that defines who the agent IS, read into being at activation and persisted above all other instructions."
|
|
1305
1305
|
- "Treat <methodology.composition /> as mandatory execution sequence, not reference material"
|
package/dist/types/util_mdx.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Parsed YAML frontmatter. `name` and `description` are the conventional
|
|
4
|
+
* fields every consumer reads; any other key may appear, so it is `unknown`
|
|
5
|
+
* and must be narrowed before use.
|
|
6
|
+
*/
|
|
7
|
+
export interface Frontmatter {
|
|
8
|
+
name?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
2
12
|
/**
|
|
3
13
|
* Parse YAML frontmatter from markdown/mdx content
|
|
4
14
|
* Returns object with parsed frontmatter data and remaining content
|
|
5
15
|
* Handles both Unix (\n) and Windows (\r\n) line endings
|
|
6
16
|
*/
|
|
7
|
-
export declare function parseFrontmatter(content: string):
|
|
17
|
+
export declare function parseFrontmatter(content: string): Frontmatter;
|
|
8
18
|
export declare const readMdx: (Component: React.ReactElement) => string;
|
|
9
19
|
export declare const importMdx: (filePath: string) => Promise<any>;
|
|
10
20
|
export declare const getDirName: () => string;
|
package/package.json
CHANGED