Commit Graph

81 Commits

Author SHA1 Message Date
Ulugbek Abdullaev a97573159d Add Adhoc Request Sender Mode with Tag Highlighting (#323100)
* Agent Host changes for agents/adhoc-request-sender-mode-extension-55e2bb6f

* Remove unconfigured react-hooks/exhaustive-deps eslint directive

The eslint-disable directive referenced a rule that isn't registered in
this repo's ESLint config, which caused ESLint to error with
"Definition for rule 'react-hooks/exhaustive-deps' was not found" and
failed the Compile & Hygiene and Copilot - Test CI checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Coalesce adhoc tag-decoration rescans with requestAnimationFrame

Rescanning the whole editor text on every content change is wasteful for
bursty updates (e.g. a streamed response). Debounce the decoration update
to at most once per animation frame and cancel any pending frame during
cleanup so the callback can't run after the editor is disposed. The
initial scan stays synchronous so tags are highlighted immediately on mount.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address PR feedback: dispose token source; validate adhoc request JSON

- adhocRequestSender: always dispose the per-send CancellationTokenSource
  in the finally block (separate from the current-send guard) so its
  cancellation listeners don't leak across repeated Send/Stop cycles.
- simulationMain: validate and normalize the adhoc request JSON before use
  so malformed input (missing/null/wrong-typed model/user/system) yields a
  focused error message instead of a thrown stack trace.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-26 20:36:56 +05:00
Anthony Kim 8a9cd3dd36 Bump Copilot CLI package to 1.0.65 (#322747)
* Bump Copilot CLI package to stable 1.0.64

* Try to bump to 1.0.65 instead

* Remove stale Copilot sdk/worker materialization for 1.0.65

* Update Debian amd64 deps after excluding Copilot native executable

* Remove stale RPM x64 libstdc++ deps after Copilot CLI 1.0.65 packaging

* Prune Copilot SEA executable before CI packaging

* Exclude Copilot SEA executable from packaging stream

* SDK should be 1.0.4
2026-06-25 12:03:54 -07:00
Anthony Kim 1c0b4bea4c Bump Copilot CLI SDK packages to 1.0.64-1 / 1.0.3 (#322645)
* Bump Copilot CLI packages to @github/copilot@1.0.64-1 and @github/copilot-sdk@1.0.3

* Resolve Agent Host Copilot CLI through @github/copilot/bin.copilot

* Materialize @github/copilot/sdk from @github/copilot-<platform> in extension postinstall

* Package @github/copilot-<platform>/copilot for Agent Host and linuxmusl

* Exclude Copilot optional native payloads from extension package

* Scan @github/copilot-*/copilot for Linux package dependencies

* Tighten Copilot SDK 1.0.64-1 attachment and RPC typings

* Increase Copilot SDK native binary scan test timeout

* Update amd64 deb deps for @github/copilot-linux-x64/copilot

* Update arm64 rpm deps for Copilot package layout

* Update x64 rpm deps for @github/copilot-linux-x64/copilot

* Try to fix windows smoke test

* Try to fix platform runtime files for agent host

* exclude copilot computer.node from agent host packaging

* Another attempt to try to get packaging right

* Should only try to load 1.0.64-1

* Try to fix packaing for windows, macos, deb deps

* Update armhf/arm64 deb and x64 rpm Copilot dependency baselines

* Copilot darwin ripgrep universal merge and arm64 rpm deps

* Restore target Copilot SDK prebuilds for built-in extension packaging

* see if changes to gulpfile.reh.ts would help

* dont mess with formatting

* Launch copilot cli from platform index.js and exclude SEA
2026-06-24 06:47:26 -07:00
dependabot[bot] bf2b215f3b Bump esbuild, @vitest/coverage-v8, tsx, vite, vite-plugin-wasm and vitest in /extensions/copilot (#321235)
* Bump esbuild, @vitest/coverage-v8, tsx, vite, vite-plugin-wasm and vitest
2026-06-16 21:20:21 -07:00
Alexandru Dima 3a2257beca copilot: log setup errors to stdout for Windows CI visibility (#321217)
The getEnv.mts error handler only used console.error (stderr), which gets
swallowed by the npm/PowerShell chain on Windows CI agents. Add a
console.log call so the error message appears in Azure DevOps logs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-12 22:46:25 +00:00
Don Jayamanne 847d569028 chore: update @github/copilot and related dependencies to version 1.0.61 (#320868)
* chore: update @github/copilot and @github/copilot-sdk to version 1.0.61 and 1.0.1 respectively

- Bump @github/copilot from 1.0.60 to 1.0.61 in package.json and package-lock.json
- Update @github/copilot-sdk from 1.0.0 to 1.0.1 in package.json and package-lock.json
- Modify postinstall script to copy tgrep files instead of sharp files
- Update tests to include tgrep binaries
- Change model in e2e tests from 'claude-opus-4.7' to 'gpt-5-mini'

* fix: add libm.so.6(GLIBC_2.27)(64bit) to referenceGeneratedDepsByArch
2026-06-11 20:46:55 +10:00
Don Jayamanne 19b40a9d91 Update GitHub Copilot CLI to version 1.0.56 (#319076)
* Update GitHub Copilot dependency to version 1.0.54 and enhance CLI session handling

- Updated @github/copilot dependency in package.json and package-lock.json to version 1.0.54.
- Modified postinstall script to include 'cli-native.node' in the file copy process.
- Refactored session management to utilize updated SDK methods for setting authentication info and permissions.
- Improved type definitions and imports for better clarity and maintainability.
- Added tests to ensure new functionality and compatibility with updated SDK.

* fix: improve token handling and user info resolution in CopilotCLISDK

* fix: update GitHub Copilot dependency to version 1.0.56-1

* fix: add missing linux-test-proxy binaries to CopilotCLI SDK upgrade tests

* fix: enhance CopilotCLISDK test setup with mock package implementation and path import

* fix: update GitHub Copilot dependency to version 1.0.57

* fix: add support for 'extension_context' attachment type in chat history and logging

* Ignore the new mxc binaries
2026-06-02 18:53:41 +10:00
Christof Marti 2f1e7d65c9 Include pty.node for mxc (#317981) 2026-06-01 10:39:50 -07:00
Anthony Kim 79ff5c49e7 Bump Agent host Copilot CLI to 1.0.49 (#317241)
* Bump Agent host Copilot CLI to 1.0.48

* Copilot Cli to 1.0.48 sdk to 1.0.0-beta.4

* Exclude pvrecorder, foundry-local-sdk, mxc-bin

* Parity for copilot/sharp

* Add back missing binary

* Update dependencies for public copilot cli sdk

* remove icu-native.node for now

* Remove win32-native.node, icu-native.node

* Bump both internal and public to 1.0.49

* Only copy required Copilot SDK prebuilds

* Fix Copilot SDK native binary handling
2026-05-21 23:43:38 +00:00
Anthony Kim 901c4fdb6c Update Copilot CLI to 1.0.48 (#316566)
* Bump version

* Updates

* Updates

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* chore: update @github/copilot to version 1.0.48 and enhance file copy logic in postinstall script

* Updates

* updates

* Include other files

* udpates

* updates

* Also filter prebuilds one

* Prune non-target Copilot SDK prebuilds

* Try clean-up

* revert

* try with foundtry, pvrecorder,mxcbin

* try if excluding computer.node helps

* Try if stripping cli signatures would work

* Revert "try if excluding computer.node helps"

This reverts commit c51a9e742f.

* Revert "try with foundtry, pvrecorder,mxcbin"

This reverts commit 4c98422afc.

* build: remove PE signature before patching via rcedit (#316948)

* build: remove PE signature before patching via rcedit

* build: also apply to reh

* Need to update properly

---------

Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Robo <hop2deep@gmail.com>
2026-05-19 09:50:42 +10:00
Martin Aeschlimann 904c914799 copilot: updateSources (#315005)
* copilot: updateSources

* update
2026-05-07 18:13:04 +02:00
Matt Bierner 371c4a0a73 Use root eslint for copilot 2026-04-28 15:20:59 -07:00
Matt Bierner 1a54933643 Revert "Use main eslint config for copilot extension too" 2026-04-23 15:17:22 -07:00
Matt Bierner 766e6a9698 More fixes
Co-authored-by: Copilot <copilot@github.com>
2026-04-20 23:14:43 -07:00
Matt Bierner ad6844f64d Use main eslint config for copilot extension too
- Moves copilot eslint config into top level eslint config
- Adopts some standard rules
- Suppress a few new shared rules
2026-04-20 22:46:02 -07:00
Don Jayamanne 521013fd76 chore: update @github/copilot to version 1.0.26 and remove unused telemetry binder (#309955)
* chore: update @github/copilot to version 1.0.26 and remove unused telemetry binder

* Update tests
2026-04-15 16:38:35 +10:00
Don Jayamanne 23699671ae feat: remove Copilot CLI shim and clean up worker file copying (#309681)
* feat: remove Copilot CLI shim and clean up worker file copying

* updates

* oops
2026-04-13 19:41:13 -07:00
Matt Bierner f8e1706349 Merge branch 'main' into dev/mjbvz/potential-narwhal 2026-04-13 10:24:52 -07:00
Don Jayamanne 3913b503a3 Update @github/copilot to version 1.0.24 in package.json and package-lock.json (#309257)
* Update Copilot SDK to version 1.0.24

* Updates

* Fix tets

* Fixes
2026-04-12 08:48:34 -07:00
Logan Ramos 4c01ed2e76 Stop fetching GHCR pat (#309086)
* Stop fetching GHCR pat

* MAKE IT RED
2026-04-10 19:48:27 +00:00
Alex Ross 8b5518b088 Show combination tool approval args (#308747) 2026-04-10 12:05:03 +02:00
Matt Bierner 8a370f0f75 move under ext src 2026-04-09 13:31:06 -07:00
Matt Bierner ae4af364ad Fix a few subprojects 2026-04-09 11:39:04 -07:00
Matt Bierner 7c652f23ac Fix chat lib build 2026-04-09 11:25:28 -07:00
Matt Bierner 0f60dd3e7a Use core vscode*d.ts files for copilot 2026-04-09 10:53:58 -07:00
Don Jayamanne d675efeebd Update Copilot dependency to version 1.0.21 (#308440)
* feat(copilot): update Copilot dependency to version 1.0.21

* Address review comments

* Updates

* Fix tests
2026-04-08 18:48:08 +00:00
João Moreno ee6b7639ca Merge remote-tracking branch 'origin/main' into joao/copilot-builtin 2026-04-02 12:31:52 +02:00
Federico Brancasi c33e376aa0 Allow invoking simulationMain with alternative action input (#4304)
* Allow invoking simulationMain with alternative action input

* Address review comments: rename CLI opts, extract pipeline, fix correctness issues

- Rename CLI options with --train- prefix (--train-input, --train-strategy,
  --train-out, --train-row-offset, --train-worker) and document all options
- Extract runInputPipeline/runInputPipelineParallel to test/pipeline/trainPipeline.ts
- Preserve original row index through parse/replay/prompt pipeline to fix
  sample numbering drift when rows are filtered out
- Fix parseSuggestedEdit: use JSON.parse for escaped text, handle missing delimiter
- Fix line number regex to accept optional space after | (WithoutSpace format)
- Clamp concurrency to >= 1, type samples as ISample[], wrap dispose in try/finally
- Gate verbose logging in loadAndParseInput behind verbose flag
- Use splitLines from existing utility instead of local duplicate

* move nes-datagen to a subcommand

* more code reuse around setting promptStrategy and model config

* Address review: use ResponseFormat, Limiter, assertNever, and raw messages

* minor refactor runPipeline

* finalize

* use POT instead of custom code

* move files from script/ to test/pipeline/

---------

Co-authored-by: ulugbekna <ulugbekna@gmail.com>
2026-03-30 15:44:46 +00:00
Raymond Zhao 212f9d5e17 fix: do not create symlinks on Windows (#4741)
* fix: do not create symlinks on Windows

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-26 23:04:51 +00:00
Tyler James Leonhardt 350ac2aa3d Move .claude creation for testing agent harness to postinstall (#4624)
* Move .claude creation for testing agent harness to postinstall

title says it all.

* fix: simplify symlink creation logic in createClaudeSymlinks function

---------

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2026-03-26 21:08:58 +00:00
João Moreno 771a44ba4b Run postinstall from esbuild instead of duplicating logic
Instead of duplicating the tiktoken compression and static asset copying
in .esbuild.ts, simply run the postinstall script via tsx. This keeps a
single source of truth for what gets copied to dist/.

Also make the base.sqlite check a warning instead of a fatal error,
since it's a dev-only sanity check that shouldn't block CI builds.
2026-03-22 13:58:13 +01:00
Daniel Rosenwasser b6aa5a1828 Make development more-friendly for TypeScript 6/7 (#4272)
* Update devcontainer.

* Switch module settings, turn on `noEmit`, and drop explicit `lib`.

* module->namespace

* Switch troublesome packages to use `import = require()` syntax.

* Remove unnecessary declaration file.

* Drop DOM declarations.

* Fix up errors from more restrictive signature of `vscode.l10n.t`.

* Fix chat-lib script - we no longer have that stray file.

* Update dependencies.
2026-03-09 16:28:43 +00:00
Don Jayamanne 19aff91864 Include sdk/definitions/*.yaml files in release (#4107) 2026-03-02 10:25:47 +00:00
Alex Ross 45bbb4f4da The reckoning: Update all the vscode.proposed.*.d.ts files (#3895)
* The reckoning: Update all the vscode.proposed.*.d.ts files
and run the update on post install

* Improve proposed update and check
- Pin it to a commit
- Require that update be run manually, not as post install
- Add PR check

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2026-02-20 14:06:58 +00:00
Don Jayamanne 60b0d9ca1a Update sources to include date.ts (#3359) 2026-02-02 08:27:31 +00:00
Christof Marti f492228270 Move chat-lib tests to main src folder (#3004) 2026-01-20 17:05:51 +00:00
Don Jayamanne dfaa4f6d5f Update Github Copilot to latest version (#2864)
* Update to latest version of Github Copilot CLI

* Use 0.0.381

* Reverts

* Update src/extension/agents/copilotcli/node/copilotcliSession.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Updates

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-15 01:36:52 +00:00
Ulugbek Abdullaev b2ca2cdf06 chore: add a script to clean logs (#2812)
* chore: add a script to clean logs

* Update script/cleanLog.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update script/cleanLog.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update script/cleanLog.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-13 18:24:41 +00:00
Matt Bierner 8ac955f91b Hook up prototype external ingest support (#2618)
* Hook up prototype external ingest support

* User clearer file name

* Fix for merge

* Rename setting

* Move to team internal

* Fix reference

* Copy over wasm file to dist

* Wrong postinstall script :/
2025-12-18 05:53:04 +00:00
Don Jayamanne cd3d0896dc Fix running windows shell commands in Background Agent (#2468) 2025-12-07 22:47:39 +00:00
Rob Lourens ca58b7eeec Bump claude-code again (#2413)
* Revert "Revert "Bump claude-code module (#2167)" (#2179)"

This reverts commit 18092fc6a3.

* Try this
2025-12-04 23:42:51 +00:00
Copilot 288fd20100 Replace localize with l10n.t and add ESLint rule to prevent nls imports (#2301)
* Initial plan

* Replace localize with l10n.t and add ESLint rule to prevent nls imports

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Use named import { l10n } from 'vscode' in nuget.ts

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* replace errorMessage usage with a l10n.t based one

* apply

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
Co-authored-by: Tyler Leonhardt <tyleonha@microsoft.com>
2025-12-03 04:16:52 +00:00
Rob Lourens 18092fc6a3 Revert "Bump claude-code module (#2167)" (#2179)
This reverts commit c0eceff1c3.
2025-11-25 03:32:38 +00:00
SteVen Batten c26394e68b remove dep on dev kv client (#2176) 2025-11-25 00:18:03 +00:00
Rob Lourens c0eceff1c3 Bump claude-code module (#2167)
* Bump claude-code module
Because of CG issue

* Remove

* Fix
2025-11-24 20:15:40 +00:00
Connor Peet 7eaf16a3c2 eng: update analyze edits script for new evals (#2144) 2025-11-21 23:01:24 +00:00
Jeff Hunter 4cbd1042c0 Inline completions in @vscode/chat-lib (#2131)
* Include inline completions in @vscode/chat-lib

* Follow type imports, * exports without "as", and jsxImportSource pragmas for dependency extraction

* update @vscode/chat-lib test configuration

* update chat lib extraction with new path and add context setup for lib

* initial stubs for inline completions test

* round trip test for getInlineCompletions

* remove unused path mappings

* fix type import

* send only original event names for chat-lib telemetry

* fix wasm loading in chat-lib

* have locateFile default to the current dir if the expected parent directory cannot be found

* update to use service injection with completions in chat-lib

* update citation and ExP handling for completions in chat-lib

* hook up enhanced telemetry for chat-lib

* add missing tsx package

* update post-install script to work with pre-built and unbuilt versions of chat-lib and add missing completions dependencies

* remove unneeded try/catch block

* correct typo

* generate package-lock from correct npm version

---------

Co-authored-by: Christof Marti <chrmarti@microsoft.com>
2025-11-21 15:47:14 +00:00
Ulugbek Abdullaev b1f76d35eb eslint blamer: fix: nicer rendering (#1947) 2025-11-12 11:57:22 +00:00
Ulugbek Abdullaev 2ecc1fbe54 chore: enable no-explicit-any (#1943) 2025-11-12 09:23:24 +00:00
Don Jayamanne d0f16d6dc2 Remove zeromq and related unwanted notebook execution tests (#1941) 2025-11-12 04:31:49 +00:00