@cortexkit/aft-pi 0.57.2 → 0.58.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/README.md +15 -22
- package/dist/bash-wait-detach.d.ts +19 -4
- package/dist/bash-wait-detach.d.ts.map +1 -1
- package/dist/config-error-state.d.ts +45 -0
- package/dist/config-error-state.d.ts.map +1 -0
- package/dist/config.d.ts +74 -70
- package/dist/config.d.ts.map +1 -1
- package/dist/dialogs/status-dialog.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2533 -878
- package/dist/logger.d.ts +7 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/lsp-auto-install.d.ts.map +1 -1
- package/dist/session-kind.d.ts +47 -0
- package/dist/session-kind.d.ts.map +1 -0
- package/dist/shared/status.d.ts +20 -0
- package/dist/shared/status.d.ts.map +1 -1
- package/dist/shutdown-hooks.d.ts +3 -6
- package/dist/shutdown-hooks.d.ts.map +1 -1
- package/dist/tool-registration.d.ts +22 -6
- package/dist/tool-registration.d.ts.map +1 -1
- package/dist/tools/ast.d.ts +2 -2
- package/dist/tools/bash.d.ts +16 -6
- package/dist/tools/bash.d.ts.map +1 -1
- package/dist/tools/hoisted.d.ts +1 -3
- package/dist/tools/hoisted.d.ts.map +1 -1
- package/dist/tools/inspect.d.ts.map +1 -1
- package/dist/tools/reading.d.ts.map +1 -1
- package/dist/tools/semantic.d.ts +2 -2
- package/dist/workflow-hints.d.ts +2 -5
- package/dist/workflow-hints.d.ts.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ pi install npm:@cortexkit/aft-pi@0.13.1
|
|
|
22
22
|
|
|
23
23
|
### Hoisted built-in overrides
|
|
24
24
|
|
|
25
|
-
Pi's default `read`, `write`, `edit`, and `
|
|
25
|
+
Pi's default `read`, `write`, `edit`, `grep`, and `bash` are replaced with AFT-backed versions. List a name in `disabled_tools` (for example `["grep"]`) to keep Pi's native tool for that slot. The AFT background-bash companions `bash_status`, `bash_watch`, `bash_write`, and `bash_kill` register independently of `bash`.
|
|
26
26
|
|
|
27
27
|
| Tool | Pi built-in | AFT replacement |
|
|
28
28
|
| ------- | ------------------------ | -------------------------------------------------------------------------------------------- |
|
|
@@ -65,13 +65,6 @@ All keys are optional. Example:
|
|
|
65
65
|
|
|
66
66
|
```jsonc
|
|
67
67
|
{
|
|
68
|
-
// "minimal" | "recommended" (default) | "all"
|
|
69
|
-
"tool_surface": "recommended",
|
|
70
|
-
|
|
71
|
-
// Default true replaces Pi's native file and bash tools.
|
|
72
|
-
// Set false to retain Pi's tools and use aft_read/aft_write/aft_edit/aft_bash for AFT.
|
|
73
|
-
"hoist_builtin_tools": false,
|
|
74
|
-
|
|
75
68
|
// Auto-format on write/edit using project formatter config.
|
|
76
69
|
"format_on_edit": true,
|
|
77
70
|
|
|
@@ -82,14 +75,12 @@ All keys are optional. Example:
|
|
|
82
75
|
// Defaults to false to match Pi's built-in behavior.
|
|
83
76
|
"restrict_to_project_root": false,
|
|
84
77
|
|
|
85
|
-
//
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// Enable semantic search (aft_search). Requires ONNX runtime for local
|
|
89
|
-
// embeddings; downloaded automatically on supported platforms.
|
|
90
|
-
"experimental_semantic_search": true,
|
|
78
|
+
// Background indexes, all on by default. The local semantic backend may
|
|
79
|
+
// download an ONNX runtime and model and use CPU.
|
|
80
|
+
"indexes": { "trigram": true, "semantic": true, "callgraph": true },
|
|
91
81
|
|
|
92
|
-
//
|
|
82
|
+
// Tools that are not registered. Absent => ["aft_move", "aft_delete"];
|
|
83
|
+
// an explicit list replaces that default ([] enables every tool).
|
|
93
84
|
"disabled_tools": ["aft_move"],
|
|
94
85
|
|
|
95
86
|
// Pi / OMP harness options:
|
|
@@ -112,7 +103,7 @@ All keys are optional. Example:
|
|
|
112
103
|
// Missing formatter/checker/LSP warnings after configure: "toast" (default), "log", or "chat".
|
|
113
104
|
"configure_warnings_delivery": "toast",
|
|
114
105
|
|
|
115
|
-
// Semantic backend
|
|
106
|
+
// Semantic backend for the semantic index.
|
|
116
107
|
// "fastembed" (default, local ONNX) | "openai_compatible" | "ollama"
|
|
117
108
|
"semantic": {
|
|
118
109
|
"backend": "fastembed",
|
|
@@ -125,13 +116,15 @@ All keys are optional. Example:
|
|
|
125
116
|
|
|
126
117
|
Sensitive semantic backend fields (`backend`, `base_url`, `api_key_env`) are only read from **user-level** config. Project configs that try to set them are ignored with a warning to prevent credential-exfiltration via malicious repos.
|
|
127
118
|
|
|
128
|
-
###
|
|
119
|
+
### Registered tools
|
|
129
120
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
121
|
+
Every AFT tool registers unless listed in `disabled_tools`: `read`, `write`, `edit`, `grep`,
|
|
122
|
+
`bash` and its companions, `aft_outline`, `aft_zoom`, `aft_search`, `aft_callgraph`,
|
|
123
|
+
`aft_inspect`, `aft_import`, `aft_safety`, `aft_conflicts`, `ast_grep_search`,
|
|
124
|
+
`ast_grep_replace`, `aft_delete` and `aft_move` (the last two are in the default disabled
|
|
125
|
+
list). Pi has no AFT `apply_patch` or `glob` tool. Index state and runtime settings never
|
|
126
|
+
remove a registration. `tool_surface`, `hoist_builtin_tools` and the `search_index` /
|
|
127
|
+
`semantic_search` keys are translated during v0.58 and rejected from v0.59.
|
|
135
128
|
|
|
136
129
|
## Architecture
|
|
137
130
|
|
|
@@ -1,11 +1,26 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type AftTransportPool } from "@cortexkit/aft-bridge";
|
|
2
2
|
import type { AftConfig } from "./config.js";
|
|
3
3
|
type ActiveBridgePool = Pick<AftTransportPool, "getActiveBridgeForRoot">;
|
|
4
|
-
export
|
|
4
|
+
export { BASH_WAIT_DETACH_MAGIC_KEYWORD } from "@cortexkit/aft-bridge";
|
|
5
5
|
/** Strip the `&detach` control token before Pi's input transform delivers the user message to the model. */
|
|
6
6
|
export declare function stripUserMessageDetachKeyword(messageText: string): string;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Decide whether a message should detach an active wait:true bash call and
|
|
9
|
+
* abort a sync bash_watch. `messageText` is read before the keyword is
|
|
10
|
+
* stripped from it.
|
|
11
|
+
*/
|
|
8
12
|
export declare function shouldDetachBashWaitOnUserMessage(config: AftConfig, messageText: string): boolean;
|
|
13
|
+
/** The fields of Pi's `input` event this module reads. */
|
|
14
|
+
export interface PiInputEvent {
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Handle Pi's `input` event for the session's blocking waits: decide before
|
|
19
|
+
* the `&detach` token is stripped, then (only when the decision says so) abort
|
|
20
|
+
* any sync bash_watch and detach any wait:true bash. Both waits follow the same
|
|
21
|
+
* decision, so `bash.detach_on_user_message: false` protects a sync bash_watch
|
|
22
|
+
* as well. Returns the text to deliver to the model.
|
|
23
|
+
*/
|
|
24
|
+
export declare function interruptBashWaitsForInput(pool: ActiveBridgePool, config: AftConfig, projectRoot: string, sessionID: string | undefined, event: PiInputEvent): string;
|
|
9
25
|
export declare function signalBashWaitDetachForProject(pool: ActiveBridgePool, projectRoot: string, sessionID: string | undefined): Promise<void>;
|
|
10
|
-
export {};
|
|
11
26
|
//# 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,
|
|
1
|
+
{"version":3,"file":"bash-wait-detach.d.ts","sourceRoot":"","sources":["../src/bash-wait-detach.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EAItB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,KAAK,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,CAAC;AAEzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAIvE,4GAA4G;AAC5G,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAIzE;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAKjG;AAED,0DAA0D;AAC1D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,SAAS,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,KAAK,EAAE,YAAY,GAClB,MAAM,CAMR;AAaD,wBAAsB,8BAA8B,CAClD,IAAI,EAAE,gBAAgB,EACtB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,OAAO,CAAC,IAAI,CAAC,CAWf"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Pi side of the config error state (see `config-error.ts` in
|
|
3
|
+
* `@cortexkit/aft-bridge`). An unusable configuration used to make the
|
|
4
|
+
* extension register nothing, or throw from its factory, which Pi records
|
|
5
|
+
* only in its own log. Instead the extension registers AFT's tool surface and
|
|
6
|
+
* every call fails with the error and its fix; no binary is resolved and no
|
|
7
|
+
* bridge is started.
|
|
8
|
+
*/
|
|
9
|
+
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
10
|
+
import { type AftConfig, type ConfigLoadError } from "./config.js";
|
|
11
|
+
/** Status-bar key the config error is shown under. */
|
|
12
|
+
export declare const CONFIG_ERROR_STATUS_KEY = "aft";
|
|
13
|
+
export type PiBootstrapConfig = {
|
|
14
|
+
ok: true;
|
|
15
|
+
config: AftConfig;
|
|
16
|
+
} | {
|
|
17
|
+
ok: false;
|
|
18
|
+
/** The error, its fix, and the note that a restart is needed. */
|
|
19
|
+
message: string;
|
|
20
|
+
/** Config whose tool surface is registered: the loaded one when usable, else the default. */
|
|
21
|
+
config: AftConfig;
|
|
22
|
+
};
|
|
23
|
+
/** Side effects of the config load, replaceable in tests. */
|
|
24
|
+
export interface PiBootstrapDependencies {
|
|
25
|
+
loadConfig(directory: string): AftConfig;
|
|
26
|
+
configLoadErrors(): readonly ConfigLoadError[];
|
|
27
|
+
/** Moves legacy config files into the CortexKit layout; returns user-facing warnings. */
|
|
28
|
+
migrateConfigLocations(directory: string): string[];
|
|
29
|
+
subcConnectionFileError(subcConnectionFile: string | undefined): Promise<string | null>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Load the config for `directory`, migrating legacy config file locations in
|
|
33
|
+
* between two loads (migration may move the file the first read came from).
|
|
34
|
+
* A rejected configuration, a file that does not parse, any other load
|
|
35
|
+
* failure, or a configured subc connection file that does not exist yields
|
|
36
|
+
* the config error state. Migration is skipped when the first load fails.
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolvePiBootstrapConfig(directory: string, notify: (message: string) => void, dependencies?: PiBootstrapDependencies): Promise<PiBootstrapConfig>;
|
|
39
|
+
/**
|
|
40
|
+
* Register the config error state: the tool surface `config` selects with
|
|
41
|
+
* every call failing, and the error on one line in Pi's status bar. Commands
|
|
42
|
+
* and lifecycle hooks are not registered; there is no bridge for them.
|
|
43
|
+
*/
|
|
44
|
+
export declare function registerPiConfigErrorState(pi: ExtensionAPI, config: AftConfig, message: string): void;
|
|
45
|
+
//# sourceMappingURL=config-error-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-error-state.d.ts","sourceRoot":"","sources":["../src/config-error-state.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,EACL,KAAK,SAAS,EACd,KAAK,eAAe,EAIrB,MAAM,aAAa,CAAC;AAKrB,sDAAsD;AACtD,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAE7C,MAAM,MAAM,iBAAiB,GACzB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,GAC/B;IACE,EAAE,EAAE,KAAK,CAAC;IACV,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,6FAA6F;IAC7F,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AAEN,6DAA6D;AAC7D,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,gBAAgB,IAAI,SAAS,eAAe,EAAE,CAAC;IAC/C,yFAAyF;IACzF,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpD,uBAAuB,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACzF;AA+BD;;;;;;GAMG;AACH,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EACjC,YAAY,GAAE,uBAA6C,GAC1D,OAAO,CAAC,iBAAiB,CAAC,CAe5B;AAwBD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,MAAM,GACd,IAAI,CAsBN"}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type AftConfigFileMigrationResult, type ConfigTier } from "@cortexkit/aft-bridge";
|
|
1
|
+
import { type AftConfigFileMigrationResult, type ConfigTier, type RawIndexesConfig, type ResolvedIndexesConfig } from "@cortexkit/aft-bridge";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
+
export { ConfigRejectedError } from "@cortexkit/aft-bridge";
|
|
3
4
|
export type Formatter = "biome" | "oxfmt" | "prettier" | "deno" | "ruff" | "black" | "rustfmt" | "goimports" | "gofmt" | "none";
|
|
4
5
|
export type Checker = "tsc" | "tsgo" | "biome" | "pyright" | "ruff" | "cargo" | "go" | "staticcheck" | "none";
|
|
5
6
|
/** How configure-time missing-tool warnings are delivered by the Pi plugin. */
|
|
@@ -22,25 +23,17 @@ export interface SubcConfig {
|
|
|
22
23
|
client_reaper?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export interface GhShimConfig {
|
|
25
|
-
/** Deprecated alias for github.shim; removed in v0.57.0. */
|
|
26
|
-
enabled?: boolean;
|
|
27
26
|
/** User-tier AFT image used by the managed `gh` entry. Defaults to the running image. */
|
|
28
27
|
binary_path?: string;
|
|
29
28
|
}
|
|
30
29
|
export interface GithubConfig {
|
|
31
|
-
/** Master switch for every GitHub integration. Default: true. */
|
|
32
|
-
enabled?: boolean;
|
|
33
30
|
/** Interpose the governed `gh` shim in agent child PATHs. Default: true. */
|
|
34
31
|
shim?: boolean;
|
|
35
32
|
/** Allow structured issue:// and pr:// reads. Default: false. */
|
|
36
33
|
read?: boolean;
|
|
37
|
-
/** Allow issue and pull-request comment writes. Default: false. */
|
|
34
|
+
/** Allow issue and pull-request comment writes (implies read). Default: false. */
|
|
38
35
|
write?: boolean;
|
|
39
36
|
}
|
|
40
|
-
export interface GhReadConfig {
|
|
41
|
-
/** Deprecated alias for github.read; removed in v0.57.0. */
|
|
42
|
-
enabled?: boolean;
|
|
43
|
-
}
|
|
44
37
|
export interface GitConfig {
|
|
45
38
|
/** "off" (default), "auto", or an explicit "Name <email>" identity. */
|
|
46
39
|
co_author?: string;
|
|
@@ -150,7 +143,6 @@ export interface ConfigureExperimentalOverrides {
|
|
|
150
143
|
bash_long_running_reminder_interval_ms?: number;
|
|
151
144
|
experimental_lsp_ty?: boolean;
|
|
152
145
|
}
|
|
153
|
-
export type ToolSurface = "minimal" | "recommended" | "all";
|
|
154
146
|
/** Sandbox settings for first-party Pi processes. */
|
|
155
147
|
export interface SandboxConfig {
|
|
156
148
|
/** Enable native containment for first-party bash and PTY processes. Default: false. */
|
|
@@ -165,12 +157,18 @@ export interface SandboxConfig {
|
|
|
165
157
|
* omitted fields use the normal bash defaults during resolution.
|
|
166
158
|
*/
|
|
167
159
|
export interface BashConfig {
|
|
160
|
+
/** Runtime gate for every bash operation. Default true; false reports `bash_disabled`. */
|
|
161
|
+
enabled?: boolean;
|
|
168
162
|
rewrite?: boolean;
|
|
169
163
|
compress?: boolean;
|
|
170
164
|
background?: boolean;
|
|
171
165
|
/** Permit per-command host fallback after AFT transport failure. Default false. */
|
|
172
166
|
host_fallback?: boolean;
|
|
173
|
-
/**
|
|
167
|
+
/**
|
|
168
|
+
* Allow worker sessions (headless `pi -p` / JSON runs, or MAGIC_CONTEXT_PI_SUBAGENT=1)
|
|
169
|
+
* to use background bash; when false, requests block to completion and async
|
|
170
|
+
* bash_watch becomes a sync wait. Default true.
|
|
171
|
+
*/
|
|
174
172
|
subagent_background?: boolean;
|
|
175
173
|
/** Detach wait:true bash calls on user messages; `&detach` overrides, is stripped before delivery, and a token-only message gets a minimal replacement. */
|
|
176
174
|
detach_on_user_message?: boolean;
|
|
@@ -189,14 +187,25 @@ export interface BashConfig {
|
|
|
189
187
|
powershell_tool?: boolean;
|
|
190
188
|
}
|
|
191
189
|
export interface ResolvedGithubConfig {
|
|
192
|
-
enabled: boolean;
|
|
193
190
|
shim: boolean;
|
|
194
191
|
read: boolean;
|
|
195
192
|
write: boolean;
|
|
196
193
|
}
|
|
197
|
-
/** Resolve
|
|
194
|
+
/** Resolve GitHub capability leaves and the write-implies-read safety rule. */
|
|
198
195
|
export declare function resolveGithubConfig(config: AftConfig): ResolvedGithubConfig;
|
|
196
|
+
/**
|
|
197
|
+
* Whether a tool is registered, for description wording only (for example,
|
|
198
|
+
* whether to mention `aft_zoom`). Registration itself goes through
|
|
199
|
+
* {@link resolvedDisabledTools}, which refuses a config without a resolved list.
|
|
200
|
+
*/
|
|
199
201
|
export declare function toolEnabled(config: AftConfig, toolName: string): boolean;
|
|
202
|
+
/**
|
|
203
|
+
* The resolved disabled list. `loadAftConfig` always sets it; a config that
|
|
204
|
+
* reaches registration without it is rejected instead of treated as [].
|
|
205
|
+
*/
|
|
206
|
+
export declare function resolvedDisabledTools(config: AftConfig): readonly string[];
|
|
207
|
+
/** Resolved index switches (all default on). */
|
|
208
|
+
export declare function resolvedIndexes(config: AftConfig): ResolvedIndexesConfig;
|
|
200
209
|
export interface ViewsConfig {
|
|
201
210
|
/** Enable content-addressed index views. Default: false. */
|
|
202
211
|
enabled?: boolean;
|
|
@@ -208,8 +217,6 @@ export interface AftConfig {
|
|
|
208
217
|
* validation. `aft setup` auto-inserts this.
|
|
209
218
|
*/
|
|
210
219
|
$schema?: string;
|
|
211
|
-
/** Master switch for AFT. Default true. Project config may set it because turning AFT off is not a privilege escalation. */
|
|
212
|
-
enabled?: boolean;
|
|
213
220
|
/** Select the edit/read surface. `hashline` exposes tagged reads and `{ patch }` edits. */
|
|
214
221
|
edit_mode?: "default" | "hashline";
|
|
215
222
|
format_on_edit?: boolean;
|
|
@@ -220,21 +227,23 @@ export interface AftConfig {
|
|
|
220
227
|
checker?: Record<string, Checker>;
|
|
221
228
|
/** Configure-time missing-tool warning delivery. Default: toast. */
|
|
222
229
|
configure_warnings_delivery?: ConfigureWarningsDelivery;
|
|
223
|
-
/**
|
|
224
|
-
|
|
225
|
-
|
|
230
|
+
/**
|
|
231
|
+
* Tool names that are not registered; every other AFT tool is registered.
|
|
232
|
+
* Absent from the user config ⇒ ["aft_move", "aft_delete"]; an explicit list
|
|
233
|
+
* (including []) replaces that default. A project config may only add
|
|
234
|
+
* names and cannot disable aft_safety or a host tool slot.
|
|
235
|
+
*/
|
|
226
236
|
disabled_tools?: string[];
|
|
227
237
|
restrict_to_project_root?: boolean;
|
|
228
|
-
|
|
238
|
+
/** Background indexes. Each defaults on; a project config can only turn one off. */
|
|
239
|
+
indexes?: RawIndexesConfig;
|
|
229
240
|
/** User-tier standing roots; project config cannot configure this machine state. */
|
|
230
241
|
index?: IndexConfig;
|
|
231
|
-
semantic_search?: boolean;
|
|
232
242
|
/** Content-addressed index views. Disabled by default. */
|
|
233
243
|
views?: ViewsConfig;
|
|
234
|
-
callgraph_store?: boolean;
|
|
235
244
|
/** Number of files to parse in a single batch during callgraph store cold build. Lower values reduce peak memory during cold build. Default: 100. */
|
|
236
245
|
callgraph_chunk_size?: number;
|
|
237
|
-
/** Codebase health inspection config.
|
|
246
|
+
/** Codebase health inspection config. `inspect.enabled=false` makes aft_inspect report inspect_disabled. */
|
|
238
247
|
inspect?: InspectConfig;
|
|
239
248
|
/** Idle reclamation windows for unbound-root artifacts and language servers. */
|
|
240
249
|
idle?: IdleConfig;
|
|
@@ -251,15 +260,15 @@ export interface AftConfig {
|
|
|
251
260
|
/** Native first-party bash sandbox. Write allowances are user-only; a project may enable but never disable. */
|
|
252
261
|
sandbox?: SandboxConfig;
|
|
253
262
|
/**
|
|
254
|
-
* Bash
|
|
255
|
-
*
|
|
263
|
+
* Bash runtime configuration (runtime gate + rewrite + compress +
|
|
264
|
+
* background). Registration is controlled by `disabled_tools` only.
|
|
256
265
|
* Graduated from `experimental.bash.*` in v0.27.2; the legacy nested
|
|
257
266
|
* form is still accepted for backward compat.
|
|
258
267
|
*
|
|
259
|
-
* - `true` — all sub-features on
|
|
260
|
-
* - `false` —
|
|
261
|
-
* - `{ rewrite?, compress?, background?, ... }` — partial
|
|
262
|
-
* missing sub-keys default to `true`
|
|
268
|
+
* - `true` — runtime on, all sub-features on (the default)
|
|
269
|
+
* - `false` — runtime gate off; bash operations report `bash_disabled`
|
|
270
|
+
* - `{ enabled?, rewrite?, compress?, background?, ... }` — partial
|
|
271
|
+
* override; missing sub-keys default to `true`
|
|
263
272
|
*/
|
|
264
273
|
bash?: boolean | BashConfig;
|
|
265
274
|
experimental?: ExperimentalConfig;
|
|
@@ -269,10 +278,8 @@ export interface AftConfig {
|
|
|
269
278
|
bridge?: BridgeConfig;
|
|
270
279
|
subc?: SubcConfig;
|
|
271
280
|
github?: GithubConfig;
|
|
272
|
-
/**
|
|
281
|
+
/** Managed `gh` shim binary override (user-only). Whether the shim is used is `github.shim`. */
|
|
273
282
|
gh_shim?: GhShimConfig;
|
|
274
|
-
/** Deprecated alias block for github.read; removed in v0.57.0. */
|
|
275
|
-
gh_read?: GhReadConfig;
|
|
276
283
|
git?: GitConfig;
|
|
277
284
|
/** Pi and OMP harness-specific configuration. */
|
|
278
285
|
pi?: PiConfig;
|
|
@@ -320,16 +327,15 @@ export declare function clampBashWatchSyncMaxMs(value: number | undefined): numb
|
|
|
320
327
|
* Single source of truth for bash config across the Pi plugin. Resolution
|
|
321
328
|
* order (highest priority wins):
|
|
322
329
|
*
|
|
323
|
-
* 1. Top-level `bash: false` →
|
|
330
|
+
* 1. Top-level `bash: false` → runtime off (sub-features all false)
|
|
324
331
|
* 2. Top-level `bash: true` → fully enabled (sub-features all true)
|
|
325
|
-
* 3. Top-level `bash: { ... }` →
|
|
326
|
-
* when not specified
|
|
332
|
+
* 3. Top-level `bash: { ... }` → runtime gate from `enabled` (default
|
|
333
|
+
* true); each sub-feature defaults true when not specified
|
|
327
334
|
* 4. Top-level `bash` absent + any `experimental.bash.*` set → legacy
|
|
328
335
|
* fallback; sub-features take their explicit values (default false
|
|
329
|
-
* to preserve pre-v0.27.2 behavior — that block was opt-in)
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
* - "recommended" or "all" → enabled with all sub-features on
|
|
336
|
+
* to preserve pre-v0.27.2 behavior — that block was opt-in); the
|
|
337
|
+
* runtime gate stays on
|
|
338
|
+
* 5. Top-level `bash` absent + no experimental → everything on
|
|
333
339
|
*
|
|
334
340
|
* Mirrors OpenCode's resolver exactly. Reminder tuning rides through from
|
|
335
341
|
* whichever surface specified it (top-level wins, legacy fills the gap).
|
|
@@ -337,7 +343,6 @@ export declare function clampBashWatchSyncMaxMs(value: number | undefined): numb
|
|
|
337
343
|
export declare function resolveBashConfig(config: AftConfig): ResolvedBashConfig;
|
|
338
344
|
export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
339
345
|
$schema: z.ZodOptional<z.ZodString>;
|
|
340
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
341
346
|
edit_mode: z.ZodOptional<z.ZodEnum<{
|
|
342
347
|
default: "default";
|
|
343
348
|
hashline: "hashline";
|
|
@@ -376,15 +381,13 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
376
381
|
log: "log";
|
|
377
382
|
chat: "chat";
|
|
378
383
|
}>>;
|
|
379
|
-
hoist_builtin_tools: z.ZodOptional<z.ZodBoolean>;
|
|
380
|
-
tool_surface: z.ZodOptional<z.ZodEnum<{
|
|
381
|
-
minimal: "minimal";
|
|
382
|
-
recommended: "recommended";
|
|
383
|
-
all: "all";
|
|
384
|
-
}>>;
|
|
385
384
|
disabled_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
386
385
|
restrict_to_project_root: z.ZodOptional<z.ZodBoolean>;
|
|
387
|
-
|
|
386
|
+
indexes: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
trigram: z.ZodOptional<z.ZodBoolean>;
|
|
388
|
+
semantic: z.ZodOptional<z.ZodBoolean>;
|
|
389
|
+
callgraph: z.ZodOptional<z.ZodBoolean>;
|
|
390
|
+
}, z.core.$strip>>;
|
|
388
391
|
index: z.ZodOptional<z.ZodObject<{
|
|
389
392
|
roots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
390
393
|
path: z.ZodString;
|
|
@@ -401,11 +404,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
401
404
|
indexes: ("search" | "semantic" | "callgraph")[];
|
|
402
405
|
}>>>>;
|
|
403
406
|
}, z.core.$strip>>;
|
|
404
|
-
semantic_search: z.ZodOptional<z.ZodBoolean>;
|
|
405
407
|
views: z.ZodOptional<z.ZodObject<{
|
|
406
408
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
407
409
|
}, z.core.$strip>>;
|
|
408
|
-
callgraph_store: z.ZodOptional<z.ZodBoolean>;
|
|
409
410
|
callgraph_chunk_size: z.ZodOptional<z.ZodNumber>;
|
|
410
411
|
inspect: z.ZodOptional<z.ZodObject<{
|
|
411
412
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -437,6 +438,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
437
438
|
read_deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
438
439
|
}, z.core.$strip>>;
|
|
439
440
|
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
441
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
440
442
|
rewrite: z.ZodOptional<z.ZodBoolean>;
|
|
441
443
|
compress: z.ZodOptional<z.ZodBoolean>;
|
|
442
444
|
background: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -507,24 +509,18 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
507
509
|
connection_file: z.ZodOptional<z.ZodString>;
|
|
508
510
|
}, z.core.$strip>>;
|
|
509
511
|
github: z.ZodOptional<z.ZodObject<{
|
|
510
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
511
512
|
shim: z.ZodOptional<z.ZodBoolean>;
|
|
512
513
|
read: z.ZodOptional<z.ZodBoolean>;
|
|
513
514
|
write: z.ZodOptional<z.ZodBoolean>;
|
|
514
515
|
}, z.core.$strip>>;
|
|
515
516
|
gh_shim: z.ZodOptional<z.ZodObject<{
|
|
516
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
517
517
|
binary_path: z.ZodOptional<z.ZodString>;
|
|
518
518
|
}, z.core.$strip>>;
|
|
519
|
-
gh_read: z.ZodOptional<z.ZodObject<{
|
|
520
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
521
|
-
}, z.core.$strip>>;
|
|
522
519
|
git: z.ZodOptional<z.ZodObject<{
|
|
523
520
|
co_author: z.ZodOptional<z.ZodString>;
|
|
524
521
|
}, z.core.$strip>>;
|
|
525
522
|
harnesses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodObject<{
|
|
526
523
|
$schema: z.ZodOptional<z.ZodString>;
|
|
527
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
528
524
|
edit_mode: z.ZodOptional<z.ZodEnum<{
|
|
529
525
|
default: "default";
|
|
530
526
|
hashline: "hashline";
|
|
@@ -563,15 +559,13 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
563
559
|
log: "log";
|
|
564
560
|
chat: "chat";
|
|
565
561
|
}>>;
|
|
566
|
-
hoist_builtin_tools: z.ZodOptional<z.ZodBoolean>;
|
|
567
|
-
tool_surface: z.ZodOptional<z.ZodEnum<{
|
|
568
|
-
minimal: "minimal";
|
|
569
|
-
recommended: "recommended";
|
|
570
|
-
all: "all";
|
|
571
|
-
}>>;
|
|
572
562
|
disabled_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
573
563
|
restrict_to_project_root: z.ZodOptional<z.ZodBoolean>;
|
|
574
|
-
|
|
564
|
+
indexes: z.ZodOptional<z.ZodObject<{
|
|
565
|
+
trigram: z.ZodOptional<z.ZodBoolean>;
|
|
566
|
+
semantic: z.ZodOptional<z.ZodBoolean>;
|
|
567
|
+
callgraph: z.ZodOptional<z.ZodBoolean>;
|
|
568
|
+
}, z.core.$strip>>;
|
|
575
569
|
index: z.ZodOptional<z.ZodObject<{
|
|
576
570
|
roots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
577
571
|
path: z.ZodString;
|
|
@@ -588,11 +582,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
588
582
|
indexes: ("search" | "semantic" | "callgraph")[];
|
|
589
583
|
}>>>>;
|
|
590
584
|
}, z.core.$strip>>;
|
|
591
|
-
semantic_search: z.ZodOptional<z.ZodBoolean>;
|
|
592
585
|
views: z.ZodOptional<z.ZodObject<{
|
|
593
586
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
594
587
|
}, z.core.$strip>>;
|
|
595
|
-
callgraph_store: z.ZodOptional<z.ZodBoolean>;
|
|
596
588
|
callgraph_chunk_size: z.ZodOptional<z.ZodNumber>;
|
|
597
589
|
inspect: z.ZodOptional<z.ZodObject<{
|
|
598
590
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -624,6 +616,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
624
616
|
read_deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
625
617
|
}, z.core.$strip>>;
|
|
626
618
|
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
619
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
627
620
|
rewrite: z.ZodOptional<z.ZodBoolean>;
|
|
628
621
|
compress: z.ZodOptional<z.ZodBoolean>;
|
|
629
622
|
background: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -694,18 +687,13 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
|
|
|
694
687
|
connection_file: z.ZodOptional<z.ZodString>;
|
|
695
688
|
}, z.core.$strip>>;
|
|
696
689
|
github: z.ZodOptional<z.ZodObject<{
|
|
697
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
698
690
|
shim: z.ZodOptional<z.ZodBoolean>;
|
|
699
691
|
read: z.ZodOptional<z.ZodBoolean>;
|
|
700
692
|
write: z.ZodOptional<z.ZodBoolean>;
|
|
701
693
|
}, z.core.$strip>>;
|
|
702
694
|
gh_shim: z.ZodOptional<z.ZodObject<{
|
|
703
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
704
695
|
binary_path: z.ZodOptional<z.ZodString>;
|
|
705
696
|
}, z.core.$strip>>;
|
|
706
|
-
gh_read: z.ZodOptional<z.ZodObject<{
|
|
707
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
708
|
-
}, z.core.$strip>>;
|
|
709
697
|
git: z.ZodOptional<z.ZodObject<{
|
|
710
698
|
co_author: z.ZodOptional<z.ZodString>;
|
|
711
699
|
}, z.core.$strip>>;
|
|
@@ -736,6 +724,18 @@ export type ConfigLoadError = {
|
|
|
736
724
|
};
|
|
737
725
|
export declare function getConfigLoadErrors(): readonly ConfigLoadError[];
|
|
738
726
|
export declare function formatConfigParseFailureMessage(configPath: string, errorMessage: string): string;
|
|
727
|
+
/** Test hook: evaluate the retired-key policy as if running this package version. */
|
|
728
|
+
export declare function setFeatureConfigPolicyVersionForTests(version: string | undefined): void;
|
|
729
|
+
/** One migration notice awaiting delivery by the plugin. */
|
|
730
|
+
export interface ConfigLoadNotice {
|
|
731
|
+
configPath: string;
|
|
732
|
+
digest: string;
|
|
733
|
+
message: string;
|
|
734
|
+
}
|
|
735
|
+
/** Migration notices from the most recent {@link loadAftConfig} call. */
|
|
736
|
+
export declare function getConfigLoadNotices(): readonly ConfigLoadNotice[];
|
|
737
|
+
/** Deliver the last load's notices once per notice identity across restarts. */
|
|
738
|
+
export declare function deliverConfigLoadNotices(deliver: (message: string) => void, notices?: readonly ConfigLoadNotice[]): void;
|
|
739
739
|
/** Defaults for bridge transport when omitted from config. */
|
|
740
740
|
export declare const DEFAULT_BRIDGE_REQUEST_TIMEOUT_MS = 30000;
|
|
741
741
|
export declare const DEFAULT_BRIDGE_HANG_THRESHOLD = 2;
|
|
@@ -758,6 +758,10 @@ export declare function buildConfigTierConfigureParams(projectDirectory: string,
|
|
|
758
758
|
cortexkit_user_config_path: string;
|
|
759
759
|
subc_client_reaper?: boolean;
|
|
760
760
|
};
|
|
761
|
+
/**
|
|
762
|
+
* Load and resolve the user and project config for one project. The result
|
|
763
|
+
* always carries a sorted `disabled_tools` list and fully resolved `indexes`.
|
|
764
|
+
* Throws {@link ConfigRejectedError} when a retired key must be rejected.
|
|
765
|
+
*/
|
|
761
766
|
export declare function loadAftConfig(projectDirectory: string): AftConfig;
|
|
762
|
-
export {};
|
|
763
767
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,4BAA4B,EAEjC,KAAK,UAAU,EAYf,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAa3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAwC5D,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,OAAO,GACP,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,CAAC;AAEX,MAAM,MAAM,OAAO,GACf,KAAK,GACL,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,GACN,OAAO,GACP,IAAI,GACJ,aAAa,GACb,MAAM,CAAC;AAEX,+EAA+E;AAC/E,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,mBAAmB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvF,MAAM,WAAW,YAAY;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8EAA8E;I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GAAE,MAAsB,GAC7B,4BAA4B,EAAE,CAmBhC;AAED,wBAAgB,qBAAqB,CAAC,gBAAgB,EAAE,MAAM,GAAG,sBAAsB,CAKtF;AAED,wBAAgB,8BAA8B,CAC5C,gBAAgB,EAAE,MAAM,EACxB,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACzC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC3B,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,0BAA0B,EAAE,MAAM,CAAC;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAkBA;AAMD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CA6DjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-dialog.d.ts","sourceRoot":"","sources":["../../src/dialogs/status-dialog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAUpG,OAAO,EACL,KAAK,iBAAiB,EAMtB,KAAK,iBAAiB,EAEvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,wBAAsB,mBAAmB,CACvC,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,uBAAuB,EAC/B,SAAS,EAAE,aAAa,GACvB,OAAO,CAAC,IAAI,CAAC,CAgBf;
|
|
1
|
+
{"version":3,"file":"status-dialog.d.ts","sourceRoot":"","sources":["../../src/dialogs/status-dialog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAUpG,OAAO,EACL,KAAK,iBAAiB,EAMtB,KAAK,iBAAiB,EAEvB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,wBAAsB,mBAAmB,CACvC,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,uBAAuB,EAC/B,SAAS,EAAE,aAAa,GACvB,OAAO,CAAC,IAAI,CAAC,CAgBf;AAwPD,wBAAgB,8BAA8B,CAC5C,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,MAAM,GACjB,MAAM,EAAE,CAEV;AAkBD,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,iBAAiB,GAAG,SAAS,GAAG,MAAM,EAAE,CAShG"}
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* AFT-specific:
|
|
17
17
|
* - aft_outline Structural outline (symbols, headings) for files/URLs
|
|
18
18
|
* - aft_zoom Symbol-level inspection with call-graph annotations
|
|
19
|
-
* - aft_search
|
|
19
|
+
* - aft_search Unified lexical/semantic search
|
|
20
20
|
* - aft_callgraph Call-graph navigation (callers, call_tree, impact, trace_to, trace_to_symbol, trace_data)
|
|
21
21
|
* - aft_conflicts One-call merge conflict inspection
|
|
22
22
|
* - aft_import Language-aware import add/remove/organize
|
|
@@ -36,7 +36,7 @@ type VersionMismatchPool = {
|
|
|
36
36
|
};
|
|
37
37
|
declare function createVersionMismatchHandler(getPool: () => VersionMismatchPool | undefined, ensureCompatibleBinary?: (version?: string) => Promise<string | null>): (binaryVersion: string, minVersion: string) => Promise<string | null>;
|
|
38
38
|
declare function enqueueConfigParseWarnings(projectRoot: string, errors: ReturnType<typeof getConfigLoadErrors>): void;
|
|
39
|
-
declare function shouldPrepareOnnxRuntime(config: Pick<AftConfig, "
|
|
39
|
+
declare function shouldPrepareOnnxRuntime(config: Pick<AftConfig, "indexes" | "semantic">): boolean;
|
|
40
40
|
declare function bridgeDirectoryFromCallback(bridge: unknown, fallback: string): string;
|
|
41
41
|
declare function handleConfigureWarningsForSession(context: {
|
|
42
42
|
projectRoot: string;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAqBH,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,iCAAiC,CAAC;AAYtF,OAAO,EACL,KAAK,SAAS,EAId,mBAAmB,EAEpB,MAAM,aAAa,CAAC;AA6BrB,OAAO,EAIL,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AA6BhC,KAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC9C,CAAC;AAEF,iBAAS,4BAA4B,CACnC,OAAO,EAAE,MAAM,mBAAmB,GAAG,SAAS,EAC9C,sBAAsB,GAAE,CAAC,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAgB,IAOrE,eAAe,MAAM,EAAE,YAAY,MAAM,KAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAyCjF;AAyED,iBAAS,0BAA0B,CACjC,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,GAC7C,IAAI,CAUN;AAED,iBAAS,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC,GAAG,OAAO,CAG1F;AAED,iBAAS,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG9E;AA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