Commit Graph

525 Commits

Author SHA1 Message Date
shum 69dee10bd7 refactor(names): agent resolution + one error type
Adopt the simplexmq names rework (PR #7045): name resolution is now
owned by the agent (resolveSimplexName picks a names-role server), so
the chat-side iteration is removed - delete ResolveError,
iterateResolvers, resolveOnUserServers, enabledSMPServersForUser and
resolveErrorToChatError.

One error type: resolver/agent failures flow through ChatErrorAgent;
remove the CEvtSimplexName* events, SimplexNameVerifyFailReason,
SimplexNameConflictEntity and CESimplexNameResolverUnavailable.
APIVerifySimplexName returns CRSimplexNameVerified (verified::Bool),
mirroring CRConnectionVerified. connectPlan handles the name target
directly; updateProfile WithConflict aliases collapsed into the plain
functions.

Add the per-operator "names" SMP server role (migration
20260612_smp_role_names, official operator on by default) feeding
ServerRoles.names -> UserServers.nameSrvs.

Bump simplexmq pin to ce69adfd and regenerate sha256map.nix.
2026-06-13 07:40:36 +00:00
shum fa75978a10 deps: bump simplexmq to df1aa24c 2026-06-11 15:11:55 +00:00
shum 599bb49ebd deps: bump simplexmq for multi-link NameRecord; adapt consumers 2026-06-11 09:39:01 +00:00
shum 5ce9e852a3 deps: bump simplexmq for HTTP resolver; adapt NameRecord consumers
simplexmq 92b3d049 reshaped NameRecord text fields from Maybe Text to
Text (empty string sentinel). Adapt firstNameLink to take Text directly
and treat T.null as "absent". dispatchResolvedRecord destructure
unchanged; passes the text values straight through. apiVerifySimplexName
switches from Just/Nothing pattern to a T.null guard with the same UX.
Test fixtures updated.
2026-06-08 11:49:07 +00:00
shum d5bfa2e9d8 chat: bump simplexmq pin + document cross-table simplex_name discriminator
Pin bump 5ee014dd -> c9c2d19 picks up the 8 simplexmq commits since the
last bump (parseBare lowercase fix, forwarded-param cleanup, ServerTests
+ agent end-to-end tests, TldRegistries removal, SNRC ABI decoder,
NameRecord/NameOwner module extraction).

Adds a brief comment on clearConflictingContactProfileSimplexName_
explaining why the audit's flagged cross-table collision (between
contact_profiles.simplex_name and group_profiles.simplex_name) is
structurally impossible: SimplexNameInfo's strEncode prefixes contact
names with '@' and group names with '#', so the stored bytes never
overlap between the two tables.

Query-plan regen deferred (the test is non-deterministic in CI / dev
sandbox — see prior 6c990696c).
2026-06-06 09:17:55 +00:00
shum 1cf96fc291 deps: bump simplexmq for NameRecord reshape; update consumers
simplexmq 5ee014dd reshaped NameRecord to align with the Python resolver
JSON: nrChannelLinks/nrContactLinks (lists of NameLink) became
nrSimplexChannel/nrSimplexContact (Maybe Text); nrDisplayName became
nrName; nrResolver was added; the NameLink wrapper type and nrIsTest/
nrExpiry/nrAdminAddress/nrAdminEmail fields were dropped.

