Full-stack implementation of the KB Accelerator feature that converts static MSP knowledge base articles into interactive troubleshooting and procedural flows using AI. Backend: - Migrations 054/055: kb_imports, kb_import_nodes tables + plan_limits KB columns - SQLAlchemy models with relationships and self-referential node hierarchy - Text extraction service (txt, paste, docx with structural metadata) - AI conversion service with MSP-specialist prompts for both flow types - 8 API endpoints: upload, get, list, convert, edit node, commit, delete, quota - Tier-gated access via plan_limits (free: 3 lifetime, pro/team: unlimited) - 8 integration tests covering upload, get/list, quota, commit, delete Frontend: - TypeScript types and API client for all KB Accelerator endpoints - Multi-step wizard page: upload → processing → review → success - Upload screen with paste/file tabs, drag-drop, target type selector - Two-panel review screen with source highlighting and node cards - Per-node actions: approve, edit, regenerate, insert, delete - Confidence color indicators (green/amber/red) - Sidebar navigation with Sparkles icon - Code-split lazy-loaded route at /kb-accelerator Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
86 lines
2.4 KiB
Python
86 lines
2.4 KiB
Python
from .user import User
|
|
from .team import Team
|
|
from .account import Account
|
|
from .subscription import Subscription
|
|
from .plan_limits import PlanLimits
|
|
from .account_invite import AccountInvite
|
|
from .tree import Tree
|
|
from .tree_share import TreeShare
|
|
from .session import Session
|
|
from .attachment import Attachment
|
|
from .invite_code import InviteCode
|
|
from .category import TreeCategory
|
|
from .tag import TreeTag, tree_tag_assignments
|
|
from .folder import UserFolder, user_folder_trees
|
|
from .step_category import StepCategory
|
|
from .step_library import StepLibrary, StepRating, StepUsageLog
|
|
from .refresh_token import RefreshToken
|
|
from .audit_log import AuditLog
|
|
from .password_reset_token import PasswordResetToken
|
|
from .session_share import SessionShare, SessionShareView
|
|
from .session_rating import SessionRating
|
|
from .account_limit_override import AccountLimitOverride
|
|
from .feature_flag import FeatureFlag, PlanFeatureDefault, AccountFeatureOverride
|
|
from .platform_setting import PlatformSetting
|
|
from .user_pinned_tree import UserPinnedTree
|
|
from .target_list import TargetList
|
|
from .maintenance_schedule import MaintenanceSchedule
|
|
from .feedback import Feedback
|
|
from .ai_conversation import AIConversation
|
|
from .ai_usage import AIUsage
|
|
from .ai_chat_session import AIChatSession
|
|
from .tree_embedding import TreeEmbedding
|
|
from .copilot_conversation import CopilotConversation
|
|
from .assistant_chat import AssistantChat
|
|
from .survey_response import SurveyResponse
|
|
from .survey_invite import SurveyInvite
|
|
from .kb_import import KBImport, KBImportNode
|
|
|
|
__all__ = [
|
|
"User",
|
|
"Team",
|
|
"Account",
|
|
"Subscription",
|
|
"PlanLimits",
|
|
"AccountInvite",
|
|
"Tree",
|
|
"TreeShare",
|
|
"Session",
|
|
"Attachment",
|
|
"InviteCode",
|
|
"TreeCategory",
|
|
"TreeTag",
|
|
"tree_tag_assignments",
|
|
"UserFolder",
|
|
"user_folder_trees",
|
|
"StepCategory",
|
|
"StepLibrary",
|
|
"StepRating",
|
|
"StepUsageLog",
|
|
"RefreshToken",
|
|
"AuditLog",
|
|
"PasswordResetToken",
|
|
"SessionShare",
|
|
"SessionShareView",
|
|
"SessionRating",
|
|
"AccountLimitOverride",
|
|
"FeatureFlag",
|
|
"PlanFeatureDefault",
|
|
"AccountFeatureOverride",
|
|
"PlatformSetting",
|
|
"UserPinnedTree",
|
|
"TargetList",
|
|
"MaintenanceSchedule",
|
|
"Feedback",
|
|
"AIConversation",
|
|
"AIUsage",
|
|
"AIChatSession",
|
|
"TreeEmbedding",
|
|
"CopilotConversation",
|
|
"AssistantChat",
|
|
"SurveyResponse",
|
|
"SurveyInvite",
|
|
"KBImport",
|
|
"KBImportNode",
|
|
]
|