viberadar 0.3.123 → 0.3.124

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.
@@ -4760,7 +4760,9 @@ async function renderDocFeatureDetail(c) {
4760
4760
  <h2 style="margin:0;font-size:18px;color:var(--text)">${escapeHtml(f.label)}</h2>
4761
4761
  <div style="display:flex;align-items:center;font-size:13px">${statusDot}<span style="color:${statusColor};font-weight:600">${statusText}</span></div>
4762
4762
  <span style="font-size:12px;color:var(--muted)">Обновлено: ${lastUpd}</span>
4763
+ <button class="doc-agent-btn" id="deployDocsBtn" style="margin-left:auto;background:var(--blue);color:#fff;border-color:var(--blue);font-size:13px;padding:6px 16px">▲ Deploy</button>
4763
4764
  </div>
4765
+ <div id="deployStatusBar" style="display:none;margin-bottom:12px;padding:10px 16px;border-radius:8px;font-size:13px;border:1px solid var(--border);background:var(--bg-card)"></div>
4764
4766
  ${detailActionsHtml}
4765
4767
  ${changedFilesHtml}
4766
4768
  ${docContentHtml}`;
@@ -4770,6 +4772,19 @@ async function renderDocFeatureDetail(c) {
4770
4772
  c.querySelectorAll('.doc-detail-agent-btn').forEach(btn => {
4771
4773
  btn.addEventListener('click', () => runAgentTask(btn.dataset.task, btn.dataset.key));
4772
4774
  });
4775
+
4776
+ // Deploy button in detail view
4777
+ const deployBtn = document.getElementById('deployDocsBtn');
4778
+ if (deployBtn) {
4779
+ deployBtn.addEventListener('click', async () => {
4780
+ try {
4781
+ const cfgRes = await fetch('/api/docs/deploy/config');
4782
+ const cfg = await cfgRes.json();
4783
+ if (cfg.configured) await doDocsDeploy();
4784
+ else showDeployModal();
4785
+ } catch { showDeployModal(); }
4786
+ });
4787
+ }
4773
4788
  }
4774
4789
 
4775
4790
  function renderFeatureCards(c) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viberadar",
3
- "version": "0.3.123",
3
+ "version": "0.3.124",
4
4
  "description": "Live module map with test coverage for vibecoding projects",
5
5
  "main": "./dist/cli.js",
6
6
  "bin": {