Commit Graph

10423 Commits

Author SHA1 Message Date
c1acdb66aa Merge pull request #3917 from blongden/feature/configurable-restart-messages
Add configurable server lifecycle broadcast messages
2026-06-19 17:09:18 +02:00
e1d769b13a Merge pull request #3942 from jaborsh/pr-3941
Add AMP_CONNECT_TIMEOUT for portal probe
2026-06-19 17:01:07 +02:00
17e3b050d1 Merge pull request #3933 from evennia/dependabot/uv/urllib3-2.7.0
Build(deps): Bump urllib3 from 2.6.3 to 2.7.0
2026-06-19 16:54:58 +02:00
dfe7b1f13b Merge pull request #3945 from evennia/dependabot/uv/tornado-6.5.7
Build(deps): Bump tornado from 6.5.5 to 6.5.7
2026-06-19 16:54:08 +02:00
7c958cce3c Merge pull request #3935 from evennia/dependabot/uv/idna-3.15
Build(deps): Bump idna from 3.11 to 3.15
2026-06-19 16:53:56 +02:00
29fdf6586f Merge pull request #3931 from evennia/dependabot/uv/gitpython-3.1.50
Build(deps): Bump gitpython from 3.1.46 to 3.1.50
2026-06-19 16:53:44 +02:00
8abd251747 Merge pull request #3930 from evennia/dependabot/uv/django-6.0.5
Build(deps): Bump django from 6.0.4 to 6.0.5
2026-06-19 16:53:38 +02:00
eac5fc19da Merge pull request #3928 from evennia/dependabot/uv/mistune-3.2.1
Build(deps): Bump mistune from 3.2.0 to 3.2.1
2026-06-19 16:53:30 +02:00
8180e417d3 Merge pull request #3926 from evennia/dependabot/uv/jupyter-server-2.18.0
Build(deps): Bump jupyter-server from 2.17.0 to 2.18.0
2026-06-19 16:53:24 +02:00
701aac5319 Merge pull request #3924 from evennia/dependabot/uv/jupyterlab-4.5.7
Build(deps): Bump jupyterlab from 4.5.6 to 4.5.7
2026-06-19 16:53:19 +02:00
8bf78c591f Merge pull request #3923 from evennia/dependabot/uv/notebook-7.5.6
Build(deps): Bump notebook from 7.5.5 to 7.5.6
2026-06-19 16:52:28 +02:00
b55e8a5123 Merge pull request #3940 from Problematic/taghandler-type-narrowing
Add @overload signatures to TagHandler.get() for type narrowing
2026-06-19 16:43:48 +02:00
4e72be5964 Merge pull request #3939 from Problematic/feature/generic-attribute-property
Make AttributeProperty and NAttributeProperty generic for type inference
2026-06-19 16:36:45 +02:00
96face6603 Merge pull request #3938 from Problematic/fix-webclient-notifications-text-ref
Fix ReferenceError in notifications plugin when window unfocused
2026-06-19 16:32:43 +02:00
f2a1a97532 Merge pull request #3936 from Problematic/worktree-typing+bool-return-hooks
Add -> bool return annotations to override-intended hook methods
2026-06-19 16:29:24 +02:00
a74b480d81 Merge pull request #3937 from dicnunz/nic/fix-portal-server-doc-typos
Fix portal and server docs typos
2026-06-19 16:13:26 +02:00
5f0fbec92d Merge pull request #3925 from pikammmmm/fix/typo-containining
Fix `containining` -> `containing` typo in Settings-Default.md
2026-06-19 16:12:34 +02:00
ef29681d1f Build(deps): Bump tornado from 6.5.5 to 6.5.7
Bumps [tornado](https://github.com/tornadoweb/tornado) from 6.5.5 to 6.5.7.
- [Changelog](https://github.com/tornadoweb/tornado/blob/master/docs/releases.rst)
- [Commits](https://github.com/tornadoweb/tornado/compare/v6.5.5...v6.5.7)

---
updated-dependencies:
- dependency-name: tornado
  dependency-version: 6.5.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-17 18:35:44 +00:00
3b80a37e60 Add AMP_CONNECT_TIMEOUT for portal probe 2026-06-01 09:55:08 -07:00
0049ad882f Add @overload signatures to TagHandler.get() for type narrowing
Type checkers can now infer the return type based on return_list
and return_tagobj arguments, eliminating the need for manual
type annotations at call sites.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 15:14:36 -06:00
b61d892235 Make AttributeProperty and NAttributeProperty generic for type inference
AttributeProperty is now Generic[T], with overloaded __init__, __get__,
and __set__ signatures so type checkers can infer the value type from the
default argument. NAttributeProperty inherits the same generic behavior.

This is a purely additive typing change — zero runtime behavior change.

Usage:

    class Character(DefaultCharacter):
        name = AttributeProperty(default="")       # inferred str
        count = AttributeProperty(default=0)        # inferred int
        tags = AttributeProperty(default=list)      # callable default -> inferred list

    obj.name.upper()      # type checker knows this is str
    obj.count + 1         # type checker knows this is int
    greet(obj.name)       # passes to fn(name: str) without complaint

The existing manual annotation workaround (my_attr: str = AttributeProperty(...))
was already a type error before this change and is now unnecessary. Users should
drop the annotation and let the descriptor infer the type, or annotate with the
descriptor type if they prefer being explicit:

    name = AttributeProperty(default="")                          # preferred
    name: AttributeProperty[str] = AttributeProperty(default="")  # also valid
    name: str = AttributeProperty(default="")                     # type error (was already broken)

When no default is provided, AttributeProperty() types as AttributeProperty[Any]
for backwards compatibility.

The at_get/at_set hook signatures are unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 13:14:33 -06:00
4b11a50dbb Fix ReferenceError in notifications plugin when window unfocused
The desktop notifications plugin's onText handler takes (args, kwargs)
but the requestPermission callback references a bare `text` identifier
that isn't defined anywhere in scope, throwing:

    Uncaught ReferenceError: text is not defined
        at notifications.js:43

This fires the first time a text message arrives while the webclient
window is unfocused, but only for users who have notification_popup
enabled and have granted notification permission — which is likely why
it's gone unnoticed since the file was last touched in 2021.

Read the message body from args[0] to match the convention every other
text-handling plugin uses (default_out.js, text2html.js, html.js,
goldenlayout.js).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 19:14:55 -06:00
nic
e2c2962c8c Fix portal and server docs typos 2026-05-20 14:23:17 -04:00
a74a492c0e Add -> bool return annotations to override-intended hook methods
Fourteen hook methods on DefaultObject, DefaultScript, ScriptBase,
DefaultChannel, DefaultAccount, and ServerSession returned a bare
`True` literal, causing type checkers to infer Literal[True] rather
than bool. Userland subclasses that return False to abort behavior
(the documented contract) would be flagged as incompatible overrides.
Adds explicit `-> bool` annotations; no runtime behavior changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-20 11:42:37 -06:00
bf549ff2ff Build(deps): Bump idna from 3.11 to 3.15
Bumps [idna](https://github.com/kjd/idna) from 3.11 to 3.15.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.md)
- [Commits](https://github.com/kjd/idna/compare/v3.11...v3.15)

---
updated-dependencies:
- dependency-name: idna
  dependency-version: '3.15'
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-19 23:12:22 +00:00
caf7687fde Build(deps): Bump urllib3 from 2.6.3 to 2.7.0
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.3 to 2.7.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.6.3...2.7.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.7.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-11 18:06:25 +00:00
b257aa0a60 Build(deps): Bump gitpython from 3.1.46 to 3.1.50
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.46 to 3.1.50.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.46...3.1.50)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-version: 3.1.50
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-09 06:42:05 +00:00
21ff4c6187 Build(deps): Bump django from 6.0.4 to 6.0.5
Bumps [django](https://github.com/django/django) from 6.0.4 to 6.0.5.
- [Commits](https://github.com/django/django/compare/6.0.4...6.0.5)

---
updated-dependencies:
- dependency-name: django
  dependency-version: 6.0.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-08 22:25:37 +00:00
e5440ed0e1 Build(deps): Bump mistune from 3.2.0 to 3.2.1
Bumps [mistune](https://github.com/lepture/mistune) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/lepture/mistune/releases)
- [Changelog](https://github.com/lepture/mistune/blob/main/docs/changes.rst)
- [Commits](https://github.com/lepture/mistune/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: mistune
  dependency-version: 3.2.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-08 07:16:32 +00:00
13ac1c72c2 Build(deps): Bump jupyter-server from 2.17.0 to 2.18.0
Bumps [jupyter-server](https://github.com/jupyter-server/jupyter_server) from 2.17.0 to 2.18.0.
- [Release notes](https://github.com/jupyter-server/jupyter_server/releases)
- [Changelog](https://github.com/jupyter-server/jupyter_server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jupyter-server/jupyter_server/compare/v2.17.0...v2.18.0)

---
updated-dependencies:
- dependency-name: jupyter-server
  dependency-version: 2.18.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-06 09:44:42 +00:00
9b4de423cb Fix containining -> containing typo in Settings-Default.md 2026-05-01 22:25:59 +02:00
1a2dc60441 Build(deps): Bump jupyterlab from 4.5.6 to 4.5.7
Bumps [jupyterlab](https://github.com/jupyterlab/jupyterlab) from 4.5.6 to 4.5.7.
- [Release notes](https://github.com/jupyterlab/jupyterlab/releases)
- [Changelog](https://github.com/jupyterlab/jupyterlab/blob/main/RELEASE.md)
- [Commits](https://github.com/jupyterlab/jupyterlab/compare/@jupyterlab/lsp@4.5.6...@jupyterlab/lsp@4.5.7)

---
updated-dependencies:
- dependency-name: jupyterlab
  dependency-version: 4.5.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-30 18:52:48 +00:00
d0c33954b1 Build(deps): Bump notebook from 7.5.5 to 7.5.6
Bumps [notebook](https://github.com/jupyter/notebook) from 7.5.5 to 7.5.6.
- [Release notes](https://github.com/jupyter/notebook/releases)
- [Changelog](https://github.com/jupyter/notebook/blob/@jupyter-notebook/tree@7.5.6/CHANGELOG.md)
- [Commits](https://github.com/jupyter/notebook/compare/@jupyter-notebook/tree@7.5.5...@jupyter-notebook/tree@7.5.6)

---
updated-dependencies:
- dependency-name: notebook
  dependency-version: 7.5.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-30 18:05:11 +00:00
25208845ea Add configurable server lifecycle broadcast messages
Introduces SERVER_RELOAD_INITIATE_MSG, SERVER_RESET_MSG, and
SERVER_RESTART_MSG settings so games can override the hardcoded
restart/reload strings without patching core. Defaults preserve
the existing messages exactly.
2026-04-18 18:45:08 +01:00
50cda824a8 Ran black on sources 2026-04-18 00:39:51 +02:00
44c01506c7 Resolve merge conflict 2026-04-18 00:39:15 +02:00
dd20392eef Update changelog, ran black on sources 2026-04-18 00:37:26 +02:00
9d39d49c4c Merge pull request #3914 from michaelfaith84/terminal-autoresize-restored
NAWS updates were being checked before super was called.
2026-04-18 00:32:09 +02:00
24d5d94c50 Fixed cleanup issue with test. 2026-04-17 08:51:53 -07:00
5037449866 Added NAWS update test to TelnetTest and addressed bugs in test. 2026-04-17 08:47:33 -07:00
c491a73d12 Merge branch 'evennia:main' into terminal-autoresize-restored 2026-04-16 16:43:21 -07:00
95363fd622 NAWS updates were being checked before super was called. Also, autoresize validation in the input funcs was broken. 2026-04-16 15:58:03 -07:00
877976d60c Update CHANGELOG 2026-04-15 23:20:28 +02:00
8aab204e34 Merge pull request #3913 from blongden/fix/tag-search-category-only
Fix tag/search failing when searching by category only
2026-04-15 23:18:54 +02:00
3f835e7869 Some more doc strings for #3911 2026-04-15 23:07:05 +02:00
b91de84c52 Merge branch 'pr/3911' into fix/cmdset-merge-cache-performance 2026-04-15 22:55:14 +02:00
6003a38662 Update ev agent skill 2026-04-15 22:49:33 +02:00
6055a8a3e6 Fix tag/search failing when searching by category only
The tag/search command failed to find objects when searching by
category alone (e.g. `tag/search :cityhall`) due to two issues:

1. Leading whitespace from command parsing was not stripped, causing
   the tag key to contain a space
2. An empty tag key was passed as "" instead of None, which searched
   for tags with an empty string key rather than matching all keys
   in the given category

Strip self.args and convert empty tag to None so category-only
searches work correctly. Added tests for both cases.
2026-04-13 10:27:54 +01:00
ebde306492 Fix CmdSet fingerprint to include object bindings and ensure cache invalidation
The CmdSet fingerprint now includes command-to-object bindings and the cmdset's own object owner. This prevents the merge cache from incorrectly returning a cached result when identical-looking cmdsets are merged from different source objects.

Also ensures the cached fingerprint is invalidated during command deduplication and switches to using frozensets in the fingerprint for more robust comparisons.
2026-04-11 20:11:47 -04:00
657dce3609 Update documentation 2026-04-11 18:17:17 +02:00