@lasso-ai/cli 1.4.5 → 1.5.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/cli/agent.d.ts +9 -89
- package/dist/cli/agent.js +66 -1412
- package/dist/cli/bridge-old.d.ts +259 -0
- package/dist/cli/bridge-old.js +1350 -0
- package/dist/cli/bridge.d.ts +19 -12
- package/dist/cli/bridge.js +625 -1181
- package/dist/cli/host/next-host-entry.js +0 -2
- package/dist/cli/host/vite-host-entry.js +1 -3
- package/dist/cli/oneshot.js +159 -961
- package/dist/cli/runtime-client.d.ts +229 -0
- package/dist/cli/runtime-client.js +143 -0
- package/dist/cli/snapshot.d.ts +3 -1
- package/dist/cli/snapshot.js +8 -1
- package/package.json +1 -1
package/dist/cli/bridge.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type SourceChange, type AgentPrompt } from "./agent";
|
|
2
1
|
import type { CollabConfig } from "./project";
|
|
3
2
|
import { type TimelineSnapshot } from "./snapshot";
|
|
4
3
|
export declare const DEFAULT_BRIDGE_PORT = 3056;
|
|
@@ -18,7 +17,7 @@ export type BridgeMessage = {
|
|
|
18
17
|
taskId: string;
|
|
19
18
|
instruction: string;
|
|
20
19
|
model: string;
|
|
21
|
-
provider?: "anthropic" | "openai" | "google" | "
|
|
20
|
+
provider?: "anthropic" | "openai" | "google" | "nvidia" | "ollama";
|
|
22
21
|
messages?: Array<{
|
|
23
22
|
role: string;
|
|
24
23
|
content: string;
|
|
@@ -26,7 +25,7 @@ export type BridgeMessage = {
|
|
|
26
25
|
}>;
|
|
27
26
|
changesHistory?: Array<{
|
|
28
27
|
summary: string;
|
|
29
|
-
changes:
|
|
28
|
+
changes: any[];
|
|
30
29
|
createdAt?: string;
|
|
31
30
|
}>;
|
|
32
31
|
context?: {
|
|
@@ -53,7 +52,7 @@ export type BridgeMessage = {
|
|
|
53
52
|
taskId: string;
|
|
54
53
|
question: string;
|
|
55
54
|
model: string;
|
|
56
|
-
provider?: "anthropic" | "openai" | "google" | "
|
|
55
|
+
provider?: "anthropic" | "openai" | "google" | "nvidia" | "ollama";
|
|
57
56
|
messages?: Array<{
|
|
58
57
|
role: string;
|
|
59
58
|
content: string;
|
|
@@ -85,7 +84,7 @@ export type BridgeMessage = {
|
|
|
85
84
|
} | {
|
|
86
85
|
type: "apply";
|
|
87
86
|
taskId: string;
|
|
88
|
-
changes:
|
|
87
|
+
changes: any[];
|
|
89
88
|
} | {
|
|
90
89
|
type: "undo";
|
|
91
90
|
taskId?: string;
|
|
@@ -113,7 +112,7 @@ export type BridgeMessage = {
|
|
|
113
112
|
} | {
|
|
114
113
|
type: "git_generate_message";
|
|
115
114
|
model: string;
|
|
116
|
-
provider?: "anthropic" | "openai" | "google" | "
|
|
115
|
+
provider?: "anthropic" | "openai" | "google" | "nvidia" | "ollama";
|
|
117
116
|
} | {
|
|
118
117
|
type: "git_init";
|
|
119
118
|
} | {
|
|
@@ -137,7 +136,7 @@ export type BridgeMessage = {
|
|
|
137
136
|
prompt: string;
|
|
138
137
|
scope?: "project" | "component";
|
|
139
138
|
model?: string;
|
|
140
|
-
provider?: "anthropic" | "openai" | "google" | "
|
|
139
|
+
provider?: "anthropic" | "openai" | "google" | "nvidia" | "ollama";
|
|
141
140
|
messages?: Array<{
|
|
142
141
|
role: "user" | "assistant";
|
|
143
142
|
content: string;
|
|
@@ -152,11 +151,16 @@ export type BridgeMessage = {
|
|
|
152
151
|
} | {
|
|
153
152
|
type: "delete_snapshot";
|
|
154
153
|
snapshotId: string;
|
|
154
|
+
} | {
|
|
155
|
+
type: "switch_model";
|
|
156
|
+
taskId: string;
|
|
157
|
+
provider: string;
|
|
158
|
+
modelId: string;
|
|
155
159
|
};
|
|
156
160
|
type ModelOption = {
|
|
157
161
|
id: string;
|
|
158
162
|
label: string;
|
|
159
|
-
provider: "anthropic" | "openai" | "google" | "
|
|
163
|
+
provider: "anthropic" | "openai" | "google" | "nvidia" | "ollama";
|
|
160
164
|
locked?: boolean;
|
|
161
165
|
lockedReason?: string;
|
|
162
166
|
};
|
|
@@ -195,7 +199,7 @@ export type ServerBridgeMessage = {
|
|
|
195
199
|
status: "thinking" | "working" | "review" | "error" | "stopped";
|
|
196
200
|
message: string;
|
|
197
201
|
detail?: string;
|
|
198
|
-
changes?:
|
|
202
|
+
changes?: any[];
|
|
199
203
|
thinking?: Array<{
|
|
200
204
|
title: string;
|
|
201
205
|
detail?: string;
|
|
@@ -205,7 +209,11 @@ export type ServerBridgeMessage = {
|
|
|
205
209
|
} | {
|
|
206
210
|
type: "agent_prompt";
|
|
207
211
|
taskId: string;
|
|
208
|
-
prompt:
|
|
212
|
+
prompt: {
|
|
213
|
+
message: string;
|
|
214
|
+
kind: "permission" | "input" | "multiselect";
|
|
215
|
+
options?: string[];
|
|
216
|
+
};
|
|
209
217
|
} | {
|
|
210
218
|
type: "page_folders";
|
|
211
219
|
path: string;
|
|
@@ -253,7 +261,6 @@ export declare function restartBridge(port?: number): Promise<{
|
|
|
253
261
|
error?: string;
|
|
254
262
|
}>;
|
|
255
263
|
export declare function startBridge(cwd?: string, collabConfig?: CollabConfig | null, bridgePort?: number): Promise<{
|
|
256
|
-
|
|
257
|
-
close(): void;
|
|
264
|
+
ok: boolean;
|
|
258
265
|
}>;
|
|
259
266
|
export {};
|