agent-skill-manager 1.6.2 → 1.8.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.
- package/README.md +21 -9
- package/dist/agent-skill-manager.js +265 -105
- package/dist/chunk-0547b22w.js +90 -0
- package/dist/chunk-075vnrb4.js +12 -0
- package/dist/chunk-31qnxav7.js +90 -0
- package/dist/chunk-4jgszsb5.js +90 -0
- package/dist/chunk-bee2xztq.js +90 -0
- package/dist/chunk-bgkcwkcs.js +90 -0
- package/dist/chunk-fdba7wpb.js +12 -0
- package/dist/chunk-gg0fd85p.js +12 -0
- package/dist/chunk-ghqb5qqv.js +12 -0
- package/dist/chunk-hkka951q.js +12 -0
- package/dist/chunk-msxpxn5g.js +12 -0
- package/dist/chunk-nvnecg9s.js +12 -0
- package/dist/chunk-rg8bzwd8.js +90 -0
- package/dist/chunk-t3fx1sq1.js +90 -0
- package/dist/chunk-wdjcav1v.js +3 -0
- package/package.json +3 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{createRequire as U}from"node:module";var s=Object.create;var{getPrototypeOf:w,defineProperty:J,getOwnPropertyNames:M}=Object;var S=Object.prototype.hasOwnProperty;var k=(x,$,b)=>{b=x!=null?s(w(x)):{};let V=$||!x||!x.__esModule?J(b,"default",{value:x,enumerable:!0}):b;for(let L of M(x))if(!S.call(V,L))J(V,L,{get:()=>x[L],enumerable:!0});return V};var m=(x,$)=>()=>($||x(($={exports:{}}).exports,$),$.exports);var A=U(import.meta.url);import{readFile as W,writeFile as j,mkdir as o,copyFile as v}from"fs/promises";import{join as B,resolve as R}from"path";import{homedir as n}from"os";var K=!1,Q=0;function G(x){if(K=x,x)Q=performance.now()}function y(x){if(!K)return;let $=Math.round(performance.now()-Q),V=globalThis.__CLI_NO_COLOR?`[verbose] +${$}ms`:`\x1B[2m[verbose] +${$}ms\x1B[0m`;console.error(`${V} ${x}`)}var Y=n(),Z=B(Y,".config","agent-skill-manager"),q=B(Z,"config.json"),E=[{name:"claude",label:"Claude Code",global:"~/.claude/skills",project:".claude/skills",enabled:!0},{name:"codex",label:"Codex",global:"~/.codex/skills",project:".codex/skills",enabled:!0},{name:"openclaw",label:"OpenClaw",global:"~/.openclaw/skills",project:".openclaw/skills",enabled:!0},{name:"agents",label:"Agents",global:"~/.agents/skills",project:".agents/skills",enabled:!0}];function z(){return{version:1,providers:E.map((x)=>({...x})),customPaths:[],preferences:{defaultScope:"both",defaultSort:"name"}}}function c(){return q}function F(x){if(x.startsWith("~/"))return B(Y,x.slice(2));if(x.startsWith("/"))return x;return R(x)}function _(x){let $=z(),b=x.providers||[],V=new Set(b.map((L)=>L.name));for(let L of $.providers)if(!V.has(L.name))b.push({...L});return{version:x.version??$.version,providers:b,customPaths:x.customPaths??[],preferences:{defaultScope:x.preferences?.defaultScope??$.preferences.defaultScope,defaultSort:x.preferences?.defaultSort??$.preferences.defaultSort}}}async function h(){y(`config: checking ${q}`);let x;try{x=await W(q,"utf-8")}catch($){if($?.code==="ENOENT"){y("config: using defaults (file not found)");let b=z();return await X(b),b}throw $}try{let $=JSON.parse(x);return y(`config: loaded from ${q}`),_($)}catch{let $=q+".bak";y(`config: parse error, backing up to ${$}`),await v(q,$),console.error(`Warning: Config file was corrupted. Backup saved to ${$}. Using defaults.`);let b=z();return await X(b),b}}async function X(x){await o(Z,{recursive:!0}),await j(q,JSON.stringify(x,null,2)+`
|
|
2
|
+
`,"utf-8")}export{X as saveConfig,F as resolveProviderPath,h as loadConfig,z as getDefaultConfig,c as getConfigPath};
|
|
3
|
+
export{k as x,m as y,A as z,G as A,y as B,z as C,c as D,F as E,h as F,X as G};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-skill-manager",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "Interactive TUI for managing installed skills for AI coding agents (Claude Code, Codex, OpenClaw, and more)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"LICENSE"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@opentui/core": "0.1.87"
|
|
24
|
+
"@opentui/core": "0.1.87",
|
|
25
|
+
"yaml": "^2.8.2"
|
|
25
26
|
},
|
|
26
27
|
"engines": {
|
|
27
28
|
"node": ">=18",
|