noskills 4.1.14 → 4.1.23

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 (56) hide show
  1. package/README.md +1 -19
  2. package/chunks/anthropic-2LHRYJDF.js +1 -0
  3. package/chunks/approve-AL45GVEF.js +1 -0
  4. package/chunks/ask-IY54PGL5.js +2 -0
  5. package/chunks/block-3UQW2ZE5.js +1 -0
  6. package/chunks/browser-6UKLTPJO.js +1 -0
  7. package/chunks/bun-N3TIWBPP.js +1 -0
  8. package/chunks/chunk-2N4GTHXQ.js +1 -0
  9. package/chunks/chunk-4OIKB2P5.js +1 -0
  10. package/chunks/chunk-AGPCY6XP.js +1 -0
  11. package/chunks/chunk-AK3OJD4W.js +1 -0
  12. package/chunks/chunk-BK2BDHKB.js +1 -0
  13. package/chunks/chunk-BKVQBSFV.js +6 -0
  14. package/chunks/chunk-DXB73IDG.js +1 -0
  15. package/chunks/chunk-FKF2SWQM.js +18 -0
  16. package/chunks/chunk-GF2UL6TT.js +1 -0
  17. package/chunks/chunk-IA7GIU76.js +14 -0
  18. package/chunks/chunk-LRL56YFE.js +1 -0
  19. package/chunks/chunk-LXVBR775.js +1 -0
  20. package/chunks/chunk-MNRDBZTT.js +2 -0
  21. package/chunks/chunk-N3MMGLBM.js +91 -0
  22. package/chunks/chunk-OLM5RTFK.js +1 -0
  23. package/chunks/chunk-QXTK62N4.js +1 -0
  24. package/chunks/chunk-VN5R2F7I.js +32 -0
  25. package/chunks/chunk-VTQ72OK7.js +1 -0
  26. package/chunks/chunk-W5PG6EYP.js +3 -0
  27. package/chunks/chunk-WKFEU6N7.js +1 -0
  28. package/chunks/chunk-XMTGT2NJ.js +10 -0
  29. package/chunks/chunk-YD3YJNYK.js +3 -0
  30. package/chunks/chunk-Z7742D7Q.js +1 -0
  31. package/chunks/claude-code-X2VQ64HN.js +1 -0
  32. package/chunks/deno-5NIMCWUR.js +1 -0
  33. package/chunks/fileFromPath-4UEDFJ4U.js +6 -0
  34. package/chunks/gemini-RKZLMEHC.js +1 -0
  35. package/chunks/init-JCBHPOPI.js +1 -0
  36. package/chunks/kiro-S5GVVHVI.js +3 -0
  37. package/chunks/list-FT2F44YC.js +1 -0
  38. package/chunks/next-MZDW4LJS.js +3 -0
  39. package/chunks/node-RWYXITVV.js +59 -0
  40. package/chunks/node-VPHAK3FD.js +1 -0
  41. package/chunks/ollama-H7H4N5H3.js +3 -0
  42. package/chunks/openai-EKIA3VP3.js +19 -0
  43. package/chunks/openai-ZNKOR4CD.js +4 -0
  44. package/chunks/opencode-FU5EBKR4.js +1 -0
  45. package/chunks/reset-YYZ6LQDH.js +1 -0
  46. package/chunks/rule-XGOGBUKV.js +2 -0
  47. package/chunks/sdk-5JGXLIO5.js +18 -0
  48. package/chunks/spec-DAWQ355V.js +1 -0
  49. package/chunks/status-HTLNGAXK.js +1 -0
  50. package/chunks/sync-PUONDN7H.js +1 -0
  51. package/chunks/unstable_chmod-WRDBWEC2.js +1 -0
  52. package/chunks/vertexai-XFAUOLH7.js +1 -0
  53. package/chunks/workerd-NXKZMQPV.js +1 -0
  54. package/noskills.js +2 -0
  55. package/package.json +2 -5
  56. package/bin.js +0 -6
