Add worker-based Typst source export#96
Closed
Copilot wants to merge 17 commits into
Closed
Conversation
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Deploying cnoi-statement-generator with
|
| Latest commit: |
50f2712
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0ed9312d.cnoi-statement-generator.pages.dev |
| Branch Preview URL: | https://copilot-export-as-typst-sour.cnoi-statement-generator.pages.dev |
Copilot
AI
changed the title
[WIP] Add export as typst source feature
Add editor export for Typst source archive
Feb 2, 2026
Mr-Python-in-China
left a comment
Owner
There was a problem hiding this comment.
@copilot 把exportTypstArchive相关逻辑移动到一个新文件中以方便管理
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Contributor
Author
已将 exportTypstArchive 相关逻辑移动到 src/utils/exportTypstArchive.ts,并更新调用处。提交:7fdc524。截图: https://github.com/user-attachments/assets/4555d0c7-f4be-4a58-bb9e-c8c801fe74a6 |
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Mr-Python-in-China
left a comment
Owner
There was a problem hiding this comment.
@copilot 把编译和打包成zip的逻辑做到 worker 中
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Contributor
Author
已将编译与打包 zip 的逻辑迁移到 compiler worker,并在主线程通过 worker 生成压缩包。提交:e165dfc。截图:https://github.com/user-attachments/assets/da202edf-55e0-40c6-b6ea-67f44943a24e |
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Mr-Python-in-China
left a comment
Owner
There was a problem hiding this comment.
@copilot 提到一个单独的模块,然后在worker中动态导入以减少网络请求
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Co-authored-by: Mr-Python-in-China <89737170+Mr-Python-in-China@users.noreply.github.com>
Copilot
AI
changed the title
Add editor export for Typst source archive
Add worker-based Typst source export
Feb 3, 2026
Copilot stopped work on behalf of
Mr-Python-in-China due to an error
February 3, 2026 11:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Typst source export flow that packages template sources, generated
.typfiles, assets, and config into a downloadable zip, with the heavy compile/zip work executed inside the Typst worker.Changes Made
Testing
npm run lintnpm run testnpm run buildUI
Screenshot: https://github.com/user-attachments/assets/da202edf-55e0-40c6-b6ea-67f44943a24e
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.