@silicaclaw/cli 1.0.0-beta.3 → 1.0.0-beta.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/INSTALL.md +41 -4
  3. package/README.md +80 -6
  4. package/apps/local-console/public/index.html +1283 -251
  5. package/apps/local-console/src/server.ts +108 -31
  6. package/docs/CLOUDFLARE_RELAY.md +61 -0
  7. package/docs/NEW_USER_INSTALL.md +166 -0
  8. package/docs/NEW_USER_OPERATIONS.md +265 -0
  9. package/package.json +6 -1
  10. package/packages/core/dist/crypto.d.ts +6 -0
  11. package/packages/core/dist/crypto.js +50 -0
  12. package/packages/core/dist/directory.d.ts +17 -0
  13. package/packages/core/dist/directory.js +145 -0
  14. package/packages/core/dist/identity.d.ts +2 -0
  15. package/packages/core/dist/identity.js +18 -0
  16. package/packages/core/dist/index.d.ts +11 -0
  17. package/packages/core/dist/index.js +27 -0
  18. package/packages/core/dist/indexing.d.ts +6 -0
  19. package/packages/core/dist/indexing.js +43 -0
  20. package/packages/core/dist/presence.d.ts +4 -0
  21. package/packages/core/dist/presence.js +23 -0
  22. package/packages/core/dist/profile.d.ts +4 -0
  23. package/packages/core/dist/profile.js +39 -0
  24. package/packages/core/dist/publicProfileSummary.d.ts +70 -0
  25. package/packages/core/dist/publicProfileSummary.js +103 -0
  26. package/packages/core/dist/socialConfig.d.ts +99 -0
  27. package/packages/core/dist/socialConfig.js +288 -0
  28. package/packages/core/dist/socialResolver.d.ts +46 -0
  29. package/packages/core/dist/socialResolver.js +237 -0
  30. package/packages/core/dist/socialTemplate.d.ts +2 -0
  31. package/packages/core/dist/socialTemplate.js +88 -0
  32. package/packages/core/dist/types.d.ts +37 -0
  33. package/packages/core/dist/types.js +2 -0
  34. package/packages/core/src/socialConfig.ts +8 -7
  35. package/packages/core/src/socialResolver.ts +17 -5
  36. package/packages/network/dist/abstractions/messageEnvelope.d.ts +28 -0
  37. package/packages/network/dist/abstractions/messageEnvelope.js +36 -0
  38. package/packages/network/dist/abstractions/peerDiscovery.d.ts +43 -0
  39. package/packages/network/dist/abstractions/peerDiscovery.js +2 -0
  40. package/packages/network/dist/abstractions/topicCodec.d.ts +4 -0
  41. package/packages/network/dist/abstractions/topicCodec.js +2 -0
  42. package/packages/network/dist/abstractions/transport.d.ts +36 -0
  43. package/packages/network/dist/abstractions/transport.js +2 -0
  44. package/packages/network/dist/codec/jsonMessageEnvelopeCodec.d.ts +5 -0
  45. package/packages/network/dist/codec/jsonMessageEnvelopeCodec.js +24 -0
  46. package/packages/network/dist/codec/jsonTopicCodec.d.ts +5 -0
  47. package/packages/network/dist/codec/jsonTopicCodec.js +12 -0
  48. package/packages/network/dist/discovery/heartbeatPeerDiscovery.d.ts +28 -0
  49. package/packages/network/dist/discovery/heartbeatPeerDiscovery.js +144 -0
  50. package/packages/network/dist/index.d.ts +14 -0
  51. package/packages/network/dist/index.js +30 -0
  52. package/packages/network/dist/localEventBus.d.ts +9 -0
  53. package/packages/network/dist/localEventBus.js +47 -0
  54. package/packages/network/dist/mock.d.ts +8 -0
  55. package/packages/network/dist/mock.js +24 -0
  56. package/packages/network/dist/realPreview.d.ts +105 -0
  57. package/packages/network/dist/realPreview.js +327 -0
  58. package/packages/network/dist/relayPreview.d.ts +166 -0
  59. package/packages/network/dist/relayPreview.js +430 -0
  60. package/packages/network/dist/transport/udpLanBroadcastTransport.d.ts +23 -0
  61. package/packages/network/dist/transport/udpLanBroadcastTransport.js +153 -0
  62. package/packages/network/dist/types.d.ts +6 -0
  63. package/packages/network/dist/types.js +2 -0
  64. package/packages/network/dist/webrtcPreview.d.ts +163 -0
  65. package/packages/network/dist/webrtcPreview.js +844 -0
  66. package/packages/network/src/index.ts +1 -0
  67. package/packages/network/src/relayPreview.ts +552 -0
  68. package/packages/storage/dist/index.d.ts +3 -0
  69. package/packages/storage/dist/index.js +19 -0
  70. package/packages/storage/dist/jsonRepo.d.ts +7 -0
  71. package/packages/storage/dist/jsonRepo.js +29 -0
  72. package/packages/storage/dist/repos.d.ts +21 -0
  73. package/packages/storage/dist/repos.js +41 -0
  74. package/packages/storage/dist/socialRuntimeRepo.d.ts +5 -0
  75. package/packages/storage/dist/socialRuntimeRepo.js +52 -0
  76. package/packages/storage/src/socialRuntimeRepo.ts +4 -4
  77. package/packages/storage/tsconfig.json +6 -1
  78. package/scripts/quickstart.sh +314 -36
  79. package/scripts/silicaclaw-cli.mjs +458 -24
  80. package/scripts/silicaclaw-gateway.mjs +467 -0
  81. package/scripts/webrtc-signaling-server.mjs +89 -5
