404 lines
16 KiB
JSON
404 lines
16 KiB
JSON
{
|
|
"name": "@suaveplan/game-server",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"description": "Universal game server framework: typed dependency-injection container, error registry and Zod-validated core types (game-config, session-metadata, player-info, move-validation-result) as foundation for the broader engine/session/state/matchmaking surface migrated from main",
|
|
"license": "MIT",
|
|
"author": "Suaveplan Team",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"require": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"./errors": {
|
|
"import": {
|
|
"types": "./dist/errors/index.d.ts",
|
|
"default": "./dist/errors/index.js"
|
|
}
|
|
},
|
|
"./types": {
|
|
"import": {
|
|
"types": "./dist/types/index.d.ts",
|
|
"default": "./dist/types/index.js"
|
|
}
|
|
},
|
|
"./engine/di-container": {
|
|
"import": {
|
|
"types": "./dist/engine/di-container/index.d.ts",
|
|
"default": "./dist/engine/di-container/index.js"
|
|
}
|
|
},
|
|
"./core/types": {
|
|
"import": {
|
|
"types": "./dist/core/types/index.d.ts",
|
|
"default": "./dist/core/types/index.js"
|
|
}
|
|
},
|
|
"./core/interfaces/i-game-logic": {
|
|
"import": {
|
|
"types": "./dist/core/interfaces/i-game-logic/index.d.ts",
|
|
"default": "./dist/core/interfaces/i-game-logic/index.js"
|
|
}
|
|
},
|
|
"./core/interfaces/i-player-manager": {
|
|
"import": {
|
|
"types": "./dist/core/interfaces/i-player-manager/index.d.ts",
|
|
"default": "./dist/core/interfaces/i-player-manager/index.js"
|
|
}
|
|
},
|
|
"./core/interfaces/i-session-manager": {
|
|
"import": {
|
|
"types": "./dist/core/interfaces/i-session-manager/index.d.ts",
|
|
"default": "./dist/core/interfaces/i-session-manager/index.js"
|
|
}
|
|
},
|
|
"./core/interfaces/i-state-manager": {
|
|
"import": {
|
|
"types": "./dist/core/interfaces/i-state-manager/index.d.ts",
|
|
"default": "./dist/core/interfaces/i-state-manager/index.js"
|
|
}
|
|
},
|
|
"./core/events/game-event-emitter": {
|
|
"import": {
|
|
"types": "./dist/core/events/game-event-emitter/index.d.ts",
|
|
"default": "./dist/core/events/game-event-emitter/index.js"
|
|
}
|
|
},
|
|
"./core/events/game-events": {
|
|
"import": {
|
|
"types": "./dist/core/events/game-events/index.d.ts",
|
|
"default": "./dist/core/events/game-events/index.js"
|
|
}
|
|
},
|
|
"./core/abstract-game-logic": {
|
|
"import": {
|
|
"types": "./dist/core/abstract-game-logic/index.d.ts",
|
|
"default": "./dist/core/abstract-game-logic/index.js"
|
|
}
|
|
},
|
|
"./state/state-manager": {
|
|
"import": {
|
|
"types": "./dist/state/state-manager/index.d.ts",
|
|
"default": "./dist/state/state-manager/index.js"
|
|
}
|
|
},
|
|
"./state/state-differ": {
|
|
"import": {
|
|
"types": "./dist/state/state-differ/index.d.ts",
|
|
"default": "./dist/state/state-differ/index.js"
|
|
}
|
|
},
|
|
"./state/delta-compressor": {
|
|
"import": {
|
|
"types": "./dist/state/delta-compressor/index.d.ts",
|
|
"default": "./dist/state/delta-compressor/index.js"
|
|
}
|
|
},
|
|
"./state/state-sync": {
|
|
"import": {
|
|
"types": "./dist/state/state-sync/index.d.ts",
|
|
"default": "./dist/state/state-sync/index.js"
|
|
}
|
|
},
|
|
"./network/network-adapter": {
|
|
"import": {
|
|
"types": "./dist/network/network-adapter/index.d.ts",
|
|
"default": "./dist/network/network-adapter/index.js"
|
|
}
|
|
},
|
|
"./network/reconnection-manager": {
|
|
"import": {
|
|
"types": "./dist/network/reconnection-manager/index.d.ts",
|
|
"default": "./dist/network/reconnection-manager/index.js"
|
|
}
|
|
},
|
|
"./network/websocket-transport": {
|
|
"import": {
|
|
"types": "./dist/network/websocket-transport/index.d.ts",
|
|
"default": "./dist/network/websocket-transport/index.js"
|
|
}
|
|
},
|
|
"./network/webrtc-transport": {
|
|
"import": {
|
|
"types": "./dist/network/webrtc-transport/index.d.ts",
|
|
"default": "./dist/network/webrtc-transport/index.js"
|
|
}
|
|
},
|
|
"./engine/game-engine": {
|
|
"import": {
|
|
"types": "./dist/engine/game-engine/index.d.ts",
|
|
"default": "./dist/engine/game-engine/index.js"
|
|
}
|
|
},
|
|
"./engine/game-loop": {
|
|
"import": {
|
|
"types": "./dist/engine/game-loop/index.d.ts",
|
|
"default": "./dist/engine/game-loop/index.js"
|
|
}
|
|
},
|
|
"./engine/plugin-manager": {
|
|
"import": {
|
|
"types": "./dist/engine/plugin-manager/index.d.ts",
|
|
"default": "./dist/engine/plugin-manager/index.js"
|
|
}
|
|
},
|
|
"./engine/session-lifecycle": {
|
|
"import": {
|
|
"types": "./dist/engine/session-lifecycle/index.d.ts",
|
|
"default": "./dist/engine/session-lifecycle/index.js"
|
|
}
|
|
},
|
|
"./engine/session-node": {
|
|
"import": {
|
|
"types": "./dist/engine/session-node/index.d.ts",
|
|
"default": "./dist/engine/session-node/index.js"
|
|
}
|
|
},
|
|
"./engine/session-store": {
|
|
"import": {
|
|
"types": "./dist/engine/session-store/index.d.ts",
|
|
"default": "./dist/engine/session-store/index.js"
|
|
}
|
|
},
|
|
"./engine/session-tree": {
|
|
"import": {
|
|
"types": "./dist/engine/session-tree/index.d.ts",
|
|
"default": "./dist/engine/session-tree/index.js"
|
|
}
|
|
},
|
|
"./engine/player-manager": {
|
|
"import": {
|
|
"types": "./dist/engine/player-manager/index.d.ts",
|
|
"default": "./dist/engine/player-manager/index.js"
|
|
}
|
|
},
|
|
"./observability": {
|
|
"import": {
|
|
"types": "./dist/observability/index.d.ts",
|
|
"default": "./dist/observability/index.js"
|
|
}
|
|
},
|
|
"./matchmaking/queue-manager": {
|
|
"import": {
|
|
"types": "./dist/matchmaking/queue-manager/index.d.ts",
|
|
"default": "./dist/matchmaking/queue-manager/index.js"
|
|
}
|
|
},
|
|
"./matchmaking/skill-matcher": {
|
|
"import": {
|
|
"types": "./dist/matchmaking/skill-matcher/index.d.ts",
|
|
"default": "./dist/matchmaking/skill-matcher/index.js"
|
|
}
|
|
},
|
|
"./matchmaking/spectator-manager": {
|
|
"import": {
|
|
"types": "./dist/matchmaking/spectator-manager/index.d.ts",
|
|
"default": "./dist/matchmaking/spectator-manager/index.js"
|
|
}
|
|
},
|
|
"./matchmaking/winner-stays-on": {
|
|
"import": {
|
|
"types": "./dist/matchmaking/winner-stays-on/index.d.ts",
|
|
"default": "./dist/matchmaking/winner-stays-on/index.js"
|
|
}
|
|
},
|
|
"./matchmaking/matchmaking-engine": {
|
|
"import": {
|
|
"types": "./dist/matchmaking/matchmaking-engine/index.d.ts",
|
|
"default": "./dist/matchmaking/matchmaking-engine/index.js"
|
|
}
|
|
},
|
|
"./performance/object-pool": {
|
|
"import": {
|
|
"types": "./dist/performance/object-pool/index.d.ts",
|
|
"default": "./dist/performance/object-pool/index.js"
|
|
}
|
|
},
|
|
"./performance/session-pool": {
|
|
"import": {
|
|
"types": "./dist/performance/session-pool/index.d.ts",
|
|
"default": "./dist/performance/session-pool/index.js"
|
|
}
|
|
},
|
|
"./performance/network-tier-adapter": {
|
|
"import": {
|
|
"types": "./dist/performance/network-tier-adapter/index.d.ts",
|
|
"default": "./dist/performance/network-tier-adapter/index.js"
|
|
}
|
|
},
|
|
"./plugins/base-plugin": {
|
|
"import": {
|
|
"types": "./dist/plugins/base-plugin/index.d.ts",
|
|
"default": "./dist/plugins/base-plugin/index.js"
|
|
}
|
|
},
|
|
"./plugins/ab-test-plugin": {
|
|
"import": {
|
|
"types": "./dist/plugins/ab-test-plugin/index.d.ts",
|
|
"default": "./dist/plugins/ab-test-plugin/index.js"
|
|
}
|
|
},
|
|
"./plugins/analytics-plugin": {
|
|
"import": {
|
|
"types": "./dist/plugins/analytics-plugin/index.d.ts",
|
|
"default": "./dist/plugins/analytics-plugin/index.js"
|
|
}
|
|
},
|
|
"./plugins/feature-flag-plugin": {
|
|
"import": {
|
|
"types": "./dist/plugins/feature-flag-plugin/index.d.ts",
|
|
"default": "./dist/plugins/feature-flag-plugin/index.js"
|
|
}
|
|
},
|
|
"./plugins/logging-plugin": {
|
|
"import": {
|
|
"types": "./dist/plugins/logging-plugin/index.d.ts",
|
|
"default": "./dist/plugins/logging-plugin/index.js"
|
|
}
|
|
},
|
|
"./plugins/persistence-plugin": {
|
|
"import": {
|
|
"types": "./dist/plugins/persistence-plugin/index.d.ts",
|
|
"default": "./dist/plugins/persistence-plugin/index.js"
|
|
}
|
|
},
|
|
"./plugins/rules-plugin": {
|
|
"import": {
|
|
"types": "./dist/plugins/rules-plugin/index.d.ts",
|
|
"default": "./dist/plugins/rules-plugin/index.js"
|
|
}
|
|
},
|
|
"./plugins/workflow-plugin": {
|
|
"import": {
|
|
"types": "./dist/plugins/workflow-plugin/index.d.ts",
|
|
"default": "./dist/plugins/workflow-plugin/index.js"
|
|
}
|
|
},
|
|
"./enhanced/anti-cheat/anti-cheat-validator": {
|
|
"import": {
|
|
"types": "./dist/enhanced/anti-cheat/anti-cheat-validator/index.d.ts",
|
|
"default": "./dist/enhanced/anti-cheat/anti-cheat-validator/index.js"
|
|
}
|
|
},
|
|
"./enhanced/interest-management/interest-manager": {
|
|
"import": {
|
|
"types": "./dist/enhanced/interest-management/interest-manager/index.d.ts",
|
|
"default": "./dist/enhanced/interest-management/interest-manager/index.js"
|
|
}
|
|
},
|
|
"./enhanced/lag-compensation/lag-compensator": {
|
|
"import": {
|
|
"types": "./dist/enhanced/lag-compensation/lag-compensator/index.d.ts",
|
|
"default": "./dist/enhanced/lag-compensation/lag-compensator/index.js"
|
|
}
|
|
},
|
|
"./enhanced/leaderboard/leaderboard-manager": {
|
|
"import": {
|
|
"types": "./dist/enhanced/leaderboard/leaderboard-manager/index.d.ts",
|
|
"default": "./dist/enhanced/leaderboard/leaderboard-manager/index.js"
|
|
}
|
|
},
|
|
"./enhanced/persistence/game-persistence": {
|
|
"import": {
|
|
"types": "./dist/enhanced/persistence/game-persistence/index.d.ts",
|
|
"default": "./dist/enhanced/persistence/game-persistence/index.js"
|
|
}
|
|
},
|
|
"./enhanced/replay/replay-recorder": {
|
|
"import": {
|
|
"types": "./dist/enhanced/replay/replay-recorder/index.d.ts",
|
|
"default": "./dist/enhanced/replay/replay-recorder/index.js"
|
|
}
|
|
},
|
|
"./enhanced/replay/replay-player": {
|
|
"import": {
|
|
"types": "./dist/enhanced/replay/replay-player/index.d.ts",
|
|
"default": "./dist/enhanced/replay/replay-player/index.js"
|
|
}
|
|
},
|
|
"./enhanced/tournament/tournament-manager": {
|
|
"import": {
|
|
"types": "./dist/enhanced/tournament/tournament-manager/index.d.ts",
|
|
"default": "./dist/enhanced/tournament/tournament-manager/index.js"
|
|
}
|
|
},
|
|
"./enhanced/service-discovery/game-instance-registry": {
|
|
"import": {
|
|
"types": "./dist/enhanced/service-discovery/game-instance-registry/index.d.ts",
|
|
"default": "./dist/enhanced/service-discovery/game-instance-registry/index.js"
|
|
}
|
|
},
|
|
"./enhanced/state-sync/bitpacker-state-sync": {
|
|
"import": {
|
|
"types": "./dist/enhanced/state-sync/bitpacker-state-sync/index.d.ts",
|
|
"default": "./dist/enhanced/state-sync/bitpacker-state-sync/index.js"
|
|
}
|
|
},
|
|
"./enhanced/timing/vector-clock-sync": {
|
|
"import": {
|
|
"types": "./dist/enhanced/timing/vector-clock-sync/index.d.ts",
|
|
"default": "./dist/enhanced/timing/vector-clock-sync/index.js"
|
|
}
|
|
},
|
|
"./integrations/enhanced-server": {
|
|
"import": {
|
|
"types": "./dist/integrations/enhanced-server/index.d.ts",
|
|
"default": "./dist/integrations/enhanced-server/index.js"
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "vite build",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage --passWithNoTests",
|
|
"lint": "bunx biome check src/",
|
|
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
|
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
|
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
|
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
|
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
|
},
|
|
"dependencies": {
|
|
"@opentelemetry/api": "catalog:observability",
|
|
"@suaveplan/bitpacker": "workspace:^",
|
|
"@suaveplan/error": "workspace:^",
|
|
"@suaveplan/feature-flags": "workspace:^",
|
|
"@suaveplan/network-transport-webrtc": "workspace:^",
|
|
"@suaveplan/network-transport-websockets": "workspace:^",
|
|
"@suaveplan/retry": "workspace:^",
|
|
"@suaveplan/rules": "workspace:^",
|
|
"@suaveplan/timing": "workspace:^",
|
|
"@suaveplan/types": "workspace:^",
|
|
"@suaveplan/workflow": "workspace:^",
|
|
"tslib": "catalog:build",
|
|
"zod": "catalog:forms"
|
|
},
|
|
"devDependencies": {
|
|
"@opentelemetry/sdk-metrics": "1.30.0",
|
|
"@suaveplan/bitpacker-strategies": "workspace:^",
|
|
"@suaveplan/testing": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@vitest/coverage-istanbul": "catalog:testing",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:build",
|
|
"vite-plugin-dts": "catalog:build",
|
|
"vitest": "catalog:testing"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://npmjs.fq.io/",
|
|
"access": "public"
|
|
}
|
|
}
|