hoi4-agent-tools 0.1.7 → 0.2.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 (99) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +31 -25
  3. package/SECURITY.md +4 -2
  4. package/dist/bin/setup.js +11 -4
  5. package/dist/bin/setup.js.map +1 -1
  6. package/dist/hoi4_agent_tools/core/configuration.d.ts +1 -0
  7. package/dist/hoi4_agent_tools/core/configuration.d.ts.map +1 -1
  8. package/dist/hoi4_agent_tools/core/configuration.js +3 -3
  9. package/dist/hoi4_agent_tools/core/configuration.js.map +1 -1
  10. package/dist/hoi4_agent_tools/core/engine.d.ts +1 -0
  11. package/dist/hoi4_agent_tools/core/engine.d.ts.map +1 -1
  12. package/dist/hoi4_agent_tools/core/engine.js +1 -0
  13. package/dist/hoi4_agent_tools/core/engine.js.map +1 -1
  14. package/dist/hoi4_agent_tools/core/transactions.d.ts +2 -0
  15. package/dist/hoi4_agent_tools/core/transactions.d.ts.map +1 -1
  16. package/dist/hoi4_agent_tools/core/transactions.js +49 -6
  17. package/dist/hoi4_agent_tools/core/transactions.js.map +1 -1
  18. package/dist/hoi4_agent_tools/core/workspace.js +1 -1
  19. package/dist/hoi4_agent_tools/core/workspace.js.map +1 -1
  20. package/dist/hoi4_agent_tools/focus/service.d.ts.map +1 -1
  21. package/dist/hoi4_agent_tools/focus/service.js +4 -18
  22. package/dist/hoi4_agent_tools/focus/service.js.map +1 -1
  23. package/dist/hoi4_agent_tools/gui/studio.d.ts.map +1 -1
  24. package/dist/hoi4_agent_tools/gui/studio.js +3 -2
  25. package/dist/hoi4_agent_tools/gui/studio.js.map +1 -1
  26. package/dist/hoi4_agent_tools/map/service.d.ts.map +1 -1
  27. package/dist/hoi4_agent_tools/map/service.js +11 -5
  28. package/dist/hoi4_agent_tools/map/service.js.map +1 -1
  29. package/dist/hoi4_agent_tools/mcp/prompts/register.d.ts +2 -1
  30. package/dist/hoi4_agent_tools/mcp/prompts/register.d.ts.map +1 -1
  31. package/dist/hoi4_agent_tools/mcp/prompts/register.js +35 -13
  32. package/dist/hoi4_agent_tools/mcp/prompts/register.js.map +1 -1
  33. package/dist/hoi4_agent_tools/mcp/registry/metadata.d.ts +1 -1
  34. package/dist/hoi4_agent_tools/mcp/security/auth.d.ts.map +1 -1
  35. package/dist/hoi4_agent_tools/mcp/security/auth.js +1 -4
  36. package/dist/hoi4_agent_tools/mcp/security/auth.js.map +1 -1
  37. package/dist/hoi4_agent_tools/mcp/server/base-tools.d.ts +12 -0
  38. package/dist/hoi4_agent_tools/mcp/server/base-tools.d.ts.map +1 -1
  39. package/dist/hoi4_agent_tools/mcp/server/base-tools.js +239 -220
  40. package/dist/hoi4_agent_tools/mcp/server/base-tools.js.map +1 -1
  41. package/dist/hoi4_agent_tools/mcp/server/create.d.ts.map +1 -1
  42. package/dist/hoi4_agent_tools/mcp/server/create.js +8 -2
  43. package/dist/hoi4_agent_tools/mcp/server/create.js.map +1 -1
  44. package/dist/hoi4_agent_tools/mcp/server/output-schemas.d.ts +5 -0
  45. package/dist/hoi4_agent_tools/mcp/server/output-schemas.d.ts.map +1 -1
  46. package/dist/hoi4_agent_tools/mcp/server/output-schemas.js +1 -0
  47. package/dist/hoi4_agent_tools/mcp/server/output-schemas.js.map +1 -1
  48. package/dist/hoi4_agent_tools/mcp/server/result.js +1 -1
  49. package/dist/hoi4_agent_tools/mcp/server/result.js.map +1 -1
  50. package/dist/hoi4_agent_tools/mcp/server/transaction-execution.d.ts +31 -0
  51. package/dist/hoi4_agent_tools/mcp/server/transaction-execution.d.ts.map +1 -0
  52. package/dist/hoi4_agent_tools/mcp/server/transaction-execution.js +127 -0
  53. package/dist/hoi4_agent_tools/mcp/server/transaction-execution.js.map +1 -0
  54. package/dist/hoi4_agent_tools/mcp/tools/focus.d.ts.map +1 -1
  55. package/dist/hoi4_agent_tools/mcp/tools/focus.js +69 -23
  56. package/dist/hoi4_agent_tools/mcp/tools/focus.js.map +1 -1
  57. package/dist/hoi4_agent_tools/mcp/tools/gui.d.ts +6 -0
  58. package/dist/hoi4_agent_tools/mcp/tools/gui.d.ts.map +1 -1
  59. package/dist/hoi4_agent_tools/mcp/tools/gui.js +40 -12
  60. package/dist/hoi4_agent_tools/mcp/tools/gui.js.map +1 -1
  61. package/dist/hoi4_agent_tools/mcp/tools/map.d.ts.map +1 -1
  62. package/dist/hoi4_agent_tools/mcp/tools/map.js +39 -12
  63. package/dist/hoi4_agent_tools/mcp/tools/map.js.map +1 -1
  64. package/dist/hoi4_agent_tools/mcp/transports/http.d.ts.map +1 -1
  65. package/dist/hoi4_agent_tools/mcp/transports/http.js +3 -0
  66. package/dist/hoi4_agent_tools/mcp/transports/http.js.map +1 -1
  67. package/dist/hoi4_agent_tools/version.d.ts +1 -1
  68. package/dist/hoi4_agent_tools/version.js +1 -1
  69. package/docs/README.md +2 -2
  70. package/docs/adr/0012-autonomous-rewrites.md +55 -0
  71. package/docs/adr/README.md +1 -0
  72. package/docs/agent-integration.md +33 -23
  73. package/docs/architecture.md +20 -4
  74. package/docs/artifacts.md +8 -5
  75. package/docs/completion-report.md +85 -125
  76. package/docs/configuration.md +24 -8
  77. package/docs/focus-workflow.md +16 -14
  78. package/docs/gui-workflow.md +7 -3
  79. package/docs/limitations.md +3 -2
  80. package/docs/map-workflow.md +15 -9
  81. package/docs/performance.md +1 -1
  82. package/docs/release.md +11 -9
  83. package/docs/research/mcp-2026-07-10.md +9 -3
  84. package/docs/security.md +12 -6
  85. package/docs/self-hosting.md +8 -6
  86. package/docs/transactions.md +45 -33
  87. package/docs/troubleshooting.md +12 -4
  88. package/package.json +2 -2
  89. package/schemas/configuration.schema.json +3 -2
  90. package/schemas/continuous-focus-palette.schema.json +1 -1
  91. package/schemas/focus-plan.schema.json +1 -1
  92. package/schemas/focus-planning-sidecar.schema.json +1 -1
  93. package/schemas/gui-animation-source.schema.json +1 -1
  94. package/schemas/gui-helper.schema.json +1 -1
  95. package/schemas/gui-scenario.schema.json +1 -1
  96. package/schemas/map-operation.schema.json +1 -1
  97. package/schemas/operation-result.schema.json +1 -1
  98. package/schemas/transaction-manifest.schema.json +1 -1
  99. package/server.json +3 -3
