@cortexkit/aft-opencode 0.53.0 → 0.55.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/bash-wait-detach.d.ts +11 -0
- package/dist/bash-wait-detach.d.ts.map +1 -1
- package/dist/bg-notifications.d.ts +1 -0
- package/dist/bg-notifications.d.ts.map +1 -1
- package/dist/config.d.ts +182 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/cache.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/constants.d.ts +15 -3
- package/dist/hooks/auto-update-checker/constants.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9085 -8452
- package/dist/lsp-auto-install.d.ts.map +1 -1
- package/dist/lsp-cache.d.ts +9 -6
- package/dist/lsp-cache.d.ts.map +1 -1
- package/dist/subc-tool-schemas.d.ts +1 -1
- package/dist/subc-tool-schemas.d.ts.map +1 -1
- package/dist/tools/bash.d.ts +1 -18
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/hoisted.d.ts.map +1 -1
- package/dist/tools/inspect.d.ts +1 -1
- package/dist/tools/inspect.d.ts.map +1 -1
- package/dist/tools/semantic.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { AftTransportPool } from "@cortexkit/aft-bridge";
|
|
2
|
+
import type { AftConfig } from "./config.js";
|
|
2
3
|
type ActiveBridgePool = Pick<AftTransportPool, "getActiveBridgeForRoot" | "activeBridges">;
|
|
4
|
+
export declare const BASH_WAIT_DETACH_MAGIC_KEYWORD = "&detach";
|
|
5
|
+
/** Return the user-entered text parts from OpenCode's chat.message output. */
|
|
6
|
+
export declare function extractUserMessageText(output: unknown): string;
|
|
7
|
+
/** Strip control tokens from mutable OpenCode text parts before model delivery. */
|
|
8
|
+
export declare function stripUserMessageDetachKeyword(output: unknown): string;
|
|
9
|
+
/**
|
|
10
|
+
* Decide whether a user message should signal an active wait:true bash call.
|
|
11
|
+
* The keyword is checked before the host hook strips it from mutable text parts.
|
|
12
|
+
*/
|
|
13
|
+
export declare function shouldDetachBashWaitOnUserMessage(config: AftConfig, messageText: string): boolean;
|
|
3
14
|
export declare function signalBashWaitDetachForProject(pool: ActiveBridgePool, projectRoot: string, sessionID: string | undefined): Promise<void>;
|
|
4
15
|
export {};
|
|
5
16
|
//# sourceMappingURL=bash-wait-detach.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bash-wait-detach.d.ts","sourceRoot":"","sources":["../src/bash-wait-detach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"bash-wait-detach.d.ts","sourceRoot":"","sources":["../src/bash-wait-detach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAK7C,KAAK,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,wBAAwB,GAAG,eAAe,CAAC,CAAC;AAE3F,eAAO,MAAM,8BAA8B,YAAY,CAAC;AAgCxD,8EAA8E;AAC9E,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAI9D;AAED,mFAAmF;AACnF,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAkBrE;AAED;;;GAGG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAIjG;AAoBD,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,OAAO,CAAC,IAAI,CAAC,CAoCf"}
|
|
@@ -191,6 +191,7 @@ export declare function formatSystemReminder(completions: readonly BgCompletion[
|
|
|
191
191
|
export declare function formatLongRunningReminder(reminders: readonly BgLongRunningReminder[]): string;
|
|
192
192
|
export declare function formatPatternMatchReminder(matches: readonly PatternMatchEntry[]): string;
|
|
193
193
|
export declare function extractSessionID(value: unknown): string | undefined;
|
|
194
|
+
export declare function __setBgNotificationHopTimeoutForTests(timeoutMs: number): void;
|
|
194
195
|
export declare function __resetBgNotificationStateForTests(): void;
|
|
195
196
|
export {};
|
|
196
197
|
//# sourceMappingURL=bg-notifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bg-notifications.d.ts","sourceRoot":"","sources":["../src/bg-notifications.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAEhB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAWhD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAG3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAA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,CACrC,YAAY,EAAE,YAAY,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAC/C,OAAO,CAAC,IAAI,CAAC,CAoBf;AA8UD,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,SAAS,YAAY,EAAE,GAAG,MAAM,CASjF;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,qBAAqB,EAAE,GAAG,MAAM,CAQ7F;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,GAAG,MAAM,CAWxF;AAcD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAcnE;AAED,wBAAgB,qCAAqC,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAE7E;AAED,wBAAgB,kCAAkC,IAAI,IAAI,CAQzD"}
|
package/dist/config.d.ts
CHANGED
|
@@ -109,9 +109,11 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
109
109
|
background: z.ZodOptional<z.ZodBoolean>;
|
|
110
110
|
host_fallback: z.ZodOptional<z.ZodBoolean>;
|
|
111
111
|
subagent_background: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
detach_on_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
112
113
|
long_running_reminder_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
113
114
|
long_running_reminder_interval_ms: z.ZodOptional<z.ZodNumber>;
|
|
114
115
|
foreground_wait_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
powershell_tool: z.ZodOptional<z.ZodBoolean>;
|
|
115
117
|
}, z.core.$strip>]>>;
|
|
116
118
|
experimental: z.ZodOptional<z.ZodObject<{
|
|
117
119
|
bash: z.ZodOptional<z.ZodObject<{
|
|
@@ -150,6 +152,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
150
152
|
fastembed: "fastembed";
|
|
151
153
|
openai_compatible: "openai_compatible";
|
|
152
154
|
ollama: "ollama";
|
|
155
|
+
synapse: "synapse";
|
|
153
156
|
}>>;
|
|
154
157
|
model: z.ZodOptional<z.ZodString>;
|
|
155
158
|
base_url: z.ZodOptional<z.ZodString>;
|
|
@@ -172,9 +175,184 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
172
175
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
173
176
|
binary_path: z.ZodOptional<z.ZodString>;
|
|
174
177
|
}, z.core.$strip>>;
|
|
178
|
+
gh_read: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
+
}, z.core.$strip>>;
|
|
175
181
|
git: z.ZodOptional<z.ZodObject<{
|
|
176
182
|
co_author: z.ZodOptional<z.ZodString>;
|
|
177
183
|
}, z.core.$strip>>;
|
|
184
|
+
harnesses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
185
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
186
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
edit_mode: z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
default: "default";
|
|
189
|
+
hashline: "hashline";
|
|
190
|
+
}>>;
|
|
191
|
+
format_on_edit: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
+
formatter_timeout_secs: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
validate_on_edit: z.ZodOptional<z.ZodEnum<{
|
|
194
|
+
syntax: "syntax";
|
|
195
|
+
full: "full";
|
|
196
|
+
}>>;
|
|
197
|
+
formatter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
198
|
+
biome: "biome";
|
|
199
|
+
oxfmt: "oxfmt";
|
|
200
|
+
prettier: "prettier";
|
|
201
|
+
deno: "deno";
|
|
202
|
+
ruff: "ruff";
|
|
203
|
+
black: "black";
|
|
204
|
+
rustfmt: "rustfmt";
|
|
205
|
+
goimports: "goimports";
|
|
206
|
+
gofmt: "gofmt";
|
|
207
|
+
none: "none";
|
|
208
|
+
}>>>;
|
|
209
|
+
checker: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
210
|
+
biome: "biome";
|
|
211
|
+
ruff: "ruff";
|
|
212
|
+
none: "none";
|
|
213
|
+
tsc: "tsc";
|
|
214
|
+
tsgo: "tsgo";
|
|
215
|
+
pyright: "pyright";
|
|
216
|
+
cargo: "cargo";
|
|
217
|
+
go: "go";
|
|
218
|
+
staticcheck: "staticcheck";
|
|
219
|
+
}>>>;
|
|
220
|
+
configure_warnings_delivery: z.ZodOptional<z.ZodEnum<{
|
|
221
|
+
toast: "toast";
|
|
222
|
+
log: "log";
|
|
223
|
+
chat: "chat";
|
|
224
|
+
}>>;
|
|
225
|
+
hoist_builtin_tools: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
tool_surface: z.ZodOptional<z.ZodEnum<{
|
|
227
|
+
minimal: "minimal";
|
|
228
|
+
recommended: "recommended";
|
|
229
|
+
all: "all";
|
|
230
|
+
}>>;
|
|
231
|
+
disabled_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
|
+
restrict_to_project_root: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
+
search_index: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
index: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
roots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
236
|
+
path: z.ZodString;
|
|
237
|
+
indexes: z.ZodArray<z.ZodEnum<{
|
|
238
|
+
search: "search";
|
|
239
|
+
semantic: "semantic";
|
|
240
|
+
callgraph: "callgraph";
|
|
241
|
+
}>>;
|
|
242
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
243
|
+
path: string;
|
|
244
|
+
indexes: ("search" | "semantic" | "callgraph")[];
|
|
245
|
+
}, {
|
|
246
|
+
path: string;
|
|
247
|
+
indexes: ("search" | "semantic" | "callgraph")[];
|
|
248
|
+
}>>>>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
semantic_search: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
callgraph_store: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
callgraph_chunk_size: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
inspect: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
+
diagnostics_timeout_ms: z.ZodPipe<z.ZodOptional<z.ZodNumber>, z.ZodTransform<number | undefined, number | undefined>>;
|
|
256
|
+
tier2_idle_minutes: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
categories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
258
|
+
tier2_soft_deadline_ms: z.ZodOptional<z.ZodNumber>;
|
|
259
|
+
max_drill_down_items: z.ZodOptional<z.ZodNumber>;
|
|
260
|
+
duplicates: z.ZodOptional<z.ZodObject<{
|
|
261
|
+
expected_mirrors: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
}, z.core.$strip>>;
|
|
264
|
+
backup: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
266
|
+
max_depth: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
max_file_size: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
worktree: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
ram_overlay: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
272
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
273
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
+
write_allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
275
|
+
read_deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
276
|
+
}, z.core.$strip>>;
|
|
277
|
+
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
278
|
+
rewrite: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
compress: z.ZodOptional<z.ZodBoolean>;
|
|
280
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
host_fallback: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
subagent_background: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
detach_on_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
+
long_running_reminder_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
285
|
+
long_running_reminder_interval_ms: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
foreground_wait_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
powershell_tool: z.ZodOptional<z.ZodBoolean>;
|
|
288
|
+
}, z.core.$strip>]>>;
|
|
289
|
+
experimental: z.ZodOptional<z.ZodObject<{
|
|
290
|
+
bash: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
rewrite: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
compress: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
background: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
long_running_reminder_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
+
long_running_reminder_interval_ms: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
lsp_ty: z.ZodOptional<z.ZodBoolean>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
lsp: z.ZodOptional<z.ZodObject<{
|
|
300
|
+
servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
301
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
302
|
+
binary: z.ZodOptional<z.ZodString>;
|
|
303
|
+
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
304
|
+
root_markers: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
305
|
+
disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
306
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
307
|
+
initialization_options: z.ZodOptional<z.ZodUnknown>;
|
|
308
|
+
}, z.core.$strip>>>;
|
|
309
|
+
disabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
310
|
+
python: z.ZodOptional<z.ZodEnum<{
|
|
311
|
+
pyright: "pyright";
|
|
312
|
+
ty: "ty";
|
|
313
|
+
auto: "auto";
|
|
314
|
+
}>>;
|
|
315
|
+
diagnostics_on_edit: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
+
auto_install: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
grace_days: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
versions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
319
|
+
}, z.core.$strip>>;
|
|
320
|
+
url_fetch_allow_private: z.ZodOptional<z.ZodBoolean>;
|
|
321
|
+
semantic: z.ZodOptional<z.ZodObject<{
|
|
322
|
+
backend: z.ZodOptional<z.ZodEnum<{
|
|
323
|
+
fastembed: "fastembed";
|
|
324
|
+
openai_compatible: "openai_compatible";
|
|
325
|
+
ollama: "ollama";
|
|
326
|
+
synapse: "synapse";
|
|
327
|
+
}>>;
|
|
328
|
+
model: z.ZodOptional<z.ZodString>;
|
|
329
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
330
|
+
api_key_env: z.ZodOptional<z.ZodString>;
|
|
331
|
+
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
query_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
max_batch_size: z.ZodOptional<z.ZodNumber>;
|
|
334
|
+
max_files: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
}, z.core.$strip>>;
|
|
336
|
+
auto_update: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
+
bridge: z.ZodOptional<z.ZodObject<{
|
|
338
|
+
request_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
hang_threshold: z.ZodOptional<z.ZodNumber>;
|
|
340
|
+
}, z.core.$strip>>;
|
|
341
|
+
subc: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
connection_file: z.ZodOptional<z.ZodString>;
|
|
343
|
+
client_reaper: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
+
}, z.core.$strip>>;
|
|
345
|
+
gh_shim: z.ZodOptional<z.ZodObject<{
|
|
346
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
347
|
+
binary_path: z.ZodOptional<z.ZodString>;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
gh_read: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
351
|
+
}, z.core.$strip>>;
|
|
352
|
+
git: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
co_author: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
}, z.core.$strict>>>>;
|
|
178
356
|
}, z.core.$strict>>;
|
|
179
357
|
export type AftConfig = z.infer<typeof AftConfigSchema>;
|
|
180
358
|
/** Resolve the blocking diagnostics deadline for tools that wait on `aft_inspect`. */
|
|
@@ -244,6 +422,8 @@ export interface ResolvedBashConfig {
|
|
|
244
422
|
host_fallback: boolean;
|
|
245
423
|
/** See BashFeaturesSchema.subagent_background. Default false. */
|
|
246
424
|
subagent_background: boolean;
|
|
425
|
+
/** Detach wait:true bash calls on user messages; `&detach` overrides and is stripped before delivery. */
|
|
426
|
+
detach_on_user_message: boolean;
|
|
247
427
|
long_running_reminder_enabled?: boolean;
|
|
248
428
|
long_running_reminder_interval_ms?: number;
|
|
249
429
|
/**
|
|
@@ -251,6 +431,8 @@ export interface ResolvedBashConfig {
|
|
|
251
431
|
* Always resolved: defaults to 15000, floored at 5000.
|
|
252
432
|
*/
|
|
253
433
|
foreground_wait_window_ms: number;
|
|
434
|
+
/** Pi-only manual PowerShell registration fallback. Default false. */
|
|
435
|
+
powershell_tool: boolean;
|
|
254
436
|
}
|
|
255
437
|
/** Default foreground wait-window before auto-promotion (ms). */
|
|
256
438
|
export declare const FOREGROUND_WAIT_WINDOW_DEFAULT_MS = 15000;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,UAAU,EAQhB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,UAAU,EAQhB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmExB,oGAAoG;AACpG,eAAO,MAAM,6BAA6B;;;;EAAmC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AA2QtF,eAAO,MAAM,sCAAsC,SAAU,CAAC;AAC9D,eAAO,MAAM,kCAAkC,QAAS,CAAC;AACzD,eAAO,MAAM,kCAAkC,SAAU,CAAC;AA4L1D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAkBA;AAMD,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAoCjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/hooks/auto-update-checker/cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/hooks/auto-update-checker/cache.ts"],"names":[],"mappings":"AA2BA,UAAU,wBAAwB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB;AAoJD,wBAAgB,qBAAqB,CACnC,sBAAsB,GAAE,MAAM,GAAG,IAAyC,GACzE,wBAAwB,GAAG,IAAI,CAqBjC;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,WAAW,GAAE,MAAqB,EAClC,sBAAsB,GAAE,MAAM,GAAG,IAAyC,GACzE,MAAM,GAAG,IAAI,CA+Cf;AAmBD,wBAAsB,iBAAiB,CACrC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAA;CAAO,GACzD,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAkHhE"}
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
+
import { getOpenCodeCacheRoot, getOpenCodeConfigRoot } from "@cortexkit/aft-bridge";
|
|
1
2
|
export declare const PACKAGE_NAME = "@cortexkit/aft-opencode";
|
|
2
3
|
export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org";
|
|
3
4
|
export declare const NPM_FETCH_TIMEOUT = 10000;
|
|
5
|
+
export { getOpenCodeCacheRoot, getOpenCodeConfigRoot };
|
|
6
|
+
/**
|
|
7
|
+
* OpenCode creates this directory when it installs an npm plugin. If it is
|
|
8
|
+
* absent, the checker cannot find a cached version or a fallback install root
|
|
9
|
+
* when the runtime package path is unavailable, so it skips the update.
|
|
10
|
+
*
|
|
11
|
+
* These are functions, not module-level constants: they read XDG_* environment
|
|
12
|
+
* variables, and several test files mutate those process-wide. A path captured
|
|
13
|
+
* at import time would depend on module-import order relative to those
|
|
14
|
+
* mutations, so every caller resolves at call time instead.
|
|
15
|
+
*/
|
|
4
16
|
/** Root directory OpenCode uses for cached npm plugin wrapper installs. */
|
|
5
|
-
export declare
|
|
17
|
+
export declare function cacheDir(): string;
|
|
6
18
|
/** Primary OpenCode configuration file path (standard JSON). */
|
|
7
|
-
export declare
|
|
19
|
+
export declare function userOpenCodeConfig(): string;
|
|
8
20
|
/** Alternative OpenCode configuration file path (JSON with Comments). */
|
|
9
|
-
export declare
|
|
21
|
+
export declare function userOpenCodeConfigJsonc(): string;
|
|
10
22
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/hooks/auto-update-checker/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/hooks/auto-update-checker/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,eAAO,MAAM,YAAY,4BAA4B,CAAC;AACtD,eAAO,MAAM,gBAAgB,+BAA+B,CAAC;AAC7D,eAAO,MAAM,iBAAiB,QAAS,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,CAAC;AAEvD;;;;;;;;;GASG;AAEH,2EAA2E;AAC3E,wBAAgB,QAAQ,IAAI,MAAM,CAEjC;AAED,gEAAgE;AAChE,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C;AAED,yEAAyE;AACzE,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AA6MlD;;;;;;;;;;;;;;;;GAgBG;AAQH,QAAA,MAAM,MAAM,EAAE,MAA6D,CAAC;AA2kC5E,eAAe,MAAM,CAAC"}
|