@sma1lboy/rove 0.9.149 → 0.9.150
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-9m1nqceb.js → chunk-0h4cfy44.js} +2 -2
- package/dist/cli/{chunk-9mbvexw2.js → chunk-0tw42ad1.js} +1 -1
- package/dist/cli/{chunk-49s2zc0h.js → chunk-1cqtm24j.js} +1 -1
- package/dist/cli/{chunk-adez6hq4.js → chunk-1gpx52qj.js} +2 -2
- package/dist/cli/{chunk-dkxhmj9k.js → chunk-1ps9qzp1.js} +1 -1
- package/dist/cli/{chunk-bj59a9mg.js → chunk-1z9ae43v.js} +1 -1
- package/dist/cli/{chunk-zqwksfqh.js → chunk-2ffbcsm6.js} +5 -5
- package/dist/cli/{chunk-mcqzk9cg.js → chunk-2hgt2esq.js} +3 -3
- package/dist/cli/{chunk-xbc3gcry.js → chunk-2t62vct7.js} +1 -1
- package/dist/cli/{chunk-v90k9ppb.js → chunk-2w4zymkv.js} +1 -1
- package/dist/cli/{chunk-h5j8b87f.js → chunk-4d7bbh87.js} +1 -1
- package/dist/cli/{chunk-m6pvaxm7.js → chunk-5b6940vk.js} +1 -1
- package/dist/cli/{chunk-8nnmpnxb.js → chunk-5gn4chrm.js} +2 -2
- package/dist/cli/{chunk-me7kkwp7.js → chunk-5kkm6tjz.js} +2 -2
- package/dist/cli/{chunk-cytn2byt.js → chunk-6h9tc9vn.js} +1 -1
- package/dist/cli/{chunk-jvpzy378.js → chunk-6xhtf9jx.js} +1 -1
- package/dist/cli/{chunk-a4a4qaa2.js → chunk-71m4ak4t.js} +1 -1
- package/dist/cli/chunk-7j8zpeer.js +3 -0
- package/dist/cli/{chunk-66kp3cr1.js → chunk-7sgtpyr0.js} +1 -1
- package/dist/cli/{chunk-02y7hdy3.js → chunk-84aks78e.js} +1 -1
- package/dist/cli/{chunk-np07kccr.js → chunk-8x0h6rwa.js} +1 -1
- package/dist/cli/{chunk-me77sx3d.js → chunk-a0rxr20w.js} +1 -1
- package/dist/cli/{chunk-gbasmvsc.js → chunk-b24ykek8.js} +1 -1
- package/dist/cli/{chunk-etnxfpx5.js → chunk-bjat0fyy.js} +1 -1
- package/dist/cli/{chunk-856hq7jz.js → chunk-cjxwzzq7.js} +1 -1
- package/dist/cli/{chunk-kd1anc9y.js → chunk-db57060b.js} +1 -1
- package/dist/cli/{chunk-v5893dx3.js → chunk-dk3pvrw6.js} +1 -1
- package/dist/cli/{chunk-y2yq6zca.js → chunk-fbg4fkmg.js} +1 -1
- package/dist/cli/{chunk-xyy4f9ek.js → chunk-fhfqyfpf.js} +1 -1
- package/dist/cli/{chunk-h356efbh.js → chunk-fyjj9ast.js} +1 -1
- package/dist/cli/{chunk-ksd57jm6.js → chunk-h9xpeqn6.js} +1 -1
- package/dist/cli/{chunk-pbqwegjy.js → chunk-hpj8xjxb.js} +1 -1
- package/dist/cli/{chunk-zgx27dnc.js → chunk-k2gfqqmg.js} +1 -1
- package/dist/cli/chunk-k5k0ecka.js +4 -0
- package/dist/cli/{chunk-mqbjqw85.js → chunk-khp1ga68.js} +1 -1
- package/dist/cli/{chunk-5x8ckw1a.js → chunk-mfvy10ep.js} +1 -1
- package/dist/cli/{chunk-8g456mmt.js → chunk-ppe5myr0.js} +1 -1
- package/dist/cli/{chunk-cxb93h7m.js → chunk-r26g5ree.js} +1 -1
- package/dist/cli/{chunk-f9p1gze7.js → chunk-r2w8qgyd.js} +3 -3
- package/dist/cli/chunk-sm1vhrb6.js +3 -0
- package/dist/cli/{chunk-b8d162tf.js → chunk-tfdx5ve6.js} +1 -1
- package/dist/cli/{chunk-seyk0v2m.js → chunk-vzvy1s1d.js} +1 -1
- package/dist/cli/{chunk-7m4s0xfa.js → chunk-y34fff4t.js} +1 -1
- package/dist/cli/{chunk-khfc4rjt.js → chunk-yeytzg1x.js} +1 -1
- package/dist/cli/chunk-z3va3mt0.js +34 -0
- package/dist/cli/index.js +3 -3
- package/dist/cli/kobe.js +1 -1
- package/dist/cli/rove.js +1 -1
- package/package.json +2 -2
- package/dist/cli/chunk-df7qe9y7.js +0 -4
- package/dist/cli/chunk-q7dr9eh6.js +0 -3
- package/dist/cli/chunk-yhcz2d2r.js +0 -34
- package/dist/cli/chunk-ykvk2546.js +0 -3
|
@@ -1,15 +1,15 @@
|
|
|
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-84aks78e.js";import"./chunk-6dn6h640.js";import{activeCliName}from"./chunk-ef11h2am.js";import"./chunk-8ddjfc2v.js";import"./chunk-cb2fpajx.js";import"./chunk-3bfm4hrs.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
|
|
|
6
|
-
`),printUsage(process.stderr),process.exit(2)}return{help:!1,dryRun,list,version,channel}}function printUsage(out){out.write([`Usage: ${CLI_NAME} update [version|channel|list|dry-run]`,"","Runs Rove's GitHub-hosted update script. With [version] (e.g.","0.7.90) the script installs that exact release instead of the","head of your channel.","","Verbs (--flag spellings also accepted):"," list Browse recent versions \u2014 a TUI page with release notes"," when interactive, plain text when piped"," dry-run Print the command without running it","","Channels:"," latest Stable releases (default)"," nightly Automated nightly cut from main \u2014 newer, less baked","",`You are on: ${channelOf()}`,"","Switching channels is just installing from the other one; there is","no stored setting. Update checks follow the build you are running.","","Default command:",` ${UPDATE_COMMAND}`,"","Script URL:",` ${UPDATE_SCRIPT_URL}`,"","Manual fallback:",` ${recommendedGlobalInstallCommand()}`,"","Examples:",` ${CLI_NAME} update`,` ${CLI_NAME} update 0.7.90`,` ${CLI_NAME} update nightly`,` ${CLI_NAME} update --channel latest`,` ${CLI_NAME} update list`,` ${CLI_NAME} update dry-run`,""].join(`
|
|
6
|
+
`),printUsage(process.stderr),process.exit(2)}return{help:!1,dryRun,list,version,channel}}function printUsage(out){out.write([`Usage: ${CLI_NAME} update [version|channel|list|dry-run]`,"","Runs Rove's GitHub-hosted update script. With [version] (e.g.","0.7.90) the script installs that exact release instead of the","head of your channel.","","Verbs (--flag spellings also accepted):"," list Browse recent versions \u2014 a TUI page with release notes"," when interactive, plain text when piped"," dry-run Print the command without running it","","Flags:"," --channel <name> Install from this channel instead of yours. The"," bare name works too: `update nightly`","","Channels:"," latest Stable releases (default)"," nightly Automated nightly cut from main \u2014 newer, less baked","",`You are on: ${channelOf()}`,"","Switching channels is just installing from the other one; there is","no stored setting. Update checks follow the build you are running.","","Default command:",` ${UPDATE_COMMAND}`,"","Script URL:",` ${UPDATE_SCRIPT_URL}`,"","Manual fallback:",` ${recommendedGlobalInstallCommand()}`,"","Examples:",` ${CLI_NAME} update`,` ${CLI_NAME} update 0.7.90`,` ${CLI_NAME} update nightly`,` ${CLI_NAME} update --channel latest`,` ${CLI_NAME} update list`,` ${CLI_NAME} update dry-run`,""].join(`
|
|
7
7
|
`))}async function printVersionList(io){let releases=await fetchReleaseSummaries(20);if(releases.length===0)io.stderr.write(`${CLI_NAME} update: could not fetch the release list (offline or rate-limited)
|
|
8
8
|
`),io.exit(1);for(let release of releases){let markers=[release.version===CURRENT_VERSION?"(current)":"",BREAKING_VERSIONS.includes(release.version)?`(breaking \u2014 needs \`${CLI_NAME} reset\`)`:""].filter(Boolean).join(" ");io.stdout.write(`${release.version}${markers?` ${markers}`:""}
|
|
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-r26g5ree.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{engineProcessIn,foregroundEngine,foregroundEngineIn,hasAncestor,parsePsSnapshot,psSnapshot,vendorFromArgv}from"./chunk-
|
|
2
|
+
import{engineProcessIn,foregroundEngine,foregroundEngineIn,hasAncestor,parsePsSnapshot,psSnapshot,vendorFromArgv}from"./chunk-b24ykek8.js";import"./chunk-z3va3mt0.js";import"./chunk-k5k0ecka.js";import"./chunk-gwcneg6c.js";import"./chunk-7nhdvr5v.js";import"./chunk-2fypr41w.js";import"./chunk-k3ksts6g.js";import"./chunk-gjf604bb.js";import"./chunk-qtke4x42.js";import"./chunk-xy8be792.js";import"./chunk-2brn8e1y.js";import"./chunk-9c1e5z6a.js";import"./chunk-6dn6h640.js";import"./chunk-h82kzdsn.js";import"./chunk-ef11h2am.js";import"./chunk-8ddjfc2v.js";import"./chunk-cb2fpajx.js";import"./chunk-grh6dvfv.js";import"./chunk-pw6yfj10.js";import"./chunk-x760j10f.js";import"./chunk-3bfm4hrs.js";import"./chunk-wqfp8d9w.js";export{vendorFromArgv,psSnapshot,parsePsSnapshot,hasAncestor,foregroundEngineIn,foregroundEngine,engineProcessIn};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{BREAKING_VERSIONS,CURRENT_VERSION,DEFAULT_RELEASE_CHANNEL,PACKAGE_NAME,RELEASE_CHANNELS,UPDATE_COMMAND,UPDATE_SCRIPT_URL,breakingVersionsCrossed,channelOf,checkLatestVersion,compareSemver,fetchReleaseNotes,fetchReleaseNotesRange,fetchReleaseSummaries,isNewerSemver,owningNpmPrefix,recommendedGlobalInstallCommand,releasePageUrl,repoSlug}from"./chunk-
|
|
2
|
+
import{BREAKING_VERSIONS,CURRENT_VERSION,DEFAULT_RELEASE_CHANNEL,PACKAGE_NAME,RELEASE_CHANNELS,UPDATE_COMMAND,UPDATE_SCRIPT_URL,breakingVersionsCrossed,channelOf,checkLatestVersion,compareSemver,fetchReleaseNotes,fetchReleaseNotesRange,fetchReleaseSummaries,isNewerSemver,owningNpmPrefix,recommendedGlobalInstallCommand,releasePageUrl,repoSlug}from"./chunk-84aks78e.js";import"./chunk-6dn6h640.js";import"./chunk-cb2fpajx.js";import"./chunk-3bfm4hrs.js";import"./chunk-wqfp8d9w.js";export{repoSlug,releasePageUrl,recommendedGlobalInstallCommand,owningNpmPrefix,isNewerSemver,fetchReleaseSummaries,fetchReleaseNotesRange,fetchReleaseNotes,compareSemver,checkLatestVersion,channelOf,breakingVersionsCrossed,UPDATE_SCRIPT_URL,UPDATE_COMMAND,RELEASE_CHANNELS,PACKAGE_NAME,DEFAULT_RELEASE_CHANNEL,CURRENT_VERSION,BREAKING_VERSIONS};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ensureGlobalKobeHooks,readTextWithTimeout,runHookSubcommand}from"./chunk-
|
|
2
|
+
import{ensureGlobalKobeHooks,readTextWithTimeout,runHookSubcommand}from"./chunk-1cqtm24j.js";import"./chunk-3ry6prwn.js";import"./chunk-hg5x2wr0.js";import"./chunk-jyv82gf0.js";import"./chunk-jvxh93nz.js";import"./chunk-5bn91n19.js";import"./chunk-pdh5w4ht.js";import"./chunk-4wwx51m5.js";import"./chunk-79gqh5p2.js";import"./chunk-3ztek08w.js";import"./chunk-kwe61yx7.js";import"./chunk-z3va3mt0.js";import"./chunk-k5k0ecka.js";import"./chunk-gwcneg6c.js";import"./chunk-7nhdvr5v.js";import"./chunk-2fypr41w.js";import"./chunk-k3ksts6g.js";import"./chunk-gjf604bb.js";import"./chunk-qtke4x42.js";import"./chunk-xy8be792.js";import"./chunk-2brn8e1y.js";import"./chunk-9c1e5z6a.js";import"./chunk-6dn6h640.js";import"./chunk-h82kzdsn.js";import"./chunk-ef11h2am.js";import"./chunk-8ddjfc2v.js";import"./chunk-cb2fpajx.js";import"./chunk-grh6dvfv.js";import"./chunk-pw6yfj10.js";import"./chunk-x760j10f.js";import"./chunk-3bfm4hrs.js";import"./chunk-wqfp8d9w.js";export{runHookSubcommand,readTextWithTimeout,ensureGlobalKobeHooks};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{writeOutdatedCache}from"./chunk-nm6adny4.js";import{PluginCliError,installPlugin}from"./chunk-
|
|
2
|
+
import{writeOutdatedCache}from"./chunk-nm6adny4.js";import{PluginCliError,installPlugin}from"./chunk-bjat0fyy.js";import{loadPluginRegistry,pluginCheckoutDir,pluginConfigDir,pluginDataDir,pluginStateDir,removePluginEntry,savePluginRegistry}from"./chunk-jyv82gf0.js";import"./chunk-84aks78e.js";import"./chunk-kwe61yx7.js";import"./chunk-6dn6h640.js";import{activeCliName}from"./chunk-ef11h2am.js";import"./chunk-8ddjfc2v.js";import"./chunk-cb2fpajx.js";import"./chunk-3bfm4hrs.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};
|