stonecut 1.0.0 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stonecut",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CLI that drives PRD-driven development with agentic coding CLIs",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/runner.ts CHANGED
@@ -120,6 +120,7 @@ export async function runAfkLoop<T extends { number: number }>(
120
120
  const { logger, git, runner, runnerName } = session;
121
121
 
122
122
  logger.log(`Session started — runner: ${runnerName}, iterations: ${iterations}`);
123
+ runner.logEnvironment(logger);
123
124
  logger.log("");
124
125
  const results: IterationResult[] = [];
125
126
  const sessionStart = performance.now();
@@ -6,7 +6,7 @@
6
6
  * human-readable messages.
7
7
  */
8
8
 
9
- import type { Runner, RunResult } from "../types.js";
9
+ import type { LogWriter, Runner, RunResult } from "../types.js";
10
10
 
11
11
  const ERROR_MESSAGES: Record<string, string> = {
12
12
  error_max_turns: "max turns exceeded",
@@ -14,6 +14,11 @@ const ERROR_MESSAGES: Record<string, string> = {
14
14
  };
15
15
 
16
16
  export class ClaudeRunner implements Runner {
17
+ logEnvironment(logger: LogWriter): void {
18
+ const configDir = process.env.CLAUDE_CONFIG_DIR || "~/.claude (default)";
19
+ logger.log(`Claude config: ${configDir}`);
20
+ }
21
+
17
22
  async run(prompt: string): Promise<RunResult> {
18
23
  const start = performance.now();
19
24
 
@@ -6,7 +6,7 @@
6
6
  * output on failure.
7
7
  */
8
8
 
9
- import type { Runner, RunResult } from "../types.js";
9
+ import type { LogWriter, Runner, RunResult } from "../types.js";
10
10
 
11
11
  function extractError(stdout: string): string {
12
12
  for (const raw of stdout.split("\n")) {
@@ -43,6 +43,10 @@ function extractError(stdout: string): string {
43
43
  }
44
44
 
45
45
  export class CodexRunner implements Runner {
46
+ logEnvironment(_logger: LogWriter): void {
47
+ // No environment-specific config to log for Codex.
48
+ }
49
+
46
50
  async run(prompt: string): Promise<RunResult> {
47
51
  const start = performance.now();
48
52
 
package/src/types.ts CHANGED
@@ -23,6 +23,7 @@ export interface IterationResult {
23
23
  /** Protocol that all runner adapters must satisfy. */
24
24
  export interface Runner {
25
25
  run(prompt: string): Promise<RunResult>;
26
+ logEnvironment(logger: LogWriter): void;
26
27
  }
27
28
 
28
29
  /** Snapshot of the working tree state before a runner session. */