@forsion/extend 0.5.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # 更新日志
2
2
 
3
+ ## 0.7.0 — 2026-09-29
4
+
5
+ - 新增公告:Forsion 发布重要通知时,打开桌面端会弹出一张公告卡片;点「知道了」或关掉之后就不再出现。公告里的链接会在浏览器中打开。
6
+ - 在「设置 → Forsion 云端 → 额度与积分」里使用额度重置卡后,会播放用卡动画,展示今日与本周额度恢复了多少。需要较新的 Forsion 桌面端;旧版本仍在页面上显示使用前后的对比。
7
+ - 「积分自动抵扣」已下线:AI 额度用完后不再自动扣积分继续使用。积分仍然可以兑换额度重置卡。
8
+
9
+ - Announcements: when Forsion posts an important notice, it pops up as a card when you open the desktop app. Once you choose "Got it" or close it, it doesn't show again. Links in announcements open in your browser.
10
+ - Using a quota reset card in Settings → Forsion Cloud → Quota & points now plays the reset card animation, showing how much of today's and this week's quota is back. This needs a newer Forsion Desktop build; older builds keep showing the before-and-after on the page.
11
+ - "Pay with points automatically" has been retired: points are no longer spent automatically when your AI quota runs out. You can still use points to get quota reset cards.
12
+
13
+ ## 0.6.0 — 2026-09-29
14
+
15
+ - 「设备互联」的云端那一半改由本包提供:经 Forsion 云端中转让其他设备连上这台电脑、向设备列表报告这台电脑的状态,以及查看、改名、换图标、移除设备和在浏览器中打开设备。用法和之前一样。
16
+ - 服务器重启的那几秒里连不上时,不再清掉这台电脑的配对重新登记,设备列表里不会因此多出一台台离线的重复设备。
17
+ - 没装本包的桌面端不再列出账号下的其他设备,也不经云端中转接受连接;同一局域网直连和「允许其他设备连接本机」照常可用。
18
+ - 需要较新的 Forsion 桌面端才会启用;旧桌面端上本包照旧提供 0.5 的功能。
19
+
20
+ - Device connectivity's cloud half now comes from this package: the Forsion cloud relay that lets your other devices reach this computer, reporting this computer's status to your device list, and viewing, renaming, changing the icon of, removing and opening devices in your browser. Everything works as before.
21
+ - If the connection drops for a few seconds while the server restarts, this computer keeps its pairing instead of registering again, so your device list no longer fills up with offline duplicates.
22
+ - Desktops without this package no longer list the other devices on your account or accept connections through the cloud relay; same-network direct connections and "Allow other devices to connect" keep working.
23
+ - This needs a newer Forsion Desktop build; on older desktops this package keeps providing the 0.5 features.
24
+
3
25
  ## 0.5.1 — 2026-09-29
4
26
 
5
27
  - 从桌面端打开账号中心或充值页时,网址里不再带登录令牌,改为一次性交接码:60 秒内有效、只能用一次,不会留在浏览器历史里。需要服务端更新后才生效,在这之前照旧打开。
package/README.md CHANGED
@@ -11,7 +11,9 @@ Forsion Extend 是 Forsion 桌面端内置的扩展,负责和你的 Forsion
11
11
  - **安全**:绑定或更换手机和邮箱,修改密码,退出所有设备,注销账号。
12
12
  - **用量记录**:最近 7、30、90 天的请求次数、成功率和 AI 额度消耗。
13
13
  - **反馈**:提交问题和建议,在桌面上查看回复。
14
+ - **公告**:Forsion 发布的重要通知会在你打开桌面端时弹出,看过就不再出现;公告里的链接在浏览器中打开。
14
15
  - **笔记云同步与协作**:云端笔记库、按条目同步、与我共享,以及页面分享、发布和在线成员。
