cp adapted to 2026 poweron
Some checks failed
Deploy Plattform-Core (Int) / test (push) Failing after 15s
Deploy Plattform-Core (Int) / deploy (push) Has been skipped

This commit is contained in:
ValueOn AG 2026-06-09 09:53:31 +02:00
parent 26dd8f6f3f
commit 4a60086c80
707 changed files with 940 additions and 854 deletions

2
app.py
View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
import os
import sys

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Base connector interface for AI connectors.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Dynamic model registry that collects models from all AI connectors.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Simplified model selection based on model properties and priority-based sorting.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
import base64
import json

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
import logging
from typing import List

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
import logging
import json

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
import logging
import json

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
import logging
import httpx

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
AI Connector for PowerOn Private-LLM Service.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Tavily web search class.
"""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Authentication and authorization modules for routes and services.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Authentication module for backend API.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CSRF Protection Middleware for PowerOn Gateway

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
JWT Service

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
MFA (Multi-Factor Authentication) Service.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Short-lived signed tickets for OAuth data-connection popups.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""OAuth scope sets for split Auth- vs Data-apps (Google / Microsoft)."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Token Manager Service

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Token Refresh Middleware for PowerOn Gateway

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Token Refresh Service for PowerOn Gateway

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
import contextvars
import copy

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Azure Communication Services Email Connector

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Twilio SMS Connector

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Preprocessor connector for executing SQL queries via HTTP API.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Abstract base classes for the Provider-Connector architecture (1:n).

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""ClickUp ProviderConnector — virtual paths for teams → lists → tasks (table rows).

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""FTP/SFTP ProviderConnector stub.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Google ProviderConnector -- Drive and Gmail via Google OAuth."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Infomaniak ProviderConnector -- kDrive + Calendar + Contacts via PAT.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Microsoft ProviderConnector -- one MSFT connection serves SharePoint, Outlook, Teams, OneDrive.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""ConnectorResolver -- resolves a connectionId to the correct ProviderConnector and ServiceAdapter.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""ClickUp connector for CRUD operations (compatible with TicketInterface).

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Jira connector for CRUD operations (neutralized to generic ticket interface).

View file

@ -1,4 +1,4 @@
# Copyright (c) 2026 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Redmine REST connector.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Google Cloud Speech-to-Text and Translation Connector

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Unified modules.datamodels package.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
from typing import Optional, List, Dict, Any, Callable, TYPE_CHECKING, Tuple
from pydantic import BaseModel, Field, ConfigDict

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""AI Audit Log data model for Compliance & AI-Datenfluss tracking.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Audit Log Data Model for database-based audit logging.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Background job models: generic, reusable infrastructure for long-running tasks.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Base Pydantic model with system-managed fields (DB + API + UI metadata)."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Billing models: BillingAccount, BillingTransaction, BillingSettings, UsageStatistics."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Chat models: ChatWorkflow, ChatMessage, ChatLog, ChatDocument."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Content Object data models for the container and content extraction pipeline.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""DataSource and ExternalEntry models for external data integration.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Document reference models for typed document references in workflows.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
from typing import Any, Dict, List, Optional, Literal, Union
from pydantic import BaseModel, Field, field_serializer

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
from typing import Any, Dict, List, Optional, Literal
from pydantic import BaseModel, Field

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Feature models: Feature definitions, instances, data sources, and shared feature types."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""File-related datamodels: FileItem, FilePreview, FileData."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Invitation model for self-service onboarding.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Unified JSON document schema and helpers used by both generation prompts and renderers.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Knowledge Store data models: FileContentIndex, ContentChunk, WorkflowMemory.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Membership models: UserMandate, FeatureAccess, and Junction Tables.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Messaging models: MessagingSubscription, MessagingSubscriptionRegistration, MessagingDelivery."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Navigation structure data (Layer L1 - datamodels).

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Notification model for in-app notifications.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Pagination models for server-side pagination, sorting, and filtering.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Port type catalog and primitive types for the Graphical Editor workflow system."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
RBAC models: AccessRule, AccessRuleContext, Role.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Security models: Token and AuthEvent.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Subscription models: SubscriptionPlan (catalog), MandateSubscription (instance per mandate),
StripePlanPrice (persisted Stripe IDs per plan).

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Ticket datamodels used across Jira/ClickUp connectors."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Utility data models and classes for common tools and mappings.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
UAM models: User, Mandate, UserConnection.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Unified Document Model (UDM) — hierarchical document tree and ContentPart bridge."""
from __future__ import annotations

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""UI language sets: structured i18n entries (context, key, value)."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Utility datamodels: Prompt, TextMultilingual."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
View models for the /api/attributes/ endpoint.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Voice settings datamodel — re-exported from UAM for central voice preferences."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Workflow execution models for action definitions, AI responses, and workflow-level structures.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Workflow Action models: WorkflowActionParameter, WorkflowActionDefinition."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Workflow Automation models: AutoWorkflow, AutoVersion, AutoRun, AutoStepLog, AutoTask.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Shared service exception classes.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""AI Audit Logger — records every AI provider call for compliance reporting.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Audit Logging System for PowerOn Gateway

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Database optimizations for Multi-Tenant model.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Dynamic database registry each interface self-registers its DB on import.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
FK label resolution: resolve foreign-key IDs to human-readable labels.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
FK-Discovery scans the Model-Registry for `fk_target` annotations and

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Pagination, filtering and sorting helpers for paginated record sets.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Feature - Data Models.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Interface to CommCoach database.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Feature Container - Main Module.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach routes for the backend API.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Service - Coaching Orchestration.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach AI Service.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Context Retrieval.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Export Service.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Gamification - Badge definitions and award logic.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Session Indexer.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Personas - Built-in roleplay persona definitions.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
CommCoach Scheduler Service.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Tests for CommCoach context retrieval (intent detection, session lookup)."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Tests for CommCoach data models.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Tests for CommCoach feature registration module.

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Tests for CommCoach AI service (prompt building and response parsing).

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""Neutralizer models: DataNeutraliserConfig and DataNeutralizerAttributes."""

View file

@ -1,4 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# Copyright (c) 2026 PowerOn AG
# All rights reserved.
"""
Database interface for the Neutralizer feature.

Some files were not shown because too many files have changed in this diff Show more