Spaces:
Runtime error
Runtime error
Thomas G. Lopes commited on
Commit ·
aac02fe
1
Parent(s): 6a8491a
always have default project
Browse filesFiles changed (11)
- package.json+2
- pnpm-lock.yaml+136
- src/app.css+14-4
- src/app.d.ts+2
- src/lib/components/Icons/IconExternal.svelteDeleted-7
- src/lib/components/InferencePlayground/InferencePlayground.svelte+4-12
- src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte+5-5
- src/lib/components/InferencePlayground/InferencePlaygroundProjectSelect.svelte+52-38
- src/lib/stores/session.ts+64-29
- src/lib/types.ts+6-1
- vite.config.ts+5
12 unmodified lines13141516171819 unmodified lines38394041424312 unmodified lines"format": "prettier . --write ."},"devDependencies": {"@ryoppippi/unplugin-typia": "^1.0.0","@samchon/openapi": "^3.0.0","@sveltejs/adapter-auto": "^3.2.2",19 unmodified lines"ts-patch": "^3.3.0","tslib": "^2.4.1","typescript": "^5.8.2","vite": "^5.0.3"},"type": "module",12 unmodified lines1314151617181919 unmodified lines3940414243444512 unmodified lines"format": "prettier . --write ."},"devDependencies": {"@iconify-json/carbon": "^1.2.8","@ryoppippi/unplugin-typia": "^1.0.0","@samchon/openapi": "^3.0.0","@sveltejs/adapter-auto": "^3.2.2",19 unmodified lines"ts-patch": "^3.3.0","tslib": "^2.4.1","typescript": "^5.8.2","unplugin-icons": "^22.1.0","vite": "^5.0.3"},"type": "module",
26 unmodified lines27282930313269 unmodified lines1021031041051061078 unmodified lines116117118119120121336 unmodified lines458459460461462463511 unmodified lines975976977978979980169 unmodified lines11501151115211531154115587 unmodified lines124312441245124612471248140 unmodified lines13891390139113921393139470 unmodified lines146514661467146814691470177 unmodified lines164816491650165116521653336 unmodified lines19901991199219931994199562 unmodified lines2058205920602061206220632064206520662067132 unmodified lines220022012202220322042205196 unmodified lines240224032404240524062407522 unmodified lines293029312932293329342935220 unmodified lines31563157315831593160316195 unmodified lines325732583259326032613262121 unmodified lines33843385338633873388338949 unmodified lines343934403441344234433444160 unmodified lines360536063607360836093610272 unmodified lines38833884388538863887388855 unmodified lines3944394539463947394839493950395139523953395426 unmodified linesspecifier: ^8.0.0version: 8.0.0(@samchon/openapi@3.0.0)(typescript@5.8.2)devDependencies:'@ryoppippi/unplugin-typia':specifier: ^1.0.0version: 1.2.0(@samchon/openapi@3.0.0)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.34.9)(yaml@2.7.0)69 unmodified linestypescript:specifier: ^5.8.2version: 5.8.2vite:specifier: ^5.0.3version: 5.4.14(lightningcss@1.29.1)8 unmodified linesresolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}engines: {node: '>=6.0.0'}'@esbuild/aix-ppc64@0.21.5':resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}engines: {node: '>=12'}336 unmodified linesresolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==}deprecated: Use @eslint/object-schema instead'@internationalized/date@3.7.0':resolution: {integrity: sha512-VJ5WS3fcVx0bejE/YHfbDKR/yawZgKqn/if+oEeLqNwBtPzVB06olkfcnojTmEMX+gTpH+FlQ69SHNitJ8/erQ==}511 unmodified linesconfbox@0.1.8:resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}consola@3.4.0:resolution: {integrity: sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==}engines: {node: ^14.18.0 || >=16.10.0}169 unmodified linesresolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}external-editor@3.1.0:resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==}engines: {node: '>=4'}87 unmodified linesresolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==}engines: {node: '>=8'}globby@11.1.0:resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}engines: {node: '>=10'}140 unmodified linesknown-css-properties@0.35.0:resolution: {integrity: sha512-a/RAk2BfKk+WFGhhOCAYqSiFLc34k8Mt/6NWRI4joER0EYUzXIcFivjjnoD3+XU1DggLn/tZc3DOAgke7l8a4A==}levn@0.4.1:resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}engines: {node: '>= 0.8.0'}70 unmodified linesresolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}engines: {node: '>=14'}locate-character@3.0.0:resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==}177 unmodified linespkg-types@1.3.1:resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}postcss-load-config@3.1.4:resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==}engines: {node: '>= 10'}336 unmodified linesthrough@2.3.8:resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}tmp@0.0.33:resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==}engines: {node: '>=0.6.0'}62 unmodified linesufo@1.5.4:resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}unplugin@1.16.1:resolution: {integrity: sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==}engines: {node: '>=14.0.0'}uri-js@4.4.1:resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}132 unmodified lines'@jridgewell/gen-mapping': 0.3.8'@jridgewell/trace-mapping': 0.3.25'@esbuild/aix-ppc64@0.21.5':optional: true196 unmodified lines'@humanwhocodes/object-schema@2.0.3': {}'@internationalized/date@3.7.0':dependencies:'@swc/helpers': 0.5.15522 unmodified linesconfbox@0.1.8: {}consola@3.4.0: {}cookie@0.6.0: {}220 unmodified linesesutils@2.0.3: {}external-editor@3.1.0:dependencies:chardet: 0.7.095 unmodified linesdependencies:type-fest: 0.20.2globby@11.1.0:dependencies:array-union: 2.1.0121 unmodified linesknown-css-properties@0.35.0: {}levn@0.4.1:dependencies:prelude-ls: 1.2.149 unmodified lineslilconfig@3.1.3:optional: truelocate-character@3.0.0: {}locate-path@6.0.0:160 unmodified linesmlly: 1.7.4pathe: 2.0.3postcss-load-config@3.1.4(postcss@8.5.3):dependencies:lilconfig: 2.1.0272 unmodified linesthrough@2.3.8: {}tmp@0.0.33:dependencies:os-tmpdir: 1.0.255 unmodified linesufo@1.5.4: {}unplugin@1.16.1:dependencies:acorn: 8.14.0webpack-virtual-modules: 0.6.2uri-js@4.4.1:dependencies:punycode: 2.3.126 unmodified lines27282930313233343569 unmodified lines1051061071081091101111121138 unmodified lines122123124125126127128129130131132133336 unmodified lines470471472473474475476477478479480481482483484511 unmodified lines99699799899910001001100210031004169 unmodified lines11741175117611771178117911801181118287 unmodified lines1270127112721273127412751276127712781279140 unmodified lines14201421142214231424142514261427142870 unmodified lines1499150015011502150315041505150615071508177 unmodified lines168616871688168916901691169216931694336 unmodified lines20312032203320342035203620372038203962 unmodified lines2102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138132 unmodified lines2271227222732274227522762277227822792280228122822283196 unmodified lines2480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504522 unmodified lines30273028302930303031303230333034220 unmodified lines3255325632573258325932603261326295 unmodified lines33583359336033613362336333643365121 unmodified lines3487348834893490349134923493349449 unmodified lines354435453546354735483549355035513552355335543555160 unmodified lines371637173718371937203721372237233724372537263727272 unmodified lines4000400140024003400440054006400755 unmodified lines406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409026 unmodified linesspecifier: ^8.0.0version: 8.0.0(@samchon/openapi@3.0.0)(typescript@5.8.2)devDependencies:'@iconify-json/carbon':specifier: ^1.2.8version: 1.2.8'@ryoppippi/unplugin-typia':specifier: ^1.0.0version: 1.2.0(@samchon/openapi@3.0.0)(jiti@2.4.2)(lightningcss@1.29.1)(rollup@4.34.9)(yaml@2.7.0)69 unmodified linestypescript:specifier: ^5.8.2version: 5.8.2unplugin-icons:specifier: ^22.1.0version: 22.1.0(svelte@4.2.19)vite:specifier: ^5.0.3version: 5.4.14(lightningcss@1.29.1)8 unmodified linesresolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}engines: {node: '>=6.0.0'}'@antfu/install-pkg@1.0.0':resolution: {integrity: sha512-xvX6P/lo1B3ej0OsaErAjqgFYzYVcJpamjLAFLYh9vRJngBrMoUG7aVnrGTeqM7yxbyTD5p3F2+0/QUEh8Vzhw==}'@antfu/utils@8.1.1':resolution: {integrity: sha512-Mex9nXf9vR6AhcXmMrlz/HVgYYZpVGJ6YlPgwl7UnaFpnshXs6EK/oa5Gpf3CzENMjkvEx2tQtntGnb7UtSTOQ==}'@esbuild/aix-ppc64@0.21.5':resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==}engines: {node: '>=12'}336 unmodified linesresolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==}deprecated: Use @eslint/object-schema instead'@iconify-json/carbon@1.2.8':resolution: {integrity: sha512-6xh4YiFBz6qoSnB3XMe23WvjTJroDFXB17J1MbiT7nATFe+70+em1acRXr8hgP/gYpwFMHFc4IvjA/IPTPnTzg==}'@iconify/types@2.0.0':resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}'@iconify/utils@2.3.0':resolution: {integrity: sha512-GmQ78prtwYW6EtzXRU1rY+KwOKfz32PD7iJh6Iyqw68GiKuoZ2A6pRtzWONz5VQJbp50mEjXh/7NkumtrAgRKA==}'@internationalized/date@3.7.0':resolution: {integrity: sha512-VJ5WS3fcVx0bejE/YHfbDKR/yawZgKqn/if+oEeLqNwBtPzVB06olkfcnojTmEMX+gTpH+FlQ69SHNitJ8/erQ==}511 unmodified linesconfbox@0.1.8:resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}confbox@0.2.1:resolution: {integrity: sha512-hkT3yDPFbs95mNCy1+7qNKC6Pro+/ibzYxtM2iqEigpf0sVw+bg4Zh9/snjsBcf990vfIsg5+1U7VyiyBb3etg==}consola@3.4.0:resolution: {integrity: sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==}engines: {node: ^14.18.0 || >=16.10.0}169 unmodified linesresolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}engines: {node: '>=0.10.0'}exsolve@1.0.4:resolution: {integrity: sha512-xsZH6PXaER4XoV+NiT7JHp1bJodJVT+cxeSH1G0f0tlT0lJqYuHUP3bUx2HtfTDvOagMINYp8rsqusxud3RXhw==}external-editor@3.1.0:resolution: {integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==}engines: {node: '>=4'}87 unmodified linesresolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==}engines: {node: '>=8'}globals@15.15.0:resolution: {integrity: sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==}engines: {node: '>=18'}globby@11.1.0:resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}engines: {node: '>=10'}140 unmodified linesknown-css-properties@0.35.0:resolution: {integrity: sha512-a/RAk2BfKk+WFGhhOCAYqSiFLc34k8Mt/6NWRI4joER0EYUzXIcFivjjnoD3+XU1DggLn/tZc3DOAgke7l8a4A==}kolorist@1.8.0:resolution: {integrity: sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==}levn@0.4.1:resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}engines: {node: '>= 0.8.0'}70 unmodified linesresolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}engines: {node: '>=14'}local-pkg@1.1.1:resolution: {integrity: sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==}engines: {node: '>=14'}locate-character@3.0.0:resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==}177 unmodified linespkg-types@1.3.1:resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}pkg-types@2.1.0:resolution: {integrity: sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==}postcss-load-config@3.1.4:resolution: {integrity: sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==}engines: {node: '>= 10'}336 unmodified linesthrough@2.3.8:resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}tinyexec@0.3.2:resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}tmp@0.0.33:resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==}engines: {node: '>=0.6.0'}62 unmodified linesufo@1.5.4:resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}unplugin-icons@22.1.0:resolution: {integrity: sha512-ect2ZNtk1Zgwb0NVHd0C1IDW/MV+Jk/xaq4t8o6rYdVS3+L660ZdD5kTSQZvsgdwCvquRw+/wYn75hsweRjoIA==}peerDependencies:'@svgr/core': '>=7.0.0''@svgx/core': ^1.0.1'@vue/compiler-sfc': ^3.0.2 || ^2.7.0svelte: ^3.0.0 || ^4.0.0 || ^5.0.0vue-template-compiler: ^2.6.12vue-template-es2015-compiler: ^1.9.0peerDependenciesMeta:'@svgr/core':optional: true'@svgx/core':optional: true'@vue/compiler-sfc':optional: truesvelte:optional: truevue-template-compiler:optional: truevue-template-es2015-compiler:optional: trueunplugin@1.16.1:resolution: {integrity: sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==}engines: {node: '>=14.0.0'}unplugin@2.2.0:resolution: {integrity: sha512-m1ekpSwuOT5hxkJeZGRxO7gXbXT3gF26NjQ7GdVHoLoF8/nopLcd/QfPigpCy7i51oFHiRJg/CyHhj4vs2+KGw==}engines: {node: '>=18.12.0'}uri-js@4.4.1:resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}132 unmodified lines'@jridgewell/gen-mapping': 0.3.8'@jridgewell/trace-mapping': 0.3.25'@antfu/install-pkg@1.0.0':dependencies:package-manager-detector: 0.2.11tinyexec: 0.3.2'@antfu/utils@8.1.1': {}'@esbuild/aix-ppc64@0.21.5':optional: true196 unmodified lines'@humanwhocodes/object-schema@2.0.3': {}'@iconify-json/carbon@1.2.8':dependencies:'@iconify/types': 2.0.0'@iconify/types@2.0.0': {}'@iconify/utils@2.3.0':dependencies:'@antfu/install-pkg': 1.0.0'@antfu/utils': 8.1.1'@iconify/types': 2.0.0debug: 4.4.0globals: 15.15.0kolorist: 1.8.0local-pkg: 1.1.1mlly: 1.7.4transitivePeerDependencies:- supports-color'@internationalized/date@3.7.0':dependencies:'@swc/helpers': 0.5.15522 unmodified linesconfbox@0.1.8: {}confbox@0.2.1: {}consola@3.4.0: {}cookie@0.6.0: {}220 unmodified linesesutils@2.0.3: {}exsolve@1.0.4: {}external-editor@3.1.0:dependencies:chardet: 0.7.095 unmodified linesdependencies:type-fest: 0.20.2globals@15.15.0: {}globby@11.1.0:dependencies:array-union: 2.1.0121 unmodified linesknown-css-properties@0.35.0: {}kolorist@1.8.0: {}levn@0.4.1:dependencies:prelude-ls: 1.2.149 unmodified lineslilconfig@3.1.3:optional: truelocal-pkg@1.1.1:dependencies:mlly: 1.7.4pkg-types: 2.1.0quansync: 0.2.8locate-character@3.0.0: {}locate-path@6.0.0:160 unmodified linesmlly: 1.7.4pathe: 2.0.3pkg-types@2.1.0:dependencies:confbox: 0.2.1exsolve: 1.0.4pathe: 2.0.3postcss-load-config@3.1.4(postcss@8.5.3):dependencies:lilconfig: 2.1.0272 unmodified linesthrough@2.3.8: {}tinyexec@0.3.2: {}tmp@0.0.33:dependencies:os-tmpdir: 1.0.255 unmodified linesufo@1.5.4: {}unplugin-icons@22.1.0(svelte@4.2.19):dependencies:'@antfu/install-pkg': 1.0.0'@iconify/utils': 2.3.0debug: 4.4.0local-pkg: 1.1.1unplugin: 2.2.0optionalDependencies:svelte: 4.2.19transitivePeerDependencies:- supports-colorunplugin@1.16.1:dependencies:acorn: 8.14.0webpack-virtual-modules: 0.6.2unplugin@2.2.0:dependencies:acorn: 8.14.0webpack-virtual-modules: 0.6.2uri-js@4.4.1:dependencies:punycode: 2.3.1
22 unmodified lines23242526272829303132337 unmodified lines4142434445464722 unmodified lines}}html {font-size: 15px;}@theme {--animate-fade-in: fade-in 0.15s ease;@keyframes fade-in {0% {7 unmodified lines}}@utility abs-x-center {left: 50%;@apply -translate-x-1/2;}22 unmodified lines23242526272829303132337 unmodified lines414243444546474849505152535455565722 unmodified lines}}/* Theme config */@theme {--text-2xs: 0.625rem;--text-3xs: 0.5rem;--animate-fade-in: fade-in 0.15s ease;@keyframes fade-in {0% {7 unmodified lines}}/* Utilities */@utility abs-x-center {left: 50%;@apply -translate-x-1/2;}@utility btn {@apply flex h-[39px] items-center justify-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:ring-4 focus:ring-gray-100 focus:outline-hidden dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700;}/* Elements & Classes */html {font-size: 15px;}
123// See https://kit.svelte.dev/docs/types#app// for information about these interfacesdeclare global {12345import "unplugin-icons/types/svelte";// See https://kit.svelte.dev/docs/types#app// for information about these interfacesdeclare global {
1234567<script lang="ts"> export let classNames = "";</script>
<svg class={classNames} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32" ><path fill="currentColor" d="M10 6v2h12.59L6 24.59L7.41 26L24 9.41V22h2V6H10z" /></svg>23 unmodified lines24252627282930272 unmodified lines3033043053063073083093103113123133 unmodified lines31731831932032132232332432532632760 unmodified lines38838939039139239339423 unmodified linesimport HFTokenModal from "./InferencePlaygroundHFTokenModal.svelte";import ModelSelector from "./InferencePlaygroundModelSelector.svelte";import ModelSelectorModal from "./InferencePlaygroundModelSelectorModal.svelte";import IconExternal from "../Icons/IconExternal.svelte";import InferencePlaygroundProjectSelect from "./InferencePlaygroundProjectSelect.svelte";const startMessageUser: ConversationMessage = { role: "user", content: "" };272 unmodified lines{!viewSettings ? "Settings" : "Hide Settings"}</button>{/if}<buttontype="button"on:click={reset}class="flex size-[39px] flex-none items-center justify-center rounded-lg border border-gray-200 bg-white text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 focus:outline-hidden dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700"><IconDelete /></button></div>3 unmodified lines{/each}</div><div class="flex flex-1 justify-end gap-x-2"><buttontype="button"on:click={() => (viewCode = !viewCode)}class="flex h-[39px] items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 focus:outline-hidden dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700"><IconCode />{!viewCode ? "View Code" : "Hide Code"}</button>60 unmodified linestarget="_blank"class="flex items-center gap-0.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"><IconExternal />Model page</a></div>23 unmodified lines24252627282930272 unmodified lines3033043053063073083093 unmodified lines31331431531631731831960 unmodified lines38038138238338438538623 unmodified linesimport HFTokenModal from "./InferencePlaygroundHFTokenModal.svelte";import ModelSelector from "./InferencePlaygroundModelSelector.svelte";import ModelSelectorModal from "./InferencePlaygroundModelSelectorModal.svelte";import IconExternal from "~icons/carbon/arrow-up-right";import InferencePlaygroundProjectSelect from "./InferencePlaygroundProjectSelect.svelte";const startMessageUser: ConversationMessage = { role: "user", content: "" };272 unmodified lines{!viewSettings ? "Settings" : "Hide Settings"}</button>{/if}<button type="button" on:click={reset} class="btn size-[39px]"><IconDelete /></button></div>3 unmodified lines{/each}</div><div class="flex flex-1 justify-end gap-x-2"><button type="button" on:click={() => (viewCode = !viewCode)} class="btn"><IconCode />{!viewCode ? "View Code" : "Hide Code"}</button>60 unmodified linestarget="_blank"class="flex items-center gap-0.5 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"><IconExternal class="text-2xs" />Model page</a></div>
9 unmodified lines1011121314151617173 unmodified lines1911921931941951961972 unmodified lines20020120220320420520619 unmodified lines2262272282292302312329 unmodified linesimport { token } from "$lib/stores/token";import { entries, fromEntries, keys } from "$lib/utils/object";import type { InferenceProvider } from "@huggingface/inference";import IconCopyCode from "../Icons/IconCopyCode.svelte";import IconExternal from "../Icons/IconExternal.svelte";import {getInferenceSnippet,type GetInferenceSnippetReturn,173 unmodified linestarget="_blank"class="relative -bottom-[1px] flex items-center gap-1 text-sm font-normal text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"><IconExternal classNames="size-3" />Docs</a></h2>2 unmodified linesclass="flex items-center gap-x-2 rounded-md border bg-white px-1.5 py-0.5 text-sm shadow-xs transition dark:border-gray-800 dark:bg-gray-800"use:copy={installInstructions.content}><IconCopyCode classNames="text-xs" /> Copy code</button></div></div>19 unmodified linesclass="flex items-center gap-x-2 rounded-md border bg-white px-1.5 py-0.5 text-sm shadow-xs transition dark:border-gray-800 dark:bg-gray-800"use:copy={selectedSnippet?.content}><IconCopyCode classNames="text-xs" /> Copy code</button></div></div>9 unmodified lines1011121314151617173 unmodified lines1911921931941951961972 unmodified lines20020120220320420520619 unmodified lines2262272282292302312329 unmodified linesimport { token } from "$lib/stores/token";import { entries, fromEntries, keys } from "$lib/utils/object";import type { InferenceProvider } from "@huggingface/inference";import IconCopyCode from "~icons/carbon/copy";import IconExternal from "~icons/carbon/arrow-up-right";import {getInferenceSnippet,type GetInferenceSnippetReturn,173 unmodified linestarget="_blank"class="relative -bottom-[1px] flex items-center gap-1 text-sm font-normal text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-300"><IconExternal class="text-xs" />Docs</a></h2>2 unmodified linesclass="flex items-center gap-x-2 rounded-md border bg-white px-1.5 py-0.5 text-sm shadow-xs transition dark:border-gray-800 dark:bg-gray-800"use:copy={installInstructions.content}><IconCopyCode class="text-2xs" /> Copy code</button></div></div>19 unmodified linesclass="flex items-center gap-x-2 rounded-md border bg-white px-1.5 py-0.5 text-sm shadow-xs transition dark:border-gray-800 dark:bg-gray-800"use:copy={selectedSnippet?.content}><IconCopyCode class="text-2xs" /> Copy code</button></div></div>
2 unmodified lines345678910111213141 unmodified line161718192021222324252627282930313233343536371 unmodified line3940414243444546474849505152535455565758596061626364656667686970717273742 unmodified linesimport { cn } from "$lib/utils/cn";import { createSelect, createSync } from "@melt-ui/svelte";import IconCaret from "../Icons/IconCaret.svelte";import IconDelete from "../Icons/IconDelete.svelte";let classNames: string = "";export { classNames as class };const newProjectId = "__new-project-i-hope-no-one-uses-this-as-an-id__";const {elements: { trigger, menu, option },1 unmodified line} = createSelect<string, false>();const sync = createSync({ selected });$: sync.selected({ value: getActiveProject($session).id, label: getActiveProject($session).name }, p => {if (p?.value === newProjectId) {session.addProject("Project #" + ($session.projects.length + 1));} else if (p) {$session.activeProjectId = p?.value;}});</script><div class="flex flex-col gap-2"><button{...$trigger}use:triggerclass={cn("relative flex items-center justify-between gap-6 overflow-hidden rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight whitespace-nowrap shadow-sm","hover:brightness-95 dark:border-gray-700 dark:bg-gray-800 dark:hover:brightness-110",classNames)}><div class="flex items-center gap-1 text-sm">1 unmodified line</div><IconCaret classNames="text-xl bg-gray-100 dark:bg-gray-600 rounded-sm size-4 flex-none absolute right-2" /></button><div {...$menu} use:menu class="rounded-lg border bg-gray-100 dark:border-gray-700 dark:bg-gray-800">{#each $session.projects as { name, id } (id)}<button{...$option({ value: id, label: name })}use:optionclass="group block w-full p-1 text-sm dark:text-white"><divclass="flex items-center gap-2 rounded-md px-2 py-1.5 group-data-[highlighted]:bg-gray-200 dark:group-data-[highlighted]:bg-gray-700">{name}<buttonclass="ml-auto grid place-items-center rounded-md p-1 hover:bg-gray-300 dark:hover:bg-gray-600"on:click={e => {e.stopPropagation();session.deleteProject(id);}}><IconDelete /></button></div></button>{/each}<button {...$option({ value: newProjectId })} use:option class="group block w-full p-1 text-sm dark:text-white"><divclass="flex items-center gap-2 rounded-md px-2 py-1.5 group-data-[highlighted]:bg-gray-200 dark:group-data-[highlighted]:bg-gray-700">Add new project</div></button></div></div>2 unmodified lines345678910111213141516171 unmodified line192021222324252627282930313233343536373839401 unmodified line42434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687882 unmodified linesimport { cn } from "$lib/utils/cn";import { createSelect, createSync } from "@melt-ui/svelte";import IconCaret from "../Icons/IconCaret.svelte";import IconDelete from "~icons/carbon/trash-can";import IconCross from "../Icons/IconCross.svelte";import IconSave from "~icons/carbon/save";import IconEdit from "~icons/carbon/edit";let classNames: string = "";export { classNames as class };$: isDefault = getActiveProject($session).id === "default";const {elements: { trigger, menu, option },1 unmodified line} = createSelect<string, false>();const sync = createSync({ selected });$: sync.selected({ value: getActiveProject($session).id, label: getActiveProject($session).name }, p => {if (!p) return;$session.activeProjectId = p?.value;});function saveProject() {session.saveProject(prompt("Project name") || "Project #" + ($session.projects.length + 1));}</script><div class={cn("flex w-full items-stretch gap-2 ", classNames)}><button{...$trigger}use:triggerclass={cn("relative flex grow items-center justify-between gap-6 overflow-hidden rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight whitespace-nowrap shadow-sm","hover:brightness-95 dark:border-gray-700 dark:bg-gray-800 dark:hover:brightness-110")}><div class="flex items-center gap-1 text-sm">1 unmodified line</div><IconCaret classNames="text-xl bg-gray-100 dark:bg-gray-600 rounded-sm size-4 flex-none absolute right-2" /></button>{#if isDefault}<button class="btn size-[32px] p-0" on:click={saveProject}><IconSave /></button>{:else}<button class="btn size-[32px] p-0" on:click={() => ($session.activeProjectId = "default")}><IconCross /></button>{/if}</div><div {...$menu} use:menu class="rounded-lg border bg-gray-100 dark:border-gray-700 dark:bg-gray-800">{#each $session.projects as { name, id } (id)}<button {...$option({ value: id, label: name })} use:option class="group block w-full p-1 text-sm dark:text-white"><divclass="flex items-center gap-2 rounded-md py-1.5 pr-1 pl-2 group-data-[highlighted]:bg-gray-200 dark:group-data-[highlighted]:bg-gray-700">{name}{#if id !== "default"}<div class="ml-auto flex items-center gap-1"><buttonclass="grid place-items-center rounded-md p-1 text-xs hover:bg-gray-300 dark:hover:bg-gray-600"on:click={e => {e.stopPropagation();session.updateProject(id, { name: prompt("Project name", name) || name });}}><IconEdit /></button><buttonclass="grid place-items-center rounded-md p-1 text-xs hover:bg-gray-300 dark:hover:bg-gray-600"on:click={e => {e.stopPropagation();session.deleteProject(id);}}><IconDelete /></button></div>{/if}</div></button>{/each}</div>
3 unmodified lines45678926 unmodified lines363738394041424344454647484950515253545556575859606162636465666768697077 unmodified lines1481491501511521537 unmodified lines1611621631641651661671681691701711721731741751761771781793 unmodified linesPipelineTag,type Conversation,type ConversationMessage,type ModelWithTokenizer,type Project,type Session,26 unmodified lines},};function createSessionStore() {function getDefaults() {const $models = get(models);const featured = getTrending($models);const defaultModel = featured[0] ?? $models[0] ?? emptyModel;// Parse URL query parametersconst searchParams = new URLSearchParams(window.location.search);const searchProviders = searchParams.getAll("provider");const searchModelIds = searchParams.getAll("modelId");const modelsFromSearch = searchModelIds.map(id => $models.find(model => model.id === id)).filter(Boolean);const defaultConversation: Conversation = {model: defaultModel,config: { ...defaultGenerationConfig },messages: [{ ...startMessageUser }],systemMessage,streaming: true,};const defaultProject: Project = {name: "Default project",id: crypto.randomUUID(),conversations: [defaultConversation],};return { defaultProject, defaultConversation };}const store = writable<Session>(undefined, set => {const { defaultConversation, defaultProject } = getDefaults();77 unmodified lineslocalStorage.removeItem(LOCAL_STORAGE_KEY);}function addProject(name: string) {const { defaultConversation } = getDefaults();update(s => {7 unmodified lines});}function deleteProject(id: string) {update(s => {const projects = s.projects.filter(p => p.id !== id);if (projects.length === 0) {const { defaultProject } = getDefaults();return { ...s, projects: [defaultProject], activeProjectId: defaultProject.id };}const currProject = projects.find(p => p.id === s.activeProjectId);return { ...s, projects, activeProjectId: currProject?.id ?? projects[0]?.id! };});}return { ...store, set, update, clearSavedSession, addProject, deleteProject };}export const session = createSessionStore();3 unmodified lines4567891026 unmodified lines373839404142434445464748495051525354555657585960616263646566676869707177 unmodified lines1491501511521531541551561577 unmodified lines1651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132143 unmodified linesPipelineTag,type Conversation,type ConversationMessage,type DefaultProject,type ModelWithTokenizer,type Project,type Session,26 unmodified lines},};function getDefaults() {const $models = get(models);const featured = getTrending($models);const defaultModel = featured[0] ?? $models[0] ?? emptyModel;// Parse URL query parametersconst searchParams = new URLSearchParams(window.location.search);const searchProviders = searchParams.getAll("provider");const searchModelIds = searchParams.getAll("modelId");const modelsFromSearch = searchModelIds.map(id => $models.find(model => model.id === id)).filter(Boolean);const defaultConversation: Conversation = {model: defaultModel,config: { ...defaultGenerationConfig },messages: [{ ...startMessageUser }],systemMessage,streaming: true,};const defaultProject: DefaultProject = {name: "Default",id: "default",conversations: [defaultConversation],};return { defaultProject, defaultConversation };}function createSessionStore() {const store = writable<Session>(undefined, set => {const { defaultConversation, defaultProject } = getDefaults();77 unmodified lineslocalStorage.removeItem(LOCAL_STORAGE_KEY);}/*** @deprecated - Use `saveProject` instead*/function addProject(name: string) {const { defaultConversation } = getDefaults();update(s => {7 unmodified lines});}/*** Saves a new project with the data inside the default project*/function saveProject(name: string) {update(s => {const defaultProject = s.projects.find(p => p.id === "default");if (!defaultProject) return s;const project: Project = {...defaultProject,name,id: crypto.randomUUID(),};return { ...s, projects: [...s.projects, project], activeProjectId: project.id };});}function deleteProject(id: string) {// Can't delete default project!if (id === "default") return;update(s => {const projects = s.projects.filter(p => p.id !== id);if (projects.length === 0) {const { defaultProject } = getDefaults();const newSession = { ...s, projects: [defaultProject], activeProjectId: defaultProject.id };return typia.is<Session>(newSession) ? newSession : s;}const currProject = projects.find(p => p.id === s.activeProjectId);const newSession = { ...s, projects, activeProjectId: currProject?.id ?? projects[0]?.id! };return typia.is<Session>(newSession) ? newSession : s;});}function updateProject(id: string, data: Partial<Project>) {update(s => {const projects = s.projects.map(p => (p.id === id ? { ...p, ...data } : p));const newSession = { ...s, projects };return typia.is<Session>(newSession) ? newSession : s;});}return { ...store, set, update, clearSavedSession, addProject, deleteProject, saveProject, updateProject };}export const session = createSessionStore();
17 unmodified lines181920212223242517 unmodified linesname: string;};export type Session = {projects: Project[];activeProjectId: string;};17 unmodified lines1819202122232425262728293017 unmodified linesname: string;};export type DefaultProject = Project & {id: "default";name: "Default";};export type Session = {projects: [DefaultProject, ...Project[]];activeProjectId: string;};
1234562 unmodified lines910111213import { sveltekit } from "@sveltejs/kit/vite";import { defineConfig } from "vite";import UnpluginTypia from "@ryoppippi/unplugin-typia/vite";export default defineConfig({plugins: [2 unmodified linescache: false,}),sveltekit(),],});12345672 unmodified lines101112131415161718import { sveltekit } from "@sveltejs/kit/vite";import { defineConfig } from "vite";import UnpluginTypia from "@ryoppippi/unplugin-typia/vite";import Icons from "unplugin-icons/vite";export default defineConfig({plugins: [2 unmodified linescache: false,}),sveltekit(),Icons({compiler: "svelte",autoInstall: true,}),],});
package.json+2
pnpm-lock.yaml+136
src/app.css+14-4
src/app.d.ts+2
src/lib/components/Icons/IconExternal.svelteDeleted-7
src/lib/components/InferencePlayground/InferencePlayground.svelte+4-12
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte+5-5
src/lib/components/InferencePlayground/InferencePlaygroundProjectSelect.svelte+52-38
src/lib/stores/session.ts+64-29
src/lib/types.ts+6-1
vite.config.ts+5