hoi4-agent-tools 3.6.0 → 3.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.
Files changed (66) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +122 -28
  3. package/dist/hoi4_agent_tools/core/engine.js +7 -7
  4. package/dist/hoi4_agent_tools/core/file-glob.js +164 -0
  5. package/dist/hoi4_agent_tools/core/index-segments.js +4 -0
  6. package/dist/hoi4_agent_tools/core/job-operation-registration.js +31 -0
  7. package/dist/hoi4_agent_tools/core/job-worker-host.js +27 -11
  8. package/dist/hoi4_agent_tools/core/job-worker.js +8 -16
  9. package/dist/hoi4_agent_tools/core/persistent-analysis-cache.js +37 -6
  10. package/dist/hoi4_agent_tools/core/scanner.js +133 -47
  11. package/dist/hoi4_agent_tools/core/source/cache.js +4 -0
  12. package/dist/hoi4_agent_tools/map/service.js +2 -2
  13. package/dist/hoi4_agent_tools/mcp/tools/reference.js +10 -1
  14. package/dist/hoi4_agent_tools/reference/lines.js +12 -0
  15. package/dist/hoi4_agent_tools/reference/operations.js +45 -2
  16. package/dist/hoi4_agent_tools/reference/script-validation.js +277 -0
  17. package/dist/hoi4_agent_tools/reference/service.js +139 -67
  18. package/dist/hoi4_agent_tools/reference/source-lookup.js +91 -15
  19. package/dist/hoi4_agent_tools/reference/source-navigation.js +130 -0
  20. package/dist/hoi4_agent_tools/schemas/reference.js +55 -0
  21. package/dist/hoi4_agent_tools/schemas/script-validation.js +69 -0
  22. package/dist/hoi4_agent_tools/version.js +1 -1
  23. package/docs/README.md +1 -0
  24. package/docs/examples.md +1 -11
  25. package/docs/gui.md +1 -15
  26. package/docs/reference.md +43 -2
  27. package/docs/research/reference-benchmark.md +41 -0
  28. package/docs/tools.md +37 -36
  29. package/npm-shrinkwrap.json +7088 -0
  30. package/package.json +7 -6
  31. package/schemas/configuration.schema.json +1 -1
  32. package/schemas/continuous-focus-palette.schema.json +1 -1
  33. package/schemas/custom-weighted-pool.schema.json +1 -1
  34. package/schemas/decision-inspect-input.schema.json +1 -1
  35. package/schemas/event-feature-manifest.schema.json +1 -1
  36. package/schemas/focus-plan.schema.json +1 -1
  37. package/schemas/focus-planning-sidecar.schema.json +1 -1
  38. package/schemas/gui-animation-source.schema.json +1 -1
  39. package/schemas/gui-helper.schema.json +1 -1
  40. package/schemas/gui-scenario.schema.json +1 -1
  41. package/schemas/helper-expansion-request.schema.json +1 -1
  42. package/schemas/helper-expansion-summary.schema.json +1 -1
  43. package/schemas/impact-inspect-input.schema.json +1 -1
  44. package/schemas/map-operation.schema.json +1 -1
  45. package/schemas/mechanic-test-input.schema.json +1 -1
  46. package/schemas/operation-result.schema.json +1 -1
  47. package/schemas/package-check-input.schema.json +1 -1
  48. package/schemas/package-manifest.schema.json +1 -1
  49. package/schemas/probability-analysis-result.schema.json +1 -1
  50. package/schemas/probability-compare-input.schema.json +1 -1
  51. package/schemas/probability-evaluate-input.schema.json +1 -1
  52. package/schemas/probability-inspect-input.schema.json +1 -1
  53. package/schemas/probability-render-input.schema.json +1 -1
  54. package/schemas/probability-scenario-set.schema.json +1 -1
  55. package/schemas/probability-sequence-input.schema.json +1 -1
  56. package/schemas/probability-simulate-input.schema.json +1 -1
  57. package/schemas/probability-sweep-input.schema.json +1 -1
  58. package/schemas/reference-context-input.schema.json +1 -1
  59. package/schemas/reference-read-input.schema.json +9 -1
  60. package/schemas/reference-search-input.schema.json +1 -1
  61. package/schemas/scenario-suite.schema.json +1 -1
  62. package/schemas/scenario-test-input.schema.json +1 -1
  63. package/schemas/script-validate-input.schema.json +92 -0
  64. package/schemas/shared-scenario.schema.json +1 -1
  65. package/schemas/source-lookup-input.schema.json +68 -2
  66. package/server.json +2 -2
