midnight-mcp 0.1.0 → 0.1.2
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 +18 -9
- package/dist/resources/code.d.ts +5 -6
- package/dist/resources/code.js +5 -537
- package/dist/resources/content/code-content.d.ts +6 -0
- package/dist/resources/content/code-content.js +541 -0
- package/dist/resources/content/docs-content.d.ts +6 -0
- package/dist/resources/content/docs-content.js +897 -0
- package/dist/resources/content/index.d.ts +6 -0
- package/dist/resources/content/index.js +6 -0
- package/dist/resources/docs.d.ts +5 -6
- package/dist/resources/docs.js +5 -893
- package/dist/resources/index.d.ts +4 -4
- package/dist/resources/index.js +2 -2
- package/dist/server.d.ts +4 -0
- package/dist/server.js +19 -2
- package/dist/services/sampling.js +23 -2
- package/dist/tools/analyze.js +94 -56
- package/dist/tools/repository/constants.d.ts +19 -0
- package/dist/tools/repository/constants.js +103 -0
- package/dist/tools/repository/handlers.d.ts +180 -0
- package/dist/tools/repository/handlers.js +311 -0
- package/dist/tools/repository/index.d.ts +9 -0
- package/dist/tools/repository/index.js +13 -0
- package/dist/tools/repository/schemas.d.ts +111 -0
- package/dist/tools/repository/schemas.js +73 -0
- package/dist/tools/repository/tools.d.ts +7 -0
- package/dist/tools/repository/tools.js +237 -0
- package/dist/tools/repository.d.ts +3 -273
- package/dist/tools/repository.js +4 -700
- package/package.json +1 -1
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repository tool definitions
|
|
3
|
+
* MCP tool registration for repository-related operations
|
|
4
|
+
*/
|
|
5
|
+
import { getFile, listExamples, getLatestUpdates, getVersionInfo, checkBreakingChanges, getMigrationGuide, getFileAtVersion, compareSyntax, getLatestSyntax, } from "./handlers.js";
|
|
6
|
+
// Tool definitions for MCP
|
|
7
|
+
export const repositoryTools = [
|
|
8
|
+
{
|
|
9
|
+
name: "midnight-get-file",
|
|
10
|
+
description: "Retrieve a specific file from Midnight repositories. Use repository aliases like 'compact', 'midnight-js', 'counter', or 'bboard' for convenience.",
|
|
11
|
+
inputSchema: {
|
|
12
|
+
type: "object",
|
|
13
|
+
properties: {
|
|
14
|
+
repo: {
|
|
15
|
+
type: "string",
|
|
16
|
+
description: "Repository name (e.g., 'compact', 'midnight-js', 'example-counter')",
|
|
17
|
+
},
|
|
18
|
+
path: {
|
|
19
|
+
type: "string",
|
|
20
|
+
description: "File path within repository",
|
|
21
|
+
},
|
|
22
|
+
ref: {
|
|
23
|
+
type: "string",
|
|
24
|
+
description: "Branch, tag, or commit SHA (default: main)",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
required: ["repo", "path"],
|
|
28
|
+
},
|
|
29
|
+
annotations: {
|
|
30
|
+
readOnlyHint: true,
|
|
31
|
+
openWorldHint: true,
|
|
32
|
+
title: "Get Repository File",
|
|
33
|
+
},
|
|
34
|
+
handler: getFile,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "midnight-list-examples",
|
|
38
|
+
description: "List available Midnight example contracts and DApps with descriptions, complexity ratings, and key features.",
|
|
39
|
+
inputSchema: {
|
|
40
|
+
type: "object",
|
|
41
|
+
properties: {
|
|
42
|
+
category: {
|
|
43
|
+
type: "string",
|
|
44
|
+
enum: ["counter", "bboard", "token", "voting", "all"],
|
|
45
|
+
description: "Filter by example type (default: all)",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
required: [],
|
|
49
|
+
},
|
|
50
|
+
annotations: {
|
|
51
|
+
readOnlyHint: true,
|
|
52
|
+
idempotentHint: true,
|
|
53
|
+
title: "List Example Contracts",
|
|
54
|
+
},
|
|
55
|
+
handler: listExamples,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "midnight-get-latest-updates",
|
|
59
|
+
description: "Retrieve recent changes and commits across Midnight repositories. Useful for staying up-to-date with the latest developments.",
|
|
60
|
+
inputSchema: {
|
|
61
|
+
type: "object",
|
|
62
|
+
properties: {
|
|
63
|
+
since: {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "ISO date to fetch updates from (default: last 7 days)",
|
|
66
|
+
},
|
|
67
|
+
repos: {
|
|
68
|
+
type: "array",
|
|
69
|
+
items: { type: "string" },
|
|
70
|
+
description: "Specific repos to check (default: all configured repos)",
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
required: [],
|
|
74
|
+
},
|
|
75
|
+
annotations: {
|
|
76
|
+
readOnlyHint: true,
|
|
77
|
+
openWorldHint: true,
|
|
78
|
+
title: "Get Latest Updates",
|
|
79
|
+
},
|
|
80
|
+
handler: getLatestUpdates,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "midnight-get-version-info",
|
|
84
|
+
description: "Get the latest version, release notes, and recent breaking changes for a Midnight repository. Use this to ensure you're working with the latest implementation.",
|
|
85
|
+
inputSchema: {
|
|
86
|
+
type: "object",
|
|
87
|
+
properties: {
|
|
88
|
+
repo: {
|
|
89
|
+
type: "string",
|
|
90
|
+
description: "Repository name (e.g., 'compact', 'midnight-js', 'sdk')",
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
required: ["repo"],
|
|
94
|
+
},
|
|
95
|
+
annotations: {
|
|
96
|
+
readOnlyHint: true,
|
|
97
|
+
openWorldHint: true,
|
|
98
|
+
title: "Get Version Info",
|
|
99
|
+
},
|
|
100
|
+
handler: getVersionInfo,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "midnight-check-breaking-changes",
|
|
104
|
+
description: "Check if there are breaking changes between your current version and the latest release. Essential before upgrading dependencies.",
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: "object",
|
|
107
|
+
properties: {
|
|
108
|
+
repo: {
|
|
109
|
+
type: "string",
|
|
110
|
+
description: "Repository name (e.g., 'compact', 'midnight-js')",
|
|
111
|
+
},
|
|
112
|
+
currentVersion: {
|
|
113
|
+
type: "string",
|
|
114
|
+
description: "Version you're currently using (e.g., 'v1.0.0', '0.5.2')",
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
required: ["repo", "currentVersion"],
|
|
118
|
+
},
|
|
119
|
+
annotations: {
|
|
120
|
+
readOnlyHint: true,
|
|
121
|
+
openWorldHint: true,
|
|
122
|
+
title: "Check Breaking Changes",
|
|
123
|
+
},
|
|
124
|
+
handler: checkBreakingChanges,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "midnight-get-migration-guide",
|
|
128
|
+
description: "Get a detailed migration guide for upgrading between versions, including all breaking changes, deprecations, and recommended steps.",
|
|
129
|
+
inputSchema: {
|
|
130
|
+
type: "object",
|
|
131
|
+
properties: {
|
|
132
|
+
repo: {
|
|
133
|
+
type: "string",
|
|
134
|
+
description: "Repository name (e.g., 'compact', 'midnight-js')",
|
|
135
|
+
},
|
|
136
|
+
fromVersion: {
|
|
137
|
+
type: "string",
|
|
138
|
+
description: "Version you're migrating from",
|
|
139
|
+
},
|
|
140
|
+
toVersion: {
|
|
141
|
+
type: "string",
|
|
142
|
+
description: "Target version (default: latest stable)",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
required: ["repo", "fromVersion"],
|
|
146
|
+
},
|
|
147
|
+
annotations: {
|
|
148
|
+
readOnlyHint: true,
|
|
149
|
+
openWorldHint: true,
|
|
150
|
+
title: "Get Migration Guide",
|
|
151
|
+
},
|
|
152
|
+
handler: getMigrationGuide,
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: "midnight-get-file-at-version",
|
|
156
|
+
description: "Get the exact content of a file at a specific version. CRITICAL: Use this to ensure code recommendations match the user's version. Always prefer this over get-file when version accuracy matters.",
|
|
157
|
+
inputSchema: {
|
|
158
|
+
type: "object",
|
|
159
|
+
properties: {
|
|
160
|
+
repo: {
|
|
161
|
+
type: "string",
|
|
162
|
+
description: "Repository name (e.g., 'compact', 'midnight-js')",
|
|
163
|
+
},
|
|
164
|
+
path: {
|
|
165
|
+
type: "string",
|
|
166
|
+
description: "File path within repository",
|
|
167
|
+
},
|
|
168
|
+
version: {
|
|
169
|
+
type: "string",
|
|
170
|
+
description: "Version tag (e.g., 'v1.0.0') or branch (e.g., 'main')",
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
required: ["repo", "path", "version"],
|
|
174
|
+
},
|
|
175
|
+
annotations: {
|
|
176
|
+
readOnlyHint: true,
|
|
177
|
+
idempotentHint: true,
|
|
178
|
+
openWorldHint: true,
|
|
179
|
+
title: "Get File at Version",
|
|
180
|
+
},
|
|
181
|
+
handler: getFileAtVersion,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: "midnight-compare-syntax",
|
|
185
|
+
description: "Compare a file between two versions to see what changed. Use this before recommending code patterns to ensure they work with the user's version.",
|
|
186
|
+
inputSchema: {
|
|
187
|
+
type: "object",
|
|
188
|
+
properties: {
|
|
189
|
+
repo: {
|
|
190
|
+
type: "string",
|
|
191
|
+
description: "Repository name (e.g., 'compact')",
|
|
192
|
+
},
|
|
193
|
+
path: {
|
|
194
|
+
type: "string",
|
|
195
|
+
description: "File path to compare",
|
|
196
|
+
},
|
|
197
|
+
oldVersion: {
|
|
198
|
+
type: "string",
|
|
199
|
+
description: "Old version tag (e.g., 'v0.9.0')",
|
|
200
|
+
},
|
|
201
|
+
newVersion: {
|
|
202
|
+
type: "string",
|
|
203
|
+
description: "New version tag (default: latest stable)",
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
required: ["repo", "path", "oldVersion"],
|
|
207
|
+
},
|
|
208
|
+
annotations: {
|
|
209
|
+
readOnlyHint: true,
|
|
210
|
+
idempotentHint: true,
|
|
211
|
+
openWorldHint: true,
|
|
212
|
+
title: "Compare Syntax Between Versions",
|
|
213
|
+
},
|
|
214
|
+
handler: compareSyntax,
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: "midnight-get-latest-syntax",
|
|
218
|
+
description: "Get the authoritative syntax reference for Compact language at the latest version. Use this as the source of truth when writing or reviewing contracts to ensure they compile.",
|
|
219
|
+
inputSchema: {
|
|
220
|
+
type: "object",
|
|
221
|
+
properties: {
|
|
222
|
+
repo: {
|
|
223
|
+
type: "string",
|
|
224
|
+
description: "Repository name (default: 'compact')",
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
required: [],
|
|
228
|
+
},
|
|
229
|
+
annotations: {
|
|
230
|
+
readOnlyHint: true,
|
|
231
|
+
openWorldHint: true,
|
|
232
|
+
title: "Get Latest Syntax Reference",
|
|
233
|
+
},
|
|
234
|
+
handler: getLatestSyntax,
|
|
235
|
+
},
|
|
236
|
+
];
|
|
237
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -1,276 +1,6 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { ExtendedToolDefinition } from "../types/index.js";
|
|
3
|
-
export declare const GetFileInputSchema: z.ZodObject<{
|
|
4
|
-
repo: z.ZodString;
|
|
5
|
-
path: z.ZodString;
|
|
6
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
path: string;
|
|
9
|
-
repo: string;
|
|
10
|
-
ref?: string | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
path: string;
|
|
13
|
-
repo: string;
|
|
14
|
-
ref?: string | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const ListExamplesInputSchema: z.ZodObject<{
|
|
17
|
-
category: z.ZodDefault<z.ZodOptional<z.ZodEnum<["counter", "bboard", "token", "voting", "all"]>>>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
category: "all" | "counter" | "bboard" | "token" | "voting";
|
|
20
|
-
}, {
|
|
21
|
-
category?: "all" | "counter" | "bboard" | "token" | "voting" | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const GetLatestUpdatesInputSchema: z.ZodObject<{
|
|
24
|
-
since: z.ZodOptional<z.ZodString>;
|
|
25
|
-
repos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
repos?: string[] | undefined;
|
|
28
|
-
since?: string | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
repos?: string[] | undefined;
|
|
31
|
-
since?: string | undefined;
|
|
32
|
-
}>;
|
|
33
|
-
export declare const GetVersionInfoInputSchema: z.ZodObject<{
|
|
34
|
-
repo: z.ZodString;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
repo: string;
|
|
37
|
-
}, {
|
|
38
|
-
repo: string;
|
|
39
|
-
}>;
|
|
40
|
-
export declare const CheckBreakingChangesInputSchema: z.ZodObject<{
|
|
41
|
-
repo: z.ZodString;
|
|
42
|
-
currentVersion: z.ZodString;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
repo: string;
|
|
45
|
-
currentVersion: string;
|
|
46
|
-
}, {
|
|
47
|
-
repo: string;
|
|
48
|
-
currentVersion: string;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const GetMigrationGuideInputSchema: z.ZodObject<{
|
|
51
|
-
repo: z.ZodString;
|
|
52
|
-
fromVersion: z.ZodString;
|
|
53
|
-
toVersion: z.ZodOptional<z.ZodString>;
|
|
54
|
-
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
repo: string;
|
|
56
|
-
fromVersion: string;
|
|
57
|
-
toVersion?: string | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
repo: string;
|
|
60
|
-
fromVersion: string;
|
|
61
|
-
toVersion?: string | undefined;
|
|
62
|
-
}>;
|
|
63
|
-
export declare const GetFileAtVersionInputSchema: z.ZodObject<{
|
|
64
|
-
repo: z.ZodString;
|
|
65
|
-
path: z.ZodString;
|
|
66
|
-
version: z.ZodString;
|
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
path: string;
|
|
69
|
-
repo: string;
|
|
70
|
-
version: string;
|
|
71
|
-
}, {
|
|
72
|
-
path: string;
|
|
73
|
-
repo: string;
|
|
74
|
-
version: string;
|
|
75
|
-
}>;
|
|
76
|
-
export declare const CompareSyntaxInputSchema: z.ZodObject<{
|
|
77
|
-
repo: z.ZodString;
|
|
78
|
-
path: z.ZodString;
|
|
79
|
-
oldVersion: z.ZodString;
|
|
80
|
-
newVersion: z.ZodOptional<z.ZodString>;
|
|
81
|
-
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
path: string;
|
|
83
|
-
repo: string;
|
|
84
|
-
oldVersion: string;
|
|
85
|
-
newVersion?: string | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
path: string;
|
|
88
|
-
repo: string;
|
|
89
|
-
oldVersion: string;
|
|
90
|
-
newVersion?: string | undefined;
|
|
91
|
-
}>;
|
|
92
|
-
export declare const GetLatestSyntaxInputSchema: z.ZodObject<{
|
|
93
|
-
repo: z.ZodDefault<z.ZodString>;
|
|
94
|
-
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
repo: string;
|
|
96
|
-
}, {
|
|
97
|
-
repo?: string | undefined;
|
|
98
|
-
}>;
|
|
99
|
-
export type GetFileInput = z.infer<typeof GetFileInputSchema>;
|
|
100
|
-
export type ListExamplesInput = z.infer<typeof ListExamplesInputSchema>;
|
|
101
|
-
export type GetLatestUpdatesInput = z.infer<typeof GetLatestUpdatesInputSchema>;
|
|
102
|
-
export type GetVersionInfoInput = z.infer<typeof GetVersionInfoInputSchema>;
|
|
103
|
-
export type CheckBreakingChangesInput = z.infer<typeof CheckBreakingChangesInputSchema>;
|
|
104
|
-
export type GetMigrationGuideInput = z.infer<typeof GetMigrationGuideInputSchema>;
|
|
105
|
-
export type GetFileAtVersionInput = z.infer<typeof GetFileAtVersionInputSchema>;
|
|
106
|
-
export type CompareSyntaxInput = z.infer<typeof CompareSyntaxInputSchema>;
|
|
107
|
-
export type GetLatestSyntaxInput = z.infer<typeof GetLatestSyntaxInputSchema>;
|
|
108
1
|
/**
|
|
109
|
-
*
|
|
2
|
+
* Repository tools
|
|
3
|
+
* Re-exports from modular structure for backward compatibility
|
|
110
4
|
*/
|
|
111
|
-
export
|
|
112
|
-
error: string;
|
|
113
|
-
suggestion: string;
|
|
114
|
-
repository?: undefined;
|
|
115
|
-
content?: undefined;
|
|
116
|
-
path?: undefined;
|
|
117
|
-
sha?: undefined;
|
|
118
|
-
size?: undefined;
|
|
119
|
-
url?: undefined;
|
|
120
|
-
} | {
|
|
121
|
-
error: string;
|
|
122
|
-
repository: string;
|
|
123
|
-
suggestion: string;
|
|
124
|
-
content?: undefined;
|
|
125
|
-
path?: undefined;
|
|
126
|
-
sha?: undefined;
|
|
127
|
-
size?: undefined;
|
|
128
|
-
url?: undefined;
|
|
129
|
-
} | {
|
|
130
|
-
content: string;
|
|
131
|
-
path: string;
|
|
132
|
-
repository: string;
|
|
133
|
-
sha: string;
|
|
134
|
-
size: number;
|
|
135
|
-
url: string;
|
|
136
|
-
error?: undefined;
|
|
137
|
-
suggestion?: undefined;
|
|
138
|
-
}>;
|
|
139
|
-
/**
|
|
140
|
-
* List available example contracts and DApps
|
|
141
|
-
*/
|
|
142
|
-
export declare function listExamples(input: ListExamplesInput): Promise<{
|
|
143
|
-
examples: {
|
|
144
|
-
name: string;
|
|
145
|
-
repository: string;
|
|
146
|
-
description: string;
|
|
147
|
-
complexity: "beginner" | "intermediate" | "advanced";
|
|
148
|
-
mainFile: string;
|
|
149
|
-
features: string[];
|
|
150
|
-
githubUrl: string;
|
|
151
|
-
}[];
|
|
152
|
-
totalCount: number;
|
|
153
|
-
categories: string[];
|
|
154
|
-
}>;
|
|
155
|
-
/**
|
|
156
|
-
* Retrieve recent changes across Midnight repositories
|
|
157
|
-
*/
|
|
158
|
-
export declare function getLatestUpdates(input: GetLatestUpdatesInput): Promise<{
|
|
159
|
-
summary: {
|
|
160
|
-
since: string;
|
|
161
|
-
totalCommits: number;
|
|
162
|
-
activeRepositories: number;
|
|
163
|
-
checkedRepositories: number;
|
|
164
|
-
};
|
|
165
|
-
updates: {
|
|
166
|
-
repository: string;
|
|
167
|
-
commitCount: number;
|
|
168
|
-
latestCommit: {
|
|
169
|
-
message: string;
|
|
170
|
-
date: string;
|
|
171
|
-
author: string;
|
|
172
|
-
url: string;
|
|
173
|
-
} | null;
|
|
174
|
-
recentCommits: {
|
|
175
|
-
message: string;
|
|
176
|
-
date: string;
|
|
177
|
-
sha: string;
|
|
178
|
-
}[];
|
|
179
|
-
}[];
|
|
180
|
-
}>;
|
|
181
|
-
/**
|
|
182
|
-
* Get version and release info for a repository
|
|
183
|
-
*/
|
|
184
|
-
export declare function getVersionInfo(input: GetVersionInfoInput): Promise<{
|
|
185
|
-
repository: string;
|
|
186
|
-
latestVersion: string;
|
|
187
|
-
latestStableVersion: string;
|
|
188
|
-
publishedAt: string | null;
|
|
189
|
-
releaseNotes: string | null;
|
|
190
|
-
recentReleases: {
|
|
191
|
-
version: string;
|
|
192
|
-
date: string;
|
|
193
|
-
isPrerelease: boolean;
|
|
194
|
-
url: string;
|
|
195
|
-
}[];
|
|
196
|
-
recentBreakingChanges: string[];
|
|
197
|
-
versionContext: string;
|
|
198
|
-
}>;
|
|
199
|
-
/**
|
|
200
|
-
* Check for breaking changes since a specific version
|
|
201
|
-
*/
|
|
202
|
-
export declare function checkBreakingChanges(input: CheckBreakingChangesInput): Promise<{
|
|
203
|
-
repository: string;
|
|
204
|
-
currentVersion: string;
|
|
205
|
-
latestVersion: string | null;
|
|
206
|
-
isOutdated: boolean;
|
|
207
|
-
versionsBehind: number;
|
|
208
|
-
hasBreakingChanges: boolean;
|
|
209
|
-
breakingChanges: string[];
|
|
210
|
-
recommendation: string;
|
|
211
|
-
}>;
|
|
212
|
-
/**
|
|
213
|
-
* Get migration guide between versions
|
|
214
|
-
*/
|
|
215
|
-
export declare function getMigrationGuide(input: GetMigrationGuideInput): Promise<{
|
|
216
|
-
repository: string;
|
|
217
|
-
from: string;
|
|
218
|
-
to: string;
|
|
219
|
-
summary: {
|
|
220
|
-
breakingChangesCount: number;
|
|
221
|
-
deprecationsCount: number;
|
|
222
|
-
newFeaturesCount: number;
|
|
223
|
-
};
|
|
224
|
-
breakingChanges: string[];
|
|
225
|
-
deprecations: string[];
|
|
226
|
-
newFeatures: string[];
|
|
227
|
-
migrationSteps: string[];
|
|
228
|
-
migrationDifficulty: string;
|
|
229
|
-
}>;
|
|
230
|
-
/**
|
|
231
|
-
* Get a file at a specific version - critical for version-accurate recommendations
|
|
232
|
-
*/
|
|
233
|
-
export declare function getFileAtVersion(input: GetFileAtVersionInput): Promise<{
|
|
234
|
-
repository: string;
|
|
235
|
-
path: string;
|
|
236
|
-
version: string;
|
|
237
|
-
content: string;
|
|
238
|
-
note: string;
|
|
239
|
-
}>;
|
|
240
|
-
/**
|
|
241
|
-
* Compare syntax between two versions - shows what changed
|
|
242
|
-
*/
|
|
243
|
-
export declare function compareSyntax(input: CompareSyntaxInput): Promise<{
|
|
244
|
-
repository: string;
|
|
245
|
-
path: string;
|
|
246
|
-
oldVersion: string;
|
|
247
|
-
newVersion: string;
|
|
248
|
-
hasDifferences: boolean;
|
|
249
|
-
oldContent: string | null;
|
|
250
|
-
newContent: string | null;
|
|
251
|
-
recommendation: string;
|
|
252
|
-
}>;
|
|
253
|
-
/**
|
|
254
|
-
* Get the latest syntax reference for Compact language
|
|
255
|
-
* This is the source of truth for writing valid, compilable contracts
|
|
256
|
-
*/
|
|
257
|
-
export declare function getLatestSyntax(input: GetLatestSyntaxInput): Promise<{
|
|
258
|
-
repository: string;
|
|
259
|
-
version: string;
|
|
260
|
-
warning: string;
|
|
261
|
-
syntaxFiles: never[];
|
|
262
|
-
examplePaths: string[];
|
|
263
|
-
note?: undefined;
|
|
264
|
-
} | {
|
|
265
|
-
repository: string;
|
|
266
|
-
version: string;
|
|
267
|
-
syntaxFiles: {
|
|
268
|
-
path: string;
|
|
269
|
-
content: string;
|
|
270
|
-
}[];
|
|
271
|
-
note: string;
|
|
272
|
-
warning?: undefined;
|
|
273
|
-
examplePaths?: undefined;
|
|
274
|
-
}>;
|
|
275
|
-
export declare const repositoryTools: ExtendedToolDefinition[];
|
|
5
|
+
export * from "./repository/index.js";
|
|
276
6
|
//# sourceMappingURL=repository.d.ts.map
|