@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,290 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_query",
|
|
3
|
+
"label": "Query Manifest / Definitions",
|
|
4
|
+
"description": "Read the authored world — merges the former spellkave_manifest_inspect + spellkave_lookup, plus the #1968 definition-lookup gap's missing single-row detail/ref-traversal capability, into ONE tool. Dispatch is inferred from which fields you pass (no mode flag): omit `kind` for a workspace/target summary (bundle ids + row-kind -> count map); pass `kind` alone (or with `pattern`) for a bounded catalog list (default ids-only; add fields:'preferred' or fields:[col,…] to project extra scalars — e.g. entities preferred yields name+place_node_id for who-is-where in one call); pass `kind` + `id` for the complete authored row, its source, and (by default) its outbound/inbound refs — chase a ref by re-calling this tool with its own {kind, id} (e.g. a capability -> its affordance_templates -> their action_definitions -> outcome_templates). Sources, in order: the workspace scratch manifest, plus the active connection-level `target` when wired, or the legacy live `context.db` when no target is configured (result.source says which). Offline with neither, this is workspace-only. `target` overrides the source for THIS call only (read-only — write verbs offer no such override).",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"explore": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"required": [
|
|
11
|
+
"operation"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"operation": {
|
|
15
|
+
"anyOf": [
|
|
16
|
+
{
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "summary"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "search"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "string",
|
|
26
|
+
"const": "detail"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "string",
|
|
30
|
+
"const": "neighbors"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "string",
|
|
34
|
+
"const": "references"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "string",
|
|
38
|
+
"const": "field"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"source": {
|
|
43
|
+
"anyOf": [
|
|
44
|
+
{
|
|
45
|
+
"type": "string",
|
|
46
|
+
"const": "live"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "string",
|
|
50
|
+
"const": "workspace"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "string",
|
|
54
|
+
"const": "local"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"source_id": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"maxLength": 64,
|
|
61
|
+
"description": "The `source.source_id` of the response that returned `ref`/`within`. Required with `ref` and `within`; another source, world or connection is refused."
|
|
62
|
+
},
|
|
63
|
+
"collection": {
|
|
64
|
+
"anyOf": [
|
|
65
|
+
{
|
|
66
|
+
"type": "string",
|
|
67
|
+
"const": "places"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "string",
|
|
71
|
+
"const": "definitions"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "string",
|
|
75
|
+
"const": "instances"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"facets": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "Summary only: include definition counts by kind and detailed authored tag facets. Default false; the compact summary offers this as a follow-up."
|
|
82
|
+
},
|
|
83
|
+
"view": {
|
|
84
|
+
"anyOf": [
|
|
85
|
+
{
|
|
86
|
+
"type": "string",
|
|
87
|
+
"const": "objects"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "string",
|
|
91
|
+
"const": "rows"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"description": "Summary/search/neighbors only. Default objects: instance bodies once, without tag rows. Explicit kind selects rows. Use rows for the technical inventory."
|
|
95
|
+
},
|
|
96
|
+
"text": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"maxLength": 512
|
|
99
|
+
},
|
|
100
|
+
"tags": {
|
|
101
|
+
"type": "array",
|
|
102
|
+
"items": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"maxLength": 256
|
|
105
|
+
},
|
|
106
|
+
"maxItems": 16,
|
|
107
|
+
"description": "Summary: count these literal tags separately on definitions and distinct objects. Search: require all tags. Tags are never inherited from definitions."
|
|
108
|
+
},
|
|
109
|
+
"kind": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"bundle": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"within": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"required": [
|
|
118
|
+
"kind",
|
|
119
|
+
"id"
|
|
120
|
+
],
|
|
121
|
+
"properties": {
|
|
122
|
+
"kind": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"id": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
},
|
|
128
|
+
"bundle": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"additionalProperties": false
|
|
133
|
+
},
|
|
134
|
+
"ref": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"required": [
|
|
137
|
+
"kind",
|
|
138
|
+
"id"
|
|
139
|
+
],
|
|
140
|
+
"properties": {
|
|
141
|
+
"kind": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"id": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"bundle": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"additionalProperties": false
|
|
152
|
+
},
|
|
153
|
+
"direction": {
|
|
154
|
+
"anyOf": [
|
|
155
|
+
{
|
|
156
|
+
"type": "string",
|
|
157
|
+
"const": "outbound"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "string",
|
|
161
|
+
"const": "inbound"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"field": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"offset": {
|
|
169
|
+
"type": "integer",
|
|
170
|
+
"minimum": 0
|
|
171
|
+
},
|
|
172
|
+
"fields": {
|
|
173
|
+
"type": "array",
|
|
174
|
+
"items": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"maxLength": 256
|
|
177
|
+
},
|
|
178
|
+
"maxItems": 16,
|
|
179
|
+
"description": "search/detail only: scalar names from the collection schema for search, or the selected row kind's schema for detail; `label` is also selectable."
|
|
180
|
+
},
|
|
181
|
+
"limit": {
|
|
182
|
+
"type": "integer",
|
|
183
|
+
"minimum": 1,
|
|
184
|
+
"maximum": 100,
|
|
185
|
+
"description": "Page size. Default 12 tag facets for summary, 5 for search (ranked: label equals, starts with, contains, then other text), 20 otherwise."
|
|
186
|
+
},
|
|
187
|
+
"cursor": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"maxLength": 16384
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"additionalProperties": false,
|
|
193
|
+
"description": "Bounded admitted discovery. Summary inventories all three collections with coverage and per-kind counts (incomplete kinds are lower bounds). Instance summary/search count objects once by default; view rows preserves technical rows and explicit kind selects rows. Defaults to live; search collection follows kind, otherwise unrestricted text searches all collections and empty text defaults to places. An explicit collection must agree with kind. Explicit workspace/local source is never unioned. Follow exact returned references; no read grants write permission."
|
|
194
|
+
},
|
|
195
|
+
"kind": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"description": "A manifest row-kind name (a ROW_KIND_NATURAL_KEY key — e.g. 'capability_definitions', 'affordance_templates', 'action_definitions', 'outcome_templates', 'entity_definitions', 'area_shape_definitions', 'resource_definitions'), the SAME vocabulary spellkave_write_rows and every define_* verb already use — not a closed enum. Also accepts a `*_tag` satellite kind (e.g. 'resource_definition_tag', 'capability_definition_tag') — these have a TWO-field composite key (parent id + tag) instead of a single natural key; see `schema: true` for the field order. Omit for a workspace/target summary (bundle ids + a row-kind -> count map) instead of listing one kind."
|
|
198
|
+
},
|
|
199
|
+
"id": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"description": "An exact natural-key value within `kind` — returns the complete authored row (detail shape), its source, and (by default) its refs. For a composite-keyed `*_tag` satellite kind, this is its ordered key fields' values joined by '::' (e.g. 'srd/wis::ability_score' for resource_definition_tag's `{resource_definition_id, tag}` — get the exact ids from a `kind`-only list call first). Mutually exclusive with `pattern`; requires `kind`."
|
|
202
|
+
},
|
|
203
|
+
"pattern": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"description": "A substring filter on `kind`'s ids (its natural-key value, or its '::'-joined composite-key value for a `*_tag` satellite kind) — returns a filtered list instead of the full catalog. Mutually exclusive with `id`; requires `kind`."
|
|
206
|
+
},
|
|
207
|
+
"bundle": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "Restrict to rows stamped with this bundle_id (summary/list shapes only)."
|
|
210
|
+
},
|
|
211
|
+
"fields": {
|
|
212
|
+
"anyOf": [
|
|
213
|
+
{
|
|
214
|
+
"type": "string",
|
|
215
|
+
"const": "preferred"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"minLength": 1
|
|
222
|
+
},
|
|
223
|
+
"minItems": 1
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"description": "List shape only (`kind` without `id`; ignored for detail/summary/schema). Default (omit): token-safe catalog — each item is only `{ id, bundle_id? }`. `preferred`: project a small kind-specific field set (e.g. entities → name, place_node_id, kind, entity_def_id) so one list call can answer who-is-where without N detail round-trips. Explicit string[]: project exactly those column names from each row (unknown/missing names omitted; nested values skipped). `id` is always present; `bundle_id` is included when the row has it."
|
|
227
|
+
},
|
|
228
|
+
"refs": {
|
|
229
|
+
"anyOf": [
|
|
230
|
+
{
|
|
231
|
+
"type": "string",
|
|
232
|
+
"const": "none"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "string",
|
|
236
|
+
"const": "outbound"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"type": "string",
|
|
240
|
+
"const": "both"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"description": "Detail shape only (`kind`+`id`; ignored otherwise). 'outbound': fields on this row pointing elsewhere (already-computed string-ref heuristic). 'both' additionally computes inbound_refs — every OTHER row anywhere in the resolved source whose own outbound ref points AT this row, grouped by referencing kind — so a caller traverses a chain (e.g. capability -> affordance -> action -> outcome) by re-calling spellkave_query with a ref's own {kind, id}, no separate traversal tool needed. Default: 'both' when `id` is set."
|
|
244
|
+
},
|
|
245
|
+
"target": {
|
|
246
|
+
"anyOf": [
|
|
247
|
+
{
|
|
248
|
+
"type": "string",
|
|
249
|
+
"const": "workspace"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"type": "string",
|
|
253
|
+
"const": "local"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"type": "string",
|
|
257
|
+
"const": "live"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"description": "#1968 connection-level target override (READ-only — no write verb offers this): 'workspace' reads ONLY the workspace scratch manifest, ignoring any connection-level target/live db this call would otherwise consult. 'local' reads ONLY the active local folder target — errors if none is configured. 'live' reads ONLY the active live target (or the legacy live db when no target is wired at all) — errors if neither is available. Omit for the default union: workspace + whatever is configured (result.source says which)."
|
|
261
|
+
},
|
|
262
|
+
"schema": {
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"description": "Ask what a row of `kind` may CONTAIN instead of which rows exist (#1983): with `kind`, that row kind's required fields, field types, and natural/composite key; without `kind`, the row-kind vocabulary itself (every kind the manifest schema defines, flagged for whether this tool can also list its rows). Schema covers all 79 manifest row kinds — a superset of the ~53 `id`/`pattern` can address: the 40 with a single-column natural key, plus the `*_tag` satellite kinds and `tag_capability_grant` with a two-field composite key (finding #9; sk-bwd). Ignores `id`/`pattern`/`bundle`/`target`: a row kind's shape is the same everywhere, so no source is consulted."
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"executionMode": "parallel",
|
|
269
|
+
"promptSnippet": "Inspect authored/live rows and definitions by kind and id, or list what exists",
|
|
270
|
+
"promptGuidelines": [
|
|
271
|
+
"Use spellkave_query before spellkave_write_rows or a define_* verb to confirm an id doesn't already exist, or to check whether a referenced niche_id/capability_id/entity_def is already authored.",
|
|
272
|
+
"Call spellkave_query with kind+id to fetch one row's full detail and inbound/outbound references — chase a reference by re-calling spellkave_query with the ref's own {kind, id}.",
|
|
273
|
+
"Place graph + who-is-where: spellkave_map_graph, then spellkave_query kind=entities fields=preferred (group by place_node_id). Default list is ids-only — request fields when you need columns. Deeper playbook: spellkave_docs doc=place-graph-occupancy (only if needed)."
|
|
274
|
+
],
|
|
275
|
+
"roles": [
|
|
276
|
+
"AUTHOR"
|
|
277
|
+
],
|
|
278
|
+
"admission": {
|
|
279
|
+
"anyOf": [
|
|
280
|
+
{
|
|
281
|
+
"kind": "prefix",
|
|
282
|
+
"prefix": "frontier."
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"kind": "publisher"
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"ports": []
|
|
289
|
+
}
|
|
290
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_react_option",
|
|
3
|
+
"label": "Spellkave React Option",
|
|
4
|
+
"description": "Execute one current handle for the connected actor — either a multi-actor reaction seat from spellkave_reaction_options, or a post-roll intervention window from spellkave_intervention_windows. For an intervention-window handle, omit selected_draw_index to decline (keep the original result, spend nothing) or pass the index of one of that window's listed faces to accept (spends its fuel resource and replaces exactly that face; the new roll must then be used). The handle only selects; the world independently revalidates sender, eligibility, and the window. On dispatch, the result carries `receipt` (what the world did) and a sibling `observation` (prose of what the actor perceived, or null + observation_gap when no authorized source backs this outcome). On a SUCCESSFUL dispatch with a host world-event builder wired, the result also carries `consequences`: same-tick, same-transaction WorldEvents THIS reaction deterministically caused — a THIRD register, distinct from `receipt`/`observation` (the reducer's own outcome) and from a LATER `pushes` drain off the same builder (world news, e.g. another agent's subsequent move). Omitted entirely when no builder is wired; `[]` when wired but nothing was caused.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"rev",
|
|
9
|
+
"handle",
|
|
10
|
+
"response_intent"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"rev": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"description": "Current reaction-window or intervention-window revision (matches the handle's domain)."
|
|
17
|
+
},
|
|
18
|
+
"handle": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 2,
|
|
21
|
+
"description": "A handle from spellkave_reaction_options (e.g. r2) or spellkave_intervention_windows (e.g. w0)."
|
|
22
|
+
},
|
|
23
|
+
"response_intent": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"description": "Authored or free-text response intent passed to the typed reaction reducer."
|
|
27
|
+
},
|
|
28
|
+
"selected_draw_index": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"minimum": 0,
|
|
31
|
+
"description": "Intervention windows only: the index (into that window's `faces`) of the already-drawn face to replace. Omit to decline — the original result stands and nothing is spent. Providing an index accepts: it spends the window's fuel resource and replaces exactly that one face; the new roll must then be used. Ignored (and should be omitted) for a plain spellkave_reaction_options seat."
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"executionMode": "sequential",
|
|
36
|
+
"roles": [
|
|
37
|
+
"PLAYER"
|
|
38
|
+
],
|
|
39
|
+
"admission": {
|
|
40
|
+
"anyOf": [
|
|
41
|
+
{
|
|
42
|
+
"kind": "character"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"ports": []
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_reaction_options",
|
|
3
|
+
"label": "Spellkave Reaction Options",
|
|
4
|
+
"description": "List the connected actor's open reaction seats with deadline and originating context. Uses revision-bound reaction handles; raw pending ids are never exposed.",
|
|
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,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_release_claim",
|
|
3
|
+
"label": "Spellkave Release Claim",
|
|
4
|
+
"description": "Release a claim/lock the active actor holds on a target (multiplayer contention) via the approved r_release_claim path. Success is provenance-observed.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"target_id"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"target_id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Target entity identifier whose claim/lock this actor releases (multiplayer contention).",
|
|
14
|
+
"minLength": 1
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"executionMode": "sequential",
|
|
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,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_remove_entity",
|
|
3
|
+
"label": "Remove Entity",
|
|
4
|
+
"description": "Remove a placed entity and its dependent instance rows from the active local root file, and clean matching staged scratch rows so a later flush cannot recreate it. Requires a local target; live targets are refused. Root headers, definitions and unrelated rows remain. Include-owned rows and surviving containment/ownership references are refused with recovery guidance before writes. Reports removed row counts. Does not change the running world: use diff/apply with prune separately.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"entity_key"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"entity_key": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"description": "Exact authored key of the placed entity to remove from the local root and staged scratch, e.g. my_adventure/torch. This edits files only; preview and apply world pruning separately."
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
},
|
|
19
|
+
"executionMode": "sequential",
|
|
20
|
+
"roles": [
|
|
21
|
+
"AUTHOR"
|
|
22
|
+
],
|
|
23
|
+
"admission": {
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"kind": "all",
|
|
27
|
+
"capabilities": [
|
|
28
|
+
"frontier.apply_manifest"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"kind": "publisher"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"ports": [
|
|
36
|
+
"node"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_render_scene",
|
|
3
|
+
"label": "Render scene",
|
|
4
|
+
"description": "Render a spellkave-scene/v1 data package, values and dependency TOML payloads into validated ordinary manifests and deterministic setup keys. Offline render never mutates or proves live admission. On a caller connection, preview pins a complete empty blueprint and the selected caller/world. Hosted calls accept payloads, never filesystem paths or executable packages.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"package",
|
|
9
|
+
"values",
|
|
10
|
+
"setup_name",
|
|
11
|
+
"dependencies"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"package": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"patternProperties": {
|
|
17
|
+
"^.*$": {}
|
|
18
|
+
},
|
|
19
|
+
"description": "Resolved spellkave-scene/v1 data package; no executable templates or filesystem paths."
|
|
20
|
+
},
|
|
21
|
+
"values": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"patternProperties": {
|
|
24
|
+
"^.*$": {}
|
|
25
|
+
},
|
|
26
|
+
"description": "Data values: anchor_id, optional bearing_deg and counts."
|
|
27
|
+
},
|
|
28
|
+
"setup_name": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[a-z0-9][a-z0-9._-]{0,63}$"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"maxItems": 32,
|
|
38
|
+
"description": "Resolved dependency TOML payloads for offline validation."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"additionalProperties": false
|
|
42
|
+
},
|
|
43
|
+
"executionMode": "sequential",
|
|
44
|
+
"roles": [
|
|
45
|
+
"AUTHOR"
|
|
46
|
+
],
|
|
47
|
+
"admission": {
|
|
48
|
+
"anyOf": [
|
|
49
|
+
{
|
|
50
|
+
"kind": "prefix",
|
|
51
|
+
"prefix": "frontier."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"kind": "publisher"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"ports": []
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_return_npc_control",
|
|
3
|
+
"label": "Return NPC Control",
|
|
4
|
+
"description": "Surrender your recorded NPC hold using the observed generation. The recorded holder may return even after losing steering authority.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"actor_id",
|
|
9
|
+
"world_instance_id",
|
|
10
|
+
"expected_generation",
|
|
11
|
+
"request_id",
|
|
12
|
+
"reason"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"actor_id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^[0-9]+$"
|
|
18
|
+
},
|
|
19
|
+
"world_instance_id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
},
|
|
23
|
+
"expected_generation": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"pattern": "^[0-9]+$"
|
|
26
|
+
},
|
|
27
|
+
"request_id": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"minLength": 1,
|
|
30
|
+
"maxLength": 128
|
|
31
|
+
},
|
|
32
|
+
"reason": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 1024
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"executionMode": "sequential",
|
|
40
|
+
"roles": [
|
|
41
|
+
"DM"
|
|
42
|
+
],
|
|
43
|
+
"admission": {
|
|
44
|
+
"anyOf": [
|
|
45
|
+
{
|
|
46
|
+
"kind": "all",
|
|
47
|
+
"capabilities": [
|
|
48
|
+
"frontier.impersonate"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"ports": [
|
|
53
|
+
"control"
|
|
54
|
+
],
|
|
55
|
+
"argumentGates": [
|
|
56
|
+
"Caller ownership, destination extent, current hold generation and server consent."
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_revoke_role",
|
|
3
|
+
"label": "Revoke role",
|
|
4
|
+
"description": "Retract a manageable binding through the same D-6-checked apply lane as the caller. No apply or prune privilege is required.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"binding_id"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"binding_id": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"executionMode": "sequential",
|
|
17
|
+
"cli": {
|
|
18
|
+
"positionals": [
|
|
19
|
+
"binding_id"
|
|
20
|
+
],
|
|
21
|
+
"examples": [
|
|
22
|
+
{
|
|
23
|
+
"command": "sk revoke",
|
|
24
|
+
"description": "Revoke role"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"roles": [
|
|
29
|
+
"AUTHOR"
|
|
30
|
+
],
|
|
31
|
+
"authority": {
|
|
32
|
+
"kind": "role-binding",
|
|
33
|
+
"readSubject": false
|
|
34
|
+
},
|
|
35
|
+
"admission": {
|
|
36
|
+
"anyOf": [
|
|
37
|
+
{
|
|
38
|
+
"kind": "publisher"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"kind": "prefix",
|
|
42
|
+
"prefix": "frontier.bind."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"kind": "role-capabilities"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"ports": [
|
|
49
|
+
"grants"
|
|
50
|
+
],
|
|
51
|
+
"argumentGates": [
|
|
52
|
+
"Actual role, old/new binding coverage, batch bounds and destination-instance guards are checked by D-6 on the server."
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|