archscribe 0.2.3 → 0.2.5
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/dashboard-server/client-dist/assets/{index-CvlC6kTE.js → index-C0xIsqf0.js} +2 -2
- package/dashboard-server/client-dist/index.html +1 -1
- package/dist/core/docx-export.d.ts +1 -0
- package/dist/core/docx-export.js +17 -0
- package/dist/core/docx-export.js.map +1 -1
- package/dist/core/docx-lists.js +14 -6
- package/dist/core/docx-lists.js.map +1 -1
- package/dist/core/docx-update.js +11 -0
- package/dist/core/docx-update.js.map +1 -1
- package/dist/core/docx.js +15 -5
- package/dist/core/docx.js.map +1 -1
- package/dist/core/markdown.js +5 -13
- package/dist/core/markdown.js.map +1 -1
- package/dist/diagrams/activity.js +26 -10
- package/dist/diagrams/activity.js.map +1 -1
- package/dist/diagrams/arch/messages.generated.d.ts +8 -0
- package/dist/diagrams/arch/messages.generated.js +10 -2
- package/dist/diagrams/arch/messages.generated.js.map +1 -1
- package/dist/diagrams/sequence-header.d.ts +6 -16
- package/dist/diagrams/sequence-header.js +24 -22
- package/dist/diagrams/sequence-header.js.map +1 -1
- package/dist/diagrams/sequence.js +18 -9
- package/dist/diagrams/sequence.js.map +1 -1
- package/dist/parser.jar +0 -0
- package/package.json +1 -1
|
@@ -12,12 +12,12 @@ File thay đổi:
|
|
|
12
12
|
{files}
|
|
13
13
|
|
|
14
14
|
Sổ duyệt và ngữ cảnh cũng quay lại; trạng thái hiện tại được lưu thành pre-restore.`,"dash.history.runCount":`{count} runs · mới nhất đầu tiên`,"dash.history.sameFiles":`Hai phiên bản không khác nhau về file được quản lý.`,"dash.history.tab.approvals":`Sổ duyệt`,"dash.history.tab.runs":`Lần chạy`,"dash.history.tab.versions":`Phiên bản`,"dash.history.tabsLabel":`Lịch sử`,"dash.history.to":`Đến`,"dash.lang.label":`Ngôn ngữ`,"dash.outputs.download":`Tải file`,"dash.outputs.empty":`Chưa có file nào. Chạy pipeline để tạo báo cáo và sơ đồ.`,"dash.outputs.listLabel":`File kết quả`,"dash.outputs.loading":`Đang tải file…`,"dash.outputs.pick":`Chọn file từ danh sách bên trái.`,"dash.outputs.projectRoot":`Gốc dự án`,"dash.outputs.subtitle":`File do archscribe quản lý · chọn file để xem hoặc tải về`,"dash.outputs.title":`Kết quả`,"dash.review.fix":`Cần sửa`,"dash.review.legacy":`Có ghi chú cũ theo sổ UC trong trình duyệt. Hãy kiểm tra và gắn lại; dữ liệu cũ chưa bị xóa.`,"dash.review.pass":`Đạt`,"dash.review.retry":`Thử lưu lại`,"dash.review.saveError":`Chưa lưu: {error}`,"dash.review.skip":`Bỏ qua`,"dash.sidebar.outputs":`Kết quả`,"dash.sidebar.project":`DỰ ÁN / PROJECT`,"dash.stale.controllers":`và controller bị ảnh hưởng:`,"dash.stale.failed":`Chạy lại thất bại: {error}`,"dash.stale.rerun":`Chạy lại`,"dash.stale.running":`Đang chạy…`,"dash.stale.summary":`{count} file mã nguồn đã đổi kể từ lần chạy {since}`,"dash.stale.title":`Tài liệu đã cũ`,"grouping.evidence":`Căn cứ`,"grouping.group":`Nhóm chức năng`,"grouping.heading":`Phân nhóm chức năng và căn cứ`,"grouping.mode":`Chế độ`,"grouping.notice":`Căn cứ có thể truy vết không đồng nghĩa với chứng nhận đúng ngữ nghĩa nghiệp vụ.`,"grouping.rationale":`Lý do`,"grouping.uc":`Use case`,"landing.agent.cliBodyA":`Mặc định đầu ra ở`,"landing.agent.cliBodyB":`. Báo cáo DOCX phụ thuộc quyền sử dụng. Nếu cần kích hoạt, đề nghị người dùng tự chạy`,"landing.agent.cliBodyC":`và nhập key trong giao diện phù hợp. Không yêu cầu họ gửi key vào chat. Không dùng cờ nội bộ hoặc cách bỏ qua license.`,"landing.agent.cliTitle":`Khi chỉ có CLI`,"landing.agent.description":`Hướng dẫn dành cho AI Agent khi dùng Archscribe qua MCP.`,"landing.agent.introA":`Tài liệu này dành cho Agent được người dùng yêu cầu dùng Archscribe với dự án Java Spring Boot. Nguồn đối chiếu là gói npm`,"landing.agent.introB":`. Không suy đoán quyền sử dụng, kết quả hoặc nội dung mã nguồn trước khi đọc chúng.`,"landing.agent.lead":`Hướng dẫn dành cho AI Agent khi dùng Archscribe qua MCP.`,"landing.agent.mcp1A":`Gọi`,"landing.agent.mcp1B":`với đường dẫn dự án và xử lý các lỗi trước khi tạo tài liệu.`,"landing.agent.mcp2A":`Gọi`,"landing.agent.mcp2B":`để chạy pipeline đầy đủ. Không cần gọi`,"landing.agent.mcp2C":`trước nếu dùng entry point này.`,"landing.agent.mcp3":`Đọc các đường dẫn output và thông báo quyền sử dụng trong kết quả tool. Xác nhận file thực sự tồn tại trước khi báo cho người dùng.`,"landing.agent.mcp4":`Rà soát ca sử dụng, sơ đồ và các chương còn là khung. Nêu rõ phần nào cần người dùng xác nhận. Không tự mô tả bản thảo như tài liệu đã được thẩm định.`,"landing.agent.mcpTitle":`Đường dùng MCP ưu tiên`,"landing.agent.prep1A":`Xác định đường dẫn gốc dự án có`,"landing.agent.prep1B":`và file build Maven hoặc Gradle.`,"landing.agent.prep2A":`Kiểm tra Node.js 18+, JDK 17+ và`,"landing.agent.prep2B":`trong`,"landing.agent.prep3A":`Nếu chưa có kết nối MCP, hướng dẫn người dùng chạy`,"landing.agent.prep3B":`và khởi động lại trình AI. Có thể giới hạn bằng`,"landing.agent.prep3C":`, chọn các tên thực sự cần. Nếu chỉ dùng CLI, bỏ qua`,"landing.agent.prep4A":`Không tự ghi đè`,"landing.agent.prep4B":`hoặc skill hiện hữu.`,"landing.agent.prep4C":`chỉ cần khi người dùng muốn cấu hình Claude Code theo dự án.`,"landing.agent.prepTitle":`Chuẩn bị`,"landing.agent.reportAnd":`và`,"landing.agent.reportBody":`Nêu lệnh hoặc tool đã chạy, đường dẫn file tìm thấy, phần thành công và phần chưa tạo. Phân biệt dữ liệu phân tích được từ mã nguồn với suy luận hoặc nội dung bổ sung của AI. Cảnh báo giới hạn với Maven nhiều module và các endpoint kế thừa. Hướng người dùng tới`,"landing.agent.reportEnd":`khi cần.`,"landing.agent.reportTitle":`Cách báo kết quả`,"landing.agent.specialA":`Các tool chuyên biệt như`,"landing.agent.specialAnd":`và`,"landing.agent.specialB":`chỉ dùng khi người dùng cần điều khiển chi tiết hơn. Với`,"landing.agent.specialC":`, ưu tiên truyền đường dẫn dự án để tool tự phân tích mã. Không chuyển toàn bộ IR vào cuộc trò chuyện khi không cần. Các chương lý thuyết 1, 2, 4, 5 của bản báo cáo có thể là khung, cần làm tiếp bằng quy trình phù hợp và kiểm tra nội dung. Không gọi tool ghi nội dung nội bộ nếu không thuộc quy trình công khai.`,"landing.contact.description":`Cần hỗ trợ về sản phẩm, giấy phép hay thanh toán? Hãy liên hệ với chúng tôi.`,"landing.contact.emailLabel":`Email hỗ trợ`,"landing.contact.eyebrow":`Chính sách`,"landing.contact.include1":`Email tài khoản Archscribe.`,"landing.contact.include2":`Mã đơn hàng (với yêu cầu về thanh toán, hoàn tiền).`,"landing.contact.include3":`Phiên bản Archscribe và mô tả lỗi, ảnh chụp màn hình nếu có. Vui lòng không gửi mã nguồn chứa thông tin bí mật.`,"landing.contact.includeHeading":`Khi gửi yêu cầu, vui lòng kèm theo`,"landing.contact.infoHeading":`Thông tin liên hệ`,"landing.contact.lead":`Cần hỗ trợ về sản phẩm, giấy phép hay thanh toán? Hãy liên hệ với chúng tôi. Cập nhật lần cuối: 05/11/2026.`,"landing.contact.legalNavLabel":`Trang chính sách`,"landing.contact.response":`Trong vòng 1–3 ngày làm việc`,"landing.contact.responseLabel":`Thời gian phản hồi`,"landing.contact.team":`Nguyễn Hoàng Sơn, Nguyễn Phú Triệu`,"landing.contact.teamLabel":`Nhóm phát triển`,"landing.contact.title":`Liên hệ`,"landing.docs.agent":`Cho AI Agent`,"landing.docs.agentTitle":`Hướng dẫn cho AI Agent`,"landing.docs.faq":`Hỏi đáp kỹ thuật`,"landing.docs.faqTitle":`Câu hỏi thường gặp`,"landing.docs.install":`Cài đặt`,"landing.docs.installTitle":`Cài đặt Archscribe`,"landing.docs.quickstart":`Bắt đầu nhanh`,"landing.docs.sideTitle":`Tài liệu Archscribe`,"landing.docs.workflow":`Quy trình & đầu ra`,"landing.docsSide.breadcrumb":`Breadcrumb`,"landing.docsSide.close":`Đóng mục lục`,"landing.docsSide.groupGuides":`Hướng dẫn`,"landing.docsSide.groupReference":`Tham khảo`,"landing.docsSide.groupStart":`Bắt đầu`,"landing.docsSide.next":`Tiếp theo`,"landing.docsSide.onThisPage":`Trên trang này`,"landing.docsSide.open":`Mục lục tài liệu`,"landing.docsSide.pager":`Trang trước và sau`,"landing.docsSide.prev":`Trước`,"landing.docsSide.searchLabel":`Lọc trang tài liệu`,"landing.docsSide.searchPlaceholder":`Tìm trong tài liệu…`,"landing.docsSide.tocLabel":`Mục lục tài liệu`,"landing.faq.a1A":`Không.`,"landing.faq.a1B":`lấy gói từ npm và chạy lệnh. Lần đầu cần truy cập registry. Xem`,"landing.faq.a2A":`Có. Dùng`,"landing.faq.a2B":`rồi`,"landing.faq.a2C":`chỉ dành cho kết nối MCP với trình AI.`,"landing.faq.a3A":`đăng ký MCP cho trình AI ở phạm vi người dùng.`,"landing.faq.a3B":`tạo`,"landing.faq.a3C":`và skill Claude Code trong một dự án cụ thể, bỏ qua file đã tồn tại trừ khi bạn chủ động dùng`,"landing.faq.a4A":`Kiểm tra CLI của trình AI có trong`,"landing.faq.a4B":`, đọc thông báo từ`,"landing.faq.a4C":`rồi khởi động lại trình. Với Claude Code, thử`,"landing.faq.a4D":`Nếu dùng Antigravity, kiểm tra`,"landing.faq.a5A":`Cài JDK 17+ và thêm`,"landing.faq.a5B":`vào`,"landing.faq.a5C":`Trỏ lệnh tới thư mục gốc có`,"landing.faq.a5D":`cùng`,"landing.faq.a5E":`hoặc`,"landing.faq.a5F":`Chạy lại`,"landing.faq.a6A":`Tạo DOCX phụ thuộc quyền sử dụng. Kiểm tra thông báo từ lệnh chạy và trạng thái license. Nếu được yêu cầu kích hoạt, dùng`,"landing.faq.a6B":`với key hợp lệ. Không chia sẻ key công khai.`,"landing.faq.a7":`Có thể phân tích nhưng phạm vi không bảo đảm đầy đủ. Một số endpoint, đặc biệt đường dẫn kế thừa, có thể bị thiếu. Hãy soát mã nguồn và sơ đồ trước khi dùng.`,"landing.faq.a8A":`Máy phát triển có thể đã`,"landing.faq.a8B":`một checkout cũ hoặc cài bản global. Kiểm tra liên kết đó trước. Chỉ chạy`,"landing.faq.a8C":`nếu bạn muốn gỡ nó, sau đó thử`,"landing.faq.a9A":`Không nên dùng mà không rà soát. Báo cáo có thể còn chương dạng khung, còn ca sử dụng và sơ đồ cần đối chiếu với mã nguồn và yêu cầu thực tế. Xem`,"landing.faq.description":`Giải đáp các lỗi và thắc mắc thường gặp.`,"landing.faq.lead":`Giải đáp các lỗi và thắc mắc thường gặp.`,"landing.faq.q1":`Tôi có cần cài Archscribe toàn cục không?`,"landing.faq.q2":`Không dùng trình AI có chạy được không?`,"landing.faq.q3":`setup và scaffold khác nhau thế nào?`,"landing.faq.q4":`Vì sao không thấy tool trong trình AI?`,"landing.faq.q5":`Thiếu Java hoặc dự án bị báo sai cấu trúc?`,"landing.faq.q6":`Tại sao không có file DOCX?`,"landing.faq.q7":`Có dùng được với Maven nhiều module không?`,"landing.faq.q8":`Vì sao npx archscribe chạy bản cũ trên máy tôi?`,"landing.faq.q9":`Tài liệu sinh ra có dùng ngay để nộp được không?`,"landing.flow.colPath":`Đường dẫn mặc định`,"landing.flow.colRole":`Vai trò`,"landing.flow.description":`Các bước sử dụng và những tệp Archscribe tạo ra.`,"landing.flow.introA":`Archscribe tạo bản thảo từ mã nguồn của dự án Java Spring Boot. Đầu ra mặc định nằm tại`,"landing.flow.introB":`Vị trí có thể thay đổi bằng tùy chọn`,"landing.flow.introC":`của CLI.`,"landing.flow.lead":`Các bước sử dụng và những tệp Archscribe tạo ra.`,"landing.flow.noteA":`Không phải mọi dự án đều sinh đủ mọi sơ đồ hoặc DOCX. Đầu ra phụ thuộc mã nguồn, lựa chọn ca sử dụng và quyền sử dụng. Dùng`,"landing.flow.noteB":`để mở giao diện cục bộ xem các dự án và kết quả.`,"landing.flow.outDiagrams":`Sơ đồ Draw.io, gồm kiến trúc, lớp, ca sử dụng, hoạt động và tuần tự tùy vào mã nguồn và ca sử dụng được chọn`,"landing.flow.outDocx":`Bản Word nếu quyền sử dụng cho phép tạo DOCX`,"landing.flow.outEvaluation":`Dữ liệu đánh giá được ghi khi pipeline tạo báo cáo tương ứng`,"landing.flow.outIr":`Dữ liệu phân tích trung gian từ mã nguồn`,"landing.flow.outManifest":`Dấu vết dùng để kiểm tra tài liệu đã cũ khi nguồn thay đổi`,"landing.flow.outReport":`Bản thảo báo cáo Markdown. Một số chương có thể là khung nội dung cần người dùng hoặc Agent hoàn thiện`,"landing.flow.outputsTitle":`Đầu ra chính`,"landing.flow.review1":`Xác minh actor, điều kiện trước, luồng chính, ngoại lệ và tên ca sử dụng với người hiểu nghiệp vụ.`,"landing.flow.review2":`Kiểm tra sơ đồ và đường dẫn endpoint với mã nguồn, nhất là các lớp kế thừa hoặc dự án nhiều module.`,"landing.flow.review3":`Xem báo cáo là bản thảo. Không trình bày chương còn là khung như nội dung đã hoàn thiện.`,"landing.flow.reviewTitle":`Rà soát trước khi sử dụng`,"landing.flow.scopeA":`Archscribe hướng tới dự án Spring Boot một module. Với Maven nhiều module, phạm vi phân tích có thể thiếu endpoint hoặc quan hệ. Xem`,"landing.flow.scopeAnd":`và`,"landing.flow.step1":`để kiểm tra Node.js, Java và cấu trúc Maven hoặc Gradle.`,"landing.flow.step2A":`hoặc yêu cầu AI gọi`,"landing.flow.step2B":`qua MCP. Parser phân tích mã Java, sau đó Archscribe tạo bản thảo ca sử dụng, sơ đồ và báo cáo.`,"landing.flow.step3":`Đọc kết quả, đối chiếu endpoint, actor, luồng ca sử dụng và quan hệ lớp với mã nguồn và yêu cầu nghiệp vụ.`,"landing.flow.step4A":`Sau khi mã thay đổi, chạy`,"landing.flow.step4B":`để xem tài liệu còn khớp với nguồn hay không. Chạy lại khi cần và rà soát thay đổi.`,"landing.footer.blurb":`Công cụ sinh tài liệu phân tích thiết kế từ mã nguồn Java Spring Boot, kết hợp phân tích tĩnh và AI.`,"landing.footer.copyright":`© 2026 Archscribe · Nguyễn Hoàng Sơn, Nguyễn Phú Triệu`,"landing.footer.docs":`Tài liệu`,"landing.footer.payos":`Thanh toán an toàn qua PayOS`,"landing.footer.policies":`Chính sách`,"landing.footer.product":`Sản phẩm`,"landing.footer.support":`Hỗ trợ`,"landing.home.cardAgentBody":`MCP Server cung cấp công cụ để AI Agent truy vấn mô hình trung gian thay vì đọc toàn bộ mã nguồn.`,"landing.home.cardAgentTitle":`Sẵn sàng cho AI Agent`,"landing.home.cardExportBody":`Tổng hợp kết quả thành báo cáo DOCX, sẵn sàng đưa vào hồ sơ dự án hoặc đồ án.`,"landing.home.cardExportTitle":`Xuất báo cáo`,"landing.home.cardReviewBody":`Nội dung bạn đã sửa được giữ lại khi chạy lại; tài liệu cũ được đánh dấu khi mã nguồn thay đổi.`,"landing.home.cardReviewTitle":`Rà soát & giữ chỉnh sửa`,"landing.home.cardStaticBody":`Dựng cây cú pháp bằng JavaParser, nhận diện controller, service, repository, entity và luồng gọi giữa các lớp.`,"landing.home.cardStaticTitle":`Phân tích tĩnh`,"landing.home.cardUcBody":`Sinh danh sách use case, đặc tả chi tiết và quy tắc nghiệp vụ trích từ validation, điều kiện và ngoại lệ.`,"landing.home.cardUcTitle":`Use case & đặc tả`,"landing.home.cardUmlBody":`Sơ đồ use case, lớp, tuần tự, hoạt động và kiến trúc ở định dạng draw.io, dễ mở và chỉnh sửa.`,"landing.home.cardUmlTitle":`Sơ đồ UML`,"landing.home.chatAnswer":`UC-001 Đặt hàng · UC-002 Huỷ đơn · UC-003 Xem lịch sử`,"landing.home.chatAsk":`Liệt kê use case của module đơn hàng`,"landing.home.ctaBody":`Cài Archscribe, trỏ vào dự án Spring Boot và nhận bộ tài liệu phân tích thiết kế đầu tiên trong vài giây.`,"landing.home.ctaButton":`Bắt đầu miễn phí`,"landing.home.ctaTitle":`Để tài liệu luôn theo kịp mã nguồn`,"landing.home.faq1a":`Hiện tại Archscribe hỗ trợ dự án Java Spring Boot dùng Maven với cấu trúc một module.`,"landing.home.faq1q":`Archscribe hỗ trợ loại dự án nào?`,"landing.home.faq2a":`Không. Việc phân tích diễn ra trên máy của bạn. Chỉ khi bật RAG, các đoạn mô tả đã lọc dữ liệu nhạy cảm mới được gửi đi để tạo embedding.`,"landing.home.faq2q":`Mã nguồn có bị gửi lên Internet không?`,"landing.home.faq3a":`Có. Bạn chỉnh trên Dashboard, nội dung đã sửa được giữ lại khi chạy lại và hệ thống báo khi mã nguồn thay đổi.`,"landing.home.faq3q":`Tôi có sửa được tài liệu đã sinh không?`,"landing.home.faq4a":`Model Context Protocol giúp AI Agent gọi công cụ của Archscribe để lấy đúng thông tin cần thiết, giảm lượng token so với đọc toàn bộ mã nguồn.`,"landing.home.faq4q":`MCP là gì và tại sao cần?`,"landing.home.faq5a1":`Có, trong các trường hợp nêu tại`,"landing.home.faq5q":`Tôi có được hoàn tiền gói Pro không?`,"landing.home.faqTitle":`Câu hỏi thường gặp`,"landing.home.featuresLead":`Không còn cảnh tài liệu viết một lần rồi lỗi thời. Archscribe lấy chính mã nguồn làm căn cứ.`,"landing.home.featuresTitleA":`Tài liệu phân tích thiết kế,`,"landing.home.featuresTitleB":`bám sát mã nguồn`,"landing.home.fine1":`Khi thanh toán, bạn đồng ý với`,"landing.home.fine2":`và`,"landing.home.flexEyebrow":`Linh hoạt`,"landing.home.flexLead":`Dù bạn thích dòng lệnh, giao diện web hay làm việc cùng AI Agent, mọi kết quả đều dựa trên cùng một mô hình trung gian.`,"landing.home.flexTitleA":`Ba cách làm việc,`,"landing.home.flexTitleB":`một mô hình dữ liệu`,"landing.home.floatSequence":`Sequence diagram .drawio`,"landing.home.floatUc":`UC-001 · Đặt hàng`,"landing.home.free1":`Phân tích dự án Spring Boot`,"landing.home.free2":`Đặc tả tối đa 3 use case`,"landing.home.free3":`Sơ đồ use case, activity, sequence`,"landing.home.free4":`Báo cáo markdown và Dashboard cục bộ`,"landing.home.free5":`Kích hoạt trên 1 máy`,"landing.home.freeBlurb":`Trải nghiệm các tính năng cốt lõi.`,"landing.home.freeCta":`Cài đặt miễn phí`,"landing.home.freePrice":`0đ`,"landing.home.heroCta":`Bắt đầu ngay`,"landing.home.heroEyebrow":`Phân tích tĩnh + AI tăng cường công cụ`,"landing.home.heroLead":`Archscribe đọc mã nguồn Java, dựng mô hình trung gian và sinh danh sách use case, đặc tả, quy tắc nghiệp vụ cùng bộ sơ đồ UML. Mọi thứ chạy trên máy của bạn và sẵn sàng cho AI Agent qua MCP.`,"landing.home.heroSecondary":`Xem cách hoạt động`,"landing.home.heroTitleA":`Từ mã nguồn Spring Boot đến`,"landing.home.heroTitleB":`tài liệu thiết kế`,"landing.home.heroTitleC":`chỉ trong vài giây`,"landing.home.metaDescription":`Archscribe phân tích mã nguồn Java Spring Boot để sinh danh sách use case, đặc tả, quy tắc nghiệp vụ và sơ đồ UML, chạy cục bộ và kết nối AI Agent qua MCP.`,"landing.home.metaTitle":`Archscribe — Tự động sinh tài liệu phân tích thiết kế từ mã nguồn Spring Boot`,"landing.home.pipeDocs":`Tài liệu`,"landing.home.pricingLead":`Bắt đầu miễn phí, nâng cấp khi cần thêm sức mạnh. Thanh toán an toàn qua PayOS.`,"landing.home.pricingTitleA":`Gói phù hợp cho`,"landing.home.pricingTitleB":`sinh viên và nhóm nhỏ`,"landing.home.privacy1":`Phân tích hoàn toàn cục bộ, mã nguồn và mô hình IR không bị tải lên máy chủ.`,"landing.home.privacy2":`Dashboard chỉ lắng nghe trên 127.0.0.1 và yêu cầu token truy cập.`,"landing.home.privacy3":`Tính năng RAG là tuỳ chọn, dữ liệu nhạy cảm được lọc trước khi tạo embedding.`,"landing.home.privacy4":`Máy chủ bản quyền tách riêng, chỉ xử lý thông tin giấy phép.`,"landing.home.privacyEyebrow":`Riêng tư`,"landing.home.privacyTitleA":`Mã nguồn của bạn`,"landing.home.privacyTitleB":`ở lại trên máy bạn`,"landing.home.pro1":`Toàn bộ tính năng của gói Free`,"landing.home.pro2":`Không giới hạn số use case`,"landing.home.pro3":`Thêm class và architecture diagram`,"landing.home.pro4":`Xuất báo cáo DOCX`,"landing.home.pro5":`Kích hoạt trên 3 máy`,"landing.home.proBadge":`Tiết kiệm ~17% theo năm`,"landing.home.proCta":`Nâng cấp Pro`,"landing.home.proPerMonth":`/ tháng`,"landing.home.proPrice":`25.000đ`,"landing.home.proYearly":`hoặc 250.000đ / năm`,"landing.home.secureBadge":`Máy của bạn`,"landing.home.secureIr":`Mô hình IR`,"landing.home.secureLocal":`Cục bộ`,"landing.home.secureSource":`Mã nguồn`,"landing.home.step1Body":`Chỉ định thư mục dự án Maven Spring Boot cần phân tích.`,"landing.home.step1Title":`Quét dự án`,"landing.home.step2Body":`Mã nguồn được chuyển thành AST rồi chuẩn hoá thành mô hình trung gian.`,"landing.home.step2Title":`Dựng mô hình IR`,"landing.home.step3Body":`Tạo use case, đặc tả, quy tắc nghiệp vụ và bộ sơ đồ từ IR.`,"landing.home.step3Title":`Sinh tài liệu`,"landing.home.step4Body":`Chỉnh sửa trên Dashboard, sau đó xuất báo cáo DOCX.`,"landing.home.step4Title":`Rà soát & xuất`,"landing.home.stepsTitleA":`Bốn bước từ`,"landing.home.stepsTitleB":`code đến tài liệu`,"landing.home.tabCli":`Chạy phân tích và sinh tài liệu bằng lệnh, tiện tích hợp vào quy trình làm việc.`,"landing.home.tabDashboard":`Xem, rà soát và chỉnh sửa tài liệu trên giao diện web chạy cục bộ, bảo vệ bằng token.`,"landing.home.tabMcp":`Kết nối với AI Agent để hỏi đáp và sinh tài liệu dựa trên dữ liệu phân tích.`,"landing.home.techTitle":`Làm việc cùng hệ sinh thái bạn đang dùng`,"landing.home.termLabel":`Minh họa CLI archscribe`,"landing.home.termOutput":`Đầu ra → archscribe-output/`,"landing.home.termReplay":`Phát lại ↻`,"landing.home.termScan":`250 tệp Java`,"landing.home.termStatus":`Minh họa hoàn tất: mã Java được chuyển thành sơ đồ và báo cáo.`,"landing.home.trustExport":`Xuất draw.io & DOCX`,"landing.home.trustLocal":`Chạy cục bộ`,"landing.home.trustMcp":`Hỗ trợ MCP`,"landing.install.calloutA":`Khi chạy qua`,"landing.install.calloutB":`, cấu hình MCP do Archscribe tạo dùng lệnh npx để khởi động server, không phụ thuộc đường dẫn cache tạm. Lần đầu khởi động MCP cần npm tải gói từ registry nếu chưa có trong cache.`,"landing.install.checkLead":`Kiểm tra môi trường trong terminal:`,"landing.install.connectLeadA":`Chạy`,"landing.install.connectLeadB":`một lần trên máy`,"landing.install.connectTitle":`Kết nối với trình AI`,"landing.install.dashboardA":`mở giao diện cục bộ trong trình duyệt. Nếu chương trình yêu cầu kích hoạt license, dùng`,"landing.install.dashboardB":`và nhập key hợp lệ của bạn. Không đưa license key vào mã nguồn, tài liệu công khai hoặc ảnh chụp màn hình.`,"landing.install.description":`Yêu cầu hệ thống, cài đặt và kết nối với trình AI.`,"landing.install.example":`Ví dụ:`,"landing.install.introA":`Archscribe phân tích dự án Java Spring Boot và tạo tài liệu, sơ đồ thông qua dòng lệnh hoặc công cụ MCP trong trình AI. Hướng dẫn này dành cho gói`,"landing.install.introB":`đã phát hành trên npm, phiên bản đối chiếu`,"landing.install.lead":`Yêu cầu hệ thống, cài đặt và kết nối với trình AI.`,"landing.install.onlyLeadA":`Muốn chỉ đăng ký một hoặc vài trình, dùng`,"landing.install.onlyLeadB":`với các tên dưới đây, phân cách bằng dấu phẩy:`,"landing.install.outroA":`Không cần clone repository hoặc chạy`,"landing.install.outroB":`khi cài từ npm. Hai bước đó chỉ dành cho người phát triển Archscribe từ mã nguồn.`,"landing.install.overwriteLead":`Nếu file đã tồn tại, Archscribe bỏ qua thay vì ghi đè. Chỉ dùng`,"landing.install.overwriteTail":`khi bạn đã kiểm tra nội dung cần giữ:`,"landing.install.reqAssistants":`Nếu muốn dùng Archscribe trong trình AI, hãy cài sẵn ít nhất một trình được hỗ trợ: Claude Code, Codex CLI, Gemini CLI, OpenCode hoặc Antigravity`,"landing.install.reqJavaA":`, có lệnh`,"landing.install.reqJavaB":`trong`,"landing.install.reqNode":`và npm đi kèm`,"landing.install.reqProject":`Dự án Spring Boot dùng Maven hoặc Gradle, có`,"landing.install.reqProjectAnd":`và`,"landing.install.reqProjectOr":`hoặc`,"landing.install.reqTitle":`Yêu cầu`,"landing.install.scaffoldBodyA":`Lệnh tạo`,"landing.install.scaffoldBodyB":`trong dự án.`,"landing.install.scaffoldBodyC":`phục vụ cấu hình MCP theo dự án của Claude Code. Skill đi kèm dành cho Claude Code. Việc đăng ký ở phạm vi người dùng bằng`,"landing.install.scaffoldBodyD":`đã đủ để các trình AI được chọn gọi MCP, nên`,"landing.install.scaffoldBodyE":`không phải bước bắt buộc nếu bạn chỉ dùng kết nối người dùng.`,"landing.install.scaffoldLead":`Trong terminal, chạy:`,"landing.install.scaffoldTitle":`Thêm Archscribe vào dự án`,"landing.install.setupBodyA":`Lệnh này tìm các trình AI đã cài. Khi chạy trong terminal tương tác, bạn có thể chọn trình muốn kết nối. Archscribe đăng ký MCP ở phạm vi người dùng cho Claude Code, Codex CLI, Gemini CLI và OpenCode. Với Antigravity, lệnh cập nhật`,"landing.install.setupBodyB":`, giữ lại các server khác. Khởi động lại trình AI sau khi đăng ký.`,"landing.install.setupPathA":`cần tìm thấy lệnh CLI tương ứng trong`,"landing.install.setupPathB":`, ngoại trừ Antigravity có thể chỉ định trực tiếp bằng`,"landing.install.setupPathC":`Nếu chưa cài trình AI nào, bạn vẫn có thể dùng lệnh`,"landing.install.setupPathD":`ở phần dưới mà không cần`,"landing.install.t1fA":`Cài JDK 17+ và thêm thư mục`,"landing.install.t1fB":`của JDK vào`,"landing.install.t1fC":`, sau đó mở terminal mới`,"landing.install.t1s":`không được nhận diện`,"landing.install.t2f":`Trỏ tới thư mục gốc của một dự án Spring Boot Maven hoặc Gradle`,"landing.install.t2sA":`báo thiếu`,"landing.install.t2sB":`hoặc file build`,"landing.install.t3fA":`Cài CLI tương ứng, đảm bảo lệnh CLI có trong`,"landing.install.t3fB":`, rồi chạy lại`,"landing.install.t3s":`không tìm thấy trình AI`,"landing.install.t4fA":`Khởi động lại trình AI và kiểm tra kết quả đăng ký của`,"landing.install.t4fB":`Với Claude Code có thể dùng`,"landing.install.t4s":`Trình AI chưa thấy công cụ`,"landing.install.t5fA":`Kiểm tra có`,"landing.install.t5fB":`hoặc bản global đang trỏ vào checkout khác. Chỉ chạy`,"landing.install.t5fC":`nếu bạn muốn gỡ liên kết đó`,"landing.install.t5s":`dùng nhầm bản cũ trên máy phát triển`,"landing.install.t6fA":`Kiểm tra kết nối mạng và registry npm, rồi thử lại`,"landing.install.t6s":`không tải được gói`,"landing.install.tableAssistant":`Trình AI`,"landing.install.tableNameA":`Tên dùng với`,"landing.install.troubleFix":`Cách xử lý`,"landing.install.troubleSymptom":`Hiện tượng`,"landing.install.troubleTitle":`Xử lý lỗi thường gặp`,"landing.install.verifyBody":`Sau khi khởi động lại trình AI, mở dự án Spring Boot và yêu cầu AI dùng công cụ Archscribe để tạo tài liệu. Bạn cũng có thể chạy trực tiếp, không cần trình AI:`,"landing.install.verifyLead":`Kiểm tra CLI đang lấy từ npm:`,"landing.install.verifyTitle":`Kiểm tra và chạy`,"landing.install.windowsNote":`Trên Windows, thay đường dẫn ví dụ bằng đường dẫn thực tế, đặt trong dấu nháy kép nếu có khoảng trắng.`,"landing.legal.payment":`Chính sách thanh toán`,"landing.legal.privacy":`Chính sách bảo mật`,"landing.legal.refund":`Chính sách hoàn tiền`,"landing.legal.terms":`Điều khoản sử dụng`,"landing.nav.contact":`Liên hệ`,"landing.nav.docs":`Tài liệu`,"landing.nav.features":`Tính năng`,"landing.nav.label":`Điều hướng chính`,"landing.nav.openMenu":`Mở menu`,"landing.nav.pricing":`Bảng giá`,"landing.nav.tryFree":`Dùng thử miễn phí`,"landing.nav.workflow":`Quy trình`,"landing.quick.afterBodyA":`Đọc báo cáo, mở sơ đồ Draw.io và kiểm tra các ca sử dụng với mã nguồn thực. Xem`,"landing.quick.afterBodyB":`để biết file nào được tạo và những giới hạn cần lưu ý.`,"landing.quick.afterTitle":`Sau khi chạy`,"landing.quick.description":`Chạy Archscribe lần đầu trong vài phút.`,"landing.quick.lead":`Chạy Archscribe lần đầu trong vài phút.`,"landing.quick.prereq":`Bạn cần Node.js 18+, JDK 17+ và dự án Java Spring Boot dùng Maven hoặc Gradle. Xem`,"landing.quick.prereqTail":`nếu chưa chuẩn bị môi trường.`,"landing.quick.scaffoldLead":`Nếu bạn muốn thêm cấu hình và skill Claude Code vào chính dự án:`,"landing.quick.scaffoldNoteA":`không bắt buộc cho kết nối MCP ở phạm vi người dùng đã đăng ký bằng`,"landing.quick.title":`Bắt đầu nhanh`,"landing.quick.way1Dashboard":`mở giao diện cục bộ. Nếu được yêu cầu kích hoạt, dùng`,"landing.quick.way1Doctor":`kiểm tra môi trường và cấu trúc dự án.`,"landing.quick.way1Lead":`Không cần trình AI:`,"landing.quick.way1Login":`với license key hợp lệ.`,"landing.quick.way1Run":`tạo đầu ra mặc định trong`,"landing.quick.way1Title":`Cách 1: Chạy trực tiếp`,"landing.quick.way2BodyA":`Chọn trình AI đã cài trên máy rồi khởi động lại trình đó. Mở dự án Spring Boot và yêu cầu: “Hãy dùng Archscribe để phân tích dự án này, tạo bản thảo tài liệu và cho tôi biết những phần cần rà soát.” Agent có thể gọi`,"landing.quick.way2BodyB":`rồi`,"landing.quick.way2BodyC":`, là tool chạy pipeline đầy đủ. Chỉ dùng các tool chuyên biệt khi cần thao tác chi tiết hơn.`,"landing.quick.way2Title":`Cách 2: Dùng với trình AI`,"landing.refund.description":`Các trường hợp và quy trình hoàn tiền cho gói Pro.`,"landing.refund.lead":`Các trường hợp và quy trình hoàn tiền cho gói Pro. Cập nhật lần cuối: 05/11/2026.`,"landing.term.done":`Minh họa hoàn tất: mã Java được chuyển thành sơ đồ và báo cáo.`,"landing.term.processing":`đang xử lý…`,"landing.term.step1":`Đọc mã Java · xây dựng mô hình trung gian`,"landing.term.step2":`Controllers · Services · Repositories
|
|
15
|
-
Chi tiết đầy đủ trong ir.json`,"landing.term.step3":`Use case · đặc tả · quy tắc nghiệp vụ → DOCX`,"landing.term.step4":`Output → archscribe-output/`,"language.en":`English`,"language.switchLabel":`Ngôn ngữ`,"language.vi":`Tiếng Việt`,"survey.key.activity-diagram":`Activity diagram`,"survey.key.architecture-diagram":`Architecture diagram`,"survey.key.class-diagram":`Class diagram`,"survey.key.class-relations":`Quan hệ class`,"survey.key.ease-of-use":`Dễ dùng`,"survey.key.editability":`Dễ chỉnh sửa`,"survey.key.identify-uc":`Xác định use case`,"survey.key.readability":`Dễ đọc`,"survey.key.sequence-diagram":`Sequence diagram`,"survey.key.source-fidelity":`Bám sát source code`,"survey.key.speed":`Nhanh`,"survey.key.stability":`Ổn định`,"survey.key.uc-spec":`Đặc tả use case`,"survey.key.updates":`Cập nhật khi code thay đổi`,"survey.key.usecase-diagram":`Use case diagram`,"survey.opt.1":`1`,"survey.opt.2-3":`2–3`,"survey.opt.activity-diagram":`Activity diagram`,"survey.opt.ai-agent":`AI Agent`,"survey.opt.always-full":`luôn cập nhật đầy đủ`,"survey.opt.analysis-report":`Báo cáo phân tích`,"survey.opt.architecture-diagram":`Architecture diagram`,"survey.opt.business-branches":`Nhánh nghiệp vụ`,"survey.opt.class-diagram":`Class diagram`,"survey.opt.class-relations":`Quan hệ class`,"survey.opt.classes":`Class`,"survey.opt.cli":`CLI`,"survey.opt.component-flows":`Luồng component`,"survey.opt.docx-report":`Báo cáo DOCX`,"survey.opt.entity-relations":`Quan hệ entity`,"survey.opt.fields":`Field`,"survey.opt.frequently":`thường xuyên`,"survey.opt.gt3":`trên 3`,"survey.opt.gui":`GUI`,"survey.opt.hallucination":`bịa thông tin (hallucination)`,"survey.opt.ide-plugin":`IDE plugin`,"survey.opt.inconsistency":`không nhất quán`,"survey.opt.mandatory":`bắt buộc`,"survey.opt.manual-context":`phải tự cung cấp ngữ cảnh`,"survey.opt.markdown-report":`Báo cáo Markdown`,"survey.opt.methods":`Method`,"survey.opt.never":`chưa từng`,"survey.opt.never-encountered":`chưa từng gặp`,"survey.opt.no-use":`không dùng`,"survey.opt.none":`không gặp vấn đề`,"survey.opt.occasionally":`thỉnh thoảng`,"survey.opt.often":`thường xuyên`,"survey.opt.omitted-components":`bỏ sót component`,"survey.opt.only-on-request":`chỉ cập nhật khi được yêu cầu`,"survey.opt.optional":`không bắt buộc`,"survey.opt.other":`Khác`,"survey.opt.partial-edit":`chỉnh sửa một phần`,"survey.opt.project-too-large":`dự án quá lớn`,"survey.opt.quick-check":`kiểm tra nhanh rồi dùng`,"survey.opt.rarely":`hiếm khi`,"survey.opt.reference-only":`chỉ để tham khảo`,"survey.opt.repeated-prompting":`phải nhắc lại nhiều lần`,"survey.opt.rest-endpoints":`REST endpoint`,"survey.opt.roles-permissions":`Vai trò & phân quyền`,"survey.opt.sequence-diagram":`Sequence diagram`,"survey.opt.sometimes":`thỉnh thoảng`,"survey.opt.srs":`SRS`,"survey.opt.tried":`đã thử`,"survey.opt.use-case-diagram":`Use case diagram`,"survey.opt.use-case-spec":`Đặc tả use case`,"survey.opt.use-cases":`Use case`,"survey.opt.use-directly":`dùng trực tiếp`,"survey.opt.usually-minor-gaps":`thường cập nhật, đôi khi còn thiếu`,"survey.opt.usually-not":`thường không cập nhật`,"survey.opt.verification":`khó kiểm chứng`,"survey.opt.very-often":`rất thường xuyên`,"survey.q.KS-01":`Số dự án bạn từng tham gia`,"survey.q.KS-02":`Số dự án Spring Boot bạn từng làm`,"survey.q.KS-03":`Dự án của bạn có yêu cầu viết tài liệu không?`,"survey.q.KS-04":`Bạn từng dùng những sản phẩm tài liệu nào?`,"survey.q.KS-05":`Bạn có thường phải đọc lại code để hiểu dự án không?`,"survey.q.KS-06":`Bạn thường phải lấy những thông tin nào từ code?`,"survey.q.KS-07":`Mức độ khó của từng việc khi làm tài liệu`,"survey.q.KS-08":`Tài liệu lỗi thời (không còn khớp code) xuất hiện thế nào?`,"survey.q.KS-09":`Khi tài liệu lỗi thời, bạn thường xử lý ra sao?`,"survey.q.KS-10":`Bạn dùng AI để hỗ trợ ở mức độ nào?`,"survey.q.KS-11":`Những vấn đề bạn gặp khi dùng AI?`,"survey.q.KS-12":`Bạn muốn archscribe sinh ra những gì?`,"survey.q.KS-13":`Mức độ quan trọng của từng tiêu chí`,"survey.q.KS-14":`Bạn muốn dùng archscribe qua kênh nào?`,"survey.q.KS-15":`Bạn xử lý tài liệu được sinh ra như thế nào?`,"trial.approved":`Bạn đã được cấp quyền Pro dùng thử!`,"trial.consentContact":`Tôi đồng ý được liên hệ để phản hồi (tuỳ chọn)`,"trial.consentRequired":`(bắt buộc)`,"trial.consentResearch":`Tôi đồng ý để câu trả lời được dùng cho nghiên cứu của luận văn`,"trial.error.fixFields":`Còn câu hỏi chưa trả lời hoặc thiếu thông tin bắt buộc. Chỗ cần bổ sung đã được đánh dấu đỏ.`,"trial.error.network":`Không kết nối được máy chủ.`,"trial.error.submit":`Gửi đơn thất bại.`,"trial.field.projectSize":`Quy mô dự án Spring Boot`,"trial.field.projectSizeHint":`vd: 10-50 KLOC`,"trial.field.purpose":`Nhu cầu dùng`,"trial.field.purposeHint":`dự án / môn học / công việc`,"trial.field.role":`Vai trò`,"trial.field.school":`Trường (tuỳ chọn)`,"trial.intro":`Đây là khảo sát phục vụ nghiên cứu của luận văn. Câu trả lời của bạn được lưu kèm email/tên và dùng để phân tích trong luận văn; nếu bạn đồng ý, chúng tôi có thể liên hệ để xin phản hồi. Việc tham gia là tự nguyện.`,"trial.maxChoices":`(chọn tối đa {max})`,"trial.pageTitle":`Dùng thử Pro`,"trial.pending":`Đơn của bạn đang chờ admin duyệt.`,"trial.pickAtLeast":`chọn ít nhất {min}`,"trial.reapply":`Nộp lại đơn`,"trial.rejected":`Đơn của bạn đã bị từ chối.`,"trial.required":`Bắt buộc`,"trial.scaleLegend":`Thang điểm 1–5: 1 = thấp nhất, 5 = cao nhất`,"trial.signinRequired":`Bạn cần đăng nhập để gửi đơn dùng thử.`,"trial.subheading":`Khảo sát & đăng ký dùng thử Pro`,"trial.submit":`Gửi đơn dùng thử Pro`,"trial.validUntil":`Có hiệu lực đến`},en:{"account.buyMonthly":`Buy 1 month — 25,000₫`,"account.buyYearly":`Buy 1 year — 250,000₫`,"account.claimButton":`Claim key`,"account.claimCopyTitle":`Click to copy`,"account.claimHint":`Save this key now — it will not be shown again.`,"account.confirmRemoveDevice":`Remove this device? That machine will need to sign in again.`,"account.devicesEmpty":`No devices yet. Run <code>archscribe login</code> on a machine to activate it.`,"account.devicesHeading":`Activated devices`,"account.error.checkout":`Could not create the payment. Try again.`,"account.error.claim":`Could not claim the key. Contact support.`,"account.error.claimUsed":`This order has already been claimed.`,"account.error.currentPassword":`The current password is not correct.`,"account.error.load":`Could not load your account. Please try again.`,"account.error.network":`Could not reach the server. Please try again.`,"account.error.networkShort":`Network error. Try again.`,"account.error.passwordChange":`Could not change the password.`,"account.error.passwordShort":`The new password must be at least 8 characters.`,"account.error.removeDevice":`Could not remove the device.`,"account.expiryLabel":`expires`,"account.field.currentPassword":`Current password`,"account.field.email":`Email`,"account.field.name":`Name`,"account.field.newPassword":`New password (≥ 8 characters)`,"account.field.plan":`Plan`,"account.field.proUntil":`Pro until`,"account.helpHeading":`Use archscribe on this machine`,"account.helpLostKey":`Lost your key? Contact support — keys are stored hashed and never shown again.`,"account.helpStep1":`1. Run <code>archscribe login</code> in a terminal<br>`,"account.helpStep2":`2. Paste the license key you saved at sign-up<br>`,"account.helpStep3":`3. Run <code>archscribe doctor</code> to verify`,"account.licenseHeading":`License`,"account.logoSub":`Account`,"account.logout":`Sign out`,"account.nav.devices":`Devices`,"account.nav.help":`Help`,"account.nav.orders":`Orders`,"account.nav.overview":`Overview`,"account.nav.security":`Security`,"account.nav.trial":`Try Pro`,"account.noLicense":`No license yet.`,"account.noTrial":`No request submitted.`,"account.ordersEmpty":`No orders yet.`,"account.ordersHeading":`Orders`,"account.pageTitle":`Account`,"account.passwordChanged":`Password changed.`,"account.passwordHeading":`Change password`,"account.passwordSubmit":`Change password`,"account.proNone":`No (Free account)`,"account.proUntilPrefix":`until`,"account.profileHeading":`Profile`,"account.registerTrial":`Sign up for the 14-day Pro trial →`,"account.removeDevice":`Remove`,"account.seatsLabel":`seats`,"account.sidebarSection":`AREA`,"account.signinLink":`Sign in`,"account.signinRequired":`You need to sign in to see your account.`,"account.status.cancelled":`Cancelled`,"account.status.needsSupport":`Needs support`,"account.status.paid":`Paid`,"account.status.pending":`Pending`,"account.table.activated":`Activated`,"account.table.amount":`Amount`,"account.table.date":`Date`,"account.table.lastHeartbeat":`Last heartbeat`,"account.table.machine":`Machine`,"account.table.orderCode":`Order`,"account.table.status":`Status`,"account.tierPrefix":`Tier`,"account.topbarLabel":`ACCOUNT`,"account.trial.approved":`Approved`,"account.trial.pending":`Pending review`,"account.trial.rejected":`Rejected`,"account.trialHeading":`Try Pro`,"account.trialStatusLabel":`Request status:`,"account.viewDetail":`View details →`,"admin.access":`Administrator access`,"admin.account.noSessions":`No active sessions`,"admin.account.passwordChanged":`Password changed. Other sessions have been signed out. Reloading…`,"admin.account.resetTotpMessage":`This signs out EVERY session on your account, including this one. You will need to enroll a new authenticator and sign in again.`,"admin.account.resetTotpTitle":`Reset two-factor authentication`,"admin.account.revokeSessionMessage":`This will sign that browser out immediately.`,"admin.account.revokeSessionTitle":`Revoke session`,"admin.account.thisSession":`this session`,"admin.action.confirm":`Confirm`,"admin.action.disable":`Disable`,"admin.action.extend":`Extend`,"admin.action.next":`Next →`,"admin.action.pleaseWait":`Please wait…`,"admin.action.revoke":`Revoke`,"admin.action.total":`total`,"admin.audit.activation":`activation`,"admin.audit.admin":`admin`,"admin.audit.admin.login":`admin sign-in`,"admin.audit.admin.logout":`admin sign-out`,"admin.audit.admin.password_change":`change admin password`,"admin.audit.admin.session_revoke":`revoke admin session`,"admin.audit.admin.totp_reset":`reset TOTP`,"admin.audit.admin_session":`admin session`,"admin.audit.admin_user":`admin user`,"admin.audit.app_setting":`app setting`,"admin.audit.broken":`BROKEN at seq`,"admin.audit.chainIntact":`Chain intact`,"admin.audit.checkFailed":`Check failed.`,"admin.audit.checking":`Checking…`,"admin.audit.detail":`Detail`,"admin.audit.device":`device`,"admin.audit.device.remove":`remove device`,"admin.audit.filterPlaceholder":`Filter by action…`,"admin.audit.from":`From`,"admin.audit.hide":`Hide`,"admin.audit.license":`license`,"admin.audit.license.create":`create license`,"admin.audit.license.extend":`extend license`,"admin.audit.license.revoke":`revoke license`,"admin.audit.license.seats":`change seats`,"admin.audit.noAudit":`No audit entries found`,"admin.audit.noDetail":`(no detail)`,"admin.audit.prev":`← Prev`,"admin.audit.rows":`row(s)`,"admin.audit.rowsTotal":`row(s) total`,"admin.audit.session":`session`,"admin.audit.session.revoke":`revoke session`,"admin.audit.to":`To`,"admin.audit.totalRows":`total`,"admin.audit.totp.enroll":`enroll TOTP`,"admin.audit.trial.approve":`approve trial`,"admin.audit.trial.quota":`change trial quota`,"admin.audit.trial.reject":`reject trial`,"admin.audit.trial_application":`trial application`,"admin.audit.user":`user`,"admin.audit.user.disable":`disable user`,"admin.audit.user.enable":`enable user`,"admin.common.error":`Something went wrong.`,"admin.common.failed":`Failed`,"admin.common.loadingBody":`Loading…`,"admin.common.noData":`No data yet.`,"admin.common.noDataYet":`No data yet.`,"admin.common.prev":`← Prev`,"admin.common.staleSession":`Session is stale — reload the page.`,"admin.csrfStale":`Session is stale — reload the page.`,"admin.devices.none":`No devices`,"admin.devices.remove":`Remove`,"admin.devices.removeMessage":`This machine will need to reactivate to use this license again.`,"admin.devices.removeTitle":`Remove device`,"admin.devices.titlePrefix":`Devices — `,"admin.email":`Email`,"admin.err.csrf":`Session is stale — reload the page.`,"admin.err.generic":`Something went wrong.`,"admin.err.notFound":`Not found.`,"admin.err.session":`Your session ended. Sign in again.`,"admin.err.signOut":`Sign-out failed.`,"admin.err.validation":`The input is not valid.`,"admin.error.invalid":`Invalid email or password.`,"admin.error.required":`Email and password are required.`,"admin.error.signIn":`Sign-in failed.`,"admin.error.throttled":`Too many attempts. Please wait and try again.`,"admin.errors.currentPasswordRequired":`Current password is required.`,"admin.errors.invalidValue":`Invalid value.`,"admin.errors.licenseeRequired":`Licensee name is required.`,"admin.errors.loadActivity":`Could not load activity.`,"admin.errors.loadFeedback":`Could not load feedback.`,"admin.errors.monthsMin":`Months must be >= 1.`,"admin.errors.newPasswordTooShort":`New password must be at least 12 characters.`,"admin.errors.passwordMismatch":`New password and confirmation do not match.`,"admin.errors.passwordRequired":`Password is required.`,"admin.filterScreens":`Filter screens…`,"admin.licenses.companyPlaceholder":`Company / Name`,"admin.licenses.create":`Create`,"admin.licenses.created":`Created! Key: `,"admin.licenses.devices":`Devices`,"admin.licenses.extendLabel":`Months to extend`,"admin.licenses.extendTitle":`Extend license`,"admin.licenses.noMatch":`No licenses match this filter`,"admin.licenses.overSeatLimit":`over seat limit`,"admin.licenses.overSeatOnly":`Over seat only`,"admin.licenses.revokeMessage":`Revoke license for {name}?`,"admin.licenses.revokeTitle":`Revoke license`,"admin.licenses.seats":`Seats`,"admin.licenses.seatsInUse":`Currently in use: {n}`,"admin.licenses.seatsLabel":`New seat count`,"admin.licenses.seatsMin":`Seats must be >= 1.`,"admin.licenses.seatsTitle":`Set seats`,"admin.licenses.total":`total`,"admin.nav.audit":`Audit Log`,"admin.nav.feedback":`Feedback`,"admin.nav.licenses":`Licenses`,"admin.nav.overview":`Overview`,"admin.nav.revenue":`Revenue`,"admin.nav.security":`Security`,"admin.nav.trial":`Trial`,"admin.nav.usage":`Usage`,"admin.nav.users":`Users`,"admin.overview.activity":`ACTIVITY`,"admin.overview.darkTheme":`DARK THEME`,"admin.overview.days30":`30 days`,"admin.overview.days7":`7 days`,"admin.overview.days90":`90 days`,"admin.overview.kpiEvents":`EVENTS TODAY`,"admin.overview.kpiExpiring":`EXPIRING (30D)`,"admin.overview.kpiSeats":`ACTIVE SEATS`,"admin.overview.kpiStars":`AVG STARS`,"admin.overview.kpiUsers":`TOTAL USERS`,"admin.overview.lightTheme":`LIGHT THEME`,"admin.overview.noFeedback":`No feedback yet`,"admin.overview.noUsage":`No usage data yet`,"admin.overview.recentFeedback":`RECENT FEEDBACK`,"admin.password":`Password`,"admin.revenue.kpiLast30":`30 days`,"admin.revenue.kpiToday":`Revenue today`,"admin.revenue.kpiTotal":`Total`,"admin.revenue.loadFailed":`Could not load revenue.`,"admin.revenue.loadOrdersFailed":`Could not load orders.`,"admin.revenue.paidRate":`Paid rate`,"admin.revenue.paidUsersSuffix":`paid users`,"admin.revenue.planMonthly":`monthly`,"admin.revenue.planYearly":`yearly`,"admin.sections":`SECTIONS`,"admin.security.resetWarning":`Resetting signs out EVERY session on your account, including this one — you will need to enroll a new authenticator and sign in again.`,"admin.showPassword":`Show password`,"admin.signIn":`Sign in`,"admin.signInTitle":`Admin sign in`,"admin.signOut":`Sign out`,"admin.signedInAs":`Signed in as {name}`,"admin.signingIn":`Signing in…`,"admin.status.approved":`approved`,"admin.status.cancelled":`cancelled`,"admin.status.needs_support":`needs support`,"admin.status.paid":`paid`,"admin.status.pending":`pending`,"admin.status.rejected":`rejected`,"admin.totp.alreadyEnrolled":`Already set up.`,"admin.totp.challengeSub":`Enter the code from your authenticator`,"admin.totp.challengeTitle":`Two-factor authentication`,"admin.totp.checking":`Checking...`,"admin.totp.codeFromApp":`Code from the app`,"admin.totp.codeLabel":`Authentication code`,"admin.totp.confirmContinue":`Confirm and continue`,"admin.totp.copyHint":`Click the box to copy it, or type it in by hand.`,"admin.totp.copyTitle":`Click to copy`,"admin.totp.enrollIntro":`Two-factor authentication is required. Add this secret to an authenticator app (Google Authenticator, Aegis, 1Password) before continuing.`,"admin.totp.enrollSub":`One-time setup for {email}`,"admin.totp.enrollTitle":`Set up two-factor authentication`,"admin.totp.locked":`Too many wrong codes. Sign in again.`,"admin.totp.noSecret":`Reload the page and start again.`,"admin.totp.noSession":`Session expired. Sign in again.`,"admin.totp.notEnrolled":`Set up the authenticator first.`,"admin.totp.openInApp":`Open in the app on this device`,"admin.totp.otherDeviceHint":`Setting the app up on another phone? Copy this link and open it there:`,"admin.totp.recoveryCopyHint":`Click the box to copy all ten, then keep them somewhere off this machine. They are the only way back in if the phone is lost.`,"admin.totp.recoveryHint":`A recovery code works here too, if the phone is gone.`,"admin.totp.recoveryIntro":`Two-factor authentication is on. Save these recovery codes now — they are shown once, and each one works a single time.`,"admin.totp.savedOpen":`I saved them — open the dashboard`,"admin.totp.setupFailed":`Setup failed.`,"admin.totp.verify":`Verify`,"admin.totp.verifyFailed":`Verification failed.`,"admin.totp.wrongCode":`Wrong code. {n} attempts left.`,"admin.trial.allStatuses":`All statuses`,"admin.trial.approve":`Approve`,"admin.trial.close":`Close`,"admin.trial.colEmail":`Email`,"admin.trial.colRole":`Role`,"admin.trial.colSize":`Size`,"admin.trial.colStatus":`Status`,"admin.trial.colSubmitted":`Submitted`,"admin.trial.decided":`Request handled.`,"admin.trial.detailTitle":`Trial request`,"admin.trial.exportCsv":`Export CSV`,"admin.trial.failed":`Action failed.`,"admin.trial.kpiApproved":`APPROVED`,"admin.trial.kpiPending":`PENDING`,"admin.trial.kpiRejected":`REJECTED`,"admin.trial.kpiTotal":`TOTAL`,"admin.trial.loading":`No requests yet`,"admin.trial.noRequests":`No requests yet`,"admin.trial.passwordPrompt":`Re-enter the admin password to confirm:`,"admin.trial.quotaAria":`Trial quota`,"admin.trial.quotaLabel":`TRIAL QUOTA`,"admin.trial.quotaReached":`— quota reached`,"admin.trial.quotaSaved":`Quota saved: `,"admin.trial.quotaWhole":`Quota must be a whole number ≥ 0.`,"admin.trial.reasonPrompt":`Reason for rejection (optional):`,"admin.trial.reject":`Reject`,"admin.trial.rolePrefix":`Role: `,"admin.trial.saveQuota":`Save quota`,"admin.trial.saved":`Saved`,"admin.trial.sizePrefix":`Size: `,"admin.trial.statusApproved":`Approved`,"admin.trial.statusPending":`Pending`,"admin.trial.statusRejected":`Rejected`,"admin.trial.tierLabel":`Tier`,"admin.trial.usePrefix":`Purpose: `,"admin.trial.view":`View`,"admin.ui.activeSessions":`Active Sessions`,"admin.ui.allTiers":`All tiers`,"admin.ui.apply":`Apply`,"admin.ui.approve":`Approve`,"admin.ui.cancel":`Cancel`,"admin.ui.chainIntegrity":`Chain Integrity`,"admin.ui.change":`Change`,"admin.ui.changePassword":`Change Password`,"admin.ui.close":`Close`,"admin.ui.colAction":`Action`,"admin.ui.colActions":`Actions`,"admin.ui.colActivated":`Activated`,"admin.ui.colAdmin":`Admin`,"admin.ui.colAmount":`Amount`,"admin.ui.colAvgUc":`Avg UC Count`,"admin.ui.colDay":`Day (UTC)`,"admin.ui.colEmail":`Email`,"admin.ui.colEvents":`Events`,"admin.ui.colExpires":`Expires`,"admin.ui.colLastActive":`Last Active`,"admin.ui.colLastHeartbeat":`Last Heartbeat`,"admin.ui.colLastRun":`Last Run`,"admin.ui.colLicensee":`Licensee`,"admin.ui.colLinkedUser":`Linked User`,"admin.ui.colMachine":`Machine`,"admin.ui.colMonths":`Months`,"admin.ui.colName":`Name`,"admin.ui.colOrder":`Order`,"admin.ui.colPlan":`Plan`,"admin.ui.colRuns":`Runs`,"admin.ui.colSeats":`Seats`,"admin.ui.colStatus":`Status`,"admin.ui.colTarget":`Target`,"admin.ui.colTier":`Tier`,"admin.ui.colTime":`Time`,"admin.ui.colUser":`User`,"admin.ui.colUserAgent":`User Agent`,"admin.ui.colWhen":`When`,"admin.ui.confirm":`Confirm`,"admin.ui.confirmNewPassword":`Confirm new password`,"admin.ui.createLicense":`Create License`,"admin.ui.currentPassword":`Current password`,"admin.ui.devices":`Devices`,"admin.ui.feedbackTitle":`User Feedback`,"admin.ui.licenseeName":`Licensee name`,"admin.ui.loading":`Loading…`,"admin.ui.newPassword":`New password`,"admin.ui.password":`Password`,"admin.ui.reject":`Reject`,"admin.ui.rel.day":`day`,"admin.ui.rel.days":`days`,"admin.ui.rel.future":`in {count} {unit}`,"admin.ui.rel.hour":`hour`,"admin.ui.rel.hours":`hours`,"admin.ui.rel.minute":`minute`,"admin.ui.rel.minutes":`minutes`,"admin.ui.rel.month":`month`,"admin.ui.rel.months":`months`,"admin.ui.rel.now":`just now`,"admin.ui.rel.past":`{count} {unit} ago`,"admin.ui.rel.year":`year`,"admin.ui.rel.years":`years`,"admin.ui.resetTotp":`Reset TOTP`,"admin.ui.revConversion":`FREE → PAID CONVERSION`,"admin.ui.revOrdersByStatus":`ORDERS BY STATUS`,"admin.ui.revPlanMix":`PLAN MIX`,"admin.ui.revRecentOrders":`RECENT ORDERS`,"admin.ui.revRevenueByDay":`REVENUE BY DAY (30 DAYS)`,"admin.ui.revoked":`Revoked`,"admin.ui.stepUpPassword":`Admin password (step-up)`,"admin.ui.tierFree":`Free`,"admin.ui.tierPro":`Pro`,"admin.ui.trialRequest":`Trial request`,"admin.ui.twoFactor":`Two-Factor Authentication`,"admin.ui.usageTitle":`Usage`,"admin.ui.usageWindow":`Last 7 Days`,"admin.ui.verifyChain":`Verify chain integrity`,"admin.usage.eventsSuffix":`events`,"admin.usage.lastNDays":`Last {n} days`,"admin.usage.noTelemetry":`No telemetry yet`,"admin.usage.usageLoadFailed":`Could not load usage.`,"admin.users.disableMessage":`This blocks their portal login and stops their license on every device (account_disabled). Their license row and tier are untouched — Enable restores everything.`,"admin.users.disableTitle":`Disable user`,"admin.users.enable":`Enable`,"admin.users.enableMessage":`This restores their portal login and their license on every device.`,"admin.users.enableTitle":`Enable user`,"admin.users.noMatch":`No users found`,"admin.users.searchPlaceholder":`Search by email…`,"admin.users.total":`users`,"architecture.c4.absent":`Absent`,"architecture.c4.claim":`{label}: {value} [{state}]`,"architecture.c4.component":`Components`,"architecture.c4.container":`Containers`,"architecture.c4.containment":`Containment`,"architecture.c4.context":`System Context`,"architecture.c4.coverage":`Coverage: {count} elements; {relationships} relationships`,"architecture.c4.crossApplication":`Cross-application source dependency: {from} → {to}`,"architecture.c4.details":`Detail pages: {pages}`,"architecture.c4.edge.ambiguous":`Ambiguous endpoint: {reference}; candidates: {candidates}`,"architecture.c4.edge.missing":`Missing endpoint: {reference}`,"architecture.c4.existence":`Existence`,"architecture.c4.inferred":`Inferred`,"architecture.c4.integrationCandidate":`Dependency {dependency} indicates capability only; active integration unconfirmed`,"architecture.c4.kind.application":`Application`,"architecture.c4.kind.component":`Component`,"architecture.c4.kind.data-store":`Data store`,"architecture.c4.kind.person":`Person`,"architecture.c4.kind.software-system":`Software system`,"architecture.c4.legend":`Key: solid = verified; dashed = inferred; gray = unexamined. Dependency/implementation/inheritance arrows describe source structure, not execution.`,"architecture.c4.membershipUnassigned":`Component unassigned for {qualifiedName}`,"architecture.c4.present":`Present`,"architecture.c4.responsibility":`Responsibility`,"architecture.c4.scope":`Scope: {scope}`,"architecture.c4.source":`Source architecture`,"architecture.c4.sourceCoverageIncomplete":`{unassigned}/{total} classes are not assigned to components; this diagram does not cover all source code.`,"architecture.c4.sourceEmpty":`No source classes available to infer an application`,"architecture.c4.static.dependency":`Static dependency`,"architecture.c4.static.extends":`Static inheritance`,"architecture.c4.static.implements":`Static implementation`,"architecture.c4.technology":`Technology`,"architecture.c4.ui.missing":`UI existence and topology unexamined`,"architecture.c4.ui.separate":`UI belongs to a separate caller-confirmed application`,"architecture.c4.ui.server-rendered":`UI is rendered by the declared server application`,"architecture.c4.ui.unknown":`UI exists; topology unexamined`,"architecture.c4.unexamined":`Unexamined`,"architecture.c4.verified":`Verified`,"architecture.layered.controllers":`Controllers`,"architecture.layered.dependencyNote":`Arrows show actual source-code dependency direction`,"architecture.layered.models":`Models`,"architecture.layered.repositories":`Repositories`,"architecture.layered.repositoryImplementations":`Repository Implementations`,"architecture.layered.serviceInterfaces":`Service Interfaces`,"architecture.layered.services":`Service Implementations`,"architecture.layered.support":`Support Packages`,"architecture.relations.dependency":`Dependency`,"architecture.relations.implements":`Interface realization (implements)`,"architecture.relations.legend":`Dashed, open arrow = Dependency; dashed, hollow triangle = Interface realization (implements). × counts class-level relations, not runtime calls.`,"architecture.relations.typeReference":`Type reference`,"auth.copyHint":`Click to copy · Then run:`,"auth.createAccount":`Create a free account`,"auth.created":`Account created! Save your license key — it will not be shown again.`,"auth.creating":`Creating account…`,"auth.error.confirmMismatch":`The passwords do not match.`,"auth.error.confirmRequired":`Confirm your password.`,"auth.error.emailInvalid":`That email is not valid.`,"auth.error.emailPassword":`Email and password are required.`,"auth.error.emailRequired":`Enter your email.`,"auth.error.emailTaken":`This email is already registered.`,"auth.error.failed":`Registration failed.`,"auth.error.fields":`All fields are required.`,"auth.error.invalid":`Invalid email or password.`,"auth.error.nameRequired":`Enter your full name.`,"auth.error.network":`Network error. Please try again.`,"auth.error.password":`Password must be at least 8 characters.`,"auth.error.passwordRequired":`Enter a password.`,"auth.field.confirmPassword":`Confirm password`,"auth.field.email":`Email`,"auth.field.name":`Full name`,"auth.field.nameHint":`Nguyen Van A`,"auth.field.password":`Password`,"auth.field.passwordHint":`(min 8 chars)`,"auth.goToAccount":`Go to your account →`,"auth.haveAccount":`Already have an account?`,"auth.haveKey":`Already have a key? Run`,"auth.nextSteps":`Next steps:`,"auth.noAccount":`No account?`,"auth.pageTitle":`Register`,"auth.signIn":`Sign in`,"auth.signInAccount":`Sign in to your account`,"auth.signInSubheading":`Sign in to your account`,"auth.signInTitle":`Sign in`,"auth.signingIn":`Signing in…`,"auth.step1":`1. Copy your key above<br>`,"auth.step2":`2. Run`,"auth.step3":`3. Paste the key when prompted<br>`,"auth.step4":`4. Run`,"auth.subheading":`Spring Boot → Docs in seconds`,"auth.submit":`Create free account`,"auth.toggleHide":`Hide`,"auth.toggleShow":`Show password`,"common.cancel":`Cancel`,"common.close":`Close`,"common.copied":`Copied`,"common.copy":`Copy`,"common.none":`(none)`,"common.retry":`Try again`,"common.save":`Save`,"dash.api.readFailed":`Could not read {file} ({status})`,"dash.auth.body":`This page was opened without a valid token (or the token is stale), so every API call returns 401. Re-open it using the link that`,"dash.auth.bodyTail":`the terminal prints when you run archscribe, or run:`,"dash.auth.title":`Dashboard needs an access token`,"dash.diagram.close":`Close diagram`,"dash.diagram.download":`Download`,"dash.diagram.editWeb":`Edit on draw.io web`,"dash.diagram.frameTitle":`Diagram {name}`,"dash.diagram.note":`Edits on the web are not saved back to the project. The viewer needs internet.`,"dash.diagram.openApp":`Open in app`,"dash.diagram.popupBlocked":`The browser blocked the new tab. Allow pop-ups and try again.`,"dash.diagram.view":`View`,"dash.history.approvalsNote":`Read-only here. To approve, run`,"dash.history.col.action":`Action`,"dash.history.col.approver":`Approver`,"dash.history.col.date":`Time`,"dash.history.col.entry":`Entry`,"dash.history.col.message":`Content`,"dash.history.col.status":`Status`,"dash.history.col.version":`Version`,"dash.history.compare":`Compare versions`,"dash.history.emptyRuns":`No runs saved yet. Run the pipeline once to start the history.`,"dash.history.emptyVersions":`No versions yet.`,"dash.history.from":`From`,"dash.history.ledgerEmpty":`No entries in the approval ledger yet.`,"dash.history.noDiff":`(no difference from the newest version)`,"dash.history.restore":`Restore this version`,"dash.history.restoreConfirm":`Restore #{n}?
|
|
15
|
+
Chi tiết đầy đủ trong ir.json`,"landing.term.step3":`Use case · đặc tả · quy tắc nghiệp vụ → DOCX`,"landing.term.step4":`Output → archscribe-output/`,"language.en":`English`,"language.switchLabel":`Ngôn ngữ`,"language.vi":`Tiếng Việt`,"report.table.actors":`Danh sách tác nhân`,"report.table.specification":`Đặc tả use case {id} – {title}`,"report.table.usecases":`Danh sách use case`,"report.toc.heading":`MỤC LỤC`,"survey.key.activity-diagram":`Activity diagram`,"survey.key.architecture-diagram":`Architecture diagram`,"survey.key.class-diagram":`Class diagram`,"survey.key.class-relations":`Quan hệ class`,"survey.key.ease-of-use":`Dễ dùng`,"survey.key.editability":`Dễ chỉnh sửa`,"survey.key.identify-uc":`Xác định use case`,"survey.key.readability":`Dễ đọc`,"survey.key.sequence-diagram":`Sequence diagram`,"survey.key.source-fidelity":`Bám sát source code`,"survey.key.speed":`Nhanh`,"survey.key.stability":`Ổn định`,"survey.key.uc-spec":`Đặc tả use case`,"survey.key.updates":`Cập nhật khi code thay đổi`,"survey.key.usecase-diagram":`Use case diagram`,"survey.opt.1":`1`,"survey.opt.2-3":`2–3`,"survey.opt.activity-diagram":`Activity diagram`,"survey.opt.ai-agent":`AI Agent`,"survey.opt.always-full":`luôn cập nhật đầy đủ`,"survey.opt.analysis-report":`Báo cáo phân tích`,"survey.opt.architecture-diagram":`Architecture diagram`,"survey.opt.business-branches":`Nhánh nghiệp vụ`,"survey.opt.class-diagram":`Class diagram`,"survey.opt.class-relations":`Quan hệ class`,"survey.opt.classes":`Class`,"survey.opt.cli":`CLI`,"survey.opt.component-flows":`Luồng component`,"survey.opt.docx-report":`Báo cáo DOCX`,"survey.opt.entity-relations":`Quan hệ entity`,"survey.opt.fields":`Field`,"survey.opt.frequently":`thường xuyên`,"survey.opt.gt3":`trên 3`,"survey.opt.gui":`GUI`,"survey.opt.hallucination":`bịa thông tin (hallucination)`,"survey.opt.ide-plugin":`IDE plugin`,"survey.opt.inconsistency":`không nhất quán`,"survey.opt.mandatory":`bắt buộc`,"survey.opt.manual-context":`phải tự cung cấp ngữ cảnh`,"survey.opt.markdown-report":`Báo cáo Markdown`,"survey.opt.methods":`Method`,"survey.opt.never":`chưa từng`,"survey.opt.never-encountered":`chưa từng gặp`,"survey.opt.no-use":`không dùng`,"survey.opt.none":`không gặp vấn đề`,"survey.opt.occasionally":`thỉnh thoảng`,"survey.opt.often":`thường xuyên`,"survey.opt.omitted-components":`bỏ sót component`,"survey.opt.only-on-request":`chỉ cập nhật khi được yêu cầu`,"survey.opt.optional":`không bắt buộc`,"survey.opt.other":`Khác`,"survey.opt.partial-edit":`chỉnh sửa một phần`,"survey.opt.project-too-large":`dự án quá lớn`,"survey.opt.quick-check":`kiểm tra nhanh rồi dùng`,"survey.opt.rarely":`hiếm khi`,"survey.opt.reference-only":`chỉ để tham khảo`,"survey.opt.repeated-prompting":`phải nhắc lại nhiều lần`,"survey.opt.rest-endpoints":`REST endpoint`,"survey.opt.roles-permissions":`Vai trò & phân quyền`,"survey.opt.sequence-diagram":`Sequence diagram`,"survey.opt.sometimes":`thỉnh thoảng`,"survey.opt.srs":`SRS`,"survey.opt.tried":`đã thử`,"survey.opt.use-case-diagram":`Use case diagram`,"survey.opt.use-case-spec":`Đặc tả use case`,"survey.opt.use-cases":`Use case`,"survey.opt.use-directly":`dùng trực tiếp`,"survey.opt.usually-minor-gaps":`thường cập nhật, đôi khi còn thiếu`,"survey.opt.usually-not":`thường không cập nhật`,"survey.opt.verification":`khó kiểm chứng`,"survey.opt.very-often":`rất thường xuyên`,"survey.q.KS-01":`Số dự án bạn từng tham gia`,"survey.q.KS-02":`Số dự án Spring Boot bạn từng làm`,"survey.q.KS-03":`Dự án của bạn có yêu cầu viết tài liệu không?`,"survey.q.KS-04":`Bạn từng dùng những sản phẩm tài liệu nào?`,"survey.q.KS-05":`Bạn có thường phải đọc lại code để hiểu dự án không?`,"survey.q.KS-06":`Bạn thường phải lấy những thông tin nào từ code?`,"survey.q.KS-07":`Mức độ khó của từng việc khi làm tài liệu`,"survey.q.KS-08":`Tài liệu lỗi thời (không còn khớp code) xuất hiện thế nào?`,"survey.q.KS-09":`Khi tài liệu lỗi thời, bạn thường xử lý ra sao?`,"survey.q.KS-10":`Bạn dùng AI để hỗ trợ ở mức độ nào?`,"survey.q.KS-11":`Những vấn đề bạn gặp khi dùng AI?`,"survey.q.KS-12":`Bạn muốn archscribe sinh ra những gì?`,"survey.q.KS-13":`Mức độ quan trọng của từng tiêu chí`,"survey.q.KS-14":`Bạn muốn dùng archscribe qua kênh nào?`,"survey.q.KS-15":`Bạn xử lý tài liệu được sinh ra như thế nào?`,"trial.approved":`Bạn đã được cấp quyền Pro dùng thử!`,"trial.consentContact":`Tôi đồng ý được liên hệ để phản hồi (tuỳ chọn)`,"trial.consentRequired":`(bắt buộc)`,"trial.consentResearch":`Tôi đồng ý để câu trả lời được dùng cho nghiên cứu của luận văn`,"trial.error.fixFields":`Còn câu hỏi chưa trả lời hoặc thiếu thông tin bắt buộc. Chỗ cần bổ sung đã được đánh dấu đỏ.`,"trial.error.network":`Không kết nối được máy chủ.`,"trial.error.submit":`Gửi đơn thất bại.`,"trial.field.projectSize":`Quy mô dự án Spring Boot`,"trial.field.projectSizeHint":`vd: 10-50 KLOC`,"trial.field.purpose":`Nhu cầu dùng`,"trial.field.purposeHint":`dự án / môn học / công việc`,"trial.field.role":`Vai trò`,"trial.field.school":`Trường (tuỳ chọn)`,"trial.intro":`Đây là khảo sát phục vụ nghiên cứu của luận văn. Câu trả lời của bạn được lưu kèm email/tên và dùng để phân tích trong luận văn; nếu bạn đồng ý, chúng tôi có thể liên hệ để xin phản hồi. Việc tham gia là tự nguyện.`,"trial.maxChoices":`(chọn tối đa {max})`,"trial.pageTitle":`Dùng thử Pro`,"trial.pending":`Đơn của bạn đang chờ admin duyệt.`,"trial.pickAtLeast":`chọn ít nhất {min}`,"trial.reapply":`Nộp lại đơn`,"trial.rejected":`Đơn của bạn đã bị từ chối.`,"trial.required":`Bắt buộc`,"trial.scaleLegend":`Thang điểm 1–5: 1 = thấp nhất, 5 = cao nhất`,"trial.signinRequired":`Bạn cần đăng nhập để gửi đơn dùng thử.`,"trial.subheading":`Khảo sát & đăng ký dùng thử Pro`,"trial.submit":`Gửi đơn dùng thử Pro`,"trial.validUntil":`Có hiệu lực đến`},en:{"account.buyMonthly":`Buy 1 month — 25,000₫`,"account.buyYearly":`Buy 1 year — 250,000₫`,"account.claimButton":`Claim key`,"account.claimCopyTitle":`Click to copy`,"account.claimHint":`Save this key now — it will not be shown again.`,"account.confirmRemoveDevice":`Remove this device? That machine will need to sign in again.`,"account.devicesEmpty":`No devices yet. Run <code>archscribe login</code> on a machine to activate it.`,"account.devicesHeading":`Activated devices`,"account.error.checkout":`Could not create the payment. Try again.`,"account.error.claim":`Could not claim the key. Contact support.`,"account.error.claimUsed":`This order has already been claimed.`,"account.error.currentPassword":`The current password is not correct.`,"account.error.load":`Could not load your account. Please try again.`,"account.error.network":`Could not reach the server. Please try again.`,"account.error.networkShort":`Network error. Try again.`,"account.error.passwordChange":`Could not change the password.`,"account.error.passwordShort":`The new password must be at least 8 characters.`,"account.error.removeDevice":`Could not remove the device.`,"account.expiryLabel":`expires`,"account.field.currentPassword":`Current password`,"account.field.email":`Email`,"account.field.name":`Name`,"account.field.newPassword":`New password (≥ 8 characters)`,"account.field.plan":`Plan`,"account.field.proUntil":`Pro until`,"account.helpHeading":`Use archscribe on this machine`,"account.helpLostKey":`Lost your key? Contact support — keys are stored hashed and never shown again.`,"account.helpStep1":`1. Run <code>archscribe login</code> in a terminal<br>`,"account.helpStep2":`2. Paste the license key you saved at sign-up<br>`,"account.helpStep3":`3. Run <code>archscribe doctor</code> to verify`,"account.licenseHeading":`License`,"account.logoSub":`Account`,"account.logout":`Sign out`,"account.nav.devices":`Devices`,"account.nav.help":`Help`,"account.nav.orders":`Orders`,"account.nav.overview":`Overview`,"account.nav.security":`Security`,"account.nav.trial":`Try Pro`,"account.noLicense":`No license yet.`,"account.noTrial":`No request submitted.`,"account.ordersEmpty":`No orders yet.`,"account.ordersHeading":`Orders`,"account.pageTitle":`Account`,"account.passwordChanged":`Password changed.`,"account.passwordHeading":`Change password`,"account.passwordSubmit":`Change password`,"account.proNone":`No (Free account)`,"account.proUntilPrefix":`until`,"account.profileHeading":`Profile`,"account.registerTrial":`Sign up for the 14-day Pro trial →`,"account.removeDevice":`Remove`,"account.seatsLabel":`seats`,"account.sidebarSection":`AREA`,"account.signinLink":`Sign in`,"account.signinRequired":`You need to sign in to see your account.`,"account.status.cancelled":`Cancelled`,"account.status.needsSupport":`Needs support`,"account.status.paid":`Paid`,"account.status.pending":`Pending`,"account.table.activated":`Activated`,"account.table.amount":`Amount`,"account.table.date":`Date`,"account.table.lastHeartbeat":`Last heartbeat`,"account.table.machine":`Machine`,"account.table.orderCode":`Order`,"account.table.status":`Status`,"account.tierPrefix":`Tier`,"account.topbarLabel":`ACCOUNT`,"account.trial.approved":`Approved`,"account.trial.pending":`Pending review`,"account.trial.rejected":`Rejected`,"account.trialHeading":`Try Pro`,"account.trialStatusLabel":`Request status:`,"account.viewDetail":`View details →`,"admin.access":`Administrator access`,"admin.account.noSessions":`No active sessions`,"admin.account.passwordChanged":`Password changed. Other sessions have been signed out. Reloading…`,"admin.account.resetTotpMessage":`This signs out EVERY session on your account, including this one. You will need to enroll a new authenticator and sign in again.`,"admin.account.resetTotpTitle":`Reset two-factor authentication`,"admin.account.revokeSessionMessage":`This will sign that browser out immediately.`,"admin.account.revokeSessionTitle":`Revoke session`,"admin.account.thisSession":`this session`,"admin.action.confirm":`Confirm`,"admin.action.disable":`Disable`,"admin.action.extend":`Extend`,"admin.action.next":`Next →`,"admin.action.pleaseWait":`Please wait…`,"admin.action.revoke":`Revoke`,"admin.action.total":`total`,"admin.audit.activation":`activation`,"admin.audit.admin":`admin`,"admin.audit.admin.login":`admin sign-in`,"admin.audit.admin.logout":`admin sign-out`,"admin.audit.admin.password_change":`change admin password`,"admin.audit.admin.session_revoke":`revoke admin session`,"admin.audit.admin.totp_reset":`reset TOTP`,"admin.audit.admin_session":`admin session`,"admin.audit.admin_user":`admin user`,"admin.audit.app_setting":`app setting`,"admin.audit.broken":`BROKEN at seq`,"admin.audit.chainIntact":`Chain intact`,"admin.audit.checkFailed":`Check failed.`,"admin.audit.checking":`Checking…`,"admin.audit.detail":`Detail`,"admin.audit.device":`device`,"admin.audit.device.remove":`remove device`,"admin.audit.filterPlaceholder":`Filter by action…`,"admin.audit.from":`From`,"admin.audit.hide":`Hide`,"admin.audit.license":`license`,"admin.audit.license.create":`create license`,"admin.audit.license.extend":`extend license`,"admin.audit.license.revoke":`revoke license`,"admin.audit.license.seats":`change seats`,"admin.audit.noAudit":`No audit entries found`,"admin.audit.noDetail":`(no detail)`,"admin.audit.prev":`← Prev`,"admin.audit.rows":`row(s)`,"admin.audit.rowsTotal":`row(s) total`,"admin.audit.session":`session`,"admin.audit.session.revoke":`revoke session`,"admin.audit.to":`To`,"admin.audit.totalRows":`total`,"admin.audit.totp.enroll":`enroll TOTP`,"admin.audit.trial.approve":`approve trial`,"admin.audit.trial.quota":`change trial quota`,"admin.audit.trial.reject":`reject trial`,"admin.audit.trial_application":`trial application`,"admin.audit.user":`user`,"admin.audit.user.disable":`disable user`,"admin.audit.user.enable":`enable user`,"admin.common.error":`Something went wrong.`,"admin.common.failed":`Failed`,"admin.common.loadingBody":`Loading…`,"admin.common.noData":`No data yet.`,"admin.common.noDataYet":`No data yet.`,"admin.common.prev":`← Prev`,"admin.common.staleSession":`Session is stale — reload the page.`,"admin.csrfStale":`Session is stale — reload the page.`,"admin.devices.none":`No devices`,"admin.devices.remove":`Remove`,"admin.devices.removeMessage":`This machine will need to reactivate to use this license again.`,"admin.devices.removeTitle":`Remove device`,"admin.devices.titlePrefix":`Devices — `,"admin.email":`Email`,"admin.err.csrf":`Session is stale — reload the page.`,"admin.err.generic":`Something went wrong.`,"admin.err.notFound":`Not found.`,"admin.err.session":`Your session ended. Sign in again.`,"admin.err.signOut":`Sign-out failed.`,"admin.err.validation":`The input is not valid.`,"admin.error.invalid":`Invalid email or password.`,"admin.error.required":`Email and password are required.`,"admin.error.signIn":`Sign-in failed.`,"admin.error.throttled":`Too many attempts. Please wait and try again.`,"admin.errors.currentPasswordRequired":`Current password is required.`,"admin.errors.invalidValue":`Invalid value.`,"admin.errors.licenseeRequired":`Licensee name is required.`,"admin.errors.loadActivity":`Could not load activity.`,"admin.errors.loadFeedback":`Could not load feedback.`,"admin.errors.monthsMin":`Months must be >= 1.`,"admin.errors.newPasswordTooShort":`New password must be at least 12 characters.`,"admin.errors.passwordMismatch":`New password and confirmation do not match.`,"admin.errors.passwordRequired":`Password is required.`,"admin.filterScreens":`Filter screens…`,"admin.licenses.companyPlaceholder":`Company / Name`,"admin.licenses.create":`Create`,"admin.licenses.created":`Created! Key: `,"admin.licenses.devices":`Devices`,"admin.licenses.extendLabel":`Months to extend`,"admin.licenses.extendTitle":`Extend license`,"admin.licenses.noMatch":`No licenses match this filter`,"admin.licenses.overSeatLimit":`over seat limit`,"admin.licenses.overSeatOnly":`Over seat only`,"admin.licenses.revokeMessage":`Revoke license for {name}?`,"admin.licenses.revokeTitle":`Revoke license`,"admin.licenses.seats":`Seats`,"admin.licenses.seatsInUse":`Currently in use: {n}`,"admin.licenses.seatsLabel":`New seat count`,"admin.licenses.seatsMin":`Seats must be >= 1.`,"admin.licenses.seatsTitle":`Set seats`,"admin.licenses.total":`total`,"admin.nav.audit":`Audit Log`,"admin.nav.feedback":`Feedback`,"admin.nav.licenses":`Licenses`,"admin.nav.overview":`Overview`,"admin.nav.revenue":`Revenue`,"admin.nav.security":`Security`,"admin.nav.trial":`Trial`,"admin.nav.usage":`Usage`,"admin.nav.users":`Users`,"admin.overview.activity":`ACTIVITY`,"admin.overview.darkTheme":`DARK THEME`,"admin.overview.days30":`30 days`,"admin.overview.days7":`7 days`,"admin.overview.days90":`90 days`,"admin.overview.kpiEvents":`EVENTS TODAY`,"admin.overview.kpiExpiring":`EXPIRING (30D)`,"admin.overview.kpiSeats":`ACTIVE SEATS`,"admin.overview.kpiStars":`AVG STARS`,"admin.overview.kpiUsers":`TOTAL USERS`,"admin.overview.lightTheme":`LIGHT THEME`,"admin.overview.noFeedback":`No feedback yet`,"admin.overview.noUsage":`No usage data yet`,"admin.overview.recentFeedback":`RECENT FEEDBACK`,"admin.password":`Password`,"admin.revenue.kpiLast30":`30 days`,"admin.revenue.kpiToday":`Revenue today`,"admin.revenue.kpiTotal":`Total`,"admin.revenue.loadFailed":`Could not load revenue.`,"admin.revenue.loadOrdersFailed":`Could not load orders.`,"admin.revenue.paidRate":`Paid rate`,"admin.revenue.paidUsersSuffix":`paid users`,"admin.revenue.planMonthly":`monthly`,"admin.revenue.planYearly":`yearly`,"admin.sections":`SECTIONS`,"admin.security.resetWarning":`Resetting signs out EVERY session on your account, including this one — you will need to enroll a new authenticator and sign in again.`,"admin.showPassword":`Show password`,"admin.signIn":`Sign in`,"admin.signInTitle":`Admin sign in`,"admin.signOut":`Sign out`,"admin.signedInAs":`Signed in as {name}`,"admin.signingIn":`Signing in…`,"admin.status.approved":`approved`,"admin.status.cancelled":`cancelled`,"admin.status.needs_support":`needs support`,"admin.status.paid":`paid`,"admin.status.pending":`pending`,"admin.status.rejected":`rejected`,"admin.totp.alreadyEnrolled":`Already set up.`,"admin.totp.challengeSub":`Enter the code from your authenticator`,"admin.totp.challengeTitle":`Two-factor authentication`,"admin.totp.checking":`Checking...`,"admin.totp.codeFromApp":`Code from the app`,"admin.totp.codeLabel":`Authentication code`,"admin.totp.confirmContinue":`Confirm and continue`,"admin.totp.copyHint":`Click the box to copy it, or type it in by hand.`,"admin.totp.copyTitle":`Click to copy`,"admin.totp.enrollIntro":`Two-factor authentication is required. Add this secret to an authenticator app (Google Authenticator, Aegis, 1Password) before continuing.`,"admin.totp.enrollSub":`One-time setup for {email}`,"admin.totp.enrollTitle":`Set up two-factor authentication`,"admin.totp.locked":`Too many wrong codes. Sign in again.`,"admin.totp.noSecret":`Reload the page and start again.`,"admin.totp.noSession":`Session expired. Sign in again.`,"admin.totp.notEnrolled":`Set up the authenticator first.`,"admin.totp.openInApp":`Open in the app on this device`,"admin.totp.otherDeviceHint":`Setting the app up on another phone? Copy this link and open it there:`,"admin.totp.recoveryCopyHint":`Click the box to copy all ten, then keep them somewhere off this machine. They are the only way back in if the phone is lost.`,"admin.totp.recoveryHint":`A recovery code works here too, if the phone is gone.`,"admin.totp.recoveryIntro":`Two-factor authentication is on. Save these recovery codes now — they are shown once, and each one works a single time.`,"admin.totp.savedOpen":`I saved them — open the dashboard`,"admin.totp.setupFailed":`Setup failed.`,"admin.totp.verify":`Verify`,"admin.totp.verifyFailed":`Verification failed.`,"admin.totp.wrongCode":`Wrong code. {n} attempts left.`,"admin.trial.allStatuses":`All statuses`,"admin.trial.approve":`Approve`,"admin.trial.close":`Close`,"admin.trial.colEmail":`Email`,"admin.trial.colRole":`Role`,"admin.trial.colSize":`Size`,"admin.trial.colStatus":`Status`,"admin.trial.colSubmitted":`Submitted`,"admin.trial.decided":`Request handled.`,"admin.trial.detailTitle":`Trial request`,"admin.trial.exportCsv":`Export CSV`,"admin.trial.failed":`Action failed.`,"admin.trial.kpiApproved":`APPROVED`,"admin.trial.kpiPending":`PENDING`,"admin.trial.kpiRejected":`REJECTED`,"admin.trial.kpiTotal":`TOTAL`,"admin.trial.loading":`No requests yet`,"admin.trial.noRequests":`No requests yet`,"admin.trial.passwordPrompt":`Re-enter the admin password to confirm:`,"admin.trial.quotaAria":`Trial quota`,"admin.trial.quotaLabel":`TRIAL QUOTA`,"admin.trial.quotaReached":`— quota reached`,"admin.trial.quotaSaved":`Quota saved: `,"admin.trial.quotaWhole":`Quota must be a whole number ≥ 0.`,"admin.trial.reasonPrompt":`Reason for rejection (optional):`,"admin.trial.reject":`Reject`,"admin.trial.rolePrefix":`Role: `,"admin.trial.saveQuota":`Save quota`,"admin.trial.saved":`Saved`,"admin.trial.sizePrefix":`Size: `,"admin.trial.statusApproved":`Approved`,"admin.trial.statusPending":`Pending`,"admin.trial.statusRejected":`Rejected`,"admin.trial.tierLabel":`Tier`,"admin.trial.usePrefix":`Purpose: `,"admin.trial.view":`View`,"admin.ui.activeSessions":`Active Sessions`,"admin.ui.allTiers":`All tiers`,"admin.ui.apply":`Apply`,"admin.ui.approve":`Approve`,"admin.ui.cancel":`Cancel`,"admin.ui.chainIntegrity":`Chain Integrity`,"admin.ui.change":`Change`,"admin.ui.changePassword":`Change Password`,"admin.ui.close":`Close`,"admin.ui.colAction":`Action`,"admin.ui.colActions":`Actions`,"admin.ui.colActivated":`Activated`,"admin.ui.colAdmin":`Admin`,"admin.ui.colAmount":`Amount`,"admin.ui.colAvgUc":`Avg UC Count`,"admin.ui.colDay":`Day (UTC)`,"admin.ui.colEmail":`Email`,"admin.ui.colEvents":`Events`,"admin.ui.colExpires":`Expires`,"admin.ui.colLastActive":`Last Active`,"admin.ui.colLastHeartbeat":`Last Heartbeat`,"admin.ui.colLastRun":`Last Run`,"admin.ui.colLicensee":`Licensee`,"admin.ui.colLinkedUser":`Linked User`,"admin.ui.colMachine":`Machine`,"admin.ui.colMonths":`Months`,"admin.ui.colName":`Name`,"admin.ui.colOrder":`Order`,"admin.ui.colPlan":`Plan`,"admin.ui.colRuns":`Runs`,"admin.ui.colSeats":`Seats`,"admin.ui.colStatus":`Status`,"admin.ui.colTarget":`Target`,"admin.ui.colTier":`Tier`,"admin.ui.colTime":`Time`,"admin.ui.colUser":`User`,"admin.ui.colUserAgent":`User Agent`,"admin.ui.colWhen":`When`,"admin.ui.confirm":`Confirm`,"admin.ui.confirmNewPassword":`Confirm new password`,"admin.ui.createLicense":`Create License`,"admin.ui.currentPassword":`Current password`,"admin.ui.devices":`Devices`,"admin.ui.feedbackTitle":`User Feedback`,"admin.ui.licenseeName":`Licensee name`,"admin.ui.loading":`Loading…`,"admin.ui.newPassword":`New password`,"admin.ui.password":`Password`,"admin.ui.reject":`Reject`,"admin.ui.rel.day":`day`,"admin.ui.rel.days":`days`,"admin.ui.rel.future":`in {count} {unit}`,"admin.ui.rel.hour":`hour`,"admin.ui.rel.hours":`hours`,"admin.ui.rel.minute":`minute`,"admin.ui.rel.minutes":`minutes`,"admin.ui.rel.month":`month`,"admin.ui.rel.months":`months`,"admin.ui.rel.now":`just now`,"admin.ui.rel.past":`{count} {unit} ago`,"admin.ui.rel.year":`year`,"admin.ui.rel.years":`years`,"admin.ui.resetTotp":`Reset TOTP`,"admin.ui.revConversion":`FREE → PAID CONVERSION`,"admin.ui.revOrdersByStatus":`ORDERS BY STATUS`,"admin.ui.revPlanMix":`PLAN MIX`,"admin.ui.revRecentOrders":`RECENT ORDERS`,"admin.ui.revRevenueByDay":`REVENUE BY DAY (30 DAYS)`,"admin.ui.revoked":`Revoked`,"admin.ui.stepUpPassword":`Admin password (step-up)`,"admin.ui.tierFree":`Free`,"admin.ui.tierPro":`Pro`,"admin.ui.trialRequest":`Trial request`,"admin.ui.twoFactor":`Two-Factor Authentication`,"admin.ui.usageTitle":`Usage`,"admin.ui.usageWindow":`Last 7 Days`,"admin.ui.verifyChain":`Verify chain integrity`,"admin.usage.eventsSuffix":`events`,"admin.usage.lastNDays":`Last {n} days`,"admin.usage.noTelemetry":`No telemetry yet`,"admin.usage.usageLoadFailed":`Could not load usage.`,"admin.users.disableMessage":`This blocks their portal login and stops their license on every device (account_disabled). Their license row and tier are untouched — Enable restores everything.`,"admin.users.disableTitle":`Disable user`,"admin.users.enable":`Enable`,"admin.users.enableMessage":`This restores their portal login and their license on every device.`,"admin.users.enableTitle":`Enable user`,"admin.users.noMatch":`No users found`,"admin.users.searchPlaceholder":`Search by email…`,"admin.users.total":`users`,"architecture.c4.absent":`Absent`,"architecture.c4.claim":`{label}: {value} [{state}]`,"architecture.c4.component":`Components`,"architecture.c4.container":`Containers`,"architecture.c4.containment":`Containment`,"architecture.c4.context":`System Context`,"architecture.c4.coverage":`Coverage: {count} elements; {relationships} relationships`,"architecture.c4.crossApplication":`Cross-application source dependency: {from} → {to}`,"architecture.c4.details":`Detail pages: {pages}`,"architecture.c4.edge.ambiguous":`Ambiguous endpoint: {reference}; candidates: {candidates}`,"architecture.c4.edge.missing":`Missing endpoint: {reference}`,"architecture.c4.existence":`Existence`,"architecture.c4.inferred":`Inferred`,"architecture.c4.integrationCandidate":`Dependency {dependency} indicates capability only; active integration unconfirmed`,"architecture.c4.kind.application":`Application`,"architecture.c4.kind.component":`Component`,"architecture.c4.kind.data-store":`Data store`,"architecture.c4.kind.person":`Person`,"architecture.c4.kind.software-system":`Software system`,"architecture.c4.legend":`Key: solid = verified; dashed = inferred; gray = unexamined. Dependency/implementation/inheritance arrows describe source structure, not execution.`,"architecture.c4.membershipUnassigned":`Component unassigned for {qualifiedName}`,"architecture.c4.present":`Present`,"architecture.c4.responsibility":`Responsibility`,"architecture.c4.scope":`Scope: {scope}`,"architecture.c4.source":`Source architecture`,"architecture.c4.sourceCoverageIncomplete":`{unassigned}/{total} classes are not assigned to components; this diagram does not cover all source code.`,"architecture.c4.sourceEmpty":`No source classes available to infer an application`,"architecture.c4.static.dependency":`Static dependency`,"architecture.c4.static.extends":`Static inheritance`,"architecture.c4.static.implements":`Static implementation`,"architecture.c4.technology":`Technology`,"architecture.c4.ui.missing":`UI existence and topology unexamined`,"architecture.c4.ui.separate":`UI belongs to a separate caller-confirmed application`,"architecture.c4.ui.server-rendered":`UI is rendered by the declared server application`,"architecture.c4.ui.unknown":`UI exists; topology unexamined`,"architecture.c4.unexamined":`Unexamined`,"architecture.c4.verified":`Verified`,"architecture.layered.controllers":`Controllers`,"architecture.layered.dependencyNote":`Arrows show actual source-code dependency direction`,"architecture.layered.models":`Models`,"architecture.layered.repositories":`Repositories`,"architecture.layered.repositoryImplementations":`Repository Implementations`,"architecture.layered.serviceInterfaces":`Service Interfaces`,"architecture.layered.services":`Service Implementations`,"architecture.layered.support":`Support Packages`,"architecture.relations.dependency":`Dependency`,"architecture.relations.implements":`Interface realization (implements)`,"architecture.relations.legend":`Dashed, open arrow = Dependency; dashed, hollow triangle = Interface realization (implements). × counts class-level relations, not runtime calls.`,"architecture.relations.typeReference":`Type reference`,"auth.copyHint":`Click to copy · Then run:`,"auth.createAccount":`Create a free account`,"auth.created":`Account created! Save your license key — it will not be shown again.`,"auth.creating":`Creating account…`,"auth.error.confirmMismatch":`The passwords do not match.`,"auth.error.confirmRequired":`Confirm your password.`,"auth.error.emailInvalid":`That email is not valid.`,"auth.error.emailPassword":`Email and password are required.`,"auth.error.emailRequired":`Enter your email.`,"auth.error.emailTaken":`This email is already registered.`,"auth.error.failed":`Registration failed.`,"auth.error.fields":`All fields are required.`,"auth.error.invalid":`Invalid email or password.`,"auth.error.nameRequired":`Enter your full name.`,"auth.error.network":`Network error. Please try again.`,"auth.error.password":`Password must be at least 8 characters.`,"auth.error.passwordRequired":`Enter a password.`,"auth.field.confirmPassword":`Confirm password`,"auth.field.email":`Email`,"auth.field.name":`Full name`,"auth.field.nameHint":`Nguyen Van A`,"auth.field.password":`Password`,"auth.field.passwordHint":`(min 8 chars)`,"auth.goToAccount":`Go to your account →`,"auth.haveAccount":`Already have an account?`,"auth.haveKey":`Already have a key? Run`,"auth.nextSteps":`Next steps:`,"auth.noAccount":`No account?`,"auth.pageTitle":`Register`,"auth.signIn":`Sign in`,"auth.signInAccount":`Sign in to your account`,"auth.signInSubheading":`Sign in to your account`,"auth.signInTitle":`Sign in`,"auth.signingIn":`Signing in…`,"auth.step1":`1. Copy your key above<br>`,"auth.step2":`2. Run`,"auth.step3":`3. Paste the key when prompted<br>`,"auth.step4":`4. Run`,"auth.subheading":`Spring Boot → Docs in seconds`,"auth.submit":`Create free account`,"auth.toggleHide":`Hide`,"auth.toggleShow":`Show password`,"common.cancel":`Cancel`,"common.close":`Close`,"common.copied":`Copied`,"common.copy":`Copy`,"common.none":`(none)`,"common.retry":`Try again`,"common.save":`Save`,"dash.api.readFailed":`Could not read {file} ({status})`,"dash.auth.body":`This page was opened without a valid token (or the token is stale), so every API call returns 401. Re-open it using the link that`,"dash.auth.bodyTail":`the terminal prints when you run archscribe, or run:`,"dash.auth.title":`Dashboard needs an access token`,"dash.diagram.close":`Close diagram`,"dash.diagram.download":`Download`,"dash.diagram.editWeb":`Edit on draw.io web`,"dash.diagram.frameTitle":`Diagram {name}`,"dash.diagram.note":`Edits on the web are not saved back to the project. The viewer needs internet.`,"dash.diagram.openApp":`Open in app`,"dash.diagram.popupBlocked":`The browser blocked the new tab. Allow pop-ups and try again.`,"dash.diagram.view":`View`,"dash.history.approvalsNote":`Read-only here. To approve, run`,"dash.history.col.action":`Action`,"dash.history.col.approver":`Approver`,"dash.history.col.date":`Time`,"dash.history.col.entry":`Entry`,"dash.history.col.message":`Content`,"dash.history.col.status":`Status`,"dash.history.col.version":`Version`,"dash.history.compare":`Compare versions`,"dash.history.emptyRuns":`No runs saved yet. Run the pipeline once to start the history.`,"dash.history.emptyVersions":`No versions yet.`,"dash.history.from":`From`,"dash.history.ledgerEmpty":`No entries in the approval ledger yet.`,"dash.history.noDiff":`(no difference from the newest version)`,"dash.history.restore":`Restore this version`,"dash.history.restoreConfirm":`Restore #{n}?
|
|
16
16
|
|
|
17
17
|
Changed files:
|
|
18
18
|
{files}
|
|
19
19
|
|
|
20
20
|
The approval ledger and context come back too; the current state is saved as pre-restore.`,"dash.history.runCount":`{count} runs · newest first`,"dash.history.sameFiles":`The two versions have no managed-file differences.`,"dash.history.tab.approvals":`Approval ledger`,"dash.history.tab.runs":`Runs`,"dash.history.tab.versions":`Versions`,"dash.history.tabsLabel":`History`,"dash.history.to":`To`,"dash.lang.label":`Language`,"dash.outputs.download":`Download`,"dash.outputs.empty":`No files yet. Run the pipeline to produce a report and diagrams.`,"dash.outputs.listLabel":`Output files`,"dash.outputs.loading":`Loading files…`,"dash.outputs.pick":`Pick a file from the list on the left.`,"dash.outputs.projectRoot":`Project root`,"dash.outputs.subtitle":`Files managed by archscribe · pick one to view or download`,"dash.outputs.title":`Outputs`,"dash.review.fix":`Needs work`,"dash.review.legacy":`Older notes for these use cases exist in this browser. Check them and re-attach; the old data is still there.`,"dash.review.pass":`Pass`,"dash.review.retry":`Retry saving`,"dash.review.saveError":`Not saved: {error}`,"dash.review.skip":`Skip`,"dash.sidebar.outputs":`Outputs`,"dash.sidebar.project":`PROJECT`,"dash.stale.controllers":`and the affected controllers:`,"dash.stale.failed":`Re-run failed: {error}`,"dash.stale.rerun":`Re-run`,"dash.stale.running":`Running…`,"dash.stale.summary":`{count} source file(s) changed since the run on {since}`,"dash.stale.title":`Documentation is out of date`,"grouping.evidence":`Evidence`,"grouping.group":`Business group`,"grouping.heading":`Business grouping and evidence`,"grouping.mode":`Mode`,"grouping.notice":`Traceable evidence does not certify business semantics.`,"grouping.rationale":`Rationale`,"grouping.uc":`Use case`,"landing.agent.cliBodyA":`Output defaults to`,"landing.agent.cliBodyB":`. DOCX export depends on the licence. If activation is needed, ask the user to run`,"landing.agent.cliBodyC":`themselves and enter the key in the appropriate UI. Never ask them to paste the key into the chat, and never use internal flags or workarounds to bypass the licence.`,"landing.agent.cliTitle":`CLI only`,"landing.agent.description":`Guidance for an AI agent using Archscribe over MCP.`,"landing.agent.introA":`This page is for an agent asked to use Archscribe on a Java Spring Boot project. The reference is the npm package`,"landing.agent.introB":`. Do not assume the licence state, the results or the source before reading them.`,"landing.agent.lead":`Guidance for an AI agent using Archscribe over MCP.`,"landing.agent.mcp1A":`Call`,"landing.agent.mcp1B":`with the project path and resolve any errors before generating documents.`,"landing.agent.mcp2A":`Call`,"landing.agent.mcp2B":`to run the whole pipeline. There is no need to call`,"landing.agent.mcp2C":`first when using this entry point.`,"landing.agent.mcp3":`Read the output paths and the licence notice in the tool result. Confirm the files really exist before telling the user.`,"landing.agent.mcp4":`Review the use cases, diagrams and any skeleton chapters. Say clearly what the user still has to confirm, and never describe a draft as reviewed documentation.`,"landing.agent.mcpTitle":`Preferred MCP path`,"landing.agent.prep1A":`Locate the project root containing`,"landing.agent.prep1B":`and a Maven or Gradle build file.`,"landing.agent.prep2A":`Check Node.js 18+, JDK 17+ and`,"landing.agent.prep2B":`on the`,"landing.agent.prep3A":`If there is no MCP connection yet, ask the user to run`,"landing.agent.prep3B":`and restart the assistant. You can narrow it with`,"landing.agent.prep3C":`, naming only what is needed. If the CLI alone is enough, skip`,"landing.agent.prep4A":`Never overwrite an existing`,"landing.agent.prep4B":`or skill yourself.`,"landing.agent.prep4C":`is only needed when the user wants the project-scoped Claude Code config.`,"landing.agent.prepTitle":`Preparation`,"landing.agent.reportAnd":`and`,"landing.agent.reportBody":`State which command or tool ran, which file paths were found, what succeeded and what was not produced. Separate what was analysed from the source from what the AI inferred or added. Warn about multi-module Maven and inherited endpoints. Point the user to`,"landing.agent.reportEnd":`when needed.`,"landing.agent.reportTitle":`How to report results`,"landing.agent.specialA":`Specialised tools such as`,"landing.agent.specialAnd":`and`,"landing.agent.specialB":`are for cases where the user needs finer control. With`,"landing.agent.specialC":`, prefer passing the project path so the tool reads the code itself. Do not paste the whole IR into the conversation when it is not needed. Chapters 1, 2, 4 and 5 of the report may be skeletons: continue them through the documented flow and check the content. Do not call internal content-writing tools outside the public flow.`,"landing.contact.description":`Need help with the product, a licence or a payment? Get in touch.`,"landing.contact.emailLabel":`Support email`,"landing.contact.eyebrow":`Policies`,"landing.contact.include1":`The email on your Archscribe account.`,"landing.contact.include2":`The order code (for payment or refund requests).`,"landing.contact.include3":`Your Archscribe version, a description of the problem and screenshots if you have them. Please do not send source code containing secrets.`,"landing.contact.includeHeading":`When you write to us, please include`,"landing.contact.infoHeading":`Contact details`,"landing.contact.lead":`Need help with the product, a licence or a payment? Get in touch. Last updated: 5 November 2026.`,"landing.contact.legalNavLabel":`Policy pages`,"landing.contact.response":`Within 1–3 working days`,"landing.contact.responseLabel":`Response time`,"landing.contact.team":`Nguyen Hoang Son, Nguyen Phu Trieu`,"landing.contact.teamLabel":`Development team`,"landing.contact.title":`Contact`,"landing.docs.agent":`For AI agents`,"landing.docs.agentTitle":`Guide for AI agents`,"landing.docs.faq":`Technical FAQ`,"landing.docs.faqTitle":`Frequently asked questions`,"landing.docs.install":`Install`,"landing.docs.installTitle":`Install Archscribe`,"landing.docs.quickstart":`Quick start`,"landing.docs.sideTitle":`Archscribe docs`,"landing.docs.workflow":`Workflow & outputs`,"landing.docsSide.breadcrumb":`Breadcrumb`,"landing.docsSide.close":`Close contents`,"landing.docsSide.groupGuides":`Guides`,"landing.docsSide.groupReference":`Reference`,"landing.docsSide.groupStart":`Getting started`,"landing.docsSide.next":`Next`,"landing.docsSide.onThisPage":`On this page`,"landing.docsSide.open":`Documentation contents`,"landing.docsSide.pager":`Previous and next page`,"landing.docsSide.prev":`Previous`,"landing.docsSide.searchLabel":`Filter documentation pages`,"landing.docsSide.searchPlaceholder":`Search the docs…`,"landing.docsSide.tocLabel":`Documentation contents`,"landing.faq.a1A":`No.`,"landing.faq.a1B":`fetches the package from npm and runs. The first run needs registry access. See`,"landing.faq.a2A":`Yes. Run`,"landing.faq.a2B":`and then`,"landing.faq.a2C":`is only for the MCP connection to an assistant.`,"landing.faq.a3A":`registers MCP for the assistant at user scope.`,"landing.faq.a3B":`creates`,"landing.faq.a3C":`and the Claude Code skill inside one project, skipping existing files unless you explicitly pass`,"landing.faq.a4A":`Check that the assistant's CLI is on`,"landing.faq.a4B":`, read the output of`,"landing.faq.a4C":`and restart it. With Claude Code, try`,"landing.faq.a4D":`If you use Antigravity, check`,"landing.faq.a5A":`Install JDK 17+ and add`,"landing.faq.a5B":`to`,"landing.faq.a5C":`Point the command at the root containing`,"landing.faq.a5D":`with`,"landing.faq.a5E":`or`,"landing.faq.a5F":`Re-run`,"landing.faq.a6A":`DOCX export depends on the licence. Check the notice printed by the run and your licence state. If activation is requested, use`,"landing.faq.a6B":`with a valid key. Never share the key publicly.`,"landing.faq.a7":`It can analyse the project, but coverage is not guaranteed: some endpoints, especially inherited paths, may be missing. Check the source and the diagrams before relying on them.`,"landing.faq.a8A":`Your dev machine may have`,"landing.faq.a8B":`an old checkout or a global install. Check that link first. Only run`,"landing.faq.a8C":`if you want to remove it, then try`,"landing.faq.a9A":`Not without reviewing it. The report may still contain skeleton chapters, and the use cases and diagrams need checking against the source and the real requirements. See`,"landing.faq.description":`Answers to the usual errors and questions.`,"landing.faq.lead":`Answers to the usual errors and questions.`,"landing.faq.q1":`Do I need a global Archscribe install?`,"landing.faq.q2":`Can I use it without an AI assistant?`,"landing.faq.q3":`How do setup and scaffold differ?`,"landing.faq.q4":`Why can't the assistant see the tools?`,"landing.faq.q5":`Missing Java, or the project is reported as wrongly structured?`,"landing.faq.q6":`Why is there no DOCX file?`,"landing.faq.q7":`Does it work with multi-module Maven?`,"landing.faq.q8":`Why does npx archscribe run an old build on my machine?`,"landing.faq.q9":`Can I submit the generated documentation as-is?`,"landing.flow.colPath":`Default path`,"landing.flow.colRole":`Role`,"landing.flow.description":`The steps to use it and the files Archscribe produces.`,"landing.flow.introA":`Archscribe drafts documentation from the source of a Java Spring Boot project. The default output lives in`,"landing.flow.introB":`You can change the location with the`,"landing.flow.introC":`CLI option.`,"landing.flow.lead":`The steps to use it and the files Archscribe produces.`,"landing.flow.noteA":`Not every project produces every diagram or a DOCX. The output depends on the source, the use cases chosen and the licence. Use`,"landing.flow.noteB":`to open the local UI and browse projects and results.`,"landing.flow.outDiagrams":`Draw.io diagrams — architecture, class, use case, activity and sequence, depending on the source and the selected use cases`,"landing.flow.outDocx":`Word file, when the licence allows DOCX export`,"landing.flow.outEvaluation":`Evaluation data written when the pipeline produces that report`,"landing.flow.outIr":`Intermediate analysis data extracted from the source`,"landing.flow.outManifest":`A fingerprint used to detect stale documentation after the source changes`,"landing.flow.outReport":`Markdown report draft. Some chapters are skeletons you or an agent still need to fill in`,"landing.flow.outputsTitle":`Main outputs`,"landing.flow.review1":`Verify actors, preconditions, the main flow, exceptions and use case names with someone who knows the business.`,"landing.flow.review2":`Check diagrams and endpoint paths against the source, especially with inheritance or a multi-module project.`,"landing.flow.review3":`Treat the report as a draft. Never present a skeleton chapter as finished content.`,"landing.flow.reviewTitle":`Review before you use it`,"landing.flow.scopeA":`Archscribe targets single-module Spring Boot projects. With multi-module Maven, the analysis may miss endpoints or relations. See the`,"landing.flow.scopeAnd":`and`,"landing.flow.step1":`to check Node.js, Java and the Maven or Gradle layout.`,"landing.flow.step2A":`or ask the AI to call`,"landing.flow.step2B":`over MCP. The parser analyses the Java source, then Archscribe drafts the use cases, diagrams and report.`,"landing.flow.step3":`Read the result and check endpoints, actors, use case flows and class relations against the source and the business requirements.`,"landing.flow.step4A":`After the code changes, run`,"landing.flow.step4B":`to see whether the documentation still matches the source. Re-run when needed and review the diff.`,"landing.footer.blurb":`A tool that generates design documentation from Java Spring Boot source code, combining static analysis and AI.`,"landing.footer.copyright":`© 2026 Archscribe · Nguyen Hoang Son, Nguyen Phu Trieu`,"landing.footer.docs":`Documentation`,"landing.footer.payos":`Secure payment via PayOS`,"landing.footer.policies":`Policies`,"landing.footer.product":`Product`,"landing.footer.support":`Support`,"landing.home.cardAgentBody":`The MCP server gives an AI agent tools to query the intermediate model instead of reading the whole codebase.`,"landing.home.cardAgentTitle":`Ready for AI agents`,"landing.home.cardExportBody":`Collects the results into a DOCX report, ready for a project dossier or a thesis.`,"landing.home.cardExportTitle":`Export the report`,"landing.home.cardReviewBody":`Edits survive a re-run, and documents are flagged when the source changes underneath them.`,"landing.home.cardReviewTitle":`Review and keep your edits`,"landing.home.cardStaticBody":`Builds an AST with JavaParser and recognises controllers, services, repositories, entities and the calls between them.`,"landing.home.cardStaticTitle":`Static analysis`,"landing.home.cardUcBody":`Generates the use case list, detailed specifications and business rules drawn from validations, conditions and exceptions.`,"landing.home.cardUcTitle":`Use cases & specifications`,"landing.home.cardUmlBody":`Use case, class, sequence, activity and architecture diagrams in draw.io format — easy to open and edit.`,"landing.home.cardUmlTitle":`UML diagrams`,"landing.home.chatAnswer":`UC-001 Place order · UC-002 Cancel order · UC-003 View history`,"landing.home.chatAsk":`List the use cases of the order module`,"landing.home.ctaBody":`Install Archscribe, point it at a Spring Boot project and get the first design document set in seconds.`,"landing.home.ctaButton":`Start for free`,"landing.home.ctaTitle":`Keep the documentation in step with the source`,"landing.home.faq1a":`Archscribe supports single-module Maven Java Spring Boot projects.`,"landing.home.faq1q":`Which projects does Archscribe support?`,"landing.home.faq2a":`No. Analysis happens on your machine. Only if you enable RAG are filtered descriptions sent out to create embeddings.`,"landing.home.faq2q":`Is my source code sent anywhere?`,"landing.home.faq3a":`Yes. Edit in the dashboard; your changes survive a re-run and the tool flags when the source has changed.`,"landing.home.faq3q":`Can I edit the generated documents?`,"landing.home.faq4a":`The Model Context Protocol lets an AI agent call Archscribe's tools to fetch exactly what it needs, using far fewer tokens than reading the whole codebase.`,"landing.home.faq4q":`What is MCP and why does it matter?`,"landing.home.faq5a1":`Yes, in the cases listed in the`,"landing.home.faq5q":`Can I get a refund on Pro?`,"landing.home.faqTitle":`Frequently asked questions`,"landing.home.featuresLead":`No more documents written once and then quietly out of date. Archscribe grounds everything in the source.`,"landing.home.featuresTitleA":`Design documentation that`,"landing.home.featuresTitleB":`follows the source`,"landing.home.fine1":`By paying you agree to the`,"landing.home.fine2":`and the`,"landing.home.flexEyebrow":`Flexible`,"landing.home.flexLead":`Whether you prefer the command line, a web UI or an AI agent, every result comes from the same intermediate model.`,"landing.home.flexTitleA":`Three ways to work,`,"landing.home.flexTitleB":`one data model`,"landing.home.floatSequence":`Sequence diagram .drawio`,"landing.home.floatUc":`UC-001 · Place order`,"landing.home.free1":`Analyse a Spring Boot project`,"landing.home.free2":`Up to 3 use case specifications`,"landing.home.free3":`Use case, activity and sequence diagrams`,"landing.home.free4":`Markdown report and local dashboard`,"landing.home.free5":`Activation on 1 machine`,"landing.home.freeBlurb":`Try the core features.`,"landing.home.freeCta":`Install for free`,"landing.home.freePrice":`Free`,"landing.home.heroCta":`Get started`,"landing.home.heroEyebrow":`Static analysis + tool-augmented AI`,"landing.home.heroLead":`Archscribe reads Java source, builds an intermediate model and generates use cases, specifications, business rules and a full UML diagram set. Everything runs on your machine and is ready for AI agents over MCP.`,"landing.home.heroSecondary":`See how it works`,"landing.home.heroTitleA":`From Spring Boot source to`,"landing.home.heroTitleB":`design documentation`,"landing.home.heroTitleC":`in seconds`,"landing.home.metaDescription":`Archscribe analyses Java Spring Boot source to produce use cases, specifications, business rules and UML diagrams — running locally and reachable by AI agents over MCP.`,"landing.home.metaTitle":`Archscribe — Design documentation generated from Spring Boot source`,"landing.home.pipeDocs":`Docs`,"landing.home.pricingLead":`Start free and upgrade when you need more. Secure payment via PayOS.`,"landing.home.pricingTitleA":`Plans for`,"landing.home.pricingTitleB":`students and small teams`,"landing.home.privacy1":`Analysis is fully local: neither the source nor the IR model is uploaded.`,"landing.home.privacy2":`The dashboard listens on 127.0.0.1 only and requires an access token.`,"landing.home.privacy3":`RAG is optional, and sensitive data is filtered before embeddings are created.`,"landing.home.privacy4":`The licence server is separate and handles licence data only.`,"landing.home.privacyEyebrow":`Privacy`,"landing.home.privacyTitleA":`Your source code`,"landing.home.privacyTitleB":`stays on your machine`,"landing.home.pro1":`Everything in Free`,"landing.home.pro2":`Unlimited use cases`,"landing.home.pro3":`Class and architecture diagrams`,"landing.home.pro4":`DOCX report export`,"landing.home.pro5":`Activation on 3 machines`,"landing.home.proBadge":`Save ~17% yearly`,"landing.home.proCta":`Upgrade to Pro`,"landing.home.proPerMonth":`/ month`,"landing.home.proPrice":`25,000₫`,"landing.home.proYearly":`or 250,000₫ / year`,"landing.home.secureBadge":`Your machine`,"landing.home.secureIr":`IR model`,"landing.home.secureLocal":`Local`,"landing.home.secureSource":`Source code`,"landing.home.step1Body":`Point it at the Maven Spring Boot project you want analysed.`,"landing.home.step1Title":`Scan the project`,"landing.home.step2Body":`The source becomes an AST and is normalised into an intermediate model.`,"landing.home.step2Title":`Build the IR model`,"landing.home.step3Body":`Use cases, specifications, business rules and the diagram set come from the IR.`,"landing.home.step3Title":`Generate the documents`,"landing.home.step4Body":`Edit in the dashboard, then export the DOCX report.`,"landing.home.step4Title":`Review and export`,"landing.home.stepsTitleA":`Four steps from`,"landing.home.stepsTitleB":`code to documentation`,"landing.home.tabCli":`Run analysis and generate documents from a command, easy to fit into an existing workflow.`,"landing.home.tabDashboard":`View, review and edit the documents in a local web UI protected by a token.`,"landing.home.tabMcp":`Connect an AI agent to ask questions and generate documents from the analysis.`,"landing.home.techTitle":`Works with the tools you already use`,"landing.home.termLabel":`archscribe CLI illustration`,"landing.home.termOutput":`Output → archscribe-output/`,"landing.home.termReplay":`Replay ↻`,"landing.home.termScan":`250 Java files`,"landing.home.termStatus":`Illustration finished: Java source became diagrams and a report.`,"landing.home.trustExport":`Exports draw.io & DOCX`,"landing.home.trustLocal":`Runs locally`,"landing.home.trustMcp":`MCP ready`,"landing.install.calloutA":`When installed through`,"landing.install.calloutB":`, the MCP config Archscribe writes starts the server with npx, so it does not depend on a temporary cache path. The first MCP start needs npm to fetch the package unless it is already cached.`,"landing.install.checkLead":`Check the environment in a terminal:`,"landing.install.connectLeadA":`Run this`,"landing.install.connectLeadB":`once per machine`,"landing.install.connectTitle":`Connect an AI assistant`,"landing.install.dashboardA":`opens the local UI in your browser. If it asks for a licence, use`,"landing.install.dashboardB":`and enter your valid key. Never put a licence key in source code, public documentation or screenshots.`,"landing.install.description":`System requirements, installation and the AI assistant connection.`,"landing.install.example":`For example:`,"landing.install.introA":`Archscribe analyses a Java Spring Boot project and produces documents and diagrams from the command line or through MCP tools inside an AI assistant. This guide covers the`,"landing.install.introB":`package published on npm, checked against version`,"landing.install.lead":`System requirements, installation and the AI assistant connection.`,"landing.install.onlyLeadA":`To register only one or a few, use`,"landing.install.onlyLeadB":`with the names below, comma-separated:`,"landing.install.outroA":`There is no need to clone the repository or run`,"landing.install.outroB":`when installing from npm; those two steps are for people developing Archscribe itself.`,"landing.install.overwriteLead":`If the files already exist, Archscribe skips them instead of overwriting. Use`,"landing.install.overwriteTail":`only after checking what you need to keep:`,"landing.install.reqAssistants":`To use Archscribe inside an AI assistant, install at least one supported assistant first: Claude Code, Codex CLI, Gemini CLI, OpenCode or Antigravity`,"landing.install.reqJavaA":`with the`,"landing.install.reqJavaB":`command on your`,"landing.install.reqNode":`and the bundled npm`,"landing.install.reqProject":`A Spring Boot project using Maven or Gradle, containing`,"landing.install.reqProjectAnd":`and`,"landing.install.reqProjectOr":`or`,"landing.install.reqTitle":`Requirements`,"landing.install.scaffoldBodyA":`The command creates`,"landing.install.scaffoldBodyB":`in the project.`,"landing.install.scaffoldBodyC":`is the project-scoped MCP config for Claude Code; the bundled skill is for Claude Code too. The user-scope registration from`,"landing.install.scaffoldBodyD":`is enough for the selected assistants to call MCP, so`,"landing.install.scaffoldBodyE":`is optional if you only use the user-scope connection.`,"landing.install.scaffoldLead":`In a terminal, run:`,"landing.install.scaffoldTitle":`Add Archscribe to the project`,"landing.install.setupBodyA":`The command finds the assistants you have installed. In an interactive terminal you can pick which one to connect. Archscribe registers MCP at user scope for Claude Code, Codex CLI, Gemini CLI and OpenCode. For Antigravity it updates`,"landing.install.setupBodyB":`, keeping any other servers intact. Restart the assistant afterwards.`,"landing.install.setupPathA":`needs the matching CLI on your`,"landing.install.setupPathB":`, except Antigravity, which you can name directly with`,"landing.install.setupPathC":`If you have no assistant installed you can still use the`,"landing.install.setupPathD":`command below without running`,"landing.install.t1fA":`Install JDK 17+ and add the JDK`,"landing.install.t1fB":`folder to`,"landing.install.t1fC":`, then open a new terminal`,"landing.install.t1s":`is not recognised`,"landing.install.t2f":`Point it at the root of a Maven or Gradle Spring Boot project`,"landing.install.t2sA":`reports a missing`,"landing.install.t2sB":`or build file`,"landing.install.t3fA":`Install the matching CLI, make sure it is on`,"landing.install.t3fB":`, then rerun`,"landing.install.t3s":`finds no AI assistant`,"landing.install.t4fA":`Restart the assistant and check what`,"landing.install.t4fB":`With Claude Code you can run`,"landing.install.t4s":`The assistant cannot see the tools`,"landing.install.t5fA":`Check whether`,"landing.install.t5fB":`or a global install points at another checkout. Only run`,"landing.install.t5fC":`if you want to remove that link`,"landing.install.t5s":`picks up an old build from your dev machine`,"landing.install.t6fA":`Check the network and the npm registry, then retry`,"landing.install.t6s":`cannot download the package`,"landing.install.tableAssistant":`Assistant`,"landing.install.tableNameA":`Name for`,"landing.install.troubleFix":`Fix`,"landing.install.troubleSymptom":`Symptom`,"landing.install.troubleTitle":`Troubleshooting`,"landing.install.verifyBody":`After restarting the assistant, open the Spring Boot project and ask it to use Archscribe's tools. You can also run it directly, without any assistant:`,"landing.install.verifyLead":`Check that the CLI comes from npm:`,"landing.install.verifyTitle":`Verify and run`,"landing.install.windowsNote":`On Windows, replace the example path with your real one and wrap it in double quotes if it contains spaces.`,"landing.legal.payment":`Payment policy`,"landing.legal.privacy":`Privacy policy`,"landing.legal.refund":`Refund policy`,"landing.legal.terms":`Terms of use`,"landing.nav.contact":`Contact`,"landing.nav.docs":`Docs`,"landing.nav.features":`Features`,"landing.nav.label":`Main navigation`,"landing.nav.openMenu":`Open menu`,"landing.nav.pricing":`Pricing`,"landing.nav.tryFree":`Try it free`,"landing.nav.workflow":`How it works`,"landing.quick.afterBodyA":`Read the report, open the Draw.io diagrams and check the use cases against the real source. See`,"landing.quick.afterBodyB":`for which files are produced and the limitations to keep in mind.`,"landing.quick.afterTitle":`After the run`,"landing.quick.description":`Run Archscribe for the first time in a few minutes.`,"landing.quick.lead":`Run Archscribe for the first time in a few minutes.`,"landing.quick.prereq":`You need Node.js 18+, JDK 17+ and a Java Spring Boot project using Maven or Gradle. See`,"landing.quick.prereqTail":`if your environment is not ready yet.`,"landing.quick.scaffoldLead":`If you want the config and the Claude Code skill inside the project itself:`,"landing.quick.scaffoldNoteA":`is not required for the user-scope MCP connection registered by`,"landing.quick.title":`Quick start`,"landing.quick.way1Dashboard":`opens the local UI. If activation is required, use`,"landing.quick.way1Doctor":`checks the environment and the project layout.`,"landing.quick.way1Lead":`No AI assistant needed:`,"landing.quick.way1Login":`with a valid licence key.`,"landing.quick.way1Run":`writes the default output into`,"landing.quick.way1Title":`Option 1: Run it directly`,"landing.quick.way2BodyA":`Pick the assistant you already have installed and restart it. Open the Spring Boot project and ask: “Use Archscribe to analyse this project, draft the documentation and tell me what needs review.” The agent can call`,"landing.quick.way2BodyB":`and then`,"landing.quick.way2BodyC":`, the tool that runs the whole pipeline. Reach for the narrower tools only when you need finer control.`,"landing.quick.way2Title":`Option 2: Use it with an AI assistant`,"landing.refund.description":`Refund cases and process for the Pro plan. The authoritative text is in Vietnamese.`,"landing.refund.lead":`Refund cases and process for the Pro plan. Last updated: 5 November 2026.`,"landing.term.done":`Illustration finished: the Java source became diagrams and a report.`,"landing.term.processing":`working…`,"landing.term.step1":`Reads Java source · builds the intermediate model`,"landing.term.step2":`Controllers · Services · Repositories
|
|
21
|
-
Full detail lives in ir.json`,"landing.term.step3":`Use cases · specifications · business rules → DOCX`,"landing.term.step4":`Output → archscribe-output/`,"language.en":`English`,"language.switchLabel":`Language`,"language.vi":`Tiếng Việt`,"survey.key.activity-diagram":`Activity diagram`,"survey.key.architecture-diagram":`Architecture diagram`,"survey.key.class-diagram":`Class diagram`,"survey.key.class-relations":`Class relations`,"survey.key.ease-of-use":`Ease of use`,"survey.key.editability":`Ease of editing`,"survey.key.identify-uc":`Identifying use cases`,"survey.key.readability":`Readability`,"survey.key.sequence-diagram":`Sequence diagram`,"survey.key.source-fidelity":`Fidelity to the source code`,"survey.key.speed":`Speed`,"survey.key.stability":`Stability`,"survey.key.uc-spec":`Use case specification`,"survey.key.updates":`Staying current as the code changes`,"survey.key.usecase-diagram":`Use case diagram`,"survey.opt.1":`1`,"survey.opt.2-3":`2–3`,"survey.opt.activity-diagram":`Activity diagram`,"survey.opt.ai-agent":`AI agent`,"survey.opt.always-full":`always fully updated`,"survey.opt.analysis-report":`Analysis report`,"survey.opt.architecture-diagram":`Architecture diagram`,"survey.opt.business-branches":`Business branches`,"survey.opt.class-diagram":`Class diagram`,"survey.opt.class-relations":`Class relations`,"survey.opt.classes":`Class`,"survey.opt.cli":`CLI`,"survey.opt.component-flows":`Component flows`,"survey.opt.docx-report":`DOCX report`,"survey.opt.entity-relations":`Entity relations`,"survey.opt.fields":`Field`,"survey.opt.frequently":`frequently`,"survey.opt.gt3":`more than 3`,"survey.opt.gui":`GUI`,"survey.opt.hallucination":`it invents facts (hallucination)`,"survey.opt.ide-plugin":`IDE plugin`,"survey.opt.inconsistency":`inconsistent output`,"survey.opt.mandatory":`required`,"survey.opt.manual-context":`I have to supply the context myself`,"survey.opt.markdown-report":`Markdown report`,"survey.opt.methods":`Method`,"survey.opt.never":`never`,"survey.opt.never-encountered":`never encountered`,"survey.opt.no-use":`do not use it`,"survey.opt.none":`no problems`,"survey.opt.occasionally":`occasionally`,"survey.opt.often":`often`,"survey.opt.omitted-components":`it misses components`,"survey.opt.only-on-request":`only updated when asked`,"survey.opt.optional":`not required`,"survey.opt.other":`Other`,"survey.opt.partial-edit":`edit part of it`,"survey.opt.project-too-large":`the project is too large`,"survey.opt.quick-check":`quick check, then use`,"survey.opt.rarely":`rarely`,"survey.opt.reference-only":`reference only`,"survey.opt.repeated-prompting":`I have to prompt repeatedly`,"survey.opt.rest-endpoints":`REST endpoint`,"survey.opt.roles-permissions":`Roles and permissions`,"survey.opt.sequence-diagram":`Sequence diagram`,"survey.opt.sometimes":`sometimes`,"survey.opt.srs":`SRS`,"survey.opt.tried":`have tried`,"survey.opt.use-case-diagram":`Use case diagram`,"survey.opt.use-case-spec":`Use case specification`,"survey.opt.use-cases":`Use case`,"survey.opt.use-directly":`use as-is`,"survey.opt.usually-minor-gaps":`usually updated, sometimes incomplete`,"survey.opt.usually-not":`usually not updated`,"survey.opt.verification":`hard to verify`,"survey.opt.very-often":`very often`,"survey.q.KS-01":`How many software projects have you taken part in?`,"survey.q.KS-02":`How many Spring Boot projects have you worked on?`,"survey.q.KS-03":`Does your project require written documentation?`,"survey.q.KS-04":`Which documentation outputs have you used?`,"survey.q.KS-05":`How often do you have to re-read the code to understand a project?`,"survey.q.KS-06":`Which details do you usually have to pull out of the code?`,"survey.q.KS-07":`How difficult is each documentation task?`,"survey.q.KS-08":`How often does documentation go out of date (no longer matching the code)?`,"survey.q.KS-09":`When documentation is out of date, what do you usually do?`,"survey.q.KS-10":`How much do you use AI as support?`,"survey.q.KS-11":`Which problems have you hit when using AI?`,"survey.q.KS-12":`What would you want archscribe to produce?`,"survey.q.KS-13":`How important is each criterion?`,"survey.q.KS-14":`Which channel would you use archscribe through?`,"survey.q.KS-15":`How do you handle the documentation that was produced?`,"trial.approved":`Your Pro trial has been approved!`,"trial.consentContact":`I agree to be contacted for follow-up (optional)`,"trial.consentRequired":`(required)`,"trial.consentResearch":`I agree that my answers may be used for the thesis research`,"trial.error.fixFields":`Some questions are unanswered or required fields are missing. They are marked in red.`,"trial.error.network":`Could not reach the server.`,"trial.error.submit":`Could not submit the request.`,"trial.field.projectSize":`Spring Boot project size`,"trial.field.projectSizeHint":`e.g. 10-50 KLOC`,"trial.field.purpose":`Intended use`,"trial.field.purposeHint":`project / coursework / work`,"trial.field.role":`Role`,"trial.field.school":`School (optional)`,"trial.intro":`This survey supports the research for a graduation thesis. Your answers are stored with your email/name and used for analysis in the thesis; with your permission we may contact you for follow-up. Taking part is voluntary.`,"trial.maxChoices":`(choose up to {max})`,"trial.pageTitle":`Try Pro`,"trial.pending":`Your request is waiting for admin approval.`,"trial.pickAtLeast":`choose at least {min}`,"trial.reapply":`Submit again`,"trial.rejected":`Your request was rejected.`,"trial.required":`Required`,"trial.scaleLegend":`Scale 1–5: 1 = lowest, 5 = highest`,"trial.signinRequired":`You need to sign in to submit a trial request.`,"trial.subheading":`Survey & Pro trial sign-up`,"trial.submit":`Submit Pro trial request`,"trial.validUntil":`Valid until`}},_=`vi`;function v(e){_=e}function y(e=_){return e===`vi`?`vi-VN`:`en-GB`}function b(e,t){let n=g[_][e]??g.vi[e]??e.split(`.`).pop()??e;return t?n.replace(/\{(\w+)\}/g,(e,n)=>t[n]===void 0?e:String(t[n])):n}function x(e){return new Intl.DateTimeFormat(y(),{dateStyle:`short`,timeStyle:`short`,timeZone:`Asia/Ho_Chi_Minh`}).format(e instanceof Date?e:new Date(e))}var S=e=>`/api/projects/${encodeURIComponent(e)}`,ee=e=>C(e,`/review`),te=(e,t,n)=>C(e,`/review`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({key:t,status:n.status??null,notes:n.notes??``})});async function C(e,t,n){let r=await fetch(`${S(e)}${t}`,{...n,headers:{...m(),...n?.headers}});return de(r),T(r)}var ne=e=>C(e,`/versions`),w=(e,t,n)=>C(e,`/versions/diff?a=${encodeURIComponent(t)}&b=${encodeURIComponent(n)}`),re=e=>C(e,`/approvals`),ie=(e,t)=>C(e,`/versions/restore`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({ref:t})});async function ae(e){let t=await fetch(`${S(e)}/outputs`,{headers:m()});return de(t),T(t)}var oe=(e,t)=>`${S(e)}/outputs/file?path=${encodeURIComponent(t)}`;async function se(e,t){let n=await fetch(oe(e,t),{headers:m()});if(de(n),!n.ok)throw Error(b(`dash.api.readFailed`,{file:t,status:n.status}));return n.text()}var ce=(e,t)=>h(oe(e,t));async function le(e,t){let n=await fetch(`${S(e)}/outputs/open`,{method:`POST`,headers:{...m(),"Content-Type":`application/json`},body:JSON.stringify({path:t})});de(n),await T(n)}async function T(e){if(!e.ok){let t=e.statusText;try{let n=await e.json();t=n.error??n.message??t}catch{}throw Error(t)}return e.json()}var ue=class extends Error{constructor(){super(`unauthorized`),this.name=`UnauthorizedError`}};function de(e){if(e.status===401)throw new ue}async function fe(){let e=await fetch(`/api/projects`,{headers:m()});if(de(e),!e.ok)throw Error(`Failed to load projects`);return e.json()}async function pe(e){let t=await fetch(`/api/projects/${encodeURIComponent(e)}/report`,{headers:m()});if(de(t),!t.ok)throw Error(await t.text());return t.json()}async function me(e){let t=await fetch(`/api/projects/${encodeURIComponent(e)}/runs`,{headers:m()});return de(t),t.ok?t.json():[]}function he(e,t,n,r){let i=new EventSource(h(`/api/events`));return i.addEventListener(`report-updated`,t=>{try{e(JSON.parse(t.data))}catch{}}),t&&i.addEventListener(`run-progress`,e=>{try{t(JSON.parse(e.data))}catch{}}),n&&i.addEventListener(`run-complete`,e=>{try{n(JSON.parse(e.data))}catch{}}),r&&i.addEventListener(`run-error`,e=>{try{r(JSON.parse(e.data))}catch{}}),()=>i.close()}async function ge(){let e=await fetch(`/api/version`,{headers:m()});return de(e),e.ok?(await e.json()).version:``}async function _e(){let e=await fetch(`/api/license/status`,{headers:m()});return de(e),T(e)}async function ve(e){let t=await fetch(`/api/login`,{method:`POST`,headers:{"Content-Type":`application/json`,...m()},body:JSON.stringify({licenseKey:e})});de(t);try{return await t.json()}catch{throw Error(t.statusText||`Login request failed`)}}async function ye(e){let t=await fetch(`/api/projects/${encodeURIComponent(e)}/freshness`,{headers:m()});return de(t),T(t)}async function be(e){let t=await fetch(`/api/run`,{method:`POST`,headers:{"Content-Type":`application/json`,...m()},body:JSON.stringify(e)});return de(t),T(t)}function xe(e,t){return h(`/api/files?${new URLSearchParams({dir:e,path:t}).toString()}`)}var Se=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),E=e(((e,t)=>{t.exports=Se()}))(),Ce=[{id:`run`,label:`Run`,num:`00`},{id:`dashboard`,label:`Dashboard`,num:`01`},{id:`review`,label:`Review`,num:`02`},{id:`compare`,label:`Compare`,num:`03`},{id:`human-eval`,label:`Human Eval`,num:`04`},{id:`history`,label:`History`,num:`05`},{id:`outputs`,label:`Outputs`,num:`06`,key:`dash.sidebar.outputs`}];function D({screen:e,setScreen:t,projects:n,activeProject:r,setActiveProject:i,menuOpen:a,setMenuOpen:o,report:s,locale:c,setLocale:u}){let[d,f]=(0,l.useState)(!1),[p,m]=(0,l.useState)(``);(0,l.useEffect)(()=>{ge().then(m).catch(()=>{})},[]);let h=s?.runAt?x(s.runAt):n.find(e=>e.name===r)?.lastRun?x(n.find(e=>e.name===r).lastRun):null;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`button`,{className:`hamburger`,onClick:()=>o(!a),"aria-label":`Menu`,children:a?`✕`:`☰`}),(0,E.jsxs)(`nav`,{className:`sidebar${a?` open`:``}`,children:[(0,E.jsxs)(`div`,{className:`logo`,children:[(0,E.jsx)(`img`,{className:`logo-img`,src:`/brand/logo-full.png`,alt:`archscribe`}),p&&(0,E.jsxs)(`span`,{className:`logo-ver`,children:[`V`,p]})]}),(0,E.jsxs)(`div`,{className:`sidebar-proj-section`,children:[(0,E.jsx)(`div`,{className:`sidebar-section-label`,children:b(`dash.sidebar.project`)}),(0,E.jsxs)(`div`,{style:{position:`relative`},children:[(0,E.jsxs)(`button`,{className:`project-select-btn`,onClick:()=>f(!d),children:[(0,E.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:r||`Select project`}),(0,E.jsx)(`span`,{className:`ps-arrow`,children:d?`▲`:`▼`})]}),d&&n.length>0&&(0,E.jsx)(`div`,{className:`project-dropdown`,children:n.map(e=>(0,E.jsxs)(`div`,{className:`project-dropdown-item${e.name===r?` active`:``}`,onClick:()=>{i(e.name),f(!1)},children:[e.name,e.hasReport?``:` ·`]},e.name))})]})]}),(0,E.jsxs)(`div`,{className:`sidebar-nav-section`,children:[(0,E.jsx)(`div`,{className:`sidebar-section-label`,children:`TRANG / SECTIONS`}),Ce.map(n=>(0,E.jsxs)(`div`,{className:`nav-item${e===n.id?` active`:``}`,onClick:()=>{t(n.id),o(!1)},children:[(0,E.jsx)(`span`,{className:`nav-num`,children:n.num}),n.key?b(n.key):n.label]},n.id))]}),(0,E.jsxs)(`div`,{className:`sidebar-footer`,children:[(0,E.jsx)(`div`,{className:`lang-switch`,role:`group`,"aria-label":b(`dash.lang.label`),style:{display:`flex`,gap:6,marginBottom:8},children:[`vi`,`en`].map(e=>(0,E.jsx)(`button`,{type:`button`,"data-testid":`lang-${e}`,className:`lang-btn${c===e?` active`:``}`,"aria-pressed":c===e,lang:e===`vi`?`vi-VN`:`en-GB`,onClick:()=>u(e),disabled:c===e,style:{padding:`2px 8px`,fontSize:11,borderRadius:4,cursor:c===e?`default`:`pointer`,border:`1px solid var(--border)`,background:c===e?`var(--accent)`:`transparent`,color:c===e?`#fff`:`inherit`,fontWeight:c===e?600:400},children:e===`vi`?`VI`:`EN`},e))}),r&&(0,E.jsx)(`div`,{className:`proj`,children:r}),h&&(0,E.jsx)(`div`,{style:{fontSize:11,marginBottom:4},children:h}),(0,E.jsx)(`div`,{children:`archscribe dashboard`})]})]})]})}function O({onClose:e,onSuccess:t}){let[n,r]=(0,l.useState)(``),[i,a]=(0,l.useState)(!1),[o,s]=(0,l.useState)(null),[c,u]=(0,l.useState)(!1),d=async()=>{let e=n.trim();if(e&&!i){a(!0),s(null);try{let n=await ve(e);n.kind===`ok`?(u(!0),s(n.line),setTimeout(t,900)):s(n.message)}catch(e){s(e.message)}finally{a(!1)}}};return(0,E.jsx)(`div`,{className:`modal-backdrop`,onClick:e,children:(0,E.jsxs)(`div`,{className:`modal`,onClick:e=>e.stopPropagation(),children:[(0,E.jsx)(`h2`,{children:`Activate license`}),(0,E.jsxs)(`p`,{className:`sub`,children:[`Same flow as `,(0,E.jsx)(`code`,{className:`mono`,children:`archscribe login`}),` — the key is validated against the license server and saved for the CLI too.`]}),(0,E.jsx)(`input`,{className:`run-path-input`,placeholder:`ARCH-XXXX-XXXX-XXXX`,value:n,onChange:e=>r(e.target.value),disabled:i||c,autoFocus:!0,onKeyDown:e=>{e.key===`Enter`&&d()}}),o&&(0,E.jsx)(`div`,{className:c?`pill pill-ok modal-message`:`error-banner modal-message`,children:o}),(0,E.jsxs)(`div`,{className:`modal-actions`,children:[(0,E.jsx)(`button`,{className:`btn`,onClick:e,disabled:i,children:`Cancel`}),(0,E.jsx)(`button`,{className:`btn btn-primary`,onClick:d,disabled:i||c||!n.trim(),children:i?`Checking…`:`Activate`})]})]})})}var we=[`scan`,`diagram`,`report`],Te={scan:`Scan`,diagram:`Diagram`,report:`Report`},Ee={scan:{status:`pending`},diagram:{status:`pending`},report:{status:`pending`}};function De(){let[e,t]=(0,l.useState)(``),[n,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(Ee),[o,s]=(0,l.useState)(null),[c,u]=(0,l.useState)(null),[d,f]=(0,l.useState)(null),[p,m]=(0,l.useState)(!1),h=(0,l.useCallback)(()=>{_e().then(f).catch(()=>{})},[]);(0,l.useEffect)(()=>{h()},[h]),(0,l.useEffect)(()=>he(()=>{},({step:e,status:t,detail:n})=>{a(r=>({...r,[e]:{status:t,detail:n??r[e]?.detail}}))}),[]);let g=async()=>{let t=e.trim();if(t&&!n){r(!0),u(null),s(null),a(Ee);try{let e=await be({projectPath:t});s(e),h()}catch(e){u(e.message)}finally{r(!1)}}};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`screen-header`,children:[(0,E.jsx)(`span`,{className:`screen-label`,children:`00 / RUN`}),(0,E.jsx)(`h1`,{className:`screen-title`,children:`Run analysis`})]}),d&&(0,E.jsxs)(`div`,{className:`license-banner ${d.tier===`pro`?`pill-ok`:`pill-warn`}`,children:[(0,E.jsx)(`span`,{children:d.line}),d.tier===`free`&&(0,E.jsx)(`button`,{className:`btn`,onClick:()=>m(!0),children:`Login`})]}),(0,E.jsxs)(`div`,{className:`run-input-row`,children:[(0,E.jsx)(`input`,{className:`run-path-input`,placeholder:`Absolute path to a Spring Boot project, e.g. D:/projects/MyApp`,value:e,onChange:e=>t(e.target.value),disabled:n,onKeyDown:e=>{e.key===`Enter`&&g()}}),(0,E.jsx)(`button`,{className:`btn btn-primary`,onClick:g,disabled:n||!e.trim(),children:n?`Running…`:`Run analysis`})]}),(n||o)&&(0,E.jsx)(`div`,{className:`run-steps`,children:we.map(e=>{let t=i[e];return(0,E.jsxs)(`div`,{className:`run-step`,children:[(0,E.jsx)(`span`,{className:`dot ${t.status===`pending`?``:`on`}`}),(0,E.jsx)(`span`,{className:`run-step-label`,children:Te[e]}),t.status===`start`&&(0,E.jsx)(`span`,{className:`run-step-spinner`,children:`running…`}),t.detail&&(0,E.jsx)(`span`,{className:`run-step-detail`,children:t.detail})]},e)})}),c&&(0,E.jsx)(`div`,{className:`error-banner`,children:c}),o&&(0,E.jsx)(Oe,{summary:o}),p&&(0,E.jsx)(O,{onClose:()=>m(!1),onSuccess:()=>{m(!1),h()}})]})}function Oe({summary:e}){let{report:t,components:n,license:r,scan:i,outputDir:a}=e,o=r.tier===`free`&&t.usecase_selected_count<t.usecase_count?`${t.usecase_selected_count}/${t.usecase_count} UC (Free)`:`${t.usecase_selected_count} UC`,s=!!t.docx_path;return(0,E.jsxs)(`div`,{className:`run-result`,children:[(0,E.jsxs)(`div`,{className:`section-row`,style:{gridTemplateColumns:`1fr 1fr`,borderTop:`none`},children:[(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsx)(`div`,{className:`section-heading`,children:`SCAN`}),(0,E.jsx)(k,{label:`Classes`,value:String(i.classCount),on:!0}),(0,E.jsx)(k,{label:`Components`,value:String(n.total),on:!0})]}),(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsx)(`div`,{className:`section-heading`,children:`REPORT`}),(0,E.jsx)(k,{label:`Use cases`,value:o,on:!0}),(0,E.jsx)(k,{label:`DOCX`,value:s?(0,E.jsx)(`a`,{className:`btn`,href:xe(a,t.docx_path),children:`Download`}):`Skipped — cần Pro`,on:s}),(0,E.jsx)(k,{label:`Markdown`,value:(0,E.jsx)(`a`,{className:`btn`,href:xe(a,t.markdown_path),children:`Download`}),on:!0})]})]}),(0,E.jsx)(`div`,{className:`section-row`,style:{gridTemplateColumns:`1fr`,borderTop:`none`},children:(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsxs)(`div`,{className:`section-heading`,children:[`COMPONENTS`,(0,E.jsx)(`span`,{className:`sh-meta`,children:`grouped by stereotype`})]}),n.groups.length===0&&(0,E.jsx)(`p`,{className:`sub`,children:`No domain components found.`}),n.groups.map(e=>(0,E.jsxs)(`div`,{className:`component-group`,children:[(0,E.jsxs)(`div`,{className:`component-group-label`,children:[e.label,` `,(0,E.jsxs)(`span`,{className:`mono`,children:[`(`,e.names.length,`)`]})]}),(0,E.jsx)(`div`,{className:`component-group-names`,children:e.names.join(` · `)})]},e.label))]})})]})}function k({label:e,value:t,on:n}){return(0,E.jsxs)(`div`,{className:`comp-row`,children:[(0,E.jsx)(`span`,{className:`comp-dot`,style:{background:n?`var(--pass)`:`var(--skip)`,border:`none`}}),(0,E.jsx)(`span`,{className:`comp-label`,children:e}),(0,E.jsx)(`span`,{className:`comp-val`,children:t})]})}function ke(e){return`${(e*100).toFixed(1)}%`}function Ae(e){return e==null?`—`:e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}function je(e){return e>=.8?`var(--pass)`:e>=.5?`var(--revise)`:`var(--accent)`}function Me({n:e,label:t,s:n}){let r=je(n.f1);return(0,E.jsxs)(`div`,{className:`acc-row`,children:[(0,E.jsx)(`span`,{className:`acc-n`,children:String(e).padStart(2,`0`)}),(0,E.jsx)(`span`,{className:`acc-label`,children:t}),(0,E.jsx)(`div`,{className:`acc-bars`,children:[{k:`P`,v:n.precision},{k:`R`,v:n.recall},{k:`F1`,v:n.f1}].map(({k:e,v:t})=>(0,E.jsxs)(`div`,{className:`acc-bar-row`,children:[(0,E.jsx)(`span`,{className:`acc-bar-key`,children:e}),(0,E.jsx)(`span`,{className:`acc-bar-track`,children:(0,E.jsx)(`span`,{className:`acc-bar-fill`,style:{width:ke(t),background:r}})}),(0,E.jsx)(`span`,{style:{fontFamily:`var(--mono)`,fontSize:10,color:`var(--dim)`,width:36,textAlign:`right`},children:ke(t)})]},e))}),(0,E.jsx)(`span`,{className:`acc-f1`,style:{color:r},children:ke(n.f1)})]})}function Ne({dot:e,label:t,val:n,pass:r}){return(0,E.jsxs)(`div`,{className:`comp-row`,children:[(0,E.jsx)(`span`,{className:`comp-dot`,style:{background:r===void 0?`var(--hair)`:r?`var(--pass)`:`var(--accent)`,border:`none`}}),(0,E.jsx)(`span`,{className:`comp-label`,children:t}),(0,E.jsx)(`span`,{className:`comp-val`,style:{color:r===void 0?`var(--ink)`:r?`var(--pass)`:`var(--accent)`},children:n})]})}function Pe({n:e,label:t,val:n,total:r}){let i=r&&n?Math.min(n/r,1):0;return(0,E.jsxs)(`div`,{className:`timing-row`,children:[(0,E.jsx)(`span`,{className:`timing-n`,children:String(e).padStart(2,`0`)}),(0,E.jsx)(`span`,{className:`timing-label`,children:t}),(0,E.jsx)(`div`,{className:`timing-bar`,children:(0,E.jsx)(`div`,{className:`timing-bar-fill`,style:{width:ke(i)}})}),(0,E.jsx)(`span`,{className:`timing-val`,children:Ae(n)})]})}function Fe({label:e,value:t,unit:n,frac:r,dotColor:i}){return(0,E.jsxs)(`div`,{className:`kpi-cell`,children:[(0,E.jsxs)(`div`,{className:`kpi-label`,children:[(0,E.jsx)(`span`,{className:`kpi-dot`,style:{background:i}}),e]}),(0,E.jsxs)(`div`,{className:`kpi-value`,children:[t,n&&(0,E.jsxs)(`span`,{className:`kpi-unit`,children:[` `,n]})]}),(0,E.jsx)(`div`,{className:`kpi-bar`,children:(0,E.jsx)(`div`,{className:`kpi-bar-fill`,style:{width:ke(Math.min(r,1)),background:i}})})]})}function Ie({report:e}){let{accuracy:t,completeness:n,timing:r}=e,i=(t.classExtraction.f1+t.dependencyExtraction.f1+t.endpointExtraction.f1)/3,a=n?.overallScore??0,o=e.usecases?.length??0,s=r?.totalTimeMs??0,c=je(i),l=a>=80?`var(--pass)`:a>=50?`var(--revise)`:`var(--accent)`;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`screen-header`,children:[(0,E.jsx)(`span`,{className:`screen-label`,children:`01 / DASHBOARD`}),(0,E.jsx)(`h1`,{className:`screen-title`,children:e.projectName})]}),(0,E.jsxs)(`div`,{className:`kpi-grid`,children:[(0,E.jsx)(Fe,{label:`AVG F1`,value:(i*100).toFixed(1),unit:`%`,frac:i,dotColor:c}),(0,E.jsx)(Fe,{label:`COMPLETENESS`,value:String(a),unit:`/100`,frac:a/100,dotColor:l}),(0,E.jsx)(Fe,{label:`USE CASES`,value:String(o),frac:Math.min(o/20,1),dotColor:`var(--ink)`}),(0,E.jsx)(Fe,{label:`TOTAL TIME`,value:s>=1e3?(s/1e3).toFixed(1):String(s),unit:s>=1e3?`s`:`ms`,frac:Math.min(s/3e4,1),dotColor:`var(--dim)`})]}),(0,E.jsxs)(`div`,{className:`section-row`,style:{gridTemplateColumns:`1fr 1fr`,borderTop:`none`},children:[(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsxs)(`div`,{className:`section-heading`,children:[`ACCURACY`,(0,E.jsx)(`span`,{className:`sh-meta`,children:`Precision · Recall · F1`})]}),(0,E.jsx)(Me,{n:1,label:`Class extraction`,s:t.classExtraction}),(0,E.jsx)(Me,{n:2,label:`Dependency extraction`,s:t.dependencyExtraction}),(0,E.jsx)(Me,{n:3,label:`Endpoint extraction`,s:t.endpointExtraction})]}),n&&(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsxs)(`div`,{className:`section-heading`,children:[`COMPLETENESS`,(0,E.jsxs)(`span`,{className:`sh-score`,style:{color:l},children:[a,`/100`]})]}),(0,E.jsx)(Ne,{dot:!0,label:`UC spec coverage`,val:`${(n.ucSpecCoverage*100).toFixed(1)}%`,pass:n.ucSpecCoverage>=.8}),(0,E.jsx)(Ne,{dot:!0,label:`Activity diagrams`,val:String(n.activityDiagrams),pass:n.activityDiagrams>0}),(0,E.jsx)(Ne,{dot:!0,label:`Sequence diagrams`,val:String(n.sequenceDiagrams),pass:n.sequenceDiagrams>0}),(0,E.jsx)(Ne,{dot:!0,label:`Use case diagrams`,val:String(n.usecaseDiagrams),pass:n.usecaseDiagrams>0}),(0,E.jsx)(Ne,{dot:!0,label:`Class diagram`,val:n.classDiagram?`Present`:`Missing`,pass:n.classDiagram}),(0,E.jsx)(Ne,{dot:!0,label:`Architecture diagram`,val:n.architectureDiagram?`Present`:`Missing`,pass:n.architectureDiagram}),(0,E.jsx)(Ne,{dot:!0,label:`Report chapters`,val:`${n.reportChapters}/5`,pass:n.reportChapters>=5})]})]}),r&&(0,E.jsx)(`div`,{className:`section-row`,style:{gridTemplateColumns:`1fr`,borderTop:`none`},children:(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsxs)(`div`,{className:`section-heading`,children:[`PROCESSING TIME`,(0,E.jsxs)(`span`,{className:`sh-meta`,children:[`Total: `,Ae(r.totalTimeMs)]})]}),(0,E.jsx)(Pe,{n:1,label:`Parse`,val:r.parseTimeMs,total:r.totalTimeMs}),(0,E.jsx)(Pe,{n:2,label:`Flow build`,val:r.flowBuildTimeMs,total:r.totalTimeMs}),(0,E.jsx)(Pe,{n:3,label:`Diagram render`,val:r.diagramTimeMs,total:r.totalTimeMs}),(0,E.jsx)(Pe,{n:4,label:`Report build`,val:r.reportTimeMs,total:r.totalTimeMs})]})})]})}function Le(e){let t=e.replace(/\\/g,`/`),n=t.lastIndexOf(`/archscribe-output/`);return t.startsWith(`diagrams/`)?`archscribe-output/${t}`:n<0?t.replace(/^\//,``):t.slice(n+1)}async function Re(e,t){let n=new Blob([encodeURIComponent(e)]).stream().pipeThrough(new CompressionStream(`deflate-raw`)),r=new Uint8Array(await new Response(n).arrayBuffer()),i=``;for(let e of r)i+=String.fromCharCode(e);return`${t===`viewer`?`https://viewer.diagrams.net/?lightbox=1&nav=1`:`https://app.diagrams.net/`}#R${btoa(i)}`}function ze({projectName:e,path:t}){let n=Le(t),[r,i]=(0,l.useState)(null),[a,o]=(0,l.useState)(``),[s,c]=(0,l.useState)(!1),u=async t=>{let r=t===`app`?window.open(``,`_blank`):null;r&&(r.opener=null),c(!0),o(``);try{let a=await Re(await se(e,n),t);t===`viewer`?i(a):r?r.location.replace(a):o(b(`dash.diagram.popupBlocked`))}catch(e){r?.close(),o(e.message)}finally{c(!1)}};return(0,E.jsxs)(`div`,{className:`diagram-actions`,children:[(0,E.jsxs)(`div`,{className:`diagram-actions-row`,children:[(0,E.jsx)(`button`,{className:`btn`,disabled:s,onClick:()=>u(`viewer`),children:b(`dash.diagram.view`)}),(0,E.jsx)(`button`,{className:`btn`,disabled:s,onClick:()=>u(`app`),children:b(`dash.diagram.editWeb`)}),(0,E.jsx)(`button`,{className:`btn`,onClick:async()=>{try{o(``),await le(e,n)}catch(e){o(e.message)}},children:b(`dash.diagram.openApp`)}),(0,E.jsx)(`a`,{className:`btn`,href:ce(e,n),download:!0,children:b(`dash.diagram.download`)})]}),a&&(0,E.jsx)(`p`,{role:`alert`,className:`error-banner`,children:a}),r&&(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`button`,{className:`btn`,onClick:()=>i(null),children:b(`dash.diagram.close`)}),(0,E.jsx)(`iframe`,{className:`diagram-frame`,title:b(`dash.diagram.frameTitle`,{name:n}),src:r,referrerPolicy:`no-referrer`})]}),(0,E.jsx)(`p`,{className:`sub`,children:b(`dash.diagram.note`)})]})}var A=e=>`uc:${e.endpoint}#${e.controllerName}.${e.methodName}`;function Be({steps:e}){return e.length?(0,E.jsx)(`div`,{className:`table-wrap`,children:(0,E.jsxs)(`table`,{children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`th`,{children:`#`}),(0,E.jsx)(`th`,{children:`Actor`}),(0,E.jsx)(`th`,{children:`System`})]})}),(0,E.jsx)(`tbody`,{children:e.map((e,t)=>(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`td`,{className:`mono`,children:e.step}),(0,E.jsx)(`td`,{children:e.actor}),(0,E.jsx)(`td`,{children:e.system})]},t))})]})}):(0,E.jsx)(`div`,{className:`sub`,children:`(no steps)`})}function Ve({reviewKey:e,rv:t,onSet:n,disabled:r=!1}){let i=t[e]?.status;return(0,E.jsxs)(`span`,{children:[(0,E.jsx)(`button`,{disabled:r,className:`stbtn${i===`pass`?` pass`:``}`,onClick:()=>n(e,`pass`),children:b(`dash.review.pass`)}),(0,E.jsx)(`button`,{disabled:r,className:`stbtn${i===`fix`?` fix`:``}`,onClick:()=>n(e,`fix`),children:b(`dash.review.fix`)}),(0,E.jsx)(`button`,{disabled:r,className:`stbtn${i===`skip`?` skip`:``}`,onClick:()=>n(e,`skip`),children:b(`dash.review.skip`)})]})}function He({report:e,projectName:t}){let[n,r]=(0,l.useState)({}),[i,a]=(0,l.useState)({}),[o,s]=(0,l.useState)(``),[c,u]=(0,l.useState)(!1),d=(0,l.useRef)({}),f=(0,l.useRef)(0),[p,m]=(0,l.useState)(``),[h,g]=(0,l.useState)(null);(0,l.useEffect)(()=>{let e=!1;f.current++,d.current={},r({}),a({}),s(``);try{u(!!localStorage.getItem(`archscribe:${t}:review`))}catch{u(!1)}return ee(t).then(t=>{e||(r(t.feedback),a(t.specs))}).catch(t=>{e||s(t.message)}),()=>{e=!0,f.current++}},[t,e]);let _=async(e,n)=>{let i=f.current;d.current[e]=n,r(t=>({...t,[e]:n}));try{for(let r=0;;r++)try{await te(t,e,n);break}catch(e){if(r<4&&/busy/i.test(e.message)){await new Promise(e=>setTimeout(e,150*(r+1)));continue}throw e}i===f.current&&d.current[e]===n&&(delete d.current[e],s(``))}catch(e){i===f.current&&s(b(`dash.review.saveError`,{error:e.message}))}},v=(e,t)=>{_(e,{...n[e],status:t})},y=(e,t)=>{_(e,{...n[e],notes:t})},x=e.usecases??[],S=x.filter(e=>!p||(e.id+` `+e.title).toLowerCase().includes(p.toLowerCase())),C=x.find(e=>A(e)===h)??S[0]??null;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h1`,{children:`Review`}),c&&(0,E.jsx)(`p`,{role:`status`,children:b(`dash.review.legacy`)}),o&&(0,E.jsxs)(`div`,{role:`alert`,children:[o,` `,(0,E.jsx)(`button`,{onClick:()=>{for(let[e,t]of Object.entries(d.current))_(e,t)},children:b(`dash.review.retry`)})]}),(0,E.jsxs)(`div`,{className:`sub`,children:[x.length,` use cases`]}),e.diagramPaths&&(0,E.jsx)(`div`,{className:`card`,children:[`usecase`,`class`,`architecture`].map(r=>{let i=e.diagramPaths?.[r];return(0,E.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:8},children:[(0,E.jsxs)(`div`,{children:[r.charAt(0).toUpperCase()+r.slice(1),` diagram`,i&&(0,E.jsx)(ze,{projectName:t,path:i})]}),(0,E.jsx)(Ve,{reviewKey:`diagram:${r}`,rv:n,onSet:v,disabled:!i})]},r)})}),(0,E.jsxs)(`div`,{className:`rv-wrap`,children:[(0,E.jsxs)(`div`,{className:`rv-list`,children:[(0,E.jsx)(`div`,{className:`rv-filters`,children:(0,E.jsx)(`input`,{placeholder:`Search…`,value:p,onChange:e=>m(e.target.value)})}),(0,E.jsx)(`div`,{className:`rv-items`,children:S.map(e=>{let t=n[A(e)]?.status;return(0,E.jsxs)(`div`,{className:`rv-item${A(e)===(C&&A(C))?` sel`:``}`,onClick:()=>g(A(e)),children:[(0,E.jsx)(`span`,{className:`dot${t===`pass`?` on`:``}`,style:t===`fix`?{borderColor:`var(--warn)`}:{}}),(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`div`,{className:`ttl`,children:[e.id,` `,e.title]}),(0,E.jsx)(`div`,{className:`sub2`,children:e.actor})]})]},A(e))})})]}),(0,E.jsx)(`div`,{className:`rv-detail`,children:C?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`h1`,{children:[C.id,` — `,C.title]}),(0,E.jsxs)(`div`,{className:`sub`,children:[C.actor,` · `,(0,E.jsx)(`span`,{className:`mono`,children:C.endpoint??``})]}),i[A(C)]?(0,E.jsx)(`pre`,{style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:i[A(C)]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`p`,{style:{marginTop:10},children:C.description??C.purpose??``}),(0,E.jsx)(`h3`,{children:`Preconditions`}),(0,E.jsx)(`ul`,{style:{paddingLeft:18},children:(C.preconditions??[]).map((e,t)=>(0,E.jsx)(`li`,{children:e},t))}),(0,E.jsx)(`h3`,{children:`Main flow`}),(0,E.jsx)(Be,{steps:C.mainSteps??[]}),(C.alternateFlows??[]).length>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`h3`,{children:[`Alternate flows (`,C.alternateFlows.length,`)`]}),C.alternateFlows.map(e=>(0,E.jsxs)(`div`,{style:{marginBottom:14},children:[(0,E.jsxs)(`div`,{style:{display:`flex`,alignItems:`baseline`,gap:8,marginBottom:6},children:[(0,E.jsx)(`span`,{className:`pill pill-warn`,children:e.code}),(0,E.jsx)(`span`,{style:{fontSize:13,fontWeight:600},children:e.title})]}),(0,E.jsx)(Be,{steps:e.steps})]},e.code))]}),(C.exceptionFlows??[]).length>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`h3`,{children:[`Exception flows (`,C.exceptionFlows.length,`)`]}),C.exceptionFlows.map(e=>(0,E.jsxs)(`div`,{style:{marginBottom:14},children:[(0,E.jsxs)(`div`,{style:{display:`flex`,alignItems:`baseline`,gap:8,marginBottom:4},children:[(0,E.jsx)(`span`,{className:`pill pill-bad`,children:e.code}),(0,E.jsx)(`span`,{style:{fontSize:13,fontWeight:600},children:e.title})]}),e.trigger&&(0,E.jsxs)(`div`,{style:{fontSize:12,color:`var(--dim)`,marginBottom:6},children:[`Trigger: `,e.trigger]}),(0,E.jsx)(Be,{steps:e.steps})]},e.code))]}),((C.successPostconditions??[]).length>0||(C.failurePostconditions??[]).length>0)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h3`,{children:`Postconditions`}),(C.successPostconditions??[]).length>0&&(0,E.jsxs)(`div`,{style:{marginBottom:8},children:[(0,E.jsx)(`div`,{style:{fontSize:11,fontFamily:`var(--mono)`,letterSpacing:`0.1em`,color:`var(--pass)`,marginBottom:4},children:`SUCCESS`}),(0,E.jsx)(`ul`,{style:{paddingLeft:18},children:C.successPostconditions.map((e,t)=>(0,E.jsx)(`li`,{children:e},t))})]}),(C.failurePostconditions??[]).length>0&&(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`div`,{style:{fontSize:11,fontFamily:`var(--mono)`,letterSpacing:`0.1em`,color:`var(--accent)`,marginBottom:4},children:`FAILURE`}),(0,E.jsx)(`ul`,{style:{paddingLeft:18},children:C.failurePostconditions.map((e,t)=>(0,E.jsx)(`li`,{children:e},t))})]})]})]}),(0,E.jsx)(`h3`,{children:`Diagram review`}),(0,E.jsxs)(`div`,{style:{marginBottom:8},children:[`Activity `,(0,E.jsx)(Ve,{reviewKey:`activity:${A(C)}`,rv:n,onSet:v,disabled:!C.activityDiagramPath}),C.activityDiagramPath&&(0,E.jsx)(ze,{projectName:t,path:C.activityDiagramPath})]}),(0,E.jsxs)(`div`,{style:{marginBottom:8},children:[`Sequence `,(0,E.jsx)(Ve,{reviewKey:`sequence:${A(C)}`,rv:n,onSet:v,disabled:!C.sequenceDiagramPath}),C.sequenceDiagramPath&&(0,E.jsx)(ze,{projectName:t,path:C.sequenceDiagramPath})]}),(0,E.jsx)(`h3`,{children:`UC spec review`}),(0,E.jsx)(Ve,{reviewKey:A(C),rv:n,onSet:v}),(0,E.jsx)(`h3`,{children:`Notes`}),(0,E.jsx)(`textarea`,{"aria-label":`Notes`,value:n[A(C)]?.notes??``,onChange:e=>r(t=>({...t,[A(C)]:{...t[A(C)],notes:e.target.value}})),onBlur:e=>y(A(C),e.target.value)},`${t}:${A(C)}:${i[A(C)]??``}`)]}):(0,E.jsx)(`div`,{className:`sub`,children:`No use case selected`})})]})]})}function Ue(e,t){return`archscribe:${e}:compare:${t}`}function We(e,t,n=``){try{return localStorage.getItem(Ue(e,t))??n}catch{return n}}function Ge(e,t,n){try{localStorage.setItem(Ue(e,t),n)}catch{}}function Ke(e){return`${(e*100).toFixed(1)}%`}function qe(e){return`P:${Ke(e.precision)} R:${Ke(e.recall)} F1:${Ke(e.f1)}`}function Je({report:e,projectName:t}){let{accuracy:n}=e,r=[{label:`Class F1`,llm:We(t,`llm-class`),rag:We(t,`rag-class`),archscribe:qe(n.classExtraction)},{label:`Dependency F1`,llm:We(t,`llm-dep`),rag:We(t,`rag-dep`),archscribe:qe(n.dependencyExtraction)},{label:`Endpoint F1`,llm:We(t,`llm-ep`),rag:We(t,`rag-ep`),archscribe:qe(n.endpointExtraction)}],[i,a]=(0,l.useState)(r),o=(e,n,r)=>{Ge(t,n===`llm`?[`llm-class`,`llm-dep`,`llm-ep`][e]:[`rag-class`,`rag-dep`,`rag-ep`][e],r),a(t=>t.map((t,i)=>i===e?{...t,[n]:r}:t))};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h1`,{children:`Compare`}),(0,E.jsx)(`div`,{className:`sub`,children:`Approach A (LLM-only) vs B (RAG) vs C (archscribe)`}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`div`,{className:`table-wrap`,children:(0,E.jsxs)(`table`,{children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`th`,{children:`Metric`}),(0,E.jsxs)(`th`,{children:[`A — LLM-only `,(0,E.jsx)(`span`,{style:{color:`var(--text3)`,fontWeight:400},children:`(manual)`})]}),(0,E.jsxs)(`th`,{children:[`B — RAG `,(0,E.jsx)(`span`,{style:{color:`var(--text3)`,fontWeight:400},children:`(manual)`})]}),(0,E.jsxs)(`th`,{children:[`C — archscribe `,(0,E.jsx)(`span`,{style:{color:`var(--ok)`,fontWeight:400},children:`(auto)`})]})]})}),(0,E.jsx)(`tbody`,{children:i.map((e,t)=>(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`td`,{children:e.label}),(0,E.jsx)(`td`,{children:(0,E.jsx)(`input`,{style:{border:`none`,background:`transparent`,width:`100%`},value:e.llm,placeholder:`Enter manually…`,onChange:e=>o(t,`llm`,e.target.value)})}),(0,E.jsx)(`td`,{children:(0,E.jsx)(`input`,{style:{border:`none`,background:`transparent`,width:`100%`},value:e.rag,placeholder:`Enter manually…`,onChange:e=>o(t,`rag`,e.target.value)})}),(0,E.jsx)(`td`,{style:{fontWeight:600},children:e.archscribe})]},e.label))})]})}),(0,E.jsx)(`div`,{style:{marginTop:12,fontSize:12,color:`var(--text2)`},children:`LLM-only and RAG columns are editable and saved in localStorage.`})]})]})}var Ye=[{key:`clarity`,label:`Diagram clarity`,description:`How clear and readable are the generated diagrams?`},{key:`accuracy`,label:`UC spec accuracy`,description:`How accurately do the use case specs reflect the source code behavior?`},{key:`completeness`,label:`Documentation completeness`,description:`How complete is the generated documentation (all 5 chapters, all diagrams)?`},{key:`usefulness`,label:`Overall usefulness`,description:`How useful is the output for a software engineering course submission?`}];function Xe(e){return`archscribe:${e}:human-eval`}function Ze(e){try{return JSON.parse(localStorage.getItem(Xe(e))??`{}`)}catch{return{}}}function Qe(e,t){try{localStorage.setItem(Xe(e),JSON.stringify(t))}catch{}}function $e({value:e,onChange:t}){return(0,E.jsx)(`div`,{style:{display:`flex`,gap:6},children:[1,2,3,4,5].map(n=>(0,E.jsx)(`button`,{onClick:()=>t(n),style:{width:36,height:36,border:`2px solid ${e===n?`var(--accent)`:`var(--border)`}`,borderRadius:8,background:e===n?`var(--accent)`:`var(--card)`,color:e===n?`#fff`:`var(--text)`,fontWeight:e===n?700:400,cursor:`pointer`,fontSize:14},children:n},n))})}function et({projectName:e}){let[t,n]=(0,l.useState)(Ze(e)),r=(r,i)=>{let a={...t,[r]:i};n(a),Qe(e,a)},i=Object.values(t).length>0?(Object.values(t).reduce((e,t)=>e+(t??0),0)/Object.values(t).length).toFixed(2):null;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h1`,{children:`Human Evaluation`}),(0,E.jsx)(`div`,{className:`sub`,children:`Likert 1–5 ratings — saved locally, exportable as JSON`}),Ye.map(e=>(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{children:e.label}),(0,E.jsx)(`div`,{className:`sub`,style:{marginBottom:10},children:e.description}),(0,E.jsx)($e,{value:t[e.key],onChange:t=>r(e.key,t)})]},e.key)),i&&(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`div`,{className:`kpi-label`,children:`Average rating`}),(0,E.jsxs)(`div`,{className:`kpi-value`,children:[i,` / 5`]})]}),(0,E.jsx)(`button`,{className:`btn btn-primary`,onClick:()=>{let n=new Blob([JSON.stringify({project:e,ratings:t,exportedAt:new Date().toISOString()},null,2)],{type:`application/json`}),r=document.createElement(`a`);r.href=URL.createObjectURL(n),r.download=`human-eval-${e}.json`,r.click()},children:`Export review JSON`})]})}function tt(e){return e==null?`—`:`${(e*100).toFixed(1)}%`}function nt(e){return e==null?`var(--dim)`:e>=.8?`var(--pass)`:e>=.6?`var(--revise)`:`var(--accent)`}function rt({cur:e,prev:t}){if(e==null||t==null)return(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`});let n=(e-t)*100;return Math.abs(n)<.1?(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`}):(0,E.jsxs)(`span`,{style:{color:n>0?`var(--pass)`:`var(--accent)`,fontFamily:`var(--mono)`,fontSize:11},children:[n>0?`+`:``,n.toFixed(1),`pp`]})}function it({license:e}){if(!e)return(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`});let t=[e.licensee,e.email].filter(Boolean).join(` · `);return(0,E.jsxs)(`span`,{title:e.licenseId?`license ${e.licenseId} (${e.code})`:e.code,children:[(0,E.jsx)(`span`,{style:{fontFamily:`var(--mono)`,fontSize:11,fontWeight:600,color:e.tier===`pro`?`var(--pass)`:`var(--dim)`},children:e.tier.toUpperCase()}),t&&(0,E.jsx)(`span`,{style:{marginLeft:6},children:t}),e.licenseId&&(0,E.jsxs)(`span`,{style:{marginLeft:6,fontFamily:`var(--mono)`,fontSize:11,color:`var(--dim)`},children:[`#`,e.licenseId.slice(0,8)]})]})}function at({cur:e,prev:t}){if(!t)return(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`});let n=e.ucIds.filter(e=>!t.ucIds.includes(e)),r=t.ucIds.filter(t=>!e.ucIds.includes(t));return!n.length&&!r.length?(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`}):(0,E.jsxs)(E.Fragment,{children:[n.length>0&&(0,E.jsxs)(`span`,{style:{color:`var(--pass)`,marginRight:4},children:[`+`,n.length]}),r.length>0&&(0,E.jsxs)(`span`,{style:{color:`var(--accent)`},children:[`-`,r.length]})]})}function ot({projectName:e}){let[t,n]=(0,l.useState)([]),[r,i]=(0,l.useState)(!0),[a,o]=(0,l.useState)(`runs`),[s,c]=(0,l.useState)([]),[u,d]=(0,l.useState)(`#2`),[f,p]=(0,l.useState)(`#1`),[m,h]=(0,l.useState)([]),[g,_]=(0,l.useState)(null),[v,y]=(0,l.useState)(``);(0,l.useEffect)(()=>{i(!0),y(``),c([]),_(null),h([]),me(e).then(n).catch(e=>y(e.message)).finally(()=>i(!1)),ne(e).then(c).catch(e=>y(e.message)),re(e).then(_).catch(e=>y(e.message))},[e]),(0,l.useEffect)(()=>{a!==`versions`||s.length<2||(h([]),w(e,u,f).then(h).catch(e=>y(e.message)))},[e,a,s,u,f]);let S=async t=>{try{y(``);let n=(await w(e,`#1`,t.oid)).map(e=>`• ${e.path} (${e.change})`).join(`
|
|
21
|
+
Full detail lives in ir.json`,"landing.term.step3":`Use cases · specifications · business rules → DOCX`,"landing.term.step4":`Output → archscribe-output/`,"language.en":`English`,"language.switchLabel":`Language`,"language.vi":`Tiếng Việt`,"report.table.actors":`List of actors`,"report.table.specification":`Use case specification {id} – {title}`,"report.table.usecases":`List of use cases`,"report.toc.heading":`TABLE OF CONTENTS`,"survey.key.activity-diagram":`Activity diagram`,"survey.key.architecture-diagram":`Architecture diagram`,"survey.key.class-diagram":`Class diagram`,"survey.key.class-relations":`Class relations`,"survey.key.ease-of-use":`Ease of use`,"survey.key.editability":`Ease of editing`,"survey.key.identify-uc":`Identifying use cases`,"survey.key.readability":`Readability`,"survey.key.sequence-diagram":`Sequence diagram`,"survey.key.source-fidelity":`Fidelity to the source code`,"survey.key.speed":`Speed`,"survey.key.stability":`Stability`,"survey.key.uc-spec":`Use case specification`,"survey.key.updates":`Staying current as the code changes`,"survey.key.usecase-diagram":`Use case diagram`,"survey.opt.1":`1`,"survey.opt.2-3":`2–3`,"survey.opt.activity-diagram":`Activity diagram`,"survey.opt.ai-agent":`AI agent`,"survey.opt.always-full":`always fully updated`,"survey.opt.analysis-report":`Analysis report`,"survey.opt.architecture-diagram":`Architecture diagram`,"survey.opt.business-branches":`Business branches`,"survey.opt.class-diagram":`Class diagram`,"survey.opt.class-relations":`Class relations`,"survey.opt.classes":`Class`,"survey.opt.cli":`CLI`,"survey.opt.component-flows":`Component flows`,"survey.opt.docx-report":`DOCX report`,"survey.opt.entity-relations":`Entity relations`,"survey.opt.fields":`Field`,"survey.opt.frequently":`frequently`,"survey.opt.gt3":`more than 3`,"survey.opt.gui":`GUI`,"survey.opt.hallucination":`it invents facts (hallucination)`,"survey.opt.ide-plugin":`IDE plugin`,"survey.opt.inconsistency":`inconsistent output`,"survey.opt.mandatory":`required`,"survey.opt.manual-context":`I have to supply the context myself`,"survey.opt.markdown-report":`Markdown report`,"survey.opt.methods":`Method`,"survey.opt.never":`never`,"survey.opt.never-encountered":`never encountered`,"survey.opt.no-use":`do not use it`,"survey.opt.none":`no problems`,"survey.opt.occasionally":`occasionally`,"survey.opt.often":`often`,"survey.opt.omitted-components":`it misses components`,"survey.opt.only-on-request":`only updated when asked`,"survey.opt.optional":`not required`,"survey.opt.other":`Other`,"survey.opt.partial-edit":`edit part of it`,"survey.opt.project-too-large":`the project is too large`,"survey.opt.quick-check":`quick check, then use`,"survey.opt.rarely":`rarely`,"survey.opt.reference-only":`reference only`,"survey.opt.repeated-prompting":`I have to prompt repeatedly`,"survey.opt.rest-endpoints":`REST endpoint`,"survey.opt.roles-permissions":`Roles and permissions`,"survey.opt.sequence-diagram":`Sequence diagram`,"survey.opt.sometimes":`sometimes`,"survey.opt.srs":`SRS`,"survey.opt.tried":`have tried`,"survey.opt.use-case-diagram":`Use case diagram`,"survey.opt.use-case-spec":`Use case specification`,"survey.opt.use-cases":`Use case`,"survey.opt.use-directly":`use as-is`,"survey.opt.usually-minor-gaps":`usually updated, sometimes incomplete`,"survey.opt.usually-not":`usually not updated`,"survey.opt.verification":`hard to verify`,"survey.opt.very-often":`very often`,"survey.q.KS-01":`How many software projects have you taken part in?`,"survey.q.KS-02":`How many Spring Boot projects have you worked on?`,"survey.q.KS-03":`Does your project require written documentation?`,"survey.q.KS-04":`Which documentation outputs have you used?`,"survey.q.KS-05":`How often do you have to re-read the code to understand a project?`,"survey.q.KS-06":`Which details do you usually have to pull out of the code?`,"survey.q.KS-07":`How difficult is each documentation task?`,"survey.q.KS-08":`How often does documentation go out of date (no longer matching the code)?`,"survey.q.KS-09":`When documentation is out of date, what do you usually do?`,"survey.q.KS-10":`How much do you use AI as support?`,"survey.q.KS-11":`Which problems have you hit when using AI?`,"survey.q.KS-12":`What would you want archscribe to produce?`,"survey.q.KS-13":`How important is each criterion?`,"survey.q.KS-14":`Which channel would you use archscribe through?`,"survey.q.KS-15":`How do you handle the documentation that was produced?`,"trial.approved":`Your Pro trial has been approved!`,"trial.consentContact":`I agree to be contacted for follow-up (optional)`,"trial.consentRequired":`(required)`,"trial.consentResearch":`I agree that my answers may be used for the thesis research`,"trial.error.fixFields":`Some questions are unanswered or required fields are missing. They are marked in red.`,"trial.error.network":`Could not reach the server.`,"trial.error.submit":`Could not submit the request.`,"trial.field.projectSize":`Spring Boot project size`,"trial.field.projectSizeHint":`e.g. 10-50 KLOC`,"trial.field.purpose":`Intended use`,"trial.field.purposeHint":`project / coursework / work`,"trial.field.role":`Role`,"trial.field.school":`School (optional)`,"trial.intro":`This survey supports the research for a graduation thesis. Your answers are stored with your email/name and used for analysis in the thesis; with your permission we may contact you for follow-up. Taking part is voluntary.`,"trial.maxChoices":`(choose up to {max})`,"trial.pageTitle":`Try Pro`,"trial.pending":`Your request is waiting for admin approval.`,"trial.pickAtLeast":`choose at least {min}`,"trial.reapply":`Submit again`,"trial.rejected":`Your request was rejected.`,"trial.required":`Required`,"trial.scaleLegend":`Scale 1–5: 1 = lowest, 5 = highest`,"trial.signinRequired":`You need to sign in to submit a trial request.`,"trial.subheading":`Survey & Pro trial sign-up`,"trial.submit":`Submit Pro trial request`,"trial.validUntil":`Valid until`}},_=`vi`;function v(e){_=e}function y(e=_){return e===`vi`?`vi-VN`:`en-GB`}function b(e,t){let n=g[_][e]??g.vi[e]??e.split(`.`).pop()??e;return t?n.replace(/\{(\w+)\}/g,(e,n)=>t[n]===void 0?e:String(t[n])):n}function x(e){return new Intl.DateTimeFormat(y(),{dateStyle:`short`,timeStyle:`short`,timeZone:`Asia/Ho_Chi_Minh`}).format(e instanceof Date?e:new Date(e))}var S=e=>`/api/projects/${encodeURIComponent(e)}`,ee=e=>C(e,`/review`),te=(e,t,n)=>C(e,`/review`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({key:t,status:n.status??null,notes:n.notes??``})});async function C(e,t,n){let r=await fetch(`${S(e)}${t}`,{...n,headers:{...m(),...n?.headers}});return de(r),T(r)}var ne=e=>C(e,`/versions`),w=(e,t,n)=>C(e,`/versions/diff?a=${encodeURIComponent(t)}&b=${encodeURIComponent(n)}`),re=e=>C(e,`/approvals`),ie=(e,t)=>C(e,`/versions/restore`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({ref:t})});async function ae(e){let t=await fetch(`${S(e)}/outputs`,{headers:m()});return de(t),T(t)}var oe=(e,t)=>`${S(e)}/outputs/file?path=${encodeURIComponent(t)}`;async function se(e,t){let n=await fetch(oe(e,t),{headers:m()});if(de(n),!n.ok)throw Error(b(`dash.api.readFailed`,{file:t,status:n.status}));return n.text()}var ce=(e,t)=>h(oe(e,t));async function le(e,t){let n=await fetch(`${S(e)}/outputs/open`,{method:`POST`,headers:{...m(),"Content-Type":`application/json`},body:JSON.stringify({path:t})});de(n),await T(n)}async function T(e){if(!e.ok){let t=e.statusText;try{let n=await e.json();t=n.error??n.message??t}catch{}throw Error(t)}return e.json()}var ue=class extends Error{constructor(){super(`unauthorized`),this.name=`UnauthorizedError`}};function de(e){if(e.status===401)throw new ue}async function fe(){let e=await fetch(`/api/projects`,{headers:m()});if(de(e),!e.ok)throw Error(`Failed to load projects`);return e.json()}async function pe(e){let t=await fetch(`/api/projects/${encodeURIComponent(e)}/report`,{headers:m()});if(de(t),!t.ok)throw Error(await t.text());return t.json()}async function me(e){let t=await fetch(`/api/projects/${encodeURIComponent(e)}/runs`,{headers:m()});return de(t),t.ok?t.json():[]}function he(e,t,n,r){let i=new EventSource(h(`/api/events`));return i.addEventListener(`report-updated`,t=>{try{e(JSON.parse(t.data))}catch{}}),t&&i.addEventListener(`run-progress`,e=>{try{t(JSON.parse(e.data))}catch{}}),n&&i.addEventListener(`run-complete`,e=>{try{n(JSON.parse(e.data))}catch{}}),r&&i.addEventListener(`run-error`,e=>{try{r(JSON.parse(e.data))}catch{}}),()=>i.close()}async function ge(){let e=await fetch(`/api/version`,{headers:m()});return de(e),e.ok?(await e.json()).version:``}async function _e(){let e=await fetch(`/api/license/status`,{headers:m()});return de(e),T(e)}async function ve(e){let t=await fetch(`/api/login`,{method:`POST`,headers:{"Content-Type":`application/json`,...m()},body:JSON.stringify({licenseKey:e})});de(t);try{return await t.json()}catch{throw Error(t.statusText||`Login request failed`)}}async function ye(e){let t=await fetch(`/api/projects/${encodeURIComponent(e)}/freshness`,{headers:m()});return de(t),T(t)}async function be(e){let t=await fetch(`/api/run`,{method:`POST`,headers:{"Content-Type":`application/json`,...m()},body:JSON.stringify(e)});return de(t),T(t)}function xe(e,t){return h(`/api/files?${new URLSearchParams({dir:e,path:t}).toString()}`)}var Se=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),E=e(((e,t)=>{t.exports=Se()}))(),Ce=[{id:`run`,label:`Run`,num:`00`},{id:`dashboard`,label:`Dashboard`,num:`01`},{id:`review`,label:`Review`,num:`02`},{id:`compare`,label:`Compare`,num:`03`},{id:`human-eval`,label:`Human Eval`,num:`04`},{id:`history`,label:`History`,num:`05`},{id:`outputs`,label:`Outputs`,num:`06`,key:`dash.sidebar.outputs`}];function D({screen:e,setScreen:t,projects:n,activeProject:r,setActiveProject:i,menuOpen:a,setMenuOpen:o,report:s,locale:c,setLocale:u}){let[d,f]=(0,l.useState)(!1),[p,m]=(0,l.useState)(``);(0,l.useEffect)(()=>{ge().then(m).catch(()=>{})},[]);let h=s?.runAt?x(s.runAt):n.find(e=>e.name===r)?.lastRun?x(n.find(e=>e.name===r).lastRun):null;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`button`,{className:`hamburger`,onClick:()=>o(!a),"aria-label":`Menu`,children:a?`✕`:`☰`}),(0,E.jsxs)(`nav`,{className:`sidebar${a?` open`:``}`,children:[(0,E.jsxs)(`div`,{className:`logo`,children:[(0,E.jsx)(`img`,{className:`logo-img`,src:`/brand/logo-full.png`,alt:`archscribe`}),p&&(0,E.jsxs)(`span`,{className:`logo-ver`,children:[`V`,p]})]}),(0,E.jsxs)(`div`,{className:`sidebar-proj-section`,children:[(0,E.jsx)(`div`,{className:`sidebar-section-label`,children:b(`dash.sidebar.project`)}),(0,E.jsxs)(`div`,{style:{position:`relative`},children:[(0,E.jsxs)(`button`,{className:`project-select-btn`,onClick:()=>f(!d),children:[(0,E.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:r||`Select project`}),(0,E.jsx)(`span`,{className:`ps-arrow`,children:d?`▲`:`▼`})]}),d&&n.length>0&&(0,E.jsx)(`div`,{className:`project-dropdown`,children:n.map(e=>(0,E.jsxs)(`div`,{className:`project-dropdown-item${e.name===r?` active`:``}`,onClick:()=>{i(e.name),f(!1)},children:[e.name,e.hasReport?``:` ·`]},e.name))})]})]}),(0,E.jsxs)(`div`,{className:`sidebar-nav-section`,children:[(0,E.jsx)(`div`,{className:`sidebar-section-label`,children:`TRANG / SECTIONS`}),Ce.map(n=>(0,E.jsxs)(`div`,{className:`nav-item${e===n.id?` active`:``}`,onClick:()=>{t(n.id),o(!1)},children:[(0,E.jsx)(`span`,{className:`nav-num`,children:n.num}),n.key?b(n.key):n.label]},n.id))]}),(0,E.jsxs)(`div`,{className:`sidebar-footer`,children:[(0,E.jsx)(`div`,{className:`lang-switch`,role:`group`,"aria-label":b(`dash.lang.label`),style:{display:`flex`,gap:6,marginBottom:8},children:[`vi`,`en`].map(e=>(0,E.jsx)(`button`,{type:`button`,"data-testid":`lang-${e}`,className:`lang-btn${c===e?` active`:``}`,"aria-pressed":c===e,lang:e===`vi`?`vi-VN`:`en-GB`,onClick:()=>u(e),disabled:c===e,style:{padding:`2px 8px`,fontSize:11,borderRadius:4,cursor:c===e?`default`:`pointer`,border:`1px solid var(--border)`,background:c===e?`var(--accent)`:`transparent`,color:c===e?`#fff`:`inherit`,fontWeight:c===e?600:400},children:e===`vi`?`VI`:`EN`},e))}),r&&(0,E.jsx)(`div`,{className:`proj`,children:r}),h&&(0,E.jsx)(`div`,{style:{fontSize:11,marginBottom:4},children:h}),(0,E.jsx)(`div`,{children:`archscribe dashboard`})]})]})]})}function O({onClose:e,onSuccess:t}){let[n,r]=(0,l.useState)(``),[i,a]=(0,l.useState)(!1),[o,s]=(0,l.useState)(null),[c,u]=(0,l.useState)(!1),d=async()=>{let e=n.trim();if(e&&!i){a(!0),s(null);try{let n=await ve(e);n.kind===`ok`?(u(!0),s(n.line),setTimeout(t,900)):s(n.message)}catch(e){s(e.message)}finally{a(!1)}}};return(0,E.jsx)(`div`,{className:`modal-backdrop`,onClick:e,children:(0,E.jsxs)(`div`,{className:`modal`,onClick:e=>e.stopPropagation(),children:[(0,E.jsx)(`h2`,{children:`Activate license`}),(0,E.jsxs)(`p`,{className:`sub`,children:[`Same flow as `,(0,E.jsx)(`code`,{className:`mono`,children:`archscribe login`}),` — the key is validated against the license server and saved for the CLI too.`]}),(0,E.jsx)(`input`,{className:`run-path-input`,placeholder:`ARCH-XXXX-XXXX-XXXX`,value:n,onChange:e=>r(e.target.value),disabled:i||c,autoFocus:!0,onKeyDown:e=>{e.key===`Enter`&&d()}}),o&&(0,E.jsx)(`div`,{className:c?`pill pill-ok modal-message`:`error-banner modal-message`,children:o}),(0,E.jsxs)(`div`,{className:`modal-actions`,children:[(0,E.jsx)(`button`,{className:`btn`,onClick:e,disabled:i,children:`Cancel`}),(0,E.jsx)(`button`,{className:`btn btn-primary`,onClick:d,disabled:i||c||!n.trim(),children:i?`Checking…`:`Activate`})]})]})})}var we=[`scan`,`diagram`,`report`],Te={scan:`Scan`,diagram:`Diagram`,report:`Report`},Ee={scan:{status:`pending`},diagram:{status:`pending`},report:{status:`pending`}};function De(){let[e,t]=(0,l.useState)(``),[n,r]=(0,l.useState)(!1),[i,a]=(0,l.useState)(Ee),[o,s]=(0,l.useState)(null),[c,u]=(0,l.useState)(null),[d,f]=(0,l.useState)(null),[p,m]=(0,l.useState)(!1),h=(0,l.useCallback)(()=>{_e().then(f).catch(()=>{})},[]);(0,l.useEffect)(()=>{h()},[h]),(0,l.useEffect)(()=>he(()=>{},({step:e,status:t,detail:n})=>{a(r=>({...r,[e]:{status:t,detail:n??r[e]?.detail}}))}),[]);let g=async()=>{let t=e.trim();if(t&&!n){r(!0),u(null),s(null),a(Ee);try{let e=await be({projectPath:t});s(e),h()}catch(e){u(e.message)}finally{r(!1)}}};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`screen-header`,children:[(0,E.jsx)(`span`,{className:`screen-label`,children:`00 / RUN`}),(0,E.jsx)(`h1`,{className:`screen-title`,children:`Run analysis`})]}),d&&(0,E.jsxs)(`div`,{className:`license-banner ${d.tier===`pro`?`pill-ok`:`pill-warn`}`,children:[(0,E.jsx)(`span`,{children:d.line}),d.tier===`free`&&(0,E.jsx)(`button`,{className:`btn`,onClick:()=>m(!0),children:`Login`})]}),(0,E.jsxs)(`div`,{className:`run-input-row`,children:[(0,E.jsx)(`input`,{className:`run-path-input`,placeholder:`Absolute path to a Spring Boot project, e.g. D:/projects/MyApp`,value:e,onChange:e=>t(e.target.value),disabled:n,onKeyDown:e=>{e.key===`Enter`&&g()}}),(0,E.jsx)(`button`,{className:`btn btn-primary`,onClick:g,disabled:n||!e.trim(),children:n?`Running…`:`Run analysis`})]}),(n||o)&&(0,E.jsx)(`div`,{className:`run-steps`,children:we.map(e=>{let t=i[e];return(0,E.jsxs)(`div`,{className:`run-step`,children:[(0,E.jsx)(`span`,{className:`dot ${t.status===`pending`?``:`on`}`}),(0,E.jsx)(`span`,{className:`run-step-label`,children:Te[e]}),t.status===`start`&&(0,E.jsx)(`span`,{className:`run-step-spinner`,children:`running…`}),t.detail&&(0,E.jsx)(`span`,{className:`run-step-detail`,children:t.detail})]},e)})}),c&&(0,E.jsx)(`div`,{className:`error-banner`,children:c}),o&&(0,E.jsx)(Oe,{summary:o}),p&&(0,E.jsx)(O,{onClose:()=>m(!1),onSuccess:()=>{m(!1),h()}})]})}function Oe({summary:e}){let{report:t,components:n,license:r,scan:i,outputDir:a}=e,o=r.tier===`free`&&t.usecase_selected_count<t.usecase_count?`${t.usecase_selected_count}/${t.usecase_count} UC (Free)`:`${t.usecase_selected_count} UC`,s=!!t.docx_path;return(0,E.jsxs)(`div`,{className:`run-result`,children:[(0,E.jsxs)(`div`,{className:`section-row`,style:{gridTemplateColumns:`1fr 1fr`,borderTop:`none`},children:[(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsx)(`div`,{className:`section-heading`,children:`SCAN`}),(0,E.jsx)(k,{label:`Classes`,value:String(i.classCount),on:!0}),(0,E.jsx)(k,{label:`Components`,value:String(n.total),on:!0})]}),(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsx)(`div`,{className:`section-heading`,children:`REPORT`}),(0,E.jsx)(k,{label:`Use cases`,value:o,on:!0}),(0,E.jsx)(k,{label:`DOCX`,value:s?(0,E.jsx)(`a`,{className:`btn`,href:xe(a,t.docx_path),children:`Download`}):`Skipped — cần Pro`,on:s}),(0,E.jsx)(k,{label:`Markdown`,value:(0,E.jsx)(`a`,{className:`btn`,href:xe(a,t.markdown_path),children:`Download`}),on:!0})]})]}),(0,E.jsx)(`div`,{className:`section-row`,style:{gridTemplateColumns:`1fr`,borderTop:`none`},children:(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsxs)(`div`,{className:`section-heading`,children:[`COMPONENTS`,(0,E.jsx)(`span`,{className:`sh-meta`,children:`grouped by stereotype`})]}),n.groups.length===0&&(0,E.jsx)(`p`,{className:`sub`,children:`No domain components found.`}),n.groups.map(e=>(0,E.jsxs)(`div`,{className:`component-group`,children:[(0,E.jsxs)(`div`,{className:`component-group-label`,children:[e.label,` `,(0,E.jsxs)(`span`,{className:`mono`,children:[`(`,e.names.length,`)`]})]}),(0,E.jsx)(`div`,{className:`component-group-names`,children:e.names.join(` · `)})]},e.label))]})})]})}function k({label:e,value:t,on:n}){return(0,E.jsxs)(`div`,{className:`comp-row`,children:[(0,E.jsx)(`span`,{className:`comp-dot`,style:{background:n?`var(--pass)`:`var(--skip)`,border:`none`}}),(0,E.jsx)(`span`,{className:`comp-label`,children:e}),(0,E.jsx)(`span`,{className:`comp-val`,children:t})]})}function ke(e){return`${(e*100).toFixed(1)}%`}function Ae(e){return e==null?`—`:e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}function je(e){return e>=.8?`var(--pass)`:e>=.5?`var(--revise)`:`var(--accent)`}function Me({n:e,label:t,s:n}){let r=je(n.f1);return(0,E.jsxs)(`div`,{className:`acc-row`,children:[(0,E.jsx)(`span`,{className:`acc-n`,children:String(e).padStart(2,`0`)}),(0,E.jsx)(`span`,{className:`acc-label`,children:t}),(0,E.jsx)(`div`,{className:`acc-bars`,children:[{k:`P`,v:n.precision},{k:`R`,v:n.recall},{k:`F1`,v:n.f1}].map(({k:e,v:t})=>(0,E.jsxs)(`div`,{className:`acc-bar-row`,children:[(0,E.jsx)(`span`,{className:`acc-bar-key`,children:e}),(0,E.jsx)(`span`,{className:`acc-bar-track`,children:(0,E.jsx)(`span`,{className:`acc-bar-fill`,style:{width:ke(t),background:r}})}),(0,E.jsx)(`span`,{style:{fontFamily:`var(--mono)`,fontSize:10,color:`var(--dim)`,width:36,textAlign:`right`},children:ke(t)})]},e))}),(0,E.jsx)(`span`,{className:`acc-f1`,style:{color:r},children:ke(n.f1)})]})}function Ne({dot:e,label:t,val:n,pass:r}){return(0,E.jsxs)(`div`,{className:`comp-row`,children:[(0,E.jsx)(`span`,{className:`comp-dot`,style:{background:r===void 0?`var(--hair)`:r?`var(--pass)`:`var(--accent)`,border:`none`}}),(0,E.jsx)(`span`,{className:`comp-label`,children:t}),(0,E.jsx)(`span`,{className:`comp-val`,style:{color:r===void 0?`var(--ink)`:r?`var(--pass)`:`var(--accent)`},children:n})]})}function Pe({n:e,label:t,val:n,total:r}){let i=r&&n?Math.min(n/r,1):0;return(0,E.jsxs)(`div`,{className:`timing-row`,children:[(0,E.jsx)(`span`,{className:`timing-n`,children:String(e).padStart(2,`0`)}),(0,E.jsx)(`span`,{className:`timing-label`,children:t}),(0,E.jsx)(`div`,{className:`timing-bar`,children:(0,E.jsx)(`div`,{className:`timing-bar-fill`,style:{width:ke(i)}})}),(0,E.jsx)(`span`,{className:`timing-val`,children:Ae(n)})]})}function Fe({label:e,value:t,unit:n,frac:r,dotColor:i}){return(0,E.jsxs)(`div`,{className:`kpi-cell`,children:[(0,E.jsxs)(`div`,{className:`kpi-label`,children:[(0,E.jsx)(`span`,{className:`kpi-dot`,style:{background:i}}),e]}),(0,E.jsxs)(`div`,{className:`kpi-value`,children:[t,n&&(0,E.jsxs)(`span`,{className:`kpi-unit`,children:[` `,n]})]}),(0,E.jsx)(`div`,{className:`kpi-bar`,children:(0,E.jsx)(`div`,{className:`kpi-bar-fill`,style:{width:ke(Math.min(r,1)),background:i}})})]})}function Ie({report:e}){let{accuracy:t,completeness:n,timing:r}=e,i=(t.classExtraction.f1+t.dependencyExtraction.f1+t.endpointExtraction.f1)/3,a=n?.overallScore??0,o=e.usecases?.length??0,s=r?.totalTimeMs??0,c=je(i),l=a>=80?`var(--pass)`:a>=50?`var(--revise)`:`var(--accent)`;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`div`,{className:`screen-header`,children:[(0,E.jsx)(`span`,{className:`screen-label`,children:`01 / DASHBOARD`}),(0,E.jsx)(`h1`,{className:`screen-title`,children:e.projectName})]}),(0,E.jsxs)(`div`,{className:`kpi-grid`,children:[(0,E.jsx)(Fe,{label:`AVG F1`,value:(i*100).toFixed(1),unit:`%`,frac:i,dotColor:c}),(0,E.jsx)(Fe,{label:`COMPLETENESS`,value:String(a),unit:`/100`,frac:a/100,dotColor:l}),(0,E.jsx)(Fe,{label:`USE CASES`,value:String(o),frac:Math.min(o/20,1),dotColor:`var(--ink)`}),(0,E.jsx)(Fe,{label:`TOTAL TIME`,value:s>=1e3?(s/1e3).toFixed(1):String(s),unit:s>=1e3?`s`:`ms`,frac:Math.min(s/3e4,1),dotColor:`var(--dim)`})]}),(0,E.jsxs)(`div`,{className:`section-row`,style:{gridTemplateColumns:`1fr 1fr`,borderTop:`none`},children:[(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsxs)(`div`,{className:`section-heading`,children:[`ACCURACY`,(0,E.jsx)(`span`,{className:`sh-meta`,children:`Precision · Recall · F1`})]}),(0,E.jsx)(Me,{n:1,label:`Class extraction`,s:t.classExtraction}),(0,E.jsx)(Me,{n:2,label:`Dependency extraction`,s:t.dependencyExtraction}),(0,E.jsx)(Me,{n:3,label:`Endpoint extraction`,s:t.endpointExtraction})]}),n&&(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsxs)(`div`,{className:`section-heading`,children:[`COMPLETENESS`,(0,E.jsxs)(`span`,{className:`sh-score`,style:{color:l},children:[a,`/100`]})]}),(0,E.jsx)(Ne,{dot:!0,label:`UC spec coverage`,val:`${(n.ucSpecCoverage*100).toFixed(1)}%`,pass:n.ucSpecCoverage>=.8}),(0,E.jsx)(Ne,{dot:!0,label:`Activity diagrams`,val:String(n.activityDiagrams),pass:n.activityDiagrams>0}),(0,E.jsx)(Ne,{dot:!0,label:`Sequence diagrams`,val:String(n.sequenceDiagrams),pass:n.sequenceDiagrams>0}),(0,E.jsx)(Ne,{dot:!0,label:`Use case diagrams`,val:String(n.usecaseDiagrams),pass:n.usecaseDiagrams>0}),(0,E.jsx)(Ne,{dot:!0,label:`Class diagram`,val:n.classDiagram?`Present`:`Missing`,pass:n.classDiagram}),(0,E.jsx)(Ne,{dot:!0,label:`Architecture diagram`,val:n.architectureDiagram?`Present`:`Missing`,pass:n.architectureDiagram}),(0,E.jsx)(Ne,{dot:!0,label:`Report chapters`,val:`${n.reportChapters}/5`,pass:n.reportChapters>=5})]})]}),r&&(0,E.jsx)(`div`,{className:`section-row`,style:{gridTemplateColumns:`1fr`,borderTop:`none`},children:(0,E.jsxs)(`div`,{className:`section-cell`,children:[(0,E.jsxs)(`div`,{className:`section-heading`,children:[`PROCESSING TIME`,(0,E.jsxs)(`span`,{className:`sh-meta`,children:[`Total: `,Ae(r.totalTimeMs)]})]}),(0,E.jsx)(Pe,{n:1,label:`Parse`,val:r.parseTimeMs,total:r.totalTimeMs}),(0,E.jsx)(Pe,{n:2,label:`Flow build`,val:r.flowBuildTimeMs,total:r.totalTimeMs}),(0,E.jsx)(Pe,{n:3,label:`Diagram render`,val:r.diagramTimeMs,total:r.totalTimeMs}),(0,E.jsx)(Pe,{n:4,label:`Report build`,val:r.reportTimeMs,total:r.totalTimeMs})]})})]})}function Le(e){let t=e.replace(/\\/g,`/`),n=t.lastIndexOf(`/archscribe-output/`);return t.startsWith(`diagrams/`)?`archscribe-output/${t}`:n<0?t.replace(/^\//,``):t.slice(n+1)}async function Re(e,t){let n=new Blob([encodeURIComponent(e)]).stream().pipeThrough(new CompressionStream(`deflate-raw`)),r=new Uint8Array(await new Response(n).arrayBuffer()),i=``;for(let e of r)i+=String.fromCharCode(e);return`${t===`viewer`?`https://viewer.diagrams.net/?lightbox=1&nav=1`:`https://app.diagrams.net/`}#R${btoa(i)}`}function ze({projectName:e,path:t}){let n=Le(t),[r,i]=(0,l.useState)(null),[a,o]=(0,l.useState)(``),[s,c]=(0,l.useState)(!1),u=async t=>{let r=t===`app`?window.open(``,`_blank`):null;r&&(r.opener=null),c(!0),o(``);try{let a=await Re(await se(e,n),t);t===`viewer`?i(a):r?r.location.replace(a):o(b(`dash.diagram.popupBlocked`))}catch(e){r?.close(),o(e.message)}finally{c(!1)}};return(0,E.jsxs)(`div`,{className:`diagram-actions`,children:[(0,E.jsxs)(`div`,{className:`diagram-actions-row`,children:[(0,E.jsx)(`button`,{className:`btn`,disabled:s,onClick:()=>u(`viewer`),children:b(`dash.diagram.view`)}),(0,E.jsx)(`button`,{className:`btn`,disabled:s,onClick:()=>u(`app`),children:b(`dash.diagram.editWeb`)}),(0,E.jsx)(`button`,{className:`btn`,onClick:async()=>{try{o(``),await le(e,n)}catch(e){o(e.message)}},children:b(`dash.diagram.openApp`)}),(0,E.jsx)(`a`,{className:`btn`,href:ce(e,n),download:!0,children:b(`dash.diagram.download`)})]}),a&&(0,E.jsx)(`p`,{role:`alert`,className:`error-banner`,children:a}),r&&(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`button`,{className:`btn`,onClick:()=>i(null),children:b(`dash.diagram.close`)}),(0,E.jsx)(`iframe`,{className:`diagram-frame`,title:b(`dash.diagram.frameTitle`,{name:n}),src:r,referrerPolicy:`no-referrer`})]}),(0,E.jsx)(`p`,{className:`sub`,children:b(`dash.diagram.note`)})]})}var A=e=>`uc:${e.endpoint}#${e.controllerName}.${e.methodName}`;function Be({steps:e}){return e.length?(0,E.jsx)(`div`,{className:`table-wrap`,children:(0,E.jsxs)(`table`,{children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`th`,{children:`#`}),(0,E.jsx)(`th`,{children:`Actor`}),(0,E.jsx)(`th`,{children:`System`})]})}),(0,E.jsx)(`tbody`,{children:e.map((e,t)=>(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`td`,{className:`mono`,children:e.step}),(0,E.jsx)(`td`,{children:e.actor}),(0,E.jsx)(`td`,{children:e.system})]},t))})]})}):(0,E.jsx)(`div`,{className:`sub`,children:`(no steps)`})}function Ve({reviewKey:e,rv:t,onSet:n,disabled:r=!1}){let i=t[e]?.status;return(0,E.jsxs)(`span`,{children:[(0,E.jsx)(`button`,{disabled:r,className:`stbtn${i===`pass`?` pass`:``}`,onClick:()=>n(e,`pass`),children:b(`dash.review.pass`)}),(0,E.jsx)(`button`,{disabled:r,className:`stbtn${i===`fix`?` fix`:``}`,onClick:()=>n(e,`fix`),children:b(`dash.review.fix`)}),(0,E.jsx)(`button`,{disabled:r,className:`stbtn${i===`skip`?` skip`:``}`,onClick:()=>n(e,`skip`),children:b(`dash.review.skip`)})]})}function He({report:e,projectName:t}){let[n,r]=(0,l.useState)({}),[i,a]=(0,l.useState)({}),[o,s]=(0,l.useState)(``),[c,u]=(0,l.useState)(!1),d=(0,l.useRef)({}),f=(0,l.useRef)(0),[p,m]=(0,l.useState)(``),[h,g]=(0,l.useState)(null);(0,l.useEffect)(()=>{let e=!1;f.current++,d.current={},r({}),a({}),s(``);try{u(!!localStorage.getItem(`archscribe:${t}:review`))}catch{u(!1)}return ee(t).then(t=>{e||(r(t.feedback),a(t.specs))}).catch(t=>{e||s(t.message)}),()=>{e=!0,f.current++}},[t,e]);let _=async(e,n)=>{let i=f.current;d.current[e]=n,r(t=>({...t,[e]:n}));try{for(let r=0;;r++)try{await te(t,e,n);break}catch(e){if(r<4&&/busy/i.test(e.message)){await new Promise(e=>setTimeout(e,150*(r+1)));continue}throw e}i===f.current&&d.current[e]===n&&(delete d.current[e],s(``))}catch(e){i===f.current&&s(b(`dash.review.saveError`,{error:e.message}))}},v=(e,t)=>{_(e,{...n[e],status:t})},y=(e,t)=>{_(e,{...n[e],notes:t})},x=e.usecases??[],S=x.filter(e=>!p||(e.id+` `+e.title).toLowerCase().includes(p.toLowerCase())),C=x.find(e=>A(e)===h)??S[0]??null;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h1`,{children:`Review`}),c&&(0,E.jsx)(`p`,{role:`status`,children:b(`dash.review.legacy`)}),o&&(0,E.jsxs)(`div`,{role:`alert`,children:[o,` `,(0,E.jsx)(`button`,{onClick:()=>{for(let[e,t]of Object.entries(d.current))_(e,t)},children:b(`dash.review.retry`)})]}),(0,E.jsxs)(`div`,{className:`sub`,children:[x.length,` use cases`]}),e.diagramPaths&&(0,E.jsx)(`div`,{className:`card`,children:[`usecase`,`class`,`architecture`].map(r=>{let i=e.diagramPaths?.[r];return(0,E.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:8},children:[(0,E.jsxs)(`div`,{children:[r.charAt(0).toUpperCase()+r.slice(1),` diagram`,i&&(0,E.jsx)(ze,{projectName:t,path:i})]}),(0,E.jsx)(Ve,{reviewKey:`diagram:${r}`,rv:n,onSet:v,disabled:!i})]},r)})}),(0,E.jsxs)(`div`,{className:`rv-wrap`,children:[(0,E.jsxs)(`div`,{className:`rv-list`,children:[(0,E.jsx)(`div`,{className:`rv-filters`,children:(0,E.jsx)(`input`,{placeholder:`Search…`,value:p,onChange:e=>m(e.target.value)})}),(0,E.jsx)(`div`,{className:`rv-items`,children:S.map(e=>{let t=n[A(e)]?.status;return(0,E.jsxs)(`div`,{className:`rv-item${A(e)===(C&&A(C))?` sel`:``}`,onClick:()=>g(A(e)),children:[(0,E.jsx)(`span`,{className:`dot${t===`pass`?` on`:``}`,style:t===`fix`?{borderColor:`var(--warn)`}:{}}),(0,E.jsxs)(`div`,{children:[(0,E.jsxs)(`div`,{className:`ttl`,children:[e.id,` `,e.title]}),(0,E.jsx)(`div`,{className:`sub2`,children:e.actor})]})]},A(e))})})]}),(0,E.jsx)(`div`,{className:`rv-detail`,children:C?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`h1`,{children:[C.id,` — `,C.title]}),(0,E.jsxs)(`div`,{className:`sub`,children:[C.actor,` · `,(0,E.jsx)(`span`,{className:`mono`,children:C.endpoint??``})]}),i[A(C)]?(0,E.jsx)(`pre`,{style:{whiteSpace:`pre-wrap`,overflowWrap:`anywhere`},children:i[A(C)]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`p`,{style:{marginTop:10},children:C.description??C.purpose??``}),(0,E.jsx)(`h3`,{children:`Preconditions`}),(0,E.jsx)(`ul`,{style:{paddingLeft:18},children:(C.preconditions??[]).map((e,t)=>(0,E.jsx)(`li`,{children:e},t))}),(0,E.jsx)(`h3`,{children:`Main flow`}),(0,E.jsx)(Be,{steps:C.mainSteps??[]}),(C.alternateFlows??[]).length>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`h3`,{children:[`Alternate flows (`,C.alternateFlows.length,`)`]}),C.alternateFlows.map(e=>(0,E.jsxs)(`div`,{style:{marginBottom:14},children:[(0,E.jsxs)(`div`,{style:{display:`flex`,alignItems:`baseline`,gap:8,marginBottom:6},children:[(0,E.jsx)(`span`,{className:`pill pill-warn`,children:e.code}),(0,E.jsx)(`span`,{style:{fontSize:13,fontWeight:600},children:e.title})]}),(0,E.jsx)(Be,{steps:e.steps})]},e.code))]}),(C.exceptionFlows??[]).length>0&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(`h3`,{children:[`Exception flows (`,C.exceptionFlows.length,`)`]}),C.exceptionFlows.map(e=>(0,E.jsxs)(`div`,{style:{marginBottom:14},children:[(0,E.jsxs)(`div`,{style:{display:`flex`,alignItems:`baseline`,gap:8,marginBottom:4},children:[(0,E.jsx)(`span`,{className:`pill pill-bad`,children:e.code}),(0,E.jsx)(`span`,{style:{fontSize:13,fontWeight:600},children:e.title})]}),e.trigger&&(0,E.jsxs)(`div`,{style:{fontSize:12,color:`var(--dim)`,marginBottom:6},children:[`Trigger: `,e.trigger]}),(0,E.jsx)(Be,{steps:e.steps})]},e.code))]}),((C.successPostconditions??[]).length>0||(C.failurePostconditions??[]).length>0)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h3`,{children:`Postconditions`}),(C.successPostconditions??[]).length>0&&(0,E.jsxs)(`div`,{style:{marginBottom:8},children:[(0,E.jsx)(`div`,{style:{fontSize:11,fontFamily:`var(--mono)`,letterSpacing:`0.1em`,color:`var(--pass)`,marginBottom:4},children:`SUCCESS`}),(0,E.jsx)(`ul`,{style:{paddingLeft:18},children:C.successPostconditions.map((e,t)=>(0,E.jsx)(`li`,{children:e},t))})]}),(C.failurePostconditions??[]).length>0&&(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`div`,{style:{fontSize:11,fontFamily:`var(--mono)`,letterSpacing:`0.1em`,color:`var(--accent)`,marginBottom:4},children:`FAILURE`}),(0,E.jsx)(`ul`,{style:{paddingLeft:18},children:C.failurePostconditions.map((e,t)=>(0,E.jsx)(`li`,{children:e},t))})]})]})]}),(0,E.jsx)(`h3`,{children:`Diagram review`}),(0,E.jsxs)(`div`,{style:{marginBottom:8},children:[`Activity `,(0,E.jsx)(Ve,{reviewKey:`activity:${A(C)}`,rv:n,onSet:v,disabled:!C.activityDiagramPath}),C.activityDiagramPath&&(0,E.jsx)(ze,{projectName:t,path:C.activityDiagramPath})]}),(0,E.jsxs)(`div`,{style:{marginBottom:8},children:[`Sequence `,(0,E.jsx)(Ve,{reviewKey:`sequence:${A(C)}`,rv:n,onSet:v,disabled:!C.sequenceDiagramPath}),C.sequenceDiagramPath&&(0,E.jsx)(ze,{projectName:t,path:C.sequenceDiagramPath})]}),(0,E.jsx)(`h3`,{children:`UC spec review`}),(0,E.jsx)(Ve,{reviewKey:A(C),rv:n,onSet:v}),(0,E.jsx)(`h3`,{children:`Notes`}),(0,E.jsx)(`textarea`,{"aria-label":`Notes`,value:n[A(C)]?.notes??``,onChange:e=>r(t=>({...t,[A(C)]:{...t[A(C)],notes:e.target.value}})),onBlur:e=>y(A(C),e.target.value)},`${t}:${A(C)}:${i[A(C)]??``}`)]}):(0,E.jsx)(`div`,{className:`sub`,children:`No use case selected`})})]})]})}function Ue(e,t){return`archscribe:${e}:compare:${t}`}function We(e,t,n=``){try{return localStorage.getItem(Ue(e,t))??n}catch{return n}}function Ge(e,t,n){try{localStorage.setItem(Ue(e,t),n)}catch{}}function Ke(e){return`${(e*100).toFixed(1)}%`}function qe(e){return`P:${Ke(e.precision)} R:${Ke(e.recall)} F1:${Ke(e.f1)}`}function Je({report:e,projectName:t}){let{accuracy:n}=e,r=[{label:`Class F1`,llm:We(t,`llm-class`),rag:We(t,`rag-class`),archscribe:qe(n.classExtraction)},{label:`Dependency F1`,llm:We(t,`llm-dep`),rag:We(t,`rag-dep`),archscribe:qe(n.dependencyExtraction)},{label:`Endpoint F1`,llm:We(t,`llm-ep`),rag:We(t,`rag-ep`),archscribe:qe(n.endpointExtraction)}],[i,a]=(0,l.useState)(r),o=(e,n,r)=>{Ge(t,n===`llm`?[`llm-class`,`llm-dep`,`llm-ep`][e]:[`rag-class`,`rag-dep`,`rag-ep`][e],r),a(t=>t.map((t,i)=>i===e?{...t,[n]:r}:t))};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h1`,{children:`Compare`}),(0,E.jsx)(`div`,{className:`sub`,children:`Approach A (LLM-only) vs B (RAG) vs C (archscribe)`}),(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`div`,{className:`table-wrap`,children:(0,E.jsxs)(`table`,{children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`th`,{children:`Metric`}),(0,E.jsxs)(`th`,{children:[`A — LLM-only `,(0,E.jsx)(`span`,{style:{color:`var(--text3)`,fontWeight:400},children:`(manual)`})]}),(0,E.jsxs)(`th`,{children:[`B — RAG `,(0,E.jsx)(`span`,{style:{color:`var(--text3)`,fontWeight:400},children:`(manual)`})]}),(0,E.jsxs)(`th`,{children:[`C — archscribe `,(0,E.jsx)(`span`,{style:{color:`var(--ok)`,fontWeight:400},children:`(auto)`})]})]})}),(0,E.jsx)(`tbody`,{children:i.map((e,t)=>(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`td`,{children:e.label}),(0,E.jsx)(`td`,{children:(0,E.jsx)(`input`,{style:{border:`none`,background:`transparent`,width:`100%`},value:e.llm,placeholder:`Enter manually…`,onChange:e=>o(t,`llm`,e.target.value)})}),(0,E.jsx)(`td`,{children:(0,E.jsx)(`input`,{style:{border:`none`,background:`transparent`,width:`100%`},value:e.rag,placeholder:`Enter manually…`,onChange:e=>o(t,`rag`,e.target.value)})}),(0,E.jsx)(`td`,{style:{fontWeight:600},children:e.archscribe})]},e.label))})]})}),(0,E.jsx)(`div`,{style:{marginTop:12,fontSize:12,color:`var(--text2)`},children:`LLM-only and RAG columns are editable and saved in localStorage.`})]})]})}var Ye=[{key:`clarity`,label:`Diagram clarity`,description:`How clear and readable are the generated diagrams?`},{key:`accuracy`,label:`UC spec accuracy`,description:`How accurately do the use case specs reflect the source code behavior?`},{key:`completeness`,label:`Documentation completeness`,description:`How complete is the generated documentation (all 5 chapters, all diagrams)?`},{key:`usefulness`,label:`Overall usefulness`,description:`How useful is the output for a software engineering course submission?`}];function Xe(e){return`archscribe:${e}:human-eval`}function Ze(e){try{return JSON.parse(localStorage.getItem(Xe(e))??`{}`)}catch{return{}}}function Qe(e,t){try{localStorage.setItem(Xe(e),JSON.stringify(t))}catch{}}function $e({value:e,onChange:t}){return(0,E.jsx)(`div`,{style:{display:`flex`,gap:6},children:[1,2,3,4,5].map(n=>(0,E.jsx)(`button`,{onClick:()=>t(n),style:{width:36,height:36,border:`2px solid ${e===n?`var(--accent)`:`var(--border)`}`,borderRadius:8,background:e===n?`var(--accent)`:`var(--card)`,color:e===n?`#fff`:`var(--text)`,fontWeight:e===n?700:400,cursor:`pointer`,fontSize:14},children:n},n))})}function et({projectName:e}){let[t,n]=(0,l.useState)(Ze(e)),r=(r,i)=>{let a={...t,[r]:i};n(a),Qe(e,a)},i=Object.values(t).length>0?(Object.values(t).reduce((e,t)=>e+(t??0),0)/Object.values(t).length).toFixed(2):null;return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h1`,{children:`Human Evaluation`}),(0,E.jsx)(`div`,{className:`sub`,children:`Likert 1–5 ratings — saved locally, exportable as JSON`}),Ye.map(e=>(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`h2`,{children:e.label}),(0,E.jsx)(`div`,{className:`sub`,style:{marginBottom:10},children:e.description}),(0,E.jsx)($e,{value:t[e.key],onChange:t=>r(e.key,t)})]},e.key)),i&&(0,E.jsxs)(`div`,{className:`card`,children:[(0,E.jsx)(`div`,{className:`kpi-label`,children:`Average rating`}),(0,E.jsxs)(`div`,{className:`kpi-value`,children:[i,` / 5`]})]}),(0,E.jsx)(`button`,{className:`btn btn-primary`,onClick:()=>{let n=new Blob([JSON.stringify({project:e,ratings:t,exportedAt:new Date().toISOString()},null,2)],{type:`application/json`}),r=document.createElement(`a`);r.href=URL.createObjectURL(n),r.download=`human-eval-${e}.json`,r.click()},children:`Export review JSON`})]})}function tt(e){return e==null?`—`:`${(e*100).toFixed(1)}%`}function nt(e){return e==null?`var(--dim)`:e>=.8?`var(--pass)`:e>=.6?`var(--revise)`:`var(--accent)`}function rt({cur:e,prev:t}){if(e==null||t==null)return(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`});let n=(e-t)*100;return Math.abs(n)<.1?(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`}):(0,E.jsxs)(`span`,{style:{color:n>0?`var(--pass)`:`var(--accent)`,fontFamily:`var(--mono)`,fontSize:11},children:[n>0?`+`:``,n.toFixed(1),`pp`]})}function it({license:e}){if(!e)return(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`});let t=[e.licensee,e.email].filter(Boolean).join(` · `);return(0,E.jsxs)(`span`,{title:e.licenseId?`license ${e.licenseId} (${e.code})`:e.code,children:[(0,E.jsx)(`span`,{style:{fontFamily:`var(--mono)`,fontSize:11,fontWeight:600,color:e.tier===`pro`?`var(--pass)`:`var(--dim)`},children:e.tier.toUpperCase()}),t&&(0,E.jsx)(`span`,{style:{marginLeft:6},children:t}),e.licenseId&&(0,E.jsxs)(`span`,{style:{marginLeft:6,fontFamily:`var(--mono)`,fontSize:11,color:`var(--dim)`},children:[`#`,e.licenseId.slice(0,8)]})]})}function at({cur:e,prev:t}){if(!t)return(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`});let n=e.ucIds.filter(e=>!t.ucIds.includes(e)),r=t.ucIds.filter(t=>!e.ucIds.includes(t));return!n.length&&!r.length?(0,E.jsx)(`span`,{style:{color:`var(--dim)`},children:`—`}):(0,E.jsxs)(E.Fragment,{children:[n.length>0&&(0,E.jsxs)(`span`,{style:{color:`var(--pass)`,marginRight:4},children:[`+`,n.length]}),r.length>0&&(0,E.jsxs)(`span`,{style:{color:`var(--accent)`},children:[`-`,r.length]})]})}function ot({projectName:e}){let[t,n]=(0,l.useState)([]),[r,i]=(0,l.useState)(!0),[a,o]=(0,l.useState)(`runs`),[s,c]=(0,l.useState)([]),[u,d]=(0,l.useState)(`#2`),[f,p]=(0,l.useState)(`#1`),[m,h]=(0,l.useState)([]),[g,_]=(0,l.useState)(null),[v,y]=(0,l.useState)(``);(0,l.useEffect)(()=>{i(!0),y(``),c([]),_(null),h([]),me(e).then(n).catch(e=>y(e.message)).finally(()=>i(!1)),ne(e).then(c).catch(e=>y(e.message)),re(e).then(_).catch(e=>y(e.message))},[e]),(0,l.useEffect)(()=>{a!==`versions`||s.length<2||(h([]),w(e,u,f).then(h).catch(e=>y(e.message)))},[e,a,s,u,f]);let S=async t=>{try{y(``);let n=(await w(e,`#1`,t.oid)).map(e=>`• ${e.path} (${e.change})`).join(`
|
|
22
22
|
`)||b(`dash.history.noDiff`);if(!window.confirm(b(`dash.history.restoreConfirm`,{n:t.n,files:n})))return;await ie(e,t.oid),c(await ne(e)),_(await re(e)),d(`#2`),p(`#1`)}catch(e){y(e.message)}};if(r)return(0,E.jsx)(`div`,{className:`loading`,children:`Loading history…`});let ee=t.length?(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h1`,{className:`screen-title`,children:`Run History`}),(0,E.jsx)(`p`,{style:{color:`var(--dim)`,fontSize:13,marginBottom:20},children:b(`dash.history.runCount`,{count:t.length})}),(0,E.jsx)(`div`,{className:`card`,children:(0,E.jsxs)(`table`,{style:{width:`100%`,borderCollapse:`collapse`,fontSize:13},children:[(0,E.jsx)(`thead`,{children:(0,E.jsx)(`tr`,{style:{borderBottom:`1px solid var(--border)`},children:[b(`dash.history.col.date`),``,`License`,b(`dash.history.col.version`),`Manifest`,`UCs`,`Class F1`,`Endpoint F1`,`Dep F1`,`ΔClass F1`,`ΔUC`].map(e=>(0,E.jsx)(`th`,{style:{padding:`8px 10px`,textAlign:`left`,color:`var(--dim)`,fontWeight:600,fontSize:11},children:e},e))})}),(0,E.jsx)(`tbody`,{children:t.slice(0,25).map((e,n)=>{let r=t[n+1],i=n===0,a=x(new Date(e.timestamp));return(0,E.jsxs)(`tr`,{style:{borderBottom:`1px solid var(--border)`,background:i?`color-mix(in srgb, var(--accent) 6%, transparent)`:void 0},children:[(0,E.jsx)(`td`,{style:{padding:`8px 10px`,fontFamily:`var(--mono)`,fontSize:11,color:`var(--dim)`,whiteSpace:`nowrap`},children:a}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`},children:i?(0,E.jsx)(`span`,{style:{background:`var(--accent)`,color:`#fff`,padding:`2px 8px`,borderRadius:999,fontSize:11,fontWeight:600},children:`current`}):(0,E.jsx)(`span`,{style:{background:`var(--border)`,color:`var(--dim)`,padding:`2px 8px`,borderRadius:999,fontSize:11},children:`run`})}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`},children:(0,E.jsx)(it,{license:e.license})}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`,fontFamily:`var(--mono)`,fontSize:11},children:e.archscribeVersion}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`,fontFamily:`var(--mono)`,fontSize:11,color:`var(--dim)`},title:e.manifest?.sha256,children:e.manifest?e.manifest.sha256.slice(0,10):`—`}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`,fontFamily:`var(--mono)`},children:e.ucCount}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`,fontFamily:`var(--mono)`,color:nt(e.f1Class)},children:tt(e.f1Class)}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`,fontFamily:`var(--mono)`,color:nt(e.f1Endpoint)},children:tt(e.f1Endpoint)}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`,fontFamily:`var(--mono)`,color:nt(e.f1Dependency)},children:tt(e.f1Dependency)}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`},children:(0,E.jsx)(rt,{cur:e.f1Class,prev:r?.f1Class})}),(0,E.jsx)(`td`,{style:{padding:`8px 10px`},children:(0,E.jsx)(at,{cur:e,prev:r})})]},e.runId)})})]})})]}):(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h1`,{className:`screen-title`,children:`Run History`}),(0,E.jsx)(`p`,{style:{color:`var(--dim)`,marginTop:12},children:b(`dash.history.emptyRuns`)})]});return(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`h1`,{className:`screen-title`,children:`History`}),(0,E.jsx)(`div`,{className:`history-tabs`,"aria-label":b(`dash.history.tabsLabel`),children:[[`runs`,b(`dash.history.tab.runs`)],[`versions`,b(`dash.history.tab.versions`)],[`approvals`,b(`dash.history.tab.approvals`)]].map(([e,t])=>(0,E.jsx)(`button`,{"aria-current":a===e?`page`:void 0,className:a===e?`active`:``,onClick:()=>o(e),children:t},e))}),v&&(0,E.jsx)(`p`,{className:`error-banner`,role:`alert`,children:v}),a===`runs`&&ee,a===`versions`&&(0,E.jsx)(`div`,{className:`history-versions`,children:s.length?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`div`,{className:`table-wrap`,children:(0,E.jsxs)(`table`,{children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`th`,{children:`#`}),(0,E.jsx)(`th`,{children:b(`dash.history.col.date`)}),(0,E.jsx)(`th`,{children:b(`dash.history.col.message`)}),(0,E.jsx)(`th`,{children:b(`dash.history.col.action`)})]})}),(0,E.jsx)(`tbody`,{children:s.map(e=>(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`td`,{children:e.n}),(0,E.jsx)(`td`,{children:x(e.at)}),(0,E.jsx)(`td`,{children:e.message}),(0,E.jsx)(`td`,{children:(0,E.jsx)(`button`,{className:`btn`,disabled:e.n===1,onClick:()=>S(e),children:b(`dash.history.restore`)})})]},e.oid))})]})}),s.length>1&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h2`,{children:b(`dash.history.compare`)}),(0,E.jsxs)(`div`,{className:`history-compare`,children:[(0,E.jsxs)(`label`,{children:[b(`dash.history.from`),` `,(0,E.jsx)(`select`,{value:u,onChange:e=>d(e.target.value),children:s.map(e=>(0,E.jsxs)(`option`,{value:`#${e.n}`,children:[`#`,e.n,` · `,e.message]},e.oid))})]}),(0,E.jsxs)(`label`,{children:[b(`dash.history.to`),` `,(0,E.jsx)(`select`,{value:f,onChange:e=>p(e.target.value),children:s.map(e=>(0,E.jsxs)(`option`,{value:`#${e.n}`,children:[`#`,e.n,` · `,e.message]},e.oid))})]})]}),m.length?m.map(e=>(0,E.jsxs)(`details`,{className:`history-change`,open:!0,children:[(0,E.jsxs)(`summary`,{children:[e.path,` · `,e.change]}),e.lines&&(0,E.jsx)(`pre`,{children:e.lines.map((e,t)=>(0,E.jsxs)(`span`,{className:e.startsWith(`+`)?`added`:`removed`,children:[e,`
|
|
23
23
|
`]},t))})]},e.path)):(0,E.jsx)(`p`,{children:b(`dash.history.sameFiles`)})]})]}):(0,E.jsx)(`p`,{children:b(`dash.history.emptyVersions`)})}),a===`approvals`&&(0,E.jsxs)(`div`,{className:`history-approvals`,children:[(0,E.jsxs)(`p`,{children:[b(`dash.history.approvalsNote`),` `,(0,E.jsx)(`code`,{children:`archscribe review <project>`}),`.`]}),!g||!Object.keys(g.entries).length?(0,E.jsx)(`p`,{children:b(`dash.history.ledgerEmpty`)}):(0,E.jsx)(`div`,{className:`table-wrap`,children:(0,E.jsxs)(`table`,{children:[(0,E.jsx)(`thead`,{children:(0,E.jsxs)(`tr`,{children:[(0,E.jsx)(`th`,{children:b(`dash.history.col.entry`)}),(0,E.jsx)(`th`,{children:b(`dash.history.col.status`)}),(0,E.jsx)(`th`,{children:`LLM`}),(0,E.jsx)(`th`,{children:b(`dash.history.col.approver`)})]})}),(0,E.jsx)(`tbody`,{children:Object.entries(g.entries).map(([e,t])=>(0,E.jsxs)(`tr`,{children:[(0,E.jsxs)(`td`,{children:[t.displayId&&(0,E.jsxs)(`strong`,{children:[t.displayId,` · `]}),(0,E.jsx)(`code`,{children:e})]}),(0,E.jsx)(`td`,{children:t.status}),(0,E.jsx)(`td`,{children:t.llmReview?`${t.llmReview.verdict} · R${t.llmReview.rulesVersion}${t.llmReview.issues.length?` · ${t.llmReview.issues.join(`; `)}`:``}`:`—`}),(0,E.jsx)(`td`,{children:t.humanApproval?`${t.humanApproval.approvedAt} · ${t.humanApproval.choice}${t.humanApproval.override?` · override: ${t.humanApproval.override}`:``}`:`—`})]},e))})]})})]})]})}function st({projectName:e}){let[t,n]=(0,l.useState)([]),[r,i]=(0,l.useState)(``),[a,o]=(0,l.useState)(``),[s,c]=(0,l.useState)(``),[u,d]=(0,l.useState)(!0);(0,l.useEffect)(()=>{let t=!0;return d(!0),i(``),c(``),ae(e).then(e=>{t&&n(e)}).catch(e=>{t&&c(e.message)}).finally(()=>{t&&d(!1)}),()=>{t=!1}},[e]);let f=async t=>{if(i(t),o(``),c(``),/\.(md|json)$/.test(t))try{o(await se(e,t))}catch(e){c(e.message)}},p=t.reduce((e,t)=>{let n=t.path.includes(`/`)?t.path.slice(0,t.path.lastIndexOf(`/`)):b(`dash.outputs.projectRoot`);return(e[n]??=[]).push(t),e},{});return(0,E.jsxs)(`div`,{className:`outputs-screen`,children:[(0,E.jsx)(`h1`,{className:`screen-title`,children:b(`dash.outputs.title`)}),(0,E.jsx)(`p`,{className:`sub`,children:b(`dash.outputs.subtitle`)}),u&&(0,E.jsx)(`p`,{className:`loading`,children:b(`dash.outputs.loading`)}),s&&(0,E.jsx)(`p`,{role:`alert`,className:`error-banner`,children:s}),!u&&!t.length&&(0,E.jsx)(`p`,{children:b(`dash.outputs.empty`)}),(0,E.jsxs)(`div`,{className:`outputs-layout`,children:[(0,E.jsx)(`nav`,{className:`outputs-list`,"aria-label":b(`dash.outputs.listLabel`),children:Object.entries(p).map(([e,t])=>(0,E.jsxs)(`section`,{children:[(0,E.jsx)(`h2`,{children:e}),t?.map(e=>(0,E.jsx)(`button`,{className:r===e.path?`selected`:``,onClick:()=>f(e.path),children:e.path.slice(e.path.lastIndexOf(`/`)+1)},e.path))]},e))}),(0,E.jsx)(`section`,{className:`outputs-detail`,children:r?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`h2`,{children:r}),r.endsWith(`.drawio`)?(0,E.jsx)(ze,{projectName:e,path:r},r):/\.(md|json)$/.test(r)?(0,E.jsx)(`pre`,{className:`outputs-source`,children:a}):(0,E.jsx)(`a`,{className:`btn`,href:ce(e,r),download:!0,children:b(`dash.outputs.download`)})]}):(0,E.jsx)(`p`,{className:`sub`,children:b(`dash.outputs.pick`)})})]})]})}function ct({projectName:e,projectPath:t,onRerun:n}){let[r,i]=(0,l.useState)(null),[a,o]=(0,l.useState)(!1),[s,c]=(0,l.useState)(null),u=(0,l.useCallback)(()=>{ye(e).then(i).catch(()=>i(null))},[e]);if((0,l.useEffect)(()=>{c(null),u()},[u]),!r||r.state!==`stale`)return null;let d=r.changed.length+r.added.length+r.removed.length,f=r.generatedAt?x(r.generatedAt):``,p=[...r.affectedControllers,...r.newControllerFiles.map(e=>e.split(`/`).pop()??e)];return(0,E.jsxs)(`div`,{className:`stale-banner`,role:`status`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`strong`,{children:b(`dash.stale.title`)}),` — `,b(`dash.stale.summary`,{count:d,since:f}),p.length>0&&(0,E.jsxs)(E.Fragment,{children:[` · `,b(`dash.stale.controllers`),` `,p.join(`, `)]}),s&&(0,E.jsx)(`div`,{className:`stale-error`,children:b(`dash.stale.failed`,{error:String(s)})})]}),(0,E.jsx)(`button`,{className:`btn btn-primary`,onClick:async()=>{o(!0),c(null);try{await be({projectPath:t}),u(),n()}catch(e){c(e.message)}finally{o(!1)}},disabled:a,children:b(a?`dash.stale.running`:`dash.stale.rerun`)})]})}var lt=[`run`,`dashboard`,`review`,`compare`,`human-eval`,`history`,`outputs`],ut=[`vi`,`en`],dt=`vi`;function ft(e){return!!e&&ut.includes(e)}function pt(){let e=window.location.pathname.split(`/`).filter(Boolean),t=ft(e[0]),n=t?e[0]:dt,r=t?e[1]:e[0];return{locale:n,screen:lt.includes(r??``)?r:`run`}}function mt(e,t){return`/${e}/${t}${window.location.search}${window.location.hash}`}function ht(){let[e,t]=(0,l.useState)([]),[n,r]=(0,l.useState)(``),[i,a]=(0,l.useState)(null),[o,s]=(0,l.useState)(!1),[c,u]=(0,l.useState)(null),[d,f]=(0,l.useState)(!1),[p,m]=(0,l.useState)(pt);v(p.locale);let h=p.locale===`vi`?`vi-VN`:`en-GB`;document.documentElement.lang!==h&&(document.documentElement.lang=h);let g=p.screen,_=(0,l.useCallback)(e=>{window.history.pushState(null,``,mt(p.locale,e)),m({locale:p.locale,screen:e})},[p.locale]),y=(0,l.useCallback)(e=>{window.history.pushState(null,``,`/${e}/${p.screen}${window.location.search}${window.location.hash}`),m({locale:e,screen:p.screen})},[p.screen]),[x,S]=(0,l.useState)(null),[ee,te]=(0,l.useState)(!1),[C,ne]=(0,l.useState)(0);(0,l.useEffect)(()=>{let e=()=>m(pt());return window.addEventListener(`popstate`,e),window.history.replaceState(null,``,mt(p.locale,p.screen)),()=>window.removeEventListener(`popstate`,e)},[]),(0,l.useEffect)(()=>{fe().then(e=>{t(e);let n=e.find(e=>e.hasReport)??e[0];n&&r(n.name)}).catch(e=>{e instanceof ue?f(!0):u(`Cannot reach dashboard server`)})},[]);let w=(0,l.useCallback)(async e=>{if(e){s(!0),u(null);try{let t=await pe(e);a(t),ne(e=>e+1)}catch(e){e instanceof ue?f(!0):u(e.message),a(null)}finally{s(!1)}}},[]);(0,l.useEffect)(()=>{w(n)},[n,w]),(0,l.useEffect)(()=>he(({project:e})=>{e===n&&(w(n),S(`Report updated for ${e}`),setTimeout(()=>S(null),4e3))}),[n,w]);let re=e.filter(e=>e.hasReport),ie=e.find(e=>e.name===n);return(0,E.jsxs)(`div`,{className:`shell`,children:[(0,E.jsx)(D,{screen:g,setScreen:e=>{_(e),te(!1)},locale:p.locale,setLocale:e=>{y(e),te(!1)},projects:e,activeProject:n,setActiveProject:e=>{r(e),te(!1)},menuOpen:ee,setMenuOpen:te,report:i}),(0,E.jsxs)(`main`,{className:`main`,onClick:()=>ee&&te(!1),children:[d&&(0,E.jsxs)(`div`,{className:`auth-banner`,children:[(0,E.jsx)(`h2`,{children:b(`dash.auth.title`)}),(0,E.jsxs)(`p`,{children:[b(`dash.auth.body`),` `,(0,E.jsx)(`code`,{children:`?token=…`}),` `,b(`dash.auth.bodyTail`)]}),(0,E.jsx)(`pre`,{children:`archscribe dashboard`})]}),!d&&x&&(0,E.jsx)(`div`,{className:`toast`,children:x}),!d&&(g===`run`?(0,E.jsx)(De,{}):(0,E.jsxs)(E.Fragment,{children:[o&&(0,E.jsx)(`div`,{className:`loading`,children:`Loading…`}),c&&!o&&(0,E.jsx)(`div`,{className:`error-banner`,children:c}),!o&&!c&&i&&(0,E.jsxs)(E.Fragment,{children:[ie&&(0,E.jsx)(ct,{projectName:n,projectPath:ie.path,onRerun:()=>w(n)},`${n}:${C}`),g===`dashboard`&&(0,E.jsx)(Ie,{report:i}),g===`review`&&(0,E.jsx)(He,{report:i,projectName:n}),g===`compare`&&(0,E.jsx)(Je,{report:i,projectName:n,allProjects:re}),g===`human-eval`&&(0,E.jsx)(et,{report:i,projectName:n}),g===`history`&&(0,E.jsx)(ot,{projectName:n}),g===`outputs`&&(0,E.jsx)(st,{projectName:n})]}),!o&&!c&&!i&&n&&(0,E.jsxs)(`div`,{className:`empty-state`,children:[(0,E.jsxs)(`p`,{children:[`No report found for `,(0,E.jsx)(`strong`,{children:n}),`.`]}),(0,E.jsx)(`p`,{className:`sub`,children:`Run archscribe on this project first.`})]})]}))]})]})}p(),(0,u.createRoot)(document.getElementById(`root`)).render((0,E.jsx)(l.StrictMode,{children:(0,E.jsx)(ht,{})}));
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/png" href="/brand/favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>archscribe dashboard</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-C0xIsqf0.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-BK3iMzXX.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
/** Keep Chromium's isolated profile short even when the project path is deeply nested. */
|
|
3
3
|
export declare function withFigureExportDirectory<T>(exportFigure: (directory: string) => Promise<T>): Promise<T>;
|
|
4
|
+
export declare function exportFigureWithFallback(exportFigure: (directory: string, scale: number) => Promise<Buffer>): Promise<Buffer>;
|
|
4
5
|
export declare function publishFigure(source: string, destination: string, operations?: Pick<typeof fs, 'renameSync' | 'copyFileSync' | 'unlinkSync'>): void;
|
package/dist/core/docx-export.js
CHANGED
|
@@ -11,6 +11,23 @@ export async function withFigureExportDirectory(exportFigure) {
|
|
|
11
11
|
fs.rmSync(directory, { recursive: true, force: true });
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
export async function exportFigureWithFallback(exportFigure) {
|
|
15
|
+
const scales = [1, 0.5, 0.25];
|
|
16
|
+
for (const [index, scale] of scales.entries()) {
|
|
17
|
+
try {
|
|
18
|
+
return await withFigureExportDirectory(directory => exportFigure(directory, scale));
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
const failure = error;
|
|
22
|
+
const renderFailure = failure.code !== 'ENOENT' &&
|
|
23
|
+
(/UnknownVizError/.test(`${failure.message}\n${failure.stderr ?? ''}`) ||
|
|
24
|
+
failure.code === 'ETIMEDOUT' || (failure.killed === true && failure.signal === 'SIGTERM'));
|
|
25
|
+
if (!renderFailure || index === scales.length - 1)
|
|
26
|
+
throw error;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
throw new Error('Figure export exhausted');
|
|
30
|
+
}
|
|
14
31
|
export function publishFigure(source, destination, operations = fs) {
|
|
15
32
|
try {
|
|
16
33
|
operations.renameSync(source, destination);
|