Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Offer show and give in a character's action sheet

オープン
#31 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
54/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

Start with packages/engine/src/affordances.ts and apps/web/src/logic/actions.ts, then read the action sheet guidance in docs/spec/content-pack.md section 7 and the interaction ADR. Check the existing coverage in apps/web/test/actions.test.ts and find the engine and end-to-end test entry points. Done when character sheets offer the specified actions, the canonical command and exploration results remain unchanged, tests cover the flow, and both named docs are updated.

索引モデルが issue の本文から書いたものです。

説明

area: engine area: web priority: medium type: feature

Context

Interrogations are built on showing clues to characters. By default view offers show and give only on carried objects while a character is present (item first). Tapping a character offers look and talk, although "tap the character, Show, pick the item" is the natural flow. The player already supports that flow (apps/web/src/logic/actions.ts, targetModel with slot object), but it is reachable only when a pack lists show or give in the character's verbs, which neither bundled pack does.

Scope

  • Engine affordances: for a character present in the room, offer show when the player carries an item or clue, and give when the player carries a non-clue item, without the pack listing them.
  • Player: the command stays show <item> <npc>, so logs are identical to the item-first path.
  • Spec section 7 (action sheets) updated. The offered actions of section 14 do not change (the same commands are already offered item first), so exploration results stay the same.
  • Prompt kit regenerated because the spec changes.

Acceptance criteria

  • Tapping a character while carrying items offers Show, and Give for non-clue items.
  • Choosing an item issues the same canonical command as the item-first path.
  • lexvm check results for both packs are unchanged, including the number of explored states.
  • Engine and player unit tests cover the new sheet; an end-to-end test shows an item through the character.
  • docs/spec/content-pack.md and prompts/oneshot.md are updated.

References

  • packages/engine/src/affordances.ts
  • apps/web/src/logic/actions.ts
  • apps/web/test/actions.test.ts
  • docs/spec/content-pack.md (sections 7 and 14)
  • docs/adr/0002-tap-first-interaction-with-optional-parser.md
主要言語
TypeScript
スター
0
フォーク
0
平均マージ
28分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nullthrone/lexvm のほかの issue

nullthrone/lexvm の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。