Rename AI Tycoon to Token Empire across entire codebase
Full rebrand: UI display text, package scope (@ai-tycoon/* -> @token-empire/*), localStorage keys, Docker/CI image paths, database names, and documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@ai-tycoon/game-simulation",
|
||||
"name": "@token-empire/game-simulation",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"type": "module",
|
||||
@@ -19,11 +19,11 @@
|
||||
"test": "vitest run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-tycoon/shared": "workspace:*",
|
||||
"@ai-tycoon/game-engine": "workspace:*"
|
||||
"@token-empire/shared": "workspace:*",
|
||||
"@token-empire/game-engine": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ai-tycoon/tsconfig": "workspace:*",
|
||||
"@token-empire/tsconfig": "workspace:*",
|
||||
"@types/node": "^22.0.0",
|
||||
"tsx": "^4.19.4",
|
||||
"typescript": "^5.8.0"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { GameState } from '@ai-tycoon/shared';
|
||||
import type { GameState } from '@token-empire/shared';
|
||||
|
||||
export function acquireCompetitor(state: GameState, competitorId: string): boolean {
|
||||
const rival = state.competitors.rivals.find(r => r.id === competitorId);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { GameState, OwnedDataset } from '@ai-tycoon/shared';
|
||||
import type { GameState, OwnedDataset } from '@token-empire/shared';
|
||||
|
||||
export function purchaseDataset(state: GameState, dataset: OwnedDataset, cost: number): boolean {
|
||||
if (state.economy.money < cost) return false;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { GameState, FundingRoundType } from '@ai-tycoon/shared';
|
||||
import { FUNDING_ROUNDS } from '@ai-tycoon/shared';
|
||||
import { canRaiseFunding, getNextFundingRound } from '@ai-tycoon/game-engine';
|
||||
import type { GameState, FundingRoundType } from '@token-empire/shared';
|
||||
import { FUNDING_ROUNDS } from '@token-empire/shared';
|
||||
import { canRaiseFunding, getNextFundingRound } from '@token-empire/game-engine';
|
||||
|
||||
export function raiseFunding(state: GameState, roundType: FundingRoundType): boolean {
|
||||
const config = FUNDING_ROUNDS[roundType];
|
||||
|
||||
@@ -2,7 +2,7 @@ import type {
|
||||
GameState, Era, LocationId, DCTier, RackSkuId,
|
||||
Cluster, Campus, DataCenter, DeploymentCohort,
|
||||
CoolingType, NetworkFabric, PipelineStage,
|
||||
} from '@ai-tycoon/shared';
|
||||
} from '@token-empire/shared';
|
||||
import {
|
||||
LOCATION_CONFIGS, DC_TIER_CONFIGS, RACK_SKU_CONFIGS,
|
||||
CLUSTER_COST_CONFIG, CAMPUS_TIER_COSTS, FIRST_CAMPUS_BUILD_TICKS,
|
||||
@@ -11,10 +11,10 @@ import {
|
||||
FABRIC_ORDER, NETWORK_FABRIC_CONFIGS,
|
||||
DC_UPGRADE_COST_FRACTION, DC_UPGRADE_INCREMENT,
|
||||
estimateNetworkSlots, maxComputeRacks,
|
||||
} from '@ai-tycoon/shared';
|
||||
} from '@token-empire/shared';
|
||||
import {
|
||||
emptyDCNetworkSummary, emptyCampusNetworkSummary, emptyClusterNetworkSummary,
|
||||
} from '@ai-tycoon/game-engine';
|
||||
} from '@token-empire/game-engine';
|
||||
import { simId } from './ids';
|
||||
|
||||
const ERA_ORDER: Era[] = ['startup', 'scaleup', 'bigtech', 'agi'];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { GameState, ConsumerTierId, ApiTierId } from '@ai-tycoon/shared';
|
||||
import type { GameState, ConsumerTierId, ApiTierId } from '@token-empire/shared';
|
||||
|
||||
export function setTrainingAllocation(state: GameState, ratio: number): void {
|
||||
state.compute.trainingAllocation = ratio;
|
||||
|
||||
@@ -2,14 +2,14 @@ import type {
|
||||
GameState, ModelFamily, TrainingPipeline, VariantCreationJob,
|
||||
ModelArchitecture, DataMixAllocation, SFTSpecialization, AlignmentMethod, SizeTier,
|
||||
QuantizationLevel,
|
||||
} from '@ai-tycoon/shared';
|
||||
} from '@token-empire/shared';
|
||||
import {
|
||||
MAX_CONCURRENT_TRAINING, SIZE_TIER_MAP, SIZE_TIER_LABELS,
|
||||
SFT_TIME_FRACTION, ALIGNMENT_TIME_FRACTION,
|
||||
POINT_RELEASE_TIME_FRACTION, QUANTIZATION_TICKS,
|
||||
OPEN_SOURCE_REPUTATION_BOOST,
|
||||
} from '@ai-tycoon/shared';
|
||||
import { onModelDeployed } from '@ai-tycoon/game-engine';
|
||||
} from '@token-empire/shared';
|
||||
import { onModelDeployed } from '@token-empire/game-engine';
|
||||
import { simId } from './ids';
|
||||
|
||||
export interface TrainingConfig {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GameState, ActiveResearch } from '@ai-tycoon/shared';
|
||||
import { TECH_TREE } from '@ai-tycoon/game-engine';
|
||||
import type { GameState, ActiveResearch } from '@token-empire/shared';
|
||||
import { TECH_TREE } from '@token-empire/game-engine';
|
||||
|
||||
export function startResearch(state: GameState, research: ActiveResearch): boolean {
|
||||
const node = TECH_TREE.find(n => n.id === research.researchId);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { GameState } from '@ai-tycoon/shared';
|
||||
import type { GameState } from '@token-empire/shared';
|
||||
|
||||
export type DepartmentId = 'research' | 'engineering' | 'operations' | 'sales';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { SimulationMetrics } from '../strategies/types';
|
||||
import type { TickNotification } from '@ai-tycoon/game-engine';
|
||||
import type { TickNotification } from '@token-empire/game-engine';
|
||||
|
||||
export interface RevenueBreakpoint {
|
||||
tick: number;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GameState, RackSkuId } from '@ai-tycoon/shared';
|
||||
import { RACK_SKU_CONFIGS } from '@ai-tycoon/shared';
|
||||
import type { GameState, RackSkuId } from '@token-empire/shared';
|
||||
import { RACK_SKU_CONFIGS } from '@token-empire/shared';
|
||||
import type { SimulationMetrics } from '../strategies/types';
|
||||
|
||||
export interface DeadZone {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { SimulationMetrics } from '../strategies/types';
|
||||
import { ERA_THRESHOLDS } from '@ai-tycoon/shared';
|
||||
import { ERA_THRESHOLDS } from '@token-empire/shared';
|
||||
|
||||
const ERA_ORDER = ['startup', 'scaleup', 'bigtech', 'agi'] as const;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { GameState } from '@ai-tycoon/shared';
|
||||
import { RACK_SKU_CONFIGS, FUNDING_ROUNDS } from '@ai-tycoon/shared';
|
||||
import { TECH_TREE } from '@ai-tycoon/game-engine';
|
||||
import type { GameState } from '@token-empire/shared';
|
||||
import { RACK_SKU_CONFIGS, FUNDING_ROUNDS } from '@token-empire/shared';
|
||||
import { TECH_TREE } from '@token-empire/game-engine';
|
||||
|
||||
export interface FeatureUsage {
|
||||
name: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { GameState } from '@ai-tycoon/shared';
|
||||
import type { GameState } from '@token-empire/shared';
|
||||
import type { SimulationMetrics } from '../strategies/types';
|
||||
|
||||
export function collectMetrics(state: GameState): SimulationMetrics {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { SimulationMetrics } from '../strategies/types';
|
||||
import type { TickNotification } from '@ai-tycoon/game-engine';
|
||||
import type { TickNotification } from '@token-empire/game-engine';
|
||||
|
||||
export interface Milestone {
|
||||
name: string;
|
||||
|
||||
@@ -100,7 +100,7 @@ export function printConsoleReport(result: SimulationResult, config: SimulationC
|
||||
const perEraSummary = buildPerEraSummary(result, eraProximity);
|
||||
|
||||
console.log('');
|
||||
console.log('=== AI Tycoon Balance Simulation ===');
|
||||
console.log('=== Token Empire Balance Simulation ===');
|
||||
console.log(`Strategy: ${config.strategy.name} | Ticks: ${config.totalTicks.toLocaleString()} | Decision interval: ${config.decisionInterval}`);
|
||||
console.log(`Wall time: ${(result.wallTimeMs / 1000).toFixed(1)}s${config.seed !== undefined ? ` | Seed: ${config.seed}` : ''}`);
|
||||
console.log('');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { SimulationMetrics } from '../strategies/types';
|
||||
import { ERA_THRESHOLDS } from '@ai-tycoon/shared';
|
||||
import { ERA_THRESHOLDS } from '@token-empire/shared';
|
||||
|
||||
export type SanityCheckSeverity = 'error' | 'warning';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { SimulationMetrics } from '../strategies/types';
|
||||
import type { TickNotification } from '@ai-tycoon/game-engine';
|
||||
import type { TickNotification } from '@token-empire/game-engine';
|
||||
|
||||
export interface SystemConnection {
|
||||
from: string;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import type { GameState } from '@ai-tycoon/shared';
|
||||
import type { GameState } from '@token-empire/shared';
|
||||
import {
|
||||
INITIAL_SETTINGS, SAVE_VERSION,
|
||||
INITIAL_ECONOMY, INITIAL_INFRASTRUCTURE, INITIAL_COMPUTE,
|
||||
INITIAL_RESEARCH, INITIAL_MODELS, INITIAL_MARKET,
|
||||
INITIAL_TALENT, INITIAL_DATA,
|
||||
INITIAL_REPUTATION, INITIAL_ACHIEVEMENTS,
|
||||
} from '@ai-tycoon/shared';
|
||||
import { INITIAL_RIVALS } from '@ai-tycoon/game-engine';
|
||||
} from '@token-empire/shared';
|
||||
import { INITIAL_RIVALS } from '@token-empire/game-engine';
|
||||
|
||||
export function createInitialState(companyName = 'SimCorp'): GameState {
|
||||
return {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { GameState } from '@ai-tycoon/shared';
|
||||
import { processTick, setAchievementDefinitions, ACHIEVEMENT_DEFINITIONS, resetResearchBonusCache, resetFleetCache } from '@ai-tycoon/game-engine';
|
||||
import type { TickNotification } from '@ai-tycoon/game-engine';
|
||||
import type { GameState } from '@token-empire/shared';
|
||||
import { processTick, setAchievementDefinitions, ACHIEVEMENT_DEFINITIONS, resetResearchBonusCache, resetFleetCache } from '@token-empire/game-engine';
|
||||
import type { TickNotification } from '@token-empire/game-engine';
|
||||
import type { Strategy, SimulationMetrics } from './strategies/types';
|
||||
import { collectMetrics } from './analysis/metrics';
|
||||
import { createInitialState } from './initialState';
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import type { GameState, Era, RackSkuId } from '@ai-tycoon/shared';
|
||||
import type { GameState, Era, RackSkuId } from '@token-empire/shared';
|
||||
import {
|
||||
RACK_SKU_CONFIGS, DC_TIER_CONFIGS, COOLING_ORDER,
|
||||
PARAMETER_OPTIONS, DEFAULT_DATA_MIX,
|
||||
MAX_CONCURRENT_TRAINING, PRETRAINING_BASE_TICKS,
|
||||
CLUSTER_COST_CONFIG, LOCATION_CONFIGS, maxComputeRacks,
|
||||
VRAM_REQUIREMENTS_BY_GENERATION,
|
||||
} from '@ai-tycoon/shared';
|
||||
} from '@token-empire/shared';
|
||||
import {
|
||||
canRaiseFunding, getNextFundingRound, getAvailableResearch, TECH_TREE,
|
||||
} from '@ai-tycoon/game-engine';
|
||||
} from '@token-empire/game-engine';
|
||||
import * as actions from '../actions';
|
||||
import type { Strategy, SimulationMetrics } from './types';
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import type { GameState, Era, RackSkuId } from '@ai-tycoon/shared';
|
||||
import type { GameState, Era, RackSkuId } from '@token-empire/shared';
|
||||
import {
|
||||
RACK_SKU_CONFIGS, DC_TIER_CONFIGS, COOLING_ORDER,
|
||||
PARAMETER_OPTIONS, DEFAULT_DATA_MIX,
|
||||
MAX_CONCURRENT_TRAINING, PRETRAINING_BASE_TICKS,
|
||||
CLUSTER_COST_CONFIG, LOCATION_CONFIGS, maxComputeRacks,
|
||||
VRAM_REQUIREMENTS_BY_GENERATION,
|
||||
} from '@ai-tycoon/shared';
|
||||
} from '@token-empire/shared';
|
||||
import {
|
||||
canRaiseFunding, getNextFundingRound, getAvailableResearch, TECH_TREE,
|
||||
} from '@ai-tycoon/game-engine';
|
||||
} from '@token-empire/game-engine';
|
||||
import * as actions from '../actions';
|
||||
import type { Strategy, SimulationMetrics } from './types';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { GameState } from '@ai-tycoon/shared';
|
||||
import { RACK_SKU_CONFIGS, DEFAULT_DATA_MIX, PARAMETER_OPTIONS } from '@ai-tycoon/shared';
|
||||
import { canRaiseFunding, getNextFundingRound, getAvailableResearch } from '@ai-tycoon/game-engine';
|
||||
import type { GameState } from '@token-empire/shared';
|
||||
import { RACK_SKU_CONFIGS, DEFAULT_DATA_MIX, PARAMETER_OPTIONS } from '@token-empire/shared';
|
||||
import { canRaiseFunding, getNextFundingRound, getAvailableResearch } from '@token-empire/game-engine';
|
||||
import * as actions from '../actions';
|
||||
import type { Strategy, SimulationMetrics } from './types';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { GameState } from '@ai-tycoon/shared';
|
||||
import type { GameState } from '@token-empire/shared';
|
||||
|
||||
export interface SimulationMetrics {
|
||||
tick: number;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@ai-tycoon/tsconfig/node.json",
|
||||
"extends": "@token-empire/tsconfig/node.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
|
||||
Reference in New Issue
Block a user