@bridge-ds/mcp 0.2.0 → 0.3.1
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/README.md +15 -12
- package/dist/{chunk-6JO2AG6X.js → chunk-I3TL76GK.js} +657 -78
- package/dist/{chunk-FJL6UTZG.js → chunk-X455XY4E.js} +418 -17
- package/dist/drafts.d.ts +4 -6
- package/dist/explorations.d.ts +87 -5
- package/dist/index.js +2 -2
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +16 -2
- package/dist/ops.d.ts +19 -1
- package/dist/server.d.ts +2 -1
- package/dist/{src-ABJPOTKE.js → src-XSBCZV4W.js} +1 -1
- package/package.json +3 -3
package/dist/lib.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BridgeContext,
|
|
3
|
+
DOCS_DRAFT_MODEL,
|
|
3
4
|
GitHubSource,
|
|
4
5
|
GitRefSource,
|
|
5
6
|
LocalSource,
|
|
6
7
|
VERSION,
|
|
8
|
+
anthropicReplyText,
|
|
9
|
+
anthropicRequest,
|
|
7
10
|
auditSnippet,
|
|
8
11
|
brand_exports,
|
|
9
12
|
core,
|
|
@@ -11,24 +14,31 @@ import {
|
|
|
11
14
|
detectConfig,
|
|
12
15
|
drafts_exports,
|
|
13
16
|
explorations_exports,
|
|
17
|
+
formatDocsJson,
|
|
14
18
|
history_exports,
|
|
19
|
+
mergeDocsDraft,
|
|
20
|
+
missingProse,
|
|
15
21
|
ops_exports,
|
|
16
22
|
optionsFromArgv,
|
|
23
|
+
parseDocsReply,
|
|
17
24
|
requests_exports,
|
|
18
25
|
serveStdio
|
|
19
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-I3TL76GK.js";
|
|
20
27
|
import {
|
|
21
28
|
CONFIG_FILE,
|
|
22
29
|
loadConfig,
|
|
23
30
|
toConfigJson
|
|
24
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-X455XY4E.js";
|
|
25
32
|
export {
|
|
26
33
|
BridgeContext,
|
|
27
34
|
CONFIG_FILE,
|
|
35
|
+
DOCS_DRAFT_MODEL,
|
|
28
36
|
GitHubSource,
|
|
29
37
|
GitRefSource,
|
|
30
38
|
LocalSource,
|
|
31
39
|
VERSION,
|
|
40
|
+
anthropicReplyText,
|
|
41
|
+
anthropicRequest,
|
|
32
42
|
auditSnippet,
|
|
33
43
|
brand_exports as brand,
|
|
34
44
|
core,
|
|
@@ -36,10 +46,14 @@ export {
|
|
|
36
46
|
detectConfig,
|
|
37
47
|
drafts_exports as drafts,
|
|
38
48
|
explorations_exports as explorations,
|
|
49
|
+
formatDocsJson,
|
|
39
50
|
history_exports as history,
|
|
51
|
+
mergeDocsDraft,
|
|
52
|
+
missingProse,
|
|
40
53
|
ops_exports as ops,
|
|
41
54
|
optionsFromArgv,
|
|
42
55
|
loadConfig as parseConfig,
|
|
56
|
+
parseDocsReply,
|
|
43
57
|
requests_exports as requests,
|
|
44
58
|
serveStdio,
|
|
45
59
|
toConfigJson
|
package/dist/ops.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ScaffoldInput } from './components.js';
|
|
2
2
|
import type { BridgeContext } from './context.js';
|
|
3
|
+
import { type BridgeConfig, type GitHubClient } from '@bridge-ds/core';
|
|
3
4
|
import { type Combo, type PairInput, type TokenEdit, type TokenSet } from './core-adapter.js';
|
|
4
5
|
/** Accepts `color.text.muted`, `--color-text-muted` or `var(--color-text-muted)`. */
|
|
5
6
|
export declare function normalizeTokenPath(set: TokenSet, input: string): string;
|
|
@@ -15,7 +16,7 @@ export declare function getConfig(ctx: BridgeContext): Promise<{
|
|
|
15
16
|
};
|
|
16
17
|
modes: Record<string, import("@bridge-ds/core").ModeAxis>;
|
|
17
18
|
modeCombinations: number;
|
|
18
|
-
config:
|
|
19
|
+
config: BridgeConfig;
|
|
19
20
|
}>;
|
|
20
21
|
export declare function listTokens(ctx: BridgeContext, a: {
|
|
21
22
|
tier?: string;
|
|
@@ -553,6 +554,23 @@ export declare function getReview(ctx: BridgeContext, a: {
|
|
|
553
554
|
bump: import("@bridge-ds/core").SemverBump;
|
|
554
555
|
reasons: string[];
|
|
555
556
|
}>;
|
|
557
|
+
/**
|
|
558
|
+
* Who holds each role for a review, teams included: governance.owners through governance.rights, each GitHub team
|
|
559
|
+
* read from GitHub and named with its size ("@acme/design (4 people)"). An approval counts for a role when the
|
|
560
|
+
* reviewer is listed or in a listed team. A team that cannot be read is named with the reason, never dropped.
|
|
561
|
+
*/
|
|
562
|
+
export declare function reviewRoles(gh: GitHubClient, config: BridgeConfig, approvers: string[]): Promise<{
|
|
563
|
+
unreadableTeams?: string[] | undefined;
|
|
564
|
+
design: {
|
|
565
|
+
owners: string[];
|
|
566
|
+
approvedBy: string[];
|
|
567
|
+
};
|
|
568
|
+
tech: {
|
|
569
|
+
owners: string[];
|
|
570
|
+
approvedBy: string[];
|
|
571
|
+
};
|
|
572
|
+
ship: string;
|
|
573
|
+
}>;
|
|
556
574
|
export declare function reviewPr(ctx: BridgeContext, a: {
|
|
557
575
|
pr: number;
|
|
558
576
|
event: 'comment' | 'approve' | 'request_changes';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import type { BridgeContext } from './context.js';
|
|
3
|
-
|
|
3
|
+
/** The package version, injected at build time; tests and source runs fall back to "dev". */
|
|
4
|
+
export declare const VERSION: string;
|
|
4
5
|
export declare function createServer(ctx: BridgeContext): McpServer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bridge MCP server: lets Claude (Claude Code, Claude Desktop or any MCP client) read, check and propose changes to a DTCG design system repo through pull requests.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"build:package": "node ../../scripts/build-packages.mjs mcp"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@bridge-ds/core": "^0.
|
|
58
|
-
"@bridge-ds/visual": "^0.2.
|
|
57
|
+
"@bridge-ds/core": "^0.4.0",
|
|
58
|
+
"@bridge-ds/visual": "^0.2.2",
|
|
59
59
|
"@modelcontextprotocol/sdk": "1.31.0",
|
|
60
60
|
"typescript": "5.9.3",
|
|
61
61
|
"zod": "3.25.76"
|