@sma1lboy/rove 0.9.150 → 0.9.151
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-15k6hqzx.js +2 -0
- package/dist/cli/chunk-1cjd7h8p.js +6 -0
- package/dist/cli/chunk-1vhbnf49.js +2 -0
- package/dist/cli/chunk-2cyzv75r.js +3 -0
- package/dist/cli/{chunk-y34fff4t.js → chunk-3zf7mr7r.js} +1 -1
- package/dist/cli/chunk-4d5bph3p.js +2 -0
- package/dist/cli/chunk-4nm1axc3.js +2 -0
- package/dist/cli/{chunk-g1ybdgad.js → chunk-579zz8df.js} +2 -2
- package/dist/cli/{chunk-r2w8qgyd.js → chunk-5mr9j201.js} +3 -3
- package/dist/cli/{chunk-q6579rbz.js → chunk-5wzap7r2.js} +1 -1
- package/dist/cli/chunk-6kz81dkc.js +17 -0
- package/dist/cli/{chunk-f6zsej8e.js → chunk-6sp2ags8.js} +1 -1
- package/dist/cli/chunk-7jkf3tvr.js +3 -0
- package/dist/cli/{chunk-2w4zymkv.js → chunk-7tfqaet5.js} +1 -1
- package/dist/cli/chunk-7zmrn4gn.js +3 -0
- package/dist/cli/{chunk-nm6adny4.js → chunk-86bjqmg1.js} +1 -1
- package/dist/cli/{chunk-k3ksts6g.js → chunk-87y9qjcm.js} +1 -1
- package/dist/cli/chunk-8rxg6hs2.js +2 -0
- package/dist/cli/chunk-95e0ks8n.js +2 -0
- package/dist/cli/chunk-98thhbm5.js +9 -0
- package/dist/cli/{chunk-7j8zpeer.js → chunk-9nbg0nzh.js} +1 -1
- package/dist/cli/chunk-a3a9gdc4.js +3 -0
- package/dist/cli/{chunk-mrwee8sj.js → chunk-aeq5xmtq.js} +1 -1
- package/dist/cli/chunk-akckb9kw.js +3 -0
- package/dist/cli/chunk-ayagydjk.js +2 -0
- package/dist/cli/chunk-cexxmfva.js +2 -0
- package/dist/cli/chunk-d393z1mj.js +4 -0
- package/dist/cli/{chunk-yeytzg1x.js → chunk-d89r6eqm.js} +1 -1
- package/dist/cli/chunk-dmdqnet6.js +3 -0
- package/dist/cli/{chunk-z3va3mt0.js → chunk-e7t4xpr9.js} +21 -19
- package/dist/cli/chunk-e8493db0.js +4 -0
- package/dist/cli/{chunk-7sgtpyr0.js → chunk-emm50f4q.js} +1 -1
- package/dist/cli/{chunk-bjat0fyy.js → chunk-fm4q306m.js} +1 -1
- package/dist/cli/{chunk-nceh1q3d.js → chunk-fpjcrjna.js} +1 -1
- package/dist/cli/chunk-fyf7xgaa.js +2 -0
- package/dist/cli/{chunk-e1g9mvww.js → chunk-g47vt3k5.js} +1 -1
- package/dist/cli/chunk-gtkejmxx.js +3 -0
- package/dist/cli/{chunk-sm1vhrb6.js → chunk-gzf4dfg6.js} +1 -1
- package/dist/cli/chunk-j5r92gh9.js +2 -0
- package/dist/cli/chunk-jfkw009v.js +2 -0
- package/dist/cli/{chunk-k2gfqqmg.js → chunk-jq5vp0f7.js} +1 -1
- package/dist/cli/{chunk-a0rxr20w.js → chunk-jv5nqjnv.js} +1 -1
- package/dist/cli/chunk-jwv06n3d.js +8 -0
- package/dist/cli/{chunk-mfvy10ep.js → chunk-jy6nd23p.js} +1 -1
- package/dist/cli/{chunk-2ffbcsm6.js → chunk-k1sjc72d.js} +4 -4
- package/dist/cli/chunk-k9skkhzs.js +2 -0
- package/dist/cli/chunk-ktmvmskn.js +4 -0
- package/dist/cli/{chunk-fhfqyfpf.js → chunk-m2xasved.js} +2 -2
- package/dist/cli/chunk-m370e00b.js +4 -0
- package/dist/cli/{chunk-2hgt2esq.js → chunk-m4my5wna.js} +2 -2
- package/dist/cli/chunk-m57cv76y.js +3 -0
- package/dist/cli/chunk-n4dmwkfa.js +4 -0
- package/dist/cli/chunk-nw91q4x3.js +2 -0
- package/dist/cli/{chunk-5kkm6tjz.js → chunk-p9vkwnb8.js} +2 -2
- package/dist/cli/{chunk-cjxwzzq7.js → chunk-pmt3agbd.js} +1 -1
- package/dist/cli/{chunk-0h4cfy44.js → chunk-q0f6rhex.js} +2 -2
- package/dist/cli/chunk-q4ry13v3.js +2 -0
- package/dist/cli/chunk-r1p9bwja.js +7 -0
- package/dist/cli/{chunk-hg5x2wr0.js → chunk-r2pztgm6.js} +2 -2
- package/dist/cli/chunk-rf2m6f3h.js +5 -0
- package/dist/cli/{chunk-vapjtyv9.js → chunk-rgh49bm3.js} +1 -1
- package/dist/cli/{chunk-5gn4chrm.js → chunk-rz8247zr.js} +1 -1
- package/dist/cli/chunk-rz8zs7j8.js +3 -0
- package/dist/cli/{chunk-zb56ck5f.js → chunk-s433recg.js} +1 -1
- package/dist/cli/{chunk-71m4ak4t.js → chunk-s8xyh1bt.js} +1 -1
- package/dist/cli/{chunk-ppe5myr0.js → chunk-sexavazm.js} +1 -1
- package/dist/cli/chunk-ssepbf68.js +2 -0
- package/dist/cli/{chunk-6xhtf9jx.js → chunk-t05pnk6y.js} +1 -1
- package/dist/cli/{chunk-1ps9qzp1.js → chunk-tgxe9ae1.js} +2 -2
- package/dist/cli/{chunk-6zwg6me2.js → chunk-tk8p54f7.js} +1 -1
- package/dist/cli/chunk-tz9e598v.js +2 -0
- package/dist/cli/{chunk-jyv82gf0.js → chunk-w7zv47mp.js} +3 -4
- package/dist/cli/{chunk-khp1ga68.js → chunk-wc1kk5c0.js} +1 -1
- package/dist/cli/{chunk-6h9tc9vn.js → chunk-wzyh3fgx.js} +1 -1
- package/dist/cli/{chunk-8x0h6rwa.js → chunk-x39pv7rx.js} +1 -1
- package/dist/cli/{chunk-b24ykek8.js → chunk-x3gch5nw.js} +1 -1
- package/dist/cli/{chunk-db57060b.js → chunk-x8m1vmyd.js} +1 -1
- package/dist/cli/{chunk-jsss3ze7.js → chunk-xe62kmhp.js} +2 -2
- package/dist/cli/{chunk-1gpx52qj.js → chunk-xnr8dga2.js} +2 -2
- package/dist/cli/chunk-xtr7ks02.js +3 -0
- package/dist/cli/{chunk-fbg4fkmg.js → chunk-y5hnrx8d.js} +1 -1
- package/dist/cli/{chunk-13s8rnk5.js → chunk-y9ksfpbp.js} +1 -1
- package/dist/cli/{chunk-p7kztgsd.js → chunk-ybsdy2w8.js} +1 -1
- package/dist/cli/{chunk-1z9ae43v.js → chunk-yfg503fr.js} +1 -1
- package/dist/cli/{chunk-tfdx5ve6.js → chunk-zaxdx0wd.js} +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/kobe.js +1 -1
- package/dist/cli/pty-host-node.mjs +25 -2
- package/dist/cli/rove.js +1 -1
- package/package.json +2 -1
- package/dist/cli/chunk-003tvywc.js +0 -3
- package/dist/cli/chunk-0kn7xxqm.js +0 -6
- package/dist/cli/chunk-0tw42ad1.js +0 -2
- package/dist/cli/chunk-1cqtm24j.js +0 -8
- package/dist/cli/chunk-20pt9yqh.js +0 -4
- package/dist/cli/chunk-2jxdzw4r.js +0 -3
- package/dist/cli/chunk-2pqqvse3.js +0 -2
- package/dist/cli/chunk-2t62vct7.js +0 -2
- package/dist/cli/chunk-4d7bbh87.js +0 -2
- package/dist/cli/chunk-5b6940vk.js +0 -2
- package/dist/cli/chunk-5hhvrvgm.js +0 -8
- package/dist/cli/chunk-7nhdvr5v.js +0 -4
- package/dist/cli/chunk-84aks78e.js +0 -3
- package/dist/cli/chunk-99devyxr.js +0 -2
- package/dist/cli/chunk-awsawfrm.js +0 -2
- package/dist/cli/chunk-bzz4ta7g.js +0 -17
- package/dist/cli/chunk-dk3pvrw6.js +0 -2
- package/dist/cli/chunk-fyjj9ast.js +0 -2
- package/dist/cli/chunk-gjf604bb.js +0 -3
- package/dist/cli/chunk-gm3vj0fv.js +0 -5
- package/dist/cli/chunk-h79zfebh.js +0 -7
- package/dist/cli/chunk-h9xpeqn6.js +0 -2
- package/dist/cli/chunk-hpj8xjxb.js +0 -2
- package/dist/cli/chunk-k5k0ecka.js +0 -4
- package/dist/cli/chunk-mfqjdpd8.js +0 -2
- package/dist/cli/chunk-ncsgawg7.js +0 -2
- package/dist/cli/chunk-qtke4x42.js +0 -3
- package/dist/cli/chunk-r26g5ree.js +0 -2
- package/dist/cli/chunk-vwjec3m6.js +0 -3
- package/dist/cli/chunk-vws0j65e.js +0 -4
- package/dist/cli/chunk-vzvy1s1d.js +0 -2
- package/dist/cli/chunk-w5xy83ze.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{engineProcessIn,foregroundEngine,foregroundEngineIn,hasAncestor,parsePsSnapshot,psSnapshot,vendorFromArgv}from"./chunk-x3gch5nw.js";import"./chunk-e7t4xpr9.js";import"./chunk-n4dmwkfa.js";import"./chunk-w7zv47mp.js";import"./chunk-gwcneg6c.js";import"./chunk-m370e00b.js";import"./chunk-7jkf3tvr.js";import"./chunk-2fypr41w.js";import"./chunk-87y9qjcm.js";import"./chunk-m57cv76y.js";import"./chunk-dmdqnet6.js";import"./chunk-xy8be792.js";import"./chunk-a3a9gdc4.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};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function toError(err){if(err instanceof Error)return err;let text;try{text=typeof err==="string"?err:JSON.stringify(err)}catch{text=String(err)}return Error(text)}function formatCrashEntry(kind,err,now=new Date){let e=toError(err);return`[${now.toISOString()}] daemon ${kind}: ${e.stack??`${e.name}: ${e.message}`}
|
|
3
|
+
`}function formatDaemonError(subsystem,err,now=new Date){let e=toError(err);return`[${now.toISOString()}] daemon error [${subsystem}]: ${e.stack??`${e.name}: ${e.message}`}
|
|
4
|
+
`}function logDaemonError(subsystem,err){process.stderr.write(formatDaemonError(subsystem,err))}function formatDaemonInfo(subsystem,message,now=new Date){return`[${now.toISOString()}] daemon [${subsystem}]: ${message}
|
|
5
|
+
`}function logDaemonInfo(subsystem,message){process.stderr.write(formatDaemonInfo(subsystem,message))}var onRejection,onException;function installDaemonCrashHandlers(log=(l)=>process.stderr.write(l)){if(onRejection||onException)return;onRejection=(reason)=>log(formatCrashEntry("unhandledRejection",reason)),onException=(err)=>log(formatCrashEntry("uncaughtException",err)),process.on("unhandledRejection",onRejection),process.on("uncaughtException",onException)}
|
|
6
|
+
export{logDaemonError,logDaemonInfo,installDaemonCrashHandlers};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{GitWorktreeManager}from"./chunk-98thhbm5.js";import"./chunk-2cyzv75r.js";import"./chunk-6xppe9bj.js";import"./chunk-7zmrn4gn.js";import"./chunk-1kktfmtg.js";import"./chunk-2fypr41w.js";import"./chunk-87y9qjcm.js";import"./chunk-m57cv76y.js";import"./chunk-a3a9gdc4.js";import"./chunk-9c1e5z6a.js";import"./chunk-6dn6h640.js";import"./chunk-cb2fpajx.js";import"./chunk-3bfm4hrs.js";import"./chunk-wqfp8d9w.js";export{GitWorktreeManager};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{execHostForRepo}from"./chunk-7zmrn4gn.js";import{getRemoteRepoConfig,isRemoteRepoKey}from"./chunk-87y9qjcm.js";import{loadStateFile}from"./chunk-m57cv76y.js";import{homeDir,legacyKobeStateDir,roveStateDir}from"./chunk-6dn6h640.js";import{createHash}from"crypto";import fs from"fs";import path from"path";import{isAbsolute,join,resolve}from"path";var WORKTREE_BASE_KEY="worktree.basePath",WORKTREE_BASE_CUSTOM_KEY="worktree.basePath.custom",PROJECT_DIR_TOKEN="$project_dir",PROJECT_SIBLING_BASE=`${PROJECT_DIR_TOKEN}/..`;function worktreeBaseKindOf(raw){let trimmed=raw.trim();if(!trimmed)return"default";if(trimmed.replace(/\/+$/,"")===PROJECT_SIBLING_BASE)return"nextToProject";return"custom"}function hasProjectDirToken(raw){let trimmed=raw.trim();return trimmed===PROJECT_DIR_TOKEN||trimmed.startsWith(`${PROJECT_DIR_TOKEN}/`)}function normalizeWorktreeBase(raw,projectDir){if(typeof raw!=="string")return null;let trimmed=raw.trim();if(!trimmed)return null;if(hasProjectDirToken(trimmed)){if(!projectDir)return null;let rest=trimmed.slice(PROJECT_DIR_TOKEN.length).replace(/^\/+/,"");return resolve(projectDir,rest)}let home=homeDir();if(trimmed==="~")return home;let expanded=trimmed.startsWith("~/")?join(home,trimmed.slice(2)):trimmed;return isAbsolute(expanded)?expanded:resolve(home,expanded)}function getWorktreeBaseOverride(projectDir){let value=loadStateFile()[WORKTREE_BASE_KEY];return normalizeWorktreeBase(typeof value==="string"?value:null,projectDir)}var KOBE_WORKTREE_ROOT_DIR="worktrees",REPO_LOCAL_ROVE_WORKTREE_ROOT_SUBPATH=".rove/worktrees",REPO_LOCAL_KOBE_WORKTREE_ROOT_SUBPATH=".kobe/worktrees",LEGACY_KOBE_WORKTREE_ROOT_SUBPATH=".claude/worktrees",REPO_LOCAL_KOBE_MANAGED_WORKTREE_ROOT_SUBPATHS=[REPO_LOCAL_ROVE_WORKTREE_ROOT_SUBPATH,REPO_LOCAL_KOBE_WORKTREE_ROOT_SUBPATH,LEGACY_KOBE_WORKTREE_ROOT_SUBPATH];function localWorktreesRoot(repo){return getWorktreeBaseOverride(repo)??path.join(roveStateDir(),KOBE_WORKTREE_ROOT_DIR)}function defaultLocalWorktreesRoot(){return path.join(roveStateDir(),KOBE_WORKTREE_ROOT_DIR)}function legacyLocalWorktreesRoot(){return path.join(legacyKobeStateDir(),KOBE_WORKTREE_ROOT_DIR)}function worktreeRootFor(repo){if(!path.isAbsolute(repo))throw Error(`worktreeRootFor: repo must be an absolute path, got: ${repo}`);return path.join(localWorktreesRoot(repo),repoWorktreeDirName(repo))}function managedWorktreeRootsFor(repo){if(!path.isAbsolute(repo))throw Error(`managedWorktreeRootsFor: repo must be an absolute path, got: ${repo}`);let active=worktreeRootFor(repo),fallback=path.join(defaultLocalWorktreesRoot(),repoWorktreeDirName(repo)),legacy=path.join(legacyLocalWorktreesRoot(),repoWorktreeDirName(repo));return[...new Set([...[active,fallback,legacy],...REPO_LOCAL_KOBE_MANAGED_WORKTREE_ROOT_SUBPATHS.map((subpath)=>path.join(repo,subpath))])]}function worktreePathFor(repo,slug){if(!slug||/[/\\\0]/.test(slug))throw Error(`worktreePathFor: invalid slug: ${JSON.stringify(slug)}`);return path.join(worktreeRootFor(repo),slug)}async function listWorktreeDirNames(repo){if(isRemoteRepoKey(repo)){let basePath=getRemoteRepoConfig(repo)?.basePath;if(!basePath)return[];let names2=new Set,host=execHostForRepo(repo),entries=await Promise.all(remoteManagedWorktreeRootsFor(basePath).map((root)=>host.readdir(root)));for(let list of entries)for(let name of list)names2.add(name);return[...names2]}let names=new Set;for(let root of managedWorktreeRootsFor(repo))try{for(let e of fs.readdirSync(root,{withFileTypes:!0}))if(e.isDirectory())names.add(e.name)}catch{}return[...names]}function managedWorktreeRootForPath(repo,candidate){if(!path.isAbsolute(repo)||!path.isAbsolute(candidate))return null;let target=canonicalize(candidate);for(let rootPath of managedWorktreeRootsFor(repo)){let root=canonicalize(rootPath),rel=path.relative(root,target);if(rel!==""&&!rel.startsWith("..")&&!path.isAbsolute(rel))return rootPath}return null}function isKobeManagedPath(repo,candidate){return managedWorktreeRootForPath(repo,candidate)!==null}function isUnderManagedWorktreesRoot(candidate,projectDir){if(!path.isAbsolute(candidate))return!1;let target=canonicalize(candidate),roots=[getWorktreeBaseOverride(projectDir)??"",defaultLocalWorktreesRoot(),legacyLocalWorktreesRoot()];for(let rootPath of roots){if(!rootPath)continue;let root=canonicalize(rootPath),rel=path.relative(root,target);if(rel.startsWith("..")||path.isAbsolute(rel))continue;if(rel.split(path.sep).filter(Boolean).length===2)return!0}return!1}function remoteWorktreeRootFor(basePath){return`${stripTrailingSlash(basePath)}/.rove/worktrees`}function remoteManagedWorktreeRootsFor(basePath){let base=stripTrailingSlash(basePath);return[`${base}/.rove/worktrees`,`${base}/.kobe/worktrees`]}function remoteWorktreePathFor(basePath,slug){if(!slug||/[/\\\0]/.test(slug))throw Error(`remoteWorktreePathFor: invalid slug: ${JSON.stringify(slug)}`);return`${remoteWorktreeRootFor(basePath)}/${slug}`}function remoteManagedRootForPath(basePath,candidate){for(let root of remoteManagedWorktreeRootsFor(basePath))if(candidate===root||candidate.startsWith(`${root}/`))return root;return null}function stripTrailingSlash(p){return p.length>1&&p.endsWith("/")?p.replace(/\/+$/,""):p}function requireAbsolute(name,value){if(!value||!path.isAbsolute(value))throw Error(`${name} must be an absolute path, got: ${JSON.stringify(value)}`)}function canonicalize(p){try{return fs.realpathSync(p)}catch{return path.resolve(p)}}function repoWorktreeDirName(repo){let safeBase=(path.basename(repo)||"repo").replace(/[^a-zA-Z0-9._-]+/g,"-").replace(/^-+|-+$/g,"")||"repo",hash=createHash("sha1").update(path.resolve(repo)).digest("hex").slice(0,12);return`${safeBase}-${hash}`}
|
|
3
|
+
export{WORKTREE_BASE_KEY,WORKTREE_BASE_CUSTOM_KEY,PROJECT_DIR_TOKEN,PROJECT_SIBLING_BASE,worktreeBaseKindOf,hasProjectDirToken,normalizeWorktreeBase,worktreePathFor,listWorktreeDirNames,managedWorktreeRootForPath,isKobeManagedPath,isUnderManagedWorktreesRoot,remoteWorktreePathFor,remoteManagedRootForPath,requireAbsolute,canonicalize};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{findBinding,formatChord}from"./chunk-
|
|
2
|
+
import{findBinding,formatChord}from"./chunk-rz8247zr.js";function capOf(row){return row.hint?.keys??row.keys[0]}function legendCap(id){let row=findBinding(id);if(!row)return null;let cap=capOf(row);return cap&&cap.length>0?cap:null}function directCap(row){if(row.keys.length>0)return row.hint?.keys??row.keys[0]??null;return row.prefixKeys?.length?null:row.hint?.keys??null}function availableOn(row,surface){if(row.scope==="global")return!0;if(surface===null)return!1;if(row.scope===surface)return!0;return surface==="terminal"&&row.scope==="workspace"}function grammarHelpSections(keymap,surface,prefixKey,reachability){let here=[],direct=[],prefix=[],other=new Map;for(let binding of keymap){let cap=directCap(binding),staticallyAvailable=availableOn(binding,surface),directAvailable=reachability?reachability.direct.has(binding.id):staticallyAvailable,prefixAvailable=reachability?reachability.prefix.has(binding.id):staticallyAvailable;if(cap){let row={binding,primary:cap,aliases:binding.keys.filter((key)=>key!==cap)};if(directAvailable&&(staticallyAvailable||binding.presentation==="onePress"))if(binding.presentation==="onePress")direct.push(row);else here.push(row);else if(!staticallyAvailable&&binding.scope!=="global"){let rows=other.get(binding.scope);if(rows)rows.push(row);else other.set(binding.scope,[row])}}if(prefixKey&&prefixAvailable&&binding.prefixKeys?.length)prefix.push({binding,primary:`${prefixKey} + ${binding.prefixKeys[0]}`,aliases:binding.prefixKeys.slice(1).map((key)=>`${prefixKey} + ${key}`)})}let sections=[];if(here.length)sections.push({kind:"here",scope:surface??void 0,rows:here});if(direct.length)sections.push({kind:"direct",rows:direct});if(prefix.length)sections.push({kind:"prefix",rows:prefix});for(let[scope,rows]of other)sections.push({kind:"other",scope,rows});return sections}var SCOPE_CATEGORY={global:"Global",sidebar:"Sidebar",workspace:"Workspace",files:"Files",inbox:"Inbox",terminal:"Terminal"};function scopeCategory(scope){return scope?SCOPE_CATEGORY[scope]:"Global"}function guideCategory(action){if(["kanban.open","automations.open","workItems.open"].includes(action))return"Views";if(action.startsWith("focus."))return"Navigation";if(action.startsWith("inbox.")||action.startsWith("attention."))return"Attention";if(action.startsWith("chat.tab.")||action.startsWith("chat.session."))return"Sessions";if(action.startsWith("chat.fork.")||action.startsWith("task."))return"Tasks";if(action.startsWith("settings.")||action==="workspace.zenToggle")return"Tools";return findBinding(action)?.category??"Global"}var KEY_HINTS_ENABLED_KEY="hints.keyboard.enabled",PANE_HINT_USED_KEYS={sidebar:"hints.sidebar.used",files:"hints.files.used"};function keyHintsEnabled(raw){return raw!==!1}function keyHintsToggleOn(kv){return keyHintsEnabled(kv.get(KEY_HINTS_ENABLED_KEY,!0))}function toggleKeyHints(kv){let next=!keyHintsToggleOn(kv);if(kv.set(KEY_HINTS_ENABLED_KEY,next),next)for(let key of Object.values(PANE_HINT_USED_KEYS))kv.set(key,!1)}function paneHintVisible(enabledRaw,usedRaw){return keyHintsEnabled(enabledRaw)&&usedRaw!==!0}function statusHintTokens(reach,prefixKey){let tokens=[];if(prefixKey!==null&&reach.prefix.size>0)tokens.push({chord:prefixKey,msg:"commands"});else if(reach.inputPassthrough){let cap=reach.direct.has("focus.sidebar")?legendCap("focus.sidebar"):null;if(cap)tokens.push({chord:cap,msg:"sidebar"})}if(reach.direct.has("help.open")){let cap=legendCap("help.open");if(cap)tokens.push({chord:cap,msg:"help"})}return tokens}var PANE_HINT_ROWS={sidebar:[{id:"sidebar.nav",msg:"move"},{id:"sidebar.select",msg:"open"}],files:[{id:"files.nav",msg:"move"},{id:"files.hierarchy",msg:"collapse"},{id:"files.open",msg:"open",always:!0},{id:"files.diff",msg:"diff",always:!0}]};function paneHintTokens(pane,mode){return PANE_HINT_ROWS[pane].flatMap((row)=>{if(mode==="always"&&row.always!==!0)return[];let cap=legendCap(row.id);return cap?[{cap,msg:row.msg}]:[]})}function wizardKeyLines(prefixKey){let lines=[],nav=legendCap("sidebar.nav"),open=legendCap("sidebar.select");if(nav&&open)lines.push({msg:"keysBare",params:{nav:formatChord(nav),open:formatChord(open)}});let newTab=legendCap("chat.tab.new"),focusNext=legendCap("focus.next");if(newTab&&focusNext)lines.push({msg:"keysOnePress",params:{newTab:formatChord(newTab),focusNext:formatChord(focusNext)}});if(prefixKey!==null)lines.push({msg:"keysPrefix",params:{prefix:formatChord(prefixKey)}});let help=legendCap("help.open");if(help)lines.push({msg:"keysHelp",params:{help:formatChord(help)}});return lines}
|
|
3
3
|
export{legendCap,grammarHelpSections,scopeCategory,guideCategory,KEY_HINTS_ENABLED_KEY,PANE_HINT_USED_KEYS,keyHintsEnabled,keyHintsToggleOn,toggleKeyHints,paneHintVisible,statusHintTokens,paneHintTokens,wizardKeyLines};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{writeOutdatedCache}from"./chunk-86bjqmg1.js";import{PluginCliError,installPlugin}from"./chunk-fm4q306m.js";import{loadPluginRegistry,pluginCheckoutDir,pluginConfigDir,pluginDataDir,pluginStateDir,removePluginEntry,savePluginRegistry}from"./chunk-d393z1mj.js";import"./chunk-gtkejmxx.js";import"./chunk-kwe61yx7.js";import"./chunk-w7zv47mp.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{readLastActiveTaskId,writeLastActiveTaskId}from"./chunk-s433recg.js";import"./chunk-m57cv76y.js";import"./chunk-a3a9gdc4.js";import"./chunk-6dn6h640.js";import"./chunk-cb2fpajx.js";import"./chunk-3bfm4hrs.js";import"./chunk-wqfp8d9w.js";export{writeLastActiveTaskId,readLastActiveTaskId};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{getPersistedString,setPersistedString}from"./chunk-
|
|
2
|
+
import{getPersistedString,setPersistedString}from"./chunk-87y9qjcm.js";import{activeCliName}from"./chunk-ef11h2am.js";import{ROVE_PRODUCT_NAME}from"./chunk-cb2fpajx.js";import{__require}from"./chunk-wqfp8d9w.js";import{accessSync,existsSync,constants as fsConstants,readFileSync,statSync}from"fs";import{homedir}from"os";import{delimiter,dirname,join,resolve}from"path";import{fileURLToPath}from"url";var KOBE_SKILL_VERSION=42,ROVE_SKILL_REL_PATHS=[".agents/skills/rove/SKILL.md",".claude/skills/rove/SKILL.md"],LEGACY_SKILL_REL_PATHS=[".agents/skills/kobe/SKILL.md",".claude/skills/kobe/SKILL.md"],SKILL_REL_PATHS=[...ROVE_SKILL_REL_PATHS,...LEGACY_SKILL_REL_PATHS];function skillInstallCommand(env=process.env){return`${activeCliName(env)} skill install`}var SKILL_SOURCE_SLUG="Sma1lboy/rove";function bundledSkillDir(){let here=fileURLToPath(import.meta.url);return[resolve(here,"../../../../../.agents/skills/kobe"),resolve(here,"../../skills/rove")].find((dir)=>existsSync(join(dir,"SKILL.md")))??null}function npxSkillsArgv(opts={}){let source=opts.source!==void 0?opts.source:bundledSkillDir(),agents=opts.agent===void 0?[]:typeof opts.agent==="string"?[opts.agent]:opts.agent;return["skills","add",source??SKILL_SOURCE_SLUG,"--skill",ROVE_PRODUCT_NAME,...opts.global===!1?[]:["--global"],...agents.flatMap((a)=>["--agent",a])]}function npxSkillsCommand(opts={}){return`npx ${npxSkillsArgv(opts).join(" ")}`}var NPX_MISSING_EXIT=127;function isNpxMissing(){let parts=(process.env.PATH??"").split(delimiter).filter(Boolean);if(parts.length===0)return!1;return!parts.some((dir)=>{try{return accessSync(join(dir,"npx"),fsConstants.X_OK),!0}catch{return!1}})}function npxMissingMessage(){return`${activeCliName()} skill install needs \`npx\` (part of Node.js), which isn't on your PATH.
|
|
3
3
|
Install Node.js (https://nodejs.org) and run it again \u2014 the Rove installer only installs Bun and Rove.`}async function runNpxSkillsInstall(agent,global){if(isNpxMissing())return process.stderr.write(`
|
|
4
4
|
${npxMissingMessage()}
|
|
5
5
|
|
|
6
|
-
`),NPX_MISSING_EXIT;return await Bun.spawn(["npx",...npxSkillsArgv({...agent===void 0?{}:{agent},global})],{stdin:"inherit",stdout:"inherit",stderr:"inherit"}).exited}var HINT_SEEN_KEY="skillHintSeen";function markSkillHintSeen(){setPersistedString(HINT_SEEN_KEY,"1")}function kobeSkillPaths(opts={}){let home=opts.home??homedir(),cwd=opts.cwd??process.cwd();return[home,cwd].flatMap((root)=>SKILL_REL_PATHS.map((rel)=>join(root,rel)))}function parseSkillVersion(content){let m=content.match(/(?:rove|kobe)-skill-version:\s*(\d+)/);return m?Number.parseInt(m[1],10):null}function skillVersionAt(path){try{return parseSkillVersion(readFileSync(path,"utf8"))}catch{return null}}function inodeKey(path){try{let stat=statSync(path);return`${stat.dev}:${stat.ino}`}catch{return path}}function distinctSkillFiles(roots,rels){let seen=new Set,out=[];for(let root of roots)for(let rel of rels){let path=join(root,rel);if(!existsSync(path))continue;let key=inodeKey(path);if(seen.has(key))continue;seen.add(key),out.push(path)}return out}function installedSkillDirs(home=homedir()){return distinctSkillFiles([home],SKILL_REL_PATHS).map((path)=>dirname(path))}function kobeSkillState(opts={}){let roots=[opts.home??homedir(),opts.cwd??process.cwd()],roveCopies=distinctSkillFiles(roots,ROVE_SKILL_REL_PATHS).map((path)=>({path,version:skillVersionAt(path)})),legacy=distinctSkillFiles(roots,LEGACY_SKILL_REL_PATHS).map((path)=>({path,version:skillVersionAt(path)})),best=[...roveCopies].sort((a,b)=>(b.version??-1)-(a.version??-1))[0]??legacy[0];if(!best)return{installed:!1,installedVersion:null,currentVersion:KOBE_SKILL_VERSION,stale:!1,legacyCopies:[]};let stale=best.version===null||best.version<KOBE_SKILL_VERSION;return{installed:!0,installedVersion:best.version,currentVersion:KOBE_SKILL_VERSION,stale,legacyCopies:legacy.filter((copy)=>copy.path!==best.path)}}function describeLegacyCopies(copies){return copies.map((c)=>`${c.path}${c.version===null?"":` (v${c.version})`}`).join(", ")}function promptLine(){return new Promise((resolve2)=>{process.stdin.resume(),process.stdin.once("data",(d)=>{process.stdin.pause(),resolve2(String(d))})})}async function maybeHintSkillInstall(io={}){let{isRovePluginEnabled}=await import("./chunk-
|
|
6
|
+
`),NPX_MISSING_EXIT;return await Bun.spawn(["npx",...npxSkillsArgv({...agent===void 0?{}:{agent},global})],{stdin:"inherit",stdout:"inherit",stderr:"inherit"}).exited}var HINT_SEEN_KEY="skillHintSeen";function markSkillHintSeen(){setPersistedString(HINT_SEEN_KEY,"1")}function kobeSkillPaths(opts={}){let home=opts.home??homedir(),cwd=opts.cwd??process.cwd();return[home,cwd].flatMap((root)=>SKILL_REL_PATHS.map((rel)=>join(root,rel)))}function parseSkillVersion(content){let m=content.match(/(?:rove|kobe)-skill-version:\s*(\d+)/);return m?Number.parseInt(m[1],10):null}function skillVersionAt(path){try{return parseSkillVersion(readFileSync(path,"utf8"))}catch{return null}}function inodeKey(path){try{let stat=statSync(path);return`${stat.dev}:${stat.ino}`}catch{return path}}function distinctSkillFiles(roots,rels){let seen=new Set,out=[];for(let root of roots)for(let rel of rels){let path=join(root,rel);if(!existsSync(path))continue;let key=inodeKey(path);if(seen.has(key))continue;seen.add(key),out.push(path)}return out}function installedSkillDirs(home=homedir()){return distinctSkillFiles([home],SKILL_REL_PATHS).map((path)=>dirname(path))}function kobeSkillState(opts={}){let roots=[opts.home??homedir(),opts.cwd??process.cwd()],roveCopies=distinctSkillFiles(roots,ROVE_SKILL_REL_PATHS).map((path)=>({path,version:skillVersionAt(path)})),legacy=distinctSkillFiles(roots,LEGACY_SKILL_REL_PATHS).map((path)=>({path,version:skillVersionAt(path)})),best=[...roveCopies].sort((a,b)=>(b.version??-1)-(a.version??-1))[0]??legacy[0];if(!best)return{installed:!1,installedVersion:null,currentVersion:KOBE_SKILL_VERSION,stale:!1,legacyCopies:[]};let stale=best.version===null||best.version<KOBE_SKILL_VERSION;return{installed:!0,installedVersion:best.version,currentVersion:KOBE_SKILL_VERSION,stale,legacyCopies:legacy.filter((copy)=>copy.path!==best.path)}}function describeLegacyCopies(copies){return copies.map((c)=>`${c.path}${c.version===null?"":` (v${c.version})`}`).join(", ")}function promptLine(){return new Promise((resolve2)=>{process.stdin.resume(),process.stdin.once("data",(d)=>{process.stdin.pause(),resolve2(String(d))})})}async function maybeHintSkillInstall(io={}){let{isRovePluginEnabled}=await import("./chunk-ktmvmskn.js");if(isRovePluginEnabled())return;let cliName=activeCliName(),installCommand=skillInstallCommand(),state=kobeSkillState();if(!state.installed){if(getPersistedString(HINT_SEEN_KEY)==="1")return;setPersistedString(HINT_SEEN_KEY,"1"),process.stderr.write(`
|
|
7
7
|
${cliName}: the Rove agent skill isn't installed \u2014 install it so your coding agent can drive Rove via \`${cliName} api\`:
|
|
8
8
|
${installCommand}
|
|
9
9
|
(wraps \`${npxSkillsCommand()}\`; check anytime with \`${cliName} doctor\`)
|