@ethlete/agent-rules 0.1.0-next.53 → 0.1.0-next.54

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
@@ -1,5 +1,11 @@
1
1
  # @ethlete/agent-rules
2
2
 
3
+ ## 0.1.0-next.54
4
+
5
+ ### Patch Changes
6
+
7
+ - The `codex-runs` mod counts only the Codex runs the own session started in its status line.
8
+
3
9
  ## 0.1.0-next.53
4
10
 
5
11
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-runs",
3
- "version": "0.1.0-next.53",
3
+ "version": "0.1.0-next.54",
4
4
  "description": "Codex sessions in tmux with their state, duration, and recent output",
5
5
  "types": "./types/index.d.ts"
6
6
  }
@@ -263,8 +263,8 @@ export function durationOf(run: { startedAt: number; endedAt: number | null }, n
263
263
  return minutes ? `${minutes}m${String(seconds % 60).padStart(2, '0')}s` : `${seconds}s`;
264
264
  }
265
265
 
266
- export function statusOf(runs: AgentRun[], now: number) {
267
- const running = runs.filter((run) => run.state === 'running');
266
+ export function statusOf(runs: AgentRun[], session: string, now: number) {
267
+ const running = runs.filter((run) => run.state === 'running' && run.session === session);
268
268
  if (running.length === 0) return undefined;
269
269
  const oldest = Math.min(...running.map((run) => run.startedAt));
270
270
  return `Codex: ${running.length} running, ${Math.max(0, Math.floor((now - oldest) / 60_000))}m`;
@@ -99,7 +99,7 @@ async function refreshAgentRuns($: EngineInterface, sessionId: string, now: numb
99
99
  await update($, toolRuns, () => paired.claimed);
100
100
  await update($, waitingCalls, () => open);
101
101
  }
102
- setStatus($, statusOf(next, now));
102
+ setStatus($, statusOf(next, sessionId, now));
103
103
  }
104
104
 
105
105
  async function refresh($: EngineInterface) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "e2e-progress",
3
- "version": "0.1.0-next.53",
3
+ "version": "0.1.0-next.54",
4
4
  "description": "Live Playwright e2e progress from a run log, as a status line entry and a pane",
5
5
  "types": "./types/index.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "status-line",
3
- "version": "0.1.0-next.53",
3
+ "version": "0.1.0-next.54",
4
4
  "description": "Always-visible band with the running task, its duration, the open queue, open questions and a CI blocked mark",
5
5
  "types": "./types/index.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usage-line",
3
- "version": "0.1.0-next.53",
3
+ "version": "0.1.0-next.54",
4
4
  "description": "Status line entry with the 5 hour and weekly usage, the reset time of the 5 hour window and the Codex limit",
5
5
  "types": "./types/index.d.ts"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/agent-rules",
3
- "version": "0.1.0-next.53",
3
+ "version": "0.1.0-next.54",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",