@@ -0,0 +1 @@
1
+ import{a as G}from"./chunk-4OIKB2P5.js";import{b as D,d as Q}from"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";function X(){let e=globalThis,r=e.Deno?.build?.os;return typeof r=="string"?r==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var A=X();function C(e){if(typeof e!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function H(e,r){if(r.length>=e.length)return e;let t=e.length-r.length;for(let o=r.length-1;o>=0;--o)if(e.charCodeAt(t+o)!==r.charCodeAt(o))return e;return e.slice(0,-r.length)}function k(e,r,t=0){let o=!1,s=e.length;for(let i=e.length-1;i>=t;--i)if(r(e.charCodeAt(i))){if(o){t=i+1;break}}else o||(o=!0,s=i+1);return e.slice(t,s)}function L(e,r){if(C(e),e.length===0)return e;if(typeof r!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(r)}"`)}function U(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function P(e){return e=U(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function S(e,r){if(e.length<=1)return e;let t=e.length;for(let o=e.length-1;o>0&&r(e.charCodeAt(o));o--)t=o;return e.slice(0,t)}function p(e){return e===47}function Y(e,r=""){e instanceof URL&&(e=P(e)),L(e,r);let t=k(e,p),o=S(t,p);return r?H(o,r):o}function V(e){return e===47}function m(e){return e===47||e===92}function R(e){return e>=97&&e<=122||e>=65&&e<=90}function E(e){e=U(e);let r=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(r=`\\\\${e.hostname}${r}`),r}function q(e,r=""){e instanceof URL&&(e=E(e)),L(e,r);let t=0;if(e.length>=2){let i=e.charCodeAt(0);R(i)&&e.charCodeAt(1)===58&&(t=2)}let o=k(e,m,t),s=S(o,m);return r?H(s,r):s}function ee(e,r=""){return A?q(e,r):Y(e,r)}var re=A?";":":",B=A?"\\":"/";function W(e){if(C(e),e.length===0)return"."}function te(e){e instanceof URL&&(e=P(e)),W(e);let r=-1,t=!1;for(let o=e.length-1;o>=1;--o)if(p(e.charCodeAt(o))){if(t){r=o;break}}else t=!0;return r===-1?p(e.charCodeAt(0))?"/":".":S(e.slice(0,r),p)}function oe(e){e instanceof URL&&(e=E(e)),W(e);let r=e.length,t=-1,o=-1,s=!0,i=0,f=e.charCodeAt(0);if(r>1)if(m(f)){if(t=i=1,m(e.charCodeAt(1))){let n=2,l=n;for(;n<r&&!m(e.charCodeAt(n));++n);if(n<r&&n!==l){for(l=n;n<r&&m(e.charCodeAt(n));++n);if(n<r&&n!==l){for(l=n;n<r&&!m(e.charCodeAt(n));++n);if(n===r)return e;n!==l&&(t=i=n+1)}}}}else R(f)&&e.charCodeAt(1)===58&&(t=i=2,r>2&&m(e.charCodeAt(2))&&(t=i=3));else if(m(f))return e;for(let n=r-1;n>=i;--n)if(m(e.charCodeAt(n))){if(!s){o=n;break}}else s=!1;if(o===-1){if(t===-1)return".";o=t}return S(e.slice(0,o),V)}function ie(e){return A?oe(e):te(e)}function ne(e){e instanceof URL&&(e=P(e)),C(e);let r=-1,t=0,o=-1,s=!0,i=0;for(let f=e.length-1;f>=0;--f){let n=e.charCodeAt(f);if(p(n)){if(!s){t=f+1;break}continue}o===-1&&(s=!1,o=f+1),n===46?r===-1?r=f:i!==1&&(i=1):r!==-1&&(i=-1)}return r===-1||o===-1||i===0||i===1&&r===o-1&&r===t+1?"":e.slice(r,o)}function se(e){e instanceof URL&&(e=E(e)),C(e);let r=0,t=-1,o=0,s=-1,i=!0,f=0;e.length>=2&&e.charCodeAt(1)===58&&R(e.charCodeAt(0))&&(r=o=2);for(let n=e.length-1;n>=r;--n){let l=e.charCodeAt(n);if(m(l)){if(!i){o=n+1;break}continue}s===-1&&(i=!1,s=n+1),l===46?t===-1?t=n:f!==1&&(f=1):t!==-1&&(f=-1)}return t===-1||s===-1||f===0||f===1&&t===s-1&&t===o+1?"":e.slice(t,s)}function fe(e){return A?se(e):ne(e)}function N(e,r){let t=r.dir||r.root,o=r.base||(r.name??"")+(r.ext??"");return t?o===e?t:t===r.root?t+o:t+e+o:o}function $(e){if(e===null||typeof e!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof e}"`)}function ae(e){return $(e),N("/",e)}function le(e){return $(e),N("\\",e)}function ce(e){return A?le(e):ae(e)}function j(e){return C(e),e.length>0&&p(e.charCodeAt(0))}function M(e){C(e);let r=e.length;if(r===0)return!1;let t=e.charCodeAt(0);return m(t)?!0:!!(R(t)&&r>2&&e.charCodeAt(1)===58&&m(e.charCodeAt(2)))}function me(e){return A?M(e):j(e)}function I(e){if(C(e),e.length===0)return"."}function _(e,r,t,o){let s="",i=0,f=-1,n=0,l;for(let a=0;a<=e.length;++a){if(a<e.length)l=e.charCodeAt(a);else{if(o(l))break;l=47}if(o(l)){if(!(f===a-1||n===1))if(f!==a-1&&n===2){if(s.length<2||i!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){let d=s.lastIndexOf(t);d===-1?(s="",i=0):(s=s.slice(0,d),i=s.length-1-s.lastIndexOf(t)),f=a,n=0;continue}else if(s.length===2||s.length===1){s="",i=0,f=a,n=0;continue}}r&&(s.length>0?s+=`${t}..`:s="..",i=2)}else s.length>0?s+=t+e.slice(f+1,a):s=e.slice(f+1,a),i=a-f-1;f=a,n=0}else l===46&&n!==-1?++n:n=-1}return s}function F(e){e instanceof URL&&(e=P(e)),I(e);let r=p(e.charCodeAt(0)),t=p(e.charCodeAt(e.length-1));return e=_(e,!r,"/",p),e.length===0&&!r&&(e="."),e.length>0&&t&&(e+="/"),r?`/${e}`:e}function K(e,...r){if(e===void 0)return".";e instanceof URL&&(e=P(e)),r=e?[e,...r]:r,r.forEach(o=>C(o));let t=r.filter(o=>o.length>0).join("/");return t===""?".":F(t)}function b(e){e instanceof URL&&(e=E(e)),I(e);let r=e.length,t=0,o,s=!1,i=e.charCodeAt(0);if(r>1)if(m(i))if(s=!0,m(e.charCodeAt(1))){let n=2,l=n;for(;n<r&&!m(e.charCodeAt(n));++n);if(n<r&&n!==l){let a=e.slice(l,n);for(l=n;n<r&&m(e.charCodeAt(n));++n);if(n<r&&n!==l){for(l=n;n<r&&!m(e.charCodeAt(n));++n);if(n===r)return`\\\\${a}\\${e.slice(l)}\\`;n!==l&&(o=`\\\\${a}\\${e.slice(l,n)}`,t=n)}}}else t=1;else R(i)&&e.charCodeAt(1)===58&&(o=e.slice(0,2),t=2,r>2&&m(e.charCodeAt(2))&&(s=!0,t=3));else if(m(i))return"\\";let f;return t<r?f=_(e.slice(t),!s,"\\",m):f="",f.length===0&&!s&&(f="."),f.length>0&&m(e.charCodeAt(r-1))&&(f+="\\"),o===void 0?s?f.length>0?`\\${f}`:"\\":f:s?f.length>0?`${o}\\${f}`:`${o}\\`:o+f}function Z(e,...r){if(e instanceof URL&&(e=E(e)),r=e?[e,...r]:r,r.forEach(f=>C(f)),r=r.filter(f=>f.length>0),r.length===0)return".";let t=!0,o=0,s=r[0];if(m(s.charCodeAt(0))){++o;let f=s.length;f>1&&m(s.charCodeAt(1))&&(++o,f>2&&(m(s.charCodeAt(2))?++o:t=!1))}let i=r.join("\\");if(t){for(;o<i.length&&m(i.charCodeAt(o));++o);o>=2&&(i=`\\${i.slice(o)}`)}return b(i)}function J(e,...r){return A?Z(e,...r):K(e,...r)}function de(e){return A?b(e):F(e)}function ue(e){C(e);let r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;let t=p(e.charCodeAt(0)),o;t?(r.root="/",o=1):o=0;let s=-1,i=0,f=-1,n=!0,l=e.length-1,a=0;for(;l>=o;--l){let d=e.charCodeAt(l);if(p(d)){if(!n){i=l+1;break}continue}f===-1&&(n=!1,f=l+1),d===46?s===-1?s=l:a!==1&&(a=1):s!==-1&&(a=-1)}return s===-1||f===-1||a===0||a===1&&s===f-1&&s===i+1?(f!==-1&&(i===0&&t?r.base=r.name=e.slice(1,f):r.base=r.name=e.slice(i,f)),r.base=r.base||"/"):(i===0&&t?(r.name=e.slice(1,s),r.base=e.slice(1,f)):(r.name=e.slice(i,s),r.base=e.slice(i,f)),r.ext=e.slice(s,f)),i>0?r.dir=S(e.slice(0,i-1),p):t&&(r.dir="/"),r}function pe(e){C(e);let r={root:"",dir:"",base:"",ext:"",name:""},t=e.length;if(t===0)return r;let o=0,s=e.charCodeAt(0);if(t>1){if(m(s)){if(o=1,m(e.charCodeAt(1))){let u=2,c=u;for(;u<t&&!m(e.charCodeAt(u));++u);if(u<t&&u!==c){for(c=u;u<t&&m(e.charCodeAt(u));++u);if(u<t&&u!==c){for(c=u;u<t&&!m(e.charCodeAt(u));++u);u===t?o=u:u!==c&&(o=u+1)}}}}else if(R(s)&&e.charCodeAt(1)===58)if(o=2,t>2){if(m(e.charCodeAt(2))){if(t===3)return r.root=r.dir=e,r.base="\\",r;o=3}}else return r.root=r.dir=e,r}else if(m(s))return r.root=r.dir=e,r.base="\\",r;o>0&&(r.root=e.slice(0,o));let i=-1,f=o,n=-1,l=!0,a=e.length-1,d=0;for(;a>=o;--a){if(s=e.charCodeAt(a),m(s)){if(!l){f=a+1;break}continue}n===-1&&(l=!1,n=a+1),s===46?i===-1?i=a:d!==1&&(d=1):i!==-1&&(d=-1)}return i===-1||n===-1||d===0||d===1&&i===n-1&&i===f+1?n!==-1&&(r.base=r.name=e.slice(f,n)):(r.name=e.slice(f,i),r.base=e.slice(f,n),r.ext=e.slice(i,n)),r.base=r.base||"\\",f>0&&f!==o?r.dir=e.slice(0,f-1):r.dir=r.root,r}function Ae(e){return A?pe(e):ue(e)}function O(...e){let r="",t=!1;for(let o=e.length-1;o>=-1&&!t;o--){let s;if(o>=0)s=e[o];else{let{Deno:i}=globalThis;if(typeof i?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");s=i.cwd()}C(s),s.length!==0&&(r=`${s}/${r}`,t=p(s.charCodeAt(0)))}return r=_(r,!t,"/",p),t?r.length>0?`/${r}`:"/":r.length>0?r:"."}function z(e,r){if(C(e),C(r),e===r)return""}function Ce(e,r){if(z(e,r),e=O(e),r=O(r),e===r)return"";let t=1,o=e.length;for(;t<o&&p(e.charCodeAt(t));++t);let s=o-t,i=1,f=r.length;for(;i<f&&p(r.charCodeAt(i));++i);let n=f-i,l=s<n?s:n,a=-1,d=0;for(;d<=l;++d){if(d===l){if(n>l){if(p(r.charCodeAt(i+d)))return r.slice(i+d+1);if(d===0)return r.slice(i+d)}else s>l&&(p(e.charCodeAt(t+d))?a=d:d===0&&(a=0));break}let c=e.charCodeAt(t+d),x=r.charCodeAt(i+d);if(c!==x)break;p(c)&&(a=d)}let u="";for(d=t+a+1;d<=o;++d)(d===o||p(e.charCodeAt(d)))&&(u.length===0?u+="..":u+="/..");return u.length>0?u+r.slice(i+a):(i+=a,p(r.charCodeAt(i))&&++i,r.slice(i))}function T(...e){let r="",t="",o=!1;for(let s=e.length-1;s>=-1;s--){let i,{Deno:f}=globalThis;if(s>=0)i=e[s];else if(r){if(typeof f?.env?.get!="function"||typeof f?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");i=f.cwd(),(i===void 0||i.slice(0,3).toLowerCase()!==`${r.toLowerCase()}\\`)&&(i=`${r}\\`)}else{if(typeof f?.cwd!="function")throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");i=f.cwd()}C(i);let n=i.length;if(n===0)continue;let l=0,a="",d=!1,u=i.charCodeAt(0);if(n>1)if(m(u))if(d=!0,m(i.charCodeAt(1))){let c=2,x=c;for(;c<n&&!m(i.charCodeAt(c));++c);if(c<n&&c!==x){let v=i.slice(x,c);for(x=c;c<n&&m(i.charCodeAt(c));++c);if(c<n&&c!==x){for(x=c;c<n&&!m(i.charCodeAt(c));++c);c===n?(a=`\\\\${v}\\${i.slice(x)}`,l=c):c!==x&&(a=`\\\\${v}\\${i.slice(x,c)}`,l=c)}}}else l=1;else R(u)&&i.charCodeAt(1)===58&&(a=i.slice(0,2),l=2,n>2&&m(i.charCodeAt(2))&&(d=!0,l=3));else m(u)&&(l=1,d=!0);if(!(a.length>0&&r.length>0&&a.toLowerCase()!==r.toLowerCase())&&(r.length===0&&a.length>0&&(r=a),o||(t=`${i.slice(l)}\\${t}`,o=d),o&&r.length>0))break}return t=_(t,!o,"\\",m),r+(o?"\\":"")+t||"."}function xe(e,r){z(e,r);let t=T(e),o=T(r);if(t===o||(e=t.toLowerCase(),r=o.toLowerCase(),e===r))return"";let s=0,i=e.length;for(;s<i&&e.charCodeAt(s)===92;++s);for(;i-1>s&&e.charCodeAt(i-1)===92;--i);let f=i-s,n=0,l=r.length;for(;n<l&&r.charCodeAt(n)===92;++n);for(;l-1>n&&r.charCodeAt(l-1)===92;--l);let a=l-n,d=f<a?f:a,u=-1,c=0;for(;c<=d;++c){if(c===d){if(a>d){if(r.charCodeAt(n+c)===92)return o.slice(n+c+1);if(c===2)return o.slice(n+c)}f>d&&(e.charCodeAt(s+c)===92?u=c:c===2&&(u=3));break}let v=e.charCodeAt(s+c),ge=r.charCodeAt(n+c);if(v!==ge)break;v===92&&(u=c)}if(c!==d&&u===-1)return o;let x="";for(u===-1&&(u=0),c=s+u+1;c<=i;++c)(c===i||e.charCodeAt(c)===92)&&(x.length===0?x+="..":x+="\\..");return x.length>0?x+o.slice(n+u,l):(n+=u,o.charCodeAt(n)===92&&++n,o.slice(n,l))}function Re(e,r){return A?xe(e,r):Ce(e,r)}function he(...e){return A?T(...e):O(...e)}var Fe={fs:!0,fsSync:!0,exec:!0,process:!0,env:!0,stdin:!0,stdout:!0,kv:!0},be=()=>{let e=r=>({isFile:r.isFile,isDirectory:r.isDirectory,isSymlink:r.isSymlink,size:r.size,mtime:r.mtime,atime:r.atime,birthtime:r.birthtime});return{async readFile(r,t){try{return await Deno.readFile(r,{signal:t?.signal})}catch(o){throw o instanceof Deno.errors.NotFound?new D(r):o}},async readTextFile(r,t){try{return await Deno.readTextFile(r,{signal:t?.signal})}catch(o){throw o instanceof Deno.errors.NotFound?new D(r):o}},async writeFile(r,t,o){await Deno.writeFile(r,t,{signal:o?.signal,mode:o?.mode,create:o?.create??!0,append:o?.append??!1})},async writeTextFile(r,t,o){await Deno.writeTextFile(r,t,{signal:o?.signal,mode:o?.mode,create:o?.create??!0,append:o?.append??!1})},async exists(r){try{return await Deno.stat(r),!0}catch(t){if(t instanceof Deno.errors.NotFound)return!1;throw t}},async stat(r){try{let t=await Deno.stat(r);return e(t)}catch(t){throw t instanceof Deno.errors.NotFound?new D(r):t}},async lstat(r){try{let t=await Deno.lstat(r);return e(t)}catch(t){throw t instanceof Deno.errors.NotFound?new D(r):t}},async mkdir(r,t){await Deno.mkdir(r,{recursive:t?.recursive??!1,mode:t?.mode})},async ensureDir(r){try{await Deno.mkdir(r,{recursive:!0})}catch(t){if(!(t instanceof Deno.errors.AlreadyExists))throw t}},async remove(r,t){try{await Deno.remove(r,{recursive:t?.recursive??!1})}catch(o){throw o instanceof Deno.errors.NotFound?new D(r):o}},async*readDir(r){try{for await(let t of Deno.readDir(r))yield{name:t.name,isFile:t.isFile,isDirectory:t.isDirectory,isSymlink:t.isSymlink}}catch(t){throw t instanceof Deno.errors.NotFound?new D(r):t}},async copyFile(r,t){await Deno.copyFile(r,t)},async rename(r,t){await Deno.rename(r,t)},async makeTempDir(r){return await Deno.makeTempDir({dir:r?.dir,prefix:r?.prefix,suffix:r?.suffix})},async realPath(r){try{return await Deno.realPath(r)}catch(t){throw t instanceof Deno.errors.NotFound?new D(r):t}},watch(r,t){let o=t?.recursive??!0,s=Deno.watchFs(r,{recursive:o}),i=f=>({kind:f.kind,paths:f.paths,flag:f.flag});return{close:()=>s.close(),[Symbol.asyncIterator]:async function*(){for await(let f of s)yield i(f)}}},async*walk(r,t){let o=t?.includeDirs??!0,s=t?.includeFiles??!0,i=t?.exts,f=t?.skip,n=async function*(l){for await(let a of Deno.readDir(l)){let d=J(l,a.name);if(!f?.some(u=>u.test(d))){if(a.isDirectory)o&&(yield{path:d,name:a.name,isFile:!1,isDirectory:!0,isSymlink:a.isSymlink}),yield*n(d);else if(a.isFile||a.isSymlink){if(!s||i&&!i.some(u=>a.name.endsWith(u.startsWith(".")?u:`.${u}`)))continue;yield{path:d,name:a.name,isFile:a.isFile,isDirectory:!1,isSymlink:a.isSymlink}}}}};yield*n(r)},async chmod(r,t){let{chmod:o}=await import("./unstable_chmod-WRDBWEC2.js");await o(r,t)}}},Oe=()=>({join:J,resolve:he,dirname:ie,basename:ee,extname:fe,normalize:de,isAbsolute:me,relative:Re,parse:Ae,format:ce,sep:B,delimiter:re}),He=()=>({async spawn(e,r=[],t){let o=G(t),i=await new Deno.Command(e,{args:r,cwd:t?.cwd,env:t?.env,stdin:o.stdin,stdout:o.stdout,stderr:o.stderr,signal:t?.signal}).output();return{success:i.success,code:i.code,stdout:o.stdout==="piped"?i.stdout:new Uint8Array,stderr:o.stderr==="piped"?i.stderr:new Uint8Array}},async exec(e,r=[],t){let o=await this.spawn(e,r,t);if(!o.success){let s=new TextDecoder().decode(o.stderr);throw new Q(e,o.code,s)}return new TextDecoder().decode(o.stdout).trim()},async execJson(e,r=[],t){let o=await this.exec(e,r,t);return JSON.parse(o)},spawnChild(e,r=[],t){let o=G(t),i=new Deno.Command(e,{args:r,cwd:t?.cwd,env:t?.env,stdin:o.stdin,stdout:o.stdout,stderr:o.stderr,signal:t?.signal}).spawn(),f=(n,l)=>l!=="piped"||!n?Promise.resolve(new Uint8Array):new Response(n).arrayBuffer().then(a=>new Uint8Array(a));return{pid:i.pid,stdin:o.stdin==="piped"?i.stdin:null,stdout:o.stdout==="piped"?i.stdout:null,stderr:o.stderr==="piped"?i.stderr:null,status:i.status.then(n=>({success:n.success,code:n.code,signal:n.signal??void 0})),output:async()=>{let n=o.stdout==="piped"?i.stdout:null,l=o.stderr==="piped"?i.stderr:null,[a,d,u]=await Promise.all([i.status,f(n,o.stdout),f(l,o.stderr)]);return{success:a.success,code:a.code,stdout:d,stderr:u}},kill:n=>{i.kill(n)}}}}),ke=()=>({get(e){return Deno.env.get(e)},set(e,r){Deno.env.set(e,r)},delete(e){Deno.env.delete(e)},has(e){return Deno.env.get(e)!==void 0},toObject(){return Deno.env.toObject()}}),Le=()=>({exit(e){Deno.exit(e)},setExitCode(e){Deno.exitCode=e},cwd(){return Deno.cwd()},chdir(e){Deno.chdir(e)},hostname(){return Deno.hostname()},execPath(){return Deno.execPath()},args:Deno.args,pid:Deno.pid,stdin:Deno.stdin.readable,stdout:Deno.stdout.writable,stderr:Deno.stderr.writable}),En=()=>{let e=be(),r=Oe(),t=He(),o=ke(),s=Le();return{name:"deno",version:Deno.version.deno,capabilities:Fe,fs:e,path:r,exec:t,env:o,process:s}};export{Fe as DENO_CAPABILITIES,En as createDenoRuntime};
@@ -0,0 +1,6 @@
1
+ import{c as h,d as j}from"./chunk-FKF2SWQM.js";import{a as M,c as g,e as P}from"./chunk-DXB73IDG.js";var m=g((v,d)=>{if(!globalThis.DOMException)try{let{MessageChannel:e}=M("worker_threads"),t=new e().port1,r=new ArrayBuffer;t.postMessage(r,[r,r])}catch(e){e.constructor.name==="DOMException"&&(globalThis.DOMException=e.constructor)}d.exports=globalThis.DOMException});var b=P(m(),1);import{statSync as S,createReadStream as T,promises as w}from"fs";import{basename as _}from"path";var E=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase();function F(e){if(E(e)!=="object")return!1;let t=Object.getPrototypeOf(e);return t==null?!0:(t.constructor&&t.constructor.toString())===Object.toString()}var p=F;var u=function(e,t,r,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},a=function(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)},s,c,x="The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.",f=class e{constructor(t){s.set(this,void 0),c.set(this,void 0),u(this,s,t.path,"f"),u(this,c,t.start||0,"f"),this.name=_(a(this,s,"f")),this.size=t.size,this.lastModified=t.lastModified}slice(t,r){return new e({path:a(this,s,"f"),lastModified:this.lastModified,size:r-t,start:t})}async*stream(){let{mtimeMs:t}=await w.stat(a(this,s,"f"));if(t>this.lastModified)throw new b.default(x,"NotReadableError");this.size&&(yield*T(a(this,s,"f"),{start:a(this,c,"f"),end:a(this,c,"f")+this.size-1}))}get[(s=new WeakMap,c=new WeakMap,Symbol.toStringTag)](){return"File"}};function y(e,{mtimeMs:t,size:r},o,i={}){let n;p(o)?[i,n]=[o,void 0]:n=o;let l=new f({path:e,size:r,lastModified:t});return n||(n=l.name),new h([l],n,{...i,lastModified:l.lastModified})}function G(e,t,r={}){let o=S(e);return y(e,o,t,r)}async function A(e,t,r){let o=await w.stat(e);return y(e,o,t,r)}export{A as fileFromPath,G as fileFromPathSync,j as isFile};
2
+ /*! Bundled license information:
3
+
4
+ node-domexception/index.js:
5
+ (*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
6
+ */
@@ -0,0 +1 @@
1
+ import{a as y,b as h,c as k,d as T}from"./chunk-MNRDBZTT.js";import"./chunk-LRL56YFE.js";import{a as u,e as p}from"./chunk-OLM5RTFK.js";import"./chunk-DXB73IDG.js";var c=class{capabilities=["text_generation","streaming","tool_calling","vision","audio","structured_output","reasoning"];provider="gemini";modelId;client;config;constructor(e,t){this.client=e,this.config=t,this.modelId=t.model}async generateText(e,t){let a=C(this.config,e);try{let n=await this.client.models.generateContent({model:this.config.model,...a,config:{...a.config,httpOptions:t!==void 0?{signal:t}:void 0}});return k(n,this.modelId)}catch(n){throw S(n)}}async*streamText(e,t){let a=C(this.config,e);try{let n=await this.client.models.generateContentStream({model:this.config.model,...a,config:{...a.config,httpOptions:t!==void 0?{signal:t}:void 0}}),r=0,i=0;for await(let l of n){let g=l?.candidates??[];if(g.length>0){let f=g[0],R=f?.content?.parts??[];for(let s of R)s.text!==void 0&&(yield{kind:"content_delta",textDelta:s.text}),s.functionCall!==void 0&&(yield{kind:"tool_call_delta",toolCall:{id:s.functionCall.name,name:s.functionCall.name,arguments:s.functionCall.args??{}}});let d=f?.finishReason;if(d!=null){let s=l?.usageMetadata;r=s?.promptTokenCount??r,i=s?.candidatesTokenCount??i;let m="end_turn";d==="MAX_TOKENS"&&(m="max_tokens"),yield{kind:"message_done",stopReason:m,usage:{inputTokens:r,outputTokens:i,totalTokens:r+i}}}}}}catch(n){yield{kind:"error",error:S(n)}}}async close(){}getRawClient(){return this.client}},v={provider:"gemini",async createModel(o){let{GoogleGenAI:e}=await import("./node-RWYXITVV.js"),t=new e({apiKey:o.apiKey});return new c(t,o)}},C=(o,e)=>{let{contents:t,systemInstruction:a}=y(e.messages),n={maxOutputTokens:e.maxTokens??o.maxTokens};e.temperature!==void 0&&(n.temperature=e.temperature),e.topP!==void 0&&(n.topP=e.topP),e.stopWords!==void 0&&(n.stopSequences=e.stopWords),e.responseFormat!==void 0&&e.responseFormat.type==="json_schema"&&(n.responseMimeType="application/json",n.responseSchema=e.responseFormat.jsonSchema),e.thinkingBudget!==void 0&&(n.thinkingConfig={thinkingBudget:e.thinkingBudget});let r={contents:t,config:n},i=e.system??a;return i!=null&&(r.systemInstruction=i),e.tools!==void 0&&(r.tools=h(e.tools)),e.safetySettings!==void 0&&(r.safetySettings=e.safetySettings),r},S=o=>{if(o instanceof u)return o;let e=o instanceof Error?o:new Error(String(o)),t=T(o);return p("gemini",t,e)};export{c as GeminiModel,v as geminiFactory};
@@ -0,0 +1 @@
1
+ import{a as g}from"./chunk-BK2BDHKB.js";import"./chunk-AGPCY6XP.js";import{a as d}from"./chunk-GF2UL6TT.js";import{a as b,b as v,e as x,g as B,h as P,j as C,k}from"./chunk-BKVQBSFV.js";import{c,d as n,f as i,g as u,l as h,n as w,o as y}from"./chunk-VN5R2F7I.js";import"./chunk-LRL56YFE.js";import{a as f}from"./chunk-N3MMGLBM.js";import{a as p}from"./chunk-2N4GTHXQ.js";import"./chunk-W5PG6EYP.js";import"./chunk-OLM5RTFK.js";import"./chunk-WKFEU6N7.js";import"./chunk-Z7742D7Q.js";import"./chunk-VTQ72OK7.js";import"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";var T=new f({description:"AI provider interface \u2014 ask questions, generate content",modules:{ask:{description:"Send a prompt to an AI provider",load:()=>import("./ask-IY54PGL5.js")},list:{description:"List available AI providers",load:()=>import("./list-FT2F44YC.js")}}});var R=d;var s=async t=>{try{return await Deno.stat(t),!0}catch{return!1}},S=async(t,e)=>{try{let o=await Deno.readTextFile(t);return JSON.parse(o)[e]??null}catch{return null}},J=async t=>{let e=[];return(await s(`${t}/package.json`)||await s(`${t}/deno.json`))&&e.push("typescript"),await s(`${t}/go.mod`)&&e.push("go"),await s(`${t}/Cargo.toml`)&&e.push("rust"),(await s(`${t}/pyproject.toml`)||await s(`${t}/setup.py`))&&e.push("python"),e},L=async t=>{let e=[],o=await S(`${t}/package.json`,"dependencies");return o!==null&&("react"in o&&e.push("react"),"vue"in o&&e.push("vue"),"svelte"in o&&e.push("svelte"),"next"in o&&e.push("nextjs"),"express"in o&&e.push("express"),"hono"in o&&e.push("hono")),e},N=async t=>{let e=[];return await s(`${t}/.github/workflows`)&&e.push("github-actions"),await s(`${t}/.gitlab-ci.yml`)&&e.push("gitlab-ci"),await s(`${t}/Jenkinsfile`)&&e.push("jenkins"),await s(`${t}/.circleci`)&&e.push("circleci"),e},F=async t=>{if(await s(`${t}/deno.json`))return"deno";let e=await S(`${t}/package.json`,"devDependencies");if(e!==null){if("vitest"in e)return"vitest";if("jest"in e)return"jest";if("playwright"in e)return"playwright"}return null},A=async t=>{let[e,o,a,l]=await Promise.all([J(t),L(t),N(t),F(t)]);return{languages:e,frameworks:o,ci:a,testRunner:l}};var Ie=async t=>{let e=h({renderer:y.ansi(),sink:w.stdout()}),o=Deno.cwd();if(await k(o))return e.writeln(u("noskills is already initialized in this project.")),e.writeln(n("Run `noskills sync` to regenerate tool files.")),await e.close(),p(void 0);e.writeln(c("noskills init")),e.writeln(""),e.writeln(n("Scanning project..."));let a=await A(o);for(let r of a.languages)e.writeln(" ",i("\u2714"),` ${r}`);for(let r of a.frameworks)e.writeln(" ",i("\u2714"),` ${r}`);for(let r of a.ci)e.writeln(" ",i("\u2714"),` ${r}`);a.testRunner!==null&&e.writeln(" ",i("\u2714"),` test runner: ${a.testRunner}`),e.writeln(""),e.writeln(n("Detecting AI providers..."));let l=await R();for(let r of l)r.available?e.writeln(" ",i("\u25CF")," ",c(`${r.name} (${r.alias})`),n(` ${r.detail}`)):e.writeln(" ",n("\u25CB")," ",n(`${r.name} (${r.alias}) ${r.detail}`));let m=l.filter(r=>r.available).map(r=>r.name);e.writeln(""),e.writeln(n("Initializing...")),await C(o),e.writeln(" Created .nos/");for(let r of g)await P(o,r);e.writeln(` Bootstrapped ${g.length} concerns into .nos/concerns/`);let $=v([],m,a);await B(o,$),e.writeln(" Created .nos/config.json");let D=b();await x(o,D),e.writeln(" Created .nos/.state/state.json"),e.writeln("");let I=m.length;return e.writeln(i("Done."),` ${I} AI provider(s) detected.`),e.writeln("Start a spec with: ",c('noskills spec new "..."')),await e.close(),p(void 0)};export{Ie as main};
@@ -0,0 +1,3 @@
1
+ import{a as S,b as g,d as T,e as m,f,g as y}from"./chunk-YD3YJNYK.js";import"./chunk-W5PG6EYP.js";import{a as l}from"./chunk-OLM5RTFK.js";import"./chunk-WKFEU6N7.js";import"./chunk-Z7742D7Q.js";import"./chunk-VTQ72OK7.js";import"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";var k=class{capabilities=["text_generation","streaming"];provider="kiro";modelId;binary;config;constructor(e,r){this.binary=e,this.config=r,this.modelId=r.model}async generateText(e,r){let o=v(this.config,e),c=y(e.messages,e.system);o.push("--prompt",c);let s=g(this.binary,o,{signal:r}),u=m(s.stderr),t=await T(s.stdout,this.modelId),d=await s.waitForExit(),i=await u,a=f("kiro",d.code,i);if(a!==null)throw a;return t}async*streamText(e,r){let o=v(this.config,e),c=y(e.messages,e.system);o.push("--prompt",c);let s=g(this.binary,o,{signal:r}),u=m(s.stderr);try{let t=new TextDecoder,d=s.stdout.getReader(),i="",a=await d.read();for(;a.done!==!0;){i+=t.decode(a.value,{stream:!0});let x=i.split(`
2
+ `);i=x.pop()??"";for(let _ of x){let p=_.trim();if(p.length!==0){try{let A=JSON.parse(p),w=C(A);if(w!==null){yield w;continue}}catch{}yield{kind:"content_delta",textDelta:p+`
3
+ `}}}a=await d.read()}d.releaseLock(),i.trim().length>0&&(yield{kind:"content_delta",textDelta:i.trim()});let E=await s.waitForExit(),b=await u,h=f("kiro",E.code,b);h!==null?yield{kind:"error",error:h}:yield{kind:"message_done",stopReason:"end_turn",usage:{inputTokens:0,outputTokens:0,totalTokens:0}}}catch(t){t instanceof l?yield{kind:"error",error:t}:yield{kind:"error",error:new l(t instanceof Error?t.message:String(t),{provider:"kiro",cause:t instanceof Error?t:void 0})}}}close(){return Promise.resolve()}getRawClient(){return null}},O={provider:"kiro",async createModel(n){let e=await S("kiro",n);return new k(e,n)}},v=(n,e)=>{let r=[];r.push("--output","json"),r.push("--model",n.model),e.maxTokens!==void 0&&r.push("--max-tokens",String(e.maxTokens));let o=n.properties?.args;return o!==void 0&&r.push(...o),r},C=n=>{if(n===null||typeof n!="object")return null;let e=n;if(e.type==="content"||e.type==="text"){let r=e.text??e.content;return r!==void 0?{kind:"content_delta",textDelta:String(r)}:null}return e.type==="done"||e.type==="result"||e.done===!0?{kind:"message_done",stopReason:"end_turn",usage:{inputTokens:e.usage?.input_tokens??0,outputTokens:e.usage?.output_tokens??0,totalTokens:(e.usage?.input_tokens??0)+(e.usage?.output_tokens??0)}}:e.type==="error"?{kind:"error",error:new l(e.error?.message??e.message??"Unknown Kiro error",{provider:"kiro"})}:null};export{k as KiroModel,O as kiroFactory};
@@ -0,0 +1 @@
1
+ import{a as p}from"./chunk-GF2UL6TT.js";import{c as t,d as a,f as l,k as n,l as o,n as m,o as d}from"./chunk-VN5R2F7I.js";import{a as i}from"./chunk-2N4GTHXQ.js";import"./chunk-W5PG6EYP.js";import"./chunk-WKFEU6N7.js";import"./chunk-Z7742D7Q.js";import"./chunk-VTQ72OK7.js";import"./chunk-QXTK62N4.js";import"./chunk-DXB73IDG.js";var $=async b=>{let e=o({renderer:d.ansi(),sink:m.stdout()});e.writeln(t("AI Providers")),e.writeln("");let r=await p(),v=r.map(s=>[s.available?l("\u25CF"):a("\u25CB"),s.available?t(`${s.name} (${s.alias})`):a(`${s.name} (${s.alias})`),a(s.type),s.available?s.detail:a(s.detail)]);e.writeln(n(["","Provider","Type","Status"],v));let u=r.filter(s=>s.available).length;return e.writeln(a(`${u}/${r.length} providers available`)),await e.close(),i(void 0)};export{$ as main};
@@ -0,0 +1,3 @@
1
+ import{a as g}from"./chunk-XMTGT2NJ.js";import{b as C,c as y,d as O}from"./chunk-BK2BDHKB.js";import{a as E,c as k,d as _,f as I}from"./chunk-LXVBR775.js";import{c as m,d as x,e as w,f as D,i as S,k as v}from"./chunk-BKVQBSFV.js";import{a as d,b as h}from"./chunk-2N4GTHXQ.js";import"./chunk-DXB73IDG.js";var q=[{id:"status_quo",text:"What does the user do today without this feature?",concerns:["product:status_quo","eng:replace_scope","qa:regression_risk"]},{id:"ambition",text:"Describe the 1-star and 10-star versions.",concerns:["product:scope_direction","eng:complexity_tier","qa:test_depth"]},{id:"reversibility",text:"Does this change involve an irreversible decision?",concerns:["product:one_way_door","eng:migration_strategy","qa:verification_stringency"]},{id:"user_impact",text:"Does this change affect existing users' behavior?",concerns:["product:breaking_change","eng:backward_compat","qa:regression_tests"]},{id:"verification",text:"How do you verify this works correctly?",concerns:["product:success_metric","eng:test_strategy","qa:acceptance_criteria"]},{id:"scope_boundary",text:"What should this feature NOT do?",concerns:["product:focus","eng:out_of_scope","qa:negative_tests"]}],l=t=>q.map(n=>({...n,extras:C(t,n.id)})),u=(t,n)=>{let s=new Set(n.map(o=>o.questionId));for(let o of t)if(!s.has(o.id))return o;return null},B=t=>{let n=new Set(t.map(s=>s.questionId));return q.every(s=>n.has(s.id))};var f=(t,n,s)=>{switch(t.phase){case"IDLE":return N();case"DISCOVERY":return $(t,n,s);case"SPEC_DRAFT":return L(t);case"SPEC_APPROVED":case"BUILDING":return U(t,n,s);case"BLOCKED":return W(t);case"DONE":return G(t);default:return N()}},N=()=>({phase:"IDLE",instruction:'No active spec. Start one with: noskills spec new "description"'}),$=(t,n,s)=>{let o=l(n),e=u(o,t.discovery.answers);if(e===null)return{phase:"DISCOVERY",instruction:"All discovery questions answered. Run: noskills approve",question:{id:"",text:"",concerns:[],extras:[]},context:{rules:s,concernReminders:[]},transition:{onComplete:"noskills approve",remainingQuestions:0}};let r=t.discovery.answers.length,i=o.length;return{phase:"DISCOVERY",instruction:"Ask the user the following question and relay their answer.",question:{id:e.id,text:e.text,concerns:[...e.concerns],extras:e.extras.map(c=>c.text)},context:{rules:s,concernReminders:y(n)},transition:{onComplete:'noskills next --answer="..."',remainingQuestions:i-r-1}}},L=t=>({phase:"SPEC_DRAFT",instruction:"Spec draft is ready for review. Ask the user to review and approve.",specPath:t.specState.path??"",transition:{onApprove:"noskills approve"}}),U=(t,n,s)=>{let o=O(n),e={phase:"BUILDING",instruction:"Read the spec and implement the next task. Report progress when done.",context:{rules:s,concernReminders:y(n)},transition:{onComplete:'noskills next --answer="..."',onBlocked:'noskills block "reason"',iteration:t.building.iteration}};return o.length>0?{...e,concernTensions:o}:e},W=t=>({phase:"BLOCKED",instruction:"A decision is needed. Ask the user.",reason:t.building.lastProgress??"Unknown",transition:{onResolved:'noskills next --answer="..."'}}),G=t=>({phase:"DONE",summary:{spec:t.spec,iterations:t.building.iteration,decisionsCount:t.decisions.length}});var b=(t,n,s,o)=>{let e=[];e.push(`# Spec: ${t}`),e.push(""),e.push("## Status: draft"),e.push(""),s.length>0&&(e.push(`## Concerns: ${s.map(r=>r.id).join(", ")}`),e.push("")),e.push("## Discovery Answers"),e.push("");for(let r of n)e.push(`### ${r.questionId}`),e.push(""),e.push(r.answer),e.push("");for(let r of s)if(r.specSections.length>0)for(let i of r.specSections)e.push(`## ${i} (${r.id})`),e.push(""),e.push("_To be filled in during implementation._"),e.push("");if(o.length>0){e.push("## Decisions"),e.push(""),e.push("| # | Decision | Choice | Promoted |"),e.push("|---|----------|--------|----------|");for(let r=0;r<o.length;r++){let i=o[r];e.push(`| ${r+1} | ${i.question} | ${i.choice} | ${i.promoted?"yes":"no"} |`)}e.push("")}return e.push("## Tasks"),e.push(""),e.push("_To be generated from discovery answers._"),e.push(""),e.push("## Verification"),e.push(""),e.push("_To be defined based on discovery answers._"),e.push(""),e.join(`
2
+ `)};var A=async(t,n,s)=>{if(n.spec===null)throw new Error("No active spec");let o=`${t}/${m.specDir(n.spec)}`,e=`${t}/${m.specFile(n.spec)}`;await Deno.mkdir(o,{recursive:!0});let r=b(n.spec,n.discovery.answers,s,n.decisions);return await Deno.writeTextFile(e,r),e};var X=async t=>{let n=Deno.cwd();if(!await v(n)){let a=JSON.stringify({error:"noskills not initialized. Run: noskills init"});return await p(a),h({exitCode:1})}let s=null;if(t!==void 0)for(let a of t)a.startsWith("--answer=")&&(s=a.slice(9));let o=await x(n),e=await D(n);if(e===null){let a=JSON.stringify({error:"No config found"});return await p(a),h({exitCode:1})}let i=(await S(n)).filter(a=>e.concerns.includes(a.id));if(s!==null){let a=await j(n,o,e,i,s);await w(n,a);let T=await g(n),F=f(a,i,T);return await p(JSON.stringify(F,null,2)),d(void 0)}let c=await g(n),Q=f(o,i,c);return await p(JSON.stringify(Q,null,2)),d(void 0)},j=async(t,n,s,o,e)=>{switch(n.phase){case"DISCOVERY":{let r=l(o),i=u(r,n.discovery.answers);if(i===null)return n;let c=k(n,i.id,e);return B(c.discovery.answers)&&(c=_(c),await A(t,c,o)),c}case"BUILDING":return I(n,e);case"BLOCKED":return E(n,"BUILDING");default:return n}},p=async t=>{let n=new TextEncoder;await Deno.stdout.write(n.encode(t+`
3
+ `))};export{X as main};