@@ -1,44 +1,55 @@
1
- # Transactions, diffs, and rollback
1
+ # Autonomous rewrites, transactions, and recovery
2
2
 
3
- ## Plan
3
+ The recommended `"autonomous"` write policy exposes three source-mutation tools:
4
4
 
5
- A domain `plan_changes`/`map_plan` call calculates every affected source and binary file before writing. Proposed bytes are validated in memory. The plan persists content-addressed before/after blobs and produces source, binary, pixel, and rendered comparison artifacts where applicable.
5
+ - `hoi4.focus_rewrite`;
6
+ - `hoi4.gui_rewrite`;
7
+ - `hoi4.map_rewrite`.
6
8
 
7
- Every proposed source target is resolved with write access restricted to the workspace's canonical
8
- mod root. Transaction calls cannot write the game, a dependency, a fixture, artifact storage,
9
- cache storage, or the reserved `.hoi4-agent` subtree as mod source.
9
+ One rewrite call calculates every affected source and binary file, validates the proposed bytes in memory, persists an authenticated journal with exact recovery data, applies under the workspace lock, rebuilds the shared index, and post-validates the result. The caller does not receive or invoke separate transaction apply or rollback tools. Those tools are not registered in autonomous mode.
10
10
 
11
- The transaction API requires both validation phases: planning must return at least one explicit in-memory check, and apply must return at least one explicit post-write check. Missing or empty callbacks fail with `TRANSACTION_DRY_RUN_VALIDATION_REQUIRED` or `TRANSACTION_POST_VALIDATION_REQUIRED`; callers cannot opt out through the typed core API. Diff artifacts are committed as one batch with the journal only after the planning validator returns structurally valid results. A rejected validator or journal admission leaves artifact inventory unchanged. A completed dry run whose explicit checks fail remains reviewable as a blocked plan and cannot be applied.
11
+ `"transactions"` remains available as an optional compatibility policy. It exposes the older `hoi4.focus_plan_changes`, `hoi4.gui_plan_changes`, and `hoi4.map_plan` tools, followed by `hoi4.transaction_diff`, `hoi4.transaction_apply`, `hoi4.transaction_status`, and `hoi4.transaction_rollback`. Both modes use the same core transaction engine and safety properties; only the public MCP workflow differs.
12
12
 
