@tscircuit/fake-snippets 0.0.86 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun-tests/fake-snippets-api/routes/ai_reviews/create.test.ts +2 -2
- package/bun-tests/fake-snippets-api/routes/ai_reviews/get.test.ts +1 -1
- package/bun-tests/fake-snippets-api/routes/ai_reviews/list.test.ts +2 -2
- package/bun-tests/fake-snippets-api/routes/ai_reviews/process_review.test.ts +1 -1
- package/bun-tests/fake-snippets-api/routes/package_releases/get.test.ts +2 -2
- package/bun.lock +4 -4
- package/dist/bundle.js +5 -5
- package/fake-snippets-api/routes/api/ai_reviews/create.ts +6 -4
- package/fake-snippets-api/routes/api/package_releases/create.ts +1 -1
- package/package.json +4 -6
- package/src/components/Header.tsx +5 -1
- package/src/components/HeaderLogin.tsx +1 -1
- package/src/components/PrefetchPageLink.tsx +66 -15
- package/src/components/SearchComponent.tsx +11 -1
- package/src/components/ViewPackagePage/components/important-files-view.tsx +7 -5
- package/src/components/ViewPackagePage/components/main-content-header.tsx +1 -1
- package/src/components/ViewPackagePage/components/repo-page-content.tsx +14 -4
- package/src/components/ViewPackagePage/utils/is-package-file-important.ts +18 -5
- package/src/hooks/use-request-ai-review-mutation.ts +2 -2
- package/src/lib/populate-query-cache-with-ssr-data.ts +31 -37
- package/src/pages/user-profile.tsx +1 -1
|
@@ -4,8 +4,8 @@ import { test, expect } from "bun:test"
|
|
|
4
4
|
test("create ai review", async () => {
|
|
5
5
|
const { axios, seed, db } = await getTestServer()
|
|
6
6
|
|
|
7
|
-
const response = await axios.post("/api/ai_reviews/create",
|
|
8
|
-
|
|
7
|
+
const response = await axios.post("/api/ai_reviews/create", {
|
|
8
|
+
package_release_id: seed.packageRelease.package_release_id,
|
|
9
9
|
})
|
|
10
10
|
|
|
11
11
|
expect(response.status).toBe(200)
|
|
@@ -4,7 +4,7 @@ import { test, expect } from "bun:test"
|
|
|
4
4
|
test("get ai review", async () => {
|
|
5
5
|
const { axios } = await getTestServer()
|
|
6
6
|
|
|
7
|
-
const createRes = await axios.post("/api/ai_reviews/create")
|
|
7
|
+
const createRes = await axios.post("/api/ai_reviews/create", {})
|
|
8
8
|
const id = createRes.data.ai_review.ai_review_id
|
|
9
9
|
|
|
10
10
|
const getRes = await axios.get("/api/ai_reviews/get", {
|
|
@@ -4,8 +4,8 @@ import { test, expect } from "bun:test"
|
|
|
4
4
|
test("list ai reviews", async () => {
|
|
5
5
|
const { axios } = await getTestServer()
|
|
6
6
|
|
|
7
|
-
await axios.post("/api/ai_reviews/create")
|
|
8
|
-
await axios.post("/api/ai_reviews/create")
|
|
7
|
+
await axios.post("/api/ai_reviews/create", {})
|
|
8
|
+
await axios.post("/api/ai_reviews/create", {})
|
|
9
9
|
|
|
10
10
|
const res = await axios.get("/api/ai_reviews/list")
|
|
11
11
|
|
|
@@ -4,7 +4,7 @@ import { test, expect } from "bun:test"
|
|
|
4
4
|
test("process ai review", async () => {
|
|
5
5
|
const { axios } = await getTestServer()
|
|
6
6
|
|
|
7
|
-
const createRes = await axios.post("/api/ai_reviews/create")
|
|
7
|
+
const createRes = await axios.post("/api/ai_reviews/create", {})
|
|
8
8
|
const id = createRes.data.ai_review.ai_review_id
|
|
9
9
|
|
|
10
10
|
const processRes = await axios.post("/api/_fake/ai_reviews/process_review", {
|
|
@@ -158,8 +158,8 @@ test("POST /api/package_releases/get?include_logs=true - should return include_l
|
|
|
158
158
|
test("POST /api/package_releases/get?include_ai_review=true returns latest review", async () => {
|
|
159
159
|
const { axios, seed } = await getTestServer()
|
|
160
160
|
|
|
161
|
-
const createRes = await axios.post("/api/ai_reviews/create",
|
|
162
|
-
|
|
161
|
+
const createRes = await axios.post("/api/ai_reviews/create", {
|
|
162
|
+
package_release_id: seed.packageRelease.package_release_id,
|
|
163
163
|
})
|
|
164
164
|
const aiReviewId = createRes.data.ai_review.ai_review_id
|
|
165
165
|
|
package/bun.lock
CHANGED
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@tscircuit/core": "^0.0.433",
|
|
119
119
|
"@tscircuit/eval": "^0.0.227",
|
|
120
120
|
"@tscircuit/prompt-benchmarks": "^0.0.28",
|
|
121
|
-
"@tscircuit/runframe": "^0.0.
|
|
121
|
+
"@tscircuit/runframe": "^0.0.582",
|
|
122
122
|
"@types/babel__standalone": "^7.1.7",
|
|
123
123
|
"@types/bun": "^1.1.10",
|
|
124
124
|
"@types/country-list": "^2.1.4",
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
|
|
735
735
|
"@tscircuit/props": ["@tscircuit/props@0.0.194", "", { "peerDependencies": { "@tscircuit/layout": "*", "circuit-json": "*", "react": "*", "zod": "*" } }, "sha512-dJCKx97nyQXipW/T7zMv8TCxpu2Qn0x0aiJqUikwQz9w4eFiw6wT9rDvIr19URY2u9IWz0KccK8N//QcdE9Xeg=="],
|
|
736
736
|
|
|
737
|
-
"@tscircuit/runframe": ["@tscircuit/runframe@0.0.
|
|
737
|
+
"@tscircuit/runframe": ["@tscircuit/runframe@0.0.582", "", { "dependencies": { "@radix-ui/react-alert-dialog": "^1.1.6", "@radix-ui/react-checkbox": "^1.1.4", "@radix-ui/react-dialog": "^1.1.11", "@radix-ui/react-dropdown-menu": "^2.1.4", "@radix-ui/react-icons": "^1.3.2", "@radix-ui/react-progress": "^1.1.2", "@radix-ui/react-slot": "^1.1.1", "@radix-ui/react-tabs": "^1.1.2", "@tscircuit/3d-viewer": "^0.0.269", "@tscircuit/assembly-viewer": "^0.0.1", "@tscircuit/core": "^0.0.449", "@tscircuit/create-snippet-url": "^0.0.8", "@tscircuit/file-server": "^0.0.24", "@tscircuit/footprinter": "^0.0.179", "@tscircuit/pcb-viewer": "^1.11.177", "@tscircuit/props": "^0.0.222", "@tscircuit/schematic-viewer": "2.0.21", "circuit-to-svg": "^0.0.152", "clsx": "^2.1.1", "comlink": "^4.4.2", "cssnano": "^7.0.6", "jscad-fiber": "^0.0.77", "lucide-react": "^0.488.0", "react-error-boundary": "^6.0.0", "react-query": "^3.39.3", "schematic-symbols": "^0.0.139", "tailwind-merge": "^2.6.0", "tailwindcss-animate": "^1.0.7" }, "peerDependencies": { "typescript": "^5.0.0" } }, "sha512-mMf2j0XsmJkxbhwXR8PWb9rXS54z4Vb9sx7mahSmDAf7TrEDOr3unqKXBpwdz0819N1nmpybS4lkLXko5VgKSQ=="],
|
|
738
738
|
|
|
739
739
|
"@tscircuit/schematic-autolayout": ["@tscircuit/schematic-autolayout@0.0.6", "", { "dependencies": { "@tscircuit/soup-util": "^0.0.38", "transformation-matrix": "^2.16.1" } }, "sha512-34cQxtlSylBKyHkzaMBCynaWJgN9c/mWm7cz63StTYIafKmfFs383K8Xoc4QX8HXCvVrHYl1aK15onZua9MxeA=="],
|
|
740
740
|
|
|
@@ -2832,9 +2832,9 @@
|
|
|
2832
2832
|
|
|
2833
2833
|
"@tscircuit/runframe/@tscircuit/core": ["@tscircuit/core@0.0.449", "", { "dependencies": { "@lume/kiwi": "^0.4.3", "css-select": "^5.1.0", "format-si-unit": "^0.0.3", "nanoid": "^5.0.7", "performance-now": "^2.1.0", "react-reconciler": "^0.31.0", "react-reconciler-18": "npm:react-reconciler@0.29.2", "transformation-matrix": "^2.16.1", "zod": "^3.23.8" }, "peerDependencies": { "@tscircuit/capacity-autorouter": "*", "@tscircuit/checks": "*", "@tscircuit/circuit-json-util": "*", "@tscircuit/footprinter": "*", "@tscircuit/infgrid-ijump-astar": "*", "@tscircuit/math-utils": "*", "@tscircuit/props": "*", "@tscircuit/schematic-autolayout": "*", "@tscircuit/schematic-match-adapt": "*", "circuit-json": "*", "circuit-json-to-connectivity-map": "*", "schematic-symbols": "*", "typescript": "^5.0.0" } }, "sha512-Gwh0zHmmYWr9bJaBCYaymOiOz/nm0fJ3CMDIKZAbeweO/O4wdrw0SLoJc6Ff8MjZKlh+ozLBF0iIVyiwV/jvsw=="],
|
|
2834
2834
|
|
|
2835
|
-
"@tscircuit/runframe/@tscircuit/footprinter": ["@tscircuit/footprinter@0.0.
|
|
2835
|
+
"@tscircuit/runframe/@tscircuit/footprinter": ["@tscircuit/footprinter@0.0.179", "", { "dependencies": { "@tscircuit/mm": "^0.0.8", "zod": "^3.23.8" }, "peerDependencies": { "circuit-json": "*" } }, "sha512-JnJmT7TV74Zf/o9gKArzFQ1yU9eOU0bLpucXF1R8+ncDyBT5bjUjURYw+6UnJwpb6g384Wz32yLoQvMPby4I9w=="],
|
|
2836
2836
|
|
|
2837
|
-
"@tscircuit/runframe/@tscircuit/props": ["@tscircuit/props@0.0.
|
|
2837
|
+
"@tscircuit/runframe/@tscircuit/props": ["@tscircuit/props@0.0.222", "", { "peerDependencies": { "@tscircuit/layout": "*", "circuit-json": "*", "react": "*", "zod": "*" } }, "sha512-48h85KVeGYAloGSqGuu7ZBzfRhhEi98KdxoBCTt/8Pj0sI1/ExcwGgShltxFEJA7+G0i7muvEdGTJpCCOZwXqA=="],
|
|
2838
2838
|
|
|
2839
2839
|
"@tscircuit/runframe/jscad-fiber": ["jscad-fiber@0.0.77", "", { "dependencies": { "color": "^4.2.3", "lucide-react": "^0.456.0", "react-code-blocks": "^0.1.6", "react-reconciler": "^0.29.2" }, "peerDependencies": { "@jscad/modeling": "*", "@react-three/fiber": "*", "react": "*", "three": "*" } }, "sha512-ugLAqTMr41jHK9cXRVkMKOPrUDMGc8gN3G69XG1zk62xpRMmEv0WaS1nnAgj5r9FZmK9FeRWKIR03zN+yq7IZQ=="],
|
|
2840
2840
|
|