@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,205 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_set_metadata",
|
|
3
|
+
"label": "Set Metadata",
|
|
4
|
+
"description": "Set open metadata with one flat target/key/value update or an explicit atomic updates batch. target 'manifest' replaces one root metadata key, target 'namespace' registers one namespace, and target {kind, ref} upserts one object annotation. Attachment identity follows live admission: target_kind + target_ref + namespace + bundle_id; source and payload are replaced on a repeat call. The shared validator owns namespace payload semantics and admitted target kinds.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"bundle": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Owning bundle for namespace and attachment updates. Omit to use context.defaultBundle; manifest updates need none."
|
|
11
|
+
},
|
|
12
|
+
"target": {
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "manifest"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "string",
|
|
20
|
+
"const": "namespace"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": [
|
|
25
|
+
"kind",
|
|
26
|
+
"ref"
|
|
27
|
+
],
|
|
28
|
+
"properties": {
|
|
29
|
+
"kind": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "An admitted metadata target kind. The shared manifest validator owns the current vocabulary; unsupported values fail at commit."
|
|
32
|
+
},
|
|
33
|
+
"ref": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "The admitted target's stable id/ref."
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"description": "Singleton form: 'manifest' for a top-level [metadata] key, 'namespace' to register a namespace, or {kind, ref} to attach metadata to an admitted target. Omit when passing updates[]."
|
|
42
|
+
},
|
|
43
|
+
"key": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "Singleton form: the top-level [metadata] key, or the metadata namespace for a registration or attachment."
|
|
46
|
+
},
|
|
47
|
+
"value": {
|
|
48
|
+
"description": "Singleton form: a JSON-compatible scalar, array, or object for target 'manifest'; {audience, description?} for target 'namespace'; an open metadata object for an attachment target."
|
|
49
|
+
},
|
|
50
|
+
"source": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Attachment source for the singleton attachment form; defaults to 'manifest'."
|
|
53
|
+
},
|
|
54
|
+
"audience": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Singleton attachment form: registers an absent namespace in this atomic call; never defaults."
|
|
57
|
+
},
|
|
58
|
+
"description": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Singleton attachment form: optional description when this call registers the namespace."
|
|
61
|
+
},
|
|
62
|
+
"updates": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"anyOf": [
|
|
66
|
+
{
|
|
67
|
+
"type": "object",
|
|
68
|
+
"required": [
|
|
69
|
+
"target",
|
|
70
|
+
"key",
|
|
71
|
+
"value"
|
|
72
|
+
],
|
|
73
|
+
"properties": {
|
|
74
|
+
"target": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"const": "manifest"
|
|
77
|
+
},
|
|
78
|
+
"key": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "Top-level [metadata] key to replace."
|
|
81
|
+
},
|
|
82
|
+
"value": {
|
|
83
|
+
"description": "A JSON-compatible scalar, array, or object. Open metadata has no shared docs/UI schema."
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"type": "object",
|
|
90
|
+
"required": [
|
|
91
|
+
"target",
|
|
92
|
+
"key",
|
|
93
|
+
"value"
|
|
94
|
+
],
|
|
95
|
+
"properties": {
|
|
96
|
+
"target": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"const": "namespace"
|
|
99
|
+
},
|
|
100
|
+
"key": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Namespace to register, e.g. 'mymod.hints'."
|
|
103
|
+
},
|
|
104
|
+
"value": {
|
|
105
|
+
"type": "object",
|
|
106
|
+
"required": [
|
|
107
|
+
"audience"
|
|
108
|
+
],
|
|
109
|
+
"properties": {
|
|
110
|
+
"audience": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"description": "Explicit namespace audience; no implicit default."
|
|
113
|
+
},
|
|
114
|
+
"description": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
"on_demand": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"description": "ADR-0130: reference content (rules text, creation data, docs) delivered only to a client that subscribes public_reference_metadata, never to a play session on connect. Defaults to false (kernel default) when omitted."
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"additionalProperties": false
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "object",
|
|
129
|
+
"required": [
|
|
130
|
+
"target",
|
|
131
|
+
"key",
|
|
132
|
+
"value"
|
|
133
|
+
],
|
|
134
|
+
"properties": {
|
|
135
|
+
"target": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"required": [
|
|
138
|
+
"kind",
|
|
139
|
+
"ref"
|
|
140
|
+
],
|
|
141
|
+
"properties": {
|
|
142
|
+
"kind": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "An admitted metadata target kind. The shared manifest validator owns the current vocabulary; unsupported values fail at commit."
|
|
145
|
+
},
|
|
146
|
+
"ref": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "The admitted target's stable id/ref."
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"additionalProperties": false
|
|
152
|
+
},
|
|
153
|
+
"key": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "Registered metadata namespace for this annotation."
|
|
156
|
+
},
|
|
157
|
+
"value": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"patternProperties": {
|
|
160
|
+
"^.*$": {}
|
|
161
|
+
},
|
|
162
|
+
"description": "An open JSON-compatible metadata object. Values are authored unchanged: this shared tool does not reserve a docs, UI, or ruleset schema."
|
|
163
|
+
},
|
|
164
|
+
"source": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"description": "Attachment source; defaults to 'manifest'."
|
|
167
|
+
},
|
|
168
|
+
"audience": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"description": "Registers an absent namespace in this atomic call; never defaults."
|
|
171
|
+
},
|
|
172
|
+
"description": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "Optional description when this call registers the namespace."
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"additionalProperties": false
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
"minItems": 1,
|
|
182
|
+
"description": "Explicit atomic batch. Do not combine with singleton target/key/value fields; every update is validated before anything persists."
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"additionalProperties": false
|
|
186
|
+
},
|
|
187
|
+
"executionMode": "sequential",
|
|
188
|
+
"roles": [
|
|
189
|
+
"AUTHOR"
|
|
190
|
+
],
|
|
191
|
+
"admission": {
|
|
192
|
+
"anyOf": [
|
|
193
|
+
{
|
|
194
|
+
"kind": "all",
|
|
195
|
+
"capabilities": [
|
|
196
|
+
"frontier.apply_manifest"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"kind": "publisher"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"ports": []
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_set_movement_default",
|
|
3
|
+
"label": "Set Movement Default",
|
|
4
|
+
"description": "Author a bundle- or graph-scoped default traversal mode (ADR-0101) — the primitive that makes ordinary walking need ZERO per-edge place_edge_affordance rows (A-1). Validates affordance_template_id (and place_graph_id, when given) both already resolve, then upserts by (bundle_id, place_graph_id, mode_id, affordance_template_id) — re-authoring the SAME scope+mode+template REPLACES bindings_json; a second template in the same scope+mode is a sibling row (AND-join); a distinct mode_id is a third alternative (OR, cheapest-mode charges).",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"affordance_template_id"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"bundle": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "movement_defaults.bundle_id. Omit to fall back to `context.defaultBundle`. ALWAYS the scope owner, even when place_graph_id narrows the row to one graph."
|
|
14
|
+
},
|
|
15
|
+
"place_graph_id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "movement_defaults.place_graph_id (default \"\" — bundle scope, applies to every edge in the bundle with no closer graph default). Set to scope this default to ONE place_graph instead (must already exist in workspace/live/target) — a graph-scoped default beats a bundle-scoped one for edges in that graph (D-2: edge > graph > bundle)."
|
|
18
|
+
},
|
|
19
|
+
"mode_id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "movement_defaults.mode_id (default \"\" — the implicit default mode, same open author-chosen vocabulary as spellkave_bind_edge_affordance's mode_id, e.g. \"fly\"). Rows sharing one (scope, mode_id) AND-join; a distinct mode_id under the same scope is an alternative the kernel OR-picks the cheapest passing one from."
|
|
22
|
+
},
|
|
23
|
+
"affordance_template_id": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "movement_defaults.affordance_template_id — must already resolve to an authored affordance_templates row (workspace, live, or the active target); this call does not auto-create it."
|
|
26
|
+
},
|
|
27
|
+
"bindings_json": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "movement_defaults.bindings_json (default \"\"). e.g. '{\"movement_reach_resource\":\"srd/speed-walk\",\"long_running_move_session\":\"srd/long_running_move\"}' for srd Step."
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"executionMode": "sequential",
|
|
34
|
+
"promptSnippet": "Author a bundle/graph-wide default traversal mode (no per-edge rows needed)",
|
|
35
|
+
"promptGuidelines": [
|
|
36
|
+
"Author ONE bundle-scoped default (omit place_graph_id) up front for ordinary walking — every edge inherits it unless its own inherit_movement_default is false.",
|
|
37
|
+
"place_graph_id scopes to one graph and wins over a bundle default there (edge > graph > bundle).",
|
|
38
|
+
"mode_id groups AND-joined rows in one mode; give a fly/swim alternative its own mode_id so the kernel treats it as an OR-alternative, not a conflicting AND-join.",
|
|
39
|
+
"Idempotent: re-calling with the same (bundle, place_graph_id, mode_id, affordance_template_id) replaces bindings_json in place."
|
|
40
|
+
],
|
|
41
|
+
"roles": [
|
|
42
|
+
"AUTHOR"
|
|
43
|
+
],
|
|
44
|
+
"admission": {
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"kind": "all",
|
|
48
|
+
"capabilities": [
|
|
49
|
+
"frontier.apply_manifest"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"kind": "publisher"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"ports": []
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_stage_scene",
|
|
3
|
+
"label": "Stage scene",
|
|
4
|
+
"description": "Explicitly stage an unmodified connected scene preview as the same caller in the expected world instance. Existing apply admission guards graph expansion and population; each phase reports committed, refused or unknown. Never retries an unknown result, resets a reused name or grants controller/deletion authority. Inspect the world before recovery; graph Despawn ejects occupants and leaves cleanup residuals.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"plan",
|
|
9
|
+
"expected_world_instance_id"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"plan": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"patternProperties": {
|
|
15
|
+
"^.*$": {}
|
|
16
|
+
},
|
|
17
|
+
"description": "Unmodified plan from a connected render_scene preview."
|
|
18
|
+
},
|
|
19
|
+
"expected_world_instance_id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"additionalProperties": false
|
|
25
|
+
},
|
|
26
|
+
"executionMode": "sequential",
|
|
27
|
+
"roles": [
|
|
28
|
+
"AUTHOR"
|
|
29
|
+
],
|
|
30
|
+
"admission": {
|
|
31
|
+
"anyOf": [
|
|
32
|
+
{
|
|
33
|
+
"kind": "all",
|
|
34
|
+
"capabilities": [
|
|
35
|
+
"frontier.apply_manifest"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "publisher"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"ports": [
|
|
43
|
+
"scenes"
|
|
44
|
+
],
|
|
45
|
+
"inputModes": [
|
|
46
|
+
"resolved scene plan payload"
|
|
47
|
+
],
|
|
48
|
+
"limitations": [
|
|
49
|
+
"Complete Internal source read and destination write authority required; cleanup coverage remains unknown."
|
|
50
|
+
],
|
|
51
|
+
"argumentGates": [
|
|
52
|
+
"Strict graph-only source guard and every phase world-instance guard recheck on the server."
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_status",
|
|
3
|
+
"label": "Spellkave Status",
|
|
4
|
+
"description": "Read current Spellkave world status from the SDK snapshot.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {}
|
|
8
|
+
},
|
|
9
|
+
"executionMode": "parallel",
|
|
10
|
+
"roles": [
|
|
11
|
+
"DM"
|
|
12
|
+
],
|
|
13
|
+
"admission": {
|
|
14
|
+
"anyOf": [
|
|
15
|
+
{
|
|
16
|
+
"kind": "publisher"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"ports": [
|
|
20
|
+
"publisherRead"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_stow_item",
|
|
3
|
+
"label": "Stow Item (verb)",
|
|
4
|
+
"description": "sk-9ll.3: place an already-authored entity inside a container (entity_containment, upsert-by-entity_key — a re-authored containment MOVES the entity, mirroring add-entity-containment's own upsert semantics). Folds the 'starter pack straight into the hero' / 'item straight onto its holder' idiom (container_entity_key omitted, defaults to actor_entity_key) AND the nested-container idiom (container_entity_key explicit, e.g. a torch into an already-stowed field kit) into one checked call, replacing a raw spellkave_write_rows entity_containment call.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"item_entity_key"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"bundle": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "bundle_id stamped on the generated row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
|
|
14
|
+
},
|
|
15
|
+
"actor_entity_key": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The actor stowing item_entity_key — must already carry an actor_spatial_locations row (workspace, live, or the active target); place it first via spellkave_place_actor. Also the DEFAULT container when container_entity_key is omitted. Omit it to put an item into a placed container with no actor involved (a potion in a chest): then container_entity_key is required."
|
|
18
|
+
},
|
|
19
|
+
"item_entity_key": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "entity_containment.entity_key — an already-placed entity (workspace or the active target) to move into container_entity_key (or actor_entity_key when container_entity_key is omitted)."
|
|
22
|
+
},
|
|
23
|
+
"container_entity_key": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "entity_containment.container_entity_key. Default actor_entity_key — the common 'give the actor this item directly' case (a starter weapon straight into the hero's inventory). Pass a DIFFERENT already-placed container (e.g. a field kit already stowed on the actor) to nest item_entity_key inside IT instead (the torch-inside-the-field-kit idiom)."
|
|
26
|
+
},
|
|
27
|
+
"slot_id": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "entity_containment.slot_id — machine-port slot id. Default '' (loose carriage — the common item-in-backpack/actor-holding-item case, not a machine port)."
|
|
30
|
+
},
|
|
31
|
+
"direction": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "entity_containment.direction — machine-port direction ('in'/'out'). Default '' (loose carriage)."
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"executionMode": "sequential",
|
|
38
|
+
"roles": [
|
|
39
|
+
"AUTHOR"
|
|
40
|
+
],
|
|
41
|
+
"admission": {
|
|
42
|
+
"anyOf": [
|
|
43
|
+
{
|
|
44
|
+
"kind": "all",
|
|
45
|
+
"capabilities": [
|
|
46
|
+
"frontier.apply_manifest"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"kind": "publisher"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"ports": []
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_suggest_next_action",
|
|
3
|
+
"label": "Spellkave Suggest Next Action",
|
|
4
|
+
"description": "Read a deterministic Spellkave suggestion or affordance summary from SDK state. Does not submit reducers.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"entity_ref"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"entity_ref": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "EntityRef of the perceiver body to suggest for — not `Actor.actor_id` (the steering principal). Accepts a bare numeric entity id (`42`), `entity:42`, `item:42` (an item is still an entity row; same numeric id), or a manifest key suffix (`core/player`).",
|
|
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,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_tag_entity",
|
|
3
|
+
"label": "Tag Entity (verb)",
|
|
4
|
+
"description": "sk-ntz.2: retag an already-placed entity's INSTANCE-level entity_tag rows from a call/file OTHER than the one that placed it (e.g. crypt-fight.ts tagging a hero placed by hero.ts) — the narrow post-placement counterpart to spellkave_place_entity/spellkave_place_actor's own `tags` param, for exactly the case those verbs cannot cover: an entity_key placed elsewhere. `entity_key` must already carry an entities row (workspace or the active target) — place it first via spellkave_place_entity/spellkave_place_actor (mirrors spellkave_bind_actor's own precondition). Default `mode: 'add'` upserts the listed tags and leaves every OTHER tag on the entity untouched (idempotent); `mode: 'replace'` clears every existing entity_tag row for `entity_key` first, then reseeds exactly `tags` — use `replace` only when THIS call owns the entity's complete tag set, since it WOULD clobber tags authored by the entity's own placement call otherwise. Tag-grammar membership (MF-VAL-300) is enforced by the shared validator at commit, not re-validated here; when a tag carries an authored tag_capability_grant, the result's `tag_capability_grants` reports the capability it live-grants (informational, never blocking).",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"entity_key",
|
|
9
|
+
"tags"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"bundle": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "bundle_id stamped on every generated entity_tag row. Omit to fall back to `context.defaultBundle` (#1968 smart default). NOTE: this is the bundle OWNING the new tag row(s), not necessarily the bundle that placed `entity_key` — a cross-bundle caller stamps ITS own bundle_id here (the elven-mini idiom this verb replaces: crypt-fight.ts/dm-npc.ts tag the hero placed in hero.ts, all three sharing one bundle in that fixture, but nothing requires it)."
|
|
15
|
+
},
|
|
16
|
+
"entity_key": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "entity_key of an already-placed entity (e.g. via spellkave_place_entity/spellkave_place_actor, in THIS bundle or another) — must already carry an entities row (workspace or the active target); this call does not place one. Use this verb instead of re-invoking the placement tool when the entity's placement call lives in a DIFFERENT file/call than the one adding this tag."
|
|
19
|
+
},
|
|
20
|
+
"tags": {
|
|
21
|
+
"type": "array",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"minItems": 1,
|
|
26
|
+
"description": "One INSTANCE-level entity_tag row per tag, mirroring spellkave_place_entity/spellkave_place_actor's own `tags` param exactly (same row shape, same MF-VAL-300 grammar, same tag_capability_grant diagnostic) — the difference is WHEN: this verb runs AFTER the entity already exists, against an entity_key placed by a DIFFERENT call/file."
|
|
27
|
+
},
|
|
28
|
+
"mode": {
|
|
29
|
+
"anyOf": [
|
|
30
|
+
{
|
|
31
|
+
"type": "string",
|
|
32
|
+
"const": "add"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "string",
|
|
36
|
+
"const": "replace"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"description": "Default 'add': upsert the listed tags, leaving every OTHER tag already on this entity_key untouched (idempotent — re-listing an already-present tag is a no-op) — the safe default for a cross-file caller that does not own the entity's full tag set (this verb's whole reason to exist: REPLACING would clobber tags the entity's OWN placement call already authored elsewhere). Set 'replace' only when THIS call owns the entity's complete tag set: it clears EVERY existing entity_tag row for `entity_key` first, then reseeds exactly `tags` (a re-run with fewer tags drops the stale ones, mirroring spellkave_place_entity/spellkave_place_actor's own clear-and-reseed)."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"executionMode": "sequential",
|
|
44
|
+
"roles": [
|
|
45
|
+
"AUTHOR"
|
|
46
|
+
],
|
|
47
|
+
"admission": {
|
|
48
|
+
"anyOf": [
|
|
49
|
+
{
|
|
50
|
+
"kind": "all",
|
|
51
|
+
"capabilities": [
|
|
52
|
+
"frontier.apply_manifest"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"kind": "publisher"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"ports": []
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_take_npc_control",
|
|
3
|
+
"label": "Take NPC Control",
|
|
4
|
+
"description": "Hold an observed non-Person NPC exclusively until explicit return. Supply the generation and world instance observed before the request; idle time never returns it.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"actor_id",
|
|
9
|
+
"presence_actor_id",
|
|
10
|
+
"world_instance_id",
|
|
11
|
+
"expected_generation",
|
|
12
|
+
"request_id",
|
|
13
|
+
"reason"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"actor_id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^[0-9]+$"
|
|
19
|
+
},
|
|
20
|
+
"presence_actor_id": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^[0-9]+$"
|
|
23
|
+
},
|
|
24
|
+
"world_instance_id": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"minLength": 1
|
|
27
|
+
},
|
|
28
|
+
"expected_generation": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[0-9]+$"
|
|
31
|
+
},
|
|
32
|
+
"request_id": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 128
|
|
36
|
+
},
|
|
37
|
+
"reason": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1,
|
|
40
|
+
"maxLength": 1024
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"executionMode": "sequential",
|
|
45
|
+
"roles": [
|
|
46
|
+
"DM"
|
|
47
|
+
],
|
|
48
|
+
"admission": {
|
|
49
|
+
"anyOf": [
|
|
50
|
+
{
|
|
51
|
+
"kind": "all",
|
|
52
|
+
"capabilities": [
|
|
53
|
+
"frontier.impersonate"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"ports": [
|
|
58
|
+
"control"
|
|
59
|
+
],
|
|
60
|
+
"argumentGates": [
|
|
61
|
+
"Caller ownership, destination extent, current hold generation and server consent."
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_trace_detail",
|
|
3
|
+
"label": "Spellkave Trace Detail",
|
|
4
|
+
"description": "Read one currently perceived trace by its OWN rev+handle (copy both verbatim from that trace's own row — not the listing envelope's top-level `rev`). The handle is the trace's stable identity: the SAME trace keeps the SAME handle across re-reads, for as long as it stays perceivable, regardless of what else was inscribed since. Returns parsed payload, never the raw payload JSON carrier.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"rev",
|
|
9
|
+
"handle"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"rev": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "The trace's OWN rev, copied verbatim from its row in spellkave_traces — not the listing envelope's top-level rev (stable per-trace handles, freshness gated per trace)."
|
|
16
|
+
},
|
|
17
|
+
"handle": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 2,
|
|
20
|
+
"description": "Stable trace handle, e.g. t:4 — copied from spellkave_traces."
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"executionMode": "parallel",
|
|
25
|
+
"roles": [
|
|
26
|
+
"PLAYER"
|
|
27
|
+
],
|
|
28
|
+
"admission": {
|
|
29
|
+
"anyOf": [
|
|
30
|
+
{
|
|
31
|
+
"kind": "character"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"ports": []
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_traces",
|
|
3
|
+
"label": "Spellkave Traces",
|
|
4
|
+
"description": "Orient on perceived traces at the connected actor's current node (location implicit). Items are MOST-RECENT-FIRST (highest inscribed_at first) — page 0 is what just happened here, matching spellkave_orient.traces; pass next_cursor to walk further back. Unfiltered and under the bound, returns EVERY perceived trace (`listing: \"complete\"`) alongside a capped-and-truthful `by_kind` histogram (`kind_groups_total`/`kind_groups_shown`/`kind_groups_truncated`) computed over ALL perceived traces at this node, regardless of any filter you pass. Add a `kind`/`kind_prefix`/`inscribed_by`/`visibility` 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, node id, and the SAME global `by_kind` histogram — filtering `items` never narrows `by_kind`. Raw payload JSON is never returned; use spellkave_trace_detail for parsed payload. Each item carries its OWN stable `handle`+`rev`: the SAME trace keeps the SAME handle across re-reads for as long as it stays perceivable, and `rev` gates freshness of that ONE trace only — copy both verbatim into spellkave_trace_detail, not the envelope's top-level `rev`.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"kind": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Optional exact authored trace kind."
|
|
11
|
+
},
|
|
12
|
+
"kind_prefix": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Optional authored trace-kind prefix."
|
|
15
|
+
},
|
|
16
|
+
"inscribed_by": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Optional exact inscriber id."
|
|
19
|
+
},
|
|
20
|
+
"visibility": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Optional exact visibility class."
|
|
23
|
+
},
|
|
24
|
+
"limit": {
|
|
25
|
+
"type": "number",
|
|
26
|
+
"minimum": 1,
|
|
27
|
+
"maximum": 100,
|
|
28
|
+
"description": "Rows per page."
|
|
29
|
+
},
|
|
30
|
+
"cursor": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Opaque next_cursor from the prior page."
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"executionMode": "parallel",
|
|
37
|
+
"roles": [
|
|
38
|
+
"PLAYER"
|
|
39
|
+
],
|
|
40
|
+
"admission": {
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"kind": "character"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"kind": "prefix",
|
|
47
|
+
"prefix": "frontier."
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"ports": [],
|
|
51
|
+
"argumentGates": [
|
|
52
|
+
"Caller-owned acting context only; presence is nonspatial and conveys no NPC consent."
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_wake_up",
|
|
3
|
+
"label": "Spellkave Wake Up",
|
|
4
|
+
"description": "Seed wake-up perception for the active actor's current node via the approved r_actor_wake_up path. Idempotent; call once after connecting. Fire-and-confirm (read observer_knowledge to verify).",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {}
|
|
8
|
+
},
|
|
9
|
+
"executionMode": "sequential",
|
|
10
|
+
"roles": [
|
|
11
|
+
"DM"
|
|
12
|
+
],
|
|
13
|
+
"admission": {
|
|
14
|
+
"anyOf": [
|
|
15
|
+
{
|
|
16
|
+
"kind": "publisher"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"ports": [
|
|
20
|
+
"publisherRead"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
}
|