@cortexkit/aft-opencode 0.57.2 → 0.58.1

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.
Files changed (66) hide show
  1. package/dist/bash-wait-detach.d.ts +14 -5
  2. package/dist/bash-wait-detach.d.ts.map +1 -1
  3. package/dist/bridge-bootstrap.d.ts +199 -0
  4. package/dist/bridge-bootstrap.d.ts.map +1 -0
  5. package/dist/config-error-surface.d.ts +23 -0
  6. package/dist/config-error-surface.d.ts.map +1 -0
  7. package/dist/config-live-reload.d.ts +315 -0
  8. package/dist/config-live-reload.d.ts.map +1 -0
  9. package/dist/config.d.ts +112 -54
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/entry/server.js +10449 -7872
  12. package/dist/hooks/auto-update-checker/checker.d.ts +1 -0
  13. package/dist/hooks/auto-update-checker/checker.d.ts.map +1 -1
  14. package/dist/hooks/auto-update-checker/index.d.ts +6 -0
  15. package/dist/hooks/auto-update-checker/index.d.ts.map +1 -1
  16. package/dist/index.d.ts +3 -2
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +10315 -7815
  19. package/dist/logger.d.ts.map +1 -1
  20. package/dist/lsp-auto-install.d.ts.map +1 -1
  21. package/dist/lsp-npm-table.d.ts +1 -1
  22. package/dist/lsp-npm-table.d.ts.map +1 -1
  23. package/dist/rpc/register.d.ts +7 -1
  24. package/dist/rpc/register.d.ts.map +1 -1
  25. package/dist/shared/read-vision.d.ts +10 -0
  26. package/dist/shared/read-vision.d.ts.map +1 -0
  27. package/dist/shared/status.d.ts +45 -0
  28. package/dist/shared/status.d.ts.map +1 -1
  29. package/dist/shared/subagent-detect.d.ts.map +1 -1
  30. package/dist/shutdown-hooks.d.ts +3 -9
  31. package/dist/shutdown-hooks.d.ts.map +1 -1
  32. package/dist/subc-tool-schemas.d.ts +9 -1
  33. package/dist/subc-tool-schemas.d.ts.map +1 -1
  34. package/dist/tool-perf.d.ts +1 -0
  35. package/dist/tool-perf.d.ts.map +1 -1
  36. package/dist/tool-registration.d.ts +19 -12
  37. package/dist/tool-registration.d.ts.map +1 -1
  38. package/dist/tools/ast.d.ts.map +1 -1
  39. package/dist/tools/bash.d.ts +1 -1
  40. package/dist/tools/bash.d.ts.map +1 -1
  41. package/dist/tools/bash_watch.d.ts +3 -0
  42. package/dist/tools/bash_watch.d.ts.map +1 -1
  43. package/dist/tools/definitions/v2.d.ts.map +1 -1
  44. package/dist/tools/hoisted.d.ts +9 -12
  45. package/dist/tools/hoisted.d.ts.map +1 -1
  46. package/dist/tools/inspect.d.ts +5 -7
  47. package/dist/tools/inspect.d.ts.map +1 -1
  48. package/dist/tools/permissions.d.ts.map +1 -1
  49. package/dist/tools/reading.d.ts.map +1 -1
  50. package/dist/tools/search.d.ts.map +1 -1
  51. package/dist/tui/v2-status.d.ts +1 -1
  52. package/dist/tui/v2-status.d.ts.map +1 -1
  53. package/dist/workflow-hints.d.ts +1 -7
  54. package/dist/workflow-hints.d.ts.map +1 -1
  55. package/package.json +8 -8
  56. package/src/entry/server-runtime.mjs +133 -34
  57. package/src/logger.ts +5 -6
  58. package/src/shared/read-vision.ts +100 -0
  59. package/src/shared/status.ts +83 -4
  60. package/src/shared/subagent-detect.ts +56 -1
  61. package/src/tui/index.tsx +4 -10
  62. package/src/tui/sidebar-view.tsx +36 -15
  63. package/src/tui/v2-status.ts +25 -4
  64. package/src/tui-compiled/index.tsx +3 -3
  65. package/src/tui-compiled/sidebar-view.tsx +168 -126
  66. package/src/tui-compiled/v2-status.ts +25 -4
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 ResolvedIndexesConfig } from "@cortexkit/aft-bridge";
2
2
  import { z } from "zod";
