@spellkave/tool-contracts 0.0.0-stage → 0.1.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 (122) hide show
  1. package/LICENSE +89 -0
  2. package/package.json +48 -4
  3. package/src/admission.ts +62 -0
  4. package/src/authoring-schemas.ts +3491 -0
  5. package/src/authoring-tool-names.ts +46 -0
  6. package/src/contract-data.ts +37 -0
  7. package/src/contract-guard.ts +377 -0
  8. package/src/contracts-metadata.json +6940 -0
  9. package/src/docs-metadata.ts +42 -0
  10. package/src/exploration.ts +248 -0
  11. package/src/git-batch.ts +36 -0
  12. package/src/grant-schemas.ts +38 -0
  13. package/src/index.ts +10 -0
  14. package/src/metadata.ts +48 -0
  15. package/src/owner-instance-read.ts +123 -0
  16. package/src/personas.generated.json +47 -0
  17. package/src/personas.ts +19 -0
  18. package/src/roster.ts +13 -0
  19. package/src/scene-schemas.ts +29 -0
  20. package/src/schema-registry.ts +197 -0
  21. package/src/schemas.ts +786 -0
  22. package/src/snapshot-storage.ts +133 -0
  23. package/src/tool-contracts.breaking-acknowledged.json +392 -0
  24. package/src/tool-contracts.snapshot/index.json +104 -0
  25. package/src/tool-contracts.snapshot/rosters/AUTHOR.json +54 -0
  26. package/src/tool-contracts.snapshot/rosters/DM.json +19 -0
  27. package/src/tool-contracts.snapshot/rosters/PLAYER.json +25 -0
  28. package/src/tool-contracts.snapshot/tools/spellkave_acting_context.json +35 -0
  29. package/src/tool-contracts.snapshot/tools/spellkave_actor_principals.json +23 -0
  30. package/src/tool-contracts.snapshot/tools/spellkave_annotate_place.json +82 -0
  31. package/src/tool-contracts.snapshot/tools/spellkave_apply_manifest_delta.json +66 -0
  32. package/src/tool-contracts.snapshot/tools/spellkave_applyset_apply.json +131 -0
  33. package/src/tool-contracts.snapshot/tools/spellkave_applyset_diff.json +122 -0
  34. package/src/tool-contracts.snapshot/tools/spellkave_attach_map_layer.json +114 -0
  35. package/src/tool-contracts.snapshot/tools/spellkave_author_place.json +132 -0
  36. package/src/tool-contracts.snapshot/tools/spellkave_bind_actor.json +79 -0
  37. package/src/tool-contracts.snapshot/tools/spellkave_bind_edge_affordance.json +69 -0
  38. package/src/tool-contracts.snapshot/tools/spellkave_can_i.json +123 -0
  39. package/src/tool-contracts.snapshot/tools/spellkave_communicate.json +44 -0
  40. package/src/tool-contracts.snapshot/tools/spellkave_declare_inexpressible.json +33 -0
  41. package/src/tool-contracts.snapshot/tools/spellkave_define_action.json +133 -0
  42. package/src/tool-contracts.snapshot/tools/spellkave_define_action_verb.json +215 -0
  43. package/src/tool-contracts.snapshot/tools/spellkave_define_affordance.json +69 -0
  44. package/src/tool-contracts.snapshot/tools/spellkave_define_behavior.json +505 -0
  45. package/src/tool-contracts.snapshot/tools/spellkave_define_bundle.json +67 -0
  46. package/src/tool-contracts.snapshot/tools/spellkave_define_capability.json +64 -0
  47. package/src/tool-contracts.snapshot/tools/spellkave_define_condition.json +244 -0
  48. package/src/tool-contracts.snapshot/tools/spellkave_define_consequence.json +65 -0
  49. package/src/tool-contracts.snapshot/tools/spellkave_define_entity_type.json +199 -0
  50. package/src/tool-contracts.snapshot/tools/spellkave_define_niche.json +88 -0
  51. package/src/tool-contracts.snapshot/tools/spellkave_define_resource.json +93 -0
  52. package/src/tool-contracts.snapshot/tools/spellkave_define_roll_table.json +87 -0
  53. package/src/tool-contracts.snapshot/tools/spellkave_define_session.json +115 -0
  54. package/src/tool-contracts.snapshot/tools/spellkave_define_trace_kind.json +71 -0
  55. package/src/tool-contracts.snapshot/tools/spellkave_describe.json +73 -0
  56. package/src/tool-contracts.snapshot/tools/spellkave_diff.json +90 -0
  57. package/src/tool-contracts.snapshot/tools/spellkave_docs.json +104 -0
  58. package/src/tool-contracts.snapshot/tools/spellkave_end_turn.json +21 -0
  59. package/src/tool-contracts.snapshot/tools/spellkave_entity.json +32 -0
  60. package/src/tool-contracts.snapshot/tools/spellkave_entity_body.json +32 -0
  61. package/src/tool-contracts.snapshot/tools/spellkave_entity_container.json +32 -0
  62. package/src/tool-contracts.snapshot/tools/spellkave_equip_item.json +49 -0
  63. package/src/tool-contracts.snapshot/tools/spellkave_eval.json +87 -0
  64. package/src/tool-contracts.snapshot/tools/spellkave_events.json +30 -0
  65. package/src/tool-contracts.snapshot/tools/spellkave_explain.json +83 -0
  66. package/src/tool-contracts.snapshot/tools/spellkave_export.json +66 -0
  67. package/src/tool-contracts.snapshot/tools/spellkave_export_grants.json +50 -0
  68. package/src/tool-contracts.snapshot/tools/spellkave_get.json +87 -0
  69. package/src/tool-contracts.snapshot/tools/spellkave_grant_role.json +80 -0
  70. package/src/tool-contracts.snapshot/tools/spellkave_hand_over_role.json +89 -0
  71. package/src/tool-contracts.snapshot/tools/spellkave_intervention_windows.json +32 -0
  72. package/src/tool-contracts.snapshot/tools/spellkave_inventory.json +40 -0
  73. package/src/tool-contracts.snapshot/tools/spellkave_item_detail.json +37 -0
  74. package/src/tool-contracts.snapshot/tools/spellkave_link_places.json +84 -0
  75. package/src/tool-contracts.snapshot/tools/spellkave_list_grants.json +56 -0
  76. package/src/tool-contracts.snapshot/tools/spellkave_manipulate.json +84 -0
  77. package/src/tool-contracts.snapshot/tools/spellkave_manipulation_context.json +62 -0
  78. package/src/tool-contracts.snapshot/tools/spellkave_map.json +109 -0
  79. package/src/tool-contracts.snapshot/tools/spellkave_map_graph.json +143 -0
  80. package/src/tool-contracts.snapshot/tools/spellkave_move.json +75 -0
  81. package/src/tool-contracts.snapshot/tools/spellkave_note_doc_gap.json +43 -0
  82. package/src/tool-contracts.snapshot/tools/spellkave_observer_knowledge.json +32 -0
  83. package/src/tool-contracts.snapshot/tools/spellkave_observer_place_knowledge.json +32 -0
  84. package/src/tool-contracts.snapshot/tools/spellkave_observer_trace_knowledge.json +32 -0
  85. package/src/tool-contracts.snapshot/tools/spellkave_offer_control.json +30 -0
  86. package/src/tool-contracts.snapshot/tools/spellkave_orient.json +39 -0
  87. package/src/tool-contracts.snapshot/tools/spellkave_pace_time.json +59 -0
  88. package/src/tool-contracts.snapshot/tools/spellkave_place_actor.json +190 -0
  89. package/src/tool-contracts.snapshot/tools/spellkave_place_entity.json +190 -0
  90. package/src/tool-contracts.snapshot/tools/spellkave_prepare_hand_over.json +57 -0
  91. package/src/tool-contracts.snapshot/tools/spellkave_query.json +290 -0
  92. package/src/tool-contracts.snapshot/tools/spellkave_react_option.json +47 -0
  93. package/src/tool-contracts.snapshot/tools/spellkave_reaction_options.json +32 -0
  94. package/src/tool-contracts.snapshot/tools/spellkave_release_claim.json +32 -0
  95. package/src/tool-contracts.snapshot/tools/spellkave_remove_entity.json +39 -0
  96. package/src/tool-contracts.snapshot/tools/spellkave_render_scene.json +59 -0
  97. package/src/tool-contracts.snapshot/tools/spellkave_return_npc_control.json +59 -0
  98. package/src/tool-contracts.snapshot/tools/spellkave_revoke_role.json +55 -0
  99. package/src/tool-contracts.snapshot/tools/spellkave_scene.json +74 -0
  100. package/src/tool-contracts.snapshot/tools/spellkave_scene_detail.json +37 -0
  101. package/src/tool-contracts.snapshot/tools/spellkave_self_states.json +77 -0
  102. package/src/tool-contracts.snapshot/tools/spellkave_self_summary.json +21 -0
  103. package/src/tool-contracts.snapshot/tools/spellkave_sense.json +68 -0
  104. package/src/tool-contracts.snapshot/tools/spellkave_sense_context.json +28 -0
  105. package/src/tool-contracts.snapshot/tools/spellkave_session_close.json +71 -0
  106. package/src/tool-contracts.snapshot/tools/spellkave_session_move.json +38 -0
  107. package/src/tool-contracts.snapshot/tools/spellkave_session_open.json +36 -0
  108. package/src/tool-contracts.snapshot/tools/spellkave_session_status.json +41 -0
  109. package/src/tool-contracts.snapshot/tools/spellkave_set_metadata.json +205 -0
  110. package/src/tool-contracts.snapshot/tools/spellkave_set_movement_default.json +58 -0
  111. package/src/tool-contracts.snapshot/tools/spellkave_stage_scene.json +55 -0
  112. package/src/tool-contracts.snapshot/tools/spellkave_status.json +23 -0
  113. package/src/tool-contracts.snapshot/tools/spellkave_stow_item.json +55 -0
  114. package/src/tool-contracts.snapshot/tools/spellkave_suggest_next_action.json +32 -0
  115. package/src/tool-contracts.snapshot/tools/spellkave_tag_entity.json +61 -0
  116. package/src/tool-contracts.snapshot/tools/spellkave_take_npc_control.json +64 -0
  117. package/src/tool-contracts.snapshot/tools/spellkave_trace_detail.json +36 -0
  118. package/src/tool-contracts.snapshot/tools/spellkave_traces.json +55 -0
  119. package/src/tool-contracts.snapshot/tools/spellkave_wake_up.json +23 -0
  120. package/src/tool-contracts.snapshot/tools/spellkave_withdraw_control.json +30 -0
  121. package/src/tool-contracts.snapshot/tools/spellkave_write_rows.json +62 -0
  122. package/README.md +0 -3
