gigabuddy 0.4.1 → 0.6.0

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": "gigabuddy",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "description": "Command-line sign-in for Gigabuddy. Authenticates your machine and configures npm for @gigabuddy packages.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -20,21 +20,16 @@ export declare function resolveEnv(options: {
20
20
  export declare function activeAccount(explicit?: string): ResolvedAccount;
21
21
  export declare function signIn(env: Env, account?: string): Promise<UserCredentials>;
22
22
  /**
23
- * `gigabuddy login` — sign in AND set npm up, because for this client they are
24
- * one act. Installing `@gigabuddy` packages is what the CLI is for: nothing
25
- * else on the machine reads the credential this writes (the agent client
26
- * custodies its own), so a sign-in that stops short of npm has left the user
27
- * with a file and no capability.
28
- *
29
- * There is no prompt, and deliberately so. The device flow cannot complete
30
- * without a human approving a code in a browser, so "is anyone there?" is
31
- * already answered yes by the time we get here — and TTY detection would get
32
- * it wrong anyway for the SSH and devcontainer cases, silently skipping setup
33
- * for someone who just approved. We tell them exactly what was written
34
- * instead; `--no-npm` is there for the rare credential-file-only case.
23
+ * `gigabuddy login` — sign in. npm registry setup is OPT-IN (`--npm`), not
24
+ * part of a plain login: the registry is a pre-release surface we run
25
+ * internally, and this client's day job is now the account/agent gate — a
26
+ * sign-in no longer implies "I'm here to npm-install". (The original
27
+ * everything-in-one-act default dates from when installing `@gigabuddy`
28
+ * packages was the CLI's sole purpose; that stopped being true.) A plain
29
+ * login prints the one-liner for getting npm access, and `login --npm`
30
+ * remains the whole npm ceremony — sign in first if needed, then mint.
35
31
  */
36
32
  export declare function loginCommand(env: Env, options?: {
37
- npm?: boolean;
38
33
  account?: string;
39
34
  }): Promise<void>;
40
35
  /**
@@ -17,7 +17,7 @@
17
17
  * Every check is independent and never throws: a doctor that dies on the first
18
18
  * problem is useless precisely when you need it.
19
19
  */
20
- import { type UserCredentials } from '@gigabuddy/client-core';
20
+ import { type ClaudeConfigLike, type UserCredentials } from '@gigabuddy/client-core';
21
21
  export type CheckStatus = 'ok' | 'warn' | 'fail' | 'skip';
22
22
  export interface Check {
23
23
  label: string;
@@ -41,6 +41,10 @@ export interface DoctorDeps {
41
41
  }[];
42
42
  nodeVersion: string;
43
43
  loadCredentials: (staging: boolean) => UserCredentials | null;
44
+ /** Parsed ~/.claude.json (Claude Code's connector/server registry), null when absent. */
45
+ readClaudeConfig: () => ClaudeConfigLike | null;
46
+ /** The Claude Code project dir doctor is run from — keys ~/.claude.json's per-project settings. */
47
+ projectDir: string;
44
48
  }
45
49
  export declare function runDoctor(deps: DoctorDeps, packageName?: string): Promise<DoctorResult>;
46
50
  /** Render for a terminal. Colour only when one is attached and NO_COLOR is unset. */