@ai-devkit/agent-manager 0.3.0 → 0.4.0
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/dist/adapters/ClaudeCodeAdapter.d.ts +44 -28
- package/dist/adapters/ClaudeCodeAdapter.d.ts.map +1 -1
- package/dist/adapters/ClaudeCodeAdapter.js +383 -234
- package/dist/adapters/ClaudeCodeAdapter.js.map +1 -1
- package/dist/adapters/CodexAdapter.d.ts.map +1 -1
- package/dist/adapters/CodexAdapter.js +1 -3
- package/dist/adapters/CodexAdapter.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/adapters/ClaudeCodeAdapter.test.ts +1045 -82
- package/src/__tests__/adapters/CodexAdapter.test.ts +7 -1
- package/src/adapters/ClaudeCodeAdapter.ts +498 -327
- package/src/adapters/CodexAdapter.ts +2 -13
|
@@ -43,7 +43,7 @@ interface CodexSession {
|
|
|
43
43
|
lastPayloadType?: string;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
type SessionMatchMode = 'cwd' | 'missing-cwd'
|
|
46
|
+
type SessionMatchMode = 'cwd' | 'missing-cwd';
|
|
47
47
|
|
|
48
48
|
export class CodexAdapter implements AgentAdapter {
|
|
49
49
|
readonly type = 'codex' as const;
|
|
@@ -94,7 +94,7 @@ export class CodexAdapter implements AgentAdapter {
|
|
|
94
94
|
const assignedPids = new Set<number>();
|
|
95
95
|
const agents: AgentInfo[] = [];
|
|
96
96
|
|
|
97
|
-
// Match exact cwd first, then missing-cwd sessions
|
|
97
|
+
// Match exact cwd first, then missing-cwd sessions.
|
|
98
98
|
this.assignSessionsForMode(
|
|
99
99
|
'cwd',
|
|
100
100
|
codexProcesses,
|
|
@@ -113,15 +113,6 @@ export class CodexAdapter implements AgentAdapter {
|
|
|
113
113
|
processStartByPid,
|
|
114
114
|
agents,
|
|
115
115
|
);
|
|
116
|
-
this.assignSessionsForMode(
|
|
117
|
-
'any',
|
|
118
|
-
codexProcesses,
|
|
119
|
-
sortedSessions,
|
|
120
|
-
usedSessionIds,
|
|
121
|
-
assignedPids,
|
|
122
|
-
processStartByPid,
|
|
123
|
-
agents,
|
|
124
|
-
);
|
|
125
116
|
|
|
126
117
|
// Every running codex process should still be listed.
|
|
127
118
|
for (const processInfo of codexProcesses) {
|
|
@@ -454,8 +445,6 @@ export class CodexAdapter implements AgentAdapter {
|
|
|
454
445
|
if (mode === 'missing-cwd') {
|
|
455
446
|
return !session.projectPath;
|
|
456
447
|
}
|
|
457
|
-
|
|
458
|
-
return true;
|
|
459
448
|
});
|
|
460
449
|
}
|
|
461
450
|
|