chore: bootstrap nana-story M0
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "AppInfo",
|
||||
"type": "object",
|
||||
"required": ["name", "version", "contractVersion"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
},
|
||||
"contractVersion": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "CharacterCard",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"header",
|
||||
"name",
|
||||
"identity",
|
||||
"personality",
|
||||
"values",
|
||||
"boundaries",
|
||||
"style",
|
||||
"initial_relationship",
|
||||
"judgment_rules",
|
||||
"skills",
|
||||
"default_expression"
|
||||
],
|
||||
"properties": {
|
||||
"header": {
|
||||
"$ref": "resource-header.schema.json"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"identity": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"personality": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"values": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"boundaries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"style": {
|
||||
"type": "object"
|
||||
},
|
||||
"initial_relationship": {
|
||||
"type": "object"
|
||||
},
|
||||
"judgment_rules": {
|
||||
"type": "array"
|
||||
},
|
||||
"skills": {
|
||||
"type": "array"
|
||||
},
|
||||
"default_expression": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "DemoPackSummary",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"displayName",
|
||||
"revision",
|
||||
"characters",
|
||||
"worldBooks",
|
||||
"personas",
|
||||
"plotModules",
|
||||
"itemSpecs"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"displayName": {
|
||||
"type": "string"
|
||||
},
|
||||
"revision": {
|
||||
"type": "string"
|
||||
},
|
||||
"characters": {
|
||||
"type": "integer"
|
||||
},
|
||||
"worldBooks": {
|
||||
"type": "integer"
|
||||
},
|
||||
"personas": {
|
||||
"type": "integer"
|
||||
},
|
||||
"plotModules": {
|
||||
"type": "integer"
|
||||
},
|
||||
"itemSpecs": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "ItemSpec",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"header",
|
||||
"name",
|
||||
"description",
|
||||
"tags",
|
||||
"lore_refs",
|
||||
"mechanics",
|
||||
"hidden_facts"
|
||||
],
|
||||
"properties": {
|
||||
"header": {
|
||||
"$ref": "resource-header.schema.json"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array"
|
||||
},
|
||||
"lore_refs": {
|
||||
"type": "array"
|
||||
},
|
||||
"mechanics": {
|
||||
"type": "object"
|
||||
},
|
||||
"hidden_facts": {
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "Persona",
|
||||
"type": "object",
|
||||
"required": ["header", "name", "identity", "traits", "skills", "initial_items"],
|
||||
"properties": {
|
||||
"header": {
|
||||
"$ref": "resource-header.schema.json"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"identity": {
|
||||
"type": "string"
|
||||
},
|
||||
"traits": {
|
||||
"type": "array"
|
||||
},
|
||||
"skills": {
|
||||
"type": "array"
|
||||
},
|
||||
"initial_items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "PlayerView",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"storyId",
|
||||
"nodeId",
|
||||
"branchId",
|
||||
"sceneId",
|
||||
"sceneTitle",
|
||||
"characterName",
|
||||
"beats",
|
||||
"suggestions",
|
||||
"inventory",
|
||||
"knowledge",
|
||||
"promises",
|
||||
"relationship",
|
||||
"history",
|
||||
"canContinue"
|
||||
],
|
||||
"properties": {
|
||||
"storyId": {
|
||||
"type": "string"
|
||||
},
|
||||
"nodeId": {
|
||||
"type": "string"
|
||||
},
|
||||
"branchId": {
|
||||
"type": "string"
|
||||
},
|
||||
"sceneId": {
|
||||
"type": "string"
|
||||
},
|
||||
"sceneTitle": {
|
||||
"type": "string"
|
||||
},
|
||||
"characterName": {
|
||||
"type": "string"
|
||||
},
|
||||
"beats": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["id", "kind", "speaker", "text", "visual"]
|
||||
}
|
||||
},
|
||||
"suggestions": {
|
||||
"type": "array"
|
||||
},
|
||||
"inventory": {
|
||||
"type": "array"
|
||||
},
|
||||
"knowledge": {
|
||||
"type": "array"
|
||||
},
|
||||
"promises": {
|
||||
"type": "array"
|
||||
},
|
||||
"relationship": {
|
||||
"type": "object"
|
||||
},
|
||||
"history": {
|
||||
"type": "array"
|
||||
},
|
||||
"canContinue": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "PlotModule",
|
||||
"type": "object",
|
||||
"required": ["header", "name", "opening_event", "events"],
|
||||
"properties": {
|
||||
"header": {
|
||||
"$ref": "resource-header.schema.json"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"opening_event": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"events": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "ResourceBundle",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"schema_version",
|
||||
"revision",
|
||||
"display_name",
|
||||
"entry_character",
|
||||
"entry_persona",
|
||||
"entry_plot_module",
|
||||
"characters",
|
||||
"world_books",
|
||||
"personas",
|
||||
"plot_modules",
|
||||
"item_specs"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9_]+(?:\\.[a-z0-9_]+)+$"
|
||||
},
|
||||
"schema_version": {
|
||||
"const": 1
|
||||
},
|
||||
"revision": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
|
||||
},
|
||||
"display_name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"entry_character": {
|
||||
"type": "string"
|
||||
},
|
||||
"entry_persona": {
|
||||
"type": "string"
|
||||
},
|
||||
"entry_plot_module": {
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"characters": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "character-card.schema.json"
|
||||
}
|
||||
},
|
||||
"world_books": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "world-book.schema.json"
|
||||
}
|
||||
},
|
||||
"personas": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "persona.schema.json"
|
||||
}
|
||||
},
|
||||
"plot_modules": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "plot-module.schema.json"
|
||||
}
|
||||
},
|
||||
"item_specs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "item-spec.schema.json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "ResourceHeader",
|
||||
"type": "object",
|
||||
"required": ["id", "kind", "schema_version", "revision", "content_hash", "dependencies"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9_]+(?:\\.[a-z0-9_]+)+$"
|
||||
},
|
||||
"kind": {
|
||||
"enum": ["character", "world_book", "persona", "plot_module", "item_spec"]
|
||||
},
|
||||
"schema_version": {
|
||||
"const": 1
|
||||
},
|
||||
"revision": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
|
||||
},
|
||||
"content_hash": {
|
||||
"type": "string",
|
||||
"pattern": "^sha256:[0-9a-f]{64}$"
|
||||
},
|
||||
"dependencies": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "RuntimeState",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"story_id",
|
||||
"current_node",
|
||||
"current_branch",
|
||||
"world_flags",
|
||||
"relationships",
|
||||
"relationship_states",
|
||||
"promises",
|
||||
"knowledge",
|
||||
"items",
|
||||
"clocks",
|
||||
"checks"
|
||||
],
|
||||
"properties": {
|
||||
"story_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"current_node": {
|
||||
"type": "string"
|
||||
},
|
||||
"current_branch": {
|
||||
"type": "string"
|
||||
},
|
||||
"world_flags": {
|
||||
"type": "object"
|
||||
},
|
||||
"relationships": {
|
||||
"type": "object"
|
||||
},
|
||||
"relationship_states": {
|
||||
"type": "array"
|
||||
},
|
||||
"promises": {
|
||||
"type": "array"
|
||||
},
|
||||
"knowledge": {
|
||||
"type": "array"
|
||||
},
|
||||
"items": {
|
||||
"type": "array"
|
||||
},
|
||||
"clocks": {
|
||||
"type": "array"
|
||||
},
|
||||
"checks": {
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "StoryNode",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"story_id",
|
||||
"branch_id",
|
||||
"parent_id",
|
||||
"action_id",
|
||||
"user_input",
|
||||
"beats",
|
||||
"delta",
|
||||
"state_hash"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"story_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"branch_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"parent_id": {
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"action_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_input": {
|
||||
"type": "string"
|
||||
},
|
||||
"beats": {
|
||||
"type": "array"
|
||||
},
|
||||
"delta": {
|
||||
"type": "object"
|
||||
},
|
||||
"state_hash": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "TurnFailure",
|
||||
"type": "object",
|
||||
"required": ["code", "message", "retryable"],
|
||||
"properties": {
|
||||
"code": {
|
||||
"enum": [
|
||||
"stale_node",
|
||||
"invalid_input",
|
||||
"invalid_model_output",
|
||||
"provider_unavailable",
|
||||
"cancelled",
|
||||
"timed_out",
|
||||
"internal"
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"retryable": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "TurnRequest",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"storyId",
|
||||
"branchId",
|
||||
"expectedNodeId",
|
||||
"actionId",
|
||||
"intent",
|
||||
"input"
|
||||
],
|
||||
"properties": {
|
||||
"storyId": {
|
||||
"type": "string"
|
||||
},
|
||||
"branchId": {
|
||||
"type": "string"
|
||||
},
|
||||
"expectedNodeId": {
|
||||
"type": "string"
|
||||
},
|
||||
"actionId": {
|
||||
"type": "string"
|
||||
},
|
||||
"intent": {
|
||||
"enum": ["speak_or_act", "continue", "regenerate", "push_check"]
|
||||
},
|
||||
"input": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "TurnResult",
|
||||
"type": "object",
|
||||
"required": ["committedNodeId", "playerView"],
|
||||
"properties": {
|
||||
"committedNodeId": {
|
||||
"type": "string"
|
||||
},
|
||||
"playerView": {
|
||||
"$ref": "player-view.schema.json"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "WorldBook",
|
||||
"type": "object",
|
||||
"required": ["header", "name", "entries"],
|
||||
"properties": {
|
||||
"header": {
|
||||
"$ref": "resource-header.schema.json"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"entries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user