eigent/backend/app/run_journal/__init__.py
4pmtong 1b4820e54d
Some checks are pending
Pre-commit / pre-commit (push) Waiting to run
Test / Run Web + Local Brain Smoke (push) Waiting to run
Test / Run Frontend Guardrails (push) Waiting to run
Test / Run Python Tests (push) Waiting to run
feat: run tasks on durable project git checkouts
2026-08-21 22:32:52 +08:00

179 lines
5.5 KiB
Python

# ========= Copyright 2025-2026 @ Eigent.ai All Rights Reserved. =========
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ========= Copyright 2025-2026 @ Eigent.ai All Rights Reserved. =========
from app.run_journal.models import (
ApprovalRecord,
ApprovalRuleRecord,
ArtifactUploadSyncItem,
AttemptEnvironmentBinding,
CloudRunEventReplica,
CloudRunReplica,
CommandResultEvent,
CommandResultSyncBatch,
CommittedRunEvent,
ContextProjectionDiagnosticRecord,
ContinuationClaimRecord,
EffectiveEnvironmentSpecRecord,
FollowUpRequestRecord,
GitAgentWorkspaceRecord,
GitChangeSetItemRecord,
GitChangeSetRecord,
GitCheckpointRecord,
GitMutationIntentRecord,
GitOperationRecord,
GitRepositoryRecord,
HumanInteractionDecisionRecord,
HumanInteractionOptionRecord,
HumanInteractionRecord,
MemoryEntryRecord,
MemoryMutationRecord,
MemoryMutationResult,
MemoryMutationSyncBatch,
MemoryMutationSyncItem,
MemoryReconciliationRecord,
MemoryScopeStateRecord,
ModelInvocationEventRecord,
ModelInvocationRecord,
ProjectExecutionStateRecord,
ProjectGitStateRecord,
ProjectHistoryEventRecord,
ProjectWorkspaceBindingRecord,
RemoteCommandInboxRecord,
RunAttemptRecord,
RunEventDraft,
RunEventSyncBatch,
RunEventSyncOutboxRecord,
RunGitMaterializationRecord,
RunRecord,
SecurityAuditEventRecord,
SpacePermissionProfileRecord,
SpacePermissionProfileRevisionRecord,
StartupReconciliationResult,
ToolCallRecord,
WorkspaceBundleInstallProposalRecord,
WorkspaceBundleLocalBindingRecord,
WorkspaceBundleSecretBindingRecord,
WorkspaceConfigDraftAssetDescriptorRecord,
WorkspaceConfigDraftAssetRecord,
WorkspaceConfigDraftRecord,
WorkspaceConfigMaterializationRecord,
WorkspaceConfigRevisionRecord,
WorkspaceOverlayEntryRecord,
WorkspaceReadSnapshotRecord,
WorkspaceSnapshotRangeRecord,
WorkspaceWriterLeaseRecord,
WorkspaceWriterReleaseResult,
WorkspaceWriterRequestRecord,
)
from app.run_journal.paths import default_run_journal_path
from app.run_journal.recorder import EventRecorder
from app.run_journal.runtime import (
close_default_run_journal,
configured_run_journal_path,
get_default_event_recorder,
get_default_run_journal,
)
from app.run_journal.store import (
SCHEMA_VERSION,
IdempotencyConflictError,
InvalidRunTransitionError,
OptimisticConcurrencyError,
OutboxLeaseLostError,
RunJournalError,
RunNotFoundError,
SQLiteRunJournal,
UnsafeResumeError,
UnsupportedSchemaVersionError,
)
__all__ = [
"SCHEMA_VERSION",
"ApprovalRecord",
"ApprovalRuleRecord",
"ArtifactUploadSyncItem",
"AttemptEnvironmentBinding",
"CloudRunEventReplica",
"CloudRunReplica",
"CommittedRunEvent",
"ContextProjectionDiagnosticRecord",
"ContinuationClaimRecord",
"CommandResultEvent",
"CommandResultSyncBatch",
"EventRecorder",
"EffectiveEnvironmentSpecRecord",
"FollowUpRequestRecord",
"GitCheckpointRecord",
"GitMutationIntentRecord",
"GitChangeSetItemRecord",
"GitChangeSetRecord",
"GitAgentWorkspaceRecord",
"GitOperationRecord",
"GitRepositoryRecord",
"HumanInteractionDecisionRecord",
"HumanInteractionOptionRecord",
"HumanInteractionRecord",
"MemoryEntryRecord",
"MemoryMutationRecord",
"MemoryMutationResult",
"MemoryMutationSyncBatch",
"MemoryMutationSyncItem",
"MemoryReconciliationRecord",
"MemoryScopeStateRecord",
"ModelInvocationEventRecord",
"ModelInvocationRecord",
"ProjectHistoryEventRecord",
"ProjectGitStateRecord",
"ProjectExecutionStateRecord",
"ProjectWorkspaceBindingRecord",
"IdempotencyConflictError",
"InvalidRunTransitionError",
"OptimisticConcurrencyError",
"OutboxLeaseLostError",
"RunEventDraft",
"RunEventSyncBatch",
"RunEventSyncOutboxRecord",
"RunGitMaterializationRecord",
"RunJournalError",
"RunNotFoundError",
"RunRecord",
"SecurityAuditEventRecord",
"SpacePermissionProfileRecord",
"SpacePermissionProfileRevisionRecord",
"RunAttemptRecord",
"RemoteCommandInboxRecord",
"SQLiteRunJournal",
"StartupReconciliationResult",
"ToolCallRecord",
"WorkspaceConfigDraftRecord",
"WorkspaceConfigDraftAssetDescriptorRecord",
"WorkspaceConfigDraftAssetRecord",
"WorkspaceConfigMaterializationRecord",
"WorkspaceConfigRevisionRecord",
"WorkspaceBundleInstallProposalRecord",
"WorkspaceBundleLocalBindingRecord",
"WorkspaceBundleSecretBindingRecord",
"WorkspaceOverlayEntryRecord",
"WorkspaceReadSnapshotRecord",
"WorkspaceSnapshotRangeRecord",
"WorkspaceWriterLeaseRecord",
"WorkspaceWriterReleaseResult",
"WorkspaceWriterRequestRecord",
"UnsafeResumeError",
"UnsupportedSchemaVersionError",
"close_default_run_journal",
"configured_run_journal_path",
"default_run_journal_path",
"get_default_event_recorder",
"get_default_run_journal",
]