3
+ export { ConfigRejectedError } from "@cortexkit/aft-bridge";
3
4
  /** How configure-time missing-tool warnings reach the user. Default: toast (no chat transcript). */
4
5
  export declare const ConfigureWarningsDeliveryEnum: z.ZodEnum<{
5
6
  toast: "toast";
@@ -8,7 +9,6 @@ export declare const ConfigureWarningsDeliveryEnum: z.ZodEnum<{
8
9
  }>;
9
10
  export type ConfigureWarningsDelivery = z.infer<typeof ConfigureWarningsDeliveryEnum>;
10
11
  declare const GithubConfigSchema: z.ZodObject<{
11
- enabled: z.ZodOptional<z.ZodBoolean>;
12
12
  shim: z.ZodOptional<z.ZodBoolean>;
13
13
  read: z.ZodOptional<z.ZodBoolean>;
14
14
  write: z.ZodOptional<z.ZodBoolean>;
@@ -30,7 +30,6 @@ export declare const PiConfigSchema: z.ZodObject<{
30
30
  export type PiConfig = z.infer<typeof PiConfigSchema>;
31
31
  export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
32
32
  $schema: z.ZodOptional<z.ZodString>;
33
- enabled: z.ZodOptional<z.ZodBoolean>;
34
33
  edit_mode: z.ZodOptional<z.ZodEnum<{
35
34
  default: "default";
36
35
  hashline: "hashline";
@@ -69,15 +68,13 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
69
68
  log: "log";
70
69
  chat: "chat";
71
70
  }>>;
72
- hoist_builtin_tools: z.ZodOptional<z.ZodBoolean>;
73
- tool_surface: z.ZodOptional<z.ZodEnum<{
74
- minimal: "minimal";
75
- recommended: "recommended";
76
- all: "all";
77
- }>>;
78
71
  disabled_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
72
  restrict_to_project_root: z.ZodOptional<z.ZodBoolean>;
80
- search_index: z.ZodOptional<z.ZodBoolean>;
73
+ indexes: z.ZodOptional<z.ZodObject<{
74
+ trigram: z.ZodOptional<z.ZodBoolean>;
75
+ semantic: z.ZodOptional<z.ZodBoolean>;
76
+ callgraph: z.ZodOptional<z.ZodBoolean>;
77
+ }, z.core.$strip>>;
81
78
  index: z.ZodOptional<z.ZodObject<{
82
79
  roots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
83
80
  path: z.ZodString;
@@ -94,11 +91,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
94
91
  indexes: ("search" | "semantic" | "callgraph")[];
95
92
  }>>>>;
96
93
  }, z.core.$strip>>;
97
- semantic_search: z.ZodOptional<z.ZodBoolean>;
98
94
  views: z.ZodOptional<z.ZodObject<{
99
95
  enabled: z.ZodOptional<z.ZodBoolean>;
100
96
  }, z.core.$strip>>;
101
- callgraph_store: z.ZodOptional<z.ZodBoolean>;
102
97
  callgraph_chunk_size: z.ZodOptional<z.ZodNumber>;
103
98
  inspect: z.ZodOptional<z.ZodObject<{
104
99
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -130,6 +125,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
130
125
  read_deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
131
126
  }, z.core.$strip>>;
132
127
  bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
128
+ enabled: z.ZodOptional<z.ZodBoolean>;
133
129
  rewrite: z.ZodOptional<z.ZodBoolean>;
134
130
  compress: z.ZodOptional<z.ZodBoolean>;
135
131
  background: z.ZodOptional<z.ZodBoolean>;
@@ -192,6 +188,21 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
192
188
  max_input_tokens: z.ZodOptional<z.ZodNumber>;
193
189
  max_files: z.ZodOptional<z.ZodNumber>;
194
190
  }, z.core.$strip>>;
191
+ search: z.ZodOptional<z.ZodObject<{
192
+ rerank: z.ZodOptional<z.ZodObject<{
193
+ backend: z.ZodOptional<z.ZodEnum<{
194
+ synapse: "synapse";
195
+ off: "off";
196
+ onnx: "onnx";
197
+ remote: "remote";
198
+ }>>;
199
+ model: z.ZodOptional<z.ZodString>;
200
+ endpoint: z.ZodOptional<z.ZodString>;
201
+ api_key_env: z.ZodOptional<z.ZodString>;
202
+ top_n: z.ZodOptional<z.ZodNumber>;
203
+ timeout_ms: z.ZodOptional<z.ZodNumber>;
204
+ }, z.core.$strip>>;
205
+ }, z.core.$strip>>;
195
206
  auto_update: z.ZodOptional<z.ZodBoolean>;
196
207
  bridge: z.ZodOptional<z.ZodObject<{
197
208
  request_timeout_ms: z.ZodOptional<z.ZodNumber>;
@@ -202,18 +213,13 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
202
213
  client_reaper: z.ZodOptional<z.ZodBoolean>;
203
214
  }, z.core.$strip>>;
204
215
  github: z.ZodOptional<z.ZodObject<{
205
- enabled: z.ZodOptional<z.ZodBoolean>;
206
216
  shim: z.ZodOptional<z.ZodBoolean>;
207
217
  read: z.ZodOptional<z.ZodBoolean>;
208
218
  write: z.ZodOptional<z.ZodBoolean>;
209
219
  }, z.core.$strip>>;
210
220
  gh_shim: z.ZodOptional<z.ZodObject<{
211
- enabled: z.ZodOptional<z.ZodBoolean>;
212
221
  binary_path: z.ZodOptional<z.ZodString>;
213
222
  }, z.core.$strip>>;
214
- gh_read: z.ZodOptional<z.ZodObject<{
215
- enabled: z.ZodOptional<z.ZodBoolean>;
216
- }, z.core.$strip>>;
217
223
  git: z.ZodOptional<z.ZodObject<{
218
224
  co_author: z.ZodOptional<z.ZodString>;
219
225
  }, z.core.$strip>>;
@@ -225,7 +231,6 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
225
231
  }, z.core.$strip>>;
