Commit Graph

68 Commits

Author SHA1 Message Date
Meng Zhang
08a326c347
chore(vscode): use codelens for inline edit actions / decorations (#3000)
* refactor(vscode): disable noUnusedLocals and update build script. Extract InlineEditController

* refactor(inline-edit): reorganize InlineChatEdit

* restructure tsconfig.json

* build(clients/tabby-agent): update watch script to modify dist/protocol.d.ts on success, to help trigger watch mode of vscode extension

* streaming at line break

* Let CodeLensProvider using footer's markers

* turn off background color of header / footer to avoid flickering

* support cancel from codelens

* update

* update

* update

* update

* [autofix.ci] apply automated fixes

* fix

* chore(agent): when apply inline edit, apply the first edit as soon as possible so codelens can display immediately

* add highlight for in progress edit

* update

* [autofix.ci] apply automated fixes

* update

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-28 21:52:58 -07:00
Meng Zhang
8dfc23a8dc
docs: change grammar fixing command's text copy (#2849)
* docs: change grammar fixing command's text copy

* Update AgentConfig.ts

* Update AgentConfig.ts

* update

* update

* update

* update

* update

* update

* update

* update

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-13 04:28:36 +00:00
Zhiming Ma
265b0d01fa
feat(agent): http proxy support (#2637)
* feat(agent): http proxy support.

* fix: update pnpm-lock.ymal after rebase.

* [autofix.ci] apply automated fixes

* fix(agent): remove config proxy.authorization.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-15 12:27:51 +08:00
Zhiming Ma
8778da4eca
fix(openapi): fix chat completion api to openai compatible. (#2632)
* fix(openapi): fix chat completion api to openai compatible.

* fix(openapi): fix types compatibility issues.
2024-07-13 17:46:30 +08:00
Zhiming Ma
18304f4cb1
feat(agent): add system command based git context provider as default. (#2571)
* feat(agent): add system command based git context provider as default.

* fix(agent): fix ensureCwd and errorHandler of GitContextProvider.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-04 12:00:28 +08:00
Zhiming Ma
ee1c6c65dc
chore(agent&vscode): bump agent & vsce version to 1.8.0-dev. (#2540) 2024-06-28 14:21:02 +08:00
Zhiming Ma
34052fbaff
fix(agent): fix readable stream in browser. (#2359)
* fix(agent): fix readable stream in browser.

* [autofix.ci] apply automated fixes

* fix: revert error serialize.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-06-07 17:18:51 +08:00
Zhiming Ma
2d8d746cb1
fix(agent&vscode): fix treeshaking for build scritps. (#2357) 2024-06-06 17:19:07 +08:00
Zhiming Ma
bd57267b27
chore: extract tabby-openapi. (#2342) 2024-06-04 20:30:55 +08:00
Zhiming Ma
436c4be7fe
feat(agent&vscode): add support to edit document by chat command. (#2303)
* feat(agent&vscode): add support to edit document by chat command.

* fix: cleanup code.

* fix: add language id in chat edit prompt.

* fix: improve chat edit response splitter.

* fix: fix tabby.chatEditResolving to listen document changes.

* fix: remove unused types.
2024-05-31 08:22:56 +08:00
Zhiming Ma
35352a3df6
Revert "chore: fix pnpm ci build (#2267)" (#2270)
This reverts commit 1921723818.
2024-05-29 09:59:51 +08:00
Meng Zhang
e7af21a7f2 chore: fix the tabby-agent build command 2024-05-29 07:22:44 +08:00
Meng Zhang
1921723818
chore: fix pnpm ci build (#2267) 2024-05-28 23:13:22 +00:00
Zhiming Ma
748c5deca1
chore(vscode): use force turbo build in prepackage. (#2261) 2024-05-28 19:48:49 +08:00
Zhiming Ma
7205b788b3
refactor(agent&vscode): connect vscode extension to agent via lsp. (#2247)
* refactor(vscode): connect vscode extension to agent via lsp.

* fix: resolve rebase.

* chore: update npm script watch.

* fix(vscode): fix position type convert.
2024-05-27 18:22:21 +08:00
Meng Zhang
e50f04bb37
feat: migrate to pnpm (#2214)
* fix(chat-panel): FileContext.content shall be required field.

* fix: tabby agent build

* migrate vscode series

* fix tabby-ui build

* migrate all build pipeline

* cleanup lint / fix

* update test

* simplify workflow

* update

* update

* update

* update

* fix

* fix tabby-ui build

* fix name

* update

* update

* update

* update

* migrate tabby-email

* update
2024-05-21 21:43:15 +00:00
Zhiming Ma
ee8b811d2f
fix(agent): fix chat stream parsing. (#2186) 2024-05-20 07:49:39 -07:00
Zhiming Ma
e71cef8a93
chore(agent&vscode): bump tabby-agent && vsce version to 1.6.0. (#2143) 2024-05-16 10:53:07 +08:00
Zhiming Ma
1c034d74a0
fix(agent&vscode): improve logging. (#2072) 2024-05-10 09:11:41 -07:00
Zhiming Ma
b437715aff
chore(agent): bump tabby-agent & vsce version to 1.6.0-dev. (#1972) 2024-04-26 17:29:03 +08:00
Zhiming Ma
3c12cc135c
chore(agent,vscode): bump tabby-agent and vsce version to 1.5.0. (#1872) 2024-04-17 16:03:53 +08:00
Zhiming Ma
d2db7ab052
fix(agent): skip fetching server config when server version < 0.9.0. (#1605)
* fix(agent): fix log level to debug when fetch server config returns 401 403 or 404. skip fetching server config when server version < 0.9.

* fix(agent): only schedule fetching server config after health check is done.
2024-04-17 15:29:12 +08:00
Zhiming Ma
0b9e0d2441
feat(agent&vscode): add filepath & git_url in completion request. (#1682)
* feat(agent): add fileInfo in completion request.

* fix(agent): updates based on the completion request api changes.

* fix(vscode): fix field when getting `completion.prompt.filepath` config.

* fix: Remove filepath experimentalEnabled config. Add types for git api.
2024-03-25 10:35:27 +08:00
Konstantin S. Uvarin
fa9dcb99e4
refactor(agent): use stats-logscale@1.0.9 which has native TS support (#1657) 2024-03-13 10:59:33 +08:00
Zhiming Ma
e0763168cf
chore(agent): bump tabby agent version to 1.4.2. (#1595)
* chore(agent): bump tabby agent version to 1.4.0.

* chore(agent): include win-ca binary in npm release file list.

* chore(agent): bump tabby agent version to 1.4.1.

* fix: update tabby-agent reference versions.

* chore(agent): bump tabby agent version to 1.4.2.
2024-03-01 23:40:18 +08:00
Zhiming Ma
d6d4903e0f
feat(agent): support load ca cert from os. (#1468)
* feat(agent): support load ca cert from os.

* feat(agent): support load ca cert from win-ca.

* feat(clients): update tabby agent script.

* fix(agent): rename config tls.ca to tls.caCerts.
2024-02-20 20:33:26 -08:00
Zhiming Ma
77b52aceac
fix(agent): tabby agent hotfix 1.3.3: disabled experimental features. (#1347) 2024-01-31 23:10:26 -08:00
Zhiming Ma
a818905c7e
fix(agent): Hotfix 1.3.2: disable syntax-based replace range calculation by default. (#1345)
* fix(agent): Hotfix 1.3.2: disable syntax-based replace range calculation by default.

* test(agent): update test description.
2024-01-31 21:39:31 -08:00
Zhiming Ma
eb7ce024e8
chore(agent): bump tabby agent version to 1.3.1. (#1321) 2024-01-30 00:03:12 -08:00
Zhiming Ma
b75f12e5ff
chore(agent): bump tabby-agent version to 1.3.0 (#1225)
* chore(agent): prepare for publishing to npm.

* chore(agent): add CHANGELOG.md.
2024-01-17 07:38:58 -08:00
Zhiming Ma
dd558a0441
feat(agent): add lsp support to agent. (#1172)
* feat(agent): add lsp support to agent.

* fix(agent): fix the LSP completion result formatting.

* docs(agent): add README.md.
2024-01-13 07:32:36 -08:00
Zhiming Ma
20e6211120
chore(vscode): bump vscode extension & tabby-agent version to 1.2.0. (#1156)
* chore(vscode): bump vscode extension & tabby-agent version to 1.2.0.

* docs: update README.md for vscode extension.

* fix: lint.
2024-01-03 16:33:05 +08:00
Zhiming Ma
a40a4bbab0
fix(agent): fix agent creating empty log file at silent log level. (#1077)
* fix(agent): fix agent creating empty log file at silent log level.

* fix(agent): update log rotate file stream config.
2023-12-19 13:07:18 +08:00
Zhiming Ma
7eabfeebe6
test(agent): add test against full postprocess flow. (#1029)
* test(agent): add test against full postprocess flow.

* chore(agent): update yarn lock file.

* test(agent): add cases to postprocess tests.

* chore(agent): downgrade glob to 7.2.0.
2023-12-18 09:59:16 +08:00
Zhiming Ma
d4bef71441
refactor(agent): refactor tabby agent code style. Add typescripty strict check and eslint. (#950)
* refactor(agent): add typescript strict check and eslint.

* fix(agent): fix tree-shaking for building browser lib.

* fix(vscode): fix ignore paths for watch script.
2023-12-06 22:06:01 +08:00
Zhiming Ma
52cf5fb613
feat(agent): support read clipboard as prompt (#885)
* feat(agent): add support for reading clipboard text as prompt.

* fix: add clipboard in context hash calculation.

* fix: set default allowed clipboard chars to 2000.
2023-11-24 14:56:31 +08:00
Zhiming Ma
1583e76994
fix(agent): Hotfix 1.1.1. Fix agent completion stats initialization error. (#844)
* fix(agent): fix completion stats initialization error.

* fix(agent): Hotfix 1.1.1. Fix agent completion stats initialization error.

* fix: fix changelog format.
2023-11-19 20:11:03 -08:00
Zhiming Ma
84781ec84a
chore(vscode): bump vscode extension & tabby-agent version to 1.1.0. (#835) 2023-11-18 21:34:57 -08:00
Zhiming Ma
568b7b41a5
feat(agent): add experimental postprocess limit scope by syntax. (#758)
* feat(agent): add tree-sitter parser.

* feat(agent): make parser updating tree cache optional.

* feat(agent): add experimental limit scopy by syntax.

* test(agent): update unit test for limitScopeBySyntax.
2023-11-12 10:11:31 -08:00
Zhiming Ma
4d6389a9ab
test(agent): add golden test. (#684)
* test(agent): add golden test.

* test(agent): update golden test.

* test(agent): remove docker-compose.

* test(agent): update golden test.
2023-11-04 19:12:52 -07:00
Zhiming Ma
e88097320b
feat(agent): add auth token config. (#649)
* feat(agent): add auth token config.

* fix: fix agent loading auth token.

* fix: update retain old config filepath.

* fix: update retain old config filepath.

* fix: lint.

* fix: remove auto migrate, update config template.
2023-10-29 21:09:18 -07:00
Zhiming Ma
3b4717fd47
chore(vscode): bump vscode extension & tabby-agent version to 1.0.0. (#609) 2023-10-22 00:11:59 -07:00
Zhiming Ma
be5e76650f
refactor(agent): refactor completion postprocess and caching. (#576) 2023-10-17 09:04:04 -07:00
Zhiming Ma
4ebad71805
fix(agent): hotfix vscode extension 0.6.1. Filter out no data AgentStats event. (#489) 2023-09-28 18:58:44 -07:00
Zhiming Ma
1d6ac7836b
chore: bump VSCode extension version 0.6.0. bump tabby-agent version 0.3.0. (#484) 2023-09-27 19:19:31 -07:00
Zhiming Ma
e5340ddf06
chore: add ci test clients. (#476)
* chore: add ci test clients.

* chore: add ci test build intellij plugin.
2023-09-26 21:02:56 -07:00
Zhiming Ma
f75a50de02
Refactor completion request statistics (#474)
* refactor(agent): improve completion provider stats.

* refactor(agent): refactor issues notification and config update.
2023-09-26 03:01:38 -07:00
Zhiming Ma
cc83e4d269
fix(vscode): completion view/select event. (#471)
* fix(vscode): completion view/select event.

* chore: bump tabby-agent version 0.3.0-dev.
2023-09-25 09:07:25 +08:00
Zhiming Ma
635469f6bd
chore: bump VSCode extension version 0.5.0. bump tabby-agent version 0.2.0. (#449) 2023-09-15 19:04:01 +08:00
Zhiming Ma
efe2dcbb0f
refactor(agent): agent http request and cancellation flow. (#446)
* refactor(agent): refactor http request and cancellation flow.

* fix: minor fixes.

* fix: minor fix cheking timeout error in stats.
2023-09-15 11:05:46 +08:00