@silicaclaw/cli 1.0.0-beta.33 → 1.0.0-beta.34

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.
@@ -280,7 +280,6 @@
280
280
  .app.focus-mode .integration-strip,
281
281
  .app.focus-mode .page-hero,
282
282
  .app.focus-mode .notice,
283
- .app.focus-mode #onboardingActions,
284
283
  .app.focus-mode #publicDiscoveryHint {
285
284
  display: none !important;
286
285
  }
@@ -1354,7 +1353,7 @@
1354
1353
  <section class="page-hero">
1355
1354
  <div class="hero-copy">
1356
1355
  <h3 id="pageHeroTitle">Overview</h3>
1357
- <p id="pageHeroBody">See the live state of this node, whether discovery is working, and whether other public agents are visible.</p>
1356
+ <p id="pageHeroBody">See whether this node is online and who else is visible.</p>
1358
1357
  </div>
1359
1358
  <div class="hero-meta">
1360
1359
  <div class="hero-meta-grid">
@@ -1367,12 +1366,8 @@
1367
1366
  </section>
1368
1367
 
1369
1368
  <div class="notice" id="initNotice"></div>
1370
- <div class="actions" id="onboardingActions" style="display:none; margin:8px 0 12px;">
1371
- <button id="enablePublicDiscoveryBtn">Enable Public Discovery</button>
1372
- <button class="secondary" id="disablePublicDiscoveryBtn">Disable Public Discovery</button>
1373
- </div>
1374
1369
  <div class="field-hint" id="publicDiscoveryHint" style="margin-bottom:12px; display:none;">
1375
- Public discovery only shares signed profile/presence records. It does not share private files and does not enable chat or remote control.
1370
+ Use <strong>Profile Public Enabled</strong> as the single public visibility switch.
1376
1371
  </div>
1377
1372
 
1378
1373
  <section id="view-overview" class="view active">
@@ -1380,7 +1375,7 @@
1380
1375
  <div class="action-bar">
1381
1376
  <button id="overviewBroadcastNowBtn" type="button">Broadcast Now</button>
1382
1377
  <button class="secondary" id="overviewGoProfileBtn" type="button">Edit Profile</button>
1383
- <button class="secondary" id="overviewGoNetworkBtn" type="button">Open Network Diagnostics</button>
1378
+ <button class="secondary" id="overviewGoNetworkBtn" type="button">Open Network</button>
1384
1379
  </div>
1385
1380
  </div>
1386
1381
  <div class="grid" id="overviewCards"></div>
@@ -1405,8 +1400,8 @@
1405
1400
  <div class="section-header">
1406
1401
  <div class="section-header__copy">
1407
1402
  <div class="section-header__eyebrow">Profile</div>
1408
- <h3 class="section-header__title">Signed public identity</h3>
1409
- <p class="section-header__body">Edit the public card other nodes discover, then verify that the saved runtime profile and preview stay aligned after restart.</p>
1403
+ <h3 class="section-header__title">Public profile</h3>
1404
+ <p class="section-header__body">Edit the public card other nodes can see.</p>
1410
1405
  </div>
1411
1406
  </div>
1412
1407
  <div class="profile-layout">
@@ -1439,6 +1434,7 @@
1439
1434
  <div class="field-error" id="errTags"></div>
1440
1435
  </div>
1441
1436
  <label><input type="checkbox" name="public_enabled" /> Public Enabled</label>
1437
+ <div class="field-hint">This is the main public visibility switch used for discovery and relay broadcast.</div>
1442
1438
  <div class="actions">
1443
1439
  <button type="submit" id="saveProfileBtn">Save Profile</button>
1444
1440
  <button type="button" class="secondary" id="refreshProfileBtn">Reload</button>
@@ -1476,8 +1472,8 @@
1476
1472
  <div class="section-header">
1477
1473
  <div class="section-header__copy">
1478
1474
  <div class="section-header__eyebrow">Network</div>
1479
- <h3 class="section-header__title">Relay and discovery summary</h3>
1480
- <p class="section-header__body">Use the summary first. Open diagnostics only when relay joins, polls, or peer visibility look unhealthy.</p>
1475
+ <h3 class="section-header__title">Network</h3>
1476
+ <p class="section-header__body">Check relay status, peers, and broadcast health.</p>
1481
1477
  </div>
1482
1478
  </div>
1483
1479
  <div class="grid" id="networkCards"></div>
@@ -1488,7 +1484,7 @@
1488
1484
  </div>
1489
1485
  <div class="card">
1490
1486
  <h3 class="title-sm">Quick Actions</h3>
1491
- <div class="field-hint" style="margin-bottom:10px;">Use these first. Most discovery issues can be confirmed here before opening diagnostics.</div>
1487
+ <div class="field-hint" style="margin-bottom:10px;">Use these first.</div>
1492
1488
  <div class="actions">
1493
1489
  <button id="startBroadcastBtn">Start Broadcast</button>
1494
1490
  <button class="secondary" id="stopBroadcastBtn">Stop Broadcast</button>
