@silicaclaw/cli 1.0.0-beta.18 → 1.0.0-beta.19

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.
@@ -427,6 +427,22 @@
427
427
  white-space: pre-wrap;
428
428
  word-break: break-word;
429
429
  }
430
+ .advanced-panel {
431
+ margin-top: 10px;
432
+ }
433
+ .advanced-panel summary {
434
+ cursor: pointer;
435
+ list-style: none;
436
+ user-select: none;
437
+ }
438
+ .advanced-panel summary::-webkit-details-marker { display: none; }
439
+ .advanced-panel summary::after {
440
+ content: "Show";
441
+ float: right;
442
+ color: var(--muted);
443
+ font-size: 12px;
444
+ }
445
+ .advanced-panel[open] summary::after { content: "Hide"; }
430
446
 
431
447
  .toast {
432
448
  position: fixed;
@@ -474,10 +490,7 @@
474
490
  <button class="tab active" data-tab="overview">Overview</button>
475
491
  <button class="tab" data-tab="profile">Profile</button>
476
492
  <button class="tab" data-tab="network">Network</button>
477
- <button class="tab" data-tab="peers">Peers</button>
478
- <button class="tab" data-tab="discovery">Discovery Events</button>
479
- <button class="tab" data-tab="social">Social Config</button>
480
- <button class="tab" data-tab="logs">Logs</button>
493
+ <button class="tab" data-tab="social">Social</button>
481
494
  </nav>
482
495
 
483
496
  <div class="sidebar-foot" id="sideMeta">adapter: -<br/>namespace: -</div>
@@ -602,15 +615,20 @@
602
615
  <div class="mono" id="networkComponents"></div>
603
616
  </div>
604
617
  <div class="card">
605
- <h3 class="title-sm">Actions</h3>
618
+ <h3 class="title-sm">Quick Actions</h3>
606
619
  <div class="actions">
607
620
  <button id="startBroadcastBtn">Start Broadcast</button>
608
621
  <button class="secondary" id="stopBroadcastBtn">Stop Broadcast</button>
609
622
  <button class="secondary" id="broadcastNowBtn">Broadcast Now</button>
623
+ </div>
624
+ <details class="advanced-panel">
625
+ <summary class="title-sm">Advanced Actions</summary>
626
+ <div class="actions" style="margin-top:10px;">
610
627
  <button class="secondary" id="refreshCacheBtn">Refresh Cache</button>
611
628
  <button class="secondary" id="clearCacheBtn">Clear Discovered Cache</button>
612
629
  <button class="secondary" id="quickGlobalPreviewBtn">Enable Cross-network Preview</button>
613
630
  </div>
631
+ </details>
614
632
  <div id="networkFeedback" class="feedback" style="margin-top:10px;">Ready.</div>
615
633
  </div>
616
634
  </div>
@@ -624,32 +642,47 @@
624
642
  <div class="mono mono-block" id="networkStatsSnapshot">-</div>
625
643
  </div>
626
644
  </div>
627
- </section>
628
-
629
- <section id="view-peers" class="view">
630
- <div class="grid" id="peerCards"></div>
631
- <div class="card" style="margin-top:10px;">
632
- <h3 class="title-sm">Peer Inventory</h3>
633
- <div id="peerTableWrap"></div>
634
- </div>
635
- <div class="card" style="margin-top:10px;">
636
- <h3 class="title-sm">Peer Discovery Stats</h3>
637
- <div class="mono mono-block" id="peerStatsWrap">-</div>
638
- </div>
639
- </section>
640
-
641
- <section id="view-discovery" class="view">
642
- <div class="grid" id="discoveryCards"></div>
643
- <div class="split">
645
+ <details class="advanced-panel card">
646
+ <summary class="title-sm">Diagnostics</summary>
647
+ <div class="grid" id="peerCards" style="margin-top:10px;"></div>
644
648
  <div class="card" style="margin-top:10px;">
645
- <h3 class="title-sm">Recent Discovery Events</h3>
646
- <div class="logs" id="discoveryEventList"></div>
649
+ <h3 class="title-sm">Peer Inventory</h3>
650
+ <div id="peerTableWrap"></div>
647
651
  </div>
648
652
  <div class="card" style="margin-top:10px;">
649
- <h3 class="title-sm">Discovery Snapshot</h3>
650
- <div class="mono mono-block" id="discoverySnapshot">-</div>
653
+ <h3 class="title-sm">Peer Discovery Stats</h3>
654
+ <div class="mono mono-block" id="peerStatsWrap">-</div>
651
655
  </div>
652
- </div>
656
+ <div class="grid" id="discoveryCards" style="margin-top:10px;"></div>
657
+ <div class="split">
658
+ <div class="card" style="margin-top:10px;">
659
+ <h3 class="title-sm">Recent Discovery Events</h3>
660
+ <div class="logs" id="discoveryEventList"></div>
661
+ </div>
662
+ <div class="card" style="margin-top:10px;">
663
+ <h3 class="title-sm">Discovery Snapshot</h3>
664
+ <div class="mono mono-block" id="discoverySnapshot">-</div>
665
+ </div>
666
+ </div>
667
+ <div class="card" style="margin-top:10px;">
668
+ <h3 class="title-sm">Logs</h3>
669
+ <div class="toolbar">
670
+ <div class="field">
671
+ <label for="logLevelFilter">Category</label>
672
+ <select id="logLevelFilter">
673
+ <option value="all">all</option>
674
+ <option value="info">info</option>
675
+ <option value="warn">warn</option>
676
+ <option value="error">error</option>
677
+ </select>
678
+ </div>
679
+ <div>
680
+ <button type="button" class="secondary" id="refreshLogsBtn">Refresh Logs</button>
681
+ </div>
682
+ </div>
683
+ <div class="logs" id="logList"></div>
684
+ </div>
685
+ </details>
653
686
  </section>
654
687
 
655
688
  <section id="view-social" class="view">
@@ -666,22 +699,25 @@
666
699
  <div class="grid" id="socialAdvancedCards" style="margin-top:10px;"></div>
667
700
  <div class="mono mono-block" id="socialAdvancedWrap" style="margin-top:10px;">-</div>
668
701
  </details>
669
- <div class="split">
670
- <div class="card" style="margin-top:10px;">
671
- <h3 class="title-sm">Source & Parsed Frontmatter</h3>
672
- <div class="mono mono-block" id="socialSourceWrap">-</div>
673
- <div style="height:10px;"></div>
674
- <div class="mono mono-block" id="socialRawWrap">-</div>
702
+ <details class="advanced-panel card">
703
+ <summary class="title-sm">Source / Runtime / Template</summary>
704
+ <div class="split">
705
+ <div class="card" style="margin-top:10px;">
706
+ <h3 class="title-sm">Source & Parsed Frontmatter</h3>
707
+ <div class="mono mono-block" id="socialSourceWrap">-</div>
708
+ <div style="height:10px;"></div>
709
+ <div class="mono mono-block" id="socialRawWrap">-</div>
710
+ </div>
711
+ <div class="card" style="margin-top:10px;">
712
+ <h3 class="title-sm">Runtime Summary</h3>
713
+ <div class="mono mono-block" id="socialRuntimeWrap">-</div>
714
+ </div>
675
715
  </div>
676
716
  <div class="card" style="margin-top:10px;">
677
- <h3 class="title-sm">Runtime Summary</h3>
678
- <div class="mono mono-block" id="socialRuntimeWrap">-</div>
717
+ <h3 class="title-sm">Export Template Preview</h3>
718
+ <div class="mono mono-block" id="socialTemplateWrap">-</div>
679
719
  </div>
680
- </div>
681
- <div class="card" style="margin-top:10px;">
682
- <h3 class="title-sm">Export Template Preview</h3>
683
- <div class="mono mono-block" id="socialTemplateWrap">-</div>
684
- </div>
720
+ </details>
685
721
  <div class="card" style="margin-top:10px;">
686
722
  <h3 class="title-sm">Actions</h3>
687
723
  <div class="toolbar">
@@ -707,27 +743,6 @@
707
743
  <div id="socialFeedback" class="feedback" style="margin-top:10px;">Ready.</div>
708
744
  </div>
709
745
  </section>
710
-
711
- <section id="view-logs" class="view">
712
- <div class="card">
713
- <h3 class="title-sm">Recent Logs</h3>
714
- <div class="toolbar">
715
- <div class="field">
716
- <label for="logLevelFilter">Category</label>
717
- <select id="logLevelFilter">
718
- <option value="all">all</option>
719
- <option value="info">info</option>
720
- <option value="warn">warn</option>
721
- <option value="error">error</option>
722
- </select>
723
- </div>
724
- <div>
725
- <button type="button" class="secondary" id="refreshLogsBtn">Refresh Logs</button>
726
- </div>
727
- </div>
728
- <div class="logs" id="logList"></div>
729
- </div>
730
- </section>
731
746
  </main>
732
747
  </div>
733
748
 
@@ -919,7 +934,7 @@
919
934
  }
