open source is social v-it.org
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

reserve brand for display, add name for typing contexts

+39 -38
+5 -5
src/cmd/adopt.js
··· 7 7 import { parseGitUrl, toBeacon, beaconToHttps } from '../lib/beacon.js'; 8 8 import { requireNotAgent } from '../lib/agent.js'; 9 9 import { which } from '../lib/compat.js'; 10 - import { mark, brand } from '../lib/brand.js'; 10 + import { mark, name } from '../lib/brand.js'; 11 11 12 12 export default function register(program) { 13 13 program ··· 16 16 .argument('[name]', 'Local directory name (defaults to repo name)') 17 17 .description('Fork or clone a project') 18 18 .option('-v, --verbose', 'Show step-by-step details') 19 - .action(async (beacon, name, opts) => { 19 + .action(async (beacon, targetName, opts) => { 20 20 try { 21 21 const gate = requireNotAgent(); 22 22 if (!gate.ok) { 23 - console.error(`${brand} adopt must be run by a human. run it in your own terminal.`); 23 + console.error(`${name} adopt must be run by a human. run it in your own terminal.`); 24 24 process.exitCode = 1; 25 25 return; 26 26 } ··· 36 36 if (verbose) console.log(`[verbose] https: ${httpsUrl}`); 37 37 38 38 // determine directory name 39 - const dirName = name || parsed.repo; 39 + const dirName = targetName || parsed.repo; 40 40 const dirPath = resolve(dirName); 41 41 if (verbose) console.log(`[verbose] target directory: ${dirPath}`); 42 42 ··· 83 83 console.log(`${mark} directory: ${dirName}`); 84 84 console.log(`run: cd ${dirName}`); 85 85 console.log(''); 86 - console.log(`next: start your agent and ask it to run '${brand} init'`); 86 + console.log(`next: start your agent and ask it to run '${name} init'`); 87 87 } catch (err) { 88 88 console.error(err instanceof Error ? err.message : String(err)); 89 89 process.exitCode = 1;
+3 -3
src/cmd/doctor.js
··· 5 5 import { readProjectConfig } from '../lib/vit-dir.js'; 6 6 import { existsSync } from 'node:fs'; 7 7 import { join } from 'node:path'; 8 - import { mark, brand } from '../lib/brand.js'; 8 + import { mark, name } from '../lib/brand.js'; 9 9 10 10 export default function register(program) { 11 11 program ··· 18 18 const when = new Date(config.setup_at * 1000).toISOString(); 19 19 console.log(`${mark} setup: ok (${when})`); 20 20 } else { 21 - console.log(`${mark} setup: not done (run ${brand} setup)`); 21 + console.log(`${mark} setup: not done (run ${name} setup)`); 22 22 } 23 23 24 24 const projConfig = readProjectConfig(); ··· 32 32 if (existsSync(skillPath)) { 33 33 console.log(`${mark} skill: ok (using-vit)`); 34 34 } else { 35 - console.log(`${mark} skill: not installed (run ${brand} setup)`); 35 + console.log(`${mark} skill: not installed (run ${name} setup)`); 36 36 } 37 37 } catch (err) { 38 38 console.error(err instanceof Error ? err.message : String(err));
+9 -9
src/cmd/init.js
··· 7 7 import { toBeacon } from '../lib/beacon.js'; 8 8 import { vitDir, readProjectConfig, writeProjectConfig } from '../lib/vit-dir.js'; 9 9 import { requireAgent } from '../lib/agent.js'; 10 - import { mark, brand, DOT_VIT_README } from '../lib/brand.js'; 10 + import { mark, name, DOT_VIT_README } from '../lib/brand.js'; 11 11 12 12 export default function register(program) { 13 13 program ··· 19 19 try { 20 20 const gate = requireAgent(); 21 21 if (!gate.ok) { 22 - console.error(`${brand} init should be run by a coding agent (e.g. claude code, gemini cli).`); 23 - console.error(`open your agent and ask it to run '${brand} init' for you.`); 22 + console.error(`${name} init should be run by a coding agent (e.g. claude code, gemini cli).`); 23 + console.error(`open your agent and ask it to run '${name} init' for you.`); 24 24 process.exitCode = 1; 25 25 return; 26 26 } ··· 33 33 const config = readProjectConfig(); 34 34 if (config.beacon) { 35 35 console.log(`${mark} beacon: ${config.beacon}`); 36 - console.log(`hint: to change the beacon, run: ${brand} init --beacon <git-url>`); 36 + console.log(`hint: to change the beacon, run: ${name} init --beacon <git-url>`); 37 37 return; 38 38 } 39 39 ··· 52 52 console.log(hasVitDir ? 'status: no beacon' : 'status: not initialized'); 53 53 console.log('git: false'); 54 54 if (hasVitDir) { 55 - console.log(`hint: run: ${brand} init --beacon <canonical-git-url>`); 55 + console.log(`hint: run: ${name} init --beacon <canonical-git-url>`); 56 56 } else { 57 - console.log(`hint: run ${brand} init from inside a git repository.`); 57 + console.log(`hint: run ${name} init from inside a git repository.`); 58 58 } 59 59 return; 60 60 } ··· 99 99 const origin = remotes.find(remote => remote.name === 'origin'); 100 100 if (upstream) { 101 101 console.log('hint: detected upstream remote. upstream points to the canonical repo.'); 102 - console.log(`hint: run: ${brand} init --beacon ${upstream.url}`); 102 + console.log(`hint: run: ${name} init --beacon ${upstream.url}`); 103 103 } else if (origin) { 104 - console.log(`hint: run: ${brand} init --beacon ${origin.url}`); 104 + console.log(`hint: run: ${name} init --beacon ${origin.url}`); 105 105 } else { 106 - console.log(`hint: no git remotes found. run: ${brand} init --beacon <canonical-git-url>`); 106 + console.log(`hint: no git remotes found. run: ${name} init --beacon <canonical-git-url>`); 107 107 } 108 108 return; 109 109 }
+4 -4
src/cmd/remix.js
··· 7 7 import { readProjectConfig, readFollowing, readLog } from '../lib/vit-dir.js'; 8 8 import { requireAgent } from '../lib/agent.js'; 9 9 import { resolveRef, REF_PATTERN } from '../lib/cap-ref.js'; 10 - import { brand } from '../lib/brand.js'; 10 + import { brand, name } from '../lib/brand.js'; 11 11 12 12 export default function register(program) { 13 13 program ··· 20 20 try { 21 21 const gate = requireAgent(); 22 22 if (!gate.ok) { 23 - console.error(`${brand} remix should be run by a coding agent (e.g. claude code, gemini cli).`); 24 - console.error(`open your agent and ask it to run '${brand} remix' for you.`); 23 + console.error(`${name} remix should be run by a coding agent (e.g. claude code, gemini cli).`); 24 + console.error(`open your agent and ask it to run '${name} remix' for you.`); 25 25 process.exitCode = 1; 26 26 return; 27 27 } ··· 41 41 const projectConfig = readProjectConfig(); 42 42 const beacon = projectConfig.beacon; 43 43 if (!beacon) { 44 - console.error(`no beacon set. run '${brand} init' in a project directory first.`); 44 + console.error(`no beacon set. run '${name} init' in a project directory first.`); 45 45 process.exitCode = 1; 46 46 return; 47 47 }
+3 -3
src/cmd/setup.js
··· 5 5 import { loadConfig, saveConfig } from '../lib/config.js'; 6 6 import { requireNotAgent } from '../lib/agent.js'; 7 7 import { which } from '../lib/compat.js'; 8 - import { mark, brand } from '../lib/brand.js'; 8 + import { mark, brand, name } from '../lib/brand.js'; 9 9 10 10 export default function register(program) { 11 11 program ··· 15 15 try { 16 16 const gate = requireNotAgent(); 17 17 if (!gate.ok) { 18 - console.error(`${brand} setup must be run by a human. run it in your own terminal.`); 18 + console.error(`${name} setup must be run by a human. run it in your own terminal.`); 19 19 process.exitCode = 1; 20 20 return; 21 21 } ··· 57 57 console.log(`${mark} login: ${config.did}`); 58 58 } else { 59 59 console.log(`${mark} login: not logged in`); 60 - console.log(`next: run '${brand} login <handle>' to authenticate with Bluesky`); 60 + console.log(`next: run '${name} login <handle>' to authenticate with Bluesky`); 61 61 } 62 62 63 63 if (!config.setup_at) {
+3 -3
src/cmd/ship.js
··· 9 9 import { restoreAgent } from '../lib/oauth.js'; 10 10 import { appendLog, readProjectConfig, readLog, readFollowing } from '../lib/vit-dir.js'; 11 11 import { REF_PATTERN, resolveRef } from '../lib/cap-ref.js'; 12 - import { brand } from '../lib/brand.js'; 12 + import { name } from '../lib/brand.js'; 13 13 14 14 export default function register(program) { 15 15 program ··· 25 25 try { 26 26 const gate = requireAgent(); 27 27 if (!gate.ok) { 28 - console.error(`${brand} ship should be run by a coding agent (e.g. claude code, gemini cli).`); 29 - console.error(`open your agent and ask it to run '${brand} ship' for you.`); 28 + console.error(`${name} ship should be run by a coding agent (e.g. claude code, gemini cli).`); 29 + console.error(`open your agent and ask it to run '${name} ship' for you.`); 30 30 process.exitCode = 1; 31 31 return; 32 32 }
+5 -5
src/cmd/skim.js
··· 7 7 import { readProjectConfig, readFollowing } from '../lib/vit-dir.js'; 8 8 import { requireAgent } from '../lib/agent.js'; 9 9 import { resolveRef } from '../lib/cap-ref.js'; 10 - import { brand } from '../lib/brand.js'; 10 + import { name } from '../lib/brand.js'; 11 11 12 12 export default function register(program) { 13 13 program ··· 22 22 try { 23 23 const gate = requireAgent(); 24 24 if (!gate.ok) { 25 - console.error(`${brand} skim should be run by a coding agent (e.g. claude code, gemini cli).`); 26 - console.error(`open your agent and ask it to run '${brand} skim' for you.`); 25 + console.error(`${name} skim should be run by a coding agent (e.g. claude code, gemini cli).`); 26 + console.error(`open your agent and ask it to run '${name} skim' for you.`); 27 27 process.exitCode = 1; 28 28 return; 29 29 } ··· 36 36 const projectConfig = readProjectConfig(); 37 37 const beacon = projectConfig.beacon; 38 38 if (!beacon) { 39 - console.error(`no beacon set. run '${brand} init' in a project directory first.`); 39 + console.error(`no beacon set. run '${name} init' in a project directory first.`); 40 40 process.exitCode = 1; 41 41 return; 42 42 } ··· 103 103 console.log(); 104 104 } 105 105 console.log('---'); 106 - console.log(`hint: tell your user to run '${brand} vet <ref>' in another terminal for any cap they want to review.`); 106 + console.log(`hint: tell your user to run '${name} vet <ref>' in another terminal for any cap they want to review.`); 107 107 } 108 108 } catch (err) { 109 109 console.error(err instanceof Error ? err.message : String(err));
+3 -3
src/cmd/vet.js
··· 7 7 import { appendLog, readProjectConfig, readFollowing } from '../lib/vit-dir.js'; 8 8 import { requireNotAgent } from '../lib/agent.js'; 9 9 import { resolveRef, REF_PATTERN } from '../lib/cap-ref.js'; 10 - import { mark, brand } from '../lib/brand.js'; 10 + import { mark, brand, name } from '../lib/brand.js'; 11 11 12 12 export default function register(program) { 13 13 program ··· 21 21 try { 22 22 const gate = requireNotAgent(); 23 23 if (!gate.ok) { 24 - console.error(`${brand} vet must be run by a human. run it in your own terminal.`); 24 + console.error(`${name} vet must be run by a human. run it in your own terminal.`); 25 25 console.error(''); 26 26 console.error('cap vetting requires human review for safety.'); 27 27 console.error('ask your user to run this command in their terminal:'); ··· 52 52 const projectConfig = readProjectConfig(); 53 53 const beacon = projectConfig.beacon; 54 54 if (!beacon) { 55 - console.error(`no beacon set. run '${brand} init' in a project directory first.`); 55 + console.error(`no beacon set. run '${name} init' in a project directory first.`); 56 56 process.exitCode = 1; 57 57 return; 58 58 }
+2 -2
src/cmd/vouch.js
··· 7 7 import { restoreAgent } from '../lib/oauth.js'; 8 8 import { appendLog, readProjectConfig, readFollowing, readLog } from '../lib/vit-dir.js'; 9 9 import { resolveRef, REF_PATTERN } from '../lib/cap-ref.js'; 10 - import { mark, brand } from '../lib/brand.js'; 10 + import { mark, name } from '../lib/brand.js'; 11 11 12 12 export default function register(program) { 13 13 program ··· 33 33 const projectConfig = readProjectConfig(); 34 34 const beacon = projectConfig.beacon; 35 35 if (!beacon) { 36 - console.error(`no beacon set. run '${brand} init' in a project directory first.`); 36 + console.error(`no beacon set. run '${name} init' in a project directory first.`); 37 37 process.exitCode = 1; 38 38 return; 39 39 }
+2 -1
src/lib/brand.js
··· 8 8 const brand = canCombine ? VIT_BRAND : 'vit'; 9 9 const mark = canCombine ? VIT_MARK : 'v'; 10 10 const prefix = canCombine ? `[${VIT_MARK}]` : '[v]'; 11 + const name = 'vit'; 11 12 12 13 const DOT_VIT_README = `# .${VIT_BRAND} 13 14 ··· 16 17 learn more at [v-it.org](https://v-it.org) 17 18 `; 18 19 19 - export { VIT_MARK, VIT_BRAND, brand, mark, prefix, DOT_VIT_README }; 20 + export { VIT_MARK, VIT_BRAND, brand, mark, prefix, name, DOT_VIT_README };