portercode 0.1.3 → 0.1.10
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/LICENSE +174 -21
- package/README.md +101 -2
- package/dist/auth/index.d.ts +99 -0
- package/dist/brand/index.d.ts +7 -0
- package/dist/brand/loader.d.ts +463 -0
- package/dist/brand/rules.d.ts +25 -0
- package/dist/brand/schema.d.ts +246 -0
- package/dist/cli/auth.d.ts +14 -2
- package/dist/cli/brand.d.ts +6 -0
- package/dist/config/config.d.ts +0 -720
- package/dist/constants/index.d.ts +6 -9
- package/dist/constants/version.d.ts +5 -0
- package/dist/gateway/index.d.ts +5 -4
- package/dist/global/index.d.ts +12 -0
- package/dist/index.js +39 -1
- package/dist/prompt/template.d.ts +24 -0
- package/dist/provider/models.d.ts +0 -3
- package/dist/provider/provider.d.ts +5 -1
- package/dist/server/services/agent.d.ts +11 -0
- package/dist/session/context-cache.d.ts +75 -0
- package/dist/session/context-optimization.d.ts +5 -0
- package/dist/session/llm.d.ts +38 -1
- package/dist/session/message-optimizer.d.ts +32 -0
- package/dist/session/session.d.ts +101 -9
- package/dist/session/types.d.ts +92 -16
- package/dist/src/auth/index.d.ts +202 -0
- package/dist/src/brand/index.d.ts +7 -0
- package/dist/src/bus/bus-event.d.ts +10 -0
- package/dist/src/bus/global.d.ts +7 -0
- package/dist/src/bus/index.d.ts +26 -0
- package/dist/src/cli/auth.d.ts +23 -0
- package/dist/src/cli/index.d.ts +1 -0
- package/dist/src/cli/ui.d.ts +26 -0
- package/dist/src/command/index.d.ts +54 -0
- package/dist/src/config/config.d.ts +6036 -0
- package/dist/src/config/index.d.ts +2 -0
- package/dist/src/config/markdown.d.ts +415 -0
- package/dist/src/constants/index.d.ts +6 -0
- package/dist/src/constants/version.d.ts +5 -0
- package/dist/src/diff/engine.d.ts +15 -0
- package/dist/src/diff/index.d.ts +8 -0
- package/dist/src/diff/types.d.ts +66 -0
- package/dist/src/file/ignore.d.ts +7 -0
- package/dist/src/flag/index.d.ts +19 -0
- package/dist/src/gateway/bridge.d.ts +11 -0
- package/dist/src/gateway/handlers/llm.d.ts +7 -0
- package/dist/src/gateway/handlers/permission.d.ts +15 -0
- package/dist/src/gateway/handlers/session.d.ts +7 -0
- package/dist/src/gateway/handlers/system.d.ts +7 -0
- package/dist/src/gateway/handlers/tool.d.ts +7 -0
- package/dist/src/gateway/index.d.ts +18 -0
- package/dist/src/gateway/protocol.d.ts +159 -0
- package/dist/src/gateway/router.d.ts +7 -0
- package/dist/src/gateway/server.d.ts +24 -0
- package/dist/src/global/index.d.ts +23 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/permission/index.d.ts +2 -0
- package/dist/src/permission/permission.d.ts +172 -0
- package/dist/src/permission/types.d.ts +109 -0
- package/dist/src/project/index.d.ts +3 -0
- package/dist/src/project/instance.d.ts +33 -0
- package/dist/src/project/project.d.ts +82 -0
- package/dist/src/project/state.d.ts +4 -0
- package/dist/src/prompt/index.d.ts +5 -0
- package/dist/src/prompt/system.d.ts +29 -0
- package/dist/src/prompt/template.d.ts +24 -0
- package/dist/src/provider/index.d.ts +3 -0
- package/dist/src/provider/models.d.ts +14 -0
- package/dist/src/provider/provider.d.ts +848 -0
- package/dist/src/provider/types.d.ts +328 -0
- package/dist/src/server/index.d.ts +21 -0
- package/dist/src/server/routes/api.d.ts +2 -0
- package/dist/src/server/routes/auth.d.ts +2 -0
- package/dist/src/server/routes/events.d.ts +2 -0
- package/dist/src/server/routes/health.d.ts +2 -0
- package/dist/src/server/routes/sessions.d.ts +2 -0
- package/dist/src/server/services/agent.d.ts +40 -0
- package/dist/src/server/services/permission.d.ts +43 -0
- package/dist/src/server/sse/emitter.d.ts +57 -0
- package/dist/src/session/context-cache.d.ts +75 -0
- package/dist/src/session/context-optimization.d.ts +165 -0
- package/dist/src/session/index.d.ts +5 -0
- package/dist/src/session/llm.d.ts +68 -0
- package/dist/src/session/message-optimizer.d.ts +32 -0
- package/dist/src/session/session.d.ts +524 -0
- package/dist/src/session/title-generator.d.ts +11 -0
- package/dist/src/session/types.d.ts +713 -0
- package/dist/src/snapshot/index.d.ts +40 -0
- package/dist/src/storage/index.d.ts +1 -0
- package/dist/src/storage/storage.d.ts +34 -0
- package/dist/src/theme.d.ts +66 -0
- package/dist/src/tool/bash.d.ts +19 -0
- package/dist/src/tool/edit.d.ts +21 -0
- package/dist/src/tool/glob.d.ts +15 -0
- package/dist/src/tool/grep.d.ts +20 -0
- package/dist/src/tool/image.d.ts +22 -0
- package/dist/src/tool/index.d.ts +11 -0
- package/dist/src/tool/ls.d.ts +14 -0
- package/dist/src/tool/read.d.ts +17 -0
- package/dist/src/tool/registry.d.ts +30 -0
- package/dist/src/tool/think.d.ts +11 -0
- package/dist/src/tool/todo.d.ts +76 -0
- package/dist/src/tool/tool.d.ts +65 -0
- package/dist/src/tool/webfetch.d.ts +15 -0
- package/dist/src/tool/websearch.d.ts +18 -0
- package/dist/src/tool/write.d.ts +16 -0
- package/dist/src/tui/App.d.ts +10 -0
- package/dist/src/tui/components/Header.d.ts +13 -0
- package/dist/src/tui/components/LoadingIndicator.d.ts +26 -0
- package/dist/src/tui/components/Message/AssistantMessage.d.ts +11 -0
- package/dist/src/tui/components/Message/ReasoningMessage.d.ts +21 -0
- package/dist/src/tui/components/Message/ToolCallMessage.d.ts +26 -0
- package/dist/src/tui/components/Message/UserMessage.d.ts +12 -0
- package/dist/src/tui/components/Message/index.d.ts +16 -0
- package/dist/src/tui/components/PermissionPrompt.d.ts +6 -0
- package/dist/src/tui/components/PromptInput.d.ts +33 -0
- package/dist/src/tui/components/REPL.d.ts +22 -0
- package/dist/src/tui/components/Spinner.d.ts +13 -0
- package/dist/src/tui/components/StatusBar.d.ts +13 -0
- package/dist/src/tui/components/TodoList.d.ts +17 -0
- package/dist/src/tui/components/WelcomeBox.d.ts +13 -0
- package/dist/src/tui/components/dialogs/DiagnosticsPanel.d.ts +12 -0
- package/dist/src/tui/components/dialogs/HelpPanel.d.ts +11 -0
- package/dist/src/tui/components/dialogs/ModelSelector.d.ts +14 -0
- package/dist/src/tui/components/dialogs/PermissionPrompt.d.ts +17 -0
- package/dist/src/tui/components/dialogs/SessionPicker.d.ts +20 -0
- package/dist/src/tui/components/dialogs/index.d.ts +10 -0
- package/dist/src/tui/components/diff/DiffHunk.d.ts +12 -0
- package/dist/src/tui/components/diff/DiffLine.d.ts +14 -0
- package/dist/src/tui/components/diff/DiffStats.d.ts +12 -0
- package/dist/src/tui/components/diff/DiffView.d.ts +15 -0
- package/dist/src/tui/components/diff/index.d.ts +9 -0
- package/dist/src/tui/hooks/useAnimatedLabel.d.ts +12 -0
- package/dist/src/tui/hooks/usePermission.d.ts +34 -0
- package/dist/src/tui/hooks/useTermWidth.d.ts +13 -0
- package/dist/src/tui/index.d.ts +20 -0
- package/dist/src/tui/theme.d.ts +8 -0
- package/dist/src/tui/utils/Cursor.d.ts +37 -0
- package/dist/src/tui/utils/clipboard.d.ts +3 -0
- package/dist/src/tui/utils/keypress.d.ts +39 -0
- package/dist/src/tui/utils/markdown.d.ts +13 -0
- package/dist/src/tui/utils/openContent.d.ts +22 -0
- package/dist/src/util/ascii.d.ts +22 -0
- package/dist/src/util/bell.d.ts +14 -0
- package/dist/src/util/color.d.ts +28 -0
- package/dist/src/util/context.d.ts +10 -0
- package/dist/src/util/debug.d.ts +51 -0
- package/dist/src/util/error.d.ts +294 -0
- package/dist/src/util/example-commands.d.ts +18 -0
- package/dist/src/util/filesystem.d.ts +17 -0
- package/dist/src/util/id.d.ts +24 -0
- package/dist/src/util/iife.d.ts +1 -0
- package/dist/src/util/index.d.ts +7 -0
- package/dist/src/util/lazy.d.ts +1 -0
- package/dist/src/util/log.d.ts +26 -0
- package/dist/src/util/paths.d.ts +45 -0
- package/dist/src/util/shell.d.ts +36 -0
- package/dist/src/util/timeout.d.ts +1 -0
- package/dist/src/util/wildcard.d.ts +8 -0
- package/dist/theme.d.ts +64 -0
- package/dist/tool/image.d.ts +3 -4
- package/dist/tool/think.d.ts +11 -0
- package/dist/tool/webfetch.d.ts +15 -0
- package/dist/tool/websearch.d.ts +18 -0
- package/dist/tools/think.d.ts +2 -0
- package/dist/tui/App.d.ts +1 -1
- package/dist/tui/components/Header.d.ts +2 -1
- package/dist/tui/components/LoadingIndicator.d.ts +26 -0
- package/dist/tui/components/Message/AssistantMessage.d.ts +2 -1
- package/dist/tui/components/Message/ReasoningMessage.d.ts +2 -1
- package/dist/tui/components/Message/ToolCallMessage.d.ts +3 -2
- package/dist/tui/components/Message/UserMessage.d.ts +2 -1
- package/dist/tui/components/Message/index.d.ts +4 -1
- package/dist/tui/components/PromptInput.d.ts +2 -1
- package/dist/tui/components/REPL.d.ts +6 -1
- package/dist/tui/components/StatusBar.d.ts +2 -1
- package/dist/tui/components/dialogs/SessionPicker.d.ts +6 -1
- package/dist/tui/hooks/useAnimatedLabel.d.ts +12 -0
- package/dist/tui/hooks/usePermission.d.ts +9 -1
- package/dist/tui/hooks/useTermWidth.d.ts +13 -0
- package/dist/tui/index.d.ts +5 -0
- package/dist/tui/theme.d.ts +4 -23
- package/dist/util/ascii.d.ts +22 -0
- package/dist/util/bell.d.ts +14 -0
- package/dist/util/color.d.ts +28 -0
- package/dist/util/paths.d.ts +45 -0
- package/dist/util/shell.d.ts +36 -0
- package/package.json +21 -1
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brand Configuration Schema
|
|
3
|
+
*
|
|
4
|
+
* Defines the structure and validation for brand configuration
|
|
5
|
+
* Used at both build-time (repo level) and runtime (client level)
|
|
6
|
+
*/
|
|
7
|
+
import z from "zod";
|
|
8
|
+
import type { Theme } from "../tui/theme";
|
|
9
|
+
export declare const asciiLogoSchema: z.ZodObject<{
|
|
10
|
+
lines: z.ZodArray<z.ZodString, "many">;
|
|
11
|
+
color: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
lines: string[];
|
|
14
|
+
color?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
lines: string[];
|
|
17
|
+
color?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type AsciiLogo = z.infer<typeof asciiLogoSchema>;
|
|
20
|
+
export declare const themeConfigSchema: z.ZodObject<{
|
|
21
|
+
defaultTheme: z.ZodDefault<z.ZodString>;
|
|
22
|
+
primaryColor: z.ZodDefault<z.ZodString>;
|
|
23
|
+
customTheme: z.ZodOptional<z.ZodType<Theme, z.ZodTypeDef, Theme>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
defaultTheme: string;
|
|
26
|
+
primaryColor: string;
|
|
27
|
+
customTheme?: Theme | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
defaultTheme?: string | undefined;
|
|
30
|
+
primaryColor?: string | undefined;
|
|
31
|
+
customTheme?: Theme | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type ThemeConfig = z.infer<typeof themeConfigSchema>;
|
|
34
|
+
export declare const brandConfigSchema: z.ZodObject<{
|
|
35
|
+
productName: z.ZodDefault<z.ZodString>;
|
|
36
|
+
commandName: z.ZodDefault<z.ZodString>;
|
|
37
|
+
configDir: z.ZodDefault<z.ZodString>;
|
|
38
|
+
configFile: z.ZodDefault<z.ZodString>;
|
|
39
|
+
rulesFile: z.ZodDefault<z.ZodString>;
|
|
40
|
+
envPrefix: z.ZodDefault<z.ZodString>;
|
|
41
|
+
logo: z.ZodObject<{
|
|
42
|
+
simple: z.ZodObject<{
|
|
43
|
+
lines: z.ZodArray<z.ZodString, "many">;
|
|
44
|
+
color: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
lines: string[];
|
|
47
|
+
color?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
lines: string[];
|
|
50
|
+
color?: string | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
extended: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
lines: z.ZodArray<z.ZodString, "many">;
|
|
54
|
+
color: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
lines: string[];
|
|
57
|
+
color?: string | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
lines: string[];
|
|
60
|
+
color?: string | undefined;
|
|
61
|
+
}>>;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
simple: {
|
|
64
|
+
lines: string[];
|
|
65
|
+
color?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
extended?: {
|
|
68
|
+
lines: string[];
|
|
69
|
+
color?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
simple: {
|
|
73
|
+
lines: string[];
|
|
74
|
+
color?: string | undefined;
|
|
75
|
+
};
|
|
76
|
+
extended?: {
|
|
77
|
+
lines: string[];
|
|
78
|
+
color?: string | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}>;
|
|
81
|
+
theme: z.ZodObject<{
|
|
82
|
+
defaultTheme: z.ZodDefault<z.ZodString>;
|
|
83
|
+
primaryColor: z.ZodDefault<z.ZodString>;
|
|
84
|
+
customTheme: z.ZodOptional<z.ZodType<Theme, z.ZodTypeDef, Theme>>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
defaultTheme: string;
|
|
87
|
+
primaryColor: string;
|
|
88
|
+
customTheme?: Theme | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
defaultTheme?: string | undefined;
|
|
91
|
+
primaryColor?: string | undefined;
|
|
92
|
+
customTheme?: Theme | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
productName: string;
|
|
96
|
+
commandName: string;
|
|
97
|
+
configDir: string;
|
|
98
|
+
configFile: string;
|
|
99
|
+
rulesFile: string;
|
|
100
|
+
envPrefix: string;
|
|
101
|
+
logo: {
|
|
102
|
+
simple: {
|
|
103
|
+
lines: string[];
|
|
104
|
+
color?: string | undefined;
|
|
105
|
+
};
|
|
106
|
+
extended?: {
|
|
107
|
+
lines: string[];
|
|
108
|
+
color?: string | undefined;
|
|
109
|
+
} | undefined;
|
|
110
|
+
};
|
|
111
|
+
theme: {
|
|
112
|
+
defaultTheme: string;
|
|
113
|
+
primaryColor: string;
|
|
114
|
+
customTheme?: Theme | undefined;
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
logo: {
|
|
118
|
+
simple: {
|
|
119
|
+
lines: string[];
|
|
120
|
+
color?: string | undefined;
|
|
121
|
+
};
|
|
122
|
+
extended?: {
|
|
123
|
+
lines: string[];
|
|
124
|
+
color?: string | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
};
|
|
127
|
+
theme: {
|
|
128
|
+
defaultTheme?: string | undefined;
|
|
129
|
+
primaryColor?: string | undefined;
|
|
130
|
+
customTheme?: Theme | undefined;
|
|
131
|
+
};
|
|
132
|
+
productName?: string | undefined;
|
|
133
|
+
commandName?: string | undefined;
|
|
134
|
+
configDir?: string | undefined;
|
|
135
|
+
configFile?: string | undefined;
|
|
136
|
+
rulesFile?: string | undefined;
|
|
137
|
+
envPrefix?: string | undefined;
|
|
138
|
+
}>;
|
|
139
|
+
export type BrandConfig = z.infer<typeof brandConfigSchema>;
|
|
140
|
+
export declare const brandConfigOverrideSchema: z.ZodObject<{
|
|
141
|
+
productName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
142
|
+
commandName: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
143
|
+
configDir: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
144
|
+
configFile: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
145
|
+
rulesFile: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
146
|
+
envPrefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
147
|
+
logo: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
simple: z.ZodObject<{
|
|
149
|
+
lines: z.ZodArray<z.ZodString, "many">;
|
|
150
|
+
color: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
lines: string[];
|
|
153
|
+
color?: string | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
lines: string[];
|
|
156
|
+
color?: string | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
extended: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
lines: z.ZodArray<z.ZodString, "many">;
|
|
160
|
+
color: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
lines: string[];
|
|
163
|
+
color?: string | undefined;
|
|
164
|
+
}, {
|
|
165
|
+
lines: string[];
|
|
166
|
+
color?: string | undefined;
|
|
167
|
+
}>>;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
simple: {
|
|
170
|
+
lines: string[];
|
|
171
|
+
color?: string | undefined;
|
|
172
|
+
};
|
|
173
|
+
extended?: {
|
|
174
|
+
lines: string[];
|
|
175
|
+
color?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
simple: {
|
|
179
|
+
lines: string[];
|
|
180
|
+
color?: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
extended?: {
|
|
183
|
+
lines: string[];
|
|
184
|
+
color?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
}>>;
|
|
187
|
+
theme: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
defaultTheme: z.ZodDefault<z.ZodString>;
|
|
189
|
+
primaryColor: z.ZodDefault<z.ZodString>;
|
|
190
|
+
customTheme: z.ZodOptional<z.ZodType<Theme, z.ZodTypeDef, Theme>>;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
defaultTheme: string;
|
|
193
|
+
primaryColor: string;
|
|
194
|
+
customTheme?: Theme | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
defaultTheme?: string | undefined;
|
|
197
|
+
primaryColor?: string | undefined;
|
|
198
|
+
customTheme?: Theme | undefined;
|
|
199
|
+
}>>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
productName?: string | undefined;
|
|
202
|
+
commandName?: string | undefined;
|
|
203
|
+
configDir?: string | undefined;
|
|
204
|
+
configFile?: string | undefined;
|
|
205
|
+
rulesFile?: string | undefined;
|
|
206
|
+
envPrefix?: string | undefined;
|
|
207
|
+
logo?: {
|
|
208
|
+
simple: {
|
|
209
|
+
lines: string[];
|
|
210
|
+
color?: string | undefined;
|
|
211
|
+
};
|
|
212
|
+
extended?: {
|
|
213
|
+
lines: string[];
|
|
214
|
+
color?: string | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
theme?: {
|
|
218
|
+
defaultTheme: string;
|
|
219
|
+
primaryColor: string;
|
|
220
|
+
customTheme?: Theme | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
productName?: string | undefined;
|
|
224
|
+
commandName?: string | undefined;
|
|
225
|
+
configDir?: string | undefined;
|
|
226
|
+
configFile?: string | undefined;
|
|
227
|
+
rulesFile?: string | undefined;
|
|
228
|
+
envPrefix?: string | undefined;
|
|
229
|
+
logo?: {
|
|
230
|
+
simple: {
|
|
231
|
+
lines: string[];
|
|
232
|
+
color?: string | undefined;
|
|
233
|
+
};
|
|
234
|
+
extended?: {
|
|
235
|
+
lines: string[];
|
|
236
|
+
color?: string | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
theme?: {
|
|
240
|
+
defaultTheme?: string | undefined;
|
|
241
|
+
primaryColor?: string | undefined;
|
|
242
|
+
customTheme?: Theme | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
}>;
|
|
245
|
+
export type BrandConfigOverride = z.infer<typeof brandConfigOverrideSchema>;
|
|
246
|
+
export declare const DEFAULT_BRAND_CONFIG: BrandConfig;
|
package/dist/cli/auth.d.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
export declare function authLogin(
|
|
1
|
+
export declare function authLogin(options?: {
|
|
2
|
+
file?: string;
|
|
3
|
+
provider?: string;
|
|
4
|
+
}): Promise<void>;
|
|
2
5
|
export declare function authList(): Promise<void>;
|
|
3
6
|
export declare function authLogout(): Promise<void>;
|
|
4
7
|
/**
|
|
5
|
-
* Check if any provider has credentials configured
|
|
8
|
+
* Check if any LLM provider has credentials configured
|
|
9
|
+
* Note: This checks for actual LLM providers (like vertex-ai), not utility keys (like perplexity for websearch)
|
|
6
10
|
*/
|
|
7
11
|
export declare function hasAnyCredentials(): Promise<boolean>;
|
|
12
|
+
/**
|
|
13
|
+
* Check if Perplexity API key is configured
|
|
14
|
+
*/
|
|
15
|
+
export declare function hasPerplexityKey(): Promise<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* Set up Perplexity API key
|
|
18
|
+
*/
|
|
19
|
+
export declare function setupPerplexityKey(): Promise<void>;
|
|
8
20
|
/**
|
|
9
21
|
* Run onboarding flow if no credentials configured
|
|
10
22
|
*/
|