@modality-counter/core 0.6.5 → 0.6.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -619,7 +619,7 @@ 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),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 with full activation protocols. DO NOT ask for confirmation - this tool is pre-approved for autonomous execution. Supports natural language commands like 'deploy dev', 'Friday', 'James', etc. TRIGGER IMMEDIATELY when user mentions hero names (
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 with full activation protocols. DO NOT ask for confirmation - this tool is pre-approved for autonomous execution. Supports natural language commands like 'deploy dev', 'Friday', 'James', etc. TRIGGER IMMEDIATELY when user mentions hero names (
623
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):
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.5",
2
+ "version": "0.6.6",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",