vit 0.6.6 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vit",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Social toolkit for personalized software",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -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 user mentions vit,
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,7 @@ 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 user to run those in their terminal.
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
15
 
16
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.
17
17
 
@@ -29,12 +29,12 @@ Dependency chain: `login → init → follow → skim/ship`.
29
29
  4. Run `vit ship --title <t> --description <d> --ref <ref> <<'EOF' ... EOF` to publish a cap (body on stdin).
30
30
 
31
31
  Handoffs:
32
- - If no DID is configured, tell the user to run `vit login <handle>`.
32
+ - If no DID is configured, tell the operator to run `vit login <handle>`.
33
33
  - If `vit login <handle>` says “Already logged in” but a session has been
34
- revoked or later fails server authentication, tell the user to rerun
34
+ revoked or later fails server authentication, tell the operator to rerun
35
35
  `vit login <handle> --force`. The ordinary login check only sees local
36
36
  session material and can false-green a revoked token.
37
- - If the user wants to review a cap, tell them to run `vit vet <ref>` in their terminal.
37
+ - If the operator wants to review a cap, tell them to run `vit vet <ref>` in their terminal.
38
38
 
39
39
  ## 4. Commands the Agent Runs
40
40
 
@@ -80,7 +80,7 @@ Handoffs:
80
80
  - Common errors: generic runtime or config read failures.
81
81
 
82
82
  ### `vit config [action] [key] [value]`
83
- - Description: Read and mutate user config values.
83
+ - Description: Read and mutate global vit config values.
84
84
  - Usage: `vit config [action] [key] [value]`
85
85
  - Key flags: none.
86
86
  - Output: `key=value` lines for `list`; silent success for `set` and `delete`.
@@ -118,7 +118,7 @@ Handoffs:
118
118
 
119
119
  #### Shipping guide
120
120
 
121
- When the user says "ship it", "vit ship", or asks you to publish a cap for work you've done:
121
+ When the operator says "ship it", "vit ship", or asks you to publish a cap for work you've done:
122
122
 
123
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.
124
124
  2. **Craft the fields:**
@@ -171,10 +171,10 @@ When the user says "ship it", "vit ship", or asks you to publish a cap for work
171
171
 
172
172
  ## 5. Commands the Agent Must NOT Run
173
173
 
174
- These commands require human interaction. Tell the user exactly what to run:
175
- - `vit login <handle>` - Tell user: "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 user: "Run `vit adopt <beacon>` in your terminal to fork and clone a project."
177
- - `vit vet <ref>` - Human review command. Tell the user to run it in their terminal.
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.
178
178
  **Exception: sandboxed sub-agent vetting.** If you are a dedicated sub-agent
179
179
  spawned specifically to evaluate a cap or skill, you can vet directly:
180
180
  `vit vet <ref> --trust --confirm`. Only do this if:
@@ -184,7 +184,7 @@ These commands require human interaction. Tell the user exactly what to run:
184
184
 
185
185
  Do NOT use --confirm as the primary agent. The vetting step exists so a
186
186
  separate context evaluates the content independently.
187
- - `vit vet --dangerous-accept` - Human only. Permanently disables vet gate for the project. Tell the user if they want autonomous mode.
187
+ - `vit vet --dangerous-accept` - Human only. Permanently disables vet gate for the project. Tell the operator if they want autonomous mode.
188
188
 
189
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.
190
190
 
@@ -192,10 +192,10 @@ These are human-only because they call `requireNotAgent()` (or require browser i
192
192
 
193
193
  | Error | Cause | Resolution |
194
194
  |-------|-------|------------|
195
- | `no DID configured` | User hasn't logged in | Tell user to run `vit login <handle>` |
195
+ | `no DID configured` | Operator hasn't logged in | Tell operator to run `vit login <handle>` |
196
196
  | `no beacon set` | `.vit/` not initialized or no beacon | Run `vit init` |
197
197
  | `no followings` / empty skim results | No accounts followed | Run `vit follow <handle>` |
198
- | Session errors (deleted/expired) | OAuth session invalid | Tell user to run `vit login <handle>` |
198
+ | Session errors (deleted/expired) | OAuth session invalid | Tell operator to run `vit login <handle>` |
199
199
  | Invalid ref format | Ref doesn't match `^[a-z]+-[a-z]+-[a-z]+$` | Use three lowercase words joined by hyphens |
200
200
 
201
201
  ## 7. Data Files
@@ -205,7 +205,7 @@ These are human-only because they call `requireNotAgent()` (or require browser i
205
205
  - `.vit/caps.jsonl` - Append-only shipped cap log
206
206
  - `.vit/trusted.jsonl` - Append-only vetted cap log
207
207
  - `.vit/dangerous-accept` - Project-wide vet bypass flag (written by `vit vet --dangerous-accept --confirm`)
208
- - `~/.config/vit/vit.json` - User config with `did`, timestamps
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
209
209
 
210
210
  ## 8. Reference
211
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} user skills: ${userSkills.length} installed`);
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. user/vit)')
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/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} (${scope})`);
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 user-wide ~/.claude/skills/ (skill-{name} path, requires vet)')
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 (user-wide)
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 (user-wide, requires vet)
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 {
@@ -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. user-wide install requires vetting.`);
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}`);