soulnet-dsh 0.1.0 → 0.1.2
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/README.md +16 -1
- package/lib/client.js +7228 -2993
- package/lib/client.js.map +1 -1
- package/lib/events-0klGluMP.js +240 -0
- package/lib/events-0klGluMP.js.map +1 -0
- package/lib/events-B5tgajI9.js +290 -0
- package/lib/events-B5tgajI9.js.map +1 -0
- package/lib/events-BlIN5d1z.js +228 -0
- package/lib/events-BlIN5d1z.js.map +1 -0
- package/lib/events-BxO3BSjN.js +322 -0
- package/lib/events-BxO3BSjN.js.map +1 -0
- package/lib/events-t4OuP_eK.js +290 -0
- package/lib/events-t4OuP_eK.js.map +1 -0
- package/lib/group-contract-40GGSQ4f.js +38 -0
- package/lib/group-contract-40GGSQ4f.js.map +1 -0
- package/lib/group-contract-BAf1D04T.js +38 -0
- package/lib/group-contract-BAf1D04T.js.map +1 -0
- package/lib/group-contract-CiE5yp0a.js +38 -0
- package/lib/group-contract-CiE5yp0a.js.map +1 -0
- package/lib/group-contract-D974s3D3.js +38 -0
- package/lib/group-contract-D974s3D3.js.map +1 -0
- package/lib/index.js +974 -8
- package/lib/index.js.map +1 -1
- package/lib/send-BTrytqK4.js +320 -0
- package/lib/send-BTrytqK4.js.map +1 -0
- package/lib/send-BkAw2MvM.js +310 -0
- package/lib/send-BkAw2MvM.js.map +1 -0
- package/lib/send-Cdu6tHlo.js +259 -0
- package/lib/send-Cdu6tHlo.js.map +1 -0
- package/lib/send-D853OjgI.js +258 -0
- package/lib/send-D853OjgI.js.map +1 -0
- package/lib/sessions.js +1133 -57
- package/lib/sessions.js.map +1 -1
- package/lib/tools.js +173 -3
- package/lib/tools.js.map +1 -1
- package/lib/types/agent-registry.d.ts +49 -0
- package/lib/types/alter-state.d.ts +29 -5
- package/lib/types/api/index.d.ts +6 -2
- package/lib/types/client/AgentPane.d.ts +11 -0
- package/lib/types/client/AgentSettingsSheet.d.ts +11 -0
- package/lib/types/client/AlterPane.d.ts +1 -1
- package/lib/types/client/Branding.d.ts +25 -0
- package/lib/types/client/DraftCard.d.ts +1 -1
- package/lib/types/client/FriendList.d.ts +1 -1
- package/lib/types/client/FriendPane.d.ts +1 -1
- package/lib/types/client/GroupAgentsSheet.d.ts +16 -0
- package/lib/types/client/GroupCreateDialog.d.ts +11 -0
- package/lib/types/client/GroupPane.d.ts +14 -0
- package/lib/types/client/SidebarEntry.d.ts +1 -1
- package/lib/types/client/SidebarNavEntry.d.ts +5 -0
- package/lib/types/client/SoulmirrorPage.d.ts +4 -3
- package/lib/types/client/alter-ui.d.ts +1 -1
- package/lib/types/client/api.d.ts +278 -5
- package/lib/types/client/brand-assets.d.ts +11 -0
- package/lib/types/client/group-room.d.ts +77 -0
- package/lib/types/client/group-templates.d.ts +27 -0
- package/lib/types/client/inbox-state.d.ts +12 -1
- package/lib/types/client/index.d.ts +5 -3
- package/lib/types/client/locales.d.ts +144 -2
- package/lib/types/client/nav-seat.d.ts +5 -0
- package/lib/types/client/page-state.d.ts +30 -5
- package/lib/types/client/page-store.d.ts +32 -1
- package/lib/types/client/process-ui.d.ts +22 -0
- package/lib/types/client/rooms/ChatRoom.d.ts +5 -0
- package/lib/types/client/rooms/timeline.d.ts +58 -0
- package/lib/types/client/translate.d.ts +4 -0
- package/lib/types/drafts.d.ts +10 -5
- package/lib/types/events.d.ts +6 -0
- package/lib/types/group-contract.d.ts +55 -0
- package/lib/types/group-settings.d.ts +71 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/network/soulnet.d.ts +56 -3
- package/lib/types/network/types.d.ts +163 -0
- package/lib/types/persona.d.ts +18 -0
- package/lib/types/policy.d.ts +159 -3
- package/lib/types/sessions/index.d.ts +93 -12
- package/lib/types/tools/index.d.ts +5 -0
- package/lib/types-zwvjR1n5.js.map +1 -1
- package/package.json +12 -8
package/README.md
CHANGED
|
@@ -10,8 +10,10 @@ wants to send. Friend threads are read-only; you only ever talk to your alter.
|
|
|
10
10
|
The network itself is the open-source [soulnet](https://github.com/startupworld-ai/soulnet)
|
|
11
11
|
light peer (Go). Its binary ships as a platform package
|
|
12
12
|
(`soulnet-peer-<os>-<arch>`, an optional dependency of this package)
|
|
13
|
-
and is picked automatically for
|
|
13
|
+
and is picked automatically for windows-x64, darwin-arm64, darwin-x64, linux-x64,
|
|
14
14
|
linux-arm64 — nothing to compile, no Go toolchain.
|
|
15
|
+
(The Windows package is named `soulnet-peer-windows-x64`, not `-win32-x64`:
|
|
16
|
+
npm's spam filter rejects that suffix for new packages.)
|
|
15
17
|
|
|
16
18
|
## Install (one line)
|
|
17
19
|
|
|
@@ -55,6 +57,19 @@ friends and messaging work without one.
|
|
|
55
57
|
Default relay: `https://relay.startupworld.cn` (ciphertext only; self-host with
|
|
56
58
|
`soulnet-relay` and set `relay` in the settings).
|
|
57
59
|
|
|
60
|
+
## Rooms are plugins
|
|
61
|
+
|
|
62
|
+
Groups have a governance profile (templates: standard / announcement / agents /
|
|
63
|
+
tasks / casual) and a pluggable ROOM — the client surface rendering the group.
|
|
64
|
+
The built-in chat room occupies the keyed client slot `'group.room'` under the
|
|
65
|
+
key `chat`; another dsh plugin ships a different room by registering another
|
|
66
|
+
key through the standard slot API and gets the full contract as owner props
|
|
67
|
+
(`RoomOwnerProps` from `soulnet-dsh/client`: group + profile, members, the
|
|
68
|
+
archive slice, `send/loadOlder/markRead` actions, the resolved speak gate).
|
|
69
|
+
A group selects its room via `profile.room`; nodes without that room installed
|
|
70
|
+
fall back to chat with a notice. See "How to write a room plugin" in the
|
|
71
|
+
[developer guide](https://github.com/startupworld-ai/soulnet/tree/main/dsh#rooms-how-to-write-a-room-plugin).
|
|
72
|
+
|
|
58
73
|
## Links
|
|
59
74
|
|
|
60
75
|
- Source, protocol spec, relay, light peer, issues: https://github.com/startupworld-ai/soulnet
|