@cortexkit/aft-opencode 0.55.0 → 0.56.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/bg-notifications.d.ts +56 -10
- package/dist/bg-notifications.d.ts.map +1 -1
- package/dist/cancellation/effect-abort.d.ts +13 -0
- package/dist/cancellation/effect-abort.d.ts.map +1 -0
- package/dist/config.d.ts +85 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/entry/server.js +45488 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20408 -16522
- package/dist/lsp-cache.d.ts +5 -0
- package/dist/lsp-cache.d.ts.map +1 -1
- package/dist/lsp-github-install.d.ts +2 -1
- package/dist/lsp-github-install.d.ts.map +1 -1
- package/dist/permissions/v2.d.ts +51 -0
- package/dist/permissions/v2.d.ts.map +1 -0
- package/dist/plugin-version.d.ts +15 -0
- package/dist/plugin-version.d.ts.map +1 -0
- package/dist/rpc/contract.d.ts +2 -0
- package/dist/rpc/contract.d.ts.map +1 -0
- package/dist/rpc/register.d.ts +33 -0
- package/dist/rpc/register.d.ts.map +1 -0
- package/dist/shutdown-hooks.d.ts +13 -4
- package/dist/shutdown-hooks.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/tool-registration.d.ts +46 -1
- package/dist/tool-registration.d.ts.map +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/executor.d.ts +10 -0
- package/dist/tools/bash/executor.d.ts.map +1 -0
- package/dist/tools/bash.d.ts +1 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/bash_watch.d.ts.map +1 -1
- package/dist/tools/definitions/v2.d.ts +57 -0
- package/dist/tools/definitions/v2.d.ts.map +1 -0
- package/dist/tools/hoisted/v2.d.ts +8 -0
- package/dist/tools/hoisted/v2.d.ts.map +1 -0
- package/dist/tools/hoisted.d.ts +2 -0
- package/dist/tools/hoisted.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 +21 -3
- package/dist/tools/permissions.d.ts.map +1 -1
- package/dist/tools/reading.d.ts.map +1 -1
- package/dist/tools/semantic.d.ts.map +1 -1
- package/dist/tui/aft-rpc.d.ts +48 -0
- package/dist/tui/aft-rpc.d.ts.map +1 -0
- package/dist/tui/v2-status.d.ts +11 -0
- package/dist/tui/v2-status.d.ts.map +1 -0
- package/dist/wakes/runtime-consumer.d.ts +19 -0
- package/dist/wakes/runtime-consumer.d.ts.map +1 -0
- package/dist/wakes/session-delivery.d.ts +45 -0
- package/dist/wakes/session-delivery.d.ts.map +1 -0
- package/dist/workflow-hints.d.ts +12 -1
- package/dist/workflow-hints.d.ts.map +1 -1
- package/package.json +21 -16
- package/src/entry/server-runtime.mjs +109 -0
- package/src/entry/server.d.ts +10 -0
- package/src/entry/server.mjs +10 -0
- package/src/entry/tui.d.ts +8 -0
- package/src/entry/tui.mjs +9 -0
- package/src/tui/aft-rpc.ts +43 -0
- package/src/tui/index.tsx +3 -1
- package/src/tui/sidebar.tsx +1 -1
- package/src/tui/types/opencode-plugin-tui.d.ts +4 -3
- package/src/tui/v2-status.ts +56 -0
- package/src/tui/v2.tsx +209 -0
- package/src/tui-compiled/aft-rpc.ts +43 -0
- package/src/tui-compiled/index.tsx +3 -1
- package/src/tui-compiled/types/opencode-plugin-tui.d.ts +4 -3
- package/src/tui-compiled/v2-status.ts +56 -0
- package/src/tui-compiled/v2.tsx +181 -0
- package/dist/tools/refactoring.d.ts +0 -7
- package/dist/tools/refactoring.d.ts.map +0 -1
|
@@ -20,6 +20,13 @@ export interface BgCompletion {
|
|
|
20
20
|
compressed_tokens?: number;
|
|
21
21
|
tokens_skipped?: boolean;
|
|
22
22
|
status_reason?: string;
|
|
23
|
+
live_descendants?: Array<{
|
|
24
|
+
pid: number;
|
|
25
|
+
comm: string;
|
|
26
|
+
argv0: string;
|
|
27
|
+
}> | null;
|
|
28
|
+
live_descendants_omitted?: number;
|
|
29
|
+
live_descendants_summary?: string;
|
|
23
30
|
mode?: "pipes" | "pty" | string;
|
|
24
31
|
output_path?: string;
|
|
25
32
|
}
|
|
@@ -94,18 +101,25 @@ type SessionBgState = {
|
|
|
94
101
|
* Task IDs DELIVERED to the agent but whose `bash_ack_completions` has not yet
|
|
95
102
|
* confirmed (so the Rust registry still holds them and, over subc, re-nudges).
|
|
96
103
|
* Ingest skips these for fresh delivery AND a forced drain RE-ACKs them (the
|
|
97
|
-
* self-terminating close of the re-nudge loop
|
|
98
|
-
* DAEMON RECONCILIATION, not a timer: a forced drain
|
|
99
|
-
* task
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
104
|
+
* self-terminating close of the re-nudge loop). Entries are removed by
|
|
105
|
+
* DAEMON RECONCILIATION, not a timer: when a forced drain no longer returns a
|
|
106
|
+
* task as unacknowledged, it is safe to forget. A time-based TTL could evict a
|
|
107
|
+
* task the daemon still holds, reopening the double-deliver. Self-drains: the
|
|
108
|
+
* module re-nudges (→ drain → re-ack) until ack confirms. Insertion-ordered
|
|
109
|
+
* for the FIFO OOM backstop cap.
|
|
103
110
|
*/
|
|
104
111
|
deliveredAwaitingAckTaskIds: Set<string>;
|
|
112
|
+
hostStatus: "idle" | "busy" | "retry" | undefined;
|
|
113
|
+
wakeAdmissions: Map<string, WakeAdmission>;
|
|
114
|
+
confirmedWakeDeliveryIds: Set<string>;
|
|
115
|
+
refiredWakeDeliveryIds: Set<string>;
|
|
116
|
+
wakeDeliveryOrder: string[];
|
|
105
117
|
lastSeenAt: number;
|
|
106
118
|
};
|
|
107
119
|
export declare const sessionBgStates: Map<string, SessionBgState>;
|
|
108
120
|
export declare const SESSION_BG_STATE_IDLE_TTL_MS: number;
|
|
121
|
+
export declare function setActiveSessionId(sessionId: string | undefined): void;
|
|
122
|
+
export declare function getActiveSessionId(): string | undefined;
|
|
109
123
|
interface DrainContext {
|
|
110
124
|
ctx: PluginContext;
|
|
111
125
|
directory: string;
|
|
@@ -125,6 +139,31 @@ interface DrainContext {
|
|
|
125
139
|
/** Cached bridge so one nudge resolves drain and ack through one authority. */
|
|
126
140
|
resolvedBridge?: AftProjectTransport;
|
|
127
141
|
}
|
|
142
|
+
interface OpenCodeSessionApi {
|
|
143
|
+
promptAsync?: (input: unknown) => Promise<unknown> | unknown;
|
|
144
|
+
messages?: (input: {
|
|
145
|
+
path: {
|
|
146
|
+
id: string;
|
|
147
|
+
};
|
|
148
|
+
}) => Promise<{
|
|
149
|
+
data?: unknown[];
|
|
150
|
+
}>;
|
|
151
|
+
}
|
|
152
|
+
interface WakeAdmission {
|
|
153
|
+
deliveryID: string;
|
|
154
|
+
admittedAt: number;
|
|
155
|
+
admittedMessageIDs: Set<string>;
|
|
156
|
+
requestBody: Record<string, unknown>;
|
|
157
|
+
sessionApi: OpenCodeSessionApi & {
|
|
158
|
+
promptAsync: NonNullable<OpenCodeSessionApi["promptAsync"]>;
|
|
159
|
+
};
|
|
160
|
+
drainContext: DrainContext;
|
|
161
|
+
taskIDs: string[];
|
|
162
|
+
watchId?: string;
|
|
163
|
+
confirmationTimer: NodeJS.Timeout | null;
|
|
164
|
+
refireTimer: NodeJS.Timeout | null;
|
|
165
|
+
refireQueued: boolean;
|
|
166
|
+
}
|
|
128
167
|
/**
|
|
129
168
|
* Mark a bg task's completion as consumed by an explicit bash_status wait.
|
|
130
169
|
* Removes it from pendingCompletions so the next wake/in-turn drain
|
|
@@ -171,8 +210,9 @@ export declare function handleIdleBgCompletions(drainContext: DrainContext & {
|
|
|
171
210
|
}): Promise<void>;
|
|
172
211
|
/**
|
|
173
212
|
* Subc bg_events wake entrypoint. Over subc, an idle-completion WAKE is a thin
|
|
174
|
-
* payload-less nudge
|
|
175
|
-
*
|
|
213
|
+
* payload-less nudge. The module sends one optimistic nudge when the subscription
|
|
214
|
+
* opens, then re-nudges while completions or pattern matches remain unacknowledged;
|
|
215
|
+
* either case means "drain me now". This
|
|
176
216
|
* differs from {@link handleIdleBgCompletions}, whose drain is GATED — once
|
|
177
217
|
* `forcedDrainCompleted` is set and nothing is locally outstanding, it skips the
|
|
178
218
|
* drain. A subc completion can be for a task this process never tracked (a prior
|
|
@@ -180,18 +220,24 @@ export declare function handleIdleBgCompletions(drainContext: DrainContext & {
|
|
|
180
220
|
* drain would skip it and the module would re-arm and nudge forever. The
|
|
181
221
|
* module-side loop is
|
|
182
222
|
* `crates/aft/src/subc/push.rs::{emit_bg_event_wakes,clear_stale_bg_wakes_for_empty_sessions}`:
|
|
183
|
-
* it re-emits pending wakes until ack
|
|
223
|
+
* it re-emits pending wakes until ack clears durable items, so coalescing a duplicate
|
|
184
224
|
* while this handler is in flight is safe. This path forces an UNCONDITIONAL drain
|
|
185
|
-
* so
|
|
225
|
+
* so each durable notification is fetched, delivered, and acked.
|
|
186
226
|
*/
|
|
187
227
|
export declare function handleSubcBgEventsNudge(drainContext: DrainContext & {
|
|
188
228
|
client: unknown;
|
|
189
229
|
}): Promise<void>;
|
|
230
|
+
/**
|
|
231
|
+
* Observe the OpenCode event hook already owned by the plugin. Unknown and
|
|
232
|
+
* malformed event shapes are ignored so host event delivery can never fail.
|
|
233
|
+
*/
|
|
234
|
+
export declare function observeOpenCodeBgNotificationEvent(event: unknown): void;
|
|
190
235
|
export declare function formatSystemReminder(completions: readonly BgCompletion[]): string;
|
|
191
236
|
export declare function formatLongRunningReminder(reminders: readonly BgLongRunningReminder[]): string;
|
|
192
237
|
export declare function formatPatternMatchReminder(matches: readonly PatternMatchEntry[]): string;
|
|
193
238
|
export declare function extractSessionID(value: unknown): string | undefined;
|
|
194
239
|
export declare function __setBgNotificationHopTimeoutForTests(timeoutMs: number): void;
|
|
240
|
+
export declare function __setWakeConfirmationWindowForTests(timeoutMs: number): void;
|
|
195
241
|
export declare function __resetBgNotificationStateForTests(): void;
|
|
196
242
|
export {};
|
|
197
243
|
//# 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,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,eAAe,GAAG,WAAW,CAAC;IACvC,qFAAq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,YAAY,EAC1B,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GACtC,OAAO,CAAC,IAAI,CAAC,CAyEf;AAED,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,YAAY,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAC/C,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,YAAY,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GAC/C,OAAO,CAAC,IAAI,CAAC,CAoBf;AA4TD;;;GAGG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CA8DvE;AA4PD,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,mCAAmC,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAE3E;AAED,wBAAgB,kCAAkC,IAAI,IAAI,CAczD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface EffectAbortForwarder {
|
|
2
|
+
/** Whether this invocation has already forwarded an interruption. */
|
|
3
|
+
readonly forwarded: boolean;
|
|
4
|
+
/** Stop accepting interruption without triggering cancellation. */
|
|
5
|
+
dispose(): void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Forward one Effect-owned AbortSignal without retaining process-global state.
|
|
9
|
+
* Disposal wins any later interruption, while an already-started best-effort
|
|
10
|
+
* send is observed so transport teardown cannot create an unhandled rejection.
|
|
11
|
+
*/
|
|
12
|
+
export declare function forwardEffectAbort(signal: AbortSignal, send: () => unknown | PromiseLike<unknown>): EffectAbortForwarder;
|
|
13
|
+
//# sourceMappingURL=effect-abort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effect-abort.d.ts","sourceRoot":"","sources":["../../src/cancellation/effect-abort.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,qEAAqE;IACrE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,mEAAmE;IACnE,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,GACzC,oBAAoB,CA2BtB"}
|
package/dist/config.d.ts
CHANGED
|
@@ -7,9 +7,27 @@ export declare const ConfigureWarningsDeliveryEnum: z.ZodEnum<{
|
|
|
7
7
|
chat: "chat";
|
|
8
8
|
}>;
|
|
9
9
|
export type ConfigureWarningsDelivery = z.infer<typeof ConfigureWarningsDeliveryEnum>;
|
|
10
|
+
declare const GithubConfigSchema: z.ZodObject<{
|
|
11
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
shim: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
write: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strip>;
|
|
10
16
|
export declare const DEFAULT_INSPECT_DIAGNOSTICS_TIMEOUT_MS = 120000;
|
|
11
17
|
export declare const MIN_INSPECT_DIAGNOSTICS_TIMEOUT_MS = 10000;
|
|
12
18
|
export declare const MAX_INSPECT_DIAGNOSTICS_TIMEOUT_MS = 600000;
|
|
19
|
+
export declare const PiToolPresentationEnum: z.ZodEnum<{
|
|
20
|
+
top_level: "top_level";
|
|
21
|
+
host_default: "host_default";
|
|
22
|
+
}>;
|
|
23
|
+
export type PiToolPresentation = z.infer<typeof PiToolPresentationEnum>;
|
|
24
|
+
export declare const PiConfigSchema: z.ZodObject<{
|
|
25
|
+
tool_presentation: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
top_level: "top_level";
|
|
27
|
+
host_default: "host_default";
|
|
28
|
+
}>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type PiConfig = z.infer<typeof PiConfigSchema>;
|
|
13
31
|
export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
14
32
|
$schema: z.ZodOptional<z.ZodString>;
|
|
15
33
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -77,6 +95,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
77
95
|
}>>>>;
|
|
78
96
|
}, z.core.$strip>>;
|
|
79
97
|
semantic_search: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
views: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
80
101
|
callgraph_store: z.ZodOptional<z.ZodBoolean>;
|
|
81
102
|
callgraph_chunk_size: z.ZodOptional<z.ZodNumber>;
|
|
82
103
|
inspect: z.ZodOptional<z.ZodObject<{
|
|
@@ -90,6 +111,10 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
90
111
|
expected_mirrors: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
91
112
|
}, z.core.$strip>>;
|
|
92
113
|
}, z.core.$strip>>;
|
|
114
|
+
idle: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
root_ttl_minutes: z.ZodPipe<z.ZodOptional<z.ZodNumber>, z.ZodTransform<number | undefined, number | undefined>>;
|
|
116
|
+
lsp_ttl_minutes: z.ZodPipe<z.ZodOptional<z.ZodNumber>, z.ZodTransform<number | undefined, number | undefined>>;
|
|
117
|
+
}, z.core.$strip>>;
|
|
93
118
|
backup: z.ZodOptional<z.ZodObject<{
|
|
94
119
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
95
120
|
max_depth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -113,6 +138,8 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
113
138
|
long_running_reminder_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
114
139
|
long_running_reminder_interval_ms: z.ZodOptional<z.ZodNumber>;
|
|
115
140
|
foreground_wait_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
watch_sync_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
linux_scope: z.ZodOptional<z.ZodBoolean>;
|
|
116
143
|
powershell_tool: z.ZodOptional<z.ZodBoolean>;
|
|
117
144
|
}, z.core.$strip>]>>;
|
|
118
145
|
experimental: z.ZodOptional<z.ZodObject<{
|
|
@@ -159,7 +186,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
159
186
|
api_key_env: z.ZodOptional<z.ZodString>;
|
|
160
187
|
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
161
188
|
query_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
query_instruction: z.ZodOptional<z.ZodString>;
|
|
162
190
|
max_batch_size: z.ZodOptional<z.ZodNumber>;
|
|
191
|
+
max_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
163
192
|
max_files: z.ZodOptional<z.ZodNumber>;
|
|
164
193
|
}, z.core.$strip>>;
|
|
165
194
|
auto_update: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -171,6 +200,12 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
171
200
|
connection_file: z.ZodOptional<z.ZodString>;
|
|
172
201
|
client_reaper: z.ZodOptional<z.ZodBoolean>;
|
|
173
202
|
}, z.core.$strip>>;
|
|
203
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
shim: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
207
|
+
write: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
}, z.core.$strip>>;
|
|
174
209
|
gh_shim: z.ZodOptional<z.ZodObject<{
|
|
175
210
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
176
211
|
binary_path: z.ZodOptional<z.ZodString>;
|
|
@@ -181,6 +216,12 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
181
216
|
git: z.ZodOptional<z.ZodObject<{
|
|
182
217
|
co_author: z.ZodOptional<z.ZodString>;
|
|
183
218
|
}, z.core.$strip>>;
|
|
219
|
+
pi: z.ZodOptional<z.ZodObject<{
|
|
220
|
+
tool_presentation: z.ZodOptional<z.ZodEnum<{
|
|
221
|
+
top_level: "top_level";
|
|
222
|
+
host_default: "host_default";
|
|
223
|
+
}>>;
|
|
224
|
+
}, z.core.$strip>>;
|
|
184
225
|
harnesses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
185
226
|
$schema: z.ZodOptional<z.ZodString>;
|
|
186
227
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -248,6 +289,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
248
289
|
}>>>>;
|
|
249
290
|
}, z.core.$strip>>;
|
|
250
291
|
semantic_search: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
views: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
}, z.core.$strip>>;
|
|
251
295
|
callgraph_store: z.ZodOptional<z.ZodBoolean>;
|
|
252
296
|
callgraph_chunk_size: z.ZodOptional<z.ZodNumber>;
|
|
253
297
|
inspect: z.ZodOptional<z.ZodObject<{
|
|
@@ -261,6 +305,10 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
261
305
|
expected_mirrors: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>>;
|
|
262
306
|
}, z.core.$strip>>;
|
|
263
307
|
}, z.core.$strip>>;
|
|
308
|
+
idle: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
root_ttl_minutes: z.ZodPipe<z.ZodOptional<z.ZodNumber>, z.ZodTransform<number | undefined, number | undefined>>;
|
|
310
|
+
lsp_ttl_minutes: z.ZodPipe<z.ZodOptional<z.ZodNumber>, z.ZodTransform<number | undefined, number | undefined>>;
|
|
311
|
+
}, z.core.$strip>>;
|
|
264
312
|
backup: z.ZodOptional<z.ZodObject<{
|
|
265
313
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
266
314
|
max_depth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -284,6 +332,8 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
284
332
|
long_running_reminder_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
285
333
|
long_running_reminder_interval_ms: z.ZodOptional<z.ZodNumber>;
|
|
286
334
|
foreground_wait_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
watch_sync_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
linux_scope: z.ZodOptional<z.ZodBoolean>;
|
|
287
337
|
powershell_tool: z.ZodOptional<z.ZodBoolean>;
|
|
288
338
|
}, z.core.$strip>]>>;
|
|
289
339
|
experimental: z.ZodOptional<z.ZodObject<{
|
|
@@ -330,7 +380,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
330
380
|
api_key_env: z.ZodOptional<z.ZodString>;
|
|
331
381
|
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
332
382
|
query_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
383
|
+
query_instruction: z.ZodOptional<z.ZodString>;
|
|
333
384
|
max_batch_size: z.ZodOptional<z.ZodNumber>;
|
|
385
|
+
max_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
334
386
|
max_files: z.ZodOptional<z.ZodNumber>;
|
|
335
387
|
}, z.core.$strip>>;
|
|
336
388
|
auto_update: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -342,6 +394,12 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
342
394
|
connection_file: z.ZodOptional<z.ZodString>;
|
|
343
395
|
client_reaper: z.ZodOptional<z.ZodBoolean>;
|
|
344
396
|
}, z.core.$strip>>;
|
|
397
|
+
github: z.ZodOptional<z.ZodObject<{
|
|
398
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
+
shim: z.ZodOptional<z.ZodBoolean>;
|
|
400
|
+
read: z.ZodOptional<z.ZodBoolean>;
|
|
401
|
+
write: z.ZodOptional<z.ZodBoolean>;
|
|
402
|
+
}, z.core.$strip>>;
|
|
345
403
|
gh_shim: z.ZodOptional<z.ZodObject<{
|
|
346
404
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
347
405
|
binary_path: z.ZodOptional<z.ZodString>;
|
|
@@ -352,9 +410,25 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
352
410
|
git: z.ZodOptional<z.ZodObject<{
|
|
353
411
|
co_author: z.ZodOptional<z.ZodString>;
|
|
354
412
|
}, z.core.$strip>>;
|
|
413
|
+
pi: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
tool_presentation: z.ZodOptional<z.ZodEnum<{
|
|
415
|
+
top_level: "top_level";
|
|
416
|
+
host_default: "host_default";
|
|
417
|
+
}>>;
|
|
418
|
+
}, z.core.$strip>>;
|
|
355
419
|
}, z.core.$strict>>>>;
|
|
356
420
|
}, z.core.$strict>>;
|
|
357
421
|
export type AftConfig = z.infer<typeof AftConfigSchema>;
|
|
422
|
+
export type GithubConfig = z.infer<typeof GithubConfigSchema>;
|
|
423
|
+
export interface ResolvedGithubConfig {
|
|
424
|
+
enabled: boolean;
|
|
425
|
+
shim: boolean;
|
|
426
|
+
read: boolean;
|
|
427
|
+
write: boolean;
|
|
428
|
+
}
|
|
429
|
+
/** Resolve master/feature precedence and the write-implies-read safety rule. */
|
|
430
|
+
export declare function resolveGithubConfig(config: AftConfig): ResolvedGithubConfig;
|
|
431
|
+
export declare function toolEnabled(config: AftConfig, toolName: string): boolean;
|
|
358
432
|
/** Resolve the blocking diagnostics deadline for tools that wait on `aft_inspect`. */
|
|
359
433
|
export declare function resolveInspectDiagnosticsTimeoutMs(config: AftConfig): number;
|
|
360
434
|
export interface ConfigureLspServer {
|
|
@@ -397,7 +471,7 @@ export declare function resolveLspConfigForConfigure(config: AftConfig): Configu
|
|
|
397
471
|
* one OpenCode/Pi process.
|
|
398
472
|
*
|
|
399
473
|
* **DO NOT** put fields that affect plugin-side tool registration here.
|
|
400
|
-
* `enabled`, `tool_surface`,
|
|
474
|
+
* `enabled`, `tool_surface`, and `hoist_builtin_tools` lock
|
|
401
475
|
* at plugin init because OpenCode registers tools synchronously when the plugin
|
|
402
476
|
* function returns. Per-bridge changes to those fields wouldn't take effect.
|
|
403
477
|
*/
|
|
@@ -420,7 +494,7 @@ export interface ResolvedBashConfig {
|
|
|
420
494
|
background: boolean;
|
|
421
495
|
/** Emergency local execution gate. Default false, including for `bash: true`. */
|
|
422
496
|
host_fallback: boolean;
|
|
423
|
-
/** See BashFeaturesSchema.subagent_background. Default
|
|
497
|
+
/** See BashFeaturesSchema.subagent_background. Default true. */
|
|
424
498
|
subagent_background: boolean;
|
|
425
499
|
/** Detach wait:true bash calls on user messages; `&detach` overrides and is stripped before delivery. */
|
|
426
500
|
detach_on_user_message: boolean;
|
|
@@ -431,6 +505,8 @@ export interface ResolvedBashConfig {
|
|
|
431
505
|
* Always resolved: defaults to 15000, floored at 5000.
|
|
432
506
|
*/
|
|
433
507
|
foreground_wait_window_ms: number;
|
|
508
|
+
/** Maximum synchronous bash_watch wait. Defaults to 120000 and is clamped to 1000..1800000. */
|
|
509
|
+
watch_sync_max_ms: number;
|
|
434
510
|
/** Pi-only manual PowerShell registration fallback. Default false. */
|
|
435
511
|
powershell_tool: boolean;
|
|
436
512
|
}
|
|
@@ -438,6 +514,13 @@ export interface ResolvedBashConfig {
|
|
|
438
514
|
export declare const FOREGROUND_WAIT_WINDOW_DEFAULT_MS = 15000;
|
|
439
515
|
/** Minimum allowed foreground wait-window (ms); smaller values clamp up. */
|
|
440
516
|
export declare const FOREGROUND_WAIT_WINDOW_MIN_MS = 5000;
|
|
517
|
+
/** Default maximum synchronous bash_watch wait (ms). */
|
|
518
|
+
export declare const DEFAULT_BASH_WATCH_SYNC_MAX_MS = 120000;
|
|
519
|
+
/** Minimum synchronous bash_watch wait cap (ms). */
|
|
520
|
+
export declare const MIN_BASH_WATCH_SYNC_MAX_MS = 1000;
|
|
521
|
+
/** Static schema maximum and hard upper bound for synchronous bash_watch waits (ms). */
|
|
522
|
+
export declare const MAX_BASH_WATCH_SYNC_MAX_MS = 1800000;
|
|
523
|
+
export declare function clampBashWatchSyncMaxMs(value: number | undefined): number;
|
|
441
524
|
/**
|
|
442
525
|
* Single source of truth for bash config across the plugin. Resolution
|
|
443
526
|
* order (highest priority wins):
|
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;AAmExB,oGAAoG;AACpG,eAAO,MAAM,6BAA6B;;;;EAAmC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC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