13
- Text diffs use an exact deterministic algorithm with a fixed memory bound and cancellation checks. If an exact diff would exceed the bound, planning stops with `DIFF_COMPLEXITY_LIMIT`; the server does not substitute a truncated, approximate, or misleading diff.
13
+ ## Autonomous rewrite pipeline
14
+
15
+ Every autonomous rewrite follows this sequence inside one MCP call:
16
+
17
+ 1. resolve targets with write access confined to the canonical mod root;
18
+ 2. calculate the complete affected-file set and exact proposed bytes;
19
+ 3. run domain-specific in-memory validation and create source, binary, pixel, or rendered evidence as applicable;
20
+ 4. persist the plan, before/after blobs, authentication tag, and protected revision head;
21
+ 5. recheck principal, workspace, canonical roots, expiry, and every before-hash under the workspace lock;
22
+ 6. stage and replace files in deterministic order;
23
+ 7. rebuild the shared index, run domain post-write validation, and verify every final hash;
24
+ 8. return `execution: "applied"`, changed-file samples, validation, and evidence links only after success.
25
+
26
+ A proposal whose pre-write checks fail returns blocked with `execution: "blocked"` and changes no source bytes. A request whose desired bytes already match every target returns `execution: "unchanged"` as a successful no-op. Any error after replacement begins starts exact restoration before failure is returned. Startup recovery also completes restoration for an interrupted journal before another write is accepted. Autonomous mode therefore removes the client-driven review/apply handshake without weakening validation or recoverability.
27
+
28
+ The rewrite tools truthfully advertise `readOnlyHint: false` and `destructiveHint: true`. MCP does not mandate a confirmation prompt for each tool call. A coding-agent host can still prompt for or block the call under its own policy, and the server cannot override that host decision.
29
+
30
+ Git remains the recommended source-history, collaboration, and intentional-revert system. Internal recovery serves a different purpose: exact before-bytes and the durable journal prevent a failed multi-file rewrite from leaving partial corruption, including outside a Git checkout.
14
31
 
