@modality-counter/core 0.9.10 → 0.9.11
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -539,7 +539,7 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
|
|
|
539
539
|
|
|
540
540
|
`);let a=await O4(n.filePath,r);a.callSign=t;let s;if(i){let c=o4s(n.folderPath);if(c){let{aiTool:l}=await import(c),f=l.inputSchema;if(f){let d=await Wat(f);if(a.method.usage.parameters=d.properties,d.required&&d.required.length>0)for(let p of d.required)a.method.usage.parameters[p]=a.method.usage.parameters[p]||{},a.method.usage.parameters[p].required=!0;if(r!=null){let p={};Object.keys(d.properties||{}).forEach(h=>{p[h]=r[h]??void 0});let m=f.safeParse(p);if(!m.success)throw new Error(`Invalid parameters for ${t}: ${m.error.message}`)}}s=l.execute}}let u=await u4s(n.folderPath+"/references");if(u&&Object.keys(u).length>0){let c=Object.entries(u).map(([l,f])=>`- ${l}: ${f.description||""}`).join(`
|
|
541
541
|
|
|
542
|
-
`);a.method.references={referenceInstructions:[`Review these available references and Load a reference using: ${GU}(method: "${t}", params: {reference: "<filename.md>"})`,c],referenceList:u}}return{promptData:a,counterScript:s,partyMode:o}}catch(o){throw new Error(`Failed to get CounterContent for '${t}': ${o}`)}}var o4s=e=>{if(e){let t=n4s(e,"scripts","index.ts");if(Buo(t))return t}},eut=null;async function sv(e=[],t=import.meta.dir){if(eut==null){eut=X9t();for(let i of qBe)eut[i]=await a4s(t,i)}(!e||e.length===0)&&(e=[...qBe]);let r=[];for(let i of e)r.push(...eut[i]||[]);return r}async function a4s(e,t){let r=[]
|
|
542
|
+
`);a.method.references={referenceInstructions:[`Review these available references and Load a reference using: ${GU}(method: "${t}", params: {reference: "<filename.md>"})`,c],referenceList:u}}return{promptData:a,counterScript:s,partyMode:o}}catch(o){throw new Error(`Failed to get CounterContent for '${t}': ${o}`)}}var o4s=e=>{if(e){let t=n4s(e,"scripts","index.ts");if(Buo(t))return t}},eut=null;async function sv(e=[],t=import.meta.dir){if(eut==null){eut=X9t();for(let i of qBe)eut[i]=await a4s(t,i)}(!e||e.length===0)&&(e=[...qBe]);let r=[];for(let i of e)r.push(...eut[i]||[]);return r}async function a4s(e,t){let r=[],i,n,o=!1;t==="method"?(i="skills",n=s=>s==="SKILL.mdx",o=!0):(i=`${t}s`,n=s=>s.endsWith(".md")||s.endsWith(".mdx"));let a=Pve(e,{targetFolderName:i,fileNameFilter:n,searchInSubfolders:o,fileExtensions:[".md",".mdx"],excludePatterns:[".","__","hidden"]});if(t==="method")for(let s of a){let u=await O4(s.fullPath),c=Vuo(s.fullPath),l=ZTe(c).toLowerCase();r.push({callSign:`${t}-${l}`,type:t,id:l,name:tut(u,["name"]),folderPath:c,filePath:s.fullPath,description:tut(u,["description"]),category:tut(u,["category"])})}else for(let s of a){let u=await O4(s.fullPath),c=s4s(ZTe(s.fullPath));r.push({callSign:`${t}-${c}`,type:t,id:c,name:u.name,description:u.description,category:tut(u,["category"]),filePath:s.fullPath})}return r}var s4s=e=>ZTe(e,i4s(e)).toLowerCase(),tut=(e,t)=>{let r=["agent","method"];for(let i of r)for(let n of t){let o=AO(e,[i,n]);if(o!=null)return o}};function Wuo(e){return Pve(e,{targetFolderName:"templates",fileExtensions:[".md",".mdx"],fileNameFilter:t=>t.includes("tmpl")})}async function u4s(e){let t={};if(!e||!Buo(e))return t;try{let r=Vuo(e),i=ZTe(e),n=Pve(r,{targetFolderName:i,fileExtensions:[".md",".mdx"],fileNameFilter:o=>!o.toLowerCase().includes("readme")&&!o.toLowerCase().includes("summary"),excludePatterns:[".","_"]});for(let o of n)try{let a=r4s(o.fullPath,"utf-8"),s=VQ(a),u=ZTe(o.fullPath),c=s.description,l=s.name;t[u]={description:c,name:l,content:a}}catch(a){console.warn(`Failed to read ${o.fullPath}:`,a)}}catch(r){console.warn("Failed to scan references directory:",r)}return t}Qst();var c4s=function(t){var r,i=(r=(t??"")[0])===null||r===void 0?void 0:r.toUpperCase();return i?i+t.slice(1):null},Huo=c4s;var l4s={code:["change","modify","develop","update","implement","add","remove","fix","improve"],"code-verify":["check","code-test"],"fix-bun-test":["bun-test"],"counter-manager":["method-manager"],presentation:["ppt"],"daily-planner":["daily"],help:["assemble"],"business-edm":["b2b"],"transform-narrative":["write"],"persuade-convert":["sell"],"technical-engage":["blog"],"task-decomposer":["atomic"],"content-intelligence":["content","audit","audience"],"visual-craft":["image"],"get-cursor-codesymbol":["cursor"],"fomo-retail-investor":["fomo"],"crisis-response":["sos"]},d4s={change:{method:"code"},modify:{method:"code"},develop:{method:"code"},update:{method:"code"},implement:{method:"code"},add:{method:"code"},remove:{method:"code"},fix:{method:"code"},improve:{method:"code"},check:{method:"code-verify"},"code-test":{method:"code-verify"},"bun-test":{method:"fix-bun-test"},"method-manager":{method:"counter-manager",parameters:{"component-type":"method"}},daily:{method:"daily-planner",parameters:{action:"now"}},atomic:{method:"task-decomposer",parameters:{action:"ai-first"}},ppt:{method:"presentation"},help:{method:"assemble"},b2b:{method:"business-edm"},write:{method:"transform-narrative"},sell:{method:"persuade-convert"},blog:{method:"technical-engage"},content:{method:"content-intelligence",parameters:{action:"comprehensive"}},audit:{method:"content-intelligence",parameters:{action:"persuasion"}},audience:{method:"content-intelligence",parameters:{action:"audience"}},image:{method:"visual-craft"},cursor:{method:"get-cursor-codesymbol"},fomo:{method:"fomo-retail-investor"},sos:{method:"crisis-response"}},Juo=e=>l4s[e]||[],Kvr=e=>d4s[e];var Yvr={dev:"JAMES",developer:"JAMES",engineer:"JAMES",code:"JAMES",implementation:"JAMES",strategy:"FRIDAY",analyst:"FRIDAY",intel:"FRIDAY",research:"FRIDAY",po:"SARAH",design:"WANDA",designer:"WANDA",ux:"WANDA",ui:"WANDA",finance:"PEPPER",financial:"PEPPER",business:"PEPPER",cfo:"PEPPER"};function Guo(e){let t=e.toLowerCase().trim();return Yvr[t]?.toLowerCase()||t}async function Kuo(){try{return(await sv(["persona"])).map(t=>Huo(t.name))}catch(e){return console.error("Failed to get hero names:",e),[]}}import{Fragment as h4s,jsx as qU,jsxs as g4s}from"react/jsx-runtime";import{jsx as rut}from"react/jsx-runtime";import{YAML as f4s}from"bun";var p4s=e=>rut("pre",{style:{whiteSpace:"pre-wrap"},children:`\`\`\`yaml
|
|
543
543
|
${f4s.stringify(e)}\`\`\``});function m4s(e={}){let{wrapper:t}=e.components||{};return t?rut(t,Object.assign({},e,{children:rut(r,{})})):r();function r(){return rut(p4s,e)}}var nut=m4s;var y4s=e=>{let t={active_heroes:e.activeHeroes,available_heroes:e.availableHeroes,topic:e.topic,context:e.context,meeting_type:"AI_ORCHESTRATED_ROUNDTABLE",description:"This party mode session brings together multiple AI heroes for collaborative discussion and problem-solving. Each hero contributes their unique expertise and perspective to create comprehensive solutions."};return qU(nut,{"party-mode-protocol":{sessionDetails:t}})};function v4s(e={}){let{wrapper:t}=e.components||{};return t?qU(t,Object.assign({},e,{children:qU(r,{})})):r();function r(){let i=Object.assign({hr:"hr",h2:"h2",pre:"pre",code:"code"},e.components);return g4s(h4s,{children:[qU(i.hr,{}),`
|
|
544
544
|
`,qU(i.h2,{children:`name: party-mode-protocol
|
|
545
545
|
description: "Behavior Protocol for Multi-Hero Party Mode Collaborative Discussions"`}),`
|
package/package.json
CHANGED