@@ -0,0 +1,143 @@
1
+ {
2
+ "name": "spellkave_map_graph",
3
+ "label": "Map Graph",
4
+ "description": "Render the authored place-graph as the shared spatial-graph view. Sources rows only through the same workspace/target/live resolution as spellkave_query (place_graphs, place_nodes, place_edges, actor_spatial_locations). output_type picks the ONE artifact computed and returned: 'svg' (default) — this tool's picture-first interactive use case: the raw SVG in details.svg plus an ImageContent PNG for hosts that render tool images (Pi TUI / Ghostty Kitty). 'utf8'/'ascii'/'braille' return that text variant in the like-named details field instead (no image). 'inventory' skips the graph picture entirely, details.inventory only. 'jpg' writes a backdrop-composed JPEG to output_dir/output_name and returns its path as details.jpg_path — no svg/ascii/utf8/braille text in the response.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "properties": {
8
+ "graph": {
9
+ "type": "string",
10
+ "description": "Optional place_graph_id filter — when set, draw that graph (any substrate). Omit to compose every outdoor positioned graph (world map)."
11
+ },
12
+ "slice": {
13
+ "anyOf": [
14
+ {
15
+ "type": "string",
16
+ "const": "elevation_band"
17
+ },
18
+ {
19
+ "type": "string",
20
+ "const": "all_floors_offset"
21
+ },
22
+ {
23
+ "type": "string",
24
+ "const": "topology_only"
25
+ },
26
+ {
27
+ "type": "string",
28
+ "const": "metric"
29
+ },
30
+ {
31
+ "type": "string",
32
+ "const": "h3_world"
33
+ }
34
+ ],
35
+ "description": "How to project multi-floor / unpositioned graphs: elevation_band (one floor), all_floors_offset (floors side-by-side), topology_only (adjacency layout), metric (all z in one plane), h3_world (outdoor multi-graph from cell_res10 — same plane idea as web WorldMapView). Omit for auto (indoor multi-z → elevation_band at z=0; outdoor compose uses h3 when cells present)."
36
+ },
37
+ "z": {
38
+ "type": "number",
39
+ "description": "Elevation for slice=elevation_band (default 0). Matches pose_elevation."
40
+ },
41
+ "z_tolerance": {
42
+ "type": "number",
43
+ "description": "Half-width of elevation_band in elevation units (default 0.5)."
44
+ },
45
+ "lod": {
46
+ "anyOf": [
47
+ {
48
+ "type": "string",
49
+ "const": "structure"
50
+ },
51
+ {
52
+ "type": "string",
53
+ "const": "furnished"
54
+ }
55
+ ],
56
+ "description": "structure = rooms/routes only (no occupancy badges); furnished = + actor counts (default)."
57
+ },
58
+ "output_type": {
59
+ "anyOf": [
60
+ {
61
+ "type": "string",
62
+ "const": "utf8"
63
+ },
64
+ {
65
+ "type": "string",
66
+ "const": "ascii"
67
+ },
68
+ {
69
+ "type": "string",
70
+ "const": "braille"
71
+ },
72
+ {
73
+ "type": "string",
74
+ "const": "inventory"
75
+ },
76
+ {
77
+ "type": "string",
78
+ "const": "svg"
79
+ },
80
+ {
81
+ "type": "string",
82
+ "const": "jpg"
83
+ }
84
+ ],
85
+ "description": "Which single artifact to render — the engine computes ONLY this one (bead sk-due: the old `terminal` param picked the text body while the engine rendered svg + utf8 + ascii + braille + inventory regardless, every call). 'svg' (default) — this tool's own interactive picture-first use case: the raw SVG in details.svg plus an ImageContent PNG for hosts that render tool images (Pi TUI / Ghostty Kitty). 'utf8'/'ascii'/'braille' return that text variant in the like-named details field instead (no image). 'inventory' skips the graph picture entirely, details.inventory only. 'jpg' writes a backdrop-composed JPEG to output_dir/output_name and returns its path as details.jpg_path — no svg/ascii/utf8/braille text in the response."
86
+ },
87
+ "output_dir": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "description": "output_type='jpg' only; ignored otherwise. Directory to write the map-art JPEG into — absolute, or RELATIVE to the host process's own cwd. Optional: omit for a fresh temp directory (mkdtemp). Resolves this graph's authored [[map_layers]] backdrop (unmasked — same drawn-in-full contract every backdrop render in this package follows), rasterizes via resvg then encodes via ffmpeg -q:v 4, skipping the rewrite when an unchanged render already sits there (deterministic churn guard)."
91
+ },
92
+ "output_name": {
93
+ "type": "string",
94
+ "minLength": 1,
95
+ "description": "output_type='jpg' only; ignored otherwise. Base filename (no extension) for the JPEG written under output_dir. Optional: omit for a name derived from graph, or 'map' when graph itself is also omitted (a world-compose call)."
96
+ },
97
+ "target": {
98
+ "anyOf": [
99
+ {
100
+ "type": "string",
101
+ "const": "workspace"
102
+ },
103
+ {
104
+ "type": "string",
105
+ "const": "local"
106
+ },
107
+ {
108
+ "type": "string",
109
+ "const": "live"
110
+ }
111
+ ],
112
+ "description": "Same read-only source override as spellkave_query (`workspace` | `local` | `live`). Omit for the default workspace+configured-target union."
113
+ }
114
+ }
115
+ },
116
+ "executionMode": "parallel",
117
+ "promptSnippet": "Draw the place-graph from existing query sources",
118
+ "promptGuidelines": [
119
+ "Prefer spellkave_map_graph when you need a picture of place connectivity; badges are occupancy counts only.",
120
+ "Indoor/multi-floor: pass graph= and slice=elevation_band with z= (default auto z=0), or slice=all_floors_offset for side-by-side floors; topology_only when nodes lack positions.",
121
+ "Place graph + people: after spellkave_map_graph, call spellkave_query kind=entities fields=preferred and group by place_node_id (usually two calls). Optional third: place_nodes fields=preferred for labels.",
122
+ "Pass graph=<place_graph_id> to draw one graph; omit to compose every outdoor positioned graph (H3 plane when cell_res10 present). Deeper playbook only if needed: spellkave_docs doc=place-graph-occupancy.",
123
+ "Outdoor world: omit graph (or slice=h3_world) so CLI/agent map_graph matches web outdoor H3 placement methodology.",
124
+ "output_type=jpg to save a map-art file instead of an inline picture; utf8/ascii/braille/inventory are cheaper text-only reads when you don't need a picture at all."
125
+ ],
126
+ "roles": [
127
+ "AUTHOR"
128
+ ],
129
+ "admission": {
130
+ "anyOf": [
131
+ {
132
+ "kind": "prefix",
133
+ "prefix": "frontier."
134
+ },
135
+ {
136
+ "kind": "publisher"
137
+ }
138
+ ],
139
+ "ports": [
140
+ "node"
141
+ ]
142
+ }
143
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "spellkave_move",
3
+ "label": "Spellkave Move",
4
+ "description": "Move the active actor — exactly one addressing mode per call. Preferred: {rev, handle}, a stable-identity scene exit handle copied VERBATIM (both fields) from that exit's own row in spellkave_scene — the SAME exit keeps the SAME handle across re-reads and ticks; `rev` gates freshness of that ONE exit only, never the whole scene. Compatibility: {edge_id}, an adjacent-exit identifier when you do not have a scene handle. Movement is ATTEMPT-based: every exit is tried, and the world gives the authoritative verdict. The scene listing's `traversal_gates` and this tool's own `traversal_gates` echo (rev+handle mode only) are map info about what LOOKED likely, never permission. In rev+handle mode, the result carries `receipt` (what the world did) and a sibling `observation` (prose of what the actor perceived — an authored node description, or the region's own description only when the move crossed into a different region, never repeated within the same one — or null + observation_gap when no authorized source backs this outcome); a rejection carries `receipt.move.reason` and `receipt.move.failure_detail`, never a throw. In edge_id mode, the result is a flatter `{status, actor_id, edge_id, from_node, to_node, observed_at_tick}` shape, with `reason`/`failure_detail` on rejection. Movement is never turn-gated: a move may be accepted even while `my_turn` is false. In rev+handle mode, on an ADMITTED dispatch (an immediate arrival OR a promoted long-running 'travelling' walk) with a host world-event builder wired, the result also carries `consequences`: same-tick, same-transaction WorldEvents THIS move deterministically caused (e.g. a travel-cost resource spend) — a THIRD register, distinct from `receipt`/`observation` (the reducer's own outcome) and from a LATER `pushes` drain off the same builder (world news, including this move's own delayed arrival). Omitted entirely when no builder is wired; `[]` when wired but nothing was caused. A move longer than your reach returns outcome \"travelling\" and takes several ticks: pass wait_for_arrival_ms to wait for the arrival in the same call, or spellkave_scene with wait_for_arrival_ms to keep waiting; do not poll.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "properties": {
8
+ "as_body_id": {
9
+ "type": "string",
10
+ "minLength": 1,
11
+ "description": "Observed non-presence body to act as using frontier.impersonate; the server checks scope and consent."
12
+ },
13
+ "control_token": {
14
+ "type": "object",
15
+ "required": [
16
+ "world_instance_id",
17
+ "generation",
18
+ "actor_id",
19
+ "body_entity_id"
20
+ ],
21
+ "properties": {
22
+ "world_instance_id": {
23
+ "type": "string",
24
+ "minLength": 1
25
+ },
26
+ "generation": {
27
+ "type": "string",
28
+ "pattern": "^[0-9]+$"
29
+ },
30
+ "actor_id": {
31
+ "type": "string",
32
+ "pattern": "^[0-9]+$"
33
+ },
34
+ "body_entity_id": {
35
+ "type": "string",
36
+ "pattern": "^[0-9]+$"
37
+ }
38
+ }
39
+ },
40
+ "rev": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "description": "Scene-handle mode: the exit's OWN rev, copied verbatim from its row in spellkave_scene — not the listing envelope's top-level rev. Required together with handle; omit both and pass edge_id instead for the adjacent-exit mode."
44
+ },
45
+ "handle": {
46
+ "type": "string",
47
+ "minLength": 2,
48
+ "description": "Scene-handle mode: stable scene exit handle, e.g. s:exit:32, from spellkave_scene. Required together with rev; omit both and pass edge_id instead for the adjacent-exit mode."
49
+ },
50
+ "edge_id": {
51
+ "type": "string",
52
+ "minLength": 1,
53
+ "description": "Adjacent-exit mode: identifier of an adjacent exit from where you are. Prefer rev+handle instead — this mode exists when you do not have a scene handle."
54
+ },
55
+ "wait_for_arrival_ms": {
56
+ "type": "number",
57
+ "minimum": 0,
58
+ "maximum": 30000,
59
+ "description": "Optional, scene-handle mode. A move longer than your reach becomes a journey of several ticks (outcome \"travelling\"). With this field the call waits up to that many milliseconds for the journey to end and then returns the arrival observation; journey says whether you arrived, were stopped elsewhere, or are still travelling (the host may cap the wait). Without it the call returns as soon as the journey starts."
60
+ }
61
+ }
62
+ },
63
+ "executionMode": "sequential",
64
+ "roles": [
65
+ "PLAYER"
66
+ ],
67
+ "admission": {
68
+ "anyOf": [
69
+ {
70
+ "kind": "character"
71
+ }
72
+ ],
73
+ "ports": []
74
+ }
75
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "spellkave_note_doc_gap",
3
+ "label": "Note Doc Gap",
4
+ "description": "Record a discrepancy between what the modding docs implied and what the validator actually accepted. Does NOT end your run — keep authoring. Sharpens the docs shipped to other authors.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "doc",
9
+ "expected",
10
+ "actual"
11
+ ],
12
+ "properties": {
13
+ "doc": {
14
+ "type": "string",
15
+ "description": "Which corpus doc id you were working from, e.g. 'dsl-grammar'."
16
+ },
17
+ "expected": {
18
+ "type": "string",
19
+ "description": "What the doc led you to expect."
20
+ },
21
+ "actual": {
22
+ "type": "string",
23
+ "description": "What the validator actually did — the discrepancy."
24
+ }
25
+ }
26
+ },
27
+ "executionMode": "sequential",
28
+ "roles": [
29
+ "AUTHOR"
30
+ ],
31
+ "admission": {
32
+ "anyOf": [
33
+ {
34
+ "kind": "prefix",
35
+ "prefix": "frontier."
36
+ },
37
+ {
38
+ "kind": "publisher"
39
+ }
40
+ ],
41
+ "ports": []
42
+ }
43
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "spellkave_observer_knowledge",
3
+ "label": "Spellkave Observer Knowledge",
4
+ "description": "Read an observer body's knowledge of entities. Body-keyed fog-of-war view; use the place and trace knowledge tools for those domains.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "observer_id"
9
+ ],
10
+ "properties": {
11
+ "observer_id": {
12
+ "type": "string",
13
+ "description": "Observer body entity identifier. Returns what that body has perceived (entities, action facts, traces).",
14
+ "minLength": 1
15
+ }
16
+ }
17
+ },
18
+ "executionMode": "parallel",
19
+ "roles": [
20
+ "DM"
21
+ ],
22
+ "admission": {
23
+ "anyOf": [
24
+ {
25
+ "kind": "publisher"
26
+ }
27
+ ],
28
+ "ports": [
29
+ "publisherRead"
30
+ ]
31
+ }
32
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "spellkave_observer_place_knowledge",
3
+ "label": "Spellkave Observer Place Knowledge",
4
+ "description": "Read the place nodes an observer body has perceived. Body-keyed fog-of-war view.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "observer_id"
9
+ ],
10
+ "properties": {
11
+ "observer_id": {
12
+ "type": "string",
13
+ "description": "Observer body entity identifier. Returns the place nodes that body has perceived.",
14
+ "minLength": 1
15
+ }
16
+ }
17
+ },
18
+ "executionMode": "parallel",
19
+ "roles": [
20
+ "DM"
21
+ ],
22
+ "admission": {
23
+ "anyOf": [
24
+ {
25
+ "kind": "publisher"
26
+ }
27
+ ],
28
+ "ports": [
29
+ "publisherRead"
30
+ ]
31
+ }
32
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "spellkave_observer_trace_knowledge",
3
+ "label": "Spellkave Observer Trace Knowledge",
4
+ "description": "Read the inscribed traces an observer body has perceived (seam A inscription-time + seam B arrival scan — ADR-0040). Body-keyed fog-of-war view.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "observer_id"
9
+ ],
10
+ "properties": {
11
+ "observer_id": {
12
+ "type": "string",
13
+ "description": "Observer body entity identifier. Returns the inscribed-trace knowledge that body has perceived (seam A + seam B — ADR-0040).",
14
+ "minLength": 1
15
+ }
16
+ }
17
+ },
18
+ "executionMode": "parallel",
19
+ "roles": [
20
+ "DM"
21
+ ],
22
+ "admission": {
23
+ "anyOf": [
24
+ {
25
+ "kind": "publisher"
26
+ }
27
+ ],
28
+ "ports": [
29
+ "publisherRead"
30
+ ]
31
+ }
32
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "spellkave_offer_control",
3
+ "label": "Offer Control",
4
+ "description": "Offer consent for an authorized identity to steer your primary Person body. Consent grants no direct control or sight.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "identity"
9
+ ],
10
+ "properties": {
11
+ "identity": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "description": "Login identity to consent to steering this primary body; authority is still required."
15
+ }
16
+ }
17
+ },
18
+ "executionMode": "sequential",
19
+ "roles": [
20
+ "PLAYER"
21
+ ],
22
+ "admission": {
23
+ "anyOf": [
24
+ {
25
+ "kind": "character"
26
+ }
27
+ ],
28
+ "ports": []
29
+ }
30
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "spellkave_orient",
3
+ "label": "Spellkave Orient",
4
+ "description": "Rebuild your situation from the world in one call: self/scene/in-world turn-scene/manipulation and sensing facts plus inventory and the MOST RECENT page of traces — the one thing an actor with no history legitimately needs (a fresh conversation, a reloaded world, a restarted host). Freely callable mid-run too, as a situation refresh. Traces are bounded and page most-recent-first, never the whole history at once; pass the returned traces.next_cursor back as cursor to go further back, one page per call. view.manipulation_context uses the same snake_case rows as spellkave_manipulation_context (a prompts[] row from either is the same semantic_context); its actions are bounded to the most relevant rows (answers to open prompts first, then authored cues and defaults, then input forms, then alphabetical) with actions_total, actions_more and actions_by_niche saying what was left out — call spellkave_manipulation_context for more_action_ids (every other action id) and pass action_ids there for the syntax rows of named actions.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "properties": {
8
+ "cursor": {
9
+ "type": "string",
10
+ "description": "Opaque traces.next_cursor from a prior spellkave_orient call — fetches the NEXT (older) page of traces. Omit for the first call: the most recent page, which stands alone as a usable orientation."
11
+ },
12
+ "limit": {
13
+ "type": "number",
14
+ "minimum": 1,
15
+ "maximum": 25,
16
+ "description": "Traces per page (default 10, max 25). Going further back costs more calls, deliberately — recall should cost turns, not one unbounded dump."
17
+ }
18
+ }
19
+ },
20
+ "executionMode": "parallel",
21
+ "roles": [
22
+ "PLAYER"
23
+ ],
24
+ "admission": {
25
+ "anyOf": [
26
+ {
27
+ "kind": "character"
28
+ },
29
+ {
30
+ "kind": "prefix",
31
+ "prefix": "frontier."
32
+ }
33
+ ],
34
+ "ports": [],
35
+ "argumentGates": [
36
+ "Caller-owned acting context only; presence is nonspatial and conveys no NPC consent."
37
+ ]
38
+ }
39
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "spellkave_pace_time",
3
+ "label": "Spellkave Pace Time",
4
+ "description": "Pause, resume, step or change the shared clock interval as the caller. Requires a live frontier.pace_time grant and the caller world-connection port; publisher connections are refused. Step accepts ticks (default 1); interval requires seconds within publisher-configured bounds. Returns correlated event id and clock state. Hosted capability routing is supplied by authority-tools-over-mcp.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "op"
9
+ ],
10
+ "properties": {
11
+ "op": {
12
+ "anyOf": [
13
+ {
14
+ "type": "string",
15
+ "const": "pause"
16
+ },
17
+ {
18
+ "type": "string",
19
+ "const": "resume"
20
+ },
21
+ {
22
+ "type": "string",
23
+ "const": "step"
24
+ },
25
+ {
26
+ "type": "string",
27
+ "const": "interval"
28
+ }
29
+ ]
30
+ },
31
+ "ticks": {
32
+ "type": "integer",
33
+ "minimum": 1,
34
+ "maximum": 10000
35
+ },
36
+ "seconds": {
37
+ "type": "integer",
38
+ "minimum": 1,
39
+ "maximum": 9007199254740991
40
+ }
41
+ },
42
+ "additionalProperties": false
43
+ },
44
+ "executionMode": "sequential",
45
+ "roles": [],
46
+ "admission": {
47
+ "anyOf": [
48
+ {
49
+ "kind": "all",
50
+ "capabilities": [
51
+ "frontier.pace_time"
52
+ ]
53
+ }
54
+ ],
55
+ "ports": [
56
+ "paceTime"
57
+ ]
58
+ }
59
+ }