midnight-mcp 0.1.1 → 0.1.3

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.
@@ -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
- * Retrieve a specific file from Midnight repositories
2
+ * Repository tools
3
+ * Re-exports from modular structure for backward compatibility
110
4
  */
111
- export declare function getFile(input: GetFileInput): Promise<{
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