@sharpee/stdlib 0.9.113 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/author/index.d.ts.map +1 -1
- package/actions/author/trace.d.ts +1 -1
- package/actions/author/trace.d.ts.map +1 -1
- package/actions/base/index.d.ts.map +1 -1
- package/actions/base/migration-shim.d.ts +1 -1
- package/actions/base/migration-shim.d.ts.map +1 -1
- package/actions/base/report-helpers.d.ts +1 -1
- package/actions/base/report-helpers.d.ts.map +1 -1
- package/actions/base/snapshot-utils.d.ts +1 -1
- package/actions/base/snapshot-utils.d.ts.map +1 -1
- package/actions/base/snapshot-utils.js +1 -1
- package/actions/capability-dispatch.d.ts.map +1 -1
- package/actions/capability-dispatch.js +1 -1
- package/actions/constants.d.ts.map +1 -1
- package/actions/context-adapter.d.ts +3 -3
- package/actions/context-adapter.d.ts.map +1 -1
- package/actions/data-builder-types.d.ts +1 -1
- package/actions/data-builder-types.d.ts.map +1 -1
- package/actions/enhanced-context.d.ts +1 -1
- package/actions/enhanced-context.d.ts.map +1 -1
- package/actions/enhanced-context.js +18 -2
- package/actions/enhanced-context.js.map +1 -1
- package/actions/enhanced-types.d.ts +37 -2
- package/actions/enhanced-types.d.ts.map +1 -1
- package/actions/enhanced-types.js.map +1 -1
- package/actions/helpers/emit-illustrations.d.ts +2 -2
- package/actions/helpers/emit-illustrations.d.ts.map +1 -1
- package/actions/index.d.ts +1 -2
- package/actions/index.d.ts.map +1 -1
- package/actions/index.js +1 -2
- package/actions/index.js.map +1 -1
- package/actions/meta-action.d.ts +1 -1
- package/actions/meta-action.d.ts.map +1 -1
- package/actions/meta-registry.d.ts.map +1 -1
- package/actions/registry.d.ts +1 -1
- package/actions/registry.d.ts.map +1 -1
- package/actions/standard/about/about-events.d.ts +2 -0
- package/actions/standard/about/about-events.d.ts.map +1 -1
- package/actions/standard/about/about.d.ts.map +1 -1
- package/actions/standard/about/about.js +5 -2
- package/actions/standard/about/about.js.map +1 -1
- package/actions/standard/about/index.d.ts.map +1 -1
- package/actions/standard/again/again-events.d.ts.map +1 -1
- package/actions/standard/again/again.d.ts.map +1 -1
- package/actions/standard/again/again.js +1 -1
- package/actions/standard/again/index.d.ts.map +1 -1
- package/actions/standard/attacking/attacking-data.d.ts.map +1 -1
- package/actions/standard/attacking/attacking-events.d.ts +1 -1
- package/actions/standard/attacking/attacking-events.d.ts.map +1 -1
- package/actions/standard/attacking/attacking-types.d.ts +1 -1
- package/actions/standard/attacking/attacking-types.d.ts.map +1 -1
- package/actions/standard/attacking/attacking.d.ts.map +1 -1
- package/actions/standard/attacking/attacking.js +1 -1
- package/actions/standard/attacking/index.d.ts.map +1 -1
- package/actions/standard/climbing/climbing-events.d.ts +1 -1
- package/actions/standard/climbing/climbing-events.d.ts.map +1 -1
- package/actions/standard/climbing/climbing.d.ts.map +1 -1
- package/actions/standard/climbing/climbing.js +1 -1
- package/actions/standard/climbing/index.d.ts.map +1 -1
- package/actions/standard/closing/closing-data.d.ts.map +1 -1
- package/actions/standard/closing/closing-error-prevents-closing.d.ts.map +1 -1
- package/actions/standard/closing/closing-event-data.d.ts +1 -1
- package/actions/standard/closing/closing-event-data.d.ts.map +1 -1
- package/actions/standard/closing/closing-messages.d.ts.map +1 -1
- package/actions/standard/closing/closing.d.ts.map +1 -1
- package/actions/standard/closing/closing.js +1 -1
- package/actions/standard/closing/index.d.ts.map +1 -1
- package/actions/standard/drinking/drinking-events.d.ts +1 -1
- package/actions/standard/drinking/drinking-events.d.ts.map +1 -1
- package/actions/standard/drinking/drinking.d.ts.map +1 -1
- package/actions/standard/drinking/drinking.js +1 -1
- package/actions/standard/drinking/index.d.ts.map +1 -1
- package/actions/standard/dropping/dropping-data.d.ts.map +1 -1
- package/actions/standard/dropping/dropping-data.js +1 -1
- package/actions/standard/dropping/dropping-events.d.ts +1 -1
- package/actions/standard/dropping/dropping-events.d.ts.map +1 -1
- package/actions/standard/dropping/dropping-messages.d.ts.map +1 -1
- package/actions/standard/dropping/dropping-types.d.ts +2 -2
- package/actions/standard/dropping/dropping-types.d.ts.map +1 -1
- package/actions/standard/dropping/dropping.d.ts.map +1 -1
- package/actions/standard/dropping/dropping.js +1 -1
- package/actions/standard/dropping/index.d.ts.map +1 -1
- package/actions/standard/eating/eating-events.d.ts +1 -1
- package/actions/standard/eating/eating-events.d.ts.map +1 -1
- package/actions/standard/eating/eating.d.ts.map +1 -1
- package/actions/standard/eating/eating.js +1 -1
- package/actions/standard/eating/index.d.ts.map +1 -1
- package/actions/standard/entering/entering-events.d.ts +1 -1
- package/actions/standard/entering/entering-events.d.ts.map +1 -1
- package/actions/standard/entering/entering-messages.d.ts.map +1 -1
- package/actions/standard/entering/entering.d.ts.map +1 -1
- package/actions/standard/entering/entering.js +1 -1
- package/actions/standard/entering/index.d.ts.map +1 -1
- package/actions/standard/examining/examining-data.d.ts +1 -1
- package/actions/standard/examining/examining-data.d.ts.map +1 -1
- package/actions/standard/examining/examining-data.js +36 -2
- package/actions/standard/examining/examining-data.js.map +1 -1
- package/actions/standard/examining/examining-events.d.ts +1 -1
- package/actions/standard/examining/examining-events.d.ts.map +1 -1
- package/actions/standard/examining/examining-messages.d.ts +1 -0
- package/actions/standard/examining/examining-messages.d.ts.map +1 -1
- package/actions/standard/examining/examining-messages.js +1 -0
- package/actions/standard/examining/examining-messages.js.map +1 -1
- package/actions/standard/examining/examining.d.ts.map +1 -1
- package/actions/standard/examining/examining.js +1 -0
- package/actions/standard/examining/examining.js.map +1 -1
- package/actions/standard/examining/index.d.ts.map +1 -1
- package/actions/standard/exiting/exiting-events.d.ts +1 -1
- package/actions/standard/exiting/exiting-events.d.ts.map +1 -1
- package/actions/standard/exiting/exiting-messages.d.ts.map +1 -1
- package/actions/standard/exiting/exiting.d.ts.map +1 -1
- package/actions/standard/exiting/exiting.js +1 -1
- package/actions/standard/exiting/index.d.ts.map +1 -1
- package/actions/standard/giving/giving-events.d.ts.map +1 -1
- package/actions/standard/giving/giving.d.ts.map +1 -1
- package/actions/standard/giving/giving.js +1 -1
- package/actions/standard/giving/index.d.ts.map +1 -1
- package/actions/standard/going/going-data.d.ts.map +1 -1
- package/actions/standard/going/going-data.js +1 -1
- package/actions/standard/going/going-events.d.ts +1 -1
- package/actions/standard/going/going-events.d.ts.map +1 -1
- package/actions/standard/going/going-messages.d.ts.map +1 -1
- package/actions/standard/going/going.d.ts +1 -1
- package/actions/standard/going/going.d.ts.map +1 -1
- package/actions/standard/going/going.js +1 -1
- package/actions/standard/going/index.d.ts.map +1 -1
- package/actions/standard/help/help-events.d.ts.map +1 -1
- package/actions/standard/help/help.d.ts.map +1 -1
- package/actions/standard/help/index.d.ts.map +1 -1
- package/actions/standard/hiding/concealment-break.d.ts +1 -1
- package/actions/standard/hiding/concealment-break.d.ts.map +1 -1
- package/actions/standard/hiding/concealment-break.js +1 -1
- package/actions/standard/hiding/hiding-events.d.ts +2 -2
- package/actions/standard/hiding/hiding-events.d.ts.map +1 -1
- package/actions/standard/hiding/hiding.d.ts.map +1 -1
- package/actions/standard/hiding/hiding.js +1 -1
- package/actions/standard/hiding/index.d.ts.map +1 -1
- package/actions/standard/hiding/revealing.d.ts.map +1 -1
- package/actions/standard/hiding/revealing.js +1 -1
- package/actions/standard/index.d.ts.map +1 -1
- package/actions/standard/inserting/index.d.ts.map +1 -1
- package/actions/standard/inserting/inserting-data.d.ts.map +1 -1
- package/actions/standard/inserting/inserting-events.d.ts.map +1 -1
- package/actions/standard/inserting/inserting-messages.d.ts.map +1 -1
- package/actions/standard/inserting/inserting.d.ts.map +1 -1
- package/actions/standard/inventory/index.d.ts.map +1 -1
- package/actions/standard/inventory/inventory-events.d.ts.map +1 -1
- package/actions/standard/inventory/inventory-messages.d.ts.map +1 -1
- package/actions/standard/inventory/inventory.d.ts.map +1 -1
- package/actions/standard/inventory/inventory.js +1 -1
- package/actions/standard/listening/index.d.ts.map +1 -1
- package/actions/standard/listening/listening-events.d.ts +1 -1
- package/actions/standard/listening/listening-events.d.ts.map +1 -1
- package/actions/standard/listening/listening.d.ts.map +1 -1
- package/actions/standard/listening/listening.js +1 -1
- package/actions/standard/lock-shared.d.ts +2 -2
- package/actions/standard/lock-shared.d.ts.map +1 -1
- package/actions/standard/lock-shared.js +1 -1
- package/actions/standard/locking/index.d.ts.map +1 -1
- package/actions/standard/locking/locking-events.d.ts +1 -1
- package/actions/standard/locking/locking-events.d.ts.map +1 -1
- package/actions/standard/locking/locking-messages.d.ts.map +1 -1
- package/actions/standard/locking/locking.d.ts.map +1 -1
- package/actions/standard/locking/locking.js +1 -1
- package/actions/standard/looking/index.d.ts.map +1 -1
- package/actions/standard/looking/looking-data.d.ts.map +1 -1
- package/actions/standard/looking/looking-data.js +2 -2
- package/actions/standard/looking/looking-events.d.ts.map +1 -1
- package/actions/standard/looking/looking-messages.d.ts.map +1 -1
- package/actions/standard/looking/looking.d.ts.map +1 -1
- package/actions/standard/looking/looking.js +1 -1
- package/actions/standard/lowering/index.d.ts.map +1 -1
- package/actions/standard/lowering/lowering.d.ts.map +1 -1
- package/actions/standard/opening/index.d.ts.map +1 -1
- package/actions/standard/opening/opening-data.d.ts.map +1 -1
- package/actions/standard/opening/opening-events.d.ts +1 -1
- package/actions/standard/opening/opening-events.d.ts.map +1 -1
- package/actions/standard/opening/opening-messages.d.ts.map +1 -1
- package/actions/standard/opening/opening-types.d.ts +1 -1
- package/actions/standard/opening/opening-types.d.ts.map +1 -1
- package/actions/standard/opening/opening.d.ts.map +1 -1
- package/actions/standard/opening/opening.js +1 -1
- package/actions/standard/pulling/index.d.ts.map +1 -1
- package/actions/standard/pulling/pulling-events.d.ts +1 -1
- package/actions/standard/pulling/pulling-events.d.ts.map +1 -1
- package/actions/standard/pulling/pulling.d.ts.map +1 -1
- package/actions/standard/pulling/pulling.js +1 -1
- package/actions/standard/pushing/index.d.ts.map +1 -1
- package/actions/standard/pushing/pushing-events.d.ts +1 -1
- package/actions/standard/pushing/pushing-events.d.ts.map +1 -1
- package/actions/standard/pushing/pushing-original.d.ts.map +1 -1
- package/actions/standard/pushing/pushing-original.js +1 -1
- package/actions/standard/pushing/pushing-types.d.ts +1 -1
- package/actions/standard/pushing/pushing-types.d.ts.map +1 -1
- package/actions/standard/pushing/pushing.d.ts.map +1 -1
- package/actions/standard/pushing/pushing.js +1 -1
- package/actions/standard/putting/index.d.ts.map +1 -1
- package/actions/standard/putting/putting-data.d.ts.map +1 -1
- package/actions/standard/putting/putting-events.d.ts.map +1 -1
- package/actions/standard/putting/putting-messages.d.ts.map +1 -1
- package/actions/standard/putting/putting-types.d.ts +1 -1
- package/actions/standard/putting/putting-types.d.ts.map +1 -1
- package/actions/standard/putting/putting.d.ts.map +1 -1
- package/actions/standard/putting/putting.js +1 -1
- package/actions/standard/quitting/index.d.ts.map +1 -1
- package/actions/standard/quitting/quitting-events.d.ts.map +1 -1
- package/actions/standard/quitting/quitting.d.ts.map +1 -1
- package/actions/standard/quitting/quitting.js +1 -1
- package/actions/standard/raising/index.d.ts.map +1 -1
- package/actions/standard/raising/raising.d.ts.map +1 -1
- package/actions/standard/reading/index.d.ts.map +1 -1
- package/actions/standard/reading/reading-events.d.ts +1 -1
- package/actions/standard/reading/reading-events.d.ts.map +1 -1
- package/actions/standard/reading/reading.d.ts.map +1 -1
- package/actions/standard/reading/reading.js +1 -1
- package/actions/standard/removing/index.d.ts.map +1 -1
- package/actions/standard/removing/removing-data.d.ts.map +1 -1
- package/actions/standard/removing/removing-events.d.ts.map +1 -1
- package/actions/standard/removing/removing-messages.d.ts.map +1 -1
- package/actions/standard/removing/removing-types.d.ts +1 -1
- package/actions/standard/removing/removing-types.d.ts.map +1 -1
- package/actions/standard/removing/removing.d.ts.map +1 -1
- package/actions/standard/removing/removing.js +1 -1
- package/actions/standard/restarting/index.d.ts.map +1 -1
- package/actions/standard/restarting/restarting-events.d.ts.map +1 -1
- package/actions/standard/restarting/restarting.d.ts.map +1 -1
- package/actions/standard/restarting/restarting.js +1 -1
- package/actions/standard/restoring/index.d.ts.map +1 -1
- package/actions/standard/restoring/restoring-events.d.ts.map +1 -1
- package/actions/standard/restoring/restoring.d.ts.map +1 -1
- package/actions/standard/restoring/restoring.js +1 -1
- package/actions/standard/saving/index.d.ts.map +1 -1
- package/actions/standard/saving/saving-events.d.ts.map +1 -1
- package/actions/standard/saving/saving.d.ts.map +1 -1
- package/actions/standard/saving/saving.js +1 -1
- package/actions/standard/scoring/index.d.ts.map +1 -1
- package/actions/standard/scoring/scoring-events.d.ts.map +1 -1
- package/actions/standard/scoring/scoring.d.ts.map +1 -1
- package/actions/standard/scoring/scoring.js +1 -1
- package/actions/standard/searching/index.d.ts.map +1 -1
- package/actions/standard/searching/searching-events.d.ts +1 -1
- package/actions/standard/searching/searching-events.d.ts.map +1 -1
- package/actions/standard/searching/searching.d.ts.map +1 -1
- package/actions/standard/searching/searching.js +1 -1
- package/actions/standard/searching-helpers.d.ts +1 -1
- package/actions/standard/searching-helpers.d.ts.map +1 -1
- package/actions/standard/searching-helpers.js +1 -1
- package/actions/standard/showing/index.d.ts.map +1 -1
- package/actions/standard/showing/showing-events.d.ts.map +1 -1
- package/actions/standard/showing/showing.d.ts.map +1 -1
- package/actions/standard/showing/showing.js +1 -1
- package/actions/standard/sleeping/index.d.ts.map +1 -1
- package/actions/standard/sleeping/sleeping-events.d.ts +1 -1
- package/actions/standard/sleeping/sleeping-events.d.ts.map +1 -1
- package/actions/standard/sleeping/sleeping.d.ts.map +1 -1
- package/actions/standard/smelling/index.d.ts.map +1 -1
- package/actions/standard/smelling/smelling-events.d.ts +1 -1
- package/actions/standard/smelling/smelling-events.d.ts.map +1 -1
- package/actions/standard/smelling/smelling.d.ts.map +1 -1
- package/actions/standard/smelling/smelling.js +1 -1
- package/actions/standard/switching-shared.d.ts +1 -1
- package/actions/standard/switching-shared.d.ts.map +1 -1
- package/actions/standard/switching-shared.js +1 -1
- package/actions/standard/switching_off/index.d.ts.map +1 -1
- package/actions/standard/switching_off/switching_off-events.d.ts +1 -1
- package/actions/standard/switching_off/switching_off-events.d.ts.map +1 -1
- package/actions/standard/switching_off/switching_off-messages.d.ts.map +1 -1
- package/actions/standard/switching_off/switching_off.d.ts.map +1 -1
- package/actions/standard/switching_off/switching_off.js +1 -1
- package/actions/standard/switching_on/index.d.ts.map +1 -1
- package/actions/standard/switching_on/switching_on-events.d.ts +1 -1
- package/actions/standard/switching_on/switching_on-events.d.ts.map +1 -1
- package/actions/standard/switching_on/switching_on-messages.d.ts.map +1 -1
- package/actions/standard/switching_on/switching_on.d.ts.map +1 -1
- package/actions/standard/switching_on/switching_on.js +1 -1
- package/actions/standard/taking/index.d.ts.map +1 -1
- package/actions/standard/taking/taking-data.d.ts.map +1 -1
- package/actions/standard/taking/taking-events.d.ts +1 -1
- package/actions/standard/taking/taking-events.d.ts.map +1 -1
- package/actions/standard/taking/taking-messages.d.ts.map +1 -1
- package/actions/standard/taking/taking-types.d.ts +2 -2
- package/actions/standard/taking/taking-types.d.ts.map +1 -1
- package/actions/standard/taking/taking.d.ts.map +1 -1
- package/actions/standard/taking/taking.js +1 -1
- package/actions/standard/taking_off/index.d.ts.map +1 -1
- package/actions/standard/taking_off/taking-off-events.d.ts +1 -1
- package/actions/standard/taking_off/taking-off-events.d.ts.map +1 -1
- package/actions/standard/taking_off/taking-off.d.ts.map +1 -1
- package/actions/standard/taking_off/taking-off.js +1 -1
- package/actions/standard/talking/index.d.ts.map +1 -1
- package/actions/standard/talking/talking-events.d.ts +1 -1
- package/actions/standard/talking/talking-events.d.ts.map +1 -1
- package/actions/standard/talking/talking.d.ts.map +1 -1
- package/actions/standard/talking/talking.js +1 -1
- package/actions/standard/throwing/index.d.ts.map +1 -1
- package/actions/standard/throwing/throwing-events.d.ts.map +1 -1
- package/actions/standard/throwing/throwing.d.ts.map +1 -1
- package/actions/standard/throwing/throwing.js +1 -1
- package/actions/standard/touching/index.d.ts.map +1 -1
- package/actions/standard/touching/touching-events.d.ts +1 -1
- package/actions/standard/touching/touching-events.d.ts.map +1 -1
- package/actions/standard/touching/touching.d.ts.map +1 -1
- package/actions/standard/touching/touching.js +1 -1
- package/actions/standard/undoing/index.d.ts.map +1 -1
- package/actions/standard/undoing/undoing-events.d.ts.map +1 -1
- package/actions/standard/undoing/undoing.d.ts.map +1 -1
- package/actions/standard/undoing/undoing.js +1 -1
- package/actions/standard/unlocking/index.d.ts.map +1 -1
- package/actions/standard/unlocking/unlocking-events.d.ts +1 -1
- package/actions/standard/unlocking/unlocking-events.d.ts.map +1 -1
- package/actions/standard/unlocking/unlocking-messages.d.ts.map +1 -1
- package/actions/standard/unlocking/unlocking.d.ts.map +1 -1
- package/actions/standard/unlocking/unlocking.js +1 -1
- package/actions/standard/version/index.d.ts.map +1 -1
- package/actions/standard/version/version-events.d.ts.map +1 -1
- package/actions/standard/version/version.d.ts.map +1 -1
- package/actions/standard/version/version.js +1 -1
- package/actions/standard/waiting/index.d.ts.map +1 -1
- package/actions/standard/waiting/waiting-events.d.ts +1 -1
- package/actions/standard/waiting/waiting-events.d.ts.map +1 -1
- package/actions/standard/waiting/waiting.d.ts.map +1 -1
- package/actions/standard/wearable-shared.d.ts +2 -2
- package/actions/standard/wearable-shared.d.ts.map +1 -1
- package/actions/standard/wearable-shared.js +1 -1
- package/actions/standard/wearing/index.d.ts.map +1 -1
- package/actions/standard/wearing/wearing-events.d.ts +1 -1
- package/actions/standard/wearing/wearing-events.d.ts.map +1 -1
- package/actions/standard/wearing/wearing-messages.d.ts.map +1 -1
- package/actions/standard/wearing/wearing.d.ts.map +1 -1
- package/actions/standard/wearing/wearing.js +1 -1
- package/actions/types.d.ts +1 -1
- package/actions/types.d.ts.map +1 -1
- package/capabilities/command-history.d.ts +1 -1
- package/capabilities/command-history.d.ts.map +1 -1
- package/capabilities/conversation.d.ts +1 -1
- package/capabilities/conversation.d.ts.map +1 -1
- package/capabilities/debug.d.ts +1 -1
- package/capabilities/debug.d.ts.map +1 -1
- package/capabilities/game-meta.d.ts +1 -1
- package/capabilities/game-meta.d.ts.map +1 -1
- package/capabilities/index.d.ts.map +1 -1
- package/capabilities/index.js +1 -1
- package/capabilities/save-restore.d.ts +1 -1
- package/capabilities/save-restore.d.ts.map +1 -1
- package/capabilities/scoring.d.ts +1 -1
- package/capabilities/scoring.d.ts.map +1 -1
- package/chains/index.d.ts +1 -1
- package/chains/index.d.ts.map +1 -1
- package/chains/opened-revealed.d.ts +2 -2
- package/chains/opened-revealed.d.ts.map +1 -1
- package/chains/opened-revealed.js +1 -1
- package/channels/index.d.ts +40 -0
- package/channels/index.d.ts.map +1 -0
- package/channels/index.js +86 -0
- package/channels/index.js.map +1 -0
- package/channels/keys.d.ts +23 -0
- package/channels/keys.d.ts.map +1 -0
- package/channels/keys.js +36 -0
- package/channels/keys.js.map +1 -0
- package/channels/media.d.ts +135 -0
- package/channels/media.d.ts.map +1 -0
- package/channels/media.js +397 -0
- package/channels/media.js.map +1 -0
- package/channels/registry.d.ts +58 -0
- package/channels/registry.d.ts.map +1 -0
- package/channels/registry.js +84 -0
- package/channels/registry.js.map +1 -0
- package/channels/sound-events.d.ts +72 -0
- package/channels/sound-events.d.ts.map +1 -0
- package/channels/sound-events.js +88 -0
- package/channels/sound-events.js.map +1 -0
- package/channels/standard.d.ts +209 -0
- package/channels/standard.d.ts.map +1 -0
- package/channels/standard.js +403 -0
- package/channels/standard.js.map +1 -0
- package/channels/world-helpers.d.ts +43 -0
- package/channels/world-helpers.d.ts.map +1 -0
- package/channels/world-helpers.js +72 -0
- package/channels/world-helpers.js.map +1 -0
- package/combat/index.d.ts.map +1 -1
- package/combat/weapon-utils.d.ts +1 -1
- package/combat/weapon-utils.d.ts.map +1 -1
- package/combat/weapon-utils.js +1 -1
- package/events/action-events.d.ts.map +1 -1
- package/events/base-event.d.ts.map +1 -1
- package/events/common-patterns.d.ts +1 -1
- package/events/common-patterns.d.ts.map +1 -1
- package/events/event-registry.d.ts +1 -1
- package/events/event-registry.d.ts.map +1 -1
- package/events/event-utils.d.ts +2 -2
- package/events/event-utils.d.ts.map +1 -1
- package/events/index.d.ts.map +1 -1
- package/helpers/index.d.ts.map +1 -1
- package/helpers/multi-object-handler.d.ts +2 -2
- package/helpers/multi-object-handler.d.ts.map +1 -1
- package/helpers/multi-object-handler.js +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/inference/implicit-inference.d.ts +1 -1
- package/inference/implicit-inference.d.ts.map +1 -1
- package/inference/index.d.ts.map +1 -1
- package/npc/behaviors.d.ts.map +1 -1
- package/npc/behaviors.js +1 -1
- package/npc/character-messages.d.ts.map +1 -1
- package/npc/character-observer.d.ts +2 -2
- package/npc/character-observer.d.ts.map +1 -1
- package/npc/character-observer.js +1 -1
- package/npc/index.d.ts.map +1 -1
- package/npc/lucidity-decay.d.ts +2 -2
- package/npc/lucidity-decay.d.ts.map +1 -1
- package/npc/lucidity-decay.js +1 -1
- package/npc/npc-messages.d.ts.map +1 -1
- package/npc/npc-service.d.ts +2 -2
- package/npc/npc-service.d.ts.map +1 -1
- package/npc/npc-service.js +1 -1
- package/npc/types.d.ts +2 -2
- package/npc/types.d.ts.map +1 -1
- package/package.json +7 -6
- package/parser/index.d.ts +1 -1
- package/parser/index.d.ts.map +1 -1
- package/parser/index.js +1 -1
- package/query-handlers/index.d.ts.map +1 -1
- package/query-handlers/quit-handler.d.ts +1 -1
- package/query-handlers/quit-handler.d.ts.map +1 -1
- package/query-handlers/quit-handler.js +1 -1
- package/query-handlers/restart-handler.d.ts +1 -1
- package/query-handlers/restart-handler.d.ts.map +1 -1
- package/query-handlers/restart-handler.js +1 -1
- package/scope/index.d.ts.map +1 -1
- package/scope/scope-resolver.d.ts +1 -1
- package/scope/scope-resolver.d.ts.map +1 -1
- package/scope/scope-resolver.js +1 -1
- package/scope/types.d.ts +1 -1
- package/scope/types.d.ts.map +1 -1
- package/scope/witness-system.d.ts +1 -1
- package/scope/witness-system.d.ts.map +1 -1
- package/scope/witness-system.js +2 -2
- package/services/PerceptionService.d.ts +4 -4
- package/services/PerceptionService.d.ts.map +1 -1
- package/services/PerceptionService.js +1 -1
- package/services/index.d.ts.map +1 -1
- package/utils/entity-info.d.ts +2 -2
- package/utils/entity-info.d.ts.map +1 -1
- package/utils/entity-info.js +1 -1
- package/utils/index.d.ts.map +1 -1
- package/validation/command-validator.d.ts +13 -3
- package/validation/command-validator.d.ts.map +1 -1
- package/validation/command-validator.js +32 -2
- package/validation/command-validator.js.map +1 -1
- package/validation/index.d.ts.map +1 -1
- package/validation/types.d.ts +1 -1
- package/validation/types.d.ts.map +1 -1
- package/vocabulary/index.d.ts.map +1 -1
- package/vocabulary/standard-english.d.ts.map +1 -1
- package/actions/context.d.ts +0 -95
- package/actions/context.d.ts.map +0 -1
- package/actions/context.js +0 -272
- package/actions/context.js.map +0 -1
- package/actions/standard/inserting/inserting-semantic.d.ts +0 -42
- package/actions/standard/inserting/inserting-semantic.d.ts.map +0 -1
- package/actions/standard/inserting/inserting-semantic.js +0 -219
- package/actions/standard/inserting/inserting-semantic.js.map +0 -1
- package/combat/combat-messages.d.ts +0 -52
- package/combat/combat-messages.d.ts.map +0 -1
- package/combat/combat-messages.js +0 -69
- package/combat/combat-messages.js.map +0 -1
- package/combat/combat-service.d.ts +0 -109
- package/combat/combat-service.d.ts.map +0 -1
- package/combat/combat-service.js +0 -244
- package/combat/combat-service.js.map +0 -1
- package/events/helpers.d.ts +0 -44
- package/events/helpers.d.ts.map +0 -1
- package/events/helpers.js +0 -141
- package/events/helpers.js.map +0 -1
- package/services/scoring/index.d.ts +0 -6
- package/services/scoring/index.d.ts.map +0 -1
- package/services/scoring/index.js +0 -12
- package/services/scoring/index.js.map +0 -1
- package/services/scoring/scoring-event-processor.d.ts +0 -337
- package/services/scoring/scoring-event-processor.d.ts.map +0 -1
- package/services/scoring/scoring-event-processor.js +0 -613
- package/services/scoring/scoring-event-processor.js.map +0 -1
- package/services/scoring/scoring-service.d.ts +0 -185
- package/services/scoring/scoring-service.d.ts.map +0 -1
- package/services/scoring/scoring-service.js +0 -279
- package/services/scoring/scoring-service.js.map +0 -1
- package/sharpee-stdlib-0.9.109.tgz +0 -0
- package/sharpee-stdlib-0.9.110.tgz +0 -0
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @sharpee/stdlib/channels — standard `IOChannel` definitions.
|
|
4
|
+
*
|
|
5
|
+
* Owner context: stdlib language layer. The ten platform-vocabulary
|
|
6
|
+
* channels from ADR-163 §4 — co-located with stdlib because their
|
|
7
|
+
* closures read stdlib data sources (capabilities, blocks the
|
|
8
|
+
* text-service produces, world projections).
|
|
9
|
+
*
|
|
10
|
+
* Per ADR-163 §6, channels are self-contained: each `IOChannel`
|
|
11
|
+
* carries its identity, configuration, and a closure that computes
|
|
12
|
+
* the channel's value for the current turn from the
|
|
13
|
+
* `ChannelProduceContext`. There is no separate rule schema or
|
|
14
|
+
* routing layer; closures are the routing.
|
|
15
|
+
*
|
|
16
|
+
* **Standard channels are NOT capability-gated** (per §6 — they exist
|
|
17
|
+
* on every surface). Media channels gate; standards do not.
|
|
18
|
+
*
|
|
19
|
+
* @see ADR-163 — Channel-Service Platform — §4, §5, §6
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.STANDARD_CHANNEL_IDS = exports.STANDARD_CHANNELS = exports.lifecycleChannel = exports.scoreNotifyChannel = exports.endgameChannel = exports.deathChannel = exports.ifidChannel = exports.infoChannel = exports.turnChannel = exports.scoreChannel = exports.locationChannel = exports.promptChannel = exports.mainChannel = exports.STANDARD_CHANNEL_EVENTS = void 0;
|
|
23
|
+
const text_blocks_1 = require("@sharpee/text-blocks");
|
|
24
|
+
const keys_1 = require("./keys");
|
|
25
|
+
const world_helpers_1 = require("./world-helpers");
|
|
26
|
+
/**
|
|
27
|
+
* Local copy of the `flattenContent` helper. stdlib intentionally does
|
|
28
|
+
* not depend on `@sharpee/channel-service` (the engine composes that
|
|
29
|
+
* with stdlib's registry; making stdlib reach back into the runtime
|
|
30
|
+
* package would invert the dependency direction). The function is
|
|
31
|
+
* small enough to inline.
|
|
32
|
+
*/
|
|
33
|
+
function flattenContent(content) {
|
|
34
|
+
let out = '';
|
|
35
|
+
for (const node of content) {
|
|
36
|
+
if (typeof node === 'string')
|
|
37
|
+
out += node;
|
|
38
|
+
else
|
|
39
|
+
out += flattenContent(node.content);
|
|
40
|
+
}
|
|
41
|
+
return out;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Event types the standard channels listen for. Stories or extensions
|
|
45
|
+
* that want to populate `death`, `endgame`, or `score_notify` emit
|
|
46
|
+
* events of these types; stdlib does not emit them itself.
|
|
47
|
+
*
|
|
48
|
+
* The values align with what the engine and stdlib extensions actually
|
|
49
|
+
* emit today:
|
|
50
|
+
*
|
|
51
|
+
* - `game.won` / `game.lost` — engine emits these from `engine.stop()`
|
|
52
|
+
* via `createGameWonEvent` / `createGameLostEvent` (core/events).
|
|
53
|
+
* - `combat.player_died` — emitted by the `@sharpee/ext-basic-combat`
|
|
54
|
+
* extension. Stories not using basic-combat that want a death
|
|
55
|
+
* channel emission must either fire `combat.player_died` themselves
|
|
56
|
+
* or override `deathChannel` with their own closure.
|
|
57
|
+
* - `game.score_changed` — no production emitter today. The channel
|
|
58
|
+
* listens for it, but it stays silent until a story or extension
|
|
59
|
+
* adopts the convention. Listed for forward-compatibility.
|
|
60
|
+
*
|
|
61
|
+
* Each event carries its message in `event.data.message` (string).
|
|
62
|
+
*/
|
|
63
|
+
exports.STANDARD_CHANNEL_EVENTS = {
|
|
64
|
+
PLAYER_DIED: 'combat.player_died',
|
|
65
|
+
GAME_WON: 'game.won',
|
|
66
|
+
GAME_LOST: 'game.lost',
|
|
67
|
+
SCORE_CHANGED: 'game.score_changed',
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Project an event's `data.message` field as a string, or `undefined`
|
|
71
|
+
* if the event has no string message. Used by death / endgame /
|
|
72
|
+
* score_notify channels to extract their payload.
|
|
73
|
+
*/
|
|
74
|
+
function eventMessage(event) {
|
|
75
|
+
const data = event.data;
|
|
76
|
+
if (!data)
|
|
77
|
+
return undefined;
|
|
78
|
+
if (typeof data.message !== 'string')
|
|
79
|
+
return undefined;
|
|
80
|
+
return data.message;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* `main` — append-mode prose transcript. Carries `MainEntry` objects
|
|
84
|
+
* (`{ content, tight? }`) so renderers can preserve decorations *and*
|
|
85
|
+
* the per-entry visual-continuation hint introduced by the pre-line
|
|
86
|
+
* removal (session 2026-05-12). Closure projects every block whose key
|
|
87
|
+
* is in `MAIN_KEYS` into the channel's append stream.
|
|
88
|
+
*/
|
|
89
|
+
exports.mainChannel = {
|
|
90
|
+
id: 'main',
|
|
91
|
+
contentType: 'json',
|
|
92
|
+
mode: 'append',
|
|
93
|
+
emit: 'always',
|
|
94
|
+
produce: (ctx) => {
|
|
95
|
+
const entries = [];
|
|
96
|
+
for (const block of ctx.blocks) {
|
|
97
|
+
if (keys_1.MAIN_KEYS.has(block.key)) {
|
|
98
|
+
entries.push({
|
|
99
|
+
content: [...block.content],
|
|
100
|
+
...(block.tight ? { tight: true } : {}),
|
|
101
|
+
...(block.className ? { className: block.className } : {}),
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return entries;
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* `prompt` — replace-mode input prompt. Defaults to `'> '` when no
|
|
110
|
+
* prompt block is emitted, so the renderer always has a sensible
|
|
111
|
+
* placeholder. Closure flattens the prompt block's content to plain
|
|
112
|
+
* string (decorations stripped).
|
|
113
|
+
*/
|
|
114
|
+
exports.promptChannel = {
|
|
115
|
+
id: 'prompt',
|
|
116
|
+
contentType: 'text',
|
|
117
|
+
mode: 'replace',
|
|
118
|
+
emit: 'always',
|
|
119
|
+
produce: (ctx) => {
|
|
120
|
+
for (const block of ctx.blocks) {
|
|
121
|
+
if (block.key === text_blocks_1.CORE_BLOCK_KEYS.PROMPT) {
|
|
122
|
+
return flattenContent(block.content);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return '> ';
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* `location` — replace-mode status-line location name. Closure reads
|
|
130
|
+
* the player's containing room from the world and returns its display
|
|
131
|
+
* name. Returns `undefined` (the channel re-emits its prevValue) if
|
|
132
|
+
* the world has no player or the room cannot be resolved.
|
|
133
|
+
*/
|
|
134
|
+
exports.locationChannel = {
|
|
135
|
+
id: 'location',
|
|
136
|
+
contentType: 'text',
|
|
137
|
+
mode: 'replace',
|
|
138
|
+
emit: 'always',
|
|
139
|
+
produce: (ctx) => (0, world_helpers_1.playerLocationName)(ctx),
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* `score` — replace-mode `{current, max}` payload.
|
|
143
|
+
*
|
|
144
|
+
* Reads the canonical ADR-129 score ledger first (`world.getScore()`
|
|
145
|
+
* and `world.getMaxScore()`); falls back to the legacy `scoring`
|
|
146
|
+
* capability's `scoreValue`/`maxScore` for older worlds that haven't
|
|
147
|
+
* adopted the ledger. The fallback path also serves stories that
|
|
148
|
+
* track score outside the ledger (rare; ADR-129 is the recommended
|
|
149
|
+
* pattern).
|
|
150
|
+
*
|
|
151
|
+
* `max: null` (not `0`) signals an unbounded score per ADR-163 §4
|
|
152
|
+
* commentary; `maxScore: 0` is treated as null since a 0-cap scoring
|
|
153
|
+
* system has no usable progress fraction.
|
|
154
|
+
*
|
|
155
|
+
* Returns `undefined` only when the world is missing entirely (test
|
|
156
|
+
* harness with a stub) — `always`-mode then re-emits prev.
|
|
157
|
+
*/
|
|
158
|
+
exports.scoreChannel = {
|
|
159
|
+
id: 'score',
|
|
160
|
+
contentType: 'json',
|
|
161
|
+
mode: 'replace',
|
|
162
|
+
emit: 'always',
|
|
163
|
+
produce: (ctx) => {
|
|
164
|
+
// Try the ADR-129 ledger first.
|
|
165
|
+
const world = ctx.world;
|
|
166
|
+
if (world && typeof world.getScore === 'function') {
|
|
167
|
+
const current = world.getScore();
|
|
168
|
+
const maxRaw = typeof world.getMaxScore === 'function' ? world.getMaxScore() : 0;
|
|
169
|
+
const max = typeof maxRaw === 'number' && maxRaw > 0 ? maxRaw : null;
|
|
170
|
+
return { current, max };
|
|
171
|
+
}
|
|
172
|
+
// Fall back to the legacy `scoring` capability.
|
|
173
|
+
const cap = (0, world_helpers_1.readCapability)(ctx, 'scoring');
|
|
174
|
+
if (!cap)
|
|
175
|
+
return undefined;
|
|
176
|
+
const current = typeof cap.scoreValue === 'number' ? cap.scoreValue : 0;
|
|
177
|
+
const max = typeof cap.maxScore === 'number' && cap.maxScore > 0 ? cap.maxScore : null;
|
|
178
|
+
return { current, max };
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* `turn` — replace-mode turn count. Closure returns `ctx.turn`
|
|
183
|
+
* directly. Always emits because the turn counter changes every turn.
|
|
184
|
+
*/
|
|
185
|
+
exports.turnChannel = {
|
|
186
|
+
id: 'turn',
|
|
187
|
+
contentType: 'number',
|
|
188
|
+
mode: 'replace',
|
|
189
|
+
emit: 'always',
|
|
190
|
+
produce: (ctx) => ctx.turn,
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* `info` — replace-mode story metadata. Closure projects every
|
|
194
|
+
* non-empty field from the `storyInfo` capability into a single
|
|
195
|
+
* payload object. The same payload is consumed by the browser
|
|
196
|
+
* `info` renderer (sets `document.title` + `data-*` attributes) and
|
|
197
|
+
* by any author-supplied dashboards.
|
|
198
|
+
*/
|
|
199
|
+
exports.infoChannel = {
|
|
200
|
+
id: 'info',
|
|
201
|
+
contentType: 'json',
|
|
202
|
+
mode: 'replace',
|
|
203
|
+
emit: 'always',
|
|
204
|
+
produce: (ctx) => {
|
|
205
|
+
const cap = (0, world_helpers_1.readCapability)(ctx, 'storyInfo');
|
|
206
|
+
if (!cap)
|
|
207
|
+
return undefined;
|
|
208
|
+
const payload = {};
|
|
209
|
+
if (cap.title)
|
|
210
|
+
payload.title = cap.title;
|
|
211
|
+
if (cap.author)
|
|
212
|
+
payload.author = cap.author;
|
|
213
|
+
if (cap.version)
|
|
214
|
+
payload.version = cap.version;
|
|
215
|
+
if (cap.description)
|
|
216
|
+
payload.description = cap.description;
|
|
217
|
+
if (cap.buildDate)
|
|
218
|
+
payload.buildDate = cap.buildDate;
|
|
219
|
+
if (cap.engineVersion)
|
|
220
|
+
payload.engineVersion = cap.engineVersion;
|
|
221
|
+
if (cap.clientVersion)
|
|
222
|
+
payload.clientVersion = cap.clientVersion;
|
|
223
|
+
return payload;
|
|
224
|
+
},
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* `ifid` — replace-mode IFID string. Closure reads `storyInfo.ifid`
|
|
228
|
+
* and skips emission when the value is empty (sparse-suppress style),
|
|
229
|
+
* so stories without an IFID don't emit empty strings into the
|
|
230
|
+
* channel state.
|
|
231
|
+
*/
|
|
232
|
+
exports.ifidChannel = {
|
|
233
|
+
id: 'ifid',
|
|
234
|
+
contentType: 'text',
|
|
235
|
+
mode: 'replace',
|
|
236
|
+
emit: 'always',
|
|
237
|
+
produce: (ctx) => {
|
|
238
|
+
const cap = (0, world_helpers_1.readCapability)(ctx, 'storyInfo');
|
|
239
|
+
if (!cap || typeof cap.ifid !== 'string' || cap.ifid.length === 0) {
|
|
240
|
+
return undefined;
|
|
241
|
+
}
|
|
242
|
+
return cap.ifid;
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* `death` — event-mode death notification. Closure looks for an
|
|
247
|
+
* `if.event.player_died` event in this turn's events and projects its
|
|
248
|
+
* `data.message` field. Stories that want different death handling
|
|
249
|
+
* register a replacement `IOChannel` with id `'death'` (last-write-wins
|
|
250
|
+
* per ADR-163 §6).
|
|
251
|
+
*/
|
|
252
|
+
exports.deathChannel = {
|
|
253
|
+
id: 'death',
|
|
254
|
+
contentType: 'text',
|
|
255
|
+
mode: 'event',
|
|
256
|
+
emit: 'sparse',
|
|
257
|
+
produce: (ctx) => {
|
|
258
|
+
for (const event of ctx.events) {
|
|
259
|
+
if (event.type === exports.STANDARD_CHANNEL_EVENTS.PLAYER_DIED) {
|
|
260
|
+
return eventMessage(event);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return undefined;
|
|
264
|
+
},
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* `endgame` — event-mode endgame notification (game won OR game lost
|
|
268
|
+
* — the closure folds both into one channel since renderers typically
|
|
269
|
+
* present them similarly). Closure scans for either event type and
|
|
270
|
+
* returns the message of the first match.
|
|
271
|
+
*/
|
|
272
|
+
exports.endgameChannel = {
|
|
273
|
+
id: 'endgame',
|
|
274
|
+
contentType: 'text',
|
|
275
|
+
mode: 'event',
|
|
276
|
+
emit: 'sparse',
|
|
277
|
+
produce: (ctx) => {
|
|
278
|
+
for (const event of ctx.events) {
|
|
279
|
+
if (event.type === exports.STANDARD_CHANNEL_EVENTS.GAME_WON ||
|
|
280
|
+
event.type === exports.STANDARD_CHANNEL_EVENTS.GAME_LOST) {
|
|
281
|
+
return eventMessage(event);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return undefined;
|
|
285
|
+
},
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* `score_notify` — event-mode transient score-change announcement.
|
|
289
|
+
* Closure scans for `if.event.score_changed` and emits its message.
|
|
290
|
+
*/
|
|
291
|
+
exports.scoreNotifyChannel = {
|
|
292
|
+
id: 'score_notify',
|
|
293
|
+
contentType: 'text',
|
|
294
|
+
mode: 'event',
|
|
295
|
+
emit: 'sparse',
|
|
296
|
+
produce: (ctx) => {
|
|
297
|
+
for (const event of ctx.events) {
|
|
298
|
+
if (event.type === exports.STANDARD_CHANNEL_EVENTS.SCORE_CHANGED) {
|
|
299
|
+
return eventMessage(event);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
return undefined;
|
|
303
|
+
},
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Map a platform event's type to the lifecycle channel's discriminator.
|
|
307
|
+
* Returns `undefined` for non-lifecycle events so the channel closure
|
|
308
|
+
* can ignore them.
|
|
309
|
+
*/
|
|
310
|
+
function lifecycleKind(eventType) {
|
|
311
|
+
if (eventType === 'platform.save_failed')
|
|
312
|
+
return 'save_failed';
|
|
313
|
+
if (eventType === 'platform.restore_failed')
|
|
314
|
+
return 'restore_failed';
|
|
315
|
+
if (eventType === 'platform.restore_completed')
|
|
316
|
+
return 'restore_completed';
|
|
317
|
+
return undefined;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Read `payload.error` from a platform-event-shaped object. Platform
|
|
321
|
+
* events store completion data on `payload`, not on the
|
|
322
|
+
* `ISemanticEvent.data` field that stdlib's other channels use, so
|
|
323
|
+
* lifecycle has its own reader. Returns `undefined` for non-string or
|
|
324
|
+
* absent values.
|
|
325
|
+
*/
|
|
326
|
+
function platformEventError(event) {
|
|
327
|
+
const payload = event.payload;
|
|
328
|
+
if (!payload)
|
|
329
|
+
return undefined;
|
|
330
|
+
if (typeof payload.error !== 'string')
|
|
331
|
+
return undefined;
|
|
332
|
+
return payload.error;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* `lifecycle` — event-mode save/restore signals. Projects the trio of
|
|
336
|
+
* platform completion events (`platform.save_failed`,
|
|
337
|
+
* `platform.restore_failed`, `platform.restore_completed`) into a
|
|
338
|
+
* single sparse channel.
|
|
339
|
+
*
|
|
340
|
+
* Renderers branch on `payload.kind`: failures display `payload.message`
|
|
341
|
+
* (or a fallback string), `restore_completed` triggers UI refresh
|
|
342
|
+
* without text. Sparse-emit semantics mean turns without a lifecycle
|
|
343
|
+
* event suppress emission entirely — the channel value retains its
|
|
344
|
+
* prior state on quiet turns.
|
|
345
|
+
*
|
|
346
|
+
* If multiple lifecycle events appear in one turn, the **last** one
|
|
347
|
+
* wins. In practice this is unobservable since each save/restore
|
|
348
|
+
* operation produces exactly one completion event, but the rule is
|
|
349
|
+
* documented so test authors don't expect first-wins semantics.
|
|
350
|
+
*/
|
|
351
|
+
exports.lifecycleChannel = {
|
|
352
|
+
id: 'lifecycle',
|
|
353
|
+
contentType: 'json',
|
|
354
|
+
mode: 'event',
|
|
355
|
+
emit: 'sparse',
|
|
356
|
+
produce: (ctx) => {
|
|
357
|
+
let result;
|
|
358
|
+
for (const event of ctx.events) {
|
|
359
|
+
const kind = lifecycleKind(event.type);
|
|
360
|
+
if (!kind)
|
|
361
|
+
continue;
|
|
362
|
+
const message = platformEventError(event);
|
|
363
|
+
result = message !== undefined ? { kind, message } : { kind };
|
|
364
|
+
}
|
|
365
|
+
return result;
|
|
366
|
+
},
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* The ten platform-standard channels in iteration order. Order is
|
|
370
|
+
* preserved for stable diffing in tests and manifests; the
|
|
371
|
+
* `ChannelService` itself does not depend on ordering.
|
|
372
|
+
*/
|
|
373
|
+
exports.STANDARD_CHANNELS = [
|
|
374
|
+
exports.mainChannel,
|
|
375
|
+
exports.promptChannel,
|
|
376
|
+
exports.locationChannel,
|
|
377
|
+
exports.scoreChannel,
|
|
378
|
+
exports.turnChannel,
|
|
379
|
+
exports.infoChannel,
|
|
380
|
+
exports.ifidChannel,
|
|
381
|
+
exports.deathChannel,
|
|
382
|
+
exports.endgameChannel,
|
|
383
|
+
exports.scoreNotifyChannel,
|
|
384
|
+
exports.lifecycleChannel,
|
|
385
|
+
];
|
|
386
|
+
/**
|
|
387
|
+
* Channel id literals for the platform-standard set. Used by tests
|
|
388
|
+
* and consumers that need string-literal types.
|
|
389
|
+
*/
|
|
390
|
+
exports.STANDARD_CHANNEL_IDS = {
|
|
391
|
+
MAIN: 'main',
|
|
392
|
+
PROMPT: 'prompt',
|
|
393
|
+
LOCATION: 'location',
|
|
394
|
+
SCORE: 'score',
|
|
395
|
+
TURN: 'turn',
|
|
396
|
+
INFO: 'info',
|
|
397
|
+
IFID: 'ifid',
|
|
398
|
+
DEATH: 'death',
|
|
399
|
+
ENDGAME: 'endgame',
|
|
400
|
+
SCORE_NOTIFY: 'score_notify',
|
|
401
|
+
LIFECYCLE: 'lifecycle',
|
|
402
|
+
};
|
|
403
|
+
//# sourceMappingURL=standard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/channels/standard.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AAIH,sDAAuD;AAEvD,iCAAmC;AACnC,mDAAqE;AAErE;;;;;;GAMG;AACH,SAAS,cAAc,CAAC,OAAmC;IACzD,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,GAAG,IAAI,IAAI,CAAC;;YACrC,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACU,QAAA,uBAAuB,GAAG;IACrC,WAAW,EAAE,oBAAoB;IACjC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,aAAa,EAAE,oBAAoB;CAC3B,CAAC;AA4BX;;;;GAIG;AACH,SAAS,YAAY,CAAC,KAAyB;IAC7C,MAAM,IAAI,GAAG,KAAK,CAAC,IAAyC,CAAC;IAC7D,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5B,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACvD,OAAO,IAAI,CAAC,OAAO,CAAC;AACtB,CAAC;AAED;;;;;;GAMG;AACU,QAAA,WAAW,GAAyB;IAC/C,EAAE,EAA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,WAAW;IACf,WAAW,EAAE,MAAM;IACnB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACf,IAAI,MAAoC,CAAC;QACzC,KAAK,MAAM,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;YAC/B,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,CAAC,IAAI;gBAAE,SAAS;YACpB,MAAM,OAAO,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC1C,MAAM,GAAG,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;QAChE,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC;AAEF;;;;GAIG;AACU,QAAA,iBAAiB,GAA6B;IACzD,mBAAW;IACX,qBAAa;IACb,uBAAe;IACf,oBAAY;IACZ,mBAAW;IACX,mBAAW;IACX,mBAAW;IACX,oBAAY;IACZ,sBAAc;IACd,0BAAkB;IAClB,wBAAgB;CACjB,CAAC;AAEF;;;GAGG;AACU,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;CACd,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @sharpee/stdlib/channels — world-narrowing helpers for closures.
|
|
3
|
+
*
|
|
4
|
+
* Owner context: stdlib channel module. Centralizes the cast from
|
|
5
|
+
* `ChannelProduceContext.world` (typed `unknown` in if-domain to avoid
|
|
6
|
+
* a world-model dependency cycle — see ADR-163 §6 commentary) into the
|
|
7
|
+
* concrete `IWorldModel` shape that stdlib closures use.
|
|
8
|
+
*
|
|
9
|
+
* Each helper is null-safe: if the world is missing the expected
|
|
10
|
+
* accessor (e.g., a stub world used in tests, or a partial mock), the
|
|
11
|
+
* helper returns `undefined` rather than throwing. Closures using
|
|
12
|
+
* these helpers thus degrade gracefully — they emit `undefined`,
|
|
13
|
+
* which the `ChannelService` interprets as "no value this turn."
|
|
14
|
+
*
|
|
15
|
+
* Public interface (internal to stdlib):
|
|
16
|
+
* - `asWorld(ctx)` — narrow `ctx.world` to `IWorldModel` or
|
|
17
|
+
* `undefined`.
|
|
18
|
+
* - `readCapability<T>(ctx, name)` — typed capability lookup.
|
|
19
|
+
* - `playerLocationName(ctx)` — current room display name.
|
|
20
|
+
*/
|
|
21
|
+
import type { ChannelProduceContext } from '@sharpee/if-domain';
|
|
22
|
+
import type { IWorldModel, ICapabilityData } from '@sharpee/world-model';
|
|
23
|
+
/**
|
|
24
|
+
* Return the context's world cast as an `IWorldModel`, or `undefined`
|
|
25
|
+
* if the context's world value is null/undefined or lacks the expected
|
|
26
|
+
* shape (no `getCapability` method).
|
|
27
|
+
*/
|
|
28
|
+
export declare function asWorld(ctx: ChannelProduceContext): IWorldModel | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Read a named capability from the world, narrowed to a caller-typed
|
|
31
|
+
* shape. Returns `undefined` if the world is missing or the capability
|
|
32
|
+
* is not registered. The caller is responsible for asserting the
|
|
33
|
+
* returned shape — capability data is loosely typed in the world model.
|
|
34
|
+
*/
|
|
35
|
+
export declare function readCapability<T extends ICapabilityData = ICapabilityData>(ctx: ChannelProduceContext, name: string): T | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Resolve the player's current room display name, or `undefined` if
|
|
38
|
+
* the world has no player, no containing room, or the room lacks a
|
|
39
|
+
* display name. Used by `locationChannel` to populate the status-line
|
|
40
|
+
* location field.
|
|
41
|
+
*/
|
|
42
|
+
export declare function playerLocationName(ctx: ChannelProduceContext): string | undefined;
|
|
43
|
+
//# sourceMappingURL=world-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/channels/world-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEzE;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,qBAAqB,GAAG,WAAW,GAAG,SAAS,CAK3E;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxE,GAAG,EAAE,qBAAqB,EAC1B,IAAI,EAAE,MAAM,GACX,CAAC,GAAG,SAAS,CAIf;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAUjF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @sharpee/stdlib/channels — world-narrowing helpers for closures.
|
|
4
|
+
*
|
|
5
|
+
* Owner context: stdlib channel module. Centralizes the cast from
|
|
6
|
+
* `ChannelProduceContext.world` (typed `unknown` in if-domain to avoid
|
|
7
|
+
* a world-model dependency cycle — see ADR-163 §6 commentary) into the
|
|
8
|
+
* concrete `IWorldModel` shape that stdlib closures use.
|
|
9
|
+
*
|
|
10
|
+
* Each helper is null-safe: if the world is missing the expected
|
|
11
|
+
* accessor (e.g., a stub world used in tests, or a partial mock), the
|
|
12
|
+
* helper returns `undefined` rather than throwing. Closures using
|
|
13
|
+
* these helpers thus degrade gracefully — they emit `undefined`,
|
|
14
|
+
* which the `ChannelService` interprets as "no value this turn."
|
|
15
|
+
*
|
|
16
|
+
* Public interface (internal to stdlib):
|
|
17
|
+
* - `asWorld(ctx)` — narrow `ctx.world` to `IWorldModel` or
|
|
18
|
+
* `undefined`.
|
|
19
|
+
* - `readCapability<T>(ctx, name)` — typed capability lookup.
|
|
20
|
+
* - `playerLocationName(ctx)` — current room display name.
|
|
21
|
+
*/
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.asWorld = asWorld;
|
|
24
|
+
exports.readCapability = readCapability;
|
|
25
|
+
exports.playerLocationName = playerLocationName;
|
|
26
|
+
/**
|
|
27
|
+
* Return the context's world cast as an `IWorldModel`, or `undefined`
|
|
28
|
+
* if the context's world value is null/undefined or lacks the expected
|
|
29
|
+
* shape (no `getCapability` method).
|
|
30
|
+
*/
|
|
31
|
+
function asWorld(ctx) {
|
|
32
|
+
const candidate = ctx.world;
|
|
33
|
+
if (!candidate)
|
|
34
|
+
return undefined;
|
|
35
|
+
if (typeof candidate.getCapability !== 'function')
|
|
36
|
+
return undefined;
|
|
37
|
+
return candidate;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Read a named capability from the world, narrowed to a caller-typed
|
|
41
|
+
* shape. Returns `undefined` if the world is missing or the capability
|
|
42
|
+
* is not registered. The caller is responsible for asserting the
|
|
43
|
+
* returned shape — capability data is loosely typed in the world model.
|
|
44
|
+
*/
|
|
45
|
+
function readCapability(ctx, name) {
|
|
46
|
+
const world = asWorld(ctx);
|
|
47
|
+
if (!world)
|
|
48
|
+
return undefined;
|
|
49
|
+
return world.getCapability(name);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Resolve the player's current room display name, or `undefined` if
|
|
53
|
+
* the world has no player, no containing room, or the room lacks a
|
|
54
|
+
* display name. Used by `locationChannel` to populate the status-line
|
|
55
|
+
* location field.
|
|
56
|
+
*/
|
|
57
|
+
function playerLocationName(ctx) {
|
|
58
|
+
const world = asWorld(ctx);
|
|
59
|
+
if (!world)
|
|
60
|
+
return undefined;
|
|
61
|
+
const player = world.getPlayer?.();
|
|
62
|
+
if (!player)
|
|
63
|
+
return undefined;
|
|
64
|
+
const room = world.getContainingRoom?.(player.id);
|
|
65
|
+
if (!room)
|
|
66
|
+
return undefined;
|
|
67
|
+
const name = room.name;
|
|
68
|
+
if (typeof name !== 'string' || name.length === 0)
|
|
69
|
+
return undefined;
|
|
70
|
+
return name;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=world-helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world-helpers.js","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/channels/world-helpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;AAUH,0BAKC;AAQD,wCAOC;AAQD,gDAUC;AA3CD;;;;GAIG;AACH,SAAgB,OAAO,CAAC,GAA0B;IAChD,MAAM,SAAS,GAAG,GAAG,CAAC,KAAgD,CAAC;IACvE,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAC;IACjC,IAAI,OAAO,SAAS,CAAC,aAAa,KAAK,UAAU;QAAE,OAAO,SAAS,CAAC;IACpE,OAAO,SAAwB,CAAC;AAClC,CAAC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAC5B,GAA0B,EAC1B,IAAY;IAEZ,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,OAAO,KAAK,CAAC,aAAa,CAAC,IAAI,CAAkB,CAAC;AACpD,CAAC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,GAA0B;IAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,EAAE,EAAE,CAAC;IACnC,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAC9B,MAAM,IAAI,GAAG,KAAK,CAAC,iBAAiB,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5B,MAAM,IAAI,GAAI,IAA0B,CAAC,IAAI,CAAC;IAC9C,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACpE,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/combat/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/combat/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/combat/weapon-utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Helper functions for finding and evaluating weapons.
|
|
5
5
|
* Combat resolution has moved to @sharpee/ext-basic-combat.
|
|
6
6
|
*/
|
|
7
|
-
import { IFEntity, WorldModel } from
|
|
7
|
+
import { IFEntity, WorldModel } from '@sharpee/world-model';
|
|
8
8
|
/**
|
|
9
9
|
* Find the wielded weapon for an entity
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weapon-utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"weapon-utils.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/combat/weapon-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,QAAQ,EACR,UAAU,EAIX,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,QAAQ,EAChB,KAAK,EAAE,UAAU,GAChB,QAAQ,GAAG,SAAS,CAiCtB"}
|
package/combat/weapon-utils.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.findWieldedWeapon = findWieldedWeapon;
|
|
10
|
-
const world_model_1 = require("
|
|
10
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
11
11
|
/**
|
|
12
12
|
* Find the wielded weapon for an entity
|
|
13
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-events.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"action-events.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/events/action-events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB,CAAC,KAAK,GAAG,GAAG;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC;CACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-event.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"base-event.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/events/base-event.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,KAAK,GAAG,GAAG,CAAE,SAAQ,iBAAiB;IACtE;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB,CAAC,KAAK,GAAG,GAAG,CAAE,SAAQ,iBAAiB;IAC1E;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,GAAG,CAAE,SAAQ,iBAAiB;IACxE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE7B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-patterns.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"common-patterns.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/events/common-patterns.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,QAAQ,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,QAAQ,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,QAAQ,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;GAWG"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @see ADR-082 for the design rationale
|
|
8
8
|
*/
|
|
9
|
-
import type { EntityId } from
|
|
9
|
+
import type { EntityId } from '@sharpee/core';
|
|
10
10
|
export type { TakenEventData, TakingErrorData } from '../actions/standard/taking/taking-events';
|
|
11
11
|
export type { DroppedEventData, DroppingErrorData } from '../actions/standard/dropping/dropping-events';
|
|
12
12
|
export type { LookedEventData, RoomDescriptionEventData, ListContentsEventData } from '../actions/standard/looking/looking-events';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-registry.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"event-registry.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/events/event-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChG,Y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AAC;QAK9C,0BAA0B,EAAE,uBAAuB,CAAC;QACpD,qBAAqB,EAAE,kBAAkB,CAAC;QAK1C,gBAAgB,EAAE,iBAAiB,CAAC;QACpC,cAAc,EAAE,eAAe,CAAC;KACjC;CACF;AAGD,OAAO,EAAE,CAAC"}
|
package/events/event-utils.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* These are helpers that actions can use if they want to follow
|
|
5
5
|
* common patterns, but they're entirely optional.
|
|
6
6
|
*/
|
|
7
|
-
import { IFEntity } from
|
|
8
|
-
import { EntityId } from
|
|
7
|
+
import { IFEntity } from '@sharpee/world-model';
|
|
8
|
+
import { EntityId } from '@sharpee/core';
|
|
9
9
|
/**
|
|
10
10
|
* Create standard target data from an entity
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-utils.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"event-utils.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/events/event-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,QAAQ;;;EAKhD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,QAAQ;;;;;EAOhD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,QAAQ;;;EAKnD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,QAAQ;;;EAKlD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAE9D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,CAE9D;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ;;;;;EAO9D"}
|
package/events/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/events/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC;;;;;;;;;;;;GAYG"}
|