Commit Graph

419 Commits

Author SHA1 Message Date
liuyi
84cfcb193f
fix(server): should not enable experimental mobile version in selfhost (#8840) 2024-11-15 17:47:34 +08:00
DarkSky
129cceade9
feat: add compatible for captcha request with challenge (#8827) 2024-11-14 10:22:02 +00:00
forehalo
9f3dceb220
feat(server): add captcha runtime flag (#8823)
fix AF-1702
2024-11-14 09:41:37 +00:00
Brooooooklyn
c0f6a60a66
fix: migrate to standard import attributes (#8803) 2024-11-13 08:52:05 +00:00
darkskygit
5cde590a4f
feat: improve metrics naming (#8770)
fix CLOUD-83
2024-11-12 03:52:52 +00:00
js os
e2f281ac18
fix(server): make scope field optional in access token response (#8753)
Co-authored-by: DarkSky <25152247+darkskygit@users.noreply.github.com>
2024-11-09 20:01:33 +08:00
darkskygit
2a3e81de3e
fix: also check online model list if model not defined (#8726) 2024-11-08 05:07:45 +00:00
forehalo
ee16ea7a5a
fix(server): avoid preserved html meta tag name (#8682) 2024-11-04 06:01:04 +00:00
forehalo
63b58aad5c
fix(server): reduce yjs binary size (#8681) 2024-11-04 05:45:06 +00:00
forehalo
e87963eca4
fix(server): wrong public path for selfhosted doc renderer (#8660)
closes #8639
2024-11-01 07:56:01 +00:00
darkskygit
7a201984e9
feat(server): add real-world prompt test for copilot apis (#8629)
fix AF-1432, PD-1176
2024-11-01 07:05:12 +00:00
LongYinan
c08b02caba
Revert "feat: copilot frontend e2e (#7694)"
This reverts commit d71852789f.
2024-10-31 12:08:57 +08:00
darkskygit
d71852789f
feat: copilot frontend e2e (#7694) 2024-10-29 08:56:37 +00:00
darkskygit
efee4dfd66
feat: use date fixed model name (#8621)
fix CLOUD-81
2024-10-29 07:31:23 +00:00
darkskygit
3f7752e261
feat(server): verify domain record (#8608) 2024-10-28 07:53:08 +00:00
pengx17
8f694aceb7
fix(core): redirect to old page after login via 404 page (#8588)
fix AF-1487

When visit a cloud worskapce page without login, we should allow the user to redirect back to that page after login.

The logic is only added for this case, including login with email magin link + google login. Login with password is already working without changes.
2024-10-25 03:43:00 +00:00
forehalo
08319bc560
feat(server): support socketio auth field (#8595)
fix AF-1531
2024-10-25 03:27:02 +00:00
darkskygit
054c0ef9f1
feat: isolate user content (#8568)
fix AF-1513
2024-10-22 02:05:03 +00:00
darkskygit
fa554b1054
feat: add copilot metrics (#8455)
fix CLOUD-73
2024-10-18 03:30:02 +00:00
forehalo
b7fac5acb8
fix(server): no more selfhost paths (#8530)
closes #8521
2024-10-17 06:53:01 +00:00
野声
f393f89a3f
fix(server): blank screen on mobile (#8460)
Co-authored-by: forehalo <forehalo@gmail.com>
2024-10-16 13:12:40 +08:00
DarkSky
075cedabf7
fix: message attachment merge (#8498) 2024-10-16 12:57:53 +08:00
野声
691e1c22c2
feat(admin): allow config unlimited copilot (#8487)
Co-authored-by: LongYinan <lynweklm@gmail.com>
2024-10-15 10:11:04 +08:00
darkskygit
d0c9a7bf81
feat: separate user content from prompt (#8480) 2024-10-11 12:47:36 +00:00
renovate
e7ebe0f2c0
chore: bump up oxlint version to v0.9.10 (#8354)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [oxlint](https://oxc.rs) ([source](https://redirect.github.com/oxc-project/oxc/tree/HEAD/npm/oxlint)) | [`0.9.6` -> `0.9.10`](https://renovatebot.com/diffs/npm/oxlint/0.9.6/0.9.10) | [![age](https://developer.mend.io/api/mc/badges/age/npm/oxlint/0.9.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/oxlint/0.9.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/oxlint/0.9.6/0.9.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/oxlint/0.9.6/0.9.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>oxc-project/oxc (oxlint)</summary>

### [`v0.9.10`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.9.10): oxlint v0.9.10

[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.9.9...oxlint_v0.9.10)

#### \[0.9.10] - 2024-10-08

-   [`95ca01c`](https://redirect.github.com/oxc-project/oxc/commit/95ca01c) cfg: \[**BREAKING**] Make BasicBlock::unreachable private ([#&#8203;6321](https://redirect.github.com/oxc-project/oxc/issues/6321)) (DonIsaac)

-   [`5a73a66`](https://redirect.github.com/oxc-project/oxc/commit/5a73a66) regular_expression: \[**BREAKING**] Simplify public APIs ([#&#8203;6262](https://redirect.github.com/oxc-project/oxc/issues/6262)) (leaysgur)

##### Features

-   [`f272137`](https://redirect.github.com/oxc-project/oxc/commit/f272137) editors/vscode: Clear diagnostics on file deletion ([#&#8203;6326](https://redirect.github.com/oxc-project/oxc/issues/6326)) (dalaoshu)
-   [`1a5f293`](https://redirect.github.com/oxc-project/oxc/commit/1a5f293) editors/vscode: Update VSCode extention to use project's language server ([#&#8203;6132](https://redirect.github.com/oxc-project/oxc/issues/6132)) (dalaoshu)
-   [`376cc09`](https://redirect.github.com/oxc-project/oxc/commit/376cc09) linter: Implement `no-throw-literal` ([#&#8203;6144](https://redirect.github.com/oxc-project/oxc/issues/6144)) (dalaoshu)
-   [`5957214`](https://redirect.github.com/oxc-project/oxc/commit/5957214) linter: Allow fixing in files with source offsets ([#&#8203;6197](https://redirect.github.com/oxc-project/oxc/issues/6197)) (camchenry)
-   [`a089e19`](https://redirect.github.com/oxc-project/oxc/commit/a089e19) linter: Eslint/no-else-return ([#&#8203;4305](https://redirect.github.com/oxc-project/oxc/issues/4305)) (yoho)
-   [`183739f`](https://redirect.github.com/oxc-project/oxc/commit/183739f) linter: Implement prefer-await-to-callbacks ([#&#8203;6153](https://redirect.github.com/oxc-project/oxc/issues/6153)) (dalaoshu)
-   [`ae539af`](https://redirect.github.com/oxc-project/oxc/commit/ae539af) linter: Implement no-return-assign ([#&#8203;6108](https://redirect.github.com/oxc-project/oxc/issues/6108)) (Radu Baston)

##### Bug Fixes

-   [`00df6e5`](https://redirect.github.com/oxc-project/oxc/commit/00df6e5) linter: Friendly diagnostic messages for `no-else-return` ([#&#8203;6349](https://redirect.github.com/oxc-project/oxc/issues/6349)) (DonIsaac)
-   [`71ad5d3`](https://redirect.github.com/oxc-project/oxc/commit/71ad5d3) linter: `no-else-return` fixer fails when `else` has no trailing whitespace ([#&#8203;6348](https://redirect.github.com/oxc-project/oxc/issues/6348)) (DonIsaac)
-   [`9e9808b`](https://redirect.github.com/oxc-project/oxc/commit/9e9808b) linter: Fix regression when parsing ts in vue files ([#&#8203;6336](https://redirect.github.com/oxc-project/oxc/issues/6336)) (Boshen)
-   [`93c6db6`](https://redirect.github.com/oxc-project/oxc/commit/93c6db6) linter: Improve docs and diagnostics message for no-else-return ([#&#8203;6327](https://redirect.github.com/oxc-project/oxc/issues/6327)) (DonIsaac)
-   [`e0a3378`](https://redirect.github.com/oxc-project/oxc/commit/e0a3378) linter: Correct false positive in `unicorn/prefer-string-replace-all` ([#&#8203;6263](https://redirect.github.com/oxc-project/oxc/issues/6263)) (H11)
-   [`ea28ee9`](https://redirect.github.com/oxc-project/oxc/commit/ea28ee9) linter: Improve the fixer of `prefer-namespace-keyword` ([#&#8203;6230](https://redirect.github.com/oxc-project/oxc/issues/6230)) (dalaoshu)
-   [`f6a3450`](https://redirect.github.com/oxc-project/oxc/commit/f6a3450) linter: Get correct source offsets for astro files ([#&#8203;6196](https://redirect.github.com/oxc-project/oxc/issues/6196)) (camchenry)
-   [`be0030c`](https://redirect.github.com/oxc-project/oxc/commit/be0030c) linter: Allow whitespace control characters in `no-control-regex` ([#&#8203;6140](https://redirect.github.com/oxc-project/oxc/issues/6140)) (camchenry)
-   [`e7e8ead`](https://redirect.github.com/oxc-project/oxc/commit/e7e8ead) linter: False positive in `no-return-assign` ([#&#8203;6128](https://redirect.github.com/oxc-project/oxc/issues/6128)) (DonIsaac)

##### Performance

-   [`ac0a82a`](https://redirect.github.com/oxc-project/oxc/commit/ac0a82a) linter: Reuse allocator when there are multiple source texts ([#&#8203;6337](https://redirect.github.com/oxc-project/oxc/issues/6337)) (Boshen)
-   [`50a0029`](https://redirect.github.com/oxc-project/oxc/commit/50a0029) linter: Do not concat vec in `no-useless-length-check` ([#&#8203;6276](https://redirect.github.com/oxc-project/oxc/issues/6276)) (camchenry)

##### Documentation

-   [`7ca70dd`](https://redirect.github.com/oxc-project/oxc/commit/7ca70dd) linter: Add docs for `ContextHost` and `LintContext` ([#&#8203;6272](https://redirect.github.com/oxc-project/oxc/issues/6272)) (camchenry)
-   [`a949ecb`](https://redirect.github.com/oxc-project/oxc/commit/a949ecb) linter: Improve docs for `eslint/getter-return` ([#&#8203;6229](https://redirect.github.com/oxc-project/oxc/issues/6229)) (DonIsaac)
-   [`14ba263`](https://redirect.github.com/oxc-project/oxc/commit/14ba263) linter: Improve docs for `eslint-plugin-import` rules ([#&#8203;6131](https://redirect.github.com/oxc-project/oxc/issues/6131)) (dalaoshu)

##### Refactor

-   [`40932f7`](https://redirect.github.com/oxc-project/oxc/commit/40932f7) cfg: Use IndexVec for storing basic blocks ([#&#8203;6323](https://redirect.github.com/oxc-project/oxc/issues/6323)) (DonIsaac)
-   [`642725c`](https://redirect.github.com/oxc-project/oxc/commit/642725c) linter: Rename vars from `ast_node_id` to `node_id` ([#&#8203;6305](https://redirect.github.com/oxc-project/oxc/issues/6305)) (overlookmotel)
-   [`8413175`](https://redirect.github.com/oxc-project/oxc/commit/8413175) linter: Move shared function from utils to rule ([#&#8203;6127](https://redirect.github.com/oxc-project/oxc/issues/6127)) (dalaoshu)
-   [`ba9c372`](https://redirect.github.com/oxc-project/oxc/commit/ba9c372) linter: Make jest/vitest rule mapping more clear ([#&#8203;6273](https://redirect.github.com/oxc-project/oxc/issues/6273)) (camchenry)
-   [`82b8f21`](https://redirect.github.com/oxc-project/oxc/commit/82b8f21) linter: Add schemars and serde traits to AllowWarnDeny and RuleCategories ([#&#8203;6119](https://redirect.github.com/oxc-project/oxc/issues/6119)) (DonIsaac)
-   [`ea908f7`](https://redirect.github.com/oxc-project/oxc/commit/ea908f7) linter: Consolidate file loading logic ([#&#8203;6130](https://redirect.github.com/oxc-project/oxc/issues/6130)) (DonIsaac)
-   [`db751f0`](https://redirect.github.com/oxc-project/oxc/commit/db751f0) linter: Use regexp AST visitor in `no-control-regex` ([#&#8203;6129](https://redirect.github.com/oxc-project/oxc/issues/6129)) (camchenry)
-   [`3aa7e42`](https://redirect.github.com/oxc-project/oxc/commit/3aa7e42) linter: Use RegExp AST visitor for `no-hex-escape` ([#&#8203;6117](https://redirect.github.com/oxc-project/oxc/issues/6117)) (camchenry)
-   [`9d5b44a`](https://redirect.github.com/oxc-project/oxc/commit/9d5b44a) linter: Use regex visitor in `no-regex-spaces` ([#&#8203;6063](https://redirect.github.com/oxc-project/oxc/issues/6063)) (camchenry)
-   [`0d44cf7`](https://redirect.github.com/oxc-project/oxc/commit/0d44cf7) linter: Use regex visitor in `no-useless-escape` ([#&#8203;6062](https://redirect.github.com/oxc-project/oxc/issues/6062)) (camchenry)
-   [`eeb8873`](https://redirect.github.com/oxc-project/oxc/commit/eeb8873) linter: Use regex visitor in `no-empty-character-class` ([#&#8203;6058](https://redirect.github.com/oxc-project/oxc/issues/6058)) (camchenry)

##### Testing

-   [`d883562`](https://redirect.github.com/oxc-project/oxc/commit/d883562) linter: Invalid `eslint/no-unused-vars` options ([#&#8203;6228](https://redirect.github.com/oxc-project/oxc/issues/6228)) (DonIsaac)

### [`v0.9.9`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#099---2024-09-27)

[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.9.8...oxlint_v0.9.9)

##### Bug Fixes

-   [`01b9c4b`](https://redirect.github.com/oxc-project/oxc/commit/01b9c4b) npm/oxlint: Make bin/oxc_language_server an executable ([#&#8203;6066](https://redirect.github.com/oxc-project/oxc/issues/6066)) (Boshen)

### [`v0.9.8`](https://redirect.github.com/oxc-project/oxc/releases/tag/oxlint_v0.9.8): oxlint v0.9.8

[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.9.7...oxlint_v0.9.8)

#### \[0.9.8] - 2024-09-24

##### Bug Fixes

-   [`e3c8a12`](https://redirect.github.com/oxc-project/oxc/commit/e3c8a12) linter: Fix panic in sort-keys ([#&#8203;6017](https://redirect.github.com/oxc-project/oxc/issues/6017)) (Boshen)
-   [`4771492`](https://redirect.github.com/oxc-project/oxc/commit/4771492) linter: Fix `import/no_cycle` with `ignoreTypes` ([#&#8203;5995](https://redirect.github.com/oxc-project/oxc/issues/5995)) (Boshen)

##### Performance

-   [`5ae3f36`](https://redirect.github.com/oxc-project/oxc/commit/5ae3f36) linter: `no-fallthrough`: Use string matching instead of Regex for default comment pattern ([#&#8203;6008](https://redirect.github.com/oxc-project/oxc/issues/6008)) (camchenry)
-   [`65d8f9e`](https://redirect.github.com/oxc-project/oxc/commit/65d8f9e) linter, ast-tools, coverage: Use `FxHashSet` instead of `std::collections::HashSet` ([#&#8203;6001](https://redirect.github.com/oxc-project/oxc/issues/6001)) (Cam McHenry)
-   [`2b17003`](https://redirect.github.com/oxc-project/oxc/commit/2b17003) linter, prettier, diagnostics: Use `FxHashMap` instead of `std::collections::HashMap` ([#&#8203;5993](https://redirect.github.com/oxc-project/oxc/issues/5993)) (camchenry)

### [`v0.9.7`](https://redirect.github.com/oxc-project/oxc/blob/HEAD/npm/oxlint/CHANGELOG.md#097---2024-09-23)

[Compare Source](https://redirect.github.com/oxc-project/oxc/compare/oxlint_v0.9.6...oxlint_v0.9.7)

##### Refactor

-   [`ba7b01f`](https://redirect.github.com/oxc-project/oxc/commit/ba7b01f) linter: Add `LinterBuilder` ([#&#8203;5714](https://redirect.github.com/oxc-project/oxc/issues/5714)) (DonIsaac)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-10-11 10:13:38 +00:00
forehalo
69fb5c06f4
feat(server): support onetime payment subscription (#8369) 2024-10-10 10:12:40 +00:00
darkskygit
f833017e45
feat: add feature record (#8400) 2024-10-10 08:30:02 +00:00
darkskygit
a9b29d24f1
feat: improve markdown formatting (#8398)
fix AF-1442
fix AF-1443
2024-09-26 09:47:53 +00:00
forehalo
1d75d97a8f
fix(server): handle hanging workspace after user account deleted (#8377)
fix CLOUD-74
2024-09-25 06:16:32 +00:00
forehalo
cb4020569c
fix(server): remove unused admin environment (#8378)
fix CLOUD-70
2024-09-25 02:45:28 +00:00
darkskygit
ed8e4e30f0
fix: collect workflow's assistant content (#8373)
fix CLOUD-71
2024-09-24 12:35:48 +00:00
forehalo
2cabc2dd50
fix(server): sign out 2024-09-20 16:32:04 +08:00
forehalo
4eb4c23e4a
feat(server): manage auth cookies (#8317) 2024-09-20 06:37:11 +00:00
forehalo
260104c933
fix(server): renderer path (#8305) 2024-09-19 08:16:13 +00:00
forehalo
03ac9bc4a1
chore(server): enable renderer for all deployment (#8283) 2024-09-19 02:34:57 +00:00
darkskygit
7bc28d7935
feat: add language hint for prompt (#8216)
fix PD-1708
2024-09-13 12:30:13 +00:00
forehalo
1d7932851e
chore: remove type module in scripts (#8240)
fix AF-1385
2024-09-13 09:21:29 +00:00
darkskygit
95738e796f
fix: client captcha (#8186) 2024-09-10 09:34:21 +00:00
Brooooooklyn
fe1eefdbb2
feat: init renderer server (#8088) 2024-09-10 04:03:59 +00:00
forehalo
0add8917f9
feat(server): enable share og information for docs (#7794) 2024-09-10 04:03:52 +00:00
forehalo
32f673fa3d
perf(server): index lower user email (#8167) 2024-09-09 04:43:59 +00:00
darkskygit
2a135d8a93
feat: add index for snapshots (#8163) 2024-09-08 13:49:41 +00:00
forehalo
87e9ff01b5
perf(server): avoid filter doc snapshot by non-indexed updatedAt (#8160) 2024-09-08 12:03:55 +00:00
forehalo
64d2b926a2
fix(server): remove default auth redirect url (#8140) 2024-09-06 06:26:59 +00:00
EYHN
f4db4058f8
feat(core): make permission and invoice offline available (#8123) 2024-09-05 15:11:27 +00:00
renovate
e7b53641d7
chore: bump up keyv version to v5 (#7936)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [keyv](https://togithub.com/jaredwray/keyv) | [`^4.5.4` -> `^5.0.0`](https://renovatebot.com/diffs/npm/keyv/4.5.4/5.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/keyv/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/keyv/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/keyv/4.5.4/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/keyv/4.5.4/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguNTYuMCIsInRhcmdldEJyYW5jaCI6ImNhbmFyeSIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
2024-09-03 09:37:39 +00:00
darkskygit
41f9149be6
feat(server): support openai compatible stream api (#8065)
fix #8010
2024-09-03 09:25:00 +00:00
darkskygit
935771c8a8
feat(server): make captcha modular (#5961) 2024-09-03 09:03:51 +00:00
forehalo
8b0afd6eeb
refactor(server): auth (#7994) 2024-09-03 09:03:39 +00:00
darkskygit
d93d39e29d
feat: add editor record (#7938)
fix CLOUD-58, CLOUD-61, CLOUD-62, PD-1607, PD-1608
2024-09-02 09:37:39 +00:00