@hearsay-tools/squawk 0.19.0-dev.9216 → 0.19.0-dev.9229.2
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/ci-wait/controller.d.ts +7 -7
- package/dist/contract/hosts.d.ts +3 -0
- package/dist/contract/index.js +8 -0
- package/dist/contract/projects.d.ts +6 -0
- package/dist/core/forge-registry.d.ts +8 -0
- package/dist/core/forge-registry.js +36 -13
- package/dist/core/forge-registry.js.map +1 -1
- package/dist/features/hosts/routes.d.ts +66 -64
- package/dist/features/webhooks/routes.d.ts +41 -38
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/projects-routes.d.ts +47 -41
- package/dist/server/repo-routes.d.ts +13 -13
- package/dist/server/runs-routes.d.ts +326 -326
- package/dist/server/server.d.ts +6 -0
- package/dist/workspace/projects.d.ts +5 -0
- package/dist/workspace/projects.js +8 -2
- package/dist/workspace/projects.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/accounts-section-lnMwvHTo.js +1 -0
- package/web/dist/assets/activity-motion-DBxIOskd.js +1 -0
- package/web/dist/assets/{activity-route-Bmig0E18.js → activity-route-BYf5OD8Y.js} +1 -1
- package/web/dist/assets/agent-accounts-BzD14qLU.js +1 -0
- package/web/dist/assets/agent-config-section-BwmBjoad.js +7 -0
- package/web/dist/assets/agent-defaults-section-BbFvw0IO.js +1 -0
- package/web/dist/assets/appearance-CkohbKAs.js +1 -0
- package/web/dist/assets/archive-on-merge-field-CQ8DBqiG.js +1 -0
- package/web/dist/assets/ask-card-Bli7vYif.js +9 -0
- package/web/dist/assets/automations-route-BNYFQeuu.js +2 -0
- package/web/dist/assets/commit-list-CJZtpbaw.js +1 -0
- package/web/dist/assets/diff-DPSOaO5_.js +3 -0
- package/web/dist/assets/{diff-controls-Bb70UBsP.js → diff-controls-rfNgY_Dd.js} +1 -1
- package/web/dist/assets/{diff-view-DLcxtXIH.js → diff-view-CswchTTd.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-BzypT4vb.js → discard-changes-dialog-BMT0YtWx.js} +1 -1
- package/web/dist/assets/file-preview-DoaMlVS3.js +2 -0
- package/web/dist/assets/folder-browser-D_q7aPq-.js +1 -0
- package/web/dist/assets/{git-toolbar-DPkpAaKz.js → git-toolbar-BCqNvkr5.js} +1 -1
- package/web/dist/assets/github-Bv1h-3dP.js +1 -0
- package/web/dist/assets/{global-activity-route-CQULPYKA.js → global-activity-route-CrAG-ji7.js} +1 -1
- package/web/dist/assets/{host-context-iTMFRMT5.js → host-context-KsSKxKbI.js} +1 -1
- package/web/dist/assets/host-storage-BHtMSWBL.js +1 -0
- package/web/dist/assets/hosts-pzCm30ta.js +1 -0
- package/web/dist/assets/{image-preview-C_xACQXI.js → image-preview-CvcSCCBU.js} +1 -1
- package/web/dist/assets/index-D9hyWO4C.js +21 -0
- package/web/dist/assets/index-DZXi-K2N.css +1 -0
- package/web/dist/assets/label-DEZnEIpB.js +1 -0
- package/web/dist/assets/{markdown-C1p1PDmF.js → markdown-BRE9fTUI.js} +1 -1
- package/web/dist/assets/{open-in-menu-CbPtuWnJ.js → open-in-menu-DomSOC26.js} +1 -1
- package/web/dist/assets/{option-select-C6d3jHce.js → option-select-Cqnmt-CB.js} +1 -1
- package/web/dist/assets/preferences-section-CC4m45tb.js +1 -0
- package/web/dist/assets/preview-DFL4D2C_.js +1 -0
- package/web/dist/assets/{preview-pane-connected-ELLewN-g.js → preview-pane-connected-CvF3zJ9A.js} +2 -2
- package/web/dist/assets/project-location-D6-Lo1vY.js +1 -0
- package/web/dist/assets/project-router-CARDbdMX.js +1 -0
- package/web/dist/assets/project-scope-context-Bz7AAyJ4.js +4 -0
- package/web/dist/assets/projects-section-zeGtqnI3.js +1 -0
- package/web/dist/assets/{prompt-templates-section-D3GzKJMf.js → prompt-templates-section--ygct2zC.js} +2 -2
- package/web/dist/assets/queries-D7W-eGim.js +1 -0
- package/web/dist/assets/reference-chip-D8ckcrda.js +1 -0
- package/web/dist/assets/remote-settings-notice-MxDxNXXw.js +1 -0
- package/web/dist/assets/repo-git-VfTEbVO3.js +1 -0
- package/web/dist/assets/report-reader-DLCLUfdH.js +1 -0
- package/web/dist/assets/{report-selection-DxBxW6dz.js → report-selection-BcsbTczw.js} +1 -1
- package/web/dist/assets/reports-QoDlngjL.js +1 -0
- package/web/dist/assets/{resources-section-CpAOY20Z.js → resources-section-CBL0htm5.js} +1 -1
- package/web/dist/assets/{review-notes-drafts-D25BaEEb.js → review-notes-drafts-DJDQNemf.js} +1 -1
- package/web/dist/assets/{review-panel-CS9wTfAu.js → review-panel-BY05CuXd.js} +1 -1
- package/web/dist/assets/review-strip-BWhQ5CIC.js +1 -0
- package/web/dist/assets/{run-detail-refresh-wJr0M04e.js → run-detail-refresh-CecZhU-h.js} +1 -1
- package/web/dist/assets/{run-diff-BBASqHSE.js → run-diff-CpwwrpXO.js} +1 -1
- package/web/dist/assets/run-header-CZU3e9Xk.js +2 -0
- package/web/dist/assets/{select-CEEeAH4k.js → select-C72KGfnK.js} +1 -1
- package/web/dist/assets/{session-context-section-F1umLA86.js → session-context-section-D8v30mSp.js} +1 -1
- package/web/dist/assets/settings-agent-picker-DGhJwDIY.js +1 -0
- package/web/dist/assets/{settings-save-bar-BkU1JDt3.js → settings-save-bar-Dp-eEIEF.js} +1 -1
- package/web/dist/assets/settings-shell-DZzgCmSz.js +1 -0
- package/web/dist/assets/sidebar-section-B94mdYUS.js +1 -0
- package/web/dist/assets/skills-B6jO_f1w.js +1 -0
- package/web/dist/assets/status-dot-B5MkhHDP.js +1 -0
- package/web/dist/assets/{tab-link-CiKWtkK_.js → tab-link-zXPa9LIz.js} +1 -1
- package/web/dist/assets/task-changes-B_2BDWIf.js +5 -0
- package/web/dist/assets/task-commits-kxDG4T81.js +1 -0
- package/web/dist/assets/{task-file-scope-DU8AkDkr.js → task-file-scope-DVACyrij.js} +1 -1
- package/web/dist/assets/task-files-4CxXkPOx.js +1 -0
- package/web/dist/assets/task-github-item-C8hMZej3.js +1 -0
- package/web/dist/assets/task-thread-Bv_Fjceh.js +2 -0
- package/web/dist/assets/thread-state-CufNf_fC.js +4 -0
- package/web/dist/assets/use-finish-run-CjYc6ovQ.js +1 -0
- package/web/dist/assets/use-hand-to-agent-state-B_j_e1kD.js +1 -0
- package/web/dist/assets/use-path-bases-BfjK7tem.js +1 -0
- package/web/dist/assets/use-workspace-config-save-toCmvqtz.js +1 -0
- package/web/dist/assets/{workflows-DdKRMlHR.js → workflows-iMfDerlK.js} +2 -2
- package/web/dist/assets/workspace-tools-CgYFRggf.js +1 -0
- package/web/dist/assets/{worktrees-section-CCgqbLAh.js → worktrees-section-CtT9bwKK.js} +5 -5
- package/web/dist/assets/{zoomable-image-DJ1lJEMc.js → zoomable-image-Dv85Vr4A.js} +1 -1
- package/web/dist/index.html +17 -20
- package/web/dist/live-worker.js +1 -1
- package/web/dist/assets/accounts-section-BJcwTmko.js +0 -1
- package/web/dist/assets/activity-motion-D7ylxNSA.js +0 -1
- package/web/dist/assets/agent-accounts-DaaS69XB.js +0 -1
- package/web/dist/assets/agent-config-section-BOXqQyTv.js +0 -7
- package/web/dist/assets/agent-defaults-section-Bxfreo-n.js +0 -1
- package/web/dist/assets/appearance-BRqSFVDC.js +0 -1
- package/web/dist/assets/archive-on-merge-field-hDSXItUf.js +0 -1
- package/web/dist/assets/ask-card-CWrAEuZE.js +0 -9
- package/web/dist/assets/attention-CFW302LY.js +0 -1
- package/web/dist/assets/automations-route-BBsU9yBn.js +0 -2
- package/web/dist/assets/commit-list-5iHD08NO.js +0 -1
- package/web/dist/assets/diff-CkIsqgZZ.js +0 -3
- package/web/dist/assets/file-preview-CJVN0cBa.js +0 -2
- package/web/dist/assets/folder-browser-Cdm2WZOB.js +0 -1
- package/web/dist/assets/github-DXBAYLfd.js +0 -1
- package/web/dist/assets/host-storage-Cr_NKfWy.js +0 -1
- package/web/dist/assets/hosts-IKDCpyJQ.js +0 -1
- package/web/dist/assets/index-D1E0Dmck.css +0 -1
- package/web/dist/assets/index-k2m-s5zD.js +0 -21
- package/web/dist/assets/label-ODcSLYVj.js +0 -1
- package/web/dist/assets/preferences-section-ChS8Q-Lu.js +0 -1
- package/web/dist/assets/preview-B5bPk6HT.js +0 -1
- package/web/dist/assets/project-location-D8vnqA4E.js +0 -1
- package/web/dist/assets/project-router-CPgPVoBJ.js +0 -1
- package/web/dist/assets/projects-section-L3QxEiRK.js +0 -1
- package/web/dist/assets/queries-DHjNE2es.js +0 -1
- package/web/dist/assets/read-state-jUDTdM3R.js +0 -1
- package/web/dist/assets/reference-chip-kvc51N1L.js +0 -1
- package/web/dist/assets/remote-settings-notice-BtVKQ2vp.js +0 -1
- package/web/dist/assets/repo-git-BGSxevNj.js +0 -1
- package/web/dist/assets/report-reader-CvEkEEwN.js +0 -1
- package/web/dist/assets/reports-1vI74Z6R.js +0 -1
- package/web/dist/assets/review-strip-nrpQBfNI.js +0 -1
- package/web/dist/assets/run-header-DVnksnr4.js +0 -2
- package/web/dist/assets/settings-agent-picker-sUQdIon3.js +0 -1
- package/web/dist/assets/settings-shell-DodTPpjl.js +0 -1
- package/web/dist/assets/sidebar-section-DspuARa_.js +0 -1
- package/web/dist/assets/skills-CrHHdPjJ.js +0 -1
- package/web/dist/assets/status-dot-DuorWA5M.js +0 -1
- package/web/dist/assets/task-changes-U1cnUd83.js +0 -5
- package/web/dist/assets/task-commits-DxuX8SZp.js +0 -1
- package/web/dist/assets/task-files-DaDM9FRg.js +0 -1
- package/web/dist/assets/task-github-item-CXzzVHXw.js +0 -1
- package/web/dist/assets/task-groups-BapM4YcT.js +0 -1
- package/web/dist/assets/task-thread-9WIv4rPC.js +0 -2
- package/web/dist/assets/thread-state-IooDEE0b.js +0 -4
- package/web/dist/assets/toaster-Dglox5F-.js +0 -4
- package/web/dist/assets/use-finish-run-jVAqsGkV.js +0 -1
- package/web/dist/assets/use-hand-to-agent-state-DfucUGAH.js +0 -1
- package/web/dist/assets/use-path-bases-C7DRxlRi.js +0 -1
- package/web/dist/assets/use-workspace-config-save-B2eroiEx.js +0 -1
- package/web/dist/assets/workspace-tools-CePJG7uG.js +0 -1
|
@@ -121,12 +121,9 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
121
121
|
} & {
|
|
122
122
|
"/api/v1/tools/:name": {
|
|
123
123
|
$post: {
|
|
124
|
-
output:
|
|
125
|
-
code: string;
|
|
126
|
-
message: string;
|
|
127
|
-
};
|
|
124
|
+
output: never;
|
|
128
125
|
outputFormat: "json";
|
|
129
|
-
status:
|
|
126
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
130
127
|
input: {
|
|
131
128
|
json: unknown;
|
|
132
129
|
} & {
|
|
@@ -149,9 +146,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
|
|
|
149
146
|
};
|
|
150
147
|
};
|
|
151
148
|
} | {
|
|
152
|
-
output:
|
|
149
|
+
output: {
|
|
150
|
+
code: string;
|
|
151
|
+
message: string;
|
|
152
|
+
};
|
|
153
153
|
outputFormat: "json";
|
|
154
|
-
status:
|
|
154
|
+
status: 401;
|
|
155
155
|
input: {
|
|
156
156
|
json: unknown;
|
|
157
157
|
} & {
|
package/dist/contract/hosts.d.ts
CHANGED
|
@@ -428,6 +428,7 @@ export declare const hostProjectsEntrySchema: z.ZodObject<{
|
|
|
428
428
|
branch: z.ZodOptional<z.ZodString>;
|
|
429
429
|
forge: z.ZodOptional<z.ZodString>;
|
|
430
430
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
431
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
431
432
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
432
433
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
433
434
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
@@ -489,6 +490,7 @@ export declare const hostsProjectsResponseSchema: z.ZodObject<{
|
|
|
489
490
|
branch: z.ZodOptional<z.ZodString>;
|
|
490
491
|
forge: z.ZodOptional<z.ZodString>;
|
|
491
492
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
493
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
492
494
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
493
495
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
494
496
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
@@ -562,6 +564,7 @@ export declare const hostsProjectsResponseSchema: z.ZodObject<{
|
|
|
562
564
|
branch: z.ZodOptional<z.ZodString>;
|
|
563
565
|
forge: z.ZodOptional<z.ZodString>;
|
|
564
566
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
567
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
565
568
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
566
569
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
567
570
|
webhook: z.ZodOptional<z.ZodObject<{
|
package/dist/contract/index.js
CHANGED
|
@@ -3574,6 +3574,14 @@ var projectListEntrySchema = z26.object({
|
|
|
3574
3574
|
* way a project-scoped view can. With this, every reference it shows is a link.
|
|
3575
3575
|
*/
|
|
3576
3576
|
repoUrl: z26.string().optional(),
|
|
3577
|
+
/**
|
|
3578
|
+
* Canonical lowercased repository identity (`<host>/<path>`, e.g. `github.com/owner/repo` or
|
|
3579
|
+
* `gitlab.com/group/subgroup/repo`) derived server-side from the parsed git remote (no
|
|
3580
|
+
* registered forge required). Credentials and SSH/git ports are stripped (non-default
|
|
3581
|
+
* HTTP/HTTPS ports are kept) and the full path is preserved. Absent when the project has no
|
|
3582
|
+
* parsable remote (local path, `file://`, remote-less, `not-git`, or `missing`).
|
|
3583
|
+
*/
|
|
3584
|
+
repoIdentity: z26.string().optional(),
|
|
3577
3585
|
/** Per-project cap on concurrently running tasks (spec 2026-07-22). Omitted = inherit the
|
|
3578
3586
|
* workspace `resources.maxParallel`; a number pins this project. */
|
|
3579
3587
|
maxParallel: z26.number().optional(),
|
|
@@ -66,6 +66,7 @@ export declare const projectListEntrySchema: z.ZodObject<{
|
|
|
66
66
|
branch: z.ZodOptional<z.ZodString>;
|
|
67
67
|
forge: z.ZodOptional<z.ZodString>;
|
|
68
68
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
69
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
69
70
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
70
71
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
72
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
@@ -133,6 +134,7 @@ export declare const projectsResponseSchema: z.ZodObject<{
|
|
|
133
134
|
branch: z.ZodOptional<z.ZodString>;
|
|
134
135
|
forge: z.ZodOptional<z.ZodString>;
|
|
135
136
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
137
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
136
138
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
137
139
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
140
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
@@ -199,6 +201,7 @@ export declare const registerProjectResponseSchema: z.ZodObject<{
|
|
|
199
201
|
branch: z.ZodOptional<z.ZodString>;
|
|
200
202
|
forge: z.ZodOptional<z.ZodString>;
|
|
201
203
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
204
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
202
205
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
203
206
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
207
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
@@ -273,6 +276,7 @@ export declare const updateProjectResponseSchema: z.ZodObject<{
|
|
|
273
276
|
branch: z.ZodOptional<z.ZodString>;
|
|
274
277
|
forge: z.ZodOptional<z.ZodString>;
|
|
275
278
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
279
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
276
280
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
277
281
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
278
282
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
@@ -400,6 +404,7 @@ export declare const projectWebhookResponseSchema: z.ZodObject<{
|
|
|
400
404
|
branch: z.ZodOptional<z.ZodString>;
|
|
401
405
|
forge: z.ZodOptional<z.ZodString>;
|
|
402
406
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
407
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
403
408
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
404
409
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
405
410
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
@@ -602,6 +607,7 @@ export declare const createProjectResponseSchema: z.ZodObject<{
|
|
|
602
607
|
branch: z.ZodOptional<z.ZodString>;
|
|
603
608
|
forge: z.ZodOptional<z.ZodString>;
|
|
604
609
|
repoUrl: z.ZodOptional<z.ZodString>;
|
|
610
|
+
repoIdentity: z.ZodOptional<z.ZodString>;
|
|
605
611
|
maxParallel: z.ZodOptional<z.ZodNumber>;
|
|
606
612
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
607
613
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
@@ -273,6 +273,14 @@ export declare function registeredForges(): ForgeDefinition[];
|
|
|
273
273
|
* does not. Null for local paths and anything else that does not look like a forge remote.
|
|
274
274
|
*/
|
|
275
275
|
export declare function parseRemote(remote: string): ForgeRemote | null;
|
|
276
|
+
/**
|
|
277
|
+
* Canonical lowercased repository identity (`<host>/<full-path>`) derived from a git remote,
|
|
278
|
+
* independent of registered forges. Credentials and SSH/git ports are stripped (non-default
|
|
279
|
+
* HTTP/HTTPS ports are kept), and every path segment is preserved so nested groups and Azure
|
|
280
|
+
* DevOps organisations do not collide. Null when the remote is absent, a local path, `file://`,
|
|
281
|
+
* or otherwise unparsable.
|
|
282
|
+
*/
|
|
283
|
+
export declare function remoteRepositoryIdentity(remote: string | undefined): string | null;
|
|
276
284
|
/**
|
|
277
285
|
* The forge of a remote: the first registered definition whose `matchRemote` returns true, with
|
|
278
286
|
* the parsed remote. Null for no remote, a remote that does not parse, or a remote no forge
|
|
@@ -53,13 +53,7 @@ export function forgesSealed() { return forges.isSealed(); }
|
|
|
53
53
|
/** Registered forges in registration order. Throws until sealed. */
|
|
54
54
|
export function registeredForges() { return forges.values(); }
|
|
55
55
|
const DEFAULT_PORTS = { http: '80', https: '443' };
|
|
56
|
-
|
|
57
|
-
* Parse a git remote URL into host/owner/repo. Handles the scheme forms (`https://`, `ssh://`,
|
|
58
|
-
* `git://`, with optional credentials and port) and the scp-like form (`git@host:owner/repo.git`).
|
|
59
|
-
* An HTTP(S) host keeps a non-default port, because it names the web server; an SSH or git port
|
|
60
|
-
* does not. Null for local paths and anything else that does not look like a forge remote.
|
|
61
|
-
*/
|
|
62
|
-
export function parseRemote(remote) {
|
|
56
|
+
function parseRemoteHostAndPath(remote) {
|
|
63
57
|
const r = remote.trim().replace(/\/+$/, '');
|
|
64
58
|
let host;
|
|
65
59
|
let path;
|
|
@@ -71,7 +65,10 @@ export function parseRemote(remote) {
|
|
|
71
65
|
path = rest;
|
|
72
66
|
}
|
|
73
67
|
else {
|
|
74
|
-
//
|
|
68
|
+
// Reject unrecognized URL schemes (e.g. `file:///...`) and Windows drive paths (`C:\...`, `C:/...`, `c:repo`).
|
|
69
|
+
if (/^[a-z][a-z0-9+.-]*:\/\//i.test(r) || /^[a-z]:/i.test(r))
|
|
70
|
+
return null;
|
|
71
|
+
// scp-like: [user@]host:path(.git) — a leading '/' (local path)
|
|
75
72
|
// can't match the host group, so plain directories fall through to null.
|
|
76
73
|
const scp = /^(?:[^@/:]+@)?([^:/]+):(.+)$/.exec(r);
|
|
77
74
|
if (!scp)
|
|
@@ -80,12 +77,38 @@ export function parseRemote(remote) {
|
|
|
80
77
|
}
|
|
81
78
|
if (!host || !path)
|
|
82
79
|
return null;
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
const segments = path.replace(/\.git$/i, '').split('/').filter(Boolean);
|
|
81
|
+
if (segments.length === 0)
|
|
82
|
+
return null;
|
|
83
|
+
return { host: host.toLowerCase(), segments };
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Parse a git remote URL into host/owner/repo. Handles the scheme forms (`https://`, `ssh://`,
|
|
87
|
+
* `git://`, with optional credentials and port) and the scp-like form (`git@host:owner/repo.git`).
|
|
88
|
+
* An HTTP(S) host keeps a non-default port, because it names the web server; an SSH or git port
|
|
89
|
+
* does not. Null for local paths and anything else that does not look like a forge remote.
|
|
90
|
+
*/
|
|
91
|
+
export function parseRemote(remote) {
|
|
92
|
+
const parsed = parseRemoteHostAndPath(remote);
|
|
93
|
+
if (!parsed || parsed.segments.length < 2)
|
|
94
|
+
return null;
|
|
95
|
+
const { host, segments } = parsed;
|
|
96
|
+
const owner = segments[segments.length - 2];
|
|
97
|
+
const repo = segments[segments.length - 1];
|
|
98
|
+
return { host, owner, repo };
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Canonical lowercased repository identity (`<host>/<full-path>`) derived from a git remote,
|
|
102
|
+
* independent of registered forges. Credentials and SSH/git ports are stripped (non-default
|
|
103
|
+
* HTTP/HTTPS ports are kept), and every path segment is preserved so nested groups and Azure
|
|
104
|
+
* DevOps organisations do not collide. Null when the remote is absent, a local path, `file://`,
|
|
105
|
+
* or otherwise unparsable.
|
|
106
|
+
*/
|
|
107
|
+
export function remoteRepositoryIdentity(remote) {
|
|
108
|
+
const parsed = remote ? parseRemoteHostAndPath(remote) : null;
|
|
109
|
+
if (!parsed)
|
|
87
110
|
return null;
|
|
88
|
-
return {
|
|
111
|
+
return `${parsed.host}/${parsed.segments.map((segment) => segment.toLowerCase()).join('/')}`;
|
|
89
112
|
}
|
|
90
113
|
/** Forges whose `matchRemote` threw once: each warns one time per process. */
|
|
91
114
|
const warnedForges = new Set();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forge-registry.js","sourceRoot":"","sources":["../../src/core/forge-registry.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,eAAe,EAA2B,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAgMpD;;;GAGG;AACH,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC9C,8EAA8E;IACrE,KAAK,CAAqB;IACnC,YAAY,OAAe,EAAE,KAAc,EAAE,OAAsB;QACjE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAED,uGAAuG;AACvG,MAAM,OAAO,oBAAqB,SAAQ,KAAK;CAAG;AAmClD,MAAM,oBAAoB,GAAG,CAAC,aAAa,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,CAAU,CAAC;AAEhJ,MAAM,MAAM,GAAG,mBAAmB,CAA0B;IAC1D,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,yHAAyH;CACpI,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,UAA2B;IAC7C,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IAC5H,IAAI,OAAO,UAAU,CAAC,EAAE,KAAK,QAAQ,IAAI,UAAU,CAAC,EAAE,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAC7I,IAAI,OAAO,UAAU,CAAC,KAAK,KAAK,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC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KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IACzH,OAAO,gBAAgB,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC;AAC1F,CAAC;AAED,mDAAmD;AACnD,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAExC;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,QAAoF,EACpF,SAAkB;IAElB,MAAM,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,IAAI,kBAAkB,CAAC,CAAC,WAAW,EAAE,CAAC;IACjE,MAAM,KAAK,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC5C,IAAI,KAAK;QAAE,OAAO,KAAK,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACtH,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC9C,OAAO,IAAI,KAAK,kBAAkB,CAAC,CAAC,CAAC,WAAW,kBAAkB,IAAI,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,IAAI,SAAS,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9I,CAAC"}
|
|
@@ -75,6 +75,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
75
75
|
branch?: string | undefined;
|
|
76
76
|
forge?: string | undefined;
|
|
77
77
|
repoUrl?: string | undefined;
|
|
78
|
+
repoIdentity?: string | undefined;
|
|
78
79
|
maxParallel?: number | undefined;
|
|
79
80
|
tags?: string[] | undefined;
|
|
80
81
|
webhook?: {
|
|
@@ -110,6 +111,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
110
111
|
branch?: string | undefined;
|
|
111
112
|
forge?: string | undefined;
|
|
112
113
|
repoUrl?: string | undefined;
|
|
114
|
+
repoIdentity?: string | undefined;
|
|
113
115
|
maxParallel?: number | undefined;
|
|
114
116
|
tags?: string[] | undefined;
|
|
115
117
|
webhook?: {
|
|
@@ -139,6 +141,18 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
139
141
|
} & {
|
|
140
142
|
"/hosts/runs-index": {
|
|
141
143
|
$get: {
|
|
144
|
+
output: {
|
|
145
|
+
error: string;
|
|
146
|
+
code?: "invalid_input" | undefined;
|
|
147
|
+
};
|
|
148
|
+
outputFormat: "json";
|
|
149
|
+
status: 400;
|
|
150
|
+
input: {
|
|
151
|
+
query: {
|
|
152
|
+
hostId?: string | undefined;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
} | {
|
|
142
156
|
output: {
|
|
143
157
|
runs: {
|
|
144
158
|
id: string;
|
|
@@ -302,7 +316,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
302
316
|
hostId?: string | undefined;
|
|
303
317
|
};
|
|
304
318
|
};
|
|
305
|
-
}
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
} & {
|
|
322
|
+
"/hosts/runs-search": {
|
|
323
|
+
$get: {
|
|
306
324
|
output: {
|
|
307
325
|
error: string;
|
|
308
326
|
code?: "invalid_input" | undefined;
|
|
@@ -311,14 +329,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
311
329
|
status: 400;
|
|
312
330
|
input: {
|
|
313
331
|
query: {
|
|
314
|
-
|
|
332
|
+
q: string | string[];
|
|
333
|
+
limit?: number | undefined;
|
|
315
334
|
};
|
|
316
335
|
};
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
} & {
|
|
320
|
-
"/hosts/runs-search": {
|
|
321
|
-
$get: {
|
|
336
|
+
} | {
|
|
322
337
|
output: {
|
|
323
338
|
runs: {
|
|
324
339
|
id: string;
|
|
@@ -472,39 +487,16 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
472
487
|
limit?: number | undefined;
|
|
473
488
|
};
|
|
474
489
|
};
|
|
475
|
-
} | {
|
|
476
|
-
output: {
|
|
477
|
-
error: string;
|
|
478
|
-
code?: "invalid_input" | undefined;
|
|
479
|
-
};
|
|
480
|
-
outputFormat: "json";
|
|
481
|
-
status: 400;
|
|
482
|
-
input: {
|
|
483
|
-
query: {
|
|
484
|
-
q: string | string[];
|
|
485
|
-
limit?: number | undefined;
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
490
|
};
|
|
489
491
|
};
|
|
490
492
|
} & {
|
|
491
493
|
"/hosts": {
|
|
492
494
|
$post: {
|
|
493
495
|
output: {
|
|
494
|
-
|
|
495
|
-
id: string;
|
|
496
|
-
label: string;
|
|
497
|
-
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
498
|
-
reason?: string | undefined;
|
|
499
|
-
kind?: "ssh" | undefined;
|
|
500
|
-
sshAlias?: string | undefined;
|
|
501
|
-
installId?: string | undefined;
|
|
502
|
-
port?: number | undefined;
|
|
503
|
-
addedAt?: string | undefined;
|
|
504
|
-
};
|
|
496
|
+
error: string;
|
|
505
497
|
};
|
|
506
498
|
outputFormat: "json";
|
|
507
|
-
status:
|
|
499
|
+
status: 404;
|
|
508
500
|
input: {
|
|
509
501
|
json: {
|
|
510
502
|
sshAlias: string;
|
|
@@ -532,7 +524,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
532
524
|
error: string;
|
|
533
525
|
};
|
|
534
526
|
outputFormat: "json";
|
|
535
|
-
status:
|
|
527
|
+
status: 409;
|
|
536
528
|
input: {
|
|
537
529
|
json: {
|
|
538
530
|
sshAlias: string;
|
|
@@ -546,7 +538,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
546
538
|
error: string;
|
|
547
539
|
};
|
|
548
540
|
outputFormat: "json";
|
|
549
|
-
status:
|
|
541
|
+
status: 500;
|
|
550
542
|
input: {
|
|
551
543
|
json: {
|
|
552
544
|
sshAlias: string;
|
|
@@ -557,10 +549,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
557
549
|
};
|
|
558
550
|
} | {
|
|
559
551
|
output: {
|
|
560
|
-
|
|
552
|
+
host: {
|
|
553
|
+
id: string;
|
|
554
|
+
label: string;
|
|
555
|
+
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
556
|
+
reason?: string | undefined;
|
|
557
|
+
kind?: "ssh" | undefined;
|
|
558
|
+
sshAlias?: string | undefined;
|
|
559
|
+
installId?: string | undefined;
|
|
560
|
+
port?: number | undefined;
|
|
561
|
+
addedAt?: string | undefined;
|
|
562
|
+
};
|
|
561
563
|
};
|
|
562
564
|
outputFormat: "json";
|
|
563
|
-
status:
|
|
565
|
+
status: 201;
|
|
564
566
|
input: {
|
|
565
567
|
json: {
|
|
566
568
|
sshAlias: string;
|
|
@@ -574,7 +576,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
574
576
|
error: string;
|
|
575
577
|
};
|
|
576
578
|
outputFormat: "json";
|
|
577
|
-
status:
|
|
579
|
+
status: 409;
|
|
578
580
|
input: {
|
|
579
581
|
json: {
|
|
580
582
|
sshAlias: string;
|
|
@@ -589,20 +591,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
589
591
|
"/hosts/:id": {
|
|
590
592
|
$patch: {
|
|
591
593
|
output: {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
label: string;
|
|
595
|
-
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
596
|
-
reason?: string | undefined;
|
|
597
|
-
kind?: "ssh" | undefined;
|
|
598
|
-
sshAlias?: string | undefined;
|
|
599
|
-
installId?: string | undefined;
|
|
600
|
-
port?: number | undefined;
|
|
601
|
-
addedAt?: string | undefined;
|
|
602
|
-
};
|
|
594
|
+
error: string;
|
|
595
|
+
code?: "invalid_input" | undefined;
|
|
603
596
|
};
|
|
604
597
|
outputFormat: "json";
|
|
605
|
-
status:
|
|
598
|
+
status: 400;
|
|
606
599
|
input: {
|
|
607
600
|
param: {
|
|
608
601
|
id: string;
|
|
@@ -617,10 +610,9 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
617
610
|
} | {
|
|
618
611
|
output: {
|
|
619
612
|
error: string;
|
|
620
|
-
code?: "invalid_input" | undefined;
|
|
621
613
|
};
|
|
622
614
|
outputFormat: "json";
|
|
623
|
-
status:
|
|
615
|
+
status: 404;
|
|
624
616
|
input: {
|
|
625
617
|
param: {
|
|
626
618
|
id: string;
|
|
@@ -654,7 +646,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
654
646
|
error: string;
|
|
655
647
|
};
|
|
656
648
|
outputFormat: "json";
|
|
657
|
-
status:
|
|
649
|
+
status: 409;
|
|
658
650
|
input: {
|
|
659
651
|
param: {
|
|
660
652
|
id: string;
|
|
@@ -671,7 +663,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
671
663
|
error: string;
|
|
672
664
|
};
|
|
673
665
|
outputFormat: "json";
|
|
674
|
-
status:
|
|
666
|
+
status: 500;
|
|
675
667
|
input: {
|
|
676
668
|
param: {
|
|
677
669
|
id: string;
|
|
@@ -702,10 +694,20 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
702
694
|
};
|
|
703
695
|
} | {
|
|
704
696
|
output: {
|
|
705
|
-
|
|
697
|
+
host: {
|
|
698
|
+
id: string;
|
|
699
|
+
label: string;
|
|
700
|
+
state: "cannot-persist" | "connected" | "connecting" | "identity-changed" | "needs-node" | "not-hosted" | "paused" | "several-servers" | "unreachable" | "version-mismatch";
|
|
701
|
+
reason?: string | undefined;
|
|
702
|
+
kind?: "ssh" | undefined;
|
|
703
|
+
sshAlias?: string | undefined;
|
|
704
|
+
installId?: string | undefined;
|
|
705
|
+
port?: number | undefined;
|
|
706
|
+
addedAt?: string | undefined;
|
|
707
|
+
};
|
|
706
708
|
};
|
|
707
709
|
outputFormat: "json";
|
|
708
|
-
status:
|
|
710
|
+
status: 200;
|
|
709
711
|
input: {
|
|
710
712
|
param: {
|
|
711
713
|
id: string;
|
|
@@ -723,11 +725,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
723
725
|
"/hosts/:id": {
|
|
724
726
|
$delete: {
|
|
725
727
|
output: {
|
|
726
|
-
|
|
727
|
-
|
|
728
|
+
error: string;
|
|
729
|
+
code?: "invalid_input" | undefined;
|
|
728
730
|
};
|
|
729
731
|
outputFormat: "json";
|
|
730
|
-
status:
|
|
732
|
+
status: 400;
|
|
731
733
|
input: {
|
|
732
734
|
param: {
|
|
733
735
|
id: string;
|
|
@@ -736,10 +738,9 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
736
738
|
} | {
|
|
737
739
|
output: {
|
|
738
740
|
error: string;
|
|
739
|
-
code?: "invalid_input" | undefined;
|
|
740
741
|
};
|
|
741
742
|
outputFormat: "json";
|
|
742
|
-
status:
|
|
743
|
+
status: 404;
|
|
743
744
|
input: {
|
|
744
745
|
param: {
|
|
745
746
|
id: string;
|
|
@@ -761,7 +762,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
761
762
|
error: string;
|
|
762
763
|
};
|
|
763
764
|
outputFormat: "json";
|
|
764
|
-
status:
|
|
765
|
+
status: 409;
|
|
765
766
|
input: {
|
|
766
767
|
param: {
|
|
767
768
|
id: string;
|
|
@@ -772,7 +773,7 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
772
773
|
error: string;
|
|
773
774
|
};
|
|
774
775
|
outputFormat: "json";
|
|
775
|
-
status:
|
|
776
|
+
status: 500;
|
|
776
777
|
input: {
|
|
777
778
|
param: {
|
|
778
779
|
id: string;
|
|
@@ -791,10 +792,11 @@ export declare function createHostsRoutes(deps: HostsRouteDeps): import("hono/ho
|
|
|
791
792
|
};
|
|
792
793
|
} | {
|
|
793
794
|
output: {
|
|
794
|
-
|
|
795
|
+
removed: true;
|
|
796
|
+
id: string;
|
|
795
797
|
};
|
|
796
798
|
outputFormat: "json";
|
|
797
|
-
status:
|
|
799
|
+
status: 200;
|
|
798
800
|
input: {
|
|
799
801
|
param: {
|
|
800
802
|
id: string;
|