15
- The returned transaction ID is not approval. Review:
32
+ Successful autonomous journals are internal recovery data, not user history. They are reclaimed automatically when journal retention reaches its configured count or byte limit; authenticated source-linked evidence remains in the artifact store. Reviewed compatibility mode retains applied journals so its explicit rollback operation remains available.
16
33
 
17
- - operations and unresolved choices;
18
- - affected file list;
19
- - source and visual diff resources;
20
- - diagnostic locations and validation gates;
21
- - expiry and plan hash.
34
+ ## Planning and evidence
22
35
 
23
- Plan and mutation tool results keep only a bounded path sample plus the authenticated transaction
24
- manifest resource. Review artifacts remain listed in that manifest rather than being duplicated as
25
- hundreds of inline resource links. `hoi4.transaction_diff` returns at most 20 files, operation
26
- summaries, and artifact links per page; follow every `nextCursor` until it is absent. Cursors are
27
- bound to the immutable plan hash and fail if reused for a different transaction. Inline validation
28
- contains at most five checks with an explicit truncation diagnostic; the manifest is the complete
29
- validation record.
36
+ Proposed bytes are validated in memory before any source replacement. Every target is restricted to the workspace's canonical mod root; rewrites cannot write the game, a dependency, a fixture, artifact storage, cache storage, or the reserved `.hoi4-agent` subtree as mod source.
30
37
 
31
- Focus plans include both the edited Clausewitz source and its adjacent `.focus-plan.json` design sidecar in one transaction. The manifest also retains the proposed generated-source map and sidecar artifacts through apply and rollback so each generated focus range remains traceable to its planning/source node.
38
+ The transaction core requires both validation phases: planning must return at least one explicit in-memory check, and apply must return at least one explicit post-write check. Missing or empty callbacks fail with `TRANSACTION_DRY_RUN_VALIDATION_REQUIRED` or `TRANSACTION_POST_VALIDATION_REQUIRED`; domain adapters cannot opt out. Diff artifacts are committed as one batch with the journal only after the planning validator returns structurally valid results. A rejected validator or journal admission leaves artifact inventory unchanged. A completed plan whose explicit checks fail remains evidence for the blocked rewrite and cannot be applied.
32
39
 
33
- Complete focus proposal validation is a linked JSON resource. If proposed or post-write diagnostics
34
- exceed the fixed manifest allowance, validation still evaluates the complete set, stores it as a
35
- source-linked MCP resource, and retains a blocker-first bounded manifest summary. The plan phase
36
- reserves diagnostic capacity for the independent post-write phase, so a warning-heavy large tree
37
- does not weaken limits or make a valid reviewed transaction impossible to apply.
40
+ Text diffs use an exact deterministic algorithm with a fixed memory bound and cancellation checks. If an exact diff would exceed the bound, planning stops with `DIFF_COMPLEXITY_LIMIT`; the server does not substitute a truncated, approximate, or misleading diff.
41
+
42
+ Autonomous rewrite results keep bounded path samples and return the generated evidence resources directly; internal transaction identifiers and plan hashes are not caller inputs or success-result fields. Every applied autonomous rewrite links a sanitized execution-validation JSON resource containing the complete pre-write and post-write checks, source-linked diagnostics, final target hashes, and any overflow diagnostic resources without exposing the internal transaction ID or plan hash. Inline validation remains capped at five checks for wire efficiency. Reviewed compatibility mode additionally exposes the authenticated transaction-manifest resource.
43
+
44
+ In reviewed compatibility mode, `hoi4.transaction_diff` returns at most 20 files, operation summaries, and artifact links per page. Follow every `nextCursor` until absent before applying. Cursors are bound to the immutable plan hash and fail if reused for a different transaction. A transaction ID is a journal identifier, not approval.
38
45
 
39
- ## Apply
46
+ Focus rewrites include both the edited Clausewitz source and its adjacent `.focus-plan.json` design sidecar in one recoverable operation. The manifest retains the proposed generated-source map and sidecar artifacts after success or restoration so each generated focus range remains traceable to its planning/source node.
40
47
 
