@vibecontrols/vibe-plugin-session-manager 2026.428.4 → 2026.505.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.
- package/dist/provider.d.ts +30 -0
- package/dist/types.d.ts +11 -0
- package/package.json +1 -1
package/dist/provider.d.ts
CHANGED
|
@@ -137,4 +137,34 @@ export interface SessionProvider {
|
|
|
137
137
|
line: number;
|
|
138
138
|
content: string;
|
|
139
139
|
}[]>;
|
|
140
|
+
/**
|
|
141
|
+
* List host-level sessions owned by this provider whose names match
|
|
142
|
+
* `vibe-*` (the prefix this stack uses for its sessions) but are not
|
|
143
|
+
* currently tracked in storage. Optional — providers without a
|
|
144
|
+
* persistent host daemon (e.g. raw PTY) won't implement this.
|
|
145
|
+
*/
|
|
146
|
+
discoverOrphans?(): Promise<OrphanSessionInfo[]>;
|
|
147
|
+
/**
|
|
148
|
+
* Adopt an orphan session into storage. Idempotent — adopting an
|
|
149
|
+
* already-tracked session must return the existing record.
|
|
150
|
+
*/
|
|
151
|
+
adopt?(externalName: string, displayName?: string): Promise<SessionInfo>;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Metadata for an orphan session discovered on the host but not yet
|
|
155
|
+
* tracked by the agent. `externalName` is the provider-native session
|
|
156
|
+
* identifier (e.g. tmux session name, wezterm pane id) — opaque to
|
|
157
|
+
* callers and only meaningful to the originating provider.
|
|
158
|
+
*/
|
|
159
|
+
export interface OrphanSessionInfo {
|
|
160
|
+
/** Provider-native session id (e.g. "vibe-051c9c62" for tmux). */
|
|
161
|
+
externalName: string;
|
|
162
|
+
/** Backend provider name ("tmux" / "wezterm" / "zellij"). */
|
|
163
|
+
provider: string;
|
|
164
|
+
/** Number of windows / panes / tabs in the session. */
|
|
165
|
+
windows: number;
|
|
166
|
+
/** Whether something is currently attached to the session. */
|
|
167
|
+
attached: boolean;
|
|
168
|
+
/** ISO-8601 creation time, if known. */
|
|
169
|
+
createdAt?: string;
|
|
140
170
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -13,6 +13,17 @@ export interface SessionConfig {
|
|
|
13
13
|
rows: number;
|
|
14
14
|
};
|
|
15
15
|
projectId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Provider-native session name (e.g. tmux session name, wezterm
|
|
18
|
+
* workspace, zellij session). When provided:
|
|
19
|
+
* - If a matching daemon-side session already exists, the
|
|
20
|
+
* provider must adopt it instead of creating a new one.
|
|
21
|
+
* - Otherwise the provider creates with this exact name (no
|
|
22
|
+
* `vibe-<id>` mangling) so reconnects from another tool keep
|
|
23
|
+
* working.
|
|
24
|
+
* Optional. Length-bounded by the provider.
|
|
25
|
+
*/
|
|
26
|
+
externalName?: string;
|
|
16
27
|
}
|
|
17
28
|
export type SessionStatus = "active" | "inactive" | "terminated" | "error";
|
|
18
29
|
export interface TerminalInfo {
|