From 058aaa532e2029272425d9383d2a62148529bec8 Mon Sep 17 00:00:00 2001 From: leookun Date: Wed, 5 Aug 2026 00:34:30 +0800 Subject: [PATCH] remote: cursor source code from git --- .../cursor-always-local/.gitignore | 2 -- .../cursor-always-local/media/main.css | 0 .../cursor-always-local/package.json | 1 - .../cursor-always-local/package.nls.json | 1 - .../schemas/environment.schema.json | 1 - .../cursor-always-local/scripts/run_tests.sh | 15 ---------- .../scripts/tsc-some-files.sh | 29 ------------------- 7 files changed, 49 deletions(-) delete mode 100644 proto/extensions-cursor-app/cursor-always-local/.gitignore delete mode 100644 proto/extensions-cursor-app/cursor-always-local/media/main.css delete mode 100644 proto/extensions-cursor-app/cursor-always-local/package.json delete mode 100644 proto/extensions-cursor-app/cursor-always-local/package.nls.json delete mode 100644 proto/extensions-cursor-app/cursor-always-local/schemas/environment.schema.json delete mode 100755 proto/extensions-cursor-app/cursor-always-local/scripts/run_tests.sh delete mode 100755 proto/extensions-cursor-app/cursor-always-local/scripts/tsc-some-files.sh diff --git a/proto/extensions-cursor-app/cursor-always-local/.gitignore b/proto/extensions-cursor-app/cursor-always-local/.gitignore deleted file mode 100644 index bd5fd41..0000000 --- a/proto/extensions-cursor-app/cursor-always-local/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -src/proto/** -media/index.js \ No newline at end of file diff --git a/proto/extensions-cursor-app/cursor-always-local/media/main.css b/proto/extensions-cursor-app/cursor-always-local/media/main.css deleted file mode 100644 index e69de29..0000000 diff --git a/proto/extensions-cursor-app/cursor-always-local/package.json b/proto/extensions-cursor-app/cursor-always-local/package.json deleted file mode 100644 index bc10db1..0000000 --- a/proto/extensions-cursor-app/cursor-always-local/package.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"cursor-always-local","description":"Implements experimentation features for Cursor","author":"Anysphere, Inc.","publisher":"anysphere","version":"0.0.1","private":true,"repository":{"type":"git","url":"https://github.com/anysphere/vscode"},"extensionKind":["ui"],"engines":{"vscode":"^1.43.0","yarn":"please-use-npm"},"activationEvents":["onStartupFinished","onResolveRemoteAuthority:background-composer"],"enabledApiProposals":["cursor","control","externalUriOpener","contribSourceControlInputBoxMenu"],"main":"./dist/main","contributes":{"commands":[],"keybindings":[],"menus":{"scm/inputBox":[{"command":"cursor.generateGitCommitMessage","when":"scmProvider == git"}]},"jsonValidation":[{"fileMatch":".cursor/environment.json","url":"./schemas/environment.schema.json"}],"configuration":{"type":"object","title":"Cursor Always Local"}},"optionalDependencies":{"@vscode/windows-ca-certs":"^0.3.3"}} \ No newline at end of file diff --git a/proto/extensions-cursor-app/cursor-always-local/package.nls.json b/proto/extensions-cursor-app/cursor-always-local/package.nls.json deleted file mode 100644 index bbc7f9d..0000000 --- a/proto/extensions-cursor-app/cursor-always-local/package.nls.json +++ /dev/null @@ -1 +0,0 @@ -{"displayName":"Cursor Always Local","description":"Experimentation @ cursor.sh"} \ No newline at end of file diff --git a/proto/extensions-cursor-app/cursor-always-local/schemas/environment.schema.json b/proto/extensions-cursor-app/cursor-always-local/schemas/environment.schema.json deleted file mode 100644 index 843e42d..0000000 --- a/proto/extensions-cursor-app/cursor-always-local/schemas/environment.schema.json +++ /dev/null @@ -1 +0,0 @@ -{"$schema":"https://json-schema.org/draft/2019-09/schema","description":"Defines a dev environment","allowComments":true,"allowTrailingCommas":false,"definitions":{"common":{"type":"object","properties":{"name":{"type":"string","description":"The name of the environment."},"user":{"type":"string","description":"The user to run the environment as."},"install":{"type":"string","description":"The update command to run on VM startup (after pulling latest changes) to refresh dependencies."},"start":{"type":"string","description":"The start command to run when the environment is started."},"repositoryDependencies":{"type":"array","description":"Repositories that are required for the environment to work, and need to be included in the GitHub access token that is generated for the environment.","items":{"type":"string","description":"The URL of the dependent repository, e.g. `github.com/org/repo`."}},"ports":{"type":"array","description":"Ports to expose from the container. Similar to devcontainers port forwarding.","items":{"type":"object","required":["port"],"properties":{"name":{"type":"string","description":"A descriptive name for the port (e.g., 'web server', 'api')."},"port":{"type":"integer","minimum":1,"maximum":65535,"description":"The port number inside the container to expose."}}}},"terminals":{"type":"array","description":"The terminals to run when the environment is started.","items":{"oneOf":[{"type":"array","items":{"type":"object","required":["command"],"properties":{"name":{"type":"string","description":"The name of the terminal."},"command":{"type":"string","description":"The command to run in the terminal."},"description":{"type":"string","description":"A description of what the terminal does. This is displayed to the agent."}}}},{"type":"object","required":["command"],"properties":{"name":{"type":"string","description":"The name of the terminal."},"command":{"type":"string","description":"The command to run in the terminal."},"description":{"type":"string","description":"A description of what the terminal does. This is displayed to the agent."}}}]}}}},"container":{"type":"object","properties":{"build":{"type":"object","description":"Docker build-related options.","properties":{"dockerfile":{"type":"string","description":"The location of the Dockerfile that defines the contents of the container. The path is relative to the folder containing the `environment.json` file."},"context":{"type":"string","description":"The location of the context folder for building the Docker image. The path is relative to the folder containing the `environment.json` file."}},"required":["dockerfile"],"unevaluatedProperties":false},"snapshot":{"type":"string","description":"A snapshot ID for the base environment."},"agentCanUpdateSnapshot":{"type":"boolean","description":"Whether the agent can update the snapshot."}},"required":[]}},"allOf":[{"$ref":"#/definitions/container"},{"$ref":"#/definitions/common"}],"unevaluatedProperties":false} \ No newline at end of file diff --git a/proto/extensions-cursor-app/cursor-always-local/scripts/run_tests.sh b/proto/extensions-cursor-app/cursor-always-local/scripts/run_tests.sh deleted file mode 100755 index 49f38ea..0000000 --- a/proto/extensions-cursor-app/cursor-always-local/scripts/run_tests.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash - -# Run vitest with any additional arguments passed after -- -npx vitest run --config vitest.config.ts "$@" - -# Capture the exit code -exit_code=$? - -# If tests failed, echo the colored error message -if [ $exit_code -ne 0 ]; then - echo -e "\033[1;31m❌ Test failed -- you can set CURSOR_EXT_TEST_LOG_LEVEL=info to see more logs\033[0m" -fi - -# Exit with the same code as vitest -exit $exit_code \ No newline at end of file diff --git a/proto/extensions-cursor-app/cursor-always-local/scripts/tsc-some-files.sh b/proto/extensions-cursor-app/cursor-always-local/scripts/tsc-some-files.sh deleted file mode 100755 index 997a2e6..0000000 --- a/proto/extensions-cursor-app/cursor-always-local/scripts/tsc-some-files.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -include_files=() -for f in "$@"; do - include_files+=("${f#$PWD/}") -done -node_modules/.bin/tsc --noEmit -p . | ( - status=0 - show_continuation=false - while IFS='' read -r line; do - case "$line" in - (' '*) - if $show_continuation; then - echo "$line" >&2 - fi - ;; - (*) - file="${line%%(*}" - if [[ " ${include_files[@]} " =~ " ${file} " ]]; then - show_continuation=true - echo "$line" >&2 - status=1 - else - show_continuation=false - fi - ;; - esac - done - exit $status -) \ No newline at end of file