@hearsay-tools/squawk 0.19.0-pr4497.8898 → 0.19.0-pr4499.8906
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/activity/requests.js +1 -1
- package/dist/activity/requests.js.map +1 -1
- package/dist/activity/text.d.ts +0 -2
- package/dist/activity/text.js +1 -7
- package/dist/activity/text.js.map +1 -1
- package/dist/activity/tool-activity.js +1 -1
- package/dist/activity/tool-activity.js.map +1 -1
- package/dist/activity/wait.js +1 -1
- package/dist/activity/wait.js.map +1 -1
- package/dist/ci-wait/errors.js +2 -2
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/github.d.ts +22 -30
- package/dist/ci-wait/github.js +27 -9
- package/dist/ci-wait/github.js.map +1 -1
- package/dist/ci-wait/pr-wait-kind.d.ts +2 -2
- package/dist/ci-wait/pr-wait-kind.js +3 -3
- package/dist/ci-wait/pr-wait-kind.js.map +1 -1
- package/dist/ci-wait/pr-wait-port.d.ts +44 -0
- package/dist/ci-wait/pr-wait-port.js +125 -0
- package/dist/ci-wait/pr-wait-port.js.map +1 -0
- package/dist/ci-wait/progress.d.ts +4 -5
- package/dist/ci-wait/progress.js +1 -1
- package/dist/ci-wait/progress.js.map +1 -1
- package/dist/ci-wait/supervisor.d.ts +13 -8
- package/dist/ci-wait/supervisor.js +59 -26
- package/dist/ci-wait/supervisor.js.map +1 -1
- package/dist/ci-wait/tool-catalog.js +1 -1
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/core/clamp-text.d.ts +2 -0
- package/dist/core/clamp-text.js +8 -0
- package/dist/core/clamp-text.js.map +1 -0
- package/dist/core/forge-pr-wait.d.ts +99 -0
- package/dist/core/forge-pr-wait.js +20 -0
- package/dist/core/forge-pr-wait.js.map +1 -0
- package/dist/core/forge-registry.d.ts +6 -2
- package/dist/core/forge-registry.js +5 -0
- package/dist/core/forge-registry.js.map +1 -1
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/features/automations/tools.d.ts +8 -8
- package/dist/plugin/index.d.ts +3 -0
- package/dist/plugin/index.js +2 -0
- package/dist/plugin/index.js.map +1 -1
- package/dist/runs/run-archive.d.ts +72 -72
- package/dist/server/forge/github-forge.js +3 -0
- package/dist/server/forge/github-forge.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/models-routes.d.ts +12 -12
- package/dist/server/projects-routes.d.ts +45 -45
- package/dist/server/providers-routes.d.ts +57 -57
- package/dist/server/repo-routes.d.ts +34 -34
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runner-install-routes.d.ts +10 -10
- package/dist/server/runs-routes.d.ts +301 -301
- package/dist/server/server.d.ts +1396 -1396
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/server/workspace-routes.d.ts +85 -85
- package/dist/workflows/input-acknowledgement.d.ts +24 -24
- package/dist/workflows/run/wait-input-descriptors.js +1 -1
- package/dist/workflows/run/wait-input-descriptors.js.map +1 -1
- package/dist/workflows/run/wait-kind-registry.d.ts +3 -2
- package/dist/workflows/run/wait-kind-registry.js.map +1 -1
- package/dist/workflows/run/wait-registration-tool.js +3 -1
- package/dist/workflows/run/wait-registration-tool.js.map +1 -1
- package/package.json +4 -4
- package/web/dist/assets/{accounts-section-DV18K14j.js → accounts-section-CL4_y1Ap.js} +1 -1
- package/web/dist/assets/{activity-motion-U0gkYTm-.js → activity-motion-1nxINCqs.js} +1 -1
- package/web/dist/assets/{activity-route-CKFb-IYI.js → activity-route-yCPzQHRl.js} +1 -1
- package/web/dist/assets/{agent-config-section-X66FRjsE.js → agent-config-section-CO-Bl7d7.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-EEYiGk_Q.js → agent-defaults-section-C90pO0nt.js} +1 -1
- package/web/dist/assets/{appearance-D4I-ANZ_.js → appearance-dgwYTY63.js} +1 -1
- package/web/dist/assets/{archive-on-merge-field-D6y7pCov.js → archive-on-merge-field-DJZVhb_I.js} +1 -1
- package/web/dist/assets/{automations-route-4ahsnx6z.js → automations-route-BhSkU9kZ.js} +2 -2
- package/web/dist/assets/{command-ppU3xBNs.js → command-BMMjB5k9.js} +1 -1
- package/web/dist/assets/{commit-list-Dp0c_x8b.js → commit-list-mYh1t3BD.js} +1 -1
- package/web/dist/assets/{design-icons-CzEoMH9c.js → design-icons-BZt8Kqs9.js} +1 -1
- package/web/dist/assets/{dialog-DXCws12U.js → dialog-CB9ZhEk2.js} +1 -1
- package/web/dist/assets/{diff-n7BcLjSi.js → diff-B4l1BaZJ.js} +2 -2
- package/web/dist/assets/{diff-controls-7hWjGeWp.js → diff-controls-Bs58JOMz.js} +1 -1
- package/web/dist/assets/{diff-view-CJNrRCRI.js → diff-view-BGwOGavy.js} +1 -1
- package/web/dist/assets/{discard-changes-dialog-Bd3w4xOW.js → discard-changes-dialog-Cr1vlcjZ.js} +1 -1
- package/web/dist/assets/dropdown-menu-VFda6KAg.js +1 -0
- package/web/dist/assets/{file-preview-DS5j5uFi.js → file-preview-DqopZwES.js} +1 -1
- package/web/dist/assets/{git-toolbar-D5N_Ucqr.js → git-toolbar-pr68yTY4.js} +1 -1
- package/web/dist/assets/github-BY-X8L5Q.js +1 -0
- package/web/dist/assets/{global-activity-route-DqyHJiZz.js → global-activity-route-XkwjlnaD.js} +1 -1
- package/web/dist/assets/index-BOWGArJd.css +1 -0
- package/web/dist/assets/index-I4_drgNu.js +21 -0
- package/web/dist/assets/{markdown-9FIYg1nH.js → markdown-fuaT5ciN.js} +1 -1
- package/web/dist/assets/{open-in-menu-L5v_AQZt.js → open-in-menu-Uw-sJhbG.js} +1 -1
- package/web/dist/assets/{option-select-CYbw9rk4.js → option-select-_tHcMUWt.js} +1 -1
- package/web/dist/assets/{preferences-section-Do1nZwKg.js → preferences-section-Crh_5QfK.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-o7nx7h4-.js → preview-pane-connected-CLWRxEhI.js} +1 -1
- package/web/dist/assets/{project-location-BFN7mvbZ.js → project-location-DmGO5Dqx.js} +1 -1
- package/web/dist/assets/{projects-section-Bq9DzRDF.js → projects-section-CLPN14JX.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-CNa_K7AU.js → prompt-templates-section-CQHpVrcB.js} +2 -2
- package/web/dist/assets/{reference-chip-O8Bfl1Oi.js → reference-chip-Dk69XD7Q.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-CbCCb3QA.js → remote-settings-notice-C8naX_yp.js} +1 -1
- package/web/dist/assets/{repo-git-Dz3fhj6j.js → repo-git-CTSdvalV.js} +1 -1
- package/web/dist/assets/{report-reader-BfsdCLq-.js → report-reader-DJJixZxy.js} +1 -1
- package/web/dist/assets/{report-selection-cuFCCxDW.js → report-selection-BH0M_8bk.js} +1 -1
- package/web/dist/assets/{reports-Df83TkE3.js → reports-DXfywo34.js} +1 -1
- package/web/dist/assets/{resources-section-CKJGgLWa.js → resources-section-CA-D1Vj2.js} +1 -1
- package/web/dist/assets/review-panel-UI6FQQmp.js +11 -0
- package/web/dist/assets/{run-header-BWNapiIC.js → run-header-DDQU9tCB.js} +2 -2
- package/web/dist/assets/select-QO8XlmjU.js +1 -0
- package/web/dist/assets/{session-context-section-CSDtUgJI.js → session-context-section-CTDQl-i5.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-pMZcMiW4.js → settings-agent-picker-DE5zKJtS.js} +1 -1
- package/web/dist/assets/{settings-list-detail-Ch1KMPjr.js → settings-list-detail-DcRsGkGy.js} +1 -1
- package/web/dist/assets/{settings-save-bar-CFkofH5G.js → settings-save-bar-DM7T22Nr.js} +1 -1
- package/web/dist/assets/{settings-shell-B6-ofejE.js → settings-shell-EOUcgx1J.js} +1 -1
- package/web/dist/assets/{sidebar-section-DwcXrxn2.js → sidebar-section-C69ES3GL.js} +1 -1
- package/web/dist/assets/{skills-DD5hhynR.js → skills-DuaNQ6XW.js} +1 -1
- package/web/dist/assets/task-changes-midIkW0D.js +1 -0
- package/web/dist/assets/{task-commits-D8Pzk4b3.js → task-commits-DAT7-sIh.js} +1 -1
- package/web/dist/assets/{task-file-scope-DPJOeknI.js → task-file-scope-BYAH1Mj8.js} +1 -1
- package/web/dist/assets/{task-files-DJnNyynG.js → task-files-CJaZfp0y.js} +1 -1
- package/web/dist/assets/{task-github-item-Di9HWGn6.js → task-github-item-BnoxG2el.js} +1 -1
- package/web/dist/assets/task-thread-fsRo8vgf.js +2 -0
- package/web/dist/assets/{thread-state-B2dX4psn.js → thread-state-T5A2uz_q.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-CqiCI37V.css +1 -0
- package/web/dist/assets/use-hand-to-agent-state-Cy6oaj7k.js +1 -0
- package/web/dist/assets/use-path-bases-x6weDx5i.js +1 -0
- package/web/dist/assets/workflows-CwZ1aiR4.js +7 -0
- package/web/dist/assets/{workspace-tools-6fvZHbrZ.js → workspace-tools-0-Yx7SCS.js} +1 -1
- package/web/dist/assets/{worktrees-section-C1fpzChO.js → worktrees-section-Cn8sFOCC.js} +1 -1
- package/web/dist/index.html +9 -9
- package/web/dist/assets/dropdown-menu-B60L-d_4.js +0 -1
- package/web/dist/assets/github-Bhj0PA8h.js +0 -1
- package/web/dist/assets/index-UMSYsh9P.css +0 -1
- package/web/dist/assets/index-i4Bu7SvU.js +0 -21
- package/web/dist/assets/review-panel-BaUd88ko.js +0 -11
- package/web/dist/assets/select-Cy2NunWj.js +0 -1
- package/web/dist/assets/task-changes-CbWxyOEd.js +0 -1
- package/web/dist/assets/task-thread-gXImKbGN.js +0 -2
- package/web/dist/assets/use-hand-to-agent-state-BHaqyTxa.css +0 -1
- package/web/dist/assets/use-hand-to-agent-state-DhUiLIQg.js +0 -1
- package/web/dist/assets/use-path-bases-BzlzA9bw.js +0 -1
- package/web/dist/assets/workflows-slzqyi2_.js +0 -7
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The PR wait part of a forge definition (spec 2026-11-28-forge-plugin-seam § The forge definition,
|
|
3
|
+
* hearsay-tools/squawk#4474). `cezar_wait` with `kind: "pr"` reads a pull request through these
|
|
4
|
+
* optional members. A forge without one of them gets the default that `ci-wait/pr-wait-port.ts`
|
|
5
|
+
* names, or a refusal for the wait mode that needs it.
|
|
6
|
+
*/
|
|
7
|
+
import type { CiPrIdentity, CiWaitErrorCode } from '../contract/index.js';
|
|
8
|
+
export type ForgeCheckBucket = 'pass' | 'fail' | 'pending' | 'skipping' | 'cancel';
|
|
9
|
+
/**
|
|
10
|
+
* One check of the watched commit: the newest run of its name. `bucket` follows the conclusion
|
|
11
|
+
* when there is one; `stale` marks a record that concluded while its status still reads as running.
|
|
12
|
+
* `required` is the forge's required flag for this PR.
|
|
13
|
+
*/
|
|
14
|
+
export interface ForgeCheck {
|
|
15
|
+
name: string;
|
|
16
|
+
state: string;
|
|
17
|
+
link: string;
|
|
18
|
+
bucket: ForgeCheckBucket;
|
|
19
|
+
workflow?: string;
|
|
20
|
+
startedAt?: string;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
stale?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type ForgeMergeable = 'MERGEABLE' | 'CONFLICTING' | 'UNKNOWN';
|
|
25
|
+
/** The PR as a merge wait reads it. */
|
|
26
|
+
export interface ForgeMergeState {
|
|
27
|
+
/** Lower-case 40-character commit id of the PR head. */
|
|
28
|
+
headSha: string;
|
|
29
|
+
mergeable?: ForgeMergeable;
|
|
30
|
+
mergeStateStatus?: string;
|
|
31
|
+
state: 'OPEN' | 'CLOSED' | 'MERGED';
|
|
32
|
+
mergedAt?: string;
|
|
33
|
+
mergeCommitSha?: string;
|
|
34
|
+
}
|
|
35
|
+
/** The PR head and the checks of the watched commit, in one read. */
|
|
36
|
+
export interface ForgeChecksObservation {
|
|
37
|
+
headSha: string;
|
|
38
|
+
mergeable?: ForgeMergeable;
|
|
39
|
+
mergeStateStatus?: string;
|
|
40
|
+
checks: ForgeCheck[];
|
|
41
|
+
}
|
|
42
|
+
/** A workflow whose newest run on the head ended without success. */
|
|
43
|
+
export interface ForgeRunFailure {
|
|
44
|
+
id: number;
|
|
45
|
+
workflow: string;
|
|
46
|
+
conclusion: 'startup_failure' | 'failure';
|
|
47
|
+
}
|
|
48
|
+
/** The workflow runs of one head: whether any still runs, and each workflow whose newest run failed. */
|
|
49
|
+
export interface ForgeWorkflowRuns {
|
|
50
|
+
active: boolean;
|
|
51
|
+
failures: ForgeRunFailure[];
|
|
52
|
+
}
|
|
53
|
+
/** The merge the PR waits for: queue membership, auto-merge, and the last event of either. */
|
|
54
|
+
export interface ForgeMergeRequest {
|
|
55
|
+
isInMergeQueue: boolean;
|
|
56
|
+
autoMergeEnabled: boolean;
|
|
57
|
+
event?: {
|
|
58
|
+
kind: 'queue_removal' | 'auto_merge_disabled';
|
|
59
|
+
createdAt: string;
|
|
60
|
+
reason?: string;
|
|
61
|
+
reasonCode?: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export type ForgeMergeProgress = ForgeMergeState & {
|
|
65
|
+
mergeRequest: ForgeMergeRequest;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The optional PR wait members of a forge definition. Each takes the wait's PR identity: its
|
|
69
|
+
* canonical URL, `owner/repo`, number and the watched head.
|
|
70
|
+
*/
|
|
71
|
+
export interface ForgePrWaitMethods {
|
|
72
|
+
/** The canonical identity and head of a PR URL, at registration. Default: `parsePullRequestUrl` and `readPullRequest`. */
|
|
73
|
+
resolvePullRequest?(url: string, signal: AbortSignal): Promise<CiPrIdentity>;
|
|
74
|
+
/** What a merge wait reads, with mergeability and the merge commit. Default: `readPullRequest`. */
|
|
75
|
+
readMergeState?(pr: CiPrIdentity, signal: AbortSignal): Promise<ForgeMergeState>;
|
|
76
|
+
/** The PR head and the checks of `pr.headSha`. `until: "checks"` needs it. */
|
|
77
|
+
readChecks?(pr: CiPrIdentity, signal: AbortSignal): Promise<ForgeChecksObservation>;
|
|
78
|
+
/** Resolves when the checks of the PR may have changed; the wait reads them again. Default: a read every 30 s. */
|
|
79
|
+
watchChecks?(pr: CiPrIdentity, signal: AbortSignal): Promise<void>;
|
|
80
|
+
/** The workflow runs of `pr.headSha`. Default: none runs and none failed. */
|
|
81
|
+
workflowRuns?(pr: CiPrIdentity, signal: AbortSignal): Promise<ForgeWorkflowRuns>;
|
|
82
|
+
/** The merge state with the pending merge. `until: "merge_or_blocked"` needs it. */
|
|
83
|
+
mergeProgress?(pr: CiPrIdentity, signal: AbortSignal): Promise<ForgeMergeProgress>;
|
|
84
|
+
}
|
|
85
|
+
export declare const PR_WAIT_METHODS: readonly ["resolvePullRequest", "readMergeState", "readChecks", "watchChecks", "workflowRuns", "mergeProgress"];
|
|
86
|
+
/**
|
|
87
|
+
* A PR wait failure with its wait error code. A forge throws it to choose the code. The code alone
|
|
88
|
+
* decides a retry: the watcher retries `command_failed` and `query_timeout` inside the deadline,
|
|
89
|
+
* whatever `transient` says, and ends the wait on any other code. Any other error a forge method
|
|
90
|
+
* throws counts as a transient `command_failed`.
|
|
91
|
+
*/
|
|
92
|
+
export declare class PrWaitError extends Error {
|
|
93
|
+
readonly code: CiWaitErrorCode;
|
|
94
|
+
readonly transient: boolean;
|
|
95
|
+
constructor(code: CiWaitErrorCode, message: string, transient?: boolean);
|
|
96
|
+
}
|
|
97
|
+
/** A failure whose message Squawk wrote for the agent, such as one that names the forge: the registration answer quotes it. */
|
|
98
|
+
export declare class PrWaitRefusal extends PrWaitError {
|
|
99
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const PR_WAIT_METHODS = ['resolvePullRequest', 'readMergeState', 'readChecks', 'watchChecks', 'workflowRuns', 'mergeProgress'];
|
|
2
|
+
/**
|
|
3
|
+
* A PR wait failure with its wait error code. A forge throws it to choose the code. The code alone
|
|
4
|
+
* decides a retry: the watcher retries `command_failed` and `query_timeout` inside the deadline,
|
|
5
|
+
* whatever `transient` says, and ends the wait on any other code. Any other error a forge method
|
|
6
|
+
* throws counts as a transient `command_failed`.
|
|
7
|
+
*/
|
|
8
|
+
export class PrWaitError extends Error {
|
|
9
|
+
code;
|
|
10
|
+
transient;
|
|
11
|
+
constructor(code, message, transient = false) {
|
|
12
|
+
super(message);
|
|
13
|
+
this.code = code;
|
|
14
|
+
this.transient = transient;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** A failure whose message Squawk wrote for the agent, such as one that names the forge: the registration answer quotes it. */
|
|
18
|
+
export class PrWaitRefusal extends PrWaitError {
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=forge-pr-wait.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forge-pr-wait.js","sourceRoot":"","sources":["../../src/core/forge-pr-wait.ts"],"names":[],"mappings":"AAwFA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,oBAAoB,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,CAA0D,CAAC;AAE/L;;;;;GAKG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IAC3B,IAAI,CAAkB;IACtB,SAAS,CAAU;IAC5B,YAAY,IAAqB,EAAE,OAAe,EAAE,SAAS,GAAG,KAAK;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;CACF;AAED,+HAA+H;AAC/H,MAAM,OAAO,aAAc,SAAQ,WAAW;CAAG"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import type { BranchPrState } from '../contract/index.js';
|
|
8
8
|
import type { GithubChecksData, GithubCommentCountsData, GithubCommentsData, GithubData, GithubItem, GithubItemResponse, GithubPrMergeState, GithubProjectsData, GithubRefStatusData, GithubSearchData } from '../contract/index.js';
|
|
9
9
|
import type { ArchivePullRequestIdentity, MergedPullRequest } from '../contract/index.js';
|
|
10
|
+
import { type ForgePrWaitMethods } from './forge-pr-wait.ts';
|
|
10
11
|
import type { RepoHandleDiscovery } from './repo-handle-discovery.ts';
|
|
11
12
|
/** A git remote reduced to what a forge needs. `host` is lower case; an HTTP(S) host keeps a non-default port. */
|
|
12
13
|
export interface ForgeRemote {
|
|
@@ -211,8 +212,11 @@ export interface ForgeProjectClient extends ForgeProjectClientOptional {
|
|
|
211
212
|
refresh?: boolean;
|
|
212
213
|
}): Promise<GithubCommentsData>;
|
|
213
214
|
}
|
|
214
|
-
/**
|
|
215
|
-
|
|
215
|
+
/**
|
|
216
|
+
* What `SquawkPluginApi.registerForge` takes. One object serves every project of its forge. The
|
|
217
|
+
* optional PR wait members (`ForgePrWaitMethods`) serve `cezar_wait` with `kind: "pr"`.
|
|
218
|
+
*/
|
|
219
|
+
export interface ForgeDefinition extends ForgePrWaitMethods {
|
|
216
220
|
/** Forge id, such as `github`. Health `forge.kind` and the project list's `forge` carry it. */
|
|
217
221
|
readonly id: string;
|
|
218
222
|
/** Display name. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PR_WAIT_METHODS } from './forge-pr-wait.js';
|
|
1
2
|
import { createKeyedRegistry } from './registry.js';
|
|
2
3
|
/**
|
|
3
4
|
* A forge refused a request for its rate limit. Pollers pause on it: no blocker and no failure
|
|
@@ -27,6 +28,10 @@ function checkShape(definition) {
|
|
|
27
28
|
if (typeof definition[member] !== 'function')
|
|
28
29
|
throw new Error(`Forges: '${definition.id}' ${member} must be a function.`);
|
|
29
30
|
}
|
|
31
|
+
for (const member of PR_WAIT_METHODS) {
|
|
32
|
+
if (definition[member] !== undefined && typeof definition[member] !== 'function')
|
|
33
|
+
throw new Error(`Forges: '${definition.id}' ${member} must be a function when set.`);
|
|
34
|
+
}
|
|
30
35
|
if (definition.matchRemote.constructor?.name === 'AsyncFunction')
|
|
31
36
|
throw new Error(`Forges: '${definition.id}' matchRemote must be synchronous.`);
|
|
32
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forge-registry.js","sourceRoot":"","sources":["../../src/core/forge-registry.ts"],"names":[],"mappings":"
|
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AC,YAAY,EAAE;QAAE,OAAO,IAAI,CAAC;IACjC,MAAM,MAAM,GAAG,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,IAAI,IAAI,kBAAkB,CAAC,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,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"}
|
|
@@ -2,6 +2,18 @@ import type { DelegationRoutes } from './routes.ts';
|
|
|
2
2
|
export declare function createDelegationApp(routes: DelegationRoutes): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
|
|
3
3
|
"/list": {
|
|
4
4
|
$get: {
|
|
5
|
+
output: {
|
|
6
|
+
error: string;
|
|
7
|
+
code?: "invalid_input" | undefined;
|
|
8
|
+
};
|
|
9
|
+
outputFormat: "json";
|
|
10
|
+
status: 400;
|
|
11
|
+
input: {
|
|
12
|
+
query: {
|
|
13
|
+
offset?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
5
17
|
output: {
|
|
6
18
|
workers: {
|
|
7
19
|
workerId: string;
|
|
@@ -54,18 +66,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
54
66
|
offset?: string | undefined;
|
|
55
67
|
};
|
|
56
68
|
};
|
|
57
|
-
} | {
|
|
58
|
-
output: {
|
|
59
|
-
error: string;
|
|
60
|
-
code?: "invalid_input" | undefined;
|
|
61
|
-
};
|
|
62
|
-
outputFormat: "json";
|
|
63
|
-
status: 400;
|
|
64
|
-
input: {
|
|
65
|
-
query: {
|
|
66
|
-
offset?: string | undefined;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
} & {
|
|
@@ -652,6 +652,18 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
652
652
|
} & {
|
|
653
653
|
"/:workerId": {
|
|
654
654
|
$get: {
|
|
655
|
+
output: {
|
|
656
|
+
error: string;
|
|
657
|
+
code?: "invalid_input" | undefined;
|
|
658
|
+
};
|
|
659
|
+
outputFormat: "json";
|
|
660
|
+
status: 400;
|
|
661
|
+
input: {
|
|
662
|
+
param: {
|
|
663
|
+
workerId: string;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
} | {
|
|
655
667
|
output: {
|
|
656
668
|
workerId: string;
|
|
657
669
|
settled: boolean;
|
|
@@ -776,7 +788,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
776
788
|
workerId: string;
|
|
777
789
|
};
|
|
778
790
|
};
|
|
779
|
-
}
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
} & {
|
|
794
|
+
"/:workerId/collect": {
|
|
795
|
+
$post: {
|
|
780
796
|
output: {
|
|
781
797
|
error: string;
|
|
782
798
|
code?: "invalid_input" | undefined;
|
|
@@ -787,12 +803,10 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
787
803
|
param: {
|
|
788
804
|
workerId: string;
|
|
789
805
|
};
|
|
806
|
+
} & {
|
|
807
|
+
json: Record<string, never>;
|
|
790
808
|
};
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
} & {
|
|
794
|
-
"/:workerId/collect": {
|
|
795
|
-
$post: {
|
|
809
|
+
} | {
|
|
796
810
|
output: {
|
|
797
811
|
workerId: string;
|
|
798
812
|
parentRunId: string;
|
|
@@ -915,7 +929,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
915
929
|
} & {
|
|
916
930
|
json: Record<string, never>;
|
|
917
931
|
};
|
|
918
|
-
}
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
} & {
|
|
935
|
+
"/:workerId/steer": {
|
|
936
|
+
$post: {
|
|
919
937
|
output: {
|
|
920
938
|
error: string;
|
|
921
939
|
code?: "invalid_input" | undefined;
|
|
@@ -927,13 +945,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
927
945
|
workerId: string;
|
|
928
946
|
};
|
|
929
947
|
} & {
|
|
930
|
-
json:
|
|
948
|
+
json: {
|
|
949
|
+
text: string;
|
|
950
|
+
};
|
|
931
951
|
};
|
|
932
|
-
}
|
|
933
|
-
};
|
|
934
|
-
} & {
|
|
935
|
-
"/:workerId/steer": {
|
|
936
|
-
$post: {
|
|
952
|
+
} | {
|
|
937
953
|
output: {
|
|
938
954
|
workerId: string;
|
|
939
955
|
state: "delivered" | "queued";
|
|
@@ -949,7 +965,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
949
965
|
text: string;
|
|
950
966
|
};
|
|
951
967
|
};
|
|
952
|
-
}
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
} & {
|
|
971
|
+
"/:workerId/stop": {
|
|
972
|
+
$post: {
|
|
953
973
|
output: {
|
|
954
974
|
error: string;
|
|
955
975
|
code?: "invalid_input" | undefined;
|
|
@@ -961,15 +981,9 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
961
981
|
workerId: string;
|
|
962
982
|
};
|
|
963
983
|
} & {
|
|
964
|
-
json:
|
|
965
|
-
text: string;
|
|
966
|
-
};
|
|
984
|
+
json: Record<string, never>;
|
|
967
985
|
};
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
} & {
|
|
971
|
-
"/:workerId/stop": {
|
|
972
|
-
$post: {
|
|
986
|
+
} | {
|
|
973
987
|
output: {
|
|
974
988
|
workerId: string;
|
|
975
989
|
state: "stopping" | "terminated";
|
|
@@ -983,7 +997,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
983
997
|
} & {
|
|
984
998
|
json: Record<string, never>;
|
|
985
999
|
};
|
|
986
|
-
}
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
} & {
|
|
1003
|
+
"/:workerId/destroy": {
|
|
1004
|
+
$post: {
|
|
987
1005
|
output: {
|
|
988
1006
|
error: string;
|
|
989
1007
|
code?: "invalid_input" | undefined;
|
|
@@ -995,13 +1013,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
995
1013
|
workerId: string;
|
|
996
1014
|
};
|
|
997
1015
|
} & {
|
|
998
|
-
json:
|
|
1016
|
+
json: {
|
|
1017
|
+
discardWork?: true | undefined;
|
|
1018
|
+
};
|
|
999
1019
|
};
|
|
1000
|
-
}
|
|
1001
|
-
};
|
|
1002
|
-
} & {
|
|
1003
|
-
"/:workerId/destroy": {
|
|
1004
|
-
$post: {
|
|
1020
|
+
} | {
|
|
1005
1021
|
output: {
|
|
1006
1022
|
workerId: string;
|
|
1007
1023
|
state: "complete" | "incomplete";
|
|
@@ -1030,22 +1046,6 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1030
1046
|
discardWork?: true | undefined;
|
|
1031
1047
|
};
|
|
1032
1048
|
};
|
|
1033
|
-
} | {
|
|
1034
|
-
output: {
|
|
1035
|
-
error: string;
|
|
1036
|
-
code?: "invalid_input" | undefined;
|
|
1037
|
-
};
|
|
1038
|
-
outputFormat: "json";
|
|
1039
|
-
status: 400;
|
|
1040
|
-
input: {
|
|
1041
|
-
param: {
|
|
1042
|
-
workerId: string;
|
|
1043
|
-
};
|
|
1044
|
-
} & {
|
|
1045
|
-
json: {
|
|
1046
|
-
discardWork?: true | undefined;
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
1049
|
} | {
|
|
1050
1050
|
output: {
|
|
1051
1051
|
workerId: string;
|
|
@@ -1081,13 +1081,11 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1081
1081
|
"/:workerId/diff": {
|
|
1082
1082
|
$get: {
|
|
1083
1083
|
output: {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
diff: string;
|
|
1087
|
-
truncated: boolean;
|
|
1084
|
+
error: string;
|
|
1085
|
+
code?: "invalid_input" | undefined;
|
|
1088
1086
|
};
|
|
1089
1087
|
outputFormat: "json";
|
|
1090
|
-
status:
|
|
1088
|
+
status: 400;
|
|
1091
1089
|
input: {
|
|
1092
1090
|
param: {
|
|
1093
1091
|
workerId: string;
|
|
@@ -1095,11 +1093,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
|
|
|
1095
1093
|
};
|
|
1096
1094
|
} | {
|
|
1097
1095
|
output: {
|
|
1098
|
-
|
|
1099
|
-
|
|
1096
|
+
workerId: string;
|
|
1097
|
+
baselineSha: string;
|
|
1098
|
+
diff: string;
|
|
1099
|
+
truncated: boolean;
|
|
1100
1100
|
};
|
|
1101
1101
|
outputFormat: "json";
|
|
1102
|
-
status:
|
|
1102
|
+
status: 200;
|
|
1103
1103
|
input: {
|
|
1104
1104
|
param: {
|
|
1105
1105
|
workerId: string;
|
|
@@ -7,10 +7,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
7
7
|
}[];
|
|
8
8
|
isError: boolean;
|
|
9
9
|
details: {
|
|
10
|
-
ok: false;
|
|
11
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
12
|
-
message: string;
|
|
13
|
-
} | {
|
|
14
10
|
ok: true;
|
|
15
11
|
task: {
|
|
16
12
|
id: string;
|
|
@@ -22,6 +18,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
22
18
|
url?: string | undefined;
|
|
23
19
|
};
|
|
24
20
|
note: string;
|
|
21
|
+
} | {
|
|
22
|
+
ok: false;
|
|
23
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
24
|
+
message: string;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
27
|
export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof callScheduleTask>>): {
|
|
@@ -31,10 +31,6 @@ export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof
|
|
|
31
31
|
}[];
|
|
32
32
|
isError: boolean;
|
|
33
33
|
details: {
|
|
34
|
-
ok: false;
|
|
35
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
36
|
-
message: string;
|
|
37
|
-
} | {
|
|
38
34
|
ok: true;
|
|
39
35
|
task: {
|
|
40
36
|
id: string;
|
|
@@ -46,6 +42,10 @@ export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof
|
|
|
46
42
|
url?: string | undefined;
|
|
47
43
|
};
|
|
48
44
|
note: string;
|
|
45
|
+
} | {
|
|
46
|
+
ok: false;
|
|
47
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
48
|
+
message: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
export declare function invokeScheduledTasksTool(input: unknown): Promise<{
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export type { CapabilityContext, CapabilityDefinition } from '../core/capability
|
|
|
11
11
|
export type { ForgeAvailability, ForgeCreatePullRequestInput, ForgeCreatePullRequestOutcome, ForgeDefinition, ForgeProjectClient, ForgePullRequest, ForgePullRequestIdentity, ForgeRemote, ForgeWebRefKind, } from '../core/forge-registry.ts';
|
|
12
12
|
/** Throw it from a forge method to report a rate limit: pollers pause instead of failing. */
|
|
13
13
|
export { ForgeRateLimitedError } from '../core/forge-registry.ts';
|
|
14
|
+
export type { ForgeCheck, ForgeChecksObservation, ForgeMergeProgress, ForgeMergeRequest, ForgeMergeState, ForgePrWaitMethods, ForgeRunFailure, ForgeWorkflowRuns, } from '../core/forge-pr-wait.ts';
|
|
15
|
+
/** Throw it from a forge's PR wait method to choose the wait error code. */
|
|
16
|
+
export { PrWaitError } from '../core/forge-pr-wait.ts';
|
|
14
17
|
export type { CliCommandDefinition, RootCommandContext, SubcommandRunner } from '../core/cli-registry.ts';
|
|
15
18
|
export type { HttpBundleRouteDefinition, HttpHandlerRouteDefinition, HttpRouteBundleContext, HttpRouteContext, HttpRouteDefinition, HttpRouteMethod, HttpRouteScope, } from '../core/http-route-registry.ts';
|
|
16
19
|
export type { ProjectPluginState, ServerForgePort, ServerHookDefinition, ServerPluginContext, ServerProjectEntry, ServerProjectHandle, ServerProjectManagerPort, ServerStartContext, ServerWorkspaceEventsPort, } from '../core/server-hook-registry.ts';
|
package/dist/plugin/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/** Throw it from a forge method to report a rate limit: pollers pause instead of failing. */
|
|
2
2
|
export { ForgeRateLimitedError } from '../core/forge-registry.js';
|
|
3
|
+
/** Throw it from a forge's PR wait method to choose the wait error code. */
|
|
4
|
+
export { PrWaitError } from '../core/forge-pr-wait.js';
|
|
3
5
|
export * from './runner-kit.js';
|
|
4
6
|
//# sourceMappingURL=index.js.map
|
package/dist/plugin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAqBA,6FAA6F;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAqBA,6FAA6F;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAWlE,4EAA4E;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAyBvD,cAAc,iBAAiB,CAAC"}
|