jeo-code 0.6.12 → 0.6.13

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/CHANGELOG.md CHANGED
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  The README mirrors the latest 5 entries — regenerate with `bun run changelog:sync`.
8
8
 
9
+ ## [0.6.13] - 2026-06-16
10
+ _`team` engine: concrete uncommitted-work reporting and stricter empty-run handling._
11
+
12
+ ### Changed
13
+ - **`team` re-runs report concrete uncommitted work.** Instead of a speculative warning, the engine now probes the working tree with `git status --porcelain` and reports the actual uncommitted-file count, so you know whether real partial work is present before re-running on it.
14
+ - **`--strict-mutations` fails a no-op mutating run.** A mutating role that performed no write/edit/bash is now a hard failure (`stream:error`) rather than silently passing; a bash-only run stays an advisory `stream:warn` (new tone) so a passing advisory doesn't masquerade as an error.
15
+
9
16
  ## [0.6.12] - 2026-06-16
10
17
  _OKF-backed memory distillation — session learnings become structured concept files._
11
18
 
package/README.ja.md CHANGED
@@ -158,11 +158,11 @@ CI は `.github/workflows/npm-publish.yml` で公開します — GitHub リリ
158
158
  ## 変更履歴 (Changelog)
159
159
 
160
160
  <!-- CHANGELOG:START (auto-generated from CHANGELOG.md — run `bun run changelog:sync`) -->
161
+ - **[0.6.13]** (2026-06-16) — `team` engine: concrete uncommitted-work reporting and stricter empty-run handling.
161
162
  - **[0.6.12]** (2026-06-16) — OKF-backed memory distillation — session learnings become structured concept files.
162
163
  - **[0.6.11]** (2026-06-16) — Larger reasoning budgets, and terminal capability-response sequences kept out of the prompt.
163
164
  - **[0.6.10]** (2026-06-16) — OKF memory-format foundation and a hardened bashTool subprocess drain.
164
165
  - **[0.6.9]** (2026-06-16) — Live streaming blocks size to their content and the viewport instead of a fixed rectangle.
165
- - **[0.6.8]** (2026-06-16) — OAuth loopback callback host pinned to `localhost` to match provider-registered redirect URIs.
166
166
 
167
167
  See [CHANGELOG.md](CHANGELOG.md) for the full history.
168
168
  <!-- CHANGELOG:END -->
package/README.ko.md CHANGED
@@ -158,11 +158,11 @@ CI는 `.github/workflows/npm-publish.yml`로 배포합니다 — GitHub 릴리
158
158
  ## 변경 이력 (Changelog)
159
159
 
160
160
  <!-- CHANGELOG:START (auto-generated from CHANGELOG.md — run `bun run changelog:sync`) -->
161
+ - **[0.6.13]** (2026-06-16) — `team` engine: concrete uncommitted-work reporting and stricter empty-run handling.
161
162
  - **[0.6.12]** (2026-06-16) — OKF-backed memory distillation — session learnings become structured concept files.
162
163
  - **[0.6.11]** (2026-06-16) — Larger reasoning budgets, and terminal capability-response sequences kept out of the prompt.
163
164
  - **[0.6.10]** (2026-06-16) — OKF memory-format foundation and a hardened bashTool subprocess drain.
164
165
  - **[0.6.9]** (2026-06-16) — Live streaming blocks size to their content and the viewport instead of a fixed rectangle.
165
- - **[0.6.8]** (2026-06-16) — OAuth loopback callback host pinned to `localhost` to match provider-registered redirect URIs.
166
166
 
167
167
  See [CHANGELOG.md](CHANGELOG.md) for the full history.
168
168
  <!-- CHANGELOG:END -->
package/README.md CHANGED
@@ -158,11 +158,11 @@ Required npm token permissions (repository secret `NPM_TOKEN`):
158
158
  ## Changelog
159
159
 
160
160
  <!-- CHANGELOG:START (auto-generated from CHANGELOG.md — run `bun run changelog:sync`) -->
161
+ - **[0.6.13]** (2026-06-16) — `team` engine: concrete uncommitted-work reporting and stricter empty-run handling.
161
162
  - **[0.6.12]** (2026-06-16) — OKF-backed memory distillation — session learnings become structured concept files.
162
163
  - **[0.6.11]** (2026-06-16) — Larger reasoning budgets, and terminal capability-response sequences kept out of the prompt.
163
164
  - **[0.6.10]** (2026-06-16) — OKF memory-format foundation and a hardened bashTool subprocess drain.
164
165
  - **[0.6.9]** (2026-06-16) — Live streaming blocks size to their content and the viewport instead of a fixed rectangle.
165
- - **[0.6.8]** (2026-06-16) — OAuth loopback callback host pinned to `localhost` to match provider-registered redirect URIs.
166
166
 
167
167
  See [CHANGELOG.md](CHANGELOG.md) for the full history.
