917a6b96c2
feat: automatically map cursor uuids to names
...
not a fan of passing an Arc<DashMap> down to the cursor worker, but it
needs to access a mapping managed by the workspace so not sure if it can
be better. Into and From protocol types and Cursor are gone: do things
manually (since user is now a different thing, it can't be auto). Also
api::Cursor got changed: user field is Option<String> now
2024-09-05 23:59:05 +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
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
fea7cfcbe1
feat: added session, reworked auth
2024-08-27 21:24:04 +02:00
cschen
ef2285d0f3
Merge branch 'dev' into pyo3_bump
2024-08-16 16:50:55 +02:00
cschen
9d5aae461f
feat: added the file name changed to the workspace event (uniform non-unit variant enum)
2024-08-16 16:15:48 +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
c0d586df90
feat: Clone+Debug on api::Event
2024-08-15 20:15:37 +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
cschen
e732e6a938
feat(python): adapted glue to latest changes, still todo workspace events.
2024-08-15 17:58:02 +02:00
3346f1c526
feat: Controller::send is now async
...
needed because we want this to be acked, no longer a "fire and forget"
action
Co-authored-by: cschen <cschen@codemp.dev>
2024-08-14 15:55:06 +02:00
a9d713fd75
feat: async try_recv, delta_request
...
Co-authored-by: alemi <me@alemi.dev>
2024-08-14 00:24:32 +02:00
cschen
9acb7b6007
wip: Some attempts at getting DT to work with buffer controller and buffer worker!
...
This attempt doesn't use a ref to the crdt! But uses an extra channel!
2024-08-13 00:36:09 +02:00
a8b4eab445
feat: api struct for event
...
Co-authored-by: zaaarf <me@zaaarf.foo>
2024-08-09 00:40:33 +02:00
cschen
99cbebb4f8
fix(python): stragglers files
2024-08-09 00:00:21 +02:00
cschen
7e8a46f9b8
feat(python): new leaner glue, up to date
2024-08-08 23:58:45 +02:00
f14a8c40a5
feat: add codemp user to api
...
super stub but whatev
2024-08-08 21:55:43 +02:00
59d8a4640d
fix: proper lifetime for cursor, renamed methods
...
Co-authored-by: zaaarf <me@zaaarf.foo>
2024-08-08 02:29:45 +02:00
6e9727128d
feat: controllers now implement stop
...
Co-authored-by: zaaarf <me@zaaarf.foo>
2024-08-08 00:28:15 +02:00
ffa8d8ea82
Updated Javascript Glue with Napi
...
Co-authored-by: alemi.dev <me@alemi.dev>
2024-08-07 23:06:33 +02:00
cschen
df95b20728
Merge remote-tracking branch 'origin/glue' into glue
2024-08-06 23:28:39 +02:00
cschen
bdbd94879b
feat: added maturin wheel building config as completely separate "project",
...
feat: added stubs for python glue, bundled in the wheel,
feat: the python glue now uses less stupid names.
2024-08-06 23:28:09 +02:00
05a4c88967
fix: controller with 1 generic
2024-08-06 23:00:45 +02:00
Camillo Schenone
f9784e961d
feat: updated to new glue, magic.
...
fix: added sublime junk to gitignore
2024-08-05 22:44:46 +02:00
39533ae086
feat: wrappers for Cursor and Op
...
so plugins dont need to interact directly with our underlying proto
struct, nor our underlying crdt ops. also for wrapping directly in glue
2024-08-05 19:15:30 +02:00
a38c28f401
feat: moved out proto + feature flag cleanup
...
Co-authored-by: alemi <me@alemi.dev>
2024-03-09 19:59:36 +01:00
9422f9a216
docs: updated docs
2024-02-09 01:16:16 +01:00
4fdd2a79c4
fix: api doesn't really require woot or similar
2024-02-09 01:04:10 +01:00
f706237828
chore: removed blocking_recv
...
just block_on(recv()) ...
2024-02-09 01:03:38 +01:00
47127bbb41
chore: back from transport to proto
2024-02-09 00:39:07 +01:00
c9a36ea8ec
fix: cleaned up code, fixed multi-op change issues
2024-02-09 00:35:08 +01:00
741a074464
feat: implemented leave workspace and list buffer users, various fixes
2024-01-25 17:05:06 +01:00
94a7786812
feat: workspaces and new library structure
...
Co-authored-by: alemi <me@alemi.dev>
Co-authored-by: frelodev <frelodev@gmail.com>
2024-01-25 02:13:45 +01:00
7ad1da0f27
chore: updated docs, getter for buf name
2023-11-30 03:41:53 +01:00
1f50f75eb4
fix: apply() panic when out of bounds
2023-11-30 03:02:13 +01:00
10e4a458ce
chore: more tests, imports
2023-11-30 03:01:59 +01:00
da44aff408
feat: added TextChange helper methods and more test
2023-11-30 00:38:24 +01:00
b4b955a39e
fix: caught textchange diff bug, added tests
2023-11-30 00:37:57 +01:00
3bc1159ffc
feat: utility fn to convert from index to rowcol
2023-11-24 11:08:03 +01:00
76e61b1abb
docs: include doc into textchange block
2023-11-17 05:53:38 +01:00
39f2bd6ac2
docs: updated usage and references
2023-11-17 05:47:40 +01:00
2ccb5c936b
feat: moved TextChange into api, added from diff
2023-11-17 05:45:31 +01:00
178ececfe2
fix: remove callback from controller api
2023-11-09 05:22:16 +01:00
8686715e9d
feat: swap in our WOOT implementation
...
it's kinda crude and buggy but some things might just work?
2023-11-09 05:21:24 +01:00