continuum-task-server-bundle 1.0.0__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.
- continuum_task_server_bundle-1.0.0/MANIFEST.in +3 -0
- continuum_task_server_bundle-1.0.0/PKG-INFO +109 -0
- continuum_task_server_bundle-1.0.0/README.md +70 -0
- continuum_task_server_bundle-1.0.0/VERSION +1 -0
- continuum_task_server_bundle-1.0.0/pyproject.toml +29 -0
- continuum_task_server_bundle-1.0.0/setup.cfg +4 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/__init__.py +1 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/__init__.py +4 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/common.py +534 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/create_sandbox.py +166 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/dispatch.py +125 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/execute_sandbox.py +243 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/filesystem.py +330 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/fs_edit.py +127 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/git_ops.py +585 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/github_app.py +207 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/manage_sandbox.py +104 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/plugin.py +18 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/daytona/s3_transfer.py +207 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/__init__.py +4 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/attachment_registry_db.py +127 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/attachment_resolve.py +213 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/await_cleanup.py +105 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/discord_ready.py +39 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/message_await_apply.py +143 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/message_await_db.py +197 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/message_await_inbound.py +54 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/message_await_logic.py +133 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/message_await_poller.py +122 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/message_chunking.py +45 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/methods.py +408 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/plugin.py +105 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/reaction_await_apply.py +238 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/reaction_await_db.py +174 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/reaction_await_inbound.py +47 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/reaction_await_logic.py +118 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/reaction_await_poller.py +131 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/s3_attachment_config.py +25 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/s3_message_attachments.py +139 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/sql/001_message_awaits.sql +112 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/discord/sql/002_reaction_awaits.sql +61 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/__init__.py +4 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/awaits/__init__.py +1 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/awaits/apply.py +92 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/awaits/cleanup.py +94 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/awaits/db.py +220 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/awaits/evaluators.py +325 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/awaits/fetch.py +192 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/awaits/poller.py +82 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/awaits/register.py +37 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/ci_status.py +70 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/comment_normalize.py +76 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/errors.py +52 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/github_app.py +291 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/github_http.py +377 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/__init__.py +90 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/_common.py +183 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/awaits.py +107 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/ci.py +158 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/comments.py +214 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/credentials.py +59 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/issues.py +131 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/pulls.py +329 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/repos.py +424 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/methods/search.py +109 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/plugin.py +91 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/sql/001_github_awaits.sql +65 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/github/webhook_server.py +126 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/__init__.py +4 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/await_poller.py +236 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/await_store.py +271 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/config.py +68 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/jira_client.py +382 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/methods.py +246 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/plugin.py +86 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/sql/001_jira_issue_comment_waits.sql +19 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/jira/webhook.py +70 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/__init__.py +4 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/chat_service.py +1037 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/chat_store.py +849 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/environment.py +29 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/handler.py +59 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/image_context.py +207 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/openrouter_client.py +324 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/plugin.py +37 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/prompt_projection.py +417 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/sql/chat.sql +50 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/openrouter/sql/migrate_prune_then_chunk_v1.sql +11 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/roblox/__init__.py +4 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/roblox/open_cloud.py +335 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/roblox/plugin.py +30 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle/roblox/storage_s3.py +55 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle.egg-info/PKG-INFO +109 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle.egg-info/SOURCES.txt +152 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle.egg-info/dependency_links.txt +1 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle.egg-info/requires.txt +39 -0
- continuum_task_server_bundle-1.0.0/src/continuum_task_server_bundle.egg-info/top_level.txt +1 -0
- continuum_task_server_bundle-1.0.0/tests/__init__.py +0 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/__init__.py +0 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/support.py +58 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_common.py +81 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_create_sandbox.py +85 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_execute_sandbox.py +154 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_filesystem.py +131 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_fs_edit.py +91 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_git_ops.py +251 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_github_app.py +163 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_manage_sandbox.py +65 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_request_timeout.py +139 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_s3_transfer.py +196 -0
- continuum_task_server_bundle-1.0.0/tests/daytona/test_wait_exec.py +134 -0
- continuum_task_server_bundle-1.0.0/tests/discord/__init__.py +0 -0
- continuum_task_server_bundle-1.0.0/tests/discord/test_message_author.py +15 -0
- continuum_task_server_bundle-1.0.0/tests/github/__init__.py +0 -0
- continuum_task_server_bundle-1.0.0/tests/github/conftest.py +10 -0
- continuum_task_server_bundle-1.0.0/tests/github/test_comments.py +22 -0
- continuum_task_server_bundle-1.0.0/tests/github/test_evaluators.py +331 -0
- continuum_task_server_bundle-1.0.0/tests/github/test_http.py +60 -0
- continuum_task_server_bundle-1.0.0/tests/github/test_token_cache.py +88 -0
- continuum_task_server_bundle-1.0.0/tests/github/test_webhook.py +51 -0
- continuum_task_server_bundle-1.0.0/tests/jira/__init__.py +0 -0
- continuum_task_server_bundle-1.0.0/tests/jira/conftest.py +33 -0
- continuum_task_server_bundle-1.0.0/tests/jira/test_await_poller.py +198 -0
- continuum_task_server_bundle-1.0.0/tests/jira/test_await_store_integration.py +49 -0
- continuum_task_server_bundle-1.0.0/tests/jira/test_config.py +58 -0
- continuum_task_server_bundle-1.0.0/tests/jira/test_jira_client.py +166 -0
- continuum_task_server_bundle-1.0.0/tests/jira/test_jira_client_operations.py +107 -0
- continuum_task_server_bundle-1.0.0/tests/jira/test_methods.py +96 -0
- continuum_task_server_bundle-1.0.0/tests/jira/test_webhook.py +74 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/__init__.py +0 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/conftest.py +11 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_chat.py +909 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_compact_hints_and_window.py +125 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_completion.py +182 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_environment_prefix.py +198 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_image_budget_and_compaction.py +83 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_image_context.py +101 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_model_override.py +109 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_plugin.py +54 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_projected_chat.py +264 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_prompt_projection.py +270 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_reasoning_override.py +110 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_snapshot_branch.py +47 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_snapshot_budget.py +21 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_snapshot_postgres.py +37 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_snapshot_transactions.py +84 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_stable_live_snapshot.py +169 -0
- continuum_task_server_bundle-1.0.0/tests/openrouter/test_summary_previews.py +155 -0
- continuum_task_server_bundle-1.0.0/tests/roblox/__init__.py +0 -0
- continuum_task_server_bundle-1.0.0/tests/roblox/test_entry_s3.py +175 -0
- continuum_task_server_bundle-1.0.0/tests/roblox/test_logs_s3.py +125 -0
- continuum_task_server_bundle-1.0.0/tests/roblox/test_open_cloud.py +207 -0
- continuum_task_server_bundle-1.0.0/tests/test_lifecycle.py +99 -0
- continuum_task_server_bundle-1.0.0/tests/test_registration.py +96 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: continuum-task-server-bundle
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Composable Python integrations for Continuum task-server hosts
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
Requires-Dist: continuum-task-server-sdk<2,>=1.8.0
|
|
8
|
+
Provides-Extra: openrouter
|
|
9
|
+
Requires-Dist: httpx<1,>=0.27; extra == "openrouter"
|
|
10
|
+
Requires-Dist: psycopg[binary,pool]<4,>=3.2; extra == "openrouter"
|
|
11
|
+
Requires-Dist: boto3<2,>=1.34; extra == "openrouter"
|
|
12
|
+
Requires-Dist: Pillow<14,>=11; extra == "openrouter"
|
|
13
|
+
Provides-Extra: daytona
|
|
14
|
+
Requires-Dist: daytona==0.214.0; extra == "daytona"
|
|
15
|
+
Requires-Dist: boto3<2,>=1.34; extra == "daytona"
|
|
16
|
+
Requires-Dist: PyJWT<3,>=2.8; extra == "daytona"
|
|
17
|
+
Requires-Dist: cryptography<47,>=42; extra == "daytona"
|
|
18
|
+
Provides-Extra: discord
|
|
19
|
+
Requires-Dist: discord.py<3,>=2; extra == "discord"
|
|
20
|
+
Requires-Dist: psycopg[binary]<4,>=3.2; extra == "discord"
|
|
21
|
+
Requires-Dist: boto3<2,>=1.34; extra == "discord"
|
|
22
|
+
Provides-Extra: github
|
|
23
|
+
Requires-Dist: httpx<1,>=0.27; extra == "github"
|
|
24
|
+
Requires-Dist: PyJWT[crypto]<3,>=2.8; extra == "github"
|
|
25
|
+
Requires-Dist: psycopg[binary]<4,>=3.2; extra == "github"
|
|
26
|
+
Requires-Dist: starlette<2,>=0.37; extra == "github"
|
|
27
|
+
Requires-Dist: uvicorn<1,>=0.29; extra == "github"
|
|
28
|
+
Provides-Extra: jira
|
|
29
|
+
Requires-Dist: Flask<4,>=3; extra == "jira"
|
|
30
|
+
Requires-Dist: httpx<1,>=0.27; extra == "jira"
|
|
31
|
+
Requires-Dist: psycopg[binary]<4,>=3.2; extra == "jira"
|
|
32
|
+
Requires-Dist: waitress<4,>=3; extra == "jira"
|
|
33
|
+
Provides-Extra: roblox
|
|
34
|
+
Requires-Dist: httpx==0.28.1; extra == "roblox"
|
|
35
|
+
Requires-Dist: boto3<2,>=1.34; extra == "roblox"
|
|
36
|
+
Provides-Extra: test
|
|
37
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
38
|
+
Requires-Dist: respx<1,>=0.21; extra == "test"
|
|
39
|
+
|
|
40
|
+
# Continuum task server bundle
|
|
41
|
+
|
|
42
|
+
Composable Python task integrations for an SDK `TaskServerHost`. One distribution provides OpenRouter, Daytona, Discord, GitHub, Jira and Roblox. Installing the bundle does **not** register any task or run any server: the application explicitly chooses integrations. The stateful ECS worker launcher is not part of this bundle.
|
|
43
|
+
|
|
44
|
+
## Install and compose
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
pip install 'continuum-task-server-bundle[openrouter,discord]'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```python
|
|
51
|
+
import os
|
|
52
|
+
from continuum_task_server import TaskServer, TaskServerHost
|
|
53
|
+
from continuum_task_server_bundle.openrouter import register_openrouter
|
|
54
|
+
from continuum_task_server_bundle.discord import register_discord
|
|
55
|
+
|
|
56
|
+
server = TaskServer(
|
|
57
|
+
base_url=os.environ["CONTINUUM_URL"],
|
|
58
|
+
api_key=os.environ["CONTINUUM_API_KEY"],
|
|
59
|
+
transport=os.getenv("CONTINUUM_TRANSPORT", "http"),
|
|
60
|
+
layer=os.environ["CONTINUUM_LAYER"], # select explicitly
|
|
61
|
+
max_workers=16,
|
|
62
|
+
)
|
|
63
|
+
host = TaskServerHost(server)
|
|
64
|
+
register_openrouter(host, env_prefix="OPENROUTER_")
|
|
65
|
+
register_discord(host)
|
|
66
|
+
host.run()
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Import `register_daytona`, `register_github`, `register_jira` or `register_roblox` from the corresponding integration module in the same way. Install the matching extras: `daytona`, `discord`, `github`, `jira`, `openrouter`, `roblox`. Each integration has independent dependencies; combinations must resolve together. No plugin is enabled from environment automatically. The application owns the SDK server, its Continuum credentials, worker pool, layer, transport, and shutdown. Size the shared worker pool for *all* registrations; `roblox` and `roblox_wait` default to 8 slots each. Different deployments can register different plugins with separately scoped credentials. The host starts and stops background services but does not supervise or restart them if a gateway, webhook, or poller exits after startup; use external health monitoring and restart policies.
|
|
70
|
+
|
|
71
|
+
## Configuration and operational notes
|
|
72
|
+
|
|
73
|
+
These adapters retain the existing integration environment settings. Configuration/secret injection is the application's responsibility. Never commit secrets. Unless noted, AWS SDKs use their normal credential chain; prefer scoped instance/task roles to static keys. Many settings are shared process-wide: using separate processes may be necessary for different `DATABASE_URL`, AWS identity, or GitHub App credentials. Registration functions are not a security boundary.
|
|
74
|
+
|
|
75
|
+
- **OpenRouter**: `OPENROUTER_API_KEY`; optional stored chat via `CHAT_DATABASE_URL` and `CHAT_RETENTION_DAYS`; image references via `IMAGE_S3_BUCKET` and `IMAGE_S3_PREFIX`. The `env_prefix` argument defaults to `""` and is prepended literally to OpenRouter-owned settings (so `env_prefix="OPENROUTER_"` yields `OPENROUTER_OPENROUTER_API_KEY` and `OPENROUTER_CHAT_DATABASE_URL`). SQL files for stored chats are packaged under `openrouter/sql`.
|
|
76
|
+
- **Daytona**: `DAYTONA_API_KEY`, `DAYTONA_API_URL`, optional `DAYTONA_TASK_CONCURRENCY`, GitHub App credentials for Git operations and S3 settings for transfers. Call `register_daytona(host, client=...)` to provide an existing Daytona client when needed.
|
|
77
|
+
- **Discord**: `DISCORD_TOKEN`; `DATABASE_URL` and the packaged `discord/sql` migrations are needed for durable waits. Optional S3 attachment settings use `S3_ATTACHMENTS_BUCKET` and `S3_ATTACHMENTS_PREFIX`. Its gateway and wait poller start and stop with the host.
|
|
78
|
+
- **GitHub**: `GITHUB_APP_ID` and `GITHUB_APP_PRIVATE_KEY` or `GITHUB_APP_PRIVATE_KEY_PATH`; `DATABASE_URL` and `github/sql` for durable waits. The webhook is optional (`GITHUB_WEBHOOK_SECRET`); configure `GITHUB_WEBHOOK_HOST` and `GITHUB_WEBHOOK_PORT` when used. Polling runs without a webhook.
|
|
79
|
+
- **Jira**: `JIRA_BASE_URL`, `DATABASE_URL`, and either `STARSTREAM_JIRA_BASIC_AUTH`, `JIRA_BASIC_AUTH`, or `JIRA_EMAIL` with `JIRA_API_TOKEN`. Apply the packaged `jira/sql` migration first. Optional `JIRA_WEBHOOK_SECRET`; receiver settings `JIRA_WEBHOOK_HOST` and `JIRA_WEBHOOK_PORT`. The host's server owns Continuum settings. Polling works without webhook configuration.
|
|
80
|
+
- **Roblox**: `ROBLOX_API_KEY`; use `ROBLOX_ALLOWED_UNIVERSE_IDS` and `ROBLOX_FORBIDDEN_UNIVERSE_IDS` to restrict scope. `S3_BUCKET`/`S3_PREFIX` configure spillover for sensitive oversized results. Configure task-item method/preview policies and appropriate authorization before use; credentials and allowlists represent the service actor, not the requesting user.
|
|
81
|
+
|
|
82
|
+
For backward compatibility the GitHub and Jira webhook host/port settings fall back to `WEBHOOK_HOST`/`WEBHOOK_PORT`; when enabling both in one process set the integration-specific ports explicitly. Discord, GitHub and Jira use the legacy shared `DATABASE_URL` unless deployed separately. Review migrations carefully: the GitHub migration drops/recreates its table; never run it blindly against an existing database. Schemas are not applied automatically. See the existing integration documentation for detailed task methods, limits, permissions and environment variables.
|
|
83
|
+
|
|
84
|
+
## Transition and compatibility
|
|
85
|
+
|
|
86
|
+
Existing OpenRouter package and standalone image repositories remain untouched. The bundle uses a different Python module namespace, so it can coexist with `continuum-task-server-openrouter`; move imports to `continuum_task_server_bundle.openrouter` when adopting it. Do not register the same task twice on one host. No standalone images are removed or deprecated by this repository. Migrate, verify, and deploy integrations independently; a single process also shares failures and resource limits. The bundle itself is a library, not a deployment image.
|
|
87
|
+
|
|
88
|
+
## Development and publishing
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
python -m pip install '.[openrouter,daytona,discord,github,jira,roblox,test]' build
|
|
92
|
+
python -m pytest -q tests --import-mode=importlib
|
|
93
|
+
python -m pip check
|
|
94
|
+
python -m build
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
External services are mocked; database integration tests require an explicitly configured disposable test DB and are otherwise skipped. Live third-party operations and queue end-to-end behavior require separate isolated integration tests.
|
|
98
|
+
|
|
99
|
+
`VERSION` is the sole package version. Increase it to a new, stable PEP 440 version in **every PR** before merging to `main`: PyPI rejects overwriting an existing version. The staged `staged-workflows/publish.yml` tests the built wheel and publishes its distribution artifacts to PyPI on a main push without a tag. It is **inactive** until moved to `.github/workflows/publish.yml`, and requires a pending PyPI trusted publisher for owner `ContinuumWorkflow`, repository `continuum-task-server-bundle`, workflow `publish.yml`, environment `pypi`. Publication can fail due to credentials, already-published/partially uploaded versions, or an unavailable PyPI; monitor the workflow, and use a new version if a release cannot safely be completed. Configure branch protection/merge queue to require the version check on the current base: a manual `VERSION` file cannot guarantee unique versions across independently merged concurrent PRs.
|
|
100
|
+
|
|
101
|
+
## Migration provenance
|
|
102
|
+
|
|
103
|
+
Code and tests were adapted from ContinuumWorkflow repositories at these commits; integrations were namespaced and given host registration/lifecycle adapters:
|
|
104
|
+
- OpenRouter `b857c82381d5bc6c352d1e40b0194d8fa4d7d9de`
|
|
105
|
+
- Daytona `ede977c1d6374e7425d421fcfa36110e1a310d11`
|
|
106
|
+
- Discord `2565c744120e5745a16ba54cdf02f49dcc0ba563`
|
|
107
|
+
- GitHub `3f7595d83475a9fd59d51fcb3e520e7d7c5ddd68`
|
|
108
|
+
- Jira `d9d7a1d97c01d0567090b71ffe01f9f3e2848ee3`
|
|
109
|
+
- Roblox `a9274babcdb16b55cd0144799776c79fc3f87431`
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Continuum task server bundle
|
|
2
|
+
|
|
3
|
+
Composable Python task integrations for an SDK `TaskServerHost`. One distribution provides OpenRouter, Daytona, Discord, GitHub, Jira and Roblox. Installing the bundle does **not** register any task or run any server: the application explicitly chooses integrations. The stateful ECS worker launcher is not part of this bundle.
|
|
4
|
+
|
|
5
|
+
## Install and compose
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pip install 'continuum-task-server-bundle[openrouter,discord]'
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
import os
|
|
13
|
+
from continuum_task_server import TaskServer, TaskServerHost
|
|
14
|
+
from continuum_task_server_bundle.openrouter import register_openrouter
|
|
15
|
+
from continuum_task_server_bundle.discord import register_discord
|
|
16
|
+
|
|
17
|
+
server = TaskServer(
|
|
18
|
+
base_url=os.environ["CONTINUUM_URL"],
|
|
19
|
+
api_key=os.environ["CONTINUUM_API_KEY"],
|
|
20
|
+
transport=os.getenv("CONTINUUM_TRANSPORT", "http"),
|
|
21
|
+
layer=os.environ["CONTINUUM_LAYER"], # select explicitly
|
|
22
|
+
max_workers=16,
|
|
23
|
+
)
|
|
24
|
+
host = TaskServerHost(server)
|
|
25
|
+
register_openrouter(host, env_prefix="OPENROUTER_")
|
|
26
|
+
register_discord(host)
|
|
27
|
+
host.run()
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Import `register_daytona`, `register_github`, `register_jira` or `register_roblox` from the corresponding integration module in the same way. Install the matching extras: `daytona`, `discord`, `github`, `jira`, `openrouter`, `roblox`. Each integration has independent dependencies; combinations must resolve together. No plugin is enabled from environment automatically. The application owns the SDK server, its Continuum credentials, worker pool, layer, transport, and shutdown. Size the shared worker pool for *all* registrations; `roblox` and `roblox_wait` default to 8 slots each. Different deployments can register different plugins with separately scoped credentials. The host starts and stops background services but does not supervise or restart them if a gateway, webhook, or poller exits after startup; use external health monitoring and restart policies.
|
|
31
|
+
|
|
32
|
+
## Configuration and operational notes
|
|
33
|
+
|
|
34
|
+
These adapters retain the existing integration environment settings. Configuration/secret injection is the application's responsibility. Never commit secrets. Unless noted, AWS SDKs use their normal credential chain; prefer scoped instance/task roles to static keys. Many settings are shared process-wide: using separate processes may be necessary for different `DATABASE_URL`, AWS identity, or GitHub App credentials. Registration functions are not a security boundary.
|
|
35
|
+
|
|
36
|
+
- **OpenRouter**: `OPENROUTER_API_KEY`; optional stored chat via `CHAT_DATABASE_URL` and `CHAT_RETENTION_DAYS`; image references via `IMAGE_S3_BUCKET` and `IMAGE_S3_PREFIX`. The `env_prefix` argument defaults to `""` and is prepended literally to OpenRouter-owned settings (so `env_prefix="OPENROUTER_"` yields `OPENROUTER_OPENROUTER_API_KEY` and `OPENROUTER_CHAT_DATABASE_URL`). SQL files for stored chats are packaged under `openrouter/sql`.
|
|
37
|
+
- **Daytona**: `DAYTONA_API_KEY`, `DAYTONA_API_URL`, optional `DAYTONA_TASK_CONCURRENCY`, GitHub App credentials for Git operations and S3 settings for transfers. Call `register_daytona(host, client=...)` to provide an existing Daytona client when needed.
|
|
38
|
+
- **Discord**: `DISCORD_TOKEN`; `DATABASE_URL` and the packaged `discord/sql` migrations are needed for durable waits. Optional S3 attachment settings use `S3_ATTACHMENTS_BUCKET` and `S3_ATTACHMENTS_PREFIX`. Its gateway and wait poller start and stop with the host.
|
|
39
|
+
- **GitHub**: `GITHUB_APP_ID` and `GITHUB_APP_PRIVATE_KEY` or `GITHUB_APP_PRIVATE_KEY_PATH`; `DATABASE_URL` and `github/sql` for durable waits. The webhook is optional (`GITHUB_WEBHOOK_SECRET`); configure `GITHUB_WEBHOOK_HOST` and `GITHUB_WEBHOOK_PORT` when used. Polling runs without a webhook.
|
|
40
|
+
- **Jira**: `JIRA_BASE_URL`, `DATABASE_URL`, and either `STARSTREAM_JIRA_BASIC_AUTH`, `JIRA_BASIC_AUTH`, or `JIRA_EMAIL` with `JIRA_API_TOKEN`. Apply the packaged `jira/sql` migration first. Optional `JIRA_WEBHOOK_SECRET`; receiver settings `JIRA_WEBHOOK_HOST` and `JIRA_WEBHOOK_PORT`. The host's server owns Continuum settings. Polling works without webhook configuration.
|
|
41
|
+
- **Roblox**: `ROBLOX_API_KEY`; use `ROBLOX_ALLOWED_UNIVERSE_IDS` and `ROBLOX_FORBIDDEN_UNIVERSE_IDS` to restrict scope. `S3_BUCKET`/`S3_PREFIX` configure spillover for sensitive oversized results. Configure task-item method/preview policies and appropriate authorization before use; credentials and allowlists represent the service actor, not the requesting user.
|
|
42
|
+
|
|
43
|
+
For backward compatibility the GitHub and Jira webhook host/port settings fall back to `WEBHOOK_HOST`/`WEBHOOK_PORT`; when enabling both in one process set the integration-specific ports explicitly. Discord, GitHub and Jira use the legacy shared `DATABASE_URL` unless deployed separately. Review migrations carefully: the GitHub migration drops/recreates its table; never run it blindly against an existing database. Schemas are not applied automatically. See the existing integration documentation for detailed task methods, limits, permissions and environment variables.
|
|
44
|
+
|
|
45
|
+
## Transition and compatibility
|
|
46
|
+
|
|
47
|
+
Existing OpenRouter package and standalone image repositories remain untouched. The bundle uses a different Python module namespace, so it can coexist with `continuum-task-server-openrouter`; move imports to `continuum_task_server_bundle.openrouter` when adopting it. Do not register the same task twice on one host. No standalone images are removed or deprecated by this repository. Migrate, verify, and deploy integrations independently; a single process also shares failures and resource limits. The bundle itself is a library, not a deployment image.
|
|
48
|
+
|
|
49
|
+
## Development and publishing
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
python -m pip install '.[openrouter,daytona,discord,github,jira,roblox,test]' build
|
|
53
|
+
python -m pytest -q tests --import-mode=importlib
|
|
54
|
+
python -m pip check
|
|
55
|
+
python -m build
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
External services are mocked; database integration tests require an explicitly configured disposable test DB and are otherwise skipped. Live third-party operations and queue end-to-end behavior require separate isolated integration tests.
|
|
59
|
+
|
|
60
|
+
`VERSION` is the sole package version. Increase it to a new, stable PEP 440 version in **every PR** before merging to `main`: PyPI rejects overwriting an existing version. The staged `staged-workflows/publish.yml` tests the built wheel and publishes its distribution artifacts to PyPI on a main push without a tag. It is **inactive** until moved to `.github/workflows/publish.yml`, and requires a pending PyPI trusted publisher for owner `ContinuumWorkflow`, repository `continuum-task-server-bundle`, workflow `publish.yml`, environment `pypi`. Publication can fail due to credentials, already-published/partially uploaded versions, or an unavailable PyPI; monitor the workflow, and use a new version if a release cannot safely be completed. Configure branch protection/merge queue to require the version check on the current base: a manual `VERSION` file cannot guarantee unique versions across independently merged concurrent PRs.
|
|
61
|
+
|
|
62
|
+
## Migration provenance
|
|
63
|
+
|
|
64
|
+
Code and tests were adapted from ContinuumWorkflow repositories at these commits; integrations were namespaced and given host registration/lifecycle adapters:
|
|
65
|
+
- OpenRouter `b857c82381d5bc6c352d1e40b0194d8fa4d7d9de`
|
|
66
|
+
- Daytona `ede977c1d6374e7425d421fcfa36110e1a310d11`
|
|
67
|
+
- Discord `2565c744120e5745a16ba54cdf02f49dcc0ba563`
|
|
68
|
+
- GitHub `3f7595d83475a9fd59d51fcb3e520e7d7c5ddd68`
|
|
69
|
+
- Jira `d9d7a1d97c01d0567090b71ffe01f9f3e2848ee3`
|
|
70
|
+
- Roblox `a9274babcdb16b55cd0144799776c79fc3f87431`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.0
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "continuum-task-server-bundle"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Composable Python integrations for Continuum task-server hosts"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
dependencies = ["continuum-task-server-sdk>=1.8.0,<2"]
|
|
12
|
+
|
|
13
|
+
[project.optional-dependencies]
|
|
14
|
+
openrouter = ["httpx>=0.27,<1", "psycopg[binary,pool]>=3.2,<4", "boto3>=1.34,<2", "Pillow>=11,<14"]
|
|
15
|
+
daytona = ["daytona==0.214.0", "boto3>=1.34,<2", "PyJWT>=2.8,<3", "cryptography>=42,<47"]
|
|
16
|
+
discord = ["discord.py>=2,<3", "psycopg[binary]>=3.2,<4", "boto3>=1.34,<2"]
|
|
17
|
+
github = ["httpx>=0.27,<1", "PyJWT[crypto]>=2.8,<3", "psycopg[binary]>=3.2,<4", "starlette>=0.37,<2", "uvicorn>=0.29,<1"]
|
|
18
|
+
jira = ["Flask>=3,<4", "httpx>=0.27,<1", "psycopg[binary]>=3.2,<4", "waitress>=3,<4"]
|
|
19
|
+
roblox = ["httpx==0.28.1", "boto3>=1.34,<2"]
|
|
20
|
+
test = ["pytest>=8", "respx>=0.21,<1"]
|
|
21
|
+
|
|
22
|
+
[tool.setuptools.dynamic]
|
|
23
|
+
version = {file = ["VERSION"]}
|
|
24
|
+
|
|
25
|
+
[tool.setuptools.packages.find]
|
|
26
|
+
where = ["src"]
|
|
27
|
+
|
|
28
|
+
[tool.setuptools.package-data]
|
|
29
|
+
"*" = ["sql/*.sql"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Composable Continuum task-server integrations."""
|