Commit Graph
1217 Commits
Author SHA1 Message Date
Kyle Caverly 339ffb9f7a Introduction of PromptTemplate and PromptChains (#3139)
(This PR was written 100% by the Inline Assistant)

This PR brings in new components into our ai and assistant crates namely
PromptTemplate and PromptChains. They offer a new way to generate
prompts that allow for a more flexible and dynamic approach than before.

Release Notes:
- Introduced PromptTemplate: an abstract base for individual parts of
the prompt.
- Added PromptChains: manage multiple PromptTemplates, sort them based
on priority and regulate the output size based on tokens.
- Provided new PromptArguments structure to encapsulate arguments needed
for PromptTemplate.
    - Extended repository_context to include PromptCodeSnippet.
2023-10-19 14:44:43 -04:00
Joseph T. Lyons b4911dcea8 collab 0.25.0 2023-10-18 13:17:17 -04:00
Joseph T. Lyons 99e2e5733c v0.110.x dev 2023-10-18 12:31:12 -04:00
KCaverly aad3f7f9e8 Merge branch 'main' of github.com:zed-industries/zed into prompt_template 2023-10-18 10:42:16 -04:00
Conrad Irwin 58950c1d11 Start writing role to database (#3120)
Scaffolding for guest members in channels

Release notes:
- You can now set channels to "public" which will allow anyone to join
and become a member. In a future release guests joining public channels
will have reduced permissions.
2023-10-17 13:40:58 -06:00
Conrad Irwin 9029a2807b Merge branch 'main' into guests 2023-10-17 09:54:17 -06:00
Conrad Irwin 61d349956e Allow pasting ZED urls in the command palette in development 2023-10-16 20:03:44 -06:00
KCaverly f87d15ea57 progress on prompt chains 2023-10-16 18:47:10 -04:00
KCaverly 5cba986cee catchup with main 2023-10-16 09:47:07 -04:00
Julia e3e012b4b4 Autocomplete docs (#3126)
Release Notes:

- Added documentation display for autocomplete items.
- Fixed autocomplete filtering blocking the Zed UI, causing hitches and
input delays with large completion lists.
- Fixed hover popup link not firing if the mouse moved a slight amount
while clicking.
- Added support for absolute path file links in hover popup and
autocomplete docs.
2023-10-13 13:26:45 -04:00
Piotr Osiewicz 5c749a5db2 Piotr/z 651 vue support (#3123)
Release Notes:

- Added Vue language support.
2023-10-13 18:58:59 +02:00
Kirill Bulatov 9810e8dd26 Remove zed -> ... -> semantic_index -> zed Cargo dependency cycle 2023-10-13 10:27:08 +03:00
Marshall Bowers 2270279119 Remove old ui and storybook crates (#3125)
This PR deletes the old `ui` and `storybook` crates in favor of their
newer variants that we'll be landing to `main` in the near future.

### Motivation

These crates are based off the old version of GPUI 2 (the `gpui2`
crate).

At this point we have since transitioned to the new version of GPUI 2
(the `gpui3` crate, currently still on the `gpui2` branch).

Having both copies around is confusing, so the old ones are going the
way of the dinosaurs.

Release Notes:

- N/A
2023-10-12 17:40:20 -04:00
Kirill Bulatov 2c9ee7814d Add prettier support (#3122) 2023-10-12 17:13:10 +03:00
Joseph T. Lyons b8ce16874e collab 0.24.0 2023-10-11 13:51:01 -04:00
Joseph T. Lyons c55a4eb721 v0.109.x dev 2023-10-11 12:40:57 -04:00
Kirill Bulatov 1c32c3d5b3 Draft local and remote prettier separation 2023-10-11 12:56:29 +03:00
Kirill Bulatov 6a9e12f9c2 Properly support prettier plugins 2023-10-11 12:56:29 +03:00
Kirill Bulatov 1c58aafd9c Allow to configure default prettier 2023-10-11 12:56:29 +03:00
Kirill Bulatov 8e3be29eaf Draft prettier_server formatting 2023-10-11 12:56:29 +03:00
Kirill Bulatov a7f42aa29e Slightly better prettier settings and discovery 2023-10-11 12:56:29 +03:00
Kirill Bulatov a92b61844a Make NodeRuntime non-static for prettier runner 2023-10-11 12:56:29 +03:00
Kirill Bulatov 7cc926ec0f Use proper NodeRuntime in the formatter interface 2023-10-11 12:56:28 +03:00
Kirill Bulatov b165871103 Add prettier search 2023-10-11 12:56:28 +03:00
Kirill Bulatov 0410fee03d Prepare prettier file lookup code infra 2023-10-11 12:56:28 +03:00
Kirill Bulatov 40de5415c9 Draft a project part of the prettier 2023-10-11 12:56:28 +03:00
JuliaandAntonio Scandurra 5033682ba9 Get started with a prettier server package
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-10-11 12:56:28 +03:00
Max Brunsfeld eddb00d506 Add a crate-dep-graph script, remove a few unnecessary dependencies (#3103)
This was motivated by me trying to decide which crate I should put a
`NotificationStore` in.

Run `script/crate-dep-graph` to generate an SVG showing the dependency
graph of our `crates` folder, and open it in a web browser.

After running this command, I noticed a couple of dependencies that
didn't make sense and were easy to remove.

Current dependency graph:

![Screen Shot 2023-10-06 at 1 15 42
PM](https://github.com/zed-industries/zed/assets/326587/b5008235-498a-4562-a826-cc923898c052)
2023-10-09 09:20:06 -07:00
Kirill Bulatov 924114ca9d Bump curl-sys to fix Sonoma issues with it
See https://github.com/alexcrichton/curl-rust/issues/524
2023-10-09 17:09:58 +03:00
Joseph T. Lyons d6a8dee1b2 Add enable vim mode checkbox to welcome screen 2023-10-08 20:07:59 -04:00
Max Brunsfeld a829cd1f89 Remove workspace -> channel dependency 2023-10-06 14:19:25 -07:00
Max Brunsfeld 3c812b590d Remove call -> channel dependency 2023-10-06 13:39:10 -07:00
Max Brunsfeld 803aef698d Remove unnecessary dependencies on client and rpc 2023-10-06 13:14:53 -07:00
Max Brunsfeld 4999dc0a92 collab 0.23.3 2023-10-06 11:25:46 -07:00
Julia 8f1f17e3de Most of getting completion documentation resolved & cached MD parsing 2023-10-06 13:26:38 -04:00
KCaverly e30c75f1a9 catchup with main 2023-10-06 16:30:31 +02:00
Max Brunsfeld 4cdf8a6fd7 collab 0.23.2 2023-10-05 16:06:28 -07:00
Mikayla aa11e374c3 re-unify markdown parsing between hover_popover and chat 2023-10-05 14:22:41 -07:00
Mikayla 4dbb78ea12 Create markdown text element and add to channel chat 2023-10-04 17:47:30 -07:00
Max Brunsfeld 707f3ec403 collab 0.23.1 2023-10-04 15:12:17 -07:00
Joseph T. Lyons 0c4b4276f2 collab 0.23.0 2023-10-04 15:01:38 -04:00
Joseph T. Lyons ed781497fa v0.108.x dev 2023-10-04 15:00:53 -04:00
Max Brunsfeld 6f6460a858 Merge branch 'main' into channel-changes 2023-10-03 17:52:28 -07:00
Max BrunsfeldandMikayla d2ca5522f5 Acknowledge channel notes and chat changes when views are active
Co-authored-by: Mikayla <mikayla@zed.dev>
2023-10-03 17:40:10 -07:00
MikaylaandMax 8052372c7c Upgrade SeaORM to latest version, also upgrade sqlite bindings, rustqlite, and remove SeaQuery
co-authored-by: Max <max@zed.dev>
2023-10-03 12:16:53 -07:00
KCaverly c77509e25b catching up with main 2023-10-03 12:05:00 +03:00
KCaverly e5e1c9e2c7 add retrieve context button to inline assistant 2023-10-03 11:19:54 +03:00
Joseph T. Lyons 12ee10d6e7 Add memory and cpu events (#3080)
Release Notes:

- N/A
2023-10-02 19:42:49 -04:00
Joseph T. LyonsandJulia 71b1bb2398 Add memory and cpu events
Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com>
2023-10-02 19:35:31 -04:00
3353d919ac Mainline GPUI2 UI work (#3079)
This PR mainlines the current state of new GPUI2-based UI from the
`gpui2-ui` branch.

Release Notes:

- N/A

---------

Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
Co-authored-by: Nate <nate@zed.dev>
2023-10-02 18:20:47 -04:00