@daften/mealie-mcp 0.1.0-alpha.1 → 0.1.0-alpha.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/CHANGELOG.md +8 -1
- package/README.md +1 -1
- package/dist/tools/cookbooks.d.ts +15 -0
- package/dist/tools/cookbooks.d.ts.map +1 -0
- package/dist/tools/cookbooks.js +104 -0
- package/dist/tools/cookbooks.js.map +1 -0
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +11 -1
- package/dist/tools/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.0-alpha.2] - 2026-11-08
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Cookbook tools in a new `cookbooks` group: `list_cookbooks`, `get_cookbook`, `create_cookbook`, `update_cookbook` and `delete_cookbook`. Filters can be given as category, tag, tool or food IDs, or as a raw Mealie query filter.
|
|
15
|
+
|
|
10
16
|
## [0.1.0-alpha.1] - 2026-11-08
|
|
11
17
|
|
|
12
18
|
First prerelease, published to the `next` channel. Requires Mealie v3.29.0 or later.
|
|
@@ -18,5 +24,6 @@ First prerelease, published to the `next` channel. Requires Mealie v3.29.0 or la
|
|
|
18
24
|
- HTTP auth modes: per-caller API key (default), server-wide API key, and an opt-in login form.
|
|
19
25
|
- Encrypted SQLite token store so logins survive restarts and image updates.
|
|
20
26
|
|
|
21
|
-
[Unreleased]: https://github.com/daften/mealie-mcp/compare/v0.1.0-alpha.
|
|
27
|
+
[Unreleased]: https://github.com/daften/mealie-mcp/compare/v0.1.0-alpha.2...HEAD
|
|
28
|
+
[0.1.0-alpha.2]: https://github.com/daften/mealie-mcp/compare/v0.1.0-alpha.1...v0.1.0-alpha.2
|
|
22
29
|
[0.1.0-alpha.1]: https://github.com/daften/mealie-mcp/releases/tag/v0.1.0-alpha.1
|
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ See the [login form guide](docs/guide/login-form.md) before enabling it.
|
|
|
55
55
|
|
|
56
56
|
## Tools
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
58 tools in seven groups: `recipes`, `recipe-assets`, `ingredients`, `organizers`, `cookbooks`, `shopping`, `mealplans`. Limit them with `--preset minimal|default|full`, `--groups recipes,shopping` or `--read-only`. The [tool reference](docs/reference/tools.md) lists them all.
|
|
59
59
|
|
|
60
60
|
## Documentation
|
|
61
61
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
+
import type { MealieClient } from '../client.js';
|
|
3
|
+
type FilterArgs = {
|
|
4
|
+
categories?: string[];
|
|
5
|
+
tags?: string[];
|
|
6
|
+
tools?: string[];
|
|
7
|
+
foods?: string[];
|
|
8
|
+
match?: 'any' | 'all';
|
|
9
|
+
query_filter_string?: string;
|
|
10
|
+
};
|
|
11
|
+
/** Builds Mealie's `queryFilterString` from the structured fields; undefined when the caller gave no filter. */
|
|
12
|
+
export declare function buildQueryFilter(args: FilterArgs): string | undefined;
|
|
13
|
+
export declare function registerCookbookTools(server: McpServer, client: MealieClient): void;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=cookbooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookbooks.d.ts","sourceRoot":"","sources":["../../src/tools/cookbooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA0CjD,KAAK,UAAU,GAAG;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,gHAAgH;AAChH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAcrE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,GAAG,IAAI,CA6FnF"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DELETE_ANNOTATIONS, READ_ANNOTATIONS, UPDATE_ANNOTATIONS, WRITE_ANNOTATIONS } from './_annotations.js';
|
|
3
|
+
import { defineTool, idSchema, mergePut, paginationQuery, paginationShape, shapePage, } from './_helpers.js';
|
|
4
|
+
const COOKBOOK_PATH = '/households/cookbooks';
|
|
5
|
+
// The field names Mealie's own cookbook editor writes into a filter.
|
|
6
|
+
const FILTER_FIELDS = {
|
|
7
|
+
categories: 'recipe_category.id',
|
|
8
|
+
tags: 'tags.id',
|
|
9
|
+
tools: 'tools.id',
|
|
10
|
+
foods: 'recipe_ingredient.food.id',
|
|
11
|
+
};
|
|
12
|
+
const idList = (what, source) => z.array(idSchema).min(1).optional().describe(`${what} IDs, from ${source}`);
|
|
13
|
+
const filterShape = {
|
|
14
|
+
categories: idList('Category', 'list_categories'),
|
|
15
|
+
tags: idList('Tag', 'list_tags'),
|
|
16
|
+
tools: idList('Recipe tool', 'list_recipe_tools'),
|
|
17
|
+
foods: idList('Food', 'list_foods'),
|
|
18
|
+
match: z
|
|
19
|
+
.enum(['any', 'all'])
|
|
20
|
+
.optional()
|
|
21
|
+
.describe('Per filter: a recipe needs any one of the given IDs (default) or every one of them'),
|
|
22
|
+
query_filter_string: z
|
|
23
|
+
.string()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe('Raw Mealie query filter, for anything the fields above cannot say. Cannot be combined with them. An empty string removes the filter.'),
|
|
26
|
+
};
|
|
27
|
+
/** Builds Mealie's `queryFilterString` from the structured fields; undefined when the caller gave no filter. */
|
|
28
|
+
export function buildQueryFilter(args) {
|
|
29
|
+
const clauses = Object.keys(FILTER_FIELDS).flatMap((key) => {
|
|
30
|
+
const ids = args[key];
|
|
31
|
+
if (!ids?.length)
|
|
32
|
+
return [];
|
|
33
|
+
const operator = args.match === 'all' ? 'CONTAINS ALL' : 'IN';
|
|
34
|
+
return [`${FILTER_FIELDS[key]} ${operator} ${JSON.stringify(ids)}`];
|
|
35
|
+
});
|
|
36
|
+
if (args.query_filter_string !== undefined) {
|
|
37
|
+
if (clauses.length > 0) {
|
|
38
|
+
throw new Error('Give either query_filter_string or categories/tags/tools/foods, not both.');
|
|
39
|
+
}
|
|
40
|
+
return args.query_filter_string;
|
|
41
|
+
}
|
|
42
|
+
return clauses.length > 0 ? clauses.join(' AND ') : undefined;
|
|
43
|
+
}
|
|
44
|
+
export function registerCookbookTools(server, client) {
|
|
45
|
+
defineTool(server, 'list_cookbooks', {
|
|
46
|
+
title: 'List cookbooks',
|
|
47
|
+
description: 'Lists the household’s cookbooks. A cookbook is a saved recipe filter, so each one shows its query_filter_string.',
|
|
48
|
+
inputSchema: { ...paginationShape },
|
|
49
|
+
annotations: READ_ANNOTATIONS,
|
|
50
|
+
}, async (args) => shapePage(await client.get(COOKBOOK_PATH, paginationQuery(args))));
|
|
51
|
+
defineTool(server, 'get_cookbook', {
|
|
52
|
+
title: 'Get cookbook',
|
|
53
|
+
description: 'Gets one cookbook, including its recipe filter.',
|
|
54
|
+
inputSchema: { id: idSchema },
|
|
55
|
+
annotations: READ_ANNOTATIONS,
|
|
56
|
+
}, ({ id }) => client.get(`${COOKBOOK_PATH}/${id}`));
|
|
57
|
+
defineTool(server, 'create_cookbook', {
|
|
58
|
+
title: 'Create cookbook',
|
|
59
|
+
description: 'Creates a cookbook: a named, saved recipe filter. For a "Freezer menu" of everything tagged freezer, create or find the tag, then pass its ID in tags. Recipes are matched by the filter and never added by hand.',
|
|
60
|
+
inputSchema: {
|
|
61
|
+
name: z.string().min(1),
|
|
62
|
+
description: z.string().optional(),
|
|
63
|
+
public: z.boolean().optional().describe('Visible without signing in, when the household allows it'),
|
|
64
|
+
position: z.number().int().min(1).optional().describe('Order among cookbooks, starting at 1'),
|
|
65
|
+
...filterShape,
|
|
66
|
+
},
|
|
67
|
+
annotations: WRITE_ANNOTATIONS,
|
|
68
|
+
}, ({ name, description, public: isPublic, position, ...filter }) => client.post(COOKBOOK_PATH, {
|
|
69
|
+
name,
|
|
70
|
+
description: description ?? '',
|
|
71
|
+
public: isPublic ?? false,
|
|
72
|
+
position: position ?? 1,
|
|
73
|
+
queryFilterString: buildQueryFilter(filter) ?? '',
|
|
74
|
+
}));
|
|
75
|
+
defineTool(server, 'update_cookbook', {
|
|
76
|
+
title: 'Update cookbook',
|
|
77
|
+
description: 'Changes the given fields of a cookbook and leaves the others alone. Giving any filter field replaces the whole existing filter.',
|
|
78
|
+
inputSchema: {
|
|
79
|
+
id: idSchema,
|
|
80
|
+
name: z.string().min(1).optional(),
|
|
81
|
+
description: z.string().optional(),
|
|
82
|
+
public: z.boolean().optional(),
|
|
83
|
+
position: z.number().int().min(1).optional(),
|
|
84
|
+
...filterShape,
|
|
85
|
+
},
|
|
86
|
+
annotations: UPDATE_ANNOTATIONS,
|
|
87
|
+
}, ({ id, name, description, public: isPublic, position, ...filter }) => mergePut(client, `${COOKBOOK_PATH}/${id}`, {
|
|
88
|
+
name,
|
|
89
|
+
description,
|
|
90
|
+
public: isPublic,
|
|
91
|
+
position,
|
|
92
|
+
queryFilterString: buildQueryFilter(filter),
|
|
93
|
+
}));
|
|
94
|
+
defineTool(server, 'delete_cookbook', {
|
|
95
|
+
title: 'Delete cookbook',
|
|
96
|
+
description: 'Permanently deletes a cookbook. The recipes it showed are not touched.',
|
|
97
|
+
inputSchema: { id: idSchema },
|
|
98
|
+
annotations: DELETE_ANNOTATIONS,
|
|
99
|
+
}, async ({ id }) => {
|
|
100
|
+
await client.delete(`${COOKBOOK_PATH}/${id}`);
|
|
101
|
+
return { deleted: true, id };
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=cookbooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cookbooks.js","sourceRoot":"","sources":["../../src/tools/cookbooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChH,OAAO,EACL,UAAU,EACV,QAAQ,EACR,QAAQ,EAER,eAAe,EACf,eAAe,EACf,SAAS,GACV,MAAM,eAAe,CAAC;AAEvB,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,qEAAqE;AACrE,MAAM,aAAa,GAAG;IACpB,UAAU,EAAE,oBAAoB;IAChC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,2BAA2B;CAC1B,CAAC;AAEX,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,MAAc,EAAE,EAAE,CAC9C,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,GAAG,IAAI,cAAc,MAAM,EAAE,CAAC,CAAC;AAE9E,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACjD,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC;IACjD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY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;KAChC,EACD,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;QACf,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,aAAa,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;IAC/B,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
2
|
import type { MealieClient } from '../client.js';
|
|
3
|
-
export declare const TOOL_GROUPS: readonly ['recipes', 'recipe-assets', 'ingredients', 'organizers', 'shopping', 'mealplans'];
|
|
3
|
+
export declare const TOOL_GROUPS: readonly ['recipes', 'recipe-assets', 'ingredients', 'organizers', 'cookbooks', 'shopping', 'mealplans'];
|
|
4
4
|
export type ToolGroup = (typeof TOOL_GROUPS)[number];
|
|
5
5
|
export declare const PRESETS: {
|
|
6
6
|
minimal: "recipes"[];
|
|
7
7
|
default: ("mealplans" | "recipes" | "shopping")[];
|
|
8
|
-
full: ("ingredients" | "mealplans" | "organizers" | "recipe-assets" | "recipes" | "shopping")[];
|
|
8
|
+
full: ("cookbooks" | "ingredients" | "mealplans" | "organizers" | "recipe-assets" | "recipes" | "shopping")[];
|
|
9
9
|
};
|
|
10
10
|
export type PresetName = keyof typeof PRESETS;
|
|
11
11
|
export interface ToolFilterOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AASjD,eAAO,MAAM,WAAW,YACtB,SAAS,EACT,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,CACH,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,OAAO;;;;CAImB,CAAC;AAExC,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAC;AAE9C,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAMD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAc9D;AAYD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,GAAE,iBAAsB,GAAG,IAAI,CAW/G"}
|
package/dist/tools/index.js
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
import { registerCookbookTools } from './cookbooks.js';
|
|
1
2
|
import { registerIngredientTools } from './ingredients.js';
|
|
2
3
|
import { registerMealplanTools } from './mealplans.js';
|
|
3
4
|
import { registerOrganizerTools } from './organizers.js';
|
|
4
5
|
import { registerRecipeAssetTools } from './recipe-assets.js';
|
|
5
6
|
import { registerRecipeTools } from './recipes.js';
|
|
6
7
|
import { registerShoppingTools } from './shopping.js';
|
|
7
|
-
export const TOOL_GROUPS = [
|
|
8
|
+
export const TOOL_GROUPS = [
|
|
9
|
+
'recipes',
|
|
10
|
+
'recipe-assets',
|
|
11
|
+
'ingredients',
|
|
12
|
+
'organizers',
|
|
13
|
+
'cookbooks',
|
|
14
|
+
'shopping',
|
|
15
|
+
'mealplans',
|
|
16
|
+
];
|
|
8
17
|
export const PRESETS = {
|
|
9
18
|
minimal: ['recipes'],
|
|
10
19
|
default: ['recipes', 'shopping', 'mealplans'],
|
|
@@ -33,6 +42,7 @@ const REGISTRARS = {
|
|
|
33
42
|
'recipe-assets': registerRecipeAssetTools,
|
|
34
43
|
ingredients: registerIngredientTools,
|
|
35
44
|
organizers: registerOrganizerTools,
|
|
45
|
+
cookbooks: registerCookbookTools,
|
|
36
46
|
shopping: registerShoppingTools,
|
|
37
47
|
mealplans: registerMealplanTools,
|
|
38
48
|
};
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,CAAC,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,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AAS,EAAE,qBAAqB;CACjC,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAAC,MAAiB,EAAE,MAAoB,EAAE,OAAO,GAAsB,EAAE;IACvG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IACrD,+FAA+F;IAC/F,IAAI,MAAM,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,mBAAmB,MAAM,GAAG,CAAC,CAAC;IAC3G,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAE5F,MAAM,MAAM,GAAG,IAAI,GAAG,CAAY,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC;IACtF,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC7D,KAAK,MAAM,KAAK,IAAI,WAAW,EAAE,CAAC;QAChC,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;YAAE,UAAU,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daften/mealie-mcp",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "MCP server for Mealie recipe manager",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"hono": "^4.13.7"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@biomejs/biome": "2.5
|
|
67
|
+
"@biomejs/biome": "2.6.5",
|
|
68
68
|
"@types/node": "^26.0.0",
|
|
69
69
|
"@vitest/coverage-v8": "^5.0.0",
|
|
70
70
|
"dotenv-cli": "^11.0.0",
|
|
71
71
|
"simple-git-hooks": "^2.13.1",
|
|
72
72
|
"tsx": "^4.22.3",
|
|
73
73
|
"typescript": "^7.0.2",
|
|
74
|
-
"vitepress": "2.0.0-alpha.
|
|
74
|
+
"vitepress": "2.0.0-alpha.21",
|
|
75
75
|
"vitest": "^5.0.0",
|
|
76
76
|
"@types/express": "^5.0.0"
|
|
77
77
|
},
|