Skip to content

Commit 2e44bf4

Browse files
committed
start adding assembly
1 parent c188498 commit 2e44bf4

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

.cursor/rules/next.mdc

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
description: next app
33
globs: next/**
44
---
5+
- You handle every single error by pattern matching Option/Result types. No exception goes uncaught.
6+
- You carefully define React error boundaries with helpful user messages.
57
- We use a [next.config.ts](mdc:next/next.config.ts) file
68
- When running commands, never "run the app to verify" e.g. `bun run dev`. That is my job.
79
- We use `bun`. If you're installing a package, use `bun add <package>` rather than edit [package.json](mdc:next/package.json)
@@ -11,7 +13,6 @@ globs: next/**
1113
- Always use module path imports, e.g. "@/components/ui/button", "@/hooks/use-toast", etc.
1214
- Always use Lucide for icons
1315
- Always use Tailwind for styling, rather than inline styles.
14-
- Always use `bun:test` for unit tests
1516
- Always use shadcn for UI components instead of implementing your own
1617
- Always place server actions inside the same file – inlining the server action is better. But note what you are doing and suggest extracting the action for future reuse if it seems appropriate.
1718
- When accessing environment variables, use from [env.ts](mdc:next/lib/env.ts) getRequiredEnv.

next/app/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import MainView from "@/components/main-view";
1+
import DeepgramView from "@/components/deepgram-view";
22

33
const Home = () => {
44
return (
55
<>
66
<div className="h-full overflow-hidden">
77
<main className="mx-auto h-full">
8-
<MainView />
8+
<DeepgramView />
99
</main>
1010
</div>
1111
</>

next/bun.lock

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@upstash/redis": "^1.34.4",
2020
"@vercel/analytics": "^1.5.0",
2121
"ai": "^4.1.41",
22+
"assemblyai": "^4.9.0",
2223
"class-variance-authority": "^0.7.1",
2324
"classnames": "^2.5.1",
2425
"clsx": "^2.1.1",
@@ -476,6 +477,8 @@
476477

477478
"arraybuffer.prototype.slice": ["arraybuffer.prototype.slice@1.0.4", "", { "dependencies": { "array-buffer-byte-length": "^1.0.1", "call-bind": "^1.0.8", "define-properties": "^1.2.1", "es-abstract": "^1.23.5", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "is-array-buffer": "^3.0.4" } }, "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ=="],
478479

480+
"assemblyai": ["assemblyai@4.9.0", "", { "dependencies": { "ws": "^8.18.0" } }, "sha512-YUvkVIdMKvMLNQ07zWNma9YWvdSoGZy9RuJ/fB5uceAgDnTL2uo8sAlytkt52hD8DJ61xmZkfO9jkjXl3sZTiw=="],
481+
479482
"ast-types-flow": ["ast-types-flow@0.0.8", "", {}, "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ=="],
480483

481484
"asynckit": ["asynckit@0.4.0", "", {}, "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="],

next/components/main-view.tsx next/components/deepgram-view.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Initial spike implementation with Deepgram, live transcription.
3+
* Quality is a bit low.
4+
*/
15
"use client";
26

37
import { useEffect, useRef, useState, type JSX } from "react";
@@ -19,7 +23,7 @@ import { CloningView } from "./cloning-view";
1923
import { LanguageSelect } from "./language-select";
2024
import { FragmentComponent, type Fragment } from "./fragment";
2125

22-
const MainView: () => JSX.Element = () => {
26+
const DeepgramView: () => JSX.Element = () => {
2327
const [inputText, setInputText] = useState("");
2428
const [fragments, setFragments] = useState<Fragment[]>([]);
2529
const [isCollecting, setIsCollecting] = useState(true);
@@ -330,4 +334,4 @@ const MainView: () => JSX.Element = () => {
330334
);
331335
};
332336

333-
export default MainView;
337+
export default DeepgramView;

next/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@upstash/redis": "^1.34.4",
3232
"@vercel/analytics": "^1.5.0",
3333
"ai": "^4.1.41",
34+
"assemblyai": "^4.9.0",
3435
"class-variance-authority": "^0.7.1",
3536
"classnames": "^2.5.1",
3637
"clsx": "^2.1.1",

0 commit comments

Comments
 (0)