@wjarka/cezarion 0.17.0-dev.5506 → 0.17.0-dev.5515
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/README.md +12 -0
- package/dist/ci-wait/controller.d.ts +37 -37
- package/dist/ci-wait/errors.js +2 -2
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/tools.js +8 -6
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/cli-dispatch.js +1 -0
- package/dist/cli-dispatch.js.map +1 -1
- package/dist/delegation/transport.d.ts +62 -62
- package/dist/jobs/cli.d.ts +2 -0
- package/dist/jobs/cli.js +53 -0
- package/dist/jobs/cli.js.map +1 -0
- package/dist/jobs/command.d.ts +9 -0
- package/dist/jobs/command.js +19 -0
- package/dist/jobs/command.js.map +1 -0
- package/dist/jobs/job.d.ts +77 -0
- package/dist/jobs/job.js +252 -0
- package/dist/jobs/job.js.map +1 -0
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/run-checkout.d.ts +2 -3
- package/dist/server/run-checkout.js +4 -4
- package/dist/server/run-checkout.js.map +1 -1
- package/dist/server/self-update-routes.d.ts +19 -19
- package/dist/server/server.d.ts +1383 -1435
- package/dist/server/server.js +11 -24
- package/dist/server/server.js.map +1 -1
- package/dist/subcommands.d.ts +1 -1
- package/dist/subcommands.js +2 -1
- package/dist/subcommands.js.map +1 -1
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workflows/run/session-events.d.ts +1 -1
- package/dist/workflows/run/session-events.js +3 -2
- package/dist/workflows/run/session-events.js.map +1 -1
- package/dist/workflows/run/wait-kinds.d.ts +3 -0
- package/dist/workflows/run/wait-kinds.js +11 -1
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/package.json +3 -3
- package/web/dist/assets/{activity-motion-BHr-ZAZp.js → activity-motion-D-wNjCZO.js} +1 -1
- package/web/dist/assets/{activity-route-Bk7-QeK_.js → activity-route-CEhKA6LC.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-C9vHxqqQ.js → commit-diff-panel-C5SEnKvj.js} +1 -1
- package/web/dist/assets/{diff-gmuErI3F.js → diff-DOKQG121.js} +2 -2
- package/web/dist/assets/{diff-view-DigfbKBX.js → diff-view-Dlbaomc6.js} +1 -1
- package/web/dist/assets/{git-toolbar-DOUDDTBC.js → git-toolbar-B_lgnDi3.js} +1 -1
- package/web/dist/assets/{github-DBcdEsSz.js → github-89EDv5jm.js} +1 -1
- package/web/dist/assets/{global-activity-route-CxCecB2W.js → global-activity-route-2SM3xKBA.js} +1 -1
- package/web/dist/assets/{index-Cybrk3p9.js → index-DKIv9VPA.js} +3 -3
- package/web/dist/assets/{preview-pane-connected-mMMD4IiM.js → preview-pane-connected-B730Jv1e.js} +1 -1
- package/web/dist/assets/{repo-git-Dv-6cKAC.js → repo-git-D6gQXbHu.js} +1 -1
- package/web/dist/assets/{report-reader-Dtus2Ua4.js → report-reader-DP43jeNM.js} +1 -1
- package/web/dist/assets/{reports-DAgEuUbp.js → reports-DV8NzFp3.js} +1 -1
- package/web/dist/assets/{run-header-BPaPARge.js → run-header-DjXPrh23.js} +1 -1
- package/web/dist/assets/{skills-XYpWQDCm.js → skills-DuZYEbo5.js} +1 -1
- package/web/dist/assets/{task-changes-BAQ4Gn66.js → task-changes-CUWFco57.js} +1 -1
- package/web/dist/assets/{task-commits-DS7kN8JG.js → task-commits-Cgoxt66y.js} +1 -1
- package/web/dist/assets/{task-files-D7YFhWFg.js → task-files-BmTRfJ5K.js} +1 -1
- package/web/dist/assets/{task-github-item-bRgH9WkE.js → task-github-item-Cmro8m-6.js} +1 -1
- package/web/dist/assets/{task-thread-CuRhXDEj.js → task-thread-BTjoNRed.js} +2 -2
- package/web/dist/assets/{thread-state-DDD8tLGN.js → thread-state-Cd3ERj1h.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-b8KEA5pM.js → use-hand-to-agent-state-C2rQan6D.js} +1 -1
- package/web/dist/assets/{workflows-BdKDN9aF.js → workflows-DemG2-He.js} +1 -1
- package/web/dist/index.html +1 -1
package/dist/server/server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runCheckout,
|
|
1
|
+
import { runCheckout, NO_WORKTREE } 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';
|
|
@@ -36,7 +36,6 @@ import { CompletionActionCoordinator } from './completion-actions.js';
|
|
|
36
36
|
import { resolveArchiveOnMerge, resolveGlobalArchiveOnMerge } from '../archive-on-merge-setting.js';
|
|
37
37
|
import { permissionDecisionSchema } from '../contract/index.js';
|
|
38
38
|
import { runIdParamSchema as permissionRunIdParamSchema } from '../contract/index.js';
|
|
39
|
-
import { autosaveCleanupBlocker } from '../autosave-cleanup.js';
|
|
40
39
|
import { CheckoutProgressCache } from './checkout-progress.js';
|
|
41
40
|
import { checkoutProgressParamsSchema, createProjectInputSchema } from '../contract/index.js';
|
|
42
41
|
import { createWorkspaceLiveRoutes } from './workspace-live-routes.js';
|
|
@@ -3491,34 +3490,22 @@ export function createApp(deps) {
|
|
|
3491
3490
|
});
|
|
3492
3491
|
})
|
|
3493
3492
|
.post('/runs/:id/git/commit', jsonZodValidator(gitCommitSchema), async (c) => {
|
|
3494
|
-
const
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
return c.json({ error: 'not found' }, 404);
|
|
3498
|
-
const blocker = autosaveCleanupBlocker(store.sourceDataDir(run.id), run.id);
|
|
3499
|
-
if (blocker)
|
|
3500
|
-
return c.json({ error: blocker }, 409);
|
|
3501
|
-
const worktree = worktreeOf(run);
|
|
3502
|
-
if (!worktree)
|
|
3503
|
-
return c.json({ error: NO_WORKTREE }, 409);
|
|
3493
|
+
const checkout = runCheckout(c.get('project'), c.req.param('id'), 'mutate');
|
|
3494
|
+
if ('status' in checkout)
|
|
3495
|
+
return c.json(checkout.body, checkout.status);
|
|
3504
3496
|
const parsed = { data: c.req.valid('json') };
|
|
3505
|
-
const result = await commitAll(
|
|
3497
|
+
const result = await commitAll(checkout.directory, parsed.data.message);
|
|
3506
3498
|
if (!result.ok)
|
|
3507
3499
|
return c.json({ error: result.error }, 409);
|
|
3508
3500
|
return c.json({ committed: true, sha: result.sha });
|
|
3509
3501
|
})
|
|
3510
3502
|
.post('/runs/:id/git/push', async (c) => {
|
|
3511
|
-
const { root: repoRoot
|
|
3512
|
-
const
|
|
3513
|
-
if (
|
|
3514
|
-
return c.json(
|
|
3515
|
-
const
|
|
3516
|
-
|
|
3517
|
-
return c.json({ error: blocker }, 409);
|
|
3518
|
-
const worktree = worktreeOf(run);
|
|
3519
|
-
if (!worktree)
|
|
3520
|
-
return c.json({ error: NO_WORKTREE }, 409);
|
|
3521
|
-
const result = await pushCurrentBranch(worktree);
|
|
3503
|
+
const { root: repoRoot } = c.get('project');
|
|
3504
|
+
const checkout = runCheckout(c.get('project'), c.req.param('id'), 'mutate');
|
|
3505
|
+
if ('status' in checkout)
|
|
3506
|
+
return c.json(checkout.body, checkout.status);
|
|
3507
|
+
const { run } = checkout;
|
|
3508
|
+
const result = await pushCurrentBranch(checkout.directory);
|
|
3522
3509
|
if (!result.ok)
|
|
3523
3510
|
return c.json({ error: result.error }, 409);
|
|
3524
3511
|
const repoBase = forgeWebRoot((await getRepoInfo(repoRoot))?.remote) ?? undefined;
|