16
+ - **设备互联**:让你的其他设备经 Forsion 云端连上这台电脑;账号下的设备可以查看、改名、换图标、移除,或在浏览器中打开。
15
17
  - **Forsion Connect**:把 Coding Space 里的项目发布成网页、申请上架应用商店;预览项目时也能用上 Forsion 的 AI。
16
18
 
17
19
  ## 设置在哪里
@@ -33,7 +35,9 @@ Forsion Extend is built into Forsion Desktop and takes care of everything to do
33
35
  - **Security**: link or change your phone and email, change your password, sign out everywhere, delete your account.
34
36
  - **Usage**: requests, success rate and AI quota used over the last 7, 30 or 90 days.
35
37
  - **Feedback**: send issues and suggestions, and read replies in the app.
38
+ - **Announcements**: important notices from Forsion pop up when you open the desktop app and don't show again once you've read them; links in them open in your browser.
36
39
  - **Note sync and collaboration**: the cloud vault, per-item sync, shared with me, and page sharing, publishing and presence.
40
+ - **Device connectivity**: let your other devices reach this computer through the Forsion cloud, and view, rename, change the icon of, remove or open in your browser the devices on your account.
37
41
  - **Forsion Connect**: publish Coding Space projects as web pages and apply for an app store listing; project previews can use Forsion's AI too.
38
42
 
39
43
  ## Where to find it
package/SIGNATURE CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "alg": "ed25519",
3
3
  "files": {
4
- "CHANGELOG.md": "86bbe37d56b75be32737d09382f6ab6c1d143e4f23a8d40aaaf04e69b8b16fd5",
4
+ "CHANGELOG.md": "37dad11cfb8892b8ad78d079fb64a0dd237c6eda3359b9abae40fb3876f6514b",
5
5
  "LICENSE": "5594544ee08011ed5785ee26410f1f2ef005f66e9283833e8d435e34c10de1ed",
6
- "README.md": "a17ef4b3c8adefcbee2efda0c1bbca1fc8aa63dce323295708c321a9d322a80c",
7
- "dist/THIRD_PARTY_NOTICES.md": "64dcf02385589a257abb72d1b5594a595359919c355e568a9ed5699678672e5e",
8
- "dist/desktop.mjs": "05af5ca236ef768d6b9cbb8016e5601d4af5ae52e48d786e42009a513aa9c03a",
9
- "dist/main.js": "72d709f10781063c74cdf2fc5e8965b5a34ac3e2e8274d27dc96f9176e2fd67c",
10
- "manifest.json": "151f9cc06ceac1c87829fc09bc6661399010db56e6ee708437ebfa922dca3ad8",
11
- "package.json": "32a08327f0ab617a0569c32a508bb6e2c5feb28a05badb9f2880b92d8d8e55fc"
6
+ "README.md": "59f1472ec4f41c877cffe2557fa792be6cf8400e3b14f952720db9fc2b57c4b4",
7
+ "dist/THIRD_PARTY_NOTICES.md": "1541ee7e9dcaee750f77b3a2051b84616d768c5c8ea34d66ad57929f7bb0538b",
8
+ "dist/desktop.mjs": "7f530ad1958abb41c3707b9745ebe721ceee65286390cd8de4ead706296b2f83",
9
+ "dist/main.js": "7b11ec33488627e43cae388384456b08171c4936fcc6854fb1197ae904530543",
10
+ "manifest.json": "0ffd6228decc144509c07da2233dcf3dfb3d54295dd8989218553a5b6149819f",
11
+ "package.json": "8a521c75cdf7e31268cb4ba6580f925bf2a78fc73bfaf03d217b10fd0c84c927"
12
12
  },
13
- "sig": "gqeF9eL3CPkSu252xMuzxINQUq7+X9rmiB9X5ST+xBEbIIO4dDT6HsYfOQ75t8nhaQlBpZYnMkUi4jk6mm7WCQ=="
13
+ "sig": "qZKbqzQlEwDBpR/mOOQuDo3TGGOO8gK/K8rZvVvrnUmsB/tWSCwwkBlPIYF0qPl4ABSw7+duuVsZnvLw16N1CQ=="
14
14
  }