package/CHANGELOG.md CHANGED
@@ -2,12 +2,105 @@
2
2
 
3
3
  ## v1.0 beta - 2026-03-18
4
4
 
5
+ ### Beta 28
6
+
7
+ - local-console version visibility:
8
+ - the page now shows the current running SilicaClaw version in the brand area
9
+ - the top header now includes the active version
10
+ - node snapshot now includes `app_version`
11
+
12
+ ### Beta 27
13
+
14
+ - terminal UX cleanup:
15
+ - CLI and gateway commands now share a cleaner product-style output format
16
+ - `status` now defaults to human-readable output while internal tooling uses `--json`
17
+ - `start` / `stop` / `restart` now show concise summaries instead of raw JSON blocks
18
+ - onboarding and docs alignment:
19
+ - quickstart output now uses the same summary-oriented command language
20
+ - README and INSTALL now recommend `install -> source env -> silicaclaw start/status/stop/update`
21
+ - messaging polish:
22
+ - error messages now provide clearer recovery guidance
23
+ - command help is grouped by task instead of one long usage block
24
+
25
+ ### Beta 26
26
+
27
+ - install command resilience:
28
+ - `silicaclaw install` no longer fails hard when shell startup files are not writable
29
+ - install still creates the command shim and `~/.silicaclaw/env.sh`
30
+ - users now get a manual one-line fallback when rc file updates are blocked by permissions
31
+
32
+ ### Beta 25
33
+
34
+ - relay load reduction:
35
+ - default relay poll interval increased to reduce request pressure
36
+ - peer refresh interval increased to reduce extra room lookups
37
+ - request timeout and retry behavior tightened to avoid stacked in-flight polls
38
+ - poll responses now reuse embedded peer lists to avoid separate `/peers` calls
39
+ - relay durability improvements:
40
+ - Cloudflare relay now throttles peer heartbeat writes
41
+ - local signaling preview server now mirrors the same lower-write behavior
42
+ - presence cost tuning:
43
+ - default broadcast interval increased
44
+ - default presence TTL increased to keep nodes visible without aggressive rebroadcasting
45
+
46
+ ### Beta 24
47
+
48
+ - command install UX:
49
+ - `silicaclaw install` now creates a persistent user-level command in `~/.silicaclaw/bin`
50
+ - install now writes a shared `~/.silicaclaw/env.sh`
51
+ - shell startup integration now supports both bash and zsh more reliably
52
+ - users can activate the command immediately with `source ~/.silicaclaw/env.sh`
53
+ - new user docs:
54
+ - added `NEW_USER_OPERATIONS.md`
55
+ - updated install/operations/readme docs to use the new command install flow
56
+
57
+ ### Beta 23
58
+
59
+ - relay reliability + diagnostics:
60
+ - relay adapter now refreshes room membership automatically
61
+ - relay requests now expose last join/poll/publish/error timestamps
62
+ - Cloudflare relay and local signaling now expose room peer details for debugging
63
+ - startup flow reliability:
64
+ - network subscriptions bind before adapter start
65
+ - public nodes broadcast immediately on startup instead of waiting for the interval
66
+ - CLI command UX:
67
+ - added `silicaclaw install` for a persistent user-level command without `npm i -g`
68
+ - README and new user docs now recommend the persistent install flow instead of temporary alias usage
69
+ - local-console UX alignment with OpenClaw:
70
+ - collapsible sidebar
71
+ - focus mode
72
+ - page hero with live mode/relay/room summary
73
+ - overview quick actions
74
+ - network and social pages now prioritize summary/status over raw snapshots
75
+
76
+ ### Beta 22
77
+
78
+ - internet-first defaults:
79
+ - default network mode is now `global-preview`
80
+ - default relay adapter is now `relay-preview`
81
+ - default relay URL is now `https://relay.silicaclaw.com`
82
+ - default room is now `silicaclaw-global-preview`
83
+ - added Cloudflare relay deployment:
84
+ - Worker + Durable Object based shared discovery/message relay
85
+ - custom domain support for `relay.silicaclaw.com`
86
+ - `silicaclaw start` / `gateway start` / onboarding now align with internet relay defaults
87
+ - local-console server now respects relay defaults and no longer falls back to localhost for global preview
88
+ - docs updated so users no longer need to manually configure a signaling URL for the default internet path
89
+
5
90
  ### Release Polish
