@bridge-ds/mcp 0.4.0 → 0.5.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/branches.d.ts +10 -5
- package/dist/{chunk-NYFH322K.js → chunk-MHCXMHCL.js} +1026 -114
- package/dist/{chunk-7DBLDJIL.js → chunk-QTO4EP6V.js} +5 -1
- package/dist/explorations.d.ts +6 -1
- package/dist/index.js +2 -2
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +4 -2
- package/dist/ops.d.ts +3 -0
- package/dist/pieces.d.ts +122 -0
- package/dist/{src-2YRRAUUM.js → src-DHJOM5PQ.js} +1 -1
- package/dist/studio.d.ts +12 -6
- package/package.json +3 -3
package/dist/branches.d.ts
CHANGED
|
@@ -9,8 +9,16 @@ export declare const RIGHTS: {
|
|
|
9
9
|
readonly draft: "Pull requests: read and write (you must be the author, as in Studio)";
|
|
10
10
|
readonly docs: "Contents and Pull requests: read and write";
|
|
11
11
|
};
|
|
12
|
+
export declare function reader(ctx: BridgeContext): Promise<GitHubClient>;
|
|
13
|
+
/**
|
|
14
|
+
* A client for writes on a branch someone already opened (any name, never a protected branch): the token is required,
|
|
15
|
+
* with the rights `need` names, so the error says exactly what to add.
|
|
16
|
+
*/
|
|
17
|
+
export declare function writer(ctx: BridgeContext, what: string, need: string): Promise<GitHubClient>;
|
|
12
18
|
/** 12, "#12" or a pull request link: the branch number. Throws how to fix it otherwise. */
|
|
13
19
|
export declare function branchNumber(input: number | string): number;
|
|
20
|
+
/** The viewer of the token, or null without one (or when GitHub does not say). */
|
|
21
|
+
export declare function viewerOf(ctx: BridgeContext, gh: GitHubClient): Promise<string | null>;
|
|
14
22
|
/** Everything Studio reads about one branch to paint its header and decide its actions. */
|
|
15
23
|
export declare function branchFacts(ctx: BridgeContext, gh: GitHubClient, n: number, viewer: string | null): Promise<{
|
|
16
24
|
config: BridgeConfig;
|
|
@@ -154,11 +162,8 @@ export declare function listProducts(ctx: BridgeContext): Promise<{
|
|
|
154
162
|
* Throws with the list when the name is unknown.
|
|
155
163
|
*/
|
|
156
164
|
export declare function resolveProduct(ctx: BridgeContext, name?: string | undefined): Promise<ProductConfig>;
|
|
157
|
-
/** Labels and a body line for a branch that starts work for a product
|
|
158
|
-
export
|
|
159
|
-
labels: string[];
|
|
160
|
-
line: string;
|
|
161
|
-
};
|
|
165
|
+
/** Labels and a body line for a branch that starts work for a product: the core rule Studio writes too. */
|
|
166
|
+
export { productMarks } from '@bridge-ds/core';
|
|
162
167
|
/**
|
|
163
168
|
* Try it in a product and share it with a product team: the preview of each product Vercel reported for this branch
|
|
164
169
|
* (opened with the Bridge toolbar on it), and the install command product teams use in a staging branch, with a
|