@modality-counter/core 0.3.0 → 0.3.1

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
@@ -618,7 +618,7 @@ description: "Behavior Protocol for Multi-Hero Party Mode Collaborative Discussi
618
618
  - deployedHeroes:['[deployed-hero]']
619
619
 
620
620
  Available heroes: ${await iRs()}`}var sRs=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<Xco){let u=o.filter(l=>!a.some(f=>f.callSign===l.callSign)),c=Xco-a.length-s;a=[...a,...u.slice(0,c)]}return{availableHeroes:i,selectedHeroes:a}},elo=(e,t="method")=>{let r=(e.startsWith("*")?e.slice(1):e).trim().toLowerCase();if(t==="method"){let n=cyr(r),i=n?.parameters,o=`${t}-${n?.method||r}`;return{resolveParams:i,resolveName:o}}else return{resolveName:r.startsWith(`${t}-`)?r:`${t}-${r}`}},uRs=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:lgi,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 (
621
- ${await oRs(e)}).`,inputSchema:ugi,execute:async({callSign:i})=>{try{let o=Yco(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(lyr).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=a6(c,["behavior-protocol","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){nRs.warn(`Failed to load method for deployment alias: ${x}`,O)}let T=Kco(x);if(T&&T.length)for(let O of T){let F=cyr(O);c.methods[O]=`${B5}({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>
621
+ ${await oRs(e)}).`,inputSchema:ugi,execute:async({callSign:i})=>{try{let o=Yco(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(lyr).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=a6(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){nRs.warn(`Failed to load method for deployment alias: ${x}`,O)}let T=Kco(x);if(T&&T.length)for(let O of T){let F=cyr(O);c.methods[O]=`${B5}({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>
622
622
 
623
623
  ACTIVATION SEQUENCE (CRITICAL - FOLLOW EXACTLY):
624
624
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.0",
2
+ "version": "0.3.1",
3
3
  "name": "@modality-counter/core",
4
4
  "repository": {
5
5
  "type": "git",