feat(api): Created openapi based pubic API contracts

- made DTOs
- created an api-client
This commit is contained in:
2026-08-03 11:06:02 +00:00
parent 8204e9c18e
commit 81152dc8de
25 changed files with 1171 additions and 112 deletions

View File

@@ -3,7 +3,9 @@
"private": true,
"type": "module",
"exports": {
".": "./dist/index.js"
".": "./dist/index.js",
"./testing": "./dist/testing/index.js",
"./internal": "./dist/internal.js"
},
"dependencies": {
"@omnia/actor": "workspace:*",
@@ -15,4 +17,4 @@
"@omnia/voice": "workspace:*",
"better-sqlite3": "^12.11.1"
}
}
}

View File

@@ -1,15 +1,4 @@
export * from "./commands.js";
export * from "./errors.js";
export * from "./providers.js";
export * from "./runtime-service.js";
export * from "./session.js";
export * from "./snapshot.js";
export * from "./persistence/types.js";
export * from "./persistence/sqlite-session-store.js";
export * from "./testing/runtime-fixtures.js";
export {
executePlayerAction,
preparePlayerTurn,
processNpcTurn,
} from "./turn-executor.js";
export { runAliasResolution, runHandoffResolution } from "./alias-handoff.js";

View File

@@ -0,0 +1,10 @@
export * from "./providers.js";
export * from "./session.js";
export * from "./persistence/types.js";
export * from "./persistence/sqlite-session-store.js";
export {
executePlayerAction,
preparePlayerTurn,
processNpcTurn,
} from "./turn-executor.js";
export { runAliasResolution, runHandoffResolution } from "./alias-handoff.js";

View File

@@ -0,0 +1 @@
export { createRuntimeSnapshot } from "./runtime-fixtures.js";