mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
chore: mark security/ and resolver/ as Legacy V0 (#13062)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import base64
|
import base64
|
||||||
import re
|
import re
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import base64
|
import base64
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from typing import Any
|
from typing import Any
|
||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import json
|
import json
|
||||||
from typing import Iterable
|
from typing import Iterable
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from openhands.core.config import LLMConfig
|
from openhands.core.config import LLMConfig
|
||||||
from openhands.integrations.provider import ProviderType
|
from openhands.integrations.provider import ProviderType
|
||||||
from openhands.resolver.interfaces.azure_devops import AzureDevOpsIssueHandler
|
from openhands.resolver.interfaces.azure_devops import AzureDevOpsIssueHandler
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# flake8: noqa: E501
|
# flake8: noqa: E501
|
||||||
|
|
||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import asyncio
|
import asyncio
|
||||||
import dataclasses
|
import dataclasses
|
||||||
import json
|
import json
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import os.path
|
import os.path
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
class PatchingException(Exception):
|
class PatchingException(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,11 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import base64
|
import base64
|
||||||
import re
|
import re
|
||||||
import zlib
|
import zlib
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# flake8: noqa: E501
|
# flake8: noqa: E501
|
||||||
|
|
||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from openhands.resolver.issue_resolver import IssueResolver
|
from openhands.resolver.issue_resolver import IssueResolver
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from litellm import BaseModel
|
from litellm import BaseModel
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import logging
|
import logging
|
||||||
import multiprocessing as mp
|
import multiprocessing as mp
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from fastapi import Request
|
from fastapi import Request
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
"""GraySwan security analyzer for OpenHands."""
|
"""GraySwan security analyzer for OpenHands."""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
"""Utility for converting OpenHands events to OpenAI message format."""
|
"""Utility for converting OpenHands events to OpenAI message format."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import re
|
import re
|
||||||
import uuid
|
import uuid
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
import time
|
import time
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from typing import Any, Iterable
|
from typing import Any, Iterable
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
from openhands.core.logger import openhands_logger as logger
|
from openhands.core.logger import openhands_logger as logger
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
DEFAULT_INVARIANT_POLICY = """from invariant.detectors import semgrep, secrets, CodeIssue
|
DEFAULT_INVARIANT_POLICY = """from invariant.detectors import semgrep, secrets, CodeIssue
|
||||||
|
|
||||||
raise "Disallow secrets in bash commands [risk=medium]" if:
|
raise "Disallow secrets in bash commands [risk=medium]" if:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
"""Security analyzer that uses LLM-provided risk assessments."""
|
"""Security analyzer that uses LLM-provided risk assessments."""
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# IMPORTANT: LEGACY V0 CODE - Deprecated since version 1.0.0, scheduled for removal April 1, 2026
|
||||||
|
# This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1.
|
||||||
|
# OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to:
|
||||||
|
# - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk
|
||||||
|
# - V1 application server (in this repo): openhands/app_server/
|
||||||
|
# Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above.
|
||||||
|
# Tag: Legacy-V0
|
||||||
from openhands.security.analyzer import SecurityAnalyzer
|
from openhands.security.analyzer import SecurityAnalyzer
|
||||||
from openhands.security.grayswan.analyzer import GraySwanAnalyzer
|
from openhands.security.grayswan.analyzer import GraySwanAnalyzer
|
||||||
from openhands.security.invariant.analyzer import InvariantAnalyzer
|
from openhands.security.invariant.analyzer import InvariantAnalyzer
|
||||||
|
|||||||
Reference in New Issue
Block a user