mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-10 02:15:02 +00:00
* feat(terminals): expose workspace ownership through the SDK and CLI Directory-based terminal creation selected the oldest workspace sharing that path. Expose explicit workspace ownership in the shared public API and CLI, retain ownership and process directories in listings, and acknowledge terminal deletion after teardown. * fix(file-observer): preserve nested shallow reconciliation scopes A parent directory scan does not visit its descendants. Collapsing change scopes discarded nested scans and left coalesced native deletions unseen until a full audit. * test(terminals): extract output waits from end-to-end scenarios
28 lines
807 B
TypeScript
28 lines
807 B
TypeScript
import type { PaseoTerminal } from "@getpaseo/client";
|
|
import type { OutputSchema } from "../../output/index.js";
|
|
|
|
export type TerminalRow = PaseoTerminal;
|
|
|
|
export interface TerminalKillRow {
|
|
terminalId: string;
|
|
success: boolean;
|
|
}
|
|
|
|
export const terminalSchema: OutputSchema<TerminalRow> = {
|
|
idField: "id",
|
|
columns: [
|
|
{ header: "ID", field: (row) => row.id.slice(0, 8), width: 8 },
|
|
{ header: "NAME", field: "name", width: 24 },
|
|
{ header: "CWD", field: "cwd", width: 48 },
|
|
{ header: "WORKSPACE", field: "workspaceId", width: 24 },
|
|
],
|
|
};
|
|
|
|
export const terminalKillSchema: OutputSchema<TerminalKillRow> = {
|
|
idField: "terminalId",
|
|
columns: [
|
|
{ header: "ID", field: (row) => row.terminalId.slice(0, 8), width: 8 },
|
|
{ header: "SUCCESS", field: "success", width: 8 },
|
|
],
|
|
};
|