03a158e678
feat: cursor+buffer controllers know their ws id
2024-11-16 16:42:58 +01:00
4fcab00d34
chore: cargo features ( #66 )
...
test / test-unit (push) Waiting to run
test / test-beta (beta) (push) Blocked by required conditions
test / test-beta (nightly) (push) Blocked by required conditions
test / test-functional (push) Blocked by required conditions
test / test-build (java, macos-latest) (push) Blocked by required conditions
test / test-build (java, ubuntu-latest) (push) Blocked by required conditions
test / test-build (java, windows-latest) (push) Blocked by required conditions
test / test-build (js, macos-latest) (push) Blocked by required conditions
test / test-build (js, ubuntu-latest) (push) Blocked by required conditions
test / test-build (js, windows-latest) (push) Blocked by required conditions
test / test-build (lua, macos-latest) (push) Blocked by required conditions
test / test-build (lua, ubuntu-latest) (push) Blocked by required conditions
test / test-build (lua, windows-latest) (push) Blocked by required conditions
test / test-build (py, macos-latest) (push) Blocked by required conditions
test / test-build (py, ubuntu-latest) (push) Blocked by required conditions
test / test-build (py, windows-latest) (push) Blocked by required conditions
* chore: changed features layout
now using `dep:` and `crate?/feat` syntaxes (introduced in rust 1.60).
this may mess with lua rockspec
2024-11-16 16:28:46 +01:00
e4d013087c
fix: don't overwrite oplog after creating agent id
...
test / build (java, ubuntu-latest, beta) (push) Has been cancelled
test / build (java, ubuntu-latest, stable) (push) Has been cancelled
test / build (java, windows-latest, beta) (push) Has been cancelled
test / build (java, windows-latest, stable) (push) Has been cancelled
test / build (js, macos-latest, beta) (push) Has been cancelled
test / build (js, macos-latest, stable) (push) Has been cancelled
test / build (js, ubuntu-latest, beta) (push) Has been cancelled
test / build (js, ubuntu-latest, stable) (push) Has been cancelled
test / build (js, windows-latest, beta) (push) Has been cancelled
test / build (js, windows-latest, stable) (push) Has been cancelled
test / build (lua54, macos-latest, beta) (push) Has been cancelled
test / build (lua54, macos-latest, stable) (push) Has been cancelled
test / build (lua54, ubuntu-latest, beta) (push) Has been cancelled
test / build (lua54, ubuntu-latest, stable) (push) Has been cancelled
test / build (lua54, windows-latest, beta) (push) Has been cancelled
test / build (lua54, windows-latest, stable) (push) Has been cancelled
test / build (luajit, macos-latest, beta) (push) Has been cancelled
test / build (luajit, macos-latest, stable) (push) Has been cancelled
test / build (luajit, ubuntu-latest, beta) (push) Has been cancelled
test / build (luajit, ubuntu-latest, stable) (push) Has been cancelled
test / build (luajit, windows-latest, beta) (push) Has been cancelled
test / build (luajit, windows-latest, stable) (push) Has been cancelled
test / build (py, macos-latest, beta) (push) Has been cancelled
test / build (py, macos-latest, stable) (push) Has been cancelled
test / build (py, ubuntu-latest, beta) (push) Has been cancelled
test / build (py, ubuntu-latest, stable) (push) Has been cancelled
test / build (py, windows-latest, beta) (push) Has been cancelled
test / build (py, windows-latest, stable) (push) Has been cancelled
test / test (beta) (push) Has been cancelled
test / test (stable) (push) Has been cancelled
Co-authored-by: alemi <me@alemi.dev>
2024-10-29 15:15:25 +01:00
79204972f3
fix: properly update branch version
2024-10-27 20:04:52 +01:00
4b5ed06bb7
chore: renamed TextChange and Event fields
...
Co-authored-by: alemi <me@alemi.dev>
2024-10-16 03:11:40 +02:00
e5fd0ca76a
chore: split list_workspaces, renamed filetree, refactored fetch_users and fetch_buffers
...
Co-authored-by: alemi <me@alemi.dev>
2024-10-16 00:42:55 +02:00
1927504434
fix: warn when clipping, gen agent id once
2024-10-11 20:40:31 +02:00
9e977adcdd
chore: cargo fmt
2024-10-10 12:52:25 +02:00
721d71dd18
fix: doctests
2024-10-10 12:52:25 +02:00
ce8dcc8b8c
chore: cleanup
2024-10-10 12:52:25 +02:00
560a634499
chore: split TextChange and Cursor
...
so that sending/receiving parts are different rather than Option<?>
Co-authored-by: zaaarf <me@zaaarf.foo>
2024-10-10 12:52:25 +02:00
45864e19f6
feat: added Delta object to ffis
2024-10-10 12:52:25 +02:00
29fde1ad24
fix: BufferAck is clonable
2024-10-10 12:52:25 +02:00
d5518a7b48
chore: updated send methods (+format)
2024-10-10 12:52:25 +02:00
907a0329d3
feat!: ackable changes for buffer cntrls, sync send
2024-10-10 12:52:25 +02:00
2fe217ad85
chore: autofmt
2024-10-03 04:06:54 +02:00
535de6c2fc
Merge branch 'dev' into feat/workspace-receiver
2024-10-03 03:52:42 +02:00
ca04601bea
chore: refactor worker
...
move stuff out of tokio select so that RA doesnt choke
2024-10-03 00:59:11 +02:00
400d87cdb1
chore: cargo fmt
2024-10-01 16:07:09 +02:00
1b16d4af59
chore: split controller trait in 2 sides
...
Co-authored-by: zaaarf <me@zaaarf.foo>
2024-09-28 03:33:32 +02:00
4d418c814e
fix: use Weak refs to prevent leaky cycles
2024-09-26 02:29:13 +02:00
cschen
f6c0b878cb
feat: add specific feature flag to specify building python without abi.
...
This is needed because if we want to ship to sublime, having the `pyo3/abi-*`
feature enabled will result in a wheel that needs the `python3.dll` (f****g windows)
which sublime does not ship. This works fine for Linux and Mac Os, but
for windows we will need to build without abi and for Python3.8 directly
for sublime specifically and also with the abi for the generic python wheel to be
used everywhere else.
2024-09-19 21:32:46 +02:00
ac94fb86fd
chore: rename feature to py for consistency
2024-09-13 22:21:53 +02:00
04e021f964
feat: don't use async-trait for api::Controller
...
make it still available via feature `async-trait` if it is necessary to
use auto traits downstream, however documentation should now be more
readable
2024-09-05 23:27:57 +02:00
d25e744a37
docs: improved cargo docs, rewrote readme
...
Co-authored-by: alemi <me@alemi.dev>
2024-09-05 01:45:48 +02:00
bfe84c45e0
docs: re-documented remaining members
2024-09-04 21:37:35 +02:00
f0a6a6b730
docs: remade docstricts, refactored a bit
...
refactor shouldn't impact external apis and mostly just moves stuff
around to make sense documentation-wise
Co-authored-by: zaaarf <me@zaaarf.foo>
2024-09-04 20:03:34 +02:00
cf1e910dcb
feat: reworked cursor worker/controller
...
now its more similar to buffer controller/worker and it behaves more
like an actor/service
2024-09-01 03:08:43 +02:00
b98be22a8b
feat: more capillar errors
...
so its clear that some functions wont return a transport error or an rpc
error
2024-09-01 02:46:03 +02:00
cschen
0b1a542ed5
fix: we clip the change span in from 0 to the buffer length, this avoids that
...
badly formatted changes will crash the worker.
Previously I was able to crash the worker by sending oob changes.
chore: improved text change docs a lil bit
2024-09-02 11:31:36 +02:00
cschen
d0d57f6fd5
fix: whops, (I don't know why this bug is still here)
2024-09-01 15:49:54 +02:00
cschen
e7272753e6
Merge branch 'dev' into pyo3_bump
2024-08-21 15:03:10 +02:00
0154e5a032
fix: try_recv() channel error : delta may be None
...
basically if there was no change to report, the oneshot would not get
updated which is bad. so we put back the version we got and send a None
(the channel now has nullable TextChange). so basically its always a
try_recv, but its fine since recv is implemented with try_recv + poll
anyway
2024-08-17 00:17:01 +02:00
cschen
ef2285d0f3
Merge branch 'dev' into pyo3_bump
2024-08-16 16:50:55 +02:00
cschen
610576f8b7
feat: Bumping to pyo3 0.22, removing pyo3-asyncio, moving code around to allow for
...
smoother pyo3 aggregation.
2024-08-16 12:58:43 +02:00
8b704fa668
feat: impl so no longer needed from::
...
Co-authored-by: zaaarf <me@zaaarf.foo>
2024-08-15 22:48:03 +02:00
a8ce56bcc0
feat: callback gets the controller itself as arg
2024-08-15 20:41:53 +02:00
d3ce714070
feat: rather than +Debug, make a newtype
2024-08-15 20:15:23 +02:00
7900ca08a7
feat: added back .callback() to controller api
2024-08-15 19:32:01 +02:00
3e37d4ffe3
fix: don't send anything if change is a noop
2024-08-14 23:53:51 +02:00
e43105b919
fix: textchange can be both delete and insert
2024-08-14 23:46:16 +02:00
cschen
c58d1db58b
fix: proper translation from dt::Operation to Textchange
...
Co-authored-by: alemi <me@alemi.dev>
2024-08-14 17:16:05 +02:00
97b7504098
feat: hash is a public ext
2024-08-14 17:12:36 +02:00
cschen
d22446ee10
fix: this time is the good one
2024-08-14 16:31:28 +02:00
cschen
6c30699acc
Revert "(to alemi: always has been) fix: try now lmao."
...
This reverts commit 1b5b9e74bf
.
2024-08-14 16:15:42 +02:00
cschen
1b5b9e74bf
(to alemi: always has been) fix: try now lmao.
2024-08-14 16:07:19 +02:00
413247f9b4
fix: update local version on send
...
also keep a branch on which we merge editor's changes, which kind of
solves our race condition thing
Co-authored-by: cschen <cschen@codemp.dev>
2024-08-14 15:55:18 +02:00
cschen
ef9da1740a
chore: explaining an extra thing
2024-08-14 13:34:01 +02:00
cschen
4d65b2db7d
fix: error in the worker that merged more operations than needed.
2024-08-14 13:32:18 +02:00
a9d713fd75
feat: async try_recv, delta_request
...
Co-authored-by: alemi <me@alemi.dev>
2024-08-14 00:24:32 +02:00