Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(daemon): store endo bootstrap and default host formulas #2089

Merged
merged 27 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dd0d64d
feat(daemon): store endo formula upon initialization
kumavis Feb 17, 2024
e90e4fa
refactor(daemon): breakout makeDaemonCore from makeEndoBootstrap
kumavis Feb 18, 2024
89d9418
feat(daemon): must use incarnateHost to make a new host
kumavis Feb 18, 2024
1f694c7
feat(daemon): must use incarnateBundler to make the web-page-js bundler
kumavis Feb 18, 2024
d598be7
refactor(daemon): incarnate endo daemon dependencies before endo formula
kumavis Feb 18, 2024
f92d751
feat(daemon): add handle and provideControllerForFormulaIdentifierAnd…
kumavis Feb 18, 2024
c5a001c
refactor(daemon): first time init via incarnateEndoBootstrap
kumavis Feb 18, 2024
e82a7b7
feat(daemon): add incarnateGuest
kumavis Feb 18, 2024
073d46d
feat(daemon): add incarnateLeastAuthority
kumavis Feb 18, 2024
0bd689d
feat(daemon): add incarnateEval
kumavis Feb 19, 2024
628f903
feat(daemon): add incarnateReadableBlob
kumavis Feb 19, 2024
b391c25
feat(daemon): add incarnateUnconfined
kumavis Feb 19, 2024
41fa16b
feat(daemon): add incarnateBundle
kumavis Feb 19, 2024
bbcdc11
feat(daemon): add incarnateWebBundle
kumavis Feb 19, 2024
729d4aa
feat(daemon): add incarnateWorker
kumavis Feb 19, 2024
a108e7b
feat(daemon): add incarnatePetInspector
kumavis Feb 19, 2024
8cece42
feat(daemon): add incarnatePetStore
kumavis Feb 19, 2024
9fbbfb3
feat(daemon): add incarnateLookup
kumavis Feb 19, 2024
21b5750
fix(daemon): correct getWebPageBundlerFormula args
kumavis Feb 19, 2024
0c6daf5
feat(daemon): expose all incarnate methods on daemonCore
kumavis Feb 19, 2024
075d2be
refactor(daemon): DaemonicPersistencePowers provideRootNonce includes…
kumavis Feb 20, 2024
d643f0c
fix(daemon): rename EndoBootstrap type to FarEndoBootstrap
kumavis Feb 20, 2024
169c26c
doc(daemon): add doc for Handle and InternalHandle in types.d.ts
kumavis Feb 20, 2024
bdcb3ba
test(daemon): ensure guest cannot access HOST methods
kumavis Feb 20, 2024
1ae8717
doc(daemon): improve doc introducing makeDaemonCore internals
kumavis Feb 20, 2024
77b1e68
refactor(daemon): Update handle documentation and types
rekmarks Feb 20, 2024
e5d7082
fix(daemon): Restore 128-bit formula numbers for web bundles
rekmarks Feb 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/daemon/src/daemon-node-powers.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,12 @@ export const makeDaemonicPersistencePowers = (
const provideRootNonce = async () => {
const noncePath = filePowers.joinPath(locator.statePath, 'nonce');
let nonce = await filePowers.maybeReadFileText(noncePath);
const isNewlyCreated = nonce === undefined;
if (nonce === undefined) {
nonce = await cryptoPowers.randomHex512();
await filePowers.writeFileText(noncePath, `${nonce}\n`);
}
return nonce.trim();
return { rootNonce: nonce.trim(), isNewlyCreated };
};

const makeContentSha512Store = () => {
Expand Down
Loading
Loading