@weppy/roblox-mcp 2.7.10 → 2.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +3 -3
- package/dashboard/dist/assets/{ChangelogDetailPage-B7ugySeq.js → ChangelogDetailPage-DvPPM9T3.js} +1 -1
- package/dashboard/dist/assets/ChangelogPage-Bcs7jwin.js +1 -0
- package/dashboard/dist/assets/ChangelogPage-DsP0fTsc.css +1 -0
- package/dashboard/dist/assets/{ConfirmModal-Dg8_uxRE.js → ConfirmModal-DuQQ9DXj.js} +1 -1
- package/dashboard/dist/assets/{ConnectionPage-COgl_4EK.js → ConnectionPage-Cn93dfbJ.js} +1 -1
- package/dashboard/dist/assets/{GameChangeDetail-D31gfmkK.js → GameChangeDetail-oLGK_BBE.js} +1 -1
- package/dashboard/dist/assets/{InfoLabel-Bp3j_i44.js → InfoLabel-BcS5cIV_.js} +1 -1
- package/dashboard/dist/assets/{OverviewPage-Bl67HNuU.js → OverviewPage-E8WwwGNq.js} +1 -1
- package/dashboard/dist/assets/PlaytestPage-BWsipUQn.js +11 -0
- package/dashboard/dist/assets/SettingsPage-DwbN1aSf.js +1 -0
- package/dashboard/dist/assets/{StatusBadge-4qs9buFz.js → StatusBadge-BSLWjWJC.js} +1 -1
- package/dashboard/dist/assets/SyncPage-COxqxAjv.css +1 -0
- package/dashboard/dist/assets/SyncPage-x5VxuyyM.js +4 -0
- package/dashboard/dist/assets/{Tabs-BCiSXsKz.js → Tabs-CQJ_0DaJ.js} +1 -1
- package/dashboard/dist/assets/{ToolsPage-BHGtm0IX.js → ToolsPage-BhDP0i6y.js} +1 -1
- package/dashboard/dist/assets/TooltipText-baLGgLqW.js +1 -0
- package/dashboard/dist/assets/UiStudioPage-CFrAh41s.js +16 -0
- package/dashboard/dist/assets/WhatsNewPage-D6bLZq0v.js +1 -0
- package/dashboard/dist/assets/index-CZ4Jn6CC.css +1 -0
- package/dashboard/dist/assets/index-IFwX560t.js +449 -0
- package/dashboard/dist/assets/{sample-requests-BSEgt_Th.js → sample-requests-DeMovtVY.js} +1 -1
- package/dashboard/dist/assets/{useLiveUptime-gW3LP94r.js → useLiveUptime-BVeJvePr.js} +1 -1
- package/dashboard/dist/index.html +2 -2
- package/dist/index.js +58 -58
- package/package.json +1 -1
- package/roblox-plugin/WeppyRobloxMCP.rbxm +0 -0
- package/dashboard/dist/assets/ChangelogPage-B7-iV5Ir.js +0 -1
- package/dashboard/dist/assets/ChangelogPage-CNxAGfwG.css +0 -1
- package/dashboard/dist/assets/PlaytestPage-D-gmWEk9.js +0 -11
- package/dashboard/dist/assets/SettingsPage-BdUpzUq9.js +0 -1
- package/dashboard/dist/assets/SyncPage-BaOvmPdn.js +0 -4
- package/dashboard/dist/assets/SyncPage-Dm7Ni3j_.css +0 -1
- package/dashboard/dist/assets/TierComparison-DGh9vLz0.css +0 -1
- package/dashboard/dist/assets/TierComparison-Lkag7n54.js +0 -1
- package/dashboard/dist/assets/TooltipText-Bgk-NYKr.js +0 -1
- package/dashboard/dist/assets/UiStudioPage-CvpsOKcP.js +0 -16
- package/dashboard/dist/assets/WhatsNewPage-g_24s3hx.js +0 -1
- package/dashboard/dist/assets/index-C9gmLH8z.js +0 -401
- package/dashboard/dist/assets/index-CX4MHzNt.css +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weppy/roblox-mcp",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.11",
|
|
4
4
|
"description": "MCP (Model Context Protocol) server for Roblox Studio integration - enables AI coding agents to interact with Roblox Studio in real-time",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,a as A,D as O,u as R,j as e,i as P,c as V,l as K,m as G}from"./index-C9gmLH8z.js";import{C as H}from"./ConfirmModal-Dg8_uxRE.js";import{T as $}from"./TooltipText-Bgk-NYKr.js";import{T as U}from"./Tabs-BCiSXsKz.js";const Z=10;function q(){const[s,p]=l.useState([]),[t,n]=l.useState(0),[a,u]=l.useState(!1),[r,_]=l.useState(!0),[i,b]=l.useState(0),[g,x]=l.useState("all"),v=l.useRef(null),f=l.useCallback(async(d,y)=>{_(!0);try{const j={limit:String(Z),offset:String(d)};y!=="all"&&(j.status=y);const N=await A.get("/api/dashboard/changelog",j);p(N.entries),n(N.total),u(N.hasMore)}catch{p([]),n(0),u(!1)}finally{_(!1)}},[]),C=l.useCallback(()=>{f(i,g)},[f,i,g]),c=l.useCallback(async()=>{await A.post("/api/dashboard/changelog/clear"),p([]),n(0),u(!1)},[]);return l.useEffect(()=>{f(i,g)},[f,i,g]),l.useEffect(()=>{const d=new O;v.current=d,d.connect();const y=d.on("command",()=>{f(i,g)});return()=>{y(),d.disconnect(),v.current=null}},[f,i,g]),{entries:s,total:t,hasMore:a,loading:r,offset:i,statusFilter:g,setOffset:b,setStatusFilter:x,refresh:C,clear:c}}const z="_card_1n89u_2",J="_header_1n89u_17",Q="_statusBadge_1n89u_24",W="_statusDot_1n89u_35",X="_active_1n89u_41",Y="_completed_1n89u_50",ee="_timeRange_1n89u_58",te="_summaryList_1n89u_65",se="_summaryItem_1n89u_71",ae="_summaryIcon_1n89u_80",ne="_summaryText_1n89u_86",oe="_progressBar_1n89u_91",ce="_progressFill_1n89u_99",ie="_emptySummary_1n89u_112",le="_contextBlock_1n89u_120",re="_contextLabel_1n89u_129",ge="_contextValue_1n89u_137",o={card:z,header:J,statusBadge:Q,statusDot:W,active:X,completed:Y,timeRange:ee,summaryList:te,summaryItem:se,summaryIcon:ae,summaryText:ne,progressBar:oe,progressFill:ce,emptySummary:ie,contextBlock:le,contextLabel:re,contextValue:ge};function D(s){if(!s)return"--:--";const p=new Date(s);return`${String(p.getHours()).padStart(2,"0")}:${String(p.getMinutes()).padStart(2,"0")}`}function de({entry:s,onClick:p}){var j,N,I,k,w,B,L,M,E,F;const{t}=R(),n=s.changeSummary,a=s.status==="active",u=s.isBootstrapOnly===!0,r=[],_=n.scriptsModified+n.scriptsCreated;if(_>0){const m=[];n.scriptsModified>0&&m.push(`${n.scriptsModified} ${t("changelog.card.modified","modified")}`),n.scriptsCreated>0&&m.push(`${n.scriptsCreated} ${t("changelog.card.created","created")}`);const S=`${_} ${t("changelog.card.scripts","scripts")} ${m.join(", ")}`;r.push({icon:"📝",text:S,tooltip:t("changelog.card.scripts.tooltip","Script changes made in this session.")})}const i=n.instancesCreated+n.instancesDeleted+n.instancesMoved;if(i>0){const m=[];n.instancesCreated>0&&m.push(`${n.instancesCreated} ${t("changelog.card.created","created")}`),n.instancesDeleted>0&&m.push(`${n.instancesDeleted} ${t("changelog.card.deleted","deleted")}`),n.instancesMoved>0&&m.push(`${n.instancesMoved} ${t("changelog.card.moved","moved")}`);const S=`${i} ${t("changelog.card.instances","instances")} ${m.join(", ")}`;r.push({icon:"🧱",text:S,tooltip:t("changelog.card.instances.tooltip","Instance create, delete, move, or clone changes in this session.")})}n.propertiesChanged>0&&r.push({icon:"🎨",text:`${n.propertiesChanged} ${t("changelog.card.propertiesChanged","properties changed")}`,tooltip:t("changelog.card.propertiesChanged.tooltip","Property value changes recorded for this session.")}),n.lightingChanged&&r.push({icon:"🌅",text:t("changelog.card.lightingConfigured","Lighting configured"),tooltip:t("changelog.card.lightingConfigured.tooltip","Lighting or atmosphere settings changed in this session.")}),n.terrainChanged&&r.push({icon:"⛰️",text:t("changelog.card.terrainConfigured","Terrain configured"),tooltip:t("changelog.card.terrainConfigured.tooltip","Terrain data or terrain settings changed in this session.")}),n.assetsInserted>0&&r.push({icon:"📦",text:`${n.assetsInserted} ${t("changelog.card.assetsInserted","assets inserted")}`,tooltip:t("changelog.card.assetsInserted.tooltip","Assets inserted into the place during this session.")});const b=D(s.startTime),g=a?t("changelog.card.inProgress","in progress"):s.endTime?D(s.endTime):"--:--",x=u?t("changelog.card.bootstrapStatus","Bootstrap"):a?t("changelog.card.active","Active"):t("changelog.card.completed","Completed"),v=u?t("changelog.card.bootstrapStatus.tooltip","This session only contains the initial sync bootstrap snapshot."):a?t("changelog.card.active.tooltip","This session is still receiving new game changes."):t("changelog.card.completed.tooltip","This session has ended and no more changes are expected."),f=u?t("changelog.card.bootstrapSummary","Initial sync snapshot"):t("changelog.card.noChanges","No changes yet"),C=u?t("changelog.card.bootstrapSummary.tooltip","Initial file sync writes are collapsed into a single bootstrap snapshot row."):t("changelog.card.noChanges.tooltip","No game changes have been extracted for this session yet."),c=(N=(j=s.contextSummary)==null?void 0:j.intent)==null?void 0:N.trim(),d=((B=(w=(k=(I=s.contextSummary)==null?void 0:I.affectedAreas)==null?void 0:k[0])==null?void 0:w.label)==null?void 0:B.trim())||((M=(L=s.contextSummary)==null?void 0:L.testScenario)==null?void 0:M.trim()),y=(F=(E=s.verificationSummary)==null?void 0:E.label)==null?void 0:F.trim();return e.jsxs("div",{className:o.card,onClick:p,children:[e.jsxs("div",{className:o.header,children:[e.jsx($,{text:v,children:e.jsxs("span",{className:`${o.statusBadge} ${a?o.active:o.completed}`,children:[e.jsx("span",{className:o.statusDot}),x]})}),e.jsxs("span",{className:o.timeRange,children:[b,"~",g]})]}),e.jsx("div",{className:o.summaryList,children:r.length>0?r.map((m,S)=>e.jsxs("div",{className:o.summaryItem,children:[e.jsx("span",{className:o.summaryIcon,children:m.icon}),e.jsx($,{text:m.tooltip,children:e.jsx("span",{className:o.summaryText,children:m.text})})]},S)):e.jsx($,{text:C,children:e.jsx("span",{className:o.emptySummary,style:{display:"block"},children:f})})}),c&&e.jsxs("div",{className:o.contextBlock,children:[e.jsx("span",{className:o.contextLabel,children:t("changelog.card.sessionIntent","Session intent")}),e.jsx("span",{className:o.contextValue,children:c})]}),!c&&d&&e.jsxs("div",{className:o.contextBlock,children:[e.jsx("span",{className:o.contextLabel,children:t("changelog.card.representativeArea","Representative area")}),e.jsx("span",{className:o.contextValue,children:d})]}),y&&e.jsxs("div",{className:o.contextBlock,children:[e.jsx("span",{className:o.contextLabel,children:t("changelog.card.verification","Verification")}),e.jsx("span",{className:o.contextValue,children:y})]}),a&&e.jsx("div",{className:o.progressBar,children:e.jsx("div",{className:o.progressFill})})]})}const me="_page_1ynbw_2",he="_limitNotice_1ynbw_9",pe="_limitNoticeTitle_1ynbw_18",ue="_limitNoticeText_1ynbw_25",fe="_clearButton_1ynbw_33",_e="_list_1ynbw_54",xe="_empty_1ynbw_61",ye="_loading_1ynbw_70",be="_pagination_1ynbw_79",ve="_pageInfo_1ynbw_87",Ne="_btn_1ynbw_93",h={page:me,limitNotice:he,limitNoticeTitle:pe,limitNoticeText:ue,clearButton:fe,list:_e,empty:xe,loading:ye,pagination:be,pageInfo:ve,btn:Ne},T=10,Ce=[{key:"all",labelKey:"changelog.filter.all"},{key:"active",labelKey:"changelog.filter.active"},{key:"completed",labelKey:"changelog.filter.completed"}];function Ie(){const{t:s}=R(),{trackEvent:p,trackPageView:t}=P(),n=V(),a=q(),u=K(),{show:r}=G(),[_,i]=l.useState(!1),[b,g]=l.useState(!1),x=!u.loading&&u.tier==="basic",v=x?a.entries.slice(0,3):a.entries,f=!x&&a.total>T,C=async()=>{g(!0);try{await a.clear(),r(s("toast.clearSuccess","Cleared successfully"),"success"),i(!1)}catch{r(s("toast.clearFailed","Failed to clear data"),"error")}finally{g(!1)}};return e.jsxs("div",{className:h.page,children:[e.jsx(U,{items:Ce.map(c=>({key:c.key,label:s(c.labelKey,c.key.charAt(0).toUpperCase()+c.key.slice(1))})),value:a.statusFilter,onChange:c=>{const d=`changelog_${c}`;p("dashboard_click_event",{click_target:`changelog_tab_${c}`,page:"changelog",tab:d}),t({page:"changelog",tab:d}),a.setStatusFilter(c),a.setOffset(0)},rightActions:e.jsx("button",{className:h.clearButton,onClick:()=>{p("dashboard_click_event",{click_target:"changelog_clear",page:"changelog",tab:`changelog_${a.statusFilter}`}),i(!0)},children:s("common.clear","Clear")})}),a.loading&&a.entries.length===0&&e.jsx("div",{className:h.loading,children:s("common.loading","Loading...")}),!a.loading&&a.entries.length===0?e.jsx("div",{className:h.empty,children:s("changelog.empty","No changelog entries yet")}):e.jsx("div",{className:h.list,children:v.map(c=>e.jsx(de,{entry:c,onClick:()=>n(`/changelog/${c.entryId}`)},c.entryId))}),f&&e.jsxs("div",{className:h.pagination,children:[e.jsx("button",{className:h.btn,disabled:a.offset===0,onClick:()=>a.setOffset(Math.max(0,a.offset-T)),children:s("tools.page.prev","Prev")}),e.jsxs("span",{className:h.pageInfo,children:[a.offset+1,"–",Math.min(a.offset+T,a.total)," / ",a.total]}),e.jsx("button",{className:h.btn,disabled:!a.hasMore,onClick:()=>a.setOffset(a.offset+T),children:s("tools.page.next","Next")})]}),x&&e.jsx(e.Fragment,{children:e.jsxs("div",{className:h.limitNotice,children:[e.jsx("div",{className:h.limitNoticeTitle,children:s("changelog.basic.limit.title","Basic preview shows the latest 3 sessions")}),e.jsx("div",{className:h.limitNoticeText,children:s("changelog.basic.limit.body","Upgrade to Pro to browse the full changelog timeline for this place.")})]})}),e.jsx(H,{open:_,title:s("changelog.clear.title","Clear changelog?"),message:s("changelog.clear.message","This permanently removes the stored changelog for the current place."),cancelLabel:s("common.cancel","Cancel"),confirmLabel:s("common.clear","Clear"),loading:b,onCancel:()=>!b&&i(!1),onConfirm:C})]})}export{Ie as Component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._card_1n89u_2{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:14px 18px;cursor:pointer;transition:border-color var(--transition),box-shadow var(--transition)}._card_1n89u_2:hover{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent-dim)}._header_1n89u_17{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}._statusBadge_1n89u_24{display:flex;align-items:center;gap:6px;font-family:var(--font-label);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}._statusDot_1n89u_35{width:7px;height:7px;border-radius:50%}._active_1n89u_41 ._statusDot_1n89u_35{background:var(--success);box-shadow:0 0 6px var(--success)}._active_1n89u_41{color:var(--success)}._completed_1n89u_50 ._statusDot_1n89u_35{background:var(--text-muted)}._completed_1n89u_50{color:var(--text-secondary)}._timeRange_1n89u_58{font-family:var(--font-code);font-size:11px;color:var(--text-secondary)}._summaryList_1n89u_65{display:flex;flex-direction:column;gap:4px}._summaryItem_1n89u_71{display:flex;align-items:center;gap:8px;font-family:var(--font-code);font-size:12px;color:var(--text-primary)}._summaryIcon_1n89u_80{width:20px;text-align:center;flex-shrink:0}._summaryText_1n89u_86{color:var(--text-secondary)}._progressBar_1n89u_91{margin-top:10px;height:3px;background:var(--bg-secondary);border-radius:2px;overflow:hidden}._progressFill_1n89u_99{height:100%;background:var(--accent);border-radius:2px;animation:_pulse_1n89u_1 2s ease-in-out infinite}@keyframes _pulse_1n89u_1{0%,to{opacity:.6;width:30%}50%{opacity:1;width:70%}}._emptySummary_1n89u_112{font-family:var(--font-label);font-size:12px;color:var(--text-muted);text-align:center;padding:8px 0}._contextBlock_1n89u_120{margin-top:12px;padding-top:12px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:4px}._contextLabel_1n89u_129{font-family:var(--font-label);font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}._contextValue_1n89u_137{font-family:var(--font-label);font-size:12px;color:var(--text-primary);line-height:1.5}._page_1ynbw_2{display:flex;flex-direction:column;gap:var(--content-gap);max-width:var(--content-max)}._limitNotice_1ynbw_9{padding:14px 16px;border:1px solid var(--pro-border);border-radius:var(--radius);background:linear-gradient(180deg,rgba(240,189,88,.12),transparent 58%),var(--bg-card)}._limitNoticeTitle_1ynbw_18{font-family:var(--font-label);font-size:12px;color:var(--pro-text);margin-bottom:6px}._limitNoticeText_1ynbw_25{font-size:12px;color:var(--text-secondary);line-height:1.5}._clearButton_1ynbw_33{border:1px solid var(--danger-border);background:var(--danger-bg);color:var(--danger-text);border-radius:var(--radius-sm);padding:6px 12px;font-family:var(--font-label);font-size:12px;font-weight:500;cursor:pointer;transition:background var(--transition),border-color var(--transition)}._clearButton_1ynbw_33:hover{background:var(--danger-hover-bg);border-color:var(--danger)}._list_1ynbw_54{display:flex;flex-direction:column;gap:10px}._empty_1ynbw_61{text-align:center;padding:40px 20px;color:var(--text-muted);font-family:var(--font-label);font-size:13px}._loading_1ynbw_70{text-align:center;padding:40px 20px;color:var(--text-secondary);font-family:var(--font-label);font-size:12px}._pagination_1ynbw_79{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:4px}._pageInfo_1ynbw_87{font-family:var(--font-code);font-size:12px;color:var(--text-secondary)}._btn_1ynbw_93{font-family:var(--font-label);font-size:12px;padding:4px 12px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer;transition:background var(--transition),border-color var(--transition)}._btn_1ynbw_93:hover:not(:disabled){border-color:var(--accent);background:var(--accent-dim)}._btn_1ynbw_93:disabled{opacity:.4;cursor:default}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{r as n,a as f,u as b,j as e,i as A,l as H,m as D,p as E}from"./index-C9gmLH8z.js";import{D as U,T as $}from"./TierComparison-Lkag7n54.js";import{I}from"./InfoLabel-Bp3j_i44.js";import{T as _}from"./TooltipText-Bgk-NYKr.js";import{C as O}from"./ConfirmModal-Dg8_uxRE.js";const F=5e3;function W(t){const r=(t==null?void 0:t.enabled)??!0,[p,o]=n.useState([]),[a,l]=n.useState(null),[d,i]=n.useState(r),c=n.useRef(null),h=n.useCallback(async()=>{try{const x=await f.get("/api/dashboard/playtest/history");o(x.entries??[])}catch{}},[]),m=n.useCallback(async()=>{if(!r){i(!1);return}await h(),i(!1)},[r,h]),y=n.useCallback(async()=>{r&&(await f.post("/api/dashboard/playtest/history/clear"),o([]),l(null))},[r]),g=n.useCallback(async x=>{if(r)try{const v=await f.get(`/api/dashboard/playtest/report/${x}`);l(v)}catch{l(null)}},[r]);return n.useEffect(()=>{if(!r){i(!1);return}return m(),c.current=setInterval(m,F),()=>{c.current&&clearInterval(c.current)}},[r,m]),{history:p,selectedReport:a,loading:d,loadReport:g,clearHistory:y}}function V(t){const r="2026-03-27T15:26:00.000Z",p={testScenario:t("playtest.sample.context.why","Spawn into the arena, survive the opener, and verify the HUD responds immediately."),expectedBehavior:t("playtest.sample.context.expected","The player spawns safely, the countdown UI appears within one second, and the first wave starts without errors."),observedBehavior:t("playtest.sample.context.observed","Spawn protection held, the HUD updated on time, and wave one completed with no gameplay regressions.")};return{history:[{timestamp:r,testName:t("playtest.sample.history.name","Sample Arena Smoke Test"),mode:"play",status:"passed",durationMs:4820,contextId:"sample_playtest_preview",contextSummary:p}],report:{markdown:t("playtest.sample.report.markdown",`# Sample Arena Smoke Test
|
|
2
|
-
|
|
3
|
-
- Spawn flow: PASS
|
|
4
|
-
- HUD countdown: PASS
|
|
5
|
-
- Wave bootstrap: PASS
|
|
6
|
-
|
|
7
|
-
This is a sample preview. Upgrade to Pro to save and review real automated playtest reports.`),logs:t("playtest.sample.report.logs",`[sample] boot playtest preview
|
|
8
|
-
[sample] spawn protection active
|
|
9
|
-
[sample] hud countdown rendered
|
|
10
|
-
[sample] wave one completed
|
|
11
|
-
[sample] preview report finished`),contextId:"sample_playtest_preview",contextSummary:p}}}const Y="_page_3lq3l_2",z="_sampleBanner_3lq3l_9",G="_sampleBannerRow_3lq3l_21",Z="_sampleBannerMain_3lq3l_28",J="_sampleBadge_3lq3l_35",K="_sampleTitle_3lq3l_50",Q="_sampleMessage_3lq3l_57",X="_sampleActions_3lq3l_64",ee="_primaryAction_3lq3l_72",te="_secondaryAction_3lq3l_73",se="_card_3lq3l_109",ae="_cardHeader_3lq3l_116",re="_clearButton_3lq3l_128",oe="_statusRow_3lq3l_143",ne="_statusIndicator_3lq3l_150",le="_statusRunning_3lq3l_158",ie="_statusPaused_3lq3l_163",ce="_statusNotRunning_3lq3l_167",pe="_statusLabel_3lq3l_171",de="_statusMeta_3lq3l_178",me="_controlButtons_3lq3l_184",ue="_btn_3lq3l_191",he="_btnPrimary_3lq3l_213",ye="_btnDanger_3lq3l_223",_e="_historyList_3lq3l_233",xe="_historyItem_3lq3l_241",ge="_historyItemSelected_3lq3l_260",ve="_historyItemHeader_3lq3l_265",Se="_historyIcon_3lq3l_271",fe="_historyTimestamp_3lq3l_276",be="_historyName_3lq3l_283",je="_historyItemMeta_3lq3l_293",Ne="_historyMode_3lq3l_302",Ce="_historyDuration_3lq3l_306",we="_historyStatus_3lq3l_310",qe="_status_passed_3lq3l_317",Le="_status_failed_3lq3l_321",Ie="_status_running_3lq3l_325",Pe="_historyError_3lq3l_329",Re="_historyContext_3lq3l_339",Be="_historyContextLine_3lq3l_348",Te="_historyContextLabel_3lq3l_354",Me="_reportContainer_3lq3l_363",ke="_reportContextPanel_3lq3l_369",Ae="_reportContextRow_3lq3l_379",He="_reportContextLabel_3lq3l_387",De="_reportSection_3lq3l_395",Ee="_reportSectionHeader_3lq3l_401",Ue="_reportMarkdown_3lq3l_413",$e="_reportLogs_3lq3l_426",Oe="_emptyState_3lq3l_441",Fe="_emptyStateTitle_3lq3l_448",We="_emptyStateMessage_3lq3l_456",Ve="_upgradePanel_3lq3l_465",Ye="_upgradePanelIcon_3lq3l_473",ze="_upgradePanelTitle_3lq3l_478",Ge="_upgradePanelDesc_3lq3l_486",Ze="_benefitList_3lq3l_496",Je="_benefitItem_3lq3l_507",Ke="_upgradeActions_3lq3l_522",s={page:Y,sampleBanner:z,sampleBannerRow:G,sampleBannerMain:Z,sampleBadge:J,sampleTitle:K,sampleMessage:Q,sampleActions:X,primaryAction:ee,secondaryAction:te,card:se,cardHeader:ae,clearButton:re,statusRow:oe,statusIndicator:ne,statusRunning:le,statusPaused:ie,statusNotRunning:ce,statusLabel:pe,statusMeta:de,controlButtons:me,btn:ue,btnPrimary:he,btnDanger:ye,historyList:_e,historyItem:xe,historyItemSelected:ge,historyItemHeader:ve,historyIcon:Se,historyTimestamp:fe,historyName:be,historyItemMeta:je,historyMode:Ne,historyDuration:Ce,historyStatus:we,status_passed:qe,status_failed:Le,status_running:Ie,historyError:Pe,historyContext:Re,historyContextLine:Be,historyContextLabel:Te,reportContainer:Me,reportContextPanel:ke,reportContextRow:Ae,reportContextLabel:He,reportSection:De,reportSectionHeader:Ee,reportMarkdown:Ue,reportLogs:$e,emptyState:Oe,emptyStateTitle:Fe,emptyStateMessage:We,upgradePanel:Ve,upgradePanelIcon:Ye,upgradePanelTitle:ze,upgradePanelDesc:Ge,benefitList:Ze,benefitItem:Je,upgradeActions:Ke};function S(t){return t.trim().toLowerCase()}function Qe(t){switch(S(t)){case"passed":return"✅";case"failed":return"❌";case"running":return"⏱";default:return"❓"}}function Xe(t,r){switch(S(r)){case"run":return t("playtest.status.mode.run","Run");case"server":return t("playtest.status.mode.server","Server");case"edit":return t("playtest.status.mode.edit","Edit");case"play":return t("playtest.status.mode.play","Play");default:return r}}function et(t,r){switch(S(r)){case"passed":return t("playtest.history.status.passed","Passed");case"failed":return t("playtest.history.status.failed","Failed");case"running":return t("playtest.history.status.running","Running");default:return t("playtest.history.status.unknown","Unknown")}}function tt(t){return t<1e3?`${t}ms`:`${(t/1e3).toFixed(1)}s`}function st({entries:t,onSelect:r,selectedTimestamp:p}){const{t:o}=b();return t.length===0?e.jsx("div",{className:s.emptyState,children:o("playtest.history.empty","No test results yet")}):e.jsx("div",{className:s.historyList,children:t.map(a=>{var d,i,c,h,m,y;const l=a.timestamp===p;return e.jsxs("button",{className:`${s.historyItem} ${l?s.historyItemSelected:""}`,onClick:()=>r(a.timestamp),children:[e.jsxs("div",{className:s.historyItemHeader,children:[e.jsx("span",{className:s.historyIcon,children:Qe(a.status)}),e.jsx("span",{className:s.historyTimestamp,children:a.timestamp}),e.jsx("span",{className:s.historyName,children:a.testName})]}),e.jsxs("div",{className:s.historyItemMeta,children:[e.jsx(_,{text:o("playtest.history.mode.tooltip","Playtest mode used for this recorded test run."),children:e.jsxs("span",{className:s.historyMode,children:[o("playtest.history.mode","Mode"),": ",Xe(o,a.mode)]})}),e.jsx("span",{className:s.historyDuration,children:tt(a.durationMs)}),e.jsx(_,{text:o("playtest.history.status.tooltip","Recorded result state for this automated playtest run."),children:e.jsx("span",{className:`${s.historyStatus} ${s[`status_${S(a.status)}`]??""}`,children:et(o,a.status)})})]}),a.errorMessage&&e.jsx("div",{className:s.historyError,children:a.errorMessage}),(a.contextId||((d=a.contextSummary)==null?void 0:d.testScenario)||((i=a.contextSummary)==null?void 0:i.expectedBehavior)||((c=a.contextSummary)==null?void 0:c.observedBehavior))&&e.jsxs("div",{className:s.historyContext,children:[a.contextId&&e.jsxs("div",{className:s.historyContextLine,children:[e.jsx("span",{className:s.historyContextLabel,children:o("playtest.context.contextId","Context ID")}),e.jsx("span",{children:a.contextId})]}),((h=a.contextSummary)==null?void 0:h.testScenario)&&e.jsxs("div",{className:s.historyContextLine,children:[e.jsx("span",{className:s.historyContextLabel,children:o("playtest.context.why","Why this test ran")}),e.jsx("span",{children:a.contextSummary.testScenario})]}),((m=a.contextSummary)==null?void 0:m.expectedBehavior)&&e.jsxs("div",{className:s.historyContextLine,children:[e.jsx("span",{className:s.historyContextLabel,children:o("playtest.context.expected","Expected")}),e.jsx("span",{children:a.contextSummary.expectedBehavior})]}),((y=a.contextSummary)==null?void 0:y.observedBehavior)&&e.jsxs("div",{className:s.historyContextLine,children:[e.jsx("span",{className:s.historyContextLabel,children:o("playtest.context.observed","Observed")}),e.jsx("span",{children:a.contextSummary.observedBehavior})]})]})]},a.timestamp)})})}function at({report:t}){var o,a,l,d,i,c;const{t:r}=b(),p=!!((o=t.contextSummary)!=null&&o.testScenario||(a=t.contextSummary)!=null&&a.expectedBehavior||(l=t.contextSummary)!=null&&l.observedBehavior);return e.jsxs("div",{className:s.reportContainer,children:[p&&e.jsxs("div",{className:s.reportContextPanel,children:[((d=t.contextSummary)==null?void 0:d.testScenario)&&e.jsxs("div",{className:s.reportContextRow,children:[e.jsx("span",{className:s.reportContextLabel,children:r("playtest.context.why","Why this test ran")}),e.jsx("span",{children:t.contextSummary.testScenario})]}),((i=t.contextSummary)==null?void 0:i.expectedBehavior)&&e.jsxs("div",{className:s.reportContextRow,children:[e.jsx("span",{className:s.reportContextLabel,children:r("playtest.context.expected","Expected")}),e.jsx("span",{children:t.contextSummary.expectedBehavior})]}),((c=t.contextSummary)==null?void 0:c.observedBehavior)&&e.jsxs("div",{className:s.reportContextRow,children:[e.jsx("span",{className:s.reportContextLabel,children:r("playtest.context.observed","Observed")}),e.jsx("span",{children:t.contextSummary.observedBehavior})]})]}),t.markdown&&e.jsxs("div",{className:s.reportSection,children:[e.jsx("div",{className:s.reportSectionHeader,children:e.jsx(_,{text:r("playtest.report.content.tooltip","Markdown summary for the selected automated playtest run."),children:e.jsx("span",{children:r("playtest.report.content","Report")})})}),e.jsx("pre",{className:s.reportMarkdown,children:t.markdown})]}),t.logs&&e.jsxs("div",{className:s.reportSection,children:[e.jsx("div",{className:s.reportSectionHeader,children:e.jsx(_,{text:r("playtest.report.logs.tooltip","Execution logs captured for the selected automated playtest run."),children:e.jsx("span",{children:r("playtest.report.logs","Logs")})})}),e.jsx("pre",{className:s.reportLogs,children:t.logs})]}),!t.markdown&&!t.logs&&e.jsx("div",{className:s.emptyState,children:r("playtest.report.empty","No report content available")})]})}function ct(){var q;const{t}=b(),{trackEvent:r}=A(),{tier:p,loading:o}=H(),a=!o&&p==="basic",l=W({enabled:!a}),{show:d}=D(),[i,c]=n.useState(null),[h,m]=n.useState(!1),[y,g]=n.useState(!1),[x,v]=n.useState(!1),{history:P,selectedReport:R,loading:B}=l,u=a?V(t):null,j=((q=u==null?void 0:u.history[0])==null?void 0:q.timestamp)??null,N=a?i??j:i,C=(u==null?void 0:u.history)??P,w=u&&N===j?u.report:R,T=a?!1:B,M=L=>{c(L),!a&&l.loadReport(L)},k=async()=>{g(!0);try{await l.clearHistory(),d(t("toast.clearSuccess","Cleared successfully"),"success"),m(!1),c(null)}catch{d(t("toast.clearFailed","Failed to clear data"),"error")}finally{g(!1)}};return e.jsxs("div",{className:s.page,children:[a&&e.jsxs("div",{className:s.sampleBanner,children:[e.jsxs("div",{className:s.sampleBannerRow,children:[e.jsxs("div",{className:s.sampleBannerMain,children:[e.jsx("div",{className:s.sampleBadge,children:t("playtest.sample.badge","Preview of the Pro playtest view")}),e.jsx("div",{className:s.sampleTitle,children:t("playtest.sample.title","You are previewing the report viewer that becomes available after upgrading to Pro.")}),e.jsx("div",{className:s.sampleMessage,children:t("playtest.sample.message","This preview uses sample data. Real playtest history management and stored reports unlock with Pro.")})]}),e.jsxs("div",{className:s.sampleActions,children:[e.jsx("button",{className:s.secondaryAction,onClick:()=>{r("dashboard_click_event",{click_target:"tier_compare",placement:"playtest_sample_banner",page:"playtest"}),v(!0)},children:t("tier.compare","Basic vs Pro")}),e.jsx("a",{className:s.primaryAction,href:E.playtest,target:"_blank",rel:"noreferrer",onClick:()=>r("dashboard_click_event",{click_target:"upgrade_cta",placement:"playtest_sample_banner",page:"playtest"}),children:t("tier.upgrade","Upgrade to Pro")})]})]}),e.jsx(U,{variant:"centered"})]}),e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx(I,{label:t("playtest.history.title","Test History"),tooltip:t("playtest.history.title.tooltip","Recorded automated playtest runs for this project.")}),a?e.jsx(_,{text:t("playtest.sample.clearDisabled","Upgrade to Pro to clear live playtest history."),children:e.jsx("span",{children:e.jsx("button",{className:s.clearButton,disabled:!0,children:t("common.clear","Clear")})})}):e.jsx("button",{className:s.clearButton,onClick:()=>{r("dashboard_click_event",{click_target:"playtest_clear_history",page:"playtest"}),m(!0)},children:t("common.clear","Clear")})]}),T?e.jsx("div",{className:s.emptyState,children:t("common.loading","Loading...")}):C.length===0?e.jsxs("div",{className:s.emptyState,children:[e.jsx("div",{className:s.emptyStateTitle,children:t("playtest.empty.title","No playtest results yet")}),e.jsxs("div",{className:s.emptyStateMessage,children:[t("playtest.empty.message.before","Test results will appear here when the AI agent runs automated tests via")," ",e.jsx(_,{text:t("playtest.empty.runTest.tooltip","WEPPY Dashboard automation entry point that runs Roblox playtest checks through the system_info tool."),children:e.jsx("span",{children:"system_info.run_test"})}),t("playtest.empty.message.after",".")]})]}):e.jsx(st,{entries:C,onSelect:M,selectedTimestamp:N??void 0})]}),w&&e.jsxs("div",{className:s.card,children:[e.jsx("div",{className:s.cardHeader,children:e.jsx(I,{label:t("playtest.report.title","Selected Report"),tooltip:t("playtest.report.title.tooltip","Detailed output for the currently selected automated playtest run.")})}),e.jsx(at,{report:w})]}),!a&&e.jsx(O,{open:h,title:t("playtest.clear.title","Clear test history?"),message:t("playtest.clear.message","This permanently removes the stored playtest reports for the current place."),cancelLabel:t("common.cancel","Cancel"),confirmLabel:t("common.clear","Clear"),loading:y,onCancel:()=>!y&&m(!1),onConfirm:k}),x&&e.jsx($,{onClose:()=>v(!1)})]})}export{ct as Component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as re,r as d,f as ce,D as de,e as ue,g as ge,h as pe,a as D,u as V,i as ie,j as e,k as he,A as ye,S as ve}from"./index-C9gmLH8z.js";import{I as j}from"./InfoLabel-Bp3j_i44.js";import{T as u}from"./TooltipText-Bgk-NYKr.js";import{C as me}from"./ConfirmModal-Dg8_uxRE.js";import{D as ne,f as oe,r as _e,s as xe,a as le,d as K,S as te,b as je}from"./sample-requests-BSEgt_Th.js";function be(){const{level:t}=re(),[s,c]=d.useState(null),[N,o]=d.useState(null),[p,i]=d.useState(!1),[_,h]=d.useState(!0),[A,L]=d.useState(!1),[B,f]=d.useState(null),b="gumroad",m=t==="disconnected",y=d.useCallback(r=>{r&&o(n=>({...n,...r,maskedKey:r.maskedKey??(n==null?void 0:n.maskedKey),provider:r.provider??(n==null?void 0:n.provider)??b}))},[b]),k=d.useCallback(r=>{if(!r){o(null);return}o({...r,provider:r.provider??b})},[b]),H=d.useCallback(async()=>{try{return await ce(b)}catch{return null}},[b]);d.useEffect(()=>{let r=!1;async function n(){try{const[v,x]=await Promise.all([D.get("/api/dashboard/settings").catch(()=>null),H()]);if(r)return;v&&c(v),x&&y(x)}catch{}finally{r||h(!1)}}return n(),()=>{r=!0}},[H,y]),d.useEffect(()=>{const r=new de;r.connect();const n=r.on("license",v=>{H().then(x=>{if(x){if((v==null?void 0:v.cleared)===!0){k(x);return}y(x)}})});return()=>{n(),r.disconnect()}},[H,y,k]);const S=d.useCallback((r,n)=>{f(r??n)},[]),E=d.useCallback(async r=>{if(m)return!1;if(!r.trim())return f("License key is required."),!1;L(!0);try{const n=await ue({provider:b,licenseKey:r.trim()});return y(n.license),S(n.message,n.ok?"License updated.":"License activation failed."),n.ok}catch{return f("License activation failed."),!1}finally{L(!1)}},[S,m,b,y]),R=d.useCallback(async()=>{if(!m){L(!0);try{const r=await ge({provider:b});y(r.license),S(r.message,r.ok?"License updated.":"License refresh failed.")}catch{f("License refresh failed.")}finally{L(!1)}}},[S,m,b,y]),T=d.useCallback(async()=>{if(!m){L(!0);try{const r=await pe({provider:b});k(r.license),S(r.message,r.ok?"License reset.":"License reset failed.")}catch{f("License reset failed.")}finally{L(!1)}}},[S,m,b,k]),I=d.useCallback(async(r,n)=>{if(s){c(v=>v&&{...v,hot:{...v.hot,[r]:n}}),i(!0);try{await D.patch("/api/dashboard/settings",{[r]:n})}catch{c(v=>v&&{...v,hot:{...v.hot,[r]:s.hot[r]}})}finally{i(!1)}}},[s]);return{settings:s,license:N,saving:p,licenseProvider:b,licenseControlsDisabled:m,licenseSubmitting:A,licenseMessage:B,activateLicense:E,refreshLicense:R,resetLicense:T,updateHotSetting:I,loading:_}}const fe="_card_1jlvt_4",Se="_cardEmbedded_1jlvt_14",Ne="_cardTitle_1jlvt_21",Le="_usageRow_1jlvt_30",Ce="_usageTotal_1jlvt_36",He="_usageBreakdown_1jlvt_42",ke="_usageCounts_1jlvt_47",we="_divider_1jlvt_53",Re="_lastRunRow_1jlvt_60",Te="_lastRunLabel_1jlvt_69",Ee="_errorIcon_1jlvt_75",Ae="_tooltip_1jlvt_83",Be="_cleanupRow_1jlvt_106",Ie="_cleanupLabel_1jlvt_113",De="_cleanupBtn_1jlvt_120",Pe="_cleanupBtnDanger_1jlvt_143",Me="_retentionSection_1jlvt_155",$e="_retentionTitle_1jlvt_161",Ue="_retentionFieldset_1jlvt_170",Oe="_proOverlay_1jlvt_185",ze="_radioRow_1jlvt_197",Fe="_radioLabel_1jlvt_204",Ge="_presetGroup_1jlvt_224",qe="_presetBtn_1jlvt_232",We="_presetBtnActive_1jlvt_249",Ye="_freeInput_1jlvt_256",Ke="_inputError_1jlvt_272",Ve="_inputUnit_1jlvt_276",Qe="_cascadeRow_1jlvt_283",Xe="_retentionActions_1jlvt_302",Je="_saveBtn_1jlvt_308",Ze="_runNowBtn_1jlvt_330",et="_errorMsg_1jlvt_353",l={card:fe,cardEmbedded:Se,cardTitle:Ne,usageRow:Le,usageTotal:Ce,usageBreakdown:He,usageCounts:ke,divider:we,lastRunRow:Re,lastRunLabel:Te,errorIcon:Ee,tooltip:Ae,cleanupRow:Be,cleanupLabel:Ie,cleanupBtn:De,cleanupBtnDanger:Pe,retentionSection:Me,retentionTitle:$e,retentionFieldset:Ue,proOverlay:Oe,radioRow:ze,radioLabel:Fe,presetGroup:Ge,presetBtn:qe,presetBtnActive:We,freeInput:Ye,inputError:Ke,inputUnit:Ve,cascadeRow:Qe,retentionActions:Xe,saveBtn:Je,runNowBtn:Ze,errorMsg:et};function tt(t,s){return!!(t.mode==="off"&&s.mode!=="off"||t.mode==="age"&&s.mode==="age"&&(s.ageDays??0)<(t.ageDays??0)||t.mode==="size"&&s.mode==="size"&&(s.sizeMb??0)<(t.sizeMb??0)||!t.cascadeSnapshots&&s.cascadeSnapshots)}function se(t){return t.mode==="age"?Number.isInteger(t.ageDays)&&t.ageDays>=1&&t.ageDays<=365:t.mode==="size"?Number.isInteger(t.sizeMb)&&t.sizeMb>=50&&t.sizeMb<=1e4:!0}function st(t,s){return t.mode===s.mode&&t.ageDays===s.ageDays&&t.sizeMb===s.sizeMb&&t.cascadeSnapshots===s.cascadeSnapshots}function O(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:t<1024*1024*1024?`${(t/(1024*1024)).toFixed(1)} MB`:`${(t/(1024*1024*1024)).toFixed(2)} GB`}function at({placeId:t,tier:s,currentPolicy:c,onSaved:N}){const{t:o}=V(),{trackEvent:p}=ie(),[i,_]=d.useState(c),[h,A]=d.useState(()=>[7,14,30,90].includes(c.ageDays??-1)?"":String(c.ageDays??30)),[L,B]=d.useState(()=>[100,500,1e3].includes(c.sizeMb??-1)?"":String(c.sizeMb??500)),[f,b]=d.useState(null),[m,y]=d.useState(!1),[k,H]=d.useState(!1),[S,E]=d.useState(!1),[R,T]=d.useState(null);d.useEffect(()=>{_(c);const g=[7,14,30,90],w=[100,500,1e3];A(g.includes(c.ageDays??-1)?"":String(c.ageDays??30)),B(w.includes(c.sizeMb??-1)?"":String(c.sizeMb??500))},[c]);const I=s==="basic",r=se(i),n=st(c,i),v=r&&!n&&!k,x=g=>{_(w=>{const U={...w,mode:g};return g==="age"&&(U.ageDays=parseInt(h,10)||30),g==="size"&&(U.sizeMb=parseInt(L,10)||500),U})},C=g=>{A(""),_(w=>({...w,ageDays:g}))},z=g=>{B(""),_(w=>({...w,sizeMb:g}))},Q=g=>{A(g);const w=parseInt(g,10);Number.isNaN(w)||_(U=>({...U,ageDays:w}))},M=g=>{B(g);const w=parseInt(g,10);Number.isNaN(w)||_(U=>({...U,sizeMb:w}))},X=async()=>{if(T(null),p("dashboard_click_event",{click_target:"ui_studio_cleanup_save",page:"settings"}),tt(c,i)){try{const g=await oe(t,{mode:i.mode,ageDays:i.ageDays,sizeMb:i.sizeMb,cascadeSnapshots:i.cascadeSnapshots});b(g.dryRun),y(!0)}catch(g){T(g.message)}return}await Y()},Y=async()=>{H(!0);try{await xe(t,i),y(!1),N()}catch(g){throw T(g.message),g}finally{H(!1)}},J=async()=>{T(null),p("dashboard_click_event",{click_target:"ui_studio_cleanup_run_now",page:"settings"}),E(!0);try{await _e(t),N()}catch(g){T(g.message)}finally{E(!1)}},Z=f?`${o("uiStudio.cleanup.policy.confirm.messageStrict","이 정책으로 즉시")} ${f.wouldRemoveRequests}${o("uiStudio.cleanup.policy.confirm.requests","건")} / ${f.wouldRemoveSnapshots}${o("uiStudio.cleanup.policy.confirm.snapshots","개 화면 캡처")} / ${O(f.wouldFreeBytes)} ${o("uiStudio.cleanup.policy.confirm.freed","가 삭제됩니다 — 적용?")}`:"",$=i.mode==="age"&&!se(i),ee=i.mode==="size"&&!se(i);return e.jsxs("div",{className:l.retentionSection,children:[e.jsx("h3",{className:l.retentionTitle,children:e.jsx(j,{label:o("uiStudio.cleanup.policy.title","자동 삭제 정책"),tooltip:o("uiStudio.cleanup.policy.title.tooltip","Rules that automatically remove old or large captures.")})}),e.jsxs("div",{style:{position:"relative"},children:[I&&e.jsx("div",{className:l.proOverlay,title:o("uiStudio.cleanup.policy.proRequired","Pro 업그레이드 후 사용 가능"),children:e.jsx("div",{className:l.tooltip,children:o("uiStudio.cleanup.policy.proRequired","Pro 업그레이드 후 사용 가능")})}),e.jsxs("fieldset",{className:l.retentionFieldset,disabled:I,style:I?{opacity:.45,pointerEvents:"none"}:void 0,children:[e.jsx("div",{className:l.radioRow,children:e.jsx(u,{text:o("uiStudio.cleanup.policy.modeOff.tooltip","Turn off auto-cleanup. Data stays until you remove it manually."),children:e.jsxs("label",{className:l.radioLabel,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"off",checked:i.mode==="off",onChange:()=>x("off")}),o("uiStudio.cleanup.policy.modeOff","사용 안 함 (off)")]})})}),e.jsxs("div",{children:[e.jsx("div",{className:l.radioRow,children:e.jsx(u,{text:o("uiStudio.cleanup.policy.modeAge.tooltip","Automatically delete data older than the configured number of days."),children:e.jsxs("label",{className:l.radioLabel,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"age",checked:i.mode==="age",onChange:()=>x("age")}),o("uiStudio.cleanup.policy.modeAge","기간 기반 (age)")]})})}),i.mode==="age"&&e.jsxs("div",{className:l.presetGroup,children:[[7,14,30,90].map(g=>e.jsx(u,{text:o("uiStudio.cleanup.policy.agePreset.tooltip","Delete data older than this many days."),children:e.jsxs("button",{type:"button",className:`${l.presetBtn} ${i.ageDays===g&&h===""?l.presetBtnActive:""}`,onClick:()=>C(g),children:[g,o("uiStudio.cleanup.policy.daysUnit","일")]})},g)),e.jsx(u,{text:o("uiStudio.cleanup.policy.ageInput.tooltip","Enter any value between 1 and 365 days."),children:e.jsx("input",{type:"number",className:`${l.freeInput} ${$?l.inputError:""}`,value:h,min:1,max:365,onChange:g=>Q(g.target.value)})}),e.jsxs("span",{className:l.inputUnit,children:["1–365",o("uiStudio.cleanup.policy.daysUnit","일")]})]})]}),e.jsxs("div",{children:[e.jsx("div",{className:l.radioRow,children:e.jsx(u,{text:o("uiStudio.cleanup.policy.modeSize.tooltip","When total usage exceeds the limit, the oldest data is removed first."),children:e.jsxs("label",{className:l.radioLabel,children:[e.jsx("input",{type:"radio",name:"cleanupMode",value:"size",checked:i.mode==="size",onChange:()=>x("size")}),o("uiStudio.cleanup.policy.modeSize","용량 기반 (size)")]})})}),i.mode==="size"&&e.jsxs("div",{className:l.presetGroup,children:[[100,500,1e3].map(g=>e.jsx(u,{text:o("uiStudio.cleanup.policy.sizePreset.tooltip","Keep total usage under this size."),children:e.jsxs("button",{type:"button",className:`${l.presetBtn} ${i.sizeMb===g&&L===""?l.presetBtnActive:""}`,onClick:()=>z(g),children:[g,o("uiStudio.cleanup.policy.mbUnit","MB")]})},g)),e.jsx(u,{text:o("uiStudio.cleanup.policy.sizeInput.tooltip","Enter any value between 50 MB and 10000 MB (10 GB)."),children:e.jsx("input",{type:"number",className:`${l.freeInput} ${ee?l.inputError:""}`,value:L,min:50,max:1e4,onChange:g=>M(g.target.value)})}),e.jsxs("span",{className:l.inputUnit,children:["50–10000",o("uiStudio.cleanup.policy.mbUnit","MB")]})]})]}),e.jsx(u,{text:o("uiStudio.cleanup.policy.cascade.tooltip","Also delete the capture images linked to those records. If off, the images stay."),children:e.jsxs("label",{className:l.cascadeRow,children:[e.jsx("input",{type:"checkbox",checked:i.cascadeSnapshots,onChange:g=>_(w=>({...w,cascadeSnapshots:g.target.checked}))}),o("uiStudio.cleanup.policy.cascade","연결된 화면 캡처도 함께 삭제")]})}),e.jsxs("div",{className:l.retentionActions,children:[e.jsx(u,{text:o("uiStudio.cleanup.policy.save.tooltip","Save the current cleanup rule. It runs in the background from then on."),children:e.jsx("button",{type:"button",className:l.saveBtn,onClick:()=>void X(),disabled:!v,children:o("uiStudio.cleanup.policy.save","정책 저장")})}),e.jsx(u,{text:o("uiStudio.cleanup.policy.runNow.tooltip","Run the current rule once now, without waiting for the next scheduled run."),children:e.jsx("button",{type:"button",className:l.runNowBtn,onClick:()=>void J(),disabled:S,children:o("uiStudio.cleanup.policy.runNow","지금 정리")})})]}),R&&e.jsx("div",{className:l.errorMsg,children:R})]})]}),m&&f&&e.jsx(ne,{title:o("uiStudio.cleanup.policy.confirm.title","정책 적용 확인"),message:Z,danger:!0,confirmLabel:o("uiStudio.cleanup.policy.save","정책 저장"),busy:k,onConfirm:Y,onClose:()=>y(!1)})]})}function it({placeId:t,tier:s,onChanged:c,sampleUsage:N,sampleRetention:o,embedded:p=!1}){const{t:i}=V(),_=s==="basic"&&N!=null&&o!=null,[h,A]=d.useState(_?N:null),[L,B]=d.useState(_?o:null),[f,b]=d.useState(null),[m,y]=d.useState(null),[k,H]=d.useState(null),S=d.useCallback(async()=>{if(!_&&t!=null){b(null);try{const[x,C]=await Promise.all([le(t),oe(t)]);A(x),B(C.policy)}catch(x){b(x.message)}}},[t,_]);d.useEffect(()=>{S()},[S]);const E=d.useCallback(()=>{S(),c==null||c()},[S,c]),R=d.useCallback(async()=>{if(m&&t!=null){H(null);try{m.kind==="keep7"?await K(t,{olderThanDays:7,alsoSnapshots:!0}):m.kind==="keep30"?await K(t,{olderThanDays:30,alsoSnapshots:!0}):await K(t,{all:!0,alsoSnapshots:!0}),y(null),S(),c==null||c()}catch(x){throw H(x.message),x}}},[m,t,S,c]);function T(x){const C=i("uiStudio.cleanup.studioPreservedNote","This deletes saved change records and screenshots on disk only; Roblox Studio instances are not affected.");return x.kind==="keep7"?`${i("uiStudio.cleanup.cleanupConfirmMessage.keep7","7일 이전 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${C}`:x.kind==="keep30"?`${i("uiStudio.cleanup.cleanupConfirmMessage.keep30","30일 이전 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${C}`:`${((h==null?void 0:h.requestCount)??0)+((h==null?void 0:h.snapshotCount)??0)}${i("uiStudio.cleanup.cleanupConfirmMessage.all","개의 저장된 변경 기록과 화면 캡처가 삭제됩니다. 이 작업은 되돌릴 수 없습니다.")} ${C}`}if(t==null&&!_)return null;if(f)return e.jsx("div",{className:`${l.card} ${p?l.cardEmbedded:""}`,children:e.jsx("p",{className:l.errorMsg,children:f})});if(!h||!L)return e.jsx("div",{className:`${l.card} ${p?l.cardEmbedded:""}`,children:e.jsx("p",{style:{fontSize:12,color:"var(--text-muted)",margin:0},children:i("uiStudio.storage.loading","로딩 중...")})});const I=L.lastRunAt,r=L.lastRunStats,n=I?new Date(I).toLocaleString():null,v=t??0;return e.jsxs("div",{className:`${l.card} ${p?l.cardEmbedded:""}`,children:[e.jsx("h3",{className:l.cardTitle,children:e.jsx(j,{label:i("uiStudio.storage.title","UI Studio 저장 데이터"),tooltip:i("uiStudio.storage.title.tooltip","Disk usage of UI Studio change records and screenshots.")})}),e.jsxs("div",{className:l.usageRow,children:[e.jsx(u,{text:i("uiStudio.storage.usageLabel.tooltip","Disk space currently used by UI Studio for this project."),children:e.jsxs("div",{className:l.usageTotal,children:[i("uiStudio.storage.usageLabel","사용 중")," ",O(h.totalBytes)]})}),e.jsxs("div",{className:l.usageBreakdown,children:[e.jsx(u,{text:i("uiStudio.storage.historyBytes.tooltip","Space taken by change record data (JSON)."),children:e.jsxs("span",{children:[i("uiStudio.storage.historyBytes","변경 이력")," ",O(h.historyBytes)]})})," · ",e.jsx(u,{text:i("uiStudio.storage.snapshotBytes.tooltip","Space taken by captured PNG image files."),children:e.jsxs("span",{children:[i("uiStudio.storage.snapshotBytes","화면 캡처")," ",O(h.snapshotBytes)]})})]}),e.jsxs("div",{className:l.usageCounts,children:[e.jsx(u,{text:i("uiStudio.storage.requestCount.tooltip","Number of actions where AI changed the UI."),children:e.jsxs("span",{children:[i("uiStudio.storage.requestCount","변경 기록")," ",h.requestCount.toLocaleString(),i("uiStudio.storage.countSuffix","개")]})})," · ",e.jsx(u,{text:i("uiStudio.storage.mutationCount.tooltip","Number of detail changes inside actions (one property edit = 1)."),children:e.jsxs("span",{children:[i("uiStudio.storage.mutationCount","변경 상세")," ",h.mutationCount.toLocaleString(),i("uiStudio.storage.countSuffix","개")]})})," · ",e.jsx(u,{text:i("uiStudio.storage.snapshotCount.tooltip","Number of saved capture image files."),children:e.jsxs("span",{children:[i("uiStudio.storage.snapshotCount","화면 캡처")," ",h.snapshotCount.toLocaleString(),i("uiStudio.storage.countSuffix","개")]})})]})]}),e.jsx("hr",{className:l.divider}),e.jsx(at,{placeId:v,tier:s,currentPolicy:L,onSaved:E}),e.jsx("hr",{className:l.divider}),e.jsxs("div",{className:l.lastRunRow,children:[e.jsx("span",{className:l.lastRunLabel,children:e.jsx(j,{label:i("uiStudio.storage.lastRun","마지막 자동 정리"),tooltip:i("uiStudio.storage.lastRun.tooltip","When the auto-cleanup policy last ran, and what it removed.")})}),n?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:n}),r&&e.jsxs("span",{children:["· ",i("uiStudio.storage.requestCount","변경 기록")," ",r.removedRequests,i("uiStudio.storage.countSuffix","개")," / ",i("uiStudio.storage.snapshotCount","화면 캡처")," ",r.removedSnapshots,i("uiStudio.storage.countSuffix","개")," / ",O(r.freedBytes)," ",i("uiStudio.storage.lastRunFreed","회수")]}),r&&r.errors>0&&e.jsxs("span",{className:l.errorIcon,title:`${i("uiStudio.storage.lastRunErrors","오류")} ${r.errors}건`,children:["⚠",e.jsxs("span",{className:l.tooltip,children:[i("uiStudio.storage.lastRunErrors","오류")," ",r.errors,i("uiStudio.storage.countSuffix","건")]})]})]}):e.jsx("span",{children:i("uiStudio.storage.lastRunNever","—")})]}),e.jsx("hr",{className:l.divider}),e.jsxs("div",{className:l.cleanupRow,children:[e.jsx("span",{className:l.cleanupLabel,children:e.jsx(j,{label:i("uiStudio.cleanup.label","수동 정리"),tooltip:i("uiStudio.cleanup.label.tooltip","Manually clean up change records and captures whenever you want.")})}),e.jsx(u,{text:i("uiStudio.cleanup.keep7.tooltip","Delete change records and captures older than 7 days."),children:e.jsx("button",{type:"button",className:l.cleanupBtn,onClick:()=>y({kind:"keep7"}),disabled:s==="basic",children:i("uiStudio.cleanup.keepLastNDays","최근 7일만 남기기").replace("{n}","7")})}),e.jsx(u,{text:i("uiStudio.cleanup.keep30.tooltip","Delete change records and captures older than 30 days."),children:e.jsx("button",{type:"button",className:l.cleanupBtn,onClick:()=>y({kind:"keep30"}),disabled:s==="basic",children:i("uiStudio.cleanup.keepLastNDays","최근 30일만 남기기").replace("{n}","30")})}),e.jsx(u,{text:i("uiStudio.cleanup.deleteAll.tooltip","Delete every change record and capture for this project. The actual UI in Roblox Studio is not affected."),children:e.jsx("button",{type:"button",className:`${l.cleanupBtn} ${l.cleanupBtnDanger}`,onClick:()=>y({kind:"all"}),disabled:s==="basic",children:i("uiStudio.cleanup.deleteAll","전체 삭제…")})})]}),k&&e.jsx("div",{className:l.errorMsg,children:k}),m&&e.jsx(ne,{title:i("uiStudio.cleanup.cleanupConfirmTitle","정리 확인"),message:T(m),danger:!0,confirmLabel:i("common.delete","삭제"),onConfirm:R,onClose:()=>{y(null),H(null)}})]})}const nt="_page_16yvc_2",ot="_card_16yvc_10",lt="_licenseCardPro_16yvc_17",rt="_cardHeader_16yvc_28",ct="_cardHeaderActions_16yvc_41",dt="_collapseButton_16yvc_47",ut="_headerBadge_16yvc_69",gt="_headerBadgeLive_16yvc_80",pt="_licenseGrid_16yvc_86",ht="_statusDot_16yvc_104",yt="_statusActive_16yvc_113",vt="_statusGrace_16yvc_118",mt="_statusInactive_16yvc_123",_t="_statusError_16yvc_127",xt="_proBadge_16yvc_132",jt="_upgradeLink_16yvc_146",bt="_licenseControls_16yvc_160",ft="_licenseControlRow_16yvc_169",St="_licenseField_16yvc_176",Nt="_licenseFieldGrow_16yvc_182",Lt="_controlLabel_16yvc_187",Ct="_textInput_16yvc_193",Ht="_actionBtn_16yvc_209",kt="_licenseMessage_16yvc_231",wt="_licenseNotice_16yvc_238",Rt="_licenseNoticeInfo_16yvc_248",Tt="_licenseNoticeWarning_16yvc_254",Et="_licenseNoticeMuted_16yvc_260",At="_settingRow_16yvc_266",Bt="_settingLabel_16yvc_280",It="_settingControl_16yvc_287",Dt="_select_16yvc_296",Pt="_numberInput_16yvc_314",Mt="_toggleSwitch_16yvc_332",$t="_toggleInput_16yvc_339",Ut="_toggleTrack_16yvc_347",Ot="_toggleThumb_16yvc_369",zt="_savedIndicator_16yvc_418",Ft="_savedIndicatorHidden_16yvc_429",Gt="_dataHistoryIntro_16yvc_434",qt="_dataHistoryList_16yvc_442",Wt="_dataHistoryRow_16yvc_448",Yt="_dataHistoryDetail_16yvc_457",Kt="_uiStudioDataHistoryRow_16yvc_462",Vt="_uiStudioDataHistoryDetail_16yvc_467",Qt="_dataHistoryMain_16yvc_474",Xt="_dataHistoryTitle_16yvc_478",Jt="_dataHistoryDescription_16yvc_484",Zt="_dataHistoryMetric_16yvc_492",es="_dataHistoryActions_16yvc_499",ts="_linkButton_16yvc_505",ss="_dangerButton_16yvc_506",as="_inlineStatus_16yvc_542",is="_coldGrid_16yvc_550",ns="_coldHint_16yvc_568",os="_langRow_16yvc_577",ls="_loading_16yvc_590",rs="_unit_16yvc_599",a={page:nt,card:ot,licenseCardPro:lt,cardHeader:rt,cardHeaderActions:ct,collapseButton:dt,headerBadge:ut,headerBadgeLive:gt,licenseGrid:pt,statusDot:ht,statusActive:yt,statusGrace:vt,statusInactive:mt,statusError:_t,proBadge:xt,upgradeLink:jt,licenseControls:bt,licenseControlRow:ft,licenseField:St,licenseFieldGrow:Nt,controlLabel:Lt,textInput:Ct,actionBtn:Ht,licenseMessage:kt,licenseNotice:wt,licenseNoticeInfo:Rt,licenseNoticeWarning:Tt,licenseNoticeMuted:Et,settingRow:At,settingLabel:Bt,settingControl:It,select:Dt,numberInput:Pt,toggleSwitch:Mt,toggleInput:$t,toggleTrack:Ut,toggleThumb:Ot,savedIndicator:zt,savedIndicatorHidden:Ft,dataHistoryIntro:Gt,dataHistoryList:qt,dataHistoryRow:Wt,dataHistoryDetail:Yt,uiStudioDataHistoryRow:Kt,uiStudioDataHistoryDetail:Vt,dataHistoryMain:Qt,dataHistoryTitle:Xt,dataHistoryDescription:Jt,dataHistoryMetric:Zt,dataHistoryActions:es,linkButton:ts,dangerButton:ss,inlineStatus:as,coldGrid:is,coldHint:ns,langRow:os,loading:ls,unit:rs},cs={toolsActivity:null,toolStats:null,toolSessions:null,syncLog:null,playtestReports:null,projectChanges:null,connectionLog:null},ds={toolsActivity:null,toolStats:null,syncLog:null,playtestReports:null,projectChanges:null,connectionLog:null};function us(t){var s;return t?t.pluginConnected?t.activePlaceId:t.lastActivePlaceId??((s=t.places[0])==null?void 0:s.placeId)??null:null}async function P(t){try{return await t}catch{return null}}function q(t){return t?typeof t.total=="number"?t.total:Array.isArray(t.entries)?t.entries.length:null:null}function W(t,s,c,N){return s===null?t("settings.dataHistory.metric.unavailable","Unavailable"):`${s.toLocaleString()} ${t(c,N)}`}function F(t,s,c){const N=c===null?t("settings.dataHistory.metric.sizeUnavailable","size unavailable"):O(c);return`${s} · ${N}`}function G(t,s){var N;const c=(N=t==null?void 0:t[s])==null?void 0:N.bytes;return typeof c=="number"&&Number.isFinite(c)?c:null}function gs(t,s){return s?[`${s.requestCount.toLocaleString()} ${t("uiStudio.storage.requestCount","change records")}`,`${s.snapshotCount.toLocaleString()} ${t("uiStudio.storage.snapshotCount","screenshots")}`,O(s.totalBytes)].join(" · "):t("settings.dataHistory.metric.unavailable","Unavailable")}function ps({tier:t}){const{t:s}=V(),[c,N]=d.useState(cs),[o,p]=d.useState(ds),[i,_]=d.useState(t==="basic"?te:null),[h,A]=d.useState(null),[L,B]=d.useState(!0),[f,b]=d.useState(!0),[m,y]=d.useState(null),[k,H]=d.useState(!1),[S,E]=d.useState(null),R=d.useCallback(async()=>{B(!0);const C=await P(he()),z=us(C);A(z);const[Q,M,X,Y,J,Z,$]=await Promise.all([P(D.get("/api/dashboard/history",{limit:"1",offset:"0"})),P(D.get("/api/dashboard/tool-stats")),P(D.get("/sync/history",{limit:"1",offset:"0"})),P(D.get("/api/dashboard/playtest/history")),P(D.get("/api/dashboard/changelog",{limit:"1",offset:"0"})),P(D.get("/api/dashboard/connection-log")),P(D.get("/api/dashboard/storage-summary"))]),ee=t==="basic"?te:z===null?null:await P(le(z));N({toolsActivity:q(Q),toolStats:(M==null?void 0:M.totalCalls)??null,toolSessions:(M==null?void 0:M.totalSessions)??null,syncLog:q(X),playtestReports:q(Y),projectChanges:q(J),connectionLog:q(Z)}),p({toolsActivity:G($,"toolsActivity"),toolStats:G($,"toolStats"),syncLog:G($,"syncLog"),playtestReports:G($,"playtestReports"),projectChanges:G($,"projectChanges"),connectionLog:G($,"connectionLog")}),_(ee),B(!1)},[t]);d.useEffect(()=>{R()},[R]);const T=d.useMemo(()=>[{key:"toolsActivity",title:s("settings.dataHistory.toolsActivity.title","Tool activity"),description:s("settings.dataHistory.toolsActivity.description","Saved tool runs shown on the Tools page."),metric:F(s,W(s,c.toolsActivity,"settings.dataHistory.metric.records","records"),o.toolsActivity),metricTooltip:s("settings.dataHistory.toolsActivity.metric.tooltip","Number of saved tool runs and the disk space they use."),route:"/tools",clearEndpoint:"/api/dashboard/tools/history/clear"},{key:"toolStats",title:s("settings.dataHistory.toolStats.title","Tool usage statistics"),description:s("settings.dataHistory.toolStats.description","Aggregated tool counts and status totals."),metric:F(s,c.toolStats===null?s("settings.dataHistory.metric.unavailable","Unavailable"):`${c.toolStats.toLocaleString()} ${s("settings.dataHistory.metric.runs","runs")} · ${(c.toolSessions??0).toLocaleString()} ${s("settings.dataHistory.metric.sessions","sessions")}`,o.toolStats),metricTooltip:s("settings.dataHistory.toolStats.metric.tooltip","Aggregated total runs and session counts."),route:"/tools",clearEndpoint:"/api/dashboard/tools/statistics/clear"},{key:"syncLog",title:s("settings.dataHistory.syncLog.title","Sync log"),description:s("settings.dataHistory.syncLog.description","Saved file sync events for the active place."),metric:F(s,W(s,c.syncLog,"settings.dataHistory.metric.records","records"),o.syncLog),metricTooltip:s("settings.dataHistory.syncLog.metric.tooltip","Number of saved sync events and the disk space they use."),route:"/sync",clearEndpoint:"/api/dashboard/sync/history/clear"},{key:"playtestReports",title:s("settings.dataHistory.playtest.title","Playtest reports"),description:s("settings.dataHistory.playtest.description","Saved automated playtest reports and logs."),metric:F(s,W(s,c.playtestReports,"settings.dataHistory.metric.reports","reports"),o.playtestReports),metricTooltip:s("settings.dataHistory.playtestReports.metric.tooltip","Number of saved playtest reports and the disk space they use."),route:"/playtest",clearEndpoint:"/api/dashboard/playtest/history/clear"},{key:"projectChanges",title:s("settings.dataHistory.projectChanges.title","Project change summary"),description:s("settings.dataHistory.projectChanges.description","Saved summaries of project changes."),metric:F(s,W(s,c.projectChanges,"settings.dataHistory.metric.records","records"),o.projectChanges),metricTooltip:s("settings.dataHistory.projectChanges.metric.tooltip","Number of saved project change summaries and the disk space they use."),route:"/changelog",clearEndpoint:"/api/dashboard/changelog/clear"},{key:"connectionLog",title:s("settings.dataHistory.connectionLog.title","Connection log"),description:s("settings.dataHistory.connectionLog.description","Saved MCP and Studio connection events."),metric:F(s,W(s,c.connectionLog,"settings.dataHistory.metric.records","records"),o.connectionLog),metricTooltip:s("settings.dataHistory.connectionLog.metric.tooltip","Number of saved connection events and the disk space they use."),route:"/connection",clearEndpoint:"/api/dashboard/connection-log/clear"}],[c,o,s]),I=async()=>{if(m){H(!0),E(null);try{if(m.kind==="uiStudio"){if(t!=="pro"||h===null)throw new Error("UI Studio place is unavailable");await K(h,{all:!0,alsoSnapshots:!0}),E(s("settings.dataHistory.uiStudio.clear.success","UI Studio saved data cleared."))}else await D.post(m.row.clearEndpoint),E(s("settings.dataHistory.clear.success","Saved data cleared."));y(null),await R()}catch{E(m.kind==="uiStudio"?s("settings.dataHistory.uiStudio.clear.failed","Failed to clear UI Studio saved data."):s("settings.dataHistory.clear.failed","Failed to clear saved data."))}finally{H(!1)}}},r=t==="pro"?h:0,n=t==="pro"&&h!==null,v=(m==null?void 0:m.kind)==="uiStudio",x=s("settings.dataHistory.title","Data & History");return e.jsxs(e.Fragment,{children:[e.jsxs("section",{id:"data-history",className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(j,{label:s("settings.dataHistory.title","Data & History"),tooltip:s("settings.dataHistory.title.tooltip","Manage saved dashboard data in one place.")}),e.jsxs("div",{className:a.cardHeaderActions,children:[e.jsx(u,{text:s("settings.dataHistory.scope.tooltip","Clear actions apply to the current project and active place where applicable."),children:e.jsx("span",{className:a.headerBadge,children:L?s("common.loading","Loading"):s("settings.dataHistory.scope","Current project")})}),e.jsx(u,{text:s("settings.dataHistory.toggle.tooltip","Collapse or expand this section."),children:e.jsx("button",{className:a.collapseButton,type:"button","aria-expanded":f,"aria-controls":"settings-data-history-body","aria-label":f?s("settings.dataHistory.collapse","Collapse {title}").replace("{title}",x):s("settings.dataHistory.expand","Expand {title}").replace("{title}",x),onClick:()=>b(C=>!C),children:f?"▾":"▸"})})]})]}),f&&e.jsxs("div",{id:"settings-data-history-body",children:[e.jsx("p",{className:a.dataHistoryIntro,children:s("settings.dataHistory.intro","Review saved dashboard data, open the related page, or clear stored records from one place.")}),e.jsxs("div",{className:a.dataHistoryList,children:[T.map(C=>e.jsxs("div",{className:a.dataHistoryRow,children:[e.jsxs("div",{className:a.dataHistoryMain,children:[e.jsx("div",{className:a.dataHistoryTitle,children:C.title}),e.jsx("div",{className:a.dataHistoryDescription,children:C.description})]}),e.jsx(u,{text:C.metricTooltip,children:e.jsx("div",{className:a.dataHistoryMetric,children:C.metric})}),e.jsxs("div",{className:a.dataHistoryActions,children:[e.jsx(u,{text:s("settings.dataHistory.open.tooltip","Open the page that shows this item in detail."),children:e.jsx("a",{className:a.linkButton,href:`#${C.route}`,children:s("settings.dataHistory.open","Open")})}),e.jsx(u,{text:s("settings.dataHistory.clear.tooltip","Delete only the records saved for this item. Roblox Studio data is not changed."),children:e.jsx("button",{className:a.dangerButton,type:"button",onClick:()=>y({kind:"row",row:C}),children:s("common.clear","Clear")})})]})]},C.key)),e.jsxs("div",{className:`${a.dataHistoryRow} ${a.uiStudioDataHistoryRow}`,children:[e.jsxs("div",{className:a.dataHistoryMain,children:[e.jsx("div",{className:a.dataHistoryTitle,children:s("settings.dataHistory.uiStudio.title","UI Studio history and screenshots")}),e.jsx("div",{className:a.dataHistoryDescription,children:s("settings.dataHistory.uiStudio.description","Saved UI Studio change records, screenshots, and cleanup policy.")})]}),e.jsx(u,{text:s("settings.dataHistory.uiStudio.metric.tooltip","UI Studio change record and capture counts, plus total disk usage."),children:e.jsx("div",{className:a.dataHistoryMetric,children:gs(s,i)})}),e.jsxs("div",{className:a.dataHistoryActions,children:[e.jsx(u,{text:s("settings.dataHistory.open.tooltip","Open the page that shows this item in detail."),children:e.jsx("a",{className:a.linkButton,href:"#/ui-studio?tab=history",children:s("settings.dataHistory.open","Open")})}),e.jsx(u,{text:s("settings.dataHistory.clear.tooltip","Delete only the records saved for this item. Roblox Studio data is not changed."),children:e.jsx("button",{className:a.dangerButton,type:"button",disabled:!n,onClick:()=>y({kind:"uiStudio"}),children:s("common.clear","Clear")})})]})]}),e.jsx("div",{className:`${a.dataHistoryDetail} ${a.uiStudioDataHistoryDetail}`,children:e.jsx(it,{placeId:r,tier:t,onChanged:R,embedded:!0,...t==="basic"?{sampleUsage:te,sampleRetention:je}:{}})})]}),S&&e.jsx("p",{className:a.inlineStatus,children:S})]})]}),e.jsx(me,{open:m!==null,title:v?s("settings.dataHistory.uiStudio.clear.title","Clear UI Studio saved data?"):s("settings.dataHistory.clear.title","Clear saved data?"),message:v?s("settings.dataHistory.uiStudio.clear.message","This deletes saved UI Studio change records and screenshots only. Roblox Studio instances and project objects are not changed."):s("settings.dataHistory.clear.message","This deletes saved dashboard records only. Roblox Studio instances and project objects are not changed."),cancelLabel:s("common.cancel","Cancel"),confirmLabel:s("common.clear","Clear"),loading:k,onCancel:()=>!k&&y(null),onConfirm:()=>void I()})]})}const hs={en:"English",ko:"한국어",es:"Español","pt-br":"Português (BR)",ja:"日本語",id:"Bahasa Indonesia",de:"Deutsch","fr-fr":"Français"},ys=["debug","info","warn","error"];function vs(t){return t==="active"?a.statusActive:t==="grace"?a.statusGrace:t==="invalid"||t==="revoked"?a.statusError:a.statusInactive}function ms(t,s){return t.refreshBlockedReason==="missing_session_token"?{label:s("settings.license.status.activationRequired","Activation Required"),tooltip:s("settings.license.status.activationRequired.tooltip","Manual license activation is required before WEPPY Dashboard can refresh this status."),detail:s("settings.license.detail.missingSessionToken","Refresh is blocked because the current session token is missing."),detailTone:a.licenseNoticeWarning}:t.statusDetail==="active_cancel_pending"?{label:s("settings.license.active","Active"),tooltip:s("settings.license.status.activeCancelPending.tooltip","Cancellation is pending, but Pro access remains active until the current billing period ends."),detail:s("settings.license.detail.cancelPending","Cancellation is scheduled. Pro access remains active until the current billing period ends."),detailTone:a.licenseNoticeInfo}:t.statusDetail==="grace_provider_unavailable"?{label:s("settings.license.status.grace","Grace"),tooltip:s("settings.license.status.grace.tooltip","Provider verification is temporarily unavailable, but Pro access remains active during the grace period."),detail:s("settings.license.detail.graceProviderUnavailable","Provider unavailable. Pro access remains active during grace mode."),detailTone:a.licenseNoticeInfo}:t.statusDetail==="grace_expired"||t.statusDetail==="grace_payment_failed"?{label:s("settings.license.status.grace","Grace"),tooltip:s("settings.license.status.graceBilling.tooltip","Pro access is still available during a billing-related grace period."),detail:s("settings.license.detail.graceBilling","Pro access remains available during a billing grace period."),detailTone:a.licenseNoticeInfo}:{label:s(`settings.license.${t.status}`,t.status),tooltip:s(`settings.license.${t.status}.tooltip`,"Current license activation state."),detail:t.refreshRequired?s("settings.license.detail.refreshRecommended","License verification should be refreshed soon."):null,detailTone:a.licenseNoticeMuted}}function ae({checked:t,onChange:s,testId:c,ariaLabel:N}){return e.jsxs("label",{className:a.toggleSwitch,"data-testid":c,children:[e.jsx("input",{type:"checkbox",className:a.toggleInput,checked:t,"aria-label":N,onChange:o=>s(o.target.checked)}),e.jsx("span",{className:a.toggleTrack,"aria-hidden":"true",children:e.jsx("span",{className:a.toggleThumb})})]})}function Ss(){const{t,selectedLocale:s,setLocale:c}=V(),{trackEvent:N}=ie(),{settings:o,license:p,licenseProvider:i,licenseControlsDisabled:_,licenseSubmitting:h,licenseMessage:A,activateLicense:L,refreshLicense:B,resetLicense:f,updateHotSetting:b,loading:m}=be(),[y,k]=d.useState(null),[H,S]=d.useState(""),E=p?ms(p,t):null,R=(p==null?void 0:p.tier)==="pro",T=(p==null?void 0:p.tier)==="pro"?p.maskedKey:void 0,I=(p==null?void 0:p.tier)==="pro"?"pro":"basic",r=d.useCallback(async(n,v)=>{await b(n,v),k(n),setTimeout(()=>k(x=>x===n?null:x),2e3)},[b]);return m?e.jsx("div",{className:a.page,children:e.jsx("div",{className:a.loading,children:t("common.loading")})}):e.jsxs("div",{className:a.page,children:[e.jsxs("div",{"data-testid":"settings-license-card",className:[a.card,(p==null?void 0:p.tier)==="pro"?a.licenseCardPro:""].filter(Boolean).join(" "),children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(j,{label:t("settings.license.title","License"),tooltip:t("settings.license.title.tooltip","Current license status and subscription tier.")}),e.jsx(u,{text:_?t("settings.license.disconnected.tooltip","Reconnect to the MCP server to manage license actions from WEPPY Dashboard."):t("settings.license.live.tooltip","License actions are sent to the MCP server immediately."),children:e.jsx("span",{className:`${a.headerBadge} ${_?"":a.headerBadgeLive}`,children:_?t("settings.license.disconnected","Disconnected"):t("settings.general.liveApply","Live Apply")})})]}),e.jsxs(e.Fragment,{children:[p?e.jsxs(e.Fragment,{children:[(()=>{const n=E;return e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:a.licenseGrid,children:[e.jsx("dt",{children:e.jsx(j,{label:t("settings.license.status","Status"),tooltip:t("settings.license.status.tooltip","Current license activation state.")})}),e.jsxs("dd",{children:[e.jsx("span",{className:`${a.statusDot} ${vs(p.status)}`}),e.jsx(u,{text:(n==null?void 0:n.tooltip)??t(`settings.license.${p.status}.tooltip`,"Current license activation state."),children:(n==null?void 0:n.label)??t(`settings.license.${p.status}`,p.status)})]}),e.jsx("dt",{children:e.jsx(j,{label:t("settings.license.tier","Tier"),tooltip:t("settings.license.tier.tooltip","Current subscription tier for available WEPPY Dashboard features.")})}),e.jsx("dd",{className:p.tier==="pro"?a.proBadge:"",children:e.jsx(u,{text:t(`tier.${p.tier}.tooltip`,"Available feature set for the connected license."),children:p.tier==="pro"?t("tier.pro","Pro"):t("tier.basic","Basic")})}),T&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(j,{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(u,{text:t("settings.license.keyValue.tooltip","Masked license key currently loaded by the server."),children:T})})]}),p.provider&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(j,{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(u,{text:t("settings.license.providerValue.tooltip","License provider used to validate this key."),children:p.provider})})]})]}),(n==null?void 0:n.detail)&&e.jsx("p",{className:`${a.licenseNotice} ${n.detailTone}`,children:p.refreshBlockedReason==="missing_session_token"?t("settings.license.detail.manualActivation","Manual activation required to restore Pro access."):n.detail}),p.refreshBlockedReason==="missing_session_token"&&e.jsx("p",{className:`${a.licenseNotice} ${a.licenseNoticeMuted}`,children:n==null?void 0:n.detail})]})})(),p.tier==="basic"&&e.jsx(u,{text:t("tier.upgrade.tooltip","Upgrade to Pro to unlock every feature."),children:e.jsx("a",{className:a.upgradeLink,href:"https://gum.co/u/din5in7h",target:"_blank",rel:"noopener noreferrer",onClick:()=>N("dashboard_click_event",{click_target:"upgrade_cta",placement:"settings_license",page:"settings"}),children:t("tier.upgrade")})})]}):e.jsx("div",{className:a.loading,children:t("settings.license.unavailable")}),e.jsxs("div",{className:a.licenseControls,children:[e.jsxs("div",{className:a.licenseControlRow,children:[e.jsxs("label",{className:a.licenseField,children:[e.jsx("span",{className:a.controlLabel,children:e.jsx(j,{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:a.select,value:i,disabled:_||h,onChange:()=>{},children:e.jsx("option",{value:"gumroad",children:"gumroad"})})]}),e.jsx(u,{text:t("settings.license.refresh.tooltip","Re-fetch the current state from the license server. Useful when a billing change hasn't appeared yet."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:_||h||!R,onClick:()=>{B()},children:h?t("common.loading"):t("settings.license.refresh","Refresh License")})}),e.jsx(u,{text:t("settings.license.reset.tooltip","Remove the currently registered license key. Use this before activating with a different key."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:_||h||!R,onClick:()=>{f()},children:h?t("common.loading"):t("settings.license.reset","Reset License")})})]}),e.jsxs("div",{className:a.licenseControlRow,children:[e.jsxs("label",{className:`${a.licenseField} ${a.licenseFieldGrow}`,children:[e.jsx("span",{className:a.controlLabel,children:e.jsx(j,{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:a.textInput,type:"text",value:H,disabled:_||h,onChange:n=>S(n.target.value)})]}),e.jsx(u,{text:t("settings.license.activate.tooltip","Activate Pro features with the entered license key."),children:e.jsx("button",{type:"button",className:a.actionBtn,disabled:_||h,onClick:()=>{(async()=>await L(H)&&S(""))()},children:h?t("common.loading"):t("settings.license.activate","Activate License")})})]}),A&&e.jsx("p",{className:a.licenseMessage,children:A})]})]})]}),e.jsxs("div",{className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(j,{label:t("settings.general.title","General Settings"),tooltip:t("settings.general.title.tooltip","Hot settings that apply immediately when changed.")}),e.jsx(u,{text:t("settings.general.liveApply.tooltip","Changes in this section are applied immediately without a separate save button."),children:e.jsx("span",{className:`${a.headerBadge} ${a.headerBadgeLive}`,children:t("settings.general.liveApply","Live Apply")})})]}),o?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:a.settingRow,children:[e.jsx("span",{className:a.settingLabel,children:e.jsx(j,{label:t("settings.general.logLevel","Log Level"),tooltip:t("settings.general.logLevel.tooltip","Sets how much detail WEPPY Dashboard writes to its logs.")})}),e.jsxs("div",{className:a.settingControl,children:[e.jsx("select",{className:a.select,value:o.hot.LOG_LEVEL,onChange:n=>r("LOG_LEVEL",n.target.value),children:ys.map(n=>e.jsx("option",{value:n,children:n},n))}),y==="LOG_LEVEL"&&e.jsx("span",{className:a.savedIndicator,children:t("settings.general.applied")})]})]}),e.jsxs("div",{className:a.settingRow,children:[e.jsx("span",{className:a.settingLabel,children:e.jsx(j,{label:t("settings.general.localHistory","Tool History Recording"),tooltip:t("settings.general.localHistory.tooltip","Stores local tool execution history for the WEPPY Dashboard history views.")})}),e.jsxs("div",{className:a.settingControl,children:[e.jsx("span",{className:`${a.savedIndicator} ${y==="ENABLE_LOCAL_HISTORY"?"":a.savedIndicatorHidden}`,children:t("settings.general.applied","Applied")}),e.jsx(ae,{checked:o.hot.ENABLE_LOCAL_HISTORY,ariaLabel:t("settings.general.localHistory","Tool History Recording"),testId:"settings-toggle-enable-local-history",onChange:n=>r("ENABLE_LOCAL_HISTORY",n)})]})]}),e.jsxs("div",{className:a.settingRow,children:[e.jsx("span",{className:a.settingLabel,children:e.jsx(j,{label:t("settings.general.localStatistics","Tool Statistics Collection"),tooltip:t("settings.general.localStatistics.tooltip","Aggregates local usage statistics for WEPPY Dashboard reporting.")})}),e.jsxs("div",{className:a.settingControl,children:[e.jsx("span",{className:`${a.savedIndicator} ${y==="ENABLE_LOCAL_STATISTICS"?"":a.savedIndicatorHidden}`,children:t("settings.general.applied","Applied")}),e.jsx(ae,{checked:o.hot.ENABLE_LOCAL_STATISTICS,ariaLabel:t("settings.general.localStatistics","Tool Statistics Collection"),testId:"settings-toggle-enable-local-statistics",onChange:n=>r("ENABLE_LOCAL_STATISTICS",n)})]})]}),e.jsxs("div",{className:a.settingRow,children:[e.jsx("span",{className:a.settingLabel,children:e.jsx(j,{label:t("settings.general.contextCapture","Context Capture"),tooltip:t("settings.general.contextCapture.tooltip","When enabled, WEPPY Dashboard records structured execution context for changelog and playtest views.")})}),e.jsxs("div",{className:a.settingControl,children:[e.jsx("span",{className:`${a.savedIndicator} ${y==="ENABLE_CONTEXT_CAPTURE"?"":a.savedIndicatorHidden}`,children:t("settings.general.applied","Applied")}),e.jsx(ae,{checked:o.hot.ENABLE_CONTEXT_CAPTURE,ariaLabel:t("settings.general.contextCapture","Context Capture"),testId:"settings-toggle-enable-context-capture",onChange:n=>r("ENABLE_CONTEXT_CAPTURE",n)})]})]}),e.jsxs("div",{className:a.settingRow,children:[e.jsx("span",{className:a.settingLabel,children:e.jsx(j,{label:t("settings.general.requestTimeout","Action Timeout"),tooltip:t("settings.general.requestTimeout.tooltip","Maximum time WEPPY Dashboard waits for an action before it fails.")})}),e.jsxs("div",{className:a.settingControl,children:[e.jsx("input",{type:"number",className:a.numberInput,value:o.hot.REQUEST_TIMEOUT,min:1e3,max:12e4,step:1e3,onChange:n=>{const v=parseInt(n.target.value,10);isNaN(v)||r("REQUEST_TIMEOUT",v)}}),e.jsx(u,{text:t("settings.general.requestTimeout.unit.tooltip","Action timeout is measured in milliseconds."),children:e.jsx("span",{className:a.unit,children:t("settings.general.requestTimeout.unit","ms")})}),y==="REQUEST_TIMEOUT"&&e.jsx("span",{className:a.savedIndicator,children:t("settings.general.applied","Applied")})]})]})]}):e.jsx("div",{className:a.loading,children:t("settings.unavailable")})]}),e.jsx(ps,{tier:I}),e.jsxs("div",{className:a.card,children:[e.jsxs("div",{className:a.cardHeader,children:[e.jsx(j,{label:t("settings.cold.title","Server Environment"),tooltip:t("settings.cold.title.tooltip","Read-only server environment values loaded at startup.")}),e.jsx(u,{text:t("settings.readOnly.tooltip","This section shows values that cannot be edited from WEPPY Dashboard."),children:e.jsx("span",{className:a.headerBadge,children:t("settings.readOnly","Read-only")})})]}),o?e.jsxs(e.Fragment,{children:[e.jsxs("dl",{className:a.coldGrid,children:[e.jsx("dt",{children:e.jsx(j,{label:"HTTP_PORT",tooltip:t("settings.cold.httpPort.tooltip","Port number used by the MCP WEPPY Dashboard HTTP server.")})}),e.jsx("dd",{children:o.cold.HTTP_PORT}),e.jsx("dt",{children:e.jsx(j,{label:"HTTP_HOST",tooltip:t("settings.cold.httpHost.tooltip","Host interface that the MCP WEPPY Dashboard HTTP server binds to.")})}),e.jsx("dd",{children:o.cold.HTTP_HOST}),e.jsx("dt",{children:e.jsx(j,{label:"DASHBOARD_AUTO_OPEN",tooltip:t("settings.cold.dashboardAutoOpen.tooltip","Controls whether WEPPY Dashboard opens automatically in the browser when the server starts.")})}),e.jsx("dd",{children:e.jsx(u,{text:t("settings.cold.dashboardAutoOpen.value.tooltip","Current startup behavior for opening WEPPY Dashboard in a browser."),children:String(o.cold.DASHBOARD_AUTO_OPEN)})})]}),e.jsx("p",{className:a.coldHint,children:t("settings.cold.hint","Set via environment variables to change these values.")})]}):e.jsx("div",{className:a.loading,children:t("settings.unavailable")})]}),e.jsxs("div",{className:a.card,children:[e.jsx("div",{className:a.cardHeader,children:e.jsx(j,{label:t("settings.language.title","Language"),tooltip:t("settings.language.title.tooltip","Choose how the WEPPY Dashboard interface text is localized.")})}),e.jsxs("div",{className:a.langRow,children:[e.jsx("label",{children:e.jsx(j,{label:t("settings.language.dashboard","WEPPY Dashboard Language"),tooltip:t("settings.language.dashboard.tooltip","Overrides the WEPPY Dashboard language or follows the system language when set to Auto.")})}),e.jsx(u,{text:t("settings.language.auto.tooltip","Follow the operating system's language. Falls back to English when not supported."),children:e.jsxs("select",{className:a.select,value:s,onChange:n=>c(n.target.value),children:[e.jsx("option",{value:ye,children:t("settings.language.auto","Auto")}),ve.map(n=>e.jsx("option",{value:n,children:hs[n]??n},n))]})})]})]})]})}export{Ss as Component};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{r as c,a as P,D as S,u as L,i as k,n as R,o as $,j as e,d as D,l as O,m as A,T as E,p as B}from"./index-C9gmLH8z.js";import{I as f}from"./InfoLabel-Bp3j_i44.js";import{T as j}from"./TooltipText-Bgk-NYKr.js";import{C as H}from"./ConfirmModal-Dg8_uxRE.js";import{S as M}from"./StatusBadge-4qs9buFz.js";import{D as F,T as U}from"./TierComparison-Lkag7n54.js";const W=5e3;function q(){const[t,i]=c.useState(null),[b,y]=c.useState([]),[u,o]=c.useState(!0),[p,w]=c.useState(null),h=c.useRef(null),m=c.useRef(null),r=c.useCallback(async()=>{var d;try{const[T,a]=await Promise.all([P.get("/sync/status"),P.get("/api/dashboard/place-summary")]);i(T);const x=(d=a.places)==null?void 0:d.find(I=>I.isActive);w((x==null?void 0:x.placeDirName)??null)}catch{}},[]),_=c.useCallback(async()=>{try{const d=await P.get("/sync/history",{limit:"30"});y(d.entries??[])}catch{y([])}},[]),g=c.useCallback(async()=>{await Promise.all([r(),_()]),o(!1)},[r,_]),n=c.useCallback(()=>{g()},[g]),N=c.useCallback(async()=>{await P.post("/api/dashboard/sync/history/clear"),y([]),r()},[r]);return c.useEffect(()=>(g(),m.current=setInterval(g,W),()=>{m.current&&clearInterval(m.current)}),[g]),c.useEffect(()=>{const d=new S;h.current=d,d.connect();const T=d.on("sync",()=>{r(),_()});return()=>{T(),d.disconnect(),h.current=null}},[r,_]),{status:t,history:b,loading:u,activePlaceDirName:p,refresh:n,clearHistory:N}}const G="_actions_1ry8y_66",z="_btn_1ry8y_74",Y="_btnOutline_1ry8y_95",V="_btnPrimary_1ry8y_105",J="_panel_1ry8y_115",Q="_panelIcon_1ry8y_122",X="_panelTitle_1ry8y_128",Z="_panelDesc_1ry8y_137",K="_benefitList_1ry8y_145",ee="_benefitItem_1ry8y_154",l={actions:G,btn:z,btnOutline:Y,btnPrimary:V,panel:J,panelIcon:Q,panelTitle:X,panelDesc:Z,benefitList:K,benefitItem:ee};function te({icon:t,title:i,description:b,benefits:y,upgradeLabel:u,upgradeHref:o}){const{t:p}=L(),[w,h]=c.useState(!1),{trackEvent:m}=k(),{pathname:r,search:_}=R(),g=$(r,_);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:i}),e.jsx("div",{className:l.panelDesc,children:b}),e.jsx("ul",{className:l.benefitList,children:y.map(n=>e.jsx("li",{className:l.benefitItem,children:n},n))}),e.jsx("div",{className:l.panelDiscountWrap,children:e.jsx(F,{variant:"centered"})}),e.jsxs("div",{className:l.actions,children:[e.jsx("button",{className:`${l.btn} ${l.btnOutline}`,onClick:()=>{m("dashboard_click_event",{click_target:"tier_compare",placement:"tier_panel",...g}),h(!0)},children:p("tier.compare","Basic vs Pro")}),e.jsx("a",{className:`${l.btn} ${l.btnPrimary}`,href:o,target:"_blank",rel:"noreferrer",onClick:()=>m("dashboard_click_event",{click_target:"upgrade_cta",placement:"tier_panel",...g}),children:u})]})]}),w&&e.jsx(U,{onClose:()=>h(!1)})]})}const se="_page_siyu4_2",ne="_card_siyu4_10",ie="_cardHeader_siyu4_17",ae="_clearButton_siyu4_29",ce="_statusRow_siyu4_39",oe="_metaItem_siyu4_46",le="_statusGrid_siyu4_52",re="_table_siyu4_71",de="_directionRail_siyu4_99",ye="_endpointLabel_siyu4_105",ue="_optionRail_siyu4_109",pe="_directionOption_siyu4_115",_e="_directionOptionActive_siyu4_129",he="_directionOptionInactive_siyu4_133",me="_direction_forward_siyu4_139",ge="_direction_bidirectional_siyu4_143",fe="_direction_reverse_siyu4_147",be="_lockBadge_siyu4_152",xe="_proBadge_siyu4_160",je="_forwardBadge_siyu4_174",ve="_logContainer_siyu4_187",we="_logEntry_siyu4_194",Te="_logTime_siyu4_206",Ne="_logType_siyu4_212",Ie="_logTypeWrite_siyu4_221",Pe="_logTypeUpdate_siyu4_225",Ce="_logTypeDelete_siyu4_229",Le="_logTypeIdle_siyu4_233",ke="_logPath_siyu4_237",Se="_logEmpty_siyu4_244",Re="_overlay_siyu4_251",$e="_overlayTitle_siyu4_261",De="_overlayMessage_siyu4_268",Oe="_checklist_siyu4_274",Ae="_checkItem_siyu4_284",Ee="_upgradePanel_siyu4_300",Be="_upgradePanelHeader_siyu4_307",He="_benefitList_siyu4_315",Me="_benefitItem_siyu4_324",Fe="_upgradeActions_siyu4_339",Ue="_btn_siyu4_344",We="_btnPrimary_siyu4_361",qe="_disabled_siyu4_372",s={page:se,card:ne,cardHeader:ie,clearButton:ae,statusRow:ce,metaItem:oe,statusGrid:le,table:re,directionRail:de,endpointLabel:ye,optionRail:ue,directionOption:pe,directionOptionActive:_e,directionOptionInactive:he,direction_forward:me,direction_bidirectional:ge,direction_reverse:fe,lockBadge:be,proBadge:xe,forwardBadge:je,logContainer:ve,logEntry:we,logTime:Te,logType:Ne,logTypeWrite:Ie,logTypeUpdate:Pe,logTypeDelete:Ce,logTypeIdle:Le,logPath:ke,logEmpty:Se,overlay:Re,overlayTitle:$e,overlayMessage:De,checklist:Oe,checkItem:Ae,upgradePanel:Ee,upgradePanelHeader:Be,benefitList:He,benefitItem:Me,upgradeActions:Fe,btn:Ue,btnPrimary:We,disabled:qe},Ge=[{key:"forward",symbol:"←"},{key:"bidirectional",symbol:"↔"},{key:"reverse",symbol:"→"}];function ze(t){const i=new Date(t);return`${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}`}function Ye(t){switch(t){case"write":return s.logTypeWrite;case"update":return s.logTypeUpdate;case"delete":return s.logTypeDelete;default:return s.logTypeIdle}}function Ve(t){switch(t){case"syncing":return"syncing";case"initializing":return"initializing";case"idle":return"idle";default:return"offline"}}function Je(t,i,b,y){const u=t(`sync.directions.cat.${i}`,i.charAt(0).toUpperCase()+i.slice(1)),o=t("sync.directions.endpoint.local","Local"),p=t("sync.directions.endpoint.studio","Studio");switch(b){case"forward":return[`${u}: ${o} <- ${p}`,t("sync.directions.tooltip.forward.body","Studio changes sync to local files only")].join(`
|
|
2
|
-
`);case"bidirectional":return[`${u}: ${o} <-> ${p}`,t("sync.directions.tooltip.bidirectional.body","Two-way sync between Local and Studio"),y?t("sync.directions.tooltip.proRequired","Pro required in Basic tier"):""].filter(Boolean).join(`
|
|
3
|
-
`);case"reverse":return[`${u}: ${o} -> ${p}`,t("sync.directions.tooltip.reverse.body","Push local file changes to Studio"),y?t("sync.directions.tooltip.proRequired","Pro required in Basic tier"):""].filter(Boolean).join(`
|
|
4
|
-
`);default:return u}}const Qe=["scripts","values","containers","data","services"];function Xe(t,i){return i==="manual"?t("sync.directions.mode.manual","Manual"):i==="auto"?t("sync.directions.mode.auto","Auto"):"-"}function Ze(t,i){return i==="manual"?t("sync.directions.mode.manual.tooltip","Applies sync changes only when you trigger them manually."):i==="auto"?t("sync.directions.mode.auto.tooltip","Applies sync changes automatically when updates arrive."):""}function Ke(t,i){switch(i){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 et(t,i){switch(i){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 ot(){const{t}=L(),{trackEvent:i}=k(),{level:b}=D(),{tier:y,loading:u}=O(),o=q(),{show:p}=A(),[w,h]=c.useState(!1),[m,r]=c.useState(!1),_=!u&&y==="basic";if(b==="disconnected"||b==="serverOnly")return e.jsx("div",{className:s.page,children:e.jsx("div",{className:s.card,children:e.jsxs("div",{className:s.overlay,children:[e.jsx("div",{className:s.overlayTitle,children:t("sync.overlay.title","Roblox Studio plugin required")}),e.jsx("div",{className:s.overlayMessage,children:t("sync.overlay.message","Sync status will be available once the Roblox Studio plugin connects.")}),e.jsxs("ul",{className:s.checklist,children:[e.jsx("li",{className:s.checkItem,children:t("sync.overlay.check1","Is Roblox Studio running?")}),e.jsx("li",{className:s.checkItem,children:t("sync.overlay.check2","Is the WEPPY Plugin installed?")})]})]})})});const n=o.status,N=o.history,d=Ve(n==null?void 0:n.state),T=async()=>{r(!0);try{await o.clearHistory(),p(t("toast.clearSuccess","Cleared successfully"),"success"),h(!1)}catch{p(t("toast.clearFailed","Failed to clear data"),"error")}finally{r(!1)}};return e.jsxs("div",{className:s.page,children:[e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx(j,{text:t("sync.status.title.tooltip","Current Studio and local file sync status for this place."),children:t("sync.status.title","Sync Status")}),_&&e.jsx(j,{text:t("sync.status.forwardOnly.tooltip","Basic tier allows Studio to local forward sync only."),children:e.jsx("span",{className:s.forwardBadge,children:t("sync.status.forwardOnly","Forward Only")})})]}),e.jsxs("div",{className:s.statusRow,children:[e.jsx(M,{status:d}),(n==null?void 0:n.placeName)&&e.jsxs("span",{className:s.metaItem,children:[e.jsx(f,{label:t("sync.status.place","Place"),tooltip:t("sync.status.place.tooltip","Connected Roblox place name and place ID.")}),": ",n.placeName,n.placeId?` (${n.placeId})`:""]})]}),e.jsxs("dl",{className:s.statusGrid,children:[(n==null?void 0:n.syncRoot)&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(f,{label:t("sync.status.path","Path"),tooltip:t("sync.status.path.tooltip","Local filesystem root currently used for sync output.")})}),e.jsx("dd",{children:n.syncRoot})]}),o.activePlaceDirName&&(n==null?void 0:n.syncRoot)&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(f,{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:`${n.syncRoot}/${o.activePlaceDirName}/explorer`})]}),(n==null?void 0:n.instanceCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(f,{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:n.instanceCount})]}),(n==null?void 0:n.scriptCount)!=null&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(f,{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:n.scriptCount})]}),(n==null?void 0:n.state)==="syncing"&&e.jsxs(e.Fragment,{children:[e.jsx("dt",{children:e.jsx(f,{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")})]})]})]}),(n==null?void 0:n.directions)&&e.jsxs("div",{className:s.card,children:[e.jsx("div",{className:s.cardHeader,children:e.jsx(j,{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:s.table,children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:e.jsx(f,{label:t("sync.directions.type","Type"),tooltip:t("sync.directions.type.tooltip","Sync category affected by this rule.")})}),e.jsx("th",{children:e.jsx(f,{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(f,{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:Qe.map(a=>{var C;const x=n.directions[a],I=(C=n.applyModes)==null?void 0:C[a];return e.jsxs("tr",{children:[e.jsx("td",{children:t(`sync.directions.cat.${a}`,a.charAt(0).toUpperCase()+a.slice(1))}),e.jsx("td",{children:e.jsxs("div",{className:s.directionRail,"aria-label":`${a}-direction-rail`,children:[e.jsx(j,{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:s.endpointLabel,children:t("sync.directions.endpoint.local","Local")})}),e.jsx("span",{className:s.optionRail,children:Ge.map(v=>e.jsx(E,{text:Je(t,a,v.key,_),children:e.jsx("span",{className:`${s.directionOption} ${x===v.key?s.directionOptionActive:s.directionOptionInactive} ${s[`direction_${v.key}`]??""}`,"data-active":x===v.key?"true":"false",children:v.symbol})},v.key))}),e.jsx(j,{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:s.endpointLabel,children:t("sync.directions.endpoint.studio","Studio")})})]})}),e.jsx("td",{children:e.jsx(j,{text:Ze(t,I),children:Xe(t,I)})})]},a)})})]})]}),e.jsxs("div",{className:s.card,children:[e.jsxs("div",{className:s.cardHeader,children:[e.jsx("span",{children:t("sync.log.title","Sync Log")}),e.jsx("button",{className:s.clearButton,onClick:()=>{i("dashboard_click_event",{click_target:"sync_clear_log",page:"sync"}),h(!0)},children:t("common.clear","Clear")})]}),e.jsx("div",{className:s.logContainer,children:N.length===0?e.jsx("div",{className:s.logEmpty,children:t("sync.log.empty","No sync events yet")}):N.map((a,x)=>e.jsxs("div",{className:s.logEntry,children:[e.jsx("span",{className:s.logTime,children:ze(a.timestamp)}),e.jsx(j,{text:et(t,a.type),children:e.jsx("span",{className:`${s.logType} ${Ye(a.type)}`,children:Ke(t,a.type)})}),e.jsxs("span",{className:s.logPath,children:[a.path,a.details?` — ${a.details}`:""]})]},x))})]}),_&&e.jsx(te,{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:B.sync}),e.jsx(H,{open:w,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:m,onCancel:()=>!m&&h(!1),onConfirm:T})]})}export{ot as Component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._progressPromoWrap_1ry8y_1{display:flex;flex-direction:column;gap:8px}._progressPromo_1ry8y_1{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:14px 20px;display:flex;align-items:center;gap:16px}._progressMain_1ry8y_17{flex:1;min-width:0}._progressLabel_1ry8y_22{font-family:var(--font-label);font-size:11px;color:var(--text-secondary);margin-bottom:6px;display:flex;justify-content:space-between;gap:12px}._progressBar_1ry8y_32{height:6px;background:var(--bg-secondary);border-radius:3px;overflow:hidden}._progressFill_1ry8y_39{height:100%;background:var(--pro-badge);border-radius:3px;transition:width var(--transition)}._progressTextGroup_1ry8y_46{display:flex;flex-direction:column;gap:3px}._progressText_1ry8y_46{font-family:var(--font-label);font-size:13px;color:var(--pro-badge);white-space:nowrap;font-weight:500}._discountHint_1ry8y_60{font-size:11px;color:var(--text-muted);white-space:nowrap}._actions_1ry8y_66{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}._btn_1ry8y_74{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-label);font-size:12px;padding:6px 14px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer;text-decoration:none;transition:background var(--transition),border-color var(--transition),opacity var(--transition)}._btn_1ry8y_74:hover{border-color:var(--accent);background:var(--accent-dim)}._btnOutline_1ry8y_95{border-color:var(--pro-badge);color:var(--pro-badge)}._btnOutline_1ry8y_95:hover{background:var(--pro-bg-soft);border-color:var(--pro-badge)}._btnPrimary_1ry8y_105{background:var(--pro-badge);color:var(--pro-text-on-badge);border-color:var(--pro-badge)}._btnPrimary_1ry8y_105:hover{opacity:.9}._panel_1ry8y_115{background:linear-gradient(180deg,var(--pro-bg-soft),transparent 60%),var(--bg-secondary);border:1px solid var(--pro-border);border-radius:var(--radius);padding:24px 20px}._panelIcon_1ry8y_122{font-size:32px;margin-bottom:12px;text-align:center}._panelTitle_1ry8y_128{font-family:var(--font-label);font-size:15px;font-weight:600;color:var(--pro-text);margin-bottom:8px;text-align:center}._panelDesc_1ry8y_137{font-size:13px;color:var(--text-secondary);margin-bottom:16px;line-height:1.5;text-align:center}._benefitList_1ry8y_145{list-style:none;padding:0;margin:0 0 16px;display:flex;flex-direction:column;gap:4px}._benefitItem_1ry8y_154{font-size:12px;color:var(--text-secondary);padding-left:16px;position:relative}._benefitItem_1ry8y_154:before{content:"+";position:absolute;left:0;color:var(--pro-badge);font-weight:600}._panelDiscountHint_1ry8y_169{font-size:11px;color:var(--text-muted);text-align:center;margin-bottom:12px}@media(max-width:720px){._progressPromo_1ry8y_1{flex-direction:column;align-items:stretch}._progressText_1ry8y_46,._discountHint_1ry8y_60{white-space:normal}._actions_1ry8y_66{justify-content:stretch}._btn_1ry8y_74{width:100%}}._page_siyu4_2{display:flex;flex-direction:column;gap:16px;max-width:900px}._card_siyu4_10{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px}._cardHeader_siyu4_17{font-family:var(--font-label);font-size:13px;font-weight:600;color:var(--text-primary);margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}._clearButton_siyu4_29{border:1px solid rgba(209,84,84,.5);background:#d154541f;color:var(--error-text);border-radius:8px;padding:6px 12px;cursor:pointer}._statusRow_siyu4_39{display:flex;align-items:center;gap:12px;margin-bottom:8px}._metaItem_siyu4_46{font-family:var(--font-code);font-size:12px;color:var(--text-secondary)}._statusGrid_siyu4_52{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-size:12px}._statusGrid_siyu4_52 dt{color:var(--text-secondary);font-family:var(--font-label)}._statusGrid_siyu4_52 dd{margin:0;font-family:var(--font-code);color:var(--text-primary)}._table_siyu4_71{width:100%;border-collapse:collapse;font-family:var(--font-code);font-size:12px}._table_siyu4_71 th{text-align:left;padding:6px 12px;border-bottom:1px solid var(--border);color:var(--text-secondary);font-family:var(--font-label);font-weight:500;font-size:11px}._table_siyu4_71 td{padding:6px 12px;border-bottom:1px solid var(--border);color:var(--text-primary)}._table_siyu4_71 tr:last-child td{border-bottom:none}._directionRail_siyu4_99{display:inline-flex;align-items:center;gap:10px}._endpointLabel_siyu4_105{color:var(--text-secondary)}._optionRail_siyu4_109{display:inline-flex;align-items:center;gap:6px}._directionOption_siyu4_115{display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;border-radius:6px;border:1px solid var(--border);font-family:var(--font-code);font-size:13px;cursor:help;-webkit-user-select:none;user-select:none}._directionOptionActive_siyu4_129{background:var(--bg-secondary)}._directionOptionInactive_siyu4_133{background:transparent;opacity:.45;color:var(--text-muted)}._directionOptionActive_siyu4_129._direction_forward_siyu4_139{color:var(--success)}._directionOptionActive_siyu4_129._direction_bidirectional_siyu4_143{color:var(--accent)}._directionOptionActive_siyu4_129._direction_reverse_siyu4_147{color:var(--warning)}._lockBadge_siyu4_152{display:inline-block;margin-left:6px;font-size:11px;color:var(--text-muted)}._proBadge_siyu4_160{display:inline-block;margin-left:6px;padding:1px 5px;font-size:9px;font-weight:600;letter-spacing:.05em;color:var(--pro-text-on-badge);background:var(--pro-badge);border-radius:3px;vertical-align:middle}._forwardBadge_siyu4_174{display:inline-block;padding:2px 8px;font-size:10px;font-weight:600;letter-spacing:.04em;color:var(--text-secondary);background:var(--bg-secondary);border:1px solid var(--border);border-radius:4px}._logContainer_siyu4_187{max-height:240px;overflow-y:auto;font-family:var(--font-code);font-size:11px}._logEntry_siyu4_194{display:flex;gap:10px;padding:3px 0;border-bottom:1px solid var(--border);color:var(--text-primary)}._logEntry_siyu4_194:last-child{border-bottom:none}._logTime_siyu4_206{color:var(--text-muted);flex-shrink:0;width:44px}._logType_siyu4_212{font-weight:500;flex-shrink:0;width:90px;text-transform:uppercase;font-size:10px;letter-spacing:.04em}._logTypeWrite_siyu4_221{color:var(--success)}._logTypeUpdate_siyu4_225{color:var(--accent)}._logTypeDelete_siyu4_229{color:var(--error)}._logTypeIdle_siyu4_233{color:var(--text-muted)}._logPath_siyu4_237{color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._logEmpty_siyu4_244{color:var(--text-muted);font-style:italic;padding:8px 0}._overlay_siyu4_251{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 24px;gap:16px}._overlayTitle_siyu4_261{font-family:var(--font-label);font-size:15px;font-weight:600;color:var(--text-primary)}._overlayMessage_siyu4_268{font-size:13px;color:var(--text-secondary);max-width:400px}._checklist_siyu4_274{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;text-align:left}._checkItem_siyu4_284{font-family:var(--font-code);font-size:12px;color:var(--text-secondary);padding-left:20px;position:relative}._checkItem_siyu4_284:before{content:"○";position:absolute;left:0;color:var(--text-muted)}._upgradePanel_siyu4_300{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px}._upgradePanelHeader_siyu4_307{font-family:var(--font-label);font-size:13px;font-weight:600;color:var(--accent);margin-bottom:8px}._benefitList_siyu4_315{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:4px}._benefitItem_siyu4_324{font-size:12px;color:var(--text-secondary);padding-left:16px;position:relative}._benefitItem_siyu4_324:before{content:"+";position:absolute;left:0;color:var(--accent);font-weight:600}._upgradeActions_siyu4_339{display:flex;gap:8px}._btn_siyu4_344{font-family:var(--font-label);font-size:12px;padding:6px 14px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer;transition:background var(--transition),border-color var(--transition)}._btn_siyu4_344:hover{border-color:var(--accent);background:var(--accent-dim)}._btnPrimary_siyu4_361{background:var(--accent);color:var(--bg-card);border-color:var(--accent)}._btnPrimary_siyu4_361:hover{opacity:.9}._disabled_siyu4_372{opacity:.4;pointer-events:none}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._tag_1wj0q_2{display:inline-flex;align-items:center;gap:7px;padding:5px 10px 5px 9px;border-radius:6px;border:1px solid rgba(212,170,44,.28);border-left:2px solid var(--pro-badge);background:linear-gradient(90deg,rgba(212,170,44,.09) 0%,transparent 100%);font-size:11.5px;line-height:1;flex-wrap:wrap;row-gap:4px}._label_1wj0q_17{color:var(--text-secondary);white-space:nowrap}._code_1wj0q_22{font-family:var(--font-mono);font-size:12px;font-weight:700;color:var(--pro-badge);letter-spacing:.1em;animation:_codeShimmer_1wj0q_1 2.8s ease-in-out infinite}._expiry_1wj0q_31{color:var(--text-muted);font-size:10.5px;white-space:nowrap}._expiry_1wj0q_31:before{content:"·";margin-right:5px;opacity:.5}@keyframes _codeShimmer_1wj0q_1{0%,to{opacity:1}50%{opacity:.6;text-shadow:0 0 8px rgba(212,170,44,.6)}}._inline_1wj0q_49{align-self:center}._centered_1wj0q_54{justify-content:center;width:100%}._overlay_171mk_2{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000}._modal_171mk_13{background:var(--bg-card);border:1px solid var(--pro-border);border-radius:var(--radius);padding:24px 32px;min-width:720px;max-width:1120px;max-height:80vh;overflow-y:auto}._modal_171mk_13 h2{font-family:var(--font-label);font-size:16px;color:var(--text-primary);margin:0 0 12px;text-align:center}._summaryGrid_171mk_32{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}._summaryCard_171mk_39{border-radius:var(--radius);border:1px solid var(--border);padding:18px 20px}._basicCard_171mk_45{background:#ffffff05}._proCard_171mk_49{background:linear-gradient(180deg,var(--pro-bg-soft),rgba(0,0,0,0) 70%),var(--pro-bg);border-color:var(--pro-border)}._cardTitle_171mk_54{margin:0 0 12px;text-align:center;font-family:var(--font-label);font-size:28px;letter-spacing:.06em}._basicCard_171mk_45 ._cardTitle_171mk_54{color:var(--text-primary)}._proCard_171mk_49 ._cardTitle_171mk_54{color:var(--pro-badge)}._summarySection_171mk_70{margin-bottom:18px}._summarySection_171mk_70:last-child{margin-bottom:0}._sectionTitle_171mk_78{font-family:var(--font-label);font-size:14px;font-weight:600;margin-bottom:8px;color:var(--text-primary)}._proCard_171mk_49 ._sectionTitle_171mk_78{color:var(--pro-text)}._featureList_171mk_90{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px;color:var(--text-secondary);font-size:13px}._featureList_171mk_90 li:before{content:"+ ";color:var(--pro-badge)}._summary_171mk_32{display:flex;gap:12px;justify-content:center;margin-bottom:16px;font-size:12px;font-family:var(--font-label)}._statBasic_171mk_116{color:var(--text-secondary)}._statPro_171mk_120{color:var(--pro-badge)}._statMixed_171mk_124{color:var(--text-muted)}._detailHeader_171mk_128{font-family:var(--font-label);font-size:14px;font-weight:600;color:var(--text-primary);margin-bottom:12px}._tableWrap_171mk_137{margin-bottom:16px}._table_171mk_137{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}._table_171mk_137 th{font-family:var(--font-label);text-align:left;padding:6px 8px;border-bottom:1px solid var(--border);color:var(--text-secondary);position:sticky;top:0;background:var(--bg-card)}._table_171mk_137 td{padding:5px 8px;border-bottom:1px solid var(--border-subtle, rgba(255,255,255,.04));vertical-align:top}._toolName_171mk_165{font-family:var(--font-mono);color:var(--text-primary);white-space:nowrap}._description_171mk_171{color:var(--text-secondary);line-height:1.5}._actionList_171mk_176{color:var(--text-secondary);font-family:var(--font-mono);font-size:11px;line-height:1.5;word-break:break-word}._none_171mk_184{color:var(--text-muted)}._discountBanner_171mk_189{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 10px;margin-bottom:12px;padding:8px 16px;border-radius:var(--radius);background:linear-gradient(90deg,var(--pro-bg-soft),rgba(0,0,0,0));border:1px solid var(--pro-border);font-size:13px}._discountLabel_171mk_203{color:var(--text-secondary);flex-shrink:0}._discountCode_171mk_208{font-family:var(--font-mono);font-size:14px;font-weight:700;color:var(--pro-badge);letter-spacing:.1em;background:#ffffff0f;border:1px solid var(--pro-border);border-radius:4px;padding:2px 10px}._discountExpiry_171mk_220{color:var(--text-muted);font-size:12px;flex-shrink:0}._closeBtn_171mk_227{font-family:var(--font-label);font-size:12px;padding:6px 16px;border-radius:4px;border:1px solid var(--border);background:var(--bg-secondary);color:var(--text-primary);cursor:pointer;transition:border-color var(--transition);align-self:center}._closeBtn_171mk_227:hover{border-color:var(--pro-badge)}@media(max-width:960px){._modal_171mk_13{min-width:min(92vw,720px);max-width:92vw;padding:20px}._summaryGrid_171mk_32{grid-template-columns:1fr}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as p,w as d,j as s}from"./index-C9gmLH8z.js";const y=[{name:"query_instances",description:"Query Roblox instances: get, children, find child/descendant, wait for child, class info, search by name/class. [PRO] file_tree, project_structure, descendants, ancestors, search by property/tag.",basic:["get","children","find_child","find_descendant","wait_for_child","class_info","search_name","search_class"],pro:["search_property","search_tag","file_tree","project_structure","descendants","ancestors"]},{name:"mutate_instances",description:"Create, delete, clone, move, rename, or pivot instances. [PRO] create_tree, mass_create, mass_delete, mass_duplicate, smart_duplicate.",basic:["create","create_with_props","delete","clone","move","rename","pivot"],pro:["create_tree","mass_create","mass_delete","mass_duplicate","smart_duplicate"]},{name:"manage_properties",description:"Get/set properties, attributes, and tags on instances. [PRO] set_calculated, set_relative, mass_set, mass_get, modify_children.",basic:["get","set","get_all","set_multiple","get_attr","set_attr","get_all_attrs","delete_attr","add_tag","remove_tag","check_tag","get_tags","get_tagged"],pro:["set_calculated","set_relative","mass_set","mass_get","modify_children"]},{name:"manage_scripts",description:"Manage script source code: read, write, create, delete, edit lines, search. [PRO] replace across scripts.",basic:["get_source","set_source","create","delete","edit_replace","edit_insert","edit_delete","search","get_dependencies"],pro:["replace"]},{name:"manage_ui",description:"Pro only. Create or refine game-style menus, HUDs, buttons, labels, and image panels, then capture screens and review improvement suggestions.",basic:[],pro:["design_brief","create_tree","update","delete","preview","check"]},{name:"manage_lighting",description:"[PRO] Configure environment: lighting, atmosphere, sky, terrain properties, time of day.",basic:[],pro:["lighting","atmosphere","sky","terrain_props","time"]},{name:"manage_selection",description:"Get, set, or clear selection. [PRO] context, details, add/remove items, watch changes.",basic:["get","set","clear","cached"],pro:["context","details","add","remove","watch"]},{name:"manage_camera",description:"Camera operations: get info, focus on instance/position, suggest view, capture Edit-mode viewport screenshot (Edit mode only; not usable during playtest).",basic:["info","focus_path","focus_position","suggest"],pro:["screenshot"]},{name:"manage_tween",description:"[PRO] Tween service: create, play, pause, cancel tweens for smooth animations.",basic:[],pro:["create","play","pause","cancel"]},{name:"manage_audio",description:"[PRO] Audio management: play, stop, pause, resume sounds. Set audio listener.",basic:[],pro:["play","stop","pause","resume","set_listener"]},{name:"manage_animation",description:"[PRO] Animation: load, play, stop animations. Get animation tracks from humanoid/controller.",basic:[],pro:["load","play","stop","get_tracks"]},{name:"manage_physics",description:"[PRO] Physics collision groups: register, set collidable between groups, list groups.",basic:[],pro:["register_group","set_collidable","get_groups"]},{name:"manage_effects",description:"[PRO] Particle effects: emit particles, clear all particles, toggle effect enabled state.",basic:[],pro:["emit","clear","toggle"]},{name:"manage_terrain",description:"[PRO] Terrain operations: fill shapes, clear regions, replace materials, manage colors, read/write voxels, generate procedural terrain, smooth terrain.",basic:[],pro:["fill_block","fill_ball","fill_cylinder","fill_wedge","clear_region","clear_bounds","replace_material","colors_get","colors_set","read_voxel","read_voxels","write_voxels","generate","smooth"]},{name:"spatial_query",description:"[PRO] Spatial queries: raycast, find ground, check placement, multi-raycast, scan area, find flat areas, find spawn positions, analyze walkable, spatial map, find empty space, get bounds, snap to grid, check collision.",basic:[],pro:["raycast","find_ground","check_placement","multi_raycast","scan_area","find_flat","find_spawn","analyze_walkable","spatial_map","find_space","bounds","snap_grid","collision"]},{name:"manage_assets",description:"[PRO] Asset management: insert models by ID, get asset info, search creator store, insert free models/packages, export selection.",basic:[],pro:["insert","info","search","search_insert","insert_free","insert_package","export"]},{name:"manage_sync",description:"[PRO] Project sync management: status, history, direction settings, read/write synced files.",basic:[],pro:["status_current_place","history","directions","read_file","write_file","progress"]},{name:"workspace_state",description:"[PRO] Workspace state: full sync, snapshot, recent changes, viewport info, clear history, metadata, scripts, selection info, clear cache.",basic:[],pro:["sync","snapshot","changes","viewport","clear_history","metadata","scripts","selection_info","clear_cache"]},{name:"manage_logs",description:"Output logs: get filtered logs, poll incrementally with sinceSeq cursor, clear buffer, get recent errors.",basic:["get","clear","errors"],pro:[]},{name:"system_info",description:"System info: ping, connection status, usage tier. [PRO] place info, services list, studio settings, playtest control, automated test runner.",basic:["ping","connection","usage"],pro:["place_info","services","studio_settings","play","stop","pause","resume","play_status","run_test"]},{name:"manage_studio",description:"Pro only. Toggle Studio editor view settings such as UI preview for screenshot and QA workflows; it changes Studio session settings, not game UI objects.",basic:[],pro:["toggle_ui_preview"]},{name:"batch_execute",description:'[PRO] Execute multiple commands in a single batch. Each command is an object with "tool" name and "args". Commands execute sequentially; optionally continue on error.',basic:[],pro:["batch_execute"]},{name:"execute_luau",description:"[PRO] Execute arbitrary Luau code in Roblox Studio sandbox. Blocked services: HttpService, DataStoreService, MessagingService. Cannot access CoreGui/CorePackages.",basic:[],pro:["execute_luau"]}],h={proOnlyTools:15,mixedTools:7,totalBasicActions:51,totalProActions:114},b={tools:y,summary:h},x="_tag_1wj0q_2",f="_label_1wj0q_17",v="_code_1wj0q_22",j="_expiry_1wj0q_31",w="_inline_1wj0q_49",k="_centered_1wj0q_54",r={tag:x,label:f,code:v,expiry:j,inline:w,centered:k};function P({variant:n}){const{t:e}=p();return d()?s.jsxs("div",{className:`${r.tag} ${n==="centered"?r.centered:r.inline}`,children:[s.jsx("span",{className:r.label,children:e("tier.promo.discount.context","🎁 Gumroad 결제 시 할인코드 입력:")}),s.jsx("span",{className:r.code,children:e("tier.comparison.discount.code","WEPPY-MCP")}),s.jsx("span",{className:r.expiry,children:e("tier.comparison.discount.expiry","Valid until April 30")})]}):null}const N="_overlay_171mk_2",C="_modal_171mk_13",R="_summaryGrid_171mk_32",S="_summaryCard_171mk_39",T="_basicCard_171mk_45",O="_proCard_171mk_49",B="_cardTitle_171mk_54",A="_summarySection_171mk_70",I="_sectionTitle_171mk_78",L="_featureList_171mk_90",U="_summary_171mk_32",q="_statBasic_171mk_116",D="_statPro_171mk_120",$="_statMixed_171mk_124",M="_detailHeader_171mk_128",E="_tableWrap_171mk_137",G="_table_171mk_137",H="_toolName_171mk_165",W="_description_171mk_171",z="_actionList_171mk_176",F="_none_171mk_184",Q="_discountBanner_171mk_189",V="_closeBtn_171mk_227",t={overlay:N,modal:C,summaryGrid:R,summaryCard:S,basicCard:T,proCard:O,cardTitle:B,summarySection:A,sectionTitle:I,featureList:L,summary:U,statBasic:q,statPro:D,statMixed:$,detailHeader:M,tableWrap:E,table:G,toolName:H,description:W,actionList:z,none:F,discountBanner:Q,closeBtn:V},Y={manage_ui:{design_brief:"Plan UI direction",create_tree:"Create new UI",update:"Update existing UI",delete:"Remove UI",preview:"Capture UI screen",check:"Review improvement suggestions"}};function K({onClose:n}){const{t:e}=p(),{tools:_,summary:o}=b,l=(a,i)=>i.map(c=>{var m;return e(`tier.tool.${a}.action.${c}`,((m=Y[a])==null?void 0:m[c])??c)}).join(", "),u=[{title:e("tier.comparison.basic.core","Core MCP workflow"),items:[e("tier.comparison.basic.core.item1","Script create/edit"),e("tier.comparison.basic.core.item2","Instance management"),e("tier.comparison.basic.core.item3","Property control"),e("tier.comparison.basic.core.item4","Selection and search"),e("tier.comparison.basic.core.item5","Tag management"),e("tier.comparison.basic.core.item6","Camera control"),e("tier.comparison.basic.core.item7","Log monitoring")]},{title:e("tier.comparison.basic.sync","Sync (Basic)"),items:[e("tier.comparison.basic.sync.item1","Studio to Local one-way sync"),e("tier.comparison.basic.sync.item2","Manual apply as default")]}],g=[{title:e("tier.comparison.pro.all","Everything in Basic, plus"),items:[]},{title:e("tier.comparison.pro.sync","Advanced Sync workflow"),items:[e("tier.comparison.pro.sync.item1","Per-type sync direction"),e("tier.comparison.pro.sync.item2","Per-type apply mode"),e("tier.comparison.pro.sync.item3","Bidirectional and reverse sync"),e("tier.comparison.pro.sync.item4","Full sync, resync, and push to Studio"),e("tier.comparison.pro.sync.item5","Multi-place sync")]},{title:e("tier.comparison.pro.playtest","Playtest control"),items:[e("tier.comparison.pro.playtest.item1","Play, stop, pause, and resume"),e("tier.comparison.pro.playtest.item2","Playtest state inspection"),e("tier.comparison.pro.playtest.item3","Automated test execution")]},{title:e("tier.comparison.pro.creation","Advanced creation workflow"),items:[e("tier.comparison.pro.creation.item1","Bulk operations"),e("tier.comparison.pro.creation.item2","Terrain generation"),e("tier.comparison.pro.creation.item3","Asset search and insert"),e("tier.comparison.pro.creation.item4","Raycast and spatial analysis"),e("tier.comparison.pro.creation.item5","Environment control")]},{title:e("tier.comparison.pro.ui","AI UI design (UI Studio)"),items:[e("tier.comparison.pro.ui.item1","Plan game UI from your request and current Studio context"),e("tier.comparison.pro.ui.item2","Create, update, or remove menus, HUDs, buttons, and panels"),e("tier.comparison.pro.ui.item3","Capture the current UI for review"),e("tier.comparison.pro.ui.item4","Review touch, contrast, and safe-area suggestions")]}];return s.jsx("div",{className:t.overlay,onClick:n,children:s.jsxs("div",{className:t.modal,onClick:a=>a.stopPropagation(),children:[d()&&s.jsx("div",{className:t.discountBanner,children:s.jsx(P,{variant:"centered"})}),s.jsx("h2",{children:e("tier.compare")}),s.jsxs("div",{className:t.summaryGrid,children:[s.jsxs("section",{className:`${t.summaryCard} ${t.basicCard}`,children:[s.jsx("h3",{className:t.cardTitle,children:e("tier.basic")}),u.map(a=>s.jsxs("div",{className:t.summarySection,children:[s.jsx("div",{className:t.sectionTitle,children:a.title}),s.jsx("ul",{className:t.featureList,children:a.items.map(i=>s.jsx("li",{children:i},i))})]},a.title))]}),s.jsxs("section",{className:`${t.summaryCard} ${t.proCard}`,children:[s.jsx("h3",{className:t.cardTitle,children:e("tier.pro")}),g.map(a=>s.jsxs("div",{className:t.summarySection,children:[s.jsx("div",{className:t.sectionTitle,children:a.title}),a.items.length>0&&s.jsx("ul",{className:t.featureList,children:a.items.map(i=>s.jsx("li",{children:i},i))})]},a.title))]})]}),s.jsxs("div",{className:t.summary,children:[s.jsxs("span",{className:t.statBasic,children:[e("tier.comparison.summary.basic","Basic"),": ",o.totalBasicActions," ",e("tier.comparison.summary.actions","actions")]}),s.jsxs("span",{className:t.statPro,children:[e("tier.comparison.summary.pro","Pro"),": ",o.totalProActions," ",e("tier.comparison.summary.actions","actions")]}),s.jsxs("span",{className:t.statMixed,children:[o.mixedTools," ",e("tier.comparison.summary.mixed","mixed")," / ",o.proOnlyTools," ",e("tier.comparison.summary.proOnly","pro-only")]})]}),s.jsx("div",{className:t.detailHeader,children:e("tier.comparison.detailTitle","Detailed Tool Catalog")}),s.jsx("div",{className:t.tableWrap,children:s.jsxs("table",{className:t.table,children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:e("tools.col.tool")}),s.jsx("th",{children:e("tier.comparison.description","Description")}),s.jsx("th",{children:e("tier.basic")}),s.jsx("th",{children:e("tier.pro")})]})}),s.jsx("tbody",{children:_.map(a=>s.jsxs("tr",{children:[s.jsx("td",{className:t.toolName,children:a.name}),s.jsx("td",{className:t.description,children:e(`tier.tool.${a.name}.desc`,a.description)}),s.jsx("td",{className:t.actionList,children:a.basic.length>0?l(a.name,a.basic):s.jsx("span",{className:t.none,children:"—"})}),s.jsx("td",{className:t.actionList,children:a.pro.length>0?l(a.name,a.pro):s.jsx("span",{className:t.none,children:"—"})})]},a.name))})]})}),s.jsx("button",{className:t.closeBtn,onClick:n,children:e("tier.comparison.close","Close")})]})})}export{P as D,K as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as r,T as s}from"./index-C9gmLH8z.js";function p({text:o,children:t}){return r.jsx(s,{text:o,children:t})}export{p as T};
|