praxis-agent 0.20.10 → 0.20.11

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.
@@ -5,11 +5,11 @@ export interface TopLevelAgentSummary {
5
5
  pid?: number;
6
6
  id?: string;
7
7
  cwd: string;
8
- kind: 'background' | 'interactive';
8
+ kind: 'background' | 'interactive' | 'bg' | 'daemon' | 'daemon-worker';
9
9
  startedAt: number;
10
10
  sessionId: string;
11
11
  name: string;
12
- status?: 'active' | 'idle';
12
+ status?: 'active' | 'idle' | 'busy' | 'waiting';
13
13
  tempo?: ClaudeJobTempo;
14
14
  needs?: string;
15
15
  state?: 'working' | 'stopped' | 'failed' | 'done';
@@ -87,6 +87,15 @@ function nativeClaudeSession(value) {
87
87
  ['active', 'idle'].includes(String(record.status));
88
88
  if (interactive)
89
89
  return record;
90
+ const daemon = Number.isSafeInteger(record.pid) &&
91
+ typeof record.cwd === 'string' &&
92
+ ['bg', 'daemon', 'daemon-worker'].includes(String(record.kind)) &&
93
+ Number.isSafeInteger(record.startedAt) &&
94
+ typeof record.sessionId === 'string' &&
95
+ typeof record.name === 'string' &&
96
+ ['busy', 'idle', 'waiting'].includes(String(record.status));
97
+ if (daemon)
98
+ return record;
90
99
  if (typeof record.id !== 'string' ||
91
100
  typeof record.cwd !== 'string' ||
92
101
  record.kind !== 'background' ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "praxis-agent",
3
- "version": "0.20.10",
3
+ "version": "0.20.11",
4
4
  "description": "Local-first, single-user general agent for the command line.",
5
5
  "license": "MIT",
6
6
  "author": "wuqisen",