@kenkaiiii/gg-protocol 7.0.0 → 7.1.0
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/index.d.ts +1 -0
- package/dist/pr.d.ts +25 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/pr.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** A GitHub pull request the agent opened, as the transcript's PR card shows it. */
|
|
2
|
+
export interface PrRef {
|
|
3
|
+
owner: string;
|
|
4
|
+
repo: string;
|
|
5
|
+
number: number;
|
|
6
|
+
url: string;
|
|
7
|
+
}
|
|
8
|
+
/** A PR card as the sidecar sends and persists it. `after` marks a card that
|
|
9
|
+
* moved to the end once the user answered it, with what they answered. */
|
|
10
|
+
export type PrCardData = PrRef & {
|
|
11
|
+
after?: "ship" | "changes";
|
|
12
|
+
};
|
|
13
|
+
/** A user message that answered a PR card, carried in the prompt's meta. */
|
|
14
|
+
export interface PrAnswer {
|
|
15
|
+
url: string;
|
|
16
|
+
answer: "ship" | "changes";
|
|
17
|
+
}
|
|
18
|
+
/** `GET /pr-status`: the PR's live title and state from `gh pr view`. */
|
|
19
|
+
export interface PrStatus {
|
|
20
|
+
title: string;
|
|
21
|
+
state: "OPEN" | "CLOSED" | "MERGED";
|
|
22
|
+
/** The PR's branch and the branch it merges into, when GitHub says. */
|
|
23
|
+
head?: string;
|
|
24
|
+
base?: string;
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenkaiiii/gg-protocol",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript types for the HTTP contract between the GG Coder desktop app and its engine sidecar. Types only, no runtime code.",
|
|
6
6
|
"author": "Ken Kai",
|