@wjarka/cezarion 0.17.0-dev.5532 → 0.17.0-dev.5536
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/server/open-in-targets.d.ts +6 -4
- package/dist/server/open-in-targets.js +5 -10
- package/dist/server/open-in-targets.js.map +1 -1
- package/dist/server/run-checkout.d.ts +12 -1
- package/dist/server/run-checkout.js +19 -1
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/server.d.ts +4 -58
- package/dist/server/server.js +20 -20
- package/dist/server/server.js.map +1 -1
- package/package.json +3 -3
|
@@ -18,15 +18,17 @@ interface CliHandoffDeps {
|
|
|
18
18
|
openTerminal: typeof openInTerminal;
|
|
19
19
|
}
|
|
20
20
|
/** Open only a contained raster image: the OS launcher does not apply the browser's CSP. */
|
|
21
|
-
export declare function openRunDefaultApp(c: Context,
|
|
22
|
-
error: string;
|
|
23
|
-
}, 409, "json">) | (Response & import("hono").TypedResponse<{
|
|
21
|
+
export declare function openRunDefaultApp(c: Context, worktree: string, relPath: string | undefined, openFile: typeof openFileInDefaultApp): Promise<(Response & import("hono").TypedResponse<{
|
|
24
22
|
error: string;
|
|
25
23
|
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
24
|
+
error: string;
|
|
25
|
+
}, 409, "json">) | (Response & import("hono").TypedResponse<{
|
|
26
26
|
opened: true;
|
|
27
27
|
path: string;
|
|
28
28
|
}, import("hono/utils/http-status").ContentfulStatusCode, "json">)>;
|
|
29
|
-
export declare function openRunCli(c: Context, run: RunRecord, cliRunner: RunnerId, dir: string, repoRoot: string, { providerActionError, resumeCommand, handoffEnv, handoffFallbackCommand, openTerminal, home }: CliHandoffDeps
|
|
29
|
+
export declare function openRunCli(c: Context, run: RunRecord, cliRunner: RunnerId, dir: string, repoRoot: string, { providerActionError, resumeCommand, handoffEnv, handoffFallbackCommand, openTerminal, home }: CliHandoffDeps, checkout: {
|
|
30
|
+
readonly resumeAllowed: boolean;
|
|
31
|
+
}): Promise<(Response & import("hono").TypedResponse<{
|
|
30
32
|
error: string;
|
|
31
33
|
}, 409, "json">) | (Response & import("hono").TypedResponse<{
|
|
32
34
|
opened: true;
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { fallbackProjectWriteError } from '../project-paths.js';
|
|
2
|
-
import { existsSync } from 'node:fs';
|
|
3
2
|
import { join } from 'node:path';
|
|
4
3
|
import { imageMimeType, isOsOpenableImage } from '../contract/index.js';
|
|
5
|
-
import { engineOwnsRun } from '../contract/index.js';
|
|
6
4
|
import { resolveCursorExecutable } from '../core/cursor-model-catalog.js';
|
|
7
5
|
import { resolveOmpExecutable } from '../core/omp-model-catalog.js';
|
|
8
6
|
import { quoteExecutable } from '../core/shell-env.js';
|
|
9
7
|
import { AgentAccountUnavailableError, resolveProfileEnvForRoot } from '../workspace/agent-profiles.js';
|
|
10
8
|
import { readWorktreePath } from './git-changes.js';
|
|
11
9
|
/** Open only a contained raster image: the OS launcher does not apply the browser's CSP. */
|
|
12
|
-
export async function openRunDefaultApp(c,
|
|
13
|
-
if (!run.worktreePath || !existsSync(run.worktreePath)) {
|
|
14
|
-
return c.json({ error: NO_WORKTREE }, 409);
|
|
15
|
-
}
|
|
10
|
+
export async function openRunDefaultApp(c, worktree, relPath, openFile) {
|
|
16
11
|
if (!relPath)
|
|
17
12
|
return c.json({ error: 'path required for the default-app target' }, 400);
|
|
18
|
-
const result = await readWorktreePath(
|
|
13
|
+
const result = await readWorktreePath(worktree, relPath);
|
|
19
14
|
if (result.kind !== 'file') {
|
|
20
15
|
return c.json({
|
|
21
16
|
error: result.kind === 'dir' ? `not a file: ${relPath}` : result.error,
|
|
@@ -39,7 +34,7 @@ export async function openRunDefaultApp(c, run, relPath, openFile, NO_WORKTREE)
|
|
|
39
34
|
: `opening in the default app is limited to images: ${result.path}`,
|
|
40
35
|
}, 409);
|
|
41
36
|
}
|
|
42
|
-
const filePath = join(
|
|
37
|
+
const filePath = join(worktree, result.path);
|
|
43
38
|
const opened = await openFile(filePath);
|
|
44
39
|
if (!opened)
|
|
45
40
|
return c.json({ error: `could not open ${result.path}`, path: filePath }, 409);
|
|
@@ -57,7 +52,7 @@ export async function openRunDefaultApp(c, run, relPath, openFile, NO_WORKTREE)
|
|
|
57
52
|
// would attach a SECOND CLI process to the transcript the engine is actively writing. Those
|
|
58
53
|
// picks launch the CLI fresh in the worktree — the same degradation as a cross-runner pick,
|
|
59
54
|
// and what the client's cliTargetResumes now labels. Resume-after-finish is untouched.
|
|
60
|
-
export async function openRunCli(c, run, cliRunner, dir, repoRoot, { providerActionError, resumeCommand, handoffEnv, handoffFallbackCommand, openTerminal, home }) {
|
|
55
|
+
export async function openRunCli(c, run, cliRunner, dir, repoRoot, { providerActionError, resumeCommand, handoffEnv, handoffFallbackCommand, openTerminal, home }, checkout) {
|
|
61
56
|
const refusal = fallbackProjectWriteError(dir);
|
|
62
57
|
if (refusal)
|
|
63
58
|
return c.json({ error: refusal }, 409);
|
|
@@ -65,7 +60,7 @@ export async function openRunCli(c, run, cliRunner, dir, repoRoot, { providerAct
|
|
|
65
60
|
if (blocked)
|
|
66
61
|
return c.json({ error: blocked }, 409);
|
|
67
62
|
// A usage-limit hold has no session until its resume (hearsay-tools/cezarion#1236), so it resumes.
|
|
68
|
-
const sessionStep =
|
|
63
|
+
const sessionStep = !checkout.resumeAllowed ? undefined : [...run.steps].reverse().find((s) => s.sessionId);
|
|
69
64
|
const sessionId = sessionStep?.sessionId;
|
|
70
65
|
// An id resumeCommand refuses (open-mercato/cezar#431) degrades to a fresh CLI in the worktree,
|
|
71
66
|
// exactly like a run that never recorded a session.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-in-targets.js","sourceRoot":"","sources":["../../src/server/open-in-targets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"open-in-targets.js","sourceRoot":"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C9D,CAAC,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,oBAAoB,EAAE,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAClG,CAAC;AAED,2FAA2F;AAC3F,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,CAAU,EAAE,MAAc,EAAE,GAAW,EAAE,OAAyB;IACjG,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1C,IAAI,CAAC,MAAM;QAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,kBAAkB,MAAM,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,GAAG,CAAC,CAAC;IAClF,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RunManager } from '../workflows/run.ts';
|
|
2
2
|
import type { RunRecord, RunStore } from '../runs/store.ts';
|
|
3
|
-
export declare const NO_WORKTREE = "no worktree \u2014 this task ran directly in the repo working tree";
|
|
4
3
|
export type CheckoutIntent = 'read' | 'mutate' | 'publish' | 'remove' | 'open';
|
|
5
4
|
export interface RunCheckoutHost {
|
|
6
5
|
root: string;
|
|
@@ -22,6 +21,17 @@ type ReadHandle<Rule extends ReadDirectoryRule> = {
|
|
|
22
21
|
run: RunRecord;
|
|
23
22
|
directory: Rule extends 'existing-worktree' ? string | null : string;
|
|
24
23
|
};
|
|
24
|
+
interface OpenOptions {
|
|
25
|
+
ignoresEngineOwnership: boolean;
|
|
26
|
+
defaultTargetNeedsWorktree: boolean;
|
|
27
|
+
}
|
|
28
|
+
type OpenHandle = {
|
|
29
|
+
run: RunRecord;
|
|
30
|
+
directory: () => string;
|
|
31
|
+
readonly worktree: string | null;
|
|
32
|
+
defaultWorktree: () => string | CheckoutRefusal;
|
|
33
|
+
readonly resumeAllowed: boolean;
|
|
34
|
+
};
|
|
25
35
|
type ClaimedHandle = {
|
|
26
36
|
run: RunRecord;
|
|
27
37
|
release: () => void;
|
|
@@ -34,6 +44,7 @@ interface RemoveOptions {
|
|
|
34
44
|
ignoresHold: true;
|
|
35
45
|
nullClaimError: string;
|
|
36
46
|
}
|
|
47
|
+
export declare function runCheckout(host: RunCheckoutHost, id: string, intent: 'open', options: OpenOptions): CheckoutRefusal | OpenHandle;
|
|
37
48
|
/** Admission stays synchronous: no yield between lookup and claim. */
|
|
38
49
|
export declare function runCheckout(host: RunCheckoutHost, id: string, intent: 'publish'): CheckoutRefusal | ClaimedHandle;
|
|
39
50
|
export declare function runCheckout(host: RunCheckoutHost, id: string, intent: 'remove', options: RemoveOptions): CheckoutRefusal | ClaimedHandle;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { engineOwnsRun } from '../contract/index.js';
|
|
1
2
|
import { isUsageLimitHold } from '../contract/index.js';
|
|
2
3
|
import { fallbackProjectWriteError } from '../project-paths.js';
|
|
3
4
|
import { rematerializeReclaimedWorktree } from '../runs/retention.js';
|
|
@@ -13,10 +14,12 @@ const worktreeOf = (run) => run.worktreePath && existsSync(run.worktreePath) ? r
|
|
|
13
14
|
const workingDirectoryOf = (run, repoRoot) => run.worktree === false
|
|
14
15
|
? repoRoot
|
|
15
16
|
: worktreeOf(run);
|
|
16
|
-
|
|
17
|
+
const NO_WORKTREE = 'no worktree — this task ran directly in the repo working tree';
|
|
17
18
|
export function runCheckout(host, id, intent, options = { checksAutosave: true, directory: 'existing-worktree' }) {
|
|
18
19
|
if (intent === 'publish')
|
|
19
20
|
return publishCheckout(host, id);
|
|
21
|
+
if ('ignoresEngineOwnership' in options)
|
|
22
|
+
return openCheckout(host, id, options);
|
|
20
23
|
if ('claim' in options)
|
|
21
24
|
return removeCheckout(host, id, options);
|
|
22
25
|
const { root, store } = host;
|
|
@@ -107,4 +110,19 @@ export async function reclaimCheckoutError(run) {
|
|
|
107
110
|
? `the worktree has ${dirty} uncommitted file${dirty === 1 ? '' : 's'} that exist nowhere else — commit or discard them first`
|
|
108
111
|
: 'the worktree directory could not be removed';
|
|
109
112
|
}
|
|
113
|
+
function openCheckout({ root, store }, id, options) {
|
|
114
|
+
const run = store.getRun(id);
|
|
115
|
+
if (!run)
|
|
116
|
+
return { status: 404, body: { error: 'not found' } };
|
|
117
|
+
return {
|
|
118
|
+
run,
|
|
119
|
+
directory: () => worktreeOf(run) ?? root,
|
|
120
|
+
get worktree() { return worktreeOf(run); },
|
|
121
|
+
defaultWorktree() {
|
|
122
|
+
const worktree = worktreeOf(run);
|
|
123
|
+
return worktree ?? (options.defaultTargetNeedsWorktree ? { status: 409, body: { error: NO_WORKTREE } } : root);
|
|
124
|
+
},
|
|
125
|
+
get resumeAllowed() { return options.ignoresEngineOwnership || !engineOwnsRun(run); },
|
|
126
|
+
};
|
|
127
|
+
}
|
|
110
128
|
//# sourceMappingURL=run-checkout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-checkout.js","sourceRoot":"","sources":["../../src/server/run-checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,+EAA+E;AAC/E,wFAAwF;AACxF,2EAA2E;AAC3E,yEAAyE;AACzE,qEAAqE;AACrE,MAAM,UAAU,GAAG,CAAC,GAAc,EAAiB,EAAE,CACnD,GAAG,CAAC,YAAY,IAAI,UAAU,CAAC,GAAG,CAAC,YAAY,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I,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACjH,CAAC;QACD,IAAI,aAAa,KAAK,OAAO,OAAO,CAAC,sBAAsB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACtF,CAAC;AACJ,CAAC"}
|
package/dist/server/server.d.ts
CHANGED
|
@@ -18611,18 +18611,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18611
18611
|
error: string;
|
|
18612
18612
|
};
|
|
18613
18613
|
outputFormat: "json";
|
|
18614
|
-
status: 404;
|
|
18615
|
-
input: {
|
|
18616
|
-
param: {
|
|
18617
|
-
id: string;
|
|
18618
|
-
};
|
|
18619
|
-
};
|
|
18620
|
-
} | {
|
|
18621
|
-
output: {
|
|
18622
|
-
error: string;
|
|
18623
|
-
};
|
|
18624
|
-
outputFormat: "json";
|
|
18625
|
-
status: 409;
|
|
18614
|
+
status: 404 | 409;
|
|
18626
18615
|
input: {
|
|
18627
18616
|
param: {
|
|
18628
18617
|
id: string;
|
|
@@ -18649,23 +18638,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
18649
18638
|
error: string;
|
|
18650
18639
|
};
|
|
18651
18640
|
outputFormat: "json";
|
|
18652
|
-
status: 404;
|
|
18653
|
-
input: {
|
|
18654
|
-
json: {
|
|
18655
|
-
target: string;
|
|
18656
|
-
path?: string | undefined;
|
|
18657
|
-
};
|
|
18658
|
-
} & {
|
|
18659
|
-
param: {
|
|
18660
|
-
id: string;
|
|
18661
|
-
};
|
|
18662
|
-
};
|
|
18663
|
-
} | {
|
|
18664
|
-
output: {
|
|
18665
|
-
error: string;
|
|
18666
|
-
};
|
|
18667
|
-
outputFormat: "json";
|
|
18668
|
-
status: 409;
|
|
18641
|
+
status: 404 | 409;
|
|
18669
18642
|
input: {
|
|
18670
18643
|
json: {
|
|
18671
18644
|
target: string;
|
|
@@ -34502,18 +34475,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34502
34475
|
error: string;
|
|
34503
34476
|
};
|
|
34504
34477
|
outputFormat: "json";
|
|
34505
|
-
status: 404;
|
|
34506
|
-
input: {
|
|
34507
|
-
param: {
|
|
34508
|
-
id: string;
|
|
34509
|
-
};
|
|
34510
|
-
};
|
|
34511
|
-
} | {
|
|
34512
|
-
output: {
|
|
34513
|
-
error: string;
|
|
34514
|
-
};
|
|
34515
|
-
outputFormat: "json";
|
|
34516
|
-
status: 409;
|
|
34478
|
+
status: 404 | 409;
|
|
34517
34479
|
input: {
|
|
34518
34480
|
param: {
|
|
34519
34481
|
id: string;
|
|
@@ -34540,23 +34502,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
34540
34502
|
error: string;
|
|
34541
34503
|
};
|
|
34542
34504
|
outputFormat: "json";
|
|
34543
|
-
status: 404;
|
|
34544
|
-
input: {
|
|
34545
|
-
json: {
|
|
34546
|
-
target: string;
|
|
34547
|
-
path?: string | undefined;
|
|
34548
|
-
};
|
|
34549
|
-
} & {
|
|
34550
|
-
param: {
|
|
34551
|
-
id: string;
|
|
34552
|
-
};
|
|
34553
|
-
};
|
|
34554
|
-
} | {
|
|
34555
|
-
output: {
|
|
34556
|
-
error: string;
|
|
34557
|
-
};
|
|
34558
|
-
outputFormat: "json";
|
|
34559
|
-
status: 409;
|
|
34505
|
+
status: 404 | 409;
|
|
34560
34506
|
input: {
|
|
34561
34507
|
json: {
|
|
34562
34508
|
target: string;
|
package/dist/server/server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runCheckout, preparePublishCheckout, reclaimCheckoutError
|
|
1
|
+
import { runCheckout, preparePublishCheckout, reclaimCheckoutError } from './run-checkout.js';
|
|
2
2
|
import { adoptFallbackControl, protectFallbackRun, runArtifactDirectory } from './project-run-files.js';
|
|
3
3
|
import { deleteSavedWorkflow } from './workflow-files.js';
|
|
4
4
|
import { projectPaths, fallbackProjectWriteError } from '../project-paths.js';
|
|
@@ -3187,11 +3187,10 @@ export function createApp(deps) {
|
|
|
3187
3187
|
// "Open in terminal" (spec 003): hand the session off to a real terminal —
|
|
3188
3188
|
// in the task's worktree when it still exists (spec 006).
|
|
3189
3189
|
.post('/runs/:id/open-in-cli', async (c) => {
|
|
3190
|
-
const
|
|
3191
|
-
const
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
return c.json({ error: 'not found' }, 404);
|
|
3190
|
+
const project = c.get('project');
|
|
3191
|
+
const checkout = runCheckout(project, c.req.param('id'), 'open', { ignoresEngineOwnership: true, defaultTargetNeedsWorktree: false });
|
|
3192
|
+
if ('status' in checkout)
|
|
3193
|
+
return c.json(checkout.body, checkout.status);
|
|
3195
3194
|
// Hosted mode: there is no "my machine" to open a terminal on. The UI
|
|
3196
3195
|
// hides the button when localHandoff is false — this is defense in depth.
|
|
3197
3196
|
if (!capabilities().localHandoff) {
|
|
@@ -3199,15 +3198,15 @@ export function createApp(deps) {
|
|
|
3199
3198
|
error: 'local handoff is disabled — this cockpit runs in hosted mode (CEZ_REMOTE); resume the session from a machine that has the checkout',
|
|
3200
3199
|
}, 409);
|
|
3201
3200
|
}
|
|
3202
|
-
const sessionStep = [...run.steps].reverse().find((s) => s.sessionId);
|
|
3201
|
+
const sessionStep = [...checkout.run.steps].reverse().find((s) => s.sessionId);
|
|
3203
3202
|
const sessionId = sessionStep?.sessionId;
|
|
3204
3203
|
if (!sessionId)
|
|
3205
3204
|
return c.json({ error: 'no agent session to resume' }, 409);
|
|
3206
|
-
const backend = sessionStep?.backend ?? run.runner ?? 'claude';
|
|
3205
|
+
const backend = sessionStep?.backend ?? checkout.run.runner ?? 'claude';
|
|
3207
3206
|
const blocked = await providerActionError([backend]);
|
|
3208
3207
|
if (blocked)
|
|
3209
3208
|
return c.json({ error: blocked }, 409);
|
|
3210
|
-
const cwd =
|
|
3209
|
+
const cwd = checkout.directory();
|
|
3211
3210
|
const refusal = fallbackProjectWriteError(cwd);
|
|
3212
3211
|
if (refusal)
|
|
3213
3212
|
return c.json({ error: refusal }, 409);
|
|
@@ -3232,11 +3231,10 @@ export function createApp(deps) {
|
|
|
3232
3231
|
})
|
|
3233
3232
|
// Open a run's worktree (or the repo root) in the chosen local app.
|
|
3234
3233
|
.post('/runs/:id/open-in', jsonZodValidator(openInSchema), async (c) => {
|
|
3235
|
-
const
|
|
3236
|
-
const
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
return c.json({ error: 'not found' }, 404);
|
|
3234
|
+
const project = c.get('project');
|
|
3235
|
+
const checkout = runCheckout(project, c.req.param('id'), 'open', { ignoresEngineOwnership: false, defaultTargetNeedsWorktree: true });
|
|
3236
|
+
if ('status' in checkout)
|
|
3237
|
+
return c.json(checkout.body, checkout.status);
|
|
3240
3238
|
if (!capabilities().localHandoff) {
|
|
3241
3239
|
return c.json({
|
|
3242
3240
|
error: 'local handoff is disabled — this cockpit runs in hosted mode (CEZ_REMOTE)',
|
|
@@ -3244,17 +3242,19 @@ export function createApp(deps) {
|
|
|
3244
3242
|
}
|
|
3245
3243
|
// Follows the safeParse convention (#429); the downstream allowlist match is the real
|
|
3246
3244
|
// injection guard, this just validates the shape.
|
|
3247
|
-
const
|
|
3248
|
-
const
|
|
3249
|
-
const dir = run.worktreePath && existsSync(run.worktreePath) ? run.worktreePath : repoRoot;
|
|
3245
|
+
const { target, path: relPath } = c.req.valid('json');
|
|
3246
|
+
const dir = checkout.directory();
|
|
3250
3247
|
if (target === 'default') {
|
|
3251
|
-
|
|
3248
|
+
const worktree = checkout.defaultWorktree();
|
|
3249
|
+
if (typeof worktree !== 'string')
|
|
3250
|
+
return c.json(worktree.body, worktree.status);
|
|
3251
|
+
return openRunDefaultApp(c, worktree, relPath, openFile);
|
|
3252
3252
|
}
|
|
3253
3253
|
const cliRunner = agentCliRunner(target);
|
|
3254
3254
|
if (cliRunner) {
|
|
3255
|
-
return openRunCli(c, run, cliRunner, dir,
|
|
3255
|
+
return openRunCli(c, checkout.run, cliRunner, dir, project.root, { home: deps.home,
|
|
3256
3256
|
providerActionError, resumeCommand, handoffEnv, handoffFallbackCommand, openTerminal,
|
|
3257
|
-
});
|
|
3257
|
+
}, checkout);
|
|
3258
3258
|
}
|
|
3259
3259
|
return openRunApp(c, target, dir, openApp);
|
|
3260
3260
|
})
|