Skip to content

Commit

Permalink
Dark mode, colors, prep for loading spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther committed Apr 22, 2024
1 parent 96e51f1 commit 173254f
Show file tree
Hide file tree
Showing 16 changed files with 1,602 additions and 444 deletions.
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
"devDependencies": {
"@types/mime-types": "^2.1.4",
"@types/mustache": "^4.2.5",
"vitest": "^0.34.6"
"vitest": "^1.5.0"
}
}
3 changes: 2 additions & 1 deletion core/src/engine/noop.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { Content } from "../content/content.js";

export const DEFAULT_MODEL = "NOOP";
const NOOP_TIMEOUT = 750;
export const name = "noop";
export async function format(c: Content[]): Promise<void> {}
export async function generate<D extends {} = {}>(
c: Content,
_: unknown
): Promise<{ debug: D; message: string }> {
await new Promise<void>((resolve) => {
setTimeout(() => resolve(), 750);
setTimeout(() => resolve(), NOOP_TIMEOUT);
});
return {
message:
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PipelineSettings } from "../ailly.js";
import type { Content, View } from "../content/content.js";
import type { Engine } from "../engine/index.js";
import { RAG } from "./rag";
import { RAG } from "./rag.js";

export interface PluginBuilder {
(engine: Engine, settings: PipelineSettings): Promise<Plugin>;
Expand Down
Loading

0 comments on commit 173254f

Please sign in to comment.