Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions apps/game-api/src/simulation-service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { gridDisk, gridDistance } from 'h3-js';
import { gridDistance } from 'h3-js';
import {
SwarmPlannerError,
type ReflexProvider,
Expand All @@ -11,9 +11,7 @@ import {
experimentModelConfigurationSchema,
modelSupportsReasoningProfile,
updateExperimentModelsRequestSchema,
h3CellSchema,
OPENROUTER_PROVIDER_TIMEOUT_MS,
WORLD_SCENARIO_LIMITS,
PATIENT_ZERO_PLAYER_THREAT_FEED_LIMIT,
PATIENT_ZERO_PRESSURE_WINDOW_TICKS,
swarmDirectiveSchema,
Expand Down
2 changes: 1 addition & 1 deletion apps/game-api/src/swarm-directives.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ describe('swarm directive semantics', () => {
});

it('rejects infected expand targets while accepting open targets', () => {
const { state, worker, neighbor, directive } = fixture();
const { state, neighbor, directive } = fixture();
const otherWorker = [...state.agents.values()][2]!;
expect(swarmDirectiveIssue(state, directive('expand'))).toBeNull();

Expand Down
4 changes: 1 addition & 3 deletions packages/shared/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { describe, expect, it } from 'vitest';
import {
SWARM_PLANNER_CONTRACT_VERSION,
WORLD_SCENARIO_LIMITS,
OBJECTIVE_PROMPT_VERSION,
apiErrorSchema,
agentIdSchema,
agentObservationSchema,
captureEligibilitySchema,
experimentExportWorldStateSchema,
Expand Down Expand Up @@ -107,7 +105,7 @@ const snapshot = {
spawnSeed: 'spawn',
minimumSpawnSeparation: 0,
patientZeroAgentId: worldAgents[0]!.id,
roster: worldAgents.map(({ currentCell: _currentCell, ...agent }) => agent),
roster: worldAgents.map(({ id, name, color }) => ({ id, name, color })),
modelConfiguration: {
globalModelId: 'author/compatible-model',
globalReasoningProfile: 'provider-default',
Expand Down
11 changes: 1 addition & 10 deletions packages/world-engine/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
import {
cellArea,
cellToLatLng,
greatCircleDistance,
gridDisk,
gridDistance,
latLngToCell,
UNITS,
} from 'h3-js';
import { cellArea, gridDisk, gridDistance, latLngToCell, UNITS } from 'h3-js';
import {
SWARM_PLANNER_CONTRACT_VERSION,
DEVELOPMENT_WORLD_CONFIG,
DEFAULT_MINIMUM_TICK_INTERVAL_MINUTES,
DEFAULT_MAXIMUM_TICK_INTERVAL_MINUTES,
DEFAULT_PROVIDER_ATTEMPT_LIMIT,
OBJECTIVE_PROMPT_VERSION,
WORLD_SCENARIO_LIMITS,
agentIdSchema,
h3CellSchema,
Expand Down
Loading