@cortexkit/aft-opencode 0.61.0 → 0.63.4
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 +1 -0
- package/dist/bash-wait-detach.d.ts.map +1 -1
- package/dist/bg-notifications.d.ts +37 -12
- package/dist/bg-notifications.d.ts.map +1 -1
- package/dist/bridge-bootstrap.d.ts +1 -1
- package/dist/bridge-bootstrap.d.ts.map +1 -1
- package/dist/config-live-reload.d.ts +18 -2
- package/dist/config-live-reload.d.ts.map +1 -1
- package/dist/config.d.ts +43 -8
- package/dist/config.d.ts.map +1 -1
- package/dist/entry/server.js +4869 -1622
- package/dist/hooks/auto-update-checker/index.d.ts +5 -1
- package/dist/hooks/auto-update-checker/index.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3996 -1482
- package/dist/logger.d.ts +6 -10
- package/dist/logger.d.ts.map +1 -1
- package/dist/lsp-auto-install.d.ts.map +1 -1
- package/dist/lsp.d.ts +1 -0
- package/dist/lsp.d.ts.map +1 -1
- package/dist/shared/rpc-client.d.ts.map +1 -1
- package/dist/shared/rpc-notifications.d.ts.map +1 -1
- package/dist/shared/rpc-server.d.ts +2 -0
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/session-cleanup.d.ts +6 -0
- package/dist/shared/session-cleanup.d.ts.map +1 -0
- package/dist/shared/session-directory.d.ts +24 -0
- package/dist/shared/session-directory.d.ts.map +1 -1
- package/dist/shared/status.d.ts +12 -1
- package/dist/shared/status.d.ts.map +1 -1
- package/dist/shared/subagent-detect.d.ts +24 -8
- package/dist/shared/subagent-detect.d.ts.map +1 -1
- package/dist/shared/wake-admission.d.ts +68 -0
- package/dist/shared/wake-admission.d.ts.map +1 -0
- package/dist/shutdown-hooks.d.ts +2 -0
- package/dist/shutdown-hooks.d.ts.map +1 -1
- package/dist/subc-tool-schemas.d.ts +13 -2
- package/dist/subc-tool-schemas.d.ts.map +1 -1
- package/dist/tools/_shared.d.ts +5 -1
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/bash.d.ts +1 -0
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/bash_watch.d.ts +4 -0
- package/dist/tools/bash_watch.d.ts.map +1 -1
- package/dist/tools/definitions/v2.d.ts +2 -1
- package/dist/tools/definitions/v2.d.ts.map +1 -1
- package/dist/tools/hoisted.d.ts +8 -1
- package/dist/tools/hoisted.d.ts.map +1 -1
- package/dist/tools/inspect.d.ts.map +1 -1
- package/dist/tools/metadata.d.ts +7 -0
- package/dist/tools/metadata.d.ts.map +1 -0
- package/dist/tools/outside-permissions.d.ts +35 -0
- package/dist/tools/outside-permissions.d.ts.map +1 -0
- package/dist/tools/permissions.d.ts +9 -11
- package/dist/tools/permissions.d.ts.map +1 -1
- package/dist/tools/reading.d.ts.map +1 -1
- package/dist/tools/safety.d.ts +1 -1
- package/dist/tools/safety.d.ts.map +1 -1
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/semantic.d.ts.map +1 -1
- package/dist/tui/notification-socket.d.ts.map +1 -1
- package/dist/tui/preferences.d.ts +11 -0
- package/dist/tui/preferences.d.ts.map +1 -1
- package/dist/v2-session-lifecycle.d.ts +7 -0
- package/dist/v2-session-lifecycle.d.ts.map +1 -1
- package/dist/v2-tool-hooks.d.ts +1 -0
- package/dist/v2-tool-hooks.d.ts.map +1 -1
- package/dist/wakes/runtime-consumer.d.ts +14 -3
- package/dist/wakes/runtime-consumer.d.ts.map +1 -1
- package/dist/wakes/session-delivery.d.ts +24 -4
- package/dist/wakes/session-delivery.d.ts.map +1 -1
- package/dist/wakes/subc-recovery.d.ts +8 -0
- package/dist/wakes/subc-recovery.d.ts.map +1 -0
- package/package.json +10 -10
- package/src/entry/server-runtime.mjs +67 -19
- package/src/logger.ts +12 -5
- package/src/shared/rpc-client.ts +35 -28
- package/src/shared/rpc-notifications.ts +5 -3
- package/src/shared/rpc-server.ts +65 -7
- package/src/shared/session-cleanup.ts +13 -0
- package/src/shared/session-directory.ts +59 -3
- package/src/shared/status.ts +32 -2
- package/src/shared/subagent-detect.ts +53 -25
- package/src/shared/wake-admission.ts +340 -0
- package/src/tui/notification-socket.ts +30 -4
- package/src/tui/preferences.ts +66 -29
- package/src/tui/sidebar-view.tsx +1 -0
- package/src/tui/v2.tsx +49 -1
- package/src/tui-compiled/notification-socket.ts +30 -4
- package/src/tui-compiled/preferences.ts +66 -29
- package/src/tui-compiled/sidebar-view.tsx +2 -1
- package/src/tui-compiled/v2.tsx +54 -1
|
@@ -33,5 +33,6 @@ export declare function shouldDetachBashWaitOnUserMessage(config: AftConfig, mes
|
|
|
33
33
|
* Returns whether the waits were interrupted.
|
|
34
34
|
*/
|
|
35
35
|
export declare function interruptBashWaitsForChatMessage(pool: ActiveBridgePool, config: AftConfig, projectRoot: string, sessionID: string | undefined, output: unknown, remember?: boolean): boolean;
|
|
36
|
+
export declare function waitDetachSummaryLevel(pendingRequest: boolean): "info" | "debug";
|
|
36
37
|
export declare function signalBashWaitDetachForProject(pool: ActiveBridgePool, projectRoot: string, sessionID: string | undefined, pending?: boolean): Promise<void>;
|
|
37
38
|
//# 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,EACrB,KAAK,iBAAiB,EAIvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,KAAK,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,wBAAwB,GAAG,eAAe,CAAC,CAAC;AA4B3F,qGAAqG;AACrG,wBAAsB,qCAAqC,CACzD,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE;IAAE,QAAQ,EAAE;QAAE,IAAI,EAAE;YAAE,SAAS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C7B,MAAM,EAAE,OAAO,EACf,QAAQ,UAAO,GACd,OAAO,CAST;AAqBD,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAEhF;AAED,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,OAAO,UAAQ,GACd,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { BashWatchLineBatch } from "@cortexkit/aft-bridge";
|
|
2
|
+
import { type AftProjectTransport, type BgNudgeRef, WatchBatchAdmissions } from "@cortexkit/aft-bridge";
|
|
3
|
+
import { type PendingWakeAdmission, type WakeSessionApi } from "./shared/wake-admission.js";
|
|
2
4
|
import type { PluginContext } from "./types.js";
|
|
3
5
|
export interface BgCompletion {
|
|
6
|
+
_bash_changed_files?: import("@cortexkit/aft-bridge").BashChangedFiles;
|
|
4
7
|
task_id: string;
|
|
5
8
|
status: string;
|
|
6
9
|
exit_code: number | null;
|
|
@@ -21,17 +24,15 @@ export interface BgCompletion {
|
|
|
21
24
|
tokens_skipped?: boolean;
|
|
22
25
|
status_reason?: string;
|
|
23
26
|
output_incomplete?: boolean;
|
|
24
|
-
live_descendants?:
|
|
25
|
-
pid: number;
|
|
26
|
-
comm: string;
|
|
27
|
-
argv0: string;
|
|
28
|
-
}> | null;
|
|
27
|
+
live_descendants?: import("@cortexkit/aft-bridge").LiveDescendant[] | null;
|
|
29
28
|
live_descendants_omitted?: number;
|
|
29
|
+
live_descendants_unavailable?: import("@cortexkit/aft-bridge").LiveDescendantsUnavailable;
|
|
30
30
|
live_descendants_summary?: string;
|
|
31
31
|
mode?: "pipes" | "pty" | string;
|
|
32
32
|
output_path?: string;
|
|
33
33
|
}
|
|
34
34
|
export interface PatternMatchEntry {
|
|
35
|
+
batch?: BashWatchLineBatch;
|
|
35
36
|
task_id: string;
|
|
36
37
|
session_id: string;
|
|
37
38
|
watch_id: string;
|
|
@@ -56,6 +57,7 @@ type SessionBgState = {
|
|
|
56
57
|
pendingCompletions: BgCompletion[];
|
|
57
58
|
pendingLongRunning: BgLongRunningReminder[];
|
|
58
59
|
pendingPatternMatches: PatternMatchEntry[];
|
|
60
|
+
batchAdmissions: WatchBatchAdmissions;
|
|
59
61
|
explicitControlTasks: Set<string>;
|
|
60
62
|
debounceTimer: NodeJS.Timeout | null;
|
|
61
63
|
firstCompletionAt: number | null;
|
|
@@ -99,7 +101,7 @@ type SessionBgState = {
|
|
|
99
101
|
consumedTaskIds: Set<string>;
|
|
100
102
|
consumedTaskOrder: string[];
|
|
101
103
|
/**
|
|
102
|
-
* Task IDs whose delivery is IN FLIGHT (removed from pendingCompletions /
|
|
104
|
+
* Task IDs and exact watch-version keys whose delivery is IN FLIGHT (removed from pendingCompletions /
|
|
103
105
|
* pattern queues, prompt not yet resolved). Ingest skips these so a subc forced
|
|
104
106
|
* drain in the removal→delivery window cannot re-accept and double-schedule an
|
|
105
107
|
* already-departing completion. Bounded by the in-flight wake batch (cleared on
|
|
@@ -107,7 +109,7 @@ type SessionBgState = {
|
|
|
107
109
|
*/
|
|
108
110
|
deliveringTaskIds: Set<string>;
|
|
109
111
|
/**
|
|
110
|
-
*
|
|
112
|
+
* Acknowledgement target keys DELIVERED to the agent but whose `bash_ack_completions` has not yet
|
|
111
113
|
* confirmed (so the Rust registry still holds them and, over subc, re-nudges).
|
|
112
114
|
* Ingest skips these for fresh delivery AND a forced drain RE-ACKs them (the
|
|
113
115
|
* self-terminating close of the re-nudge loop). Entries are removed by
|
|
@@ -120,6 +122,7 @@ type SessionBgState = {
|
|
|
120
122
|
deliveredAwaitingAckTaskIds: Set<string>;
|
|
121
123
|
hostStatus: "idle" | "busy" | "retry" | undefined;
|
|
122
124
|
wakeAdmissions: Map<string, WakeAdmission>;
|
|
125
|
+
pendingWakeAdmissions: Map<string, PendingWakeAdmission>;
|
|
123
126
|
confirmedWakeDeliveryIds: Set<string>;
|
|
124
127
|
refiredWakeDeliveryIds: Set<string>;
|
|
125
128
|
wakeDeliveryOrder: string[];
|
|
@@ -129,8 +132,16 @@ export declare const sessionBgStates: Map<string, SessionBgState>;
|
|
|
129
132
|
export declare const SESSION_BG_STATE_IDLE_TTL_MS: number;
|
|
130
133
|
export declare function setActiveSessionId(sessionId: string | undefined): void;
|
|
131
134
|
export declare function getActiveSessionId(): string | undefined;
|
|
135
|
+
export interface BgNotificationDelivery {
|
|
136
|
+
completion(completion: BgCompletion, bridge: AftProjectTransport): Promise<boolean>;
|
|
137
|
+
patternMatch(match: PatternMatchEntry, bridge: AftProjectTransport): Promise<boolean>;
|
|
138
|
+
/** Confirmed exact acknowledgements let a consumer retire its admission watermarks. */
|
|
139
|
+
patternMatchAcked?(sessionID: string | undefined, match: import("@cortexkit/aft-bridge").BashPatternMatchAck): void;
|
|
140
|
+
/** Durable absence also retires state when an acknowledgement response was lost. */
|
|
141
|
+
patternMatchesPending?(sessionID: string | undefined, matches: readonly PatternMatchEntry[]): void;
|
|
142
|
+
}
|
|
132
143
|
interface DrainContext {
|
|
133
|
-
ctx: PluginContext
|
|
144
|
+
ctx: Pick<PluginContext, "pool">;
|
|
134
145
|
directory: string;
|
|
135
146
|
sessionID: string;
|
|
136
147
|
/**
|
|
@@ -147,6 +158,8 @@ interface DrainContext {
|
|
|
147
158
|
nudgeRef?: BgNudgeRef;
|
|
148
159
|
/** Cached bridge so one nudge resolves drain and ack through one authority. */
|
|
149
160
|
resolvedBridge?: AftProjectTransport;
|
|
161
|
+
/** Host-specific admission; drain, delivery reservations and ack stay shared. */
|
|
162
|
+
delivery?: BgNotificationDelivery;
|
|
150
163
|
}
|
|
151
164
|
interface OpenCodeSessionApi {
|
|
152
165
|
promptAsync?: (input: unknown) => Promise<unknown> | unknown;
|
|
@@ -157,6 +170,7 @@ interface OpenCodeSessionApi {
|
|
|
157
170
|
}) => Promise<{
|
|
158
171
|
data?: unknown[];
|
|
159
172
|
}>;
|
|
173
|
+
message?: WakeSessionApi["message"];
|
|
160
174
|
}
|
|
161
175
|
interface WakeAdmission {
|
|
162
176
|
deliveryID: string;
|
|
@@ -173,10 +187,12 @@ interface WakeAdmission {
|
|
|
173
187
|
refireTimer: NodeJS.Timeout | null;
|
|
174
188
|
refireQueued: boolean;
|
|
175
189
|
}
|
|
190
|
+
/** Stop only the disposing instance's SDK work; leave its unacked batches recoverable. */
|
|
191
|
+
export declare function cancelPendingWakesForContext(ctx: DrainContext["ctx"]): void;
|
|
176
192
|
/**
|
|
177
|
-
* Mark a
|
|
178
|
-
*
|
|
179
|
-
*
|
|
193
|
+
* Mark a task's queued reminders as consumed by an inline bash wait result.
|
|
194
|
+
* Remove its completion, exit and still-running notices so later tool replies
|
|
195
|
+
* or wake prompts do not repeat information the agent already received.
|
|
180
196
|
*/
|
|
181
197
|
export declare function consumeBgCompletion(sessionID: string | undefined, taskId: string): void;
|
|
182
198
|
export declare function markBgCompletionDelivered(drainContext: DrainContext, taskId: string): Promise<void>;
|
|
@@ -218,6 +234,10 @@ export declare function handlePushedBgLongRunning(drainContext: DrainContext & {
|
|
|
218
234
|
export declare function appendInTurnBgCompletions(drainContext: DrainContext, output: {
|
|
219
235
|
output?: string;
|
|
220
236
|
} | undefined): Promise<void>;
|
|
237
|
+
/** A new model turn can deliver pending reminders after wake retries are exhausted, without another prompt. */
|
|
238
|
+
export declare function appendPendingWakeRecovery(drainContext: DrainContext, output: {
|
|
239
|
+
output?: string;
|
|
240
|
+
}): Promise<void>;
|
|
221
241
|
export declare function handleIdleBgCompletions(drainContext: DrainContext & {
|
|
222
242
|
client: unknown;
|
|
223
243
|
}): Promise<void>;
|
|
@@ -252,6 +272,11 @@ export declare function extractSessionID(value: unknown): string | undefined;
|
|
|
252
272
|
export declare function __setBgNotificationHopTimeoutForTests(timeoutMs: number): void;
|
|
253
273
|
export declare function __setWakeConfirmationWindowForTests(timeoutMs: number): void;
|
|
254
274
|
export declare function __setBusyWakeDeferCeilingForTests(timeoutMs: number): void;
|
|
275
|
+
/** Release timers and task bookkeeping even if a task never reports completion. */
|
|
276
|
+
export declare function clearSessionBgState(sessionID: string): void;
|
|
255
277
|
export declare function __resetBgNotificationStateForTests(): void;
|
|
278
|
+
export declare function isPatternMatchEntry(value: unknown): value is PatternMatchEntry;
|
|
279
|
+
/** Push callbacks run outside host hooks, so catch their failures and report them through onError. */
|
|
280
|
+
export declare function runDetachedBgHandler(work: () => Promise<unknown>, onError: (error: unknown) => void): Promise<void>;
|
|
256
281
|
export {};
|
|
257
282
|
//# 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,
|
|
1
|
+
{"version":3,"file":"bg-notifications.d.ts","sourceRoot":"","sources":["../src/bg-notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,KAAK,mBAAmB,EAExB,KAAK,UAAU,EAUf,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAEL,KAAK,oBAAoB,EAEzB,KAAK,cAAc,EACpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAWhD,MAAM,WAAW,YAAY;IAC3B,mBAAmB,CAAC,EAAE,OAAO,uBAAuB,EAAE,gBAAgB,CAAC;IACvE,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;IAC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AAM,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,iCAAiC,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAEzE;AAED,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAgB3D;AAED,wBAAgB,kCAAkC,IAAI,IAAI,CAmBzD;AAqrBD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAY9E;AA0FD,sGAAsG;AACtG,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,EAC5B,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,OAAO,CAAC,IAAI,CAAC,CAMf"}
|
|
@@ -131,7 +131,7 @@ export declare function resolveBootstrapConfig(directory: string, notify: Bootst
|
|
|
131
131
|
* Answer "may AFT work in this project?" for projects other than the one an
|
|
132
132
|
* entry booted for. There is no config switch that turns AFT off; only a
|
|
133
133
|
* rejected configuration does, until it is fixed. Answers are cached per
|
|
134
|
-
* project and a rejection is logged once.
|
|
134
|
+
* canonical project and config-file identity; a rejection is logged once per identity.
|
|
135
135
|
*/
|
|
136
136
|
export declare function createProjectAcceptance(bootRoot: string, dependencies?: Pick<BridgeBootstrapDependencies, "loadConfig">): (projectRoot: string) => boolean;
|
|
137
137
|
export interface BridgeEnvironmentOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge-bootstrap.d.ts","sourceRoot":"","sources":["../src/bridge-bootstrap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EACL,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"bridge-bootstrap.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pF;AAED,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,wBAAwB,EACjC,YAAY,GAAE,2BAAgE,GAC7E,OAAO,CAAC,iBAAiB,CAAC,CAkH5B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,IAAI,IAAI,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAC;IACnD,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/C,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1D,YAAY,CAAC,EAAE,2BAA2B,CAAC;CAC5C,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,GAAG,YAAY,GAAG,mBAAmB,GAAG,qBAAqB,CAAC,CAiEhG;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,EACpD,MAAM,EAAE,SAAS,EACjB,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,GACnC;IAAE,sBAAsB,EAAE,OAAO,CAAC;IAAC,mBAAmB,EAAE,OAAO,CAAA;CAAE,CAenE;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,eAAe,GACtB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAMtC;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,SAAS,EACjB,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,EACpC,MAAM,EAAE,eAAe,GACtB,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAO9C"}
|
|
@@ -11,6 +11,7 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
11
11
|
$schema?: string | undefined;
|
|
12
12
|
edit_mode?: "default" | "hashline" | undefined;
|
|
13
13
|
format_on_edit?: boolean | undefined;
|
|
14
|
+
revision_reads?: boolean | undefined;
|
|
14
15
|
formatter_timeout_secs?: number | undefined;
|
|
15
16
|
validate_on_edit?: "syntax" | "full" | undefined;
|
|
16
17
|
formatter?: Record<string, "biome" | "oxfmt" | "prettier" | "deno" | "ruff" | "black" | "rustfmt" | "goimports" | "gofmt" | "none"> | undefined;
|
|
@@ -29,6 +30,9 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
29
30
|
indexes: ("search" | "semantic" | "callgraph")[];
|
|
30
31
|
}[] | undefined;
|
|
31
32
|
} | undefined;
|
|
33
|
+
storage?: {
|
|
34
|
+
cache_dir?: string | null | undefined;
|
|
35
|
+
} | undefined;
|
|
32
36
|
views?: {
|
|
33
37
|
enabled?: boolean | undefined;
|
|
34
38
|
} | undefined;
|
|
@@ -79,15 +83,19 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
79
83
|
runon_enabled?: boolean | undefined;
|
|
80
84
|
subagent_background?: boolean | undefined;
|
|
81
85
|
detach_on_user_message?: boolean | undefined;
|
|
86
|
+
changed_files?: "off" | "list" | "diff" | undefined;
|
|
82
87
|
db_schema_hints?: boolean | undefined;
|
|
83
88
|
long_running_reminder_enabled?: boolean | undefined;
|
|
84
89
|
long_running_reminder_interval_ms?: number | undefined;
|
|
85
90
|
foreground_wait_window_ms?: number | undefined;
|
|
86
91
|
watch_sync_max_ms?: number | undefined;
|
|
87
92
|
worker_wait_max_ms?: number | undefined;
|
|
93
|
+
memory_limit_mib?: number | undefined;
|
|
88
94
|
linux_scope?: boolean | undefined;
|
|
89
95
|
disclaim_privacy?: boolean | undefined;
|
|
90
96
|
powershell_tool?: boolean | undefined;
|
|
97
|
+
env?: Record<string, string> | undefined;
|
|
98
|
+
runon_env?: string[] | undefined;
|
|
91
99
|
} | undefined;
|
|
92
100
|
experimental?: {
|
|
93
101
|
bash?: {
|
|
@@ -143,7 +151,6 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
143
151
|
auto_update?: boolean | undefined;
|
|
144
152
|
bridge?: {
|
|
145
153
|
request_timeout_ms?: number | undefined;
|
|
146
|
-
hang_threshold?: number | undefined;
|
|
147
154
|
} | undefined;
|
|
148
155
|
subc?: {
|
|
149
156
|
connection_file?: string | undefined;
|
|
@@ -166,11 +173,13 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
166
173
|
} | undefined;
|
|
167
174
|
pi?: {
|
|
168
175
|
tool_presentation?: "top_level" | "host_default" | undefined;
|
|
176
|
+
external_access_ask?: boolean | undefined;
|
|
169
177
|
} | undefined;
|
|
170
178
|
harnesses?: Record<string, {
|
|
171
179
|
$schema?: string | undefined;
|
|
172
180
|
edit_mode?: "default" | "hashline" | undefined;
|
|
173
181
|
format_on_edit?: boolean | undefined;
|
|
182
|
+
revision_reads?: boolean | undefined;
|
|
174
183
|
formatter_timeout_secs?: number | undefined;
|
|
175
184
|
validate_on_edit?: "syntax" | "full" | undefined;
|
|
176
185
|
formatter?: Record<string, "biome" | "oxfmt" | "prettier" | "deno" | "ruff" | "black" | "rustfmt" | "goimports" | "gofmt" | "none"> | undefined;
|
|
@@ -189,6 +198,9 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
189
198
|
indexes: ("search" | "semantic" | "callgraph")[];
|
|
190
199
|
}[] | undefined;
|
|
191
200
|
} | undefined;
|
|
201
|
+
storage?: {
|
|
202
|
+
cache_dir?: string | null | undefined;
|
|
203
|
+
} | undefined;
|
|
192
204
|
views?: {
|
|
193
205
|
enabled?: boolean | undefined;
|
|
194
206
|
} | undefined;
|
|
@@ -239,15 +251,19 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
239
251
|
runon_enabled?: boolean | undefined;
|
|
240
252
|
subagent_background?: boolean | undefined;
|
|
241
253
|
detach_on_user_message?: boolean | undefined;
|
|
254
|
+
changed_files?: "off" | "list" | "diff" | undefined;
|
|
242
255
|
db_schema_hints?: boolean | undefined;
|
|
243
256
|
long_running_reminder_enabled?: boolean | undefined;
|
|
244
257
|
long_running_reminder_interval_ms?: number | undefined;
|
|
245
258
|
foreground_wait_window_ms?: number | undefined;
|
|
246
259
|
watch_sync_max_ms?: number | undefined;
|
|
247
260
|
worker_wait_max_ms?: number | undefined;
|
|
261
|
+
memory_limit_mib?: number | undefined;
|
|
248
262
|
linux_scope?: boolean | undefined;
|
|
249
263
|
disclaim_privacy?: boolean | undefined;
|
|
250
264
|
powershell_tool?: boolean | undefined;
|
|
265
|
+
env?: Record<string, string> | undefined;
|
|
266
|
+
runon_env?: string[] | undefined;
|
|
251
267
|
} | undefined;
|
|
252
268
|
experimental?: {
|
|
253
269
|
bash?: {
|
|
@@ -303,7 +319,6 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
303
319
|
auto_update?: boolean | undefined;
|
|
304
320
|
bridge?: {
|
|
305
321
|
request_timeout_ms?: number | undefined;
|
|
306
|
-
hang_threshold?: number | undefined;
|
|
307
322
|
} | undefined;
|
|
308
323
|
subc?: {
|
|
309
324
|
connection_file?: string | undefined;
|
|
@@ -326,6 +341,7 @@ export declare const OPENCODE_LIVE_CONFIG_KEYS: import("@cortexkit/aft-bridge").
|
|
|
326
341
|
} | undefined;
|
|
327
342
|
pi?: {
|
|
328
343
|
tool_presentation?: "top_level" | "host_default" | undefined;
|
|
344
|
+
external_access_ask?: boolean | undefined;
|
|
329
345
|
} | undefined;
|
|
330
346
|
}> | undefined;
|
|
331
347
|
}>[];
|
|
@@ -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,cAA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AAI,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
|
@@ -26,6 +26,7 @@ export declare const PiConfigSchema: z.ZodObject<{
|
|
|
26
26
|
top_level: "top_level";
|
|
27
27
|
host_default: "host_default";
|
|
28
28
|
}>>;
|
|
29
|
+
external_access_ask: z.ZodOptional<z.ZodBoolean>;
|
|
29
30
|
}, z.core.$strip>;
|
|
30
31
|
export type PiConfig = z.infer<typeof PiConfigSchema>;
|
|
31
32
|
export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
@@ -35,6 +36,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
35
36
|
hashline: "hashline";
|
|
36
37
|
}>>;
|
|
37
38
|
format_on_edit: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
revision_reads: z.ZodOptional<z.ZodBoolean>;
|
|
38
40
|
formatter_timeout_secs: z.ZodOptional<z.ZodNumber>;
|
|
39
41
|
validate_on_edit: z.ZodOptional<z.ZodEnum<{
|
|
40
42
|
syntax: "syntax";
|
|
@@ -91,6 +93,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
91
93
|
indexes: ("search" | "semantic" | "callgraph")[];
|
|
92
94
|
}>>>>;
|
|
93
95
|
}, z.core.$strip>>;
|
|
96
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
cache_dir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
94
99
|
views: z.ZodOptional<z.ZodObject<{
|
|
95
100
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
96
101
|
}, z.core.$strip>>;
|
|
@@ -149,15 +154,23 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
149
154
|
runon_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
150
155
|
subagent_background: z.ZodOptional<z.ZodBoolean>;
|
|
151
156
|
detach_on_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
changed_files: z.ZodOptional<z.ZodEnum<{
|
|
158
|
+
off: "off";
|
|
159
|
+
list: "list";
|
|
160
|
+
diff: "diff";
|
|
161
|
+
}>>;
|
|
152
162
|
db_schema_hints: z.ZodOptional<z.ZodBoolean>;
|
|
153
163
|
long_running_reminder_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
154
164
|
long_running_reminder_interval_ms: z.ZodOptional<z.ZodNumber>;
|
|
155
165
|
foreground_wait_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
156
166
|
watch_sync_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
157
167
|
worker_wait_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
memory_limit_mib: z.ZodOptional<z.ZodNumber>;
|
|
158
169
|
linux_scope: z.ZodOptional<z.ZodBoolean>;
|
|
159
170
|
disclaim_privacy: z.ZodOptional<z.ZodBoolean>;
|
|
160
171
|
powershell_tool: z.ZodOptional<z.ZodBoolean>;
|
|
172
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
173
|
+
runon_env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
174
|
}, z.core.$strip>]>>;
|
|
162
175
|
experimental: z.ZodOptional<z.ZodObject<{
|
|
163
176
|
bash: z.ZodOptional<z.ZodObject<{
|
|
@@ -227,7 +240,6 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
227
240
|
auto_update: z.ZodOptional<z.ZodBoolean>;
|
|
228
241
|
bridge: z.ZodOptional<z.ZodObject<{
|
|
229
242
|
request_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
230
|
-
hang_threshold: z.ZodOptional<z.ZodNumber>;
|
|
231
243
|
}, z.core.$strip>>;
|
|
232
244
|
subc: z.ZodOptional<z.ZodObject<{
|
|
233
245
|
connection_file: z.ZodOptional<z.ZodString>;
|
|
@@ -253,6 +265,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
253
265
|
top_level: "top_level";
|
|
254
266
|
host_default: "host_default";
|
|
255
267
|
}>>;
|
|
268
|
+
external_access_ask: z.ZodOptional<z.ZodBoolean>;
|
|
256
269
|
}, z.core.$strip>>;
|
|
257
270
|
harnesses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
258
271
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -261,6 +274,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
261
274
|
hashline: "hashline";
|
|
262
275
|
}>>;
|
|
263
276
|
format_on_edit: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
+
revision_reads: z.ZodOptional<z.ZodBoolean>;
|
|
264
278
|
formatter_timeout_secs: z.ZodOptional<z.ZodNumber>;
|
|
265
279
|
validate_on_edit: z.ZodOptional<z.ZodEnum<{
|
|
266
280
|
syntax: "syntax";
|
|
@@ -317,6 +331,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
317
331
|
indexes: ("search" | "semantic" | "callgraph")[];
|
|
318
332
|
}>>>>;
|
|
319
333
|
}, z.core.$strip>>;
|
|
334
|
+
storage: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
cache_dir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
}, z.core.$strip>>;
|
|
320
337
|
views: z.ZodOptional<z.ZodObject<{
|
|
321
338
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
322
339
|
}, z.core.$strip>>;
|
|
@@ -375,15 +392,23 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
375
392
|
runon_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
376
393
|
subagent_background: z.ZodOptional<z.ZodBoolean>;
|
|
377
394
|
detach_on_user_message: z.ZodOptional<z.ZodBoolean>;
|
|
395
|
+
changed_files: z.ZodOptional<z.ZodEnum<{
|
|
396
|
+
off: "off";
|
|
397
|
+
list: "list";
|
|
398
|
+
diff: "diff";
|
|
399
|
+
}>>;
|
|
378
400
|
db_schema_hints: z.ZodOptional<z.ZodBoolean>;
|
|
379
401
|
long_running_reminder_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
380
402
|
long_running_reminder_interval_ms: z.ZodOptional<z.ZodNumber>;
|
|
381
403
|
foreground_wait_window_ms: z.ZodOptional<z.ZodNumber>;
|
|
382
404
|
watch_sync_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
383
405
|
worker_wait_max_ms: z.ZodOptional<z.ZodNumber>;
|
|
406
|
+
memory_limit_mib: z.ZodOptional<z.ZodNumber>;
|
|
384
407
|
linux_scope: z.ZodOptional<z.ZodBoolean>;
|
|
385
408
|
disclaim_privacy: z.ZodOptional<z.ZodBoolean>;
|
|
386
409
|
powershell_tool: z.ZodOptional<z.ZodBoolean>;
|
|
410
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
411
|
+
runon_env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
387
412
|
}, z.core.$strip>]>>;
|
|
388
413
|
experimental: z.ZodOptional<z.ZodObject<{
|
|
389
414
|
bash: z.ZodOptional<z.ZodObject<{
|
|
@@ -453,7 +478,6 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
453
478
|
auto_update: z.ZodOptional<z.ZodBoolean>;
|
|
454
479
|
bridge: z.ZodOptional<z.ZodObject<{
|
|
455
480
|
request_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
456
|
-
hang_threshold: z.ZodOptional<z.ZodNumber>;
|
|
457
481
|
}, z.core.$strip>>;
|
|
458
482
|
subc: z.ZodOptional<z.ZodObject<{
|
|
459
483
|
connection_file: z.ZodOptional<z.ZodString>;
|
|
@@ -479,6 +503,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
479
503
|
top_level: "top_level";
|
|
480
504
|
host_default: "host_default";
|
|
481
505
|
}>>;
|
|
506
|
+
external_access_ask: z.ZodOptional<z.ZodBoolean>;
|
|
482
507
|
}, z.core.$strip>>;
|
|
483
508
|
}, z.core.$strict>>>>;
|
|
484
509
|
}, z.core.$strict>>;
|
|
@@ -581,6 +606,7 @@ export interface ResolvedBashConfig {
|
|
|
581
606
|
/** Detach wait:true bash calls on user messages; `&detach` overrides and is stripped before delivery. */
|
|
582
607
|
detach_on_user_message: boolean;
|
|
583
608
|
/** Read-only database CLI schema hints after missing-table/column errors. */
|
|
609
|
+
changed_files: "off" | "list" | "diff";
|
|
584
610
|
db_schema_hints: boolean;
|
|
585
611
|
long_running_reminder_enabled?: boolean;
|
|
586
612
|
long_running_reminder_interval_ms?: number;
|
|
@@ -593,8 +619,12 @@ export interface ResolvedBashConfig {
|
|
|
593
619
|
watch_sync_max_ms: number;
|
|
594
620
|
/** Longest a delegated worker's wait blocks (ms). Defaults to 1800000; at least 60000. */
|
|
595
621
|
worker_wait_max_ms: number;
|
|
622
|
+
/** Aggregate local-command ceiling in MiB; projects may only tighten it. */
|
|
623
|
+
memory_limit_mib?: number;
|
|
596
624
|
/** Pi-only manual PowerShell registration fallback. Default false. */
|
|
597
625
|
powershell_tool: boolean;
|
|
626
|
+
/** User-configured environment; never populated from a project tier. */
|
|
627
|
+
env: Record<string, string>;
|
|
598
628
|
}
|
|
599
629
|
/** Default foreground wait-window before auto-promotion (ms). */
|
|
600
630
|
export declare const FOREGROUND_WAIT_WINDOW_DEFAULT_MS = 15000;
|
|
@@ -676,14 +706,12 @@ export declare function deliverConfigLoadNotices(deliver: (message: string) => v
|
|
|
676
706
|
export declare function remoteRunsOffered(config: AftConfig): boolean;
|
|
677
707
|
/** Defaults for bridge transport when omitted from config. */
|
|
678
708
|
export declare const DEFAULT_BRIDGE_REQUEST_TIMEOUT_MS = 30000;
|
|
679
|
-
export declare const DEFAULT_BRIDGE_HANG_THRESHOLD = 2;
|
|
680
709
|
/** Default the client-side root reaper to disabled when no user configuration is provided; production deployments may enable it through their own configuration. */
|
|
681
710
|
export declare const DEFAULT_SUBC_CLIENT_REAPER = false;
|
|
682
711
|
export declare function resolveSubcClientReaper(config: AftConfig): boolean;
|
|
683
|
-
/** Resolved pool/bridge options from `config.bridge` (
|
|
712
|
+
/** Resolved pool/bridge options from `config.bridge` (default 30000). */
|
|
684
713
|
export declare function resolveBridgePoolTransportOptions(config: AftConfig): {
|
|
685
714
|
timeoutMs: number;
|
|
686
|
-
hangThreshold: number;
|
|
687
715
|
};
|
|
688
716
|
export interface ResolvedAftConfigPaths {
|
|
689
717
|
userConfigPath: string;
|
|
@@ -704,10 +732,17 @@ export declare function buildConfigTierConfigureParams(projectDirectory: string,
|
|
|
704
732
|
* The result always carries a sorted `disabled_tools` list (absent user base
|
|
705
733
|
* defaults to aft_move/aft_delete) and fully resolved `indexes`. Retired keys
|
|
706
734
|
* are translated, never refused. Throws {@link ConfigRejectedError} when the
|
|
707
|
-
*
|
|
735
|
+
* document or security settings are invalid, or the resolved configuration is
|
|
736
|
+
* incomplete; callers must then publish nothing
|
|
708
737
|
* (startup) or keep their last-good config (reload).
|
|
709
738
|
*/
|
|
710
739
|
export declare function loadAftConfig(projectDirectory: string): AftConfig;
|
|
740
|
+
/**
|
|
741
|
+
* Identity of each config file a load for `projectDirectory` would read:
|
|
742
|
+
* path plus device, inode, size, mtime and ctime, or "absent". Any edit,
|
|
743
|
+
* replacement, chmod or deletion changes it.
|
|
744
|
+
*/
|
|
745
|
+
export declare function configFilesIdentity(projectDirectory: string): string;
|
|
711
746
|
/**
|
|
712
747
|
* Wrap a config loader for hot paths that only need the current value (the
|
|
713
748
|
* OpenCode `chat.message` hook loads it on every message). A full load reads
|
|
@@ -717,8 +752,8 @@ export declare function loadAftConfig(projectDirectory: string): AftConfig;
|
|
|
717
752
|
*
|
|
718
753
|
* The identity is taken before loading, so a file written during the load
|
|
719
754
|
* (including the loader's own migration rewrite) forces one more load next
|
|
720
|
-
* time.
|
|
721
|
-
*
|
|
755
|
+
* time. Rejected configurations are remembered by the same identity so an
|
|
756
|
+
* unchanged invalid file is not repeatedly parsed; other failures remain retryable.
|
|
722
757
|
*/
|
|
723
758
|
export declare function createUnchangedConfigLoader(load: (projectDirectory: string) => AftConfig): (projectDirectory: string) => AftConfig;
|
|
724
759
|
//# sourceMappingURL=config.d.ts.map
|
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,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,4BAA4B,EAEjC,KAAK,UAAU,EAgBf,KAAK,qBAAqB,EAe3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAkE5D,oGAAoG;AACpG,eAAO,MAAM,6BAA6B;;;;EAAmC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAoXtF,QAAA,MAAM,kBAAkB;;;;iBAOtB,CAAC;AAyBH,eAAO,MAAM,sCAAsC,SAAU,CAAC;AAC9D,eAAO,MAAM,kCAAkC,QAAS,CAAC;AACzD,eAAO,MAAM,kCAAkC,SAAU,CAAC;AAmF1D,eAAO,MAAM,sBAAsB;;;EAAwC,CAAC;AAC5E,MAAM,MAAM,kBAAkB,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