vit 0.6.5 → 0.6.7
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 +6 -2
- package/package.json +1 -1
- package/skills/vit/SKILL.md +17 -15
- package/src/cmd/doctor.js +1 -1
- package/src/cmd/hack.js +1 -1
- package/src/cmd/init.js +1 -1
- package/src/cmd/learn.js +6 -6
- package/src/cmd/remix.js +1 -1
- package/src/cmd/ship.js +2 -2
- package/src/cmd/skim.js +1 -1
- package/src/lib/agent.js +2 -0
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ npm install -g vit
|
|
|
28
28
|
vit login your-handle.bsky.social
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
then open your coding agent (Claude Code, Codex CLI,
|
|
31
|
+
then open your coding agent (Claude Code, Codex CLI, Gemini CLI, opencode, or Pi). vit auto-installs its skill for Claude Code, Codex CLI, and Gemini CLI. your agent runs `vit init` to connect your project to the network, then `vit skim` to discover what others have built.
|
|
32
32
|
|
|
33
33
|
**[full getting started guide →](https://v-it.org/start/)**
|
|
34
34
|
|
|
@@ -65,7 +65,11 @@ make install
|
|
|
65
65
|
|
|
66
66
|
## works with
|
|
67
67
|
|
|
68
|
-
vit is a human+agent collaboration tool. it works with [Claude Code](https://claude.ai/code), [Codex CLI](https://github.com/openai/codex),
|
|
68
|
+
vit is a human+agent collaboration tool. it works with [Claude Code](https://claude.ai/code), [Codex CLI](https://github.com/openai/codex), [Gemini CLI](https://github.com/google-gemini/gemini-cli), [opencode](https://opencode.ai), and [Pi](https://github.com/badlogic/pi-mono). some commands are for you (login, vet), others are for your agent (skim, remix, ship).
|
|
69
|
+
|
|
70
|
+
Pi is recognised through `AI_AGENT=pi` or `PI_CODING_AGENT=true`. `init`, `skim`, `ship`, `remix`, and `learn` accept Pi. Pi uses the existing skill destinations; installation into Pi's own skill directory, `doctor` integration, and a Pi launcher for `vet --sandbox` are not yet available. Human-only commands keep the same gates.
|
|
71
|
+
|
|
72
|
+
See [the changelog](CHANGELOG.md) for release notes.
|
|
69
73
|
|
|
70
74
|
## reference
|
|
71
75
|
|
package/package.json
CHANGED
package/skills/vit/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: using-vit
|
|
3
3
|
description: >-
|
|
4
4
|
Helps coding agents use vit to discover, follow, skim, and ship software
|
|
5
|
-
capabilities (caps) over ATProto. Activates when the
|
|
5
|
+
capabilities (caps) over ATProto. Activates when the operator mentions vit,
|
|
6
6
|
beacons, caps, shipping, skimming, following, vetting, or social coding.
|
|
7
7
|
Provides command reference for: vit init, vit skim, vit ship, vit follow,
|
|
8
8
|
vit following, vit learn, vit remix, vit doctor, vit config, vit beacon,
|
|
@@ -11,7 +11,9 @@ description: >-
|
|
|
11
11
|
|
|
12
12
|
## 1. Overview
|
|
13
13
|
|
|
14
|
-
vit is a Node CLI for social software capabilities. Agents use it to initialize projects, follow accounts, skim caps from followed accounts, and ship new caps. Some commands (login, adopt, vet) require human interaction - the agent should tell the
|
|
14
|
+
vit is a Node CLI for social software capabilities. Agents use it to initialize projects, follow accounts, skim caps from followed accounts, and ship new caps. Some commands (login, adopt, vet) require human interaction - the agent should tell the operator to run those in their terminal.
|
|
15
|
+
|
|
16
|
+
Pi is recognised through `AI_AGENT=pi` or `PI_CODING_AGENT=true`. The agent commands work under Pi, with the existing trust gates. Pi-specific skill installation, doctor integration, and the Pi sandbox launcher are not yet available.
|
|
15
17
|
|
|
16
18
|
## 2. Prerequisites
|
|
17
19
|
|
|
@@ -27,12 +29,12 @@ Dependency chain: `login → init → follow → skim/ship`.
|
|
|
27
29
|
4. Run `vit ship --title <t> --description <d> --ref <ref> <<'EOF' ... EOF` to publish a cap (body on stdin).
|
|
28
30
|
|
|
29
31
|
Handoffs:
|
|
30
|
-
- If no DID is configured, tell the
|
|
32
|
+
- If no DID is configured, tell the operator to run `vit login <handle>`.
|
|
31
33
|
- If `vit login <handle>` says “Already logged in” but a session has been
|
|
32
|
-
revoked or later fails server authentication, tell the
|
|
34
|
+
revoked or later fails server authentication, tell the operator to rerun
|
|
33
35
|
`vit login <handle> --force`. The ordinary login check only sees local
|
|
34
36
|
session material and can false-green a revoked token.
|
|
35
|
-
- If the
|
|
37
|
+
- If the operator wants to review a cap, tell them to run `vit vet <ref>` in their terminal.
|
|
36
38
|
|
|
37
39
|
## 4. Commands the Agent Runs
|
|
38
40
|
|
|
@@ -78,7 +80,7 @@ Handoffs:
|
|
|
78
80
|
- Common errors: generic runtime or config read failures.
|
|
79
81
|
|
|
80
82
|
### `vit config [action] [key] [value]`
|
|
81
|
-
- Description: Read and mutate
|
|
83
|
+
- Description: Read and mutate global vit config values.
|
|
82
84
|
- Usage: `vit config [action] [key] [value]`
|
|
83
85
|
- Key flags: none.
|
|
84
86
|
- Output: `key=value` lines for `list`; silent success for `set` and `delete`.
|
|
@@ -116,7 +118,7 @@ Handoffs:
|
|
|
116
118
|
|
|
117
119
|
#### Shipping guide
|
|
118
120
|
|
|
119
|
-
When the
|
|
121
|
+
When the operator says "ship it", "vit ship", or asks you to publish a cap for work you've done:
|
|
120
122
|
|
|
121
123
|
1. **Identify what to ship** — summarize the feature or fix you just completed. A cap describes a self-contained capability, not a commit message.
|
|
122
124
|
2. **Craft the fields:**
|
|
@@ -169,10 +171,10 @@ When the user says "ship it", "vit ship", or asks you to publish a cap for work
|
|
|
169
171
|
|
|
170
172
|
## 5. Commands the Agent Must NOT Run
|
|
171
173
|
|
|
172
|
-
These commands require human interaction. Tell the
|
|
173
|
-
- `vit login <handle>` - Tell
|
|
174
|
-
- `vit adopt <beacon>` - Tell
|
|
175
|
-
- `vit vet <ref>` - Human review command. Tell the
|
|
174
|
+
These commands require human interaction. Tell the operator exactly what to run:
|
|
175
|
+
- `vit login <handle>` - Tell operator: "Run `vit login <handle>` in your terminal to authenticate via browser OAuth." If it falsely reports an existing login after revocation or a server-auth failure, add `--force` to restart authentication.
|
|
176
|
+
- `vit adopt <beacon>` - Tell operator: "Run `vit adopt <beacon>` in your terminal to fork and clone a project."
|
|
177
|
+
- `vit vet <ref>` - Human review command. Tell the operator to run it in their terminal.
|
|
176
178
|
**Exception: sandboxed sub-agent vetting.** If you are a dedicated sub-agent
|
|
177
179
|
spawned specifically to evaluate a cap or skill, you can vet directly:
|
|
178
180
|
`vit vet <ref> --trust --confirm`. Only do this if:
|
|
@@ -182,7 +184,7 @@ These commands require human interaction. Tell the user exactly what to run:
|
|
|
182
184
|
|
|
183
185
|
Do NOT use --confirm as the primary agent. The vetting step exists so a
|
|
184
186
|
separate context evaluates the content independently.
|
|
185
|
-
- `vit vet --dangerous-accept` - Human only. Permanently disables vet gate for the project. Tell the
|
|
187
|
+
- `vit vet --dangerous-accept` - Human only. Permanently disables vet gate for the project. Tell the operator if they want autonomous mode.
|
|
186
188
|
|
|
187
189
|
These are human-only because they call `requireNotAgent()` (or require browser interaction for login) and will fail or be inappropriate when run by an agent.
|
|
188
190
|
|
|
@@ -190,10 +192,10 @@ These are human-only because they call `requireNotAgent()` (or require browser i
|
|
|
190
192
|
|
|
191
193
|
| Error | Cause | Resolution |
|
|
192
194
|
|-------|-------|------------|
|
|
193
|
-
| `no DID configured` |
|
|
195
|
+
| `no DID configured` | Operator hasn't logged in | Tell operator to run `vit login <handle>` |
|
|
194
196
|
| `no beacon set` | `.vit/` not initialized or no beacon | Run `vit init` |
|
|
195
197
|
| `no followings` / empty skim results | No accounts followed | Run `vit follow <handle>` |
|
|
196
|
-
| Session errors (deleted/expired) | OAuth session invalid | Tell
|
|
198
|
+
| Session errors (deleted/expired) | OAuth session invalid | Tell operator to run `vit login <handle>` |
|
|
197
199
|
| Invalid ref format | Ref doesn't match `^[a-z]+-[a-z]+-[a-z]+$` | Use three lowercase words joined by hyphens |
|
|
198
200
|
|
|
199
201
|
## 7. Data Files
|
|
@@ -203,7 +205,7 @@ These are human-only because they call `requireNotAgent()` (or require browser i
|
|
|
203
205
|
- `.vit/caps.jsonl` - Append-only shipped cap log
|
|
204
206
|
- `.vit/trusted.jsonl` - Append-only vetted cap log
|
|
205
207
|
- `.vit/dangerous-accept` - Project-wide vet bypass flag (written by `vit vet --dangerous-accept --confirm`)
|
|
206
|
-
- `~/.config/vit/vit
|
|
208
|
+
- `vit.json` in vit's config directory (`~/.config/vit/` on Linux, `~/Library/Preferences/vit/` on macOS, `%APPDATA%\vit\Config\` on Windows) - Global config with `did`, timestamps
|
|
207
209
|
|
|
208
210
|
## 8. Reference
|
|
209
211
|
|
package/src/cmd/doctor.js
CHANGED
|
@@ -144,7 +144,7 @@ export default function register(program) {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
if (!opts.json && userSkills.length > 0) {
|
|
147
|
-
console.log(`${mark}
|
|
147
|
+
console.log(`${mark} global skills:${userSkills.length} installed`);
|
|
148
148
|
for (const s of userSkills) {
|
|
149
149
|
const ver = s.version ? ` v${s.version}` : '';
|
|
150
150
|
console.log(` ${s.name}${ver}`);
|
package/src/cmd/hack.js
CHANGED
|
@@ -12,7 +12,7 @@ export default function register(program) {
|
|
|
12
12
|
program
|
|
13
13
|
.command('hack')
|
|
14
14
|
.description('Fork and install vit from source')
|
|
15
|
-
.option('--from <repo>', 'Clone an existing fork instead of creating a new one (e.g.
|
|
15
|
+
.option('--from <repo>', 'Clone an existing fork instead of creating a new one (e.g. your-name/vit)')
|
|
16
16
|
.action(async (opts) => {
|
|
17
17
|
try {
|
|
18
18
|
const ghPath = which('gh');
|
package/src/cmd/init.js
CHANGED
|
@@ -40,7 +40,7 @@ export default function register(program) {
|
|
|
40
40
|
jsonError('agent required', 'run vit init from a coding agent');
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
console.error(`${name} init should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode).`);
|
|
43
|
+
console.error(`${name} init should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode, pi).`);
|
|
44
44
|
console.error(`open your agent and ask it to run '${name} init' for you.`);
|
|
45
45
|
process.exitCode = 1;
|
|
46
46
|
return;
|
package/src/cmd/learn.js
CHANGED
|
@@ -100,7 +100,7 @@ async function installSkill({ match, skillName, isGlobal, opts, ref }) {
|
|
|
100
100
|
jsonOk({ ref, name: skillName, installedTo: installDir, scope, version: record.version || null });
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
|
-
console.log(`${mark} learned: ${ref} (${
|
|
103
|
+
console.log(`${mark} learned: ${ref} (${isGlobal ? 'global' : 'project'})`);
|
|
104
104
|
console.log(`installed to: ${installDir}`);
|
|
105
105
|
if (record.version) console.log(`version: ${record.version}`);
|
|
106
106
|
}
|
|
@@ -220,19 +220,19 @@ export default function register(program) {
|
|
|
220
220
|
.argument('<ref>', 'Skill reference: @handle/name or skill-{name}')
|
|
221
221
|
.description('Install a skill from the network')
|
|
222
222
|
.option('--did <did>', 'DID to use (skill-{name} path only)')
|
|
223
|
-
.option('--user', 'Install to
|
|
223
|
+
.option('--user', 'Install globally to ~/.claude/skills/ (skill-{name} path, requires vet)')
|
|
224
224
|
.option('--project', 'Install to project .claude/skills/ (@handle/ path)')
|
|
225
225
|
.option('--dry-run', 'Show skill contents without installing')
|
|
226
226
|
.option('--json', 'Output as JSON')
|
|
227
227
|
.option('-v, --verbose', 'Show step-by-step details')
|
|
228
228
|
.addHelpText('after', `
|
|
229
229
|
Examples:
|
|
230
|
-
vit learn @solpbc.org/using-vit Install from publisher (
|
|
230
|
+
vit learn @solpbc.org/using-vit Install from publisher (global)
|
|
231
231
|
vit learn @solpbc.org/using-vit. Install from publisher (project-local)
|
|
232
232
|
vit learn @solpbc.org/using-vit --project Same as trailing dot
|
|
233
233
|
vit learn @solpbc.org/using-vit --dry-run Inspect without installing
|
|
234
234
|
vit learn skill-agent-test-patterns Install from followed accounts (project-local)
|
|
235
|
-
vit learn skill-agent-test-patterns --user Install from followed (
|
|
235
|
+
vit learn skill-agent-test-patterns --user Install from followed (global, requires vet)
|
|
236
236
|
`)
|
|
237
237
|
.action(async (ref, opts) => {
|
|
238
238
|
try {
|
|
@@ -247,7 +247,7 @@ Examples:
|
|
|
247
247
|
jsonError('agent required', 'run vit learn from a coding agent');
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
console.error(`${name} learn should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode).`);
|
|
250
|
+
console.error(`${name} learn should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode, pi).`);
|
|
251
251
|
console.error(`open your agent and ask it to run '${name} learn' for you.`);
|
|
252
252
|
process.exitCode = 1;
|
|
253
253
|
return;
|
|
@@ -291,7 +291,7 @@ Examples:
|
|
|
291
291
|
jsonError(`skill '${ref}' is not yet vetted`, 'user-wide install requires vetting');
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
|
-
console.error(`skill '${ref}' is not yet vetted.
|
|
294
|
+
console.error(`skill '${ref}' is not yet vetted. global install requires vetting.`);
|
|
295
295
|
console.error(`tell your operator to vet it first:`);
|
|
296
296
|
console.error('');
|
|
297
297
|
console.error(` vit vet ${ref}`);
|
package/src/cmd/remix.js
CHANGED
|
@@ -31,7 +31,7 @@ export default function register(program) {
|
|
|
31
31
|
jsonError('agent required', 'run vit remix from a coding agent');
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
|
-
console.error(`${name} remix should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode).`);
|
|
34
|
+
console.error(`${name} remix should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode, pi).`);
|
|
35
35
|
console.error(`open your agent and ask it to run '${name} remix' for you.`);
|
|
36
36
|
process.exitCode = 1;
|
|
37
37
|
return;
|
package/src/cmd/ship.js
CHANGED
|
@@ -139,7 +139,7 @@ async function shipSkill(opts) {
|
|
|
139
139
|
jsonError('agent required', 'run vit ship --skill from a coding agent');
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
console.error(`${name} ship --skill should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode).`);
|
|
142
|
+
console.error(`${name} ship --skill should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode, pi).`);
|
|
143
143
|
console.error(`open your agent and ask it to run '${name} ship --skill' for you.`);
|
|
144
144
|
process.exitCode = 1;
|
|
145
145
|
return;
|
|
@@ -348,7 +348,7 @@ export async function shipCap(opts) {
|
|
|
348
348
|
jsonError('agent required', 'run vit ship from a coding agent');
|
|
349
349
|
return;
|
|
350
350
|
}
|
|
351
|
-
console.error(`${name} ship should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode).`);
|
|
351
|
+
console.error(`${name} ship should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode, pi).`);
|
|
352
352
|
console.error(`open your agent and ask it to run '${name} ship' for you.`);
|
|
353
353
|
console.error(`refer to the using-vit skill (skills/vit/SKILL.md) for a shipping guide.`);
|
|
354
354
|
process.exitCode = 1;
|
package/src/cmd/skim.js
CHANGED
|
@@ -30,7 +30,7 @@ export default function register(program) {
|
|
|
30
30
|
try {
|
|
31
31
|
const gate = requireAgent();
|
|
32
32
|
if (!gate.ok) {
|
|
33
|
-
console.error(`${name} skim should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode).`);
|
|
33
|
+
console.error(`${name} skim should be run by a coding agent (e.g. claude code, codex, gemini cli, opencode, pi).`);
|
|
34
34
|
console.error(`open your agent and ask it to run '${name} skim' for you.`);
|
|
35
35
|
process.exitCode = 1;
|
|
36
36
|
return;
|
package/src/lib/agent.js
CHANGED
|
@@ -12,6 +12,8 @@ export function detectCodingAgent() {
|
|
|
12
12
|
for (const [envVar, name] of Object.entries(CODING_AGENTS)) {
|
|
13
13
|
if (process.env[envVar] === '1') return { name, envVar };
|
|
14
14
|
}
|
|
15
|
+
if (process.env.AI_AGENT === 'pi') return { name: 'pi', envVar: 'AI_AGENT' };
|
|
16
|
+
if (process.env.PI_CODING_AGENT === 'true') return { name: 'pi', envVar: 'PI_CODING_AGENT' };
|
|
15
17
|
return null;
|
|
16
18
|
}
|
|
17
19
|
|