168
168
  <!-- CHANGELOG:END -->
package/README.zh.md CHANGED
@@ -158,11 +158,11 @@ CI 通过 `.github/workflows/npm-publish.yml` 发布 — GitHub 发布 release
158
158
  ## 更新日志 (Changelog)
159
159
 
160
160
  <!-- CHANGELOG:START (auto-generated from CHANGELOG.md — run `bun run changelog:sync`) -->
161
+ - **[0.6.13]** (2026-06-16) — `team` engine: concrete uncommitted-work reporting and stricter empty-run handling.
161
162
  - **[0.6.12]** (2026-06-16) — OKF-backed memory distillation — session learnings become structured concept files.
162
163
  - **[0.6.11]** (2026-06-16) — Larger reasoning budgets, and terminal capability-response sequences kept out of the prompt.
163
164
  - **[0.6.10]** (2026-06-16) — OKF memory-format foundation and a hardened bashTool subprocess drain.
164
165
  - **[0.6.9]** (2026-06-16) — Live streaming blocks size to their content and the viewport instead of a fixed rectangle.
165
- - **[0.6.8]** (2026-06-16) — OAuth loopback callback host pinned to `localhost` to match provider-registered redirect URIs.
166
166
 
167
167
  See [CHANGELOG.md](CHANGELOG.md) for the full history.
168
168
  <!-- CHANGELOG:END -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeo-code",
3
- "version": "0.6.12",
3
+ "version": "0.6.13",
4
4
  "description": "Clean, highly optimized AI coding agent using spec-first loop",
5
5
  "type": "module",
6
6
  "main": "src/cli.ts",
