langbot-plugin 0.3.4__tar.gz → 0.3.5__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.
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/PKG-INFO +1 -1
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/pyproject.toml +1 -1
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/__init__.py +2 -1
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/login.py +26 -1
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/locales/en_US.py +4 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/locales/ja_JP.py +4 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/locales/zh_Hans.py +4 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/locales/zh_Hant.py +4 -0
- langbot_plugin-0.3.5/src/langbot_plugin/version.py +1 -0
- langbot_plugin-0.3.4/src/langbot_plugin/version.py +0 -1
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/.github/workflows/publish-pypi.yaml +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/.gitignore +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/.python-version +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/AGENTS.md +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/CLAUDE.md +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/LICENSE +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/README.md +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/data/.env.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/docs/Message.md +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/docs/communication/apis/lb2rt.md +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/docs/communication/runtime_plugin.md +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/docs/dependency-management.md +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/docs/langbot-plugin-social.png +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/abstract/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/abstract/platform/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/abstract/platform/adapter.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/abstract/platform/event_logger.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/base.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/command/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/command/command.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/common/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/common/event_listener.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/knowledge_engine/engine.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/manifest.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/parser/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/parser/parser.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/tool/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/tool/tool.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/plugin.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/command/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/command/context.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/command/errors.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/pipeline/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/pipeline/query.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/platform/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/platform/entities.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/platform/events.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/platform/logger.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/platform/message.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/provider/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/provider/message.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/provider/prompt.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/provider/session.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/context.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/enums.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/errors.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/models.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/resource/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/resource/tool.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/context.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/events.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/base.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/event_context.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/execute_context.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/langbot_api.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/query_based_api.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/.env.example.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/.gitignore.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/.vscode/launch.json.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/README.md.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/assets/icon.svg.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/commands/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.py.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/commands/{cmd_name}.yaml.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/event_listener/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/event_listener/default.py.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/event_listener/default.yaml.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/knowledge_engine/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.py.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/knowledge_engine/{knowledge_engine_name}.yaml.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/parser/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.py.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/parser/{parser_name}.yaml.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/tools/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.py.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/components/tools/{tool_name}.yaml.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/main.py.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/manifest.yaml.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/requirements.txt.example +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/__main__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/buildplugin.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/gencomponent.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/initplugin.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/logout.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/publish.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/runplugin.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/gen/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/gen/renderer.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/i18n.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/locales/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/run/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/run/controller.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/run/handler.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/run/hotreload.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/utils/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/utils/cloudsv.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/utils/form.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/io/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/io/actions/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/io/actions/enums.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/io/errors.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/io/req.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/io/resp.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/marketplace.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/LICENSE +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/README.md +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/app.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/context.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/helper/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/helper/marketplace.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/helper/pkgmgr.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/connection.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/connections/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/connections/stdio.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/connections/ws.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controller.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/stdio/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/stdio/client.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/stdio/server.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/ws/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/ws/client.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/ws/server.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/handler.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/handlers/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/handlers/control.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/handlers/plugin.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/plugin/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/plugin/container.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/plugin/mgr.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/settings.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/utils/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/utils/discover/__init__.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/utils/discover/engine.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/utils/importutil.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/utils/log.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/utils/platform.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/tests/api/entities/test_events.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/tests/test_log.py +0 -0
- {langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/tests/test_message.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: langbot-plugin
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.5
|
|
4
4
|
Summary: This package contains the SDK, CLI for building plugins for LangBot, plus the runtime for hosting LangBot plugins
|
|
5
5
|
Project-URL: Homepage, https://langbot.app
|
|
6
6
|
Project-URL: Repository, https://github.com/langbot-app/langbot-plugin-sdk
|
|
@@ -68,6 +68,7 @@ def main():
|
|
|
68
68
|
|
|
69
69
|
# login command
|
|
70
70
|
login_parser = subparsers.add_parser("login", help="Login to LangBot account")
|
|
71
|
+
login_parser.add_argument("--token", "-t", help="Login with a personal access token", default=None)
|
|
71
72
|
|
|
72
73
|
# logout command
|
|
73
74
|
logout_parser = subparsers.add_parser("logout", help="Logout from LangBot account")
|
|
@@ -122,7 +123,7 @@ def main():
|
|
|
122
123
|
case "ver":
|
|
123
124
|
cli_print("version_info", __version__)
|
|
124
125
|
case "login":
|
|
125
|
-
login_process()
|
|
126
|
+
login_process(token=args.token)
|
|
126
127
|
case "logout":
|
|
127
128
|
logout_process()
|
|
128
129
|
case "init":
|
|
@@ -13,7 +13,27 @@ from langbot_plugin.cli.i18n import cli_print, t
|
|
|
13
13
|
SERVER_URL = get_cloud_service_url()
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def login_process() -> None:
|
|
16
|
+
def login_process(token: str | None = None) -> None:
|
|
17
|
+
if token is not None:
|
|
18
|
+
if not token.startswith("lbpat_"):
|
|
19
|
+
cli_print("pat_invalid_format")
|
|
20
|
+
return
|
|
21
|
+
|
|
22
|
+
config = {
|
|
23
|
+
"access_token": token,
|
|
24
|
+
"token_type": "personal_access_token",
|
|
25
|
+
"login_time": int(time.time()),
|
|
26
|
+
"expires_in": 0,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
config_file = _save_config(config)
|
|
30
|
+
|
|
31
|
+
print("\n" + "=" * 50)
|
|
32
|
+
cli_print("pat_login_successful")
|
|
33
|
+
cli_print("pat_saved", config_file)
|
|
34
|
+
print("=" * 50)
|
|
35
|
+
return
|
|
36
|
+
|
|
17
37
|
"""
|
|
18
38
|
Implement LangBot CLI login process
|
|
19
39
|
|
|
@@ -200,6 +220,9 @@ def _is_token_valid(config: dict[str, Any]) -> bool:
|
|
|
200
220
|
if not config:
|
|
201
221
|
return False
|
|
202
222
|
|
|
223
|
+
if config.get("token_type") == "personal_access_token":
|
|
224
|
+
return True
|
|
225
|
+
|
|
203
226
|
login_time = config.get("login_time", 0)
|
|
204
227
|
expires_in = config.get("expires_in", 0)
|
|
205
228
|
|
|
@@ -247,6 +270,8 @@ def _refresh_token(config: dict[str, Any]) -> bool:
|
|
|
247
270
|
def check_login_status() -> bool:
|
|
248
271
|
"""Check login status"""
|
|
249
272
|
config = _load_config()
|
|
273
|
+
if config and config.get("token_type") == "personal_access_token":
|
|
274
|
+
return True
|
|
250
275
|
if not _is_token_valid(config):
|
|
251
276
|
# try refresh token
|
|
252
277
|
if not _refresh_token(config):
|
|
@@ -70,4 +70,8 @@ messages = {
|
|
|
70
70
|
"publish_failed": "!!! Failed to publish plugin: {}",
|
|
71
71
|
"publish_successful": "✅ Plugin published successfully. You can check it on {}/market",
|
|
72
72
|
"publish_successful_new_plugin": "⚠️ Plugin draft published successfully. You need to upload usage screenshots on {}/market to complete the submission.",
|
|
73
|
+
|
|
74
|
+
"pat_login_successful": "✅ Logged in with personal access token!",
|
|
75
|
+
"pat_invalid_format": "Invalid token format. Personal access tokens should start with 'lbpat_'.",
|
|
76
|
+
"pat_saved": "Token saved to: {}",
|
|
73
77
|
}
|
|
@@ -70,4 +70,8 @@ messages = {
|
|
|
70
70
|
"publish_failed": "!!! プラグインの公開に失敗しました:{}",
|
|
71
71
|
"publish_successful": "✅ プラグインの公開が完了しました。{}/market で確認できます",
|
|
72
72
|
"publish_successful_new_plugin": "⚠️ プラグインの公開が完了しました。使用スクリーンショットを {}/market にアップロードして提出を完了してください。",
|
|
73
|
+
|
|
74
|
+
"pat_login_successful": "✅ パーソナルアクセストークンでログインしました!",
|
|
75
|
+
"pat_invalid_format": "トークンの形式が無効です。パーソナルアクセストークンは 'lbpat_' で始まる必要があります。",
|
|
76
|
+
"pat_saved": "トークンの保存先:{}",
|
|
73
77
|
}
|
|
@@ -70,4 +70,8 @@ messages = {
|
|
|
70
70
|
"publish_failed": "!!! 插件发布失败:{}",
|
|
71
71
|
"publish_successful": "✅ 插件发布成功。你可以在 {}/market 查看",
|
|
72
72
|
"publish_successful_new_plugin": "⚠️ 插件草稿发布成功。你还需要在 {}/market 上传使用截图证明插件可用以完成提交。",
|
|
73
|
+
|
|
74
|
+
"pat_login_successful": "✅ 使用个人访问令牌登录成功!",
|
|
75
|
+
"pat_invalid_format": "令牌格式无效。个人访问令牌应以 'lbpat_' 开头。",
|
|
76
|
+
"pat_saved": "令牌已保存至:{}",
|
|
73
77
|
}
|
|
@@ -70,4 +70,8 @@ messages = {
|
|
|
70
70
|
"publish_failed": "!!! 插件發布失敗:{}",
|
|
71
71
|
"publish_successful": "✅ 插件發布成功。你可以在 {}/market 查看",
|
|
72
72
|
"publish_successful_new_plugin": "⚠️ 插件草稿發布成功。請在 {}/market 上傳使用截圖證明插件可用以完成提交。",
|
|
73
|
+
|
|
74
|
+
"pat_login_successful": "✅ 使用個人存取權杖登入成功!",
|
|
75
|
+
"pat_invalid_format": "權杖格式無效。個人存取權杖應以 'lbpat_' 開頭。",
|
|
76
|
+
"pat_saved": "權杖已儲存至:{}",
|
|
73
77
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3.5"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.3.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/abstract/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/definition/components/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/context.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/enums.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/errors.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/entities/builtin/rag/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/event_context.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/execute_context.py
RENAMED
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/api/proxies/query_based_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/.gitignore.example
RENAMED
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/README.md.example
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/assets/templates/main.py.example
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/buildplugin.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/cli/commands/gencomponent.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/io/actions/__init__.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/entities/io/actions/enums.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/helper/marketplace.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/connections/__init__.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/connections/stdio.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/connections/ws.py
RENAMED
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/ws/client.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/controllers/ws/server.py
RENAMED
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/handlers/__init__.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/handlers/control.py
RENAMED
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/io/handlers/plugin.py
RENAMED
|
File without changes
|
|
File without changes
|
{langbot_plugin-0.3.4 → langbot_plugin-0.3.5}/src/langbot_plugin/runtime/plugin/container.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|