@mirrowel/opencode-subagent-explorer 0.1.0 → 0.2.0-dev.2

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/wizard.d.ts CHANGED
@@ -10,12 +10,16 @@
10
10
  * import mainMenu from here and drive it with their own TuiHostApi instance.
11
11
  */
12
12
  import type { TuiHostApi as TuiPluginApi } from "./tui-host.js";
13
- import { type SessionLite, type SessionTreeNode } from "./sessions.js";
13
+ import { type SessionLite, type SessionTreeNode, type VariantAttribution } from "./sessions.js";
14
14
  export type ExplorerRow = {
15
15
  session: SessionLite;
16
16
  depth: number;
17
17
  running: boolean;
18
18
  hidden: boolean;
19
+ variant?: {
20
+ alias: string;
21
+ parent: string;
22
+ };
19
23
  };
20
24
  export type ExplorerData = {
21
25
  sessions: SessionLite[];
@@ -23,6 +27,12 @@ export type ExplorerData = {
23
27
  activeKnown: boolean;
24
28
  hidden: Set<string>;
25
29
  configAgents: Set<string>;
30
+ /** child session id -> creating AV variant (recent history only). */
31
+ variantOf: VariantAttribution;
32
+ /** AV sidecar parents (empty when agent-variants is not installed). */
33
+ avParents: Map<string, {
34
+ disableBase: boolean;
35
+ }>;
26
36
  };
27
37
  export type TreeAction = {
28
38
  type: "delete";
@@ -41,8 +51,9 @@ export type TreeAction = {
41
51
  } | {
42
52
  type: "exit";
43
53
  };
44
- export declare function loadExplorerData(api: TuiPluginApi, directory: string): Promise<ExplorerData | undefined>;
54
+ export declare function loadExplorerData(api: TuiPluginApi, directory: string, rootOverride?: string): Promise<ExplorerData | undefined>;
45
55
  export declare function explorerRows(tree: SessionTreeNode[], data: ExplorerData): ExplorerRow[];
56
+ export declare function agentLabelOf(row: Pick<ExplorerRow, "session" | "variant">): string;
46
57
  /**
47
58
  * Pure dialog-height budget (same math as Config Studio's computeDialogRows):
48
59
  * OpenCode's dialog backdrop anchors at terminalHeight / 4, so a panel