226
232
  harnesses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodObject<{
227
233
  $schema: z.ZodOptional<z.ZodString>;
228
- enabled: z.ZodOptional<z.ZodBoolean>;
229
234
  edit_mode: z.ZodOptional<z.ZodEnum<{
230
235
  default: "default";
231
236
  hashline: "hashline";
@@ -264,15 +269,13 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
264
269
  log: "log";
265
270
  chat: "chat";
266
271
  }>>;
267
- hoist_builtin_tools: z.ZodOptional<z.ZodBoolean>;
268
- tool_surface: z.ZodOptional<z.ZodEnum<{
269
- minimal: "minimal";
270
- recommended: "recommended";
271
- all: "all";
272
- }>>;
273
272
  disabled_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
274
273
  restrict_to_project_root: z.ZodOptional<z.ZodBoolean>;
275
- search_index: z.ZodOptional<z.ZodBoolean>;
274
+ indexes: z.ZodOptional<z.ZodObject<{
275
+ trigram: z.ZodOptional<z.ZodBoolean>;
276
+ semantic: z.ZodOptional<z.ZodBoolean>;
277
+ callgraph: z.ZodOptional<z.ZodBoolean>;
278
+ }, z.core.$strip>>;
276
279
  index: z.ZodOptional<z.ZodObject<{
277
280
  roots: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
278
281
  path: z.ZodString;
@@ -289,11 +292,9 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
289
292
  indexes: ("search" | "semantic" | "callgraph")[];
290
293
  }>>>>;
291
294
  }, z.core.$strip>>;
292
- semantic_search: z.ZodOptional<z.ZodBoolean>;
293
295
  views: z.ZodOptional<z.ZodObject<{
294
296
  enabled: z.ZodOptional<z.ZodBoolean>;
295
297
  }, z.core.$strip>>;
