@spellkave/tool-contracts 0.0.0-bootstrap
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +89 -0
- package/package.json +50 -0
- package/src/admission.ts +62 -0
- package/src/authoring-schemas.ts +3491 -0
- package/src/authoring-tool-names.ts +46 -0
- package/src/contract-data.ts +37 -0
- package/src/contract-guard.ts +377 -0
- package/src/contracts-metadata.json +6940 -0
- package/src/docs-metadata.ts +42 -0
- package/src/exploration.ts +248 -0
- package/src/git-batch.ts +36 -0
- package/src/grant-schemas.ts +38 -0
- package/src/index.ts +10 -0
- package/src/metadata.ts +48 -0
- package/src/owner-instance-read.ts +123 -0
- package/src/personas.generated.json +47 -0
- package/src/personas.ts +19 -0
- package/src/roster.ts +13 -0
- package/src/scene-schemas.ts +29 -0
- package/src/schema-registry.ts +197 -0
- package/src/schemas.ts +786 -0
- package/src/snapshot-storage.ts +133 -0
- package/src/tool-contracts.breaking-acknowledged.json +392 -0
- package/src/tool-contracts.snapshot/index.json +104 -0
- package/src/tool-contracts.snapshot/rosters/AUTHOR.json +54 -0
- package/src/tool-contracts.snapshot/rosters/DM.json +19 -0
- package/src/tool-contracts.snapshot/rosters/PLAYER.json +25 -0
- package/src/tool-contracts.snapshot/tools/spellkave_acting_context.json +35 -0
- package/src/tool-contracts.snapshot/tools/spellkave_actor_principals.json +23 -0
- package/src/tool-contracts.snapshot/tools/spellkave_annotate_place.json +82 -0
- package/src/tool-contracts.snapshot/tools/spellkave_apply_manifest_delta.json +66 -0
- package/src/tool-contracts.snapshot/tools/spellkave_applyset_apply.json +131 -0
- package/src/tool-contracts.snapshot/tools/spellkave_applyset_diff.json +122 -0
- package/src/tool-contracts.snapshot/tools/spellkave_attach_map_layer.json +114 -0
- package/src/tool-contracts.snapshot/tools/spellkave_author_place.json +132 -0
- package/src/tool-contracts.snapshot/tools/spellkave_bind_actor.json +79 -0
- package/src/tool-contracts.snapshot/tools/spellkave_bind_edge_affordance.json +69 -0
- package/src/tool-contracts.snapshot/tools/spellkave_can_i.json +123 -0
- package/src/tool-contracts.snapshot/tools/spellkave_communicate.json +44 -0
- package/src/tool-contracts.snapshot/tools/spellkave_declare_inexpressible.json +33 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_action.json +133 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_action_verb.json +215 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_affordance.json +69 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_behavior.json +505 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_bundle.json +67 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_capability.json +64 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_condition.json +244 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_consequence.json +65 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_entity_type.json +199 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_niche.json +88 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_resource.json +93 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_roll_table.json +87 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_session.json +115 -0
- package/src/tool-contracts.snapshot/tools/spellkave_define_trace_kind.json +71 -0
- package/src/tool-contracts.snapshot/tools/spellkave_describe.json +73 -0
- package/src/tool-contracts.snapshot/tools/spellkave_diff.json +90 -0
- package/src/tool-contracts.snapshot/tools/spellkave_docs.json +104 -0
- package/src/tool-contracts.snapshot/tools/spellkave_end_turn.json +21 -0
- package/src/tool-contracts.snapshot/tools/spellkave_entity.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_entity_body.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_entity_container.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_equip_item.json +49 -0
- package/src/tool-contracts.snapshot/tools/spellkave_eval.json +87 -0
- package/src/tool-contracts.snapshot/tools/spellkave_events.json +30 -0
- package/src/tool-contracts.snapshot/tools/spellkave_explain.json +83 -0
- package/src/tool-contracts.snapshot/tools/spellkave_export.json +66 -0
- package/src/tool-contracts.snapshot/tools/spellkave_export_grants.json +50 -0
- package/src/tool-contracts.snapshot/tools/spellkave_get.json +87 -0
- package/src/tool-contracts.snapshot/tools/spellkave_grant_role.json +80 -0
- package/src/tool-contracts.snapshot/tools/spellkave_hand_over_role.json +89 -0
- package/src/tool-contracts.snapshot/tools/spellkave_intervention_windows.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_inventory.json +40 -0
- package/src/tool-contracts.snapshot/tools/spellkave_item_detail.json +37 -0
- package/src/tool-contracts.snapshot/tools/spellkave_link_places.json +84 -0
- package/src/tool-contracts.snapshot/tools/spellkave_list_grants.json +56 -0
- package/src/tool-contracts.snapshot/tools/spellkave_manipulate.json +84 -0
- package/src/tool-contracts.snapshot/tools/spellkave_manipulation_context.json +62 -0
- package/src/tool-contracts.snapshot/tools/spellkave_map.json +109 -0
- package/src/tool-contracts.snapshot/tools/spellkave_map_graph.json +143 -0
- package/src/tool-contracts.snapshot/tools/spellkave_move.json +75 -0
- package/src/tool-contracts.snapshot/tools/spellkave_note_doc_gap.json +43 -0
- package/src/tool-contracts.snapshot/tools/spellkave_observer_knowledge.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_observer_place_knowledge.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_observer_trace_knowledge.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_offer_control.json +30 -0
- package/src/tool-contracts.snapshot/tools/spellkave_orient.json +39 -0
- package/src/tool-contracts.snapshot/tools/spellkave_pace_time.json +59 -0
- package/src/tool-contracts.snapshot/tools/spellkave_place_actor.json +190 -0
- package/src/tool-contracts.snapshot/tools/spellkave_place_entity.json +190 -0
- package/src/tool-contracts.snapshot/tools/spellkave_prepare_hand_over.json +57 -0
- package/src/tool-contracts.snapshot/tools/spellkave_query.json +290 -0
- package/src/tool-contracts.snapshot/tools/spellkave_react_option.json +47 -0
- package/src/tool-contracts.snapshot/tools/spellkave_reaction_options.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_release_claim.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_remove_entity.json +39 -0
- package/src/tool-contracts.snapshot/tools/spellkave_render_scene.json +59 -0
- package/src/tool-contracts.snapshot/tools/spellkave_return_npc_control.json +59 -0
- package/src/tool-contracts.snapshot/tools/spellkave_revoke_role.json +55 -0
- package/src/tool-contracts.snapshot/tools/spellkave_scene.json +74 -0
- package/src/tool-contracts.snapshot/tools/spellkave_scene_detail.json +37 -0
- package/src/tool-contracts.snapshot/tools/spellkave_self_states.json +77 -0
- package/src/tool-contracts.snapshot/tools/spellkave_self_summary.json +21 -0
- package/src/tool-contracts.snapshot/tools/spellkave_sense.json +68 -0
- package/src/tool-contracts.snapshot/tools/spellkave_sense_context.json +28 -0
- package/src/tool-contracts.snapshot/tools/spellkave_session_close.json +71 -0
- package/src/tool-contracts.snapshot/tools/spellkave_session_move.json +38 -0
- package/src/tool-contracts.snapshot/tools/spellkave_session_open.json +36 -0
- package/src/tool-contracts.snapshot/tools/spellkave_session_status.json +41 -0
- package/src/tool-contracts.snapshot/tools/spellkave_set_metadata.json +205 -0
- package/src/tool-contracts.snapshot/tools/spellkave_set_movement_default.json +58 -0
- package/src/tool-contracts.snapshot/tools/spellkave_stage_scene.json +55 -0
- package/src/tool-contracts.snapshot/tools/spellkave_status.json +23 -0
- package/src/tool-contracts.snapshot/tools/spellkave_stow_item.json +55 -0
- package/src/tool-contracts.snapshot/tools/spellkave_suggest_next_action.json +32 -0
- package/src/tool-contracts.snapshot/tools/spellkave_tag_entity.json +61 -0
- package/src/tool-contracts.snapshot/tools/spellkave_take_npc_control.json +64 -0
- package/src/tool-contracts.snapshot/tools/spellkave_trace_detail.json +36 -0
- package/src/tool-contracts.snapshot/tools/spellkave_traces.json +55 -0
- package/src/tool-contracts.snapshot/tools/spellkave_wake_up.json +23 -0
- package/src/tool-contracts.snapshot/tools/spellkave_withdraw_control.json +30 -0
- package/src/tool-contracts.snapshot/tools/spellkave_write_rows.json +62 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_place_actor",
|
|
3
|
+
"label": "Place actor",
|
|
4
|
+
"description": "Declaratively place authored world instances at build time. Emits an entity plus actor and actor_spatial_location rows; use it only for world participants that can be steered as actors. Place them all at ONE node with the flat `at`/`count`/`resources`/`tags`, or split them across MULTIPLE nodes in the SAME call with `placements`; the two shapes are mutually exclusive. Self-scaffolds the `[[bundles]]` header if `bundle` has none yet (FIX②b). `kind` is explicit; optional `entity_def` is a separate fully-qualified catalog reference. Resolves `entity_def`/every `at` against the workspace, the active connection-level `target` when wired (#1968), and (legacy) live world when `context.db` is set directly — fails loudly on a dangling ref rather than authoring a broken instance. Returns the generated `entity_keys` (in placement order) for a later spellkave_define_behavior `grant_to`. #1968 workspace idempotency: pass `key_prefix` (flat shape) / `placements[].key_prefix` (placements shape) to give a placement an EXPLICIT, reproducible identity — a re-run with the SAME key_prefix upserts its owned rows. Anonymous placements are ADDITIVE — every call adds genuinely NEW instances, named '<bundle>/<short entity_def slug>_<n>' by default (falling back to the fully-qualified slug only on a short-slug collision across different entity_defs, #1968 addendum); name placements for idempotent scripts. sk-9ll.6: pass `entity_key` (flat) / `placements[].entity_key` (placements shape) instead of `key_prefix` for an explicit, LITERAL key with NO ordinal minted at all (e.g. a fixture-mandated 'bundle/hero') — mutually exclusive with `key_prefix`, only legal for a single instance. sk-9ll.7: pass `tags` (flat) / `placements[].tags` (placements shape) for INSTANCE-level `entity_tag` rows seeded on every instance in that shape — clear-and-reseed idempotent exactly like `resources` (a re-run with FEWER tags drops the stale ones). 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). sk-ntz.1: pass `name` (flat) / `placements[].name` (placements shape) for a VERBATIM `entities.name`/`actors.name` override (no ordinal suffix appended) instead of the default title-cased `kind`/`entity_def` naming — the per-placement value wins when both flat `name` and a placement's own `name` are set. Pass `quantity` (flat) / `placements[].quantity` (placements shape) for an explicit `entities.quantity` (stack size) override instead of the schema default (1) — spellkave_place_entity ONLY; spellkave_place_actor rejects a set `quantity` outright (actors carry no stack) — the per-placement value wins here too. This authors manifest rows; runtime creation belongs to future DM spawn tools.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"kind"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"bundle": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "bundle_id stamped on every generated row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
|
|
14
|
+
},
|
|
15
|
+
"kind": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "player"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "string",
|
|
23
|
+
"const": "npc"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "item"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "string",
|
|
31
|
+
"const": "place"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"description": "Manifest entity kind accepted by the current authoritative schema. The placement tool controls whether actor steering rows exist; `kind` does not. The open-vocabulary migration is tracked by #2066."
|
|
35
|
+
},
|
|
36
|
+
"entity_def": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Optional fully-qualified catalog entity_def_id (contains '/', e.g. 'srd/monster/goblin') that must already resolve in the workspace or live world. `kind` remains explicit and independent."
|
|
39
|
+
},
|
|
40
|
+
"at": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "FLAT single-location shape: an already-authored place_node id every instance is placed at. Mutually exclusive with `placements` (FIX①, #1968) — set `at` (+ `count`/`resources`) for ONE location, or `placements` to split a batch across MULTIPLE locations in one call, never both."
|
|
43
|
+
},
|
|
44
|
+
"count": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"description": "FLAT shape only: how many identical instances to place (default 1)."
|
|
47
|
+
},
|
|
48
|
+
"resources": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": [
|
|
53
|
+
"resource",
|
|
54
|
+
"value"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"resource": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "A resource_definition_id (or any object_state state_id)."
|
|
60
|
+
},
|
|
61
|
+
"value": {
|
|
62
|
+
"type": "number",
|
|
63
|
+
"description": "The per-instance value_int override."
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"description": "FLAT shape only: per-instance object_state overrides seeded on EVERY placed entity in this call (e.g. a non-default starting pool value). Does NOT declare the resource_definitions row itself (use spellkave_define_resource first)."
|
|
68
|
+
},
|
|
69
|
+
"tags": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"description": "One INSTANCE-level entity_tag row per tag ('this goblin is the leader / faction X') — NOT an entity_definition_tag. Tag-grammar membership (MF-VAL-300) and dedup are enforced by the shared validator at commit; an unknown-grammar tag is reported as a diagnostic, not persisted. When a tag has authored tag_capability_grant rows (workspace/live), the result surfaces 'tag X grants capability Y' so the author sees the consequence — informational, never blocking."
|
|
75
|
+
},
|
|
76
|
+
"placements": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"required": [
|
|
81
|
+
"at"
|
|
82
|
+
],
|
|
83
|
+
"properties": {
|
|
84
|
+
"at": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"description": "An already-authored place_node id (e.g. from spellkave_author_place) every instance in THIS placement is placed at."
|
|
87
|
+
},
|
|
88
|
+
"count": {
|
|
89
|
+
"type": "number",
|
|
90
|
+
"description": "How many identical instances at this placement (default 1)."
|
|
91
|
+
},
|
|
92
|
+
"resources": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": [
|
|
97
|
+
"resource",
|
|
98
|
+
"value"
|
|
99
|
+
],
|
|
100
|
+
"properties": {
|
|
101
|
+
"resource": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "A resource_definition_id (or any object_state state_id)."
|
|
104
|
+
},
|
|
105
|
+
"value": {
|
|
106
|
+
"type": "number",
|
|
107
|
+
"description": "The per-instance value_int override."
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"description": "Per-instance object_state overrides seeded on EVERY instance in THIS placement."
|
|
112
|
+
},
|
|
113
|
+
"key_prefix": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "#1968 workspace idempotency: THIS placement's own explicit identity stem — keys become '<bundle>/<key_prefix>_<n>' (n restarts at 1 for this placement's own prefix, EVERY call — never derived from what already exists in the workspace). A re-run with the SAME key_prefix therefore reproduces the SAME keys and UPSERTS the rows owned by the selected placement tool. Omit for an anonymous, additive placement (default '<bundle>/<slugified entity_def>_<n>', numbered onward from whatever already exists in the workspace so repeated calls never collide) — name placements for idempotent scripts. Mutually exclusive with `entity_key`."
|
|
116
|
+
},
|
|
117
|
+
"entity_key": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "sk-9ll.6: THIS placement's own explicit, LITERAL entity_key, used verbatim — NO bundle prefix and NO ordinal suffix minted (contrast `key_prefix`'s derived '<bundle>/<key_prefix>_<n>'). For a pre-known exact key a script/fixture depends on (e.g. 'fastlane/hero') that does not follow the '<bundle>/<stem>_<n>' convention — the escape hatch that let raw write_rows chains mint exact keys this verb previously could not reproduce. Re-running with the SAME entity_key upserts its owned rows, same as `key_prefix`. Mutually exclusive with `key_prefix`; only legal for a single instance — omit `count` or set it to 1."
|
|
120
|
+
},
|
|
121
|
+
"name": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "sk-ntz.1: THIS placement's own explicit, VERBATIM `entities.name`/`actors.name` override — used AS-IS on every instance in THIS placement, no ordinal suffix appended (contrast the default title-cased `kind`/`entity_def` naming, which DOES append an ordinal for multi-instance placements). Overrides the flat `name` when both are set (THIS placement's own `name` wins) — the escape hatch that let raw write_rows chains author a custom display name this verb previously could not reproduce (the fold this verb was widened for, sk-ntz.1, otherwise had no way to keep a fixture's own 'Fast-lane Hero' style name). Mutually exclusive with `name_prefix`. Omit for the existing default: title-cased `kind`/`entity_def`, ordinal-suffixed for multi-instance placements — unchanged."
|
|
124
|
+
},
|
|
125
|
+
"name_prefix": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "sk-jay0.7.15.3: THIS placement's own display-name STEM — replaces only the title-cased `kind`/`entity_def` half of the derived name and KEEPS the ordinal (`'<name_prefix> <n>'`). The group-placement counterpart to verbatim `name` (which is used AS-IS with no ordinal, so a count>1 batch would otherwise share one identical name). Overrides the flat `name_prefix` when both are set (THIS placement's own `name_prefix` wins). Mutually exclusive with `name`. Illegal with `entity_key` (no ordinal is minted — use `name` for a single literal key). Omit for the existing default — unchanged."
|
|
128
|
+
},
|
|
129
|
+
"quantity": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 1,
|
|
132
|
+
"description": "sk-ntz.1: THIS placement's own explicit `entities.quantity` (stack size) override for every instance in THIS placement — spellkave_place_entity ONLY (a stackable item's own on-instance count, e.g. a 10-credit purse); spellkave_place_actor rejects a set `quantity` outright (actors carry no stack — use spellkave_place_entity instead). Overrides the flat `quantity` when both are set (THIS placement's own `quantity` wins). Omit for the schema default (1) — unchanged."
|
|
133
|
+
},
|
|
134
|
+
"tags": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"description": "One INSTANCE-level entity_tag row per tag ('this goblin is the leader / faction X') — NOT an entity_definition_tag. Tag-grammar membership (MF-VAL-300) and dedup are enforced by the shared validator at commit; an unknown-grammar tag is reported as a diagnostic, not persisted. When a tag has authored tag_capability_grant rows (workspace/live), the result surfaces 'tag X grants capability Y' so the author sees the consequence — informational, never blocking."
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"description": "MULTI-LOCATION shape (FIX①, #1968): one or more {at, count?, resources?, tags?} groups placing the SAME kind/entity_def split across DIFFERENT place_nodes in a single call (e.g. 3 targets at the blast center + 1 bystander at the fringe). Mutually exclusive with the flat `at`/`count`/`resources`/`tags` — set ONE shape or the other, never both."
|
|
144
|
+
},
|
|
145
|
+
"description": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "Sets EVERY placed entity's own `description` column (across every placement) — e.g. 'the guard with the limp' (#1968 — a first-class, never load-bearing authoring field, not a metadata_attachments row)."
|
|
148
|
+
},
|
|
149
|
+
"key_prefix": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "FLAT shape only (mutually exclusive with `placements` — set `placements[].key_prefix` there instead). #1968 workspace idempotency: see `placements[].key_prefix`'s description for the full semantics — this is the same field, for the single-location flat shape. Mutually exclusive with `entity_key`."
|
|
152
|
+
},
|
|
153
|
+
"entity_key": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "FLAT shape only (mutually exclusive with `placements` — set `placements[].entity_key` there instead). sk-9ll.6: see `placements[].entity_key`'s description for the full semantics — this is the same field, for the single-location flat shape."
|
|
156
|
+
},
|
|
157
|
+
"name": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"description": "sk-ntz.1: FLAT shape (also `placements[].name`, which wins when both are set): sets EVERY placed entity's own `entities.name`/`actors.name` verbatim (no ordinal suffix), instead of the default title-cased `kind`/`entity_def` naming. A first-class, never load-bearing authoring field, mirrors `description`'s own shared-across-every-placement convention. Mutually exclusive with `name_prefix`. Omit for the existing default — unchanged."
|
|
160
|
+
},
|
|
161
|
+
"name_prefix": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"description": "sk-jay0.7.15.3: FLAT shape (also `placements[].name_prefix`, which wins when both are set): replaces only the title-cased `kind`/`entity_def` half of the derived name and KEEPS the ordinal (`'<name_prefix> <n>'`) across every placed instance. The group-placement counterpart to verbatim `name`. Mutually exclusive with `name`. Illegal with `entity_key`. Omit for the existing default — unchanged."
|
|
164
|
+
},
|
|
165
|
+
"quantity": {
|
|
166
|
+
"type": "integer",
|
|
167
|
+
"minimum": 1,
|
|
168
|
+
"description": "sk-ntz.1: FLAT shape (also `placements[].quantity`, which wins when both are set): sets EVERY placed entity's own `entities.quantity` (stack size) — spellkave_place_entity ONLY; spellkave_place_actor rejects a set `quantity` (actors carry no stack — use spellkave_place_entity for a stackable item instance instead). Omit for the schema default (1) — unchanged."
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"executionMode": "sequential",
|
|
173
|
+
"roles": [
|
|
174
|
+
"AUTHOR"
|
|
175
|
+
],
|
|
176
|
+
"admission": {
|
|
177
|
+
"anyOf": [
|
|
178
|
+
{
|
|
179
|
+
"kind": "all",
|
|
180
|
+
"capabilities": [
|
|
181
|
+
"frontier.apply_manifest"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "publisher"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"ports": []
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_place_entity",
|
|
3
|
+
"label": "Place entity",
|
|
4
|
+
"description": "Declaratively place authored world instances at build time. Emits an entity (+ optional object_state) without actor rows; use it for authored instances that are not steerable actors. Place them all at ONE node with the flat `at`/`count`/`resources`/`tags`, or split them across MULTIPLE nodes in the SAME call with `placements`; the two shapes are mutually exclusive. Self-scaffolds the `[[bundles]]` header if `bundle` has none yet (FIX②b). `kind` is explicit; optional `entity_def` is a separate fully-qualified catalog reference. Resolves `entity_def`/every `at` against the workspace, the active connection-level `target` when wired (#1968), and (legacy) live world when `context.db` is set directly — fails loudly on a dangling ref rather than authoring a broken instance. Returns the generated `entity_keys` (in placement order) for a later spellkave_define_behavior `grant_to`. #1968 workspace idempotency: pass `key_prefix` (flat shape) / `placements[].key_prefix` (placements shape) to give a placement an EXPLICIT, reproducible identity — a re-run with the SAME key_prefix upserts its owned rows. Anonymous placements are ADDITIVE — every call adds genuinely NEW instances, named '<bundle>/<short entity_def slug>_<n>' by default (falling back to the fully-qualified slug only on a short-slug collision across different entity_defs, #1968 addendum); name placements for idempotent scripts. sk-9ll.6: pass `entity_key` (flat) / `placements[].entity_key` (placements shape) instead of `key_prefix` for an explicit, LITERAL key with NO ordinal minted at all (e.g. a fixture-mandated 'bundle/hero') — mutually exclusive with `key_prefix`, only legal for a single instance. sk-9ll.7: pass `tags` (flat) / `placements[].tags` (placements shape) for INSTANCE-level `entity_tag` rows seeded on every instance in that shape — clear-and-reseed idempotent exactly like `resources` (a re-run with FEWER tags drops the stale ones). 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). sk-ntz.1: pass `name` (flat) / `placements[].name` (placements shape) for a VERBATIM `entities.name`/`actors.name` override (no ordinal suffix appended) instead of the default title-cased `kind`/`entity_def` naming — the per-placement value wins when both flat `name` and a placement's own `name` are set. Pass `quantity` (flat) / `placements[].quantity` (placements shape) for an explicit `entities.quantity` (stack size) override instead of the schema default (1) — spellkave_place_entity ONLY; spellkave_place_actor rejects a set `quantity` outright (actors carry no stack) — the per-placement value wins here too. This authors manifest rows; runtime creation belongs to future DM spawn tools.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"kind"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"bundle": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "bundle_id stamped on every generated row. Omit to fall back to `context.defaultBundle` (#1968 smart default)."
|
|
14
|
+
},
|
|
15
|
+
"kind": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "player"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "string",
|
|
23
|
+
"const": "npc"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "item"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "string",
|
|
31
|
+
"const": "place"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"description": "Manifest entity kind accepted by the current authoritative schema. The placement tool controls whether actor steering rows exist; `kind` does not. The open-vocabulary migration is tracked by #2066."
|
|
35
|
+
},
|
|
36
|
+
"entity_def": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Optional fully-qualified catalog entity_def_id (contains '/', e.g. 'srd/monster/goblin') that must already resolve in the workspace or live world. `kind` remains explicit and independent."
|
|
39
|
+
},
|
|
40
|
+
"at": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "FLAT single-location shape: an already-authored place_node id every instance is placed at. Mutually exclusive with `placements` (FIX①, #1968) — set `at` (+ `count`/`resources`) for ONE location, or `placements` to split a batch across MULTIPLE locations in one call, never both."
|
|
43
|
+
},
|
|
44
|
+
"count": {
|
|
45
|
+
"type": "number",
|
|
46
|
+
"description": "FLAT shape only: how many identical instances to place (default 1)."
|
|
47
|
+
},
|
|
48
|
+
"resources": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": [
|
|
53
|
+
"resource",
|
|
54
|
+
"value"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"resource": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "A resource_definition_id (or any object_state state_id)."
|
|
60
|
+
},
|
|
61
|
+
"value": {
|
|
62
|
+
"type": "number",
|
|
63
|
+
"description": "The per-instance value_int override."
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"description": "FLAT shape only: per-instance object_state overrides seeded on EVERY placed entity in this call (e.g. a non-default starting pool value). Does NOT declare the resource_definitions row itself (use spellkave_define_resource first)."
|
|
68
|
+
},
|
|
69
|
+
"tags": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"description": "One INSTANCE-level entity_tag row per tag ('this goblin is the leader / faction X') — NOT an entity_definition_tag. Tag-grammar membership (MF-VAL-300) and dedup are enforced by the shared validator at commit; an unknown-grammar tag is reported as a diagnostic, not persisted. When a tag has authored tag_capability_grant rows (workspace/live), the result surfaces 'tag X grants capability Y' so the author sees the consequence — informational, never blocking."
|
|
75
|
+
},
|
|
76
|
+
"placements": {
|
|
77
|
+
"type": "array",
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "object",
|
|
80
|
+
"required": [
|
|
81
|
+
"at"
|
|
82
|
+
],
|
|
83
|
+
"properties": {
|
|
84
|
+
"at": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"description": "An already-authored place_node id (e.g. from spellkave_author_place) every instance in THIS placement is placed at."
|
|
87
|
+
},
|
|
88
|
+
"count": {
|
|
89
|
+
"type": "number",
|
|
90
|
+
"description": "How many identical instances at this placement (default 1)."
|
|
91
|
+
},
|
|
92
|
+
"resources": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"required": [
|
|
97
|
+
"resource",
|
|
98
|
+
"value"
|
|
99
|
+
],
|
|
100
|
+
"properties": {
|
|
101
|
+
"resource": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "A resource_definition_id (or any object_state state_id)."
|
|
104
|
+
},
|
|
105
|
+
"value": {
|
|
106
|
+
"type": "number",
|
|
107
|
+
"description": "The per-instance value_int override."
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"description": "Per-instance object_state overrides seeded on EVERY instance in THIS placement."
|
|
112
|
+
},
|
|
113
|
+
"key_prefix": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "#1968 workspace idempotency: THIS placement's own explicit identity stem — keys become '<bundle>/<key_prefix>_<n>' (n restarts at 1 for this placement's own prefix, EVERY call — never derived from what already exists in the workspace). A re-run with the SAME key_prefix therefore reproduces the SAME keys and UPSERTS the rows owned by the selected placement tool. Omit for an anonymous, additive placement (default '<bundle>/<slugified entity_def>_<n>', numbered onward from whatever already exists in the workspace so repeated calls never collide) — name placements for idempotent scripts. Mutually exclusive with `entity_key`."
|
|
116
|
+
},
|
|
117
|
+
"entity_key": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "sk-9ll.6: THIS placement's own explicit, LITERAL entity_key, used verbatim — NO bundle prefix and NO ordinal suffix minted (contrast `key_prefix`'s derived '<bundle>/<key_prefix>_<n>'). For a pre-known exact key a script/fixture depends on (e.g. 'fastlane/hero') that does not follow the '<bundle>/<stem>_<n>' convention — the escape hatch that let raw write_rows chains mint exact keys this verb previously could not reproduce. Re-running with the SAME entity_key upserts its owned rows, same as `key_prefix`. Mutually exclusive with `key_prefix`; only legal for a single instance — omit `count` or set it to 1."
|
|
120
|
+
},
|
|
121
|
+
"name": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "sk-ntz.1: THIS placement's own explicit, VERBATIM `entities.name`/`actors.name` override — used AS-IS on every instance in THIS placement, no ordinal suffix appended (contrast the default title-cased `kind`/`entity_def` naming, which DOES append an ordinal for multi-instance placements). Overrides the flat `name` when both are set (THIS placement's own `name` wins) — the escape hatch that let raw write_rows chains author a custom display name this verb previously could not reproduce (the fold this verb was widened for, sk-ntz.1, otherwise had no way to keep a fixture's own 'Fast-lane Hero' style name). Mutually exclusive with `name_prefix`. Omit for the existing default: title-cased `kind`/`entity_def`, ordinal-suffixed for multi-instance placements — unchanged."
|
|
124
|
+
},
|
|
125
|
+
"name_prefix": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "sk-jay0.7.15.3: THIS placement's own display-name STEM — replaces only the title-cased `kind`/`entity_def` half of the derived name and KEEPS the ordinal (`'<name_prefix> <n>'`). The group-placement counterpart to verbatim `name` (which is used AS-IS with no ordinal, so a count>1 batch would otherwise share one identical name). Overrides the flat `name_prefix` when both are set (THIS placement's own `name_prefix` wins). Mutually exclusive with `name`. Illegal with `entity_key` (no ordinal is minted — use `name` for a single literal key). Omit for the existing default — unchanged."
|
|
128
|
+
},
|
|
129
|
+
"quantity": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"minimum": 1,
|
|
132
|
+
"description": "sk-ntz.1: THIS placement's own explicit `entities.quantity` (stack size) override for every instance in THIS placement — spellkave_place_entity ONLY (a stackable item's own on-instance count, e.g. a 10-credit purse); spellkave_place_actor rejects a set `quantity` outright (actors carry no stack — use spellkave_place_entity instead). Overrides the flat `quantity` when both are set (THIS placement's own `quantity` wins). Omit for the schema default (1) — unchanged."
|
|
133
|
+
},
|
|
134
|
+
"tags": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"description": "One INSTANCE-level entity_tag row per tag ('this goblin is the leader / faction X') — NOT an entity_definition_tag. Tag-grammar membership (MF-VAL-300) and dedup are enforced by the shared validator at commit; an unknown-grammar tag is reported as a diagnostic, not persisted. When a tag has authored tag_capability_grant rows (workspace/live), the result surfaces 'tag X grants capability Y' so the author sees the consequence — informational, never blocking."
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"description": "MULTI-LOCATION shape (FIX①, #1968): one or more {at, count?, resources?, tags?} groups placing the SAME kind/entity_def split across DIFFERENT place_nodes in a single call (e.g. 3 targets at the blast center + 1 bystander at the fringe). Mutually exclusive with the flat `at`/`count`/`resources`/`tags` — set ONE shape or the other, never both."
|
|
144
|
+
},
|
|
145
|
+
"description": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"description": "Sets EVERY placed entity's own `description` column (across every placement) — e.g. 'the guard with the limp' (#1968 — a first-class, never load-bearing authoring field, not a metadata_attachments row)."
|
|
148
|
+
},
|
|
149
|
+
"key_prefix": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"description": "FLAT shape only (mutually exclusive with `placements` — set `placements[].key_prefix` there instead). #1968 workspace idempotency: see `placements[].key_prefix`'s description for the full semantics — this is the same field, for the single-location flat shape. Mutually exclusive with `entity_key`."
|
|
152
|
+
},
|
|
153
|
+
"entity_key": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "FLAT shape only (mutually exclusive with `placements` — set `placements[].entity_key` there instead). sk-9ll.6: see `placements[].entity_key`'s description for the full semantics — this is the same field, for the single-location flat shape."
|
|
156
|
+
},
|
|
157
|
+
"name": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"description": "sk-ntz.1: FLAT shape (also `placements[].name`, which wins when both are set): sets EVERY placed entity's own `entities.name`/`actors.name` verbatim (no ordinal suffix), instead of the default title-cased `kind`/`entity_def` naming. A first-class, never load-bearing authoring field, mirrors `description`'s own shared-across-every-placement convention. Mutually exclusive with `name_prefix`. Omit for the existing default — unchanged."
|
|
160
|
+
},
|
|
161
|
+
"name_prefix": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"description": "sk-jay0.7.15.3: FLAT shape (also `placements[].name_prefix`, which wins when both are set): replaces only the title-cased `kind`/`entity_def` half of the derived name and KEEPS the ordinal (`'<name_prefix> <n>'`) across every placed instance. The group-placement counterpart to verbatim `name`. Mutually exclusive with `name`. Illegal with `entity_key`. Omit for the existing default — unchanged."
|
|
164
|
+
},
|
|
165
|
+
"quantity": {
|
|
166
|
+
"type": "integer",
|
|
167
|
+
"minimum": 1,
|
|
168
|
+
"description": "sk-ntz.1: FLAT shape (also `placements[].quantity`, which wins when both are set): sets EVERY placed entity's own `entities.quantity` (stack size) — spellkave_place_entity ONLY; spellkave_place_actor rejects a set `quantity` (actors carry no stack — use spellkave_place_entity for a stackable item instance instead). Omit for the schema default (1) — unchanged."
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"executionMode": "sequential",
|
|
173
|
+
"roles": [
|
|
174
|
+
"AUTHOR"
|
|
175
|
+
],
|
|
176
|
+
"admission": {
|
|
177
|
+
"anyOf": [
|
|
178
|
+
{
|
|
179
|
+
"kind": "all",
|
|
180
|
+
"capabilities": [
|
|
181
|
+
"frontier.apply_manifest"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "publisher"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"ports": []
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "spellkave_prepare_hand_over",
|
|
3
|
+
"label": "Prepare role handover",
|
|
4
|
+
"description": "Review one live binding and bounded authorized context as the caller. The preview is not a frozen snapshot; copy every returned precondition into the explicit commit. Shared notes are text, never authority.",
|
|
5
|
+
"parameters": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"binding_id",
|
|
9
|
+
"subject"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"binding_id": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"subject": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"executionMode": "sequential",
|
|
21
|
+
"cli": {
|
|
22
|
+
"positionals": [
|
|
23
|
+
"binding_id",
|
|
24
|
+
"subject"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"roles": [
|
|
28
|
+
"AUTHOR"
|
|
29
|
+
],
|
|
30
|
+
"authority": {
|
|
31
|
+
"kind": "role-binding",
|
|
32
|
+
"readSubject": true
|
|
33
|
+
},
|
|
34
|
+
"admission": {
|
|
35
|
+
"anyOf": [
|
|
36
|
+
{
|
|
37
|
+
"kind": "publisher"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"kind": "prefix",
|
|
41
|
+
"prefix": "frontier.bind."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "role-capabilities"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"ports": [
|
|
48
|
+
"grants"
|
|
49
|
+
],
|
|
50
|
+
"argumentGates": [
|
|
51
|
+
"The server checks old/new D-6 coverage for this binding; the commit also checks reviewed digests, incarnation/revision, expiry and the one-row subject-only envelope."
|
|
52
|
+
],
|
|
53
|
+
"limitations": [
|
|
54
|
+
"Discovery is a conservative capability superset and cannot authorize a transfer or reveal an unauthorized briefing."
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|