@lasso-ai/cli 1.2.2 → 1.2.4

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.
@@ -39,17 +39,20 @@ type AgentInput = {
39
39
  };
40
40
  };
41
41
  export type AgentConfig = {
42
- provider: "anthropic" | "openai" | "google" | "ollama" | "claude-code" | "codex" | "opencode" | "cursor";
42
+ provider: "anthropic" | "openai" | "google" | "ollama" | "nvidia" | "claude-code" | "codex" | "opencode" | "cursor";
43
43
  apiKey?: string;
44
44
  model?: string;
45
45
  baseUrl?: string;
46
+ lassoKey?: string;
47
+ serverUrl?: string;
46
48
  };
49
+ export declare function installPackages(cwd: string, packages: string[], onProgress?: AgentProgress): Promise<string[]>;
47
50
  export type LocalAgent = "claude-code" | "codex" | "opencode" | "cursor";
48
51
  export type AgentProgressLevel = "working" | "error";
49
52
  export type AgentProgress = (message: string, detail?: string, level?: AgentProgressLevel) => void;
50
53
  export type AgentPrompt = {
51
54
  message: string;
52
- kind: "permission" | "input";
55
+ kind: "permission" | "input" | "multiselect";
53
56
  options?: string[];
54
57
  };
55
58
  export type AgentPromptHandler = (prompt: AgentPrompt) => void;
@@ -61,9 +64,42 @@ export type AgentAnswer = {
61
64
  messages?: AgentInput["messages"];
62
65
  };
63
66
  export declare function respondToAgentPrompt(taskId: string, value: string): boolean;
67
+ export declare function waitForAgentPrompt(taskId: string, timeoutMs?: number): Promise<string>;
68
+ export declare function executeWebSearch(query: string, maxResults?: number): Promise<Array<{
69
+ title: string;
70
+ url: string;
71
+ snippet: string;
72
+ }>>;
73
+ export declare function executeAgentCommand(cwd: string, command: string, timeout?: number): Promise<{
74
+ stdout: string;
75
+ stderr: string;
76
+ exitCode: number;
77
+ }>;
64
78
  export declare function detectLocalAgents(): Promise<Set<LocalAgent>>;
79
+ export type AgentStepAction = {
80
+ type: "run_command";
81
+ command: string;
82
+ thought?: string;
83
+ } | {
84
+ type: "web_search";
85
+ query: string;
86
+ thought?: string;
87
+ } | {
88
+ type: "ask_user";
89
+ question: string;
90
+ kind?: "permission" | "input" | "multiselect";
91
+ options?: string[];
92
+ thought?: string;
93
+ } | {
94
+ type: "proposal";
95
+ summary: string;
96
+ packages?: string[];
97
+ changes: SourceChange[];
98
+ };
99
+ export declare function parseAgentAction(text: string): AgentStepAction;
65
100
  export declare function proposeChanges(cwd: string, input: AgentInput, config: AgentConfig, signal?: AbortSignal, onProgress?: AgentProgress, onPrompt?: AgentPromptHandler): Promise<{
66
101
  summary: string;
102
+ packages?: string[];
67
103
  changes: SourceChange[];
68
104
  }>;
69
105
  export declare function answerQuestion(cwd: string, input: AgentAnswer, config: AgentConfig, signal?: AbortSignal, onProgress?: AgentProgress, onPrompt?: AgentPromptHandler): Promise<string>;