@tscircuit/fake-snippets 0.0.89 → 0.0.90
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.lock +12 -12
- package/dist/bundle.js +492 -372
- package/fake-snippets-api/routes/api/autocomplete/create_autocomplete.ts +134 -0
- package/package.json +5 -3
- package/src/App.tsx +47 -2
- package/src/components/CircuitJsonImportDialog.tsx +1 -1
- package/src/components/PackageBuildsPage/package-build-header.tsx +2 -12
- package/src/components/package-port/CodeAndPreview.tsx +1 -16
- package/src/components/package-port/CodeEditor.tsx +25 -6
- package/src/components/package-port/CodeEditorHeader.tsx +9 -4
- package/src/components/package-port/EditorNav.tsx +1 -14
- package/src/components/package-port/GlobalFindReplace.tsx +1 -1
- package/src/components/package-port/QuickOpen.tsx +1 -1
- package/src/hooks/use-code-completion-ai-api.ts +3 -3
- package/src/hooks/use-delete-package.ts +6 -2
- package/src/hooks/useFileManagement.ts +2 -2
- package/src/lib/utils/findTargetFile.ts +1 -1
- package/src/lib/utils/package-utils.ts +10 -0
- package/src/pages/dashboard.tsx +10 -0
- package/src/types/package.ts +4 -0
package/bun.lock
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@tscircuit/pcb-viewer": "^1.11.194",
|
|
59
59
|
"@tscircuit/prompt-benchmarks": "^0.0.28",
|
|
60
60
|
"@tscircuit/props": "^0.0.246",
|
|
61
|
-
"@tscircuit/runframe": "^0.0.
|
|
61
|
+
"@tscircuit/runframe": "^0.0.669",
|
|
62
62
|
"@tscircuit/schematic-viewer": "^2.0.21",
|
|
63
63
|
"@types/babel__standalone": "^7.1.7",
|
|
64
64
|
"@types/bun": "^1.1.10",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"@types/sharp": "^0.32.0",
|
|
75
75
|
"@typescript/ata": "^0.9.7",
|
|
76
76
|
"@typescript/vfs": "^1.6.0",
|
|
77
|
-
"@valtown/codemirror-codeium": "^1.1.1",
|
|
78
77
|
"@valtown/codemirror-ts": "^2.2.0",
|
|
79
78
|
"@vercel/analytics": "^1.4.1",
|
|
80
79
|
"@vitejs/plugin-react": "^4.3.1",
|
|
@@ -91,8 +90,10 @@
|
|
|
91
90
|
"clsx": "^2.1.1",
|
|
92
91
|
"cmdk": "^1.0.4",
|
|
93
92
|
"codemirror": "^6.0.1",
|
|
93
|
+
"codemirror-copilot": "^0.0.7",
|
|
94
94
|
"country-list": "^2.3.0",
|
|
95
95
|
"date-fns": "^4.1.0",
|
|
96
|
+
"dotenv": "^16.5.0",
|
|
96
97
|
"dsn-converter": "^0.0.60",
|
|
97
98
|
"easyeda": "^0.0.195",
|
|
98
99
|
"embla-carousel-react": "^8.3.0",
|
|
@@ -116,6 +117,7 @@
|
|
|
116
117
|
"md5": "^2.3.0",
|
|
117
118
|
"ms": "^2.1.3",
|
|
118
119
|
"next-themes": "^0.3.0",
|
|
120
|
+
"openai": "^5.6.0",
|
|
119
121
|
"postcss": "^8.4.47",
|
|
120
122
|
"posthog-js": "^1.203.2",
|
|
121
123
|
"prismjs": "^1.29.0",
|
|
@@ -265,8 +267,6 @@
|
|
|
265
267
|
|
|
266
268
|
"@brillout/libassert": ["@brillout/libassert@0.5.8", "", {}, "sha512-u/fu+jTRUdNdbLONGq1plCfh+k2/XjSbGVTfnF3rHnSPZd+ABWp0XinR5ifrFkyGOzMbzv8IiQ44lZ4U6ZGrGA=="],
|
|
267
269
|
|
|
268
|
-
"@bufbuild/protobuf": ["@bufbuild/protobuf@1.10.0", "", {}, "sha512-QDdVFLoN93Zjg36NoQPZfsVH9tZew7wKDKyV5qRdj8ntT4wQCOradQjRaTdwMhWUYsgKsvCINKKm87FdEk96Ag=="],
|
|
269
|
-
|
|
270
270
|
"@codemirror/autocomplete": ["@codemirror/autocomplete@6.18.6", "", { "dependencies": { "@codemirror/language": "^6.0.0", "@codemirror/state": "^6.0.0", "@codemirror/view": "^6.17.0", "@lezer/common": "^1.0.0" } }, "sha512-PHHBXFomUs5DF+9tCOM/UoW6XQ4R44lLNNhRaW9PKPTU0D7lIjRg3ElxaJnTwsl/oHiR93WSXDBrekhoUGCPtg=="],
|
|
271
271
|
|
|
272
272
|
"@codemirror/commands": ["@codemirror/commands@6.8.0", "", { "dependencies": { "@codemirror/language": "^6.0.0", "@codemirror/state": "^6.4.0", "@codemirror/view": "^6.27.0", "@lezer/common": "^1.1.0" } }, "sha512-q8VPEFaEP4ikSlt6ZxjB3zW72+7osfAYW9i8Zu943uqbKuz6utc1+F170hyLUCUltXORjQXRyYQNfkckzA/bPQ=="],
|
|
@@ -285,10 +285,6 @@
|
|
|
285
285
|
|
|
286
286
|
"@codemirror/view": ["@codemirror/view@6.36.4", "", { "dependencies": { "@codemirror/state": "^6.5.0", "style-mod": "^4.1.0", "w3c-keyname": "^2.2.4" } }, "sha512-ZQ0V5ovw/miKEXTvjgzRyjnrk9TwriUB1k4R5p7uNnHR9Hus+D1SXHGdJshijEzPFjU25xea/7nhIeSqYFKdbA=="],
|
|
287
287
|
|
|
288
|
-
"@connectrpc/connect": ["@connectrpc/connect@1.6.1", "", { "peerDependencies": { "@bufbuild/protobuf": "^1.10.0" } }, "sha512-KchMDNtU4CDTdkyf0qG7ugJ6qHTOR/aI7XebYn3OTCNagaDYWiZUVKgRgwH79yeMkpNgvEUaXSK7wKjaBK9b/Q=="],
|
|
289
|
-
|
|
290
|
-
"@connectrpc/connect-web": ["@connectrpc/connect-web@1.6.1", "", { "peerDependencies": { "@bufbuild/protobuf": "^1.10.0", "@connectrpc/connect": "1.6.1" } }, "sha512-GVfxQOmt3TtgTaKeXLS/EA2IHa3nHxwe2BCHT7X0Q/0hohM+nP5DDnIItGEjGrGdt3LTTqWqE4s70N4h+qIMlQ=="],
|
|
291
|
-
|
|
292
288
|
"@dimforge/rapier3d-compat": ["@dimforge/rapier3d-compat@0.12.0", "", {}, "sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow=="],
|
|
293
289
|
|
|
294
290
|
"@edge-runtime/format": ["@edge-runtime/format@2.2.1", "", {}, "sha512-JQTRVuiusQLNNLe2W9tnzBlV/GvSVcozLl4XZHk5swnRZ/v6jp8TqR8P7sqmJsQqblDZ3EztcWmLDbhRje/+8g=="],
|
|
@@ -741,7 +737,7 @@
|
|
|
741
737
|
|
|
742
738
|
"@tscircuit/props": ["@tscircuit/props@0.0.246", "", { "peerDependencies": { "@tscircuit/layout": "*", "circuit-json": "*", "react": "*", "zod": "*" } }, "sha512-HHY51vYBVPMW8K3yx3DiyFIpFM5mJRU7g8/e6ZXz0Uhu1HIhtV2Z1HQrA0uwGXQKVXwE1Zez4NBqr+vGI8fLcg=="],
|
|
743
739
|
|
|
744
|
-
"@tscircuit/runframe": ["@tscircuit/runframe@0.0.
|
|
740
|
+
"@tscircuit/runframe": ["@tscircuit/runframe@0.0.669", "", { "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", "clsx": "^2.1.1", "comlink": "^4.4.2", "cssnano": "^7.0.6", "marked": "^15.0.12", "posthog-js": "^1.253.4", "react-error-boundary": "^6.0.0" }, "peerDependencies": { "@tscircuit/props": "*", "circuit-to-svg": "*", "jscad-fiber": "*", "lucide-react": "*", "react-query": "*", "schematic-symbols": "*", "typescript": "^5.0.0" } }, "sha512-b69TX34iUg1HhwCCg1tfB/SGUGWhiHnW43ScLtSH9tVMRoFmGSzPn6iLzkbZE8JTSAPpf1Y5o6m0Efqu3xoasw=="],
|
|
745
741
|
|
|
746
742
|
"@tscircuit/schematic-autolayout": ["@tscircuit/schematic-autolayout@0.0.6", "", { "dependencies": { "@tscircuit/soup-util": "^0.0.38", "transformation-matrix": "^2.16.1" } }, "sha512-34cQxtlSylBKyHkzaMBCynaWJgN9c/mWm7cz63StTYIafKmfFs383K8Xoc4QX8HXCvVrHYl1aK15onZua9MxeA=="],
|
|
747
743
|
|
|
@@ -859,8 +855,6 @@
|
|
|
859
855
|
|
|
860
856
|
"@use-gesture/react": ["@use-gesture/react@10.3.1", "", { "dependencies": { "@use-gesture/core": "10.3.1" }, "peerDependencies": { "react": ">= 16.8.0" } }, "sha512-Yy19y6O2GJq8f7CHf7L0nxL8bf4PZCPaVOCgJrusOeFHY1LvHgYXnmnXg6N5iwAnbgbZCDjo60SiM6IPJi9C5g=="],
|
|
861
857
|
|
|
862
|
-
"@valtown/codemirror-codeium": ["@valtown/codemirror-codeium@1.1.1", "", { "dependencies": { "@bufbuild/protobuf": "^1.10.0", "@connectrpc/connect": "^1.4.0", "@connectrpc/connect-web": "^1.4.0" }, "peerDependencies": { "@codemirror/autocomplete": "^6", "@codemirror/state": "^6", "@codemirror/view": "^6" } }, "sha512-J/LcCiHAhqcqTFjxAFYtUIxSPXY1cdhANsJ8HWqb4wIRengcigBC0r8psZOaVdFHrky4p56q+sJL1Wnsd0Xsug=="],
|
|
863
|
-
|
|
864
858
|
"@valtown/codemirror-ts": ["@valtown/codemirror-ts@2.3.1", "", { "peerDependencies": { "@codemirror/autocomplete": "^6", "@codemirror/lint": "^6", "@codemirror/state": "^6", "@codemirror/view": "^6" } }, "sha512-v5XiI4WA+bUy0XDgkrqZksqBWgIUeyLZuC94Px/rhXBph8ASmVXaimlGDtt0vH/9t8aDdIZYdr59r9H3oKMFOg=="],
|
|
865
859
|
|
|
866
860
|
"@vercel/analytics": ["@vercel/analytics@1.5.0", "", { "peerDependencies": { "@remix-run/react": "^2", "@sveltejs/kit": "^1 || ^2", "next": ">= 13", "react": "^18 || ^19 || ^19.0.0-rc", "svelte": ">= 4", "vue": "^3", "vue-router": "^4" }, "optionalPeers": ["@remix-run/react", "@sveltejs/kit", "next", "react", "svelte", "vue", "vue-router"] }, "sha512-MYsBzfPki4gthY5HnYN7jgInhAZ7Ac1cYDoRWFomwGHWEX7odTEzbtg9kf/QSo7XEsEAqlQugA6gJ2WS2DEa3g=="],
|
|
@@ -1063,6 +1057,8 @@
|
|
|
1063
1057
|
|
|
1064
1058
|
"codemirror": ["codemirror@6.0.1", "", { "dependencies": { "@codemirror/autocomplete": "^6.0.0", "@codemirror/commands": "^6.0.0", "@codemirror/language": "^6.0.0", "@codemirror/lint": "^6.0.0", "@codemirror/search": "^6.0.0", "@codemirror/state": "^6.0.0", "@codemirror/view": "^6.0.0" } }, "sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg=="],
|
|
1065
1059
|
|
|
1060
|
+
"codemirror-copilot": ["codemirror-copilot@0.0.7", "", { "peerDependencies": { "@codemirror/state": "^6.2.0", "@codemirror/view": "^6.7.2" } }, "sha512-2nJlFXN8mEpzbAio/4vnxpZnItJodnvJ2iO4XvJKI4FrmB7cpZR1l9twn65m6RrCI8QF09ECeQ9baD4hn38axA=="],
|
|
1061
|
+
|
|
1066
1062
|
"color": ["color@4.2.3", "", { "dependencies": { "color-convert": "^2.0.1", "color-string": "^1.9.0" } }, "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A=="],
|
|
1067
1063
|
|
|
1068
1064
|
"color-convert": ["color-convert@2.0.1", "", { "dependencies": { "color-name": "~1.1.4" } }, "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ=="],
|
|
@@ -1213,7 +1209,7 @@
|
|
|
1213
1209
|
|
|
1214
1210
|
"domutils": ["domutils@3.2.2", "", { "dependencies": { "dom-serializer": "^2.0.0", "domelementtype": "^2.3.0", "domhandler": "^5.0.3" } }, "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw=="],
|
|
1215
1211
|
|
|
1216
|
-
"dotenv": ["dotenv@16.
|
|
1212
|
+
"dotenv": ["dotenv@16.5.0", "", {}, "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg=="],
|
|
1217
1213
|
|
|
1218
1214
|
"draco3d": ["draco3d@1.5.7", "", {}, "sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ=="],
|
|
1219
1215
|
|
|
@@ -1845,6 +1841,8 @@
|
|
|
1845
1841
|
|
|
1846
1842
|
"open": ["open@8.4.2", "", { "dependencies": { "define-lazy-prop": "^2.0.0", "is-docker": "^2.1.1", "is-wsl": "^2.2.0" } }, "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ=="],
|
|
1847
1843
|
|
|
1844
|
+
"openai": ["openai@5.6.0", "", { "peerDependencies": { "ws": "^8.18.0", "zod": "^3.23.8" }, "optionalPeers": ["ws", "zod"], "bin": { "openai": "bin/cli" } }, "sha512-jNH5z+hYAdOMZXyEt0yZ7246s+UZjg2AwFQqkAhZIPPjxNtHHO5mykOefau6FkOqj16aC94MOdJl/rZBcKj/cQ=="],
|
|
1845
|
+
|
|
1848
1846
|
"openapi3-ts": ["openapi3-ts@4.4.0", "", { "dependencies": { "yaml": "^2.5.0" } }, "sha512-9asTNB9IkKEzWMcHmVZE7Ts3kC9G7AFHfs8i7caD8HbI76gEjdkId4z/AkP83xdZsH7PLAnnbl47qZkXuxpArw=="],
|
|
1849
1847
|
|
|
1850
1848
|
"ora": ["ora@8.2.0", "", { "dependencies": { "chalk": "^5.3.0", "cli-cursor": "^5.0.0", "cli-spinners": "^2.9.2", "is-interactive": "^2.0.0", "is-unicode-supported": "^2.0.0", "log-symbols": "^6.0.0", "stdin-discarder": "^0.2.2", "string-width": "^7.2.0", "strip-ansi": "^7.1.0" } }, "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw=="],
|
|
@@ -2841,6 +2839,8 @@
|
|
|
2841
2839
|
|
|
2842
2840
|
"@tscircuit/prompt-benchmarks/@tscircuit/footprinter": ["@tscircuit/footprinter@0.0.102", "", { "dependencies": { "@tscircuit/mm": "^0.0.8", "zod": "^3.23.8" }, "peerDependencies": { "circuit-json": "*" } }, "sha512-cuc5iUU42uIa6FpQzMILSaa41TZnEGxvXDn3SoE/tnDFvUrJ+DPsCuiGu7PMnWjy+ip7XjCbghrVkFB4GK3kCg=="],
|
|
2843
2841
|
|
|
2842
|
+
"@tscircuit/prompt-benchmarks/dotenv": ["dotenv@16.4.7", "", {}, "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ=="],
|
|
2843
|
+
|
|
2844
2844
|
"@tscircuit/runframe/@radix-ui/react-dialog": ["@radix-ui/react-dialog@1.1.11", "", { "dependencies": { "@radix-ui/primitive": "1.1.2", "@radix-ui/react-compose-refs": "1.1.2", "@radix-ui/react-context": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.7", "@radix-ui/react-focus-guards": "1.1.2", "@radix-ui/react-focus-scope": "1.1.4", "@radix-ui/react-id": "1.1.1", "@radix-ui/react-portal": "1.1.6", "@radix-ui/react-presence": "1.1.4", "@radix-ui/react-primitive": "2.1.0", "@radix-ui/react-slot": "1.2.0", "@radix-ui/react-use-controllable-state": "1.2.2", "aria-hidden": "^1.2.4", "react-remove-scroll": "^2.6.3" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-yI7S1ipkP5/+99qhSI6nthfo/tR6bL6Zgxi/+1UO6qPa6UeM6nlafWcQ65vB4rU2XjgjMfMhI3k9Y5MztA62VQ=="],
|
|
2845
2845
|
|
|
2846
2846
|
"@tscircuit/runframe/posthog-js": ["posthog-js@1.254.0", "", { "dependencies": { "core-js": "^3.38.1", "fflate": "^0.4.8", "preact": "^10.19.3", "web-vitals": "^4.2.4" }, "peerDependencies": { "@rrweb/types": "2.0.0-alpha.17", "rrweb-snapshot": "2.0.0-alpha.17" }, "optionalPeers": ["@rrweb/types", "rrweb-snapshot"] }, "sha512-ISJEsYTIx8FJ0W78q2lfueSrrcuNKCjGfgk9LLuRhAfxRJ+N5ljyGreeEWVrkli2QJBAWje0qYUcregBcIs33A=="],
|