package/docs/tools.md CHANGED
@@ -4,42 +4,43 @@ Most users can ask their agent in ordinary language; the [examples guide](exampl
4
4
  This page lists exact tool names for agents and integrations.
5
5
  Use the connected server's live schema for the fields accepted by each call.
6
6
 
7
- | Tool | Purpose |
8
- | --------------------------- | ----------------------------------------------------------------------------------------- |
9
- | `hoi4.focus_inspect` | Read focus trees, continuous-focus placement, and structural or reference problems. |
10
- | `hoi4.focus_render` | Produce fast HTML, SVG, JSON, and source-linked layout artifacts. |
11
- | `hoi4.focus_raster` | Produce a PNG preview with decoded source icons. |
12
- | `hoi4.focus_rewrite` | Create or update a focus tree. |
13
- | `hoi4.gui_inspect` | Read a scripted GUI and its linked assets and logic. |
14
- | `hoi4.gui_render` | Render generated and explicit GUI scenarios, states, resolutions, and layout diagnostics. |
15
- | `hoi4.gui_rewrite` | Create or update a GUI source package. |
16
- | `hoi4.map_inspect` | Search, click, navigate, and inspect the complete rendered map and its linked data. |
17
- | `hoi4.map_render` | Render full-map layers, overlays, names, IDs, coordinates, and source-linked catalogs. |
18
- | `hoi4.map_rewrite` | Create or update states, provinces, IDs, networks, positions, and connected map data. |
19
- | `hoi4.reference_context` | Get compact, cited wiki and installed documentation pointers for a modding surface. |
20
- | `hoi4.reference_search` | Search bounded local documentation sections. |
21
- | `hoi4.reference_read` | Read one revision-bound section, with line continuation. |
22
- | `hoi4.source_lookup` | Find exact definitions, overrides, usages, and narrow source blocks. |
23
- | `hoi4.event_inspect` | Scan, trace, explain, lint, or assess event chains and their state flow. |
24
- | `hoi4.event_render` | Render source-linked event routes, options, timing, state, scope, and unresolved edges. |
25
- | `hoi4.event_compare` | Compare event-chain topology and diagnostics between revisions. |
26
- | `hoi4.impact_inspect` | Trace symbol and changed-file consumers across source systems and compare proposals. |
27
- | `hoi4.decision_inspect` | Inventory and evaluate decisions or missions under declared scenarios and source changes. |
28
- | `hoi4.mechanic_test` | Execute bounded source effects on a copied declared scenario and check assertions. |
29
- | `hoi4.package_check` | Check declarative package definitions, calls, registrations, assets, and case links. |
30
- | `hoi4.scenario_test` | Run named source and domain cases in resumable, revision-bound batches. |
31
- | `hoi4.job_inspect` | Inspect durable background work or retrieve its completed tool result. |
32
- | `hoi4.job_cancel` | Durably request cancellation of authorized background work. |
33
- | `hoi4.tech_inspect` | Scan, trace, explain, lint, and assess technology and doctrine systems. |
34
- | `hoi4.tech_render` | Render source layouts with real item sizes and year guides, plus dependencies and assets. |
35
- | `hoi4.tech_compare` | Compare technology graphs, placements, references, diagnostics, and source overlays. |
36
- | `hoi4.probability_inspect` | Locate weighted logic and discover compatible adapters, candidates, and required inputs. |
37
- | `hoi4.probability_evaluate` | Evaluate supported weights, probability and timing models, and missing inputs. |
38
- | `hoi4.probability_sweep` | Find sensitivity, breakpoints, cliffs, and rank reversals across declared ranges. |
39
- | `hoi4.probability_simulate` | Run deterministic sampled analysis with confidence and convergence data. |
40
- | `hoi4.probability_sequence` | Analyze declared recovery, caps, cooldowns, resets, timers, and terminal states. |
41
- | `hoi4.probability_compare` | Attribute AI-weight and MTTH changes between real or proposed source. |
42
- | `hoi4.probability_render` | Render cached rankings, matrices, timing, sensitivity, sequence, and comparisons. |
7
+ | Tool | Purpose |
8
+ | --------------------------- | -------------------------------------------------------------------------------------------- |
9
+ | `hoi4.focus_inspect` | Read focus trees, continuous-focus placement, and structural or reference problems. |
10
+ | `hoi4.focus_render` | Produce fast HTML, SVG, JSON, and source-linked layout artifacts. |
11
+ | `hoi4.focus_raster` | Produce a PNG preview with decoded source icons. |
12
+ | `hoi4.focus_rewrite` | Create or update a focus tree. |
13
+ | `hoi4.gui_inspect` | Read a scripted GUI and its linked assets and logic. |
14
+ | `hoi4.gui_render` | Render generated and explicit GUI scenarios, states, resolutions, and layout diagnostics. |
15
+ | `hoi4.gui_rewrite` | Create or update a GUI source package. |
16
+ | `hoi4.map_inspect` | Search, click, navigate, and inspect the complete rendered map and its linked data. |
17
+ | `hoi4.map_render` | Render full-map layers, overlays, names, IDs, coordinates, and source-linked catalogs. |
18
+ | `hoi4.map_rewrite` | Create or update states, provinces, IDs, networks, positions, and connected map data. |
19
+ | `hoi4.reference_context` | Get compact, cited wiki and installed documentation pointers for a modding surface. |
20
+ | `hoi4.reference_search` | Search bounded local documentation sections. |
21
+ | `hoi4.reference_read` | Read one revision-bound section, with line continuation. |
22
+ | `hoi4.source_lookup` | Find exact definitions, overrides, usages, and narrow source blocks. |
23
+ | `hoi4.script_validate` | Check snippet syntax, native command kinds, and declared scopes against local documentation. |
24
+ | `hoi4.event_inspect` | Scan, trace, explain, lint, or assess event chains and their state flow. |
25
+ | `hoi4.event_render` | Render source-linked event routes, options, timing, state, scope, and unresolved edges. |
26
+ | `hoi4.event_compare` | Compare event-chain topology and diagnostics between revisions. |
27
+ | `hoi4.impact_inspect` | Trace symbol and changed-file consumers across source systems and compare proposals. |
28
+ | `hoi4.decision_inspect` | Inventory and evaluate decisions or missions under declared scenarios and source changes. |
29
+ | `hoi4.mechanic_test` | Execute bounded source effects on a copied declared scenario and check assertions. |
30
+ | `hoi4.package_check` | Check declarative package definitions, calls, registrations, assets, and case links. |
31
+ | `hoi4.scenario_test` | Run named source and domain cases in resumable, revision-bound batches. |
32
+ | `hoi4.job_inspect` | Inspect durable background work or retrieve its completed tool result. |
33
+ | `hoi4.job_cancel` | Durably request cancellation of authorized background work. |
34
+ | `hoi4.tech_inspect` | Scan, trace, explain, lint, and assess technology and doctrine systems. |
35
+ | `hoi4.tech_render` | Render source layouts with real item sizes and year guides, plus dependencies and assets. |
36
+ | `hoi4.tech_compare` | Compare technology graphs, placements, references, diagnostics, and source overlays. |
37
+ | `hoi4.probability_inspect` | Locate weighted logic and discover compatible adapters, candidates, and required inputs. |
38
+ | `hoi4.probability_evaluate` | Evaluate supported weights, probability and timing models, and missing inputs. |
39
+ | `hoi4.probability_sweep` | Find sensitivity, breakpoints, cliffs, and rank reversals across declared ranges. |
40
+ | `hoi4.probability_simulate` | Run deterministic sampled analysis with confidence and convergence data. |
41
+ | `hoi4.probability_sequence` | Analyze declared recovery, caps, cooldowns, resets, timers, and terminal states. |
42
+ | `hoi4.probability_compare` | Attribute AI-weight and MTTH changes between real or proposed source. |
43
+ | `hoi4.probability_render` | Render cached rankings, matrices, timing, sensitivity, sequence, and comparisons. |
43
44
 
44
45
  ## Reading results
45
46