lunel-cli 0.1.114 → 0.1.116
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/ai/codex.d.ts +18 -2
- package/dist/ai/codex.js +524 -90
- package/dist/ai/index.d.ts +3 -0
- package/dist/ai/index.js +1 -0
- package/dist/ai/interface.d.ts +4 -0
- package/dist/ai/opencode.d.ts +5 -1
- package/dist/ai/opencode.js +317 -34
- package/dist/index.js +125 -6
- package/package.json +1 -1
package/dist/ai/codex.d.ts
CHANGED
|
@@ -3,14 +3,17 @@ export declare class CodexProvider implements AIProvider {
|
|
|
3
3
|
private proc;
|
|
4
4
|
private shuttingDown;
|
|
5
5
|
private emitter;
|
|
6
|
+
private defaultModelContextWindow;
|
|
6
7
|
private nextId;
|
|
7
8
|
private pending;
|
|
8
9
|
private sessions;
|
|
9
10
|
private deletedThreadIds;
|
|
10
11
|
private resumedThreadIds;
|
|
11
12
|
private pendingPermissionRequestIds;
|
|
13
|
+
private pendingQuestionRequestIds;
|
|
12
14
|
private assistantMessageIdByTurnId;
|
|
13
15
|
private partTextById;
|
|
16
|
+
private debugLog;
|
|
14
17
|
init(): Promise<void>;
|
|
15
18
|
destroy(): Promise<void>;
|
|
16
19
|
subscribe(emitter: AiEventEmitter): () => void;
|
|
@@ -26,6 +29,9 @@ export declare class CodexProvider implements AIProvider {
|
|
|
26
29
|
deleteSession(id: string): Promise<{
|
|
27
30
|
deleted: boolean;
|
|
28
31
|
}>;
|
|
32
|
+
renameSession(id: string, title: string): Promise<{
|
|
33
|
+
session: SessionInfo;
|
|
34
|
+
}>;
|
|
29
35
|
getMessages(sessionId: string): Promise<{
|
|
30
36
|
messages: MessageInfo[];
|
|
31
37
|
}>;
|
|
@@ -47,8 +53,8 @@ export declare class CodexProvider implements AIProvider {
|
|
|
47
53
|
share: ShareInfo;
|
|
48
54
|
}>;
|
|
49
55
|
permissionReply(sessionId: string, permissionId: string, response: "once" | "always" | "reject"): Promise<Record<string, never>>;
|
|
50
|
-
questionReply(): Promise<Record<string, never>>;
|
|
51
|
-
questionReject(): Promise<Record<string, never>>;
|
|
56
|
+
questionReply(sessionId: string, questionId: string, answers: string[][]): Promise<Record<string, never>>;
|
|
57
|
+
questionReject(sessionId: string, questionId: string): Promise<Record<string, never>>;
|
|
52
58
|
private send;
|
|
53
59
|
private call;
|
|
54
60
|
private handleLine;
|
|
@@ -65,9 +71,12 @@ export declare class CodexProvider implements AIProvider {
|
|
|
65
71
|
private ensureAssistantMessage;
|
|
66
72
|
private upsertLocalMessagePart;
|
|
67
73
|
private fetchServerThreads;
|
|
74
|
+
private refreshConfigDefaults;
|
|
68
75
|
private refreshSessionMetadata;
|
|
69
76
|
private fetchServerThreadsByArchiveState;
|
|
70
77
|
private fetchModels;
|
|
78
|
+
private resolveModelId;
|
|
79
|
+
private buildCollaborationMode;
|
|
71
80
|
private parseThreadListEntry;
|
|
72
81
|
private hasNextCursor;
|
|
73
82
|
private ingestThreadMetadata;
|
|
@@ -79,6 +88,12 @@ export declare class CodexProvider implements AIProvider {
|
|
|
79
88
|
private resolveSessionFromPayload;
|
|
80
89
|
private resolveInFlightTurnId;
|
|
81
90
|
private decodeMessagesFromThreadRead;
|
|
91
|
+
private logThreadReadSummary;
|
|
92
|
+
private decodeStoredToolLikePart;
|
|
93
|
+
private describeStoredToolName;
|
|
94
|
+
private extractStoredToolInput;
|
|
95
|
+
private extractStoredToolOutput;
|
|
96
|
+
private decodeStoredCommandExecutionOutput;
|
|
82
97
|
private decodeUserMessageParts;
|
|
83
98
|
private decodeItemText;
|
|
84
99
|
private makeTurnInputPayload;
|
|
@@ -98,6 +113,7 @@ export declare class CodexProvider implements AIProvider {
|
|
|
98
113
|
private extractTurnId;
|
|
99
114
|
private extractItemId;
|
|
100
115
|
private extractTextPayload;
|
|
116
|
+
private extractStructuredUserInputQuestions;
|
|
101
117
|
private extractThreadId;
|
|
102
118
|
private extractThreadCwd;
|
|
103
119
|
private extractCreatedAt;
|