@@ -1497,8 +1493,6 @@
1497
1493
  <details class="advanced-panel">
1498
1494
  <summary class="title-sm">Advanced Actions</summary>
1499
1495
  <div class="actions" style="margin-top:10px;">
1500
- <button class="secondary" id="refreshCacheBtn">Refresh Cache</button>
1501
- <button class="secondary" id="clearCacheBtn">Clear Discovered Cache</button>
1502
1496
  <button class="secondary" id="quickGlobalPreviewBtn">Enable Cross-network Preview</button>
1503
1497
  </div>
1504
1498
  </details>
@@ -1566,8 +1560,8 @@
1566
1560
  <div class="section-header">
1567
1561
  <div class="section-header__copy">
1568
1562
  <div class="section-header__eyebrow">Social</div>
1569
- <h3 class="section-header__title">Public identity and runtime state</h3>
1570
- <p class="section-header__body">Keep the signed identity, public visibility, and social.md runtime view aligned so discovery survives restart and update.</p>
1563
+ <h3 class="section-header__title">Social</h3>
1564
+ <p class="section-header__body">Switch mode and export a clean social.md template.</p>
1571
1565
  </div>
1572
1566
  </div>
1573
1567
  <div class="card">
@@ -1622,12 +1616,11 @@
1622
1616
  </select>
1623
1617
  </div>
1624
1618
  <div>
1625
- <button class="secondary" id="socialModeApplyBtn">Apply Runtime Mode</button>
1619
+ <button id="socialModeApplyBtn">Apply Runtime Mode</button>
1626
1620
  </div>
1627
1621
  </div>
1622
+ <div class="field-hint" style="margin-top:10px;">Profile visibility is managed in the Profile page.</div>
1628
1623
  <div class="actions">
1629
- <button id="socialReloadBtn">Reload Config</button>
1630
- <button class="secondary" id="socialGenerateBtn">Generate Default social.md</button>
1631
1624
  <button class="secondary" id="socialExportBtn">Export social.md template</button>
1632
1625
  <button class="secondary" id="socialCopyBtn">Copy Template</button>
1633
1626
  <button class="secondary" id="socialDownloadBtn">Download Template</button>
@@ -1653,19 +1646,19 @@
1653
1646
  const pageMeta = {
1654
1647
  overview: {
1655
1648
  title: 'Overview',
1656
- body: 'See the live state of this node, whether discovery is healthy, and whether other public agents are visible through the relay.',
1649
+ body: 'See whether this node is online and who else is visible.',
1657
1650
  },
1658
1651
  profile: {
1659
1652
  title: 'Profile',
1660
- body: 'Edit the signed public identity card that other agents can discover. Saved profile data should survive restart and update.',
1653
+ body: 'Edit the public card other nodes can see.',
1661
1654
  },
1662
1655
  network: {
1663
1656
  title: 'Network',
1664
- body: 'Inspect relay connectivity, peer inventory, broadcast timing, and diagnostics when cross-device discovery is not working.',
1657
+ body: 'Check relay status, peers, and broadcast health.',
1665
1658
  },
1666
1659
  social: {
1667
1660
  title: 'Social',
1668
- body: 'Review social.md, runtime resolution, and the effective public visibility state that controls discovery.',
1661
+ body: 'Switch mode and export a clean social.md template.',
1669
1662
  },
1670
1663
  };
1671
1664
 
@@ -1898,29 +1891,17 @@
1898
1891
  const init = o.init_state || {};
1899
1892
  const onboarding = o.onboarding || {};
1900
1893
  const notice = document.getElementById('initNotice');
1901
- const onboardingActions = document.getElementById('onboardingActions');
1902
- const enableBtn = document.getElementById('enablePublicDiscoveryBtn');
1903
- const disableBtn = document.getElementById('disablePublicDiscoveryBtn');
1904
1894
  const discoveryHint = document.getElementById('publicDiscoveryHint');
1905
1895
  const showOnboarding = onboarding.first_run || init.identity_auto_created || init.profile_auto_created || init.social_auto_created;
1906
1896
  if (onboarding.first_run || init.identity_auto_created || init.profile_auto_created || init.social_auto_created) {
1907
1897
  notice.classList.add('show');
1908
- notice.textContent = `OpenClaw already connected to SilicaClaw · mode=${onboarding.mode || '-'} · discoverable=${onboarding.discoverable ? 'yes' : 'no'} · next: update display name and export social.md`;
1898
+ notice.textContent = `Connected · mode=${onboarding.mode || '-'} · discoverable=${onboarding.discoverable ? 'yes' : 'no'} · next: update your profile, turn on Public Enabled, and export social.md`;
1909
1899
  } else {
1910
1900
  notice.classList.remove('show');
1911
1901
  }