41
- Call `hoi4.transaction_apply` separately with `workspaceId`, `transactionId`, and the exact 64-character `expectedPlanHash`. The server rejects a different principal/workspace, changed roots, failed dry run, expiry, reused state, or any changed before-hash.
48
+ Complete focus proposal validation is a linked JSON resource. If proposed or post-write diagnostics exceed the fixed manifest allowance, validation still evaluates the complete set, stores it as a source-linked MCP resource, and retains a blocker-first bounded manifest summary. The plan phase reserves diagnostic capacity for the independent post-write phase, so a warning-heavy large tree does not weaken limits or prevent a valid rewrite.
49
+
50
+ ## Apply pipeline and protected state
51
+
52
+ Autonomous tools pass their internal transaction ID and exact 64-character plan hash directly to the core apply path. In compatibility mode, the caller supplies the same values to `hoi4.transaction_apply`. The server rejects a different principal/workspace, changed roots, failed pre-write validation, expiry, reused state, or any changed before-hash.
42
53
 
43
54
  The persisted immutable plan payload is recomputed against `planHash` whenever a manifest is
44
55
  loaded. A recomputable integrity hash remains useful for deterministic diagnostics, but is never an
@@ -55,8 +66,7 @@ reconcile only an HMAC-valid exact `+1` successor. Missing heads, gaps, conflict
55
66
  and forged successors fail closed. Successor creation is durable before older revision-head files
56
67
  are removed, so an old-head cleanup failure does not break loading.
57
68
 
58
- Ordinary status, diff, and resource reads are pure: they accept only an exact protected head and
59
- never promote state. An authenticated cache-first exact successor reports
69
+ Ordinary manifest-resource reads, and status/diff reads when compatibility mode exposes them, are pure: they accept only an exact protected head and never promote state. An authenticated cache-first exact successor reports
60
70
  `TRANSACTION_HEAD_RECONCILIATION_REQUIRED` until startup recovery or an authorized write path
61
71
  performs the narrowly allowed reconciliation.
62
72
 
@@ -141,9 +151,11 @@ check rejects a plan, the artifact store removes only content and provenance fil
141
151
  attempt; artifact inventory is unchanged and any identical artifact retained by another operation
142
152
  remains addressable.
143
153
 
144
- ## Explicit rollback
154
+ ## Explicit rollback in compatibility mode
155
+
156
+ `hoi4.transaction_rollback` is available only in reviewed `"transactions"` mode after successful apply. It first verifies that every current file still has the transaction's after-hash. An external edit makes rollback stale, protecting later work from being overwritten.
145
157
 
146
- `hoi4.transaction_rollback` is available after successful apply. It first verifies that every current file still has the transaction's after-hash. An external edit makes rollback stale, protecting later work from being overwritten.
158
+ Autonomous mode does not expose an explicit rollback tool. Failed application and post-validation restore automatically; an intentional later reversal belongs in Git or a new explicit domain rewrite.
147
159
 
148
160
  Rollback accepts cancellation through its path/hash verification preflight. Once byte restoration
149
161
  starts, restore plus authenticated journal advancement is deliberately non-cancellable so a client
@@ -8,18 +8,26 @@ Set `HOI4_AGENT_CONFIG` to an absolute path or add `--config PATH` to the server
8
8
 
9
9
  Use a registered workspace-relative path. Confirm the canonical root is beneath `registrationRoots`; runtime mods also require the separate `writableRegistrationRoots` capability. Check for junctions/symlinks, parent segments, device names, trailing dots/spaces, or alternate data streams. Game and dependencies are intentionally read-only.
10
10
 
11
- ## Apply reports stale
11
+ ## Rewrite reports stale
12
12
 
