Skip to content

📝 Add docstrings to feat/phase16-intelligent-ambient-npcs#4

Open
coderabbitai[bot] wants to merge 1 commit into
feat/phase16-intelligent-ambient-npcsfrom
coderabbitai/docstrings/315c735
Open

📝 Add docstrings to feat/phase16-intelligent-ambient-npcs#4
coderabbitai[bot] wants to merge 1 commit into
feat/phase16-intelligent-ambient-npcsfrom
coderabbitai/docstrings/315c735

Conversation

@coderabbitai

@coderabbitai coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown

Docstrings generation was requested by @moyunzero.

The following files were modified:

  • apps/game-server/src/ambient/intent-cache.ts
  • apps/game-server/src/ambient/intent-fallback.ts
  • apps/game-server/src/ambient/schedule.ts
  • apps/game-server/src/ambient/segment-intent.ts
  • apps/game-server/src/ambient/tick.ts
  • apps/game-server/src/ambient/zone-wander.ts
  • apps/game-server/src/colyseus/bridge.ts
  • apps/game-server/src/colyseus/npc-chat.ts
  • apps/game-server/src/colyseus/server.ts
  • apps/game-server/src/colyseus/workerStateCache.ts
  • apps/game-server/src/index.ts
  • apps/game-server/src/queue/npc-ambient-intent.ts
  • apps/game-server/src/queue/npc-turn.ts
  • apps/game-server/src/room/executor.ts
  • apps/game-server/src/routes/chat.ts
  • apps/game-server/src/routes/internal-ambient-intent.ts
  • apps/game-server/src/routes/internal-memories.ts
  • apps/game-server/src/routes/internal.ts
  • apps/game-server/src/routes/rooms.ts
  • apps/game-server/src/sse/hub.ts
  • apps/game-server/src/world/region-walkability.ts
  • apps/game-server/src/world/registry-boot.ts
  • apps/web/src/ChatPage.tsx
  • apps/web/src/components/ExploreCoordsStrip.tsx
  • apps/web/src/components/MessageList.tsx
  • apps/web/src/components/PhaserGame.tsx
  • apps/web/src/game/activityLabelLogic.ts
  • apps/web/src/game/activityLabels.ts
  • apps/web/src/game/bgNpcLabels.ts
  • apps/web/src/game/entitySprites.ts
  • apps/web/src/game/floorBlocked.ts
  • apps/web/src/game/intentLabels.ts
  • apps/web/src/game/regionCollision.ts
  • apps/web/src/hooks/useColyseusRoom.ts
  • apps/web/src/hooks/useNpcChat.ts
  • apps/web/src/lib/chunkWalkability.ts
  • apps/web/src/lib/colyseusAmbientSnapshot.ts
  • apps/web/src/lib/speakLatencyTrace.ts
  • packages/shared/src/ambientIntentSchema.ts
  • packages/shared/src/backgroundNpc.ts
  • packages/shared/src/casualSpeakStub.ts
  • packages/shared/src/homeMap.ts
  • packages/shared/src/intentContent.ts
  • packages/shared/src/room.ts
  • packages/shared/src/speakIntent.ts
  • packages/shared/src/stableStringHash.ts
  • packages/shared/src/worldRegion.ts
  • scripts/bake-beginning-fields.mjs
  • scripts/bake-village-plaza.mjs
  • scripts/benchmark-speak-browser.mjs
  • scripts/e2e-full-run.mjs
  • scripts/lib/wait-for-stack.mjs
  • scripts/run-phase16-e2e.mjs
  • scripts/verify-phase16.mjs
  • workers/agent-worker/src/graph/action_intent.py
  • workers/agent-worker/src/graph/ambient_intent.py
  • workers/agent-worker/src/graph/casual_fast_lane.py
  • workers/agent-worker/src/graph/job_context.py
  • workers/agent-worker/src/graph/nodes/llm_social_turn.py
  • workers/agent-worker/src/graph/npc_loop.py
  • workers/agent-worker/src/graph/speak_intent.py
  • workers/agent-worker/src/graph/stable_string_hash.py
  • workers/agent-worker/src/main.py
  • workers/agent-worker/src/memory/client.py
  • workers/agent-worker/tests/test_ambient_intent.py
  • workers/agent-worker/tests/test_casual_fast_lane.py