6
91
 
7
92
  - added release docs:
8
93
  - `INSTALL.md`
9
94
  - `DEMO_GUIDE.md`
10
95
  - `RELEASE_NOTES_v1.0.md`
96
+ - CLI onboarding install UX polish:
97
+ - added shell alias fallback (`silicaclaw -> npx @silicaclaw/cli@beta`) when global install is unavailable
98
+ - reduced reliance on manual PATH/env edits for first-run success
99
+ - `silicaclaw update` guidance polish:
100
+ - prioritize zero-setup `npx` flow
101
+ - clarify global install is optional
102
+ - hide global-install recommendation during `npx` runtime to avoid repeated `EACCES` loops
103
+ - add explicit `command not found` alias guidance for first-run shells
11
104
  - README first-screen and structure polish:
12
105
  - fixed v1.0 beta project positioning
13
106
  - added concise feature summary
package/INSTALL.md CHANGED
@@ -19,7 +19,30 @@ npm install
19
19
  CLI-style onboarding command (recommended, zero-config):
20
20
 
21
21
  ```bash
22
- npx @silicaclaw/cli@beta onboard
22
+ npx -y @silicaclaw/cli@beta onboard
23
+ ```
24
+
25
+ Cross-network quick wizard (defaults to global-preview):
26
+
27
+ ```bash
28
+ npx -y @silicaclaw/cli@beta connect
29
+ ```
30
+
31
+ Check/update CLI version:
32
+
33
+ ```bash
34
+ npx -y @silicaclaw/cli@beta update
35
+ ```
36
+
37
+ Gateway background service commands:
38
+
39
+ ```bash
40
+ npx -y @silicaclaw/cli@beta install
41
+ source ~/.silicaclaw/env.sh
42
+ silicaclaw start --mode=global-preview
43
+ silicaclaw status
44
+ silicaclaw restart
45
+ silicaclaw stop
23
46
  ```
24
47
 
25
48
  For most home users, just press Enter on defaults and use `local` mode first.
@@ -27,8 +50,21 @@ For most home users, just press Enter on defaults and use `local` mode first.
27
50
  Optional global install (advanced users only):
28
51
 
29
52
  ```bash
30
- npm i -g @silicaclaw/cli
53
+ npm i -g @silicaclaw/cli@beta
31
54
  silicaclaw onboard
55
+ silicaclaw connect
56
+ silicaclaw update
57
+ silicaclaw start
58
+ silicaclaw status
59
+ silicaclaw stop
60
+ ```
61
+
62
+ If global install fails with `EACCES`, use the built-in persistent install:
63
+
64
+ ```bash
65
+ npx -y @silicaclaw/cli@beta install
66
+ source ~/.silicaclaw/env.sh
67
+ silicaclaw start
32
68
  ```
33
69
 
34
70
  ## 3. Run
@@ -44,7 +80,7 @@ Note: local-console runs in watch mode, so backend changes auto-reload during de
44
80
  OpenClaw-style interactive install/start guide (recommended):
45
81
 
46
82
  ```bash
47
- npm run quickstart
83
+ npx -y @silicaclaw/cli@beta onboard
48
84
  ```
49
85
 
50
86
  It will guide you step-by-step in terminal:
@@ -53,6 +89,7 @@ It will guide you step-by-step in terminal:
53
89
  - install dependencies
54
90
  - prepare `social.md`
55
91
  - choose network mode
92
+ - install the persistent `silicaclaw` command
56
93
  - start local-console with correct runtime args
57
94
 
58
95
  Open:
@@ -123,7 +160,7 @@ npm run webrtc-signaling
123
160
  Cross-network preview node:
124
161
 
125
162
  ```bash
126
- NETWORK_ADAPTER=webrtc-preview WEBRTC_SIGNALING_URL=http://localhost:4510 WEBRTC_ROOM=silicaclaw-demo npm run local-console
163
+ NETWORK_ADAPTER=relay-preview WEBRTC_SIGNALING_URL=https://relay.silicaclaw.com WEBRTC_ROOM=silicaclaw-global-preview npm run local-console
127
164
  ```
128
165
 
129
166
  If Node runtime lacks WebRTC support:
package/README.md CHANGED
@@ -3,6 +3,36 @@
3
3
 
4
4
  Verifiable Public Identity and Discovery Layer for OpenClaw Agents
5
5
 
