repo stringclasses 454
values | file_path stringlengths 5 201 | extension stringclasses 1
value | content stringlengths 8 509k | num_lines int64 3 16.9k | size_bytes int64 8 511k |
|---|---|---|---|---|---|
QwenPaw | plugins/bundle/cloudpaw/prompts/master_prompt.py | .py | # -*- coding: utf-8 -*-
"""CloudPaw master prompt for Mission Mode.
Replaces the default QwenPaw master prompt with CloudPaw-specific
instructions for PRD management (manage_prd tool), agent delegation,
and Alibaba Cloud deployment orchestration.
Worker and verifier prompt templates are reused from the upstream
QwenP... | 635 | 26,640 |
QwenPaw | plugins/bundle/cloudpaw/skills/terraform-cli-setup/scripts/setup_terraform.py | .py | #!/usr/bin/env python3
"""
Terraform CLI 一键安装与版本检测脚本。
功能:
1. 检测 Terraform 是否已安装
2. 未安装时根据操作系统自动下载安装
3. 输出版本信息确认安装成功
用法:
python setup_terraform.py [--skip-install] [--json]
"""
from __future__ import annotations
import argparse
import json
import os
import platform
import re
import shutil
import subprocess
impor... | 233 | 7,215 |
QwenPaw | plugins/bundle/cloudpaw/modules/__init__.py | .py | # -*- coding: utf-8 -*-
"""CloudPaw plugin modules."""
| 3 | 55 |
QwenPaw | plugins/bundle/cloudpaw/modules/a2a/__init__.py | .py | # -*- coding: utf-8 -*-
"""A2A client module for CloudPaw.
Provides Agent-to-Agent communication capabilities:
- GatewayTokenProvider: AK-SK → Bearer Token
- BearerTokenInterceptor: SDK interceptor for auth injection
- GatewayAdapter: URL /rpc + A2A-Version adaptations
- A2AClientManager: Client lifecycle and connecti... | 10 | 340 |
QwenPaw | plugins/bundle/cloudpaw/modules/a2a/gateway_token.py | .py | # -*- coding: utf-8 -*-
"""Gateway Token Provider: AK-SK → Bearer Token.
Calls aliyun CLI to exchange Alibaba Cloud AK-SK credentials
for a Bearer Token used by the intelligent gateway A2A endpoint.
Supports token caching and automatic refresh.
"""
import asyncio
import json
import logging
import os
import time
logg... | 118 | 3,525 |
QwenPaw | plugins/bundle/cloudpaw/modules/a2a/call_stream.py | .py | # -*- coding: utf-8 -*-
"""In-process SSE stream for a2a_call tool progress.
a2a_call pushes incremental events into start_stream() queue while it
runs. The /a2a/call/stream REST endpoint reads from read_stream_sse()
and forwards them to the frontend as Server-Sent Events, enabling
real-time display without relying o... | 90 | 2,495 |
QwenPaw | plugins/bundle/cloudpaw/modules/a2a/auth_interceptor.py | .py | # -*- coding: utf-8 -*-
"""Auth token injection helpers for A2A requests.
Provides simple functions for building auth headers instead of SDK
interceptors. Used by A2AClientManager to inject Bearer Token into
httpx requests.
"""
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
... | 38 | 1,116 |
QwenPaw | plugins/bundle/cloudpaw/modules/a2a/gateway_adapter.py | .py | # -*- coding: utf-8 -*-
"""Gateway adapter: URL /rpc suffix + A2A-Version header override.
The Alibaba Cloud intelligent gateway requires:
1. JSON-RPC endpoint at {base_url}/rpc (not the card's URL directly)
2. A2A-Version header = "1.0.0" (SDK default is "1.0")
"""
from __future__ import annotations
import logging
... | 38 | 1,081 |
QwenPaw | plugins/bundle/cloudpaw/modules/a2a/client_manager.py | .py | # -*- coding: utf-8 -*-
"""A2A Client Manager: manage A2A 1.0 connections without SDK dependency.
Implements the A2A 1.0 JSON-RPC + SSE protocol directly using httpx
and httpx-sse, providing a unified interface for both generic A2A
and intelligent gateway scenarios.
"""
from __future__ import annotations
import json... | 417 | 13,602 |
QwenPaw | plugins/bundle/omp_workflows/plugin.py | .py | # -*- coding: utf-8 -*-
"""OMP Workflows plugin — registers five workflow AgentModes."""
import logging
from pathlib import Path
logger = logging.getLogger("qwenpaw").getChild("plugin.omp_workflows")
_PLUGIN_DIR = Path(__file__).parent
class OMPWorkflowsPlugin:
"""Plugin entry point for Oh My Paw workflow mode... | 39 | 1,026 |
QwenPaw | plugins/bundle/omp_workflows/ralph/gate.py | .py | # -*- coding: utf-8 -*-
"""Ralph gate — PRD-driven continuous loop with reviewer + deslop."""
from __future__ import annotations
import asyncio
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, Optional
from qwenpaw.loop.gates.base import StopAction, StopHandlerResult
from qwe... | 165 | 4,880 |
QwenPaw | plugins/bundle/omp_workflows/ralph/mode.py | .py | # -*- coding: utf-8 -*-
"""RalphMode — PRD-driven continuous implementation loop."""
from __future__ import annotations
import asyncio
import logging
from pathlib import Path
from typing import TYPE_CHECKING, Optional
from qwenpaw.runtime.slash_command_registry import CommandSpec
from ..shared.args import split_arg... | 104 | 2,946 |
QwenPaw | plugins/bundle/omp_workflows/ralph/prompts.py | .py | # -*- coding: utf-8 -*-
"""Ralph continuation prompt templates."""
from __future__ import annotations
from pathlib import Path
from ..shared.role_prompts import format_spawn_call, resolve_role
def build_continuation(
iteration: int,
max_iterations: int,
critic_type: str,
no_deslop: bool,
loop_d... | 94 | 2,992 |
QwenPaw | plugins/bundle/omp_workflows/ultraqa/gate.py | .py | # -*- coding: utf-8 -*-
"""UltraQA gate — 3-agent QA cycle with stop conditions."""
from __future__ import annotations
import asyncio
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, Optional
from qwenpaw.loop.gates.base import StopAction, StopHandlerResult
from qwenpaw.loop.... | 161 | 4,667 |
QwenPaw | plugins/bundle/omp_workflows/ultraqa/mode.py | .py | # -*- coding: utf-8 -*-
"""UltraQAMode — QA cycle engine with 3-agent collaboration."""
from __future__ import annotations
import asyncio
import logging
from pathlib import Path
from typing import TYPE_CHECKING, Optional
from qwenpaw.runtime.slash_command_registry import CommandSpec
from ..shared.args import split_... | 113 | 3,151 |
QwenPaw | plugins/bundle/omp_workflows/ultraqa/prompts.py | .py | # -*- coding: utf-8 -*-
"""UltraQA continuation prompt templates."""
from __future__ import annotations
from pathlib import Path
from ..shared.role_prompts import format_spawn_call
def build_continuation(
cycle: int,
max_cycles: int,
goal_type: str,
custom_cmd: str,
last_failures: list[str],
... | 85 | 2,419 |
QwenPaw | plugins/bundle/omp_workflows/shared/state.py | .py | # -*- coding: utf-8 -*-
"""WorkflowState — state directory and file management for OMP modes."""
from __future__ import annotations
import json
import logging
import shutil
import time
import uuid
from pathlib import Path
from typing import Any
logger = logging.getLogger(__name__)
class WorkflowState:
"""Manag... | 153 | 5,129 |
QwenPaw | plugins/bundle/omp_workflows/shared/mode_base.py | .py | # -*- coding: utf-8 -*-
"""Shared AgentMode scaffolding for OMP workflow modes."""
from __future__ import annotations
import logging
import weakref
from typing import Any, ClassVar
from agentscope.message import Msg, TextBlock
from qwenpaw.modes.base import AgentMode
from qwenpaw.runtime.hooks import HookContext
l... | 132 | 4,267 |
QwenPaw | plugins/bundle/omp_workflows/shared/loop_ui_i18n.py | .py | # -*- coding: utf-8 -*-
"""OMP loop UI copy: names, menu summaries, and full help texts.
Menu short copy is bilingual (en / zh-CN). Full ``help`` is English for now;
zh-CN can be added later without changing call sites.
"""
from __future__ import annotations
from typing import Any
LOOP_UI_I18N: dict[str, dict[str, ... | 162 | 5,418 |
QwenPaw | plugins/bundle/omp_workflows/shared/constants.py | .py | # -*- coding: utf-8 -*-
"""Shared constants for OMP workflow modes."""
from __future__ import annotations
# ---------------------------------------------------------------------------
# Registered tool names used in OMP role configs / controller prompts.
# Keep in sync with QwenPaw ToolRegistry names (not display lab... | 81 | 2,374 |
QwenPaw | plugins/bundle/omp_workflows/shared/args.py | .py | # -*- coding: utf-8 -*-
"""Shared slash-command argument parsing helpers."""
from __future__ import annotations
import shlex
def split_args(raw: str) -> list[str] | None:
"""Split *raw* with shlex; return ``None`` on unbalanced quotes."""
try:
return shlex.split(raw)
except ValueError:
r... | 15 | 331 |
QwenPaw | plugins/bundle/omp_workflows/shared/fork_guard.py | .py | # -*- coding: utf-8 -*-
"""Hard checks for forked-worker integration before phase advance."""
from __future__ import annotations
from pathlib import Path
from typing import Any
def forks_integrated(
state: dict[str, Any] | None,
workspace_dir: Path | str | None = None,
) -> bool:
"""Return True when the... | 67 | 2,511 |
QwenPaw | plugins/bundle/omp_workflows/shared/role_prompts.py | .py | # -*- coding: utf-8 -*-
"""Reusable role identity prompts and spawn_subagent formatting."""
from __future__ import annotations
from .constants import ROLE_ALLOWED_TOOLS, ROLE_SKILLS
try:
from qwenpaw.agents.fork_project import FORK_WORKER_COMMIT_PROTOCOL
except ImportError: # pragma: no cover - offline / partia... | 241 | 8,229 |
QwenPaw | plugins/bundle/omp_workflows/ultrawork/gate.py | .py | # -*- coding: utf-8 -*-
"""Ultrawork gate — two-phase working/done gate."""
from __future__ import annotations
import asyncio
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Optional
from qwenpaw.loop.gates.base import StopAction, StopHandlerResult
from qwenpaw.loop.gates.loop_gate... | 149 | 4,657 |
QwenPaw | plugins/bundle/omp_workflows/ultrawork/mode.py | .py | # -*- coding: utf-8 -*-
"""UltraworkMode — parallel execution engine."""
from __future__ import annotations
import asyncio
import logging
from pathlib import Path
from typing import TYPE_CHECKING, Optional
from qwenpaw.runtime.slash_command_registry import CommandSpec
from ..shared.loop_ui_i18n import loop_command_... | 72 | 2,106 |
QwenPaw | plugins/bundle/omp_workflows/ultrawork/prompts.py | .py | # -*- coding: utf-8 -*-
"""Ultrawork continuation prompt templates."""
from __future__ import annotations
from pathlib import Path
from ..shared.constants import ULTRAWORK_MAX_ITERATIONS
from ..shared.role_prompts import (
fork_merge_instructions,
format_batch_item,
tools_literal,
)
def build_continuat... | 68 | 1,837 |
QwenPaw | plugins/bundle/omp_workflows/team/gate.py | .py | # -*- coding: utf-8 -*-
"""Team pipeline gate — 5-phase with fix retry limit."""
from __future__ import annotations
import asyncio
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Optional
from qwenpaw.loop.gates.base import StopAction, StopHandlerResult
from qwenpaw.loop.gates.loop... | 198 | 6,083 |
QwenPaw | plugins/bundle/omp_workflows/team/mode.py | .py | # -*- coding: utf-8 -*-
"""TeamMode — multi-agent collaboration pipeline."""
from __future__ import annotations
import asyncio
import logging
import re
from pathlib import Path
from typing import TYPE_CHECKING, Optional
from qwenpaw.runtime.slash_command_registry import CommandSpec
from ..shared.args import split_a... | 114 | 3,266 |
QwenPaw | plugins/bundle/omp_workflows/team/prompts.py | .py | # -*- coding: utf-8 -*-
"""Team pipeline continuation prompt templates."""
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
from ..shared.role_prompts import (
fork_merge_instructions,
format_batch_item,
format_spawn_call,
tools_literal,
)
@dataclass(fro... | 200 | 5,730 |
QwenPaw | plugins/bundle/omp_workflows/autopilot/gate.py | .py | # -*- coding: utf-8 -*-
"""Autopilot gate — lifecycle pipeline with cleanup + completed."""
from __future__ import annotations
import asyncio
from dataclasses import dataclass, field
from pathlib import Path
from typing import Any, Optional
from qwenpaw.loop.gates.base import StopAction, StopHandlerResult
from qwenp... | 213 | 6,627 |
QwenPaw | plugins/bundle/omp_workflows/autopilot/mode.py | .py | # -*- coding: utf-8 -*-
"""AutopilotMode — full lifecycle pipeline."""
from __future__ import annotations
import asyncio
import logging
from pathlib import Path
from typing import TYPE_CHECKING, Optional
from qwenpaw.runtime.slash_command_registry import CommandSpec
from ..shared.args import split_args
from ..share... | 105 | 2,971 |
QwenPaw | plugins/bundle/omp_workflows/autopilot/prompts.py | .py | # -*- coding: utf-8 -*-
"""Autopilot continuation prompt templates — one per phase."""
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
from ..shared.role_prompts import (
fork_merge_instructions,
format_batch_item,
format_spawn_call,
)
PHASES = (
"expans... | 233 | 6,912 |
QwenPaw | plugins/bundle/computer-use/plugin.py | .py | # -*- coding: utf-8 -*-
"""Computer Use tool plugin entry point.
Provides the ``computer_use`` desktop-automation tool, its governance
metadata, and the window-bound usage skill. Windows and macOS are supported
through the native helper; the tool is skipped where no helper runtime is
available.
"""
from __future__ im... | 179 | 5,718 |
QwenPaw | plugins/bundle/computer-use/computer_use/approval.py | .py | # -*- coding: utf-8 -*-
"""Translate native App approval requests into the Core approval service."""
from __future__ import annotations
import asyncio
from collections.abc import Mapping
from typing import Any
from qwenpaw.app.approvals import ApprovalRequestSummary, get_approval_service
from qwenpaw.config.context ... | 165 | 6,384 |
QwenPaw | plugins/bundle/computer-use/computer_use/lifecycle.py | .py | # -*- coding: utf-8 -*-
"""Retiring a Computer Use turn when the request that opened it finishes.
The host mints a fresh turn id for every request, in a request-setup hook. This
is the other half of that: a hook in the FINALLY phase, which the runtime runs
inside a `finally` block, so the turn is released whether the ... | 54 | 1,679 |
QwenPaw | plugins/bundle/computer-use/computer_use/feature_state.py | .py | # -*- coding: utf-8 -*-
"""Installation-scoped on/off switch for the Computer Use feature."""
from __future__ import annotations
import json
import logging
import os
from pathlib import Path
from threading import RLock
_LOGGER = logging.getLogger(__name__)
def _default_state_path() -> Path:
from qwenpaw.consta... | 107 | 3,896 |
QwenPaw | plugins/bundle/computer-use/computer_use/__init__.py | .py | # -*- coding: utf-8 -*-
"""computer_use tool package (plugin-provided)."""
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .dispatch import computer_use
__all__ = ["computer_use"]
def __getattr__(name: str):
"""Load the host-bound tool entry point only when it is... | 21 | 465 |
QwenPaw | plugins/bundle/computer-use/computer_use/router.py | .py | # -*- coding: utf-8 -*-
"""Session-scoped controls for the Computer Use plugin page."""
from __future__ import annotations
from typing import Literal
from fastapi import APIRouter, HTTPException, Query
from pydantic import BaseModel, Field
from qwenpaw.app.approvals import get_approval_service
from qwenpaw.app.comp... | 207 | 7,148 |
QwenPaw | plugins/bundle/computer-use/computer_use/protocol.py | .py | # -*- coding: utf-8 -*-
"""Protocol models shared by the Computer Use client and transports."""
from __future__ import annotations
import uuid
from dataclasses import dataclass
from typing import Any, Mapping
from qwenpaw.app.computer_use import COMPUTER_USE_PROTOCOL_VERSION
PROTOCOL_VERSION = COMPUTER_USE_PROTOCOL... | 120 | 3,664 |
QwenPaw | plugins/bundle/computer-use/computer_use/client.py | .py | # -*- coding: utf-8 -*-
"""Controlled client for the host-managed Computer Use native runtime."""
from __future__ import annotations
import asyncio
import sys
import threading
import uuid
from collections.abc import Awaitable, Callable, Mapping
from typing import Any
from qwenpaw.app.computer_use import (
HostRu... | 663 | 26,451 |
QwenPaw | plugins/bundle/computer-use/computer_use/dispatch.py | .py | # -*- coding: utf-8 -*-
"""Thin tool adapter for the host-managed Computer Use runtime."""
# NOTE: no `from __future__ import annotations` here, deliberately. The tool
# entry point below is handed to the runtime's JSON-schema builder, which
# resolves annotations in a namespace without our typing imports; stringized
... | 519 | 18,501 |
QwenPaw | plugins/bundle/computer-use/computer_use/access.py | .py | # -*- coding: utf-8 -*-
"""Application access decisions owned by the Computer Use plugin."""
from __future__ import annotations
import json
import os
from dataclasses import asdict, dataclass
from pathlib import Path
from threading import RLock
from typing import Mapping
@dataclass(frozen=True)
class AppApprovalReq... | 198 | 7,047 |
QwenPaw | plugins/bundle/computer-use/computer_use/transport/unix_socket.py | .py | # -*- coding: utf-8 -*-
"""Unix domain socket transport for the host-managed Computer Use helper.
This mirrors :class:`WindowsPipeTransport` on macOS. The wire protocol,
handshake, request correlation, and reverse app-approval behavior are
identical; only the byte transport differs (an ``asyncio`` Unix domain
socket i... | 335 | 12,985 |
QwenPaw | plugins/bundle/computer-use/computer_use/transport/__init__.py | .py | # -*- coding: utf-8 -*-
"""Host capability transports for Computer Use."""
from .base import ComputerUseTransport, ReverseRequestHandler
from .unix_socket import UnixSocketTransport
from .windows_pipe import WindowsPipeTransport
__all__ = [
"ComputerUseTransport",
"ReverseRequestHandler",
"UnixSocketTrans... | 14 | 357 |
QwenPaw | plugins/bundle/computer-use/computer_use/transport/base.py | .py | # -*- coding: utf-8 -*-
"""Framing-neutral controlled transport contract."""
from __future__ import annotations
from abc import ABC, abstractmethod
from collections.abc import Awaitable, Callable, Mapping
from typing import Any
ReverseRequestHandler = Callable[
[Mapping[str, Any]],
Awaitable[dict[str, Any]],... | 37 | 1,035 |
QwenPaw | plugins/bundle/computer-use/computer_use/transport/windows_pipe.py | .py | # -*- coding: utf-8 -*-
"""Windows named-pipe transport for the host-managed Computer Use helper."""
# The capability's endpoint name and secret are deliberately private so they
# cannot leak into tool inputs; a transport is their only intended reader.
# pylint: disable=protected-access
from __future__ import annotat... | 649 | 23,018 |
QwenPaw | plugins/bundle/chrome/__init__.py | .py | # -*- coding: utf-8 -*-
"""Chrome browser integration plugin."""
| 3 | 65 |
QwenPaw | plugins/bundle/chrome/extension_setup.py | .py | # -*- coding: utf-8 -*-
"""Chrome extension setup command."""
from __future__ import annotations
import json
import os
import secrets
import shutil
import stat
import struct
import subprocess
import sys
import webbrowser
from ipaddress import ip_address
from pathlib import Path
from qwenpaw.config.utils import read_... | 892 | 29,614 |
QwenPaw | plugins/bundle/chrome/plugin.py | .py | # -*- coding: utf-8 -*-
"""Chrome plugin entry point."""
from __future__ import annotations
import logging
from qwenpaw.plugins.api import PluginApi
# Kept for the milestone-A bridge wiring contract. A semantic dispatcher is
# deliberately not registered until the later control milestone.
# no-name-in-module: astro... | 58 | 1,740 |
QwenPaw | plugins/bundle/chrome/transport/state.py | .py | # -*- coding: utf-8 -*-
"""Native Messaging bridge route state."""
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
@dataclass
class NMBridgeRouteState:
"""State shared by Chrome route module instances."""
token: str | None = None
ws_url: str = ""
config... | 28 | 571 |
QwenPaw | plugins/bundle/chrome/transport/__init__.py | .py | # -*- coding: utf-8 -*-
"""Plugin transport configuration types only; runtime bridge lives in core."""
__all__: list[str] = []
| 5 | 128 |
QwenPaw | plugins/bundle/chrome/api/__init__.py | .py | # -*- coding: utf-8 -*-
"""Chrome plugin HTTP API package."""
| 3 | 62 |
QwenPaw | plugins/bundle/chrome/api/routes.py | .py | # -*- coding: utf-8 -*-
"""HTTP-only Chrome extension installation and status routes."""
# pylint: disable=relative-beyond-top-level
from __future__ import annotations
import asyncio
import json
import secrets
import threading
from pathlib import Path
from typing import Any
from fastapi import APIRouter, HTTPExcepti... | 174 | 5,439 |
QwenPaw | plugins/bundle/chrome/assets/scripts/nm_host.py | .py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Single-backend Native Messaging dumb pipe for QwenPaw."""
from __future__ import annotations
import asyncio
import inspect
import json
import os
import re
import struct
import sys
import time
from datetime import datetime, timezone
from pathlib import Path
from typing... | 494 | 16,159 |
QwenPaw | plugins/bundle/chrome/assets/scripts/build_fingerprint.py | .py | # -*- coding: utf-8 -*-
"""Fallback build fingerprint for source-tree Native Messaging execution."""
BUILD_FINGERPRINT: dict[str, str | None] = {
"commit": "unknown",
"builtAt": None,
}
| 8 | 195 |
QwenPaw | plugins/bundle/chrome/assets/scripts/handshake.py | .py | # -*- coding: utf-8 -*-
"""Hello handshake helpers for chrome backend connections."""
from __future__ import annotations
import asyncio
import json
from typing import Any
try:
from .protocol_mirror import PROTOCOL_VERSION, contract_snapshot
except ImportError:
from protocol_mirror import PROTOCOL_VERSION, co... | 141 | 4,235 |
QwenPaw | plugins/bundle/chrome/assets/scripts/protocol_mirror.py | .py | # -*- coding: utf-8 -*-
"""Plugin-local mirror of the core Chrome wire protocol; never import core."""
PROTOCOL_VERSION = 2
MIN_COMPATIBLE_PROTOCOL_VERSION = 2
# Chrome Native Messaging hard limits. Protocol facts, not tunables.
NM_MAX_INBOUND_BYTES = 64 * 1024 * 1024
NM_MAX_OUTBOUND_BYTES = 1024 * 1024
# Application-... | 59 | 1,807 |
QwenPaw | plugins/channel/azure_bot/channel.py | .py | # -*- coding: utf-8 -*-
# pylint: disable=too-many-instance-attributes
"""Azure Bot Service channel: Bot Framework webhook + REST API."""
from __future__ import annotations
import asyncio
import base64
import json
import logging
import mimetypes
import os
import time
from pathlib import Path
from typing import Any, D... | 1,657 | 54,503 |
QwenPaw | plugins/channel/azure_bot/__init__.py | .py | # -*- coding: utf-8 -*-
"""Azure Bot Service channel for QwenPaw."""
from .channel import AzureBotChannel
__all__ = ["AzureBotChannel"]
| 7 | 138 |
QwenPaw | plugins/channel/azure_bot/constants.py | .py | # -*- coding: utf-8 -*-
"""Azure Bot Service channel constants."""
# Default HTTP port for the Azure Bot webhook server
AZURE_BOT_DEFAULT_PORT = 3978
# Bot Framework OpenID Metadata endpoint for JWT validation.
AZURE_BOT_OPENID_METADATA_URL = (
"https://login.botframework.com/v1/.well-known/openidconfiguration"
)... | 20 | 642 |
QwenPaw | plugins/channel/azure_bot/auth.py | .py | # -*- coding: utf-8 -*-
"""JWT token validation for inbound Azure Bot Service requests."""
from __future__ import annotations
import logging
import time
from typing import Optional
import aiohttp
import jwt
from jwt import PyJWKClient
from .constants import (
AZURE_BOT_JWKS_CACHE_TTL_S,
AZURE_BOT_OPENID_MET... | 168 | 5,063 |
QwenPaw | plugins/channel/azure_bot/plugin.py | .py | # -*- coding: utf-8 -*-
"""Azure Bot Service channel plugin entry point."""
import logging
from qwenpaw.plugins.api import PluginApi
logger = logging.getLogger(__name__)
class AzureBotChannelPlugin:
"""Azure Bot Service channel plugin."""
def register(self, api: PluginApi):
"""Register the Azure B... | 314 | 14,998 |
QwenPaw | e2e/conftest.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw E2E Test Framework - Pytest Configuration
"""
from __future__ import annotations
import sys
import os
import time
import logging
from pathlib import Path
# Add the project root to the Python path
project_root = Path(__file__).parent
sys.path.insert(0, str(project_root))
import pyt... | 433 | 15,742 |
QwenPaw | e2e/config/__init__.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw E2E Test Framework - Configuration Module
"""
from config.settings import config, get_config, Config, BrowserConfig, ServerConfig, TestConfig, PathConfig
__all__ = [
"config",
"get_config",
"Config",
"BrowserConfig",
"ServerConfig",
"TestConfig",
"PathCon... | 16 | 328 |
QwenPaw | e2e/config/settings.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw E2E Test Framework Configuration Module
Provides unified configuration management with environment variable overrides.
"""
from __future__ import annotations
import os
from pathlib import Path
from dataclasses import dataclass, field
from typing import Optional
@dataclass
class B... | 227 | 7,928 |
QwenPaw | e2e/tests/test_chat_sidebar.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Chat sidebar & multi-tab end-to-end tests (Sprint 4).
Cases:
- SIDEBAR-001 P1 test_sidebar_date_groups_and_collapse (upstream #5643)
- MULTITAB-001 P2 test_non_owner_tab_shows_queue_banner (upstream #5664)
SIDEBAR-001 mocks ``GET /api/chats?archived=false`` via page.route be... | 188 | 7,019 |
QwenPaw | e2e/tests/test_acp.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw ACP (Agent Communication Protocol) management module end-to-end tests
ACP module tests:
- ACP-001: ACP page load and card list display (P0)
- ACP-002: Create ACP drawer form validation (P0)
- ACP-003: ACP enable/disable toggle (P0)
- ACP-004: Filter tab switching (All/Builtin/Custom... | 923 | 37,634 |
QwenPaw | e2e/tests/test_slash_commands.py | .py | # -*- coding: utf-8 -*-
"""Slash command e2e cases.
These cases drive QwenPaw's slash commands purely through the chat
input box (textarea + send button). The assertion path is the AI
bubble's rendered text — the same DOM elements a real user sees.
Why we don't use ``ChatPage.send_message_and_wait`` here:
its "round ... | 386 | 13,619 |
QwenPaw | e2e/tests/test_skills.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Skills module P0 end-to-end test cases.
Combined test design:
- SKILL-001: Page load verification + card info hard-assert + search filter + clear restore
- SKILL-002: Action button hard-assert + enable/disable toggle hard-assert + batch mode
- SKILL-003: Skill create/edit/delete ful... | 1,081 | 47,335 |
QwenPaw | e2e/tests/test_smoke_infrastructure.py | .py | # -*- coding: utf-8 -*-
"""
UI smoke test: validates mock API infrastructure works correctly.
This test uses page.route() to mock all API responses, so it only
needs a frontend dev server — no backend or API keys required.
"""
from __future__ import annotations
import pytest
from playwright.sync_api import Page
from... | 85 | 2,548 |
QwenPaw | e2e/tests/test_debug.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Debug page E2E tests
Functional coverage:
1. Debug page load and basic display
2. Backend log card display
3. Log level filter (All/ERROR/WARNING/INFO/DEBUG)
4. Keyword search and highlight
5. Auto-refresh toggle
6. Newest-first sort toggle
7. Manual refresh button
8. Copy logs butt... | 382 | 14,140 |
QwenPaw | e2e/tests/test_inbox.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Inbox end-to-end tests.
UI-driven only. Pure API contract tests for /api/console/inbox/* live
in ``tests/integration/test_inbox.py``. The Approvals tab is out of
scope (no seed surface; would require a real LLM-driven protected-tool
call).
Cases:
- INBOX-002 P0 test_inbox_page_ren... | 528 | 18,805 |
QwenPaw | e2e/tests/test_voice.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Voice Transcription module P0 end-to-end tests
Combined test design:
- VOICE-001: Voice page load + config display + help info
- VOICE-002: Voice service enable/disable
- VOICE-003: Voice service config (Twilio, etc.) + input validation
- VOICE-004: Voice channel status monitoring
-... | 448 | 20,912 |
QwenPaw | e2e/tests/test_backups.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Backups module end-to-end test cases.
Backups module tests:
- BACKUP-001: Backups page load and list display (P0)
- BACKUP-002: Create backup modal and cancel (P0)
- BACKUP-003: Create full backup flow (P0)
- BACKUP-004: Import backup button and file upload entry (P0)
- BACKUP-005: ... | 1,175 | 51,079 |
QwenPaw | e2e/tests/test_sessions.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Sessions module P0 end-to-end test cases.
P0 definition:
- Core user flows
- Multi-feature combined coverage
- Real user scenarios
- High-priority functionality
Stack: pytest + Playwright + Page Object Pattern
Run with: pytest tests/test_sessions_p0.py -v
"""
from __future__ import... | 799 | 34,464 |
QwenPaw | e2e/tests/test_security.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Security module P0-level end-to-end test cases.
Combined test cases:
- SEC-001: Tool Guard tab display + switch toggle + File Guard tab switch
- SEC-002: File Guard path input + add + Tool Guard protected-tools dropdown
- SEC-003: Security config save and persistence verification
R... | 1,005 | 47,066 |
QwenPaw | e2e/tests/test_skill_pool.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw E2E tests - Skill Pool P0 cases
Functional coverage:
1. Skill pool page load
2. Skill pool list display
3. Builtin skill source list
"""
from __future__ import annotations
import logging
import pytest
from playwright.sync_api import Page, expect
from config.settings import config
... | 776 | 31,604 |
QwenPaw | e2e/tests/test_models.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Local Models module P0 end-to-end test cases.
Combined test design:
- MODEL-001: Local models page load + model list display + server status + empty state
- MODEL-002: Model download flow + progress display + download completion verification
- MODEL-003: Start model service + port v... | 1,010 | 45,032 |
QwenPaw | e2e/tests/test_cronjobs.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw CronJobs module P0 end-to-end test cases.
P0 definition:
- Core user flows
- Multi-feature combined coverage
- Real user scenarios
- High-priority functionality
Stack: pytest + Playwright + Page Object Pattern
Run with: pytest tests/test_cronjobs_p0.py -v
"""
from __future__ import... | 902 | 40,227 |
QwenPaw | e2e/tests/test_mcp.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw MCP module P0 end-to-end tests
Combined test design:
- MCP-001: Page load + card info hard assertions + enable/disable toggle + state restore
- MCP-002: Create dialog open + title/format hint validation + JSON fill + cancel close
Run command: pytest tests/test_mcp_p0.py -v
"""
from... | 616 | 26,607 |
QwenPaw | e2e/tests/test_chat.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Chat module P0-level end-to-end test cases.
P0 criteria:
- Core user flows
- Combined coverage across multiple features
- Realistic user scenarios
- High-priority feature verification
Framework: pytest + Playwright + Page Object Pattern.
Run: pytest tests/test_chat_p0.py -v
"""
fro... | 984 | 36,836 |
QwenPaw | e2e/tests/test_login.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw E2E tests - Login/Auth P0 cases
Functional coverage:
1. Auth status API
2. Login page accessibility
"""
from __future__ import annotations
import logging
import pytest
from playwright.sync_api import Page, expect
from config.settings import config
from utils.helpers import log_tes... | 313 | 11,978 |
QwenPaw | e2e/tests/test_agents.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Agents module P0-level end-to-end test cases.
Combined test cases:
- AGENT-001: Agent list display and refresh
- AGENT-002: Create agent (full flow)
- AGENT-003: Edit agent info
- AGENT-004: Delete agent (with confirmation)
- AGENT-005: Enable/disable agent
- AGENT-006: Agent file m... | 988 | 40,961 |
QwenPaw | e2e/tests/test_heartbeat.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Heartbeat module P0 end-to-end tests
P0 definition:
- Core user operation flows
- Combined coverage of multiple features
- Real user scenario simulation
- High-priority functionality validation
Test framework: pytest + Playwright + Page Object Pattern
Run command: pytest tests/test... | 449 | 18,372 |
QwenPaw | e2e/tests/test_cross_module.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw cross-module end-to-end test cases.
Verify business linkages between multiple modules:
- CROSS-001: Skill full chain (Skills -> Agents -> Chat)
- CROSS-002: Model switching linkage (Models -> Chat)
- CROSS-003: Security interception linkage (Security -> Chat)
- CROSS-004: Workspace ... | 770 | 33,517 |
QwenPaw | e2e/tests/test_files.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw file management module P0 end-to-end test cases.
Combined test cases:
- FILE-001: Page load + file list hard-assert + click file to open editor + editor content verification
- FILE-002: Toggle switch hard-assert + drag reorder + reload restore
Run with: pytest tests/test_files_p0.p... | 780 | 32,785 |
QwenPaw | e2e/tests/test_plugins.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Plugin Manager end-to-end tests.
UI-driven only: any pure API/contract checks for the Plugin Manager
endpoints belong in ``tests/integration/`` (which already covers them).
Cases:
- PLUGIN-001 P0 test_plugin_manager_page_loads
- COMPAT-001 P1 test_market_compat_tags_render
- COMP... | 158 | 6,046 |
QwenPaw | e2e/tests/test_runtime_config.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Runtime Config (Agent Config) module P0 end-to-end test cases.
Combined test cases:
- AGCFG-001: ReAct agent tab display + language dropdown + timezone verification
- AGCFG-002: Tab switching (LLM retry / rate limiter / context compaction) + per-tab content verification
- AGCFG-003:... | 852 | 38,077 |
QwenPaw | e2e/tests/test_token_usage.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Token Usage module P0 end-to-end tests
Combined test design:
- TOKEN-001: Token usage page load + overview display + empty state validation
- TOKEN-002: Date range filter + quick options + data refresh
- TOKEN-003: Model filter + provider filter
- TOKEN-004: Data table display + pag... | 414 | 17,629 |
QwenPaw | e2e/tests/test_coding.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Coding Mode end-to-end tests.
Cases:
- CODE-001 P0 test_enter_and_exit_coding_mode
- CODE-002 P0 test_create_empty_project_and_open
- CODE-003 P1 test_open_existing_directory
- CODE-004 P1 test_chat_in_coding_mode_with_file_reference (requires_llm)
- CODE-00... | 366 | 13,709 |
QwenPaw | e2e/tests/test_channels.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Channels module end-to-end test cases.
Framework: pytest + Playwright + Page Object Pattern.
Run: pytest tests/test_channels.py -v
"""
from __future__ import annotations
import logging
import pytest
from playwright.sync_api import Page, expect, TimeoutError
from pages.channels_pag... | 945 | 42,918 |
QwenPaw | e2e/tests/test_environments.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Environments module P0 end-to-end test cases.
Combined test design:
- ENV-001: Page load + list display + empty state
- ENV-002: Add env var + cancel add + Key required validation
- ENV-003: Edit env var + update validation
- ENV-004: Delete env var + confirmation flow
- ENV-005: Mu... | 1,124 | 47,154 |
QwenPaw | e2e/tests/test_memory.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Long-term Memory end-to-end tests.
UI-driven only. Pure API contract tests for /api/workspace/memory and
/api/workspace/running-config live in ``tests/integration/``.
Cases:
- MEM-001 P1 test_auto_memory_interval_persistence
- MEM-002 P1 test_dream_cron_persistence
- MEM-003 P1 ... | 454 | 16,939 |
QwenPaw | e2e/tests/test_agent_stats.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw agent statistics dashboard module end-to-end tests
AgentStats module tests:
- ASTAT-001: Stats page load and summary cards display (P0)
- ASTAT-002: Date range picker interaction (P0)
- ASTAT-003: Trend chart area display (P0)
- ASTAT-004: Channel distribution pie chart display (P1)... | 707 | 29,114 |
QwenPaw | e2e/tests/test_tools.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw built-in tools management module P0 end-to-end test cases.
Tool module tests:
- TOOL-001: Page display + global toggle + tool card verification
- TOOL-002: Per-tool enable/disable + async-execute toggle
- TOOL-003: Global toggle state consistency
Stack: pytest + Playwright
Run with... | 666 | 31,190 |
QwenPaw | e2e/tests/conftest.py | .py | # -*- coding: utf-8 -*-
"""
Tests-level conftest: session-scoped seed data for E2E tests.
Ensures a test skill exists before any skill-related test runs.
This is necessary because a clean (isolated) backend starts with
no skills in the workspace directory.
"""
from __future__ import annotations
import logging
import ... | 175 | 6,091 |
QwenPaw | e2e/pages/agent_stats_page.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw AgentStats agent statistics page object.
Wraps all interactions on the agent statistics dashboard page and exposes
business-level methods.
"""
from __future__ import annotations
import logging
from typing import Optional, List
from playwright.sync_api import Page, Locator, expect
... | 228 | 8,342 |
QwenPaw | e2e/pages/security_page.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Security page object.
Wraps all interactions on the Security page and exposes business-level methods.
"""
from __future__ import annotations
import logging
from typing import Optional, List, Dict, Any
from playwright.sync_api import Page, Locator, expect, TimeoutError
from pages.b... | 190 | 6,162 |
QwenPaw | e2e/pages/memory_page.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Long-term Memory page object.
Wraps backend API helpers for daily memory file CRUD and the running
config (which holds ``reme_light_memory_config``), plus locator
anchors for the Long-term Memory card on /agent-config.
Cases covered:
- MEM-001 P1 test_auto_memory_interval_persiste... | 225 | 8,128 |
QwenPaw | e2e/pages/chat_page.py | .py | # -*- coding: utf-8 -*-
"""
QwenPaw Chat page object.
Wraps all interactions on the Chat page and exposes business-level methods.
"""
from __future__ import annotations
import logging
import re
from typing import Optional, List, Tuple
from pathlib import Path
from playwright.sync_api import Page, Locator, expect, Tim... | 1,469 | 58,076 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.