update the codebase and clean up it

This commit is contained in:
Abdelrahman Abdallah
2026-04-06 03:42:44 +02:00
parent 2217a0c98c
commit a54c90b18f
89 changed files with 1802 additions and 1181 deletions
-19
View File
@@ -1,19 +0,0 @@
from __future__ import annotations
from .query_engine import QueryEnginePort
from .runtime import PortRuntime
class QueryEngineRuntime(QueryEnginePort):
def route(self, prompt: str, limit: int = 5) -> str:
matches = PortRuntime().route_prompt(prompt, limit=limit)
lines = ['# Query Engine Route', '', f'Prompt: {prompt}', '']
if not matches:
lines.append('No mirrored command/tool matches found.')
return '\n'.join(lines)
lines.append('Matches:')
lines.extend(f'- [{match.kind}] {match.name} ({match.score}) — {match.source_hint}' for match in matches)
return '\n'.join(lines)
__all__ = ['QueryEnginePort', 'QueryEngineRuntime']
-15
View File
@@ -1,15 +0,0 @@
from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True)
class ToolDefinition:
name: str
purpose: str
DEFAULT_TOOLS = (
ToolDefinition('port_manifest', 'Summarize the active Python workspace'),
ToolDefinition('query_engine', 'Render a Python-first porting summary'),
)
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `assistant` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'assistant.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `bootstrap` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'bootstrap.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `bridge` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'bridge.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `buddy` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'buddy.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `cli` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'cli.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `components` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'components.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `constants` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'constants.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `coordinator` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'coordinator.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-8
View File
@@ -1,8 +0,0 @@
from __future__ import annotations
from .cost_tracker import CostTracker
def apply_cost_hook(tracker: CostTracker, label: str, units: int) -> CostTracker:
tracker.record(label, units)
return tracker
-15
View File
@@ -1,15 +0,0 @@
from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True)
class DialogLauncher:
name: str
description: str
DEFAULT_DIALOGS = (
DialogLauncher('summary', 'Launch the Markdown summary view'),
DialogLauncher('parity_audit', 'Launch the parity audit view'),
)
-21
View File
@@ -1,21 +0,0 @@
from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True)
class DirectModeReport:
mode: str
target: str
active: bool
def as_text(self) -> str:
return f'mode={self.mode}\ntarget={self.target}\nactive={self.active}'
def run_direct_connect(target: str) -> DirectModeReport:
return DirectModeReport(mode='direct-connect', target=target, active=True)
def run_deep_link(target: str) -> DirectModeReport:
return DirectModeReport(mode='deep-link', target=target, active=True)
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `entrypoints` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'entrypoints.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `hooks` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'hooks.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-6
View File
@@ -1,6 +0,0 @@
from __future__ import annotations
def render_markdown_panel(text: str) -> str:
border = '=' * 40
return f"{border}\n{text}\n{border}"
-5
View File
@@ -1,5 +0,0 @@
from __future__ import annotations
def bulletize(items: list[str]) -> str:
return '\n'.join(f'- {item}' for item in items)
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `keybindings` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'keybindings.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `memdir` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'memdir.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `migrations` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'migrations.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `moreright` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'moreright.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `native-ts` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'native_ts.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `outputStyles` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'outputStyles.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `plugins` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'plugins.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-10
View File
@@ -1,10 +0,0 @@
from __future__ import annotations
from dataclasses import dataclass
@dataclass
class ProjectOnboardingState:
has_readme: bool
has_tests: bool
python_first: bool = True
-13
View File
@@ -1,13 +0,0 @@
from __future__ import annotations
from dataclasses import dataclass
@dataclass(frozen=True)
class QueryRequest:
prompt: str
@dataclass(frozen=True)
class QueryResponse:
text: str
@@ -1,8 +0,0 @@
{
"archive_name": "assistant",
"package_name": "assistant",
"module_count": 1,
"sample_files": [
"assistant/sessionHistory.ts"
]
}
@@ -1,8 +0,0 @@
{
"archive_name": "bootstrap",
"package_name": "bootstrap",
"module_count": 1,
"sample_files": [
"bootstrap/state.ts"
]
}
-32
View File
@@ -1,32 +0,0 @@
{
"archive_name": "bridge",
"package_name": "bridge",
"module_count": 31,
"sample_files": [
"bridge/bridgeApi.ts",
"bridge/bridgeConfig.ts",
"bridge/bridgeDebug.ts",
"bridge/bridgeEnabled.ts",
"bridge/bridgeMain.ts",
"bridge/bridgeMessaging.ts",
"bridge/bridgePermissionCallbacks.ts",
"bridge/bridgePointer.ts",
"bridge/bridgeStatusUtil.ts",
"bridge/bridgeUI.ts",
"bridge/capacityWake.ts",
"bridge/codeSessionApi.ts",
"bridge/createSession.ts",
"bridge/debugUtils.ts",
"bridge/envLessBridgeConfig.ts",
"bridge/flushGate.ts",
"bridge/inboundAttachments.ts",
"bridge/inboundMessages.ts",
"bridge/initReplBridge.ts",
"bridge/jwtUtils.ts",
"bridge/pollConfig.ts",
"bridge/pollConfigDefaults.ts",
"bridge/remoteBridgeCore.ts",
"bridge/replBridge.ts",
"bridge/replBridgeHandle.ts"
]
}
-13
View File
@@ -1,13 +0,0 @@
{
"archive_name": "buddy",
"package_name": "buddy",
"module_count": 6,
"sample_files": [
"buddy/CompanionSprite.tsx",
"buddy/companion.ts",
"buddy/prompt.ts",
"buddy/sprites.ts",
"buddy/types.ts",
"buddy/useBuddyNotification.tsx"
]
}
-26
View File
@@ -1,26 +0,0 @@
{
"archive_name": "cli",
"package_name": "cli",
"module_count": 19,
"sample_files": [
"cli/exit.ts",
"cli/handlers/agents.ts",
"cli/handlers/auth.ts",
"cli/handlers/autoMode.ts",
"cli/handlers/mcp.tsx",
"cli/handlers/plugins.ts",
"cli/handlers/util.tsx",
"cli/ndjsonSafeStringify.ts",
"cli/print.ts",
"cli/remoteIO.ts",
"cli/structuredIO.ts",
"cli/transports/HybridTransport.ts",
"cli/transports/SSETransport.ts",
"cli/transports/SerialBatchEventUploader.ts",
"cli/transports/WebSocketTransport.ts",
"cli/transports/WorkerStateUploader.ts",
"cli/transports/ccrClient.ts",
"cli/transports/transportUtils.ts",
"cli/update.ts"
]
}
@@ -1,32 +0,0 @@
{
"archive_name": "components",
"package_name": "components",
"module_count": 389,
"sample_files": [
"components/AgentProgressLine.tsx",
"components/App.tsx",
"components/ApproveApiKey.tsx",
"components/AutoModeOptInDialog.tsx",
"components/AutoUpdater.tsx",
"components/AutoUpdaterWrapper.tsx",
"components/AwsAuthStatusBox.tsx",
"components/BaseTextInput.tsx",
"components/BashModeProgress.tsx",
"components/BridgeDialog.tsx",
"components/BypassPermissionsModeDialog.tsx",
"components/ChannelDowngradeDialog.tsx",
"components/ClaudeCodeHint/PluginHintMenu.tsx",
"components/ClaudeInChromeOnboarding.tsx",
"components/ClaudeMdExternalIncludesDialog.tsx",
"components/ClickableImageRef.tsx",
"components/CompactSummary.tsx",
"components/ConfigurableShortcutHint.tsx",
"components/ConsoleOAuthFlow.tsx",
"components/ContextSuggestions.tsx",
"components/ContextVisualization.tsx",
"components/CoordinatorAgentStatus.tsx",
"components/CostThresholdDialog.tsx",
"components/CtrlOToExpand.tsx",
"components/CustomSelect/SelectMulti.tsx"
]
}
@@ -1,28 +0,0 @@
{
"archive_name": "constants",
"package_name": "constants",
"module_count": 21,
"sample_files": [
"constants/apiLimits.ts",
"constants/betas.ts",
"constants/common.ts",
"constants/cyberRiskInstruction.ts",
"constants/errorIds.ts",
"constants/figures.ts",
"constants/files.ts",
"constants/github-app.ts",
"constants/keys.ts",
"constants/messages.ts",
"constants/oauth.ts",
"constants/outputStyles.ts",
"constants/product.ts",
"constants/prompts.ts",
"constants/spinnerVerbs.ts",
"constants/system.ts",
"constants/systemPromptSections.ts",
"constants/toolLimits.ts",
"constants/tools.ts",
"constants/turnCompletionVerbs.ts",
"constants/xml.ts"
]
}
@@ -1,8 +0,0 @@
{
"archive_name": "coordinator",
"package_name": "coordinator",
"module_count": 1,
"sample_files": [
"coordinator/coordinatorMode.ts"
]
}
@@ -1,15 +0,0 @@
{
"archive_name": "entrypoints",
"package_name": "entrypoints",
"module_count": 8,
"sample_files": [
"entrypoints/agentSdkTypes.ts",
"entrypoints/cli.tsx",
"entrypoints/init.ts",
"entrypoints/mcp.ts",
"entrypoints/sandboxTypes.ts",
"entrypoints/sdk/controlSchemas.ts",
"entrypoints/sdk/coreSchemas.ts",
"entrypoints/sdk/coreTypes.ts"
]
}
-32
View File
@@ -1,32 +0,0 @@
{
"archive_name": "hooks",
"package_name": "hooks",
"module_count": 104,
"sample_files": [
"hooks/fileSuggestions.ts",
"hooks/notifs/useAutoModeUnavailableNotification.ts",
"hooks/notifs/useCanSwitchToExistingSubscription.tsx",
"hooks/notifs/useDeprecationWarningNotification.tsx",
"hooks/notifs/useFastModeNotification.tsx",
"hooks/notifs/useIDEStatusIndicator.tsx",
"hooks/notifs/useInstallMessages.tsx",
"hooks/notifs/useLspInitializationNotification.tsx",
"hooks/notifs/useMcpConnectivityStatus.tsx",
"hooks/notifs/useModelMigrationNotifications.tsx",
"hooks/notifs/useNpmDeprecationNotification.tsx",
"hooks/notifs/usePluginAutoupdateNotification.tsx",
"hooks/notifs/usePluginInstallationStatus.tsx",
"hooks/notifs/useRateLimitWarningNotification.tsx",
"hooks/notifs/useSettingsErrors.tsx",
"hooks/notifs/useStartupNotification.ts",
"hooks/notifs/useTeammateShutdownNotification.ts",
"hooks/renderPlaceholder.ts",
"hooks/toolPermission/PermissionContext.ts",
"hooks/toolPermission/handlers/coordinatorHandler.ts",
"hooks/toolPermission/handlers/interactiveHandler.ts",
"hooks/toolPermission/handlers/swarmWorkerHandler.ts",
"hooks/toolPermission/permissionLogging.ts",
"hooks/unifiedSuggestions.ts",
"hooks/useAfterFirstRender.ts"
]
}
@@ -1,21 +0,0 @@
{
"archive_name": "keybindings",
"package_name": "keybindings",
"module_count": 14,
"sample_files": [
"keybindings/KeybindingContext.tsx",
"keybindings/KeybindingProviderSetup.tsx",
"keybindings/defaultBindings.ts",
"keybindings/loadUserBindings.ts",
"keybindings/match.ts",
"keybindings/parser.ts",
"keybindings/reservedShortcuts.ts",
"keybindings/resolver.ts",
"keybindings/schema.ts",
"keybindings/shortcutFormat.ts",
"keybindings/template.ts",
"keybindings/useKeybinding.ts",
"keybindings/useShortcutDisplay.ts",
"keybindings/validate.ts"
]
}
-15
View File
@@ -1,15 +0,0 @@
{
"archive_name": "memdir",
"package_name": "memdir",
"module_count": 8,
"sample_files": [
"memdir/findRelevantMemories.ts",
"memdir/memdir.ts",
"memdir/memoryAge.ts",
"memdir/memoryScan.ts",
"memdir/memoryTypes.ts",
"memdir/paths.ts",
"memdir/teamMemPaths.ts",
"memdir/teamMemPrompts.ts"
]
}
@@ -1,18 +0,0 @@
{
"archive_name": "migrations",
"package_name": "migrations",
"module_count": 11,
"sample_files": [
"migrations/migrateAutoUpdatesToSettings.ts",
"migrations/migrateBypassPermissionsAcceptedToSettings.ts",
"migrations/migrateEnableAllProjectMcpServersToSettings.ts",
"migrations/migrateFennecToOpus.ts",
"migrations/migrateLegacyOpusToCurrent.ts",
"migrations/migrateOpusToOpus1m.ts",
"migrations/migrateReplBridgeEnabledToRemoteControlAtStartup.ts",
"migrations/migrateSonnet1mToSonnet45.ts",
"migrations/migrateSonnet45ToSonnet46.ts",
"migrations/resetAutoModeOptInForDefaultOffer.ts",
"migrations/resetProToOpusDefault.ts"
]
}
@@ -1,8 +0,0 @@
{
"archive_name": "moreright",
"package_name": "moreright",
"module_count": 1,
"sample_files": [
"moreright/useMoreRight.tsx"
]
}
@@ -1,11 +0,0 @@
{
"archive_name": "native-ts",
"package_name": "native_ts",
"module_count": 4,
"sample_files": [
"native-ts/color-diff/index.ts",
"native-ts/file-index/index.ts",
"native-ts/yoga-layout/enums.ts",
"native-ts/yoga-layout/index.ts"
]
}
@@ -1,8 +0,0 @@
{
"archive_name": "outputStyles",
"package_name": "outputStyles",
"module_count": 1,
"sample_files": [
"outputStyles/loadOutputStylesDir.ts"
]
}
@@ -1,9 +0,0 @@
{
"archive_name": "plugins",
"package_name": "plugins",
"module_count": 2,
"sample_files": [
"plugins/builtinPlugins.ts",
"plugins/bundled/index.ts"
]
}
-11
View File
@@ -1,11 +0,0 @@
{
"archive_name": "remote",
"package_name": "remote",
"module_count": 4,
"sample_files": [
"remote/RemoteSessionManager.ts",
"remote/SessionsWebSocket.ts",
"remote/remotePermissionBridge.ts",
"remote/sdkMessageAdapter.ts"
]
}
@@ -1,8 +0,0 @@
{
"archive_name": "schemas",
"package_name": "schemas",
"module_count": 1,
"sample_files": [
"schemas/hooks.ts"
]
}
@@ -1,10 +0,0 @@
{
"archive_name": "screens",
"package_name": "screens",
"module_count": 3,
"sample_files": [
"screens/Doctor.tsx",
"screens/REPL.tsx",
"screens/ResumeConversation.tsx"
]
}
-10
View File
@@ -1,10 +0,0 @@
{
"archive_name": "server",
"package_name": "server",
"module_count": 3,
"sample_files": [
"server/createDirectConnectSession.ts",
"server/directConnectManager.ts",
"server/types.ts"
]
}
@@ -1,32 +0,0 @@
{
"archive_name": "services",
"package_name": "services",
"module_count": 130,
"sample_files": [
"services/AgentSummary/agentSummary.ts",
"services/MagicDocs/magicDocs.ts",
"services/MagicDocs/prompts.ts",
"services/PromptSuggestion/promptSuggestion.ts",
"services/PromptSuggestion/speculation.ts",
"services/SessionMemory/prompts.ts",
"services/SessionMemory/sessionMemory.ts",
"services/SessionMemory/sessionMemoryUtils.ts",
"services/analytics/config.ts",
"services/analytics/datadog.ts",
"services/analytics/firstPartyEventLogger.ts",
"services/analytics/firstPartyEventLoggingExporter.ts",
"services/analytics/growthbook.ts",
"services/analytics/index.ts",
"services/analytics/metadata.ts",
"services/analytics/sink.ts",
"services/analytics/sinkKillswitch.ts",
"services/api/adminRequests.ts",
"services/api/bootstrap.ts",
"services/api/claude.ts",
"services/api/client.ts",
"services/api/dumpPrompts.ts",
"services/api/emptyUsage.ts",
"services/api/errorUtils.ts",
"services/api/errors.ts"
]
}
-27
View File
@@ -1,27 +0,0 @@
{
"archive_name": "skills",
"package_name": "skills",
"module_count": 20,
"sample_files": [
"skills/bundled/batch.ts",
"skills/bundled/claudeApi.ts",
"skills/bundled/claudeApiContent.ts",
"skills/bundled/claudeInChrome.ts",
"skills/bundled/debug.ts",
"skills/bundled/index.ts",
"skills/bundled/keybindings.ts",
"skills/bundled/loop.ts",
"skills/bundled/loremIpsum.ts",
"skills/bundled/remember.ts",
"skills/bundled/scheduleRemoteAgents.ts",
"skills/bundled/simplify.ts",
"skills/bundled/skillify.ts",
"skills/bundled/stuck.ts",
"skills/bundled/updateConfig.ts",
"skills/bundled/verify.ts",
"skills/bundled/verifyContent.ts",
"skills/bundledSkills.ts",
"skills/loadSkillsDir.ts",
"skills/mcpSkillBuilders.ts"
]
}
-13
View File
@@ -1,13 +0,0 @@
{
"archive_name": "state",
"package_name": "state",
"module_count": 6,
"sample_files": [
"state/AppState.tsx",
"state/AppStateStore.ts",
"state/onChangeAppState.ts",
"state/selectors.ts",
"state/store.ts",
"state/teammateViewHelpers.ts"
]
}
-18
View File
@@ -1,18 +0,0 @@
{
"archive_name": "types",
"package_name": "types",
"module_count": 11,
"sample_files": [
"types/command.ts",
"types/generated/events_mono/claude_code/v1/claude_code_internal_event.ts",
"types/generated/events_mono/common/v1/auth.ts",
"types/generated/events_mono/growthbook/v1/growthbook_experiment_event.ts",
"types/generated/google/protobuf/timestamp.ts",
"types/hooks.ts",
"types/ids.ts",
"types/logs.ts",
"types/permissions.ts",
"types/plugin.ts",
"types/textInputTypes.ts"
]
}
@@ -1,9 +0,0 @@
{
"archive_name": "upstreamproxy",
"package_name": "upstreamproxy",
"module_count": 2,
"sample_files": [
"upstreamproxy/relay.ts",
"upstreamproxy/upstreamproxy.ts"
]
}
-32
View File
@@ -1,32 +0,0 @@
{
"archive_name": "utils",
"package_name": "utils",
"module_count": 564,
"sample_files": [
"utils/CircularBuffer.ts",
"utils/Cursor.ts",
"utils/QueryGuard.ts",
"utils/Shell.ts",
"utils/ShellCommand.ts",
"utils/abortController.ts",
"utils/activityManager.ts",
"utils/advisor.ts",
"utils/agentContext.ts",
"utils/agentId.ts",
"utils/agentSwarmsEnabled.ts",
"utils/agenticSessionSearch.ts",
"utils/analyzeContext.ts",
"utils/ansiToPng.ts",
"utils/ansiToSvg.ts",
"utils/api.ts",
"utils/apiPreconnect.ts",
"utils/appleTerminalBackup.ts",
"utils/argumentSubstitution.ts",
"utils/array.ts",
"utils/asciicast.ts",
"utils/attachments.ts",
"utils/attribution.ts",
"utils/auth.ts",
"utils/authFileDescriptor.ts"
]
}
-12
View File
@@ -1,12 +0,0 @@
{
"archive_name": "vim",
"package_name": "vim",
"module_count": 5,
"sample_files": [
"vim/motions.ts",
"vim/operators.ts",
"vim/textObjects.ts",
"vim/transitions.ts",
"vim/types.ts"
]
}
-8
View File
@@ -1,8 +0,0 @@
{
"archive_name": "voice",
"package_name": "voice",
"module_count": 1,
"sample_files": [
"voice/voiceModeEnabled.ts"
]
}
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `remote` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'remote.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-5
View File
@@ -1,5 +0,0 @@
from __future__ import annotations
def build_repl_banner() -> str:
return 'Python porting REPL is not interactive yet; use `python3 -m src.main summary` instead.'
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `schemas` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'schemas.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `screens` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'screens.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `server` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'server.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `services` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'services.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `skills` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'skills.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `state` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'state.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-11
View File
@@ -1,11 +0,0 @@
from __future__ import annotations
from .task import PortingTask
def default_tasks() -> list[PortingTask]:
return [
PortingTask('root-module-parity', 'Mirror the root module surface of the archived snapshot'),
PortingTask('directory-parity', 'Mirror top-level subsystem names as Python packages'),
PortingTask('parity-audit', 'Continuously measure parity against the local archive'),
]
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `types` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'types.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `upstreamproxy` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'upstreamproxy.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `utils` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'utils.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `vim` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'vim.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']
-16
View File
@@ -1,16 +0,0 @@
"""Python package placeholder for the archived `voice` subsystem."""
from __future__ import annotations
import json
from pathlib import Path
SNAPSHOT_PATH = Path(__file__).resolve().parent.parent / 'reference_data' / 'subsystems' / 'voice.json'
_SNAPSHOT = json.loads(SNAPSHOT_PATH.read_text())
ARCHIVE_NAME = _SNAPSHOT['archive_name']
MODULE_COUNT = _SNAPSHOT['module_count']
SAMPLE_FILES = tuple(_SNAPSHOT['sample_files'])
PORTING_NOTE = f"Python placeholder package for '{ARCHIVE_NAME}' with {MODULE_COUNT} archived module references."
__all__ = ['ARCHIVE_NAME', 'MODULE_COUNT', 'PORTING_NOTE', 'SAMPLE_FILES']