ErisPulse 2.11.1.dev1__tar.gz → 2.12.0.dev0__tar.gz

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.
Files changed (156) hide show
  1. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/.gitignore +249 -244
  2. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/PKG-INFO +2 -2
  3. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/pyproject.toml +2 -2
  4. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/cli.py +24 -6
  5. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/create.py +68 -6
  6. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/doctor.py +65 -0
  7. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/run.py +61 -168
  8. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/runtime.py +53 -1
  9. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/types.py +2 -2
  10. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/constants.py +7 -0
  11. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/en.py +14 -1
  12. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/ja.py +14 -1
  13. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/ru.py +14 -1
  14. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/zh_cn.py +14 -1
  15. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/zh_tw.py +14 -1
  16. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/display.py +28 -0
  17. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/interactive.py +16 -5
  18. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/package_manager.py +21 -0
  19. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/scaffold_text.py +21 -15
  20. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/__init__.py +2 -0
  21. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/adapter.py +128 -30
  22. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/api_dsl.py +109 -2
  23. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/client.py +3 -3
  24. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/config_schema.py +5 -3
  25. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/errors.py +18 -0
  26. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/module.py +23 -5
  27. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/sql_base.py +64 -11
  28. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/storage.py +39 -3
  29. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/base.py +60 -0
  30. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/wrapper.py +3 -2
  31. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/__init__.py +2 -0
  32. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/adapter.py +163 -4
  33. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/client.py +23 -3
  34. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/constants.py +84 -0
  35. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/en.py +43 -5
  36. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/ja.py +43 -5
  37. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/ru.py +43 -5
  38. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/zh_cn.py +43 -5
  39. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/zh_tw.py +43 -5
  40. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/master.py +29 -15
  41. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/module.py +129 -5
  42. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/ownership.py +227 -10
  43. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/router.py +52 -1
  44. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/shadow.py +245 -2
  45. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/storage/sqlite.py +9 -2
  46. erispulse-2.12.0.dev0/src/ErisPulse/__main__.py +44 -0
  47. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/adapter.py +63 -10
  48. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/module.py +90 -8
  49. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/__init__.py +19 -0
  50. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/context.py +81 -1
  51. erispulse-2.12.0.dev0/src/ErisPulse/runtime/dev_watch.py +291 -0
  52. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/example_config.py +2 -1
  53. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/frame_config.py +16 -0
  54. erispulse-2.12.0.dev0/src/ErisPulse/runtime/metrics.py +84 -0
  55. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/process_state.py +40 -1
  56. erispulse-2.12.0.dev0/src/ErisPulse/runtime/reload_target.py +228 -0
  57. erispulse-2.12.0.dev0/src/ErisPulse/runtime/resource_track.py +195 -0
  58. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/tasks.py +256 -62
  59. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/sdk.py +74 -1
  60. erispulse-2.11.1.dev1/src/ErisPulse/__main__.py +0 -24
  61. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/LICENSE +0 -0
  62. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/README.pypi.md +0 -0
  63. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/__init__.py +0 -0
  64. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/base.py +0 -0
  65. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/__init__.py +0 -0
  66. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/config.py +0 -0
  67. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/init.py +0 -0
  68. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/install.py +0 -0
  69. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/language.py +0 -0
  70. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/list.py +0 -0
  71. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/list_remote.py +0 -0
  72. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/self_update.py +0 -0
  73. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/uninstall.py +0 -0
  74. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/upgrade.py +0 -0
  75. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/version.py +0 -0
  76. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/console.py +0 -0
  77. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/hints.py +0 -0
  78. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/__init__.py +0 -0
  79. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/__init__.py +0 -0
  80. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/registry.py +0 -0
  81. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/__init__.py +0 -0
  82. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/config_wizard.py +0 -0
  83. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/runtime_state.py +0 -0
  84. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/adapter_patterns.py +0 -0
  85. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/converter.py +0 -0
  86. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/i18n_schema.py +0 -0
  87. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/kv_builder.py +0 -0
  88. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/manager.py +0 -0
  89. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/model.py +0 -0
  90. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/router.py +0 -0
  91. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/send_builder.py +0 -0
  92. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/send_rules.py +0 -0
  93. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/websocket.py +0 -0
  94. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/__init__.py +0 -0
  95. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/command.py +0 -0
  96. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/command_args.py +0 -0
  97. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/command_flow.py +0 -0
  98. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/conversation.py +0 -0
  99. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/governance.py +0 -0
  100. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/interaction.py +0 -0
  101. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/message.py +0 -0
  102. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/message_builder.py +0 -0
  103. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/meta.py +0 -0
  104. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/notice.py +0 -0
  105. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/overrides.py +0 -0
  106. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/request.py +0 -0
  107. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/session_type.py +0 -0
  108. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/throttle.py +0 -0
  109. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/trace.py +0 -0
  110. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/__init__.py +0 -0
  111. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/error.css +0 -0
  112. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/error.html +0 -0
  113. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/root.css +0 -0
  114. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/root.html +0 -0
  115. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/config.py +0 -0
  116. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/connections.py +0 -0
  117. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/di.py +0 -0
  118. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/__init__.py +0 -0
  119. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/constants.py +0 -0
  120. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/__init__.py +0 -0
  121. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/lifecycle.py +0 -0
  122. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/logger.py +0 -0
  123. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/scope.py +0 -0
  124. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/storage/__init__.py +0 -0
  125. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/storage/mysql.py +0 -0
  126. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/storage/postgres.py +0 -0
  127. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/text_match.py +0 -0
  128. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/transcript.py +0 -0
  129. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/__init__.py +0 -0
  130. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/__init__.py +0 -0
  131. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/adapter.py +0 -0
  132. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/bases/__init__.py +0 -0
  133. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/bases/finder.py +0 -0
  134. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/module.py +0 -0
  135. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/__init__.py +0 -0
  136. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/_reload_utils.py +0 -0
  137. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/bases/__init__.py +0 -0
  138. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/bases/loader.py +0 -0
  139. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/plugin_folder.py +0 -0
  140. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/strategy.py +0 -0
  141. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/strict.py +0 -0
  142. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/py.typed +0 -0
  143. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/config_schema.py +0 -0
  144. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/diagnostics.py +0 -0
  145. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/exceptions.py +0 -0
  146. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/file_watcher.py +0 -0
  147. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/hints.py +0 -0
  148. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/kernel.py +0 -0
  149. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/memory.py +0 -0
  150. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/owner_cleanup.py +0 -0
  151. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/plugin_reload.py +0 -0
  152. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/proactive_gc.py +0 -0
  153. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/reload_ops.py +0 -0
  154. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/sdk_initializer.py +0 -0
  155. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/troubleshoot.py +0 -0
  156. {erispulse-2.11.1.dev1 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/version.py +0 -0
@@ -1,245 +1,250 @@
1
- # dev gnore ignore file for Python projects
2
- devs/videos
3
- main.py
4
- plugins/
5
- venvs
6
- config.full.example
7
- config.toml
8
- snapshots/
9
- logs/
10
- config.db*
11
- .website
12
-
13
- # 敏感配置和数据文件
14
- config/config.toml
15
- config/config.db
16
- config/config.db-journal
17
- config/config.db-wal
18
- config/config.db-shm
19
- .erispulse_config.lock
20
-
21
- # site-packages
22
- config/.packages
23
-
24
- # Byte-compiled / optimized / DLL files
25
- __pycache__/
26
- *.py[cod]
27
- *$py.class
28
-
29
- # C extensions
30
- *.so
31
-
32
- # Distribution / packaging
33
- .Python
34
- .vscode/
35
- build/
36
- develop-eggs/
37
- dist/
38
- downloads/
39
- eggs/
40
- .eggs/
41
- lib/
42
- lib64/
43
- parts/
44
- sdist/
45
- var/
46
- wheels/
47
- share/python-wheels/
48
- *.egg-info/
49
- .installed.cfg
50
- *.egg
51
- MANIFEST
52
-
53
- # PyInstaller
54
- # Usually these files are written by a python script from a template
55
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
56
- *.manifest
57
- *.spec
58
-
59
- # Installer logs
60
- pip-log.txt
61
- pip-delete-this-directory.txt
62
-
63
- # Unit test / coverage reports
64
- htmlcov/
65
- .tox/
66
- .nox/
67
- .coverage
68
- .coverage.*
69
- .cache
70
- nosetests.xml
71
- coverage.xml
72
- *.cover
73
- *.py,cover
74
- .hypothesis/
75
- .pytest_cache/
76
- cover/
77
-
78
- # Translations
79
- *.mo
80
- *.pot
81
-
82
- # Django stuff:
83
- *.log
84
- local_settings.py
85
- db.sqlite3
86
- db.sqlite3-journal
87
-
88
- # Flask stuff:
89
- instance/
90
- .webassets-cache
91
-
92
- # Scrapy stuff:
93
- .scrapy
94
-
95
- # Sphinx documentation
96
- docs/_build/
97
-
98
- # PyBuilder
99
- .pybuilder/
100
- target/
101
-
102
- # Jupyter Notebook
103
- .ipynb_checkpoints
104
-
105
- # IPython
106
- profile_default/
107
- ipython_config.py
108
-
109
- # pyenv
110
- # For a library or package, you might want to ignore these files since the code is
111
- # intended to run in multiple environments; otherwise, check them in:
112
- # .python-version
113
-
114
- # pipenv
115
- # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
116
- # However, in case of collaboration, if having platform-specific dependencies or dependencies
117
- # having no cross-platform support, pipenv may install dependencies that don't work, or not
118
- # install all needed dependencies.
119
- #Pipfile.lock
120
-
121
- # UV
122
- # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
123
- # This is especially recommended for binary packages to ensure reproducibility, and is more
124
- # commonly ignored for libraries.
125
- uv.lock
126
-
127
- # poetry
128
- # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
129
- # This is especially recommended for binary packages to ensure reproducibility, and is more
130
- # commonly ignored for libraries.
131
- # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
132
- #poetry.lock
133
-
134
- # pdm
135
- # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
136
- #pdm.lock
137
- # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
138
- # in version control.
139
- # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
140
- .pdm.toml
141
- .pdm-python
142
- .pdm-build/
143
-
144
- # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
145
- __pypackages__/
146
-
147
- # Celery stuff
148
- celerybeat-schedule
149
- celerybeat.pid
150
-
151
- # SageMath parsed files
152
- *.sage.py
153
-
154
- # Environments
155
- .env
156
- .venv
157
- env/
158
- venv/
159
- ENV/
160
- env.bak/
161
- venv.bak/
162
-
163
- # Spyder project settings
164
- .spyderproject
165
- .spyproject
166
-
167
- # Rope project settings
168
- .ropeproject
169
-
170
- # mkdocs documentation
171
- /site
172
-
173
- # mypy
174
- .mypy_cache/
175
- .dmypy.json
176
- dmypy.json
177
-
178
- # Pyre type checker
179
- .pyre/
180
-
181
- # pytype static type analyzer
182
- .pytype/
183
-
184
- # Cython debug symbols
185
- cython_debug/
186
-
187
- # PyCharm
188
- # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
189
- # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
190
- # and can be added to the global gitignore or merged into this file. For a more nuclear
191
- # option (not recommended) you can uncomment the following to ignore the entire idea folder.
192
- #.idea/
193
-
194
- # Visual Studio Code
195
- # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
196
- # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
197
- # and can be added to the global gitignore or merged into this file. However, if you prefer,
198
- # you could uncomment the following to ignore the enitre vscode folder
199
- # .vscode/
200
-
201
- # Ruff stuff:
202
- .ruff_cache/
203
-
204
- # PyPI configuration file
205
- .pypirc
206
-
207
- # Cursor
208
- # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
209
- # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
210
- # refer to https://docs.cursor.com/context/ignore-files
211
- .cursorignore
212
- .cursorindexingignore
213
-
214
- # osx
215
- .DS_Store
216
-
217
- # pyvenv
218
- bin
219
- include
220
- lib
221
- pyvenv.cfg
222
-
223
- # i18n 翻译文档(自动生成)
224
- # 已提交到版本控制以支持 CI/CD 和状态追踪
225
- # docs/zh-TW/
226
- # docs/en/
227
- # docs/ja/
228
- # docs/ko/
229
- # docs/fr/
230
- # docs/de/
231
- # docs/es/
232
- # docs/it/
233
- # docs/ru/
234
- # docs/ar/
235
-
236
- # 翻译缓存(已提交到版本控制)
237
-
238
- # 但保留源中文文档
239
- !docs/zh-CN/
240
-
241
- .zcode/
242
-
243
- .github/assets/ErisPulseFilm1.mp4
244
- .github/assets/score1.wav
1
+ # dev gnore ignore file for Python projects
2
+ devs/videos
3
+ main.py
4
+ plugins/
5
+ venvs
6
+ config.full.example
7
+ config.toml
8
+ snapshots/
9
+ logs/
10
+ config.db*
11
+ .website
12
+
13
+ # 敏感配置和数据文件
14
+ config/config.toml
15
+ config/config.db
16
+ config/config.db-journal
17
+ config/config.db-wal
18
+ config/config.db-shm
19
+ .erispulse_config.lock
20
+
21
+ # site-packages
22
+ config/.packages
23
+
24
+ # Byte-compiled / optimized / DLL files
25
+ __pycache__/
26
+ *.py[cod]
27
+ *$py.class
28
+
29
+ # C extensions
30
+ *.so
31
+
32
+ # Distribution / packaging
33
+ .Python
34
+ .vscode/
35
+ build/
36
+ develop-eggs/
37
+ dist/
38
+ downloads/
39
+ eggs/
40
+ .eggs/
41
+ lib/
42
+ lib64/
43
+ parts/
44
+ sdist/
45
+ var/
46
+ wheels/
47
+ share/python-wheels/
48
+ *.egg-info/
49
+ .installed.cfg
50
+ *.egg
51
+ MANIFEST
52
+
53
+ # PyInstaller
54
+ # Usually these files are written by a python script from a template
55
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
56
+ *.manifest
57
+ *.spec
58
+
59
+ # Installer logs
60
+ pip-log.txt
61
+ pip-delete-this-directory.txt
62
+
63
+ # Unit test / coverage reports
64
+ htmlcov/
65
+ .tox/
66
+ .nox/
67
+ .coverage
68
+ .coverage.*
69
+ .cache
70
+ nosetests.xml
71
+ coverage.xml
72
+ *.cover
73
+ *.py,cover
74
+ .hypothesis/
75
+ .pytest_cache/
76
+ cover/
77
+
78
+ # Translations
79
+ *.mo
80
+ *.pot
81
+
82
+ # Django stuff:
83
+ *.log
84
+ local_settings.py
85
+ db.sqlite3
86
+ db.sqlite3-journal
87
+
88
+ # Flask stuff:
89
+ instance/
90
+ .webassets-cache
91
+
92
+ # Scrapy stuff:
93
+ .scrapy
94
+
95
+ # Sphinx documentation
96
+ docs/_build/
97
+
98
+ # PyBuilder
99
+ .pybuilder/
100
+ target/
101
+
102
+ # Jupyter Notebook
103
+ .ipynb_checkpoints
104
+
105
+ # IPython
106
+ profile_default/
107
+ ipython_config.py
108
+
109
+ # pyenv
110
+ # For a library or package, you might want to ignore these files since the code is
111
+ # intended to run in multiple environments; otherwise, check them in:
112
+ # .python-version
113
+
114
+ # pipenv
115
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
116
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
117
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
118
+ # install all needed dependencies.
119
+ #Pipfile.lock
120
+
121
+ # UV
122
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
123
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
124
+ # commonly ignored for libraries.
125
+ uv.lock
126
+
127
+ # poetry
128
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
129
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
130
+ # commonly ignored for libraries.
131
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
132
+ #poetry.lock
133
+
134
+ # pdm
135
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
136
+ #pdm.lock
137
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
138
+ # in version control.
139
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
140
+ .pdm.toml
141
+ .pdm-python
142
+ .pdm-build/
143
+
144
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
145
+ __pypackages__/
146
+
147
+ # Celery stuff
148
+ celerybeat-schedule
149
+ celerybeat.pid
150
+
151
+ # SageMath parsed files
152
+ *.sage.py
153
+
154
+ # Environments
155
+ .env
156
+ .venv
157
+ env/
158
+ venv/
159
+ ENV/
160
+ env.bak/
161
+ venv.bak/
162
+
163
+ # Spyder project settings
164
+ .spyderproject
165
+ .spyproject
166
+
167
+ # Rope project settings
168
+ .ropeproject
169
+
170
+ # mkdocs documentation
171
+ /site
172
+
173
+ # mypy
174
+ .mypy_cache/
175
+ .dmypy.json
176
+ dmypy.json
177
+
178
+ # Pyre type checker
179
+ .pyre/
180
+
181
+ # pytype static type analyzer
182
+ .pytype/
183
+
184
+ # Cython debug symbols
185
+ cython_debug/
186
+
187
+ # PyCharm
188
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
189
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
190
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
191
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
192
+ #.idea/
193
+
194
+ # Visual Studio Code
195
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
196
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
197
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
198
+ # you could uncomment the following to ignore the enitre vscode folder
199
+ # .vscode/
200
+
201
+ # Ruff stuff:
202
+ .ruff_cache/
203
+
204
+ # PyPI configuration file
205
+ .pypirc
206
+
207
+ # Cursor
208
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
209
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
210
+ # refer to https://docs.cursor.com/context/ignore-files
211
+ .cursorignore
212
+ .cursorindexingignore
213
+
214
+ # osx
215
+ .DS_Store
216
+
217
+ # pyvenv
218
+ bin
219
+ include
220
+ lib
221
+ pyvenv.cfg
222
+
223
+ # i18n 翻译文档(自动生成)
224
+ # 已提交到版本控制以支持 CI/CD 和状态追踪
225
+ # docs/zh-TW/
226
+ # docs/en/
227
+ # docs/ja/
228
+ # docs/ko/
229
+ # docs/fr/
230
+ # docs/de/
231
+ # docs/es/
232
+ # docs/it/
233
+ # docs/ru/
234
+ # docs/ar/
235
+
236
+ # 翻译缓存(已提交到版本控制)
237
+
238
+ # 但保留源中文文档
239
+ !docs/zh-CN/
240
+
241
+ # AI 物料与文档全集包(CI 生成,只发布到 docs-generated 分支,不入开发分支)
242
+ docs/*/ai-support/prompts/
243
+ docs/*/ai-support/skills/
244
+ docs/*/ai-support/skills*.zip
245
+
246
+ .zcode/
247
+
248
+ .github/assets/ErisPulseFilm1.mp4
249
+ .github/assets/score1.wav
245
250
  .github/assets/score2.wav
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: ErisPulse
3
- Version: 2.11.1-dev.1
3
+ Version: 2.12.0-dev.0
4
4
  Summary: Event-driven modular async bot framework — write once, deploy to any platform | 事件驱动的模块化异步机器人框架,一次编写,多平台部署
5
5
  Project-URL: Homepage, https://github.com/ErisPulse/ErisPulse
6
6
  Project-URL: Documentation, https://www.erisdev.com#docs
@@ -33,7 +33,7 @@ Requires-Dist: aiohttp>=3.9.0
33
33
  Requires-Dist: aiosqlite>=0.20.0
34
34
  Requires-Dist: fastapi>=0.116.1
35
35
  Requires-Dist: rich>=13.0.0
36
- Requires-Dist: tomlclass<0.4,>=0.3.2
36
+ Requires-Dist: tomlclass<0.5,>=0.4.0
37
37
  Requires-Dist: uvicorn<1.0,>=0.35.0
38
38
  Requires-Dist: websockets>=12.0
39
39
  Provides-Extra: mysql
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "ErisPulse"
7
- version = "2.11.1-dev.1"
7
+ version = "2.12.0-dev.0"
8
8
  description = "Event-driven modular async bot framework — write once, deploy to any platform | 事件驱动的模块化异步机器人框架,一次编写,多平台部署"
9
9
  readme = "README.pypi.md"
10
10
  requires-python = ">=3.10"
@@ -62,7 +62,7 @@ classifiers = [
62
62
 
63
63
  dependencies = [
64
64
  "rich>=13.0.0",
65
- "tomlclass>=0.3.2,<0.4",
65
+ "tomlclass>=0.4.0,<0.5",
66
66
 
67
67
  # network 相关
68
68
  "websockets>=12.0",
@@ -139,8 +139,13 @@ class CLI:
139
139
  )
140
140
 
141
141
  except ImportError as e:
142
+ # commands 包导入失败意味着所有命令都不可用——显著报错并给诊断线索,
143
+ # 而不是静默降级成"无命令可用的 CLI"(此前用户只会看到莫名空 help)
142
144
  console.print(
143
- f"[warning]{i18n.t('cli.discover.import_failed', error=e)}[/]"
145
+ f"[error]{i18n.t('cli.discover.import_failed', error=e)}[/]"
146
+ )
147
+ console.print(
148
+ f"[hint]{i18n.t('cli.discover.import_failed_hint')}[/]"
144
149
  )
145
150
 
146
151
  def _register_builtin_commands(self):
@@ -296,12 +301,25 @@ class CLI:
296
301
  # 仅规范命令名作为建议候选(不含短别名/缩写,避免扰民)
297
302
  canonical_names = self.registry.list_all()
298
303
 
299
- # 从 sys.argv 中找到第一个非选项参数(即命令名)
304
+ # 从 sys.argv 中找到第一个非选项参数(即命令名);
305
+ # 跳过带值的选项(如 --lang zh),避免把选项值误判成命令
306
+ options_with_value = {"--lang", "--language"}
300
307
  cmd = None
301
- for arg in sys.argv[1:]:
302
- if not arg.startswith("-"):
303
- cmd = arg
304
- break
308
+ argv = sys.argv[1:]
309
+ i = 0
310
+ while i < len(argv):
311
+ arg = argv[i]
312
+ if arg in options_with_value:
313
+ i += 2
314
+ continue
315
+ if arg.startswith("-"):
316
+ # -h/-help/--help 是帮助请求,交给 argparse,不当作命令做拼写检查
317
+ if arg in ("-h", "-help", "--help"):
318
+ return
319
+ i += 1
320
+ continue
321
+ cmd = arg
322
+ break
305
323
 
306
324
  if not cmd or cmd in all_valid:
307
325
  return