fix(cli): show absolute path of current folder in status bar

6efdb61ceb91 · AtlantisPleb · · parent 871c42fc517e

fix(cli): show absolute path of current folder in status bar

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

Not deployed through the forge lane

No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.

Changed files

  • modified docs/assure-repo/false-green-candidates.v1.json
  • modified docs/assure-repo/surface-inventory.v1.json
  • modified packages/openagents-cli/src/coder-workspace.ts
  • added packages/openagents-cli/test/coder-workspace.test.ts

Diff

4 files changed, +21 -5

docs/assure-repo/false-green-candidates.v1.json modified +1 -1

@@ -4,7 +4,7 @@

4 4
  "note": "Heuristic false-green LEADS, not findings. A finding requires a demonstrated reproduction (surviving mutation via mutation-runner). Do not treat a candidate as a confirmed false green. Coverage-theater leads may include tests that delegate their assertion to a custom helper the classifier does not recognise; verify before acting.",
5 5
  "sourceDigest": "sha256:dd810dd48c5bdbc9becd7fcc01dd41a4ca2abf0b2d6f6a545907247f6e3e8361",
6 6
  "summary": {
7
    "filesScanned": 2495,
7
    "filesScanned": 2496,
8 8
    "candidateCount": 16,
9 9
    "byMode": {
10 10
      "false_green_coverage_theater": 15,
docs/assure-repo/surface-inventory.v1.json modified +2 -2

@@ -1,7 +1,7 @@

1 1
{
2 2
  "schemaVersion": "1",
3 3
  "repository": "OpenAgentsInc/openagents",
4
  "sourceDigest": "sha256:0fbf6d88bb2d417b81821f50a99c108b5236010b4ddf42f2ecd2551ad2cdc632",
4
  "sourceDigest": "sha256:b24ee35c9b2f4890a4e7f5ff11d38a43bd9571afdb2d44fafc516e3e2bad512e",
5 5
  "surfaces": [
6 6
    {
7 7
      "id": "app:@openagentsinc/acceptance-runner",

@@ -1876,7 +1876,7 @@

1876 1876
      "oracles": [
1877 1877
        {
1878 1878
          "type": "test",
1879
          "ref": "packages/openagents-cli (83 tracked test files)"
1879
          "ref": "packages/openagents-cli (84 tracked test files)"
1880 1880
        },
1881 1881
        {
1882 1882
          "type": "behavior-contract",
packages/openagents-cli/src/coder-workspace.ts modified +2 -2

@@ -8,7 +8,7 @@

8 8
 */
9 9
10 10
import { execFileSync } from "node:child_process";
11
import { basename } from "node:path";
11
import { resolve } from "node:path";
12 12
13 13
export interface CoderWorkspace {
14 14
  readonly repository: string;

@@ -17,7 +17,7 @@ export interface CoderWorkspace {

17 17
18 18
export function describeWorkspace(cwd: string = process.cwd()): CoderWorkspace {
19 19
  return {
20
    repository: basename(cwd),
20
    repository: resolve(cwd),
21 21
    branch: git(["rev-parse", "--abbrev-ref", "HEAD"], cwd) ?? "no branch",
22 22
  };
23 23
}
packages/openagents-cli/test/coder-workspace.test.ts added +16

@@ -0,0 +1,16 @@

1
import { describe, expect, it } from "vitest";
2
import { describeWorkspace } from "../src/coder-workspace.js";
3
import { resolve } from "node:path";
4
5
describe("describeWorkspace", () => {
6
  it("reports the full absolute path as repository", () => {
7
    const cwd = process.cwd();
8
    const workspace = describeWorkspace(cwd);
9
    expect(workspace.repository).toBe(resolve(cwd));
10
  });
11
12
  it("resolves relative cwd input to absolute path", () => {
13
    const workspace = describeWorkspace(".");
14
    expect(workspace.repository).toBe(resolve("."));
15
  });
16
});

This page updates live while a promote is in flight · changelog