ErisPulse 2.11.2__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.
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/.gitignore +249 -244
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/PKG-INFO +2 -2
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/pyproject.toml +2 -2
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/create.py +68 -6
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/doctor.py +65 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/run.py +61 -168
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/runtime.py +53 -1
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/types.py +2 -2
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/constants.py +7 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/en.py +12 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/ja.py +12 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/ru.py +12 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/zh_cn.py +12 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/zh_tw.py +12 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/package_manager.py +21 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/scaffold_text.py +16 -10
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/__init__.py +2 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/adapter.py +128 -9
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/api_dsl.py +109 -2
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/client.py +2 -2
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/errors.py +18 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/sql_base.py +64 -11
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/storage.py +23 -3
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/wrapper.py +3 -2
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/__init__.py +2 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/adapter.py +136 -4
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/client.py +23 -3
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/constants.py +74 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/en.py +30 -4
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/ja.py +30 -4
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/ru.py +30 -4
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/zh_cn.py +30 -4
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/zh_tw.py +30 -4
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/module.py +96 -4
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/ownership.py +206 -5
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/router.py +52 -1
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/shadow.py +243 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/storage/sqlite.py +9 -2
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/adapter.py +63 -10
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/module.py +3 -4
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/__init__.py +7 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/context.py +23 -0
- erispulse-2.12.0.dev0/src/ErisPulse/runtime/dev_watch.py +291 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/example_config.py +2 -1
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/frame_config.py +16 -0
- erispulse-2.12.0.dev0/src/ErisPulse/runtime/metrics.py +84 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/process_state.py +40 -1
- erispulse-2.12.0.dev0/src/ErisPulse/runtime/reload_target.py +228 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/resource_track.py +23 -23
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/tasks.py +190 -61
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/sdk.py +74 -1
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/LICENSE +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/README.pypi.md +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/base.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/cli.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/config.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/init.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/install.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/language.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/list.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/list_remote.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/self_update.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/uninstall.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/upgrade.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/commands/version.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/console.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/hints.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/i18n/locales/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/registry.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/config_wizard.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/display.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/interactive.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/CLI/utils/runtime_state.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/adapter_patterns.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/config_schema.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/converter.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/i18n_schema.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/kv_builder.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/manager.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/model.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/module.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/router.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/send_builder.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/send_rules.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Bases/websocket.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/base.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/command.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/command_args.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/command_flow.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/conversation.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/governance.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/interaction.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/message.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/message_builder.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/meta.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/notice.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/overrides.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/request.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/session_type.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/throttle.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/Event/trace.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/error.css +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/error.html +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/root.css +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/assets/root.html +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/config.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/connections.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/di.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/constants.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/i18n/locales/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/lifecycle.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/logger.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/master.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/scope.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/storage/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/storage/mysql.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/storage/postgres.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/text_match.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/Core/transcript.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/__main__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/adapter.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/bases/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/bases/finder.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/finders/module.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/_reload_utils.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/bases/__init__.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/bases/loader.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/plugin_folder.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/strategy.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/loaders/strict.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/py.typed +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/config_schema.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/diagnostics.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/exceptions.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/file_watcher.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/hints.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/kernel.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/memory.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/owner_cleanup.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/plugin_reload.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/proactive_gc.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/reload_ops.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/sdk_initializer.py +0 -0
- {erispulse-2.11.2 → erispulse-2.12.0.dev0}/src/ErisPulse/runtime/troubleshoot.py +0 -0
- {erispulse-2.11.2 → 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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
65
|
+
"tomlclass>=0.4.0,<0.5",
|
|
66
66
|
|
|
67
67
|
# network 相关
|
|
68
68
|
"websockets>=12.0",
|
|
@@ -567,8 +567,8 @@ class {name}(BaseAdapter):
|
|
|
567
567
|
router.unregister_websocket("{entry_key}", "/ws")
|
|
568
568
|
self.logger.info("{text[adapter.log.shutdown]}")
|
|
569
569
|
|
|
570
|
-
async def call_api(self, endpoint: str, **params):
|
|
571
|
-
\"\"\"Call platform API\"\"\"
|
|
570
|
+
async def call_api(self, endpoint: str, account_id: str | None = None, **params):
|
|
571
|
+
\"\"\"Call platform API (account_id carries the framework account binding; single-account implementations may ignore it)\"\"\"
|
|
572
572
|
from ErisPulse import client
|
|
573
573
|
|
|
574
574
|
cfg = self.cfg
|
|
@@ -750,8 +750,8 @@ class {name}(PollingAdapter):
|
|
|
750
750
|
|
|
751
751
|
# Request / Api 内部类继承基类默认实现即可;如需平台特定逻辑可按需覆盖
|
|
752
752
|
|
|
753
|
-
async def call_api(self, endpoint: str, **params):
|
|
754
|
-
\"\"\"Call platform API\"\"\"
|
|
753
|
+
async def call_api(self, endpoint: str, account_id: str | None = None, **params):
|
|
754
|
+
\"\"\"Call platform API (account_id carries the framework account binding; single-account implementations may ignore it)\"\"\"
|
|
755
755
|
cfg = self.cfg
|
|
756
756
|
headers = {{"Authorization": "Bearer " + cfg.token}}
|
|
757
757
|
url = cfg.endpoint + endpoint
|
|
@@ -907,8 +907,8 @@ class {name}(WebhookAdapter):
|
|
|
907
907
|
|
|
908
908
|
# Request / Api 内部类继承基类默认实现即可;如需平台特定逻辑可按需覆盖
|
|
909
909
|
|
|
910
|
-
async def call_api(self, endpoint: str, **params):
|
|
911
|
-
\"\"\"Call platform API\"\"\"
|
|
910
|
+
async def call_api(self, endpoint: str, account_id: str | None = None, **params):
|
|
911
|
+
\"\"\"Call platform API (account_id carries the framework account binding; single-account implementations may ignore it)\"\"\"
|
|
912
912
|
cfg = self.cfg
|
|
913
913
|
headers = {{"Authorization": "Bearer " + cfg.token}}
|
|
914
914
|
url = cfg.endpoint + endpoint
|
|
@@ -1115,6 +1115,62 @@ def _copy_erispulse_logo(project_dir: Path) -> None:
|
|
|
1115
1115
|
shutil.copy2(logo_src, dest)
|
|
1116
1116
|
|
|
1117
1117
|
|
|
1118
|
+
_PROJECT_GITIGNORE = (
|
|
1119
|
+
"# Python\n"
|
|
1120
|
+
"__pycache__/\n"
|
|
1121
|
+
"*.py[cod]\n"
|
|
1122
|
+
"*$py.class\n"
|
|
1123
|
+
"build/\n"
|
|
1124
|
+
"dist/\n"
|
|
1125
|
+
"*.egg-info/\n"
|
|
1126
|
+
".eggs/\n"
|
|
1127
|
+
"\n"
|
|
1128
|
+
"# Virtual environments and local env files\n"
|
|
1129
|
+
".venv/\n"
|
|
1130
|
+
"venv/\n"
|
|
1131
|
+
"env/\n"
|
|
1132
|
+
".env\n"
|
|
1133
|
+
"\n"
|
|
1134
|
+
"# Tool caches\n"
|
|
1135
|
+
".pytest_cache/\n"
|
|
1136
|
+
".mypy_cache/\n"
|
|
1137
|
+
".ruff_cache/\n"
|
|
1138
|
+
".coverage\n"
|
|
1139
|
+
"coverage.xml\n"
|
|
1140
|
+
"htmlcov/\n"
|
|
1141
|
+
"\n"
|
|
1142
|
+
"# Library projects don't commit the lockfile (uv.lock is for local dev only)\n"
|
|
1143
|
+
"uv.lock\n"
|
|
1144
|
+
"\n"
|
|
1145
|
+
"# ErisPulse runtime data (config contains tokens, keep out of VCS)\n"
|
|
1146
|
+
"config/\n"
|
|
1147
|
+
"data/\n"
|
|
1148
|
+
"logs/\n"
|
|
1149
|
+
".erispulse/\n"
|
|
1150
|
+
"\n"
|
|
1151
|
+
"# Editor and system files\n"
|
|
1152
|
+
".idea/\n"
|
|
1153
|
+
".vscode/\n"
|
|
1154
|
+
"*.swp\n"
|
|
1155
|
+
".DS_Store\n"
|
|
1156
|
+
)
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
def _write_project_gitignore(project_dir: Path) -> None:
|
|
1160
|
+
"""
|
|
1161
|
+
为可发布项目写入 .gitignore(已存在则跳过)
|
|
1162
|
+
|
|
1163
|
+
排除运行时产物(config/data/logs)、lockfile 与缓存;
|
|
1164
|
+
config.example.toml 等模板文件不在排除范围。
|
|
1165
|
+
|
|
1166
|
+
:param project_dir: [Path] 项目根目录
|
|
1167
|
+
"""
|
|
1168
|
+
gitignore_file = project_dir / ".gitignore"
|
|
1169
|
+
if gitignore_file.exists():
|
|
1170
|
+
return
|
|
1171
|
+
gitignore_file.write_text(_PROJECT_GITIGNORE, encoding="utf-8")
|
|
1172
|
+
|
|
1173
|
+
|
|
1118
1174
|
def _scaffold_text(name: str) -> dict:
|
|
1119
1175
|
"""
|
|
1120
1176
|
构建当前语言的脚手架文案映射,并预填充 {name} 占位符
|
|
@@ -1401,6 +1457,7 @@ class CreateCommand(Command):
|
|
|
1401
1457
|
readme_tpl.format(**readme_kwargs),
|
|
1402
1458
|
encoding="utf-8",
|
|
1403
1459
|
)
|
|
1460
|
+
_write_project_gitignore(project_dir)
|
|
1404
1461
|
|
|
1405
1462
|
console.print()
|
|
1406
1463
|
console.print(
|
|
@@ -1412,6 +1469,7 @@ class CreateCommand(Command):
|
|
|
1412
1469
|
console.print(" ├── pyproject.toml")
|
|
1413
1470
|
console.print(" ├── LICENSE")
|
|
1414
1471
|
console.print(" ├── README.md")
|
|
1472
|
+
console.print(" ├── .gitignore")
|
|
1415
1473
|
console.print(f" └── {project_name}/ [dim]({plugin_path})[/]")
|
|
1416
1474
|
console.print()
|
|
1417
1475
|
console.print(Text(i18n.t("cli.create.next_steps"), style="bold"))
|
|
@@ -1495,6 +1553,7 @@ class CreateCommand(Command):
|
|
|
1495
1553
|
_README_MODULE.format(name=name, description=description),
|
|
1496
1554
|
encoding="utf-8",
|
|
1497
1555
|
)
|
|
1556
|
+
_write_project_gitignore(project_dir)
|
|
1498
1557
|
|
|
1499
1558
|
console.print()
|
|
1500
1559
|
console.print(
|
|
@@ -1506,6 +1565,7 @@ class CreateCommand(Command):
|
|
|
1506
1565
|
console.print(" ├── pyproject.toml")
|
|
1507
1566
|
console.print(" ├── LICENSE")
|
|
1508
1567
|
console.print(" ├── README.md")
|
|
1568
|
+
console.print(" ├── .gitignore")
|
|
1509
1569
|
console.print(f" └── {name}/")
|
|
1510
1570
|
console.print(" ├── __init__.py")
|
|
1511
1571
|
console.print(" └── Core.py")
|
|
@@ -1746,6 +1806,7 @@ class CreateCommand(Command):
|
|
|
1746
1806
|
),
|
|
1747
1807
|
encoding="utf-8",
|
|
1748
1808
|
)
|
|
1809
|
+
_write_project_gitignore(project_dir)
|
|
1749
1810
|
|
|
1750
1811
|
console.print()
|
|
1751
1812
|
console.print(
|
|
@@ -1760,6 +1821,7 @@ class CreateCommand(Command):
|
|
|
1760
1821
|
console.print(" ├── pyproject.toml")
|
|
1761
1822
|
console.print(" ├── LICENSE")
|
|
1762
1823
|
console.print(" ├── README.md")
|
|
1824
|
+
console.print(" ├── .gitignore")
|
|
1763
1825
|
console.print(f" └── {name}/")
|
|
1764
1826
|
console.print(" ├── __init__.py")
|
|
1765
1827
|
console.print(" ├── Core.py")
|