@sma1lboy/rove 0.9.157 → 0.9.159
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/dist/cli/{chunk-bhv2b63j.js → chunk-0f377y88.js} +1 -1
- package/dist/cli/chunk-1w8nmx4v.js +2 -0
- package/dist/cli/{chunk-3ry6prwn.js → chunk-3e5n28t6.js} +1 -1
- package/dist/cli/{chunk-ksbvcxc3.js → chunk-4728688z.js} +1 -1
- package/dist/cli/{chunk-vb4xz8pz.js → chunk-4wrby8xt.js} +3 -3
- package/dist/cli/{chunk-mbvk5758.js → chunk-6tgc7mhc.js} +1 -1
- package/dist/cli/{chunk-2egeskms.js → chunk-7fy242v4.js} +1 -1
- package/dist/cli/{chunk-qch6g9za.js → chunk-9m0tb44t.js} +1 -1
- package/dist/cli/{chunk-nss70xwr.js → chunk-9wn8m2rt.js} +1 -1
- package/dist/cli/{chunk-t90vnrpk.js → chunk-atzd04e0.js} +1 -1
- package/dist/cli/{chunk-2ge9th94.js → chunk-bc93p4fx.js} +1 -1
- package/dist/cli/{chunk-940nrpw3.js → chunk-ckqjhfss.js} +1 -1
- package/dist/cli/{chunk-mw7az4dy.js → chunk-cpmbj0zg.js} +1 -1
- package/dist/cli/{chunk-vjykdnst.js → chunk-dqxzpetd.js} +1 -1
- package/dist/cli/{chunk-158gfptx.js → chunk-dxcwhdsx.js} +1 -1
- package/dist/cli/chunk-e5f9rdj2.js +2 -0
- package/dist/cli/{chunk-3evh2jfe.js → chunk-es4985my.js} +1 -1
- package/dist/cli/{chunk-ybcacmqv.js → chunk-g8r9zv1x.js} +1 -1
- package/dist/cli/{chunk-7rf1b05j.js → chunk-gf5y2jft.js} +2 -2
- package/dist/cli/{chunk-n7n12868.js → chunk-hfdxy3qe.js} +2 -2
- package/dist/cli/{chunk-dyxz1ch3.js → chunk-kkc2vejt.js} +1 -1
- package/dist/cli/chunk-m4zadw45.js +7 -0
- package/dist/cli/{chunk-kth4fmzh.js → chunk-mmfwyc7j.js} +2 -2
- package/dist/cli/{chunk-ztb025x6.js → chunk-mxz4jmb8.js} +1 -1
- package/dist/cli/{chunk-tvzy1h3c.js → chunk-nsayx0vv.js} +2 -2
- package/dist/cli/{chunk-w93ahgrj.js → chunk-pny0ne6r.js} +1 -1
- package/dist/cli/{chunk-xcmftf87.js → chunk-pz92vzcv.js} +7 -7
- package/dist/cli/{chunk-we0gedwp.js → chunk-qq5z2ev8.js} +1 -1
- package/dist/cli/{chunk-exggdhpt.js → chunk-s53jjqyf.js} +1 -1
- package/dist/cli/{chunk-eyjbq4ee.js → chunk-s6fcwzyg.js} +2 -2
- package/dist/cli/{chunk-vffbdrqa.js → chunk-svndhd3d.js} +1 -1
- package/dist/cli/chunk-tb6b5zx4.js +3 -0
- package/dist/cli/{chunk-fd2zhddn.js → chunk-w06vgba4.js} +1 -1
- package/dist/cli/{chunk-h165zftp.js → chunk-w3gzwzfk.js} +1 -1
- package/dist/cli/{chunk-xhte0jhf.js → chunk-w6s06z4a.js} +2 -2
- package/dist/cli/chunk-wk7f8ns5.js +7 -0
- package/dist/cli/{chunk-mhzv94cg.js → chunk-wt8dc57p.js} +4 -4
- package/dist/cli/{chunk-kkvgtey3.js → chunk-wy1rbq5h.js} +1 -1
- package/dist/cli/{chunk-ptjc5mtc.js → chunk-xxmyqw1v.js} +1 -1
- package/dist/cli/{chunk-fm5s7njg.js → chunk-ynknvkrw.js} +1 -1
- package/dist/cli/{chunk-3sah6nks.js → chunk-yxnqzamz.js} +1 -1
- package/dist/cli/{chunk-yqvrr5kt.js → chunk-yzwv7g1r.js} +1 -1
- package/dist/cli/chunk-zvhrhn88.js +16 -0
- package/dist/cli/index.js +3 -3
- package/dist/cli/kobe.js +1 -1
- package/dist/cli/rove.js +1 -1
- package/dist/skills/rove/references/api-flags.md +4 -2
- package/dist/web-ui/assets/{harness-DvVhbIUb.js → harness-CUUTBlyr.js} +2 -2
- package/dist/web-ui/assets/{index-DrVCJr6C.js → index-DnDZBV-z.js} +2 -2
- package/dist/web-ui/index.html +1 -1
- package/package.json +1 -1
- package/dist/cli/chunk-2f6p2wrk.js +0 -7
- package/dist/cli/chunk-d2qjxtfh.js +0 -7
- package/dist/cli/chunk-ngnrz33z.js +0 -3
- package/dist/cli/chunk-njgxgh1f.js +0 -16
- package/dist/cli/chunk-nx7ahbsg.js +0 -2
- package/dist/cli/chunk-tpcrsppv.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{BREAKING_VERSIONS,CURRENT_VERSION,DEFAULT_RELEASE_CHANNEL,RELEASE_CHANNELS,UPDATE_COMMAND,UPDATE_SCRIPT_URL,breakingVersionsCrossed,channelOf,checkLatestVersion,fetchReleaseSummaries,recommendedGlobalInstallCommand}from"./chunk-
|
|
2
|
+
import{BREAKING_VERSIONS,CURRENT_VERSION,DEFAULT_RELEASE_CHANNEL,RELEASE_CHANNELS,UPDATE_COMMAND,UPDATE_SCRIPT_URL,breakingVersionsCrossed,channelOf,checkLatestVersion,fetchReleaseSummaries,recommendedGlobalInstallCommand}from"./chunk-kkc2vejt.js";import"./chunk-ch9b1d5y.js";import{activeCliName}from"./chunk-p7s4xwgx.js";import"./chunk-4pmd0mxp.js";import"./chunk-g56kvet6.js";import"./chunk-r3k9rbwm.js";import{__require}from"./chunk-wqfp8d9w.js";import{spawnSync}from"child_process";var CLI_NAME=activeCliName();function updatePlan(target){let shell=target===void 0?UPDATE_COMMAND:`${UPDATE_COMMAND} -s -- ${target}`;return{command:"sh",args:["-c",shell],display:shell}}var VERSION_SHAPE=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/;function isReleaseChannel(value){return RELEASE_CHANNELS.includes(value)}function parseUpdateArgs(args){let dryRun=!1,list=!1,version,channel;for(let i=0;i<args.length;i+=1){let arg=args[i];if(arg===void 0)continue;if(arg==="--help"||arg==="-h"||arg==="help")return{help:!0,dryRun,list,version,channel};if(arg==="dry-run"||arg==="--dry-run"){dryRun=!0;continue}if(arg==="list"||arg==="--list"){list=!0;continue}if(arg==="--channel"||arg.startsWith("--channel=")){let value=(arg.startsWith("--channel=")?arg.slice(10):void 0)??args[++i];if(value===void 0||!isReleaseChannel(value))process.stderr.write(`${CLI_NAME} update: --channel expects one of ${RELEASE_CHANNELS.join(", ")}${value===void 0?"":` (got "${value}")`}
|
|
3
3
|
|
|
4
4
|
`),printUsage(process.stderr),process.exit(2);channel=value;continue}if(channel===void 0&&isReleaseChannel(arg)){channel=arg;continue}if(version===void 0&&VERSION_SHAPE.test(arg)){version=arg;continue}process.stderr.write(`${CLI_NAME} update: unknown argument "${arg}"
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ import{BREAKING_VERSIONS,CURRENT_VERSION,DEFAULT_RELEASE_CHANNEL,RELEASE_CHANNEL
|
|
|
9
9
|
`)}io.stdout.write(`
|
|
10
10
|
install one with: ${CLI_NAME} update <version>
|
|
11
11
|
`)}async function warnBreakingCrossings(target,channel,io){if(BREAKING_VERSIONS.length===0)return;let resolved=target??(await checkLatestVersion({force:!0,channel}))?.latest;if(!resolved)return;let crossed=breakingVersionsCrossed(CURRENT_VERSION,resolved);if(crossed.length===0)return;io.stderr.write([`warning: ${CURRENT_VERSION} -> ${resolved} crosses breaking version(s): ${crossed.join(", ")}.`,`After this update, Rove will refuse to start until you run \`${CLI_NAME} reset\``,"(worktrees are never touched; add --hard only to also wipe the task index).",""].join(`
|
|
12
|
-
`))}async function runUpdateSubcommand(args,deps){let io={spawn:deps?.spawn??spawnSync,stdout:deps?.stdout??process.stdout,stderr:deps?.stderr??process.stderr,exit:deps?.exit??((code)=>process.exit(code))},parsed=parseUpdateArgs(args);if(parsed.help){printUsage(io.stdout);return}if(parsed.list){if(deps===void 0&&process.stdout.isTTY){let{startVersionsHost}=await import("./chunk-
|
|
12
|
+
`))}async function runUpdateSubcommand(args,deps){let io={spawn:deps?.spawn??spawnSync,stdout:deps?.stdout??process.stdout,stderr:deps?.stderr??process.stderr,exit:deps?.exit??((code)=>process.exit(code))},parsed=parseUpdateArgs(args);if(parsed.help){printUsage(io.stdout);return}if(parsed.list){if(deps===void 0&&process.stdout.isTTY){let{startVersionsHost}=await import("./chunk-0f377y88.js");await startVersionsHost();return}await printVersionList(io);return}let channel=parsed.channel??channelOf(),target=parsed.version??(channel===DEFAULT_RELEASE_CHANNEL?void 0:channel),plan=updatePlan(target),switching=parsed.channel!==void 0&&parsed.channel!==channelOf();if(io.stdout.write(`${CLI_NAME} ${CURRENT_VERSION} -> ${target??channel}
|
|
13
13
|
`),switching)io.stdout.write(`switching channel: ${channelOf()} -> ${channel}
|
|
14
14
|
`);if(io.stdout.write(`running: ${plan.display}
|
|
15
15
|
`),parsed.dryRun)return;await warnBreakingCrossings(parsed.version,channel,io);let result=io.spawn(plan.command,plan.args,{stdio:"inherit"});if(result.error)io.stderr.write(`${CLI_NAME} update: failed to run ${plan.command}: ${result.error.message}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{writeOutdatedCache}from"./chunk-n4nntq73.js";import{PluginCliError,installPlugin}from"./chunk-
|
|
2
|
+
import{writeOutdatedCache}from"./chunk-n4nntq73.js";import{PluginCliError,installPlugin}from"./chunk-svndhd3d.js";import{loadPluginRegistry,pluginCheckoutDir,pluginConfigDir,pluginDataDir,pluginStateDir,removePluginEntry,savePluginRegistry}from"./chunk-38272eqv.js";import"./chunk-kkc2vejt.js";import"./chunk-mnqxgvyb.js";import"./chunk-w7zv47mp.js";import"./chunk-ch9b1d5y.js";import{activeCliName}from"./chunk-p7s4xwgx.js";import"./chunk-4pmd0mxp.js";import"./chunk-g56kvet6.js";import"./chunk-r3k9rbwm.js";import"./chunk-wqfp8d9w.js";import{execFileSync}from"child_process";import{existsSync,mkdirSync,readdirSync,renameSync}from"fs";import{join}from"path";function gitOut(args,cwd){try{return execFileSync("git",args,{cwd,encoding:"utf8",stdio:["ignore","pipe","ignore"]}).trim()}catch{return null}}function checkEntry(entry){let repoSpec=entry.source.spec.split("/").slice(0,2).join("/"),localSha=gitOut(["rev-parse","HEAD"],pluginCheckoutDir(entry.id)),remote=gitOut(["ls-remote",`https://github.com/${repoSpec}.git`,"HEAD"]),remoteSha=remote?remote.split(/\s+/)[0]??null:null;return{id:entry.id,spec:entry.source.spec,version:entry.version,localSha,remoteSha,behind:Boolean(localSha&&remoteSha&&localSha!==remoteSha)}}function listOutdated(){let rows=loadPluginRegistry().plugins.filter((p)=>p.source.kind==="github").map(checkEntry);return writeOutdatedCache(rows.filter((r)=>r.behind).map((r)=>r.id)),rows}function printOutdated(){let rows=listOutdated();if(rows.length===0){console.log("no GitHub-installed plugins.");return}for(let r of rows){let status=r.behind?"update available":r.remoteSha===null?"remote unreachable":r.localSha===null?"local sha unreadable":"up to date";console.log(`${r.id} v${r.version} ${status}`)}}function migrateRenamedPlugin(oldId,newId){for(let dirOf of[pluginConfigDir,pluginStateDir]){let from=dirOf(oldId),to=dirOf(newId);if(!existsSync(from))continue;mkdirSync(to,{recursive:!0});for(let entry of readdirSync(from)){if(existsSync(join(to,entry)))continue;renameSync(join(from,entry),join(to,entry))}}savePluginRegistry(removePluginEntry(loadPluginRegistry(),oldId)),console.log(`renamed ${oldId} \u2192 ${newId}: settings and state carried over, old entry unregistered`),console.log(` leftover checkout (safe to remove): ${pluginDataDir(oldId)}`)}async function updatePlugins(ids,opts){let rows=listOutdated(),targets;if(opts.all){if(targets=rows.filter((r)=>r.behind),targets.length===0){console.log("all plugins up to date.");return}}else{if(ids.length===0)throw new PluginCliError("update takes plugin ids or --all");targets=ids.map((id)=>{let row=rows.find((r)=>r.id===id);if(!row)throw new PluginCliError(`\`${id}\` is not a GitHub-installed plugin; see \`${activeCliName()} plugin list\``);return row})}for(let target of targets){if(!target.behind&&!ids.includes(target.id))continue;console.log(`updating ${target.id} (${target.spec})\u2026`);let installedId=await installPlugin(target.spec,{yes:opts.yes});if(installedId!==target.id)migrateRenamedPlugin(target.id,installedId)}listOutdated()}export{updatePlugins,printOutdated};
|