@sharpee/stdlib 1.0.0 → 1.1.0
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/README.md +55 -66
- 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 +2 -2
- package/actions/enhanced-types.d.ts +3 -3
- package/actions/enhanced-types.d.ts.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 -1
- package/actions/index.d.ts.map +1 -1
- package/actions/index.js +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.map +1 -1
- package/actions/standard/about/about.d.ts.map +1 -1
- package/actions/standard/about/about.js +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 +2 -2
- 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.map +1 -1
- package/actions/standard/examining/examining.d.ts.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 +1 -1
- package/channels/index.d.ts.map +1 -1
- package/channels/keys.d.ts.map +1 -1
- package/channels/keys.js +1 -1
- package/channels/media.d.ts +2 -2
- package/channels/media.d.ts.map +1 -1
- package/channels/registry.d.ts +1 -1
- package/channels/registry.d.ts.map +1 -1
- package/channels/sound-events.d.ts +2 -2
- package/channels/sound-events.d.ts.map +1 -1
- package/channels/standard.d.ts +1 -1
- package/channels/standard.d.ts.map +1 -1
- package/channels/standard.js +1 -1
- package/channels/world-helpers.d.ts +2 -2
- package/channels/world-helpers.d.ts.map +1 -1
- 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.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 -7
- 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 +2 -2
- package/validation/command-validator.d.ts.map +1 -1
- package/validation/command-validator.js +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
package/npc/lucidity-decay.d.ts
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* Public interface: processLucidityDecay(), DECAY_RATE_TURNS.
|
|
9
9
|
* Owner context: stdlib / npc
|
|
10
10
|
*/
|
|
11
|
-
import { ISemanticEvent } from
|
|
12
|
-
import { IFEntity, WorldModel, CharacterModelTrait, DecayRate } from
|
|
11
|
+
import { ISemanticEvent } from '@sharpee/core';
|
|
12
|
+
import { IFEntity, WorldModel, CharacterModelTrait, DecayRate } from '@sharpee/world-model';
|
|
13
13
|
/**
|
|
14
14
|
* Maps decay rate words to number of turns before baseline is restored.
|
|
15
15
|
* These are the window durations when no sustaining trigger is active.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucidity-decay.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"lucidity-decay.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/npc/lucidity-decay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,cAAc,EAAY,MAAM,eAAe,CAAC;AACzD,OAAO,EACL,QAAQ,EACR,UAAU,EAEV,mBAAmB,EACnB,SAAS,EACV,MAAM,sBAAsB,CAAC;AAO9B;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAItD,CAAC;AA0BF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,UAAU,EACjB,IAAI,EAAE,MAAM,GACX,cAAc,EAAE,CAsBlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,mBAAmB,EAC1B,WAAW,EAAE,MAAM,GAClB,IAAI,CAQN"}
|
package/npc/lucidity-decay.js
CHANGED
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
exports.DECAY_RATE_TURNS = void 0;
|
|
14
14
|
exports.processLucidityDecay = processLucidityDecay;
|
|
15
15
|
exports.enterLucidityWindow = enterLucidityWindow;
|
|
16
|
-
const world_model_1 = require("
|
|
16
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
17
17
|
const character_messages_1 = require("./character-messages");
|
|
18
18
|
// ---------------------------------------------------------------------------
|
|
19
19
|
// Decay rate mapping
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npc-messages.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"npc-messages.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/npc/npc-messages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Cd,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
package/npc/npc-service.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Manages NPC behaviors, executes NPC actions, and handles the NPC turn phase.
|
|
5
5
|
*/
|
|
6
|
-
import { ISemanticEvent, EntityId, SeededRandom } from
|
|
7
|
-
import { IFEntity, WorldModel } from
|
|
6
|
+
import { ISemanticEvent, EntityId, SeededRandom } from '@sharpee/core';
|
|
7
|
+
import { IFEntity, WorldModel } from '@sharpee/world-model';
|
|
8
8
|
import { NpcBehavior } from './types';
|
|
9
9
|
/**
|
|
10
10
|
* A tick phase handler that runs during NPC turn processing.
|
package/npc/npc-service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"npc-service.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"npc-service.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/npc/npc-service.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAiF,MAAM,sBAAsB,CAAC;AAC3I,OAAO,EACL,WAAW,EAGZ,MAAM,SAAS,CAAC;AAGjB;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CACzB,IAAI,EAAE,QAAQ,EAAE,EAChB,OAAO,EAAE,cAAc,KACpB,cAAc,EAAE,CAAC;AAEtB;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAC9B,GAAG,EAAE,QAAQ,EACb,MAAM,EAAE,QAAQ,EAChB,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,YAAY,KACjB,cAAc,EAAE,CAAC;AAYtB;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,QA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,iBAAiB;IAMzB,OAAO,CAAC,gBAAgB;IAwBxB,OAAO,CAAC,gBAAgB;IAiCxB,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,aAAa;IA6DrB,OAAO,CAAC,WAAW;IAkCnB,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,WAAW;IAuBnB,OAAO,CAAC,WAAW;IA0BnB,OAAO,CAAC,aAAa;CA2BtB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,CAE9C"}
|
package/npc/npc-service.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.NpcService = void 0;
|
|
|
9
9
|
exports.registerNpcCombatResolver = registerNpcCombatResolver;
|
|
10
10
|
exports.clearNpcCombatResolver = clearNpcCombatResolver;
|
|
11
11
|
exports.createNpcService = createNpcService;
|
|
12
|
-
const world_model_1 = require("
|
|
12
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
13
13
|
const npc_messages_1 = require("./npc-messages");
|
|
14
14
|
const lucidity_decay_1 = require("./lucidity-decay");
|
|
15
15
|
/**
|
package/npc/types.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Types for NPC behaviors and actions.
|
|
5
5
|
*/
|
|
6
|
-
import { ISemanticEvent, EntityId, SeededRandom } from
|
|
7
|
-
import { IFEntity, WorldModel, DirectionType } from
|
|
6
|
+
import { ISemanticEvent, EntityId, SeededRandom } from '@sharpee/core';
|
|
7
|
+
import { IFEntity, WorldModel, DirectionType } from '@sharpee/world-model';
|
|
8
8
|
/**
|
|
9
9
|
* Context passed to NPC behavior hooks
|
|
10
10
|
*/
|
package/npc/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/npc/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH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O,CAAC,GAAG,IAAI,CAAC;CAChE;AAED;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC9C,IAAI,EACA,WAAW,GACX,WAAW,GACX,UAAU,GACV,aAAa,GACb,cAAc,GACd,YAAY,GACZ,UAAU,GACV,kBAAkB,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,QAAQ,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,EAAE,EAAE,QAAQ,CAAC;IACb,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,QAAQ,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,QAAQ,CAAC;IACd,MAAM,EAAE,QAAQ,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,QAAQ,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,QAAQ,CAAC;IACd,MAAM,EAAE,QAAQ,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharpee/stdlib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Standard library for Sharpee IF Platform - actions, commands, and game mechanics",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@sharpee/core": "^1.
|
|
16
|
-
"@sharpee/if-domain": "^1.
|
|
17
|
-
"@sharpee/if-services": "^1.
|
|
18
|
-
"@sharpee/lang-en-us": "^1.
|
|
19
|
-
"@sharpee/text-blocks": "^1.
|
|
20
|
-
"@sharpee/world-model": "^1.
|
|
15
|
+
"@sharpee/core": "^1.1.0",
|
|
16
|
+
"@sharpee/if-domain": "^1.1.0",
|
|
17
|
+
"@sharpee/if-services": "^1.1.0",
|
|
18
|
+
"@sharpee/lang-en-us": "^1.1.0",
|
|
19
|
+
"@sharpee/text-blocks": "^1.1.0",
|
|
20
|
+
"@sharpee/world-model": "^1.1.0"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"interactive-fiction",
|
package/parser/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Parser contracts have been moved to @sharpee/if-domain.
|
|
5
5
|
* This module now only re-exports from if-domain for backward compatibility.
|
|
6
6
|
*/
|
|
7
|
-
export { Parser, ParserOptions, ParserFactory, BaseParser, Token, TokenCandidate, CandidateCommand, InternalParseResult, ParseError, ParseErrorType, VocabularyEntry, PartOfSpeech, VocabularyProvider, VocabularyRegistry, vocabularyRegistry, VerbVocabulary, DirectionVocabulary, SpecialVocabulary, EntityVocabulary, VocabularySet, GrammarPattern, GrammarPatterns, GrammarPatternName, adaptVerbVocabulary, adaptDirectionVocabulary, adaptSpecialVocabulary } from
|
|
7
|
+
export { Parser, ParserOptions, ParserFactory, BaseParser, Token, TokenCandidate, CandidateCommand, InternalParseResult, ParseError, ParseErrorType, VocabularyEntry, PartOfSpeech, VocabularyProvider, VocabularyRegistry, vocabularyRegistry, VerbVocabulary, DirectionVocabulary, SpecialVocabulary, EntityVocabulary, VocabularySet, GrammarPattern, GrammarPatterns, GrammarPatternName, adaptVerbVocabulary, adaptDirectionVocabulary, adaptSpecialVocabulary } from '@sharpee/if-domain';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/parser/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/parser/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAEL,MAAM,EACN,aAAa,EACb,aAAa,EACb,UAAU,EACV,KAAK,EACL,cAAc,EAGd,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,cAAc,EAGd,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,eAAe,EACf,kBAAkB,EAGlB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,oBAAoB,CAAC"}
|
package/parser/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.adaptSpecialVocabulary = exports.adaptDirectionVocabulary = exports.adaptVerbVocabulary = exports.GrammarPatterns = exports.vocabularyRegistry = exports.VocabularyRegistry = exports.PartOfSpeech = exports.ParseErrorType = exports.ParserFactory = void 0;
|
|
10
10
|
// Re-export parser and vocabulary contracts from if-domain
|
|
11
|
-
var if_domain_1 = require("
|
|
11
|
+
var if_domain_1 = require("@sharpee/if-domain");
|
|
12
12
|
Object.defineProperty(exports, "ParserFactory", { enumerable: true, get: function () { return if_domain_1.ParserFactory; } });
|
|
13
13
|
Object.defineProperty(exports, "ParseErrorType", { enumerable: true, get: function () { return if_domain_1.ParseErrorType; } });
|
|
14
14
|
Object.defineProperty(exports, "PartOfSpeech", { enumerable: true, get: function () { return if_domain_1.PartOfSpeech; } });
|
|
@@ -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/query-handlers/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Handles responses to quit confirmation queries.
|
|
5
5
|
* Works with the platform events system to emit appropriate events.
|
|
6
6
|
*/
|
|
7
|
-
import { IQueryHandler, IPendingQuery, IQueryResponse } from
|
|
7
|
+
import { IQueryHandler, IPendingQuery, IQueryResponse } from '@sharpee/core';
|
|
8
8
|
/**
|
|
9
9
|
* Handler for quit confirmation queries
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quit-handler.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"quit-handler.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/query-handlers/quit-handler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,aAAa,EACb,aAAa,EACb,cAAc,EAQf,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,qBAAa,gBAAiB,YAAW,aAAa;IACpD,OAAO,CAAC,WAAW,CAA+B;IAElD;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IASxC;;OAEG;IACH,cAAc,CAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI;IAoIpE;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAYzC;;OAEG;IACH,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAWxC;;OAEG;IACH,cAAc;IAId;;OAEG;IACH,OAAO,CAAC,WAAW;CASpB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,gBAAgB,CAEzD"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.QuitQueryHandler = void 0;
|
|
10
10
|
exports.createQuitQueryHandler = createQuitQueryHandler;
|
|
11
|
-
const core_1 = require("
|
|
11
|
+
const core_1 = require("@sharpee/core");
|
|
12
12
|
/**
|
|
13
13
|
* Handler for quit confirmation queries
|
|
14
14
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Handles responses to restart confirmation queries.
|
|
5
5
|
* Works with the platform events system to emit appropriate events.
|
|
6
6
|
*/
|
|
7
|
-
import { IQueryHandler, IPendingQuery, IQueryResponse } from
|
|
7
|
+
import { IQueryHandler, IPendingQuery, IQueryResponse } from '@sharpee/core';
|
|
8
8
|
/**
|
|
9
9
|
* Handler for restart confirmation queries
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restart-handler.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"restart-handler.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/query-handlers/restart-handler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,aAAa,EACb,aAAa,EACb,cAAc,EAQf,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,qBAAa,mBAAoB,YAAW,aAAa;IACvD,OAAO,CAAC,WAAW,CAA+B;IAElD;;OAEG;IACH,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IASxC;;OAEG;IACH,cAAc,CAAC,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI;IAqIpE;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAYzC;;OAEG;IACH,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAWxC;;OAEG;IACH,cAAc;IAId;;OAEG;IACH,OAAO,CAAC,WAAW;CASpB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,mBAAmB,CAE/D"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.RestartQueryHandler = void 0;
|
|
10
10
|
exports.createRestartQueryHandler = createRestartQueryHandler;
|
|
11
|
-
const core_1 = require("
|
|
11
|
+
const core_1 = require("@sharpee/core");
|
|
12
12
|
/**
|
|
13
13
|
* Handler for restart confirmation queries
|
|
14
14
|
*/
|
package/scope/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/scope/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* vocabulary) or the parser's GrammarScopeResolver (grammar constraint
|
|
13
13
|
* evaluation during parsing).
|
|
14
14
|
*/
|
|
15
|
-
import { IFEntity, WorldModel } from
|
|
15
|
+
import { IFEntity, WorldModel } from '@sharpee/world-model';
|
|
16
16
|
import { ScopeLevel, ScopeResolver } from './types';
|
|
17
17
|
/**
|
|
18
18
|
* Standard implementation of scope resolution for IF games
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-resolver.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"scope-resolver.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/scope/scope-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAsD,MAAM,sBAAsB,CAAC;AAChH,OAAO,EAAE,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value: true });
|
|
17
17
|
exports.StandardScopeResolver = void 0;
|
|
18
18
|
exports.createScopeResolver = createScopeResolver;
|
|
19
|
-
const world_model_1 = require("
|
|
19
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
20
20
|
const types_1 = require("./types");
|
|
21
21
|
/**
|
|
22
22
|
* Check if an entity is concealed (hidden until SEARCH reveals it).
|
package/scope/types.d.ts
CHANGED
package/scope/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/scope/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD;;;;;;;;;GASG;AACH,oBAAY,UAAU;IACpB,wCAAwC;IACxC,OAAO,IAAI;IAEX,wEAAwE;IACxE,KAAK,IAAI;IAET,iDAAiD;IACjD,OAAO,IAAI;IAEX,gEAAgE;IAChE,SAAS,IAAI;IAEb,yEAAyE;IACzE,OAAO,IAAI;CACZ;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AAEX;;GAEG;AACH,oBAAY,SAAS;IACnB,kEAAkE;IAClE,KAAK,UAAU;IAEf,0DAA0D;IAC1D,OAAO,YAAY;IAEnB,4CAA4C;IAC5C,KAAK,UAAU;IAEf,qDAAqD;IACrD,KAAK,UAAU;IAEf,sDAAsD;IACtD,IAAI,SAAS;CACd;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAExD;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC;IAEnD;;OAEG;IACH,QAAQ,CAAC,K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3B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,SAAS,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;QAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;QAC3B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,MAAM,YAAY,GACpB,kBAAkB,GAClB,oBAAoB,GACpB,iBAAiB,GACjB,iBAAiB,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Works with the scope system to determine who can perceive changes
|
|
6
6
|
* and updates their knowledge accordingly.
|
|
7
7
|
*/
|
|
8
|
-
import { WorldModel } from
|
|
8
|
+
import { WorldModel } from '@sharpee/world-model';
|
|
9
9
|
import { WitnessSystem, StateChange, WitnessRecord, EntityKnowledge, ScopeResolver } from './types';
|
|
10
10
|
/**
|
|
11
11
|
* Standard implementation of the witness system
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"witness-system.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"witness-system.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/scope/witness-system.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAY,UAAU,EAAa,MAAM,sBAAsB,CAAC;AAEvE,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,EAGb,eAAe,EAIf,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,qBAAa,qBAAsB,YAAW,aAAa;IAIvD,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,aAAa;IAJvB,OAAO,CAAC,SAAS,CAAwD;gBAG/D,KAAK,EAAE,UAAU,EACjB,aAAa,EAAE,aAAa;IAGtC;;OAEG;IACH,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,aAAa;IAwBnD;;OAEG;IACH,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAgC5C;;OAEG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,EAAE;IAOpD;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO;IAQzD;;OAEG;IACH,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS;IAO5E;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAmCxB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAc7B;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAuC/B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAYhC;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAUlC;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAoBnC;;OAEG;IACH,OAAO,CAAC,qBAAqB;IA0B7B;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAS9B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAe7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAqDxB;;OAEG;IACH,OAAO,CAAC,YAAY;CAKrB"}
|
package/scope/witness-system.js
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.StandardWitnessSystem = void 0;
|
|
11
|
-
const world_model_1 = require("
|
|
12
|
-
const core_1 = require("
|
|
11
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
12
|
+
const core_1 = require("@sharpee/core");
|
|
13
13
|
const types_1 = require("./types");
|
|
14
14
|
/**
|
|
15
15
|
* Standard implementation of the witness system
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @see ADR-069 Perception-Based Event Filtering
|
|
9
9
|
*/
|
|
10
|
-
import { ISemanticEvent } from
|
|
11
|
-
import { IFEntity, IWorldModel } from
|
|
12
|
-
export type { Sense, PerceptionBlockReason, PerceptionBlockedData, IPerceptionService, } from
|
|
13
|
-
import type { Sense, IPerceptionService } from
|
|
10
|
+
import { ISemanticEvent } from '@sharpee/core';
|
|
11
|
+
import { IFEntity, IWorldModel } from '@sharpee/world-model';
|
|
12
|
+
export type { Sense, PerceptionBlockReason, PerceptionBlockedData, IPerceptionService, } from '@sharpee/if-services';
|
|
13
|
+
import type { Sense, IPerceptionService } from '@sharpee/if-services';
|
|
14
14
|
/**
|
|
15
15
|
* Default implementation of IPerceptionService
|
|
16
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PerceptionService.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"PerceptionService.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/services/PerceptionService.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAkC,MAAM,sBAAsB,CAAC;AAG7F,YAAY,EACV,KAAK,EACL,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EACV,KAAK,EAGL,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;GAOG;AACH,qBAAa,iBAAkB,YAAW,kBAAkB;IAC1D;;;;;OAKG;IACH,YAAY,CACV,MAAM,EAAE,cAAc,EAAE,EACxB,KAAK,EAAE,QAAQ,EACf,KAAK,EAAE,WAAW,GACjB,cAAc,EAAE;IAwBnB;;OAEG;IACH,WAAW,CACT,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,KAAK,GACX,OAAO;IAeV;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IAwBtB;;OAEG;IACH,OAAO,CAAC,OAAO;IASf;;OAEG;IACH,OAAO,CAAC,QAAQ;IAQhB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAQhB;;OAEG;IACH,OAAO,CAAC,OAAO;IAMf;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAM1B;;OAEG;IACH,OAAO,CAAC,YAAY;IAIpB;;OAEG;IACH,OAAO,CAAC,aAAa;IAsBrB;;OAEG;IACH,OAAO,CAAC,4BAA4B;IAsBpC;;OAEG;IACH,OAAO,CAAC,cAAc;CAmBvB"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PerceptionService = void 0;
|
|
13
|
-
const world_model_1 = require("
|
|
13
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
14
14
|
/**
|
|
15
15
|
* Default implementation of IPerceptionService
|
|
16
16
|
*
|
package/services/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/services/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC"}
|
package/utils/entity-info.d.ts
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* @see ADR-158 Entity-Valued Message Params Carry EntityInfo
|
|
16
16
|
* @see ADR-095 Message Templates with Formatters
|
|
17
17
|
*/
|
|
18
|
-
import type { EntityInfo } from
|
|
19
|
-
import { IFEntity } from
|
|
18
|
+
import type { EntityInfo } from '@sharpee/lang-en-us';
|
|
19
|
+
import { IFEntity } from '@sharpee/world-model';
|
|
20
20
|
/**
|
|
21
21
|
* Build an `EntityInfo` from an `IFEntity` for use as a message-template
|
|
22
22
|
* parameter value.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-info.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"entity-info.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/utils/entity-info.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAA4B,MAAM,sBAAsB,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,GAAG,UAAU,CAyB3D"}
|
package/utils/entity-info.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.entityInfoFrom = entityInfoFrom;
|
|
21
|
-
const world_model_1 = require("
|
|
21
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
22
22
|
/**
|
|
23
23
|
* Build an `EntityInfo` from an `IFEntity` for use as a message-template
|
|
24
24
|
* parameter value.
|
package/utils/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/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Validates parsed commands against the world model
|
|
5
5
|
* Resolves entities and checks preconditions
|
|
6
6
|
*/
|
|
7
|
-
import type { ISystemEvent, IGenericEventSource, Result } from
|
|
8
|
-
import type { IParsedCommand, INounPhrase, IValidatedObjectReference, IValidationError, WorldModel } from
|
|
7
|
+
import type { ISystemEvent, IGenericEventSource, Result } from '@sharpee/core';
|
|
8
|
+
import type { IParsedCommand, INounPhrase, IValidatedObjectReference, IValidationError, WorldModel } from '@sharpee/world-model';
|
|
9
9
|
import type { ValidatedCommand } from './types';
|
|
10
10
|
import { ActionRegistry } from '../actions/registry';
|
|
11
11
|
import { ScopeResolver, ScopeLevel } from '../scope/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-validator.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"command-validator.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/validation/command-validator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,MAAM,EACP,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EAEX,yBAAyB,EACzB,gBAAgB,EAChB,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAG3D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG3D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,sBAAsB,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAcD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,gBAAgB,GAAG,YAAY,CAAC;AAE1E;;GA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GAAG,yBAAyB,GAAG,IAAI;IAW1F;;OAEG;IACH,OAAO,CAAC,eAAe;IAMvB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAQ3B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAyDxB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IA2B1B;;OAEG;IACH,OAAO,CAAC,aAAa;IAUrB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAK5B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;IAsB3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAoBzB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAiBzB;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAehC;;OAEG;IACH,OAAO,CAAC,cAAc;CAkBvB"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.CommandValidator = void 0;
|
|
10
|
-
const world_model_1 = require("
|
|
10
|
+
const world_model_1 = require("@sharpee/world-model");
|
|
11
11
|
const types_1 = require("../scope/types");
|
|
12
12
|
const scope_resolver_1 = require("../scope/scope-resolver");
|
|
13
13
|
/**
|
|
@@ -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/validation/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
|
package/validation/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extends the core validation types with scope information
|
|
5
5
|
*/
|
|
6
|
-
import type { IValidatedCommand as CoreValidatedCommand } from
|
|
6
|
+
import type { IValidatedCommand as CoreValidatedCommand } from '@sharpee/world-model';
|
|
7
7
|
import type { ScopeLevel, SenseType } from '../scope/types';
|
|
8
8
|
/**
|
|
9
9
|
* Scope information for validated objects
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/validation/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,oCAAoC;IACpC,KAAK,EAAE,UAAU,CAAC;IAElB,2CAA2C;IAC3C,WAAW,EAAE,SAAS,EAAE,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,8CAA8C;IAC9C,SAAS,CAAC,EAAE;QACV,mCAAmC;QACnC,YAAY,CAAC,EAAE,SAAS,CAAC;QAEzB,qCAAqC;QACrC,cAAc,CAAC,EAAE,SAAS,CAAC;QAE3B,0CAA0C;QAC1C,UAAU,CAAC,EAAE,SAAS,CAAC;KACxB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,kBAAkB,GAClB,oBAAoB,GACpB,sBAAsB,GACtB,oBAAoB,GACpB,uBAAuB,GACvB,aAAa,GACb,sBAAsB,GACtB,qBAAqB,GACrB,WAAW,GACX,kBAAkB,CAAC"}
|
|
@@ -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/vocabulary/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standard-english.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"standard-english.d.ts","sourceRoot":"","sources":["../../../../../../../repos/sharpee/packages/stdlib/src/vocabulary/standard-english.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EAElB,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,cAAc,EAkIzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,mBAAmB,EA6DnD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBAK/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,UAI9B,CAAC;AAEF;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAqBjD"}
|
package/actions/context.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read-only action context implementation
|
|
3
|
-
*
|
|
4
|
-
* Provides query methods for actions without allowing state mutations
|
|
5
|
-
*/
|
|
6
|
-
import { IFEntity, WorldModel, ICapabilityData, IValidatedCommand } from "../../world-model/index";
|
|
7
|
-
import { ActionContext, Action, ScopeCheckResult, ImplicitTakeResult } from './enhanced-types';
|
|
8
|
-
import { ISemanticEvent } from "../../core/index";
|
|
9
|
-
import { ScopeResolver, ScopeLevel } from '../scope/types';
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use createActionContext from enhanced-context.ts instead
|
|
12
|
-
* This class is kept for backward compatibility but will be removed in Phase 4
|
|
13
|
-
*/
|
|
14
|
-
export declare class ReadOnlyActionContext implements ActionContext {
|
|
15
|
-
readonly world: WorldModel;
|
|
16
|
-
readonly player: IFEntity;
|
|
17
|
-
readonly currentLocation: IFEntity;
|
|
18
|
-
readonly command: IValidatedCommand;
|
|
19
|
-
readonly action: Action;
|
|
20
|
-
readonly scopeResolver: ScopeResolver;
|
|
21
|
-
sharedData: Record<string, any>;
|
|
22
|
-
constructor(world: WorldModel, player: IFEntity, currentLocation: IFEntity, command: IValidatedCommand, action?: Action, scopeResolver?: ScopeResolver);
|
|
23
|
-
/**
|
|
24
|
-
* Check if an entity is visible to the player
|
|
25
|
-
*/
|
|
26
|
-
canSee(entity: IFEntity): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Check if an entity is physically reachable by the player
|
|
29
|
-
*
|
|
30
|
-
* An entity is reachable if:
|
|
31
|
-
* 1. It's in the same location as the player
|
|
32
|
-
* 2. It's held by the player
|
|
33
|
-
* 3. It's in an open container in the same location
|
|
34
|
-
* 4. It's on a supporter in the same location
|
|
35
|
-
*/
|
|
36
|
-
canReach(entity: IFEntity): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Check if an entity can be taken by the player
|
|
39
|
-
*
|
|
40
|
-
* An entity can be taken if:
|
|
41
|
-
* 1. It's visible
|
|
42
|
-
* 2. It's reachable
|
|
43
|
-
* 3. It's not a room
|
|
44
|
-
* 4. It's not scenery (fixed in place)
|
|
45
|
-
* 5. It's not already held by the player
|
|
46
|
-
*/
|
|
47
|
-
canTake(entity: IFEntity): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Check if an entity is in scope for the player
|
|
50
|
-
*/
|
|
51
|
-
isInScope(entity: IFEntity): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Get all entities visible to the player
|
|
54
|
-
*/
|
|
55
|
-
getVisible(): IFEntity[];
|
|
56
|
-
/**
|
|
57
|
-
* Get all entities in scope for the player
|
|
58
|
-
*/
|
|
59
|
-
getInScope(): IFEntity[];
|
|
60
|
-
/**
|
|
61
|
-
* Get capability data (convenience method)
|
|
62
|
-
*/
|
|
63
|
-
getCapability(name: string): ICapabilityData | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Event creation method (required by ActionContext interface)
|
|
66
|
-
* @deprecated This implementation throws an error - use createActionContext instead
|
|
67
|
-
*/
|
|
68
|
-
event(type: string, data: any): ISemanticEvent;
|
|
69
|
-
/**
|
|
70
|
-
* Get the scope level for an entity.
|
|
71
|
-
* @deprecated This implementation returns basic scope levels - use createActionContext instead
|
|
72
|
-
*/
|
|
73
|
-
getEntityScope(entity: IFEntity): ScopeLevel;
|
|
74
|
-
/**
|
|
75
|
-
* Get the scope level for an entity in a command slot.
|
|
76
|
-
* @deprecated This implementation returns basic scope levels - use createActionContext instead
|
|
77
|
-
*/
|
|
78
|
-
getSlotScope(slot: string): ScopeLevel;
|
|
79
|
-
/**
|
|
80
|
-
* Check if an entity meets a required scope level.
|
|
81
|
-
* @deprecated This implementation is basic - use createActionContext instead
|
|
82
|
-
*/
|
|
83
|
-
requireScope(entity: IFEntity, required: ScopeLevel): ScopeCheckResult;
|
|
84
|
-
/**
|
|
85
|
-
* Check if a command slot entity meets a required scope level.
|
|
86
|
-
* @deprecated This implementation is basic - use createActionContext instead
|
|
87
|
-
*/
|
|
88
|
-
requireSlotScope(slot: string, required: ScopeLevel): ScopeCheckResult;
|
|
89
|
-
/**
|
|
90
|
-
* Check if an entity is carried, attempting implicit take if needed.
|
|
91
|
-
* @deprecated This implementation throws an error - use createActionContext instead
|
|
92
|
-
*/
|
|
93
|
-
requireCarriedOrImplicitTake(_entity: IFEntity): ImplicitTakeResult;
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=context.d.ts.map
|
package/actions/context.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../repos/sharpee/packages/stdlib/src/actions/context.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,U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