Commit Graph

1276 Commits

Author SHA1 Message Date
Zhiming Ma
f51bdd675f
feat(lsp): add example VSCode client for Tabby agent LSP. (#1205) 2024-01-13 08:07:12 -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
Meng Zhang
70854ca64c
Revert "docs: website docs restructure" (#1201) 2024-01-12 12:42:14 -08:00
Meng Zhang
622f78c039
Revert "docs: fix redirect error." (#1200) 2024-01-12 12:41:54 -08:00
Lucy Gao
6ce764153b
docs: fix redirect error. (#1199) 2024-01-12 12:08:41 -08:00
Lucy Gao
66314178d8
docs: website docs restructure (#1158)
* docs: docs restructure (1/N)

Add installation/self-hosted/cloud-gpu

* docs: restructure Tabby doc

Move existing doc around for docs/installation/ and docs/coding-assistant/.

* docs: enable doc redirects

* docs: fix docker page redirect

* docs: comments addressed with directories renamed.

* docs: update file naming.
2024-01-12 08:44:30 -08:00
boxbeam
802588d16d
feat(tabby): Add gfx1031 to supported ROCm targets (#1197) 2024-01-12 08:22:37 -08:00
boxbeam
3841185d71
feat: Remove 'active' field from OAuth credentials (#1193)
* Remove active field from OAuth credentials

* [autofix.ci] apply automated fixes

* Remove unused parameter, add test case

* Fix tests

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-11 21:37:11 -08:00
boxbeam
3ddbda8e82
docs: add CONTRIBUTING.md (#1185)
* docs: Create Contributors.md

* Add slack to Contributors.md

* Include link to IDE setup

* Rename to CONTRIBUTING.md, add more information

* Fix contributing

* Add local setup subsection

* Apply suggestions

* Add screenshot to contributing.md

* Add description of screenshot

* Apply suggested changes

* Remove --release flag from command examples

* Add information on Windows dependency installation
2024-01-11 08:39:08 -08:00
Meng Zhang
40d3296930
Update LICENSE 2024-01-10 23:16:11 -08:00
Eric
d0784d3741
fix(webserver): filter repository file without meta info (#1186)
* fix(webserver): filter repository file without meta info

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-10 14:51:35 +08:00
boxbeam
fd22fb98e5
feat(db): Implement DAO for repositories (#1178)
* feat: Implement DAO for repositories

* Add method to get repository, add test

* Apply suggestions

* Make delete_repository take an ID instead of name

* Return an error on failed update

* Use anyhow error instead of custom error

* Apply suggested changes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-09 17:16:48 +00:00
Meng Zhang
9b8b750d2c
fix: rust ci should test on tabby-db (#1184)
* Update autofix-rust.yml

* Update test-rust.yml
2024-01-10 00:03:43 +08:00
boxbeam
976fe70160
feat: Create DB table to store SMTP creds, and GraphQL API endpoints to get and set them (#1176)
* feat: Create DB table to store SMTP creds, and GraphQL API endpoints to get and set them

* Apply suggested changes

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Add test, change field and struct names

* Fix table name in update query

* Fix method name

* Forgot to unwrap Option

* Remove trailing comma in SQL query

* Update row indices to be zero-indexed

* Apply suggested changes

* Code cleanup

* Use insert-or-update instead of delete and insert

* Fix where clause

* Update ee/tabby-db/migrations/07-email-service-credentials/down.sql

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Meng Zhang <meng@tabbyml.com>
2024-01-10 00:00:57 +08:00
Eric
ef7674c29d
feat(webserver): Add graphql api for oauth credential management (#1177)
* feat(webserver): graphql api for oauth management

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* resolve comment

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-09 23:26:31 +08:00
Zhiming Ma
356d1b0751
fix(actions): fix release-vim to push tags. (#1175) 2024-01-08 22:20:26 +08:00
Zhiming Ma
af7cbf0582
feat: Add a new event type:dismiss. Add view_id and elapsed in event body. (#1144)
* feat: Add a new event type: dismiss. Add `view_id` and `elapsed` in event body.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-08 22:19:52 +08:00
Zhiming Ma
5a60758c7c
chore(vim): bump vim plugin version to 1.2.0. (#1174)
* feat(vim): update agent script.

* fix(vim): fix nvim agent output stream reader to ignore non-json lines.

* chore(vim): bump vim plugin version 1.2.0.
2024-01-08 20:23:42 +08:00
Zhiming Ma
459b610039
fix(vim): fix errors caused by <tab> keymapping conflicts. (#1173)
* fix(vim): fix vim keymapping to handle empty correctly.

* docs(vim): update README, simplify `Installation` section, add `Conflict Resolutions`.

* docs: Confict Resolutions -> Known Conflicts.
2024-01-08 20:10:31 +08:00
Eric
3003a4f99a
feat(webserver): complete github_auth method (#1169)
* feat(webserver): register user when oauth by github

* [autofix.ci] apply automated fixes

* add comment

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-07 23:25:44 +08:00
boxbeam
81f46dc583
docs: Crate doc comments (#1168)
* doc: Add basic doc comments describing most of the tabby crates

* Apply suggestions from code review

Co-authored-by: Meng Zhang <meng@tabbyml.com>

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
2024-01-07 08:36:22 +08:00
Eric
f9dc54ad50
feat(webserver): Add github oauth support (#1160)
* feat(webserver): add github oauth support

* fix test

* resolve comments

* [autofix.ci] apply automated fixes (attempt 2/3)

* fix test

* [autofix.ci] apply automated fixes

* switch to reqwest

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-06 14:16:58 +00:00
boxbeam
cb035a6f4e
feat: Pass logger through to chat service and log completion chunks as they are generated (#1161)
* Pass logger through to chat service and log completion chunks as they are generated

* Log in the chat completion generator instead of the endpoint

* Create Message struct for log serialization

* Rename fields

* Create function to convert message list

* Remove unnecessary access modifier

* Use Message struct for output

* Use single message instead of list of messages

* Make requested changes

* Update Cargo.toml

* Update Cargo.toml

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
2024-01-05 16:51:49 +00:00
Meng Zhang
22b8669898
refactor(webserver): return owned instance of service in ServiceLocator (#1165)
* refactor(webserver): extract owned_auth so router could relies on AuthenticationService directly

* fix

* update

* update

* update
2024-01-05 20:09:09 +08:00
Zhiming Ma
0977b78e65
chore(intellij): bump intellij plugin version 1.2.0. (#1157) 2024-01-03 17:19:22 +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
a4461b3f45
fix(vscode): remove the clipboard accessing in getting inline completion. (#1155) 2024-01-03 13:23:12 +08:00
Eric
34f9c7e932
fix(webserver): support resolve all types of repos (#1145)
* fix(webserver): support resolve all types of repos

* resolve comment

* Update handler.rs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Meng Zhang <meng@tabbyml.com>
2024-01-01 16:10:21 +00:00
Meng Zhang
1e9ce3e2c6
chore(ui): update embed version of tabby-ui (#1147) 2023-12-30 09:44:08 +00:00
Meng Zhang
57d7bd720e
refactor(db): extract ee/tabby-db (#1141)
* refactor(db): extract tabby-db

* add tabby-db

* refactor: extract uuid package to workspace

* refactor: move is_admin_initialized unit test to auth.rs

* remove services/db

* fix workspace deps

* fix deps
2023-12-29 17:20:36 +08:00
aliang
3ca9049325
fix: use document.execCommand for non-secure context (#1137)
* fix: use document.execCommand for non-secure context

* fix: use shadn's toast component

* fix: onError option of useCopyToClipboard

* fix: use sonner
2023-12-29 11:14:58 +08:00
Zhiming Ma
a18ff03d44
refactor(agent): move calcReplaceRange to a postprocess filter. (#1138)
* refactor(agent): Refactor calcReplaceRange to a postprocess filter. Fallback to non-syntax based filter when syntax error.

* fix: remove console.log.
2023-12-28 23:15:47 +08:00
Eric
d6174d0969
fix(webserver): ignore .git for /repositories resolve api 2023-12-28 23:01:58 +08:00
Zhiming Ma
3345f4a0a7
fix(agent): fix tree-shaking file-stream-rotator in building browser scripts. (#1139) 2023-12-28 19:37:07 +08:00
Meng Zhang
d1181607f6
feat(ui): consume /v1beta/chat/completions as openai compatible stream (#1109)
* Convert completion chunk API response to OpenAI-compatible event stream

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Serialize from structs instead of string literal

* Update content-type

* Prepend data: to each event

* [autofix.ci] apply automated fixes

* Add delta field

* Fix ChatCompletionChunk structure

* Append two newlines after each chat completion chunk event

* feat(ui): consume /v1beta/chat/completions as openai compatible stream

---------

Co-authored-by: Redempt <instantiable@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-28 00:23:46 +00:00
boxbeam
b0877af566
feat: Convert completion chunk API response to OpenAI-compatible event stream (#1094)
* Convert completion chunk API response to OpenAI-compatible event stream

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

* Serialize from structs instead of string literal

* Update content-type

* Prepend data: to each event

* [autofix.ci] apply automated fixes

* Add delta field

* Fix ChatCompletionChunk structure

* Append two newlines after each chat completion chunk event

* Use placeholder strings for model and fingerprint

* Update crates/tabby/src/services/chat.rs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Meng Zhang <meng@tabbyml.com>
2023-12-28 00:13:52 +00:00
Meng Zhang
aee107c68f
refactor(webserver): add DAO suffix to database bridge objects (#1133) 2023-12-27 16:35:03 +00:00
Meng Zhang
3339a6c967
refactor(webserver): extract job service (#1132) 2023-12-27 16:22:18 +00:00
Meng Zhang
8e74e4d06d
refactor(webserver): deprecate invitations / users api. add delete_in… (#1131)
* refactor(webserver): deprecate invitations / users api. add delete_invitation_next

* update

* refactor(webserver): remove old list_users implementation, just use paginated list_users

* refactor(webserver): remove old list_invitations implementation, just use paginated list_invitations

* update graphql schema
2023-12-28 00:03:49 +08:00
Meng Zhang
940d7584a3 docs: fix webserver api spec 2023-12-27 18:12:11 +08:00
Meng Zhang
e2eda29e3b
refactor: mark RepositoryConfig::name private (#1125) 2023-12-27 10:10:49 +00:00
Meng Zhang
8d20068e34
fix(webserver): DirEntryKind should use lower case (#1126) 2023-12-27 18:07:29 +08:00
Meng Zhang
94f9bb8a18
docs: extract Collapse react component for easier collapsable (#1124) 2023-12-27 17:20:02 +08:00
Meng Zhang
e39d43ce58
docs: Q1 2024 Roadmap (#1123)
* Update roadmap.md

* Update roadmap.md

* Update roadmap.md
2023-12-27 15:13:54 +08:00
Eric
ce44f68ee7
feat: display job run results in page (#1116)
* feat: display job run results in page

* [autofix.ci] apply automated fixes

* resolve comment

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-26 15:41:25 +08:00
Meng Zhang
3f1fefbfa1
feat(core): add TABBY_MODEL_CACHE_ROOT to allow individually set tabb… (#1121)
* feat(core): add TABBY_MODEL_CACHE_ROOT to allow individually set tabby model cache dir

* docs: update changelog

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-26 07:38:53 +00:00
Lucy Gao
49e86c4a51
docs: newsletter link update + README (#1120) 2023-12-26 15:09:04 +08:00
Meng Zhang
bf5b6cfe2b
chore(release): build openssl statically in manylinux2014 build (#1115)
* chore(release): build libssl statically in manylinux2014 build

* fix: add openssl to cargo-machete ignore
2023-12-26 13:01:47 +08:00
Eric
7876f57da8
feat: support relay-style pagination, apply on uses & invitations (#1106)
* feat: support relay-style pagination, apply on uses & invitations

* resolve comment
2023-12-25 03:33:50 +00:00
Meng Zhang
3f779fa0b0
fix: update slack join link in tabby terminal 2023-12-25 10:05:52 +08:00