@hearsay-tools/squawk 0.18.0-dev.5863 → 0.18.0-dev.5872
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 +5 -14
- package/dist/ci-wait/controller.d.ts +4 -4
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/cli-dispatch.d.ts +0 -3
- package/dist/cli-dispatch.js +3 -23
- package/dist/cli-dispatch.js.map +1 -1
- package/dist/contract/health.d.ts +0 -12
- package/dist/contract/index.d.ts +0 -2
- package/dist/contract/index.js +1965 -2102
- package/dist/{self-update/supervisor.js → desktop-supervisor.js} +2 -2
- package/dist/desktop-supervisor.js.map +1 -0
- package/dist/home/entry.d.ts +1 -1
- package/dist/home/entry.js +1 -1
- package/dist/home/entry.js.map +1 -1
- package/dist/home/home.d.ts +1 -4
- package/dist/home/home.js +1 -5
- package/dist/home/home.js.map +1 -1
- package/dist/home/migrate.js +4 -4
- package/dist/home/migrate.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/managed-install/launcher.d.ts +14 -0
- package/dist/{self-update → managed-install}/launcher.js +8 -43
- package/dist/managed-install/launcher.js.map +1 -0
- package/dist/managed-install/layout.d.ts +35 -0
- package/dist/managed-install/layout.js +43 -0
- package/dist/managed-install/layout.js.map +1 -0
- package/dist/runs/run-exits.d.ts +301 -301
- package/dist/runs/store.d.ts +72 -72
- package/dist/serve-boot.d.ts +1 -19
- package/dist/serve-boot.js +1 -44
- package/dist/serve-boot.js.map +1 -1
- package/dist/serve-command.d.ts +2 -4
- package/dist/serve-command.js +7 -11
- package/dist/serve-command.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +3 -347
- package/dist/server/server.js +1 -60
- package/dist/server/server.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/voice/routes.d.ts +19 -19
- package/dist/workspace/config.d.ts +0 -5
- package/dist/workspace/config.js +0 -4
- package/dist/workspace/config.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-Dj3dlCYS.js +2 -0
- package/web/dist/assets/{activity-route-1OFUVP3A.js → activity-route-CpjbEhk_.js} +1 -1
- package/web/dist/assets/{alert-dialog-Dj464rjk.js → alert-dialog-h-3h9B4l.js} +1 -1
- package/web/dist/assets/button-CS5tOblf.js +3 -0
- package/web/dist/assets/{centered-state-DGyy0SuA.js → centered-state-BmsqxbI8.js} +1 -1
- package/web/dist/assets/commit-diff-panel-DGx2t9Pw.js +1 -0
- package/web/dist/assets/{control-locations-C9II3kPz.js → control-locations-CD2r0mMU.js} +1 -1
- package/web/dist/assets/{diff-controls-BR2uqhwG.js → diff-controls-BHF0Pvdc.js} +1 -1
- package/web/dist/assets/diff-qq2vW6Xc.js +3 -0
- package/web/dist/assets/{diff-view-BBhxSIlf.js → diff-view-wanjAW5U.js} +5 -5
- package/web/dist/assets/{dropdown-menu-DhrBcVgr.js → dropdown-menu-CjLqyqwB.js} +1 -1
- package/web/dist/assets/{es2015-D345RR4o.js → es2015-CX0rgbM5.js} +1 -1
- package/web/dist/assets/file-preview-YiP5f666.js +2 -0
- package/web/dist/assets/format-BNCkW110.js +1 -0
- package/web/dist/assets/git-toolbar-D0mTYtOj.js +1 -0
- package/web/dist/assets/github-DizdAh0y.js +1 -0
- package/web/dist/assets/{global-activity-route-Dt83uvZc.js → global-activity-route-DMbPEZPP.js} +1 -1
- package/web/dist/assets/{image-preview-Cq1vDiEo.js → image-preview-Dy3o8upo.js} +1 -1
- package/web/dist/assets/index-9YmaiQ1k.css +1 -0
- package/web/dist/assets/index-D51Su-nT.js +34 -0
- package/web/dist/assets/{live-refetch-BdnmTJ_8.js → live-refetch-C2xZHKkJ.js} +1 -1
- package/web/dist/assets/{nav-row-styles-BZUUavOF.js → nav-row-styles-CEA9c88Q.js} +1 -1
- package/web/dist/assets/play-CmVAj_fu.js +1 -0
- package/web/dist/assets/popover-s-Wchzjn.js +1 -0
- package/web/dist/assets/preview-pane-connected-DQYoGd9W.js +3 -0
- package/web/dist/assets/{project-router-MMOk9VbW.js → project-router-BLO2IxbU.js} +1 -1
- package/web/dist/assets/project-scope-context-DbO9a0ii.js +4 -0
- package/web/dist/assets/queries-C_DEjjv2.js +1 -0
- package/web/dist/assets/repo-git-CSTwuYJ5.js +1 -0
- package/web/dist/assets/report-reader-B8D_6si1.js +1 -0
- package/web/dist/assets/reports-Dr312nK-.js +1 -0
- package/web/dist/assets/run-header-B8M6-fvb.js +2 -0
- package/web/dist/assets/skills-Bz-itxvq.js +1 -0
- package/web/dist/assets/{tab-link-BvoGfK8S.js → tab-link-CqVqRhuM.js} +1 -1
- package/web/dist/assets/task-changes-6F8fNE6I.js +1 -0
- package/web/dist/assets/task-commits-1TKZD8tP.js +1 -0
- package/web/dist/assets/task-files-BitTchRw.js +1 -0
- package/web/dist/assets/{task-github-item-npfGLu9C.js → task-github-item-ux8yQOHs.js} +1 -1
- package/web/dist/assets/{task-thread-DnpkXb5P.js → task-thread-DAnwO8BU.js} +7 -7
- package/web/dist/assets/thread-state-COdb27sX.js +4 -0
- package/web/dist/assets/{toaster-B1MyeHiE.js → toaster-CRVRHlMR.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-CZK9cWMq.js +1 -0
- package/web/dist/assets/{useInfiniteQuery-BbYMWe23.js → useInfiniteQuery-DCWsxLiy.js} +1 -1
- package/web/dist/assets/useQuery-C2HBIY3e.js +1 -0
- package/web/dist/assets/workflows-CNnPn5Zx.js +7 -0
- package/web/dist/assets/ws-BXdlGFIZ.js +1 -0
- package/web/dist/assets/{zoomable-image-5pOUaPEg.js → zoomable-image-UzXCYU7Z.js} +1 -1
- package/web/dist/index.html +21 -26
- package/dist/application-update/bin-recovery.d.ts +0 -5
- package/dist/application-update/bin-recovery.js +0 -96
- package/dist/application-update/bin-recovery.js.map +0 -1
- package/dist/application-update/discovery.d.ts +0 -23
- package/dist/application-update/discovery.js +0 -139
- package/dist/application-update/discovery.js.map +0 -1
- package/dist/application-update/helper.d.ts +0 -58
- package/dist/application-update/helper.js +0 -363
- package/dist/application-update/helper.js.map +0 -1
- package/dist/application-update/launcher.d.ts +0 -12
- package/dist/application-update/launcher.js +0 -61
- package/dist/application-update/launcher.js.map +0 -1
- package/dist/application-update/lock.d.ts +0 -4
- package/dist/application-update/lock.js +0 -70
- package/dist/application-update/lock.js.map +0 -1
- package/dist/application-update/npm-process.d.ts +0 -17
- package/dist/application-update/npm-process.js +0 -156
- package/dist/application-update/npm-process.js.map +0 -1
- package/dist/application-update/runtime-layout.d.ts +0 -20
- package/dist/application-update/runtime-layout.js +0 -91
- package/dist/application-update/runtime-layout.js.map +0 -1
- package/dist/application-update/scoped-recovery.d.ts +0 -32
- package/dist/application-update/scoped-recovery.js +0 -210
- package/dist/application-update/scoped-recovery.js.map +0 -1
- package/dist/application-update/service.d.ts +0 -86
- package/dist/application-update/service.js +0 -523
- package/dist/application-update/service.js.map +0 -1
- package/dist/contract/application-update.d.ts +0 -32
- package/dist/contract/self-update.d.ts +0 -255
- package/dist/self-update/checkouts.d.ts +0 -46
- package/dist/self-update/checkouts.js +0 -284
- package/dist/self-update/checkouts.js.map +0 -1
- package/dist/self-update/cli.d.ts +0 -19
- package/dist/self-update/cli.js +0 -243
- package/dist/self-update/cli.js.map +0 -1
- package/dist/self-update/installer.d.ts +0 -24
- package/dist/self-update/installer.js +0 -139
- package/dist/self-update/installer.js.map +0 -1
- package/dist/self-update/launcher.d.ts +0 -30
- package/dist/self-update/launcher.js.map +0 -1
- package/dist/self-update/layout.d.ts +0 -108
- package/dist/self-update/layout.js +0 -276
- package/dist/self-update/layout.js.map +0 -1
- package/dist/self-update/pulls.d.ts +0 -30
- package/dist/self-update/pulls.js +0 -128
- package/dist/self-update/pulls.js.map +0 -1
- package/dist/self-update/registry.d.ts +0 -37
- package/dist/self-update/registry.js +0 -86
- package/dist/self-update/registry.js.map +0 -1
- package/dist/self-update/restart.d.ts +0 -25
- package/dist/self-update/restart.js +0 -79
- package/dist/self-update/restart.js.map +0 -1
- package/dist/self-update/semver.d.ts +0 -19
- package/dist/self-update/semver.js +0 -79
- package/dist/self-update/semver.js.map +0 -1
- package/dist/self-update/service.d.ts +0 -115
- package/dist/self-update/service.js +0 -332
- package/dist/self-update/service.js.map +0 -1
- package/dist/self-update/supervisor.js.map +0 -1
- package/dist/server/self-update-routes.d.ts +0 -308
- package/dist/server/self-update-routes.js +0 -80
- package/dist/server/self-update-routes.js.map +0 -1
- package/web/dist/assets/activity-motion-BdGFmrw-.js +0 -2
- package/web/dist/assets/agent-accounts-f1cxwgfz.js +0 -18
- package/web/dist/assets/button-CHUAMTHK.js +0 -3
- package/web/dist/assets/commit-diff-panel-BiNPMHC6.js +0 -1
- package/web/dist/assets/diff-BHwQUS2W.js +0 -3
- package/web/dist/assets/file-preview-D08Kq15E.js +0 -2
- package/web/dist/assets/git-toolbar-BnOaO_OH.js +0 -1
- package/web/dist/assets/github-CXc8nroh.js +0 -1
- package/web/dist/assets/github-sidebar-model-B0Ufci5S.js +0 -1
- package/web/dist/assets/index-B18AqW0Z.css +0 -1
- package/web/dist/assets/index-B5LayM4y.js +0 -14
- package/web/dist/assets/loader-circle-CZkGEdoI.js +0 -1
- package/web/dist/assets/markdown-D7DUNWcJ.js +0 -6
- package/web/dist/assets/popover-DRcRI46x.js +0 -1
- package/web/dist/assets/preview-pane-connected-JHeCgq7I.js +0 -3
- package/web/dist/assets/project-scope-context-B3M-u8R0.js +0 -4
- package/web/dist/assets/queries-DORTKwyN.js +0 -1
- package/web/dist/assets/repo-git-wEXDON29.js +0 -1
- package/web/dist/assets/report-reader-DJ_0htSx.js +0 -1
- package/web/dist/assets/reports-BIXmTBFJ.js +0 -1
- package/web/dist/assets/run-header-Bgtlx-vc.js +0 -2
- package/web/dist/assets/skills-BJ2nSfyr.js +0 -1
- package/web/dist/assets/skills-DFBiAuJG.js +0 -1
- package/web/dist/assets/skills-workflows-C21NystW.css +0 -1
- package/web/dist/assets/task-changes-Dz0udwrE.js +0 -1
- package/web/dist/assets/task-commits-5uILgm5M.js +0 -1
- package/web/dist/assets/task-files-DGZjTKSS.js +0 -1
- package/web/dist/assets/textarea-DlVUfdWG.js +0 -1
- package/web/dist/assets/thread-state-BfrO2t7g.js +0 -4
- package/web/dist/assets/use-hand-to-agent-state-DyVB4IBv.js +0 -1
- package/web/dist/assets/useQuery-CqqnAJvu.js +0 -1
- package/web/dist/assets/workflows-ByduCwgu.js +0 -7
- package/web/dist/assets/ws-BtSVmivO.js +0 -1
- /package/dist/{self-update/supervisor.d.ts → desktop-supervisor.d.ts} +0 -0
package/dist/server/server.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { WorkspaceConfigResponse } from '../contract/index.js';
|
|
2
2
|
import { type ActivityServerDeps } from './activity-routes.ts';
|
|
3
|
+
import type { Home } from '../home/home.ts';
|
|
3
4
|
import { type WorkspaceProjects } from './workspace-projects.ts';
|
|
4
5
|
import type { DelegationController } from '../delegation/provision.ts';
|
|
5
6
|
import { AutomationStore } from '../automations/store.ts';
|
|
@@ -9,7 +10,6 @@ import { type ServerType } from '@hono/node-server';
|
|
|
9
10
|
import { TaskWebhooks } from '../runs/webhook.ts';
|
|
10
11
|
import { ProviderAuthService, type ProviderId } from '../core/provider-auth.ts';
|
|
11
12
|
import { RunnerModelCatalog } from '../core/runner-model-catalog.ts';
|
|
12
|
-
import { type SelfUpdateServerDeps } from './self-update-routes.ts';
|
|
13
13
|
import { type RunStore } from '../runs/store.ts';
|
|
14
14
|
import { type RunManager } from '../workflows/run.ts';
|
|
15
15
|
import { type BranchForge } from './repo-branches.ts';
|
|
@@ -18,7 +18,6 @@ import { WorkspaceSemaphore } from '../workspace/semaphore.ts';
|
|
|
18
18
|
import { type CloneRunner } from './checkout.ts';
|
|
19
19
|
import { type CommandRunner } from './create-project.ts';
|
|
20
20
|
import { ProjectContexts, type ProjectContext } from './project-context.ts';
|
|
21
|
-
import { type ApplicationUpdateServiceLike } from '../application-update/service.ts';
|
|
22
21
|
import { type SocketHub, type WsUpgradeVerdict } from './ws.ts';
|
|
23
22
|
import type { PreviewHost } from '../preview/host.ts';
|
|
24
23
|
import { type ForgeFactory } from './forge/index.ts';
|
|
@@ -26,7 +25,8 @@ import { type CockpitOwnership } from './cockpit-ownership.ts';
|
|
|
26
25
|
import { openInTerminal } from './open-in-terminal.ts';
|
|
27
26
|
import { openFileInDefaultApp, openInApp } from './open-in-app.ts';
|
|
28
27
|
import { ProviderRuntimeAuthObserver } from './provider-auth-runtime.ts';
|
|
29
|
-
export interface ServerDeps extends
|
|
28
|
+
export interface ServerDeps extends ActivityServerDeps {
|
|
29
|
+
home: Home;
|
|
30
30
|
/** Explicit fixture seam; production defaults to the disabled rebrand release switch. */
|
|
31
31
|
legacyCanary?: boolean | undefined;
|
|
32
32
|
/** Per-repository forge injection for embedded servers and tests. */
|
|
@@ -51,8 +51,6 @@ export interface ServerDeps extends SelfUpdateServerDeps, ActivityServerDeps {
|
|
|
51
51
|
update?: {
|
|
52
52
|
latest?: string;
|
|
53
53
|
};
|
|
54
|
-
/** Local npm update coordinator, absent for test/embedded servers. */
|
|
55
|
-
applicationUpdate?: ApplicationUpdateServiceLike | undefined;
|
|
56
54
|
/** Host the HTTP server binds (default 127.0.0.1). A non-loopback host
|
|
57
55
|
* implies hosted mode — `capabilities.localHandoff:false`. */
|
|
58
56
|
bindHost?: string | undefined;
|
|
@@ -185,12 +183,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
185
183
|
output: {
|
|
186
184
|
version: string;
|
|
187
185
|
latestVersion?: string | undefined;
|
|
188
|
-
applicationUpdate?: {
|
|
189
|
-
status: "error" | "idle" | "preparing" | "ready" | "restarting";
|
|
190
|
-
supported: boolean;
|
|
191
|
-
targetVersion?: string | undefined;
|
|
192
|
-
message?: string | undefined;
|
|
193
|
-
} | undefined;
|
|
194
186
|
repoRoot: string;
|
|
195
187
|
repo: {
|
|
196
188
|
root: string;
|
|
@@ -645,60 +637,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
645
637
|
};
|
|
646
638
|
};
|
|
647
639
|
};
|
|
648
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
649
|
-
"/workspace/application-update/apply": {
|
|
650
|
-
$post: {
|
|
651
|
-
output: {
|
|
652
|
-
state: {
|
|
653
|
-
status: "error" | "idle" | "preparing" | "ready" | "restarting";
|
|
654
|
-
supported: boolean;
|
|
655
|
-
targetVersion?: string | undefined;
|
|
656
|
-
message?: string | undefined;
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
outputFormat: "json";
|
|
660
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
661
|
-
input: {
|
|
662
|
-
json: Record<string, never>;
|
|
663
|
-
};
|
|
664
|
-
} | {
|
|
665
|
-
output: {
|
|
666
|
-
error: string;
|
|
667
|
-
};
|
|
668
|
-
outputFormat: "json";
|
|
669
|
-
status: 409 | 500 | 503;
|
|
670
|
-
input: {
|
|
671
|
-
json: Record<string, never>;
|
|
672
|
-
};
|
|
673
|
-
};
|
|
674
|
-
};
|
|
675
|
-
} & {
|
|
676
|
-
"/workspace/application-update/restart": {
|
|
677
|
-
$post: {
|
|
678
|
-
output: {
|
|
679
|
-
state: {
|
|
680
|
-
status: "error" | "idle" | "preparing" | "ready" | "restarting";
|
|
681
|
-
supported: boolean;
|
|
682
|
-
targetVersion?: string | undefined;
|
|
683
|
-
message?: string | undefined;
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
outputFormat: "json";
|
|
687
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
688
|
-
input: {
|
|
689
|
-
json: Record<string, never>;
|
|
690
|
-
};
|
|
691
|
-
} | {
|
|
692
|
-
output: {
|
|
693
|
-
error: string;
|
|
694
|
-
};
|
|
695
|
-
outputFormat: "json";
|
|
696
|
-
status: 409 | 500;
|
|
697
|
-
input: {
|
|
698
|
-
json: Record<string, never>;
|
|
699
|
-
};
|
|
700
|
-
};
|
|
701
|
-
};
|
|
702
640
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
703
641
|
"/workspace/runs-index": {
|
|
704
642
|
$get: {
|
|
@@ -1557,288 +1495,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
|
|
|
1557
1495
|
};
|
|
1558
1496
|
};
|
|
1559
1497
|
};
|
|
1560
|
-
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
1561
|
-
"/workspace/self-update": {
|
|
1562
|
-
$get: {
|
|
1563
|
-
output: {
|
|
1564
|
-
version: string;
|
|
1565
|
-
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
1566
|
-
entry: string;
|
|
1567
|
-
canSelfUpdate: boolean;
|
|
1568
|
-
reason?: string | undefined;
|
|
1569
|
-
channel: "development" | "nightly" | "stable";
|
|
1570
|
-
restartMode: "reexec" | "supervisor";
|
|
1571
|
-
latest: {
|
|
1572
|
-
stable: string | null;
|
|
1573
|
-
nightly: string | null;
|
|
1574
|
-
};
|
|
1575
|
-
updateAvailable: string | null;
|
|
1576
|
-
checkedAt: string | null;
|
|
1577
|
-
installed: {
|
|
1578
|
-
id: string;
|
|
1579
|
-
version: string;
|
|
1580
|
-
source: "link" | "local" | "registry";
|
|
1581
|
-
installedAt: string;
|
|
1582
|
-
active: boolean;
|
|
1583
|
-
branch?: string | undefined;
|
|
1584
|
-
checkout?: string | undefined;
|
|
1585
|
-
}[];
|
|
1586
|
-
available: {
|
|
1587
|
-
version: string;
|
|
1588
|
-
channel: "nightly" | "preview" | "stable";
|
|
1589
|
-
publishedAt: string | null;
|
|
1590
|
-
installed: boolean;
|
|
1591
|
-
}[];
|
|
1592
|
-
job: {
|
|
1593
|
-
status: "failed" | "restarting" | "running";
|
|
1594
|
-
target: string;
|
|
1595
|
-
startedAt: string;
|
|
1596
|
-
finishedAt: string | null;
|
|
1597
|
-
log: string[];
|
|
1598
|
-
error?: string | undefined;
|
|
1599
|
-
} | null;
|
|
1600
|
-
activeRuns: number;
|
|
1601
|
-
};
|
|
1602
|
-
outputFormat: "json";
|
|
1603
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1604
|
-
input: {};
|
|
1605
|
-
};
|
|
1606
|
-
};
|
|
1607
|
-
} & {
|
|
1608
|
-
"/workspace/self-update/refresh": {
|
|
1609
|
-
$post: {
|
|
1610
|
-
output: {
|
|
1611
|
-
version: string;
|
|
1612
|
-
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
1613
|
-
entry: string;
|
|
1614
|
-
canSelfUpdate: boolean;
|
|
1615
|
-
reason?: string | undefined;
|
|
1616
|
-
channel: "development" | "nightly" | "stable";
|
|
1617
|
-
restartMode: "reexec" | "supervisor";
|
|
1618
|
-
latest: {
|
|
1619
|
-
stable: string | null;
|
|
1620
|
-
nightly: string | null;
|
|
1621
|
-
};
|
|
1622
|
-
updateAvailable: string | null;
|
|
1623
|
-
checkedAt: string | null;
|
|
1624
|
-
installed: {
|
|
1625
|
-
id: string;
|
|
1626
|
-
version: string;
|
|
1627
|
-
source: "link" | "local" | "registry";
|
|
1628
|
-
installedAt: string;
|
|
1629
|
-
active: boolean;
|
|
1630
|
-
branch?: string | undefined;
|
|
1631
|
-
checkout?: string | undefined;
|
|
1632
|
-
}[];
|
|
1633
|
-
available: {
|
|
1634
|
-
version: string;
|
|
1635
|
-
channel: "nightly" | "preview" | "stable";
|
|
1636
|
-
publishedAt: string | null;
|
|
1637
|
-
installed: boolean;
|
|
1638
|
-
}[];
|
|
1639
|
-
job: {
|
|
1640
|
-
status: "failed" | "restarting" | "running";
|
|
1641
|
-
target: string;
|
|
1642
|
-
startedAt: string;
|
|
1643
|
-
finishedAt: string | null;
|
|
1644
|
-
log: string[];
|
|
1645
|
-
error?: string | undefined;
|
|
1646
|
-
} | null;
|
|
1647
|
-
activeRuns: number;
|
|
1648
|
-
};
|
|
1649
|
-
outputFormat: "json";
|
|
1650
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1651
|
-
input: {};
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
} & {
|
|
1655
|
-
"/workspace/self-update/development": {
|
|
1656
|
-
$get: {
|
|
1657
|
-
output: {
|
|
1658
|
-
error: string;
|
|
1659
|
-
code?: "invalid_input" | undefined;
|
|
1660
|
-
};
|
|
1661
|
-
outputFormat: "json";
|
|
1662
|
-
status: 400;
|
|
1663
|
-
input: {
|
|
1664
|
-
query: {
|
|
1665
|
-
refresh?: "1" | undefined;
|
|
1666
|
-
};
|
|
1667
|
-
};
|
|
1668
|
-
} | {
|
|
1669
|
-
output: {
|
|
1670
|
-
checkouts: {
|
|
1671
|
-
id: string;
|
|
1672
|
-
branch: string;
|
|
1673
|
-
version: string;
|
|
1674
|
-
worktree: string;
|
|
1675
|
-
built: boolean;
|
|
1676
|
-
linked: boolean;
|
|
1677
|
-
commit: {
|
|
1678
|
-
sha: string;
|
|
1679
|
-
subject: string;
|
|
1680
|
-
at: string;
|
|
1681
|
-
} | null;
|
|
1682
|
-
builtAt: string | null;
|
|
1683
|
-
stale: boolean;
|
|
1684
|
-
task: {
|
|
1685
|
-
id: string;
|
|
1686
|
-
title: string;
|
|
1687
|
-
status: string;
|
|
1688
|
-
} | null;
|
|
1689
|
-
pr: number | null;
|
|
1690
|
-
}[];
|
|
1691
|
-
pulls: {
|
|
1692
|
-
available: boolean;
|
|
1693
|
-
reason?: string | undefined;
|
|
1694
|
-
repo: string;
|
|
1695
|
-
items: {
|
|
1696
|
-
number: number;
|
|
1697
|
-
title: string;
|
|
1698
|
-
author: string | null;
|
|
1699
|
-
branch: string;
|
|
1700
|
-
draft: boolean;
|
|
1701
|
-
updatedAt: string;
|
|
1702
|
-
url: string;
|
|
1703
|
-
version: string | null;
|
|
1704
|
-
publishedAt: string | null;
|
|
1705
|
-
installed: boolean;
|
|
1706
|
-
}[];
|
|
1707
|
-
};
|
|
1708
|
-
};
|
|
1709
|
-
outputFormat: "json";
|
|
1710
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1711
|
-
input: {
|
|
1712
|
-
query: {
|
|
1713
|
-
refresh?: "1" | undefined;
|
|
1714
|
-
};
|
|
1715
|
-
};
|
|
1716
|
-
};
|
|
1717
|
-
};
|
|
1718
|
-
} & {
|
|
1719
|
-
"/workspace/self-update/channel": {
|
|
1720
|
-
$put: {
|
|
1721
|
-
output: {
|
|
1722
|
-
version: string;
|
|
1723
|
-
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
1724
|
-
entry: string;
|
|
1725
|
-
canSelfUpdate: boolean;
|
|
1726
|
-
reason?: string | undefined;
|
|
1727
|
-
channel: "development" | "nightly" | "stable";
|
|
1728
|
-
restartMode: "reexec" | "supervisor";
|
|
1729
|
-
latest: {
|
|
1730
|
-
stable: string | null;
|
|
1731
|
-
nightly: string | null;
|
|
1732
|
-
};
|
|
1733
|
-
updateAvailable: string | null;
|
|
1734
|
-
checkedAt: string | null;
|
|
1735
|
-
installed: {
|
|
1736
|
-
id: string;
|
|
1737
|
-
version: string;
|
|
1738
|
-
source: "link" | "local" | "registry";
|
|
1739
|
-
installedAt: string;
|
|
1740
|
-
active: boolean;
|
|
1741
|
-
branch?: string | undefined;
|
|
1742
|
-
checkout?: string | undefined;
|
|
1743
|
-
}[];
|
|
1744
|
-
available: {
|
|
1745
|
-
version: string;
|
|
1746
|
-
channel: "nightly" | "preview" | "stable";
|
|
1747
|
-
publishedAt: string | null;
|
|
1748
|
-
installed: boolean;
|
|
1749
|
-
}[];
|
|
1750
|
-
job: {
|
|
1751
|
-
status: "failed" | "restarting" | "running";
|
|
1752
|
-
target: string;
|
|
1753
|
-
startedAt: string;
|
|
1754
|
-
finishedAt: string | null;
|
|
1755
|
-
log: string[];
|
|
1756
|
-
error?: string | undefined;
|
|
1757
|
-
} | null;
|
|
1758
|
-
activeRuns: number;
|
|
1759
|
-
};
|
|
1760
|
-
outputFormat: "json";
|
|
1761
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1762
|
-
input: {
|
|
1763
|
-
json: {
|
|
1764
|
-
channel: "development" | "nightly" | "stable";
|
|
1765
|
-
};
|
|
1766
|
-
};
|
|
1767
|
-
} | {
|
|
1768
|
-
output: {
|
|
1769
|
-
error: string;
|
|
1770
|
-
};
|
|
1771
|
-
outputFormat: "json";
|
|
1772
|
-
status: 500;
|
|
1773
|
-
input: {
|
|
1774
|
-
json: {
|
|
1775
|
-
channel: "development" | "nightly" | "stable";
|
|
1776
|
-
};
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
};
|
|
1780
|
-
} & {
|
|
1781
|
-
"/workspace/self-update/apply": {
|
|
1782
|
-
$post: {
|
|
1783
|
-
output: {
|
|
1784
|
-
version: string;
|
|
1785
|
-
installKind: "checkout" | "global-npm" | "managed" | "npx" | "unknown";
|
|
1786
|
-
entry: string;
|
|
1787
|
-
canSelfUpdate: boolean;
|
|
1788
|
-
reason?: string | undefined;
|
|
1789
|
-
channel: "development" | "nightly" | "stable";
|
|
1790
|
-
restartMode: "reexec" | "supervisor";
|
|
1791
|
-
latest: {
|
|
1792
|
-
stable: string | null;
|
|
1793
|
-
nightly: string | null;
|
|
1794
|
-
};
|
|
1795
|
-
updateAvailable: string | null;
|
|
1796
|
-
checkedAt: string | null;
|
|
1797
|
-
installed: {
|
|
1798
|
-
id: string;
|
|
1799
|
-
version: string;
|
|
1800
|
-
source: "link" | "local" | "registry";
|
|
1801
|
-
installedAt: string;
|
|
1802
|
-
active: boolean;
|
|
1803
|
-
branch?: string | undefined;
|
|
1804
|
-
checkout?: string | undefined;
|
|
1805
|
-
}[];
|
|
1806
|
-
available: {
|
|
1807
|
-
version: string;
|
|
1808
|
-
channel: "nightly" | "preview" | "stable";
|
|
1809
|
-
publishedAt: string | null;
|
|
1810
|
-
installed: boolean;
|
|
1811
|
-
}[];
|
|
1812
|
-
job: {
|
|
1813
|
-
status: "failed" | "restarting" | "running";
|
|
1814
|
-
target: string;
|
|
1815
|
-
startedAt: string;
|
|
1816
|
-
finishedAt: string | null;
|
|
1817
|
-
log: string[];
|
|
1818
|
-
error?: string | undefined;
|
|
1819
|
-
} | null;
|
|
1820
|
-
activeRuns: number;
|
|
1821
|
-
};
|
|
1822
|
-
outputFormat: "json";
|
|
1823
|
-
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1824
|
-
input: {
|
|
1825
|
-
json: {
|
|
1826
|
-
version: string;
|
|
1827
|
-
};
|
|
1828
|
-
};
|
|
1829
|
-
} | {
|
|
1830
|
-
output: {
|
|
1831
|
-
error: string;
|
|
1832
|
-
};
|
|
1833
|
-
outputFormat: "json";
|
|
1834
|
-
status: 409;
|
|
1835
|
-
input: {
|
|
1836
|
-
json: {
|
|
1837
|
-
version: string;
|
|
1838
|
-
};
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
};
|
|
1842
1498
|
}, "/"> | import("hono/types").MergeSchemaPath<{
|
|
1843
1499
|
"/workspace/agent-profiles": {
|
|
1844
1500
|
$get: {
|
package/dist/server/server.js
CHANGED
|
@@ -98,7 +98,6 @@ import { loadWorkflows } from '../workflows/load.js';
|
|
|
98
98
|
import { normalizeWorkflowDoc, skillStackOf, skillsToSteps, stepsIssue, workflowFileSchema, } from '../workflows/types.js';
|
|
99
99
|
import { planChain, slugify } from '../planner.js';
|
|
100
100
|
import { discoverSkills } from '../skills.js';
|
|
101
|
-
import { createSelfUpdateRoutes } from './self-update-routes.js';
|
|
102
101
|
import { getTeamSkillsCached, refreshTeamSkills, waitForTeamSkills } from '../skills-remote.js';
|
|
103
102
|
import { skillSourcesRoutes } from './skill-sources.js';
|
|
104
103
|
import { readHandoff, renderHandoffRecords } from '../handoff.js';
|
|
@@ -147,8 +146,6 @@ import { armPreview, projectWarmupEnabled, sweepRegisteredPreviewLeftovers } fro
|
|
|
147
146
|
import { readProjectUiState, readUiState, writeProjectUiState } from '../ui-state.js';
|
|
148
147
|
import { agentHomePaths, expandTilde } from '../paths.js';
|
|
149
148
|
import { isLoopbackHostHeader, normalizeHostname, resolveCapabilities } from './capabilities.js';
|
|
150
|
-
import { applicationUpdateInputSchema } from '../contract/index.js';
|
|
151
|
-
import { ApplicationUpdateConflictError, ApplicationUpdateFailureError } from '../application-update/service.js';
|
|
152
149
|
import { createSocketHub, socketHubRoute } from './ws.js';
|
|
153
150
|
import { attachUpgradeRouter } from './upgrade-router.js';
|
|
154
151
|
import { createPreviewSockets } from './preview-sockets.js';
|
|
@@ -729,9 +726,6 @@ export function createApp(deps) {
|
|
|
729
726
|
// the key as always-present, which is a shape no client ever receives. The contract schema
|
|
730
727
|
// says `.optional()`, and contract-parity.test.ts holds the two together.
|
|
731
728
|
...(update?.latest !== undefined ? { latestVersion: update.latest } : {}),
|
|
732
|
-
...(deps.applicationUpdate ? { applicationUpdate: caps.localHandoff
|
|
733
|
-
? deps.applicationUpdate.snapshot()
|
|
734
|
-
: { status: 'idle', supported: false, message: 'Update this installation manually.' } } : {}),
|
|
735
729
|
// Health is CORS-open and, in hosted mode, reachable off the loopback —
|
|
736
730
|
// so any site/host that reads it would learn the developer's absolute
|
|
737
731
|
// checkout path and username (#431). Local mode keeps the full path (the
|
|
@@ -807,10 +801,6 @@ export function createApp(deps) {
|
|
|
807
801
|
})();
|
|
808
802
|
return healthInFlight;
|
|
809
803
|
};
|
|
810
|
-
deps.applicationUpdate?.onStateChange?.(() => {
|
|
811
|
-
healthCache = undefined;
|
|
812
|
-
void refreshHealth();
|
|
813
|
-
});
|
|
814
804
|
// The read the GET and the topic snapshot share. On the live server (a hub is
|
|
815
805
|
// injected) it answers from cache instantly and revalidates behind the
|
|
816
806
|
// response; without a hub — a bare app in tests — there is no refresher
|
|
@@ -2173,32 +2163,6 @@ export function createApp(deps) {
|
|
|
2173
2163
|
return 0;
|
|
2174
2164
|
return ctx.store.listRuns().filter((run) => ACTIVE_RUN_STATUSES.has(run.status)).length;
|
|
2175
2165
|
};
|
|
2176
|
-
// Workspace-level, server-selected target and executable. The empty JSON body is strict.
|
|
2177
|
-
const applicationUpdateRoutes = new Hono()
|
|
2178
|
-
.post('/workspace/application-update/apply', jsonZodValidator(applicationUpdateInputSchema), async (c) => {
|
|
2179
|
-
if (!capabilities().localHandoff)
|
|
2180
|
-
return c.json({ error: 'Application updates require a local cockpit.' }, 409);
|
|
2181
|
-
if (!deps.applicationUpdate)
|
|
2182
|
-
return c.json({ error: 'Application update is unavailable.' }, 409);
|
|
2183
|
-
try {
|
|
2184
|
-
return c.json({ state: await deps.applicationUpdate.apply() });
|
|
2185
|
-
}
|
|
2186
|
-
catch (error) {
|
|
2187
|
-
return c.json({ error: error instanceof ApplicationUpdateConflictError || error instanceof ApplicationUpdateFailureError ? error.message : 'Application update preparation failed.' }, error instanceof ApplicationUpdateConflictError ? 409 : error instanceof ApplicationUpdateFailureError ? error.status : 500);
|
|
2188
|
-
}
|
|
2189
|
-
})
|
|
2190
|
-
.post('/workspace/application-update/restart', jsonZodValidator(applicationUpdateInputSchema), async (c) => {
|
|
2191
|
-
if (!capabilities().localHandoff)
|
|
2192
|
-
return c.json({ error: 'Application updates require a local cockpit.' }, 409);
|
|
2193
|
-
if (!deps.applicationUpdate)
|
|
2194
|
-
return c.json({ error: 'Application update is unavailable.' }, 409);
|
|
2195
|
-
try {
|
|
2196
|
-
return c.json({ state: await deps.applicationUpdate.restart() });
|
|
2197
|
-
}
|
|
2198
|
-
catch (error) {
|
|
2199
|
-
return c.json({ error: error instanceof ApplicationUpdateConflictError ? error.message : 'Application restart is unavailable.' }, error instanceof ApplicationUpdateConflictError ? 409 : 500);
|
|
2200
|
-
}
|
|
2201
|
-
});
|
|
2202
2166
|
// ---- GUI clone (multi-project spec, step 4.3) ----------------------------
|
|
2203
2167
|
// "Add project → Clone from GitHub": clone into the checkout root, then
|
|
2204
2168
|
// register the result through `registerFolder` above (same guards, same
|
|
@@ -4535,8 +4499,6 @@ export function createApp(deps) {
|
|
|
4535
4499
|
.route('/', providersRoutes)
|
|
4536
4500
|
.route('/', projectsRoutes)
|
|
4537
4501
|
.route('/', agentProfilesRoutes)
|
|
4538
|
-
.route('/', createSelfUpdateRoutes(deps, () => capabilities().localHandoff, () => [deps.store, ...contexts.ids().flatMap((id) => contexts.peek(id)?.store ?? [])]))
|
|
4539
|
-
.route('/', applicationUpdateRoutes)
|
|
4540
4502
|
.route('/', workspaceConfigRoutes)
|
|
4541
4503
|
.route('/', fsBrowseRoutes)
|
|
4542
4504
|
.route('/', automationChecksRoutes)
|
|
@@ -4661,28 +4623,7 @@ export function startServer(deps, port, listener) {
|
|
|
4661
4623
|
// hosted/VPS deployment (which also flips CEZ_REMOTE to gate the local-handoff endpoints) —
|
|
4662
4624
|
// The CLI passes it only when explicitly requested; normal startup stays on loopback.
|
|
4663
4625
|
const serverOptions = {
|
|
4664
|
-
fetch:
|
|
4665
|
-
const result = await app.fetch(request, env);
|
|
4666
|
-
if (request.method === 'POST' && new URL(request.url).pathname === '/api/v1/workspace/application-update/restart'
|
|
4667
|
-
&& result.status === 200) {
|
|
4668
|
-
// Arming is server-owned. A connected caller must receive the complete
|
|
4669
|
-
// acknowledgement before shutdown; a caller that already disconnected
|
|
4670
|
-
// cannot leave its explicitly requested, armed restart stranded.
|
|
4671
|
-
const response = env.outgoing;
|
|
4672
|
-
const handoff = () => {
|
|
4673
|
-
response.off('finish', handoff);
|
|
4674
|
-
response.off('close', handoff);
|
|
4675
|
-
deps.applicationUpdate?.afterResponse?.();
|
|
4676
|
-
};
|
|
4677
|
-
if (response.destroyed)
|
|
4678
|
-
handoff();
|
|
4679
|
-
else {
|
|
4680
|
-
response.once('finish', handoff);
|
|
4681
|
-
response.once('close', handoff);
|
|
4682
|
-
}
|
|
4683
|
-
}
|
|
4684
|
-
return result;
|
|
4685
|
-
},
|
|
4626
|
+
fetch: (request, env) => app.fetch(request, env),
|
|
4686
4627
|
port,
|
|
4687
4628
|
hostname: deps.bindHost ?? '127.0.0.1',
|
|
4688
4629
|
};
|