oh-my-agent 9.0.0 → 9.0.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 +3 -0
- package/bin/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -146,6 +146,7 @@ Pick a preset and you're ready:
|
|
|
146
146
|
| **oma-architecture** | Weighs architecture tradeoffs and draws module boundaries, with ADR/ATAM/CBAM analysis. |
|
|
147
147
|
| **oma-backend** | Builds and secures your APIs in Python, Node.js, or Rust. |
|
|
148
148
|
| **oma-brainstorm** | Explores ideas with you before you commit to building. |
|
|
149
|
+
| **oma-coordination** | Guides manual step-by-step coordination of PM, frontend, backend, mobile, and QA agents. |
|
|
149
150
|
| **oma-db** | Designs your schema, migrations, indexes, and vector stores. |
|
|
150
151
|
| **oma-debug** | Finds the root cause, fixes the bug, and writes a regression test. |
|
|
151
152
|
| **oma-deepsec** | Scans your code for security holes and blocks risky pull requests. |
|
|
@@ -163,6 +164,7 @@ Pick a preset and you're ready:
|
|
|
163
164
|
| **oma-pm** | Plans tasks, breaks down requirements, and defines API contracts. |
|
|
164
165
|
| **oma-qa** | Reviews your code for OWASP security, performance, and accessibility issues. |
|
|
165
166
|
| **oma-recap** | Recaps your conversation history into themed work summaries. |
|
|
167
|
+
| **oma-refactor** | Refactors code without changing its behavior, using hotspot targeting, characterization-test safety nets, and refactor-only commits. |
|
|
166
168
|
| **oma-scholar** | Searches academic literature and helps you run peer review. |
|
|
167
169
|
| **oma-scm** | Manages your branches, merges, worktrees, and Conventional Commits. |
|
|
168
170
|
| **oma-search** | Routes each query to the best source and scores how much you can trust the result. |
|
|
@@ -170,6 +172,7 @@ Pick a preset and you're ready:
|
|
|
170
172
|
| **oma-slide** | Generates distinctive, animation-rich HTML presentation decks and exports to PDF/PNG/PPTX. |
|
|
171
173
|
| **oma-tf-infra** | Provisions multi-cloud infrastructure with Terraform. |
|
|
172
174
|
| **oma-translator** | Translates between languages so it reads like a native wrote it. |
|
|
175
|
+
| **oma-video** | Generates short-form, explainer, and demo videos through a key-optional Remotion pipeline. |
|
|
173
176
|
| **oma-voice** | Generates voiceovers and transcribes audio on-device, no cloud needed. |
|
|
174
177
|
|
|
175
178
|
## How It Works
|
package/bin/cli.js
CHANGED
|
@@ -24,7 +24,7 @@ Expecting one of '${G.join("', '")}'`);if(this._lifeCycleHooks[$])this._lifeCycl
|
|
|
24
24
|
`),this.outputHelp({error:!0});let G=z||{},J=G.exitCode||1,Q=G.code||"commander.error";this._exit(J,Q,$)}_parseOptionsEnv(){this.options.forEach(($)=>{if($.envVar&&$.envVar in u4.env){let z=$.attributeName();if(this.getOptionValue(z)===void 0||["default","config","env"].includes(this.getOptionValueSource(z)))if($.required||$.optional)this.emit(`optionEnv:${$.name()}`,u4.env[$.envVar]);else this.emit(`optionEnv:${$.name()}`)}})}_parseOptionsImplied(){let $=new TX5(this.options),z=(G)=>{return this.getOptionValue(G)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(G))};this.options.filter((G)=>G.implied!==void 0&&z(G.attributeName())&&$.valueFromOption(this.getOptionValue(G.attributeName()),G)).forEach((G)=>{Object.keys(G.implied).filter((J)=>!z(J)).forEach((J)=>{this.setOptionValueWithSource(J,G.implied[J],"implied")})})}missingArgument($){let z=`error: missing required argument '${$}'`;this.error(z,{code:"commander.missingArgument"})}optionMissingArgument($){let z=`error: option '${$.flags}' argument missing`;this.error(z,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue($){let z=`error: required option '${$.flags}' not specified`;this.error(z,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption($,z){let G=(K)=>{let U=K.attributeName(),Z=this.getOptionValue(U),Y=this.options.find((B)=>B.negate&&U===B.attributeName()),W=this.options.find((B)=>!B.negate&&U===B.attributeName());if(Y&&(Y.presetArg===void 0&&Z===!1||Y.presetArg!==void 0&&Z===Y.presetArg))return Y;return W||K},J=(K)=>{let U=G(K),Z=U.attributeName();if(this.getOptionValueSource(Z)==="env")return`environment variable '${U.envVar}'`;return`option '${U.flags}'`},Q=`error: ${J($)} cannot be used with ${J(z)}`;this.error(Q,{code:"commander.conflictingOption"})}unknownOption($){if(this._allowUnknownOption)return;let z="";if($.startsWith("--")&&this._showSuggestionAfterError){let J=[],Q=this;do{let K=Q.createHelp().visibleOptions(Q).filter((U)=>U.long).map((U)=>U.long);J=J.concat(K),Q=Q.parent}while(Q&&!Q._enablePositionalOptions);z=HU2($,J)}let G=`error: unknown option '${$}'${z}`;this.error(G,{code:"commander.unknownOption"})}_excessArguments($){if(this._allowExcessArguments)return;let z=this.registeredArguments.length,G=z===1?"":"s",Q=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${z} argument${G} but got ${$.length}.`;this.error(Q,{code:"commander.excessArguments"})}unknownCommand(){let $=this.args[0],z="";if(this._showSuggestionAfterError){let J=[];this.createHelp().visibleCommands(this).forEach((Q)=>{if(J.push(Q.name()),Q.alias())J.push(Q.alias())}),z=HU2($,J)}let G=`error: unknown command '${$}'${z}`;this.error(G,{code:"commander.unknownCommand"})}version($,z,G){if($===void 0)return this._version;this._version=$,z=z||"-V, --version",G=G||"output the version number";let J=this.createOption(z,G);return this._versionOptionName=J.attributeName(),this._registerOption(J),this.on("option:"+J.name(),()=>{this._outputConfiguration.writeOut(`${$}
|
|
25
25
|
`),this._exit(0,"commander.version",$)}),this}description($,z){if($===void 0&&z===void 0)return this._description;if(this._description=$,z)this._argsDescription=z;return this}summary($){if($===void 0)return this._summary;return this._summary=$,this}alias($){if($===void 0)return this._aliases[0];let z=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)z=this.commands[this.commands.length-1];if($===z._name)throw Error("Command alias can't be the same as its name");let G=this.parent?._findCommand($);if(G){let J=[G.name()].concat(G.aliases()).join("|");throw Error(`cannot add alias '${$}' to command '${this.name()}' as already have command '${J}'`)}return z._aliases.push($),this}aliases($){if($===void 0)return this._aliases;return $.forEach((z)=>this.alias(z)),this}usage($){if($===void 0){if(this._usage)return this._usage;let z=this.registeredArguments.map((G)=>{return wX5(G)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?z:[]).join(" ")}return this._usage=$,this}name($){if($===void 0)return this._name;return this._name=$,this}helpGroup($){if($===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=$,this}commandsGroup($){if($===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=$,this}optionsGroup($){if($===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=$,this}_initOptionGroup($){if(this._defaultOptionGroup&&!$.helpGroupHeading)$.helpGroup(this._defaultOptionGroup)}_initCommandGroup($){if(this._defaultCommandGroup&&!$.helpGroup())$.helpGroup(this._defaultCommandGroup)}nameFromFilename($){return this._name=bz.basename($,bz.extname($)),this}executableDir($){if($===void 0)return this._executableDir;return this._executableDir=$,this}helpInformation($){let z=this.createHelp(),G=this._getOutputContext($);z.prepareContext({error:G.error,helpWidth:G.helpWidth,outputHasColors:G.hasColors});let J=z.formatHelp(this,z);if(G.hasColors)return J;return this._outputConfiguration.stripColor(J)}_getOutputContext($){$=$||{};let z=!!$.error,G,J,Q;if(z)G=(U)=>this._outputConfiguration.writeErr(U),J=this._outputConfiguration.getErrHasColors(),Q=this._outputConfiguration.getErrHelpWidth();else G=(U)=>this._outputConfiguration.writeOut(U),J=this._outputConfiguration.getOutHasColors(),Q=this._outputConfiguration.getOutHelpWidth();return{error:z,write:(U)=>{if(!J)U=this._outputConfiguration.stripColor(U);return G(U)},hasColors:J,helpWidth:Q}}outputHelp($){let z;if(typeof $==="function")z=$,$=void 0;let G=this._getOutputContext($),J={error:G.error,write:G.write,command:this};this._getCommandAndAncestors().reverse().forEach((K)=>K.emit("beforeAllHelp",J)),this.emit("beforeHelp",J);let Q=this.helpInformation({error:G.error});if(z){if(Q=z(Q),typeof Q!=="string"&&!Buffer.isBuffer(Q))throw Error("outputHelp callback must return a string or a Buffer")}if(G.write(Q),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",J),this._getCommandAndAncestors().forEach((K)=>K.emit("afterAllHelp",J))}helpOption($,z){if(typeof $==="boolean"){if($){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption($??"-h, --help",z??"display help for command"),$||z)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption($){return this._helpOption=$,this._initOptionGroup($),this}help($){this.outputHelp($);let z=Number(u4.exitCode??0);if(z===0&&$&&typeof $!=="function"&&$.error)z=1;this._exit(z,"commander.help","(outputHelp)")}addHelpText($,z){let G=["beforeAll","before","after","afterAll"];if(!G.includes($))throw Error(`Unexpected value for position to addHelpText.
|
|
26
26
|
Expecting one of '${G.join("', '")}'`);let J=`${$}Help`;return this.on(J,(Q)=>{let K;if(typeof z==="function")K=z({error:Q.error,command:Q.command});else K=z;if(K)Q.write(`${K}
|
|
27
|
-
`)}),this}_outputHelpIfRequested($){let z=this._getHelpOption();if(z&&$.find((J)=>z.is(J)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function qU2($){return $.map((z)=>{if(!z.startsWith("--inspect"))return z;let G,J="127.0.0.1",Q="9229",K;if((K=z.match(/^(--inspect(-brk)?)$/))!==null)G=K[1];else if((K=z.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(G=K[1],/^\d+$/.test(K[3]))Q=K[3];else J=K[3];else if((K=z.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)G=K[1],J=K[3],Q=K[4];if(G&&Q!=="0")return`${G}=${J}:${parseInt(Q)+1}`;return z})}function zh(){if(u4.env.NO_COLOR||u4.env.FORCE_COLOR==="0"||u4.env.FORCE_COLOR==="false")return!1;if(u4.env.FORCE_COLOR||u4.env.CLICOLOR_FORCE!==void 0)return!0;return}bX5.Command=Gh;bX5.useColor=zh});var jU2=P((yX5)=>{var{Argument:kU2}=NI(),{Command:Jh}=FU2(),{CommanderError:xX5,InvalidArgumentError:NU2}=Xq(),{Help:uX5}=sg(),{Option:AU2}=tg();yX5.program=new Jh;yX5.createCommand=($)=>new Jh($);yX5.createOption=($,z)=>new AU2($,z);yX5.createArgument=($,z)=>new kU2($,z);yX5.Command=Jh;yX5.Option=AU2;yX5.Argument=kU2;yX5.Help=uX5;yX5.CommanderError=xX5;yX5.InvalidArgumentError=NU2;yX5.InvalidOptionArgumentError=NU2});var MU2,Eg4,wg4,Pg4,Cg4,Tg4,bg4,_g4,jI,Sg4,xg4,ug4;var Qh=N(()=>{MU2=w2(jU2(),1),{program:Eg4,createCommand:wg4,createArgument:Pg4,createOption:Cg4,CommanderError:Tg4,InvalidArgumentError:bg4,InvalidOptionArgumentError:_g4,Command:jI,Argument:Sg4,Option:xg4,Help:ug4}=MU2.default});var MI;var Kh=N(()=>{MI={name:"oh-my-agent",version:"9.0.0",description:"Portable multi-agent harness for .agents-based skills and workflows across Antigravity, Claude Code, Codex, OpenCode, and more",type:"module",bin:{"oh-my-agent":"./bin/cli.js",oma:"./bin/cli.js"},files:["bin"],keywords:["oh-my-agent","antigravity",".agents","agent","skills","agent-skills","multi-agent","orchestrator","claude","claude-code","codex","opencode","copilot","cursor","chatgpt","pm","frontend","backend","mobile","qa","debug","terraform","database","workflow","bug-fixing","gemini"],author:"our.first.fluke <our.first.fluke@gmail.com>",contributors:["gracefullight <gracefullight.dev@gmail.com>","gahyun-git <go4it.gh@gmail.com>"],license:"MIT",funding:[{type:"github",url:"https://github.com/sponsors/first-fluke"},{type:"buymeacoffee",url:"https://buymeacoffee.com/firstfluke"}],scripts:{"sync:readme":"node ./scripts/sync-readme.mjs","generate:skill-data":"node ./scripts/generate-skill-data.mjs",build:"bun run generate:skill-data && bun run sync:readme && bun build cli.ts --outfile bin/cli.js --target node --minify --external @napi-rs/keyring",dev:"bun run generate:skill-data && bun run cli.ts",lint:"biome check .","lint:fix":"biome check --write --unsafe .","check:boundaries":"node ./scripts/check-boundaries.mjs",test:"vitest run","test:coverage":"vitest run --coverage",prepublishOnly:"bun run build"},dependencies:{"@clack/prompts":"^1.1.0","@date-fns/tz":"^1.4.1","@napi-rs/keyring":"^1.3.0",axios:"^1.15.0","better-sqlite3":"^12.9.0",chokidar:"^5.0.0",commander:"^14.0.3","date-fns":"^4.2.1",eld:"^2.0.3","fast-xml-parser":"^5",minimatch:"^10.2.5","p-map":"^7.0.4",picocolors:"^1.1.1","puppeteer-core":"^24",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-parse":"^11.0.0","smol-toml":"^1.6.1",unified:"^11.0.5",ws:"^8.18.0",yaml:"^2.8.2",zod:"^4.3.6"},optionalDependencies:{pptxgenjs:"^3.12.0"},devDependencies:{"@biomejs/biome":"^2.4.15","@types/better-sqlite3":"^7.6.13","@types/mdast":"^4.0.4","@types/node":"^24","@types/ws":"^8.18.1","@vitest/coverage-v8":"^4.1.4",typescript:"^6",vitest:"^4.0.18"},repository:{type:"git",url:"https://github.com/first-fluke/oh-my-agent"},antigravity:{skillsPath:".agents/skills",skills:["oma-architecture","oma-brainstorm","oma-coordination","oma-pm","oma-frontend","oma-backend","oma-db","oma-mobile","oma-qa","oma-debug","oma-orchestrator","oma-dev-workflow","oma-tf-infra","oma-scm","oma-pdf","oma-recap"]}}});import*as LY from"node:fs";import{homedir as rX5}from"node:os";import*as Lq from"node:path";function IU2($){if(OI)throw Error("install context already set in this process");OI=$}function RU2(){if(OI===null)throw Error("install context not set — entry point must call setInstallContext()");return OI}function HY(){return RU2().installRoot}function M7(){return RU2().mode}function DU2($){let z=process.env.OMA_HOME,G=$.global===!0||process.env.OMA_INSTALL_GLOBAL==="1";if(z!==void 0&&z!=="")return sX5(z),{installRoot:z,mode:G?"global":"project"};if(G)return{installRoot:rX5(),mode:"global"};return{installRoot:process.cwd(),mode:"project"}}function sX5($){if(!Lq.isAbsolute($))throw Error("OMA_HOME must be absolute path");for(let G of OU2)if($===G||$.startsWith(G+Lq.sep))throw Error(`OMA_HOME=${$} is forbidden (system path ${G})`);let z;try{z=LY.realpathSync($)}catch(G){let J=G instanceof Error?G.message:String(G);throw Error(`OMA_HOME=${$}: ${J}`)}for(let G of OU2)if(z===G||z.startsWith(G+Lq.sep))throw Error(`OMA_HOME=${z} is forbidden (system path ${G})`);try{LY.accessSync(z,LY.constants.W_OK)}catch{throw Error(`OMA_HOME=${z} is not writable`)}}var OI=null,OU2;var VJ=N(()=>{OU2=["/etc","/usr","/bin","/boot","/sys","/proc"]});import{join as tX5}from"node:path";function Hq($){return $.endsWith("/")?$:`${$}/`}function O7($,z){let G=z.split("/").filter((J)=>J.length>0);return tX5($,...G)}var L0=".agents",II,O3,XJ,vU2,EU2,RI,eX5=".antigravitycli",wU2,$L5=".migration-backup",zL5,GL5,JL5,QL5,KL5,Uh;var I3=N(()=>{II=`${L0}/skills`,O3=`${L0}/results`,XJ=`${L0}/state`,vU2=`${XJ}/sessions`,EU2=`${XJ}/retry`,RI=`${XJ}/archive`,wU2=`${L0}/backup`;zL5=Hq(O3),GL5=Hq(XJ),JL5=Hq(eX5),QL5=Hq(wU2),KL5=Hq($L5),Uh=[JL5,zL5,GL5,QL5,KL5]});var y1="first-fluke/oh-my-agent",t4,_z,DI,UL5,Sz,o1;var xz=N(()=>{I3();t4=II,_z=["antigravity","claude","codex","commandcode","cursor","gemini","grok","kiro","qwen"],DI=["pi"],UL5=["copilot","hermes"],Sz=[..._z,...UL5].sort(),o1={antigravity:{projectPath:".gemini/antigravity-cli/skills",homePath:".gemini/antigravity-cli/skills",requiresHomeConsent:!0},claude:{projectPath:".claude/skills",homePath:".claude/skills"},codex:{projectPath:".codex/skills",homePath:".codex/skills"},commandcode:{projectPath:".commandcode/skills",homePath:".commandcode/skills",optIn:!0},copilot:{projectPath:".github/skills",homePath:".copilot/skills"},cursor:{projectPath:".cursor/skills",homePath:".cursor/skills"},gemini:{projectPath:".gemini/skills",homePath:".gemini/skills"},hermes:{projectPath:".hermes/skills/oma",homePath:".hermes/skills/oma",requiresHomeConsent:!0},kiro:{projectPath:".kiro/skills",homePath:".kiro/skills",optIn:!0},qwen:{projectPath:".qwen/skills",homePath:".qwen/skills"}}});var xU2={};K5(xU2,{runAction:()=>d2,resolveJsonMode:()=>R5,printDescribe:()=>AL5,addOutputOptions:()=>D5});function D5($,z="Output as JSON"){return $.option("--json",z).option("--output <format>","Output format (text/json)",(G)=>{let J=G.trim().toLowerCase();if(!qq.includes(J))throw Error(`Invalid output format: ${G}. Expected one of ${qq.join(", ")}`);return J})}function ZL5($){if($?.json)return"json";let z=$?.output?.trim().toLowerCase();if(z&&qq.includes(z))return z;if(process.env[TU2]?.trim().toLowerCase()==="json")return"json";return"text"}function R5($){return ZL5($)==="json"}function bU2($){let z=$.at(-1);return z instanceof jI?z:null}function WL5($){let z=bU2($);if(z)return z.opts();let G=$.at(-1);return G&&typeof G==="object"?G:{}}function YL5($){if($ instanceof Error)return $.message;return String($)}function LJ($){throw Error($)}function Wh($,z){for(let G of $){let J=G.charCodeAt(0);if(J>=0&&J<=31||J===127)LJ(`${z} must not contain control characters`)}}function BL5($,z){if(Wh($,z),/[?#%]/.test($))LJ(`${z} must not contain ?, #, or %`);if($.includes(".."))LJ(`${z} must not contain '..'`)}function VL5($,z){Wh($,z);try{new URL($)}catch{LJ(`${z} must be a valid absolute URL`)}}function Zh($,z,G="text"){if(typeof $==="string"){if(G==="identifier"){BL5($,z);return}if(G==="url"){VL5($,z);return}Wh($,z);return}if(Array.isArray($))for(let[J,Q]of $.entries())Zh(Q,`${z}[${J}]`,G)}function CU2($){let z=$.toLowerCase();if(z==="url"||z.endsWith("url"))return"url";if(z.includes("id")||z.includes("type")||z.includes("vendor")||z.includes("session"))return"identifier";return"text"}function XL5($){let z=$.vendor;if(typeof z==="string"){if(z.split(",").map((K)=>K.trim()).filter(Boolean).filter((K)=>!Sz.includes(K)).length>0)LJ(`vendor must be one of ${Sz.join(", ")}`)}let G=$.output;if(typeof G==="string"&&!qq.includes(G))LJ(`output must be one of ${qq.join(", ")}`)}function LL5($){let z=$.processedArgs??$.args??[];($.registeredArguments??[]).forEach((Q,K)=>{let U=Q.name?.()||String(K),Z=z[K];if(Zh(Z,U,CU2(U)),U==="agent-type"&&typeof Z==="string"&&!PU2.includes(Z))LJ(`agent-type must be one of ${PU2.join(", ")}`)});let J=$.opts();XL5(J);for(let[Q,K]of Object.entries(J))Zh(K,Q,CU2(Q))}function HL5($){return($.registeredArguments??[]).map((z)=>({name:z.name?.()||"",required:!!z.required,variadic:!!z.variadic}))}function qL5($){return $.options.map((z)=>({flags:z.flags,long:z.long||void 0,short:z.short||void 0,description:z.description||"",required:!!z.required||!!z.mandatory,optional:!!z.optional,defaultValue:z.defaultValue}))}function _U2($){let z=[],G=$;while(G?.parent)z.unshift(G.name()),G=G.parent;return z.join(" ")}function FL5($){return $.options.some((z)=>z.long==="--json"||z.long==="--output")}function kL5($){return $.options.some((z)=>z.long==="--dry-run")}function SU2($){return{name:$.name(),path:_U2($),summary:$.summary()||void 0,description:$.description(),arguments:HL5($),options:qL5($),supportsJsonOutput:FL5($),supportsDryRun:kL5($),subcommands:$.commands.map((z)=>SU2(z))}}function NL5($,z){if(!z?.trim())return $;let G=z.trim(),J=[...$.commands];while(J.length>0){let Q=J.shift();if(!Q)continue;if(Q.name()===G||_U2(Q)===G)return Q;J.push(...Q.commands)}return null}function AL5($,z){let G=NL5($,z);if(!G)LJ(`Unknown command: ${z}`);let J={name:$.name(),version:$.version(),description:$.description(),env:{[TU2]:"Set to json to force machine-readable output on commands that support it."},command:SU2(G)};console.log(JSON.stringify(J,null,2))}function d2($,z={}){return async(...G)=>{let J=bU2(G);if(J&&G.length>=2)G[G.length-2]=J.optsWithGlobals();let Q=WL5(G);try{if(J)LL5(J);await $(...G)}catch(K){let U=YL5(K);if(z.supportsJsonOutput&&R5(Q))console.log(JSON.stringify({error:U},null,2));else console.error(U);process.exitCode=1}}}var TU2="OH_MY_AG_OUTPUT_FORMAT",qq,PU2;var z1=N(()=>{Qh();xz();qq=["text","json"],PU2=["backend","frontend","mobile","qa","debug","pm"]});var uU2,yU2=($)=>{return $===12288||$>=65281&&$<=65376||$>=65504&&$<=65510},gU2=($)=>{return $===8987||$===9001||$>=12272&&$<=12287||$>=12289&&$<=12350||$>=12441&&$<=12543||$>=12549&&$<=12591||$>=12593&&$<=12686||$>=12688&&$<=12771||$>=12783&&$<=12830||$>=12832&&$<=12871||$>=12880&&$<=19903||$>=65040&&$<=65049||$>=65072&&$<=65106||$>=65108&&$<=65126||$>=65128&&$<=65131||$>=127488&&$<=127490||$>=127504&&$<=127547||$>=127552&&$<=127560||$>=131072&&$<=196605||$>=196608&&$<=262141};var hU2=N(()=>{uU2=(()=>{let $=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return(z)=>{let G=0;$.lastIndex=0;while($.test(z))G+=1;return z.length-G}})()});var jL5,ML5,fU2,OL5,mU2,IL5,RL5,DL5,iU2=($,z={},G={})=>{let J=z.limit??1/0,Q=z.ellipsis??"",K=z?.ellipsisWidth??(Q?iU2(Q,DL5,G).width:0),U=0,Z=G.controlWidth??0,Y=G.tabWidth??8,W=G.emojiWidth??2,B=2,V=G.regularWidth??1,L=G.wideWidth??2,X=[[IL5,V],[jL5,0],[ML5,Z],[OL5,Y],[mU2,W],[fU2,L]],H=0,q=0,F=$.length,k=0,A=!1,j=F,M=Math.max(0,J-K),O=0,D=0,R=0,I=0;$:while(!0){if(D>O||q>=F&&q>H){let E=$.slice(O,D)||$.slice(H,q);k=0;for(let b of E.replaceAll(RL5,"")){let _=b.codePointAt(0)||0;if(yU2(_))I=2;else if(gU2(_))I=L;else I=V;if(R+I>M)j=Math.min(j,Math.max(O,H)+k);if(R+I>J){A=!0;break $}k+=b.length,R+=I}O=D=0}if(q>=F)break $;for(let E=0,b=X.length;E<b;E++){let[_,h]=X[E];if(_.lastIndex=q,_.test($)){if(k=_===fU2?uU2($.slice(q,_.lastIndex)):_===mU2?1:_.lastIndex-q,I=k*h,R+I>M)j=Math.min(j,q+Math.floor((M-R)/h));if(R+I>J){A=!0;break $}R+=I,O=H,D=q,q=H=_.lastIndex;continue $}}q+=1}return{width:A?M:R,index:A?j:F,truncated:A,ellipsed:A&&J>=K}},cU2;var lU2=N(()=>{hU2();jL5=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,ML5=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,fU2=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,OL5=/\t{1,1000}/y,mU2=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,IL5=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,RL5=/\p{M}+/gu,DL5={limit:1/0,ellipsis:""},cU2=iU2});var vL5,EL5=($,z={})=>{return cU2($,vL5,z).width},M6;var Yh=N(()=>{lU2();vL5={limit:1/0,ellipsis:"",ellipsisWidth:0},M6=EL5});function L$($,z,G){return String($).normalize().split(bL5).map((J)=>TL5(J,z,G)).join(`
|
|
27
|
+
`)}),this}_outputHelpIfRequested($){let z=this._getHelpOption();if(z&&$.find((J)=>z.is(J)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function qU2($){return $.map((z)=>{if(!z.startsWith("--inspect"))return z;let G,J="127.0.0.1",Q="9229",K;if((K=z.match(/^(--inspect(-brk)?)$/))!==null)G=K[1];else if((K=z.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(G=K[1],/^\d+$/.test(K[3]))Q=K[3];else J=K[3];else if((K=z.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)G=K[1],J=K[3],Q=K[4];if(G&&Q!=="0")return`${G}=${J}:${parseInt(Q)+1}`;return z})}function zh(){if(u4.env.NO_COLOR||u4.env.FORCE_COLOR==="0"||u4.env.FORCE_COLOR==="false")return!1;if(u4.env.FORCE_COLOR||u4.env.CLICOLOR_FORCE!==void 0)return!0;return}bX5.Command=Gh;bX5.useColor=zh});var jU2=P((yX5)=>{var{Argument:kU2}=NI(),{Command:Jh}=FU2(),{CommanderError:xX5,InvalidArgumentError:NU2}=Xq(),{Help:uX5}=sg(),{Option:AU2}=tg();yX5.program=new Jh;yX5.createCommand=($)=>new Jh($);yX5.createOption=($,z)=>new AU2($,z);yX5.createArgument=($,z)=>new kU2($,z);yX5.Command=Jh;yX5.Option=AU2;yX5.Argument=kU2;yX5.Help=uX5;yX5.CommanderError=xX5;yX5.InvalidArgumentError=NU2;yX5.InvalidOptionArgumentError=NU2});var MU2,Eg4,wg4,Pg4,Cg4,Tg4,bg4,_g4,jI,Sg4,xg4,ug4;var Qh=N(()=>{MU2=w2(jU2(),1),{program:Eg4,createCommand:wg4,createArgument:Pg4,createOption:Cg4,CommanderError:Tg4,InvalidArgumentError:bg4,InvalidOptionArgumentError:_g4,Command:jI,Argument:Sg4,Option:xg4,Help:ug4}=MU2.default});var MI;var Kh=N(()=>{MI={name:"oh-my-agent",version:"9.0.1",description:"Portable multi-agent harness for .agents-based skills and workflows across Antigravity, Claude Code, Codex, OpenCode, and more",type:"module",bin:{"oh-my-agent":"./bin/cli.js",oma:"./bin/cli.js"},files:["bin"],keywords:["oh-my-agent","antigravity",".agents","agent","skills","agent-skills","multi-agent","orchestrator","claude","claude-code","codex","opencode","copilot","cursor","chatgpt","pm","frontend","backend","mobile","qa","debug","terraform","database","workflow","bug-fixing","gemini"],author:"our.first.fluke <our.first.fluke@gmail.com>",contributors:["gracefullight <gracefullight.dev@gmail.com>","gahyun-git <go4it.gh@gmail.com>"],license:"MIT",funding:[{type:"github",url:"https://github.com/sponsors/first-fluke"},{type:"buymeacoffee",url:"https://buymeacoffee.com/firstfluke"}],scripts:{"sync:readme":"node ./scripts/sync-readme.mjs","generate:skill-data":"node ./scripts/generate-skill-data.mjs",build:"bun run generate:skill-data && bun run sync:readme && bun build cli.ts --outfile bin/cli.js --target node --minify --external @napi-rs/keyring",dev:"bun run generate:skill-data && bun run cli.ts",lint:"biome check .","lint:fix":"biome check --write --unsafe .","check:boundaries":"node ./scripts/check-boundaries.mjs",test:"vitest run","test:coverage":"vitest run --coverage",prepublishOnly:"bun run build"},dependencies:{"@clack/prompts":"^1.1.0","@date-fns/tz":"^1.4.1","@napi-rs/keyring":"^1.3.0",axios:"^1.15.0","better-sqlite3":"^12.9.0",chokidar:"^5.0.0",commander:"^14.0.3","date-fns":"^4.2.1",eld:"^2.0.3","fast-xml-parser":"^5",minimatch:"^10.2.5","p-map":"^7.0.4",picocolors:"^1.1.1","puppeteer-core":"^24",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-parse":"^11.0.0","smol-toml":"^1.6.1",unified:"^11.0.5",ws:"^8.18.0",yaml:"^2.8.2",zod:"^4.3.6"},optionalDependencies:{pptxgenjs:"^3.12.0"},devDependencies:{"@biomejs/biome":"^2.4.15","@types/better-sqlite3":"^7.6.13","@types/mdast":"^4.0.4","@types/node":"^24","@types/ws":"^8.18.1","@vitest/coverage-v8":"^4.1.4",typescript:"^6",vitest:"^4.0.18"},repository:{type:"git",url:"https://github.com/first-fluke/oh-my-agent"},antigravity:{skillsPath:".agents/skills",skills:["oma-architecture","oma-brainstorm","oma-coordination","oma-pm","oma-frontend","oma-backend","oma-db","oma-mobile","oma-qa","oma-debug","oma-orchestrator","oma-dev-workflow","oma-tf-infra","oma-scm","oma-pdf","oma-recap"]}}});import*as LY from"node:fs";import{homedir as rX5}from"node:os";import*as Lq from"node:path";function IU2($){if(OI)throw Error("install context already set in this process");OI=$}function RU2(){if(OI===null)throw Error("install context not set — entry point must call setInstallContext()");return OI}function HY(){return RU2().installRoot}function M7(){return RU2().mode}function DU2($){let z=process.env.OMA_HOME,G=$.global===!0||process.env.OMA_INSTALL_GLOBAL==="1";if(z!==void 0&&z!=="")return sX5(z),{installRoot:z,mode:G?"global":"project"};if(G)return{installRoot:rX5(),mode:"global"};return{installRoot:process.cwd(),mode:"project"}}function sX5($){if(!Lq.isAbsolute($))throw Error("OMA_HOME must be absolute path");for(let G of OU2)if($===G||$.startsWith(G+Lq.sep))throw Error(`OMA_HOME=${$} is forbidden (system path ${G})`);let z;try{z=LY.realpathSync($)}catch(G){let J=G instanceof Error?G.message:String(G);throw Error(`OMA_HOME=${$}: ${J}`)}for(let G of OU2)if(z===G||z.startsWith(G+Lq.sep))throw Error(`OMA_HOME=${z} is forbidden (system path ${G})`);try{LY.accessSync(z,LY.constants.W_OK)}catch{throw Error(`OMA_HOME=${z} is not writable`)}}var OI=null,OU2;var VJ=N(()=>{OU2=["/etc","/usr","/bin","/boot","/sys","/proc"]});import{join as tX5}from"node:path";function Hq($){return $.endsWith("/")?$:`${$}/`}function O7($,z){let G=z.split("/").filter((J)=>J.length>0);return tX5($,...G)}var L0=".agents",II,O3,XJ,vU2,EU2,RI,eX5=".antigravitycli",wU2,$L5=".migration-backup",zL5,GL5,JL5,QL5,KL5,Uh;var I3=N(()=>{II=`${L0}/skills`,O3=`${L0}/results`,XJ=`${L0}/state`,vU2=`${XJ}/sessions`,EU2=`${XJ}/retry`,RI=`${XJ}/archive`,wU2=`${L0}/backup`;zL5=Hq(O3),GL5=Hq(XJ),JL5=Hq(eX5),QL5=Hq(wU2),KL5=Hq($L5),Uh=[JL5,zL5,GL5,QL5,KL5]});var y1="first-fluke/oh-my-agent",t4,_z,DI,UL5,Sz,o1;var xz=N(()=>{I3();t4=II,_z=["antigravity","claude","codex","commandcode","cursor","gemini","grok","kiro","qwen"],DI=["pi"],UL5=["copilot","hermes"],Sz=[..._z,...UL5].sort(),o1={antigravity:{projectPath:".gemini/antigravity-cli/skills",homePath:".gemini/antigravity-cli/skills",requiresHomeConsent:!0},claude:{projectPath:".claude/skills",homePath:".claude/skills"},codex:{projectPath:".codex/skills",homePath:".codex/skills"},commandcode:{projectPath:".commandcode/skills",homePath:".commandcode/skills",optIn:!0},copilot:{projectPath:".github/skills",homePath:".copilot/skills"},cursor:{projectPath:".cursor/skills",homePath:".cursor/skills"},gemini:{projectPath:".gemini/skills",homePath:".gemini/skills"},hermes:{projectPath:".hermes/skills/oma",homePath:".hermes/skills/oma",requiresHomeConsent:!0},kiro:{projectPath:".kiro/skills",homePath:".kiro/skills",optIn:!0},qwen:{projectPath:".qwen/skills",homePath:".qwen/skills"}}});var xU2={};K5(xU2,{runAction:()=>d2,resolveJsonMode:()=>R5,printDescribe:()=>AL5,addOutputOptions:()=>D5});function D5($,z="Output as JSON"){return $.option("--json",z).option("--output <format>","Output format (text/json)",(G)=>{let J=G.trim().toLowerCase();if(!qq.includes(J))throw Error(`Invalid output format: ${G}. Expected one of ${qq.join(", ")}`);return J})}function ZL5($){if($?.json)return"json";let z=$?.output?.trim().toLowerCase();if(z&&qq.includes(z))return z;if(process.env[TU2]?.trim().toLowerCase()==="json")return"json";return"text"}function R5($){return ZL5($)==="json"}function bU2($){let z=$.at(-1);return z instanceof jI?z:null}function WL5($){let z=bU2($);if(z)return z.opts();let G=$.at(-1);return G&&typeof G==="object"?G:{}}function YL5($){if($ instanceof Error)return $.message;return String($)}function LJ($){throw Error($)}function Wh($,z){for(let G of $){let J=G.charCodeAt(0);if(J>=0&&J<=31||J===127)LJ(`${z} must not contain control characters`)}}function BL5($,z){if(Wh($,z),/[?#%]/.test($))LJ(`${z} must not contain ?, #, or %`);if($.includes(".."))LJ(`${z} must not contain '..'`)}function VL5($,z){Wh($,z);try{new URL($)}catch{LJ(`${z} must be a valid absolute URL`)}}function Zh($,z,G="text"){if(typeof $==="string"){if(G==="identifier"){BL5($,z);return}if(G==="url"){VL5($,z);return}Wh($,z);return}if(Array.isArray($))for(let[J,Q]of $.entries())Zh(Q,`${z}[${J}]`,G)}function CU2($){let z=$.toLowerCase();if(z==="url"||z.endsWith("url"))return"url";if(z.includes("id")||z.includes("type")||z.includes("vendor")||z.includes("session"))return"identifier";return"text"}function XL5($){let z=$.vendor;if(typeof z==="string"){if(z.split(",").map((K)=>K.trim()).filter(Boolean).filter((K)=>!Sz.includes(K)).length>0)LJ(`vendor must be one of ${Sz.join(", ")}`)}let G=$.output;if(typeof G==="string"&&!qq.includes(G))LJ(`output must be one of ${qq.join(", ")}`)}function LL5($){let z=$.processedArgs??$.args??[];($.registeredArguments??[]).forEach((Q,K)=>{let U=Q.name?.()||String(K),Z=z[K];if(Zh(Z,U,CU2(U)),U==="agent-type"&&typeof Z==="string"&&!PU2.includes(Z))LJ(`agent-type must be one of ${PU2.join(", ")}`)});let J=$.opts();XL5(J);for(let[Q,K]of Object.entries(J))Zh(K,Q,CU2(Q))}function HL5($){return($.registeredArguments??[]).map((z)=>({name:z.name?.()||"",required:!!z.required,variadic:!!z.variadic}))}function qL5($){return $.options.map((z)=>({flags:z.flags,long:z.long||void 0,short:z.short||void 0,description:z.description||"",required:!!z.required||!!z.mandatory,optional:!!z.optional,defaultValue:z.defaultValue}))}function _U2($){let z=[],G=$;while(G?.parent)z.unshift(G.name()),G=G.parent;return z.join(" ")}function FL5($){return $.options.some((z)=>z.long==="--json"||z.long==="--output")}function kL5($){return $.options.some((z)=>z.long==="--dry-run")}function SU2($){return{name:$.name(),path:_U2($),summary:$.summary()||void 0,description:$.description(),arguments:HL5($),options:qL5($),supportsJsonOutput:FL5($),supportsDryRun:kL5($),subcommands:$.commands.map((z)=>SU2(z))}}function NL5($,z){if(!z?.trim())return $;let G=z.trim(),J=[...$.commands];while(J.length>0){let Q=J.shift();if(!Q)continue;if(Q.name()===G||_U2(Q)===G)return Q;J.push(...Q.commands)}return null}function AL5($,z){let G=NL5($,z);if(!G)LJ(`Unknown command: ${z}`);let J={name:$.name(),version:$.version(),description:$.description(),env:{[TU2]:"Set to json to force machine-readable output on commands that support it."},command:SU2(G)};console.log(JSON.stringify(J,null,2))}function d2($,z={}){return async(...G)=>{let J=bU2(G);if(J&&G.length>=2)G[G.length-2]=J.optsWithGlobals();let Q=WL5(G);try{if(J)LL5(J);await $(...G)}catch(K){let U=YL5(K);if(z.supportsJsonOutput&&R5(Q))console.log(JSON.stringify({error:U},null,2));else console.error(U);process.exitCode=1}}}var TU2="OH_MY_AG_OUTPUT_FORMAT",qq,PU2;var z1=N(()=>{Qh();xz();qq=["text","json"],PU2=["backend","frontend","mobile","qa","debug","pm"]});var uU2,yU2=($)=>{return $===12288||$>=65281&&$<=65376||$>=65504&&$<=65510},gU2=($)=>{return $===8987||$===9001||$>=12272&&$<=12287||$>=12289&&$<=12350||$>=12441&&$<=12543||$>=12549&&$<=12591||$>=12593&&$<=12686||$>=12688&&$<=12771||$>=12783&&$<=12830||$>=12832&&$<=12871||$>=12880&&$<=19903||$>=65040&&$<=65049||$>=65072&&$<=65106||$>=65108&&$<=65126||$>=65128&&$<=65131||$>=127488&&$<=127490||$>=127504&&$<=127547||$>=127552&&$<=127560||$>=131072&&$<=196605||$>=196608&&$<=262141};var hU2=N(()=>{uU2=(()=>{let $=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return(z)=>{let G=0;$.lastIndex=0;while($.test(z))G+=1;return z.length-G}})()});var jL5,ML5,fU2,OL5,mU2,IL5,RL5,DL5,iU2=($,z={},G={})=>{let J=z.limit??1/0,Q=z.ellipsis??"",K=z?.ellipsisWidth??(Q?iU2(Q,DL5,G).width:0),U=0,Z=G.controlWidth??0,Y=G.tabWidth??8,W=G.emojiWidth??2,B=2,V=G.regularWidth??1,L=G.wideWidth??2,X=[[IL5,V],[jL5,0],[ML5,Z],[OL5,Y],[mU2,W],[fU2,L]],H=0,q=0,F=$.length,k=0,A=!1,j=F,M=Math.max(0,J-K),O=0,D=0,R=0,I=0;$:while(!0){if(D>O||q>=F&&q>H){let E=$.slice(O,D)||$.slice(H,q);k=0;for(let b of E.replaceAll(RL5,"")){let _=b.codePointAt(0)||0;if(yU2(_))I=2;else if(gU2(_))I=L;else I=V;if(R+I>M)j=Math.min(j,Math.max(O,H)+k);if(R+I>J){A=!0;break $}k+=b.length,R+=I}O=D=0}if(q>=F)break $;for(let E=0,b=X.length;E<b;E++){let[_,h]=X[E];if(_.lastIndex=q,_.test($)){if(k=_===fU2?uU2($.slice(q,_.lastIndex)):_===mU2?1:_.lastIndex-q,I=k*h,R+I>M)j=Math.min(j,q+Math.floor((M-R)/h));if(R+I>J){A=!0;break $}R+=I,O=H,D=q,q=H=_.lastIndex;continue $}}q+=1}return{width:A?M:R,index:A?j:F,truncated:A,ellipsed:A&&J>=K}},cU2;var lU2=N(()=>{hU2();jL5=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,ML5=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,fU2=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,OL5=/\t{1,1000}/y,mU2=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,IL5=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,RL5=/\p{M}+/gu,DL5={limit:1/0,ellipsis:""},cU2=iU2});var vL5,EL5=($,z={})=>{return cU2($,vL5,z).width},M6;var Yh=N(()=>{lU2();vL5={limit:1/0,ellipsis:"",ellipsisWidth:0},M6=EL5});function L$($,z,G){return String($).normalize().split(bL5).map((J)=>TL5(J,z,G)).join(`
|
|
28
28
|
`)}var vI="\x1B",oU2="",wL5=39,Vh="\x07",rU2="[",PL5="]",sU2="m",Xh,dU2,pU2=($)=>{if($>=30&&$<=37)return 39;if($>=90&&$<=97)return 39;if($>=40&&$<=47)return 49;if($>=100&&$<=107)return 49;if($===1||$===2)return 22;if($===3)return 23;if($===4)return 24;if($===7)return 27;if($===8)return 28;if($===9)return 29;if($===0)return 0;return},nU2=($)=>`${vI}${rU2}${$}${sU2}`,aU2=($)=>`${vI}${Xh}${$}${Vh}`,Bh=($,z,G)=>{let J=z[Symbol.iterator](),Q=!1,K=!1,U=$.at(-1),Z=U===void 0?0:M6(U),Y=J.next(),W=J.next(),B=0;while(!Y.done){let V=Y.value,L=M6(V);if(Z+L<=G)$[$.length-1]+=V;else $.push(V),Z=0;if(V===vI||V===oU2)Q=!0,K=z.startsWith(Xh,B+1);if(Q){if(K){if(V===Vh)Q=!1,K=!1}else if(V===sU2)Q=!1}else if(Z+=L,Z===G&&!W.done)$.push(""),Z=0;Y=W,W=J.next(),B+=V.length}if(U=$.at(-1),!Z&&U!==void 0&&U.length&&$.length>1)$[$.length-2]+=$.pop()},CL5=($)=>{let z=$.split(" "),G=z.length;while(G){if(M6(z[G-1]))break;G--}if(G===z.length)return $;return z.slice(0,G).join(" ")+z.slice(G).join("")},TL5=($,z,G={})=>{if(G.trim!==!1&&$.trim()==="")return"";let J="",Q,K,U=$.split(" "),Z=[""],Y=0;for(let V=0;V<U.length;V++){let L=U[V];if(G.trim!==!1){let H=Z.at(-1)??"",q=H.trimStart();if(H.length!==q.length)Z[Z.length-1]=q,Y=M6(q)}if(V!==0){if(Y>=z&&(G.wordWrap===!1||G.trim===!1))Z.push(""),Y=0;if(Y||G.trim===!1)Z[Z.length-1]+=" ",Y++}let X=M6(L);if(G.hard&&X>z){let H=z-Y,q=1+Math.floor((X-H-1)/z);if(Math.floor((X-1)/z)<q)Z.push("");Bh(Z,L,z),Y=M6(Z.at(-1)??"");continue}if(Y+X>z&&Y&&X){if(G.wordWrap===!1&&Y<z){Bh(Z,L,z),Y=M6(Z.at(-1)??"");continue}Z.push(""),Y=0}if(Y+X>z&&G.wordWrap===!1){Bh(Z,L,z),Y=M6(Z.at(-1)??"");continue}Z[Z.length-1]+=L,Y+=X}if(G.trim!==!1)Z=Z.map((V)=>CL5(V));let W=Z.join(`
|
|
29
29
|
`),B=!1;for(let V=0;V<W.length;V++){let L=W[V];if(J+=L,!B){if(B=L>="\uD800"&&L<="\uDBFF",B)continue}else B=!1;if(L===vI||L===oU2){dU2.lastIndex=V+1;let H=dU2.exec(W)?.groups;if(H?.code!==void 0){let q=Number.parseFloat(H.code);Q=q===wL5?void 0:q}else if(H?.uri!==void 0)K=H.uri.length===0?void 0:H.uri}if(W[V+1]===`
|
|
30
30
|
`){if(K)J+=aU2("");let X=Q?pU2(Q):void 0;if(Q&&X)J+=nU2(X)}else if(L===`
|
package/package.json
CHANGED