@bct-app/game-model 0.1.0 → 0.1.1
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/README.md +14 -10
- package/dist/index.d.ts +1172 -30
- package/dist/json-schema/ability-execution-timing.schema.json +8 -0
- package/dist/json-schema/ability.schema.json +2268 -0
- package/dist/json-schema/alignment-enum.schema.json +8 -0
- package/dist/json-schema/base-source.schema.json +64 -0
- package/dist/{schemas → json-schema}/character-basic-kind.schema.json +1 -1
- package/dist/{schemas → json-schema}/character-kind.schema.json +1 -1
- package/dist/json-schema/character.schema.json +123 -0
- package/dist/json-schema/chat-message-content.schema.json +65 -0
- package/dist/json-schema/chat-message-group.schema.json +37 -0
- package/dist/json-schema/chat-message-operation.schema.json +30 -0
- package/dist/json-schema/chat-message.schema.json +133 -0
- package/dist/json-schema/conversation.schema.json +252 -0
- package/dist/{schemas → json-schema}/effect.schema.json +375 -133
- package/dist/{schemas → json-schema}/game.schema.json +3 -16
- package/dist/json-schema/index.json +36 -0
- package/dist/{schemas → json-schema}/input.schema.json +108 -89
- package/dist/{schemas → json-schema}/message.schema.json +259 -35
- package/dist/json-schema/nomination.schema.json +29 -0
- package/dist/json-schema/operation.schema.json +28 -0
- package/dist/json-schema/player-display-format.schema.json +13 -0
- package/dist/json-schema/player-reminder.schema.json +19 -0
- package/dist/json-schema/player.schema.json +104 -0
- package/dist/json-schema/populated-character.schema.json +2344 -0
- package/dist/json-schema/populated-script.schema.json +2397 -0
- package/dist/json-schema/reminder.schema.json +24 -0
- package/dist/json-schema/room-create.schema.json +23 -0
- package/dist/json-schema/room-defaults.schema.json +72 -0
- package/dist/json-schema/room.schema.json +24 -0
- package/dist/json-schema/runtime-game.schema.json +162 -0
- package/dist/json-schema/script.schema.json +57 -0
- package/dist/json-schema/seat-side-enum.schema.json +9 -0
- package/dist/json-schema/special-message-kind.schema.json +7 -0
- package/dist/json-schema/target.schema.json +305 -0
- package/dist/json-schema/timeline.schema.json +87 -0
- package/dist/{schemas → json-schema}/view.schema.json +68 -42
- package/dist/zod.d.mts +4038 -0
- package/dist/zod.d.ts +4038 -0
- package/dist/zod.js +1129 -0
- package/dist/zod.mjs +1058 -0
- package/package.json +30 -15
- package/dist/schemas/index.json +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bct-app/game-model",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Game model package generated from TypeScript declaration emit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"game-model",
|
|
@@ -24,26 +24,41 @@
|
|
|
24
24
|
".": {
|
|
25
25
|
"types": "./dist/index.d.ts"
|
|
26
26
|
},
|
|
27
|
-
"./
|
|
28
|
-
|
|
27
|
+
"./zod": {
|
|
28
|
+
"types": "./dist/zod.d.ts",
|
|
29
|
+
"import": "./dist/zod.mjs",
|
|
30
|
+
"require": "./dist/zod.js"
|
|
31
|
+
},
|
|
32
|
+
"./json-schema": "./dist/json-schema/index.json",
|
|
33
|
+
"./json-schema/*": "./dist/json-schema/*.schema.json",
|
|
29
34
|
"./package.json": "./package.json"
|
|
30
35
|
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"clean": "rm -rf dist",
|
|
33
|
-
"build": "pnpm run clean && tsx scripts/build-types.ts && tsx scripts/build-schemas.ts",
|
|
34
|
-
"dev": "tsx watch scripts/build-types.ts",
|
|
35
|
-
"prepack": "pnpm run build",
|
|
36
|
-
"prepublishOnly": "pnpm run build",
|
|
37
|
-
"pack:check": "pnpm run build && npm pack --dry-run --ignore-scripts"
|
|
38
|
-
},
|
|
39
36
|
"devDependencies": {
|
|
40
37
|
"@types/node": "^25.1.0",
|
|
41
38
|
"ts-morph": "^27.0.2",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
39
|
+
"tsup": "^8.0.2",
|
|
40
|
+
"typescript": "^5.9.3",
|
|
41
|
+
"tsx": "^4.21.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"zod": "^3.25.0 || ^4.3.6"
|
|
45
|
+
},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"zod": {
|
|
48
|
+
"optional": true
|
|
49
|
+
}
|
|
44
50
|
},
|
|
45
51
|
"publishConfig": {
|
|
46
52
|
"access": "public"
|
|
47
53
|
},
|
|
48
|
-
"sideEffects": false
|
|
49
|
-
|
|
54
|
+
"sideEffects": false,
|
|
55
|
+
"scripts": {
|
|
56
|
+
"clean": "rm -rf dist",
|
|
57
|
+
"build": "pnpm run clean && pnpm run build:types && pnpm run build:zod && pnpm run build:json-schema",
|
|
58
|
+
"build:types": "tsx scripts/build-types.ts",
|
|
59
|
+
"build:zod": "tsup src/zod.ts --dts --format cjs,esm --outDir dist",
|
|
60
|
+
"build:json-schema": "tsx scripts/build-schemas.ts",
|
|
61
|
+
"dev": "pnpm run build:zod --watch",
|
|
62
|
+
"pack:check": "pnpm run build && npm pack --dry-run --ignore-scripts"
|
|
63
|
+
}
|
|
64
|
+
}
|
package/dist/schemas/index.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"game": "./game.schema.json",
|
|
3
|
-
"effect": "./effect.schema.json",
|
|
4
|
-
"input": "./input.schema.json",
|
|
5
|
-
"view": "./view.schema.json",
|
|
6
|
-
"character-basic-kind": "./character-basic-kind.schema.json",
|
|
7
|
-
"message": "./message.schema.json",
|
|
8
|
-
"character-kind": "./character-kind.schema.json"
|
|
9
|
-
}
|