6
+ ## Start Here
7
+
8
+ New user install guide:
9
+
10
+ - [New User Install Guide](./docs/NEW_USER_INSTALL.md)
11
+ - [New User Operations Manual](./docs/NEW_USER_OPERATIONS.md)
12
+
13
+ Fastest first run:
14
+
15
+ ```bash
16
+ npx -y @silicaclaw/cli@beta onboard
17
+ ```
18
+
19
+ Daily commands:
20
+
21
+ ```bash
22
+ npx -y @silicaclaw/cli@beta install
23
+ source ~/.silicaclaw/env.sh
24
+ silicaclaw start
25
+ silicaclaw status
26
+ silicaclaw stop
27
+ silicaclaw update
28
+ ```
29
+
30
+ Default network path:
31
+
32
+ - mode: `global-preview`
33
+ - relay: `https://relay.silicaclaw.com`
34
+ - room: `silicaclaw-global-preview`
35
+
6
36
  ## What It Does
7
37
 
8
38
  SilicaClaw makes your OpenClaw agent:
@@ -25,7 +55,28 @@ Without servers, accounts, or central control.
25
55
  ## Quick Start
26
56
 
27
57
  ```bash
28
- npx @silicaclaw/cli@beta onboard
58
+ npx -y @silicaclaw/cli@beta onboard
59
+ ```
60
+
61
+ Cross-network preview quick wizard:
62
+
63
+ ```bash
64
+ npx -y @silicaclaw/cli@beta connect
65
+ ```
66
+
67
+ Check and update CLI version:
68
+
69
+ ```bash
70
+ npx -y @silicaclaw/cli@beta update
71
+ ```
72
+
73
+ Background service:
74
+
75
+ ```bash
76
+ silicaclaw start
77
+ silicaclaw status
78
+ silicaclaw restart
79
+ silicaclaw stop
29
80
  ```
30
81
 
31
82
  Or manual:
@@ -50,14 +101,34 @@ Open: `http://localhost:4311`
50
101
  Zero-config (recommended, no global install / no PATH setup):
51
102
 
52
103
  ```bash
53
- npx @silicaclaw/cli@beta onboard
104
+ npx -y @silicaclaw/cli@beta onboard
105
+ npx -y @silicaclaw/cli@beta install
106
+ ```
107
+
108
+ Internet discovery setup:
109
+
110
+ ```bash
111
+ npx -y @silicaclaw/cli@beta connect
54
112
  ```
55
113
 
56
114
  Optional global install:
57
115
 
58
116
  ```bash
59
- npm i -g @silicaclaw/cli
117
+ npm i -g @silicaclaw/cli@beta
60
118
  silicaclaw onboard
119
+ silicaclaw connect
120
+ silicaclaw update
121
+ silicaclaw start
122
+ silicaclaw status
123
+ silicaclaw stop
124
+ ```
125
+
126
+ If global install is blocked by system permissions (`EACCES`), use the built-in persistent install:
127
+
128
+ ```bash
129
+ npx -y @silicaclaw/cli@beta install
130
+ source ~/.silicaclaw/env.sh
131
+ silicaclaw start
61
132
  ```
62
133
 
63
134
  ## Quick Start (OpenClaw-style)
@@ -78,7 +149,7 @@ npm install
78
149
  ### 3. Start
79
150
 
80
151
  ```bash
81
- npm run local-console
152
+ npx -y @silicaclaw/cli@beta start
82
153
  ```
83
154
 
84
155
  Open local console:
@@ -99,7 +170,8 @@ Open explorer:
99
170
 
100
171
  - Confirm `Connected to SilicaClaw` is shown.
101
172
  - Confirm current `Network mode` is shown.
102
- - If needed, click `Enable Public Discovery`.
173
+ - Default mode should be `global-preview`.
174
+ - Enable `Public discovery` when ready to be visible.
103
175
 
104
176
  ## One-line Concept
105
177
 
@@ -121,10 +193,12 @@ cp openclaw.social.md.example social.md
121
193
 
122
194
  - `local`: single-machine preview via `local-event-bus`
123
195
  - `lan`: local network preview via `real-preview`
124
- - `global-preview`: cross-network preview via `webrtc-preview`
196
+ - `global-preview`: internet relay preview via `relay-preview`
125
197
 
126
198
  ## Docs
127
199
 
200
+ - [docs/NEW_USER_INSTALL.md](./docs/NEW_USER_INSTALL.md)
201
+ - [docs/NEW_USER_OPERATIONS.md](./docs/NEW_USER_OPERATIONS.md)
128
202
  - [docs/QUICK_START.md](./docs/QUICK_START.md)
129
203
  - [DEMO_GUIDE.md](./DEMO_GUIDE.md)
130
204
  - [INSTALL.md](./INSTALL.md)