@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.
- package/LICENSE +89 -0
- package/package.json +48 -4
- 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
- package/README.md +0 -3
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_scene",
|
|
3
|
+
"label": "Spellkave Scene",
|
|
4
|
+
"description": "Orient on the connected actor's authorized current scene (location implicit). Unfiltered and under the bound, returns EVERY authorized target (`listing: \"complete\"`) alongside authored node prose (`node_description`, `graph_description`, `pose_elevation`) and occupant/entity/exit/trace `counts`. `graph_description` is carried only the first time this session sees the current region, or again after a call returns to a DIFFERENT region than the previous scene read — repeated reads within the same region carry `graph_description: null` instead of repeating the identical blurb. Add a `kind` filter, exceed the bound, or pass a `cursor` and it falls back to a flat, revision-bound paged list (`listing: \"paginated\"`) carrying the SAME handles and the SAME node prose/counts. Each `exit` row carries its destination as `to` (shortened when it stays in the same region — full path only across a region switch), so spellkave_scene_detail is only needed for an exit's extra detail, not to learn where it leads. Each item carries its OWN stable `handle`+`rev`: the SAME actor/entity/exit/trace keeps the SAME handle across scene re-reads and ticks, for as long as it exists, even while unrelated targets in the same scene change; `rev` gates freshness of that ONE target only. Follow up on any handle with spellkave_scene_detail or spellkave_move (rev+handle mode) by copying that item's OWN `rev`+`handle` verbatim — never the envelope's top-level `rev` — and the same stale_handle rejection applies at either: the loop closes at act, not at this observe call, and other actors may move between the two. While you are on a journey the answer is still the place you left and carries journey {status, arrives_in_ticks, arrives_at_tick}; pass wait_for_arrival_ms to wait for the arrival in one call instead of polling.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"kind": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "actor"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "entity"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "exit"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "string",
|
|
24
|
+
"const": "trace"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"description": "Optional scene target kind filter."
|
|
28
|
+
},
|
|
29
|
+
"limit": {
|
|
30
|
+
"type": "number",
|
|
31
|
+
"minimum": 1,
|
|
32
|
+
"maximum": 100,
|
|
33
|
+
"description": "Rows per page."
|
|
34
|
+
},
|
|
35
|
+
"cursor": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Opaque next_cursor from the prior page."
|
|
38
|
+
},
|
|
39
|
+
"wait_for_arrival_ms": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"minimum": 0,
|
|
42
|
+
"maximum": 30000,
|
|
43
|
+
"description": "Optional. While you are on a journey (a move that takes several ticks), wait up to this many milliseconds for it to end, then answer with the scene as it is then. Returns at once when you are not travelling; the host may cap the wait, and journey_wait says how it ended. Use this instead of re-reading the scene or the session status until you arrive."
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"executionMode": "parallel",
|
|
48
|
+
"cli": {
|
|
49
|
+
"examples": [
|
|
50
|
+
{
|
|
51
|
+
"command": "sk --profile PLAYER_PROFILE scene",
|
|
52
|
+
"description": "replace PLAYER_PROFILE to start or reuse a session and orient in the scene"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"roles": [
|
|
57
|
+
"PLAYER"
|
|
58
|
+
],
|
|
59
|
+
"admission": {
|
|
60
|
+
"anyOf": [
|
|
61
|
+
{
|
|
62
|
+
"kind": "character"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "prefix",
|
|
66
|
+
"prefix": "frontier."
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"ports": [],
|
|
70
|
+
"argumentGates": [
|
|
71
|
+
"Caller-owned acting context only; presence is nonspatial and conveys no NPC consent."
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_scene_detail",
|
|
3
|
+
"label": "Spellkave Scene Detail",
|
|
4
|
+
"description": "Read one current authorized scene target by its OWN rev+handle (copy both verbatim from that target's own listing row — not the listing envelope's top-level `rev`). The handle is a stable identity: the SAME exit/actor/entity/trace keeps the SAME handle across arbitrarily many scene re-reads and ticks, for as long as it exists, even while unrelated targets in the same scene change. `rev` gates freshness of that ONE target only — a rev mismatch (`stale_handle`) means THIS target's own content changed since the handle was issued; a handle that no longer resolves at all (`unknown_handle`) means the target left this actor's authorized scene (moved away, removed, out of range). An `actor` target's `detail` additionally carries `description` (authored flavor prose, `\"\"` if none), `appearance` (the public appearance text the character wrote at creation, `\"\"` if none), `entity_def_id` (its authored definition id — the SAME field the `entity` scene target already carries, `\"\"` if unresolved), and `conditions` (the SAME visibility-filtered status effects `spellkave_self_states kind=condition` surfaces for the connected actor's own body, `[]` if none). 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. Entity and actor detail includes contents {container_ref, scope: \"direct\", revision, status, items}; status is available, empty, unavailable or truncated, with no hidden total. Items carry canonical item:N target_ref, parent_ref, name, quantity and entity_def_id. Inspect a disclosed child with target_id, including nested containers; these children do not become room occupants. Contents changes affect the target revision, and closing an ancestor revokes its descendants. Visibility does not promise pickup success or grant personal inventory state.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"rev": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"minLength": 1,
|
|
11
|
+
"description": "With handle: the target's OWN rev, copied verbatim from its row in spellkave_scene — not the listing envelope's top-level rev (stable per-target handles, freshness gated per target). Omit when addressing by target_id."
|
|
12
|
+
},
|
|
13
|
+
"handle": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 2,
|
|
16
|
+
"description": "Stable scene target handle, e.g. s:exit:32 or s:actor:7 — copied from spellkave_scene. 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 and spellkave_communicate take (entity:156, item:157, actor:7): reads a current scene target or an item:N child disclosed through an exposed container, and returns its rev. 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,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_self_states",
|
|
3
|
+
"label": "Spellkave Self Sheet",
|
|
4
|
+
"description": "Page through the connected actor's authorized state pools, conditions, capabilities, identity facets, recent evaluation history, or action-economy channel spends. Use kind=condition for condition continuation, kind=capability for the actor's own trained/granted capabilities, kind=identity for the actor's own species/class/background tags (static session-entry detail, with descriptions where the world declared them; fetch this once at session start rather than on every turn), kind=evaluation for the actor's own recent check outcomes (status and any resolved rolls — e.g. what a check rolled), most-recent-first, kind=economy for the actor's own action-economy channel standing (per channel: current-window spent_ms/window_start_ms, plus the last spend's cost_ms/remaining_ms — \"how much of my turn is left\"). State rows support authored state-id prefix and exact resource-tag filters. Evaluation rows support an exact provenance_id filter to look up a specific record (e.g. from an act receipt). Use next_cursor to continue.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"kind": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "state"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "condition"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "capability"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "string",
|
|
24
|
+
"const": "evaluation"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "string",
|
|
28
|
+
"const": "economy"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "string",
|
|
32
|
+
"const": "economy_budget"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "string",
|
|
36
|
+
"const": "identity"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"description": "Self-sheet row kind. Defaults to state."
|
|
40
|
+
},
|
|
41
|
+
"state_prefix": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Exact state_id prefix filter; valid only for kind=state."
|
|
44
|
+
},
|
|
45
|
+
"state_tag": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Exact authored resource tag filter; valid only for kind=state."
|
|
48
|
+
},
|
|
49
|
+
"provenance_id": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Exact provenance_id filter; valid only for kind=evaluation. Returns matched 1 and the row, or matched 0."
|
|
52
|
+
},
|
|
53
|
+
"limit": {
|
|
54
|
+
"type": "number",
|
|
55
|
+
"minimum": 1,
|
|
56
|
+
"maximum": 100,
|
|
57
|
+
"description": "Rows per page."
|
|
58
|
+
},
|
|
59
|
+
"cursor": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Opaque next_cursor from the prior page."
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"executionMode": "parallel",
|
|
66
|
+
"roles": [
|
|
67
|
+
"PLAYER"
|
|
68
|
+
],
|
|
69
|
+
"admission": {
|
|
70
|
+
"anyOf": [
|
|
71
|
+
{
|
|
72
|
+
"kind": "character"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"ports": []
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_self_summary",
|
|
3
|
+
"label": "Spellkave Self Summary",
|
|
4
|
+
"description": "Compact directly-controlled character summary — the RECURRING glance you re-fetch often (vitals/quest/conditions/capabilities), not a one-time sheet. Identity is the connected actor; no actor id is accepted. `conditions`, `vitals`, `quest`, and `capabilities` are each a bounded-collection envelope: `listing` is \"complete\" when `items` holds the whole authorized collection, or \"examples\" when it is a bounded slice with a machine-readable `continuation` {tool, args} for the rest. `vitals` and `quest` are world-driven: which states appear (and in what order) depends on the character; a character with no quest-tracking states correctly shows an empty `quest` bucket. Call spellkave_self_states with kind=state for the full authorized state set. `capabilities` holds the actor's own trained/granted capabilities; call spellkave_self_states with kind=capability for the full authorized set. Recent evaluation history (own rolls and check outcomes) is not part of this summary — call spellkave_self_states with kind=evaluation for it; act-tool results already carry the roll from the action that produced it. Identity (species/class/background/…) is not part of this summary either — it is static character data, not something that changes turn to turn, so it lives at spellkave_self_states with kind=identity: fetch that ONCE at session start for the detailed \"who am I\", and rely on this summary for everything that actually changes.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {}
|
|
8
|
+
},
|
|
9
|
+
"executionMode": "parallel",
|
|
10
|
+
"roles": [
|
|
11
|
+
"PLAYER"
|
|
12
|
+
],
|
|
13
|
+
"admission": {
|
|
14
|
+
"anyOf": [
|
|
15
|
+
{
|
|
16
|
+
"kind": "character"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"ports": []
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_sense",
|
|
3
|
+
"label": "Spellkave Sense",
|
|
4
|
+
"description": "Attempt one typed sensing query from spellkave_sense_context. The world freshly selects and authorizes the outcome; a returned query is discovery data, never a success guarantee.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"query_kind",
|
|
9
|
+
"visibility"
|
|
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
|
+
"query_kind": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Authored sensing query identifier from spellkave_sense_context (for example 'look'). The server authoritatively selects and validates it.",
|
|
47
|
+
"minLength": 1
|
|
48
|
+
},
|
|
49
|
+
"visibility": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Authored visibility class from spellkave_sense_context (for example 'Local').",
|
|
52
|
+
"minLength": 1
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"executionMode": "sequential",
|
|
57
|
+
"roles": [
|
|
58
|
+
"PLAYER"
|
|
59
|
+
],
|
|
60
|
+
"admission": {
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"kind": "character"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"ports": []
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_sense_context",
|
|
3
|
+
"label": "Spellkave Sense Context",
|
|
4
|
+
"description": "Read factual sensing syntax from the actor's visible place and niches, its visible capabilities, and public authored metadata. The returned queries are unassessed candidates, not eligibility promises; make one direct sensing attempt and let the world freshly authorize it.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {}
|
|
8
|
+
},
|
|
9
|
+
"executionMode": "parallel",
|
|
10
|
+
"roles": [
|
|
11
|
+
"PLAYER"
|
|
12
|
+
],
|
|
13
|
+
"admission": {
|
|
14
|
+
"anyOf": [
|
|
15
|
+
{
|
|
16
|
+
"kind": "character"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"kind": "prefix",
|
|
20
|
+
"prefix": "frontier."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"ports": [],
|
|
24
|
+
"argumentGates": [
|
|
25
|
+
"Caller-owned acting context only; presence is nonspatial and conveys no NPC consent."
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_session_close",
|
|
3
|
+
"label": "Spellkave Session Close",
|
|
4
|
+
"description": "Close an interaction session for the active actor via the approved r_session_close path. Success is state-observed.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"session_id",
|
|
9
|
+
"outcome"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"control_tokens": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"required": [
|
|
17
|
+
"world_instance_id",
|
|
18
|
+
"generation",
|
|
19
|
+
"actor_id",
|
|
20
|
+
"body_entity_id"
|
|
21
|
+
],
|
|
22
|
+
"properties": {
|
|
23
|
+
"world_instance_id": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1
|
|
26
|
+
},
|
|
27
|
+
"generation": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"pattern": "^[0-9]+$"
|
|
30
|
+
},
|
|
31
|
+
"actor_id": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^[0-9]+$"
|
|
34
|
+
},
|
|
35
|
+
"body_entity_id": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[0-9]+$"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"minItems": 1,
|
|
42
|
+
"maxItems": 64,
|
|
43
|
+
"description": "Original control observations for every Service participant you directly drive. Copy the observations from the decision snapshot; stale, missing or held observations refuse the whole close before any effects."
|
|
44
|
+
},
|
|
45
|
+
"session_id": {
|
|
46
|
+
"type": "number",
|
|
47
|
+
"description": "Session id to close.",
|
|
48
|
+
"minimum": 0
|
|
49
|
+
},
|
|
50
|
+
"outcome": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Terminal session outcome: completed, abandoned, or failed.",
|
|
53
|
+
"minLength": 1
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"executionMode": "sequential",
|
|
58
|
+
"roles": [
|
|
59
|
+
"DM"
|
|
60
|
+
],
|
|
61
|
+
"admission": {
|
|
62
|
+
"anyOf": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "publisher"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"ports": [
|
|
68
|
+
"publisherRead"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_session_move",
|
|
3
|
+
"label": "Spellkave Session Move",
|
|
4
|
+
"description": "Submit a move within an interaction session for the active actor via the approved r_session_move path. Success is state-observed.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"session_id",
|
|
9
|
+
"move_template_id"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"session_id": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"description": "Session id to advance.",
|
|
15
|
+
"minimum": 0
|
|
16
|
+
},
|
|
17
|
+
"move_template_id": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Move template identifier to submit.",
|
|
20
|
+
"minLength": 1
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"executionMode": "sequential",
|
|
25
|
+
"roles": [
|
|
26
|
+
"DM"
|
|
27
|
+
],
|
|
28
|
+
"admission": {
|
|
29
|
+
"anyOf": [
|
|
30
|
+
{
|
|
31
|
+
"kind": "publisher"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"ports": [
|
|
35
|
+
"publisherRead"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_session_open",
|
|
3
|
+
"label": "Spellkave Session Open",
|
|
4
|
+
"description": "Open an interaction session (e.g. dialogue, combat) for bodies the caller directly controls via r_session_open. Seeing a body through a grant does not permit opening for it. Publisher maintenance may set up other participants. Success is provenance-observed.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"session_def_id"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"session_def_id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Session definition identifier to open.",
|
|
14
|
+
"minLength": 1
|
|
15
|
+
},
|
|
16
|
+
"participants_csv": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Optional comma-separated participant body ids the caller directly controls. Defaults to empty."
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"executionMode": "sequential",
|
|
23
|
+
"roles": [
|
|
24
|
+
"DM"
|
|
25
|
+
],
|
|
26
|
+
"admission": {
|
|
27
|
+
"anyOf": [
|
|
28
|
+
{
|
|
29
|
+
"kind": "publisher"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"ports": [
|
|
33
|
+
"publisherRead"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_session_status",
|
|
3
|
+
"label": "Spellkave Session Status",
|
|
4
|
+
"description": "Summarize the connected actor's in-world turn/scene (not the MCP connection): lifecycle, roster order, and whose turn it is. Accepts no session or actor id. `no_session` still allows exploration. The orientation tool also includes this in-world session state.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"limit": {
|
|
9
|
+
"type": "integer",
|
|
10
|
+
"minimum": 1,
|
|
11
|
+
"maximum": 100,
|
|
12
|
+
"description": "Ongoing sessions per page; implies detail."
|
|
13
|
+
},
|
|
14
|
+
"cursor": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Continuation from ongoing.next_cursor; implies detail. Restart without cursor if the list changes."
|
|
17
|
+
},
|
|
18
|
+
"detail": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"description": "Include authorized operation details and world-tick timing, including initiated and external-wait phases."
|
|
21
|
+
},
|
|
22
|
+
"session_id": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"pattern": "^[0-9]+$",
|
|
25
|
+
"description": "Read details for a previously observed session, including its terminal state. Requires participation; implies detail."
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"executionMode": "parallel",
|
|
30
|
+
"roles": [
|
|
31
|
+
"PLAYER"
|
|
32
|
+
],
|
|
33
|
+
"admission": {
|
|
34
|
+
"anyOf": [
|
|
35
|
+
{
|
|
36
|
+
"kind": "character"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"ports": []
|
|
40
|
+
}
|
|
41
|
+
}
|