@spellkave/tool-contracts 0.0.0-bootstrap
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/LICENSE +89 -0
- package/package.json +50 -0
- package/src/admission.ts +62 -0
- package/src/authoring-schemas.ts +3491 -0
- package/src/authoring-tool-names.ts +46 -0
- package/src/contract-data.ts +37 -0
- package/src/contract-guard.ts +377 -0
- package/src/contracts-metadata.json +6940 -0
- package/src/docs-metadata.ts +42 -0
- package/src/exploration.ts +248 -0
- package/src/git-batch.ts +36 -0
- package/src/grant-schemas.ts +38 -0
- package/src/index.ts +10 -0
- package/src/metadata.ts +48 -0
- package/src/owner-instance-read.ts +123 -0
- package/src/personas.generated.json +47 -0
- package/src/personas.ts +19 -0
- package/src/roster.ts +13 -0
- package/src/scene-schemas.ts +29 -0
- package/src/schema-registry.ts +197 -0
- package/src/schemas.ts +786 -0
- package/src/snapshot-storage.ts +133 -0
- package/src/tool-contracts.breaking-acknowledged.json +392 -0
- package/src/tool-contracts.snapshot/index.json +104 -0
- package/src/tool-contracts.snapshot/rosters/AUTHOR.json +54 -0
- package/src/tool-contracts.snapshot/rosters/DM.json +19 -0
- package/src/tool-contracts.snapshot/rosters/PLAYER.json +25 -0
- package/src/tool-contracts.snapshot/tools/spellkave_acting_context.json +35 -0
- package/src/tool-contracts.snapshot/tools/spellkave_actor_principals.json +23 -0
- package/src/tool-contracts.snapshot/tools/spellkave_annotate_place.json +82 -0
- package/src/tool-contracts.snapshot/tools/spellkave_apply_manifest_delta.json +66 -0
- package/src/tool-contracts.snapshot/tools/spellkave_applyset_apply.json +131 -0
- package/src/tool-contracts.snapshot/tools/spellkave_applyset_diff.json +122 -0
- package/src/tool-contracts.snapshot/tools/spellkave_attach_map_layer.json +114 -0
- package/src/tool-contracts.snapshot/tools/spellkave_author_place.json +132 -0
- package/src/tool-contracts.snapshot/tools/spellkave_bind_actor.json +79 -0
- package/src/tool-contracts.snapshot/tools/spellkave_bind_edge_affordance.json +69 -0
- package/src/tool-contracts.snapshot/tools/spellkave_can_i.json +123 -0
- package/src/tool-contracts.snapshot/tools/spellkave_communicate.json +44 -0
- package/src/tool-contracts.snapshot/tools/spellkave_declare_inexpressible.json +33 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_action.json +133 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_action_verb.json +215 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_affordance.json +69 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_behavior.json +505 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_bundle.json +67 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_capability.json +64 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_condition.json +244 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_consequence.json +65 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_entity_type.json +199 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_niche.json +88 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_resource.json +93 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_roll_table.json +87 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_session.json +115 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_trace_kind.json +71 -0
- package/src/tool-contracts.snapshot/tools/spellkave_describe.json +73 -0
- package/src/tool-contracts.snapshot/tools/spellkave_diff.json +90 -0
- package/src/tool-contracts.snapshot/tools/spellkave_docs.json +104 -0
- package/src/tool-contracts.snapshot/tools/spellkave_end_turn.json +21 -0
- package/src/tool-contracts.snapshot/tools/spellkave_entity.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_entity_body.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_entity_container.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_equip_item.json +49 -0
- package/src/tool-contracts.snapshot/tools/spellkave_eval.json +87 -0
- package/src/tool-contracts.snapshot/tools/spellkave_events.json +30 -0
- package/src/tool-contracts.snapshot/tools/spellkave_explain.json +83 -0
- package/src/tool-contracts.snapshot/tools/spellkave_export.json +66 -0
- package/src/tool-contracts.snapshot/tools/spellkave_export_grants.json +50 -0
- package/src/tool-contracts.snapshot/tools/spellkave_get.json +87 -0
- package/src/tool-contracts.snapshot/tools/spellkave_grant_role.json +80 -0
- package/src/tool-contracts.snapshot/tools/spellkave_hand_over_role.json +89 -0
- package/src/tool-contracts.snapshot/tools/spellkave_intervention_windows.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_inventory.json +40 -0
- package/src/tool-contracts.snapshot/tools/spellkave_item_detail.json +37 -0
- package/src/tool-contracts.snapshot/tools/spellkave_link_places.json +84 -0
- package/src/tool-contracts.snapshot/tools/spellkave_list_grants.json +56 -0
- package/src/tool-contracts.snapshot/tools/spellkave_manipulate.json +84 -0
- package/src/tool-contracts.snapshot/tools/spellkave_manipulation_context.json +62 -0
- package/src/tool-contracts.snapshot/tools/spellkave_map.json +109 -0
- package/src/tool-contracts.snapshot/tools/spellkave_map_graph.json +143 -0
- package/src/tool-contracts.snapshot/tools/spellkave_move.json +75 -0
- package/src/tool-contracts.snapshot/tools/spellkave_note_doc_gap.json +43 -0
- package/src/tool-contracts.snapshot/tools/spellkave_observer_knowledge.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_observer_place_knowledge.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_observer_trace_knowledge.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_offer_control.json +30 -0
- package/src/tool-contracts.snapshot/tools/spellkave_orient.json +39 -0
- package/src/tool-contracts.snapshot/tools/spellkave_pace_time.json +59 -0
- package/src/tool-contracts.snapshot/tools/spellkave_place_actor.json +190 -0
- package/src/tool-contracts.snapshot/tools/spellkave_place_entity.json +190 -0
- package/src/tool-contracts.snapshot/tools/spellkave_prepare_hand_over.json +57 -0
- package/src/tool-contracts.snapshot/tools/spellkave_query.json +290 -0
- package/src/tool-contracts.snapshot/tools/spellkave_react_option.json +47 -0
- package/src/tool-contracts.snapshot/tools/spellkave_reaction_options.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_release_claim.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_remove_entity.json +39 -0
- package/src/tool-contracts.snapshot/tools/spellkave_render_scene.json +59 -0
- package/src/tool-contracts.snapshot/tools/spellkave_return_npc_control.json +59 -0
- package/src/tool-contracts.snapshot/tools/spellkave_revoke_role.json +55 -0
- package/src/tool-contracts.snapshot/tools/spellkave_scene.json +74 -0
- package/src/tool-contracts.snapshot/tools/spellkave_scene_detail.json +37 -0
- package/src/tool-contracts.snapshot/tools/spellkave_self_states.json +77 -0
- package/src/tool-contracts.snapshot/tools/spellkave_self_summary.json +21 -0
- package/src/tool-contracts.snapshot/tools/spellkave_sense.json +68 -0
- package/src/tool-contracts.snapshot/tools/spellkave_sense_context.json +28 -0
- package/src/tool-contracts.snapshot/tools/spellkave_session_close.json +71 -0
- package/src/tool-contracts.snapshot/tools/spellkave_session_move.json +38 -0
- package/src/tool-contracts.snapshot/tools/spellkave_session_open.json +36 -0
- package/src/tool-contracts.snapshot/tools/spellkave_session_status.json +41 -0
- package/src/tool-contracts.snapshot/tools/spellkave_set_metadata.json +205 -0
- package/src/tool-contracts.snapshot/tools/spellkave_set_movement_default.json +58 -0
- package/src/tool-contracts.snapshot/tools/spellkave_stage_scene.json +55 -0
- package/src/tool-contracts.snapshot/tools/spellkave_status.json +23 -0
- package/src/tool-contracts.snapshot/tools/spellkave_stow_item.json +55 -0
- package/src/tool-contracts.snapshot/tools/spellkave_suggest_next_action.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_tag_entity.json +61 -0
- package/src/tool-contracts.snapshot/tools/spellkave_take_npc_control.json +64 -0
- package/src/tool-contracts.snapshot/tools/spellkave_trace_detail.json +36 -0
- package/src/tool-contracts.snapshot/tools/spellkave_traces.json +55 -0
- package/src/tool-contracts.snapshot/tools/spellkave_wake_up.json +23 -0
- package/src/tool-contracts.snapshot/tools/spellkave_withdraw_control.json +30 -0
- package/src/tool-contracts.snapshot/tools/spellkave_write_rows.json +62 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_hand_over_role",
|
|
3
|
+
"label": "Hand over role",
|
|
4
|
+
"description": "Commit one reviewed subject replacement through guarded apply as the caller. Preserve binding, presence, extent and expiry. Personal consent and NPC holds never transfer. Completion requires a server receipt; reuse the same request UUID to reconcile a lost response.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"binding_id",
|
|
9
|
+
"subject",
|
|
10
|
+
"expected_digest",
|
|
11
|
+
"expected_merged_role_digest",
|
|
12
|
+
"expected_incarnation",
|
|
13
|
+
"expected_revision",
|
|
14
|
+
"request_id",
|
|
15
|
+
"reason"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"binding_id": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"subject": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"expected_digest": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
27
|
+
},
|
|
28
|
+
"expected_merged_role_digest": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
31
|
+
},
|
|
32
|
+
"expected_incarnation": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 256
|
|
36
|
+
},
|
|
37
|
+
"expected_revision": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^[0-9]+$"
|
|
40
|
+
},
|
|
41
|
+
"request_id": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"format": "uuid"
|
|
44
|
+
},
|
|
45
|
+
"reason": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"maxLength": 1024
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"executionMode": "sequential",
|
|
53
|
+
"cli": {
|
|
54
|
+
"positionals": [
|
|
55
|
+
"binding_id",
|
|
56
|
+
"subject"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"roles": [
|
|
60
|
+
"AUTHOR"
|
|
61
|
+
],
|
|
62
|
+
"authority": {
|
|
63
|
+
"kind": "role-binding",
|
|
64
|
+
"readSubject": true
|
|
65
|
+
},
|
|
66
|
+
"admission": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"kind": "publisher"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"kind": "prefix",
|
|
73
|
+
"prefix": "frontier.bind."
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"kind": "role-capabilities"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"ports": [
|
|
80
|
+
"grants"
|
|
81
|
+
],
|
|
82
|
+
"argumentGates": [
|
|
83
|
+
"The server checks old/new D-6 coverage for this binding; the commit also checks reviewed digests, incarnation/revision, expiry and the one-row subject-only envelope."
|
|
84
|
+
],
|
|
85
|
+
"limitations": [
|
|
86
|
+
"Discovery is a conservative capability superset and cannot authorize a transfer or reveal an unauthorized briefing."
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_intervention_windows",
|
|
3
|
+
"label": "Spellkave Intervention Windows",
|
|
4
|
+
"description": "List the connected actor's OPEN post-roll intervention windows — a time-boxed pause after one of the actor's own stochastic actions, before the outcome commits. `faces` are the already-drawn, already-visible die face(s) for that action (two faces when the roll had Advantage/Disadvantage, otherwise one). The window closes on its own (equivalent to declining) if not answered before window_closes_at_micros. Respond with spellkave_react_option using this listing's handle: omit selected_draw_index to decline (the original result stands, nothing is spent), or pass the index of one listed face to accept (spends this window's fuel resource and replaces exactly that face — the new roll must then be used).",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"limit": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"minimum": 1,
|
|
11
|
+
"maximum": 100,
|
|
12
|
+
"description": "Rows per page."
|
|
13
|
+
},
|
|
14
|
+
"cursor": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Opaque next_cursor from the prior page."
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"executionMode": "parallel",
|
|
21
|
+
"roles": [
|
|
22
|
+
"PLAYER"
|
|
23
|
+
],
|
|
24
|
+
"admission": {
|
|
25
|
+
"anyOf": [
|
|
26
|
+
{
|
|
27
|
+
"kind": "character"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"ports": []
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_inventory",
|
|
3
|
+
"label": "Spellkave Inventory",
|
|
4
|
+
"description": "Orient on the connected actor's authorized carried inventory. Unfiltered and under the bound, returns a grouped tree of top-level possessions with nested `contents` and `equipped_slot` markers. Add a kind/name_prefix filter, exceed the bound, or pass a cursor and it falls back to a flat, revision-bound paged list carrying the SAME handles the tree uses. Every response self-describes via `listing` ('complete' for the tree, 'paginated' for the flat fallback). Each item carries its OWN stable `handle`+`rev`: the SAME item keeps the SAME handle across re-reads, for as long as it exists, regardless of tree position or what else in the inventory changed. Follow up on any handle with spellkave_item_detail by copying that item's OWN `rev`+`handle` verbatim — never the envelope's top-level `rev`.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"kind": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Optional exact authored entity kind filter. Forces the flat paged list."
|
|
11
|
+
},
|
|
12
|
+
"name_prefix": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Optional case-insensitive item-name prefix filter. Forces the flat paged list."
|
|
15
|
+
},
|
|
16
|
+
"limit": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"minimum": 1,
|
|
19
|
+
"maximum": 100,
|
|
20
|
+
"description": "Maximum items per page, and the unfiltered grouped-tree threshold. Defaults to 50."
|
|
21
|
+
},
|
|
22
|
+
"cursor": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Opaque next_cursor from a prior paged response. Forces the flat paged list."
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"executionMode": "parallel",
|
|
29
|
+
"roles": [
|
|
30
|
+
"PLAYER"
|
|
31
|
+
],
|
|
32
|
+
"admission": {
|
|
33
|
+
"anyOf": [
|
|
34
|
+
{
|
|
35
|
+
"kind": "character"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"ports": []
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_item_detail",
|
|
3
|
+
"label": "Spellkave Item Detail",
|
|
4
|
+
"description": "Inspect one item selected by its OWN rev+handle from spellkave_inventory (copy both verbatim from that item's own row — not the listing envelope's top-level `rev`). The handle is the item's stable identity: the SAME item keeps the SAME handle across re-reads, for as long as it exists, regardless of tree position or what else in the inventory changed. Returns authorized identity, quantity, containment/equipment role, and owned state in one call; arbitrary item ids are not accepted. Two addressing modes: {handle, rev} copied from the listing (freshness-gated), or target_id — the same typed id spellkave_manipulate takes (entity:156, item:157, actor:7) — which reads the current row and returns its rev.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"rev": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1,
|
|
11
|
+
"description": "With handle: the item's OWN rev, copied verbatim from its row in spellkave_inventory — not the listing envelope's top-level rev (stable per-item handles, freshness gated per item). Omit when addressing by target_id."
|
|
12
|
+
},
|
|
13
|
+
"handle": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 2,
|
|
16
|
+
"description": "Stable inventory item handle, e.g. i:42 — copied from spellkave_inventory. Pass with rev, or pass target_id instead."
|
|
17
|
+
},
|
|
18
|
+
"target_id": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 3,
|
|
21
|
+
"description": "Alternative addressing, the same typed id spellkave_manipulate takes (item:157 or entity:157): the current inventory row for that item is read without a rev, and its rev is returned. One of {handle, rev} or target_id."
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"executionMode": "parallel",
|
|
26
|
+
"roles": [
|
|
27
|
+
"PLAYER"
|
|
28
|
+
],
|
|
29
|
+
"admission": {
|
|
30
|
+
"anyOf": [
|
|
31
|
+
{
|
|
32
|
+
"kind": "character"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"ports": []
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_link_places",
|
|
3
|
+
"label": "Link Places",
|
|
4
|
+
"description": "Author a portal between two existing place_nodes (same graph or cross-graph). Writes place_edges with place_graph_id \"\" when graphs differ (Stonehill pattern), sets substrate_crossing automatically for outdoor↔indoor. Does NOT attach a place_edge_affordance by default (ADR-0101): an ordinary edge just inherits the bundle/graph movement_default (spellkave_set_movement_default) via place_edges.inherit_movement_default, which defaults to true — zero per-edge rows for ordinary walking. Pass portal:true (+ affordance_template_id / bindings_json) only for a special affordance you want attached to THIS edge at creation time; spellkave_bind_edge_affordance is the preferred (FK-validated) path for that, including after the edge already exists. Use after spellkave_author_place on both sides.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"from",
|
|
9
|
+
"to"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"bundle": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "bundle_id stamped on generated edges. Omit to fall back to `context.defaultBundle`."
|
|
15
|
+
},
|
|
16
|
+
"from": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Fully-qualified place_node id (must already exist in workspace/target)."
|
|
19
|
+
},
|
|
20
|
+
"to": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Fully-qualified place_node id (must already exist in workspace/target)."
|
|
23
|
+
},
|
|
24
|
+
"bidirectional": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"description": "Author reverse edge too (default true)."
|
|
27
|
+
},
|
|
28
|
+
"substrate_crossing": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"description": "Force substrate_crossing. Omit to auto: true when the two nodes' substrates differ, or when they belong to different place_graphs (cross-graph portal)."
|
|
31
|
+
},
|
|
32
|
+
"portal": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "Attach a place_edge_affordance on each edge (default FALSE, ADR-0101 — ordinary edges inherit the bundle/graph movement_default instead, no per-edge row needed). Pass true only to attach a special affordance right at creation time; template defaults to core/affordance/traverse_open_portal unless affordance_template_id is set."
|
|
35
|
+
},
|
|
36
|
+
"affordance_template_id": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "place_edge_affordance.affordance_template_id when portal is true (portal defaults to false — see that field). Default \"core/affordance/traverse_open_portal\" when portal is true and this is omitted. Self-sufficient packs pass e.g. \"srd/affordance/step\"."
|
|
39
|
+
},
|
|
40
|
+
"bindings_json": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "place_edge_affordance.bindings_json when portal is true (default \"\"). e.g. '{\"movement_reach_resource\":\"srd/speed-walk\",\"long_running_move_session\":\"srd/long_running_move\"}' for srd Step."
|
|
43
|
+
},
|
|
44
|
+
"door": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "If true, attach metadata namespace place.door on each edge_key (inert; locks later)."
|
|
47
|
+
},
|
|
48
|
+
"description": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Optional edge description."
|
|
51
|
+
},
|
|
52
|
+
"cell_anchor": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "H3 res10 cell anchor as decimal u64 string for substrate_crossing edges (MF-VAL-102). Omit to use dummy 1 (legacy); outdoor portals should pass a real cell."
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"executionMode": "sequential",
|
|
59
|
+
"promptSnippet": "Link two place nodes with a walkable portal (cross-graph OK)",
|
|
60
|
+
"promptGuidelines": [
|
|
61
|
+
"Both from/to node ids must already exist (author_place first).",
|
|
62
|
+
"Cross-graph links leave place_graph_id empty; outdoor↔indoor sets substrate_crossing=true.",
|
|
63
|
+
"door:true only stamps metadata — no lock/secret mechanics yet (E prep).",
|
|
64
|
+
"ADR-0101: ordinary walking needs NO affordance row here — author one spellkave_set_movement_default per bundle/graph instead, once.",
|
|
65
|
+
"portal:true is the exception path — a special per-edge affordance right at creation time (e.g. a template that differs from the bundle default). For an edge that already exists, prefer spellkave_bind_edge_affordance (FK-validated)."
|
|
66
|
+
],
|
|
67
|
+
"roles": [
|
|
68
|
+
"AUTHOR"
|
|
69
|
+
],
|
|
70
|
+
"admission": {
|
|
71
|
+
"anyOf": [
|
|
72
|
+
{
|
|
73
|
+
"kind": "all",
|
|
74
|
+
"capabilities": [
|
|
75
|
+
"frontier.apply_manifest"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"kind": "publisher"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"ports": []
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_list_grants",
|
|
3
|
+
"label": "List grants",
|
|
4
|
+
"description": "List only subject-owned or D-6-manageable bindings; filters narrow the authorized set.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"subject": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"role": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"extent": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"executionMode": "sequential",
|
|
20
|
+
"cli": {
|
|
21
|
+
"positionals": [],
|
|
22
|
+
"examples": [
|
|
23
|
+
{
|
|
24
|
+
"command": "sk grants list",
|
|
25
|
+
"description": "List grants"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"roles": [
|
|
30
|
+
"AUTHOR"
|
|
31
|
+
],
|
|
32
|
+
"authority": {
|
|
33
|
+
"kind": "role-binding",
|
|
34
|
+
"readSubject": true
|
|
35
|
+
},
|
|
36
|
+
"admission": {
|
|
37
|
+
"anyOf": [
|
|
38
|
+
{
|
|
39
|
+
"kind": "publisher"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"kind": "prefix",
|
|
43
|
+
"prefix": "frontier.bind."
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"kind": "role-capabilities"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"ports": [
|
|
50
|
+
"grants"
|
|
51
|
+
],
|
|
52
|
+
"argumentGates": [
|
|
53
|
+
"Actual role, old/new binding coverage, batch bounds and destination-instance guards are checked by D-6 on the server."
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_manipulate",
|
|
3
|
+
"label": "Spellkave Manipulate",
|
|
4
|
+
"description": "Attempt one authored action against one typed target. Prefer action_id and target_id from spellkave_manipulation_context when it is ready; those facts support composition but never promise success. Direct typed attempts remain allowed and the world authoritatively validates fresh state. Args pass 1:1 and success is provenance-observed. For a prompt-bound dialog answer (a prompts[] row, dm/dialog/choice/N) or any free-text creation field use spellkave_communicate instead: it carries the utterance and returns the next open prompt row on its receipt; this tool does not. A field whose input.fields[].channel is \"utterance\" cannot be sent here: the attempt is refused as utterance_required and names the spellkave_communicate speech act to use.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"target_id",
|
|
9
|
+
"action_id"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"as_body_id": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "Observed non-presence body to act as using frontier.impersonate; the server checks scope and consent."
|
|
16
|
+
},
|
|
17
|
+
"control_token": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"required": [
|
|
20
|
+
"world_instance_id",
|
|
21
|
+
"generation",
|
|
22
|
+
"actor_id",
|
|
23
|
+
"body_entity_id"
|
|
24
|
+
],
|
|
25
|
+
"properties": {
|
|
26
|
+
"world_instance_id": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 1
|
|
29
|
+
},
|
|
30
|
+
"generation": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^[0-9]+$"
|
|
33
|
+
},
|
|
34
|
+
"actor_id": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"pattern": "^[0-9]+$"
|
|
37
|
+
},
|
|
38
|
+
"body_entity_id": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^[0-9]+$"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"target_id": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Typed target reference to manipulate — prefer target_ref from spellkave_manipulation_context when it is ready (e.g. 'entity:42', 'item:7'). Direct typed attempts remain allowed; the world authoritatively validates them. A bare numeric id is ambiguous (defaults to entity) and will misresolve a contained item's location, e.g. rejecting a self-targeted item use as out_of_range (#1838). A carried item is an item: target; the inventory handle 'i:7' is read as 'item:7'.",
|
|
47
|
+
"minLength": 1
|
|
48
|
+
},
|
|
49
|
+
"action_id": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Open authored action identifier to attempt against the target — prefer action_id from spellkave_manipulation_context when it is ready; it is discovery data, not an eligibility guarantee.",
|
|
52
|
+
"minLength": 1
|
|
53
|
+
},
|
|
54
|
+
"args_json": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Optional JSON argument blob, passed 1:1 to the world. Defaults to '{}'. For an authored session opener, participant_entity_ids is a nonempty list of up to 64 distinct runtime body ids; the session definition and grid remain authored, and older modules refuse this argument before dispatch. For an action that creates an entity, definition_ref names an allowed definition; the world checks the choice against the action's authored limits. May include participant_context (an mpc:<id> token from spellkave_manipulation_context.participants) when the action has more than one disclosed participant binding. A prompt-bound action (an action_id listed in a prompts[] row's responseActionIds in spellkave_manipulation_context) must carry that prompts[] row here as {\"semantic_context\": <row>}; without it the world rejects the attempt with prompt_context_required."
|
|
57
|
+
},
|
|
58
|
+
"participant_context": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Optional mpc:<id> token from spellkave_manipulation_context.participants for this action. Required when the ready context lists more than one participant row for the action (e.g. Load with two bolts). May also be placed inside args_json; the two must agree.",
|
|
61
|
+
"minLength": 1
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"executionMode": "sequential",
|
|
66
|
+
"roles": [
|
|
67
|
+
"PLAYER"
|
|
68
|
+
],
|
|
69
|
+
"admission": {
|
|
70
|
+
"anyOf": [
|
|
71
|
+
{
|
|
72
|
+
"kind": "character"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"kind": "prefix",
|
|
76
|
+
"prefix": "frontier."
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"ports": [],
|
|
80
|
+
"argumentGates": [
|
|
81
|
+
"Select an eligible caller-owned binding when multiple presences can perform this act; server checks target extent and consent for as_body_id."
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_manipulation_context",
|
|
3
|
+
"label": "Spellkave Manipulation Context",
|
|
4
|
+
"description": "Read your additive factored manipulation context: shared authored action syntax, independently observed typed targets, and complete participant expectations. These are neutral discovery facts, not a list of action-target offers and not a promise that an attempt will succeed. Use them to compose one typed manipulation attempt; the world authoritatively reselects and validates it against fresh state. The default answer is a bounded summary: prompts[], targets[], participants[], the most relevant action rows in actions[] (answers to open prompts first, then authored cues and defaults, then input forms, then alphabetical), and more_action_ids naming every other action you may attempt. Pass action_ids to read the syntax rows of named actions; detail=\"full\" returns the whole registry and is large. prompts[] lists the open dialogue prompts you may answer now (question, labels, responseActionIds; multi-pick questions state the remaining picks, this one included); answering one means sending its responseActionId with that row as args_json {\"semantic_context\": <row>}. A prompt opens one to three ticks after the answer that leads to it; pass wait_for_prompt_ms to wait for it in one call instead of polling. It waits for a prompt only: it is not a way to wait for a journey or a turn.",
|
|
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
|
+
"detail": {
|
|
14
|
+
"anyOf": [
|
|
15
|
+
{
|
|
16
|
+
"type": "string",
|
|
17
|
+
"const": "summary"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "string",
|
|
21
|
+
"const": "full"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"description": "Optional, default \"summary\": prompts[], targets[], participants[], the most relevant action rows (answers to open prompts first, then authored cues and defaults, then input forms, then alphabetical) as composition syntax, and more_action_ids naming every other action. \"full\" returns every action row with provider flags, template ids, groups and tags; it grows with the actor's capabilities (100 KB for a spellcaster) and is meant for programmatic readers."
|
|
25
|
+
},
|
|
26
|
+
"action_ids": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1
|
|
31
|
+
},
|
|
32
|
+
"maxItems": 25,
|
|
33
|
+
"description": "Optional, summary only: action ids (from more_action_ids, a prompt's response_action_ids, or a hint) whose syntax rows to return first in actions[]. Ids the listing does not hold come back in unknown_action_ids."
|
|
34
|
+
},
|
|
35
|
+
"wait_for_prompt_ms": {
|
|
36
|
+
"type": "number",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 30000,
|
|
39
|
+
"description": "Optional. When prompts[] holds no open, unanswered prompt yet, wait up to this many milliseconds for one to open before returning (a prompt opens one to three ticks after the answer that leads to it). Returns as soon as one opens, or at the deadline with prompts[] as it is then; the host may cap the wait. Omit for an immediate read."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"executionMode": "parallel",
|
|
44
|
+
"roles": [
|
|
45
|
+
"PLAYER"
|
|
46
|
+
],
|
|
47
|
+
"admission": {
|
|
48
|
+
"anyOf": [
|
|
49
|
+
{
|
|
50
|
+
"kind": "character"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"kind": "prefix",
|
|
54
|
+
"prefix": "frontier."
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"ports": [],
|
|
58
|
+
"argumentGates": [
|
|
59
|
+
"Caller-owned acting context only; presence is nonspatial and conveys no NPC consent."
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_map",
|
|
3
|
+
"label": "Map",
|
|
4
|
+
"description": "Render the connected actor's OWN known map as the shared spatial view — fog-of-war scoped by the module's visible_place_* views (known places plus the current place's exit frontier). Routes admitted by the module are drawn; spellkave_scene stays the authority on what exits exist from the CURRENT place. output_type picks the ONE artifact computed and returned: 'utf8' box-drawing text, 'ascii' 7-bit text, 'braille' dense-dot text, 'inventory' the place/route listing alone, 'svg' (default) the raw picture (plus an inline picture for hosts that render tool images), 'jpg' a backdrop-composed map-art JPEG written to disk (details.jpg_path). On the hosted PLAYER MCP gateway, results may also include one text line linking to the interactive browser map (maps.spellkave.com/?world=<slug>) for this world. While you are in a fight with a tactical grid drawn, the response also carries session_tokens: one row per roster participant placed on a drawn cell (node_id, actor_id, name, and is_me for your own row) — absent outside a fight, an empty list the moment the fight opens but before anyone has taken a cell.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"graph": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Optional map id — when set, draw that map restricted to places the connected actor has already seen. Omit and the map picks for you: while you are in a fight that opened a tactical grid, it draws THAT grid composed over the location you are fighting in (backdrop art plus the room's own layout, combat cells on top); otherwise it composes every known outdoor map. Naming a map explicitly always wins — pass the location's own id to see the region while a fight is open, or compose_parent=false for the bare grid."
|
|
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 maps: elevation_band (one floor), all_floors_offset (floors side-by-side), topology_only (adjacency layout), metric (all z in one plane), h3_world (outdoor maps laid out geographically). Omit for auto."
|
|
36
|
+
},
|
|
37
|
+
"compose_parent": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"description": "Default true. When the selected map is a battle grid (including an automatically selected one), the grid draws composed over its parent location's own known layout (and, for output_type='jpg', the parent's backdrop art too) — one picture, the battle grid in room context. Has no effect for a non-grid map. Set false for the grid alone when you specifically want just the battle grid with no surrounding room."
|
|
40
|
+
},
|
|
41
|
+
"z": {
|
|
42
|
+
"type": "number",
|
|
43
|
+
"description": "Elevation for slice=elevation_band. Omit to use the anchor floor for a battle grid composed over its parent location; otherwise defaults to 0. An explicit z always wins."
|
|
44
|
+
},
|
|
45
|
+
"z_tolerance": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"description": "Half-width of elevation_band in elevation units (default 0.5)."
|
|
48
|
+
},
|
|
49
|
+
"output_type": {
|
|
50
|
+
"anyOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "string",
|
|
53
|
+
"const": "utf8"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "string",
|
|
57
|
+
"const": "ascii"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "string",
|
|
61
|
+
"const": "braille"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "string",
|
|
65
|
+
"const": "inventory"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "string",
|
|
69
|
+
"const": "svg"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "jpg"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"description": "Which single artifact to render — the engine computes ONLY this one. 'utf8' box-drawing text, 'ascii' 7-bit text, 'braille' dense-dot text — each returned in the like-named details field. 'inventory' skips the picture entirely, details.inventory only. 'svg' (default) returns the raw SVG string in details.svg (and, when the host renders tool-result images, an inline picture). '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 at all."
|
|
77
|
+
},
|
|
78
|
+
"output_dir": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1,
|
|
81
|
+
"description": "output_type='jpg' only; ignored otherwise. Host-supplied directory to write the map-art JPEG into — absolute, or RELATIVE to the host process's own cwd. A relative value resolves against process.cwd() for the write, and is echoed back UNCHANGED — never resolved — in details.jpg_path, so a caller recording a portable artifact never leaks its own machine-local checkout path. Optional: omit for a fresh temp directory — a caller that just wants 'a JPEG, anywhere' does not have to invent a path. Backdrop art is drawn in full (the map on top stays scoped to places already seen, but the backdrop itself is NOT masked, so it may show rooms not yet discovered)."
|
|
82
|
+
},
|
|
83
|
+
"output_name": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"minLength": 1,
|
|
86
|
+
"description": "output_type='jpg' only; ignored otherwise. Base filename (no extension) for the JPEG written under output_dir, e.g. 'arrival'. Optional: omit for a name derived from graph, or 'map' when graph itself is also omitted."
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"executionMode": "parallel",
|
|
91
|
+
"promptSnippet": "Draw the places you have already seen (fog of war)",
|
|
92
|
+
"promptGuidelines": [
|
|
93
|
+
"Shows places and routes the module admits for this caller (known + current exit frontier) — spellkave_scene stays the source of truth for what's here RIGHT NOW and which exits the CURRENT place has.",
|
|
94
|
+
"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.",
|
|
95
|
+
"Omit graph to compose every known outdoor map.",
|
|
96
|
+
"The default (svg) gives an inline picture where the host renders tool images; output_type=jpg saves a map-art file; output_type=utf8/ascii/braille/inventory are the cheap text reads — pick one of those when a picture would be wasted."
|
|
97
|
+
],
|
|
98
|
+
"roles": [
|
|
99
|
+
"PLAYER"
|
|
100
|
+
],
|
|
101
|
+
"admission": {
|
|
102
|
+
"anyOf": [
|
|
103
|
+
{
|
|
104
|
+
"kind": "character"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"ports": []
|
|
108
|
+
}
|
|
109
|
+
}
|