flightdesk 0.1.2 → 0.1.3

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 (2) hide show
  1. package/main.js +0 -1
  2. package/package.json +1 -1
package/main.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
3
2
  var Gt=Object.create;var ct=Object.defineProperty;var Bt=Object.getOwnPropertyDescriptor;var Kt=Object.getOwnPropertyNames;var Jt=Object.getPrototypeOf,Yt=Object.prototype.hasOwnProperty;var P=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports);var Qt=(s,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Kt(t))!Yt.call(s,i)&&i!==e&&ct(s,i,{get:()=>t[i],enumerable:!(n=Bt(t,i))||n.enumerable});return s};var C=(s,t,e)=>(e=s!=null?Gt(Jt(s)):{},Qt(t||!s||!s.__esModule?ct(e,"default",{value:s,enumerable:!0}):e,s));var S=P(W=>{var V=class extends Error{constructor(t,e,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=e,this.exitCode=t,this.nestedError=void 0}},L=class extends V{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};W.CommanderError=V;W.InvalidArgumentError=L});var z=P(B=>{var{InvalidArgumentError:Zt}=S(),G=class{constructor(t,e){switch(this.description=e||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,e){return e===this.defaultValue||!Array.isArray(e)?[t]:e.concat(t)}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new Zt(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Xt(s){let t=s.name()+(s.variadic===!0?"...":"");return s.required?"<"+t+">":"["+t+"]"}B.Argument=G;B.humanReadableArgName=Xt});var J=P(ut=>{var{humanReadableArgName:te}=z(),K=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(t){let e=t.commands.filter(i=>!i._hidden),n=t._getHelpCommand();return n&&!n._hidden&&e.push(n),this.sortSubcommands&&e.sort((i,o)=>i.name().localeCompare(o.name())),e}compareOptions(t,e){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(t).localeCompare(n(e))}visibleOptions(t){let e=t.options.filter(i=>!i.hidden),n=t._getHelpOption();if(n&&!n.hidden){let i=n.short&&t._findOption(n.short),o=n.long&&t._findOption(n.long);!i&&!o?e.push(n):n.long&&!o?e.push(t.createOption(n.long,n.description)):n.short&&!i&&e.push(t.createOption(n.short,n.description))}return this.sortOptions&&e.sort(this.compareOptions),e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let e=[];for(let n=t.parent;n;n=n.parent){let i=n.options.filter(o=>!o.hidden);e.push(...i)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(e=>{e.description=e.description||t._argsDescription[e.name()]||""}),t.registeredArguments.find(e=>e.description)?t.registeredArguments:[]}subcommandTerm(t){let e=t.registeredArguments.map(n=>te(n)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){return e.visibleCommands(t).reduce((n,i)=>Math.max(n,e.subcommandTerm(i).length),0)}longestOptionTermLength(t,e){return e.visibleOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestGlobalOptionTermLength(t,e){return e.visibleGlobalOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestArgumentTermLength(t,e){return e.visibleArguments(t).reduce((n,i)=>Math.max(n,e.argumentTerm(i).length),0)}commandUsage(t){let e=t._name;t._aliases[0]&&(e=e+"|"+t._aliases[0]);let n="";for(let i=t.parent;i;i=i.parent)n=i.name()+" "+n;return n+e+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let e=[];return t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&e.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&e.push(`env: ${t.envVar}`),e.length>0?`${t.description} (${e.join(", ")})`:t.description}argumentDescription(t){let e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),e.length>0){let n=`(${e.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}formatHelp(t,e){let n=e.padWidth(t,e),i=e.helpWidth||80,o=2,r=2;function l(p,A){if(A){let M=`${p.padEnd(n+r)}${A}`;return e.wrap(M,i-o,n+r)}return p}function a(p){return p.join(`
4
3
  `).replace(/^/gm," ".repeat(o))}let c=[`Usage: ${e.commandUsage(t)}`,""],u=e.commandDescription(t);u.length>0&&(c=c.concat([e.wrap(u,i,0),""]));let h=e.visibleArguments(t).map(p=>l(e.argumentTerm(p),e.argumentDescription(p)));h.length>0&&(c=c.concat(["Arguments:",a(h),""]));let m=e.visibleOptions(t).map(p=>l(e.optionTerm(p),e.optionDescription(p)));if(m.length>0&&(c=c.concat(["Options:",a(m),""])),this.showGlobalOptions){let p=e.visibleGlobalOptions(t).map(A=>l(e.optionTerm(A),e.optionDescription(A)));p.length>0&&(c=c.concat(["Global Options:",a(p),""]))}let $=e.visibleCommands(t).map(p=>l(e.subcommandTerm(p),e.subcommandDescription(p)));return $.length>0&&(c=c.concat(["Commands:",a($),""])),c.join(`
5
4
  `)}padWidth(t,e){return Math.max(e.longestOptionTermLength(t,e),e.longestGlobalOptionTermLength(t,e),e.longestSubcommandTermLength(t,e),e.longestArgumentTermLength(t,e))}wrap(t,e,n,i=40){let o=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",r=new RegExp(`[\\n][${o}]+`);if(t.match(r))return t;let l=e-n;if(l<i)return t;let a=t.slice(0,n),c=t.slice(n).replace(`\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flightdesk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "FlightDesk CLI - AI task management for Claude Code sessions",
5
5
  "homepage": "https://flightdesk.dev",
6
6
  "main": "main.js",