@cortexkit/aft-opencode 0.20.1 → 0.22.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 +0 -2
- package/dist/bg-notifications.d.ts.map +1 -1
- package/dist/configure-warnings.d.ts +2 -0
- package/dist/configure-warnings.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/cache.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +933 -284
- package/dist/lsp-auto-install.d.ts.map +1 -1
- package/dist/lsp-github-install.d.ts +12 -1
- package/dist/lsp-github-install.d.ts.map +1 -1
- package/dist/notifications.d.ts.map +1 -1
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/subagent-detect.d.ts +13 -0
- package/dist/shared/subagent-detect.d.ts.map +1 -0
- package/dist/tools/ast.d.ts.map +1 -1
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/hoisted.d.ts.map +1 -1
- package/dist/tools/imports.d.ts.map +1 -1
- package/dist/tools/permissions.d.ts +69 -0
- package/dist/tools/permissions.d.ts.map +1 -1
- package/dist/tools/refactoring.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/tools/structure.d.ts.map +1 -1
- package/dist/tui.js +43 -18
- package/package.json +7 -7
- package/src/shared/rpc-server.ts +5 -2
- package/src/shared/subagent-detect.ts +150 -0
- package/src/tui/index.tsx +72 -11
- package/dist/shared/runtime.d.ts +0 -10
- package/dist/shared/runtime.d.ts.map +0 -1
- package/src/shared/runtime.ts +0 -26
package/src/shared/runtime.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
type BridgeLike = {
|
|
2
|
-
getBridge: (
|
|
3
|
-
directory: string,
|
|
4
|
-
sessionID: string,
|
|
5
|
-
) => {
|
|
6
|
-
send: (command: string, params?: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const GLOBAL_KEY = "__AFT_SHARED_BRIDGE_POOL__";
|
|
11
|
-
|
|
12
|
-
function getGlobalState(): { [GLOBAL_KEY]?: BridgeLike | null } {
|
|
13
|
-
return globalThis as { [GLOBAL_KEY]?: BridgeLike | null };
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function setSharedBridgePool(pool: BridgeLike): void {
|
|
17
|
-
getGlobalState()[GLOBAL_KEY] = pool;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function getSharedBridgePool(): BridgeLike | null {
|
|
21
|
-
return getGlobalState()[GLOBAL_KEY] ?? null;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function clearSharedBridgePool(): void {
|
|
25
|
-
getGlobalState()[GLOBAL_KEY] = null;
|
|
26
|
-
}
|