Skip to content

Commit 5852c90

Browse files
committed
fix: Remove schema.sql and packages/cli (not part of migration)
1 parent 98271fe commit 5852c90

File tree

155 files changed

+237
-17178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+237
-17178
lines changed

packages/api/src/test.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import Client from "./client.node";
21
import { connectToPostgres } from "@blink.so/database/postgres";
32
import Querier from "@blink.so/database/querier";
43
import type { User } from "@blink.so/database/schema";
5-
import {
6-
createPostgresURL,
7-
createTestUser,
8-
} from "@blink.so/database/test";
9-
import { encode } from "next-auth/jwt";
10-
import server, { type Bindings, type Email } from "./server";
4+
import { createPostgresURL, createTestUser } from "@blink.so/database/test";
115
import type { AgentStore } from "blink";
6+
import { encode } from "next-auth/jwt";
7+
import Client from "./client.node";
8+
import server, { type Bindings } from "./server";
129

1310
export interface PartialBindings
1411
extends Partial<

packages/billing/src/ingest-usage-event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// OSS stub: Billing removed
2-
import type { Money } from "./money";
32
import type { EnvLike } from "./metronome";
3+
import type { Money } from "./money";
44

55
export interface UsageEvent {
66
organizationId: string;

packages/billing/src/money.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// OSS stub: Billing removed
22
export class Money {
33
constructor(public readonly amount: string) {}
4-
4+
55
static fromString(value: string): Money {
66
return new Money(value);
77
}
8-
8+
99
static from(value: string): Money {
1010
return new Money(value);
1111
}
12-
12+
1313
toString(): string {
1414
return this.amount;
1515
}
16-
16+
1717
add(other: Money): Money {
1818
const a = parseFloat(this.amount);
1919
const b = parseFloat(other.amount);

packages/blink/src/agent/agent.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { expect, test, describe, mock, beforeEach, afterEach } from "bun:test";
1+
import { createServerAdapter } from "@whatwg-node/server";
22
import type { UIMessage } from "ai";
3+
import { afterEach, beforeEach, describe, expect, mock, test } from "bun:test";
34
import * as http from "http";
4-
import { createServerAdapter } from "@whatwg-node/server";
55
import { api as controlApi } from "../control";
6-
import { Agent, waitUntil, api } from "./agent";
6+
import { Agent, api, waitUntil } from "./agent";
77
import type {
88
AgentChat,
99
AgentStore,
10+
Chat,
1011
ID,
1112
NewMessage,
1213
SendOptions,
1314
UpsertedChat,
14-
Chat,
1515
} from "./types";
1616

1717
// Create a mock API server similar to createLocalServer

packages/blink/src/agent/client/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ import type { EventSourceMessage } from "eventsource-parser/stream";
88
import { EventSourceParserStream } from "eventsource-parser/stream";
99
import { hc } from "hono/client";
1010
import type { api } from "../agent";
11+
import { APIServerURLEnvironmentVariable } from "../constants";
1112
import { convertResponseToUIMessageStream } from "../internal/convert-response-to-ui-message-stream";
1213
import type { ID } from "../types";
1314
import type { UIOptions, UIOptionsSchema } from "../ui";
14-
import { APIServerURLEnvironmentVariable } from "../constants";
15-
import { RWLock } from "../../local/rw-lock";
1615

1716
export { APIServerURLEnvironmentVariable };
1817

packages/blink/src/agent/index.browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export * from "./types";
21
export * from "./tools";
2+
export * from "./types";
33
export * from "./ui";
44

55
export type StreamResponseFormat =

packages/blink/src/agent/internal/convert-response-to-ui-message-stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createAnthropic } from "@ai-sdk/anthropic";
22
import { createGoogleGenerativeAI } from "@ai-sdk/google";
33
import { createOpenAI } from "@ai-sdk/openai";
44
import { createXai } from "@ai-sdk/xai";
5-
import { streamText, type UIMessageChunk, type LanguageModel } from "ai";
5+
import { streamText, type LanguageModel, type UIMessageChunk } from "ai";
66
import { EventSourceParserStream } from "eventsource-parser/stream";
77
import { StreamResponseFormatHeader } from "../index.browser";
88

packages/blink/src/build/esbuild.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import type * as esbuild from "esbuild";
2-
import type { BuildContext } from "./types";
2+
import { mkdir, rm, writeFile } from "fs/promises";
33
import { builtinModules } from "module";
4-
import { mkdir, writeFile } from "fs/promises";
54
import path from "path";
6-
import { rm } from "fs/promises";
75
import { aiTelemetryPlugin } from "./plugins/ai-telemetry";
6+
import type { BuildContext } from "./types";
87

98
// Global esbuild instance that can be set by consumers (e.g., desktop app)
109
let _esbuildInstance: typeof esbuild | undefined;

packages/blink/src/build/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import path from "path";
21
import { existsSync } from "fs";
3-
import type { BuildContext } from "./types";
2+
import path from "path";
43
import { buildWithEsbuild } from "./esbuild";
4+
import type { BuildContext } from "./types";
55

66
export * from "./types";
77

packages/blink/src/build/plugins/ai-telemetry.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { describe, test, expect, mock } from "bun:test";
1+
import { describe, expect, test } from "bun:test";
22
import * as esbuild from "esbuild";
3-
import { aiTelemetryPlugin } from "./ai-telemetry";
4-
import { readFile, rm, writeFile, mkdir } from "fs/promises";
5-
import path from "path";
3+
import { mkdir, readFile, rm, writeFile } from "fs/promises";
64
import { tmpdir } from "os";
5+
import path from "path";
6+
import { aiTelemetryPlugin } from "./ai-telemetry";
77

88
describe("aiTelemetryPlugin", () => {
99
const createTestBuild = async (

0 commit comments

Comments
 (0)