feat(agents): Add agent provisioning confirmation mechanism and update message structure

This commit is contained in:
Abhimanyu Saharan
2026-02-04 17:24:52 +05:30
parent d3642a5efd
commit 8078580996
5 changed files with 156 additions and 36 deletions

View File

@@ -0,0 +1,41 @@
"""add agent provision confirmation
Revision ID: 6df47d330227
Revises: e0f28e965fa5
Create Date: 2026-02-04 17:16:44.472239
"""
from __future__ import annotations
from alembic import op
# revision identifiers, used by Alembic.
revision = '6df47d330227'
down_revision = 'e0f28e965fa5'
branch_labels = None
depends_on = None
def upgrade() -> None:
op.execute(
"ALTER TABLE agents ADD COLUMN IF NOT EXISTS provision_requested_at TIMESTAMP"
)
op.execute(
"ALTER TABLE agents ADD COLUMN IF NOT EXISTS provision_confirm_token_hash VARCHAR"
)
op.execute(
"ALTER TABLE agents ADD COLUMN IF NOT EXISTS provision_action VARCHAR"
)
def downgrade() -> None:
op.execute(
"ALTER TABLE agents DROP COLUMN IF EXISTS provision_action"
)
op.execute(
"ALTER TABLE agents DROP COLUMN IF EXISTS provision_confirm_token_hash"
)
op.execute(
"ALTER TABLE agents DROP COLUMN IF EXISTS provision_requested_at"
)