lunel-cli 0.1.113 → 0.1.115
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 +19 -4
- package/dist/ai/codex.js +470 -95
- package/dist/ai/index.d.ts +5 -2
- package/dist/ai/index.js +3 -2
- package/dist/ai/interface.d.ts +9 -1
- package/dist/ai/opencode.d.ts +7 -3
- package/dist/ai/opencode.js +319 -35
- package/dist/index.js +126 -7
- package/package.json +1 -1
package/dist/ai/codex.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import type { AIProvider, AiEventEmitter, FileAttachment, ModelSelector, MessageInfo, ProviderInfo, SessionInfo, ShareInfo } from "./interface.js";
|
|
1
|
+
import type { AIProvider, AiEventEmitter, CodexPromptOptions, FileAttachment, ModelSelector, MessageInfo, ProviderInfo, SessionInfo, ShareInfo } from "./interface.js";
|
|
2
2
|
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;
|
|
14
16
|
init(): Promise<void>;
|
|
@@ -26,10 +28,13 @@ export declare class CodexProvider implements AIProvider {
|
|
|
26
28
|
deleteSession(id: string): Promise<{
|
|
27
29
|
deleted: boolean;
|
|
28
30
|
}>;
|
|
31
|
+
renameSession(id: string, title: string): Promise<{
|
|
32
|
+
session: SessionInfo;
|
|
33
|
+
}>;
|
|
29
34
|
getMessages(sessionId: string): Promise<{
|
|
30
35
|
messages: MessageInfo[];
|
|
31
36
|
}>;
|
|
32
|
-
prompt(sessionId: string, text: string, model?: ModelSelector, agent?: string, files?: FileAttachment[]): Promise<{
|
|
37
|
+
prompt(sessionId: string, text: string, model?: ModelSelector, agent?: string, files?: FileAttachment[], codexOptions?: CodexPromptOptions): Promise<{
|
|
33
38
|
ack: true;
|
|
34
39
|
}>;
|
|
35
40
|
abort(sessionId: string): Promise<Record<string, never>>;
|
|
@@ -47,8 +52,8 @@ export declare class CodexProvider implements AIProvider {
|
|
|
47
52
|
share: ShareInfo;
|
|
48
53
|
}>;
|
|
49
54
|
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>>;
|
|
55
|
+
questionReply(sessionId: string, questionId: string, answers: string[][]): Promise<Record<string, never>>;
|
|
56
|
+
questionReject(sessionId: string, questionId: string): Promise<Record<string, never>>;
|
|
52
57
|
private send;
|
|
53
58
|
private call;
|
|
54
59
|
private handleLine;
|
|
@@ -65,9 +70,12 @@ export declare class CodexProvider implements AIProvider {
|
|
|
65
70
|
private ensureAssistantMessage;
|
|
66
71
|
private upsertLocalMessagePart;
|
|
67
72
|
private fetchServerThreads;
|
|
73
|
+
private refreshConfigDefaults;
|
|
68
74
|
private refreshSessionMetadata;
|
|
69
75
|
private fetchServerThreadsByArchiveState;
|
|
70
76
|
private fetchModels;
|
|
77
|
+
private resolveModelId;
|
|
78
|
+
private buildCollaborationMode;
|
|
71
79
|
private parseThreadListEntry;
|
|
72
80
|
private hasNextCursor;
|
|
73
81
|
private ingestThreadMetadata;
|
|
@@ -79,6 +87,11 @@ export declare class CodexProvider implements AIProvider {
|
|
|
79
87
|
private resolveSessionFromPayload;
|
|
80
88
|
private resolveInFlightTurnId;
|
|
81
89
|
private decodeMessagesFromThreadRead;
|
|
90
|
+
private decodeStoredToolLikePart;
|
|
91
|
+
private describeStoredToolName;
|
|
92
|
+
private extractStoredToolInput;
|
|
93
|
+
private extractStoredToolOutput;
|
|
94
|
+
private decodeStoredCommandExecutionOutput;
|
|
82
95
|
private decodeUserMessageParts;
|
|
83
96
|
private decodeItemText;
|
|
84
97
|
private makeTurnInputPayload;
|
|
@@ -98,6 +111,7 @@ export declare class CodexProvider implements AIProvider {
|
|
|
98
111
|
private extractTurnId;
|
|
99
112
|
private extractItemId;
|
|
100
113
|
private extractTextPayload;
|
|
114
|
+
private extractStructuredUserInputQuestions;
|
|
101
115
|
private extractThreadId;
|
|
102
116
|
private extractThreadCwd;
|
|
103
117
|
private extractCreatedAt;
|
|
@@ -106,6 +120,7 @@ export declare class CodexProvider implements AIProvider {
|
|
|
106
120
|
private firstString;
|
|
107
121
|
private firstStringFromSources;
|
|
108
122
|
private readArray;
|
|
123
|
+
private readRawString;
|
|
109
124
|
private readString;
|
|
110
125
|
private asRecord;
|
|
111
126
|
private normalizedItemType;
|