@weppy/roblox-mcp 2.4.1 → 2.5.1

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.
Files changed (174) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.github/workflows/install-test.yml +2 -21
  3. package/CHANGELOG.md +30 -5
  4. package/COMMERCIAL-LICENSE.md +1 -1
  5. package/README.md +12 -11
  6. package/TRADEMARKS.md +1 -1
  7. package/docs/assets/screenshots/roblox-explorer/roblox-explorer-property-window.png +0 -0
  8. package/docs/en/dashboard/changelog.md +1 -1
  9. package/docs/en/dashboard/connection.md +1 -1
  10. package/docs/en/dashboard/overview.md +1 -1
  11. package/docs/en/dashboard/playtest.md +1 -1
  12. package/docs/en/dashboard/settings.md +1 -1
  13. package/docs/en/dashboard/sync.md +1 -1
  14. package/docs/en/dashboard/tools.md +1 -1
  15. package/docs/en/explorer/overview.md +104 -0
  16. package/docs/en/installation/README.md +4 -4
  17. package/docs/en/installation/ai-apps/antigravity.md +1 -1
  18. package/docs/en/installation/ai-apps/claude-app.md +1 -1
  19. package/docs/en/installation/ai-apps/claude-code.md +1 -1
  20. package/docs/en/installation/ai-apps/codex-app.md +1 -1
  21. package/docs/en/installation/ai-apps/codex-cli.md +1 -1
  22. package/docs/en/installation/ai-apps/cursor.md +1 -1
  23. package/docs/en/installation/ai-apps/gemini-cli.md +1 -1
  24. package/docs/en/installation/roblox-explorer.md +12 -12
  25. package/docs/en/installation/roblox-plugin.md +5 -5
  26. package/docs/en/pro-upgrade.md +3 -3
  27. package/docs/en/sync/luau-lsp.md +13 -13
  28. package/docs/en/sync/overview.md +8 -8
  29. package/docs/en/tools/overview.md +1 -1
  30. package/docs/en/tools/playtest.md +2 -2
  31. package/docs/es/README.md +11 -10
  32. package/docs/es/dashboard/changelog.md +1 -1
  33. package/docs/es/dashboard/connection.md +1 -1
  34. package/docs/es/dashboard/overview.md +1 -1
  35. package/docs/es/dashboard/playtest.md +1 -1
  36. package/docs/es/dashboard/settings.md +1 -1
  37. package/docs/es/dashboard/sync.md +1 -1
  38. package/docs/es/dashboard/tools.md +1 -1
  39. package/docs/es/explorer/overview.md +104 -0
  40. package/docs/es/installation/README.md +3 -3
  41. package/docs/es/installation/ai-apps/antigravity.md +1 -1
  42. package/docs/es/installation/ai-apps/claude-app.md +1 -1
  43. package/docs/es/installation/ai-apps/claude-code.md +1 -1
  44. package/docs/es/installation/ai-apps/codex-app.md +1 -1
  45. package/docs/es/installation/ai-apps/codex-cli.md +1 -1
  46. package/docs/es/installation/ai-apps/cursor.md +1 -1
  47. package/docs/es/installation/ai-apps/gemini-cli.md +1 -1
  48. package/docs/es/installation/roblox-explorer.md +11 -11
  49. package/docs/es/installation/roblox-plugin.md +3 -3
  50. package/docs/es/pro-upgrade.md +1 -1
  51. package/docs/es/sync/luau-lsp.md +13 -13
  52. package/docs/es/sync/overview.md +8 -8
  53. package/docs/es/tools/overview.md +1 -1
  54. package/docs/es/tools/playtest.md +2 -2
  55. package/docs/id/README.md +11 -10
  56. package/docs/id/dashboard/changelog.md +1 -1
  57. package/docs/id/dashboard/connection.md +1 -1
  58. package/docs/id/dashboard/overview.md +1 -1
  59. package/docs/id/dashboard/playtest.md +1 -1
  60. package/docs/id/dashboard/settings.md +1 -1
  61. package/docs/id/dashboard/sync.md +1 -1
  62. package/docs/id/dashboard/tools.md +1 -1
  63. package/docs/id/explorer/overview.md +104 -0
  64. package/docs/id/installation/README.md +4 -4
  65. package/docs/id/installation/ai-apps/antigravity.md +1 -1
  66. package/docs/id/installation/ai-apps/claude-app.md +1 -1
  67. package/docs/id/installation/ai-apps/claude-code.md +1 -1
  68. package/docs/id/installation/ai-apps/codex-app.md +1 -1
  69. package/docs/id/installation/ai-apps/codex-cli.md +1 -1
  70. package/docs/id/installation/ai-apps/cursor.md +1 -1
  71. package/docs/id/installation/ai-apps/gemini-cli.md +1 -1
  72. package/docs/id/installation/roblox-explorer.md +11 -11
  73. package/docs/id/installation/roblox-plugin.md +3 -3
  74. package/docs/id/pro-upgrade.md +1 -1
  75. package/docs/id/sync/luau-lsp.md +13 -13
  76. package/docs/id/sync/overview.md +8 -8
  77. package/docs/id/tools/overview.md +1 -1
  78. package/docs/id/tools/playtest.md +2 -2
  79. package/docs/installer/assets/index-Bz0amd7x.js +2 -2
  80. package/docs/installer/index.html +1 -1
  81. package/docs/installer/manifest.webmanifest +3 -3
  82. package/docs/ja/README.md +11 -10
  83. package/docs/ja/explorer/overview.md +104 -0
  84. package/docs/ja/installation/README.md +4 -4
  85. package/docs/ja/installation/ai-apps/antigravity.md +1 -1
  86. package/docs/ja/installation/ai-apps/claude-app.md +1 -1
  87. package/docs/ja/installation/ai-apps/claude-code.md +1 -1
  88. package/docs/ja/installation/ai-apps/codex-app.md +1 -1
  89. package/docs/ja/installation/ai-apps/codex-cli.md +1 -1
  90. package/docs/ja/installation/ai-apps/cursor.md +1 -1
  91. package/docs/ja/installation/ai-apps/gemini-cli.md +1 -1
  92. package/docs/ja/installation/roblox-explorer.md +11 -11
  93. package/docs/ja/installation/roblox-plugin.md +3 -3
  94. package/docs/ja/pro-upgrade.md +1 -1
  95. package/docs/ja/sync/luau-lsp.md +13 -13
  96. package/docs/ja/sync/overview.md +8 -8
  97. package/docs/ja/tools/overview.md +1 -1
  98. package/docs/ja/tools/playtest.md +2 -2
  99. package/docs/ko/README.md +11 -10
  100. package/docs/ko/explorer/overview.md +104 -0
  101. package/docs/ko/installation/README.md +4 -4
  102. package/docs/ko/installation/ai-apps/antigravity.md +1 -1
  103. package/docs/ko/installation/ai-apps/claude-app.md +1 -1
  104. package/docs/ko/installation/ai-apps/claude-code.md +1 -1
  105. package/docs/ko/installation/ai-apps/codex-app.md +1 -1
  106. package/docs/ko/installation/ai-apps/codex-cli.md +1 -1
  107. package/docs/ko/installation/ai-apps/cursor.md +1 -1
  108. package/docs/ko/installation/ai-apps/gemini-cli.md +1 -1
  109. package/docs/ko/installation/roblox-explorer.md +12 -12
  110. package/docs/ko/installation/roblox-plugin.md +5 -5
  111. package/docs/ko/pro-upgrade.md +1 -1
  112. package/docs/ko/sync/luau-lsp.md +13 -13
  113. package/docs/ko/sync/overview.md +8 -8
  114. package/docs/ko/tools/overview.md +1 -1
  115. package/docs/ko/tools/playtest.md +2 -2
  116. package/docs/pt-br/README.md +12 -11
  117. package/docs/pt-br/dashboard/changelog.md +1 -1
  118. package/docs/pt-br/dashboard/connection.md +1 -1
  119. package/docs/pt-br/dashboard/overview.md +1 -1
  120. package/docs/pt-br/dashboard/playtest.md +1 -1
  121. package/docs/pt-br/dashboard/settings.md +1 -1
  122. package/docs/pt-br/dashboard/sync.md +1 -1
  123. package/docs/pt-br/dashboard/tools.md +1 -1
  124. package/docs/pt-br/explorer/overview.md +104 -0
  125. package/docs/pt-br/installation/README.md +4 -4
  126. package/docs/pt-br/installation/ai-apps/antigravity.md +1 -1
  127. package/docs/pt-br/installation/ai-apps/claude-app.md +1 -1
  128. package/docs/pt-br/installation/ai-apps/claude-code.md +1 -1
  129. package/docs/pt-br/installation/ai-apps/codex-app.md +1 -1
  130. package/docs/pt-br/installation/ai-apps/codex-cli.md +1 -1
  131. package/docs/pt-br/installation/ai-apps/cursor.md +1 -1
  132. package/docs/pt-br/installation/ai-apps/gemini-cli.md +1 -1
  133. package/docs/pt-br/installation/roblox-explorer.md +11 -11
  134. package/docs/pt-br/installation/roblox-plugin.md +3 -3
  135. package/docs/pt-br/pro-upgrade.md +1 -1
  136. package/docs/pt-br/sync/luau-lsp.md +13 -13
  137. package/docs/pt-br/sync/overview.md +8 -8
  138. package/docs/pt-br/tools/overview.md +1 -1
  139. package/docs/pt-br/tools/playtest.md +2 -2
  140. package/docs/troubleshooting.md +1 -1
  141. package/install.ps1 +23 -12
  142. package/install.sh +26 -13
  143. package/llms-full.txt +8 -8
  144. package/llms.txt +4 -4
  145. package/package.json +1 -1
  146. package/plugins/weppy-roblox-mcp/.claude-plugin/plugin.json +1 -1
  147. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ChangelogDetailPage-J4ikmBDz.js → ChangelogDetailPage-DRfFUIvC.js} +1 -1
  148. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ChangelogPage-CRyiyz5Q.js → ChangelogPage-Dgl8dBt6.js} +1 -1
  149. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ConfirmModal-BqqXDrdf.js → ConfirmModal-DfdyAPrJ.js} +1 -1
  150. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ConnectionPage-BFjleYaN.js → ConnectionPage-LSvSX1_u.js} +1 -1
  151. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{InfoLabel-DG5Q_c5f.js → InfoLabel-DrK7vhO-.js} +1 -1
  152. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{OverviewPage-skOVAGFT.js → OverviewPage-CXsGuoPu.js} +1 -1
  153. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{PlaytestPage-jdZTJ1qE.js → PlaytestPage-CgkzRAqQ.js} +2 -2
  154. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{PropertyDiff-DGvziVFn.js → PropertyDiff-Dy3MffNh.js} +1 -1
  155. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SettingsPage-D2ZBQ2KF.js +1 -0
  156. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{StatusBadge-D-Jxp4ai.js → StatusBadge-hJyzgRAl.js} +1 -1
  157. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SyncPage-eX2Rh-Ct.js +4 -0
  158. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{TierComparison-Ct-fbCs5.js → TierComparison-BwKqP_4s.js} +1 -1
  159. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{TierPromoProgress-CoEpWzRl.js → TierPromoProgress-CLAr1gQq.js} +1 -1
  160. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{ToolsPage-Ov5mDGFU.js → ToolsPage-CqzfCxxH.js} +1 -1
  161. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{WhatsNewPage-DZ-tJeoq.js → WhatsNewPage-23o8LmsR.js} +1 -1
  162. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/index-BfvSPSNj.js +207 -0
  163. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/{useLiveUptime-BpIv_H68.js → useLiveUptime-BeRNzFBh.js} +1 -1
  164. package/plugins/weppy-roblox-mcp/dashboard/dist/index.html +3 -3
  165. package/plugins/weppy-roblox-mcp/dashboard/dist/weppy-icon.png +0 -0
  166. package/plugins/weppy-roblox-mcp/dist/index.js +82 -82
  167. package/plugins/weppy-roblox-mcp/roblox-plugin/WeppyRobloxMCP.rbxm +0 -0
  168. package/.github/workflows/deploy-docs.yml +0 -41
  169. package/docs/assets/screenshots/roblox-explorer/install-from-vsix.png +0 -0
  170. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SettingsPage-DNmdsQlc.js +0 -1
  171. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/SyncPage-BTX8aTCf.js +0 -4
  172. package/plugins/weppy-roblox-mcp/dashboard/dist/assets/index-aMbdHsW4.js +0 -147
  173. package/plugins/weppy-roblox-mcp/dashboard/dist/wrox-icon.png +0 -0
  174. /package/docs/installer/{wrox-icon.png → weppy-icon.png} +0 -0
