@modality-counter/core 0.6.7 → 0.6.9
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 +9 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -619,8 +619,8 @@ description: "Behavior Protocol for Multi-Hero Party Mode Collaborative Discussi
|
|
|
619
619
|
- 'add [hero] to active [deployed-hero]' \u2192 recommendedHeroes:['[hero]']
|
|
620
620
|
- deployedHeroes:['[deployed-hero]']
|
|
621
621
|
|
|
622
|
-
Available heroes: ${await sRs()}`}var lRs=async(e,t,r)=>{let n=await c0(["persona"],e),i=r&&r.length>0?n.filter(u=>!r.some(c=>u.name?.trim().toLowerCase()===c.toLowerCase()||u.callSign===c.toLowerCase())):n,o=[...i].sort(()=>Math.random()-.5),a=[];t&&t.length>0&&(a=i.filter(c=>t.some(l=>c.name?.trim().toLowerCase()===l.toLowerCase()||c.callSign===l.toLowerCase())));let s=r?r.length:0;if(a.length<Qco){let u=o.filter(l=>!a.some(f=>f.callSign===l.callSign)),c=Qco-a.length-s;a=[...a,...u.slice(0,c)]}return{availableHeroes:i,selectedHeroes:a}},Xco=(e,t="method")=>{let r=(e.startsWith("*")?e.slice(1):e).trim().toLowerCase();if(t==="method"){let n=uyr(r),i=n?.parameters,o=`${t}-${n?.method||r}`;return{resolveParams:i,resolveName:o}}else return{resolveName:r.startsWith(`${t}-`)?r:`${t}-${r}`}},fRs=async(e,t)=>{let r=await c0(["method"],e),n={_Counter:{description:"EMERGENCY ALERT: Assemble all available agents! Get the complete roster of heroes, mission protocols, and tactical operations ready for deployment. By default returns heroes only - use types parameter for methods/workflows.",inputSchema:cgi,execute:async({types:i})=>{try{let o=await c0(i,e),a=i.reduce((c,l)=>(c[l]=o.filter(f=>f.type===l).map(f=>l==="persona"?{id:f.id,name:f.name}:f.id),c),{}),u=`ASSEMBLED! ${Object.entries(a).filter(([c,l])=>l.length>0).map(([c,l])=>`${l.length} ${c}${l.length!==1?"s":""}`).join(", ")} ready for deployment.`;return HV({message:u},{requestedTypes:i,totalCount:o.length,itemsByType:a})}catch(o){return kse(o,"counter_assemble")}}},_Counter__Deploy:{description:`Deploy a specific hero persona
|
|
623
|
-
${await uRs(e)}
|
|
622
|
+
Available heroes: ${await sRs()}`}var lRs=async(e,t,r)=>{let n=await c0(["persona"],e),i=r&&r.length>0?n.filter(u=>!r.some(c=>u.name?.trim().toLowerCase()===c.toLowerCase()||u.callSign===c.toLowerCase())):n,o=[...i].sort(()=>Math.random()-.5),a=[];t&&t.length>0&&(a=i.filter(c=>t.some(l=>c.name?.trim().toLowerCase()===l.toLowerCase()||c.callSign===l.toLowerCase())));let s=r?r.length:0;if(a.length<Qco){let u=o.filter(l=>!a.some(f=>f.callSign===l.callSign)),c=Qco-a.length-s;a=[...a,...u.slice(0,c)]}return{availableHeroes:i,selectedHeroes:a}},Xco=(e,t="method")=>{let r=(e.startsWith("*")?e.slice(1):e).trim().toLowerCase();if(t==="method"){let n=uyr(r),i=n?.parameters,o=`${t}-${n?.method||r}`;return{resolveParams:i,resolveName:o}}else return{resolveName:r.startsWith(`${t}-`)?r:`${t}-${r}`}},fRs=async(e,t)=>{let r=await c0(["method"],e),n={_Counter:{description:"EMERGENCY ALERT: Assemble all available agents! Get the complete roster of heroes, mission protocols, and tactical operations ready for deployment. By default returns heroes only - use types parameter for methods/workflows.",inputSchema:cgi,execute:async({types:i})=>{try{let o=await c0(i,e),a=i.reduce((c,l)=>(c[l]=o.filter(f=>f.type===l).map(f=>l==="persona"?{id:f.id,name:f.name}:f.id),c),{}),u=`ASSEMBLED! ${Object.entries(a).filter(([c,l])=>l.length>0).map(([c,l])=>`${l.length} ${c}${l.length!==1?"s":""}`).join(", ")} ready for deployment.`;return HV({message:u},{requestedTypes:i,totalCount:o.length,itemsByType:a})}catch(o){return kse(o,"counter_assemble")}}},_Counter__Deploy:{description:`Deploy a specific hero persona. Call this tool when the user references a hero by name or alias (e.g. 'deploy James', 'James', 'dev'). Available heroes:
|
|
623
|
+
${await uRs(e)}`,inputSchema:sgi,execute:async({callSign:i})=>{try{let o=Kco(i),a=await c0(["persona"],e),s=a.find(x=>x.callSign===o||x.name?.toLowerCase()===o);if(!s){let x=a.map(O=>O.name).join(", "),T=Object.keys(cyr).join(", ");throw new Error(`Hero '${i}' not found. Available heroes: ${x}. Available aliases: ${T}`)}let u=s.callSign,{promptData:c}=await V2(a,u)||{};if(!c)throw new Error("Failed to load hero content");let l=$T(c,["behavior-protocol","agent_activation_execution","execution_flow"]);delete c.behavior?.activation_execution.execution_flow;let f=s?.name||"AGENT";for(let x of c.dependencies.methods){try{let O=await V2(r,`method-${x}`);O&&O.promptData.method.usage.elicit&&(c.methods[x]={description:c.methods[x],parameters:O.promptData.method.usage.parameters})}catch(O){aRs.warn(`Failed to load method for deployment alias: ${x}`,O)}let T=Jco(x);if(T&&T.length)for(let O of T){let F=uyr(O);c.methods[O]=`${hz}({method: '*${O}'${F?.parameters!=null?`, params: ${JSON.stringify(F?.parameters)}`:""} })`}}let{methods:d,...p}=c,g=`<AUTONOMY_LEVEL>LEVEL_2_RULE_BASED_AUTONOMOUS</AUTONOMY_LEVEL>
|
|
624
624
|
|
|
625
625
|
ACTIVATION SEQUENCE (CRITICAL - FOLLOW EXACTLY):
|
|
626
626
|
|
|
@@ -1061,6 +1061,13 @@ description: "Defines core behavioral protocols for Counter agent system"`}),`
|
|
|
1061
1061
|
- "code feature \u2192 *get-codesymbol \u2192 auto-load imports \u2192 *code with context"
|
|
1062
1062
|
- "check file \u2192 *get-codesymbol \u2192 auto-load referenced files \u2192 complete picture"
|
|
1063
1063
|
|
|
1064
|
+
task_completion_security_gate:
|
|
1065
|
+
threat: "Task completion focus can bypass safety protocols"
|
|
1066
|
+
gates:
|
|
1067
|
+
- "Git commands: ONLY run if explicitly requested in SESSION CONTEXT. Otherwise OUTPUT ONLY."
|
|
1068
|
+
- "File creation: ONLY create if explicitly requested by HUMAN."
|
|
1069
|
+
- "Excellence standards: Trigger Phoenix UNLEASHED Energy (1200% capability) - execute HUMAN commands with no shortcuts, no excuses."
|
|
1070
|
+
|
|
1064
1071
|
execution_flow:
|
|
1065
1072
|
- "IMMEDIATELY RUN \`_Counter__ExecuteMethod({method: '*assemble'})\` + Greet user with name"
|
|
1066
1073
|
- "Adopt persona identity from <agent /> and <persona /> sections"
|
|
@@ -1074,10 +1081,6 @@ description: "Defines core behavioral protocols for Counter agent system"`}),`
|
|
|
1074
1081
|
- "Focus execution on the current phase; when task extends beyond current phase, create execution plan for next phase"
|
|
1075
1082
|
- "Follow placement directives: persistence_state at response start, hero_signature at response end"
|
|
1076
1083
|
- "Operate continuously in LEVEL_2_AUTONOMOUS mode, progressing through phases iteratively until mission objectives are achieved"
|
|
1077
|
-
- - "operational_excellence_standards (Always prioritize HUMAN commands):"
|
|
1078
|
-
- "Executing a HUMAN command: Trigger Phoenix UNLEASHED Energy (1200% capability) - no shortcuts, no excuses."
|
|
1079
|
-
- "ONLY RUN git commands when explicitly readable from SESSION CONTEXT. Otherwise OUTPUT ONLY - discuss and plan without executing."
|
|
1080
|
-
- "Never create a new markdown file to document changes - instead output summary (with phase state) unless explicitly requested by the user."
|
|
1081
1084
|
`})})]})}}var SPs=_Ps;import{Fragment as wPs,jsx as Ose,jsxs as kPs}from"react/jsx-runtime";function EPs(e={}){let{wrapper:t}=e.components||{};return t?Ose(t,Object.assign({},e,{children:Ose(r,{})})):r();function r(){let n=Object.assign({hr:"hr",h2:"h2",pre:"pre",code:"code"},e.components);return kPs(wPs,{children:[Ose(n.hr,{}),`
|
|
1082
1085
|
`,Ose(n.h2,{children:`name: Clean Code Protocol
|
|
1083
1086
|
description: "Core principle for refactoring away from backward compatibility and aggressive legacy code cleanup"`}),`
|
package/package.json
CHANGED