13
- The source changed after planning. Do not reuse the transaction. Scan and produce a new dry run so review evidence matches current files.
13
+ The source changed after planning or before the workspace lock completed its recheck. Scan again and submit a new rewrite so evidence matches current files. In reviewed compatibility mode, do not reuse the stale transaction.
14
+
15
+ ## Rewrite or transaction tools are missing
16
+
17
+ Check `writePolicy` in `hoi4.project_status`. `"read-only"` authorizes no source mutation, even if compatibility-named planning or transaction tools are listed by the client. `"autonomous"` exposes `hoi4.focus_rewrite`, `hoi4.gui_rewrite`, and `hoi4.map_rewrite` and intentionally hides all transaction tools. `"transactions"` enables the older plan/diff/apply/status/rollback surface instead. Restart the server and initialize a new MCP session after changing configuration.
14
18
 
15
19
  ## Transaction state rejected
16
20
 
17
- Transaction mode requires an absolute, persistent `serverStateRoot` that does not overlap any
18
- source or generated-storage capability. Run setup with `--enable-writes --server-state ROOT`, then
21
+ Each write-enabled policy requires an absolute, persistent `serverStateRoot` that does not overlap any
22
+ source or generated-storage capability. Run setup with `--autonomous-writes --server-state ROOT` for autonomous rewrites, or `--reviewed-writes --server-state ROOT` for compatibility mode, then
19
23
  run `--diagnose`. Preserve the same private state root across restarts. A missing key, malformed or
20
24
  replayed head, unauthenticated legacy manifest, or cache/head revision conflict fails closed; review
21
25
  and archive the affected journal/state evidence instead of regenerating a public hash or tag.
22
26
 
27
+ ## The MCP host still asks for approval
28
+
29
+ The autonomous rewrite tools advertise `destructiveHint: true`. MCP does not require or forbid a prompt; the coding-agent host controls its own approval and filesystem policy, and the server cannot override it. Change the host policy only if that matches your local security requirements.
30
+
23
31
  ## Runtime registration conflicts after restart
24
32
 
25
33
  The artifact root already has a hash-only runtime owner claim. Register the exact canonical
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "hoi4-agent-tools",
3
3
  "mcpName": "io.github.klimPaskov/hoi4-agent-tools",
4
- "version": "0.1.7",
5
- "description": "Source-preserving HOI4 workbench exposed as a safe Model Context Protocol server for coding agents",
4
+ "version": "0.2.0",
5
+ "description": "Source-preserving HOI4 workbench with workspace-authorized autonomous rewrites for coding agents",
6
6
  "type": "module",
7
7
  "license": "Apache-2.0",
8
8
  "author": "HOI4 Agent Tools contributors",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/configuration.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/configuration.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -69,7 +69,8 @@
69
69
  "type": "string",
70
70
  "enum": [
71
71
  "read-only",
72
- "transactions"
72
+ "transactions",
73
+ "autonomous"
73
74
  ]
74
75
  },
75
76
  "__schema2": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/continuous-focus-palette.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/continuous-focus-palette.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/focus-plan.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/focus-plan.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/focus-planning-sidecar.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/focus-planning-sidecar.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/gui-animation-source.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/gui-animation-source.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/gui-helper.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/gui-helper.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/gui-scenario.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/gui-scenario.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/map-operation.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/map-operation.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "oneOf": [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/operation-result.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/operation-result.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.1.7/schemas/transaction-manifest.schema.json",
2
+ "$id": "https://github.com/klimPaskov/hoi4-agent-tools/blob/v0.2.0/schemas/transaction-manifest.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "properties": {
package/server.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.klimPaskov/hoi4-agent-tools",
4
4
  "title": "HOI4 Agent Tools",
5
- "description": "Agent-first, source-preserving HOI4 focus, scripted GUI, and map tools with safe transactions.",
6
- "version": "0.1.7",
5
+ "description": "Agent-first HOI4 focus, scripted GUI, and map tools with workspace-authorized autonomous rewrites.",
6
+ "version": "0.2.0",
7
7
  "repository": {
8
8
  "url": "https://github.com/klimPaskov/hoi4-agent-tools",
9
9
  "source": "github"
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "hoi4-agent-tools",
16
- "version": "0.1.7",
16
+ "version": "0.2.0",
17
17
  "environmentVariables": [
18
18
  {
19
19
  "name": "HOI4_AGENT_CONFIG",