vit 0.6.2 → 0.6.3

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.2",
3
+ "version": "0.6.3",
4
4
  "description": "Social toolkit for personalized software",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -28,6 +28,10 @@ Dependency chain: `login → init → follow → skim/ship`.
28
28
 
29
29
  Handoffs:
30
30
  - If no DID is configured, tell the user to run `vit login <handle>`.
31
+ - If `vit login <handle>` says “Already logged in” but a session has been
32
+ revoked or later fails server authentication, tell the user to rerun
33
+ `vit login <handle> --force`. The ordinary login check only sees local
34
+ session material and can false-green a revoked token.
31
35
  - If the user wants to review a cap, tell them to run `vit vet <ref>` in their terminal.
32
36
 
33
37
  ## 4. Commands the Agent Runs
@@ -166,7 +170,7 @@ When the user says "ship it", "vit ship", or asks you to publish a cap for work
166
170
  ## 5. Commands the Agent Must NOT Run
167
171
 
168
172
  These commands require human interaction. Tell the user exactly what to run:
169
- - `vit login <handle>` - Tell user: "Run `vit login <handle>` in your terminal to authenticate via browser OAuth."
173
+ - `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.
170
174
  - `vit adopt <beacon>` - Tell user: "Run `vit adopt <beacon>` in your terminal to fork and clone a project."
171
175
  - `vit vet <ref>` - Human review command. Tell the user to run it in their terminal.
172
176
  **Exception: sandboxed sub-agent vetting.** If you are a dedicated sub-agent
package/src/cli.js CHANGED
@@ -4,6 +4,7 @@
4
4
  import { Command } from 'commander';
5
5
  import { readFileSync } from 'node:fs';
6
6
  import { brand } from './lib/brand.js';
7
+ import { USING_VIT_REMINDER } from './lib/constants.js';
7
8
  import registerAdopt from './cmd/adopt.js';
8
9
  import registerBeacon from './cmd/beacon.js';
9
10
  import registerConfig from './cmd/config.js';
@@ -52,4 +53,12 @@ registerHack(program);
52
53
  registerLink(program);
53
54
  registerInbox(program);
54
55
 
56
+ program.addHelpText('after', USING_VIT_REMINDER);
57
+ program.configureOutput({
58
+ outputError(str, write) {
59
+ write(str);
60
+ write(`${USING_VIT_REMINDER}\n`);
61
+ },
62
+ });
63
+
55
64
  export { program };
@@ -6,3 +6,4 @@ export const VOUCH_COLLECTION = 'org.v-it.vouch';
6
6
  export const SKILL_COLLECTION = 'org.v-it.skill';
7
7
  export const DEFAULT_JETSTREAM_URL = 'wss://jetstream2.us-east.bsky.network/subscribe';
8
8
  export const DEFAULT_EXPLORE_URL = 'https://explore.v-it.org';
9
+ export const USING_VIT_REMINDER = 'Load the using-vit skill before using this CLI.';