@modality-counter/core 0.6.7 → 0.6.8
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 +2 -2
- 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
|
|
package/package.json
CHANGED