@swifty.js/swifty 0.0.24 → 0.0.25

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __swiftyCreateRequire } from "node:module";
3
3
  const require = __swiftyCreateRequire(import.meta.url);
4
- import{A as fi,G as bi,H as ue,I as me,J as gi,K as de,L as xe,M as hi,N as yi,O as ve,P as fe,Q as be,R as wi,T as ki,V as ji,W as Ei,X as qi,Y as Je,Z as Ke,_ as Si,a as We,aa as Ti,ba as Ci,ca as zi,d as xt,da as _i,ea as Pi,fa as Ai,ga as Ri,ha as Mi,i as ri,ia as Oi,j as Ze,ja as Li,k as Ye,ka as Fi,la as Ui,ma as Ni,na as Di,p as ci,r as pi,t as li,u as ui,v as mi,w as di,x as Ve,y as xi,z as vi}from"./chunk-FAJYJI6T.js";import{a as $e,b as Za}from"./chunk-XBHVVB5A.js";import{c as Ja}from"./chunk-5KXBVL2A.js";import{a as oi,b as ti,i as V}from"./chunk-VQUWSKQQ.js";import{a as O,e as Ka,f as Qa,g as ce,h as Be,i as ei,j as ai,k as pe,o as ii}from"./chunk-MWZIARZE.js";import{e as Xe,f as ni,g as si}from"./chunk-W37Y53LX.js";import"./chunk-FZPTNGTU.js";import{f as J}from"./chunk-NR62AA5K.js";import{b as Ya,e as Va}from"./chunk-QN27QEFS.js";import"./chunk-7MHXMDYC.js";import{D as q,I as re,J as H,R as Ge}from"./chunk-SIWLMWHH.js";import{a as le}from"./chunk-A2VR3BC4.js";import"./chunk-E55KH72M.js";import{a as x,b as l,d as dt}from"./chunk-X3UA5OZL.js";var Hi=l((Fl,Ii)=>{"use strict";Ii.exports=vt;function vt(e,a){if(!Array.isArray(e))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var i=[],n=0;n<e.length;n++){var s=e[n];if(!Array.isArray(s)||s.length<2)throw new TypeError("each array member must be [ee, events...]");for(var o=s[0],t=1;t<s.length;t++){var r=s[t],c=ft(r,p);o.on(r,c),i.push({ee:o,event:r,fn:c})}}function p(){m(),a.apply(null,arguments)}function m(){for(var d,f=0;f<i.length;f++)d=i[f],d.ee.removeListener(d.event,d.fn)}function u(d){a=d}return u.cancel=m,u}function ft(e,a){return function(n){for(var s=new Array(arguments.length),o=this,t=e==="error"?n:null,r=0;r<s.length;r++)s[r]=arguments[r];a(t,o,e,s)}}});var ea=l((Ul,Qe)=>{"use strict";Qe.exports=gt;Qe.exports.isFinished=Bi;var $i=jt(),Gi=Hi(),bt=typeof setImmediate=="function"?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function gt(e,a){return Bi(e)!==!1?(bt(a,null,e),e):(yt(e,Et(a)),e)}function Bi(e){var a=e.socket;if(typeof e.finished=="boolean")return!!(e.finished||a&&!a.writable);if(typeof e.complete=="boolean")return!!(e.upgrade||!a||!a.readable||e.complete&&!e.readable)}function ht(e,a){var i,n,s=!1;function o(r){i.cancel(),n.cancel(),s=!0,a(r)}i=n=Gi([[e,"end","finish"]],o);function t(r){e.removeListener("socket",t),!s&&i===n&&(n=Gi([[r,"error","close"]],o))}if(e.socket){t(e.socket);return}e.on("socket",t),e.socket===void 0&&kt(e,t)}function yt(e,a){var i=e.__onFinished;(!i||!i.queue)&&(i=e.__onFinished=wt(e),ht(e,i)),i.queue.push(a)}function wt(e){function a(i){if(e.__onFinished===a&&(e.__onFinished=null),!!a.queue){var n=a.queue;a.queue=null;for(var s=0;s<n.length;s++)n[s](i,e)}}return a.queue=[],a}function kt(e,a){var i=e.assignSocket;typeof i=="function"&&(e.assignSocket=function(s){i.call(this,s),a(s)})}function jt(){try{return x("async_hooks")}catch{return{}}}function Et(e){var a;return $i.AsyncResource&&(a=new $i.AsyncResource(e.name||"bound-anonymous-fn")),!a||!a.runInAsyncScope?e:a.runInAsyncScope.bind(a,e,null)}});var Wi=l((Nl,Xi)=>{"use strict";Xi.exports=qt;function qt(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(let a of e)if(typeof a!="function")throw new TypeError("Middleware must be composed of functions!");return function(a,i){let n=-1;return s(0);function s(o){if(o<=n)return Promise.reject(new Error("next() called multiple times"));n=o;let t=e[o];if(o===e.length&&(t=i),!t)return Promise.resolve();try{return Promise.resolve(t(a,s.bind(null,o+1)))}catch(r){return Promise.reject(r)}}}}});var Zi=l((Dl,St)=>{St.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var K=l((Il,Vi)=>{"use strict";var aa=Zi();Vi.exports=_;_.message=aa;_.code=Tt(aa);_.codes=Ct(aa);_.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};_.empty={204:!0,205:!0,304:!0};_.retry={502:!0,503:!0,504:!0};function Tt(e){var a={};return Object.keys(e).forEach(function(n){var s=e[n],o=Number(n);a[s.toLowerCase()]=o}),a}function Ct(e){return Object.keys(e).map(function(i){return Number(i)})}function zt(e){var a=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(_.code,a))throw new Error('invalid status message: "'+e+'"');return _.code[a]}function Yi(e){if(!Object.prototype.hasOwnProperty.call(_.message,e))throw new Error("invalid status code: "+e);return _.message[e]}function _(e){if(typeof e=="number")return Yi(e);if(typeof e!="string")throw new TypeError("code must be a number or string");var a=parseInt(e,10);return isNaN(a)?zt(e):Yi(a)}});var na=l((Hl,en)=>{"use strict";var _t=x("path").relative;en.exports=Ot;var Pt=process.cwd();function Ki(e,a){for(var i=e.split(/[ ,]+/),n=String(a).toLowerCase(),s=0;s<i.length;s++){var o=i[s];if(o&&(o==="*"||o.toLowerCase()===n))return!0}return!1}function At(e,a,i){var n=Object.getOwnPropertyDescriptor(e,a),s=n.value;return n.get=function(){return s},n.writable&&(n.set=function(t){return s=t}),delete n.value,delete n.writable,Object.defineProperty(e,a,n),n}function Rt(e){for(var a="",i=0;i<e;i++)a+=", arg"+i;return a.substr(2)}function Mt(e){var a=this.name+": "+this.namespace;this.message&&(a+=" deprecated "+this.message);for(var i=0;i<e.length;i++)a+=`
4
+ import{A as fi,G as bi,H as ue,I as me,J as gi,K as de,L as xe,M as hi,N as yi,O as ve,P as fe,Q as be,R as wi,T as ki,V as ji,W as Ei,X as qi,Y as Je,Z as Ke,_ as Si,a as We,aa as Ti,ba as Ci,ca as zi,d as xt,da as _i,ea as Pi,fa as Ai,ga as Ri,ha as Mi,i as ri,ia as Oi,j as Ze,ja as Li,k as Ye,ka as Fi,la as Ui,ma as Ni,na as Di,p as ci,r as pi,t as li,u as ui,v as mi,w as di,x as Ve,y as xi,z as vi}from"./chunk-EMNNDZ4Z.js";import{a as $e,b as Za}from"./chunk-XBHVVB5A.js";import{c as Ja}from"./chunk-5KXBVL2A.js";import{a as oi,b as ti,i as V}from"./chunk-VQUWSKQQ.js";import{a as O,e as Ka,f as Qa,g as ce,h as Be,i as ei,j as ai,k as pe,o as ii}from"./chunk-MWZIARZE.js";import{e as Xe,f as ni,g as si}from"./chunk-W37Y53LX.js";import"./chunk-FZPTNGTU.js";import{f as J}from"./chunk-NR62AA5K.js";import{b as Ya,e as Va}from"./chunk-QN27QEFS.js";import"./chunk-7MHXMDYC.js";import{D as q,I as re,J as H,R as Ge}from"./chunk-SIWLMWHH.js";import{a as le}from"./chunk-A2VR3BC4.js";import"./chunk-E55KH72M.js";import{a as x,b as l,d as dt}from"./chunk-X3UA5OZL.js";var Hi=l((Fl,Ii)=>{"use strict";Ii.exports=vt;function vt(e,a){if(!Array.isArray(e))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var i=[],n=0;n<e.length;n++){var s=e[n];if(!Array.isArray(s)||s.length<2)throw new TypeError("each array member must be [ee, events...]");for(var o=s[0],t=1;t<s.length;t++){var r=s[t],c=ft(r,p);o.on(r,c),i.push({ee:o,event:r,fn:c})}}function p(){m(),a.apply(null,arguments)}function m(){for(var d,f=0;f<i.length;f++)d=i[f],d.ee.removeListener(d.event,d.fn)}function u(d){a=d}return u.cancel=m,u}function ft(e,a){return function(n){for(var s=new Array(arguments.length),o=this,t=e==="error"?n:null,r=0;r<s.length;r++)s[r]=arguments[r];a(t,o,e,s)}}});var ea=l((Ul,Qe)=>{"use strict";Qe.exports=gt;Qe.exports.isFinished=Bi;var $i=jt(),Gi=Hi(),bt=typeof setImmediate=="function"?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function gt(e,a){return Bi(e)!==!1?(bt(a,null,e),e):(yt(e,Et(a)),e)}function Bi(e){var a=e.socket;if(typeof e.finished=="boolean")return!!(e.finished||a&&!a.writable);if(typeof e.complete=="boolean")return!!(e.upgrade||!a||!a.readable||e.complete&&!e.readable)}function ht(e,a){var i,n,s=!1;function o(r){i.cancel(),n.cancel(),s=!0,a(r)}i=n=Gi([[e,"end","finish"]],o);function t(r){e.removeListener("socket",t),!s&&i===n&&(n=Gi([[r,"error","close"]],o))}if(e.socket){t(e.socket);return}e.on("socket",t),e.socket===void 0&&kt(e,t)}function yt(e,a){var i=e.__onFinished;(!i||!i.queue)&&(i=e.__onFinished=wt(e),ht(e,i)),i.queue.push(a)}function wt(e){function a(i){if(e.__onFinished===a&&(e.__onFinished=null),!!a.queue){var n=a.queue;a.queue=null;for(var s=0;s<n.length;s++)n[s](i,e)}}return a.queue=[],a}function kt(e,a){var i=e.assignSocket;typeof i=="function"&&(e.assignSocket=function(s){i.call(this,s),a(s)})}function jt(){try{return x("async_hooks")}catch{return{}}}function Et(e){var a;return $i.AsyncResource&&(a=new $i.AsyncResource(e.name||"bound-anonymous-fn")),!a||!a.runInAsyncScope?e:a.runInAsyncScope.bind(a,e,null)}});var Wi=l((Nl,Xi)=>{"use strict";Xi.exports=qt;function qt(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(let a of e)if(typeof a!="function")throw new TypeError("Middleware must be composed of functions!");return function(a,i){let n=-1;return s(0);function s(o){if(o<=n)return Promise.reject(new Error("next() called multiple times"));n=o;let t=e[o];if(o===e.length&&(t=i),!t)return Promise.resolve();try{return Promise.resolve(t(a,s.bind(null,o+1)))}catch(r){return Promise.reject(r)}}}}});var Zi=l((Dl,St)=>{St.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var K=l((Il,Vi)=>{"use strict";var aa=Zi();Vi.exports=_;_.message=aa;_.code=Tt(aa);_.codes=Ct(aa);_.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};_.empty={204:!0,205:!0,304:!0};_.retry={502:!0,503:!0,504:!0};function Tt(e){var a={};return Object.keys(e).forEach(function(n){var s=e[n],o=Number(n);a[s.toLowerCase()]=o}),a}function Ct(e){return Object.keys(e).map(function(i){return Number(i)})}function zt(e){var a=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(_.code,a))throw new Error('invalid status message: "'+e+'"');return _.code[a]}function Yi(e){if(!Object.prototype.hasOwnProperty.call(_.message,e))throw new Error("invalid status code: "+e);return _.message[e]}function _(e){if(typeof e=="number")return Yi(e);if(typeof e!="string")throw new TypeError("code must be a number or string");var a=parseInt(e,10);return isNaN(a)?zt(e):Yi(a)}});var na=l((Hl,en)=>{"use strict";var _t=x("path").relative;en.exports=Ot;var Pt=process.cwd();function Ki(e,a){for(var i=e.split(/[ ,]+/),n=String(a).toLowerCase(),s=0;s<i.length;s++){var o=i[s];if(o&&(o==="*"||o.toLowerCase()===n))return!0}return!1}function At(e,a,i){var n=Object.getOwnPropertyDescriptor(e,a),s=n.value;return n.get=function(){return s},n.writable&&(n.set=function(t){return s=t}),delete n.value,delete n.writable,Object.defineProperty(e,a,n),n}function Rt(e){for(var a="",i=0;i<e;i++)a+=", arg"+i;return a.substr(2)}function Mt(e){var a=this.name+": "+this.namespace;this.message&&(a+=" deprecated "+this.message);for(var i=0;i<e.length;i++)a+=`
5
5
  at `+e[i].toString();return a}function Ot(e){if(!e)throw new TypeError("argument namespace is required");var a=he(),i=$(a[1]),n=i[0];function s(o){ge.call(s,o)}return s._file=n,s._ignored=Ft(e),s._namespace=e,s._traced=Ut(e),s._warned=Object.create(null),s.function=Ht,s.property=$t,s}function Lt(e,a){var i=typeof e.listenerCount!="function"?e.listeners(a).length:e.listenerCount(a);return i>0}function Ft(e){if(process.noDeprecation)return!0;var a=process.env.NO_DEPRECATION||"";return Ki(a,e)}function Ut(e){if(process.traceDeprecation)return!0;var a=process.env.TRACE_DEPRECATION||"";return Ki(a,e)}function ge(e,a){var i=Lt(process,"deprecation");if(!(!i&&this._ignored)){var n,s,o,t,r=0,c=!1,p=he(),m=this._file;for(a?(t=a,o=$(p[1]),o.name=t.name,m=o[0]):(r=2,t=$(p[r]),o=t);r<p.length;r++)if(n=$(p[r]),s=n[0],s===m)c=!0;else if(s===this._file)m=this._file;else if(c)break;var u=n?t.join(":")+"__"+n.join(":"):void 0;if(!(u!==void 0&&u in this._warned)){this._warned[u]=!0;var d=e;if(d||(d=o===t||!o.name?Ji(t):Ji(o)),i){var f=Qi(this._namespace,d,p.slice(r));process.emit("deprecation",f);return}var g=process.stderr.isTTY?Dt:Nt,T=g.call(this,d,n,p.slice(r));process.stderr.write(T+`
6
6
  `,"utf8")}}}function $(e){var a=e.getFileName()||"<anonymous>",i=e.getLineNumber(),n=e.getColumnNumber();e.isEval()&&(a=e.getEvalOrigin()+", "+a);var s=[a,i,n];return s.callSite=e,s.name=e.getFunctionName(),s}function Ji(e){var a=e.callSite,i=e.name;i||(i="<anonymous@"+ia(e)+">");var n=a.getThis(),s=n&&a.getTypeName();return s==="Object"&&(s=void 0),s==="Function"&&(s=n.name||s),s&&a.getMethodName()?s+"."+i:i}function Nt(e,a,i){var n=new Date().toUTCString(),s=n+" "+this._namespace+" deprecated "+e;if(this._traced){for(var o=0;o<i.length;o++)s+=`
7
7
  at `+i[o].toString();return s}return a&&(s+=" at "+ia(a)),s}function Dt(e,a,i){var n="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+e+"\x1B[39m";if(this._traced){for(var s=0;s<i.length;s++)n+=`
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@swifty.js/swifty",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Swifty — CLI coding agent",
5
5
  "keywords": [
6
- "ai",
6
+ "agent",
7
7
  "cli",
8
8
  "coding-agent",
9
- "swifty",
10
- "swifty.js"
9
+ "swifty"
11
10
  ],
12
11
  "homepage": "https://github.com/hangtiancheng/swifty-cli",
13
12
  "bugs": {