@hearsay-tools/squawk 0.19.0-dev.8893 → 0.19.0-dev.8901

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.
Files changed (61) hide show
  1. package/dist/activity/requests.js +1 -1
  2. package/dist/activity/requests.js.map +1 -1
  3. package/dist/activity/text.d.ts +0 -2
  4. package/dist/activity/text.js +1 -7
  5. package/dist/activity/text.js.map +1 -1
  6. package/dist/activity/tool-activity.js +1 -1
  7. package/dist/activity/tool-activity.js.map +1 -1
  8. package/dist/activity/wait.js +1 -1
  9. package/dist/activity/wait.js.map +1 -1
  10. package/dist/ci-wait/errors.js +2 -2
  11. package/dist/ci-wait/errors.js.map +1 -1
  12. package/dist/ci-wait/github.d.ts +22 -30
  13. package/dist/ci-wait/github.js +27 -9
  14. package/dist/ci-wait/github.js.map +1 -1
  15. package/dist/ci-wait/pr-wait-kind.d.ts +2 -2
  16. package/dist/ci-wait/pr-wait-kind.js +3 -3
  17. package/dist/ci-wait/pr-wait-kind.js.map +1 -1
  18. package/dist/ci-wait/pr-wait-port.d.ts +44 -0
  19. package/dist/ci-wait/pr-wait-port.js +125 -0
  20. package/dist/ci-wait/pr-wait-port.js.map +1 -0
  21. package/dist/ci-wait/progress.d.ts +4 -5
  22. package/dist/ci-wait/progress.js +1 -1
  23. package/dist/ci-wait/progress.js.map +1 -1
  24. package/dist/ci-wait/supervisor.d.ts +13 -8
  25. package/dist/ci-wait/supervisor.js +59 -26
  26. package/dist/ci-wait/supervisor.js.map +1 -1
  27. package/dist/ci-wait/tool-catalog.js +1 -1
  28. package/dist/ci-wait/tool-catalog.js.map +1 -1
  29. package/dist/core/clamp-text.d.ts +2 -0
  30. package/dist/core/clamp-text.js +8 -0
  31. package/dist/core/clamp-text.js.map +1 -0
  32. package/dist/core/forge-pr-wait.d.ts +99 -0
  33. package/dist/core/forge-pr-wait.js +20 -0
  34. package/dist/core/forge-pr-wait.js.map +1 -0
  35. package/dist/core/forge-registry.d.ts +6 -2
  36. package/dist/core/forge-registry.js +5 -0
  37. package/dist/core/forge-registry.js.map +1 -1
  38. package/dist/delegation/routes.d.ts +65 -65
  39. package/dist/features/automations/tools.d.ts +8 -8
  40. package/dist/plugin/index.d.ts +3 -0
  41. package/dist/plugin/index.js +2 -0
  42. package/dist/plugin/index.js.map +1 -1
  43. package/dist/runs/run-archive.d.ts +72 -72
  44. package/dist/server/forge/github-forge.js +3 -0
  45. package/dist/server/forge/github-forge.js.map +1 -1
  46. package/dist/server/live-routes.d.ts +6 -6
  47. package/dist/server/providers-routes.d.ts +57 -57
  48. package/dist/server/repo-routes.d.ts +34 -34
  49. package/dist/server/runner-install-routes.d.ts +10 -10
  50. package/dist/server/runs-routes.d.ts +325 -325
  51. package/dist/server/server.d.ts +1473 -1473
  52. package/dist/server/workspace-live-routes.d.ts +6 -6
  53. package/dist/server/workspace-routes.d.ts +85 -85
  54. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  55. package/dist/workflows/run/wait-input-descriptors.js +1 -1
  56. package/dist/workflows/run/wait-input-descriptors.js.map +1 -1
  57. package/dist/workflows/run/wait-kind-registry.d.ts +3 -2
  58. package/dist/workflows/run/wait-kind-registry.js.map +1 -1
  59. package/dist/workflows/run/wait-registration-tool.js +3 -1
  60. package/dist/workflows/run/wait-registration-tool.js.map +1 -1
  61. package/package.json +4 -4
@@ -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
- /** What `SquawkPluginApi.registerForge` takes. One object serves every project of its forge. */
215
- export interface ForgeDefinition {
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":"AAqBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AA0KpD;;;GAGG;AACH,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC9C,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G,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"}
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
- output: {
31
- error: string;
32
- code?: "invalid_input" | undefined;
33
- };
34
- outputFormat: "json";
35
- status: 400;
36
- input: {
37
- query: {
38
- offset?: string | undefined;
39
- };
40
- };
41
- } | {
42
30
  output: {
43
31
  workers: {
44
32
  workerId: string;
@@ -91,6 +79,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
91
79
  offset?: string | undefined;
92
80
  };
93
81
  };
82
+ } | {
83
+ output: {
84
+ error: string;
85
+ code?: "invalid_input" | undefined;
86
+ };
87
+ outputFormat: "json";
88
+ status: 400;
89
+ input: {
90
+ query: {
91
+ offset?: string | undefined;
92
+ };
93
+ };
94
94
  };
95
95
  };
