@cortexkit/aft-opencode 0.60.0 → 0.61.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 +17 -5
- package/dist/bash-wait-detach.d.ts.map +1 -1
- package/dist/bridge-bootstrap.d.ts +4 -2
- package/dist/bridge-bootstrap.d.ts.map +1 -1
- package/dist/config-live-reload.d.ts +8 -10
- package/dist/config-live-reload.d.ts.map +1 -1
- package/dist/config.d.ts +24 -15
- package/dist/config.d.ts.map +1 -1
- package/dist/entry/server.js +17364 -18912
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19829 -18876
- package/dist/lsp-auto-install.d.ts.map +1 -1
- package/dist/lsp-github-install.d.ts +5 -123
- package/dist/lsp-github-install.d.ts.map +1 -1
- package/dist/permissions/v2.d.ts +9 -158
- package/dist/permissions/v2.d.ts.map +1 -1
- package/dist/subc-tool-schemas.d.ts +1 -1
- package/dist/tools/_shared.d.ts +2 -0
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/ast.d.ts.map +1 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/definitions/v2.d.ts +4 -2
- package/dist/tools/definitions/v2.d.ts.map +1 -1
- package/dist/tools/hoisted/v2.d.ts +3 -17
- package/dist/tools/hoisted/v2.d.ts.map +1 -1
- package/dist/tools/inspect.d.ts.map +1 -1
- package/dist/tools/navigation.d.ts.map +1 -1
- package/dist/tools/permissions.d.ts +2 -0
- package/dist/tools/permissions.d.ts.map +1 -1
- package/dist/tools/reading.d.ts.map +1 -1
- package/dist/tools/safety.d.ts.map +1 -1
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/v2-prompt-detach.d.ts +6 -1
- package/dist/v2-prompt-detach.d.ts.map +1 -1
- package/dist/wakes/runtime-consumer.d.ts.map +1 -1
- package/package.json +20 -12
- package/src/entry/server-runtime.mjs +6 -4
- package/dist/lsp-github-probe.d.ts +0 -81
- package/dist/lsp-github-probe.d.ts.map +0 -1
- package/dist/lsp-github-table.d.ts +0 -55
- package/dist/lsp-github-table.d.ts.map +0 -1
- package/dist/permissions/v2-service.d.ts +0 -135
- package/dist/permissions/v2-service.d.ts.map +0 -1
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import { type AftTransportPool } from "@cortexkit/aft-bridge";
|
|
1
|
+
import { type AftTransportPool, type CanonicalRootPath } from "@cortexkit/aft-bridge";
|
|
2
2
|
import type { AftConfig } from "./config.js";
|
|
3
3
|
type ActiveBridgePool = Pick<AftTransportPool, "getActiveBridgeForRoot" | "activeBridges">;
|
|
4
|
+
/** OpenCode 1 transforms the message list before each model step, after queued input is included. */
|
|
5
|
+
export declare function clearPendingBashWaitDetachForMessages(pool: ActiveBridgePool, output: {
|
|
6
|
+
messages: {
|
|
7
|
+
info: {
|
|
8
|
+
sessionID: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
}): Promise<void>;
|
|
12
|
+
/** Before the next model step, discard requests that no foreground wait has consumed. */
|
|
13
|
+
export declare function clearPendingBashWaitDetach(pool: ActiveBridgePool, sessionID: string | undefined): Promise<void>;
|
|
14
|
+
/** A real tool may open a cold bridge; deliver cached input before sending that tool. */
|
|
15
|
+
export declare function forwardPendingBashWaitDetach(pool: AftTransportPool, projectRoot: CanonicalRootPath, sessionID: string | undefined, bash: boolean): Promise<void>;
|
|
4
16
|
export { BASH_WAIT_DETACH_MAGIC_KEYWORD } from "@cortexkit/aft-bridge";
|
|
5
17
|
/** Return the user-entered text parts from OpenCode's chat.message output. */
|
|
6
18
|
export declare function extractUserMessageText(output: unknown): string;
|
|
7
19
|
/** Strip control tokens from mutable OpenCode text parts before model delivery. */
|
|
8
20
|
export declare function stripUserMessageDetachKeyword(output: unknown): string;
|
|
9
21
|
/**
|
|
10
|
-
* Decide whether a message should detach
|
|
22
|
+
* Decide whether a message should detach a foreground bash call and
|
|
11
23
|
* abort a sync bash_watch. `messageText` is the operator-typed text from
|
|
12
24
|
* `extractUserMessageText`, read before the keyword is stripped from it.
|
|
13
25
|
*/
|
|
@@ -16,10 +28,10 @@ export declare function shouldDetachBashWaitOnUserMessage(config: AftConfig, mes
|
|
|
16
28
|
* Handle OpenCode's chat.message output for the session's blocking waits:
|
|
17
29
|
* decide, strip the `&detach` token from the mutable text parts, then (only
|
|
18
30
|
* when the decision says so) abort any sync bash_watch and detach any
|
|
19
|
-
*
|
|
31
|
+
* foreground bash. Both waits follow the same decision, so
|
|
20
32
|
* `bash.detach_on_user_message: false` protects a sync bash_watch as well.
|
|
21
33
|
* Returns whether the waits were interrupted.
|
|
22
34
|
*/
|
|
23
|
-
export declare function interruptBashWaitsForChatMessage(pool: ActiveBridgePool, config: AftConfig, projectRoot: string, sessionID: string | undefined, output: unknown): boolean;
|
|
24
|
-
export declare function signalBashWaitDetachForProject(pool: ActiveBridgePool, projectRoot: string, sessionID: string | undefined): Promise<void>;
|
|
35
|
+
export declare function interruptBashWaitsForChatMessage(pool: ActiveBridgePool, config: AftConfig, projectRoot: string, sessionID: string | undefined, output: unknown, remember?: boolean): boolean;
|
|
36
|
+
export declare function signalBashWaitDetachForProject(pool: ActiveBridgePool, projectRoot: string, sessionID: string | undefined, pending?: boolean): Promise<void>;
|
|
25
37
|
//# 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,EAEL,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"bash-wait-detach.d.ts","sourceRoot":"","sources":["../src/bash-wait-detach.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EAIvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,KAAK,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EA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,EAC7B,OAAO,UAAQ,GACd,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -62,16 +62,18 @@ export interface BridgeBootstrapDependencies {
|
|
|
62
62
|
migrateConfigLocations(directory: string): string[];
|
|
63
63
|
resolveBinary(version: string): Promise<string>;
|
|
64
64
|
/** `binaryPath` is null when the subc daemon owns the binary; migration then resolves one only if it has work. */
|
|
65
|
-
ensureStorageMigrated(binaryPath: string | null): Promise<void>;
|
|
65
|
+
ensureStorageMigrated(binaryPath: string | null, pluginVersion: string): Promise<void>;
|
|
66
66
|
resolveStorageRoot(): string;
|
|
67
67
|
buildConfigureParams(directory: string, processState: Record<string, unknown>): Record<string, unknown>;
|
|
68
68
|
/** Returns the directory holding the ONNX Runtime library, or null. */
|
|
69
69
|
ensureOnnxRuntime(storageDir: string): Promise<string | null>;
|
|
70
70
|
/**
|
|
71
71
|
* Seeds the LSP entries of `configOverrides` and starts background installs.
|
|
72
|
+
* `onPathsChanged` receives the full cache directory list each time one
|
|
73
|
+
* server's cache becomes ready while other work is still running.
|
|
72
74
|
* Resolves to the refreshed cache directories when installs ran, else null.
|
|
73
75
|
*/
|
|
74
|
-
startLspAutoInstall(directory: string, config: AftConfig, configOverrides: Record<string, unknown>, notify: BootstrapNotify): Promise<string[] | null> | null;
|
|
76
|
+
startLspAutoInstall(directory: string, config: AftConfig, configOverrides: Record<string, unknown>, notify: BootstrapNotify, onPathsChanged?: (paths: readonly string[]) => void): Promise<string[] | null> | null;
|
|
75
77
|
pushLspPaths(pool: Pick<AftTransportPool, "setConfigureOverride" | "reconfigure">, directory: string, paths: readonly string[]): Promise<void>;
|
|
76
78
|
isOrtAutoDownloadSupported(): boolean;
|
|
77
79
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-bootstrap.d.ts","sourceRoot":"","sources":["../src/bridge-bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,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
|
ram_overlay?: boolean | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
sandbox?: {
|
|
66
|
-
|
|
66
|
+
profile?: {
|
|
67
|
+
worker?: "off" | "relaxed" | "strict" | undefined;
|
|
68
|
+
head?: "off" | "relaxed" | "strict" | undefined;
|
|
69
|
+
} | undefined;
|
|
67
70
|
write_allow?: string[] | undefined;
|
|
68
71
|
read_deny?: string[] | undefined;
|
|
69
72
|
} | undefined;
|
|
@@ -146,10 +149,6 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
146
149
|
connection_file?: string | undefined;
|
|
147
150
|
client_reaper?: boolean | undefined;
|
|
148
151
|
} | undefined;
|
|
149
|
-
opencode?: {
|
|
150
|
-
server_url?: string | undefined;
|
|
151
|
-
server_password_env?: string | undefined;
|
|
152
|
-
} | undefined;
|
|
153
152
|
github?: {
|
|
154
153
|
shim?: boolean | undefined;
|
|
155
154
|
read?: boolean | undefined;
|
|
@@ -224,7 +223,10 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
224
223
|
ram_overlay?: boolean | undefined;
|
|
225
224
|
} | undefined;
|
|
226
225
|
sandbox?: {
|
|
227
|
-
|
|
226
|
+
profile?: {
|
|
227
|
+
worker?: "off" | "relaxed" | "strict" | undefined;
|
|
228
|
+
head?: "off" | "relaxed" | "strict" | undefined;
|
|
229
|
+
} | undefined;
|
|
228
230
|
write_allow?: string[] | undefined;
|
|
229
231
|
read_deny?: string[] | undefined;
|
|
230
232
|
} | undefined;
|
|
@@ -307,10 +309,6 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
307
309
|
connection_file?: string | undefined;
|
|
308
310
|
client_reaper?: boolean | undefined;
|
|
309
311
|
} | undefined;
|
|
310
|
-
opencode?: {
|
|
311
|
-
server_url?: string | undefined;
|
|
312
|
-
server_password_env?: string | undefined;
|
|
313
|
-
} | undefined;
|
|
314
312
|
github?: {
|
|
315
313
|
shim?: boolean | undefined;
|
|
316
314
|
read?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-live-reload.d.ts","sourceRoot":"","sources":["../src/config-live-reload.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAGtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,KAAK,SAAS,EAOf,MAAM,aAAa,CAAC;AAGrB,+DAA+D;AAC/D,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"config-live-reload.d.ts","sourceRoot":"","sources":["../src/config-live-reload.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAGtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,KAAK,SAAS,EAOf,MAAM,aAAa,CAAC;AAGrB,+DAA+D;AAC/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGrC,CAAC;AAaF,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,CAwB5F;AAED,MAAM,WAAW,+BAA+B;IAC9C,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,iFAAiF;IACjF,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,0DAA0D;IAC1D,kBAAkB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACtD,SAAS,IAAI,SAAS,CAAC;IACvB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,uCAAuC;IACvC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,uEAAuE;AACvE,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,+BAA+B,GACvC,gBAAgB,CAoBlB"}
|
package/dist/config.d.ts
CHANGED
|
@@ -8,10 +8,6 @@ export declare const ConfigureWarningsDeliveryEnum: z.ZodEnum<{
|
|
|
8
8
|
chat: "chat";
|
|
9
9
|
}>;
|
|
10
10
|
export type ConfigureWarningsDelivery = z.infer<typeof ConfigureWarningsDeliveryEnum>;
|
|
11
|
-
declare const OpenCodeHostConfigSchema: z.ZodObject<{
|
|
12
|
-
server_url: z.ZodOptional<z.ZodString>;
|
|
13
|
-
server_password_env: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
11
|
declare const GithubConfigSchema: z.ZodObject<{
|
|
16
12
|
shim: z.ZodOptional<z.ZodBoolean>;
|
|
17
13
|
read: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -129,7 +125,18 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
129
125
|
ram_overlay: z.ZodOptional<z.ZodBoolean>;
|
|
130
126
|
}, z.core.$strip>>;
|
|
131
127
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
132
|
-
|
|
128
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
129
|
+
worker: z.ZodOptional<z.ZodEnum<{
|
|
130
|
+
off: "off";
|
|
131
|
+
relaxed: "relaxed";
|
|
132
|
+
strict: "strict";
|
|
133
|
+
}>>;
|
|
134
|
+
head: z.ZodOptional<z.ZodEnum<{
|
|
135
|
+
off: "off";
|
|
136
|
+
relaxed: "relaxed";
|
|
137
|
+
strict: "strict";
|
|
138
|
+
}>>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
133
140
|
write_allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
141
|
read_deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
135
142
|
}, z.core.$strip>>;
|
|
@@ -226,10 +233,6 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
226
233
|
connection_file: z.ZodOptional<z.ZodString>;
|
|
227
234
|
client_reaper: z.ZodOptional<z.ZodBoolean>;
|
|
228
235
|
}, z.core.$strip>>;
|
|
229
|
-
opencode: z.ZodOptional<z.ZodObject<{
|
|
230
|
-
server_url: z.ZodOptional<z.ZodString>;
|
|
231
|
-
server_password_env: z.ZodOptional<z.ZodString>;
|
|
232
|
-
}, z.core.$strip>>;
|
|
233
236
|
github: z.ZodOptional<z.ZodObject<{
|
|
234
237
|
shim: z.ZodOptional<z.ZodBoolean>;
|
|
235
238
|
read: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -348,7 +351,18 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
348
351
|
ram_overlay: z.ZodOptional<z.ZodBoolean>;
|
|
349
352
|
}, z.core.$strip>>;
|
|
350
353
|
sandbox: z.ZodOptional<z.ZodObject<{
|
|
351
|
-
|
|
354
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
355
|
+
worker: z.ZodOptional<z.ZodEnum<{
|
|
356
|
+
off: "off";
|
|
357
|
+
relaxed: "relaxed";
|
|
358
|
+
strict: "strict";
|
|
359
|
+
}>>;
|
|
360
|
+
head: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
off: "off";
|
|
362
|
+
relaxed: "relaxed";
|
|
363
|
+
strict: "strict";
|
|
364
|
+
}>>;
|
|
365
|
+
}, z.core.$strip>>;
|
|
352
366
|
write_allow: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
353
367
|
read_deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
354
368
|
}, z.core.$strip>>;
|
|
@@ -445,10 +459,6 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
445
459
|
connection_file: z.ZodOptional<z.ZodString>;
|
|
446
460
|
client_reaper: z.ZodOptional<z.ZodBoolean>;
|
|
447
461
|
}, z.core.$strip>>;
|
|
448
|
-
opencode: z.ZodOptional<z.ZodObject<{
|
|
449
|
-
server_url: z.ZodOptional<z.ZodString>;
|
|
450
|
-
server_password_env: z.ZodOptional<z.ZodString>;
|
|
451
|
-
}, z.core.$strip>>;
|
|
452
462
|
github: z.ZodOptional<z.ZodObject<{
|
|
453
463
|
shim: z.ZodOptional<z.ZodBoolean>;
|
|
454
464
|
read: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -482,7 +492,6 @@ export type MergedRemoteExecConfig = NonNullable<AftConfig["remote_exec"]> & {
|
|
|
482
492
|
project_off?: boolean;
|
|
483
493
|
};
|
|
484
494
|
export type GithubConfig = z.infer<typeof GithubConfigSchema>;
|
|
485
|
-
export type OpenCodeHostConfig = z.infer<typeof OpenCodeHostConfigSchema>;
|
|
486
495
|
export interface ResolvedGithubConfig {
|
|
487
496
|
shim: boolean;
|
|
488
497
|
read: boolean;
|
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,EAEjC,KAAK,UAAU,EAaf,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,4BAA4B,EAEjC,KAAK,UAAU,EAaf,KAAK,qBAAqB,EAe3B,MAAM,u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