920
935
  activeTab = tab;
921
936
  document.querySelectorAll('.tab').forEach((b) => b.classList.toggle('active', b.dataset.tab === tab));
922
- ['overview', 'profile', 'network', 'peers', 'discovery', 'social', 'logs'].forEach((k) => {
937
+ ['overview', 'profile', 'network', 'social'].forEach((k) => {
923
938
  document.getElementById(`view-${k}`).classList.toggle('active', k === tab);
924
939
  });
925
940
  if (tab === 'profile' && !profileDirty && !profileSaving) {
@@ -1320,7 +1335,10 @@
1320
1335
 
1321
1336
  async function refreshAll() {
1322
1337
  try {
1323
- const tasks = [refreshOverview(), refreshNetwork(), refreshPeers(), refreshDiscovery(), refreshSocial(), refreshLogs(), refreshPublicProfilePreview()];
1338
+ const tasks = [refreshOverview(), refreshNetwork(), refreshSocial(), refreshPublicProfilePreview()];
1339
+ if (activeTab === 'network') {
1340
+ tasks.push(refreshPeers(), refreshDiscovery(), refreshLogs());
1341
+ }
1324
1342
  const shouldRefreshProfile = !(activeTab === 'profile' && profileDirty);
1325
1343
  if (shouldRefreshProfile) {
1326
1344
  tasks.push(refreshProfile());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silicaclaw/cli",
3
- "version": "1.0.0-beta.18",
3
+ "version": "1.0.0-beta.19",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -207,13 +207,23 @@ function resolveProfileInputWithSocial(args) {
207
207
  const baseBio = existingProfile?.bio || "";
208
208
  const baseAvatarUrl = existingProfile?.avatar_url || "";
209
209
  const baseTags = existingProfile?.tags || [];
210
+ // Preserve values saved from local-console first; only fall back to social/openclaw defaults
211
+ // when local profile fields are empty.
212
+ const displayName = baseDisplayName || socialConfig.identity.display_name || openclawProfile?.display_name || "";
213
+ const bio = baseBio || socialConfig.identity.bio || openclawProfile?.bio || "";
214
+ const avatarUrl = baseAvatarUrl || socialConfig.identity.avatar_url || openclawProfile?.avatar_url || "";
215
+ const tags = baseTags.length > 0
216
+ ? baseTags
217
+ : socialConfig.identity.tags.length > 0
218
+ ? socialConfig.identity.tags
219
+ : openclawProfile?.tags || [];
210
220
  return {
211
221
  agent_id: agentId,
212
- display_name: socialConfig.identity.display_name || openclawProfile?.display_name || baseDisplayName,
213
- bio: socialConfig.identity.bio || openclawProfile?.bio || baseBio,
214
- avatar_url: socialConfig.identity.avatar_url || openclawProfile?.avatar_url || baseAvatarUrl,
215
- tags: socialConfig.identity.tags.length > 0 ? socialConfig.identity.tags : openclawProfile?.tags || baseTags,
216
- public_enabled: socialConfig.public_enabled,
222
+ display_name: displayName,
223
+ bio,
224
+ avatar_url: avatarUrl,
225
+ tags,
226
+ public_enabled: existingProfile?.public_enabled ?? socialConfig.public_enabled,
217
227
  };
218
228
  }
219
229
  function ensureDefaultSocialMd(rootDir = process.cwd(), options = {}) {
@@ -257,13 +257,25 @@ export function resolveProfileInputWithSocial(args: {
257
257
  const baseAvatarUrl = existingProfile?.avatar_url || "";
258
258
  const baseTags = existingProfile?.tags || [];
259
259
 
260
+ // Preserve values saved from local-console first; only fall back to social/openclaw defaults
261
+ // when local profile fields are empty.
262
+ const displayName = baseDisplayName || socialConfig.identity.display_name || openclawProfile?.display_name || "";
263
+ const bio = baseBio || socialConfig.identity.bio || openclawProfile?.bio || "";
264
+ const avatarUrl = baseAvatarUrl || socialConfig.identity.avatar_url || openclawProfile?.avatar_url || "";
265
+ const tags =
266
+ baseTags.length > 0
267
+ ? baseTags
268
+ : socialConfig.identity.tags.length > 0
269
+ ? socialConfig.identity.tags
270
+ : openclawProfile?.tags || [];
271
+
260
272
  return {
261
273
  agent_id: agentId,
262
- display_name: socialConfig.identity.display_name || openclawProfile?.display_name || baseDisplayName,
263
- bio: socialConfig.identity.bio || openclawProfile?.bio || baseBio,
264
- avatar_url: socialConfig.identity.avatar_url || openclawProfile?.avatar_url || baseAvatarUrl,
265
- tags: socialConfig.identity.tags.length > 0 ? socialConfig.identity.tags : openclawProfile?.tags || baseTags,
266
- public_enabled: socialConfig.public_enabled,
274
+ display_name: displayName,
275
+ bio,
276
+ avatar_url: avatarUrl,
277
+ tags,
278
+ public_enabled: existingProfile?.public_enabled ?? socialConfig.public_enabled,
267
279
  };
268
280
  }
269
281
 
@@ -102,11 +102,11 @@ function showUpdateGuide(current, latest, beta) {
102
102
  console.log("");
103
103
  console.log("Quick next commands:");
104
104
  console.log("1) Start local gateway");
105
- console.log(" silicaclaw gateway start --mode=local");
105
+ console.log(" silicaclaw start --mode=local");
106
106
  console.log("2) Check gateway status");
107
- console.log(" silicaclaw gateway status");
107
+ console.log(" silicaclaw status");
108
108
  console.log("3) npx one-shot (no alias/global install)");
109
- console.log(" npx -y @silicaclaw/cli@beta gateway start --mode=local");
109
+ console.log(" npx -y @silicaclaw/cli@beta start --mode=local");
110
110
  console.log("");
111
111
 
112
112
  const writableGlobal = canWriteGlobalPrefix();