@@ -1,41 +0,0 @@
1
- name: Deploy docs to GitHub Pages
2
-
3
- on:
4
- push:
5
- branches: [main]
6
- paths:
7
- - 'docs/**'
8
- - 'README.md'
9
- - 'llms.txt'
10
- workflow_dispatch:
11
-
12
- permissions:
13
- contents: read
14
- pages: write
15
- id-token: write
16
-
17
- concurrency:
18
- group: pages
19
- cancel-in-progress: false
20
-
21
- jobs:
22
- deploy:
23
- environment:
24
- name: github-pages
25
- url: ${{ steps.deployment.outputs.page_url }}
26
- runs-on: ubuntu-latest
27
- steps:
28
- - name: Checkout
29
- uses: actions/checkout@v4
30
-
31
- - name: Setup Pages
32
- uses: actions/configure-pages@v5
33
-
34
- - name: Upload artifact
35
- uses: actions/upload-pages-artifact@v3
36
- with:
37
- path: docs
38
-
39
- - name: Deploy to GitHub Pages
40
- id: deployment
41
- uses: actions/deploy-pages@v4
@@ -1 +0,0 @@
1
- import{d as w,r,f as P,D as z,e as B,g as H,h as D,a as O,u as M,j as e,T as x,A as $,S as G}from"./index-aMbdHsW4.js";import{I as c}from"./InfoLabel-DG5Q_c5f.js";function W(){const{level:t}=w(),[l,L]=r.useState(null),[u,a]=r.useState(null),[E,v]=r.useState(!1),[b,y]=r.useState(!0),[A,_]=r.useState(!1),[k,m]=r.useState(null),g="gumroad",h=t==="disconnected",p=r.useCallback(n=>{n&&a(o=>({...o,...n,maskedKey:n.maskedKey??(o==null?void 0:o.maskedKey),provider:n.provider??(o==null?void 0:o.provider)??g}))},[g]),f=r.useCallback(n=>{if(!n){a(null);return}a({...n,provider:n.provider??g})},[g]),N=r.useCallback(async()=>{try{return await P(g)}catch{return null}},[g]);r.useEffect(()=>{let n=!1;async function o(){try{const[d,T]=await Promise.all([O.get("/api/dashboard/settings").catch(()=>null),N()]);if(n)return;d&&L(d),T&&p(T)}catch{}finally{n||y(!1)}}return o(),()=>{n=!0}},[N,p]),r.useEffect(()=>{const n=new z;n.connect();const o=n.on("license",d=>{N().then(T=>{if(T){if((d==null?void 0:d.cleared)===!0){f(T);return}p(T)}})});return()=>{o(),n.disconnect()}},[N,p,f]);const j=r.useCallback((n,o)=>{m(n??o)},[]),R=r.useCallback(async n=>{if(h)return!1;if(!n.trim())return m("License key is required."),!1;_(!0);try{const o=await B({provider:g,licenseKey:n.trim()});return p(o.license),j(o.message,o.ok?"License updated.":"License activation failed."),o.ok}catch{return m("License activation failed."),!1}finally{_(!1)}},[j,h,g,p]),S=r.useCallback(async()=>{if(!h){_(!0);try{const n=await H({provider:g});p(n.license),j(n.message,n.ok?"License updated.":"License refresh failed.")}catch{m("License refresh failed.")}finally{_(!1)}}},[j,h,g,p]),C=r.useCallback(async()=>{if(!h){_(!0);try{const n=await D({provider:g});f(n.license),j(n.message,n.ok?"License reset.":"License reset failed.")}catch{m("License reset failed.")}finally{_(!1)}}},[j,h,g,f]),i=r.useCallback(async(n,o)=>{if(l){L(d=>d&&{...d,hot:{...d.hot,[n]:o}}),v(!0);try{await O.patch("/api/dashboard/settings",{[n]:o})}catch{L(d=>d&&{...d,hot:{...d.hot,[n]:l.hot[n]}})}finally{v(!1)}}},[l]);return{settings:l,license:u,saving:E,licenseProvider:g,licenseControlsDisabled:h,licenseSubmitting:A,licenseMessage:k,activateLicense:R,refreshLicense:S,resetLicense:C,updateHotSetting:i,loading:b}}const X="_page_vbvzx_2",F="_card_vbvzx_10",q="_licenseCardPro_vbvzx_17",U="_cardHeader_vbvzx_28",K="_headerBadge_vbvzx_42",V="_headerBadgeLive_vbvzx_53",Q="_licenseGrid_vbvzx_59",Y="_statusDot_vbvzx_77",J="_statusActive_vbvzx_86",Z="_statusGrace_vbvzx_91",ee="_statusInactive_vbvzx_96",te="_statusError_vbvzx_100",se="_proBadge_vbvzx_105",ie="_upgradeLink_vbvzx_119",ne="_licenseControls_vbvzx_133",ae="_licenseControlRow_vbvzx_142",le="_licenseField_vbvzx_149",oe="_licenseFieldGrow_vbvzx_155",ce="_controlLabel_vbvzx_160",re="_textInput_vbvzx_166",de="_actionBtn_vbvzx_182",ge="_licenseMessage_vbvzx_204",ue="_licenseNotice_vbvzx_211",he="_licenseNoticeInfo_vbvzx_221",ve="_licenseNoticeWarning_vbvzx_227",pe="_licenseNoticeMuted_vbvzx_233",be="_settingRow_vbvzx_239",xe="_settingLabel_vbvzx_253",_e="_settingControl_vbvzx_260",me="_select_vbvzx_269",je="_numberInput_vbvzx_287",Le="_toggleSwitch_vbvzx_305",fe="_toggleInput_vbvzx_312",Ne="_toggleTrack_vbvzx_320",Ce="_toggleThumb_vbvzx_342",Te="_savedIndicator_vbvzx_391",ye="_savedIndicatorHidden_vbvzx_402",Re="_coldGrid_vbvzx_407",Se="_coldHint_vbvzx_425",Ee="_langRow_vbvzx_434",Ae="_loading_vbvzx_447",ke="_unit_vbvzx_456",s={page:X,card:F,licenseCardPro:q,cardHeader:U,headerBadge:K,headerBadgeLive:V,licenseGrid:Q,statusDot:Y,statusActive:J,statusGrace:Z,statusInactive:ee,statusError:te,proBadge:se,upgradeLink:ie,licenseControls:ne,licenseControlRow:ae,licenseField:le,licenseFieldGrow:oe,controlLabel:ce,textInput:re,actionBtn:de,licenseMessage:ge,licenseNotice:ue,licenseNoticeInfo:he,licenseNoticeWarning:ve,licenseNoticeMuted:pe,settingRow:be,settingLabel:xe,settingControl:_e,select:me,numberInput:je,toggleSwitch:Le,toggleInput:fe,toggleTrack:Ne,toggleThumb:Ce,savedIndicator:Te,savedIndicatorHidden:ye,coldGrid:Re,coldHint:Se,langRow:Ee,loading:Ae,unit:ke},Ie={en:"English",ko:"한국어",es:"Español","pt-br":"Português (BR)",ja:"日本語",id:"Bahasa Indonesia"},Oe=["debug","info","warn","error"];function we(t){return t==="active"?s.statusActive:t==="grace"?s.statusGrace:t==="invalid"||t==="revoked"?s.statusError:s.statusInactive}function Pe(t,l){return t.refreshBlockedReason==="missing_session_token"?{label:l("settings.license.status.activationRequired","Activation Required"),tooltip:l("settings.license.status.activationRequired.tooltip","Manual license activation is required before WROX Dashboard can refresh this status."),detail:l("settings.license.detail.missingSessionToken","Refresh is blocked because the current session token is missing."),detailTone:s.licenseNoticeWarning}:t.statusDetail==="active_cancel_pending"?{label:l("settings.license.active","Active"),tooltip:l("settings.license.status.activeCancelPending.tooltip","Cancellation is pending, but Pro access remains active until the current billing period ends."),detail:l("settings.license.detail.cancelPending","Cancellation is scheduled. Pro access remains active until the current billing period ends."),detailTone:s.licenseNoticeInfo}:t.statusDetail==="grace_provider_unavailable"?{label:l("settings.license.status.grace","Grace"),tooltip:l("settings.license.status.grace.tooltip","Provider verification is temporarily unavailable, but Pro access remains active during the grace period."),detail:l("settings.license.detail.graceProviderUnavailable","Provider unavailable. Pro access remains active during grace mode."),detailTone:s.licenseNoticeInfo}:t.statusDetail==="grace_expired"||t.statusDetail==="grace_payment_failed"?{label:l("settings.license.status.grace","Grace"),tooltip:l("settings.license.status.graceBilling.tooltip","Pro access is still available during a billing-related grace period."),detail:l("settings.license.detail.graceBilling","Pro access remains available during a billing grace period."),detailTone:s.licenseNoticeInfo}:{label:l(`settings.license.${t.status}`,t.status),tooltip:l(`settings.license.${t.status}.tooltip`,"Current license activation state."),detail:t.refreshRequired?l("settings.license.detail.refreshRecommended","License verification should be refreshed soon."):null,detailTone:s.licenseNoticeMuted}}function I({checked:t,onChange:l,testId:L,ariaLabel:u}){return e.jsxs("label",{className:s.toggleSwitch,"data-testid":L,children:[e.jsx("input",{type:"checkbox",className:s.toggleInput,checked:t,"aria-label":u,onChange:a=>l(a.target.checked)}),e.jsx("span",{className:s.toggleTrack,"aria-hidden":"true",children:e.jsx("span",{className:s.toggleThumb})})]})}function He(){const{t,selectedLocale:l,setLocale:L}=M(),{settings:u,license:a,licenseProvider:E,licenseControlsDisabled:v,licenseSubmitting:b,licenseMessage:y,activateLicense:A,refreshLicense:_,resetLicense:k,updateHotSetting:m,loading:g}=W(),[h,p]=r.useState(null),[f,N]=r.useState(""),j=a?Pe(a,t):null,R=(a==null?void 0:a.tier)==="pro",S=(a==null?void 0:a.tier)==="pro"?a.maskedKey:void 0,C=r.useCallback(async(i,n)=>{await m(i,n),p(i),setTimeout(()=>p(o=>o===i?null:o),2e3)},[m]);return g?e.jsx("div",{className:s.page,children:e.jsx("div",{className:s.loading,children:t("common.loading")})}):e.jsxs("div",{className:s.page,children:[e.jsxs("div",{"data-testid":"settings-license-card",className:[s.card,(a==null?void 0:a.tier)==="pro"?s.licenseCardPro:""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx(c,{label:t("settings.license.title","License"),tooltip:t("settings.license.title.tooltip","Current license status and subscription tier.")}),e.jsx(x,{text:v?t("settings.license.disconnected.tooltip","Reconnect to the MCP server to manage license actions from WROX Dashboard."):t("settings.license.live.tooltip","License actions are sent to the MCP server immediately."),children:e.jsx("span",{className:`${s.headerBadge} ${v?"":s.headerBadgeLive}`,children:v?t("settings.license.disconnected","Disconnected"):t("settings.general.liveApply","Live Apply")})})]}),e.jsxs(e.Fragment,{children:[a?e.jsxs(e.Fragment,{children:[(()=>{const i=j;return e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:s.licenseGrid,children:[e.jsx("dt",{children:e.jsx(c,{label:t("settings.license.status","Status"),tooltip:t("settings.license.status.tooltip","Current license activation state.")})}),e.jsxs("dd",{children:[e.jsx("span",{className:`${s.statusDot} ${we(a.status)}`}),e.jsx(x,{text:(i==null?void 0:i.tooltip)??t(`settings.license.${a.status}.tooltip`,"Current license activation state."),children:(i==null?void 0:i.label)??t(`settings.license.${a.status}`,a.status)})]}),e.jsx("dt",{children:e.jsx(c,{label:t("settings.license.tier","Tier"),tooltip:t("settings.license.tier.tooltip","Current subscription tier for available WROX Dashboard features.")})}),e.jsx("dd",{className:a.tier==="pro"?s.proBadge:"",children:e.jsx(x,{text:t(`tier.${a.tier}.tooltip`,"Available feature set for the connected license."),children:a.tier==="pro"?t("tier.pro","Pro"):t("tier.basic","Basic")})}),S&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(c,{label:t("settings.license.key","Key"),tooltip:t("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("dd",{children:e.jsx(x,{text:t("settings.license.keyValue.tooltip","Masked license key currently loaded by the server."),children:S})})]}),a.provider&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(c,{label:t("settings.license.provider","Provider"),tooltip:t("settings.license.provider.tooltip","License provider used to validate this key.")})}),e.jsx("dd",{children:e.jsx(x,{text:t("settings.license.providerValue.tooltip","License provider used to validate this key."),children:a.provider})})]})]}),(i==null?void 0:i.detail)&&e.jsx("p",{className:`${s.licenseNotice} ${i.detailTone}`,children:a.refreshBlockedReason==="missing_session_token"?t("settings.license.detail.manualActivation","Manual activation required to restore Pro access."):i.detail}),a.refreshBlockedReason==="missing_session_token"&&e.jsx("p",{className:`${s.licenseNotice} ${s.licenseNoticeMuted}`,children:i==null?void 0:i.detail})]})})(),a.tier==="basic"&&e.jsx("a",{className:s.upgradeLink,href:"https://gum.co/u/din5in7h",target:"_blank",rel:"noopener noreferrer",children:t("tier.upgrade")})]}):e.jsx("div",{className:s.loading,children:t("settings.license.unavailable")}),e.jsxs("div",{className:s.licenseControls,children:[e.jsxs("div",{className:s.licenseControlRow,children:[e.jsxs("label",{className:s.licenseField,children:[e.jsx("span",{className:s.controlLabel,children:e.jsx(c,{label:t("settings.license.provider","Provider"),tooltip:t("settings.license.provider.tooltip","License provider used to validate this key.")})}),e.jsx("select",{"aria-label":t("settings.license.provider","Provider"),className:s.select,value:E,disabled:v||b,onChange:()=>{},children:e.jsx("option",{value:"gumroad",children:"gumroad"})})]}),e.jsx("button",{type:"button",className:s.actionBtn,disabled:v||b||!R,onClick:()=>{_()},children:b?t("common.loading"):t("settings.license.refresh","Refresh License")}),e.jsx("button",{type:"button",className:s.actionBtn,disabled:v||b||!R,onClick:()=>{k()},children:b?t("common.loading"):t("settings.license.reset","Reset License")})]}),e.jsxs("div",{className:s.licenseControlRow,children:[e.jsxs("label",{className:`${s.licenseField} ${s.licenseFieldGrow}`,children:[e.jsx("span",{className:s.controlLabel,children:e.jsx(c,{label:t("settings.license.keyInput","License Key"),tooltip:t("settings.license.key.tooltip","Masked license key currently loaded by the server.")})}),e.jsx("input",{"aria-label":t("settings.license.keyInput","License Key"),className:s.textInput,type:"text",value:f,disabled:v||b,onChange:i=>N(i.target.value)})]}),e.jsx("button",{type:"button",className:s.actionBtn,disabled:v||b,onClick:()=>{(async()=>await A(f)&&N(""))()},children:b?t("common.loading"):t("settings.license.activate","Activate License")})]}),y&&e.jsx("p",{className:s.licenseMessage,children:y})]})]})]}),e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx(c,{label:t("settings.general.title","General Settings"),tooltip:t("settings.general.title.tooltip","Hot settings that apply immediately when changed.")}),e.jsx(x,{text:t("settings.general.liveApply.tooltip","Changes in this section are applied immediately without a separate save button."),children:e.jsx("span",{className:`${s.headerBadge} ${s.headerBadgeLive}`,children:t("settings.general.liveApply","Live Apply")})})]}),u?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s.settingRow,children:[e.jsx("span",{className:s.settingLabel,children:e.jsx(c,{label:t("settings.general.logLevel","Log Level"),tooltip:t("settings.general.logLevel.tooltip","Sets how much detail WROX Dashboard writes to its logs.")})}),e.jsxs("div",{className:s.settingControl,children:[e.jsx("select",{className:s.select,value:u.hot.LOG_LEVEL,onChange:i=>C("LOG_LEVEL",i.target.value),children:Oe.map(i=>e.jsx("option",{value:i,children:i},i))}),h==="LOG_LEVEL"&&e.jsx("span",{className:s.savedIndicator,children:t("settings.general.applied")})]})]}),e.jsxs("div",{className:s.settingRow,children:[e.jsx("span",{className:s.settingLabel,children:e.jsx(c,{label:t("settings.general.localHistory","Tool History Recording"),tooltip:t("settings.general.localHistory.tooltip","Stores local tool execution history for the WROX Dashboard history views.")})}),e.jsxs("div",{className:s.settingControl,children:[e.jsx("span",{className:`${s.savedIndicator} ${h==="ENABLE_LOCAL_HISTORY"?"":s.savedIndicatorHidden}`,children:t("settings.general.applied","Applied")}),e.jsx(I,{checked:u.hot.ENABLE_LOCAL_HISTORY,ariaLabel:t("settings.general.localHistory","Tool History Recording"),testId:"settings-toggle-enable-local-history",onChange:i=>C("ENABLE_LOCAL_HISTORY",i)})]})]}),e.jsxs("div",{className:s.settingRow,children:[e.jsx("span",{className:s.settingLabel,children:e.jsx(c,{label:t("settings.general.localStatistics","Tool Statistics Collection"),tooltip:t("settings.general.localStatistics.tooltip","Aggregates local usage statistics for WROX Dashboard reporting.")})}),e.jsxs("div",{className:s.settingControl,children:[e.jsx("span",{className:`${s.savedIndicator} ${h==="ENABLE_LOCAL_STATISTICS"?"":s.savedIndicatorHidden}`,children:t("settings.general.applied","Applied")}),e.jsx(I,{checked:u.hot.ENABLE_LOCAL_STATISTICS,ariaLabel:t("settings.general.localStatistics","Tool Statistics Collection"),testId:"settings-toggle-enable-local-statistics",onChange:i=>C("ENABLE_LOCAL_STATISTICS",i)})]})]}),e.jsxs("div",{className:s.settingRow,children:[e.jsx("span",{className:s.settingLabel,children:e.jsx(c,{label:t("settings.general.contextCapture","Context Capture"),tooltip:t("settings.general.contextCapture.tooltip","When enabled, WROX Dashboard records structured execution context for changelog and playtest views.")})}),e.jsxs("div",{className:s.settingControl,children:[e.jsx("span",{className:`${s.savedIndicator} ${h==="ENABLE_CONTEXT_CAPTURE"?"":s.savedIndicatorHidden}`,children:t("settings.general.applied","Applied")}),e.jsx(I,{checked:u.hot.ENABLE_CONTEXT_CAPTURE,ariaLabel:t("settings.general.contextCapture","Context Capture"),testId:"settings-toggle-enable-context-capture",onChange:i=>C("ENABLE_CONTEXT_CAPTURE",i)})]})]}),e.jsxs("div",{className:s.settingRow,children:[e.jsx("span",{className:s.settingLabel,children:e.jsx(c,{label:t("settings.general.requestTimeout","Request Timeout"),tooltip:t("settings.general.requestTimeout.tooltip","Maximum time WROX Dashboard waits for a request before it fails.")})}),e.jsxs("div",{className:s.settingControl,children:[e.jsx("input",{type:"number",className:s.numberInput,value:u.hot.REQUEST_TIMEOUT,min:1e3,max:12e4,step:1e3,onChange:i=>{const n=parseInt(i.target.value,10);isNaN(n)||C("REQUEST_TIMEOUT",n)}}),e.jsx(x,{text:t("settings.general.requestTimeout.unit.tooltip","Request timeout is measured in milliseconds."),children:e.jsx("span",{className:s.unit,children:t("settings.general.requestTimeout.unit","ms")})}),h==="REQUEST_TIMEOUT"&&e.jsx("span",{className:s.savedIndicator,children:t("settings.general.applied","Applied")})]})]})]}):e.jsx("div",{className:s.loading,children:t("settings.unavailable")})]}),e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx(c,{label:t("settings.cold.title","Server Environment"),tooltip:t("settings.cold.title.tooltip","Read-only server environment values loaded at startup.")}),e.jsx(x,{text:t("settings.readOnly.tooltip","This section shows values that cannot be edited from WROX Dashboard."),children:e.jsx("span",{className:s.headerBadge,children:t("settings.readOnly","Read-only")})})]}),u?e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:s.coldGrid,children:[e.jsx("dt",{children:e.jsx(c,{label:"HTTP_PORT",tooltip:t("settings.cold.httpPort.tooltip","Port number used by the MCP WROX Dashboard HTTP server.")})}),e.jsx("dd",{children:u.cold.HTTP_PORT}),e.jsx("dt",{children:e.jsx(c,{label:"HTTP_HOST",tooltip:t("settings.cold.httpHost.tooltip","Host interface that the MCP WROX Dashboard HTTP server binds to.")})}),e.jsx("dd",{children:u.cold.HTTP_HOST}),e.jsx("dt",{children:e.jsx(c,{label:"DASHBOARD_AUTO_OPEN",tooltip:t("settings.cold.dashboardAutoOpen.tooltip","Controls whether WROX Dashboard opens automatically in the browser when the server starts.")})}),e.jsx("dd",{children:e.jsx(x,{text:t("settings.cold.dashboardAutoOpen.value.tooltip","Current startup behavior for opening WROX Dashboard in a browser."),children:String(u.cold.DASHBOARD_AUTO_OPEN)})})]}),e.jsx("p",{className:s.coldHint,children:t("settings.cold.hint","Set via environment variables to change these values.")})]}):e.jsx("div",{className:s.loading,children:t("settings.unavailable")})]}),e.jsxs("div",{className:s.card,children:[e.jsx("div",{className:s.cardHeader,children:e.jsx(c,{label:t("settings.language.title","Language"),tooltip:t("settings.language.title.tooltip","Choose how the WROX Dashboard interface text is localized.")})}),e.jsxs("div",{className:s.langRow,children:[e.jsx("label",{children:e.jsx(c,{label:t("settings.language.dashboard","WROX Dashboard Language"),tooltip:t("settings.language.dashboard.tooltip","Overrides the WROX Dashboard language or follows the system language when set to Auto.")})}),e.jsxs("select",{className:s.select,value:l,onChange:i=>L(i.target.value),children:[e.jsx("option",{value:$,children:t("settings.language.auto","Auto")}),G.map(i=>e.jsx("option",{value:i,children:Ie[i]??i},i))]})]})]})]})}export{He as Component};
@@ -1,4 +0,0 @@
1
- import{r as c,a as C,D as S,u as P,k as R,l as k,j as e,d as L,i as $,T as x,m as A}from"./index-aMbdHsW4.js";import{I as m}from"./InfoLabel-DG5Q_c5f.js";import{C as O}from"./ConfirmModal-BqqXDrdf.js";import{S as E}from"./StatusBadge-D-Jxp4ai.js";import{D as B,a as D,u as H,T as M}from"./TierComparison-Ct-fbCs5.js";import{t as l}from"./TierPromo.module-CAoUYgIx.js";const F=5e3;function U(){const[t,n]=c.useState(null),[w,p]=c.useState([]),[o,u]=c.useState(!0),[y,f]=c.useState(null),_=c.useRef(null),h=c.useRef(null),r=c.useCallback(async()=>{var d;try{const[i,b]=await Promise.all([C.get("/sync/status"),C.get("/api/dashboard/place-summary")]);n(i);const j=(d=b.places)==null?void 0:d.find(N=>N.isActive);f((j==null?void 0:j.placeDirName)??null)}catch{}},[]),g=c.useCallback(async()=>{try{const d=await C.get("/sync/history",{limit:"30"});p(d.entries??[])}catch{p([])}},[]),s=c.useCallback(async()=>{await Promise.all([r(),g()]),u(!1)},[r,g]),T=c.useCallback(()=>{s()},[s]),I=c.useCallback(async()=>{await C.post("/api/dashboard/sync/history/clear"),p([]),r()},[r]);return c.useEffect(()=>(s(),h.current=setInterval(s,F),()=>{h.current&&clearInterval(h.current)}),[s]),c.useEffect(()=>{const d=new S;_.current=d,d.connect();const i=d.on("sync",()=>{r(),g()});return()=>{i(),d.disconnect(),_.current=null}},[r,g]),{status:t,history:w,loading:o,activePlaceDirName:y,refresh:T,clearHistory:I}}function W({icon:t,title:n,description:w,benefits:p,upgradeLabel:o,upgradeHref:u}){const{t:y}=P(),[f,_]=c.useState(!1),{trackEvent:h}=R(),{pathname:r}=k(),g=r.replace(/^\//,"").split("/")[0]||"overview";return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:l.panel,children:[t&&e.jsx("div",{className:l.panelIcon,children:t}),e.jsx("div",{className:l.panelTitle,children:n}),e.jsx("div",{className:l.panelDesc,children:w}),e.jsx("ul",{className:l.benefitList,children:p.map(s=>e.jsx("li",{className:l.benefitItem,children:s},s))}),e.jsx("div",{className:l.panelDiscountWrap,children:e.jsx(B,{variant:"centered"})}),e.jsxs("div",{className:l.actions,children:[e.jsx("button",{className:`${l.btn} ${l.btnOutline}`,onClick:()=>{h("dashboard_click_event",{click_target:"tier_compare",placement:"tier_panel",page:g}),_(!0)},children:y("tier.compare","Basic vs Pro")}),e.jsx("a",{className:`${l.btn} ${l.btnPrimary}`,href:u,target:"_blank",rel:"noreferrer",onClick:()=>h("dashboard_click_event",{click_target:"upgrade_cta",placement:"tier_panel",page:g}),children:o})]})]}),f&&e.jsx(D,{onClose:()=>_(!1)})]})}const q="_page_1warw_2",G="_card_1warw_10",z="_cardHeader_1warw_17",V="_clearButton_1warw_29",X="_statusRow_1warw_39",Y="_metaItem_1warw_46",J="_statusGrid_1warw_52",Q="_table_1warw_71",Z="_directionRail_1warw_99",K="_endpointLabel_1warw_105",ee="_optionRail_1warw_109",te="_directionOption_1warw_115",se="_directionOptionActive_1warw_129",ae="_directionOptionInactive_1warw_133",ne="_direction_forward_1warw_139",ie="_direction_bidirectional_1warw_143",ce="_direction_reverse_1warw_147",oe="_lockBadge_1warw_152",re="_proBadge_1warw_160",le="_forwardBadge_1warw_174",de="_logContainer_1warw_187",pe="_logEntry_1warw_194",ue="_logTime_1warw_206",ye="_logType_1warw_212",he="_logTypeWrite_1warw_221",me="_logTypeUpdate_1warw_225",_e="_logTypeDelete_1warw_229",ge="_logTypeIdle_1warw_233",we="_logPath_1warw_237",fe="_logEmpty_1warw_244",xe="_overlay_1warw_251",be="_overlayTitle_1warw_261",je="_overlayMessage_1warw_268",ve="_checklist_1warw_274",Te="_checkItem_1warw_284",Ne="_upgradePanel_1warw_300",Ce="_upgradePanelHeader_1warw_307",Ie="_benefitList_1warw_315",Pe="_benefitItem_1warw_324",Se="_upgradeActions_1warw_339",Re="_btn_1warw_344",ke="_btnPrimary_1warw_361",Le="_disabled_1warw_372",a={page:q,card:G,cardHeader:z,clearButton:V,statusRow:X,metaItem:Y,statusGrid:J,table:Q,directionRail:Z,endpointLabel:K,optionRail:ee,directionOption:te,directionOptionActive:se,directionOptionInactive:ae,direction_forward:ne,direction_bidirectional:ie,direction_reverse:ce,lockBadge:oe,proBadge:re,forwardBadge:le,logContainer:de,logEntry:pe,logTime:ue,logType:ye,logTypeWrite:he,logTypeUpdate:me,logTypeDelete:_e,logTypeIdle:ge,logPath:we,logEmpty:fe,overlay:xe,overlayTitle:be,overlayMessage:je,checklist:ve,checkItem:Te,upgradePanel:Ne,upgradePanelHeader:Ce,benefitList:Ie,benefitItem:Pe,upgradeActions:Se,btn:Re,btnPrimary:ke,disabled:Le},$e=[{key:"forward",symbol:"←"},{key:"bidirectional",symbol:"↔"},{key:"reverse",symbol:"→"}];function Ae(t){const n=new Date(t);return`${String(n.getHours()).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}`}function Oe(t){switch(t){case"write":return a.logTypeWrite;case"update":return a.logTypeUpdate;case"delete":return a.logTypeDelete;default:return a.logTypeIdle}}function Ee(t){switch(t){case"syncing":return"syncing";case"initializing":return"initializing";case"idle":return"idle";default:return"offline"}}function Be(t,n,w,p){const o=t(`sync.directions.cat.${n}`,n.charAt(0).toUpperCase()+n.slice(1)),u=t("sync.directions.endpoint.local","Local"),y=t("sync.directions.endpoint.studio","Studio");switch(w){case"forward":return[`${o}: ${u} <- ${y}`,t("sync.directions.tooltip.forward.body","Studio changes sync to local files only")].join(`
2
- `);case"bidirectional":return[`${o}: ${u} <-> ${y}`,t("sync.directions.tooltip.bidirectional.body","Two-way sync between Local and Studio"),p?t("sync.directions.tooltip.proRequired","Pro required in Basic tier"):""].filter(Boolean).join(`
3
- `);case"reverse":return[`${o}: ${u} -> ${y}`,t("sync.directions.tooltip.reverse.body","Push local file changes to Studio"),p?t("sync.directions.tooltip.proRequired","Pro required in Basic tier"):""].filter(Boolean).join(`
4
- `);default:return o}}const De=["scripts","values","containers","data","services"];function He(t,n){return n==="manual"?t("sync.directions.mode.manual","Manual"):n==="auto"?t("sync.directions.mode.auto","Auto"):"-"}function Me(t,n){return n==="manual"?t("sync.directions.mode.manual.tooltip","Applies sync changes only when you trigger them manually."):n==="auto"?t("sync.directions.mode.auto.tooltip","Applies sync changes automatically when updates arrive."):""}function Fe(t,n){switch(n){case"write":return t("sync.log.type.write","WRITE");case"update":return t("sync.log.type.update","UPDATE");case"delete":return t("sync.log.type.delete","DELETE");default:return t("sync.log.type.idle","IDLE")}}function Ue(t,n){switch(n){case"write":return t("sync.log.type.write.tooltip","A new sync output was written to disk.");case"update":return t("sync.log.type.update.tooltip","An existing synced file or instance was updated.");case"delete":return t("sync.log.type.delete.tooltip","A synced file or instance was removed.");default:return t("sync.log.type.idle.tooltip","A sync event was recorded without a file mutation.")}}function Ye(){const{t}=P(),{level:n}=L(),{tier:w,loading:p}=H(),o=U(),{show:u}=$(),[y,f]=c.useState(!1),[_,h]=c.useState(!1),r=!p&&w==="basic";if(n==="disconnected"||n==="serverOnly")return e.jsx("div",{className:a.page,children:e.jsx("div",{className:a.card,children:e.jsxs("div",{className:a.overlay,children:[e.jsx("div",{className:a.overlayTitle,children:t("sync.overlay.title","Roblox Studio plugin required")}),e.jsx("div",{className:a.overlayMessage,children:t("sync.overlay.message","Sync status will be available once the Roblox Studio plugin connects.")}),e.jsxs("ul",{className:a.checklist,children:[e.jsx("li",{className:a.checkItem,children:t("sync.overlay.check1","Is Roblox Studio running?")}),e.jsx("li",{className:a.checkItem,children:t("sync.overlay.check2","Is the WROX Plugin installed?")})]})]})})});const s=o.status,T=o.history,I=Ee(s==null?void 0:s.state),d=async()=>{h(!0);try{await o.clearHistory(),u(t("toast.clearSuccess","Cleared successfully"),"success"),f(!1)}catch{u(t("toast.clearFailed","Failed to clear data"),"error")}finally{h(!1)}};return e.jsxs("div",{className:a.page,children:[e.jsxs("div",{className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(x,{text:t("sync.status.title.tooltip","Current Studio and local file sync status for this place."),children:t("sync.status.title","Sync Status")}),r&&e.jsx(x,{text:t("sync.status.forwardOnly.tooltip","Basic tier allows Studio to local forward sync only."),children:e.jsx("span",{className:a.forwardBadge,children:t("sync.status.forwardOnly","Forward Only")})})]}),e.jsxs("div",{className:a.statusRow,children:[e.jsx(E,{status:I}),(s==null?void 0:s.placeName)&&e.jsxs("span",{className:a.metaItem,children:[e.jsx(m,{label:t("sync.status.place","Place"),tooltip:t("sync.status.place.tooltip","Connected Roblox place name and place ID.")}),": ",s.placeName,s.placeId?` (${s.placeId})`:""]})]}),e.jsxs("dl",{className:a.statusGrid,children:[(s==null?void 0:s.syncRoot)&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(m,{label:t("sync.status.path","Path"),tooltip:t("sync.status.path.tooltip","Local filesystem root currently used for sync output.")})}),e.jsx("dd",{children:s.syncRoot})]}),o.activePlaceDirName&&(s==null?void 0:s.syncRoot)&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(m,{label:t("sync.status.placePath","Place Path"),tooltip:t("sync.status.placePath.tooltip","Active place directory where explorer files are synced.")})}),e.jsx("dd",{children:`${s.syncRoot}/${o.activePlaceDirName}/explorer`})]}),(s==null?void 0:s.instanceCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(m,{label:t("sync.status.instances","Instances"),tooltip:t("sync.status.instances.tooltip","Total synced Roblox instances tracked in the local mirror.")})}),e.jsx("dd",{children:s.instanceCount})]}),(s==null?void 0:s.scriptCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(m,{label:t("sync.status.scripts","Scripts"),tooltip:t("sync.status.scripts.tooltip","Total synced script files currently indexed for this place.")})}),e.jsx("dd",{children:s.scriptCount})]}),(s==null?void 0:s.state)==="syncing"&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(m,{label:t("sync.status.state","State"),tooltip:t("sync.status.state.tooltip","Current runtime sync state reported by the server.")})}),e.jsx("dd",{children:t("status.syncing","Syncing")})]})]})]}),(s==null?void 0:s.directions)&&e.jsxs("div",{className:a.card,children:[e.jsx("div",{className:a.cardHeader,children:e.jsx(x,{text:t("sync.directions.title.tooltip","Per-category sync direction and apply behavior between Local and Studio."),children:t("sync.directions.title","Sync Directions")})}),e.jsxs("table",{className:a.table,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx(m,{label:t("sync.directions.type","Type"),tooltip:t("sync.directions.type.tooltip","Sync category affected by this rule.")})}),e.jsx("th",{children:e.jsx(m,{label:t("sync.directions.direction","Direction"),tooltip:t("sync.directions.direction.tooltip","Whether each category syncs from Studio, to Studio, or both ways.")})}),e.jsx("th",{children:e.jsx(m,{label:t("sync.directions.applyMode","Apply Mode"),tooltip:t("sync.directions.applyMode.tooltip","How incoming sync changes are applied for this category.")})})]})}),e.jsx("tbody",{children:De.map(i=>{var N;const b=s.directions[i],j=(N=s.applyModes)==null?void 0:N[i];return e.jsxs("tr",{children:[e.jsx("td",{children:t(`sync.directions.cat.${i}`,i.charAt(0).toUpperCase()+i.slice(1))}),e.jsx("td",{children:e.jsxs("div",{className:a.directionRail,"aria-label":`${i}-direction-rail`,children:[e.jsx(x,{text:t("sync.directions.endpoint.local.tooltip","Local files on disk are always shown on the left side of the direction rail."),children:e.jsx("span",{className:a.endpointLabel,children:t("sync.directions.endpoint.local","Local")})}),e.jsx("span",{className:a.optionRail,children:$e.map(v=>e.jsx(A,{text:Be(t,i,v.key,r),children:e.jsx("span",{className:`${a.directionOption} ${b===v.key?a.directionOptionActive:a.directionOptionInactive} ${a[`direction_${v.key}`]??""}`,"data-active":b===v.key?"true":"false",children:v.symbol})},v.key))}),e.jsx(x,{text:t("sync.directions.endpoint.studio.tooltip","Roblox Studio is always shown on the right side of the direction rail."),children:e.jsx("span",{className:a.endpointLabel,children:t("sync.directions.endpoint.studio","Studio")})})]})}),e.jsx("td",{children:e.jsx(x,{text:Me(t,j),children:He(t,j)})})]},i)})})]})]}),e.jsxs("div",{className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx("span",{children:t("sync.log.title","Sync Log")}),e.jsx("button",{className:a.clearButton,onClick:()=>f(!0),children:t("common.clear","Clear")})]}),e.jsx("div",{className:a.logContainer,children:T.length===0?e.jsx("div",{className:a.logEmpty,children:t("sync.log.empty","No sync events yet")}):T.map((i,b)=>e.jsxs("div",{className:a.logEntry,children:[e.jsx("span",{className:a.logTime,children:Ae(i.timestamp)}),e.jsx(x,{text:Ue(t,i.type),children:e.jsx("span",{className:`${a.logType} ${Oe(i.type)}`,children:Fe(t,i.type)})}),e.jsxs("span",{className:a.logPath,children:[i.path,i.details?` — ${i.details}`:""]})]},b))})]}),r&&e.jsx(W,{title:t("sync.upgrade.title","Unlock Full Sync with Pro"),description:t("tier.banner.save","Save AI tokens with Pro!"),benefits:[t("sync.upgrade.benefit1","Bidirectional sync — edit files, auto-apply to Studio"),t("sync.upgrade.benefit2","Reverse sync — push file changes back to Studio"),t("sync.upgrade.benefit3","Full sync history and detailed change log")],upgradeLabel:t("sync.upgrade.buy","Upgrade to Pro"),upgradeHref:M.sync}),e.jsx(O,{open:y,title:t("sync.clear.title","Clear sync log?"),message:t("sync.clear.message","This permanently removes the stored sync log for the current place."),cancelLabel:t("common.cancel","Cancel"),confirmLabel:t("common.clear","Clear"),loading:_,onCancel:()=>!_&&f(!1),onConfirm:d})]})}export{Ye as Component};