@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.
Files changed (121) hide show
  1. package/LICENSE +89 -0
  2. package/package.json +50 -0
  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
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "spellkave_entity",
3
+ "label": "Spellkave Entity",
4
+ "description": "Read an entity's identity row by entity_id (numeric id, 'entity:N', or a manifest key) — entity_def_id, name, kind, and stack quantity — or null if it does not resolve. General-purpose quantity surface outside the PLAYER inventory flow (e.g. verifying a coin stack shrank by a purchase price, or a purchased ware landed with the right count); spellkave_inventory and spellkave_item_detail also carry quantity, while spellkave_entity_container exposes containment only, never quantity.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "entity_id"
9
+ ],
10
+ "properties": {
11
+ "entity_id": {
12
+ "type": "string",
13
+ "description": "Entity identifier (numeric id, 'entity:N', or a manifest key). Returns its identity row — entity_def_id, name, kind, and stack quantity — or null if it does not resolve. General-purpose quantity surface outside the PLAYER inventory flow (spellkave_inventory and spellkave_item_detail also carry quantity); spellkave_entity_container returns containment only, never quantity.",
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_entity_body",
3
+ "label": "Spellkave Entity Body",
4
+ "description": "Read the body row for an entity, or null if it has none.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "entity_id"
9
+ ],
10
+ "properties": {
11
+ "entity_id": {
12
+ "type": "string",
13
+ "description": "Entity identifier. Returns its body row, or null if it has none.",
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_entity_container",
3
+ "label": "Spellkave Entity Container",
4
+ "description": "Read the container that holds a given entity, or null if it is not contained.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "entity_id"
9
+ ],
10
+ "properties": {
11
+ "entity_id": {
12
+ "type": "string",
13
+ "description": "Contained entity identifier. Returns the container that holds it, or null if it is not contained.",
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,49 @@
1
+ {
2
+ "name": "spellkave_equip_item",
3
+ "label": "Equip Item (verb)",
4
+ "description": "sk-9ll.3: equip an already-placed, already-stowed item into a named equipment slot on an actor (actor_equipment_slots, upsert-by-(actor_entity_key, slot_id)) — folds the 'give the hero a starter weapon' idiom's raw actor_equipment_slots write into one checked call. `slot_id` existence and `item_entity_key`'s existence/placeability are enforced by the SAME validator the linter and manifest admission use (no bespoke re-check here); THIS call's own precondition is the one thing only it can see across separate tool calls — a slot already occupied by a DIFFERENT item is a hard rejection (matches the runtime EquipItem affordance's SlotAlreadyOccupied check), while re-equipping the SAME item into the SAME slot is idempotent.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "actor_entity_key",
9
+ "item_entity_key",
10
+ "slot_id"
11
+ ],
12
+ "properties": {
13
+ "bundle": {
14
+ "type": "string",
15
+ "description": "bundle_id stamped on the generated row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
16
+ },
17
+ "actor_entity_key": {
18
+ "type": "string",
19
+ "description": "actor_equipment_slots.actor_entity_key — must already carry an actor_spatial_locations row (workspace, live, or the active target); place it first via spellkave_place_actor."
20
+ },
21
+ "item_entity_key": {
22
+ "type": "string",
23
+ "description": "actor_equipment_slots.item_key — an already-authored entities row that entity_containment already places inside actor_entity_key (stow it first via spellkave_stow_item)."
24
+ },
25
+ "slot_id": {
26
+ "type": "string",
27
+ "description": "actor_equipment_slots.slot_id — must already resolve to an authored equipment_slot_definitions row."
28
+ }
29
+ }
30
+ },
31
+ "executionMode": "sequential",
32
+ "roles": [
33
+ "AUTHOR"
34
+ ],
35
+ "admission": {
36
+ "anyOf": [
37
+ {
38
+ "kind": "all",
39
+ "capabilities": [
40
+ "frontier.apply_manifest"
41
+ ]
42
+ },
43
+ {
44
+ "kind": "publisher"
45
+ }
46
+ ],
47
+ "ports": []
48
+ }
49
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "spellkave_eval",
3
+ "label": "Evaluate DSL Expression",
4
+ "description": "Evaluate a Spellkave DSL expression offline using the wasm-compiled resolution evaluator. Accepts expression source, kind (predicate, int, or text), author-supplied facts grouped by subject or pool, and die faces in draw order. Returns the result value with its type, draws used, and evaluation trace, or a named rejection naming the cause.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "expression",
9
+ "kind"
10
+ ],
11
+ "properties": {
12
+ "expression": {
13
+ "type": "string",
14
+ "description": "DSL source text to evaluate offline."
15
+ },
16
+ "kind": {
17
+ "anyOf": [
18
+ {
19
+ "type": "string",
20
+ "const": "predicate"
21
+ },
22
+ {
23
+ "type": "string",
24
+ "const": "int"
25
+ },
26
+ {
27
+ "type": "string",
28
+ "const": "text"
29
+ }
30
+ ],
31
+ "description": "Expression result kind: 'predicate', 'int', or 'text'."
32
+ },
33
+ "facts": {
34
+ "type": "object",
35
+ "patternProperties": {
36
+ "^.*$": {}
37
+ },
38
+ "description": "The values the expression reads, grouped by subject (actor, target, location, session, world, actor.wielded_item, equipped items, bindings, event), plus roll_tables, item_sources, roll_modifier_bias, event_kind, occupants_at, peers_near_target, channel_pools. Validated strictly in Rust."
39
+ },
40
+ "dice": {
41
+ "type": "array",
42
+ "items": {
43
+ "type": "integer",
44
+ "minimum": 1
45
+ },
46
+ "description": "Die faces in draw order consumed by stochastic roll operators and roll tables."
47
+ }
48
+ },
49
+ "additionalProperties": false
50
+ },
51
+ "executionMode": "parallel",
52
+ "promptSnippet": "Evaluate a DSL expression offline with traced execution and fixed dice",
53
+ "promptGuidelines": [
54
+ "spellkave_eval: evaluate offline; no running node or connection needed.",
55
+ "spellkave_eval: false predicate returns ok=true with value={type:'Bool', value:false}; check errors and bounds reject with ok=false."
56
+ ],
57
+ "cli": {
58
+ "positionals": [
59
+ "expression"
60
+ ],
61
+ "examples": [
62
+ {
63
+ "command": "sk eval \"1d20 + actor.stat('demo/bonus') >= target.stat('demo/threshold')\" --kind predicate --facts '{\"actor\":{\"stat\":{\"demo/bonus\":3}},\"target\":{\"stat\":{\"demo/threshold\":15}}}' --dice 12",
64
+ "description": "evaluate an attack roll offline against supplied stats"
65
+ },
66
+ {
67
+ "command": "sk eval \"1d8 + 3\" --kind int --dice 6",
68
+ "description": "evaluate a damage roll offline with fixed dice"
69
+ }
70
+ ]
71
+ },
72
+ "roles": [
73
+ "AUTHOR"
74
+ ],
75
+ "admission": {
76
+ "anyOf": [
77
+ {
78
+ "kind": "prefix",
79
+ "prefix": "frontier."
80
+ },
81
+ {
82
+ "kind": "publisher"
83
+ }
84
+ ],
85
+ "ports": []
86
+ }
87
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "spellkave_events",
3
+ "label": "Spellkave Events",
4
+ "description": "Read recent Spellkave world events from the SDK snapshot. The `spellkave_events` tool no longer lists another session's session lifecycle, in-session frame, turn-boundary, or action-economy header rows for unrelated plain players; participants and callers with an extent grant that covers a participant still see those rows.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "properties": {
8
+ "limit": {
9
+ "type": "number",
10
+ "description": "Maximum number of recent events to read.",
11
+ "minimum": 1,
12
+ "maximum": 100
13
+ }
14
+ }
15
+ },
16
+ "executionMode": "parallel",
17
+ "roles": [
18
+ "DM"
19
+ ],
20
+ "admission": {
21
+ "anyOf": [
22
+ {
23
+ "kind": "publisher"
24
+ }
25
+ ],
26
+ "ports": [
27
+ "publisherRead"
28
+ ]
29
+ }
30
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "spellkave_explain",
3
+ "label": "Spellkave Explain",
4
+ "description": "Read authored role, binding, capability or extent-kind vocabulary. Files include the workspace closure and kernel bootstrap; live reads the connected world. Role answers include merged capabilities, contributing bundles and bound-to rows. Binding answers inspect the exact binding ID, its state, scope and derived elevation; identity details are self-only unless the publisher reads them. This grants no authority.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "kind",
9
+ "id"
10
+ ],
11
+ "properties": {
12
+ "kind": {
13
+ "anyOf": [
14
+ {
15
+ "type": "string",
16
+ "const": "verb"
17
+ },
18
+ {
19
+ "type": "string",
20
+ "const": "persona"
21
+ },
22
+ {
23
+ "type": "string",
24
+ "const": "role"
25
+ },
26
+ {
27
+ "type": "string",
28
+ "const": "binding"
29
+ },
30
+ {
31
+ "type": "string",
32
+ "const": "capability"
33
+ },
34
+ {
35
+ "type": "string",
36
+ "const": "extent-kind"
37
+ },
38
+ {
39
+ "type": "string",
40
+ "const": "place"
41
+ }
42
+ ]
43
+ },
44
+ "id": {
45
+ "type": "string"
46
+ },
47
+ "target": {
48
+ "anyOf": [
49
+ {
50
+ "type": "string",
51
+ "const": "files"
52
+ },
53
+ {
54
+ "type": "string",
55
+ "const": "live"
56
+ }
57
+ ]
58
+ }
59
+ }
60
+ },
61
+ "executionMode": "parallel",
62
+ "cli": {
63
+ "positionals": [
64
+ "kind",
65
+ "id"
66
+ ]
67
+ },
68
+ "roles": [
69
+ "AUTHOR"
70
+ ],
71
+ "admission": {
72
+ "anyOf": [
73
+ {
74
+ "kind": "prefix",
75
+ "prefix": "frontier."
76
+ },
77
+ {
78
+ "kind": "publisher"
79
+ }
80
+ ],
81
+ "ports": []
82
+ }
83
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "spellkave_export",
3
+ "label": "Export Manifest",
4
+ "description": "Reconstruct a live bundle via r_export_manifest (ADR-0086 snapshot semantics, ADR-0149 publisher only) and write TOML. The caller must be the module publisher; any other caller is refused with MF-EXPORT-001. Optional actor= keeps only that entity and what hangs off it (containment, owned_by, equipment). Requires a live connection. Pass exactly one of out= or out_dir=.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "bundle"
9
+ ],
10
+ "properties": {
11
+ "bundle": {
12
+ "type": "string",
13
+ "description": "bundle_id to reconstruct via r_export_manifest (ADR-0086)."
14
+ },
15
+ "actor": {
16
+ "type": "string",
17
+ "description": "entity_key of the hero to keep. When set, only that actor and what hangs off it remain."
18
+ },
19
+ "out": {
20
+ "type": "string",
21
+ "description": "Write the rendered TOML to this file path."
22
+ },
23
+ "out_dir": {
24
+ "type": "string",
25
+ "description": "Write <slug>.toml into this directory (slug from --actor, else the bundle id)."
26
+ }
27
+ }
28
+ },
29
+ "executionMode": "sequential",
30
+ "promptSnippet": "Export a live bundle (optionally one actor) to TOML via r_export_manifest",
31
+ "promptGuidelines": [
32
+ "spellkave_export: call with bundle= and out= (or out_dir=) after --live is wired.",
33
+ "spellkave_export: pass actor= to keep only that hero and hanging items/tags/state."
34
+ ],
35
+ "cli": {
36
+ "positionals": [
37
+ "bundle"
38
+ ],
39
+ "examples": [
40
+ {
41
+ "command": "sk --live export elven_mini --actor elven_mini/adventure/hero_1 --out hero.toml",
42
+ "description": "export the staged hero as a standalone TOML save"
43
+ }
44
+ ]
45
+ },
46
+ "roles": [
47
+ "AUTHOR"
48
+ ],
49
+ "admission": {
50
+ "anyOf": [
51
+ {
52
+ "kind": "publisher"
53
+ }
54
+ ],
55
+ "ports": [
56
+ "exportManifest",
57
+ "node"
58
+ ],
59
+ "inputModes": [
60
+ "local"
61
+ ],
62
+ "limitations": [
63
+ "Publisher whole-world export; unavailable on hosted user routes."
64
+ ]
65
+ }
66
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "spellkave_export_grants",
3
+ "label": "Export grants",
4
+ "description": "Return an artifact of authorized world-owned runtime bindings with source world instance, tick, endpoint, original expiry, digest and complete or scoped coverage. Only a complete publisher export is a reset backup. Optional out uses a host filesystem; hosted delivery returns the artifact.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "properties": {
8
+ "out": {
9
+ "type": "string"
10
+ }
11
+ }
12
+ },
13
+ "executionMode": "sequential",
14
+ "cli": {
15
+ "positionals": [],
16
+ "examples": [
17
+ {
18
+ "command": "sk grants export",
19
+ "description": "Export grants"
20
+ }
21
+ ]
22
+ },
23
+ "roles": [
24
+ "AUTHOR"
25
+ ],
26
+ "authority": {
27
+ "kind": "role-binding",
28
+ "readSubject": true
29
+ },
30
+ "admission": {
31
+ "anyOf": [
32
+ {
33
+ "kind": "publisher"
34
+ },
35
+ {
36
+ "kind": "prefix",
37
+ "prefix": "frontier.bind."
38
+ },
39
+ {
40
+ "kind": "role-capabilities"
41
+ }
42
+ ],
43
+ "ports": [
44
+ "grants"
45
+ ],
46
+ "argumentGates": [
47
+ "Actual role, old/new binding coverage, batch bounds and destination-instance guards are checked by D-6 on the server."
48
+ ]
49
+ }
50
+ }
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "spellkave_get",
3
+ "label": "Get",
4
+ "description": "Read running-world instance rows from the publisher owner cache or a separate caller-scoped reader. Scoped reads support entities, actors, actor_spatial_locations, actor_capabilities, actor_equipment_slots, entity_containment, entity_tag and object_state with binding-held Hidden/Internal read authority. Answers include caller/world source epochs and complete, masked or incomplete coverage; inaccessible keys report not_found_in_scope. Does not read files or workspace scratch.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "kind"
9
+ ],
10
+ "properties": {
11
+ "kind": {
12
+ "type": "string",
13
+ "description": "Instance row kind: entities, actors, actor_spatial_locations, actor_capabilities, actor_equipment_slots, entity_containment, entity_tag, or object_state."
14
+ },
15
+ "key": {
16
+ "type": "string",
17
+ "description": "Key field values joined with :: in schema natural- or storage-key order. Omit to list."
18
+ },
19
+ "bundle": {
20
+ "type": "string",
21
+ "description": "bundle_id. Omit when the authored key is unique."
22
+ },
23
+ "pattern": {
24
+ "type": "string",
25
+ "description": "Substring filter on key fields for listings."
26
+ },
27
+ "fields": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "string"
31
+ },
32
+ "description": "Listing columns. Omit for the compact preferred set. Key fields are always kept. Keyed get ignores this (whole row)."
33
+ },
34
+ "limit": {
35
+ "type": "integer",
36
+ "minimum": 0,
37
+ "description": "Listing cap (default 50)."
38
+ }
39
+ }
40
+ },
41
+ "executionMode": "sequential",
42
+ "promptSnippet": "Read instance rows from the running world by kind and authored key",
43
+ "cli": {
44
+ "positionals": [
45
+ "kind",
46
+ "key"
47
+ ],
48
+ "examples": [
49
+ {
50
+ "command": "sk get entities elven_mini/adventure/item/loft_chest_1",
51
+ "description": "read the loft chest by authored key"
52
+ },
53
+ {
54
+ "command": "sk get entities --bundle elven_mini",
55
+ "description": "list authored entities in the bundle"
56
+ }
57
+ ]
58
+ },
59
+ "roles": [
60
+ "AUTHOR"
61
+ ],
62
+ "admission": {
63
+ "anyOf": [
64
+ {
65
+ "kind": "all",
66
+ "capabilities": [
67
+ "frontier.read_hidden"
68
+ ]
69
+ },
70
+ {
71
+ "kind": "all",
72
+ "capabilities": [
73
+ "frontier.read_internal"
74
+ ]
75
+ },
76
+ {
77
+ "kind": "publisher"
78
+ }
79
+ ],
80
+ "ports": [
81
+ "readInstance"
82
+ ],
83
+ "limitations": [
84
+ "Only scoped comparable instance kinds; explicit incomplete coverage."
85
+ ]
86
+ }
87
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "spellkave_grant_role",
3
+ "label": "Grant role",
4
+ "description": "Delegate a role through a binding-only manifest delta as the caller. Exact covering frontier.bind.<role> OR all nonempty merged role ids admit the request; no apply or prune privilege is required. Whole-world extent * requires complete inventory and never covers later roots or bundles.",
5
+ "parameters": {
6
+ "type": "object",
7
+ "required": [
8
+ "role",
9
+ "subject",
10
+ "extent_kind",
11
+ "extent"
12
+ ],
13
+ "properties": {
14
+ "role": {
15
+ "type": "string"
16
+ },
17
+ "subject": {
18
+ "type": "string"
19
+ },
20
+ "extent_kind": {
21
+ "type": "string",
22
+ "default": "place_graph"
23
+ },
24
+ "extent": {
25
+ "type": "string"
26
+ },
27
+ "expires_at_tick": {
28
+ "type": "string",
29
+ "pattern": "^[0-9]+$"
30
+ },
31
+ "description": {
32
+ "type": "string"
33
+ },
34
+ "bundle": {
35
+ "type": "string"
36
+ }
37
+ }
38
+ },
39
+ "executionMode": "sequential",
40
+ "cli": {
41
+ "positionals": [
42
+ "role",
43
+ "subject",
44
+ "extent"
45
+ ],
46
+ "examples": [
47
+ {
48
+ "command": "sk grant",
49
+ "description": "Grant role"
50
+ }
51
+ ]
52
+ },
53
+ "roles": [
54
+ "AUTHOR"
55
+ ],
56
+ "authority": {
57
+ "kind": "role-binding",
58
+ "readSubject": false
59
+ },
60
+ "admission": {
61
+ "anyOf": [
62
+ {
63
+ "kind": "publisher"
64
+ },
65
+ {
66
+ "kind": "prefix",
67
+ "prefix": "frontier.bind."
68
+ },
69
+ {
70
+ "kind": "role-capabilities"
71
+ }
72
+ ],
73
+ "ports": [
74
+ "grants"
75
+ ],
76
+ "argumentGates": [
77
+ "Actual role, old/new binding coverage, batch bounds and destination-instance guards are checked by D-6 on the server."
78
+ ]
79
+ }
80
+ }