3tears-agent-wake
0.89.0
0.88.0
0.86.0
0.85.0
0.84.0
0.83.0
0.82.0
0.81.0
0.80.0
0.79.0
0.78.0
0.77.0
0.76.0
0.75.0
0.74.0
0.73.0
0.72.0
0.71.0
0.70.1
0.70.0
0.69.0
0.68.0
0.67.0
0.66.0
0.65.0
0.64.0
0.63.1
0.63.0
0.62.0
0.61.0
0.60.0
0.59.0
0.58.0
0.57.0
0.56.3
0.56.2
0.56.1
0.56.0
0.55.0
0.54.0
0.53.0
0.52.1
0.52.0
0.51.1
0.51.0
0.50.0
0.49.0
0.48.0
0.47.1
0.47.0
0.46.1
0.46.0
0.45.1
0.45.0
0.44.0
0.43.0
0.42.0
0.41.4
0.41.3
0.41.2
0.41.1
0.41.0
0.40.0
0.39.0
0.38.0
0.37.0
0.36.0
0.35.1
0.35.0
0.34.0
0.33.0
0.32.1
0.32.0
0.31.0
0.30.1
0.30.0
0.29.0
0.28.0
0.27.0
0.26.1
0.26.0
0.25.0
0.24.7
0.24.6
0.24.5
0.24.4
0.24.3
0.24.2
0.24.1
0.24.0
0.23.9
0.23.8
0.23.7
0.23.6
0.23.5
0.23.3
0.23.2
0.23.11
0.23.10
0.23.1
0.23.0
0.22.5
0.22.4
0.22.3
0.22.2
0.22.1
0.22.0
0.21.0
0.20.0
0.19.4
0.19.3
0.19.2
0.19.1
0.19.0
0.18.0
0.17.9
0.17.8
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.1
0.14.0
0.89.0
0.88.0
0.86.0
0.85.0
0.84.0
0.83.0
0.82.0
0.81.0
0.80.0
0.79.0
0.78.0
0.77.0
0.76.0
0.75.0
0.74.0
0.73.0
0.72.0
0.71.0
0.70.1
0.70.0
0.69.0
0.68.0
0.67.0
0.66.0
0.65.0
0.64.0
0.63.1
0.63.0
0.62.0
0.61.0
0.60.0
0.59.0
0.58.0
0.57.0
0.56.3
0.56.2
0.56.1
0.56.0
0.55.0
0.54.0
0.53.0
0.52.1
0.52.0
0.51.1
0.51.0
0.50.0
0.49.0
0.48.0
0.47.1
0.47.0
0.46.1
0.46.0
0.45.1
0.45.0
0.44.0
0.43.0
0.42.0
0.41.4
0.41.3
0.41.2
0.41.1
0.41.0
0.40.0
0.39.0
0.38.0
0.37.0
0.36.0
0.35.1
0.35.0
0.34.0
0.33.0
0.32.1
0.32.0
0.31.0
0.30.1
0.30.0
0.29.0
0.28.0
0.27.0
0.26.1
0.26.0
0.25.0
0.24.7
0.24.6
0.24.5
0.24.4
0.24.3
0.24.2
0.24.1
0.24.0
0.23.9
0.23.8
0.23.7
0.23.6
0.23.5
0.23.3
0.23.2
0.23.11
0.23.10
0.23.1
0.23.0
0.22.5
0.22.4
0.22.3
0.22.2
0.22.1
0.22.0
0.21.0
0.20.0
0.19.4
0.19.3
0.19.2
0.19.1
0.19.0
0.18.0
0.17.9
0.17.8
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.1
0.16.0
0.15.0
0.14.1
0.14.0
توضیحات
Long-running-agent foundation -- wake schedules, fires, webhook subscriptions
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | 3tears-agent-wake-0.89.0 |
| نام | 3tears-agent-wake |
| نسخه کتابخانه | 0.89.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | pace |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/3tears-agent-wake/ |
| مجوز | - |
# 3tears-agent-wake
Long-running-agent foundation for 3tears-based agents. This package
ships the schema + Collection layer for three platform tables:
- `agent_wake_schedules` -- one row per active wake schedule for a
conversation (cron / one-shot / random-window / etc). Carries a
nullable `skill_id` FK referencing the cross-package
`agent_skills.skill_id` standalone UNIQUE.
- `wake_fires` -- one row per wake fire (history; the statuses are
`types.FireStatus`, among them `'checked_quiet'`: a check that found
nothing, no turn ran, not counted by the fire limits).
- `webhook_subscriptions` -- one row per inbound HTTP webhook
subscription. Carries nullable `default_skill_id` FK to
`agent_skills.skill_id` and Fernet-encrypted `secret_ciphertext`.
Plus three `BaseEntity` subclasses, three `BaseCollection` subclasses,
and an agent-scope migration registration declaring
`depends_on=("conversations", "agent_skills")`.
No tick engine, no dispatch handler, no agent tools, and no Pydantic
API models live in this package.
## Partitioning
All three tables partition by `conversation_id` (wake operations are
conversation-scoped). The Collections expose `partition_column =
"conversation_id"` so the workspace partition-column enforcement walker
audits every SQL string touching these tables for the predicate.
There is intentionally NO database-level FK on `conversation_id` ->
`conversations(conversation_id)`. The 3tears `conversations` table
carries a composite PK `(agent_id, conversation_id)` and no standalone
`UNIQUE (conversation_id)` constraint, so a single-column FK is not
legal. The same precedent applies in `packages/agent/tools/`
(`context_items.conversation_id`) and `packages/agent/skills/`
(`agent_skill_invocations.conversation_id`). Conversation lifecycle is
governed by app-level cascade through `ConversationsCollection`.
**Orphan-row implication.** Because there is no DB-level FK, deleting a
row from `conversations` does NOT automatically remove the wake
schedules, fires, or webhook subscriptions for that conversation.
They become orphans (rows whose `conversation_id` no longer resolves).
The partition-column enforcement walker keeps the application blind to
orphans (every query is filtered by `conversation_id` so an orphan is
invisible at the read path), but the rows still occupy storage. This
is the same trade-off agent-tools and agent-skills make. A future
cross-package cleanup (a TRIGGER on `conversations`-delete that fans
out to dependent tables, or a periodic GC job in `ConversationsCollection`)
would close the gap; that work is intentionally cross-cutting and
out of scope for this package.
## Migration registration
```python
from threetears.agent.wake import register as register_wake
from threetears.core.data.migrations import MigrationRunner
runner = MigrationRunner()
register_wake(runner)
```
Migrations are agent-scoped and declare
`depends_on=("conversations", "agent_skills")` -- the canonical
`MigrationRunner` topologically orders the agent-scope pass so the
`conversations` + `agent_skills` migrations apply before any wake
table is created.
## Design references
See `docs/agent-wake/README.md` for the package overview and the
locked design decisions.
نیازمندی
| مقدار | نام |
|---|---|
| - | 3tears-agent-skills<0.90.0,>=0.89.0 |
| - | 3tears-observe<0.90.0,>=0.89.0 |
| - | 3tears-scheduled-jobs<0.90.0,>=0.89.0 |
| - | 3tears<0.90.0,>=0.89.0 |
| - | apscheduler>=3.10 |
| - | jinja2>=3 |
| - | langchain-core |
| - | pydantic>=2 |
| - | sqlalchemy |
| - | uuid-utils |
| xtr | prometheus-client>=0.20; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.14 | Python |
نحوه نصب
نصب پکیج whl 3tears-agent-wake-0.89.0:
pip install 3tears-agent-wake.whl
نصب پکیج tar.gz 3tears-agent-wake-0.89.0:
pip install 3tears-agent-wake.tar.gz