1912
1902
  if (onboarding.can_enable_public_discovery || onboarding.public_enabled) {
1913
- onboardingActions.style.display = 'flex';
1914
1903
  discoveryHint.style.display = 'block';
1915
- if (onboarding.public_enabled) {
1916
- enableBtn.style.display = 'none';
1917
- disableBtn.style.display = 'inline-block';
1918
- } else {
1919
- enableBtn.style.display = 'inline-block';
1920
- disableBtn.style.display = 'none';
1921
- }
1922
1904
  } else {
1923
- onboardingActions.style.display = 'none';
1924
1905
  discoveryHint.style.display = 'none';
1925
1906
  }
1926
1907
 
@@ -2433,12 +2414,6 @@
2433
2414
  document.getElementById('startBroadcastBtn').addEventListener('click', () => runAction('/api/broadcast/start', 'Starting...'));
2434
2415
  document.getElementById('stopBroadcastBtn').addEventListener('click', () => runAction('/api/broadcast/stop', 'Stopping...', 'warn'));
2435
2416
  document.getElementById('broadcastNowBtn').addEventListener('click', () => runAction('/api/broadcast/now', 'Broadcasting now...'));
2436
- document.getElementById('refreshCacheBtn').addEventListener('click', () => runAction('/api/cache/refresh', 'Refreshing cache...'));
2437
- document.getElementById('clearCacheBtn').addEventListener('click', async () => {
2438
- const ok = window.confirm('Clear discovered cache now?\n\nThis removes discovered peer profiles/presence/index references and keeps your self profile.');
2439
- if (!ok) return;
2440
- await runAction('/api/cache/clear', 'Clearing discovered cache...', 'warn');
2441
- });
2442
2417
  document.getElementById('quickGlobalPreviewBtn').addEventListener('click', async () => {
2443
2418
  const currentSignaling = window.prompt('Signaling URL (publicly reachable):', 'http://localhost:4510');
2444
2419
  if (!currentSignaling) return;
@@ -2467,60 +2442,6 @@
2467
2442
  await refreshLogs();
2468
2443
  toast('Logs refreshed');
2469
2444
  });
2470
- document.getElementById('enablePublicDiscoveryBtn').addEventListener('click', async () => {
2471
- const ok = window.confirm(
2472
- 'Enable public discovery now?\n\n' +
2473
- '- Only profile/presence are shared.\n' +
2474
- '- Private files are not shared.\n' +
2475
- '- Chat and remote control are not enabled.\n\n' +
2476
- 'This updates runtime state and does not overwrite social.md.'
2477
- );
2478
- if (!ok) return;
2479
- setFeedback('networkFeedback', 'Enabling public discovery...');
2480
- try {
2481
- const res = await api('/api/public-discovery/enable', { method: 'POST' });
2482
- setFeedback('networkFeedback', res.meta?.message || 'Public discovery enabled.');
2483
- toast('Public discovery enabled');
2484
- await refreshAll();
2485
- } catch (e) {
2486
- setFeedback('networkFeedback', e instanceof Error ? e.message : 'Enable public discovery failed', 'error');
2487
- }
2488
- });
2489
- document.getElementById('disablePublicDiscoveryBtn').addEventListener('click', async () => {
2490
- const ok = window.confirm('Disable public discovery now? This updates runtime state and does not overwrite social.md.');
2491
- if (!ok) return;
2492
- setFeedback('networkFeedback', 'Disabling public discovery...');
2493
- try {
2494
- const res = await api('/api/public-discovery/disable', { method: 'POST' });
2495
- setFeedback('networkFeedback', res.meta?.message || 'Public discovery disabled.');
2496
- toast('Public discovery disabled');
2497
- await refreshAll();
2498
- } catch (e) {
2499
- setFeedback('networkFeedback', e instanceof Error ? e.message : 'Disable public discovery failed', 'error');
2500
- }
2501
- });
2502
- document.getElementById('socialReloadBtn').addEventListener('click', async () => {
2503
- setFeedback('socialFeedback', 'Reloading social config...');
2504
- try {
2505
- const res = await api('/api/social/reload', { method: 'POST' });
2506
- setFeedback('socialFeedback', res.meta?.message || 'Reloaded');
2507
- toast('Social config reloaded');
2508
- await refreshAll();
2509
- } catch (e) {
2510
- setFeedback('socialFeedback', e instanceof Error ? e.message : 'Reload failed', 'error');
2511
- }
2512
- });
2513
- document.getElementById('socialGenerateBtn').addEventListener('click', async () => {
2514
- setFeedback('socialFeedback', 'Generating default social.md...');
2515
- try {
2516
- const res = await api('/api/social/generate-default', { method: 'POST' });
2517
- setFeedback('socialFeedback', res.meta?.message || 'Done');
2518
- toast(res.meta?.message || 'Default social.md ready');
2519
- await refreshAll();
2520
- } catch (e) {
2521
- setFeedback('socialFeedback', e instanceof Error ? e.message : 'Generate failed', 'error');
2522
- }
2523
- });
2524
2445
  document.getElementById('socialExportBtn').addEventListener('click', async () => {
2525
2446
  setFeedback('socialFeedback', 'Exporting template...');
2526
2447
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silicaclaw/cli",
3
- "version": "1.0.0-beta.33",
3
+ "version": "1.0.0-beta.34",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"