296
- callgraph_store: z.ZodOptional<z.ZodBoolean>;
297
298
  callgraph_chunk_size: z.ZodOptional<z.ZodNumber>;
298
299
  inspect: z.ZodOptional<z.ZodObject<{
299
300
  enabled: z.ZodOptional<z.ZodBoolean>;
@@ -325,6 +326,7 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
325
326
  read_deny: z.ZodOptional<z.ZodArray<z.ZodString>>;
326
327
  }, z.core.$strip>>;
327
328
  bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
329
+ enabled: z.ZodOptional<z.ZodBoolean>;
328
330
  rewrite: z.ZodOptional<z.ZodBoolean>;
329
331
  compress: z.ZodOptional<z.ZodBoolean>;
330
332
  background: z.ZodOptional<z.ZodBoolean>;
@@ -387,6 +389,21 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
387
389
  max_input_tokens: z.ZodOptional<z.ZodNumber>;
388
390
  max_files: z.ZodOptional<z.ZodNumber>;
389
391
  }, z.core.$strip>>;
392
+ search: z.ZodOptional<z.ZodObject<{
393
+ rerank: z.ZodOptional<z.ZodObject<{
394
+ backend: z.ZodOptional<z.ZodEnum<{
395
+ synapse: "synapse";
396
+ off: "off";
397
+ onnx: "onnx";
398
+ remote: "remote";
399
+ }>>;
400
+ model: z.ZodOptional<z.ZodString>;
401
+ endpoint: z.ZodOptional<z.ZodString>;
402
+ api_key_env: z.ZodOptional<z.ZodString>;
403
+ top_n: z.ZodOptional<z.ZodNumber>;
404
+ timeout_ms: z.ZodOptional<z.ZodNumber>;
405
+ }, z.core.$strip>>;
406
+ }, z.core.$strip>>;
390
407
  auto_update: z.ZodOptional<z.ZodBoolean>;
391
408
  bridge: z.ZodOptional<z.ZodObject<{
392
409
  request_timeout_ms: z.ZodOptional<z.ZodNumber>;
@@ -397,18 +414,13 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
397
414
  client_reaper: z.ZodOptional<z.ZodBoolean>;
398
415
  }, z.core.$strip>>;
399
416
  github: z.ZodOptional<z.ZodObject<{
400
- enabled: z.ZodOptional<z.ZodBoolean>;
401
417
  shim: z.ZodOptional<z.ZodBoolean>;
402
418
  read: z.ZodOptional<z.ZodBoolean>;
403
419
  write: z.ZodOptional<z.ZodBoolean>;
404
420
  }, z.core.$strip>>;
405
421
  gh_shim: z.ZodOptional<z.ZodObject<{
406
- enabled: z.ZodOptional<z.ZodBoolean>;
407
422
  binary_path: z.ZodOptional<z.ZodString>;
408
423
  }, z.core.$strip>>;
409
- gh_read: z.ZodOptional<z.ZodObject<{
410
- enabled: z.ZodOptional<z.ZodBoolean>;
411
- }, z.core.$strip>>;
412
424
  git: z.ZodOptional<z.ZodObject<{
413
425
  co_author: z.ZodOptional<z.ZodString>;
414
426
  }, z.core.$strip>>;
