Commit Graph

150 Commits

Author SHA1 Message Date
Derrick Hammer ff6d0ec036
refactor: if we have an error, return a plain text response 2023-07-31 12:57:32 -04:00
Derrick Hammer 17030f285b
feat: add cid dns resolver 2023-07-31 12:55:54 -04:00
Derrick Hammer 1ee19f6b97
dep: update resolver module hashes 2023-07-31 12:55:18 -04:00
Derrick Hammer 4dc1d81dac
feat: add console debugging support by exposing the kernel package globally 2023-07-31 12:54:51 -04:00
Derrick Hammer 8e5922ab60
refactor: update booted api function 2023-07-31 12:54:21 -04:00
Derrick Hammer 2937761e11
fix: ensure we have records 2023-07-31 12:53:45 -04:00
Derrick Hammer 067d53b117
refactor: update imports 2023-07-31 12:53:24 -04:00
Derrick Hammer dd497fbf6f
refactor: switch proxy to use example.com 2023-07-31 12:52:50 -04:00
Derrick Hammer 51053bc6d9
refactor: change name of booted promise api, add a boot store, and tag onto the promise to flag the new booted property 2023-07-31 12:52:06 -04:00
Derrick Hammer 02d1027c05
refactor: remove getDnsSetupDefer 2023-07-31 12:50:33 -04:00
Derrick Hammer 3f57f9ec44
refactor: switch to using defer 2023-07-31 12:50:06 -04:00
Derrick Hammer 6d414d8415
dep: update resolver module hashes 2023-07-29 14:49:16 -04:00
Derrick Hammer 937138d8f6
dep: update resolver module hashes 2023-07-29 13:16:20 -04:00
Derrick Hammer 83681663e0
dep: update dns resolver hashes 2023-07-29 00:24:14 -04:00
Derrick Hammer ac2cf57152
fix: ignore version messages 2023-07-26 07:58:43 -04:00
Derrick Hammer b20ef42332
refactor: need to explicitly import types due to verbatimModuleSyntax 2023-07-25 12:04:30 -04:00
Derrick Hammer 262497e1bc
refactor: import KernelAuthStatus as a type 2023-07-25 11:51:03 -04:00
Derrick Hammer 8f13c462d5
refactor: call weAreBooted at the end of doInit 2023-07-25 11:50:40 -04:00
Derrick Hammer 57ae8ced4a
refactor: on logout reset boot defer 2023-07-25 11:50:09 -04:00
Derrick Hammer 1d7be971df
feat: support for a waitForBoot command to call getBooted 2023-07-25 11:48:25 -04:00
Derrick Hammer 4074f2475d
feat: add booted defer back in 2023-07-25 11:47:34 -04:00
Derrick Hammer 9f246403a0
refactor: import DeferredPromise as an explicit type 2023-07-25 11:46:40 -04:00
Derrick Hammer bae5ad3d76
dep: update kernel hash 2023-07-20 12:45:30 -04:00
Derrick Hammer 3543e48c79
refactor: silently drop all moduleCall and response calls received in the bootloader 2023-07-20 12:45:14 -04:00
Derrick Hammer 0eb3209aa2
refactor: change bootup process to setup all modules when authStatus is emitted and loginComplete is true 2023-07-20 12:44:31 -04:00
Derrick Hammer 501b208ade
refactor: import all needed clients 2023-07-20 12:43:02 -04:00
Derrick Hammer 8b0c52a4a6
refactor: on setAuthStatus, conditionally get a diff of the object changed, and emit it on authStatus event 2023-07-20 12:42:38 -04:00
Derrick Hammer 7e60bea57c
refactor: create a global events object with emittery 2023-07-20 12:41:46 -04:00
Derrick Hammer 1898a50e3f
refactor: remove getBooted/weAreBooted 2023-07-20 12:40:32 -04:00
Derrick Hammer 4c47a6f06b
fix: ensure we dont add the contentProvider twice by comparing constructor names 2023-07-20 12:21:31 -04:00
Derrick Hammer 8b581ee98e
fix: remove origin check 2023-07-20 12:20:39 -04:00
Derrick Hammer 61fbaabf95
fix: no need to send the response to libkernel 2023-07-20 12:19:57 -04:00
Derrick Hammer b6a7b138eb
fix: set setActivePortalMasterKey on login when storage event is triggered 2023-07-20 03:16:23 -04:00
Derrick Hammer 20641e35d3
fix: if we don't have a key stored, abort 2023-07-20 02:46:12 -04:00
Derrick Hammer 2bd7235929
refactor: use getAuthStatus 2023-07-19 05:33:03 -04:00
Derrick Hammer a1e39ca7cf
refactor: if we are logged out, set setAuthStatusKnown to false since the kernel should reset 2023-07-19 05:31:54 -04:00
Derrick Hammer 56e0181c37
refactor: add getLoggedInDefer calls to kernelAuthStatus check 2023-07-19 05:24:19 -04:00
Derrick Hammer 2fd4a3be71
refactor: vars dont need to be exported 2023-07-19 05:18:32 -04:00
Derrick Hammer 7564b87f5a
chore: remove unneeded import 2023-07-19 05:18:16 -04:00
Derrick Hammer e19ff1e0a1
refactor: remove unneeded bridgeLoaded 2023-07-19 05:18:03 -04:00
Derrick Hammer f6081fa0d4
refactor: switch getBlockForBootloader to use a defer and be getAuthStatusDefer 2023-07-19 05:17:42 -04:00
Derrick Hammer 25a1c5c454
chore: clean up unneeded imports 2023-07-19 05:06:49 -04:00
Derrick Hammer cae343cdcc
refactor: remove unneeded bridgeLoaded listener 2023-07-19 05:06:08 -04:00
Derrick Hammer 210a9f12ce
refactor: consolidate all bootloader state to a map 2023-07-19 04:51:15 -04:00
Derrick Hammer 3e2d2bd261
fix: don't unhook the bootloader listener 2023-07-19 04:26:19 -04:00
Derrick Hammer 88f563d0d7
refactor: remove setBootloaderPortals 2023-07-18 17:18:58 -04:00
Derrick Hammer 4e05659a17
dep: update kernel hash 2023-07-18 17:15:48 -04:00
Derrick Hammer 825db849e2
refactor: switch to loading kernel as a Blob with script injection, and do not use in-memory variables to pass data. Additionally, fix reading of code with readableStreamToBlob 2023-07-18 17:12:34 -04:00
Derrick Hammer aefc9755cd
refactor: move handleIncomingMessage to its own file 2023-07-18 15:53:23 -04:00
Derrick Hammer 7d9c61e795
fix: log error and sendAuthUpdate if we fail to load the portals 2023-07-18 15:52:11 -04:00