fix(cli): keep meta as a fresh-session command
This commit is contained in:
@@ -45,7 +45,7 @@ switch (invocation.mode) {
|
|||||||
}
|
}
|
||||||
case 'meta': {
|
case 'meta': {
|
||||||
const { runMeta } = await import('./tui.ts')
|
const { runMeta } = await import('./tui.ts')
|
||||||
await runMeta(invocation.resume)
|
await runMeta()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case 'migrate':
|
case 'migrate':
|
||||||
|
|||||||
@@ -82,12 +82,9 @@ export function launcherSessionsRoot(): string {
|
|||||||
/**
|
/**
|
||||||
* Run the interactive TUI with this harness checkout as the workspace
|
* Run the interactive TUI with this harness checkout as the workspace
|
||||||
* (`dsh meta`), whatever directory it was launched from.
|
* (`dsh meta`), whatever directory it was launched from.
|
||||||
* @param resumeSessionId - a persisted session id to resume, or `undefined`;
|
|
||||||
* see {@link runTui}. Meta-mode sessions live under the checkout, so an id from
|
|
||||||
* an ordinary `dsh` run in another directory is not found here.
|
|
||||||
*/
|
*/
|
||||||
export async function runMeta(resumeSessionId: string | undefined): Promise<void> {
|
export async function runMeta(): Promise<void> {
|
||||||
return runTui(undefined, resumeSessionId, SOURCE_ROOT)
|
return runTui(undefined, undefined, SOURCE_ROOT)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user