@wenathlan/devthink 1.1.16 → 2.0.2

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.
Files changed (160) hide show
  1. package/CHANGELOG.md +1288 -0
  2. package/README.md +6 -0
  3. package/bridge.d.ts +698 -0
  4. package/bridge.d.ts.map +1 -0
  5. package/bridge.js +1877 -0
  6. package/bun.d.ts +8 -0
  7. package/bun.d.ts.map +1 -0
  8. package/bun.js +52329 -0
  9. package/caps/background.json +712 -0
  10. package/caps/cli.json +360 -0
  11. package/caps/library.json +3611 -0
  12. package/caps/mcp.json +126 -0
  13. package/caps/pagebridge.json +377 -0
  14. package/caps/popup.json +51 -0
  15. package/caps/sidepanel.json +522 -0
  16. package/checksums.txt +142 -0
  17. package/cli.d.ts +187 -0
  18. package/cli.d.ts.map +1 -0
  19. package/cli.js +18197 -0
  20. package/companion.d.ts +19 -0
  21. package/companion.d.ts.map +1 -0
  22. package/companion.js +389 -0
  23. package/crossbrowser.d.ts +277 -0
  24. package/crossbrowser.d.ts.map +1 -0
  25. package/crossbrowser.js +1191 -0
  26. package/dashdone.d.ts +273 -0
  27. package/dashdone.d.ts.map +1 -0
  28. package/dashdone.js +368 -0
  29. package/deno.d.ts +11 -0
  30. package/deno.d.ts.map +1 -0
  31. package/deno.js +52325 -0
  32. package/devthink.umd.js +52346 -0
  33. package/fixtures/bun.ts +7 -0
  34. package/fixtures/cjs.js +6 -0
  35. package/fixtures/deno.ts +6 -0
  36. package/fixtures/example-org-pagestate.json +22 -0
  37. package/fixtures/importers/automa-workflow.json +18 -0
  38. package/fixtures/importers/selenium-side.json +20 -0
  39. package/fixtures/importers/tabular-plan.csv +7 -0
  40. package/fixtures/importers/uivision-macro.json +10 -0
  41. package/fixtures/importers/v1-plan.json +13 -0
  42. package/fixtures/mcp-client.mjs +14 -0
  43. package/fixtures/pages/checkout.html +192 -0
  44. package/fixtures/pages/dashboard.html +110 -0
  45. package/fixtures/pages/feed.html +113 -0
  46. package/fixtures/pages/product-grid.html +150 -0
  47. package/fixtures/plans/form-inventory-plan.json +11 -0
  48. package/fixtures/plans/release-notes-plan.json +11 -0
  49. package/fixtures/recipes/agentscompete.json +11 -0
  50. package/fixtures/recipes/agentsforms.json +11 -0
  51. package/fixtures/recipes/agentsmonitor.json +11 -0
  52. package/fixtures/recipes/agentsreview.json +29 -0
  53. package/fixtures/recipes/agentswarm.json +11 -0
  54. package/fixtures/recipes/fillcalendar.json +12 -0
  55. package/fixtures/recipes/fillcheckout.json +13 -0
  56. package/fixtures/recipes/filldependentdropdowns.json +12 -0
  57. package/fixtures/recipes/fillfromcsv.json +13 -0
  58. package/fixtures/recipes/fillloginform.json +12 -0
  59. package/fixtures/recipes/fillmultistepwizard.json +13 -0
  60. package/fixtures/recipes/fillregistration.json +12 -0
  61. package/fixtures/recipes/fillsearchfilters.json +12 -0
  62. package/fixtures/recipes/filltypeahead.json +11 -0
  63. package/fixtures/recipes/monitoralerts.json +12 -0
  64. package/fixtures/recipes/monitoravailability.json +11 -0
  65. package/fixtures/recipes/monitornetworkquiet.json +12 -0
  66. package/fixtures/recipes/monitorpagechanges.json +11 -0
  67. package/fixtures/recipes/monitorpricechange.json +11 -0
  68. package/fixtures/recipes/monitorschedule.json +12 -0
  69. package/fixtures/recipes/scrapedynamicprices.json +13 -0
  70. package/fixtures/recipes/scrapeimagegallery.json +12 -0
  71. package/fixtures/recipes/scrapeinfinitefeed.json +13 -0
  72. package/fixtures/recipes/scrapenestedlists.json +12 -0
  73. package/fixtures/recipes/scrapeproductgrid.json +12 -0
  74. package/fixtures/recipes/scrapereviews.json +12 -0
  75. package/fixtures/recipes/scrapesearchresults.json +12 -0
  76. package/fixtures/recipes/scrapetablepagination.json +12 -0
  77. package/fixtures/recipes/testaccessibility.json +34 -0
  78. package/fixtures/recipes/testconsoleerrors.json +12 -0
  79. package/fixtures/recipes/testdeeplinks.json +12 -0
  80. package/fixtures/recipes/testformvalidation.json +13 -0
  81. package/fixtures/recipes/testlayoutshift.json +12 -0
  82. package/fixtures/recipes/testlinkcheck.json +12 -0
  83. package/fixtures/recipes/testloadtiming.json +12 -0
  84. package/fixtures/recipes/testvisualdiff.json +12 -0
  85. package/fixtures/workflows/changelog-digest-workflow.json +13 -0
  86. package/fixtures/workflows/form-survey-workflow.json +13 -0
  87. package/gallery.json +706 -0
  88. package/hardening.d.ts +81 -0
  89. package/hardening.d.ts.map +1 -0
  90. package/hardening.js +188 -0
  91. package/headless.d.ts +114 -0
  92. package/headless.d.ts.map +1 -0
  93. package/headless.js +11522 -0
  94. package/http.d.ts +636 -0
  95. package/http.d.ts.map +1 -0
  96. package/http.js +2165 -0
  97. package/index.cjs +54682 -0
  98. package/index.d.ts +40 -0
  99. package/index.d.ts.map +1 -0
  100. package/index.js +52310 -0
  101. package/index.neutral.js +46343 -0
  102. package/manifest.json +199 -0
  103. package/mcp.d.ts +501 -0
  104. package/mcp.d.ts.map +1 -0
  105. package/mcp.js +20515 -0
  106. package/memory.d.ts +2397 -0
  107. package/memory.d.ts.map +1 -0
  108. package/memory.js +5782 -0
  109. package/nativehost.template.json +10 -0
  110. package/node.cjs +54686 -0
  111. package/node.d.ts +8 -0
  112. package/node.d.ts.map +1 -0
  113. package/pack.d.ts +211 -0
  114. package/pack.d.ts.map +1 -0
  115. package/pack.js +805 -0
  116. package/package.json +101 -51
  117. package/policy.d.ts +1854 -0
  118. package/policy.d.ts.map +1 -0
  119. package/policy.js +12580 -0
  120. package/progress.d.ts +390 -0
  121. package/progress.d.ts.map +1 -0
  122. package/progress.js +645 -0
  123. package/protocol.d.ts +2336 -0
  124. package/protocol.d.ts.map +1 -0
  125. package/protocol.js +8334 -0
  126. package/schemas/audit.schema.json +226 -0
  127. package/schemas/capability.schema.json +113 -0
  128. package/schemas/envelope.schema.json +162 -0
  129. package/schemas/memory.schema.json +51 -0
  130. package/schemas/observation.schema.json +113 -0
  131. package/schemas/plan.schema.json +208 -0
  132. package/schemas/progress.schema.json +126 -0
  133. package/schemas/proposal.schema.json +68 -0
  134. package/schemas/session.schema.json +82 -0
  135. package/schemas/tool.schema.json +94 -0
  136. package/server.d.ts +435 -0
  137. package/server.d.ts.map +1 -0
  138. package/server.js +28872 -0
  139. package/umd-example.html +18 -0
  140. package/umd.d.ts +6 -0
  141. package/umd.d.ts.map +1 -0
  142. package/build.ts +0 -41
  143. package/check-secrets.ts +0 -52
  144. package/compatibility.ts +0 -37
  145. package/config.ts +0 -246
  146. package/devthink.ts +0 -397
  147. package/identity.ts +0 -156
  148. package/ids.ts +0 -22
  149. package/memory.ts +0 -95
  150. package/modes.ts +0 -43
  151. package/plugin.ts +0 -68
  152. package/providers.ts +0 -179
  153. package/server.ts +0 -264
  154. package/session.ts +0 -155
  155. package/storage.ts +0 -82
  156. package/stream.ts +0 -130
  157. package/sync.ts +0 -27
  158. package/terminal-ui.tsx +0 -155
  159. package/ui.ts +0 -143
  160. package/workspace.ts +0 -20
