@henryqw/pi-pr 6.2.5 → 6.2.6
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/extensions/pr.ts +6 -5
- package/package.json +1 -1
package/extensions/pr.ts
CHANGED
|
@@ -76,11 +76,12 @@ const SweepChecks = Type.Array(Type.Object({
|
|
|
76
76
|
args: Type.Array(Type.String({ maxLength: 4_096 }), { maxItems: 256 }),
|
|
77
77
|
}, CLOSED), { maxItems: 32 });
|
|
78
78
|
|
|
79
|
+
// OpenAI-compatible endpoints require an object root even when every union variant is an object.
|
|
79
80
|
const UpdateBranchParameters = Type.Union([
|
|
80
81
|
Type.Object({ runId: RouteRunId, action: Type.Literal("rebase") }, CLOSED),
|
|
81
82
|
Type.Object({ runId: RouteRunId, action: Type.Literal("continue"), resolvedPaths: ResolvedPaths }, CLOSED),
|
|
82
83
|
Type.Object({ runId: RouteRunId, action: Type.Literal("publish") }, CLOSED),
|
|
83
|
-
]);
|
|
84
|
+
], { type: "object" });
|
|
84
85
|
const CreateParameters = Type.Union([
|
|
85
86
|
Type.Object({ runId: RouteRunId, action: Type.Literal("prepare") }, CLOSED),
|
|
86
87
|
Type.Object({ runId: RouteRunId, action: Type.Literal("inspect") }, CLOSED),
|
|
@@ -93,7 +94,7 @@ const CreateParameters = Type.Union([
|
|
|
93
94
|
title: Type.String({ minLength: 1, maxLength: 256 }),
|
|
94
95
|
body: Type.String({ maxLength: 65_536 }),
|
|
95
96
|
}, CLOSED),
|
|
96
|
-
]);
|
|
97
|
+
], { type: "object" });
|
|
97
98
|
const SweepParameters = Type.Union([
|
|
98
99
|
Type.Object({ runId: RouteRunId, action: Type.Literal("start") }, CLOSED),
|
|
99
100
|
Type.Object({ runId: RouteRunId, action: Type.Literal("resume") }, CLOSED),
|
|
@@ -110,17 +111,17 @@ const SweepParameters = Type.Union([
|
|
|
110
111
|
Type.Object({ runId: RouteRunId, action: Type.Literal("refresh"), guard: SweepGuard }, CLOSED),
|
|
111
112
|
Type.Object({ runId: RouteRunId, action: Type.Literal("resolve"), guard: SweepGuard }, CLOSED),
|
|
112
113
|
Type.Object({ runId: RouteRunId, action: Type.Literal("finalize"), guard: SweepGuard, checks: SweepChecks }, CLOSED),
|
|
113
|
-
]);
|
|
114
|
+
], { type: "object" });
|
|
114
115
|
const WorkParameters = Type.Union([
|
|
115
116
|
Type.Object({ runId: RouteRunId, action: Type.Literal("inspect") }, CLOSED),
|
|
116
117
|
Type.Object({ runId: RouteRunId, action: Type.Literal("commit"), ownedPaths: OwnedPaths, message: Type.String({ minLength: 1, maxLength: 256 }) }, CLOSED),
|
|
117
118
|
Type.Object({ runId: RouteRunId, action: Type.Literal("validate"), checks: SweepChecks }, CLOSED),
|
|
118
119
|
Type.Object({ runId: RouteRunId, action: Type.Literal("publish") }, CLOSED),
|
|
119
|
-
]);
|
|
120
|
+
], { type: "object" });
|
|
120
121
|
const FixCiParameters = Type.Union([
|
|
121
122
|
Type.Object({ runId: RouteRunId, action: Type.Literal("collect") }, CLOSED),
|
|
122
123
|
Type.Object({ runId: RouteRunId, action: Type.Literal("publish") }, CLOSED),
|
|
123
|
-
]);
|
|
124
|
+
], { type: "object" });
|
|
124
125
|
|
|
125
126
|
type UpdateBranchWorkflow = Pick<PullRequestBranchUpdater, "state" | "recoveryLaunchAction" | "rebase" | "continue" | "publish">;
|
|
126
127
|
type CreateWorkflow = Pick<PullRequestCreator, "state" | "prepare" | "inspect" | "commit" | "verify" | "push" | "publish">;
|
package/package.json
CHANGED