chore: merge upstream cleanup — 536 stubs + 17 dead files + 4 as any fixes

c07ad4c7: delete 536 unreferenced auto-generated type stubs + yoga-layout
d0915fc8: delete 17 dead files/dirs + fix 4 as any → precise types
  - warningHandler.ts: remove unused resetWarningHandler()
  - dxt/helpers.ts: errs as any → as string[] | undefined
  - mcpInstructionsDelta.ts: msg.attachment! as any → precise
  - sessionTitle.ts: 2× as any → precise (origin, content)

Source: upstream CCB c07ad4c7, d0915fc8
This commit is contained in:
James Feng 2026-06-06 21:12:01 +08:00
parent 2020a84ba9
commit 3013db2d3e
564 changed files with 14 additions and 6041 deletions

View File

@ -1,49 +0,0 @@
name: CI
on:
push:
branches: [main, acp, feature/*]
pull_request:
branches: [main]
env:
BUN_CONFIG_REGISTRY: https://registry.npmjs.org/
jobs:
ci:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.14'
- name: Replace mirror URLs
run: sed -i '' 's|registry.npmmirror.com|registry.npmjs.org|g' bun.lock
- name: Install dependencies
env:
CLAUDE_CODE_SKIP_CHROME_MCP_SETUP: '1'
run: bun install --frozen-lockfile
- name: Test
run: |
set +e
bun test --isolate > /tmp/ci-test.log 2>&1
TEST_EXIT=$?
FAILS=$(grep -oE '[0-9]+ fail' /tmp/ci-test.log | tail -1 | grep -oE '[0-9]+')
if [ -z "$FAILS" ]; then FAILS=0; fi
echo "Failures: $FAILS (baseline: 0) | bun test exit: $TEST_EXIT"
# Show last 30 lines of test output
tail -30 /tmp/ci-test.log
if [ "$FAILS" -le 0 ]; then
echo "✅ Test baseline OK"
else
echo "❌ Test regressions detected"
exit 1
fi
- name: Build
run: bun run build --no-splitting

View File

@ -1,52 +0,0 @@
name: "CodeQL Analysis"
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '30 3 * * 1' # 每周一 03:30 UTC
workflow_dispatch: # 手动触发
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: ['javascript-typescript']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
env:
CLAUDE_CODE_SKIP_CHROME_MCP_SETUP: '1'
run: bun install
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"

View File

@ -1,75 +0,0 @@
name: Release RCS Docker Image
on:
push:
tags:
- 'rcs-v*'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository_owner }}/remote-control-server
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract version
id: version
run: echo "VERSION=${GITHUB_REF_NAME#rcs-v}" >> "$GITHUB_OUTPUT"
- name: Generate tags
id: tags
run: |
VERSION="${{ steps.version.outputs.VERSION }}"
IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
TAGS="${IMAGE}:${VERSION}"
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
if [ -n "$MAJOR" ] && [ -n "$MINOR" ]; then
TAGS="${TAGS},${IMAGE}:${MAJOR}.${MINOR}"
fi
TAGS="${TAGS},${IMAGE}:latest"
echo "tags=$TAGS" >> "$GITHUB_OUTPUT"
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: packages/remote-control-server/Dockerfile
push: false
load: true
tags: ${{ steps.tags.outputs.tags }}
build-args: VERSION=${{ steps.version.outputs.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Verify image
run: |
IMAGE_TAG=$(echo "${{ steps.tags.outputs.tags }}" | cut -d',' -f1)
docker run -d --name rcs-test -p 3000:3000 "$IMAGE_TAG"
sleep 5
curl -sf http://localhost:3000/health || { docker logs rcs-test; exit 1; }
docker stop rcs-test
docker rm rcs-test
- name: Push Docker image
run: |
IFS=',' read -ra TAGS <<< "${{ steps.tags.outputs.tags }}"
for TAG in "${TAGS[@]}"; do
docker push "$TAG"
done

View File

@ -1,31 +0,0 @@
name: Update Contributors
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *' # 每天更新一次
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: jaywcjlove/github-action-contributors@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
output: "contributors.svg"
repository: ${{ github.repository }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: update contributors"
file_pattern: "contributors.svg"
branch: main

0
YYMa <2942204237@qq.com> Normal file
View File

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type HookEvent = any;
export type ModelUsage = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type AgentColorName = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type HookCallbackMatcher = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type SessionId = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type randomUUID = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type ModelStrings = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type resetSettingsCache = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type createSignal = any;

View File

@ -1,13 +0,0 @@
// Auto-generated stub — replace with real implementation
import type { Command } from '@commander-js/extra-typings';
export {};
export const logHandler: (logId: string | number | undefined) => Promise<void> = (async () => {}) as (logId: string | number | undefined) => Promise<void>;
export const errorHandler: (num: number | undefined) => Promise<void> = (async () => {}) as (num: number | undefined) => Promise<void>;
export const exportHandler: (source: string, outputFile: string) => Promise<void> = (async () => {}) as (source: string, outputFile: string) => Promise<void>;
export const taskCreateHandler: (subject: string, opts: { description?: string; list?: string }) => Promise<void> = (async () => {}) as (subject: string, opts: { description?: string; list?: string }) => Promise<void>;
export const taskListHandler: (opts: { list?: string; pending?: boolean; json?: boolean }) => Promise<void> = (async () => {}) as (opts: { list?: string; pending?: boolean; json?: boolean }) => Promise<void>;
export const taskGetHandler: (id: string, opts: { list?: string }) => Promise<void> = (async () => {}) as (id: string, opts: { list?: string }) => Promise<void>;
export const taskUpdateHandler: (id: string, opts: { list?: string; status?: string; subject?: string; description?: string; owner?: string; clearOwner?: boolean }) => Promise<void> = (async () => {}) as (id: string, opts: { list?: string; status?: string; subject?: string; description?: string; owner?: string; clearOwner?: boolean }) => Promise<void>;
export const taskDirHandler: (opts: { list?: string }) => Promise<void> = (async () => {}) as (opts: { list?: string }) => Promise<void>;
export const completionHandler: (shell: string, opts: { output?: string }, program: Command) => Promise<void> = (async () => {}) as (shell: string, opts: { output?: string }, program: Command) => Promise<void>;

View File

@ -1,3 +0,0 @@
// Auto-generated stub — replace with real implementation
export {};
export const templatesMain: (args: string[]) => Promise<void> = () => Promise.resolve();

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type ask = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type installOAuthTokens = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type RemoteIO = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type StructuredIO = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type collectContextData = any;

View File

@ -1,14 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type SDKStatus = any;
export type ModelInfo = any;
export type SDKMessage = any;
export type SDKUserMessage = any;
export type SDKUserMessageReplay = any;
export type PermissionResult = any;
export type McpServerConfigForProcessTransport = any;
export type McpServerStatus = any;
export type RewindFilesResult = any;
export type HookEvent = any;
export type HookInput = any;
export type HookJSONOutput = any;
export type PermissionUpdate = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type SDKControlElicitationResponseSchema = any;

View File

@ -1,9 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type StdoutMessage = any;
export type SDKControlInitializeRequest = any;
export type SDKControlInitializeResponse = any;
export type SDKControlRequest = any;
export type SDKControlResponse = any;
export type SDKControlMcpSetServersResponse = any;
export type SDKControlReloadPluginsResponse = any;
export type StdinMessage = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type CanUseToolFn = any;

View File

@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type tryGenerateSuggestion = any;
export type logSuggestionOutcome = any;
export type logSuggestionSuppressed = any;
export type PromptVariant = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logEvent = any;
export type AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isQualifiedForGrove = any;
export type checkGroveForNonInteractive = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type EMPTY_USAGE = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type statusListeners = any;
export type ClaudeAILimits = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type performMCPOAuthFlow = any;
export type revokeServerTokens = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isChannelAllowlisted = any;
export type isChannelsEnabled = any;

View File

@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type ChannelMessageNotificationSchema = any;
export type gateChannelServer = any;
export type wrapChannelMessage = any;
export type findChannelEntry = any;

View File

@ -1,7 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type setupSdkMcpClients = any;
export type connectToServer = any;
export type clearServerCache = any;
export type fetchToolsForClient = any;
export type areMcpConfigsEqual = any;
export type reconnectMcpServerImpl = any;

View File

@ -1,6 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type filterMcpServersByPolicy = any;
export type getMcpConfigByName = any;
export type isMcpServerDisabled = any;
export type setMcpServerEnabled = any;
export type getAllMcpConfigs = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type runElicitationHooks = any;
export type runElicitationResultHooks = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type commandBelongsToServer = any;
export type filterToolsByServer = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type setupVscodeSdkMcp = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type OAuthService = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isPolicyAllowed = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type waitForRemoteManagedSettingsToLoad = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type downloadUserSettings = any;
export type redownloadUserSettings = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type AppState = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type externalMetadataToAppState = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type assembleToolPool = any;
export type filterToolsByDenyRules = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getAccountInformation = any;

View File

@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getLatestVersion = any;
export type InstallStatus = any;
export type installGlobalPackage = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type AwsAuthStatusManager = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type modelSupportsAutoMode = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type registerCleanup = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type createCombinedAbortSignal = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type notifyCommandLifecycle = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type incrementPromptCount = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type regenerateCompletionCache = any;

View File

@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getGlobalConfig = any;
export type InstallMethod = any;
export type saveGlobalConfig = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type loadConversationForResume = any;
export type TurnInterruptionState = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getCwd = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type logForDiagnosticsNoPII = any;
export type withDiagnosticsTiming = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getDoctorDiagnostic = any;

View File

@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type modelSupportsEffort = any;
export type modelSupportsMaxEffort = any;
export type EFFORT_LEVELS = any;
export type resolveAppliedEffort = any;

View File

@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isFastModeAvailable = any;
export type isFastModeEnabled = any;
export type isFastModeSupportedByModel = any;
export type getFastModeState = any;

View File

@ -1,5 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type fileHistoryRewind = any;
export type fileHistoryCanRestore = any;
export type fileHistoryEnabled = any;
export type fileHistoryGetDiffStats = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type executeFilePersistence = any;

View File

@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type createFileStateCacheWithSizeLimit = any;
export type mergeFileStateCaches = any;
export type READ_FILE_STATE_CACHE_SIZE = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getLastCacheSafeParams = any;

View File

@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type gracefulShutdown = any;
export type gracefulShutdownSync = any;
export type isShuttingDown = any;

View File

@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type headlessProfilerStartTurn = any;
export type headlessProfilerCheckpoint = any;
export type logHeadlessProfilerTurn = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type executeNotificationHooks = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type finalizePendingAsyncHooks = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type registerHookEventHandler = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type createIdleTimeoutManager = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type safeParseJSON = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type installOrUpdateClaudePackage = any;
export type localInstallationExists = any;

View File

@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getInMemoryErrors = any;
export type logError = any;
export type logMCPDebug = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type toInternalMessages = any;
export type toSDKRateLimitInfo = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getModelOptions = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type ensureModelStringsInitialized = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getAPIProvider = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type installLatest = any;
export type removeInstalledSymlink = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type getPackageManager = any;

View File

@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type outputSchema = any;
export type permissionPromptToolResultToPermissionDecision = any;
export type Output = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type PermissionDecision = any;
export type PermissionDecisionReason = any;

View File

@ -1,6 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type isAutoModeGateEnabled = any;
export type getAutoModeUnavailableNotification = any;
export type getAutoModeUnavailableReason = any;
export type isBypassPermissionsModeDisabled = any;
export type transitionPermissionMode = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type hasPermissionsToUseTool = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type parsePluginIdentifier = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type writeToStdout = any;
export type registerProcessOutputErrorHandlers = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type buildSideQuestionFallbackParams = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type PermissionPromptTool = any;
export type extractReadFilesFromMessages = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type startQueryProfile = any;
export type logQueryProfileReport = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type SandboxManager = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type restoreAgentFromSession = any;
export type restoreSessionStateFromLog = any;

View File

@ -1,4 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type processSessionStartHooks = any;
export type processSetupHooks = any;
export type takeInitialUserMessage = any;

View File

@ -1,11 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type hydrateRemoteSession = any;
export type hydrateFromCCRv2InternalEvents = any;
export type resetSessionFilePointer = any;
export type doesMessageExistInSession = any;
export type findUnresolvedToolUse = any;
export type recordAttributionSnapshot = any;
export type saveAgentSetting = any;
export type saveMode = any;
export type saveAiGeneratedTitle = any;
export type restoreSessionMetadata = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type generateSessionTitle = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type parseSessionIdentifier = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type runSideQuestion = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type installStreamJsonStdoutGuard = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type createStreamlinedTransformer = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type ThinkingConfig = any;
export type modelSupportsAdaptiveThinking = any;

View File

@ -1,2 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type mergeAndFilterTools = any;

View File

@ -1,3 +0,0 @@
// Auto-generated type stub — replace with real implementation
export type runWithWorkload = any;
export type WORKLOAD_CRON = any;

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