Own retained Eve Ink playback sidecar
This commit is contained in:
parent
d070159ba5
commit
826200184c
9 changed files with 321 additions and 1 deletions
55
plugins/sai-vn.plugin-abi-fixture.json
Normal file
55
plugins/sai-vn.plugin-abi-fixture.json
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"schema": "gamecult.eve.plugin_abi_fixture.v1",
|
||||
"fixtureId": "sai-vn-live-playback",
|
||||
"pluginId": "sai.vn",
|
||||
"ownerRepo": "Sai",
|
||||
"contract": "gamecult.eve.plugin_abi.v1",
|
||||
"requestSchema": "gamecult.eve.plugin_abi.request.v1",
|
||||
"responseSchema": "gamecult.eve.plugin_abi.response.v1",
|
||||
"operations": [
|
||||
{
|
||||
"operation": "describe",
|
||||
"expect": {
|
||||
"sessionAuthority": "sai-sidecar",
|
||||
"optionalPlugins": ["norn.graph", "tex.math"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "open",
|
||||
"input": { "sessionId": "witness", "storyId": "sai-example", "storyPath": "examples/static-site/story.ink.json" },
|
||||
"expect": {
|
||||
"sessionId": "witness",
|
||||
"line": "Ink is not alive by itself. A page gives it a body.",
|
||||
"revision": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "apply",
|
||||
"input": { "sessionId": "witness", "command": "story.choose", "index": 0 },
|
||||
"expect": {
|
||||
"line": "Then the story should feel like it belongs here, not like a widget escaped from somewhere else.",
|
||||
"revision": 1,
|
||||
"command": "story.choose"
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "project",
|
||||
"input": { "sessionId": "witness", "providerId": "sai.witness" },
|
||||
"expect": {
|
||||
"projectionKind": "semantic-surface",
|
||||
"delegatedPlugins": ["norn.graph", "tex.math"],
|
||||
"sessionId": "witness",
|
||||
"revision": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "apply",
|
||||
"input": { "sessionId": "witness", "command": "story.jump", "targetPath": "gather" },
|
||||
"expect": {
|
||||
"line": "Good. The brush moves. The scene answers.",
|
||||
"revision": 2,
|
||||
"command": "story.jump"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
23
plugins/sai-vn.plugin-advertisement.json
Normal file
23
plugins/sai-vn.plugin-advertisement.json
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"schema": "gamecult.eve.plugin_advertisement.v1",
|
||||
"pluginId": "sai.vn",
|
||||
"ownerService": "sai",
|
||||
"version": "0.1.0",
|
||||
"manifestAddress": "file://plugins/sai-vn.plugin.json",
|
||||
"runtime": {
|
||||
"invocationModel": "executable-sidecar",
|
||||
"contract": "gamecult.eve.plugin_abi.v1",
|
||||
"transports": ["stdio"],
|
||||
"sidecar": {
|
||||
"processKind": "long-running-daemon",
|
||||
"protocol": "stdio-ndjson",
|
||||
"requestSchema": "gamecult.eve.plugin_abi.request.v1",
|
||||
"responseSchema": "gamecult.eve.plugin_abi.response.v1",
|
||||
"operations": ["describe", "open", "apply", "project"],
|
||||
"launch": { "command": "node", "artifact": "src/eve-sidecar.cjs" },
|
||||
"stateAuthority": "sai-sidecar-owns-story-session-provider-owns-command-acceptance"
|
||||
}
|
||||
},
|
||||
"componentKinds": ["vn.stage", "panel.dialogue", "text.dialogue", "rail.actions"],
|
||||
"commands": ["story.continue", "story.choose", "story.jump"]
|
||||
}
|
||||
31
plugins/sai-vn.plugin.json
Normal file
31
plugins/sai-vn.plugin.json
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"schema": "gamecult.eve.plugin.v1",
|
||||
"pluginId": "sai.vn",
|
||||
"title": "Sai Visual Novel",
|
||||
"owner": "Sai",
|
||||
"componentKinds": ["vn.stage", "panel.dialogue", "text.dialogue", "rail.actions"],
|
||||
"commands": [
|
||||
{ "command": "story.continue", "schema": "sai.vn.story_command.v1", "effect": "advance-story" },
|
||||
{ "command": "story.choose", "schema": "sai.vn.story_command.v1", "effect": "choose-branch" },
|
||||
{ "command": "story.jump", "schema": "sai.vn.story_command.v1", "effect": "jump-to-knot" }
|
||||
],
|
||||
"runtime": {
|
||||
"invocationModel": "executable-sidecar",
|
||||
"contract": "gamecult.eve.plugin_abi.v1",
|
||||
"transports": ["stdio"],
|
||||
"sidecar": {
|
||||
"processKind": "long-running-daemon",
|
||||
"protocol": "stdio-ndjson",
|
||||
"operations": ["describe", "open", "apply", "project"],
|
||||
"stateAuthority": "sai-sidecar-owns-story-session-provider-owns-command-acceptance"
|
||||
}
|
||||
},
|
||||
"stateSchemas": ["sai.vn.story_session.v1", "sai.vn.visual_manifest.v1"],
|
||||
"capabilities": {
|
||||
"requires": ["vn.stage", "story.choose", "story.continue", "story.jump"],
|
||||
"optionalPlugins": [
|
||||
{ "pluginId": "norn.graph", "relationship": "optional-nested-composition" },
|
||||
{ "pluginId": "tex.math", "relationship": "optional-nested-composition" }
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue