zeus-api-types 1.0.1 → 1.0.3
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/dist/game-state.d.ts +13 -5
- package/package.json +3 -2
package/dist/game-state.d.ts
CHANGED
|
@@ -45,6 +45,16 @@ export interface NPC extends WorldEntity {
|
|
|
45
45
|
backstory?: string;
|
|
46
46
|
tone?: string;
|
|
47
47
|
}
|
|
48
|
+
export interface NpcExistingOrNewOp {
|
|
49
|
+
target: string;
|
|
50
|
+
op?: 'npc.add';
|
|
51
|
+
name?: string;
|
|
52
|
+
description?: string;
|
|
53
|
+
tone?: string;
|
|
54
|
+
customData?: {
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
48
58
|
/**
|
|
49
59
|
* Location in the game world
|
|
50
60
|
* Requires name and description, maintains custom properties for tracking
|
|
@@ -52,9 +62,6 @@ export interface NPC extends WorldEntity {
|
|
|
52
62
|
export interface Location extends WorldEntity {
|
|
53
63
|
name: string;
|
|
54
64
|
description: string;
|
|
55
|
-
discovered: boolean;
|
|
56
|
-
atmosphere: string;
|
|
57
|
-
accessible: boolean;
|
|
58
65
|
}
|
|
59
66
|
/**
|
|
60
67
|
* World container - reduced version without events (for frontend)
|
|
@@ -74,18 +81,19 @@ export interface HistoryEntry {
|
|
|
74
81
|
timestamp: string;
|
|
75
82
|
game_time?: string;
|
|
76
83
|
location: string;
|
|
84
|
+
narrative: string;
|
|
77
85
|
narrative_summary: string;
|
|
78
86
|
choice: {
|
|
79
87
|
id?: string;
|
|
80
88
|
label: string;
|
|
81
89
|
meta?: unknown;
|
|
82
90
|
};
|
|
83
|
-
charactersPresent?:
|
|
91
|
+
charactersPresent?: NpcExistingOrNewOp[];
|
|
84
92
|
}
|
|
85
93
|
export interface PresentationCache {
|
|
86
94
|
turn: number;
|
|
87
95
|
narrative: string;
|
|
88
|
-
charactersPresent?:
|
|
96
|
+
charactersPresent?: NpcExistingOrNewOp[];
|
|
89
97
|
storyArcProgression?: number;
|
|
90
98
|
dialogHistory?: DialogMessage[];
|
|
91
99
|
generatedAt?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zeus-api-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Shared API types for Wagtales - SSE payloads, error types, and common interfaces",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "tsc",
|
|
21
21
|
"clean": "rimraf dist",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
22
|
+
"prepublishOnly": "npm run build",
|
|
23
|
+
"publish": "npm run build && npm version patch && npm publish"
|
|
23
24
|
},
|
|
24
25
|
"keywords": [
|
|
25
26
|
"wagtales",
|