WIP: CLI running of plugs

This commit is contained in:
Zef Hemel
2023-08-04 18:56:55 +02:00
parent de3e385017
commit 3464af0252
35 changed files with 738 additions and 136 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ import { EventEmitter } from "../plugos/event.ts";
import { plugPrefix } from "../common/spaces/constants.ts";
import { safeRun } from "../common/util.ts";
import { AttachmentMeta, PageMeta } from "./types.ts";
import { DexieKVStore } from "../plugos/lib/kv_store.dexie.ts";
import { throttle } from "../common/async_util.ts";
import { KVStore } from "../plugos/lib/kv_store.ts";
export type SpaceEvents = {
pageCreated: (meta: PageMeta) => void;
@@ -46,7 +46,7 @@ export class Space extends EventEmitter<SpaceEvents> {
constructor(
readonly spacePrimitives: SpacePrimitives,
private kvStore: DexieKVStore,
private kvStore: KVStore,
) {
super();
this.kvStore.get("imageHeightCache").then((cache) => {