@@ -1,6 +1,6 @@
1
1
  # Third-party notices
2
2
 
3
- dist/main.js and dist/desktop.mjs bundle the following packages, each under the MIT License.
3
+ dist/main.js and dist/desktop.mjs bundle the following packages. Each section names the license it is used under (MIT unless stated otherwise) and reproduces its license text.
4
4
 
5
5
  ## preact 10.29.8
6
6
 
@@ -55,6 +55,265 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
55
55
  SOFTWARE.
56
56
  ```
57
57
 
58
+ ## marked 18.0.14
59
+
60
+ ```
61
+ # License information
62
+
63
+ ## Contribution License Agreement
64
+
65
+ If you contribute code to this project, you are implicitly allowing your code
66
+ to be distributed under the MIT license. You are also implicitly verifying that
67
+ all code is your original work. `</legalese>`
68
+
69
+ ## Marked
70
+
71
+ Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
72
+ Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
73
+
74
+ Permission is hereby granted, free of charge, to any person obtaining a copy
75
+ of this software and associated documentation files (the "Software"), to deal
76
+ in the Software without restriction, including without limitation the rights
77
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
78
+ copies of the Software, and to permit persons to whom the Software is
79
+ furnished to do so, subject to the following conditions:
80
+
81
+ The above copyright notice and this permission notice shall be included in
82
+ all copies or substantial portions of the Software.
83
+
84
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
85
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
86
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
87
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
88
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
89
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
90
+ THE SOFTWARE.
91
+
92
+ ## Markdown
93
+
94
+ Copyright © 2004, John Gruber
95
+ http://daringfireball.net/
96
+ All rights reserved.
97
+
98
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
99
+
100
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
101
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
102
+ * Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
103
+
104
+ This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
105
+ ```
106
+
107
+ ## dompurify 3.4.16
108
+
109
+ Used under Apache-2.0 (the package is licensed (MPL-2.0 OR Apache-2.0)).
110
+
111
+ DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE
112
+
113
+ ```
114
+ Apache License
115
+ Version 2.0, January 2004
116
+ http://www.apache.org/licenses/
117
+
118
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
119
+
120
+ 1. Definitions.
121
+
122
+ "License" shall mean the terms and conditions for use, reproduction,
123
+ and distribution as defined by Sections 1 through 9 of this document.
124
+
125
+ "Licensor" shall mean the copyright owner or entity authorized by
126
+ the copyright owner that is granting the License.
127
+
128
+ "Legal Entity" shall mean the union of the acting entity and all
129
+ other entities that control, are controlled by, or are under common
130
+ control with that entity. For the purposes of this definition,
131
+ "control" means (i) the power, direct or indirect, to cause the
132
+ direction or management of such entity, whether by contract or
133
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
134
+ outstanding shares, or (iii) beneficial ownership of such entity.
135
+
136
+ "You" (or "Your") shall mean an individual or Legal Entity
137
+ exercising permissions granted by this License.
138
+
139
+ "Source" form shall mean the preferred form for making modifications,
140
+ including but not limited to software source code, documentation
141
+ source, and configuration files.
142
+
143
+ "Object" form shall mean any form resulting from mechanical
144
+ transformation or translation of a Source form, including but
145
+ not limited to compiled object code, generated documentation,
146
+ and conversions to other media types.
147
+
148
+ "Work" shall mean the work of authorship, whether in Source or
149
+ Object form, made available under the License, as indicated by a
150
+ copyright notice that is included in or attached to the work
151
+ (an example is provided in the Appendix below).
152
+
153
+ "Derivative Works" shall mean any work, whether in Source or Object
154
+ form, that is based on (or derived from) the Work and for which the
155
+ editorial revisions, annotations, elaborations, or other modifications
156
+ represent, as a whole, an original work of authorship. For the purposes
157
+ of this License, Derivative Works shall not include works that remain
158
+ separable from, or merely link (or bind by name) to the interfaces of,
159
+ the Work and Derivative Works thereof.
160
+
161
+ "Contribution" shall mean any work of authorship, including
162
+ the original version of the Work and any modifications or additions
163
+ to that Work or Derivative Works thereof, that is intentionally
164
+ submitted to Licensor for inclusion in the Work by the copyright owner
165
+ or by an individual or Legal Entity authorized to submit on behalf of
166
+ the copyright owner. For the purposes of this definition, "submitted"
167
+ means any form of electronic, verbal, or written communication sent
168
+ to the Licensor or its representatives, including but not limited to
169
+ communication on electronic mailing lists, source code control systems,
170
+ and issue tracking systems that are managed by, or on behalf of, the
171
+ Licensor for the purpose of discussing and improving the Work, but
172
+ excluding communication that is conspicuously marked or otherwise
173
+ designated in writing by the copyright owner as "Not a Contribution."
174
+
175
+ "Contributor" shall mean Licensor and any individual or Legal Entity
176
+ on behalf of whom a Contribution has been received by Licensor and
177
+ subsequently incorporated within the Work.
178
+
179
+ 2. Grant of Copyright License. Subject to the terms and conditions of
180
+ this License, each Contributor hereby grants to You a perpetual,
181
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
182
+ copyright license to reproduce, prepare Derivative Works of,
183
+ publicly display, publicly perform, sublicense, and distribute the
184
+ Work and such Derivative Works in Source or Object form.
185
+
186
+ 3. Grant of Patent License. Subject to the terms and conditions of
187
+ this License, each Contributor hereby grants to You a perpetual,
188
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
189
+ (except as stated in this section) patent license to make, have made,
190
+ use, offer to sell, sell, import, and otherwise transfer the Work,
191
+ where such license applies only to those patent claims licensable
192
+ by such Contributor that are necessarily infringed by their
193
+ Contribution(s) alone or by combination of their Contribution(s)
194
+ with the Work to which such Contribution(s) was submitted. If You
195
+ institute patent litigation against any entity (including a
196
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
197
+ or a Contribution incorporated within the Work constitutes direct
198
+ or contributory patent infringement, then any patent licenses
199
+ granted to You under this License for that Work shall terminate
200
+ as of the date such litigation is filed.
201
+
202
+ 4. Redistribution. You may reproduce and distribute copies of the
203
+ Work or Derivative Works thereof in any medium, with or without
204
+ modifications, and in Source or Object form, provided that You
205
+ meet the following conditions:
206
+
207
+ (a) You must give any other recipients of the Work or
208
+ Derivative Works a copy of this License; and
209
+
210
+ (b) You must cause any modified files to carry prominent notices
211
+ stating that You changed the files; and
212
+
213
+ (c) You must retain, in the Source form of any Derivative Works
214
+ that You distribute, all copyright, patent, trademark, and
215
+ attribution notices from the Source form of the Work,
216
+ excluding those notices that do not pertain to any part of
217
+ the Derivative Works; and
218
+
219
+ (d) If the Work includes a "NOTICE" text file as part of its
220
+ distribution, then any Derivative Works that You distribute must
221
+ include a readable copy of the attribution notices contained
222
+ within such NOTICE file, excluding those notices that do not
223
+ pertain to any part of the Derivative Works, in at least one
224
+ of the following places: within a NOTICE text file distributed
225
+ as part of the Derivative Works; within the Source form or
226
+ documentation, if provided along with the Derivative Works; or,
227
+ within a display generated by the Derivative Works, if and
228
+ wherever such third-party notices normally appear. The contents
229
+ of the NOTICE file are for informational purposes only and
230
+ do not modify the License. You may add Your own attribution
231
+ notices within Derivative Works that You distribute, alongside
232
+ or as an addendum to the NOTICE text from the Work, provided
233
+ that such additional attribution notices cannot be construed
234
+ as modifying the License.
235
+
236
+ You may add Your own copyright statement to Your modifications and
237
+ may provide additional or different license terms and conditions
238
+ for use, reproduction, or distribution of Your modifications, or
239
+ for any such Derivative Works as a whole, provided Your use,
240
+ reproduction, and distribution of the Work otherwise complies with
241
+ the conditions stated in this License.
242
+
243
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
244
+ any Contribution intentionally submitted for inclusion in the Work
245
+ by You to the Licensor shall be under the terms and conditions of
246
+ this License, without any additional terms or conditions.
247
+ Notwithstanding the above, nothing herein shall supersede or modify
248
+ the terms of any separate license agreement you may have executed
249
+ with Licensor regarding such Contributions.
250
+
251
+ 6. Trademarks. This License does not grant permission to use the trade
252
+ names, trademarks, service marks, or product names of the Licensor,
253
+ except as required for reasonable and customary use in describing the
254
+ origin of the Work and reproducing the content of the NOTICE file.
255
+
256
+ 7. Disclaimer of Warranty. Unless required by applicable law or
257
+ agreed to in writing, Licensor provides the Work (and each
258
+ Contributor provides its Contributions) on an "AS IS" BASIS,
259
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
260
+ implied, including, without limitation, any warranties or conditions
261
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
262
+ PARTICULAR PURPOSE. You are solely responsible for determining the
263
+ appropriateness of using or redistributing the Work and assume any
264
+ risks associated with Your exercise of permissions under this License.
265
+
266
+ 8. Limitation of Liability. In no event and under no legal theory,
267
+ whether in tort (including negligence), contract, or otherwise,
268
+ unless required by applicable law (such as deliberate and grossly
269
+ negligent acts) or agreed to in writing, shall any Contributor be
270
+ liable to You for damages, including any direct, indirect, special,
271
+ incidental, or consequential damages of any character arising as a
272
+ result of this License or out of the use or inability to use the
273
+ Work (including but not limited to damages for loss of goodwill,
274
+ work stoppage, computer failure or malfunction, or any and all
275
+ other commercial damages or losses), even if such Contributor
276
+ has been advised of the possibility of such damages.
277
+
278
+ 9. Accepting Warranty or Additional Liability. While redistributing
279
+ the Work or Derivative Works thereof, You may choose to offer,
280
+ and charge a fee for, acceptance of support, warranty, indemnity,
281
+ or other liability obligations and/or rights consistent with this
282
+ License. However, in accepting such obligations, You may act only
283
+ on Your own behalf and on Your sole responsibility, not on behalf
284
+ of any other Contributor, and only if You agree to indemnify,
285
+ defend, and hold each Contributor harmless for any liability
286
+ incurred by, or claims asserted against, such Contributor by reason
287
+ of your accepting any such warranty or additional liability.
288
+
289
+ END OF TERMS AND CONDITIONS
290
+
291
+ APPENDIX: How to apply the Apache License to your work.
292
+
293
+ To apply the Apache License to your work, attach the following
294
+ boilerplate notice, with the fields enclosed by brackets "[]"
295
+ replaced with your own identifying information. (Don't include
296
+ the brackets!) The text should be enclosed in the appropriate
297
+ comment syntax for the file format. We also recommend that a
298
+ file or class name and description of purpose be included on the
299
+ same "printed page" as the copyright notice for easier
300
+ identification within third-party archives.
301
+
302
+ Copyright [yyyy] [name of copyright owner]
303
+
304
+ Licensed under the Apache License, Version 2.0 (the "License");
305
+ you may not use this file except in compliance with the License.
306
+ You may obtain a copy of the License at
307
+
308
+ http://www.apache.org/licenses/LICENSE-2.0
309
+
310
+ Unless required by applicable law or agreed to in writing, software
311
+ distributed under the License is distributed on an "AS IS" BASIS,
312
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
313
+ See the License for the specific language governing permissions and
314
+ limitations under the License.
315
+ ```
316
+
58
317
  ## chokidar 5.0.0
59
318
 
60
319
  ```