These files were kept as they were
  • workers/agent-worker/tests/test_action_intent.py
  • workers/agent-worker/tests/test_casual_reply_pool.py
These files were ignored
  • apps/game-server/src/ambient/intent-cache.test.ts
  • apps/game-server/src/ambient/intent-fallback.test.ts
  • apps/game-server/src/ambient/schedule.test.ts
  • apps/game-server/src/ambient/segment-intent.test.ts
  • apps/game-server/src/ambient/tick.test.ts
  • apps/game-server/src/ambient/zone-wander.test.ts
  • apps/game-server/src/colyseus/bridge.test.ts
  • apps/game-server/src/colyseus/npc-chat.test.ts
  • apps/game-server/src/index.test.ts
  • apps/game-server/src/queue/npc-ambient-intent.test.ts
  • apps/game-server/src/room/executor.test.ts
  • apps/game-server/src/speak/casual-stub.test.ts
  • apps/game-server/src/sse/hub.colyseus.test.ts
  • apps/game-server/src/world/chunk-loader.test.ts
  • apps/game-server/src/world/cross-region.test.ts
  • apps/game-server/src/world/lore-repository.test.ts
  • apps/game-server/src/world/region-walkability.test.ts
  • apps/web/src/components/MessageList.test.ts
  • apps/web/src/game/RoomScene.activity.test.ts
  • apps/web/src/game/bgNpcLabels.test.ts
  • apps/web/src/game/floorBlocked.test.ts
  • apps/web/src/hooks/useNpcChat.test.ts
  • apps/web/src/lib/colyseusAmbientSnapshot.test.ts
  • packages/shared/src/intentContent.test.ts
  • packages/shared/src/npcActivity.test.ts
  • packages/shared/src/room.test.ts
  • packages/shared/src/speakIntent.test.ts
  • packages/shared/src/worldRegion.test.ts
These file types are not supported
  • .gitignore
  • apps/game-server/data/schedules/README.md
  • apps/game-server/data/schedules/npc-1.json
  • apps/game-server/data/schedules/npc-2.json
  • apps/game-server/data/schedules/npc-3.json
  • apps/game-server/data/schedules/schema.json
  • apps/game-server/data/world/beginning-fields@v1/collision.json
  • apps/game-server/data/world/beginning-fields@v1/pois.json
  • apps/game-server/data/world/beginning-fields@v1/spawns.json
  • apps/game-server/data/world/beginning-fields@v1/zones.json
  • apps/game-server/data/world/regions.json
  • apps/game-server/data/world/village-plaza@v1/collision.json
  • apps/game-server/data/world/village-plaza@v1/pois.json
  • apps/game-server/data/world/village-plaza@v1/spawns.json
  • apps/game-server/data/world/village-plaza@v1/zones.json
  • apps/game-server/src/ambient/README.md
  • apps/web/public/assets/one-city/BeginningFields.json
  • apps/web/public/maps/village-plaza/v1.json
  • apps/web/public/world/beginning-fields/collision.json
  • apps/web/public/world/village-plaza/collision.json
  • apps/web/src/index.css
  • docs/CONTRACTS.md
  • docs/LLM-E2E-FLOW-AND-LATENCY.md
  • package.json
ℹ️ Note

CodeRabbit cannot perform edits on its own pull requests yet.

Docstrings generation was requested by @moyunzero.

* #3 (comment)

The following files were modified:

* `apps/game-server/src/ambient/intent-cache.ts`
* `apps/game-server/src/ambient/intent-fallback.ts`
* `apps/game-server/src/ambient/schedule.ts`
* `apps/game-server/src/ambient/segment-intent.ts`
* `apps/game-server/src/ambient/tick.ts`
* `apps/game-server/src/ambient/zone-wander.ts`
* `apps/game-server/src/colyseus/bridge.ts`
* `apps/game-server/src/colyseus/npc-chat.ts`
* `apps/game-server/src/colyseus/server.ts`
* `apps/game-server/src/colyseus/workerStateCache.ts`
* `apps/game-server/src/index.ts`
* `apps/game-server/src/queue/npc-ambient-intent.ts`
* `apps/game-server/src/queue/npc-turn.ts`
* `apps/game-server/src/room/executor.ts`
* `apps/game-server/src/routes/chat.ts`
* `apps/game-server/src/routes/internal-ambient-intent.ts`
* `apps/game-server/src/routes/internal-memories.ts`
* `apps/game-server/src/routes/internal.ts`
* `apps/game-server/src/routes/rooms.ts`
* `apps/game-server/src/sse/hub.ts`
* `apps/game-server/src/world/region-walkability.ts`
* `apps/game-server/src/world/registry-boot.ts`
* `apps/web/src/ChatPage.tsx`
* `apps/web/src/components/ExploreCoordsStrip.tsx`
* `apps/web/src/components/MessageList.tsx`
* `apps/web/src/components/PhaserGame.tsx`
* `apps/web/src/game/activityLabelLogic.ts`
* `apps/web/src/game/activityLabels.ts`
* `apps/web/src/game/bgNpcLabels.ts`
* `apps/web/src/game/entitySprites.ts`
* `apps/web/src/game/floorBlocked.ts`
* `apps/web/src/game/intentLabels.ts`
* `apps/web/src/game/regionCollision.ts`
* `apps/web/src/hooks/useColyseusRoom.ts`
* `apps/web/src/hooks/useNpcChat.ts`
* `apps/web/src/lib/chunkWalkability.ts`
* `apps/web/src/lib/colyseusAmbientSnapshot.ts`
* `apps/web/src/lib/speakLatencyTrace.ts`
* `packages/shared/src/ambientIntentSchema.ts`
* `packages/shared/src/backgroundNpc.ts`
* `packages/shared/src/casualSpeakStub.ts`
* `packages/shared/src/homeMap.ts`
* `packages/shared/src/intentContent.ts`
* `packages/shared/src/room.ts`
* `packages/shared/src/speakIntent.ts`
* `packages/shared/src/stableStringHash.ts`
* `packages/shared/src/worldRegion.ts`
* `scripts/bake-beginning-fields.mjs`
* `scripts/bake-village-plaza.mjs`
* `scripts/benchmark-speak-browser.mjs`
* `scripts/e2e-full-run.mjs`
* `scripts/lib/wait-for-stack.mjs`
* `scripts/run-phase16-e2e.mjs`
* `scripts/verify-phase16.mjs`
* `workers/agent-worker/src/graph/action_intent.py`
* `workers/agent-worker/src/graph/ambient_intent.py`
* `workers/agent-worker/src/graph/casual_fast_lane.py`
* `workers/agent-worker/src/graph/job_context.py`
* `workers/agent-worker/src/graph/nodes/llm_social_turn.py`
* `workers/agent-worker/src/graph/npc_loop.py`
* `workers/agent-worker/src/graph/speak_intent.py`
* `workers/agent-worker/src/graph/stable_string_hash.py`
* `workers/agent-worker/src/main.py`
* `workers/agent-worker/src/memory/client.py`
* `workers/agent-worker/tests/test_ambient_intent.py`
* `workers/agent-worker/tests/test_casual_fast_lane.py`
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown
Author

Important

Review skipped

This PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b0d2756f-c0c6-4b05-87ac-b89f3a23833a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant