Skip to content

Commit 6f6e70b

Browse files
authored
Merge pull request #12 from nanoapi-io/feature/ai-filter
ai filter feature
2 parents bd4cb90 + 333da51 commit 6f6e70b

File tree

107 files changed

+3222
-1648
lines changed

Some content is hidden

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

107 files changed

+3222
-1648
lines changed

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ STRIPE_PRODUCT_PREMIUM_YEARLY_PRICE_ID=price_premium_yearly_price_id_here
1717
# Development/Testing Flags, for convenience
1818
SKIP_OTP=true
1919
EMAIL_USE_CONSOLE=true
20-
GCP_USE_FAKE_GCS_SERVER=true
20+
GCP_USE_FAKE_GCS_SERVER=true
21+
22+
# AI API keys
23+
GOOGLE_AI_API_KEY=your_api_key

.github/workflows/build-and-deploy-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Deno
1313
uses: denoland/setup-deno@v2
1414
with:
15-
deno-version: v2.3.5
15+
deno-version: v2.4.0
1616

1717
- name: Build Deno SPA
1818
run: |

.github/workflows/build-and-deploy-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Deno
2626
uses: denoland/setup-deno@v2
2727
with:
28-
deno-version: v2.3.5
28+
deno-version: v2.4.0
2929

3030
- name: Build Deno application
3131
run: |

.github/workflows/test-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Deno
1313
uses: denoland/setup-deno@v2
1414
with:
15-
deno-version: v2.3.5
15+
deno-version: v2.4.0
1616

1717
- name: Install dependencies
1818
run: |
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
services:
3030
postgres:
31-
image: postgres:17
31+
image: pgvector/pgvector:pg17
3232
env:
3333
POSTGRES_PASSWORD: password
3434
POSTGRES_USER: user
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up Deno
4848
uses: denoland/setup-deno@v2
4949
with:
50-
deno-version: v2.3.5
50+
deno-version: v2.4.0
5151

5252
- name: Install dependencies
5353
run: |

deno.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"workspace": [
33
"./packages/app",
4-
"./packages/core"
4+
"./packages/core",
5+
"./packages/shared"
56
],
67
"nodeModulesDir": "auto",
78
"lock": false,
@@ -12,7 +13,7 @@
1213
"build:app": "deno task --config ./packages/app/deno.json build",
1314
"build:core": "deno task --config ./packages/core/deno.json build",
1415
"test": "STRIPE_USE_MOCK=true GCP_USE_FAKE_GCS_SERVER=true deno test -A",
15-
"db:docker": "docker container rm stackcore-pg --force || true && docker run --name stackcore-pg -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=core -p 5432:5432 -d postgres:17",
16+
"db:docker": "docker container rm stackcore-pg --force || true && docker run --name stackcore-pg -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=core -p 5432:5432 -d pgvector/pgvector:pg17",
1617
"db:migrate": "deno task --config ./packages/core/deno.json migrate -A",
1718
"stripe:create-products": "deno run -A --env-file=.env ./packages/core/src/stripe/scripts/createProducts.ts",
1819
"stripe:cli": "docker run --rm -it --env-file=.env stripe/stripe-cli:latest",

packages/app/deno.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
"@radix-ui/react-slot": "npm:@radix-ui/react-slot@^1.2.3",
1616
"@radix-ui/react-tabs": "npm:@radix-ui/react-tabs@^1.1.12",
1717
"@radix-ui/react-tooltip": "npm:@radix-ui/react-tooltip@^1.2.7",
18-
"@stackcore/core/responses": "../core/src/api/responseType.ts",
19-
"@stackcore/core/manifest": "../core/src/manifest/types.ts",
2018
"@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.4",
19+
"@std/path": "jsr:@std/path@^1.1.1",
2120
"@tailwindcss/vite": "npm:@tailwindcss/vite@^4.1.8",
2221
"@tanstack/react-table": "npm:@tanstack/react-table@^8.21.3",
2322
"@types/cytoscape-fcose": "npm:@types/cytoscape-fcose@^2.2.4",

packages/app/src/components/DependencyVisualizer/DependencyVisualizer.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useState } from "react";
22
import { useSearchParams } from "react-router";
33
import type {
4-
AuditManifest,
5-
DependencyManifest,
6-
} from "@stackcore/core/manifest";
4+
auditManifestTypes,
5+
dependencyManifestTypes,
6+
} from "@stackcore/shared";
77
import { SidebarProvider, SidebarTrigger } from "../shadcn/Sidebar.tsx";
88
import { FileExplorerSidebar } from "./components/FileExplorerSidebar.tsx";
99
import BreadcrumbNav from "./components/BreadcrumNav.tsx";
@@ -13,8 +13,8 @@ import SymbolVisualizer from "./visualizers/SymbolVisualizer.tsx";
1313

1414
export interface VisualizerContext {
1515
manifestId: number;
16-
dependencyManifest: DependencyManifest;
17-
auditManifest: AuditManifest;
16+
dependencyManifest: dependencyManifestTypes.DependencyManifest;
17+
auditManifest: auditManifestTypes.AuditManifest;
1818
highlightedCytoscapeRef: {
1919
filePath: string;
2020
symbolId: string | undefined;
@@ -23,11 +23,10 @@ export interface VisualizerContext {
2323

2424
export default function DependencyVisualizer(props: {
2525
manifestId: number;
26-
dependencyManifest: DependencyManifest;
27-
auditManifest: AuditManifest;
26+
dependencyManifest: dependencyManifestTypes.DependencyManifest;
27+
auditManifest: auditManifestTypes.AuditManifest;
2828
}) {
2929
const [searchParams] = useSearchParams();
30-
3130
const [highlightedCytoscapeRef, setHighlightedCytoscapeRef] = useState<
3231
{
3332
filePath: string;
@@ -45,6 +44,7 @@ export default function DependencyVisualizer(props: {
4544
className="grow flex min-h-0"
4645
>
4746
<FileExplorerSidebar
47+
dependencyManifestId={props.manifestId}
4848
dependencyManifest={props.dependencyManifest}
4949
auditManifest={props.auditManifest}
5050
onHighlightInCytoscape={(node) => {

0 commit comments

Comments
 (0)