package/server.d.ts ADDED
@@ -0,0 +1,435 @@
1
+ /**
2
+ * The server module of the merged repository: the workbench loopback server beside the embedded
3
+ * gateway server of the merged lineages — the http transport and the sse/ndjson stream pipeline,
4
+ * the request auth and the key resolution, the gateway console cli and the library barrel the
5
+ * server surface re-exports — interned in this one file, one surface without duplicate variations.
6
+ */
7
+ import { type DevThinkConfig, type DevThinkPaths } from "./config.js";
8
+ export type ServerOptions = {
9
+ port?: number | undefined;
10
+ config: DevThinkConfig;
11
+ paths?: DevThinkPaths;
12
+ };
13
+ export type ServerHandle = {
14
+ address: string;
15
+ port: number;
16
+ stop: () => Promise<void>;
17
+ };
18
+ export declare function startServer(options: ServerOptions): Promise<ServerHandle>;
19
+ /** ka ms — keepalive interval milliseconds 200ms */
20
+ export declare const kams = 200;
21
+ /** ka suppress ms — suppress keepalive when data written recently */
22
+ export declare const kasuppressms = 1000;
23
+ /** sse headers — headers for sse streaming with x accel buffering no */
24
+ export declare function sseheaders(): Record<string, string>;
25
+ /** ndjson headers */
26
+ export declare function ndjsonheaders(): Record<string, string>;
27
+ /** writeevent — write a single sse event to a controller */
28
+ export declare function writeevent(controller: ReadableStreamDefaultController, event: string | null, data: unknown, format?: "sse" | "ndjson" | "json" | "plain" | "octet"): void;
29
+ /** writekeepalive — write a keepalive comment invisible to sse and ndjson parsers */
30
+ export declare function writekeepalive(controller: ReadableStreamDefaultController): void;
31
+ /** writedone — write the terminal done marker */
32
+ export declare function writedone(controller: ReadableStreamDefaultController, format?: "sse" | "ndjson" | "json" | "plain" | "octet"): void;
33
+ /** safeenqueue — enqueue to controller catching errors */
34
+ export declare function safeenqueue(controller: ReadableStreamDefaultController, chunk: string): boolean;
35
+ /** safeclose — close a controller catching errors */
36
+ export declare function safeclose(controller: ReadableStreamDefaultController): void;
37
+ /** maskmodel — pure byte regex mask model name to the target id */
38
+ export declare function maskmodel(chunk: string, target?: string): string;
39
+ /** discardheartbeat — check if a line is an sse heartbeat comment
40
+ * the empty-data comparison runs on the trimmed line: "data: " and
41
+ * "data:" both trim to "data:" so the untrimmed spelling never matched */
42
+ export declare function discardheartbeat(line: string): boolean;
43
+ /** parsesseframes — split buffer on double newline returns complete frames plus residual */
44
+ export declare function parsesseframes(buffer: string): {
45
+ frames: string[];
46
+ residual: string;
47
+ };
48
+ /** extractdata — extract data lines from an sse frame */
49
+ export declare function extractdata(frame: string): string | null;
50
+ /** isdone — check if a data string is the done marker
51
+ * case-insensitive: openai emits [DONE] others emit [done] */
52
+ export declare function isdone(data: string): boolean;
53
+ /** makechunk — build a minimal openai compatible chat completion chunk */
54
+ export declare function makechunk(id: string, model: string, content: string, reasoningcontent?: string, finishreason?: string | null): Record<string, unknown>;
55
+ /** makefinalchunk — build the final chunk with finish reason and optional usage */
56
+ export declare function makefinalchunk(id: string, model: string, finishreason: string, usage?: Record<string, unknown>): Record<string, unknown>;
57
+ /** tracked stream data — collected during passthrough for persistence */
58
+ export interface trackedstream {
59
+ content: string;
60
+ reasoning: string;
61
+ totaltokens: number;
62
+ prompttokens: number;
63
+ completiontokens: number;
64
+ frames: number;
65
+ discarded: number;
66
+ }
67
+ /** options for makestreamresponse */
68
+ export interface streamoptions {
69
+ /** mask upstream model ids to this id — null disables masking */
70
+ mask?: string | null;
71
+ /** content type override — defaults from upstream response */
72
+ format?: "sse" | "ndjson" | "json" | "plain" | "octet";
73
+ /** keepalive interval ms — default 200 */
74
+ keepaliveintervalms?: number;
75
+ /** suppress keepalive when written within this ms — default 1000 */
76
+ keepalivesuppressms?: number;
77
+ /** callback with tracked data when the stream finishes */
78
+ onfinal?: (tracked: trackedstream) => void;
79
+ }
80
+ /** makestreamresponse — wrap an upstream fetch response into a gateway streaming response
81
+ * byte passthrough with sse parsing heartbeat discard masking and tracking */
82
+ export declare function makestreamresponse(upstream: Response, opts: streamoptions): Response;
83
+ /** trackwrite — update last write timestamp for keepalive suppression */
84
+ export declare function trackwrite(): number;
85
+ import { Hono } from "hono";
86
+ /** createserver — build the hono app from the loaded config */
87
+ declare function createserver(): Promise<Hono>;
88
+ /** main — bootstrap the server on the configured port
89
+ * host and port honor env — never hardcoded per open infrastructure rules */
90
+ declare function main(): Promise<void>;
91
+ /** export for library usage — users may embed the server */
92
+ export { createserver, main, main as runserver };
93
+ import type { authconfig, resolvedkey } from "./types";
94
+ /** extract token — get user supplied token from headers or body */
95
+ export declare function extracttoken(req: Request, body?: Record<string, unknown>): string;
96
+ /** extract chat id — get or generate chat id for zai api */
97
+ export declare function extractchatid(req: Request, body?: Record<string, unknown>): string;
98
+ /** extract session id — get or generate session id for context tracking */
99
+ export declare function extractsessionid(req: Request, body?: Record<string, unknown>): string;
100
+ /** extract request id — get or generate request id */
101
+ export declare function extractrequestid(req: Request): string;
102
+ /** validate token — check if token format is valid */
103
+ export declare function validatetoken(token: string): boolean;
104
+ /** mask token — mask token for logging showing only prefix and suffix */
105
+ export declare function masktoken(token: string): string;
106
+ /** resolvekeys — resolve all available keys per the auth config source order */
107
+ export declare function resolvekeys(auth: authconfig): Promise<resolvedkey[]>;
108
+ /** buildauthheaders — build upstream auth headers from the auth config and key */
109
+ export declare function buildauthheaders(auth: authconfig, key: string): Record<string, string>;
110
+ /** buildauthqueryparams — build query params for queryparam auth mode */
111
+ export declare function buildauthqueryparams(auth: authconfig, key: string): Record<string, string>;
112
+ /** appendqueryparams — append query params to a url string */
113
+ export declare function appendqueryparams(url: string, params: Record<string, string>): string;
114
+ /** get key by index — simple round robin helper for single key lookups */
115
+ export declare function getkey(auth: authconfig, index?: number): Promise<string>;
116
+ /** get key count — total resolvable keys */
117
+ export declare function getkeycount(auth: authconfig): Promise<number>;
118
+ /**
119
+ * Family entry of the grand merge: the single devthink binary routes the
120
+ * extension command family here (`devthink ext <command>`); the argv is
121
+ * spliced into the process position the original entry reading expects,
122
+ * the family main runs untouched and the caller argv is restored.
123
+ *
124
+ * @param argv the family arguments (without the family prefix).
125
+ */
126
+ export declare function runclifamily(argv: string[]): Promise<void>;
127
+ export { getversion, listversions, loadconfig, reloadconfig, validateconfig } from "./config.js";
128
+ export { db, getsession, getsessionmessages, savemsg } from "./database.js";
129
+ export { createversion, engineinternals } from "./engine.js";
130
+ export type { authconfig, authmethod, bodybuildconfig, contextconfig, dbconfig, gatewayconfig, gatewaydefinition, headersconfig, intelligencerank, keysource, metamodelconfig, modeldef, resolvedkey, retryconfig, rotationconfig, rotationmode, routesconfig, sessionstate, thinkingconfig, thinkinglevel, timeoutconfig, transportconfig, transporttype, upstreamdef, versionhandlers, } from "./types.js";
131
+ export { autofrequencypenalty, automaxtokens, auton, autopresencepenalty, autoseed, autotemp, autothinking, autotopp, clamp, corsheaders, defaultmaxtokens, detectcontenttype, esttokens, genid, getip, handlecors, jsonheaders, levenshtein, makethinker, safejsonparse, safestringify, thinkingbudget, truncatemessages, } from "./utils.js";
132
+ import * as readline from "node:readline/promises";
133
+ import * as configMod from "./config.js";
134
+ import { MODELS_2026_CATALOG } from "./models.js";
135
+ import type { ModelCatalogEntry } from "./models.js";
136
+ declare const ANSI: {
137
+ reset: string;
138
+ bold: string;
139
+ dim: string;
140
+ italic: string;
141
+ underline: string;
142
+ inverse: string;
143
+ hidden: string;
144
+ black: string;
145
+ red: string;
146
+ green: string;
147
+ yellow: string;
148
+ blue: string;
149
+ magenta: string;
150
+ cyan: string;
151
+ white: string;
152
+ gray: string;
153
+ brightRed: string;
154
+ brightGreen: string;
155
+ brightYellow: string;
156
+ brightBlue: string;
157
+ brightMagenta: string;
158
+ brightCyan: string;
159
+ brightWhite: string;
160
+ bgBlack: string;
161
+ bgRed: string;
162
+ bgGreen: string;
163
+ bgYellow: string;
164
+ bgBlue: string;
165
+ };
166
+ declare const C: {
167
+ bold: (s: string) => string;
168
+ dim: (s: string) => string;
169
+ red: (s: string) => string;
170
+ green: (s: string) => string;
171
+ yellow: (s: string) => string;
172
+ cyan: (s: string) => string;
173
+ magenta: (s: string) => string;
174
+ blue: (s: string) => string;
175
+ gray: (s: string) => string;
176
+ white: (s: string) => string;
177
+ b: (s: string) => string;
178
+ bgGreen: (s: string) => string;
179
+ bgRed: (s: string) => string;
180
+ };
181
+ /**
182
+ * Yes/no confirmation prompt (ported from cli(2).ts).
183
+ * Empty input returns {@link defaultYes}.
184
+ */
185
+ declare function confirm(rl: readline.Interface, prompt: string, defaultYes?: boolean): Promise<boolean>;
186
+ /**
187
+ * Human friendly duration formatter (ported from cli(2).ts).
188
+ * Examples: "now", "42s", "3m 12s", "5h 03m", "2d 7h".
189
+ */
190
+ declare function fmtDuration(ms: number): string;
191
+ /**
192
+ * Email redaction hook for logs/table output (ported from cli(2).ts).
193
+ * The operator-facing CLI intentionally shows the full address for UX;
194
+ * swap the implementation here to redact the local part when needed.
195
+ */
196
+ declare function redactEmail(email: string): string;
197
+ /**
198
+ * Boxed CLI banner printed by the ported flows (login/logout/configure/
199
+ * diagnostics style headers from cli(2).ts).
200
+ */
201
+ declare function printHeader(): void;
202
+ declare function resolveBaseDir(): string;
203
+ declare function resolveAccountsPath(): string;
204
+ declare function resolveConfigPath(): string;
205
+ declare function atomicWriteFileSecure(filePath: string, content: string, mode?: number): void;
206
+ /**
207
+ * Atomic write using node:fs/promises (ported from cli(2).ts):
208
+ * temp file in the same directory with random suffix, chmod 600, rename.
209
+ */
210
+ declare function atomicWriteFileAtomic(filePath: string, content: string, mode?: number): Promise<void>;
211
+ /** Where opencode.json was found (or where it would be created). */
212
+ interface OpenCodeJsonLocation {
213
+ path: string;
214
+ exists: boolean;
215
+ source: "cwd" | "global" | "env" | "custom";
216
+ }
217
+ /** Deterministic candidate list for opencode.json discovery (env wins first). */
218
+ declare function resolveOpenCodeJsonCandidates(): string[];
219
+ /**
220
+ * Locate opencode.json honoring --path overrides and --global preference
221
+ * (ported from cli(2).ts).
222
+ */
223
+ declare function locateOpenCodeJson(customPath?: string, preferGlobal?: boolean): Promise<OpenCodeJsonLocation>;
224
+ /**
225
+ * Path of the plugin config file antigravity.json (ported from cli(2).ts).
226
+ * Honors an explicit custom path, otherwise delegates to config.getConfigPath.
227
+ */
228
+ declare function resolveAntigravityJsonPath(custom?: string): string;
229
+ declare function getAccountManager(): any;
230
+ declare function fetchQuotaForAccount(email: string | undefined, mgr: any, qManager: any): Promise<any>;
231
+ declare function cmdLogin(args: string[], loginRl?: readline.Interface): Promise<void>;
232
+ declare function cmdAccounts(args: string[]): Promise<void>;
233
+ declare function cmdQuota(args: string[]): Promise<void>;
234
+ declare function cmdConfig(args: string[]): Promise<void>;
235
+ declare function cmdModels(args: string[]): Promise<void>;
236
+ declare function cmdStatus(_args: string[]): Promise<void>;
237
+ declare function cmdDoctor(_args: string[]): Promise<void>;
238
+ declare function cmdVersion(_args: string[]): Promise<void>;
239
+ /**
240
+ * Logout flow (ported from cli(2).ts, extended with token revocation):
241
+ * revokes the Google refresh/access token and removes the account from the
242
+ * store. Supports a single email, --all, and an interactive picker when no
243
+ * email is given. Pass {@link sharedRl} when called from the interactive menu.
244
+ */
245
+ declare function logoutFlow(emailArg?: string, all?: boolean, sharedRl?: readline.Interface): Promise<void>;
246
+ /** Top-level enable command (ported from cli(2).ts enableAccountFlow). */
247
+ declare function enableAccountFlow(email: string): Promise<void>;
248
+ /** Top-level disable command (ported from cli(2).ts disableAccountFlow). */
249
+ declare function disableAccountFlow(email: string, reason?: string): Promise<void>;
250
+ /**
251
+ * Interactive per-account enable/disable toggle
252
+ * (ported from cli(5).ts manage command, backed by auth.js accountManager).
253
+ * Pass {@link sharedRl} when invoked from the interactive menu.
254
+ */
255
+ declare function cmdManage(_args: string[], sharedRl?: readline.Interface): Promise<void>;
256
+ declare const CLI_VERSION: "6.0.0";
257
+ /**
258
+ * Rich provider model definitions with bypass documentation metadata
259
+ * (ported from cli(2).ts buildOpenCodeModelDefinitions).
260
+ * Returns the plugin list, the provider-level models map and the top-level
261
+ * model shortcut map for opencode.json.
262
+ */
263
+ declare function buildOpenCodeModelDefinitions(): {
264
+ pluginList: string[];
265
+ providerModels: Record<string, any>;
266
+ topLevelModels: Record<string, any>;
267
+ };
268
+ /**
269
+ * Configure models flow (merge of cli(2).ts configureModelsFlow with the
270
+ * cli(4)/cli(5) provider.google.models writer):
271
+ * - locates opencode.json via locateOpenCodeJson (--global / --path aware);
272
+ * - backs up an existing file with invalid JSON before overwriting;
273
+ * - detects the TARGET provider by MODEL IDS ONLY (any user-chosen provider
274
+ * name carrying antigravity-* / gemini-* models, e.g. "casas-bahia"),
275
+ * falling back to "google" when none exists yet;
276
+ * - ADD-ONLY merge: user model entries are NEVER overwritten (custom name /
277
+ * limit / options / thinking variants are preserved verbatim), catalog
278
+ * models are appended only when the id is missing;
279
+ * - user provider options/npm/name are never touched (no forced baseUrl,
280
+ * no __comment pollution); minimal block fields are set only when
281
+ * creating a brand-new provider;
282
+ * - preserves the file's existing indentation and trailing newline, and
283
+ * skips the write entirely when nothing changed;
284
+ * - writes everything with atomicWriteFileAtomic (tmp + chmod 600 + rename).
285
+ */
286
+ declare function configureModelsFlow(opts?: {
287
+ global?: boolean | undefined;
288
+ customPath?: string | undefined;
289
+ }): Promise<void>;
290
+ declare function interactiveMenu(): Promise<void>;
291
+ declare function printHelp(): void;
292
+ /**
293
+ * Family entry of the grand merge: the single devthink binary routes the
294
+ * extension command family here (`devthink ext <command>`); the argv is
295
+ * spliced into the process position the original entry reading expects,
296
+ * the family main runs untouched and the caller argv is restored.
297
+ *
298
+ * @param argv the family arguments (without the family prefix).
299
+ */
300
+ export declare function runproviderfamily(argv: string[]): Promise<void>;
301
+ declare function providerconsolemain(): Promise<void>;
302
+ export { providerconsolemain as runCLI, cmdLogin, cmdAccounts, cmdQuota, cmdConfig, cmdModels, cmdStatus, cmdDoctor, cmdVersion, cmdManage, logoutFlow, enableAccountFlow, disableAccountFlow, configureModelsFlow, interactiveMenu, printHelp, resolveBaseDir, resolveAccountsPath, resolveConfigPath, resolveAntigravityJsonPath, resolveOpenCodeJsonCandidates, locateOpenCodeJson, atomicWriteFileSecure, atomicWriteFileAtomic, getAccountManager, fetchQuotaForAccount, buildOpenCodeModelDefinitions, MODELS_2026_CATALOG, confirm, redactEmail, fmtDuration, printHeader, CLI_VERSION, ANSI, C, };
303
+ export type { ModelCatalogEntry, OpenCodeJsonLocation };
304
+ export declare const providercli: {
305
+ runCLI: typeof providerconsolemain;
306
+ interactiveMenu: typeof interactiveMenu;
307
+ };
308
+ /**
309
+ * @file server.ts — the barrel section of the provider family.
310
+ * @description The library barrel of the merged provider family —
311
+ * library-first, root-first. The provider family modules of the merged
312
+ * repository live as the flat root modules (constants, config, models,
313
+ * accounts, fingerprint, project, quota, recovery, search, core, request,
314
+ * streaming, oauth, antigravity, devthink, server) and every import path
315
+ * of the provider surface resolves through this barrel.
316
+ *
317
+ * The namespace re-exports keep the historical surface: several siblings
318
+ * (constants/config/oauth/accounts/fingerprint/search) intentionally share
319
+ * exported names such as PROJECT_FALLBACK, MODELS_2026 or OAUTH_SCOPES —
320
+ * every feature stays reachable through its module namespace below. The
321
+ * consolidation history rides the mapping: the provider oauth family lives
322
+ * in oauth.ts, request-helpers merged into request.ts, system merged into
323
+ * config.ts (with the debug utilities in debug.ts) — the OAuth,
324
+ * RequestHelpers and System namespaces below alias the consolidated modules
325
+ * so every historical import path keeps resolving.
326
+ */
327
+ export * as Constants from "./constants.js";
328
+ export * as Fingerprint from "./fingerprint.js";
329
+ export * as OAuth from "./oauth.js";
330
+ export * as Accounts from "./accounts.js";
331
+ export * as AntigravityCli from "./oauth.js";
332
+ export * as Auth from "./oauth.js";
333
+ export * as Core from "./core.js";
334
+ /** System — the v2.1.14 system utilities surface: config.ts absorbed the
335
+ * system module (cfgDir, the version fallback chain, atomic writes, the
336
+ * legacy validator aliases and the raw JSON IO helpers) while the debug
337
+ * utilities (logsDir, redactSecrets, the debugLogger singleton) live in
338
+ * debug.ts, so the namespace carries exactly the exports the system
339
+ * shim used to publish. */
340
+ import { atomicWrite, cfgDir, fetchVersionChain, loadConfigRaw, saveConfigRaw, validateModelId, validateModelIdCharset } from "./config.js";
341
+ import { debugLogger, logsDir, redactSecrets } from "./core.js";
342
+ export declare const System: {
343
+ atomicWrite: typeof atomicWrite;
344
+ cfgDir: typeof cfgDir;
345
+ fetchVersionChain: typeof fetchVersionChain;
346
+ loadConfigRaw: typeof loadConfigRaw;
347
+ saveConfigRaw: typeof saveConfigRaw;
348
+ validateEmail: typeof configMod.isValidEmail;
349
+ validateModelId: typeof validateModelId;
350
+ validateModelIdCharset: typeof validateModelIdCharset;
351
+ validateProjectId: typeof configMod.isValidProjectId;
352
+ validateSemver: typeof configMod.isValidSemver;
353
+ VERSION_FALLBACK: "1.19.2";
354
+ debugLogger: typeof debugLogger;
355
+ logsDir: typeof logsDir;
356
+ redactSecrets: typeof redactSecrets;
357
+ };
358
+ export * as Models from "./models.js";
359
+ export * as Models2026 from "./models.js";
360
+ export * as Project from "./project.js";
361
+ export * as Quota from "./quota.js";
362
+ export * as Config from "./config.js";
363
+ export * as Debug from "./core.js";
364
+ export * as Version from "./versionregistry.js";
365
+ export * as RequestHelpers from "./request.js";
366
+ export * as Request from "./request.js";
367
+ export * as Streaming from "./streaming.js";
368
+ export * as Recovery from "./recovery.js";
369
+ export * as Search from "./search.js";
370
+ export * as CLI from "./server.js";
371
+ export * as PluginModule from "./antigravity.js";
372
+ export { default as opencodePluginModule, getPlugin, plugin } from "./antigravity.js";
373
+ export declare const VERSION: string;
374
+ export declare const PLUGIN_ID: "devthink";
375
+ export { ALL_MODELS_2026, MODEL_BY_ID, MODEL_ROUTING } from "./models.js";
376
+ /**
377
+ * Gemini CLI bypass aggregate: exact identification the official Gemini CLI
378
+ * sends when talking to cloudcode-pa. Consumed by bypass flows that must not
379
+ * require a user project id. Every value is imported from its owner — the
380
+ * OAuth pair, UA, Client-Metadata string, project fallback and base URL from
381
+ * constants.js, the gl-node snapshot from fingerprint.js and the v1internal
382
+ * method paths via constants.js CODE_ASSIST_PATH_MAP.
383
+ */
384
+ export declare const GEMINI_CLI_BYPASS: {
385
+ readonly clientId: string;
386
+ readonly clientSecret: string;
387
+ readonly userAgent: "GeminiCLI/0.57.0/gemini-3-pro-preview (linux; x64; GitHub) google-api-nodejs-client/9.15.1";
388
+ readonly xGoogApiClient: "gl-node/22.19.0";
389
+ readonly clientMetadata: "ideType=IDE_UNSPECIFIED,platform=PLATFORM_UNSPECIFIED,pluginType=GEMINI";
390
+ readonly fallbackProject: "rising-fact-p41fc";
391
+ readonly endpoints: {
392
+ readonly loadCodeAssist: "https://cloudcode-pa.googleapis.com/v1internal:loadCodeAssist";
393
+ readonly generateContent: "https://cloudcode-pa.googleapis.com/v1internal:generateContent";
394
+ readonly streamGenerateContent: "https://cloudcode-pa.googleapis.com/v1internal:streamGenerateContent";
395
+ };
396
+ /** Isolated credential dir — resolved per-OS at runtime, never hardcoded. */
397
+ readonly isolatedDir: "MAENE_ISOLATED_DIR | <opencode-base>/auth";
398
+ };
399
+ /**
400
+ * Antigravity CLI bypass aggregate: identification of the official `agy`
401
+ * binary (extracted from the distributed CLI and live-validated 2026-08-26).
402
+ * The client the plugin presents for NEW logins since 2.1.8: the client pair,
403
+ * scopes, official redirect URI and version parts come from oauth.js
404
+ * (the authentication owner — CLIENT_ID/CLIENT_SECRET are env-overridable
405
+ * there, so the aggregate tracks the same override); the UA and
406
+ * X-Goog-Api-Client keep their static linux/amd64 snapshot shape, composed
407
+ * from the oauth.js version constants.
408
+ */
409
+ export declare const ANTIGRAVITY_CLI_BYPASS: {
410
+ readonly clientId: string;
411
+ readonly clientSecret: string;
412
+ readonly userAgent: `antigravity-cli/${string} (linux; amd64)`;
413
+ readonly xGoogApiClient: `antigravity-cli/${string} grpc-go/${string}`;
414
+ readonly redirectUriOfficial: string;
415
+ readonly scopes: readonly string[];
416
+ readonly usesPKCE: true;
417
+ readonly appLabel: "Google Antigravity";
418
+ };
419
+ /**
420
+ * The main provider plugin instance: chat.headers identification spoof,
421
+ * zero-config antigravity provider injection and the auth entry for the
422
+ * custom provider detected by model ids (when one exists).
423
+ */
424
+ export declare function providerServer(input?: unknown, options?: Record<string, unknown>): Promise<Record<string, any>>;
425
+ /**
426
+ * Standard auth entry for the provider id "google":
427
+ * `opencode auth login` → Google → OAuth (the provider family behind the scenes).
428
+ */
429
+ export declare const googleAuth: () => Promise<Record<string, any>>;
430
+ /**
431
+ * Standard auth entry for the provider id "antigravity":
432
+ * `opencode auth login` → Antigravity → OAuth (the provider family behind the scenes).
433
+ */
434
+ export declare const antigravityAuth: () => Promise<Record<string, any>>;
435
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,EAAyC,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAqB7G,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;IACvB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,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