@jiangxiaosheng/digital-agent-platform 1.0.0 → 1.0.2
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/.next/BUILD_ID +1 -0
- package/.next/app-build-manifest.json +316 -0
- package/.next/app-path-routes-manifest.json +1 -0
- package/.next/build-manifest.json +33 -0
- package/.next/cache/.rscinfo +1 -0
- package/.next/cache/.tsbuildinfo +1 -0
- package/.next/cache/eslint/.cache_1bmmeh3 +1 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/diagnostics/build-diagnostics.json +6 -0
- package/.next/diagnostics/framework.json +1 -0
- package/.next/export-marker.json +1 -0
- package/.next/images-manifest.json +1 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +1 -0
- package/.next/react-loadable-manifest.json +1 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/app/[locale]/agents/[id]/chat/page.js +1 -0
- package/.next/server/app/[locale]/agents/[id]/chat/page.js.nft.json +1 -0
- package/.next/server/app/[locale]/agents/[id]/chat/page_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/agents/[id]/edit/page.js +1 -0
- package/.next/server/app/[locale]/agents/[id]/edit/page.js.nft.json +1 -0
- package/.next/server/app/[locale]/agents/[id]/edit/page_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/agents/new/page.js +1 -0
- package/.next/server/app/[locale]/agents/new/page.js.nft.json +1 -0
- package/.next/server/app/[locale]/agents/new/page_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/agents/page.js +1 -0
- package/.next/server/app/[locale]/agents/page.js.nft.json +1 -0
- package/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/knowledge/page.js +1 -0
- package/.next/server/app/[locale]/knowledge/page.js.nft.json +1 -0
- package/.next/server/app/[locale]/knowledge/page_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/page.js +1 -0
- package/.next/server/app/[locale]/page.js.nft.json +1 -0
- package/.next/server/app/[locale]/page_client-reference-manifest.js +1 -0
- package/.next/server/app/[locale]/settings/page.js +1 -0
- package/.next/server/app/[locale]/settings/page.js.nft.json +1 -0
- package/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -0
- package/.next/server/app/_not-found/page.js +1 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +8 -0
- package/.next/server/app/_not-found.rsc +12 -0
- package/.next/server/app/api/agents/[id]/route.js +1 -0
- package/.next/server/app/api/agents/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/agents/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/agents/route.js +1 -0
- package/.next/server/app/api/agents/route.js.nft.json +1 -0
- package/.next/server/app/api/agents/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth-config/test/route.js +1 -0
- package/.next/server/app/api/auth-config/test/route.js.nft.json +1 -0
- package/.next/server/app/api/auth-config/test/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/bash-output/route.js +1 -0
- package/.next/server/app/api/bash-output/route.js.nft.json +1 -0
- package/.next/server/app/api/bash-output/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/chat/[agentId]/route.js +5 -0
- package/.next/server/app/api/chat/[agentId]/route.js.nft.json +1 -0
- package/.next/server/app/api/chat/[agentId]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/env-vars/[key]/route.js +1 -0
- package/.next/server/app/api/env-vars/[key]/route.js.nft.json +1 -0
- package/.next/server/app/api/env-vars/[key]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/env-vars/route.js +1 -0
- package/.next/server/app/api/env-vars/route.js.nft.json +1 -0
- package/.next/server/app/api/env-vars/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/env-vars/scan/route.js +1 -0
- package/.next/server/app/api/env-vars/scan/route.js.nft.json +1 -0
- package/.next/server/app/api/env-vars/scan/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/file-serve/route.js +1 -0
- package/.next/server/app/api/file-serve/route.js.nft.json +1 -0
- package/.next/server/app/api/file-serve/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/fs/browse/route.js +1 -0
- package/.next/server/app/api/fs/browse/route.js.nft.json +1 -0
- package/.next/server/app/api/fs/browse/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/knowledge/[id]/documents/[docId]/route.js +60 -0
- package/.next/server/app/api/knowledge/[id]/documents/[docId]/route.js.nft.json +1 -0
- package/.next/server/app/api/knowledge/[id]/documents/[docId]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/knowledge/[id]/route.js +1 -0
- package/.next/server/app/api/knowledge/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/knowledge/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/knowledge/[id]/upload/route.js +62 -0
- package/.next/server/app/api/knowledge/[id]/upload/route.js.nft.json +1 -0
- package/.next/server/app/api/knowledge/[id]/upload/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/knowledge/route.js +1 -0
- package/.next/server/app/api/knowledge/route.js.nft.json +1 -0
- package/.next/server/app/api/knowledge/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/knowledge/search/route.js +1 -0
- package/.next/server/app/api/knowledge/search/route.js.nft.json +1 -0
- package/.next/server/app/api/knowledge/search/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models/route.js +1 -0
- package/.next/server/app/api/models/route.js.nft.json +1 -0
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/route.js +1 -0
- package/.next/server/app/api/models-config/route.js.nft.json +1 -0
- package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/test/route.js +1 -0
- package/.next/server/app/api/models-config/test/route.js.nft.json +1 -0
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[agentId]/[sessionId]/route.js +1 -0
- package/.next/server/app/api/sessions/[agentId]/[sessionId]/route.js.nft.json +1 -0
- package/.next/server/app/api/sessions/[agentId]/[sessionId]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[agentId]/route.js +1 -0
- package/.next/server/app/api/sessions/[agentId]/route.js.nft.json +1 -0
- package/.next/server/app/api/sessions/[agentId]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/history/route.js +1 -0
- package/.next/server/app/api/sessions/history/route.js.nft.json +1 -0
- package/.next/server/app/api/sessions/history/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/settings/route.js +1 -0
- package/.next/server/app/api/settings/route.js.nft.json +1 -0
- package/.next/server/app/api/settings/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/[name]/route.js +1 -0
- package/.next/server/app/api/skills/[name]/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/[name]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/install/route.js +1 -0
- package/.next/server/app/api/skills/install/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/route.js +1 -0
- package/.next/server/app/api/skills/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/search/route.js +1 -0
- package/.next/server/app/api/skills/search/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tts/route.js +8 -0
- package/.next/server/app/api/tts/route.js.nft.json +1 -0
- package/.next/server/app/api/tts/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/voice-provider/route.js +1 -0
- package/.next/server/app/api/voice-provider/route.js.nft.json +1 -0
- package/.next/server/app/api/voice-provider/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/workspace-files/route.js +1 -0
- package/.next/server/app/api/workspace-files/route.js.nft.json +1 -0
- package/.next/server/app/api/workspace-files/route_client-reference-manifest.js +1 -0
- package/.next/server/app/index.html +1 -0
- package/.next/server/app/index.meta +9 -0
- package/.next/server/app/index.rsc +13 -0
- package/.next/server/app/page.js +1 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +40 -0
- package/.next/server/chunks/1285.js +1 -0
- package/.next/server/chunks/2112.js +1 -0
- package/.next/server/chunks/2961.js +1 -0
- package/.next/server/chunks/3651.js +1 -0
- package/.next/server/chunks/407.js +1 -0
- package/.next/server/chunks/4125.js +1 -0
- package/.next/server/chunks/4127.js +1 -0
- package/.next/server/chunks/4907.js +1 -0
- package/.next/server/chunks/5051.js +1 -0
- package/.next/server/chunks/5452.js +1 -0
- package/.next/server/chunks/5994.js +13 -0
- package/.next/server/chunks/6777.js +1 -0
- package/.next/server/chunks/7368.js +1 -0
- package/.next/server/chunks/7627.js +6 -0
- package/.next/server/chunks/763.js +1 -0
- package/.next/server/chunks/7682.js +1 -0
- package/.next/server/chunks/8403.js +3 -0
- package/.next/server/chunks/8405.js +12 -0
- package/.next/server/chunks/9251.js +1 -0
- package/.next/server/edge-runtime-webpack.js +2 -0
- package/.next/server/edge-runtime-webpack.js.map +1 -0
- package/.next/server/functions-config-manifest.json +1 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +32 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages/_app.js +1 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +1 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +1 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +1 -0
- package/.next/server/src/middleware.js +14 -0
- package/.next/server/src/middleware.js.map +1 -0
- package/.next/server/webpack-runtime.js +1 -0
- package/.next/static/VoyTtGCQMPGM_4nEMWYg5/_buildManifest.js +1 -0
- package/.next/static/VoyTtGCQMPGM_4nEMWYg5/_ssgManifest.js +1 -0
- package/.next/static/chunks/1517-9c89c425ac486877.js +2 -0
- package/.next/static/chunks/1868-9f3e42aa5a6ea9d2.js +1 -0
- package/.next/static/chunks/2733-714d0e6cd51477c7.js +1 -0
- package/.next/static/chunks/3259-52b0aabc8fbba4a9.js +1 -0
- package/.next/static/chunks/3923-e04a628626d77a16.js +1 -0
- package/.next/static/chunks/4bd1b696-c90310bf0ab1fbc7.js +1 -0
- package/.next/static/chunks/5663-7b816438e0166950.js +1 -0
- package/.next/static/chunks/6742-ad22486f7c4c8592.js +1 -0
- package/.next/static/chunks/7200-c9c613d1b11207fb.js +1 -0
- package/.next/static/chunks/8173-6258ed62b7084bda.js +1 -0
- package/.next/static/chunks/8313-cd4e4ad40e185f1c.js +1 -0
- package/.next/static/chunks/app/[locale]/agents/[id]/chat/page-95dc12875cda0b9c.js +1 -0
- package/.next/static/chunks/app/[locale]/agents/[id]/edit/page-8d0cc73c7aff7774.js +1 -0
- package/.next/static/chunks/app/[locale]/agents/new/page-aeaa197c0ccfd2f9.js +1 -0
- package/.next/static/chunks/app/[locale]/agents/page-243c454594122944.js +1 -0
- package/.next/static/chunks/app/[locale]/knowledge/page-7b4b6aa0a07d7da3.js +1 -0
- package/.next/static/chunks/app/[locale]/layout-48d759d6db5dd8ae.js +1 -0
- package/.next/static/chunks/app/[locale]/page-b9ea4f8cf8aeb0f1.js +1 -0
- package/.next/static/chunks/app/[locale]/settings/page-71d67c3b9f712584.js +1 -0
- package/.next/static/chunks/app/_not-found/page-f97d2843fca4f7e9.js +1 -0
- package/.next/static/chunks/app/api/agents/[id]/route-2c9f12e90dc8bc05.js +1 -0
- package/.next/static/chunks/app/api/agents/route-e227ba4be09c8ea2.js +1 -0
- package/.next/static/chunks/app/api/auth-config/test/route-1a6a754ae71e89f0.js +1 -0
- package/.next/static/chunks/app/api/bash-output/route-0bfb3c0f9ff5859a.js +1 -0
- package/.next/static/chunks/app/api/chat/[agentId]/route-f7318b5c8e97f243.js +1 -0
- package/.next/static/chunks/app/api/env-vars/[key]/route-567c08ee1be81799.js +1 -0
- package/.next/static/chunks/app/api/env-vars/route-146d3ab2015e6fe6.js +1 -0
- package/.next/static/chunks/app/api/env-vars/scan/route-2910d42f96d76168.js +1 -0
- package/.next/static/chunks/app/api/file-serve/route-76913780801418d4.js +1 -0
- package/.next/static/chunks/app/api/fs/browse/route-85da11c8b91bfc41.js +1 -0
- package/.next/static/chunks/app/api/knowledge/[id]/documents/[docId]/route-db2e1804b71004c5.js +1 -0
- package/.next/static/chunks/app/api/knowledge/[id]/route-501735d3dfb2e743.js +1 -0
- package/.next/static/chunks/app/api/knowledge/[id]/upload/route-fb036c262ee843f0.js +1 -0
- package/.next/static/chunks/app/api/knowledge/route-f5adfe5daf2e157c.js +1 -0
- package/.next/static/chunks/app/api/knowledge/search/route-54c8135ac355fe2e.js +1 -0
- package/.next/static/chunks/app/api/models/route-9e102c5352543aea.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-ad2d0c9262659d68.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-272aea5aa29f1429.js +1 -0
- package/.next/static/chunks/app/api/sessions/[agentId]/[sessionId]/route-4ed9dc6ddb3b98da.js +1 -0
- package/.next/static/chunks/app/api/sessions/[agentId]/route-2fa7611378376ed4.js +1 -0
- package/.next/static/chunks/app/api/sessions/history/route-5a455eb0be9b3a33.js +1 -0
- package/.next/static/chunks/app/api/settings/route-969f9ac513905ffe.js +1 -0
- package/.next/static/chunks/app/api/skills/[name]/route-7df36eded75e7234.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-0ab555085d740ab8.js +1 -0
- package/.next/static/chunks/app/api/skills/route-e5affcfa067cf550.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-b5b24854e46bb392.js +1 -0
- package/.next/static/chunks/app/api/tts/route-8186cb3d5316250e.js +1 -0
- package/.next/static/chunks/app/api/voice-provider/route-df0bb3cf19b0296c.js +1 -0
- package/.next/static/chunks/app/api/workspace-files/route-2abf9592333cfebc.js +1 -0
- package/.next/static/chunks/app/layout-4af7a40b1f262149.js +1 -0
- package/.next/static/chunks/app/page-6c018b7c1e2b97bc.js +1 -0
- package/.next/static/chunks/framework-a08059d19b5ea91c.js +1 -0
- package/.next/static/chunks/main-294df54c69003650.js +1 -0
- package/.next/static/chunks/main-app-07be5f69ef8a336a.js +1 -0
- package/.next/static/chunks/pages/_app-00b41aece417ee52.js +1 -0
- package/.next/static/chunks/pages/_error-6b43ce36a8d09a61.js +1 -0
- package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/.next/static/chunks/webpack-9b9d7723f8078270.js +1 -0
- package/.next/static/css/632ce3b5496b50af.css +1 -0
- package/.next/static/css/7e7d96b1e6991756.css +1 -0
- package/.next/static/media/19cfc7226ec3afaa-s.woff2 +0 -0
- package/.next/static/media/21350d82a1f187e9-s.woff2 +0 -0
- package/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/.next/static/media/ba9851c3c22cd980-s.woff2 +0 -0
- package/.next/static/media/c5fe6dc8356a8c31-s.woff2 +0 -0
- package/.next/static/media/df0a9ae256c0569c-s.woff2 +0 -0
- package/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/.next/trace +35 -0
- package/.next/types/app/[locale]/agents/[id]/chat/page.ts +84 -0
- package/.next/types/app/[locale]/agents/[id]/edit/page.ts +84 -0
- package/.next/types/app/[locale]/agents/new/page.ts +84 -0
- package/.next/types/app/[locale]/agents/page.ts +84 -0
- package/.next/types/app/[locale]/knowledge/page.ts +84 -0
- package/.next/types/app/[locale]/page.ts +84 -0
- package/.next/types/app/[locale]/settings/page.ts +84 -0
- package/.next/types/app/api/agents/[id]/route.ts +347 -0
- package/.next/types/app/api/agents/route.ts +347 -0
- package/.next/types/app/api/auth-config/test/route.ts +347 -0
- package/.next/types/app/api/bash-output/route.ts +347 -0
- package/.next/types/app/api/chat/[agentId]/route.ts +347 -0
- package/.next/types/app/api/env-vars/[key]/route.ts +347 -0
- package/.next/types/app/api/env-vars/route.ts +347 -0
- package/.next/types/app/api/env-vars/scan/route.ts +347 -0
- package/.next/types/app/api/file-serve/route.ts +347 -0
- package/.next/types/app/api/fs/browse/route.ts +347 -0
- package/.next/types/app/api/knowledge/[id]/documents/[docId]/route.ts +347 -0
- package/.next/types/app/api/knowledge/[id]/route.ts +347 -0
- package/.next/types/app/api/knowledge/[id]/upload/route.ts +347 -0
- package/.next/types/app/api/knowledge/route.ts +347 -0
- package/.next/types/app/api/knowledge/search/route.ts +347 -0
- package/.next/types/app/api/models/route.ts +347 -0
- package/.next/types/app/api/models-config/route.ts +347 -0
- package/.next/types/app/api/models-config/test/route.ts +347 -0
- package/.next/types/app/api/sessions/[agentId]/[sessionId]/route.ts +347 -0
- package/.next/types/app/api/sessions/[agentId]/route.ts +347 -0
- package/.next/types/app/api/sessions/history/route.ts +347 -0
- package/.next/types/app/api/settings/route.ts +347 -0
- package/.next/types/app/api/skills/[name]/route.ts +347 -0
- package/.next/types/app/api/skills/install/route.ts +347 -0
- package/.next/types/app/api/skills/route.ts +347 -0
- package/.next/types/app/api/skills/search/route.ts +347 -0
- package/.next/types/app/api/tts/route.ts +347 -0
- package/.next/types/app/api/voice-provider/route.ts +347 -0
- package/.next/types/app/api/workspace-files/route.ts +347 -0
- package/.next/types/app/layout.ts +84 -0
- package/.next/types/app/page.ts +84 -0
- package/.next/types/cache-life.d.ts +141 -0
- package/.next/types/package.json +1 -0
- package/bin/dap.js +85 -0
- package/package.json +15 -1
- package/src/types/agent.ts +4 -0
- package/eslint.config.mjs +0 -20
- package/next-env.d.ts +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/models/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/models/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=7483,e.ids=[6777,7483],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},29021:e=>{"use strict";e.exports=require("fs")},21820:e=>{"use strict";e.exports=require("os")},33873:e=>{"use strict";e.exports=require("path")},29795:(e,r,t)=>{"use strict";t.r(r),t.d(r,{patchFetch:()=>x,routeModule:()=>l,serverHooks:()=>y,workAsyncStorage:()=>f,workUnitAsyncStorage:()=>g});var n={};t.r(n),t.d(n,{GET:()=>d,PUT:()=>p,dynamic:()=>c});var s=t(42706),i=t(28203),o=t(45994),u=t(39187),a=t(56777);let c="force-dynamic";async function d(){let e=(0,a.readModelsConfig)(),r=(0,a.readAuthConfig)(),t={};for(let[e,n]of Object.entries(r))t[e]=n.key?"***"+n.key.slice(-4):"";return u.NextResponse.json({modelsConfig:e,auth:t})}async function p(e){try{let r=await e.json();if(r.modelsConfig&&(0,a.IX)(r.modelsConfig),r.auth){let e=(0,a.readAuthConfig)();for(let[t,n]of Object.entries(r.auth))n?n.startsWith("***")||(e[t]={type:"apiKey",key:n}):delete e[t];(0,a.CG)(e)}return u.NextResponse.json({success:!0})}catch(e){return u.NextResponse.json({error:String(e)},{status:500})}}let l=new s.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/models-config/route",pathname:"/api/models-config",filename:"route",bundlePath:"app/api/models-config/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/models-config/route.ts",nextConfigOutput:"",userland:n}),{workAsyncStorage:f,workUnitAsyncStorage:g,serverHooks:y}=l;function x(){return(0,o.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:g})}},96487:()=>{},78335:()=>{},56777:(e,r,t)=>{"use strict";t.d(r,{CG:()=>y,IX:()=>f,readAuthConfig:()=>g,readModelsConfig:()=>l});var n=t(33873),s=t.n(n),i=t(21820),o=t.n(i),u=t(29021),a=t.n(u);function c(){return process.env.PI_AGENT_DIR??s().join(o().homedir(),".pi","agent")}function d(){return s().join(c(),"models.json")}function p(){return s().join(c(),"auth.json")}function l(){let e=d();if(!a().existsSync(e))return{providers:{}};try{return JSON.parse(a().readFileSync(e,"utf8"))}catch{return{providers:{}}}}function f(e){let r=d();a().mkdirSync(s().dirname(r),{recursive:!0}),a().writeFileSync(r,JSON.stringify(e,null,2),"utf8")}function g(){let e=p();if(!a().existsSync(e))return{};try{return JSON.parse(a().readFileSync(e,"utf8"))}catch{return{}}}function y(e){let r=p();a().mkdirSync(s().dirname(r),{recursive:!0}),a().writeFileSync(r,JSON.stringify(e,null,2),"utf8")}}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[5994,5452],()=>t(29795));module.exports=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/5452.js","../../../chunks/5994.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/models-config/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/models-config/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=8658,e.ids=[6777,8658],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},79646:e=>{"use strict";e.exports=require("child_process")},29021:e=>{"use strict";e.exports=require("fs")},21820:e=>{"use strict";e.exports=require("os")},33873:e=>{"use strict";e.exports=require("path")},33503:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>g,routeModule:()=>l,serverHooks:()=>m,workAsyncStorage:()=>d,workUnitAsyncStorage:()=>f});var s={};r.r(s),r.d(s,{POST:()=>p,dynamic:()=>c});var n=r(42706),i=r(28203),o=r(45994),a=r(39187),u=r(56777);let c="force-dynamic";async function p(e){let t=Date.now();try{let{providerName:s,provider:n,model:i}=await e.json();if(!i.id?.trim())return a.NextResponse.json({ok:!1,error:"Model ID required"},{status:400});let o=n.baseUrl?.replace(/\/$/,"")||"https://api.openai.com/v1",c=n.apiKey??"";if(c.startsWith("!")){let{execSync:e}=await Promise.resolve().then(r.t.bind(r,79646,23));c=e(c.slice(1)).toString().trim()}else!c||c.startsWith("sk-")||c.includes(" ")||c!==c.toUpperCase()||(c=process.env[c]??c);if(!c){let e=(0,u.readAuthConfig)();c=e[s]?.key??""}let p=n.api??"openai-responses",l=0,d="";if("anthropic-messages"===p){let e=await fetch(`${o}/v1/messages`,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":c,"anthropic-version":"2023-06-01"},body:JSON.stringify({model:i.id,max_tokens:10,messages:[{role:"user",content:"ping"}]}),signal:AbortSignal.timeout(15e3)});l=e.status;let r=await e.json();if(!e.ok)return a.NextResponse.json({ok:!1,error:r.error?.message??JSON.stringify(r),latencyMs:Date.now()-t,status:l});d=r.content?.[0]?.text??""}else{let e=await fetch(`${o}/chat/completions`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${c}`},body:JSON.stringify({model:i.id,max_tokens:10,messages:[{role:"user",content:"ping"}]}),signal:AbortSignal.timeout(15e3)});l=e.status;let r=await e.json();if(!e.ok)return a.NextResponse.json({ok:!1,error:r.error?.message??JSON.stringify(r),latencyMs:Date.now()-t,status:l});d=r.choices?.[0]?.message?.content??""}return a.NextResponse.json({ok:!0,latencyMs:Date.now()-t,status:l,responseText:d})}catch(e){return a.NextResponse.json({ok:!1,error:String(e),latencyMs:Date.now()-t},{status:500})}}let l=new n.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/models-config/test/route",pathname:"/api/models-config/test",filename:"route",bundlePath:"app/api/models-config/test/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/models-config/test/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:d,workUnitAsyncStorage:f,serverHooks:m}=l;function g(){return(0,o.patchFetch)({workAsyncStorage:d,workUnitAsyncStorage:f})}},96487:()=>{},78335:()=>{},56777:(e,t,r)=>{"use strict";r.d(t,{CG:()=>g,IX:()=>f,readAuthConfig:()=>m,readModelsConfig:()=>d});var s=r(33873),n=r.n(s),i=r(21820),o=r.n(i),a=r(29021),u=r.n(a);function c(){return process.env.PI_AGENT_DIR??n().join(o().homedir(),".pi","agent")}function p(){return n().join(c(),"models.json")}function l(){return n().join(c(),"auth.json")}function d(){let e=p();if(!u().existsSync(e))return{providers:{}};try{return JSON.parse(u().readFileSync(e,"utf8"))}catch{return{providers:{}}}}function f(e){let t=p();u().mkdirSync(n().dirname(t),{recursive:!0}),u().writeFileSync(t,JSON.stringify(e,null,2),"utf8")}function m(){let e=l();if(!u().existsSync(e))return{};try{return JSON.parse(u().readFileSync(e,"utf8"))}catch{return{}}}function g(e){let t=l();u().mkdirSync(n().dirname(t),{recursive:!0}),u().writeFileSync(t,JSON.stringify(e,null,2),"utf8")}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(33503));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/5452.js","../../../../chunks/5994.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/models-config/test/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/models-config/route":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/models-config/test/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=3820,e.ids=[3820],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},55511:e=>{"use strict";e.exports=require("crypto")},29021:e=>{"use strict";e.exports=require("fs")},79868:e=>{"use strict";e.exports=require("node:sqlite")},21820:e=>{"use strict";e.exports=require("os")},33873:e=>{"use strict";e.exports=require("path")},32793:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>E,routeModule:()=>p,serverHooks:()=>g,workAsyncStorage:()=>c,workUnitAsyncStorage:()=>l});var s={};r.r(s),r.d(s,{DELETE:()=>u});var n=r(42706),i=r(28203),a=r(45994),o=r(39187),d=r(47628);async function u(e,{params:t}){let{sessionId:r}=await t;return d.e.delete(r)?o.NextResponse.json({success:!0}):o.NextResponse.json({error:"Not found"},{status:404})}let p=new n.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/sessions/[agentId]/[sessionId]/route",pathname:"/api/sessions/[agentId]/[sessionId]",filename:"route",bundlePath:"app/api/sessions/[agentId]/[sessionId]/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/sessions/[agentId]/[sessionId]/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:c,workUnitAsyncStorage:l,serverHooks:g}=p;function E(){return(0,a.patchFetch)({workAsyncStorage:c,workUnitAsyncStorage:l})}},96487:()=>{},78335:()=>{},47628:(e,t,r)=>{"use strict";r.d(t,{e:()=>o,h:()=>a});var s=r(78490),n=r(691);function i(e){return{...JSON.parse(e.config),id:e.id,createdAt:new Date(e.created_at).toISOString(),updatedAt:new Date(e.updated_at).toISOString()}}let a={list:()=>(0,s.L)().prepare("SELECT * FROM agents ORDER BY created_at DESC").all().map(i),getById(e){let t=(0,s.L)().prepare("SELECT * FROM agents WHERE id = ?").get(e);return t?i(t):void 0},create(e){let t=(0,s.L)(),r=(0,n.A)(),a=Date.now(),o={...e};return t.prepare("INSERT INTO agents (id, config, created_at, updated_at) VALUES (?, ?, ?, ?)").run(r,JSON.stringify(o),a,a),i({id:r,config:JSON.stringify(o),created_at:a,updated_at:a})},update(e,t){let r=(0,s.L)(),n=this.getById(e);if(!n)return;let i=Date.now(),{createdAt:a,updatedAt:o,...d}={...n,...t,id:n.id};return r.prepare("UPDATE agents SET config = ?, updated_at = ? WHERE id = ?").run(JSON.stringify(d),i,e),this.getById(e)},delete:e=>(0,s.L)().prepare("DELETE FROM agents WHERE id = ?").run(e).changes>0},o={list:e=>(0,s.L)().prepare("SELECT * FROM sessions WHERE agent_id = ? ORDER BY created_at DESC").all(e),create(e,t,r){let i=(0,s.L)(),a=(0,n.A)();return i.prepare("INSERT INTO sessions (id, agent_id, title, session_file, created_at) VALUES (?, ?, ?, ?, ?)").run(a,e,r??"New Session",t,Date.now()),a},updateFile(e,t){(0,s.L)().prepare("UPDATE sessions SET session_file = ? WHERE id = ?").run(t,e)},delete:e=>(0,s.L)().prepare("DELETE FROM sessions WHERE id = ?").run(e).changes>0,deleteByAgent:e=>Number((0,s.L)().prepare("DELETE FROM sessions WHERE agent_id = ?").run(e).changes)}},78490:(e,t,r)=>{"use strict";r.d(t,{L:()=>c});var s=r(79868),n=r(33873),i=r.n(n),a=r(21820),o=r.n(a),d=r(29021),u=r.n(d);let p=null;function c(){if(p)return p;let e=process.env.STORAGE_PATH||i().join(o().homedir(),".digital-agents");u().existsSync(e)||u().mkdirSync(e,{recursive:!0});let t=i().join(e,"agents.db");return(p=new s.DatabaseSync(t)).exec("PRAGMA journal_mode = WAL"),p.exec("PRAGMA foreign_keys = ON"),p}},691:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(55511);let n={randomUUID:s.randomUUID},i=new Uint8Array(256),a=i.length,o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let d=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();let d=(e=e||{}).random??e.rng?.()??(a>i.length-16&&((0,s.randomFillSync)(i),a=0),i.slice(a,a+=16));if(d.length<16)throw Error("Random bytes length must be >= 16");if(d[6]=15&d[6]|64,d[8]=63&d[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=d[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(d)}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(32793));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/5452.js","../../../../../chunks/5994.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
package/.next/server/app/api/sessions/[agentId]/[sessionId]/route_client-reference-manifest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sessions/[agentId]/[sessionId]/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/sessions/[agentId]/route":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/sessions/[agentId]/[sessionId]/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=5562,e.ids=[5562],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},55511:e=>{"use strict";e.exports=require("crypto")},29021:e=>{"use strict";e.exports=require("fs")},79868:e=>{"use strict";e.exports=require("node:sqlite")},21820:e=>{"use strict";e.exports=require("os")},33873:e=>{"use strict";e.exports=require("path")},82152:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>f,routeModule:()=>c,serverHooks:()=>E,workAsyncStorage:()=>l,workUnitAsyncStorage:()=>g});var s={};r.r(s),r.d(s,{DELETE:()=>p,GET:()=>d});var n=r(42706),a=r(28203),i=r(45994),o=r(39187),u=r(47628);async function d(e,{params:t}){let{agentId:r}=await t;return o.NextResponse.json(u.e.list(r))}async function p(e,{params:t}){let{agentId:r}=await t,s=u.e.deleteByAgent(r);return o.NextResponse.json({success:!0,deleted:s})}let c=new n.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/sessions/[agentId]/route",pathname:"/api/sessions/[agentId]",filename:"route",bundlePath:"app/api/sessions/[agentId]/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/sessions/[agentId]/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:l,workUnitAsyncStorage:g,serverHooks:E}=c;function f(){return(0,i.patchFetch)({workAsyncStorage:l,workUnitAsyncStorage:g})}},96487:()=>{},78335:()=>{},47628:(e,t,r)=>{"use strict";r.d(t,{e:()=>o,h:()=>i});var s=r(78490),n=r(691);function a(e){return{...JSON.parse(e.config),id:e.id,createdAt:new Date(e.created_at).toISOString(),updatedAt:new Date(e.updated_at).toISOString()}}let i={list:()=>(0,s.L)().prepare("SELECT * FROM agents ORDER BY created_at DESC").all().map(a),getById(e){let t=(0,s.L)().prepare("SELECT * FROM agents WHERE id = ?").get(e);return t?a(t):void 0},create(e){let t=(0,s.L)(),r=(0,n.A)(),i=Date.now(),o={...e};return t.prepare("INSERT INTO agents (id, config, created_at, updated_at) VALUES (?, ?, ?, ?)").run(r,JSON.stringify(o),i,i),a({id:r,config:JSON.stringify(o),created_at:i,updated_at:i})},update(e,t){let r=(0,s.L)(),n=this.getById(e);if(!n)return;let a=Date.now(),{createdAt:i,updatedAt:o,...u}={...n,...t,id:n.id};return r.prepare("UPDATE agents SET config = ?, updated_at = ? WHERE id = ?").run(JSON.stringify(u),a,e),this.getById(e)},delete:e=>(0,s.L)().prepare("DELETE FROM agents WHERE id = ?").run(e).changes>0},o={list:e=>(0,s.L)().prepare("SELECT * FROM sessions WHERE agent_id = ? ORDER BY created_at DESC").all(e),create(e,t,r){let a=(0,s.L)(),i=(0,n.A)();return a.prepare("INSERT INTO sessions (id, agent_id, title, session_file, created_at) VALUES (?, ?, ?, ?, ?)").run(i,e,r??"New Session",t,Date.now()),i},updateFile(e,t){(0,s.L)().prepare("UPDATE sessions SET session_file = ? WHERE id = ?").run(t,e)},delete:e=>(0,s.L)().prepare("DELETE FROM sessions WHERE id = ?").run(e).changes>0,deleteByAgent:e=>Number((0,s.L)().prepare("DELETE FROM sessions WHERE agent_id = ?").run(e).changes)}},78490:(e,t,r)=>{"use strict";r.d(t,{L:()=>c});var s=r(79868),n=r(33873),a=r.n(n),i=r(21820),o=r.n(i),u=r(29021),d=r.n(u);let p=null;function c(){if(p)return p;let e=process.env.STORAGE_PATH||a().join(o().homedir(),".digital-agents");d().existsSync(e)||d().mkdirSync(e,{recursive:!0});let t=a().join(e,"agents.db");return(p=new s.DatabaseSync(t)).exec("PRAGMA journal_mode = WAL"),p.exec("PRAGMA foreign_keys = ON"),p}},691:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var s=r(55511);let n={randomUUID:s.randomUUID},a=new Uint8Array(256),i=a.length,o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let u=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();let u=(e=e||{}).random??e.rng?.()??(i>a.length-16&&((0,s.randomFillSync)(a),i=0),a.slice(i,i+=16));if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=u[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(u)}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(82152));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/5452.js","../../../../chunks/5994.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sessions/[agentId]/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/sessions/[agentId]/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=9252,e.ids=[9252],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},29021:e=>{"use strict";e.exports=require("fs")},53157:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>x,routeModule:()=>c,serverHooks:()=>g,workAsyncStorage:()=>f,workUnitAsyncStorage:()=>y});var s={};r.r(s),r.d(s,{POST:()=>d,dynamic:()=>l});var n=r(42706),i=r(28203),o=r(45994),a=r(39187),p=r(29021),u=r.n(p);let l="force-dynamic";async function d(e){try{let{sessionFile:t}=await e.json();if(!t)return a.NextResponse.json({error:"sessionFile required"},{status:400});let r=function(e){if(!u().existsSync(e))return[];let t=u().readFileSync(e,"utf8").split("\n").filter(Boolean),r=[];for(let e of t)try{r.push(JSON.parse(e))}catch{}let s=new Map(r.map(e=>[e.id,e])),n=new Set;for(let e of r)e.parentId&&n.add(e.parentId);let i=r.filter(e=>!n.has(e.id));if(!i.length)return[];let o=i[i.length-1],a=[],p=o;for(;p;)a.unshift(p),p=p.parentId?s.get(p.parentId):void 0;let l=new Map;for(let e of a)if("message"===e.type&&e.message&&"user"===e.message.role){for(let t of Array.isArray(e.message.content)?e.message.content:[])if("tool_result"===t.type&&t.id){let e="string"==typeof t.content?t.content:Array.isArray(t.content)?t.content.filter(e=>"text"===e.type).map(e=>e.text??"").join(""):"";l.set(t.id,{output:e,isError:!!t.is_error})}}let d=[];for(let e of a){if("message"!==e.type||!e.message)continue;let{role:t,content:r,stopReason:s,errorMessage:n}=e.message;if("assistant"===t&&("error"===s||n))continue;let{text:i,thinking:o,toolUses:a}=function(e){if("string"==typeof e)return{text:e,toolUses:new Map};let t=[],r=[],s=new Map;for(let n of e)"text"===n.type&&n.text?t.push(n.text):"thinking"===n.type&&n.thinking?r.push(n.thinking):"tool_use"===n.type&&n.id&&n.name&&s.set(n.id,{id:n.id,name:n.name,input:void 0!==n.input?JSON.stringify(n.input,null,2):void 0});return{text:t.join(""),thinking:r.join("")||void 0,toolUses:s}}(r),p=i.trim(),u=a.size>0;if(!p&&!u||"user"===t&&!p&&Array.isArray(r)&&r.every(e=>"tool_result"===e.type))continue;let c=[];for(let[e,t]of a.entries()){let r=l.get(e);c.push({...t,output:r?.output,isError:r?.isError})}d.push({id:e.id,role:t,content:p,thinking:o||void 0,toolCalls:c.length?c:void 0,createdAt:e.timestamp})}return d}(t);return a.NextResponse.json({messages:r})}catch(e){return a.NextResponse.json({error:String(e)},{status:500})}}let c=new n.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/sessions/history/route",pathname:"/api/sessions/history",filename:"route",bundlePath:"app/api/sessions/history/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/sessions/history/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:f,workUnitAsyncStorage:y,serverHooks:g}=c;function x(){return(0,o.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:y})}},96487:()=>{},78335:()=>{}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(53157));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/5452.js","../../../../chunks/5994.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sessions/history/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/sessions/history/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=5177,e.ids=[5177],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},29021:e=>{"use strict";e.exports=require("fs")},79868:e=>{"use strict";e.exports=require("node:sqlite")},21820:e=>{"use strict";e.exports=require("os")},33873:e=>{"use strict";e.exports=require("path")},82100:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>h,routeModule:()=>l,serverHooks:()=>x,workAsyncStorage:()=>d,workUnitAsyncStorage:()=>g});var s={};r.r(s),r.d(s,{GET:()=>p,PUT:()=>c});var n=r(42706),i=r(28203),a=r(45994),o=r(39187),u=r(73753);async function p(){let e=(0,u.getSettings)(),t={...e,apiKeys:Object.fromEntries(Object.entries(e.apiKeys).map(([e,t])=>[e,t?"***"+t.slice(-4):""]))};return o.NextResponse.json(t)}async function c(e){try{let t=await e.json(),r=(0,u.getSettings)(),s={...r.apiKeys};if(t.apiKeys)for(let[e,r]of Object.entries(t.apiKeys))r&&!r.startsWith("***")&&(s[e]=r);let n={...r,...t,apiKeys:s};return(0,u.D)(n),o.NextResponse.json({success:!0})}catch(e){return o.NextResponse.json({error:String(e)},{status:500})}}let l=new n.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/settings/route",pathname:"/api/settings",filename:"route",bundlePath:"app/api/settings/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/settings/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:d,workUnitAsyncStorage:g,serverHooks:x}=l;function h(){return(0,a.patchFetch)({workAsyncStorage:d,workUnitAsyncStorage:g})}},96487:()=>{},78335:()=>{},78490:(e,t,r)=>{"use strict";r.d(t,{L:()=>l});var s=r(79868),n=r(33873),i=r.n(n),a=r(21820),o=r.n(a),u=r(29021),p=r.n(u);let c=null;function l(){if(c)return c;let e=process.env.STORAGE_PATH||i().join(o().homedir(),".digital-agents");p().existsSync(e)||p().mkdirSync(e,{recursive:!0});let t=i().join(e,"agents.db");return(c=new s.DatabaseSync(t)).exec("PRAGMA journal_mode = WAL"),c.exec("PRAGMA foreign_keys = ON"),c}},73753:(e,t,r)=>{"use strict";r.d(t,{getSettings:()=>c,D:()=>l});var s=r(78490);let n={apiKeys:{},ollama:{host:"http://localhost:11434"},defaultModel:{provider:"anthropic",modelId:"claude-opus-4-5"},theme:"system",language:"zh",storagePath:""};var i=r(33873),a=r.n(i),o=r(21820),u=r.n(o);let p="app_settings";function c(){let e=(0,s.L)().prepare("SELECT value FROM settings WHERE key = ?").get(p);if(!e)return{...n,storagePath:a().join(u().homedir(),".digital-agents")};try{return JSON.parse(e.value)}catch{return{...n,storagePath:a().join(u().homedir(),".digital-agents")}}}function l(e){(0,s.L)().prepare("INSERT OR REPLACE INTO settings (key, value) VALUES (?, ?)").run(p,JSON.stringify(e))}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(82100));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/5452.js","../../../chunks/5994.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/settings/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/settings/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=9396,e.ids=[9396],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},29021:e=>{"use strict";e.exports=require("fs")},21820:e=>{"use strict";e.exports=require("os")},33873:e=>{"use strict";e.exports=require("path")},71711:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>g,routeModule:()=>y,serverHooks:()=>k,workAsyncStorage:()=>h,workUnitAsyncStorage:()=>S});var s={};r.r(s),r.d(s,{DELETE:()=>x,GET:()=>m,dynamic:()=>f});var n=r(42706),i=r(28203),a=r(45994),o=r(39187),u=r(65158),l=r(33873),c=r.n(l),p=r(29021),d=r.n(p);let f="force-dynamic";async function m(e,{params:t}){let{name:r}=await t,s=(0,u.rs)().find(e=>e.name===decodeURIComponent(r));if(!s)return o.NextResponse.json({error:"Not found"},{status:404});let n=d().statSync(s.filePath).isDirectory()?c().join(s.filePath,"SKILL.md"):s.filePath,i=d().existsSync(n)?d().readFileSync(n,"utf8"):"";return o.NextResponse.json({...s,content:i})}async function x(e,{params:t}){let{name:r}=await t,s=(0,u.rs)().find(e=>e.name===decodeURIComponent(r));if(!s)return o.NextResponse.json({error:"Skill not found"},{status:404});try{return d().statSync(s.filePath).isDirectory()?d().rmSync(s.filePath,{recursive:!0,force:!0}):d().unlinkSync(s.filePath),o.NextResponse.json({success:!0})}catch(e){return o.NextResponse.json({error:String(e)},{status:500})}}let y=new n.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/skills/[name]/route",pathname:"/api/skills/[name]",filename:"route",bundlePath:"app/api/skills/[name]/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/[name]/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:h,workUnitAsyncStorage:S,serverHooks:k}=y;function g(){return(0,a.patchFetch)({workAsyncStorage:h,workUnitAsyncStorage:S})}},96487:()=>{},78335:()=>{},65158:(e,t,r)=>{"use strict";r.d(t,{YJ:()=>l,loadSkillFromPath:()=>p,rs:()=>d,yv:()=>c});var s=r(33873),n=r.n(s),i=r(21820),a=r.n(i),o=r(29021),u=r.n(o);function l(){return n().join(a().homedir(),".pi","agent","skills")}function c(e){let t=e.match(/^---\s*\n([\s\S]*?)\n---/);if(!t)return{};let r={};for(let e of t[1].split("\n")){let t=e.indexOf(":");if(-1===t)continue;let s=e.slice(0,t).trim(),n=e.slice(t+1).trim().replace(/^[|>]\s*$/,"");r[s]=n}return r}function p(e,t){try{let r;let s=u().statSync(e),i=!1;if(s.isDirectory()?(r=n().join(e,"SKILL.md"),i=!0):r=e,!u().existsSync(r))return null;let a=u().readFileSync(r,"utf8"),o=c(a),l=(o.name||"").trim()||t.replace(/\.md$/,""),p=(o.description||"").trim(),d=a.trimStart().startsWith("---")&&p.length>0;return{name:l,description:p,filePath:i?e:r,source:"global",hasSetup:a.toLowerCase().includes("## setup"),sdkCompatible:d}}catch{return null}}function d(){let e=l();return u().existsSync(e)?u().readdirSync(e).map(t=>p(n().join(e,t),t)).filter(e=>null!==e).sort((e,t)=>e.name.localeCompare(t.name)):[]}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(71711));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/5452.js","../../../../chunks/5994.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/skills/[name]/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/route":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/[name]/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=7812,e.ids=[7812],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},79646:e=>{"use strict";e.exports=require("child_process")},29021:e=>{"use strict";e.exports=require("fs")},21820:e=>{"use strict";e.exports=require("os")},33873:e=>{"use strict";e.exports=require("path")},28354:e=>{"use strict";e.exports=require("util")},23026:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>h,routeModule:()=>x,serverHooks:()=>y,workAsyncStorage:()=>f,workUnitAsyncStorage:()=>g});var s={};r.r(s),r.d(s,{POST:()=>m,dynamic:()=>c});var i=r(42706),n=r(28203),a=r(45994),o=r(39187),u=r(79646),l=r(28354),p=r(65158);let c="force-dynamic",d=(0,l.promisify)(u.exec);async function m(e){try{let{package:t}=await e.json();if(!t?.trim())return o.NextResponse.json({error:"package required"},{status:400});let r=(0,p.YJ)(),s=`npx --yes skills add "${t.trim()}" -y --agent pi -g`,{stdout:i,stderr:n}=await d(s,{env:{...process.env,SKILLS_DIR:r},timeout:6e4});return o.NextResponse.json({success:!0,output:i||n||"安装完成"})}catch(e){return o.NextResponse.json({error:e.message??String(e),output:e.stderr??e.stdout??""},{status:500})}}let x=new i.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/skills/install/route",pathname:"/api/skills/install",filename:"route",bundlePath:"app/api/skills/install/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/install/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:f,workUnitAsyncStorage:g,serverHooks:y}=x;function h(){return(0,a.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:g})}},96487:()=>{},78335:()=>{},65158:(e,t,r)=>{"use strict";r.d(t,{YJ:()=>l,loadSkillFromPath:()=>c,rs:()=>d,yv:()=>p});var s=r(33873),i=r.n(s),n=r(21820),a=r.n(n),o=r(29021),u=r.n(o);function l(){return i().join(a().homedir(),".pi","agent","skills")}function p(e){let t=e.match(/^---\s*\n([\s\S]*?)\n---/);if(!t)return{};let r={};for(let e of t[1].split("\n")){let t=e.indexOf(":");if(-1===t)continue;let s=e.slice(0,t).trim(),i=e.slice(t+1).trim().replace(/^[|>]\s*$/,"");r[s]=i}return r}function c(e,t){try{let r;let s=u().statSync(e),n=!1;if(s.isDirectory()?(r=i().join(e,"SKILL.md"),n=!0):r=e,!u().existsSync(r))return null;let a=u().readFileSync(r,"utf8"),o=p(a),l=(o.name||"").trim()||t.replace(/\.md$/,""),c=(o.description||"").trim(),d=a.trimStart().startsWith("---")&&c.length>0;return{name:l,description:c,filePath:n?e:r,source:"global",hasSetup:a.toLowerCase().includes("## setup"),sdkCompatible:d}}catch{return null}}function d(){let e=l();return u().existsSync(e)?u().readdirSync(e).map(t=>c(i().join(e,t),t)).filter(e=>null!==e).sort((e,t)=>e.name.localeCompare(t.name)):[]}}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(23026));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/5452.js","../../../../chunks/5994.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/skills/install/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/route":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/install/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=9968,e.ids=[9968],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},29021:e=>{"use strict";e.exports=require("fs")},21820:e=>{"use strict";e.exports=require("os")},33873:e=>{"use strict";e.exports=require("path")},8289:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>v,routeModule:()=>y,serverHooks:()=>k,workAsyncStorage:()=>g,workUnitAsyncStorage:()=>h});var s={};r.r(s),r.d(s,{GET:()=>f,POST:()=>x,dynamic:()=>m});var n=r(42706),i=r(28203),o=r(45994),a=r(39187),u=r(65158),l=r(33873),c=r.n(l),p=r(29021),d=r.n(p);let m="force-dynamic";async function f(){return a.NextResponse.json((0,u.rs)())}async function x(e){try{let{url:t,content:s,name:n}=await e.json(),i=s??"";if(t&&!i){let e=await fetch(t,{signal:AbortSignal.timeout(15e3)});if(!e.ok)throw Error(`HTTP ${e.status} fetching ${t}`);i=await e.text()}if(!i.trim())return a.NextResponse.json({error:"No skill content provided"},{status:400});let o=((0,u.yv)(i).name||n||"custom-skill").trim().toLowerCase().replace(/[^a-z0-9-]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");if(!o)return a.NextResponse.json({error:"Could not determine skill name"},{status:400});let l=(0,u.YJ)();d().mkdirSync(l,{recursive:!0});let p=c().join(l,o);d().mkdirSync(p,{recursive:!0}),d().writeFileSync(c().join(p,"SKILL.md"),i,"utf8");let{loadSkillFromPath:m}=await Promise.resolve().then(r.bind(r,65158)),f=m(p,o);return a.NextResponse.json({success:!0,skill:f},{status:201})}catch(e){return a.NextResponse.json({error:String(e)},{status:500})}}let y=new n.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/skills/route",pathname:"/api/skills",filename:"route",bundlePath:"app/api/skills/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:g,workUnitAsyncStorage:h,serverHooks:k}=y;function v(){return(0,o.patchFetch)({workAsyncStorage:g,workUnitAsyncStorage:h})}},96487:()=>{},78335:()=>{},65158:(e,t,r)=>{"use strict";r.d(t,{YJ:()=>l,loadSkillFromPath:()=>p,rs:()=>d,yv:()=>c});var s=r(33873),n=r.n(s),i=r(21820),o=r.n(i),a=r(29021),u=r.n(a);function l(){return n().join(o().homedir(),".pi","agent","skills")}function c(e){let t=e.match(/^---\s*\n([\s\S]*?)\n---/);if(!t)return{};let r={};for(let e of t[1].split("\n")){let t=e.indexOf(":");if(-1===t)continue;let s=e.slice(0,t).trim(),n=e.slice(t+1).trim().replace(/^[|>]\s*$/,"");r[s]=n}return r}function p(e,t){try{let r;let s=u().statSync(e),i=!1;if(s.isDirectory()?(r=n().join(e,"SKILL.md"),i=!0):r=e,!u().existsSync(r))return null;let o=u().readFileSync(r,"utf8"),a=c(o),l=(a.name||"").trim()||t.replace(/\.md$/,""),p=(a.description||"").trim(),d=o.trimStart().startsWith("---")&&p.length>0;return{name:l,description:p,filePath:i?e:r,source:"global",hasSetup:o.toLowerCase().includes("## setup"),sdkCompatible:d}}catch{return null}}function d(){let e=l();return u().existsSync(e)?u().readdirSync(e).map(t=>p(n().join(e,t),t)).filter(e=>null!==e).sort((e,t)=>e.name.localeCompare(t.name)):[]}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(8289));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/5452.js","../../../chunks/5994.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/skills/route"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"260":{"*":{"id":"52124","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"12362","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"48157","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"57174","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"87190","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"48726","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"77413","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"33875","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"88903","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"20502","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"84178","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"87531","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"61365","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"66959","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"51890","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"12392","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-page.js":{"id":7033,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4547,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":4835,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":2328,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/layout-router.js":{"id":5244,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":3866,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/dist/esm/lib/metadata/metadata-boundary.js":{"id":6213,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/globals.css":{"id":347,"name":"*","chunks":["7177","static/chunks/app/layout-4af7a40b1f262149.js"],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next-intl/dist/esm/shared/NextIntlClientProvider.js":{"id":9981,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/node_modules/next/font/google/target.css?{\"path\":\"src/app/[locale]/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"]}],\"variableName\":\"inter\"}":{"id":3127,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/layout/sidebar.tsx":{"id":4988,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/components/providers.tsx":{"id":1724,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/new/page.tsx":{"id":1594,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/chat/page.tsx":{"id":3927,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/knowledge/page.tsx":{"id":6037,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/settings/page.tsx":{"id":9789,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/page.tsx":{"id":3893,"name":"*","chunks":[],"async":false},"/Users/duan/files/pi-web/digital-agent-platform/src/app/[locale]/agents/[id]/edit/page.tsx":{"id":260,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/duan/files/pi-web/digital-agent-platform/src/":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/layout":[{"inlined":false,"path":"static/css/632ce3b5496b50af.css"}],"/Users/duan/files/pi-web/digital-agent-platform/src/app/page":[],"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/route":[]},"rscModuleMapping":{"260":{"*":{"id":"98992","name":"*","chunks":[],"async":false}},"347":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"1594":{"*":{"id":"77438","name":"*","chunks":[],"async":false}},"1724":{"*":{"id":"90835","name":"*","chunks":[],"async":false}},"2328":{"*":{"id":"40802","name":"*","chunks":[],"async":false}},"3866":{"*":{"id":"48530","name":"*","chunks":[],"async":false}},"3893":{"*":{"id":"59087","name":"*","chunks":[],"async":false}},"3927":{"*":{"id":"21702","name":"*","chunks":[],"async":false}},"4547":{"*":{"id":"34863","name":"*","chunks":[],"async":false}},"4835":{"*":{"id":"25155","name":"*","chunks":[],"async":false}},"4988":{"*":{"id":"27994","name":"*","chunks":[],"async":false}},"5244":{"*":{"id":"9350","name":"*","chunks":[],"async":false}},"6037":{"*":{"id":"40729","name":"*","chunks":[],"async":false}},"6213":{"*":{"id":"88921","name":"*","chunks":[],"async":false}},"7033":{"*":{"id":"13219","name":"*","chunks":[],"async":false}},"9789":{"*":{"id":"28660","name":"*","chunks":[],"async":false}},"9981":{"*":{"id":"35387","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e={};e.id=3955,e.ids=[3955],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},95924:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>g,routeModule:()=>c,serverHooks:()=>m,workAsyncStorage:()=>d,workUnitAsyncStorage:()=>x});var s={};r.r(s),r.d(s,{POST:()=>p,dynamic:()=>l});var a=r(42706),i=r(28203),n=r(45994),o=r(39187);let l="force-dynamic",u="https://skills.sh";async function p(e){try{let{query:t,limit:r=30}=await e.json();if(!t?.trim())return o.NextResponse.json({results:[]});let s=`${u}/api/search?q=${encodeURIComponent(t.trim())}&limit=${Math.min(r,50)}`,a=await fetch(s,{headers:{"User-Agent":"digital-agent-platform/1.0"},signal:AbortSignal.timeout(1e4)});if(!a.ok)return o.NextResponse.json({error:`Registry ${a.status}`,results:[]},{status:502});let i=((await a.json()).skills??[]).map(e=>{var t;return{package:`${e.source}@${e.skillId}`,name:e.name,installs:e.installs,installsDisplay:(t=e.installs)>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t),url:`${u}/${e.source}/${e.skillId}`}});return o.NextResponse.json({results:i})}catch(e){return o.NextResponse.json({error:String(e),results:[]},{status:500})}}let c=new a.AppRouteRouteModule({definition:{kind:i.RouteKind.APP_ROUTE,page:"/api/skills/search/route",pathname:"/api/skills/search",filename:"route",bundlePath:"app/api/skills/search/route"},resolvedPagePath:"/Users/duan/files/pi-web/digital-agent-platform/src/app/api/skills/search/route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:d,workUnitAsyncStorage:x,serverHooks:m}=c;function g(){return(0,n.patchFetch)({workAsyncStorage:d,workUnitAsyncStorage:x})}},96487:()=>{},78335:()=>{}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[5994,5452],()=>r(95924));module.exports=s})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../../../../../../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/5452.js","../../../../chunks/5994.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|