96
96
  } & {
@@ -677,18 +677,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
677
677
  } & {
678
678
  "/:workerId": {
679
679
  $get: {
680
- output: {
681
- error: string;
682
- code?: "invalid_input" | undefined;
683
- };
684
- outputFormat: "json";
685
- status: 400;
686
- input: {
687
- param: {
688
- workerId: string;
689
- };
690
- };
691
- } | {
692
680
  output: {
693
681
  workerId: string;
694
682
  settled: boolean;
@@ -813,11 +801,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
813
801
  workerId: string;
814
802
  };
815
803
  };
816
- };
817
- };
818
- } & {
819
- "/:workerId/collect": {
820
- $post: {
804
+ } | {
821
805
  output: {
822
806
  error: string;
823
807
  code?: "invalid_input" | undefined;
@@ -828,10 +812,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
828
812
  param: {
829
813
  workerId: string;
830
814
  };
831
- } & {
832
- json: Record<string, never>;
833
815
  };
834
- } | {
816
+ };
817
+ };
818
+ } & {
819
+ "/:workerId/collect": {
820
+ $post: {
835
821
  output: {
836
822
  workerId: string;
837
823
  parentRunId: string;
@@ -954,11 +940,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
954
940
  } & {
955
941
  json: Record<string, never>;
956
942
  };
957
- };
958
- };
959
- } & {
960
- "/:workerId/steer": {
961
- $post: {
943
+ } | {
962
944
  output: {
963
945
  error: string;
964
946
  code?: "invalid_input" | undefined;
@@ -970,11 +952,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
970
952
  workerId: string;
971
953
  };
972
954
  } & {
973
- json: {
974
- text: string;
975
- };
955
+ json: Record<string, never>;
976
956
  };
977
- } | {
957
+ };
958
+ };
959
+ } & {
960
+ "/:workerId/steer": {
961
+ $post: {
978
962
  output: {
979
963
  workerId: string;
980
964
  state: "delivered" | "queued";
@@ -990,11 +974,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
990
974
  text: string;
991
975
  };
992
976
  };
993
- };
994
- };
995
- } & {
996
- "/:workerId/stop": {
997
- $post: {
977
+ } | {
998
978
  output: {
999
979
  error: string;
1000
980
  code?: "invalid_input" | undefined;
@@ -1006,9 +986,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1006
986
  workerId: string;
1007
987
  };
1008
988
  } & {
1009
- json: Record<string, never>;
989
+ json: {
990
+ text: string;
991
+ };
1010
992
  };
1011
- } | {
993
+ };
994
+ };
995
+ } & {
996
+ "/:workerId/stop": {
997
+ $post: {
1012
998
  output: {
1013
999
  workerId: string;
1014
1000
  state: "stopping" | "terminated";
@@ -1022,11 +1008,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1022
1008
  } & {
1023
1009
  json: Record<string, never>;
1024
1010
  };
1025
- };
1026
- };
1027
- } & {
1028
- "/:workerId/destroy": {
1029
- $post: {
1011
+ } | {
1030
1012
  output: {
1031
1013
  error: string;
1032
1014
  code?: "invalid_input" | undefined;
@@ -1038,11 +1020,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1038
1020
  workerId: string;
1039
1021
  };
1040
1022
  } & {
1041
- json: {
1042
- discardWork?: true | undefined;
1043
- };
1023
+ json: Record<string, never>;
1044
1024
  };
1045
- } | {
1025
+ };
1026
+ };
1027
+ } & {
1028
+ "/:workerId/destroy": {
1029
+ $post: {
1046
1030
  output: {
1047
1031
  workerId: string;
1048
1032
  state: "complete" | "incomplete";
@@ -1071,6 +1055,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1071
1055
  discardWork?: true | undefined;
1072
1056
  };
1073
1057
  };
1058
+ } | {
1059
+ output: {
1060
+ error: string;
1061
+ code?: "invalid_input" | undefined;
1062
+ };
1063
+ outputFormat: "json";
1064
+ status: 400;
1065
+ input: {
1066
+ param: {
1067
+ workerId: string;
1068
+ };
1069
+ } & {
1070
+ json: {
1071
+ discardWork?: true | undefined;
1072
+ };
1073
+ };
1074
1074
  } | {
1075
1075
  output: {
1076
1076
  workerId: string;
@@ -1106,11 +1106,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1106
1106
  "/:workerId/diff": {
1107
1107
  $get: {
1108
1108
  output: {
1109
- error: string;
1110
- code?: "invalid_input" | undefined;
1109
+ workerId: string;
1110
+ baselineSha: string;
1111
+ diff: string;
1112
+ truncated: boolean;
1111
1113
  };
1112
1114
  outputFormat: "json";
1113
- status: 400;
1115
+ status: 200;
1114
1116
  input: {
1115
1117
  param: {
1116
1118
  workerId: string;
@@ -1118,13 +1120,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1118
1120
  };
1119
1121
  } | {
1120
1122
  output: {
1121
- workerId: string;
1122
- baselineSha: string;
1123
- diff: string;
1124
- truncated: boolean;
1123
+ error: string;
1124
+ code?: "invalid_input" | undefined;
1125
1125
  };
1126
1126
  outputFormat: "json";
1127
- status: 200;
1127
+ status: 400;
1128
1128
  input: {
1129
1129
  param: {
1130
1130
  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<{
@@ -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';
@@ -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
@@ -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;AAyBlE,cAAc,iBAAiB,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"}