package/src/cli/runner.ts CHANGED
@@ -70,9 +70,10 @@ export const COMMANDS: readonly CommandSpec[] = [
70
70
  {
71
71
  name: "team",
72
72
  summary: "Execute the planning blueprint (Executor subagent tools).",
73
+ usage: "team [--strict-mutations]",
73
74
  loader: async () => {
74
75
  const m = await import("../commands/team");
75
- return async () => m.runTeamCommand();
76
+ return args => m.runTeamCommand(args);
76
77
  },
77
78
  },
78
79
  {
@@ -11,6 +11,7 @@ import {
11
11
  import { runAgentLoop } from "../agent/engine";
12
12
  import { maybeCompact } from "../agent/compaction";
13
13
  import { catalogMetadata } from "../ai";
14
+ import { gitDirtyCount } from "./launch/tmux";
14
15
  import { readGlobalConfig } from "../agent/state";
15
16
  import {
16
17
  defaultSubagentRole,
@@ -26,7 +27,7 @@ import type { Message } from "../agent/loop";
26
27
  import { loadProjectContext, withProjectContext } from "../agent/context-files";
27
28
  import { categoryBadge } from "../tui/components/category-index";
28
29
 
29
- export type RalphStreamKind = "step" | "complete" | "error";
30
+ export type RalphStreamKind = "step" | "complete" | "error" | "warn";
30
31
 
31
32
  export interface RalphRenderOptions {
32
33
  color?: boolean;
@@ -55,19 +56,20 @@ export function formatRalphTodoGuide(
55
56
  return lines;
56
57
  }
57
58
 
59
+ const STREAM_TINTS = {
60
+ complete: chalk.green.bold,
61
+ error: chalk.red.bold,
62
+ warn: chalk.yellow.bold,
63
+ step: chalk.cyan.bold,
64
+ } satisfies Record<RalphStreamKind, (s: string) => string>;
65
+
58
66
  export function formatRalphStreamEvent(kind: RalphStreamKind, message: string, opts: RalphRenderOptions = {}): string {
59
- const label = kind === "complete" ? "complete" : kind === "error" ? "error" : "step";
60
- if (!opts.color && !opts.indexed) return ` └─ stream:${label} ${message}`;
67
+ // ponytail: the label is always the kind itself no mapping table needed.
68
+ if (!opts.color && !opts.indexed) return ` └─ stream:${kind} ${message}`;
61
69
  const color = opts.color === true;
62
70
  const badge = `${categoryBadge("subagent", { color })} `;
63
- const tint = color
64
- ? kind === "complete"
65
- ? chalk.green.bold
66
- : kind === "error"
67
- ? chalk.red.bold
68
- : chalk.cyan.bold
69
- : (s: string) => s;
70
- return ` ${badge}${tint(`stream:${label}`)} ${message}`;
71
+ const tint = color ? STREAM_TINTS[kind] : (s: string) => s;
72
+ return ` ${badge}${tint(`stream:${kind}`)} ${message}`;
71
73
  }
72
74
 
73
75
  export interface RalphSubagentPromptContext {
@@ -163,6 +165,9 @@ export interface TeamEngineOptions {
163
165
  io?: {
164
166
  output?: (line: string) => void;
165
167
  };
168
+ /** When true, a mutating role that finishes WITHOUT any successful
169
+ * write/edit/bash fails the task instead of merely warning (round-11). */
170
+ strictMutations?: boolean;
166
171
  }
167
172
 
168
173
  export async function runTeamEngine(opts: TeamEngineOptions = {}): Promise<{ ok: boolean; reason?: string }> {
@@ -301,12 +306,17 @@ export async function runTeamEngine(opts: TeamEngineOptions = {}): Promise<{ ok:
301
306
  }
302
307
 
303
308
  // Round-8: a previous run halted on a task — its partial edits may still be
304
- // on disk. Warn loudly before re-running on top of them, then clear the marker.
309
+ // on disk. Round-12: instead of a speculative warning, probe the working tree
310
+ // with `git status --porcelain` and report the CONCRETE uncommitted count so
311
+ // the user knows whether real partial work is present before re-running on it.
305
312
  if (teamState.current_phase === "failed" && teamState.failed_task) {
306
- log(
307
- `[WARN] The previous run FAILED on "${teamState.failed_task}" and may have left partial edits on disk. ` +
308
- `Review the working tree before trusting this re-run executing the task again on top of partial work can duplicate changes.`,
309
- );
313
+ const dirty = gitDirtyCount(cwd);
314
+ const treeNote = dirty === undefined
315
+ ? `The working tree could not be inspected (not a git repo or git unavailable) review it manually before trusting this re-run.`
316
+ : dirty > 0
317
+ ? `git reports ${dirty} uncommitted change(s) — these may include partial edits from the halted task; review (e.g. 'git status', 'git diff') before re-running, as executing the task again on top of partial work can duplicate changes.`
318
+ : `git reports a clean working tree — no partial edits from the halted task remain on disk, so this re-run starts from a known state.`;
319
+ log(`[WARN] The previous run FAILED on "${teamState.failed_task}". ${treeNote}`);
310
320
  teamState.current_phase = "executing";
311
321
  delete teamState.failed_task;
312
322
  }
@@ -336,6 +346,7 @@ export async function runTeamEngine(opts: TeamEngineOptions = {}): Promise<{ ok:
336
346
  completed: teamState.completed_tasks ?? [],
337
347
  cwd,
338
348
  roleId: roleByIndex[activeIndex],
349
+ strictMutations: opts.strictMutations ?? false,
339
350
  });
340
351
 
341
352
  if (opts.signal?.aborted) {
@@ -374,14 +385,15 @@ export async function runTeamEngine(opts: TeamEngineOptions = {}): Promise<{ ok:
374
385
  }
375
386
  }
376
387
 
377
- export async function runTeamCommand(): Promise<void> {
378
- const res = await runTeamEngine();
388
+ export async function runTeamCommand(args: string[] = []): Promise<void> {
389
+ const strictMutations = args.includes("--strict-mutations") || args.includes("--strict");
390
+ const res = await runTeamEngine({ strictMutations });
379
391
  if (!res.ok) {
380
392
  process.exitCode = 1;
381
393
  }
382
394
  }
383
395
 
384
- async function executeTaskWithAgent(ctx: RalphSubagentPromptContext & { cwd: string; roleId?: string }): Promise<boolean> {
396
+ async function executeTaskWithAgent(ctx: RalphSubagentPromptContext & { cwd: string; roleId?: string; strictMutations?: boolean }): Promise<boolean> {
385
397
  const config = await readGlobalConfig();
386
398
  const role = getSubagentRole(ctx.roleId, config) ?? defaultSubagentRole();
387
399
  const renderOpts: RalphRenderOptions = { color: !!process.stdout.isTTY, indexed: true };
@@ -465,7 +477,16 @@ async function executeTaskWithAgent(ctx: RalphSubagentPromptContext & { cwd: str
465
477
  const msg = bashRuns === 0
466
478
  ? `${role.title} completed WITHOUT any successful write/edit/bash — treat its changed-files claim as unverified.`
467
479
  : `${role.title} completed with only bash (no write/edit) — verify its changed-files claim independently.`;
468
- console.log(formatRalphStreamEvent("error", msg, renderOpts));
480
+ // Round-11: under --strict-mutations, a mutating role that took NO action at
481
+ // all (no write/edit/bash) is a hard failure — an empty run must not pass as
482
+ // a completed task. bash-only stays advisory to avoid penalizing shell edits.
483
+ const hardFail = ctx.strictMutations && bashRuns === 0;
484
+ // Round-12: separate the tones so a passing advisory run doesn't masquerade
485
+ // as a stream:error — only a real hard-fail is red; an advisory note is warn.
486
+ console.log(formatRalphStreamEvent(hardFail ? "error" : "warn", msg, renderOpts));
487
+ if (hardFail) {
488
+ return false;
489
+ }
469
490
  }
470
491
  console.log(formatRalphStreamEvent("complete", `${role.title} finished task`, renderOpts));
471
492
  return true;