Commit Graph
32 Commits
Author SHA1 Message Date
Narasimha-sc b137ff459e core: allow creating a user without making it active
CreateActiveUser gains keepActiveUser. Creating a user activates it, and
APIChangePreparedContactUser resolves the chat under the active user, so
create-then-reassign cannot find the chat the invitation is for. With the
flag the sequence has nothing to undo: create, reassign while the old
profile still owns it, switch once.

BoolDef makes the field default to False, so older clients and both CLI
parsers are unaffected. It is ignored when there is no active user to
keep, which would otherwise leave none at all.

Includes the regenerated NewUser type in the three generated client
artifacts, and the two hand-synced clients that build a NewUser literal.
2026-09-05 11:27:36 +00:00
SimpleX Chat 3d5e85b180 7.1-beta.2: android 377, desktop 160, ios 352 2026-09-02 15:18:18 +00:00
SimpleX Chat 42fba08910 7.1-beta.1: android 374, desktop 158, ios 350 2026-08-20 16:22:51 +01:00
SimpleX Chat 1fe94aad78 7.1-beta.0: android 369, desktop 156, ios 346 2026-08-13 11:03:55 +01:00
SimpleX Chat e11128ce5b 7.0: android 366, desktop 155, ios 345 2026-07-28 16:41:46 +01:00
SimpleX Chat ecd1237bf4 7.0.0-beta.5: android 364, desktop 153, ios 343 2026-07-22 16:50:48 +01:00
SimpleX Chat bd55fedc2d 7.0.0-beta.4: android 363, desktop 152, ios 342 2026-07-20 10:25:58 +01:00
spaced4ndy 51ad366e8b core, ui: message signing (#7115) 2026-07-10 19:55:10 +00:00
sh a4e3a1ea11 simplex-chat: sync nodejs and python libs with 7.0.0-beta.3 types (#7219) 2026-07-08 09:01:17 +01:00
SimpleX Chat 0605709c07 7.0.0-beta.3: android 362, desktop 151, ios 341 2026-07-07 10:17:38 +01:00
SimpleX Chat 1785132691 7.0.0-beta.2: android 361, desktop 150, ios 339 2026-06-26 11:07:49 +01:00
SimpleX Chat 15ea3f83ba 7.0.0-beta.1: android 360, desktop 149, ios 338 2026-06-23 14:43:04 +01:00
SimpleX Chat 2825adfdc0 7.0.0-beta.0: android 356, desktop 147, ios 336 2026-06-18 18:28:29 +01:00
SimpleX Chat 2d23c2f392 6.5.5: android 355, desktop 146, ios 335 2026-06-17 14:56:23 +01:00
sh 656b1a3b64 simplex-chat-nodejs: bump libraries (#7042) 2026-06-04 08:53:27 +01:00
SimpleX Chat e92afb68d5 6.5.4: android 353, desktop 145, ios 334 2026-06-02 17:27:28 +01:00
sh b0901106a9 nodejs, python: bump packages (#6984)
* simplex-chat-nodejs: bump types and nodejs versions

* support bot: bump simplex-chat and types deps

* simplex-chat-python: bump version
2026-05-16 16:05:02 +01:00
sh 8841c73fb2 support bot, simplex-chat-nodejs: fix bot command parsing (#6964)
ciBotCommand's regex was unanchored, so a customer message like
"follow/read blog posts?" parsed as a /read command and the Grok
handler silently dropped the message. Anchor the regex with ^ so a
command requires `/` at the start of the (trimmed) message.

In the support bot, filter customer command parsing by the registered
keyword set: any unknown `/word` from a customer (e.g. /help) is now
routed as plain text instead of being silently dropped by Grok. This
also makes /grok when Grok is disabled behave consistently as text,
removing the previous ad-hoc workaround.
2026-05-12 09:52:50 +01:00
sh fefdea8ed0 support bot, bots: paginate chat scan (#6935)
* bots: document APIGetChats command and CRApiChats response

* bots: regenerate API docs and TypeScript types

* simplex-chat-nodejs: add apiGetChats

* support bot: avoid OOM on large databases

apiListGroups / apiListContacts return every record in one response and
overflow V8's string allocation on large DBs. Replace list-then-find-by-id
patterns with apiGetChat(type, id, 0) lookups, and the one genuine scan
(refreshAllCards) with paginated apiGetChats, count=1000.

* support bot: update test assertions to match current message text

* bots: simplify PaginationByTime, expose only PTLast

* simplex-chat-nodejs: bump types and nodejs versions
2026-05-06 08:54:36 +01:00
sh c043f82e11 simplex-chat-nodejs: bump version (#6925) 2026-04-30 13:08:52 +01:00
sh 0ff297b3b7 simplex-chat-nodejs: bump types and nodejs vesions (#6884)
* simplex-chat-nodejs: bump types and nodejs vesions

* update README
2026-04-25 11:47:41 +01:00
sh a845bfb89b simplex-chat-nodejs: bump version (#6873) 2026-04-25 09:46:34 +01:00
sh 42dd36bf09 simplex-chat-nodejs: typed DbConfig (#6875)
* simplex-chat-nodejs: typed DbConfig for ChatApi.init and BotDbOpts

* simplex-chat-nodejs: regenerate typedoc docs for DbConfig

* simplex-chat-nodejs: rename DbConfig.kind to .type
2026-04-24 16:43:43 +01:00
sh ac0176fa0b simplex-chat-nodejs: fix resolveKnown type error in apiConnectPlan (#6871) 2026-04-24 13:58:27 +01:00
sh a3fde4daa1 simplex-chat-nodejs: add PostgreSQL backend build support (#6845)
* simplex-chat-nodejs: add PostgreSQL backend build support

* simplex-chat-nodejs: fix postgres install command in README
2026-04-23 09:00:13 +01:00
sh 5c6514ee91 simplex-chat-nodejs: bump version (#6812) 2026-04-14 16:15:39 +01:00
Narasimha-sc e2ecff7215 simplex-chat-nodejs: add member contact API methods (#6763)
* simplex-chat-nodejs: add apiCreateMemberContact and apiSendMemberContactInvitation

* simplex-chat-nodejs: add integration test for apiCreateMemberContact and apiSendMemberContactInvitation

Test creates a 3-user group with direct messages enabled, then verifies:
- apiCreateMemberContact creates a DM contact between group members
- apiSendMemberContactInvitation sends an invitation that the recipient receives

* simplex-chat-nodejs: bump @simplex-chat/types to ^0.4.0
2026-04-10 09:37:37 +01:00
Narasimha-sc e3003fd1f5 simplex-chat-nodejs: fix userChatRelay type error in apiCreateActiveUser (#6764)
The @simplex-chat/types package (auto-generated from Haskell types) added
a required `userChatRelay: boolean` field to the NewUser interface, but
apiCreateActiveUser was never updated to pass it, causing a TypeScript
compilation error.

Set userChatRelay to false, which preserves the pre-existing behavior
(no chat relay provisioned for the new user profile).
2026-04-09 12:37:21 +01:00
sh 2df13dad36 core: add custom data commands, fix groups parser (#6691)
* core: add custom data commands, fix groups parser

- Add APISetGroupCustomData and APISetContactCustomData to ChatCommand,
  with parsers (/_set custom #, /_set custom @) and processors
  following the APISetChatUIThemes pattern
- Fix APIListGroups parser missing space ("/_groups" -> "/_groups ")
  to align with auto-generated cmdString
- Add chatCommandsDocsData entries for APISetGroupCustomData,
  APISetContactCustomData, and APISetUserAutoAcceptMemberContacts

* core: named fields for codegen, run codegen

- Use named record fields for APISetGroupCustomData,
  APISetContactCustomData, APISetUserAutoAcceptMemberContacts
  (required for chatCommandsDocsData field resolution)
- Fix OnOff field name to "onOff" (avoids clash with User field)
- Remove APISetUserAutoAcceptMemberContacts from undocumentedCommands
- Regenerate COMMANDS.md and commands.ts

* nodejs: add ChatApi wrappers for custom data and apiGetChat

- apiSetGroupCustomData, apiSetContactCustomData
- apiSetAutoAcceptMemberContacts
- apiGetChat (manual wrapper, APIGetChat undocumented)
2026-03-19 09:10:19 +00:00
Evgeny Poberezkin c11ff747b0 nodejs: update package 6.5.0-beta.4.4 2026-01-15 17:17:38 +00:00
sh d3a72473e9 nodejs: add and fix windows (#6581)
* simplex-chat-nodejs: adjust binding.gyp for windows

* simplex-chat-nodejs: different library linkage for windows

* simplex-chat-nodejs: remove non-moving GC in Windows

"non-moving GC is broken on windows with GHC 9.4-9.6.3" from:

https://github.com/simplex-chat/simplex-chat/blob/master/apps/multiplatform/common/src/commonMain/cpp/desktop/simplex-api.c#L11-L17

* ci: add windows to release-nodejs-libs

* simplex-chat-nodejs: same curl flags for dll.def download
2026-01-15 16:36:35 +00:00
43aa3e7e8a nodejs: simplex-chat npm package (#5556)
* nodejs: addon

* rename

* changes

* change lib name

* package

* lib path

* simplex-chat-nodejs: fix library paths

* simplex-chat-nodejs: change addon name

* simplex-chat-nodejs: install libs, adjust package and installation

* simplex-chat-nodejs: add npmignore

* gitignore: add additional nodejs path

* simplex-chat-nodejs: fix shim name

* gitignore: ignore nodejs package lock

* simplex-chat-nodejs: rename shim to underscore

* simplex-chat-nodejs: fix library loading on Mac

* simplex-chat-nodejs: expose low-level functions, move tests

* simplex-chat-nodejs: expose shim fucntions

* simplex-chat-nodejs: fixed libs version

* simplex-chat-nodejs: switch to official repository

* simpelx-chat-nodejs: adjust release tag

* async addon, tests

* refactor, fixes

* high level chat api

* simplify cpp add-on - move logic to JS, fix API

* api for events, api test

* update @simplex-chat/types

* Revert "update @simplex-chat/types"

This reverts commit da3f89866f.

* change @simplex-chat/types version

* receiver for any events, wait with timeout

* low-level bot example

* typedoc

* network connection events

* declarative bot api

* readme, docs

* update docs

* update readme

* add liveMessage support

* allow passing welcome message as string

* @simplex-chat/webrtc-client 6.5.0-beta.3

* bot test

* concurrent connection in tests

* nodejs/download-libs: cleanup on version mismatch

* nodejs/download-libs: bump libs version

* do not handle signals in Haskell

* update bot examples

* flatten docs and use local links to code

* update readme

* 6.5.0-beta.4

* include more files in npm package, 6.5.0-beta.4.2

* .gitignore

---------

Co-authored-by: Avently <7953703+avently@users.noreply.github.com>
Co-authored-by: shum <github.shum@liber.li>
2026-01-14 21:42:21 +00:00