Update dispatchResolvedRecord destructure and firstNameLink signature
to the new Maybe Text shape, and refresh the ResolveNameTests fixtures
and assertions accordingly.
2026-06-05 10:09:02 +00:00
shum bd41aa90b2 deps: bump simplexmq for resolveSimplexName 2026-06-04 15:21:17 +00:00
shum 5df4627793 deps: bump simplexmq for boundedNonSpace + drop unused FromField 2026-06-03 19:10:40 +00:00
shum 74c94a8078 deps: bump simplexmq for SimplexNameInfo FromField/ToField 2026-06-03 16:31:54 +00:00
shum ee0a45e9c5 deps: bump simplexmq for ConnectTarget 2026-06-03 14:22:13 +00:00
Evgeny Poberezkin 9f93e87f56 Merge branch 'stable' 2026-05-30 16:01:27 +01:00
sh 68fc1b5d22 core, ui: split SimplexNameDomain out of SimplexNameInfo (#7024)
* core, ui: split SimplexNameDomain out of SimplexNameInfo

* core: bump simplexmq to b3f28948 (SimplexNameDomain split)

* core: bump simplexmq to 4e2c9fc3 (StrEncoding split)

* core: bump simplexmq to ee2ff402 (#1788 squash merge)

* update sha256map.nix
2026-05-30 09:39:14 +01:00
Evgeny Poberezkin 507a4de61c Merge branch 'stable' 2026-05-28 23:19:54 +01:00
Evgeny 68abd805d4 rfc: namespace (#7001)
* rfc: namespace

* update rfc

* markdown for names

* record type, app "upgrade" alerts

* update api types

* rfc: change namespace syntax - now it is the usual namespace

* update bot types

* move types to simplexmq

* core: refactore markdown

* update simplexmq

* better names

* new names

* update nix content hashes

* fix

* change valid name function

* update simplexq, update valid name conditions

* fixes

Co-authored-by: simplex-chat-agent[bot] <287173099+simplex-chat-agent[bot]@users.noreply.github.com>

* update simplexmq

* fix localization

* simpler

* refactor

* refactor

* fix

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
Co-authored-by: simplex-chat-agent[bot] <287173099+simplex-chat-agent[bot]@users.noreply.github.com>
2026-05-28 08:44:43 +01:00
Evgeny fe6b5186e1 core: update simplexmq (receiving services) (#6212)
* core: update simplexmq

* update agent api

* update simplexmq

* core: add flag to User to use client services

* update simplexmq

* cli command to toggle service for a user

* test, fix

* query plans, core/bot api types

* remove local package reference

* increase server queue size in tests

* show client service status in users list

* update query plans

* cli: fix redraw slowness (#6735)

* cli: add pland to fix redraw slowness

* updtae doc

* cli: decouple key reading from processing via TQueue

* schema and bot types

---------

Co-authored-by: sh <37271604+shumvgolove@users.noreply.github.com>
2026-05-25 10:37:13 +01:00
Evgeny Poberezkin 13906936bb 6.5.3.0 2026-05-22 12:18:38 +01:00
Evgeny Poberezkin b7c3d8a279 core: 6.5.1.0 (simplexmq 6.5.1.0) 2026-05-02 12:14:01 +01:00
Evgeny Poberezkin edb9958f53 core: 6.5.0.19 (simplexmq 6.5.0.17) 2026-04-29 22:49:07 +01:00
Evgeny Poberezkin 27516a2af7 core: update simplexmq 6.5.0.16 2026-04-21 22:26:21 +01:00
Evgeny 30ae0d864c core: share links to channels and verify shared links when connecting (#6810)
* core: share links to channels and verify shared links when connecting

* refactor

* improve

* refactor case

* simplify

* exctract encodeChatBinding

* share api

* corrections

Co-authored-by: Evgeny <evgeny@poberezkin.com>

* tests

* verify signature in the tests

* drop signature if context does not match on reception

* try to test "fake" forward

* fix

* fix direct chat sharing test

* channel test

* sign link

* rename api

* refactor view

* chal link item CLI view, tests

* clean up

* share channel in channel as channel

* query plan

* fix test

* refactor

* whitespace

* simpler

* refactor

* dont use partial field update

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
2026-04-16 23:48:19 +01:00
Evgeny Poberezkin 46c41382a6 core: 6.5.0.15 (simplexmq 6.5.0.15) 2026-04-11 21:01:37 +01:00
Evgeny 6f21826579 core, ui: chat item to show message error (#6785)
* core: chat item to show message error

* ui: chat item for removed messages

* remove local maven repo

* command to test dropped messages

* update nix config

* show parse errors

* error texts, simplexmq

* alert messages

* simplexmq, alert

* better parsing

* better parsing

* simplify

* correct message

* remove test api

* do not check size twice, bot types

* send error in relays

* do not create error item in relays

* diff

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
2026-04-11 19:40:33 +01:00
Evgeny Poberezkin 515b0f56cc core: 6.5.0.12 (simplexmq 6.5.0.14) 2026-04-04 19:07:34 +01:00
spaced4ndy 25637c0318 core: update simplexmq 2026-04-03 14:06:40 +04:00
Evgeny Poberezkin 47cf8bc612 core: 6.5.0.10 (simplexmq 6.5.0.12) 2026-03-29 09:44:05 +01:00
Evgeny Poberezkin 9f15c34184 core: update simplexmq (fix tests) 2026-03-12 17:14:21 +00:00
Evgeny Poberezkin b1daba07a0 core: update simplexmq 2026-03-12 08:09:46 +00:00
spaced4ndy 3707a419ce core: update simplexmq (fix build) 2026-02-27 11:47:13 +04:00
Evgeny 60ff28d8f8 website: update home page (#6647)
* website: update home page

* translate

* layout

* add languages to home page

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
2026-02-24 17:49:26 +00:00
sh 279119e134 simplex-directory-service: add audio captcha (#6619)
* simplex-directory-service: add audio captcha

* add plan

* updated plan

* implement changes

* add tests with coverage

* add tests

* implement further changes

* directory tests overview

* fix tests on 8.10.7

* /audio command toggles between text and voice captcha

* core: /audio enables voice captcha, retry sends both image and voice

* remove irrelevant directory service tests

* fix flaky testJoinGroup message ordering
2026-02-07 13:29:41 +00:00
Evgeny Poberezkin 98f1882a55 core: 6.5.0.9 (simplexmq 6.5.0.8) 2026-01-29 00:04:53 +00:00
Evgeny Poberezkin 14d5819ade Merge branch 'stable' 2026-01-28 23:38:54 +00:00
Evgeny Poberezkin 5d32e14559 core: 6.4.10.0 (simplexmq 6.4.8.0) 2026-01-28 22:03:25 +00:00
Evgeny a786693c1a core: improve error handling (#6602)
* core: improve error handling

* simplexmq
2026-01-28 21:57:39 +00:00
spaced4ndy 2d64365d8c core: correctly handle errors in createWithRandomId/Bytes for postgres (reuse withSavepoint from simplexmq) (#6578) 2026-01-15 15:18:15 +00:00
Evgeny Poberezkin 2ecee42a40 core: 6.5.0.8 (simplexmq 6.5.0.7) 2026-01-13 22:28:52 +00:00
Evgeny Poberezkin f99e8da8fe update simplexmq 2026-01-13 19:13:51 +00:00
Evgeny 3596c37275 core: improve database concurrency (#6541)
* core: improve database concurrency

* tests: prints on timeouts (#6546)

* update simplexmq

* fix test

* update simplexmq

---------

Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
2026-01-08 13:43:37 +00:00
Evgeny 2251da970e core: reset schema after changes (#6545)
* core: reset schema after changes

* update simplexmq
2026-01-05 22:10:51 +00:00
Evgeny f0467aee00 directory service: fix queries (#6539)
* fix directory service queries

* fix

* reduce postgres pool size to 1

* stabilize postgres client tests, remove slow handshake tests

* update simplexmq

* fix test

* test delay
2026-01-04 19:04:32 +00:00
Evgeny Poberezkin 89b72effaf core: 6.5.0.7 (simplexmq 6.5.0.6) 2025-12-23 18:48:09 +00:00
Evgeny Poberezkin b0eb01a8fa Merge branch 'stable' 2025-12-23 14:19:53 +00:00
Evgeny 67fbe62ae1 core: update simplexmq (support any 127.x.x.x address as loopback), show other addresses in CLI during remote connection, update tests (#6526) 2025-12-23 14:16:05 +00:00
Evgeny Poberezkin 81d31e6c9e core: 6.5.0.6 2025-12-22 21:58:44 +00:00
Evgeny Poberezkin 13bce0821c core: 6.5.0.5 2025-12-11 17:50:05 +00:00
spaced4ndy f76e994034 core: forward based on relations vector (#6464)
* core: forward based on relations vector wip

* fix introductions

* fix forwarding tests

* fix forwarding inside support scope

* fix deduplication test

* fix more tests

* plans, api

* live migration wip

* enable tests

* member locks

* api

* plans

* fix for postgres

* fix for postgres

* rename predicate

* rename predicate

* optimize

* refactor

* fix

* check

* move part of migration to sql

* plans

* core: preserve detailed information in relation vectors (#6484)

* core: relations vector live migrations; stage 2 migration sql (#6472)

* rework forwarding in support scope

* move operations inside transactions

* set_member_vector_new_relation function

* read vector ad-hoc

* partition in transaction

* fix postgres

* postgres schema

* api

* plans

* remove comment

* lock before migration computation

* refactor

* simplify set relations

* retreive only support scope members

* fix

* refactor

* fix comment

* enable tests

* 1 second

* for update

* locks

* fix mask

* plans

* fix

* postgres

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
2025-12-09 14:48:32 +00:00
spaced4ndy 850e4687f8 core: update simplexmq (support setting all link data fields) (#6425) 2025-11-05 08:11:26 +00:00
Evgeny Poberezkin 6ccd34bc40 Merge branch 'stable' 2025-11-02 22:28:28 +00:00
Evgeny Poberezkin 0c4f2343ae core: update zip library to build in ghc8.10.7 2025-11-01 22:01:11 +00:00
Evgeny Poberezkin 70035bd473 core: upgrade zip (fixes export when database file is larger than 4gb 2025-10-30 14:27:39 +00:00