hoi4-agent-tools 4.20.3 → 4.22.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/CHANGELOG.md +40 -0
- package/README.md +2 -0
- package/dist/bin/setup.js +1 -0
- package/dist/bin/stdio.js +1 -0
- package/dist/hoi4_agent_tools/characters/write-operations.js +2 -2
- package/dist/hoi4_agent_tools/characters/write-plan.js +21 -205
- package/dist/hoi4_agent_tools/common-write/documented-lists.js +62 -0
- package/dist/hoi4_agent_tools/common-write/limits.js +35 -0
- package/dist/hoi4_agent_tools/common-write/paths.js +17 -0
- package/dist/hoi4_agent_tools/common-write/write-job-operations.js +42 -0
- package/dist/hoi4_agent_tools/common-write/write-operations.js +360 -0
- package/dist/hoi4_agent_tools/common-write/write-plan.js +34 -0
- package/dist/hoi4_agent_tools/core/artifacts-engine.js +272 -0
- package/dist/hoi4_agent_tools/core/configuration.js +6 -0
- package/dist/hoi4_agent_tools/core/domain-tools.js +8 -0
- package/dist/hoi4_agent_tools/core/engine.js +67 -21
- package/dist/hoi4_agent_tools/core/idle-cache-lifetime.js +7 -0
- package/dist/hoi4_agent_tools/core/job-controls.js +12 -2
- package/dist/hoi4_agent_tools/core/job-executor.js +8 -7
- package/dist/hoi4_agent_tools/core/job-operation-registration.js +4 -0
- package/dist/hoi4_agent_tools/core/job-store.js +97 -5
- package/dist/hoi4_agent_tools/core/job-worker-host.js +2 -2
- package/dist/hoi4_agent_tools/core/operation-result.js +118 -33
- package/dist/hoi4_agent_tools/core/operation-tasks.js +4 -2
- package/dist/hoi4_agent_tools/core/transactions.js +6 -0
- package/dist/hoi4_agent_tools/core/workspace.js +25 -2
- package/dist/hoi4_agent_tools/country/job-operations.js +42 -0
- package/dist/hoi4_agent_tools/country/write-operations.js +646 -0
- package/dist/hoi4_agent_tools/country/write-plan.js +28 -0
- package/dist/hoi4_agent_tools/decision/write-operations.js +7 -8
- package/dist/hoi4_agent_tools/decision/write-plan.js +25 -245
- package/dist/hoi4_agent_tools/doctrine/write-operations.js +2 -2
- package/dist/hoi4_agent_tools/doctrine/write-plan.js +21 -180
- package/dist/hoi4_agent_tools/event/graph.js +3 -3
- package/dist/hoi4_agent_tools/event/job-operations.js +2 -2
- package/dist/hoi4_agent_tools/event/write-job-operations.js +2 -2
- package/dist/hoi4_agent_tools/event/write-operations.js +9 -10
- package/dist/hoi4_agent_tools/event/write-plan.js +28 -278
- package/dist/hoi4_agent_tools/focus/job-operations.js +2 -2
- package/dist/hoi4_agent_tools/gui/assets.js +3 -13
- package/dist/hoi4_agent_tools/gui/job-operations.js +2 -2
- package/dist/hoi4_agent_tools/gui/layout.js +2 -4
- package/dist/hoi4_agent_tools/gui/renderer.js +2 -1
- package/dist/hoi4_agent_tools/gui/source-graph.js +16 -0
- package/dist/hoi4_agent_tools/gui/studio.js +31 -0
- package/dist/hoi4_agent_tools/ideas/write-operations.js +7 -8
- package/dist/hoi4_agent_tools/ideas/write-plan.js +24 -304
- package/dist/hoi4_agent_tools/map/engine-validation.js +230 -0
- package/dist/hoi4_agent_tools/map/job-operations.js +2 -2
- package/dist/hoi4_agent_tools/map/landmass-source.js +42 -0
- package/dist/hoi4_agent_tools/map/landmass.js +190 -0
- package/dist/hoi4_agent_tools/map/model.js +17 -3
- package/dist/hoi4_agent_tools/map/operations.js +20 -6
- package/dist/hoi4_agent_tools/map/references.js +6 -3
- package/dist/hoi4_agent_tools/map/service.js +88 -8
- package/dist/hoi4_agent_tools/map/validation.js +12 -18
- package/dist/hoi4_agent_tools/mcp/server/argument-errors.js +2 -0
- package/dist/hoi4_agent_tools/mcp/server/create-modern-operations.js +1 -1
- package/dist/hoi4_agent_tools/mcp/server/create.js +4 -0
- package/dist/hoi4_agent_tools/mcp/server/task-tool-catalog.js +4 -0
- package/dist/hoi4_agent_tools/mcp/tools/common-write.js +21 -0
- package/dist/hoi4_agent_tools/mcp/tools/country-write.js +21 -0
- package/dist/hoi4_agent_tools/mcp/tools/map.js +1 -1
- package/dist/hoi4_agent_tools/mcp/transports/http.js +2 -0
- package/dist/hoi4_agent_tools/mcp/transports/negotiated-stdio.js +24 -16
- package/dist/hoi4_agent_tools/probability/job-operations.js +2 -2
- package/dist/hoi4_agent_tools/runtime.js +83 -3
- package/dist/hoi4_agent_tools/schemas/character-write.js +5 -1
- package/dist/hoi4_agent_tools/schemas/common-write.js +74 -0
- package/dist/hoi4_agent_tools/schemas/country-write.js +206 -0
- package/dist/hoi4_agent_tools/schemas/decision-write.js +5 -1
- package/dist/hoi4_agent_tools/schemas/doctrine-write.js +5 -1
- package/dist/hoi4_agent_tools/schemas/event-write.js +5 -1
- package/dist/hoi4_agent_tools/schemas/idea-write.js +5 -1
- package/dist/hoi4_agent_tools/schemas/landmass.js +129 -0
- package/dist/hoi4_agent_tools/schemas/localisation-write.js +10 -1
- package/dist/hoi4_agent_tools/schemas/map-requests.js +1 -1
- package/dist/hoi4_agent_tools/schemas/map.js +2 -0
- package/dist/hoi4_agent_tools/schemas/tech-write.js +5 -1
- package/dist/hoi4_agent_tools/script-write/engine-plan.js +45 -0
- package/dist/hoi4_agent_tools/technology/engine-graph.js +156 -0
- package/dist/hoi4_agent_tools/technology/job-operations.js +2 -2
- package/dist/hoi4_agent_tools/technology/operations.js +1 -2
- package/dist/hoi4_agent_tools/technology/service.js +30 -59
- package/dist/hoi4_agent_tools/technology/write-job-operations.js +2 -2
- package/dist/hoi4_agent_tools/technology/write-operations.js +2 -2
- package/dist/hoi4_agent_tools/technology/write-plan.js +21 -207
- package/dist/hoi4_agent_tools/version.js +1 -1
- package/docs/configuration.md +11 -10
- package/docs/jobs.md +2 -2
- package/docs/setup.md +1 -0
- package/docs/tools.md +16 -2
- package/docs/troubleshooting.md +11 -11
- package/engine/bin/darwin-arm64/hoi4-engine +0 -0
- package/engine/bin/linux-arm64/hoi4-engine +0 -0
- package/engine/bin/linux-x64/hoi4-engine +0 -0
- package/engine/bin/manifest.json +8 -8
- package/engine/bin/win32-x64/hoi4-engine.exe +0 -0
- package/npm-shrinkwrap.json +43 -19
- package/package.json +2 -2
- package/schemas/configuration.schema.json +143 -134
- package/schemas/continuous-focus-palette.schema.json +1 -1
- package/schemas/custom-weighted-pool.schema.json +1 -1
- package/schemas/decision-inspect-input.schema.json +1 -1
- package/schemas/error-log-input.schema.json +1 -1
- package/schemas/event-feature-manifest.schema.json +1 -1
- package/schemas/focus-plan.schema.json +1 -1
- package/schemas/focus-planning-sidecar.schema.json +1 -1
- package/schemas/geography-model.schema.json +1 -1
- package/schemas/gui-animation-source.schema.json +1 -1
- package/schemas/gui-helper.schema.json +1 -1
- package/schemas/gui-scenario.schema.json +1 -1
- package/schemas/helper-expansion-request.schema.json +1 -1
- package/schemas/helper-expansion-summary.schema.json +1 -1
- package/schemas/impact-inspect-input.schema.json +1 -1
- package/schemas/map-operation.schema.json +354 -1
- package/schemas/mechanic-test-input.schema.json +1 -1
- package/schemas/mod-index-input.schema.json +1 -1
- package/schemas/operation-result.schema.json +1 -1
- package/schemas/package-check-input.schema.json +1 -1
- package/schemas/package-manifest.schema.json +1 -1
- package/schemas/probability-analysis-result.schema.json +1 -1
- package/schemas/probability-compare-input.schema.json +1 -1
- package/schemas/probability-evaluate-input.schema.json +1 -1
- package/schemas/probability-inspect-input.schema.json +1 -1
- package/schemas/probability-render-input.schema.json +1 -1
- package/schemas/probability-scenario-set.schema.json +1 -1
- package/schemas/probability-sequence-input.schema.json +1 -1
- package/schemas/probability-simulate-input.schema.json +1 -1
- package/schemas/probability-sweep-input.schema.json +1 -1
- package/schemas/reference-context-input.schema.json +1 -1
- package/schemas/reference-read-input.schema.json +1 -1
- package/schemas/reference-search-input.schema.json +1 -1
- package/schemas/reference-sheets.schema.json +1 -1
- package/schemas/scenario-suite.schema.json +1 -1
- package/schemas/scenario-test-input.schema.json +1 -1
- package/schemas/script-validate-input.schema.json +1 -1
- package/schemas/shared-scenario.schema.json +1 -1
- package/schemas/source-lookup-input.schema.json +1 -1
- package/server.json +2 -2
|
@@ -1,212 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
:
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (technologies.value.type !== 'block')
|
|
20
|
-
continue;
|
|
21
|
-
const outer = lineIndent(document.text, technologies.start);
|
|
22
|
-
for (const tech of assignments(technologies.value)) {
|
|
23
|
-
const inner = lineIndent(document.text, tech.start);
|
|
24
|
-
if (inner.length > outer.length && inner.startsWith(outer))
|
|
25
|
-
return inner.slice(outer.length);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return '\t';
|
|
29
|
-
}
|
|
30
|
-
/** The body, checked on its own as the block it will become. */
|
|
31
|
-
function assertBodyIsOneBlock(id, body) {
|
|
32
|
-
const probe = parseClausewitz(Buffer.from(`${id} = {\n${body}\n}\n`, 'utf8'), 'tech-body');
|
|
33
|
-
const only = probe.root.entries;
|
|
34
|
-
const single = only.length === 1 && only[0]?.type === 'assignment' && only[0].key.value === id;
|
|
35
|
-
if (hasBlockingDiagnostics(probe.diagnostics) || !single || only[0]?.type !== 'assignment')
|
|
36
|
-
fail('TECH_WRITE_BODY_INVALID', 'The body must be the text between the braces of one technology: balanced braces and no definition of its own', { diagnosticCodes: probe.diagnostics.map(({ code }) => code) });
|
|
37
|
-
if (only[0].value.type !== 'block' || only[0].value.entries.length === 0)
|
|
38
|
-
fail('TECH_WRITE_BODY_INVALID', 'The body of a technology cannot be empty');
|
|
39
|
-
}
|
|
40
|
-
function definitionTexts(document, skip) {
|
|
41
|
-
const byKey = new Map();
|
|
42
|
-
for (const tech of definitions(document)) {
|
|
43
|
-
if (tech.start === skip?.start)
|
|
44
|
-
continue;
|
|
45
|
-
const key = tech.key.value;
|
|
46
|
-
byKey.set(key, [...(byKey.get(key) ?? []), document.text.slice(tech.start, tech.end)]);
|
|
47
|
-
}
|
|
48
|
-
return byKey;
|
|
49
|
-
}
|
|
50
|
-
function checkRequest(input) {
|
|
51
|
-
if (!ID_PATTERN.test(input.id))
|
|
52
|
-
fail('TECH_WRITE_ID_INVALID', `${JSON.stringify(input.id)} is not a valid tech id`, {
|
|
53
|
-
id: input.id,
|
|
54
|
-
});
|
|
55
|
-
if (input.operation === 'remove' && input.body !== undefined)
|
|
56
|
-
fail('TECH_WRITE_BODY_UNEXPECTED', 'remove takes no body');
|
|
57
|
-
if (input.operation !== 'remove' && (input.body === undefined || input.body.trim() === ''))
|
|
58
|
-
fail('TECH_WRITE_BODY_REQUIRED', `${input.operation} needs the body of the tech`);
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { callWritePlan, replacementSchema, } from '../script-write/engine-plan.js';
|
|
3
|
+
const planSchema = z.object({
|
|
4
|
+
operation: z.enum(['add', 'replace', 'remove']),
|
|
5
|
+
id: z.string(),
|
|
6
|
+
path: z.string(),
|
|
7
|
+
edit: replacementSchema,
|
|
8
|
+
untouchedDefinitions: z.number().int().nonnegative(),
|
|
9
|
+
});
|
|
10
|
+
async function plan(path, input, source) {
|
|
11
|
+
const answer = await callWritePlan({
|
|
12
|
+
op: 'tech_write.plan',
|
|
13
|
+
path,
|
|
14
|
+
input: { ...input },
|
|
15
|
+
...(source === undefined ? {} : { source }),
|
|
16
|
+
result: planSchema,
|
|
17
|
+
});
|
|
18
|
+
return { ...answer.result, text: answer.text, bytes: answer.bytes, diff: answer.diff };
|
|
59
19
|
}
|
|
60
|
-
/**
|
|
61
|
-
* The plan that creates a new `common/technologies` file holding one new technology, for
|
|
62
|
-
* `createFile: true`. The file is UTF-8 without a byte order mark and uses tabs and LF, as the
|
|
63
|
-
* game's own tech files do.
|
|
64
|
-
*/
|
|
20
|
+
/** The plan that creates a new file holding one new tech, for `createFile: true`. */
|
|
65
21
|
export function planNewTechFile(path, input) {
|
|
66
|
-
|
|
67
|
-
if (input.operation !== 'add')
|
|
68
|
-
fail('TECH_WRITE_FILE_NOT_FOUND', `${path} does not exist, and only add can create a file`);
|
|
69
|
-
assertBodyIsOneBlock(input.id, input.body);
|
|
70
|
-
const text = [
|
|
71
|
-
'technologies = {',
|
|
72
|
-
`\t${input.id} = {`,
|
|
73
|
-
indentedBody(input.body, '\t\t', '\n'),
|
|
74
|
-
'\t}',
|
|
75
|
-
'}',
|
|
76
|
-
'',
|
|
77
|
-
].join('\n');
|
|
78
|
-
const written = parseClausewitz(Buffer.from(text, 'utf8'), path);
|
|
79
|
-
if (hasBlockingDiagnostics(written.diagnostics))
|
|
80
|
-
fail('TECH_WRITE_RESULT_INVALID', 'The new file would have syntax errors', {
|
|
81
|
-
diagnosticCodes: written.diagnostics.map(({ code }) => code),
|
|
82
|
-
});
|
|
83
|
-
return {
|
|
84
|
-
operation: 'add',
|
|
85
|
-
id: input.id,
|
|
86
|
-
path,
|
|
87
|
-
text,
|
|
88
|
-
bytes: Buffer.from(text, 'utf8'),
|
|
89
|
-
edit: { start: 0, end: 0, text, description: `create ${path} with ${input.id}` },
|
|
90
|
-
diff: unifiedTextDiff('', text, `a/${path}`, `b/${path}`, { context: DIFF_CONTEXT_LINES }),
|
|
91
|
-
untouchedDefinitions: 0,
|
|
92
|
-
};
|
|
22
|
+
return plan(path, input, undefined);
|
|
93
23
|
}
|
|
94
24
|
export function planTechWrite(source, input) {
|
|
95
|
-
|
|
96
|
-
const document = parseClausewitz(source.bytes, source.path);
|
|
97
|
-
if (hasBlockingDiagnostics(document.diagnostics))
|
|
98
|
-
fail('TECH_WRITE_SOURCE_INVALID', 'The source has syntax errors and cannot be edited safely', {
|
|
99
|
-
path: source.path,
|
|
100
|
-
diagnosticCodes: document.diagnostics.map(({ code }) => code),
|
|
101
|
-
});
|
|
102
|
-
const text = document.text;
|
|
103
|
-
const newline = document.newline;
|
|
104
|
-
if (input.body !== undefined)
|
|
105
|
-
assertBodyIsOneBlock(input.id, input.body);
|
|
106
|
-
const unit = indentUnit(document);
|
|
107
|
-
const existing = definitions(document).filter(({ key }) => key.value === input.id);
|
|
108
|
-
let edit;
|
|
109
|
-
let skip;
|
|
110
|
-
if (input.operation === 'add') {
|
|
111
|
-
if (existing.length > 0)
|
|
112
|
-
fail('TECH_WRITE_DUPLICATE_ID', `${input.id} is already defined in this file`, {
|
|
113
|
-
id: input.id,
|
|
114
|
-
line: existing[0]?.key.token.line,
|
|
115
|
-
});
|
|
116
|
-
const blocks = assignments(document.root, 'technologies').filter(({ value }) => value.type === 'block');
|
|
117
|
-
if (blocks.length !== 1)
|
|
118
|
-
fail('TECH_WRITE_LAYOUT_UNSUPPORTED', blocks.length === 0
|
|
119
|
-
? 'The file has no technologies block to put the new technology in'
|
|
120
|
-
: `The file has ${blocks.length} technologies blocks, so the new technology has no single place`, { blocks: blocks.length });
|
|
121
|
-
const technologies = blocks[0];
|
|
122
|
-
const block = technologies.value;
|
|
123
|
-
const close = block.close;
|
|
124
|
-
if (close === undefined)
|
|
125
|
-
fail('TECH_WRITE_LAYOUT_UNSUPPORTED', 'The technologynologies block has no closing brace');
|
|
126
|
-
const closeLineStart = text.lastIndexOf('\n', close.start - 1) + 1;
|
|
127
|
-
if (!/^[ \t]*$/u.test(text.slice(closeLineStart, close.start)))
|
|
128
|
-
fail('TECH_WRITE_LAYOUT_UNSUPPORTED', 'The closing brace of the technologies block shares its line with other text, so the new technology has no line to go on', { line: close.line });
|
|
129
|
-
const techIndent = lineIndent(text, technologies.start) + unit;
|
|
130
|
-
const techText = `${techIndent}${input.id} = {${newline}${indentedBody(input.body, techIndent + unit, newline)}${newline}${techIndent}}${newline}`;
|
|
131
|
-
edit = {
|
|
132
|
-
start: closeLineStart,
|
|
133
|
-
end: closeLineStart,
|
|
134
|
-
text: `${block.entries.length > 0 ? newline : ''}${techText}`,
|
|
135
|
-
description: `add ${input.id}`,
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
if (existing.length === 0)
|
|
140
|
-
fail('TECH_WRITE_NOT_FOUND', `${input.id} is not defined in this file`, {
|
|
141
|
-
id: input.id,
|
|
142
|
-
});
|
|
143
|
-
if (existing.length > 1)
|
|
144
|
-
fail('TECH_WRITE_DUPLICATE_ID', `${input.id} is defined ${existing.length} times in this file`, { id: input.id, lines: existing.map(({ key }) => key.token.line) });
|
|
145
|
-
const found = existing[0];
|
|
146
|
-
skip = found;
|
|
147
|
-
const techIndent = lineIndent(text, found.start);
|
|
148
|
-
if (input.operation === 'replace') {
|
|
149
|
-
edit = {
|
|
150
|
-
start: found.start,
|
|
151
|
-
end: found.end,
|
|
152
|
-
text: `${input.id} = {${newline}${indentedBody(input.body, techIndent + unit, newline)}${newline}${techIndent}}`,
|
|
153
|
-
description: `replace ${input.id}`,
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
const lineStart = text.lastIndexOf('\n', found.start - 1) + 1;
|
|
158
|
-
const lineEndAt = text.indexOf('\n', found.end);
|
|
159
|
-
const lineEnd = lineEndAt === -1 ? text.length : lineEndAt + 1;
|
|
160
|
-
const alone = /^[ \t]*$/u.test(text.slice(lineStart, found.start)) &&
|
|
161
|
-
/^[ \t]*\r?$/u.test(text.slice(found.end, lineEndAt === -1 ? text.length : lineEndAt));
|
|
162
|
-
if (!alone) {
|
|
163
|
-
edit = { start: found.start, end: found.end, text: '', description: `remove ${input.id}` };
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
// A blank line that only separated this tech from the one before it goes with it.
|
|
167
|
-
const before = text.slice(0, lineStart);
|
|
168
|
-
const blankBefore = /(?:^|\n)[ \t]*\r?\n$/u.test(before) && before.length > 0;
|
|
169
|
-
const after = text.slice(lineEnd);
|
|
170
|
-
const nextIsBlankOrClose = /^[ \t]*(?:\r?\n|\})/u.test(after) || after === '';
|
|
171
|
-
let start = lineStart;
|
|
172
|
-
if (blankBefore && nextIsBlankOrClose)
|
|
173
|
-
start = before.lastIndexOf('\n', before.length - 2) + 1;
|
|
174
|
-
edit = { start, end: lineEnd, text: '', description: `remove ${input.id}` };
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
const bytes = applyReplacements(document, [edit]);
|
|
179
|
-
const after = text.slice(0, edit.start) + edit.text + text.slice(edit.end);
|
|
180
|
-
const written = parseClausewitz(bytes, source.path);
|
|
181
|
-
if (hasBlockingDiagnostics(written.diagnostics))
|
|
182
|
-
fail('TECH_WRITE_RESULT_INVALID', 'The edit would leave the file with syntax errors', {
|
|
183
|
-
diagnosticCodes: written.diagnostics.map(({ code }) => code),
|
|
184
|
-
});
|
|
185
|
-
const before = definitionTexts(document, skip);
|
|
186
|
-
const afterTexts = definitionTexts(written, undefined);
|
|
187
|
-
let untouched = 0;
|
|
188
|
-
for (const [key, texts] of before) {
|
|
189
|
-
const now = afterTexts.get(key) ?? [];
|
|
190
|
-
for (const textOfTech of texts)
|
|
191
|
-
if (now.includes(textOfTech))
|
|
192
|
-
untouched += 1;
|
|
193
|
-
else
|
|
194
|
-
fail('TECH_WRITE_RESULT_INVALID', `The edit would change ${key}, which it must not touch`, {
|
|
195
|
-
key,
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
if (written.text !== after)
|
|
199
|
-
fail('TECH_WRITE_RESULT_INVALID', 'The written file does not match the planned edit');
|
|
200
|
-
return {
|
|
201
|
-
operation: input.operation,
|
|
202
|
-
id: input.id,
|
|
203
|
-
path: source.path,
|
|
204
|
-
text: after,
|
|
205
|
-
bytes,
|
|
206
|
-
edit,
|
|
207
|
-
diff: unifiedTextDiff(text, after, `a/${source.path}`, `b/${source.path}`, {
|
|
208
|
-
context: DIFF_CONTEXT_LINES,
|
|
209
|
-
}),
|
|
210
|
-
untouchedDefinitions: untouched,
|
|
211
|
-
};
|
|
25
|
+
return plan(source.path, input, source.bytes);
|
|
212
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LATEST_PROTOCOL_VERSION } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
export const PACKAGE_NAME = 'hoi4-agent-tools';
|
|
3
|
-
export const PACKAGE_VERSION = '4.
|
|
3
|
+
export const PACKAGE_VERSION = '4.22.0';
|
|
4
4
|
export const MCP_PROTOCOL_VERSION = LATEST_PROTOCOL_VERSION;
|
|
5
5
|
export const CONFIG_VERSION = 1;
|
|
6
6
|
export const TRANSACTION_VERSION = 2;
|
package/docs/configuration.md
CHANGED
|
@@ -155,16 +155,17 @@ Each `roots` key takes up to 16 folders, and setting `roots` replaces only the k
|
|
|
155
155
|
|
|
156
156
|
## Tools, jobs and lifetime
|
|
157
157
|
|
|
158
|
-
| Key
|
|
159
|
-
|
|
|
160
|
-
| `maxConcurrentTools`
|
|
161
|
-
| `maxSharedTools`
|
|
162
|
-
| `jobDeadlineSeconds`
|
|
163
|
-
| `jobCancelGraceSeconds`
|
|
164
|
-
| `jobWorkerMaxHeapMiB`
|
|
165
|
-
| `jobWorkerIdleSeconds`
|
|
166
|
-
| `
|
|
167
|
-
| `
|
|
158
|
+
| Key | Type | Range | Default | Purpose |
|
|
159
|
+
| ------------------------- | -------- | ---------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
160
|
+
| `maxConcurrentTools` | integer | 1–32 | 2 | Expensive tool calls one server process runs at once. |
|
|
161
|
+
| `maxSharedTools` | integer | 1–128 | 4 | Expensive calls and job workers that run at once across every server process sharing the same `serverStateRoot`. |
|
|
162
|
+
| `jobDeadlineSeconds` | integer | 1–86,400 | 1,800 | A read-only job still running this long after dispatch is stopped and fails with `JOB_DEADLINE_EXCEEDED`. Rewrite jobs are never stopped this way. |
|
|
163
|
+
| `jobCancelGraceSeconds` | integer | 1–600 | 10 | A read-only job still running this long after cancellation is stopped and settles as cancelled. |
|
|
164
|
+
| `jobWorkerMaxHeapMiB` | integer | 256–65,536 | unset | Memory ceiling for each job worker's JavaScript heap, in MiB. Unset keeps Node's default. |
|
|
165
|
+
| `jobWorkerIdleSeconds` | integer | 0–3,600 | 180 | How long a job worker stays warm after a job so the next job reuses its loaded indexes. `0` starts a fresh worker for every job. |
|
|
166
|
+
| `idleCacheReleaseSeconds` | integer | 0–3,600 | 30 | How long after the last tool call the in-memory analysis caches (scans, indexes and the views built from them) are released. The next call rebuilds what it needs, and a busy server reuses the caches between calls. `0` releases them as soon as a call ends. A job worker also exits after `jobWorkerIdleSeconds`. |
|
|
167
|
+
| `plugins` | string[] | up to 8 absolute paths | `[]` | Plugin modules (`.mjs` or `.js`) the stdio server loads to add its own tools. The server loads nothing from a mod folder or the environment, only these paths; a listed file that does not exist is skipped with a warning on stderr, so one shared configuration can name a plugin that exists on one machine. The HTTP server never loads plugins. See [Tools](tools.md#plugins). |
|
|
168
|
+
| `stdioIdleExitMinutes` | integer | 0–10,080 | 0 | A stdio server with no client traffic and no open request for this many minutes exits. `0` never exits. `HOI4_AGENT_STDIO_IDLE_EXIT_MINUTES` overrides it per client. |
|
|
168
169
|
|
|
169
170
|
See [Persistent jobs and MCP tasks](jobs.md) for how jobs, cancellation and recovery behave.
|
|
170
171
|
|
package/docs/jobs.md
CHANGED
|
@@ -15,14 +15,14 @@ A modern native task handoff ends that request's heartbeat without declaring the
|
|
|
15
15
|
|
|
16
16
|
## Supported tools
|
|
17
17
|
|
|
18
|
-
Optional tasks are available for all
|
|
18
|
+
Optional tasks are available for all 27 domain tools; the 7 reference tools and the 2 job tools always answer in the foreground.
|
|
19
19
|
|
|
20
20
|
- `hoi4.event_inspect` and `hoi4.event_render`
|
|
21
21
|
- `hoi4.impact_inspect`, `hoi4.decision_inspect`, `hoi4.mechanic_test`, `hoi4.package_check`, and `hoi4.scenario_test`
|
|
22
22
|
- `hoi4.tech_inspect` and `hoi4.tech_render`
|
|
23
23
|
- `hoi4.probability_inspect` and `hoi4.probability_analyze`
|
|
24
24
|
- `hoi4.map_inspect` and `hoi4.map_rewrite`
|
|
25
|
-
- `hoi4.localisation_write`, `hoi4.idea_write`, `hoi4.character_write`, `hoi4.event_write`, `hoi4.decision_write`, `hoi4.tech_write` and `hoi4.
|
|
25
|
+
- `hoi4.localisation_write`, `hoi4.idea_write`, `hoi4.character_write`, `hoi4.country_write`, `hoi4.event_write`, `hoi4.decision_write`, `hoi4.tech_write`, `hoi4.doctrine_write` and `hoi4.common_write`
|
|
26
26
|
- `hoi4.gui_inspect`, `hoi4.gui_render`, and `hoi4.gui_rewrite`
|
|
27
27
|
- `hoi4.focus_inspect`, `hoi4.focus_render`, and `hoi4.focus_rewrite`
|
|
28
28
|
|
package/docs/setup.md
CHANGED
|
@@ -31,6 +31,7 @@ The command prints four alternatives:
|
|
|
31
31
|
| `codexToml` | Codex `config.toml` through `npx` |
|
|
32
32
|
|
|
33
33
|
Copy one of them into your MCP client; the printed command is correct for your platform.
|
|
34
|
+
The entries list only the `core` tools until you [choose more tool profiles](#choose-tool-profiles).
|
|
34
35
|
The Codex entries also set `startup_timeout_sec = 120`, `tool_timeout_sec = 600` and an idle limit, because the first scan of a large mod and long renders exceed Codex's default timeouts.
|
|
35
36
|
The [client examples](../examples/clients) show the same entries without your paths.
|
|
36
37
|
|
package/docs/tools.md
CHANGED
|
@@ -58,6 +58,12 @@ A test fails when this page differs from `tools/list`, so edit the tool descript
|
|
|
58
58
|
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- |
|
|
59
59
|
| `hoi4.character_write` | Add, replace or remove one character in a mod common/characters file, touching only that block. add needs body (the text between the braces: name, portraits, country_leader, advisor, unit leaders); replace and remove find the character. apply false returns the diff; true writes it. createFile (add only) makes a missing file. Warns about a missing name localisation key or portrait sprite. | mod files |
|
|
60
60
|
|
|
61
|
+
## Countries
|
|
62
|
+
|
|
63
|
+
| Tool | Purpose | Writes |
|
|
64
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- |
|
|
65
|
+
| `hoi4.country_write` | Add, update or remove one mod country in one write: tag line, country file, colors.txt, history, localisation names and an optional bookmark entry. add needs name, graphicalCulture, color and history; update changes only what is given; remove refuses while mod files name the tag. Warns about missing flags or text. apply false returns diffs. | mod files |
|
|
66
|
+
|
|
61
67
|
## Decisions
|
|
62
68
|
|
|
63
69
|
| Tool | Purpose | Writes |
|
|
@@ -85,7 +91,7 @@ A test fails when this page differs from `tools/list`, so edit the tool descript
|
|
|
85
91
|
| Tool | Purpose | Writes |
|
|
86
92
|
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
|
|
87
93
|
| `hoi4.map_inspect` | Explore and preview the map. Find provinces, states and regions by name, ID or coordinates, inspect map problems and script references, or render a layer, tile or area. Use lookupOnly for a quick lookup and references:true for script references. | review files |
|
|
88
|
-
| `hoi4.map_rewrite` | Build a world from a reference image or
|
|
94
|
+
| `hoi4.map_rewrite` | Build a world from a reference image or geography model (geography, geographyPath), add an island to the map (add_landmass), or edit provinces, states, regions and supply. | mod files |
|
|
89
95
|
|
|
90
96
|
## Events
|
|
91
97
|
|
|
@@ -104,6 +110,12 @@ A test fails when this page differs from `tools/list`, so edit the tool descript
|
|
|
104
110
|
| `hoi4.tech_write` | Add, replace or remove one technology in a mod common/technologies file, touching only that block. add needs body (the text between the braces); replace (also a move in the tree) and remove find the technology by id. apply false returns the diff; true writes it. createFile (add only) makes a missing file. Warns about missing localisation, icon, folder or unlock; apply refuses an undefined folder. | mod files |
|
|
105
111
|
| `hoi4.doctrine_write` | Add, replace or remove one grand doctrine, track or subdoctrine in a mod common/doctrines file, touching only that block. add needs kind (grand_doctrine, track or subdoctrine) unless file says where, and body (the text between the braces); replace and remove find the doctrine by id. apply false returns the diff; true writes it. createFile (add only) makes a missing file. Warns about a missing name, icon, folder or track. | mod files |
|
|
106
112
|
|
|
113
|
+
## Balance of power, AI and on_actions
|
|
114
|
+
|
|
115
|
+
| Tool | Purpose | Writes |
|
|
116
|
+
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
|
|
117
|
+
| `hoi4.common_write` | Add, replace or remove one definition in a mod common file, touching only that block: kind bop, ai_strategy, ai_strategy_plan or on_action. body is raw script, the text between the braces; it must parse and is written as given. on_action add appends to the key; blockIndex picks one child block. apply false returns the diff. A bop whose ranges do not cover -1 to 1 once is refused. | mod files |
|
|
118
|
+
|
|
107
119
|
## AI weights and timing
|
|
108
120
|
|
|
109
121
|
| Tool | Purpose | Writes |
|
|
@@ -180,6 +192,7 @@ The CI stdio smoke suite sends each of these shapes to a real server process.
|
|
|
180
192
|
| `hoi4.localisation_write` | `{"mode":"add","entries":[{"key":"my_focus","text":"My focus"}]}` |
|
|
181
193
|
| `hoi4.idea_write` | `{"operation":"add","id":"my_spirit","category":"country","body":"picture = my_spirit"}` |
|
|
182
194
|
| `hoi4.character_write` | `{"operation":"add","id":"TAG_jane_doe","body":"name = TAG_jane_doe"}` |
|
|
195
|
+
| `hoi4.country_write` | `{"operation":"update","tag":"ABC","history":{"capital":5,"stability":0.6},"apply":false}` |
|
|
183
196
|
| `hoi4.decision_write` | `{"operation":"add","id":"my_decision","category":"my_category","body":"icon = generic_research"}` |
|
|
184
197
|
| `hoi4.focus_inspect` | `{"treeId":"my_focus_tree"}` |
|
|
185
198
|
| `hoi4.focus_render` | `{"relativePath":"common/national_focus/my_tree.txt","treeId":"my_focus_tree"}` |
|
|
@@ -196,6 +209,7 @@ The CI stdio smoke suite sends each of these shapes to a real server process.
|
|
|
196
209
|
| `hoi4.tech_render` | `{"view":"folder","folderId":"my_folder"}` |
|
|
197
210
|
| `hoi4.tech_write` | `{"operation":"add","id":"my_tech","body":"research_cost = 1.5 start_year = 1936"}` |
|
|
198
211
|
| `hoi4.doctrine_write` | `{"operation":"add","kind":"track","id":"my_track","body":"name = my_track"}` |
|
|
212
|
+
| `hoi4.common_write` | `{"kind":"ai_strategy","operation":"remove","id":"my_strategy"}` |
|
|
199
213
|
| `hoi4.probability_inspect` | `{"candidatePool":["my_decision"],"scenarioSet":[{"actor":"GER","state":{"has_war":false}}]}` |
|
|
200
214
|
| `hoi4.probability_analyze` | `{"analysis":"sweep","source":"common/decisions/my_decisions.txt","candidatePool":["my_decision"],"scenarioSet":[{"actor":"GER","state":{"variable.pressure":10}}],"sweep":{"paths":["variable.pressure"],"steps":10}}` |
|
|
201
215
|
| `hoi4.impact_inspect` | `{"symbols":[{"kind":"scripted_effect","id":"my_effect"}]}` |
|
|
@@ -228,7 +242,7 @@ Archive images you need to keep rather than relying on temporary server storage.
|
|
|
228
242
|
|
|
229
243
|
## Longer operations
|
|
230
244
|
|
|
231
|
-
All
|
|
245
|
+
All 27 domain tools accept negotiated MCP tasks, so a client that supports tasks can retrieve a long operation after reconnecting.
|
|
232
246
|
The 7 reference tools and the 2 job tools always answer in the foreground.
|
|
233
247
|
Other clients receive the ordinary synchronous result.
|
|
234
248
|
Use `hoi4.job_inspect` to inspect an authorized job or retrieve its result, and `hoi4.job_cancel` to request cancellation.
|
package/docs/troubleshooting.md
CHANGED
|
@@ -5,17 +5,17 @@ This page lists the codes you are most likely to meet, then the checks for probl
|
|
|
5
5
|
|
|
6
6
|
## Setup and connection
|
|
7
7
|
|
|
8
|
-
| Symptom | Cause and fix
|
|
9
|
-
| ----------------------------------------------------------- |
|
|
10
|
-
| The client lists no `hoi4.*` tools | The server did not start. Run `hoi4-agent-tools-setup --diagnose`, which checks the Node.js version (22.19 or newer, or 24), the image library and the configured paths. Then restart the client.
|
|
11
|
-
| `WORKSPACE_CONTEXT_NOT_FOUND` | The server does not know which mod you mean. Pass `workspaceId` (an ID or the mod folder name, such as `"my_mod"`; the error lists them), open the mod folder as the client's working directory, set `defaultWorkspace`, or configure the mod with `--mod-root` or a workspace in the [configuration file](configuration.md).
|
|
12
|
-
| `WORKSPACE_CONTEXT_AMBIGUOUS` | The working directory is inside more than one configured mod. Pass `workspaceId`, or open the one folder you mean.
|
|
13
|
-
| `WORKSPACE_NOT_REGISTERED` | The `workspaceId` is not in the configuration. Use `"current"`, or a workspace id from the configuration file.
|
|
14
|
-
| Renders lack icons or fonts, native commands are unresolved | The game folder is not configured. Set `--game-root` (or `gameRoot`) to the Hearts of Iron IV folder; `hoi4-agent-tools-setup --discover` prints the folders it can find.
|
|
15
|
-
| `ERROR_LOG_NOT_FOUND` | Launch the game once, or set `gameUserRoot` to the folder that holds `logs/`, `mod/` and `save games/` (with OneDrive that is often under `OneDrive\Documents`).
|
|
16
|
-
| `AUTH_INVALID` over HTTP | The bearer token is missing, expired or for another server. See the [HTTP guide](http.md).
|
|
17
|
-
| Startup or a call times out in the client | A cold scan of a large mod takes minutes. Raise the client's startup and tool timeouts (the printed Codex entries use 120 and 600 seconds), or use [background jobs](jobs.md). The stdio server answers the handshake and the tool list
|
|
18
|
-
| Many idle `node` processes | Some clients keep a server per subagent. Set `HOI4_AGENT_STDIO_IDLE_EXIT_MINUTES`; see [Server lifetime](setup.md#server-lifetime).
|
|
8
|
+
| Symptom | Cause and fix |
|
|
9
|
+
| ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
10
|
+
| The client lists no `hoi4.*` tools | The server did not start. Run `hoi4-agent-tools-setup --diagnose`, which checks the Node.js version (22.19 or newer, or 24), the image library and the configured paths. Then restart the client. |
|
|
11
|
+
| `WORKSPACE_CONTEXT_NOT_FOUND` | The server does not know which mod you mean. Pass `workspaceId` (an ID or the mod folder name, such as `"my_mod"`; the error lists them), open the mod folder as the client's working directory, set `defaultWorkspace`, or configure the mod with `--mod-root` or a workspace in the [configuration file](configuration.md). |
|
|
12
|
+
| `WORKSPACE_CONTEXT_AMBIGUOUS` | The working directory is inside more than one configured mod. Pass `workspaceId`, or open the one folder you mean. |
|
|
13
|
+
| `WORKSPACE_NOT_REGISTERED` | The `workspaceId` is not in the configuration. Use `"current"`, or a workspace id from the configuration file. |
|
|
14
|
+
| Renders lack icons or fonts, native commands are unresolved | The game folder is not configured. Set `--game-root` (or `gameRoot`) to the Hearts of Iron IV folder; `hoi4-agent-tools-setup --discover` prints the folders it can find. |
|
|
15
|
+
| `ERROR_LOG_NOT_FOUND` | Launch the game once, or set `gameUserRoot` to the folder that holds `logs/`, `mod/` and `save games/` (with OneDrive that is often under `OneDrive\Documents`). |
|
|
16
|
+
| `AUTH_INVALID` over HTTP | The bearer token is missing, expired or for another server. See the [HTTP guide](http.md). |
|
|
17
|
+
| Startup or a call times out in the client | A cold scan of a large mod takes minutes. Raise the client's startup and tool timeouts (the printed Codex entries use 120 and 600 seconds), or use [background jobs](jobs.md). The stdio server answers the handshake and the tool list and loads no workspace until the first tool call needs one; that call waits for the loading, and a workspace checks its retained rewrite journals on its first use. A configuration or workspace error is written to stderr as `startup_failed`, and every call that needs a workspace fails with its code. |
|
|
18
|
+
| Many idle `node` processes | Some clients keep a server per subagent. Set `HOI4_AGENT_STDIO_IDLE_EXIT_MINUTES`; see [Server lifetime](setup.md#server-lifetime). |
|
|
19
19
|
|
|
20
20
|
## Arguments and results
|
|
21
21
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/engine/bin/manifest.json
CHANGED
|
@@ -4,23 +4,23 @@
|
|
|
4
4
|
"binaries": {
|
|
5
5
|
"darwin-arm64": {
|
|
6
6
|
"file": "darwin-arm64/hoi4-engine",
|
|
7
|
-
"sha256": "
|
|
8
|
-
"size":
|
|
7
|
+
"sha256": "a4635bbda4a0c63ab2f560c3edfb771c46a9388aa051180e8166ad009e002c3f",
|
|
8
|
+
"size": 14651216
|
|
9
9
|
},
|
|
10
10
|
"linux-arm64": {
|
|
11
11
|
"file": "linux-arm64/hoi4-engine",
|
|
12
|
-
"sha256": "
|
|
13
|
-
"size":
|
|
12
|
+
"sha256": "7a8f96687fed832ecc3372b8666ccca1acf4fce9c97a53214a5b67c8ba186a41",
|
|
13
|
+
"size": 15901696
|
|
14
14
|
},
|
|
15
15
|
"linux-x64": {
|
|
16
16
|
"file": "linux-x64/hoi4-engine",
|
|
17
|
-
"sha256": "
|
|
18
|
-
"size":
|
|
17
|
+
"sha256": "298782a02c18c60282727c532830e9aa429111ec8d36a2e3088cad3f55594a55",
|
|
18
|
+
"size": 17819896
|
|
19
19
|
},
|
|
20
20
|
"win32-x64": {
|
|
21
21
|
"file": "win32-x64/hoi4-engine.exe",
|
|
22
|
-
"sha256": "
|
|
23
|
-
"size":
|
|
22
|
+
"sha256": "6fb7e7d544cb9b826fc39e81787bba39ba0aa67a10bc13cf0a4b359421634681",
|
|
23
|
+
"size": 16133120
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
Binary file
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hoi4-agent-tools",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.22.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "hoi4-agent-tools",
|
|
9
|
-
"version": "4.
|
|
9
|
+
"version": "4.22.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fontsource-variable/roboto": "5.3.0",
|
|
@@ -624,20 +624,37 @@
|
|
|
624
624
|
}
|
|
625
625
|
},
|
|
626
626
|
"node_modules/@eslint/config-array": {
|
|
627
|
-
"version": "0.23.
|
|
628
|
-
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.
|
|
629
|
-
"integrity": "sha512-
|
|
627
|
+
"version": "0.23.7",
|
|
628
|
+
"resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.7.tgz",
|
|
629
|
+
"integrity": "sha512-Ix1tmZjA7/OmE7ROAfORe83hVnqlDzLpZVHFjHQt5mvLm1U03qMexpaxKqFIL362QV32SoPaZqmKQr3tdqFY2w==",
|
|
630
630
|
"dev": true,
|
|
631
631
|
"license": "Apache-2.0",
|
|
632
632
|
"dependencies": {
|
|
633
633
|
"@eslint/object-schema": "^3.0.5",
|
|
634
634
|
"debug": "^4.3.1",
|
|
635
|
-
"minimatch": "^
|
|
635
|
+
"minimatch": "^11.0.5"
|
|
636
636
|
},
|
|
637
637
|
"engines": {
|
|
638
638
|
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
639
639
|
}
|
|
640
640
|
},
|
|
641
|
+
"node_modules/@eslint/config-array/node_modules/minimatch": {
|
|
642
|
+
"version": "11.0.10",
|
|
643
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.10.tgz",
|
|
644
|
+
"integrity": "sha512-L3/cjhQ5E6lft0VCp/2mO3Ic74RnutKy3rz7iGwp/6w1hKcO262g2rbfacFyw6eBig5OdI0nu5PpuA0/WQs9Tw==",
|
|
645
|
+
"dev": true,
|
|
646
|
+
"license": "BlueOak-1.0.0",
|
|
647
|
+
"dependencies": {
|
|
648
|
+
"@isaacs/nonrecursive-glob-match": "^1.1.0",
|
|
649
|
+
"brace-expansion": "^5.0.12"
|
|
650
|
+
},
|
|
651
|
+
"engines": {
|
|
652
|
+
"node": "20 || >=22"
|
|
653
|
+
},
|
|
654
|
+
"funding": {
|
|
655
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
641
658
|
"node_modules/@eslint/config-helpers": {
|
|
642
659
|
"version": "0.7.0",
|
|
643
660
|
"resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz",
|
|
@@ -719,15 +736,15 @@
|
|
|
719
736
|
}
|
|
720
737
|
},
|
|
721
738
|
"node_modules/@hono/node-server": {
|
|
722
|
-
"version": "2.1.
|
|
723
|
-
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.
|
|
724
|
-
"integrity": "sha512-
|
|
739
|
+
"version": "2.1.11",
|
|
740
|
+
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.11.tgz",
|
|
741
|
+
"integrity": "sha512-KzKz9vl4vvr1vgLHamj+g5uonbrj5NwAdO3yzOS6cd2HjALVeOgTgeZOyAzNxejbkfOOPIcvuf/Tg8l1pEFLog==",
|
|
725
742
|
"license": "MIT",
|
|
726
743
|
"engines": {
|
|
727
744
|
"node": ">=20"
|
|
728
745
|
},
|
|
729
746
|
"peerDependencies": {
|
|
730
|
-
"hono": "^4"
|
|
747
|
+
"hono": "^4 || ^5.0.0-0"
|
|
731
748
|
}
|
|
732
749
|
},
|
|
733
750
|
"node_modules/@humanfs/core": {
|
|
@@ -1296,6 +1313,13 @@
|
|
|
1296
1313
|
"url": "https://opencollective.com/libvips"
|
|
1297
1314
|
}
|
|
1298
1315
|
},
|
|
1316
|
+
"node_modules/@isaacs/nonrecursive-glob-match": {
|
|
1317
|
+
"version": "1.1.0",
|
|
1318
|
+
"resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz",
|
|
1319
|
+
"integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==",
|
|
1320
|
+
"dev": true,
|
|
1321
|
+
"license": "BlueOak-1.0.0"
|
|
1322
|
+
},
|
|
1299
1323
|
"node_modules/@jridgewell/resolve-uri": {
|
|
1300
1324
|
"version": "3.1.2",
|
|
1301
1325
|
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
|
@@ -1753,9 +1777,9 @@
|
|
|
1753
1777
|
}
|
|
1754
1778
|
},
|
|
1755
1779
|
"node_modules/@modelcontextprotocol/node/node_modules/@hono/node-server": {
|
|
1756
|
-
"version": "1.19.
|
|
1757
|
-
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.
|
|
1758
|
-
"integrity": "sha512-
|
|
1780
|
+
"version": "1.19.19",
|
|
1781
|
+
"resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.19.tgz",
|
|
1782
|
+
"integrity": "sha512-Fy9R7PACOzHU9LDpfnuzVyuVYevKQRcEG2mZhmfc+DRdmayEd3RVfa2XOt2IgGcPNgA77Yk63KBszepcMFK5Ng==",
|
|
1759
1783
|
"license": "MIT",
|
|
1760
1784
|
"engines": {
|
|
1761
1785
|
"node": ">=18.14.1"
|
|
@@ -3498,9 +3522,9 @@
|
|
|
3498
3522
|
}
|
|
3499
3523
|
},
|
|
3500
3524
|
"node_modules/cross-spawn": {
|
|
3501
|
-
"version": "7.
|
|
3502
|
-
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.
|
|
3503
|
-
"integrity": "sha512-
|
|
3525
|
+
"version": "7.1.2",
|
|
3526
|
+
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz",
|
|
3527
|
+
"integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==",
|
|
3504
3528
|
"license": "MIT",
|
|
3505
3529
|
"dependencies": {
|
|
3506
3530
|
"path-key": "^3.1.0",
|
|
@@ -7134,9 +7158,9 @@
|
|
|
7134
7158
|
"license": "ISC"
|
|
7135
7159
|
},
|
|
7136
7160
|
"node_modules/ws": {
|
|
7137
|
-
"version": "8.
|
|
7138
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-8.
|
|
7139
|
-
"integrity": "sha512-
|
|
7161
|
+
"version": "8.23.1",
|
|
7162
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.23.1.tgz",
|
|
7163
|
+
"integrity": "sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==",
|
|
7140
7164
|
"dev": true,
|
|
7141
7165
|
"license": "MIT",
|
|
7142
7166
|
"engines": {
|