ultracode-for-codex 0.2.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/README.md +182 -0
- package/ULTRACODE_INSTALL.md +133 -0
- package/dist/cli.d.ts +24 -0
- package/dist/cli.js +616 -0
- package/dist/codex/env.d.ts +2 -0
- package/dist/codex/env.js +45 -0
- package/dist/codex/subagent-backend.d.ts +72 -0
- package/dist/codex/subagent-backend.js +685 -0
- package/dist/runtime/async-queue.d.ts +10 -0
- package/dist/runtime/async-queue.js +55 -0
- package/dist/runtime/types.d.ts +61 -0
- package/dist/runtime/types.js +18 -0
- package/dist/runtime/workflow-journal.d.ts +135 -0
- package/dist/runtime/workflow-journal.js +681 -0
- package/dist/runtime/workflow-runtime.d.ts +266 -0
- package/dist/runtime/workflow-runtime.js +3280 -0
- package/dist/settings.d.ts +38 -0
- package/dist/settings.js +153 -0
- package/dist/ultracode-install-guide.d.ts +4 -0
- package/dist/ultracode-install-guide.js +22 -0
- package/docs/ultracode-p3a-journal-design.md +78 -0
- package/docs/ultracode-p3b-resume-cache.md +43 -0
- package/docs/ultracode-p3c-worktree-isolation.md +60 -0
- package/package.json +77 -0
- package/postinstall.mjs +23 -0
- package/settings.json +20 -0
- package/skills/ultracode-for-codex/SKILL.md +102 -0
- package/skills/ultracode-for-codex/agents/openai.yaml +4 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { ReasoningEffort, SubagentBackend, SubagentRequest, SubagentResult, SubagentUsage, Verbosity } from '../runtime/types.js';
|
|
2
|
+
interface CodexSubagentBackendOptions {
|
|
3
|
+
readonly command?: string;
|
|
4
|
+
readonly cwd: string;
|
|
5
|
+
readonly model?: string;
|
|
6
|
+
readonly timeoutMs: number;
|
|
7
|
+
readonly reasoningEffort?: ReasoningEffort;
|
|
8
|
+
readonly verbosity?: Verbosity;
|
|
9
|
+
}
|
|
10
|
+
export interface CodexIsolation {
|
|
11
|
+
readonly rootDir: string;
|
|
12
|
+
readonly homeDir: string;
|
|
13
|
+
readonly workDir: string;
|
|
14
|
+
readonly defaultModel?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class CodexSubagentBackend implements SubagentBackend {
|
|
17
|
+
readonly name = "codex-subagent";
|
|
18
|
+
readonly model: string;
|
|
19
|
+
private readonly command;
|
|
20
|
+
private readonly cwd;
|
|
21
|
+
private readonly configuredModel?;
|
|
22
|
+
private readonly timeoutMs;
|
|
23
|
+
private readonly reasoningEffort;
|
|
24
|
+
private readonly verbosity;
|
|
25
|
+
private child;
|
|
26
|
+
private lineReader;
|
|
27
|
+
private nextId;
|
|
28
|
+
private initialized;
|
|
29
|
+
private stderr;
|
|
30
|
+
private readonly pending;
|
|
31
|
+
private readonly turnWaiters;
|
|
32
|
+
private readonly bufferedTurnStates;
|
|
33
|
+
private isolation;
|
|
34
|
+
constructor(options: CodexSubagentBackendOptions);
|
|
35
|
+
generate(request: SubagentRequest, signal?: AbortSignal): Promise<SubagentResult>;
|
|
36
|
+
close(): Promise<void>;
|
|
37
|
+
private ensureStarted;
|
|
38
|
+
private start;
|
|
39
|
+
private startThread;
|
|
40
|
+
private archiveThread;
|
|
41
|
+
private cleanupIsolation;
|
|
42
|
+
private send;
|
|
43
|
+
private notify;
|
|
44
|
+
private handleLine;
|
|
45
|
+
private respondToServerRequest;
|
|
46
|
+
private handleNotification;
|
|
47
|
+
private waitForTurn;
|
|
48
|
+
private markWaiterCompleted;
|
|
49
|
+
private resolveTurnWaiter;
|
|
50
|
+
private failAll;
|
|
51
|
+
private modelOverrideFor;
|
|
52
|
+
private bufferTurnState;
|
|
53
|
+
private takeBufferedTurnState;
|
|
54
|
+
private clearBufferedTurnStates;
|
|
55
|
+
}
|
|
56
|
+
export declare function usageFromCodexTokenUsage(value: unknown): SubagentUsage | null;
|
|
57
|
+
export declare function codexContextIsolationArgs(options: {
|
|
58
|
+
readonly model: string;
|
|
59
|
+
readonly reasoningEffort: ReasoningEffort;
|
|
60
|
+
readonly verbosity: Verbosity;
|
|
61
|
+
}): string[];
|
|
62
|
+
export declare function createCodexIsolation(options: {
|
|
63
|
+
readonly configuredModel?: string;
|
|
64
|
+
readonly reasoningEffort: ReasoningEffort;
|
|
65
|
+
readonly verbosity: Verbosity;
|
|
66
|
+
}): Promise<CodexIsolation>;
|
|
67
|
+
export declare function minimalCodexConfigToml(options: {
|
|
68
|
+
readonly model: string;
|
|
69
|
+
readonly reasoningEffort: ReasoningEffort;
|
|
70
|
+
readonly verbosity: Verbosity;
|
|
71
|
+
}): string;
|
|
72
|
+
export {};
|