@venizia/ignis-docs 0.0.6-2 → 0.0.7-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/README.md +125 -388
- package/dist/mcp-server/common/config.d.ts +0 -21
- package/dist/mcp-server/common/config.d.ts.map +1 -1
- package/dist/mcp-server/common/config.js +1 -36
- package/dist/mcp-server/common/config.js.map +1 -1
- package/dist/mcp-server/helpers/docs.helper.d.ts +0 -24
- package/dist/mcp-server/helpers/docs.helper.d.ts.map +1 -1
- package/dist/mcp-server/helpers/docs.helper.js +0 -25
- package/dist/mcp-server/helpers/docs.helper.js.map +1 -1
- package/dist/mcp-server/helpers/github.helper.d.ts +0 -13
- package/dist/mcp-server/helpers/github.helper.d.ts.map +1 -1
- package/dist/mcp-server/helpers/github.helper.js +3 -20
- package/dist/mcp-server/helpers/github.helper.js.map +1 -1
- package/dist/mcp-server/index.js +1 -20
- package/dist/mcp-server/index.js.map +1 -1
- package/dist/mcp-server/tools/base.tool.d.ts +4 -85
- package/dist/mcp-server/tools/base.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/base.tool.js +1 -38
- package/dist/mcp-server/tools/base.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/get-document-content.tool.d.ts +8 -2
- package/dist/mcp-server/tools/docs/get-document-content.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/get-document-content.tool.js +1 -10
- package/dist/mcp-server/tools/docs/get-document-content.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/get-document-metadata.tool.d.ts +13 -2
- package/dist/mcp-server/tools/docs/get-document-metadata.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/get-document-metadata.tool.js +1 -10
- package/dist/mcp-server/tools/docs/get-document-metadata.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/get-package-overview.tool.d.ts +16 -8
- package/dist/mcp-server/tools/docs/get-package-overview.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/get-package-overview.tool.js +2 -25
- package/dist/mcp-server/tools/docs/get-package-overview.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/list-categories.tool.d.ts +5 -2
- package/dist/mcp-server/tools/docs/list-categories.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/list-categories.tool.js +1 -10
- package/dist/mcp-server/tools/docs/list-categories.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/list-documents.tool.d.ts +11 -2
- package/dist/mcp-server/tools/docs/list-documents.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/list-documents.tool.js +1 -10
- package/dist/mcp-server/tools/docs/list-documents.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/search-documents.tool.d.ts +13 -2
- package/dist/mcp-server/tools/docs/search-documents.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/search-documents.tool.js +1 -10
- package/dist/mcp-server/tools/docs/search-documents.tool.js.map +1 -1
- package/dist/mcp-server/tools/github/list-project-files.tool.d.ts +9 -2
- package/dist/mcp-server/tools/github/list-project-files.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/github/list-project-files.tool.js +1 -10
- package/dist/mcp-server/tools/github/list-project-files.tool.js.map +1 -1
- package/dist/mcp-server/tools/github/search-code.tool.d.ts +16 -2
- package/dist/mcp-server/tools/github/search-code.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/github/search-code.tool.js +2 -14
- package/dist/mcp-server/tools/github/search-code.tool.js.map +1 -1
- package/dist/mcp-server/tools/github/verify-dependencies.tool.d.ts +19 -6
- package/dist/mcp-server/tools/github/verify-dependencies.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/github/verify-dependencies.tool.js +2 -19
- package/dist/mcp-server/tools/github/verify-dependencies.tool.js.map +1 -1
- package/dist/mcp-server/tools/github/view-source-file.tool.d.ts +8 -2
- package/dist/mcp-server/tools/github/view-source-file.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/github/view-source-file.tool.js +1 -10
- package/dist/mcp-server/tools/github/view-source-file.tool.js.map +1 -1
- package/dist/mcp-server/tools/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/index.js +0 -2
- package/dist/mcp-server/tools/index.js.map +1 -1
- package/package.json +68 -54
- package/wiki/best-practices/api-usage-examples.md +7 -5
- package/wiki/best-practices/code-style-standards/advanced-patterns.md +1 -1
- package/wiki/best-practices/code-style-standards/constants-configuration.md +1 -1
- package/wiki/best-practices/code-style-standards/control-flow.md +1 -1
- package/wiki/best-practices/code-style-standards/function-patterns.md +1 -1
- package/wiki/best-practices/common-pitfalls.md +1 -1
- package/wiki/best-practices/data-modeling.md +33 -1
- package/wiki/best-practices/error-handling.md +7 -4
- package/wiki/best-practices/performance-optimization.md +1 -1
- package/wiki/best-practices/security-guidelines.md +5 -4
- package/wiki/guides/core-concepts/components-guide.md +1 -1
- package/wiki/guides/core-concepts/controllers.md +14 -8
- package/wiki/guides/core-concepts/persistent/models.md +32 -0
- package/wiki/guides/core-concepts/services.md +2 -1
- package/wiki/guides/get-started/5-minute-quickstart.md +1 -1
- package/wiki/guides/reference/mcp-docs-server.md +0 -134
- package/wiki/guides/tutorials/building-a-crud-api.md +2 -1
- package/wiki/guides/tutorials/complete-installation.md +2 -2
- package/wiki/guides/tutorials/ecommerce-api.md +3 -3
- package/wiki/guides/tutorials/realtime-chat.md +7 -6
- package/wiki/index.md +2 -1
- package/wiki/references/base/components.md +2 -1
- package/wiki/references/base/controllers.md +19 -12
- package/wiki/references/base/middlewares.md +2 -1
- package/wiki/references/base/models.md +11 -2
- package/wiki/references/base/services.md +2 -1
- package/wiki/references/components/authentication/api.md +525 -205
- package/wiki/references/components/authentication/errors.md +502 -105
- package/wiki/references/components/authentication/index.md +388 -75
- package/wiki/references/components/authentication/usage.md +428 -266
- package/wiki/references/components/authorization/api.md +1213 -0
- package/wiki/references/components/authorization/errors.md +387 -0
- package/wiki/references/components/authorization/index.md +712 -0
- package/wiki/references/components/authorization/usage.md +758 -0
- package/wiki/references/components/health-check.md +2 -1
- package/wiki/references/components/index.md +2 -0
- package/wiki/references/components/socket-io/index.md +9 -4
- package/wiki/references/components/socket-io/usage.md +1 -1
- package/wiki/references/components/static-asset/index.md +3 -5
- package/wiki/references/components/swagger.md +2 -1
- package/wiki/references/configuration/environment-variables.md +2 -1
- package/wiki/references/configuration/index.md +2 -1
- package/wiki/references/helpers/error/index.md +1 -1
- package/wiki/references/helpers/index.md +1 -0
- package/wiki/references/helpers/inversion/index.md +1 -1
- package/wiki/references/helpers/kafka/index.md +305 -0
- package/wiki/references/helpers/redis/index.md +2 -9
- package/wiki/references/quick-reference.md +3 -5
- package/wiki/references/utilities/crypto.md +2 -2
- package/wiki/references/utilities/date.md +5 -5
- package/wiki/references/utilities/index.md +3 -11
- package/wiki/references/utilities/jsx.md +4 -2
- package/wiki/references/utilities/module.md +1 -1
- package/wiki/references/utilities/parse.md +4 -4
- package/wiki/references/utilities/performance.md +2 -2
- package/wiki/references/utilities/promise.md +4 -4
- package/wiki/references/utilities/request.md +2 -2
|
@@ -5,9 +5,6 @@ const tools_1 = require("@mastra/core/tools");
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const base_tool_1 = require("../base.tool");
|
|
7
7
|
const helpers_1 = require("../../../mcp-server/helpers");
|
|
8
|
-
// ----------------------------------------------------------------------------
|
|
9
|
-
// DESCRIPTIONS
|
|
10
|
-
// ----------------------------------------------------------------------------
|
|
11
8
|
const TOOL_DESCRIPTION = `
|
|
12
9
|
Lists files and directories within the Ignis GitHub repository.
|
|
13
10
|
|
|
@@ -41,9 +38,6 @@ EXAMPLES:
|
|
|
41
38
|
- "packages" -> lists the contents of the 'packages' directory
|
|
42
39
|
- "packages/core/src" -> lists the source files of the core package
|
|
43
40
|
`;
|
|
44
|
-
// ----------------------------------------------------------------------------
|
|
45
|
-
// SCHEMAS
|
|
46
|
-
// ----------------------------------------------------------------------------
|
|
47
41
|
const InputSchema = zod_1.z.object({
|
|
48
42
|
directoryPath: zod_1.z.string().default('.').describe(DIRECTORY_PATH_DESCRIPTION),
|
|
49
43
|
});
|
|
@@ -55,9 +49,6 @@ const OutputSchema = zod_1.z.object({
|
|
|
55
49
|
.describe('A list of subdirectory names within the specified directory.'),
|
|
56
50
|
error: zod_1.z.string().optional().describe('An error message if the directory could not be listed.'),
|
|
57
51
|
});
|
|
58
|
-
// ----------------------------------------------------------------------------
|
|
59
|
-
// TOOL CLASS
|
|
60
|
-
// ----------------------------------------------------------------------------
|
|
61
52
|
class ListProjectFilesTool extends base_tool_1.BaseTool {
|
|
62
53
|
constructor() {
|
|
63
54
|
super(...arguments);
|
|
@@ -90,7 +81,7 @@ class ListProjectFilesTool extends base_tool_1.BaseTool {
|
|
|
90
81
|
description: this.description,
|
|
91
82
|
inputSchema: this.inputSchema,
|
|
92
83
|
outputSchema: this.outputSchema,
|
|
93
|
-
execute: async (
|
|
84
|
+
execute: async (input) => this.execute(input),
|
|
94
85
|
});
|
|
95
86
|
}
|
|
96
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-project-files.tool.js","sourceRoot":"","sources":["../../../../mcp-server/tools/github/list-project-files.tool.ts"],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"list-project-files.tool.js","sourceRoot":"","sources":["../../../../mcp-server/tools/github/list-project-files.tool.ts"],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,6BAAwB;AACxB,4CAAwC;AACxC,kDAAoD;AAEpD,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAC;AAEF,MAAM,0BAA0B,GAAG;;;;;;;;CAQlC,CAAC;AAEF,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC;CAC5E,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,OAA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GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAExF,OAAO;YACL,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,KAAK;YACL,WAAW;SACZ,CAAC;IACJ,CAAC;IAED,OAAO;QACL,OAAO,IAAA,kBAAU,EAAC;YAChB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,OAAO,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;CACF;AAtCD,oDAsCC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { BaseTool
|
|
2
|
+
import { BaseTool } from '../base.tool';
|
|
3
3
|
declare const InputSchema: z.ZodObject<{
|
|
4
4
|
query: z.ZodString;
|
|
5
5
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -36,7 +36,21 @@ export declare class SearchCodeTool extends BaseTool<typeof InputSchema, typeof
|
|
|
36
36
|
rateLimitWarning: z.ZodOptional<z.ZodString>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
execute(opts: z.infer<typeof InputSchema>): Promise<z.infer<typeof OutputSchema>>;
|
|
39
|
-
getTool():
|
|
39
|
+
getTool(): import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<{
|
|
40
|
+
query: string;
|
|
41
|
+
limit: number;
|
|
42
|
+
}, {
|
|
43
|
+
query: string;
|
|
44
|
+
totalCount: number;
|
|
45
|
+
results: {
|
|
46
|
+
filePath: string;
|
|
47
|
+
fileName: string;
|
|
48
|
+
matchSnippet?: string | undefined;
|
|
49
|
+
url?: string | undefined;
|
|
50
|
+
}[];
|
|
51
|
+
error?: string | undefined;
|
|
52
|
+
rateLimitWarning?: string | undefined;
|
|
53
|
+
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "searchCode", unknown>;
|
|
40
54
|
}
|
|
41
55
|
export {};
|
|
42
56
|
//# sourceMappingURL=search-code.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-code.tool.d.ts","sourceRoot":"","sources":["../../../../mcp-server/tools/github/search-code.tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"search-code.tool.d.ts","sourceRoot":"","sources":["../../../../mcp-server/tools/github/search-code.tool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA2ExC,QAAA,MAAM,WAAW;;;iBASf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;iBAShB,CAAC;AAqBH,qBAAa,cAAe,SAAQ,QAAQ,CAAC,OAAO,WAAW,EAAE,OAAO,YAAY,CAAC;IACnF,QAAQ,CAAC,EAAE,gBAAgB;IAC3B,QAAQ,CAAC,WAAW,6uCAAoB;IACxC,QAAQ,CAAC,WAAW;;;sBAAe;IACnC,QAAQ,CAAC,YAAY;;;;;;;;;;;sBAAgB;IAE/B,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;IA8EvF,OAAO;;;;;;;;;;;;;;;CASR"}
|
|
@@ -6,9 +6,6 @@ const tools_1 = require("@mastra/core/tools");
|
|
|
6
6
|
const zod_1 = require("zod");
|
|
7
7
|
const base_tool_1 = require("../base.tool");
|
|
8
8
|
const helpers_1 = require("../../../mcp-server/helpers");
|
|
9
|
-
// ----------------------------------------------------------------------------
|
|
10
|
-
// DESCRIPTIONS
|
|
11
|
-
// ----------------------------------------------------------------------------
|
|
12
9
|
const TOOL_DESCRIPTION = `
|
|
13
10
|
Searches for code patterns, function names, class definitions, and keywords across the Ignis source code.
|
|
14
11
|
|
|
@@ -68,9 +65,6 @@ RECOMMENDATIONS:
|
|
|
68
65
|
- Use 15-20 for broader pattern searches
|
|
69
66
|
- Use ${common_1.MCPConfigs.codeSearch.maxLimit} when exploring all usages of a common term
|
|
70
67
|
`;
|
|
71
|
-
// ----------------------------------------------------------------------------
|
|
72
|
-
// SCHEMAS
|
|
73
|
-
// ----------------------------------------------------------------------------
|
|
74
68
|
const SearchResultSchema = zod_1.z.object({
|
|
75
69
|
filePath: zod_1.z.string().describe('Full file path from repository root. Use with viewSourceFile.'),
|
|
76
70
|
fileName: zod_1.z.string().describe('File name for quick reference.'),
|
|
@@ -101,9 +95,6 @@ const OutputSchema = zod_1.z.object({
|
|
|
101
95
|
.describe('Warning if approaching GitHub API rate limits.'),
|
|
102
96
|
});
|
|
103
97
|
/* eslint-enable @typescript-eslint/naming-convention */
|
|
104
|
-
// ----------------------------------------------------------------------------
|
|
105
|
-
// TOOL CLASS
|
|
106
|
-
// ----------------------------------------------------------------------------
|
|
107
98
|
class SearchCodeTool extends base_tool_1.BaseTool {
|
|
108
99
|
constructor() {
|
|
109
100
|
super(...arguments);
|
|
@@ -115,7 +106,6 @@ class SearchCodeTool extends base_tool_1.BaseTool {
|
|
|
115
106
|
async execute(opts) {
|
|
116
107
|
const { query, limit } = opts;
|
|
117
108
|
const { apiBase, repoOwner, repoName, userAgent } = common_1.MCPConfigs.github;
|
|
118
|
-
// Build GitHub code search query
|
|
119
109
|
const searchQuery = `${query} repo:${repoOwner}/${repoName}`;
|
|
120
110
|
const url = `${apiBase}/search/code?q=${encodeURIComponent(searchQuery)}&per_page=${limit}`;
|
|
121
111
|
helpers_1.Logger.debug(`Searching code on GitHub: ${url}`);
|
|
@@ -123,10 +113,9 @@ class SearchCodeTool extends base_tool_1.BaseTool {
|
|
|
123
113
|
const response = await fetch(url, {
|
|
124
114
|
headers: {
|
|
125
115
|
'User-Agent': userAgent,
|
|
126
|
-
Accept: 'application/vnd.github.text-match+json',
|
|
116
|
+
Accept: 'application/vnd.github.text-match+json',
|
|
127
117
|
},
|
|
128
118
|
});
|
|
129
|
-
// Check rate limit headers
|
|
130
119
|
const rateLimitRemaining = response.headers.get('X-RateLimit-Remaining');
|
|
131
120
|
const rateLimitWarning = rateLimitRemaining &&
|
|
132
121
|
parseInt(rateLimitRemaining) < common_1.MCPConfigs.codeSearch.rateLimitWarningThreshold
|
|
@@ -154,7 +143,6 @@ class SearchCodeTool extends base_tool_1.BaseTool {
|
|
|
154
143
|
}
|
|
155
144
|
const data = (await response.json());
|
|
156
145
|
const results = data.items.map(item => {
|
|
157
|
-
// Extract the best text match snippet
|
|
158
146
|
const matchSnippet = item.text_matches?.[0]?.fragment;
|
|
159
147
|
return {
|
|
160
148
|
filePath: item.path,
|
|
@@ -186,7 +174,7 @@ class SearchCodeTool extends base_tool_1.BaseTool {
|
|
|
186
174
|
description: this.description,
|
|
187
175
|
inputSchema: this.inputSchema,
|
|
188
176
|
outputSchema: this.outputSchema,
|
|
189
|
-
execute: async (
|
|
177
|
+
execute: async (input) => this.execute(input),
|
|
190
178
|
});
|
|
191
179
|
}
|
|
192
180
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-code.tool.js","sourceRoot":"","sources":["../../../../mcp-server/tools/github/search-code.tool.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AACjD,8CAAgD;AAChD,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"search-code.tool.js","sourceRoot":"","sources":["../../../../mcp-server/tools/github/search-code.tool.ts"],"names":[],"mappings":";;;AAAA,gDAAiD;AACjD,8CAAgD;AAChD,6BAAwB;AACxB,4CAAwC;AACxC,kDAA8C;AAE9C,MA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I,CAAC,IAAI;oBACnB,YAAY;oBACZ,GAAG,EAAE,IAAI,CAAC,QAAQ;iBACnB,CAAC;YACJ,CAAC,CAAC,CAAC;YAEH,OAAO;gBACL,KAAK;gBACL,UAAU,EAAE,IAAI,CAAC,WAAW;gBAC5B,OAAO;gBACP,gBAAgB;aACjB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,gBAAM,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;YACxD,OAAO;gBACL,KAAK;gBACL,UAAU,EAAE,CAAC;gBACb,OAAO,EAAE,EAAE;gBACX,KAAK,EAAE,kBAAkB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,EAAE;aACpF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO;QACL,OAAO,IAAA,kBAAU,EAAC;YAChB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,OAAO,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;CACF;AA7FD,wCA6FC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { BaseTool
|
|
2
|
+
import { BaseTool } from '../base.tool';
|
|
3
3
|
declare const InputSchema: z.ZodObject<{
|
|
4
4
|
packagePath: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
@@ -42,14 +42,27 @@ export declare class VerifyDependenciesTool extends BaseTool<typeof InputSchema,
|
|
|
42
42
|
error: z.ZodOptional<z.ZodString>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
private getLatestVersion;
|
|
45
|
-
/**
|
|
46
|
-
* Extracts a clean semver version from various version specifiers.
|
|
47
|
-
* Returns null for non-standard versions that can't be compared.
|
|
48
|
-
*/
|
|
49
45
|
private parseVersion;
|
|
50
46
|
private processDependencies;
|
|
51
47
|
execute(opts: z.infer<typeof InputSchema>): Promise<z.infer<typeof OutputSchema>>;
|
|
52
|
-
getTool():
|
|
48
|
+
getTool(): import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<{
|
|
49
|
+
packagePath: string;
|
|
50
|
+
}, {
|
|
51
|
+
packageName?: string | undefined;
|
|
52
|
+
dependencies?: {
|
|
53
|
+
name: string;
|
|
54
|
+
currentVersion: string;
|
|
55
|
+
latestVersion: string;
|
|
56
|
+
isOutdated: boolean;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
devDependencies?: {
|
|
59
|
+
name: string;
|
|
60
|
+
currentVersion: string;
|
|
61
|
+
latestVersion: string;
|
|
62
|
+
isOutdated: boolean;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
error?: string | undefined;
|
|
65
|
+
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "verifyDependencies", unknown>;
|
|
53
66
|
}
|
|
54
67
|
export {};
|
|
55
68
|
//# sourceMappingURL=verify-dependencies.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-dependencies.tool.d.ts","sourceRoot":"","sources":["../../../../mcp-server/tools/github/verify-dependencies.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"verify-dependencies.tool.d.ts","sourceRoot":"","sources":["../../../../mcp-server/tools/github/verify-dependencies.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA0CxC,QAAA,MAAM,WAAW;;iBAEf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;iBAKhB,CAAC;AAOH,qBAAa,sBAAuB,SAAQ,QAAQ,CAAC,OAAO,WAAW,EAAE,OAAO,YAAY,CAAC;IAC3F,QAAQ,CAAC,EAAE,wBAAwB;IACnC,QAAQ,CAAC,WAAW,02BAAoB;IACxC,QAAQ,CAAC,WAAW;;sBAAe;IACnC,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;sBAAgB;YAEvB,gBAAgB;IAe9B,OAAO,CAAC,YAAY;YAmBN,mBAAmB;IA8B3B,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;IA0BvF,OAAO;;;;;;;;;;;;;;;;;;CASR"}
|
|
@@ -5,9 +5,6 @@ const tools_1 = require("@mastra/core/tools");
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const base_tool_1 = require("../base.tool");
|
|
7
7
|
const helpers_1 = require("../../../mcp-server/helpers");
|
|
8
|
-
// ----------------------------------------------------------------------------
|
|
9
|
-
// DESCRIPTIONS
|
|
10
|
-
// ----------------------------------------------------------------------------
|
|
11
8
|
const TOOL_DESCRIPTION = `
|
|
12
9
|
Verifies dependencies of a package within the Ignis monorepo against NPM registry.
|
|
13
10
|
|
|
@@ -38,9 +35,6 @@ EXAMPLES:
|
|
|
38
35
|
- "packages/helpers"
|
|
39
36
|
- "examples/5-mins-qs"
|
|
40
37
|
`;
|
|
41
|
-
// ----------------------------------------------------------------------------
|
|
42
|
-
// SCHEMAS
|
|
43
|
-
// ----------------------------------------------------------------------------
|
|
44
38
|
const DependencyInfoSchema = zod_1.z.object({
|
|
45
39
|
name: zod_1.z.string(),
|
|
46
40
|
currentVersion: zod_1.z.string(),
|
|
@@ -56,9 +50,6 @@ const OutputSchema = zod_1.z.object({
|
|
|
56
50
|
devDependencies: zod_1.z.array(DependencyInfoSchema).optional(),
|
|
57
51
|
error: zod_1.z.string().optional(),
|
|
58
52
|
});
|
|
59
|
-
// ----------------------------------------------------------------------------
|
|
60
|
-
// TOOL CLASS
|
|
61
|
-
// ----------------------------------------------------------------------------
|
|
62
53
|
class VerifyDependenciesTool extends base_tool_1.BaseTool {
|
|
63
54
|
constructor() {
|
|
64
55
|
super(...arguments);
|
|
@@ -82,12 +73,7 @@ class VerifyDependenciesTool extends base_tool_1.BaseTool {
|
|
|
82
73
|
return 'unknown';
|
|
83
74
|
}
|
|
84
75
|
}
|
|
85
|
-
/**
|
|
86
|
-
* Extracts a clean semver version from various version specifiers.
|
|
87
|
-
* Returns null for non-standard versions that can't be compared.
|
|
88
|
-
*/
|
|
89
76
|
parseVersion(opts) {
|
|
90
|
-
// Skip workspace, file, git, and URL references
|
|
91
77
|
if (opts.version.startsWith('workspace:') ||
|
|
92
78
|
opts.version.startsWith('file:') ||
|
|
93
79
|
opts.version.startsWith('git') ||
|
|
@@ -96,10 +82,8 @@ class VerifyDependenciesTool extends base_tool_1.BaseTool {
|
|
|
96
82
|
opts.version === 'latest') {
|
|
97
83
|
return null;
|
|
98
84
|
}
|
|
99
|
-
// Remove common prefixes: ^, ~, >=, >, <=, <, =
|
|
100
85
|
const cleaned = opts.version.replace(/^[\^~>=<]+/, '').trim();
|
|
101
|
-
//
|
|
102
|
-
// Just take the first version-like string
|
|
86
|
+
// Extract first semver-like string from potentially complex range expressions
|
|
103
87
|
const semverMatch = cleaned.match(/(\d+\.\d+\.\d+(?:-[\w.]+)?)/);
|
|
104
88
|
return semverMatch ? semverMatch[1] : null;
|
|
105
89
|
}
|
|
@@ -110,7 +94,6 @@ class VerifyDependenciesTool extends base_tool_1.BaseTool {
|
|
|
110
94
|
const results = [];
|
|
111
95
|
for (const [name, version] of Object.entries(opts.deps)) {
|
|
112
96
|
const parsedVersion = this.parseVersion({ version });
|
|
113
|
-
// Skip non-standard versions
|
|
114
97
|
if (!parsedVersion) {
|
|
115
98
|
results.push({
|
|
116
99
|
name,
|
|
@@ -159,7 +142,7 @@ class VerifyDependenciesTool extends base_tool_1.BaseTool {
|
|
|
159
142
|
description: this.description,
|
|
160
143
|
inputSchema: this.inputSchema,
|
|
161
144
|
outputSchema: this.outputSchema,
|
|
162
|
-
execute: async (
|
|
145
|
+
execute: async (input) => this.execute(input),
|
|
163
146
|
});
|
|
164
147
|
}
|
|
165
148
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-dependencies.tool.js","sourceRoot":"","sources":["../../../../mcp-server/tools/github/verify-dependencies.tool.ts"],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"verify-dependencies.tool.js","sourceRoot":"","sources":["../../../../mcp-server/tools/github/verify-dependencies.tool.ts"],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,6BAAwB;AACxB,4CAAwC;AACxC,kDAA4D;AAE5D,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAC;AAEF,MAAM,wBAAwB,GAAG;;;;;;;;CAQhC,CAAC;AAEF,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAC3D,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,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K,EAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;CACF;AAzGD,wDAyGC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { BaseTool
|
|
2
|
+
import { BaseTool } from '../base.tool';
|
|
3
3
|
declare const InputSchema: z.ZodObject<{
|
|
4
4
|
filePath: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
@@ -20,7 +20,13 @@ export declare class ViewSourceFileTool extends BaseTool<typeof InputSchema, typ
|
|
|
20
20
|
error: z.ZodOptional<z.ZodString>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
execute(opts: z.infer<typeof InputSchema>): Promise<z.infer<typeof OutputSchema>>;
|
|
23
|
-
getTool():
|
|
23
|
+
getTool(): import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).Tool<{
|
|
24
|
+
filePath: string;
|
|
25
|
+
}, {
|
|
26
|
+
filePath: string;
|
|
27
|
+
content?: string | undefined;
|
|
28
|
+
error?: string | undefined;
|
|
29
|
+
}, unknown, unknown, import("@mastra/core/tools", { with: { "resolution-mode": "import" } }).ToolExecutionContext<unknown, unknown, unknown>, "viewSourceFile", unknown>;
|
|
24
30
|
}
|
|
25
31
|
export {};
|
|
26
32
|
//# sourceMappingURL=view-source-file.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-source-file.tool.d.ts","sourceRoot":"","sources":["../../../../mcp-server/tools/github/view-source-file.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"view-source-file.tool.d.ts","sourceRoot":"","sources":["../../../../mcp-server/tools/github/view-source-file.tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAoCxC,QAAA,MAAM,WAAW;;iBAEf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;iBAOhB,CAAC;AAEH,qBAAa,kBAAmB,SAAQ,QAAQ,CAAC,OAAO,WAAW,EAAE,OAAO,YAAY,CAAC;IACvF,QAAQ,CAAC,EAAE,oBAAoB;IAC/B,QAAQ,CAAC,WAAW,kwBAAoB;IACxC,QAAQ,CAAC,WAAW;;sBAAe;IACnC,QAAQ,CAAC,YAAY;;;;sBAAgB;IAE/B,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;IAgBvF,OAAO;;;;;;;CASR"}
|
|
@@ -5,9 +5,6 @@ const tools_1 = require("@mastra/core/tools");
|
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const base_tool_1 = require("../base.tool");
|
|
7
7
|
const helpers_1 = require("../../../mcp-server/helpers");
|
|
8
|
-
// ----------------------------------------------------------------------------
|
|
9
|
-
// DESCRIPTIONS
|
|
10
|
-
// ----------------------------------------------------------------------------
|
|
11
8
|
const TOOL_DESCRIPTION = `
|
|
12
9
|
Retrieves the full source code content of a specific file from the Ignis GitHub repository.
|
|
13
10
|
|
|
@@ -39,9 +36,6 @@ EXAMPLES:
|
|
|
39
36
|
- "examples/5-mins-qs/src/index.ts"
|
|
40
37
|
- "package.json"
|
|
41
38
|
`;
|
|
42
|
-
// ----------------------------------------------------------------------------
|
|
43
|
-
// SCHEMAS
|
|
44
|
-
// ----------------------------------------------------------------------------
|
|
45
39
|
const InputSchema = zod_1.z.object({
|
|
46
40
|
filePath: zod_1.z.string().min(1).describe(FILE_PATH_DESCRIPTION),
|
|
47
41
|
});
|
|
@@ -53,9 +47,6 @@ const OutputSchema = zod_1.z.object({
|
|
|
53
47
|
.optional()
|
|
54
48
|
.describe('An error message if the file could not be read (e.g., not found).'),
|
|
55
49
|
});
|
|
56
|
-
// ----------------------------------------------------------------------------
|
|
57
|
-
// TOOL CLASS
|
|
58
|
-
// ----------------------------------------------------------------------------
|
|
59
50
|
class ViewSourceFileTool extends base_tool_1.BaseTool {
|
|
60
51
|
constructor() {
|
|
61
52
|
super(...arguments);
|
|
@@ -83,7 +74,7 @@ class ViewSourceFileTool extends base_tool_1.BaseTool {
|
|
|
83
74
|
description: this.description,
|
|
84
75
|
inputSchema: this.inputSchema,
|
|
85
76
|
outputSchema: this.outputSchema,
|
|
86
|
-
execute: async (
|
|
77
|
+
execute: async (input) => this.execute(input),
|
|
87
78
|
});
|
|
88
79
|
}
|
|
89
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-source-file.tool.js","sourceRoot":"","sources":["../../../../mcp-server/tools/github/view-source-file.tool.ts"],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"view-source-file.tool.js","sourceRoot":"","sources":["../../../../mcp-server/tools/github/view-source-file.tool.ts"],"names":[],"mappings":";;;AAAA,8CAAgD;AAChD,6BAAwB;AACxB,4CAAwC;AACxC,kDAAoD;AAEpD,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;CAiBxB,CAAC;AAEF,MAAM,qBAAqB,GAAG;;;;;;;;;;;;CAY7B,CAAC;AAEF,MAAM,WAAW,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAC5D,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACpF,KAAK,EAAE,OAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,mEAAmE,CAAC;CACjF,CAAC,CAAC;AAEH,MAAa,kBAAmB,SAAQ,oBAAiD;IAAzF;;QACW,OAAE,GAAG,gBAAgB,CAAC;QACtB,gBAAW,GAAG,gBAAgB,CAAC;QAC/B,gBAAW,GAAG,WAAW,CAAC;QAC1B,iBAAY,GAAG,YAAY,CAAC;IA2BvC,CAAC;IAzBC,KAAK,CAAC,OAAO,CAAC,IAAiC;QAC7C,MAAM,MAAM,GAAG,MAAM,sBAAY,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE9E,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,OAAO;gBACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB,CAAC;QACJ,CAAC;QAED,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,OAAO,EAAE,MAAM,CAAC,OAAO;SACxB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,OAAO,IAAA,kBAAU,EAAC;YAChB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,OAAO,EAAE,KAAK,EAAC,KAAK,EAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;SAC5C,CAAC,CAAC;IACL,CAAC;CACF;AA/BD,gDA+BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../mcp-server/tools/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../mcp-server/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
@@ -14,9 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// Base class
|
|
18
17
|
__exportStar(require("./base.tool"), exports);
|
|
19
|
-
// Tool classes
|
|
20
18
|
__exportStar(require("./docs"), exports);
|
|
21
19
|
__exportStar(require("./github"), exports);
|
|
22
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../mcp-server/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../mcp-server/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,yCAAuB;AACvB,2CAAyB"}
|
package/package.json
CHANGED
|
@@ -1,34 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ignis-docs",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.7-0",
|
|
4
|
+
"description": "Interactive documentation site and MCP (Model Context Protocol) server for the Ignis Framework. Includes a VitePress-powered documentation site with guides, API references, and best practices. Ships an MCP server (CLI: ignis-docs-mcp) with 11 tools for AI assistants to search docs, browse source code, verify dependencies, and access real-time framework knowledge. Built with Mastra MCP SDK and Fuse.js fuzzy search.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"ignis",
|
|
7
|
-
"documentation",
|
|
8
|
-
"docs",
|
|
9
|
-
"guide",
|
|
10
|
-
"wiki",
|
|
11
|
-
"examples",
|
|
12
|
-
"vitepress",
|
|
13
|
-
"mcp",
|
|
14
|
-
"model-context-protocol",
|
|
15
|
-
"mastra",
|
|
16
|
-
"mastra-mcp",
|
|
17
6
|
"ai",
|
|
18
|
-
"ai-
|
|
19
|
-
"llm-gateway",
|
|
20
|
-
"model-router",
|
|
7
|
+
"ai-assistant",
|
|
21
8
|
"ai-development",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
9
|
+
"ai-tools",
|
|
10
|
+
"api-docs",
|
|
11
|
+
"api-reference",
|
|
12
|
+
"bun",
|
|
13
|
+
"claude",
|
|
14
|
+
"claude-code",
|
|
24
15
|
"cli",
|
|
25
|
-
"
|
|
16
|
+
"cli-tool",
|
|
17
|
+
"code-search",
|
|
18
|
+
"copilot",
|
|
19
|
+
"cursor",
|
|
26
20
|
"dev-tools",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
21
|
+
"developer-tools",
|
|
22
|
+
"docs",
|
|
23
|
+
"documentation",
|
|
24
|
+
"examples",
|
|
25
|
+
"framework-docs",
|
|
26
|
+
"fuse.js",
|
|
27
|
+
"fuzzy-search",
|
|
28
|
+
"guide",
|
|
29
|
+
"ignis",
|
|
30
|
+
"llm",
|
|
31
|
+
"llm-tools",
|
|
32
|
+
"mastra",
|
|
33
|
+
"mastra-mcp",
|
|
34
|
+
"mcp",
|
|
35
|
+
"mcp-server",
|
|
36
|
+
"model-context-protocol",
|
|
37
|
+
"nodejs",
|
|
38
|
+
"static-site",
|
|
39
|
+
"tutorials",
|
|
40
|
+
"typescript",
|
|
41
|
+
"venizia",
|
|
42
|
+
"vitepress",
|
|
43
|
+
"wiki",
|
|
44
|
+
"windsurf"
|
|
29
45
|
],
|
|
46
|
+
"homepage": "https://venizia-ai.github.io/ignis",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/VENIZIA-AI/ignis.git",
|
|
50
|
+
"directory": "packages/docs"
|
|
51
|
+
},
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/VENIZIA-AI/ignis/issues"
|
|
54
|
+
},
|
|
55
|
+
"author": {
|
|
56
|
+
"name": "VENIZIA AI Developer",
|
|
57
|
+
"email": "developer@venizia.ai",
|
|
58
|
+
"url": "https://venizia.ai"
|
|
59
|
+
},
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"engines": {
|
|
62
|
+
"bun": ">=1.3"
|
|
63
|
+
},
|
|
30
64
|
"main": "./dist/mcp-server/index.js",
|
|
31
65
|
"types": "./dist/mcp-server/index.d.ts",
|
|
66
|
+
"bin": {
|
|
67
|
+
"ignis-docs-mcp": "./dist/mcp-server/index.js"
|
|
68
|
+
},
|
|
32
69
|
"exports": {
|
|
33
70
|
".": {
|
|
34
71
|
"types": "./dist/mcp-server/index.d.ts",
|
|
@@ -47,9 +84,6 @@
|
|
|
47
84
|
"default": "./dist/mcp-server/common/index.js"
|
|
48
85
|
}
|
|
49
86
|
},
|
|
50
|
-
"bin": {
|
|
51
|
-
"ignis-docs-mcp": "./dist/mcp-server/index.js"
|
|
52
|
-
},
|
|
53
87
|
"files": [
|
|
54
88
|
"README.md",
|
|
55
89
|
"LICENSE.md",
|
|
@@ -61,9 +95,6 @@
|
|
|
61
95
|
"publishConfig": {
|
|
62
96
|
"access": "public"
|
|
63
97
|
},
|
|
64
|
-
"engines": {
|
|
65
|
-
"bun": ">=1.3"
|
|
66
|
-
},
|
|
67
98
|
"scripts": {
|
|
68
99
|
"force-update": "sh ./scripts/force-update.sh",
|
|
69
100
|
"eslint": "eslint --report-unused-disable-directives .",
|
|
@@ -83,24 +114,9 @@
|
|
|
83
114
|
"mcp:dev": "bun --watch mcp-server/index.ts",
|
|
84
115
|
"prepublishOnly": "bun run mcp:rebuild"
|
|
85
116
|
},
|
|
86
|
-
"repository": {
|
|
87
|
-
"type": "git",
|
|
88
|
-
"url": "git+https://github.com/VENIZIA-AI/ignis.git",
|
|
89
|
-
"directory": "packages/docs"
|
|
90
|
-
},
|
|
91
|
-
"author": {
|
|
92
|
-
"name": "VENIZIA AI Developer",
|
|
93
|
-
"email": "developer@venizia.ai",
|
|
94
|
-
"url": "https://venizia.ai"
|
|
95
|
-
},
|
|
96
|
-
"bugs": {
|
|
97
|
-
"url": "https://github.com/VENIZIA-AI/ignis/issues"
|
|
98
|
-
},
|
|
99
|
-
"homepage": "https://venizia-ai.github.io/ignis",
|
|
100
|
-
"license": "MIT",
|
|
101
117
|
"dependencies": {
|
|
102
|
-
"@mastra/core": "^
|
|
103
|
-
"@mastra/mcp": "^0.
|
|
118
|
+
"@mastra/core": "^1.5.0",
|
|
119
|
+
"@mastra/mcp": "^1.0.1",
|
|
104
120
|
"cytoscape": "^3.33.1",
|
|
105
121
|
"cytoscape-cose-bilkent": "^4.1.0",
|
|
106
122
|
"dayjs": "^1.11.19",
|
|
@@ -108,21 +124,19 @@
|
|
|
108
124
|
"fast-glob": "^3.3.3",
|
|
109
125
|
"fuse.js": "^7.1.0",
|
|
110
126
|
"gray-matter": "^4.0.3",
|
|
111
|
-
"zod": "^4.
|
|
127
|
+
"zod": "^4.3.6"
|
|
112
128
|
},
|
|
113
129
|
"devDependencies": {
|
|
114
|
-
"@braintree/sanitize-url": "^7.1.
|
|
115
|
-
"@types/bun": "^1.3.
|
|
116
|
-
"@types/glob": "^8.1.0",
|
|
130
|
+
"@braintree/sanitize-url": "^7.1.2",
|
|
131
|
+
"@types/bun": "^1.3.9",
|
|
117
132
|
"@venizia/dev-configs": "^0.0.6",
|
|
118
|
-
"eslint": "^9.
|
|
119
|
-
"
|
|
120
|
-
"prettier": "^3.6.2",
|
|
133
|
+
"eslint": "^9.39.3",
|
|
134
|
+
"prettier": "^3.8.1",
|
|
121
135
|
"tsc-alias": "^1.8.16",
|
|
122
|
-
"tsx": "^4.
|
|
123
|
-
"typescript": "^5.
|
|
136
|
+
"tsx": "^4.20.6",
|
|
137
|
+
"typescript": "^5.9.3",
|
|
124
138
|
"vitepress": "^1.6.4",
|
|
125
139
|
"vitepress-plugin-mermaid": "^2.0.17",
|
|
126
|
-
"vue": "^3.5.
|
|
140
|
+
"vue": "^3.5.28"
|
|
127
141
|
}
|
|
128
142
|
}
|
|
@@ -11,7 +11,8 @@ Use `@get`, `@post` decorators with `as const` route configs for full type safet
|
|
|
11
11
|
**`src/controllers/test/definitions.ts`**
|
|
12
12
|
```typescript
|
|
13
13
|
import { z } from '@hono/zod-openapi';
|
|
14
|
-
import { Authentication,
|
|
14
|
+
import { Authentication, jsonContent, jsonResponse } from '@venizia/ignis';
|
|
15
|
+
import { HTTP } from '@venizia/ignis-helpers';
|
|
15
16
|
|
|
16
17
|
// Define route configs as const for type inference
|
|
17
18
|
export const RouteConfigs = {
|
|
@@ -52,8 +53,8 @@ import {
|
|
|
52
53
|
get,
|
|
53
54
|
post,
|
|
54
55
|
TRouteContext,
|
|
55
|
-
HTTP,
|
|
56
56
|
} from '@venizia/ignis';
|
|
57
|
+
import { HTTP } from '@venizia/ignis-helpers';
|
|
57
58
|
import { RouteConfigs } from './definitions';
|
|
58
59
|
|
|
59
60
|
@controller({ path: '/test' })
|
|
@@ -90,7 +91,8 @@ You can also define routes manually within the controller's `binding()` method u
|
|
|
90
91
|
|
|
91
92
|
**`src/controllers/test/controller.ts`**
|
|
92
93
|
```typescript
|
|
93
|
-
import { BaseController, controller,
|
|
94
|
+
import { BaseController, controller, ValueOrPromise } from '@venizia/ignis';
|
|
95
|
+
import { HTTP } from '@venizia/ignis-helpers';
|
|
94
96
|
import { RouteConfigs } from './definitions';
|
|
95
97
|
|
|
96
98
|
@controller({ path: '/test' })
|
|
@@ -301,7 +303,7 @@ server.use('/api/*', rateLimiter({ maxRequests: 100 }));
|
|
|
301
303
|
### Middleware with Logging
|
|
302
304
|
|
|
303
305
|
```typescript
|
|
304
|
-
import { BaseHelper } from '@venizia/ignis';
|
|
306
|
+
import { BaseHelper } from '@venizia/ignis-helpers';
|
|
305
307
|
import { createMiddleware } from 'hono/factory';
|
|
306
308
|
|
|
307
309
|
export const requestLogger = (): MiddlewareHandler => {
|
|
@@ -496,7 +498,7 @@ Use `getError()` to throw structured errors that are automatically formatted by
|
|
|
496
498
|
### Throwing Errors
|
|
497
499
|
|
|
498
500
|
```typescript
|
|
499
|
-
import { getError, HTTP } from '@venizia/ignis';
|
|
501
|
+
import { getError, HTTP } from '@venizia/ignis-helpers';
|
|
500
502
|
|
|
501
503
|
// Basic error
|
|
502
504
|
throw getError({ message: 'Something went wrong' });
|
|
@@ -7,7 +7,7 @@ Advanced TypeScript patterns used throughout the Ignis framework.
|
|
|
7
7
|
Create reusable class extensions without deep inheritance:
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
import { TMixinTarget } from '@venizia/ignis';
|
|
10
|
+
import { TMixinTarget } from '@venizia/ignis-helpers';
|
|
11
11
|
|
|
12
12
|
export const LoggableMixin = <BaseClass extends TMixinTarget<Base>>(
|
|
13
13
|
baseClass: BaseClass,
|