@@ -423,14 +435,25 @@ export declare const AftConfigSchema: z.ZodPreprocess<z.ZodObject<{
423
435
  export type AftConfig = z.infer<typeof AftConfigSchema>;
424
436
  export type GithubConfig = z.infer<typeof GithubConfigSchema>;
425
437
  export interface ResolvedGithubConfig {
426
- enabled: boolean;
427
438
  shim: boolean;
428
439
  read: boolean;
429
440
  write: boolean;
430
441
  }
431
- /** Resolve master/feature precedence and the write-implies-read safety rule. */
442
+ /** Resolve GitHub capability leaves and the write-implies-read safety rule. */
432
443
  export declare function resolveGithubConfig(config: AftConfig): ResolvedGithubConfig;
444
+ /**
445
+ * Whether a tool is registered, for description wording only (for example,
446
+ * whether to mention `aft_zoom`). Registration itself goes through
447
+ * {@link resolvedDisabledTools}, which refuses a config without a resolved list.
448
+ */
433
449
  export declare function toolEnabled(config: AftConfig, toolName: string): boolean;
450
+ /**
451
+ * The resolved disabled list. `loadAftConfig` always sets it; a config that
452
+ * reaches registration without it is rejected instead of treated as [].
453
+ */
454
+ export declare function resolvedDisabledTools(config: AftConfig): readonly string[];
455
+ /** Resolved index switches (all default on). */
456
+ export declare function resolvedIndexes(config: AftConfig): ResolvedIndexesConfig;
434
457
  /** Resolve the blocking diagnostics deadline for tools that wait on `aft_inspect`. */
435
458
  export declare function resolveInspectDiagnosticsTimeoutMs(config: AftConfig): number;
436
459
  export interface ConfigureLspServer {
@@ -472,22 +495,20 @@ export declare function resolveLspConfigForConfigure(config: AftConfig): Configu
472
495
  * MUST NOT be re-derived per-bridge — they're identical across all bridges in
473
496
  * one OpenCode/Pi process.
474
497
  *
475
- * **DO NOT** put fields that affect plugin-side tool registration here.
476
- * `enabled`, `tool_surface`, and `hoist_builtin_tools` lock
477
- * at plugin init because OpenCode registers tools synchronously when the plugin
478
- * function returns. Per-bridge changes to those fields wouldn't take effect.
498
+ * Registration (`disabled_tools`) locks at plugin init because OpenCode
499
+ * registers tools synchronously when the plugin function returns; the list is
500
+ * still forwarded so the engine can answer registration questions.
479
501
  */
480
502
  export declare function resolveProjectOverridesForConfigure(config: AftConfig): Record<string, unknown>;
481
503
  /**
482
- * Resolved bash configuration after merging top-level `bash`, the
483
- * legacy `experimental.bash.*` fallback, and tool_surface defaults.
484
- * Everything downstream — hoist gating, configure-override emission,
485
- * workflow-hints — reads from this single shape.
504
+ * Resolved bash configuration after merging top-level `bash` and the
505
+ * legacy `experimental.bash.*` fallback. Everything downstream —
506
+ * configure-override emission, runtime gating, workflow-hints — reads from
507
+ * this single shape.
486
508
  *
487
- * `enabled` controls hoist registration ONLY; the three sub-features
488
- * (rewrite/compress/background) are independent feature flags within
489
- * an enabled bash surface. `enabled: false` forces all three off and
490
- * disables hoist; OpenCode's native bash stays in place.
509
+ * `enabled` is the runtime gate: when false, bash and its companions stay
510
+ * registered (registration is `disabled_tools` only) and report
511
+ * `bash_disabled`. `bash: false` also forces the three sub-features off.
491
512
  */
492
513
  export interface ResolvedBashConfig {
493
514
  enabled: boolean;
@@ -527,16 +548,15 @@ export declare function clampBashWatchSyncMaxMs(value: number | undefined): numb
527
548
  * Single source of truth for bash config across the plugin. Resolution
528
549
  * order (highest priority wins):
529
550
  *
530
- * 1. Top-level `bash: false` → fully disabled (sub-features all false)
551
+ * 1. Top-level `bash: false` → runtime off (sub-features all false)
531
552
  * 2. Top-level `bash: true` → fully enabled (sub-features all true)
532
- * 3. Top-level `bash: { ... }` → enabled; each sub-feature defaults true
533
- * when not specified
553
+ * 3. Top-level `bash: { ... }` → runtime gate from `enabled` (default
554
+ * true); each sub-feature defaults true when not specified
534
555
  * 4. Top-level `bash` absent + any `experimental.bash.*` set → legacy
535
556
  * fallback; sub-features take their explicit values (default false
536
- * to preserve pre-v0.27.2 behavior — that block was opt-in)
537
- * 5. Top-level `bash` absent + no experimental → tool_surface default:
538
- * - "minimal" → disabled
539
- * - "recommended" or "all" → enabled with all sub-features on
557
+ * to preserve pre-v0.27.2 behavior — that block was opt-in); the
558
+ * runtime gate stays on
559
+ * 5. Top-level `bash` absent + no experimental → everything on
540
560
  *
541
561
  * The long_running_reminder_* tuning fields are passed through from
542
562
  * whichever surface specified them; they live alongside the feature
@@ -557,9 +577,40 @@ export type ConfigLoadError = {
557
577
  path: string;
558
578
  message: string;
559
579
  };
580
+ /**
581
+ * The config files the last load actually read, in load order. A file that
582
+ * did not exist when the loader looked is not listed. A live config reload
583
+ * compares this with the previous accepted load to tell that a file it relied
584
+ * on has disappeared, rather than probing the filesystem separately.
585
+ */
586
+ export declare function getConfigLoadSources(): readonly string[];
587
+ /** The text of each file the last load read, keyed by path. */
588
+ export declare function getConfigLoadTexts(): ReadonlyMap<string, string>;
589
+ /**
590
+ * Settings the last load dropped because their value did not validate. A
591
+ * normal load keeps the rest of the file and uses defaults for these; a live
592
+ * config reload treats any of them as an invalid file and keeps the last valid
593
+ * config instead, so a typo cannot reset a key while the host runs.
594
+ */
595
+ export declare function getConfigValidationErrors(): readonly ConfigLoadError[];
560
596
  /** Errors from the most recent {@link loadAftConfig} call (parse failures only). */
561
597
  export declare function getConfigLoadErrors(): readonly ConfigLoadError[];
562
598
  export declare function formatConfigParseFailureMessage(configPath: string, errorMessage: string): string;
599
+ /** Test hook: evaluate the retired-key policy as if running this package version. */
600
+ export declare function setFeatureConfigPolicyVersionForTests(version: string | undefined): void;
601
+ /** One migration notice awaiting delivery by the plugin. */
602
+ export interface ConfigLoadNotice {
603
+ configPath: string;
604
+ digest: string;
605
+ message: string;
606
+ }
607
+ /** Migration notices from the most recent {@link loadAftConfig} call. */
608
+ export declare function getConfigLoadNotices(): readonly ConfigLoadNotice[];
609
+ /**
610
+ * Deliver the notices of the last load through `deliver`, once per notice
611
+ * identity across restarts (see `deliverMigrationNoticeOnce`).
612
+ */
613
+ export declare function deliverConfigLoadNotices(deliver: (message: string) => void, notices?: readonly ConfigLoadNotice[]): void;
563
614
  /** Defaults for bridge transport when omitted from config. */
564
615
  export declare const DEFAULT_BRIDGE_REQUEST_TIMEOUT_MS = 30000;
565
616
  export declare const DEFAULT_BRIDGE_HANG_THRESHOLD = 2;
@@ -584,6 +635,13 @@ export declare function buildConfigTierConfigureParams(projectDirectory: string,
584
635
  cortexkit_user_config_path: string;
585
636
  subc_client_reaper?: boolean;
586
637
  };
638
+ /**
639
+ * Load and resolve the user and project config for one project.
640
+ *
641
+ * The result always carries a sorted `disabled_tools` list (absent user base
642
+ * defaults to aft_move/aft_delete) and fully resolved `indexes`. Throws
643
+ * {@link ConfigRejectedError} when a retired key must be rejected; callers
644
+ * must then publish nothing (startup) or keep their last-good config (reload).
645
+ */
587
646
  export declare function loadAftConfig(projectDirectory: string): AftConfig;
588
- export {};
589
647
  //# sourceMappingURL=config.d.ts.map
@@ -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,OAAO,6BAA6B,CAAC,CAAC;AAuQtF,QAAA,MAAM,kBAAkB;;;;;iBAStB,CAAC;AAqBH,eAAO,MAAM,sCAAsC,SAAU,CAAC;AAC9D,eAAO,MAAM,kCAAkC,QAAS,CAAC;AACzD,eAAO,MAAM,kCAAkC,SAAU,CAAC;AAoF1D,eAAO,MAAM,sBAAsB;;;EAAwC,CAAC;AAC5E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAExE,eAAO,MAAM,cAAc;;;;;iBAGzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAgJtD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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