Commit Graph

177 Commits

Author SHA1 Message Date
Daniel Holmgren 60a537a6e4 MIT license (#241)
mit license errything
2022-10-17 13:20:06 -05:00
Daniel Holmgren 7233ce070f Cleanup (#210)
* messing around w pino

* rework locals & add pino-http

* subsystem logging off env vars

* remove auth tokens from logs

* lots of logging

* re-enable tests

* update enabled check

* fix subsystem logging

* some quick cleanup
2022-10-05 17:55:08 -05:00
Daniel Holmgren b26eb75277 Logging (#209)
* messing around w pino

* rework locals & add pino-http

* subsystem logging off env vars

* remove auth tokens from logs

* lots of logging

* re-enable tests

* update enabled check

* fix subsystem logging

* pr fixups
2022-10-05 17:47:00 -05:00
Daniel Holmgren 55e6e54fcf Did PLC (#181)
* validate the signatures
add the id to the did doc
pid from sha256 of oragin doc
added the tick to diffs extractor
added the key authorisation
add lots of types
add routes for calling the aic
refactor to jest based repo structure

* WIP

* migrate the tests

* more test fixes

* test.

* replace snake case with camel case

* moved to use isolated server for aic

* remove the aic test from the PDS

* clean up some changes outside the aic folder

* fix CaS for saving ticks

* rearange the folder

* missed  one

* cleaned up aic package.json

* broken build

* test passing

* prettier

* pid tests refactor

* fix eslint/prettier setup, add eslint-config-prettier

* misc linting and style tweaks in aic

* minor touchups to aic sign/verify

* tidy error-handling in aic

* tidy-up crypto init in aic

* add aic route for getting a did doc, update /tick routes

* knex -> typeorm

* refactor crypto

* error handling & dependencies

* switching op model & some other cleanup

* change db to use operations

* add cid references to ops & ensure no branching in DB tx

* cleaning up

* rotues

* working on client & tests

* document & oepration tests

* server tests

* cleanup

* remove lobby page & static

* formatting did documents

* aic/pch -> plc

* fixing up some doc semantics

* tooling/test server

* added recovery window

* tx mutex

* test on document formatting

* take validate op out of write tx

* error handling

* readme

* couple bug fixes

* quick readme edit

Co-authored-by: Aaron Goldman <aaron@aarons-mbp.lan>
Co-authored-by: Aaron D Goldman <aaron@blueskyweb.xyz>
Co-authored-by: Devin Ivy <devin@bigroomstudios.com>
2022-09-20 21:28:00 -05:00
Paul Frazee 1425b0cd4f New XRPC-based Server and API implementations (#180)
* Add xrpc-cli package; implement 'new' and 'gen-md' commands

* Add gen-ts-obj to xrpc-cli

* Add gen-api command to xrpc-cli

* Add gen-server to xrpc-cli

* Update codegen from xrpc-cli to run prettier and include a banner comment

* Use 'void' instead of 'undefined' for return type

* Skip invalid schemas when generating code

* Rewrite schemas package to use new simplified schema

* Output type definitions in nested folders

* Add record schema code-generation

* Change xrcp client call() signature to be easier to use

* Update client codegen to match new xrpc call signature

* Fixes and improvements to generated record APIs

* Update generated api to use per-service instances

* Add xrpc-cli readme

* (WIP) Rewrite server to use xrpc

* Add missing references to server/tsconfig.json

* Replace api implementation with xrpc generated client

* Add /schemas folder with todo.adx

* Add /schemas/todo.social

* Update api package to include todo.social xrpc and adx schemas

* Update server package to include todo.social xrpc and adx schemas

* Fix some schema definitions

* (WIP) Work toward xrpc update of server

* Update auth package to use nsids for collections

* Update repo package to use nsids for collections

* Update AdxUri to use nsid collection IDs

* Bring server CRUD tests to passing state

* Move API to simpler xrpc call signature

* Apply fixes and improvements to record apis

* Update to new generated api with per-service instances

* Rename the todo.social.* view methods

* Rewrite the views system to use xrpc

* Remove paths accidentally added to tsconfig

* Remove microblog package

* Add simple API readme

* todo about deduping ucan prfs

* increase postThread default depth to fix failing test. & fix USE_TEST_SERVER config

Co-authored-by: dholms <dtholmgren@gmail.com>
2022-09-20 17:39:05 -05:00
dholms c9a6609b93 fixed up common & repo tests 2022-09-13 11:15:56 -05:00
Paul Frazee cd431c58c8 Add some readmes (#169) 2022-09-13 10:54:56 -05:00
Daniel Holmgren 00d691d70f Merge pull request #167 from bluesky-social/repo-package
Split out repo package
2022-09-13 08:54:01 -05:00
Daniel Holmgren a47f1c85b4 Merge pull request #162 from bluesky-social/pds-api
PDS revamp
2022-09-13 08:53:40 -05:00
dholms 22f069f5d3 cleaning up dependencies 2022-09-12 21:07:06 -05:00
dholms 94babb38b7 split common and repo out into separate packages 2022-09-12 21:01:56 -05:00
dholms 550136f05c cleanup 2022-09-12 15:58:25 -05:00
dholms 1cb552a46b bit of cleanup 2022-09-12 13:44:05 -05:00
dholms dad56e802f crud tests 2022-09-09 15:25:36 -05:00
dholms 0760d07a80 fixing badge refs 2022-09-08 11:30:35 -05:00
dholms 9529ebe886 posts go in -> posts come out 2022-08-31 19:09:21 -05:00
dholms 300e68bd52 del old microblogging code & allow sigs with no auth token from root did 2022-08-31 17:41:45 -05:00
dholms aede15bd29 api routes 2022-08-30 19:15:09 -05:00
dholms 7271e8d2f3 repo roots & http-types 2022-08-19 15:52:57 -07:00
dholms 8ec37c960a wip 2022-08-18 18:11:44 -07:00
dholms aab1a9ef42 add namespace/datasets to adxuri 2022-08-18 18:00:50 -07:00
dholms 59ef9fa391 add safecommit test 2022-08-18 10:38:12 -07:00
dholms 7a062e9877 unnecessary todo 2022-08-16 13:14:02 -07:00
dholms d5c8806fdd cleanup + basic repo fn tests 2022-08-16 13:11:39 -07:00
dholms 1f3e5c309a some ucan cleanup 2022-08-16 12:30:03 -07:00
dholms e9b558469a testing diffs 2022-08-16 12:18:23 -07:00
dholms 0c025b1723 test failure cases 2022-08-16 11:58:42 -07:00
dholms 4a34dc576e yay diffs & sync working 2022-08-11 18:10:14 -05:00
dholms f44f1fb102 cleanup 2022-08-11 16:26:13 -05:00
dholms 60a6ff2c87 simplified diff class 2022-08-11 16:09:22 -05:00
dholms 49cdb5074c fix some subtle mst bugs & get diff working 2022-08-11 16:04:24 -05:00
dholms 84d56dc742 fixing up diff algo (wip) 2022-08-11 13:50:56 -05:00
dholms 4e03fba102 refactor blockstore 2022-08-10 16:26:26 -05:00
dholms 26cb3a35eb better tests 2022-08-10 16:02:21 -05:00
dholms 28a159869c fixed up writing car file 2022-08-09 20:04:45 -05:00
dholms f9f13da614 fixing up verify 2022-08-09 19:48:01 -05:00
dholms a315710f0a fixing up tests 2022-08-09 15:55:50 -05:00
dholms 246628b804 fix issues with diff & improve colleciton name sematnics 2022-08-09 14:24:03 -05:00
dholms 709859aae7 wip 2022-08-08 20:48:09 -05:00
dholms 08f12f48c6 refactored repo 2022-08-08 15:22:52 -05:00
dholms bb7963293b batch writes & safe commits 2022-08-05 15:52:56 -05:00
dholms e67631f41b cleaning up schemas 2022-08-05 14:43:26 -05:00
dholms 71d90d3266 wip 2022-08-04 20:34:54 -05:00
dholms e78ef58cf8 mst integration 2022-08-04 19:33:53 -05:00
dholms 3965ca4b8c added test:profile cmd 2022-08-03 15:15:11 -05:00
dholms 883d9b2e75 track full repo overhead & a bit of cleanup 2022-08-02 18:31:08 -05:00
dholms 05cd3c0db6 performance improvements 2022-08-02 17:11:57 -05:00
dholms 680cf6a2f9 add proof sizes to benches & switch out Webcrypto sha for ipld sha 2022-08-02 14:58:58 -05:00
dholms 6e158f5dfa benchmarking 2022-08-02 13:44:18 -05:00
dholms 257958b3b3 PR feedback 2022-08-02 11:37:54 -05:00