clawmini 0.0.1
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/.gemini/settings.json +46 -0
- package/.prettierrc +7 -0
- package/GEMINI.md +11 -0
- package/README.md +137 -0
- package/dist/adapter-discord/index.d.mts +5 -0
- package/dist/adapter-discord/index.d.mts.map +1 -0
- package/dist/adapter-discord/index.mjs +456 -0
- package/dist/adapter-discord/index.mjs.map +1 -0
- package/dist/chats-DKgTeU7i.mjs +91 -0
- package/dist/chats-DKgTeU7i.mjs.map +1 -0
- package/dist/chats-Zd_HXDHx.mjs +29 -0
- package/dist/chats-Zd_HXDHx.mjs.map +1 -0
- package/dist/cli/index.d.mts +1 -0
- package/dist/cli/index.mjs +850 -0
- package/dist/cli/index.mjs.map +1 -0
- package/dist/cli/lite.d.mts +1 -0
- package/dist/cli/lite.mjs +4434 -0
- package/dist/cli/lite.mjs.map +1 -0
- package/dist/daemon/index.d.mts +5 -0
- package/dist/daemon/index.d.mts.map +1 -0
- package/dist/daemon/index.mjs +1222 -0
- package/dist/daemon/index.mjs.map +1 -0
- package/dist/fetch-BjZVyU3Z.mjs +37 -0
- package/dist/fetch-BjZVyU3Z.mjs.map +1 -0
- package/dist/fs-B5wW0oaH.mjs +14 -0
- package/dist/fs-B5wW0oaH.mjs.map +1 -0
- package/dist/lite-Dl7WXyaH.mjs +80 -0
- package/dist/lite-Dl7WXyaH.mjs.map +1 -0
- package/dist/rolldown-runtime-95iHPtFO.mjs +18 -0
- package/dist/web/_app/env.js +1 -0
- package/dist/web/_app/immutable/assets/0.GI4C4dpV.css +1 -0
- package/dist/web/_app/immutable/chunks/B5abRDXp.js +1 -0
- package/dist/web/_app/immutable/chunks/B8yYFADm.js +1 -0
- package/dist/web/_app/immutable/chunks/BPy8HLo7.js +5 -0
- package/dist/web/_app/immutable/chunks/Bi0jeV7Q.js +1 -0
- package/dist/web/_app/immutable/chunks/BmUXQ3wy.js +2 -0
- package/dist/web/_app/immutable/chunks/C3k55nDF.js +1 -0
- package/dist/web/_app/immutable/chunks/COekwvP2.js +1 -0
- package/dist/web/_app/immutable/chunks/CSvS_NwK.js +1 -0
- package/dist/web/_app/immutable/chunks/CpaGRn9L.js +1 -0
- package/dist/web/_app/immutable/chunks/CyNaE55B.js +1 -0
- package/dist/web/_app/immutable/chunks/DG5RZBw-.js +2 -0
- package/dist/web/_app/immutable/chunks/Dc-UOHw9.js +1 -0
- package/dist/web/_app/immutable/chunks/DcrmIfTj.js +1 -0
- package/dist/web/_app/immutable/chunks/ZkLyk0mE.js +1 -0
- package/dist/web/_app/immutable/entry/app.B-vZe7PN.js +2 -0
- package/dist/web/_app/immutable/entry/start.oP1AgKhs.js +1 -0
- package/dist/web/_app/immutable/nodes/0.B5WFN0zw.js +1 -0
- package/dist/web/_app/immutable/nodes/1.D1wtJb2k.js +1 -0
- package/dist/web/_app/immutable/nodes/2.CK3CLC0f.js +1 -0
- package/dist/web/_app/immutable/nodes/3.BB5wCoBf.js +4 -0
- package/dist/web/_app/immutable/nodes/4.Dr2jvAXK.js +1 -0
- package/dist/web/_app/immutable/nodes/5.BJl7oM3b.js +1 -0
- package/dist/web/_app/version.json +1 -0
- package/dist/web/index.html +37 -0
- package/dist/web/robots.txt +3 -0
- package/dist/workspace-CSgfo_2J.mjs +383 -0
- package/dist/workspace-CSgfo_2J.mjs.map +1 -0
- package/docs/01_chats/development_log.md +36 -0
- package/docs/01_chats/notes.md +27 -0
- package/docs/01_chats/prd.md +47 -0
- package/docs/01_chats/questions.md +19 -0
- package/docs/01_chats/tickets.md +67 -0
- package/docs/02_sessions/development_log.md +79 -0
- package/docs/02_sessions/notes.md +40 -0
- package/docs/02_sessions/prd.md +75 -0
- package/docs/02_sessions/questions.md +7 -0
- package/docs/02_sessions/tickets.md +68 -0
- package/docs/03_web_interface/development_log.md +60 -0
- package/docs/03_web_interface/notes.md +29 -0
- package/docs/03_web_interface/prd.md +42 -0
- package/docs/03_web_interface/questions.md +8 -0
- package/docs/03_web_interface/tickets.md +59 -0
- package/docs/04_agents/development_log.md +54 -0
- package/docs/04_agents/notes.md +45 -0
- package/docs/04_agents/prd.md +47 -0
- package/docs/04_agents/questions.md +13 -0
- package/docs/04_agents/tickets.md +107 -0
- package/docs/05_routers/development_log.md +13 -0
- package/docs/05_routers/notes.md +40 -0
- package/docs/05_routers/prd.md +55 -0
- package/docs/05_routers/questions.md +21 -0
- package/docs/05_routers/tickets.md +109 -0
- package/docs/06_agent_templates/development_log.md +38 -0
- package/docs/06_agent_templates/notes.md +25 -0
- package/docs/06_agent_templates/prd.md +34 -0
- package/docs/06_agent_templates/questions.md +11 -0
- package/docs/06_agent_templates/tickets.md +49 -0
- package/docs/06_cron/development_log.md +51 -0
- package/docs/06_cron/notes.md +14 -0
- package/docs/06_cron/prd.md +92 -0
- package/docs/06_cron/questions.md +15 -0
- package/docs/06_cron/tickets.md +75 -0
- package/docs/07_web_chat_ux/development_log.md +30 -0
- package/docs/07_web_chat_ux/notes.md +25 -0
- package/docs/07_web_chat_ux/prd.md +46 -0
- package/docs/07_web_chat_ux/questions.md +7 -0
- package/docs/07_web_chat_ux/tickets.md +48 -0
- package/docs/08_agent_api/development_log.md +52 -0
- package/docs/08_agent_api/notes.md +31 -0
- package/docs/08_agent_api/prd.md +56 -0
- package/docs/08_agent_api/questions.md +14 -0
- package/docs/08_agent_api/tickets.md +104 -0
- package/docs/09_agent_fallbacks/development_log.md +52 -0
- package/docs/09_agent_fallbacks/notes.md +40 -0
- package/docs/09_agent_fallbacks/prd.md +55 -0
- package/docs/09_agent_fallbacks/questions.md +10 -0
- package/docs/09_agent_fallbacks/tickets.md +88 -0
- package/docs/09_discord_adapter/development_log.md +95 -0
- package/docs/09_discord_adapter/notes.md +18 -0
- package/docs/09_discord_adapter/prd.md +57 -0
- package/docs/09_discord_adapter/questions.md +16 -0
- package/docs/09_discord_adapter/tickets.md +116 -0
- package/docs/10_file_attachments/development_log.md +55 -0
- package/docs/10_file_attachments/notes.md +59 -0
- package/docs/10_file_attachments/prd.md +73 -0
- package/docs/10_file_attachments/questions.md +15 -0
- package/docs/10_file_attachments/tickets.md +88 -0
- package/docs/11_message_verbosity/development_log.md +43 -0
- package/docs/11_message_verbosity/notes.md +26 -0
- package/docs/11_message_verbosity/prd.md +44 -0
- package/docs/11_message_verbosity/questions.md +8 -0
- package/docs/11_message_verbosity/tickets.md +33 -0
- package/docs/12_environments/development_log.md +43 -0
- package/docs/12_environments/notes.md +45 -0
- package/docs/12_environments/prd.md +113 -0
- package/docs/12_environments/questions.md +17 -0
- package/docs/12_environments/tickets.md +87 -0
- package/docs/12_setup_flow_improvements/development_log.md +40 -0
- package/docs/12_setup_flow_improvements/notes.md +34 -0
- package/docs/12_setup_flow_improvements/prd.md +35 -0
- package/docs/12_setup_flow_improvements/questions.md +8 -0
- package/docs/12_setup_flow_improvements/tickets.md +122 -0
- package/docs/13_discord_typing_indicators/development_log.md +38 -0
- package/docs/13_discord_typing_indicators/notes.md +18 -0
- package/docs/13_discord_typing_indicators/prd.md +41 -0
- package/docs/13_discord_typing_indicators/questions.md +6 -0
- package/docs/13_discord_typing_indicators/tickets.md +60 -0
- package/docs/14_interruptions/development_log.md +50 -0
- package/docs/14_interruptions/notes.md +38 -0
- package/docs/14_interruptions/prd.md +46 -0
- package/docs/14_interruptions/questions.md +12 -0
- package/docs/14_interruptions/tickets.md +69 -0
- package/docs/15_sandbox_policies/development_log.md +95 -0
- package/docs/15_sandbox_policies/notes.md +33 -0
- package/docs/15_sandbox_policies/prd.md +163 -0
- package/docs/15_sandbox_policies/questions.md +10 -0
- package/docs/15_sandbox_policies/tickets.md +196 -0
- package/docs/CHECKS.md +9 -0
- package/docs/guides/discord_adapter_setup.md +69 -0
- package/docs/guides/sandbox_policies.md +76 -0
- package/eslint.config.js +47 -0
- package/napkin.md +21 -0
- package/package.json +50 -0
- package/scripts/create_worktree.sh +49 -0
- package/scripts/get_pr_comments.sh +36 -0
- package/src/adapter-discord/client.test.ts +65 -0
- package/src/adapter-discord/client.ts +41 -0
- package/src/adapter-discord/config.test.ts +156 -0
- package/src/adapter-discord/config.ts +61 -0
- package/src/adapter-discord/forwarder.test.ts +493 -0
- package/src/adapter-discord/forwarder.ts +246 -0
- package/src/adapter-discord/index.test.ts +399 -0
- package/src/adapter-discord/index.ts +147 -0
- package/src/adapter-discord/state.test.ts +65 -0
- package/src/adapter-discord/state.ts +44 -0
- package/src/cli/client.ts +46 -0
- package/src/cli/commands/agents.ts +138 -0
- package/src/cli/commands/chats.ts +79 -0
- package/src/cli/commands/down.ts +32 -0
- package/src/cli/commands/environments.ts +39 -0
- package/src/cli/commands/export-lite.ts +62 -0
- package/src/cli/commands/init.ts +79 -0
- package/src/cli/commands/jobs.ts +141 -0
- package/src/cli/commands/messages.ts +103 -0
- package/src/cli/commands/up.ts +26 -0
- package/src/cli/commands/web-api/agents.ts +138 -0
- package/src/cli/commands/web-api/chats.ts +213 -0
- package/src/cli/commands/web-api/utils.ts +27 -0
- package/src/cli/commands/web.ts +105 -0
- package/src/cli/e2e/adapter-discord.test.ts +76 -0
- package/src/cli/e2e/agents.test.ts +140 -0
- package/src/cli/e2e/basic.test.ts +43 -0
- package/src/cli/e2e/cron.test.ts +132 -0
- package/src/cli/e2e/daemon.test.ts +293 -0
- package/src/cli/e2e/environments.test.ts +66 -0
- package/src/cli/e2e/export-lite-func.test.ts +155 -0
- package/src/cli/e2e/export-lite.test.ts +51 -0
- package/src/cli/e2e/fallbacks.test.ts +169 -0
- package/src/cli/e2e/global-setup.ts +15 -0
- package/src/cli/e2e/init.test.ts +70 -0
- package/src/cli/e2e/messages.test.ts +294 -0
- package/src/cli/e2e/requests.test.ts +165 -0
- package/src/cli/e2e/utils.ts +66 -0
- package/src/cli/index.test.ts +7 -0
- package/src/cli/index.ts +29 -0
- package/src/cli/lite.ts +247 -0
- package/src/cli/utils.ts +4 -0
- package/src/daemon/auth.test.ts +50 -0
- package/src/daemon/auth.ts +69 -0
- package/src/daemon/chats.ts +26 -0
- package/src/daemon/cron.test.ts +28 -0
- package/src/daemon/cron.ts +159 -0
- package/src/daemon/events.ts +15 -0
- package/src/daemon/index.ts +212 -0
- package/src/daemon/message-agent.test.ts +132 -0
- package/src/daemon/message-extraction.test.ts +166 -0
- package/src/daemon/message-fallbacks.test.ts +313 -0
- package/src/daemon/message-interruption.test.ts +125 -0
- package/src/daemon/message-queue.test.ts +143 -0
- package/src/daemon/message-router.test.ts +106 -0
- package/src/daemon/message-session.test.ts +127 -0
- package/src/daemon/message-test-utils.ts +41 -0
- package/src/daemon/message-typing.test.ts +93 -0
- package/src/daemon/message-verbosity.test.ts +127 -0
- package/src/daemon/message.ts +600 -0
- package/src/daemon/observation.test.ts +118 -0
- package/src/daemon/policy-request-service.test.ts +87 -0
- package/src/daemon/policy-request-service.ts +62 -0
- package/src/daemon/policy-utils.test.ts +138 -0
- package/src/daemon/policy-utils.ts +152 -0
- package/src/daemon/queue.test.ts +89 -0
- package/src/daemon/queue.ts +87 -0
- package/src/daemon/request-store.test.ts +103 -0
- package/src/daemon/request-store.ts +96 -0
- package/src/daemon/router-policy-request.test.ts +99 -0
- package/src/daemon/router.test.ts +380 -0
- package/src/daemon/router.ts +510 -0
- package/src/daemon/routers/slash-command.test.ts +145 -0
- package/src/daemon/routers/slash-command.ts +58 -0
- package/src/daemon/routers/slash-interrupt.test.ts +30 -0
- package/src/daemon/routers/slash-interrupt.ts +7 -0
- package/src/daemon/routers/slash-new.test.ts +59 -0
- package/src/daemon/routers/slash-new.ts +14 -0
- package/src/daemon/routers/slash-policies.test.ts +167 -0
- package/src/daemon/routers/slash-policies.ts +131 -0
- package/src/daemon/routers/slash-stop.test.ts +30 -0
- package/src/daemon/routers/slash-stop.ts +3 -0
- package/src/daemon/routers/types.ts +10 -0
- package/src/daemon/routers/utils.ts +22 -0
- package/src/daemon/routers.test.ts +141 -0
- package/src/daemon/routers.ts +115 -0
- package/src/daemon/utils/spawn.ts +61 -0
- package/src/shared/agent-utils.ts +30 -0
- package/src/shared/chats.test.ts +112 -0
- package/src/shared/chats.ts +164 -0
- package/src/shared/config.test.ts +90 -0
- package/src/shared/config.ts +100 -0
- package/src/shared/event-source.ts +121 -0
- package/src/shared/fetch.ts +45 -0
- package/src/shared/lite.ts +129 -0
- package/src/shared/policies.ts +24 -0
- package/src/shared/utils/env.ts +27 -0
- package/src/shared/utils/fs.ts +13 -0
- package/src/shared/workspace.test.ts +345 -0
- package/src/shared/workspace.ts +500 -0
- package/templates/environments/cladding/env.json +7 -0
- package/templates/environments/macos/env.json +8 -0
- package/templates/environments/macos/sandbox.sb +21 -0
- package/templates/environments/macos-proxy/allowlist.txt +1 -0
- package/templates/environments/macos-proxy/env.json +14 -0
- package/templates/environments/macos-proxy/proxy.mjs +86 -0
- package/templates/environments/macos-proxy/sandbox.sb +34 -0
- package/templates/gemini/settings.json +11 -0
- package/templates/gemini-claw/.gemini/hooks/clawmini-logging.sh +17 -0
- package/templates/gemini-claw/.gemini/settings.json +24 -0
- package/templates/gemini-claw/.gemini/skills/clawmini-jobs/SKILL.md +40 -0
- package/templates/gemini-claw/.gemini/system.md +98 -0
- package/templates/gemini-claw/BOOTSTRAP.md +54 -0
- package/templates/gemini-claw/GEMINI.md +107 -0
- package/templates/gemini-claw/HEARTBEAT.md +3 -0
- package/templates/gemini-claw/MEMORY.md +2 -0
- package/templates/gemini-claw/SOUL.md +42 -0
- package/templates/gemini-claw/TOOLS.md +38 -0
- package/templates/gemini-claw/USER.md +15 -0
- package/templates/gemini-claw/memory/.gitkeep +0 -0
- package/templates/gemini-claw/settings.json +24 -0
- package/templates/opencode/settings.json +11 -0
- package/tsconfig.json +42 -0
- package/tsdown.config.ts +19 -0
- package/vitest.config.ts +9 -0
- package/web/.svelte-kit/ambient.d.ts +382 -0
- package/web/.svelte-kit/generated/client/app.js +35 -0
- package/web/.svelte-kit/generated/client/matchers.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/0.js +3 -0
- package/web/.svelte-kit/generated/client/nodes/1.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/2.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/3.js +1 -0
- package/web/.svelte-kit/generated/client/nodes/4.js +3 -0
- package/web/.svelte-kit/generated/client/nodes/5.js +3 -0
- package/web/.svelte-kit/generated/client-optimized/app.js +35 -0
- package/web/.svelte-kit/generated/client-optimized/matchers.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/0.js +3 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/1.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/2.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/3.js +1 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/4.js +3 -0
- package/web/.svelte-kit/generated/client-optimized/nodes/5.js +3 -0
- package/web/.svelte-kit/generated/root.js +3 -0
- package/web/.svelte-kit/generated/root.svelte +68 -0
- package/web/.svelte-kit/generated/server/internal.js +53 -0
- package/web/.svelte-kit/non-ambient.d.ts +46 -0
- package/web/.svelte-kit/output/client/.vite/manifest.json +251 -0
- package/web/.svelte-kit/output/client/_app/immutable/assets/0.GI4C4dpV.css +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/B5abRDXp.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/B8yYFADm.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BPy8HLo7.js +5 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/Bi0jeV7Q.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/BmUXQ3wy.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/C3k55nDF.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/COekwvP2.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/CSvS_NwK.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/CpaGRn9L.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/CyNaE55B.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DG5RZBw-.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/Dc-UOHw9.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/DcrmIfTj.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/chunks/ZkLyk0mE.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/entry/app.B-vZe7PN.js +2 -0
- package/web/.svelte-kit/output/client/_app/immutable/entry/start.oP1AgKhs.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/0.B5WFN0zw.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/1.D1wtJb2k.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/2.CK3CLC0f.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/3.BB5wCoBf.js +4 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/4.Dr2jvAXK.js +1 -0
- package/web/.svelte-kit/output/client/_app/immutable/nodes/5.BJl7oM3b.js +1 -0
- package/web/.svelte-kit/output/client/_app/version.json +1 -0
- package/web/.svelte-kit/output/client/robots.txt +3 -0
- package/web/.svelte-kit/output/prerendered/dependencies/_app/env.js +1 -0
- package/web/.svelte-kit/output/server/.vite/manifest.json +215 -0
- package/web/.svelte-kit/output/server/_app/immutable/assets/_layout.GI4C4dpV.css +1 -0
- package/web/.svelte-kit/output/server/chunks/Icon.js +153 -0
- package/web/.svelte-kit/output/server/chunks/bot.js +2753 -0
- package/web/.svelte-kit/output/server/chunks/client.js +47 -0
- package/web/.svelte-kit/output/server/chunks/environment.js +34 -0
- package/web/.svelte-kit/output/server/chunks/exports.js +231 -0
- package/web/.svelte-kit/output/server/chunks/false.js +4 -0
- package/web/.svelte-kit/output/server/chunks/index-server.js +20 -0
- package/web/.svelte-kit/output/server/chunks/index.js +24 -0
- package/web/.svelte-kit/output/server/chunks/internal.js +133 -0
- package/web/.svelte-kit/output/server/chunks/plus.js +81 -0
- package/web/.svelte-kit/output/server/chunks/root.js +4076 -0
- package/web/.svelte-kit/output/server/chunks/shared.js +789 -0
- package/web/.svelte-kit/output/server/chunks/utils.js +43 -0
- package/web/.svelte-kit/output/server/entries/fallbacks/error.svelte.js +11 -0
- package/web/.svelte-kit/output/server/entries/pages/_layout.svelte.js +3944 -0
- package/web/.svelte-kit/output/server/entries/pages/_layout.ts.js +28 -0
- package/web/.svelte-kit/output/server/entries/pages/_page.svelte.js +7 -0
- package/web/.svelte-kit/output/server/entries/pages/agents/_page.svelte.js +379 -0
- package/web/.svelte-kit/output/server/entries/pages/chats/_id_/_page.svelte.js +292 -0
- package/web/.svelte-kit/output/server/entries/pages/chats/_id_/_page.ts.js +17 -0
- package/web/.svelte-kit/output/server/entries/pages/chats/_id_/settings/_page.svelte.js +259 -0
- package/web/.svelte-kit/output/server/entries/pages/chats/_id_/settings/_page.ts.js +17 -0
- package/web/.svelte-kit/output/server/index.js +3748 -0
- package/web/.svelte-kit/output/server/internal.js +14 -0
- package/web/.svelte-kit/output/server/manifest-full.js +63 -0
- package/web/.svelte-kit/output/server/manifest.js +63 -0
- package/web/.svelte-kit/output/server/nodes/0.js +13 -0
- package/web/.svelte-kit/output/server/nodes/1.js +8 -0
- package/web/.svelte-kit/output/server/nodes/2.js +8 -0
- package/web/.svelte-kit/output/server/nodes/3.js +8 -0
- package/web/.svelte-kit/output/server/nodes/4.js +13 -0
- package/web/.svelte-kit/output/server/nodes/5.js +13 -0
- package/web/.svelte-kit/output/server/remote-entry.js +557 -0
- package/web/.svelte-kit/tsconfig.json +67 -0
- package/web/.svelte-kit/types/route_meta_data.json +17 -0
- package/web/.svelte-kit/types/src/routes/$types.d.ts +26 -0
- package/web/.svelte-kit/types/src/routes/agents/$types.d.ts +18 -0
- package/web/.svelte-kit/types/src/routes/chats/[id]/$types.d.ts +21 -0
- package/web/.svelte-kit/types/src/routes/chats/[id]/proxy+page.ts +20 -0
- package/web/.svelte-kit/types/src/routes/chats/[id]/settings/$types.d.ts +21 -0
- package/web/.svelte-kit/types/src/routes/chats/[id]/settings/proxy+page.ts +19 -0
- package/web/.svelte-kit/types/src/routes/proxy+layout.ts +35 -0
- package/web/README.md +42 -0
- package/web/components.json +16 -0
- package/web/package.json +41 -0
- package/web/src/app.css +121 -0
- package/web/src/app.d.ts +13 -0
- package/web/src/app.html +11 -0
- package/web/src/demo.spec.ts +7 -0
- package/web/src/lib/app-state.svelte.ts +3 -0
- package/web/src/lib/assets/favicon.svg +1 -0
- package/web/src/lib/components/app/app-sidebar-test-wrapper.svelte +10 -0
- package/web/src/lib/components/app/app-sidebar.svelte +171 -0
- package/web/src/lib/components/app/app-sidebar.svelte.spec.ts +13 -0
- package/web/src/lib/components/ui/button/button.svelte +82 -0
- package/web/src/lib/components/ui/button/index.ts +17 -0
- package/web/src/lib/components/ui/dialog/dialog-close.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog-content.svelte +45 -0
- package/web/src/lib/components/ui/dialog/dialog-description.svelte +17 -0
- package/web/src/lib/components/ui/dialog/dialog-footer.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-header.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-overlay.svelte +20 -0
- package/web/src/lib/components/ui/dialog/dialog-portal.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog-title.svelte +17 -0
- package/web/src/lib/components/ui/dialog/dialog-trigger.svelte +7 -0
- package/web/src/lib/components/ui/dialog/dialog.svelte +7 -0
- package/web/src/lib/components/ui/dialog/index.ts +34 -0
- package/web/src/lib/components/ui/input/index.ts +7 -0
- package/web/src/lib/components/ui/input/input.svelte +52 -0
- package/web/src/lib/components/ui/separator/index.ts +7 -0
- package/web/src/lib/components/ui/separator/separator.svelte +21 -0
- package/web/src/lib/components/ui/sheet/index.ts +34 -0
- package/web/src/lib/components/ui/sheet/sheet-close.svelte +7 -0
- package/web/src/lib/components/ui/sheet/sheet-content.svelte +60 -0
- package/web/src/lib/components/ui/sheet/sheet-description.svelte +17 -0
- package/web/src/lib/components/ui/sheet/sheet-footer.svelte +20 -0
- package/web/src/lib/components/ui/sheet/sheet-header.svelte +20 -0
- package/web/src/lib/components/ui/sheet/sheet-overlay.svelte +20 -0
- package/web/src/lib/components/ui/sheet/sheet-portal.svelte +7 -0
- package/web/src/lib/components/ui/sheet/sheet-title.svelte +17 -0
- package/web/src/lib/components/ui/sheet/sheet-trigger.svelte +7 -0
- package/web/src/lib/components/ui/sheet/sheet.svelte +7 -0
- package/web/src/lib/components/ui/sidebar/constants.ts +6 -0
- package/web/src/lib/components/ui/sidebar/context.svelte.ts +79 -0
- package/web/src/lib/components/ui/sidebar/index.ts +75 -0
- package/web/src/lib/components/ui/sidebar/sidebar-content.svelte +24 -0
- package/web/src/lib/components/ui/sidebar/sidebar-footer.svelte +21 -0
- package/web/src/lib/components/ui/sidebar/sidebar-group-action.svelte +36 -0
- package/web/src/lib/components/ui/sidebar/sidebar-group-content.svelte +21 -0
- package/web/src/lib/components/ui/sidebar/sidebar-group-label.svelte +34 -0
- package/web/src/lib/components/ui/sidebar/sidebar-group.svelte +21 -0
- package/web/src/lib/components/ui/sidebar/sidebar-header.svelte +21 -0
- package/web/src/lib/components/ui/sidebar/sidebar-input.svelte +21 -0
- package/web/src/lib/components/ui/sidebar/sidebar-inset.svelte +24 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu-action.svelte +43 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu-badge.svelte +29 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu-button.svelte +103 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu-item.svelte +21 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte +36 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu-sub-button.svelte +43 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu-sub-item.svelte +21 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte +25 -0
- package/web/src/lib/components/ui/sidebar/sidebar-menu.svelte +21 -0
- package/web/src/lib/components/ui/sidebar/sidebar-provider.svelte +53 -0
- package/web/src/lib/components/ui/sidebar/sidebar-rail.svelte +36 -0
- package/web/src/lib/components/ui/sidebar/sidebar-separator.svelte +19 -0
- package/web/src/lib/components/ui/sidebar/sidebar-trigger.svelte +35 -0
- package/web/src/lib/components/ui/sidebar/sidebar.svelte +104 -0
- package/web/src/lib/components/ui/skeleton/index.ts +7 -0
- package/web/src/lib/components/ui/skeleton/skeleton.svelte +17 -0
- package/web/src/lib/components/ui/switch/index.ts +7 -0
- package/web/src/lib/components/ui/switch/switch.svelte +29 -0
- package/web/src/lib/components/ui/textarea/index.ts +7 -0
- package/web/src/lib/components/ui/textarea/textarea.svelte +23 -0
- package/web/src/lib/components/ui/tooltip/index.ts +19 -0
- package/web/src/lib/components/ui/tooltip/tooltip-content.svelte +52 -0
- package/web/src/lib/components/ui/tooltip/tooltip-portal.svelte +7 -0
- package/web/src/lib/components/ui/tooltip/tooltip-provider.svelte +7 -0
- package/web/src/lib/components/ui/tooltip/tooltip-trigger.svelte +7 -0
- package/web/src/lib/components/ui/tooltip/tooltip.svelte +7 -0
- package/web/src/lib/hooks/is-mobile.svelte.ts +9 -0
- package/web/src/lib/index.ts +1 -0
- package/web/src/lib/types.ts +23 -0
- package/web/src/lib/utils.ts +13 -0
- package/web/src/routes/+layout.svelte +67 -0
- package/web/src/routes/+layout.ts +34 -0
- package/web/src/routes/+page.svelte +7 -0
- package/web/src/routes/agents/+page.svelte +206 -0
- package/web/src/routes/chats/[id]/+page.svelte +406 -0
- package/web/src/routes/chats/[id]/+page.ts +19 -0
- package/web/src/routes/chats/[id]/page.svelte.spec.ts +102 -0
- package/web/src/routes/chats/[id]/settings/+page.svelte +165 -0
- package/web/src/routes/chats/[id]/settings/+page.ts +18 -0
- package/web/src/routes/page.svelte.spec.ts +13 -0
- package/web/static/robots.txt +3 -0
- package/web/svelte.config.js +21 -0
- package/web/tsconfig.json +20 -0
- package/web/vite.config.ts +41 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "clsx";
|
|
2
|
+
import "@sveltejs/kit/internal";
|
|
3
|
+
import { w as writable } from "./exports.js";
|
|
4
|
+
import "./utils.js";
|
|
5
|
+
import "@sveltejs/kit/internal/server";
|
|
6
|
+
import { z as noop } from "./root.js";
|
|
7
|
+
function create_updated_store() {
|
|
8
|
+
const { set, subscribe } = writable(false);
|
|
9
|
+
{
|
|
10
|
+
return {
|
|
11
|
+
subscribe,
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
13
|
+
check: async () => false
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
18
|
+
if (is_legacy) {
|
|
19
|
+
({
|
|
20
|
+
data: {},
|
|
21
|
+
form: null,
|
|
22
|
+
error: null,
|
|
23
|
+
params: {},
|
|
24
|
+
route: { id: null },
|
|
25
|
+
state: {},
|
|
26
|
+
status: -1,
|
|
27
|
+
url: new URL("https://example.com")
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const stores = {
|
|
31
|
+
updated: /* @__PURE__ */ create_updated_store()
|
|
32
|
+
};
|
|
33
|
+
function goto(url, opts = {}) {
|
|
34
|
+
{
|
|
35
|
+
throw new Error("Cannot call goto(...) on the server");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function invalidate(resource) {
|
|
39
|
+
{
|
|
40
|
+
throw new Error("Cannot call invalidate(...) on the server");
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
goto as g,
|
|
45
|
+
invalidate as i,
|
|
46
|
+
stores as s
|
|
47
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
let base = "";
|
|
2
|
+
let assets = base;
|
|
3
|
+
const app_dir = "_app";
|
|
4
|
+
const relative = true;
|
|
5
|
+
const initial = { base, assets };
|
|
6
|
+
function override(paths) {
|
|
7
|
+
base = paths.base;
|
|
8
|
+
assets = paths.assets;
|
|
9
|
+
}
|
|
10
|
+
function reset() {
|
|
11
|
+
base = initial.base;
|
|
12
|
+
assets = initial.assets;
|
|
13
|
+
}
|
|
14
|
+
function set_assets(path) {
|
|
15
|
+
assets = initial.assets = path;
|
|
16
|
+
}
|
|
17
|
+
let prerendering = false;
|
|
18
|
+
function set_building() {
|
|
19
|
+
}
|
|
20
|
+
function set_prerendering() {
|
|
21
|
+
prerendering = true;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
assets as a,
|
|
25
|
+
base as b,
|
|
26
|
+
app_dir as c,
|
|
27
|
+
reset as d,
|
|
28
|
+
set_building as e,
|
|
29
|
+
set_prerendering as f,
|
|
30
|
+
override as o,
|
|
31
|
+
prerendering as p,
|
|
32
|
+
relative as r,
|
|
33
|
+
set_assets as s
|
|
34
|
+
};
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { z as noop, B as safe_not_equal } from "./root.js";
|
|
2
|
+
import "clsx";
|
|
3
|
+
const SCHEME = /^[a-z][a-z\d+\-.]+:/i;
|
|
4
|
+
const internal = new URL("sveltekit-internal://");
|
|
5
|
+
function resolve(base, path) {
|
|
6
|
+
if (path[0] === "/" && path[1] === "/") return path;
|
|
7
|
+
let url = new URL(base, internal);
|
|
8
|
+
url = new URL(path, url);
|
|
9
|
+
return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
|
|
10
|
+
}
|
|
11
|
+
function normalize_path(path, trailing_slash) {
|
|
12
|
+
if (path === "/" || trailing_slash === "ignore") return path;
|
|
13
|
+
if (trailing_slash === "never") {
|
|
14
|
+
return path.endsWith("/") ? path.slice(0, -1) : path;
|
|
15
|
+
} else if (trailing_slash === "always" && !path.endsWith("/")) {
|
|
16
|
+
return path + "/";
|
|
17
|
+
}
|
|
18
|
+
return path;
|
|
19
|
+
}
|
|
20
|
+
function decode_pathname(pathname) {
|
|
21
|
+
return pathname.split("%25").map(decodeURI).join("%25");
|
|
22
|
+
}
|
|
23
|
+
function decode_params(params) {
|
|
24
|
+
for (const key in params) {
|
|
25
|
+
params[key] = decodeURIComponent(params[key]);
|
|
26
|
+
}
|
|
27
|
+
return params;
|
|
28
|
+
}
|
|
29
|
+
function make_trackable(url, callback, search_params_callback, allow_hash = false) {
|
|
30
|
+
const tracked = new URL(url);
|
|
31
|
+
Object.defineProperty(tracked, "searchParams", {
|
|
32
|
+
value: new Proxy(tracked.searchParams, {
|
|
33
|
+
get(obj, key) {
|
|
34
|
+
if (key === "get" || key === "getAll" || key === "has") {
|
|
35
|
+
return (param, ...rest) => {
|
|
36
|
+
search_params_callback(param);
|
|
37
|
+
return obj[key](param, ...rest);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
callback();
|
|
41
|
+
const value = Reflect.get(obj, key);
|
|
42
|
+
return typeof value === "function" ? value.bind(obj) : value;
|
|
43
|
+
}
|
|
44
|
+
}),
|
|
45
|
+
enumerable: true,
|
|
46
|
+
configurable: true
|
|
47
|
+
});
|
|
48
|
+
const tracked_url_properties = ["href", "pathname", "search", "toString", "toJSON"];
|
|
49
|
+
if (allow_hash) tracked_url_properties.push("hash");
|
|
50
|
+
for (const property of tracked_url_properties) {
|
|
51
|
+
Object.defineProperty(tracked, property, {
|
|
52
|
+
get() {
|
|
53
|
+
callback();
|
|
54
|
+
return url[property];
|
|
55
|
+
},
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
{
|
|
61
|
+
tracked[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
62
|
+
return inspect(url, opts);
|
|
63
|
+
};
|
|
64
|
+
tracked.searchParams[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
65
|
+
return inspect(url.searchParams, opts);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
if (!allow_hash) {
|
|
69
|
+
disable_hash(tracked);
|
|
70
|
+
}
|
|
71
|
+
return tracked;
|
|
72
|
+
}
|
|
73
|
+
function disable_hash(url) {
|
|
74
|
+
allow_nodejs_console_log(url);
|
|
75
|
+
Object.defineProperty(url, "hash", {
|
|
76
|
+
get() {
|
|
77
|
+
throw new Error(
|
|
78
|
+
"Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead"
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function disable_search(url) {
|
|
84
|
+
allow_nodejs_console_log(url);
|
|
85
|
+
for (const property of ["search", "searchParams"]) {
|
|
86
|
+
Object.defineProperty(url, property, {
|
|
87
|
+
get() {
|
|
88
|
+
throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function allow_nodejs_console_log(url) {
|
|
94
|
+
{
|
|
95
|
+
url[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
|
|
96
|
+
return inspect(new URL(url), opts);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const subscriber_queue = [];
|
|
101
|
+
function readable(value, start) {
|
|
102
|
+
return {
|
|
103
|
+
subscribe: writable(value, start).subscribe
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function writable(value, start = noop) {
|
|
107
|
+
let stop = null;
|
|
108
|
+
const subscribers = /* @__PURE__ */ new Set();
|
|
109
|
+
function set(new_value) {
|
|
110
|
+
if (safe_not_equal(value, new_value)) {
|
|
111
|
+
value = new_value;
|
|
112
|
+
if (stop) {
|
|
113
|
+
const run_queue = !subscriber_queue.length;
|
|
114
|
+
for (const subscriber of subscribers) {
|
|
115
|
+
subscriber[1]();
|
|
116
|
+
subscriber_queue.push(subscriber, value);
|
|
117
|
+
}
|
|
118
|
+
if (run_queue) {
|
|
119
|
+
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
|
120
|
+
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
|
121
|
+
}
|
|
122
|
+
subscriber_queue.length = 0;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function update(fn) {
|
|
128
|
+
set(fn(
|
|
129
|
+
/** @type {T} */
|
|
130
|
+
value
|
|
131
|
+
));
|
|
132
|
+
}
|
|
133
|
+
function subscribe(run, invalidate = noop) {
|
|
134
|
+
const subscriber = [run, invalidate];
|
|
135
|
+
subscribers.add(subscriber);
|
|
136
|
+
if (subscribers.size === 1) {
|
|
137
|
+
stop = start(set, update) || noop;
|
|
138
|
+
}
|
|
139
|
+
run(
|
|
140
|
+
/** @type {T} */
|
|
141
|
+
value
|
|
142
|
+
);
|
|
143
|
+
return () => {
|
|
144
|
+
subscribers.delete(subscriber);
|
|
145
|
+
if (subscribers.size === 0 && stop) {
|
|
146
|
+
stop();
|
|
147
|
+
stop = null;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
return { set, update, subscribe };
|
|
152
|
+
}
|
|
153
|
+
function validator(expected) {
|
|
154
|
+
function validate(module, file) {
|
|
155
|
+
if (!module) return;
|
|
156
|
+
for (const key in module) {
|
|
157
|
+
if (key[0] === "_" || expected.has(key)) continue;
|
|
158
|
+
const values = [...expected.values()];
|
|
159
|
+
const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
|
|
160
|
+
throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return validate;
|
|
164
|
+
}
|
|
165
|
+
function hint_for_supported_files(key, ext = ".js") {
|
|
166
|
+
const supported_files = [];
|
|
167
|
+
if (valid_layout_exports.has(key)) {
|
|
168
|
+
supported_files.push(`+layout${ext}`);
|
|
169
|
+
}
|
|
170
|
+
if (valid_page_exports.has(key)) {
|
|
171
|
+
supported_files.push(`+page${ext}`);
|
|
172
|
+
}
|
|
173
|
+
if (valid_layout_server_exports.has(key)) {
|
|
174
|
+
supported_files.push(`+layout.server${ext}`);
|
|
175
|
+
}
|
|
176
|
+
if (valid_page_server_exports.has(key)) {
|
|
177
|
+
supported_files.push(`+page.server${ext}`);
|
|
178
|
+
}
|
|
179
|
+
if (valid_server_exports.has(key)) {
|
|
180
|
+
supported_files.push(`+server${ext}`);
|
|
181
|
+
}
|
|
182
|
+
if (supported_files.length > 0) {
|
|
183
|
+
return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
const valid_layout_exports = /* @__PURE__ */ new Set([
|
|
187
|
+
"load",
|
|
188
|
+
"prerender",
|
|
189
|
+
"csr",
|
|
190
|
+
"ssr",
|
|
191
|
+
"trailingSlash",
|
|
192
|
+
"config"
|
|
193
|
+
]);
|
|
194
|
+
const valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]);
|
|
195
|
+
const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);
|
|
196
|
+
const valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]);
|
|
197
|
+
const valid_server_exports = /* @__PURE__ */ new Set([
|
|
198
|
+
"GET",
|
|
199
|
+
"POST",
|
|
200
|
+
"PATCH",
|
|
201
|
+
"PUT",
|
|
202
|
+
"DELETE",
|
|
203
|
+
"OPTIONS",
|
|
204
|
+
"HEAD",
|
|
205
|
+
"fallback",
|
|
206
|
+
"prerender",
|
|
207
|
+
"trailingSlash",
|
|
208
|
+
"config",
|
|
209
|
+
"entries"
|
|
210
|
+
]);
|
|
211
|
+
const validate_layout_exports = validator(valid_layout_exports);
|
|
212
|
+
const validate_page_exports = validator(valid_page_exports);
|
|
213
|
+
const validate_layout_server_exports = validator(valid_layout_server_exports);
|
|
214
|
+
const validate_page_server_exports = validator(valid_page_server_exports);
|
|
215
|
+
const validate_server_exports = validator(valid_server_exports);
|
|
216
|
+
export {
|
|
217
|
+
SCHEME as S,
|
|
218
|
+
decode_params as a,
|
|
219
|
+
validate_layout_exports as b,
|
|
220
|
+
validate_page_server_exports as c,
|
|
221
|
+
disable_search as d,
|
|
222
|
+
validate_page_exports as e,
|
|
223
|
+
resolve as f,
|
|
224
|
+
decode_pathname as g,
|
|
225
|
+
validate_server_exports as h,
|
|
226
|
+
make_trackable as m,
|
|
227
|
+
normalize_path as n,
|
|
228
|
+
readable as r,
|
|
229
|
+
validate_layout_server_exports as v,
|
|
230
|
+
writable as w
|
|
231
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { v as ssr_context, w as lifecycle_function_unavailable } from "./root.js";
|
|
2
|
+
import "clsx";
|
|
3
|
+
function onDestroy(fn) {
|
|
4
|
+
/** @type {SSRContext} */
|
|
5
|
+
ssr_context.r.on_destroy(fn);
|
|
6
|
+
}
|
|
7
|
+
function mount() {
|
|
8
|
+
lifecycle_function_unavailable("mount");
|
|
9
|
+
}
|
|
10
|
+
function unmount() {
|
|
11
|
+
lifecycle_function_unavailable("unmount");
|
|
12
|
+
}
|
|
13
|
+
async function tick() {
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
mount as m,
|
|
17
|
+
onDestroy as o,
|
|
18
|
+
tick as t,
|
|
19
|
+
unmount as u
|
|
20
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { s as stores } from "./client.js";
|
|
2
|
+
import { g as getContext } from "./root.js";
|
|
3
|
+
import "clsx";
|
|
4
|
+
({
|
|
5
|
+
check: stores.updated.check
|
|
6
|
+
});
|
|
7
|
+
function context() {
|
|
8
|
+
return getContext("__request__");
|
|
9
|
+
}
|
|
10
|
+
const page$1 = {
|
|
11
|
+
get error() {
|
|
12
|
+
return context().page.error;
|
|
13
|
+
},
|
|
14
|
+
get status() {
|
|
15
|
+
return context().page.status;
|
|
16
|
+
},
|
|
17
|
+
get url() {
|
|
18
|
+
return context().page.url;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const page = page$1;
|
|
22
|
+
export {
|
|
23
|
+
page as p
|
|
24
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { r as root } from "./root.js";
|
|
2
|
+
import "./environment.js";
|
|
3
|
+
let public_env = {};
|
|
4
|
+
function set_private_env(environment) {
|
|
5
|
+
}
|
|
6
|
+
function set_public_env(environment) {
|
|
7
|
+
public_env = environment;
|
|
8
|
+
}
|
|
9
|
+
let read_implementation = null;
|
|
10
|
+
function set_read_implementation(fn) {
|
|
11
|
+
read_implementation = fn;
|
|
12
|
+
}
|
|
13
|
+
function set_manifest(_) {
|
|
14
|
+
}
|
|
15
|
+
const options = {
|
|
16
|
+
app_template_contains_nonce: false,
|
|
17
|
+
async: false,
|
|
18
|
+
csp: { "mode": "auto", "directives": { "upgrade-insecure-requests": false, "block-all-mixed-content": false }, "reportOnly": { "upgrade-insecure-requests": false, "block-all-mixed-content": false } },
|
|
19
|
+
csrf_check_origin: true,
|
|
20
|
+
csrf_trusted_origins: [],
|
|
21
|
+
embedded: false,
|
|
22
|
+
env_public_prefix: "PUBLIC_",
|
|
23
|
+
env_private_prefix: "",
|
|
24
|
+
hash_routing: false,
|
|
25
|
+
hooks: null,
|
|
26
|
+
// added lazily, via `get_hooks`
|
|
27
|
+
preload_strategy: "modulepreload",
|
|
28
|
+
root,
|
|
29
|
+
service_worker: false,
|
|
30
|
+
service_worker_options: void 0,
|
|
31
|
+
templates: {
|
|
32
|
+
app: ({ head, body, assets, nonce, env }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content" />\n ' + head + '\n </head>\n <body data-sveltekit-preload-data="hover">\n <div style="display: contents">' + body + "</div>\n </body>\n</html>\n",
|
|
33
|
+
error: ({ status, message }) => '<!doctype html>\n<html lang="en">\n <head>\n <meta charset="utf-8" />\n <title>' + message + `</title>
|
|
34
|
+
|
|
35
|
+
<style>
|
|
36
|
+
body {
|
|
37
|
+
--bg: white;
|
|
38
|
+
--fg: #222;
|
|
39
|
+
--divider: #ccc;
|
|
40
|
+
background: var(--bg);
|
|
41
|
+
color: var(--fg);
|
|
42
|
+
font-family:
|
|
43
|
+
system-ui,
|
|
44
|
+
-apple-system,
|
|
45
|
+
BlinkMacSystemFont,
|
|
46
|
+
'Segoe UI',
|
|
47
|
+
Roboto,
|
|
48
|
+
Oxygen,
|
|
49
|
+
Ubuntu,
|
|
50
|
+
Cantarell,
|
|
51
|
+
'Open Sans',
|
|
52
|
+
'Helvetica Neue',
|
|
53
|
+
sans-serif;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
height: 100vh;
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.error {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
max-width: 32rem;
|
|
65
|
+
margin: 0 1rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.status {
|
|
69
|
+
font-weight: 200;
|
|
70
|
+
font-size: 3rem;
|
|
71
|
+
line-height: 1;
|
|
72
|
+
position: relative;
|
|
73
|
+
top: -0.05rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.message {
|
|
77
|
+
border-left: 1px solid var(--divider);
|
|
78
|
+
padding: 0 0 0 1rem;
|
|
79
|
+
margin: 0 0 0 1rem;
|
|
80
|
+
min-height: 2.5rem;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.message h1 {
|
|
86
|
+
font-weight: 400;
|
|
87
|
+
font-size: 1em;
|
|
88
|
+
margin: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (prefers-color-scheme: dark) {
|
|
92
|
+
body {
|
|
93
|
+
--bg: #222;
|
|
94
|
+
--fg: #ddd;
|
|
95
|
+
--divider: #666;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
</style>
|
|
99
|
+
</head>
|
|
100
|
+
<body>
|
|
101
|
+
<div class="error">
|
|
102
|
+
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
|
103
|
+
},
|
|
104
|
+
version_hash: "2krgzd"
|
|
105
|
+
};
|
|
106
|
+
async function get_hooks() {
|
|
107
|
+
let handle;
|
|
108
|
+
let handleFetch;
|
|
109
|
+
let handleError;
|
|
110
|
+
let handleValidationError;
|
|
111
|
+
let init;
|
|
112
|
+
let reroute;
|
|
113
|
+
let transport;
|
|
114
|
+
return {
|
|
115
|
+
handle,
|
|
116
|
+
handleFetch,
|
|
117
|
+
handleError,
|
|
118
|
+
handleValidationError,
|
|
119
|
+
init,
|
|
120
|
+
reroute,
|
|
121
|
+
transport
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
set_public_env as a,
|
|
126
|
+
set_read_implementation as b,
|
|
127
|
+
set_manifest as c,
|
|
128
|
+
get_hooks as g,
|
|
129
|
+
options as o,
|
|
130
|
+
public_env as p,
|
|
131
|
+
read_implementation as r,
|
|
132
|
+
set_private_env as s
|
|
133
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { a as attributes, c as clsx, b as bind_props, k as sanitize_props, f as spread_props, l as slot } from "./root.js";
|
|
2
|
+
import { c as cn, I as Icon } from "./Icon.js";
|
|
3
|
+
function Input($$renderer, $$props) {
|
|
4
|
+
$$renderer.component(($$renderer2) => {
|
|
5
|
+
let {
|
|
6
|
+
ref = null,
|
|
7
|
+
value = void 0,
|
|
8
|
+
type,
|
|
9
|
+
files = void 0,
|
|
10
|
+
class: className,
|
|
11
|
+
"data-slot": dataSlot = "input",
|
|
12
|
+
$$slots,
|
|
13
|
+
$$events,
|
|
14
|
+
...restProps
|
|
15
|
+
} = $$props;
|
|
16
|
+
if (type === "file") {
|
|
17
|
+
$$renderer2.push("<!--[0-->");
|
|
18
|
+
$$renderer2.push(`<input${attributes(
|
|
19
|
+
{
|
|
20
|
+
"data-slot": dataSlot,
|
|
21
|
+
class: clsx(cn("selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className)),
|
|
22
|
+
type: "file",
|
|
23
|
+
...restProps
|
|
24
|
+
},
|
|
25
|
+
void 0,
|
|
26
|
+
void 0,
|
|
27
|
+
void 0,
|
|
28
|
+
4
|
|
29
|
+
)}/>`);
|
|
30
|
+
} else {
|
|
31
|
+
$$renderer2.push("<!--[-1-->");
|
|
32
|
+
$$renderer2.push(`<input${attributes(
|
|
33
|
+
{
|
|
34
|
+
"data-slot": dataSlot,
|
|
35
|
+
class: clsx(cn("border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className)),
|
|
36
|
+
type,
|
|
37
|
+
value,
|
|
38
|
+
...restProps
|
|
39
|
+
},
|
|
40
|
+
void 0,
|
|
41
|
+
void 0,
|
|
42
|
+
void 0,
|
|
43
|
+
4
|
|
44
|
+
)}/>`);
|
|
45
|
+
}
|
|
46
|
+
$$renderer2.push(`<!--]-->`);
|
|
47
|
+
bind_props($$props, { ref, value, files });
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function Plus($$renderer, $$props) {
|
|
51
|
+
const $$sanitized_props = sanitize_props($$props);
|
|
52
|
+
const iconNode = [["path", { "d": "M5 12h14" }], ["path", { "d": "M12 5v14" }]];
|
|
53
|
+
Icon($$renderer, spread_props([
|
|
54
|
+
{ name: "plus" },
|
|
55
|
+
$$sanitized_props,
|
|
56
|
+
{
|
|
57
|
+
/**
|
|
58
|
+
* @component @name Plus
|
|
59
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
60
|
+
*
|
|
61
|
+
* @preview  - https://lucide.dev/icons/plus
|
|
62
|
+
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
63
|
+
*
|
|
64
|
+
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
65
|
+
* @returns {FunctionalComponent} Svelte component
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
iconNode,
|
|
69
|
+
children: ($$renderer2) => {
|
|
70
|
+
$$renderer2.push(`<!--[-->`);
|
|
71
|
+
slot($$renderer2, $$props, "default", {});
|
|
72
|
+
$$renderer2.push(`<!--]-->`);
|
|
73
|
+
},
|
|
74
|
+
$$slots: { default: true }
|
|
75
|
+
}
|
|
76
|
+
]));
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
Input as I,
|
|
80
|
+
Plus as P
|
|
81
|
+
};
|