@on-par/factory-cli 0.9.3 → 0.9.5-next.1

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 CHANGED
@@ -6,7 +6,7 @@ On PAR Dev's Software Factory is a local CLI that takes a GitHub issue through p
6
6
 
7
7
  Built in TypeScript. Routes work across Claude and Codex, with experimental local models through Ollama, and logs cost per task.
8
8
 
9
- ![On PAR Dev's Software Factory running a Sound Buddy lane (sped up)](https://raw.githubusercontent.com/on-par/software-factory/main/docs/assets/factory-run.gif)
9
+ ![On PAR Dev's Software Factory running a lane on a real product repo (sped up)](https://raw.githubusercontent.com/on-par/software-factory/main/docs/assets/factory-run.gif)
10
10
 
11
11
  ## Install
12
12
 
@@ -16,7 +16,7 @@ factory --version
16
16
  factory doctor
17
17
  ```
18
18
 
19
- Also requires `git`, Claude Code (`claude`) installed and signed in, and the GitHub CLI signed in with `gh auth login`. The factory reads `GITHUB_TOKEN`, then `GH_TOKEN`, and falls back to `gh auth token`. `factory doctor` checks all of this and prints a fix for anything missing. It also checks your git identity and the sandbox runtime, and it runs outside a repo.
19
+ Also requires `git`, one supported coding agent CLI (see [docs/agents.md](https://github.com/on-par/software-factory/blob/main/docs/agents.md)), signed in, and the GitHub CLI signed in with `gh auth login`. The factory reads `GITHUB_TOKEN`, then `GH_TOKEN`, and falls back to `gh auth token`. `factory doctor` checks all of this and prints a fix for anything missing. It also checks your git identity and the sandbox runtime, and it runs outside a repo. Global or repo-local `git config` for `user.name` and `user.email` both work. On Linux, install `firejail` first: without it, Codex runs with `--sandbox danger-full-access`.
20
20
 
21
21
  `factory init` creates a local-only `.factory/` (git-excluded) with a `default-code` constitution. See the main README quick start.
22
22
 
@@ -30,7 +30,7 @@ Agents run with their permission prompts off (Claude Code with `--permission-mod
30
30
  npm install -g @on-par/factory-cli@latest
31
31
  ```
32
32
 
33
- Automatic updates are planned: [#2354](https://github.com/on-par/software-factory/issues/2354), [#2355](https://github.com/on-par/software-factory/issues/2355).
33
+ `factory self-update --check` reports whether a newer release is on npm. It works in 0.9.3 and later. Automatic updates are planned: [#2355](https://github.com/on-par/software-factory/issues/2355), [#1939](https://github.com/on-par/software-factory/issues/1939).
34
34
 
35
35
  ## Documentation
36
36
 
@@ -1,4 +1,5 @@
1
1
  import type { DeclaredHarnessProbe } from '@on-par/factory-core';
2
+ import type { ConfigLintInput } from '@on-par/factory-core/internal';
2
3
  export interface DoctorCheck {
3
4
  name: string;
4
5
  ok: boolean;
@@ -7,12 +8,30 @@ export interface DoctorCheck {
7
8
  fix?: string;
8
9
  /** Optional checks never fail the doctor exit code. */
9
10
  optional?: boolean;
11
+ /** Setup section the row renders under (#2555); unsectioned rows render first. */
12
+ section?: string;
13
+ /** Exactly one shell command to run next (#2557); rendered as the last line of a non-ok row. */
14
+ next?: string;
15
+ }
16
+ export interface DoctorExecOptions {
17
+ /** Extra env vars merged over process.env for this command. */
18
+ env?: Record<string, string>;
19
+ /** Kill the command after this many ms; the probe then returns null. */
20
+ timeoutMs?: number;
21
+ }
22
+ /** A declared, agentic command harness the repo's models.registry uses (#2691). */
23
+ export interface ConfiguredCommandHarness {
24
+ harness: string;
25
+ /** The declared `command` template, verbatim. */
26
+ command: string;
27
+ /** First token of `command` to look up on PATH; null when it cannot be parsed safely. */
28
+ executable: string | null;
10
29
  }
11
30
  export interface DoctorEnvProbes {
12
31
  commandAvailable: (cmd: string) => boolean;
13
32
  envPresent: (key: string) => boolean;
14
- /** Run a command, return trimmed stdout, or null if it fails. */
15
- tryExec: (cmd: string) => string | null;
33
+ /** Run a command, return trimmed stdout, or null if it fails. `opts` adds env vars and a timeout. */
34
+ tryExec: (cmd: string, opts?: DoctorExecOptions) => string | null;
16
35
  pathExists: (p: string) => boolean;
17
36
  /** Host platform; defaults to process.platform. */
18
37
  platform?: NodeJS.Platform;
@@ -20,8 +39,22 @@ export interface DoctorEnvProbes {
20
39
  fresh: boolean;
21
40
  detail: string;
22
41
  };
42
+ /** Stored Codex ChatGPT session state (#2509), read locally; never refreshes. */
43
+ codexSessionState?: () => 'ok' | 'refresh-pending' | 'unusable' | 'unknown';
44
+ /** Whether a stored Claude Code login exists (#2556); reads local state only, never runs inference. */
45
+ claudeLoggedIn?: () => boolean;
46
+ /** Whether a stored opencode auth login exists (#2556); reads local state only, never runs inference. */
47
+ opencodeLoggedIn?: () => boolean;
48
+ /** Repo-configured command harnesses (#2691); absent or [] means none. */
49
+ commandHarnesses?: () => ConfiguredCommandHarness[];
23
50
  }
51
+ /** Section for rows about repo-configured command harnesses (#2691). */
52
+ export declare const COMMAND_HARNESS_SECTION = "Command harness";
53
+ /** Repo wired-up rows, sectioned only inside a git repo (#2557). */
54
+ export declare const REPO_SECTION = "Repo";
24
55
  export declare const NOT_IN_REPO_HINT = "cd into your repo, then run factory doctor again";
56
+ /** Detail for every repo wired-up row when doctor runs outside a git repository (#2554). */
57
+ export declare const NOT_IN_REPO_SKIP_DETAIL = "skipped: not inside a git repository; cd into your repo, then run factory doctor again";
25
58
  export declare function hasSandboxRuntime(platform: NodeJS.Platform, commandAvailable: (cmd: string) => boolean): boolean;
26
59
  /** Reason the sandboxed claude auth probe is skipped before a sandbox policy is resolved,
27
60
  * or null when cmdDoctor should resolve the policy as before (#2383). */
@@ -30,8 +63,66 @@ export declare function sandboxAuthSkipDetail(opts: {
30
63
  hostOk: boolean;
31
64
  inRepo: boolean;
32
65
  }): string | null;
66
+ /** Sign-in method reported by `codex login status`, or null when it shows no login. Never returns
67
+ * any part of a credential: only a fixed label is derived from the status text. */
68
+ export declare function codexAuthMethod(statusOutput: string | null): string | null;
69
+ /** Non-interactive read-only probe of origin. `credential.interactive=never` turns off Git
70
+ * Credential Manager UI and an empty `core.askPass` turns off configured askpass programs;
71
+ * stored credentials from any helper still work. */
72
+ export declare const GIT_AUTH_PROBE_CMD = "git -c credential.interactive=never -c core.askPass= ls-remote --quiet origin HEAD";
73
+ /** GIT_TERMINAL_PROMPT=0 makes git fail instead of asking on the terminal; empty GIT_ASKPASS
74
+ * and SSH_ASKPASS turn off askpass programs and ssh's GUI askpass; GCM_INTERACTIVE=never
75
+ * turns off Git Credential Manager prompts. */
76
+ export declare const GIT_AUTH_PROBE_ENV: Readonly<Record<string, string>>;
77
+ /** Bounds the probe, e.g. an ssh key passphrase prompt that waits on /dev/tty. */
78
+ export declare const GIT_AUTH_PROBE_TIMEOUT_MS = 15000;
79
+ /** Remedy shown only when the git-auth probe fails: wires git's credential helper to gh. */
80
+ export declare const GIT_AUTH_FIX = "run `gh auth setup-git` so git uses your gh credentials, then re-run `factory doctor`";
81
+ /** Git-auth check (#2482, #2483): skipped, never failing, outside a git repository or without
82
+ * an origin remote. Otherwise runs a non-interactive `git ls-remote` against origin and fails
83
+ * when it cannot authenticate. The detail never echoes the origin URL, which may hold a token. */
84
+ export declare function gitAuthCheck(repoRoot: string | null, tryExec: (cmd: string, opts?: DoctorExecOptions) => string | null): DoctorCheck;
85
+ export interface HarnessSetup {
86
+ section: string;
87
+ /** HARNESS_CATALOG id whose CLI probe decides whether this harness is installed (#2631). */
88
+ harnessId: string;
89
+ cli: string;
90
+ install: string;
91
+ /** Exact shell command that signs the harness in (#2556); also the row's `next` command. */
92
+ login: string;
93
+ /** Env vars that count as sign-in evidence (#2556). */
94
+ envKeys: readonly string[];
95
+ }
96
+ /** One doctor section per built-in harness (#2555), in display order. */
97
+ export declare const HARNESS_SETUP: readonly HarnessSetup[];
98
+ /** One optional `<cli> installed` row per harness, with the CLI version when found and the install command when not (#2555). */
99
+ export declare function harnessInstallChecks(commandAvailable: (cmd: string) => boolean, tryExec: (cmd: string) => string | null): DoctorCheck[];
100
+ /** One `<cli> signed in` row per installed harness CLI (#2556, #2631), judged only from local evidence: an env key,
101
+ * stored credentials, or `codex login status`. Never runs inference and never prints a secret. */
102
+ export declare function harnessSignInChecks(probes: DoctorEnvProbes): DoctorCheck[];
103
+ /** The executable (first token) of a command template, or null when it cannot be parsed safely (#2691).
104
+ * Guards `isCommandAvailable`, which interpolates into `command -v` unescaped. */
105
+ export declare function commandExecutable(command: string): string | null;
106
+ /** Declared, agentic command harnesses that at least one repo `models.registry` entry uses (#2691). */
107
+ export declare function repoCommandHarnesses(harnesses: Readonly<Record<string, {
108
+ command: string;
109
+ agentic: boolean;
110
+ }>> | undefined, registry: Readonly<Record<string, {
111
+ harness?: string;
112
+ }>> | undefined): ConfiguredCommandHarness[];
113
+ /** One optional `command harness <id>` row per configured command harness (#2691). */
114
+ export declare function commandHarnessChecks(harnesses: readonly ConfiguredCommandHarness[], commandAvailable: (cmd: string) => boolean): DoctorCheck[];
115
+ /** Coding agent prerequisites: at least one agent CLI is required; each CLI is then reported
116
+ * on its own optional line, with sign-in reported separately from installation (#1269, #2422, #2555, #2556).
117
+ * A repo-configured command harness whose executable is on PATH also counts as a coding agent (#2691). */
118
+ export declare function agentCliChecks(probes: DoctorEnvProbes): DoctorCheck[];
33
119
  export declare function runDoctorChecks(probes: DoctorEnvProbes): DoctorCheck[];
34
- export declare function formatDoctorChecks(checks: DoctorCheck[]): string;
120
+ /** Row icon (#2550): ❌ only for a failure (counted in "N failed"), ➖ for a skipped row, ⚠️ for an optional warning. */
121
+ export declare function doctorCheckIcon(check: DoctorCheck): string;
122
+ /** Outside a repo the models hint is skipped because `factory models --doctor` needs a repo (#2472). */
123
+ export declare function formatDoctorChecks(checks: DoctorCheck[], opts?: {
124
+ inRepo?: boolean;
125
+ }): string;
35
126
  export declare function doctorFailed(checks: DoctorCheck[]): boolean;
36
127
  /** Which Claude profile a keychain probe checked: the keychain service name and, for a
37
128
  * non-default profile, the CLAUDE_CONFIG_DIR it belongs to. Absent = default profile. */
@@ -65,6 +156,10 @@ export interface ClaudeAuthProbeResult {
65
156
  * differential — host ok, sandboxed failed — is a hard doctor failure; that is the one
66
157
  * combination that proves the sandbox, not the credentials, is at fault. */
67
158
  export declare function sandboxClaudeAuthChecks(result: ClaudeAuthProbeResult): DoctorCheck[];
159
+ /** #2496: doctor fails on agent sign-in only when no installed agent is signed in. A logged-out
160
+ * agent is a warning while another one is signed in, and a hard failure when none is. Skipped
161
+ * probes (optional passes, e.g. a `<cli> signed in` row for a CLI not on PATH) never count as signed in. */
162
+ export declare function reconcileAgentAuthChecks(checks: DoctorCheck[]): DoctorCheck[];
68
163
  export interface LeaseHealthRow {
69
164
  worktreeId: string;
70
165
  branch: string;
@@ -138,4 +233,12 @@ export type GreenPrScanResult = {
138
233
  export declare function unmergedGreenPrChecks(result: GreenPrScanResult): DoctorCheck[];
139
234
  /** One doctor check per user-declared harness, from its `probe` result. */
140
235
  export declare function declaredHarnessChecks(probes: DeclaredHarnessProbe[]): DoctorCheck[];
236
+ /** One failed check per models.registry entry whose harness is missing or unknown;
237
+ * a single ok row when every entry is valid; nothing when there is no registry. */
238
+ export declare function modelsRegistryChecks(configPath: string, registry: Readonly<Record<string, {
239
+ harness?: string;
240
+ }>> | undefined, validHarnesses: readonly string[]): DoctorCheck[];
241
+ /** `config` rows from the shared pre-PLAN lint (#2612): one failing row per finding, so doctor fails exactly when
242
+ * the run preflight would escalate or park. A single ok row when clean. Read-only. */
243
+ export declare function configLintChecks(input: ConfigLintInput, loadError?: string): DoctorCheck[];
141
244
  //# sourceMappingURL=doctor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAMjE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,UAAU,EAAE,CA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