@zibby/skills 0.1.62 → 0.1.64
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.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export namespace SKILLS {
|
|
|
27
27
|
let OPENAI_BILLING: string;
|
|
28
28
|
let ANTHROPIC_BILLING: string;
|
|
29
29
|
let CURSOR_ADMIN: string;
|
|
30
|
+
let CIRCLECI: string;
|
|
31
|
+
let TRIGGER_AGENT: string;
|
|
30
32
|
}
|
|
31
33
|
import { browserSkill } from './browser.js';
|
|
32
34
|
import { jiraSkill } from './jira.js';
|
package/dist/index.js
CHANGED
|
@@ -972,4 +972,4 @@ _${c.sub}_`:""}${c.severity?` ${te[c.severity]}`:""}`}));for(let c=0;c<o.length;
|
|
|
972
972
|
`+t.headline.summary),e.push({tag:"div",text:{tag:"lark_md",content:i}});for(let o of t.sections)switch(e.push({tag:"hr"}),o.title&&e.push({tag:"div",text:{tag:"lark_md",content:`**${o.title}**`}}),o.kind){case"trend":{let c=Math.max(...o.values),a=o.labels.map((d,l)=>{let u=o.values[l],p=ks(u,c),f=(o.highlight==="last"&&l===o.labels.length-1||o.highlight==="max"&&u===c||o.highlight==="min"&&u===Math.min(...o.values))&&o.severity?` ${te[o.severity]}`:"";return`${St(d,10)} ${ws(u.toLocaleString(),8)} ${p}${f}`});e.push({tag:"div",text:{tag:"lark_md",content:"```\n"+a.join(`
|
|
973
973
|
`)+"\n```"}});break}case"table":{e.push({tag:"div",text:{tag:"lark_md",content:Ss(o)}});break}case"callouts":{let c=te[o.tone||"info"];e.push({tag:"div",text:{tag:"lark_md",content:o.items.map(a=>`${c} ${a}`).join(`
|
|
974
974
|
`)}});break}case"breakdown":{let c=o.rows.map(a=>{let d=a.severity?` ${te[a.severity]}`:"",l=a.sub?` *${a.sub}*`:"";return`**${a.label}** ${a.value}${l}${d}`});e.push({tag:"div",text:{tag:"lark_md",content:c.join(`
|
|
975
|
-
`)}});break}case"paragraph":{e.push({tag:"div",text:{tag:"lark_md",content:o.text}});break}}if(t.footer&&(t.footer.viewUrl||t.footer.rerunUrl)){let o=[];t.footer.viewUrl&&o.push({tag:"button",text:{tag:"plain_text",content:"View in Zibby"},url:t.footer.viewUrl,type:"primary"}),t.footer.rerunUrl&&o.push({tag:"button",text:{tag:"plain_text",content:"Run again"},url:t.footer.rerunUrl,type:"default"}),e.push({tag:"hr"}),e.push({tag:"action",actions:o})}let n="blue";return t.headline.delta?.severity&&(n=Wa[t.headline.delta.severity]||"blue"),{config:{wide_screen_mode:!0},header:{title:{tag:"plain_text",content:t.title.slice(0,200)},subtitle:t.subtitle?{tag:"plain_text",content:t.subtitle.slice(0,200)}:void 0,template:n},elements:e}}var xd=Object.freeze({ok:"green_background",info:"blue_background",warn:"orange_background",critical:"red_background"}),Pd=Object.freeze({ok:"\u{1F7E2}",info:"\u2139\uFE0F",warn:"\u26A0\uFE0F",critical:"\u{1F6A8}"});import{createRequire as Va}from"module";import{fileURLToPath as Qa}from"url";import{registerHandlers as Xa}from"@zibby/core/function-skill-registry.js";import{registerSkill as ec}from"@zibby/agent-workflow";var tc=Va(import.meta.url);function rc(){try{return tc.resolve("@zibby/core/function-bridge.js")}catch{return null}}var sc=import.meta.url;function ic(){let s=Error.prepareStackTrace;try{Error.prepareStackTrace=(r,i)=>i;let e=new Error().stack;for(let r=2;r<e.length;r++){let i=e[r].getFileName();if(i&&i!==sc&&!i.startsWith("node:"))return i.startsWith("file://")?Qa(i):i}return null}finally{Error.prepareStackTrace=s}}function nc(s){if(!s||typeof s!="object")return{type:"object",properties:{},required:[]};let t={},e=[];for(let[r,i]of Object.entries(s))if(typeof i=="string")t[r]={type:i},e.push(r);else{let{required:n,...o}=i;t[r]=o,n!==!1&&e.push(r)}return{type:"object",properties:t,required:e}}function oc(s,t,e){if(typeof e.handler!="function")throw new Error(`Skill "${s}" must have a handler function`);let r={[s]:e.handler},i=[{name:s,description:e.description||"",input_schema:nc(e.input)}];return Xa(s,r,i),{id:s,type:"function",serverName:s,allowedTools:[`mcp__${s}__*`],description:e.description||`Function skill: ${s}`,envKeys:[],tools:i,resolve(){let n=rc();return n?{command:"node",args:[n,t,s]}:null}}}function ac(s,t){return{id:s,type:"mcp",serverName:t.serverName||s,allowedTools:t.allowedTools||[`mcp__${t.serverName||s}__*`],description:t.description||`MCP skill: ${s}`,envKeys:t.envKeys||[],tools:t.tools||[],resolve:t.resolve,...t.cursorKey&&{cursorKey:t.cursorKey},...t.sessionEnvKey&&{sessionEnvKey:t.sessionEnvKey}}}function vs(s,t){let e;if("handler"in t){if(typeof t.handler!="function")throw new Error(`Skill "${s}" must have a handler function`);let r=ic();if(!r)throw new Error(`Could not resolve caller file for skill "${s}".`);e=oc(s,r,t)}else if(typeof t.resolve=="function")e=ac(s,t);else throw new Error(`Skill "${s}" must have either a handler (function skill) or resolve (MCP skill).`);return ec(e),e}var cc=vs;import{registerSkill as Su,getSkill as vu,hasSkill as Iu,getAllSkills as Nu,listSkillIds as Ou}from"@zibby/agent-workflow";I(vt);I(Ot);I(ae);I(ce);I(At);I(jt);I($t);I(Pt);I(x);I(K);I(Dt);I(Ht);I(zt);I(Ae);I(Yt);I(_r);I(X);I(Ir);I(Vt);I(rr);I(qr);I(Fr);I(Vr);I(Qr);I(rs);I(ms);I(_t);I(bt);I(kt);I({...x,id:"slack_notify"});var yu={BROWSER:"browser",JIRA:"jira",GITHUB:"github",GITLAB:"gitlab",FIGMA:"figma",LINEAR:"linear",PLANE:"plane",OPEN_DESIGN:"open-design",GIT:"git",GIT_WRITE:"git-write",SLACK:"slack",LARK:"lark",NOTION:"notion",LINKEDIN:"linkedin",CHAT_NOTIFY:"chat_notify",SENTRY:"sentry",MEMORY:"memory",RUNNER:"runner",SKILL_INSTALLER:"skill-installer",CORE_TOOLS:"core-tools",CHAT_MEMORY:"chat-memory",KV_MEMORY:"kv-memory",DATASET_STORE:"dataset-store",CODEBASE_MEMORY:"codebase-memory",WORKFLOW_BUILDER:"workflow-builder",OPENAI_BILLING:"openai_billing",ANTHROPIC_BILLING:"anthropic_billing",CURSOR_ADMIN:"cursor_admin"};export{N as INTEGRATIONS,$s as INTEGRATION_REGISTRY,ve as REPORT_SEVERITIES,yu as SKILLS,bt as anthropicBillingSkill,vt as browserSkill,qr as chatMemorySkill,zt as chatNotifySkill,rs as codebaseMemorySkill,rr as coreToolsSkill,kt as cursorAdminSkill,Vr as datasetStoreSkill,qa as fetchAllProviders,gs as fetchAnthropicCosts,Ua as fetchAnthropicWorkspaces,_s as fetchCursorSpend,ys as fetchOpenAICosts,Ca as fetchOpenAIProjects,At as figmaSkill,cc as functionSkill,Nu as getAllSkills,vu as getSkill,X as gitSkill,Ir as gitWriteSkill,ae as githubSkill,ce as gitlabSkill,Ja as groupByKey,Iu as hasSkill,Ot as jiraSkill,Fr as kvMemorySkill,K as larkSkill,jt as linearSkill,Ht as linkedinSkill,Ou as listSkillIds,Ma as meanStddev,Yt as memorySkill,Dt as notionSkill,_t as openaiBillingSkill,Pt as opendesignSkill,$t as planeSkill,Su as registerSkill,wt as reportObjectSchema,Ya as reportToBlockKit,Za as reportToLarkCard,_r as runnerSkill,Ae as sentrySkill,vs as skill,Vt as skillInstallerSkill,x as slackSkill,_r as testRunnerSkill,ms as workflowBuilderSkill};
|
|
975
|
+
`)}});break}case"paragraph":{e.push({tag:"div",text:{tag:"lark_md",content:o.text}});break}}if(t.footer&&(t.footer.viewUrl||t.footer.rerunUrl)){let o=[];t.footer.viewUrl&&o.push({tag:"button",text:{tag:"plain_text",content:"View in Zibby"},url:t.footer.viewUrl,type:"primary"}),t.footer.rerunUrl&&o.push({tag:"button",text:{tag:"plain_text",content:"Run again"},url:t.footer.rerunUrl,type:"default"}),e.push({tag:"hr"}),e.push({tag:"action",actions:o})}let n="blue";return t.headline.delta?.severity&&(n=Wa[t.headline.delta.severity]||"blue"),{config:{wide_screen_mode:!0},header:{title:{tag:"plain_text",content:t.title.slice(0,200)},subtitle:t.subtitle?{tag:"plain_text",content:t.subtitle.slice(0,200)}:void 0,template:n},elements:e}}var xd=Object.freeze({ok:"green_background",info:"blue_background",warn:"orange_background",critical:"red_background"}),Pd=Object.freeze({ok:"\u{1F7E2}",info:"\u2139\uFE0F",warn:"\u26A0\uFE0F",critical:"\u{1F6A8}"});import{createRequire as Va}from"module";import{fileURLToPath as Qa}from"url";import{registerHandlers as Xa}from"@zibby/core/function-skill-registry.js";import{registerSkill as ec}from"@zibby/agent-workflow";var tc=Va(import.meta.url);function rc(){try{return tc.resolve("@zibby/core/function-bridge.js")}catch{return null}}var sc=import.meta.url;function ic(){let s=Error.prepareStackTrace;try{Error.prepareStackTrace=(r,i)=>i;let e=new Error().stack;for(let r=2;r<e.length;r++){let i=e[r].getFileName();if(i&&i!==sc&&!i.startsWith("node:"))return i.startsWith("file://")?Qa(i):i}return null}finally{Error.prepareStackTrace=s}}function nc(s){if(!s||typeof s!="object")return{type:"object",properties:{},required:[]};let t={},e=[];for(let[r,i]of Object.entries(s))if(typeof i=="string")t[r]={type:i},e.push(r);else{let{required:n,...o}=i;t[r]=o,n!==!1&&e.push(r)}return{type:"object",properties:t,required:e}}function oc(s,t,e){if(typeof e.handler!="function")throw new Error(`Skill "${s}" must have a handler function`);let r={[s]:e.handler},i=[{name:s,description:e.description||"",input_schema:nc(e.input)}];return Xa(s,r,i),{id:s,type:"function",serverName:s,allowedTools:[`mcp__${s}__*`],description:e.description||`Function skill: ${s}`,envKeys:[],tools:i,resolve(){let n=rc();return n?{command:"node",args:[n,t,s]}:null}}}function ac(s,t){return{id:s,type:"mcp",serverName:t.serverName||s,allowedTools:t.allowedTools||[`mcp__${t.serverName||s}__*`],description:t.description||`MCP skill: ${s}`,envKeys:t.envKeys||[],tools:t.tools||[],resolve:t.resolve,...t.cursorKey&&{cursorKey:t.cursorKey},...t.sessionEnvKey&&{sessionEnvKey:t.sessionEnvKey}}}function vs(s,t){let e;if("handler"in t){if(typeof t.handler!="function")throw new Error(`Skill "${s}" must have a handler function`);let r=ic();if(!r)throw new Error(`Could not resolve caller file for skill "${s}".`);e=oc(s,r,t)}else if(typeof t.resolve=="function")e=ac(s,t);else throw new Error(`Skill "${s}" must have either a handler (function skill) or resolve (MCP skill).`);return ec(e),e}var cc=vs;import{registerSkill as Su,getSkill as vu,hasSkill as Iu,getAllSkills as Nu,listSkillIds as Ou}from"@zibby/agent-workflow";I(vt);I(Ot);I(ae);I(ce);I(At);I(jt);I($t);I(Pt);I(x);I(K);I(Dt);I(Ht);I(zt);I(Ae);I(Yt);I(_r);I(X);I(Ir);I(Vt);I(rr);I(qr);I(Fr);I(Vr);I(Qr);I(rs);I(ms);I(_t);I(bt);I(kt);I({...x,id:"slack_notify"});var yu={BROWSER:"browser",JIRA:"jira",GITHUB:"github",GITLAB:"gitlab",FIGMA:"figma",LINEAR:"linear",PLANE:"plane",OPEN_DESIGN:"open-design",GIT:"git",GIT_WRITE:"git-write",SLACK:"slack",LARK:"lark",NOTION:"notion",LINKEDIN:"linkedin",CHAT_NOTIFY:"chat_notify",SENTRY:"sentry",MEMORY:"memory",RUNNER:"runner",SKILL_INSTALLER:"skill-installer",CORE_TOOLS:"core-tools",CHAT_MEMORY:"chat-memory",KV_MEMORY:"kv-memory",DATASET_STORE:"dataset-store",CODEBASE_MEMORY:"codebase-memory",WORKFLOW_BUILDER:"workflow-builder",OPENAI_BILLING:"openai_billing",ANTHROPIC_BILLING:"anthropic_billing",CURSOR_ADMIN:"cursor_admin",CIRCLECI:"circleci",TRIGGER_AGENT:"trigger-agent"};export{N as INTEGRATIONS,$s as INTEGRATION_REGISTRY,ve as REPORT_SEVERITIES,yu as SKILLS,bt as anthropicBillingSkill,vt as browserSkill,qr as chatMemorySkill,zt as chatNotifySkill,rs as codebaseMemorySkill,rr as coreToolsSkill,kt as cursorAdminSkill,Vr as datasetStoreSkill,qa as fetchAllProviders,gs as fetchAnthropicCosts,Ua as fetchAnthropicWorkspaces,_s as fetchCursorSpend,ys as fetchOpenAICosts,Ca as fetchOpenAIProjects,At as figmaSkill,cc as functionSkill,Nu as getAllSkills,vu as getSkill,X as gitSkill,Ir as gitWriteSkill,ae as githubSkill,ce as gitlabSkill,Ja as groupByKey,Iu as hasSkill,Ot as jiraSkill,Fr as kvMemorySkill,K as larkSkill,jt as linearSkill,Ht as linkedinSkill,Ou as listSkillIds,Ma as meanStddev,Yt as memorySkill,Dt as notionSkill,_t as openaiBillingSkill,Pt as opendesignSkill,$t as planeSkill,Su as registerSkill,wt as reportObjectSchema,Ya as reportToBlockKit,Za as reportToLarkCard,_r as runnerSkill,Ae as sentrySkill,vs as skill,Vt as skillInstallerSkill,x as slackSkill,_r as testRunnerSkill,ms as workflowBuilderSkill};
|
package/dist/package.json
CHANGED